diff --git a/.gitattributes b/.gitattributes index f6fd9b53e3b9bb81879492a59083f36489d756bd..6066889618ac72a29c79a68d27a0b30831fc1274 100644 --- a/.gitattributes +++ b/.gitattributes @@ -104,3 +104,4 @@ b/4ad638420430db1bdd3051864a434b18e6fbc40cd6feb91ec48c873b6c23e82c filter=lfs di b/50cc95e131bb26b0837a6bfa44a62aff84fefcc21fb94118b099be12846fb87a filter=lfs diff=lfs merge=lfs -text b/6f89df7ac143f7be87409587aa86fdf9640c28f743871f15954544dda360c16c filter=lfs diff=lfs merge=lfs -text b/765a9f4b7f4975d323b6d2b03fc85c6240e533f89188b5c9c3712c774efd3a29 filter=lfs diff=lfs merge=lfs -text +b/8c43519c6f672c286fcde80cb884165030ce3a62171181416642e24ca4462ab6 filter=lfs diff=lfs merge=lfs -text diff --git a/b/7c94194f6ae258e7962b9038fde33f9ea83436fef34a9b6f2bd0aeb9a71832f9 b/b/7c94194f6ae258e7962b9038fde33f9ea83436fef34a9b6f2bd0aeb9a71832f9 new file mode 100644 index 0000000000000000000000000000000000000000..0fb413e6ff9e845e92c8bed8582773f45e812410 --- /dev/null +++ b/b/7c94194f6ae258e7962b9038fde33f9ea83436fef34a9b6f2bd0aeb9a71832f9 @@ -0,0 +1,59 @@ +// holo-lora.mjs — a LoRA adapter as a κ-object + a deterministic test adapter shared by the GPU runtime +// and the CPU witness. An adapter is the learned delta y += scale·B·(A·x) on top of a base linear; it is +// content (per-layer A,B matrices) → content-addressed (its κ), shareable as a link, applied on-device. +// genTestAdapter produces a small reproducible adapter (seeded LCG, identical in Node + browser) so the +// GPU forward and the CPU oracle apply the SAME delta — proving adapter-inference parity. + +import { readHolo, writeHoloArchive } from "../holo-archive.mjs"; + +const lcg = (seed) => { let s = (seed >>> 0) || 1; return () => { s = (Math.imul(s, 1103515245) + 12345) >>> 0; return (s / 4294967296 - 0.5) * 2; }; }; + +// Open a LoRA adapter sealed as a .holo (writeHoloArchive): per-layer A/B loaded BY κ with per-body L5 + +// footer L5 (a tampered body is REFUSED). Same rails as a model (readHolo store). Returns {meta, layers, footer}. +export function openAdapterHolo(bytes) { + const h = readHolo(bytes); // footer L5 + per-body L5 store + meta + const m = h.meta, byName = new Map(m.order.map((o) => [o.name, o.kappa])); + const f32 = (name) => { const c = h.store.get(byName.get(name)).slice(); return new Float32Array(c.buffer, c.byteOffset, c.byteLength / 4); }; // each body re-derives its κ (L5) on get + const layers = []; + for (let L = 0; L < m.nLayer; L++) layers.push({ A: f32("blk." + L + ".A"), B: f32("blk." + L + ".B") }); + return { meta: m, target: m.target, scale: m.scale, r: m.r, inn: m.inn, out: m.out, nLayer: m.nLayer, layers, footer: h.footer }; +} + +// adapter for ONE target module (e.g. attn_q) across all layers: layers[L] = {A:[r×inn], B:[out×r]}. +export function genTestAdapter({ seed = 1, inn, out, r, nLayer, scale = 1.0, amp = 0.05 }) { + const layers = []; + for (let L = 0; L < nLayer; L++) { + const ra = lcg(seed * 100003 + L * 2 + 1), rb = lcg(seed * 100003 + L * 2 + 2); + const A = new Float32Array(r * inn); for (let i = 0; i < A.length; i++) A[i] = ra() * amp; + const B = new Float32Array(out * r); for (let i = 0; i < B.length; i++) B[i] = rb() * amp; + layers.push({ A, B }); + } + return { target: "attn_q", scale, inn, out, r, nLayer, layers }; +} + +// Seal an adapter (genTestAdapter / a trained checkpoint) as a .holo that openAdapterHolo reads back byte-for-byte: +// each per-layer A/B is a content body keyed by sha256(bytes) (L5 on get), meta carries {target,scale,r,inn,out, +// nLayer,order}. Footer = sha256(everything) = the adapter's shareable did:holo (a tampered body is REFUSED on open). +// sha256hex is injected (Node: holo-uor; browser: a hex-sha) so this stays DOM-free + dependency-free like the rest. +export function sealAdapterHolo(ad, sha256hex) { + if (!ad || !ad.layers || !ad.nLayer) throw new Error("sealAdapterHolo: not an adapter"); + const order = [], bodies = []; + const push = (name, f32) => { + const u8 = new Uint8Array(f32.buffer, f32.byteOffset, f32.byteLength); + const hex = sha256hex(u8); order.push({ name, kappa: hex }); bodies.push({ kappa: hex, bytes: u8 }); + }; + for (let L = 0; L < ad.nLayer; L++) { push("blk." + L + ".A", ad.layers[L].A); push("blk." + L + ".B", ad.layers[L].B); } + const meta = { format: "holo-lora/1", target: ad.target, scale: ad.scale, r: ad.r, inn: ad.inn, out: ad.out, nLayer: ad.nLayer, order }; + return writeHoloArchive({ meta, bodies, extKey: "holo.lora" }); // { holo, footer, bytes } +} + +// raw f32 footprint of an adapter's deltas (the lower bound the seal rounds up from). Pure arithmetic, no alloc. +export function adapterBytes(ad) { let n = 0; for (const L of ad.layers) n += L.A.byteLength + L.B.byteLength; return n; } + +// content identity of an adapter: sha256 over its bytes (the shareable κ). sha256hex injected (Node/browser). +export async function adapterKappa(ad, sha256hex) { + const parts = []; + for (const L of ad.layers) { parts.push(new Uint8Array(L.A.buffer, L.A.byteOffset, L.A.byteLength), new Uint8Array(L.B.buffer, L.B.byteOffset, L.B.byteLength)); } + let n = 0; for (const p of parts) n += p.length; const all = new Uint8Array(n); let o = 0; for (const p of parts) { all.set(p, o); o += p.length; } + return "sha256:" + (await sha256hex(all)); +} diff --git a/b/7ca9db9c9f90d8c0cc7be6325ed12b23f192567a6a3609415468afa325191614 b/b/7ca9db9c9f90d8c0cc7be6325ed12b23f192567a6a3609415468afa325191614 new file mode 100644 index 0000000000000000000000000000000000000000..8f899d635c68ef9f18238a6f3f3b8cdb3b27ac4a --- /dev/null +++ b/b/7ca9db9c9f90d8c0cc7be6325ed12b23f192567a6a3609415468afa325191614 @@ -0,0 +1,27 @@ +{ + "id": "org.hologram.ui.daisyui.toast", + "name": "daisyui-toast", + "tier": "component", + "library": "daisyui", + "category": "Feedback", + "upstream": "https://cdn.jsdelivr.net/npm/daisyui@5.5.23/components/toast.css", + "docs": "https://daisyui.com/components/toast/", + "did": "did:holo:sha256:ed44bab433cc3e19210a3fa442774c23b5c9e8fb1c6a0795ee834a33f1d982a4", + "import": "holo://sha256:ed44bab433cc3e19210a3fa442774c23b5c9e8fb1c6a0795ee834a33f1d982a4", + "integrity": "sha256-7US6tDPMPhkhCj+kQndMI7XJ6PscageV7oNKM/HZgqQ=", + "kappa": "sha256:ed44bab433cc3e19210a3fa442774c23b5c9e8fb1c6a0795ee834a33f1d982a4", + "moduleKappa": "sha256:ed44bab433cc3e19210a3fa442774c23b5c9e8fb1c6a0795ee834a33f1d982a4", + "renderExport": null, + "format": "css", + "source": "components/toast.css", + "module": "vendor/daisyui/components/toast.css", + "exports": [], + "bytes": 5002, + "provenance": { + "package": "daisyui", + "version": "5.5.23", + "integrity": "sha512-xuheNUSL4T6ZVtWXoioqcNkjoyGX85QTDz4HTw2aBPfqk4fuMjax5HDo8qCmpV6M1YN8bGvfx5BpYCoDeRlt+A==", + "file": "components/toast.css" + }, + "license": "MIT" +} diff --git a/b/7cab59a17fdca534668351692972c446e784840ac6a3ada4c4c2bc98b90def21 b/b/7cab59a17fdca534668351692972c446e784840ac6a3ada4c4c2bc98b90def21 new file mode 100644 index 0000000000000000000000000000000000000000..b97f6f4c2958c7b3c34f29243d7ad92bc4710728 --- /dev/null +++ b/b/7cab59a17fdca534668351692972c446e784840ac6a3ada4c4c2bc98b90def21 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.form-tanstack-demo", + "name": "form-tanstack-demo", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/form-tanstack-demo.json", + "did": "did:holo:sha256:b0a54c0c1b1be29ea699c32f5b35c6fcbac60048a13cf452493ae3288bcf4c1a", + "import": "holo://sha256:1d653969206b17e1278428e9d49698ec0b2b52663c75fb0c671a48775a0ae870", + "integrity": "sha256-HWU5aSBrF+EnhCjp1JaY7AsrUmY8dfsMZxpId1oK6HA=", + "kappa": "sha256:b0a54c0c1b1be29ea699c32f5b35c6fcbac60048a13cf452493ae3288bcf4c1a", + "moduleKappa": "sha256:1d653969206b17e1278428e9d49698ec0b2b52663c75fb0c671a48775a0ae870", + "renderExport": "default", + "source": "registry/new-york-v4/examples/form-tanstack-demo.tsx", + "module": "vendor/components/form-tanstack-demo.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/7d0acc4f5ee3f54576205bf024c578ed0ffacddf5ffd9d0e0e74e0c06504f61f b/b/7d0acc4f5ee3f54576205bf024c578ed0ffacddf5ffd9d0e0e74e0c06504f61f new file mode 100644 index 0000000000000000000000000000000000000000..340bfee4492ceed8d8d6c8995a44e7fcf2ad2c3e --- /dev/null +++ b/b/7d0acc4f5ee3f54576205bf024c578ed0ffacddf5ffd9d0e0e74e0c06504f61f @@ -0,0 +1 @@ +export default {".badge":{"@layer daisyui.l1.l2.l3":{"display":"inline-flex","align-items":"center","justify-content":"center","gap":"calc(0.25rem * 2)","border-radius":"var(--radius-selector)","vertical-align":"middle","color":"var(--badge-fg)","border":"var(--border) solid var(--badge-color, var(--color-base-200))","font-size":"0.875rem","width":"fit-content","background-size":"auto, calc(var(--noise) * 100%)","background-image":"none, var(--fx-noise)","background-color":"var(--badge-bg)","--badge-bg":"var(--badge-color, var(--color-base-100))","--badge-fg":"var(--color-base-content)","--size":"calc(var(--size-selector, 0.25rem) * 6)","height":"var(--size)","padding-inline":"calc(var(--size) / 2 - var(--border))"}},".badge-outline":{"@layer daisyui.l1.l2":{"color":"var(--badge-color)","--badge-bg":"#0000","background-image":"none","border-color":"currentColor"}},".badge-dash":{"@layer daisyui.l1.l2":{"color":"var(--badge-color)","--badge-bg":"#0000","background-image":"none","border-color":"currentColor","border-style":"dashed"}},".badge-soft":{"@layer daisyui.l1.l2":{"color":"var(--badge-color, var(--color-base-content))","background-color":"color-mix( in oklab, var(--badge-color, var(--color-base-content)) 8%, var(--color-base-100) )","border-color":"color-mix( in oklab, var(--badge-color, var(--color-base-content)) 10%, var(--color-base-100) )","background-image":"none"}},".badge-primary":{"@layer daisyui.l1.l2":{"--badge-color":"var(--color-primary)","--badge-fg":"var(--color-primary-content)"}},".badge-secondary":{"@layer daisyui.l1.l2":{"--badge-color":"var(--color-secondary)","--badge-fg":"var(--color-secondary-content)"}},".badge-accent":{"@layer daisyui.l1.l2":{"--badge-color":"var(--color-accent)","--badge-fg":"var(--color-accent-content)"}},".badge-neutral":{"@layer daisyui.l1.l2":{"--badge-color":"var(--color-neutral)","--badge-fg":"var(--color-neutral-content)"}},".badge-info":{"@layer daisyui.l1.l2":{"--badge-color":"var(--color-info)","--badge-fg":"var(--color-info-content)"}},".badge-success":{"@layer daisyui.l1.l2":{"--badge-color":"var(--color-success)","--badge-fg":"var(--color-success-content)"}},".badge-warning":{"@layer daisyui.l1.l2":{"--badge-color":"var(--color-warning)","--badge-fg":"var(--color-warning-content)"}},".badge-error":{"@layer daisyui.l1.l2":{"--badge-color":"var(--color-error)","--badge-fg":"var(--color-error-content)"}},".badge-ghost":{"@layer daisyui.l1.l2":{"border-color":"var(--color-base-200)","background-color":"var(--color-base-200)","color":"var(--color-base-content)","background-image":"none"}},".badge-xs":{"@layer daisyui.l1.l2":{"--size":"calc(var(--size-selector, 0.25rem) * 4)","font-size":"0.625rem"}},".badge-sm":{"@layer daisyui.l1.l2":{"--size":"calc(var(--size-selector, 0.25rem) * 5)","font-size":"0.75rem"}},".badge-md":{"@layer daisyui.l1.l2":{"--size":"calc(var(--size-selector, 0.25rem) * 6)","font-size":"0.875rem"}},".badge-lg":{"@layer daisyui.l1.l2":{"--size":"calc(var(--size-selector, 0.25rem) * 7)","font-size":"1rem"}},".badge-xl":{"@layer daisyui.l1.l2":{"--size":"calc(var(--size-selector, 0.25rem) * 8)","font-size":"1.125rem"}}}; \ No newline at end of file diff --git a/b/7d11b7cbbef379fee1f2beaca2cec83b7580f4cad7c622d792fed27f98f433fb b/b/7d11b7cbbef379fee1f2beaca2cec83b7580f4cad7c622d792fed27f98f433fb new file mode 100644 index 0000000000000000000000000000000000000000..cb8c9e6ed125f0393b9e19d43dc58d6ff9d4d328 --- /dev/null +++ b/b/7d11b7cbbef379fee1f2beaca2cec83b7580f4cad7c622d792fed27f98f433fb @@ -0,0 +1,103 @@ +"use client";var zw=Object.create;var Os=Object.defineProperty;var Hw=Object.getOwnPropertyDescriptor;var Vw=Object.getOwnPropertyNames;var Ww=Object.getPrototypeOf,Gw=Object.prototype.hasOwnProperty;var ti=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kw=(e,t)=>{for(var r in t)Os(e,r,{get:t[r],enumerable:!0})},$w=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Vw(t))!Gw.call(e,o)&&o!==r&&Os(e,o,{get:()=>t[o],enumerable:!(a=Hw(t,o))||a.enumerable});return e};var ri=(e,t,r)=>(r=e!=null?zw(Ww(e)):{},$w(t||!e||!e.__esModule?Os(r,"default",{value:e,enumerable:!0}):r,e));var uc=ti((Mv,Lu)=>{(function(e){"use strict";var t=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},a=!0,o="[DecimalError] ",n=o+"Invalid argument: ",i=o+"Exponent out of range: ",u=Math.floor,l=Math.pow,s=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,c,f=1e7,d=7,p=9007199254740991,h=u(p/d),m={};m.absoluteValue=m.abs=function(){var g=new this.constructor(this);return g.s&&(g.s=1),g},m.comparedTo=m.cmp=function(g){var y,C,I,x,w=this;if(g=new w.constructor(g),w.s!==g.s)return w.s||-g.s;if(w.e!==g.e)return w.e>g.e^w.s<0?1:-1;for(I=w.d.length,x=g.d.length,y=0,C=Ig.d[y]^w.s<0?1:-1;return I===x?0:I>x^w.s<0?1:-1},m.decimalPlaces=m.dp=function(){var g=this,y=g.d.length-1,C=(y-g.e)*d;if(y=g.d[y],y)for(;y%10==0;y/=10)C--;return C<0?0:C},m.dividedBy=m.div=function(g){return L(this,new this.constructor(g))},m.dividedToIntegerBy=m.idiv=function(g){var y=this,C=y.constructor;return N(L(y,new C(g),0,1),C.precision)},m.equals=m.eq=function(g){return!this.cmp(g)},m.exponent=function(){return S(this)},m.greaterThan=m.gt=function(g){return this.cmp(g)>0},m.greaterThanOrEqualTo=m.gte=function(g){return this.cmp(g)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return this.s===0},m.lessThan=m.lt=function(g){return this.cmp(g)<0},m.lessThanOrEqualTo=m.lte=function(g){return this.cmp(g)<1},m.logarithm=m.log=function(g){var y,C=this,I=C.constructor,x=I.precision,w=x+5;if(g===void 0)g=new I(10);else if(g=new I(g),g.s<1||g.eq(c))throw Error(o+"NaN");if(C.s<1)throw Error(o+(C.s?"NaN":"-Infinity"));return C.eq(c)?new I(0):(a=!1,y=L(A(C,w),A(g,w),w),a=!0,N(y,x))},m.minus=m.sub=function(g){var y=this;return g=new y.constructor(g),y.s==g.s?W(y,g):v(y,(g.s=-g.s,g))},m.modulo=m.mod=function(g){var y,C=this,I=C.constructor,x=I.precision;if(g=new I(g),!g.s)throw Error(o+"NaN");return C.s?(a=!1,y=L(C,g,0,1).times(g),a=!0,C.minus(y)):N(new I(C),x)},m.naturalExponential=m.exp=function(){return E(this)},m.naturalLogarithm=m.ln=function(){return A(this)},m.negated=m.neg=function(){var g=new this.constructor(this);return g.s=-g.s||0,g},m.plus=m.add=function(g){var y=this;return g=new y.constructor(g),y.s==g.s?v(y,g):W(y,(g.s=-g.s,g))},m.precision=m.sd=function(g){var y,C,I,x=this;if(g!==void 0&&g!==!!g&&g!==1&&g!==0)throw Error(n+g);if(y=S(x)+1,I=x.d.length-1,C=I*d+1,I=x.d[I],I){for(;I%10==0;I/=10)C--;for(I=x.d[0];I>=10;I/=10)C++}return g&&y>C?y:C},m.squareRoot=m.sqrt=function(){var g,y,C,I,x,w,D,_=this,B=_.constructor;if(_.s<1){if(!_.s)return new B(0);throw Error(o+"NaN")}for(g=S(_),a=!1,x=Math.sqrt(+_),x==0||x==1/0?(y=O(_.d),(y.length+g)%2==0&&(y+="0"),x=Math.sqrt(y),g=u((g+1)/2)-(g<0||g%2),x==1/0?y="5e"+g:(y=x.toExponential(),y=y.slice(0,y.indexOf("e")+1)+g),I=new B(y)):I=new B(x.toString()),C=B.precision,x=D=C+3;;)if(w=I,I=w.plus(L(_,w,D+2)).times(.5),O(w.d).slice(0,D)===(y=O(I.d)).slice(0,D)){if(y=y.slice(D-3,D+1),x==D&&y=="4999"){if(N(w,C+1,0),w.times(w).eq(_)){I=w;break}}else if(y!="9999")break;D+=4}return a=!0,N(I,C)},m.times=m.mul=function(g){var y,C,I,x,w,D,_,B,U,j=this,H=j.constructor,oe=j.d,T=(g=new H(g)).d;if(!j.s||!g.s)return new H(0);for(g.s*=j.s,C=j.e+g.e,B=oe.length,U=T.length,B=0;){for(y=0,x=B+I;x>I;)_=w[x]+T[I]*oe[x-I-1]+y,w[x--]=_%f|0,y=_/f|0;w[x]=(w[x]+y)%f|0}for(;!w[--D];)w.pop();return y?++C:w.shift(),g.d=w,g.e=C,a?N(g,H.precision):g},m.toDecimalPlaces=m.todp=function(g,y){var C=this,I=C.constructor;return C=new I(C),g===void 0?C:(b(g,0,t),y===void 0?y=I.rounding:b(y,0,8),N(C,g+S(C)+1,y))},m.toExponential=function(g,y){var C,I=this,x=I.constructor;return g===void 0?C=F(I,!0):(b(g,0,t),y===void 0?y=x.rounding:b(y,0,8),I=N(new x(I),g+1,y),C=F(I,!0,g+1)),C},m.toFixed=function(g,y){var C,I,x=this,w=x.constructor;return g===void 0?F(x):(b(g,0,t),y===void 0?y=w.rounding:b(y,0,8),I=N(new w(x),g+S(x)+1,y),C=F(I.abs(),!1,g+S(I)+1),x.isneg()&&!x.isZero()?"-"+C:C)},m.toInteger=m.toint=function(){var g=this,y=g.constructor;return N(new y(g),S(g)+1,y.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(g){var y,C,I,x,w,D,_=this,B=_.constructor,U=12,j=+(g=new B(g));if(!g.s)return new B(c);if(_=new B(_),!_.s){if(g.s<1)throw Error(o+"Infinity");return _}if(_.eq(c))return _;if(I=B.precision,g.eq(c))return N(_,I);if(y=g.e,C=g.d.length-1,D=y>=C,w=_.s,D){if((C=j<0?-j:j)<=p){for(x=new B(c),y=Math.ceil(I/d+4),a=!1;C%2&&(x=x.times(_),$(x.d,y)),C=u(C/2),C!==0;)_=_.times(_),$(_.d,y);return a=!0,g.s<0?new B(c).div(x):N(x,I)}}else if(w<0)throw Error(o+"NaN");return w=w<0&&g.d[Math.max(y,C)]&1?-1:1,_.s=1,a=!1,x=g.times(A(_,I+U)),a=!0,x=E(x),x.s=w,x},m.toPrecision=function(g,y){var C,I,x=this,w=x.constructor;return g===void 0?(C=S(x),I=F(x,C<=w.toExpNeg||C>=w.toExpPos)):(b(g,1,t),y===void 0?y=w.rounding:b(y,0,8),x=N(new w(x),g,y),C=S(x),I=F(x,g<=C||C<=w.toExpNeg,g)),I},m.toSignificantDigits=m.tosd=function(g,y){var C=this,I=C.constructor;return g===void 0?(g=I.precision,y=I.rounding):(b(g,1,t),y===void 0?y=I.rounding:b(y,0,8)),N(new I(C),g,y)},m.toString=m.valueOf=m.val=m.toJSON=function(){var g=this,y=S(g),C=g.constructor;return F(g,y<=C.toExpNeg||y>=C.toExpPos)};function v(g,y){var C,I,x,w,D,_,B,U,j=g.constructor,H=j.precision;if(!g.s||!y.s)return y.s||(y=new j(g)),a?N(y,H):y;if(B=g.d,U=y.d,D=g.e,x=y.e,B=B.slice(),w=D-x,w){for(w<0?(I=B,w=-w,_=U.length):(I=U,x=D,_=B.length),D=Math.ceil(H/d),_=D>_?D+1:_+1,w>_&&(w=_,I.length=1),I.reverse();w--;)I.push(0);I.reverse()}for(_=B.length,w=U.length,_-w<0&&(w=_,I=U,U=B,B=I),C=0;w;)C=(B[--w]=B[w]+U[w]+C)/f|0,B[w]%=f;for(C&&(B.unshift(C),++x),_=B.length;B[--_]==0;)B.pop();return y.d=B,y.e=x,a?N(y,H):y}function b(g,y,C){if(g!==~~g||gC)throw Error(n+g)}function O(g){var y,C,I,x=g.length-1,w="",D=g[0];if(x>0){for(w+=D,y=1;yD?1:-1;else for(_=B=0;_x[_]?1:-1;break}return B}function C(I,x,w){for(var D=0;w--;)I[w]-=D,D=I[w]1;)I.shift()}return function(I,x,w,D){var _,B,U,j,H,oe,T,q,V,R,we,ee,ze,Fe,ht,Pa,Pt,Qn,ei=I.constructor,qw=I.s==x.s?1:-1,Nt=I.d,Ee=x.d;if(!I.s)return new ei(I);if(!x.s)throw Error(o+"Division by zero");for(B=I.e-x.e,Pt=Ee.length,ht=Nt.length,T=new ei(qw),q=T.d=[],U=0;Ee[U]==(Nt[U]||0);)++U;if(Ee[U]>(Nt[U]||0)&&--B,w==null?ee=w=ei.precision:D?ee=w+(S(I)-S(x))+1:ee=w,ee<0)return new ei(0);if(ee=ee/d+2|0,U=0,Pt==1)for(j=0,Ee=Ee[0],ee++;(U1&&(Ee=g(Ee,j),Nt=g(Nt,j),Pt=Ee.length,ht=Nt.length),Fe=Pt,V=Nt.slice(0,Pt),R=V.length;R=f/2&&++Pa;do j=0,_=y(Ee,V,Pt,R),_<0?(we=V[0],Pt!=R&&(we=we*f+(V[1]||0)),j=we/Pa|0,j>1?(j>=f&&(j=f-1),H=g(Ee,j),oe=H.length,R=V.length,_=y(H,V,oe,R),_==1&&(j--,C(H,Pt16)throw Error(i+S(g));if(!g.s)return new j(c);for(y==null?(a=!1,_=H):_=y,D=new j(.03125);g.abs().gte(.1);)g=g.times(D),U+=5;for(I=Math.log(l(2,U))/Math.LN10*2+5|0,_+=I,C=x=w=new j(c),j.precision=_;;){if(x=N(x.times(g),_),C=C.times(++B),D=w.plus(L(x,C,_)),O(D.d).slice(0,_)===O(w.d).slice(0,_)){for(;U--;)w=N(w.times(w),_);return j.precision=H,y==null?(a=!0,N(w,H)):w}w=D}}function S(g){for(var y=g.e*d,C=g.d[0];C>=10;C/=10)y++;return y}function k(g,y,C){if(y>g.LN10.sd())throw a=!0,C&&(g.precision=C),Error(o+"LN10 precision limit exceeded");return N(new g(g.LN10),y)}function M(g){for(var y="";g--;)y+="0";return y}function A(g,y){var C,I,x,w,D,_,B,U,j,H=1,oe=10,T=g,q=T.d,V=T.constructor,R=V.precision;if(T.s<1)throw Error(o+(T.s?"NaN":"-Infinity"));if(T.eq(c))return new V(0);if(y==null?(a=!1,U=R):U=y,T.eq(10))return y==null&&(a=!0),k(V,U);if(U+=oe,V.precision=U,C=O(q),I=C.charAt(0),w=S(T),Math.abs(w)<15e14){for(;I<7&&I!=1||I==1&&C.charAt(1)>3;)T=T.times(g),C=O(T.d),I=C.charAt(0),H++;w=S(T),I>1?(T=new V("0."+C),w++):T=new V(I+"."+C.slice(1))}else return B=k(V,U+2,R).times(w+""),T=A(new V(I+"."+C.slice(1)),U-oe).plus(B),V.precision=R,y==null?(a=!0,N(T,R)):T;for(_=D=T=L(T.minus(c),T.plus(c),U),j=N(T.times(T),U),x=3;;){if(D=N(D.times(j),U),B=_.plus(L(D,new V(x),U)),O(B.d).slice(0,U)===O(_.d).slice(0,U))return _=_.times(2),w!==0&&(_=_.plus(k(V,U+2,R).times(w+""))),_=L(_,new V(H),U),V.precision=R,y==null?(a=!0,N(_,R)):_;_=B,x+=2}}function z(g,y){var C,I,x;for((C=y.indexOf("."))>-1&&(y=y.replace(".","")),(I=y.search(/e/i))>0?(C<0&&(C=I),C+=+y.slice(I+1),y=y.substring(0,I)):C<0&&(C=y.length),I=0;y.charCodeAt(I)===48;)++I;for(x=y.length;y.charCodeAt(x-1)===48;)--x;if(y=y.slice(I,x),y){if(x-=I,C=C-I-1,g.e=u(C/d),g.d=[],I=(C+1)%d,C<0&&(I+=d),Ih||g.e<-h))throw Error(i+C)}else g.s=0,g.e=0,g.d=[0];return g}function N(g,y,C){var I,x,w,D,_,B,U,j,H=g.d;for(D=1,w=H[0];w>=10;w/=10)D++;if(I=y-D,I<0)I+=d,x=y,U=H[j=0];else{if(j=Math.ceil((I+1)/d),w=H.length,j>=w)return g;for(U=w=H[j],D=1;w>=10;w/=10)D++;I%=d,x=I-d+D}if(C!==void 0&&(w=l(10,D-x-1),_=U/w%10|0,B=y<0||H[j+1]!==void 0||U%w,B=C<4?(_||B)&&(C==0||C==(g.s<0?3:2)):_>5||_==5&&(C==4||B||C==6&&(I>0?x>0?U/l(10,D-x):0:H[j-1])%10&1||C==(g.s<0?8:7))),y<1||!H[0])return B?(w=S(g),H.length=1,y=y-w-1,H[0]=l(10,(d-y%d)%d),g.e=u(-y/d)||0):(H.length=1,H[0]=g.e=g.s=0),g;if(I==0?(H.length=j,w=1,j--):(H.length=j+1,w=l(10,d-I),H[j]=x>0?(U/l(10,D-x)%l(10,x)|0)*w:0),B)for(;;)if(j==0){(H[0]+=w)==f&&(H[0]=1,++g.e);break}else{if(H[j]+=w,H[j]!=f)break;H[j--]=0,w=1}for(I=H.length;H[--I]===0;)H.pop();if(a&&(g.e>h||g.e<-h))throw Error(i+S(g));return g}function W(g,y){var C,I,x,w,D,_,B,U,j,H,oe=g.constructor,T=oe.precision;if(!g.s||!y.s)return y.s?y.s=-y.s:y=new oe(g),a?N(y,T):y;if(B=g.d,H=y.d,I=y.e,U=g.e,B=B.slice(),D=U-I,D){for(j=D<0,j?(C=B,D=-D,_=H.length):(C=H,I=U,_=B.length),x=Math.max(Math.ceil(T/d),_)+2,D>x&&(D=x,C.length=1),C.reverse(),x=D;x--;)C.push(0);C.reverse()}else{for(x=B.length,_=H.length,j=x<_,j&&(_=x),x=0;x<_;x++)if(B[x]!=H[x]){j=B[x]0;--x)B[_++]=0;for(x=H.length;x>D;){if(B[--x]0?w=w.charAt(0)+"."+w.slice(1)+M(I):D>1&&(w=w.charAt(0)+"."+w.slice(1)),w=w+(x<0?"e":"e+")+x):x<0?(w="0."+M(-x-1)+w,C&&(I=C-D)>0&&(w+=M(I))):x>=D?(w+=M(x+1-D),C&&(I=C-x-1)>0&&(w=w+"."+M(I))):((I=x+1)0&&(x+1===D&&(w+="."),w+=M(I))),g.s<0?"-"+w:w}function $(g,y){if(g.length>y)return g.length=y,!0}function Z(g){var y,C,I;function x(w){var D=this;if(!(D instanceof x))return new x(w);if(D.constructor=x,w instanceof x){D.s=w.s,D.e=w.e,D.d=(w=w.d)?w.slice():w;return}if(typeof w=="number"){if(w*0!==0)throw Error(n+w);if(w>0)D.s=1;else if(w<0)w=-w,D.s=-1;else{D.s=0,D.e=0,D.d=[0];return}if(w===~~w&&w<1e7){D.e=0,D.d=[w];return}return z(D,w.toString())}else if(typeof w!="string")throw Error(n+w);if(w.charCodeAt(0)===45?(w=w.slice(1),D.s=-1):D.s=1,s.test(w))z(D,w);else throw Error(n+w)}if(x.prototype=m,x.ROUND_UP=0,x.ROUND_DOWN=1,x.ROUND_CEIL=2,x.ROUND_FLOOR=3,x.ROUND_HALF_UP=4,x.ROUND_HALF_DOWN=5,x.ROUND_HALF_EVEN=6,x.ROUND_HALF_CEIL=7,x.ROUND_HALF_FLOOR=8,x.clone=Z,x.config=x.set=J,g===void 0&&(g={}),g)for(I=["precision","rounding","toExpNeg","toExpPos","LN10"],y=0;y=x[y+1]&&I<=x[y+2])this[C]=I;else throw Error(n+C+": "+I);if((I=g[C="LN10"])!==void 0)if(I==Math.LN10)this[C]=new this(I);else throw Error(n+C+": "+I);return this}r=Z(r),r.default=r.Decimal=r,c=new r(1),typeof define=="function"&&define.amd?define(function(){return r}):typeof Lu<"u"&&Lu.exports?Lu.exports=r:(e||(e=typeof self<"u"&&self&&self.self==self?self:Function("return this")()),e.Decimal=r)})(Mv)});var yb=ti((DY,_d)=>{"use strict";var wD=Object.prototype.hasOwnProperty,Qe="~";function jn(){}Object.create&&(jn.prototype=Object.create(null),new jn().__proto__||(Qe=!1));function CD(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function xb(e,t,r,a,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var n=new CD(r,a||e,o),i=Qe?Qe+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],n]:e._events[i].push(n):(e._events[i]=n,e._eventsCount++),e}function Vl(e,t){--e._eventsCount===0?e._events=new jn:delete e._events[t]}function Ke(){this._events=new jn,this._eventsCount=0}Ke.prototype.eventNames=function(){var t=[],r,a;if(this._eventsCount===0)return t;for(a in r=this._events)wD.call(r,a)&&t.push(Qe?a.slice(1):a);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Ke.prototype.listeners=function(t){var r=Qe?Qe+t:t,a=this._events[r];if(!a)return[];if(a.fn)return[a.fn];for(var o=0,n=a.length,i=new Array(n);o{"use strict";var Kd=Symbol.for("react.transitional.element"),$d=Symbol.for("react.portal"),as=Symbol.for("react.fragment"),os=Symbol.for("react.strict_mode"),ns=Symbol.for("react.profiler"),is=Symbol.for("react.consumer"),us=Symbol.for("react.context"),ls=Symbol.for("react.forward_ref"),ss=Symbol.for("react.suspense"),fs=Symbol.for("react.suspense_list"),cs=Symbol.for("react.memo"),ds=Symbol.for("react.lazy"),iR=Symbol.for("react.view_transition"),uR=Symbol.for("react.client.reference");function Lt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Kd:switch(e=e.type,e){case as:case ns:case os:case ss:case fs:case iR:return e;default:switch(e=e&&e.$$typeof,e){case us:case ls:case ds:case cs:return e;case is:return e;default:return t}}case $d:return t}}}he.ContextConsumer=is;he.ContextProvider=us;he.Element=Kd;he.ForwardRef=ls;he.Fragment=as;he.Lazy=ds;he.Memo=cs;he.Portal=$d;he.Profiler=ns;he.StrictMode=os;he.Suspense=ss;he.SuspenseList=fs;he.isContextConsumer=function(e){return Lt(e)===is};he.isContextProvider=function(e){return Lt(e)===us};he.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kd};he.isForwardRef=function(e){return Lt(e)===ls};he.isFragment=function(e){return Lt(e)===as};he.isLazy=function(e){return Lt(e)===ds};he.isMemo=function(e){return Lt(e)===cs};he.isPortal=function(e){return Lt(e)===$d};he.isProfiler=function(e){return Lt(e)===ns};he.isStrictMode=function(e){return Lt(e)===os};he.isSuspense=function(e){return Lt(e)===ss};he.isSuspenseList=function(e){return Lt(e)===fs};he.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===as||e===ns||e===os||e===ss||e===fs||typeof e=="object"&&e!==null&&(e.$$typeof===ds||e.$$typeof===cs||e.$$typeof===us||e.$$typeof===is||e.$$typeof===ls||e.$$typeof===uR||e.getModuleId!==void 0)};he.typeOf=Lt});var kI=ti((B6,OI)=>{"use strict";OI.exports=AI()});import{forwardRef as Yw,createElement as Zw}from"react";var Ip=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ai=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();import{forwardRef as Xw,createElement as Cp}from"react";var wp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Lp=Xw(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:n,iconNode:i,...u},l)=>Cp("svg",{ref:l,...wp,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:ai("lucide",o),...u},[...i.map(([s,c])=>Cp(s,c)),...Array.isArray(n)?n:[n]]));var Sp=(e,t)=>{let r=Yw(({className:a,...o},n)=>Zw(Lp,{ref:n,iconNode:t,className:ai(`lucide-${Ip(e)}`,a),...o}));return r.displayName=`${e}`,r};var Oo=Sp("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);import*as oi from"react";import{forwardRef as nC}from"react";function Pp(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{var{children:r,width:a,height:o,viewBox:n,className:i,style:u,title:l,desc:s}=e,c=aC(e,rC),f=n||{width:a,height:o,x:0,y:0},d=re("recharts-surface",i);return oi.createElement("svg",Ms({},Le(c),{className:d,width:a,height:o,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),oi.createElement("title",null,l),oi.createElement("desc",null,s),r)});import*as ni from"react";var iC=["children","className"];function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:r,className:a}=e,o=uC(e,iC),n=re("recharts-layer",a);return ni.createElement("g",Ts({className:n},Le(o),{ref:t}),r)});import{createContext as sC,useContext as JN}from"react";var Ap=sC(null);import*as Gp from"react";function fe(e){return function(){return e}}var Rs=Math.cos;var Mo=Math.sin,je=Math.sqrt;var Ur=Math.PI,tB=Ur/2,Aa=2*Ur;var _s=Math.PI,Ns=2*_s,qr=1e-6,fC=Ns-qr;function Op(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Op;let r=10**t;return function(a){this._+=a[0];for(let o=1,n=a.length;oqr)if(!(Math.abs(f*l-s*c)>qr)||!n)this._append`L${this._x1=t},${this._y1=r}`;else{let p=a-i,h=o-u,m=l*l+s*s,v=p*p+h*h,b=Math.sqrt(m),O=Math.sqrt(d),L=n*Math.tan((_s-Math.acos((m+d-v)/(2*b*O)))/2),E=L/O,S=L/b;Math.abs(E-1)>qr&&this._append`L${t+E*c},${r+E*f}`,this._append`A${n},${n},0,0,${+(f*p>c*h)},${this._x1=t+S*l},${this._y1=r+S*s}`}}arc(t,r,a,o,n,i){if(t=+t,r=+r,a=+a,i=!!i,a<0)throw new Error(`negative radius: ${a}`);let u=a*Math.cos(o),l=a*Math.sin(o),s=t+u,c=r+l,f=1^i,d=i?o-n:n-o;this._x1===null?this._append`M${s},${c}`:(Math.abs(this._x1-s)>qr||Math.abs(this._y1-c)>qr)&&this._append`L${s},${c}`,a&&(d<0&&(d=d%Ns+Ns),d>fC?this._append`A${a},${a},0,1,${f},${t-u},${r-l}A${a},${a},0,1,${f},${this._x1=s},${this._y1=c}`:d>qr&&this._append`A${a},${a},0,${+(d>=_s)},${f},${this._x1=t+a*Math.cos(n)},${this._y1=r+a*Math.sin(n)}`)}rect(t,r,a,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${a=+a}v${+o}h${-a}Z`}toString(){return this._}};function kp(){return new zr}kp.prototype=zr.prototype;function Oa(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let a=Math.floor(r);if(!(a>=0))throw new RangeError(`invalid digits: ${r}`);t=a}return e},()=>new zr(t)}var sB=Array.prototype.slice;function ka(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ep(e){this._context=e}Ep.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function gr(e){return new Ep(e)}function ii(e){return e[0]}function ui(e){return e[1]}function Do(e,t){var r=fe(!0),a=null,o=gr,n=null,i=Oa(u);e=typeof e=="function"?e:e===void 0?ii:fe(e),t=typeof t=="function"?t:t===void 0?ui:fe(t);function u(l){var s,c=(l=ka(l)).length,f,d=!1,p;for(a==null&&(n=o(p=i())),s=0;s<=c;++s)!(s=p;--h)u.point(L[h],E[h]);u.lineEnd(),u.areaEnd()}b&&(L[d]=+e(v,d,f),E[d]=+t(v,d,f),u.point(a?+a(v,d,f):L[d],r?+r(v,d,f):E[d]))}if(O)return u=null,O+""||null}function c(){return Do().defined(o).curve(i).context(n)}return s.x=function(f){return arguments.length?(e=typeof f=="function"?f:fe(+f),a=null,s):e},s.x0=function(f){return arguments.length?(e=typeof f=="function"?f:fe(+f),s):e},s.x1=function(f){return arguments.length?(a=f==null?null:typeof f=="function"?f:fe(+f),s):a},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:fe(+f),r=null,s):t},s.y0=function(f){return arguments.length?(t=typeof f=="function"?f:fe(+f),s):t},s.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:fe(+f),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(a).y(t)},s.defined=function(f){return arguments.length?(o=typeof f=="function"?f:fe(!!f),s):o},s.curve=function(f){return arguments.length?(i=f,n!=null&&(u=i(n)),s):i},s.context=function(f){return arguments.length?(f==null?n=u=null:u=i(n=f),s):n},s}var li=class{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};function Bs(e){return new li(e,!0)}function Fs(e){return new li(e,!1)}var Ma={draw(e,t){let r=je(t/Ur);e.moveTo(r,0),e.arc(0,0,r,0,Aa)}};var js={draw(e,t){let r=je(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};var Mp=je(1/3),dC=Mp*2,Us={draw(e,t){let r=je(t/dC),a=r*Mp;e.moveTo(0,-r),e.lineTo(a,0),e.lineTo(0,r),e.lineTo(-a,0),e.closePath()}};var qs={draw(e,t){let r=je(t),a=-r/2;e.rect(a,a,r,r)}};var pC=.8908130915292852,Dp=Mo(Ur/10)/Mo(7*Ur/10),mC=Mo(Aa/10)*Dp,hC=-Rs(Aa/10)*Dp,zs={draw(e,t){let r=je(t*pC),a=mC*r,o=hC*r;e.moveTo(0,-r),e.lineTo(a,o);for(let n=1;n<5;++n){let i=Aa*n/5,u=Rs(i),l=Mo(i);e.lineTo(l*r,-u*r),e.lineTo(u*a-l*o,l*a+u*o)}e.closePath()}};var Hs=je(3),Vs={draw(e,t){let r=-je(t/(Hs*3));e.moveTo(0,r*2),e.lineTo(-Hs*r,-r),e.lineTo(Hs*r,-r),e.closePath()}};var vt=-.5,xt=je(3)/2,Ws=1/je(12),gC=(Ws/2+1)*3,Gs={draw(e,t){let r=je(t/gC),a=r/2,o=r*Ws,n=a,i=r*Ws+r,u=-n,l=i;e.moveTo(a,o),e.lineTo(n,i),e.lineTo(u,l),e.lineTo(vt*a-xt*o,xt*a+vt*o),e.lineTo(vt*n-xt*i,xt*n+vt*i),e.lineTo(vt*u-xt*l,xt*u+vt*l),e.lineTo(vt*a+xt*o,vt*o-xt*a),e.lineTo(vt*n+xt*i,vt*i-xt*n),e.lineTo(vt*u+xt*l,vt*l-xt*u),e.closePath()}};function si(e,t){let r=null,a=Oa(o);e=typeof e=="function"?e:fe(e||Ma),t=typeof t=="function"?t:fe(t===void 0?64:+t);function o(){let n;if(r||(r=n=a()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),n)return r=null,n+""||null}return o.type=function(n){return arguments.length?(e=typeof n=="function"?n:fe(n),o):e},o.size=function(n){return arguments.length?(t=typeof n=="function"?n:fe(+n),o):t},o.context=function(n){return arguments.length?(r=n??null,o):r},o}function Da(){}function Ta(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Tp(e){this._context=e}Tp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ta(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ta(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ks(e){return new Tp(e)}function Rp(e){this._context=e}Rp.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ta(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $s(e){return new Rp(e)}function _p(e){this._context=e}_p.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:Ta(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Xs(e){return new _p(e)}function Np(e){this._context=e}Np.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Ys(e){return new Np(e)}function Bp(e){return e<0?-1:1}function Fp(e,t,r){var a=e._x1-e._x0,o=t-e._x1,n=(e._y1-e._y0)/(a||o<0&&-0),i=(r-e._y1)/(o||a<0&&-0),u=(n*o+i*a)/(a+o);return(Bp(n)+Bp(i))*Math.min(Math.abs(n),Math.abs(i),.5*Math.abs(u))||0}function jp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Zs(e,t,r){var a=e._x0,o=e._y0,n=e._x1,i=e._y1,u=(n-a)/3;e._context.bezierCurveTo(a+u,o+u*t,n-u,i-u*r,n,i)}function fi(e){this._context=e}fi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Zs(this,this._t0,jp(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Zs(this,jp(this,r=Fp(this,e,t)),r);break;default:Zs(this,this._t0,r=Fp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Up(e){this._context=new qp(e)}(Up.prototype=Object.create(fi.prototype)).point=function(e,t){fi.prototype.point.call(this,t,e)};function qp(e){this._context=e}qp.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,a,o,n){this._context.bezierCurveTo(t,e,a,r,n,o)}};function Js(e){return new fi(e)}function Qs(e){return new Up(e)}function Hp(e){this._context=e}Hp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var a=zp(e),o=zp(t),n=0,i=1;i=0;--t)o[t]=(i[t]-o[t+1])/n[t];for(n[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function tf(e){return new ci(e,.5)}function rf(e){return new ci(e,0)}function af(e){return new ci(e,1)}function it(e,t){if((i=e.length)>1)for(var r=1,a,o,n=e[t[0]],i,u=n.length;r=0;)r[t]=t;return r}function vC(e,t){return e[t]}function xC(e){let t=[];return t.key=e,t}function of(){var e=fe([]),t=Ra,r=it,a=vC;function o(n){var i=Array.from(e.apply(this,arguments),xC),u,l=i.length,s=-1,c;for(let f of n)for(u=0,++s;u0){for(var r,a,o=0,n=e[0].length,i;o0){for(var r=0,a=e[t[0]],o,n=a.length;r0)||!((n=(o=e[t[0]]).length)>0))){for(var r=0,a=1,o,n,i;a1&&arguments[1]!==void 0?arguments[1]:IC,r=10**t,a=Math.round(e*r)/r;return Object.is(a,-0)?0:a}function ve(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{var u=r[i-1];return typeof u=="string"?o+u+n:u!==void 0?o+Bt(u)+n:o+n},"")}var Pe=e=>e===0?0:e>0?1:-1,tt=e=>typeof e=="number"&&e!=+e,Yt=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,X=e=>(typeof e=="number"||e instanceof Number)&&!tt(e),rt=e=>X(e)||typeof e=="string",wC=0,Zt=e=>{var t=++wC;return"".concat(e||"").concat(t)},Ue=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!X(t)&&typeof t!="string")return a;var n;if(Yt(t)){if(r==null)return a;var i=t.indexOf("%");n=r*parseFloat(t.slice(0,i))/100}else n=+t;return tt(n)&&(n=a),o&&r!=null&&n>r&&(n=r),n},ff=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},a=0;aa&&(typeof t=="function"?t(a):$e(a,t))===r)}var Me=e=>e===null||typeof e>"u",Jt=e=>Me(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function ut(e){return e!=null}function Qt(){}var CC=["type","size","sizeType"];function df(){return df=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t="symbol".concat(Jt(e));return Kp[t]||Ma},MC=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var a=18*kC;return 1.25*e*e*(Math.tan(a)-Math.tan(a*2)*Math.tan(a)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},DC=(e,t)=>{Kp["symbol".concat(Jt(e))]=t},pf=e=>{var{type:t="circle",size:r=64,sizeType:a="area"}=e,o=AC(e,CC),n=Wp(Wp({},o),{},{type:t,size:r,sizeType:a}),i="circle";typeof t=="string"&&(i=t);var u=()=>{var d=EC(i),p=si().type(d).size(MC(r,a,i)),h=p();if(h!==null)return h},{className:l,cx:s,cy:c}=n,f=Le(n);return X(s)&&X(c)&&X(r)?Gp.createElement("path",df({},f,{className:re("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(c,")"),d:u()})):null};pf.registerSymbol=DC;import{isValidElement as TC}from"react";var mi=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,$p=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(TC(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var a={};return Object.keys(r).forEach(o=>{ko(o)&&typeof r[o]=="function"&&(a[o]=t||(n=>r[o](r,n)))}),a},RC=(e,t,r)=>a=>(e(t,r,a),null),Xp=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var a=null;return Object.keys(e).forEach(o=>{var n=e[o];ko(o)&&typeof n=="function"&&(a||(a={}),a[o]=RC(n,t,r))}),a};function Yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function _C(e){for(var t=1;t(i[u]===void 0&&a[u]!==void 0&&(i[u]=a[u]),i),r);return n}function Zp(e,t){let r=new Map;for(let a=0;aObject.prototype.propertyIsEnumerable.call(e,t))}function Ba(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var rm="[object RegExp]",gi="[object String]",vi="[object Number]",xi="[object Boolean]",yi="[object Arguments]",am="[object Symbol]",om="[object Date]",nm="[object Map]",im="[object Set]",um="[object Array]";var lm="[object ArrayBuffer]",sm="[object Object]";var fm="[object DataView]",cm="[object Uint8Array]",dm="[object Uint8ClampedArray]",pm="[object Uint16Array]",mm="[object Uint32Array]";var hm="[object Int8Array]",gm="[object Int16Array]",vm="[object Int32Array]";var xm="[object Float32Array]",ym="[object Float64Array]";var mf=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}();function bm(e){return typeof mf.Buffer<"u"&&mf.Buffer.isBuffer(e)}function Im(e,t){return vr(e,void 0,e,new Map,t)}function vr(e,t,r,a=new Map,o=void 0){let n=o?.(e,t,r,a);if(n!==void 0)return n;if(To(e))return e;if(a.has(e))return a.get(e);if(Array.isArray(e)){let i=new Array(e.length);a.set(e,i);for(let u=0;u{}):hf(e,t,function a(o,n,i,u,l,s){let c=r(o,n,i,u,l,s);return c!==void 0?!!c:hf(o,n,a,s)},new Map)}function hf(e,t,r,a){if(t===e)return!0;switch(typeof t){case"object":return UC(e,t,r,a);case"function":return Object.keys(t).length>0?hf(e,{...t},r,a):Ro(e,t);default:return bi(e)?typeof t=="string"?t==="":!0:Ro(e,t)}}function UC(e,t,r,a){if(t==null)return!0;if(Array.isArray(t))return Cm(e,t,r,a);if(t instanceof Map)return qC(e,t,r,a);if(t instanceof Set)return zC(e,t,r,a);let o=Object.keys(t);if(e==null||To(e))return o.length===0;if(o.length===0)return!0;if(a?.has(t))return a.get(t)===e;a?.set(t,e);try{for(let n=0;n{})}function Lm(e){return e=wm(e),t=>Ii(t,e)}function Sm(e,t){return Im(e,(r,a,o,n)=>{let i=t?.(r,a,o,n);if(i!==void 0)return i;if(typeof e=="object"){if(Ba(e)==="[object Object]"&&typeof e.constructor!="function"){let u={};return n.set(e,u),yt(u,e,o,n),u}switch(Object.prototype.toString.call(e)){case vi:case gi:case xi:{let u=new e.constructor(e?.valueOf());return yt(u,e),u}case yi:{let u={};return yt(u,e),u.length=e.length,u[Symbol.iterator]=e[Symbol.iterator],u}default:return}}})}function Pm(e){return Sm(e)}var HC=/^(?:0|[1-9]\d*)$/;function wi(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e=0}function Ci(e){return e!=null&&typeof e!="function"&&Mm(e.length)}function Dm(e){return typeof e=="object"&&e!==null}function Tm(e){return Dm(e)&&Ci(e)}function Li(e,t=hi){return Tm(e)?Zp(Array.from(e),Jp(Em(t),1)):[]}function Rm(e,t,r){return t===!0?Li(e,r):typeof t=="function"?Li(e,t):e}import*as vf from"react";var{useRef:VC,useEffect:WC,useMemo:GC,useDebugValue:KC}=vf;function xf(e,t,r,a,o){let n=VC(null),i;n.current===null?(i={hasValue:!1,value:null},n.current=i):i=n.current;let[u,l]=GC(()=>{let c=!1,f,d,p=b=>{if(!c){c=!0,f=b;let S=a(b);if(o!==void 0&&i.hasValue){let k=i.value;if(o(k,S))return d=k,k}return d=S,S}let O=f,L=d;if(Object.is(O,b))return L;let E=a(b);return o!==void 0&&o(L,E)?(f=b,L):(f=b,d=E,E)},h=r===void 0?null:r;return[()=>p(t()),h===null?void 0:()=>p(h())]},[t,r,a,o]),s=vf.useSyncExternalStore(e,u,l);return WC(()=>{i.hasValue=!0,i.value=s},[s]),KC(s),s}import{useContext as _m,useMemo as XC}from"react";import{createContext as $C}from"react";var _o=$C(null);var YC=e=>e,ne=()=>{var e=_m(_o);return e?e.store.dispatch:YC},Si=()=>{},ZC=()=>Si,JC=(e,t)=>e===t;function Y(e){var t=_m(_o),r=XC(()=>t?a=>{if(a!=null)return e(a)}:Si,[t,e]);return xf(t?t.subscription.addNestedSub:ZC,t?t.store.getState:Si,t?t.store.getState:Si,r,JC)}function QC(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function eL(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function tL(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){let r=e.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${t}[${r}]`)}}var Nm=e=>Array.isArray(e)?e:[e];function rL(e){let t=Array.isArray(e[0])?e[0]:e;return tL(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function aL(e,t){let r=[],{length:a}=e;for(let o=0;o{r=Pi(),i.resetResultsCount()},i.resultsCount=()=>n,i.resetResultsCount=()=>{n=0},i}function uL(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,a=(...o)=>{let n=0,i=0,u,l={},s=o.pop();typeof s=="object"&&(l=s,s=o.pop()),QC(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);let c={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:p=Fm,argsMemoizeOptions:h=[],devModeChecks:m={}}=c,v=Nm(d),b=Nm(h),O=rL(o),L=f(function(){return n++,s.apply(null,arguments)},...v),E=!0,S=p(function(){i++;let M=aL(O,arguments);return u=L.apply(null,M),u},...b);return Object.assign(S,{resultFunc:s,memoizedResultFunc:L,dependencies:O,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>u,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:f,argsMemoize:p})};return Object.assign(a,{withTypes:()=>a}),a}var P=uL(Fm),lL=Object.assign((e,t=P)=>{eL(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),a=r.map(n=>e[n]);return t(a,(...n)=>n.reduce((i,u,l)=>(i[r[l]]=u,i),{}))},{withTypes:()=>lL});function jm(e,t=1){let r=[],a=Math.floor(t),o=(n,i)=>{for(let u=0;u{if(e!==t){let a=Um(e),o=Um(t);if(a===o&&a===0){if(et)return r==="desc"?-1:1}return r==="desc"?o-a:a-o}return 0};function Ai(e){return typeof e=="symbol"||e instanceof Symbol}var sL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fL=/^\w*$/;function zm(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Ai(e)?!0:typeof e=="string"&&(fL.test(e)||!sL.test(e))||t!=null&&Object.hasOwn(t,e)}function Hm(e,t,r,a){if(e==null)return[];r=a?void 0:r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(u=>String(u));let o=(u,l)=>{let s=u;for(let c=0;cl==null||u==null?l:typeof u=="object"&&"key"in u?Object.hasOwn(l,u.key)?l[u.key]:o(l,u.path):typeof u=="function"?u(l):Array.isArray(u)?o(l,u):typeof l=="object"?l[u]:l,i=t.map(u=>(Array.isArray(u)&&u.length===1&&(u=u[0]),u==null||typeof u=="function"||Array.isArray(u)||zm(u)?u:{key:u,path:Na(u)}));return e.map(u=>({original:u,criteria:i.map(l=>n(l,u))})).slice().sort((u,l)=>{for(let s=0;su.original)}function er(e,...t){let r=t.length;return r>1&&No(e,t[0],t[1])?t=[]:r>2&&No(t[0],t[1],t[2])&&(t=[t[0]]),Hm(e,jm(t),["asc"])}var yf=e=>e.legend.settings,Vm=e=>e.legend.size,cL=e=>e.legend.payload,xU=P([cL,yf],(e,t)=>{var{itemSorter:r}=t,a=e.flat(1);return r?er(a,r):a});import{useCallback as dL,useState as pL}from"react";var Oi=1;function Wm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=pL({height:0,left:0,top:0,width:0}),a=dL(o=>{if(o!=null){var n=o.getBoundingClientRect(),i={height:n.height,left:n.left,top:n.top,width:n.width};(Math.abs(i.height-t.height)>Oi||Math.abs(i.left-t.left)>Oi||Math.abs(i.top-t.top)>Oi||Math.abs(i.width-t.width)>Oi)&&r({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,a]}import{useEffect as XS}from"react";function He(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var mL=typeof Symbol=="function"&&Symbol.observable||"@@observable",Gm=mL,bf=()=>Math.random().toString(36).substring(7).split("").join("."),hL={INIT:`@@redux/INIT${bf()}`,REPLACE:`@@redux/REPLACE${bf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${bf()}`},ki=hL;function Ei(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function If(e,t,r){if(typeof e!="function")throw new Error(He(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(He(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(He(1));return r(If)(e,t)}let a=e,o=t,n=new Map,i=n,u=0,l=!1;function s(){i===n&&(i=new Map,n.forEach((v,b)=>{i.set(b,v)}))}function c(){if(l)throw new Error(He(3));return o}function f(v){if(typeof v!="function")throw new Error(He(4));if(l)throw new Error(He(5));let b=!0;s();let O=u++;return i.set(O,v),function(){if(b){if(l)throw new Error(He(6));b=!1,s(),i.delete(O),n=null}}}function d(v){if(!Ei(v))throw new Error(He(7));if(typeof v.type>"u")throw new Error(He(8));if(typeof v.type!="string")throw new Error(He(17));if(l)throw new Error(He(9));try{l=!0,o=a(o,v)}finally{l=!1}return(n=i).forEach(O=>{O()}),v}function p(v){if(typeof v!="function")throw new Error(He(10));a=v,d({type:ki.REPLACE})}function h(){let v=f;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(He(11));function O(){let E=b;E.next&&E.next(c())}return O(),{unsubscribe:v(O)}},[Gm](){return this}}}return d({type:ki.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:p,[Gm]:h}}function gL(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:ki.INIT})>"u")throw new Error(He(12));if(typeof r(void 0,{type:ki.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(He(13))})}function Mi(e){let t=Object.keys(e),r={};for(let i=0;i"u"){let v=l&&l.type;throw new Error(He(14))}c[d]=m,s=s||m!==h}return s=s||a.length!==Object.keys(u).length,s?c:u}}function Bo(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...a)=>t(r(...a)))}function Km(...e){return t=>(r,a)=>{let o=t(r,a),n=()=>{throw new Error(He(15))},i={getState:o.getState,dispatch:(l,...s)=>n(l,...s)},u=e.map(l=>l(i));return n=Bo(...u)(o.dispatch),{...o,dispatch:n}}}function wf(e){return Ei(e)&&"type"in e&&typeof e.type=="string"}var ah=Symbol.for("immer-nothing"),$m=Symbol.for("immer-draftable"),Xe=Symbol.for("immer-state");function At(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var lt=Object,ja=lt.getPrototypeOf,_i="constructor",qi="prototype",Sf="configurable",Ni="enumerable",Ti="writable",Fo="value",Ft=e=>!!e&&!!e[Xe];function bt(e){return e?oh(e)||Hi(e)||!!e[$m]||!!e[_i]?.[$m]||Vi(e)||Wi(e):!1}var vL=lt[qi][_i].toString(),Xm=new WeakMap;function oh(e){if(!e||!Tf(e))return!1;let t=ja(e);if(t===null||t===lt[qi])return!0;let r=lt.hasOwnProperty.call(t,_i)&&t[_i];if(r===Object)return!0;if(!Fa(r))return!1;let a=Xm.get(r);return a===void 0&&(a=Function.toString.call(r),Xm.set(r,a)),a===vL}function zi(e,t,r=!0){qo(e)===0?(r?Reflect.ownKeys(e):lt.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((a,o)=>t(o,a,e))}function qo(e){let t=e[Xe];return t?t.type_:Hi(e)?1:Vi(e)?2:Wi(e)?3:0}var Ym=(e,t,r=qo(e))=>r===2?e.has(t):lt[qi].hasOwnProperty.call(e,t),Pf=(e,t,r=qo(e))=>r===2?e.get(t):e[t],Bi=(e,t,r,a=qo(e))=>{a===2?e.set(t,r):a===3?e.add(r):e[t]=r};function xL(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Hi=Array.isArray,Vi=e=>e instanceof Map,Wi=e=>e instanceof Set,Tf=e=>typeof e=="object",Fa=e=>typeof e=="function",Cf=e=>typeof e=="boolean";function yL(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var tr=e=>e.copy_||e.base_;var Rf=e=>e.modified_?e.copy_:e.base_;function Af(e,t){if(Vi(e))return new Map(e);if(Wi(e))return new Set(e);if(Hi(e))return Array[qi].slice.call(e);let r=oh(e);if(t===!0||t==="class_only"&&!r){let a=lt.getOwnPropertyDescriptors(e);delete a[Xe];let o=Reflect.ownKeys(a);for(let n=0;n1&<.defineProperties(e,{set:Di,add:Di,clear:Di,delete:Di}),lt.freeze(e),t&&zi(e,(r,a)=>{_f(a,!0)},!1)),e}function bL(){At(2)}var Di={[Fo]:bL};function Gi(e){return e===null||!Tf(e)?!0:lt.isFrozen(e)}var Fi="MapSet",Of="Patches",Zm="ArrayMethods",nh={};function Hr(e){let t=nh[e];return t||At(0,e),t}var Jm=e=>!!nh[e];var jo,ih=()=>jo,IL=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Jm(Fi)?Hr(Fi):void 0,arrayMethodsPlugin_:Jm(Zm)?Hr(Zm):void 0});function Qm(e,t){t&&(e.patchPlugin_=Hr(Of),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function kf(e){Ef(e),e.drafts_.forEach(wL),e.drafts_=null}function Ef(e){e===jo&&(jo=e.parent_)}var eh=e=>jo=IL(jo,e);function wL(e){let t=e[Xe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function th(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[Xe].modified_&&(kf(t),At(4)),bt(e)&&(e=rh(t,e));let{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[Xe].base_,e,t)}else e=rh(t,r);return CL(t,e,!0),kf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ah?e:void 0}function rh(e,t){if(Gi(t))return t;let r=t[Xe];if(!r)return ji(t,e.handledSet_,e);if(!Ki(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:a}=r;if(a)for(;a.length>0;)a.pop()(e);sh(r,e)}return r.copy_}function CL(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_f(t,r)}function uh(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ki=(e,t)=>e.scope_===t,LL=[];function lh(e,t,r,a){let o=tr(e),n=e.type_;if(a!==void 0&&Pf(o,a,n)===t){Bi(o,a,r,n);return}if(!e.draftLocations_){let u=e.draftLocations_=new Map;zi(o,(l,s)=>{if(Ft(s)){let c=u.get(s)||[];c.push(l),u.set(s,c)}})}let i=e.draftLocations_.get(t)??LL;for(let u of i)Bi(o,u,r,n)}function SL(e,t,r){e.callbacks_.push(function(o){let n=t;if(!n||!Ki(n,o))return;o.mapSetPlugin_?.fixSetContents(n);let i=Rf(n);lh(e,n.draft_??n,i,r),sh(n,o)})}function sh(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:a}=t;if(a){let o=a.getPath(e);o&&a.generatePatches_(e,o,t)}uh(e)}}function PL(e,t,r){let{scope_:a}=e;if(Ft(r)){let o=r[Xe];Ki(o,a)&&o.callbacks_.push(function(){Ri(e);let i=Rf(o);lh(e,r,i,t)})}else bt(r)&&e.callbacks_.push(function(){let n=tr(e);e.type_===3?n.has(r)&&ji(r,a.handledSet_,a):Pf(n,t,e.type_)===r&&a.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ji(Pf(e.copy_,t,e.type_),a.handledSet_,a)})}function ji(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ft(e)||t.has(e)||!bt(e)||Gi(e)||(t.add(e),zi(e,(a,o)=>{if(Ft(o)){let n=o[Xe];if(Ki(n,r)){let i=Rf(n);Bi(e,a,i,e.type_),uh(n)}}else bt(o)&&ji(o,t,r)})),e}function AL(e,t){let r=Hi(e),a={type_:r?1:0,scope_:t?t.scope_:ih(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=a,n=Ui;r&&(o=[a],n=Uo);let{revoke:i,proxy:u}=Proxy.revocable(o,n);return a.draft_=u,a.revoke_=i,[u,a]}var Ui={get(e,t){if(t===Xe)return e;let r=e.scope_.arrayMethodsPlugin_,a=e.type_===1&&typeof t=="string";if(a&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let o=tr(e);if(!Ym(o,t,e.type_))return OL(e,o,t);let n=o[t];if(e.finalized_||!bt(n)||a&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&yL(t))return n;if(n===Lf(e.base_,t)){Ri(e);let i=e.type_===1?+t:t,u=Df(e.scope_,n,e,i);return e.copy_[i]=u}return n},has(e,t){return t in tr(e)},ownKeys(e){return Reflect.ownKeys(tr(e))},set(e,t,r){let a=fh(tr(e),t);if(a?.set)return a.set.call(e.draft_,r),!0;if(!e.modified_){let o=Lf(tr(e),t),n=o?.[Xe];if(n&&n.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(xL(r,o)&&(r!==void 0||Ym(e.base_,t,e.type_)))return!0;Ri(e),Mf(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),PL(e,t,r)),!0},deleteProperty(e,t){return Ri(e),Lf(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Mf(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=tr(e),a=Reflect.getOwnPropertyDescriptor(r,t);return a&&{[Ti]:!0,[Sf]:e.type_!==1||t!=="length",[Ni]:a[Ni],[Fo]:r[t]}},defineProperty(){At(11)},getPrototypeOf(e){return ja(e.base_)},setPrototypeOf(){At(12)}},Uo={};for(let e in Ui){let t=Ui[e];Uo[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Uo.deleteProperty=function(e,t){return Uo.set.call(this,e,t,void 0)};Uo.set=function(e,t,r){return Ui.set.call(this,e[0],t,r,e[0])};function Lf(e,t){let r=e[Xe];return(r?tr(r):e)[t]}function OL(e,t,r){let a=fh(t,r);return a?Fo in a?a[Fo]:a.get?.call(e.draft_):void 0}function fh(e,t){if(!(t in e))return;let r=ja(e);for(;r;){let a=Object.getOwnPropertyDescriptor(r,t);if(a)return a;r=ja(r)}}function Mf(e){e.modified_||(e.modified_=!0,e.parent_&&Mf(e.parent_))}function Ri(e){e.copy_||(e.assigned_=new Map,e.copy_=Af(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var kL=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,a)=>{if(Fa(t)&&!Fa(r)){let n=r;r=t;let i=this;return function(l=n,...s){return i.produce(l,c=>r.call(this,c,...s))}}Fa(r)||At(6),a!==void 0&&!Fa(a)&&At(7);let o;if(bt(t)){let n=eh(this),i=Df(n,t,void 0),u=!0;try{o=r(i),u=!1}finally{u?kf(n):Ef(n)}return Qm(n,a),th(o,n)}else if(!t||!Tf(t)){if(o=r(t),o===void 0&&(o=t),o===ah&&(o=void 0),this.autoFreeze_&&_f(o,!0),a){let n=[],i=[];Hr(Of).generateReplacementPatches_(t,o,{patches_:n,inversePatches_:i}),a(n,i)}return o}else At(1,t)},this.produceWithPatches=(t,r)=>{if(Fa(t))return(i,...u)=>this.produceWithPatches(i,l=>t(l,...u));let a,o;return[this.produce(t,r,(i,u)=>{a=i,o=u}),a,o]},Cf(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Cf(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Cf(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){bt(e)||At(8),Ft(e)&&(e=Ve(e));let t=eh(this),r=Df(t,e,void 0);return r[Xe].isManual_=!0,Ef(t),r}finishDraft(e,t){let r=e&&e[Xe];(!r||!r.isManual_)&&At(9);let{scope_:a}=r;return Qm(a,t),th(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));let a=Hr(Of).applyPatches_;return Ft(e)?a(e,t):this.produce(e,o=>a(o,t))}};function Df(e,t,r,a){let[o,n]=Vi(t)?Hr(Fi).proxyMap_(t,r):Wi(t)?Hr(Fi).proxySet_(t,r):AL(t,r);return(r?.scope_??ih()).drafts_.push(o),n.callbacks_=r?.callbacks_??[],n.key_=a,r&&a!==void 0?SL(r,n,a):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:s}=l;n.modified_&&s&&s.generatePatches_(n,[],l)}),o}function Ve(e){return Ft(e)||At(10,e),ch(e)}function ch(e){if(!bt(e)||Gi(e))return e;let t=e[Xe],r,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Af(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else r=Af(e,!0);return zi(r,(o,n)=>{Bi(r,o,ch(n))},a),t&&(t.finalized_=!1),r}var EL=new kL,Nf=EL.produce;function dh(e){return({dispatch:r,getState:a})=>o=>n=>typeof n=="function"?n(r,a,e):o(n)}var ph=dh(),mh=dh;var ML=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Bo:Bo.apply(null,arguments)},kU=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},DL=e=>e&&typeof e.match=="function";function Te(e,t){function r(...a){if(t){let o=t(...a);if(!o)throw new Error(st(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:a[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=a=>wf(a)&&a.type===e,r}var wh=class zo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,zo.prototype)}static get[Symbol.species](){return zo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new zo(...t[0].concat(this)):new zo(...t.concat(this))}};function hh(e){return bt(e)?Nf(e,()=>{}):e}function $i(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function TL(e){return typeof e=="boolean"}var RL=()=>function(t){let{thunk:r=!0,immutableCheck:a=!0,serializableCheck:o=!0,actionCreatorCheck:n=!0}=t??{},i=new wh;return r&&(TL(r)?i.push(ph):i.push(mh(r.extraArgument))),i},Ch="RTK_autoBatch",ce=()=>e=>({payload:e,meta:{[Ch]:!0}}),gh=e=>t=>{setTimeout(t,e)},_L=(e,t)=>r=>{let a=!1,o=()=>{a||(a=!0,cancelAnimationFrame(n),clearTimeout(i),r())},n=e(o),i=setTimeout(o,t)},Uf=(e={type:"raf"})=>t=>(...r)=>{let a=t(...r),o=!0,n=!1,i=!1,u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?_L(window.requestAnimationFrame,100):gh(10):e.type==="callback"?e.queueNotification:gh(e.timeout),s=()=>{i=!1,n&&(n=!1,u.forEach(c=>c()))};return Object.assign({},a,{subscribe(c){let f=()=>o&&c(),d=a.subscribe(f);return u.add(c),()=>{d(),u.delete(c)}},dispatch(c){try{return o=!c?.meta?.[Ch],n=!o,n&&(i||(i=!0,l(s))),a.dispatch(c)}finally{o=!0}}})},NL=e=>function(r){let{autoBatch:a=!0}=r??{},o=new wh(e);return a&&o.push(Uf(typeof a=="object"?a:void 0)),o};function Lh(e){let t=RL(),{reducer:r=void 0,middleware:a,devTools:o=!0,duplicateMiddlewareCheck:n=!0,preloadedState:i=void 0,enhancers:u=void 0}=e||{},l;if(typeof r=="function")l=r;else if(Ei(r))l=Mi(r);else throw new Error(st(1));let s;typeof a=="function"?s=a(t):s=t();let c=Bo;o&&(c=ML({trace:!1,...typeof o=="object"&&o}));let f=Km(...s),d=NL(f),p=typeof u=="function"?u(d):d(),h=c(...p);return If(l,i,h)}function Sh(e){let t={},r=[],a,o={addCase(n,i){let u=typeof n=="string"?n:n.type;if(!u)throw new Error(st(28));if(u in t)throw new Error(st(29));return t[u]=i,o},addAsyncThunk(n,i){return i.pending&&(t[n.pending.type]=i.pending),i.rejected&&(t[n.rejected.type]=i.rejected),i.fulfilled&&(t[n.fulfilled.type]=i.fulfilled),i.settled&&r.push({matcher:n.settled,reducer:i.settled}),o},addMatcher(n,i){return r.push({matcher:n,reducer:i}),o},addDefaultCase(n){return a=n,o}};return e(o),[t,r,a]}function BL(e){return typeof e=="function"}function FL(e,t){let[r,a,o]=Sh(t),n;if(BL(e))n=()=>hh(e());else{let u=hh(e);n=()=>u}function i(u=n(),l){let s=[r[l.type],...a.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return s.filter(c=>!!c).length===0&&(s=[o]),s.reduce((c,f)=>{if(f)if(Ft(c)){let p=f(c,l);return p===void 0?c:p}else{if(bt(c))return Nf(c,d=>f(d,l));{let d=f(c,l);if(d===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return c},u)}return i.getInitialState=n,i}var jL=(e,t)=>DL(e)?e.match(t):e(t);function UL(...e){return t=>e.some(r=>jL(r,t))}var qL="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ph=(e=21)=>{let t="",r=e;for(;r--;)t+=qL[Math.random()*64|0];return t},zL=["name","message","stack","code"],Bf=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},vh=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},HL=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of zL)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},xh="External signal was aborted",VL=(()=>{function e(t,r,a){let o=Te(t+"/fulfilled",(l,s,c,f)=>({payload:l,meta:{...f||{},arg:c,requestId:s,requestStatus:"fulfilled"}})),n=Te(t+"/pending",(l,s,c)=>({payload:void 0,meta:{...c||{},arg:s,requestId:l,requestStatus:"pending"}})),i=Te(t+"/rejected",(l,s,c,f,d)=>({payload:f,error:(a&&a.serializeError||HL)(l||"Rejected"),meta:{...d||{},arg:c,requestId:s,rejectedWithValue:!!f,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function u(l,{signal:s}={}){return(c,f,d)=>{let p=a?.idGenerator?a.idGenerator(l):Ph(),h=new AbortController,m,v;function b(L){v=L,h.abort()}s&&(s.aborted?b(xh):s.addEventListener("abort",()=>b(xh),{once:!0}));let O=async function(){let L;try{let S=a?.condition?.(l,{getState:f,extra:d});if(GL(S)&&(S=await S),S===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let k=new Promise((M,A)=>{m=()=>{A({name:"AbortError",message:v||"Aborted"})},h.signal.addEventListener("abort",m,{once:!0})});c(n(p,l,a?.getPendingMeta?.({requestId:p,arg:l},{getState:f,extra:d}))),L=await Promise.race([k,Promise.resolve(r(l,{dispatch:c,getState:f,extra:d,requestId:p,signal:h.signal,abort:b,rejectWithValue:(M,A)=>new Bf(M,A),fulfillWithValue:(M,A)=>new vh(M,A)})).then(M=>{if(M instanceof Bf)throw M;return M instanceof vh?o(M.payload,p,l,M.meta):o(M,p,l)})])}catch(S){L=S instanceof Bf?i(null,p,l,S.payload,S.meta):i(S,p,l)}finally{m&&h.signal.removeEventListener("abort",m)}return a&&!a.dispatchConditionRejection&&i.match(L)&&L.meta.condition||c(L),L}();return Object.assign(O,{abort:b,requestId:p,arg:l,unwrap(){return O.then(WL)}})}}return Object.assign(u,{pending:n,rejected:i,fulfilled:o,settled:UL(i,o),typePrefix:t})}return e.withTypes=()=>e,e})();function WL(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function GL(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ah=Symbol.for("rtk-slice-createasyncthunk"),MU={[Ah]:VL};function KL(e,t){return`${e}/${t}`}function $L({creators:e}={}){let t=e?.asyncThunk?.[Ah];return function(a){let{name:o,reducerPath:n=o}=a;if(!o)throw new Error(st(11));typeof process<"u";let i=(typeof a.reducers=="function"?a.reducers(YL()):a.reducers)||{},u=Object.keys(i),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(L,E){let S=typeof L=="string"?L:L.type;if(!S)throw new Error(st(12));if(S in l.sliceCaseReducersByType)throw new Error(st(13));return l.sliceCaseReducersByType[S]=E,s},addMatcher(L,E){return l.sliceMatchers.push({matcher:L,reducer:E}),s},exposeAction(L,E){return l.actionCreators[L]=E,s},exposeCaseReducer(L,E){return l.sliceCaseReducersByName[L]=E,s}};u.forEach(L=>{let E=i[L],S={reducerName:L,type:KL(o,L),createNotation:typeof a.reducers=="function"};JL(E)?eS(S,E,s,t):ZL(S,E,s)});function c(){let[L={},E=[],S=void 0]=typeof a.extraReducers=="function"?Sh(a.extraReducers):[a.extraReducers],k={...L,...l.sliceCaseReducersByType};return FL(a.initialState,M=>{for(let A in k)M.addCase(A,k[A]);for(let A of l.sliceMatchers)M.addMatcher(A.matcher,A.reducer);for(let A of E)M.addMatcher(A.matcher,A.reducer);S&&M.addDefaultCase(S)})}let f=L=>L,d=new Map,p=new WeakMap,h;function m(L,E){return h||(h=c()),h(L,E)}function v(){return h||(h=c()),h.getInitialState()}function b(L,E=!1){function S(M){let A=M[L];return typeof A>"u"&&E&&(A=$i(p,S,v)),A}function k(M=f){let A=$i(d,E,()=>new WeakMap);return $i(A,M,()=>{let z={};for(let[N,W]of Object.entries(a.selectors??{}))z[N]=XL(W,M,()=>$i(p,M,v),E);return z})}return{reducerPath:L,getSelectors:k,get selectors(){return k(S)},selectSlice:S}}let O={name:o,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...b(n),injectInto(L,{reducerPath:E,...S}={}){let k=E??n;return L.inject({reducerPath:k,reducer:m},S),{...O,...b(k,!0)}}};return O}}function XL(e,t,r,a){function o(n,...i){let u=t(n);return typeof u>"u"&&a&&(u=r()),e(u,...i)}return o.unwrapped=e,o}var ue=$L();function YL(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function ZL({type:e,reducerName:t,createNotation:r},a,o){let n,i;if("reducer"in a){if(r&&!QL(a))throw new Error(st(17));n=a.reducer,i=a.prepare}else n=a;o.addCase(e,n).exposeCaseReducer(t,n).exposeAction(t,i?Te(e,i):Te(e))}function JL(e){return e._reducerDefinitionType==="asyncThunk"}function QL(e){return e._reducerDefinitionType==="reducerWithPrepare"}function eS({type:e,reducerName:t},r,a,o){if(!o)throw new Error(st(18));let{payloadCreator:n,fulfilled:i,pending:u,rejected:l,settled:s,options:c}=r,f=o(e,n,c);a.exposeAction(t,f),i&&a.addCase(f.fulfilled,i),u&&a.addCase(f.pending,u),l&&a.addCase(f.rejected,l),s&&a.addMatcher(f.settled,s),a.exposeCaseReducer(t,{fulfilled:i||Xi,pending:u||Xi,rejected:l||Xi,settled:s||Xi})}function Xi(){}var tS="task",Oh="listener",kh="completed",qf="cancelled",rS=`task-${qf}`,aS=`task-${kh}`,Ff=`${Oh}-${qf}`,oS=`${Oh}-${kh}`,Ji=class{constructor(e){this.code=e,this.message=`${tS} ${qf} (reason: ${e})`}code;name="TaskAbortError";message},zf=(e,t)=>{if(typeof e!="function")throw new TypeError(st(32))},Yi=()=>{},Eh=(e,t=Yi)=>(e.catch(t),e),Mh=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Vr=e=>{if(e.aborted)throw new Ji(e.reason)};function Dh(e,t){let r=Yi;return new Promise((a,o)=>{let n=()=>o(new Ji(e.reason));if(e.aborted){n();return}r=Mh(e,n),t.finally(()=>r()).then(a,o)}).finally(()=>{r=Yi})}var nS=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Ji?"cancelled":"rejected",error:r}}finally{t?.()}},Zi=e=>t=>Eh(Dh(e,t).then(r=>(Vr(e),r))),Th=e=>{let t=Zi(e);return r=>t(new Promise(a=>setTimeout(a,r)))},{assign:Ua}=Object,yh={},Qi="listenerMiddleware",iS=(e,t)=>{let r=a=>Mh(e,()=>a.abort(e.reason));return(a,o)=>{zf(a,"taskExecutor");let n=new AbortController;r(n);let i=nS(async()=>{Vr(e),Vr(n.signal);let u=await a({pause:Zi(n.signal),delay:Th(n.signal),signal:n.signal});return Vr(n.signal),u},()=>n.abort(aS));return o?.autoJoin&&t.push(i.catch(Yi)),{result:Zi(e)(i),cancel(){n.abort(rS)}}}},uS=(e,t)=>{let r=async(a,o)=>{Vr(t);let n=()=>{},u=[new Promise((l,s)=>{let c=e({predicate:a,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});n=()=>{c(),s()}})];o!=null&&u.push(new Promise(l=>setTimeout(l,o,null)));try{let l=await Dh(t,Promise.race(u));return Vr(t),l}finally{n()}};return(a,o)=>Eh(r(a,o))},Rh=e=>{let{type:t,actionCreator:r,matcher:a,predicate:o,effect:n}=e;if(t)o=Te(t).match;else if(r)t=r.type,o=r.match;else if(a)o=a;else if(!o)throw new Error(st(21));return zf(n,"options.listener"),{predicate:o,type:t,effect:n}},_h=Ua(e=>{let{type:t,predicate:r,effect:a}=Rh(e);return{id:Ph(),effect:a,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(st(22))}}},{withTypes:()=>_h}),bh=(e,t)=>{let{type:r,effect:a,predicate:o}=Rh(t);return Array.from(e.values()).find(n=>(typeof r=="string"?n.type===r:n.predicate===o)&&n.effect===a)},jf=e=>{e.pending.forEach(t=>{t.abort(Ff)})},lS=(e,t)=>()=>{for(let r of t.keys())jf(r);e.clear()},Ih=(e,t,r)=>{try{e(t,r)}catch(a){setTimeout(()=>{throw a},0)}},Nh=Ua(Te(`${Qi}/add`),{withTypes:()=>Nh}),sS=Te(`${Qi}/removeAll`),Bh=Ua(Te(`${Qi}/remove`),{withTypes:()=>Bh}),fS=(...e)=>{console.error(`${Qi}/error`,...e)},rr=(e={})=>{let t=new Map,r=new Map,a=p=>{let h=r.get(p)??0;r.set(p,h+1)},o=p=>{let h=r.get(p)??1;h===1?r.delete(p):r.set(p,h-1)},{extra:n,onError:i=fS}=e;zf(i,"onError");let u=p=>(p.unsubscribe=()=>t.delete(p.id),t.set(p.id,p),h=>{p.unsubscribe(),h?.cancelActive&&jf(p)}),l=p=>{let h=bh(t,p)??_h(p);return u(h)};Ua(l,{withTypes:()=>l});let s=p=>{let h=bh(t,p);return h&&(h.unsubscribe(),p.cancelActive&&jf(h)),!!h};Ua(s,{withTypes:()=>s});let c=async(p,h,m,v)=>{let b=new AbortController,O=uS(l,b.signal),L=[];try{p.pending.add(b),a(p),await Promise.resolve(p.effect(h,Ua({},m,{getOriginalState:v,condition:(E,S)=>O(E,S).then(Boolean),take:O,delay:Th(b.signal),pause:Zi(b.signal),extra:n,signal:b.signal,fork:iS(b.signal,L),unsubscribe:p.unsubscribe,subscribe:()=>{t.set(p.id,p)},cancelActiveListeners:()=>{p.pending.forEach((E,S,k)=>{E!==b&&(E.abort(Ff),k.delete(E))})},cancel:()=>{b.abort(Ff),p.pending.delete(b)},throwIfCancelled:()=>{Vr(b.signal)}})))}catch(E){E instanceof Ji||Ih(i,E,{raisedBy:"effect"})}finally{await Promise.all(L),b.abort(oS),o(p),p.pending.delete(b)}},f=lS(t,r);return{middleware:p=>h=>m=>{if(!wf(m))return h(m);if(Nh.match(m))return l(m.payload);if(sS.match(m)){f();return}if(Bh.match(m))return s(m.payload);let v=p.getState(),b=()=>{if(v===yh)throw new Error(st(23));return v},O;try{if(O=h(m),t.size>0){let L=p.getState(),E=Array.from(t.values());for(let S of E){let k=!1;try{k=S.predicate(m,L,v)}catch(M){k=!1,Ih(i,M,{raisedBy:"predicate"})}k&&c(S,m,p,b)}}}finally{v=yh}return O},startListening:l,stopListening:s,clearListeners:f}};function st(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var cS={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Fh=ue({name:"chartLayout",initialState:cS,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,a,o,n;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(a=t.payload.right)!==null&&a!==void 0?a:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(n=t.payload.left)!==null&&n!==void 0?n:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Hf,setLayout:jh,setChartSize:Uh,setScale:qh}=Fh.actions,zh=Fh.reducer;function eu(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function ae(e){return Number.isFinite(e)}function Ot(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Hh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function qa(e){for(var t=1;t{if(t&&r){var{width:a,height:o}=r,{align:n,verticalAlign:i,layout:u}=t;if((u==="vertical"||u==="horizontal"&&i==="middle")&&n!=="center"&&X(e[n]))return qa(qa({},e),{},{[n]:e[n]+(a||0)});if((u==="horizontal"||u==="vertical"&&n==="center")&&i!=="middle"&&X(e[i]))return qa(qa({},e),{},{[i]:e[i]+(o||0)})}return e},kt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis";var hS=e=>{var t,r=e.length;if(!(r<=0)){var a=(t=e[0])===null||t===void 0?void 0:t.length;if(!(a==null||a<=0))for(var o=0;o=0?(s[0]=n,n+=d,s[1]=n):(s[0]=i,i+=d,s[1]=i)}}}},gS=e=>{var t,r=e.length;if(!(r<=0)){var a=(t=e[0])===null||t===void 0?void 0:t.length;if(!(a==null||a<=0))for(var o=0;o=0?(l[0]=n,n+=s,l[1]=n):(l[0]=0,l[1]=0)}}}},vS={sign:hS,expand:nf,none:it,silhouette:uf,wiggle:lf,positive:gS},Wh=(e,t,r)=>{var a,o=(a=vS[r])!==null&&a!==void 0?a:it,n=of().keys(t).value((u,l)=>Number(de(u,l,0))).order(Ra).offset(o),i=n(e);return i.forEach((u,l)=>{u.forEach((s,c)=>{var f=de(e[c],t[l],0);Array.isArray(f)&&f.length===2&&X(f[0])&&X(f[1])&&(s[0]=f[0],s[1]=f[1])})}),i};var xS=e=>{var t=e.flat(2).filter(X);return[Math.min(...t),Math.max(...t)]},yS=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Gh=(e,t,r)=>{if(e!=null)return yS(Object.keys(e).reduce((a,o)=>{var n=e[o];if(!n)return a;var{stackedData:i}=n,u=i.reduce((l,s)=>{var c=eu(s,t,r),f=xS(c);return!ae(f[0])||!ae(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],a[0]),Math.max(u[1],a[1])]},[1/0,-1/0]))},Vf=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Wf=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Gf=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var a=e.scale.bandwidth();if(!r||a>0)return a}if(e&&t&&t.length>=2){for(var o=er(t,c=>c.coordinate),n=1/0,i=1,u=o.length;i{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},$h=(e,t)=>t==="centric"?e.angle:e.radius;var We=e=>e.layout.width,Ge=e=>e.layout.height,Xh=e=>e.layout.scale,ru=e=>e.layout.margin;var za=P(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Ha=P(e=>e.cartesianAxis.yAxis,e=>Object.values(e));var au="data-recharts-item-index",ou="data-recharts-item-id",Wr=60;function Yh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function nu(e){for(var t=1;te.brush.height;function LS(e){var t=Ha(e);return t.reduce((r,a)=>{if(a.orientation==="left"&&!a.mirror&&!a.hide){var o=typeof a.width=="number"?a.width:Wr;return r+o}return r},0)}function SS(e){var t=Ha(e);return t.reduce((r,a)=>{if(a.orientation==="right"&&!a.mirror&&!a.hide){var o=typeof a.width=="number"?a.width:Wr;return r+o}return r},0)}function PS(e){var t=za(e);return t.reduce((r,a)=>a.orientation==="top"&&!a.mirror&&!a.hide?r+a.height:r,0)}function AS(e){var t=za(e);return t.reduce((r,a)=>a.orientation==="bottom"&&!a.mirror&&!a.hide?r+a.height:r,0)}var pe=P([We,Ge,ru,CS,LS,SS,PS,AS,yf,Vm],(e,t,r,a,o,n,i,u,l,s)=>{var c={left:(r.left||0)+o,right:(r.right||0)+n},f={top:(r.top||0)+i,bottom:(r.bottom||0)+u},d=nu(nu({},f),c),p=d.bottom;d.bottom+=a,d=Vh(d,l,s);var h=e-d.left-d.right,m=t-d.top-d.bottom;return nu(nu({brushBottom:p},d),{},{width:Math.max(h,0),height:Math.max(m,0)})}),Zh=P(pe,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),oq=P(We,Ge,(e,t)=>({x:0,y:0,width:e,height:t}));import*as OS from"react";import{createContext as kS,useContext as ES}from"react";var MS=kS(null),Ye=()=>ES(MS)!=null;var Va=e=>e.brush,Gr=P([Va,pe,ru],(e,t,r)=>({height:e.height,x:X(e.x)?e.x:t.left,y:X(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:X(e.width)?e.width:t.width}));import*as Kr from"react";import{createContext as US,forwardRef as ng,useCallback as qS,useContext as zS,useEffect as HS,useImperativeHandle as VS,useMemo as WS,useRef as og,useState as GS}from"react";function Jh(e,t,{signal:r,edges:a}={}){let o,n=null,i=a!=null&&a.includes("leading"),u=a==null||a.includes("trailing"),l=()=>{n!==null&&(e.apply(o,n),o=void 0,n=null)},s=()=>{u&&l(),p()},c=null,f=()=>{c!=null&&clearTimeout(c),c=setTimeout(()=>{c=null,s()},t)},d=()=>{c!==null&&(clearTimeout(c),c=null)},p=()=>{d(),o=void 0,n=null},h=()=>{l()},m=function(...v){if(r?.aborted)return;o=this,n=v;let b=c==null;f(),i&&b&&l()};return m.schedule=f,m.cancel=p,m.flush=h,r?.addEventListener("abort",p,{once:!0}),m}function Qh(e,t=0,r={}){typeof r!="object"&&(r={});let{leading:a=!1,trailing:o=!0,maxWait:n}=r,i=Array(2);a&&(i[0]="leading"),o&&(i[1]="trailing");let u,l=null,s=Jh(function(...d){u=e.apply(this,d),l=null},t,{edges:i}),c=function(...d){return n!=null&&(l===null&&(l=Date.now()),Date.now()-l>=n)?(u=e.apply(this,d),l=Date.now(),s.cancel(),s.schedule(),u):(s.apply(this,d),u)},f=()=>(s.flush(),u);return c.cancel=s.cancel,c.flush=f,c}function $f(e,t=0,r={}){let{leading:a=!0,trailing:o=!0}=r;return Qh(e,t,{leading:a,maxWait:t,trailing:o})}var DS=!0,Xf=function(t,r){for(var a=arguments.length,o=new Array(a>2?a-2:0),n=2;no[i++]))}};var Et={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Yf=(e,t,r)=>{var{width:a=Et.width,height:o=Et.height,aspect:n,maxHeight:i}=r,u=Yt(a)?e:Number(a),l=Yt(o)?t:Number(o);return n&&n>0&&(u?l=u/n:l&&(u=l*n),i&&l!=null&&l>i&&(l=i)),{calculatedWidth:u,calculatedHeight:l}},TS={width:0,height:0,overflow:"visible"},RS={width:0,overflowX:"visible"},_S={height:0,overflowY:"visible"},NS={},eg=e=>{var{width:t,height:r}=e,a=Yt(t),o=Yt(r);return a&&o?TS:a?RS:o?_S:NS};function tg(e){var{width:t,height:r,aspect:a}=e,o=t,n=r;return o===void 0&&n===void 0?(o=Et.width,n=Et.height):o===void 0?o=a&&a>0?void 0:Et.width:n===void 0&&(n=a&&a>0?void 0:Et.height),{width:o,height:n}}function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:r,height:a}),[r,a]);return KS(o)?Kr.createElement(ig.Provider,{value:o},t):null}var Ho=()=>zS(ig),$S=ng((e,t)=>{var{aspect:r,initialDimension:a=Et.initialDimension,width:o,height:n,minWidth:i=Et.minWidth,minHeight:u,maxHeight:l,children:s,debounce:c=Et.debounce,id:f,className:d,onResize:p,style:h={}}=e,m=og(null),v=og();v.current=p,VS(t,()=>m.current);var[b,O]=GS({containerWidth:a.width,containerHeight:a.height}),L=qS((A,z)=>{O(N=>{var W=Math.round(A),F=Math.round(z);return N.containerWidth===W&&N.containerHeight===F?N:{containerWidth:W,containerHeight:F}})},[]);HS(()=>{if(m.current==null||typeof ResizeObserver>"u")return Qt;var A=F=>{var $,Z=F[0];if(Z!=null){var{width:J,height:g}=Z.contentRect;L(J,g),($=v.current)===null||$===void 0||$.call(v,J,g)}};c>0&&(A=$f(A,c,{trailing:!0,leading:!1}));var z=new ResizeObserver(A),{width:N,height:W}=m.current.getBoundingClientRect();return L(N,W),z.observe(m.current),()=>{z.disconnect()}},[L,c]);var{containerWidth:E,containerHeight:S}=b;Xf(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:k,calculatedHeight:M}=Yf(E,S,{width:o,height:n,aspect:r,maxHeight:l});return Xf(k!=null&&k>0||M!=null&&M>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,k,M,o,n,i,u,r),Kr.createElement("div",{id:f?"".concat(f):void 0,className:re("recharts-responsive-container",d),style:ag(ag({},h),{},{width:o,height:n,minWidth:i,minHeight:u,maxHeight:l}),ref:m},Kr.createElement("div",{style:eg({width:o,height:n})},Kr.createElement(ug,{width:k,height:M},s)))}),Jf=ng((e,t)=>{var r=Ho();if(Ot(r.width)&&Ot(r.height))return e.children;var{width:a,height:o}=tg({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:n,calculatedHeight:i}=Yf(void 0,void 0,{width:a,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return X(n)&&X(i)?Kr.createElement(ug,{width:n,height:i},e.children):Kr.createElement($S,Zf({},e,{width:a,height:o,ref:t}))});function Vo(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var $r=()=>{var e,t=Ye(),r=Y(Zh),a=Y(Gr),o=(e=Y(Va))===null||e===void 0?void 0:e.padding;return!t||!a||!o?r:{width:a.width-o.left-o.right,height:a.height-o.top-o.bottom,x:o.left,y:o.top}},YS={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},lg=()=>{var e;return(e=Y(pe))!==null&&e!==void 0?e:YS},sg=()=>Y(We),fg=()=>Y(Ge);var le=e=>e.layout.layoutType,Xr=()=>Y(le);var Qf=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t};var cg=()=>{var e=Xr();return e!==void 0},Yr=e=>{var t=ne(),r=Ye(),{width:a,height:o}=e,n=Ho(),i=a,u=o;return n&&(i=n.width>0?n.width:a,u=n.height>0?n.height:o),XS(()=>{!r&&Ot(i)&&Ot(u)&&t(Uh({width:i,height:u}))},[t,r,i,u]),null};var ZS={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},dg=ue({name:"legend",initialState:ZS,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:ce()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ve(e).payload.indexOf(r);o>-1&&(e.payload[o]=a)},prepare:ce()},removeLegendPayload:{reducer(e,t){var r=Ve(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:ce()}}}),{setLegendSize:zq,setLegendSettings:Hq,addLegendPayload:pg,replaceLegendPayload:mg,removeLegendPayload:hg}=dg.actions,gg=dg.reducer;import*as Se from"react";var JS=Symbol.for("react.forward_ref");var QS=Symbol.for("react.memo");var eP=JS,tP=QS;function rP(e){e()}function aP(){let e=null,t=null;return{clear(){e=null,t=null},notify(){rP(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],a=e;for(;a;)r.push(a),a=a.next;return r},subscribe(r){let a=!0,o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!a||e===null||(a=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var vg={notify(){},get:()=>[]};function oP(e,t){let r,a=vg,o=0,n=!1;function i(m){c();let v=a.subscribe(m),b=!1;return()=>{b||(b=!0,v(),f())}}function u(){a.notify()}function l(){h.onStateChange&&h.onStateChange()}function s(){return n}function c(){o++,r||(r=t?t.addNestedSub(l):e.subscribe(l),a=aP())}function f(){o--,r&&o===0&&(r(),r=void 0,a.clear(),a=vg)}function d(){n||(n=!0,c())}function p(){n&&(n=!1,f())}let h={addNestedSub:i,notifyNestedSubs:u,handleChangeWrapper:l,isSubscribed:s,trySubscribe:d,tryUnsubscribe:p,getListeners:()=>a};return h}var nP=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iP=nP(),uP=()=>typeof navigator<"u"&&navigator.product==="ReactNative",lP=uP(),sP=()=>iP||lP?Se.useLayoutEffect:Se.useEffect,fP=sP();function xg(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function yg(e,t){if(xg(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let o=0;o{let l=oP(o);return{store:o,subscription:l,getServerState:a?()=>a:void 0}},[o,a]),i=Se.useMemo(()=>o.getState(),[o]);return fP(()=>{let{subscription:l}=n;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[n,i]),Se.createElement((r||gP).Provider,{value:n},t)}var bg=vP;var xP=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function yP(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function iu(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var a of r)if(xP.has(a)){if(e[a]==null&&t[a]==null)continue;if(!yg(e[a],t[a]))return!1}else if(!yP(e[a],t[a]))return!1;return!0}import*as Ct from"react";import{useEffect as FD}from"react";import{createPortal as jD}from"react-dom";import*as Mt from"react";function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{separator:t=Wa.separator,contentStyle:r,itemStyle:a,labelStyle:o=Wa.labelStyle,payload:n,formatter:i,itemSorter:u,wrapperClassName:l,labelClassName:s,label:c,labelFormatter:f,accessibilityLayer:d=Wa.accessibilityLayer}=e,p=()=>{if(n&&n.length){var S={padding:0,margin:0},k=LP(n,u),M=k.map((A,z)=>{if(A.type==="none")return null;var N=A.formatter||i||CP,{value:W,name:F}=A,$=W,Z=F;if(N){var J=N(W,F,A,z,n);if(Array.isArray(J))[$,Z]=J;else if(J!=null)$=J;else return null}var g=Wo(Wo({},Wa.itemStyle),{},{color:A.color||Wa.itemStyle.color},a);return Mt.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(z),style:g},rt(Z)?Mt.createElement("span",{className:"recharts-tooltip-item-name"},Z):null,rt(Z)?Mt.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,Mt.createElement("span",{className:"recharts-tooltip-item-value"},$),Mt.createElement("span",{className:"recharts-tooltip-item-unit"},A.unit||""))});return Mt.createElement("ul",{className:"recharts-tooltip-item-list",style:S},M)}return null},h=Wo(Wo({},Wa.contentStyle),r),m=Wo({margin:0},o),v=!Me(c),b=v?c:"",O=re("recharts-default-tooltip",l),L=re("recharts-tooltip-label",s);v&&f&&n!==void 0&&n!==null&&(b=f(c,n));var E=d?{role:"status","aria-live":"assertive"}:{};return Mt.createElement("div",ec({className:O,style:h},E),Mt.createElement("p",{className:L,style:m},Mt.isValidElement(b)?b:"".concat(b)),p())};import*as xr from"react";var Go="recharts-tooltip-wrapper",SP={visibility:"hidden"};function PP(e){var{coordinate:t,translateX:r,translateY:a}=e;return re(Go,{["".concat(Go,"-right")]:X(r)&&t&&X(t.x)&&r>=t.x,["".concat(Go,"-left")]:X(r)&&t&&X(t.x)&&r=t.y,["".concat(Go,"-top")]:X(a)&&t&&X(t.y)&&a0?o:0),f=r[a]+o;if(t[a])return i[a]?c:f;var d=l[a];if(d==null)return 0;if(i[a]){var p=c,h=d;return pv?Math.max(c,d):Math.max(f,d)}function AP(e){var{translateX:t,translateY:r,useTranslate3d:a}=e;return{transform:a?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Lg(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:a,offsetLeft:o,position:n,reverseDirection:i,tooltipBox:u,useTranslate3d:l,viewBox:s}=e,c,f,d;return u.height>0&&u.width>0&&r?(f=Cg({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:n,reverseDirection:i,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),d=Cg({allowEscapeViewBox:t,coordinate:r,key:"y",offset:a,position:n,reverseDirection:i,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),c=AP({translateX:f,translateY:d,useTranslate3d:l})):c=SP,{cssProperties:c,cssClasses:PP({translateX:f,translateY:d,coordinate:r})}}import{useEffect as kP,useState as EP}from"react";var OP=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),jt={devToolsEnabled:!0,isSsr:OP()};function uu(){var[e,t]=EP(()=>jt.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return kP(()=>{if(window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>{t(r.matches)};return r.addEventListener("change",a),()=>{r.removeEventListener("change",a)}}},[]),e}function Sg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Ga(e){for(var t=1;t({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));xr.useEffect(()=>{var h=m=>{if(m.key==="Escape"){var v,b,O,L;s({dismissed:!0,dismissedAtCoordinate:{x:(v=(b=e.coordinate)===null||b===void 0?void 0:b.x)!==null&&v!==void 0?v:0,y:(O=(L=e.coordinate)===null||L===void 0?void 0:L.y)!==null&&O!==void 0?O:0}})}};return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(r=e.coordinate)===null||r===void 0?void 0:r.y]),l.dismissed&&(((a=(o=e.coordinate)===null||o===void 0?void 0:o.x)!==null&&a!==void 0?a:0)!==l.dismissedAtCoordinate.x||((n=(i=e.coordinate)===null||i===void 0?void 0:i.y)!==null&&n!==void 0?n:0)!==l.dismissedAtCoordinate.y)&&s(Ga(Ga({},l),{},{dismissed:!1}));var{cssClasses:c,cssProperties:f}=Lg({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),d=e.hasPortalFromProps?{}:Ga(Ga({transition:RP({prefersReducedMotion:u,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},f),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),p=Ga(Ga({},d),{},{visibility:!l.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return xr.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:c,style:p,ref:e.innerRef},e.children)}var Pg=xr.memo(_P);var lu=()=>{var e;return(e=Y(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};import*as Hl from"react";import{cloneElement as hD,createElement as gD,isValidElement as vD}from"react";import*as Dg from"react";function tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;tae(e.x)&&ae(e.y),Eg=e=>e.base!=null&&su(e.base)&&su(e),Ko=e=>e.x,$o=e=>e.y,jP=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Jt(e));if((r==="curveMonotone"||r==="curveBump")&&t){var a=kg["".concat(r).concat(t==="vertical"?"Y":"X")];if(a)return a}return kg[r]||gr},Mg={connectNulls:!1,type:"linear"},UP=e=>{var{type:t=Mg.type,points:r=[],baseLine:a,layout:o,connectNulls:n=Mg.connectNulls}=e,i=jP(t,o),u=n?r.filter(su):r;if(Array.isArray(a)){var l,s=r.map((h,m)=>Og(Og({},h),{},{base:a[m]}));o==="vertical"?l=Ea().y($o).x1(Ko).x0(h=>h.base.x):l=Ea().x(Ko).y1($o).y0(h=>h.base.y);var c=l.defined(Eg).curve(i),f=n?s.filter(Eg):s;return c(f)}var d;o==="vertical"&&X(a)?d=Ea().y($o).x1(Ko).x0(a):X(a)?d=Ea().x(Ko).y1($o).y0(a):d=Do().x(Ko).y($o);var p=d.defined(su).curve(i);return p(u)},Ka=e=>{var{className:t,points:r,path:a,pathRef:o}=e,n=Xr();if((!r||!r.length)&&!a)return null;var i={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||n,connectNulls:e.connectNulls},u=r&&r.length?UP(i):a;return Dg.createElement("path",tc({},Xt(e),$p(e),{className:re("recharts-curve",t),d:u===null?void 0:u,ref:o}))};import*as Rg from"react";var qP=["x","y","top","left","width","height","className"];function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"M".concat(e,",").concat(o,"v").concat(a,"M").concat(n,",").concat(t,"h").concat(r),_g=e=>{var{x:t=0,y:r=0,top:a=0,left:o=0,width:n=0,height:i=0,className:u}=e,l=GP(e,qP),s=zP({x:t,y:r,top:a,left:o,width:n,height:i},l);return!X(t)||!X(r)||!X(n)||!X(i)||!X(a)||!X(o)?null:Rg.createElement("path",rc({},Le(s),{className:re("recharts-cross",u),d:$P(t,r,n,i,a,o)}))};function Ng(e,t,r,a){var o=a/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-o,width:e==="horizontal"?a:r.width-1,height:e==="horizontal"?r.height-1:a}}import*as mu from"react";import{useEffect as wA,useMemo as CA,useRef as Xo,useState as LA}from"react";import{useEffect as Zg,useRef as pA,useState as mA}from"react";function Bg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Fg(e){for(var t=1;te.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),fu=(e,t,r)=>e.map(a=>"".concat(JP(a)," ").concat(t,"ms ").concat(r)).join(","),jg=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,a)=>r.filter(o=>a.includes(o))),$a=(e,t)=>Object.keys(t).reduce((r,a)=>Fg(Fg({},r),{},{[a]:e(a,t[a])}),{});function Ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Re(e){for(var t=1;te+(t-e)*r,ac=e=>{var{from:t,to:r}=e;return t!==r},qg=(e,t,r)=>{var a=$a((o,n)=>{if(ac(n)){var[i,u]=e(n.from,n.to,n.velocity);return Re(Re({},n),{},{from:i,velocity:u})}return n},t);return r<1?$a((o,n)=>ac(n)&&a[o]!=null?Re(Re({},n),{},{velocity:cu(n.velocity,a[o].velocity,r),from:cu(n.from,a[o].from,r)}):n,t):qg(e,a,r-1)};function rA(e,t,r,a,o,n){var i,u=a.reduce((d,p)=>Re(Re({},d),{},{[p]:{from:e[p],velocity:0,to:t[p]}}),{}),l=()=>$a((d,p)=>p.from,u),s=()=>!Object.values(u).filter(ac).length,c=null,f=d=>{i||(i=d);var p=d-i,h=p/r.dt;u=qg(r,u,h),o(Re(Re(Re({},e),t),l())),i=d,s()||(c=n.setTimeout(f))};return()=>(c=n.setTimeout(f),()=>{var d;(d=c)===null||d===void 0||d()})}function aA(e,t,r,a,o,n,i){var u=null,l=o.reduce((f,d)=>{var p=e[d],h=t[d];return p==null||h==null?f:Re(Re({},f),{},{[d]:[p,h]})},{}),s,c=f=>{s||(s=f);var d=(f-s)/a,p=$a((m,v)=>cu(...v,r(d)),l);if(n(Re(Re(Re({},e),t),p)),d<1)u=i.setTimeout(c);else{var h=$a((m,v)=>cu(...v,r(1)),l);n(Re(Re(Re({},e),t),h))}};return()=>(u=i.setTimeout(c),()=>{var f;(f=u)===null||f===void 0||f()})}var zg=(e,t,r,a,o,n)=>{var i=jg(e,t);return r==null?()=>(o(Re(Re({},e),t)),()=>{}):r.isStepper===!0?rA(e,t,r,i,o,n):aA(e,t,r,a,i,o,n)};var du=1e-4,Wg=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Gg=(e,t)=>e.map((r,a)=>r*t**a).reduce((r,a)=>r+a),Hg=(e,t)=>r=>{var a=Wg(e,t);return Gg(a,r)},oA=(e,t)=>r=>{var a=Wg(e,t),o=[...a.map((n,i)=>n*i).slice(1),0];return Gg(o,r)},nA=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var a=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(a==null||a.length!==4)return null;var o=a.map(n=>parseFloat(n));return[o[0],o[1],o[2],o[3]]},iA=function(){for(var t=arguments.length,r=new Array(t),a=0;a{var o=Hg(e,r),n=Hg(t,a),i=oA(e,r),u=s=>s>1?1:s<0?0:s,l=s=>{for(var c=s>1?1:s,f=c,d=0;d<8;++d){var p=o(f)-c,h=i(f);if(Math.abs(p-c)0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:a=8,dt:o=17}=t,n=(i,u,l)=>{var s=-(i-u)*r,c=l*a,f=l+(s-c)*o/1e3,d=l*o/1e3+i;return Math.abs(d-u){if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Vg(e);case"spring":return lA();default:if(e.split("(")[0]==="cubic-bezier")return Vg(e)}return typeof e=="function"?e:null};import{createContext as sA,useContext as fA,useMemo as cA}from"react";function $g(e){var t,r=()=>null,a=!1,o=null,n=i=>{if(!a){if(Array.isArray(i)){if(!i.length)return;var u=i,[l,...s]=u;if(typeof l=="number"){o=e.setTimeout(n.bind(null,s),l);return}n(l),o=e.setTimeout(n.bind(null,s));return}typeof i=="string"&&(t=i,r(t)),typeof i=="object"&&(t=i,r(t)),typeof i=="function"&&i()}};return{stop:()=>{a=!0},start:i=>{a=!1,o&&(o(),o=null),n(i)},subscribe:i=>(r=i,()=>{r=()=>null}),getTimeoutController:()=>e}}var pu=class{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=performance.now(),o=null,n=i=>{i-a>=r?t(i):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(n))};return o=requestAnimationFrame(n),()=>{o!=null&&cancelAnimationFrame(o)}}};function Xg(){return $g(new pu)}var dA=sA(Xg);function Yg(e,t){var r=fA(dA);return cA(()=>t??r(e),[e,t,r])}var hA={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Jg={t:0},oc={t:1};function Xa(e){var t=De(e,hA),{isActive:r,canBegin:a,duration:o,easing:n,begin:i,onAnimationEnd:u,onAnimationStart:l,children:s}=t,c=uu(),f=r==="auto"?!jt.isSsr&&!c:r,d=Yg(t.animationId,t.animationManager),[p,h]=mA(f?Jg:oc),m=pA(null);return Zg(()=>{f||h(oc)},[f]),Zg(()=>{if(!f||!a)return Qt;var v=zg(Jg,oc,Kg(n),o,h,d.getTimeoutController()),b=()=>{m.current=v()};return d.start([l,i,b,o,u]),()=>{d.stop(),m.current&&m.current(),u()}},[f,a,o,n,i,l,u,d]),s(p.t)}import{useRef as Qg}from"react";function Ya(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=Qg(Zt(t)),a=Qg(e);return a.current!==e&&(r.current=Zt(t),a.current=e),r.current}var gA=["radius"],vA=["radius"],ev,tv,rv,av,ov,nv,iv,uv,lv,sv;function fv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function cv(e){for(var t=1;t{var n=Bt(r),i=Bt(a),u=Math.min(Math.abs(n)/2,Math.abs(i)/2),l=i>=0?1:-1,s=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,f;if(u>0&&Array.isArray(o)){for(var d=[0,0,0,0],p=0,h=4;pu?u:v}f=ve(ev||(ev=Ut(["M",",",""])),e,t+l*d[0]),d[0]>0&&(f+=ve(tv||(tv=Ut(["A ",",",",0,0,",",",",",""])),d[0],d[0],c,e+s*d[0],t)),f+=ve(rv||(rv=Ut(["L ",",",""])),e+r-s*d[1],t),d[1]>0&&(f+=ve(av||(av=Ut(["A ",",",",0,0,",`, + `,",",""])),d[1],d[1],c,e+r,t+l*d[1])),f+=ve(ov||(ov=Ut(["L ",",",""])),e+r,t+a-l*d[2]),d[2]>0&&(f+=ve(nv||(nv=Ut(["A ",",",",0,0,",`, + `,",",""])),d[2],d[2],c,e+r-s*d[2],t+a)),f+=ve(iv||(iv=Ut(["L ",",",""])),e+s*d[3],t+a),d[3]>0&&(f+=ve(uv||(uv=Ut(["A ",",",",0,0,",`, + `,",",""])),d[3],d[3],c,e,t+a-l*d[3])),f+="Z"}else if(u>0&&o===+o&&o>0){var b=Math.min(u,o);f=ve(lv||(lv=Ut(["M ",",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",","," Z"])),e,t+l*b,b,b,c,e+s*b,t,e+r-s*b,t,b,b,c,e+r,t+l*b,e+r,t+a-l*b,b,b,c,e+r-s*b,t+a,e+s*b,t+a,b,b,c,e,t+a-l*b)}else f=ve(sv||(sv=Ut(["M ",","," h "," v "," h "," Z"])),e,t,r,a,-r);return f},mv={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gu=e=>{var t=De(e,mv),r=Xo(null),[a,o]=LA(-1);wA(()=>{if(r.current&&r.current.getTotalLength)try{var y=r.current.getTotalLength();y&&o(y)}catch{}},[]);var{x:n,y:i,width:u,height:l,radius:s,className:c}=t,{animationEasing:f,animationDuration:d,animationBegin:p,isAnimationActive:h,isUpdateAnimationActive:m}=t,v=Xo(u),b=Xo(l),O=Xo(n),L=Xo(i),E=CA(()=>({x:n,y:i,width:u,height:l,radius:s}),[n,i,u,l,s]),S=Ya(E,"rectangle-");if(n!==+n||i!==+i||u!==+u||l!==+l||u===0||l===0)return null;var k=re("recharts-rectangle",c);if(!m){var M=Le(t),{radius:A}=M,z=dv(M,gA);return mu.createElement("path",hu({},z,{x:Bt(n),y:Bt(i),width:Bt(u),height:Bt(l),radius:typeof s=="number"?s:void 0,className:k,d:pv(n,i,u,l,s)}))}var N=v.current,W=b.current,F=O.current,$=L.current,Z="0px ".concat(a===-1?1:a,"px"),J="".concat(a,"px ").concat(a,"px"),g=fu(["strokeDasharray"],d,typeof f=="string"?f:mv.animationEasing);return mu.createElement(Xa,{animationId:S,key:S,canBegin:a>0,duration:d,easing:f,isActive:m,begin:p},y=>{var C=at(N,u,y),I=at(W,l,y),x=at(F,n,y),w=at($,i,y);r.current&&(v.current=C,b.current=I,O.current=x,L.current=w);var D;h?y>0?D={transition:g,strokeDasharray:J}:D={strokeDasharray:Z}:D={strokeDasharray:J};var _=Le(t),{radius:B}=_,U=dv(_,vA);return mu.createElement("path",hu({},U,{radius:typeof s=="number"?s:void 0,className:k,d:pv(x,w,C,I,s),ref:r,style:cv(cv({},D),t.style)}))})};function hv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function gv(e){for(var t=1;te*180/Math.PI,ge=(e,t,r,a)=>({x:e+Math.cos(-Yo*a)*r,y:t+Math.sin(-Yo*a)*r}),vu=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(t-(a.left||0)-(a.right||0)),Math.abs(r-(a.top||0)-(a.bottom||0)))/2},kA=(e,t)=>{var{x:r,y:a}=e,{x:o,y:n}=t;return Math.sqrt((r-o)**2+(a-n)**2)},EA=(e,t)=>{var{x:r,y:a}=e,{cx:o,cy:n}=t,i=kA({x:r,y:a},{x:o,y:n});if(i<=0)return{radius:i,angle:0};var u=(r-o)/i,l=Math.acos(u);return a>n&&(l=2*Math.PI-l),{radius:i,angle:OA(l),angleInRadian:l}},MA=e=>{var{startAngle:t,endAngle:r}=e,a=Math.floor(t/360),o=Math.floor(r/360),n=Math.min(a,o);return{startAngle:t-n*360,endAngle:r-n*360}},DA=(e,t)=>{var{startAngle:r,endAngle:a}=t,o=Math.floor(r/360),n=Math.floor(a/360),i=Math.min(o,n);return e+i*360},vv=(e,t)=>{var{relativeX:r,relativeY:a}=e,{radius:o,angle:n}=EA({x:r,y:a},t),{innerRadius:i,outerRadius:u}=t;if(ou||o===0)return null;var{startAngle:l,endAngle:s}=MA(t),c=n,f;if(l<=s){for(;c>s;)c-=360;for(;c=l&&c<=s}else{for(;c>l;)c-=360;for(;c=s&&c<=l}return f?gv(gv({},t),{},{radius:o,angle:DA(c,t)}):null};function xu(e){var{cx:t,cy:r,radius:a,startAngle:o,endAngle:n}=e,i=ge(t,r,a,o),u=ge(t,r,a,n);return{points:[i,u],cx:t,cy:r,radius:a,startAngle:o,endAngle:n}}import*as Sv from"react";var xv,yv,bv,Iv,wv,Cv,Lv;function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=Pe(t-e),a=Math.min(Math.abs(t-e),359.999);return r*a},yu=e=>{var{cx:t,cy:r,radius:a,angle:o,sign:n,isExternal:i,cornerRadius:u,cornerIsExternal:l}=e,s=u*(i?1:-1)+a,c=Math.asin(u/s)/Yo,f=l?o:o+n*c,d=ge(t,r,s,f),p=ge(t,r,a,f),h=l?o-n*c:o,m=ge(t,r,s*Math.cos(c*Yo),h);return{center:d,circleTangency:p,lineTangency:m,theta:c}},Pv=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:n,endAngle:i}=e,u=TA(n,i),l=n+u,s=ge(t,r,o,n),c=ge(t,r,o,l),f=ve(xv||(xv=Zr(["M ",",",` + A `,",",`,0, + `,",",`, + `,",",` + `])),s.x,s.y,o,o,+(Math.abs(u)>180),+(n>l),c.x,c.y);if(a>0){var d=ge(t,r,a,n),p=ge(t,r,a,l);f+=ve(yv||(yv=Zr(["L ",",",` + A `,",",`,0, + `,",",`, + `,","," Z"])),p.x,p.y,a,a,+(Math.abs(u)>180),+(n<=l),d.x,d.y)}else f+=ve(bv||(bv=Zr(["L ",","," Z"])),t,r);return f},RA=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:o,cornerRadius:n,forceCornerRadius:i,cornerIsExternal:u,startAngle:l,endAngle:s}=e,c=Pe(s-l),{circleTangency:f,lineTangency:d,theta:p}=yu({cx:t,cy:r,radius:o,angle:l,sign:c,cornerRadius:n,cornerIsExternal:u}),{circleTangency:h,lineTangency:m,theta:v}=yu({cx:t,cy:r,radius:o,angle:s,sign:-c,cornerRadius:n,cornerIsExternal:u}),b=u?Math.abs(l-s):Math.abs(l-s)-p-v;if(b<0)return i?ve(Iv||(Iv=Zr(["M ",",",` + a`,",",",0,0,1,",`,0 + a`,",",",0,0,1,",`,0 + `])),d.x,d.y,n,n,n*2,n,n,-n*2):Pv({cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:l,endAngle:s});var O=ve(wv||(wv=Zr(["M ",",",` + A`,",",",0,0,",",",",",` + A`,",",",0,",",",",",",",` + A`,",",",0,0,",",",",",` + `])),d.x,d.y,n,n,+(c<0),f.x,f.y,o,o,+(b>180),+(c<0),h.x,h.y,n,n,+(c<0),m.x,m.y);if(a>0){var{circleTangency:L,lineTangency:E,theta:S}=yu({cx:t,cy:r,radius:a,angle:l,sign:c,isExternal:!0,cornerRadius:n,cornerIsExternal:u}),{circleTangency:k,lineTangency:M,theta:A}=yu({cx:t,cy:r,radius:a,angle:s,sign:-c,isExternal:!0,cornerRadius:n,cornerIsExternal:u}),z=u?Math.abs(l-s):Math.abs(l-s)-S-A;if(z<0&&n===0)return"".concat(O,"L").concat(t,",").concat(r,"Z");O+=ve(Cv||(Cv=Zr(["L",",",` + A`,",",",0,0,",",",",",` + A`,",",",0,",",",",",",",` + A`,",",",0,0,",",",",","Z"])),M.x,M.y,n,n,+(c<0),k.x,k.y,a,a,+(z>180),+(c>0),L.x,L.y,n,n,+(c<0),E.x,E.y)}else O+=ve(Lv||(Lv=Zr(["L",",","Z"])),t,r);return O},_A={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},bu=e=>{var t=De(e,_A),{cx:r,cy:a,innerRadius:o,outerRadius:n,cornerRadius:i,forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:c,className:f}=t;if(n0&&Math.abs(s-c)<360?m=RA({cx:r,cy:a,innerRadius:o,outerRadius:n,cornerRadius:Math.min(h,p/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:c}):m=Pv({cx:r,cy:a,innerRadius:o,outerRadius:n,startAngle:s,endAngle:c}),Sv.createElement("path",nc({},Le(t),{className:d,d:m}))};function Av(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(mi(t)){if(e==="centric"){var{cx:a,cy:o,innerRadius:n,outerRadius:i,angle:u}=t,l=ge(a,o,n,u),s=ge(a,o,i,u);return[{x:l.x,y:l.y},{x:s.x,y:s.y}]}return xu(t)}}function Ov(e){return Ai(e)?NaN:Number(e)}function Iu(e){return e?(e=Ov(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function wu(e,t,r){r&&typeof r!="number"&&No(e,t,r)&&(t=r=void 0),e=Iu(e),t===void 0?(t=e,e=0):t=Iu(t),r=r===void 0?ee.chartData,Zo=P([Dt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),ic=(e,t,r,a)=>a?Zo(e):Dt(e);function ft(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(ae(t)&&ae(r))return!0}return!1}function kv(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Cu(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,a]=e,o,n;if(ae(r))o=r;else if(typeof r=="function")return;if(ae(a))n=a;else if(typeof a=="function")return;var i=[o,n];if(ft(i))return i}}function Ev(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var a=e(t,r);if(ft(a))return kv(a,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[o,n]=e,i,u;if(o==="auto")t!=null&&(i=Math.min(...t));else if(X(o))i=o;else if(typeof o=="function")try{t!=null&&(i=o(t?.[0]))}catch{}else if(typeof o=="string"&&Vf.test(o)){var l=Vf.exec(o);if(l==null||l[1]==null||t==null)i=void 0;else{var s=+l[1];i=t[0]-s}}else i=t?.[0];if(n==="auto")t!=null&&(u=Math.max(...t));else if(X(n))u=n;else if(typeof n=="function")try{t!=null&&(u=n(t?.[1]))}catch{}else if(typeof n=="string"&&Wf.test(n)){var c=Wf.exec(n);if(c==null||c[1]==null||t==null)u=void 0;else{var f=+c[1];u=t[1]+f}}else u=t?.[1];var d=[i,u];if(ft(d))return t==null?d:kv(d,t,r)}}}var ie=ri(uc());var lc=ri(uc());function sc(e){var t;return e===0?t=1:t=Math.floor(new lc.default(e).abs().log(10).toNumber())+1,t}function fc(e,t,r){for(var a=new lc.default(e),o=0,n=[];a.lt(t)&&o<1e5;)n.push(a.toNumber()),a=a.add(r),o++;return n}var Dv=e=>{var[t,r]=e,[a,o]=[t,r];return t>r&&([a,o]=[r,t]),[a,o]},cc=(e,t,r)=>{if(e.lte(0))return new ie.default(0);var a=sc(e.toNumber()),o=new ie.default(10).pow(a),n=e.div(o),i=a!==1?.05:.1,u=new ie.default(Math.ceil(n.div(i).toNumber())).add(r).mul(i),l=u.mul(o);return t?new ie.default(l.toNumber()):new ie.default(Math.ceil(l.toNumber()))},Tv=(e,t,r)=>{var a;if(e.lte(0))return new ie.default(0);var o=[1,2,2.5,5],n=e.toNumber(),i=Math.floor(new ie.default(n).abs().log(10).toNumber()),u=new ie.default(10).pow(i),l=e.div(u).toNumber(),s=o.findIndex(p=>p>=l-1e-10);if(s===-1&&(u=u.mul(10),s=0),s+=r,s>=o.length){var c=Math.floor(s/o.length);s%=o.length,u=u.mul(new ie.default(10).pow(c))}var f=(a=o[s])!==null&&a!==void 0?a:1,d=new ie.default(f).mul(u);return t?d:new ie.default(Math.ceil(d.toNumber()))},NA=(e,t,r)=>{var a=new ie.default(1),o=new ie.default(e);if(!o.isint()&&r){var n=Math.abs(e);n<1?(a=new ie.default(10).pow(sc(e)-1),o=new ie.default(Math.floor(o.div(a).toNumber())).mul(a)):n>1&&(o=new ie.default(Math.floor(e)))}else e===0?o=new ie.default(Math.floor((t-1)/2)):r||(o=new ie.default(Math.floor(e)));for(var i=Math.floor((t-1)/2),u=[],l=0;l4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:cc;if(!Number.isFinite((r-t)/(a-1)))return{step:new ie.default(0),tickMin:new ie.default(0),tickMax:new ie.default(0)};var u=i(new ie.default(r).sub(t).div(a-1),o,n),l;t<=0&&r>=0?l=new ie.default(0):(l=new ie.default(t).add(r).div(2),l=l.sub(new ie.default(l).mod(u)));var s=Math.ceil(l.sub(t).div(u).toNumber()),c=Math.ceil(new ie.default(r).sub(l).div(u).toNumber()),f=s+c+1;return f>a?Rv(t,r,a,o,n+1,i):(f0?c+(a-f):c,s=r>0?s:s+(a-f)),{step:u,tickMin:l.sub(new ie.default(s).mul(u)),tickMax:l.add(new ie.default(c).mul(u))})};var Su=function(t){var[r,a]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",u=Math.max(o,2),[l,s]=Dv([r,a]);if(l===-1/0||s===1/0){var c=s===1/0?[l,...Array(o-1).fill(1/0)]:[...Array(o-1).fill(-1/0),s];return r>a?c.reverse():c}if(l===s)return NA(l,o,n);var f=i==="snap125"?Tv:cc,{step:d,tickMin:p,tickMax:h}=Rv(l,s,u,n,0,f),m=fc(p,h.add(new ie.default(.1).mul(d)),d);return r>a?m.reverse():m},Pu=function(t,r){var[a,o]=t,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[u,l]=Dv([a,o]);if(u===-1/0||l===1/0)return[a,o];if(u===l)return[u];var s=i==="snap125"?Tv:cc,c=Math.max(r,2),f=s(new ie.default(l).sub(u).div(c-1),n,0),d=[...fc(new ie.default(u),new ie.default(l),f),l];return n===!1&&(d=d.map(p=>Math.round(p))),a>o?d.reverse():d};var _v=e=>e.rootProps.barCategoryGap;var yr=e=>e.rootProps.stackOffset,Au=e=>e.rootProps.reverseStackOrder,Za=e=>e.options.chartName,Ou=e=>e.rootProps.syncId,dc=e=>e.rootProps.syncMethod,ku=e=>e.options.eventEmitter;var Ae={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3};var br={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:"auto",orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"auto",zIndex:Ae.axis};var Tt={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:"auto",label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,tickLine:!0,type:"auto",zIndex:Ae.axis};var Jr=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function pc(e,t,r){if(r!=="auto")return r;if(e!=null)return kt(e,t)?"category":"number"}function Nv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Eu(e){for(var t=1;t{if(t!=null)return e.polarAxis.angleAxis[t]},Mu=P([UA,Qf],(e,t)=>{var r;if(e!=null)return e;var a=(r=pc(t,"angleAxis",Bv.type))!==null&&r!==void 0?r:"category";return Eu(Eu({},Bv),{},{type:a})}),qA=(e,t)=>e.polarAxis.radiusAxis[t],Du=P([qA,Qf],(e,t)=>{var r;if(e!=null)return e;var a=(r=pc(t,"radiusAxis",Fv.type))!==null&&r!==void 0?r:"category";return Eu(Eu({},Fv),{},{type:a})}),Tu=e=>e.polarOptions,mc=P([We,Ge,pe],vu),jv=P([Tu,mc],(e,t)=>{if(e!=null)return Ue(e.innerRadius,t,0)}),Uv=P([Tu,mc],(e,t)=>{if(e!=null)return Ue(e.outerRadius,t,t*.8)}),zA=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},hc=P([Tu],zA),nV=P([Mu,hc],Jr),gc=P([mc,jv,Uv],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]}),iV=P([Du,gc],Jr),Ru=P([le,Tu,jv,Uv,We,Ge],(e,t,r,a,o,n)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||a==null)){var{cx:i,cy:u,startAngle:l,endAngle:s}=t;return{cx:Ue(i,o,o/2),cy:Ue(u,n,n/2),innerRadius:r,outerRadius:a,startAngle:l,endAngle:s,clockWise:!1}}});var xe=(e,t)=>t;var Qr=(e,t,r)=>r;function _u(e){return e?.id}function Nu(e,t,r){var{chartData:a=[]}=t,{allowDuplicatedCategory:o,dataKey:n}=r,i=new Map;return e.forEach(u=>{var l,s=(l=u.data)!==null&&l!==void 0?l:a;if(!(s==null||s.length===0)){var c=_u(u);s.forEach((f,d)=>{var p=n==null||o?d:String(de(f,n,null)),h=de(f,u.dataKey,0),m;i.has(p)?m=i.get(p):m={},Object.assign(m,{[c]:h}),i.set(p,m)})}}),Array.from(i.values())}function Jo(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Ja=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Qa(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function qv(e,t){if(e.length===t.length){for(var r=0;r{var t=le(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"};var Ir=e=>e.tooltip.settings.axisId;function Qo(e){if(e!=null){var t=e.ticks,r=e.bandwidth,a=e.range(),o=[Math.min(...a),Math.max(...a)];return{domain:()=>e.domain(),range:function(n){function i(){return n.apply(this,arguments)}return i.toString=function(){return n.toString()},i}(()=>o),rangeMin:()=>o[0],rangeMax:()=>o[1],isInRange(n){var i=o[0],u=o[1];return i<=u?n>=i&&n<=u:n>=u&&n<=i},bandwidth:r?()=>r.call(e):void 0,ticks:t?n=>t.call(e,n):void 0,map:(n,i)=>{var u=e(n);if(u!=null){if(e.bandwidth&&i!==null&&i!==void 0&&i.position){var l=e.bandwidth();switch(i.position){case"middle":u+=l/2;break;case"end":u+=l;break;default:break}}return u}}}}}var Bu=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!ft(t)){for(var r,a,o=0;oa)&&(a=n))}return r!==void 0&&a!==void 0?[r,a]:void 0}return t}default:return t}};var Ar={};Kw(Ar,{scaleBand:()=>an,scaleDiverging:()=>xl,scaleDivergingLog:()=>Xc,scaleDivergingPow:()=>yl,scaleDivergingSqrt:()=>sy,scaleDivergingSymlog:()=>Yc,scaleIdentity:()=>rl,scaleImplicit:()=>Vu,scaleLinear:()=>tl,scaleLog:()=>al,scaleOrdinal:()=>ro,scalePoint:()=>$v,scalePow:()=>hn,scaleQuantile:()=>il,scaleQuantize:()=>ul,scaleRadial:()=>nl,scaleSequential:()=>ml,scaleSequentialLog:()=>Kc,scaleSequentialPow:()=>hl,scaleSequentialQuantile:()=>gl,scaleSequentialSqrt:()=>ly,scaleSequentialSymlog:()=>$c,scaleSqrt:()=>Ex,scaleSymlog:()=>ol,scaleThreshold:()=>ll,scaleTime:()=>Wc,scaleUtc:()=>Gc,tickFormat:()=>fn});function Ze(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function vc(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function ea(e){let t,r,a;e.length!==2?(t=Ze,r=(u,l)=>Ze(e(u),l),a=(u,l)=>e(u)-l):(t=e===Ze||e===vc?e:HA,r=e,a=e);function o(u,l,s=0,c=u.length){if(s>>1;r(u[f],l)<0?s=f+1:c=f}while(s>>1;r(u[f],l)<=0?s=f+1:c=f}while(ss&&a(u[f-1],l)>-a(u[f],l)?f-1:f}return{left:o,center:i,right:n}}function HA(){return 0}function en(e){return e===null?NaN:+e}function*zv(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(a=+a)>=a&&(yield a)}}var Hv=ea(Ze),Vv=Hv.right,VA=Hv.left,WA=ea(en).center,Rt=Vv;var eo=class extends Map{constructor(t,r=$A){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[a,o]of t)this.set(a,o)}get(t){return super.get(Wv(this,t))}has(t){return super.has(Wv(this,t))}set(t,r){return super.set(GA(this,t),r)}delete(t){return super.delete(KA(this,t))}};function Wv({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):r}function GA({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function KA({_intern:e,_key:t},r){let a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function $A(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Gv(e=Ze){if(e===Ze)return xc;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{let a=e(t,r);return a||a===0?a:(e(r,r)===0)-(e(t,t)===0)}}function xc(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}var XA=Math.sqrt(50),YA=Math.sqrt(10),ZA=Math.sqrt(2);function Fu(e,t,r){let a=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(a)),n=a/Math.pow(10,o),i=n>=XA?10:n>=YA?5:n>=ZA?2:1,u,l,s;return o<0?(s=Math.pow(10,-o)/i,u=Math.round(e*s),l=Math.round(t*s),u/st&&--l,s=-s):(s=Math.pow(10,o)*i,u=Math.round(e/s),l=Math.round(t/s),u*st&&--l),l0))return[];if(e===t)return[e];let a=t=o))return[];let u=n-o+1,l=new Array(u);if(a)if(i<0)for(let s=0;s=a)&&(r=a);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&(r=o)&&(r=o)}return r}function Uu(e,t){let r;if(t===void 0)for(let a of e)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function qu(e,t,r=0,a=1/0,o){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),a=Math.floor(Math.min(e.length-1,a)),!(r<=t&&t<=a))return e;for(o=o===void 0?xc:Gv(o);a>r;){if(a-r>600){let l=a-r+1,s=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(s-l/2<0?-1:1),p=Math.max(r,Math.floor(t-s*f/l+d)),h=Math.min(a,Math.floor(t+(l-s)*f/l+d));qu(e,t,p,h,o)}let n=e[t],i=r,u=a;for(rn(e,r,t),o(e[a],n)>0&&rn(e,r,a);i0;)--u}o(e[r],n)===0?rn(e,r,u):(++u,rn(e,u,a)),u<=t&&(r=u+1),t<=u&&(a=u-1)}return e}function rn(e,t,r){let a=e[t];e[t]=e[r],e[r]=a}function zu(e,t,r){if(e=Float64Array.from(zv(e,r)),!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return Uu(e);if(t>=1)return ju(e);var a,o=(a-1)*t,n=Math.floor(o),i=ju(qu(e,n).subarray(0,n+1)),u=Uu(e.subarray(n+1));return i+(u-i)*(o-n)}}function yc(e,t,r=en){if(!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return+r(e[0],0,e);if(t>=1)return+r(e[a-1],a-1,e);var a,o=(a-1)*t,n=Math.floor(o),i=+r(e[n],n,e),u=+r(e[n+1],n+1,e);return i+(u-i)*(o-n)}}function Hu(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var a=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,n=new Array(o);++a>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Gu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Gu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=QA.exec(e))?new ot(t[1],t[2],t[3],1):(t=eO.exec(e))?new ot(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tO.exec(e))?Gu(t[1],t[2],t[3],t[4]):(t=rO.exec(e))?Gu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=aO.exec(e))?tx(t[1],t[2]/100,t[3]/100,1):(t=oO.exec(e))?tx(t[1],t[2]/100,t[3]/100,t[4]):Xv.hasOwnProperty(e)?Jv(Xv[e]):e==="transparent"?new ot(NaN,NaN,NaN,0):null}function Jv(e){return new ot(e>>16&255,e>>8&255,e&255,1)}function Gu(e,t,r,a){return a<=0&&(e=t=r=NaN),new ot(e,t,r,a)}function uO(e){return e instanceof un||(e=wr(e)),e?(e=e.rgb(),new ot(e.r,e.g,e.b,e.opacity)):new ot}function oo(e,t,r,a){return arguments.length===1?uO(e):new ot(e,t,r,a??1)}function ot(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}Wu(ot,oo,bc(un,{brighter(e){return e=e==null?$u:Math.pow($u,e),new ot(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?on:Math.pow(on,e),new ot(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ot(aa(this.r),aa(this.g),aa(this.b),Xu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Qv,formatHex:Qv,formatHex8:lO,formatRgb:ex,toString:ex}));function Qv(){return`#${ra(this.r)}${ra(this.g)}${ra(this.b)}`}function lO(){return`#${ra(this.r)}${ra(this.g)}${ra(this.b)}${ra((isNaN(this.opacity)?1:this.opacity)*255)}`}function ex(){let e=Xu(this.opacity);return`${e===1?"rgb(":"rgba("}${aa(this.r)}, ${aa(this.g)}, ${aa(this.b)}${e===1?")":`, ${e})`}`}function Xu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ra(e){return e=aa(e),(e<16?"0":"")+e.toString(16)}function tx(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new _t(e,t,r,a)}function ax(e){if(e instanceof _t)return new _t(e.h,e.s,e.l,e.opacity);if(e instanceof un||(e=wr(e)),!e)return new _t;if(e instanceof _t)return e;e=e.rgb();var t=e.r/255,r=e.g/255,a=e.b/255,o=Math.min(t,r,a),n=Math.max(t,r,a),i=NaN,u=n-o,l=(n+o)/2;return u?(t===n?i=(r-a)/u+(r0&&l<1?0:i,new _t(i,u,l,e.opacity)}function ox(e,t,r,a){return arguments.length===1?ax(e):new _t(e,t,r,a??1)}function _t(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}Wu(_t,ox,bc(un,{brighter(e){return e=e==null?$u:Math.pow($u,e),new _t(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?on:Math.pow(on,e),new _t(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*t,o=2*r-a;return new ot(Ic(e>=240?e-240:e+120,o,a),Ic(e,o,a),Ic(e<120?e+240:e-120,o,a),this.opacity)},clamp(){return new _t(rx(this.h),Ku(this.s),Ku(this.l),Xu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Xu(this.opacity);return`${e===1?"hsl(":"hsla("}${rx(this.h)}, ${Ku(this.s)*100}%, ${Ku(this.l)*100}%${e===1?")":`, ${e})`}`}}));function rx(e){return e=(e||0)%360,e<0?e+360:e}function Ku(e){return Math.max(0,Math.min(1,e||0))}function Ic(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function wc(e,t,r,a,o){var n=e*e,i=n*e;return((1-3*e+3*n-i)*t+(4-6*n+3*i)*r+(1+3*e+3*n-3*i)*a+i*o)/6}function nx(e){var t=e.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[a],n=e[a+1],i=a>0?e[a-1]:2*o-n,u=a()=>e;function sO(e,t){return function(r){return e+r*t}}function fO(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(a){return Math.pow(e+a*t,r)}}function ux(e){return(e=+e)==1?Yu:function(t,r){return r-t?fO(t,r,e):ln(isNaN(t)?r:t)}}function Yu(e,t){var r=t-e;return r?sO(e,r):ln(isNaN(e)?t:e)}var Cc=function e(t){var r=ux(t);function a(o,n){var i=r((o=oo(o)).r,(n=oo(n)).r),u=r(o.g,n.g),l=r(o.b,n.b),s=Yu(o.opacity,n.opacity);return function(c){return o.r=i(c),o.g=u(c),o.b=l(c),o.opacity=s(c),o+""}}return a.gamma=e,a}(1);function lx(e){return function(t){var r=t.length,a=new Array(r),o=new Array(r),n=new Array(r),i,u;for(i=0;ir&&(n=t.slice(r,n),u[i]?u[i]+=n:u[++i]=n),(a=a[0])===(o=o[0])?u[i]?u[i]+=o:u[++i]=o:(u[++i]=null,l.push({i,x:Cr(a,o)})),r=Lc.lastIndex;return rt&&(r=e,e=t,t=r),function(a){return Math.max(e,Math.min(t,a))}}function mO(e,t,r){var a=e[0],o=e[1],n=t[0],i=t[1];return o2?hO:mO,l=s=null,f}function f(d){return d==null||isNaN(d=+d)?n:(l||(l=u(e.map(a),t,r)))(a(i(d)))}return f.invert=function(d){return i(o((s||(s=u(t,e.map(a),Cr)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Lr),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=oa,c()},f.clamp=function(d){return arguments.length?(i=d?!0:_e,c()):i!==_e},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(n=d,f):n},function(d,p){return a=d,o=p,c()}}function ia(){return na()(_e,_e)}function gx(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ua(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),a=e.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+e.slice(r+1)]}function Ht(e){return e=ua(Math.abs(e)),e?e[1]:NaN}function vx(e,t){return function(r,a){for(var o=r.length,n=[],i=0,u=e[0],l=0;o>0&&u>0&&(l+u+1>a&&(u=Math.max(1,a-l)),n.push(r.substring(o-=u,o+u)),!((l+=u+1)>a));)u=e[i=(i+1)%e.length];return n.reverse().join(t)}}function xx(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var gO=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Vt(e){if(!(t=gO.exec(e)))throw new Error("invalid format: "+e);var t;return new Ju({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Vt.prototype=Ju.prototype;function Ju(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Ju.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function yx(e){e:for(var t=e.length,r=1,a=-1,o;r0&&(a=0);break}return a>0?e.slice(0,a)+e.slice(o+1):e}var sn;function bx(e,t){var r=ua(e,t);if(!r)return sn=void 0,e.toPrecision(t);var a=r[0],o=r[1],n=o-(sn=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=a.length;return n===i?a:n>i?a+new Array(n-i+1).join("0"):n>0?a.slice(0,n)+"."+a.slice(n):"0."+new Array(1-n).join("0")+ua(e,Math.max(0,t+n-1))[0]}function Oc(e,t){var r=ua(e,t);if(!r)return e+"";var a=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}var kc={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:gx,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Oc(e*100,t),r:Oc,s:bx,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ec(e){return e}var Ix=Array.prototype.map,wx=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Cx(e){var t=e.grouping===void 0||e.thousands===void 0?Ec:vx(Ix.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",n=e.numerals===void 0?Ec:xx(Ix.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"\u2212":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function s(f,d){f=Vt(f);var p=f.fill,h=f.align,m=f.sign,v=f.symbol,b=f.zero,O=f.width,L=f.comma,E=f.precision,S=f.trim,k=f.type;k==="n"?(L=!0,k="g"):kc[k]||(E===void 0&&(E=12),S=!0,k="g"),(b||p==="0"&&h==="=")&&(b=!0,p="0",h="=");var M=(d&&d.prefix!==void 0?d.prefix:"")+(v==="$"?r:v==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():""),A=(v==="$"?a:/[%p]/.test(k)?i:"")+(d&&d.suffix!==void 0?d.suffix:""),z=kc[k],N=/[defgprs%]/.test(k);E=E===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function W(F){var $=M,Z=A,J,g,y;if(k==="c")Z=z(F)+Z,F="";else{F=+F;var C=F<0||1/F<0;if(F=isNaN(F)?l:z(Math.abs(F),E),S&&(F=yx(F)),C&&+F==0&&m!=="+"&&(C=!1),$=(C?m==="("?m:u:m==="-"||m==="("?"":m)+$,Z=(k==="s"&&!isNaN(F)&&sn!==void 0?wx[8+sn/3]:"")+Z+(C&&m==="("?")":""),N){for(J=-1,g=F.length;++Jy||y>57){Z=(y===46?o+F.slice(J+1):F.slice(J))+Z,F=F.slice(0,J);break}}}L&&!b&&(F=t(F,1/0));var I=$.length+F.length+Z.length,x=I>1)+$+F+Z+x.slice(I);break;default:F=x+$+F+Z;break}return n(F)}return W.toString=function(){return f+""},W}function c(f,d){var p=Math.max(-8,Math.min(8,Math.floor(Ht(d)/3)))*3,h=Math.pow(10,-p),m=s((f=Vt(f),f.type="f",f),{suffix:wx[8+p/3]});return function(v){return m(h*v)}}return{format:s,formatPrefix:c}}var Qu,no,el;Mc({thousands:",",grouping:[3],currency:["$",""]});function Mc(e){return Qu=Cx(e),no=Qu.format,el=Qu.formatPrefix,Qu}function Dc(e){return Math.max(0,-Ht(Math.abs(e)))}function Tc(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ht(t)/3)))*3-Ht(Math.abs(e)))}function Rc(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ht(t)-Ht(e))+1}function fn(e,t,r,a){var o=to(e,t,r),n;switch(a=Vt(a??",f"),a.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return a.precision==null&&!isNaN(n=Tc(o,i))&&(a.precision=n),el(a,i)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(n=Rc(o,Math.max(Math.abs(e),Math.abs(t))))&&(a.precision=n-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(n=Dc(o))&&(a.precision=n-(a.type==="%")*2);break}}return no(a)}function Je(e){var t=e.domain;return e.ticks=function(r){var a=t();return ta(a[0],a[a.length-1],r??10)},e.tickFormat=function(r,a){var o=t();return fn(o[0],o[o.length-1],r??10,a)},e.nice=function(r){r==null&&(r=10);var a=t(),o=0,n=a.length-1,i=a[o],u=a[n],l,s,c=10;for(u0;){if(s=tn(i,u,r),s===l)return a[o]=i,a[n]=u,t(a);if(s>0)i=Math.floor(i/s)*s,u=Math.ceil(u/s)*s;else if(s<0)i=Math.ceil(i*s)/s,u=Math.floor(u*s)/s;else break;l=s}return e},e}function tl(){var e=ia();return e.copy=function(){return zt(e,tl())},ye.apply(e,arguments),Je(e)}function rl(e){var t;function r(a){return a==null||isNaN(a=+a)?t:a}return r.invert=r,r.domain=r.range=function(a){return arguments.length?(e=Array.from(a,Lr),r):e.slice()},r.unknown=function(a){return arguments.length?(t=a,r):t},r.copy=function(){return rl(e).unknown(t)},e=arguments.length?Array.from(e,Lr):[0,1],Je(r)}function cn(e,t){e=e.slice();var r=0,a=e.length-1,o=e[r],n=e[a],i;return nMath.pow(e,t)}function IO(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Px(e){return(t,r)=>-e(-t,r)}function dn(e){let t=e(Lx,Sx),r=t.domain,a=10,o,n;function i(){return o=IO(a),n=bO(a),r()[0]<0?(o=Px(o),n=Px(n),e(vO,xO)):e(Lx,Sx),t}return t.base=function(u){return arguments.length?(a=+u,i()):a},t.domain=function(u){return arguments.length?(r(u),i()):r()},t.ticks=u=>{let l=r(),s=l[0],c=l[l.length-1],f=c0){for(;d<=p;++d)for(h=1;hc)break;b.push(m)}}else for(;d<=p;++d)for(h=a-1;h>=1;--h)if(m=d>0?h/n(-d):h*n(d),!(mc)break;b.push(m)}b.length*2{if(u==null&&(u=10),l==null&&(l=a===10?"s":","),typeof l!="function"&&(!(a%1)&&(l=Vt(l)).precision==null&&(l.trim=!0),l=no(l)),u===1/0)return l;let s=Math.max(1,a*u/t.ticks().length);return c=>{let f=c/n(Math.round(o(c)));return f*ar(cn(r(),{floor:u=>n(Math.floor(o(u))),ceil:u=>n(Math.ceil(o(u)))})),t}function al(){let e=dn(na()).domain([1,10]);return e.copy=()=>zt(e,al()).base(e.base()),ye.apply(e,arguments),e}function Ax(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Ox(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function pn(e){var t=1,r=e(Ax(t),Ox(t));return r.constant=function(a){return arguments.length?e(Ax(t=+a),Ox(t)):t},Je(r)}function ol(){var e=pn(na());return e.copy=function(){return zt(e,ol()).constant(e.constant())},ye.apply(e,arguments)}function kx(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function wO(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function CO(e){return e<0?-e*e:e*e}function mn(e){var t=e(_e,_e),r=1;function a(){return r===1?e(_e,_e):r===.5?e(wO,CO):e(kx(r),kx(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,a()):r},Je(t)}function hn(){var e=mn(na());return e.copy=function(){return zt(e,hn()).exponent(e.exponent())},ye.apply(e,arguments),e}function Ex(){return hn.apply(null,arguments).exponent(.5)}function Mx(e){return Math.sign(e)*e*e}function LO(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function nl(){var e=ia(),t=[0,1],r=!1,a;function o(n){var i=LO(e(n));return isNaN(i)?a:r?Math.round(i):i}return o.invert=function(n){return e.invert(Mx(n))},o.domain=function(n){return arguments.length?(e.domain(n),o):e.domain()},o.range=function(n){return arguments.length?(e.range((t=Array.from(n,Lr)).map(Mx)),o):t.slice()},o.rangeRound=function(n){return o.range(n).round(!0)},o.round=function(n){return arguments.length?(r=!!n,o):r},o.clamp=function(n){return arguments.length?(e.clamp(n),o):e.clamp()},o.unknown=function(n){return arguments.length?(a=n,o):a},o.copy=function(){return nl(e.domain(),t).round(r).clamp(e.clamp()).unknown(a)},ye.apply(o,arguments),Je(o)}function il(){var e=[],t=[],r=[],a;function o(){var i=0,u=Math.max(1,t.length);for(r=new Array(u-1);++i0?r[u-1]:e[0],u=r?[a[r-1],t]:[a[s-1],a[s]]},i.unknown=function(l){return arguments.length&&(n=l),i},i.thresholds=function(){return a.slice()},i.copy=function(){return ul().domain([e,t]).range(o).unknown(n)},ye.apply(Je(i),arguments)}function ll(){var e=[.5],t=[0,1],r,a=1;function o(n){return n!=null&&n<=n?t[Rt(e,n,0,a)]:r}return o.domain=function(n){return arguments.length?(e=Array.from(n),a=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(n){return arguments.length?(t=Array.from(n),a=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(n){var i=t.indexOf(n);return[e[i-1],e[i]]},o.unknown=function(n){return arguments.length?(r=n,o):r},o.copy=function(){return ll().domain(e).range(t).unknown(r)},ye.apply(o,arguments)}var _c=new Date,Nc=new Date;function me(e,t,r,a){function o(n){return e(n=arguments.length===0?new Date:new Date(+n)),n}return o.floor=n=>(e(n=new Date(+n)),n),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=n=>{let i=o(n),u=o.ceil(n);return n-i(t(n=new Date(+n),i==null?1:Math.floor(i)),n),o.range=(n,i,u)=>{let l=[];if(n=o.ceil(n),u=u==null?1:Math.floor(u),!(n0))return l;let s;do l.push(s=new Date(+n)),t(n,u),e(n);while(sme(i=>{if(i>=i)for(;e(i),!n(i);)i.setTime(i-1)},(i,u)=>{if(i>=i)if(u<0)for(;++u<=0;)for(;t(i,-1),!n(i););else for(;--u>=0;)for(;t(i,1),!n(i););}),r&&(o.count=(n,i)=>(_c.setTime(+n),Nc.setTime(+i),e(_c),e(Nc),Math.floor(r(_c,Nc))),o.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?o.filter(a?i=>a(i)%n===0:i=>o.count(0,i)%n===0):o)),o}var gn=me(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);gn.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?me(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):gn);var F3=gn.range;var wt=me(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),Dx=wt.range;var io=me(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),SO=io.range,uo=me(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),PO=uo.range;var lo=me(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),AO=lo.range,so=me(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),OO=so.range;var ar=me(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),kO=ar.range,fa=me(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),EO=fa.range,sl=me(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),MO=sl.range;function ca(e){return me(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}var or=ca(0),fo=ca(1),Rx=ca(2),_x=ca(3),Sr=ca(4),Nx=ca(5),Bx=ca(6),Fx=or.range,DO=fo.range,TO=Rx.range,RO=_x.range,_O=Sr.range,NO=Nx.range,BO=Bx.range;function da(e){return me(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var nr=da(0),co=da(1),jx=da(2),Ux=da(3),Pr=da(4),qx=da(5),zx=da(6),Hx=nr.range,FO=co.range,jO=jx.range,UO=Ux.range,qO=Pr.range,zO=qx.range,HO=zx.range;var po=me(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),VO=po.range,mo=me(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),WO=mo.range;var dt=me(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());dt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:me(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});var GO=dt.range,pt=me(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());pt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:me(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});var KO=pt.range;function Wx(e,t,r,a,o,n){let i=[[wt,1,1e3],[wt,5,5*1e3],[wt,15,15*1e3],[wt,30,30*1e3],[n,1,6e4],[n,5,5*6e4],[n,15,15*6e4],[n,30,30*6e4],[o,1,36e5],[o,3,3*36e5],[o,6,6*36e5],[o,12,12*36e5],[a,1,864e5],[a,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function u(s,c,f){let d=cv).right(i,d);if(p===i.length)return e.every(to(s/31536e6,c/31536e6,f));if(p===0)return gn.every(Math.max(to(s,c,f),1));let[h,m]=i[d/i[p-1][2]53)return null;"w"in R||(R.w=1),"Z"in R?(ee=zc(xn(R.y,0,1)),ze=ee.getUTCDay(),ee=ze>4||ze===0?co.ceil(ee):co(ee),ee=fa.offset(ee,(R.V-1)*7),R.y=ee.getUTCFullYear(),R.m=ee.getUTCMonth(),R.d=ee.getUTCDate()+(R.w+6)%7):(ee=qc(xn(R.y,0,1)),ze=ee.getDay(),ee=ze>4||ze===0?fo.ceil(ee):fo(ee),ee=ar.offset(ee,(R.V-1)*7),R.y=ee.getFullYear(),R.m=ee.getMonth(),R.d=ee.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),ze="Z"in R?zc(xn(R.y,0,1)).getUTCDay():qc(xn(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(ze+5)%7:R.w+R.U*7-(ze+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,zc(R)):qc(R)}}function A(T,q,V,R){for(var we=0,ee=q.length,ze=V.length,Fe,ht;we=ze)return-1;if(Fe=q.charCodeAt(we++),Fe===37){if(Fe=q.charAt(we++),ht=S[Fe in Gx?q.charAt(we++):Fe],!ht||(R=ht(T,V,R))<0)return-1}else if(Fe!=V.charCodeAt(R++))return-1}return R}function z(T,q,V){var R=s.exec(q.slice(V));return R?(T.p=c.get(R[0].toLowerCase()),V+R[0].length):-1}function N(T,q,V){var R=p.exec(q.slice(V));return R?(T.w=h.get(R[0].toLowerCase()),V+R[0].length):-1}function W(T,q,V){var R=f.exec(q.slice(V));return R?(T.w=d.get(R[0].toLowerCase()),V+R[0].length):-1}function F(T,q,V){var R=b.exec(q.slice(V));return R?(T.m=O.get(R[0].toLowerCase()),V+R[0].length):-1}function $(T,q,V){var R=m.exec(q.slice(V));return R?(T.m=v.get(R[0].toLowerCase()),V+R[0].length):-1}function Z(T,q,V){return A(T,t,q,V)}function J(T,q,V){return A(T,r,q,V)}function g(T,q,V){return A(T,a,q,V)}function y(T){return i[T.getDay()]}function C(T){return n[T.getDay()]}function I(T){return l[T.getMonth()]}function x(T){return u[T.getMonth()]}function w(T){return o[+(T.getHours()>=12)]}function D(T){return 1+~~(T.getMonth()/3)}function _(T){return i[T.getUTCDay()]}function B(T){return n[T.getUTCDay()]}function U(T){return l[T.getUTCMonth()]}function j(T){return u[T.getUTCMonth()]}function H(T){return o[+(T.getUTCHours()>=12)]}function oe(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var q=k(T+="",L);return q.toString=function(){return T},q},parse:function(T){var q=M(T+="",!1);return q.toString=function(){return T},q},utcFormat:function(T){var q=k(T+="",E);return q.toString=function(){return T},q},utcParse:function(T){var q=M(T+="",!0);return q.toString=function(){return T},q}}}var Gx={"-":"",_:" ",0:"0"},qe=/^\s*\d+/,XO=/^%/,YO=/[\\^$*+?|[\]().{}]/g;function se(e,t,r){var a=e<0?"-":"",o=(a?-e:e)+"",n=o.length;return a+(n[t.toLowerCase(),r]))}function JO(e,t,r){var a=qe.exec(t.slice(r,r+1));return a?(e.w=+a[0],r+a[0].length):-1}function QO(e,t,r){var a=qe.exec(t.slice(r,r+1));return a?(e.u=+a[0],r+a[0].length):-1}function ek(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.U=+a[0],r+a[0].length):-1}function tk(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.V=+a[0],r+a[0].length):-1}function rk(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.W=+a[0],r+a[0].length):-1}function Kx(e,t,r){var a=qe.exec(t.slice(r,r+4));return a?(e.y=+a[0],r+a[0].length):-1}function $x(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function ak(e,t,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function ok(e,t,r){var a=qe.exec(t.slice(r,r+1));return a?(e.q=a[0]*3-3,r+a[0].length):-1}function nk(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.m=a[0]-1,r+a[0].length):-1}function Xx(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.d=+a[0],r+a[0].length):-1}function ik(e,t,r){var a=qe.exec(t.slice(r,r+3));return a?(e.m=0,e.d=+a[0],r+a[0].length):-1}function Yx(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.H=+a[0],r+a[0].length):-1}function uk(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.M=+a[0],r+a[0].length):-1}function lk(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.S=+a[0],r+a[0].length):-1}function sk(e,t,r){var a=qe.exec(t.slice(r,r+3));return a?(e.L=+a[0],r+a[0].length):-1}function fk(e,t,r){var a=qe.exec(t.slice(r,r+6));return a?(e.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function ck(e,t,r){var a=XO.exec(t.slice(r,r+1));return a?r+a[0].length:-1}function dk(e,t,r){var a=qe.exec(t.slice(r));return a?(e.Q=+a[0],r+a[0].length):-1}function pk(e,t,r){var a=qe.exec(t.slice(r));return a?(e.s=+a[0],r+a[0].length):-1}function Zx(e,t){return se(e.getDate(),t,2)}function mk(e,t){return se(e.getHours(),t,2)}function hk(e,t){return se(e.getHours()%12||12,t,2)}function gk(e,t){return se(1+ar.count(dt(e),e),t,3)}function ry(e,t){return se(e.getMilliseconds(),t,3)}function vk(e,t){return ry(e,t)+"000"}function xk(e,t){return se(e.getMonth()+1,t,2)}function yk(e,t){return se(e.getMinutes(),t,2)}function bk(e,t){return se(e.getSeconds(),t,2)}function Ik(e){var t=e.getDay();return t===0?7:t}function wk(e,t){return se(or.count(dt(e)-1,e),t,2)}function ay(e){var t=e.getDay();return t>=4||t===0?Sr(e):Sr.ceil(e)}function Ck(e,t){return e=ay(e),se(Sr.count(dt(e),e)+(dt(e).getDay()===4),t,2)}function Lk(e){return e.getDay()}function Sk(e,t){return se(fo.count(dt(e)-1,e),t,2)}function Pk(e,t){return se(e.getFullYear()%100,t,2)}function Ak(e,t){return e=ay(e),se(e.getFullYear()%100,t,2)}function Ok(e,t){return se(e.getFullYear()%1e4,t,4)}function kk(e,t){var r=e.getDay();return e=r>=4||r===0?Sr(e):Sr.ceil(e),se(e.getFullYear()%1e4,t,4)}function Ek(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+se(t/60|0,"0",2)+se(t%60,"0",2)}function Jx(e,t){return se(e.getUTCDate(),t,2)}function Mk(e,t){return se(e.getUTCHours(),t,2)}function Dk(e,t){return se(e.getUTCHours()%12||12,t,2)}function Tk(e,t){return se(1+fa.count(pt(e),e),t,3)}function oy(e,t){return se(e.getUTCMilliseconds(),t,3)}function Rk(e,t){return oy(e,t)+"000"}function _k(e,t){return se(e.getUTCMonth()+1,t,2)}function Nk(e,t){return se(e.getUTCMinutes(),t,2)}function Bk(e,t){return se(e.getUTCSeconds(),t,2)}function Fk(e){var t=e.getUTCDay();return t===0?7:t}function jk(e,t){return se(nr.count(pt(e)-1,e),t,2)}function ny(e){var t=e.getUTCDay();return t>=4||t===0?Pr(e):Pr.ceil(e)}function Uk(e,t){return e=ny(e),se(Pr.count(pt(e),e)+(pt(e).getUTCDay()===4),t,2)}function qk(e){return e.getUTCDay()}function zk(e,t){return se(co.count(pt(e)-1,e),t,2)}function Hk(e,t){return se(e.getUTCFullYear()%100,t,2)}function Vk(e,t){return e=ny(e),se(e.getUTCFullYear()%100,t,2)}function Wk(e,t){return se(e.getUTCFullYear()%1e4,t,4)}function Gk(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Pr(e):Pr.ceil(e),se(e.getUTCFullYear()%1e4,t,4)}function Kk(){return"+0000"}function Qx(){return"%"}function ey(e){return+e}function ty(e){return Math.floor(+e/1e3)}var ho,fl,iy,cl,uy;Vc({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Vc(e){return ho=Hc(e),fl=ho.format,iy=ho.parse,cl=ho.utcFormat,uy=ho.utcParse,ho}function $k(e){return new Date(e)}function Xk(e){return e instanceof Date?+e:+new Date(+e)}function dl(e,t,r,a,o,n,i,u,l,s){var c=ia(),f=c.invert,d=c.domain,p=s(".%L"),h=s(":%S"),m=s("%I:%M"),v=s("%I %p"),b=s("%a %d"),O=s("%b %d"),L=s("%B"),E=s("%Y");function S(k){return(l(k)t(o/(e.length-1)))},r.quantiles=function(a){return Array.from({length:a+1},(o,n)=>zu(e,n/a))},r.copy=function(){return gl(t).domain(e)},It.apply(r,arguments)}function vl(){var e=0,t=.5,r=1,a=1,o,n,i,u,l,s=_e,c,f=!1,d;function p(m){return isNaN(m=+m)?d:(m=.5+((m=+c(m))-n)*(a*m{if(e!=null){var{scale:a,type:o}=e;if(a==="auto")return o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":o==="category"?"band":"linear";if(typeof a=="string")return Jk(a)?a:"point"}};function Qk(e,t){for(var r=0,a=e.length,o=e[0]t)?r=n+1:a=n}return r}function Il(e,t){if(e){var r=t??e.domain(),a=r.map(n=>{var i;return(i=e(n))!==null&&i!==void 0?i:0}),o=e.range();if(!(r.length===0||o.length<2))return n=>{var i,u,l=Qk(a,n);if(l<=0)return r[0];if(l>=r.length)return r[r.length-1];var s=(i=a[l-1])!==null&&i!==void 0?i:0,c=(u=a[l])!==null&&u!==void 0?u:0;return Math.abs(n-s)<=Math.abs(n-c)?r[l-1]:r[l]}}}function cy(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):Il(e,void 0)}function dy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function wl(e){for(var t=1;te.cartesianAxis.xAxis[t],Or=(e,t)=>{var r=oE(e,t);return r??aE},nE={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Zc,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:Wr},iE=(e,t)=>e.cartesianAxis.yAxis[t],kr=(e,t)=>{var r=iE(e,t);return r??nE},uE={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Jc=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??uE},Ce=(e,t,r)=>{switch(t){case"xAxis":return Or(e,r);case"yAxis":return kr(e,r);case"zAxis":return Jc(e,r);case"angleAxis":return Mu(e,r);case"radiusAxis":return Du(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},lE=(e,t,r)=>{switch(t){case"xAxis":return Or(e,r);case"yAxis":return kr(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},pa=(e,t,r)=>{switch(t){case"xAxis":return Or(e,r);case"yAxis":return kr(e,r);case"angleAxis":return Mu(e,r);case"radiusAxis":return Du(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Qc=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Cn(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var sE=e=>e.graphicalItems.cartesianItems,fE=P([xe,Qr],Cn),Ln=(e,t,r)=>e.filter(r).filter(a=>t?.includeHidden===!0?!0:!a.hide),Sn=P([sE,Ce,fE],Ln,{memoizeOptions:{resultEqualityCheck:Qa}}),my=P([Sn],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Jo)),ed=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),cE=P([Sn],ed),Pn=e=>e.map(t=>t.data).filter(Boolean).flat(1),dE=P([Sn],Pn,{memoizeOptions:{resultEqualityCheck:Qa}}),An=(e,t)=>{var{chartData:r=[],dataStartIndex:a,dataEndIndex:o}=t;return e.length>0?e:r.slice(a,o+1)},td=P([dE,ic],An),On=(e,t,r)=>t?.dataKey!=null?e.map(a=>({value:de(a,t.dataKey)})):r.length>0?r.map(a=>a.dataKey).flatMap(a=>e.map(o=>({value:de(o,a)}))):e.map(a=>({value:a})),kn=P([td,Ce,Sn],On);function go(e){if(rt(e)||e instanceof Date){var t=Number(e);if(ae(t))return t}}function py(e){if(Array.isArray(e)){var t=[go(e[0]),go(e[1])];return ft(t)?t:void 0}var r=go(e);if(r!=null)return[r,r]}function ur(e){return e.map(go).filter(ut)}function pE(e,t){var r=go(e),a=go(t);return r==null&&a==null?0:r==null?-1:a==null?1:r-a}var mE=P([kn],e=>e?.map(t=>t.value).sort(pE));function hy(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function hE(e,t,r){return!r||typeof t!="number"||tt(t)?[]:r.length?ur(r.flatMap(a=>{var o=de(e,a.dataKey),n,i;if(Array.isArray(o)?[n,i]=o:n=i=o,!(!ae(n)||!ae(i)))return[t-n,t+i]})):[]}var ke=e=>{var t=Oe(e),r=Ir(e);return pa(e,t,r)},Er=P([ke],e=>e?.dataKey),gE=P([my,ic,ke],Nu),rd=(e,t,r,a)=>{var o={},n=t.reduce((i,u)=>{if(u.stackId==null)return i;var l=i[u.stackId];return l==null&&(l=[]),l.push(u),i[u.stackId]=l,i},o);return Object.fromEntries(Object.entries(n).map(i=>{var[u,l]=i,s=a?[...l].reverse():l,c=s.map(_u);return[u,{stackedData:Wh(e,c,r),graphicalItems:s}]}))},vE=P([gE,my,yr,Au],rd),ad=(e,t,r,a)=>{var{dataStartIndex:o,dataEndIndex:n}=t;if(a==null&&r!=="zAxis"){var i=Gh(e,o,n);if(!(i!=null&&i[0]===0&&i[1]===0))return i}},xE=P([Ce],e=>e.allowDataOverflow),Cl=e=>{var t;if(e==null||!("domain"in e))return Zc;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=ur(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Zc},Ll=P([Ce],Cl),Sl=P([Ll,xE],Cu),yE=P([vE,Dt,xe,Sl],ad,{memoizeOptions:{resultEqualityCheck:Ja}}),vo=e=>e.errorBars,bE=(e,t,r)=>e.flatMap(a=>t[a.id]).filter(Boolean).filter(a=>hy(r,a)),wn=function(){for(var t=arguments.length,r=new Array(t),a=0;a{var n,i;if(r.length>0&&e.forEach(u=>{r.forEach(l=>{var s,c,f=(s=a[l.id])===null||s===void 0?void 0:s.filter(b=>hy(o,b)),d=de(u,(c=t.dataKey)!==null&&c!==void 0?c:l.dataKey),p=hE(u,d,f);if(p.length>=2){var h=Math.min(...p),m=Math.max(...p);(n==null||hi)&&(i=m)}var v=py(d);v!=null&&(n=n==null?v[0]:Math.min(n,v[0]),i=i==null?v[1]:Math.max(i,v[1]))})}),t?.dataKey!=null&&e.forEach(u=>{var l=py(de(u,t.dataKey));l!=null&&(n=n==null?l[0]:Math.min(n,l[0]),i=i==null?l[1]:Math.max(i,l[1]))}),ae(n)&&ae(i))return[n,i]},IE=P([td,Ce,cE,vo,xe],En,{memoizeOptions:{resultEqualityCheck:Ja}});function wE(e){var{value:t}=e;if(rt(t)||t instanceof Date)return t}var CE=(e,t,r)=>{var a=e.map(wE).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&ff(a))?wu(0,e.length):t.allowDuplicatedCategory?a:Array.from(new Set(a))},od=e=>e.referenceElements.dots,ma=(e,t,r)=>e.filter(a=>a.ifOverflow==="extendDomain").filter(a=>t==="xAxis"?a.xAxisId===r:a.yAxisId===r),LE=P([od,xe,Qr],ma),nd=e=>e.referenceElements.areas,SE=P([nd,xe,Qr],ma),id=e=>e.referenceElements.lines,PE=P([id,xe,Qr],ma),ud=(e,t)=>{if(e!=null){var r=ur(e.map(a=>t==="xAxis"?a.x:a.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},AE=P(LE,xe,ud),ld=(e,t)=>{if(e!=null){var r=ur(e.flatMap(a=>[t==="xAxis"?a.x1:a.y1,t==="xAxis"?a.x2:a.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},OE=P([SE,xe],ld);function kE(e){var t;if(e.x!=null)return ur([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(a=>a.x);return r==null||r.length===0?[]:ur(r)}function EE(e){var t;if(e.y!=null)return ur([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(a=>a.y);return r==null||r.length===0?[]:ur(r)}var sd=(e,t)=>{if(e!=null){var r=e.flatMap(a=>t==="xAxis"?kE(a):EE(a));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},ME=P([PE,xe],sd),DE=P(AE,ME,OE,(e,t,r)=>wn(e,r,t)),Mn=(e,t,r,a,o,n,i,u)=>{if(r!=null)return r;var l=i==="vertical"&&u==="xAxis"||i==="horizontal"&&u==="yAxis",s=l?wn(a,n,o):wn(n,o);return Ev(t,s,e.allowDataOverflow)},TE=P([Ce,Ll,Sl,yE,IE,DE,le,xe],Mn,{memoizeOptions:{resultEqualityCheck:Ja}}),RE=[0,1],Dn=(e,t,r,a,o,n,i)=>{if(!((e==null||r==null||r.length===0)&&i===void 0)){var{dataKey:u,type:l}=e,s=kt(t,n);if(s&&u==null){var c;return wu(0,(c=r?.length)!==null&&c!==void 0?c:0)}return l==="category"?CE(a,e,s):o==="expand"?RE:i}},fd=P([Ce,le,td,kn,yr,xe,TE],Dn),lr=P([Ce,Qc,Za],bl),Tn=(e,t,r)=>{var{niceTicks:a}=t;if(a!=="none"){var o=Cl(t),n=Array.isArray(o)&&(o[0]==="auto"||o[1]==="auto");if((a==="snap125"||a==="adaptive")&&t!=null&&t.tickCount&&ft(e)){if(n)return Su(e,t.tickCount,t.allowDecimals,a);if(t.type==="number")return Pu(e,t.tickCount,t.allowDecimals,a)}if(a==="auto"&&r==="linear"&&t!=null&&t.tickCount){if(n&&ft(e))return Su(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&ft(e))return Pu(e,t.tickCount,t.allowDecimals,"adaptive")}}},cd=P([fd,pa,lr],Tn),Rn=(e,t,r,a)=>{if(a!=="angleAxis"&&e?.type==="number"&&ft(t)&&Array.isArray(r)&&r.length>0){var o,n,i=t[0],u=(o=r[0])!==null&&o!==void 0?o:0,l=t[1],s=(n=r[r.length-1])!==null&&n!==void 0?n:0;return[Math.min(i,u),Math.max(l,s)]}return t},_E=P([Ce,fd,cd,xe],Rn),NE=P(kn,Ce,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,a=Array.from(ur(e.map(f=>f.value))).sort((f,d)=>f-d),o=a[0],n=a[a.length-1];if(o==null||n==null)return 1/0;var i=n-o;if(i===0)return 1/0;for(var u=0;uo,(e,t,r,a,o)=>{if(!ae(e))return 0;var n=t==="vertical"?a.height:a.width;if(o==="gap")return e*n/2;if(o==="no-gap"){var i=Ue(r,e*n),u=e*n/2;return u-i-(u-i)/n*i}return 0}),BE=(e,t,r)=>{var a=Or(e,t);return a==null||typeof a.padding!="string"?0:gy(e,"xAxis",t,r,a.padding)},FE=(e,t,r)=>{var a=kr(e,t);return a==null||typeof a.padding!="string"?0:gy(e,"yAxis",t,r,a.padding)},jE=P(Or,BE,(e,t)=>{var r,a;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((r=o.left)!==null&&r!==void 0?r:0)+t,right:((a=o.right)!==null&&a!==void 0?a:0)+t}}),UE=P(kr,FE,(e,t)=>{var r,a;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((r=o.top)!==null&&r!==void 0?r:0)+t,bottom:((a=o.bottom)!==null&&a!==void 0?a:0)+t}}),qE=P([pe,jE,Gr,Va,(e,t,r)=>r],(e,t,r,a,o)=>{var{padding:n}=a;return o?[n.left,r.width-n.right]:[e.left+t.left,e.left+e.width-t.right]}),zE=P([pe,le,UE,Gr,Va,(e,t,r)=>r],(e,t,r,a,o,n)=>{var{padding:i}=o;return n?[a.height-i.bottom,i.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),xo=(e,t,r,a)=>{var o;switch(t){case"xAxis":return qE(e,r,a);case"yAxis":return zE(e,r,a);case"zAxis":return(o=Jc(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return hc(e);case"radiusAxis":return gc(e,r);default:return}},vy=P([Ce,xo],Jr),HE=P([lr,_E],Bu),dd=P([Ce,lr,HE,vy],In),pd=(e,t,r,a)=>{if(!(r==null||r.dataKey==null)){var{type:o,scale:n}=r,i=kt(e,a);if(i&&(o==="number"||n!=="auto"))return t.map(u=>u.value)}},md=P([le,kn,pa,xe],pd),Pl=P([dd],Qo),uX=P([dd],cy),lX=P([dd,mE],Il),sX=P([Sn,vo,xe],bE);function xy(e,t){return e.idt.id?1:0}var Al=(e,t)=>t,Ol=(e,t,r)=>r,VE=P(za,Al,Ol,(e,t,r)=>e.filter(a=>a.orientation===t).filter(a=>a.mirror===r).sort(xy)),WE=P(Ha,Al,Ol,(e,t,r)=>e.filter(a=>a.orientation===t).filter(a=>a.mirror===r).sort(xy)),yy=(e,t)=>({width:e.width,height:t.height}),GE=(e,t)=>{var r=typeof t.width=="number"?t.width:Wr;return{width:r,height:e.height}},fX=P(pe,Or,yy),KE=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},$E=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},XE=P(Ge,pe,VE,Al,Ol,(e,t,r,a,o)=>{var n={},i;return r.forEach(u=>{var l=yy(t,u);i==null&&(i=KE(t,a,e));var s=a==="top"&&!o||a==="bottom"&&o;n[u.id]=i-Number(s)*l.height,i+=(s?-1:1)*l.height}),n}),YE=P(We,pe,WE,Al,Ol,(e,t,r,a,o)=>{var n={},i;return r.forEach(u=>{var l=GE(t,u);i==null&&(i=$E(t,a,e));var s=a==="left"&&!o||a==="right"&&o;n[u.id]=i-Number(s)*l.width,i+=(s?-1:1)*l.width}),n}),ZE=(e,t)=>{var r=Or(e,t);if(r!=null)return XE(e,r.orientation,r.mirror)},cX=P([pe,Or,ZE,(e,t)=>t],(e,t,r,a)=>{if(t!=null){var o=r?.[a];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),JE=(e,t)=>{var r=kr(e,t);if(r!=null)return YE(e,r.orientation,r.mirror)},dX=P([pe,kr,JE,(e,t)=>t],(e,t,r,a)=>{if(t!=null){var o=r?.[a];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),pX=P(pe,kr,(e,t)=>{var r=typeof t.width=="number"?t.width:Wr;return{width:r,height:e.height}});var hd=(e,t,r,a)=>{if(r!=null){var{allowDuplicatedCategory:o,type:n,dataKey:i}=r,u=kt(e,a),l=t.map(s=>s.value);if(i&&u&&n==="category"&&o&&ff(l))return l}},gd=P([le,kn,Ce,xe],hd),mX=P([le,lE,lr,Pl,gd,md,xo,cd,xe],(e,t,r,a,o,n,i,u,l)=>{if(t!=null){var s=kt(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:n,duplicateDomain:o,isCategorical:s,niceTicks:u,range:i,realScaleType:r,scale:a}}}),QE=(e,t,r,a,o,n,i,u,l)=>{if(!(t==null||a==null)){var s=kt(e,l),{type:c,ticks:f,tickCount:d}=t,p=r==="scaleBand"&&typeof a.bandwidth=="function"?a.bandwidth()/2:2,h=c==="category"&&a.bandwidth?a.bandwidth()/p:0;h=l==="angleAxis"&&n!=null&&n.length>=2?Pe(n[0]-n[1])*2*h:h;var m=f||o;return m?m.map((v,b)=>{var O=i?i.indexOf(v):v,L=a.map(O);return ae(L)?{index:b,coordinate:L+h,value:v,offset:h}:null}).filter(ut):s&&u?u.map((v,b)=>{var O=a.map(v);return ae(O)?{coordinate:O+h,value:v,index:b,offset:h}:null}).filter(ut):a.ticks?a.ticks(d).map((v,b)=>{var O=a.map(v);return ae(O)?{coordinate:O+h,value:v,index:b,offset:h}:null}).filter(ut):a.domain().map((v,b)=>{var O=a.map(v);return ae(O)?{coordinate:O+h,value:i?i[v]:v,index:b,offset:h}:null}).filter(ut)}},hX=P([le,pa,lr,Pl,cd,xo,gd,md,xe],QE),eM=(e,t,r,a,o,n,i)=>{if(!(t==null||r==null||a==null||a[0]===a[1])){var u=kt(e,i),{tickCount:l}=t,s=0;return s=i==="angleAxis"&&a?.length>=2?Pe(a[0]-a[1])*2*s:s,u&&n?n.map((c,f)=>{var d=r.map(c);return ae(d)?{coordinate:d+s,value:c,index:f,offset:s}:null}).filter(ut):r.ticks?r.ticks(l).map((c,f)=>{var d=r.map(c);return ae(d)?{coordinate:d+s,value:c,index:f,offset:s}:null}).filter(ut):r.domain().map((c,f)=>{var d=r.map(c);return ae(d)?{coordinate:d+s,value:o?o[c]:c,index:f,offset:s}:null}).filter(ut)}},gX=P([le,pa,Pl,xo,gd,md,xe],eM),vX=P(Ce,Pl,(e,t)=>{if(!(e==null||t==null))return wl(wl({},e),{},{scale:t})}),tM=P([Ce,lr,fd,vy],In),rM=P([tM],Qo),xX=P((e,t,r)=>Jc(e,r),rM,(e,t)=>{if(!(e==null||t==null))return wl(wl({},e),{},{scale:t})}),by=P([le,za,Ha],(e,t,r)=>{switch(e){case"horizontal":return t.some(a=>a.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(a=>a.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),aM=(e,t,r)=>{var a;return(a=e.renderedTicks[t])===null||a===void 0?void 0:a[r]},yX=P([aM],e=>{if(!(!e||e.length===0))return t=>{var r,a=1/0,o=e[0];for(var n of e){var i=Math.abs(n.coordinate-t);ie.options.defaultTooltipEventType,xd=e=>e.options.validateTooltipEventTypes;function yd(e,t,r){if(e==null)return t;var a=e?"axis":"item";return r==null?t:r.includes(a)?a:t}function _n(e,t){var r=vd(e),a=xd(e);return yd(t,r,a)}function Iy(e){return Y(t=>_n(t,e))}var kl=(e,t)=>{var r,a=Number(t);if(!(tt(a)||t==null))return a>=0?e==null||(r=e[a])===null||r===void 0?void 0:r.value:void 0};var wy=e=>e.tooltip.settings;var sr={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},oM={itemInteraction:{click:sr,hover:sr},axisInteraction:{click:sr,hover:sr},keyboardInteraction:sr,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},Cy=ue({name:"tooltip",initialState:oM,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:ce()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ve(e).tooltipItemPayloads.indexOf(r);o>-1&&(e.tooltipItemPayloads[o]=a)},prepare:ce()},removeTooltipEntrySettings:{reducer(e,t){var r=Ve(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:ce()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Ly,replaceTooltipEntrySettings:Sy,removeTooltipEntrySettings:Py,setTooltipSettingsState:Ay,setActiveMouseOverItemIndex:El,mouseLeaveItem:Oy,mouseLeaveChart:Ml,setActiveClickItemIndex:ky,setMouseOverAxisIndex:Dl,setMouseClickAxisIndex:Ey,setSyncInteraction:Tl,setKeyboardInteraction:Nn}=Cy.actions,My=Cy.reducer;function Dy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Rl(e){for(var t=1;t{if(t==null)return sr;var o=lM(e,t,r);if(o==null)return sr;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var n=e.settings.active===!0;if(sM(o)){if(n)return Rl(Rl({},o),{},{active:!0})}else if(a!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:a,graphicalItemId:void 0};return Rl(Rl({},sr),{},{coordinate:o.coordinate})};function fM(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function cM(e,t){var r=fM(e),a=t[0],o=t[1];if(r===void 0)return!1;var n=Math.min(a,o),i=Math.max(a,o);return r>=n&&r<=i}function dM(e,t,r){if(r==null||t==null)return!0;var a=de(e,t);return a==null||!ft(r)?!0:cM(a,r)}var yo=(e,t,r,a)=>{var o=e?.index;if(o==null)return null;var n=Number(o);if(!ae(n))return o;var i=0,u=1/0;t.length>0&&(u=t.length-1);var l=Math.max(i,Math.min(n,u)),s=t[l];return s==null||dM(s,r,a)?String(l):null};var Nl=(e,t,r,a,o,n,i)=>{if(n!=null){var u=i[0],l=u?.getPosition(n);if(l!=null)return l;var s=o?.[Number(n)];if(s)switch(r){case"horizontal":return{x:s.coordinate,y:(a.top+t)/2};default:return{x:(a.left+e)/2,y:s.coordinate}}}};var Bl=(e,t,r,a)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(r==="hover"?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&o==null)return e.tooltipItemPayloads;if(o==null&&a!=null){var n=e.tooltipItemPayloads[0];return n!=null?[n]:[]}return e.tooltipItemPayloads.filter(i=>{var u;return((u=i.settings)===null||u===void 0?void 0:u.graphicalItemId)===o})};var Fl=e=>e.options.tooltipPayloadSearcher;var fr=e=>e.tooltip;function Ty(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Ry(e){for(var t=1;te(t)}function _y(e){if(typeof e=="string")return e}function yM(e){if(!(e==null||typeof e!="object")){var t="name"in e?gM(e.name):void 0,r="unit"in e?vM(e.unit):void 0,a="dataKey"in e?xM(e.dataKey):void 0,o="payload"in e?e.payload:void 0,n="color"in e?_y(e.color):void 0,i="fill"in e?_y(e.fill):void 0;return{name:t,unit:r,dataKey:a,payload:o,color:n,fill:i}}}function bM(e,t){return e??t}var jl=(e,t,r,a,o,n,i)=>{if(!(t==null||n==null)){var{chartData:u,computedData:l,dataStartIndex:s,dataEndIndex:c}=r,f=[];return e.reduce((d,p)=>{var h,{dataDefinedOnItem:m,settings:v}=p,b=bM(m,u),O=Array.isArray(b)?eu(b,s,c):b,L=(h=v?.dataKey)!==null&&h!==void 0?h:a,E=v?.nameKey,S;if(a&&Array.isArray(O)&&!Array.isArray(O[0])&&i==="axis"?S=cf(O,a,o):S=n(O,t,l,E),Array.isArray(S))S.forEach(M=>{var A,z,N=yM(M),W=N?.name,F=N?.dataKey,$=N?.payload,Z=Ry(Ry({},v),{},{name:W,unit:N?.unit,color:(A=N?.color)!==null&&A!==void 0?A:v?.color,fill:(z=N?.fill)!==null&&z!==void 0?z:v?.fill});d.push(Kf({tooltipEntrySettings:Z,dataKey:F,payload:$,value:de($,F),name:W==null?void 0:String(W)}))});else{var k;d.push(Kf({tooltipEntrySettings:v,dataKey:L,payload:S,value:de(S,L),name:(k=de(S,E))!==null&&k!==void 0?k:v?.name}))}return d},f)}};var bd=P([ke,Qc,Za],bl),IM=P([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),wM=P([Oe,Ir],Cn),ha=P([IM,ke,wM],Ln,{memoizeOptions:{resultEqualityCheck:Qa}}),CM=P([ha],e=>e.filter(Jo)),LM=P([ha],Pn,{memoizeOptions:{resultEqualityCheck:Qa}}),Mr=P([LM,Dt],An),SM=P([CM,Dt,ke],Nu),Id=P([Mr,ke,ha],On),Ny=P([ke],Cl),PM=P([ke],e=>e.allowDataOverflow),By=P([Ny,PM],Cu),AM=P([ha],e=>e.filter(Jo)),OM=P([SM,AM,yr,Au],rd),kM=P([OM,Dt,Oe,By],ad),EM=P([ha],ed),MM=P([Mr,ke,EM,vo,Oe],En,{memoizeOptions:{resultEqualityCheck:Ja}}),DM=P([od,Oe,Ir],ma),TM=P([DM,Oe],ud),RM=P([nd,Oe,Ir],ma),_M=P([RM,Oe],ld),NM=P([id,Oe,Ir],ma),BM=P([NM,Oe],sd),FM=P([TM,BM,_M],wn),jM=P([ke,Ny,By,kM,MM,FM,le,Oe],Mn),ga=P([ke,le,Mr,Id,yr,Oe,jM],Dn),UM=P([ga,ke,bd],Tn),qM=P([ke,ga,UM,Oe],Rn),Fy=e=>{var t=Oe(e),r=Ir(e),a=!1;return xo(e,t,r,a)},wd=P([ke,Fy],Jr),zM=P([ke,bd,qM,wd],In),Cd=P([zM],Qo),HM=P([le,Id,ke,Oe],hd),VM=P([le,Id,ke,Oe],pd),WM=(e,t,r,a,o,n,i,u)=>{if(t){var{type:l}=t,s=kt(e,u);if(a){var c=r==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,f=l==="category"&&a.bandwidth?a.bandwidth()/c:0;return f=u==="angleAxis"&&o!=null&&o?.length>=2?Pe(o[0]-o[1])*2*f:f,s&&i?i.map((d,p)=>{var h=a.map(d);return ae(h)?{coordinate:h+f,value:d,index:p,offset:f}:null}).filter(ut):a.domain().map((d,p)=>{var h=a.map(d);return ae(h)?{coordinate:h+f,value:n?n[d]:d,index:p,offset:f}:null}).filter(ut)}}},nt=P([le,ke,bd,Cd,Fy,HM,VM,Oe],WM),Ld=P([vd,xd,wy],(e,t,r)=>yd(r.shared,e,t)),jy=e=>e.tooltip.settings.trigger,Sd=e=>e.tooltip.settings.defaultIndex,Bn=P([fr,Ld,jy,Sd],_l),va=P([Bn,Mr,Er,ga],yo),Pd=P([nt,va],kl),Ul=P([Bn],e=>{if(e)return e.dataKey}),ql=P([Bn],e=>{if(e)return e.graphicalItemId}),Uy=P([fr,Ld,jy,Sd],Bl),GM=P([We,Ge,le,pe,nt,Sd,Uy],Nl),qy=P([Bn,GM],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),zy=P([Bn],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),KM=P([Uy,va,Dt,Er,Pd,Fl,Ld],jl),y5=P([KM],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Hy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Vy(e){for(var t=1;tY(ke),Wy=()=>{var e=ZM(),t=Y(nt),r=Y(Cd);return!e||!r?Gf(void 0,t):Gf(Vy(Vy({},e),{},{scale:r}),t)};function Gy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function bo(e){for(var t=1;t{var o=t.find(n=>n&&n.index===r);if(o){if(e==="horizontal")return{x:o.coordinate,y:a.relativeY};if(e==="vertical")return{x:a.relativeX,y:o.coordinate}}return{x:0,y:0}},$y=(e,t,r,a)=>{var o=t.find(s=>s&&s.index===r);if(o){if(e==="centric"){var n=o.coordinate,{radius:i}=a;return bo(bo(bo({},a),ge(a.cx,a.cy,i,n)),{},{angle:n,radius:i})}var u=o.coordinate,{angle:l}=a;return bo(bo(bo({},a),ge(a.cx,a.cy,u,l)),{},{angle:l,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function Xy(e,t){var{relativeX:r,relativeY:a}=e;return r>=t.left&&r<=t.left+t.width&&a>=t.top&&a<=t.top+t.height}var Ad=(e,t,r,a,o)=>{var n,i=(n=t?.length)!==null&&n!==void 0?n:0;if(i<=1||e==null)return 0;if(a==="angleAxis"&&o!=null&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var u=0;u0?(l=r[u-1])===null||l===void 0?void 0:l.coordinate:(s=r[i-1])===null||s===void 0?void 0:s.coordinate,h=(c=r[u])===null||c===void 0?void 0:c.coordinate,m=u>=i-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(d=r[u+1])===null||d===void 0?void 0:d.coordinate,v=void 0;if(!(p==null||h==null||m==null))if(Pe(h-p)!==Pe(m-h)){var b=[];if(Pe(m-h)===Pe(o[1]-o[0])){v=m;var O=h+o[1]-o[0];b[0]=Math.min(O,(O+p)/2),b[1]=Math.max(O,(O+p)/2)}else{v=p;var L=m+o[1]-o[0];b[0]=Math.min(h,(L+h)/2),b[1]=Math.max(h,(L+h)/2)}var E=[Math.min(h,(v+h)/2),Math.max(h,(v+h)/2)];if(e>E[0]&&e<=E[1]||e>=b[0]&&e<=b[1]){var S;return(S=r[u])===null||S===void 0?void 0:S.index}}else{var k=Math.min(p,m),M=Math.max(p,m);if(e>(k+h)/2&&e<=(M+h)/2){var A;return(A=r[u])===null||A===void 0?void 0:A.index}}}else if(t)for(var z=0;z(N.coordinate+F.coordinate)/2||z>0&&z(N.coordinate+F.coordinate)/2&&e<=(N.coordinate+W.coordinate)/2)return N.index}}return-1};var Yy=()=>Y(Za),Od=(e,t)=>t,Zy=(e,t,r)=>r,kd=(e,t,r,a)=>a,Jy=P(nt,e=>er(e,t=>t.coordinate)),Ed=P([fr,Od,Zy,kd],_l),Md=P([Ed,Mr,Er,ga],yo),Qy=(e,t,r)=>{if(t!=null){var a=fr(e);return t==="axis"?r==="hover"?a.axisInteraction.hover.dataKey:a.axisInteraction.click.dataKey:r==="hover"?a.itemInteraction.hover.dataKey:a.itemInteraction.click.dataKey}},eb=P([fr,Od,Zy,kd],Bl),Fn=P([We,Ge,le,pe,nt,kd,eb],Nl),tb=P([Ed,Fn],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),Dd=P([nt,Md],kl),rb=P([eb,Md,Dt,Er,Dd,Fl,Od],jl),ab=P([Ed,Md],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),tD=(e,t,r,a,o,n,i)=>{if(!(!e||!r||!a||!o)&&Xy(e,i)){var u=Kh(e,t),l=Ad(u,n,o,r,a),s=Ky(t,o,l,e);return{activeIndex:String(l),activeCoordinate:s}}},rD=(e,t,r,a,o,n,i)=>{if(!(!e||!a||!o||!n||!r)){var u=vv(e,r);if(u){var l=$h(u,t),s=Ad(l,i,n,a,o),c=$y(t,n,s,u);return{activeIndex:String(s),activeCoordinate:c}}}},ob=(e,t,r,a,o,n,i,u)=>{if(!(!e||!t||!a||!o||!n))return t==="horizontal"||t==="vertical"?tD(e,t,a,o,n,i,u):rD(e,t,r,a,o,n,i)};import{useLayoutEffect as fD}from"react";import{createPortal as cD}from"react-dom";var nb=P(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var a=e[t];if(a!=null)return r?a.panoramaElement:a.element}}),ib=P(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(a=>parseInt(a,10)).concat(Object.values(Ae)),r=Array.from(new Set(t));return r.sort((a,o)=>a-o)},{memoizeOptions:{resultEqualityCheck:qv}});function ub(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function lb(e){for(var t=1;tlb(lb({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),iD)},lD=new Set(Object.values(Ae));function sD(e){return lD.has(e)}var sb=ue({name:"zIndex",initialState:uD,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:ce()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!sD(r)&&delete e.zIndexMap[r])},prepare:ce()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:a,isPanorama:o}=t.payload;e.zIndexMap[r]?o?e.zIndexMap[r].panoramaElement=a:e.zIndexMap[r].element=a:e.zIndexMap[r]={consumers:0,element:o?void 0:a,panoramaElement:o?a:void 0}},prepare:ce()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:ce()}}}),{registerZIndexPortal:fb,unregisterZIndexPortal:cb,registerZIndexPortalElement:db,unregisterZIndexPortalElement:pb}=sb.actions,mb=sb.reducer;function cr(e){var{zIndex:t,children:r}=e,a=cg(),o=a&&t!==void 0&&t!==0,n=Ye(),i=ne();fD(()=>o?(i(fb({zIndex:t})),()=>{i(cb({zIndex:t}))}):Qt,[i,t,o]);var u=Y(l=>nb(l,t,n));return o?u?cD(r,u):null:r}function Td(){return Td=Object.assign?Object.assign.bind():function(e){for(var t=1;tID(Rd);import{useEffect as Gl}from"react";var bb=ri(yb(),1);var Ib=bb.default;var Io=new Ib;var Wl="recharts.syncEvent.tooltip",Nd="recharts.syncEvent.brush";var wb=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!tt(r))return e[r]}},LD={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},Cb=ue({name:"options",initialState:LD,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Lb=Cb.reducer,{createEventEmitter:Sb}=Cb.actions;function Pb(e){return e.tooltip.syncInteraction}var SD={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},Ab=ue({name:"chartData",initialState:SD,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:a}=t.payload;r!=null&&(e.dataStartIndex=r),a!=null&&(e.dataEndIndex=a)}}}),{setChartData:Bd,setDataStartEndIndexes:Ob,setComputedData:PD}=Ab.actions,kb=Ab.reducer;var AD=["x","y"];function Eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function wo(e){for(var t=1;tl.rootProps.className);Gl(()=>{if(e==null)return Qt;var l=(s,c,f)=>{if(t!==f&&e===s){if(a==="index"){var d;if(i&&c!==null&&c!==void 0&&(d=c.payload)!==null&&d!==void 0&&d.coordinate&&c.payload.sourceViewBox){var p=c.payload.coordinate,{x:h,y:m}=p,v=MD(p,AD),{x:b,y:O,width:L,height:E}=c.payload.sourceViewBox,S=wo(wo({},v),{},{x:i.x+(L?(h-b)/L:0)*i.width,y:i.y+(E?(m-O)/E:0)*i.height});r(wo(wo({},c),{},{payload:wo(wo({},c.payload),{},{coordinate:S})}))}else r(c);return}if(o!=null){var k;if(typeof a=="function"){var M={activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate},A=a(o,M);k=o[A]}else a==="value"&&(k=o.find(g=>String(g.value)===c.payload.label));var{coordinate:z}=c.payload;if(k==null||c.payload.active===!1||z==null||i==null){r(Tl({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:N,y:W}=z,F=Math.min(N,i.x+i.width),$=Math.min(W,i.y+i.height),Z={x:n==="horizontal"?k.coordinate:F,y:n==="horizontal"?$:k.coordinate},J=Tl({active:c.payload.active,coordinate:Z,dataKey:c.payload.dataKey,index:String(k.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId});r(J)}}};return Io.on(Wl,l),()=>{Io.off(Wl,l)}},[u,r,t,e,a,o,n,i])}function RD(){var e=Y(Ou),t=Y(ku),r=ne();Gl(()=>{if(e==null)return Qt;var a=(o,n,i)=>{t!==i&&e===o&&r(Ob(n))};return Io.on(Nd,a),()=>{Io.off(Nd,a)}},[r,t,e])}function Mb(){var e=ne();Gl(()=>{e(Sb())},[e]),TD(),RD()}function Db(e,t,r,a,o,n){var i=Y(h=>Qy(h,e,t)),u=Y(ql),l=Y(ku),s=Y(Ou),c=Y(dc),f=Y(Pb),d=f?.active,p=$r();Gl(()=>{if(!d&&s!=null&&l!=null){var h=Tl({active:n,coordinate:r,dataKey:i,index:o,label:typeof a=="number"?String(a):a,sourceViewBox:p,graphicalItemId:u});Io.emit(Wl,s,h,l)}},[d,r,i,u,o,a,l,s,c,n,p])}function Tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Rb(e){for(var t=1;t{M(Ay({shared:O,trigger:L,axisId:k,active:o,defaultIndex:A}))},[M,O,L,k,o,A]);var z=$r(),N=lu(),W=Iy(O),{activeIndex:F,isActive:$}=(t=Y(oe=>ab(oe,W,L,A)))!==null&&t!==void 0?t:{},Z=Y(oe=>rb(oe,W,L,A)),J=Y(oe=>Dd(oe,W,L,A)),g=Y(oe=>tb(oe,W,L,A)),y=Z,C=vb(),I=(r=o??$)!==null&&r!==void 0?r:!1,[x,w]=Wm([y,I]),D=W==="axis"?J:void 0;Db(W,L,g,D,F,I);var _=S??C;if(_==null||z==null||W==null)return null;var B=y??_b;I||(B=_b),s&&B.length&&(B=Rm(B.filter(oe=>oe.value!=null&&(oe.hide!==!0||a.includeHidden)),d,UD));var U=B.length>0,j=Rb(Rb({},a),{},{payload:B,label:D,active:I,activeIndex:F,coordinate:g,accessibilityLayer:N}),H=Ct.createElement(Pg,{allowEscapeViewBox:n,animationDuration:i,animationEasing:u,isAnimationActive:c,active:I,coordinate:g,hasPayload:U,offset:f,position:p,reverseDirection:h,useTranslate3d:m,viewBox:z,wrapperStyle:v,lastBoundingBox:x,innerRef:w,hasPortalFromProps:!!S},qD(l,j));return Ct.createElement(Ct.Fragment,null,jD(H,_),I&&Ct.createElement(gb,{cursor:b,tooltipEventType:W,coordinate:g,payload:B,index:F}))}var Kl=e=>null;Kl.displayName="Cell";import*as qd from"react";import{useMemo as mT,forwardRef as hT}from"react";function HD(e,t,r){return(t=VD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VD(e){var t=WD(e,"string");return typeof t=="symbol"?t:t+""}function WD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $l=class{constructor(t){HD(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var a=this.cache.keys().next().value;a!=null&&this.cache.delete(a)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}};function Nb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function GD(e){for(var t=1;t{try{var r=document.getElementById(Fb);r||(r=document.createElement("span"),r.setAttribute("id",Fb),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,ZD,t),r.textContent="".concat(e);var a=r.getBoundingClientRect();return{width:a.width,height:a.height}}catch{return{width:0,height:0}}},jd=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||jt.isSsr)return{width:0,height:0};if(!Ub.enableCache)return jb(t,r);var a=JD(t,r),o=Bb.get(a);if(o)return o;var n=jb(t,r);return Bb.set(a,n),n};var Vb;function QD(e,t,r){return(t=eT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eT(e){var t=tT(e,"string");return typeof t=="symbol"?t:t+""}function tT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qb=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zb=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,rT=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,aT=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,oT={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},nT=["cm","mm","pt","pc","in","Q","px"];function iT(e){return nT.includes(e)}var Co="NaN";function uT(e,t){return e*oT[t]}var Dr=class e{static parse(t){var r,[,a,o]=(r=aT.exec(t))!==null&&r!==void 0?r:[];return a==null?e.NaN:new e(parseFloat(a),o??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,tt(t)&&(this.unit=""),r!==""&&!rT.test(r)&&(this.num=NaN,this.unit=""),iT(r)&&(this.num=uT(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return tt(this.num)}};Vb=Dr;QD(Dr,"NaN",new Vb(NaN,""));function Wb(e){if(e==null||e.includes(Co))return Co;for(var t=e;t.includes("*")||t.includes("/");){var r,[,a,o,n]=(r=qb.exec(t))!==null&&r!==void 0?r:[],i=Dr.parse(a??""),u=Dr.parse(n??""),l=o==="*"?i.multiply(u):i.divide(u);if(l.isNaN())return Co;t=t.replace(qb,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var s,[,c,f,d]=(s=zb.exec(t))!==null&&s!==void 0?s:[],p=Dr.parse(c??""),h=Dr.parse(d??""),m=f==="+"?p.add(h):p.subtract(h);if(m.isNaN())return Co;t=t.replace(zb,m.toString())}return t}var Hb=/\(([^()]*)\)/;function lT(e){for(var t=e,r;(r=Hb.exec(t))!=null;){var[,a]=r;t=t.replace(Hb,Wb(a))}return t}function sT(e){var t=e.replace(/\s+/g,"");return t=lT(t),t=Wb(t),t}function fT(e){try{return sT(e)}catch{return Co}}function Xl(e){var t=fT(e.slice(5,-1));return t===Co?"":t}var cT=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],dT=["dx","dy","angle","className","breakAll"];function Ud(){return Ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:t,breakAll:r,style:a}=e;try{var o=[];Me(t)||(r?o=t.toString().split(""):o=t.toString().split(Xb));var n=o.map(u=>({word:u,width:jd(u,a).width})),i=r?0:jd("\xA0",a).width;return{wordsWithComputedWidth:n,spaceWidth:i}}catch{return null}};function Zb(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function Jb(e){return Me(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var Qb=(e,t,r,a)=>e.reduce((o,n)=>{var{word:i,width:u}=n,l=o[o.length-1];if(l&&u!=null&&(t==null||a||l.width+u+re.reduce((t,r)=>t.width>r.width?t:r),gT="\u2026",Kb=(e,t,r,a,o,n,i,u)=>{var l=e.slice(0,t),s=Yb({breakAll:r,style:a,children:l+gT});if(!s)return[!1,[]];var c=Qb(s.wordsWithComputedWidth,n,i,u),f=c.length>o||eI(c).width>Number(n);return[f,c]},vT=(e,t,r,a,o)=>{var{maxLines:n,children:i,style:u,breakAll:l}=e,s=X(n),c=String(i),f=Qb(t,a,r,o);if(!s||o)return f;var d=f.length>n||eI(f).width>Number(a);if(!d)return f;for(var p=0,h=c.length-1,m=0,v;p<=h&&m<=c.length-1;){var b=Math.floor((p+h)/2),O=b-1,[L,E]=Kb(c,O,l,u,n,a,r,o),[S]=Kb(c,b,l,u,n,a,r,o);if(!L&&!S&&(p=b+1),L&&S&&(h=b-1),!L&&S){v=E;break}m++}return v||f},$b=e=>{var t=Me(e)?[]:e.toString().split(Xb);return[{words:t,width:void 0}]},xT=e=>{var{width:t,scaleToFit:r,children:a,style:o,breakAll:n,maxLines:i}=e;if((t||r)&&!jt.isSsr){var u,l,s=Yb({breakAll:n,children:a,style:o});if(s){var{wordsWithComputedWidth:c,spaceWidth:f}=s;u=c,l=f}else return $b(a);return vT({breakAll:n,children:a,maxLines:i,style:o},u,l,t,!!r)}return $b(a)},tI="#808080",yT={angle:0,breakAll:!1,capHeight:"0.71em",fill:tI,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Un=hT((e,t)=>{var r=De(e,yT),{x:a,y:o,lineHeight:n,capHeight:i,fill:u,scaleToFit:l,textAnchor:s,verticalAnchor:c}=r,f=Gb(r,cT),d=mT(()=>xT({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:l,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,l,f.style,f.width]),{dx:p,dy:h,angle:m,className:v,breakAll:b}=f,O=Gb(f,dT);if(!rt(a)||!rt(o)||d.length===0)return null;var L=Number(a)+(X(p)?p:0),E=Number(o)+(X(h)?h:0);if(!ae(L)||!ae(E))return null;var S;switch(c){case"start":S=Xl("calc(".concat(i,")"));break;case"middle":S=Xl("calc(".concat((d.length-1)/2," * -").concat(n," + (").concat(i," / 2))"));break;default:S=Xl("calc(".concat(d.length-1," * -").concat(n,")"));break}var k=[],M=d[0];if(l&&M!=null){var A=M.width,{width:z}=f;k.push("scale(".concat(X(z)&&X(A)?z/A:1,")"))}return m&&k.push("rotate(".concat(m,", ").concat(L,", ").concat(E,")")),k.length&&(O.transform=k.join(" ")),qd.createElement("text",Ud({},Le(O),{ref:t,x:L,y:E,className:re("recharts-text",v),textAnchor:s,fill:u.includes("url")?tI:u}),d.map((N,W)=>{var F=N.words.join(b?"":" ");return qd.createElement("tspan",{x:L,dy:W===0?S:n,key:"".concat(F,"-").concat(W)},F)}))});Un.displayName="Text";import*as xa from"react";import{cloneElement as kT,createContext as iI,createElement as ET,isValidElement as zd,useContext as uI,useMemo as j4}from"react";function rI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Gt(e){for(var t=1;t{var{viewBox:t,position:r,offset:a=0,parentViewBox:o,clamp:n}=e,{x:i,y:u,height:l,upperWidth:s,lowerWidth:c}=Vo(t),f=i,d=i+(s-c)/2,p=(f+d)/2,h=(s+c)/2,m=f+s/2,v=l>=0?1:-1,b=v*a,O=v>0?"end":"start",L=v>0?"start":"end",E=s>=0?1:-1,S=E*a,k=E>0?"end":"start",M=E>0?"start":"end",A=o;if(r==="top"){var z={x:f+s/2,y:u-b,horizontalAnchor:"middle",verticalAnchor:O};return n&&A&&(z.height=Math.max(u-A.y,0),z.width=s),z}if(r==="bottom"){var N={x:d+c/2,y:u+l+b,horizontalAnchor:"middle",verticalAnchor:L};return n&&A&&(N.height=Math.max(A.y+A.height-(u+l),0),N.width=c),N}if(r==="left"){var W={x:p-S,y:u+l/2,horizontalAnchor:k,verticalAnchor:"middle"};return n&&A&&(W.width=Math.max(W.x-A.x,0),W.height=l),W}if(r==="right"){var F={x:p+h+S,y:u+l/2,horizontalAnchor:M,verticalAnchor:"middle"};return n&&A&&(F.width=Math.max(A.x+A.width-F.x,0),F.height=l),F}var $=n&&A?{width:h,height:l}:{};return r==="insideLeft"?Gt({x:p+S,y:u+l/2,horizontalAnchor:M,verticalAnchor:"middle"},$):r==="insideRight"?Gt({x:p+h-S,y:u+l/2,horizontalAnchor:k,verticalAnchor:"middle"},$):r==="insideTop"?Gt({x:f+s/2,y:u+b,horizontalAnchor:"middle",verticalAnchor:L},$):r==="insideBottom"?Gt({x:d+c/2,y:u+l-b,horizontalAnchor:"middle",verticalAnchor:O},$):r==="insideTopLeft"?Gt({x:f+S,y:u+b,horizontalAnchor:M,verticalAnchor:L},$):r==="insideTopRight"?Gt({x:f+s-S,y:u+b,horizontalAnchor:k,verticalAnchor:L},$):r==="insideBottomLeft"?Gt({x:d+S,y:u+l-b,horizontalAnchor:M,verticalAnchor:O},$):r==="insideBottomRight"?Gt({x:d+c-S,y:u+l-b,horizontalAnchor:k,verticalAnchor:O},$):r&&typeof r=="object"&&(X(r.x)||Yt(r.x))&&(X(r.y)||Yt(r.y))?Gt({x:i+Ue(r.x,h),y:u+Ue(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},$):Gt({x:m,y:u+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},$)};var CT=["labelRef"],LT=["content"];function oI(e,t){if(e==null)return{};var r,a,o=ST(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var e=uI(MT),t=$r();return e||(t?Vo(t):void 0)},TT=iI(null);var RT=()=>{var e=uI(TT),t=Y(Ru);return e||t},_T=e=>{var{value:t,formatter:r}=e,a=Me(e.children)?t:e.children;return typeof r=="function"?r(a):a},lI=e=>e!=null&&typeof e=="function",NT=(e,t)=>{var r=Pe(t-e),a=Math.min(Math.abs(t-e),360);return r*a},BT=(e,t,r,a,o)=>{var{offset:n,className:i}=e,{cx:u,cy:l,innerRadius:s,outerRadius:c,startAngle:f,endAngle:d,clockWise:p}=o,h=(s+c)/2,m=NT(f,d),v=m>=0?1:-1,b,O;switch(t){case"insideStart":b=f+v*n,O=p;break;case"insideEnd":b=d-v*n,O=!p;break;case"end":b=d+v*n,O=p;break;default:throw new Error("Unsupported position ".concat(t))}O=m<=0?O:!O;var L=ge(u,l,h,b),E=ge(u,l,h,b+(O?1:-1)*359),S="M".concat(L.x,",").concat(L.y,` + A`).concat(h,",").concat(h,",0,1,").concat(O?0:1,`, + `).concat(E.x,",").concat(E.y),k=Me(e.id)?Zt("recharts-radial-line-"):e.id;return xa.createElement("text",Jl({},a,{dominantBaseline:"central",className:re("recharts-radial-bar-label",i)}),xa.createElement("defs",null,xa.createElement("path",{id:k,d:S})),xa.createElement("textPath",{xlinkHref:"#".concat(k)},r))},FT=(e,t,r)=>{var{cx:a,cy:o,innerRadius:n,outerRadius:i,startAngle:u,endAngle:l}=e,s=(u+l)/2;if(r==="outside"){var{x:c,y:f}=ge(a,o,i+t,s);return{x:c,y:f,textAnchor:c>=a?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"end"};var d=(n+i)/2,{x:p,y:h}=ge(a,o,d,s);return{x:p,y:h,textAnchor:"middle",verticalAnchor:"middle"}},Zl=e=>e!=null&&"cx"in e&&X(e.cx),jT={angle:0,offset:5,zIndex:Ae.label,position:"middle",textBreakAll:!1};function UT(e){if(!Zl(e))return e;var{cx:t,cy:r,outerRadius:a}=e,o=a*2;return{x:t-a,y:r-a,width:o,upperWidth:o,lowerWidth:o,height:o}}function Hd(e){var t=De(e,jT),{viewBox:r,parentViewBox:a,position:o,value:n,children:i,content:u,className:l="",textBreakAll:s,labelRef:c}=t,f=RT(),d=DT(),p=o==="center"?d:f??d,h,m,v;r==null?h=p:Zl(r)?h=r:h=Vo(r);var b=UT(h);if(!h||Me(n)&&Me(i)&&!zd(u)&&typeof u!="function")return null;var O=Yl(Yl({},t),{},{viewBox:h});if(zd(u)){var{labelRef:L}=O,E=oI(O,CT);return kT(u,E)}if(typeof u=="function"){var{content:S}=O,k=oI(O,LT);if(m=ET(u,k),zd(m))return m}else m=_T(t);var M=Le(t);if(Zl(h)){if(o==="insideStart"||o==="insideEnd"||o==="end")return BT(t,o,m,M,h);v=FT(h,t.offset,t.position)}else{if(!b)return null;var A=aI({viewBox:b,position:o,offset:t.offset,parentViewBox:Zl(a)?void 0:a,clamp:!0});v=Yl(Yl({x:A.x,y:A.y,textAnchor:A.horizontalAnchor,verticalAnchor:A.verticalAnchor},A.width!==void 0?{width:A.width}:{}),A.height!==void 0?{height:A.height}:{})}return xa.createElement(cr,{zIndex:t.zIndex},xa.createElement(Un,Jl({ref:c,className:re("recharts-label",l)},M,v,{textAnchor:Zb(M.textAnchor)?M.textAnchor:v.textAnchor,breakAll:s}),m))}Hd.displayName="Label";import*as dr from"react";import{createContext as fI,useContext as cI}from"react";var qT=["valueAccessor"],zT=["dataKey","clockWise","id","textBreakAll","zIndex"];function es(){return es=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(Jb(t))return t},dI=fI(void 0),l6=dI.Provider,pI=fI(void 0),mI=pI.Provider;function WT(){return cI(dI)}function GT(){return cI(pI)}function Ql(e){var{valueAccessor:t=VT}=e,r=sI(e,qT),{dataKey:a,clockWise:o,id:n,textBreakAll:i,zIndex:u}=r,l=sI(r,zT),s=WT(),c=GT(),f=s||c;return!f||!f.length?null:dr.createElement(cr,{zIndex:u??Ae.label},dr.createElement(gt,{className:"recharts-label-list"},f.map((d,p)=>{var h,m=Me(a)?t(d,p):de(d.payload,a),v=Me(n)?{}:{id:"".concat(n,"-").concat(p)};return dr.createElement(Hd,es({key:"label-".concat(p)},Le(d),l,v,{fill:(h=r.fill)!==null&&h!==void 0?h:d.fill,parentViewBox:d.parentViewBox,value:m,textBreakAll:i,viewBox:d.viewBox,index:p,zIndex:0}))})))}Ql.displayName="LabelList";function hI(e){var{label:t}=e;return t?t===!0?dr.createElement(Ql,{key:"labelList-implicit"}):dr.isValidElement(t)||lI(t)?dr.createElement(Ql,{key:"labelList-implicit",content:t}):typeof t=="object"?dr.createElement(Ql,es({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}var Vd=e=>e.graphicalItems.polarItems,KT=P([xe,Qr],Cn),ts=P([Vd,Ce,KT],Ln),$T=P([ts],Pn),rs=P([$T,Zo],An),XT=P([rs,Ce,ts],On),y6=P([rs,Ce,ts],(e,t,r)=>r.length>0?e.flatMap(a=>r.flatMap(o=>{var n,i=de(a,(n=t.dataKey)!==null&&n!==void 0?n:o.dataKey);return{value:i,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(a=>({value:de(a,t.dataKey),errorDomain:[]})):e.map(a=>({value:a,errorDomain:[]}))),gI=()=>{},YT=P([rs,Ce,ts,vo,xe],En),ZT=P([Ce,Ll,Sl,gI,YT,gI,le,xe],Mn),vI=P([Ce,le,rs,XT,yr,xe,ZT],Dn),JT=P([vI,pa,lr],Tn),QT=P([Ce,vI,JT,xe],Rn),b6=P([lr,QT],Bu);var eR={radiusAxis:{},angleAxis:{}},xI=ue({name:"polarAxis",initialState:eR,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:C6,removeRadiusAxis:L6,addAngleAxis:S6,removeAngleAxis:P6}=xI.actions,yI=xI.reducer;function bI(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}import*as Q from"react";import{useCallback as d0,useMemo as Qd,useRef as WR,useState as GR}from"react";function II(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function wI(e){for(var t=1;tt,Wd=P([Vd,oR],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),nR=[],Gd=(e,t,r)=>r?.length===0?nR:r,CI=P([Zo,Wd,Gd],(e,t,r)=>{var{chartData:a}=e;if(t!=null){var o;if(t?.data!=null&&t.data.length>0?o=t.data:o=a,(!o||!o.length)&&r!=null&&(o=r.map(n=>wI(wI({},t.presentationProps),n.props))),o!=null)return o}}),LI=P([CI,Wd,Gd],(e,t,r)=>{if(!(e==null||t==null))return e.map((a,o)=>{var n,i=de(a,t.nameKey,t.name),u;return r!=null&&(n=r[o])!==null&&n!==void 0&&(n=n.props)!==null&&n!==void 0&&n.fill?u=r[o].props.fill:typeof a=="object"&&a!=null&&"fill"in a?u=a.fill:u=t.fill,{value:tu(i,t.dataKey),color:u,payload:a,type:t.legendType}})}),SI=P([CI,Wd,Gd,pe],(e,t,r,a)=>{if(!(t==null||e==null))return PI({offset:a,pieSettings:t,displayedData:e,cells:r})});var DI=ri(kI());import{Children as lR}from"react";var EI=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",MI=null,Xd=null,TI=e=>{if(e===MI&&Array.isArray(Xd))return Xd;var t=[];return lR.forEach(e,r=>{Me(r)||((0,DI.isFragment)(r)?t=t.concat(TI(r.props.children)):t.push(r))}),Xd=t,MI=e,t};function Yd(e,t){var r=[],a=[];return Array.isArray(t)?a=t.map(o=>EI(o)):a=[EI(t)],TI(e).forEach(o=>{var n=$e(o,"type.displayName")||$e(o,"type.name");n&&a.indexOf(n)!==-1&&r.push(o)}),r}import*as Kt from"react";import{cloneElement as IR,isValidElement as WI}from"react";function Zd(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let r=e[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${r}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}import*as zn from"react";import{useEffect as dR,useRef as Lo,useState as pR}from"react";var RI,_I,NI,BI,FI;function jI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function UI(e){for(var t=1;t{var n=r-a,i;return i=ve(RI||(RI=qn(["M ",",",""])),e,t),i+=ve(_I||(_I=qn(["L ",",",""])),e+r,t),i+=ve(NI||(NI=qn(["L ",",",""])),e+r-n/2,t+o),i+=ve(BI||(BI=qn(["L ",",",""])),e+r-n/2-a,t+o),i+=ve(FI||(FI=qn(["L ",","," Z"])),e,t),i},mR={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zI=e=>{var t=De(e,mR),{x:r,y:a,upperWidth:o,lowerWidth:n,height:i,className:u}=t,{animationEasing:l,animationDuration:s,animationBegin:c,isUpdateAnimationActive:f}=t,d=Lo(null),[p,h]=pR(-1),m=Lo(o),v=Lo(n),b=Lo(i),O=Lo(r),L=Lo(a),E=Ya(e,"trapezoid-");if(dR(()=>{if(d.current&&d.current.getTotalLength)try{var Z=d.current.getTotalLength();Z&&h(Z)}catch{}},[]),r!==+r||a!==+a||o!==+o||n!==+n||i!==+i||o===0&&n===0||i===0)return null;var S=re("recharts-trapezoid",u);if(!f)return zn.createElement("g",null,zn.createElement("path",ps({},Le(t),{className:S,d:qI(r,a,o,n,i)})));var k=m.current,M=v.current,A=b.current,z=O.current,N=L.current,W="0px ".concat(p===-1?1:p,"px"),F="".concat(p,"px ").concat(p,"px"),$=fu(["strokeDasharray"],s,l);return zn.createElement(Xa,{animationId:E,key:E,canBegin:p>0,duration:s,easing:l,isActive:f,begin:c},Z=>{var J=at(k,o,Z),g=at(M,n,Z),y=at(A,i,Z),C=at(z,r,Z),I=at(N,a,Z);d.current&&(m.current=J,v.current=g,b.current=y,O.current=C,L.current=I);var x=Z>0?{transition:$,strokeDasharray:F}:{strokeDasharray:W};return zn.createElement("path",ps({},Le(t),{className:S,d:qI(C,I,J,g,y),ref:d,style:UI(UI({},x),t.style)}))})};var hR=["option","shapeType","activeClassName","inActiveClassName"];function gR(e,t){if(e==null)return{};var r,a,o=vR(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var a=ne();return(o,n)=>i=>{e?.(o,n,i),a(El({activeIndex:String(n),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}},$I=e=>{var t=ne();return(r,a)=>o=>{e?.(r,a,o),t(Oy())}},XI=(e,t,r)=>{var a=ne();return(o,n)=>i=>{e?.(o,n,i),a(ky({activeIndex:String(n),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}};import{useLayoutEffect as YI,useRef as SR}from"react";function ZI(e){var{tooltipEntrySettings:t}=e,r=ne(),a=Ye(),o=SR(null);return YI(()=>{a||(o.current===null?r(Ly(t)):o.current!==t&&r(Sy({prev:o.current,next:t})),o.current=t)},[t,r,a]),YI(()=>()=>{o.current&&(r(Py(o.current)),o.current=null)},[r]),null}import{useLayoutEffect as JI,useRef as PR}from"react";function QI(e){var{legendPayload:t}=e,r=ne(),a=Y(le),o=PR(null);return JI(()=>{a!=="centric"&&a!=="radial"||(o.current===null?r(pg(t)):o.current!==t&&r(mg({prev:o.current,next:t})),o.current=t)},[r,a,t]),JI(()=>()=>{o.current&&(r(hg(o.current)),o.current=null)},[r]),null}import*as r0 from"react";import{createContext as OR,useContext as O8}from"react";import*as hs from"react";var Jd,AR=()=>{var[e]=hs.useState(()=>Zt("uid-"));return e},e0=(Jd=hs.useId)!==null&&Jd!==void 0?Jd:AR;function t0(e,t){var r=e0();return t||(e?"".concat(e,"-").concat(r):r)}var kR=OR(void 0),a0=e=>{var{id:t,type:r,children:a}=e,o=t0("recharts-".concat(r),t);return r0.createElement(kR.Provider,{value:o},a(o))};import{memo as RR,useLayoutEffect as s0,useRef as _R}from"react";var ER={cartesianItems:[],polarItems:[]},o0=ue({name:"graphicalItems",initialState:ER,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ce()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ve(e).cartesianItems.indexOf(r);o>-1&&(e.cartesianItems[o]=a)},prepare:ce()},removeCartesianGraphicalItem:{reducer(e,t){var r=Ve(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:ce()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:ce()},removePolarGraphicalItem:{reducer(e,t){var r=Ve(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:ce()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ve(e).polarItems.indexOf(r);o>-1&&(e.polarItems[o]=a)},prepare:ce()}}}),{addCartesianGraphicalItem:MR,replaceCartesianGraphicalItem:DR,removeCartesianGraphicalItem:TR,addPolarGraphicalItem:n0,removePolarGraphicalItem:i0,replacePolarGraphicalItem:u0}=o0.actions,l0=o0.reducer;var NR=e=>{var t=ne(),r=_R(null);return s0(()=>{r.current===null?t(n0(e)):r.current!==e&&t(u0({prev:r.current,next:e})),r.current=e},[t,e]),s0(()=>()=>{r.current&&(t(i0(r.current)),r.current=null)},[t]),null},f0=RR(NR);var BR=["key"],FR=["onMouseEnter","onClick","onMouseLeave"],jR=["id"],UR=["id"];function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;tYd(e.children,Kl),[e.children]),r=Y(a=>LI(a,e.id,t));return r==null?null:Q.createElement(QI,{legendPayload:r})}function $R(e){if(!(e==null||typeof e=="boolean"||typeof e=="function")){if(Q.isValidElement(e)){var t,r=(t=e.props)===null||t===void 0?void 0:t.fill;return typeof r=="string"?r:void 0}var{fill:a}=e;return typeof a=="string"?a:void 0}}var XR=Q.memo(e=>{var{dataKey:t,nameKey:r,sectors:a,stroke:o,strokeWidth:n,fill:i,name:u,hide:l,tooltipType:s,id:c,activeShape:f}=e,d=$R(f),p=a.map(m=>{var v=m.tooltipPayload;return d==null||v==null?v:v.map(b=>be(be({},b),{},{color:d,fill:d}))}),h={dataDefinedOnItem:p,getPosition:m=>{var v;return(v=a[Number(m)])===null||v===void 0?void 0:v.tooltipPosition},settings:{stroke:o,strokeWidth:n,fill:i,dataKey:t,nameKey:r,name:tu(u,t),hide:l,type:s,color:i,unit:"",graphicalItemId:c}};return Q.createElement(ZI,{tooltipEntrySettings:h})}),YR=(e,t)=>e>t?"start":etypeof t=="function"?Ue(t(e),r,r*.8):Ue(t,r,r*.8),JR=(e,t,r)=>{var{top:a,left:o,width:n,height:i}=t,u=vu(n,i),l=o+Ue(e.cx,n,n/2),s=a+Ue(e.cy,i,i/2),c=Ue(e.innerRadius,u,0),f=ZR(r,e.outerRadius,u),d=e.maxRadius||Math.sqrt(n*n+i*i)/2;return{cx:l,cy:s,innerRadius:c,outerRadius:f,maxRadius:d}},QR=(e,t)=>{var r=Pe(t-e),a=Math.min(Math.abs(t-e),360);return r*a},e1=(e,t)=>{if(Q.isValidElement(e))return Q.cloneElement(e,t);if(typeof e=="function")return e(t);var r=re("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:a}=t,o=gs(t,BR);return Q.createElement(Ka,Tr({},o,{type:"linear",className:r}))},t1=(e,t,r)=>{if(Q.isValidElement(e))return Q.cloneElement(e,t);var a=r;if(typeof e=="function"&&(a=e(t),Q.isValidElement(a)))return a;var o=re("recharts-pie-label-text",bI(e));return Q.createElement(Un,Tr({},t,{alignmentBaseline:"middle",className:o}),a)};function r1(e){var{sectors:t,props:r,showLabels:a}=e,{label:o,labelLine:n,dataKey:i}=r;if(!a||!o||!t)return null;var u=Xt(r),l=Eo(o),s=Eo(n),c=typeof o=="object"&&"offsetRadius"in o&&typeof o.offsetRadius=="number"&&o.offsetRadius||20,f=t.map((d,p)=>{var h=(d.startAngle+d.endAngle)/2,m=ge(d.cx,d.cy,d.outerRadius+c,h),v=be(be(be(be({},u),d),{},{stroke:"none"},l),{},{index:p,textAnchor:YR(m.x,d.cx)},m),b=be(be(be(be({},u),d),{},{fill:"none",stroke:d.fill},s),{},{index:p,points:[ge(d.cx,d.cy,d.outerRadius,h),m],key:"line"});return Q.createElement(cr,{zIndex:Ae.label,key:"label-".concat(d.startAngle,"-").concat(d.endAngle,"-").concat(d.midAngle,"-").concat(p)},Q.createElement(gt,null,n&&e1(n,b),t1(o,v,de(d,i))))});return Q.createElement(gt,{className:"recharts-pie-labels"},f)}function a1(e){var{sectors:t,props:r,showLabels:a}=e,{label:o}=r;return typeof o=="object"&&o!=null&&"position"in o?Q.createElement(hI,{label:o}):Q.createElement(r1,{sectors:t,props:r,showLabels:a})}function o1(e){var{sectors:t,activeShape:r,inactiveShape:a,allOtherPieProps:o,shape:n,id:i}=e,u=Y(va),l=Y(Ul),s=Y(ql),{onMouseEnter:c,onClick:f,onMouseLeave:d}=o,p=gs(o,FR),h=KI(c,o.dataKey,i),m=$I(d),v=XI(f,o.dataKey,i);return t==null||t.length===0?null:Q.createElement(Q.Fragment,null,t.map((b,O)=>{if(b?.startAngle===0&&b?.endAngle===0&&t.length!==1)return null;var L=s==null||s===i,E=String(O)===u&&(l==null||o.dataKey===l)&&L,S=u?a:null,k=r&&E?r:S,M=be(be({},b),{},{stroke:b.stroke,tabIndex:-1,[au]:O,[ou]:i});return Q.createElement(gt,Tr({key:"sector-".concat(b?.startAngle,"-").concat(b?.endAngle,"-").concat(b.midAngle,"-").concat(O),tabIndex:-1,className:"recharts-pie-sector"},Xp(p,b,O),{onMouseEnter:h(b,O),onMouseLeave:m(b,O),onClick:v(b,O)}),Q.createElement(GI,Tr({option:n??k,index:O,shapeType:"sector",isActive:E},M)))}))}function PI(e){var t,{pieSettings:r,displayedData:a,cells:o,offset:n}=e,{cornerRadius:i,startAngle:u,endAngle:l,dataKey:s,nameKey:c,tooltipType:f}=r,d=Math.abs(r.minAngle),p=QR(u,l),h=Math.abs(p),m=a.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,v=a.filter(k=>de(k,s,0)!==0).length,b=(h>=360?v:v-1)*m,O=h-v*d-b,L=a.reduce((k,M)=>{var A=de(M,s,0);return k+(X(A)?A:0)},0),E;if(L>0){var S;E=a.map((k,M)=>{var A=de(k,s,0),z=de(k,c,M),N=JR(r,n,k),W=(X(A)?A:0)/L,F,$=be(be({},k),o&&o[M]&&o[M].props),Z=$!=null&&"fill"in $&&typeof $.fill=="string"?$.fill:r.fill;M?F=S.endAngle+Pe(p)*m*(A!==0?1:0):F=u;var J=F+Pe(p)*((A!==0?d:0)+W*O),g=(F+J)/2,y=(N.innerRadius+N.outerRadius)/2,C=[{name:z,value:A,payload:$,dataKey:s,type:f,color:Z,fill:Z,graphicalItemId:r.id}],I=ge(N.cx,N.cy,y,g);return S=be(be(be(be({},r.presentationProps),{},{percent:W,cornerRadius:typeof i=="string"?parseFloat(i):i,name:z,tooltipPayload:C,midAngle:g,middleRadius:y,tooltipPosition:I},$),N),{},{value:A,dataKey:s,startAngle:F,endAngle:J,payload:$,paddingAngle:Pe(p)*m}),S})}return E}function n1(e){var{showLabels:t,sectors:r,children:a}=e,o=Qd(()=>!t||!r?[]:r.map(n=>({value:n.value,payload:n.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:n.cx,cy:n.cy,innerRadius:n.innerRadius,outerRadius:n.outerRadius,startAngle:n.startAngle,endAngle:n.endAngle,clockWise:!1},fill:n.fill})),[r,t]);return Q.createElement(mI,{value:t?o:void 0},a)}function i1(e){var{props:t,previousSectorsRef:r,id:a}=e,{sectors:o,isAnimationActive:n,animationBegin:i,animationDuration:u,animationEasing:l,activeShape:s,inactiveShape:c,onAnimationStart:f,onAnimationEnd:d}=t,p=Ya(t,"recharts-pie-"),h=r.current,[m,v]=GR(!1),b=d0(()=>{typeof d=="function"&&d(),v(!1)},[d]),O=d0(()=>{typeof f=="function"&&f(),v(!0)},[f]);return Q.createElement(n1,{showLabels:!m,sectors:o},Q.createElement(Xa,{animationId:p,begin:i,duration:u,isActive:n,easing:l,onAnimationStart:O,onAnimationEnd:b,key:p},L=>{var E,S=[],k=o&&o[0],M=(E=k?.startAngle)!==null&&E!==void 0?E:0;return o?.forEach((A,z)=>{var N=h&&h[z],W=z>0?$e(A,"paddingAngle",0):0;if(N){var F=at(N.endAngle-N.startAngle,A.endAngle-A.startAngle,L),$=be(be({},A),{},{startAngle:M+W,endAngle:M+F+W});S.push($),M=$.endAngle}else{var{endAngle:Z,startAngle:J}=A,g=at(0,Z-J,L),y=be(be({},A),{},{startAngle:M+W,endAngle:M+g+W});S.push(y),M=y.endAngle}}),r.current=S,Q.createElement(gt,null,Q.createElement(o1,{sectors:S,activeShape:s,inactiveShape:c,allOtherPieProps:t,shape:t.shape,id:a}))}),Q.createElement(a1,{showLabels:!m,sectors:o,props:t}),t.children)}var u1={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:Ae.area};function l1(e){var{id:t}=e,r=gs(e,jR),{hide:a,className:o,rootTabIndex:n}=e,i=Qd(()=>Yd(e.children,Kl),[e.children]),u=Y(c=>SI(c,t,i)),l=WR(null),s=re("recharts-pie",o);return a||u==null?(l.current=null,Q.createElement(gt,{tabIndex:n,className:s})):Q.createElement(cr,{zIndex:e.zIndex},Q.createElement(XR,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:u,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t,activeShape:e.activeShape}),Q.createElement(gt,{tabIndex:n,className:s},Q.createElement(i1,{props:be(be({},r),{},{sectors:u}),previousSectorsRef:l,id:t})))}function s1(e){var t=De(e,u1),{id:r}=t,a=gs(t,UR),o=Xt(a);return Q.createElement(a0,{id:r,type:"pie"},n=>Q.createElement(Q.Fragment,null,Q.createElement(f0,{type:"pie",id:n,data:a.data,dataKey:a.dataKey,hide:a.hide,angleAxisId:0,radiusAxisId:0,name:a.name,nameKey:a.nameKey,tooltipType:a.tooltipType,legendType:a.legendType,fill:a.fill,cx:a.cx,cy:a.cy,startAngle:a.startAngle,endAngle:a.endAngle,paddingAngle:a.paddingAngle,minAngle:a.minAngle,innerRadius:a.innerRadius,outerRadius:a.outerRadius,cornerRadius:a.cornerRadius,presentationProps:o,maxRadius:t.maxRadius}),Q.createElement(KR,Tr({},a,{id:n})),Q.createElement(l1,Tr({},a,{id:n}))))}var vs=s1;vs.displayName="Pie";function p0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function m0(e){for(var t=1;t({top:e.top,bottom:e.bottom,left:e.left,right:e.right}));var x0=P([v0,We,Ge],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}});var y0=()=>Y(x0);import{useEffect as m1}from"react";var b0=e=>{var{chartData:t}=e,r=ne(),a=Ye();return m1(()=>a?()=>{}:(r(Bd(t)),()=>{r(Bd(void 0))}),[t,r,a]),null};var I0={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},w0=ue({name:"brush",initialState:I0,reducers:{setBrushSettings(e,t){return t.payload==null?I0:t.payload}}}),{setBrushSettings:zZ}=w0.actions,C0=w0.reducer;var h1={dots:[],areas:[],lines:[]},L0=ue({name:"referenceElements",initialState:h1,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Ve(e).dots.findIndex(a=>a===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Ve(e).areas.findIndex(a=>a===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Ve(e).lines.findIndex(a=>a===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:WZ,removeDot:GZ,addArea:KZ,removeArea:$Z,addLine:XZ,removeLine:YZ}=L0.actions,S0=L0.reducer;import*as Hn from"react";import{createContext as g1,useContext as QZ,useState as v1}from"react";var x1=g1(void 0),P0=e=>{var{children:t}=e,[r]=v1("".concat(Zt("recharts"),"-clip")),a=y0();if(a==null)return null;var{x:o,y:n,width:i,height:u}=a;return Hn.createElement(x1.Provider,{value:r},Hn.createElement("defs",null,Hn.createElement("clipPath",{id:r},Hn.createElement("rect",{x:o,y:n,height:u,width:i}))),t)};var y1={xAxis:{},yAxis:{}},A0=ue({name:"renderedTicks",initialState:y1,reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:a,ticks:o}=t.payload;e[r][a]=o},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:a}=t.payload;delete e[r][a]}}}),{setRenderedTicks:o9,removeRenderedTicks:n9}=A0.actions,O0=A0.reducer;var b1={},k0=ue({name:"errorBars",initialState:b1,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:a}=t.payload;e[r]||(e[r]=[]),e[r].push(a)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:a,next:o}=t.payload;e[r]&&(e[r]=e[r].map(n=>n.dataKey===a.dataKey&&n.direction===a.direction?o:n))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:a}=t.payload;e[r]&&(e[r]=e[r].filter(o=>o.dataKey!==a.dataKey||o.direction!==a.direction))}}}),{addErrorBar:l9,replaceErrorBar:s9,removeErrorBar:f9}=k0.actions,E0=k0.reducer;import*as W0 from"react";import{useRef as A1}from"react";var I1=(e,t)=>t,Vn=P([I1,le,Ru,Oe,wd,nt,Jy,pe],ob);function w1(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function Wn(e){var t=e.currentTarget.getBoundingClientRect(),r,a;if(w1(e)){var o=e.currentTarget.getBBox();r=o.width>0?t.width/o.width:1,a=o.height>0?t.height/o.height:1}else{var n=e.currentTarget;r=n.offsetWidth>0?t.width/n.offsetWidth:1,a=n.offsetHeight>0?t.height/n.offsetHeight:1}var i=(u,l)=>({relativeX:Math.round((u-t.left)/r),relativeY:Math.round((l-t.top)/a)});return"touches"in e?Array.from(e.touches).map(u=>i(u.clientX,u.clientY)):i(e.clientX,e.clientY)}var tp=Te("mouseClick"),rp=rr();rp.startListening({actionCreator:tp,effect:(e,t)=>{var r=e.payload,a=Vn(t.getState(),Wn(r));a?.activeIndex!=null&&t.dispatch(Ey({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}});var xs=Te("mouseMove"),ap=rr(),So=null,ya=null,ep=null;ap.startListening({actionCreator:xs,effect:(e,t)=>{var r=e.payload,a=t.getState(),{throttleDelay:o,throttledEvents:n}=a.eventSettings,i=n==="all"||n?.includes("mousemove");So!==null&&(cancelAnimationFrame(So),So=null),ya!==null&&(typeof o!="number"||!i)&&(clearTimeout(ya),ya=null),ep=Wn(r);var u=()=>{var l=t.getState(),s=_n(l,l.tooltip.settings.shared);if(!ep){So=null,ya=null;return}if(s==="axis"){var c=Vn(l,ep);c?.activeIndex!=null?t.dispatch(Dl({activeIndex:c.activeIndex,activeDataKey:void 0,activeCoordinate:c.activeCoordinate})):t.dispatch(Ml())}So=null,ya=null};if(!i){u();return}o==="raf"?So=requestAnimationFrame(u):typeof o=="number"&&ya===null&&(ya=setTimeout(u,o))}});function M0(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<>":t}var D0={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},T0=ue({name:"rootProps",initialState:D0,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:D0.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),R0=T0.reducer,{updateOptions:_0}=T0.actions;var C1=null,L1={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},N0=ue({name:"polarOptions",initialState:C1,reducers:L1}),{updatePolarOptions:B0}=N0.actions,F0=N0.reducer;var op=Te("keyDown"),np=Te("focus"),ip=Te("blur"),Gn=rr(),Po=null,ba=null,ys=null;Gn.startListening({actionCreator:op,effect:(e,t)=>{ys=e.payload,Po!==null&&(cancelAnimationFrame(Po),Po=null);var r=t.getState(),{throttleDelay:a,throttledEvents:o}=r.eventSettings,n=o==="all"||o.includes("keydown");ba!==null&&(typeof a!="number"||!n)&&(clearTimeout(ba),ba=null);var i=()=>{try{var u=t.getState(),l=u.rootProps.accessibilityLayer!==!1;if(!l)return;var{keyboardInteraction:s}=u.tooltip,c=ys;if(c!=="ArrowRight"&&c!=="ArrowLeft"&&c!=="Enter")return;var f=yo(s,Mr(u),Er(u),ga(u)),d=f==null?-1:Number(f);if(!Number.isFinite(d)||d<0)return;var p=nt(u);if(c==="Enter"){var h=Fn(u,"axis","hover",String(s.index));t.dispatch(Nn({active:!s.active,activeIndex:s.index,activeCoordinate:h}));return}var m=by(u),v=m==="left-to-right"?1:-1,b=c==="ArrowRight"?1:-1,O=d+b*v;if(p==null||O>=p.length||O<0)return;var L=Fn(u,"axis","hover",String(O));t.dispatch(Nn({active:!0,activeIndex:O.toString(),activeCoordinate:L}))}finally{Po=null,ba=null}};if(!n){i();return}a==="raf"?Po=requestAnimationFrame(i):typeof a=="number"&&ba===null&&(i(),ys=null,ba=setTimeout(()=>{ys?i():(ba=null,Po=null)},a))}});Gn.startListening({actionCreator:np,effect:(e,t)=>{var r=t.getState(),a=r.rootProps.accessibilityLayer!==!1;if(a){var{keyboardInteraction:o}=r.tooltip;if(!o.active&&o.index==null){var n="0",i=Fn(r,"axis","hover",String(n));t.dispatch(Nn({active:!0,activeIndex:n,activeCoordinate:i}))}}}});Gn.startListening({actionCreator:ip,effect:(e,t)=>{var r=t.getState(),a=r.rootProps.accessibilityLayer!==!1;if(a){var{keyboardInteraction:o}=r.tooltip;o.active&&t.dispatch(Nn({active:!1,activeIndex:o.index,activeCoordinate:o.coordinate}))}}});function bs(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(r,a)=>{if(a==="currentTarget")return t;var o=Reflect.get(r,a);return typeof o=="function"?o.bind(r):o}})}var mt=Te("externalEvent"),lp=rr(),Is=new Map,Kn=new Map,up=new Map;lp.startListening({actionCreator:mt,effect:(e,t)=>{var{handler:r,reactEvent:a}=e.payload;if(r!=null){var o=a.type,n=bs(a);up.set(o,{handler:r,reactEvent:n});var i=Is.get(o);i!==void 0&&(cancelAnimationFrame(i),Is.delete(o));var u=t.getState(),{throttleDelay:l,throttledEvents:s}=u.eventSettings,c=s,f=c==="all"||c?.includes(o),d=Kn.get(o);d!==void 0&&(typeof l!="number"||!f)&&(clearTimeout(d),Kn.delete(o));var p=()=>{var v=up.get(o);try{if(!v)return;var{handler:b,reactEvent:O}=v,L=t.getState(),E={activeCoordinate:qy(L),activeDataKey:Ul(L),activeIndex:va(L),activeLabel:Pd(L),activeTooltipIndex:va(L),isTooltipActive:zy(L)};b&&b(E,O)}finally{Is.delete(o),Kn.delete(o),up.delete(o)}};if(!f){p();return}if(l==="raf"){var h=requestAnimationFrame(p);Is.set(o,h)}else if(typeof l=="number"){if(!Kn.has(o)){p();var m=setTimeout(p,l);Kn.set(o,m)}}else p()}}});var S1=P([fr],e=>e.tooltipItemPayloads),j0=P([S1,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var a=e.find(n=>n.settings.graphicalItemId===r);if(a!=null){var{getPosition:o}=a;if(o!=null)return o(t)}}});var sp=Te("touchMove"),fp=rr(),Ia=null,Rr=null,U0=null,$n=null;fp.startListening({actionCreator:sp,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){$n=bs(r);var a=t.getState(),{throttleDelay:o,throttledEvents:n}=a.eventSettings,i=n==="all"||n.includes("touchmove");Ia!==null&&(cancelAnimationFrame(Ia),Ia=null),Rr!==null&&(typeof o!="number"||!i)&&(clearTimeout(Rr),Rr=null),U0=Array.from(r.touches).map(l=>Wn({clientX:l.clientX,clientY:l.clientY,currentTarget:r.currentTarget}));var u=()=>{if($n!=null){var l=t.getState(),s=_n(l,l.tooltip.settings.shared);if(s==="axis"){var c,f=(c=U0)===null||c===void 0?void 0:c[0];if(f==null){Ia=null,Rr=null;return}var d=Vn(l,f);d?.activeIndex!=null&&t.dispatch(Dl({activeIndex:d.activeIndex,activeDataKey:void 0,activeCoordinate:d.activeCoordinate}))}else if(s==="item"){var p,h=$n.touches[0];if(document.elementFromPoint==null||h==null)return;var m=document.elementFromPoint(h.clientX,h.clientY);if(!m||!m.getAttribute)return;var v=m.getAttribute(au),b=(p=m.getAttribute(ou))!==null&&p!==void 0?p:void 0,O=ha(l).find(S=>S.id===b);if(v==null||O==null||b==null)return;var{dataKey:L}=O,E=j0(l,v,b);t.dispatch(El({activeDataKey:L,activeIndex:v,activeCoordinate:E,activeGraphicalItemId:b}))}Ia=null,Rr=null}};if(!i){u();return}o==="raf"?Ia=requestAnimationFrame(u):typeof o=="number"&&Rr===null&&(u(),$n=null,Rr=setTimeout(()=>{$n?u():(Rr=null,Ia=null)},o))}}});var cp={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},q0=ue({name:"eventSettings",initialState:cp,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:z0}=q0.actions,H0=q0.reducer;var P1=Mi({brush:C0,cartesianAxis:g0,chartData:kb,errorBars:E0,eventSettings:H0,graphicalItems:l0,layout:zh,legend:gg,options:Lb,polarAxis:yI,polarOptions:F0,referenceElements:S0,renderedTicks:O0,rootProps:R0,tooltip:My,zIndex:mb}),V0=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return Lh({reducer:P1,preloadedState:t,middleware:a=>{var o;return a({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([rp.middleware,ap.middleware,Gn.middleware,lp.middleware,fp.middleware])},enhancers:a=>{var o=a;return typeof a=="function"&&(o=a()),o.concat(Uf({type:"raf"}))},devTools:jt.devToolsEnabled&&{serialize:{replacer:M0},name:"recharts-".concat(r)}})};function G0(e){var{preloadedState:t,children:r,reduxStoreName:a}=e,o=Ye(),n=A1(null);if(o)return r;n.current==null&&(n.current=V0(t,a));var i=_o;return W0.createElement(bg,{context:i,store:n.current},r)}import{memo as O1,useEffect as k1}from"react";function E1(e){var{layout:t,margin:r}=e,a=ne(),o=Ye();return k1(()=>{o||(a(jh(t)),a(Hf(r)))},[a,o,t,r]),null}var K0=O1(E1,iu);import{useEffect as M1}from"react";function $0(e){var t=ne();return M1(()=>{t(_0(e))},[t,e]),null}import{useEffect as D1,memo as T1}from"react";var R1=e=>{var t=ne();return D1(()=>{t(z0(e))},[t,e]),null},X0=T1(R1,iu);import*as pr from"react";import{forwardRef as n_}from"react";import*as Ca from"react";import{forwardRef as Z0}from"react";import*as wa from"react";import{useLayoutEffect as _1,useRef as N1}from"react";function Y0(e){var{zIndex:t,isPanorama:r}=e,a=N1(null),o=ne();return _1(()=>(a.current&&o(db({zIndex:t,element:a.current,isPanorama:r})),()=>{o(pb({zIndex:t,isPanorama:r}))}),[o,t,r]),wa.createElement("g",{tabIndex:-1,ref:a,className:"recharts-zIndex-layer_".concat(t)})}function dp(e){var{children:t,isPanorama:r}=e,a=Y(ib);if(!a||a.length===0)return t;var o=a.filter(i=>i<0),n=a.filter(i=>i>0);return wa.createElement(wa.Fragment,null,o.map(i=>wa.createElement(Y0,{key:i,zIndex:i,isPanorama:r})),t,n.map(i=>wa.createElement(Y0,{key:i,zIndex:i,isPanorama:r})))}var B1=["children"];function F1(e,t){if(e==null)return{};var r,a,o=j1(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var r=sg(),a=fg(),o=lu();if(!Ot(r)||!Ot(a))return null;var{children:n,otherAttributes:i,title:u,desc:l}=e,s,c;return i!=null&&(typeof i.tabIndex=="number"?s=i.tabIndex:s=o?0:void 0,typeof i.role=="string"?c=i.role:c=o?"application":void 0),Ca.createElement(Ds,ws({},i,{title:u,desc:l,role:c,tabIndex:s,width:r,height:a,style:U1,ref:t}),n)}),z1=e=>{var{children:t}=e,r=Y(Gr);if(!r)return null;var{width:a,height:o,y:n,x:i}=r;return Ca.createElement(Ds,{width:a,height:o,x:i,y:n},t)},pp=Z0((e,t)=>{var{children:r}=e,a=F1(e,B1),o=Ye();return o?Ca.createElement(z1,null,Ca.createElement(dp,{isPanorama:!0},r)):Ca.createElement(q1,ws({ref:t},a),Ca.createElement(dp,{isPanorama:!1},r))});import*as Ie from"react";import{forwardRef as Xn,useCallback as Ne,useEffect as X1,useRef as ew,useState as Cs}from"react";import{useEffect as H1,useState as V1}from"react";function J0(){var e=ne(),[t,r]=V1(null),a=Y(Xh);return H1(()=>{if(t!=null){var o=t.getBoundingClientRect(),n=o.width/t.offsetWidth;ae(n)&&n!==a&&e(qh(n))}},[t,e,a]),r}function Q0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function W1(e){for(var t=1;t(Mb(),null);function Ls(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Z1=Xn((e,t)=>{var r,a,o=ew(null),[n,i]=Cs({containerWidth:Ls((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Ls((a=e.style)===null||a===void 0?void 0:a.height)}),u=Ne((s,c)=>{i(f=>{var d=Math.round(s),p=Math.round(c);return f.containerWidth===d&&f.containerHeight===p?f:{containerWidth:d,containerHeight:p}})},[]),l=Ne(s=>{if(typeof t=="function"&&t(s),s!=null&&typeof ResizeObserver<"u"){var{width:c,height:f}=s.getBoundingClientRect();u(c,f);var d=h=>{var m=h[0];if(m!=null){var{width:v,height:b}=m.contentRect;u(v,b)}},p=new ResizeObserver(d);p.observe(s),o.current=p}},[t,u]);return X1(()=>()=>{var s=o.current;s?.disconnect()},[u]),Ie.createElement(Ie.Fragment,null,Ie.createElement(Yr,{width:n.containerWidth,height:n.containerHeight}),Ie.createElement("div",_r({ref:l},e)))}),J1=Xn((e,t)=>{var{width:r,height:a}=e,[o,n]=Cs({containerWidth:Ls(r),containerHeight:Ls(a)}),i=Ne((l,s)=>{n(c=>{var f=Math.round(l),d=Math.round(s);return c.containerWidth===f&&c.containerHeight===d?c:{containerWidth:f,containerHeight:d}})},[]),u=Ne(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:s,height:c}=l.getBoundingClientRect();i(s,c)}},[t,i]);return Ie.createElement(Ie.Fragment,null,Ie.createElement(Yr,{width:o.containerWidth,height:o.containerHeight}),Ie.createElement("div",_r({ref:u},e)))}),Q1=Xn((e,t)=>{var{width:r,height:a}=e;return Ie.createElement(Ie.Fragment,null,Ie.createElement(Yr,{width:r,height:a}),Ie.createElement("div",_r({ref:t},e)))}),e_=Xn((e,t)=>{var{width:r,height:a}=e;return typeof r=="string"||typeof a=="string"?Ie.createElement(J1,_r({},e,{ref:t})):typeof r=="number"&&typeof a=="number"?Ie.createElement(Q1,_r({},e,{width:r,height:a,ref:t})):Ie.createElement(Ie.Fragment,null,Ie.createElement(Yr,{width:r,height:a}),Ie.createElement("div",_r({ref:t},e)))});function t_(e){return e?Z1:e_}var tw=Xn((e,t)=>{var{children:r,className:a,height:o,onClick:n,onContextMenu:i,onDoubleClick:u,onMouseDown:l,onMouseEnter:s,onMouseLeave:c,onMouseMove:f,onMouseUp:d,onTouchEnd:p,onTouchMove:h,onTouchStart:m,style:v,width:b,responsive:O,dispatchTouchEvents:L=!0}=e,E=ew(null),S=ne(),[k,M]=Cs(null),[A,z]=Cs(null),N=J0(),W=Ho(),F=W?.width>0?W.width:b,$=W?.height>0?W.height:o,Z=Ne(q=>{N(q),typeof t=="function"&&t(q),M(q),z(q),q!=null&&(E.current=q)},[N,t,M,z]),J=Ne(q=>{S(tp(q)),S(mt({handler:n,reactEvent:q}))},[S,n]),g=Ne(q=>{S(xs(q)),S(mt({handler:s,reactEvent:q}))},[S,s]),y=Ne(q=>{S(Ml()),S(mt({handler:c,reactEvent:q}))},[S,c]),C=Ne(q=>{S(xs(q)),S(mt({handler:f,reactEvent:q}))},[S,f]),I=Ne(()=>{S(np())},[S]),x=Ne(()=>{S(ip())},[S]),w=Ne(q=>{S(op(q.key))},[S]),D=Ne(q=>{S(mt({handler:i,reactEvent:q}))},[S,i]),_=Ne(q=>{S(mt({handler:u,reactEvent:q}))},[S,u]),B=Ne(q=>{S(mt({handler:l,reactEvent:q}))},[S,l]),U=Ne(q=>{S(mt({handler:d,reactEvent:q}))},[S,d]),j=Ne(q=>{S(mt({handler:m,reactEvent:q}))},[S,m]),H=Ne(q=>{L&&S(sp(q)),S(mt({handler:h,reactEvent:q}))},[S,L,h]),oe=Ne(q=>{S(mt({handler:p,reactEvent:q}))},[S,p]),T=t_(O);return Ie.createElement(Rd.Provider,{value:k},Ie.createElement(Ap.Provider,{value:A},Ie.createElement(T,{width:F??v?.width,height:$??v?.height,className:re("recharts-wrapper",a),style:W1({position:"relative",cursor:"default",width:F,height:$},v),onClick:J,onContextMenu:D,onDoubleClick:_,onFocus:I,onBlur:x,onKeyDown:w,onMouseDown:B,onMouseEnter:g,onMouseLeave:y,onMouseMove:C,onMouseUp:U,onTouchEnd:oe,onTouchMove:H,onTouchStart:j,ref:Z},Ie.createElement(Y1,null),r)))});var r_=["width","height","responsive","children","className","style","compact","title","desc"];function a_(e,t){if(e==null)return{};var r,a,o=o_(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var{width:r,height:a,responsive:o,children:n,className:i,style:u,compact:l,title:s,desc:c}=e,f=a_(e,r_),d=Xt(f);return l?pr.createElement(pr.Fragment,null,pr.createElement(Yr,{width:r,height:a}),pr.createElement(pp,{otherAttributes:d,title:s,desc:c},n)):pr.createElement(tw,{className:i,style:u,width:r,height:a,responsive:o??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},pr.createElement(pp,{otherAttributes:d,title:s,desc:c,ref:t},pr.createElement(P0,null,n)))});import*as lw from"react";import{forwardRef as y_}from"react";import{forwardRef as m_}from"react";import*as Nr from"react";import{useEffect as i_}from"react";function aw(e){var t=ne();return i_(()=>{t(B0(e))},[t,e]),null}var u_=["layout"];function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=De(e,I_);return lw.createElement(nw,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:b_,tooltipPayloadSearcher:wb,categoricalChartProps:r,ref:t})});var C_=(e,t)=>{let r=new Array(e.length+t.length);for(let a=0;a({classGroupId:e,validator:t}),hw=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),As="-",sw=[],S_="arbitrary..",P_=e=>{let t=O_(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return A_(i);let u=i.split(As),l=u[0]===""&&u.length>1?1:0;return gw(u,l,t)},getConflictingClassGroupIds:(i,u)=>{if(u){let l=a[i],s=r[i];return l?s?C_(s,l):l:s||sw}return r[i]||sw}}},gw=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;let o=e[t],n=r.nextPart.get(o);if(n){let s=gw(e,t+1,n);if(s)return s}let i=r.validators;if(i===null)return;let u=t===0?e.join(As):e.slice(t).join(As),l=i.length;for(let s=0;se.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),a=t.slice(0,r);return a?S_+a:void 0})(),O_=e=>{let{theme:t,classGroups:r}=e;return k_(r,t)},k_=(e,t)=>{let r=hw();for(let a in e){let o=e[a];yp(o,r,a,t)}return r},yp=(e,t,r,a)=>{let o=e.length;for(let n=0;n{if(typeof e=="string"){M_(e,t,r);return}if(typeof e=="function"){D_(e,t,r,a);return}T_(e,t,r,a)},M_=(e,t,r)=>{let a=e===""?t:vw(t,e);a.classGroupId=r},D_=(e,t,r,a)=>{if(R_(e)){yp(e(a),t,r,a);return}t.validators===null&&(t.validators=[]),t.validators.push(L_(r,e))},T_=(e,t,r,a)=>{let o=Object.entries(e),n=o.length;for(let i=0;i{let r=e,a=t.split(As),o=a.length;for(let n=0;n"isThemeGetter"in e&&e.isThemeGetter===!0,__=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),a=Object.create(null),o=(n,i)=>{r[n]=i,t++,t>e&&(t=0,a=r,r=Object.create(null))};return{get(n){let i=r[n];if(i!==void 0)return i;if((i=a[n])!==void 0)return o(n,i),i},set(n,i){n in r?r[n]=i:o(n,i)}}},xp="!",fw=":",N_=[],cw=(e,t,r,a,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:o}),B_=e=>{let{prefix:t,experimentalParseClassName:r}=e,a=o=>{let n=[],i=0,u=0,l=0,s,c=o.length;for(let m=0;ml?s-l:void 0;return cw(n,p,d,h)};if(t){let o=t+fw,n=a;a=i=>i.startsWith(o)?n(i.slice(o.length)):cw(N_,!1,i,void 0,!0)}if(r){let o=a;a=n=>r({className:n,parseClassName:o})}return a},F_=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{t.set(r,1e6+a)}),r=>{let a=[],o=[];for(let n=0;n0&&(o.sort(),a.push(...o),o=[]),a.push(i)):o.push(i)}return o.length>0&&(o.sort(),a.push(...o)),a}},j_=e=>({cache:__(e.cacheSize),parseClassName:B_(e),sortModifiers:F_(e),postfixLookupClassGroupIds:U_(e),...P_(e)}),U_=e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let a=0;a{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:n,postfixLookupClassGroupIds:i}=t,u=[],l=e.trim().split(q_),s="";for(let c=l.length-1;c>=0;c-=1){let f=l[c],{isExternal:d,modifiers:p,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:v}=r(f);if(d){s=f+(s.length>0?" "+s:s);continue}let b=!!v,O;if(b){let M=m.substring(0,v);O=a(M);let A=O&&i[O]?a(m):void 0;A&&A!==O&&(O=A,b=!1)}else O=a(m);if(!O){if(!b){s=f+(s.length>0?" "+s:s);continue}if(O=a(m),!O){s=f+(s.length>0?" "+s:s);continue}b=!1}let L=p.length===0?"":p.length===1?p[0]:n(p).join(":"),E=h?L+xp:L,S=E+O;if(u.indexOf(S)>-1)continue;u.push(S);let k=o(O,b);for(let M=0;M0?" "+s:s)}return s},H_=(...e)=>{let t=0,r,a,o="";for(;t{if(typeof e=="string")return e;let t,r="";for(let a=0;a{let r,a,o,n,i=l=>{let s=t.reduce((c,f)=>f(c),e());return r=j_(s),a=r.cache.get,o=r.cache.set,n=u,u(l)},u=l=>{let s=a(l);if(s)return s;let c=z_(l,r);return o(l,c),c};return n=i,(...l)=>n(H_(...l))},W_=[],Be=e=>{let t=r=>r[e]||W_;return t.isThemeGetter=!0,t},yw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,G_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,K_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,X_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Y_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Z_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Br=e=>G_.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),$t=e=>!!e&&Number.isInteger(Number(e)),vp=e=>e.endsWith("%")&&te(e.slice(0,-1)),mr=e=>K_.test(e),Iw=()=>!0,J_=e=>$_.test(e)&&!X_.test(e),bp=()=>!1,Q_=e=>Y_.test(e),eN=e=>Z_.test(e),tN=e=>!G(e)&&!K(e),rN=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),aN=e=>Fr(e,Lw,bp),G=e=>yw.test(e),La=e=>Fr(e,Sw,J_),dw=e=>Fr(e,cN,te),oN=e=>Fr(e,Aw,Iw),nN=e=>Fr(e,Pw,bp),pw=e=>Fr(e,ww,bp),iN=e=>Fr(e,Cw,eN),Ss=e=>Fr(e,Ow,Q_),K=e=>bw.test(e),Yn=e=>Sa(e,Sw),uN=e=>Sa(e,Pw),mw=e=>Sa(e,ww),lN=e=>Sa(e,Lw),sN=e=>Sa(e,Cw),Ps=e=>Sa(e,Ow,!0),fN=e=>Sa(e,Aw,!0),Fr=(e,t,r)=>{let a=yw.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},Sa=(e,t,r=!1)=>{let a=bw.exec(e);return a?a[1]?t(a[1]):r:!1},ww=e=>e==="position"||e==="percentage",Cw=e=>e==="image"||e==="url",Lw=e=>e==="length"||e==="size"||e==="bg-size",Sw=e=>e==="length",cN=e=>e==="number",Pw=e=>e==="family-name",Aw=e=>e==="number"||e==="weight",Ow=e=>e==="shadow";var dN=()=>{let e=Be("color"),t=Be("font"),r=Be("text"),a=Be("font-weight"),o=Be("tracking"),n=Be("leading"),i=Be("breakpoint"),u=Be("container"),l=Be("spacing"),s=Be("radius"),c=Be("shadow"),f=Be("inset-shadow"),d=Be("text-shadow"),p=Be("drop-shadow"),h=Be("blur"),m=Be("perspective"),v=Be("aspect"),b=Be("ease"),O=Be("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...E(),K,G],k=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],A=()=>[K,G,l],z=()=>[Br,"full","auto",...A()],N=()=>[$t,"none","subgrid",K,G],W=()=>["auto",{span:["full",$t,K,G]},$t,K,G],F=()=>[$t,"auto",K,G],$=()=>["auto","min","max","fr",K,G],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],g=()=>["auto",...A()],y=()=>[Br,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],C=()=>[Br,"screen","full","dvw","lvw","svw","min","max","fit",...A()],I=()=>[Br,"screen","full","lh","dvh","lvh","svh","min","max","fit",...A()],x=()=>[e,K,G],w=()=>[...E(),mw,pw,{position:[K,G]}],D=()=>["no-repeat",{repeat:["","x","y","space","round"]}],_=()=>["auto","cover","contain",lN,aN,{size:[K,G]}],B=()=>[vp,Yn,La],U=()=>["","none","full",s,K,G],j=()=>["",te,Yn,La],H=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[te,vp,mw,pw],q=()=>["","none",h,K,G],V=()=>["none",te,K,G],R=()=>["none",te,K,G],we=()=>[te,K,G],ee=()=>[Br,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[mr],breakpoint:[mr],color:[Iw],container:[mr],"drop-shadow":[mr],ease:["in","out","in-out"],font:[tN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[mr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[mr],shadow:[mr],spacing:["px",te],text:[mr],"text-shadow":[mr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Br,G,K,v]}],container:["container"],"container-type":[{"@container":["","normal","size",K,G]}],"container-named":[rN],columns:[{columns:[te,G,K,u]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[$t,"auto",K,G]}],basis:[{basis:[Br,"full","auto",u,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,Br,"auto","initial","none",G]}],grow:[{grow:["",te,K,G]}],shrink:[{shrink:["",te,K,G]}],order:[{order:[$t,"first","last","none",K,G]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pbs:[{pbs:A()}],pbe:[{pbe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:g()}],mx:[{mx:g()}],my:[{my:g()}],ms:[{ms:g()}],me:[{me:g()}],mbs:[{mbs:g()}],mbe:[{mbe:g()}],mt:[{mt:g()}],mr:[{mr:g()}],mb:[{mb:g()}],ml:[{ml:g()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:y()}],"inline-size":[{inline:["auto",...C()]}],"min-inline-size":[{"min-inline":["auto",...C()]}],"max-inline-size":[{"max-inline":["none",...C()]}],"block-size":[{block:["auto",...I()]}],"min-block-size":[{"min-block":["auto",...I()]}],"max-block-size":[{"max-block":["none",...I()]}],w:[{w:[u,"screen",...y()]}],"min-w":[{"min-w":[u,"screen","none",...y()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...y()]}],h:[{h:["screen","lh",...y()]}],"min-h":[{"min-h":["screen","lh","none",...y()]}],"max-h":[{"max-h":["screen","lh",...y()]}],"font-size":[{text:["base",r,Yn,La]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,fN,oN]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vp,G]}],"font-family":[{font:[uN,nN,t]}],"font-features":[{"font-features":[G]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,K,G]}],"line-clamp":[{"line-clamp":[te,"none",K,dw]}],leading:[{leading:[n,...A()]}],"list-image":[{"list-image":["none",K,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",K,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",K,La]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[te,"auto",K,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"tab-size":[{tab:[$t,K,G]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:w()}],"bg-repeat":[{bg:D()}],"bg-size":[{bg:_()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$t,K,G],radial:["",K,G],conic:[$t,K,G]},sN,iN]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:B()}],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-bs":[{"border-bs":j()}],"border-w-be":[{"border-be":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...H(),"hidden","none"]}],"divide-style":[{divide:[...H(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-bs":[{"border-bs":x()}],"border-color-be":[{"border-be":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...H(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,K,G]}],"outline-w":[{outline:["",te,Yn,La]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",c,Ps,Ss]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",f,Ps,Ss]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[te,La]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",d,Ps,Ss]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[te,K,G]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[K,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:w()}],"mask-repeat":[{mask:D()}],"mask-size":[{mask:_()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",K,G]}],filter:[{filter:["","none",K,G]}],blur:[{blur:q()}],brightness:[{brightness:[te,K,G]}],contrast:[{contrast:[te,K,G]}],"drop-shadow":[{"drop-shadow":["","none",p,Ps,Ss]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",te,K,G]}],"hue-rotate":[{"hue-rotate":[te,K,G]}],invert:[{invert:["",te,K,G]}],saturate:[{saturate:[te,K,G]}],sepia:[{sepia:["",te,K,G]}],"backdrop-filter":[{"backdrop-filter":["","none",K,G]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[te,K,G]}],"backdrop-contrast":[{"backdrop-contrast":[te,K,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,K,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,K,G]}],"backdrop-invert":[{"backdrop-invert":["",te,K,G]}],"backdrop-opacity":[{"backdrop-opacity":[te,K,G]}],"backdrop-saturate":[{"backdrop-saturate":[te,K,G]}],"backdrop-sepia":[{"backdrop-sepia":["",te,K,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",K,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",K,G]}],ease:[{ease:["linear","initial",b,K,G]}],delay:[{delay:[te,K,G]}],animate:[{animate:["none",O,K,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,K,G]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:V()}],"rotate-x":[{"rotate-x":V()}],"rotate-y":[{"rotate-y":V()}],"rotate-z":[{"rotate-z":V()}],scale:[{scale:R()}],"scale-x":[{"scale-x":R()}],"scale-y":[{"scale-y":R()}],"scale-z":[{"scale-z":R()}],"scale-3d":["scale-3d"],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[K,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[$t,K,G]}],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":x()}],"scrollbar-track-color":[{"scrollbar-track":x()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mbs":[{"scroll-mbs":A()}],"scroll-mbe":[{"scroll-mbe":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pbs":[{"scroll-pbs":A()}],"scroll-pbe":[{"scroll-pbe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K,G]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[te,Yn,La,dw]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var kw=V_(dN);function et(...e){return kw(re(e))}import{jsx as Ao}from"react/jsx-runtime";function Ew({className:e,...t}){return Ao("div",{"data-slot":"card",className:et("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...t})}function Mw({className:e,...t}){return Ao("div",{"data-slot":"card-header",className:et("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Dw({className:e,...t}){return Ao("div",{"data-slot":"card-title",className:et("leading-none font-semibold",e),...t})}function Tw({className:e,...t}){return Ao("div",{"data-slot":"card-description",className:et("text-sm text-muted-foreground",e),...t})}function Rw({className:e,...t}){return Ao("div",{"data-slot":"card-content",className:et("px-6",e),...t})}function _w({className:e,...t}){return Ao("div",{"data-slot":"card-footer",className:et("flex items-center px-6 [.border-t]:pt-6",e),...t})}import*as jr from"react";import{Fragment as vN,jsx as St,jsxs as Zn}from"react/jsx-runtime";var pN={light:"",dark:".dark"},mN={width:320,height:200},Bw=jr.createContext(null);function hN(){let e=jr.useContext(Bw);if(!e)throw new Error("useChart must be used within a ");return e}function Fw({id:e,className:t,children:r,config:a,initialDimension:o=mN,...n}){let i=jr.useId(),u=`chart-${e??i.replace(/:/g,"")}`;return St(Bw.Provider,{value:{config:a},children:Zn("div",{"data-slot":"chart","data-chart":u,className:et("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",t),...n,children:[St(gN,{id:u,config:a}),St(Jf,{initialDimension:o,children:r})]})})}var gN=({id:e,config:t})=>{let r=Object.entries(t).filter(([,a])=>a.theme??a.color);return r.length?St("style",{dangerouslySetInnerHTML:{__html:Object.entries(pN).map(([a,o])=>` +${o} [data-chart=${e}] { +${r.map(([n,i])=>{let u=i.theme?.[a]??i.color;return u?` --color-${n}: ${u};`:null}).join(` +`)} +} +`).join(` +`)}}):null},jw=Fd;function Uw({active:e,payload:t,className:r,indicator:a="dot",hideLabel:o=!1,hideIndicator:n=!1,label:i,labelFormatter:u,labelClassName:l,formatter:s,color:c,nameKey:f,labelKey:d}){let{config:p}=hN(),h=jr.useMemo(()=>{if(o||!t?.length)return null;let[v]=t,b=`${d??v?.dataKey??v?.name??"value"}`,O=Nw(p,v,b),L=!d&&typeof i=="string"?p[i]?.label??i:O?.label;return u?St("div",{className:et("font-medium",l),children:u(L,t)}):L?St("div",{className:et("font-medium",l),children:L}):null},[i,u,t,o,l,p,d]);if(!e||!t?.length)return null;let m=t.length===1&&a!=="dot";return Zn("div",{className:et("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[m?null:h,St("div",{className:"grid gap-1.5",children:t.filter(v=>v.type!=="none").map((v,b)=>{let O=`${f??v.name??v.dataKey??"value"}`,L=Nw(p,v,O),E=c??v.payload?.fill??v.color;return St("div",{className:et("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",a==="dot"&&"items-center"),children:s&&v?.value!==void 0&&v.name?s(v.value,v.name,v,b,v.payload):Zn(vN,{children:[L?.icon?St(L.icon,{}):!n&&St("div",{className:et("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":a==="dot","w-1":a==="line","w-0 border-[1.5px] border-dashed bg-transparent":a==="dashed","my-0.5":m&&a==="dashed"}),style:{"--color-bg":E,"--color-border":E}}),Zn("div",{className:et("flex flex-1 justify-between leading-none",m?"items-end":"items-center"),children:[Zn("div",{className:"grid gap-1.5",children:[m?h:null,St("span",{className:"text-muted-foreground",children:L?.label??v.name})]}),v.value!=null&&St("span",{className:"font-mono font-medium text-foreground tabular-nums",children:typeof v.value=="number"?v.value.toLocaleString():String(v.value)})]})]})},b)})})]})}function Nw(e,t,r){if(typeof t!="object"||t===null)return;let a="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0,o=r;return r in t&&typeof t[r]=="string"?o=t[r]:a&&r in a&&typeof a[r]=="string"&&(o=a[r]),o in e?e[o]:e[r]}import{jsx as hr,jsxs as Jn}from"react/jsx-runtime";var LQ="A pie chart with no separator",xN=[{browser:"chrome",visitors:275,fill:"var(--color-chrome)"},{browser:"safari",visitors:200,fill:"var(--color-safari)"},{browser:"firefox",visitors:187,fill:"var(--color-firefox)"},{browser:"edge",visitors:173,fill:"var(--color-edge)"},{browser:"other",visitors:90,fill:"var(--color-other)"}],yN={visitors:{label:"Visitors"},chrome:{label:"Chrome",color:"var(--chart-1)"},safari:{label:"Safari",color:"var(--chart-2)"},firefox:{label:"Firefox",color:"var(--chart-3)"},edge:{label:"Edge",color:"var(--chart-4)"},other:{label:"Other",color:"var(--chart-5)"}};function SQ(){return Jn(Ew,{className:"flex flex-col",children:[Jn(Mw,{className:"items-center pb-0",children:[hr(Dw,{children:"Pie Chart - Separator None"}),hr(Tw,{children:"January - June 2024"})]}),hr(Rw,{className:"flex-1 pb-0",children:hr(Fw,{config:yN,className:"mx-auto aspect-square max-h-[250px]",children:Jn(gp,{children:[hr(jw,{cursor:!1,content:hr(Uw,{hideLabel:!0})}),hr(vs,{data:xN,dataKey:"visitors",nameKey:"browser",stroke:"0"})]})})}),Jn(_w,{className:"flex-col gap-2 text-sm",children:[Jn("div",{className:"flex items-center gap-2 leading-none font-medium",children:["Trending up by 5.2% this month ",hr(Oo,{className:"h-4 w-4"})]}),hr("div",{className:"leading-none text-muted-foreground",children:"Showing total visitors for the last 6 months"})]})]})}export{SQ as ChartPieSeparatorNone,LQ as description}; +/*! Bundled license information: + +decimal.js-light/decimal.js: + (*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE *) + +react-is/cjs/react-is.production.js: + (** + * @license React + * react-is.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/trending-up.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/7d2373b0423832c322df6e168c8f24f3d11b543644f9a348fc3bce587be41132 b/b/7d2373b0423832c322df6e168c8f24f3d11b543644f9a348fc3bce587be41132 new file mode 100644 index 0000000000000000000000000000000000000000..50692698aff7a3b0fcc0507534f3a36770b4bf5f --- /dev/null +++ b/b/7d2373b0423832c322df6e168c8f24f3d11b543644f9a348fc3bce587be41132 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.button-size", + "name": "button-size", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/button-size.json", + "did": "did:holo:sha256:bab639686b0e35b601d5a9917383a8a6c12bdc20ceed1a1ffd131d269b0d12c7", + "import": "holo://sha256:de054f7449af17466a7c252eaa8b8bdbbb88ef836b69e566eefd5e51528a0e9a", + "integrity": "sha256-3gVPdEmvF0ZqfCUuqouL27uI74NraeVm7v1eUVKKDpo=", + "kappa": "sha256:bab639686b0e35b601d5a9917383a8a6c12bdc20ceed1a1ffd131d269b0d12c7", + "moduleKappa": "sha256:de054f7449af17466a7c252eaa8b8bdbbb88ef836b69e566eefd5e51528a0e9a", + "renderExport": "default", + "source": "registry/new-york-v4/examples/button-size.tsx", + "module": "vendor/components/button-size.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/7d36638ce776a6d44cea84846d1d498e7ae257f789ae7d542f3922f540a3ec27 b/b/7d36638ce776a6d44cea84846d1d498e7ae257f789ae7d542f3922f540a3ec27 new file mode 100644 index 0000000000000000000000000000000000000000..0b885d71e18d581793bc2e316c3f1402daf59182 --- /dev/null +++ b/b/7d36638ce776a6d44cea84846d1d498e7ae257f789ae7d542f3922f540a3ec27 @@ -0,0 +1,94 @@ +"use client" + +import { Bar, BarChart, XAxis } from "recharts" + +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + ChartContainer, + ChartTooltip, + ChartTooltipContent, + type ChartConfig, +} from "@/registry/new-york-v4/ui/chart" + +export const description = "A stacked bar chart with a legend" + +const chartData = [ + { date: "2024-07-15", running: 450, swimming: 300 }, + { date: "2024-07-16", running: 380, swimming: 420 }, + { date: "2024-07-17", running: 520, swimming: 120 }, + { date: "2024-07-18", running: 140, swimming: 550 }, + { date: "2024-07-19", running: 600, swimming: 350 }, + { date: "2024-07-20", running: 480, swimming: 400 }, +] + +const chartConfig = { + running: { + label: "Running", + color: "var(--chart-1)", + }, + swimming: { + label: "Swimming", + color: "var(--chart-2)", + }, +} satisfies ChartConfig + +export function ChartTooltipLabelFormatter() { + return ( + + + Tooltip - Label Formatter + Tooltip with label formatter. + + + + + { + return new Date(value).toLocaleDateString("en-US", { + weekday: "short", + }) + }} + /> + + + { + return new Date(value).toLocaleDateString("en-US", { + day: "numeric", + month: "long", + year: "numeric", + }) + }} + /> + } + cursor={false} + defaultIndex={1} + /> + + + + + ) +} diff --git a/b/7d465442a594e690fcadfee764aba9e1c5e4d75f83a1e9166d08c71aeeae16c7 b/b/7d465442a594e690fcadfee764aba9e1c5e4d75f83a1e9166d08c71aeeae16c7 new file mode 100644 index 0000000000000000000000000000000000000000..11c29592724af2e49eea34c322e9ee929ec36864 --- /dev/null +++ b/b/7d465442a594e690fcadfee764aba9e1c5e4d75f83a1e9166d08c71aeeae16c7 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.toggle-group-single", + "name": "toggle-group-single", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/toggle-group-single.json", + "did": "did:holo:sha256:38866c073dd15ceab478c25fcb9c0686840e60643356ff073328cc731858d1fc", + "import": "holo://sha256:7f2fe19b817da06e49bef5df3e04f6ce1f045923e495fd9b44925216b0fd0a0e", + "integrity": "sha256-fy/hm4F9oG5JvvXfPgT2zh8EWSPklf2bRJJSFrD9Cg4=", + "kappa": "sha256:38866c073dd15ceab478c25fcb9c0686840e60643356ff073328cc731858d1fc", + "moduleKappa": "sha256:7f2fe19b817da06e49bef5df3e04f6ce1f045923e495fd9b44925216b0fd0a0e", + "renderExport": "default", + "source": "registry/new-york-v4/examples/toggle-group-single.tsx", + "module": "vendor/components/toggle-group-single.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/7d75cd08318bc3da6ef6e01d223d2aa5e9bd402960c894937cb908939978ddf1 b/b/7d75cd08318bc3da6ef6e01d223d2aa5e9bd402960c894937cb908939978ddf1 new file mode 100644 index 0000000000000000000000000000000000000000..4d38506cee5430d95a59ec6a2a0cef2b79217e7a --- /dev/null +++ b/b/7d75cd08318bc3da6ef6e01d223d2aa5e9bd402960c894937cb908939978ddf1 @@ -0,0 +1,64 @@ +import * as React from "react" +import { cva, type VariantProps } from "class-variance-authority" +import { Slot } from "radix-ui" + +import { cn } from "@/lib/utils" + +const buttonVariants = cva( + "inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + { + variants: { + variant: { + default: "bg-primary text-primary-foreground hover:bg-primary/90", + destructive: + "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40", + outline: + "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50", + secondary: + "bg-secondary text-secondary-foreground hover:bg-secondary/80", + ghost: + "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50", + link: "text-primary underline-offset-4 hover:underline", + }, + size: { + default: "h-9 px-4 py-2 has-[>svg]:px-3", + xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3", + sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5", + lg: "h-10 rounded-md px-6 has-[>svg]:px-4", + icon: "size-9", + "icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3", + "icon-sm": "size-8", + "icon-lg": "size-10", + }, + }, + defaultVariants: { + variant: "default", + size: "default", + }, + } +) + +function Button({ + className, + variant = "default", + size = "default", + asChild = false, + ...props +}: React.ComponentProps<"button"> & + VariantProps & { + asChild?: boolean + }) { + const Comp = asChild ? Slot.Root : "button" + + return ( + + ) +} + +export { Button, buttonVariants } diff --git a/b/7d7e23cb1a98743e844e2c81ff60f53a0722fbc729a5771eb1941d47464867b3 b/b/7d7e23cb1a98743e844e2c81ff60f53a0722fbc729a5771eb1941d47464867b3 new file mode 100644 index 0000000000000000000000000000000000000000..2a62eeb59a531a881c38b483a11c9e5c76ef41fe --- /dev/null +++ b/b/7d7e23cb1a98743e844e2c81ff60f53a0722fbc729a5771eb1941d47464867b3 @@ -0,0 +1,7 @@ +import table from './object.js'; +import { addPrefix } from '../../functions/addPrefix.js'; + +export default ({ addComponents, prefix = '' }) => { + const prefixedtable = addPrefix(table, prefix); + addComponents({ ...prefixedtable }); +}; diff --git a/b/7d9f323cce0ac6bfd8632416fa50954d5ffb775b9e6f177989b26a15513cac07 b/b/7d9f323cce0ac6bfd8632416fa50954d5ffb775b9e6f177989b26a15513cac07 new file mode 100644 index 0000000000000000000000000000000000000000..6854864de6d2f1dacb97668c67b2d36c15ce698c --- /dev/null +++ b/b/7d9f323cce0ac6bfd8632416fa50954d5ffb775b9e6f177989b26a15513cac07 @@ -0,0 +1,7 @@ +import loading from './object.js'; +import { addPrefix } from '../../functions/addPrefix.js'; + +export default ({ addComponents, prefix = '' }) => { + const prefixedloading = addPrefix(loading, prefix); + addComponents({ ...prefixedloading }); +}; diff --git a/b/7dc50be3dfe0ebc2d723c2776efe39b4aec0b229ca831504e7a51a8f0f8fa545 b/b/7dc50be3dfe0ebc2d723c2776efe39b4aec0b229ca831504e7a51a8f0f8fa545 new file mode 100644 index 0000000000000000000000000000000000000000..280f5ded72e9aca43f76d95e96658a5f414ac0e2 --- /dev/null +++ b/b/7dc50be3dfe0ebc2d723c2776efe39b4aec0b229ca831504e7a51a8f0f8fa545 @@ -0,0 +1,67 @@ +var ut=Object.defineProperty;var st=(e,t)=>{for(var a in t)ut(e,a,{get:t[a],enumerable:!0})};import{forwardRef as ft,createElement as it}from"react";var la=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),we=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as dt,createElement as sa}from"react";var ua={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var da=dt(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:u,...s},n)=>sa("svg",{ref:n,...ua,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:we("lucide",r),...s},[...u.map(([d,p])=>sa(d,p)),...Array.isArray(l)?l:[l]]));var re=(e,t)=>{let a=ft(({className:o,...r},l)=>it(da,{ref:l,iconNode:t,className:we(`lucide-${la(e)}`,o),...r}));return a.displayName=`${e}`,a};var fe=re("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);var ie=re("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);var ne=re("Underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);import*as Oe from"react";import*as ca from"react";import*as St from"react-dom";import*as M from"react";import*as ia from"react";function fa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nt(...e){return t=>{let a=!1,o=e.map(r=>{let l=fa(r,t);return!a&&typeof l=="function"&&(a=!0),l});if(a)return()=>{for(let r=0;r{let{children:r,...l}=a,u=null,s=!1,n=[];na(r)&&typeof ke=="function"&&(r=ke(r._payload)),M.Children.forEach(r,g=>{if(It(g)){s=!0;let h=g,k="child"in h.props?h.props.child:h.props.children;na(k)&&typeof ke=="function"&&(k=ke(k._payload)),u=pt(h,k),n.push(u?.props?.children)}else n.push(g)}),u?u=M.cloneElement(u,void 0,n):!s&&M.Children.count(r)===1&&M.isValidElement(r)&&(u=r);let d=u?Lt(u):void 0,p=$(o,d);if(!u){if(r||r===0)throw new Error(s?ht(e):Ct(e));return r}let m=mt(l,u.props??{});return u.type!==M.Fragment&&(m.ref=o?p:d),M.cloneElement(u,m)});return t.displayName=`${e}.Slot`,t}var ct=Symbol.for("radix.slottable");var pt=(e,t)=>{if("child"in e.props){let a=e.props.child;return M.isValidElement(a)?M.cloneElement(a,void 0,e.props.children(a.props.children)):null}return M.isValidElement(t)?t:null};function mt(e,t){let a={...t};for(let o in t){let r=e[o],l=t[o];/^on[A-Z]/.test(o)?r&&l?a[o]=(...s)=>{let n=l(...s);return r(...s),n}:r&&(a[o]=r):o==="style"?a[o]={...r,...l}:o==="className"&&(a[o]=[r,l].filter(Boolean).join(" "))}return{...e,...a}}function Lt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function It(e){return M.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ct}var xt=Symbol.for("react.lazy");function na(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===xt&&"_payload"in e&>(e._payload)}function gt(e){return typeof e=="object"&&e!==null&&"then"in e}var Ct=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,ht=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,ke=M[" use ".trim().toString()];import{jsx as wt}from"react/jsx-runtime";var kt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_=kt.reduce((e,t)=>{let a=ce(`Primitive.${t}`),o=ca.forwardRef((r,l)=>{let{asChild:u,...s}=r,n=u?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),wt(n,{...s,ref:l})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});import*as V from"react";import{jsx as bt}from"react/jsx-runtime";function le(e,t=[]){let a=[];function o(l,u){let s=V.createContext(u);s.displayName=l+"Context";let n=a.length;a=[...a,u];let d=m=>{let{scope:g,children:h,...k}=m,C=g?.[e]?.[n]||s,I=V.useMemo(()=>k,Object.values(k));return bt(C.Provider,{value:I,children:h})};d.displayName=l+"Provider";function p(m,g){let h=g?.[e]?.[n]||s,k=V.useContext(h);if(k)return k;if(u!==void 0)return u;throw new Error(`\`${m}\` must be used within \`${l}\``)}return[d,p]}let r=()=>{let l=a.map(u=>V.createContext(u));return function(s){let n=s?.[e]||l;return V.useMemo(()=>({[`__scope${e}`]:{...s,[e]:n}}),[s,n])}};return r.scopeName=e,[o,Pt(r,...t)]}function Pt(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(l){let u=o.reduce((s,{useScope:n,scopeName:d})=>{let m=n(l)[`__scope${d}`];return{...s,...m}},{});return V.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return a.scopeName=t.scopeName,a}import*as E from"react";import{jsx as Ve}from"react/jsx-runtime";import*as be from"react";import{jsx as br}from"react/jsx-runtime";function pa(e){let t=e+"CollectionProvider",[a,o]=le(t),[r,l]=a(t,{collectionRef:{current:null},itemMap:new Map}),u=C=>{let{scope:I,children:b}=C,S=E.useRef(null),w=E.useRef(new Map).current;return Ve(r,{scope:I,itemMap:w,collectionRef:S,children:b})};u.displayName=t;let s=e+"CollectionSlot",n=ce(s),d=E.forwardRef((C,I)=>{let{scope:b,children:S}=C,w=l(s,b),P=$(I,w.collectionRef);return Ve(n,{ref:P,children:S})});d.displayName=s;let p=e+"CollectionItemSlot",m="data-radix-collection-item",g=ce(p),h=E.forwardRef((C,I)=>{let{scope:b,children:S,...w}=C,P=E.useRef(null),U=$(I,P),H=l(p,b);return E.useEffect(()=>(H.itemMap.set(P,{ref:P,...w}),()=>void H.itemMap.delete(P))),Ve(g,{[m]:"",ref:U,children:S})});h.displayName=p;function k(C){let I=l(e+"CollectionConsumer",C);return E.useCallback(()=>{let S=I.collectionRef.current;if(!S)return[];let w=Array.from(S.querySelectorAll(`[${m}]`));return Array.from(I.itemMap.values()).sort((H,q)=>w.indexOf(H.ref.current)-w.indexOf(q.ref.current))},[I.collectionRef,I.itemMap])}return[{Provider:u,Slot:d,ItemSlot:h},k,o]}var Rr=!!(typeof window<"u"&&window.document&&window.document.createElement);function W(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),a===!1||!r.defaultPrevented)return t?.(r)}}import*as G from"react";import*as ma from"react";var Pe=globalThis?.document?ma.useLayoutEffect:()=>{};import*as Re from"react";var Rt=G[" useInsertionEffect ".trim().toString()]||Pe;function Q({prop:e,defaultProp:t,onChange:a=()=>{},caller:o}){let[r,l,u]=At({defaultProp:t,onChange:a}),s=e!==void 0,n=s?e:r;{let p=G.useRef(e!==void 0);G.useEffect(()=>{let m=p.current;m!==s&&console.warn(`${o} is changing from ${m?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=s},[s,o])}let d=G.useCallback(p=>{if(s){let m=yt(p)?p(e):p;m!==e&&u.current?.(m)}else l(p)},[s,e,l,u]);return[n,d]}function At({defaultProp:e,onChange:t}){let[a,o]=G.useState(e),r=G.useRef(a),l=G.useRef(t);return Rt(()=>{l.current=t},[t]),G.useEffect(()=>{r.current!==a&&(l.current?.(a),r.current=a)},[a,r]),[a,o,l]}function yt(e){return typeof e=="function"}var Mr=Symbol("RADIX:SYNC_STATE");import*as We from"react";var vt=We[" useId ".trim().toString()]||(()=>{}),Mt=0;function La(e){let[t,a]=We.useState(vt());return Pe(()=>{e||a(o=>o??String(Mt++))},[e]),e||(t?`radix-${t}`:"")}import*as Ae from"react";import{jsx as qr}from"react/jsx-runtime";var Ft=Ae.createContext(void 0);function ye(e){let t=Ae.useContext(Ft);return e||t||"ltr"}import*as ue from"react";function Ia(e){let t=ue.useRef(e);return ue.useEffect(()=>{t.current=e}),ue.useMemo(()=>(...a)=>t.current?.(...a),[])}import*as v from"react";import{jsx as Y}from"react/jsx-runtime";var Ne="rovingFocusGroup.onEntryFocus",Bt={bubbles:!1,cancelable:!0},pe="RovingFocusGroup",[Xe,xa,Dt]=pa(pe),[Tt,_e]=le(pe,[Dt]),[qt,Ot]=Tt(pe),ga=v.forwardRef((e,t)=>Y(Xe.Provider,{scope:e.__scopeRovingFocusGroup,children:Y(Xe.Slot,{scope:e.__scopeRovingFocusGroup,children:Y(Ut,{...e,ref:t})})}));ga.displayName=pe;var Ut=v.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:o,loop:r=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:n,onEntryFocus:d,preventScrollOnEntryFocus:p=!1,...m}=e,g=v.useRef(null),h=$(t,g),k=ye(l),[C,I]=Q({prop:u,defaultProp:s??null,onChange:n,caller:pe}),[b,S]=v.useState(!1),w=Ia(d),P=xa(a),U=v.useRef(!1),[H,q]=v.useState(0);return v.useEffect(()=>{let f=g.current;if(f)return f.addEventListener(Ne,w),()=>f.removeEventListener(Ne,w)},[w]),Y(qt,{scope:a,orientation:o,dir:k,loop:r,currentTabStopId:C,onItemFocus:v.useCallback(f=>I(f),[I]),onItemShiftTab:v.useCallback(()=>S(!0),[]),onFocusableItemAdd:v.useCallback(()=>q(f=>f+1),[]),onFocusableItemRemove:v.useCallback(()=>q(f=>f-1),[]),children:Y(_.div,{tabIndex:b||H===0?-1:0,"data-orientation":o,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:W(e.onMouseDown,()=>{U.current=!0}),onFocus:W(e.onFocus,f=>{let F=!U.current;if(f.target===f.currentTarget&&F&&!b){let de=new CustomEvent(Ne,Bt);if(f.currentTarget.dispatchEvent(de),!de.defaultPrevented){let te=P().filter(R=>R.focusable),oe=te.find(R=>R.active),Ie=te.find(R=>R.id===C),X=[oe,Ie,...te].filter(Boolean).map(R=>R.ref.current);Sa(X,p)}}U.current=!1}),onBlur:W(e.onBlur,()=>S(!1))})})}),Ca="RovingFocusGroupItem",ha=v.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:o=!0,active:r=!1,tabStopId:l,children:u,...s}=e,n=La(),d=l||n,p=Ot(Ca,a),m=p.currentTabStopId===d,g=xa(a),{onFocusableItemAdd:h,onFocusableItemRemove:k,currentTabStopId:C}=p;return v.useEffect(()=>{if(o)return h(),()=>k()},[o,h,k]),Y(Xe.ItemSlot,{scope:a,id:d,focusable:o,active:r,children:Y(_.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:W(e.onMouseDown,I=>{o?p.onItemFocus(d):I.preventDefault()}),onFocus:W(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:W(e.onKeyDown,I=>{if(I.key==="Tab"&&I.shiftKey){p.onItemShiftTab();return}if(I.target!==I.currentTarget)return;let b=Et(I,p.orientation,p.dir);if(b!==void 0){if(I.metaKey||I.ctrlKey||I.altKey||I.shiftKey)return;I.preventDefault();let w=g().filter(P=>P.focusable).map(P=>P.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();let P=w.indexOf(I.currentTarget);w=p.loop?zt(w,P+1):w.slice(P+1)}setTimeout(()=>Sa(w))}}),children:typeof u=="function"?u({isCurrentTabStop:m,hasTabStop:C!=null}):u})})});ha.displayName=Ca;var Ht={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Gt(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Et(e,t,a){let o=Gt(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Ht[o]}function Sa(e,t=!1){let a=document.activeElement;for(let o of e)if(o===a||(o.focus({preventScroll:t}),document.activeElement!==a))return}function zt(e,t){return e.map((a,o)=>e[(t+o)%e.length])}var wa=ga,ka=ha;import*as ba from"react";import{jsx as Wt}from"react/jsx-runtime";var Pa="Toggle",Ke=ba.forwardRef((e,t)=>{let{pressed:a,defaultPressed:o,onPressedChange:r,...l}=e,[u,s]=Q({prop:a,onChange:r,defaultProp:o??!1,caller:Pa});return Wt(_.button,{type:"button","aria-pressed":u,"data-state":u?"on":"off","data-disabled":e.disabled?"":void 0,...l,ref:t,onClick:W(e.onClick,()=>{e.disabled||s(!u)})})});Ke.displayName=Pa;var me={};st(me,{Item:()=>Jt,Root:()=>Zt,ToggleGroup:()=>Me,ToggleGroupItem:()=>je,createToggleGroupScope:()=>Nt});import*as T from"react";import{jsx as O}from"react/jsx-runtime";var K="ToggleGroup",[Aa,Nt]=le(K,[_e]),ya=_e(),Me=T.forwardRef((e,t)=>{let{type:a,...o}=e;if(a==="single")return O(Xt,{...o,ref:t});if(a==="multiple")return O(_t,{...o,ref:t});throw new Error(`Missing prop \`type\` expected on \`${K}\``)});Me.displayName=K;var[va,Ma]=Aa(K),Xt=T.forwardRef((e,t)=>{let{value:a,defaultValue:o,onValueChange:r=()=>{},...l}=e,[u,s]=Q({prop:a,defaultProp:o??"",onChange:r,caller:K});return O(va,{scope:e.__scopeToggleGroup,type:"single",value:T.useMemo(()=>u?[u]:[],[u]),onItemActivate:s,onItemDeactivate:T.useCallback(()=>s(""),[s]),children:O(Fa,{...l,ref:t})})}),_t=T.forwardRef((e,t)=>{let{value:a,defaultValue:o,onValueChange:r=()=>{},...l}=e,[u,s]=Q({prop:a,defaultProp:o??[],onChange:r,caller:K}),n=T.useCallback(p=>s((m=[])=>[...m,p]),[s]),d=T.useCallback(p=>s((m=[])=>m.filter(g=>g!==p)),[s]);return O(va,{scope:e.__scopeToggleGroup,type:"multiple",value:u,onItemActivate:n,onItemDeactivate:d,children:O(Fa,{...l,ref:t})})});Me.displayName=K;var[Kt,jt]=Aa(K),Fa=T.forwardRef((e,t)=>{let{__scopeToggleGroup:a,disabled:o=!1,rovingFocus:r=!0,orientation:l,dir:u,loop:s=!0,...n}=e,d=ya(a),p=ye(u),m={role:"group",dir:p,...n};return O(Kt,{scope:a,rovingFocus:r,disabled:o,children:r?O(wa,{asChild:!0,...d,orientation:l,dir:p,loop:s,children:O(_.div,{...m,ref:t})}):O(_.div,{...m,ref:t})})}),ve="ToggleGroupItem",je=T.forwardRef((e,t)=>{let a=Ma(ve,e.__scopeToggleGroup),o=jt(ve,e.__scopeToggleGroup),r=ya(e.__scopeToggleGroup),l=a.value.includes(e.value),u=o.disabled||e.disabled,s={...e,pressed:l,disabled:u},n=T.useRef(null);return o.rovingFocus?O(ka,{asChild:!0,...r,focusable:!u,active:l,ref:n,children:O(Ra,{...s,ref:t})}):O(Ra,{...s,ref:t})});je.displayName=ve;var Ra=T.forwardRef((e,t)=>{let{__scopeToggleGroup:a,value:o,...r}=e,l=Ma(ve,a),u={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=l.type==="single"?u:void 0;return O(Ke,{...s,...r,ref:t,onPressedChange:n=>{n?l.onItemActivate(o):l.onItemDeactivate(o)}})}),Zt=Me,Jt=je;function Ba(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),Ga=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),Te="-",Da=[],Yt="arbitrary..",eo=e=>{let t=to(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return ao(u);let s=u.split(Te),n=s[0]===""&&s.length>1?1:0;return Ea(s,n,t)},getConflictingClassGroupIds:(u,s)=>{if(s){let n=o[u],d=a[u];return n?d?$t(d,n):n:d||Da}return a[u]||Da}}},Ea=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],l=a.nextPart.get(r);if(l){let d=Ea(e,t+1,l);if(d)return d}let u=a.validators;if(u===null)return;let s=t===0?e.join(Te):e.slice(t).join(Te),n=u.length;for(let d=0;de.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?Yt+o:void 0})(),to=e=>{let{theme:t,classGroups:a}=e;return oo(a,t)},oo=(e,t)=>{let a=Ga();for(let o in e){let r=e[o];$e(r,a,o,t)}return a},$e=(e,t,a,o)=>{let r=e.length;for(let l=0;l{if(typeof e=="string"){lo(e,t,a);return}if(typeof e=="function"){uo(e,t,a,o);return}so(e,t,a,o)},lo=(e,t,a)=>{let o=e===""?t:za(t,e);o.classGroupId=a},uo=(e,t,a,o)=>{if(fo(e)){$e(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Qt(a,e))},so=(e,t,a,o)=>{let r=Object.entries(e),l=r.length;for(let u=0;u{let a=e,o=t.split(Te),r=o.length;for(let l=0;l"isThemeGetter"in e&&e.isThemeGetter===!0,io=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(l,u)=>{a[l]=u,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(l){let u=a[l];if(u!==void 0)return u;if((u=o[l])!==void 0)return r(l,u),u},set(l,u){l in a?a[l]=u:r(l,u)}}},Je="!",Ta=":",no=[],qa=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),co=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=r=>{let l=[],u=0,s=0,n=0,d,p=r.length;for(let C=0;Cn?d-n:void 0;return qa(l,h,g,k)};if(t){let r=t+Ta,l=o;o=u=>u.startsWith(r)?l(u.slice(r.length)):qa(no,!1,u,void 0,!0)}if(a){let r=o;o=l=>a({className:l,parseClassName:r})}return o},po=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],r=[];for(let l=0;l0&&(r.sort(),o.push(...r),r=[]),o.push(u)):r.push(u)}return r.length>0&&(r.sort(),o.push(...r)),o}},mo=e=>({cache:io(e.cacheSize),parseClassName:co(e),sortModifiers:po(e),postfixLookupClassGroupIds:Lo(e),...eo(e)}),Lo=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:l,postfixLookupClassGroupIds:u}=t,s=[],n=e.trim().split(Io),d="";for(let p=n.length-1;p>=0;p-=1){let m=n[p],{isExternal:g,modifiers:h,hasImportantModifier:k,baseClassName:C,maybePostfixModifierPosition:I}=a(m);if(g){d=m+(d.length>0?" "+d:d);continue}let b=!!I,S;if(b){let q=C.substring(0,I);S=o(q);let f=S&&u[S]?o(C):void 0;f&&f!==S&&(S=f,b=!1)}else S=o(C);if(!S){if(!b){d=m+(d.length>0?" "+d:d);continue}if(S=o(C),!S){d=m+(d.length>0?" "+d:d);continue}b=!1}let w=h.length===0?"":h.length===1?h[0]:l(h).join(":"),P=k?w+Je:w,U=P+S;if(s.indexOf(U)>-1)continue;s.push(U);let H=r(S,b);for(let q=0;q0?" "+d:d)}return d},go=(...e)=>{let t=0,a,o,r="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,r,l,u=n=>{let d=t.reduce((p,m)=>m(p),e());return a=mo(d),o=a.cache.get,r=a.cache.set,l=s,s(n)},s=n=>{let d=o(n);if(d)return d;let p=xo(n,a);return r(n,p),p};return l=u,(...n)=>l(go(...n))},ho=[],A=e=>{let t=a=>a[e]||ho;return t.isThemeGetter=!0,t},Wa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Na=/^\((?:(\w[\w-]*):)?(.+)\)$/i,So=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,wo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ko=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Po=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ro=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>So.test(e),x=e=>!!e&&!Number.isNaN(Number(e)),z=e=>!!e&&Number.isInteger(Number(e)),Ze=e=>e.endsWith("%")&&x(e.slice(0,-1)),N=e=>wo.test(e),Xa=()=>!0,Ao=e=>ko.test(e)&&!bo.test(e),Qe=()=>!1,yo=e=>Po.test(e),vo=e=>Ro.test(e),Mo=e=>!i(e)&&!c(e),Fo=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Bo=e=>Z(e,ja,Qe),i=e=>Wa.test(e),ee=e=>Z(e,Za,Ao),Oa=e=>Z(e,Eo,x),Do=e=>Z(e,$a,Xa),To=e=>Z(e,Ja,Qe),Ua=e=>Z(e,_a,Qe),qo=e=>Z(e,Ka,vo),Be=e=>Z(e,Qa,yo),c=e=>Na.test(e),Le=e=>ae(e,Za),Oo=e=>ae(e,Ja),Ha=e=>ae(e,_a),Uo=e=>ae(e,ja),Ho=e=>ae(e,Ka),De=e=>ae(e,Qa,!0),Go=e=>ae(e,$a,!0),Z=(e,t,a)=>{let o=Wa.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},ae=(e,t,a=!1)=>{let o=Na.exec(e);return o?o[1]?t(o[1]):a:!1},_a=e=>e==="position"||e==="percentage",Ka=e=>e==="image"||e==="url",ja=e=>e==="length"||e==="size"||e==="bg-size",Za=e=>e==="length",Eo=e=>e==="number",Ja=e=>e==="family-name",$a=e=>e==="number"||e==="weight",Qa=e=>e==="shadow";var zo=()=>{let e=A("color"),t=A("font"),a=A("text"),o=A("font-weight"),r=A("tracking"),l=A("leading"),u=A("breakpoint"),s=A("container"),n=A("spacing"),d=A("radius"),p=A("shadow"),m=A("inset-shadow"),g=A("text-shadow"),h=A("drop-shadow"),k=A("blur"),C=A("perspective"),I=A("aspect"),b=A("ease"),S=A("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...P(),c,i],H=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],f=()=>[c,i,n],F=()=>[j,"full","auto",...f()],de=()=>[z,"none","subgrid",c,i],te=()=>["auto",{span:["full",z,c,i]},z,c,i],oe=()=>[z,"auto",c,i],Ie=()=>["auto","min","max","fr",c,i],xe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...f()],J=()=>[j,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],He=()=>[j,"screen","full","dvw","lvw","svw","min","max","fit",...f()],Ge=()=>[j,"screen","full","lh","dvh","lvh","svh","min","max","fit",...f()],L=()=>[e,c,i],ea=()=>[...P(),Ha,Ua,{position:[c,i]}],aa=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ta=()=>["auto","cover","contain",Uo,Bo,{size:[c,i]}],Ee=()=>[Ze,Le,ee],B=()=>["","none","full",d,c,i],D=()=>["",x,Le,ee],ge=()=>["solid","dashed","dotted","double"],oa=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],y=()=>[x,Ze,Ha,Ua],ra=()=>["","none",k,c,i],Ce=()=>["none",x,c,i],he=()=>["none",x,c,i],ze=()=>[x,c,i],Se=()=>[j,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[N],breakpoint:[N],color:[Xa],container:[N],"drop-shadow":[N],ease:["in","out","in-out"],font:[Mo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[N],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[N],shadow:[N],spacing:["px",x],text:[N],"text-shadow":[N],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",j,i,c,I]}],container:["container"],"container-type":[{"@container":["","normal","size",c,i]}],"container-named":[Fo],columns:[{columns:[x,i,c,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:U()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[z,"auto",c,i]}],basis:[{basis:[j,"full","auto",s,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[x,j,"auto","initial","none",i]}],grow:[{grow:["",x,c,i]}],shrink:[{shrink:["",x,c,i]}],order:[{order:[z,"first","last","none",c,i]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ie()}],"auto-rows":[{"auto-rows":Ie()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...xe(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...xe()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":xe()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pbs:[{pbs:f()}],pbe:[{pbe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mbs:[{mbs:R()}],mbe:[{mbe:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],"inline-size":[{inline:["auto",...He()]}],"min-inline-size":[{"min-inline":["auto",...He()]}],"max-inline-size":[{"max-inline":["none",...He()]}],"block-size":[{block:["auto",...Ge()]}],"min-block-size":[{"min-block":["auto",...Ge()]}],"max-block-size":[{"max-block":["none",...Ge()]}],w:[{w:[s,"screen",...J()]}],"min-w":[{"min-w":[s,"screen","none",...J()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[u]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",a,Le,ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Go,Do]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ze,i]}],"font-family":[{font:[Oo,To,t]}],"font-features":[{"font-features":[i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,c,i]}],"line-clamp":[{"line-clamp":[x,"none",c,Oa]}],leading:[{leading:[l,...f()]}],"list-image":[{"list-image":["none",c,i]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",c,i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[x,"from-font","auto",c,ee]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[x,"auto",c,i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"tab-size":[{tab:[z,c,i]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c,i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c,i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ea()}],"bg-repeat":[{bg:aa()}],"bg-size":[{bg:ta()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},z,c,i],radial:["",c,i],conic:[z,c,i]},Ho,qo]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:Ee()}],"gradient-via-pos":[{via:Ee()}],"gradient-to-pos":[{to:Ee()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-bs":[{"border-bs":D()}],"border-w-be":[{"border-be":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[x,c,i]}],"outline-w":[{outline:["",x,Le,ee]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",p,De,Be]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",m,De,Be]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[x,ee]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",g,De,Be]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[x,c,i]}],"mix-blend":[{"mix-blend":[...oa(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oa()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[x]}],"mask-image-linear-from-pos":[{"mask-linear-from":y()}],"mask-image-linear-to-pos":[{"mask-linear-to":y()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":y()}],"mask-image-t-to-pos":[{"mask-t-to":y()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":y()}],"mask-image-r-to-pos":[{"mask-r-to":y()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":y()}],"mask-image-b-to-pos":[{"mask-b-to":y()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":y()}],"mask-image-l-to-pos":[{"mask-l-to":y()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":y()}],"mask-image-x-to-pos":[{"mask-x-to":y()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":y()}],"mask-image-y-to-pos":[{"mask-y-to":y()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[c,i]}],"mask-image-radial-from-pos":[{"mask-radial-from":y()}],"mask-image-radial-to-pos":[{"mask-radial-to":y()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[x]}],"mask-image-conic-from-pos":[{"mask-conic-from":y()}],"mask-image-conic-to-pos":[{"mask-conic-to":y()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ea()}],"mask-repeat":[{mask:aa()}],"mask-size":[{mask:ta()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",c,i]}],filter:[{filter:["","none",c,i]}],blur:[{blur:ra()}],brightness:[{brightness:[x,c,i]}],contrast:[{contrast:[x,c,i]}],"drop-shadow":[{"drop-shadow":["","none",h,De,Be]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",x,c,i]}],"hue-rotate":[{"hue-rotate":[x,c,i]}],invert:[{invert:["",x,c,i]}],saturate:[{saturate:[x,c,i]}],sepia:[{sepia:["",x,c,i]}],"backdrop-filter":[{"backdrop-filter":["","none",c,i]}],"backdrop-blur":[{"backdrop-blur":ra()}],"backdrop-brightness":[{"backdrop-brightness":[x,c,i]}],"backdrop-contrast":[{"backdrop-contrast":[x,c,i]}],"backdrop-grayscale":[{"backdrop-grayscale":["",x,c,i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x,c,i]}],"backdrop-invert":[{"backdrop-invert":["",x,c,i]}],"backdrop-opacity":[{"backdrop-opacity":[x,c,i]}],"backdrop-saturate":[{"backdrop-saturate":[x,c,i]}],"backdrop-sepia":[{"backdrop-sepia":["",x,c,i]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",c,i]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[x,"initial",c,i]}],ease:[{ease:["linear","initial",b,c,i]}],delay:[{delay:[x,c,i]}],animate:[{animate:["none",S,c,i]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,c,i]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:Ce()}],"rotate-x":[{"rotate-x":Ce()}],"rotate-y":[{"rotate-y":Ce()}],"rotate-z":[{"rotate-z":Ce()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[c,i,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],zoom:[{zoom:[z,c,i]}],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c,i]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":L()}],"scrollbar-track-color":[{"scrollbar-track":L()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mbs":[{"scroll-mbs":f()}],"scroll-mbe":[{"scroll-mbe":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pbs":[{"scroll-pbs":f()}],"scroll-pbe":[{"scroll-pbe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c,i]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[x,Le,ee,Oa]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Ya=Co(zo);function qe(...e){return Ya(Fe(e))}var et=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,at=Fe,tt=(e,t)=>a=>{var o;if(t?.variants==null)return at(e,a?.class,a?.className);let{variants:r,defaultVariants:l}=t,u=Object.keys(r).map(d=>{let p=a?.[d],m=l?.[d];if(p===null)return null;let g=et(p)||et(m);return r[d][g]}),s=a&&Object.entries(a).reduce((d,p)=>{let[m,g]=p;return g===void 0||(d[m]=g),d},{}),n=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((d,p)=>{let{class:m,className:g,...h}=p;return Object.entries(h).every(k=>{let[C,I]=k;return Array.isArray(I)?I.includes({...l,...s}[C]):{...l,...s}[C]===I})?[...d,m,g]:d},[]);return at(e,u,n,a?.class,a?.className)};import{jsx as xl}from"react/jsx-runtime";var ot=tt("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 min-w-9 px-2",sm:"h-8 min-w-8 px-1.5",lg:"h-10 min-w-10 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});import{jsx as Ye}from"react/jsx-runtime";var rt=Oe.createContext({size:"default",variant:"default",spacing:0});function lt({className:e,variant:t,size:a,spacing:o=0,children:r,...l}){return Ye(me.Root,{"data-slot":"toggle-group","data-variant":t,"data-size":a,"data-spacing":o,style:{"--gap":o},className:qe("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs",e),...l,children:Ye(rt.Provider,{value:{variant:t,size:a,spacing:o},children:r})})}function Ue({className:e,children:t,variant:a,size:o,...r}){let l=Oe.useContext(rt);return Ye(me.Item,{"data-slot":"toggle-group-item","data-variant":l.variant||a,"data-size":l.size||o,"data-spacing":l.spacing,className:qe(ot({variant:l.variant||a,size:l.size||o}),"w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10","data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l",e),...r,children:t})}import{jsx as se,jsxs as Wo}from"react/jsx-runtime";function Vo(){return Wo(lt,{type:"single",size:"sm",children:[se(Ue,{value:"bold","aria-label":"Toggle bold",children:se(fe,{className:"h-4 w-4"})}),se(Ue,{value:"italic","aria-label":"Toggle italic",children:se(ie,{className:"h-4 w-4"})}),se(Ue,{value:"strikethrough","aria-label":"Toggle strikethrough",children:se(ne,{className:"h-4 w-4"})})]})}export{Vo as default}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/bold.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/italic.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/underline.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/7de0257cdb542f26c13df7d2618952a0eceee269bb39112913cd9e119e81e9aa b/b/7de0257cdb542f26c13df7d2618952a0eceee269bb39112913cd9e119e81e9aa new file mode 100644 index 0000000000000000000000000000000000000000..59bb621ab1cc5b512c2f523f9371dd542a74a408 --- /dev/null +++ b/b/7de0257cdb542f26c13df7d2618952a0eceee269bb39112913cd9e119e81e9aa @@ -0,0 +1,38 @@ +import { + NativeSelect, + NativeSelectOptGroup, + NativeSelectOption, +} from "@/registry/new-york-v4/ui/native-select" + +export default function NativeSelectGroups() { + return ( + + Select department + + Frontend + Backend + DevOps + + + Sales Rep + + Account Manager + + + Sales Director + + + + + Customer Support + + + Product Manager + + + Operations Manager + + + + ) +} diff --git a/b/7dec6f767bc56b6ca4d8a9b1466668b610487ddadbffd8af1ad3e207ec69de75 b/b/7dec6f767bc56b6ca4d8a9b1466668b610487ddadbffd8af1ad3e207ec69de75 new file mode 100644 index 0000000000000000000000000000000000000000..78e54238d3acec1aacb144bb0957e15b51f2f964 --- /dev/null +++ b/b/7dec6f767bc56b6ca4d8a9b1466668b610487ddadbffd8af1ad3e207ec69de75 @@ -0,0 +1,138 @@ +// Warm residency + multi-source witness (S4 of sparse expert streaming). +// Using the per-expert κ directory + a resident multi-source store, prove the three +// honest regimes: COLD (first forward fetches routed experts from a source, verified), +// WARM (a second forward of the same prompt fetches ZERO blocks — served from L3 +// residency), and HOT-SET (an overlapping prompt fetches ONLY the newly-routed experts, +// strictly fewer than a cold load). Plus multi-source: a corrupt source is refused by +// re-derivation and the next source serves the block; if every source is corrupt the +// load fails closed. Logits are identical across every regime (residency is memoization). + +import assert from "node:assert"; +import { forgeGguf, mapStore, loadByKappa } from "./gguf-forge.mjs"; +import { synthesizeGraph } from "./gguf-forge-graph.mjs"; +import { forward } from "./gguf-forge-exec.mjs"; +import { GGML } from "./gguf-forge-dequant.mjs"; +import { buildExpertDirectory, expertKappa } from "./gguf-forge-expert-dir.mjs"; +import { makeResidentStore, asSource } from "./gguf-forge-kstore.mjs"; +import { sha256hex } from "../../../../holo-os/system/os/usr/lib/holo/holo-uor.mjs"; + +let pass = 0, fail = 0; +const t = (name, fn) => { try { fn(); pass++; console.log(" ok " + name); } catch (e) { fail++; console.log("FAIL " + name + "\n " + e.message); } }; + +const D = 8, NH = 2, NHKV = 1, HD = 4, FF = 6, VOCAB = 5, E = 4, USED = 2, EPS = 1e-6, FREQ = 10000; +const QD = NH * HD, KV = NHKV * HD; +const hexOf = (k) => String(k).split(":").pop(); +function prng(seed) { let s = seed >>> 0; return () => { s = (s * 1664525 + 1013904223) >>> 0; return (s / 4294967296) * 2 - 1; }; } +const randF = (r, n, scale = 0.3) => { const a = new Float32Array(n); for (let i = 0; i < n; i++) a[i] = r() * scale; return a; }; +const f32bytes = (arr) => new Uint8Array(arr.buffer.slice(arr.byteOffset, arr.byteOffset + arr.byteLength)); + +function buildGguf(meta, tensors) { + const ALIGN = 32; let off = 0; + const infos = tensors.map((tn) => { const o = off; off = Math.ceil((o + tn.bytes.length) / ALIGN) * ALIGN; return { ...tn, offset: o }; }); + let parts = [], len = 0; const push = (b) => { parts.push(b); len += b.length; }; + const u32 = (v) => { const b = new Uint8Array(4); new DataView(b.buffer).setUint32(0, v >>> 0, true); push(b); }; + const f32 = (v) => { const b = new Uint8Array(4); new DataView(b.buffer).setFloat32(0, v, true); push(b); }; + const u64 = (v) => { const b = new Uint8Array(8); const dv = new DataView(b.buffer); dv.setUint32(0, v >>> 0, true); dv.setUint32(4, Math.floor(v / 4294967296), true); push(b); }; + const str = (s) => { const e = new TextEncoder().encode(s); u64(e.length); push(e); }; + push(new TextEncoder().encode("GGUF")); u32(3); u64(tensors.length); u64(Object.keys(meta).length); + for (const [k, val] of Object.entries(meta)) { str(k); if (typeof val === "string") { u32(8); str(val); } else if (Number.isInteger(val) && val >= 0 && val < 4294967296) { u32(4); u32(val); } else { u32(6); f32(val); } } + for (const ti of infos) { str(ti.name); u32(ti.dims.length); for (const d of ti.dims) u64(d); u32(ti.type); u64(ti.offset); } + if (len % ALIGN) push(new Uint8Array(ALIGN - (len % ALIGN))); + const dataStart = len; + for (const ti of infos) { while (len < dataStart + ti.offset) push(new Uint8Array(1)); push(ti.bytes); } + const out = new Uint8Array(len); let o = 0; for (const p of parts) { out.set(p, o); o += p.length; } return out; +} +function forgeMoe() { + const r = prng(7); + const w = { + tok_embd: randF(r, VOCAB * D), output_norm: randF(r, D).map((x) => Math.abs(x) + 0.5), output: randF(r, VOCAB * D), + attn_norm: randF(r, D).map((x) => Math.abs(x) + 0.5), ffn_norm: randF(r, D).map((x) => Math.abs(x) + 0.5), + wq: randF(r, QD * D), wk: randF(r, KV * D), wv: randF(r, KV * D), wo: randF(r, D * QD), + gate_inp: randF(r, E * D), gate_exps: randF(r, E * FF * D), up_exps: randF(r, E * FF * D), down_exps: randF(r, E * D * FF), + }; + const meta = { + "general.architecture": "llama", "llama.block_count": 1, "llama.embedding_length": D, + "llama.attention.head_count": NH, "llama.attention.head_count_kv": NHKV, "llama.attention.key_length": HD, + "llama.feed_forward_length": FF, "llama.expert_count": E, "llama.expert_used_count": USED, + "llama.expert_feed_forward_length": FF, "llama.rope.freq_base": FREQ, "llama.attention.layer_norm_rms_epsilon": EPS, + }; + const T = [ + ["token_embd.weight", [D, VOCAB], w.tok_embd], ["output_norm.weight", [D], w.output_norm], ["output.weight", [D, VOCAB], w.output], + ["blk.0.attn_norm.weight", [D], w.attn_norm], ["blk.0.attn_q.weight", [D, QD], w.wq], ["blk.0.attn_k.weight", [D, KV], w.wk], + ["blk.0.attn_v.weight", [D, KV], w.wv], ["blk.0.attn_output.weight", [QD, D], w.wo], ["blk.0.ffn_norm.weight", [D], w.ffn_norm], + ["blk.0.ffn_gate_inp.weight", [D, E], w.gate_inp], + ["blk.0.ffn_gate_exps.weight", [D, FF, E], w.gate_exps], ["blk.0.ffn_up_exps.weight", [D, FF, E], w.up_exps], ["blk.0.ffn_down_exps.weight", [FF, D, E], w.down_exps], + ]; + return forgeGguf(buildGguf(meta, T.map(([name, dims, arr]) => ({ name, type: GGML.F32, dims, bytes: f32bytes(arr) })))); +} + +// shared fixture: forge + graph + dir + a "peer" source holding every block. +function fixture() { + const forge = forgeMoe(); + const graph = synthesizeGraph(forge.plan); + const { dir, expertBlocks } = buildExpertDirectory(forge); + const peer = new Map([...forge.blocks, ...expertBlocks]); // a remote source with all blocks + const ref = forward(forge.plan, graph, mapStore(peer), [1]); // whole-stack reference logits for [1] + return { forge, graph, dir, peer, ref }; +} +const run = (f, store, tokens) => forward(f.forge.plan, f.graph, store, tokens, { expertDir: f.dir }); +const sameLogits = (a, b) => { assert.strictEqual(a.length, b.length); for (let i = 0; i < a.length; i++) assert.strictEqual(a[i], b[i], `logit ${i}`); }; + +t("COLD then WARM: a second forward of the same prompt fetches ZERO blocks (L3)", () => { + const f = fixture(); + const resident = new Map(); + const cold = makeResidentStore({ sources: [asSource(f.peer)], resident }); + const lc = run(f, cold, [1]); + assert.ok(cold.stats.fetched > 0 && cold.stats.refused === 0, "cold fetched + verified from peer"); + assert.strictEqual(cold.stats.verified, cold.stats.fetched, "every fetched block re-derived"); + + const warm = makeResidentStore({ sources: [asSource(f.peer)], resident }); // SAME resident Map + const lw = run(f, warm, [1]); + assert.strictEqual(warm.stats.fetched, 0, "warm: zero source fetches"); + assert.ok(warm.stats.hits > 0, "served entirely from residency"); + sameLogits(lc, lw); sameLogits(lc, f.ref); + console.log(` regimes: cold fetched ${cold.stats.fetched} blocks · warm fetched 0`); +}); + +t("HOT-SET: an overlapping prompt fetches ONLY the newly-routed experts (< cold)", () => { + const f = fixture(); + // cold load of prompt [2] from scratch — the baseline to beat + const coldP2 = makeResidentStore({ sources: [asSource(f.peer)], resident: new Map() }); + run(f, coldP2, [2]); + + // warm on [1], then run overlapping [2] against the warmed residency + const resident = new Map(); + run(f, makeResidentStore({ sources: [asSource(f.peer)], resident }), [1]); + const before = resident.size; + const hot = makeResidentStore({ sources: [asSource(f.peer)], resident }); + run(f, hot, [2]); + const growth = resident.size - before; + assert.strictEqual(hot.stats.fetched, growth, "fetched exactly the blocks newly added to residency"); + assert.ok(hot.stats.fetched < coldP2.stats.fetched, `hot ${hot.stats.fetched} < cold ${coldP2.stats.fetched} (shared trunk + experts)`); + console.log(` regimes: cold[2] ${coldP2.stats.fetched} · hot[2 after 1] ${hot.stats.fetched}`); +}); + +t("MULTI-SOURCE: a corrupt source is refused by re-derivation; the next source serves it", () => { + const f = fixture(); + // learn which expert [1] routes, then corrupt that expert's gate slice on source 0 + let sel = null; + forward(f.forge.plan, f.graph, mapStore(f.peer), [1], { expertDir: f.dir, onExpertSelect: (_k, s) => { sel = s.slice(); } }); + const targetHex = hexOf(expertKappa(f.dir, "blk.0.ffn_gate_exps.weight", sel[0])); + const corrupt = (src, hex) => { const m = new Map(src); const bad = m.get(hex).slice(); bad[0] ^= 0xff; m.set(hex, bad); return m; }; + + const src0 = corrupt(f.peer, targetHex); // everything right except the target block + const src1 = f.peer; // correct fallback + const store = makeResidentStore({ sources: [asSource(src0), asSource(src1)], resident: new Map() }); + const l = run(f, store, [1]); + sameLogits(l, f.ref); // correct result despite a bad source + assert.ok(store.stats.refused >= 1, "the corrupt block was refused"); + assert.ok(store.stats.perSource[1] >= 1, "the target was served from the fallback source"); + + // if EVERY source is corrupt for a needed block, the load fails closed + const allBad0 = corrupt(f.peer, targetHex), allBad1 = corrupt(f.peer, targetHex); + const store2 = makeResidentStore({ sources: [asSource(allBad0), asSource(allBad1)], resident: new Map() }); + assert.throws(() => run(f, store2, [1]), /not found/, "no good source → fail closed"); +}); + +console.log(`\n${pass} passed, ${fail} failed`); +process.exit(fail ? 1 : 0); diff --git a/b/7df3f984b8b390d4f7bd37919880eb578b768135c6e28febc7cf0c7e12db34c0 b/b/7df3f984b8b390d4f7bd37919880eb578b768135c6e28febc7cf0c7e12db34c0 new file mode 100644 index 0000000000000000000000000000000000000000..5fb9573029b0521cb43859f1d272484e114c6130 --- /dev/null +++ b/b/7df3f984b8b390d4f7bd37919880eb578b768135c6e28febc7cf0c7e12db34c0 @@ -0,0 +1 @@ +import{jsx as a}from"react/jsx-runtime";function l(){return a("small",{className:"text-sm leading-none font-medium",children:"Email address"})}export{l as default}; diff --git a/b/7df7b2aed777965801d0c53ccc30aebe168222d4dc7f9655cfab4c0f42304cd7 b/b/7df7b2aed777965801d0c53ccc30aebe168222d4dc7f9655cfab4c0f42304cd7 new file mode 100644 index 0000000000000000000000000000000000000000..48fb8209229d8e3b27d6caa307425f9e31c85095 --- /dev/null +++ b/b/7df7b2aed777965801d0c53ccc30aebe168222d4dc7f9655cfab4c0f42304cd7 @@ -0,0 +1,7 @@ +import collapse from './object.js'; +import { addPrefix } from '../../functions/addPrefix.js'; + +export default ({ addComponents, prefix = '' }) => { + const prefixedcollapse = addPrefix(collapse, prefix); + addComponents({ ...prefixedcollapse }); +}; diff --git a/b/7e15964d1bb887e39bb9edebbdcdee192d9b938a8782a8183d07c373034b150b b/b/7e15964d1bb887e39bb9edebbdcdee192d9b938a8782a8183d07c373034b150b new file mode 100644 index 0000000000000000000000000000000000000000..d7a972dc07562af9934ff224b7317aad2b2a74f1 --- /dev/null +++ b/b/7e15964d1bb887e39bb9edebbdcdee192d9b938a8782a8183d07c373034b150b @@ -0,0 +1,27 @@ +{ + "id": "org.hologram.ui.daisyui.radio", + "name": "daisyui-radio", + "tier": "component", + "library": "daisyui", + "category": "Forms & Inputs", + "upstream": "https://cdn.jsdelivr.net/npm/daisyui@5.5.23/components/radio.css", + "docs": "https://daisyui.com/components/radio/", + "did": "did:holo:sha256:54ef8eb5f6cacfa5c4b0cf7660d9f1f21394dbbbbc6dfe9f4c45721328bbcea4", + "import": "holo://sha256:54ef8eb5f6cacfa5c4b0cf7660d9f1f21394dbbbbc6dfe9f4c45721328bbcea4", + "integrity": "sha256-VO+OtfbKz6XEsM92YNnx8hOU27u8bf6fTEVyEyi7zqQ=", + "kappa": "sha256:54ef8eb5f6cacfa5c4b0cf7660d9f1f21394dbbbbc6dfe9f4c45721328bbcea4", + "moduleKappa": "sha256:54ef8eb5f6cacfa5c4b0cf7660d9f1f21394dbbbbc6dfe9f4c45721328bbcea4", + "renderExport": null, + "format": "css", + "source": "components/radio.css", + "module": "vendor/daisyui/components/radio.css", + "exports": [], + "bytes": 15238, + "provenance": { + "package": "daisyui", + "version": "5.5.23", + "integrity": "sha512-xuheNUSL4T6ZVtWXoioqcNkjoyGX85QTDz4HTw2aBPfqk4fuMjax5HDo8qCmpV6M1YN8bGvfx5BpYCoDeRlt+A==", + "file": "components/radio.css" + }, + "license": "MIT" +} diff --git a/b/7e162b2333a13ef1e22b36859b603ed1bea97583111d54f8ec369b06d3ca912c b/b/7e162b2333a13ef1e22b36859b603ed1bea97583111d54f8ec369b06d3ca912c new file mode 100644 index 0000000000000000000000000000000000000000..b68794dce3d6c569549d09b2e4be9d2c1efb7d51 --- /dev/null +++ b/b/7e162b2333a13ef1e22b36859b603ed1bea97583111d54f8ec369b06d3ca912c @@ -0,0 +1,5 @@ +import { Input } from "@/registry/new-york-v4/ui/input" + +export default function InputDisabled() { + return +} diff --git a/b/7e432d6657c8cfc407353bc200cd6e6f83e64941f4ba7d2a35a6ab5c7399cb2e b/b/7e432d6657c8cfc407353bc200cd6e6f83e64941f4ba7d2a35a6ab5c7399cb2e new file mode 100644 index 0000000000000000000000000000000000000000..b13e20e5b584ca18b44201ba4c147fefa8a00f1d --- /dev/null +++ b/b/7e432d6657c8cfc407353bc200cd6e6f83e64941f4ba7d2a35a6ab5c7399cb2e @@ -0,0 +1,88 @@ +"use client" + +import { TrendingUp } from "lucide-react" +import { RadialBar, RadialBarChart } from "recharts" + +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + ChartContainer, + ChartTooltip, + ChartTooltipContent, + type ChartConfig, +} from "@/registry/new-york-v4/ui/chart" + +export const description = "A radial chart" + +const chartData = [ + { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" }, + { browser: "safari", visitors: 200, fill: "var(--color-safari)" }, + { browser: "firefox", visitors: 187, fill: "var(--color-firefox)" }, + { browser: "edge", visitors: 173, fill: "var(--color-edge)" }, + { browser: "other", visitors: 90, fill: "var(--color-other)" }, +] + +const chartConfig = { + visitors: { + label: "Visitors", + }, + chrome: { + label: "Chrome", + color: "var(--chart-1)", + }, + safari: { + label: "Safari", + color: "var(--chart-2)", + }, + firefox: { + label: "Firefox", + color: "var(--chart-3)", + }, + edge: { + label: "Edge", + color: "var(--chart-4)", + }, + other: { + label: "Other", + color: "var(--chart-5)", + }, +} satisfies ChartConfig + +export function ChartRadialSimple() { + return ( + + + Radial Chart + January - June 2024 + + + + + } + /> + + + + + +
+ Trending up by 5.2% this month +
+
+ Showing total visitors for the last 6 months +
+
+
+ ) +} diff --git a/b/7e438a060057b1fe1e317554a97135e7733066c0f3f59ab8dad43a2f8c8437fc b/b/7e438a060057b1fe1e317554a97135e7733066c0f3f59ab8dad43a2f8c8437fc new file mode 100644 index 0000000000000000000000000000000000000000..b6261551582800edc4b276495cb5b55bee0d0a49 --- /dev/null +++ b/b/7e438a060057b1fe1e317554a97135e7733066c0f3f59ab8dad43a2f8c8437fc @@ -0,0 +1,60 @@ +TurboQuant KV-plane GPU decode witness +
loading…
diff --git a/b/7e502c71cf1bc0c41721f5c03dddc4992da176836b898283c983368a161b7068 b/b/7e502c71cf1bc0c41721f5c03dddc4992da176836b898283c983368a161b7068 new file mode 100644 index 0000000000000000000000000000000000000000..2d1f91d45888c5f5b8e5d73c0fef514b9b39bcc7 --- /dev/null +++ b/b/7e502c71cf1bc0c41721f5c03dddc4992da176836b898283c983368a161b7068 @@ -0,0 +1,864 @@ +import { useEffect, useRef, useState } from "react" +import type { CSSProperties, HTMLAttributes } from "react" + +import { cn } from "@/lib/utils" + +const ANIMATION_DURATION_SECONDS = 15 +const GRID_HEIGHT_RATIO = 3 +const GRID_LINE_ALIGNMENT_OFFSET_PX = 0.5 +const GRID_LINE_ANTIALIAS_MULTIPLIER = 0.9 +const GRID_LINE_WIDTH_PX = 0.92 +const GRID_START_OFFSET_RATIO = -0.5 +const GRID_WIDTH_RATIO = 6 +const GRID_X_OFFSET_RATIO = -2 +const MAX_ANGLE = 89 +const MAX_DEVICE_PIXEL_RATIO = 2 +const MIN_ANGLE = 1 +const PERSPECTIVE_PX = 200 +const FALLBACK_ANIMATION_NAME = "retro-grid-fallback-scroll" +const FALLBACK_STYLES = ` +@keyframes ${FALLBACK_ANIMATION_NAME} { + from { + transform: translateY(-50%); + } + + to { + transform: translateY(0); + } +} + +@media (prefers-reduced-motion: reduce) { + [data-retro-grid-scroll="true"] { + animation: none !important; + transform: translateY(-50%) !important; + } +} +` + +const VERTEX_SHADER_SOURCE = ` +attribute vec2 a_position; + +void main() { + gl_Position = vec4(a_position, 0.0, 1.0); +} +` + +const FRAGMENT_SHADER_SOURCE = ` +#extension GL_OES_standard_derivatives : enable +precision highp float; + +uniform vec2 u_container_size; +uniform vec2 u_viewport_size; +uniform vec4 u_line_color; +uniform float u_angle; +uniform float u_cell_size; +uniform float u_device_pixel_ratio; +uniform float u_time; + +const float animationDurationSeconds = ${ANIMATION_DURATION_SECONDS.toFixed(1)}; +const float gridHeightRatio = ${GRID_HEIGHT_RATIO.toFixed(1)}; +const float gridStartOffsetRatio = ${GRID_START_OFFSET_RATIO.toFixed(1)}; +const float gridWidthRatio = ${GRID_WIDTH_RATIO.toFixed(1)}; +const float gridXOffsetRatio = ${GRID_X_OFFSET_RATIO.toFixed(1)}; +const float gridLineAlignmentOffsetPx = ${GRID_LINE_ALIGNMENT_OFFSET_PX.toFixed(1)}; +const float gridLineAntialiasMultiplier = ${GRID_LINE_ANTIALIAS_MULTIPLIER.toFixed(1)}; +const float horizontalLodLevelOneEndPx = 5.6; +const float horizontalLodLevelOneStartPx = 2.8; +const float horizontalLodLevelTwoEndPx = 3.0; +const float horizontalLodLevelTwoStartPx = 1.4; +const float horizontalCompressionEndPx = 2.8; +const float horizontalCompressionStartPx = 1.2; +const float lineWidthPx = ${GRID_LINE_WIDTH_PX.toFixed(2)}; +const float perspectivePx = ${PERSPECTIVE_PX.toFixed(1)}; +const float gridTravelRatio = 0.5; +const float verticalCompressionEndPx = 2.6; +const float verticalCompressionStartPx = 1.0; +const float verticalEdgeCompressionEnd = 0.95; +const float verticalEdgeCompressionStart = 0.45; +const float verticalLodLevelEnd = 0.64; +const float verticalLodLevelStart = 0.22; +const float verticalTopCompressionEndCells = 6.0; +const float verticalTopCompressionStartCells = 2.0; + +float renderGridLine( + float wrappedCoord, + float antiAliasWidth, + float softnessBoost +) { + return 1.0 - smoothstep( + lineWidthPx, + lineWidthPx + (antiAliasWidth * (1.5 + softnessBoost)), + wrappedCoord + ); +} + +void main() { + float angle = radians(clamp(u_angle, 1.0, 89.0)); + float sinAngle = sin(angle); + float cosAngle = cos(angle); + vec2 screen = vec2( + (gl_FragCoord.x / u_device_pixel_ratio) - (u_container_size.x * 0.5), + (u_container_size.y * 0.5) - (gl_FragCoord.y / u_device_pixel_ratio) + ); + + vec3 rayOrigin = vec3(0.0, 0.0, perspectivePx); + vec3 rayDirection = normalize(vec3(screen, -perspectivePx)); + vec3 planeXAxis = vec3(1.0, 0.0, 0.0); + vec3 planeYAxis = vec3(0.0, cosAngle, sinAngle); + vec3 planeNormal = normalize(cross(planeXAxis, planeYAxis)); + float denominator = dot(rayDirection, planeNormal); + + if (abs(denominator) < 0.0001) { + discard; + } + + float distanceToPlane = dot(-rayOrigin, planeNormal) / denominator; + + if (distanceToPlane <= 0.0) { + discard; + } + + vec3 hitPoint = rayOrigin + (rayDirection * distanceToPlane); + float localX = hitPoint.x; + float localY = dot(hitPoint, planeYAxis); + float gridWidth = u_viewport_size.x * gridWidthRatio; + float gridHeight = u_viewport_size.y * gridHeightRatio; + float gridScrollSpeed = (gridHeight * gridTravelRatio) / animationDurationSeconds; + float patternOffsetY = u_time * gridScrollSpeed; + float gridLeft = (-0.5 * u_container_size.x) + (gridXOffsetRatio * u_container_size.x); + float gridTop = (-0.5 * u_container_size.y) + (gridStartOffsetRatio * gridHeight); + vec2 planePosition = vec2(localX - gridLeft, localY - gridTop); + + if ( + planePosition.x < 0.0 || + planePosition.y < 0.0 || + planePosition.x > gridWidth || + planePosition.y > gridHeight + ) { + discard; + } + + vec2 patternPosition = vec2(planePosition.x, planePosition.y - patternOffsetY); + vec2 wrapped = mod( + patternPosition + vec2(gridLineAlignmentOffsetPx), + u_cell_size + ); + vec2 patternDerivative = max(fwidth(patternPosition), vec2(0.0001)); + vec2 antiAliasWidth = patternDerivative * gridLineAntialiasMultiplier; + float horizontalCellSpanPx = u_cell_size / patternDerivative.y; + float horizontalCompression = 1.0 - smoothstep( + horizontalCompressionStartPx, + horizontalCompressionEndPx, + horizontalCellSpanPx + ); + float verticalCellSpanPx = u_cell_size / patternDerivative.x; + float sideDistance = abs((planePosition.x / gridWidth) * 2.0 - 1.0); + float verticalEdgeCompression = smoothstep( + verticalEdgeCompressionStart, + verticalEdgeCompressionEnd, + sideDistance + ); + float verticalTopCompression = 1.0 - smoothstep( + u_cell_size * verticalTopCompressionStartCells, + u_cell_size * verticalTopCompressionEndCells, + planePosition.y + ); + float verticalCompression = + (1.0 - smoothstep( + verticalCompressionStartPx, + verticalCompressionEndPx, + verticalCellSpanPx + )) * verticalEdgeCompression * verticalTopCompression; + float horizontalSoftnessBoost = 1.0 + (horizontalCompression * 3.0); + float verticalSoftnessBoost = 1.0 + (verticalCompression * 3.5); + float verticalLod = smoothstep( + verticalLodLevelStart, + verticalLodLevelEnd, + verticalCompression + ); + float verticalLineFine = renderGridLine( + wrapped.x, + antiAliasWidth.x, + verticalSoftnessBoost + ); + float verticalWrappedLod = mod( + patternPosition.x + gridLineAlignmentOffsetPx, + u_cell_size * 2.0 + ); + float verticalLineCoarse = renderGridLine( + verticalWrappedLod, + antiAliasWidth.x, + verticalSoftnessBoost + verticalLod + ); + float verticalLine = max( + verticalLineFine * (1.0 - verticalLod), + verticalLineCoarse * verticalLod + ); + float horizontalLodLevelOne = 1.0 - smoothstep( + horizontalLodLevelOneStartPx, + horizontalLodLevelOneEndPx, + horizontalCellSpanPx + ); + float horizontalLodLevelTwo = 1.0 - smoothstep( + horizontalLodLevelTwoStartPx, + horizontalLodLevelTwoEndPx, + horizontalCellSpanPx + ); + float horizontalLineFine = renderGridLine( + wrapped.y, + antiAliasWidth.y, + horizontalSoftnessBoost + ); + float horizontalWrappedLodOne = mod( + patternPosition.y + gridLineAlignmentOffsetPx, + u_cell_size * 2.0 + ); + float horizontalWrappedLodTwo = mod( + patternPosition.y + gridLineAlignmentOffsetPx, + u_cell_size * 4.0 + ); + float horizontalLineCoarse = renderGridLine( + horizontalWrappedLodOne, + antiAliasWidth.y, + horizontalSoftnessBoost + horizontalLodLevelOne + ); + float horizontalLineExtraCoarse = renderGridLine( + horizontalWrappedLodTwo, + antiAliasWidth.y, + horizontalSoftnessBoost + horizontalLodLevelOne + horizontalLodLevelTwo + ); + float horizontalLineReduced = max( + horizontalLineFine * (1.0 - horizontalLodLevelOne), + horizontalLineCoarse * horizontalLodLevelOne + ); + float horizontalLine = max( + horizontalLineReduced * (1.0 - horizontalLodLevelTwo), + horizontalLineExtraCoarse * horizontalLodLevelTwo + ); + float line = max(verticalLine, horizontalLine); + + if (line <= 0.001) { + discard; + } + + float alpha = u_line_color.a * line; + gl_FragColor = vec4(u_line_color.rgb * alpha, alpha); +} +` + +interface RetroGridProps extends HTMLAttributes { + /** + * Additional CSS classes to apply to the grid container + */ + className?: string + /** + * Rotation angle of the grid in degrees + * @default 65 + */ + angle?: number + /** + * Grid cell size in pixels + * @default 60 + */ + cellSize?: number + /** + * Grid opacity value between 0 and 1 + * @default 0.5 + */ + opacity?: number + /** + * Grid line color in light mode + * @default "gray" + */ + lightLineColor?: string + /** + * Grid line color in dark mode + * @default "gray" + */ + darkLineColor?: string +} + +interface ProgramInfo { + attributeLocation: number + program: WebGLProgram + uniforms: { + angle: WebGLUniformLocation + cellSize: WebGLUniformLocation + containerSize: WebGLUniformLocation + devicePixelRatio: WebGLUniformLocation + lineColor: WebGLUniformLocation + time: WebGLUniformLocation + viewportSize: WebGLUniformLocation + } +} + +let colorResolveContext: CanvasRenderingContext2D | null | undefined + +function clamp(value: number, min: number, max: number) { + return Math.min(Math.max(value, min), max) +} + +function createShader(gl: WebGLRenderingContext, type: number, source: string) { + const shader = gl.createShader(type) + + if (!shader) { + return null + } + + gl.shaderSource(shader, source) + gl.compileShader(shader) + + if (gl.getShaderParameter(shader, gl.COMPILE_STATUS)) { + return shader + } + + gl.deleteShader(shader) + return null +} + +function createProgram(gl: WebGLRenderingContext) { + const vertexShader = createShader(gl, gl.VERTEX_SHADER, VERTEX_SHADER_SOURCE) + const fragmentShader = createShader( + gl, + gl.FRAGMENT_SHADER, + FRAGMENT_SHADER_SOURCE + ) + + if (!vertexShader || !fragmentShader) { + return null + } + + const program = gl.createProgram() + + if (!program) { + gl.deleteShader(vertexShader) + gl.deleteShader(fragmentShader) + return null + } + + gl.attachShader(program, vertexShader) + gl.attachShader(program, fragmentShader) + gl.linkProgram(program) + gl.deleteShader(vertexShader) + gl.deleteShader(fragmentShader) + + if (gl.getProgramParameter(program, gl.LINK_STATUS)) { + return program + } + + gl.deleteProgram(program) + return null +} + +function getProgramInfo( + gl: WebGLRenderingContext, + program: WebGLProgram +): ProgramInfo | null { + const attributeLocation = gl.getAttribLocation(program, "a_position") + const angle = gl.getUniformLocation(program, "u_angle") + const cellSize = gl.getUniformLocation(program, "u_cell_size") + const containerSize = gl.getUniformLocation(program, "u_container_size") + const devicePixelRatio = gl.getUniformLocation( + program, + "u_device_pixel_ratio" + ) + const lineColor = gl.getUniformLocation(program, "u_line_color") + const time = gl.getUniformLocation(program, "u_time") + const viewportSize = gl.getUniformLocation(program, "u_viewport_size") + + if ( + attributeLocation < 0 || + !angle || + !cellSize || + !containerSize || + !devicePixelRatio || + !lineColor || + !time || + !viewportSize + ) { + return null + } + + return { + attributeLocation, + program, + uniforms: { + angle, + cellSize, + containerSize, + devicePixelRatio, + lineColor, + time, + viewportSize, + }, + } +} + +function isDarkMode(colorScheme: MediaQueryList) { + const root = document.documentElement + + if (root.classList.contains("dark")) { + return true + } + + if (root.classList.contains("light")) { + return false + } + + return colorScheme.matches +} + +function getColorResolveContext() { + if (colorResolveContext !== undefined) { + return colorResolveContext + } + + const canvas = document.createElement("canvas") + canvas.width = 1 + canvas.height = 1 + colorResolveContext = canvas.getContext("2d", { + willReadFrequently: true, + }) + + return colorResolveContext +} + +function resolveLineColor(color: string, element: HTMLElement) { + const resolver = document.createElement("span") + resolver.style.color = color + resolver.style.opacity = "0" + resolver.style.pointerEvents = "none" + resolver.style.position = "absolute" + element.appendChild(resolver) + + const resolvedColor = getComputedStyle(resolver).color + resolver.remove() + const context = getColorResolveContext() + + if (!context) { + return new Float32Array([0.5, 0.5, 0.5, 1]) + } + + context.clearRect(0, 0, 1, 1) + context.fillStyle = resolvedColor + context.fillRect(0, 0, 1, 1) + const pixel = context.getImageData(0, 0, 1, 1).data + + return new Float32Array([ + pixel[0] / 255, + pixel[1] / 255, + pixel[2] / 255, + pixel[3] / 255, + ]) +} + +function createFallbackGridStyle( + cellSize: number, + lineColor: string +): CSSProperties { + return { + animation: `${FALLBACK_ANIMATION_NAME} ${ANIMATION_DURATION_SECONDS}s linear infinite`, + backgroundImage: `linear-gradient(to right, ${lineColor} 1px, transparent 0), linear-gradient(to bottom, ${lineColor} 1px, transparent 0)`, + backgroundRepeat: "repeat", + backgroundSize: `${cellSize}px ${cellSize}px`, + transform: "translateY(-50%)", + } +} + +export function RetroGrid({ + className, + angle = 65, + cellSize = 60, + opacity = 0.5, + lightLineColor = "gray", + darkLineColor = "gray", + style, + ...props +}: RetroGridProps) { + const canvasRef = useRef(null) + const containerRef = useRef(null) + const [isWebGlReady, setIsWebGlReady] = useState(false) + const angleRef = useRef(angle) + const cellSizeRef = useRef(cellSize) + const darkLineColorRef = useRef(darkLineColor) + const lightLineColorRef = useRef(lightLineColor) + const syncSceneRef = useRef<(() => void) | null>(null) + + useEffect(() => { + angleRef.current = angle + cellSizeRef.current = cellSize + darkLineColorRef.current = darkLineColor + lightLineColorRef.current = lightLineColor + syncSceneRef.current?.() + }, [angle, cellSize, darkLineColor, lightLineColor]) + + useEffect(() => { + const canvas = canvasRef.current + const container = containerRef.current + + if (!canvas || !container) { + return + } + + const reducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)") + const colorScheme = window.matchMedia("(prefers-color-scheme: dark)") + + let animationFrameId: number | null = null + let currentWidth = 0 + let currentHeight = 0 + let currentDevicePixelRatio = 1 + let gl: WebGLRenderingContext | null = null + let isVisible = true + let isContextLost = false + let lineColor = resolveLineColor(lightLineColorRef.current, container) + let positionBuffer: WebGLBuffer | null = null + let programInfo: ProgramInfo | null = null + + const getContext = () => { + const nextGl = canvas.getContext("webgl", { + alpha: true, + antialias: true, + premultipliedAlpha: true, + }) + + if (!nextGl || !nextGl.getExtension("OES_standard_derivatives")) { + return null + } + + return nextGl + } + + const releasePipeline = (shouldDeleteResources: boolean) => { + if (shouldDeleteResources && gl) { + if (positionBuffer) { + gl.deleteBuffer(positionBuffer) + } + + if (programInfo) { + gl.deleteProgram(programInfo.program) + } + } + + positionBuffer = null + programInfo = null + + if (shouldDeleteResources) { + gl = null + } + } + + const initializePipeline = () => { + const nextGl = getContext() + + if (!nextGl) { + releasePipeline(false) + return false + } + + gl = nextGl + releasePipeline(true) + gl = nextGl + + const program = createProgram(nextGl) + + if (!program) { + return false + } + + const nextProgramInfo = getProgramInfo(nextGl, program) + + if (!nextProgramInfo) { + nextGl.deleteProgram(program) + return false + } + + const nextPositionBuffer = nextGl.createBuffer() + + if (!nextPositionBuffer) { + nextGl.deleteProgram(program) + return false + } + + nextGl.bindBuffer(nextGl.ARRAY_BUFFER, nextPositionBuffer) + nextGl.bufferData( + nextGl.ARRAY_BUFFER, + new Float32Array([-1, -1, 3, -1, -1, 3]), + nextGl.STATIC_DRAW + ) + + positionBuffer = nextPositionBuffer + programInfo = nextProgramInfo + + return true + } + + const updateLineColor = () => { + const activeColor = isDarkMode(colorScheme) + ? darkLineColorRef.current + : lightLineColorRef.current + lineColor = resolveLineColor(activeColor, container) + } + + const resizeCanvas = () => { + currentWidth = Math.floor(container.clientWidth) + currentHeight = Math.floor(container.clientHeight) + + if (currentWidth === 0 || currentHeight === 0 || !gl) { + return + } + + currentDevicePixelRatio = Math.min( + window.devicePixelRatio || 1, + MAX_DEVICE_PIXEL_RATIO + ) + + canvas.width = Math.floor(currentWidth * currentDevicePixelRatio) + canvas.height = Math.floor(currentHeight * currentDevicePixelRatio) + canvas.style.width = `${currentWidth}px` + canvas.style.height = `${currentHeight}px` + gl.viewport(0, 0, canvas.width, canvas.height) + } + + const draw = (timestamp: number) => { + if ( + currentWidth === 0 || + currentHeight === 0 || + !gl || + !positionBuffer || + !programInfo || + isContextLost + ) { + return + } + + gl.useProgram(programInfo.program) + gl.bindBuffer(gl.ARRAY_BUFFER, positionBuffer) + gl.enableVertexAttribArray(programInfo.attributeLocation) + gl.vertexAttribPointer( + programInfo.attributeLocation, + 2, + gl.FLOAT, + false, + 0, + 0 + ) + gl.clearColor(0, 0, 0, 0) + gl.clear(gl.COLOR_BUFFER_BIT) + gl.uniform1f( + programInfo.uniforms.angle, + clamp(angleRef.current, MIN_ANGLE, MAX_ANGLE) + ) + gl.uniform1f( + programInfo.uniforms.cellSize, + Math.max(cellSizeRef.current, 1) + ) + gl.uniform2f( + programInfo.uniforms.containerSize, + currentWidth, + currentHeight + ) + gl.uniform1f( + programInfo.uniforms.devicePixelRatio, + currentDevicePixelRatio + ) + gl.uniform4fv(programInfo.uniforms.lineColor, lineColor) + gl.uniform1f( + programInfo.uniforms.time, + reducedMotion.matches ? 0 : timestamp / 1000 + ) + gl.uniform2f( + programInfo.uniforms.viewportSize, + window.innerWidth, + window.innerHeight + ) + gl.drawArrays(gl.TRIANGLES, 0, 3) + } + + const stopAnimation = () => { + if (animationFrameId !== null) { + cancelAnimationFrame(animationFrameId) + animationFrameId = null + } + } + + const frame = (timestamp: number) => { + draw(timestamp) + + if (!reducedMotion.matches && isVisible) { + animationFrameId = requestAnimationFrame(frame) + return + } + + animationFrameId = null + } + + const syncScene = () => { + if (isContextLost) { + stopAnimation() + setIsWebGlReady(false) + return + } + + if (!gl || !positionBuffer || !programInfo) { + if (!initializePipeline()) { + stopAnimation() + setIsWebGlReady(false) + return + } + } + + resizeCanvas() + + if (currentWidth === 0 || currentHeight === 0) { + stopAnimation() + return + } + + updateLineColor() + draw(performance.now()) + setIsWebGlReady(true) + + if (reducedMotion.matches || !isVisible) { + stopAnimation() + return + } + + if (animationFrameId === null) { + animationFrameId = requestAnimationFrame(frame) + } + } + + syncSceneRef.current = syncScene + + const resizeObserver = new ResizeObserver(() => { + syncScene() + }) + resizeObserver.observe(container) + + const handleWindowResize = () => { + syncScene() + } + + const intersectionObserver = new IntersectionObserver(([entry]) => { + isVisible = entry?.isIntersecting ?? false + + if (isVisible) { + syncScene() + return + } + + stopAnimation() + }) + intersectionObserver.observe(container) + + const themeObserver = new MutationObserver(() => { + syncScene() + }) + themeObserver.observe(document.documentElement, { + attributeFilter: ["class"], + attributes: true, + }) + + const handleMotionChange = () => { + syncScene() + } + + const handleColorSchemeChange = () => { + syncScene() + } + + const handleContextLost = (event: Event) => { + event.preventDefault() + isContextLost = true + stopAnimation() + releasePipeline(false) + setIsWebGlReady(false) + } + + const handleContextRestored = () => { + isContextLost = false + syncScene() + } + + reducedMotion.addEventListener("change", handleMotionChange) + colorScheme.addEventListener("change", handleColorSchemeChange) + window.addEventListener("resize", handleWindowResize) + canvas.addEventListener("webglcontextlost", handleContextLost) + canvas.addEventListener("webglcontextrestored", handleContextRestored) + + syncScene() + + return () => { + stopAnimation() + resizeObserver.disconnect() + intersectionObserver.disconnect() + themeObserver.disconnect() + reducedMotion.removeEventListener("change", handleMotionChange) + colorScheme.removeEventListener("change", handleColorSchemeChange) + window.removeEventListener("resize", handleWindowResize) + canvas.removeEventListener("webglcontextlost", handleContextLost) + canvas.removeEventListener("webglcontextrestored", handleContextRestored) + syncSceneRef.current = null + releasePipeline(!isContextLost) + } + }, []) + + const gridStyles = { + ...style, + opacity, + } as CSSProperties + const normalizedAngle = clamp(angle, MIN_ANGLE, MAX_ANGLE) + const normalizedCellSize = Math.max(cellSize, 1) + const fallbackProjectionStyles = { + perspective: `${PERSPECTIVE_PX}px`, + } as CSSProperties + const fallbackRotationStyles = { + transform: `rotateX(${normalizedAngle}deg)`, + } as CSSProperties + const lightFallbackGridStyles = createFallbackGridStyle( + normalizedCellSize, + lightLineColor + ) + const darkFallbackGridStyles = createFallbackGridStyle( + normalizedCellSize, + darkLineColor + ) + + return ( +
+ + {!isWebGlReady ? ( +
+
+
+
+
+
+ ) : null} + +
+
+ ) +} diff --git a/b/7e530ec32c30fd622814756a82a99606dc963865c7bddfe075bfa8adc003d8bb b/b/7e530ec32c30fd622814756a82a99606dc963865c7bddfe075bfa8adc003d8bb new file mode 100644 index 0000000000000000000000000000000000000000..f93ee396571ebfbec9d79ebb88d1e9e886729bf2 --- /dev/null +++ b/b/7e530ec32c30fd622814756a82a99606dc963865c7bddfe075bfa8adc003d8bb @@ -0,0 +1,51 @@ +var fa=Object.defineProperty;var ia=(e,t)=>{for(var a in t)fa(e,a,{get:t[a],enumerable:!0})};function Ae(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,ye=j,Me=(e,t)=>a=>{var o;if(t?.variants==null)return ye(e,a?.class,a?.className);let{variants:l,defaultVariants:u}=t,r=Object.keys(l).map(f=>{let L=a?.[f],I=u?.[f];if(L===null)return null;let C=Be(L)||Be(I);return l[f][C]}),c=a&&Object.entries(a).reduce((f,L)=>{let[I,C]=L;return C===void 0||(f[I]=C),f},{}),p=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((f,L)=>{let{class:I,className:C,...h}=L;return Object.entries(h).every(y=>{let[w,k]=y;return Array.isArray(k)?k.includes({...u,...c}[w]):{...u,...c}[w]===k})?[...f,I,C]:f},[]);return ye(e,r,p,a?.class,a?.className)};var Y={};ia(Y,{Root:()=>ca,Slot:()=>ca,Slottable:()=>pa,createSlot:()=>Te,createSlottable:()=>Ue});import*as S from"react";import*as De from"react";function Fe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function na(...e){return t=>{let a=!1,o=e.map(l=>{let u=Fe(l,t);return!a&&typeof u=="function"&&(a=!0),u});if(a)return()=>{for(let l=0;l{let{children:l,...u}=a,r=null,c=!1,p=[];ve(l)&&typeof $=="function"&&(l=$(l._payload)),S.Children.forEach(l,C=>{if(xa(C)){c=!0;let h=C,y="child"in h.props?h.props.child:h.props.children;ve(y)&&typeof $=="function"&&(y=$(y._payload)),r=ma(h,y),p.push(r?.props?.children)}else p.push(C)}),r?r=S.cloneElement(r,void 0,p):!c&&S.Children.count(l)===1&&S.isValidElement(l)&&(r=l);let f=r?Ia(r):void 0,L=Re(o,f);if(!r){if(l||l===0)throw new Error(c?Sa(e):ha(e));return l}let I=La(u,r.props??{});return r.type!==S.Fragment&&(I.ref=o?L:f),S.cloneElement(r,I)});return t.displayName=`${e}.Slot`,t}var ca=Te("Slot"),qe=Symbol.for("radix.slottable");function Ue(e){let t=a=>"child"in a?a.children(a.child):a.children;return t.displayName=`${e}.Slottable`,t.__radixId=qe,t}var pa=Ue("Slottable"),ma=(e,t)=>{if("child"in e.props){let a=e.props.child;return S.isValidElement(a)?S.cloneElement(a,void 0,e.props.children(a.props.children)):null}return S.isValidElement(t)?t:null};function La(e,t){let a={...t};for(let o in t){let l=e[o],u=t[o];/^on[A-Z]/.test(o)?l&&u?a[o]=(...c)=>{let p=u(...c);return l(...c),p}:l&&(a[o]=l):o==="style"?a[o]={...l,...u}:o==="className"&&(a[o]=[l,u].filter(Boolean).join(" "))}return{...e,...a}}function Ia(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function xa(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qe}var Ca=Symbol.for("react.lazy");function ve(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ca&&"_payload"in e&&ga(e._payload)}function ga(e){return typeof e=="object"&&e!==null&&"then"in e}var ha=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Sa=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,$=S[" use ".trim().toString()];var wa=(e,t)=>{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),We=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),te="-",Oe=[],ba="arbitrary..",Pa=e=>{let t=Ba(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:r=>{if(r.startsWith("[")&&r.endsWith("]"))return Aa(r);let c=r.split(te),p=c[0]===""&&c.length>1?1:0;return Ne(c,p,t)},getConflictingClassGroupIds:(r,c)=>{if(c){let p=o[r],f=a[r];return p?f?wa(f,p):p:f||Oe}return a[r]||Oe}}},Ne=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let l=e[t],u=a.nextPart.get(l);if(u){let f=Ne(e,t+1,u);if(f)return f}let r=a.validators;if(r===null)return;let c=t===0?e.join(te):e.slice(t).join(te),p=r.length;for(let f=0;fe.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?ba+o:void 0})(),Ba=e=>{let{theme:t,classGroups:a}=e;return ya(a,t)},ya=(e,t)=>{let a=We();for(let o in e){let l=e[o];Le(l,a,o,t)}return a},Le=(e,t,a,o)=>{let l=e.length;for(let u=0;u{if(typeof e=="string"){Fa(e,t,a);return}if(typeof e=="function"){Da(e,t,a,o);return}Ra(e,t,a,o)},Fa=(e,t,a)=>{let o=e===""?t:Xe(t,e);o.classGroupId=a},Da=(e,t,a,o)=>{if(va(e)){Le(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(ka(a,e))},Ra=(e,t,a,o)=>{let l=Object.entries(e),u=l.length;for(let r=0;r{let a=e,o=t.split(te),l=o.length;for(let u=0;u"isThemeGetter"in e&&e.isThemeGetter===!0,Ta=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),l=(u,r)=>{a[u]=r,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(u){let r=a[u];if(r!==void 0)return r;if((r=o[u])!==void 0)return l(u,r),r},set(u,r){u in a?a[u]=r:l(u,r)}}},me="!",He=":",qa=[],Ge=(e,t,a,o,l)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:l}),Ua=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=l=>{let u=[],r=0,c=0,p=0,f,L=l.length;for(let w=0;wp?f-p:void 0;return Ge(u,h,C,y)};if(t){let l=t+He,u=o;o=r=>r.startsWith(l)?u(r.slice(l.length)):Ge(qa,!1,r,void 0,!0)}if(a){let l=o;o=u=>a({className:u,parseClassName:l})}return o},Oa=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],l=[];for(let u=0;u0&&(l.sort(),o.push(...l),l=[]),o.push(r)):l.push(r)}return l.length>0&&(l.sort(),o.push(...l)),o}},Ha=e=>({cache:Ta(e.cacheSize),parseClassName:Ua(e),sortModifiers:Oa(e),postfixLookupClassGroupIds:Ga(e),...Pa(e)}),Ga=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:l,sortModifiers:u,postfixLookupClassGroupIds:r}=t,c=[],p=e.trim().split(za),f="";for(let L=p.length-1;L>=0;L-=1){let I=p[L],{isExternal:C,modifiers:h,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:k}=a(I);if(C){f=I+(f.length>0?" "+f:f);continue}let U=!!k,A;if(U){let D=w.substring(0,k);A=o(D);let i=A&&r[A]?o(w):void 0;i&&i!==A&&(A=i,U=!1)}else A=o(w);if(!A){if(!U){f=I+(f.length>0?" "+f:f);continue}if(A=o(w),!A){f=I+(f.length>0?" "+f:f);continue}U=!1}let N=h.length===0?"":h.length===1?h[0]:u(h).join(":"),z=y?N+me:N,V=z+A;if(c.indexOf(V)>-1)continue;c.push(V);let E=l(A,U);for(let D=0;D0?" "+f:f)}return f},Ea=(...e)=>{let t=0,a,o,l="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,l,u,r=p=>{let f=t.reduce((L,I)=>I(L),e());return a=Ha(f),o=a.cache.get,l=a.cache.set,u=c,c(p)},c=p=>{let f=o(p);if(f)return f;let L=Va(p,a);return l(p,L),L};return u=r,(...p)=>u(Ea(...p))},Na=[],x=e=>{let t=a=>a[e]||Na;return t.isThemeGetter=!0,t},Ze=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Je=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xa=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ka=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Za=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ja=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_a=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,v=e=>Xa.test(e),m=e=>!!e&&!Number.isNaN(Number(e)),F=e=>!!e&&Number.isInteger(Number(e)),pe=e=>e.endsWith("%")&&m(e.slice(0,-1)),R=e=>Ka.test(e),_e=()=>!0,ja=e=>Za.test(e)&&!Ja.test(e),Ie=()=>!1,$a=e=>_a.test(e),Ya=e=>Qa.test(e),et=e=>!d(e)&&!s(e),at=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),tt=e=>T(e,$e,Ie),d=e=>Ze.test(e),H=e=>T(e,Ye,ja),ze=e=>T(e,it,m),ot=e=>T(e,aa,_e),lt=e=>T(e,ea,Ie),Ve=e=>T(e,Qe,Ie),rt=e=>T(e,je,Ya),ee=e=>T(e,ta,$a),s=e=>Je.test(e),X=e=>G(e,Ye),ut=e=>G(e,ea),Ee=e=>G(e,Qe),dt=e=>G(e,$e),st=e=>G(e,je),ae=e=>G(e,ta,!0),ft=e=>G(e,aa,!0),T=(e,t,a)=>{let o=Ze.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},G=(e,t,a=!1)=>{let o=Je.exec(e);return o?o[1]?t(o[1]):a:!1},Qe=e=>e==="position"||e==="percentage",je=e=>e==="image"||e==="url",$e=e=>e==="length"||e==="size"||e==="bg-size",Ye=e=>e==="length",it=e=>e==="number",ea=e=>e==="family-name",aa=e=>e==="number"||e==="weight",ta=e=>e==="shadow";var nt=()=>{let e=x("color"),t=x("font"),a=x("text"),o=x("font-weight"),l=x("tracking"),u=x("leading"),r=x("breakpoint"),c=x("container"),p=x("spacing"),f=x("radius"),L=x("shadow"),I=x("inset-shadow"),C=x("text-shadow"),h=x("drop-shadow"),y=x("blur"),w=x("perspective"),k=x("aspect"),U=x("ease"),A=x("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...z(),s,d],E=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],i=()=>[s,d,p],B=()=>[v,"full","auto",...i()],Ce=()=>[F,"none","subgrid",s,d],ge=()=>["auto",{span:["full",F,s,d]},F,s,d],K=()=>[F,"auto",s,d],he=()=>["auto","min","max","fr",s,d],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...i()],O=()=>[v,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],fe=()=>[v,"screen","full","dvw","lvw","svw","min","max","fit",...i()],ie=()=>[v,"screen","full","lh","dvh","lvh","svh","min","max","fit",...i()],n=()=>[e,s,d],Se=()=>[...z(),Ee,Ve,{position:[s,d]}],we=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ke=()=>["auto","cover","contain",dt,tt,{size:[s,d]}],ne=()=>[pe,X,H],b=()=>["","none","full",f,s,d],P=()=>["",m,X,H],Z=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>[m,pe,Ee,Ve],Pe=()=>["","none",y,s,d],J=()=>["none",m,s,d],_=()=>["none",m,s,d],ce=()=>[m,s,d],Q=()=>[v,"full",...i()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[R],breakpoint:[R],color:[_e],container:[R],"drop-shadow":[R],ease:["in","out","in-out"],font:[et],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[R],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[R],shadow:[R],spacing:["px",m],text:[R],"text-shadow":[R],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",v,d,s,k]}],container:["container"],"container-type":[{"@container":["","normal","size",s,d]}],"container-named":[at],columns:[{columns:[m,d,s,c]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:V()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[F,"auto",s,d]}],basis:[{basis:[v,"full","auto",c,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m,v,"auto","initial","none",d]}],grow:[{grow:["",m,s,d]}],shrink:[{shrink:["",m,s,d]}],order:[{order:[F,"first","last","none",s,d]}],"grid-cols":[{"grid-cols":Ce()}],"col-start-end":[{col:ge()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":Ce()}],"row-start-end":[{row:ge()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:i()}],px:[{px:i()}],py:[{py:i()}],ps:[{ps:i()}],pe:[{pe:i()}],pbs:[{pbs:i()}],pbe:[{pbe:i()}],pt:[{pt:i()}],pr:[{pr:i()}],pb:[{pb:i()}],pl:[{pl:i()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],"inline-size":[{inline:["auto",...fe()]}],"min-inline-size":[{"min-inline":["auto",...fe()]}],"max-inline-size":[{"max-inline":["none",...fe()]}],"block-size":[{block:["auto",...ie()]}],"min-block-size":[{"min-block":["auto",...ie()]}],"max-block-size":[{"max-block":["none",...ie()]}],w:[{w:[c,"screen",...O()]}],"min-w":[{"min-w":[c,"screen","none",...O()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[r]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",a,X,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ft,ot]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pe,d]}],"font-family":[{font:[ut,lt,t]}],"font-features":[{"font-features":[d]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,s,d]}],"line-clamp":[{"line-clamp":[m,"none",s,ze]}],leading:[{leading:[u,...i()]}],"list-image":[{"list-image":["none",s,d]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",s,d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:n()}],"text-color":[{text:n()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[m,"from-font","auto",s,H]}],"text-decoration-color":[{decoration:n()}],"underline-offset":[{"underline-offset":[m,"auto",s,d]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:i()}],"tab-size":[{tab:[F,s,d]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s,d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s,d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Se()}],"bg-repeat":[{bg:we()}],"bg-size":[{bg:ke()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},F,s,d],radial:["",s,d],conic:[F,s,d]},st,rt]}],"bg-color":[{bg:n()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:n()}],"gradient-via":[{via:n()}],"gradient-to":[{to:n()}],rounded:[{rounded:b()}],"rounded-s":[{"rounded-s":b()}],"rounded-e":[{"rounded-e":b()}],"rounded-t":[{"rounded-t":b()}],"rounded-r":[{"rounded-r":b()}],"rounded-b":[{"rounded-b":b()}],"rounded-l":[{"rounded-l":b()}],"rounded-ss":[{"rounded-ss":b()}],"rounded-se":[{"rounded-se":b()}],"rounded-ee":[{"rounded-ee":b()}],"rounded-es":[{"rounded-es":b()}],"rounded-tl":[{"rounded-tl":b()}],"rounded-tr":[{"rounded-tr":b()}],"rounded-br":[{"rounded-br":b()}],"rounded-bl":[{"rounded-bl":b()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:n()}],"border-color-x":[{"border-x":n()}],"border-color-y":[{"border-y":n()}],"border-color-s":[{"border-s":n()}],"border-color-e":[{"border-e":n()}],"border-color-bs":[{"border-bs":n()}],"border-color-be":[{"border-be":n()}],"border-color-t":[{"border-t":n()}],"border-color-r":[{"border-r":n()}],"border-color-b":[{"border-b":n()}],"border-color-l":[{"border-l":n()}],"divide-color":[{divide:n()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m,s,d]}],"outline-w":[{outline:["",m,X,H]}],"outline-color":[{outline:n()}],shadow:[{shadow:["","none",L,ae,ee]}],"shadow-color":[{shadow:n()}],"inset-shadow":[{"inset-shadow":["none",I,ae,ee]}],"inset-shadow-color":[{"inset-shadow":n()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:n()}],"ring-offset-w":[{"ring-offset":[m,H]}],"ring-offset-color":[{"ring-offset":n()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":n()}],"text-shadow":[{"text-shadow":["none",C,ae,ee]}],"text-shadow-color":[{"text-shadow":n()}],opacity:[{opacity:[m,s,d]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[m]}],"mask-image-linear-from-pos":[{"mask-linear-from":g()}],"mask-image-linear-to-pos":[{"mask-linear-to":g()}],"mask-image-linear-from-color":[{"mask-linear-from":n()}],"mask-image-linear-to-color":[{"mask-linear-to":n()}],"mask-image-t-from-pos":[{"mask-t-from":g()}],"mask-image-t-to-pos":[{"mask-t-to":g()}],"mask-image-t-from-color":[{"mask-t-from":n()}],"mask-image-t-to-color":[{"mask-t-to":n()}],"mask-image-r-from-pos":[{"mask-r-from":g()}],"mask-image-r-to-pos":[{"mask-r-to":g()}],"mask-image-r-from-color":[{"mask-r-from":n()}],"mask-image-r-to-color":[{"mask-r-to":n()}],"mask-image-b-from-pos":[{"mask-b-from":g()}],"mask-image-b-to-pos":[{"mask-b-to":g()}],"mask-image-b-from-color":[{"mask-b-from":n()}],"mask-image-b-to-color":[{"mask-b-to":n()}],"mask-image-l-from-pos":[{"mask-l-from":g()}],"mask-image-l-to-pos":[{"mask-l-to":g()}],"mask-image-l-from-color":[{"mask-l-from":n()}],"mask-image-l-to-color":[{"mask-l-to":n()}],"mask-image-x-from-pos":[{"mask-x-from":g()}],"mask-image-x-to-pos":[{"mask-x-to":g()}],"mask-image-x-from-color":[{"mask-x-from":n()}],"mask-image-x-to-color":[{"mask-x-to":n()}],"mask-image-y-from-pos":[{"mask-y-from":g()}],"mask-image-y-to-pos":[{"mask-y-to":g()}],"mask-image-y-from-color":[{"mask-y-from":n()}],"mask-image-y-to-color":[{"mask-y-to":n()}],"mask-image-radial":[{"mask-radial":[s,d]}],"mask-image-radial-from-pos":[{"mask-radial-from":g()}],"mask-image-radial-to-pos":[{"mask-radial-to":g()}],"mask-image-radial-from-color":[{"mask-radial-from":n()}],"mask-image-radial-to-color":[{"mask-radial-to":n()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":z()}],"mask-image-conic-pos":[{"mask-conic":[m]}],"mask-image-conic-from-pos":[{"mask-conic-from":g()}],"mask-image-conic-to-pos":[{"mask-conic-to":g()}],"mask-image-conic-from-color":[{"mask-conic-from":n()}],"mask-image-conic-to-color":[{"mask-conic-to":n()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Se()}],"mask-repeat":[{mask:we()}],"mask-size":[{mask:ke()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",s,d]}],filter:[{filter:["","none",s,d]}],blur:[{blur:Pe()}],brightness:[{brightness:[m,s,d]}],contrast:[{contrast:[m,s,d]}],"drop-shadow":[{"drop-shadow":["","none",h,ae,ee]}],"drop-shadow-color":[{"drop-shadow":n()}],grayscale:[{grayscale:["",m,s,d]}],"hue-rotate":[{"hue-rotate":[m,s,d]}],invert:[{invert:["",m,s,d]}],saturate:[{saturate:[m,s,d]}],sepia:[{sepia:["",m,s,d]}],"backdrop-filter":[{"backdrop-filter":["","none",s,d]}],"backdrop-blur":[{"backdrop-blur":Pe()}],"backdrop-brightness":[{"backdrop-brightness":[m,s,d]}],"backdrop-contrast":[{"backdrop-contrast":[m,s,d]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m,s,d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m,s,d]}],"backdrop-invert":[{"backdrop-invert":["",m,s,d]}],"backdrop-opacity":[{"backdrop-opacity":[m,s,d]}],"backdrop-saturate":[{"backdrop-saturate":[m,s,d]}],"backdrop-sepia":[{"backdrop-sepia":["",m,s,d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":i()}],"border-spacing-x":[{"border-spacing-x":i()}],"border-spacing-y":[{"border-spacing-y":i()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",s,d]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m,"initial",s,d]}],ease:[{ease:["linear","initial",U,s,d]}],delay:[{delay:[m,s,d]}],animate:[{animate:["none",A,s,d]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,s,d]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[s,d,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Q()}],"translate-x":[{"translate-x":Q()}],"translate-y":[{"translate-y":Q()}],"translate-z":[{"translate-z":Q()}],"translate-none":["translate-none"],zoom:[{zoom:[F,s,d]}],accent:[{accent:n()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:n()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",s,d]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":n()}],"scrollbar-track-color":[{"scrollbar-track":n()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":i()}],"scroll-mx":[{"scroll-mx":i()}],"scroll-my":[{"scroll-my":i()}],"scroll-ms":[{"scroll-ms":i()}],"scroll-me":[{"scroll-me":i()}],"scroll-mbs":[{"scroll-mbs":i()}],"scroll-mbe":[{"scroll-mbe":i()}],"scroll-mt":[{"scroll-mt":i()}],"scroll-mr":[{"scroll-mr":i()}],"scroll-mb":[{"scroll-mb":i()}],"scroll-ml":[{"scroll-ml":i()}],"scroll-p":[{"scroll-p":i()}],"scroll-px":[{"scroll-px":i()}],"scroll-py":[{"scroll-py":i()}],"scroll-ps":[{"scroll-ps":i()}],"scroll-pe":[{"scroll-pe":i()}],"scroll-pbs":[{"scroll-pbs":i()}],"scroll-pbe":[{"scroll-pbe":i()}],"scroll-pt":[{"scroll-pt":i()}],"scroll-pr":[{"scroll-pr":i()}],"scroll-pb":[{"scroll-pb":i()}],"scroll-pl":[{"scroll-pl":i()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",s,d]}],fill:[{fill:["none",...n()]}],"stroke-w":[{stroke:[m,X,H,ze]}],stroke:[{stroke:["none",...n()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var oa=Wa(nt);function oe(...e){return oa(j(e))}import{jsx as pt}from"react/jsx-runtime";var ct=Me("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function le({className:e,variant:t="default",asChild:a=!1,...o}){let l=a?Y.Root:"span";return pt(l,{"data-slot":"badge","data-variant":t,className:oe(ct({variant:t}),e),...o})}import{forwardRef as Lt,createElement as It}from"react";var la=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),re=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as mt,createElement as ua}from"react";var ra={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var da=mt(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:l="",children:u,iconNode:r,...c},p)=>ua("svg",{ref:p,...ra,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:re("lucide",l),...c},[...r.map(([f,L])=>ua(f,L)),...Array.isArray(u)?u:[u]]));var sa=(e,t)=>{let a=Lt(({className:o,...l},u)=>It(da,{ref:u,iconNode:t,className:re(`lucide-${la(e)}`,o),...l}));return a.displayName=`${e}`,a};var q=sa("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);import{jsx as xt}from"react/jsx-runtime";function ue({className:e,...t}){return xt(q,{role:"status","aria-label":"Loading",className:oe("size-4 animate-spin",e),...t})}import{jsx as xe,jsxs as de}from"react/jsx-runtime";function Ct(){return de("div",{className:"flex items-center gap-4 [--radius:1.2rem]",children:[de(le,{children:[xe(ue,{}),"Syncing"]}),de(le,{variant:"secondary",children:[xe(ue,{}),"Updating"]}),de(le,{variant:"outline",children:[xe(ue,{}),"Processing"]})]})}export{Ct as default}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/loader-circle.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/7e64e42a03aae2b794cc12945866d47f2832b7d36aa68f5b824feb07b99f7c9d b/b/7e64e42a03aae2b794cc12945866d47f2832b7d36aa68f5b824feb07b99f7c9d new file mode 100644 index 0000000000000000000000000000000000000000..480d63832dfcefcb4dc66965be4101125dca1a46 --- /dev/null +++ b/b/7e64e42a03aae2b794cc12945866d47f2832b7d36aa68f5b824feb07b99f7c9d @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.toggle-group-outline", + "name": "toggle-group-outline", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/toggle-group-outline.json", + "did": "did:holo:sha256:ce375cf41a1125f1b6f29eb36eb1a8da6fbfe418e6fd1530dc79e6f22fe4f39d", + "import": "holo://sha256:f9c0e8226aecbd320fd791f12c298f7ca8d25f908dd81d9913e283d7eadd48bd", + "integrity": "sha256-+cDoImrsvTIP15HxLCmPfKjSX5CN2B2ZE+KD1+rdSL0=", + "kappa": "sha256:ce375cf41a1125f1b6f29eb36eb1a8da6fbfe418e6fd1530dc79e6f22fe4f39d", + "moduleKappa": "sha256:f9c0e8226aecbd320fd791f12c298f7ca8d25f908dd81d9913e283d7eadd48bd", + "renderExport": "default", + "source": "registry/new-york-v4/examples/toggle-group-outline.tsx", + "module": "vendor/components/toggle-group-outline.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/7e8619577045f8535dcbcf93bd8be3c72a4e657de3605709f364a17ccd9d22d9 b/b/7e8619577045f8535dcbcf93bd8be3c72a4e657de3605709f364a17ccd9d22d9 new file mode 100644 index 0000000000000000000000000000000000000000..f92faebdb4070ec91bd4819ed5d08a800cf23d60 --- /dev/null +++ b/b/7e8619577045f8535dcbcf93bd8be3c72a4e657de3605709f364a17ccd9d22d9 @@ -0,0 +1,168 @@ +// Mamba-1 end-to-end test. Build a tiny mamba with random F32 weights, forge -> +// synthesize -> run forward, and compare logits to an INDEPENDENT float64 reference +// that reproduces mamba.cpp / mamba-base.cpp build_mamba_layer: RMSNorm -> in_proj +// split [x|z] -> causal conv1d(+bias,silu) with recurrent conv state -> x_proj +// (Δt,B,C) -> dt_proj+bias -> selective scan with recurrent ssm state -> D skip -> +// z-gate(silu) -> out_proj -> residual; no attention, no FFN. A 4-token prompt +// exercises the recurrent state across positions (conv window fill + scan carry). +// Plus a structural check against a real mamba header when present. + +import assert from "node:assert"; +import { existsSync, openSync, readSync, closeSync } from "node:fs"; +import { forgeGguf } from "./gguf-forge.mjs"; +import { synthesizeGraph } from "./gguf-forge-graph.mjs"; +import { forward } from "./gguf-forge-exec.mjs"; +import { GGML } from "./gguf-forge-dequant.mjs"; +import { parseGgufHeader } from "../qvac-ingest.mjs"; + +let pass = 0, fail = 0; +const t = (name, fn) => { try { fn(); pass++; console.log(" ok " + name); } catch (e) { fail++; console.log("FAIL " + name + "\n " + e.message); } }; + +// ── tiny dims ── +const D = 8, DI = 16, DS = 4, DC = 4, DT = 3, VOCAB = 5, NL = 2, EPS = 1e-6; + +function prng(seed) { let s = seed >>> 0; return () => { s = (s * 1664525 + 1013904223) >>> 0; return (s / 4294967296) * 2 - 1; }; } +const r = prng(99); +const randF = (n, scale = 0.3) => { const a = new Float32Array(n); for (let i = 0; i < n; i++) a[i] = r() * scale; return a; }; +const normW = (n) => randF(n, 1).map((x) => Math.abs(x) + 0.5); + +const L = []; +for (let il = 0; il < NL; il++) L.push({ + attn_norm: normW(D), ssm_in: randF(2 * DI * D), conv1d: randF(DI * DC), conv1d_b: randF(DI), + ssm_x: randF((DT + 2 * DS) * DI), ssm_dt: randF(DI * DT), ssm_dt_b: randF(DI), + ssm_a: randF(DS * DI, 1).map((x) => -(Math.abs(x) + 0.1)), ssm_d: randF(DI), ssm_out: randF(D * DI), +}); +const w = { tok_embd: randF(VOCAB * D), output_norm: normW(D) }; + +function buildGguf(meta, tensors) { + const ALIGN = 32; let off = 0; + const infos = tensors.map((t) => { const o = off; off = Math.ceil((o + t.bytes.length) / ALIGN) * ALIGN; return { ...t, offset: o }; }); + let parts = [], len = 0; const push = (b) => { parts.push(b); len += b.length; }; + const u32 = (v) => { const b = new Uint8Array(4); new DataView(b.buffer).setUint32(0, v >>> 0, true); push(b); }; + const f32 = (v) => { const b = new Uint8Array(4); new DataView(b.buffer).setFloat32(0, v, true); push(b); }; + const u64 = (v) => { const b = new Uint8Array(8); const dv = new DataView(b.buffer); dv.setUint32(0, v >>> 0, true); dv.setUint32(4, Math.floor(v / 4294967296), true); push(b); }; + const str = (s) => { const e = new TextEncoder().encode(s); u64(e.length); push(e); }; + push(new TextEncoder().encode("GGUF")); u32(3); u64(tensors.length); u64(Object.keys(meta).length); + for (const [k, val] of Object.entries(meta)) { str(k); if (typeof val === "string") { u32(8); str(val); } else if (Number.isInteger(val) && val >= 0 && val < 4294967296) { u32(4); u32(val); } else { u32(6); f32(val); } } + for (const ti of infos) { str(ti.name); u32(ti.dims.length); for (const d of ti.dims) u64(d); u32(ti.type); u64(ti.offset); } + if (len % ALIGN) push(new Uint8Array(ALIGN - (len % ALIGN))); + const dataStart = len; + for (const ti of infos) { while (len < dataStart + ti.offset) push(new Uint8Array(1)); push(ti.bytes); } + const out = new Uint8Array(len); let o = 0; for (const p of parts) { out.set(p, o); o += p.length; } return out; +} +const f32bytes = (arr) => new Uint8Array(arr.buffer.slice(arr.byteOffset, arr.byteOffset + arr.byteLength)); + +const meta = { + "general.architecture": "mamba", "mamba.block_count": NL, "mamba.embedding_length": D, + "mamba.ssm.conv_kernel": DC, "mamba.ssm.inner_size": DI, "mamba.ssm.state_size": DS, "mamba.ssm.time_step_rank": DT, + "mamba.attention.layer_norm_rms_epsilon": EPS, +}; +const tensors = [["token_embd.weight", [D, VOCAB], w.tok_embd], ["output_norm.weight", [D], w.output_norm]]; +for (let il = 0; il < NL; il++) { const p = `blk.${il}.`, x = L[il]; tensors.push( + [p + "attn_norm.weight", [D], x.attn_norm], [p + "ssm_in.weight", [D, 2 * DI], x.ssm_in], + [p + "ssm_conv1d.weight", [DC, DI], x.conv1d], [p + "ssm_conv1d.bias", [DI], x.conv1d_b], + [p + "ssm_x.weight", [DI, DT + 2 * DS], x.ssm_x], [p + "ssm_dt.weight", [DT, DI], x.ssm_dt], [p + "ssm_dt.bias", [DI], x.ssm_dt_b], + [p + "ssm_a", [DS, DI], x.ssm_a], [p + "ssm_d", [DI], x.ssm_d], [p + "ssm_out.weight", [DI, D], x.ssm_out]); +} +const ggufTensors = tensors.map(([name, dims, arr]) => ({ name, type: GGML.F32, dims, bytes: f32bytes(arr) })); + +// ── independent float64 reference forward (reproduces build_mamba_layer) ── +function matvecRef(W, x, K, N) { const y = new Float64Array(N); for (let n = 0; n < N; n++) { let s = 0; for (let k = 0; k < K; k++) s += W[n * K + k] * x[k]; y[n] = s; } return y; } +function rmsRef(x, wt) { let s = 0; for (const v of x) s += v * v; const sc = 1 / Math.sqrt(s / x.length + EPS); return Array.from(x, (v, i) => v * sc * wt[i]); } +const siluRef = (v) => v / (1 + Math.exp(-v)); +const softplusRef = (v) => (v > 20 ? v : Math.log1p(Math.exp(v))); +const addV = (a, b) => a.map((x, i) => x + b[i]); + +function referenceForward(tokens) { + const H = tokens.map((tk) => Array.from(w.tok_embd.slice(tk * D, tk * D + D))); + const convSt = Array.from({ length: NL }, () => new Float64Array(DI * (DC - 1))); + const ssmSt = Array.from({ length: NL }, () => new Float64Array(DI * DS)); + for (let pos = 0; pos < tokens.length; pos++) { + let h = H[pos]; + for (let il = 0; il < NL; il++) { + const x = L[il], cs = convSt[il], ss = ssmSt[il]; + const xn = rmsRef(h, x.attn_norm); + const xz = matvecRef(x.ssm_in, xn, D, 2 * DI); + const xin = xz.slice(0, DI), z = xz.slice(DI, 2 * DI); + // causal conv1d (+bias, silu), slide conv state + const xc = new Array(DI); + for (let ch = 0; ch < DI; ch++) { + const base = ch * (DC - 1), wb = ch * DC; let s = 0; + for (let k = 0; k < DC - 1; k++) s += cs[base + k] * x.conv1d[wb + k]; + s += xin[ch] * x.conv1d[wb + DC - 1]; + xc[ch] = siluRef(s + x.conv1d_b[ch]); + for (let k = 0; k < DC - 2; k++) cs[base + k] = cs[base + k + 1]; + cs[base + DC - 2] = xin[ch]; + } + const xdb = matvecRef(x.ssm_x, xc, DI, DT + 2 * DS); + const B = xdb.slice(DT, DT + DS), C = xdb.slice(DT + DS, DT + 2 * DS); + const dt = addV(Array.from(matvecRef(x.ssm_dt, xdb.slice(0, DT), DT, DI)), Array.from(x.ssm_dt_b)); + const y = new Array(DI); + for (let ch = 0; ch < DI; ch++) { + const dtsp = softplusRef(dt[ch]), xdt = xc[ch] * dtsp, sb = ch * DS; let acc = 0; + for (let i0 = 0; i0 < DS; i0++) { const st = ss[sb + i0] * Math.exp(dtsp * x.ssm_a[sb + i0]) + B[i0] * xdt; acc += st * C[i0]; ss[sb + i0] = st; } + y[ch] = siluRef(z[ch]) * (acc + xc[ch] * x.ssm_d[ch]); + } + h = addV(Array.from(matvecRef(x.ssm_out, y, DI, D)), h); // out_proj + residual + H[pos] = h; + } + } + const fn = rmsRef(H[tokens.length - 1], w.output_norm); + return Array.from(matvecRef(w.tok_embd, fn, D, VOCAB)); // tied lm_head +} + +const f = forgeGguf(buildGguf(meta, ggufTensors)); +const graph = synthesizeGraph(f.plan); +const store = { get: (hex) => f.blocks.get(hex) }; +const tokens = [3, 1, 4, 2]; + +t("graph is family=ssm, correct op count + all weights resolve", () => { + assert.strictEqual(graph.family, "ssm", graph.reason); + assert.strictEqual(graph.stats.n_layer, NL); + assert.deepStrictEqual([graph.stats.d_conv, graph.stats.d_inner, graph.stats.d_state, graph.stats.dt_rank], [DC, DI, DS, DT]); + assert.strictEqual(graph.stats.ops, 3 + 3 * NL); // embd + (norm+mamba+add)*L + result_norm + lm_head + assert.strictEqual(graph.stats.weightsUsed, tensors.length); + const hist = {}; for (const o of graph.ops) hist[o.op] = (hist[o.op] || 0) + 1; + assert.strictEqual(hist.mamba, NL); +}); + +t("executor logits match independent f64 reference (mamba forward, recurrent state)", () => { + const got = forward(f.plan, graph, store, tokens), ref = referenceForward(tokens); + assert.strictEqual(got.length, VOCAB); + for (let i = 0; i < VOCAB; i++) { + const rel = Math.abs(got[i] - ref[i]) / (Math.abs(ref[i]) + 1e-4); + assert.ok(rel < 5e-3, `logit ${i}: got ${got[i]} ref ${ref[i]} rel ${rel}`); + } + console.log(` logits: [${Array.from(got).map((x) => x.toFixed(4)).join(", ")}]`); +}); + +t("argmax (greedy token) matches reference", () => { + const am = (a) => a.indexOf(Math.max(...a)); + assert.strictEqual(am(Array.from(forward(f.plan, graph, store, tokens))), am(referenceForward(tokens))); +}); + +t("executor is deterministic", () => { + const a = forward(f.plan, graph, store, tokens), b = forward(f.plan, graph, store, tokens); + for (let i = 0; i < VOCAB; i++) assert.strictEqual(a[i], b[i]); +}); + +// ── structural check against a real mamba header (skipped if absent) ── +const REALS = [ + "C:/Users/pavel/.lmstudio/models/lmstudio-community/mamba-2.8b-GGUF/mamba-2.8b-Q4_K_M.gguf", + `${process.env.HOME || ""}/.cache/lm-studio/models/mamba.gguf`, +]; +t("real mamba header: family=ssm, every tensor resolves, ssm hparams correct", () => { + const path = REALS.find((p) => existsSync(p)); + if (!path) { console.log(" (skipped — no mamba model present)"); return; } + const fd = openSync(path, "r"); const buf = Buffer.alloc(64 * 1024 * 1024); readSync(fd, buf, 0, buf.length, 0); closeSync(fd); + const h = parseGgufHeader(new Uint8Array(buf)); + const plan = { arch: h.meta["general.architecture"], meta: h.meta, + tensors: h.tensors.map((x) => ({ name: x.name, dims: x.dims, type: x.ggmlType, typeName: String(x.ggmlType), kappa: "sha256:" + "0".repeat(64) })) }; + const g = synthesizeGraph(plan); + assert.strictEqual(g.family, "ssm", g.reason); + assert.strictEqual(g.stats.weightsUsed, h.tensors.length, "every tensor referenced"); + console.log(` ${plan.arch}: ${g.stats.n_layer}L d_inner=${g.stats.d_inner} d_state=${g.stats.d_state} d_conv=${g.stats.d_conv}, ${g.stats.weightsUsed}/${h.tensors.length} tensors`); +}); + +console.log(`\n${pass} passed, ${fail} failed`); +process.exit(fail ? 1 : 0); diff --git a/b/7eb1c553d98e3051cc249c3cca0f88e6f569becfdf9674316f138f3d10a1dbda b/b/7eb1c553d98e3051cc249c3cca0f88e6f569becfdf9674316f138f3d10a1dbda new file mode 100644 index 0000000000000000000000000000000000000000..054fcba1cc8266e097ad072e1e0f02cdecacb1f4 --- /dev/null +++ b/b/7eb1c553d98e3051cc249c3cca0f88e6f569becfdf9674316f138f3d10a1dbda @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.typography-lead", + "name": "typography-lead", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/typography-lead.json", + "did": "did:holo:sha256:1f26283c4d3995918549f577daa45e2ef645f4ebd1a771c2eab6e1dbc18c1c03", + "import": "holo://sha256:44793260d35c516f523e9628f7271d66788dc56e69a0cd20d0e9aebfa8d7d240", + "integrity": "sha256-RHkyYNNcUW9SPpYo9ycdZniNxW5poM0g0Omuv6jX0kA=", + "kappa": "sha256:1f26283c4d3995918549f577daa45e2ef645f4ebd1a771c2eab6e1dbc18c1c03", + "moduleKappa": "sha256:44793260d35c516f523e9628f7271d66788dc56e69a0cd20d0e9aebfa8d7d240", + "renderExport": "default", + "source": "registry/new-york-v4/examples/typography-lead.tsx", + "module": "vendor/components/typography-lead.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/7ebcefa0db306029a6037f2cf631157bc1d6fc18dc9f7275800b8485aaf87af5 b/b/7ebcefa0db306029a6037f2cf631157bc1d6fc18dc9f7275800b8485aaf87af5 new file mode 100644 index 0000000000000000000000000000000000000000..0bc0469ef5cd80d4eb1c67c19aac8a4583b341fb --- /dev/null +++ b/b/7ebcefa0db306029a6037f2cf631157bc1d6fc18dc9f7275800b8485aaf87af5 @@ -0,0 +1,84 @@ +// holo-voice-wake.mjs — W0: "Hey Q" wake word, built on the STREAMING EAR's partials (no separate KWS model, no +// download — the wake faculty IS the ear, so it's on-device + private by construction). Watches each rolling +// partial for the wake phrase, matched PHONETICALLY (the ASR renders "hey q" as "hey cue"/"hey queue"/"hey kew"), +// fires ONCE per utterance, strips the phrase, and hands the TRAILING command straight to the conversation — so +// "Hey Q, what's the weather?" is one breath, never "say it twice". +// +// Pure + DOM-free; onWake injected. The phrase is just text, so ANY wake word works with no model swap. + +// tokenize keeping ORIGINAL tokens (casing/apostrophes for the downstream command) aligned 1:1 with a normalized +// form used only for matching — so the trailing command is returned verbatim ("what's the weather?", not "what s …"). +function tokenize(text) { + const orig = String(text || "").trim().split(/\s+/).filter(Boolean); + const n = orig.map((w) => w.toLowerCase().replace(/[^a-z0-9']/g, "")); + return { orig, n }; +} +const editDist = (a, b) => { const m = a.length, n = b.length, d = Array.from({ length: m + 1 }, (_, i) => [i, ...Array(n).fill(0)]); for (let j = 0; j <= n; j++) d[0][j] = j; for (let i = 1; i <= m; i++) for (let j = 1; j <= n; j++) d[i][j] = Math.min(d[i - 1][j] + 1, d[i][j - 1] + 1, d[i - 1][j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1)); return d[m][n]; }; + +// homophone variants for the short keywords the ASR most often mangles (single letters / names). The default +// covers "hey q"; a custom phrase can pass its own `variants` (per-word arrays) or just rely on edit distance. +const DEFAULT_VARIANTS = { + q: ["q", "cue", "queue", "kew", "kyu", "cu", "kue", "qu"], + hey: ["hey", "hay", "hi", "ay"], + ok: ["ok", "okay"], + computer: ["computer"], +}; + +function wordMatches(phraseWord, heard, variants) { + if (heard === phraseWord) return true; + const v = (variants && variants[phraseWord]) || DEFAULT_VARIANTS[phraseWord]; + if (v && v.includes(heard)) return true; + return editDist(heard, phraseWord) <= Math.floor(phraseWord.length * 0.34); // tolerant for longer words only +} + +// makeWakeWord({ phrase, variants, onWake, cooldownMs, scanLead }) → { observe(partialText, atMs), reset(), armed() } +// phrase : the wake phrase, e.g. "hey q" (text — any phrase, no model). +// variants : optional { word: [forms] } overrides/extends the homophone map. +// onWake : ({ at, tail }) — fired ONCE when the phrase is heard; `tail` = the command after the phrase. +// cooldownMs : ignore a re-fire within this window after a turn (debounce the growing-partial repeats / turn tail). +// scanLead : allow the phrase to start within the first N words (leading "um"/"ok" filler). Default 2. +export function makeWakeWord({ phrase = "hey q", variants = null, onWake = () => {}, cooldownMs = 1500, scanLead = 2 } = {}) { + const pw = tokenize(phrase).n; const P = pw.length; + let fired = false, lastWakeAt = -1e9; + + // match the phrase starting at index `i` (over normalized tokens `n`); return the ORIGINAL tail after it, or null. + function matchAt(orig, n, i) { + if (i + P > n.length) return null; + for (let k = 0; k < P; k++) if (!wordMatches(pw[k], n[i + k], variants)) return null; + return orig.slice(i + P).join(" "); + } + + function observe(text, atMs = 0) { + const { orig, n } = tokenize(text); + if (fired) { // already armed: keep returning the growing command tail + for (let i = 0; i <= Math.min(scanLead, n.length - P); i++) { const tail = matchAt(orig, n, i); if (tail != null) return { woke: false, armed: true, tail }; } + return { woke: false, armed: true, tail: orig.join(" ") }; + } + if (atMs - lastWakeAt < cooldownMs) return { woke: false, armed: false }; // debounce + for (let i = 0; i <= Math.min(scanLead, Math.max(0, n.length - P)); i++) { + const tail = matchAt(orig, n, i); + if (tail != null) { fired = true; lastWakeAt = atMs; onWake({ at: atMs, tail }); return { woke: true, armed: true, tail }; } + } + return { woke: false, armed: false }; + } + + return { observe, reset() { fired = false; }, armed: () => fired }; +} + +// makeEchoSafeWake — W2: wrap a wake detector so Q can NEVER wake itself. While Q is speaking, its own TTS leaks +// into the mic and the ear transcribes it — if Q's response happens to contain the wake phrase, that must NOT +// self-wake. Gate: while speaking, only forward a partial to the wake detector when the mic energy passes the +// echo threshold (a genuine user talking OVER Q — the same gate barge-in uses). Q's own echo is below it → no +// self-wake. A real user over the top wakes (and the barge path stops Q). Off-speech, the wake detector is normal. +// observe(partialText, { micLevel, qSpeaking, qOutputLevel, atMs }) → { woke, armed?, tail?, suppressed? } +export function makeEchoSafeWake({ wake, bargeFloor = 0.05, bargeEcho = 0.4, echoGuard = null } = {}) { + if (!wake) throw new Error("makeEchoSafeWake needs a wake (makeWakeWord)"); + const isEcho = echoGuard || ((micLevel, qOutputLevel) => micLevel < Math.max(bargeFloor, (qOutputLevel || 0) * bargeEcho)); + function observe(text, ctx = {}) { + if (ctx.qSpeaking && isEcho(ctx.micLevel == null ? 1 : ctx.micLevel, ctx.qOutputLevel)) return { woke: false, suppressed: true }; + return wake.observe(text, ctx.atMs || 0); + } + return { observe, reset: () => wake.reset(), armed: () => wake.armed() }; +} + +export default { makeWakeWord, makeEchoSafeWake }; diff --git a/b/7ee16de3c3d73e5301f3c8f8f4eff9e5a934a95962ac68cb6a46bd10d38e7102 b/b/7ee16de3c3d73e5301f3c8f8f4eff9e5a934a95962ac68cb6a46bd10d38e7102 new file mode 100644 index 0000000000000000000000000000000000000000..c5d97d40503e5ccce87e5cfa127e6541c327a4d3 --- /dev/null +++ b/b/7ee16de3c3d73e5301f3c8f8f4eff9e5a934a95962ac68cb6a46bd10d38e7102 @@ -0,0 +1 @@ +function xe(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,ke=K,we=(e,t)=>o=>{var r;if(t?.variants==null)return ke(e,o?.class,o?.className);let{variants:i,defaultVariants:m}=t,l=Object.keys(i).map(c=>{let b=o?.[c],g=m?.[c];if(b===null)return null;let z=ye(b)||ye(g);return i[c][z]}),u=o&&Object.entries(o).reduce((c,b)=>{let[g,z]=b;return z===void 0||(c[g]=z),c},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,b)=>{let{class:g,className:z,...S}=b;return Object.entries(S).every(T=>{let[y,k]=T;return Array.isArray(k)?k.includes({...m,...u}[y]):{...m,...u}[y]===k})?[...c,g,z]:c},[]);return ke(e,l,f,o?.class,o?.className)};var $e=(e,t)=>{let o=new Array(e.length+t.length);for(let r=0;r({classGroupId:e,validator:t}),Pe=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),ee="-",ve=[],De="arbitrary..",Ye=e=>{let t=Xe(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return qe(l);let u=l.split(ee),f=u[0]===""&&u.length>1?1:0;return Me(u,f,t)},getConflictingClassGroupIds:(l,u)=>{if(u){let f=r[l],c=o[l];return f?c?$e(c,f):f:c||ve}return o[l]||ve}}},Me=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;let i=e[t],m=o.nextPart.get(i);if(m){let c=Me(e,t+1,m);if(c)return c}let l=o.validators;if(l===null)return;let u=t===0?e.join(ee):e.slice(t).join(ee),f=l.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?De+r:void 0})(),Xe=e=>{let{theme:t,classGroups:o}=e;return He(o,t)},He=(e,t)=>{let o=Pe();for(let r in e){let i=e[r];le(i,o,r,t)}return o},le=(e,t,o,r)=>{let i=e.length;for(let m=0;m{if(typeof e=="string"){Ke(e,t,o);return}if(typeof e=="function"){Qe(e,t,o,r);return}Ze(e,t,o,r)},Ke=(e,t,o)=>{let r=e===""?t:Re(t,e);r.classGroupId=o},Qe=(e,t,o,r)=>{if(eo(e)){le(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ue(o,e))},Ze=(e,t,o,r)=>{let i=Object.entries(e),m=i.length;for(let l=0;l{let o=e,r=t.split(ee),i=r.length;for(let m=0;m"isThemeGetter"in e&&e.isThemeGetter===!0,oo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null),i=(m,l)=>{o[m]=l,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(m){let l=o[m];if(l!==void 0)return l;if((l=r[m])!==void 0)return i(m,l),l},set(m,l){m in o?o[m]=l:i(m,l)}}},ie="!",ze=":",to=[],Ce=(e,t,o,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:i}),ro=e=>{let{prefix:t,experimentalParseClassName:o}=e,r=i=>{let m=[],l=0,u=0,f=0,c,b=i.length;for(let y=0;yf?c-f:void 0;return Ce(m,S,z,T)};if(t){let i=t+ze,m=r;r=l=>l.startsWith(i)?m(l.slice(i.length)):Ce(to,!1,l,void 0,!0)}if(o){let i=r;r=m=>o({className:m,parseClassName:i})}return r},so=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{let r=[],i=[];for(let m=0;m0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},no=e=>({cache:oo(e.cacheSize),parseClassName:ro(e),sortModifiers:so(e),postfixLookupClassGroupIds:ao(e),...Ye(e)}),ao=e=>{let t=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let r=0;r{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:m,postfixLookupClassGroupIds:l}=t,u=[],f=e.trim().split(io),c="";for(let b=f.length-1;b>=0;b-=1){let g=f[b],{isExternal:z,modifiers:S,hasImportantModifier:T,baseClassName:y,maybePostfixModifierPosition:k}=o(g);if(z){c=g+(c.length>0?" "+c:c);continue}let V=!!k,C;if(V){let M=y.substring(0,k);C=r(M);let a=C&&l[C]?r(y):void 0;a&&a!==C&&(C=a,V=!1)}else C=r(y);if(!C){if(!V){c=g+(c.length>0?" "+c:c);continue}if(C=r(y),!C){c=g+(c.length>0?" "+c:c);continue}V=!1}let U=S.length===0?"":S.length===1?S[0]:m(S).join(":"),_=T?U+ie:U,W=_+C;if(u.indexOf(W)>-1)continue;u.push(W);let F=i(C,V);for(let M=0;M0?" "+c:c)}return c},co=(...e)=>{let t=0,o,r,i="";for(;t{if(typeof e=="string")return e;let t,o="";for(let r=0;r{let o,r,i,m,l=f=>{let c=t.reduce((b,g)=>g(b),e());return o=no(c),r=o.cache.get,i=o.cache.set,m=u,u(f)},u=f=>{let c=r(f);if(c)return c;let b=lo(f,o);return i(f,b),b};return m=l,(...f)=>m(co(...f))},po=[],h=e=>{let t=o=>o[e]||po;return t.isThemeGetter=!0,t},Ne=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Te=/^\((?:(\w[\w-]*):)?(.+)\)$/i,uo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,fo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,go=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ho=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>uo.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),P=e=>!!e&&Number.isInteger(Number(e)),ae=e=>e.endsWith("%")&&p(e.slice(0,-1)),R=e=>fo.test(e),Ve=()=>!0,yo=e=>bo.test(e)&&!go.test(e),ce=()=>!1,ko=e=>ho.test(e),wo=e=>xo.test(e),vo=e=>!s(e)&&!n(e),zo=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Co=e=>N(e,je,ce),s=e=>Ne.test(e),E=e=>N(e,Oe,yo),Ae=e=>N(e,No,p),Ao=e=>N(e,We,Ve),So=e=>N(e,_e,ce),Se=e=>N(e,Le,ce),Go=e=>N(e,Ee,wo),Q=e=>N(e,Fe,ko),n=e=>Te.test(e),D=e=>j(e,Oe),Po=e=>j(e,_e),Ge=e=>j(e,Le),Mo=e=>j(e,je),Ro=e=>j(e,Ee),Z=e=>j(e,Fe,!0),Io=e=>j(e,We,!0),N=(e,t,o)=>{let r=Ne.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},j=(e,t,o=!1)=>{let r=Te.exec(e);return r?r[1]?t(r[1]):o:!1},Le=e=>e==="position"||e==="percentage",Ee=e=>e==="image"||e==="url",je=e=>e==="length"||e==="size"||e==="bg-size",Oe=e=>e==="length",No=e=>e==="number",_e=e=>e==="family-name",We=e=>e==="number"||e==="weight",Fe=e=>e==="shadow";var To=()=>{let e=h("color"),t=h("font"),o=h("text"),r=h("font-weight"),i=h("tracking"),m=h("leading"),l=h("breakpoint"),u=h("container"),f=h("spacing"),c=h("radius"),b=h("shadow"),g=h("inset-shadow"),z=h("text-shadow"),S=h("drop-shadow"),T=h("blur"),y=h("perspective"),k=h("aspect"),V=h("ease"),C=h("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],W=()=>[..._(),n,s],F=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],a=()=>[n,s,f],A=()=>[I,"full","auto",...a()],de=()=>[P,"none","subgrid",n,s],me=()=>["auto",{span:["full",P,n,s]},P,n,s],Y=()=>[P,"auto",n,s],pe=()=>["auto","min","max","fr",n,s],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...a()],L=()=>[I,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...a()],te=()=>[I,"screen","full","dvw","lvw","svw","min","max","fit",...a()],re=()=>[I,"screen","full","lh","dvh","lvh","svh","min","max","fit",...a()],d=()=>[e,n,s],ue=()=>[..._(),Ge,Se,{position:[n,s]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],be=()=>["auto","cover","contain",Mo,Co,{size:[n,s]}],se=()=>[ae,D,E],w=()=>["","none","full",c,n,s],v=()=>["",p,D,E],q=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],x=()=>[p,ae,Ge,Se],he=()=>["","none",T,n,s],X=()=>["none",p,n,s],H=()=>["none",p,n,s],ne=()=>[p,n,s],J=()=>[I,"full",...a()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[R],breakpoint:[R],color:[Ve],container:[R],"drop-shadow":[R],ease:["in","out","in-out"],font:[vo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[R],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[R],shadow:[R],spacing:["px",p],text:[R],"text-shadow":[R],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",I,s,n,k]}],container:["container"],"container-type":[{"@container":["","normal","size",n,s]}],"container-named":[zo],columns:[{columns:[p,s,n,u]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:W()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{"inset-s":A(),start:A()}],end:[{"inset-e":A(),end:A()}],"inset-bs":[{"inset-bs":A()}],"inset-be":[{"inset-be":A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[P,"auto",n,s]}],basis:[{basis:[I,"full","auto",u,...a()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,I,"auto","initial","none",s]}],grow:[{grow:["",p,n,s]}],shrink:[{shrink:["",p,n,s]}],order:[{order:[P,"first","last","none",n,s]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pe()}],"auto-rows":[{"auto-rows":pe()}],gap:[{gap:a()}],"gap-x":[{"gap-x":a()}],"gap-y":[{"gap-y":a()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:a()}],px:[{px:a()}],py:[{py:a()}],ps:[{ps:a()}],pe:[{pe:a()}],pbs:[{pbs:a()}],pbe:[{pbe:a()}],pt:[{pt:a()}],pr:[{pr:a()}],pb:[{pb:a()}],pl:[{pl:a()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mbs:[{mbs:G()}],mbe:[{mbe:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":a()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":a()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...te()]}],"min-inline-size":[{"min-inline":["auto",...te()]}],"max-inline-size":[{"max-inline":["none",...te()]}],"block-size":[{block:["auto",...re()]}],"min-block-size":[{"min-block":["auto",...re()]}],"max-block-size":[{"max-block":["none",...re()]}],w:[{w:[u,"screen",...L()]}],"min-w":[{"min-w":[u,"screen","none",...L()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",o,D,E]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Io,Ao]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ae,s]}],"font-family":[{font:[Po,So,t]}],"font-features":[{"font-features":[s]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,n,s]}],"line-clamp":[{"line-clamp":[p,"none",n,Ae]}],leading:[{leading:[m,...a()]}],"list-image":[{"list-image":["none",n,s]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",n,s]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:d()}],"text-color":[{text:d()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",n,E]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[p,"auto",n,s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:a()}],"tab-size":[{tab:[P,n,s]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",n,s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",n,s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ue()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:be()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},P,n,s],radial:["",n,s],conic:[P,n,s]},Ro,Go]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:w()}],"rounded-s":[{"rounded-s":w()}],"rounded-e":[{"rounded-e":w()}],"rounded-t":[{"rounded-t":w()}],"rounded-r":[{"rounded-r":w()}],"rounded-b":[{"rounded-b":w()}],"rounded-l":[{"rounded-l":w()}],"rounded-ss":[{"rounded-ss":w()}],"rounded-se":[{"rounded-se":w()}],"rounded-ee":[{"rounded-ee":w()}],"rounded-es":[{"rounded-es":w()}],"rounded-tl":[{"rounded-tl":w()}],"rounded-tr":[{"rounded-tr":w()}],"rounded-br":[{"rounded-br":w()}],"rounded-bl":[{"rounded-bl":w()}],"border-w":[{border:v()}],"border-w-x":[{"border-x":v()}],"border-w-y":[{"border-y":v()}],"border-w-s":[{"border-s":v()}],"border-w-e":[{"border-e":v()}],"border-w-bs":[{"border-bs":v()}],"border-w-be":[{"border-be":v()}],"border-w-t":[{"border-t":v()}],"border-w-r":[{"border-r":v()}],"border-w-b":[{"border-b":v()}],"border-w-l":[{"border-l":v()}],"divide-x":[{"divide-x":v()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":v()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...q(),"hidden","none"]}],"divide-style":[{divide:[...q(),"hidden","none"]}],"border-color":[{border:d()}],"border-color-x":[{"border-x":d()}],"border-color-y":[{"border-y":d()}],"border-color-s":[{"border-s":d()}],"border-color-e":[{"border-e":d()}],"border-color-bs":[{"border-bs":d()}],"border-color-be":[{"border-be":d()}],"border-color-t":[{"border-t":d()}],"border-color-r":[{"border-r":d()}],"border-color-b":[{"border-b":d()}],"border-color-l":[{"border-l":d()}],"divide-color":[{divide:d()}],"outline-style":[{outline:[...q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,n,s]}],"outline-w":[{outline:["",p,D,E]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",b,Z,Q]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",g,Z,Q]}],"inset-shadow-color":[{"inset-shadow":d()}],"ring-w":[{ring:v()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[p,E]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":v()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",z,Z,Q]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[p,n,s]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":x()}],"mask-image-linear-to-pos":[{"mask-linear-to":x()}],"mask-image-linear-from-color":[{"mask-linear-from":d()}],"mask-image-linear-to-color":[{"mask-linear-to":d()}],"mask-image-t-from-pos":[{"mask-t-from":x()}],"mask-image-t-to-pos":[{"mask-t-to":x()}],"mask-image-t-from-color":[{"mask-t-from":d()}],"mask-image-t-to-color":[{"mask-t-to":d()}],"mask-image-r-from-pos":[{"mask-r-from":x()}],"mask-image-r-to-pos":[{"mask-r-to":x()}],"mask-image-r-from-color":[{"mask-r-from":d()}],"mask-image-r-to-color":[{"mask-r-to":d()}],"mask-image-b-from-pos":[{"mask-b-from":x()}],"mask-image-b-to-pos":[{"mask-b-to":x()}],"mask-image-b-from-color":[{"mask-b-from":d()}],"mask-image-b-to-color":[{"mask-b-to":d()}],"mask-image-l-from-pos":[{"mask-l-from":x()}],"mask-image-l-to-pos":[{"mask-l-to":x()}],"mask-image-l-from-color":[{"mask-l-from":d()}],"mask-image-l-to-color":[{"mask-l-to":d()}],"mask-image-x-from-pos":[{"mask-x-from":x()}],"mask-image-x-to-pos":[{"mask-x-to":x()}],"mask-image-x-from-color":[{"mask-x-from":d()}],"mask-image-x-to-color":[{"mask-x-to":d()}],"mask-image-y-from-pos":[{"mask-y-from":x()}],"mask-image-y-to-pos":[{"mask-y-to":x()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[n,s]}],"mask-image-radial-from-pos":[{"mask-radial-from":x()}],"mask-image-radial-to-pos":[{"mask-radial-to":x()}],"mask-image-radial-from-color":[{"mask-radial-from":d()}],"mask-image-radial-to-color":[{"mask-radial-to":d()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":x()}],"mask-image-conic-to-pos":[{"mask-conic-to":x()}],"mask-image-conic-from-color":[{"mask-conic-from":d()}],"mask-image-conic-to-color":[{"mask-conic-to":d()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ue()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:be()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",n,s]}],filter:[{filter:["","none",n,s]}],blur:[{blur:he()}],brightness:[{brightness:[p,n,s]}],contrast:[{contrast:[p,n,s]}],"drop-shadow":[{"drop-shadow":["","none",S,Z,Q]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",p,n,s]}],"hue-rotate":[{"hue-rotate":[p,n,s]}],invert:[{invert:["",p,n,s]}],saturate:[{saturate:[p,n,s]}],sepia:[{sepia:["",p,n,s]}],"backdrop-filter":[{"backdrop-filter":["","none",n,s]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[p,n,s]}],"backdrop-contrast":[{"backdrop-contrast":[p,n,s]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,n,s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,n,s]}],"backdrop-invert":[{"backdrop-invert":["",p,n,s]}],"backdrop-opacity":[{"backdrop-opacity":[p,n,s]}],"backdrop-saturate":[{"backdrop-saturate":[p,n,s]}],"backdrop-sepia":[{"backdrop-sepia":["",p,n,s]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":a()}],"border-spacing-x":[{"border-spacing-x":a()}],"border-spacing-y":[{"border-spacing-y":a()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",n,s]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",n,s]}],ease:[{ease:["linear","initial",V,n,s]}],delay:[{delay:[p,n,s]}],animate:[{animate:["none",C,n,s]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,n,s]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:ne()}],"skew-x":[{"skew-x":ne()}],"skew-y":[{"skew-y":ne()}],transform:[{transform:[n,s,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],zoom:[{zoom:[P,n,s]}],accent:[{accent:d()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:d()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",n,s]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":d()}],"scrollbar-track-color":[{"scrollbar-track":d()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":a()}],"scroll-mx":[{"scroll-mx":a()}],"scroll-my":[{"scroll-my":a()}],"scroll-ms":[{"scroll-ms":a()}],"scroll-me":[{"scroll-me":a()}],"scroll-mbs":[{"scroll-mbs":a()}],"scroll-mbe":[{"scroll-mbe":a()}],"scroll-mt":[{"scroll-mt":a()}],"scroll-mr":[{"scroll-mr":a()}],"scroll-mb":[{"scroll-mb":a()}],"scroll-ml":[{"scroll-ml":a()}],"scroll-p":[{"scroll-p":a()}],"scroll-px":[{"scroll-px":a()}],"scroll-py":[{"scroll-py":a()}],"scroll-ps":[{"scroll-ps":a()}],"scroll-pe":[{"scroll-pe":a()}],"scroll-pbs":[{"scroll-pbs":a()}],"scroll-pbe":[{"scroll-pbe":a()}],"scroll-pt":[{"scroll-pt":a()}],"scroll-pr":[{"scroll-pr":a()}],"scroll-pb":[{"scroll-pb":a()}],"scroll-pl":[{"scroll-pl":a()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",n,s]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[p,D,E,Ae]}],stroke:[{stroke:["none",...d()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Be=mo(To);function O(...e){return Be(K(e))}import{jsx as $}from"react/jsx-runtime";function Uo({className:e,...t}){return $("div",{"data-slot":"empty",className:O("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12",e),...t})}function Do({className:e,...t}){return $("div",{"data-slot":"empty-header",className:O("flex max-w-sm flex-col items-center gap-2 text-center",e),...t})}var Vo=we("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function Yo({className:e,variant:t="default",...o}){return $("div",{"data-slot":"empty-icon","data-variant":t,className:O(Vo({variant:t,className:e})),...o})}function qo({className:e,...t}){return $("div",{"data-slot":"empty-title",className:O("text-lg font-medium tracking-tight",e),...t})}function Xo({className:e,...t}){return $("div",{"data-slot":"empty-description",className:O("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...t})}function Ho({className:e,...t}){return $("div",{"data-slot":"empty-content",className:O("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",e),...t})}export{Uo as Empty,Ho as EmptyContent,Xo as EmptyDescription,Do as EmptyHeader,Yo as EmptyMedia,qo as EmptyTitle}; diff --git a/b/7ef7c27c5e1302f62fb0d4dca0988546bc6600abb18d7313c2076fb9b1bdcb5e b/b/7ef7c27c5e1302f62fb0d4dca0988546bc6600abb18d7313c2076fb9b1bdcb5e new file mode 100644 index 0000000000000000000000000000000000000000..accc44cf8ab8b3259a525ed3f2dd4fa0c2b83601 --- /dev/null +++ b/b/7ef7c27c5e1302f62fb0d4dca0988546bc6600abb18d7313c2076fb9b1bdcb5e @@ -0,0 +1,87 @@ +// holo-parakeet-ear.mjs — production adapter exposing the κ-native Parakeet-TDT-0.6B streaming ASR to Q's voice +// stack, conforming EXACTLY to the holo-voice-asr.mjs knativeEar seam (so holo-voice-asr drives it unchanged): +// createWhisperEar({ holoUrl, upgradeUrl, kappa, release, upgradeKappa, upgradeRelease, language, … }) +// → { load(progressCb), transcribe(pcm16k, opts) -> { text, … }, info() } +// Mirrors holo-moonshine-ear.mjs. The encoder weights stream from the encoder .holo BY κ (streamHolo: Range → +// release → κ-route → OPFS), the decoder (joint) streams from the joint .holo BY κ, decode is κ-native pure-JS. +// The mel front-end (nemo128) is the one external piece (onnxruntime-web) and is injected as `toFeatures`. +// +// EXTRA knativeEar fields this ear understands (passed through cfg.knativeEar in holo-voice.js): +// jointUrl/jointKappa/jointRelease — the joint .holo (defaults beside holoUrl) +// rescaleUrl/rescaleBinUrl/vocabUrl — the small encoder rescale + SentencePiece vocab (default beside holoUrl) +// toFeatures(pcm) -> { features, T } — mel+stem front-end; until wired, transcribe(audio) throws and +// holo-voice-asr's own fallback path (Moonshine/Whisper) handles audio. +// +// `deps` (last arg) is injectable for headless witnessing: { openStream, fetchBytes, hasWebGPU }. Production +// defaults: openStream=streamHolo, fetchBytes=fetch→bytes, hasWebGPU=navigator.gpu probe. +import { streamHolo } from "./holo-whisper-stream.mjs"; +import { createParakeetASR } from "./holo-parakeet-asr.mjs"; +import { makeMelStemFrontend } from "./holo-parakeet-frontend.mjs"; +import { createParakeetStream } from "./holo-parakeet-stream.mjs"; +import { makeEndpoint } from "./holo-voice-endpoint.mjs"; + +// a trivial content-addressed memo for the default endpoint (identical partial text ⇒ no re-predict). Production +// can inject the real O(1) holo-compute-memo + turn-detector via cfg.endpoint instead. +const trivialMemo = () => ({ _c: new Map(), async compute(tag, key, fn) { const k = tag + "|" + key; if (this._c.has(k)) return { bytes: this._c.get(k), hit: true }; const b = await fn(); this._c.set(k, b); return { bytes: b, hit: false }; } }); + +const dirOf = (u) => { const i = String(u).lastIndexOf("/"); return i >= 0 ? String(u).slice(0, i + 1) : ""; }; + +async function defaultFetchBytes(url) { const r = await fetch(url); if (!r.ok) throw new Error("fetch " + url + " " + r.status); return new Uint8Array(await r.arrayBuffer()); } +async function defaultHasWebGPU() { try { return !!(globalThis.navigator?.gpu && (await navigator.gpu.requestAdapter())); } catch (e) { return false; } } + +export function createWhisperEar(cfg = {}, deps = {}) { + const openStream = deps.openStream || ((url, o) => streamHolo(url, o)); + const fetchBytes = deps.fetchBytes || defaultFetchBytes; + const hasWebGPU = deps.hasWebGPU || defaultHasWebGPU; + const base = dirOf(cfg.holoUrl || ""); + const jointUrl = cfg.jointUrl || (base + "parakeet-tdt-0.6b-v2-joint.holo"); + const rescaleUrl = cfg.rescaleUrl || (base + "parakeet-encoder-rescale.json"); + const rescaleBinUrl = cfg.rescaleBinUrl || (base + "parakeet-encoder-rescale.bin"); + const vocabUrl = cfg.vocabUrl || (base + "parakeet-vocab.txt"); + const nemoUrl = ("nemoUrl" in cfg) ? cfg.nemoUrl : (base + "parakeet-nemo128.onnx"); // null disables the mel+stem front-end + let asr = null, tier = "0.6b", backend = "cpu", ready = false; + + return { + async load(progress) { + const webgpu = await hasWebGPU(); + backend = webgpu ? "gpu" : "cpu"; // GPU path = the proven WGSL encoder; CPU = headless/fallback + const encoderStream = await openStream(cfg.holoUrl, { kappa: cfg.kappa, release: cfg.release || "" }); + const jointStream = await openStream(jointUrl, { kappa: cfg.jointKappa, release: cfg.jointRelease || "" }); + const rescale = JSON.parse(new TextDecoder().decode(await fetchBytes(rescaleUrl))); + const rescaleBin = await fetchBytes(rescaleBinUrl); + const vocab = new TextDecoder().decode(await fetchBytes(vocabUrl)).split("\n").map((l) => l.replace(/\s+\d+$/, "")); + // audio front-end (mel+stem). Injected toFeatures wins; else build mel(nemo128, ort-web) → κ-native stem + // (the stem κs live in the encoder .holo, so reuse encoderStream.getBody). The stem is validated to the + // real pre_encode output (cosine 0.9987). ort-web is the one external runtime; mel is the labeled piece. + let toFeatures = cfg.toFeatures || deps.toFeatures || null; + if (!toFeatures && nemoUrl) { + try { toFeatures = makeMelStemFrontend({ getWeight: (k) => encoderStream.getBody(k), rescale, rescaleBin, nemoUrl, ort: deps.ort || null, backend }); } + catch (e) { try { console.warn("[parakeet ear] mel+stem front-end unavailable:", e && e.message || e); } catch (_) {} } + } + asr = await createParakeetASR({ encoderStream, jointStream, rescale, rescaleBin, vocab, toFeatures, backend }); + ready = true; + try { progress && progress({ phase: "ready", engine: "parakeet-κ", backend, tier }); } catch (e) {} + return true; + }, + // knativeEar contract: transcribe(pcm) → { text, … }. Full audio path needs the mel+stem front-end. + async transcribe(audio, opts = {}) { + if (!asr) await this.load(); + const r = await asr.transcribeAudio(audio, opts); // throws if toFeatures (mel+stem) not wired + return { text: r.text, ids: r.ids, ms: r.ms, tier, backend }; + }, + // direct features path (the κ-native core, no mel front-end) — used by witnesses + callers that already have + // acoustic features. transcribe(features[T*1024], T) → { text, … }. + async transcribeFeatures(features, T) { if (!asr) await this.load(); const r = await asr.transcribe(features, T); return { text: r.text, ids: r.ids, ms: r.ms, tier, backend }; }, + + // STREAMING surface (Arc B): live mic → growing EXACT partials → instant final on MEANING. feed(pcm,atMs) as + // audio arrives, poll(atMs) on a timer, end() at the VAD/turn boundary. The semantic endpoint (injected + // cfg.endpoint, or a default heuristic one) fires ~120ms after the utterance reads done and vetoes mid-thought. + // The heavy work happens DURING speech; the final reuses the last partial ⇒ ~0ms perceived after you stop. + stream({ onPartial = () => {}, onFinal = () => {}, endpoint = null, cadenceMs = 500 } = {}) { + const ep = endpoint || cfg.endpoint || makeEndpoint({ predict: async () => null, memo: trivialMemo(), earlyMs: 120, floorMs: 550 }); + return createParakeetStream({ transcribe: async (pcm) => { if (!asr) await this.load(); return asr.transcribeAudio(pcm); }, endpoint: ep, onPartial, onFinal, cadenceMs }); + }, + info: () => ({ engine: "parakeet-κ", ready, backend, tier, holoUrl: cfg.holoUrl, jointUrl, kappa: cfg.kappa }), + }; +} +export default createWhisperEar; diff --git a/b/7f0e7ae2d260d288634152afa17778c566dd011c50242aca93db24da4990e45a b/b/7f0e7ae2d260d288634152afa17778c566dd011c50242aca93db24da4990e45a new file mode 100644 index 0000000000000000000000000000000000000000..f1c6e53372da0414312e64369de0368ca1fbad0e --- /dev/null +++ b/b/7f0e7ae2d260d288634152afa17778c566dd011c50242aca93db24da4990e45a @@ -0,0 +1 @@ +export default {".dock":{"@layer daisyui.l1.l2.l3":{"position":"fixed","right":"calc(0.25rem * 0)","bottom":"calc(0.25rem * 0)","left":"calc(0.25rem * 0)","z-index":1,"display":"flex","width":"100%","flex-direction":"row","align-items":"center","justify-content":"space-around","background-color":"var(--color-base-100)","padding":"calc(0.25rem * 2)","color":"currentcolor","border-top":"0.5px solid color-mix(in oklab, var(--color-base-content) 5%, #0000)","height":["4rem","calc(4rem + env(safe-area-inset-bottom))"],"padding-bottom":"env(safe-area-inset-bottom)","> *":{"position":"relative","margin-bottom":"calc(0.25rem * 2)","display":"flex","height":"100%","max-width":"calc(0.25rem * 32)","flex-shrink":1,"flex-basis":"100%","cursor":"pointer","flex-direction":"column","align-items":"center","justify-content":"center","gap":"1px","border-radius":"var(--radius-box)","background-color":"transparent","transition":"opacity 0.2s ease-out","@media (hover: hover)":{"&:hover":{"opacity":"80%"}},"&[aria-disabled=\"true\"], &[disabled]":{"&, &:hover":{"pointer-events":"none","color":"color-mix(in oklab, var(--color-base-content) 10%, transparent)","opacity":"100%"}},".dock-label":{"font-size":"0.6875rem"},"&:after":{"content":"\"\"","position":"absolute","height":"calc(0.25rem * 1)","width":"calc(0.25rem * 6)","border-radius":"calc(infinity * 1px)","background-color":"transparent","bottom":"0.2rem","border-top":"3px solid transparent","transition":"background-color 0.1s ease-out, text-color 0.1s ease-out, width 0.1s ease-out"}}}},".dock-active":{"@layer daisyui.l1.l2":{"&:after":{"width":"calc(0.25rem * 10)","background-color":"currentcolor","color":"currentcolor"}}},".dock-xs":{"@layer daisyui.l1.l2":{"height":["3rem","calc(3rem + env(safe-area-inset-bottom))"],".dock-active":{"&:after":{"bottom":"-0.1rem"}},".dock-label":{"font-size":"0.625rem"}}},".dock-sm":{"@layer daisyui.l1.l2":{"height":["calc(0.25rem * 14)","3.5rem","calc(3.5rem + env(safe-area-inset-bottom))"],".dock-active":{"&:after":{"bottom":"-0.1rem"}},".dock-label":{"font-size":"0.625rem"}}},".dock-md":{"@layer daisyui.l1.l2":{"height":["4rem","calc(4rem + env(safe-area-inset-bottom))"],".dock-label":{"font-size":"0.6875rem"}}},".dock-lg":{"@layer daisyui.l1.l2":{"height":["4.5rem","calc(4.5rem + env(safe-area-inset-bottom))"],".dock-active":{"&:after":{"bottom":"0.4rem"}},".dock-label":{"font-size":"0.6875rem"}}},".dock-xl":{"@layer daisyui.l1.l2":{"height":["5rem","calc(5rem + env(safe-area-inset-bottom))"],".dock-active":{"&:after":{"bottom":"0.4rem"}},".dock-label":{"font-size":"0.75rem"}}}}; \ No newline at end of file diff --git a/b/7f156a842f39b67c777393add8fcb4e4d6f4a48f60dad200886f201f51abe68c b/b/7f156a842f39b67c777393add8fcb4e4d6f4a48f60dad200886f201f51abe68c new file mode 100644 index 0000000000000000000000000000000000000000..e5b28ef227bc31380e7868144529b5e0a3e2918c --- /dev/null +++ b/b/7f156a842f39b67c777393add8fcb4e4d6f4a48f60dad200886f201f51abe68c @@ -0,0 +1,35 @@ +"use client" + +import { useState } from "react" + +import { + Field, + FieldDescription, + FieldTitle, +} from "@/registry/new-york-v4/ui/field" +import { Slider } from "@/registry/new-york-v4/ui/slider" + +export default function FieldSlider() { + const [value, setValue] = useState([200, 800]) + return ( +
+ + Price Range + + Set your budget range ($ + {value[0]} -{" "} + {value[1]}). + + + +
+ ) +} diff --git a/b/7f3399686bd8522e467759a93261b3c3b19332caf6a242eedc333ce9a5ce1889 b/b/7f3399686bd8522e467759a93261b3c3b19332caf6a242eedc333ce9a5ce1889 new file mode 100644 index 0000000000000000000000000000000000000000..e38a492f2ce57172e282f56a5fce90b876a66511 --- /dev/null +++ b/b/7f3399686bd8522e467759a93261b3c3b19332caf6a242eedc333ce9a5ce1889 @@ -0,0 +1,56 @@ +import * as React from "react" +import { ScrollArea as ScrollAreaPrimitive } from "radix-ui" + +import { cn } from "@/lib/utils" + +function ScrollArea({ + className, + children, + ...props +}: React.ComponentProps) { + return ( + + + {children} + + + + + ) +} + +function ScrollBar({ + className, + orientation = "vertical", + ...props +}: React.ComponentProps) { + return ( + + + + ) +} + +export { ScrollArea, ScrollBar } diff --git a/b/7f5f9102ebee5f45184b8d79389490682cdf2a1c38b33a771c924f9444f28ae3 b/b/7f5f9102ebee5f45184b8d79389490682cdf2a1c38b33a771c924f9444f28ae3 new file mode 100644 index 0000000000000000000000000000000000000000..3feeb25b0d4452fb35e57299997b6e089e671460 --- /dev/null +++ b/b/7f5f9102ebee5f45184b8d79389490682cdf2a1c38b33a771c924f9444f28ae3 @@ -0,0 +1,227 @@ +"use client" + +import * as React from "react" +import { CartesianGrid, Line, LineChart, XAxis } from "recharts" + +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + ChartContainer, + ChartTooltip, + ChartTooltipContent, + type ChartConfig, +} from "@/registry/new-york-v4/ui/chart" + +export const description = "An interactive line chart" + +const chartData = [ + { date: "2024-04-01", desktop: 222, mobile: 150 }, + { date: "2024-04-02", desktop: 97, mobile: 180 }, + { date: "2024-04-03", desktop: 167, mobile: 120 }, + { date: "2024-04-04", desktop: 242, mobile: 260 }, + { date: "2024-04-05", desktop: 373, mobile: 290 }, + { date: "2024-04-06", desktop: 301, mobile: 340 }, + { date: "2024-04-07", desktop: 245, mobile: 180 }, + { date: "2024-04-08", desktop: 409, mobile: 320 }, + { date: "2024-04-09", desktop: 59, mobile: 110 }, + { date: "2024-04-10", desktop: 261, mobile: 190 }, + { date: "2024-04-11", desktop: 327, mobile: 350 }, + { date: "2024-04-12", desktop: 292, mobile: 210 }, + { date: "2024-04-13", desktop: 342, mobile: 380 }, + { date: "2024-04-14", desktop: 137, mobile: 220 }, + { date: "2024-04-15", desktop: 120, mobile: 170 }, + { date: "2024-04-16", desktop: 138, mobile: 190 }, + { date: "2024-04-17", desktop: 446, mobile: 360 }, + { date: "2024-04-18", desktop: 364, mobile: 410 }, + { date: "2024-04-19", desktop: 243, mobile: 180 }, + { date: "2024-04-20", desktop: 89, mobile: 150 }, + { date: "2024-04-21", desktop: 137, mobile: 200 }, + { date: "2024-04-22", desktop: 224, mobile: 170 }, + { date: "2024-04-23", desktop: 138, mobile: 230 }, + { date: "2024-04-24", desktop: 387, mobile: 290 }, + { date: "2024-04-25", desktop: 215, mobile: 250 }, + { date: "2024-04-26", desktop: 75, mobile: 130 }, + { date: "2024-04-27", desktop: 383, mobile: 420 }, + { date: "2024-04-28", desktop: 122, mobile: 180 }, + { date: "2024-04-29", desktop: 315, mobile: 240 }, + { date: "2024-04-30", desktop: 454, mobile: 380 }, + { date: "2024-05-01", desktop: 165, mobile: 220 }, + { date: "2024-05-02", desktop: 293, mobile: 310 }, + { date: "2024-05-03", desktop: 247, mobile: 190 }, + { date: "2024-05-04", desktop: 385, mobile: 420 }, + { date: "2024-05-05", desktop: 481, mobile: 390 }, + { date: "2024-05-06", desktop: 498, mobile: 520 }, + { date: "2024-05-07", desktop: 388, mobile: 300 }, + { date: "2024-05-08", desktop: 149, mobile: 210 }, + { date: "2024-05-09", desktop: 227, mobile: 180 }, + { date: "2024-05-10", desktop: 293, mobile: 330 }, + { date: "2024-05-11", desktop: 335, mobile: 270 }, + { date: "2024-05-12", desktop: 197, mobile: 240 }, + { date: "2024-05-13", desktop: 197, mobile: 160 }, + { date: "2024-05-14", desktop: 448, mobile: 490 }, + { date: "2024-05-15", desktop: 473, mobile: 380 }, + { date: "2024-05-16", desktop: 338, mobile: 400 }, + { date: "2024-05-17", desktop: 499, mobile: 420 }, + { date: "2024-05-18", desktop: 315, mobile: 350 }, + { date: "2024-05-19", desktop: 235, mobile: 180 }, + { date: "2024-05-20", desktop: 177, mobile: 230 }, + { date: "2024-05-21", desktop: 82, mobile: 140 }, + { date: "2024-05-22", desktop: 81, mobile: 120 }, + { date: "2024-05-23", desktop: 252, mobile: 290 }, + { date: "2024-05-24", desktop: 294, mobile: 220 }, + { date: "2024-05-25", desktop: 201, mobile: 250 }, + { date: "2024-05-26", desktop: 213, mobile: 170 }, + { date: "2024-05-27", desktop: 420, mobile: 460 }, + { date: "2024-05-28", desktop: 233, mobile: 190 }, + { date: "2024-05-29", desktop: 78, mobile: 130 }, + { date: "2024-05-30", desktop: 340, mobile: 280 }, + { date: "2024-05-31", desktop: 178, mobile: 230 }, + { date: "2024-06-01", desktop: 178, mobile: 200 }, + { date: "2024-06-02", desktop: 470, mobile: 410 }, + { date: "2024-06-03", desktop: 103, mobile: 160 }, + { date: "2024-06-04", desktop: 439, mobile: 380 }, + { date: "2024-06-05", desktop: 88, mobile: 140 }, + { date: "2024-06-06", desktop: 294, mobile: 250 }, + { date: "2024-06-07", desktop: 323, mobile: 370 }, + { date: "2024-06-08", desktop: 385, mobile: 320 }, + { date: "2024-06-09", desktop: 438, mobile: 480 }, + { date: "2024-06-10", desktop: 155, mobile: 200 }, + { date: "2024-06-11", desktop: 92, mobile: 150 }, + { date: "2024-06-12", desktop: 492, mobile: 420 }, + { date: "2024-06-13", desktop: 81, mobile: 130 }, + { date: "2024-06-14", desktop: 426, mobile: 380 }, + { date: "2024-06-15", desktop: 307, mobile: 350 }, + { date: "2024-06-16", desktop: 371, mobile: 310 }, + { date: "2024-06-17", desktop: 475, mobile: 520 }, + { date: "2024-06-18", desktop: 107, mobile: 170 }, + { date: "2024-06-19", desktop: 341, mobile: 290 }, + { date: "2024-06-20", desktop: 408, mobile: 450 }, + { date: "2024-06-21", desktop: 169, mobile: 210 }, + { date: "2024-06-22", desktop: 317, mobile: 270 }, + { date: "2024-06-23", desktop: 480, mobile: 530 }, + { date: "2024-06-24", desktop: 132, mobile: 180 }, + { date: "2024-06-25", desktop: 141, mobile: 190 }, + { date: "2024-06-26", desktop: 434, mobile: 380 }, + { date: "2024-06-27", desktop: 448, mobile: 490 }, + { date: "2024-06-28", desktop: 149, mobile: 200 }, + { date: "2024-06-29", desktop: 103, mobile: 160 }, + { date: "2024-06-30", desktop: 446, mobile: 400 }, +] + +const chartConfig = { + views: { + label: "Page Views", + }, + desktop: { + label: "Desktop", + color: "var(--chart-1)", + }, + mobile: { + label: "Mobile", + color: "var(--chart-2)", + }, +} satisfies ChartConfig + +export function ChartLineInteractive() { + const [activeChart, setActiveChart] = + React.useState("desktop") + + const total = React.useMemo( + () => ({ + desktop: chartData.reduce((acc, curr) => acc + curr.desktop, 0), + mobile: chartData.reduce((acc, curr) => acc + curr.mobile, 0), + }), + [] + ) + + return ( + + +
+ Line Chart - Interactive + + Showing total visitors for the last 3 months + +
+
+ {["desktop", "mobile"].map((key) => { + const chart = key as keyof typeof chartConfig + return ( + + ) + })} +
+
+ + + + + { + const date = new Date(value) + return date.toLocaleDateString("en-US", { + month: "short", + day: "numeric", + }) + }} + /> + { + return new Date(value).toLocaleDateString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + }) + }} + /> + } + /> + + + + +
+ ) +} diff --git a/b/7f942a10f50e561c4bba8d3c124cb9f5c79bf7cfeca73df5c5034c86f1f5bf66 b/b/7f942a10f50e561c4bba8d3c124cb9f5c79bf7cfeca73df5c5034c86f1f5bf66 new file mode 100644 index 0000000000000000000000000000000000000000..33d3da3c12dad76d85707c4f66ec36465fc7f6ae --- /dev/null +++ b/b/7f942a10f50e561c4bba8d3c124cb9f5c79bf7cfeca73df5c5034c86f1f5bf66 @@ -0,0 +1 @@ +export default {".cally":{"@layer daisyui.l1.l2.l3":{"font-size":"0.7rem","&::part(container)":{"padding":"0.5rem 1rem","user-select":"none"},"::part(th)":{"font-weight":"normal","block-size":"auto"},"&::part(header)":{"direction":"ltr"},"::part(head)":{"opacity":0.5,"font-size":"0.7rem"},"&::part(button)":{"border-radius":"var(--radius-field)","border":"none","padding":"0.5rem","background":"#0000"},"&::part(button):hover":{"background":"var(--color-base-200)"},"::part(day)":{"border-radius":"var(--radius-field)","font-size":"0.7rem"},"::part(day):hover":{"&:not(selected, today)":{"background":"var(--color-base-200)"}},"::part(button day today)":{"background":"var(--color-primary)","color":"var(--color-primary-content)"},"::part(selected)":{"color":"var(--color-base-100)","background":"var(--color-base-content)","border-radius":"var(--radius-field)"},"::part(range-inner)":{"border-radius":"0"},"::part(range-start)":{"border-start-end-radius":"0","border-end-end-radius":"0"},"::part(range-end)":{"border-start-start-radius":"0","border-end-start-radius":"0"},"::part(range-start range-end)":{"border-radius":"var(--radius-field)"},"calendar-month":{"width":"100%"}}},".react-day-picker":{"@layer daisyui.l1.l2.l3":{"user-select":"none","background-color":"var(--color-base-100)","border-radius":"var(--radius-box)","border":"var(--border) solid var(--color-base-200)","font-size":"0.75rem","display":"inline-block","position":"relative","overflow":"clip","&[dir=\"rtl\"]":{".rdp-nav":{".rdp-chevron":{"transform-origin":"50%","transform":"rotate(180deg)"}}},"*":{"box-sizing":"border-box"},".rdp-day":{"width":"2.25rem","height":"2.25rem","text-align":"center"},".rdp-day_button":{"cursor":"pointer","font":"inherit","color":"inherit","width":"2.25rem","height":"2.25rem","border":"2px solid #0000","border-radius":"var(--radius-field)","background":"0 0","justify-content":"center","align-items":"center","margin":"0","padding":"0","display":"flex","&:disabled":{"cursor":"revert"},"&:hover":{"background-color":"var(--color-base-200)"},"&:disabled:hover, &[aria-disabled=\"true\"]:hover":{"background-color":"transparent","cursor":"not-allowed"}},".rdp-caption_label":{"z-index":1,"white-space":"nowrap","border":"0","align-items":"center","display":"inline-flex","position":"relative"},".rdp-button_next":{"border-radius":"var(--radius-field)","&:hover":{"background-color":"var(--color-base-200)"}},".rdp-button_previous":{"border-radius":"var(--radius-field)","&:hover":{"background-color":"var(--color-base-200)"}},".rdp-button_next, .rdp-button_previous":{"cursor":"pointer","font":"inherit","color":"inherit","appearance":"none","width":"2.25rem","height":"2.25rem","background":"0 0","border":"none","justify-content":"center","align-items":"center","margin":"0","padding":"0","display":"inline-flex","position":"relative","&:disabled, &[aria-disabled=\"true\"]":{"cursor":"revert","opacity":0.5},"&:disabled:hover, &[aria-disabled=\"true\"]:hover":{"background-color":"transparent"}},".rdp-chevron":{"fill":"var(--color-base-content)","width":"1rem","height":"1rem","display":"inline-block"},".rdp-dropdowns":{"align-items":"center","gap":"0.5rem","display":"inline-flex","position":"relative"},".rdp-dropdown":{"z-index":2,"opacity":0,"appearance":"none","cursor":"inherit","line-height":"inherit","border":"none","width":"100%","margin":"0","padding":"0","position":"absolute","inset-block":"0","inset-inline-start":"0","&:focus-visible":{"~ .rdp-caption_label":{"outline":["5px auto highlight","5px auto -webkit-focus-ring-color"]}}},".rdp-dropdown_root":{"align-items":"center","display":"inline-flex","position":"relative","&[data-disabled=\"true\"]":{".rdp-chevron":{"opacity":0.5}}},".rdp-month_caption":{"height":"2.75rem","font-size":"0.75rem","font-weight":"inherit","place-content":"center","display":"flex"},".rdp-months":{"gap":"2rem","flex-wrap":"wrap","max-width":"fit-content","padding":"0.5rem","display":"flex","position":"relative"},".rdp-month_grid":{"border-collapse":"collapse"},".rdp-nav":{"height":"2.75rem","inset-block-start":"0","inset-inline-end":"0","justify-content":"space-between","align-items":"center","width":"100%","padding-inline":"0.5rem","display":"flex","position":"absolute","top":"0.25rem"},".rdp-weekday":{"opacity":0.6,"padding":"0.5rem 0rem","text-align":"center","font-size":"smaller","font-weight":500},".rdp-week_number":{"opacity":0.6,"height":"2.25rem","width":"2.25rem","border":"none","border-radius":"100%","text-align":"center","font-size":"small","font-weight":400},".rdp-today:not(.rdp-outside)":{".rdp-day_button":{"background":"var(--color-primary)","color":"var(--color-primary-content)"}},".rdp-selected":{"font-weight":"inherit","font-size":"0.75rem",".rdp-day_button":{"color":"var(--color-base-100)","background-color":"var(--color-base-content)","border-radius":"var(--radius-field)","border":"none","&:hover":{"background-color":"var(--color-base-content)"}}},".rdp-outside":{"opacity":0.75},".rdp-disabled":{"opacity":0.5},".rdp-hidden":{"visibility":"hidden","color":"var(--color-base-content)"},".rdp-range_start":{".rdp-day_button":{"border-radius":"var(--radius-field) 0 0 var(--radius-field)"}},".rdp-range_start .rdp-day_button":{"background-color":"var(--color-base-content)","color":"var(--color-base-100)"},".rdp-range_middle":{"background-color":"var(--color-base-200)"},".rdp-range_middle .rdp-day_button":{"border":"unset","border-radius":"unset","color":"inherit"},".rdp-range_end":{"color":"var(--color-base-content)",".rdp-day_button":{"border-radius":"0 var(--radius-field) var(--radius-field) 0"}},".rdp-range_end .rdp-day_button":{"background-color":"var(--color-base-content)","color":"var(--color-base-100)"},".rdp-range_start.rdp-range_end":{"background":"revert"},".rdp-focusable":{"cursor":"pointer"},".rdp-footer":{"border-top":"var(--border) solid var(--color-base-200)","padding":"0.5rem"}}},".pika-single":{"@layer daisyui.l1.l2.l3":{"&:is(div)":{"user-select":"none","font-size":"0.75rem","z-index":999,"display":"inline-block","position":"relative","color":"var(--color-base-content)","background-color":"var(--color-base-100)","border-radius":"var(--radius-box)","border":"var(--border) solid var(--color-base-200)","padding":"0.5rem","&:before, &:after":{"content":"\"\"","display":"table"},"&:after":{"clear":"both"},"&.is-hidden":{"display":"none"},"&.is-bound":{"position":"absolute"},".pika-lendar":{"css-float":"left"},".pika-title":{"position":"relative","text-align":"center","select":{"cursor":"pointer","position":"absolute","z-index":999,"margin":"0","left":"0","top":"5px","opacity":0}},".pika-label":{"display":"inline-block","position":"relative","z-index":999,"overflow":"hidden","margin":"0","padding":"5px 3px","background-color":"var(--color-base-100)"},".pika-prev, .pika-next":{"display":"block","cursor":"pointer","position":"absolute","top":"0","outline":"none","border":"0","width":"2.25rem","height":"2.25rem","color":"#0000","font-size":"1.2em","border-radius":"var(--radius-field)","&:hover":{"background-color":"var(--color-base-200)"},"&.is-disabled":{"cursor":"default","opacity":0.2},"&:before":{"display":"inline-block","width":"2.25rem","height":"2.25rem","line-height":2.25,"color":"var(--color-base-content)"}},".pika-prev":{"left":"0","&:before":{"--tw-content":"\"‹\"","content":"var(--tw-content)"}},".pika-next":{"right":"0","&:before":{"--tw-content":"\"›\"","content":"var(--tw-content)"}},".pika-select":{"display":"inline-block"},".pika-table":{"width":"100%","border-collapse":"collapse","border-spacing":"0","border":"0","th, td":{"padding":"0"},"th":{"opacity":0.6,"text-align":"center","width":"2.25rem","height":"2.25rem"}},".pika-button":{"cursor":"pointer","display":"block","outline":"none","border":"0","margin":"0","width":"2.25rem","height":"2.25rem","padding":"5px","text-align":["right","center"]},".pika-week":{"color":"var(--color-base-content)"},".is-today":{".pika-button":{"background":"var(--color-primary)","color":"var(--color-primary-content)"}},".is-selected, .has-event":{".pika-button":{"&, &:hover":{"color":"var(--color-base-100)","background-color":"var(--color-base-content)","border-radius":"var(--radius-field)"}}},".has-event":{".pika-button":{"background":"var(--color-base-primary)"}},".is-disabled, .is-inrange":{".pika-button":{"background":"var(--color-base-primary)"}},".is-startrange":{".pika-button":{"color":"var(--color-base-100)","background":"var(--color-base-content)","border-radius":"var(--radius-field)"}},".is-endrange":{".pika-button":{"color":"var(--color-base-100)","background":"var(--color-base-content)","border-radius":"var(--radius-field)"}},".is-disabled":{".pika-button":{"pointer-events":"none","cursor":"default","color":"var(--color-base-content)","opacity":0.3}},".is-outside-current-month":{".pika-button":{"color":"var(--color-base-content)","opacity":0.3}},".is-selection-disabled":{"pointer-events":"none","cursor":"default"},".pika-button:hover, .pika-row.pick-whole-week:hover .pika-button":{"color":"var(--color-base-content)","background-color":"var(--color-base-200)","border-radius":"var(--radius-field)"},".pika-table abbr":{"text-decoration":"none","font-weight":"normal"}}}}}; \ No newline at end of file diff --git a/b/7fd646dca67a8e4acba92ac322d190ea76a34c9b194e32f228154171fc60d20e b/b/7fd646dca67a8e4acba92ac322d190ea76a34c9b194e32f228154171fc60d20e new file mode 100644 index 0000000000000000000000000000000000000000..d9c11eb38cde9ef0aa024160b3f7397be80d4cc4 --- /dev/null +++ b/b/7fd646dca67a8e4acba92ac322d190ea76a34c9b194e32f228154171fc60d20e @@ -0,0 +1,27 @@ +{ + "id": "org.hologram.ui.daisyui.label", + "name": "daisyui-label", + "tier": "component", + "library": "daisyui", + "category": "Forms & Inputs", + "upstream": "https://cdn.jsdelivr.net/npm/daisyui@5.5.23/components/label.css", + "docs": "https://daisyui.com/components/label/", + "did": "did:holo:sha256:6c5ad2fcc538df2de66c94f0ba813a413470575626263e1d91d0fed24c455d53", + "import": "holo://sha256:6c5ad2fcc538df2de66c94f0ba813a413470575626263e1d91d0fed24c455d53", + "integrity": "sha256-bFrS/MU43y3mbJTwuoE6QTRwV1YmJj4dkdD+0kxFXVM=", + "kappa": "sha256:6c5ad2fcc538df2de66c94f0ba813a413470575626263e1d91d0fed24c455d53", + "moduleKappa": "sha256:6c5ad2fcc538df2de66c94f0ba813a413470575626263e1d91d0fed24c455d53", + "renderExport": null, + "format": "css", + "source": "components/label.css", + "module": "vendor/daisyui/components/label.css", + "exports": [], + "bytes": 12801, + "provenance": { + "package": "daisyui", + "version": "5.5.23", + "integrity": "sha512-xuheNUSL4T6ZVtWXoioqcNkjoyGX85QTDz4HTw2aBPfqk4fuMjax5HDo8qCmpV6M1YN8bGvfx5BpYCoDeRlt+A==", + "file": "components/label.css" + }, + "license": "MIT" +} diff --git a/b/7fe9c4fd23bd6f219d5f21107168cd3ac4f6d9e88b40ebe3525c104780bc89db b/b/7fe9c4fd23bd6f219d5f21107168cd3ac4f6d9e88b40ebe3525c104780bc89db new file mode 100644 index 0000000000000000000000000000000000000000..449f753415719539b1f38b024501c6cfe9416955 --- /dev/null +++ b/b/7fe9c4fd23bd6f219d5f21107168cd3ac4f6d9e88b40ebe3525c104780bc89db @@ -0,0 +1,17 @@ +import { BookmarkIcon } from "lucide-react" + +import { Toggle } from "@/registry/new-york-v4/ui/toggle" + +export default function ToggleDemo() { + return ( + + + Bookmark + + ) +} diff --git a/b/7ff6489df10ee40d906b0322fbb2e6030e96a60f24399b11ea520f09702bbbfb b/b/7ff6489df10ee40d906b0322fbb2e6030e96a60f24399b11ea520f09702bbbfb new file mode 100644 index 0000000000000000000000000000000000000000..4b1b47495c31a695a54bff599d40c6d2c49d9faa --- /dev/null +++ b/b/7ff6489df10ee40d906b0322fbb2e6030e96a60f24399b11ea520f09702bbbfb @@ -0,0 +1,32 @@ +// q-live-sw.js — BOOT-ONCE. The brain's weights are immutable content-addressed κ-blocks (HF …/resolve/main/ +// b/): fetch them from HuggingFace ONCE, cache-first forever, so every visit after the first is +// ~0-network and instant — and a flaky cold-stream can't wedge a returning user. Only immutable, content- +// addressed URLs are cached (the sha256 IS the version), so cache-first is always correct — never stale. +// +// Scope /apps/q/ controls q-live.html; the fetch handler still sees its cross-origin HF requests. claim() on +// activate takes control of the already-open page so the FIRST brain load is intercepted + cached as it streams. +const CACHE = "q-live-kappa-v1"; + +// immutable content-addressed weight blocks + the tokenizer header (both keyed by content). Anything else +// (manifests, app code, the localhost .holo Range reads) passes straight through to the network untouched. +const CACHEABLE = /\/resolve\/main\/b\/|\/b\/sha256_|\/resolve\/main\/tokenizer\.gguf/; + +self.addEventListener("install", () => self.skipWaiting()); +self.addEventListener("activate", (e) => e.waitUntil(self.clients.claim())); + +self.addEventListener("fetch", (e) => { + const url = e.request.url; + if (e.request.method !== "GET" || !CACHEABLE.test(url)) return; // network as normal + e.respondWith((async () => { + const cache = await caches.open(CACHE); + const hit = await cache.match(e.request); + if (hit) return hit; // served from cache — 0 network + let res; + try { res = await fetch(e.request); } catch (err) { // offline + not cached → let it surface + const stale = await cache.match(e.request); if (stale) return stale; throw err; + } + // cache opaque (cross-origin no-cors) and 200 bodies; a κ-block is immutable so this is safe forever. + try { if (res && (res.status === 200 || res.type === "opaque")) await cache.put(e.request, res.clone()); } catch (_) {} + return res; + })()); +}); diff --git a/b/80165c49198f10b2f3aad4c627e2cf3dc707ab863d779a6131d6645f8a861cd1 b/b/80165c49198f10b2f3aad4c627e2cf3dc707ab863d779a6131d6645f8a861cd1 new file mode 100644 index 0000000000000000000000000000000000000000..71ef626a4a8543ae9bc071279b5242b5ebd0c0ab --- /dev/null +++ b/b/80165c49198f10b2f3aad4c627e2cf3dc707ab863d779a6131d6645f8a861cd1 @@ -0,0 +1,7 @@ +import textarea from './object.js'; +import { addPrefix } from '../../functions/addPrefix.js'; + +export default ({ addComponents, prefix = '' }) => { + const prefixedtextarea = addPrefix(textarea, prefix); + addComponents({ ...prefixedtextarea }); +}; diff --git a/b/80235b3abcba833ae912ef0c682f2ffa3162aac12dc2e61691495bdb852e3ff5 b/b/80235b3abcba833ae912ef0c682f2ffa3162aac12dc2e61691495bdb852e3ff5 new file mode 100644 index 0000000000000000000000000000000000000000..e5d58f2bef3749bd728d37e757a88d78fb5670d7 --- /dev/null +++ b/b/80235b3abcba833ae912ef0c682f2ffa3162aac12dc2e61691495bdb852e3ff5 @@ -0,0 +1,19 @@ +import { IconPlus } from "@tabler/icons-react" + +import { Button } from "@/registry/new-york-v4/ui/button" +import { + ButtonGroup, + ButtonGroupSeparator, +} from "@/registry/new-york-v4/ui/button-group" + +export default function ButtonGroupSplit() { + return ( + + + + + + ) +} diff --git a/b/807d9cb5d6bc7dcfc02da6704130597c68309e997dd7d5d1ff1ffff5960d5e85 b/b/807d9cb5d6bc7dcfc02da6704130597c68309e997dd7d5d1ff1ffff5960d5e85 new file mode 100644 index 0000000000000000000000000000000000000000..ca67c00a12c987b36eceed2d223571465db73c0f --- /dev/null +++ b/b/807d9cb5d6bc7dcfc02da6704130597c68309e997dd7d5d1ff1ffff5960d5e85 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.input-group-icon", + "name": "input-group-icon", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/input-group-icon.json", + "did": "did:holo:sha256:80e8f6a2298e726ad36975aa7c1720ce5c245a7247499155571b6c6f055bebd0", + "import": "holo://sha256:64c5a31ce66c83eae45385f0fc1ba777b3b761e96b50ba4d626995a8ed8eb041", + "integrity": "sha256-ZMWjHOZsg+rkU4Xw/Bund7O3YelrULpNYmmVqO2OsEE=", + "kappa": "sha256:80e8f6a2298e726ad36975aa7c1720ce5c245a7247499155571b6c6f055bebd0", + "moduleKappa": "sha256:64c5a31ce66c83eae45385f0fc1ba777b3b761e96b50ba4d626995a8ed8eb041", + "renderExport": "default", + "source": "registry/new-york-v4/examples/input-group-icon.tsx", + "module": "vendor/components/input-group-icon.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/807fd730926d5b732ad87b35cb4eb6c725151ebf8f6a18a75cefcc2f1cb8f7c9 b/b/807fd730926d5b732ad87b35cb4eb6c725151ebf8f6a18a75cefcc2f1cb8f7c9 new file mode 100644 index 0000000000000000000000000000000000000000..314a230021c10970acd8504b8bcb07f0826ecb72 --- /dev/null +++ b/b/807fd730926d5b732ad87b35cb4eb6c725151ebf8f6a18a75cefcc2f1cb8f7c9 @@ -0,0 +1,27 @@ +{ + "id": "org.hologram.ui.daisyui.chat", + "name": "daisyui-chat", + "tier": "component", + "library": "daisyui", + "category": "Data Display", + "upstream": "https://cdn.jsdelivr.net/npm/daisyui@5.5.23/components/chat.css", + "docs": "https://daisyui.com/components/chat/", + "did": "did:holo:sha256:e51ccc2543414d8b27941e37d31aeedbd90010e99c5067703e07a70a3c8a4ca0", + "import": "holo://sha256:e51ccc2543414d8b27941e37d31aeedbd90010e99c5067703e07a70a3c8a4ca0", + "integrity": "sha256-5RzMJUNBTYsnlB430xru29kAEOmcUGdwPgenCjyKTKA=", + "kappa": "sha256:e51ccc2543414d8b27941e37d31aeedbd90010e99c5067703e07a70a3c8a4ca0", + "moduleKappa": "sha256:e51ccc2543414d8b27941e37d31aeedbd90010e99c5067703e07a70a3c8a4ca0", + "renderExport": null, + "format": "css", + "source": "components/chat.css", + "module": "vendor/daisyui/components/chat.css", + "exports": [], + "bytes": 17361, + "provenance": { + "package": "daisyui", + "version": "5.5.23", + "integrity": "sha512-xuheNUSL4T6ZVtWXoioqcNkjoyGX85QTDz4HTw2aBPfqk4fuMjax5HDo8qCmpV6M1YN8bGvfx5BpYCoDeRlt+A==", + "file": "components/chat.css" + }, + "license": "MIT" +} diff --git a/b/80ecd8805b348cda9c3140fa857c11a9279643e4d418d7aae84fa4985891a269 b/b/80ecd8805b348cda9c3140fa857c11a9279643e4d418d7aae84fa4985891a269 new file mode 100644 index 0000000000000000000000000000000000000000..f72f901e1d93c6b961f5cc8eff74f9a56ca9c997 --- /dev/null +++ b/b/80ecd8805b348cda9c3140fa857c11a9279643e4d418d7aae84fa4985891a269 @@ -0,0 +1,158 @@ +// e8-quant.mjs — quantize an LLM's weights onto the E₈ lattice (the structure the atlas generates). +// E₈ is the densest lattice in 8 dimensions (Viazovska 2016) and, being UNIMODULAR (det = 1), E₈ at +// step δ and the integer lattice Z⁸ at step δ have the SAME point density — so comparing E₈-at-δ to +// scalar-round-at-δ is a fair EQUAL-RATE comparison, where E₈'s quantizing gain should give ≈0.86× +// the distortion (its normalized 2nd moment G(E₈)≈0.0717 vs 1/12≈0.0833 for scalar). Pure JS, zero deps. +// +// This is the literal "fit a model to the atlas at compile time, in the substrate": a content-addressed +// transform κ(weights) ⊕ κ(E₈-codebook) ⊕ κ(δ) → κ(quantized) realized as a weight requantizer the +// QVAC engine then runs. Honest scope: a principled, optimal vector quantizer — a compression/fidelity +// tool, not a semantic "truth" fix. + +// ── nearest lattice point ── +// D_n = integer vectors with even coordinate sum. Decode: round all; if the sum is odd, flip the one +// coordinate with the largest rounding error to the other side (parity flips, distance cost minimal). +function nearestDn(x, y) { + let sum = 0, worst = -1, wi = 0; + for (let i = 0; i < 8; i++) { const r = Math.round(x[i]); y[i] = r; sum += r; const e = Math.abs(x[i] - r); if (e > worst) { worst = e; wi = i; } } + if ((sum & 1) !== 0) { const r = Math.round(x[wi]); y[wi] = x[wi] >= r ? r + 1 : r - 1; } + return y; +} +// E₈ = D₈ ∪ (D₈ + (½)⁸). Decode: closer of nearestD8(x) and nearestD8(x−½)+½. +const _a = new Float64Array(8), _b = new Float64Array(8), _xs = new Float64Array(8); +export function nearestE8(x, out) { + nearestDn(x, _a); + for (let i = 0; i < 8; i++) _xs[i] = x[i] - 0.5; + nearestDn(_xs, _b); + let e0 = 0, e1 = 0; + for (let i = 0; i < 8; i++) { const d0 = x[i] - _a[i], h = _b[i] + 0.5, d1 = x[i] - h; e0 += d0 * d0; e1 += d1 * d1; _b[i] = h; } + const src = e0 <= e1 ? _a : _b; + for (let i = 0; i < 8; i++) out[i] = src[i]; + return out; +} + +// quantize a flat Float32Array IN PLACE onto E₈ at step δ (groups of 8 consecutive values = one vector). +// Returns the summed squared error (for MSE). Leftover (len % 8) values are scalar-rounded at δ. +export function e8QuantizeInPlace(w, delta) { + const v = new Float64Array(8), q = new Float64Array(8); let sse = 0, n = w.length, m = n - (n % 8); + for (let o = 0; o < m; o += 8) { + for (let i = 0; i < 8; i++) v[i] = w[o + i] / delta; + nearestE8(v, q); + for (let i = 0; i < 8; i++) { const r = q[i] * delta; const e = w[o + i] - r; sse += e * e; w[o + i] = r; } + } + for (let o = m; o < n; o++) { const r = Math.round(w[o] / delta) * delta; const e = w[o] - r; sse += e * e; w[o] = r; } + return sse; +} +// scalar (Z⁸) baseline at the same δ — the equal-rate comparison. +export function scalarQuantizeInPlace(w, delta) { + let sse = 0; for (let o = 0; o < w.length; o++) { const r = Math.round(w[o] / delta) * delta; const e = w[o] - r; sse += e * e; w[o] = r; } + return sse; +} + +// ── incoherence processing (QuIP#): a randomized Hadamard rotation spreads weight outliers so a +// single lattice step quantizes them well, then is undone — making 2-bit E₈ viable. The sign pattern +// is deterministic (declared once, part of the atlas E₈ standard), so the transform re-derives. ── +const _pow2 = (n) => { let p = 1; while (p < n) p <<= 1; return p; }; +function fwht(a) { const n = a.length; for (let len = 1; len < n; len <<= 1) for (let i = 0; i < n; i += len << 1) for (let j = i; j < i + len; j++) { const x = a[j], y = a[j + len]; a[j] = x + y; a[j + len] = x - y; } const s = 1 / Math.sqrt(n); for (let i = 0; i < n; i++) a[i] *= s; } // self-inverse: applied twice = identity +function signsFor(d) { const s = new Int8Array(d); let x = (0x9e3779b9 ^ d) >>> 0; for (let i = 0; i < d; i++) { x ^= x << 13; x ^= x >>> 17; x ^= x << 5; x >>>= 0; s[i] = (x & 1) ? 1 : -1; } return s; } +// quantize one row of length K onto E₈ in the incoherence-rotated basis at step δ, IN PLACE (back in +// the original basis). Returns the row's summed squared error. +function quantizeRowIncoherent(w, base, K, sign, Kp, delta, buf) { + for (let k = 0; k < Kp; k++) buf[k] = k < K ? w[base + k] * sign[k] : 0; + fwht(buf); // rotate to the incoherent basis + const v = new Float64Array(8), q = new Float64Array(8); + for (let o = 0; o < Kp; o += 8) { for (let i = 0; i < 8; i++) v[i] = buf[o + i] / delta; nearestE8(v, q); for (let i = 0; i < 8; i++) buf[o + i] = q[i] * delta; } + fwht(buf); // rotate back (self-inverse) + let sse = 0; for (let k = 0; k < K; k++) { const r = buf[k] * sign[k]; const e = w[base + k] - r; sse += e * e; w[base + k] = r; } + return sse; +} + +// ── LDLQ adaptive rounding (QuIP, Chee et al. 2023) ────────────────────────────────────────────── +// Minimises the OUTPUT error ‖(W−Ŵ)·H^½‖ (not the weight error) by rounding input columns high→low and +// feeding each future column's quantization error back through the LDL factor of the input Hessian +// H = Eᵀ·E. VALIDATED: ~5× lower output-weighted error vs independent rounding on a real layer with a +// real Hessian. To apply across a whole model it needs H per layer — i.e. a calibration forward-pass +// collecting each layer's input activations (the remaining wiring). These are the validated primitives. +export function ldlDecompose(H, n) { // H symmetric row-major → {L unit-lower, d diag}, H = L·diag(d)·Lᵀ + const L = new Float64Array(n * n), d = new Float64Array(n); + for (let j = 0; j < n; j++) { + let dj = H[j * n + j]; for (let k = 0; k < j; k++) dj -= L[j * n + k] * L[j * n + k] * d[k]; d[j] = dj; L[j * n + j] = 1; + for (let i = j + 1; i < n; i++) { let s = H[i * n + j]; for (let k = 0; k < j; k++) s -= L[i * n + k] * L[j * n + k] * d[k]; L[i * n + j] = dj !== 0 ? s / dj : 0; } + } + return { L, d }; +} +export function ldlqRound(W, N, K, L, delta) { // W [N,K] row-major (K = input dim); scalar Q at step δ + const What = new Float32Array(N * K), E = new Float32Array(N * K); + for (let k = K - 1; k >= 0; k--) for (let i = 0; i < N; i++) { + let corr = W[i * K + k]; for (let j = k + 1; j < K; j++) corr += E[i * K + j] * L[j * K + k]; + const r = Math.round(corr / delta) * delta; What[i * K + k] = r; E[i * K + k] = W[i * K + k] - r; + } + return What; +} +// CODEBOOK-AWARE LDLQ (QuIP# composition done right): quantize each input column DIRECTLY to the E₈ +// lattice — group the N output rows into blocks of 8 and snap each to its nearest E₈ point — INSIDE the +// recursion, so the feedback error E reflects the lattice-rounded value. This is the correct fusion of +// the adaptive-rounding lever with the lattice codebook: no scalar-round-then-re-snap (which double- +// quantizes and undoes the tuning). Output value lands exactly on the δ·E₈ grid (coords ∈ ½ℤ). +export function ldlqRoundE8(W, N, K, L, delta) { + const What = new Float32Array(N * K), E = new Float32Array(N * K); + const corr = new Float64Array(N), v = new Float64Array(8), q = new Float64Array(8); + const Nb = N - (N % 8); + for (let k = K - 1; k >= 0; k--) { + for (let i = 0; i < N; i++) { let c = W[i * K + k]; for (let j = k + 1; j < K; j++) c += E[i * K + j] * L[j * K + k]; corr[i] = c; } + for (let o = 0; o < Nb; o += 8) { // 8 output rows → one E₈ vector + for (let i = 0; i < 8; i++) v[i] = corr[o + i] / delta; nearestE8(v, q); + for (let i = 0; i < 8; i++) { const r = q[i] * delta, p = (o + i) * K + k; What[p] = r; E[p] = W[p] - r; } + } + for (let i = Nb; i < N; i++) { const r = Math.round(corr[i] / delta) * delta, p = i * K + k; What[p] = r; E[p] = W[p] - r; } // leftover rows: scalar + } + return What; +} + +// ── engine integration: requantize a QVAC Q8 tensor [int8 N*K][f32 scales N*(K/32)] ── +// Dequantize → quantize (mode 'e8'|'scalar') at δ = rel × tensorRMS → re-encode Q8 (recompute per-32 +// block scales). Same byte layout in/out, so the GPU kernels run it unchanged. Returns {bytes, mse, rms}. +export function requantTensorQ8(raw, N, K, { mode = "e8", rel = 1.0 } = {}) { + const qn = N * K, nsc = N * (K / 32); + const q = new Int8Array(raw.buffer.slice(raw.byteOffset, raw.byteOffset + qn)); // signed int8 quants (copy → aligned) + const sc = new Float32Array(raw.buffer.slice(raw.byteOffset + qn, raw.byteOffset + qn + nsc * 4)); + const w = new Float32Array(qn); + let ss = 0; + for (let n = 0; n < N; n++) for (let k = 0; k < K; k++) { const val = q[n * K + k] * sc[n * (K / 32) + (k >> 5)]; w[n * K + k] = val; ss += val * val; } + const rms = Math.sqrt(ss / qn) || 1e-8; + let mse = 0, delta; + if (mode === "e8i") { // E₈ with incoherence (QuIP#) — viable at 2-bit + const Kp = _pow2(K), sign = signsFor(Kp), buf = new Float64Array(Kp); + delta = rel * rms * Math.sqrt(K / Kp); + for (let n = 0; n < N; n++) mse += quantizeRowIncoherent(w, n * K, K, sign, Kp, delta, buf); + } else { // quantize each row in 8-blocks (no rotation) + delta = rel * rms; + for (let n = 0; n < N; n++) { const row = w.subarray(n * K, n * K + K); mse += (mode === "e8" ? e8QuantizeInPlace(row, delta) : scalarQuantizeInPlace(row, delta)); } + } + mse /= qn; + // re-encode to Q8: per-32-block symmetric int8 + f32 scale (recomputed from the reconstructed weights) + const outQ = new Int8Array(qn), outS = new Float32Array(nsc); + for (let n = 0; n < N; n++) for (let b = 0; b < K / 32; b++) { + let mx = 0; const base = n * K + b * 32; for (let i = 0; i < 32; i++) { const a = Math.abs(w[base + i]); if (a > mx) mx = a; } + const s = mx / 127 || 1e-12; outS[n * (K / 32) + b] = s; + for (let i = 0; i < 32; i++) { let qi = Math.round(w[base + i] / s); if (qi > 127) qi = 127; else if (qi < -127) qi = -127; outQ[base + i] = qi; } + } + const out = new Uint8Array(qn + nsc * 4); + out.set(new Uint8Array(outQ.buffer), 0); out.set(new Uint8Array(outS.buffer), qn); + return { bytes: out, mse, rms, delta }; +} + +// ── node self-test: validate the quantizer + the lattice gain ── +if (typeof process !== "undefined" && process.argv[1] && process.argv[1].endsWith("e8-quant.mjs")) { + let s = 99; const nx = () => (s = (s * 1664525 + 1013904223) >>> 0) / 4294967296; + const gauss = () => { const u = Math.max(1e-12, nx()), v = nx(); return Math.sqrt(-2 * Math.log(u)) * Math.cos(2 * Math.PI * v); }; + const N = 80000; + for (const delta of [0.5, 1.0, 2.0]) { + const a = new Float32Array(N), b = new Float32Array(N); for (let i = 0; i < N; i++) { const g = gauss(); a[i] = g; b[i] = g; } + const e8 = e8QuantizeInPlace(a, delta) / N, sc = scalarQuantizeInPlace(b, delta) / N; + console.log(`δ=${delta} E8 MSE=${e8.toFixed(5)} scalar MSE=${sc.toFixed(5)} ratio E8/scalar=${(e8 / sc).toFixed(3)} (theory ≈0.860 = the E₈ quantizing gain)`); + } + // sanity: a known E₈ point quantizes to itself + const p = new Float64Array([1, 1, 0, 0, 0, 0, 0, 0]), o = new Float64Array(8); nearestE8(p, o); + console.log("nearestE8([1,1,0,...]) =", Array.from(o).join(","), "(should be the same root; sum even ✓)"); +} diff --git a/b/80fad96c6271e3e14f74a4ca503bef27df355f99b5a920bd7753fc98066e140f b/b/80fad96c6271e3e14f74a4ca503bef27df355f99b5a920bd7753fc98066e140f new file mode 100644 index 0000000000000000000000000000000000000000..20416f0a6c1c6470cc5346bb5565c71004678eb2 --- /dev/null +++ b/b/80fad96c6271e3e14f74a4ca503bef27df355f99b5a920bd7753fc98066e140f @@ -0,0 +1,43 @@ +import * as React from "react" +import { CircleIcon } from "lucide-react" +import { RadioGroup as RadioGroupPrimitive } from "radix-ui" + +import { cn } from "@/lib/utils" + +function RadioGroup({ + className, + ...props +}: React.ComponentProps) { + return ( + + ) +} + +function RadioGroupItem({ + className, + ...props +}: React.ComponentProps) { + return ( + + + + + + ) +} + +export { RadioGroup, RadioGroupItem } diff --git a/b/80fdc692e539bffcc25e337d147a9eb104da31201c311b6a5625f086a3d39eca b/b/80fdc692e539bffcc25e337d147a9eb104da31201c311b6a5625f086a3d39eca new file mode 100644 index 0000000000000000000000000000000000000000..b11910aaff6a58b8cc3196b008a5a3528d18178e --- /dev/null +++ b/b/80fdc692e539bffcc25e337d147a9eb104da31201c311b6a5625f086a3d39eca @@ -0,0 +1,53 @@ +// m9b-prefill.mjs — KV-cache PREFILL memoization on the REAL Q model. A long shared prefix (system +// prompt + RAG) is prefilled ONCE and cached by classκ = H(prefixTokens ⊕ modelκ ⊕ deviceClass); a +// repeat RESTORES the KV (forward opts.inKV) and decodes only the suffix — skipping the expensive prefill. +// 9a proved the KV κ reproduces (same/fresh-process, CPU), so WARM output is byte-identical to COLD. +import { readFileSync } from "node:fs"; +import crypto from "node:crypto"; +import { performance } from "node:perf_hooks"; +import { forgeGguf } from "./gguf-forge.mjs"; +import { synthesizeGraph } from "./gguf-forge-graph.mjs"; +import { forward } from "./gguf-forge-exec.mjs"; +import { sha256hex } from "../../../../holo-os/system/os/usr/lib/holo/holo-uor.mjs"; + +const sha = (u8) => crypto.createHash("sha256").update(u8).digest("hex"); +const bytesOf = (f) => new Uint8Array(f.buffer, f.byteOffset, f.byteLength); +const buf = new Uint8Array(readFileSync(".models/qwen2.5-0.5b-instruct-q4_k_m.gguf")); +const f = forgeGguf(buf); const graph = synthesizeGraph(f.plan); const store = { get: (h) => f.blocks.get(h) }; +const verified = new Set(); +const load = (st, k) => { const hex = String(k).split(":").pop(); const b = st.get(hex); if (!b) throw new Error("κ?"); if (!verified.has(hex)) { if (sha256hex(b) !== hex) throw new Error("L5"); verified.add(hex); } return b; }; +const modelK = f.rootKappa; const deviceClass = "cpu-tierA-f32"; // 9c: KV-κ valid at OWN + same-device-class scope +const tok = (i, salt = 0) => ((i * 2654435761 + salt * 40503) % 150000) >>> 0; // deterministic valid token ids +const classKappa = (prefix) => sha256hex(new TextEncoder().encode("kv:" + modelK + "|" + deviceClass + "|" + prefix.join(","))); + +// the memo: classκ(prefix) -> cached prefill KV (own/device-class scope) +const kvStore = new Map(); +function prefillCached(prefix) { + const ck = classKappa(prefix); + if (kvStore.has(ck)) return { kv: kvStore.get(ck), hit: true, ck }; + const kv = {}; forward(f.plan, graph, store, prefix, { load, outKV: kv }); kvStore.set(ck, kv); + return { kv, hit: false, ck }; +} +const decodeLogits = (seq, inKV) => forward(f.plan, graph, store, seq, inKV ? { load, inKV } : { load }); + +console.log(`MODEL Qwen2.5-0.5B · device-class "${deviceClass}" · modelκ ${modelK.slice(0, 12)}…`); +console.log(`prefixLen COLD(full prefill+decode) WARM(restore KV, decode suffix) speedup output byte-identical`); +for (const PLEN of [16, 48, 96]) { + const prefix = Array.from({ length: PLEN }, (_, i) => tok(i)); + const query = Array.from({ length: 8 }, (_, i) => tok(i, 1)); + const seq = prefix.concat(query); + const { kv } = prefillCached(prefix); // turn 1 already cached this prefix's KV + + const c0 = performance.now(); const cold = decodeLogits(seq, null); const coldMs = performance.now() - c0; // recompute everything + const w0 = performance.now(); const warm = decodeLogits(seq, kv); const warmMs = performance.now() - w0; // restore KV, decode only the 8-tok suffix + const identical = sha(bytesOf(cold)) === sha(bytesOf(warm)); + console.log(` ${String(PLEN).padStart(4)} ${coldMs.toFixed(0).padStart(8)} ms ${warmMs.toFixed(0).padStart(8)} ms ${(coldMs / warmMs).toFixed(1).padStart(5)}x ${identical ? "YES ✓" : "NO ✗"}`); +} + +// null control: a UNIQUE prefix never seen → no cache → pays full prefill + the hash (memo loses) +{ + const uniq = Array.from({ length: 64 }, (_, i) => tok(i, 999)); + const t0 = performance.now(); const r = prefillCached(uniq); const ms = performance.now() - t0; + console.log(`\n[null control] unique 128-tok prefix: cache hit=${r.hit} → paid full prefill ${ms.toFixed(0)}ms + classκ hash. Memo wins ONLY when the prefix recurs.`); +} +console.log(`SCOPE (9c): this KV reuse is sound at OWN + same-device-class ("${deviceClass}") — 9a proved κ reproduces there. Cross-backend/cross-device κ DIVERGES (WITNESS GEMV 4.8e-7) → recompute or 7e-quorum the OUTPUT, never share raw KV across heterogeneous devices.`); diff --git a/b/8106443153817133945aa49cdf1377054560d97974e6ca62fd142e324dff39a2 b/b/8106443153817133945aa49cdf1377054560d97974e6ca62fd142e324dff39a2 new file mode 100644 index 0000000000000000000000000000000000000000..9af0458cda2d36beb80817dccb191db406ae3fca --- /dev/null +++ b/b/8106443153817133945aa49cdf1377054560d97974e6ca62fd142e324dff39a2 @@ -0,0 +1,61 @@ +spec-tape-capture (init) + + +

Q spec-tape-capture — greedy tapes from the real 9B (WebGPU)

+
booting…
+

+
diff --git a/b/81397eb59910f084716618642f5f50bd9c5790dd44ddaf735a341cb5f2165419 b/b/81397eb59910f084716618642f5f50bd9c5790dd44ddaf735a341cb5f2165419
new file mode 100644
index 0000000000000000000000000000000000000000..b50920e138807f385d0b0359f4f0f09891f18406
Binary files /dev/null and b/b/81397eb59910f084716618642f5f50bd9c5790dd44ddaf735a341cb5f2165419 differ
diff --git a/b/81663f74ed767954e39c49f77b49a2a1989544a53fb5d9a45a7d58b00054feaf b/b/81663f74ed767954e39c49f77b49a2a1989544a53fb5d9a45a7d58b00054feaf
new file mode 100644
index 0000000000000000000000000000000000000000..5cb8345d02c37fc4db689b262c84223a57f6dae3
--- /dev/null
+++ b/b/81663f74ed767954e39c49f77b49a2a1989544a53fb5d9a45a7d58b00054feaf
@@ -0,0 +1,71 @@
+import React from "react"
+
+import { cn } from "@/lib/utils"
+
+export interface OrbitingCirclesProps extends React.HTMLAttributes {
+  className?: string
+  children?: React.ReactNode
+  reverse?: boolean
+  duration?: number
+  delay?: number
+  radius?: number
+  path?: boolean
+  iconSize?: number
+  speed?: number
+}
+
+export function OrbitingCircles({
+  className,
+  children,
+  reverse,
+  duration = 20,
+  radius = 160,
+  path = true,
+  iconSize = 30,
+  speed = 1,
+  ...props
+}: OrbitingCirclesProps) {
+  const calculatedDuration = duration / speed
+  return (
+    <>
+      {path && (
+        
+          
+        
+      )}
+      {React.Children.map(children, (child, index) => {
+        const angle = (360 / React.Children.count(children)) * index
+        return (
+          
+ {child} +
+ ) + })} + + ) +} diff --git a/b/816d69918ec74ddbfee25527da0b25148f41abac0fe0c4183811a8c3d4659b3a b/b/816d69918ec74ddbfee25527da0b25148f41abac0fe0c4183811a8c3d4659b3a new file mode 100644 index 0000000000000000000000000000000000000000..532d29e49553a9e9845ab0289de1fa89bd797907 --- /dev/null +++ b/b/816d69918ec74ddbfee25527da0b25148f41abac0fe0c4183811a8c3d4659b3a @@ -0,0 +1,56 @@ +// TurboQuant / PolarQuant fidelity witness — both directions, BIT-FOR-BIT vs ggml's +// real to_float / quantize_chunk (types 42-49) in the llama.cpp fork. +// • dequant: tqDequant vs iq-ref.exe to_float (all 8 types) +// • quant: tqQuant vs quant-ref.exe quantize (all 8: PQ Stage-1 + TBQ Stage-1+QJL) +// PQ = PolarQuant (Stage 1: rotation-graph-level + Lloyd-Max codebook + bit-pack). +// TBQ = TurboQuant (+ QJL 1-bit residual sketch). Per-block kernels exclude the +// Hadamard rotation (graph-level), exactly like ggml's type_traits to_float. +import { execFileSync } from "node:child_process"; +import { existsSync } from "node:fs"; +import assert from "node:assert"; +import { tqDequant, tqQuant, TQ_TYPES } from "./gguf-forge-turboquant.mjs"; + +const QV = "C:/Users/pavel/Desktop/qvac-fabric-llm.cpp-master/qvac-fabric-llm.cpp-master"; +const IQREF = `${QV}/iq-ref.exe`, QREF = `${QV}/quant-ref.exe`; +const MINGW = "C:/Users/pavel/AppData/Local/Microsoft/WinGet/Packages/BrechtSanders.WinLibs.POSIX.UCRT_Microsoft.Winget.Source_8wekyb3d8bbwe/mingw64/bin"; +const ENV = { env: { ...process.env, PATH: `${MINGW};${process.env.PATH}` }, maxBuffer: 1 << 26 }; + +function mulberry32(a) { return () => { a |= 0; a = (a + 0x6d2b79f5) | 0; let t = Math.imul(a ^ (a >>> 15), 1 | a); t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t; return ((t ^ (t >>> 14)) >>> 0) / 4294967296; }; } +const f32bits = (f) => { const b = new ArrayBuffer(4); new Float32Array(b)[0] = f; return new Uint32Array(b)[0]; }; +const hexf = (arr) => Array.from(arr, (v) => f32bits(v).toString(16).padStart(8, "0")).join(" "); + +function refDequant(typeId, n, raw) { + const out = execFileSync(IQREF, [String(typeId), String(n), Buffer.from(raw).toString("hex")], ENV).toString().trim(); + return out.split(/\s+/).map((h) => parseInt(h, 16) >>> 0); +} +function refQuant(typeId, n, x) { + const out = execFileSync(QREF, [String(typeId), String(n)], { ...ENV, input: hexf(x) + "\n" }).toString().trim(); + return out.split(/\s+/).map((h) => parseInt(h, 16)); +} + +let pass = 0, fail = 0; +const ok = (c, m) => { if (c) { console.log(` ok ${m}`); pass++; } else { console.log(` XX ${m}`); fail++; } }; +assert(existsSync(IQREF), "iq-ref.exe missing"); assert(existsSync(QREF), "quant-ref.exe missing"); + +// Per type: forge a block from random data with OUR quantizer, dequant both via ggml +// and ours from the SAME bytes, and separately compare OUR quant bytes to ggml's. +for (const [id, t] of Object.entries(TQ_TYPES)) { + const typeId = Number(id), nb = 3, n = t.d * nb; + // varied-magnitude random KV-like vector + const rnd = mulberry32(0x5151 + typeId), x = new Float32Array(n); + for (let i = 0; i < n; i++) x[i] = (rnd() * 2 - 1) * (0.5 + (i % 5) * 0.4); + + // QUANT: our bytes vs ggml bytes (Stage-1 for PQ; Stage-1 + QJL for TBQ) + const jsq = tqQuant(typeId, x, n), refq = refQuant(typeId, n, x); + assert.equal(jsq.length, t.total * nb, `${t.name} quant length`); + let qbad = -1; for (let i = 0; i < jsq.length; i++) if (jsq[i] !== refq[i]) { qbad = i; break; } + ok(qbad < 0, `${t.name.padEnd(9)} quant BIT-EXACT vs ggml (${jsq.length} B)${qbad < 0 ? "" : ` first@${qbad} js=${jsq[qbad]} ref=${refq[qbad]}`}`); + + // DEQUANT: feed ggml's own block bytes to our dequant → must equal ggml to_float + const ref = refDequant(typeId, n, Uint8Array.from(refq)), js = tqDequant(typeId, Uint8Array.from(refq), n); + let dbad = -1, fin = 0; for (let i = 0; i < n; i++) { const rf = new Float32Array(new Uint32Array([ref[i]]).buffer)[0]; if (!Number.isFinite(rf)) continue; fin++; if (f32bits(js[i]) !== ref[i]) { dbad = i; break; } } + ok(dbad < 0, `${t.name.padEnd(9)} dequant BIT-EXACT vs ggml to_float (${fin}/${n})${dbad < 0 ? "" : ` first@${dbad}`}`); +} + +console.log(`\n${pass} passed, ${fail} failed`); +process.exit(fail ? 1 : 0); diff --git a/b/817514b0589eb6db36a802fe5cfeb2bc3786035885ffd023fb504d00c6a292eb b/b/817514b0589eb6db36a802fe5cfeb2bc3786035885ffd023fb504d00c6a292eb new file mode 100644 index 0000000000000000000000000000000000000000..324da411896499547f62830cbb6a4e3959b623b6 --- /dev/null +++ b/b/817514b0589eb6db36a802fe5cfeb2bc3786035885ffd023fb504d00c6a292eb @@ -0,0 +1,61 @@ +// holo-whisper-frontend.mjs — browser-local Whisper front-end (mel + specials + detok). +// Verbatim copies of the pure functions from ../gguf-forge-whisper.mjs (the CPU oracle that is +// byte-exact to whisper-cli). Duplicated ONLY because the oracle module transitively imports +// holo-uor.mjs, which lives outside the forge static-server root. These three functions use NO +// external deps, so the copies are exact — keep them in lockstep with the oracle if it changes. + +// log-mel spectrogram: n_fft=400, hop=160; |DFT|² over 201 bins; mel filterbank; log10 + the +// whisper normalize (max−8 floor, +4 /4). Returns { mel:[nMel*nFrames], nFrames, nMel }. +export function logMelSpectrogram(samples, filters, { nMel = 80, nFft = 400, hop = 160, nBins = 201, nSamples = 480000 } = {}) { + const x = new Float32Array(nSamples + nFft); x.set(samples.subarray(0, Math.min(samples.length, nSamples))); + const nFrames = (nSamples / hop) | 0; + const hann = new Float32Array(nFft); for (let i = 0; i < nFft; i++) hann[i] = 0.5 - 0.5 * Math.cos((2 * Math.PI * i) / nFft); + const cosT = new Float32Array(nBins * nFft), sinT = new Float32Array(nBins * nFft); + for (let b = 0; b < nBins; b++) for (let n = 0; n < nFft; n++) { const a = (-2 * Math.PI * b * n) / nFft; cosT[b * nFft + n] = Math.cos(a); sinT[b * nFft + n] = Math.sin(a); } + const mel = new Float32Array(nMel * nFrames), win = new Float32Array(nFft), pw = new Float64Array(nBins); + let mmax = -Infinity; + for (let f = 0; f < nFrames; f++) { + const off = f * hop; + for (let n = 0; n < nFft; n++) win[n] = hann[n] * x[off + n]; + // power spectrum |DFT|² computed ONCE per frame (was recomputed inside the per-mel loop — + // an 80× redundancy). Same arithmetic + accumulation order ⇒ bit-identical mel, ~80× faster. + for (let b = 0; b < nBins; b++) { let re = 0.0, im = 0.0; const tb = b * nFft; for (let n = 0; n < nFft; n++) { re += win[n] * cosT[tb + n]; im += win[n] * sinT[tb + n]; } pw[b] = re * re + im * im; } + for (let k = 0; k < nMel; k++) { + let s = 0.0; const fb = k * nBins; + for (let b = 0; b < nBins; b++) s += filters[fb + b] * pw[b]; + let lv = Math.log10(Math.max(s, 1e-10)); + mel[k * nFrames + f] = lv; if (lv > mmax) mmax = lv; + } + } + const floor = mmax - 8.0; + for (let i = 0; i < mel.length; i++) mel[i] = (Math.max(mel[i], floor) + 4.0) / 4.0; + return { mel, nFrames, nMel }; +} + +// Whisper special tokens — derived from n_vocab so the same code serves tiny…large-v3. +export function whisperSpecials(nVocab) { + const TS_BEGIN = nVocab - 1501; + return { EOT: 50257, SOT: 50258, LANG_EN: 50259, TRANSLATE: TS_BEGIN - 6, TRANSCRIBE: TS_BEGIN - 5, NO_TIMESTAMPS: TS_BEGIN - 1, TS_BEGIN }; +} + +const WHISPER_MAGIC = 0x67676d6c, N_HPARAM = 11; +// parse just the vocab from the legacy-ggml header (magic + 11 hparams + mel filterbank + vocab). +function parseVocab(bytes) { + const dv = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength); let o = 0; + const i32 = () => { const v = dv.getInt32(o, true); o += 4; return v; }; + if (dv.getUint32(o, true) !== WHISPER_MAGIC) throw new Error("whisper: bad magic"); o += 4; + for (let i = 0; i < N_HPARAM; i++) i32(); + const n_mel = i32(), n_fft = i32(); o += n_mel * n_fft * 4; // skip mel filterbank + const nVocab = i32(), tokens = []; + for (let i = 0; i < nVocab; i++) { const len = i32(); tokens.push(bytes.subarray(o, o + len)); o += len; } + return tokens; +} + +// whisper.cpp stores tokens as RAW UTF-8 text (literal spaces) — no GPT-2 byte decoder. +export function whisperDetok(headerBytes, ids) { + const tokens = parseVocab(headerBytes); + let total = 0; for (const id of ids) if (id < tokens.length) total += tokens[id].length; + const out = new Uint8Array(total); let p = 0; + for (const id of ids) if (id < tokens.length) { out.set(tokens[id], p); p += tokens[id].length; } + return new TextDecoder().decode(out); +} diff --git a/b/818d57be07161f271298770ffe37855d76d52efc0525fe1f56371cc35cc4474d b/b/818d57be07161f271298770ffe37855d76d52efc0525fe1f56371cc35cc4474d new file mode 100644 index 0000000000000000000000000000000000000000..26c9e09f802a9517a7ebdaf695b66ac35376af0d --- /dev/null +++ b/b/818d57be07161f271298770ffe37855d76d52efc0525fe1f56371cc35cc4474d @@ -0,0 +1,63 @@ +// quant-floor-eval.mjs — C: make "4-bit is the floor for POST-HOC quant" reproducible instead of asserted. +// It measures the per-bit-width reconstruction error of naive symmetric per-block quantization (GGUF-style +// 32-wide blocks, absmax scale) on a realistic weight distribution, and shows the error CLIFF below 4 bits. +// This is a labeled RECONSTRUCTION PROXY, not an end-task eval — it isolates the quantizer's own damage. The +// real production path (compile2bit.mjs) confirms the mechanism: sub-4-bit needs full QuIP#-grade incoherence + +// a per-layer Hessian, and only a PROXY embedding Hessian exists here (no GPU calibration box). The two regimes: +// • post-hoc quant of a normal fp model below 4-bit → collapses (this script) → floor = 4-bit. +// • NATIVELY-TERNARY BitNet → 2-bit runs with bit-exact parity (committed: gguf-forge-tq2 / -bitnet tests). +// Pure Node, deterministic (seeded), no model download. Every number is computed in this run. + +let pass = 0, fail = 0; +const ok = (c, m) => { console.log((c ? " ok " : " XX ") + m); c ? pass++ : fail++; }; + +// deterministic Gaussian weights (Box–Muller over a seeded LCG) — the standard proxy for transformer weights. +const lcg = (seed) => { let s = (seed >>> 0) || 1; return () => { s = (Math.imul(s, 1103515245) + 12345) >>> 0; return s / 4294967296; }; }; +const rnd = lcg(12345); +const gauss = () => { let u = 0, v = 0; while (u === 0) u = rnd(); while (v === 0) v = rnd(); return Math.sqrt(-2 * Math.log(u)) * Math.cos(2 * Math.PI * v); }; +const N = 1 << 20, BLK = 32; // 1M weights, 32-wide quant blocks +const W = new Float64Array(N); for (let i = 0; i < N; i++) W[i] = gauss() * 0.02; // ~N(0, 0.02) like real weights + +// symmetric per-block round-trip at `bits`; returns reconstruction RMSE / signal-RMS = relative error. +function roundTripRelErr(bits) { + const qmax = (1 << (bits - 1)) - 1; // signed: ±qmax (e.g. 4-bit → ±7, 2-bit → ±1) + let se = 0, sig = 0; + for (let b = 0; b < N; b += BLK) { + let amax = 0; for (let i = 0; i < BLK; i++) { const a = Math.abs(W[b + i]); if (a > amax) amax = a; } + const scale = amax > 0 ? amax / qmax : 1; + for (let i = 0; i < BLK; i++) { + const w = W[b + i]; + const q = Math.max(-qmax, Math.min(qmax, Math.round(w / scale))); + const r = q * scale, e = w - r; + se += e * e; sig += w * w; + } + } + return Math.sqrt(se / N) / Math.sqrt(sig / N); +} + +console.log("post-hoc symmetric per-block quant — reconstruction error vs fp (lower = better):\n"); +console.log(" bits levels relative-error SNR(dB)"); +const rel = {}; +for (const bits of [8, 6, 5, 4, 3, 2]) { + const e = roundTripRelErr(bits); rel[bits] = e; + const snr = -20 * Math.log10(e); + console.log(` ${bits} ±${String((1 << (bits - 1)) - 1).padStart(3)} ${(e * 100).toFixed(2).padStart(7)} % ${snr.toFixed(1).padStart(6)}`); +} + +console.log(""); +// monotonic degradation + a sharp drop below 4-bit is the whole point. +ok(rel[8] < rel[6] && rel[6] < rel[5] && rel[5] < rel[4] && rel[4] < rel[3] && rel[3] < rel[2], "error increases monotonically as bits fall"); +ok(rel[4] < 0.12, `naive 4-bit error is moderate (${(rel[4] * 100).toFixed(2)} %) — the lowest usable tier; real GGUF k-quant (Q4_K superblocks) does better still`); +ok(rel[3] > rel[4] * 1.7, `3-bit error jumps vs 4-bit (${(rel[3] * 100).toFixed(2)} % vs ${(rel[4] * 100).toFixed(2)} %)`); +ok(rel[2] > 0.25, `2-bit error is severe (${(rel[2] * 100).toFixed(2)} %) — naive post-hoc 2-bit collapses`); +ok(rel[2] / rel[4] > 5, `2-bit is >5× worse than 4-bit (${(rel[2] / rel[4]).toFixed(1)}×) — the floor is 4-bit for post-hoc quant`); + +console.log(`\nREGIME LABELS (honest):`); +console.log(` • This proxy isolates the quantizer's own error. Real GGUF k-quants (Q4_K…) add codebooks/superblocks,`); +console.log(` so 4-bit stays usable — but sub-4-bit still needs QuIP#-grade incoherence + a per-layer Hessian to`); +console.log(` survive; compile2bit.mjs ships only a PROXY embedding Hessian (no GPU calibration box) → research-grade.`); +console.log(` • EXCEPTION — natively-ternary BitNet: its 2-bit is bit-exact (committed: gguf-forge-tq2 / -bitnet tests).`); +console.log(` "sub-4-bit fails" is therefore POST-HOC-quant-specific, not a blanket claim.`); + +console.log(`\n${pass}/${pass + fail}${fail ? " FAIL" : " — WITNESSED: post-hoc quant below 4 bits collapses (measured), so 4-bit is the realistic floor for a normal fp model; natively-ternary BitNet 2-bit is the labeled exception, proven elsewhere by parity tests."}`); +process.exit(fail ? 1 : 0); diff --git a/b/81ba2e81bd172ba78f709691ce9524f1e6ded3aabaeb2c3647cdb5dd64564b62 b/b/81ba2e81bd172ba78f709691ce9524f1e6ded3aabaeb2c3647cdb5dd64564b62 new file mode 100644 index 0000000000000000000000000000000000000000..7bcc4d8d48fbfa8ebe9c39550696b49879e42675 --- /dev/null +++ b/b/81ba2e81bd172ba78f709691ce9524f1e6ded3aabaeb2c3647cdb5dd64564b62 @@ -0,0 +1,29 @@ +export default { + colors: { + "base-100": "var(--color-base-100)", + "base-200": "var(--color-base-200)", + "base-300": "var(--color-base-300)", + "base-content": "var(--color-base-content)", + primary: "var(--color-primary)", + "primary-content": "var(--color-primary-content)", + secondary: "var(--color-secondary)", + "secondary-content": "var(--color-secondary-content)", + accent: "var(--color-accent)", + "accent-content": "var(--color-accent-content)", + neutral: "var(--color-neutral)", + "neutral-content": "var(--color-neutral-content)", + info: "var(--color-info)", + "info-content": "var(--color-info-content)", + success: "var(--color-success)", + "success-content": "var(--color-success-content)", + warning: "var(--color-warning)", + "warning-content": "var(--color-warning-content)", + error: "var(--color-error)", + "error-content": "var(--color-error-content)", + }, + borderRadius: { + selector: "var(--radius-selector)", + field: "var(--radius-field)", + box: "var(--radius-box)", + }, +} diff --git a/b/81c3aeddbf9ba8dd4c68003737d0efe95763b62f05377d4336fe58a3496ef0f0 b/b/81c3aeddbf9ba8dd4c68003737d0efe95763b62f05377d4336fe58a3496ef0f0 new file mode 100644 index 0000000000000000000000000000000000000000..e77df50df07d712c9e80ac742f5c3881da618c7b --- /dev/null +++ b/b/81c3aeddbf9ba8dd4c68003737d0efe95763b62f05377d4336fe58a3496ef0f0 @@ -0,0 +1,22 @@ +{ + "id": "org.hologram.ui.rainbow-button", + "name": "rainbow-button", + "tier": "component", + "library": "magicui", + "category": "Buttons", + "upstream": "https://magicui.design/r/rainbow-button.json", + "did": "did:holo:sha256:3ad62ded1d8dec250f2b4a72a5cd5799fb0263676048cb0898771be0c31abe0c", + "import": "holo://sha256:b97b50ebdb002dab0604768bf955227a713d0fc6f883cca1940369964dff56ed", + "integrity": "sha256-uXtQ69sALasGBHaL+VUienE9D8b4g8yhlANplk3/Vu0=", + "kappa": "sha256:3ad62ded1d8dec250f2b4a72a5cd5799fb0263676048cb0898771be0c31abe0c", + "moduleKappa": "sha256:b97b50ebdb002dab0604768bf955227a713d0fc6f883cca1940369964dff56ed", + "renderExport": "RainbowButton", + "source": "components/ui/rainbow-button.tsx", + "module": "vendor/components/rainbow-button.js", + "exports": [ + "RainbowButton", + "rainbowButtonVariants", + "type RainbowButtonProps" + ], + "license": "MIT" +} diff --git a/b/81edc25dc36b6a881e395c3a43f32bf5282a4c7f3b53078d172e9a375c30af22 b/b/81edc25dc36b6a881e395c3a43f32bf5282a4c7f3b53078d172e9a375c30af22 new file mode 100644 index 0000000000000000000000000000000000000000..e316ff696c5b60dd4783dbb1139c1968dfd53cd7 --- /dev/null +++ b/b/81edc25dc36b6a881e395c3a43f32bf5282a4c7f3b53078d172e9a375c30af22 @@ -0,0 +1,160 @@ +"use client" + +import * as React from "react" +import { zodResolver } from "@hookform/resolvers/zod" +import { XIcon } from "lucide-react" +import { Controller, useFieldArray, useForm } from "react-hook-form" +import { toast } from "sonner" +import * as z from "zod" + +import { Button } from "@/registry/new-york-v4/ui/button" +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + Field, + FieldContent, + FieldDescription, + FieldError, + FieldGroup, + FieldLegend, + FieldSet, +} from "@/registry/new-york-v4/ui/field" +import { + InputGroup, + InputGroupAddon, + InputGroupButton, + InputGroupInput, +} from "@/registry/new-york-v4/ui/input-group" + +const formSchema = z.object({ + emails: z + .array( + z.object({ + address: z.string().email("Enter a valid email address."), + }) + ) + .min(1, "Add at least one email address.") + .max(5, "You can add up to 5 email addresses."), +}) + +export default function FormRhfArray() { + const form = useForm>({ + resolver: zodResolver(formSchema), + defaultValues: { + emails: [{ address: "" }, { address: "" }], + }, + }) + + const { fields, append, remove } = useFieldArray({ + control: form.control, + name: "emails", + }) + + function onSubmit(data: z.infer) { + toast("You submitted the following values:", { + description: ( +
+          {JSON.stringify(data, null, 2)}
+        
+ ), + position: "bottom-right", + classNames: { + content: "flex flex-col gap-2", + }, + style: { + "--border-radius": "calc(var(--radius) + 4px)", + } as React.CSSProperties, + }) + } + + return ( + + + Contact Emails + Manage your contact email addresses. + + +
+
+ Email Addresses + + Add up to 5 email addresses where we can contact you. + + + {fields.map((field, index) => ( + ( + + + + + {fields.length > 1 && ( + + remove(index)} + aria-label={`Remove email ${index + 1}`} + > + + + + )} + + {fieldState.invalid && ( + + )} + + + )} + /> + ))} + + + {form.formState.errors.emails?.root && ( + + )} +
+
+
+ + + + + + +
+ ) +} diff --git a/b/81fcccaf602f0a633e263a495e68ee90eb46298235bf2a59112d52843495a7a0 b/b/81fcccaf602f0a633e263a495e68ee90eb46298235bf2a59112d52843495a7a0 new file mode 100644 index 0000000000000000000000000000000000000000..97806d14cdec0eab801c4a6d4ce9f81e7cf93542 --- /dev/null +++ b/b/81fcccaf602f0a633e263a495e68ee90eb46298235bf2a59112d52843495a7a0 @@ -0,0 +1,185 @@ +const defaultExcludedPrefixes = ["color-", "size-", "radius-", "border", "depth", "noise"] +const excludedSelectors = ["prose"] + +const shouldExcludeVariable = (variableName, excludedPrefixes) => { + if (variableName.startsWith("tw")) { + return true + } + return excludedPrefixes.some((excludedPrefix) => variableName.startsWith(excludedPrefix)) +} + +const prefixVariable = (variableName, prefix, excludedPrefixes) => { + if (shouldExcludeVariable(variableName, excludedPrefixes)) { + return variableName + } + return `${prefix}${variableName}` +} + +const getPrefixedSelector = (selector, prefix) => { + if (!selector.startsWith(".")) return selector + if (excludedSelectors.includes(selector.slice(1))) return selector + return `.${prefix}${selector.slice(1)}` +} + +const getPrefixedKey = (key, prefix, excludedPrefixes) => { + const prefixAmpDot = prefix ? `&.${prefix}` : "" + + if (!prefix) return key + + if (key.startsWith(".") && excludedSelectors.includes(key.slice(1))) return key + + if (key.startsWith("--")) { + const variableName = key.slice(2) + return `--${prefixVariable(variableName, prefix, excludedPrefixes)}` + } + + if (key.startsWith("@") || key.startsWith("[")) { + return key + } + + if (key.startsWith("&")) { + // If it's a complex selector with :not(), :has(), etc. + if (key.match(/:[a-z-]+\(/)) { + return key.replace(/\.([\w-]+)/g, (m, cls) => + excludedSelectors.includes(cls) ? `.${cls}` : `.${prefix}${cls}`, + ) + } + // For simple &. cases + if (key.startsWith("&.")) { + if (excludedSelectors.includes(key.slice(2))) return key + return `${prefixAmpDot}${key.slice(2)}` + } + // For other & cases (like &:hover or &:not(...)) + return key.replace(/\.([\w-]+)/g, (m, cls) => + excludedSelectors.includes(cls) ? `.${cls}` : `.${prefix}${cls}`, + ) + } + + if (key.startsWith(":")) { + return key.replace(/\.([\w-]+)/g, (m, cls) => + excludedSelectors.includes(cls) ? `.${cls}` : `.${prefix}${cls}`, + ) + } + + if ( + key.includes(".") && + !key.includes(" ") && + !key.includes(">") && + !key.includes("+") && + !key.includes("~") + ) { + return key + .split(".") + .filter(Boolean) + .map((part) => (excludedSelectors.includes(part) ? part : prefix + part)) + .join(".") + .replace(/^/, ".") + } + + if (key.includes(">") || key.includes("+") || key.includes("~")) { + // For comma-separated selectors + if (key.includes(",")) { + return key + .split(/\s*,\s*/) + .map((part) => { + // Replace class names with prefixed versions for each part + return part.replace(/\.([\w-]+)/g, (m, cls) => + excludedSelectors.includes(cls) ? `.${cls}` : `.${prefix}${cls}`, + ) + }) + .join(", ") + } + + // For simple combinators (not comma-separated) + let processedKey = key.replace(/\.([\w-]+)/g, (m, cls) => + excludedSelectors.includes(cls) ? `.${cls}` : `.${prefix}${cls}`, + ) + + // Add a space before combinators at the beginning + if ( + processedKey.startsWith(">") || + processedKey.startsWith("+") || + processedKey.startsWith("~") + ) { + processedKey = ` ${processedKey}` + } + + return processedKey + } + + if (key.includes(" ")) { + return key + .split(/\s+/) + .map((part) => { + if (part.startsWith(".")) { + return excludedSelectors.includes(part.slice(1)) + ? part + : getPrefixedSelector(part, prefix) + } + return part + }) + .join(" ") + } + + if (key.includes(":")) { + const [selector, ...pseudo] = key.split(":") + if (selector.startsWith(".")) { + return `${excludedSelectors.includes(selector.slice(1)) ? selector : getPrefixedSelector(selector, prefix)}:${pseudo.join(":")}` + } + return key.replace(/\.([\w-]+)/g, (m, cls) => + excludedSelectors.includes(cls) ? `.${cls}` : `.${prefix}${cls}`, + ) + } + + if (key.startsWith(".")) { + return excludedSelectors.includes(key.slice(1)) ? key : getPrefixedSelector(key, prefix) + } + + return key +} + +const processArrayValue = (value, prefix, excludedPrefixes) => { + return value.map((item) => { + if (typeof item === "string") { + if (item.startsWith(".")) { + return excludedSelectors.includes(item.slice(1)) + ? item + : prefix + ? `.${prefix}${item.slice(1)}` + : item + } + return processStringValue(item, prefix, excludedPrefixes) + } + return item + }) +} + +const processStringValue = (value, prefix, excludedPrefixes) => { + if (prefix === 0) return value + return value.replace(/var\(--([^)]+)\)/g, (match, variableName) => { + if (shouldExcludeVariable(variableName, excludedPrefixes)) { + return match + } + return `var(--${prefix}${variableName})` + }) +} + +const processValue = (value, prefix, excludedPrefixes) => { + if (Array.isArray(value)) { + return processArrayValue(value, prefix, excludedPrefixes) + } else if (typeof value === "object" && value !== null) { + return addPrefix(value, prefix, excludedPrefixes) + } else if (typeof value === "string") { + return processStringValue(value, prefix, excludedPrefixes) + } else { + return value + } +} + +export const addPrefix = (obj, prefix, excludedPrefixes = defaultExcludedPrefixes) => { + return Object.entries(obj).reduce((result, [key, value]) => { + const newKey = getPrefixedKey(key, prefix, excludedPrefixes) + result[newKey] = processValue(value, prefix, excludedPrefixes) + return result + }, {}) +} diff --git a/b/820352d9902d576263f777568b4a9ee15a88bc46def55409024f0f1f43968d13 b/b/820352d9902d576263f777568b4a9ee15a88bc46def55409024f0f1f43968d13 new file mode 100644 index 0000000000000000000000000000000000000000..4cced406d8847fceb11d9f09e9b02394bd15e58a --- /dev/null +++ b/b/820352d9902d576263f777568b4a9ee15a88bc46def55409024f0f1f43968d13 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.empty-outline", + "name": "empty-outline", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/empty-outline.json", + "did": "did:holo:sha256:c44fd1bd17b9aa1c15a6f7cc7b699f14abc25b618074bc55020eadf6d041b8d8", + "import": "holo://sha256:152a867adf130c6650000cbd24c010236e0e0e058dbd88566add00e4848898cb", + "integrity": "sha256-FSqGet8TDGZQAAy9JMAQI24ODgWNvYhWat0A5ISImMs=", + "kappa": "sha256:c44fd1bd17b9aa1c15a6f7cc7b699f14abc25b618074bc55020eadf6d041b8d8", + "moduleKappa": "sha256:152a867adf130c6650000cbd24c010236e0e0e058dbd88566add00e4848898cb", + "renderExport": "default", + "source": "registry/new-york-v4/examples/empty-outline.tsx", + "module": "vendor/components/empty-outline.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/829c44c560a914b2d071bb5e7bcc4440c74b2bb83cbeb6ff930507a8e72a57d4 b/b/829c44c560a914b2d071bb5e7bcc4440c74b2bb83cbeb6ff930507a8e72a57d4 new file mode 100644 index 0000000000000000000000000000000000000000..b33bdb46040865620b5f95fc02aebe0004d6a2b9 --- /dev/null +++ b/b/829c44c560a914b2d071bb5e7bcc4440c74b2bb83cbeb6ff930507a8e72a57d4 @@ -0,0 +1,26 @@ +{ + "id": "org.hologram.ui.pagination", + "name": "pagination", + "tier": "component", + "library": "shadcn", + "category": "Navigation", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/pagination.json", + "did": "did:holo:sha256:374ad135c3d4ff3ec080a0009cd9745cdd0e12faa89d2b0e86074f11e5127fd1", + "import": "holo://sha256:653d2e9e7a2882a19947eb9b792e0921c1efbebf67bfabbdfc8a609711ee0492", + "integrity": "sha256-ZT0unnoogqGZR+ubeS4JIcHvvr9nv6u9/IpglxHuBJI=", + "kappa": "sha256:374ad135c3d4ff3ec080a0009cd9745cdd0e12faa89d2b0e86074f11e5127fd1", + "moduleKappa": "sha256:653d2e9e7a2882a19947eb9b792e0921c1efbebf67bfabbdfc8a609711ee0492", + "renderExport": "Pagination", + "source": "components/ui/pagination.tsx", + "module": "vendor/components/pagination.js", + "exports": [ + "Pagination", + "PaginationContent", + "PaginationLink", + "PaginationItem", + "PaginationPrevious", + "PaginationNext", + "PaginationEllipsis" + ], + "license": "MIT" +} diff --git a/b/82c81a06c1210e503961e48a96843e2444faee2fade2b97efa27f8a58dbc81d2 b/b/82c81a06c1210e503961e48a96843e2444faee2fade2b97efa27f8a58dbc81d2 new file mode 100644 index 0000000000000000000000000000000000000000..ae939dd1a88dda821aabe82756806d03e7e3fa0c --- /dev/null +++ b/b/82c81a06c1210e503961e48a96843e2444faee2fade2b97efa27f8a58dbc81d2 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.sonner-types", + "name": "sonner-types", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/sonner-types.json", + "did": "did:holo:sha256:dfb0e142742bc5cb787f87251873eb77576bf62bfb74a19e1abcce80fa695560", + "import": "holo://sha256:dc267f065fe8be9040461fc78c4f5ed8adaa5b22a7a71ada6999be6d46bfef53", + "integrity": "sha256-3CZ/Bl/ovpBARh/HjE9e2K2qWyKnpxraaZm+bUa/71M=", + "kappa": "sha256:dfb0e142742bc5cb787f87251873eb77576bf62bfb74a19e1abcce80fa695560", + "moduleKappa": "sha256:dc267f065fe8be9040461fc78c4f5ed8adaa5b22a7a71ada6999be6d46bfef53", + "renderExport": "default", + "source": "registry/new-york-v4/examples/sonner-types.tsx", + "module": "vendor/components/sonner-types.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/82d0caca5ca870b127fa3ae14120fc61615996592c9cc18da09818a071d96f75 b/b/82d0caca5ca870b127fa3ae14120fc61615996592c9cc18da09818a071d96f75 new file mode 100644 index 0000000000000000000000000000000000000000..fa3a3d5609c2ca3382b712cbfe78e06aa670a776 --- /dev/null +++ b/b/82d0caca5ca870b127fa3ae14120fc61615996592c9cc18da09818a071d96f75 @@ -0,0 +1,37 @@ +# Phase 1b — dump Moonshine stage-goldens (conv stem + encoder output + first-step logits) so the JS κ-forge +# oracle can be verified stage-by-stage against the trusted reference. Writes gpu/moonshine-*.f32 + .json. +import sys, json, struct, numpy as np, torch +from transformers import AutoProcessor, MoonshineForConditionalGeneration +MODEL = "./.models/moonshine-tiny" +WAV = sys.argv[1] if len(sys.argv) > 1 else "C:/Users/pavel/Desktop/SovereignAI/1_Compute/whisper.cpp/jo16.wav" +def read_wav16(p): + b = open(p, "rb").read(); o = 12 + while o + 8 <= len(b): + cid = b[o:o+4]; sz = struct.unpack("{for(var o in t)qt(e,o,{get:t[o],enumerable:!0})};function ot(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,nt=ve,st=(e,t)=>o=>{var r;if(t?.variants==null)return nt(e,o?.class,o?.className);let{variants:n,defaultVariants:i}=t,s=Object.keys(n).map(c=>{let d=o?.[c],p=i?.[c];if(d===null)return null;let h=rt(d)||rt(p);return n[c][h]}),a=o&&Object.entries(o).reduce((c,d)=>{let[p,h]=d;return h===void 0||(c[p]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:p,className:h,...y}=d;return Object.entries(y).every(w=>{let[x,g]=w;return Array.isArray(g)?g.includes({...i,...a}[x]):{...i,...a}[x]===g})?[...c,p,h]:c},[]);return nt(e,s,l,o?.class,o?.className)};import*as lt from"react";import*as ao from"react-dom";import*as P from"react";import*as at from"react";function it(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Zt(...e){return t=>{let o=!1,r=e.map(n=>{let i=it(n,t);return!o&&typeof i=="function"&&(o=!0),i});if(o)return()=>{for(let n=0;n{let{children:n,...i}=o,s=null,a=!1,l=[];ct(n)&&typeof ye=="function"&&(n=ye(n._payload)),P.Children.forEach(n,h=>{if(oo(h)){a=!0;let y=h,w="child"in y.props?y.props.child:y.props.children;ct(w)&&typeof ye=="function"&&(w=ye(w._payload)),s=Qt(y,w),l.push(s?.props?.children)}else l.push(h)}),s?s=P.cloneElement(s,void 0,l):!a&&P.Children.count(n)===1&&P.isValidElement(n)&&(s=n);let c=s?to(s):void 0,d=Z(r,c);if(!s){if(n||n===0)throw new Error(a?io(e):so(e));return n}let p=eo(i,s.props??{});return s.type!==P.Fragment&&(p.ref=r?d:c),P.cloneElement(s,p)});return t.displayName=`${e}.Slot`,t}var Jt=Symbol.for("radix.slottable");var Qt=(e,t)=>{if("child"in e.props){let o=e.props.child;return P.isValidElement(o)?P.cloneElement(o,void 0,e.props.children(o.props.children)):null}return P.isValidElement(t)?t:null};function eo(e,t){let o={...t};for(let r in t){let n=e[r],i=t[r];/^on[A-Z]/.test(r)?n&&i?o[r]=(...a)=>{let l=i(...a);return n(...a),l}:n&&(o[r]=n):r==="style"?o[r]={...n,...i}:r==="className"&&(o[r]=[n,i].filter(Boolean).join(" "))}return{...e,...o}}function to(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function oo(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Jt}var ro=Symbol.for("react.lazy");function ct(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ro&&"_payload"in e&&no(e._payload)}function no(e){return typeof e=="object"&&e!==null&&"then"in e}var so=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,io=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,ye=P[" use ".trim().toString()];import{jsx as co}from"react/jsx-runtime";var lo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=lo.reduce((e,t)=>{let o=ce(`Primitive.${t}`),r=lt.forwardRef((n,i)=>{let{asChild:s,...a}=n,l=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),co(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});import*as $ from"react";import{jsx as uo}from"react/jsx-runtime";function se(e,t=[]){let o=[];function r(i,s){let a=$.createContext(s);a.displayName=i+"Context";let l=o.length;o=[...o,s];let c=p=>{let{scope:h,children:y,...w}=p,x=h?.[e]?.[l]||a,g=$.useMemo(()=>w,Object.values(w));return uo(x.Provider,{value:g,children:y})};c.displayName=i+"Provider";function d(p,h){let y=h?.[e]?.[l]||a,w=$.useContext(y);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[c,d]}let n=()=>{let i=o.map(s=>$.createContext(s));return function(a){let l=a?.[e]||i;return $.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return n.scopeName=e,[r,fo(n,...t)]}function fo(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(i){let s=r.reduce((a,{useScope:l,scopeName:c})=>{let p=l(i)[`__scope${c}`];return{...a,...p}},{});return $.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}import*as D from"react";import{jsx as Fe}from"react/jsx-runtime";import*as xe from"react";import{jsx as qr}from"react/jsx-runtime";function ut(e){let t=e+"CollectionProvider",[o,r]=se(t),[n,i]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=x=>{let{scope:g,children:C}=x,R=D.useRef(null),k=D.useRef(new Map).current;return Fe(n,{scope:g,itemMap:k,collectionRef:R,children:C})};s.displayName=t;let a=e+"CollectionSlot",l=ce(a),c=D.forwardRef((x,g)=>{let{scope:C,children:R}=x,k=i(a,C),S=Z(g,k.collectionRef);return Fe(l,{ref:S,children:R})});c.displayName=a;let d=e+"CollectionItemSlot",p="data-radix-collection-item",h=ce(d),y=D.forwardRef((x,g)=>{let{scope:C,children:R,...k}=x,S=D.useRef(null),F=Z(g,S),G=i(d,C);return D.useEffect(()=>(G.itemMap.set(S,{ref:S,...k}),()=>void G.itemMap.delete(S))),Fe(h,{[p]:"",ref:F,children:R})});y.displayName=d;function w(x){let g=i(e+"CollectionConsumer",x);return D.useCallback(()=>{let R=g.collectionRef.current;if(!R)return[];let k=Array.from(R.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((G,_)=>k.indexOf(G.ref.current)-k.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:c,ItemSlot:y},w,r]}var Zr=!!(typeof window<"u"&&window.document&&window.document.createElement);function V(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}import*as L from"react";import*as dt from"react";var J=globalThis?.document?dt.useLayoutEffect:()=>{};import*as Re from"react";var mo=L[" useInsertionEffect ".trim().toString()]||J;function we({prop:e,defaultProp:t,onChange:o=()=>{},caller:r}){let[n,i,s]=po({defaultProp:t,onChange:o}),a=e!==void 0,l=a?e:n;{let d=L.useRef(e!==void 0);L.useEffect(()=>{let p=d.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}let c=L.useCallback(d=>{if(a){let p=bo(d)?d(e):d;p!==e&&s.current?.(p)}else i(d)},[a,e,i,s]);return[l,c]}function po({defaultProp:e,onChange:t}){let[o,r]=L.useState(e),n=L.useRef(o),i=L.useRef(t);return mo(()=>{i.current=t},[t]),L.useEffect(()=>{n.current!==o&&(i.current?.(o),n.current=o)},[o,n]),[o,r,i]}function bo(e){return typeof e=="function"}var tn=Symbol("RADIX:SYNC_STATE");import*as M from"react";import*as mt from"react";function go(e,t){return mt.useReducer((o,r)=>t[o][r]??o,e)}var Ge=e=>{let{present:t,children:o}=e,r=ho(t),n=typeof o=="function"?o({present:r.isPresent}):M.Children.only(o),i=vo(r.ref,yo(n));return typeof o=="function"||r.isPresent?M.cloneElement(n,{ref:i}):null};Ge.displayName="Presence";function ho(e){let[t,o]=M.useState(),r=M.useRef(null),n=M.useRef(e),i=M.useRef("none"),s=e?"mounted":"unmounted",[a,l]=go(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return M.useEffect(()=>{let c=ke(r.current);i.current=a==="mounted"?c:"none"},[a]),J(()=>{let c=r.current,d=n.current;if(d!==e){let h=i.current,y=ke(c);e?l("MOUNT"):y==="none"||c?.display==="none"?l("UNMOUNT"):l(d&&h!==y?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,l]),J(()=>{if(t){let c,d=t.ownerDocument.defaultView??window,p=y=>{let x=ke(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&x&&(l("ANIMATION_END"),!n.current)){let g=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=y=>{y.target===t&&(i.current=ke(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:M.useCallback(c=>{r.current=c?getComputedStyle(c):null,o(c)},[])}}function ft(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vo(...e){let t=M.useRef(e);return t.current=e,M.useCallback(o=>{let r=t.current,n=!1,i=r.map(s=>{let a=ft(s,o);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let s=0;s{}),wo=0;function Ce(e){let[t,o]=Le.useState(xo());return J(()=>{e||o(r=>r??String(wo++))},[e]),e||(t?`radix-${t}`:"")}import*as Se from"react";import{jsx as ln}from"react/jsx-runtime";var Ro=Se.createContext(void 0);function Ie(e){let t=Se.useContext(Ro);return e||t||"ltr"}import*as ie from"react";function pt(e){let t=ie.useRef(e);return ie.useEffect(()=>{t.current=e}),ie.useMemo(()=>(...o)=>t.current?.(...o),[])}import*as E from"react";import{jsx as Q}from"react/jsx-runtime";var De="rovingFocusGroup.onEntryFocus",ko={bubbles:!1,cancelable:!0},le="RovingFocusGroup",[Ve,bt,Co]=ut(le),[So,je]=se(le,[Co]),[Io,Ao]=So(le),gt=E.forwardRef((e,t)=>Q(Ve.Provider,{scope:e.__scopeRovingFocusGroup,children:Q(Ve.Slot,{scope:e.__scopeRovingFocusGroup,children:Q(To,{...e,ref:t})})}));gt.displayName=le;var To=E.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:o,orientation:r,loop:n=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...p}=e,h=E.useRef(null),y=Z(t,h),w=Ie(i),[x,g]=we({prop:s,defaultProp:a??null,onChange:l,caller:le}),[C,R]=E.useState(!1),k=pt(c),S=bt(o),F=E.useRef(!1),[G,_]=E.useState(0);return E.useEffect(()=>{let u=h.current;if(u)return u.addEventListener(De,k),()=>u.removeEventListener(De,k)},[k]),Q(Io,{scope:o,orientation:r,dir:w,loop:n,currentTabStopId:x,onItemFocus:E.useCallback(u=>g(u),[g]),onItemShiftTab:E.useCallback(()=>R(!0),[]),onFocusableItemAdd:E.useCallback(()=>_(u=>u+1),[]),onFocusableItemRemove:E.useCallback(()=>_(u=>u-1),[]),children:Q(K.div,{tabIndex:C||G===0?-1:0,"data-orientation":r,...p,ref:y,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{F.current=!0}),onFocus:V(e.onFocus,u=>{let N=!F.current;if(u.target===u.currentTarget&&N&&!C){let ae=new CustomEvent(De,ko);if(u.currentTarget.dispatchEvent(ae),!ae.defaultPrevented){let re=S().filter(I=>I.focusable),ne=re.find(I=>I.active),fe=re.find(I=>I.id===x),B=[ne,fe,...re].filter(Boolean).map(I=>I.ref.current);yt(B,d)}}F.current=!1}),onBlur:V(e.onBlur,()=>R(!1))})})}),ht="RovingFocusGroupItem",vt=E.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:o,focusable:r=!0,active:n=!1,tabStopId:i,children:s,...a}=e,l=Ce(),c=i||l,d=Ao(ht,o),p=d.currentTabStopId===c,h=bt(o),{onFocusableItemAdd:y,onFocusableItemRemove:w,currentTabStopId:x}=d;return E.useEffect(()=>{if(r)return y(),()=>w()},[r,y,w]),Q(Ve.ItemSlot,{scope:o,id:c,focusable:r,active:n,children:Q(K.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:V(e.onMouseDown,g=>{r?d.onItemFocus(c):g.preventDefault()}),onFocus:V(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:V(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;let C=Mo(g,d.orientation,d.dir);if(C!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let k=h().filter(S=>S.focusable).map(S=>S.ref.current);if(C==="last")k.reverse();else if(C==="prev"||C==="next"){C==="prev"&&k.reverse();let S=k.indexOf(g.currentTarget);k=d.loop?No(k,S+1):k.slice(S+1)}setTimeout(()=>yt(k))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:x!=null}):s})})});vt.displayName=ht;var Eo={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Po(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Mo(e,t,o){let r=Po(e.key,o);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Eo[r]}function yt(e,t=!1){let o=document.activeElement;for(let r of e)if(r===o||(r.focus({preventScroll:t}),document.activeElement!==o))return}function No(e,t){return e.map((o,r)=>e[(t+r)%e.length])}var xt=gt,wt=vt;var ee={};Xt(ee,{Content:()=>Vo,List:()=>Lo,Root:()=>Go,Tabs:()=>We,TabsContent:()=>Ke,TabsList:()=>Ue,TabsTrigger:()=>Be,Trigger:()=>Do,createTabsScope:()=>_o});import*as W from"react";import{jsx as Y}from"react/jsx-runtime";var Ae="Tabs",[zo,_o]=se(Ae,[je]),Rt=je(),[Fo,$e]=zo(Ae),We=W.forwardRef((e,t)=>{let{__scopeTabs:o,value:r,onValueChange:n,defaultValue:i,orientation:s="horizontal",dir:a,activationMode:l="automatic",...c}=e,d=Ie(a),[p,h]=we({prop:r,onChange:n,defaultProp:i??"",caller:Ae});return Y(Fo,{scope:o,baseId:Ce(),value:p,onValueChange:h,orientation:s,dir:d,activationMode:l,children:Y(K.div,{dir:d,"data-orientation":s,...c,ref:t})})});We.displayName=Ae;var kt="TabsList",Ue=W.forwardRef((e,t)=>{let{__scopeTabs:o,loop:r=!0,...n}=e,i=$e(kt,o),s=Rt(o);return Y(xt,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:r,children:Y(K.div,{role:"tablist","aria-orientation":i.orientation,...n,ref:t})})});Ue.displayName=kt;var Ct="TabsTrigger",Be=W.forwardRef((e,t)=>{let{__scopeTabs:o,value:r,disabled:n=!1,...i}=e,s=$e(Ct,o),a=Rt(o),l=It(s.baseId,r),c=At(s.baseId,r),d=r===s.value;return Y(wt,{asChild:!0,...a,focusable:!n,active:d,children:Y(K.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:l,...i,ref:t,onMouseDown:V(e.onMouseDown,p=>{!n&&p.button===0&&p.ctrlKey===!1?s.onValueChange(r):p.preventDefault()}),onKeyDown:V(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&s.onValueChange(r)}),onFocus:V(e.onFocus,()=>{let p=s.activationMode!=="manual";!d&&!n&&p&&s.onValueChange(r)})})})});Be.displayName=Ct;var St="TabsContent",Ke=W.forwardRef((e,t)=>{let{__scopeTabs:o,value:r,forceMount:n,children:i,...s}=e,a=$e(St,o),l=It(a.baseId,r),c=At(a.baseId,r),d=r===a.value,p=W.useRef(d);return W.useEffect(()=>{let h=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(h)},[]),Y(Ge,{present:n||d,children:({present:h})=>Y(K.div,{"data-state":d?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:h&&i})})});Ke.displayName=St;function It(e,t){return`${e}-trigger-${t}`}function At(e,t){return`${e}-content-${t}`}var Go=We,Lo=Ue,Do=Be,Vo=Ke;var jo=(e,t)=>{let o=new Array(e.length+t.length);for(let r=0;r({classGroupId:e,validator:t}),zt=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),Pe="-",Tt=[],Wo="arbitrary..",Uo=e=>{let t=Ko(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Bo(s);let a=s.split(Pe),l=a[0]===""&&a.length>1?1:0;return _t(a,l,t)},getConflictingClassGroupIds:(s,a)=>{if(a){let l=r[s],c=o[s];return l?c?jo(c,l):l:c||Tt}return o[s]||Tt}}},_t=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;let n=e[t],i=o.nextPart.get(n);if(i){let c=_t(e,t+1,i);if(c)return c}let s=o.validators;if(s===null)return;let a=t===0?e.join(Pe):e.slice(t).join(Pe),l=s.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?Wo+r:void 0})(),Ko=e=>{let{theme:t,classGroups:o}=e;return Yo(o,t)},Yo=(e,t)=>{let o=zt();for(let r in e){let n=e[r];qe(n,o,r,t)}return o},qe=(e,t,o,r)=>{let n=e.length;for(let i=0;i{if(typeof e=="string"){qo(e,t,o);return}if(typeof e=="function"){Xo(e,t,o,r);return}Zo(e,t,o,r)},qo=(e,t,o)=>{let r=e===""?t:Ft(t,e);r.classGroupId=o},Xo=(e,t,o,r)=>{if(Jo(e)){qe(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push($o(o,e))},Zo=(e,t,o,r)=>{let n=Object.entries(e),i=n.length;for(let s=0;s{let o=e,r=t.split(Pe),n=r.length;for(let i=0;i"isThemeGetter"in e&&e.isThemeGetter===!0,Qo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null),n=(i,s)=>{o[i]=s,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(i){let s=o[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return n(i,s),s},set(i,s){i in o?o[i]=s:n(i,s)}}},He="!",Et=":",er=[],Pt=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),tr=e=>{let{prefix:t,experimentalParseClassName:o}=e,r=n=>{let i=[],s=0,a=0,l=0,c,d=n.length;for(let x=0;xl?c-l:void 0;return Pt(i,y,h,w)};if(t){let n=t+Et,i=r;r=s=>s.startsWith(n)?i(s.slice(n.length)):Pt(er,!1,s,void 0,!0)}if(o){let n=r;r=i=>o({className:i,parseClassName:n})}return r},or=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{let r=[],n=[];for(let i=0;i0&&(n.sort(),r.push(...n),n=[]),r.push(s)):n.push(s)}return n.length>0&&(n.sort(),r.push(...n)),r}},rr=e=>({cache:Qo(e.cacheSize),parseClassName:tr(e),sortModifiers:or(e),postfixLookupClassGroupIds:nr(e),...Uo(e)}),nr=e=>{let t=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let r=0;r{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:i,postfixLookupClassGroupIds:s}=t,a=[],l=e.trim().split(sr),c="";for(let d=l.length-1;d>=0;d-=1){let p=l[d],{isExternal:h,modifiers:y,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:g}=o(p);if(h){c=p+(c.length>0?" "+c:c);continue}let C=!!g,R;if(C){let _=x.substring(0,g);R=r(_);let u=R&&s[R]?r(x):void 0;u&&u!==R&&(R=u,C=!1)}else R=r(x);if(!R){if(!C){c=p+(c.length>0?" "+c:c);continue}if(R=r(x),!R){c=p+(c.length>0?" "+c:c);continue}C=!1}let k=y.length===0?"":y.length===1?y[0]:i(y).join(":"),S=w?k+He:k,F=S+R;if(a.indexOf(F)>-1)continue;a.push(F);let G=n(R,C);for(let _=0;_0?" "+c:c)}return c},ar=(...e)=>{let t=0,o,r,n="";for(;t{if(typeof e=="string")return e;let t,o="";for(let r=0;r{let o,r,n,i,s=l=>{let c=t.reduce((d,p)=>p(d),e());return o=rr(c),r=o.cache.get,n=o.cache.set,i=a,a(l)},a=l=>{let c=r(l);if(c)return c;let d=ir(l,o);return n(l,d),d};return i=s,(...l)=>i(ar(...l))},lr=[],A=e=>{let t=o=>o[e]||lr;return t.isThemeGetter=!0,t},Lt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Dt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ur=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,dr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,br=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,H=e=>ur.test(e),v=e=>!!e&&!Number.isNaN(Number(e)),j=e=>!!e&&Number.isInteger(Number(e)),Ye=e=>e.endsWith("%")&&v(e.slice(0,-1)),U=e=>dr.test(e),Vt=()=>!0,gr=e=>fr.test(e)&&!mr.test(e),Xe=()=>!1,hr=e=>pr.test(e),vr=e=>br.test(e),yr=e=>!f(e)&&!m(e),xr=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),wr=e=>q(e,Wt,Xe),f=e=>Lt.test(e),te=e=>q(e,Ut,gr),Mt=e=>q(e,Er,v),Rr=e=>q(e,Kt,Vt),kr=e=>q(e,Bt,Xe),Nt=e=>q(e,jt,Xe),Cr=e=>q(e,$t,vr),Te=e=>q(e,Yt,hr),m=e=>Dt.test(e),ue=e=>oe(e,Ut),Sr=e=>oe(e,Bt),Ot=e=>oe(e,jt),Ir=e=>oe(e,Wt),Ar=e=>oe(e,$t),Ee=e=>oe(e,Yt,!0),Tr=e=>oe(e,Kt,!0),q=(e,t,o)=>{let r=Lt.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},oe=(e,t,o=!1)=>{let r=Dt.exec(e);return r?r[1]?t(r[1]):o:!1},jt=e=>e==="position"||e==="percentage",$t=e=>e==="image"||e==="url",Wt=e=>e==="length"||e==="size"||e==="bg-size",Ut=e=>e==="length",Er=e=>e==="number",Bt=e=>e==="family-name",Kt=e=>e==="number"||e==="weight",Yt=e=>e==="shadow";var Pr=()=>{let e=A("color"),t=A("font"),o=A("text"),r=A("font-weight"),n=A("tracking"),i=A("leading"),s=A("breakpoint"),a=A("container"),l=A("spacing"),c=A("radius"),d=A("shadow"),p=A("inset-shadow"),h=A("text-shadow"),y=A("drop-shadow"),w=A("blur"),x=A("perspective"),g=A("aspect"),C=A("ease"),R=A("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...S(),m,f],G=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],u=()=>[m,f,l],N=()=>[H,"full","auto",...u()],ae=()=>[j,"none","subgrid",m,f],re=()=>["auto",{span:["full",j,m,f]},j,m,f],ne=()=>[j,"auto",m,f],fe=()=>["auto","min","max","fr",m,f],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...u()],X=()=>[H,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...u()],Ne=()=>[H,"screen","full","dvw","lvw","svw","min","max","fit",...u()],Oe=()=>[H,"screen","full","lh","dvh","lvh","svh","min","max","fit",...u()],b=()=>[e,m,f],Ze=()=>[...S(),Ot,Nt,{position:[m,f]}],Je=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Qe=()=>["auto","cover","contain",Ir,wr,{size:[m,f]}],ze=()=>[Ye,ue,te],O=()=>["","none","full",c,m,f],z=()=>["",v,ue,te],pe=()=>["solid","dashed","dotted","double"],et=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[v,Ye,Ot,Nt],tt=()=>["","none",w,m,f],be=()=>["none",v,m,f],ge=()=>["none",v,m,f],_e=()=>[v,m,f],he=()=>[H,"full",...u()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[U],breakpoint:[U],color:[Vt],container:[U],"drop-shadow":[U],ease:["in","out","in-out"],font:[yr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[U],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[U],shadow:[U],spacing:["px",v],text:[U],"text-shadow":[U],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",H,f,m,g]}],container:["container"],"container-type":[{"@container":["","normal","size",m,f]}],"container-named":[xr],columns:[{columns:[v,f,m,a]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[j,"auto",m,f]}],basis:[{basis:[H,"full","auto",a,...u()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[v,H,"auto","initial","none",f]}],grow:[{grow:["",v,m,f]}],shrink:[{shrink:["",v,m,f]}],order:[{order:[j,"first","last","none",m,f]}],"grid-cols":[{"grid-cols":ae()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":ae()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:u()}],"gap-x":[{"gap-x":u()}],"gap-y":[{"gap-y":u()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:u()}],px:[{px:u()}],py:[{py:u()}],ps:[{ps:u()}],pe:[{pe:u()}],pbs:[{pbs:u()}],pbe:[{pbe:u()}],pt:[{pt:u()}],pr:[{pr:u()}],pb:[{pb:u()}],pl:[{pl:u()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mbs:[{mbs:I()}],mbe:[{mbe:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":u()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":u()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...Ne()]}],"min-inline-size":[{"min-inline":["auto",...Ne()]}],"max-inline-size":[{"max-inline":["none",...Ne()]}],"block-size":[{block:["auto",...Oe()]}],"min-block-size":[{"min-block":["auto",...Oe()]}],"max-block-size":[{"max-block":["none",...Oe()]}],w:[{w:[a,"screen",...X()]}],"min-w":[{"min-w":[a,"screen","none",...X()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",o,ue,te]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Tr,Rr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ye,f]}],"font-family":[{font:[Sr,kr,t]}],"font-features":[{"font-features":[f]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,m,f]}],"line-clamp":[{"line-clamp":[v,"none",m,Mt]}],leading:[{leading:[i,...u()]}],"list-image":[{"list-image":["none",m,f]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",m,f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:b()}],"text-color":[{text:b()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[v,"from-font","auto",m,te]}],"text-decoration-color":[{decoration:b()}],"underline-offset":[{"underline-offset":[v,"auto",m,f]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"tab-size":[{tab:[j,m,f]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m,f]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",m,f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ze()}],"bg-repeat":[{bg:Je()}],"bg-size":[{bg:Qe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},j,m,f],radial:["",m,f],conic:[j,m,f]},Ar,Cr]}],"bg-color":[{bg:b()}],"gradient-from-pos":[{from:ze()}],"gradient-via-pos":[{via:ze()}],"gradient-to-pos":[{to:ze()}],"gradient-from":[{from:b()}],"gradient-via":[{via:b()}],"gradient-to":[{to:b()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"hidden","none"]}],"border-color":[{border:b()}],"border-color-x":[{"border-x":b()}],"border-color-y":[{"border-y":b()}],"border-color-s":[{"border-s":b()}],"border-color-e":[{"border-e":b()}],"border-color-bs":[{"border-bs":b()}],"border-color-be":[{"border-be":b()}],"border-color-t":[{"border-t":b()}],"border-color-r":[{"border-r":b()}],"border-color-b":[{"border-b":b()}],"border-color-l":[{"border-l":b()}],"divide-color":[{divide:b()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[v,m,f]}],"outline-w":[{outline:["",v,ue,te]}],"outline-color":[{outline:b()}],shadow:[{shadow:["","none",d,Ee,Te]}],"shadow-color":[{shadow:b()}],"inset-shadow":[{"inset-shadow":["none",p,Ee,Te]}],"inset-shadow-color":[{"inset-shadow":b()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:b()}],"ring-offset-w":[{"ring-offset":[v,te]}],"ring-offset-color":[{"ring-offset":b()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":b()}],"text-shadow":[{"text-shadow":["none",h,Ee,Te]}],"text-shadow-color":[{"text-shadow":b()}],opacity:[{opacity:[v,m,f]}],"mix-blend":[{"mix-blend":[...et(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":et()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[v]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":b()}],"mask-image-linear-to-color":[{"mask-linear-to":b()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":b()}],"mask-image-t-to-color":[{"mask-t-to":b()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":b()}],"mask-image-r-to-color":[{"mask-r-to":b()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":b()}],"mask-image-b-to-color":[{"mask-b-to":b()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":b()}],"mask-image-l-to-color":[{"mask-l-to":b()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":b()}],"mask-image-x-to-color":[{"mask-x-to":b()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":b()}],"mask-image-y-to-color":[{"mask-y-to":b()}],"mask-image-radial":[{"mask-radial":[m,f]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":b()}],"mask-image-radial-to-color":[{"mask-radial-to":b()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[v]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":b()}],"mask-image-conic-to-color":[{"mask-conic-to":b()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ze()}],"mask-repeat":[{mask:Je()}],"mask-size":[{mask:Qe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",m,f]}],filter:[{filter:["","none",m,f]}],blur:[{blur:tt()}],brightness:[{brightness:[v,m,f]}],contrast:[{contrast:[v,m,f]}],"drop-shadow":[{"drop-shadow":["","none",y,Ee,Te]}],"drop-shadow-color":[{"drop-shadow":b()}],grayscale:[{grayscale:["",v,m,f]}],"hue-rotate":[{"hue-rotate":[v,m,f]}],invert:[{invert:["",v,m,f]}],saturate:[{saturate:[v,m,f]}],sepia:[{sepia:["",v,m,f]}],"backdrop-filter":[{"backdrop-filter":["","none",m,f]}],"backdrop-blur":[{"backdrop-blur":tt()}],"backdrop-brightness":[{"backdrop-brightness":[v,m,f]}],"backdrop-contrast":[{"backdrop-contrast":[v,m,f]}],"backdrop-grayscale":[{"backdrop-grayscale":["",v,m,f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v,m,f]}],"backdrop-invert":[{"backdrop-invert":["",v,m,f]}],"backdrop-opacity":[{"backdrop-opacity":[v,m,f]}],"backdrop-saturate":[{"backdrop-saturate":[v,m,f]}],"backdrop-sepia":[{"backdrop-sepia":["",v,m,f]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":u()}],"border-spacing-x":[{"border-spacing-x":u()}],"border-spacing-y":[{"border-spacing-y":u()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",m,f]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[v,"initial",m,f]}],ease:[{ease:["linear","initial",C,m,f]}],delay:[{delay:[v,m,f]}],animate:[{animate:["none",R,m,f]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,m,f]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:be()}],"rotate-x":[{"rotate-x":be()}],"rotate-y":[{"rotate-y":be()}],"rotate-z":[{"rotate-z":be()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:_e()}],"skew-x":[{"skew-x":_e()}],"skew-y":[{"skew-y":_e()}],transform:[{transform:[m,f,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],zoom:[{zoom:[j,m,f]}],accent:[{accent:b()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:b()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m,f]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":b()}],"scrollbar-track-color":[{"scrollbar-track":b()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mbs":[{"scroll-mbs":u()}],"scroll-mbe":[{"scroll-mbe":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pbs":[{"scroll-pbs":u()}],"scroll-pbe":[{"scroll-pbe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m,f]}],fill:[{fill:["none",...b()]}],"stroke-w":[{stroke:[v,ue,te,Mt]}],stroke:[{stroke:["none",...b()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Ht=cr(Pr);function de(...e){return Ht(ve(e))}import{jsx as Me}from"react/jsx-runtime";function Dn({className:e,orientation:t="horizontal",...o}){return Me(ee.Root,{"data-slot":"tabs","data-orientation":t,orientation:t,className:de("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...o})}var Mr=st("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function Vn({className:e,variant:t="default",...o}){return Me(ee.List,{"data-slot":"tabs-list","data-variant":t,className:de(Mr({variant:t}),e),...o})}function jn({className:e,...t}){return Me(ee.Trigger,{"data-slot":"tabs-trigger",className:de("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",e),...t})}function $n({className:e,...t}){return Me(ee.Content,{"data-slot":"tabs-content",className:de("flex-1 outline-none",e),...t})}export{Dn as Tabs,$n as TabsContent,Vn as TabsList,jn as TabsTrigger,Mr as tabsListVariants}; diff --git a/b/83220bdc9fd9782ede55a294f842b8997298aa50ade14686144006d1c7f82814 b/b/83220bdc9fd9782ede55a294f842b8997298aa50ade14686144006d1c7f82814 new file mode 100644 index 0000000000000000000000000000000000000000..2bdb47bfeca9c41b47d2f6b28c9c2235c0c418c0 --- /dev/null +++ b/b/83220bdc9fd9782ede55a294f842b8997298aa50ade14686144006d1c7f82814 @@ -0,0 +1,51 @@ +import{forwardRef as Ze,createElement as Je}from"react";var xe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),j=(...e)=>e.filter((o,t,a)=>!!o&&o.trim()!==""&&a.indexOf(o)===t).join(" ").trim();import{forwardRef as Ke,createElement as ge}from"react";var Ce={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var he=Ke(({color:e="currentColor",size:o=24,strokeWidth:t=2,absoluteStrokeWidth:a,className:d="",children:i,iconNode:s,...p},m)=>ge("svg",{ref:m,...Ce,width:o,height:o,stroke:e,strokeWidth:a?Number(t)*24/Number(o):t,className:j("lucide",d),...p},[...s.map(([c,x])=>ge(c,x)),...Array.isArray(i)?i:[i]]));var Se=(e,o)=>{let t=Ze(({className:a,...d},i)=>Je(he,{ref:i,iconNode:o,className:j(`lucide-${xe(e)}`,a),...d}));return t.displayName=`${e}`,t};var D=Se("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function we(e){var o,t,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var d=e.length;for(o=0;o{let t=new Array(e.length+o.length);for(let a=0;a({classGroupId:e,validator:o}),De=(e=new Map,o=null,t)=>({nextPart:e,validators:o,classGroupId:t}),$="-",be=[],Ye="arbitrary..",_e=e=>{let o=ea(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return $e(s);let p=s.split($),m=p[0]===""&&p.length>1?1:0;return ye(p,m,o)},getConflictingClassGroupIds:(s,p)=>{if(p){let m=a[s],c=t[s];return m?c?Qe(c,m):m:c||be}return t[s]||be}}},ye=(e,o,t)=>{if(e.length-o===0)return t.classGroupId;let d=e[o],i=t.nextPart.get(d);if(i){let c=ye(e,o+1,i);if(c)return c}let s=t.validators;if(s===null)return;let p=o===0?e.join($):e.slice(o).join($),m=s.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let o=e.slice(1,-1),t=o.indexOf(":"),a=o.slice(0,t);return a?Ye+a:void 0})(),ea=e=>{let{theme:o,classGroups:t}=e;return aa(t,o)},aa=(e,o)=>{let t=De();for(let a in e){let d=e[a];re(d,t,a,o)}return t},re=(e,o,t,a)=>{let d=e.length;for(let i=0;i{if(typeof e=="string"){oa(e,o,t);return}if(typeof e=="function"){la(e,o,t,a);return}ua(e,o,t,a)},oa=(e,o,t)=>{let a=e===""?o:Re(o,e);a.classGroupId=t},la=(e,o,t,a)=>{if(da(e)){re(e(a),o,t,a);return}o.validators===null&&(o.validators=[]),o.validators.push(je(t,e))},ua=(e,o,t,a)=>{let d=Object.entries(e),i=d.length;for(let s=0;s{let t=e,a=o.split($),d=a.length;for(let i=0;i"isThemeGetter"in e&&e.isThemeGetter===!0,ra=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,t=Object.create(null),a=Object.create(null),d=(i,s)=>{t[i]=s,o++,o>e&&(o=0,a=t,t=Object.create(null))};return{get(i){let s=t[i];if(s!==void 0)return s;if((s=a[i])!==void 0)return d(i,s),s},set(i,s){i in t?t[i]=s:d(i,s)}}},de="!",Pe=":",sa=[],Ae=(e,o,t,a,d)=>({modifiers:e,hasImportantModifier:o,baseClassName:t,maybePostfixModifierPosition:a,isExternal:d}),fa=e=>{let{prefix:o,experimentalParseClassName:t}=e,a=d=>{let i=[],s=0,p=0,m=0,c,x=d.length;for(let S=0;Sm?c-m:void 0;return Ae(i,A,T,W)};if(o){let d=o+Pe,i=a;a=s=>s.startsWith(d)?i(s.slice(d.length)):Ae(sa,!1,s,void 0,!0)}if(t){let d=a;a=i=>t({className:i,parseClassName:d})}return a},ia=e=>{let o=new Map;return e.orderSensitiveModifiers.forEach((t,a)=>{o.set(t,1e6+a)}),t=>{let a=[],d=[];for(let i=0;i0&&(d.sort(),a.push(...d),d=[]),a.push(s)):d.push(s)}return d.length>0&&(d.sort(),a.push(...d)),a}},ca=e=>({cache:ra(e.cacheSize),parseClassName:fa(e),sortModifiers:ia(e),postfixLookupClassGroupIds:na(e),..._e(e)}),na=e=>{let o=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let a=0;a{let{parseClassName:t,getClassGroupId:a,getConflictingClassGroupIds:d,sortModifiers:i,postfixLookupClassGroupIds:s}=o,p=[],m=e.trim().split(pa),c="";for(let x=m.length-1;x>=0;x-=1){let C=m[x],{isExternal:T,modifiers:A,hasImportantModifier:W,baseClassName:S,maybePostfixModifierPosition:b}=t(C);if(T){c=C+(c.length>0?" "+c:c);continue}let q=!!b,w;if(q){let M=S.substring(0,b);w=a(M);let r=w&&s[w]?a(S):void 0;r&&r!==w&&(w=r,q=!1)}else w=a(S);if(!w){if(!q){c=C+(c.length>0?" "+c:c);continue}if(w=a(S),!w){c=C+(c.length>0?" "+c:c);continue}q=!1}let E=A.length===0?"":A.length===1?A[0]:i(A).join(":"),H=W?E+de:E,G=H+w;if(p.indexOf(G)>-1)continue;p.push(G);let z=d(w,q);for(let M=0;M0?" "+c:c)}return c},La=(...e)=>{let o=0,t,a,d="";for(;o{if(typeof e=="string")return e;let o,t="";for(let a=0;a{let t,a,d,i,s=m=>{let c=o.reduce((x,C)=>C(x),e());return t=ca(c),a=t.cache.get,d=t.cache.set,i=p,p(m)},p=m=>{let c=a(m);if(c)return c;let x=ma(m,t);return d(m,x),x};return i=s,(...m)=>i(La(...m))},xa=[],L=e=>{let o=t=>t[e]||xa;return o.isThemeGetter=!0,o},qe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ve=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ca=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ga=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ha=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Sa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,wa=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ka=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,y=e=>Ca.test(e),n=e=>!!e&&!Number.isNaN(Number(e)),B=e=>!!e&&Number.isInteger(Number(e)),ue=e=>e.endsWith("%")&&n(e.slice(0,-1)),F=e=>ga.test(e),Ue=()=>!0,ba=e=>ha.test(e)&&!Sa.test(e),se=()=>!1,Pa=e=>wa.test(e),Aa=e=>ka.test(e),Ba=e=>!l(e)&&!u(e),Ma=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Fa=e=>R(e,Ge,se),l=e=>qe.test(e),U=e=>R(e,ze,ba),Be=e=>R(e,Oa,n),Da=e=>R(e,We,Ue),ya=e=>R(e,Ve,se),Me=e=>R(e,Oe,se),Ra=e=>R(e,He,Aa),Y=e=>R(e,Ee,Pa),u=e=>ve.test(e),X=e=>O(e,ze),Ta=e=>O(e,Ve),Fe=e=>O(e,Oe),qa=e=>O(e,Ge),va=e=>O(e,He),_=e=>O(e,Ee,!0),Ua=e=>O(e,We,!0),R=(e,o,t)=>{let a=qe.exec(e);return a?a[1]?o(a[1]):t(a[2]):!1},O=(e,o,t=!1)=>{let a=ve.exec(e);return a?a[1]?o(a[1]):t:!1},Oe=e=>e==="position"||e==="percentage",He=e=>e==="image"||e==="url",Ge=e=>e==="length"||e==="size"||e==="bg-size",ze=e=>e==="length",Oa=e=>e==="number",Ve=e=>e==="family-name",We=e=>e==="number"||e==="weight",Ee=e=>e==="shadow";var Ha=()=>{let e=L("color"),o=L("font"),t=L("text"),a=L("font-weight"),d=L("tracking"),i=L("leading"),s=L("breakpoint"),p=L("container"),m=L("spacing"),c=L("radius"),x=L("shadow"),C=L("inset-shadow"),T=L("text-shadow"),A=L("drop-shadow"),W=L("blur"),S=L("perspective"),b=L("aspect"),q=L("ease"),w=L("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...H(),u,l],z=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],r=()=>[u,l,m],k=()=>[y,"full","auto",...r()],fe=()=>[B,"none","subgrid",u,l],ie=()=>["auto",{span:["full",B,u,l]},B,u,l],N=()=>[B,"auto",u,l],ce=()=>["auto","min","max","fr",u,l],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...r()],v=()=>[y,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...r()],ae=()=>[y,"screen","full","dvw","lvw","svw","min","max","fit",...r()],te=()=>[y,"screen","full","lh","dvh","lvh","svh","min","max","fit",...r()],f=()=>[e,u,l],ne=()=>[...H(),Fe,Me,{position:[u,l]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],me=()=>["auto","cover","contain",qa,Fa,{size:[u,l]}],oe=()=>[ue,X,U],g=()=>["","none","full",c,u,l],h=()=>["",n,X,U],K=()=>["solid","dashed","dotted","double"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[n,ue,Fe,Me],Ie=()=>["","none",W,u,l],Z=()=>["none",n,u,l],J=()=>["none",n,u,l],le=()=>[n,u,l],Q=()=>[y,"full",...r()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[F],breakpoint:[F],color:[Ue],container:[F],"drop-shadow":[F],ease:["in","out","in-out"],font:[Ba],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[F],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[F],shadow:[F],spacing:["px",n],text:[F],"text-shadow":[F],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",y,l,u,b]}],container:["container"],"container-type":[{"@container":["","normal","size",u,l]}],"container-named":[Ma],columns:[{columns:[n,l,u,p]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{"inset-s":k(),start:k()}],end:[{"inset-e":k(),end:k()}],"inset-bs":[{"inset-bs":k()}],"inset-be":[{"inset-be":k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[B,"auto",u,l]}],basis:[{basis:[y,"full","auto",p,...r()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[n,y,"auto","initial","none",l]}],grow:[{grow:["",n,u,l]}],shrink:[{shrink:["",n,u,l]}],order:[{order:[B,"first","last","none",u,l]}],"grid-cols":[{"grid-cols":fe()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":fe()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:r()}],"gap-x":[{"gap-x":r()}],"gap-y":[{"gap-y":r()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:r()}],px:[{px:r()}],py:[{py:r()}],ps:[{ps:r()}],pe:[{pe:r()}],pbs:[{pbs:r()}],pbe:[{pbe:r()}],pt:[{pt:r()}],pr:[{pr:r()}],pb:[{pb:r()}],pl:[{pl:r()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":r()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":r()}],"space-y-reverse":["space-y-reverse"],size:[{size:v()}],"inline-size":[{inline:["auto",...ae()]}],"min-inline-size":[{"min-inline":["auto",...ae()]}],"max-inline-size":[{"max-inline":["none",...ae()]}],"block-size":[{block:["auto",...te()]}],"min-block-size":[{"min-block":["auto",...te()]}],"max-block-size":[{"max-block":["none",...te()]}],w:[{w:[p,"screen",...v()]}],"min-w":[{"min-w":[p,"screen","none",...v()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[s]},...v()]}],h:[{h:["screen","lh",...v()]}],"min-h":[{"min-h":["screen","lh","none",...v()]}],"max-h":[{"max-h":["screen","lh",...v()]}],"font-size":[{text:["base",t,X,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Ua,Da]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ue,l]}],"font-family":[{font:[Ta,ya,o]}],"font-features":[{"font-features":[l]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[d,u,l]}],"line-clamp":[{"line-clamp":[n,"none",u,Be]}],leading:[{leading:[i,...r()]}],"list-image":[{"list-image":["none",u,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u,l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:f()}],"text-color":[{text:f()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[n,"from-font","auto",u,U]}],"text-decoration-color":[{decoration:f()}],"underline-offset":[{"underline-offset":[n,"auto",u,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:r()}],"tab-size":[{tab:[B,u,l]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u,l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u,l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},B,u,l],radial:["",u,l],conic:[B,u,l]},va,Ra]}],"bg-color":[{bg:f()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:f()}],"gradient-via":[{via:f()}],"gradient-to":[{to:f()}],rounded:[{rounded:g()}],"rounded-s":[{"rounded-s":g()}],"rounded-e":[{"rounded-e":g()}],"rounded-t":[{"rounded-t":g()}],"rounded-r":[{"rounded-r":g()}],"rounded-b":[{"rounded-b":g()}],"rounded-l":[{"rounded-l":g()}],"rounded-ss":[{"rounded-ss":g()}],"rounded-se":[{"rounded-se":g()}],"rounded-ee":[{"rounded-ee":g()}],"rounded-es":[{"rounded-es":g()}],"rounded-tl":[{"rounded-tl":g()}],"rounded-tr":[{"rounded-tr":g()}],"rounded-br":[{"rounded-br":g()}],"rounded-bl":[{"rounded-bl":g()}],"border-w":[{border:h()}],"border-w-x":[{"border-x":h()}],"border-w-y":[{"border-y":h()}],"border-w-s":[{"border-s":h()}],"border-w-e":[{"border-e":h()}],"border-w-bs":[{"border-bs":h()}],"border-w-be":[{"border-be":h()}],"border-w-t":[{"border-t":h()}],"border-w-r":[{"border-r":h()}],"border-w-b":[{"border-b":h()}],"border-w-l":[{"border-l":h()}],"divide-x":[{"divide-x":h()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":h()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:f()}],"border-color-x":[{"border-x":f()}],"border-color-y":[{"border-y":f()}],"border-color-s":[{"border-s":f()}],"border-color-e":[{"border-e":f()}],"border-color-bs":[{"border-bs":f()}],"border-color-be":[{"border-be":f()}],"border-color-t":[{"border-t":f()}],"border-color-r":[{"border-r":f()}],"border-color-b":[{"border-b":f()}],"border-color-l":[{"border-l":f()}],"divide-color":[{divide:f()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[n,u,l]}],"outline-w":[{outline:["",n,X,U]}],"outline-color":[{outline:f()}],shadow:[{shadow:["","none",x,_,Y]}],"shadow-color":[{shadow:f()}],"inset-shadow":[{"inset-shadow":["none",C,_,Y]}],"inset-shadow-color":[{"inset-shadow":f()}],"ring-w":[{ring:h()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:f()}],"ring-offset-w":[{"ring-offset":[n,U]}],"ring-offset-color":[{"ring-offset":f()}],"inset-ring-w":[{"inset-ring":h()}],"inset-ring-color":[{"inset-ring":f()}],"text-shadow":[{"text-shadow":["none",T,_,Y]}],"text-shadow-color":[{"text-shadow":f()}],opacity:[{opacity:[n,u,l]}],"mix-blend":[{"mix-blend":[...Le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Le()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[n]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":f()}],"mask-image-linear-to-color":[{"mask-linear-to":f()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":f()}],"mask-image-t-to-color":[{"mask-t-to":f()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":f()}],"mask-image-r-to-color":[{"mask-r-to":f()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":f()}],"mask-image-b-to-color":[{"mask-b-to":f()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":f()}],"mask-image-l-to-color":[{"mask-l-to":f()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":f()}],"mask-image-x-to-color":[{"mask-x-to":f()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":f()}],"mask-image-y-to-color":[{"mask-y-to":f()}],"mask-image-radial":[{"mask-radial":[u,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":f()}],"mask-image-radial-to-color":[{"mask-radial-to":f()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":H()}],"mask-image-conic-pos":[{"mask-conic":[n]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":f()}],"mask-image-conic-to-color":[{"mask-conic-to":f()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,l]}],filter:[{filter:["","none",u,l]}],blur:[{blur:Ie()}],brightness:[{brightness:[n,u,l]}],contrast:[{contrast:[n,u,l]}],"drop-shadow":[{"drop-shadow":["","none",A,_,Y]}],"drop-shadow-color":[{"drop-shadow":f()}],grayscale:[{grayscale:["",n,u,l]}],"hue-rotate":[{"hue-rotate":[n,u,l]}],invert:[{invert:["",n,u,l]}],saturate:[{saturate:[n,u,l]}],sepia:[{sepia:["",n,u,l]}],"backdrop-filter":[{"backdrop-filter":["","none",u,l]}],"backdrop-blur":[{"backdrop-blur":Ie()}],"backdrop-brightness":[{"backdrop-brightness":[n,u,l]}],"backdrop-contrast":[{"backdrop-contrast":[n,u,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",n,u,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[n,u,l]}],"backdrop-invert":[{"backdrop-invert":["",n,u,l]}],"backdrop-opacity":[{"backdrop-opacity":[n,u,l]}],"backdrop-saturate":[{"backdrop-saturate":[n,u,l]}],"backdrop-sepia":[{"backdrop-sepia":["",n,u,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":r()}],"border-spacing-x":[{"border-spacing-x":r()}],"border-spacing-y":[{"border-spacing-y":r()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[n,"initial",u,l]}],ease:[{ease:["linear","initial",q,u,l]}],delay:[{delay:[n,u,l]}],animate:[{animate:["none",w,u,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,u,l]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[u,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Q()}],"translate-x":[{"translate-x":Q()}],"translate-y":[{"translate-y":Q()}],"translate-z":[{"translate-z":Q()}],"translate-none":["translate-none"],zoom:[{zoom:[B,u,l]}],accent:[{accent:f()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:f()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u,l]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":f()}],"scrollbar-track-color":[{"scrollbar-track":f()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":r()}],"scroll-mx":[{"scroll-mx":r()}],"scroll-my":[{"scroll-my":r()}],"scroll-ms":[{"scroll-ms":r()}],"scroll-me":[{"scroll-me":r()}],"scroll-mbs":[{"scroll-mbs":r()}],"scroll-mbe":[{"scroll-mbe":r()}],"scroll-mt":[{"scroll-mt":r()}],"scroll-mr":[{"scroll-mr":r()}],"scroll-mb":[{"scroll-mb":r()}],"scroll-ml":[{"scroll-ml":r()}],"scroll-p":[{"scroll-p":r()}],"scroll-px":[{"scroll-px":r()}],"scroll-py":[{"scroll-py":r()}],"scroll-ps":[{"scroll-ps":r()}],"scroll-pe":[{"scroll-pe":r()}],"scroll-pbs":[{"scroll-pbs":r()}],"scroll-pbe":[{"scroll-pbe":r()}],"scroll-pt":[{"scroll-pt":r()}],"scroll-pr":[{"scroll-pr":r()}],"scroll-pb":[{"scroll-pb":r()}],"scroll-pl":[{"scroll-pl":r()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u,l]}],fill:[{fill:["none",...f()]}],"stroke-w":[{stroke:[n,X,U,Be]}],stroke:[{stroke:["none",...f()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Xe=Ia(Ha);function Ne(...e){return Xe(ke(e))}import{jsx as Ga}from"react/jsx-runtime";function rt({className:e,...o}){return Ga(D,{role:"status","aria-label":"Loading",className:Ne("size-4 animate-spin",e),...o})}export{rt as Spinner}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/loader-circle.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/8327cde1da091cb68d046f9393f41ae1b87085cdf13a983a6c2c09dd3aff145e b/b/8327cde1da091cb68d046f9393f41ae1b87085cdf13a983a6c2c09dd3aff145e new file mode 100644 index 0000000000000000000000000000000000000000..0b9ffa1272b508efd5710e65160584a16a7d7aa4 --- /dev/null +++ b/b/8327cde1da091cb68d046f9393f41ae1b87085cdf13a983a6c2c09dd3aff145e @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.pointer", + "name": "pointer", + "tier": "component", + "library": "magicui", + "category": "Special Effects", + "upstream": "https://magicui.design/r/pointer.json", + "did": "did:holo:sha256:f46b0109767ca079e5bc87ccbaac0091216ad84c3da09b15b7c176664aff9e6f", + "import": "holo://sha256:5249eebf488195678169cc159c7ef15f9a93ada08d941a99997ef764360554ee", + "integrity": "sha256-Uknuv0iBlWeBacwVnH7xX5qTraCNlBqZmX73ZDYFVO4=", + "kappa": "sha256:f46b0109767ca079e5bc87ccbaac0091216ad84c3da09b15b7c176664aff9e6f", + "moduleKappa": "sha256:5249eebf488195678169cc159c7ef15f9a93ada08d941a99997ef764360554ee", + "renderExport": "Pointer", + "source": "components/ui/pointer.tsx", + "module": "vendor/components/pointer.js", + "exports": [ + "Pointer" + ], + "license": "MIT" +} diff --git a/b/833e192dda8a19431f83d161c473418e4f2f512a2ec6f85bf39bdb084e586419 b/b/833e192dda8a19431f83d161c473418e4f2f512a2ec6f85bf39bdb084e586419 new file mode 100644 index 0000000000000000000000000000000000000000..160b993966f5f3696a4166c6675c60e8e08a3b1d --- /dev/null +++ b/b/833e192dda8a19431f83d161c473418e4f2f512a2ec6f85bf39bdb084e586419 @@ -0,0 +1,305 @@ +"use client" + +import * as React from "react" +import { Form, Field as FormischField, reset, useForm } from "@formisch/react" +import type { SubmitHandler } from "@formisch/react" +import { toast } from "sonner" +import * as v from "valibot" + +import { Button } from "@/registry/new-york-v4/ui/button" +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { Checkbox } from "@/registry/new-york-v4/ui/checkbox" +import { + Field, + FieldContent, + FieldDescription, + FieldError, + FieldGroup, + FieldLabel, + FieldLegend, + FieldSeparator, + FieldSet, + FieldTitle, +} from "@/registry/new-york-v4/ui/field" +import { + RadioGroup, + RadioGroupItem, +} from "@/registry/new-york-v4/ui/radio-group" +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/registry/new-york-v4/ui/select" +import { Switch } from "@/registry/new-york-v4/ui/switch" + +const addons = [ + { + id: "analytics", + title: "Analytics", + description: "Advanced analytics and reporting", + }, + { + id: "backup", + title: "Backup", + description: "Automated daily backups", + }, + { + id: "support", + title: "Priority Support", + description: "24/7 premium customer support", + }, +] as const + +const FormSchema = v.object({ + plan: v.pipe( + v.string(), + v.minLength(1, "Please select a subscription plan"), + v.check( + (value) => value === "basic" || value === "pro", + "Invalid plan selection. Please choose Basic or Pro" + ) + ), + billingPeriod: v.pipe( + v.string(), + v.minLength(1, "Please select a billing period") + ), + addons: v.pipe( + v.array(v.string()), + v.minLength(1, "Please select at least one add-on"), + v.maxLength(3, "You can select up to 3 add-ons"), + v.check( + (value) => value.every((addon) => addons.some((a) => a.id === addon)), + "You selected an invalid add-on" + ) + ), + emailNotifications: v.boolean(), +}) + +export default function FormFormischComplex() { + const form = useForm({ + schema: FormSchema, + initialInput: { + plan: "basic", + billingPeriod: "", + addons: [], + emailNotifications: false, + }, + }) + + const handleSubmit: SubmitHandler = (output) => { + toast("You submitted the following values:", { + description: ( +
+          {JSON.stringify(output, null, 2)}
+        
+ ), + position: "bottom-right", + classNames: { + content: "flex flex-col gap-2", + }, + style: { + "--border-radius": "calc(var(--radius) + 4px)", + } as React.CSSProperties, + }) + } + + return ( + + + You're almost there! + + Choose your subscription plan and billing period. + + + +
+ + + {(field) => ( +
+ Subscription Plan + + Choose your subscription plan. + + field.onChange(value)} + aria-invalid={field.errors !== null} + > + + + + Basic + + For individuals and small teams + + + + + + + + + Pro + + For businesses with higher demands + + + + + + + {field.errors && ( + ({ message }))} + /> + )} +
+ )} +
+ + + {(field) => ( + + + Billing Period + + + + Choose how often you want to be billed. + + {field.errors && ( + ({ message }))} + /> + )} + + )} + + + + {(field) => { + const current = field.input ?? [] + return ( +
+ Add-ons + + Select additional features you'd like to include. + + + {addons.map((addon) => ( + + { + field.onChange( + checked === true + ? [...current, addon.id] + : current.filter( + (value) => value !== addon.id + ) + ) + }} + /> + + + {addon.title} + + + {addon.description} + + + + ))} + + {field.errors && ( + ({ message }))} + /> + )} +
+ ) + }} +
+ + + {(field) => ( + + + + Email Notifications + + + Receive email updates about your subscription + + + field.onChange(checked)} + aria-invalid={field.errors !== null} + /> + {field.errors && ( + ({ message }))} + /> + )} + + )} + +
+
+
+ + + + + + +
+ ) +} diff --git a/b/834d3a4a3457bc36e3961f20fad03647b037f2d970e817095c83db609229409e b/b/834d3a4a3457bc36e3961f20fad03647b037f2d970e817095c83db609229409e new file mode 100644 index 0000000000000000000000000000000000000000..ea97ec09af5fe560588415a22e93d316d2ed9de1 --- /dev/null +++ b/b/834d3a4a3457bc36e3961f20fad03647b037f2d970e817095c83db609229409e @@ -0,0 +1,215 @@ +// core/loader.js — model LOADING (the 5 substrate paths) + the model catalog + the +// browser-cache manager. Lifted faithfully from the original index.html so a model still +// loads byte-identically; the only change is that DOM status writes become onStatus/onProgress +// callbacks, and each path RETURNS { gpu, info, manifest, imageKappa } instead of mutating +// globals. core/engine.js then wraps the returned gpu. (window.__gpu / window.__kd handles are +// still exposed for the probe + system-monitor panels.) + +import init, { kappa, qvac_load_model, qvac_load_gpu, qvac_tokenize, qvac_continue, qvac_gpu_manifest, qvac_gpu_tensor, qvac_gpu_free, qvac_panic_hook } from "../pkg/holospaces_web.js"; +import { createQvacGPU } from "../qvac-gpu.js?v=66"; +import { modelAsSource } from "./semantic.js"; // C2: a loaded model carries a W3C @type (schema:SoftwareSourceCode) + +// the model κ-object's W3C linked-data view — content-addressed identity (Law L1) + schema.org type. +const modelLinkedData = (m, root) => modelAsSource({ + name: m.name, family: m.fam, params: m.size, format: m.fmt, + kappa: root ? (String(root).startsWith("did:") ? root : "did:holo:" + String(root)) : "did:holo:sha256:0", +}); + +// The compiled κ-objects present on disk (models/, built by compile2bit.mjs). Each loads +// DIRECT off the substrate (verified by re-derivation, no re-quant) via its `kappaUrl`. +// cap = max NEW tokens per turn; ctx = KV-cache positions allocated on the GPU (the context +// window — sized so agentic turns with tool schemas + tool responses fit; KV VRAM scales with it). +export const MODELS = [ + // NATIVELY-TERNARY κ-objects (t2, 1.58 bpw trained-in — see the atlas-bridge witness receipts): + // Falcon-E: its declared ChatML template STALLS empirically (instant <|end_of_text|>); the + // measured working frame is word-style "User:/Falcon:" with a textual stop (q-falcon-templates sweep). + { fam: "Falcon-E", name: "Falcon-E-3B · ternary", kappaUrl: "https://huggingface.co/HOLOGRAMTECH/q-falcon-e-3b/resolve/main", manifestKappa: "did:holo:sha256:6b753fe8186f2b4194424115c36014698580a2aab8427e9b40365893ac6b77ca", size: "0.63 GB", fmt: "t2 1.58-bit κ", cap: 200, ctx: 3000, kv4: true, gpu: true, gpuOnly: true, chat: true, userWord: true, stopText: "\nUser:", tools: false, rep: 1.18, kappa: true }, + { fam: "BitNet", name: "BitNet-2B-4T · ternary", kappaUrl: "https://huggingface.co/HOLOGRAMTECH/q-bitnet-2b/resolve/main", manifestKappa: "did:holo:sha256:fcf835659d88d2fe6f683cf1ab8de6a6ba6214ea0deeee4b1bcf3da1a4c05412", size: "0.69 GB", fmt: "t2 1.58-bit κ", cap: 900, ctx: 3000, kv4: true, gpu: true, gpuOnly: true, chat: true, llama3: true, tools: false, bos: true, eosText: "<|eot_id|>", rep: 1.05, kappa: true }, + // TriLM: the LARGEST natively-ternary-trained model (Spectra 3.9B, ICLR'25); per-row/channel + // scale structure → t2r (trit codes + per-256-block scales, exact). BASE model → QA frame + stop. + { fam: "TriLM", name: "TriLM-3.9B · ternary", kappaUrl: "https://huggingface.co/HOLOGRAMTECH/q-trilm-3.9b/resolve/main", manifestKappa: "did:holo:sha256:499032ceb19c0476345a72cf5fea6caec83054c98486c91a5891dfad0d25ea30", size: "0.87 GB", fmt: "t2r 2.1-bit κ", cap: 200, ctx: 3000, kv4: true, gpu: true, gpuOnly: true, chat: true, stopText: "\nQuestion:", tools: false, rep: 1.18, kappa: true }, + // AGENTIC CODER: Qwen2.5-Coder-7B (q3f) — the Holo Code agent brain. Qwen2.5 arch ⇒ ChatML + + // agentic tool framing work (capability floor for tool use is ~7B; the small ternary models opt out). + // Self-contained κ-object: tokenizer bundled (source="tokenizer.gguf"), no external dependency. + { fam: "Qwen2.5-Coder", name: "Qwen2.5-Coder-7B · agentic", kappaUrl: "https://huggingface.co/HOLOGRAMTECH/q-qwen-coder-7b/resolve/main", manifestKappa: "did:holo:sha256:539941cb060c7dd583e2e86697e53f2c5d511d597c65d09d9c780fbded2c3edf", size: "3.4 GB", fmt: "q3f κ", cap: 900, ctx: 3000, kv4: true, gpu: true, gpuOnly: true, chat: true, code: true, qwen: true, rep: 1.05, kappa: true }, + // MIXTURE-OF-EXPERTS (G5): OLMoE-1B-7B (Allen AI, Apache-2.0) — 64 experts, 8 active/token, ~1.3B + // active of 7B. The first RESIDENT-MoE κ-object: experts RAM-resident + CPU top-k router (softmax + // over all 64, no renorm = OLMoE norm_topk_prob:false). q4 (the engine's resident expert FFN path). + { fam: "OLMoE", name: "OLMoE-1B-7B · MoE (64×8)", kappaUrl: "https://huggingface.co/HOLOGRAMTECH/q-olmoe-1b-7b/resolve/main", manifestKappa: "did:holo:sha256:9cf97ec1c761fd4ef51bc0cd4ac37a0cd8eaa11f1b19b3ae6a141486ad3fe5ad", size: "3.6 GB", fmt: "q4 MoE κ", cap: 400, ctx: 3000, kv4: false, gpu: true, gpuOnly: true, chat: true, olmo: true, bos: true, eosText: "<|endoftext|>", tools: false, rep: 1.1, kappa: true }, + // DIFFUSION (G6): Dream-7B (Dream-org/Dream-v0-Instruct-7B) — masked-diffusion LM on the Qwen2.5-7B + // backbone (same dims ⇒ ChatML). NOT autoregressive: generation is iterative bidirectional unmasking + // over `steps` denoising passes (engine.diffuse / gpu.diffuse), wall-clock fixed by steps not length. + // maskId 151666 rides in the manifest (never tokenized from text). Greedy ⇒ deterministic ⇒ κ-re-derivable. + { fam: "Dream", name: "Dream-7B · diffusion", kappaUrl: "https://huggingface.co/HOLOGRAMTECH/q-dream-7b/resolve/main", manifestKappa: "did:holo:sha256:7b862931ae088f348f1f7e9ea3adbd418924c2e07e6ddd134f926e5681ad760d", size: "2.9 GB", fmt: "q3f diffusion κ", cap: 192, ctx: 192, kv4: false, gpu: true, gpuOnly: true, chat: true, qwen: true, diffusion: true, steps: 12, rep: 1.0, kappa: true }, + // Qwen κ-objects (q3f/q4) were pruned from disk for space — re-derive via compile2bit, then re-list. +]; +const kvOf = (m) => Math.max(96, (m.ctx || m.cap) + 8); + +const _sizeGb = (s) => { const n = parseFloat(s) || 0; return /mb/i.test(s) ? n / 1024 : n; }; +// default to the SMALLEST usable model — lowest latency, fastest first answer. +export const defaultModelIndex = () => (MODELS.map((m, i) => i).filter((i) => !MODELS[i].disabled).sort((a, b) => _sizeGb(MODELS[a].size) - _sizeGb(MODELS[b].size))[0]) ?? 0; + +// ── wasm init (once) + tokenizer re-export so the rest of the app shares this instance ── +let _initOnce = null; +export function ready() { if (!_initOnce) _initOnce = init().then(() => { try { qvac_panic_hook(); } catch {} }); return _initOnce; } +export { qvac_tokenize, qvac_continue, kappa }; + +// ── browser-cache model manager (Cache API) — "Get" downloads + keeps; loading uses the copy ── +export const MCACHE = "holo-q-models"; +const absUrl = (u) => new URL(u, location.href).href; +// HOST-OVERRIDABLE model origin. A host adapter (e.g. the Discord Activity, where a direct huggingface.co +// fetch is connect-src-blocked) sets window.HOLO_HF_PROXY to a SAME-ORIGIN proxied prefix (e.g. "/hf", +// mapped host-side to huggingface.co). Unset on native/CEF/HF-space hosts → weights load direct (unchanged). +// The κ-cache is content-address (κ) keyed, not origin keyed, so swapping the origin keeps warm-0 reloads. +const hfProxy = (u) => { const b = (typeof window !== "undefined" && window.HOLO_HF_PROXY) || ""; return (b && typeof u === "string") ? u.replace("https://huggingface.co", b) : u; }; +let _cachedUrls = new Set(); +export async function refreshCached() { try { const c = await caches.open(MCACHE); _cachedUrls = new Set((await c.keys()).map((r) => r.url)); } catch { _cachedUrls = new Set(); } return _cachedUrls; } +export const isCached = (m) => !!m.url && _cachedUrls.has(absUrl(m.url)); +export async function deleteCache(m) { try { const c = await caches.open(MCACHE); await c.delete(m.url); } catch {} await refreshCached(); } +async function modelBytes(m, onStatus) { + try { const c = await caches.open(MCACHE); const hit = await c.match(m.url); if (hit) return new Uint8Array(await hit.arrayBuffer()); } catch {} + onStatus?.(`Downloading ${m.name} (${m.size})…`); + const res = await fetch(m.url); if (!res.ok) { onStatus?.("download failed: HTTP " + res.status); return null; } + return new Uint8Array(await res.arrayBuffer()); +} + +const noop = () => {}; + +// loadModel(entry, { onStatus, onProgress }) → { gpu, info, manifest, imageKappa } | null +// `imageKappa` is the VERIFIED content address of the weights when the path provides one +// (κ-object root, or κ-disk image_kappa); core/engine.js binds it as the receipt's model κ. +export async function loadModel(m, { onStatus = noop, onProgress = noop } = {}) { + await ready(); + onStatus(`Loading ${m.name}…`); + try { + if (m.gpuOnly && !navigator.gpu) { onStatus("This model needs WebGPU (not available here)."); return null; } + if (m.kappaUrl) return await loadKappa(m, onStatus, onProgress); + if (m.kdisk) return await loadModelKDisk(m, onStatus, onProgress); + if (m.remote) return await loadModelRemote(m, onStatus, onProgress); + if (m.diskIngest) return await loadModelDisk(m, onStatus, onProgress); + let gguf = await modelBytes(m, onStatus); if (!gguf) { onStatus("could not load model"); return null; } + const lr = JSON.parse(m.gpuOnly ? qvac_load_gpu(gguf) : qvac_load_model(gguf)); + gguf = null; + if (lr.error) { onStatus("model error: " + lr.error); return null; } + let gpu = null, manifest = null; + if (navigator.gpu && m.gpu) { + try { + onStatus(`Uploading ${m.name} to the GPU…`); + const bits = m.q4 ? 4 : 8; + manifest = JSON.parse(qvac_gpu_manifest(bits)); manifest.twoBit = !!window.__twoBit; + const __qp = new URLSearchParams(location.search).get("stream"); + const __qmode = __qp === null ? undefined : (__qp === "resident" || __qp === "false" ? false : __qp); + const stream = __qmode ?? window.__stream ?? m.stream ?? false; + const __ft = (name) => { const raw = qvac_gpu_tensor(name, bits); return window.__weightHook ? window.__weightHook(name, raw, bits, manifest) : raw; }; + gpu = await createQvacGPU(manifest, __ft, kvOf(m), lr.eos ?? 2, stream); + window.__gpu = gpu; qvac_gpu_free(); + } catch (e) { gpu = null; if (m.gpuOnly) { onStatus("GPU upload failed: " + e); return null; } } + } + onStatus(""); + return { gpu, info: lr, manifest, imageKappa: null }; + } catch (e) { onStatus("could not load model: " + e); return null; } +} + +// LOAD-DIRECT: a pre-compiled 2-bit/Q4 κ-object (compile2bit.mjs output). Weights arrive ALREADY +// quantized (no re-quant at load); the tokenizer comes from the source GGUF's header only. +async function loadKappa(m, onStatus, onProgress) { + onStatus("Loading κ-object manifest…"); + const ld = await import("../holo-load2bit.mjs?v=2"); + // Law L5: pin the manifest κ when the catalog supplies one (m.manifestKappa, or a string m.kappa). + // Until every model carries a pin, unpinned entries load explicitly (allowUnpinned) — the gap is then + // a visible data task (populate manifestKappa), not a silent trust of an unauthenticated root. + const pin = (typeof m.manifestKappa === "string" && m.manifestKappa) || (typeof m.kappa === "string" && m.kappa) || null; + const __b3 = (typeof window !== "undefined" && window.__blake3Map) || undefined; // inject canonical map (test BLAKE3 axis before the HF upload) + const { manifest, fetchTensor, info } = await ld.loadKappaObject(hfProxy(m.kappaUrl).replace(/\/+$/, ""), { ...(pin ? { expectKappa: pin } : { allowUnpinned: true }), blake3Map: __b3 }); + const ing = await import("../qvac-ingest.mjs"); + onStatus("Building tokenizer (source header, no full download)…"); + const hdr = await ing.readHeader(hfProxy(info.source), ing.rangeReader()); + const lr = JSON.parse(qvac_load_gpu(hdr.headerBytes)); + if (lr.error) { onStatus("tokenizer error: " + lr.error); return null; } + if (m.eosText) { try { const e = JSON.parse(qvac_tokenize(m.eosText)).ids; if (e && e.length === 1) lr.eos = e[0]; } catch {} } // chat-stop override (e.g. LLaMA-3 <|eot_id|> ≠ header eos) + qvac_gpu_free(); + manifest.kv4 = !!m.kv4; // int4 KV cache (E6) — catalog opt-in + // MoE forward reads the layer-packed attention (Wb[l]) + RAM-resident experts (readExpert via + // fetchTensor) — i.e. stream="layer": attention JS-resident & paged per token, experts cached. + const sm = manifest.moe ? "layer" : (m.stream || window.__kappaStream || false); + onStatus(`Building engine from κ-object (${info.mode === "q4" ? "native Q4" : info.incoherent ? "incoherent 2-bit" : "LDLQ 2-bit"}, ${sm || "resident"}, no requant)…`); + const prog = (done, total) => onProgress(done, total, "streaming"); + const gpu = await createQvacGPU(manifest, fetchTensor, kvOf(m), lr.eos ?? 2, sm, sm ? prog : null); + window.__gpu = gpu; + onStatus(""); + return { gpu, info: lr, manifest, imageKappa: info.root || null, ld: modelLinkedData(m, info.root) }; +} + +// Very-large-model path: the GGUF never enters wasm; only the header does (tokenizer + manifest), +// then each tensor is streamed off disk (HTTP Range), converted in JS, paged to the GPU per layer. +async function loadModelDisk(m, onStatus, onProgress) { + const bits = m.q4 ? 4 : 8; + const ing = await import("../qvac-ingest.mjs"); + let read = ing.rangeReader(); + try { const cachedResp = await (await caches.open(MCACHE)).match(m.url); if (cachedResp) { const blob = await cachedResp.blob(); read = async (_u, start, len) => new Uint8Array(await blob.slice(start, start + len).arrayBuffer()); } } catch {} + onStatus(`Reading ${m.name} header…`); + const hdr = await ing.readHeader(m.url, read); + const lr = JSON.parse(qvac_load_gpu(hdr.headerBytes)); + if (lr.error) { onStatus("model error: " + lr.error); return null; } + const manifest = JSON.parse(qvac_gpu_manifest(bits)); + qvac_gpu_free(); + const fetchTensor = ing.makeDiskFetcher({ url: m.url, readRange: read, dataOffset: hdr.dataOffset, tensors: hdr.tensors, manifest, bits }); + const mode = m.stream || "layer"; + onStatus(`Preparing ${m.name} (one-time, streamed off disk)…`); + const gpu = await createQvacGPU(manifest, fetchTensor, kvOf(m), lr.eos ?? 2, mode, (d, t) => onProgress(d, t, "layers")); + window.__gpu = gpu; onStatus(""); + return { gpu, info: lr, manifest, imageKappa: null }; +} + +// Out-of-core: stream a PRE-BUILT .qvf frames file from the server, one layer per token via HTTP Range. +async function loadModelRemote(m, onStatus, onProgress) { + onStatus(`Loading ${m.name} index…`); + const index = await (await fetch(m.framesUrl + ".json")).json(); + const url = m.framesUrl; + const rr = async (off, len) => { const r = await fetch(url, { headers: { Range: `bytes=${off}-${off + len - 1}` } }); if (!r.ok && r.status !== 206) throw new Error("HTTP " + r.status); return new Uint8Array(await r.arrayBuffer()); }; + const header = await rr(index.headerOff, index.headerLen); + const lr = JSON.parse(qvac_load_gpu(header)); + if (lr.error) { onStatus("model error: " + lr.error); return null; } + const manifest = index.manifest; qvac_gpu_free(); + const fetchTensor = async (name) => { const s = index.singles[name]; return s ? await rr(s.off, s.len) : new Uint8Array(0); }; + const frameStore = { ready: true, read: (off, len) => rr(index.layersOff + off, len), readExpert: (l, e, role) => { const ri = { gate: 0, up: 1, down: 2 }[role]; const off = index.expertsOff + ((l * index.nExperts + e) * 3 + ri) * index.expertBytes; return rr(off, index.expertBytes); } }; + const layersBytes = (index.packStride || 0) * (index.n_layers || 0) + (manifest.moe ? (index.nExperts * 3 * index.expertBytes * index.n_layers) : 0); + const cacheBudget = window.__cacheGB != null ? window.__cacheGB * 1073741824 : Math.min(layersBytes, 12 * 1073741824); + onStatus(`Preparing ${m.name} (served off disk)…`); + const gpu = await createQvacGPU(manifest, fetchTensor, kvOf(m), lr.eos ?? 2, "remote", (d, t) => onProgress(d, t, "remote"), frameStore, cacheBudget); + window.__gpu = gpu; onStatus(""); + return { gpu, info: lr, manifest, imageKappa: null }; +} + +// HOLOGRAM: load through a content-addressed κ-DISK — every sector VERIFIED by re-derivation (Law L3/L5). +async function loadModelKDisk(m, onStatus, onProgress) { + onStatus(`Resolving ${m.name} κ-disk…`); + const index = await (await fetch(m.kdiskUrl)).json(); + const { makeKDisk } = await import("../qvac-kdisk.mjs"); + const bases = window.__kdiskSources || m.kdiskSources || [location.origin]; + const sources = bases.map((b) => b.replace(/\/$/, "") + "/" + (index.dataFile || (m.dataUrl || "").replace(/^\.\//, ""))); + const kd = makeKDisk({ index, sources }); + window.__kd = kd; + const iv = await kd.verifyImage(); + if (!iv.ok) { onStatus("κ-disk image_kappa mismatch — refusing to load"); return null; } + const rr = kd.rr, qvf = index.qvf; + const header = await rr(qvf.headerOff, qvf.headerLen); + const lr = JSON.parse(qvac_load_gpu(header)); + if (lr.error) { onStatus("model error: " + lr.error); return null; } + const manifest = qvf.manifest; qvac_gpu_free(); + const fetchTensor = async (name) => { const s = qvf.singles[name]; return s ? await rr(s.off, s.len) : new Uint8Array(0); }; + const frameStore = { ready: true, read: (off, len) => rr(qvf.layersOff + off, len), + readExpert: async (l, e, role) => { const ri = { gate: 0, up: 1, down: 2 }[role]; const blkOff = qvf.expertsOff + (l * qvf.nExperts + e) * 3 * qvf.expertBytes; const blk = await rr(blkOff, 3 * qvf.expertBytes); return blk.slice(ri * qvf.expertBytes, (ri + 1) * qvf.expertBytes); } }; + const layersBytes = (qvf.packStride || 0) * (qvf.n_layers || 0) + (manifest.moe ? (qvf.nExperts * 3 * qvf.expertBytes * qvf.n_layers) : 0); + const cacheBudget = window.__cacheGB != null ? window.__cacheGB * 1073741824 : Math.min(layersBytes, 1024 * 1048576); + onStatus(`Realizing ${m.name} (verified off κ-disk)…`); + const gpu = await createQvacGPU(manifest, fetchTensor, kvOf(m), lr.eos ?? 2, "remote", (d, t) => onProgress(d, t, "κ-disk"), frameStore, cacheBudget); + window.__gpu = gpu; + const st = kd.stats(); onStatus(`${index.imageKappa.slice(0, 22)}… · ${st.verified} sectors verified`); + return { gpu, info: lr, manifest, imageKappa: kd.imageKappa || index.imageKappa || null }; +} + +// loadFromQ(qk) — load a model from a Q@κ resident handle (content-addressed store). The canonical build does not +// ship the substrate path, so this gracefully returns null and the caller falls back to loadModel (HF streaming). +// (Kept as an export so the standalone chat's optional `?q=<κ>` path resolves without the substrate dependency.) +export async function loadFromQ() { return null; } diff --git a/b/834eb5b60fc3dac6985ca8203ee3bf9ae04951930f36215034e4fdf7c3431ea9 b/b/834eb5b60fc3dac6985ca8203ee3bf9ae04951930f36215034e4fdf7c3431ea9 new file mode 100644 index 0000000000000000000000000000000000000000..9c0049fafead42824ac8ed0936bf0a97acc5a158 --- /dev/null +++ b/b/834eb5b60fc3dac6985ca8203ee3bf9ae04951930f36215034e4fdf7c3431ea9 @@ -0,0 +1,72 @@ +import { useEffect, useRef, type ComponentPropsWithoutRef } from "react" +import { useInView, useMotionValue, useSpring } from "motion/react" + +import { cn } from "@/lib/utils" + +interface NumberTickerProps extends ComponentPropsWithoutRef<"span"> { + value: number + startValue?: number + direction?: "up" | "down" + delay?: number + decimalPlaces?: number +} + +export function NumberTicker({ + value, + startValue = 0, + direction = "up", + delay = 0, + className, + decimalPlaces = 0, + ...props +}: NumberTickerProps) { + const ref = useRef(null) + const motionValue = useMotionValue(direction === "down" ? value : startValue) + const springValue = useSpring(motionValue, { + damping: 60, + stiffness: 100, + }) + const isInView = useInView(ref, { once: true, margin: "0px" }) + + useEffect(() => { + let timer: ReturnType | null = null + + if (isInView) { + timer = setTimeout(() => { + motionValue.set(direction === "down" ? startValue : value) + }, delay * 1000) + } + + return () => { + if (timer !== null) { + clearTimeout(timer) + } + } + }, [motionValue, isInView, delay, value, direction, startValue]) + + useEffect( + () => + springValue.on("change", (latest) => { + if (ref.current) { + ref.current.textContent = Intl.NumberFormat("en-US", { + minimumFractionDigits: decimalPlaces, + maximumFractionDigits: decimalPlaces, + }).format(Number(latest.toFixed(decimalPlaces))) + } + }), + [springValue, decimalPlaces] + ) + + return ( + + {startValue} + + ) +} diff --git a/b/835731909dee9b3837aee5ed5649dd4988d7056c31bc469d1fff00523aae3902 b/b/835731909dee9b3837aee5ed5649dd4988d7056c31bc469d1fff00523aae3902 new file mode 100644 index 0000000000000000000000000000000000000000..f25180a92ac6beaf895ea4751c2cb6afc1336efd --- /dev/null +++ b/b/835731909dee9b3837aee5ed5649dd4988d7056c31bc469d1fff00523aae3902 @@ -0,0 +1 @@ +export default {"color-scheme":"dark","--color-base-100":"oklch(30.857% 0.023 264.149)","--color-base-200":"oklch(28.036% 0.019 264.182)","--color-base-300":"oklch(26.346% 0.018 262.177)","--color-base-content":"oklch(82.901% 0.031 222.959)","--color-primary":"oklch(86.133% 0.141 139.549)","--color-primary-content":"oklch(17.226% 0.028 139.549)","--color-secondary":"oklch(73.375% 0.165 35.353)","--color-secondary-content":"oklch(14.675% 0.033 35.353)","--color-accent":"oklch(74.229% 0.133 311.379)","--color-accent-content":"oklch(14.845% 0.026 311.379)","--color-neutral":"oklch(24.731% 0.02 264.094)","--color-neutral-content":"oklch(82.901% 0.031 222.959)","--color-info":"oklch(86.078% 0.142 206.182)","--color-info-content":"oklch(17.215% 0.028 206.182)","--color-success":"oklch(86.171% 0.142 166.534)","--color-success-content":"oklch(17.234% 0.028 166.534)","--color-warning":"oklch(86.163% 0.142 94.818)","--color-warning-content":"oklch(17.232% 0.028 94.818)","--color-error":"oklch(82.418% 0.099 33.756)","--color-error-content":"oklch(16.483% 0.019 33.756)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"0","--noise":"0"}; \ No newline at end of file diff --git a/b/8369a14c63bea309ba15b86f6488f7f7ad521f66c8586c42aa2c098bb5d2b260 b/b/8369a14c63bea309ba15b86f6488f7f7ad521f66c8586c42aa2c098bb5d2b260 new file mode 100644 index 0000000000000000000000000000000000000000..662f522245aa2713ae22da78545dee7bb347974b --- /dev/null +++ b/b/8369a14c63bea309ba15b86f6488f7f7ad521f66c8586c42aa2c098bb5d2b260 @@ -0,0 +1,94 @@ +"use client" + +import * as React from "react" +import { Check, ChevronsUpDown } from "lucide-react" + +import { cn } from "@/lib/utils" +import { Button } from "@/registry/new-york-v4/ui/button" +import { + Command, + CommandEmpty, + CommandGroup, + CommandInput, + CommandItem, + CommandList, +} from "@/registry/new-york-v4/ui/command" +import { + Popover, + PopoverContent, + PopoverTrigger, +} from "@/registry/new-york-v4/ui/popover" + +const frameworks = [ + { + value: "next.js", + label: "Next.js", + }, + { + value: "sveltekit", + label: "SvelteKit", + }, + { + value: "nuxt.js", + label: "Nuxt.js", + }, + { + value: "remix", + label: "Remix", + }, + { + value: "astro", + label: "Astro", + }, +] + +export default function ComboboxDemo() { + const [open, setOpen] = React.useState(false) + const [value, setValue] = React.useState("") + + return ( + + + + + + + + + No framework found. + + {frameworks.map((framework) => ( + { + setValue(currentValue === value ? "" : currentValue) + setOpen(false) + }} + > + {framework.label} + + + ))} + + + + + + ) +} diff --git a/b/836dddf0adc3c787598dc023860338f0473b98c32efff249c1dcf0aeee15a6d7 b/b/836dddf0adc3c787598dc023860338f0473b98c32efff249c1dcf0aeee15a6d7 new file mode 100644 index 0000000000000000000000000000000000000000..f70795dbfb3a9d334eb20a6300658502a1bb30e0 --- /dev/null +++ b/b/836dddf0adc3c787598dc023860338f0473b98c32efff249c1dcf0aeee15a6d7 @@ -0,0 +1,7 @@ +import dracula from './object.js'; +import { addPrefix } from '../../functions/addPrefix.js'; + +export default ({ addBase, prefix = '' }) => { + const prefixeddracula = addPrefix(dracula, prefix); + addBase({ ...prefixeddracula }); +}; diff --git a/b/83b7415121e86c907445fdeb7e6d5fa6772055be504d6dd7211af311e2812346 b/b/83b7415121e86c907445fdeb7e6d5fa6772055be504d6dd7211af311e2812346 new file mode 100644 index 0000000000000000000000000000000000000000..7b8bdfbded1b4d4c816a639042c2cb645e9b7cd0 --- /dev/null +++ b/b/83b7415121e86c907445fdeb7e6d5fa6772055be504d6dd7211af311e2812346 @@ -0,0 +1,27 @@ +{ + "id": "org.hologram.ui.daisyui.drawer", + "name": "daisyui-drawer", + "tier": "component", + "library": "daisyui", + "category": "Overlays", + "upstream": "https://cdn.jsdelivr.net/npm/daisyui@5.5.23/components/drawer.css", + "docs": "https://daisyui.com/components/drawer/", + "did": "did:holo:sha256:4489140d57ae7e9e52d400a9feb77736ba4bf8aef469378e1b90e223da2cd666", + "import": "holo://sha256:4489140d57ae7e9e52d400a9feb77736ba4bf8aef469378e1b90e223da2cd666", + "integrity": "sha256-RIkUDVeufp5S1ACp/rd3NrpL+K70aTeOG5DiI9os1mY=", + "kappa": "sha256:4489140d57ae7e9e52d400a9feb77736ba4bf8aef469378e1b90e223da2cd666", + "moduleKappa": "sha256:4489140d57ae7e9e52d400a9feb77736ba4bf8aef469378e1b90e223da2cd666", + "renderExport": null, + "format": "css", + "source": "components/drawer.css", + "module": "vendor/daisyui/components/drawer.css", + "exports": [], + "bytes": 17997, + "provenance": { + "package": "daisyui", + "version": "5.5.23", + "integrity": "sha512-xuheNUSL4T6ZVtWXoioqcNkjoyGX85QTDz4HTw2aBPfqk4fuMjax5HDo8qCmpV6M1YN8bGvfx5BpYCoDeRlt+A==", + "file": "components/drawer.css" + }, + "license": "MIT" +} diff --git a/b/83db6842b733799faf6213c696012ef7f284435e0e6bf2f1f33ec082d6261285 b/b/83db6842b733799faf6213c696012ef7f284435e0e6bf2f1f33ec082d6261285 new file mode 100644 index 0000000000000000000000000000000000000000..d463a44978c79094994f541a94a7fedbcc0c143e --- /dev/null +++ b/b/83db6842b733799faf6213c696012ef7f284435e0e6bf2f1f33ec082d6261285 @@ -0,0 +1,21 @@ +{ + "id": "org.hologram.ui.chart.chart-line-default", + "name": "chart-line-default", + "tier": "chart", + "library": "shadcn", + "category": "Charts · Line", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/chart-line-default.json", + "did": "did:holo:sha256:d9632a0e955df05c43a5090a87c2f04dfb3e3c475e963efd74d371489d5f2a7a", + "import": "holo://sha256:fe25fce8e89ac0a8bc33715cf9d2645374bc171953d82517e0b07092a287aed5", + "integrity": "sha256-/iX86OiawKi8M3Fc+dJkU3S8FxlT2CUX4LBwkqKHrtU=", + "kappa": "sha256:d9632a0e955df05c43a5090a87c2f04dfb3e3c475e963efd74d371489d5f2a7a", + "moduleKappa": "sha256:fe25fce8e89ac0a8bc33715cf9d2645374bc171953d82517e0b07092a287aed5", + "renderExport": "ChartLineDefault", + "source": "registry/new-york-v4/charts/chart-line-default.tsx", + "module": "vendor/components/chart-line-default.js", + "exports": [ + "description", + "ChartLineDefault" + ], + "license": "MIT" +} diff --git a/b/83dff850d4f47b20da92d34c0b81a537d043d74b0890edd03fcefa2d399bb8f1 b/b/83dff850d4f47b20da92d34c0b81a537d043d74b0890edd03fcefa2d399bb8f1 new file mode 100644 index 0000000000000000000000000000000000000000..bb0a89849a1ed320e13ae9c692b8ec84387d0b25 --- /dev/null +++ b/b/83dff850d4f47b20da92d34c0b81a537d043d74b0890edd03fcefa2d399bb8f1 @@ -0,0 +1,92 @@ +"use client";var RC=Object.create;var Ps=Object.defineProperty;var _C=Object.getOwnPropertyDescriptor;var NC=Object.getOwnPropertyNames;var BC=Object.getPrototypeOf,FC=Object.prototype.hasOwnProperty;var _p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jC=(e,t)=>{for(var r in t)Ps(e,r,{get:t[r],enumerable:!0})},zC=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of NC(t))!FC.call(e,o)&&o!==r&&Ps(e,o,{get:()=>t[o],enumerable:!(a=_C(t,o))||a.enumerable});return e};var As=(e,t,r)=>(r=e!=null?RC(BC(e)):{},zC(t||!e||!e.__esModule?Ps(r,"default",{value:e,enumerable:!0}):r,e));var ic=_p(($v,Tu)=>{(function(e){"use strict";var t=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},a=!0,o="[DecimalError] ",n=o+"Invalid argument: ",i=o+"Exponent out of range: ",u=Math.floor,l=Math.pow,s=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,f,c=1e7,d=7,p=9007199254740991,h=u(p/d),m={};m.absoluteValue=m.abs=function(){var x=new this.constructor(this);return x.s&&(x.s=1),x},m.comparedTo=m.cmp=function(x){var b,L,w,y,C=this;if(x=new C.constructor(x),C.s!==x.s)return C.s||-x.s;if(C.e!==x.e)return C.e>x.e^C.s<0?1:-1;for(w=C.d.length,y=x.d.length,b=0,L=wx.d[b]^C.s<0?1:-1;return w===y?0:w>y^C.s<0?1:-1},m.decimalPlaces=m.dp=function(){var x=this,b=x.d.length-1,L=(b-x.e)*d;if(b=x.d[b],b)for(;b%10==0;b/=10)L--;return L<0?0:L},m.dividedBy=m.div=function(x){return I(this,new this.constructor(x))},m.dividedToIntegerBy=m.idiv=function(x){var b=this,L=b.constructor;return B(I(b,new L(x),0,1),L.precision)},m.equals=m.eq=function(x){return!this.cmp(x)},m.exponent=function(){return P(this)},m.greaterThan=m.gt=function(x){return this.cmp(x)>0},m.greaterThanOrEqualTo=m.gte=function(x){return this.cmp(x)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return this.s===0},m.lessThan=m.lt=function(x){return this.cmp(x)<0},m.lessThanOrEqualTo=m.lte=function(x){return this.cmp(x)<1},m.logarithm=m.log=function(x){var b,L=this,w=L.constructor,y=w.precision,C=y+5;if(x===void 0)x=new w(10);else if(x=new w(x),x.s<1||x.eq(f))throw Error(o+"NaN");if(L.s<1)throw Error(o+(L.s?"NaN":"-Infinity"));return L.eq(f)?new w(0):(a=!1,b=I(O(L,C),O(x,C),C),a=!0,B(b,y))},m.minus=m.sub=function(x){var b=this;return x=new b.constructor(x),b.s==x.s?$(b,x):g(b,(x.s=-x.s,x))},m.modulo=m.mod=function(x){var b,L=this,w=L.constructor,y=w.precision;if(x=new w(x),!x.s)throw Error(o+"NaN");return L.s?(a=!1,b=I(L,x,0,1).times(x),a=!0,L.minus(b)):B(new w(L),y)},m.naturalExponential=m.exp=function(){return A(this)},m.naturalLogarithm=m.ln=function(){return O(this)},m.negated=m.neg=function(){var x=new this.constructor(this);return x.s=-x.s||0,x},m.plus=m.add=function(x){var b=this;return x=new b.constructor(x),b.s==x.s?g(b,x):$(b,(x.s=-x.s,x))},m.precision=m.sd=function(x){var b,L,w,y=this;if(x!==void 0&&x!==!!x&&x!==1&&x!==0)throw Error(n+x);if(b=P(y)+1,w=y.d.length-1,L=w*d+1,w=y.d[w],w){for(;w%10==0;w/=10)L--;for(w=y.d[0];w>=10;w/=10)L++}return x&&b>L?b:L},m.squareRoot=m.sqrt=function(){var x,b,L,w,y,C,D,T=this,N=T.constructor;if(T.s<1){if(!T.s)return new N(0);throw Error(o+"NaN")}for(x=P(T),a=!1,y=Math.sqrt(+T),y==0||y==1/0?(b=S(T.d),(b.length+x)%2==0&&(b+="0"),y=Math.sqrt(b),x=u((x+1)/2)-(x<0||x%2),y==1/0?b="5e"+x:(b=y.toExponential(),b=b.slice(0,b.indexOf("e")+1)+x),w=new N(b)):w=new N(y.toString()),L=N.precision,y=D=L+3;;)if(C=w,w=C.plus(I(T,C,D+2)).times(.5),S(C.d).slice(0,D)===(b=S(w.d)).slice(0,D)){if(b=b.slice(D-3,D+1),y==D&&b=="4999"){if(B(C,L+1,0),C.times(C).eq(T)){w=C;break}}else if(b!="9999")break;D+=4}return a=!0,B(w,L)},m.times=m.mul=function(x){var b,L,w,y,C,D,T,N,U,z=this,W=z.constructor,ae=z.d,R=(x=new W(x)).d;if(!z.s||!x.s)return new W(0);for(x.s*=z.s,L=z.e+x.e,N=ae.length,U=R.length,N=0;){for(b=0,y=N+w;y>w;)T=C[y]+R[w]*ae[y-w-1]+b,C[y--]=T%c|0,b=T/c|0;C[y]=(C[y]+b)%c|0}for(;!C[--D];)C.pop();return b?++L:C.shift(),x.d=C,x.e=L,a?B(x,W.precision):x},m.toDecimalPlaces=m.todp=function(x,b){var L=this,w=L.constructor;return L=new w(L),x===void 0?L:(v(x,0,t),b===void 0?b=w.rounding:v(b,0,8),B(L,x+P(L)+1,b))},m.toExponential=function(x,b){var L,w=this,y=w.constructor;return x===void 0?L=F(w,!0):(v(x,0,t),b===void 0?b=y.rounding:v(b,0,8),w=B(new y(w),x+1,b),L=F(w,!0,x+1)),L},m.toFixed=function(x,b){var L,w,y=this,C=y.constructor;return x===void 0?F(y):(v(x,0,t),b===void 0?b=C.rounding:v(b,0,8),w=B(new C(y),x+P(y)+1,b),L=F(w.abs(),!1,x+P(w)+1),y.isneg()&&!y.isZero()?"-"+L:L)},m.toInteger=m.toint=function(){var x=this,b=x.constructor;return B(new b(x),P(x)+1,b.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(x){var b,L,w,y,C,D,T=this,N=T.constructor,U=12,z=+(x=new N(x));if(!x.s)return new N(f);if(T=new N(T),!T.s){if(x.s<1)throw Error(o+"Infinity");return T}if(T.eq(f))return T;if(w=N.precision,x.eq(f))return B(T,w);if(b=x.e,L=x.d.length-1,D=b>=L,C=T.s,D){if((L=z<0?-z:z)<=p){for(y=new N(f),b=Math.ceil(w/d+4),a=!1;L%2&&(y=y.times(T),Y(y.d,b)),L=u(L/2),L!==0;)T=T.times(T),Y(T.d,b);return a=!0,x.s<0?new N(f).div(y):B(y,w)}}else if(C<0)throw Error(o+"NaN");return C=C<0&&x.d[Math.max(b,L)]&1?-1:1,T.s=1,a=!1,y=x.times(O(T,w+U)),a=!0,y=A(y),y.s=C,y},m.toPrecision=function(x,b){var L,w,y=this,C=y.constructor;return x===void 0?(L=P(y),w=F(y,L<=C.toExpNeg||L>=C.toExpPos)):(v(x,1,t),b===void 0?b=C.rounding:v(b,0,8),y=B(new C(y),x,b),L=P(y),w=F(y,x<=L||L<=C.toExpNeg,x)),w},m.toSignificantDigits=m.tosd=function(x,b){var L=this,w=L.constructor;return x===void 0?(x=w.precision,b=w.rounding):(v(x,1,t),b===void 0?b=w.rounding:v(b,0,8)),B(new w(L),x,b)},m.toString=m.valueOf=m.val=m.toJSON=function(){var x=this,b=P(x),L=x.constructor;return F(x,b<=L.toExpNeg||b>=L.toExpPos)};function g(x,b){var L,w,y,C,D,T,N,U,z=x.constructor,W=z.precision;if(!x.s||!b.s)return b.s||(b=new z(x)),a?B(b,W):b;if(N=x.d,U=b.d,D=x.e,y=b.e,N=N.slice(),C=D-y,C){for(C<0?(w=N,C=-C,T=U.length):(w=U,y=D,T=N.length),D=Math.ceil(W/d),T=D>T?D+1:T+1,C>T&&(C=T,w.length=1),w.reverse();C--;)w.push(0);w.reverse()}for(T=N.length,C=U.length,T-C<0&&(C=T,w=U,U=N,N=w),L=0;C;)L=(N[--C]=N[C]+U[C]+L)/c|0,N[C]%=c;for(L&&(N.unshift(L),++y),T=N.length;N[--T]==0;)N.pop();return b.d=N,b.e=y,a?B(b,W):b}function v(x,b,L){if(x!==~~x||xL)throw Error(n+x)}function S(x){var b,L,w,y=x.length-1,C="",D=x[0];if(y>0){for(C+=D,b=1;bD?1:-1;else for(T=N=0;Ty[T]?1:-1;break}return N}function L(w,y,C){for(var D=0;C--;)w[C]-=D,D=w[C]1;)w.shift()}return function(w,y,C,D){var T,N,U,z,W,ae,R,q,V,_,Ce,ee,He,ze,Lt,_a,Nt,fi,ci=w.constructor,TC=w.s==y.s?1:-1,Vt=w.d,Me=y.d;if(!w.s)return new ci(w);if(!y.s)throw Error(o+"Division by zero");for(N=w.e-y.e,Nt=Me.length,Lt=Vt.length,R=new ci(TC),q=R.d=[],U=0;Me[U]==(Vt[U]||0);)++U;if(Me[U]>(Vt[U]||0)&&--N,C==null?ee=C=ci.precision:D?ee=C+(P(w)-P(y))+1:ee=C,ee<0)return new ci(0);if(ee=ee/d+2|0,U=0,Nt==1)for(z=0,Me=Me[0],ee++;(U1&&(Me=x(Me,z),Vt=x(Vt,z),Nt=Me.length,Lt=Vt.length),ze=Nt,V=Vt.slice(0,Nt),_=V.length;_=c/2&&++_a;do z=0,T=b(Me,V,Nt,_),T<0?(Ce=V[0],Nt!=_&&(Ce=Ce*c+(V[1]||0)),z=Ce/_a|0,z>1?(z>=c&&(z=c-1),W=x(Me,z),ae=W.length,_=V.length,T=b(W,V,ae,_),T==1&&(z--,L(W,Nt16)throw Error(i+P(x));if(!x.s)return new z(f);for(b==null?(a=!1,T=W):T=b,D=new z(.03125);x.abs().gte(.1);)x=x.times(D),U+=5;for(w=Math.log(l(2,U))/Math.LN10*2+5|0,T+=w,L=y=C=new z(f),z.precision=T;;){if(y=B(y.times(x),T),L=L.times(++N),D=C.plus(I(y,L,T)),S(D.d).slice(0,T)===S(C.d).slice(0,T)){for(;U--;)C=B(C.times(C),T);return z.precision=W,b==null?(a=!0,B(C,W)):C}C=D}}function P(x){for(var b=x.e*d,L=x.d[0];L>=10;L/=10)b++;return b}function k(x,b,L){if(b>x.LN10.sd())throw a=!0,L&&(x.precision=L),Error(o+"LN10 precision limit exceeded");return B(new x(x.LN10),b)}function M(x){for(var b="";x--;)b+="0";return b}function O(x,b){var L,w,y,C,D,T,N,U,z,W=1,ae=10,R=x,q=R.d,V=R.constructor,_=V.precision;if(R.s<1)throw Error(o+(R.s?"NaN":"-Infinity"));if(R.eq(f))return new V(0);if(b==null?(a=!1,U=_):U=b,R.eq(10))return b==null&&(a=!0),k(V,U);if(U+=ae,V.precision=U,L=S(q),w=L.charAt(0),C=P(R),Math.abs(C)<15e14){for(;w<7&&w!=1||w==1&&L.charAt(1)>3;)R=R.times(x),L=S(R.d),w=L.charAt(0),W++;C=P(R),w>1?(R=new V("0."+L),C++):R=new V(w+"."+L.slice(1))}else return N=k(V,U+2,_).times(C+""),R=O(new V(w+"."+L.slice(1)),U-ae).plus(N),V.precision=_,b==null?(a=!0,B(R,_)):R;for(T=D=R=I(R.minus(f),R.plus(f),U),z=B(R.times(R),U),y=3;;){if(D=B(D.times(z),U),N=T.plus(I(D,new V(y),U)),S(N.d).slice(0,U)===S(T.d).slice(0,U))return T=T.times(2),C!==0&&(T=T.plus(k(V,U+2,_).times(C+""))),T=I(T,new V(W),U),V.precision=_,b==null?(a=!0,B(T,_)):T;T=N,y+=2}}function j(x,b){var L,w,y;for((L=b.indexOf("."))>-1&&(b=b.replace(".","")),(w=b.search(/e/i))>0?(L<0&&(L=w),L+=+b.slice(w+1),b=b.substring(0,w)):L<0&&(L=b.length),w=0;b.charCodeAt(w)===48;)++w;for(y=b.length;b.charCodeAt(y-1)===48;)--y;if(b=b.slice(w,y),b){if(y-=w,L=L-w-1,x.e=u(L/d),x.d=[],w=(L+1)%d,L<0&&(w+=d),wh||x.e<-h))throw Error(i+L)}else x.s=0,x.e=0,x.d=[0];return x}function B(x,b,L){var w,y,C,D,T,N,U,z,W=x.d;for(D=1,C=W[0];C>=10;C/=10)D++;if(w=b-D,w<0)w+=d,y=b,U=W[z=0];else{if(z=Math.ceil((w+1)/d),C=W.length,z>=C)return x;for(U=C=W[z],D=1;C>=10;C/=10)D++;w%=d,y=w-d+D}if(L!==void 0&&(C=l(10,D-y-1),T=U/C%10|0,N=b<0||W[z+1]!==void 0||U%C,N=L<4?(T||N)&&(L==0||L==(x.s<0?3:2)):T>5||T==5&&(L==4||N||L==6&&(w>0?y>0?U/l(10,D-y):0:W[z-1])%10&1||L==(x.s<0?8:7))),b<1||!W[0])return N?(C=P(x),W.length=1,b=b-C-1,W[0]=l(10,(d-b%d)%d),x.e=u(-b/d)||0):(W.length=1,W[0]=x.e=x.s=0),x;if(w==0?(W.length=z,C=1,z--):(W.length=z+1,C=l(10,d-w),W[z]=y>0?(U/l(10,D-y)%l(10,y)|0)*C:0),N)for(;;)if(z==0){(W[0]+=C)==c&&(W[0]=1,++x.e);break}else{if(W[z]+=C,W[z]!=c)break;W[z--]=0,C=1}for(w=W.length;W[--w]===0;)W.pop();if(a&&(x.e>h||x.e<-h))throw Error(i+P(x));return x}function $(x,b){var L,w,y,C,D,T,N,U,z,W,ae=x.constructor,R=ae.precision;if(!x.s||!b.s)return b.s?b.s=-b.s:b=new ae(x),a?B(b,R):b;if(N=x.d,W=b.d,w=b.e,U=x.e,N=N.slice(),D=U-w,D){for(z=D<0,z?(L=N,D=-D,T=W.length):(L=W,w=U,T=N.length),y=Math.max(Math.ceil(R/d),T)+2,D>y&&(D=y,L.length=1),L.reverse(),y=D;y--;)L.push(0);L.reverse()}else{for(y=N.length,T=W.length,z=y0;--y)N[T++]=0;for(y=W.length;y>D;){if(N[--y]0?C=C.charAt(0)+"."+C.slice(1)+M(w):D>1&&(C=C.charAt(0)+"."+C.slice(1)),C=C+(y<0?"e":"e+")+y):y<0?(C="0."+M(-y-1)+C,L&&(w=L-D)>0&&(C+=M(w))):y>=D?(C+=M(y+1-D),L&&(w=L-y-1)>0&&(C=C+"."+M(w))):((w=y+1)0&&(y+1===D&&(C+="."),C+=M(w))),x.s<0?"-"+C:C}function Y(x,b){if(x.length>b)return x.length=b,!0}function Z(x){var b,L,w;function y(C){var D=this;if(!(D instanceof y))return new y(C);if(D.constructor=y,C instanceof y){D.s=C.s,D.e=C.e,D.d=(C=C.d)?C.slice():C;return}if(typeof C=="number"){if(C*0!==0)throw Error(n+C);if(C>0)D.s=1;else if(C<0)C=-C,D.s=-1;else{D.s=0,D.e=0,D.d=[0];return}if(C===~~C&&C<1e7){D.e=0,D.d=[C];return}return j(D,C.toString())}else if(typeof C!="string")throw Error(n+C);if(C.charCodeAt(0)===45?(C=C.slice(1),D.s=-1):D.s=1,s.test(C))j(D,C);else throw Error(n+C)}if(y.prototype=m,y.ROUND_UP=0,y.ROUND_DOWN=1,y.ROUND_CEIL=2,y.ROUND_FLOOR=3,y.ROUND_HALF_UP=4,y.ROUND_HALF_DOWN=5,y.ROUND_HALF_EVEN=6,y.ROUND_HALF_CEIL=7,y.ROUND_HALF_FLOOR=8,y.clone=Z,y.config=y.set=Q,x===void 0&&(x={}),x)for(w=["precision","rounding","toExpNeg","toExpPos","LN10"],b=0;b=y[b+1]&&w<=y[b+2])this[L]=w;else throw Error(n+L+": "+w);if((w=x[L="LN10"])!==void 0)if(w==Math.LN10)this[L]=new this(w);else throw Error(n+L+": "+w);return this}r=Z(r),r.default=r.Decimal=r,f=new r(1),typeof define=="function"&&define.amd?define(function(){return r}):typeof Tu<"u"&&Tu.exports?Tu.exports=r:(e||(e=typeof self<"u"&&self&&self.self==self?self:Function("return this")()),e.Decimal=r)})($v)});var qb=_p((h6,Yd)=>{"use strict";var dT=Object.prototype.hasOwnProperty,ut="~";function Wn(){}Object.create&&(Wn.prototype=Object.create(null),new Wn().__proto__||(ut=!1));function pT(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function Ub(e,t,r,a,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var n=new pT(r,a||e,o),i=ut?ut+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],n]:e._events[i].push(n):(e._events[i]=n,e._eventsCount++),e}function Xl(e,t){--e._eventsCount===0?e._events=new Wn:delete e._events[t]}function Je(){this._events=new Wn,this._eventsCount=0}Je.prototype.eventNames=function(){var t=[],r,a;if(this._eventsCount===0)return t;for(a in r=this._events)dT.call(r,a)&&t.push(ut?a.slice(1):a);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Je.prototype.listeners=function(t){var r=ut?ut+t:t,a=this._events[r];if(!a)return[];if(a.fn)return[a.fn];for(var o=0,n=a.length,i=new Array(n);oe.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),di=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();import{forwardRef as UC,createElement as Fp}from"react";var Bp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var jp=UC(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:n,iconNode:i,...u},l)=>Fp("svg",{ref:l,...Bp,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:di("lucide",o),...u},[...i.map(([s,f])=>Fp(s,f)),...Array.isArray(n)?n:[n]]));var zp=(e,t)=>{let r=qC(({className:a,...o},n)=>HC(jp,{ref:n,iconNode:t,className:di(`lucide-${Np(e)}`,a),...o}));return r.displayName=`${e}`,r};var Uo=zp("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);import*as pi from"react";import{forwardRef as JC}from"react";function Up(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{var{children:r,width:a,height:o,viewBox:n,className:i,style:u,title:l,desc:s}=e,f=YC(e,XC),c=n||{width:a,height:o,x:0,y:0},d=J("recharts-surface",i);return pi.createElement("svg",Es({},me(f),{className:d,width:a,height:o,style:u,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height),ref:t}),pi.createElement("title",null,l),pi.createElement("desc",null,s),r)});import*as mi from"react";var QC=["children","className"];function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:r,className:a}=e,o=eS(e,QC),n=J("recharts-layer",a);return mi.createElement("g",Ms({className:n},me(o),{ref:t}),r)});import{createContext as rS,useContext as UF}from"react";var Hp=rS(null);import*as lm from"react";function se(e){return function(){return e}}var Ts=Math.cos;var Ho=Math.sin,Ue=Math.sqrt;var $r=Math.PI,WF=$r/2,Na=2*$r;var Rs=Math.PI,_s=2*Rs,Xr=1e-6,aS=_s-Xr;function Wp(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Wp;let r=10**t;return function(a){this._+=a[0];for(let o=1,n=a.length;oXr)if(!(Math.abs(c*l-s*f)>Xr)||!n)this._append`L${this._x1=t},${this._y1=r}`;else{let p=a-i,h=o-u,m=l*l+s*s,g=p*p+h*h,v=Math.sqrt(m),S=Math.sqrt(d),I=n*Math.tan((Rs-Math.acos((m+d-g)/(2*v*S)))/2),A=I/S,P=I/v;Math.abs(A-1)>Xr&&this._append`L${t+A*f},${r+A*c}`,this._append`A${n},${n},0,0,${+(c*p>f*h)},${this._x1=t+P*l},${this._y1=r+P*s}`}}arc(t,r,a,o,n,i){if(t=+t,r=+r,a=+a,i=!!i,a<0)throw new Error(`negative radius: ${a}`);let u=a*Math.cos(o),l=a*Math.sin(o),s=t+u,f=r+l,c=1^i,d=i?o-n:n-o;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Xr||Math.abs(this._y1-f)>Xr)&&this._append`L${s},${f}`,a&&(d<0&&(d=d%_s+_s),d>aS?this._append`A${a},${a},0,1,${c},${t-u},${r-l}A${a},${a},0,1,${c},${this._x1=s},${this._y1=f}`:d>Xr&&this._append`A${a},${a},0,${+(d>=Rs)},${c},${this._x1=t+a*Math.cos(n)},${this._y1=r+a*Math.sin(n)}`)}rect(t,r,a,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${a=+a}v${+o}h${-a}Z`}toString(){return this._}};function Vp(){return new Yr}Vp.prototype=Yr.prototype;function Ba(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let a=Math.floor(r);if(!(a>=0))throw new RangeError(`invalid digits: ${r}`);t=a}return e},()=>new Yr(t)}var JF=Array.prototype.slice;function Fa(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Gp(e){this._context=e}Gp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ar(e){return new Gp(e)}function hi(e){return e[0]}function gi(e){return e[1]}function Wo(e,t){var r=se(!0),a=null,o=Ar,n=null,i=Ba(u);e=typeof e=="function"?e:e===void 0?hi:se(e),t=typeof t=="function"?t:t===void 0?gi:se(t);function u(l){var s,f=(l=Fa(l)).length,c,d=!1,p;for(a==null&&(n=o(p=i())),s=0;s<=f;++s)!(s=p;--h)u.point(I[h],A[h]);u.lineEnd(),u.areaEnd()}v&&(I[d]=+e(g,d,c),A[d]=+t(g,d,c),u.point(a?+a(g,d,c):I[d],r?+r(g,d,c):A[d]))}if(S)return u=null,S+""||null}function f(){return Wo().defined(o).curve(i).context(n)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:se(+c),a=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:se(+c),s):e},s.x1=function(c){return arguments.length?(a=c==null?null:typeof c=="function"?c:se(+c),s):a},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:se(+c),r=null,s):t},s.y0=function(c){return arguments.length?(t=typeof c=="function"?c:se(+c),s):t},s.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:se(+c),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(a).y(t)},s.defined=function(c){return arguments.length?(o=typeof c=="function"?c:se(!!c),s):o},s.curve=function(c){return arguments.length?(i=c,n!=null&&(u=i(n)),s):i},s.context=function(c){return arguments.length?(c==null?n=u=null:u=i(n=c),s):n},s}var vi=class{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};function Ns(e){return new vi(e,!0)}function Bs(e){return new vi(e,!1)}var za={draw(e,t){let r=Ue(t/$r);e.moveTo(r,0),e.arc(0,0,r,0,Na)}};var Fs={draw(e,t){let r=Ue(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};var Kp=Ue(1/3),nS=Kp*2,js={draw(e,t){let r=Ue(t/nS),a=r*Kp;e.moveTo(0,-r),e.lineTo(a,0),e.lineTo(0,r),e.lineTo(-a,0),e.closePath()}};var zs={draw(e,t){let r=Ue(t),a=-r/2;e.rect(a,a,r,r)}};var iS=.8908130915292852,$p=Ho($r/10)/Ho(7*$r/10),uS=Ho(Na/10)*$p,lS=-Ts(Na/10)*$p,Us={draw(e,t){let r=Ue(t*iS),a=uS*r,o=lS*r;e.moveTo(0,-r),e.lineTo(a,o);for(let n=1;n<5;++n){let i=Na*n/5,u=Ts(i),l=Ho(i);e.lineTo(l*r,-u*r),e.lineTo(u*a-l*o,l*a+u*o)}e.closePath()}};var qs=Ue(3),Hs={draw(e,t){let r=-Ue(t/(qs*3));e.moveTo(0,r*2),e.lineTo(-qs*r,-r),e.lineTo(qs*r,-r),e.closePath()}};var Pt=-.5,At=Ue(3)/2,Ws=1/Ue(12),sS=(Ws/2+1)*3,Vs={draw(e,t){let r=Ue(t/sS),a=r/2,o=r*Ws,n=a,i=r*Ws+r,u=-n,l=i;e.moveTo(a,o),e.lineTo(n,i),e.lineTo(u,l),e.lineTo(Pt*a-At*o,At*a+Pt*o),e.lineTo(Pt*n-At*i,At*n+Pt*i),e.lineTo(Pt*u-At*l,At*u+Pt*l),e.lineTo(Pt*a+At*o,Pt*o-At*a),e.lineTo(Pt*n+At*i,Pt*i-At*n),e.lineTo(Pt*u+At*l,Pt*l-At*u),e.closePath()}};function xi(e,t){let r=null,a=Ba(o);e=typeof e=="function"?e:se(e||za),t=typeof t=="function"?t:se(t===void 0?64:+t);function o(){let n;if(r||(r=n=a()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),n)return r=null,n+""||null}return o.type=function(n){return arguments.length?(e=typeof n=="function"?n:se(n),o):e},o.size=function(n){return arguments.length?(t=typeof n=="function"?n:se(+n),o):t},o.context=function(n){return arguments.length?(r=n??null,o):r},o}function Ua(){}function qa(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Xp(e){this._context=e}Xp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:qa(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:qa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Gs(e){return new Xp(e)}function Yp(e){this._context=e}Yp.prototype={areaStart:Ua,areaEnd:Ua,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:qa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ks(e){return new Yp(e)}function Zp(e){this._context=e}Zp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:qa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $s(e){return new Zp(e)}function Jp(e){this._context=e}Jp.prototype={areaStart:Ua,areaEnd:Ua,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Xs(e){return new Jp(e)}function Qp(e){return e<0?-1:1}function em(e,t,r){var a=e._x1-e._x0,o=t-e._x1,n=(e._y1-e._y0)/(a||o<0&&-0),i=(r-e._y1)/(o||a<0&&-0),u=(n*o+i*a)/(a+o);return(Qp(n)+Qp(i))*Math.min(Math.abs(n),Math.abs(i),.5*Math.abs(u))||0}function tm(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Ys(e,t,r){var a=e._x0,o=e._y0,n=e._x1,i=e._y1,u=(n-a)/3;e._context.bezierCurveTo(a+u,o+u*t,n-u,i-u*r,n,i)}function yi(e){this._context=e}yi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ys(this,this._t0,tm(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ys(this,tm(this,r=em(this,e,t)),r);break;default:Ys(this,this._t0,r=em(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function rm(e){this._context=new am(e)}(rm.prototype=Object.create(yi.prototype)).point=function(e,t){yi.prototype.point.call(this,t,e)};function am(e){this._context=e}am.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,a,o,n){this._context.bezierCurveTo(t,e,a,r,n,o)}};function Zs(e){return new yi(e)}function Js(e){return new rm(e)}function nm(e){this._context=e}nm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var a=om(e),o=om(t),n=0,i=1;i=0;--t)o[t]=(i[t]-o[t+1])/n[t];for(n[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function ef(e){return new bi(e,.5)}function tf(e){return new bi(e,0)}function rf(e){return new bi(e,1)}function pt(e,t){if((i=e.length)>1)for(var r=1,a,o,n=e[t[0]],i,u=n.length;r=0;)r[t]=t;return r}function fS(e,t){return e[t]}function cS(e){let t=[];return t.key=e,t}function af(){var e=se([]),t=Ha,r=pt,a=fS;function o(n){var i=Array.from(e.apply(this,arguments),cS),u,l=i.length,s=-1,f;for(let c of n)for(u=0,++s;u0){for(var r,a,o=0,n=e[0].length,i;o0){for(var r=0,a=e[t[0]],o,n=a.length;r0)||!((n=(o=e[t[0]]).length)>0))){for(var r=0,a=1,o,n,i;a1&&arguments[1]!==void 0?arguments[1]:mS,r=10**t,a=Math.round(e*r)/r;return Object.is(a,-0)?0:a}function he(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{var u=r[i-1];return typeof u=="string"?o+u+n:u!==void 0?o+Gt(u)+n:o+n},"")}var Re=e=>e===0?0:e>0?1:-1,st=e=>typeof e=="number"&&e!=+e,ur=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,H=e=>(typeof e=="number"||e instanceof Number)&&!st(e),rt=e=>H(e)||typeof e=="string",hS=0,lr=e=>{var t=++hS;return"".concat(e||"").concat(t)},Ot=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!H(t)&&typeof t!="string")return a;var n;if(ur(t)){if(r==null)return a;var i=t.indexOf("%");n=r*parseFloat(t.slice(0,i))/100}else n=+t;return st(n)&&(n=a),o&&r!=null&&n>r&&(n=r),n},sf=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},a=0;aa&&(typeof t=="function"?t(a):mt(a,t))===r)}var ge=e=>e===null||typeof e>"u",sr=e=>ge(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Ve(e){return e!=null}function ht(){}var gS=["type","size","sizeType"];function ff(){return ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t="symbol".concat(sr(e));return sm[t]||za},SS=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var a=18*IS;return 1.25*e*e*(Math.tan(a)-Math.tan(a*2)*Math.tan(a)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},LS=(e,t)=>{sm["symbol".concat(sr(e))]=t},cf=e=>{var{type:t="circle",size:r=64,sizeType:a="area"}=e,o=bS(e,gS),n=um(um({},o),{},{type:t,size:r,sizeType:a}),i="circle";typeof t=="string"&&(i=t);var u=()=>{var d=CS(i),p=xi().type(d).size(SS(r,a,i)),h=p();if(h!==null)return h},{className:l,cx:s,cy:f}=n,c=me(n);return H(s)&&H(f)&&H(r)?lm.createElement("path",ff({},c,{className:J("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(f,")"),d:u()})):null};cf.registerSymbol=LS;import{isValidElement as PS}from"react";var Si=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Ga=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(PS(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var a={};return Object.keys(r).forEach(o=>{qo(o)&&typeof r[o]=="function"&&(a[o]=t||(n=>r[o](r,n)))}),a},AS=(e,t,r)=>a=>(e(t,r,a),null),fm=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var a=null;return Object.keys(e).forEach(o=>{var n=e[o];qo(o)&&typeof n=="function"&&(a||(a={}),a[o]=AS(n,t,r))}),a};function cm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function OS(e){for(var t=1;t(i[u]===void 0&&a[u]!==void 0&&(i[u]=a[u]),i),r);return n}function dm(e,t){let r=new Map;for(let a=0;aObject.prototype.propertyIsEnumerable.call(e,t))}function Ka(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var vm="[object RegExp]",Pi="[object String]",Ai="[object Number]",Oi="[object Boolean]",ki="[object Arguments]",xm="[object Symbol]",ym="[object Date]",bm="[object Map]",wm="[object Set]",Im="[object Array]";var Cm="[object ArrayBuffer]",Sm="[object Object]";var Lm="[object DataView]",Pm="[object Uint8Array]",Am="[object Uint8ClampedArray]",Om="[object Uint16Array]",km="[object Uint32Array]";var Em="[object Int8Array]",Dm="[object Int16Array]",Mm="[object Int32Array]";var Tm="[object Float32Array]",Rm="[object Float64Array]";var df=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}();function _m(e){return typeof df.Buffer<"u"&&df.Buffer.isBuffer(e)}function Nm(e,t){return Or(e,void 0,e,new Map,t)}function Or(e,t,r,a=new Map,o=void 0){let n=o?.(e,t,r,a);if(n!==void 0)return n;if(Vo(e))return e;if(a.has(e))return a.get(e);if(Array.isArray(e)){let i=new Array(e.length);a.set(e,i);for(let u=0;u{}):pf(e,t,function a(o,n,i,u,l,s){let f=r(o,n,i,u,l,s);return f!==void 0?!!f:pf(o,n,a,s)},new Map)}function pf(e,t,r,a){if(t===e)return!0;switch(typeof t){case"object":return TS(e,t,r,a);case"function":return Object.keys(t).length>0?pf(e,{...t},r,a):Go(e,t);default:return Ei(e)?typeof t=="string"?t==="":!0:Go(e,t)}}function TS(e,t,r,a){if(t==null)return!0;if(Array.isArray(t))return Fm(e,t,r,a);if(t instanceof Map)return RS(e,t,r,a);if(t instanceof Set)return _S(e,t,r,a);let o=Object.keys(t);if(e==null||Vo(e))return o.length===0;if(o.length===0)return!0;if(a?.has(t))return a.get(t)===e;a?.set(t,e);try{for(let n=0;n{})}function jm(e){return e=Bm(e),t=>Di(t,e)}function zm(e,t){return Nm(e,(r,a,o,n)=>{let i=t?.(r,a,o,n);if(i!==void 0)return i;if(typeof e=="object"){if(Ka(e)==="[object Object]"&&typeof e.constructor!="function"){let u={};return n.set(e,u),kt(u,e,o,n),u}switch(Object.prototype.toString.call(e)){case Ai:case Pi:case Oi:{let u=new e.constructor(e?.valueOf());return kt(u,e),u}case ki:{let u={};return kt(u,e),u.length=e.length,u[Symbol.iterator]=e[Symbol.iterator],u}default:return}}})}function Um(e){return zm(e)}var NS=/^(?:0|[1-9]\d*)$/;function Mi(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e=0}function Ti(e){return e!=null&&typeof e!="function"&&Gm(e.length)}function Km(e){return typeof e=="object"&&e!==null}function $m(e){return Km(e)&&Ti(e)}function Ri(e,t=Li){return $m(e)?dm(Array.from(e),pm(Vm(t),1)):[]}function Xm(e,t,r){return t===!0?Ri(e,r):typeof t=="function"?Ri(e,t):e}import*as hf from"react";var{useRef:BS,useEffect:FS,useMemo:jS,useDebugValue:zS}=hf;function gf(e,t,r,a,o){let n=BS(null),i;n.current===null?(i={hasValue:!1,value:null},n.current=i):i=n.current;let[u,l]=jS(()=>{let f=!1,c,d,p=v=>{if(!f){f=!0,c=v;let P=a(v);if(o!==void 0&&i.hasValue){let k=i.value;if(o(k,P))return d=k,k}return d=P,P}let S=c,I=d;if(Object.is(S,v))return I;let A=a(v);return o!==void 0&&o(I,A)?(c=v,I):(c=v,d=A,A)},h=r===void 0?null:r;return[()=>p(t()),h===null?void 0:()=>p(h())]},[t,r,a,o]),s=hf.useSyncExternalStore(e,u,l);return FS(()=>{i.hasValue=!0,i.value=s},[s]),zS(s),s}import{useContext as Ym,useMemo as qS}from"react";import{createContext as US}from"react";var Ko=US(null);var HS=e=>e,ne=()=>{var e=Ym(Ko);return e?e.store.dispatch:HS},_i=()=>{},WS=()=>_i,VS=(e,t)=>e===t;function G(e){var t=Ym(Ko),r=qS(()=>t?a=>{if(a!=null)return e(a)}:_i,[t,e]);return gf(t?t.subscription.addNestedSub:WS,t?t.store.getState:_i,t?t.store.getState:_i,r,VS)}function GS(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function KS(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function $S(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){let r=e.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${t}[${r}]`)}}var Zm=e=>Array.isArray(e)?e:[e];function XS(e){let t=Array.isArray(e[0])?e[0]:e;return $S(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function YS(e,t){let r=[],{length:a}=e;for(let o=0;o{r=Ni(),i.resetResultsCount()},i.resultsCount=()=>n,i.resetResultsCount=()=>{n=0},i}function eL(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,a=(...o)=>{let n=0,i=0,u,l={},s=o.pop();typeof s=="object"&&(l=s,s=o.pop()),GS(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);let f={...r,...l},{memoize:c,memoizeOptions:d=[],argsMemoize:p=Qm,argsMemoizeOptions:h=[],devModeChecks:m={}}=f,g=Zm(d),v=Zm(h),S=XS(o),I=c(function(){return n++,s.apply(null,arguments)},...g),A=!0,P=p(function(){i++;let M=YS(S,arguments);return u=I.apply(null,M),u},...v);return Object.assign(P,{resultFunc:s,memoizedResultFunc:I,dependencies:S,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>u,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:c,argsMemoize:p})};return Object.assign(a,{withTypes:()=>a}),a}var E=eL(Qm),tL=Object.assign((e,t=E)=>{KS(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),a=r.map(n=>e[n]);return t(a,(...n)=>n.reduce((i,u,l)=>(i[r[l]]=u,i),{}))},{withTypes:()=>tL});function eh(e,t=1){let r=[],a=Math.floor(t),o=(n,i)=>{for(let u=0;u{if(e!==t){let a=th(e),o=th(t);if(a===o&&a===0){if(et)return r==="desc"?-1:1}return r==="desc"?o-a:a-o}return 0};function Bi(e){return typeof e=="symbol"||e instanceof Symbol}var rL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aL=/^\w*$/;function ah(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Bi(e)?!0:typeof e=="string"&&(aL.test(e)||!rL.test(e))||t!=null&&Object.hasOwn(t,e)}function oh(e,t,r,a){if(e==null)return[];r=a?void 0:r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(u=>String(u));let o=(u,l)=>{let s=u;for(let f=0;fl==null||u==null?l:typeof u=="object"&&"key"in u?Object.hasOwn(l,u.key)?l[u.key]:o(l,u.path):typeof u=="function"?u(l):Array.isArray(u)?o(l,u):typeof l=="object"?l[u]:l,i=t.map(u=>(Array.isArray(u)&&u.length===1&&(u=u[0]),u==null||typeof u=="function"||Array.isArray(u)||ah(u)?u:{key:u,path:Va(u)}));return e.map(u=>({original:u,criteria:i.map(l=>n(l,u))})).slice().sort((u,l)=>{for(let s=0;su.original)}function fr(e,...t){let r=t.length;return r>1&&$o(e,t[0],t[1])?t=[]:r>2&&$o(t[0],t[1],t[2])&&(t=[t[0]]),oh(e,eh(t),["asc"])}var vf=e=>e.legend.settings,nh=e=>e.legend.size,oL=e=>e.legend.payload,uq=E([oL,vf],(e,t)=>{var{itemSorter:r}=t,a=e.flat(1);return r?fr(a,r):a});import{useCallback as nL,useState as iL}from"react";var Fi=1;function ih(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=iL({height:0,left:0,top:0,width:0}),a=nL(o=>{if(o!=null){var n=o.getBoundingClientRect(),i={height:n.height,left:n.left,top:n.top,width:n.width};(Math.abs(i.height-t.height)>Fi||Math.abs(i.left-t.left)>Fi||Math.abs(i.top-t.top)>Fi||Math.abs(i.width-t.width)>Fi)&&r({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,a]}import{useEffect as qP}from"react";function Ge(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var uL=typeof Symbol=="function"&&Symbol.observable||"@@observable",uh=uL,xf=()=>Math.random().toString(36).substring(7).split("").join("."),lL={INIT:`@@redux/INIT${xf()}`,REPLACE:`@@redux/REPLACE${xf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${xf()}`},ji=lL;function zi(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function yf(e,t,r){if(typeof e!="function")throw new Error(Ge(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ge(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ge(1));return r(yf)(e,t)}let a=e,o=t,n=new Map,i=n,u=0,l=!1;function s(){i===n&&(i=new Map,n.forEach((g,v)=>{i.set(v,g)}))}function f(){if(l)throw new Error(Ge(3));return o}function c(g){if(typeof g!="function")throw new Error(Ge(4));if(l)throw new Error(Ge(5));let v=!0;s();let S=u++;return i.set(S,g),function(){if(v){if(l)throw new Error(Ge(6));v=!1,s(),i.delete(S),n=null}}}function d(g){if(!zi(g))throw new Error(Ge(7));if(typeof g.type>"u")throw new Error(Ge(8));if(typeof g.type!="string")throw new Error(Ge(17));if(l)throw new Error(Ge(9));try{l=!0,o=a(o,g)}finally{l=!1}return(n=i).forEach(S=>{S()}),g}function p(g){if(typeof g!="function")throw new Error(Ge(10));a=g,d({type:ji.REPLACE})}function h(){let g=c;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(Ge(11));function S(){let A=v;A.next&&A.next(f())}return S(),{unsubscribe:g(S)}},[uh](){return this}}}return d({type:ji.INIT}),{dispatch:d,subscribe:c,getState:f,replaceReducer:p,[uh]:h}}function sL(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:ji.INIT})>"u")throw new Error(Ge(12));if(typeof r(void 0,{type:ji.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ge(13))})}function Ui(e){let t=Object.keys(e),r={};for(let i=0;i"u"){let g=l&&l.type;throw new Error(Ge(14))}f[d]=m,s=s||m!==h}return s=s||a.length!==Object.keys(u).length,s?f:u}}function Xo(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...a)=>t(r(...a)))}function lh(...e){return t=>(r,a)=>{let o=t(r,a),n=()=>{throw new Error(Ge(15))},i={getState:o.getState,dispatch:(l,...s)=>n(l,...s)},u=e.map(l=>l(i));return n=Xo(...u)(o.dispatch),{...o,dispatch:n}}}function bf(e){return zi(e)&&"type"in e&&typeof e.type=="string"}var xh=Symbol.for("immer-nothing"),sh=Symbol.for("immer-draftable"),at=Symbol.for("immer-state");function Bt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var gt=Object,Xa=gt.getPrototypeOf,Vi="constructor",Zi="prototype",Cf="configurable",Gi="enumerable",Hi="writable",Yo="value",Kt=e=>!!e&&!!e[at];function Et(e){return e?yh(e)||Qi(e)||!!e[sh]||!!e[Vi]?.[sh]||eu(e)||tu(e):!1}var fL=gt[Zi][Vi].toString(),fh=new WeakMap;function yh(e){if(!e||!Df(e))return!1;let t=Xa(e);if(t===null||t===gt[Zi])return!0;let r=gt.hasOwnProperty.call(t,Vi)&&t[Vi];if(r===Object)return!0;if(!$a(r))return!1;let a=fh.get(r);return a===void 0&&(a=Function.toString.call(r),fh.set(r,a)),a===fL}function Ji(e,t,r=!0){Qo(e)===0?(r?Reflect.ownKeys(e):gt.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((a,o)=>t(o,a,e))}function Qo(e){let t=e[at];return t?t.type_:Qi(e)?1:eu(e)?2:tu(e)?3:0}var ch=(e,t,r=Qo(e))=>r===2?e.has(t):gt[Zi].hasOwnProperty.call(e,t),Sf=(e,t,r=Qo(e))=>r===2?e.get(t):e[t],Ki=(e,t,r,a=Qo(e))=>{a===2?e.set(t,r):a===3?e.add(r):e[t]=r};function cL(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Qi=Array.isArray,eu=e=>e instanceof Map,tu=e=>e instanceof Set,Df=e=>typeof e=="object",$a=e=>typeof e=="function",wf=e=>typeof e=="boolean";function dL(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var cr=e=>e.copy_||e.base_;var Mf=e=>e.modified_?e.copy_:e.base_;function Lf(e,t){if(eu(e))return new Map(e);if(tu(e))return new Set(e);if(Qi(e))return Array[Zi].slice.call(e);let r=yh(e);if(t===!0||t==="class_only"&&!r){let a=gt.getOwnPropertyDescriptors(e);delete a[at];let o=Reflect.ownKeys(a);for(let n=0;n1&>.defineProperties(e,{set:qi,add:qi,clear:qi,delete:qi}),gt.freeze(e),t&&Ji(e,(r,a)=>{Tf(a,!0)},!1)),e}function pL(){Bt(2)}var qi={[Yo]:pL};function ru(e){return e===null||!Df(e)?!0:gt.isFrozen(e)}var $i="MapSet",Pf="Patches",dh="ArrayMethods",bh={};function Zr(e){let t=bh[e];return t||Bt(0,e),t}var ph=e=>!!bh[e];var Zo,wh=()=>Zo,mL=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ph($i)?Zr($i):void 0,arrayMethodsPlugin_:ph(dh)?Zr(dh):void 0});function mh(e,t){t&&(e.patchPlugin_=Zr(Pf),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Af(e){Of(e),e.drafts_.forEach(hL),e.drafts_=null}function Of(e){e===Zo&&(Zo=e.parent_)}var hh=e=>Zo=mL(Zo,e);function hL(e){let t=e[at];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function gh(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[at].modified_&&(Af(t),Bt(4)),Et(e)&&(e=vh(t,e));let{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[at].base_,e,t)}else e=vh(t,r);return gL(t,e,!0),Af(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==xh?e:void 0}function vh(e,t){if(ru(t))return t;let r=t[at];if(!r)return Xi(t,e.handledSet_,e);if(!au(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:a}=r;if(a)for(;a.length>0;)a.pop()(e);Sh(r,e)}return r.copy_}function gL(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Tf(t,r)}function Ih(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var au=(e,t)=>e.scope_===t,vL=[];function Ch(e,t,r,a){let o=cr(e),n=e.type_;if(a!==void 0&&Sf(o,a,n)===t){Ki(o,a,r,n);return}if(!e.draftLocations_){let u=e.draftLocations_=new Map;Ji(o,(l,s)=>{if(Kt(s)){let f=u.get(s)||[];f.push(l),u.set(s,f)}})}let i=e.draftLocations_.get(t)??vL;for(let u of i)Ki(o,u,r,n)}function xL(e,t,r){e.callbacks_.push(function(o){let n=t;if(!n||!au(n,o))return;o.mapSetPlugin_?.fixSetContents(n);let i=Mf(n);Ch(e,n.draft_??n,i,r),Sh(n,o)})}function Sh(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:a}=t;if(a){let o=a.getPath(e);o&&a.generatePatches_(e,o,t)}Ih(e)}}function yL(e,t,r){let{scope_:a}=e;if(Kt(r)){let o=r[at];au(o,a)&&o.callbacks_.push(function(){Wi(e);let i=Mf(o);Ch(e,r,i,t)})}else Et(r)&&e.callbacks_.push(function(){let n=cr(e);e.type_===3?n.has(r)&&Xi(r,a.handledSet_,a):Sf(n,t,e.type_)===r&&a.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Xi(Sf(e.copy_,t,e.type_),a.handledSet_,a)})}function Xi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Kt(e)||t.has(e)||!Et(e)||ru(e)||(t.add(e),Ji(e,(a,o)=>{if(Kt(o)){let n=o[at];if(au(n,r)){let i=Mf(n);Ki(e,a,i,e.type_),Ih(n)}}else Et(o)&&Xi(o,t,r)})),e}function bL(e,t){let r=Qi(e),a={type_:r?1:0,scope_:t?t.scope_:wh(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=a,n=Yi;r&&(o=[a],n=Jo);let{revoke:i,proxy:u}=Proxy.revocable(o,n);return a.draft_=u,a.revoke_=i,[u,a]}var Yi={get(e,t){if(t===at)return e;let r=e.scope_.arrayMethodsPlugin_,a=e.type_===1&&typeof t=="string";if(a&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let o=cr(e);if(!ch(o,t,e.type_))return wL(e,o,t);let n=o[t];if(e.finalized_||!Et(n)||a&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&dL(t))return n;if(n===If(e.base_,t)){Wi(e);let i=e.type_===1?+t:t,u=Ef(e.scope_,n,e,i);return e.copy_[i]=u}return n},has(e,t){return t in cr(e)},ownKeys(e){return Reflect.ownKeys(cr(e))},set(e,t,r){let a=Lh(cr(e),t);if(a?.set)return a.set.call(e.draft_,r),!0;if(!e.modified_){let o=If(cr(e),t),n=o?.[at];if(n&&n.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(cL(r,o)&&(r!==void 0||ch(e.base_,t,e.type_)))return!0;Wi(e),kf(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),yL(e,t,r)),!0},deleteProperty(e,t){return Wi(e),If(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),kf(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=cr(e),a=Reflect.getOwnPropertyDescriptor(r,t);return a&&{[Hi]:!0,[Cf]:e.type_!==1||t!=="length",[Gi]:a[Gi],[Yo]:r[t]}},defineProperty(){Bt(11)},getPrototypeOf(e){return Xa(e.base_)},setPrototypeOf(){Bt(12)}},Jo={};for(let e in Yi){let t=Yi[e];Jo[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Jo.deleteProperty=function(e,t){return Jo.set.call(this,e,t,void 0)};Jo.set=function(e,t,r){return Yi.set.call(this,e[0],t,r,e[0])};function If(e,t){let r=e[at];return(r?cr(r):e)[t]}function wL(e,t,r){let a=Lh(t,r);return a?Yo in a?a[Yo]:a.get?.call(e.draft_):void 0}function Lh(e,t){if(!(t in e))return;let r=Xa(e);for(;r;){let a=Object.getOwnPropertyDescriptor(r,t);if(a)return a;r=Xa(r)}}function kf(e){e.modified_||(e.modified_=!0,e.parent_&&kf(e.parent_))}function Wi(e){e.copy_||(e.assigned_=new Map,e.copy_=Lf(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var IL=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,a)=>{if($a(t)&&!$a(r)){let n=r;r=t;let i=this;return function(l=n,...s){return i.produce(l,f=>r.call(this,f,...s))}}$a(r)||Bt(6),a!==void 0&&!$a(a)&&Bt(7);let o;if(Et(t)){let n=hh(this),i=Ef(n,t,void 0),u=!0;try{o=r(i),u=!1}finally{u?Af(n):Of(n)}return mh(n,a),gh(o,n)}else if(!t||!Df(t)){if(o=r(t),o===void 0&&(o=t),o===xh&&(o=void 0),this.autoFreeze_&&Tf(o,!0),a){let n=[],i=[];Zr(Pf).generateReplacementPatches_(t,o,{patches_:n,inversePatches_:i}),a(n,i)}return o}else Bt(1,t)},this.produceWithPatches=(t,r)=>{if($a(t))return(i,...u)=>this.produceWithPatches(i,l=>t(l,...u));let a,o;return[this.produce(t,r,(i,u)=>{a=i,o=u}),a,o]},wf(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),wf(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),wf(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Et(e)||Bt(8),Kt(e)&&(e=Ke(e));let t=hh(this),r=Ef(t,e,void 0);return r[at].isManual_=!0,Of(t),r}finishDraft(e,t){let r=e&&e[at];(!r||!r.isManual_)&&Bt(9);let{scope_:a}=r;return mh(a,t),gh(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));let a=Zr(Pf).applyPatches_;return Kt(e)?a(e,t):this.produce(e,o=>a(o,t))}};function Ef(e,t,r,a){let[o,n]=eu(t)?Zr($i).proxyMap_(t,r):tu(t)?Zr($i).proxySet_(t,r):bL(t,r);return(r?.scope_??wh()).drafts_.push(o),n.callbacks_=r?.callbacks_??[],n.key_=a,r&&a!==void 0?xL(r,n,a):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:s}=l;n.modified_&&s&&s.generatePatches_(n,[],l)}),o}function Ke(e){return Kt(e)||Bt(10,e),Ph(e)}function Ph(e){if(!Et(e)||ru(e))return e;let t=e[at],r,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Lf(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else r=Lf(e,!0);return Ji(r,(o,n)=>{Ki(r,o,Ph(n))},a),t&&(t.finalized_=!1),r}var CL=new IL,Rf=CL.produce;function Ah(e){return({dispatch:r,getState:a})=>o=>n=>typeof n=="function"?n(r,a,e):o(n)}var Oh=Ah(),kh=Ah;var SL=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Xo:Xo.apply(null,arguments)},xq=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},LL=e=>e&&typeof e.match=="function";function Te(e,t){function r(...a){if(t){let o=t(...a);if(!o)throw new Error(vt(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:a[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=a=>bf(a)&&a.type===e,r}var Bh=class en extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,en.prototype)}static get[Symbol.species](){return en}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new en(...t[0].concat(this)):new en(...t.concat(this))}};function Eh(e){return Et(e)?Rf(e,()=>{}):e}function ou(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function PL(e){return typeof e=="boolean"}var AL=()=>function(t){let{thunk:r=!0,immutableCheck:a=!0,serializableCheck:o=!0,actionCreatorCheck:n=!0}=t??{},i=new Bh;return r&&(PL(r)?i.push(Oh):i.push(kh(r.extraArgument))),i},Fh="RTK_autoBatch",fe=()=>e=>({payload:e,meta:{[Fh]:!0}}),Dh=e=>t=>{setTimeout(t,e)},OL=(e,t)=>r=>{let a=!1,o=()=>{a||(a=!0,cancelAnimationFrame(n),clearTimeout(i),r())},n=e(o),i=setTimeout(o,t)},Ff=(e={type:"raf"})=>t=>(...r)=>{let a=t(...r),o=!0,n=!1,i=!1,u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?OL(window.requestAnimationFrame,100):Dh(10):e.type==="callback"?e.queueNotification:Dh(e.timeout),s=()=>{i=!1,n&&(n=!1,u.forEach(f=>f()))};return Object.assign({},a,{subscribe(f){let c=()=>o&&f(),d=a.subscribe(c);return u.add(f),()=>{d(),u.delete(f)}},dispatch(f){try{return o=!f?.meta?.[Fh],n=!o,n&&(i||(i=!0,l(s))),a.dispatch(f)}finally{o=!0}}})},kL=e=>function(r){let{autoBatch:a=!0}=r??{},o=new Bh(e);return a&&o.push(Ff(typeof a=="object"?a:void 0)),o};function jh(e){let t=AL(),{reducer:r=void 0,middleware:a,devTools:o=!0,duplicateMiddlewareCheck:n=!0,preloadedState:i=void 0,enhancers:u=void 0}=e||{},l;if(typeof r=="function")l=r;else if(zi(r))l=Ui(r);else throw new Error(vt(1));let s;typeof a=="function"?s=a(t):s=t();let f=Xo;o&&(f=SL({trace:!1,...typeof o=="object"&&o}));let c=lh(...s),d=kL(c),p=typeof u=="function"?u(d):d(),h=f(...p);return yf(l,i,h)}function zh(e){let t={},r=[],a,o={addCase(n,i){let u=typeof n=="string"?n:n.type;if(!u)throw new Error(vt(28));if(u in t)throw new Error(vt(29));return t[u]=i,o},addAsyncThunk(n,i){return i.pending&&(t[n.pending.type]=i.pending),i.rejected&&(t[n.rejected.type]=i.rejected),i.fulfilled&&(t[n.fulfilled.type]=i.fulfilled),i.settled&&r.push({matcher:n.settled,reducer:i.settled}),o},addMatcher(n,i){return r.push({matcher:n,reducer:i}),o},addDefaultCase(n){return a=n,o}};return e(o),[t,r,a]}function EL(e){return typeof e=="function"}function DL(e,t){let[r,a,o]=zh(t),n;if(EL(e))n=()=>Eh(e());else{let u=Eh(e);n=()=>u}function i(u=n(),l){let s=[r[l.type],...a.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return s.filter(f=>!!f).length===0&&(s=[o]),s.reduce((f,c)=>{if(c)if(Kt(f)){let p=c(f,l);return p===void 0?f:p}else{if(Et(f))return Rf(f,d=>c(d,l));{let d=c(f,l);if(d===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return f},u)}return i.getInitialState=n,i}var ML=(e,t)=>LL(e)?e.match(t):e(t);function TL(...e){return t=>e.some(r=>ML(r,t))}var RL="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Uh=(e=21)=>{let t="",r=e;for(;r--;)t+=RL[Math.random()*64|0];return t},_L=["name","message","stack","code"],_f=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Mh=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},NL=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of _L)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Th="External signal was aborted",BL=(()=>{function e(t,r,a){let o=Te(t+"/fulfilled",(l,s,f,c)=>({payload:l,meta:{...c||{},arg:f,requestId:s,requestStatus:"fulfilled"}})),n=Te(t+"/pending",(l,s,f)=>({payload:void 0,meta:{...f||{},arg:s,requestId:l,requestStatus:"pending"}})),i=Te(t+"/rejected",(l,s,f,c,d)=>({payload:c,error:(a&&a.serializeError||NL)(l||"Rejected"),meta:{...d||{},arg:f,requestId:s,rejectedWithValue:!!c,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function u(l,{signal:s}={}){return(f,c,d)=>{let p=a?.idGenerator?a.idGenerator(l):Uh(),h=new AbortController,m,g;function v(I){g=I,h.abort()}s&&(s.aborted?v(Th):s.addEventListener("abort",()=>v(Th),{once:!0}));let S=async function(){let I;try{let P=a?.condition?.(l,{getState:c,extra:d});if(jL(P)&&(P=await P),P===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let k=new Promise((M,O)=>{m=()=>{O({name:"AbortError",message:g||"Aborted"})},h.signal.addEventListener("abort",m,{once:!0})});f(n(p,l,a?.getPendingMeta?.({requestId:p,arg:l},{getState:c,extra:d}))),I=await Promise.race([k,Promise.resolve(r(l,{dispatch:f,getState:c,extra:d,requestId:p,signal:h.signal,abort:v,rejectWithValue:(M,O)=>new _f(M,O),fulfillWithValue:(M,O)=>new Mh(M,O)})).then(M=>{if(M instanceof _f)throw M;return M instanceof Mh?o(M.payload,p,l,M.meta):o(M,p,l)})])}catch(P){I=P instanceof _f?i(null,p,l,P.payload,P.meta):i(P,p,l)}finally{m&&h.signal.removeEventListener("abort",m)}return a&&!a.dispatchConditionRejection&&i.match(I)&&I.meta.condition||f(I),I}();return Object.assign(S,{abort:v,requestId:p,arg:l,unwrap(){return S.then(FL)}})}}return Object.assign(u,{pending:n,rejected:i,fulfilled:o,settled:TL(i,o),typePrefix:t})}return e.withTypes=()=>e,e})();function FL(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function jL(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var qh=Symbol.for("rtk-slice-createasyncthunk"),bq={[qh]:BL};function zL(e,t){return`${e}/${t}`}function UL({creators:e}={}){let t=e?.asyncThunk?.[qh];return function(a){let{name:o,reducerPath:n=o}=a;if(!o)throw new Error(vt(11));typeof process<"u";let i=(typeof a.reducers=="function"?a.reducers(HL()):a.reducers)||{},u=Object.keys(i),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(I,A){let P=typeof I=="string"?I:I.type;if(!P)throw new Error(vt(12));if(P in l.sliceCaseReducersByType)throw new Error(vt(13));return l.sliceCaseReducersByType[P]=A,s},addMatcher(I,A){return l.sliceMatchers.push({matcher:I,reducer:A}),s},exposeAction(I,A){return l.actionCreators[I]=A,s},exposeCaseReducer(I,A){return l.sliceCaseReducersByName[I]=A,s}};u.forEach(I=>{let A=i[I],P={reducerName:I,type:zL(o,I),createNotation:typeof a.reducers=="function"};VL(A)?KL(P,A,s,t):WL(P,A,s)});function f(){let[I={},A=[],P=void 0]=typeof a.extraReducers=="function"?zh(a.extraReducers):[a.extraReducers],k={...I,...l.sliceCaseReducersByType};return DL(a.initialState,M=>{for(let O in k)M.addCase(O,k[O]);for(let O of l.sliceMatchers)M.addMatcher(O.matcher,O.reducer);for(let O of A)M.addMatcher(O.matcher,O.reducer);P&&M.addDefaultCase(P)})}let c=I=>I,d=new Map,p=new WeakMap,h;function m(I,A){return h||(h=f()),h(I,A)}function g(){return h||(h=f()),h.getInitialState()}function v(I,A=!1){function P(M){let O=M[I];return typeof O>"u"&&A&&(O=ou(p,P,g)),O}function k(M=c){let O=ou(d,A,()=>new WeakMap);return ou(O,M,()=>{let j={};for(let[B,$]of Object.entries(a.selectors??{}))j[B]=qL($,M,()=>ou(p,M,g),A);return j})}return{reducerPath:I,getSelectors:k,get selectors(){return k(P)},selectSlice:P}}let S={name:o,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:g,...v(n),injectInto(I,{reducerPath:A,...P}={}){let k=A??n;return I.inject({reducerPath:k,reducer:m},P),{...S,...v(k,!0)}}};return S}}function qL(e,t,r,a){function o(n,...i){let u=t(n);return typeof u>"u"&&a&&(u=r()),e(u,...i)}return o.unwrapped=e,o}var ue=UL();function HL(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function WL({type:e,reducerName:t,createNotation:r},a,o){let n,i;if("reducer"in a){if(r&&!GL(a))throw new Error(vt(17));n=a.reducer,i=a.prepare}else n=a;o.addCase(e,n).exposeCaseReducer(t,n).exposeAction(t,i?Te(e,i):Te(e))}function VL(e){return e._reducerDefinitionType==="asyncThunk"}function GL(e){return e._reducerDefinitionType==="reducerWithPrepare"}function KL({type:e,reducerName:t},r,a,o){if(!o)throw new Error(vt(18));let{payloadCreator:n,fulfilled:i,pending:u,rejected:l,settled:s,options:f}=r,c=o(e,n,f);a.exposeAction(t,c),i&&a.addCase(c.fulfilled,i),u&&a.addCase(c.pending,u),l&&a.addCase(c.rejected,l),s&&a.addMatcher(c.settled,s),a.exposeCaseReducer(t,{fulfilled:i||nu,pending:u||nu,rejected:l||nu,settled:s||nu})}function nu(){}var $L="task",Hh="listener",Wh="completed",jf="cancelled",XL=`task-${jf}`,YL=`task-${Wh}`,Nf=`${Hh}-${jf}`,ZL=`${Hh}-${Wh}`,lu=class{constructor(e){this.code=e,this.message=`${$L} ${jf} (reason: ${e})`}code;name="TaskAbortError";message},zf=(e,t)=>{if(typeof e!="function")throw new TypeError(vt(32))},iu=()=>{},Vh=(e,t=iu)=>(e.catch(t),e),Gh=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Jr=e=>{if(e.aborted)throw new lu(e.reason)};function Kh(e,t){let r=iu;return new Promise((a,o)=>{let n=()=>o(new lu(e.reason));if(e.aborted){n();return}r=Gh(e,n),t.finally(()=>r()).then(a,o)}).finally(()=>{r=iu})}var JL=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof lu?"cancelled":"rejected",error:r}}finally{t?.()}},uu=e=>t=>Vh(Kh(e,t).then(r=>(Jr(e),r))),$h=e=>{let t=uu(e);return r=>t(new Promise(a=>setTimeout(a,r)))},{assign:Ya}=Object,Rh={},su="listenerMiddleware",QL=(e,t)=>{let r=a=>Gh(e,()=>a.abort(e.reason));return(a,o)=>{zf(a,"taskExecutor");let n=new AbortController;r(n);let i=JL(async()=>{Jr(e),Jr(n.signal);let u=await a({pause:uu(n.signal),delay:$h(n.signal),signal:n.signal});return Jr(n.signal),u},()=>n.abort(YL));return o?.autoJoin&&t.push(i.catch(iu)),{result:uu(e)(i),cancel(){n.abort(XL)}}}},eP=(e,t)=>{let r=async(a,o)=>{Jr(t);let n=()=>{},u=[new Promise((l,s)=>{let f=e({predicate:a,effect:(c,d)=>{d.unsubscribe(),l([c,d.getState(),d.getOriginalState()])}});n=()=>{f(),s()}})];o!=null&&u.push(new Promise(l=>setTimeout(l,o,null)));try{let l=await Kh(t,Promise.race(u));return Jr(t),l}finally{n()}};return(a,o)=>Vh(r(a,o))},Xh=e=>{let{type:t,actionCreator:r,matcher:a,predicate:o,effect:n}=e;if(t)o=Te(t).match;else if(r)t=r.type,o=r.match;else if(a)o=a;else if(!o)throw new Error(vt(21));return zf(n,"options.listener"),{predicate:o,type:t,effect:n}},Yh=Ya(e=>{let{type:t,predicate:r,effect:a}=Xh(e);return{id:Uh(),effect:a,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(vt(22))}}},{withTypes:()=>Yh}),_h=(e,t)=>{let{type:r,effect:a,predicate:o}=Xh(t);return Array.from(e.values()).find(n=>(typeof r=="string"?n.type===r:n.predicate===o)&&n.effect===a)},Bf=e=>{e.pending.forEach(t=>{t.abort(Nf)})},tP=(e,t)=>()=>{for(let r of t.keys())Bf(r);e.clear()},Nh=(e,t,r)=>{try{e(t,r)}catch(a){setTimeout(()=>{throw a},0)}},Zh=Ya(Te(`${su}/add`),{withTypes:()=>Zh}),rP=Te(`${su}/removeAll`),Jh=Ya(Te(`${su}/remove`),{withTypes:()=>Jh}),aP=(...e)=>{console.error(`${su}/error`,...e)},dr=(e={})=>{let t=new Map,r=new Map,a=p=>{let h=r.get(p)??0;r.set(p,h+1)},o=p=>{let h=r.get(p)??1;h===1?r.delete(p):r.set(p,h-1)},{extra:n,onError:i=aP}=e;zf(i,"onError");let u=p=>(p.unsubscribe=()=>t.delete(p.id),t.set(p.id,p),h=>{p.unsubscribe(),h?.cancelActive&&Bf(p)}),l=p=>{let h=_h(t,p)??Yh(p);return u(h)};Ya(l,{withTypes:()=>l});let s=p=>{let h=_h(t,p);return h&&(h.unsubscribe(),p.cancelActive&&Bf(h)),!!h};Ya(s,{withTypes:()=>s});let f=async(p,h,m,g)=>{let v=new AbortController,S=eP(l,v.signal),I=[];try{p.pending.add(v),a(p),await Promise.resolve(p.effect(h,Ya({},m,{getOriginalState:g,condition:(A,P)=>S(A,P).then(Boolean),take:S,delay:$h(v.signal),pause:uu(v.signal),extra:n,signal:v.signal,fork:QL(v.signal,I),unsubscribe:p.unsubscribe,subscribe:()=>{t.set(p.id,p)},cancelActiveListeners:()=>{p.pending.forEach((A,P,k)=>{A!==v&&(A.abort(Nf),k.delete(A))})},cancel:()=>{v.abort(Nf),p.pending.delete(v)},throwIfCancelled:()=>{Jr(v.signal)}})))}catch(A){A instanceof lu||Nh(i,A,{raisedBy:"effect"})}finally{await Promise.all(I),v.abort(ZL),o(p),p.pending.delete(v)}},c=tP(t,r);return{middleware:p=>h=>m=>{if(!bf(m))return h(m);if(Zh.match(m))return l(m.payload);if(rP.match(m)){c();return}if(Jh.match(m))return s(m.payload);let g=p.getState(),v=()=>{if(g===Rh)throw new Error(vt(23));return g},S;try{if(S=h(m),t.size>0){let I=p.getState(),A=Array.from(t.values());for(let P of A){let k=!1;try{k=P.predicate(m,I,g)}catch(M){k=!1,Nh(i,M,{raisedBy:"predicate"})}k&&f(P,m,p,v)}}}finally{g=Rh}return S},startListening:l,stopListening:s,clearListeners:c}};function vt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var oP={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Qh=ue({name:"chartLayout",initialState:oP,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,a,o,n;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(a=t.payload.right)!==null&&a!==void 0?a:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(n=t.payload.left)!==null&&n!==void 0?n:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Uf,setLayout:eg,setChartSize:tg,setScale:rg}=Qh.actions,ag=Qh.reducer;function fu(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function te(e){return Number.isFinite(e)}function ft(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function og(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Za(e){for(var t=1;t{if(t&&r){var{width:a,height:o}=r,{align:n,verticalAlign:i,layout:u}=t;if((u==="vertical"||u==="horizontal"&&i==="middle")&&n!=="center"&&H(e[n]))return Za(Za({},e),{},{[n]:e[n]+(a||0)});if((u==="horizontal"||u==="vertical"&&n==="center")&&i!=="middle"&&H(e[i]))return Za(Za({},e),{},{[i]:e[i]+(o||0)})}return e},xt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",qf=(e,t,r,a)=>{if(a)return e.map(u=>u.coordinate);var o,n,i=e.map(u=>(u.coordinate===t&&(o=!0),u.coordinate===r&&(n=!0),u.coordinate));return o||i.push(t),n||i.push(r),i},Hf=(e,t,r)=>{if(!e)return null;var{duplicateDomain:a,type:o,range:n,scale:i,realScaleType:u,isCategorical:l,categoricalDomain:s,tickCount:f,ticks:c,niceTicks:d,axisType:p}=e;if(!i)return null;var h=u==="scaleBand"&&i.bandwidth?i.bandwidth()/2:2,m=(t||r)&&o==="category"&&i.bandwidth?i.bandwidth()/h:0;if(m=p==="angleAxis"&&n&&n.length>=2?Re(n[0]-n[1])*2*m:m,t&&(c||d)){var g=(c||d||[]).map((v,S)=>{var I=a?a.indexOf(v):v,A=i.map(I);return te(A)?{coordinate:A+m,value:v,offset:m,index:S}:null}).filter(Ve);return g}return l&&s?s.map((v,S)=>{var I=i.map(v);return te(I)?{coordinate:I+m,value:v,index:S,offset:m}:null}).filter(Ve):i.ticks&&!r&&f!=null?i.ticks(f).map((v,S)=>{var I=i.map(v);return te(I)?{coordinate:I+m,value:v,index:S,offset:m}:null}).filter(Ve):i.domain().map((v,S)=>{var I=i.map(v);return te(I)?{coordinate:I+m,value:a?a[v]:v,index:S,offset:m}:null}).filter(Ve)};var lP=e=>{var t,r=e.length;if(!(r<=0)){var a=(t=e[0])===null||t===void 0?void 0:t.length;if(!(a==null||a<=0))for(var o=0;o=0?(s[0]=n,n+=d,s[1]=n):(s[0]=i,i+=d,s[1]=i)}}}},sP=e=>{var t,r=e.length;if(!(r<=0)){var a=(t=e[0])===null||t===void 0?void 0:t.length;if(!(a==null||a<=0))for(var o=0;o=0?(l[0]=n,n+=s,l[1]=n):(l[0]=0,l[1]=0)}}}},fP={sign:lP,expand:of,none:pt,silhouette:nf,wiggle:uf,positive:sP},ig=(e,t,r)=>{var a,o=(a=fP[r])!==null&&a!==void 0?a:pt,n=af().keys(t).value((u,l)=>Number(Se(u,l,0))).order(Ha).offset(o),i=n(e);return i.forEach((u,l)=>{u.forEach((s,f)=>{var c=Se(e[f],t[l],0);Array.isArray(c)&&c.length===2&&H(c[0])&&H(c[1])&&(s[0]=c[0],s[1]=c[1])})}),i};function Wf(e){var{axis:t,ticks:r,bandSize:a,entry:o,index:n,dataKey:i}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ge(o[t.dataKey])){var u=Ci(r,"value",o[t.dataKey]);if(u)return u.coordinate+a/2}return r!=null&&r[n]?r[n].coordinate+a/2:null}var l=Se(o,ge(i)?t.dataKey:i),s=t.scale.map(l);return H(s)?s:null}var cP=e=>{var t=e.flat(2).filter(H);return[Math.min(...t),Math.max(...t)]},dP=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],ug=(e,t,r)=>{if(e!=null)return dP(Object.keys(e).reduce((a,o)=>{var n=e[o];if(!n)return a;var{stackedData:i}=n,u=i.reduce((l,s)=>{var f=fu(s,t,r),c=cP(f);return!te(c[0])||!te(c[1])?l:[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);return[Math.min(u[0],a[0]),Math.max(u[1],a[1])]},[1/0,-1/0]))},Vf=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Gf=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ja=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var a=e.scale.bandwidth();if(!r||a>0)return a}if(e&&t&&t.length>=2){for(var o=fr(t,f=>f.coordinate),n=1/0,i=1,u=o.length;i{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},sg=(e,t)=>t==="centric"?e.angle:e.radius;var Ye=e=>e.layout.width,Ze=e=>e.layout.height,fg=e=>e.layout.scale,cu=e=>e.layout.margin;var Qa=E(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),eo=E(e=>e.cartesianAxis.yAxis,e=>Object.values(e));var cg="data-recharts-item-index",dg="data-recharts-item-id",Qr=60;function pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function du(e){for(var t=1;te.brush.height;function vP(e){var t=eo(e);return t.reduce((r,a)=>{if(a.orientation==="left"&&!a.mirror&&!a.hide){var o=typeof a.width=="number"?a.width:Qr;return r+o}return r},0)}function xP(e){var t=eo(e);return t.reduce((r,a)=>{if(a.orientation==="right"&&!a.mirror&&!a.hide){var o=typeof a.width=="number"?a.width:Qr;return r+o}return r},0)}function yP(e){var t=Qa(e);return t.reduce((r,a)=>a.orientation==="top"&&!a.mirror&&!a.hide?r+a.height:r,0)}function bP(e){var t=Qa(e);return t.reduce((r,a)=>a.orientation==="bottom"&&!a.mirror&&!a.hide?r+a.height:r,0)}var xe=E([Ye,Ze,cu,gP,vP,xP,yP,bP,vf,nh],(e,t,r,a,o,n,i,u,l,s)=>{var f={left:(r.left||0)+o,right:(r.right||0)+n},c={top:(r.top||0)+i,bottom:(r.bottom||0)+u},d=du(du({},c),f),p=d.bottom;d.bottom+=a,d=ng(d,l,s);var h=e-d.left-d.right,m=t-d.top-d.bottom;return du(du({brushBottom:p},d),{},{width:Math.max(h,0),height:Math.max(m,0)})}),mg=E(xe,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),hg=E(Ye,Ze,(e,t)=>({x:0,y:0,width:e,height:t}));import*as wP from"react";import{createContext as IP,useContext as CP}from"react";var SP=IP(null),be=()=>CP(SP)!=null;var to=e=>e.brush,ea=E([to,xe,cu],(e,t,r)=>({height:e.height,x:H(e.x)?e.x:t.left,y:H(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:H(e.width)?e.width:t.width}));import*as ta from"react";import{createContext as TP,forwardRef as Cg,useCallback as RP,useContext as _P,useEffect as NP,useImperativeHandle as BP,useMemo as FP,useRef as Ig,useState as jP}from"react";function gg(e,t,{signal:r,edges:a}={}){let o,n=null,i=a!=null&&a.includes("leading"),u=a==null||a.includes("trailing"),l=()=>{n!==null&&(e.apply(o,n),o=void 0,n=null)},s=()=>{u&&l(),p()},f=null,c=()=>{f!=null&&clearTimeout(f),f=setTimeout(()=>{f=null,s()},t)},d=()=>{f!==null&&(clearTimeout(f),f=null)},p=()=>{d(),o=void 0,n=null},h=()=>{l()},m=function(...g){if(r?.aborted)return;o=this,n=g;let v=f==null;c(),i&&v&&l()};return m.schedule=c,m.cancel=p,m.flush=h,r?.addEventListener("abort",p,{once:!0}),m}function vg(e,t=0,r={}){typeof r!="object"&&(r={});let{leading:a=!1,trailing:o=!0,maxWait:n}=r,i=Array(2);a&&(i[0]="leading"),o&&(i[1]="trailing");let u,l=null,s=gg(function(...d){u=e.apply(this,d),l=null},t,{edges:i}),f=function(...d){return n!=null&&(l===null&&(l=Date.now()),Date.now()-l>=n)?(u=e.apply(this,d),l=Date.now(),s.cancel(),s.schedule(),u):(s.apply(this,d),u)},c=()=>(s.flush(),u);return f.cancel=s.cancel,f.flush=c,f}function Xf(e,t=0,r={}){let{leading:a=!0,trailing:o=!0}=r;return vg(e,t,{leading:a,maxWait:t,trailing:o})}var LP=!0,ro=function(t,r){for(var a=arguments.length,o=new Array(a>2?a-2:0),n=2;no[i++]))}};var Ft={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Yf=(e,t,r)=>{var{width:a=Ft.width,height:o=Ft.height,aspect:n,maxHeight:i}=r,u=ur(a)?e:Number(a),l=ur(o)?t:Number(o);return n&&n>0&&(u?l=u/n:l&&(u=l*n),i&&l!=null&&l>i&&(l=i)),{calculatedWidth:u,calculatedHeight:l}},PP={width:0,height:0,overflow:"visible"},AP={width:0,overflowX:"visible"},OP={height:0,overflowY:"visible"},kP={},xg=e=>{var{width:t,height:r}=e,a=ur(t),o=ur(r);return a&&o?PP:a?AP:o?OP:kP};function yg(e){var{width:t,height:r,aspect:a}=e,o=t,n=r;return o===void 0&&n===void 0?(o=Ft.width,n=Ft.height):o===void 0?o=a&&a>0?void 0:Ft.width:n===void 0&&(n=a&&a>0?void 0:Ft.height),{width:o,height:n}}function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:r,height:a}),[r,a]);return zP(o)?ta.createElement(Sg.Provider,{value:o},t):null}var tn=()=>_P(Sg),UP=Cg((e,t)=>{var{aspect:r,initialDimension:a=Ft.initialDimension,width:o,height:n,minWidth:i=Ft.minWidth,minHeight:u,maxHeight:l,children:s,debounce:f=Ft.debounce,id:c,className:d,onResize:p,style:h={}}=e,m=Ig(null),g=Ig();g.current=p,BP(t,()=>m.current);var[v,S]=jP({containerWidth:a.width,containerHeight:a.height}),I=RP((O,j)=>{S(B=>{var $=Math.round(O),F=Math.round(j);return B.containerWidth===$&&B.containerHeight===F?B:{containerWidth:$,containerHeight:F}})},[]);NP(()=>{if(m.current==null||typeof ResizeObserver>"u")return ht;var O=F=>{var Y,Z=F[0];if(Z!=null){var{width:Q,height:x}=Z.contentRect;I(Q,x),(Y=g.current)===null||Y===void 0||Y.call(g,Q,x)}};f>0&&(O=Xf(O,f,{trailing:!0,leading:!1}));var j=new ResizeObserver(O),{width:B,height:$}=m.current.getBoundingClientRect();return I(B,$),j.observe(m.current),()=>{j.disconnect()}},[I,f]);var{containerWidth:A,containerHeight:P}=v;ro(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:k,calculatedHeight:M}=Yf(A,P,{width:o,height:n,aspect:r,maxHeight:l});return ro(k!=null&&k>0||M!=null&&M>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,k,M,o,n,i,u,r),ta.createElement("div",{id:c?"".concat(c):void 0,className:J("recharts-responsive-container",d),style:wg(wg({},h),{},{width:o,height:n,minWidth:i,minHeight:u,maxHeight:l}),ref:m},ta.createElement("div",{style:xg({width:o,height:n})},ta.createElement(Lg,{width:k,height:M},s)))}),Jf=Cg((e,t)=>{var r=tn();if(ft(r.width)&&ft(r.height))return e.children;var{width:a,height:o}=yg({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:n,calculatedHeight:i}=Yf(void 0,void 0,{width:a,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return H(n)&&H(i)?ta.createElement(Lg,{width:n,height:i},e.children):ta.createElement(UP,Zf({},e,{width:a,height:o,ref:t}))});function rn(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var ra=()=>{var e,t=be(),r=G(mg),a=G(ea),o=(e=G(to))===null||e===void 0?void 0:e.padding;return!t||!a||!o?r:{width:a.width-o.left-o.right,height:a.height-o.top-o.bottom,x:o.left,y:o.top}},HP={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},pu=()=>{var e;return(e=G(xe))!==null&&e!==void 0?e:HP},mu=()=>G(Ye),hu=()=>G(Ze);var ce=e=>e.layout.layoutType,$t=()=>G(ce),Pg=()=>{var e=$t();if(e==="horizontal"||e==="vertical")return e},Qf=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t};var Ag=()=>{var e=$t();return e!==void 0},aa=e=>{var t=ne(),r=be(),{width:a,height:o}=e,n=tn(),i=a,u=o;return n&&(i=n.width>0?n.width:a,u=n.height>0?n.height:o),qP(()=>{!r&&ft(i)&&ft(u)&&t(tg({width:i,height:u}))},[t,r,i,u]),null};var WP={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Og=ue({name:"legend",initialState:WP,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:fe()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ke(e).payload.indexOf(r);o>-1&&(e.payload[o]=a)},prepare:fe()},removeLegendPayload:{reducer(e,t){var r=Ke(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:fe()}}}),{setLegendSize:EH,setLegendSettings:DH,addLegendPayload:kg,replaceLegendPayload:Eg,removeLegendPayload:Dg}=Og.actions,Mg=Og.reducer;import*as Le from"react";var VP=Symbol.for("react.forward_ref");var GP=Symbol.for("react.memo");var KP=VP,$P=GP;function XP(e){e()}function YP(){let e=null,t=null;return{clear(){e=null,t=null},notify(){XP(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],a=e;for(;a;)r.push(a),a=a.next;return r},subscribe(r){let a=!0,o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!a||e===null||(a=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Tg={notify(){},get:()=>[]};function ZP(e,t){let r,a=Tg,o=0,n=!1;function i(m){f();let g=a.subscribe(m),v=!1;return()=>{v||(v=!0,g(),c())}}function u(){a.notify()}function l(){h.onStateChange&&h.onStateChange()}function s(){return n}function f(){o++,r||(r=t?t.addNestedSub(l):e.subscribe(l),a=YP())}function c(){o--,r&&o===0&&(r(),r=void 0,a.clear(),a=Tg)}function d(){n||(n=!0,f())}function p(){n&&(n=!1,c())}let h={addNestedSub:i,notifyNestedSubs:u,handleChangeWrapper:l,isSubscribed:s,trySubscribe:d,tryUnsubscribe:p,getListeners:()=>a};return h}var JP=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",QP=JP(),eA=()=>typeof navigator<"u"&&navigator.product==="ReactNative",tA=eA(),rA=()=>QP||tA?Le.useLayoutEffect:Le.useEffect,aA=rA();function Rg(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function _g(e,t){if(Rg(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let o=0;o{let l=ZP(o);return{store:o,subscription:l,getServerState:a?()=>a:void 0}},[o,a]),i=Le.useMemo(()=>o.getState(),[o]);return aA(()=>{let{subscription:l}=n;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[n,i]),Le.createElement((r||sA).Provider,{value:n},t)}var Ng=fA;var cA=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function dA(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function kr(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var a of r)if(cA.has(a)){if(e[a]==null&&t[a]==null)continue;if(!_g(e[a],t[a]))return!1}else if(!dA(e[a],t[a]))return!1;return!0}import*as Rt from"react";import{useEffect as OT}from"react";import{createPortal as kT}from"react-dom";import*as jt from"react";function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{separator:t=ao.separator,contentStyle:r,itemStyle:a,labelStyle:o=ao.labelStyle,payload:n,formatter:i,itemSorter:u,wrapperClassName:l,labelClassName:s,label:f,labelFormatter:c,accessibilityLayer:d=ao.accessibilityLayer}=e,p=()=>{if(n&&n.length){var P={padding:0,margin:0},k=vA(n,u),M=k.map((O,j)=>{if(O.type==="none")return null;var B=O.formatter||i||gA,{value:$,name:F}=O,Y=$,Z=F;if(B){var Q=B($,F,O,j,n);if(Array.isArray(Q))[Y,Z]=Q;else if(Q!=null)Y=Q;else return null}var x=an(an({},ao.itemStyle),{},{color:O.color||ao.itemStyle.color},a);return jt.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(j),style:x},rt(Z)?jt.createElement("span",{className:"recharts-tooltip-item-name"},Z):null,rt(Z)?jt.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,jt.createElement("span",{className:"recharts-tooltip-item-value"},Y),jt.createElement("span",{className:"recharts-tooltip-item-unit"},O.unit||""))});return jt.createElement("ul",{className:"recharts-tooltip-item-list",style:P},M)}return null},h=an(an({},ao.contentStyle),r),m=an({margin:0},o),g=!ge(f),v=g?f:"",S=J("recharts-default-tooltip",l),I=J("recharts-tooltip-label",s);g&&c&&n!==void 0&&n!==null&&(v=c(f,n));var A=d?{role:"status","aria-live":"assertive"}:{};return jt.createElement("div",ec({className:S,style:h},A),jt.createElement("p",{className:I,style:m},jt.isValidElement(v)?v:"".concat(v)),p())};import*as Er from"react";var on="recharts-tooltip-wrapper",xA={visibility:"hidden"};function yA(e){var{coordinate:t,translateX:r,translateY:a}=e;return J(on,{["".concat(on,"-right")]:H(r)&&t&&H(t.x)&&r>=t.x,["".concat(on,"-left")]:H(r)&&t&&H(t.x)&&r=t.y,["".concat(on,"-top")]:H(a)&&t&&H(t.y)&&a0?o:0),c=r[a]+o;if(t[a])return i[a]?f:c;var d=l[a];if(d==null)return 0;if(i[a]){var p=f,h=d;return pg?Math.max(f,d):Math.max(c,d)}function bA(e){var{translateX:t,translateY:r,useTranslate3d:a}=e;return{transform:a?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function zg(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:a,offsetLeft:o,position:n,reverseDirection:i,tooltipBox:u,useTranslate3d:l,viewBox:s}=e,f,c,d;return u.height>0&&u.width>0&&r?(c=jg({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:n,reverseDirection:i,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),d=jg({allowEscapeViewBox:t,coordinate:r,key:"y",offset:a,position:n,reverseDirection:i,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),f=bA({translateX:c,translateY:d,useTranslate3d:l})):f=xA,{cssProperties:f,cssClasses:yA({translateX:c,translateY:d,coordinate:r})}}import{useEffect as IA,useState as CA}from"react";var wA=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Dt={devToolsEnabled:!0,isSsr:wA()};function gu(){var[e,t]=CA(()=>Dt.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return IA(()=>{if(window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>{t(r.matches)};return r.addEventListener("change",a),()=>{r.removeEventListener("change",a)}}},[]),e}function Ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function oo(e){for(var t=1;t({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));Er.useEffect(()=>{var h=m=>{if(m.key==="Escape"){var g,v,S,I;s({dismissed:!0,dismissedAtCoordinate:{x:(g=(v=e.coordinate)===null||v===void 0?void 0:v.x)!==null&&g!==void 0?g:0,y:(S=(I=e.coordinate)===null||I===void 0?void 0:I.y)!==null&&S!==void 0?S:0}})}};return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(r=e.coordinate)===null||r===void 0?void 0:r.y]),l.dismissed&&(((a=(o=e.coordinate)===null||o===void 0?void 0:o.x)!==null&&a!==void 0?a:0)!==l.dismissedAtCoordinate.x||((n=(i=e.coordinate)===null||i===void 0?void 0:i.y)!==null&&n!==void 0?n:0)!==l.dismissedAtCoordinate.y)&&s(oo(oo({},l),{},{dismissed:!1}));var{cssClasses:f,cssProperties:c}=zg({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),d=e.hasPortalFromProps?{}:oo(oo({transition:AA({prefersReducedMotion:u,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},c),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),p=oo(oo({},d),{},{visibility:!l.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return Er.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:f,style:p,ref:e.innerRef},e.children)}var qg=Er.memo(OA);var vu=()=>{var e;return(e=G(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};import*as $l from"react";import{cloneElement as nT,createElement as iT,isValidElement as uT}from"react";import*as $g from"react";function tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;tte(e.x)&&te(e.y),Gg=e=>e.base!=null&&xu(e.base)&&xu(e),nn=e=>e.x,un=e=>e.y,MA=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(sr(e));if((r==="curveMonotone"||r==="curveBump")&&t){var a=Vg["".concat(r).concat(t==="vertical"?"Y":"X")];if(a)return a}return Vg[r]||Ar},Kg={connectNulls:!1,type:"linear"},TA=e=>{var{type:t=Kg.type,points:r=[],baseLine:a,layout:o,connectNulls:n=Kg.connectNulls}=e,i=MA(t,o),u=n?r.filter(xu):r;if(Array.isArray(a)){var l,s=r.map((h,m)=>Wg(Wg({},h),{},{base:a[m]}));o==="vertical"?l=ja().y(un).x1(nn).x0(h=>h.base.x):l=ja().x(nn).y1(un).y0(h=>h.base.y);var f=l.defined(Gg).curve(i),c=n?s.filter(Gg):s;return f(c)}var d;o==="vertical"&&H(a)?d=ja().y(un).x1(nn).x0(a):H(a)?d=ja().x(nn).y1(un).y0(a):d=Wo().x(nn).y(un);var p=d.defined(xu).curve(i);return p(u)},yu=e=>{var{className:t,points:r,path:a,pathRef:o}=e,n=$t();if((!r||!r.length)&&!a)return null;var i={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||n,connectNulls:e.connectNulls},u=r&&r.length?TA(i):a;return $g.createElement("path",tc({},Xe(e),Ga(e),{className:J("recharts-curve",t),d:u===null?void 0:u,ref:o}))};import*as Yg from"react";var RA=["x","y","top","left","width","height","className"];function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"M".concat(e,",").concat(o,"v").concat(a,"M").concat(n,",").concat(t,"h").concat(r),Zg=e=>{var{x:t=0,y:r=0,top:a=0,left:o=0,width:n=0,height:i=0,className:u}=e,l=jA(e,RA),s=_A({x:t,y:r,top:a,left:o,width:n,height:i},l);return!H(t)||!H(r)||!H(n)||!H(i)||!H(a)||!H(o)?null:Yg.createElement("path",rc({},me(s),{className:J("recharts-cross",u),d:UA(t,r,n,i,a,o)}))};function Jg(e,t,r,a){var o=a/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-o,width:e==="horizontal"?a:r.width-1,height:e==="horizontal"?r.height-1:a}}import*as Su from"react";import{useEffect as hO,useMemo as gO,useRef as ln,useState as vO}from"react";import{useEffect as pv,useRef as iO,useState as uO}from"react";function Qg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function ev(e){for(var t=1;te.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),bu=(e,t,r)=>e.map(a=>"".concat(VA(a)," ").concat(t,"ms ").concat(r)).join(","),tv=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,a)=>r.filter(o=>a.includes(o))),no=(e,t)=>Object.keys(t).reduce((r,a)=>ev(ev({},r),{},{[a]:e(a,t[a])}),{});function rv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function _e(e){for(var t=1;te+(t-e)*r,ac=e=>{var{from:t,to:r}=e;return t!==r},av=(e,t,r)=>{var a=no((o,n)=>{if(ac(n)){var[i,u]=e(n.from,n.to,n.velocity);return _e(_e({},n),{},{from:i,velocity:u})}return n},t);return r<1?no((o,n)=>ac(n)&&a[o]!=null?_e(_e({},n),{},{velocity:wu(n.velocity,a[o].velocity,r),from:wu(n.from,a[o].from,r)}):n,t):av(e,a,r-1)};function XA(e,t,r,a,o,n){var i,u=a.reduce((d,p)=>_e(_e({},d),{},{[p]:{from:e[p],velocity:0,to:t[p]}}),{}),l=()=>no((d,p)=>p.from,u),s=()=>!Object.values(u).filter(ac).length,f=null,c=d=>{i||(i=d);var p=d-i,h=p/r.dt;u=av(r,u,h),o(_e(_e(_e({},e),t),l())),i=d,s()||(f=n.setTimeout(c))};return()=>(f=n.setTimeout(c),()=>{var d;(d=f)===null||d===void 0||d()})}function YA(e,t,r,a,o,n,i){var u=null,l=o.reduce((c,d)=>{var p=e[d],h=t[d];return p==null||h==null?c:_e(_e({},c),{},{[d]:[p,h]})},{}),s,f=c=>{s||(s=c);var d=(c-s)/a,p=no((m,g)=>wu(...g,r(d)),l);if(n(_e(_e(_e({},e),t),p)),d<1)u=i.setTimeout(f);else{var h=no((m,g)=>wu(...g,r(1)),l);n(_e(_e(_e({},e),t),h))}};return()=>(u=i.setTimeout(f),()=>{var c;(c=u)===null||c===void 0||c()})}var ov=(e,t,r,a,o,n)=>{var i=tv(e,t);return r==null?()=>(o(_e(_e({},e),t)),()=>{}):r.isStepper===!0?XA(e,t,r,i,o,n):YA(e,t,r,a,i,o,n)};var Iu=1e-4,uv=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],lv=(e,t)=>e.map((r,a)=>r*t**a).reduce((r,a)=>r+a),nv=(e,t)=>r=>{var a=uv(e,t);return lv(a,r)},ZA=(e,t)=>r=>{var a=uv(e,t),o=[...a.map((n,i)=>n*i).slice(1),0];return lv(o,r)},JA=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var a=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(a==null||a.length!==4)return null;var o=a.map(n=>parseFloat(n));return[o[0],o[1],o[2],o[3]]},QA=function(){for(var t=arguments.length,r=new Array(t),a=0;a{var o=nv(e,r),n=nv(t,a),i=ZA(e,r),u=s=>s>1?1:s<0?0:s,l=s=>{for(var f=s>1?1:s,c=f,d=0;d<8;++d){var p=o(c)-f,h=i(c);if(Math.abs(p-f)0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:a=8,dt:o=17}=t,n=(i,u,l)=>{var s=-(i-u)*r,f=l*a,c=l+(s-f)*o/1e3,d=l*o/1e3+i;return Math.abs(d-u){if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return iv(e);case"spring":return tO();default:if(e.split("(")[0]==="cubic-bezier")return iv(e)}return typeof e=="function"?e:null};import{createContext as rO,useContext as aO,useMemo as oO}from"react";function fv(e){var t,r=()=>null,a=!1,o=null,n=i=>{if(!a){if(Array.isArray(i)){if(!i.length)return;var u=i,[l,...s]=u;if(typeof l=="number"){o=e.setTimeout(n.bind(null,s),l);return}n(l),o=e.setTimeout(n.bind(null,s));return}typeof i=="string"&&(t=i,r(t)),typeof i=="object"&&(t=i,r(t)),typeof i=="function"&&i()}};return{stop:()=>{a=!0},start:i=>{a=!1,o&&(o(),o=null),n(i)},subscribe:i=>(r=i,()=>{r=()=>null}),getTimeoutController:()=>e}}var Cu=class{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=performance.now(),o=null,n=i=>{i-a>=r?t(i):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(n))};return o=requestAnimationFrame(n),()=>{o!=null&&cancelAnimationFrame(o)}}};function cv(){return fv(new Cu)}var nO=rO(cv);function dv(e,t){var r=aO(nO);return oO(()=>t??r(e),[e,t,r])}var lO={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},mv={t:0},oc={t:1};function io(e){var t=ve(e,lO),{isActive:r,canBegin:a,duration:o,easing:n,begin:i,onAnimationEnd:u,onAnimationStart:l,children:s}=t,f=gu(),c=r==="auto"?!Dt.isSsr&&!f:r,d=dv(t.animationId,t.animationManager),[p,h]=uO(c?mv:oc),m=iO(null);return pv(()=>{c||h(oc)},[c]),pv(()=>{if(!c||!a)return ht;var g=ov(mv,oc,sv(n),o,h,d.getTimeoutController()),v=()=>{m.current=g()};return d.start([l,i,v,o,u]),()=>{d.stop(),m.current&&m.current(),u()}},[c,a,o,n,i,l,u,d]),s(p.t)}import{useRef as hv}from"react";function uo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=hv(lr(t)),a=hv(e);return a.current!==e&&(r.current=lr(t),a.current=e),r.current}var sO=["radius"],fO=["radius"],gv,vv,xv,yv,bv,wv,Iv,Cv,Sv,Lv;function Pv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Av(e){for(var t=1;t{var n=Gt(r),i=Gt(a),u=Math.min(Math.abs(n)/2,Math.abs(i)/2),l=i>=0?1:-1,s=n>=0?1:-1,f=i>=0&&n>=0||i<0&&n<0?1:0,c;if(u>0&&Array.isArray(o)){for(var d=[0,0,0,0],p=0,h=4;pu?u:g}c=he(gv||(gv=Xt(["M",",",""])),e,t+l*d[0]),d[0]>0&&(c+=he(vv||(vv=Xt(["A ",",",",0,0,",",",",",""])),d[0],d[0],f,e+s*d[0],t)),c+=he(xv||(xv=Xt(["L ",",",""])),e+r-s*d[1],t),d[1]>0&&(c+=he(yv||(yv=Xt(["A ",",",",0,0,",`, + `,",",""])),d[1],d[1],f,e+r,t+l*d[1])),c+=he(bv||(bv=Xt(["L ",",",""])),e+r,t+a-l*d[2]),d[2]>0&&(c+=he(wv||(wv=Xt(["A ",",",",0,0,",`, + `,",",""])),d[2],d[2],f,e+r-s*d[2],t+a)),c+=he(Iv||(Iv=Xt(["L ",",",""])),e+s*d[3],t+a),d[3]>0&&(c+=he(Cv||(Cv=Xt(["A ",",",",0,0,",`, + `,",",""])),d[3],d[3],f,e,t+a-l*d[3])),c+="Z"}else if(u>0&&o===+o&&o>0){var v=Math.min(u,o);c=he(Sv||(Sv=Xt(["M ",",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",","," Z"])),e,t+l*v,v,v,f,e+s*v,t,e+r-s*v,t,v,v,f,e+r,t+l*v,e+r,t+a-l*v,v,v,f,e+r-s*v,t+a,e+s*v,t+a,v,v,f,e,t+a-l*v)}else c=he(Lv||(Lv=Xt(["M ",","," h "," v "," h "," Z"])),e,t,r,a,-r);return c},Ev={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Pu=e=>{var t=ve(e,Ev),r=ln(null),[a,o]=vO(-1);hO(()=>{if(r.current&&r.current.getTotalLength)try{var b=r.current.getTotalLength();b&&o(b)}catch{}},[]);var{x:n,y:i,width:u,height:l,radius:s,className:f}=t,{animationEasing:c,animationDuration:d,animationBegin:p,isAnimationActive:h,isUpdateAnimationActive:m}=t,g=ln(u),v=ln(l),S=ln(n),I=ln(i),A=gO(()=>({x:n,y:i,width:u,height:l,radius:s}),[n,i,u,l,s]),P=uo(A,"rectangle-");if(n!==+n||i!==+i||u!==+u||l!==+l||u===0||l===0)return null;var k=J("recharts-rectangle",f);if(!m){var M=me(t),{radius:O}=M,j=Ov(M,sO);return Su.createElement("path",Lu({},j,{x:Gt(n),y:Gt(i),width:Gt(u),height:Gt(l),radius:typeof s=="number"?s:void 0,className:k,d:kv(n,i,u,l,s)}))}var B=g.current,$=v.current,F=S.current,Y=I.current,Z="0px ".concat(a===-1?1:a,"px"),Q="".concat(a,"px ").concat(a,"px"),x=bu(["strokeDasharray"],d,typeof c=="string"?c:Ev.animationEasing);return Su.createElement(io,{animationId:P,key:P,canBegin:a>0,duration:d,easing:c,isActive:m,begin:p},b=>{var L=We(B,u,b),w=We($,l,b),y=We(F,n,b),C=We(Y,i,b);r.current&&(g.current=L,v.current=w,S.current=y,I.current=C);var D;h?b>0?D={transition:x,strokeDasharray:Q}:D={strokeDasharray:Z}:D={strokeDasharray:Q};var T=me(t),{radius:N}=T,U=Ov(T,fO);return Su.createElement("path",Lu({},U,{radius:typeof s=="number"?s:void 0,className:k,d:kv(y,C,L,w,s),ref:r,style:Av(Av({},D),t.style)}))})};function Dv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Mv(e){for(var t=1;te*180/Math.PI,Pe=(e,t,r,a)=>({x:e+Math.cos(-sn*a)*r,y:t+Math.sin(-sn*a)*r}),Tv=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(t-(a.left||0)-(a.right||0)),Math.abs(r-(a.top||0)-(a.bottom||0)))/2},IO=(e,t)=>{var{x:r,y:a}=e,{x:o,y:n}=t;return Math.sqrt((r-o)**2+(a-n)**2)},CO=(e,t)=>{var{x:r,y:a}=e,{cx:o,cy:n}=t,i=IO({x:r,y:a},{x:o,y:n});if(i<=0)return{radius:i,angle:0};var u=(r-o)/i,l=Math.acos(u);return a>n&&(l=2*Math.PI-l),{radius:i,angle:wO(l),angleInRadian:l}},SO=e=>{var{startAngle:t,endAngle:r}=e,a=Math.floor(t/360),o=Math.floor(r/360),n=Math.min(a,o);return{startAngle:t-n*360,endAngle:r-n*360}},LO=(e,t)=>{var{startAngle:r,endAngle:a}=t,o=Math.floor(r/360),n=Math.floor(a/360),i=Math.min(o,n);return e+i*360},Rv=(e,t)=>{var{relativeX:r,relativeY:a}=e,{radius:o,angle:n}=CO({x:r,y:a},t),{innerRadius:i,outerRadius:u}=t;if(ou||o===0)return null;var{startAngle:l,endAngle:s}=SO(t),f=n,c;if(l<=s){for(;f>s;)f-=360;for(;f=l&&f<=s}else{for(;f>l;)f-=360;for(;f=s&&f<=l}return c?Mv(Mv({},t),{},{radius:o,angle:LO(f,t)}):null};function Au(e){var{cx:t,cy:r,radius:a,startAngle:o,endAngle:n}=e,i=Pe(t,r,a,o),u=Pe(t,r,a,n);return{points:[i,u],cx:t,cy:r,radius:a,startAngle:o,endAngle:n}}import*as qv from"react";var _v,Nv,Bv,Fv,jv,zv,Uv;function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=Re(t-e),a=Math.min(Math.abs(t-e),359.999);return r*a},Ou=e=>{var{cx:t,cy:r,radius:a,angle:o,sign:n,isExternal:i,cornerRadius:u,cornerIsExternal:l}=e,s=u*(i?1:-1)+a,f=Math.asin(u/s)/sn,c=l?o:o+n*f,d=Pe(t,r,s,c),p=Pe(t,r,a,c),h=l?o-n*f:o,m=Pe(t,r,s*Math.cos(f*sn),h);return{center:d,circleTangency:p,lineTangency:m,theta:f}},Hv=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:n,endAngle:i}=e,u=PO(n,i),l=n+u,s=Pe(t,r,o,n),f=Pe(t,r,o,l),c=he(_v||(_v=oa(["M ",",",` + A `,",",`,0, + `,",",`, + `,",",` + `])),s.x,s.y,o,o,+(Math.abs(u)>180),+(n>l),f.x,f.y);if(a>0){var d=Pe(t,r,a,n),p=Pe(t,r,a,l);c+=he(Nv||(Nv=oa(["L ",",",` + A `,",",`,0, + `,",",`, + `,","," Z"])),p.x,p.y,a,a,+(Math.abs(u)>180),+(n<=l),d.x,d.y)}else c+=he(Bv||(Bv=oa(["L ",","," Z"])),t,r);return c},AO=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:o,cornerRadius:n,forceCornerRadius:i,cornerIsExternal:u,startAngle:l,endAngle:s}=e,f=Re(s-l),{circleTangency:c,lineTangency:d,theta:p}=Ou({cx:t,cy:r,radius:o,angle:l,sign:f,cornerRadius:n,cornerIsExternal:u}),{circleTangency:h,lineTangency:m,theta:g}=Ou({cx:t,cy:r,radius:o,angle:s,sign:-f,cornerRadius:n,cornerIsExternal:u}),v=u?Math.abs(l-s):Math.abs(l-s)-p-g;if(v<0)return i?he(Fv||(Fv=oa(["M ",",",` + a`,",",",0,0,1,",`,0 + a`,",",",0,0,1,",`,0 + `])),d.x,d.y,n,n,n*2,n,n,-n*2):Hv({cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:l,endAngle:s});var S=he(jv||(jv=oa(["M ",",",` + A`,",",",0,0,",",",",",` + A`,",",",0,",",",",",",",` + A`,",",",0,0,",",",",",` + `])),d.x,d.y,n,n,+(f<0),c.x,c.y,o,o,+(v>180),+(f<0),h.x,h.y,n,n,+(f<0),m.x,m.y);if(a>0){var{circleTangency:I,lineTangency:A,theta:P}=Ou({cx:t,cy:r,radius:a,angle:l,sign:f,isExternal:!0,cornerRadius:n,cornerIsExternal:u}),{circleTangency:k,lineTangency:M,theta:O}=Ou({cx:t,cy:r,radius:a,angle:s,sign:-f,isExternal:!0,cornerRadius:n,cornerIsExternal:u}),j=u?Math.abs(l-s):Math.abs(l-s)-P-O;if(j<0&&n===0)return"".concat(S,"L").concat(t,",").concat(r,"Z");S+=he(zv||(zv=oa(["L",",",` + A`,",",",0,0,",",",",",` + A`,",",",0,",",",",",",",` + A`,",",",0,0,",",",",","Z"])),M.x,M.y,n,n,+(f<0),k.x,k.y,a,a,+(j>180),+(f>0),I.x,I.y,n,n,+(f<0),A.x,A.y)}else S+=he(Uv||(Uv=oa(["L",",","Z"])),t,r);return S},OO={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},ku=e=>{var t=ve(e,OO),{cx:r,cy:a,innerRadius:o,outerRadius:n,cornerRadius:i,forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:f,className:c}=t;if(n0&&Math.abs(s-f)<360?m=AO({cx:r,cy:a,innerRadius:o,outerRadius:n,cornerRadius:Math.min(h,p/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:f}):m=Hv({cx:r,cy:a,innerRadius:o,outerRadius:n,startAngle:s,endAngle:f}),qv.createElement("path",nc({},me(t),{className:d,d:m}))};function Wv(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(Si(t)){if(e==="centric"){var{cx:a,cy:o,innerRadius:n,outerRadius:i,angle:u}=t,l=Pe(a,o,n,u),s=Pe(a,o,i,u);return[{x:l.x,y:l.y},{x:s.x,y:s.y}]}return Au(t)}}function Vv(e){return Bi(e)?NaN:Number(e)}function Eu(e){return e?(e=Vv(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function Du(e,t,r){r&&typeof r!="number"&&$o(e,t,r)&&(t=r=void 0),e=Eu(e),t===void 0?(t=e,e=0):t=Eu(t),r=r===void 0?ee.chartData,kO=E([zt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),fn=(e,t,r,a)=>a?kO(e):zt(e);function yt(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(te(t)&&te(r))return!0}return!1}function Gv(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Mu(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,a]=e,o,n;if(te(r))o=r;else if(typeof r=="function")return;if(te(a))n=a;else if(typeof a=="function")return;var i=[o,n];if(yt(i))return i}}function Kv(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var a=e(t,r);if(yt(a))return Gv(a,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[o,n]=e,i,u;if(o==="auto")t!=null&&(i=Math.min(...t));else if(H(o))i=o;else if(typeof o=="function")try{t!=null&&(i=o(t?.[0]))}catch{}else if(typeof o=="string"&&Vf.test(o)){var l=Vf.exec(o);if(l==null||l[1]==null||t==null)i=void 0;else{var s=+l[1];i=t[0]-s}}else i=t?.[0];if(n==="auto")t!=null&&(u=Math.max(...t));else if(H(n))u=n;else if(typeof n=="function")try{t!=null&&(u=n(t?.[1]))}catch{}else if(typeof n=="string"&&Gf.test(n)){var f=Gf.exec(n);if(f==null||f[1]==null||t==null)u=void 0;else{var c=+f[1];u=t[1]+c}}else u=t?.[1];var d=[i,u];if(yt(d))return t==null?d:Gv(d,t,r)}}}var ie=As(ic());var uc=As(ic());function lc(e){var t;return e===0?t=1:t=Math.floor(new uc.default(e).abs().log(10).toNumber())+1,t}function sc(e,t,r){for(var a=new uc.default(e),o=0,n=[];a.lt(t)&&o<1e5;)n.push(a.toNumber()),a=a.add(r),o++;return n}var Xv=e=>{var[t,r]=e,[a,o]=[t,r];return t>r&&([a,o]=[r,t]),[a,o]},fc=(e,t,r)=>{if(e.lte(0))return new ie.default(0);var a=lc(e.toNumber()),o=new ie.default(10).pow(a),n=e.div(o),i=a!==1?.05:.1,u=new ie.default(Math.ceil(n.div(i).toNumber())).add(r).mul(i),l=u.mul(o);return t?new ie.default(l.toNumber()):new ie.default(Math.ceil(l.toNumber()))},Yv=(e,t,r)=>{var a;if(e.lte(0))return new ie.default(0);var o=[1,2,2.5,5],n=e.toNumber(),i=Math.floor(new ie.default(n).abs().log(10).toNumber()),u=new ie.default(10).pow(i),l=e.div(u).toNumber(),s=o.findIndex(p=>p>=l-1e-10);if(s===-1&&(u=u.mul(10),s=0),s+=r,s>=o.length){var f=Math.floor(s/o.length);s%=o.length,u=u.mul(new ie.default(10).pow(f))}var c=(a=o[s])!==null&&a!==void 0?a:1,d=new ie.default(c).mul(u);return t?d:new ie.default(Math.ceil(d.toNumber()))},EO=(e,t,r)=>{var a=new ie.default(1),o=new ie.default(e);if(!o.isint()&&r){var n=Math.abs(e);n<1?(a=new ie.default(10).pow(lc(e)-1),o=new ie.default(Math.floor(o.div(a).toNumber())).mul(a)):n>1&&(o=new ie.default(Math.floor(e)))}else e===0?o=new ie.default(Math.floor((t-1)/2)):r||(o=new ie.default(Math.floor(e)));for(var i=Math.floor((t-1)/2),u=[],l=0;l4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:fc;if(!Number.isFinite((r-t)/(a-1)))return{step:new ie.default(0),tickMin:new ie.default(0),tickMax:new ie.default(0)};var u=i(new ie.default(r).sub(t).div(a-1),o,n),l;t<=0&&r>=0?l=new ie.default(0):(l=new ie.default(t).add(r).div(2),l=l.sub(new ie.default(l).mod(u)));var s=Math.ceil(l.sub(t).div(u).toNumber()),f=Math.ceil(new ie.default(r).sub(l).div(u).toNumber()),c=s+f+1;return c>a?Zv(t,r,a,o,n+1,i):(c0?f+(a-c):f,s=r>0?s:s+(a-c)),{step:u,tickMin:l.sub(new ie.default(s).mul(u)),tickMax:l.add(new ie.default(f).mul(u))})};var Ru=function(t){var[r,a]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",u=Math.max(o,2),[l,s]=Xv([r,a]);if(l===-1/0||s===1/0){var f=s===1/0?[l,...Array(o-1).fill(1/0)]:[...Array(o-1).fill(-1/0),s];return r>a?f.reverse():f}if(l===s)return EO(l,o,n);var c=i==="snap125"?Yv:fc,{step:d,tickMin:p,tickMax:h}=Zv(l,s,u,n,0,c),m=sc(p,h.add(new ie.default(.1).mul(d)),d);return r>a?m.reverse():m},_u=function(t,r){var[a,o]=t,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[u,l]=Xv([a,o]);if(u===-1/0||l===1/0)return[a,o];if(u===l)return[u];var s=i==="snap125"?Yv:fc,f=Math.max(r,2),c=s(new ie.default(l).sub(u).div(f-1),n,0),d=[...sc(new ie.default(u),new ie.default(l),c),l];return n===!1&&(d=d.map(p=>Math.round(p))),a>o?d.reverse():d};var Jv=e=>e.rootProps.barCategoryGap;var lo=e=>e.rootProps.stackOffset,Nu=e=>e.rootProps.reverseStackOrder,so=e=>e.options.chartName,Bu=e=>e.rootProps.syncId,cc=e=>e.rootProps.syncMethod,Fu=e=>e.options.eventEmitter;var de={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3};var Dr={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:"auto",orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"auto",zIndex:de.axis};var Ut={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:"auto",label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,tickLine:!0,type:"auto",zIndex:de.axis};var na=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function cn(e,t,r){if(r!=="auto")return r;if(e!=null)return xt(e,t)?"category":"number"}function Qv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function ju(e){for(var t=1;t{if(t!=null)return e.polarAxis.angleAxis[t]},zu=E([RO,Qf],(e,t)=>{var r;if(e!=null)return e;var a=(r=cn(t,"angleAxis",ex.type))!==null&&r!==void 0?r:"category";return ju(ju({},ex),{},{type:a})}),_O=(e,t)=>e.polarAxis.radiusAxis[t],Uu=E([_O,Qf],(e,t)=>{var r;if(e!=null)return e;var a=(r=cn(t,"radiusAxis",tx.type))!==null&&r!==void 0?r:"category";return ju(ju({},tx),{},{type:a})}),qu=e=>e.polarOptions,dc=E([Ye,Ze,xe],Tv),rx=E([qu,dc],(e,t)=>{if(e!=null)return Ot(e.innerRadius,t,0)}),ax=E([qu,dc],(e,t)=>{if(e!=null)return Ot(e.outerRadius,t,t*.8)}),NO=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},pc=E([qu],NO),KV=E([zu,pc],na),mc=E([dc,rx,ax],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]}),$V=E([Uu,mc],na),Hu=E([ce,qu,rx,ax,Ye,Ze],(e,t,r,a,o,n)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||a==null)){var{cx:i,cy:u,startAngle:l,endAngle:s}=t;return{cx:Ot(i,o,o/2),cy:Ot(u,n,n/2),innerRadius:r,outerRadius:a,startAngle:l,endAngle:s,clockWise:!1}}});var Ne=(e,t)=>t;var dn=(e,t,r)=>r;function Wu(e){return e?.id}function Vu(e,t,r){var{chartData:a=[]}=t,{allowDuplicatedCategory:o,dataKey:n}=r,i=new Map;return e.forEach(u=>{var l,s=(l=u.data)!==null&&l!==void 0?l:a;if(!(s==null||s.length===0)){var f=Wu(u);s.forEach((c,d)=>{var p=n==null||o?d:String(Se(c,n,null)),h=Se(c,u.dataKey,0),m;i.has(p)?m=i.get(p):m={},Object.assign(m,{[f]:h}),i.set(p,m)})}}),Array.from(i.values())}function pn(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var fo=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function co(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function ox(e,t){if(e.length===t.length){for(var r=0;r{var t=ce(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"};var Mr=e=>e.tooltip.settings.axisId;function mn(e){if(e!=null){var t=e.ticks,r=e.bandwidth,a=e.range(),o=[Math.min(...a),Math.max(...a)];return{domain:()=>e.domain(),range:function(n){function i(){return n.apply(this,arguments)}return i.toString=function(){return n.toString()},i}(()=>o),rangeMin:()=>o[0],rangeMax:()=>o[1],isInRange(n){var i=o[0],u=o[1];return i<=u?n>=i&&n<=u:n>=u&&n<=i},bandwidth:r?()=>r.call(e):void 0,ticks:t?n=>t.call(e,n):void 0,map:(n,i)=>{var u=e(n);if(u!=null){if(e.bandwidth&&i!==null&&i!==void 0&&i.position){var l=e.bandwidth();switch(i.position){case"middle":u+=l/2;break;case"end":u+=l;break;default:break}}return u}}}}}var nx=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!yt(t)){for(var r,a,o=0;oa)&&(a=n))}return r!==void 0&&a!==void 0?[r,a]:void 0}return t}default:return t}};var Fr={};jC(Fr,{scaleBand:()=>xn,scaleDiverging:()=>Pl,scaleDivergingLog:()=>Kc,scaleDivergingPow:()=>Al,scaleDivergingSqrt:()=>Ay,scaleDivergingSymlog:()=>$c,scaleIdentity:()=>fl,scaleImplicit:()=>Ju,scaleLinear:()=>sl,scaleLog:()=>cl,scaleOrdinal:()=>ho,scalePoint:()=>dx,scalePow:()=>kn,scaleQuantile:()=>ml,scaleQuantize:()=>hl,scaleRadial:()=>pl,scaleSequential:()=>Il,scaleSequentialLog:()=>Vc,scaleSequentialPow:()=>Cl,scaleSequentialQuantile:()=>Sl,scaleSequentialSqrt:()=>Py,scaleSequentialSymlog:()=>Gc,scaleSqrt:()=>$x,scaleSymlog:()=>dl,scaleThreshold:()=>gl,scaleTime:()=>Hc,scaleUtc:()=>Wc,tickFormat:()=>Sn});function ot(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function hc(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function ia(e){let t,r,a;e.length!==2?(t=ot,r=(u,l)=>ot(e(u),l),a=(u,l)=>e(u)-l):(t=e===ot||e===hc?e:BO,r=e,a=e);function o(u,l,s=0,f=u.length){if(s>>1;r(u[c],l)<0?s=c+1:f=c}while(s>>1;r(u[c],l)<=0?s=c+1:f=c}while(ss&&a(u[c-1],l)>-a(u[c],l)?c-1:c}return{left:o,center:i,right:n}}function BO(){return 0}function hn(e){return e===null?NaN:+e}function*ix(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(a=+a)>=a&&(yield a)}}var ux=ia(ot),lx=ux.right,FO=ux.left,jO=ia(hn).center,qt=lx;var po=class extends Map{constructor(t,r=qO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[a,o]of t)this.set(a,o)}get(t){return super.get(sx(this,t))}has(t){return super.has(sx(this,t))}set(t,r){return super.set(zO(this,t),r)}delete(t){return super.delete(UO(this,t))}};function sx({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):r}function zO({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function UO({_intern:e,_key:t},r){let a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function qO(e){return e!==null&&typeof e=="object"?e.valueOf():e}function fx(e=ot){if(e===ot)return gc;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{let a=e(t,r);return a||a===0?a:(e(r,r)===0)-(e(t,t)===0)}}function gc(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}var HO=Math.sqrt(50),WO=Math.sqrt(10),VO=Math.sqrt(2);function Gu(e,t,r){let a=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(a)),n=a/Math.pow(10,o),i=n>=HO?10:n>=WO?5:n>=VO?2:1,u,l,s;return o<0?(s=Math.pow(10,-o)/i,u=Math.round(e*s),l=Math.round(t*s),u/st&&--l,s=-s):(s=Math.pow(10,o)*i,u=Math.round(e/s),l=Math.round(t/s),u*st&&--l),l0))return[];if(e===t)return[e];let a=t=o))return[];let u=n-o+1,l=new Array(u);if(a)if(i<0)for(let s=0;s=a)&&(r=a);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&(r=o)&&(r=o)}return r}function $u(e,t){let r;if(t===void 0)for(let a of e)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function Xu(e,t,r=0,a=1/0,o){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),a=Math.floor(Math.min(e.length-1,a)),!(r<=t&&t<=a))return e;for(o=o===void 0?gc:fx(o);a>r;){if(a-r>600){let l=a-r+1,s=t-r+1,f=Math.log(l),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(l-c)/l)*(s-l/2<0?-1:1),p=Math.max(r,Math.floor(t-s*c/l+d)),h=Math.min(a,Math.floor(t+(l-s)*c/l+d));Xu(e,t,p,h,o)}let n=e[t],i=r,u=a;for(vn(e,r,t),o(e[a],n)>0&&vn(e,r,a);i0;)--u}o(e[r],n)===0?vn(e,r,u):(++u,vn(e,u,a)),u<=t&&(r=u+1),t<=u&&(a=u-1)}return e}function vn(e,t,r){let a=e[t];e[t]=e[r],e[r]=a}function Yu(e,t,r){if(e=Float64Array.from(ix(e,r)),!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return $u(e);if(t>=1)return Ku(e);var a,o=(a-1)*t,n=Math.floor(o),i=Ku(Xu(e,n).subarray(0,n+1)),u=$u(e.subarray(n+1));return i+(u-i)*(o-n)}}function vc(e,t,r=hn){if(!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return+r(e[0],0,e);if(t>=1)return+r(e[a-1],a-1,e);var a,o=(a-1)*t,n=Math.floor(o),i=+r(e[n],n,e),u=+r(e[n+1],n+1,e);return i+(u-i)*(o-n)}}function Zu(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var a=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,n=new Array(o);++a>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?el(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?el(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=KO.exec(e))?new ct(t[1],t[2],t[3],1):(t=$O.exec(e))?new ct(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=XO.exec(e))?el(t[1],t[2],t[3],t[4]):(t=YO.exec(e))?el(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ZO.exec(e))?yx(t[1],t[2]/100,t[3]/100,1):(t=JO.exec(e))?yx(t[1],t[2]/100,t[3]/100,t[4]):px.hasOwnProperty(e)?gx(px[e]):e==="transparent"?new ct(NaN,NaN,NaN,0):null}function gx(e){return new ct(e>>16&255,e>>8&255,e&255,1)}function el(e,t,r,a){return a<=0&&(e=t=r=NaN),new ct(e,t,r,a)}function tk(e){return e instanceof wn||(e=Tr(e)),e?(e=e.rgb(),new ct(e.r,e.g,e.b,e.opacity)):new ct}function vo(e,t,r,a){return arguments.length===1?tk(e):new ct(e,t,r,a??1)}function ct(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}Qu(ct,vo,xc(wn,{brighter(e){return e=e==null?rl:Math.pow(rl,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ct(sa(this.r),sa(this.g),sa(this.b),al(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:vx,formatHex:vx,formatHex8:rk,formatRgb:xx,toString:xx}));function vx(){return`#${la(this.r)}${la(this.g)}${la(this.b)}`}function rk(){return`#${la(this.r)}${la(this.g)}${la(this.b)}${la((isNaN(this.opacity)?1:this.opacity)*255)}`}function xx(){let e=al(this.opacity);return`${e===1?"rgb(":"rgba("}${sa(this.r)}, ${sa(this.g)}, ${sa(this.b)}${e===1?")":`, ${e})`}`}function al(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function sa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function la(e){return e=sa(e),(e<16?"0":"")+e.toString(16)}function yx(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ht(e,t,r,a)}function wx(e){if(e instanceof Ht)return new Ht(e.h,e.s,e.l,e.opacity);if(e instanceof wn||(e=Tr(e)),!e)return new Ht;if(e instanceof Ht)return e;e=e.rgb();var t=e.r/255,r=e.g/255,a=e.b/255,o=Math.min(t,r,a),n=Math.max(t,r,a),i=NaN,u=n-o,l=(n+o)/2;return u?(t===n?i=(r-a)/u+(r0&&l<1?0:i,new Ht(i,u,l,e.opacity)}function Ix(e,t,r,a){return arguments.length===1?wx(e):new Ht(e,t,r,a??1)}function Ht(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}Qu(Ht,Ix,xc(wn,{brighter(e){return e=e==null?rl:Math.pow(rl,e),new Ht(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new Ht(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*t,o=2*r-a;return new ct(yc(e>=240?e-240:e+120,o,a),yc(e,o,a),yc(e<120?e+240:e-120,o,a),this.opacity)},clamp(){return new Ht(bx(this.h),tl(this.s),tl(this.l),al(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=al(this.opacity);return`${e===1?"hsl(":"hsla("}${bx(this.h)}, ${tl(this.s)*100}%, ${tl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function bx(e){return e=(e||0)%360,e<0?e+360:e}function tl(e){return Math.max(0,Math.min(1,e||0))}function yc(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function bc(e,t,r,a,o){var n=e*e,i=n*e;return((1-3*e+3*n-i)*t+(4-6*n+3*i)*r+(1+3*e+3*n-3*i)*a+i*o)/6}function Cx(e){var t=e.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[a],n=e[a+1],i=a>0?e[a-1]:2*o-n,u=a()=>e;function ak(e,t){return function(r){return e+r*t}}function ok(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(a){return Math.pow(e+a*t,r)}}function Lx(e){return(e=+e)==1?ol:function(t,r){return r-t?ok(t,r,e):In(isNaN(t)?r:t)}}function ol(e,t){var r=t-e;return r?ak(e,r):In(isNaN(e)?t:e)}var wc=function e(t){var r=Lx(t);function a(o,n){var i=r((o=vo(o)).r,(n=vo(n)).r),u=r(o.g,n.g),l=r(o.b,n.b),s=ol(o.opacity,n.opacity);return function(f){return o.r=i(f),o.g=u(f),o.b=l(f),o.opacity=s(f),o+""}}return a.gamma=e,a}(1);function Px(e){return function(t){var r=t.length,a=new Array(r),o=new Array(r),n=new Array(r),i,u;for(i=0;ir&&(n=t.slice(r,n),u[i]?u[i]+=n:u[++i]=n),(a=a[0])===(o=o[0])?u[i]?u[i]+=o:u[++i]=o:(u[++i]=null,l.push({i,x:Rr(a,o)})),r=Ic.lastIndex;return rt&&(r=e,e=t,t=r),function(a){return Math.max(e,Math.min(t,a))}}function lk(e,t,r){var a=e[0],o=e[1],n=t[0],i=t[1];return o2?sk:lk,l=s=null,c}function c(d){return d==null||isNaN(d=+d)?n:(l||(l=u(e.map(a),t,r)))(a(i(d)))}return c.invert=function(d){return i(o((s||(s=u(t,e.map(a),Rr)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,_r),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),r=fa,f()},c.clamp=function(d){return arguments.length?(i=d?!0:Be,f()):i!==Be},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(n=d,c):n},function(d,p){return a=d,o=p,f()}}function da(){return ca()(Be,Be)}function Rx(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function pa(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),a=e.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+e.slice(r+1)]}function Jt(e){return e=pa(Math.abs(e)),e?e[1]:NaN}function _x(e,t){return function(r,a){for(var o=r.length,n=[],i=0,u=e[0],l=0;o>0&&u>0&&(l+u+1>a&&(u=Math.max(1,a-l)),n.push(r.substring(o-=u,o+u)),!((l+=u+1)>a));)u=e[i=(i+1)%e.length];return n.reverse().join(t)}}function Nx(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var fk=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qt(e){if(!(t=fk.exec(e)))throw new Error("invalid format: "+e);var t;return new il({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Qt.prototype=il.prototype;function il(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}il.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Bx(e){e:for(var t=e.length,r=1,a=-1,o;r0&&(a=0);break}return a>0?e.slice(0,a)+e.slice(o+1):e}var Cn;function Fx(e,t){var r=pa(e,t);if(!r)return Cn=void 0,e.toPrecision(t);var a=r[0],o=r[1],n=o-(Cn=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=a.length;return n===i?a:n>i?a+new Array(n-i+1).join("0"):n>0?a.slice(0,n)+"."+a.slice(n):"0."+new Array(1-n).join("0")+pa(e,Math.max(0,t+n-1))[0]}function Pc(e,t){var r=pa(e,t);if(!r)return e+"";var a=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}var Ac={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Rx,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Pc(e*100,t),r:Pc,s:Fx,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Oc(e){return e}var jx=Array.prototype.map,zx=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Ux(e){var t=e.grouping===void 0||e.thousands===void 0?Oc:_x(jx.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",n=e.numerals===void 0?Oc:Nx(jx.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"\u2212":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function s(c,d){c=Qt(c);var p=c.fill,h=c.align,m=c.sign,g=c.symbol,v=c.zero,S=c.width,I=c.comma,A=c.precision,P=c.trim,k=c.type;k==="n"?(I=!0,k="g"):Ac[k]||(A===void 0&&(A=12),P=!0,k="g"),(v||p==="0"&&h==="=")&&(v=!0,p="0",h="=");var M=(d&&d.prefix!==void 0?d.prefix:"")+(g==="$"?r:g==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():""),O=(g==="$"?a:/[%p]/.test(k)?i:"")+(d&&d.suffix!==void 0?d.suffix:""),j=Ac[k],B=/[defgprs%]/.test(k);A=A===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function $(F){var Y=M,Z=O,Q,x,b;if(k==="c")Z=j(F)+Z,F="";else{F=+F;var L=F<0||1/F<0;if(F=isNaN(F)?l:j(Math.abs(F),A),P&&(F=Bx(F)),L&&+F==0&&m!=="+"&&(L=!1),Y=(L?m==="("?m:u:m==="-"||m==="("?"":m)+Y,Z=(k==="s"&&!isNaN(F)&&Cn!==void 0?zx[8+Cn/3]:"")+Z+(L&&m==="("?")":""),B){for(Q=-1,x=F.length;++Qb||b>57){Z=(b===46?o+F.slice(Q+1):F.slice(Q))+Z,F=F.slice(0,Q);break}}}I&&!v&&(F=t(F,1/0));var w=Y.length+F.length+Z.length,y=w>1)+Y+F+Z+y.slice(w);break;default:F=y+Y+F+Z;break}return n(F)}return $.toString=function(){return c+""},$}function f(c,d){var p=Math.max(-8,Math.min(8,Math.floor(Jt(d)/3)))*3,h=Math.pow(10,-p),m=s((c=Qt(c),c.type="f",c),{suffix:zx[8+p/3]});return function(g){return m(h*g)}}return{format:s,formatPrefix:f}}var ul,xo,ll;kc({thousands:",",grouping:[3],currency:["$",""]});function kc(e){return ul=Ux(e),xo=ul.format,ll=ul.formatPrefix,ul}function Ec(e){return Math.max(0,-Jt(Math.abs(e)))}function Dc(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Jt(t)/3)))*3-Jt(Math.abs(e)))}function Mc(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Jt(t)-Jt(e))+1}function Sn(e,t,r,a){var o=mo(e,t,r),n;switch(a=Qt(a??",f"),a.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return a.precision==null&&!isNaN(n=Dc(o,i))&&(a.precision=n),ll(a,i)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(n=Mc(o,Math.max(Math.abs(e),Math.abs(t))))&&(a.precision=n-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(n=Ec(o))&&(a.precision=n-(a.type==="%")*2);break}}return xo(a)}function nt(e){var t=e.domain;return e.ticks=function(r){var a=t();return ua(a[0],a[a.length-1],r??10)},e.tickFormat=function(r,a){var o=t();return Sn(o[0],o[o.length-1],r??10,a)},e.nice=function(r){r==null&&(r=10);var a=t(),o=0,n=a.length-1,i=a[o],u=a[n],l,s,f=10;for(u0;){if(s=gn(i,u,r),s===l)return a[o]=i,a[n]=u,t(a);if(s>0)i=Math.floor(i/s)*s,u=Math.ceil(u/s)*s;else if(s<0)i=Math.ceil(i*s)/s,u=Math.floor(u*s)/s;else break;l=s}return e},e}function sl(){var e=da();return e.copy=function(){return Zt(e,sl())},we.apply(e,arguments),nt(e)}function fl(e){var t;function r(a){return a==null||isNaN(a=+a)?t:a}return r.invert=r,r.domain=r.range=function(a){return arguments.length?(e=Array.from(a,_r),r):e.slice()},r.unknown=function(a){return arguments.length?(t=a,r):t},r.copy=function(){return fl(e).unknown(t)},e=arguments.length?Array.from(e,_r):[0,1],nt(r)}function Ln(e,t){e=e.slice();var r=0,a=e.length-1,o=e[r],n=e[a],i;return nMath.pow(e,t)}function hk(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Wx(e){return(t,r)=>-e(-t,r)}function Pn(e){let t=e(qx,Hx),r=t.domain,a=10,o,n;function i(){return o=hk(a),n=mk(a),r()[0]<0?(o=Wx(o),n=Wx(n),e(ck,dk)):e(qx,Hx),t}return t.base=function(u){return arguments.length?(a=+u,i()):a},t.domain=function(u){return arguments.length?(r(u),i()):r()},t.ticks=u=>{let l=r(),s=l[0],f=l[l.length-1],c=f0){for(;d<=p;++d)for(h=1;hf)break;v.push(m)}}else for(;d<=p;++d)for(h=a-1;h>=1;--h)if(m=d>0?h/n(-d):h*n(d),!(mf)break;v.push(m)}v.length*2{if(u==null&&(u=10),l==null&&(l=a===10?"s":","),typeof l!="function"&&(!(a%1)&&(l=Qt(l)).precision==null&&(l.trim=!0),l=xo(l)),u===1/0)return l;let s=Math.max(1,a*u/t.ticks().length);return f=>{let c=f/n(Math.round(o(f)));return c*ar(Ln(r(),{floor:u=>n(Math.floor(o(u))),ceil:u=>n(Math.ceil(o(u)))})),t}function cl(){let e=Pn(ca()).domain([1,10]);return e.copy=()=>Zt(e,cl()).base(e.base()),we.apply(e,arguments),e}function Vx(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Gx(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function An(e){var t=1,r=e(Vx(t),Gx(t));return r.constant=function(a){return arguments.length?e(Vx(t=+a),Gx(t)):t},nt(r)}function dl(){var e=An(ca());return e.copy=function(){return Zt(e,dl()).constant(e.constant())},we.apply(e,arguments)}function Kx(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function gk(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function vk(e){return e<0?-e*e:e*e}function On(e){var t=e(Be,Be),r=1;function a(){return r===1?e(Be,Be):r===.5?e(gk,vk):e(Kx(r),Kx(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,a()):r},nt(t)}function kn(){var e=On(ca());return e.copy=function(){return Zt(e,kn()).exponent(e.exponent())},we.apply(e,arguments),e}function $x(){return kn.apply(null,arguments).exponent(.5)}function Xx(e){return Math.sign(e)*e*e}function xk(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function pl(){var e=da(),t=[0,1],r=!1,a;function o(n){var i=xk(e(n));return isNaN(i)?a:r?Math.round(i):i}return o.invert=function(n){return e.invert(Xx(n))},o.domain=function(n){return arguments.length?(e.domain(n),o):e.domain()},o.range=function(n){return arguments.length?(e.range((t=Array.from(n,_r)).map(Xx)),o):t.slice()},o.rangeRound=function(n){return o.range(n).round(!0)},o.round=function(n){return arguments.length?(r=!!n,o):r},o.clamp=function(n){return arguments.length?(e.clamp(n),o):e.clamp()},o.unknown=function(n){return arguments.length?(a=n,o):a},o.copy=function(){return pl(e.domain(),t).round(r).clamp(e.clamp()).unknown(a)},we.apply(o,arguments),nt(o)}function ml(){var e=[],t=[],r=[],a;function o(){var i=0,u=Math.max(1,t.length);for(r=new Array(u-1);++i0?r[u-1]:e[0],u=r?[a[r-1],t]:[a[s-1],a[s]]},i.unknown=function(l){return arguments.length&&(n=l),i},i.thresholds=function(){return a.slice()},i.copy=function(){return hl().domain([e,t]).range(o).unknown(n)},we.apply(nt(i),arguments)}function gl(){var e=[.5],t=[0,1],r,a=1;function o(n){return n!=null&&n<=n?t[qt(e,n,0,a)]:r}return o.domain=function(n){return arguments.length?(e=Array.from(n),a=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(n){return arguments.length?(t=Array.from(n),a=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(n){var i=t.indexOf(n);return[e[i-1],e[i]]},o.unknown=function(n){return arguments.length?(r=n,o):r},o.copy=function(){return gl().domain(e).range(t).unknown(r)},we.apply(o,arguments)}var Tc=new Date,Rc=new Date;function pe(e,t,r,a){function o(n){return e(n=arguments.length===0?new Date:new Date(+n)),n}return o.floor=n=>(e(n=new Date(+n)),n),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=n=>{let i=o(n),u=o.ceil(n);return n-i(t(n=new Date(+n),i==null?1:Math.floor(i)),n),o.range=(n,i,u)=>{let l=[];if(n=o.ceil(n),u=u==null?1:Math.floor(u),!(n0))return l;let s;do l.push(s=new Date(+n)),t(n,u),e(n);while(spe(i=>{if(i>=i)for(;e(i),!n(i);)i.setTime(i-1)},(i,u)=>{if(i>=i)if(u<0)for(;++u<=0;)for(;t(i,-1),!n(i););else for(;--u>=0;)for(;t(i,1),!n(i););}),r&&(o.count=(n,i)=>(Tc.setTime(+n),Rc.setTime(+i),e(Tc),e(Rc),Math.floor(r(Tc,Rc))),o.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?o.filter(a?i=>a(i)%n===0:i=>o.count(0,i)%n===0):o)),o}var En=pe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);En.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?pe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):En);var P$=En.range;var Tt=pe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),Yx=Tt.range;var yo=pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),yk=yo.range,bo=pe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),bk=bo.range;var wo=pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),wk=wo.range,Io=pe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),Ik=Io.range;var pr=pe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),Ck=pr.range,ga=pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),Sk=ga.range,vl=pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),Lk=vl.range;function va(e){return pe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}var mr=va(0),Co=va(1),Jx=va(2),Qx=va(3),Nr=va(4),ey=va(5),ty=va(6),ry=mr.range,Pk=Co.range,Ak=Jx.range,Ok=Qx.range,kk=Nr.range,Ek=ey.range,Dk=ty.range;function xa(e){return pe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var hr=xa(0),So=xa(1),ay=xa(2),oy=xa(3),Br=xa(4),ny=xa(5),iy=xa(6),uy=hr.range,Mk=So.range,Tk=ay.range,Rk=oy.range,_k=Br.range,Nk=ny.range,Bk=iy.range;var Lo=pe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),Fk=Lo.range,Po=pe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),jk=Po.range;var wt=pe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());wt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:pe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});var zk=wt.range,It=pe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());It.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:pe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});var Uk=It.range;function sy(e,t,r,a,o,n){let i=[[Tt,1,1e3],[Tt,5,5*1e3],[Tt,15,15*1e3],[Tt,30,30*1e3],[n,1,6e4],[n,5,5*6e4],[n,15,15*6e4],[n,30,30*6e4],[o,1,36e5],[o,3,3*36e5],[o,6,6*36e5],[o,12,12*36e5],[a,1,864e5],[a,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function u(s,f,c){let d=fg).right(i,d);if(p===i.length)return e.every(mo(s/31536e6,f/31536e6,c));if(p===0)return En.every(Math.max(mo(s,f,c),1));let[h,m]=i[d/i[p-1][2]53)return null;"w"in _||(_.w=1),"Z"in _?(ee=zc(Mn(_.y,0,1)),He=ee.getUTCDay(),ee=He>4||He===0?So.ceil(ee):So(ee),ee=ga.offset(ee,(_.V-1)*7),_.y=ee.getUTCFullYear(),_.m=ee.getUTCMonth(),_.d=ee.getUTCDate()+(_.w+6)%7):(ee=jc(Mn(_.y,0,1)),He=ee.getDay(),ee=He>4||He===0?Co.ceil(ee):Co(ee),ee=pr.offset(ee,(_.V-1)*7),_.y=ee.getFullYear(),_.m=ee.getMonth(),_.d=ee.getDate()+(_.w+6)%7)}else("W"in _||"U"in _)&&("w"in _||(_.w="u"in _?_.u%7:"W"in _?1:0),He="Z"in _?zc(Mn(_.y,0,1)).getUTCDay():jc(Mn(_.y,0,1)).getDay(),_.m=0,_.d="W"in _?(_.w+6)%7+_.W*7-(He+5)%7:_.w+_.U*7-(He+6)%7);return"Z"in _?(_.H+=_.Z/100|0,_.M+=_.Z%100,zc(_)):jc(_)}}function O(R,q,V,_){for(var Ce=0,ee=q.length,He=V.length,ze,Lt;Ce=He)return-1;if(ze=q.charCodeAt(Ce++),ze===37){if(ze=q.charAt(Ce++),Lt=P[ze in fy?q.charAt(Ce++):ze],!Lt||(_=Lt(R,V,_))<0)return-1}else if(ze!=V.charCodeAt(_++))return-1}return _}function j(R,q,V){var _=s.exec(q.slice(V));return _?(R.p=f.get(_[0].toLowerCase()),V+_[0].length):-1}function B(R,q,V){var _=p.exec(q.slice(V));return _?(R.w=h.get(_[0].toLowerCase()),V+_[0].length):-1}function $(R,q,V){var _=c.exec(q.slice(V));return _?(R.w=d.get(_[0].toLowerCase()),V+_[0].length):-1}function F(R,q,V){var _=v.exec(q.slice(V));return _?(R.m=S.get(_[0].toLowerCase()),V+_[0].length):-1}function Y(R,q,V){var _=m.exec(q.slice(V));return _?(R.m=g.get(_[0].toLowerCase()),V+_[0].length):-1}function Z(R,q,V){return O(R,t,q,V)}function Q(R,q,V){return O(R,r,q,V)}function x(R,q,V){return O(R,a,q,V)}function b(R){return i[R.getDay()]}function L(R){return n[R.getDay()]}function w(R){return l[R.getMonth()]}function y(R){return u[R.getMonth()]}function C(R){return o[+(R.getHours()>=12)]}function D(R){return 1+~~(R.getMonth()/3)}function T(R){return i[R.getUTCDay()]}function N(R){return n[R.getUTCDay()]}function U(R){return l[R.getUTCMonth()]}function z(R){return u[R.getUTCMonth()]}function W(R){return o[+(R.getUTCHours()>=12)]}function ae(R){return 1+~~(R.getUTCMonth()/3)}return{format:function(R){var q=k(R+="",I);return q.toString=function(){return R},q},parse:function(R){var q=M(R+="",!1);return q.toString=function(){return R},q},utcFormat:function(R){var q=k(R+="",A);return q.toString=function(){return R},q},utcParse:function(R){var q=M(R+="",!0);return q.toString=function(){return R},q}}}var fy={"-":"",_:" ",0:"0"},qe=/^\s*\d+/,Hk=/^%/,Wk=/[\\^$*+?|[\]().{}]/g;function le(e,t,r){var a=e<0?"-":"",o=(a?-e:e)+"",n=o.length;return a+(n[t.toLowerCase(),r]))}function Gk(e,t,r){var a=qe.exec(t.slice(r,r+1));return a?(e.w=+a[0],r+a[0].length):-1}function Kk(e,t,r){var a=qe.exec(t.slice(r,r+1));return a?(e.u=+a[0],r+a[0].length):-1}function $k(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.U=+a[0],r+a[0].length):-1}function Xk(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.V=+a[0],r+a[0].length):-1}function Yk(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.W=+a[0],r+a[0].length):-1}function cy(e,t,r){var a=qe.exec(t.slice(r,r+4));return a?(e.y=+a[0],r+a[0].length):-1}function dy(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function Zk(e,t,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function Jk(e,t,r){var a=qe.exec(t.slice(r,r+1));return a?(e.q=a[0]*3-3,r+a[0].length):-1}function Qk(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.m=a[0]-1,r+a[0].length):-1}function py(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.d=+a[0],r+a[0].length):-1}function eE(e,t,r){var a=qe.exec(t.slice(r,r+3));return a?(e.m=0,e.d=+a[0],r+a[0].length):-1}function my(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.H=+a[0],r+a[0].length):-1}function tE(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.M=+a[0],r+a[0].length):-1}function rE(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.S=+a[0],r+a[0].length):-1}function aE(e,t,r){var a=qe.exec(t.slice(r,r+3));return a?(e.L=+a[0],r+a[0].length):-1}function oE(e,t,r){var a=qe.exec(t.slice(r,r+6));return a?(e.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function nE(e,t,r){var a=Hk.exec(t.slice(r,r+1));return a?r+a[0].length:-1}function iE(e,t,r){var a=qe.exec(t.slice(r));return a?(e.Q=+a[0],r+a[0].length):-1}function uE(e,t,r){var a=qe.exec(t.slice(r));return a?(e.s=+a[0],r+a[0].length):-1}function hy(e,t){return le(e.getDate(),t,2)}function lE(e,t){return le(e.getHours(),t,2)}function sE(e,t){return le(e.getHours()%12||12,t,2)}function fE(e,t){return le(1+pr.count(wt(e),e),t,3)}function by(e,t){return le(e.getMilliseconds(),t,3)}function cE(e,t){return by(e,t)+"000"}function dE(e,t){return le(e.getMonth()+1,t,2)}function pE(e,t){return le(e.getMinutes(),t,2)}function mE(e,t){return le(e.getSeconds(),t,2)}function hE(e){var t=e.getDay();return t===0?7:t}function gE(e,t){return le(mr.count(wt(e)-1,e),t,2)}function wy(e){var t=e.getDay();return t>=4||t===0?Nr(e):Nr.ceil(e)}function vE(e,t){return e=wy(e),le(Nr.count(wt(e),e)+(wt(e).getDay()===4),t,2)}function xE(e){return e.getDay()}function yE(e,t){return le(Co.count(wt(e)-1,e),t,2)}function bE(e,t){return le(e.getFullYear()%100,t,2)}function wE(e,t){return e=wy(e),le(e.getFullYear()%100,t,2)}function IE(e,t){return le(e.getFullYear()%1e4,t,4)}function CE(e,t){var r=e.getDay();return e=r>=4||r===0?Nr(e):Nr.ceil(e),le(e.getFullYear()%1e4,t,4)}function SE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+le(t/60|0,"0",2)+le(t%60,"0",2)}function gy(e,t){return le(e.getUTCDate(),t,2)}function LE(e,t){return le(e.getUTCHours(),t,2)}function PE(e,t){return le(e.getUTCHours()%12||12,t,2)}function AE(e,t){return le(1+ga.count(It(e),e),t,3)}function Iy(e,t){return le(e.getUTCMilliseconds(),t,3)}function OE(e,t){return Iy(e,t)+"000"}function kE(e,t){return le(e.getUTCMonth()+1,t,2)}function EE(e,t){return le(e.getUTCMinutes(),t,2)}function DE(e,t){return le(e.getUTCSeconds(),t,2)}function ME(e){var t=e.getUTCDay();return t===0?7:t}function TE(e,t){return le(hr.count(It(e)-1,e),t,2)}function Cy(e){var t=e.getUTCDay();return t>=4||t===0?Br(e):Br.ceil(e)}function RE(e,t){return e=Cy(e),le(Br.count(It(e),e)+(It(e).getUTCDay()===4),t,2)}function _E(e){return e.getUTCDay()}function NE(e,t){return le(So.count(It(e)-1,e),t,2)}function BE(e,t){return le(e.getUTCFullYear()%100,t,2)}function FE(e,t){return e=Cy(e),le(e.getUTCFullYear()%100,t,2)}function jE(e,t){return le(e.getUTCFullYear()%1e4,t,4)}function zE(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Br(e):Br.ceil(e),le(e.getUTCFullYear()%1e4,t,4)}function UE(){return"+0000"}function vy(){return"%"}function xy(e){return+e}function yy(e){return Math.floor(+e/1e3)}var Ao,xl,Sy,yl,Ly;qc({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function qc(e){return Ao=Uc(e),xl=Ao.format,Sy=Ao.parse,yl=Ao.utcFormat,Ly=Ao.utcParse,Ao}function qE(e){return new Date(e)}function HE(e){return e instanceof Date?+e:+new Date(+e)}function bl(e,t,r,a,o,n,i,u,l,s){var f=da(),c=f.invert,d=f.domain,p=s(".%L"),h=s(":%S"),m=s("%I:%M"),g=s("%I %p"),v=s("%a %d"),S=s("%b %d"),I=s("%B"),A=s("%Y");function P(k){return(l(k)t(o/(e.length-1)))},r.quantiles=function(a){return Array.from({length:a+1},(o,n)=>Yu(e,n/a))},r.copy=function(){return Sl(t).domain(e)},Mt.apply(r,arguments)}function Ll(){var e=0,t=.5,r=1,a=1,o,n,i,u,l,s=Be,f,c=!1,d;function p(m){return isNaN(m=+m)?d:(m=.5+((m=+f(m))-n)*(a*m{if(e!=null){var{scale:a,type:o}=e;if(a==="auto")return o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":o==="category"?"band":"linear";if(typeof a=="string")return GE(a)?a:"point"}};function KE(e,t){for(var r=0,a=e.length,o=e[0]t)?r=n+1:a=n}return r}function kl(e,t){if(e){var r=t??e.domain(),a=r.map(n=>{var i;return(i=e(n))!==null&&i!==void 0?i:0}),o=e.range();if(!(r.length===0||o.length<2))return n=>{var i,u,l=KE(a,n);if(l<=0)return r[0];if(l>=r.length)return r[r.length-1];var s=(i=a[l-1])!==null&&i!==void 0?i:0,f=(u=a[l])!==null&&u!==void 0?u:0;return Math.abs(n-s)<=Math.abs(n-f)?r[l-1]:r[l]}}}function ky(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):kl(e,void 0)}function Ey(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function El(e){for(var t=1;te.cartesianAxis.xAxis[t],tr=(e,t)=>{var r=Yc(e,t);return r??Ee},Zc={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Xc,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:Qr},ZE=(e,t)=>e.cartesianAxis.yAxis[t],rr=(e,t)=>{var r=ZE(e,t);return r??Zc},JE={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Jc=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??JE},it=(e,t,r)=>{switch(t){case"xAxis":return tr(e,r);case"yAxis":return rr(e,r);case"zAxis":return Jc(e,r);case"angleAxis":return zu(e,r);case"radiusAxis":return Uu(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},QE=(e,t,r)=>{switch(t){case"xAxis":return tr(e,r);case"yAxis":return rr(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Bn=(e,t,r)=>{switch(t){case"xAxis":return tr(e,r);case"yAxis":return rr(e,r);case"angleAxis":return zu(e,r);case"radiusAxis":return Uu(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Qc=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function ed(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var td=e=>e.graphicalItems.cartesianItems,eD=E([Ne,dn],ed),rd=(e,t,r)=>e.filter(r).filter(a=>t?.includeHidden===!0?!0:!a.hide),Fn=E([td,it,eD],rd,{memoizeOptions:{resultEqualityCheck:co}}),My=E([Fn],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(pn)),ad=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),tD=E([Fn],ad),od=e=>e.map(t=>t.data).filter(Boolean).flat(1),rD=E([Fn],od,{memoizeOptions:{resultEqualityCheck:co}}),nd=(e,t)=>{var{chartData:r=[],dataStartIndex:a,dataEndIndex:o}=t;return e.length>0?e:r.slice(a,o+1)},id=E([rD,fn],nd),ud=(e,t,r)=>t?.dataKey!=null?e.map(a=>({value:Se(a,t.dataKey)})):r.length>0?r.map(a=>a.dataKey).flatMap(a=>e.map(o=>({value:Se(o,a)}))):e.map(a=>({value:a})),jn=E([id,it,Fn],ud);function Oo(e){if(rt(e)||e instanceof Date){var t=Number(e);if(te(t))return t}}function Dy(e){if(Array.isArray(e)){var t=[Oo(e[0]),Oo(e[1])];return yt(t)?t:void 0}var r=Oo(e);if(r!=null)return[r,r]}function vr(e){return e.map(Oo).filter(Ve)}function aD(e,t){var r=Oo(e),a=Oo(t);return r==null&&a==null?0:r==null?-1:a==null?1:r-a}var oD=E([jn],e=>e?.map(t=>t.value).sort(aD));function Ty(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function nD(e,t,r){return!r||typeof t!="number"||st(t)?[]:r.length?vr(r.flatMap(a=>{var o=Se(e,a.dataKey),n,i;if(Array.isArray(o)?[n,i]=o:n=i=o,!(!te(n)||!te(i)))return[t-n,t+i]})):[]}var De=e=>{var t=ke(e),r=Mr(e);return Bn(e,t,r)},jr=E([De],e=>e?.dataKey),iD=E([My,fn,De],Vu),ld=(e,t,r,a)=>{var o={},n=t.reduce((i,u)=>{if(u.stackId==null)return i;var l=i[u.stackId];return l==null&&(l=[]),l.push(u),i[u.stackId]=l,i},o);return Object.fromEntries(Object.entries(n).map(i=>{var[u,l]=i,s=a?[...l].reverse():l,f=s.map(Wu);return[u,{stackedData:ig(e,f,r),graphicalItems:s}]}))},uD=E([iD,My,lo,Nu],ld),sd=(e,t,r,a)=>{var{dataStartIndex:o,dataEndIndex:n}=t;if(a==null&&r!=="zAxis"){var i=ug(e,o,n);if(!(i!=null&&i[0]===0&&i[1]===0))return i}},lD=E([it],e=>e.allowDataOverflow),Dl=e=>{var t;if(e==null||!("domain"in e))return Xc;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=vr(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Xc},Ry=E([it],Dl),_y=E([Ry,lD],Mu),sD=E([uD,zt,Ne,_y],sd,{memoizeOptions:{resultEqualityCheck:fo}}),Ml=e=>e.errorBars,fD=(e,t,r)=>e.flatMap(a=>t[a.id]).filter(Boolean).filter(a=>Ty(r,a)),Nn=function(){for(var t=arguments.length,r=new Array(t),a=0;a{var n,i;if(r.length>0&&e.forEach(u=>{r.forEach(l=>{var s,f,c=(s=a[l.id])===null||s===void 0?void 0:s.filter(v=>Ty(o,v)),d=Se(u,(f=t.dataKey)!==null&&f!==void 0?f:l.dataKey),p=nD(u,d,c);if(p.length>=2){var h=Math.min(...p),m=Math.max(...p);(n==null||hi)&&(i=m)}var g=Dy(d);g!=null&&(n=n==null?g[0]:Math.min(n,g[0]),i=i==null?g[1]:Math.max(i,g[1]))})}),t?.dataKey!=null&&e.forEach(u=>{var l=Dy(Se(u,t.dataKey));l!=null&&(n=n==null?l[0]:Math.min(n,l[0]),i=i==null?l[1]:Math.max(i,l[1]))}),te(n)&&te(i))return[n,i]},cD=E([id,it,tD,Ml,Ne],fd,{memoizeOptions:{resultEqualityCheck:fo}});function dD(e){var{value:t}=e;if(rt(t)||t instanceof Date)return t}var pD=(e,t,r)=>{var a=e.map(dD).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&sf(a))?Du(0,e.length):t.allowDuplicatedCategory?a:Array.from(new Set(a))},cd=e=>e.referenceElements.dots,ya=(e,t,r)=>e.filter(a=>a.ifOverflow==="extendDomain").filter(a=>t==="xAxis"?a.xAxisId===r:a.yAxisId===r),mD=E([cd,Ne,dn],ya),dd=e=>e.referenceElements.areas,hD=E([dd,Ne,dn],ya),pd=e=>e.referenceElements.lines,gD=E([pd,Ne,dn],ya),md=(e,t)=>{if(e!=null){var r=vr(e.map(a=>t==="xAxis"?a.x:a.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},vD=E(mD,Ne,md),hd=(e,t)=>{if(e!=null){var r=vr(e.flatMap(a=>[t==="xAxis"?a.x1:a.y1,t==="xAxis"?a.x2:a.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},xD=E([hD,Ne],hd);function yD(e){var t;if(e.x!=null)return vr([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(a=>a.x);return r==null||r.length===0?[]:vr(r)}function bD(e){var t;if(e.y!=null)return vr([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(a=>a.y);return r==null||r.length===0?[]:vr(r)}var gd=(e,t)=>{if(e!=null){var r=e.flatMap(a=>t==="xAxis"?yD(a):bD(a));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},wD=E([gD,Ne],gd),ID=E(vD,wD,xD,(e,t,r)=>Nn(e,r,t)),vd=(e,t,r,a,o,n,i,u)=>{if(r!=null)return r;var l=i==="vertical"&&u==="xAxis"||i==="horizontal"&&u==="yAxis",s=l?Nn(a,n,o):Nn(n,o);return Kv(t,s,e.allowDataOverflow)},CD=E([it,Ry,_y,sD,cD,ID,ce,Ne],vd,{memoizeOptions:{resultEqualityCheck:fo}}),SD=[0,1],xd=(e,t,r,a,o,n,i)=>{if(!((e==null||r==null||r.length===0)&&i===void 0)){var{dataKey:u,type:l}=e,s=xt(t,n);if(s&&u==null){var f;return Du(0,(f=r?.length)!==null&&f!==void 0?f:0)}return l==="category"?pD(a,e,s):o==="expand"?SD:i}},yd=E([it,ce,id,jn,lo,Ne,CD],xd),ko=E([it,Qc,so],Ol),bd=(e,t,r)=>{var{niceTicks:a}=t;if(a!=="none"){var o=Dl(t),n=Array.isArray(o)&&(o[0]==="auto"||o[1]==="auto");if((a==="snap125"||a==="adaptive")&&t!=null&&t.tickCount&&yt(e)){if(n)return Ru(e,t.tickCount,t.allowDecimals,a);if(t.type==="number")return _u(e,t.tickCount,t.allowDecimals,a)}if(a==="auto"&&r==="linear"&&t!=null&&t.tickCount){if(n&&yt(e))return Ru(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&yt(e))return _u(e,t.tickCount,t.allowDecimals,"adaptive")}}},wd=E([yd,Bn,ko],bd),Id=(e,t,r,a)=>{if(a!=="angleAxis"&&e?.type==="number"&&yt(t)&&Array.isArray(r)&&r.length>0){var o,n,i=t[0],u=(o=r[0])!==null&&o!==void 0?o:0,l=t[1],s=(n=r[r.length-1])!==null&&n!==void 0?n:0;return[Math.min(i,u),Math.max(l,s)]}return t},LD=E([it,yd,wd,Ne],Id),PD=E(jn,it,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,a=Array.from(vr(e.map(c=>c.value))).sort((c,d)=>c-d),o=a[0],n=a[a.length-1];if(o==null||n==null)return 1/0;var i=n-o;if(i===0)return 1/0;for(var u=0;uo,(e,t,r,a,o)=>{if(!te(e))return 0;var n=t==="vertical"?a.height:a.width;if(o==="gap")return e*n/2;if(o==="no-gap"){var i=Ot(r,e*n),u=e*n/2;return u-i-(u-i)/n*i}return 0}),AD=(e,t,r)=>{var a=tr(e,t);return a==null||typeof a.padding!="string"?0:Ny(e,"xAxis",t,r,a.padding)},OD=(e,t,r)=>{var a=rr(e,t);return a==null||typeof a.padding!="string"?0:Ny(e,"yAxis",t,r,a.padding)},kD=E(tr,AD,(e,t)=>{var r,a;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((r=o.left)!==null&&r!==void 0?r:0)+t,right:((a=o.right)!==null&&a!==void 0?a:0)+t}}),ED=E(rr,OD,(e,t)=>{var r,a;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((r=o.top)!==null&&r!==void 0?r:0)+t,bottom:((a=o.bottom)!==null&&a!==void 0?a:0)+t}}),DD=E([xe,kD,ea,to,(e,t,r)=>r],(e,t,r,a,o)=>{var{padding:n}=a;return o?[n.left,r.width-n.right]:[e.left+t.left,e.left+e.width-t.right]}),MD=E([xe,ce,ED,ea,to,(e,t,r)=>r],(e,t,r,a,o,n)=>{var{padding:i}=o;return n?[a.height-i.bottom,i.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Eo=(e,t,r,a)=>{var o;switch(t){case"xAxis":return DD(e,r,a);case"yAxis":return MD(e,r,a);case"zAxis":return(o=Jc(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return pc(e);case"radiusAxis":return mc(e,r);default:return}},By=E([it,Eo],na),TD=E([ko,LD],nx),Cd=E([it,ko,TD,By],_n),Sd=(e,t,r,a)=>{if(!(r==null||r.dataKey==null)){var{type:o,scale:n}=r,i=xt(e,a);if(i&&(o==="number"||n!=="auto"))return t.map(u=>u.value)}},Ld=E([ce,jn,Bn,Ne],Sd),Tl=E([Cd],mn),X5=E([Cd],ky),Y5=E([Cd,oD],kl),Z5=E([Fn,Ml,Ne],fD);function Fy(e,t){return e.idt.id?1:0}var Rl=(e,t)=>t,_l=(e,t,r)=>r,RD=E(Qa,Rl,_l,(e,t,r)=>e.filter(a=>a.orientation===t).filter(a=>a.mirror===r).sort(Fy)),_D=E(eo,Rl,_l,(e,t,r)=>e.filter(a=>a.orientation===t).filter(a=>a.mirror===r).sort(Fy)),jy=(e,t)=>({width:e.width,height:t.height}),ND=(e,t)=>{var r=typeof t.width=="number"?t.width:Qr;return{width:r,height:e.height}},zy=E(xe,tr,jy),BD=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},FD=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},jD=E(Ze,xe,RD,Rl,_l,(e,t,r,a,o)=>{var n={},i;return r.forEach(u=>{var l=jy(t,u);i==null&&(i=BD(t,a,e));var s=a==="top"&&!o||a==="bottom"&&o;n[u.id]=i-Number(s)*l.height,i+=(s?-1:1)*l.height}),n}),zD=E(Ye,xe,_D,Rl,_l,(e,t,r,a,o)=>{var n={},i;return r.forEach(u=>{var l=ND(t,u);i==null&&(i=FD(t,a,e));var s=a==="left"&&!o||a==="right"&&o;n[u.id]=i-Number(s)*l.width,i+=(s?-1:1)*l.width}),n}),UD=(e,t)=>{var r=tr(e,t);if(r!=null)return jD(e,r.orientation,r.mirror)},Uy=E([xe,tr,UD,(e,t)=>t],(e,t,r,a)=>{if(t!=null){var o=r?.[a];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),qD=(e,t)=>{var r=rr(e,t);if(r!=null)return zD(e,r.orientation,r.mirror)},J5=E([xe,rr,qD,(e,t)=>t],(e,t,r,a)=>{if(t!=null){var o=r?.[a];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),Q5=E(xe,rr,(e,t)=>{var r=typeof t.width=="number"?t.width:Qr;return{width:r,height:e.height}});var Pd=(e,t,r,a)=>{if(r!=null){var{allowDuplicatedCategory:o,type:n,dataKey:i}=r,u=xt(e,a),l=t.map(s=>s.value);if(i&&u&&n==="category"&&o&&sf(l))return l}},Ad=E([ce,jn,it,Ne],Pd),Od=E([ce,QE,ko,Tl,Ad,Ld,Eo,wd,Ne],(e,t,r,a,o,n,i,u,l)=>{if(t!=null){var s=xt(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:n,duplicateDomain:o,isCategorical:s,niceTicks:u,range:i,realScaleType:r,scale:a}}}),HD=(e,t,r,a,o,n,i,u,l)=>{if(!(t==null||a==null)){var s=xt(e,l),{type:f,ticks:c,tickCount:d}=t,p=r==="scaleBand"&&typeof a.bandwidth=="function"?a.bandwidth()/2:2,h=f==="category"&&a.bandwidth?a.bandwidth()/p:0;h=l==="angleAxis"&&n!=null&&n.length>=2?Re(n[0]-n[1])*2*h:h;var m=c||o;return m?m.map((g,v)=>{var S=i?i.indexOf(g):g,I=a.map(S);return te(I)?{index:v,coordinate:I+h,value:g,offset:h}:null}).filter(Ve):s&&u?u.map((g,v)=>{var S=a.map(g);return te(S)?{coordinate:S+h,value:g,index:v,offset:h}:null}).filter(Ve):a.ticks?a.ticks(d).map((g,v)=>{var S=a.map(g);return te(S)?{coordinate:S+h,value:g,index:v,offset:h}:null}).filter(Ve):a.domain().map((g,v)=>{var S=a.map(g);return te(S)?{coordinate:S+h,value:i?i[g]:g,index:v,offset:h}:null}).filter(Ve)}},qy=E([ce,Bn,ko,Tl,wd,Eo,Ad,Ld,Ne],HD),WD=(e,t,r,a,o,n,i)=>{if(!(t==null||r==null||a==null||a[0]===a[1])){var u=xt(e,i),{tickCount:l}=t,s=0;return s=i==="angleAxis"&&a?.length>=2?Re(a[0]-a[1])*2*s:s,u&&n?n.map((f,c)=>{var d=r.map(f);return te(d)?{coordinate:d+s,value:f,index:c,offset:s}:null}).filter(Ve):r.ticks?r.ticks(l).map((f,c)=>{var d=r.map(f);return te(d)?{coordinate:d+s,value:f,index:c,offset:s}:null}).filter(Ve):r.domain().map((f,c)=>{var d=r.map(f);return te(d)?{coordinate:d+s,value:o?o[f]:f,index:c,offset:s}:null}).filter(Ve)}},kd=E([ce,Bn,Tl,Eo,Ad,Ld,Ne],WD),Ed=E(it,Tl,(e,t)=>{if(!(e==null||t==null))return El(El({},e),{},{scale:t})}),VD=E([it,ko,yd,By],_n),GD=E([VD],mn),eY=E((e,t,r)=>Jc(e,r),GD,(e,t)=>{if(!(e==null||t==null))return El(El({},e),{},{scale:t})}),Hy=E([ce,Qa,eo],(e,t,r)=>{switch(e){case"horizontal":return t.some(a=>a.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(a=>a.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),KD=(e,t,r)=>{var a;return(a=e.renderedTicks[t])===null||a===void 0?void 0:a[r]},tY=E([KD],e=>{if(!(!e||e.length===0))return t=>{var r,a=1/0,o=e[0];for(var n of e){var i=Math.abs(n.coordinate-t);ie.options.defaultTooltipEventType,Md=e=>e.options.validateTooltipEventTypes;function Td(e,t,r){if(e==null)return t;var a=e?"axis":"item";return r==null?t:r.includes(a)?a:t}function zn(e,t){var r=Dd(e),a=Md(e);return Td(t,r,a)}function Wy(e){return G(t=>zn(t,e))}var Nl=(e,t)=>{var r,a=Number(t);if(!(st(a)||t==null))return a>=0?e==null||(r=e[a])===null||r===void 0?void 0:r.value:void 0};var Vy=e=>e.tooltip.settings;var xr={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},$D={itemInteraction:{click:xr,hover:xr},axisInteraction:{click:xr,hover:xr},keyboardInteraction:xr,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},Gy=ue({name:"tooltip",initialState:$D,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:fe()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ke(e).tooltipItemPayloads.indexOf(r);o>-1&&(e.tooltipItemPayloads[o]=a)},prepare:fe()},removeTooltipEntrySettings:{reducer(e,t){var r=Ke(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:fe()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Ky,replaceTooltipEntrySettings:$y,removeTooltipEntrySettings:Xy,setTooltipSettingsState:Yy,setActiveMouseOverItemIndex:Zy,mouseLeaveItem:sY,mouseLeaveChart:Bl,setActiveClickItemIndex:fY,setMouseOverAxisIndex:Fl,setMouseClickAxisIndex:Jy,setSyncInteraction:jl,setKeyboardInteraction:Un}=Gy.actions,Qy=Gy.reducer;function eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function zl(e){for(var t=1;t{if(t==null)return xr;var o=JD(e,t,r);if(o==null)return xr;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var n=e.settings.active===!0;if(QD(o)){if(n)return zl(zl({},o),{},{active:!0})}else if(a!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:a,graphicalItemId:void 0};return zl(zl({},xr),{},{coordinate:o.coordinate})};function eM(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function tM(e,t){var r=eM(e),a=t[0],o=t[1];if(r===void 0)return!1;var n=Math.min(a,o),i=Math.max(a,o);return r>=n&&r<=i}function rM(e,t,r){if(r==null||t==null)return!0;var a=Se(e,t);return a==null||!yt(r)?!0:tM(a,r)}var Do=(e,t,r,a)=>{var o=e?.index;if(o==null)return null;var n=Number(o);if(!te(n))return o;var i=0,u=1/0;t.length>0&&(u=t.length-1);var l=Math.max(i,Math.min(n,u)),s=t[l];return s==null||rM(s,r,a)?String(l):null};var ql=(e,t,r,a,o,n,i)=>{if(n!=null){var u=i[0],l=u?.getPosition(n);if(l!=null)return l;var s=o?.[Number(n)];if(s)switch(r){case"horizontal":return{x:s.coordinate,y:(a.top+t)/2};default:return{x:(a.left+e)/2,y:s.coordinate}}}};var Hl=(e,t,r,a)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(r==="hover"?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&o==null)return e.tooltipItemPayloads;if(o==null&&a!=null){var n=e.tooltipItemPayloads[0];return n!=null?[n]:[]}return e.tooltipItemPayloads.filter(i=>{var u;return((u=i.settings)===null||u===void 0?void 0:u.graphicalItemId)===o})};var Wl=e=>e.options.tooltipPayloadSearcher;var yr=e=>e.tooltip;function tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function rb(e){for(var t=1;te(t)}function ab(e){if(typeof e=="string")return e}function sM(e){if(!(e==null||typeof e!="object")){var t="name"in e?iM(e.name):void 0,r="unit"in e?uM(e.unit):void 0,a="dataKey"in e?lM(e.dataKey):void 0,o="payload"in e?e.payload:void 0,n="color"in e?ab(e.color):void 0,i="fill"in e?ab(e.fill):void 0;return{name:t,unit:r,dataKey:a,payload:o,color:n,fill:i}}}function fM(e,t){return e??t}var Vl=(e,t,r,a,o,n,i)=>{if(!(t==null||n==null)){var{chartData:u,computedData:l,dataStartIndex:s,dataEndIndex:f}=r,c=[];return e.reduce((d,p)=>{var h,{dataDefinedOnItem:m,settings:g}=p,v=fM(m,u),S=Array.isArray(v)?fu(v,s,f):v,I=(h=g?.dataKey)!==null&&h!==void 0?h:a,A=g?.nameKey,P;if(a&&Array.isArray(S)&&!Array.isArray(S[0])&&i==="axis"?P=Ci(S,a,o):P=n(S,t,l,A),Array.isArray(P))P.forEach(M=>{var O,j,B=sM(M),$=B?.name,F=B?.dataKey,Y=B?.payload,Z=rb(rb({},g),{},{name:$,unit:B?.unit,color:(O=B?.color)!==null&&O!==void 0?O:g?.color,fill:(j=B?.fill)!==null&&j!==void 0?j:g?.fill});d.push(Kf({tooltipEntrySettings:Z,dataKey:F,payload:Y,value:Se(Y,F),name:$==null?void 0:String($)}))});else{var k;d.push(Kf({tooltipEntrySettings:g,dataKey:I,payload:P,value:Se(P,I),name:(k=Se(P,A))!==null&&k!==void 0?k:g?.name}))}return d},c)}};var Rd=E([De,Qc,so],Ol),cM=E([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),dM=E([ke,Mr],ed),ba=E([cM,De,dM],rd,{memoizeOptions:{resultEqualityCheck:co}}),pM=E([ba],e=>e.filter(pn)),mM=E([ba],od,{memoizeOptions:{resultEqualityCheck:co}}),zr=E([mM,zt],nd),hM=E([pM,zt,De],Vu),_d=E([zr,De,ba],ud),ob=E([De],Dl),gM=E([De],e=>e.allowDataOverflow),nb=E([ob,gM],Mu),vM=E([ba],e=>e.filter(pn)),xM=E([hM,vM,lo,Nu],ld),yM=E([xM,zt,ke,nb],sd),bM=E([ba],ad),wM=E([zr,De,bM,Ml,ke],fd,{memoizeOptions:{resultEqualityCheck:fo}}),IM=E([cd,ke,Mr],ya),CM=E([IM,ke],md),SM=E([dd,ke,Mr],ya),LM=E([SM,ke],hd),PM=E([pd,ke,Mr],ya),AM=E([PM,ke],gd),OM=E([CM,AM,LM],Nn),kM=E([De,ob,nb,yM,wM,OM,ce,ke],vd),wa=E([De,ce,zr,_d,lo,ke,kM],xd),EM=E([wa,De,Rd],bd),DM=E([De,wa,EM,ke],Id),ib=e=>{var t=ke(e),r=Mr(e),a=!1;return Eo(e,t,r,a)},Nd=E([De,ib],na),MM=E([De,Rd,DM,Nd],_n),Bd=E([MM],mn),TM=E([ce,_d,De,ke],Pd),RM=E([ce,_d,De,ke],Sd),_M=(e,t,r,a,o,n,i,u)=>{if(t){var{type:l}=t,s=xt(e,u);if(a){var f=r==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,c=l==="category"&&a.bandwidth?a.bandwidth()/f:0;return c=u==="angleAxis"&&o!=null&&o?.length>=2?Re(o[0]-o[1])*2*c:c,s&&i?i.map((d,p)=>{var h=a.map(d);return te(h)?{coordinate:h+c,value:d,index:p,offset:c}:null}).filter(Ve):a.domain().map((d,p)=>{var h=a.map(d);return te(h)?{coordinate:h+c,value:n?n[d]:d,index:p,offset:c}:null}).filter(Ve)}}},dt=E([ce,De,Rd,Bd,ib,TM,RM,ke],_M),Fd=E([Dd,Md,Vy],(e,t,r)=>Td(r.shared,e,t)),ub=e=>e.tooltip.settings.trigger,jd=e=>e.tooltip.settings.defaultIndex,qn=E([yr,Fd,ub,jd],Ul),Ia=E([qn,zr,jr,wa],Do),Gl=E([dt,Ia],Nl),lb=E([qn],e=>{if(e)return e.dataKey}),sb=E([qn],e=>{if(e)return e.graphicalItemId}),fb=E([yr,Fd,ub,jd],Hl),NM=E([Ye,Ze,ce,xe,dt,jd,fb],ql),zd=E([qn,NM],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Ud=E([qn],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),BM=E([fb,Ia,zt,jr,Gl,Wl,Fd],Vl),cb=E([BM],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function db(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function pb(e){for(var t=1;tG(De),mb=()=>{var e=UM(),t=G(dt),r=G(Bd);return!e||!r?Ja(void 0,t):Ja(pb(pb({},e),{},{scale:r}),t)};function hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Mo(e){for(var t=1;t{var o=t.find(n=>n&&n.index===r);if(o){if(e==="horizontal")return{x:o.coordinate,y:a.relativeY};if(e==="vertical")return{x:a.relativeX,y:o.coordinate}}return{x:0,y:0}},vb=(e,t,r,a)=>{var o=t.find(s=>s&&s.index===r);if(o){if(e==="centric"){var n=o.coordinate,{radius:i}=a;return Mo(Mo(Mo({},a),Pe(a.cx,a.cy,i,n)),{},{angle:n,radius:i})}var u=o.coordinate,{angle:l}=a;return Mo(Mo(Mo({},a),Pe(a.cx,a.cy,u,l)),{},{angle:l,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function xb(e,t){var{relativeX:r,relativeY:a}=e;return r>=t.left&&r<=t.left+t.width&&a>=t.top&&a<=t.top+t.height}var qd=(e,t,r,a,o)=>{var n,i=(n=t?.length)!==null&&n!==void 0?n:0;if(i<=1||e==null)return 0;if(a==="angleAxis"&&o!=null&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var u=0;u0?(l=r[u-1])===null||l===void 0?void 0:l.coordinate:(s=r[i-1])===null||s===void 0?void 0:s.coordinate,h=(f=r[u])===null||f===void 0?void 0:f.coordinate,m=u>=i-1?(c=r[0])===null||c===void 0?void 0:c.coordinate:(d=r[u+1])===null||d===void 0?void 0:d.coordinate,g=void 0;if(!(p==null||h==null||m==null))if(Re(h-p)!==Re(m-h)){var v=[];if(Re(m-h)===Re(o[1]-o[0])){g=m;var S=h+o[1]-o[0];v[0]=Math.min(S,(S+p)/2),v[1]=Math.max(S,(S+p)/2)}else{g=p;var I=m+o[1]-o[0];v[0]=Math.min(h,(I+h)/2),v[1]=Math.max(h,(I+h)/2)}var A=[Math.min(h,(g+h)/2),Math.max(h,(g+h)/2)];if(e>A[0]&&e<=A[1]||e>=v[0]&&e<=v[1]){var P;return(P=r[u])===null||P===void 0?void 0:P.index}}else{var k=Math.min(p,m),M=Math.max(p,m);if(e>(k+h)/2&&e<=(M+h)/2){var O;return(O=r[u])===null||O===void 0?void 0:O.index}}}else if(t)for(var j=0;j(B.coordinate+F.coordinate)/2||j>0&&j(B.coordinate+F.coordinate)/2&&e<=(B.coordinate+$.coordinate)/2)return B.index}}return-1};var yb=()=>G(so),Hd=(e,t)=>t,bb=(e,t,r)=>r,Wd=(e,t,r,a)=>a,wb=E(dt,e=>fr(e,t=>t.coordinate)),Vd=E([yr,Hd,bb,Wd],Ul),Gd=E([Vd,zr,jr,wa],Do),Ib=(e,t,r)=>{if(t!=null){var a=yr(e);return t==="axis"?r==="hover"?a.axisInteraction.hover.dataKey:a.axisInteraction.click.dataKey:r==="hover"?a.itemInteraction.hover.dataKey:a.itemInteraction.click.dataKey}},Cb=E([yr,Hd,bb,Wd],Hl),Hn=E([Ye,Ze,ce,xe,dt,Wd,Cb],ql),Sb=E([Vd,Hn],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),Kd=E([dt,Gd],Nl),Lb=E([Cb,Gd,zt,jr,Kd,Wl,Hd],Vl),Pb=E([Vd,Gd],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),VM=(e,t,r,a,o,n,i)=>{if(!(!e||!r||!a||!o)&&xb(e,i)){var u=lg(e,t),l=qd(u,n,o,r,a),s=gb(t,o,l,e);return{activeIndex:String(l),activeCoordinate:s}}},GM=(e,t,r,a,o,n,i)=>{if(!(!e||!a||!o||!n||!r)){var u=Rv(e,r);if(u){var l=sg(u,t),s=qd(l,i,n,a,o),f=vb(t,n,s,u);return{activeIndex:String(s),activeCoordinate:f}}}},Ab=(e,t,r,a,o,n,i,u)=>{if(!(!e||!t||!a||!o||!n))return t==="horizontal"||t==="vertical"?VM(e,t,a,o,n,i,u):GM(e,t,r,a,o,n,i)};import{useLayoutEffect as eT}from"react";import{createPortal as tT}from"react-dom";var Ob=E(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var a=e[t];if(a!=null)return r?a.panoramaElement:a.element}}),kb=E(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(a=>parseInt(a,10)).concat(Object.values(de)),r=Array.from(new Set(t));return r.sort((a,o)=>a-o)},{memoizeOptions:{resultEqualityCheck:ox}});function Eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Db(e){for(var t=1;tDb(Db({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),YM)},JM=new Set(Object.values(de));function QM(e){return JM.has(e)}var Mb=ue({name:"zIndex",initialState:ZM,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:fe()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!QM(r)&&delete e.zIndexMap[r])},prepare:fe()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:a,isPanorama:o}=t.payload;e.zIndexMap[r]?o?e.zIndexMap[r].panoramaElement=a:e.zIndexMap[r].element=a:e.zIndexMap[r]={consumers:0,element:o?void 0:a,panoramaElement:o?a:void 0}},prepare:fe()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:fe()}}}),{registerZIndexPortal:Tb,unregisterZIndexPortal:Rb,registerZIndexPortalElement:_b,unregisterZIndexPortalElement:Nb}=Mb.actions,Bb=Mb.reducer;function $e(e){var{zIndex:t,children:r}=e,a=Ag(),o=a&&t!==void 0&&t!==0,n=be(),i=ne();eT(()=>o?(i(Tb({zIndex:t})),()=>{i(Rb({zIndex:t}))}):ht,[i,t,o]);var u=G(l=>Ob(l,t,n));return o?u?tT(r,u):null:r}function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;tcT(Xd);import{useEffect as Zl}from"react";var Hb=As(qb(),1);var Wb=Hb.default;var To=new Wb;var Yl="recharts.syncEvent.tooltip",Zd="recharts.syncEvent.brush";var Vb=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!st(r))return e[r]}},mT={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},Gb=ue({name:"options",initialState:mT,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Kb=Gb.reducer,{createEventEmitter:$b}=Gb.actions;function Xb(e){return e.tooltip.syncInteraction}var hT={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},Yb=ue({name:"chartData",initialState:hT,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:a}=t.payload;r!=null&&(e.dataStartIndex=r),a!=null&&(e.dataEndIndex=a)}}}),{setChartData:Jd,setDataStartEndIndexes:Zb,setComputedData:gT}=Yb.actions,Jb=Yb.reducer;var vT=["x","y"];function Qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Ro(e){for(var t=1;tl.rootProps.className);Zl(()=>{if(e==null)return ht;var l=(s,f,c)=>{if(t!==c&&e===s){if(a==="index"){var d;if(i&&f!==null&&f!==void 0&&(d=f.payload)!==null&&d!==void 0&&d.coordinate&&f.payload.sourceViewBox){var p=f.payload.coordinate,{x:h,y:m}=p,g=wT(p,vT),{x:v,y:S,width:I,height:A}=f.payload.sourceViewBox,P=Ro(Ro({},g),{},{x:i.x+(I?(h-v)/I:0)*i.width,y:i.y+(A?(m-S)/A:0)*i.height});r(Ro(Ro({},f),{},{payload:Ro(Ro({},f.payload),{},{coordinate:P})}))}else r(f);return}if(o!=null){var k;if(typeof a=="function"){var M={activeTooltipIndex:f.payload.index==null?void 0:Number(f.payload.index),isTooltipActive:f.payload.active,activeIndex:f.payload.index==null?void 0:Number(f.payload.index),activeLabel:f.payload.label,activeDataKey:f.payload.dataKey,activeCoordinate:f.payload.coordinate},O=a(o,M);k=o[O]}else a==="value"&&(k=o.find(x=>String(x.value)===f.payload.label));var{coordinate:j}=f.payload;if(k==null||f.payload.active===!1||j==null||i==null){r(jl({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:B,y:$}=j,F=Math.min(B,i.x+i.width),Y=Math.min($,i.y+i.height),Z={x:n==="horizontal"?k.coordinate:F,y:n==="horizontal"?Y:k.coordinate},Q=jl({active:f.payload.active,coordinate:Z,dataKey:f.payload.dataKey,index:String(k.index),label:f.payload.label,sourceViewBox:f.payload.sourceViewBox,graphicalItemId:f.payload.graphicalItemId});r(Q)}}};return To.on(Yl,l),()=>{To.off(Yl,l)}},[u,r,t,e,a,o,n,i])}function ST(){var e=G(Bu),t=G(Fu),r=ne();Zl(()=>{if(e==null)return ht;var a=(o,n,i)=>{t!==i&&e===o&&r(Zb(n))};return To.on(Zd,a),()=>{To.off(Zd,a)}},[r,t,e])}function ew(){var e=ne();Zl(()=>{e($b())},[e]),CT(),ST()}function tw(e,t,r,a,o,n){var i=G(h=>Ib(h,e,t)),u=G(sb),l=G(Fu),s=G(Bu),f=G(cc),c=G(Xb),d=c?.active,p=ra();Zl(()=>{if(!d&&s!=null&&l!=null){var h=jl({active:n,coordinate:r,dataKey:i,index:o,label:typeof a=="number"?String(a):a,sourceViewBox:p,graphicalItemId:u});To.emit(Yl,s,h,l)}},[d,r,i,u,o,a,l,s,f,n,p])}function rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function aw(e){for(var t=1;t{M(Yy({shared:S,trigger:I,axisId:k,active:o,defaultIndex:O}))},[M,S,I,k,o,O]);var j=ra(),B=vu(),$=Wy(S),{activeIndex:F,isActive:Y}=(t=G(ae=>Pb(ae,$,I,O)))!==null&&t!==void 0?t:{},Z=G(ae=>Lb(ae,$,I,O)),Q=G(ae=>Kd(ae,$,I,O)),x=G(ae=>Sb(ae,$,I,O)),b=Z,L=zb(),w=(r=o??Y)!==null&&r!==void 0?r:!1,[y,C]=ih([b,w]),D=$==="axis"?Q:void 0;tw($,I,x,D,F,w);var T=P??L;if(T==null||j==null||$==null)return null;var N=b??ow;w||(N=ow),s&&N.length&&(N=Xm(N.filter(ae=>ae.value!=null&&(ae.hide!==!0||a.includeHidden)),d,ET));var U=N.length>0,z=aw(aw({},a),{},{payload:N,label:D,active:w,activeIndex:F,coordinate:x,accessibilityLayer:B}),W=Rt.createElement(qg,{allowEscapeViewBox:n,animationDuration:i,animationEasing:u,isAnimationActive:f,active:w,coordinate:x,hasPayload:U,offset:c,position:p,reverseDirection:h,useTranslate3d:m,viewBox:j,wrapperStyle:g,lastBoundingBox:y,innerRef:C,hasPortalFromProps:!!P},DT(l,z));return Rt.createElement(Rt.Fragment,null,kT(W,T),w&&Rt.createElement(jb,{cursor:v,tooltipEventType:$,coordinate:x,payload:N,index:F}))}import*as tp from"react";import{useMemo as oR,forwardRef as nR}from"react";function TT(e,t,r){return(t=RT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RT(e){var t=_T(e,"string");return typeof t=="symbol"?t:t+""}function _T(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jl=class{constructor(t){TT(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var a=this.cache.keys().next().value;a!=null&&this.cache.delete(a)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}};function nw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function NT(e){for(var t=1;t{try{var r=document.getElementById(uw);r||(r=document.createElement("span"),r.setAttribute("id",uw),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,UT,t),r.textContent="".concat(e);var a=r.getBoundingClientRect();return{width:a.width,height:a.height}}catch{return{width:0,height:0}}},Ca=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Dt.isSsr)return{width:0,height:0};if(!sw.enableCache)return lw(t,r);var a=qT(t,r),o=iw.get(a);if(o)return o;var n=lw(t,r);return iw.set(a,n),n};var pw;function HT(e,t,r){return(t=WT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WT(e){var t=VT(e,"string");return typeof t=="symbol"?t:t+""}function VT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,cw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,GT=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,KT=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,$T={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},XT=["cm","mm","pt","pc","in","Q","px"];function YT(e){return XT.includes(e)}var _o="NaN";function ZT(e,t){return e*$T[t]}var Ur=class e{static parse(t){var r,[,a,o]=(r=KT.exec(t))!==null&&r!==void 0?r:[];return a==null?e.NaN:new e(parseFloat(a),o??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,st(t)&&(this.unit=""),r!==""&&!GT.test(r)&&(this.num=NaN,this.unit=""),YT(r)&&(this.num=ZT(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return st(this.num)}};pw=Ur;HT(Ur,"NaN",new pw(NaN,""));function mw(e){if(e==null||e.includes(_o))return _o;for(var t=e;t.includes("*")||t.includes("/");){var r,[,a,o,n]=(r=fw.exec(t))!==null&&r!==void 0?r:[],i=Ur.parse(a??""),u=Ur.parse(n??""),l=o==="*"?i.multiply(u):i.divide(u);if(l.isNaN())return _o;t=t.replace(fw,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var s,[,f,c,d]=(s=cw.exec(t))!==null&&s!==void 0?s:[],p=Ur.parse(f??""),h=Ur.parse(d??""),m=c==="+"?p.add(h):p.subtract(h);if(m.isNaN())return _o;t=t.replace(cw,m.toString())}return t}var dw=/\(([^()]*)\)/;function JT(e){for(var t=e,r;(r=dw.exec(t))!=null;){var[,a]=r;t=t.replace(dw,mw(a))}return t}function QT(e){var t=e.replace(/\s+/g,"");return t=JT(t),t=mw(t),t}function eR(e){try{return QT(e)}catch{return _o}}function Ql(e){var t=eR(e.slice(5,-1));return t===_o?"":t}var tR=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],rR=["dx","dy","angle","className","breakAll"];function ep(){return ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:t,breakAll:r,style:a}=e;try{var o=[];ge(t)||(r?o=t.toString().split(""):o=t.toString().split(xw));var n=o.map(u=>({word:u,width:Ca(u,a).width})),i=r?0:Ca("\xA0",a).width;return{wordsWithComputedWidth:n,spaceWidth:i}}catch{return null}};function es(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function bw(e){return ge(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var ww=(e,t,r,a)=>e.reduce((o,n)=>{var{word:i,width:u}=n,l=o[o.length-1];if(l&&u!=null&&(t==null||a||l.width+u+re.reduce((t,r)=>t.width>r.width?t:r),iR="\u2026",gw=(e,t,r,a,o,n,i,u)=>{var l=e.slice(0,t),s=yw({breakAll:r,style:a,children:l+iR});if(!s)return[!1,[]];var f=ww(s.wordsWithComputedWidth,n,i,u),c=f.length>o||Iw(f).width>Number(n);return[c,f]},uR=(e,t,r,a,o)=>{var{maxLines:n,children:i,style:u,breakAll:l}=e,s=H(n),f=String(i),c=ww(t,a,r,o);if(!s||o)return c;var d=c.length>n||Iw(c).width>Number(a);if(!d)return c;for(var p=0,h=f.length-1,m=0,g;p<=h&&m<=f.length-1;){var v=Math.floor((p+h)/2),S=v-1,[I,A]=gw(f,S,l,u,n,a,r,o),[P]=gw(f,v,l,u,n,a,r,o);if(!I&&!P&&(p=v+1),I&&P&&(h=v-1),!I&&P){g=A;break}m++}return g||c},vw=e=>{var t=ge(e)?[]:e.toString().split(xw);return[{words:t,width:void 0}]},lR=e=>{var{width:t,scaleToFit:r,children:a,style:o,breakAll:n,maxLines:i}=e;if((t||r)&&!Dt.isSsr){var u,l,s=yw({breakAll:n,children:a,style:o});if(s){var{wordsWithComputedWidth:f,spaceWidth:c}=s;u=f,l=c}else return vw(a);return uR({breakAll:n,children:a,maxLines:i,style:o},u,l,t,!!r)}return vw(a)},Cw="#808080",sR={angle:0,breakAll:!1,capHeight:"0.71em",fill:Cw,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Vn=nR((e,t)=>{var r=ve(e,sR),{x:a,y:o,lineHeight:n,capHeight:i,fill:u,scaleToFit:l,textAnchor:s,verticalAnchor:f}=r,c=hw(r,tR),d=oR(()=>lR({breakAll:c.breakAll,children:c.children,maxLines:c.maxLines,scaleToFit:l,style:c.style,width:c.width}),[c.breakAll,c.children,c.maxLines,l,c.style,c.width]),{dx:p,dy:h,angle:m,className:g,breakAll:v}=c,S=hw(c,rR);if(!rt(a)||!rt(o)||d.length===0)return null;var I=Number(a)+(H(p)?p:0),A=Number(o)+(H(h)?h:0);if(!te(I)||!te(A))return null;var P;switch(f){case"start":P=Ql("calc(".concat(i,")"));break;case"middle":P=Ql("calc(".concat((d.length-1)/2," * -").concat(n," + (").concat(i," / 2))"));break;default:P=Ql("calc(".concat(d.length-1," * -").concat(n,")"));break}var k=[],M=d[0];if(l&&M!=null){var O=M.width,{width:j}=c;k.push("scale(".concat(H(j)&&H(O)?j/O:1,")"))}return m&&k.push("rotate(".concat(m,", ").concat(I,", ").concat(A,")")),k.length&&(S.transform=k.join(" ")),tp.createElement("text",ep({},me(S),{ref:t,x:I,y:A,className:J("recharts-text",g),textAnchor:s,fill:u.includes("url")?Cw:u}),d.map((B,$)=>{var F=B.words.join(v?"":" ");return tp.createElement("tspan",{x:I,dy:$===0?P:n,key:"".concat(F,"-").concat($)},F)}))});Vn.displayName="Text";import*as Ct from"react";import{cloneElement as Ow,createContext as kw,createElement as yR,isValidElement as ts,useContext as Ew,useMemo as bR}from"react";function Sw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function ar(e){for(var t=1;t{var{viewBox:t,position:r,offset:a=0,parentViewBox:o,clamp:n}=e,{x:i,y:u,height:l,upperWidth:s,lowerWidth:f}=rn(t),c=i,d=i+(s-f)/2,p=(c+d)/2,h=(s+f)/2,m=c+s/2,g=l>=0?1:-1,v=g*a,S=g>0?"end":"start",I=g>0?"start":"end",A=s>=0?1:-1,P=A*a,k=A>0?"end":"start",M=A>0?"start":"end",O=o;if(r==="top"){var j={x:c+s/2,y:u-v,horizontalAnchor:"middle",verticalAnchor:S};return n&&O&&(j.height=Math.max(u-O.y,0),j.width=s),j}if(r==="bottom"){var B={x:d+f/2,y:u+l+v,horizontalAnchor:"middle",verticalAnchor:I};return n&&O&&(B.height=Math.max(O.y+O.height-(u+l),0),B.width=f),B}if(r==="left"){var $={x:p-P,y:u+l/2,horizontalAnchor:k,verticalAnchor:"middle"};return n&&O&&($.width=Math.max($.x-O.x,0),$.height=l),$}if(r==="right"){var F={x:p+h+P,y:u+l/2,horizontalAnchor:M,verticalAnchor:"middle"};return n&&O&&(F.width=Math.max(O.x+O.width-F.x,0),F.height=l),F}var Y=n&&O?{width:h,height:l}:{};return r==="insideLeft"?ar({x:p+P,y:u+l/2,horizontalAnchor:M,verticalAnchor:"middle"},Y):r==="insideRight"?ar({x:p+h-P,y:u+l/2,horizontalAnchor:k,verticalAnchor:"middle"},Y):r==="insideTop"?ar({x:c+s/2,y:u+v,horizontalAnchor:"middle",verticalAnchor:I},Y):r==="insideBottom"?ar({x:d+f/2,y:u+l-v,horizontalAnchor:"middle",verticalAnchor:S},Y):r==="insideTopLeft"?ar({x:c+P,y:u+v,horizontalAnchor:M,verticalAnchor:I},Y):r==="insideTopRight"?ar({x:c+s-P,y:u+v,horizontalAnchor:k,verticalAnchor:I},Y):r==="insideBottomLeft"?ar({x:d+P,y:u+l-v,horizontalAnchor:M,verticalAnchor:S},Y):r==="insideBottomRight"?ar({x:d+f-P,y:u+l-v,horizontalAnchor:k,verticalAnchor:S},Y):r&&typeof r=="object"&&(H(r.x)||ur(r.x))&&(H(r.y)||ur(r.y))?ar({x:i+Ot(r.x,h),y:u+Ot(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},Y):ar({x:m,y:u+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},Y)};var pR=["labelRef"],mR=["content"];function Pw(e,t){if(e==null)return{};var r,a,o=hR(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var{x:t,y:r,upperWidth:a,lowerWidth:o,width:n,height:i,children:u}=e,l=bR(()=>({x:t,y:r,upperWidth:a,lowerWidth:o,width:n,height:i}),[t,r,a,o,n,i]);return Ct.createElement(Dw.Provider,{value:l},u)},Tw=()=>{var e=Ew(Dw),t=ra();return e||(t?rn(t):void 0)},wR=kw(null);var IR=()=>{var e=Ew(wR),t=G(Hu);return e||t},CR=e=>{var{value:t,formatter:r}=e,a=ge(e.children)?t:e.children;return typeof r=="function"?r(a):a},rp=e=>e!=null&&typeof e=="function",SR=(e,t)=>{var r=Re(t-e),a=Math.min(Math.abs(t-e),360);return r*a},LR=(e,t,r,a,o)=>{var{offset:n,className:i}=e,{cx:u,cy:l,innerRadius:s,outerRadius:f,startAngle:c,endAngle:d,clockWise:p}=o,h=(s+f)/2,m=SR(c,d),g=m>=0?1:-1,v,S;switch(t){case"insideStart":v=c+g*n,S=p;break;case"insideEnd":v=d-g*n,S=!p;break;case"end":v=d+g*n,S=p;break;default:throw new Error("Unsupported position ".concat(t))}S=m<=0?S:!S;var I=Pe(u,l,h,v),A=Pe(u,l,h,v+(S?1:-1)*359),P="M".concat(I.x,",").concat(I.y,` + A`).concat(h,",").concat(h,",0,1,").concat(S?0:1,`, + `).concat(A.x,",").concat(A.y),k=ge(e.id)?lr("recharts-radial-line-"):e.id;return Ct.createElement("text",wr({},a,{dominantBaseline:"central",className:J("recharts-radial-bar-label",i)}),Ct.createElement("defs",null,Ct.createElement("path",{id:k,d:P})),Ct.createElement("textPath",{xlinkHref:"#".concat(k)},r))},PR=(e,t,r)=>{var{cx:a,cy:o,innerRadius:n,outerRadius:i,startAngle:u,endAngle:l}=e,s=(u+l)/2;if(r==="outside"){var{x:f,y:c}=Pe(a,o,i+t,s);return{x:f,y:c,textAnchor:f>=a?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"end"};var d=(n+i)/2,{x:p,y:h}=Pe(a,o,d,s);return{x:p,y:h,textAnchor:"middle",verticalAnchor:"middle"}},rs=e=>e!=null&&"cx"in e&&H(e.cx),AR={angle:0,offset:5,zIndex:de.label,position:"middle",textBreakAll:!1};function OR(e){if(!rs(e))return e;var{cx:t,cy:r,outerRadius:a}=e,o=a*2;return{x:t-a,y:r-a,width:o,upperWidth:o,lowerWidth:o,height:o}}function br(e){var t=ve(e,AR),{viewBox:r,parentViewBox:a,position:o,value:n,children:i,content:u,className:l="",textBreakAll:s,labelRef:f}=t,c=IR(),d=Tw(),p=o==="center"?d:c??d,h,m,g;r==null?h=p:rs(r)?h=r:h=rn(r);var v=OR(h);if(!h||ge(n)&&ge(i)&&!ts(u)&&typeof u!="function")return null;var S=Gn(Gn({},t),{},{viewBox:h});if(ts(u)){var{labelRef:I}=S,A=Pw(S,pR);return Ow(u,A)}if(typeof u=="function"){var{content:P}=S,k=Pw(S,mR);if(m=yR(u,k),ts(m))return m}else m=CR(t);var M=me(t);if(rs(h)){if(o==="insideStart"||o==="insideEnd"||o==="end")return LR(t,o,m,M,h);g=PR(h,t.offset,t.position)}else{if(!v)return null;var O=Lw({viewBox:v,position:o,offset:t.offset,parentViewBox:rs(a)?void 0:a,clamp:!0});g=Gn(Gn({x:O.x,y:O.y,textAnchor:O.horizontalAnchor,verticalAnchor:O.verticalAnchor},O.width!==void 0?{width:O.width}:{}),O.height!==void 0?{height:O.height}:{})}return Ct.createElement($e,{zIndex:t.zIndex},Ct.createElement(Vn,wr({ref:f,className:J("recharts-label",l)},M,g,{textAnchor:es(M.textAnchor)?M.textAnchor:g.textAnchor,breakAll:s}),m))}br.displayName="Label";var kR=(e,t,r)=>{if(!e)return null;var a={viewBox:t,labelRef:r};return e===!0?Ct.createElement(br,wr({key:"label-implicit"},a)):rt(e)?Ct.createElement(br,wr({key:"label-implicit",value:e},a)):ts(e)?e.type===br?Ow(e,Gn({key:"label-implicit"},a)):Ct.createElement(br,wr({key:"label-implicit",content:e},a)):rp(e)?Ct.createElement(br,wr({key:"label-implicit",content:e},a)):e&&typeof e=="object"?Ct.createElement(br,wr({},e,{key:"label-implicit"},a)):null};function Rw(e){var{label:t,labelRef:r}=e,a=Tw();return kR(t,a,r)||null}import*as Ir from"react";import{createContext as Nw,useContext as Bw}from"react";var ER=["valueAccessor"],DR=["dataKey","clockWise","id","textBreakAll","zIndex"];function os(){return os=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(bw(t))return t},Fw=Nw(void 0),jw=Fw.Provider,zw=Nw(void 0),H8=zw.Provider;function RR(){return Bw(Fw)}function _R(){return Bw(zw)}function as(e){var{valueAccessor:t=TR}=e,r=_w(e,ER),{dataKey:a,clockWise:o,id:n,textBreakAll:i,zIndex:u}=r,l=_w(r,DR),s=RR(),f=_R(),c=s||f;return!c||!c.length?null:Ir.createElement($e,{zIndex:u??de.label},Ir.createElement(tt,{className:"recharts-label-list"},c.map((d,p)=>{var h,m=ge(a)?t(d,p):Se(d.payload,a),g=ge(n)?{}:{id:"".concat(n,"-").concat(p)};return Ir.createElement(br,os({key:"label-".concat(p)},me(d),l,g,{fill:(h=r.fill)!==null&&h!==void 0?h:d.fill,parentViewBox:d.parentViewBox,value:m,textBreakAll:i,viewBox:d.viewBox,index:p,zIndex:0}))})))}as.displayName="LabelList";function Uw(e){var{label:t}=e;return t?t===!0?Ir.createElement(as,{key:"labelList-implicit"}):Ir.isValidElement(t)||rp(t)?Ir.createElement(as,{key:"labelList-implicit",content:t}):typeof t=="object"?Ir.createElement(as,os({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}import*as qw from"react";function ap(){return ap=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{cx:t,cy:r,r:a,className:o}=e,n=J("recharts-dot",o);return H(t)&&H(r)&&H(a)?qw.createElement("circle",ap({},Xe(e),Ga(e),{className:n,cx:t,cy:r,r:a})):null};var NR={radiusAxis:{},angleAxis:{}},Hw=ue({name:"polarAxis",initialState:NR,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Z8,removeRadiusAxis:J8,addAngleAxis:Q8,removeAngleAxis:eZ}=Hw.actions,Ww=Hw.reducer;function Vw(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}import{Children as oZ}from"react";var is=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0;import*as or from"react";import{cloneElement as XR,isValidElement as aI}from"react";function op(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let r=e[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${r}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}import*as $n from"react";import{useEffect as zR,useRef as No,useState as UR}from"react";var Gw,Kw,$w,Xw,Yw;function Zw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Jw(e){for(var t=1;t{var n=r-a,i;return i=he(Gw||(Gw=Kn(["M ",",",""])),e,t),i+=he(Kw||(Kw=Kn(["L ",",",""])),e+r,t),i+=he($w||($w=Kn(["L ",",",""])),e+r-n/2,t+o),i+=he(Xw||(Xw=Kn(["L ",",",""])),e+r-n/2-a,t+o),i+=he(Yw||(Yw=Kn(["L ",","," Z"])),e,t),i},qR={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},eI=e=>{var t=ve(e,qR),{x:r,y:a,upperWidth:o,lowerWidth:n,height:i,className:u}=t,{animationEasing:l,animationDuration:s,animationBegin:f,isUpdateAnimationActive:c}=t,d=No(null),[p,h]=UR(-1),m=No(o),g=No(n),v=No(i),S=No(r),I=No(a),A=uo(e,"trapezoid-");if(zR(()=>{if(d.current&&d.current.getTotalLength)try{var Z=d.current.getTotalLength();Z&&h(Z)}catch{}},[]),r!==+r||a!==+a||o!==+o||n!==+n||i!==+i||o===0&&n===0||i===0)return null;var P=J("recharts-trapezoid",u);if(!c)return $n.createElement("g",null,$n.createElement("path",us({},me(t),{className:P,d:Qw(r,a,o,n,i)})));var k=m.current,M=g.current,O=v.current,j=S.current,B=I.current,$="0px ".concat(p===-1?1:p,"px"),F="".concat(p,"px ").concat(p,"px"),Y=bu(["strokeDasharray"],s,l);return $n.createElement(io,{animationId:A,key:A,canBegin:p>0,duration:s,easing:l,isActive:c,begin:f},Z=>{var Q=We(k,o,Z),x=We(M,n,Z),b=We(O,i,Z),L=We(j,r,Z),w=We(B,a,Z);d.current&&(m.current=Q,g.current=x,v.current=b,S.current=L,I.current=w);var y=Z>0?{transition:Y,strokeDasharray:F}:{strokeDasharray:$};return $n.createElement("path",us({},me(t),{className:P,d:Qw(L,w,Q,x,b),ref:d,style:Jw(Jw({},y),t.style)}))})};var HR=["option","shapeType","activeClassName","inActiveClassName"];function WR(e,t){if(e==null)return{};var r,a,o=VR(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{a||(o.current===null?r(Ky(t)):o.current!==t&&r($y({prev:o.current,next:t})),o.current=t)},[t,r,a]),nI(()=>()=>{o.current&&(r(Xy(o.current)),o.current=null)},[r]),null}import{useLayoutEffect as uI,useRef as e1}from"react";function lI(e){var{legendPayload:t}=e,r=ne(),a=be(),o=e1(null);return uI(()=>{a||(o.current===null?r(kg(t)):o.current!==t&&r(Eg({prev:o.current,next:t})),o.current=t)},[r,a,t]),uI(()=>()=>{o.current&&(r(Dg(o.current)),o.current=null)},[r]),null}import*as cI from"react";import{createContext as r1,useContext as HZ}from"react";import*as ss from"react";var np,t1=()=>{var[e]=ss.useState(()=>lr("uid-"));return e},sI=(np=ss.useId)!==null&&np!==void 0?np:t1;function fI(e,t){var r=sI();return t||(e?"".concat(e,"-").concat(r):r)}var a1=r1(void 0),dI=e=>{var{id:t,type:r,children:a}=e,o=fI("recharts-".concat(r),t);return cI.createElement(a1.Provider,{value:o},a(o))};import{memo as l1,useLayoutEffect as xI,useRef as s1}from"react";var o1={cartesianItems:[],polarItems:[]},pI=ue({name:"graphicalItems",initialState:o1,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:fe()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ke(e).cartesianItems.indexOf(r);o>-1&&(e.cartesianItems[o]=a)},prepare:fe()},removeCartesianGraphicalItem:{reducer(e,t){var r=Ke(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:fe()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:fe()},removePolarGraphicalItem:{reducer(e,t){var r=Ke(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:fe()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ke(e).polarItems.indexOf(r);o>-1&&(e.polarItems[o]=a)},prepare:fe()}}}),{addCartesianGraphicalItem:mI,replaceCartesianGraphicalItem:hI,removeCartesianGraphicalItem:gI,addPolarGraphicalItem:n1,removePolarGraphicalItem:i1,replacePolarGraphicalItem:u1}=pI.actions,vI=pI.reducer;var f1=e=>{var t=ne(),r=s1(null);return xI(()=>{r.current===null?t(mI(e)):r.current!==e&&t(hI({prev:r.current,next:e})),r.current=e},[t,e]),xI(()=>()=>{r.current&&(t(gI(r.current)),r.current=null)},[t]),null},yI=l1(f1);import*as Xn from"react";import{cloneElement as v1,isValidElement as x1}from"react";var c1=["points"];function bI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function ip(e){for(var t=1;t{var g,v,S=ip(ip(ip({r:3},i),c),{},{index:m,cx:(g=h.x)!==null&&g!==void 0?g:void 0,cy:(v=h.y)!==null&&v!==void 0?v:void 0,dataKey:n,value:h.value,payload:h.payload,points:t});return Xn.createElement(y1,{key:"dot-".concat(m),option:r,dotProps:S,className:o})}),p={};return u&&l!=null&&(p.clipPath="url(#clipPath-".concat(f?"":"dots-").concat(l,")")),Xn.createElement($e,{zIndex:s},Xn.createElement(tt,fs({className:a},p),d))}import*as Yn from"react";import{cloneElement as O1,isValidElement as k1}from"react";function II(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function CI(e){for(var t=1;t({top:e.top,bottom:e.bottom,left:e.left,right:e.right}));var EI=E([kI,Ye,Ze],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}});var Bo=()=>G(EI),DI=()=>G(cb);function MI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function up(e){for(var t=1;t{var{point:t,childIndex:r,mainColor:a,activeDot:o,dataKey:n,clipPath:i}=e;if(o===!1||t.x==null||t.y==null)return null;var u={index:r,dataKey:n,cx:t.x,cy:t.y,r:4,fill:a??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},l=up(up(up({},u),Pr(o)),Ga(o)),s;return k1(o)?s=O1(o,l):typeof o=="function"?s=o(l):s=Yn.createElement(ns,l),Yn.createElement(tt,{className:"recharts-active-dot",clipPath:i},s)};function TI(e){var{points:t,mainColor:r,activeDot:a,itemDataKey:o,clipPath:n,zIndex:i=de.activeDot}=e,u=G(Ia),l=DI();if(t==null||l==null)return null;var s=t.find(f=>l.includes(f.payload));return ge(s)?null:Yn.createElement($e,{zIndex:i},Yn.createElement(E1,{point:s,childIndex:Number(u),mainColor:r,dataKey:o,activeDot:a,clipPath:n}))}import{useEffect as D1}from"react";var RI=e=>{var{chartData:t}=e,r=ne(),a=be();return D1(()=>a?()=>{}:(r(Jd(t)),()=>{r(Jd(void 0))}),[t,r,a]),null};var _I={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},NI=ue({name:"brush",initialState:_I,reducers:{setBrushSettings(e,t){return t.payload==null?_I:t.payload}}}),{setBrushSettings:V9}=NI.actions,BI=NI.reducer;function M1(e){return(e%180+180)%180}var FI=function(t){var{width:r,height:a}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=M1(o),i=n*Math.PI/180,u=Math.atan(a/r),l=i>u&&i{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Ke(e).dots.findIndex(a=>a===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Ke(e).areas.findIndex(a=>a===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Ke(e).lines.findIndex(a=>a===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:X9,removeDot:Y9,addArea:Z9,removeArea:J9,addLine:Q9,removeLine:e7}=jI.actions,zI=jI.reducer;import*as Zn from"react";import{createContext as R1,useContext as a7,useState as _1}from"react";var N1=R1(void 0),UI=e=>{var{children:t}=e,[r]=_1("".concat(lr("recharts"),"-clip")),a=Bo();if(a==null)return null;var{x:o,y:n,width:i,height:u}=a;return Zn.createElement(N1.Provider,{value:r},Zn.createElement("defs",null,Zn.createElement("clipPath",{id:r},Zn.createElement("rect",{x:o,y:n,height:u,width:i}))),t)};import*as ye from"react";import{useState as e0,useRef as X1,useCallback as Y1,forwardRef as t0,useImperativeHandle as Z1,useEffect as J1}from"react";function cs(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],a=0;ae*o)return!1;var n=r();return e*(t-e*n/2-a)>=0&&e*(t+e*n/2-o)<=0}function WI(e,t){return cs(e,t+1)}function VI(e,t,r,a,o){for(var n=(a||[]).slice(),{start:i,end:u}=t,l=0,s=1,f=i,c=function(){var h=a?.[l];if(h===void 0)return{v:cs(a,s)};var m=l,g,v=()=>(g===void 0&&(g=r(h,m)),g),S=h.coordinate,I=l===0||Sa(e,S,v,f,u);I||(l=0,f=i,s+=1),I&&(f=S+e*(v()/2+o),l+=s)},d;s<=n.length;)if(d=c(),d)return d.v;return[]}function GI(e,t,r,a,o){var n=(a||[]).slice(),i=n.length;if(i===0)return[];for(var{start:u,end:l}=t,s=1;s<=i;s++){for(var f=(i-1)%s,c=u,d=!0,p=function(){var A=a[m];if(A==null)return 0;var P=m,k,M=()=>(k===void 0&&(k=r(A,P)),k),O=A.coordinate,j=m===f||Sa(e,O,M,c,l);if(!j)return d=!1,1;j&&(c=O+e*(M()/2+o))},h,m=f;m(m===void 0&&(m=r(p,d)),m);if(d===i-1){var v=e*(h.coordinate+e*g()/2-l);n[d]=h=Qe(Qe({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else n[d]=h=Qe(Qe({},h),{},{tickCoord:h.coordinate});if(h.tickCoord!=null){var S=Sa(e,h.tickCoord,g,u,l);S&&(l=h.tickCoord-e*(g()/2+o),n[d]=Qe(Qe({},h),{},{isShow:!0}))}},f=i-1;f>=0;f--)s(f);return n}function U1(e,t,r,a,o,n){var i=(a||[]).slice(),u=i.length,{start:l,end:s}=t;if(n){var f=a[u-1];if(f!=null){var c=r(f,u-1),d=e*(f.coordinate+e*c/2-s);if(i[u-1]=f=Qe(Qe({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate}),f.tickCoord!=null){var p=Sa(e,f.tickCoord,()=>c,l,s);p&&(s=f.tickCoord-e*(c/2+o),i[u-1]=Qe(Qe({},f),{},{isShow:!0}))}}}for(var h=n?u-1:u,m=function(S){var I=i[S];if(I==null)return 1;var A=I,P,k=()=>(P===void 0&&(P=r(I,S)),P);if(S===0){var M=e*(A.coordinate-e*k()/2-l);i[S]=A=Qe(Qe({},A),{},{tickCoord:M<0?A.coordinate-M*e:A.coordinate})}else i[S]=A=Qe(Qe({},A),{},{tickCoord:A.coordinate});if(A.tickCoord!=null){var O=Sa(e,A.tickCoord,k,l,s);O&&(l=A.tickCoord+e*(k()/2+o),i[S]=Qe(Qe({},A),{},{isShow:!0}))}},g=0;g{var M=typeof s=="function"?s(P.value,k):P.value;return h==="width"?qI(Ca(M,{fontSize:t,letterSpacing:r}),m,c):Ca(M,{fontSize:t,letterSpacing:r})[h]},v=o[0],S=o[1],I=o.length>=2&&v!=null&&S!=null?Re(S.coordinate-v.coordinate):1,A=HI(n,I,h);return l==="equidistantPreserveStart"?VI(I,A,g,o,i):l==="equidistantPreserveEnd"?GI(I,A,g,o,i):(l==="preserveStart"||l==="preserveStartEnd"?p=U1(I,A,g,o,i,l==="preserveStartEnd"):p=z1(I,A,g,o,i),p.filter(P=>P.isShow))}var $I=e=>{var{ticks:t,label:r,labelGapWithTick:a=5,tickSize:o=0,tickMargin:n=0}=e,i=0;if(t){Array.from(t).forEach(f=>{if(f){var c=f.getBoundingClientRect();c.width>i&&(i=c.width)}});var u=r?r.getBoundingClientRect().width:0,l=o+n,s=i+l+u+(r?a:0);return Math.round(s)}return 0};var q1={xAxis:{},yAxis:{}},XI=ue({name:"renderedTicks",initialState:q1,reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:a,ticks:o}=t.payload;e[r][a]=o},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:a}=t.payload;delete e[r][a]}}}),{setRenderedTicks:YI,removeRenderedTicks:ZI}=XI.actions,JI=XI.reducer;var H1=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function W1(e,t){if(e==null)return{};var r,a,o=V1(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{if(a==null||r==null)return ht;var n=t.map(i=>({value:i.value,coordinate:i.coordinate,offset:i.offset,index:i.index}));return o(YI({ticks:n,axisId:a,axisType:r})),()=>{o(ZI({axisId:a,axisType:r}))}},[o,t,a,r]),null}var n_=t0((e,t)=>{var{ticks:r=[],tick:a,tickLine:o,stroke:n,tickFormatter:i,unit:u,padding:l,tickTextProps:s,orientation:f,mirror:c,x:d,y:p,width:h,height:m,tickSize:g,tickMargin:v,fontSize:S,letterSpacing:I,getTicksConfig:A,events:P,axisType:k,axisId:M}=e,O=Jn(Ae(Ae({},A),{},{ticks:r}),S,I),j=Xe(A),B=Pr(a),$=es(j.textAnchor)?j.textAnchor:t_(f,c),F=r_(f,c),Y={};typeof o=="object"&&(Y=o);var Z=Ae(Ae({},j),{},{fill:"none"},Y),Q=O.map(L=>Ae({entry:L},e_(L,d,p,h,m,f,g,c,v))),x=Q.map(L=>{var{entry:w,line:y}=L;return ye.createElement(tt,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},o&&ye.createElement("line",La({},Z,y,{className:J("recharts-cartesian-axis-tick-line",mt(o,"className"))})))}),b=Q.map((L,w)=>{var y,C,{entry:D,tick:T}=L,N=Ae(Ae(Ae(Ae({verticalAnchor:F},j),{},{textAnchor:$,stroke:"none",fill:n},T),{},{index:w,payload:D,visibleTicksCount:O.length,tickFormatter:i,padding:l},s),{},{angle:(y=(C=s?.angle)!==null&&C!==void 0?C:j.angle)!==null&&y!==void 0?y:0}),U=Ae(Ae({},N),B);return ye.createElement(tt,La({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(D.value,"-").concat(D.coordinate,"-").concat(D.tickCoord)},fm(P,D,w)),a&&ye.createElement(a_,{option:a,tickProps:U,value:"".concat(typeof i=="function"?i(D.value,w):D.value).concat(u||"")}))});return ye.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(k,"-ticks")},ye.createElement(o_,{ticks:O,axisId:M,axisType:k}),b.length>0&&ye.createElement($e,{zIndex:de.label},ye.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(k,"-tick-labels"),ref:t},b)),x.length>0&&ye.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(k,"-tick-lines")},x))}),i_=t0((e,t)=>{var{axisLine:r,width:a,height:o,className:n,hide:i,ticks:u,axisType:l,axisId:s}=e,f=W1(e,H1),[c,d]=e0(""),[p,h]=e0(""),m=X1(null);Z1(t,()=>({getCalculatedWidth:()=>{var v;return $I({ticks:m.current,label:(v=e.labelRef)===null||v===void 0?void 0:v.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var g=Y1(v=>{if(v){var S=v.getElementsByClassName("recharts-cartesian-axis-tick-value");m.current=S;var I=S[0];if(I){var A=window.getComputedStyle(I),P=A.fontSize,k=A.letterSpacing;(P!==c||k!==p)&&(d(P),h(k))}}},[c,p]);return i||a!=null&&a<=0||o!=null&&o<=0?null:ye.createElement($e,{zIndex:e.zIndex},ye.createElement(tt,{className:J("recharts-cartesian-axis",n)},ye.createElement(Q1,{x:e.x,y:e.y,width:a,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Xe(e)}),ye.createElement(n_,{ref:g,axisType:l,events:f,fontSize:c,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:u,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:s}),ye.createElement(Mw,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},ye.createElement(Rw,{label:e.label,labelRef:e.labelRef}),e.children)))}),lp=ye.forwardRef((e,t)=>{var r=ve(e,qr);return ye.createElement(i_,La({},r,{ref:t}))});lp.displayName="CartesianAxis";import*as Oe from"react";var u_=["x1","y1","x2","y2","key"],l_=["offset"],s_=["xAxisId","yAxisId"],f_=["xAxisId","yAxisId"];function r0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function et(e){for(var t=1;t{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:a,y:o,width:n,height:i,ry:u}=e;return Oe.createElement("rect",{x:a,y:o,ry:u,width:n,height:i,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function a0(e){var{option:t,lineItemProps:r}=e,a;if(Oe.isValidElement(t))a=Oe.cloneElement(t,r);else if(typeof t=="function")a=t(r);else{var o,{x1:n,y1:i,x2:u,y2:l,key:s}=r,f=ds(r,u_),c=(o=Xe(f))!==null&&o!==void 0?o:{},{offset:d}=c,p=ds(c,l_);a=Oe.createElement("line",Pa({},p,{x1:n,y1:i,x2:u,y2:l,fill:"none",key:s}))}return a}function g_(e){var{x:t,width:r,horizontal:a=!0,horizontalPoints:o}=e;if(!a||!o||!o.length)return null;var{xAxisId:n,yAxisId:i}=e,u=ds(e,s_),l=o.map((s,f)=>{var c=et(et({},u),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(f),index:f});return Oe.createElement(a0,{key:"line-".concat(f),option:a,lineItemProps:c})});return Oe.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function v_(e){var{y:t,height:r,vertical:a=!0,verticalPoints:o}=e;if(!a||!o||!o.length)return null;var{xAxisId:n,yAxisId:i}=e,u=ds(e,f_),l=o.map((s,f)=>{var c=et(et({},u),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(f),index:f});return Oe.createElement(a0,{option:a,lineItemProps:c,key:"line-".concat(f)})});return Oe.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function x_(e){var{horizontalFill:t,fillOpacity:r,x:a,y:o,width:n,height:i,horizontalPoints:u,horizontal:l=!0}=e;if(!l||!t||!t.length||u==null)return null;var s=u.map(c=>Math.round(c+o-o)).sort((c,d)=>c-d);o!==s[0]&&s.unshift(0);var f=s.map((c,d)=>{var p=s[d+1],h=p==null,m=h?o+i-c:p-c;if(m<=0)return null;var g=d%t.length;return Oe.createElement("rect",{key:"react-".concat(d),y:c,x:a,height:m,width:n,stroke:"none",fill:t[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return Oe.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function y_(e){var{vertical:t=!0,verticalFill:r,fillOpacity:a,x:o,y:n,width:i,height:u,verticalPoints:l}=e;if(!t||!r||!r.length)return null;var s=l.map(c=>Math.round(c+o-o)).sort((c,d)=>c-d);o!==s[0]&&s.unshift(0);var f=s.map((c,d)=>{var p=s[d+1],h=p==null,m=h?o+i-c:p-c;if(m<=0)return null;var g=d%r.length;return Oe.createElement("rect",{key:"react-".concat(d),x:c,y:n,width:m,height:u,stroke:"none",fill:r[g],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return Oe.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var b_=(e,t)=>{var{xAxis:r,width:a,height:o,offset:n}=e;return qf(Jn(et(et(et({},qr),r),{},{ticks:Hf(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),n.left,n.left+n.width,t)},w_=(e,t)=>{var{yAxis:r,width:a,height:o,offset:n}=e;return qf(Jn(et(et(et({},qr),r),{},{ticks:Hf(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),n.top,n.top+n.height,t)},I_={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:de.grid};function ps(e){var t=mu(),r=hu(),a=pu(),o=et(et({},ve(e,I_)),{},{x:H(e.x)?e.x:a.left,y:H(e.y)?e.y:a.top,width:H(e.width)?e.width:a.width,height:H(e.height)?e.height:a.height}),{xAxisId:n,yAxisId:i,x:u,y:l,width:s,height:f,syncWithTicks:c,horizontalValues:d,verticalValues:p}=o,h=be(),m=G(j=>Od(j,"xAxis",n,h)),g=G(j=>Od(j,"yAxis",i,h));if(!ft(s)||!ft(f)||!H(u)||!H(l))return null;var v=o.verticalCoordinatesGenerator||b_,S=o.horizontalCoordinatesGenerator||w_,{horizontalPoints:I,verticalPoints:A}=o;if((!I||!I.length)&&typeof S=="function"){var P=d&&d.length,k=S({yAxis:g?et(et({},g),{},{ticks:P?d:g.ticks}):void 0,width:t??s,height:r??f,offset:a},P?!0:c);ro(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof k,"]")),Array.isArray(k)&&(I=k)}if((!A||!A.length)&&typeof v=="function"){var M=p&&p.length,O=v({xAxis:m?et(et({},m),{},{ticks:M?p:m.ticks}):void 0,width:t??s,height:r??f,offset:a},M?!0:c);ro(Array.isArray(O),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(A=O)}return Oe.createElement($e,{zIndex:o.zIndex},Oe.createElement("g",{className:"recharts-cartesian-grid"},Oe.createElement(h_,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),Oe.createElement(x_,Pa({},o,{horizontalPoints:I})),Oe.createElement(y_,Pa({},o,{verticalPoints:A})),Oe.createElement(g_,Pa({},o,{offset:a,horizontalPoints:I,xAxis:m,yAxis:g})),Oe.createElement(v_,Pa({},o,{offset:a,verticalPoints:A,xAxis:m,yAxis:g}))))}ps.displayName="CartesianGrid";import*as oe from"react";import{Component as U_,useCallback as v0,useMemo as q_,useRef as Qn,useState as H_}from"react";import*as i0 from"react";import{createContext as A_,useContext as lJ,useEffect as sJ,useRef as fJ}from"react";var C_={},o0=ue({name:"errorBars",initialState:C_,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:a}=t.payload;e[r]||(e[r]=[]),e[r].push(a)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:a,next:o}=t.payload;e[r]&&(e[r]=e[r].map(n=>n.dataKey===a.dataKey&&n.direction===a.direction?o:n))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:a}=t.payload;e[r]&&(e[r]=e[r].filter(o=>o.dataKey!==a.dataKey||o.direction!==a.direction))}}}),{addErrorBar:aJ,replaceErrorBar:oJ,removeErrorBar:nJ}=o0.actions,n0=o0.reducer;var S_=["children"];function L_(e,t){if(e==null)return{};var r,a,o=P_(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a({x:0,y:0,value:0}),errorBarOffset:0},k_=A_(O_);function u0(e){var{children:t}=e,r=L_(e,S_);return i0.createElement(k_.Provider,{value:r},t)}import*as sp from"react";function fp(e,t){var r,a,o=G(s=>tr(s,e)),n=G(s=>rr(s,t)),i=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:Ee.allowDataOverflow,u=(a=n?.allowDataOverflow)!==null&&a!==void 0?a:Zc.allowDataOverflow,l=i||u;return{needClip:l,needClipX:i,needClipY:u}}function l0(e){var{xAxisId:t,yAxisId:r,clipPathId:a}=e,o=Bo(),{needClipX:n,needClipY:i,needClip:u}=fp(t,r);if(!u||!o)return null;var{x:l,y:s,width:f,height:c}=o;return sp.createElement("clipPath",{id:"clipPath-".concat(a)},sp.createElement("rect",{x:n?l:l-f/2,y:i?s:s-c/2,width:n?f:f*2,height:i?c:c*2}))}var s0=(e,t,r,a)=>Ed(e,"xAxis",t,a),f0=(e,t,r,a)=>kd(e,"xAxis",t,a),c0=(e,t,r,a)=>Ed(e,"yAxis",r,a),d0=(e,t,r,a)=>kd(e,"yAxis",r,a),E_=E([ce,s0,c0,f0,d0],(e,t,r,a,o)=>xt(e,"xAxis")?Ja(t,a,!1):Ja(r,o,!1)),D_=(e,t,r,a,o)=>o;function M_(e){return e.type==="line"}var T_=E([td,D_],(e,t)=>e.filter(M_).find(r=>r.id===t)),p0=E([ce,s0,c0,f0,d0,T_,E_,fn],(e,t,r,a,o,n,i,u)=>{var{chartData:l,dataStartIndex:s,dataEndIndex:f}=u;if(!(n==null||t==null||r==null||a==null||o==null||a.length===0||o.length===0||i==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:c,data:d}=n,p;if(d!=null&&d.length>0?p=d:p=l?.slice(s,f+1),p!=null)return m0({layout:e,xAxis:t,yAxis:r,xAxisTicks:a,yAxisTicks:o,dataKey:c,bandSize:i,displayedData:p})}});function h0(e){var t=Pr(e),r=3,a=2;if(t!=null){var{r:o,strokeWidth:n}=t,i=Number(o),u=Number(n);return(Number.isNaN(i)||i<0)&&(i=r),(Number.isNaN(u)||u<0)&&(u=a),{r:i,strokeWidth:u}}return{r,strokeWidth:a}}var R_=["id"],__=["type","layout","connectNulls","needClip","shape"],N_=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function ei(){return ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{dataKey:t,name:r,stroke:a,legendType:o,hide:n}=e;return[{inactive:n,dataKey:t,type:o,color:a,value:$f(r,t),payload:e}]},V_=oe.memo(e=>{var{dataKey:t,data:r,stroke:a,strokeWidth:o,fill:n,name:i,hide:u,unit:l,tooltipType:s,id:f}=e,c={dataDefinedOnItem:r,getPosition:ht,settings:{stroke:a,strokeWidth:o,fill:n,dataKey:t,nameKey:void 0,name:$f(i,t),hide:u,type:s,color:a,unit:l,graphicalItemId:f}};return oe.createElement(iI,{tooltipEntrySettings:c})}),y0=(e,t)=>"".concat(t,"px ").concat(e,"px");function G_(e,t){for(var r=e.length%2!==0?[...e,0]:e,a=[],o=0;o{var a=r.reduce((d,p)=>d+p,0);if(!a)return y0(t,e);for(var o=Math.floor(e/a),n=e%a,i=[],u=0,l=0;un){i=[...r.slice(0,u),n-l];break}}var c=i.length%2===0?[0,t]:[t];return[...G_(r,o),...i,...c].map(d=>"".concat(d,"px")).join(", ")};function $_(e){var{clipPathId:t,points:r,props:a}=e,{dot:o,dataKey:n,needClip:i}=a,{id:u}=a,l=dp(a,R_),s=Xe(l);return oe.createElement(wI,{points:r,dot:o,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:n,baseProps:s,needClip:i,clipPathId:t})}function X_(e){var{showLabels:t,children:r,points:a}=e,o=q_(()=>a?.map(n=>{var i,u,l={x:(i=n.x)!==null&&i!==void 0?i:0,y:(u=n.y)!==null&&u!==void 0?u:0,width:0,lowerWidth:0,upperWidth:0,height:0};return nr(nr({},l),{},{value:n.value,payload:n.payload,viewBox:l,parentViewBox:void 0,fill:void 0})}),[a]);return oe.createElement(jw,{value:t?o:void 0},r)}function x0(e){var{clipPathId:t,pathRef:r,points:a,strokeDasharray:o,props:n}=e,{type:i,layout:u,connectNulls:l,needClip:s,shape:f}=n,c=dp(n,__),d=nr(nr({},me(c)),{},{fill:"none",className:"recharts-line-curve",clipPath:s?"url(#clipPath-".concat(t,")"):void 0,points:a,type:i,layout:u,connectNulls:l,strokeDasharray:o??n.strokeDasharray});return oe.createElement(oe.Fragment,null,a?.length>1&&oe.createElement(oI,ei({shapeType:"curve",option:f},d,{pathRef:r})),oe.createElement($_,{points:a,clipPathId:t,props:n}))}function Y_(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function Z_(e){var{clipPathId:t,props:r,pathRef:a,previousPointsRef:o,longestAnimatedLengthRef:n}=e,{points:i,strokeDasharray:u,isAnimationActive:l,animationBegin:s,animationDuration:f,animationEasing:c,animateNewValues:d,width:p,height:h,onAnimationEnd:m,onAnimationStart:g}=r,v=o.current,S=uo(i,"recharts-line-"),I=Qn(S),[A,P]=H_(!1),k=!A,M=v0(()=>{typeof m=="function"&&m(),P(!1)},[m]),O=v0(()=>{typeof g=="function"&&g(),P(!0)},[g]),j=Y_(a.current),B=Qn(0);I.current!==S&&(B.current=n.current,I.current=S);var $=B.current;return oe.createElement(X_,{points:i,showLabels:k},r.children,oe.createElement(io,{animationId:S,begin:s,duration:f,isActive:l,easing:c,onAnimationEnd:M,onAnimationStart:O,key:S},F=>{var Y=We($,j+$,F),Z=Math.min(Y,j),Q;if(l)if(u){var x="".concat(u).split(/[,\s]+/gim).map(w=>parseFloat(w));Q=K_(Z,j,x)}else Q=y0(j,Z);else Q=u==null?void 0:String(u);if(F>0&&j>0&&(o.current=i,n.current=Math.max(n.current,Z)),v){var b=v.length/i.length,L=F===1?i:i.map((w,y)=>{var C=Math.floor(y*b);if(v[C]){var D=v[C];return nr(nr({},w),{},{x:We(D.x,w.x,F),y:We(D.y,w.y,F)})}return d?nr(nr({},w),{},{x:We(p*2,w.x,F),y:We(h/2,w.y,F)}):nr(nr({},w),{},{x:w.x,y:w.y})});return o.current=L,oe.createElement(x0,{props:r,points:L,clipPathId:t,pathRef:a,strokeDasharray:Q})}return oe.createElement(x0,{props:r,points:i,clipPathId:t,pathRef:a,strokeDasharray:Q})}),oe.createElement(Uw,{label:r.label}))}function J_(e){var{clipPathId:t,props:r}=e,a=Qn(null),o=Qn(0),n=Qn(null);return oe.createElement(Z_,{props:r,clipPathId:t,previousPointsRef:a,longestAnimatedLengthRef:o,pathRef:n})}var Q_=(e,t)=>{var r,a;return{x:(r=e.x)!==null&&r!==void 0?r:void 0,y:(a=e.y)!==null&&a!==void 0?a:void 0,value:e.value,errorVal:Se(e.payload,t)}},cp=class extends U_{render(){var{hide:t,dot:r,points:a,className:o,xAxisId:n,yAxisId:i,top:u,left:l,width:s,height:f,id:c,needClip:d,zIndex:p}=this.props;if(t)return null;var h=J("recharts-line",o),m=c,{r:g,strokeWidth:v}=h0(r),S=is(r),I=g*2+v,A=d?"url(#clipPath-".concat(S?"":"dots-").concat(m,")"):void 0;return oe.createElement($e,{zIndex:p},oe.createElement(tt,{className:h},d&&oe.createElement("defs",null,oe.createElement(l0,{clipPathId:m,xAxisId:n,yAxisId:i}),!S&&oe.createElement("clipPath",{id:"clipPath-dots-".concat(m)},oe.createElement("rect",{x:l-I/2,y:u-I/2,width:s+I,height:f+I}))),oe.createElement(u0,{xAxisId:n,yAxisId:i,data:a,dataPointFormatter:Q_,errorBarOffset:0},oe.createElement(J_,{props:this.props,clipPathId:m}))),oe.createElement(TI,{activeDot:this.props.activeDot,points:a,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:A}))}},b0={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:de.line,type:"linear"};function eN(e){var t=ve(e,b0),{activeDot:r,animateNewValues:a,animationBegin:o,animationDuration:n,animationEasing:i,connectNulls:u,dot:l,hide:s,isAnimationActive:f,label:c,legendType:d,xAxisId:p,yAxisId:h,id:m}=t,g=dp(t,N_),{needClip:v}=fp(p,h),S=Bo(),I=$t(),A=be(),P=G(B=>p0(B,p,h,A,m));if(I!=="horizontal"&&I!=="vertical"||P==null||S==null)return null;var{height:k,width:M,x:O,y:j}=S;return oe.createElement(cp,ei({},g,{id:m,connectNulls:u,dot:l,activeDot:r,animateNewValues:a,animationBegin:o,animationDuration:n,animationEasing:i,isAnimationActive:f,hide:s,label:c,legendType:d,xAxisId:p,yAxisId:h,points:P,layout:I,height:k,width:M,left:O,top:j,needClip:v}))}function m0(e){var{layout:t,xAxis:r,yAxis:a,xAxisTicks:o,yAxisTicks:n,dataKey:i,bandSize:u,displayedData:l}=e;return l.map((s,f)=>{var c=Se(s,i);if(t==="horizontal"){var d=Wf({axis:r,ticks:o,bandSize:u,entry:s,index:f}),p=ge(c)?null:a.scale.map(c);return{x:d,y:p??null,value:c,payload:s}}var h=ge(c)?null:r.scale.map(c),m=Wf({axis:a,ticks:n,bandSize:u,entry:s,index:f});return h==null||m==null?null:{x:h,y:m,value:c,payload:s}}).filter(Boolean)}function tN(e){var t=ve(e,b0),r=be();return oe.createElement(dI,{id:t.id,type:"line"},a=>oe.createElement(oe.Fragment,null,oe.createElement(lI,{legendPayload:W_(t)}),oe.createElement(V_,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:a}),oe.createElement(yI,{type:"line",id:a,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),oe.createElement(eN,ei({},t,{id:a}))))}var ms=oe.memo(tN,kr);ms.displayName="Line";import*as Cr from"react";import{useLayoutEffect as P0,useMemo as dN,useRef as pN}from"react";var rN=["domain","range"],aN=["domain","range"];function w0(e,t){if(e==null)return{};var r,a,o=oN(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{if(i!=null)return L0(L0({},n),{},{type:i})},[n,i]);return P0(()=>{u!=null&&(r.current===null?t(LI(u)):r.current!==u&&t(PI({prev:r.current,next:u})),r.current=u)},[u,t]),P0(()=>()=>{r.current&&(t(AI(r.current)),r.current=null)},[t]),null}var hN=e=>{var{xAxisId:t,className:r}=e,a=G(hg),o=be(),n="xAxis",i=G(v=>qy(v,n,t,o)),u=G(v=>zy(v,t)),l=G(v=>Uy(v,t)),s=G(v=>Yc(v,t));if(u==null||l==null||s==null)return null;var{dangerouslySetInnerHTML:f,ticks:c,scale:d}=e,p=mp(e,iN),{id:h,scale:m}=s,g=mp(s,uN);return Cr.createElement(lp,pp({},p,g,{x:l.x,y:l.y,width:u.width,height:u.height,className:J("recharts-".concat(n," ").concat(n),r),viewBox:a,ticks:i,axisType:n,axisId:t}))},gN={allowDataOverflow:Ee.allowDataOverflow,allowDecimals:Ee.allowDecimals,allowDuplicatedCategory:Ee.allowDuplicatedCategory,angle:Ee.angle,axisLine:qr.axisLine,height:Ee.height,hide:!1,includeHidden:Ee.includeHidden,interval:Ee.interval,label:!1,minTickGap:Ee.minTickGap,mirror:Ee.mirror,orientation:Ee.orientation,padding:Ee.padding,reversed:Ee.reversed,scale:Ee.scale,tick:Ee.tick,tickCount:Ee.tickCount,tickLine:qr.tickLine,tickSize:qr.tickSize,type:Ee.type,niceTicks:Ee.niceTicks,xAxisId:0},vN=e=>{var t=ve(e,gN);return Cr.createElement(Cr.Fragment,null,Cr.createElement(mN,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),Cr.createElement(hN,t))},hs=Cr.memo(vN,C0);hs.displayName="XAxis";import*as eC from"react";import{forwardRef as fB}from"react";import*as Ma from"react";import{forwardRef as uB}from"react";import*as z0 from"react";import{useRef as SN}from"react";var xN=(e,t)=>t,ti=E([xN,ce,Hu,ke,Nd,dt,wb,xe],Ab);function yN(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function ri(e){var t=e.currentTarget.getBoundingClientRect(),r,a;if(yN(e)){var o=e.currentTarget.getBBox();r=o.width>0?t.width/o.width:1,a=o.height>0?t.height/o.height:1}else{var n=e.currentTarget;r=n.offsetWidth>0?t.width/n.offsetWidth:1,a=n.offsetHeight>0?t.height/n.offsetHeight:1}var i=(u,l)=>({relativeX:Math.round((u-t.left)/r),relativeY:Math.round((l-t.top)/a)});return"touches"in e?Array.from(e.touches).map(u=>i(u.clientX,u.clientY)):i(e.clientX,e.clientY)}var gp=Te("mouseClick"),vp=dr();vp.startListening({actionCreator:gp,effect:(e,t)=>{var r=e.payload,a=ti(t.getState(),ri(r));a?.activeIndex!=null&&t.dispatch(Jy({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}});var gs=Te("mouseMove"),xp=dr(),Fo=null,Aa=null,hp=null;xp.startListening({actionCreator:gs,effect:(e,t)=>{var r=e.payload,a=t.getState(),{throttleDelay:o,throttledEvents:n}=a.eventSettings,i=n==="all"||n?.includes("mousemove");Fo!==null&&(cancelAnimationFrame(Fo),Fo=null),Aa!==null&&(typeof o!="number"||!i)&&(clearTimeout(Aa),Aa=null),hp=ri(r);var u=()=>{var l=t.getState(),s=zn(l,l.tooltip.settings.shared);if(!hp){Fo=null,Aa=null;return}if(s==="axis"){var f=ti(l,hp);f?.activeIndex!=null?t.dispatch(Fl({activeIndex:f.activeIndex,activeDataKey:void 0,activeCoordinate:f.activeCoordinate})):t.dispatch(Bl())}Fo=null,Aa=null};if(!i){u();return}o==="raf"?Fo=requestAnimationFrame(u):typeof o=="number"&&Aa===null&&(Aa=setTimeout(u,o))}});function A0(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<>":t}var O0={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},k0=ue({name:"rootProps",initialState:O0,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:O0.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),E0=k0.reducer,{updateOptions:D0}=k0.actions;var bN=null,wN={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},M0=ue({name:"polarOptions",initialState:bN,reducers:wN}),{updatePolarOptions:NQ}=M0.actions,T0=M0.reducer;var yp=Te("keyDown"),bp=Te("focus"),wp=Te("blur"),ai=dr(),jo=null,Oa=null,vs=null;ai.startListening({actionCreator:yp,effect:(e,t)=>{vs=e.payload,jo!==null&&(cancelAnimationFrame(jo),jo=null);var r=t.getState(),{throttleDelay:a,throttledEvents:o}=r.eventSettings,n=o==="all"||o.includes("keydown");Oa!==null&&(typeof a!="number"||!n)&&(clearTimeout(Oa),Oa=null);var i=()=>{try{var u=t.getState(),l=u.rootProps.accessibilityLayer!==!1;if(!l)return;var{keyboardInteraction:s}=u.tooltip,f=vs;if(f!=="ArrowRight"&&f!=="ArrowLeft"&&f!=="Enter")return;var c=Do(s,zr(u),jr(u),wa(u)),d=c==null?-1:Number(c);if(!Number.isFinite(d)||d<0)return;var p=dt(u);if(f==="Enter"){var h=Hn(u,"axis","hover",String(s.index));t.dispatch(Un({active:!s.active,activeIndex:s.index,activeCoordinate:h}));return}var m=Hy(u),g=m==="left-to-right"?1:-1,v=f==="ArrowRight"?1:-1,S=d+v*g;if(p==null||S>=p.length||S<0)return;var I=Hn(u,"axis","hover",String(S));t.dispatch(Un({active:!0,activeIndex:S.toString(),activeCoordinate:I}))}finally{jo=null,Oa=null}};if(!n){i();return}a==="raf"?jo=requestAnimationFrame(i):typeof a=="number"&&Oa===null&&(i(),vs=null,Oa=setTimeout(()=>{vs?i():(Oa=null,jo=null)},a))}});ai.startListening({actionCreator:bp,effect:(e,t)=>{var r=t.getState(),a=r.rootProps.accessibilityLayer!==!1;if(a){var{keyboardInteraction:o}=r.tooltip;if(!o.active&&o.index==null){var n="0",i=Hn(r,"axis","hover",String(n));t.dispatch(Un({active:!0,activeIndex:n,activeCoordinate:i}))}}}});ai.startListening({actionCreator:wp,effect:(e,t)=>{var r=t.getState(),a=r.rootProps.accessibilityLayer!==!1;if(a){var{keyboardInteraction:o}=r.tooltip;o.active&&t.dispatch(Un({active:!1,activeIndex:o.index,activeCoordinate:o.coordinate}))}}});function xs(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(r,a)=>{if(a==="currentTarget")return t;var o=Reflect.get(r,a);return typeof o=="function"?o.bind(r):o}})}var St=Te("externalEvent"),Cp=dr(),ys=new Map,oi=new Map,Ip=new Map;Cp.startListening({actionCreator:St,effect:(e,t)=>{var{handler:r,reactEvent:a}=e.payload;if(r!=null){var o=a.type,n=xs(a);Ip.set(o,{handler:r,reactEvent:n});var i=ys.get(o);i!==void 0&&(cancelAnimationFrame(i),ys.delete(o));var u=t.getState(),{throttleDelay:l,throttledEvents:s}=u.eventSettings,f=s,c=f==="all"||f?.includes(o),d=oi.get(o);d!==void 0&&(typeof l!="number"||!c)&&(clearTimeout(d),oi.delete(o));var p=()=>{var g=Ip.get(o);try{if(!g)return;var{handler:v,reactEvent:S}=g,I=t.getState(),A={activeCoordinate:zd(I),activeDataKey:lb(I),activeIndex:Ia(I),activeLabel:Gl(I),activeTooltipIndex:Ia(I),isTooltipActive:Ud(I)};v&&v(A,S)}finally{ys.delete(o),oi.delete(o),Ip.delete(o)}};if(!c){p();return}if(l==="raf"){var h=requestAnimationFrame(p);ys.set(o,h)}else if(typeof l=="number"){if(!oi.has(o)){p();var m=setTimeout(p,l);oi.set(o,m)}}else p()}}});var IN=E([yr],e=>e.tooltipItemPayloads),R0=E([IN,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var a=e.find(n=>n.settings.graphicalItemId===r);if(a!=null){var{getPosition:o}=a;if(o!=null)return o(t)}}});var Sp=Te("touchMove"),Lp=dr(),ka=null,Hr=null,_0=null,ni=null;Lp.startListening({actionCreator:Sp,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){ni=xs(r);var a=t.getState(),{throttleDelay:o,throttledEvents:n}=a.eventSettings,i=n==="all"||n.includes("touchmove");ka!==null&&(cancelAnimationFrame(ka),ka=null),Hr!==null&&(typeof o!="number"||!i)&&(clearTimeout(Hr),Hr=null),_0=Array.from(r.touches).map(l=>ri({clientX:l.clientX,clientY:l.clientY,currentTarget:r.currentTarget}));var u=()=>{if(ni!=null){var l=t.getState(),s=zn(l,l.tooltip.settings.shared);if(s==="axis"){var f,c=(f=_0)===null||f===void 0?void 0:f[0];if(c==null){ka=null,Hr=null;return}var d=ti(l,c);d?.activeIndex!=null&&t.dispatch(Fl({activeIndex:d.activeIndex,activeDataKey:void 0,activeCoordinate:d.activeCoordinate}))}else if(s==="item"){var p,h=ni.touches[0];if(document.elementFromPoint==null||h==null)return;var m=document.elementFromPoint(h.clientX,h.clientY);if(!m||!m.getAttribute)return;var g=m.getAttribute(cg),v=(p=m.getAttribute(dg))!==null&&p!==void 0?p:void 0,S=ba(l).find(P=>P.id===v);if(g==null||S==null||v==null)return;var{dataKey:I}=S,A=R0(l,g,v);t.dispatch(Zy({activeDataKey:I,activeIndex:g,activeCoordinate:A,activeGraphicalItemId:v}))}ka=null,Hr=null}};if(!i){u();return}o==="raf"?ka=requestAnimationFrame(u):typeof o=="number"&&Hr===null&&(u(),ni=null,Hr=setTimeout(()=>{ni?u():(Hr=null,ka=null)},o))}}});var Pp={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},N0=ue({name:"eventSettings",initialState:Pp,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:B0}=N0.actions,F0=N0.reducer;var CN=Ui({brush:BI,cartesianAxis:OI,chartData:Jb,errorBars:n0,eventSettings:F0,graphicalItems:vI,layout:ag,legend:Mg,options:Kb,polarAxis:Ww,polarOptions:T0,referenceElements:zI,renderedTicks:JI,rootProps:E0,tooltip:Qy,zIndex:Bb}),j0=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return jh({reducer:CN,preloadedState:t,middleware:a=>{var o;return a({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([vp.middleware,xp.middleware,ai.middleware,Cp.middleware,Lp.middleware])},enhancers:a=>{var o=a;return typeof a=="function"&&(o=a()),o.concat(Ff({type:"raf"}))},devTools:Dt.devToolsEnabled&&{serialize:{replacer:A0},name:"recharts-".concat(r)}})};function U0(e){var{preloadedState:t,children:r,reduxStoreName:a}=e,o=be(),n=SN(null);if(o)return r;n.current==null&&(n.current=j0(t,a));var i=Ko;return z0.createElement(Ng,{context:i,store:n.current},r)}import{memo as LN,useEffect as PN}from"react";function AN(e){var{layout:t,margin:r}=e,a=ne(),o=be();return PN(()=>{o||(a(eg(t)),a(Uf(r)))},[a,o,t,r]),null}var q0=LN(AN,kr);import{useEffect as ON}from"react";function H0(e){var t=ne();return ON(()=>{t(D0(e))},[t,e]),null}import{useEffect as kN,memo as EN}from"react";var DN=e=>{var t=ne();return kN(()=>{t(B0(e))},[t,e]),null},W0=EN(DN,kr);import*as Sr from"react";import{forwardRef as rB}from"react";import*as Da from"react";import{forwardRef as G0}from"react";import*as Ea from"react";import{useLayoutEffect as MN,useRef as TN}from"react";function V0(e){var{zIndex:t,isPanorama:r}=e,a=TN(null),o=ne();return MN(()=>(a.current&&o(_b({zIndex:t,element:a.current,isPanorama:r})),()=>{o(Nb({zIndex:t,isPanorama:r}))}),[o,t,r]),Ea.createElement("g",{tabIndex:-1,ref:a,className:"recharts-zIndex-layer_".concat(t)})}function Ap(e){var{children:t,isPanorama:r}=e,a=G(kb);if(!a||a.length===0)return t;var o=a.filter(i=>i<0),n=a.filter(i=>i>0);return Ea.createElement(Ea.Fragment,null,o.map(i=>Ea.createElement(V0,{key:i,zIndex:i,isPanorama:r})),t,n.map(i=>Ea.createElement(V0,{key:i,zIndex:i,isPanorama:r})))}var RN=["children"];function _N(e,t){if(e==null)return{};var r,a,o=NN(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var r=mu(),a=hu(),o=vu();if(!ft(r)||!ft(a))return null;var{children:n,otherAttributes:i,title:u,desc:l}=e,s,f;return i!=null&&(typeof i.tabIndex=="number"?s=i.tabIndex:s=o?0:void 0,typeof i.role=="string"?f=i.role:f=o?"application":void 0),Da.createElement(Ds,bs({},i,{title:u,desc:l,role:f,tabIndex:s,width:r,height:a,style:BN,ref:t}),n)}),jN=e=>{var{children:t}=e,r=G(ea);if(!r)return null;var{width:a,height:o,y:n,x:i}=r;return Da.createElement(Ds,{width:a,height:o,x:i,y:n},t)},Op=G0((e,t)=>{var{children:r}=e,a=_N(e,RN),o=be();return o?Da.createElement(jN,null,Da.createElement(Ap,{isPanorama:!0},r)):Da.createElement(FN,bs({ref:t},a),Da.createElement(Ap,{isPanorama:!1},r))});import*as Ie from"react";import{forwardRef as ii,useCallback as Fe,useEffect as GN,useRef as X0,useState as ws}from"react";import{useEffect as zN,useState as UN}from"react";function K0(){var e=ne(),[t,r]=UN(null),a=G(fg);return zN(()=>{if(t!=null){var o=t.getBoundingClientRect(),n=o.width/t.offsetWidth;te(n)&&n!==a&&e(rg(n))}},[t,e,a]),r}function $0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function qN(e){for(var t=1;t(ew(),null);function Is(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var $N=ii((e,t)=>{var r,a,o=X0(null),[n,i]=ws({containerWidth:Is((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Is((a=e.style)===null||a===void 0?void 0:a.height)}),u=Fe((s,f)=>{i(c=>{var d=Math.round(s),p=Math.round(f);return c.containerWidth===d&&c.containerHeight===p?c:{containerWidth:d,containerHeight:p}})},[]),l=Fe(s=>{if(typeof t=="function"&&t(s),s!=null&&typeof ResizeObserver<"u"){var{width:f,height:c}=s.getBoundingClientRect();u(f,c);var d=h=>{var m=h[0];if(m!=null){var{width:g,height:v}=m.contentRect;u(g,v)}},p=new ResizeObserver(d);p.observe(s),o.current=p}},[t,u]);return GN(()=>()=>{var s=o.current;s?.disconnect()},[u]),Ie.createElement(Ie.Fragment,null,Ie.createElement(aa,{width:n.containerWidth,height:n.containerHeight}),Ie.createElement("div",Wr({ref:l},e)))}),XN=ii((e,t)=>{var{width:r,height:a}=e,[o,n]=ws({containerWidth:Is(r),containerHeight:Is(a)}),i=Fe((l,s)=>{n(f=>{var c=Math.round(l),d=Math.round(s);return f.containerWidth===c&&f.containerHeight===d?f:{containerWidth:c,containerHeight:d}})},[]),u=Fe(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:s,height:f}=l.getBoundingClientRect();i(s,f)}},[t,i]);return Ie.createElement(Ie.Fragment,null,Ie.createElement(aa,{width:o.containerWidth,height:o.containerHeight}),Ie.createElement("div",Wr({ref:u},e)))}),YN=ii((e,t)=>{var{width:r,height:a}=e;return Ie.createElement(Ie.Fragment,null,Ie.createElement(aa,{width:r,height:a}),Ie.createElement("div",Wr({ref:t},e)))}),ZN=ii((e,t)=>{var{width:r,height:a}=e;return typeof r=="string"||typeof a=="string"?Ie.createElement(XN,Wr({},e,{ref:t})):typeof r=="number"&&typeof a=="number"?Ie.createElement(YN,Wr({},e,{width:r,height:a,ref:t})):Ie.createElement(Ie.Fragment,null,Ie.createElement(aa,{width:r,height:a}),Ie.createElement("div",Wr({ref:t},e)))});function JN(e){return e?$N:ZN}var Y0=ii((e,t)=>{var{children:r,className:a,height:o,onClick:n,onContextMenu:i,onDoubleClick:u,onMouseDown:l,onMouseEnter:s,onMouseLeave:f,onMouseMove:c,onMouseUp:d,onTouchEnd:p,onTouchMove:h,onTouchStart:m,style:g,width:v,responsive:S,dispatchTouchEvents:I=!0}=e,A=X0(null),P=ne(),[k,M]=ws(null),[O,j]=ws(null),B=K0(),$=tn(),F=$?.width>0?$.width:v,Y=$?.height>0?$.height:o,Z=Fe(q=>{B(q),typeof t=="function"&&t(q),M(q),j(q),q!=null&&(A.current=q)},[B,t,M,j]),Q=Fe(q=>{P(gp(q)),P(St({handler:n,reactEvent:q}))},[P,n]),x=Fe(q=>{P(gs(q)),P(St({handler:s,reactEvent:q}))},[P,s]),b=Fe(q=>{P(Bl()),P(St({handler:f,reactEvent:q}))},[P,f]),L=Fe(q=>{P(gs(q)),P(St({handler:c,reactEvent:q}))},[P,c]),w=Fe(()=>{P(bp())},[P]),y=Fe(()=>{P(wp())},[P]),C=Fe(q=>{P(yp(q.key))},[P]),D=Fe(q=>{P(St({handler:i,reactEvent:q}))},[P,i]),T=Fe(q=>{P(St({handler:u,reactEvent:q}))},[P,u]),N=Fe(q=>{P(St({handler:l,reactEvent:q}))},[P,l]),U=Fe(q=>{P(St({handler:d,reactEvent:q}))},[P,d]),z=Fe(q=>{P(St({handler:m,reactEvent:q}))},[P,m]),W=Fe(q=>{I&&P(Sp(q)),P(St({handler:h,reactEvent:q}))},[P,I,h]),ae=Fe(q=>{P(St({handler:p,reactEvent:q}))},[P,p]),R=JN(S);return Ie.createElement(Xd.Provider,{value:k},Ie.createElement(Hp.Provider,{value:O},Ie.createElement(R,{width:F??g?.width,height:Y??g?.height,className:J("recharts-wrapper",a),style:qN({position:"relative",cursor:"default",width:F,height:Y},g),onClick:Q,onContextMenu:D,onDoubleClick:T,onFocus:w,onBlur:y,onKeyDown:C,onMouseDown:N,onMouseEnter:x,onMouseLeave:b,onMouseMove:L,onMouseUp:U,onTouchEnd:ae,onTouchMove:W,onTouchStart:z,ref:Z},Ie.createElement(KN,null),r)))});var QN=["width","height","responsive","children","className","style","compact","title","desc"];function eB(e,t){if(e==null)return{};var r,a,o=tB(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var{width:r,height:a,responsive:o,children:n,className:i,style:u,compact:l,title:s,desc:f}=e,c=eB(e,QN),d=Xe(c);return l?Sr.createElement(Sr.Fragment,null,Sr.createElement(aa,{width:r,height:a}),Sr.createElement(Op,{otherAttributes:d,title:s,desc:f},n)):Sr.createElement(Y0,{className:i,style:u,width:r,height:a,responsive:o??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},Sr.createElement(Op,{otherAttributes:d,title:s,desc:f,ref:t},Sr.createElement(UI,null,n)))});function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var t=1;teC.createElement(Q0,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:cB,tooltipPayloadSearcher:Vb,categoricalChartProps:e,ref:t}));var pB=(e,t)=>{let r=new Array(e.length+t.length);for(let a=0;a({classGroupId:e,validator:t}),uC=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ls="-",tC=[],hB="arbitrary..",gB=e=>{let t=xB(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return vB(i);let u=i.split(Ls),l=u[0]===""&&u.length>1?1:0;return lC(u,l,t)},getConflictingClassGroupIds:(i,u)=>{if(u){let l=a[i],s=r[i];return l?s?pB(s,l):l:s||tC}return r[i]||tC}}},lC=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;let o=e[t],n=r.nextPart.get(o);if(n){let s=lC(e,t+1,n);if(s)return s}let i=r.validators;if(i===null)return;let u=t===0?e.join(Ls):e.slice(t).join(Ls),l=i.length;for(let s=0;se.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),a=t.slice(0,r);return a?hB+a:void 0})(),xB=e=>{let{theme:t,classGroups:r}=e;return yB(r,t)},yB=(e,t)=>{let r=uC();for(let a in e){let o=e[a];Tp(o,r,a,t)}return r},Tp=(e,t,r,a)=>{let o=e.length;for(let n=0;n{if(typeof e=="string"){wB(e,t,r);return}if(typeof e=="function"){IB(e,t,r,a);return}CB(e,t,r,a)},wB=(e,t,r)=>{let a=e===""?t:sC(t,e);a.classGroupId=r},IB=(e,t,r,a)=>{if(SB(e)){Tp(e(a),t,r,a);return}t.validators===null&&(t.validators=[]),t.validators.push(mB(r,e))},CB=(e,t,r,a)=>{let o=Object.entries(e),n=o.length;for(let i=0;i{let r=e,a=t.split(Ls),o=a.length;for(let n=0;n"isThemeGetter"in e&&e.isThemeGetter===!0,LB=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),a=Object.create(null),o=(n,i)=>{r[n]=i,t++,t>e&&(t=0,a=r,r=Object.create(null))};return{get(n){let i=r[n];if(i!==void 0)return i;if((i=a[n])!==void 0)return o(n,i),i},set(n,i){n in r?r[n]=i:o(n,i)}}},Mp="!",rC=":",PB=[],aC=(e,t,r,a,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:o}),AB=e=>{let{prefix:t,experimentalParseClassName:r}=e,a=o=>{let n=[],i=0,u=0,l=0,s,f=o.length;for(let m=0;ml?s-l:void 0;return aC(n,p,d,h)};if(t){let o=t+rC,n=a;a=i=>i.startsWith(o)?n(i.slice(o.length)):aC(PB,!1,i,void 0,!0)}if(r){let o=a;a=n=>r({className:n,parseClassName:o})}return a},OB=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{t.set(r,1e6+a)}),r=>{let a=[],o=[];for(let n=0;n0&&(o.sort(),a.push(...o),o=[]),a.push(i)):o.push(i)}return o.length>0&&(o.sort(),a.push(...o)),a}},kB=e=>({cache:LB(e.cacheSize),parseClassName:AB(e),sortModifiers:OB(e),postfixLookupClassGroupIds:EB(e),...gB(e)}),EB=e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let a=0;a{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:n,postfixLookupClassGroupIds:i}=t,u=[],l=e.trim().split(DB),s="";for(let f=l.length-1;f>=0;f-=1){let c=l[f],{isExternal:d,modifiers:p,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:g}=r(c);if(d){s=c+(s.length>0?" "+s:s);continue}let v=!!g,S;if(v){let M=m.substring(0,g);S=a(M);let O=S&&i[S]?a(m):void 0;O&&O!==S&&(S=O,v=!1)}else S=a(m);if(!S){if(!v){s=c+(s.length>0?" "+s:s);continue}if(S=a(m),!S){s=c+(s.length>0?" "+s:s);continue}v=!1}let I=p.length===0?"":p.length===1?p[0]:n(p).join(":"),A=h?I+Mp:I,P=A+S;if(u.indexOf(P)>-1)continue;u.push(P);let k=o(S,v);for(let M=0;M0?" "+s:s)}return s},TB=(...e)=>{let t=0,r,a,o="";for(;t{if(typeof e=="string")return e;let t,r="";for(let a=0;a{let r,a,o,n,i=l=>{let s=t.reduce((f,c)=>c(f),e());return r=kB(s),a=r.cache.get,o=r.cache.set,n=u,u(l)},u=l=>{let s=a(l);if(s)return s;let f=MB(l,r);return o(l,f),f};return n=i,(...l)=>n(TB(...l))},_B=[],je=e=>{let t=r=>r[e]||_B;return t.isThemeGetter=!0,t},cC=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,dC=/^\((?:(\w[\w-]*):)?(.+)\)$/i,NB=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,BB=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,FB=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jB=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zB=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,UB=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vr=e=>NB.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),ir=e=>!!e&&Number.isInteger(Number(e)),Dp=e=>e.endsWith("%")&&re(e.slice(0,-1)),Lr=e=>BB.test(e),pC=()=>!0,qB=e=>FB.test(e)&&!jB.test(e),Rp=()=>!1,HB=e=>zB.test(e),WB=e=>UB.test(e),VB=e=>!K(e)&&!X(e),GB=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),KB=e=>Gr(e,gC,Rp),K=e=>cC.test(e),Ta=e=>Gr(e,vC,qB),oC=e=>Gr(e,tF,re),$B=e=>Gr(e,yC,pC),XB=e=>Gr(e,xC,Rp),nC=e=>Gr(e,mC,Rp),YB=e=>Gr(e,hC,WB),Cs=e=>Gr(e,bC,HB),X=e=>dC.test(e),ui=e=>Ra(e,vC),ZB=e=>Ra(e,xC),iC=e=>Ra(e,mC),JB=e=>Ra(e,gC),QB=e=>Ra(e,hC),Ss=e=>Ra(e,bC,!0),eF=e=>Ra(e,yC,!0),Gr=(e,t,r)=>{let a=cC.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},Ra=(e,t,r=!1)=>{let a=dC.exec(e);return a?a[1]?t(a[1]):r:!1},mC=e=>e==="position"||e==="percentage",hC=e=>e==="image"||e==="url",gC=e=>e==="length"||e==="size"||e==="bg-size",vC=e=>e==="length",tF=e=>e==="number",xC=e=>e==="family-name",yC=e=>e==="number"||e==="weight",bC=e=>e==="shadow";var rF=()=>{let e=je("color"),t=je("font"),r=je("text"),a=je("font-weight"),o=je("tracking"),n=je("leading"),i=je("breakpoint"),u=je("container"),l=je("spacing"),s=je("radius"),f=je("shadow"),c=je("inset-shadow"),d=je("text-shadow"),p=je("drop-shadow"),h=je("blur"),m=je("perspective"),g=je("aspect"),v=je("ease"),S=je("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...A(),X,K],k=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],O=()=>[X,K,l],j=()=>[Vr,"full","auto",...O()],B=()=>[ir,"none","subgrid",X,K],$=()=>["auto",{span:["full",ir,X,K]},ir,X,K],F=()=>[ir,"auto",X,K],Y=()=>["auto","min","max","fr",X,K],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],x=()=>["auto",...O()],b=()=>[Vr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],L=()=>[Vr,"screen","full","dvw","lvw","svw","min","max","fit",...O()],w=()=>[Vr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...O()],y=()=>[e,X,K],C=()=>[...A(),iC,nC,{position:[X,K]}],D=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",JB,KB,{size:[X,K]}],N=()=>[Dp,ui,Ta],U=()=>["","none","full",s,X,K],z=()=>["",re,ui,Ta],W=()=>["solid","dashed","dotted","double"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[re,Dp,iC,nC],q=()=>["","none",h,X,K],V=()=>["none",re,X,K],_=()=>["none",re,X,K],Ce=()=>[re,X,K],ee=()=>[Vr,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Lr],breakpoint:[Lr],color:[pC],container:[Lr],"drop-shadow":[Lr],ease:["in","out","in-out"],font:[VB],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Lr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Lr],shadow:[Lr],spacing:["px",re],text:[Lr],"text-shadow":[Lr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Vr,K,X,g]}],container:["container"],"container-type":[{"@container":["","normal","size",X,K]}],"container-named":[GB],columns:[{columns:[re,K,X,u]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{"inset-s":j(),start:j()}],end:[{"inset-e":j(),end:j()}],"inset-bs":[{"inset-bs":j()}],"inset-be":[{"inset-be":j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[ir,"auto",X,K]}],basis:[{basis:[Vr,"full","auto",u,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,Vr,"auto","initial","none",K]}],grow:[{grow:["",re,X,K]}],shrink:[{shrink:["",re,X,K]}],order:[{order:[ir,"first","last","none",X,K]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pbs:[{pbs:O()}],pbe:[{pbe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:x()}],mx:[{mx:x()}],my:[{my:x()}],ms:[{ms:x()}],me:[{me:x()}],mbs:[{mbs:x()}],mbe:[{mbe:x()}],mt:[{mt:x()}],mr:[{mr:x()}],mb:[{mb:x()}],ml:[{ml:x()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:b()}],"inline-size":[{inline:["auto",...L()]}],"min-inline-size":[{"min-inline":["auto",...L()]}],"max-inline-size":[{"max-inline":["none",...L()]}],"block-size":[{block:["auto",...w()]}],"min-block-size":[{"min-block":["auto",...w()]}],"max-block-size":[{"max-block":["none",...w()]}],w:[{w:[u,"screen",...b()]}],"min-w":[{"min-w":[u,"screen","none",...b()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...b()]}],h:[{h:["screen","lh",...b()]}],"min-h":[{"min-h":["screen","lh","none",...b()]}],"max-h":[{"max-h":["screen","lh",...b()]}],"font-size":[{text:["base",r,ui,Ta]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,eF,$B]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Dp,K]}],"font-family":[{font:[ZB,XB,t]}],"font-features":[{"font-features":[K]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,X,K]}],"line-clamp":[{"line-clamp":[re,"none",X,oC]}],leading:[{leading:[n,...O()]}],"list-image":[{"list-image":["none",X,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",X,Ta]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[re,"auto",X,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"tab-size":[{tab:[ir,X,K]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X,K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:C()}],"bg-repeat":[{bg:D()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ir,X,K],radial:["",X,K],conic:[ir,X,K]},QB,YB]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-bs":[{"border-bs":y()}],"border-color-be":[{"border-be":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[re,X,K]}],"outline-w":[{outline:["",re,ui,Ta]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",f,Ss,Cs]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",c,Ss,Cs]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[re,Ta]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",d,Ss,Cs]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[re,X,K]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[X,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:C()}],"mask-repeat":[{mask:D()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,K]}],filter:[{filter:["","none",X,K]}],blur:[{blur:q()}],brightness:[{brightness:[re,X,K]}],contrast:[{contrast:[re,X,K]}],"drop-shadow":[{"drop-shadow":["","none",p,Ss,Cs]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",re,X,K]}],"hue-rotate":[{"hue-rotate":[re,X,K]}],invert:[{invert:["",re,X,K]}],saturate:[{saturate:[re,X,K]}],sepia:[{sepia:["",re,X,K]}],"backdrop-filter":[{"backdrop-filter":["","none",X,K]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[re,X,K]}],"backdrop-contrast":[{"backdrop-contrast":[re,X,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,X,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,X,K]}],"backdrop-invert":[{"backdrop-invert":["",re,X,K]}],"backdrop-opacity":[{"backdrop-opacity":[re,X,K]}],"backdrop-saturate":[{"backdrop-saturate":[re,X,K]}],"backdrop-sepia":[{"backdrop-sepia":["",re,X,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",X,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",X,K]}],ease:[{ease:["linear","initial",v,X,K]}],delay:[{delay:[re,X,K]}],animate:[{animate:["none",S,X,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,X,K]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:V()}],"rotate-x":[{"rotate-x":V()}],"rotate-y":[{"rotate-y":V()}],"rotate-z":[{"rotate-z":V()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[X,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[ir,X,K]}],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X,K]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":y()}],"scrollbar-track-color":[{"scrollbar-track":y()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mbs":[{"scroll-mbs":O()}],"scroll-mbe":[{"scroll-mbe":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pbs":[{"scroll-pbs":O()}],"scroll-pbe":[{"scroll-pbe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X,K]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[re,ui,Ta,oC]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var wC=RB(rF);function lt(...e){return wC(J(e))}import{jsx as zo}from"react/jsx-runtime";function IC({className:e,...t}){return zo("div",{"data-slot":"card",className:lt("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...t})}function CC({className:e,...t}){return zo("div",{"data-slot":"card-header",className:lt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function SC({className:e,...t}){return zo("div",{"data-slot":"card-title",className:lt("leading-none font-semibold",e),...t})}function LC({className:e,...t}){return zo("div",{"data-slot":"card-description",className:lt("text-sm text-muted-foreground",e),...t})}function PC({className:e,...t}){return zo("div",{"data-slot":"card-content",className:lt("px-6",e),...t})}function AC({className:e,...t}){return zo("div",{"data-slot":"card-footer",className:lt("flex items-center px-6 [.border-t]:pt-6",e),...t})}import*as Kr from"react";import{Fragment as uF,jsx as _t,jsxs as li}from"react/jsx-runtime";var aF={light:"",dark:".dark"},oF={width:320,height:200},kC=Kr.createContext(null);function nF(){let e=Kr.useContext(kC);if(!e)throw new Error("useChart must be used within a ");return e}function EC({id:e,className:t,children:r,config:a,initialDimension:o=oF,...n}){let i=Kr.useId(),u=`chart-${e??i.replace(/:/g,"")}`;return _t(kC.Provider,{value:{config:a},children:li("div",{"data-slot":"chart","data-chart":u,className:lt("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",t),...n,children:[_t(iF,{id:u,config:a}),_t(Jf,{initialDimension:o,children:r})]})})}var iF=({id:e,config:t})=>{let r=Object.entries(t).filter(([,a])=>a.theme??a.color);return r.length?_t("style",{dangerouslySetInnerHTML:{__html:Object.entries(aF).map(([a,o])=>` +${o} [data-chart=${e}] { +${r.map(([n,i])=>{let u=i.theme?.[a]??i.color;return u?` --color-${n}: ${u};`:null}).join(` +`)} +} +`).join(` +`)}}):null},DC=Qd;function MC({active:e,payload:t,className:r,indicator:a="dot",hideLabel:o=!1,hideIndicator:n=!1,label:i,labelFormatter:u,labelClassName:l,formatter:s,color:f,nameKey:c,labelKey:d}){let{config:p}=nF(),h=Kr.useMemo(()=>{if(o||!t?.length)return null;let[g]=t,v=`${d??g?.dataKey??g?.name??"value"}`,S=OC(p,g,v),I=!d&&typeof i=="string"?p[i]?.label??i:S?.label;return u?_t("div",{className:lt("font-medium",l),children:u(I,t)}):I?_t("div",{className:lt("font-medium",l),children:I}):null},[i,u,t,o,l,p,d]);if(!e||!t?.length)return null;let m=t.length===1&&a!=="dot";return li("div",{className:lt("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[m?null:h,_t("div",{className:"grid gap-1.5",children:t.filter(g=>g.type!=="none").map((g,v)=>{let S=`${c??g.name??g.dataKey??"value"}`,I=OC(p,g,S),A=f??g.payload?.fill??g.color;return _t("div",{className:lt("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",a==="dot"&&"items-center"),children:s&&g?.value!==void 0&&g.name?s(g.value,g.name,g,v,g.payload):li(uF,{children:[I?.icon?_t(I.icon,{}):!n&&_t("div",{className:lt("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":a==="dot","w-1":a==="line","w-0 border-[1.5px] border-dashed bg-transparent":a==="dashed","my-0.5":m&&a==="dashed"}),style:{"--color-bg":A,"--color-border":A}}),li("div",{className:lt("flex flex-1 justify-between leading-none",m?"items-end":"items-center"),children:[li("div",{className:"grid gap-1.5",children:[m?h:null,_t("span",{className:"text-muted-foreground",children:I?.label??g.name})]}),g.value!=null&&_t("span",{className:"font-mono font-medium text-foreground tabular-nums",children:typeof g.value=="number"?g.value.toLocaleString():String(g.value)})]})]})},v)})})]})}function OC(e,t,r){if(typeof t!="object"||t===null)return;let a="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0,o=r;return r in t&&typeof t[r]=="string"?o=t[r]:a&&r in a&&typeof a[r]=="string"&&(o=a[r]),o in e?e[o]:e[r]}import{jsx as Wt,jsxs as si}from"react/jsx-runtime";var Pre="A linear line chart",lF=[{month:"January",desktop:186},{month:"February",desktop:305},{month:"March",desktop:237},{month:"April",desktop:73},{month:"May",desktop:209},{month:"June",desktop:214}],sF={desktop:{label:"Desktop",color:"var(--chart-1)"}};function Are(){return si(IC,{children:[si(CC,{children:[Wt(SC,{children:"Line Chart - Linear"}),Wt(LC,{children:"January - June 2024"})]}),Wt(PC,{children:Wt(EC,{config:sF,children:si(Ep,{accessibilityLayer:!0,data:lF,margin:{left:12,right:12},children:[Wt(ps,{vertical:!1}),Wt(hs,{dataKey:"month",tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:e=>e.slice(0,3)}),Wt(DC,{cursor:!1,content:Wt(MC,{hideLabel:!0})}),Wt(ms,{dataKey:"desktop",type:"linear",stroke:"var(--color-desktop)",strokeWidth:2,dot:!1})]})})}),si(AC,{className:"flex-col items-start gap-2 text-sm",children:[si("div",{className:"flex gap-2 leading-none font-medium",children:["Trending up by 5.2% this month ",Wt(Uo,{className:"h-4 w-4"})]}),Wt("div",{className:"leading-none text-muted-foreground",children:"Showing total visitors for the last 6 months"})]})]})}export{Are as ChartLineLinear,Pre as description}; +/*! Bundled license information: + +decimal.js-light/decimal.js: + (*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE *) + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/trending-up.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/84167ee4c2f217d31707ae1eea9b858164765b49e75378e526640cb03f2e2224 b/b/84167ee4c2f217d31707ae1eea9b858164765b49e75378e526640cb03f2e2224 new file mode 100644 index 0000000000000000000000000000000000000000..7f9eb1b2cd7c97904fd03da496fee4bda577b154 --- /dev/null +++ b/b/84167ee4c2f217d31707ae1eea9b858164765b49e75378e526640cb03f2e2224 @@ -0,0 +1,131 @@ +"use client";var bf=Object.defineProperty;var ea=(e,t)=>{for(var a in t)bf(e,a,{get:t[a],enumerable:!0})};import*as of from"react";var kf=Math.pow(10,8)*24*60*60*1e3,sx=-kf,ro=6048e5,Jn=864e5;var Pf=3600;var es=Pf*24,lx=es*7,Rf=es*365.2425,Df=Rf/12,ix=Df*3,wr=Symbol.for("constructDateFrom");function $(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&wr in e?e[wr](t):e instanceof Date?new e.constructor(t):new Date(t)}function A(e,t){return $(t||e,e)}function ta(e,t,a){let o=A(e,a?.in);return isNaN(t)?$(a?.in||e,NaN):(t&&o.setDate(o.getDate()+t),o)}function no(e,t,a){let o=A(e,a?.in);if(isNaN(t))return $(a?.in||e,NaN);if(!t)return o;let r=o.getDate(),n=$(a?.in||e,o.getTime());n.setMonth(o.getMonth()+t+1,0);let s=n.getDate();return r>=s?n:(o.setFullYear(n.getFullYear(),n.getMonth(),r),o)}var Mf={};function st(){return Mf}function Ke(e,t){let a=st(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,r=A(e,t?.in),n=r.getDay(),s=(n=n.getTime()?o+1:a.getTime()>=l.getTime()?o:o-1}function Sr(e){let t=A(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function Ue(e,...t){let a=$.bind(null,e||t.find(o=>typeof o=="object"));return t.map(a)}function wt(e,t){let a=A(e,t?.in);return a.setHours(0,0,0,0),a}function aa(e,t,a){let[o,r]=Ue(a?.in,e,t),n=wt(o),s=wt(r),l=+n-Sr(n),i=+s-Sr(s);return Math.round((l-i)/Jn)}function ts(e,t){let a=so(e,t),o=$(t?.in||e,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),mt(o)}function as(e,t,a){return ta(e,t*7,a)}function os(e,t,a){return no(e,t*12,a)}function rs(e,t){let a,o=t?.in;return e.forEach(r=>{!o&&typeof r=="object"&&(o=$.bind(null,r));let n=A(r,o);(!a||a{!o&&typeof r=="object"&&(o=$.bind(null,r));let n=A(r,o);(!a||a>n||isNaN(+n))&&(a=n)}),$(o,a||NaN)}function ss(e,t,a){let[o,r]=Ue(a?.in,e,t);return+wt(o)==+wt(r)}function lo(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ls(e){return!(!lo(e)&&typeof e!="number"||isNaN(+A(e)))}function io(e,t,a){let[o,r]=Ue(a?.in,e,t),n=o.getFullYear()-r.getFullYear(),s=o.getMonth()-r.getMonth();return n*12+s}function is(e,t){let a=A(e,t?.in),o=a.getMonth();return a.setFullYear(a.getFullYear(),o+1,0),a.setHours(23,59,59,999),a}function uo(e,t){let[a,o]=Ue(e,t.start,t.end);return{start:a,end:o}}function us(e,t){let{start:a,end:o}=uo(t?.in,e),r=+a>+o,n=r?+a:+o,s=r?o:a;s.setHours(0,0,0,0),s.setDate(1);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,r=!r);let i=[];for(;+s<=n;)i.push($(a,s)),s.setMonth(s.getMonth()+l);return r?i.reverse():i}function ds(e,t){let a=A(e,t?.in);return a.setDate(1),a.setHours(0,0,0,0),a}function fs(e,t){let a=A(e,t?.in),o=a.getFullYear();return a.setFullYear(o+1,0,0),a.setHours(23,59,59,999),a}function fo(e,t){let a=A(e,t?.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}function cs(e,t){let{start:a,end:o}=uo(t?.in,e),r=+a>+o,n=r?+a:+o,s=r?o:a;s.setHours(0,0,0,0),s.setMonth(0,1);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,r=!r);let i=[];for(;+s<=n;)i.push($(a,s)),s.setFullYear(s.getFullYear()+l);return r?i.reverse():i}function co(e,t){let a=st(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,r=A(e,t?.in),n=r.getDay(),s=(n{let o,r=Of[e];return typeof r=="string"?o=r:t===1?o=r.one:o=r.other.replace("{{count}}",t.toString()),a?.addSuffix?a.comparison&&a.comparison>0?"in "+o:o+" ago":o};function po(e){return(t={})=>{let a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}var Af={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Tf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ff={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hs={date:po({formats:Af,defaultWidth:"full"}),time:po({formats:Tf,defaultWidth:"full"}),dateTime:po({formats:Ff,defaultWidth:"full"})};var Bf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gs=(e,t,a,o)=>Bf[e];function oa(e){return(t,a)=>{let o=a?.context?String(a.context):"standalone",r;if(o==="formatting"&&e.formattingValues){let s=e.defaultFormattingWidth||e.defaultWidth,l=a?.width?String(a.width):s;r=e.formattingValues[l]||e.formattingValues[s]}else{let s=e.defaultWidth,l=a?.width?String(a.width):e.defaultWidth;r=e.values[l]||e.values[s]}let n=e.argumentCallback?e.argumentCallback(t):t;return r[n]}}var Ef={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Nf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wf={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"]},qf={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"]},_f={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"}},Uf={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"}},Hf=(e,t)=>{let a=Number(e),o=a%100;if(o>20||o<10)switch(o%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},xs={ordinalNumber:Hf,era:oa({values:Ef,defaultWidth:"wide"}),quarter:oa({values:Nf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:oa({values:Wf,defaultWidth:"wide"}),day:oa({values:qf,defaultWidth:"wide"}),dayPeriod:oa({values:_f,defaultWidth:"wide",formattingValues:Uf,defaultFormattingWidth:"wide"})};function ra(e){return(t,a={})=>{let o=a.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],n=t.match(r);if(!n)return null;let s=n[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],i=Array.isArray(l)?Vf(l,f=>f.test(s)):zf(l,f=>f.test(s)),u;u=e.valueCallback?e.valueCallback(i):i,u=a.valueCallback?a.valueCallback(u):u;let d=t.slice(s.length);return{value:u,rest:d}}}function zf(e,t){for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}function Vf(e,t){for(let a=0;a{let o=t.match(e.matchPattern);if(!o)return null;let r=o[0],n=t.match(e.parsePattern);if(!n)return null;let s=e.valueCallback?e.valueCallback(n[0]):n[0];s=a.valueCallback?a.valueCallback(s):s;let l=t.slice(r.length);return{value:s,rest:l}}}var Gf=/^(\d+)(th|st|nd|rd)?/i,Yf=/\d+/i,Xf={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},jf={any:[/^b/i,/^(a|c)/i]},Kf={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$f={any:[/1/i,/2/i,/3/i,/4/i]},Zf={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},Qf={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]},Jf={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},ec={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]},tc={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},ac={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}},Cs={ordinalNumber:Ls({matchPattern:Gf,parsePattern:Yf,valueCallback:e=>parseInt(e,10)}),era:ra({matchPatterns:Xf,defaultMatchWidth:"wide",parsePatterns:jf,defaultParseWidth:"any"}),quarter:ra({matchPatterns:Kf,defaultMatchWidth:"wide",parsePatterns:$f,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ra({matchPatterns:Zf,defaultMatchWidth:"wide",parsePatterns:Qf,defaultParseWidth:"any"}),day:ra({matchPatterns:Jf,defaultMatchWidth:"wide",parsePatterns:ec,defaultParseWidth:"any"}),dayPeriod:ra({matchPatterns:tc,defaultMatchWidth:"any",parsePatterns:ac,defaultParseWidth:"any"})};var ht={code:"en-US",formatDistance:ms,formatLong:hs,formatRelative:gs,localize:xs,match:Cs,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Is(e,t){let a=A(e,t?.in);return aa(a,fo(a))+1}function na(e,t){let a=A(e,t?.in),o=+mt(a)-+ts(a);return Math.round(o/ro)+1}function mo(e,t){let a=A(e,t?.in),o=a.getFullYear(),r=st(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=$(t?.in||e,0);s.setFullYear(o+1,0,n),s.setHours(0,0,0,0);let l=Ke(s,t),i=$(t?.in||e,0);i.setFullYear(o,0,n),i.setHours(0,0,0,0);let u=Ke(i,t);return+a>=+l?o+1:+a>=+u?o:o-1}function ws(e,t){let a=st(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,r=mo(e,t),n=$(t?.in||e,0);return n.setFullYear(r,0,o),n.setHours(0,0,0,0),Ke(n,t)}function sa(e,t){let a=A(e,t?.in),o=+Ke(a,t)-+ws(a,t);return Math.round(o/ro)+1}function te(e,t){let a=e<0?"-":"",o=Math.abs(e).toString().padStart(t,"0");return a+o}var gt={y(e,t){let a=e.getFullYear(),o=a>0?a:1-a;return te(t==="yy"?o%100:o,t.length)},M(e,t){let a=e.getMonth();return t==="M"?String(a+1):te(a+1,2)},d(e,t){return te(e.getDate(),t.length)},a(e,t){let a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(e,t){return te(e.getHours()%12||12,t.length)},H(e,t){return te(e.getHours(),t.length)},m(e,t){return te(e.getMinutes(),t.length)},s(e,t){return te(e.getSeconds(),t.length)},S(e,t){let a=t.length,o=e.getMilliseconds(),r=Math.trunc(o*Math.pow(10,a-3));return te(r,t.length)}};var la={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yr={G:function(e,t,a){let o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(o,{width:"abbreviated"});case"GGGGG":return a.era(o,{width:"narrow"});case"GGGG":default:return a.era(o,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){let o=e.getFullYear(),r=o>0?o:1-o;return a.ordinalNumber(r,{unit:"year"})}return gt.y(e,t)},Y:function(e,t,a,o){let r=mo(e,o),n=r>0?r:1-r;if(t==="YY"){let s=n%100;return te(s,2)}return t==="Yo"?a.ordinalNumber(n,{unit:"year"}):te(n,t.length)},R:function(e,t){let a=so(e);return te(a,t.length)},u:function(e,t){let a=e.getFullYear();return te(a,t.length)},Q:function(e,t,a){let o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return te(o,2);case"Qo":return a.ordinalNumber(o,{unit:"quarter"});case"QQQ":return a.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,a){let o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return te(o,2);case"qo":return a.ordinalNumber(o,{unit:"quarter"});case"qqq":return a.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,a){let o=e.getMonth();switch(t){case"M":case"MM":return gt.M(e,t);case"Mo":return a.ordinalNumber(o+1,{unit:"month"});case"MMM":return a.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,a){let o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return te(o+1,2);case"Lo":return a.ordinalNumber(o+1,{unit:"month"});case"LLL":return a.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,a,o){let r=sa(e,o);return t==="wo"?a.ordinalNumber(r,{unit:"week"}):te(r,t.length)},I:function(e,t,a){let o=na(e);return t==="Io"?a.ordinalNumber(o,{unit:"week"}):te(o,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getDate(),{unit:"date"}):gt.d(e,t)},D:function(e,t,a){let o=Is(e);return t==="Do"?a.ordinalNumber(o,{unit:"dayOfYear"}):te(o,t.length)},E:function(e,t,a){let o=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(o,{width:"short",context:"formatting"});case"EEEE":default:return a.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,a,o){let r=e.getDay(),n=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return te(n,2);case"eo":return a.ordinalNumber(n,{unit:"day"});case"eee":return a.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"});case"eeee":default:return a.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,a,o){let r=e.getDay(),n=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return te(n,t.length);case"co":return a.ordinalNumber(n,{unit:"day"});case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"});case"cccc":default:return a.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,a){let o=e.getDay(),r=o===0?7:o;switch(t){case"i":return String(r);case"ii":return te(r,t.length);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return a.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(o,{width:"short",context:"formatting"});case"iiii":default:return a.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,a){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,a){let o=e.getHours(),r;switch(o===12?r=la.noon:o===0?r=la.midnight:r=o/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,a){let o=e.getHours(),r;switch(o>=17?r=la.evening:o>=12?r=la.afternoon:o>=4?r=la.morning:r=la.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){let o=e.getHours()%12;return o===0&&(o=12),a.ordinalNumber(o,{unit:"hour"})}return gt.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getHours(),{unit:"hour"}):gt.H(e,t)},K:function(e,t,a){let o=e.getHours()%12;return t==="Ko"?a.ordinalNumber(o,{unit:"hour"}):te(o,t.length)},k:function(e,t,a){let o=e.getHours();return o===0&&(o=24),t==="ko"?a.ordinalNumber(o,{unit:"hour"}):te(o,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):gt.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getSeconds(),{unit:"second"}):gt.s(e,t)},S:function(e,t){return gt.S(e,t)},X:function(e,t,a){let o=e.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return ys(o);case"XXXX":case"XX":return Et(o);case"XXXXX":case"XXX":default:return Et(o,":")}},x:function(e,t,a){let o=e.getTimezoneOffset();switch(t){case"x":return ys(o);case"xxxx":case"xx":return Et(o);case"xxxxx":case"xxx":default:return Et(o,":")}},O:function(e,t,a){let o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ss(o,":");case"OOOO":default:return"GMT"+Et(o,":")}},z:function(e,t,a){let o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ss(o,":");case"zzzz":default:return"GMT"+Et(o,":")}},t:function(e,t,a){let o=Math.trunc(+e/1e3);return te(o,t.length)},T:function(e,t,a){return te(+e,t.length)}};function Ss(e,t=""){let a=e>0?"-":"+",o=Math.abs(e),r=Math.trunc(o/60),n=o%60;return n===0?a+String(r):a+String(r)+t+te(n,2)}function ys(e,t){return e%60===0?(e>0?"-":"+")+te(Math.abs(e)/60,2):Et(e,t)}function Et(e,t=""){let a=e>0?"-":"+",o=Math.abs(e),r=te(Math.trunc(o/60),2),n=te(o%60,2);return a+r+t+n}var vs=(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"})}},bs=(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"})}},oc=(e,t)=>{let a=e.match(/(P+)(p+)?/)||[],o=a[1],r=a[2];if(!r)return vs(e,t);let n;switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",vs(o,t)).replace("{{time}}",bs(r,t))},ks={p:bs,P:oc};var rc=/^D+$/,nc=/^Y+$/,sc=["D","DD","YY","YYYY"];function Ps(e){return rc.test(e)}function Rs(e){return nc.test(e)}function Ds(e,t,a){let o=lc(e,t,a);if(console.warn(o),sc.includes(e))throw new RangeError(o)}function lc(e,t,a){let o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var ic=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,dc=/^'([^]*?)'?$/,fc=/''/g,cc=/[a-zA-Z]/;function xt(e,t,a){let o=st(),r=a?.locale??o.locale??ht,n=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,l=A(e,a?.in);if(!ls(l))throw new RangeError("Invalid time value");let i=t.match(uc).map(d=>{let f=d[0];if(f==="p"||f==="P"){let p=ks[f];return p(d,r.formatLong)}return d}).join("").match(ic).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let f=d[0];if(f==="'")return{isToken:!1,value:pc(d)};if(yr[f])return{isToken:!0,value:d};if(f.match(cc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:d}});r.localize.preprocessor&&(i=r.localize.preprocessor(l,i));let u={firstWeekContainsDate:n,weekStartsOn:s,locale:r};return i.map(d=>{if(!d.isToken)return d.value;let f=d.value;(!a?.useAdditionalWeekYearTokens&&Rs(f)||!a?.useAdditionalDayOfYearTokens&&Ps(f))&&Ds(f,t,String(e));let p=yr[f[0]];return p(l,f,r.localize,u)}).join("")}function pc(e){let t=e.match(dc);return t?t[1].replace(fc,"'"):e}function Ms(e,t){let a=A(e,t?.in),o=a.getFullYear(),r=a.getMonth(),n=$(a,0);return n.setFullYear(o,r+1,0),n.setHours(0,0,0,0),n.getDate()}function Os(e,t){return A(e,t?.in).getMonth()}function As(e,t){return A(e,t?.in).getFullYear()}function Ts(e,t){return+A(e)>+A(t)}function Fs(e,t){return+A(e)<+A(t)}function Bs(e,t,a){let[o,r]=Ue(a?.in,e,t);return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()}function Es(e,t,a){let[o,r]=Ue(a?.in,e,t);return o.getFullYear()===r.getFullYear()}function Ns(e,t,a){let o=A(e,a?.in),r=o.getFullYear(),n=o.getDate(),s=$(a?.in||e,0);s.setFullYear(r,t,15),s.setHours(0,0,0,0);let l=Ms(s);return o.setMonth(t,Math.min(n,l)),o}function Ws(e,t,a){let o=A(e,a?.in);return isNaN(+o)?$(a?.in||e,NaN):(o.setFullYear(t),o)}import{forwardRef as hc,createElement as gc}from"react";var qs=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ho=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as mc,createElement as Us}from"react";var _s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Hs=mc(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:s,...l},i)=>Us("svg",{ref:i,..._s,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:ho("lucide",r),...l},[...s.map(([u,d])=>Us(u,d)),...Array.isArray(n)?n:[n]]));var He=(e,t)=>{let a=hc(({className:o,...r},n)=>gc(Hs,{ref:n,iconNode:t,className:ho(`lucide-${qs(e)}`,o),...r}));return a.displayName=`${e}`,a};var Pa=He("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);var Ra=He("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var St=He("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var Da=He("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var Ma=He("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var Oa=He("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);function zs(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),$s=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),Co="-",Vs=[],Cc="arbitrary..",Ic=e=>{let t=Sc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return wc(s);let l=s.split(Co),i=l[0]===""&&l.length>1?1:0;return Zs(l,i,t)},getConflictingClassGroupIds:(s,l)=>{if(l){let i=o[s],u=a[s];return i?u?xc(u,i):i:u||Vs}return a[s]||Vs}}},Zs=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],n=a.nextPart.get(r);if(n){let u=Zs(e,t+1,n);if(u)return u}let s=a.validators;if(s===null)return;let l=t===0?e.join(Co):e.slice(t).join(Co),i=s.length;for(let u=0;ue.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?Cc+o:void 0})(),Sc=e=>{let{theme:t,classGroups:a}=e;return yc(a,t)},yc=(e,t)=>{let a=$s();for(let o in e){let r=e[o];kr(r,a,o,t)}return a},kr=(e,t,a,o)=>{let r=e.length;for(let n=0;n{if(typeof e=="string"){bc(e,t,a);return}if(typeof e=="function"){kc(e,t,a,o);return}Pc(e,t,a,o)},bc=(e,t,a)=>{let o=e===""?t:Qs(t,e);o.classGroupId=a},kc=(e,t,a,o)=>{if(Rc(e)){kr(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Lc(a,e))},Pc=(e,t,a,o)=>{let r=Object.entries(e),n=r.length;for(let s=0;s{let a=e,o=t.split(Co),r=o.length;for(let n=0;n"isThemeGetter"in e&&e.isThemeGetter===!0,Dc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(n,s)=>{a[n]=s,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(n){let s=a[n];if(s!==void 0)return s;if((s=o[n])!==void 0)return r(n,s),s},set(n,s){n in a?a[n]=s:r(n,s)}}},br="!",Gs=":",Mc=[],Ys=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),Oc=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=r=>{let n=[],s=0,l=0,i=0,u,d=r.length;for(let c=0;ci?u-i:void 0;return Ys(n,m,p,g)};if(t){let r=t+Gs,n=o;o=s=>s.startsWith(r)?n(s.slice(r.length)):Ys(Mc,!1,s,void 0,!0)}if(a){let r=o;o=n=>a({className:n,parseClassName:r})}return o},Ac=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],r=[];for(let n=0;n0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},Tc=e=>({cache:Dc(e.cacheSize),parseClassName:Oc(e),sortModifiers:Ac(e),postfixLookupClassGroupIds:Fc(e),...Ic(e)}),Fc=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:n,postfixLookupClassGroupIds:s}=t,l=[],i=e.trim().split(Bc),u="";for(let d=i.length-1;d>=0;d-=1){let f=i[d],{isExternal:p,modifiers:m,hasImportantModifier:g,baseClassName:c,maybePostfixModifierPosition:h}=a(f);if(p){u=f+(u.length>0?" "+u:u);continue}let L=!!h,x;if(L){let y=c.substring(0,h);x=o(y);let S=x&&s[x]?o(c):void 0;S&&S!==x&&(x=S,L=!1)}else x=o(c);if(!x){if(!L){u=f+(u.length>0?" "+u:u);continue}if(x=o(c),!x){u=f+(u.length>0?" "+u:u);continue}L=!1}let C=m.length===0?"":m.length===1?m[0]:n(m).join(":"),w=g?C+br:C,v=w+x;if(l.indexOf(v)>-1)continue;l.push(v);let I=r(x,L);for(let y=0;y0?" "+u:u)}return u},Nc=(...e)=>{let t=0,a,o,r="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,r,n,s=i=>{let u=t.reduce((d,f)=>f(d),e());return a=Tc(u),o=a.cache.get,r=a.cache.set,n=l,l(i)},l=i=>{let u=o(i);if(u)return u;let d=Ec(i,a);return r(i,d),d};return n=s,(...i)=>n(Nc(...i))},qc=[],we=e=>{let t=a=>a[e]||qc;return t.isThemeGetter=!0,t},el=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_c=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Uc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Vc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Gc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yt=e=>_c.test(e),G=e=>!!e&&!Number.isNaN(Number(e)),lt=e=>!!e&&Number.isInteger(Number(e)),vr=e=>e.endsWith("%")&&G(e.slice(0,-1)),Lt=e=>Uc.test(e),al=()=>!0,Yc=e=>Hc.test(e)&&!zc.test(e),Pr=()=>!1,Xc=e=>Vc.test(e),jc=e=>Gc.test(e),Kc=e=>!D(e)&&!M(e),$c=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Zc=e=>vt(e,nl,Pr),D=e=>el.test(e),Nt=e=>vt(e,sl,Yc),Xs=e=>vt(e,np,G),Qc=e=>vt(e,il,al),Jc=e=>vt(e,ll,Pr),js=e=>vt(e,ol,Pr),ep=e=>vt(e,rl,jc),xo=e=>vt(e,ul,Xc),M=e=>tl.test(e),Aa=e=>Wt(e,sl),tp=e=>Wt(e,ll),Ks=e=>Wt(e,ol),ap=e=>Wt(e,nl),op=e=>Wt(e,rl),Lo=e=>Wt(e,ul,!0),rp=e=>Wt(e,il,!0),vt=(e,t,a)=>{let o=el.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},Wt=(e,t,a=!1)=>{let o=tl.exec(e);return o?o[1]?t(o[1]):a:!1},ol=e=>e==="position"||e==="percentage",rl=e=>e==="image"||e==="url",nl=e=>e==="length"||e==="size"||e==="bg-size",sl=e=>e==="length",np=e=>e==="number",ll=e=>e==="family-name",il=e=>e==="number"||e==="weight",ul=e=>e==="shadow";var sp=()=>{let e=we("color"),t=we("font"),a=we("text"),o=we("font-weight"),r=we("tracking"),n=we("leading"),s=we("breakpoint"),l=we("container"),i=we("spacing"),u=we("radius"),d=we("shadow"),f=we("inset-shadow"),p=we("text-shadow"),m=we("drop-shadow"),g=we("blur"),c=we("perspective"),h=we("aspect"),L=we("ease"),x=we("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],v=()=>[...w(),M,D],I=()=>["auto","hidden","clip","visible","scroll"],y=()=>["auto","contain","none"],S=()=>[M,D,i],R=()=>[yt,"full","auto",...S()],O=()=>[lt,"none","subgrid",M,D],T=()=>["auto",{span:["full",lt,M,D]},lt,M,D],N=()=>[lt,"auto",M,D],_=()=>["auto","min","max","fr",M,D],E=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...S()],V=()=>[yt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],F=()=>[yt,"screen","full","dvw","lvw","svw","min","max","fit",...S()],U=()=>[yt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],b=()=>[e,M,D],de=()=>[...w(),Ks,js,{position:[M,D]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Oe=()=>["auto","cover","contain",ap,Zc,{size:[M,D]}],Pe=()=>[vr,Aa,Nt],le=()=>["","none","full",u,M,D],fe=()=>["",G,Aa,Nt],B=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[G,vr,Ks,js],Z=()=>["","none",g,M,D],J=()=>["none",G,M,D],ie=()=>["none",G,M,D],Ae=()=>[G,M,D],Ie=()=>[yt,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Lt],breakpoint:[Lt],color:[al],container:[Lt],"drop-shadow":[Lt],ease:["in","out","in-out"],font:[Kc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Lt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Lt],shadow:[Lt],spacing:["px",G],text:[Lt],"text-shadow":[Lt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",yt,D,M,h]}],container:["container"],"container-type":[{"@container":["","normal","size",M,D]}],"container-named":[$c],columns:[{columns:[G,D,M,l]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:y()}],"overscroll-x":[{"overscroll-x":y()}],"overscroll-y":[{"overscroll-y":y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[lt,"auto",M,D]}],basis:[{basis:[yt,"full","auto",l,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[G,yt,"auto","initial","none",D]}],grow:[{grow:["",G,M,D]}],shrink:[{shrink:["",G,M,D]}],order:[{order:[lt,"first","last","none",M,D]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...E(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...E()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mbs:[{mbs:W()}],mbe:[{mbe:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...U()]}],"min-block-size":[{"min-block":["auto",...U()]}],"max-block-size":[{"max-block":["none",...U()]}],w:[{w:[l,"screen",...V()]}],"min-w":[{"min-w":[l,"screen","none",...V()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",a,Aa,Nt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,rp,Qc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vr,D]}],"font-family":[{font:[tp,Jc,t]}],"font-features":[{"font-features":[D]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,M,D]}],"line-clamp":[{"line-clamp":[G,"none",M,Xs]}],leading:[{leading:[n,...S()]}],"list-image":[{"list-image":["none",M,D]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:b()}],"text-color":[{text:b()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:[G,"from-font","auto",M,Nt]}],"text-decoration-color":[{decoration:b()}],"underline-offset":[{"underline-offset":[G,"auto",M,D]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"tab-size":[{tab:[lt,M,D]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,D]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M,D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:Oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},lt,M,D],radial:["",M,D],conic:[lt,M,D]},op,ep]}],"bg-color":[{bg:b()}],"gradient-from-pos":[{from:Pe()}],"gradient-via-pos":[{via:Pe()}],"gradient-to-pos":[{to:Pe()}],"gradient-from":[{from:b()}],"gradient-via":[{via:b()}],"gradient-to":[{to:b()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-bs":[{"border-bs":fe()}],"border-w-be":[{"border-be":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...B(),"hidden","none"]}],"divide-style":[{divide:[...B(),"hidden","none"]}],"border-color":[{border:b()}],"border-color-x":[{"border-x":b()}],"border-color-y":[{"border-y":b()}],"border-color-s":[{"border-s":b()}],"border-color-e":[{"border-e":b()}],"border-color-bs":[{"border-bs":b()}],"border-color-be":[{"border-be":b()}],"border-color-t":[{"border-t":b()}],"border-color-r":[{"border-r":b()}],"border-color-b":[{"border-b":b()}],"border-color-l":[{"border-l":b()}],"divide-color":[{divide:b()}],"outline-style":[{outline:[...B(),"none","hidden"]}],"outline-offset":[{"outline-offset":[G,M,D]}],"outline-w":[{outline:["",G,Aa,Nt]}],"outline-color":[{outline:b()}],shadow:[{shadow:["","none",d,Lo,xo]}],"shadow-color":[{shadow:b()}],"inset-shadow":[{"inset-shadow":["none",f,Lo,xo]}],"inset-shadow-color":[{"inset-shadow":b()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:b()}],"ring-offset-w":[{"ring-offset":[G,Nt]}],"ring-offset-color":[{"ring-offset":b()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":b()}],"text-shadow":[{"text-shadow":["none",p,Lo,xo]}],"text-shadow-color":[{"text-shadow":b()}],opacity:[{opacity:[G,M,D]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":b()}],"mask-image-linear-to-color":[{"mask-linear-to":b()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":b()}],"mask-image-t-to-color":[{"mask-t-to":b()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":b()}],"mask-image-r-to-color":[{"mask-r-to":b()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":b()}],"mask-image-b-to-color":[{"mask-b-to":b()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":b()}],"mask-image-l-to-color":[{"mask-l-to":b()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":b()}],"mask-image-x-to-color":[{"mask-x-to":b()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":b()}],"mask-image-y-to-color":[{"mask-y-to":b()}],"mask-image-radial":[{"mask-radial":[M,D]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":b()}],"mask-image-radial-to-color":[{"mask-radial-to":b()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":b()}],"mask-image-conic-to-color":[{"mask-conic-to":b()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:Oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,D]}],filter:[{filter:["","none",M,D]}],blur:[{blur:Z()}],brightness:[{brightness:[G,M,D]}],contrast:[{contrast:[G,M,D]}],"drop-shadow":[{"drop-shadow":["","none",m,Lo,xo]}],"drop-shadow-color":[{"drop-shadow":b()}],grayscale:[{grayscale:["",G,M,D]}],"hue-rotate":[{"hue-rotate":[G,M,D]}],invert:[{invert:["",G,M,D]}],saturate:[{saturate:[G,M,D]}],sepia:[{sepia:["",G,M,D]}],"backdrop-filter":[{"backdrop-filter":["","none",M,D]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[G,M,D]}],"backdrop-contrast":[{"backdrop-contrast":[G,M,D]}],"backdrop-grayscale":[{"backdrop-grayscale":["",G,M,D]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,M,D]}],"backdrop-invert":[{"backdrop-invert":["",G,M,D]}],"backdrop-opacity":[{"backdrop-opacity":[G,M,D]}],"backdrop-saturate":[{"backdrop-saturate":[G,M,D]}],"backdrop-sepia":[{"backdrop-sepia":["",G,M,D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,D]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[G,"initial",M,D]}],ease:[{ease:["linear","initial",L,M,D]}],delay:[{delay:[G,M,D]}],animate:[{animate:["none",x,M,D]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[c,M,D]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:Ae()}],"skew-x":[{"skew-x":Ae()}],"skew-y":[{"skew-y":Ae()}],transform:[{transform:[M,D,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ie()}],"translate-x":[{"translate-x":Ie()}],"translate-y":[{"translate-y":Ie()}],"translate-z":[{"translate-z":Ie()}],"translate-none":["translate-none"],zoom:[{zoom:[lt,M,D]}],accent:[{accent:b()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:b()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M,D]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":b()}],"scrollbar-track-color":[{"scrollbar-track":b()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M,D]}],fill:[{fill:["none",...b()]}],"stroke-w":[{stroke:[G,Aa,Nt,Xs]}],stroke:[{stroke:["none",...b()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var dl=Wc(sp);function H(...e){return dl(go(e))}var fl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cl=go,pl=(e,t)=>a=>{var o;if(t?.variants==null)return cl(e,a?.class,a?.className);let{variants:r,defaultVariants:n}=t,s=Object.keys(r).map(u=>{let d=a?.[u],f=n?.[u];if(d===null)return null;let p=fl(d)||fl(f);return r[u][p]}),l=a&&Object.entries(a).reduce((u,d)=>{let[f,p]=d;return p===void 0||(u[f]=p),u},{}),i=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,d)=>{let{class:f,className:p,...m}=d;return Object.entries(m).every(g=>{let[c,h]=g;return Array.isArray(h)?h.includes({...n,...l}[c]):{...n,...l}[c]===h})?[...u,f,p]:u},[]);return cl(e,s,i,a?.class,a?.className)};import*as Sl from"react";import*as Cl from"react";import*as Il from"react-dom";var wo={};ea(wo,{Root:()=>ip,Slot:()=>ip,Slottable:()=>up,createSlot:()=>$e,createSlottable:()=>Ll});import*as be from"react";import*as hl from"react";function ml(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lp(...e){return t=>{let a=!1,o=e.map(r=>{let n=ml(r,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let r=0;r{let{children:r,...n}=a,s=null,l=!1,i=[];gl(r)&&typeof Io=="function"&&(r=Io(r._payload)),be.Children.forEach(r,p=>{if(pp(p)){l=!0;let m=p,g="child"in m.props?m.props.child:m.props.children;gl(g)&&typeof Io=="function"&&(g=Io(g._payload)),s=dp(m,g),i.push(s?.props?.children)}else i.push(p)}),s?s=be.cloneElement(s,void 0,i):!l&&be.Children.count(r)===1&&be.isValidElement(r)&&(s=r);let u=s?cp(s):void 0,d=ue(o,u);if(!s){if(r||r===0)throw new Error(l?xp(e):gp(e));return r}let f=fp(n,s.props??{});return s.type!==be.Fragment&&(f.ref=o?d:u),be.cloneElement(s,f)});return t.displayName=`${e}.Slot`,t}var ip=$e("Slot"),xl=Symbol.for("radix.slottable");function Ll(e){let t=a=>"child"in a?a.children(a.child):a.children;return t.displayName=`${e}.Slottable`,t.__radixId=xl,t}var up=Ll("Slottable"),dp=(e,t)=>{if("child"in e.props){let a=e.props.child;return be.isValidElement(a)?be.cloneElement(a,void 0,e.props.children(a.props.children)):null}return be.isValidElement(t)?t:null};function fp(e,t){let a={...t};for(let o in t){let r=e[o],n=t[o];/^on[A-Z]/.test(o)?r&&n?a[o]=(...l)=>{let i=n(...l);return r(...l),i}:r&&(a[o]=r):o==="style"?a[o]={...r,...n}:o==="className"&&(a[o]=[r,n].filter(Boolean).join(" "))}return{...e,...a}}function cp(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function pp(e){return be.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xl}var mp=Symbol.for("react.lazy");function gl(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===mp&&"_payload"in e&&hp(e._payload)}function hp(e){return typeof e=="object"&&e!==null&&"then"in e}var gp=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,xp=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Io=be[" use ".trim().toString()];import{jsx as Lp}from"react/jsx-runtime";var Cp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ae=Cp.reduce((e,t)=>{let a=$e(`Primitive.${t}`),o=Cl.forwardRef((r,n)=>{let{asChild:s,...l}=r,i=s?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Lp(i,{...l,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function wl(e,t){e&&Il.flushSync(()=>e.dispatchEvent(t))}import{jsx as Ip}from"react/jsx-runtime";var Rr=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),wp="VisuallyHidden",Sp=Sl.forwardRef((e,t)=>Ip(ae.span,{...e,ref:t,style:{...Rr,...e.style}}));Sp.displayName=wp;import*as Ct from"react";import{jsx as yp}from"react/jsx-runtime";function bt(e,t=[]){let a=[];function o(n,s){let l=Ct.createContext(s);l.displayName=n+"Context";let i=a.length;a=[...a,s];let u=f=>{let{scope:p,children:m,...g}=f,c=p?.[e]?.[i]||l,h=Ct.useMemo(()=>g,Object.values(g));return yp(c.Provider,{value:h,children:m})};u.displayName=n+"Provider";function d(f,p){let m=p?.[e]?.[i]||l,g=Ct.useContext(m);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[u,d]}let r=()=>{let n=a.map(s=>Ct.createContext(s));return function(l){let i=l?.[e]||n;return Ct.useMemo(()=>({[`__scope${e}`]:{...l,[e]:i}}),[l,i])}};return r.scopeName=e,[o,vp(r,...t)]}function vp(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(n){let s=o.reduce((l,{useScope:i,scopeName:u})=>{let f=i(n)[`__scope${u}`];return{...l,...f}},{});return Ct.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return a.scopeName=t.scopeName,a}import*as Ze from"react";import{jsx as Dr}from"react/jsx-runtime";import*as So from"react";import{jsx as iw}from"react/jsx-runtime";function yl(e){let t=e+"CollectionProvider",[a,o]=bt(t),[r,n]=a(t,{collectionRef:{current:null},itemMap:new Map}),s=c=>{let{scope:h,children:L}=c,x=Ze.useRef(null),C=Ze.useRef(new Map).current;return Dr(r,{scope:h,itemMap:C,collectionRef:x,children:L})};s.displayName=t;let l=e+"CollectionSlot",i=$e(l),u=Ze.forwardRef((c,h)=>{let{scope:L,children:x}=c,C=n(l,L),w=ue(h,C.collectionRef);return Dr(i,{ref:w,children:x})});u.displayName=l;let d=e+"CollectionItemSlot",f="data-radix-collection-item",p=$e(d),m=Ze.forwardRef((c,h)=>{let{scope:L,children:x,...C}=c,w=Ze.useRef(null),v=ue(h,w),I=n(d,L);return Ze.useEffect(()=>(I.itemMap.set(w,{ref:w,...C}),()=>void I.itemMap.delete(w))),Dr(p,{[f]:"",ref:v,children:x})});m.displayName=d;function g(c){let h=n(e+"CollectionConsumer",c);return Ze.useCallback(()=>{let x=h.collectionRef.current;if(!x)return[];let C=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(h.itemMap.values()).sort((I,y)=>C.indexOf(I.ref.current)-C.indexOf(y.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},g,o]}var dw=!!(typeof window<"u"&&window.document&&window.document.createElement);function re(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),a===!1||!r.defaultPrevented)return t?.(r)}}import*as ze from"react";import*as vl from"react";var pe=globalThis?.document?vl.useLayoutEffect:()=>{};import*as yo from"react";var bp=ze[" useInsertionEffect ".trim().toString()]||pe;function Ta({prop:e,defaultProp:t,onChange:a=()=>{},caller:o}){let[r,n,s]=kp({defaultProp:t,onChange:a}),l=e!==void 0,i=l?e:r;{let d=ze.useRef(e!==void 0);ze.useEffect(()=>{let f=d.current;f!==l&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,o])}let u=ze.useCallback(d=>{if(l){let f=Pp(d)?d(e):d;f!==e&&s.current?.(f)}else n(d)},[l,e,n,s]);return[i,u]}function kp({defaultProp:e,onChange:t}){let[a,o]=ze.useState(e),r=ze.useRef(a),n=ze.useRef(t);return bp(()=>{n.current=t},[t]),ze.useEffect(()=>{r.current!==a&&(n.current?.(a),r.current=a)},[a,r]),[a,o,n]}function Pp(e){return typeof e=="function"}var mw=Symbol("RADIX:SYNC_STATE");import*as Re from"react";import*as kl from"react";function Rp(e,t){return kl.useReducer((a,o)=>t[a][o]??a,e)}var ia=e=>{let{present:t,children:a}=e,o=Dp(t),r=typeof a=="function"?a({present:o.isPresent}):Re.Children.only(a),n=Mp(o.ref,Op(r));return typeof a=="function"||o.isPresent?Re.cloneElement(r,{ref:n}):null};ia.displayName="Presence";function Dp(e){let[t,a]=Re.useState(),o=Re.useRef(null),r=Re.useRef(e),n=Re.useRef("none"),s=e?"mounted":"unmounted",[l,i]=Rp(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Re.useEffect(()=>{let u=vo(o.current);n.current=l==="mounted"?u:"none"},[l]),pe(()=>{let u=o.current,d=r.current;if(d!==e){let p=n.current,m=vo(u);e?i("MOUNT"):m==="none"||u?.display==="none"?i("UNMOUNT"):i(d&&p!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,i]),pe(()=>{if(t){let u,d=t.ownerDocument.defaultView??window,f=m=>{let c=vo(o.current).includes(CSS.escape(m.animationName));if(m.target===t&&c&&(i("ANIMATION_END"),!r.current)){let h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},p=m=>{m.target===t&&(n.current=vo(o.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else i("ANIMATION_END")},[t,i]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:Re.useCallback(u=>{o.current=u?getComputedStyle(u):null,a(u)},[])}}function bl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Mp(...e){let t=Re.useRef(e);return t.current=e,Re.useCallback(a=>{let o=t.current,r=!1,n=o.map(s=>{let l=bl(s,a);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let s=0;s{}),Tp=0;function ua(e){let[t,a]=Mr.useState(Ap());return pe(()=>{e||a(o=>o??String(Tp++))},[e]),e||(t?`radix-${t}`:"")}import*as bo from"react";import{jsx as ww}from"react/jsx-runtime";var Fp=bo.createContext(void 0);function Pl(e){let t=bo.useContext(Fp);return e||t||"ltr"}import*as he from"react";import*as da from"react";function Ve(e){let t=da.useRef(e);return da.useEffect(()=>{t.current=e}),da.useMemo(()=>(...a)=>t.current?.(...a),[])}import*as Rl from"react";function Dl(e,t=globalThis?.document){let a=Ve(e);Rl.useEffect(()=>{let o=r=>{r.key==="Escape"&&a(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[a,t])}import{jsx as Al}from"react/jsx-runtime";var Bp="DismissableLayer",Or="dismissableLayer.update",Ep="dismissableLayer.pointerDownOutside",Np="dismissableLayer.focusOutside",Ml,Tl=he.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fa=he.forwardRef((e,t)=>{let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:n,onInteractOutside:s,onDismiss:l,...i}=e,u=he.useContext(Tl),[d,f]=he.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=he.useState({}),g=ue(t,y=>f(y)),c=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),L=c.indexOf(h),x=d?c.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,w=x>=L,v=_p(y=>{let S=y.target,R=[...u.branches].some(O=>O.contains(S));!w||R||(r?.(y),s?.(y),y.defaultPrevented||l?.())},p),I=Up(y=>{let S=y.target;[...u.branches].some(O=>O.contains(S))||(n?.(y),s?.(y),y.defaultPrevented||l?.())},p);return Dl(y=>{x===u.layers.size-1&&(o?.(y),!y.defaultPrevented&&l&&(y.preventDefault(),l()))},p),he.useEffect(()=>{if(d)return a&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ml=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ol(),()=>{a&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Ml))}},[d,p,a,u]),he.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ol())},[d,u]),he.useEffect(()=>{let y=()=>m({});return document.addEventListener(Or,y),()=>document.removeEventListener(Or,y)},[]),Al(ae.div,{...i,ref:g,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:re(e.onFocusCapture,I.onFocusCapture),onBlurCapture:re(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:re(e.onPointerDownCapture,v.onPointerDownCapture)})});Fa.displayName=Bp;var Wp="DismissableLayerBranch",qp=he.forwardRef((e,t)=>{let a=he.useContext(Tl),o=he.useRef(null),r=ue(t,o);return he.useEffect(()=>{let n=o.current;if(n)return a.branches.add(n),()=>{a.branches.delete(n)}},[a.branches]),Al(ae.div,{...e,ref:r})});qp.displayName=Wp;function _p(e,t=globalThis?.document){let a=Ve(e),o=he.useRef(!1),r=he.useRef(()=>{});return he.useEffect(()=>{let n=l=>{if(l.target&&!o.current){let u=function(){Fl(Ep,a,d,{discrete:!0})};var i=u;let d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",n)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",n),t.removeEventListener("click",r.current)}},[t,a]),{onPointerDownCapture:()=>o.current=!0}}function Up(e,t=globalThis?.document){let a=Ve(e),o=he.useRef(!1);return he.useEffect(()=>{let r=n=>{n.target&&!o.current&&Fl(Np,a,{originalEvent:n},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,a]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ol(){let e=new CustomEvent(Or);document.dispatchEvent(e)}function Fl(e,t,a,{discrete:o}){let r=a.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&r.addEventListener(e,t,{once:!0}),o?wl(r,n):r.dispatchEvent(n)}import*as Ge from"react";import{jsx as Hp}from"react/jsx-runtime";var Ar="focusScope.autoFocusOnMount",Tr="focusScope.autoFocusOnUnmount",Bl={bubbles:!1,cancelable:!0},zp="FocusScope",Ba=Ge.forwardRef((e,t)=>{let{loop:a=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:n,...s}=e,[l,i]=Ge.useState(null),u=Ve(r),d=Ve(n),f=Ge.useRef(null),p=ue(t,c=>i(c)),m=Ge.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Ge.useEffect(()=>{if(o){let x=function(I){if(m.paused||!l)return;let y=I.target;l.contains(y)?f.current=y:kt(f.current,{select:!0})},C=function(I){if(m.paused||!l)return;let y=I.relatedTarget;y!==null&&(l.contains(y)||kt(f.current,{select:!0}))},w=function(I){if(document.activeElement===document.body)for(let S of I)S.removedNodes.length>0&&kt(l)};var c=x,h=C,L=w;document.addEventListener("focusin",x),document.addEventListener("focusout",C);let v=new MutationObserver(w);return l&&v.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",C),v.disconnect()}}},[o,l,m.paused]),Ge.useEffect(()=>{if(l){Nl.add(m);let c=document.activeElement;if(!l.contains(c)){let L=new CustomEvent(Ar,Bl);l.addEventListener(Ar,u),l.dispatchEvent(L),L.defaultPrevented||(Vp(Kp(ql(l)),{select:!0}),document.activeElement===c&&kt(l))}return()=>{l.removeEventListener(Ar,u),setTimeout(()=>{let L=new CustomEvent(Tr,Bl);l.addEventListener(Tr,d),l.dispatchEvent(L),L.defaultPrevented||kt(c??document.body,{select:!0}),l.removeEventListener(Tr,d),Nl.remove(m)},0)}}},[l,u,d,m]);let g=Ge.useCallback(c=>{if(!a&&!o||m.paused)return;let h=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,L=document.activeElement;if(h&&L){let x=c.currentTarget,[C,w]=Gp(x);C&&w?!c.shiftKey&&L===w?(c.preventDefault(),a&&kt(C,{select:!0})):c.shiftKey&&L===C&&(c.preventDefault(),a&&kt(w,{select:!0})):L===x&&c.preventDefault()}},[a,o,m.paused]);return Hp(ae.div,{tabIndex:-1,...s,ref:p,onKeyDown:g})});Ba.displayName=zp;function Vp(e,{select:t=!1}={}){let a=document.activeElement;for(let o of e)if(kt(o,{select:t}),document.activeElement!==a)return}function Gp(e){let t=ql(e),a=El(t,e),o=El(t.reverse(),e);return[a,o]}function ql(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function El(e,t){for(let a of e)if(!Yp(a,{upTo:t}))return a}function Yp(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Xp(e){return e instanceof HTMLInputElement&&"select"in e}function kt(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&Xp(e)&&t&&e.select()}}var Nl=jp();function jp(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=Wl(e,t),e.unshift(t)},remove(t){e=Wl(e,t),e[0]?.resume()}}}function Wl(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function Kp(e){return e.filter(t=>t.tagName!=="A")}import*as ko from"react";import*as _l from"react-dom";import{jsx as $p}from"react/jsx-runtime";var Zp="Portal",Ea=ko.forwardRef((e,t)=>{let{container:a,...o}=e,[r,n]=ko.useState(!1);pe(()=>n(!0),[]);let s=a||r&&globalThis?.document?.body;return s?_l.createPortal($p(ae.div,{...o,ref:t}),s):null});Ea.displayName=Zp;import*as Hl from"react";var Po=0,fa=null;function Ro(){Hl.useEffect(()=>{fa||(fa={start:Ul(),end:Ul()});let{start:e,end:t}=fa;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Po++,()=>{Po===1&&(fa?.start.remove(),fa?.end.remove(),fa=null),Po=Math.max(0,Po-1)}},[])}function Ul(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ne=function(){return Ne=Object.assign||function(t){for(var a,o=1,r=arguments.length;o"u")return nm;var t=sm(e),a=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-a+t[2]-t[0])}};var lm=Wa(),ca="data-scroll-locked",im=function(e,t,a,o){var r=e.left,n=e.top,s=e.right,l=e.gap;return a===void 0&&(a="margin"),` + .`.concat(Fr,` { + overflow: hidden `).concat(o,`; + padding-right: `).concat(l,"px ").concat(o,`; + } + body[`).concat(ca,`] { + overflow: hidden `).concat(o,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(o,";"),a==="margin"&&` + padding-left: `.concat(r,`px; + padding-top: `).concat(n,`px; + padding-right: `).concat(s,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(l,"px ").concat(o,`; + `),a==="padding"&&"padding-right: ".concat(l,"px ").concat(o,";")].filter(Boolean).join(""),` + } + + .`).concat(qt,` { + right: `).concat(l,"px ").concat(o,`; + } + + .`).concat(_t,` { + margin-right: `).concat(l,"px ").concat(o,`; + } + + .`).concat(qt," .").concat(qt,` { + right: 0 `).concat(o,`; + } + + .`).concat(_t," .").concat(_t,` { + margin-right: 0 `).concat(o,`; + } + + body[`).concat(ca,`] { + `).concat(Br,": ").concat(l,`px; + } +`)},Zl=function(){var e=parseInt(document.body.getAttribute(ca)||"0",10);return isFinite(e)?e:0},um=function(){pa.useEffect(function(){return document.body.setAttribute(ca,(Zl()+1).toString()),function(){var e=Zl()-1;e<=0?document.body.removeAttribute(ca):document.body.setAttribute(ca,e.toString())}},[])},Vr=function(e){var t=e.noRelative,a=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;um();var n=pa.useMemo(function(){return zr(r)},[r]);return pa.createElement(lm,{styles:im(n,!t,r,a?"":"!important")})};var Gr=!1;if(typeof window<"u")try{qa=Object.defineProperty({},"passive",{get:function(){return Gr=!0,!0}}),window.addEventListener("test",qa,qa),window.removeEventListener("test",qa,qa)}catch{Gr=!1}var qa,Ut=Gr?{passive:!1}:!1;var dm=function(e){return e.tagName==="TEXTAREA"},Ql=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!dm(e)&&a[t]==="visible")},fm=function(e){return Ql(e,"overflowY")},cm=function(e){return Ql(e,"overflowX")},Yr=function(e,t){var a=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Jl(e,o);if(r){var n=ei(e,o),s=n[1],l=n[2];if(s>l)return!0}o=o.parentNode}while(o&&o!==a.body);return!1},pm=function(e){var t=e.scrollTop,a=e.scrollHeight,o=e.clientHeight;return[t,a,o]},mm=function(e){var t=e.scrollLeft,a=e.scrollWidth,o=e.clientWidth;return[t,a,o]},Jl=function(e,t){return e==="v"?fm(t):cm(t)},ei=function(e,t){return e==="v"?pm(t):mm(t)},hm=function(e,t){return e==="h"&&t==="rtl"?-1:1},ti=function(e,t,a,o,r){var n=hm(e,window.getComputedStyle(t).direction),s=n*o,l=a.target,i=t.contains(l),u=!1,d=s>0,f=0,p=0;do{if(!l)break;var m=ei(e,l),g=m[0],c=m[1],h=m[2],L=c-h-n*g;(g||L)&&Jl(e,l)&&(f+=L,p+=g);var x=l.parentNode;l=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!i&&l!==document.body||i&&(t.contains(l)||t===l));return(d&&(r&&Math.abs(f)<1||!r&&s>f)||!d&&(r&&Math.abs(p)<1||!r&&-s>p))&&(u=!0),u};var To=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ai=function(e){return[e.deltaX,e.deltaY]},oi=function(e){return e&&"current"in e?e.current:e},gm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},xm=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},Lm=0,ma=[];function ri(e){var t=ce.useRef([]),a=ce.useRef([0,0]),o=ce.useRef(),r=ce.useState(Lm++)[0],n=ce.useState(Wa)[0],s=ce.useRef(e);ce.useEffect(function(){s.current=e},[e]),ce.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var c=zl([e.lockRef.current],(e.shards||[]).map(oi),!0).filter(Boolean);return c.forEach(function(h){return h.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),c.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=ce.useCallback(function(c,h){if("touches"in c&&c.touches.length===2||c.type==="wheel"&&c.ctrlKey)return!s.current.allowPinchZoom;var L=To(c),x=a.current,C="deltaX"in c?c.deltaX:x[0]-L[0],w="deltaY"in c?c.deltaY:x[1]-L[1],v,I=c.target,y=Math.abs(C)>Math.abs(w)?"h":"v";if("touches"in c&&y==="h"&&I.type==="range")return!1;var S=window.getSelection(),R=S&&S.anchorNode,O=R?R===I||R.contains(I):!1;if(O)return!1;var T=Yr(y,I);if(!T)return!0;if(T?v=y:(v=y==="v"?"h":"v",T=Yr(y,I)),!T)return!1;if(!o.current&&"changedTouches"in c&&(C||w)&&(o.current=v),!v)return!0;var N=o.current||v;return ti(N,h,c,N==="h"?C:w,!0)},[]),i=ce.useCallback(function(c){var h=c;if(!(!ma.length||ma[ma.length-1]!==n)){var L="deltaY"in h?ai(h):To(h),x=t.current.filter(function(v){return v.name===h.type&&(v.target===h.target||h.target===v.shadowParent)&&gm(v.delta,L)})[0];if(x&&x.should){h.cancelable&&h.preventDefault();return}if(!x){var C=(s.current.shards||[]).map(oi).filter(Boolean).filter(function(v){return v.contains(h.target)}),w=C.length>0?l(h,C[0]):!s.current.noIsolation;w&&h.cancelable&&h.preventDefault()}}},[]),u=ce.useCallback(function(c,h,L,x){var C={name:c,delta:h,target:L,should:x,shadowParent:Cm(L)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(w){return w!==C})},1)},[]),d=ce.useCallback(function(c){a.current=To(c),o.current=void 0},[]),f=ce.useCallback(function(c){u(c.type,ai(c),c.target,l(c,e.lockRef.current))},[]),p=ce.useCallback(function(c){u(c.type,To(c),c.target,l(c,e.lockRef.current))},[]);ce.useEffect(function(){return ma.push(n),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",i,Ut),document.addEventListener("touchmove",i,Ut),document.addEventListener("touchstart",d,Ut),function(){ma=ma.filter(function(c){return c!==n}),document.removeEventListener("wheel",i,Ut),document.removeEventListener("touchmove",i,Ut),document.removeEventListener("touchstart",d,Ut)}},[]);var m=e.removeScrollBar,g=e.inert;return ce.createElement(ce.Fragment,null,g?ce.createElement(n,{styles:xm(r)}):null,m?ce.createElement(Vr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Cm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ni=Wr(Ao,ri);var si=Fo.forwardRef(function(e,t){return Fo.createElement(Na,Ne({},e,{ref:t,sideCar:ni}))});si.classNames=Na.classNames;var _a=si;var Im=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ha=new WeakMap,Bo=new WeakMap,Eo={},Xr=0,li=function(e){return e&&(e.host||li(e.parentNode))},wm=function(e,t){return t.map(function(a){if(e.contains(a))return a;var o=li(a);return o&&e.contains(o)?o:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},Sm=function(e,t,a,o){var r=wm(t,Array.isArray(e)?e:[e]);Eo[a]||(Eo[a]=new WeakMap);var n=Eo[a],s=[],l=new Set,i=new Set(r),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};r.forEach(u);var d=function(f){!f||i.has(f)||Array.prototype.forEach.call(f.children,function(p){if(l.has(p))d(p);else try{var m=p.getAttribute(o),g=m!==null&&m!=="false",c=(ha.get(p)||0)+1,h=(n.get(p)||0)+1;ha.set(p,c),n.set(p,h),s.push(p),c===1&&g&&Bo.set(p,!0),h===1&&p.setAttribute(a,"true"),g||p.setAttribute(o,"true")}catch(L){console.error("aria-hidden: cannot operate on ",p,L)}})};return d(t),l.clear(),Xr++,function(){s.forEach(function(f){var p=ha.get(f)-1,m=n.get(f)-1;ha.set(f,p),n.set(f,m),p||(Bo.has(f)||f.removeAttribute(o),Bo.delete(f)),m||f.removeAttribute(a)}),Xr--,Xr||(ha=new WeakMap,ha=new WeakMap,Bo=new WeakMap,Eo={})}},No=function(e,t,a){a===void 0&&(a="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=t||Im(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),Sm(o,r,a,"aria-hidden")):function(){return null}};import*as Wo from"react";function ii(e){let t=Wo.useRef({value:e,previous:e});return Wo.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}import*as ui from"react";function di(e){let[t,a]=ui.useState(void 0);return pe(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let n=r[0],s,l;if("borderBoxSize"in n){let i=n.borderBoxSize,u=Array.isArray(i)?i[0]:i;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;a({width:s,height:l})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else a(void 0)},[e]),t}import*as ke from"react";var pi=["top","right","bottom","left"];var it=Math.min,Te=Math.max,Ha=Math.round,za=Math.floor,Qe=e=>({x:e,y:e}),ym={left:"right",right:"left",bottom:"top",top:"bottom"};function _o(e,t,a){return Te(e,it(t,a))}function ut(e,t){return typeof e=="function"?e(t):e}function dt(e){return e.split("-")[0]}function Ht(e){return e.split("-")[1]}function Uo(e){return e==="x"?"y":"x"}function Ho(e){return e==="y"?"height":"width"}function Je(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function zo(e){return Uo(Je(e))}function mi(e,t,a){a===void 0&&(a=!1);let o=Ht(e),r=zo(e),n=Ho(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=Ua(s)),[s,Ua(s)]}function hi(e){let t=Ua(e);return[qo(e),t,qo(t)]}function qo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var fi=["left","right"],ci=["right","left"],vm=["top","bottom"],bm=["bottom","top"];function km(e,t,a){switch(e){case"top":case"bottom":return a?t?ci:fi:t?fi:ci;case"left":case"right":return t?vm:bm;default:return[]}}function gi(e,t,a,o){let r=Ht(e),n=km(dt(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(qo)))),n}function Ua(e){let t=dt(e);return ym[t]+e.slice(t.length)}function Pm(e){return{top:0,right:0,bottom:0,left:0,...e}}function jr(e){return typeof e!="number"?Pm(e):{top:e,right:e,bottom:e,left:e}}function zt(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function xi(e,t,a){let{reference:o,floating:r}=e,n=Je(t),s=zo(t),l=Ho(s),i=dt(t),u=n==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2,m;switch(i){case"top":m={x:d,y:o.y-r.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-r.width,y:f};break;default:m={x:o.x,y:o.y}}switch(Ht(t)){case"start":m[s]-=p*(a&&u?-1:1);break;case"end":m[s]+=p*(a&&u?-1:1);break}return m}async function Ii(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:n,rects:s,elements:l,strategy:i}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=ut(t,e),g=jr(m),h=l[p?f==="floating"?"reference":"floating":f],L=zt(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(h)))==null||a?h:h.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:i})),x=f==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,C=await(n.getOffsetParent==null?void 0:n.getOffsetParent(l.floating)),w=await(n.isElement==null?void 0:n.isElement(C))?await(n.getScale==null?void 0:n.getScale(C))||{x:1,y:1}:{x:1,y:1},v=zt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:C,strategy:i}):x);return{top:(L.top-v.top+g.top)/w.y,bottom:(v.bottom-L.bottom+g.bottom)/w.y,left:(L.left-v.left+g.left)/w.x,right:(v.right-L.right+g.right)/w.x}}var Rm=50,wi=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:s}=a,l=s.detectOverflow?s:{...s,detectOverflow:Ii},i=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=xi(u,o,i),p=o,m=0,g={};for(let c=0;c({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:n,platform:s,elements:l,middlewareData:i}=t,{element:u,padding:d=0}=ut(e,t)||{};if(u==null)return{};let f=jr(d),p={x:a,y:o},m=zo(r),g=Ho(m),c=await s.getDimensions(u),h=m==="y",L=h?"top":"left",x=h?"bottom":"right",C=h?"clientHeight":"clientWidth",w=n.reference[g]+n.reference[m]-p[m]-n.floating[g],v=p[m]-n.reference[m],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),y=I?I[C]:0;(!y||!await(s.isElement==null?void 0:s.isElement(I)))&&(y=l.floating[C]||n.floating[g]);let S=w/2-v/2,R=y/2-c[g]/2-1,O=it(f[L],R),T=it(f[x],R),N=O,_=y-c[g]-T,E=y/2-c[g]/2+S,Y=_o(N,E,_),W=!i.arrow&&Ht(r)!=null&&E!==Y&&n.reference[g]/2-(EE<=0)){var T,N;let E=(((T=n.flip)==null?void 0:T.index)||0)+1,Y=y[E];if(Y&&(!(f==="alignment"?x!==Je(Y):!1)||O.every(F=>Je(F.placement)===x?F.overflows[0]>0:!0)))return{data:{index:E,overflows:O},reset:{placement:Y}};let W=(N=O.filter(V=>V.overflows[0]<=0).sort((V,F)=>V.overflows[1]-F.overflows[1])[0])==null?void 0:N.placement;if(!W)switch(m){case"bestFit":{var _;let V=(_=O.filter(F=>{if(I){let U=Je(F.placement);return U===x||U==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(U=>U>0).reduce((U,b)=>U+b,0)]).sort((F,U)=>F[1]-U[1])[0])==null?void 0:_[0];V&&(W=V);break}case"initialPlacement":W=l;break}if(r!==W)return{reset:{placement:W}}}return{}}}};function Li(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ci(e){return pi.some(t=>e[t]>=0)}var vi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:o}=t,{strategy:r="referenceHidden",...n}=ut(e,t);switch(r){case"referenceHidden":{let s=await o.detectOverflow(t,{...n,elementContext:"reference"}),l=Li(s,a.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Ci(l)}}}case"escaped":{let s=await o.detectOverflow(t,{...n,altBoundary:!0}),l=Li(s,a.floating);return{data:{escapedOffsets:l,escaped:Ci(l)}}}default:return{}}}}};var bi=new Set(["left","top"]);async function Dm(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=dt(a),l=Ht(a),i=Je(a)==="y",u=bi.has(s)?-1:1,d=n&&i?-1:1,f=ut(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof g=="number"&&(m=l==="end"?g*-1:g),i?{x:m*d,y:p*u}:{x:p*u,y:m*d}}var ki=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:n,placement:s,middlewareData:l}=t,i=await Dm(t,e);return s===((a=l.offset)==null?void 0:a.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+i.x,y:n+i.y,data:{...i,placement:s}}}}},Pi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r,platform:n}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:i={fn:L=>{let{x,y:C}=L;return{x,y:C}}},...u}=ut(e,t),d={x:a,y:o},f=await n.detectOverflow(t,u),p=Je(dt(r)),m=Uo(p),g=d[m],c=d[p];if(s){let L=m==="y"?"top":"left",x=m==="y"?"bottom":"right",C=g+f[L],w=g-f[x];g=_o(C,g,w)}if(l){let L=p==="y"?"top":"left",x=p==="y"?"bottom":"right",C=c+f[L],w=c-f[x];c=_o(C,c,w)}let h=i.fn({...t,[m]:g,[p]:c});return{...h,data:{x:h.x-a,y:h.y-o,enabled:{[m]:s,[p]:l}}}}}},Ri=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:a,y:o,placement:r,rects:n,middlewareData:s}=t,{offset:l=0,mainAxis:i=!0,crossAxis:u=!0}=ut(e,t),d={x:a,y:o},f=Je(r),p=Uo(f),m=d[p],g=d[f],c=ut(l,t),h=typeof c=="number"?{mainAxis:c,crossAxis:0}:{mainAxis:0,crossAxis:0,...c};if(i){let C=p==="y"?"height":"width",w=n.reference[p]-n.floating[C]+h.mainAxis,v=n.reference[p]+n.reference[C]-h.mainAxis;mv&&(m=v)}if(u){var L,x;let C=p==="y"?"width":"height",w=bi.has(dt(r)),v=n.reference[f]-n.floating[C]+(w&&((L=s.offset)==null?void 0:L[f])||0)+(w?0:h.crossAxis),I=n.reference[f]+n.reference[C]+(w?0:((x=s.offset)==null?void 0:x[f])||0)-(w?h.crossAxis:0);gI&&(g=I)}return{[p]:m,[f]:g}}}},Di=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,o;let{placement:r,rects:n,platform:s,elements:l}=t,{apply:i=()=>{},...u}=ut(e,t),d=await s.detectOverflow(t,u),f=dt(r),p=Ht(r),m=Je(r)==="y",{width:g,height:c}=n.floating,h,L;f==="top"||f==="bottom"?(h=f,L=p===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(L=f,h=p==="end"?"top":"bottom");let x=c-d.top-d.bottom,C=g-d.left-d.right,w=it(c-d[h],x),v=it(g-d[L],C),I=!t.middlewareData.shift,y=w,S=v;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(S=C),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(y=x),I&&!p){let O=Te(d.left,0),T=Te(d.right,0),N=Te(d.top,0),_=Te(d.bottom,0);m?S=g-2*(O!==0||T!==0?O+T:Te(d.left,d.right)):y=c-2*(N!==0||_!==0?N+_:Te(d.top,d.bottom))}await i({...t,availableWidth:S,availableHeight:y});let R=await s.getDimensions(l.floating);return g!==R.width||c!==R.height?{reset:{rects:!0}}:{}}}};function Vo(){return typeof window<"u"}function Yt(e){return Oi(e)?(e.nodeName||"").toLowerCase():"#document"}function We(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function et(e){var t;return(t=(Oi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Oi(e){return Vo()?e instanceof Node||e instanceof We(e).Node:!1}function Ye(e){return Vo()?e instanceof Element||e instanceof We(e).Element:!1}function ft(e){return Vo()?e instanceof HTMLElement||e instanceof We(e).HTMLElement:!1}function Mi(e){return!Vo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof We(e).ShadowRoot}function ga(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=Xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&r!=="inline"&&r!=="contents"}function Ai(e){return/^(table|td|th)$/.test(Yt(e))}function Va(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Mm=/transform|translate|scale|rotate|perspective|filter/,Om=/paint|layout|strict|content/,Vt=e=>!!e&&e!=="none",Kr;function Go(e){let t=Ye(e)?Xe(e):e;return Vt(t.transform)||Vt(t.translate)||Vt(t.scale)||Vt(t.rotate)||Vt(t.perspective)||!Yo()&&(Vt(t.backdropFilter)||Vt(t.filter))||Mm.test(t.willChange||"")||Om.test(t.contain||"")}function Ti(e){let t=It(e);for(;ft(t)&&!Xt(t);){if(Go(t))return t;if(Va(t))return null;t=It(t)}return null}function Yo(){return Kr==null&&(Kr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kr}function Xt(e){return/^(html|body|#document)$/.test(Yt(e))}function Xe(e){return We(e).getComputedStyle(e)}function Ga(e){return Ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function It(e){if(Yt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Mi(e)&&e.host||et(e);return Mi(t)?t.host:t}function Fi(e){let t=It(e);return Xt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ft(t)&&ga(t)?t:Fi(t)}function Gt(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=Fi(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=We(r);if(n){let l=Xo(s);return t.concat(s,s.visualViewport||[],ga(r)?r:[],l&&a?Gt(l):[])}else return t.concat(r,Gt(r,[],a))}function Xo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wi(e){let t=Xe(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=ft(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,l=Ha(a)!==n||Ha(o)!==s;return l&&(a=n,o=s),{width:a,height:o,$:l}}function Zr(e){return Ye(e)?e:e.contextElement}function xa(e){let t=Zr(e);if(!ft(t))return Qe(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=Wi(t),s=(n?Ha(a.width):a.width)/o,l=(n?Ha(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Am=Qe(0);function qi(e){let t=We(e);return!Yo()||!t.visualViewport?Am:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Tm(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==We(e)?!1:t}function jt(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=Zr(e),s=Qe(1);t&&(o?Ye(o)&&(s=xa(o)):s=xa(e));let l=Tm(n,a,o)?qi(n):Qe(0),i=(r.left+l.x)/s.x,u=(r.top+l.y)/s.y,d=r.width/s.x,f=r.height/s.y;if(n){let p=We(n),m=o&&Ye(o)?We(o):o,g=p,c=Xo(g);for(;c&&o&&m!==g;){let h=xa(c),L=c.getBoundingClientRect(),x=Xe(c),C=L.left+(c.clientLeft+parseFloat(x.paddingLeft))*h.x,w=L.top+(c.clientTop+parseFloat(x.paddingTop))*h.y;i*=h.x,u*=h.y,d*=h.x,f*=h.y,i+=C,u+=w,g=We(c),c=Xo(g)}}return zt({width:d,height:f,x:i,y:u})}function jo(e,t){let a=Ga(e).scrollLeft;return t?t.left+a:jt(et(e)).left+a}function _i(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-jo(e,a),r=a.top+t.scrollTop;return{x:o,y:r}}function Fm(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=et(o),l=t?Va(t.floating):!1;if(o===s||l&&n)return a;let i={scrollLeft:0,scrollTop:0},u=Qe(1),d=Qe(0),f=ft(o);if((f||!f&&!n)&&((Yt(o)!=="body"||ga(s))&&(i=Ga(o)),f)){let m=jt(o);u=xa(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}let p=s&&!f&&!n?_i(s,i):Qe(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-i.scrollLeft*u.x+d.x+p.x,y:a.y*u.y-i.scrollTop*u.y+d.y+p.y}}function Bm(e){return Array.from(e.getClientRects())}function Em(e){let t=et(e),a=Ga(e),o=e.ownerDocument.body,r=Te(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=Te(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-a.scrollLeft+jo(e),l=-a.scrollTop;return Xe(o).direction==="rtl"&&(s+=Te(t.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:l}}var Bi=25;function Nm(e,t){let a=We(e),o=et(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,l=0,i=0;if(r){n=r.width,s=r.height;let d=Yo();(!d||d&&t==="fixed")&&(l=r.offsetLeft,i=r.offsetTop)}let u=jo(o);if(u<=0){let d=o.ownerDocument,f=d.body,p=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(o.clientWidth-f.clientWidth-m);g<=Bi&&(n-=g)}else u<=Bi&&(n+=u);return{width:n,height:s,x:l,y:i}}function Wm(e,t){let a=jt(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=ft(e)?xa(e):Qe(1),s=e.clientWidth*n.x,l=e.clientHeight*n.y,i=r*n.x,u=o*n.y;return{width:s,height:l,x:i,y:u}}function Ei(e,t,a){let o;if(t==="viewport")o=Nm(e,a);else if(t==="document")o=Em(et(e));else if(Ye(t))o=Wm(t,a);else{let r=qi(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return zt(o)}function Ui(e,t){let a=It(e);return a===t||!Ye(a)||Xt(a)?!1:Xe(a).position==="fixed"||Ui(a,t)}function qm(e,t){let a=t.get(e);if(a)return a;let o=Gt(e,[],!1).filter(l=>Ye(l)&&Yt(l)!=="body"),r=null,n=Xe(e).position==="fixed",s=n?It(e):e;for(;Ye(s)&&!Xt(s);){let l=Xe(s),i=Go(s);!i&&l.position==="fixed"&&(r=null),(n?!i&&!r:!i&&l.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||ga(s)&&!i&&Ui(e,s))?o=o.filter(d=>d!==s):r=l,s=It(s)}return t.set(e,o),o}function _m(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?Va(t)?[]:qm(t,this._c):[].concat(a),o],l=Ei(t,s[0],r),i=l.top,u=l.right,d=l.bottom,f=l.left;for(let p=1;p{s(!1,1e-7)},1e3)}y===1&&!Vi(u,e.getBoundingClientRect())&&s(),w=!1}try{a=new IntersectionObserver(v,{...C,root:r.ownerDocument})}catch{a=new IntersectionObserver(v,C)}a.observe(e)}return s(!0),n}function Qr(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:i=!1}=o,u=Zr(e),d=r||n?[...u?Gt(u):[],...t?Gt(t):[]]:[];d.forEach(L=>{r&&L.addEventListener("scroll",a,{passive:!0}),n&&L.addEventListener("resize",a)});let f=u&&l?Gm(u,a):null,p=-1,m=null;s&&(m=new ResizeObserver(L=>{let[x]=L;x&&x.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),a()}),u&&!i&&m.observe(u),t&&m.observe(t));let g,c=i?jt(e):null;i&&h();function h(){let L=jt(e);c&&!Vi(c,L)&&a(),c=L,g=requestAnimationFrame(h)}return a(),()=>{var L;d.forEach(x=>{r&&x.removeEventListener("scroll",a),n&&x.removeEventListener("resize",a)}),f?.(),(L=m)==null||L.disconnect(),m=null,i&&cancelAnimationFrame(g)}}var Gi=ki;var Yi=Pi,Xi=yi,ji=Di,Ki=vi,Jr=Si;var $i=Ri,en=(e,t,a)=>{let o=new Map,r={platform:zi,...a},n={...r.platform,_c:o};return wi(e,t,{...r,platform:n})};import*as xe from"react";import{useLayoutEffect as Ym}from"react";import*as Qi from"react-dom";var Xm=typeof document<"u",jm=function(){},Ko=Xm?Ym:jm;function $o(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(o=a;o--!==0;)if(!$o(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),a=r.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=a;o--!==0;){let n=r[o];if(!(n==="_owner"&&e.$$typeof)&&!$o(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Ji(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zi(e,t){let a=Ji(e);return Math.round(t*a)/a}function tn(e){let t=xe.useRef(e);return Ko(()=>{t.current=e}),t}function eu(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:o=[],platform:r,elements:{reference:n,floating:s}={},transform:l=!0,whileElementsMounted:i,open:u}=e,[d,f]=xe.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=xe.useState(o);$o(p,o)||m(o);let[g,c]=xe.useState(null),[h,L]=xe.useState(null),x=xe.useCallback(F=>{F!==I.current&&(I.current=F,c(F))},[]),C=xe.useCallback(F=>{F!==y.current&&(y.current=F,L(F))},[]),w=n||g,v=s||h,I=xe.useRef(null),y=xe.useRef(null),S=xe.useRef(d),R=i!=null,O=tn(i),T=tn(r),N=tn(u),_=xe.useCallback(()=>{if(!I.current||!y.current)return;let F={placement:t,strategy:a,middleware:p};T.current&&(F.platform=T.current),en(I.current,y.current,F).then(U=>{let b={...U,isPositioned:N.current!==!1};E.current&&!$o(S.current,b)&&(S.current=b,Qi.flushSync(()=>{f(b)}))})},[p,t,a,T,N]);Ko(()=>{u===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(F=>({...F,isPositioned:!1})))},[u]);let E=xe.useRef(!1);Ko(()=>(E.current=!0,()=>{E.current=!1}),[]),Ko(()=>{if(w&&(I.current=w),v&&(y.current=v),w&&v){if(O.current)return O.current(w,v,_);_()}},[w,v,_,O,R]);let Y=xe.useMemo(()=>({reference:I,floating:y,setReference:x,setFloating:C}),[x,C]),W=xe.useMemo(()=>({reference:w,floating:v}),[w,v]),V=xe.useMemo(()=>{let F={position:a,left:0,top:0};if(!W.floating)return F;let U=Zi(W.floating,d.x),b=Zi(W.floating,d.y);return l?{...F,transform:"translate("+U+"px, "+b+"px)",...Ji(W.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:U,top:b}},[a,l,W.floating,d.x,d.y]);return xe.useMemo(()=>({...d,update:_,refs:Y,elements:W,floatingStyles:V}),[d,_,Y,W,V])}var Km=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:o,padding:r}=typeof e=="function"?e(a):e;return o&&t(o)?o.current!=null?Jr({element:o.current,padding:r}).fn(a):{}:o?Jr({element:o,padding:r}).fn(a):{}}}},tu=(e,t)=>{let a=Gi(e);return{name:a.name,fn:a.fn,options:[e,t]}},au=(e,t)=>{let a=Yi(e);return{name:a.name,fn:a.fn,options:[e,t]}},ou=(e,t)=>({fn:$i(e).fn,options:[e,t]}),ru=(e,t)=>{let a=Xi(e);return{name:a.name,fn:a.fn,options:[e,t]}},nu=(e,t)=>{let a=ji(e);return{name:a.name,fn:a.fn,options:[e,t]}};var su=(e,t)=>{let a=Ki(e);return{name:a.name,fn:a.fn,options:[e,t]}};var lu=(e,t)=>{let a=Km(e);return{name:a.name,fn:a.fn,options:[e,t]}};import*as uu from"react";import{jsx as iu}from"react/jsx-runtime";var $m="Arrow",du=uu.forwardRef((e,t)=>{let{children:a,width:o=10,height:r=5,...n}=e;return iu(ae.svg,{...n,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:iu("polygon",{points:"0,0 30,0 15,10"})})});du.displayName=$m;var fu=du;import{jsx as Kt}from"react/jsx-runtime";var an="Popper",[cu,La]=bt(an),[Qm,pu]=cu(an),mu=e=>{let{__scopePopper:t,children:a}=e,[o,r]=ke.useState(null),[n,s]=ke.useState(void 0);return Kt(Qm,{scope:t,anchor:o,onAnchorChange:r,placementState:n,setPlacementState:s,children:a})};mu.displayName=an;var hu="PopperAnchor",gu=ke.forwardRef((e,t)=>{let{__scopePopper:a,virtualRef:o,...r}=e,n=pu(hu,a),s=ke.useRef(null),l=n.onAnchorChange,i=ke.useCallback(g=>{s.current=g,g&&l(g)},[l]),u=ue(t,i),d=ke.useRef(null);ke.useEffect(()=>{if(!o)return;let g=d.current;d.current=o.current,g!==d.current&&l(d.current)});let f=n.placementState&&rn(n.placementState),p=f?.[0],m=f?.[1];return o?null:Kt(ae.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...r,ref:u})});gu.displayName=hu;var on="PopperContent",[Jm,eh]=cu(on),xu=ke.forwardRef((e,t)=>{let{__scopePopper:a,side:o="bottom",sideOffset:r=0,align:n="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:i=!0,collisionBoundary:u,collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:g,...c}=e,h=pu(on,a),[L,x]=ke.useState(null),C=ue(t,oe=>x(oe)),[w,v]=ke.useState(null),I=di(w),y=I?.width??0,S=I?.height??0,R=o+(n!=="center"?"-"+n:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},T=u?Array.isArray(u)?u:[u]:void 0,N=T!==void 0&&T.length>0,_={padding:O,boundary:T?.filter(ah),altBoundary:N},{refs:E,floatingStyles:Y,placement:W,isPositioned:V,middlewareData:F}=eu({strategy:"fixed",placement:R,whileElementsMounted:(...oe)=>Qr(...oe,{animationFrame:m==="always"}),elements:{reference:h.anchor},middleware:[tu({mainAxis:r+S,alignmentAxis:s}),i&&au({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?ou():void 0,..._}),i&&ru({..._}),nu({..._,apply:({elements:oe,rects:X,availableWidth:Z,availableHeight:J})=>{let{width:ie,height:Ae}=X.reference,Ie=oe.floating.style;Ie.setProperty("--radix-popper-available-width",`${Z}px`),Ie.setProperty("--radix-popper-available-height",`${J}px`),Ie.setProperty("--radix-popper-anchor-width",`${ie}px`),Ie.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),w&&lu({element:w,padding:l}),oh({arrowWidth:y,arrowHeight:S}),p&&su({strategy:"referenceHidden",..._})]}),U=h.setPlacementState;pe(()=>(U(W),()=>{U(void 0)}),[W,U]);let[b,de]=rn(W),ve=Ve(g);pe(()=>{V&&ve?.()},[V,ve]);let Oe=F.arrow?.x,Pe=F.arrow?.y,le=F.arrow?.centerOffset!==0,[fe,B]=ke.useState();return pe(()=>{L&&B(window.getComputedStyle(L).zIndex)},[L]),Kt("div",{ref:E.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:V?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Kt(Jm,{scope:a,placedSide:b,placedAlign:de,onArrowChange:v,arrowX:Oe,arrowY:Pe,shouldHideArrow:le,children:Kt(ae.div,{"data-side":b,"data-align":de,...c,ref:C,style:{...c.style,animation:V?void 0:"none"}})})})});xu.displayName=on;var Lu="PopperArrow",th={top:"bottom",right:"left",bottom:"top",left:"right"},Cu=ke.forwardRef(function(t,a){let{__scopePopper:o,...r}=t,n=eh(Lu,o),s=th[n.placedSide];return Kt("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:Kt(fu,{...r,ref:a,style:{...r.style,display:"block"}})})});Cu.displayName=Lu;function ah(e){return e!==null}var oh=e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,l=s?0:e.arrowWidth,i=s?0:e.arrowHeight,[u,d]=rn(a),f={start:"0%",center:"50%",end:"100%"}[d],p=(r.arrow?.x??0)+l/2,m=(r.arrow?.y??0)+i/2,g="",c="";return u==="bottom"?(g=s?f:`${p}px`,c=`${-i}px`):u==="top"?(g=s?f:`${p}px`,c=`${o.floating.height+i}px`):u==="right"?(g=`${-i}px`,c=s?f:`${m}px`):u==="left"&&(g=`${o.floating.width+i}px`,c=s?f:`${m}px`),{data:{x:g,y:c}}}});function rn(e){let[t,a="center"]=e.split("-");return[t,a]}var Zo=mu,Ya=gu,Qo=xu,Jo=Cu;function nn(e,[t,a]){return Math.min(a,Math.max(t,e))}var $t={};ea($t,{Anchor:()=>ph,Arrow:()=>Lh,Close:()=>xh,Content:()=>gh,Popover:()=>sn,PopoverAnchor:()=>ln,PopoverArrow:()=>mn,PopoverClose:()=>pn,PopoverContent:()=>cn,PopoverPortal:()=>fn,PopoverTrigger:()=>un,Portal:()=>hh,Root:()=>ch,Trigger:()=>mh,createPopoverScope:()=>rh});import*as me from"react";import{jsx as Se}from"react/jsx-runtime";var er="Popover",[wu,rh]=bt(er,[La]),Xa=La(),[nh,Pt]=wu(er),sn=e=>{let{__scopePopover:t,children:a,open:o,defaultOpen:r,onOpenChange:n,modal:s=!1}=e,l=Xa(t),i=me.useRef(null),[u,d]=me.useState(!1),[f,p]=Ta({prop:o,defaultProp:r??!1,onChange:n,caller:er});return Se(Zo,{...l,children:Se(nh,{scope:t,contentId:ua(),triggerRef:i,open:f,onOpenChange:p,onOpenToggle:me.useCallback(()=>p(m=>!m),[p]),hasCustomAnchor:u,onCustomAnchorAdd:me.useCallback(()=>d(!0),[]),onCustomAnchorRemove:me.useCallback(()=>d(!1),[]),modal:s,children:a})})};sn.displayName=er;var Su="PopoverAnchor",ln=me.forwardRef((e,t)=>{let{__scopePopover:a,...o}=e,r=Pt(Su,a),n=Xa(a),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=r;return me.useEffect(()=>(s(),()=>l()),[s,l]),Se(Ya,{...n,...o,ref:t})});ln.displayName=Su;var yu="PopoverTrigger",un=me.forwardRef((e,t)=>{let{__scopePopover:a,...o}=e,r=Pt(yu,a),n=Xa(a),s=ue(t,r.triggerRef),l=Se(ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":ku(r.open),...o,ref:s,onClick:re(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?l:Se(Ya,{asChild:!0,...n,children:l})});un.displayName=yu;var dn="PopoverPortal",[sh,lh]=wu(dn,{forceMount:void 0}),fn=e=>{let{__scopePopover:t,forceMount:a,children:o,container:r}=e,n=Pt(dn,t);return Se(sh,{scope:t,forceMount:a,children:Se(ia,{present:a||n.open,children:Se(Ea,{asChild:!0,container:r,children:o})})})};fn.displayName=dn;var Ca="PopoverContent",cn=me.forwardRef((e,t)=>{let a=lh(Ca,e.__scopePopover),{forceMount:o=a.forceMount,...r}=e,n=Pt(Ca,e.__scopePopover);return Se(ia,{present:o||n.open,children:n.modal?Se(uh,{...r,ref:t}):Se(dh,{...r,ref:t})})});cn.displayName=Ca;var ih=$e("PopoverContent.RemoveScroll"),uh=me.forwardRef((e,t)=>{let a=Pt(Ca,e.__scopePopover),o=me.useRef(null),r=ue(t,o),n=me.useRef(!1);return me.useEffect(()=>{let s=o.current;if(s)return No(s)},[]),Se(_a,{as:ih,allowPinchZoom:!0,children:Se(vu,{...e,ref:r,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:re(e.onCloseAutoFocus,s=>{s.preventDefault(),n.current||a.triggerRef.current?.focus()}),onPointerDownOutside:re(e.onPointerDownOutside,s=>{let l=s.detail.originalEvent,i=l.button===0&&l.ctrlKey===!0,u=l.button===2||i;n.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:re(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),dh=me.forwardRef((e,t)=>{let a=Pt(Ca,e.__scopePopover),o=me.useRef(!1),r=me.useRef(!1);return Se(vu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{e.onCloseAutoFocus?.(n),n.defaultPrevented||(o.current||a.triggerRef.current?.focus(),n.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:n=>{e.onInteractOutside?.(n),n.defaultPrevented||(o.current=!0,n.detail.originalEvent.type==="pointerdown"&&(r.current=!0));let s=n.target;a.triggerRef.current?.contains(s)&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&r.current&&n.preventDefault()}})}),vu=me.forwardRef((e,t)=>{let{__scopePopover:a,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:n,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:u,onInteractOutside:d,...f}=e,p=Pt(Ca,a),m=Xa(a);return Ro(),Se(Ba,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:n,children:Se(Fa,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),children:Se(Qo,{"data-state":ku(p.open),role:"dialog",id:p.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),bu="PopoverClose",pn=me.forwardRef((e,t)=>{let{__scopePopover:a,...o}=e,r=Pt(bu,a);return Se(ae.button,{type:"button",...o,ref:t,onClick:re(e.onClick,()=>r.onOpenChange(!1))})});pn.displayName=bu;var fh="PopoverArrow",mn=me.forwardRef((e,t)=>{let{__scopePopover:a,...o}=e,r=Xa(a);return Se(Jo,{...r,...o,ref:t})});mn.displayName=fh;function ku(e){return e?"open":"closed"}var ch=sn,ph=ln,mh=un,hh=fn,gh=cn,xh=pn,Lh=mn;var Fe={};ea(Fe,{Arrow:()=>td,Content:()=>Bu,Group:()=>Hu,Icon:()=>Au,Item:()=>Yu,ItemIndicator:()=>Ku,ItemText:()=>Xu,Label:()=>Vu,Portal:()=>Fu,Root:()=>Pu,ScrollDownButton:()=>Zu,ScrollUpButton:()=>$u,Select:()=>Pu,SelectArrow:()=>td,SelectContent:()=>Bu,SelectGroup:()=>Hu,SelectIcon:()=>Au,SelectItem:()=>Yu,SelectItemIndicator:()=>Ku,SelectItemText:()=>Xu,SelectLabel:()=>Vu,SelectPortal:()=>Fu,SelectScrollDownButton:()=>Zu,SelectScrollUpButton:()=>$u,SelectSeparator:()=>Ju,SelectTrigger:()=>Du,SelectValue:()=>Ou,SelectViewport:()=>_u,Separator:()=>Ju,Trigger:()=>Du,Value:()=>Ou,Viewport:()=>_u,createSelectScope:()=>Sh,unstable_BubbleInput:()=>yn,unstable_Provider:()=>wn,unstable_SelectBubbleInput:()=>yn,unstable_SelectProvider:()=>wn});import*as k from"react";import*as Cn from"react-dom";import{Fragment as In,jsx as q,jsxs as ar}from"react/jsx-runtime";var Ch=[" ","Enter","ArrowUp","ArrowDown"],Ih=[" ","Enter"],Zt="Select",[or,rr,wh]=yl(Zt),[Qt,Sh]=bt(Zt,[wh,La]),nr=La(),[yh,Dt]=Qt(Zt),[vh,bh]=Qt(Zt),kh="SelectProvider";function wn(e){let{__scopeSelect:t,children:a,open:o,defaultOpen:r,onOpenChange:n,value:s,defaultValue:l,onValueChange:i,dir:u,name:d,autoComplete:f,disabled:p,required:m,form:g,internal_do_not_use_render:c}=e,h=nr(t),[L,x]=k.useState(null),[C,w]=k.useState(null),[v,I]=k.useState(!1),y=Pl(u),[S,R]=Ta({prop:o,defaultProp:r??!1,onChange:n,caller:Zt}),[O,T]=Ta({prop:s,defaultProp:l,onChange:i,caller:Zt}),N=k.useRef(null),_=L?!!g||!!L.closest("form"):!0,[E,Y]=k.useState(new Set),W=ua(),V=Array.from(E).map(de=>de.props.value).join(";"),F=k.useCallback(de=>{Y(ve=>new Set(ve).add(de))},[]),U=k.useCallback(de=>{Y(ve=>{let Oe=new Set(ve);return Oe.delete(de),Oe})},[]),b={required:m,trigger:L,onTriggerChange:x,valueNode:C,onValueNodeChange:w,valueNodeHasChildren:v,onValueNodeHasChildrenChange:I,contentId:W,value:O,onValueChange:T,open:S,onOpenChange:R,dir:y,triggerPointerDownPosRef:N,disabled:p,name:d,autoComplete:f,form:g,nativeOptions:E,nativeSelectKey:V,isFormControl:_};return q(Zo,{...h,children:q(yh,{scope:t,...b,children:q(or.Provider,{scope:t,children:q(vh,{scope:t,onNativeOptionAdd:F,onNativeOptionRemove:U,children:qh(c)?c(b):a})})})})}wn.displayName=kh;var Pu=e=>{let{__scopeSelect:t,children:a,...o}=e;return q(wn,{__scopeSelect:t,...o,internal_do_not_use_render:({isFormControl:r})=>ar(In,{children:[a,r?q(yn,{__scopeSelect:t}):null]})})};Pu.displayName=Zt;var Ru="SelectTrigger",Du=k.forwardRef((e,t)=>{let{__scopeSelect:a,disabled:o=!1,...r}=e,n=nr(a),s=Dt(Ru,a),l=s.disabled||o,i=ue(t,s.onTriggerChange),u=rr(a),d=k.useRef("touch"),[f,p,m]=od(c=>{let h=u().filter(C=>!C.disabled),L=h.find(C=>C.value===s.value),x=rd(h,c,L);x!==void 0&&s.onValueChange(x.value)}),g=c=>{l||(s.onOpenChange(!0),m()),c&&(s.triggerPointerDownPosRef.current={x:Math.round(c.pageX),y:Math.round(c.pageY)})};return q(Ya,{asChild:!0,...n,children:q(ae.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":vn(s.value)?"":void 0,...r,ref:i,onClick:re(r.onClick,c=>{c.currentTarget.focus(),d.current!=="mouse"&&g(c)}),onPointerDown:re(r.onPointerDown,c=>{d.current=c.pointerType;let h=c.target;h.hasPointerCapture(c.pointerId)&&h.releasePointerCapture(c.pointerId),c.button===0&&c.ctrlKey===!1&&c.pointerType==="mouse"&&(g(c),c.preventDefault())}),onKeyDown:re(r.onKeyDown,c=>{let h=f.current!=="";!(c.ctrlKey||c.altKey||c.metaKey)&&c.key.length===1&&p(c.key),!(h&&c.key===" ")&&Ch.includes(c.key)&&(g(),c.preventDefault())})})})});Du.displayName=Ru;var Mu="SelectValue",Ou=k.forwardRef((e,t)=>{let{__scopeSelect:a,className:o,style:r,children:n,placeholder:s="",...l}=e,i=Dt(Mu,a),{onValueNodeHasChildrenChange:u}=i,d=n!==void 0,f=ue(t,i.onValueNodeChange);pe(()=>{u(d)},[u,d]);let p=vn(i.value);return q(ae.span,{...l,asChild:p?!1:l.asChild,ref:f,style:{pointerEvents:"none"},children:q(k.Fragment,{children:p?s:n},p?"placeholder":"value")})});Ou.displayName=Mu;var Ph="SelectIcon",Au=k.forwardRef((e,t)=>{let{__scopeSelect:a,children:o,...r}=e;return q(ae.span,{"aria-hidden":!0,...r,ref:t,children:o||"\u25BC"})});Au.displayName=Ph;var Tu="SelectPortal",[Rh,Dh]=Qt(Tu,{forceMount:void 0}),Fu=e=>{let{__scopeSelect:t,forceMount:a,...o}=e;return q(Rh,{scope:e.__scopeSelect,forceMount:a,children:q(Ea,{asChild:!0,...o})})};Fu.displayName=Tu;var Rt="SelectContent",Bu=k.forwardRef((e,t)=>{let a=Dh(Rt,e.__scopeSelect),{forceMount:o=a.forceMount,...r}=e,n=Dt(Rt,e.__scopeSelect),[s,l]=k.useState();return pe(()=>{l(new DocumentFragment)},[]),q(ia,{present:o||n.open,children:({present:i})=>i?q(Wu,{...r,ref:t}):q(Eu,{...r,fragment:s})})});Bu.displayName=Rt;var Eu=k.forwardRef((e,t)=>{let{__scopeSelect:a,children:o,fragment:r}=e;return r?Cn.createPortal(q(Nu,{scope:a,children:q(or.Slot,{scope:a,children:q("div",{ref:t,children:o})})}),r):null});Eu.displayName="SelectContentFragment";var tt=10,[Nu,Mt]=Qt(Rt),Mh="SelectContentImpl",Oh=$e("SelectContent.RemoveScroll"),Wu=k.forwardRef((e,t)=>{let{__scopeSelect:a}=e,{position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:n,onPointerDownOutside:s,side:l,sideOffset:i,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:g,hideWhenDetached:c,avoidCollisions:h,...L}=e,x=Dt(Rt,a),[C,w]=k.useState(null),[v,I]=k.useState(null),y=ue(t,B=>w(B)),[S,R]=k.useState(null),[O,T]=k.useState(null),N=rr(a),[_,E]=k.useState(!1),Y=k.useRef(!1);k.useEffect(()=>{if(C)return No(C)},[C]),Ro();let W=k.useCallback(B=>{let[oe,...X]=N().map(ie=>ie.ref.current),[Z]=X.slice(-1),J=document.activeElement;for(let ie of B)if(ie===J||(ie?.scrollIntoView({block:"nearest"}),ie===oe&&v&&(v.scrollTop=0),ie===Z&&v&&(v.scrollTop=v.scrollHeight),ie?.focus(),document.activeElement!==J))return},[N,v]),V=k.useCallback(()=>W([S,C]),[W,S,C]);k.useEffect(()=>{_&&V()},[_,V]);let{onOpenChange:F,triggerPointerDownPosRef:U}=x;k.useEffect(()=>{if(C){let B={x:0,y:0},oe=Z=>{B={x:Math.abs(Math.round(Z.pageX)-(U.current?.x??0)),y:Math.abs(Math.round(Z.pageY)-(U.current?.y??0))}},X=Z=>{B.x<=10&&B.y<=10?Z.preventDefault():Z.composedPath().includes(C)||F(!1),document.removeEventListener("pointermove",oe),U.current=null};return U.current!==null&&(document.addEventListener("pointermove",oe),document.addEventListener("pointerup",X,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",oe),document.removeEventListener("pointerup",X,{capture:!0})}}},[C,F,U]),k.useEffect(()=>{let B=()=>F(!1);return window.addEventListener("blur",B),window.addEventListener("resize",B),()=>{window.removeEventListener("blur",B),window.removeEventListener("resize",B)}},[F]);let[b,de]=od(B=>{let oe=N().filter(J=>!J.disabled),X=oe.find(J=>J.ref.current===document.activeElement),Z=rd(oe,B,X);Z&&setTimeout(()=>Z.ref.current.focus())}),ve=k.useCallback((B,oe,X)=>{let Z=!Y.current&&!X;(x.value!==void 0&&x.value===oe||Z)&&(R(B),Z&&(Y.current=!0))},[x.value]),Oe=k.useCallback(()=>C?.focus(),[C]),Pe=k.useCallback((B,oe,X)=>{let Z=!Y.current&&!X;(x.value!==void 0&&x.value===oe||Z)&&T(B)},[x.value]),le=o==="popper"?hn:qu,fe=le===hn?{side:l,sideOffset:i,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:g,hideWhenDetached:c,avoidCollisions:h}:{};return q(Nu,{scope:a,content:C,viewport:v,onViewportChange:I,itemRefCallback:ve,selectedItem:S,onItemLeave:Oe,itemTextRefCallback:Pe,focusSelectedItem:V,selectedItemText:O,position:o,isPositioned:_,searchRef:b,children:q(_a,{as:Oh,allowPinchZoom:!0,children:q(Ba,{asChild:!0,trapped:x.open,onMountAutoFocus:B=>{B.preventDefault()},onUnmountAutoFocus:re(r,B=>{x.trigger?.focus({preventScroll:!0}),B.preventDefault()}),children:q(Fa,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:B=>B.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:q(le,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:B=>B.preventDefault(),...L,...fe,onPlaced:()=>E(!0),ref:y,style:{display:"flex",flexDirection:"column",outline:"none",...L.style},onKeyDown:re(L.onKeyDown,B=>{let oe=B.ctrlKey||B.altKey||B.metaKey;if(B.key==="Tab"&&B.preventDefault(),!oe&&B.key.length===1&&de(B.key),["ArrowUp","ArrowDown","Home","End"].includes(B.key)){let Z=N().filter(J=>!J.disabled).map(J=>J.ref.current);if(["ArrowUp","End"].includes(B.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(B.key)){let J=B.target,ie=Z.indexOf(J);Z=Z.slice(ie+1)}setTimeout(()=>W(Z)),B.preventDefault()}})})})})})})});Wu.displayName=Mh;var Ah="SelectItemAlignedPosition",qu=k.forwardRef((e,t)=>{let{__scopeSelect:a,onPlaced:o,...r}=e,n=Dt(Rt,a),s=Mt(Rt,a),[l,i]=k.useState(null),[u,d]=k.useState(null),f=ue(t,y=>d(y)),p=rr(a),m=k.useRef(!1),g=k.useRef(!0),{viewport:c,selectedItem:h,selectedItemText:L,focusSelectedItem:x}=s,C=k.useCallback(()=>{if(n.trigger&&n.valueNode&&l&&u&&c&&h&&L){let y=n.trigger.getBoundingClientRect(),S=u.getBoundingClientRect(),R=n.valueNode.getBoundingClientRect(),O=L.getBoundingClientRect();if(n.dir!=="rtl"){let J=O.left-S.left,ie=R.left-J,Ae=y.left-ie,Ie=y.width+Ae,Jt=Math.max(Ie,S.width),ba=window.innerWidth-tt,ka=nn(ie,[tt,Math.max(tt,ba-Jt)]);l.style.minWidth=Ie+"px",l.style.left=ka+"px"}else{let J=S.right-O.right,ie=window.innerWidth-R.right-J,Ae=window.innerWidth-y.right-ie,Ie=y.width+Ae,Jt=Math.max(Ie,S.width),ba=window.innerWidth-tt,ka=nn(ie,[tt,Math.max(tt,ba-Jt)]);l.style.minWidth=Ie+"px",l.style.right=ka+"px"}let T=p(),N=window.innerHeight-tt*2,_=c.scrollHeight,E=window.getComputedStyle(u),Y=parseInt(E.borderTopWidth,10),W=parseInt(E.paddingTop,10),V=parseInt(E.borderBottomWidth,10),F=parseInt(E.paddingBottom,10),U=Y+W+_+F+V,b=Math.min(h.offsetHeight*5,U),de=window.getComputedStyle(c),ve=parseInt(de.paddingTop,10),Oe=parseInt(de.paddingBottom,10),Pe=y.top+y.height/2-tt,le=N-Pe,fe=h.offsetHeight/2,B=h.offsetTop+fe,oe=Y+W+B,X=U-oe;if(oe<=Pe){let J=T.length>0&&h===T[T.length-1].ref.current;l.style.bottom="0px";let ie=u.clientHeight-c.offsetTop-c.offsetHeight,Ae=Math.max(le,fe+(J?Oe:0)+ie+V),Ie=oe+Ae;l.style.height=Ie+"px"}else{let J=T.length>0&&h===T[0].ref.current;l.style.top="0px";let Ae=Math.max(Pe,Y+c.offsetTop+(J?ve:0)+fe)+X;l.style.height=Ae+"px",c.scrollTop=oe-Pe+c.offsetTop}l.style.margin=`${tt}px 0`,l.style.minHeight=b+"px",l.style.maxHeight=N+"px",o?.(),requestAnimationFrame(()=>m.current=!0)}},[p,n.trigger,n.valueNode,l,u,c,h,L,n.dir,o]);pe(()=>C(),[C]);let[w,v]=k.useState();pe(()=>{u&&v(window.getComputedStyle(u).zIndex)},[u]);let I=k.useCallback(y=>{y&&g.current===!0&&(C(),x?.(),g.current=!1)},[C,x]);return q(Fh,{scope:a,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:I,children:q("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:q(ae.div,{...r,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});qu.displayName=Ah;var Th="SelectPopperPosition",hn=k.forwardRef((e,t)=>{let{__scopeSelect:a,align:o="start",collisionPadding:r=tt,...n}=e,s=nr(a);return q(Qo,{...s,...n,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...n.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});hn.displayName=Th;var[Fh,Sn]=Qt(Rt,{}),gn="SelectViewport",_u=k.forwardRef((e,t)=>{let{__scopeSelect:a,nonce:o,...r}=e,n=Mt(gn,a),s=Sn(gn,a),l=ue(t,n.onViewportChange),i=k.useRef(0);return ar(In,{children:[q("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),q(or.Slot,{scope:a,children:q(ae.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:re(r.onScroll,u=>{let d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:p}=s;if(p?.current&&f){let m=Math.abs(i.current-d.scrollTop);if(m>0){let g=window.innerHeight-tt*2,c=parseFloat(f.style.minHeight),h=parseFloat(f.style.height),L=Math.max(c,h);if(L0?w:0,f.style.justifyContent="flex-end")}}}i.current=d.scrollTop})})})]})});_u.displayName=gn;var Uu="SelectGroup",[Bh,Eh]=Qt(Uu),Hu=k.forwardRef((e,t)=>{let{__scopeSelect:a,...o}=e,r=ua();return q(Bh,{scope:a,id:r,children:q(ae.div,{role:"group","aria-labelledby":r,...o,ref:t})})});Hu.displayName=Uu;var zu="SelectLabel",Vu=k.forwardRef((e,t)=>{let{__scopeSelect:a,...o}=e,r=Eh(zu,a);return q(ae.div,{id:r.id,...o,ref:t})});Vu.displayName=zu;var tr="SelectItem",[Nh,Gu]=Qt(tr),Yu=k.forwardRef((e,t)=>{let{__scopeSelect:a,value:o,disabled:r=!1,textValue:n,...s}=e,l=Dt(tr,a),i=Mt(tr,a),u=l.value===o,[d,f]=k.useState(n??""),[p,m]=k.useState(!1),g=ue(t,x=>i.itemRefCallback?.(x,o,r)),c=ua(),h=k.useRef("touch"),L=()=>{r||(l.onValueChange(o),l.onOpenChange(!1))};if(o==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return q(Nh,{scope:a,value:o,disabled:r,textId:c,isSelected:u,onItemTextChange:k.useCallback(x=>{f(C=>C||(x?.textContent??"").trim())},[]),children:q(or.ItemSlot,{scope:a,value:o,disabled:r,textValue:d,children:q(ae.div,{role:"option","aria-labelledby":c,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...s,ref:g,onFocus:re(s.onFocus,()=>m(!0)),onBlur:re(s.onBlur,()=>m(!1)),onClick:re(s.onClick,()=>{h.current!=="mouse"&&L()}),onPointerUp:re(s.onPointerUp,()=>{h.current==="mouse"&&L()}),onPointerDown:re(s.onPointerDown,x=>{h.current=x.pointerType}),onPointerMove:re(s.onPointerMove,x=>{h.current=x.pointerType,r?i.onItemLeave?.():h.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:re(s.onPointerLeave,x=>{x.currentTarget===document.activeElement&&i.onItemLeave?.()}),onKeyDown:re(s.onKeyDown,x=>{i.searchRef?.current!==""&&x.key===" "||(Ih.includes(x.key)&&L(),x.key===" "&&x.preventDefault())})})})})});Yu.displayName=tr;var ja="SelectItemText",Xu=k.forwardRef((e,t)=>{let{__scopeSelect:a,className:o,style:r,...n}=e,s=Dt(ja,a),l=Mt(ja,a),i=Gu(ja,a),u=bh(ja,a),[d,f]=k.useState(null),p=ue(t,L=>f(L),i.onItemTextChange,L=>l.itemTextRefCallback?.(L,i.value,i.disabled)),m=d?.textContent,g=k.useMemo(()=>q("option",{value:i.value,disabled:i.disabled,children:m},i.value),[i.disabled,i.value,m]),{onNativeOptionAdd:c,onNativeOptionRemove:h}=u;return pe(()=>(c(g),()=>h(g)),[c,h,g]),ar(In,{children:[q(ae.span,{id:i.textId,...n,ref:p}),i.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Cn.createPortal(n.children,s.valueNode):null]})});Xu.displayName=ja;var ju="SelectItemIndicator",Ku=k.forwardRef((e,t)=>{let{__scopeSelect:a,...o}=e;return Gu(ju,a).isSelected?q(ae.span,{"aria-hidden":!0,...o,ref:t}):null});Ku.displayName=ju;var xn="SelectScrollUpButton",$u=k.forwardRef((e,t)=>{let a=Mt(xn,e.__scopeSelect),o=Sn(xn,e.__scopeSelect),[r,n]=k.useState(!1),s=ue(t,o.onScrollButtonChange);return pe(()=>{if(a.viewport&&a.isPositioned){let i=function(){let d=u.scrollTop>0;n(d)};var l=i;let u=a.viewport;return i(),u.addEventListener("scroll",i),()=>u.removeEventListener("scroll",i)}},[a.viewport,a.isPositioned]),r?q(Qu,{...e,ref:s,onAutoScroll:()=>{let{viewport:l,selectedItem:i}=a;l&&i&&(l.scrollTop=l.scrollTop-i.offsetHeight)}}):null});$u.displayName=xn;var Ln="SelectScrollDownButton",Zu=k.forwardRef((e,t)=>{let a=Mt(Ln,e.__scopeSelect),o=Sn(Ln,e.__scopeSelect),[r,n]=k.useState(!1),s=ue(t,o.onScrollButtonChange);return pe(()=>{if(a.viewport&&a.isPositioned){let i=function(){let d=u.scrollHeight-u.clientHeight,f=Math.ceil(u.scrollTop)u.removeEventListener("scroll",i)}},[a.viewport,a.isPositioned]),r?q(Qu,{...e,ref:s,onAutoScroll:()=>{let{viewport:l,selectedItem:i}=a;l&&i&&(l.scrollTop=l.scrollTop+i.offsetHeight)}}):null});Zu.displayName=Ln;var Qu=k.forwardRef((e,t)=>{let{__scopeSelect:a,onAutoScroll:o,...r}=e,n=Mt("SelectScrollButton",a),s=k.useRef(null),l=rr(a),i=k.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return k.useEffect(()=>()=>i(),[i]),pe(()=>{l().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),q(ae.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:re(r.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(o,50))}),onPointerMove:re(r.onPointerMove,()=>{n.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:re(r.onPointerLeave,()=>{i()})})}),Wh="SelectSeparator",Ju=k.forwardRef((e,t)=>{let{__scopeSelect:a,...o}=e;return q(ae.div,{"aria-hidden":!0,...o,ref:t})});Ju.displayName=Wh;var ed="SelectArrow",td=k.forwardRef((e,t)=>{let{__scopeSelect:a,...o}=e,r=nr(a);return Mt(ed,a).position==="popper"?q(Jo,{...r,...o,ref:t}):null});td.displayName=ed;var ad="SelectBubbleInput",yn=k.forwardRef(({__scopeSelect:e,...t},a)=>{let o=Dt(ad,e),{value:r,onValueChange:n,required:s,disabled:l,name:i,autoComplete:u,form:d}=o,{nativeOptions:f,nativeSelectKey:p}=o,m=k.useRef(null),g=ue(a,m),c=r??"",h=ii(c);return k.useEffect(()=>{let L=m.current;if(!L)return;let x=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(x,"value").set;if(h!==c&&w){let v=new Event("change",{bubbles:!0});w.call(L,c),L.dispatchEvent(v)}},[h,c]),ar(ae.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:i,autoComplete:u,disabled:l,form:d,onChange:L=>n(L.target.value),...t,style:{...Rr,...t.style},ref:g,defaultValue:c,children:[vn(r)?q("option",{value:""}):null,Array.from(f)]},p)});yn.displayName=ad;function qh(e){return typeof e=="function"}function vn(e){return e===""||e===void 0}function od(e){let t=Ve(e),a=k.useRef(""),o=k.useRef(0),r=k.useCallback(s=>{let l=a.current+s;t(l),function i(u){a.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>i(""),1e3))}(l)},[t]),n=k.useCallback(()=>{a.current="",window.clearTimeout(o.current)},[]);return k.useEffect(()=>()=>window.clearTimeout(o.current),[]),[a,r,n]}function rd(e,t,a){let r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a?e.indexOf(a):-1,s=_h(e,Math.max(n,0));r.length===1&&(s=s.filter(u=>u!==a));let i=s.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return i!==a?i:void 0}function _h(e,t){return e.map((a,o)=>e[(t+o)%e.length])}import{jsx as Uh}from"react/jsx-runtime";var sr=pl("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function lr({className:e,variant:t="default",size:a="default",asChild:o=!1,...r}){let n=o?wo.Root:"button";return Uh(n,{"data-slot":"button","data-variant":t,"data-size":a,className:H(sr({variant:t,size:a,className:e})),...r})}import*as hr from"react";var yv=Symbol.for("constructDateFrom");function nd(e,t,a="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:a}).format(t).split(/\s/g).slice(2).join(" ")}var Hh={},Ka={};function at(e,t){try{let o=(Hh[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return o in Ka?Ka[o]:sd(o,o.split(":"))}catch{if(e in Ka)return Ka[e];let a=e?.match(zh);return a?sd(e,a.slice(1)):NaN}}var zh=/([+-]\d\d):?(\d\d)?/;function sd(e,t){let a=+(t[0]||0),o=+(t[1]||0),r=+(t[2]||0)/60;return Ka[e]=a*60+o>0?a*60+o+r:a*60-o-r}var Ot=class e extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(at(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),ud(this,t)):this.setTime(Date.now())}static tz(t,...a){return a.length?new e(...a,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let t=-at(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),ir(this),+this}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}},ld=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!ld.test(e))return;let t=e.replace(ld,"$1UTC");Ot.prototype[t]&&(e.startsWith("get")?Ot.prototype[e]=function(){return this.internal[t]()}:(Ot.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Vh(this),+this},Ot.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),ir(this),+this}))});function ir(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-at(e.timeZone,e)*60))}function Vh(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),ud(e)}function ud(e,t){let a=Array.isArray(t)?Gh(t):+e.internal,o=at(e.timeZone,e),r=o>0?Math.floor(o):Math.ceil(o),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);let s=-new Date(+e).getTimezoneOffset(),l=-new Date(+n).getTimezoneOffset(),i=s-l,u=s;if(i&&s!==r){let R=Date.prototype.getHours.apply(e),O=Array.isArray(t)?t[3]||0:e.internal.getUTCHours();if(R!==O){let T=new Date(+e),N=s-r;N&&T.setUTCMinutes(T.getUTCMinutes()+N);let _=at(e.timeZone,T);(_>0?Math.floor(_):Math.ceil(_))===r&&(u=l)}}let d=u-r;d&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+d);let f=new Date(+e);f.setUTCSeconds(0);let p=s>0?f.getSeconds():(f.getSeconds()-60)%60,m=Math.round(-(at(e.timeZone,e)*60))%60;(m||p)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+m+p);let g=at(e.timeZone,e),c=g>0?Math.floor(g):Math.ceil(g),L=-new Date(+e).getTimezoneOffset()-c,x=c!==r,C=L-d,w=c-r,v=a-c*60*1e3,I=w>0&&id(e)-a===w*60*1e3&&id(e,v)!==a;if(x&&C&&!I){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+C);let R=at(e.timeZone,e),O=R>0?Math.floor(R):Math.ceil(R),T=c-O;T&&C<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+T)}ir(e);let S=(t?a:a+m*1e3)-+e.internal;S&&Math.abs(S)<30*60*1e3&&(Date.prototype.setTime.call(e,+e+S),ir(e))}function Gh(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function id(e,t){let a=new Date(t??+e);return a.setUTCSeconds(a.getUTCSeconds()-Math.round(-at(e.timeZone,a)*60)),+a}var ye=class e extends Ot{static tz(t,...a){return a.length?new e(...a,t):new e(Date.now(),t)}toISOString(){let[t,a,o]=this.tzComponents(),r=`${t}${a}:${o}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[t,a,o,r]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${o} ${a} ${r}`}toTimeString(){let t=this.internal.toUTCString().split(" ")[4],[a,o,r]=this.tzComponents();return`${t} GMT${a}${o}${r} (${nd(this.timeZone,this)})`}toLocaleString(t,a){return Date.prototype.toLocaleString.call(this,t,{...a,timeZone:a?.timeZone||this.timeZone})}toLocaleDateString(t,a){return Date.prototype.toLocaleDateString.call(this,t,{...a,timeZone:a?.timeZone||this.timeZone})}toLocaleTimeString(t,a){return Date.prototype.toLocaleTimeString.call(this,t,{...a,timeZone:a?.timeZone||this.timeZone})}tzComponents(){let t=this.getTimezoneOffset(),a=t>0?"-":"+",o=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),r=String(Math.abs(t)%60).padStart(2,"0");return[a,o,r]}withTimeZone(t){return new e(+this,t)}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}};function dd(e,t){let a=t.startOfMonth(e),o=a.getDay()>0?a.getDay():7,r=t.addDays(e,-o+1),n=t.addDays(r,5*7-1);return t.getMonth(e)===t.getMonth(n)?5:4}function ur(e,t){let a=t.startOfMonth(e),o=a.getDay();return o===1?a:o===0?t.addDays(a,-1*6):t.addDays(a,-1*(o-1))}function fd(e,t){let a=ur(e,t),o=dd(e,t);return t.addDays(a,o*7-1)}var $a={...ht,labels:{labelDayButton:(e,t,a,o)=>{let r;o&&typeof o.format=="function"?r=o.format.bind(o):r=(s,l)=>xt(s,l,{locale:ht,...a});let n=r(e,"PPPP");return t.today&&(n=`Today, ${n}`),t.selected&&(n=`${n}, selected`),n},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,a)=>{let o;return a&&typeof a.format=="function"?o=a.format.bind(a):o=(r,n)=>xt(r,n,{locale:ht,...t}),o(e,"LLLL yyyy")},labelGridcell:(e,t,a,o)=>{let r;o&&typeof o.format=="function"?r=o.format.bind(o):r=(s,l)=>xt(s,l,{locale:ht,...a});let n=r(e,"PPPP");return t?.today&&(n=`Today, ${n}`),n},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,a)=>{let o;return a&&typeof a.format=="function"?o=a.format.bind(a):o=(r,n)=>xt(r,n,{locale:ht,...t}),o(e,"cccc")}}};var Le=class e{constructor(t,a){this.today=()=>{if(this.overrides?.today)return this.overrides.today();if(this.options.timeZone)return ye.tz(this.options.timeZone);let o=this.options.Date??Date;return new o},this.newDate=(o,r,n)=>this.overrides?.newDate?this.overrides.newDate(o,r,n):this.options.timeZone?new ye(o,r,n,this.options.timeZone):new Date(o,r,n),this.addDays=(o,r)=>this.overrides?.addDays?this.overrides.addDays(o,r):ta(o,r),this.addMonths=(o,r)=>this.overrides?.addMonths?this.overrides.addMonths(o,r):no(o,r),this.addWeeks=(o,r)=>this.overrides?.addWeeks?this.overrides.addWeeks(o,r):as(o,r),this.addYears=(o,r)=>this.overrides?.addYears?this.overrides.addYears(o,r):os(o,r),this.differenceInCalendarDays=(o,r)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(o,r):aa(o,r),this.differenceInCalendarMonths=(o,r)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(o,r):io(o,r),this.eachMonthOfInterval=o=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(o):us(o),this.eachYearOfInterval=o=>{let r=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(o):cs(o),n=new Set(r.map(l=>this.getYear(l)));if(n.size===r.length)return r;let s=[];return n.forEach(l=>{s.push(new Date(l,0,1))}),s},this.endOfBroadcastWeek=o=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(o):fd(o,this),this.endOfISOWeek=o=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(o):ps(o),this.endOfMonth=o=>this.overrides?.endOfMonth?this.overrides.endOfMonth(o):is(o),this.endOfWeek=(o,r)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(o,r):co(o,this.options),this.endOfYear=o=>this.overrides?.endOfYear?this.overrides.endOfYear(o):fs(o),this.format=(o,r,n)=>{let s=this.overrides?.format?this.overrides.format(o,r,this.options):xt(o,r,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(s):s},this.getISOWeek=o=>this.overrides?.getISOWeek?this.overrides.getISOWeek(o):na(o),this.getMonth=(o,r)=>this.overrides?.getMonth?this.overrides.getMonth(o,this.options):Os(o,this.options),this.getYear=(o,r)=>this.overrides?.getYear?this.overrides.getYear(o,this.options):As(o,this.options),this.getWeek=(o,r)=>this.overrides?.getWeek?this.overrides.getWeek(o,this.options):sa(o,this.options),this.isAfter=(o,r)=>this.overrides?.isAfter?this.overrides.isAfter(o,r):Ts(o,r),this.isBefore=(o,r)=>this.overrides?.isBefore?this.overrides.isBefore(o,r):Fs(o,r),this.isDate=o=>this.overrides?.isDate?this.overrides.isDate(o):lo(o),this.isSameDay=(o,r)=>this.overrides?.isSameDay?this.overrides.isSameDay(o,r):ss(o,r),this.isSameMonth=(o,r)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(o,r):Bs(o,r),this.isSameYear=(o,r)=>this.overrides?.isSameYear?this.overrides.isSameYear(o,r):Es(o,r),this.max=o=>this.overrides?.max?this.overrides.max(o):rs(o),this.min=o=>this.overrides?.min?this.overrides.min(o):ns(o),this.setMonth=(o,r)=>this.overrides?.setMonth?this.overrides.setMonth(o,r):Ns(o,r),this.setYear=(o,r)=>this.overrides?.setYear?this.overrides.setYear(o,r):Ws(o,r),this.startOfBroadcastWeek=(o,r)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(o,this):ur(o,this),this.startOfDay=o=>this.overrides?.startOfDay?this.overrides.startOfDay(o):wt(o),this.startOfISOWeek=o=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(o):mt(o),this.startOfMonth=o=>this.overrides?.startOfMonth?this.overrides.startOfMonth(o):ds(o),this.startOfWeek=(o,r)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(o,this.options):Ke(o,this.options),this.startOfYear=o=>this.overrides?.startOfYear?this.overrides.startOfYear(o):fo(o),this.options={locale:$a,...t},this.overrides=a}getDigitMap(){let{numerals:t="latn"}=this.options,a=new Intl.NumberFormat("en-US",{numberingSystem:t}),o={};for(let r=0;r<10;r++)o[r.toString()]=a.format(r);return o}replaceDigits(t){let a=this.getDigitMap();return t.replace(/\d/g,o=>a[o]||o)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){let{locale:a,timeZone:o,numerals:r}=this.options,n=a?.code;if(n&&e.yearFirstLocales.has(n))try{return new Intl.DateTimeFormat(n,{month:"long",year:"numeric",timeZone:o,numberingSystem:r}).format(t)}catch{}let s=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,s)}};Le.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);var Ce=new Le;var Ia=class{constructor(t,a,o=Ce){this.date=t,this.displayMonth=a,this.outside=!!(a&&!o.isSameMonth(t,a)),this.dateLib=o,this.isoDate=o.format(t,"yyyy-MM-dd"),this.displayMonthId=o.format(a,"yyyy-MM"),this.dateMonthId=o.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}};var dr=class{constructor(t,a){this.date=t,this.weeks=a}};var fr=class{constructor(t,a){this.days=a,this.weekNumber=t}};var Pn={};ea(Pn,{CaptionLabel:()=>Xh,Chevron:()=>jh,Day:()=>$h,DayButton:()=>Zh,Dropdown:()=>eg,DropdownNav:()=>ag,Footer:()=>rg,Month:()=>sg,MonthCaption:()=>ig,MonthGrid:()=>dg,Months:()=>cg,MonthsDropdown:()=>mg,Nav:()=>hg,NextMonthButton:()=>xg,Option:()=>Cg,PreviousMonthButton:()=>wg,Root:()=>yg,Select:()=>bg,Week:()=>Pg,WeekNumber:()=>Ag,WeekNumberHeader:()=>Fg,Weekday:()=>Dg,Weekdays:()=>Mg,Weeks:()=>Eg,YearsDropdown:()=>Wg});import Yh from"react";function Xh(e){return Yh.createElement("span",{...e})}import Za from"react";function jh(e){let{size:t=24,orientation:a="left",className:o,style:r}=e;return Za.createElement("svg",{className:o,style:r,width:t,height:t,viewBox:"0 0 24 24"},a==="up"&&Za.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),a==="down"&&Za.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),a==="left"&&Za.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),a==="right"&&Za.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}import Kh from"react";function $h(e){let{day:t,modifiers:a,...o}=e;return Kh.createElement("td",{...o})}import bn from"react";function Zh(e){let{day:t,modifiers:a,...o}=e,r=bn.useRef(null);return bn.useEffect(()=>{a.focused&&r.current?.focus()},[a.focused]),bn.createElement("button",{ref:r,...o})}import Qa from"react";var P;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(P||(P={}));var ne;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(ne||(ne={}));var qe;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(qe||(qe={}));var Be;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Be||(Be={}));import{createContext as Qh,useContext as Jh}from"react";var kn=Qh(void 0);function At(){let e=Jh(kn);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function eg(e){let{options:t,className:a,...o}=e,{classNames:r,components:n,styles:s}=At(),l=[r[P.Dropdown],a].join(" "),i=t?.find(({value:u})=>u===o.value);return Qa.createElement("span",{"data-disabled":o.disabled,className:r[P.DropdownRoot],style:s?.[P.DropdownRoot]},Qa.createElement(n.Select,{className:l,...o},t?.map(({value:u,label:d,disabled:f})=>Qa.createElement(n.Option,{key:u,value:u,disabled:f},d))),Qa.createElement("span",{className:r[P.CaptionLabel],style:s?.[P.CaptionLabel],"aria-hidden":!0},i?.label,Qa.createElement(n.Chevron,{orientation:"down",size:18,className:r[P.Chevron],style:s?.[P.Chevron]})))}import tg from"react";function ag(e){return tg.createElement("div",{...e})}import og from"react";function rg(e){return og.createElement("div",{...e})}import ng from"react";function sg(e){let{calendarMonth:t,displayIndex:a,...o}=e;return ng.createElement("div",{...o},e.children)}import lg from"react";function ig(e){let{calendarMonth:t,displayIndex:a,...o}=e;return lg.createElement("div",{...o})}import ug from"react";function dg(e){return ug.createElement("table",{...e})}import fg from"react";function cg(e){return fg.createElement("div",{...e})}import pg from"react";function mg(e){let{components:t}=At();return pg.createElement(t.Dropdown,{...e})}import Ja,{useCallback as cd}from"react";function hg(e){let{onPreviousClick:t,onNextClick:a,previousMonth:o,nextMonth:r,...n}=e,{components:s,classNames:l,styles:i,labels:{labelPrevious:u,labelNext:d}}=At(),f=cd(m=>{r&&a?.(m)},[r,a]),p=cd(m=>{o&&t?.(m)},[o,t]);return Ja.createElement("nav",{...n},Ja.createElement(s.PreviousMonthButton,{type:"button",className:l[P.PreviousMonthButton],style:i?.[P.PreviousMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":u(o),onClick:p},Ja.createElement(s.Chevron,{disabled:o?void 0:!0,className:l[P.Chevron],style:i?.[P.Chevron],orientation:"left"})),Ja.createElement(s.NextMonthButton,{type:"button",className:l[P.NextMonthButton],style:i?.[P.NextMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":d(r),onClick:f},Ja.createElement(s.Chevron,{disabled:r?void 0:!0,orientation:"right",className:l[P.Chevron],style:i?.[P.Chevron]})))}import gg from"react";function xg(e){return gg.createElement("button",{...e})}import Lg from"react";function Cg(e){return Lg.createElement("option",{...e})}import Ig from"react";function wg(e){return Ig.createElement("button",{...e})}import Sg from"react";function yg(e){let{rootRef:t,...a}=e;return Sg.createElement("div",{...a,ref:t})}import vg from"react";function bg(e){return vg.createElement("select",{...e})}import kg from"react";function Pg(e){let{week:t,...a}=e;return kg.createElement("tr",{...a})}import Rg from"react";function Dg(e){return Rg.createElement("th",{...e})}import pd from"react";function Mg(e){return pd.createElement("thead",{"aria-hidden":!0},pd.createElement("tr",{...e}))}import Og from"react";function Ag(e){let{week:t,...a}=e;return Og.createElement("th",{...a})}import Tg from"react";function Fg(e){return Tg.createElement("th",{...e})}import Bg from"react";function Eg(e){return Bg.createElement("tbody",{...e})}import Ng from"react";function Wg(e){let{components:t}=At();return Ng.createElement(t.Dropdown,{...e})}import se,{useCallback as pt,useMemo as jn,useRef as ex}from"react";function _e(e,t,a=!1,o=Ce){let{from:r,to:n}=e,{differenceInCalendarDays:s,isSameDay:l}=o;return r&&n?(s(n,r)<0&&([r,n]=[n,r]),s(t,r)>=(a?1:0)&&s(n,t)>=(a?1:0)):!a&&n?l(n,t):!a&&r?l(r,t):!1}function wa(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Tt(e){return!!(e&&typeof e=="object"&&"from"in e)}function Sa(e){return!!(e&&typeof e=="object"&&"after"in e)}function ya(e){return!!(e&&typeof e=="object"&&"before"in e)}function cr(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function pr(e,t){return Array.isArray(e)&&e.every(t.isDate)}function je(e,t,a=Ce){let o=Array.isArray(t)?t:[t],{isSameDay:r,differenceInCalendarDays:n,isAfter:s}=a;return o.some(l=>{if(typeof l=="boolean")return l;if(a.isDate(l))return r(e,l);if(pr(l,a))return l.some(i=>r(e,i));if(Tt(l))return _e(l,e,!1,a);if(cr(l))return Array.isArray(l.dayOfWeek)?l.dayOfWeek.includes(e.getDay()):l.dayOfWeek===e.getDay();if(wa(l)){let i=n(l.before,e),u=n(l.after,e),d=i>0,f=u<0;return s(l.before,l.after)?f&&d:d||f}return Sa(l)?n(e,l.after)>0:ya(l)?n(l.before,e)>0:typeof l=="function"?l(e):!1})}function md(e,t,a,o,r){let{disabled:n,hidden:s,modifiers:l,showOutsideDays:i,broadcastCalendar:u,today:d=r.today()}=t,{isSameDay:f,isSameMonth:p,startOfMonth:m,isBefore:g,endOfMonth:c,isAfter:h}=r,L=a&&m(a),x=o&&c(o),C={[ne.focused]:[],[ne.outside]:[],[ne.disabled]:[],[ne.hidden]:[],[ne.today]:[]},w={};for(let v of e){let{date:I,displayMonth:y}=v,S=!!(y&&!p(I,y)),R=!!(L&&g(I,L)),O=!!(x&&h(I,x)),T=!!(n&&je(I,n,r)),N=!!(s&&je(I,s,r))||R||O||!u&&!i&&S||u&&i===!1&&S,_=f(I,d);S&&C.outside.push(v),T&&C.disabled.push(v),N&&C.hidden.push(v),_&&C.today.push(v),l&&Object.keys(l).forEach(E=>{let Y=l?.[E];Y&&je(I,Y,r)&&(w[E]?w[E].push(v):w[E]=[v])})}return v=>{let I={[ne.focused]:!1,[ne.disabled]:!1,[ne.hidden]:!1,[ne.outside]:!1,[ne.today]:!1},y={};for(let S in C){let R=C[S];I[S]=R.some(O=>O===v)}for(let S in w)y[S]=w[S].some(R=>R===v);return{...I,...y}}}function hd(e,t,a={}){return Object.entries(e).filter(([,r])=>r===!0).reduce((r,[n])=>(a[n]?r.push(a[n]):t[ne[n]]?r.push(t[ne[n]]):t[qe[n]]&&r.push(t[qe[n]]),r),[t[P.Day]])}function gd(e){return{...Pn,...e}}function xd(e){let t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([a,o])=>{a.startsWith("data-")&&(t[a]=o)}),t}function eo(){let e={};for(let t in P)e[P[t]]=`rdp-${P[t]}`;for(let t in ne)e[ne[t]]=`rdp-${ne[t]}`;for(let t in qe)e[qe[t]]=`rdp-${qe[t]}`;for(let t in Be)e[Be[t]]=`rdp-${Be[t]}`;return e}var Rn={};ea(Rn,{formatCaption:()=>qg,formatDay:()=>_g,formatMonthDropdown:()=>Ug,formatWeekNumber:()=>zg,formatWeekNumberHeader:()=>Vg,formatWeekdayName:()=>Hg,formatYearDropdown:()=>Gg});function qg(e,t,a){return(a??new Le(t)).formatMonthYear(e)}function _g(e,t,a){return(a??new Le(t)).format(e,"d")}function Ug(e,t=Ce){return t.format(e,"LLLL")}function Hg(e,t,a){return(a??new Le(t)).format(e,"cccccc")}function zg(e,t=Ce){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function Vg(){return""}function Gg(e,t=Ce){return t.format(e,"yyyy")}function Ld(e){return{...Rn,...e}}var _n={};ea(_n,{labelDayButton:()=>Dn,labelGrid:()=>Mn,labelGridcell:()=>On,labelMonthDropdown:()=>An,labelNav:()=>Tn,labelNext:()=>Fn,labelPrevious:()=>Bn,labelWeekNumber:()=>Nn,labelWeekNumberHeader:()=>Wn,labelWeekday:()=>En,labelYearDropdown:()=>qn});function Dn(e,t,a,o){let r=(o??new Le(a)).format(e,"PPPP");return t.today&&(r=`Today, ${r}`),t.selected&&(r=`${r}, selected`),r}function Mn(e,t,a){return(a??new Le(t)).formatMonthYear(e)}function On(e,t,a,o){let r=(o??new Le(a)).format(e,"PPPP");return t?.today&&(r=`Today, ${r}`),r}function An(e){return"Choose the Month"}function Tn(){return""}var Yg="Go to the Next Month";function Fn(e,t){return Yg}function Bn(e){return"Go to the Previous Month"}function En(e,t,a){return(a??new Le(t)).format(e,"cccc")}function Nn(e,t){return`Week ${e}`}function Wn(e){return"Week Number"}function qn(e){return"Choose the Year"}var ot=(e,t,a)=>t||(a?typeof a=="function"?a:(...o)=>a:e);function Cd(e,t){let a=t.locale?.labels??{};return{..._n,...e??{},labelDayButton:ot(Dn,e?.labelDayButton,a.labelDayButton),labelMonthDropdown:ot(An,e?.labelMonthDropdown,a.labelMonthDropdown),labelNext:ot(Fn,e?.labelNext,a.labelNext),labelPrevious:ot(Bn,e?.labelPrevious,a.labelPrevious),labelWeekNumber:ot(Nn,e?.labelWeekNumber,a.labelWeekNumber),labelYearDropdown:ot(qn,e?.labelYearDropdown,a.labelYearDropdown),labelGrid:ot(Mn,e?.labelGrid,a.labelGrid),labelGridcell:ot(On,e?.labelGridcell,a.labelGridcell),labelNav:ot(Tn,e?.labelNav,a.labelNav),labelWeekNumberHeader:ot(Wn,e?.labelWeekNumberHeader,a.labelWeekNumberHeader),labelWeekday:ot(En,e?.labelWeekday,a.labelWeekday)}}function Id(e,t,a,o,r){let{startOfMonth:n,startOfYear:s,endOfYear:l,eachMonthOfInterval:i,getMonth:u}=r;return i({start:s(e),end:l(e)}).map(p=>{let m=o.formatMonthDropdown(p,r),g=u(p),c=t&&pn(a)||!1;return{value:g,label:m,disabled:c}})}function wd(e,t={},a={}){let o={...t?.[P.Day]};return Object.entries(e).filter(([,r])=>r===!0).forEach(([r])=>{o={...o,...a?.[r]}}),o}function Sd(e,t,a,o){let r=o??e.today(),n=a?e.startOfBroadcastWeek(r,e):t?e.startOfISOWeek(r):e.startOfWeek(r),s=[];for(let l=0;l<7;l++){let i=e.addDays(n,l);s.push(i)}return s}function yd(e,t,a,o,r=!1){if(!e||!t)return;let{startOfYear:n,endOfYear:s,eachYearOfInterval:l,getYear:i}=o,u=n(e),d=s(t),f=l({start:u,end:d});return r&&f.reverse(),f.map(p=>{let m=a.formatYearDropdown(p,o);return{value:i(p),label:m,disabled:!1}})}function vd(e,t={}){let{weekStartsOn:a,locale:o}=t,r=a??o?.options?.weekStartsOn??0,n=l=>{let i=typeof l=="number"||typeof l=="string"?new Date(l):l;return new ye(i.getFullYear(),i.getMonth(),i.getDate(),12,0,0,e)},s=l=>{let i=n(l);return new Date(i.getFullYear(),i.getMonth(),i.getDate(),0,0,0,0)};return{today:()=>n(ye.tz(e)),newDate:(l,i,u)=>new ye(l,i,u,12,0,0,e),startOfDay:l=>n(l),startOfWeek:(l,i)=>{let u=n(l),d=i?.weekStartsOn??r,f=(u.getDay()-d+7)%7;return u.setDate(u.getDate()-f),u},startOfISOWeek:l=>{let i=n(l),u=(i.getDay()-1+7)%7;return i.setDate(i.getDate()-u),i},startOfMonth:l=>{let i=n(l);return i.setDate(1),i},startOfYear:l=>{let i=n(l);return i.setMonth(0,1),i},endOfWeek:(l,i)=>{let u=n(l),p=(((i?.weekStartsOn??r)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+p),u},endOfISOWeek:l=>{let i=n(l),u=(7-i.getDay())%7;return i.setDate(i.getDate()+u),i},endOfMonth:l=>{let i=n(l);return i.setMonth(i.getMonth()+1,0),i},endOfYear:l=>{let i=n(l);return i.setMonth(11,31),i},eachMonthOfInterval:l=>{let i=n(l.start),u=n(l.end),d=[],f=new ye(i.getFullYear(),i.getMonth(),1,12,0,0,e),p=u.getFullYear()*12+u.getMonth();for(;f.getFullYear()*12+f.getMonth()<=p;)d.push(new ye(f,e)),f.setMonth(f.getMonth()+1,1);return d},addDays:(l,i)=>{let u=n(l);return u.setDate(u.getDate()+i),u},addWeeks:(l,i)=>{let u=n(l);return u.setDate(u.getDate()+i*7),u},addMonths:(l,i)=>{let u=n(l);return u.setMonth(u.getMonth()+i),u},addYears:(l,i)=>{let u=n(l);return u.setFullYear(u.getFullYear()+i),u},eachYearOfInterval:l=>{let i=n(l.start),u=n(l.end),d=[],f=new ye(i.getFullYear(),0,1,12,0,0,e);for(;f.getFullYear()<=u.getFullYear();)d.push(new ye(f,e)),f.setFullYear(f.getFullYear()+1,0,1);return d},getWeek:(l,i)=>{let u=s(l);return sa(u,{weekStartsOn:i?.weekStartsOn??r,firstWeekContainsDate:i?.firstWeekContainsDate??o?.options?.firstWeekContainsDate??1})},getISOWeek:l=>{let i=s(l);return na(i)},differenceInCalendarDays:(l,i)=>{let u=s(l),d=s(i);return aa(u,d)},differenceInCalendarMonths:(l,i)=>{let u=s(l),d=s(i);return io(u,d)}}}import{useLayoutEffect as Xg,useRef as Un}from"react";var to=e=>e instanceof HTMLElement?e:null,Hn=e=>[...e.querySelectorAll("[data-animated-month]")??[]],jg=e=>to(e.querySelector("[data-animated-month]")),zn=e=>to(e.querySelector("[data-animated-caption]")),Vn=e=>to(e.querySelector("[data-animated-weeks]")),Kg=e=>to(e.querySelector("[data-animated-nav]")),$g=e=>to(e.querySelector("[data-animated-weekdays]"));function bd(e,t,{classNames:a,months:o,focused:r,dateLib:n}){let s=Un(null),l=Un(o),i=Un(!1);Xg(()=>{let u=l.current;if(l.current=o,!t||!e.current||!(e.current instanceof HTMLElement)||o.length===0||u.length===0||o.length!==u.length)return;let d=n.isSameMonth(o[0].date,u[0].date),f=n.isAfter(o[0].date,u[0].date),p=f?a[Be.caption_after_enter]:a[Be.caption_before_enter],m=f?a[Be.weeks_after_enter]:a[Be.weeks_before_enter],g=s.current,c=e.current.cloneNode(!0);if(c instanceof HTMLElement?(Hn(c).forEach(C=>{if(!(C instanceof HTMLElement))return;let w=jg(C);w&&C.contains(w)&&C.removeChild(w);let v=zn(C);v&&v.classList.remove(p);let I=Vn(C);I&&I.classList.remove(m)}),s.current=c):s.current=null,i.current||d||r)return;let h=g instanceof HTMLElement?Hn(g):[],L=Hn(e.current);if(L?.every(x=>x instanceof HTMLElement)&&h?.every(x=>x instanceof HTMLElement)){i.current=!0;let x=[];e.current.style.isolation="isolate";let C=Kg(e.current);C&&(C.style.zIndex="1"),L.forEach((w,v)=>{let I=h[v];if(!I)return;w.style.position="relative",w.style.overflow="hidden";let y=zn(w);y&&y.classList.add(p);let S=Vn(w);S&&S.classList.add(m);let R=()=>{i.current=!1,e.current&&(e.current.style.isolation=""),C&&(C.style.zIndex=""),y&&y.classList.remove(p),S&&S.classList.remove(m),w.style.position="",w.style.overflow="",w.contains(I)&&w.removeChild(I)};x.push(R),I.style.pointerEvents="none",I.style.position="absolute",I.style.overflow="hidden",I.setAttribute("aria-hidden","true");let O=$g(I);O&&(O.style.opacity="0");let T=zn(I);T&&(T.classList.add(f?a[Be.caption_before_exit]:a[Be.caption_after_exit]),T.addEventListener("animationend",R));let N=Vn(I);N&&N.classList.add(f?a[Be.weeks_before_exit]:a[Be.weeks_after_exit]),w.insertBefore(I,w.firstChild)})}})}import{useEffect as Qg,useMemo as Jg}from"react";function kd(e,t,a,o){let r=e[0],n=e[e.length-1],{ISOWeek:s,fixedWeeks:l,broadcastCalendar:i}=a??{},{addDays:u,differenceInCalendarDays:d,differenceInCalendarMonths:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfMonth:g,endOfWeek:c,isAfter:h,startOfBroadcastWeek:L,startOfISOWeek:x,startOfWeek:C}=o,w=i?L(r,o):s?x(r):C(r),v=i?p(n):s?m(g(n)):c(g(n)),I=t&&(i?p(t):s?m(t):c(t)),y=I&&h(v,I)?I:v,S=d(y,w),R=f(n,r)+1,O=[];for(let _=0;_<=S;_++){let E=u(w,_);O.push(E)}let N=(i?35:42)*R;if(l&&O.length{let r=o.weeks.reduce((n,s)=>n.concat(s.days.slice()),t.slice());return a.concat(r.slice())},t.slice())}function Rd(e,t,a,o){let{numberOfMonths:r=1}=a,n=[];for(let s=0;st)break;n.push(l)}return n}function Gn(e,t,a,o){let{month:r,defaultMonth:n,today:s=o.today(),numberOfMonths:l=1}=e,i=r||n||s,{differenceInCalendarMonths:u,addMonths:d,startOfMonth:f}=o;if(a&&u(a,i){let L=a.broadcastCalendar?f(h,o):a.ISOWeek?p(h):m(h),x=a.broadcastCalendar?n(h):a.ISOWeek?s(l(h)):i(l(h)),C=t.filter(y=>y>=L&&y<=x),w=a.broadcastCalendar?35:42;if(a.fixedWeeks&&C.length{let R=w-C.length;return S>x&&S<=r(x,R)});C.push(...y)}let v=C.reduce((y,S)=>{let R=a.ISOWeek?u(S):d(S),O=y.find(N=>N.weekNumber===R),T=new Ia(S,h,o);return O?O.days.push(T):y.push(new fr(R,[T])),y},[]),I=new dr(h,v);return c.push(I),c},[]);return a.reverseMonths?g.reverse():g}function Md(e,t){let{startMonth:a,endMonth:o}=e,{startOfYear:r,startOfDay:n,startOfMonth:s,endOfMonth:l,addYears:i,endOfYear:u,today:d}=t,f=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return a?a=s(a):!a&&f&&(a=r(i(e.today??d(),-100))),o?o=l(o):!o&&f&&(o=u(e.today??d())),[a&&n(a),o&&n(o)]}function Od(e,t,a,o){if(a.disableNavigation)return;let{pagedNavigation:r,numberOfMonths:n=1}=a,{startOfMonth:s,addMonths:l,differenceInCalendarMonths:i}=o,u=r?n:1,d=s(e);if(!t)return l(d,u);if(!(i(t,e)a.concat(o.weeks.slice()),t.slice())}import{useState as Zg}from"react";function Ft(e,t){let[a,o]=Zg(e);return[t===void 0?a:t,o]}function Fd(e,t){let[a,o]=Md(e,t),{startOfMonth:r,endOfMonth:n}=t,s=Gn(e,a,o,t),[l,i]=Ft(s,e.month?s:void 0);Qg(()=>{let w=Gn(e,a,o,t);i(w)},[e.timeZone]);let{months:u,weeks:d,days:f,previousMonth:p,nextMonth:m}=Jg(()=>{let w=Rd(l,o,{numberOfMonths:e.numberOfMonths},t),v=kd(w,e.endMonth?n(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),I=Dd(w,v,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),y=Td(I),S=Pd(I),R=Ad(l,a,e,t),O=Od(l,o,e,t);return{months:I,weeks:y,days:S,previousMonth:R,nextMonth:O}},[t,l.getTime(),o?.getTime(),a?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:g,onMonthChange:c}=e,h=w=>d.some(v=>v.days.some(I=>I.isEqualTo(w))),L=w=>{if(g)return;let v=r(w);a&&vr(o)&&(v=r(o)),i(v),c?.(v)};return{months:u,weeks:d,days:f,navStart:a,navEnd:o,previousMonth:p,nextMonth:m,goToMonth:L,goToDay:w=>{h(w)||L(w.date)}}}import{useState as Wd}from"react";var ct;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(ct||(ct={}));function Bd(e){return!e[ne.disabled]&&!e[ne.hidden]&&!e[ne.outside]}function Ed(e,t,a,o){let r,n=-1;for(let s of e){let l=t(s);Bd(l)&&(l[ne.focused]&&nBd(t(s)))),r}function Nd(e,t,a,o,r,n,s){let{ISOWeek:l,broadcastCalendar:i}=n,{addDays:u,addMonths:d,addWeeks:f,addYears:p,endOfBroadcastWeek:m,endOfISOWeek:g,endOfWeek:c,max:h,min:L,startOfBroadcastWeek:x,startOfISOWeek:C,startOfWeek:w}=s,I={day:u,week:f,month:d,year:p,startOfWeek:y=>i?x(y,s):l?C(y):w(y),endOfWeek:y=>i?m(y):l?g(y):c(y)}[e](a,t==="after"?1:-1);return t==="before"&&o?I=h([o,I]):t==="after"&&r&&(I=L([r,I])),I}function Yn(e,t,a,o,r,n,s,l=0){if(l>365)return;let i=Nd(e,t,a.date,o,r,n,s),u=!!(n.disabled&&je(i,n.disabled,s)),d=!!(n.hidden&&je(i,n.hidden,s)),f=i,p=new Ia(i,f,s);return!u&&!d?p:Yn(e,t,p,o,r,n,s,l+1)}function qd(e,t,a,o,r){let{autoFocus:n}=e,[s,l]=Wd(),i=Ed(t.days,a,o||(()=>!1),s),[u,d]=Wd(n?i:void 0);return{isFocusTarget:c=>!!i?.isEqualTo(c),setFocused:d,focused:u,blur:()=>{l(u),d(void 0)},moveFocus:(c,h)=>{if(!u)return;let L=Yn(c,h,u,t.navStart,t.navEnd,e,r);L&&(e.disableNavigation&&!t.days.some(C=>C.isEqualTo(L))||(t.goToDay(L),d(L)))}}}function _d(e,t){let{selected:a,required:o,onSelect:r}=e,[n,s]=Ft(a,r?a:void 0),l=r?a:n,{isSameDay:i}=t,u=m=>l?.some(g=>i(g,m))??!1,{min:d,max:f}=e;return{selected:l,select:(m,g,c)=>{let h=[...l??[]];if(u(m)){if(l?.length===d||o&&l?.length===1)return;h=l?.filter(L=>!i(L,m))}else l?.length===f?h=[m]:h=[...h,m];return r||s(h),r?.(h,m,g,c),h},isSelected:u}}function Ud(e,t,a=0,o=0,r=!1,n=Ce){let{from:s,to:l}=t||{},{isSameDay:i,isAfter:u,isBefore:d}=n,f;if(!s&&!l)f={from:e,to:a>0?void 0:e};else if(s&&!l)i(s,e)?a===0?f={from:s,to:e}:r?f={from:s,to:void 0}:f=void 0:d(e,s)?f={from:e,to:s}:f={from:s,to:e};else if(s&&l)if(i(s,e)&&i(l,e))r?f={from:s,to:l}:f=void 0;else if(i(s,e))f={from:s,to:a>0?void 0:e};else if(i(l,e))f={from:e,to:a>0?void 0:e};else if(d(e,s))f={from:e,to:l};else if(u(e,s))f={from:s,to:e};else if(u(e,l))f={from:s,to:e};else throw new Error("Invalid range");if(f?.from&&f?.to){let p=n.differenceInCalendarDays(f.to,f.from);o>0&&p>o?f={from:e,to:void 0}:a>1&&ptypeof l!="function").some(l=>typeof l=="boolean"?l:a.isDate(l)?_e(e,l,!1,a):pr(l,a)?l.some(i=>_e(e,i,!1,a)):Tt(l)?l.from&&l.to?Xn(e,{from:l.from,to:l.to},a):!1:cr(l)?Hd(e,l.dayOfWeek,a):wa(l)?a.isAfter(l.before,l.after)?Xn(e,{from:a.addDays(l.after,1),to:a.addDays(l.before,-1)},a):je(e.from,l,a)||je(e.to,l,a):Sa(l)||ya(l)?je(e.from,l,a)||je(e.to,l,a):!1))return!0;let s=o.filter(l=>typeof l=="function");if(s.length){let l=e.from,i=a.differenceInCalendarDays(e.to,e.from);for(let u=0;u<=i;u++){if(s.some(d=>d(l)))return!0;l=a.addDays(l,1)}}return!1}function Vd(e,t){let{disabled:a,excludeDisabled:o,resetOnSelect:r,selected:n,required:s,onSelect:l}=e,[i,u]=Ft(n,l?n:void 0),d=l?n:i;return{selected:d,select:(m,g,c)=>{let{min:h,max:L}=e,x;if(m){let C=d?.from,w=d?.to,v=!!C&&!!w,I=!!C&&!!w&&t.isSameDay(C,w)&&t.isSameDay(m,C);r&&(v||!d?.from)?!s&&I?x=void 0:x={from:m,to:void 0}:x=Ud(m,d,h,L,s,t)}return o&&a&&x?.from&&x.to&&zd({from:x.from,to:x.to},a,t)&&(x.from=m,x.to=void 0),l||u(x),l?.(x,m,g,c),x},isSelected:m=>d&&_e(d,m,!1,t)}}function Gd(e,t){let{selected:a,required:o,onSelect:r}=e,[n,s]=Ft(a,r?a:void 0),l=r?a:n,{isSameDay:i}=t;return{selected:l,select:(f,p,m)=>{let g=f;return!o&&l&&l&&i(f,l)&&(g=void 0),r||s(g),r?.(g,f,p,m),g},isSelected:f=>l?i(l,f):!1}}function Yd(e,t){let a=Gd(e,t),o=_d(e,t),r=Vd(e,t);switch(e.mode){case"single":return a;case"multiple":return o;case"range":return r;default:return}}function Ee(e,t){return e instanceof ye&&e.timeZone===t?e:new ye(e,t)}function va(e,t,a){if(!a)return Ee(e,t);let o=Ee(e,t),r=new ye(o.getFullYear(),o.getMonth(),o.getDate(),12,0,0,t);return new Date(r.getTime())}function Xd(e,t,a){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?va(e,t,a):Array.isArray(e)?e.map(o=>o instanceof Date?va(o,t,a):o):Tt(e)?{...e,from:e.from?Ee(e.from,t):e.from,to:e.to?Ee(e.to,t):e.to}:wa(e)?{before:va(e.before,t,a),after:va(e.after,t,a)}:Sa(e)?{after:va(e.after,t,a)}:ya(e)?{before:va(e.before,t,a)}:e}function mr(e,t,a){return e&&(Array.isArray(e)?e.map(o=>Xd(o,t,a)):Xd(e,t,a))}function jd(e){let t=e,a=t.timeZone;if(a&&(t={...e,timeZone:a},t.today&&(t.today=Ee(t.today,a)),t.month&&(t.month=Ee(t.month,a)),t.defaultMonth&&(t.defaultMonth=Ee(t.defaultMonth,a)),t.startMonth&&(t.startMonth=Ee(t.startMonth,a)),t.endMonth&&(t.endMonth=Ee(t.endMonth,a)),t.mode==="single"&&t.selected?t.selected=Ee(t.selected,a):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(z=>Ee(z,a)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?Ee(t.selected.from,a):t.selected.from,to:t.selected.to?Ee(t.selected.to,a):t.selected.to}),t.disabled!==void 0&&(t.disabled=mr(t.disabled,a)),t.hidden!==void 0&&(t.hidden=mr(t.hidden,a)),t.modifiers)){let z={};Object.keys(t.modifiers).forEach(K=>{z[K]=mr(t.modifiers?.[K],a)}),t.modifiers=z}let{components:o,formatters:r,labels:n,dateLib:s,locale:l,classNames:i}=jn(()=>{let z={...$a,...t.locale},K=t.broadcastCalendar?1:t.weekStartsOn,j=t.noonSafe&&t.timeZone?vd(t.timeZone,{weekStartsOn:K,locale:z}):void 0,ge=t.dateLib&&j?{...j,...t.dateLib}:t.dateLib??j,ee=new Le({locale:z,weekStartsOn:K,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},ge);return{dateLib:ee,components:gd(t.components),formatters:Ld(t.formatters),labels:Cd(t.labels,ee.options),locale:z,classNames:{...eo(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:s.today()});let{captionLayout:u,mode:d,navLayout:f,numberOfMonths:p=1,onDayBlur:m,onDayClick:g,onDayFocus:c,onDayKeyDown:h,onDayMouseEnter:L,onDayMouseLeave:x,onNextClick:C,onPrevClick:w,showWeekNumber:v,styles:I}=t,{formatCaption:y,formatDay:S,formatMonthDropdown:R,formatWeekNumber:O,formatWeekNumberHeader:T,formatWeekdayName:N,formatYearDropdown:_}=r,E=Fd(t,s),{days:Y,months:W,navStart:V,navEnd:F,previousMonth:U,nextMonth:b,goToMonth:de}=E,ve=md(Y,t,V,F,s),{isSelected:Oe,select:Pe,selected:le}=Yd(t,s)??{},{blur:fe,focused:B,isFocusTarget:oe,moveFocus:X,setFocused:Z}=qd(t,E,ve,Oe??(()=>!1),s),{labelDayButton:J,labelGridcell:ie,labelGrid:Ae,labelMonthDropdown:Ie,labelNav:Jt,labelPrevious:ba,labelNext:ka,labelWeekday:rf,labelWeekNumber:nf,labelWeekNumberHeader:sf,labelYearDropdown:lf}=n,uf=jn(()=>Sd(s,t.ISOWeek,t.broadcastCalendar,t.today),[s,t.ISOWeek,t.broadcastCalendar,t.today]),$n=d!==void 0||g!==void 0,xr=pt(()=>{U&&(de(U),w?.(U))},[U,de,w]),Lr=pt(()=>{b&&(de(b),C?.(b))},[de,b,C]),df=pt((z,K)=>j=>{j.preventDefault(),j.stopPropagation(),Z(z),!K.disabled&&(Pe?.(z.date,K,j),g?.(z.date,K,j))},[Pe,g,Z]),ff=pt((z,K)=>j=>{Z(z),c?.(z.date,K,j)},[c,Z]),cf=pt((z,K)=>j=>{fe(),m?.(z.date,K,j)},[fe,m]),pf=pt((z,K)=>j=>{let ge={ArrowLeft:[j.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[j.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[j.shiftKey?"year":"week","after"],ArrowUp:[j.shiftKey?"year":"week","before"],PageUp:[j.shiftKey?"year":"month","before"],PageDown:[j.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(ge[j.key]){j.preventDefault(),j.stopPropagation();let[ee,nt]=ge[j.key];X(ee,nt)}h?.(z.date,K,j)},[X,h,t.dir]),mf=pt((z,K)=>j=>{L?.(z.date,K,j)},[L]),hf=pt((z,K)=>j=>{x?.(z.date,K,j)},[x]),gf=pt((z,K)=>j=>{let ge=Number(j.target.value),ee=s.setMonth(s.startOfMonth(z),ge);de(s.addMonths(ee,-K))},[s,de]),xf=pt((z,K)=>j=>{let ge=Number(j.target.value),ee=s.setYear(s.startOfMonth(z),ge);de(s.addMonths(ee,-K))},[s,de]),{className:Lf,style:Cf}=jn(()=>({className:[i[P.Root],t.className].filter(Boolean).join(" "),style:{...I?.[P.Root],...t.style}}),[i,t.className,t.style,I]),If=xd(t),Zn=z=>{let K=I?.[P.Dropdown],j=I?.[z];if(!(!K&&!j))return{...K,...j}},Qn=ex(null);bd(Qn,!!t.animate,{classNames:i,months:W,focused:B,dateLib:s});let wf={dayPickerProps:t,selected:le,select:Pe,isSelected:Oe,months:W,nextMonth:b,previousMonth:U,goToMonth:de,getModifiers:ve,components:o,classNames:i,styles:I,labels:n,formatters:r};return se.createElement(kn.Provider,{value:wf},se.createElement(o.Root,{rootRef:t.animate?Qn:void 0,className:Lf,style:Cf,dir:t.dir,id:t.id,lang:t.lang??l.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...If},se.createElement(o.Months,{className:i[P.Months],style:I?.[P.Months]},!t.hideNavigation&&!f&&se.createElement(o.Nav,{"data-animated-nav":t.animate?"true":void 0,className:i[P.Nav],style:I?.[P.Nav],"aria-label":Jt(),onPreviousClick:xr,onNextClick:Lr,previousMonth:U,nextMonth:b}),W.map((z,K)=>{let j=t.reverseMonths?W.length-1-K:K;return se.createElement(o.Month,{"data-animated-month":t.animate?"true":void 0,className:i[P.Month],style:I?.[P.Month],key:K,displayIndex:K,calendarMonth:z},f==="around"&&!t.hideNavigation&&K===0&&se.createElement(o.PreviousMonthButton,{type:"button",className:i[P.PreviousMonthButton],style:I?.[P.PreviousMonthButton],tabIndex:U?void 0:-1,"aria-disabled":U?void 0:!0,"aria-label":ba(U),onClick:xr,"data-animated-button":t.animate?"true":void 0},se.createElement(o.Chevron,{disabled:U?void 0:!0,className:i[P.Chevron],style:I?.[P.Chevron],orientation:t.dir==="rtl"?"right":"left"})),se.createElement(o.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:i[P.MonthCaption],style:I?.[P.MonthCaption],calendarMonth:z,displayIndex:K},u?.startsWith("dropdown")?se.createElement(o.DropdownNav,{className:i[P.Dropdowns],style:I?.[P.Dropdowns]},(()=>{let ge=u==="dropdown"||u==="dropdown-months"?se.createElement(o.MonthsDropdown,{key:"month",className:i[P.MonthsDropdown],"aria-label":Ie(),disabled:!!t.disableNavigation,onChange:gf(z.date,j),options:Id(z.date,V,F,r,s),style:Zn(P.MonthsDropdown),value:s.getMonth(z.date)}):se.createElement("span",{key:"month"},R(z.date,s)),ee=u==="dropdown"||u==="dropdown-years"?se.createElement(o.YearsDropdown,{key:"year",className:i[P.YearsDropdown],"aria-label":lf(s.options),disabled:!!t.disableNavigation,onChange:xf(z.date,j),options:yd(V,F,r,s,!!t.reverseYears),style:Zn(P.YearsDropdown),value:s.getYear(z.date)}):se.createElement("span",{key:"year"},_(z.date,s));return s.getMonthYearOrder()==="year-first"?[ee,ge]:[ge,ee]})(),se.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},y(z.date,s.options,s))):se.createElement(o.CaptionLabel,{className:i[P.CaptionLabel],style:I?.[P.CaptionLabel],role:"status","aria-live":"polite"},y(z.date,s.options,s))),f==="around"&&!t.hideNavigation&&K===p-1&&se.createElement(o.NextMonthButton,{type:"button",className:i[P.NextMonthButton],style:I?.[P.NextMonthButton],tabIndex:b?void 0:-1,"aria-disabled":b?void 0:!0,"aria-label":ka(b),onClick:Lr,"data-animated-button":t.animate?"true":void 0},se.createElement(o.Chevron,{disabled:b?void 0:!0,className:i[P.Chevron],style:I?.[P.Chevron],orientation:t.dir==="rtl"?"left":"right"})),K===p-1&&f==="after"&&!t.hideNavigation&&se.createElement(o.Nav,{"data-animated-nav":t.animate?"true":void 0,className:i[P.Nav],style:I?.[P.Nav],"aria-label":Jt(),onPreviousClick:xr,onNextClick:Lr,previousMonth:U,nextMonth:b}),se.createElement(o.MonthGrid,{role:"grid","aria-multiselectable":d==="multiple"||d==="range","aria-label":Ae(z.date,s.options,s)||void 0,className:i[P.MonthGrid],style:I?.[P.MonthGrid]},!t.hideWeekdays&&se.createElement(o.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:i[P.Weekdays],style:I?.[P.Weekdays]},v&&se.createElement(o.WeekNumberHeader,{"aria-label":sf(s.options),className:i[P.WeekNumberHeader],style:I?.[P.WeekNumberHeader],scope:"col"},T()),uf.map(ge=>se.createElement(o.Weekday,{"aria-label":rf(ge,s.options,s),className:i[P.Weekday],key:String(ge),style:I?.[P.Weekday],scope:"col"},N(ge,s.options,s)))),se.createElement(o.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:i[P.Weeks],style:I?.[P.Weeks]},z.weeks.map(ge=>se.createElement(o.Week,{className:i[P.Week],key:ge.weekNumber,style:I?.[P.Week],week:ge},v&&se.createElement(o.WeekNumber,{week:ge,style:I?.[P.WeekNumber],"aria-label":nf(ge.weekNumber,{locale:l}),className:i[P.WeekNumber],scope:"row",role:"rowheader"},O(ge.weekNumber,s)),ge.days.map(ee=>{let{date:nt}=ee,Q=ve(ee);if(Q[ne.focused]=!Q.hidden&&!!B?.isEqualTo(ee),Q[qe.selected]=Oe?.(nt)||Q.selected,Tt(le)){let{from:Cr,to:Ir}=le;Q[qe.range_start]=!!(Cr&&Ir&&s.isSameDay(nt,Cr)),Q[qe.range_end]=!!(Cr&&Ir&&s.isSameDay(nt,Ir)),Q[qe.range_middle]=_e(le,nt,!0,s)}let Sf=wd(Q,I,t.modifiersStyles),yf=hd(Q,i,t.modifiersClassNames),vf=!$n&&!Q.hidden?ie(nt,Q,s.options,s):void 0;return se.createElement(o.Day,{key:`${ee.isoDate}_${ee.displayMonthId}`,day:ee,modifiers:Q,className:yf.join(" "),style:Sf,role:"gridcell","aria-selected":Q.selected||void 0,"aria-label":vf,"data-day":ee.isoDate,"data-month":ee.outside?ee.dateMonthId:void 0,"data-selected":Q.selected||void 0,"data-disabled":Q.disabled||void 0,"data-hidden":Q.hidden||void 0,"data-outside":ee.outside||void 0,"data-focused":Q.focused||void 0,"data-today":Q.today||void 0},!Q.hidden&&$n?se.createElement(o.DayButton,{className:i[P.DayButton],style:I?.[P.DayButton],type:"button",day:ee,modifiers:Q,disabled:!Q.focused&&Q.disabled||void 0,"aria-disabled":Q.focused&&Q.disabled||void 0,tabIndex:oe(ee)?0:-1,"aria-label":J(nt,Q,s.options,s),onClick:df(ee,Q),onBlur:cf(ee,Q),onFocus:ff(ee,Q),onKeyDown:pf(ee,Q),onMouseEnter:mf(ee,Q),onMouseLeave:hf(ee,Q)},S(nt,s.options,s)):!Q.hidden&&S(ee.date,s.options,s))}))))))})),t.footer&&se.createElement(o.Footer,{className:i[P.Footer],style:I?.[P.Footer],role:"status","aria-live":"polite"},t.footer)))}import{jsx as Bt}from"react/jsx-runtime";function Kd({className:e,classNames:t,showOutsideDays:a=!0,captionLayout:o="label",buttonVariant:r="ghost",formatters:n,components:s,...l}){let i=eo();return Bt(jd,{showOutsideDays:a,className:H("group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:o,formatters:{formatMonthDropdown:u=>u.toLocaleString("default",{month:"short"}),...n},classNames:{root:H("w-fit",i.root),months:H("relative flex flex-col gap-4 md:flex-row",i.months),month:H("flex w-full flex-col gap-4",i.month),nav:H("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",i.nav),button_previous:H(sr({variant:r}),"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",i.button_previous),button_next:H(sr({variant:r}),"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",i.button_next),month_caption:H("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",i.month_caption),dropdowns:H("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",i.dropdowns),dropdown_root:H("relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50",i.dropdown_root),dropdown:H("absolute inset-0 bg-popover opacity-0",i.dropdown),caption_label:H("font-medium select-none",o==="label"?"text-sm":"flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground",i.caption_label),table:"w-full border-collapse",weekdays:H("flex",i.weekdays),weekday:H("flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none",i.weekday),week:H("mt-2 flex w-full",i.week),week_number_header:H("w-(--cell-size) select-none",i.week_number_header),week_number:H("text-[0.8rem] text-muted-foreground select-none",i.week_number),day:H("group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md",l.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"[&:first-child[data-selected=true]_button]:rounded-l-md",i.day),range_start:H("rounded-l-md bg-accent",i.range_start),range_middle:H("rounded-none",i.range_middle),range_end:H("rounded-r-md bg-accent",i.range_end),today:H("rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none",i.today),outside:H("text-muted-foreground aria-selected:text-muted-foreground",i.outside),disabled:H("text-muted-foreground opacity-50",i.disabled),hidden:H("invisible",i.hidden),...t},components:{Root:({className:u,rootRef:d,...f})=>Bt("div",{"data-slot":"calendar",ref:d,className:H(u),...f}),Chevron:({className:u,orientation:d,...f})=>d==="left"?Bt(Da,{className:H("size-4",u),...f}):d==="right"?Bt(Ma,{className:H("size-4",u),...f}):Bt(St,{className:H("size-4",u),...f}),DayButton:tx,WeekNumber:({children:u,...d})=>Bt("td",{...d,children:Bt("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:u})}),...s},...l})}function tx({className:e,day:t,modifiers:a,...o}){let r=eo(),n=hr.useRef(null);return hr.useEffect(()=>{a.focused&&n.current?.focus()},[a.focused]),Bt(lr,{ref:n,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":a.selected&&!a.range_start&&!a.range_end&&!a.range_middle,"data-range-start":a.range_start,"data-range-end":a.range_end,"data-range-middle":a.range_middle,className:H("flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70",r.day,e),...o})}import{jsx as gr}from"react/jsx-runtime";function $d({...e}){return gr($t.Root,{"data-slot":"popover",...e})}function Zd({...e}){return gr($t.Trigger,{"data-slot":"popover-trigger",...e})}function Qd({className:e,align:t="center",sideOffset:a=4,...o}){return gr($t.Portal,{children:gr($t.Content,{"data-slot":"popover-content",align:t,sideOffset:a,className:H("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...o})})}import{jsx as Me,jsxs as Kn}from"react/jsx-runtime";function Jd({...e}){return Me(Fe.Root,{"data-slot":"select",...e})}function ef({...e}){return Me(Fe.Value,{"data-slot":"select-value",...e})}function tf({className:e,size:t="default",children:a,...o}){return Kn(Fe.Trigger,{"data-slot":"select-trigger","data-size":t,className:H("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...o,children:[a,Me(Fe.Icon,{asChild:!0,children:Me(St,{className:"size-4 opacity-50"})})]})}function af({className:e,children:t,position:a="item-aligned",align:o="center",...r}){return Me(Fe.Portal,{children:Kn(Fe.Content,{"data-slot":"select-content",className:H("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,align:o,...r,children:[Me(ax,{}),Me(Fe.Viewport,{className:H("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),Me(ox,{})]})})}function ao({className:e,children:t,...a}){return Kn(Fe.Item,{"data-slot":"select-item",className:H("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[Me("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:Me(Fe.ItemIndicator,{children:Me(Ra,{className:"size-4"})})}),Me(Fe.ItemText,{children:t})]})}function ax({className:e,...t}){return Me(Fe.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:H("flex cursor-default items-center justify-center py-1",e),...t,children:Me(Oa,{className:"size-4"})})}function ox({className:e,...t}){return Me(Fe.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:H("flex cursor-default items-center justify-center py-1",e),...t,children:Me(St,{className:"size-4"})})}import{jsx as rt,jsxs as oo}from"react/jsx-runtime";function rx(){let[e,t]=of.useState();return oo($d,{children:[rt(Zd,{asChild:!0,children:oo(lr,{variant:"outline",className:H("w-[240px] justify-start text-left font-normal",!e&&"text-muted-foreground"),children:[rt(Pa,{}),e?xt(e,"PPP"):rt("span",{children:"Pick a date"})]})}),oo(Qd,{align:"start",className:"flex w-auto flex-col space-y-2 p-2",children:[oo(Jd,{onValueChange:a=>t(ta(new Date,parseInt(a))),children:[rt(tf,{children:rt(ef,{placeholder:"Select"})}),oo(af,{position:"popper",children:[rt(ao,{value:"0",children:"Today"}),rt(ao,{value:"1",children:"Tomorrow"}),rt(ao,{value:"3",children:"In 3 days"}),rt(ao,{value:"7",children:"In a week"})]})]}),rt("div",{className:"rounded-md border",children:rt(Kd,{mode:"single",selected:e,onSelect:t})})]})]})}export{rx as default}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/calendar.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/check.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/chevron-down.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/chevron-left.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/chevron-right.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/chevron-up.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/8469dda1035f910e9c832b8e54da225d30f7db5c63afcc488230e30f1e0c10ec b/b/8469dda1035f910e9c832b8e54da225d30f7db5c63afcc488230e30f1e0c10ec new file mode 100644 index 0000000000000000000000000000000000000000..bb58bce241bf01efcb649cbba144a7dc55fc7637 --- /dev/null +++ b/b/8469dda1035f910e9c832b8e54da225d30f7db5c63afcc488230e30f1e0c10ec @@ -0,0 +1,78 @@ +"use client" + +import { TrendingUp } from "lucide-react" +import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts" + +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + ChartContainer, + ChartTooltip, + ChartTooltipContent, + type ChartConfig, +} from "@/registry/new-york-v4/ui/chart" + +export const description = "A radar chart with a grid and circle fill" + +const chartData = [ + { month: "January", desktop: 186 }, + { month: "February", desktop: 285 }, + { month: "March", desktop: 237 }, + { month: "April", desktop: 203 }, + { month: "May", desktop: 209 }, + { month: "June", desktop: 264 }, +] + +const chartConfig = { + desktop: { + label: "Desktop", + color: "var(--chart-1)", + }, +} satisfies ChartConfig + +export function ChartRadarGridCircleFill() { + return ( + + + Radar Chart - Grid Circle Filled + + Showing total visitors for the last 6 months + + + + + + } /> + + + + + + + +
+ Trending up by 5.2% this month +
+
+ January - June 2024 +
+
+
+ ) +} diff --git a/b/84871efeb3c55332feb4a7e262a57a70acd7ede6a2b93a89466819aa6bf913b4 b/b/84871efeb3c55332feb4a7e262a57a70acd7ede6a2b93a89466819aa6bf913b4 new file mode 100644 index 0000000000000000000000000000000000000000..5bc4848993a2d060815ed040ef66d45067591593 --- /dev/null +++ b/b/84871efeb3c55332feb4a7e262a57a70acd7ede6a2b93a89466819aa6bf913b4 @@ -0,0 +1,91 @@ +var El=Object.defineProperty;var Vo=(e,t)=>{for(var a in t)El(e,a,{get:t[a],enumerable:!0})};function Xo(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,jo=zt,$o=(e,t)=>a=>{var o;if(t?.variants==null)return jo(e,a?.class,a?.className);let{variants:r,defaultVariants:s}=t,n=Object.keys(r).map(u=>{let i=a?.[u],d=s?.[u];if(i===null)return null;let c=Ko(i)||Ko(d);return r[u][c]}),l=a&&Object.entries(a).reduce((u,i)=>{let[d,c]=i;return c===void 0||(u[d]=c),u},{}),f=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,i)=>{let{class:d,className:c,...p}=i;return Object.entries(p).every(h=>{let[m,x]=h;return Array.isArray(x)?x.includes({...s,...l}[m]):{...s,...l}[m]===x})?[...u,d,c]:u},[]);return jo(e,n,f,a?.class,a?.className)};import*as tr from"react";import*as ar from"react-dom";var Vt={};Vo(Vt,{Root:()=>ql,Slot:()=>ql,Slottable:()=>Ul,createSlot:()=>Ue,createSlottable:()=>er});import*as oe from"react";import*as Zo from"react";function Yo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function St(...e){return t=>{let a=!1,o=e.map(r=>{let s=Yo(r,t);return!a&&typeof s=="function"&&(a=!0),s});if(a)return()=>{for(let r=0;r{let{children:r,...s}=a,n=null,l=!1,f=[];Jo(r)&&typeof Wt=="function"&&(r=Wt(r._payload)),oe.Children.forEach(r,c=>{if(Gl(c)){l=!0;let p=c,h="child"in p.props?p.props.child:p.props.children;Jo(h)&&typeof Wt=="function"&&(h=Wt(h._payload)),n=_l(p,h),f.push(n?.props?.children)}else f.push(c)}),n?n=oe.cloneElement(n,void 0,f):!l&&oe.Children.count(r)===1&&oe.isValidElement(r)&&(n=r);let u=n?Hl(n):void 0,i=$(o,u);if(!n){if(r||r===0)throw new Error(l?Xl(e):Vl(e));return r}let d=Nl(s,n.props??{});return n.type!==oe.Fragment&&(d.ref=o?i:u),oe.cloneElement(n,d)});return t.displayName=`${e}.Slot`,t}var ql=Ue("Slot"),Qo=Symbol.for("radix.slottable");function er(e){let t=a=>"child"in a?a.children(a.child):a.children;return t.displayName=`${e}.Slottable`,t.__radixId=Qo,t}var Ul=er("Slottable"),_l=(e,t)=>{if("child"in e.props){let a=e.props.child;return oe.isValidElement(a)?oe.cloneElement(a,void 0,e.props.children(a.props.children)):null}return oe.isValidElement(t)?t:null};function Nl(e,t){let a={...t};for(let o in t){let r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?a[o]=(...l)=>{let f=s(...l);return r(...l),f}:r&&(a[o]=r):o==="style"?a[o]={...r,...s}:o==="className"&&(a[o]=[r,s].filter(Boolean).join(" "))}return{...e,...a}}function Hl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function Gl(e){return oe.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qo}var zl=Symbol.for("react.lazy");function Jo(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===zl&&"_payload"in e&&Wl(e._payload)}function Wl(e){return typeof e=="object"&&e!==null&&"then"in e}var Vl=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Xl=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Wt=oe[" use ".trim().toString()];import{jsx as Kl}from"react/jsx-runtime";var jl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],V=jl.reduce((e,t)=>{let a=Ue(`Primitive.${t}`),o=tr.forwardRef((r,s)=>{let{asChild:n,...l}=r,f=n?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Kl(f,{...l,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Xt(e,t){e&&ar.flushSync(()=>e.dispatchEvent(t))}import*as _e from"react";import{jsx as $l}from"react/jsx-runtime";function Me(e,t=[]){let a=[];function o(s,n){let l=_e.createContext(n);l.displayName=s+"Context";let f=a.length;a=[...a,n];let u=d=>{let{scope:c,children:p,...h}=d,m=c?.[e]?.[f]||l,x=_e.useMemo(()=>h,Object.values(h));return $l(m.Provider,{value:x,children:p})};u.displayName=s+"Provider";function i(d,c){let p=c?.[e]?.[f]||l,h=_e.useContext(p);if(h)return h;if(n!==void 0)return n;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,i]}let r=()=>{let s=a.map(n=>_e.createContext(n));return function(l){let f=l?.[e]||s;return _e.useMemo(()=>({[`__scope${e}`]:{...l,[e]:f}}),[l,f])}};return r.scopeName=e,[o,Yl(r,...t)]}function Yl(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){let n=o.reduce((l,{useScope:f,scopeName:u})=>{let d=f(s)[`__scope${u}`];return{...l,...d}},{});return _e.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return a.scopeName=t.scopeName,a}import*as ye from"react";import{jsx as Ma}from"react/jsx-runtime";import*as jt from"react";import{jsx as lc}from"react/jsx-runtime";function Kt(e){let t=e+"CollectionProvider",[a,o]=Me(t),[r,s]=a(t,{collectionRef:{current:null},itemMap:new Map}),n=m=>{let{scope:x,children:g}=m,I=ye.useRef(null),C=ye.useRef(new Map).current;return Ma(r,{scope:x,itemMap:C,collectionRef:I,children:g})};n.displayName=t;let l=e+"CollectionSlot",f=Ue(l),u=ye.forwardRef((m,x)=>{let{scope:g,children:I}=m,C=s(l,g),w=$(x,C.collectionRef);return Ma(f,{ref:w,children:I})});u.displayName=l;let i=e+"CollectionItemSlot",d="data-radix-collection-item",c=Ue(i),p=ye.forwardRef((m,x)=>{let{scope:g,children:I,...C}=m,w=ye.useRef(null),b=$(x,w),y=s(i,g);return ye.useEffect(()=>(y.itemMap.set(w,{ref:w,...C}),()=>void y.itemMap.delete(w))),Ma(c,{[d]:"",ref:b,children:I})});p.displayName=i;function h(m){let x=s(e+"CollectionConsumer",m);return ye.useCallback(()=>{let I=x.collectionRef.current;if(!I)return[];let C=Array.from(I.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((y,S)=>C.indexOf(y.ref.current)-C.indexOf(S.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:n,Slot:u,ItemSlot:p},h,o]}var dc=!!(typeof window<"u"&&window.document&&window.document.createElement);function B(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),a===!1||!r.defaultPrevented)return t?.(r)}}import*as ge from"react";import*as or from"react";var de=globalThis?.document?or.useLayoutEffect:()=>{};import*as $t from"react";var Zl=ge[" useInsertionEffect ".trim().toString()]||de;function vt({prop:e,defaultProp:t,onChange:a=()=>{},caller:o}){let[r,s,n]=Jl({defaultProp:t,onChange:a}),l=e!==void 0,f=l?e:r;{let i=ge.useRef(e!==void 0);ge.useEffect(()=>{let d=i.current;d!==l&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),i.current=l},[l,o])}let u=ge.useCallback(i=>{if(l){let d=Ql(i)?i(e):i;d!==e&&n.current?.(d)}else s(i)},[l,e,s,n]);return[f,u]}function Jl({defaultProp:e,onChange:t}){let[a,o]=ge.useState(e),r=ge.useRef(a),s=ge.useRef(t);return Zl(()=>{s.current=t},[t]),ge.useEffect(()=>{r.current!==a&&(s.current?.(a),r.current=a)},[a,r]),[a,o,s]}function Ql(e){return typeof e=="function"}var pc=Symbol("RADIX:SYNC_STATE");import*as se from"react";import*as sr from"react";function eu(e,t){return sr.useReducer((a,o)=>t[a][o]??a,e)}var ct=e=>{let{present:t,children:a}=e,o=tu(t),r=typeof a=="function"?a({present:o.isPresent}):se.Children.only(a),s=au(o.ref,ou(r));return typeof a=="function"||o.isPresent?se.cloneElement(r,{ref:s}):null};ct.displayName="Presence";function tu(e){let[t,a]=se.useState(),o=se.useRef(null),r=se.useRef(e),s=se.useRef("none"),n=e?"mounted":"unmounted",[l,f]=eu(n,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return se.useEffect(()=>{let u=Yt(o.current);s.current=l==="mounted"?u:"none"},[l]),de(()=>{let u=o.current,i=r.current;if(i!==e){let c=s.current,p=Yt(u);e?f("MOUNT"):p==="none"||u?.display==="none"?f("UNMOUNT"):f(i&&c!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,f]),de(()=>{if(t){let u,i=t.ownerDocument.defaultView??window,d=p=>{let m=Yt(o.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(f("ANIMATION_END"),!r.current)){let x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=i.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},c=p=>{p.target===t&&(s.current=Yt(o.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{i.clearTimeout(u),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:se.useCallback(u=>{o.current=u?getComputedStyle(u):null,a(u)},[])}}function rr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function au(...e){let t=se.useRef(e);return t.current=e,se.useCallback(a=>{let o=t.current,r=!1,s=o.map(n=>{let l=rr(n,a);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let n=0;n{}),su=0;function ze(e){let[t,a]=Aa.useState(ru());return de(()=>{e||a(o=>o??String(su++))},[e]),e||(t?`radix-${t}`:"")}import*as Zt from"react";import{jsx as Cc}from"react/jsx-runtime";var nu=Zt.createContext(void 0);function Jt(e){let t=Zt.useContext(nu);return e||t||"ltr"}import*as X from"react";import*as pt from"react";function ne(e){let t=pt.useRef(e);return pt.useEffect(()=>{t.current=e}),pt.useMemo(()=>(...a)=>t.current?.(...a),[])}import*as nr from"react";function lr(e,t=globalThis?.document){let a=ne(e);nr.useEffect(()=>{let o=r=>{r.key==="Escape"&&a(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[a,t])}import{jsx as ir}from"react/jsx-runtime";var lu="DismissableLayer",Da="dismissableLayer.update",uu="dismissableLayer.pointerDownOutside",du="dismissableLayer.focusOutside",ur,fr=X.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ta=X.forwardRef((e,t)=>{let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:n,onDismiss:l,...f}=e,u=X.useContext(fr),[i,d]=X.useState(null),c=i?.ownerDocument??globalThis?.document,[,p]=X.useState({}),h=$(t,S=>d(S)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(x),I=i?m.indexOf(i):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,w=I>=g,b=cu(S=>{let L=S.target,F=[...u.branches].some(E=>E.contains(L));!w||F||(r?.(S),n?.(S),S.defaultPrevented||l?.())},c),y=pu(S=>{let L=S.target;[...u.branches].some(E=>E.contains(L))||(s?.(S),n?.(S),S.defaultPrevented||l?.())},c);return lr(S=>{I===u.layers.size-1&&(o?.(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},c),X.useEffect(()=>{if(i)return a&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ur=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(i)),u.layers.add(i),dr(),()=>{a&&(u.layersWithOutsidePointerEventsDisabled.delete(i),u.layersWithOutsidePointerEventsDisabled.size===0&&(c.body.style.pointerEvents=ur))}},[i,c,a,u]),X.useEffect(()=>()=>{i&&(u.layers.delete(i),u.layersWithOutsidePointerEventsDisabled.delete(i),dr())},[i,u]),X.useEffect(()=>{let S=()=>p({});return document.addEventListener(Da,S),()=>document.removeEventListener(Da,S)},[]),ir(V.div,{...f,ref:h,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,y.onFocusCapture),onBlurCapture:B(e.onBlurCapture,y.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,b.onPointerDownCapture)})});Ta.displayName=lu;var iu="DismissableLayerBranch",fu=X.forwardRef((e,t)=>{let a=X.useContext(fr),o=X.useRef(null),r=$(t,o);return X.useEffect(()=>{let s=o.current;if(s)return a.branches.add(s),()=>{a.branches.delete(s)}},[a.branches]),ir(V.div,{...e,ref:r})});fu.displayName=iu;function cu(e,t=globalThis?.document){let a=ne(e),o=X.useRef(!1),r=X.useRef(()=>{});return X.useEffect(()=>{let s=l=>{if(l.target&&!o.current){let u=function(){cr(uu,a,i,{discrete:!0})};var f=u;let i={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},n=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,a]),{onPointerDownCapture:()=>o.current=!0}}function pu(e,t=globalThis?.document){let a=ne(e),o=X.useRef(!1);return X.useEffect(()=>{let r=s=>{s.target&&!o.current&&cr(du,a,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,a]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function dr(){let e=new CustomEvent(Da);document.dispatchEvent(e)}function cr(e,t,a,{discrete:o}){let r=a.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&r.addEventListener(e,t,{once:!0}),o?Xt(r,s):r.dispatchEvent(s)}import*as Le from"react";import{jsx as mu}from"react/jsx-runtime";var Fa="focusScope.autoFocusOnMount",Oa="focusScope.autoFocusOnUnmount",pr={bubbles:!1,cancelable:!0},hu="FocusScope",Ba=Le.forwardRef((e,t)=>{let{loop:a=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...n}=e,[l,f]=Le.useState(null),u=ne(r),i=ne(s),d=Le.useRef(null),c=$(t,m=>f(m)),p=Le.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Le.useEffect(()=>{if(o){let I=function(y){if(p.paused||!l)return;let S=y.target;l.contains(S)?d.current=S:We(d.current,{select:!0})},C=function(y){if(p.paused||!l)return;let S=y.relatedTarget;S!==null&&(l.contains(S)||We(d.current,{select:!0}))},w=function(y){if(document.activeElement===document.body)for(let L of y)L.removedNodes.length>0&&We(l)};var m=I,x=C,g=w;document.addEventListener("focusin",I),document.addEventListener("focusout",C);let b=new MutationObserver(w);return l&&b.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",I),document.removeEventListener("focusout",C),b.disconnect()}}},[o,l,p.paused]),Le.useEffect(()=>{if(l){hr.add(p);let m=document.activeElement;if(!l.contains(m)){let g=new CustomEvent(Fa,pr);l.addEventListener(Fa,u),l.dispatchEvent(g),g.defaultPrevented||(xu(wu(gr(l)),{select:!0}),document.activeElement===m&&We(l))}return()=>{l.removeEventListener(Fa,u),setTimeout(()=>{let g=new CustomEvent(Oa,pr);l.addEventListener(Oa,i),l.dispatchEvent(g),g.defaultPrevented||We(m??document.body,{select:!0}),l.removeEventListener(Oa,i),hr.remove(p)},0)}}},[l,u,i,p]);let h=Le.useCallback(m=>{if(!a&&!o||p.paused)return;let x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,g=document.activeElement;if(x&&g){let I=m.currentTarget,[C,w]=gu(I);C&&w?!m.shiftKey&&g===w?(m.preventDefault(),a&&We(C,{select:!0})):m.shiftKey&&g===C&&(m.preventDefault(),a&&We(w,{select:!0})):g===I&&m.preventDefault()}},[a,o,p.paused]);return mu(V.div,{tabIndex:-1,...n,ref:c,onKeyDown:h})});Ba.displayName=hu;function xu(e,{select:t=!1}={}){let a=document.activeElement;for(let o of e)if(We(o,{select:t}),document.activeElement!==a)return}function gu(e){let t=gr(e),a=mr(t,e),o=mr(t.reverse(),e);return[a,o]}function gr(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function mr(e,t){for(let a of e)if(!Lu(a,{upTo:t}))return a}function Lu(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Iu(e){return e instanceof HTMLInputElement&&"select"in e}function We(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&Iu(e)&&t&&e.select()}}var hr=Cu();function Cu(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=xr(e,t),e.unshift(t)},remove(t){e=xr(e,t),e[0]?.resume()}}}function xr(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function wu(e){return e.filter(t=>t.tagName!=="A")}import*as Qt from"react";import*as Lr from"react-dom";import{jsx as Su}from"react/jsx-runtime";var vu="Portal",Ea=Qt.forwardRef((e,t)=>{let{container:a,...o}=e,[r,s]=Qt.useState(!1);de(()=>s(!0),[]);let n=a||r&&globalThis?.document?.body;return n?Lr.createPortal(Su(V.div,{...o,ref:t}),n):null});Ea.displayName=vu;import*as Cr from"react";var ea=0,mt=null;function wr(){Cr.useEffect(()=>{mt||(mt={start:Ir(),end:Ir()});let{start:e,end:t}=mt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),ea++,()=>{ea===1&&(mt?.start.remove(),mt?.end.remove(),mt=null),ea=Math.max(0,ea-1)}},[])}function Ir(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ce=function(){return ce=Object.assign||function(t){for(var a,o=1,r=arguments.length;o"u")return Du;var t=Tu(e),a=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-a+t[2]-t[0])}};var Fu=yt(),ht="data-scroll-locked",Ou=function(e,t,a,o){var r=e.left,s=e.top,n=e.right,l=e.gap;return a===void 0&&(a="margin"),` + .`.concat(qa,` { + overflow: hidden `).concat(o,`; + padding-right: `).concat(l,"px ").concat(o,`; + } + body[`).concat(ht,`] { + overflow: hidden `).concat(o,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(o,";"),a==="margin"&&` + padding-left: `.concat(r,`px; + padding-top: `).concat(s,`px; + padding-right: `).concat(n,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(l,"px ").concat(o,`; + `),a==="padding"&&"padding-right: ".concat(l,"px ").concat(o,";")].filter(Boolean).join(""),` + } + + .`).concat(je,` { + right: `).concat(l,"px ").concat(o,`; + } + + .`).concat($e,` { + margin-right: `).concat(l,"px ").concat(o,`; + } + + .`).concat(je," .").concat(je,` { + right: 0 `).concat(o,`; + } + + .`).concat($e," .").concat($e,` { + margin-right: 0 `).concat(o,`; + } + + body[`).concat(ht,`] { + `).concat(Ua,": ").concat(l,`px; + } +`)},Ar=function(){var e=parseInt(document.body.getAttribute(ht)||"0",10);return isFinite(e)?e:0},Bu=function(){xt.useEffect(function(){return document.body.setAttribute(ht,(Ar()+1).toString()),function(){var e=Ar()-1;e<=0?document.body.removeAttribute(ht):document.body.setAttribute(ht,e.toString())}},[])},Ka=function(e){var t=e.noRelative,a=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Bu();var s=xt.useMemo(function(){return Xa(r)},[r]);return xt.createElement(Fu,{styles:Ou(s,!t,r,a?"":"!important")})};var ja=!1;if(typeof window<"u")try{Rt=Object.defineProperty({},"passive",{get:function(){return ja=!0,!0}}),window.addEventListener("test",Rt,Rt),window.removeEventListener("test",Rt,Rt)}catch{ja=!1}var Rt,Ye=ja?{passive:!1}:!1;var Eu=function(e){return e.tagName==="TEXTAREA"},Dr=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!Eu(e)&&a[t]==="visible")},qu=function(e){return Dr(e,"overflowY")},Uu=function(e){return Dr(e,"overflowX")},$a=function(e,t){var a=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Tr(e,o);if(r){var s=Fr(e,o),n=s[1],l=s[2];if(n>l)return!0}o=o.parentNode}while(o&&o!==a.body);return!1},_u=function(e){var t=e.scrollTop,a=e.scrollHeight,o=e.clientHeight;return[t,a,o]},Nu=function(e){var t=e.scrollLeft,a=e.scrollWidth,o=e.clientWidth;return[t,a,o]},Tr=function(e,t){return e==="v"?qu(t):Uu(t)},Fr=function(e,t){return e==="v"?_u(t):Nu(t)},Hu=function(e,t){return e==="h"&&t==="rtl"?-1:1},Or=function(e,t,a,o,r){var s=Hu(e,window.getComputedStyle(t).direction),n=s*o,l=a.target,f=t.contains(l),u=!1,i=n>0,d=0,c=0;do{if(!l)break;var p=Fr(e,l),h=p[0],m=p[1],x=p[2],g=m-x-s*h;(h||g)&&Tr(e,l)&&(d+=g,c+=h);var I=l.parentNode;l=I&&I.nodeType===Node.DOCUMENT_FRAGMENT_NODE?I.host:I}while(!f&&l!==document.body||f&&(t.contains(l)||t===l));return(i&&(r&&Math.abs(d)<1||!r&&n>d)||!i&&(r&&Math.abs(c)<1||!r&&-n>c))&&(u=!0),u};var sa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Br=function(e){return[e.deltaX,e.deltaY]},Er=function(e){return e&&"current"in e?e.current:e},Gu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zu=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},Wu=0,gt=[];function qr(e){var t=G.useRef([]),a=G.useRef([0,0]),o=G.useRef(),r=G.useState(Wu++)[0],s=G.useState(yt)[0],n=G.useRef(e);G.useEffect(function(){n.current=e},[e]),G.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var m=Sr([e.lockRef.current],(e.shards||[]).map(Er),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=G.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!n.current.allowPinchZoom;var g=sa(m),I=a.current,C="deltaX"in m?m.deltaX:I[0]-g[0],w="deltaY"in m?m.deltaY:I[1]-g[1],b,y=m.target,S=Math.abs(C)>Math.abs(w)?"h":"v";if("touches"in m&&S==="h"&&y.type==="range")return!1;var L=window.getSelection(),F=L&&L.anchorNode,E=F?F===y||F.contains(y):!1;if(E)return!1;var q=$a(S,y);if(!q)return!0;if(q?b=S:(b=S==="v"?"h":"v",q=$a(S,y)),!q)return!1;if(!o.current&&"changedTouches"in m&&(C||w)&&(o.current=b),!b)return!0;var _=o.current||b;return Or(_,x,m,_==="h"?C:w,!0)},[]),f=G.useCallback(function(m){var x=m;if(!(!gt.length||gt[gt.length-1]!==s)){var g="deltaY"in x?Br(x):sa(x),I=t.current.filter(function(b){return b.name===x.type&&(b.target===x.target||x.target===b.shadowParent)&&Gu(b.delta,g)})[0];if(I&&I.should){x.cancelable&&x.preventDefault();return}if(!I){var C=(n.current.shards||[]).map(Er).filter(Boolean).filter(function(b){return b.contains(x.target)}),w=C.length>0?l(x,C[0]):!n.current.noIsolation;w&&x.cancelable&&x.preventDefault()}}},[]),u=G.useCallback(function(m,x,g,I){var C={name:m,delta:x,target:g,should:I,shadowParent:Vu(g)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(w){return w!==C})},1)},[]),i=G.useCallback(function(m){a.current=sa(m),o.current=void 0},[]),d=G.useCallback(function(m){u(m.type,Br(m),m.target,l(m,e.lockRef.current))},[]),c=G.useCallback(function(m){u(m.type,sa(m),m.target,l(m,e.lockRef.current))},[]);G.useEffect(function(){return gt.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:c}),document.addEventListener("wheel",f,Ye),document.addEventListener("touchmove",f,Ye),document.addEventListener("touchstart",i,Ye),function(){gt=gt.filter(function(m){return m!==s}),document.removeEventListener("wheel",f,Ye),document.removeEventListener("touchmove",f,Ye),document.removeEventListener("touchstart",i,Ye)}},[]);var p=e.removeScrollBar,h=e.inert;return G.createElement(G.Fragment,null,h?G.createElement(s,{styles:zu(r)}):null,p?G.createElement(Ka,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Vu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ur=Ha(ra,qr);var _r=na.forwardRef(function(e,t){return na.createElement(bt,ce({},e,{ref:t,sideCar:Ur}))});_r.classNames=bt.classNames;var Ya=_r;var Xu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Lt=new WeakMap,la=new WeakMap,ua={},Za=0,Nr=function(e){return e&&(e.host||Nr(e.parentNode))},Ku=function(e,t){return t.map(function(a){if(e.contains(a))return a;var o=Nr(a);return o&&e.contains(o)?o:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},ju=function(e,t,a,o){var r=Ku(t,Array.isArray(e)?e:[e]);ua[a]||(ua[a]=new WeakMap);var s=ua[a],n=[],l=new Set,f=new Set(r),u=function(d){!d||l.has(d)||(l.add(d),u(d.parentNode))};r.forEach(u);var i=function(d){!d||f.has(d)||Array.prototype.forEach.call(d.children,function(c){if(l.has(c))i(c);else try{var p=c.getAttribute(o),h=p!==null&&p!=="false",m=(Lt.get(c)||0)+1,x=(s.get(c)||0)+1;Lt.set(c,m),s.set(c,x),n.push(c),m===1&&h&&la.set(c,!0),x===1&&c.setAttribute(a,"true"),h||c.setAttribute(o,"true")}catch(g){console.error("aria-hidden: cannot operate on ",c,g)}})};return i(t),l.clear(),Za++,function(){n.forEach(function(d){var c=Lt.get(d)-1,p=s.get(d)-1;Lt.set(d,c),s.set(d,p),c||(la.has(d)||d.removeAttribute(o),la.delete(d)),p||d.removeAttribute(a)}),Za--,Za||(Lt=new WeakMap,Lt=new WeakMap,la=new WeakMap,ua={})}},Hr=function(e,t,a){a===void 0&&(a="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=t||Xu(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),ju(o,r,a,"aria-hidden")):function(){return null}};import*as Gr from"react";function zr(e){let[t,a]=Gr.useState(void 0);return de(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let s=r[0],n,l;if("borderBoxSize"in s){let f=s.borderBoxSize,u=Array.isArray(f)?f[0]:f;n=u.inlineSize,l=u.blockSize}else n=e.offsetWidth,l=e.offsetHeight;a({width:n,height:l})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else a(void 0)},[e]),t}import*as M from"react";import*as re from"react";var Xr=["top","right","bottom","left"];var Ae=Math.min,ie=Math.max,kt=Math.round,Mt=Math.floor,Re=e=>({x:e,y:e}),$u={left:"right",right:"left",bottom:"top",top:"bottom"};function ia(e,t,a){return ie(e,Ae(t,a))}function De(e,t){return typeof e=="function"?e(t):e}function Te(e){return e.split("-")[0]}function Ze(e){return e.split("-")[1]}function fa(e){return e==="x"?"y":"x"}function ca(e){return e==="y"?"height":"width"}function Pe(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function pa(e){return fa(Pe(e))}function Kr(e,t,a){a===void 0&&(a=!1);let o=Ze(e),r=pa(e),s=ca(r),n=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(n=Pt(n)),[n,Pt(n)]}function jr(e){let t=Pt(e);return[da(e),t,da(t)]}function da(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Wr=["left","right"],Vr=["right","left"],Yu=["top","bottom"],Zu=["bottom","top"];function Ju(e,t,a){switch(e){case"top":case"bottom":return a?t?Vr:Wr:t?Wr:Vr;case"left":case"right":return t?Yu:Zu;default:return[]}}function $r(e,t,a,o){let r=Ze(e),s=Ju(Te(e),a==="start",o);return r&&(s=s.map(n=>n+"-"+r),t&&(s=s.concat(s.map(da)))),s}function Pt(e){let t=Te(e);return $u[t]+e.slice(t.length)}function Qu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ja(e){return typeof e!="number"?Qu(e):{top:e,right:e,bottom:e,left:e}}function Je(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function Yr(e,t,a){let{reference:o,floating:r}=e,s=Pe(t),n=pa(t),l=ca(n),f=Te(t),u=s==="y",i=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,c=o[l]/2-r[l]/2,p;switch(f){case"top":p={x:i,y:o.y-r.height};break;case"bottom":p={x:i,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(Ze(t)){case"start":p[n]-=c*(a&&u?-1:1);break;case"end":p[n]+=c*(a&&u?-1:1);break}return p}async function Qr(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:s,rects:n,elements:l,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:i="viewport",elementContext:d="floating",altBoundary:c=!1,padding:p=0}=De(t,e),h=Ja(p),x=l[c?d==="floating"?"reference":"floating":d],g=Je(await s.getClippingRect({element:(a=await(s.isElement==null?void 0:s.isElement(x)))==null||a?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:i,strategy:f})),I=d==="floating"?{x:o,y:r,width:n.floating.width,height:n.floating.height}:n.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),w=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},b=Je(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:I,offsetParent:C,strategy:f}):I);return{top:(g.top-b.top+h.top)/w.y,bottom:(b.bottom-g.bottom+h.bottom)/w.y,left:(g.left-b.left+h.left)/w.x,right:(b.right-g.right+h.right)/w.x}}var ed=50,es=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:n}=a,l=n.detectOverflow?n:{...n,detectOverflow:Qr},f=await(n.isRTL==null?void 0:n.isRTL(t)),u=await n.getElementRects({reference:e,floating:t,strategy:r}),{x:i,y:d}=Yr(u,o,f),c=o,p=0,h={};for(let m=0;m({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:s,platform:n,elements:l,middlewareData:f}=t,{element:u,padding:i=0}=De(e,t)||{};if(u==null)return{};let d=Ja(i),c={x:a,y:o},p=pa(r),h=ca(p),m=await n.getDimensions(u),x=p==="y",g=x?"top":"left",I=x?"bottom":"right",C=x?"clientHeight":"clientWidth",w=s.reference[h]+s.reference[p]-c[p]-s.floating[h],b=c[p]-s.reference[p],y=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u)),S=y?y[C]:0;(!S||!await(n.isElement==null?void 0:n.isElement(y)))&&(S=l.floating[C]||s.floating[h]);let L=w/2-b/2,F=S/2-m[h]/2-1,E=Ae(d[g],F),q=Ae(d[I],F),_=E,H=S-m[h]-q,U=S/2-m[h]/2+L,z=ia(_,U,H),T=!f.arrow&&Ze(r)!=null&&U!==z&&s.reference[h]/2-(U<_?E:q)-m[h]/2<0,N=T?U<_?U-_:U-H:0;return{[p]:c[p]+N,data:{[p]:z,centerOffset:U-z-N,...T&&{alignmentOffset:N}},reset:T}}});var as=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:r,middlewareData:s,rects:n,initialPlacement:l,platform:f,elements:u}=t,{mainAxis:i=!0,crossAxis:d=!0,fallbackPlacements:c,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...x}=De(e,t);if((a=s.arrow)!=null&&a.alignmentOffset)return{};let g=Te(r),I=Pe(l),C=Te(l)===l,w=await(f.isRTL==null?void 0:f.isRTL(u.floating)),b=c||(C||!m?[Pt(l)]:jr(l)),y=h!=="none";!c&&y&&b.push(...$r(l,m,h,w));let S=[l,...b],L=await f.detectOverflow(t,x),F=[],E=((o=s.flip)==null?void 0:o.overflows)||[];if(i&&F.push(L[g]),d){let U=Kr(r,n,w);F.push(L[U[0]],L[U[1]])}if(E=[...E,{placement:r,overflows:F}],!F.every(U=>U<=0)){var q,_;let U=(((q=s.flip)==null?void 0:q.index)||0)+1,z=S[U];if(z&&(!(d==="alignment"?I!==Pe(z):!1)||E.every(A=>Pe(A.placement)===I?A.overflows[0]>0:!0)))return{data:{index:U,overflows:E},reset:{placement:z}};let T=(_=E.filter(N=>N.overflows[0]<=0).sort((N,A)=>N.overflows[1]-A.overflows[1])[0])==null?void 0:_.placement;if(!T)switch(p){case"bestFit":{var H;let N=(H=E.filter(A=>{if(y){let k=Pe(A.placement);return k===I||k==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(k=>k>0).reduce((k,v)=>k+v,0)]).sort((A,k)=>A[1]-k[1])[0])==null?void 0:H[0];N&&(T=N);break}case"initialPlacement":T=l;break}if(r!==T)return{reset:{placement:T}}}return{}}}};function Zr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jr(e){return Xr.some(t=>e[t]>=0)}var os=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:o}=t,{strategy:r="referenceHidden",...s}=De(e,t);switch(r){case"referenceHidden":{let n=await o.detectOverflow(t,{...s,elementContext:"reference"}),l=Zr(n,a.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Jr(l)}}}case"escaped":{let n=await o.detectOverflow(t,{...s,altBoundary:!0}),l=Zr(n,a.floating);return{data:{escapedOffsets:l,escaped:Jr(l)}}}default:return{}}}}};var rs=new Set(["left","top"]);async function td(e,t){let{placement:a,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),n=Te(a),l=Ze(a),f=Pe(a)==="y",u=rs.has(n)?-1:1,i=s&&f?-1:1,d=De(t,e),{mainAxis:c,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),f?{x:p*i,y:c*u}:{x:c*u,y:p*i}}var ss=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:s,placement:n,middlewareData:l}=t,f=await td(t,e);return n===((a=l.offset)==null?void 0:a.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+f.x,y:s+f.y,data:{...f,placement:n}}}}},ns=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r,platform:s}=t,{mainAxis:n=!0,crossAxis:l=!1,limiter:f={fn:g=>{let{x:I,y:C}=g;return{x:I,y:C}}},...u}=De(e,t),i={x:a,y:o},d=await s.detectOverflow(t,u),c=Pe(Te(r)),p=fa(c),h=i[p],m=i[c];if(n){let g=p==="y"?"top":"left",I=p==="y"?"bottom":"right",C=h+d[g],w=h-d[I];h=ia(C,h,w)}if(l){let g=c==="y"?"top":"left",I=c==="y"?"bottom":"right",C=m+d[g],w=m-d[I];m=ia(C,m,w)}let x=f.fn({...t,[p]:h,[c]:m});return{...x,data:{x:x.x-a,y:x.y-o,enabled:{[p]:n,[c]:l}}}}}},ls=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:a,y:o,placement:r,rects:s,middlewareData:n}=t,{offset:l=0,mainAxis:f=!0,crossAxis:u=!0}=De(e,t),i={x:a,y:o},d=Pe(r),c=fa(d),p=i[c],h=i[d],m=De(l,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(f){let C=c==="y"?"height":"width",w=s.reference[c]-s.floating[C]+x.mainAxis,b=s.reference[c]+s.reference[C]-x.mainAxis;pb&&(p=b)}if(u){var g,I;let C=c==="y"?"width":"height",w=rs.has(Te(r)),b=s.reference[d]-s.floating[C]+(w&&((g=n.offset)==null?void 0:g[d])||0)+(w?0:x.crossAxis),y=s.reference[d]+s.reference[C]+(w?0:((I=n.offset)==null?void 0:I[d])||0)-(w?x.crossAxis:0);hy&&(h=y)}return{[c]:p,[d]:h}}}},us=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,o;let{placement:r,rects:s,platform:n,elements:l}=t,{apply:f=()=>{},...u}=De(e,t),i=await n.detectOverflow(t,u),d=Te(r),c=Ze(r),p=Pe(r)==="y",{width:h,height:m}=s.floating,x,g;d==="top"||d==="bottom"?(x=d,g=c===(await(n.isRTL==null?void 0:n.isRTL(l.floating))?"start":"end")?"left":"right"):(g=d,x=c==="end"?"top":"bottom");let I=m-i.top-i.bottom,C=h-i.left-i.right,w=Ae(m-i[x],I),b=Ae(h-i[g],C),y=!t.middlewareData.shift,S=w,L=b;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(L=C),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=I),y&&!c){let E=ie(i.left,0),q=ie(i.right,0),_=ie(i.top,0),H=ie(i.bottom,0);p?L=h-2*(E!==0||q!==0?E+q:ie(i.left,i.right)):S=m-2*(_!==0||H!==0?_+H:ie(i.top,i.bottom))}await f({...t,availableWidth:L,availableHeight:S});let F=await n.getDimensions(l.floating);return h!==F.width||m!==F.height?{reset:{rects:!0}}:{}}}};function ma(){return typeof window<"u"}function tt(e){return is(e)?(e.nodeName||"").toLowerCase():"#document"}function pe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ke(e){var t;return(t=(is(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function is(e){return ma()?e instanceof Node||e instanceof pe(e).Node:!1}function Ie(e){return ma()?e instanceof Element||e instanceof pe(e).Element:!1}function Fe(e){return ma()?e instanceof HTMLElement||e instanceof pe(e).HTMLElement:!1}function ds(e){return!ma()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pe(e).ShadowRoot}function It(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=Ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&r!=="inline"&&r!=="contents"}function fs(e){return/^(table|td|th)$/.test(tt(e))}function At(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var ad=/transform|translate|scale|rotate|perspective|filter/,od=/paint|layout|strict|content/,Qe=e=>!!e&&e!=="none",Qa;function ha(e){let t=Ie(e)?Ce(e):e;return Qe(t.transform)||Qe(t.translate)||Qe(t.scale)||Qe(t.rotate)||Qe(t.perspective)||!xa()&&(Qe(t.backdropFilter)||Qe(t.filter))||ad.test(t.willChange||"")||od.test(t.contain||"")}function cs(e){let t=Ne(e);for(;Fe(t)&&!at(t);){if(ha(t))return t;if(At(t))return null;t=Ne(t)}return null}function xa(){return Qa==null&&(Qa=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Qa}function at(e){return/^(html|body|#document)$/.test(tt(e))}function Ce(e){return pe(e).getComputedStyle(e)}function Dt(e){return Ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ne(e){if(tt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ds(e)&&e.host||ke(e);return ds(t)?t.host:t}function ps(e){let t=Ne(e);return at(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fe(t)&&It(t)?t:ps(t)}function et(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=ps(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),n=pe(r);if(s){let l=ga(n);return t.concat(n,n.visualViewport||[],It(r)?r:[],l&&a?et(l):[])}else return t.concat(r,et(r,[],a))}function ga(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gs(e){let t=Ce(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=Fe(e),s=r?e.offsetWidth:a,n=r?e.offsetHeight:o,l=kt(a)!==s||kt(o)!==n;return l&&(a=s,o=n),{width:a,height:o,$:l}}function to(e){return Ie(e)?e:e.contextElement}function Ct(e){let t=to(e);if(!Fe(t))return Re(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:s}=gs(t),n=(s?kt(a.width):a.width)/o,l=(s?kt(a.height):a.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!l||!Number.isFinite(l))&&(l=1),{x:n,y:l}}var rd=Re(0);function Ls(e){let t=pe(e);return!xa()||!t.visualViewport?rd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sd(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==pe(e)?!1:t}function ot(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),s=to(e),n=Re(1);t&&(o?Ie(o)&&(n=Ct(o)):n=Ct(e));let l=sd(s,a,o)?Ls(s):Re(0),f=(r.left+l.x)/n.x,u=(r.top+l.y)/n.y,i=r.width/n.x,d=r.height/n.y;if(s){let c=pe(s),p=o&&Ie(o)?pe(o):o,h=c,m=ga(h);for(;m&&o&&p!==h;){let x=Ct(m),g=m.getBoundingClientRect(),I=Ce(m),C=g.left+(m.clientLeft+parseFloat(I.paddingLeft))*x.x,w=g.top+(m.clientTop+parseFloat(I.paddingTop))*x.y;f*=x.x,u*=x.y,i*=x.x,d*=x.y,f+=C,u+=w,h=pe(m),m=ga(h)}}return Je({width:i,height:d,x:f,y:u})}function La(e,t){let a=Dt(e).scrollLeft;return t?t.left+a:ot(ke(e)).left+a}function Is(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-La(e,a),r=a.top+t.scrollTop;return{x:o,y:r}}function nd(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,s=r==="fixed",n=ke(o),l=t?At(t.floating):!1;if(o===n||l&&s)return a;let f={scrollLeft:0,scrollTop:0},u=Re(1),i=Re(0),d=Fe(o);if((d||!d&&!s)&&((tt(o)!=="body"||It(n))&&(f=Dt(o)),d)){let p=ot(o);u=Ct(o),i.x=p.x+o.clientLeft,i.y=p.y+o.clientTop}let c=n&&!d&&!s?Is(n,f):Re(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-f.scrollLeft*u.x+i.x+c.x,y:a.y*u.y-f.scrollTop*u.y+i.y+c.y}}function ld(e){return Array.from(e.getClientRects())}function ud(e){let t=ke(e),a=Dt(e),o=e.ownerDocument.body,r=ie(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ie(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),n=-a.scrollLeft+La(e),l=-a.scrollTop;return Ce(o).direction==="rtl"&&(n+=ie(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:n,y:l}}var ms=25;function dd(e,t){let a=pe(e),o=ke(e),r=a.visualViewport,s=o.clientWidth,n=o.clientHeight,l=0,f=0;if(r){s=r.width,n=r.height;let i=xa();(!i||i&&t==="fixed")&&(l=r.offsetLeft,f=r.offsetTop)}let u=La(o);if(u<=0){let i=o.ownerDocument,d=i.body,c=getComputedStyle(d),p=i.compatMode==="CSS1Compat"&&parseFloat(c.marginLeft)+parseFloat(c.marginRight)||0,h=Math.abs(o.clientWidth-d.clientWidth-p);h<=ms&&(s-=h)}else u<=ms&&(s+=u);return{width:s,height:n,x:l,y:f}}function id(e,t){let a=ot(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,s=Fe(e)?Ct(e):Re(1),n=e.clientWidth*s.x,l=e.clientHeight*s.y,f=r*s.x,u=o*s.y;return{width:n,height:l,x:f,y:u}}function hs(e,t,a){let o;if(t==="viewport")o=dd(e,a);else if(t==="document")o=ud(ke(e));else if(Ie(t))o=id(t,a);else{let r=Ls(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Je(o)}function Cs(e,t){let a=Ne(e);return a===t||!Ie(a)||at(a)?!1:Ce(a).position==="fixed"||Cs(a,t)}function fd(e,t){let a=t.get(e);if(a)return a;let o=et(e,[],!1).filter(l=>Ie(l)&&tt(l)!=="body"),r=null,s=Ce(e).position==="fixed",n=s?Ne(e):e;for(;Ie(n)&&!at(n);){let l=Ce(n),f=ha(n);!f&&l.position==="fixed"&&(r=null),(s?!f&&!r:!f&&l.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||It(n)&&!f&&Cs(e,n))?o=o.filter(i=>i!==n):r=l,n=Ne(n)}return t.set(e,o),o}function cd(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,n=[...a==="clippingAncestors"?At(t)?[]:fd(t,this._c):[].concat(a),o],l=hs(t,n[0],r),f=l.top,u=l.right,i=l.bottom,d=l.left;for(let c=1;c{n(!1,1e-7)},1e3)}S===1&&!vs(u,e.getBoundingClientRect())&&n(),w=!1}try{a=new IntersectionObserver(b,{...C,root:r.ownerDocument})}catch{a=new IntersectionObserver(b,C)}a.observe(e)}return n(!0),s}function ao(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:f=!1}=o,u=to(e),i=r||s?[...u?et(u):[],...t?et(t):[]]:[];i.forEach(g=>{r&&g.addEventListener("scroll",a,{passive:!0}),s&&g.addEventListener("resize",a)});let d=u&&l?gd(u,a):null,c=-1,p=null;n&&(p=new ResizeObserver(g=>{let[I]=g;I&&I.target===u&&p&&t&&(p.unobserve(t),cancelAnimationFrame(c),c=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),a()}),u&&!f&&p.observe(u),t&&p.observe(t));let h,m=f?ot(e):null;f&&x();function x(){let g=ot(e);m&&!vs(m,g)&&a(),m=g,h=requestAnimationFrame(x)}return a(),()=>{var g;i.forEach(I=>{r&&I.removeEventListener("scroll",a),s&&I.removeEventListener("resize",a)}),d?.(),(g=p)==null||g.disconnect(),p=null,f&&cancelAnimationFrame(h)}}var bs=ss;var ys=ns,Rs=as,Ps=us,ks=os,oo=ts;var Ms=ls,ro=(e,t,a)=>{let o=new Map,r={platform:Ss,...a},s={...r.platform,_c:o};return es(e,t,{...r,platform:s})};import*as J from"react";import{useLayoutEffect as Ld}from"react";import*as Ds from"react-dom";var Id=typeof document<"u",Cd=function(){},Ia=Id?Ld:Cd;function Ca(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(o=a;o--!==0;)if(!Ca(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),a=r.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=a;o--!==0;){let s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!Ca(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ts(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function As(e,t){let a=Ts(e);return Math.round(t*a)/a}function so(e){let t=J.useRef(e);return Ia(()=>{t.current=e}),t}function Fs(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:n}={},transform:l=!0,whileElementsMounted:f,open:u}=e,[i,d]=J.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[c,p]=J.useState(o);Ca(c,o)||p(o);let[h,m]=J.useState(null),[x,g]=J.useState(null),I=J.useCallback(A=>{A!==y.current&&(y.current=A,m(A))},[]),C=J.useCallback(A=>{A!==S.current&&(S.current=A,g(A))},[]),w=s||h,b=n||x,y=J.useRef(null),S=J.useRef(null),L=J.useRef(i),F=f!=null,E=so(f),q=so(r),_=so(u),H=J.useCallback(()=>{if(!y.current||!S.current)return;let A={placement:t,strategy:a,middleware:c};q.current&&(A.platform=q.current),ro(y.current,S.current,A).then(k=>{let v={...k,isPositioned:_.current!==!1};U.current&&!Ca(L.current,v)&&(L.current=v,Ds.flushSync(()=>{d(v)}))})},[c,t,a,q,_]);Ia(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[u]);let U=J.useRef(!1);Ia(()=>(U.current=!0,()=>{U.current=!1}),[]),Ia(()=>{if(w&&(y.current=w),b&&(S.current=b),w&&b){if(E.current)return E.current(w,b,H);H()}},[w,b,H,E,F]);let z=J.useMemo(()=>({reference:y,floating:S,setReference:I,setFloating:C}),[I,C]),T=J.useMemo(()=>({reference:w,floating:b}),[w,b]),N=J.useMemo(()=>{let A={position:a,left:0,top:0};if(!T.floating)return A;let k=As(T.floating,i.x),v=As(T.floating,i.y);return l?{...A,transform:"translate("+k+"px, "+v+"px)",...Ts(T.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:k,top:v}},[a,l,T.floating,i.x,i.y]);return J.useMemo(()=>({...i,update:H,refs:z,elements:T,floatingStyles:N}),[i,H,z,T,N])}var wd=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:o,padding:r}=typeof e=="function"?e(a):e;return o&&t(o)?o.current!=null?oo({element:o.current,padding:r}).fn(a):{}:o?oo({element:o,padding:r}).fn(a):{}}}},Os=(e,t)=>{let a=bs(e);return{name:a.name,fn:a.fn,options:[e,t]}},Bs=(e,t)=>{let a=ys(e);return{name:a.name,fn:a.fn,options:[e,t]}},Es=(e,t)=>({fn:Ms(e).fn,options:[e,t]}),qs=(e,t)=>{let a=Rs(e);return{name:a.name,fn:a.fn,options:[e,t]}},Us=(e,t)=>{let a=Ps(e);return{name:a.name,fn:a.fn,options:[e,t]}};var _s=(e,t)=>{let a=ks(e);return{name:a.name,fn:a.fn,options:[e,t]}};var Ns=(e,t)=>{let a=wd(e);return{name:a.name,fn:a.fn,options:[e,t]}};import*as Gs from"react";import{jsx as Hs}from"react/jsx-runtime";var Sd="Arrow",zs=Gs.forwardRef((e,t)=>{let{children:a,width:o=10,height:r=5,...s}=e;return Hs(V.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:Hs("polygon",{points:"0,0 30,0 15,10"})})});zs.displayName=Sd;var Ws=zs;import{jsx as rt}from"react/jsx-runtime";var no="Popper",[Vs,lo]=Me(no),[bd,Xs]=Vs(no),Ks=e=>{let{__scopePopper:t,children:a}=e,[o,r]=re.useState(null),[s,n]=re.useState(void 0);return rt(bd,{scope:t,anchor:o,onAnchorChange:r,placementState:s,setPlacementState:n,children:a})};Ks.displayName=no;var js="PopperAnchor",$s=re.forwardRef((e,t)=>{let{__scopePopper:a,virtualRef:o,...r}=e,s=Xs(js,a),n=re.useRef(null),l=s.onAnchorChange,f=re.useCallback(h=>{n.current=h,h&&l(h)},[l]),u=$(t,f),i=re.useRef(null);re.useEffect(()=>{if(!o)return;let h=i.current;i.current=o.current,h!==i.current&&l(i.current)});let d=s.placementState&&io(s.placementState),c=d?.[0],p=d?.[1];return o?null:rt(V.div,{"data-radix-popper-side":c,"data-radix-popper-align":p,...r,ref:u})});$s.displayName=js;var uo="PopperContent",[yd,Rd]=Vs(uo),Ys=re.forwardRef((e,t)=>{let{__scopePopper:a,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:n=0,arrowPadding:l=0,avoidCollisions:f=!0,collisionBoundary:u,collisionPadding:i=0,sticky:d="partial",hideWhenDetached:c=!1,updatePositionStrategy:p="optimized",onPlaced:h,...m}=e,x=Xs(uo,a),[g,I]=re.useState(null),C=$(t,be=>I(be)),[w,b]=re.useState(null),y=zr(w),S=y?.width??0,L=y?.height??0,F=o+(s!=="center"?"-"+s:""),E=typeof i=="number"?i:{top:0,right:0,bottom:0,left:0,...i},q=u?Array.isArray(u)?u:[u]:void 0,_=q!==void 0&&q.length>0,H={padding:E,boundary:q?.filter(kd),altBoundary:_},{refs:U,floatingStyles:z,placement:T,isPositioned:N,middlewareData:A}=Fs({strategy:"fixed",placement:F,whileElementsMounted:(...be)=>ao(...be,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[Os({mainAxis:r+L,alignmentAxis:n}),f&&Bs({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Es():void 0,...H}),f&&qs({...H}),Us({...H,apply:({elements:be,rects:j,availableWidth:Gt,availableHeight:it})=>{let{width:ft,height:wt}=j.reference,qe=be.floating.style;qe.setProperty("--radix-popper-available-width",`${Gt}px`),qe.setProperty("--radix-popper-available-height",`${it}px`),qe.setProperty("--radix-popper-anchor-width",`${ft}px`),qe.setProperty("--radix-popper-anchor-height",`${wt}px`)}}),w&&Ns({element:w,padding:l}),Md({arrowWidth:S,arrowHeight:L}),c&&_s({strategy:"referenceHidden",...H})]}),k=x.setPlacementState;de(()=>(k(T),()=>{k(void 0)}),[T,k]);let[v,he]=io(T),ve=ne(h);de(()=>{N&&ve?.()},[N,ve]);let Ge=A.arrow?.x,Ee=A.arrow?.y,Y=A.arrow?.centerOffset!==0,[W,Z]=re.useState();return de(()=>{g&&Z(window.getComputedStyle(g).zIndex)},[g]),rt("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:N?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:rt(yd,{scope:a,placedSide:v,placedAlign:he,onArrowChange:b,arrowX:Ge,arrowY:Ee,shouldHideArrow:Y,children:rt(V.div,{"data-side":v,"data-align":he,...m,ref:C,style:{...m.style,animation:N?void 0:"none"}})})})});Ys.displayName=uo;var Zs="PopperArrow",Pd={top:"bottom",right:"left",bottom:"top",left:"right"},Js=re.forwardRef(function(t,a){let{__scopePopper:o,...r}=t,s=Rd(Zs,o),n=Pd[s.placedSide];return rt("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[n]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:rt(Ws,{...r,ref:a,style:{...r.style,display:"block"}})})});Js.displayName=Zs;function kd(e){return e!==null}var Md=e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:o,middlewareData:r}=t,n=r.arrow?.centerOffset!==0,l=n?0:e.arrowWidth,f=n?0:e.arrowHeight,[u,i]=io(a),d={start:"0%",center:"50%",end:"100%"}[i],c=(r.arrow?.x??0)+l/2,p=(r.arrow?.y??0)+f/2,h="",m="";return u==="bottom"?(h=n?d:`${c}px`,m=`${-f}px`):u==="top"?(h=n?d:`${c}px`,m=`${o.floating.height+f}px`):u==="right"?(h=`${-f}px`,m=n?d:`${p}px`):u==="left"&&(h=`${o.floating.width+f}px`,m=n?d:`${p}px`),{data:{x:h,y:m}}}});function io(e){let[t,a="center"]=e.split("-");return[t,a]}var fo=Ks,Qs=$s,en=Ys,tn=Js;import*as te from"react";import{jsx as st}from"react/jsx-runtime";var co="rovingFocusGroup.onEntryFocus",Dd={bubbles:!1,cancelable:!0},Tt="RovingFocusGroup",[po,an,Td]=Kt(Tt),[Fd,mo]=Me(Tt,[Td]),[Od,Bd]=Fd(Tt),on=te.forwardRef((e,t)=>st(po.Provider,{scope:e.__scopeRovingFocusGroup,children:st(po.Slot,{scope:e.__scopeRovingFocusGroup,children:st(Ed,{...e,ref:t})})}));on.displayName=Tt;var Ed=te.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:o,loop:r=!1,dir:s,currentTabStopId:n,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:f,onEntryFocus:u,preventScrollOnEntryFocus:i=!1,...d}=e,c=te.useRef(null),p=$(t,c),h=Jt(s),[m,x]=vt({prop:n,defaultProp:l??null,onChange:f,caller:Tt}),[g,I]=te.useState(!1),C=ne(u),w=an(a),b=te.useRef(!1),[y,S]=te.useState(0);return te.useEffect(()=>{let L=c.current;if(L)return L.addEventListener(co,C),()=>L.removeEventListener(co,C)},[C]),st(Od,{scope:a,orientation:o,dir:h,loop:r,currentTabStopId:m,onItemFocus:te.useCallback(L=>x(L),[x]),onItemShiftTab:te.useCallback(()=>I(!0),[]),onFocusableItemAdd:te.useCallback(()=>S(L=>L+1),[]),onFocusableItemRemove:te.useCallback(()=>S(L=>L-1),[]),children:st(V.div,{tabIndex:g||y===0?-1:0,"data-orientation":o,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{b.current=!0}),onFocus:B(e.onFocus,L=>{let F=!b.current;if(L.target===L.currentTarget&&F&&!g){let E=new CustomEvent(co,Dd);if(L.currentTarget.dispatchEvent(E),!E.defaultPrevented){let q=w().filter(T=>T.focusable),_=q.find(T=>T.active),H=q.find(T=>T.id===m),z=[_,H,...q].filter(Boolean).map(T=>T.ref.current);nn(z,i)}}b.current=!1}),onBlur:B(e.onBlur,()=>I(!1))})})}),rn="RovingFocusGroupItem",sn=te.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:o=!0,active:r=!1,tabStopId:s,children:n,...l}=e,f=ze(),u=s||f,i=Bd(rn,a),d=i.currentTabStopId===u,c=an(a),{onFocusableItemAdd:p,onFocusableItemRemove:h,currentTabStopId:m}=i;return te.useEffect(()=>{if(o)return p(),()=>h()},[o,p,h]),st(po.ItemSlot,{scope:a,id:u,focusable:o,active:r,children:st(V.span,{tabIndex:d?0:-1,"data-orientation":i.orientation,...l,ref:t,onMouseDown:B(e.onMouseDown,x=>{o?i.onItemFocus(u):x.preventDefault()}),onFocus:B(e.onFocus,()=>i.onItemFocus(u)),onKeyDown:B(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){i.onItemShiftTab();return}if(x.target!==x.currentTarget)return;let g=_d(x,i.orientation,i.dir);if(g!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let C=c().filter(w=>w.focusable).map(w=>w.ref.current);if(g==="last")C.reverse();else if(g==="prev"||g==="next"){g==="prev"&&C.reverse();let w=C.indexOf(x.currentTarget);C=i.loop?Nd(C,w+1):C.slice(w+1)}setTimeout(()=>nn(C))}}),children:typeof n=="function"?n({isCurrentTabStop:d,hasTabStop:m!=null}):n})})});sn.displayName=rn;var qd={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ud(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _d(e,t,a){let o=Ud(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return qd[o]}function nn(e,t=!1){let a=document.activeElement;for(let o of e)if(o===a||(o.focus({preventScroll:t}),document.activeElement!==a))return}function Nd(e,t){return e.map((a,o)=>e[(t+o)%e.length])}var ln=on,un=sn;import{jsx as D}from"react/jsx-runtime";var ho=["Enter"," "],Gd=["ArrowDown","PageUp","Home"],fn=["ArrowUp","PageDown","End"],zd=[...Gd,...fn],Wd={ltr:[...ho,"ArrowRight"],rtl:[...ho,"ArrowLeft"]},Vd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Et="Menu",[Ot,Xd,Kd]=Kt(Et),[nt,xo]=Me(Et,[Kd,lo,mo]),qt=lo(),cn=mo(),[pn,Ve]=nt(Et),[jd,Ut]=nt(Et),mn=e=>{let{__scopeMenu:t,open:a=!1,children:o,dir:r,onOpenChange:s,modal:n=!0}=e,l=qt(t),[f,u]=M.useState(null),i=M.useRef(!1),d=ne(s),c=Jt(r);return M.useEffect(()=>{let p=()=>{i.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>i.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),D(fo,{...l,children:D(pn,{scope:t,open:a,onOpenChange:d,content:f,onContentChange:u,children:D(jd,{scope:t,onClose:M.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:i,dir:c,modal:n,children:o})})})};mn.displayName=Et;var $d="MenuAnchor",go=M.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e,r=qt(a);return D(Qs,{...r,...o,ref:t})});go.displayName=$d;var Lo="MenuPortal",[Yd,hn]=nt(Lo,{forceMount:void 0}),xn=e=>{let{__scopeMenu:t,forceMount:a,children:o,container:r}=e,s=Ve(Lo,t);return D(Yd,{scope:t,forceMount:a,children:D(ct,{present:a||s.open,children:D(Ea,{asChild:!0,container:r,children:o})})})};xn.displayName=Lo;var we="MenuContent",[Zd,Io]=nt(we),gn=M.forwardRef((e,t)=>{let a=hn(we,e.__scopeMenu),{forceMount:o=a.forceMount,...r}=e,s=Ve(we,e.__scopeMenu),n=Ut(we,e.__scopeMenu);return D(Ot.Provider,{scope:e.__scopeMenu,children:D(ct,{present:o||s.open,children:D(Ot.Slot,{scope:e.__scopeMenu,children:n.modal?D(Jd,{...r,ref:t}):D(Qd,{...r,ref:t})})})})}),Jd=M.forwardRef((e,t)=>{let a=Ve(we,e.__scopeMenu),o=M.useRef(null),r=$(t,o);return M.useEffect(()=>{let s=o.current;if(s)return Hr(s)},[]),D(Co,{...e,ref:r,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:B(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})}),Qd=M.forwardRef((e,t)=>{let a=Ve(we,e.__scopeMenu);return D(Co,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>a.onOpenChange(!1)})}),ei=Ue("MenuContent.ScrollLock"),Co=M.forwardRef((e,t)=>{let{__scopeMenu:a,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:n,disableOutsidePointerEvents:l,onEntryFocus:f,onEscapeKeyDown:u,onPointerDownOutside:i,onFocusOutside:d,onInteractOutside:c,onDismiss:p,disableOutsideScroll:h,...m}=e,x=Ve(we,a),g=Ut(we,a),I=qt(a),C=cn(a),w=Xd(a),[b,y]=M.useState(null),S=M.useRef(null),L=$(t,S,x.onContentChange),F=M.useRef(0),E=M.useRef(""),q=M.useRef(0),_=M.useRef(null),H=M.useRef("right"),U=M.useRef(0),z=h?Ya:M.Fragment,T=h?{as:ei,allowPinchZoom:!0}:void 0,N=k=>{let v=E.current+k,he=w().filter(Z=>!Z.disabled),ve=document.activeElement,Ge=he.find(Z=>Z.ref.current===ve)?.textValue,Ee=he.map(Z=>Z.textValue),Y=ci(Ee,v,Ge),W=he.find(Z=>Z.textValue===Y)?.ref.current;(function Z(be){E.current=be,window.clearTimeout(F.current),be!==""&&(F.current=window.setTimeout(()=>Z(""),1e3))})(v),W&&setTimeout(()=>W.focus())};M.useEffect(()=>()=>window.clearTimeout(F.current),[]),wr();let A=M.useCallback(k=>H.current===_.current?.side&&mi(k,_.current?.area),[]);return D(Zd,{scope:a,searchRef:E,onItemEnter:M.useCallback(k=>{A(k)&&k.preventDefault()},[A]),onItemLeave:M.useCallback(k=>{A(k)||(S.current?.focus(),y(null))},[A]),onTriggerLeave:M.useCallback(k=>{A(k)&&k.preventDefault()},[A]),pointerGraceTimerRef:q,onPointerGraceIntentChange:M.useCallback(k=>{_.current=k},[]),children:D(z,{...T,children:D(Ba,{asChild:!0,trapped:r,onMountAutoFocus:B(s,k=>{k.preventDefault(),S.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:n,children:D(Ta,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:i,onFocusOutside:d,onInteractOutside:c,onDismiss:p,children:D(ln,{asChild:!0,...C,dir:g.dir,orientation:"vertical",loop:o,currentTabStopId:b,onCurrentTabStopIdChange:y,onEntryFocus:B(f,k=>{g.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:D(en,{role:"menu","aria-orientation":"vertical","data-state":On(x.open),"data-radix-menu-content":"",dir:g.dir,...I,...m,ref:L,style:{outline:"none",...m.style},onKeyDown:B(m.onKeyDown,k=>{let he=k.target.closest("[data-radix-menu-content]")===k.currentTarget,ve=k.ctrlKey||k.altKey||k.metaKey,Ge=k.key.length===1;he&&(k.key==="Tab"&&k.preventDefault(),!ve&&Ge&&N(k.key));let Ee=S.current;if(k.target!==Ee||!zd.includes(k.key))return;k.preventDefault();let W=w().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);fn.includes(k.key)&&W.reverse(),ii(W)}),onBlur:B(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(F.current),E.current="")}),onPointerMove:B(e.onPointerMove,Bt(k=>{let v=k.target,he=U.current!==k.clientX;if(k.currentTarget.contains(v)&&he){let ve=k.clientX>U.current?"right":"left";H.current=ve,U.current=k.clientX}}))})})})})})})});gn.displayName=we;var ti="MenuGroup",wo=M.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e;return D(V.div,{role:"group",...o,ref:t})});wo.displayName=ti;var ai="MenuLabel",Ln=M.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e;return D(V.div,{...o,ref:t})});Ln.displayName=ai;var wa="MenuItem",dn="menu.itemSelect",va=M.forwardRef((e,t)=>{let{disabled:a=!1,onSelect:o,...r}=e,s=M.useRef(null),n=Ut(wa,e.__scopeMenu),l=Io(wa,e.__scopeMenu),f=$(t,s),u=M.useRef(!1),i=()=>{let d=s.current;if(!a&&d){let c=new CustomEvent(dn,{bubbles:!0,cancelable:!0});d.addEventListener(dn,p=>o?.(p),{once:!0}),Xt(d,c),c.defaultPrevented?u.current=!1:n.onClose()}};return D(In,{...r,ref:f,disabled:a,onClick:B(e.onClick,i),onPointerDown:d=>{e.onPointerDown?.(d),u.current=!0},onPointerUp:B(e.onPointerUp,d=>{u.current||d.currentTarget?.click()}),onKeyDown:B(e.onKeyDown,d=>{let c=l.searchRef.current!=="";a||c&&d.key===" "||ho.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});va.displayName=wa;var In=M.forwardRef((e,t)=>{let{__scopeMenu:a,disabled:o=!1,textValue:r,...s}=e,n=Io(wa,a),l=cn(a),f=M.useRef(null),u=$(t,f),[i,d]=M.useState(!1),[c,p]=M.useState("");return M.useEffect(()=>{let h=f.current;h&&p((h.textContent??"").trim())},[s.children]),D(Ot.ItemSlot,{scope:a,disabled:o,textValue:r??c,children:D(un,{asChild:!0,...l,focusable:!o,children:D(V.div,{role:"menuitem","data-highlighted":i?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:u,onPointerMove:B(e.onPointerMove,Bt(h=>{o?n.onItemLeave(h):(n.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:B(e.onPointerLeave,Bt(h=>n.onItemLeave(h))),onFocus:B(e.onFocus,()=>d(!0)),onBlur:B(e.onBlur,()=>d(!1))})})})}),oi="MenuCheckboxItem",Cn=M.forwardRef((e,t)=>{let{checked:a=!1,onCheckedChange:o,...r}=e;return D(yn,{scope:e.__scopeMenu,checked:a,children:D(va,{role:"menuitemcheckbox","aria-checked":Sa(a)?"mixed":a,...r,ref:t,"data-state":bo(a),onSelect:B(r.onSelect,()=>o?.(Sa(a)?!0:!a),{checkForDefaultPrevented:!1})})})});Cn.displayName=oi;var wn="MenuRadioGroup",[ri,si]=nt(wn,{value:void 0,onValueChange:()=>{}}),Sn=M.forwardRef((e,t)=>{let{value:a,onValueChange:o,...r}=e,s=ne(o);return D(ri,{scope:e.__scopeMenu,value:a,onValueChange:s,children:D(wo,{...r,ref:t})})});Sn.displayName=wn;var vn="MenuRadioItem",bn=M.forwardRef((e,t)=>{let{value:a,...o}=e,r=si(vn,e.__scopeMenu),s=a===r.value;return D(yn,{scope:e.__scopeMenu,checked:s,children:D(va,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":bo(s),onSelect:B(o.onSelect,()=>r.onValueChange?.(a),{checkForDefaultPrevented:!1})})})});bn.displayName=vn;var So="MenuItemIndicator",[yn,ni]=nt(So,{checked:!1}),Rn=M.forwardRef((e,t)=>{let{__scopeMenu:a,forceMount:o,...r}=e,s=ni(So,a);return D(ct,{present:o||Sa(s.checked)||s.checked===!0,children:D(V.span,{...r,ref:t,"data-state":bo(s.checked)})})});Rn.displayName=So;var li="MenuSeparator",Pn=M.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e;return D(V.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Pn.displayName=li;var ui="MenuArrow",kn=M.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e,r=qt(a);return D(tn,{...r,...o,ref:t})});kn.displayName=ui;var vo="MenuSub",[di,Mn]=nt(vo),An=e=>{let{__scopeMenu:t,children:a,open:o=!1,onOpenChange:r}=e,s=Ve(vo,t),n=qt(t),[l,f]=M.useState(null),[u,i]=M.useState(null),d=ne(r);return M.useEffect(()=>(s.open===!1&&d(!1),()=>d(!1)),[s.open,d]),D(fo,{...n,children:D(pn,{scope:t,open:o,onOpenChange:d,content:u,onContentChange:i,children:D(di,{scope:t,contentId:ze(),triggerId:ze(),trigger:l,onTriggerChange:f,children:a})})})};An.displayName=vo;var Ft="MenuSubTrigger",Dn=M.forwardRef((e,t)=>{let a=Ve(Ft,e.__scopeMenu),o=Ut(Ft,e.__scopeMenu),r=Mn(Ft,e.__scopeMenu),s=Io(Ft,e.__scopeMenu),n=M.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:f}=s,u={__scopeMenu:e.__scopeMenu},i=M.useCallback(()=>{n.current&&window.clearTimeout(n.current),n.current=null},[]);return M.useEffect(()=>i,[i]),M.useEffect(()=>{let d=l.current;return()=>{window.clearTimeout(d),f(null)}},[l,f]),D(go,{asChild:!0,...u,children:D(In,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?r.contentId:void 0,"data-state":On(a.open),...e,ref:St(t,r.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:B(e.onPointerMove,Bt(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!a.open&&!n.current&&(s.onPointerGraceIntentChange(null),n.current=window.setTimeout(()=>{a.onOpenChange(!0),i()},100))})),onPointerLeave:B(e.onPointerLeave,Bt(d=>{i();let c=a.content?.getBoundingClientRect();if(c){let p=a.content?.dataset.side,h=p==="right",m=h?-5:5,x=c[h?"left":"right"],g=c[h?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x,y:c.top},{x:g,y:c.top},{x:g,y:c.bottom},{x,y:c.bottom}],side:p}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:B(e.onKeyDown,d=>{let c=s.searchRef.current!=="";e.disabled||c&&d.key===" "||Wd[o.dir].includes(d.key)&&(a.onOpenChange(!0),a.content?.focus(),d.preventDefault())})})})});Dn.displayName=Ft;var Tn="MenuSubContent",Fn=M.forwardRef((e,t)=>{let a=hn(we,e.__scopeMenu),{forceMount:o=a.forceMount,align:r="start",...s}=e,n=Ve(we,e.__scopeMenu),l=Ut(we,e.__scopeMenu),f=Mn(Tn,e.__scopeMenu),u=M.useRef(null),i=$(t,u);return D(Ot.Provider,{scope:e.__scopeMenu,children:D(ct,{present:o||n.open,children:D(Ot.Slot,{scope:e.__scopeMenu,children:D(Co,{id:f.contentId,"aria-labelledby":f.triggerId,...s,ref:i,align:r,side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{l.isUsingKeyboardRef.current&&u.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:B(e.onFocusOutside,d=>{d.target!==f.trigger&&n.onOpenChange(!1)}),onEscapeKeyDown:B(e.onEscapeKeyDown,d=>{l.onClose(),d.preventDefault()}),onKeyDown:B(e.onKeyDown,d=>{let c=d.currentTarget.contains(d.target),p=Vd[l.dir].includes(d.key);c&&p&&(n.onOpenChange(!1),f.trigger?.focus(),d.preventDefault())})})})})})});Fn.displayName=Tn;function On(e){return e?"open":"closed"}function Sa(e){return e==="indeterminate"}function bo(e){return Sa(e)?"indeterminate":e?"checked":"unchecked"}function ii(e){let t=document.activeElement;for(let a of e)if(a===t||(a.focus(),document.activeElement!==t))return}function fi(e,t){return e.map((a,o)=>e[(t+o)%e.length])}function ci(e,t,a){let r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=a?e.indexOf(a):-1,n=fi(e,Math.max(s,0));r.length===1&&(n=n.filter(u=>u!==a));let f=n.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return f!==a?f:void 0}function pi(e,t){let{x:a,y:o}=e,r=!1;for(let s=0,n=t.length-1;so!=c>o&&a<(d-u)*(o-i)/(c-i)+u&&(r=!r)}return r}function mi(e,t){if(!t)return!1;let a={x:e.clientX,y:e.clientY};return pi(a,t)}function Bt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Bn=mn,En=go,qn=xn,Un=gn,_n=wo,Nn=Ln,Hn=va,Gn=Cn,zn=Sn,Wn=bn,Vn=Rn,Xn=Pn,Kn=kn,jn=An,$n=Dn,Yn=Fn;var fe={};Vo(fe,{Arrow:()=>zi,CheckboxItem:()=>Ui,Content:()=>Oi,DropdownMenu:()=>yo,DropdownMenuArrow:()=>qo,DropdownMenuCheckboxItem:()=>To,DropdownMenuContent:()=>ko,DropdownMenuGroup:()=>Mo,DropdownMenuItem:()=>Do,DropdownMenuItemIndicator:()=>Bo,DropdownMenuLabel:()=>Ao,DropdownMenuPortal:()=>Po,DropdownMenuRadioGroup:()=>Fo,DropdownMenuRadioItem:()=>Oo,DropdownMenuSeparator:()=>Eo,DropdownMenuSub:()=>el,DropdownMenuSubContent:()=>_o,DropdownMenuSubTrigger:()=>Uo,DropdownMenuTrigger:()=>Ro,Group:()=>Bi,Item:()=>qi,ItemIndicator:()=>Hi,Label:()=>Ei,Portal:()=>Fi,RadioGroup:()=>_i,RadioItem:()=>Ni,Root:()=>Di,Separator:()=>Gi,Sub:()=>Wi,SubContent:()=>Xi,SubTrigger:()=>Vi,Trigger:()=>Ti,createDropdownMenuScope:()=>gi});import*as Q from"react";import{jsx as ae}from"react/jsx-runtime";var ba="DropdownMenu",[xi,gi]=Me(ba,[xo]),ue=xo(),[Li,Zn]=xi(ba),yo=e=>{let{__scopeDropdownMenu:t,children:a,dir:o,open:r,defaultOpen:s,onOpenChange:n,modal:l=!0}=e,f=ue(t),u=Q.useRef(null),[i,d]=vt({prop:r,defaultProp:s??!1,onChange:n,caller:ba});return ae(Li,{scope:t,triggerId:ze(),triggerRef:u,contentId:ze(),open:i,onOpenChange:d,onOpenToggle:Q.useCallback(()=>d(c=>!c),[d]),modal:l,children:ae(Bn,{...f,open:i,onOpenChange:d,dir:o,modal:l,children:a})})};yo.displayName=ba;var Jn="DropdownMenuTrigger",Ro=Q.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,disabled:o=!1,...r}=e,s=Zn(Jn,a),n=ue(a);return ae(En,{asChild:!0,...n,children:ae(V.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:St(t,s.triggerRef),onPointerDown:B(e.onPointerDown,l=>{!o&&l.button===0&&l.ctrlKey===!1&&(s.onOpenToggle(),s.open||l.preventDefault())}),onKeyDown:B(e.onKeyDown,l=>{o||(["Enter"," "].includes(l.key)&&s.onOpenToggle(),l.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Ro.displayName=Jn;var Ii="DropdownMenuPortal",Po=e=>{let{__scopeDropdownMenu:t,...a}=e,o=ue(t);return ae(qn,{...o,...a})};Po.displayName=Ii;var Qn="DropdownMenuContent",ko=Q.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=Zn(Qn,a),s=ue(a),n=Q.useRef(!1);return ae(Un,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:B(e.onCloseAutoFocus,l=>{n.current||r.triggerRef.current?.focus(),n.current=!1,l.preventDefault()}),onInteractOutside:B(e.onInteractOutside,l=>{let f=l.detail.originalEvent,u=f.button===0&&f.ctrlKey===!0,i=f.button===2||u;(!r.modal||i)&&(n.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ko.displayName=Qn;var Ci="DropdownMenuGroup",Mo=Q.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=ue(a);return ae(_n,{...r,...o,ref:t})});Mo.displayName=Ci;var wi="DropdownMenuLabel",Ao=Q.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=ue(a);return ae(Nn,{...r,...o,ref:t})});Ao.displayName=wi;var Si="DropdownMenuItem",Do=Q.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=ue(a);return ae(Hn,{...r,...o,ref:t})});Do.displayName=Si;var vi="DropdownMenuCheckboxItem",To=Q.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=ue(a);return ae(Gn,{...r,...o,ref:t})});To.displayName=vi;var bi="DropdownMenuRadioGroup",Fo=Q.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=ue(a);return ae(zn,{...r,...o,ref:t})});Fo.displayName=bi;var yi="DropdownMenuRadioItem",Oo=Q.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=ue(a);return ae(Wn,{...r,...o,ref:t})});Oo.displayName=yi;var Ri="DropdownMenuItemIndicator",Bo=Q.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=ue(a);return ae(Vn,{...r,...o,ref:t})});Bo.displayName=Ri;var Pi="DropdownMenuSeparator",Eo=Q.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=ue(a);return ae(Xn,{...r,...o,ref:t})});Eo.displayName=Pi;var ki="DropdownMenuArrow",qo=Q.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=ue(a);return ae(Kn,{...r,...o,ref:t})});qo.displayName=ki;var el=e=>{let{__scopeDropdownMenu:t,children:a,open:o,onOpenChange:r,defaultOpen:s}=e,n=ue(t),[l,f]=vt({prop:o,defaultProp:s??!1,onChange:r,caller:"DropdownMenuSub"});return ae(jn,{...n,open:l,onOpenChange:f,children:a})},Mi="DropdownMenuSubTrigger",Uo=Q.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=ue(a);return ae($n,{...r,...o,ref:t})});Uo.displayName=Mi;var Ai="DropdownMenuSubContent",_o=Q.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=ue(a);return ae(Yn,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});_o.displayName=Ai;var Di=yo,Ti=Ro,Fi=Po,Oi=ko,Bi=Mo,Ei=Ao,qi=Do,Ui=To,_i=Fo,Ni=Oo,Hi=Bo,Gi=Eo,zi=qo,Wi=el,Vi=Uo,Xi=_o;var Ki=(e,t)=>{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),ll=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),Pa="-",tl=[],$i="arbitrary..",Yi=e=>{let t=Ji(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{if(n.startsWith("[")&&n.endsWith("]"))return Zi(n);let l=n.split(Pa),f=l[0]===""&&l.length>1?1:0;return ul(l,f,t)},getConflictingClassGroupIds:(n,l)=>{if(l){let f=o[n],u=a[n];return f?u?Ki(u,f):f:u||tl}return a[n]||tl}}},ul=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],s=a.nextPart.get(r);if(s){let u=ul(e,t+1,s);if(u)return u}let n=a.validators;if(n===null)return;let l=t===0?e.join(Pa):e.slice(t).join(Pa),f=n.length;for(let u=0;ue.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?$i+o:void 0})(),Ji=e=>{let{theme:t,classGroups:a}=e;return Qi(a,t)},Qi=(e,t)=>{let a=ll();for(let o in e){let r=e[o];Go(r,a,o,t)}return a},Go=(e,t,a,o)=>{let r=e.length;for(let s=0;s{if(typeof e=="string"){tf(e,t,a);return}if(typeof e=="function"){af(e,t,a,o);return}of(e,t,a,o)},tf=(e,t,a)=>{let o=e===""?t:dl(t,e);o.classGroupId=a},af=(e,t,a,o)=>{if(rf(e)){Go(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(ji(a,e))},of=(e,t,a,o)=>{let r=Object.entries(e),s=r.length;for(let n=0;n{let a=e,o=t.split(Pa),r=o.length;for(let s=0;s"isThemeGetter"in e&&e.isThemeGetter===!0,sf=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(s,n)=>{a[s]=n,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(s){let n=a[s];if(n!==void 0)return n;if((n=o[s])!==void 0)return r(s,n),n},set(s,n){s in a?a[s]=n:r(s,n)}}},Ho="!",al=":",nf=[],ol=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),lf=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=r=>{let s=[],n=0,l=0,f=0,u,i=r.length;for(let m=0;mf?u-f:void 0;return ol(s,p,c,h)};if(t){let r=t+al,s=o;o=n=>n.startsWith(r)?s(n.slice(r.length)):ol(nf,!1,n,void 0,!0)}if(a){let r=o;o=s=>a({className:s,parseClassName:r})}return o},uf=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],r=[];for(let s=0;s0&&(r.sort(),o.push(...r),r=[]),o.push(n)):r.push(n)}return r.length>0&&(r.sort(),o.push(...r)),o}},df=e=>({cache:sf(e.cacheSize),parseClassName:lf(e),sortModifiers:uf(e),postfixLookupClassGroupIds:ff(e),...Yi(e)}),ff=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:s,postfixLookupClassGroupIds:n}=t,l=[],f=e.trim().split(cf),u="";for(let i=f.length-1;i>=0;i-=1){let d=f[i],{isExternal:c,modifiers:p,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:x}=a(d);if(c){u=d+(u.length>0?" "+u:u);continue}let g=!!x,I;if(g){let S=m.substring(0,x);I=o(S);let L=I&&n[I]?o(m):void 0;L&&L!==I&&(I=L,g=!1)}else I=o(m);if(!I){if(!g){u=d+(u.length>0?" "+u:u);continue}if(I=o(m),!I){u=d+(u.length>0?" "+u:u);continue}g=!1}let C=p.length===0?"":p.length===1?p[0]:s(p).join(":"),w=h?C+Ho:C,b=w+I;if(l.indexOf(b)>-1)continue;l.push(b);let y=r(I,g);for(let S=0;S0?" "+u:u)}return u},mf=(...e)=>{let t=0,a,o,r="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,r,s,n=f=>{let u=t.reduce((i,d)=>d(i),e());return a=df(u),o=a.cache.get,r=a.cache.set,s=l,l(f)},l=f=>{let u=o(f);if(u)return u;let i=pf(f,a);return r(f,i),i};return s=n,(...f)=>s(mf(...f))},xf=[],ee=e=>{let t=a=>a[e]||xf;return t.isThemeGetter=!0,t},fl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gf=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Lf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,If=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Cf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,wf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xe=e=>gf.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),Oe=e=>!!e&&Number.isInteger(Number(e)),No=e=>e.endsWith("%")&&O(e.slice(0,-1)),He=e=>Lf.test(e),pl=()=>!0,vf=e=>If.test(e)&&!Cf.test(e),zo=()=>!1,bf=e=>wf.test(e),yf=e=>Sf.test(e),Rf=e=>!R(e)&&!P(e),Pf=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),kf=e=>Ke(e,xl,zo),R=e=>fl.test(e),lt=e=>Ke(e,gl,vf),rl=e=>Ke(e,Ef,O),Mf=e=>Ke(e,Il,pl),Af=e=>Ke(e,Ll,zo),sl=e=>Ke(e,ml,zo),Df=e=>Ke(e,hl,yf),ya=e=>Ke(e,Cl,bf),P=e=>cl.test(e),_t=e=>ut(e,gl),Tf=e=>ut(e,Ll),nl=e=>ut(e,ml),Ff=e=>ut(e,xl),Of=e=>ut(e,hl),Ra=e=>ut(e,Cl,!0),Bf=e=>ut(e,Il,!0),Ke=(e,t,a)=>{let o=fl.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},ut=(e,t,a=!1)=>{let o=cl.exec(e);return o?o[1]?t(o[1]):a:!1},ml=e=>e==="position"||e==="percentage",hl=e=>e==="image"||e==="url",xl=e=>e==="length"||e==="size"||e==="bg-size",gl=e=>e==="length",Ef=e=>e==="number",Ll=e=>e==="family-name",Il=e=>e==="number"||e==="weight",Cl=e=>e==="shadow";var qf=()=>{let e=ee("color"),t=ee("font"),a=ee("text"),o=ee("font-weight"),r=ee("tracking"),s=ee("leading"),n=ee("breakpoint"),l=ee("container"),f=ee("spacing"),u=ee("radius"),i=ee("shadow"),d=ee("inset-shadow"),c=ee("text-shadow"),p=ee("drop-shadow"),h=ee("blur"),m=ee("perspective"),x=ee("aspect"),g=ee("ease"),I=ee("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...w(),P,R],y=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],L=()=>[P,R,f],F=()=>[Xe,"full","auto",...L()],E=()=>[Oe,"none","subgrid",P,R],q=()=>["auto",{span:["full",Oe,P,R]},Oe,P,R],_=()=>[Oe,"auto",P,R],H=()=>["auto","min","max","fr",P,R],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...L()],N=()=>[Xe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],A=()=>[Xe,"screen","full","dvw","lvw","svw","min","max","fit",...L()],k=()=>[Xe,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],v=()=>[e,P,R],he=()=>[...w(),nl,sl,{position:[P,R]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ge=()=>["auto","cover","contain",Ff,kf,{size:[P,R]}],Ee=()=>[No,_t,lt],Y=()=>["","none","full",u,P,R],W=()=>["",O,_t,lt],Z=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>[O,No,nl,sl],Gt=()=>["","none",h,P,R],it=()=>["none",O,P,R],ft=()=>["none",O,P,R],wt=()=>[O,P,R],qe=()=>[Xe,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[He],breakpoint:[He],color:[pl],container:[He],"drop-shadow":[He],ease:["in","out","in-out"],font:[Rf],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[He],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[He],shadow:[He],spacing:["px",O],text:[He],"text-shadow":[He],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xe,R,P,x]}],container:["container"],"container-type":[{"@container":["","normal","size",P,R]}],"container-named":[Pf],columns:[{columns:[O,R,P,l]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:y()}],"overflow-x":[{"overflow-x":y()}],"overflow-y":[{"overflow-y":y()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Oe,"auto",P,R]}],basis:[{basis:[Xe,"full","auto",l,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,Xe,"auto","initial","none",R]}],grow:[{grow:["",O,P,R]}],shrink:[{shrink:["",O,P,R]}],order:[{order:[Oe,"first","last","none",P,R]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...A()]}],"min-inline-size":[{"min-inline":["auto",...A()]}],"max-inline-size":[{"max-inline":["none",...A()]}],"block-size":[{block:["auto",...k()]}],"min-block-size":[{"min-block":["auto",...k()]}],"max-block-size":[{"max-block":["none",...k()]}],w:[{w:[l,"screen",...N()]}],"min-w":[{"min-w":[l,"screen","none",...N()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[n]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",a,_t,lt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Bf,Mf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",No,R]}],"font-family":[{font:[Tf,Af,t]}],"font-features":[{"font-features":[R]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,P,R]}],"line-clamp":[{"line-clamp":[O,"none",P,rl]}],leading:[{leading:[s,...L()]}],"list-image":[{"list-image":["none",P,R]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:v()}],"text-color":[{text:v()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",P,lt]}],"text-decoration-color":[{decoration:v()}],"underline-offset":[{"underline-offset":[O,"auto",P,R]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"tab-size":[{tab:[Oe,P,R]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,R]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P,R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:he()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:Ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Oe,P,R],radial:["",P,R],conic:[Oe,P,R]},Of,Df]}],"bg-color":[{bg:v()}],"gradient-from-pos":[{from:Ee()}],"gradient-via-pos":[{via:Ee()}],"gradient-to-pos":[{to:Ee()}],"gradient-from":[{from:v()}],"gradient-via":[{via:v()}],"gradient-to":[{to:v()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-bs":[{"border-bs":W()}],"border-w-be":[{"border-be":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:v()}],"border-color-x":[{"border-x":v()}],"border-color-y":[{"border-y":v()}],"border-color-s":[{"border-s":v()}],"border-color-e":[{"border-e":v()}],"border-color-bs":[{"border-bs":v()}],"border-color-be":[{"border-be":v()}],"border-color-t":[{"border-t":v()}],"border-color-r":[{"border-r":v()}],"border-color-b":[{"border-b":v()}],"border-color-l":[{"border-l":v()}],"divide-color":[{divide:v()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,P,R]}],"outline-w":[{outline:["",O,_t,lt]}],"outline-color":[{outline:v()}],shadow:[{shadow:["","none",i,Ra,ya]}],"shadow-color":[{shadow:v()}],"inset-shadow":[{"inset-shadow":["none",d,Ra,ya]}],"inset-shadow-color":[{"inset-shadow":v()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:v()}],"ring-offset-w":[{"ring-offset":[O,lt]}],"ring-offset-color":[{"ring-offset":v()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":v()}],"text-shadow":[{"text-shadow":["none",c,Ra,ya]}],"text-shadow-color":[{"text-shadow":v()}],opacity:[{opacity:[O,P,R]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":v()}],"mask-image-linear-to-color":[{"mask-linear-to":v()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":v()}],"mask-image-t-to-color":[{"mask-t-to":v()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":v()}],"mask-image-r-to-color":[{"mask-r-to":v()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":v()}],"mask-image-b-to-color":[{"mask-b-to":v()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":v()}],"mask-image-l-to-color":[{"mask-l-to":v()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":v()}],"mask-image-x-to-color":[{"mask-x-to":v()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":v()}],"mask-image-y-to-color":[{"mask-y-to":v()}],"mask-image-radial":[{"mask-radial":[P,R]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":v()}],"mask-image-radial-to-color":[{"mask-radial-to":v()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":v()}],"mask-image-conic-to-color":[{"mask-conic-to":v()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:he()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:Ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,R]}],filter:[{filter:["","none",P,R]}],blur:[{blur:Gt()}],brightness:[{brightness:[O,P,R]}],contrast:[{contrast:[O,P,R]}],"drop-shadow":[{"drop-shadow":["","none",p,Ra,ya]}],"drop-shadow-color":[{"drop-shadow":v()}],grayscale:[{grayscale:["",O,P,R]}],"hue-rotate":[{"hue-rotate":[O,P,R]}],invert:[{invert:["",O,P,R]}],saturate:[{saturate:[O,P,R]}],sepia:[{sepia:["",O,P,R]}],"backdrop-filter":[{"backdrop-filter":["","none",P,R]}],"backdrop-blur":[{"backdrop-blur":Gt()}],"backdrop-brightness":[{"backdrop-brightness":[O,P,R]}],"backdrop-contrast":[{"backdrop-contrast":[O,P,R]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,P,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,P,R]}],"backdrop-invert":[{"backdrop-invert":["",O,P,R]}],"backdrop-opacity":[{"backdrop-opacity":[O,P,R]}],"backdrop-saturate":[{"backdrop-saturate":[O,P,R]}],"backdrop-sepia":[{"backdrop-sepia":["",O,P,R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,R]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",P,R]}],ease:[{ease:["linear","initial",g,P,R]}],delay:[{delay:[O,P,R]}],animate:[{animate:["none",I,P,R]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,P,R]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:it()}],"rotate-x":[{"rotate-x":it()}],"rotate-y":[{"rotate-y":it()}],"rotate-z":[{"rotate-z":it()}],scale:[{scale:ft()}],"scale-x":[{"scale-x":ft()}],"scale-y":[{"scale-y":ft()}],"scale-z":[{"scale-z":ft()}],"scale-3d":["scale-3d"],skew:[{skew:wt()}],"skew-x":[{"skew-x":wt()}],"skew-y":[{"skew-y":wt()}],transform:[{transform:[P,R,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qe()}],"translate-x":[{"translate-x":qe()}],"translate-y":[{"translate-y":qe()}],"translate-z":[{"translate-z":qe()}],"translate-none":["translate-none"],zoom:[{zoom:[Oe,P,R]}],accent:[{accent:v()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:v()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P,R]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":v()}],"scrollbar-track-color":[{"scrollbar-track":v()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P,R]}],fill:[{fill:["none",...v()]}],"stroke-w":[{stroke:[O,_t,lt,rl]}],stroke:[{stroke:["none",...v()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var wl=hf(qf);function Be(...e){return wl(zt(e))}import{jsx as _f}from"react/jsx-runtime";var Uf=$o("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Sl({className:e,variant:t="default",size:a="default",asChild:o=!1,...r}){let s=o?Vt.Root:"button";return _f(s,{"data-slot":"button","data-variant":t,"data-size":a,className:Be(Uf({variant:t,size:a,className:e})),...r})}import{forwardRef as Hf,createElement as Gf}from"react";var vl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ka=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as Nf,createElement as yl}from"react";var bl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Rl=Nf(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:n,...l},f)=>yl("svg",{ref:f,...bl,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:ka("lucide",r),...l},[...n.map(([u,i])=>yl(u,i)),...Array.isArray(s)?s:[s]]));var Pl=(e,t)=>{let a=Hf(({className:o,...r},s)=>Gf(Rl,{ref:s,iconNode:t,className:ka(`lucide-${vl(e)}`,o),...r}));return a.displayName=`${e}`,a};var Nt=Pl("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);import{jsx as xe,jsxs as zf}from"react/jsx-runtime";function kl({...e}){return xe(fe.Root,{"data-slot":"dropdown-menu",...e})}function Ml({...e}){return xe(fe.Portal,{"data-slot":"dropdown-menu-portal",...e})}function Al({...e}){return xe(fe.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function Dl({className:e,sideOffset:t=4,...a}){return xe(fe.Portal,{children:xe(fe.Content,{"data-slot":"dropdown-menu-content",sideOffset:t,className:Be("z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...a})})}function Wo({...e}){return xe(fe.Group,{"data-slot":"dropdown-menu-group",...e})}function me({className:e,inset:t,variant:a="default",...o}){return xe(fe.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":a,className:Be("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",e),...o})}function Tl({className:e,inset:t,...a}){return xe(fe.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:Be("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...a})}function Ht({className:e,...t}){return xe(fe.Separator,{"data-slot":"dropdown-menu-separator",className:Be("-mx-1 my-1 h-px bg-border",e),...t})}function dt({className:e,...t}){return xe("span",{"data-slot":"dropdown-menu-shortcut",className:Be("ml-auto text-xs tracking-widest text-muted-foreground",e),...t})}function Fl({...e}){return xe(fe.Sub,{"data-slot":"dropdown-menu-sub",...e})}function Ol({className:e,inset:t,children:a,...o}){return zf(fe.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:Be("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...o,children:[a,xe(Nt,{className:"ml-auto size-4"})]})}function Bl({className:e,...t}){return xe(fe.SubContent,{"data-slot":"dropdown-menu-sub-content",className:Be("z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...t})}import{jsx as K,jsxs as Se}from"react/jsx-runtime";function Wf(){return Se(kl,{children:[K(Al,{asChild:!0,children:K(Sl,{variant:"outline",children:"Open"})}),Se(Dl,{className:"w-56",align:"start",children:[K(Tl,{children:"My Account"}),Se(Wo,{children:[Se(me,{children:["Profile",K(dt,{children:"\u21E7\u2318P"})]}),Se(me,{children:["Billing",K(dt,{children:"\u2318B"})]}),Se(me,{children:["Settings",K(dt,{children:"\u2318S"})]}),Se(me,{children:["Keyboard shortcuts",K(dt,{children:"\u2318K"})]})]}),K(Ht,{}),Se(Wo,{children:[K(me,{children:"Team"}),Se(Fl,{children:[K(Ol,{children:"Invite users"}),K(Ml,{children:Se(Bl,{children:[K(me,{children:"Email"}),K(me,{children:"Message"}),K(Ht,{}),K(me,{children:"More..."})]})})]}),Se(me,{children:["New Team",K(dt,{children:"\u2318+T"})]})]}),K(Ht,{}),K(me,{children:"GitHub"}),K(me,{children:"Support"}),K(me,{disabled:!0,children:"API"}),K(Ht,{}),Se(me,{children:["Log out",K(dt,{children:"\u21E7\u2318Q"})]})]})]})}export{Wf as default}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/chevron-right.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/8490718ac6d2192307d89544ea348e939cbfc6801ed8ea0b7a26afa472829c4a b/b/8490718ac6d2192307d89544ea348e939cbfc6801ed8ea0b7a26afa472829c4a new file mode 100644 index 0000000000000000000000000000000000000000..6614e802f6062b1016fc8a1b53e7658b8b8eeea3 --- /dev/null +++ b/b/8490718ac6d2192307d89544ea348e939cbfc6801ed8ea0b7a26afa472829c4a @@ -0,0 +1,27 @@ +{ + "id": "org.hologram.ui.daisyui.swap", + "name": "daisyui-swap", + "tier": "component", + "library": "daisyui", + "category": "Buttons & Actions", + "upstream": "https://cdn.jsdelivr.net/npm/daisyui@5.5.23/components/swap.css", + "docs": "https://daisyui.com/components/swap/", + "did": "did:holo:sha256:cc491da26e0963fc6c09a97d8085ac1fb8b5fcb80670e7c727d62461d9e913ef", + "import": "holo://sha256:cc491da26e0963fc6c09a97d8085ac1fb8b5fcb80670e7c727d62461d9e913ef", + "integrity": "sha256-zEkdom4JY/xsCal9gIWsH7i1/LgGcOfHJ9YkYdnpE+8=", + "kappa": "sha256:cc491da26e0963fc6c09a97d8085ac1fb8b5fcb80670e7c727d62461d9e913ef", + "moduleKappa": "sha256:cc491da26e0963fc6c09a97d8085ac1fb8b5fcb80670e7c727d62461d9e913ef", + "renderExport": null, + "format": "css", + "source": "components/swap.css", + "module": "vendor/daisyui/components/swap.css", + "exports": [], + "bytes": 1471, + "provenance": { + "package": "daisyui", + "version": "5.5.23", + "integrity": "sha512-xuheNUSL4T6ZVtWXoioqcNkjoyGX85QTDz4HTw2aBPfqk4fuMjax5HDo8qCmpV6M1YN8bGvfx5BpYCoDeRlt+A==", + "file": "components/swap.css" + }, + "license": "MIT" +} diff --git a/b/84acb0eb6962f9638dba738b6f7d532337af61426a6409f54deb83d55b110c06 b/b/84acb0eb6962f9638dba738b6f7d532337af61426a6409f54deb83d55b110c06 new file mode 100644 index 0000000000000000000000000000000000000000..85142d4b232f19195ec40971290da9cff1dbf17e --- /dev/null +++ b/b/84acb0eb6962f9638dba738b6f7d532337af61426a6409f54deb83d55b110c06 @@ -0,0 +1,34 @@ +gated-delta GPU parity + +

Gated-DeltaNet WGSL kernel — parity vs CPU oracle

+
running… (needs a WebGPU browser: chrome://gpu must show WebGPU enabled)
+ diff --git a/b/84dd55ef4a4a812adbe8d57d51f6daab22fe89fd86de88eb0785cbccbf898e6f b/b/84dd55ef4a4a812adbe8d57d51f6daab22fe89fd86de88eb0785cbccbf898e6f new file mode 100644 index 0000000000000000000000000000000000000000..988b5533587b32bcc29052a3e93fd00e2c5d2663 --- /dev/null +++ b/b/84dd55ef4a4a812adbe8d57d51f6daab22fe89fd86de88eb0785cbccbf898e6f @@ -0,0 +1,73 @@ +"use client" + +import { ChevronDownIcon } from "lucide-react" + +import { + Avatar, + AvatarFallback, + AvatarImage, +} from "@/registry/new-york-v4/ui/avatar" +import { Button } from "@/registry/new-york-v4/ui/button" +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuTrigger, +} from "@/registry/new-york-v4/ui/dropdown-menu" +import { + Item, + ItemContent, + ItemDescription, + ItemMedia, + ItemTitle, +} from "@/registry/new-york-v4/ui/item" + +const people = [ + { + username: "shadcn", + avatar: "https://github.com/shadcn.png", + email: "shadcn@vercel.com", + }, + { + username: "maxleiter", + avatar: "https://github.com/maxleiter.png", + email: "maxleiter@vercel.com", + }, + { + username: "evilrabbit", + avatar: "https://github.com/evilrabbit.png", + email: "evilrabbit@vercel.com", + }, +] + +export default function ItemDropdown() { + return ( +
+ + + + + + {people.map((person) => ( + + + + + + {person.username.charAt(0)} + + + + {person.username} + {person.email} + + + + ))} + + +
+ ) +} diff --git a/b/851357c60d76dbaf6ac7474e515501615cbd9bc0fde14a5d4a94fddbf12a3574 b/b/851357c60d76dbaf6ac7474e515501615cbd9bc0fde14a5d4a94fddbf12a3574 new file mode 100644 index 0000000000000000000000000000000000000000..636f1eb51e70e985e3be91a63f82b863dd482196 --- /dev/null +++ b/b/851357c60d76dbaf6ac7474e515501615cbd9bc0fde14a5d4a94fddbf12a3574 @@ -0,0 +1,160 @@ + + + +Q-bench — real-device latency & quality + + +
+

Q-bench

+
The real Q loop on this device's GPU — honest latency (P50/P95) + a golden quality check. No mocks.
+
+ + + +
+
+
+ diff --git a/b/8513e4c4613cd6bca66492a0ba31db2cfe0d75881ce5a7babcd230864cc378e4 b/b/8513e4c4613cd6bca66492a0ba31db2cfe0d75881ce5a7babcd230864cc378e4 new file mode 100644 index 0000000000000000000000000000000000000000..f3cf3b7408fdbfd2e8e05e97b639a67191c236e7 --- /dev/null +++ b/b/8513e4c4613cd6bca66492a0ba31db2cfe0d75881ce5a7babcd230864cc378e4 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.form-rhf-password", + "name": "form-rhf-password", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/form-rhf-password.json", + "did": "did:holo:sha256:9bcc60a6cfa43698a341360ddfe27c3d23e072cd5b33afe79ad17e37243cc641", + "import": "holo://sha256:24925f5590109fd08691bbb3a6a736957464b54db40602523824890bcd04a16c", + "integrity": "sha256-JJJfVZAQn9CGkbuzpqc2lXRktU20BgJSOCSJC80EoWw=", + "kappa": "sha256:9bcc60a6cfa43698a341360ddfe27c3d23e072cd5b33afe79ad17e37243cc641", + "moduleKappa": "sha256:24925f5590109fd08691bbb3a6a736957464b54db40602523824890bcd04a16c", + "renderExport": "default", + "source": "registry/new-york-v4/examples/form-rhf-password.tsx", + "module": "vendor/components/form-rhf-password.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/85487ab3faf54e37e9a4119017b79ac3bb47b1b98b6c106c1fab5e5259af9580 b/b/85487ab3faf54e37e9a4119017b79ac3bb47b1b98b6c106c1fab5e5259af9580 new file mode 100644 index 0000000000000000000000000000000000000000..276bebf82be90eb7dd74bc4dc096a26096ad3e87 --- /dev/null +++ b/b/85487ab3faf54e37e9a4119017b79ac3bb47b1b98b6c106c1fab5e5259af9580 @@ -0,0 +1 @@ +/*! 🌼 daisyUI 5.5.22 - MIT License */ @layer utilities{.skeleton{@layer daisyui.l1.l2.l3{&{border-radius:var(--radius-box);background-color:var(--color-base-300);will-change:background-position;background-image:linear-gradient(105deg,#0000 0% 40%,var(--color-base-100)50%,#0000 60% 100%);background-position-x:-50%;background-size:200%}@media (prefers-reduced-motion:reduce){&{transition-duration:15s}}@media (prefers-reduced-motion:no-preference){&{animation:1.8s ease-in-out infinite skeleton}}}}.skeleton-text{@layer daisyui.l1.l2{&{color:#0000;-webkit-background-clip:text;background-clip:text;background-image:linear-gradient(105deg,color-mix(in oklab,var(--color-base-content)20%,transparent)0% 40%,var(--color-base-content)50%,color-mix(in oklab,var(--color-base-content)20%,transparent)60% 100%)}}}@keyframes skeleton{0%{background-position:150%}to{background-position:-50%}}} \ No newline at end of file diff --git a/b/854ad19db8f46fb1d4c60c779ee5f4ea9855792b4ac918d06dbebbea20b12393 b/b/854ad19db8f46fb1d4c60c779ee5f4ea9855792b4ac918d06dbebbea20b12393 new file mode 100644 index 0000000000000000000000000000000000000000..b1c94bf14cb4e4a1d7dde8dfbcbe24e44eb57c58 --- /dev/null +++ b/b/854ad19db8f46fb1d4c60c779ee5f4ea9855792b4ac918d06dbebbea20b12393 @@ -0,0 +1 @@ +import{jsx as e,jsxs as t}from"react/jsx-runtime";function a(){return t("div",{children:[e("h1",{className:"scroll-m-20 text-4xl font-extrabold tracking-tight text-balance",children:"Taxing Laughter: The Joke Tax Chronicles"}),e("p",{className:"text-xl leading-7 text-muted-foreground [&:not(:first-child)]:mt-6",children:"Once upon a time, in a far-off land, there was a very lazy king who spent all day lounging on his throne. One day, his advisors came to him with a problem: the kingdom was running out of money."}),e("h2",{className:"mt-10 scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight transition-colors first:mt-0",children:"The King's Plan"}),t("p",{className:"leading-7 [&:not(:first-child)]:mt-6",children:["The king thought long and hard, and finally came up with"," ",e("a",{href:"#",className:"font-medium text-primary underline underline-offset-4",children:"a brilliant plan"}),": he would tax the jokes in the kingdom."]}),e("blockquote",{className:"mt-6 border-l-2 pl-6 italic",children:`"After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."`}),e("h3",{className:"mt-8 scroll-m-20 text-2xl font-semibold tracking-tight",children:"The Joke Tax"}),e("p",{className:"leading-7 [&:not(:first-child)]:mt-6",children:"The king's subjects were not amused. They grumbled and complained, but the king was firm:"}),t("ul",{className:"my-6 ml-6 list-disc [&>li]:mt-2",children:[e("li",{children:"1st level of puns: 5 gold coins"}),e("li",{children:"2nd level of jokes: 10 gold coins"}),e("li",{children:"3rd level of one-liners : 20 gold coins"})]}),e("p",{className:"leading-7 [&:not(:first-child)]:mt-6",children:"As a result, people stopped telling jokes, and the kingdom fell into a gloom. But there was one person who refused to let the king's foolishness get him down: a court jester named Jokester."}),e("h3",{className:"mt-8 scroll-m-20 text-2xl font-semibold tracking-tight",children:"Jokester's Revolt"}),e("p",{className:"leading-7 [&:not(:first-child)]:mt-6",children:"Jokester began sneaking into the castle in the middle of the night and leaving jokes all over the place: under the king's pillow, in his soup, even in the royal toilet. The king was furious, but he couldn't seem to stop Jokester."}),e("p",{className:"leading-7 [&:not(:first-child)]:mt-6",children:"And then, one day, the people of the kingdom discovered that the jokes left by Jokester were so funny that they couldn't help but laugh. And once they started laughing, they couldn't stop."}),e("h3",{className:"mt-8 scroll-m-20 text-2xl font-semibold tracking-tight",children:"The People's Rebellion"}),e("p",{className:"leading-7 [&:not(:first-child)]:mt-6",children:"The people of the kingdom, feeling uplifted by the laughter, started to tell jokes and puns again, and soon the entire kingdom was in on the joke."}),e("div",{className:"my-6 w-full overflow-y-auto",children:t("table",{className:"w-full",children:[e("thead",{children:t("tr",{className:"m-0 border-t p-0 even:bg-muted",children:[e("th",{className:"border px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right",children:"King's Treasury"}),e("th",{className:"border px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right",children:"People's happiness"})]})}),t("tbody",{children:[t("tr",{className:"m-0 border-t p-0 even:bg-muted",children:[e("td",{className:"border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right",children:"Empty"}),e("td",{className:"border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right",children:"Overflowing"})]}),t("tr",{className:"m-0 border-t p-0 even:bg-muted",children:[e("td",{className:"border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right",children:"Modest"}),e("td",{className:"border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right",children:"Satisfied"})]}),t("tr",{className:"m-0 border-t p-0 even:bg-muted",children:[e("td",{className:"border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right",children:"Full"}),e("td",{className:"border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right",children:"Ecstatic"})]})]})]})}),e("p",{className:"leading-7 [&:not(:first-child)]:mt-6",children:"The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax. Jokester was declared a hero, and the kingdom lived happily ever after."}),e("p",{className:"leading-7 [&:not(:first-child)]:mt-6",children:"The moral of the story is: never underestimate the power of a good laugh and always be careful of bad ideas."})]})}export{a as default}; diff --git a/b/855c0a324abb8345231dc3a6cf7822b47ed0e189e16d46e7f0f422641da55134 b/b/855c0a324abb8345231dc3a6cf7822b47ed0e189e16d46e7f0f422641da55134 new file mode 100644 index 0000000000000000000000000000000000000000..055afb8109e1e512212690a72976dc7c044f0246 --- /dev/null +++ b/b/855c0a324abb8345231dc3a6cf7822b47ed0e189e16d46e7f0f422641da55134 @@ -0,0 +1,95 @@ +"use client";var Yo=Object.defineProperty;var na=(e,a)=>{for(var t in a)Yo(e,t,{get:a[t],enumerable:!0})};function lt(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;atypeof e=="boolean"?`${e}`:e===0?"0":e,st=Ee,dt=(e,a)=>t=>{var o;if(a?.variants==null)return st(e,t?.class,t?.className);let{variants:r,defaultVariants:l}=a,s=Object.keys(r).map(d=>{let n=t?.[d],c=l?.[d];if(n===null)return null;let x=ut(n)||ut(c);return r[d][x]}),u=t&&Object.entries(t).reduce((d,n)=>{let[c,x]=n;return x===void 0||(d[c]=x),d},{}),f=a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((d,n)=>{let{class:c,className:x,...I}=n;return Object.entries(I).every(v=>{let[i,h]=v;return Array.isArray(h)?h.includes({...l,...u}[i]):{...l,...u}[i]===h})?[...d,c,x]:d},[]);return st(e,s,f,t?.class,t?.className)};import*as mt from"react";import*as Lt from"react-dom";var Ue={};na(Ue,{Root:()=>er,Slot:()=>er,Slottable:()=>ar,createSlot:()=>he,createSlottable:()=>pt});import*as E from"react";import*as nt from"react";function ft(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function Qo(...e){return a=>{let t=!1,o=e.map(r=>{let l=ft(r,a);return!t&&typeof l=="function"&&(t=!0),l});if(t)return()=>{for(let r=0;r{let{children:r,...l}=t,s=null,u=!1,f=[];it(r)&&typeof qe=="function"&&(r=qe(r._payload)),E.Children.forEach(r,x=>{if(lr(x)){u=!0;let I=x,v="child"in I.props?I.props.child:I.props.children;it(v)&&typeof qe=="function"&&(v=qe(v._payload)),s=tr(I,v),f.push(s?.props?.children)}else f.push(x)}),s?s=E.cloneElement(s,void 0,f):!u&&E.Children.count(r)===1&&E.isValidElement(r)&&(s=r);let d=s?rr(s):void 0,n=J(o,d);if(!s){if(r||r===0)throw new Error(u?fr(e):dr(e));return r}let c=or(l,s.props??{});return s.type!==E.Fragment&&(c.ref=o?n:d),E.cloneElement(s,c)});return a.displayName=`${e}.Slot`,a}var er=he("Slot"),ct=Symbol.for("radix.slottable");function pt(e){let a=t=>"child"in t?t.children(t.child):t.children;return a.displayName=`${e}.Slottable`,a.__radixId=ct,a}var ar=pt("Slottable"),tr=(e,a)=>{if("child"in e.props){let t=e.props.child;return E.isValidElement(t)?E.cloneElement(t,void 0,e.props.children(t.props.children)):null}return E.isValidElement(a)?a:null};function or(e,a){let t={...a};for(let o in a){let r=e[o],l=a[o];/^on[A-Z]/.test(o)?r&&l?t[o]=(...u)=>{let f=l(...u);return r(...u),f}:r&&(t[o]=r):o==="style"?t[o]={...r,...l}:o==="className"&&(t[o]=[r,l].filter(Boolean).join(" "))}return{...e,...t}}function rr(e){let a=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning;return t?e.ref:(a=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function lr(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ct}var ur=Symbol.for("react.lazy");function it(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ur&&"_payload"in e&&sr(e._payload)}function sr(e){return typeof e=="object"&&e!==null&&"then"in e}var dr=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,fr=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,qe=E[" use ".trim().toString()];import{jsx as nr}from"react/jsx-runtime";var ir=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],G=ir.reduce((e,a)=>{let t=he(`Primitive.${a}`),o=mt.forwardRef((r,l)=>{let{asChild:s,...u}=r,f=s?t:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),nr(f,{...u,ref:l})});return o.displayName=`Primitive.${a}`,{...e,[a]:o}},{});function xt(e,a){e&&Lt.flushSync(()=>e.dispatchEvent(a))}import*as V from"react";import{jsx as It}from"react/jsx-runtime";function ht(e,a){let t=V.createContext(a);t.displayName=e+"Context";let o=l=>{let{children:s,...u}=l,f=V.useMemo(()=>u,Object.values(u));return It(t.Provider,{value:f,children:s})};o.displayName=e+"Provider";function r(l){let s=V.useContext(t);if(s)return s;if(a!==void 0)return a;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[o,r]}function gt(e,a=[]){let t=[];function o(l,s){let u=V.createContext(s);u.displayName=l+"Context";let f=t.length;t=[...t,s];let d=c=>{let{scope:x,children:I,...v}=c,i=x?.[e]?.[f]||u,h=V.useMemo(()=>v,Object.values(v));return It(i.Provider,{value:h,children:I})};d.displayName=l+"Provider";function n(c,x){let I=x?.[e]?.[f]||u,v=V.useContext(I);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${l}\``)}return[d,n]}let r=()=>{let l=t.map(s=>V.createContext(s));return function(u){let f=u?.[e]||l;return V.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return r.scopeName=e,[o,cr(r,...a)]}function cr(...e){let a=e[0];if(e.length===1)return a;let t=()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(l){let s=o.reduce((u,{useScope:f,scopeName:d})=>{let c=f(l)[`__scope${d}`];return{...u,...c}},{});return V.useMemo(()=>({[`__scope${a.scopeName}`]:s}),[s])}};return t.scopeName=a.scopeName,t}var Vu=!!(typeof window<"u"&&window.document&&window.document.createElement);function Q(e,a,{checkForDefaultPrevented:t=!0}={}){return function(r){if(e?.(r),t===!1||!r.defaultPrevented)return a?.(r)}}import*as _ from"react";import*as Ct from"react";var ae=globalThis?.document?Ct.useLayoutEffect:()=>{};import*as He from"react";var pr=_[" useInsertionEffect ".trim().toString()]||ae;function St({prop:e,defaultProp:a,onChange:t=()=>{},caller:o}){let[r,l,s]=mr({defaultProp:a,onChange:t}),u=e!==void 0,f=u?e:r;{let n=_.useRef(e!==void 0);_.useEffect(()=>{let c=n.current;c!==u&&console.warn(`${o} is changing from ${c?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),n.current=u},[u,o])}let d=_.useCallback(n=>{if(u){let c=Lr(n)?n(e):n;c!==e&&s.current?.(c)}else l(n)},[u,e,l,s]);return[f,d]}function mr({defaultProp:e,onChange:a}){let[t,o]=_.useState(e),r=_.useRef(t),l=_.useRef(a);return pr(()=>{l.current=a},[a]),_.useEffect(()=>{r.current!==t&&(l.current?.(t),r.current=t)},[t,r]),[t,o,l]}function Lr(e){return typeof e=="function"}var ju=Symbol("RADIX:SYNC_STATE");import*as q from"react";import*as bt from"react";function xr(e,a){return bt.useReducer((t,o)=>a[t][o]??t,e)}var Pe=e=>{let{present:a,children:t}=e,o=Ir(a),r=typeof t=="function"?t({present:o.isPresent}):q.Children.only(t),l=hr(o.ref,gr(r));return typeof t=="function"||o.isPresent?q.cloneElement(r,{ref:l}):null};Pe.displayName="Presence";function Ir(e){let[a,t]=q.useState(),o=q.useRef(null),r=q.useRef(e),l=q.useRef("none"),s=e?"mounted":"unmounted",[u,f]=xr(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return q.useEffect(()=>{let d=Ne(o.current);l.current=u==="mounted"?d:"none"},[u]),ae(()=>{let d=o.current,n=r.current;if(n!==e){let x=l.current,I=Ne(d);e?f("MOUNT"):I==="none"||d?.display==="none"?f("UNMOUNT"):f(n&&x!==I?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,f]),ae(()=>{if(a){let d,n=a.ownerDocument.defaultView??window,c=I=>{let i=Ne(o.current).includes(CSS.escape(I.animationName));if(I.target===a&&i&&(f("ANIMATION_END"),!r.current)){let h=a.style.animationFillMode;a.style.animationFillMode="forwards",d=n.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=h)})}},x=I=>{I.target===a&&(l.current=Ne(o.current))};return a.addEventListener("animationstart",x),a.addEventListener("animationcancel",c),a.addEventListener("animationend",c),()=>{n.clearTimeout(d),a.removeEventListener("animationstart",x),a.removeEventListener("animationcancel",c),a.removeEventListener("animationend",c)}}else f("ANIMATION_END")},[a,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:q.useCallback(d=>{o.current=d?getComputedStyle(d):null,t(d)},[])}}function wt(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function hr(...e){let a=q.useRef(e);return a.current=e,q.useCallback(t=>{let o=a.current,r=!1,l=o.map(s=>{let u=wt(s,t);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let s=0;s{}),Sr=0;function Ge(e){let[a,t]=ia.useState(Cr());return ae(()=>{e||t(o=>o??String(Sr++))},[e]),e||(a?`radix-${a}`:"")}var K={};na(K,{Close:()=>Rl,Content:()=>yl,Description:()=>kl,Dialog:()=>Ba,DialogClose:()=>za,DialogContent:()=>Ua,DialogDescription:()=>Ga,DialogOverlay:()=>qa,DialogPortal:()=>Ea,DialogTitle:()=>Na,DialogTrigger:()=>Ta,Overlay:()=>vl,Portal:()=>bl,Root:()=>Sl,Title:()=>Pl,Trigger:()=>wl,WarningProvider:()=>Il,createDialogScope:()=>nl});import*as R from"react";import*as M from"react";import*as ge from"react";function re(e){let a=ge.useRef(e);return ge.useEffect(()=>{a.current=e}),ge.useMemo(()=>(...t)=>a.current?.(...t),[])}import*as vt from"react";function yt(e,a=globalThis?.document){let t=re(e);vt.useEffect(()=>{let o=r=>{r.key==="Escape"&&t(r)};return a.addEventListener("keydown",o,{capture:!0}),()=>a.removeEventListener("keydown",o,{capture:!0})},[t,a])}import{jsx as Rt}from"react/jsx-runtime";var wr="DismissableLayer",ca="dismissableLayer.update",br="dismissableLayer.pointerDownOutside",vr="dismissableLayer.focusOutside",Pt,At=M.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pa=M.forwardRef((e,a)=>{let{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:l,onInteractOutside:s,onDismiss:u,...f}=e,d=M.useContext(At),[n,c]=M.useState(null),x=n?.ownerDocument??globalThis?.document,[,I]=M.useState({}),v=J(a,C=>c(C)),i=Array.from(d.layers),[h]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=i.indexOf(h),S=n?i.indexOf(n):-1,y=d.layersWithOutsidePointerEventsDisabled.size>0,k=S>=b,P=kr(C=>{let m=C.target,B=[...d.branches].some(oe=>oe.contains(m));!k||B||(r?.(C),s?.(C),C.defaultPrevented||u?.())},x),D=Rr(C=>{let m=C.target;[...d.branches].some(oe=>oe.contains(m))||(l?.(C),s?.(C),C.defaultPrevented||u?.())},x);return yt(C=>{S===d.layers.size-1&&(o?.(C),!C.defaultPrevented&&u&&(C.preventDefault(),u()))},x),M.useEffect(()=>{if(n)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Pt=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(n)),d.layers.add(n),kt(),()=>{t&&(d.layersWithOutsidePointerEventsDisabled.delete(n),d.layersWithOutsidePointerEventsDisabled.size===0&&(x.body.style.pointerEvents=Pt))}},[n,x,t,d]),M.useEffect(()=>()=>{n&&(d.layers.delete(n),d.layersWithOutsidePointerEventsDisabled.delete(n),kt())},[n,d]),M.useEffect(()=>{let C=()=>I({});return document.addEventListener(ca,C),()=>document.removeEventListener(ca,C)},[]),Rt(G.div,{...f,ref:v,style:{pointerEvents:y?k?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,D.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,P.onPointerDownCapture)})});pa.displayName=wr;var yr="DismissableLayerBranch",Pr=M.forwardRef((e,a)=>{let t=M.useContext(At),o=M.useRef(null),r=J(a,o);return M.useEffect(()=>{let l=o.current;if(l)return t.branches.add(l),()=>{t.branches.delete(l)}},[t.branches]),Rt(G.div,{...e,ref:r})});Pr.displayName=yr;function kr(e,a=globalThis?.document){let t=re(e),o=M.useRef(!1),r=M.useRef(()=>{});return M.useEffect(()=>{let l=u=>{if(u.target&&!o.current){let d=function(){Dt(br,t,n,{discrete:!0})};var f=d;let n={originalEvent:u};u.pointerType==="touch"?(a.removeEventListener("click",r.current),r.current=d,a.addEventListener("click",r.current,{once:!0})):d()}else a.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{a.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(s),a.removeEventListener("pointerdown",l),a.removeEventListener("click",r.current)}},[a,t]),{onPointerDownCapture:()=>o.current=!0}}function Rr(e,a=globalThis?.document){let t=re(e),o=M.useRef(!1);return M.useEffect(()=>{let r=l=>{l.target&&!o.current&&Dt(vr,t,{originalEvent:l},{discrete:!1})};return a.addEventListener("focusin",r),()=>a.removeEventListener("focusin",r)},[a,t]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function kt(){let e=new CustomEvent(ca);document.dispatchEvent(e)}function Dt(e,a,t,{discrete:o}){let r=t.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});a&&r.addEventListener(e,a,{once:!0}),o?xt(r,l):r.dispatchEvent(l)}import*as X from"react";import{jsx as Ar}from"react/jsx-runtime";var ma="focusScope.autoFocusOnMount",La="focusScope.autoFocusOnUnmount",Mt={bubbles:!1,cancelable:!0},Dr="FocusScope",xa=X.forwardRef((e,a)=>{let{loop:t=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:l,...s}=e,[u,f]=X.useState(null),d=re(r),n=re(l),c=X.useRef(null),x=J(a,i=>f(i)),I=X.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;X.useEffect(()=>{if(o){let S=function(D){if(I.paused||!u)return;let C=D.target;u.contains(C)?c.current=C:le(c.current,{select:!0})},y=function(D){if(I.paused||!u)return;let C=D.relatedTarget;C!==null&&(u.contains(C)||le(c.current,{select:!0}))},k=function(D){if(document.activeElement===document.body)for(let m of D)m.removedNodes.length>0&&le(u)};var i=S,h=y,b=k;document.addEventListener("focusin",S),document.addEventListener("focusout",y);let P=new MutationObserver(k);return u&&P.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",y),P.disconnect()}}},[o,u,I.paused]),X.useEffect(()=>{if(u){Bt.add(I);let i=document.activeElement;if(!u.contains(i)){let b=new CustomEvent(ma,Mt);u.addEventListener(ma,d),u.dispatchEvent(b),b.defaultPrevented||(Mr(Er(Ot(u)),{select:!0}),document.activeElement===i&&le(u))}return()=>{u.removeEventListener(ma,d),setTimeout(()=>{let b=new CustomEvent(La,Mt);u.addEventListener(La,n),u.dispatchEvent(b),b.defaultPrevented||le(i??document.body,{select:!0}),u.removeEventListener(La,n),Bt.remove(I)},0)}}},[u,d,n,I]);let v=X.useCallback(i=>{if(!t&&!o||I.paused)return;let h=i.key==="Tab"&&!i.altKey&&!i.ctrlKey&&!i.metaKey,b=document.activeElement;if(h&&b){let S=i.currentTarget,[y,k]=Fr(S);y&&k?!i.shiftKey&&b===k?(i.preventDefault(),t&&le(y,{select:!0})):i.shiftKey&&b===y&&(i.preventDefault(),t&&le(k,{select:!0})):b===S&&i.preventDefault()}},[t,o,I.paused]);return Ar(G.div,{tabIndex:-1,...s,ref:x,onKeyDown:v})});xa.displayName=Dr;function Mr(e,{select:a=!1}={}){let t=document.activeElement;for(let o of e)if(le(o,{select:a}),document.activeElement!==t)return}function Fr(e){let a=Ot(e),t=Ft(a,e),o=Ft(a.reverse(),e);return[t,o]}function Ot(e){let a=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)a.push(t.currentNode);return a}function Ft(e,a){for(let t of e)if(!Br(t,{upTo:a}))return t}function Br(e,{upTo:a}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(a!==void 0&&e===a)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Tr(e){return e instanceof HTMLInputElement&&"select"in e}function le(e,{select:a=!1}={}){if(e&&e.focus){let t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&Tr(e)&&a&&e.select()}}var Bt=Or();function Or(){let e=[];return{add(a){let t=e[0];a!==t&&t?.pause(),e=Tt(e,a),e.unshift(a)},remove(a){e=Tt(e,a),e[0]?.resume()}}}function Tt(e,a){let t=[...e],o=t.indexOf(a);return o!==-1&&t.splice(o,1),t}function Er(e){return e.filter(a=>a.tagName!=="A")}import*as ze from"react";import*as Et from"react-dom";import{jsx as qr}from"react/jsx-runtime";var Ur="Portal",Ia=ze.forwardRef((e,a)=>{let{container:t,...o}=e,[r,l]=ze.useState(!1);ae(()=>l(!0),[]);let s=t||r&&globalThis?.document?.body;return s?Et.createPortal(qr(G.div,{...o,ref:a}),s):null});Ia.displayName=Ur;import*as Ut from"react";var We=0,Ce=null;function Ht(){Ut.useEffect(()=>{Ce||(Ce={start:qt(),end:qt()});let{start:e,end:a}=Ce;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==a&&document.body.insertAdjacentElement("beforeend",a),We++,()=>{We===1&&(Ce?.start.remove(),Ce?.end.remove(),Ce=null),We=Math.max(0,We-1)}},[])}function qt(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var z=function(){return z=Object.assign||function(a){for(var t,o=1,r=arguments.length;o"u")return Xr;var a=Kr(e),t=document.documentElement.clientWidth,o=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,o-t+a[2]-a[0])}};var jr=Re(),Se="data-scroll-locked",Zr=function(e,a,t,o){var r=e.left,l=e.top,s=e.right,u=e.gap;return t===void 0&&(t="margin"),` + .`.concat(ha,` { + overflow: hidden `).concat(o,`; + padding-right: `).concat(u,"px ").concat(o,`; + } + body[`).concat(Se,`] { + overflow: hidden `).concat(o,`; + overscroll-behavior: contain; + `).concat([a&&"position: relative ".concat(o,";"),t==="margin"&&` + padding-left: `.concat(r,`px; + padding-top: `).concat(l,`px; + padding-right: `).concat(s,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(u,"px ").concat(o,`; + `),t==="padding"&&"padding-right: ".concat(u,"px ").concat(o,";")].filter(Boolean).join(""),` + } + + .`).concat(ie,` { + right: `).concat(u,"px ").concat(o,`; + } + + .`).concat(ce,` { + margin-right: `).concat(u,"px ").concat(o,`; + } + + .`).concat(ie," .").concat(ie,` { + right: 0 `).concat(o,`; + } + + .`).concat(ce," .").concat(ce,` { + margin-right: 0 `).concat(o,`; + } + + body[`).concat(Se,`] { + `).concat(ga,": ").concat(u,`px; + } +`)},jt=function(){var e=parseInt(document.body.getAttribute(Se)||"0",10);return isFinite(e)?e:0},$r=function(){we.useEffect(function(){return document.body.setAttribute(Se,(jt()+1).toString()),function(){var e=jt()-1;e<=0?document.body.removeAttribute(Se):document.body.setAttribute(Se,e.toString())}},[])},Ra=function(e){var a=e.noRelative,t=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;$r();var l=we.useMemo(function(){return ka(r)},[r]);return we.createElement(jr,{styles:Zr(l,!a,r,t?"":"!important")})};var Aa=!1;if(typeof window<"u")try{Ae=Object.defineProperty({},"passive",{get:function(){return Aa=!0,!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch{Aa=!1}var Ae,pe=Aa?{passive:!1}:!1;var Jr=function(e){return e.tagName==="TEXTAREA"},Zt=function(e,a){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[a]!=="hidden"&&!(t.overflowY===t.overflowX&&!Jr(e)&&t[a]==="visible")},Yr=function(e){return Zt(e,"overflowY")},Qr=function(e){return Zt(e,"overflowX")},Da=function(e,a){var t=a.ownerDocument,o=a;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=$t(e,o);if(r){var l=Jt(e,o),s=l[1],u=l[2];if(s>u)return!0}o=o.parentNode}while(o&&o!==t.body);return!1},el=function(e){var a=e.scrollTop,t=e.scrollHeight,o=e.clientHeight;return[a,t,o]},al=function(e){var a=e.scrollLeft,t=e.scrollWidth,o=e.clientWidth;return[a,t,o]},$t=function(e,a){return e==="v"?Yr(a):Qr(a)},Jt=function(e,a){return e==="v"?el(a):al(a)},tl=function(e,a){return e==="h"&&a==="rtl"?-1:1},Yt=function(e,a,t,o,r){var l=tl(e,window.getComputedStyle(a).direction),s=l*o,u=t.target,f=a.contains(u),d=!1,n=s>0,c=0,x=0;do{if(!u)break;var I=Jt(e,u),v=I[0],i=I[1],h=I[2],b=i-h-l*v;(v||b)&&$t(e,u)&&(c+=b,x+=v);var S=u.parentNode;u=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!f&&u!==document.body||f&&(a.contains(u)||a===u));return(n&&(r&&Math.abs(c)<1||!r&&s>c)||!n&&(r&&Math.abs(x)<1||!r&&-s>x))&&(d=!0),d};var je=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qt=function(e){return[e.deltaX,e.deltaY]},eo=function(e){return e&&"current"in e?e.current:e},ol=function(e,a){return e[0]===a[0]&&e[1]===a[1]},rl=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},ll=0,be=[];function ao(e){var a=A.useRef([]),t=A.useRef([0,0]),o=A.useRef(),r=A.useState(ll++)[0],l=A.useState(Re)[0],s=A.useRef(e);A.useEffect(function(){s.current=e},[e]),A.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var i=Nt([e.lockRef.current],(e.shards||[]).map(eo),!0).filter(Boolean);return i.forEach(function(h){return h.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),i.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var u=A.useCallback(function(i,h){if("touches"in i&&i.touches.length===2||i.type==="wheel"&&i.ctrlKey)return!s.current.allowPinchZoom;var b=je(i),S=t.current,y="deltaX"in i?i.deltaX:S[0]-b[0],k="deltaY"in i?i.deltaY:S[1]-b[1],P,D=i.target,C=Math.abs(y)>Math.abs(k)?"h":"v";if("touches"in i&&C==="h"&&D.type==="range")return!1;var m=window.getSelection(),B=m&&m.anchorNode,oe=B?B===D||B.contains(D):!1;if(oe)return!1;var de=Da(C,D);if(!de)return!0;if(de?P=C:(P=C==="v"?"h":"v",de=Da(C,D)),!de)return!1;if(!o.current&&"changedTouches"in i&&(y||k)&&(o.current=P),!P)return!0;var fe=o.current||P;return Yt(fe,h,i,fe==="h"?y:k,!0)},[]),f=A.useCallback(function(i){var h=i;if(!(!be.length||be[be.length-1]!==l)){var b="deltaY"in h?Qt(h):je(h),S=a.current.filter(function(P){return P.name===h.type&&(P.target===h.target||h.target===P.shadowParent)&&ol(P.delta,b)})[0];if(S&&S.should){h.cancelable&&h.preventDefault();return}if(!S){var y=(s.current.shards||[]).map(eo).filter(Boolean).filter(function(P){return P.contains(h.target)}),k=y.length>0?u(h,y[0]):!s.current.noIsolation;k&&h.cancelable&&h.preventDefault()}}},[]),d=A.useCallback(function(i,h,b,S){var y={name:i,delta:h,target:b,should:S,shadowParent:ul(b)};a.current.push(y),setTimeout(function(){a.current=a.current.filter(function(k){return k!==y})},1)},[]),n=A.useCallback(function(i){t.current=je(i),o.current=void 0},[]),c=A.useCallback(function(i){d(i.type,Qt(i),i.target,u(i,e.lockRef.current))},[]),x=A.useCallback(function(i){d(i.type,je(i),i.target,u(i,e.lockRef.current))},[]);A.useEffect(function(){return be.push(l),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:x}),document.addEventListener("wheel",f,pe),document.addEventListener("touchmove",f,pe),document.addEventListener("touchstart",n,pe),function(){be=be.filter(function(i){return i!==l}),document.removeEventListener("wheel",f,pe),document.removeEventListener("touchmove",f,pe),document.removeEventListener("touchstart",n,pe)}},[]);var I=e.removeScrollBar,v=e.inert;return A.createElement(A.Fragment,null,v?A.createElement(l,{styles:rl(r)}):null,I?A.createElement(Ra,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ul(e){for(var a=null;e!==null;)e instanceof ShadowRoot&&(a=e.host,e=e.host),e=e.parentNode;return a}var to=wa(Ke,ao);var oo=Ze.forwardRef(function(e,a){return Ze.createElement(ke,z({},e,{ref:a,sideCar:to}))});oo.classNames=ke.classNames;var Ma=oo;var sl=function(e){if(typeof document>"u")return null;var a=Array.isArray(e)?e[0]:e;return a.ownerDocument.body},ve=new WeakMap,$e=new WeakMap,Je={},Fa=0,ro=function(e){return e&&(e.host||ro(e.parentNode))},dl=function(e,a){return a.map(function(t){if(e.contains(t))return t;var o=ro(t);return o&&e.contains(o)?o:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},fl=function(e,a,t,o){var r=dl(a,Array.isArray(e)?e:[e]);Je[t]||(Je[t]=new WeakMap);var l=Je[t],s=[],u=new Set,f=new Set(r),d=function(c){!c||u.has(c)||(u.add(c),d(c.parentNode))};r.forEach(d);var n=function(c){!c||f.has(c)||Array.prototype.forEach.call(c.children,function(x){if(u.has(x))n(x);else try{var I=x.getAttribute(o),v=I!==null&&I!=="false",i=(ve.get(x)||0)+1,h=(l.get(x)||0)+1;ve.set(x,i),l.set(x,h),s.push(x),i===1&&v&&$e.set(x,!0),h===1&&x.setAttribute(t,"true"),v||x.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",x,b)}})};return n(a),u.clear(),Fa++,function(){s.forEach(function(c){var x=ve.get(c)-1,I=l.get(c)-1;ve.set(c,x),l.set(c,I),x||($e.has(c)||c.removeAttribute(o),$e.delete(c)),I||c.removeAttribute(t)}),Fa--,Fa||(ve=new WeakMap,ve=new WeakMap,$e=new WeakMap,Je={})}},lo=function(e,a,t){t===void 0&&(t="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=a||sl(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),fl(o,r,t,"aria-hidden")):function(){return null}};import{Fragment as uo,jsx as F,jsxs as so}from"react/jsx-runtime";var Qe="Dialog",[fo,nl]=gt(Qe),[il,Y]=fo(Qe),Ba=e=>{let{__scopeDialog:a,children:t,open:o,defaultOpen:r,onOpenChange:l,modal:s=!0}=e,u=R.useRef(null),f=R.useRef(null),[d,n]=St({prop:o,defaultProp:r??!1,onChange:l,caller:Qe});return F(il,{scope:a,triggerRef:u,contentRef:f,contentId:Ge(),titleId:Ge(),descriptionId:Ge(),open:d,onOpenChange:n,onOpenToggle:R.useCallback(()=>n(c=>!c),[n]),modal:s,children:t})};Ba.displayName=Qe;var no="DialogTrigger",Ta=R.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Y(no,t),l=J(a,r.triggerRef);return F(G.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":Wa(r.open),...o,ref:l,onClick:Q(e.onClick,r.onOpenToggle)})});Ta.displayName=no;var Oa="DialogPortal",[cl,io]=fo(Oa,{forceMount:void 0}),Ea=e=>{let{__scopeDialog:a,forceMount:t,children:o,container:r}=e,l=Y(Oa,a);return F(cl,{scope:a,forceMount:t,children:R.Children.map(o,s=>F(Pe,{present:t||l.open,children:F(Ia,{asChild:!0,container:r,children:s})}))})};Ea.displayName=Oa;var Ye="DialogOverlay",qa=R.forwardRef((e,a)=>{let t=io(Ye,e.__scopeDialog),{forceMount:o=t.forceMount,...r}=e,l=Y(Ye,e.__scopeDialog);return l.modal?F(Pe,{present:o||l.open,children:F(ml,{...r,ref:a})}):null});qa.displayName=Ye;var pl=he("DialogOverlay.RemoveScroll"),ml=R.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Y(Ye,t);return F(Ma,{as:pl,allowPinchZoom:!0,shards:[r.contentRef],children:F(G.div,{"data-state":Wa(r.open),...o,ref:a,style:{pointerEvents:"auto",...o.style}})})}),me="DialogContent",Ua=R.forwardRef((e,a)=>{let t=io(me,e.__scopeDialog),{forceMount:o=t.forceMount,...r}=e,l=Y(me,e.__scopeDialog);return F(Pe,{present:o||l.open,children:l.modal?F(Ll,{...r,ref:a}):F(xl,{...r,ref:a})})});Ua.displayName=me;var Ll=R.forwardRef((e,a)=>{let t=Y(me,e.__scopeDialog),o=R.useRef(null),r=J(a,t.contentRef,o);return R.useEffect(()=>{let l=o.current;if(l)return lo(l)},[]),F(co,{...e,ref:r,trapFocus:t.open,disableOutsidePointerEvents:t.open,onCloseAutoFocus:Q(e.onCloseAutoFocus,l=>{l.preventDefault(),t.triggerRef.current?.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,l=>{let s=l.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0;(s.button===2||u)&&l.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,l=>l.preventDefault())})}),xl=R.forwardRef((e,a)=>{let t=Y(me,e.__scopeDialog),o=R.useRef(!1),r=R.useRef(!1);return F(co,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{e.onCloseAutoFocus?.(l),l.defaultPrevented||(o.current||t.triggerRef.current?.focus(),l.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:l=>{e.onInteractOutside?.(l),l.defaultPrevented||(o.current=!0,l.detail.originalEvent.type==="pointerdown"&&(r.current=!0));let s=l.target;t.triggerRef.current?.contains(s)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&r.current&&l.preventDefault()}})}),co=R.forwardRef((e,a)=>{let{__scopeDialog:t,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:l,...s}=e,u=Y(me,t),f=R.useRef(null),d=J(a,f);return Ht(),so(uo,{children:[F(xa,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:l,children:F(pa,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Wa(u.open),...s,ref:d,onDismiss:()=>u.onOpenChange(!1)})}),so(uo,{children:[F(hl,{titleId:u.titleId}),F(Cl,{contentRef:f,descriptionId:u.descriptionId})]})]})}),Ha="DialogTitle",Na=R.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Y(Ha,t);return F(G.h2,{id:r.titleId,...o,ref:a})});Na.displayName=Ha;var po="DialogDescription",Ga=R.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Y(po,t);return F(G.p,{id:r.descriptionId,...o,ref:a})});Ga.displayName=po;var mo="DialogClose",za=R.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=Y(mo,t);return F(G.button,{type:"button",...o,ref:a,onClick:Q(e.onClick,()=>r.onOpenChange(!1))})});za.displayName=mo;function Wa(e){return e?"open":"closed"}var Lo="DialogTitleWarning",[Il,xo]=ht(Lo,{contentName:me,titleName:Ha,docsSlug:"dialog"}),hl=({titleId:e})=>{let a=xo(Lo),t=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return R.useEffect(()=>{e&&(document.getElementById(e)||console.error(t))},[t,e]),null},gl="DialogDescriptionWarning",Cl=({contentRef:e,descriptionId:a})=>{let o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xo(gl).contentName}}.`;return R.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");a&&r&&(document.getElementById(a)||console.warn(o))},[o,e,a]),null},Sl=Ba,wl=Ta,bl=Ea,vl=qa,yl=Ua,Pl=Na,kl=Ga,Rl=za;var ea={};na(ea,{Label:()=>Va,Root:()=>Ml});import*as Io from"react";import{jsx as Al}from"react/jsx-runtime";var Dl="Label",Va=Io.forwardRef((e,a)=>Al(G.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Va.displayName=Dl;var Ml=Va;var Fl=(e,a)=>{let t=new Array(e.length+a.length);for(let o=0;o({classGroupId:e,validator:a}),vo=(e=new Map,a=null,t)=>({nextPart:e,validators:a,classGroupId:t}),oa="-",ho=[],Tl="arbitrary..",Ol=e=>{let a=ql(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return El(s);let u=s.split(oa),f=u[0]===""&&u.length>1?1:0;return yo(u,f,a)},getConflictingClassGroupIds:(s,u)=>{if(u){let f=o[s],d=t[s];return f?d?Fl(d,f):f:d||ho}return t[s]||ho}}},yo=(e,a,t)=>{if(e.length-a===0)return t.classGroupId;let r=e[a],l=t.nextPart.get(r);if(l){let d=yo(e,a+1,l);if(d)return d}let s=t.validators;if(s===null)return;let u=a===0?e.join(oa):e.slice(a).join(oa),f=s.length;for(let d=0;de.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let a=e.slice(1,-1),t=a.indexOf(":"),o=a.slice(0,t);return o?Tl+o:void 0})(),ql=e=>{let{theme:a,classGroups:t}=e;return Ul(t,a)},Ul=(e,a)=>{let t=vo();for(let o in e){let r=e[o];Ka(r,t,o,a)}return t},Ka=(e,a,t,o)=>{let r=e.length;for(let l=0;l{if(typeof e=="string"){Nl(e,a,t);return}if(typeof e=="function"){Gl(e,a,t,o);return}zl(e,a,t,o)},Nl=(e,a,t)=>{let o=e===""?a:Po(a,e);o.classGroupId=t},Gl=(e,a,t,o)=>{if(Wl(e)){Ka(e(o),a,t,o);return}a.validators===null&&(a.validators=[]),a.validators.push(Bl(t,e))},zl=(e,a,t,o)=>{let r=Object.entries(e),l=r.length;for(let s=0;s{let t=e,o=a.split(oa),r=o.length;for(let l=0;l"isThemeGetter"in e&&e.isThemeGetter===!0,Vl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,t=Object.create(null),o=Object.create(null),r=(l,s)=>{t[l]=s,a++,a>e&&(a=0,o=t,t=Object.create(null))};return{get(l){let s=t[l];if(s!==void 0)return s;if((s=o[l])!==void 0)return r(l,s),s},set(l,s){l in t?t[l]=s:r(l,s)}}},Xa="!",go=":",_l=[],Co=(e,a,t,o,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:t,maybePostfixModifierPosition:o,isExternal:r}),Xl=e=>{let{prefix:a,experimentalParseClassName:t}=e,o=r=>{let l=[],s=0,u=0,f=0,d,n=r.length;for(let i=0;if?d-f:void 0;return Co(l,I,x,v)};if(a){let r=a+go,l=o;o=s=>s.startsWith(r)?l(s.slice(r.length)):Co(_l,!1,s,void 0,!0)}if(t){let r=o;o=l=>t({className:l,parseClassName:r})}return o},Kl=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{a.set(t,1e6+o)}),t=>{let o=[],r=[];for(let l=0;l0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},jl=e=>({cache:Vl(e.cacheSize),parseClassName:Xl(e),sortModifiers:Kl(e),postfixLookupClassGroupIds:Zl(e),...Ol(e)}),Zl=e=>{let a=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let o=0;o{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:l,postfixLookupClassGroupIds:s}=a,u=[],f=e.trim().split($l),d="";for(let n=f.length-1;n>=0;n-=1){let c=f[n],{isExternal:x,modifiers:I,hasImportantModifier:v,baseClassName:i,maybePostfixModifierPosition:h}=t(c);if(x){d=c+(d.length>0?" "+d:d);continue}let b=!!h,S;if(b){let C=i.substring(0,h);S=o(C);let m=S&&s[S]?o(i):void 0;m&&m!==S&&(S=m,b=!1)}else S=o(i);if(!S){if(!b){d=c+(d.length>0?" "+d:d);continue}if(S=o(i),!S){d=c+(d.length>0?" "+d:d);continue}b=!1}let y=I.length===0?"":I.length===1?I[0]:l(I).join(":"),k=v?y+Xa:y,P=k+S;if(u.indexOf(P)>-1)continue;u.push(P);let D=r(S,b);for(let C=0;C0?" "+d:d)}return d},Yl=(...e)=>{let a=0,t,o,r="";for(;a{if(typeof e=="string")return e;let a,t="";for(let o=0;o{let t,o,r,l,s=f=>{let d=a.reduce((n,c)=>c(n),e());return t=jl(d),o=t.cache.get,r=t.cache.set,l=u,u(f)},u=f=>{let d=o(f);if(d)return d;let n=Jl(f,t);return r(f,n),n};return l=s,(...f)=>l(Yl(...f))},eu=[],T=e=>{let a=t=>t[e]||eu;return a.isThemeGetter=!0,a},Ro=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ao=/^\((?:(\w[\w-]*):)?(.+)\)$/i,au=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,tu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ou=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ru=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ue=e=>au.test(e),w=e=>!!e&&!Number.isNaN(Number(e)),ee=e=>!!e&&Number.isInteger(Number(e)),_a=e=>e.endsWith("%")&&w(e.slice(0,-1)),te=e=>tu.test(e),Do=()=>!0,su=e=>ou.test(e)&&!ru.test(e),ja=()=>!1,du=e=>lu.test(e),fu=e=>uu.test(e),nu=e=>!p(e)&&!L(e),iu=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),cu=e=>se(e,Bo,ja),p=e=>Ro.test(e),Le=e=>se(e,To,su),So=e=>se(e,Cu,w),pu=e=>se(e,Eo,Do),mu=e=>se(e,Oo,ja),wo=e=>se(e,Mo,ja),Lu=e=>se(e,Fo,fu),aa=e=>se(e,qo,du),L=e=>Ao.test(e),De=e=>xe(e,To),xu=e=>xe(e,Oo),bo=e=>xe(e,Mo),Iu=e=>xe(e,Bo),hu=e=>xe(e,Fo),ta=e=>xe(e,qo,!0),gu=e=>xe(e,Eo,!0),se=(e,a,t)=>{let o=Ro.exec(e);return o?o[1]?a(o[1]):t(o[2]):!1},xe=(e,a,t=!1)=>{let o=Ao.exec(e);return o?o[1]?a(o[1]):t:!1},Mo=e=>e==="position"||e==="percentage",Fo=e=>e==="image"||e==="url",Bo=e=>e==="length"||e==="size"||e==="bg-size",To=e=>e==="length",Cu=e=>e==="number",Oo=e=>e==="family-name",Eo=e=>e==="number"||e==="weight",qo=e=>e==="shadow";var Su=()=>{let e=T("color"),a=T("font"),t=T("text"),o=T("font-weight"),r=T("tracking"),l=T("leading"),s=T("breakpoint"),u=T("container"),f=T("spacing"),d=T("radius"),n=T("shadow"),c=T("inset-shadow"),x=T("text-shadow"),I=T("drop-shadow"),v=T("blur"),i=T("perspective"),h=T("aspect"),b=T("ease"),S=T("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...k(),L,p],D=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],m=()=>[L,p,f],B=()=>[ue,"full","auto",...m()],oe=()=>[ee,"none","subgrid",L,p],de=()=>["auto",{span:["full",ee,L,p]},ee,L,p],fe=()=>[ee,"auto",L,p],Qa=()=>["auto","min","max","fr",L,p],la=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ie=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...m()],ne=()=>[ue,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],ua=()=>[ue,"screen","full","dvw","lvw","svw","min","max","fit",...m()],sa=()=>[ue,"screen","full","lh","dvh","lvh","svh","min","max","fit",...m()],g=()=>[e,L,p],et=()=>[...k(),bo,wo,{position:[L,p]}],at=()=>["no-repeat",{repeat:["","x","y","space","round"]}],tt=()=>["auto","cover","contain",Iu,cu,{size:[L,p]}],da=()=>[_a,De,Le],H=()=>["","none","full",d,L,p],N=()=>["",w,De,Le],Fe=()=>["solid","dashed","dotted","double"],ot=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[w,_a,bo,wo],rt=()=>["","none",v,L,p],Be=()=>["none",w,L,p],Te=()=>["none",w,L,p],fa=()=>[w,L,p],Oe=()=>[ue,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[te],breakpoint:[te],color:[Do],container:[te],"drop-shadow":[te],ease:["in","out","in-out"],font:[nu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[te],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[te],shadow:[te],spacing:["px",w],text:[te],"text-shadow":[te],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ue,p,L,h]}],container:["container"],"container-type":[{"@container":["","normal","size",L,p]}],"container-named":[iu],columns:[{columns:[w,p,L,u]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[ee,"auto",L,p]}],basis:[{basis:[ue,"full","auto",u,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[w,ue,"auto","initial","none",p]}],grow:[{grow:["",w,L,p]}],shrink:[{shrink:["",w,L,p]}],order:[{order:[ee,"first","last","none",L,p]}],"grid-cols":[{"grid-cols":oe()}],"col-start-end":[{col:de()}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":oe()}],"row-start-end":[{row:de()}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Qa()}],"auto-rows":[{"auto-rows":Qa()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...la(),"normal"]}],"justify-items":[{"justify-items":[...Ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ie()]}],"align-content":[{content:["normal",...la()]}],"align-items":[{items:[...Ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":la()}],"place-items":[{"place-items":[...Ie(),"baseline"]}],"place-self":[{"place-self":["auto",...Ie()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pbs:[{pbs:m()}],pbe:[{pbe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mbs:[{mbs:$()}],mbe:[{mbe:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],"inline-size":[{inline:["auto",...ua()]}],"min-inline-size":[{"min-inline":["auto",...ua()]}],"max-inline-size":[{"max-inline":["none",...ua()]}],"block-size":[{block:["auto",...sa()]}],"min-block-size":[{"min-block":["auto",...sa()]}],"max-block-size":[{"max-block":["none",...sa()]}],w:[{w:[u,"screen",...ne()]}],"min-w":[{"min-w":[u,"screen","none",...ne()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[s]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",t,De,Le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,gu,pu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_a,p]}],"font-family":[{font:[xu,mu,a]}],"font-features":[{"font-features":[p]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,L,p]}],"line-clamp":[{"line-clamp":[w,"none",L,So]}],leading:[{leading:[l,...m()]}],"list-image":[{"list-image":["none",L,p]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:g()}],"text-color":[{text:g()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[w,"from-font","auto",L,Le]}],"text-decoration-color":[{decoration:g()}],"underline-offset":[{"underline-offset":[w,"auto",L,p]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"tab-size":[{tab:[ee,L,p]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L,p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L,p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:et()}],"bg-repeat":[{bg:at()}],"bg-size":[{bg:tt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ee,L,p],radial:["",L,p],conic:[ee,L,p]},hu,Lu]}],"bg-color":[{bg:g()}],"gradient-from-pos":[{from:da()}],"gradient-via-pos":[{via:da()}],"gradient-to-pos":[{to:da()}],"gradient-from":[{from:g()}],"gradient-via":[{via:g()}],"gradient-to":[{to:g()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-bs":[{"border-bs":N()}],"border-w-be":[{"border-be":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Fe(),"hidden","none"]}],"divide-style":[{divide:[...Fe(),"hidden","none"]}],"border-color":[{border:g()}],"border-color-x":[{"border-x":g()}],"border-color-y":[{"border-y":g()}],"border-color-s":[{"border-s":g()}],"border-color-e":[{"border-e":g()}],"border-color-bs":[{"border-bs":g()}],"border-color-be":[{"border-be":g()}],"border-color-t":[{"border-t":g()}],"border-color-r":[{"border-r":g()}],"border-color-b":[{"border-b":g()}],"border-color-l":[{"border-l":g()}],"divide-color":[{divide:g()}],"outline-style":[{outline:[...Fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[w,L,p]}],"outline-w":[{outline:["",w,De,Le]}],"outline-color":[{outline:g()}],shadow:[{shadow:["","none",n,ta,aa]}],"shadow-color":[{shadow:g()}],"inset-shadow":[{"inset-shadow":["none",c,ta,aa]}],"inset-shadow-color":[{"inset-shadow":g()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:g()}],"ring-offset-w":[{"ring-offset":[w,Le]}],"ring-offset-color":[{"ring-offset":g()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":g()}],"text-shadow":[{"text-shadow":["none",x,ta,aa]}],"text-shadow-color":[{"text-shadow":g()}],opacity:[{opacity:[w,L,p]}],"mix-blend":[{"mix-blend":[...ot(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ot()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[w]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":g()}],"mask-image-linear-to-color":[{"mask-linear-to":g()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":g()}],"mask-image-t-to-color":[{"mask-t-to":g()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":g()}],"mask-image-r-to-color":[{"mask-r-to":g()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":g()}],"mask-image-b-to-color":[{"mask-b-to":g()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":g()}],"mask-image-l-to-color":[{"mask-l-to":g()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":g()}],"mask-image-x-to-color":[{"mask-x-to":g()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":g()}],"mask-image-y-to-color":[{"mask-y-to":g()}],"mask-image-radial":[{"mask-radial":[L,p]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":g()}],"mask-image-radial-to-color":[{"mask-radial-to":g()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[w]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":g()}],"mask-image-conic-to-color":[{"mask-conic-to":g()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:et()}],"mask-repeat":[{mask:at()}],"mask-size":[{mask:tt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,p]}],filter:[{filter:["","none",L,p]}],blur:[{blur:rt()}],brightness:[{brightness:[w,L,p]}],contrast:[{contrast:[w,L,p]}],"drop-shadow":[{"drop-shadow":["","none",I,ta,aa]}],"drop-shadow-color":[{"drop-shadow":g()}],grayscale:[{grayscale:["",w,L,p]}],"hue-rotate":[{"hue-rotate":[w,L,p]}],invert:[{invert:["",w,L,p]}],saturate:[{saturate:[w,L,p]}],sepia:[{sepia:["",w,L,p]}],"backdrop-filter":[{"backdrop-filter":["","none",L,p]}],"backdrop-blur":[{"backdrop-blur":rt()}],"backdrop-brightness":[{"backdrop-brightness":[w,L,p]}],"backdrop-contrast":[{"backdrop-contrast":[w,L,p]}],"backdrop-grayscale":[{"backdrop-grayscale":["",w,L,p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w,L,p]}],"backdrop-invert":[{"backdrop-invert":["",w,L,p]}],"backdrop-opacity":[{"backdrop-opacity":[w,L,p]}],"backdrop-saturate":[{"backdrop-saturate":[w,L,p]}],"backdrop-sepia":[{"backdrop-sepia":["",w,L,p]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",L,p]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[w,"initial",L,p]}],ease:[{ease:["linear","initial",b,L,p]}],delay:[{delay:[w,L,p]}],animate:[{animate:["none",S,L,p]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[i,L,p]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:Be()}],"rotate-x":[{"rotate-x":Be()}],"rotate-y":[{"rotate-y":Be()}],"rotate-z":[{"rotate-z":Be()}],scale:[{scale:Te()}],"scale-x":[{"scale-x":Te()}],"scale-y":[{"scale-y":Te()}],"scale-z":[{"scale-z":Te()}],"scale-3d":["scale-3d"],skew:[{skew:fa()}],"skew-x":[{"skew-x":fa()}],"skew-y":[{"skew-y":fa()}],transform:[{transform:[L,p,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Oe()}],"translate-x":[{"translate-x":Oe()}],"translate-y":[{"translate-y":Oe()}],"translate-z":[{"translate-z":Oe()}],"translate-none":["translate-none"],zoom:[{zoom:[ee,L,p]}],accent:[{accent:g()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:g()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",L,p]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":g()}],"scrollbar-track-color":[{"scrollbar-track":g()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mbs":[{"scroll-mbs":m()}],"scroll-mbe":[{"scroll-mbe":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pbs":[{"scroll-pbs":m()}],"scroll-pbe":[{"scroll-pbe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L,p]}],fill:[{fill:["none",...g()]}],"stroke-w":[{stroke:[w,De,Le,So]}],stroke:[{stroke:["none",...g()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Uo=Ql(Su);function W(...e){return Uo(Ee(e))}import{jsx as bu}from"react/jsx-runtime";var wu=dt("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Za({className:e,variant:a="default",size:t="default",asChild:o=!1,...r}){let l=o?Ue.Root:"button";return bu(l,{"data-slot":"button","data-variant":a,"data-size":t,className:W(wu({variant:a,size:t,className:e})),...r})}import{jsx as vu}from"react/jsx-runtime";function $a({className:e,type:a,...t}){return vu("input",{type:a,"data-slot":"input",className:W("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...t})}import{jsx as yu}from"react/jsx-runtime";function Ja({className:e,...a}){return yu(ea.Root,{"data-slot":"label",className:W("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...a})}import{forwardRef as ku,createElement as Ru}from"react";var Ho=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ra=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();import{forwardRef as Pu,createElement as Go}from"react";var No={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var zo=Pu(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:s,...u},f)=>Go("svg",{ref:f,...No,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:ra("lucide",r),...u},[...s.map(([d,n])=>Go(d,n)),...Array.isArray(l)?l:[l]]));var Wo=(e,a)=>{let t=ku(({className:o,...r},l)=>Ru(zo,{ref:l,iconNode:a,className:ra(`lucide-${Ho(e)}`,o),...r}));return t.displayName=`${e}`,t};var Me=Wo("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);import{jsx as j,jsxs as Ya}from"react/jsx-runtime";function Vo({...e}){return j(K.Root,{"data-slot":"sheet",...e})}function _o({...e}){return j(K.Trigger,{"data-slot":"sheet-trigger",...e})}function Xo({...e}){return j(K.Close,{"data-slot":"sheet-close",...e})}function Au({...e}){return j(K.Portal,{"data-slot":"sheet-portal",...e})}function Du({className:e,...a}){return j(K.Overlay,{"data-slot":"sheet-overlay",className:W("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...a})}function Ko({className:e,children:a,side:t="right",showCloseButton:o=!0,...r}){return Ya(Au,{children:[j(Du,{}),Ya(K.Content,{"data-slot":"sheet-content",className:W("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500",t==="right"&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",t==="left"&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",t==="top"&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",t==="bottom"&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e),...r,children:[a,o&&Ya(K.Close,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary",children:[j(Me,{className:"size-4"}),j("span",{className:"sr-only",children:"Close"})]})]})]})}function jo({className:e,...a}){return j("div",{"data-slot":"sheet-header",className:W("flex flex-col gap-1.5 p-4",e),...a})}function Zo({className:e,...a}){return j("div",{"data-slot":"sheet-footer",className:W("mt-auto flex flex-col gap-2 p-4",e),...a})}function $o({className:e,...a}){return j(K.Title,{"data-slot":"sheet-title",className:W("font-semibold text-foreground",e),...a})}function Jo({className:e,...a}){return j(K.Description,{"data-slot":"sheet-description",className:W("text-sm text-muted-foreground",e),...a})}import{jsx as Z,jsxs as ye}from"react/jsx-runtime";var Mu=["top","right","bottom","left"];function Fu(){return Z("div",{className:"grid grid-cols-2 gap-2",children:Mu.map(e=>ye(Vo,{children:[Z(_o,{asChild:!0,children:Z(Za,{variant:"outline",children:e})}),ye(Ko,{side:e,children:[ye(jo,{children:[Z($o,{children:"Edit profile"}),Z(Jo,{children:"Make changes to your profile here. Click save when you're done."})]}),ye("div",{className:"grid gap-4 py-4",children:[ye("div",{className:"grid grid-cols-4 items-center gap-4",children:[Z(Ja,{htmlFor:"name",className:"text-right",children:"Name"}),Z($a,{id:"name",value:"Pedro Duarte",className:"col-span-3"})]}),ye("div",{className:"grid grid-cols-4 items-center gap-4",children:[Z(Ja,{htmlFor:"username",className:"text-right",children:"Username"}),Z($a,{id:"username",value:"@peduarte",className:"col-span-3"})]})]}),Z(Zo,{children:Z(Xo,{asChild:!0,children:Z(Za,{type:"submit",children:"Save changes"})})})]})]},e))})}export{Fu as default}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/x.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/858106c2a1ed46622f76ba88f844fbfa91c887842dd7468ade8780ba6ed46591 b/b/858106c2a1ed46622f76ba88f844fbfa91c887842dd7468ade8780ba6ed46591 new file mode 100644 index 0000000000000000000000000000000000000000..ff7617f9fafe32cb620c2b2ee62fc77f7fb94416 --- /dev/null +++ b/b/858106c2a1ed46622f76ba88f844fbfa91c887842dd7468ade8780ba6ed46591 @@ -0,0 +1 @@ +function fe(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{let r=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),ze=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),H="-",he=[],Fe="arbitrary..",Be=e=>{let t=Ue(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return $e(l);let u=l.split(H),b=u[0]===""&&u.length>1?1:0;return Ce(u,b,t)},getConflictingClassGroupIds:(l,u)=>{if(u){let b=o[l],m=r[l];return b?m?_e(m,b):b:m||he}return r[l]||he}}},Ce=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;let i=e[t],d=r.nextPart.get(i);if(d){let m=Ce(e,t+1,d);if(m)return m}let l=r.validators;if(l===null)return;let u=t===0?e.join(H):e.slice(t).join(H),b=l.length;for(let m=0;me.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),o=t.slice(0,r);return o?Fe+o:void 0})(),Ue=e=>{let{theme:t,classGroups:r}=e;return De(r,t)},De=(e,t)=>{let r=ze();for(let o in e){let i=e[o];ne(i,r,o,t)}return r},ne=(e,t,r,o)=>{let i=e.length;for(let d=0;d{if(typeof e=="string"){qe(e,t,r);return}if(typeof e=="function"){Xe(e,t,r,o);return}Je(e,t,r,o)},qe=(e,t,r)=>{let o=e===""?t:Se(t,e);o.classGroupId=r},Xe=(e,t,r,o)=>{if(Qe(e)){ne(e(o),t,r,o);return}t.validators===null&&(t.validators=[]),t.validators.push(je(r,e))},Je=(e,t,r,o)=>{let i=Object.entries(e),d=i.length;for(let l=0;l{let r=e,o=t.split(H),i=o.length;for(let d=0;d"isThemeGetter"in e&&e.isThemeGetter===!0,He=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),o=Object.create(null),i=(d,l)=>{r[d]=l,t++,t>e&&(t=0,o=r,r=Object.create(null))};return{get(d){let l=r[d];if(l!==void 0)return l;if((l=o[d])!==void 0)return i(d,l),l},set(d,l){d in r?r[d]=l:i(d,l)}}},se="!",ke=":",Ke=[],xe=(e,t,r,o,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:i}),Ze=e=>{let{prefix:t,experimentalParseClassName:r}=e,o=i=>{let d=[],l=0,u=0,b=0,m,h=i.length;for(let y=0;yb?m-b:void 0;return xe(d,A,T,F)};if(t){let i=t+ke,d=o;o=l=>l.startsWith(i)?d(l.slice(i.length)):xe(Ke,!1,l,void 0,!0)}if(r){let i=o;o=d=>r({className:d,parseClassName:i})}return o},eo=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((r,o)=>{t.set(r,1e6+o)}),r=>{let o=[],i=[];for(let d=0;d0&&(i.sort(),o.push(...i),i=[]),o.push(l)):i.push(l)}return i.length>0&&(i.sort(),o.push(...i)),o}},oo=e=>({cache:He(e.cacheSize),parseClassName:Ze(e),sortModifiers:eo(e),postfixLookupClassGroupIds:ro(e),...Be(e)}),ro=e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let o=0;o{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:d,postfixLookupClassGroupIds:l}=t,u=[],b=e.trim().split(to),m="";for(let h=b.length-1;h>=0;h-=1){let k=b[h],{isExternal:T,modifiers:A,hasImportantModifier:F,baseClassName:y,maybePostfixModifierPosition:C}=r(k);if(T){m=k+(m.length>0?" "+m:m);continue}let L=!!C,v;if(L){let M=y.substring(0,C);v=o(M);let a=v&&l[v]?o(y):void 0;a&&a!==v&&(v=a,L=!1)}else v=o(y);if(!v){if(!L){m=k+(m.length>0?" "+m:m);continue}if(v=o(y),!v){m=k+(m.length>0?" "+m:m);continue}L=!1}let B=A.length===0?"":A.length===1?A[0]:d(A).join(":"),O=F?B+se:B,E=O+v;if(u.indexOf(E)>-1)continue;u.push(E);let _=i(v,L);for(let M=0;M<_.length;++M){let a=_[M];u.push(O+a)}m=k+(m.length>0?" "+m:m)}return m},no=(...e)=>{let t=0,r,o,i="";for(;t{if(typeof e=="string")return e;let t,r="";for(let o=0;o{let r,o,i,d,l=b=>{let m=t.reduce((h,k)=>k(h),e());return r=oo(m),o=r.cache.get,i=r.cache.set,d=u,u(b)},u=b=>{let m=o(b);if(m)return m;let h=so(b,r);return i(b,h),h};return d=l,(...b)=>d(no(...b))},io=[],f=e=>{let t=r=>r[e]||io;return t.isThemeGetter=!0,t},Ge=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Me=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,co=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,po=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>lo.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),te=e=>e.endsWith("%")&&p(e.slice(0,-1)),P=e=>co.test(e),Pe=()=>!0,fo=e=>mo.test(e)&&!po.test(e),ae=()=>!1,go=e=>uo.test(e),ho=e=>bo.test(e),ko=e=>!s(e)&&!n(e),xo=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),wo=e=>R(e,Te,ae),s=e=>Ge.test(e),V=e=>R(e,Le,fo),we=e=>R(e,Mo,p),yo=e=>R(e,Ve,Pe),vo=e=>R(e,Ne,ae),ye=e=>R(e,Ie,ae),zo=e=>R(e,Re,ho),J=e=>R(e,We,go),n=e=>Me.test(e),$=e=>W(e,Le),Co=e=>W(e,Ne),ve=e=>W(e,Ie),So=e=>W(e,Te),Ao=e=>W(e,Re),Q=e=>W(e,We,!0),Go=e=>W(e,Ve,!0),R=(e,t,r)=>{let o=Ge.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},W=(e,t,r=!1)=>{let o=Me.exec(e);return o?o[1]?t(o[1]):r:!1},Ie=e=>e==="position"||e==="percentage",Re=e=>e==="image"||e==="url",Te=e=>e==="length"||e==="size"||e==="bg-size",Le=e=>e==="length",Mo=e=>e==="number",Ne=e=>e==="family-name",Ve=e=>e==="number"||e==="weight",We=e=>e==="shadow";var Po=()=>{let e=f("color"),t=f("font"),r=f("text"),o=f("font-weight"),i=f("tracking"),d=f("leading"),l=f("breakpoint"),u=f("container"),b=f("spacing"),m=f("radius"),h=f("shadow"),k=f("inset-shadow"),T=f("text-shadow"),A=f("drop-shadow"),F=f("blur"),y=f("perspective"),C=f("aspect"),L=f("ease"),v=f("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...O(),n,s],_=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],a=()=>[n,s,b],z=()=>[I,"full","auto",...a()],ie=()=>[G,"none","subgrid",n,s],le=()=>["auto",{span:["full",G,n,s]},G,n,s],U=()=>[G,"auto",n,s],ce=()=>["auto","min","max","fr",n,s],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],S=()=>["auto",...a()],N=()=>[I,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...a()],Z=()=>[I,"screen","full","dvw","lvw","svw","min","max","fit",...a()],ee=()=>[I,"screen","full","lh","dvh","lvh","svh","min","max","fit",...a()],c=()=>[e,n,s],de=()=>[...O(),ve,ye,{position:[n,s]}],me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],pe=()=>["auto","cover","contain",So,wo,{size:[n,s]}],oe=()=>[te,$,V],x=()=>["","none","full",m,n,s],w=()=>["",p,$,V],D=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>[p,te,ve,ye],be=()=>["","none",F,n,s],Y=()=>["none",p,n,s],q=()=>["none",p,n,s],re=()=>[p,n,s],X=()=>[I,"full",...a()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[P],breakpoint:[P],color:[Pe],container:[P],"drop-shadow":[P],ease:["in","out","in-out"],font:[ko],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[P],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[P],shadow:[P],spacing:["px",p],text:[P],"text-shadow":[P],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",I,s,n,C]}],container:["container"],"container-type":[{"@container":["","normal","size",n,s]}],"container-named":[xo],columns:[{columns:[p,s,n,u]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[G,"auto",n,s]}],basis:[{basis:[I,"full","auto",u,...a()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,I,"auto","initial","none",s]}],grow:[{grow:["",p,n,s]}],shrink:[{shrink:["",p,n,s]}],order:[{order:[G,"first","last","none",n,s]}],"grid-cols":[{"grid-cols":ie()}],"col-start-end":[{col:le()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":ie()}],"row-start-end":[{row:le()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:a()}],"gap-x":[{"gap-x":a()}],"gap-y":[{"gap-y":a()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:a()}],px:[{px:a()}],py:[{py:a()}],ps:[{ps:a()}],pe:[{pe:a()}],pbs:[{pbs:a()}],pbe:[{pbe:a()}],pt:[{pt:a()}],pr:[{pr:a()}],pb:[{pb:a()}],pl:[{pl:a()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mbs:[{mbs:S()}],mbe:[{mbe:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":a()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":a()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...ee()]}],"min-block-size":[{"min-block":["auto",...ee()]}],"max-block-size":[{"max-block":["none",...ee()]}],w:[{w:[u,"screen",...N()]}],"min-w":[{"min-w":[u,"screen","none",...N()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",r,$,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Go,yo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",te,s]}],"font-family":[{font:[Co,vo,t]}],"font-features":[{"font-features":[s]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,n,s]}],"line-clamp":[{"line-clamp":[p,"none",n,we]}],leading:[{leading:[d,...a()]}],"list-image":[{"list-image":["none",n,s]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",n,s]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",n,V]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[p,"auto",n,s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:a()}],"tab-size":[{tab:[G,n,s]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",n,s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",n,s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:me()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},G,n,s],radial:["",n,s],conic:[G,n,s]},Ao,zo]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:w()}],"border-w-x":[{"border-x":w()}],"border-w-y":[{"border-y":w()}],"border-w-s":[{"border-s":w()}],"border-w-e":[{"border-e":w()}],"border-w-bs":[{"border-bs":w()}],"border-w-be":[{"border-be":w()}],"border-w-t":[{"border-t":w()}],"border-w-r":[{"border-r":w()}],"border-w-b":[{"border-b":w()}],"border-w-l":[{"border-l":w()}],"divide-x":[{"divide-x":w()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":w()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...D(),"hidden","none"]}],"divide-style":[{divide:[...D(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-bs":[{"border-bs":c()}],"border-color-be":[{"border-be":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...D(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,n,s]}],"outline-w":[{outline:["",p,$,V]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",h,Q,J]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",k,Q,J]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:w()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[p,V]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":w()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",T,Q,J]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[p,n,s]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":g()}],"mask-image-linear-to-pos":[{"mask-linear-to":g()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":g()}],"mask-image-t-to-pos":[{"mask-t-to":g()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":g()}],"mask-image-r-to-pos":[{"mask-r-to":g()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":g()}],"mask-image-b-to-pos":[{"mask-b-to":g()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":g()}],"mask-image-l-to-pos":[{"mask-l-to":g()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":g()}],"mask-image-x-to-pos":[{"mask-x-to":g()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":g()}],"mask-image-y-to-pos":[{"mask-y-to":g()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[n,s]}],"mask-image-radial-from-pos":[{"mask-radial-from":g()}],"mask-image-radial-to-pos":[{"mask-radial-to":g()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":g()}],"mask-image-conic-to-pos":[{"mask-conic-to":g()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:me()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",n,s]}],filter:[{filter:["","none",n,s]}],blur:[{blur:be()}],brightness:[{brightness:[p,n,s]}],contrast:[{contrast:[p,n,s]}],"drop-shadow":[{"drop-shadow":["","none",A,Q,J]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",p,n,s]}],"hue-rotate":[{"hue-rotate":[p,n,s]}],invert:[{invert:["",p,n,s]}],saturate:[{saturate:[p,n,s]}],sepia:[{sepia:["",p,n,s]}],"backdrop-filter":[{"backdrop-filter":["","none",n,s]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[p,n,s]}],"backdrop-contrast":[{"backdrop-contrast":[p,n,s]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,n,s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,n,s]}],"backdrop-invert":[{"backdrop-invert":["",p,n,s]}],"backdrop-opacity":[{"backdrop-opacity":[p,n,s]}],"backdrop-saturate":[{"backdrop-saturate":[p,n,s]}],"backdrop-sepia":[{"backdrop-sepia":["",p,n,s]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":a()}],"border-spacing-x":[{"border-spacing-x":a()}],"border-spacing-y":[{"border-spacing-y":a()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",n,s]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",n,s]}],ease:[{ease:["linear","initial",L,n,s]}],delay:[{delay:[p,n,s]}],animate:[{animate:["none",v,n,s]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,n,s]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:Y()}],"rotate-x":[{"rotate-x":Y()}],"rotate-y":[{"rotate-y":Y()}],"rotate-z":[{"rotate-z":Y()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[n,s,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:X()}],"translate-x":[{"translate-x":X()}],"translate-y":[{"translate-y":X()}],"translate-z":[{"translate-z":X()}],"translate-none":["translate-none"],zoom:[{zoom:[G,n,s]}],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",n,s]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":c()}],"scrollbar-track-color":[{"scrollbar-track":c()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":a()}],"scroll-mx":[{"scroll-mx":a()}],"scroll-my":[{"scroll-my":a()}],"scroll-ms":[{"scroll-ms":a()}],"scroll-me":[{"scroll-me":a()}],"scroll-mbs":[{"scroll-mbs":a()}],"scroll-mbe":[{"scroll-mbe":a()}],"scroll-mt":[{"scroll-mt":a()}],"scroll-mr":[{"scroll-mr":a()}],"scroll-mb":[{"scroll-mb":a()}],"scroll-ml":[{"scroll-ml":a()}],"scroll-p":[{"scroll-p":a()}],"scroll-px":[{"scroll-px":a()}],"scroll-py":[{"scroll-py":a()}],"scroll-ps":[{"scroll-ps":a()}],"scroll-pe":[{"scroll-pe":a()}],"scroll-pbs":[{"scroll-pbs":a()}],"scroll-pbe":[{"scroll-pbe":a()}],"scroll-pt":[{"scroll-pt":a()}],"scroll-pr":[{"scroll-pr":a()}],"scroll-pb":[{"scroll-pb":a()}],"scroll-pl":[{"scroll-pl":a()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",n,s]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[p,$,V,we]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Oe=ao(Po);function Ee(...e){return Oe(ge(e))}import{jsx as Io}from"react/jsx-runtime";function Oo({className:e,...t}){return Io("div",{"data-slot":"skeleton",className:Ee("animate-pulse rounded-md bg-accent",e),...t})}export{Oo as Skeleton}; diff --git a/b/85829e6ae5db95f4a1dc6f023253a5ce13f6fb9b7324bbb6485833c4a0b16fa7 b/b/85829e6ae5db95f4a1dc6f023253a5ce13f6fb9b7324bbb6485833c4a0b16fa7 new file mode 100644 index 0000000000000000000000000000000000000000..8f462de3f8a0e23b83e2acbca979c58d587f620b --- /dev/null +++ b/b/85829e6ae5db95f4a1dc6f023253a5ce13f6fb9b7324bbb6485833c4a0b16fa7 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.button-rounded", + "name": "button-rounded", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/button-rounded.json", + "did": "did:holo:sha256:13e04f9015bf4b878528aa62964b6a7e5550c8cda99a45edbcc2ad0bf3a5f0f4", + "import": "holo://sha256:edd03581a78f2c9fd1b7d8e22e20da58098332040f72e63ec2902efa74f866ee", + "integrity": "sha256-7dA1gaePLJ/Rt9jiLiDaWAmDMgQPcuY+wpAu+nT4Zu4=", + "kappa": "sha256:13e04f9015bf4b878528aa62964b6a7e5550c8cda99a45edbcc2ad0bf3a5f0f4", + "moduleKappa": "sha256:edd03581a78f2c9fd1b7d8e22e20da58098332040f72e63ec2902efa74f866ee", + "renderExport": "default", + "source": "registry/new-york-v4/examples/button-rounded.tsx", + "module": "vendor/components/button-rounded.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/859d241698f76687a21f3b1c8990f0bbb9f60ec423da5121fd325bb68adec4f7 b/b/859d241698f76687a21f3b1c8990f0bbb9f60ec423da5121fd325bb68adec4f7 new file mode 100644 index 0000000000000000000000000000000000000000..6a556afacd71996bf0e385ff2b04869fb2ee4523 --- /dev/null +++ b/b/859d241698f76687a21f3b1c8990f0bbb9f60ec423da5121fd325bb68adec4f7 @@ -0,0 +1,77 @@ +"use client" + +import * as React from "react" +import { OTPInput, OTPInputContext } from "input-otp" +import { MinusIcon } from "lucide-react" + +import { cn } from "@/lib/utils" + +function InputOTP({ + className, + containerClassName, + ...props +}: React.ComponentProps & { + containerClassName?: string +}) { + return ( + + ) +} + +function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">) { + return ( +
+ ) +} + +function InputOTPSlot({ + index, + className, + ...props +}: React.ComponentProps<"div"> & { + index: number +}) { + const inputOTPContext = React.useContext(OTPInputContext) + const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {} + + return ( +
+ {char} + {hasFakeCaret && ( +
+
+
+ )} +
+ ) +} + +function InputOTPSeparator({ ...props }: React.ComponentProps<"div">) { + return ( +
+ +
+ ) +} + +export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator } diff --git a/b/85eab7515fb0574b576e54597b9547e7fef0268bb0efec191c75fc167f96441a b/b/85eab7515fb0574b576e54597b9547e7fef0268bb0efec191c75fc167f96441a new file mode 100644 index 0000000000000000000000000000000000000000..60910fae4b9cc9f5d8ced9e39db0b76d1069a4cd --- /dev/null +++ b/b/85eab7515fb0574b576e54597b9547e7fef0268bb0efec191c75fc167f96441a @@ -0,0 +1 @@ +var Et=Object.defineProperty;var Ge=(e,o)=>{for(var t in o)Et(e,t,{get:o[t],enumerable:!0})};import*as $e from"react";import*as $t from"react-dom";import*as C from"react";import*as Ne from"react";function Le(e,o){if(typeof e=="function")return e(o);e!=null&&(e.current=o)}function At(...e){return o=>{let t=!1,r=e.map(n=>{let i=Le(n,o);return!t&&typeof i=="function"&&(t=!0),i});if(t)return()=>{for(let n=0;n{let{children:n,...i}=t,s=null,a=!1,u=[];Oe(n)&&typeof ne=="function"&&(n=ne(n._payload)),C.Children.forEach(n,w=>{if(Gt(w)){a=!0;let g=w,x="child"in g.props?g.props.child:g.props.children;Oe(x)&&typeof ne=="function"&&(x=ne(x._payload)),s=It(g,x),u.push(s?.props?.children)}else u.push(w)}),s?s=C.cloneElement(s,void 0,u):!a&&C.Children.count(n)===1&&C.isValidElement(n)&&(s=n);let d=s?Tt(s):void 0,h=X(r,d);if(!s){if(n||n===0)throw new Error(a?Dt(e):Ot(e));return n}let f=_t(i,s.props??{});return s.type!==C.Fragment&&(f.ref=r?h:d),C.cloneElement(s,f)});return o.displayName=`${e}.Slot`,o}var Mt=Symbol.for("radix.slottable");var It=(e,o)=>{if("child"in e.props){let t=e.props.child;return C.isValidElement(t)?C.cloneElement(t,void 0,e.props.children(t.props.children)):null}return C.isValidElement(o)?o:null};function _t(e,o){let t={...o};for(let r in o){let n=e[r],i=o[r];/^on[A-Z]/.test(r)?n&&i?t[r]=(...a)=>{let u=i(...a);return n(...a),u}:n&&(t[r]=n):r==="style"?t[r]={...n,...i}:r==="className"&&(t[r]=[n,i].filter(Boolean).join(" "))}return{...e,...t}}function Tt(e){let o=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=o&&"isReactWarning"in o&&o.isReactWarning;return t?e.ref:(o=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=o&&"isReactWarning"in o&&o.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function Gt(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mt}var Lt=Symbol.for("react.lazy");function Oe(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Lt&&"_payload"in e&&Nt(e._payload)}function Nt(e){return typeof e=="object"&&e!==null&&"then"in e}var Ot=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Dt=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,ne=C[" use ".trim().toString()];import{jsx as jt}from"react/jsx-runtime";var Ft=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],q=Ft.reduce((e,o)=>{let t=De(`Primitive.${o}`),r=$e.forwardRef((n,i)=>{let{asChild:s,...a}=n,u=s?t:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),jt(u,{...a,ref:i})});return r.displayName=`Primitive.${o}`,{...e,[o]:r}},{});import*as D from"react";import{jsx as Vt}from"react/jsx-runtime";function je(e,o=[]){let t=[];function r(i,s){let a=D.createContext(s);a.displayName=i+"Context";let u=t.length;t=[...t,s];let d=f=>{let{scope:w,children:g,...x}=f,y=w?.[e]?.[u]||a,S=D.useMemo(()=>x,Object.values(x));return Vt(y.Provider,{value:S,children:g})};d.displayName=i+"Provider";function h(f,w){let g=w?.[e]?.[u]||a,x=D.useContext(g);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[d,h]}let n=()=>{let i=t.map(s=>D.createContext(s));return function(a){let u=a?.[e]||i;return D.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return n.scopeName=e,[r,Wt(n,...o)]}function Wt(...e){let o=e[0];if(e.length===1)return o;let t=()=>{let r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(i){let s=r.reduce((a,{useScope:u,scopeName:d})=>{let f=u(i)[`__scope${d}`];return{...a,...f}},{});return D.useMemo(()=>({[`__scope${o.scopeName}`]:s}),[s])}};return t.scopeName=o.scopeName,t}var sr=!!(typeof window<"u"&&window.document&&window.document.createElement);function Fe(e,o,{checkForDefaultPrevented:t=!0}={}){return function(n){if(e?.(n),t===!1||!n.defaultPrevented)return o?.(n)}}import*as M from"react";import*as Ve from"react";var se=globalThis?.document?Ve.useLayoutEffect:()=>{};import*as ie from"react";var Bt=M[" useInsertionEffect ".trim().toString()]||se;function We({prop:e,defaultProp:o,onChange:t=()=>{},caller:r}){let[n,i,s]=Ht({defaultProp:o,onChange:t}),a=e!==void 0,u=a?e:n;{let h=M.useRef(e!==void 0);M.useEffect(()=>{let f=h.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=a},[a,r])}let d=M.useCallback(h=>{if(a){let f=Ut(h)?h(e):h;f!==e&&s.current?.(f)}else i(h)},[a,e,i,s]);return[u,d]}function Ht({defaultProp:e,onChange:o}){let[t,r]=M.useState(e),n=M.useRef(t),i=M.useRef(o);return Bt(()=>{i.current=o},[o]),M.useEffect(()=>{n.current!==t&&(i.current?.(t),n.current=t)},[t,n]),[t,r,i]}function Ut(e){return typeof e=="function"}var cr=Symbol("RADIX:SYNC_STATE");import*as ae from"react";function Be(e){let o=ae.useRef({value:e,previous:e});return ae.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}import*as He from"react";function Ue(e){let[o,t]=He.useState(void 0);return se(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let i=n[0],s,a;if("borderBoxSize"in i){let u=i.borderBoxSize,d=Array.isArray(u)?u[0]:u;s=d.inlineSize,a=d.blockSize}else s=e.offsetWidth,a=e.offsetHeight;t({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else t(void 0)},[e]),o}var le={};Ge(le,{Label:()=>we,Root:()=>Xt});import*as Ye from"react";import{jsx as Yt}from"react/jsx-runtime";var qt="Label",we=Ye.forwardRef((e,o)=>Yt(q.label,{...e,ref:o,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));we.displayName=qt;var Xt=we;var Z={};Ge(Z,{Root:()=>Ze,Switch:()=>Ze,SwitchThumb:()=>Qe,Thumb:()=>Qe,createSwitchScope:()=>Kt,unstable_BubbleInput:()=>ve,unstable_Provider:()=>qe,unstable_SwitchBubbleInput:()=>ve,unstable_SwitchProvider:()=>qe,unstable_SwitchTrigger:()=>ye,unstable_Trigger:()=>ye});import*as A from"react";import{Fragment as Zt,jsx as B,jsxs as Jt}from"react/jsx-runtime";var ce="Switch",[Qt,Kt]=je(ce),[eo,xe]=Qt(ce);function qe(e){let{__scopeSwitch:o,checked:t,children:r,defaultChecked:n,disabled:i,form:s,name:a,onCheckedChange:u,required:d,value:h="on",internal_do_not_use_render:f}=e,[w,g]=We({prop:t,defaultProp:n??!1,onChange:u,caller:ce}),[x,y]=A.useState(null),[S,I]=A.useState(null),v=A.useRef(!1),N=x?!!s||!!x.closest("form"):!0,G={checked:w,setChecked:g,disabled:i,control:x,setControl:y,name:a,form:s,value:h,hasConsumerStoppedPropagationRef:v,required:d,defaultChecked:n,isFormControl:N,bubbleInput:S,setBubbleInput:I};return B(eo,{scope:o,...G,children:to(f)?f(G):r})}var Xe="SwitchTrigger",ye=A.forwardRef(({__scopeSwitch:e,onClick:o,...t},r)=>{let{value:n,disabled:i,checked:s,required:a,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:h,isFormControl:f,bubbleInput:w}=xe(Xe,e),g=X(r,u);return B(q.button,{type:"button",role:"switch","aria-checked":s,"aria-required":a,"data-state":et(s),"data-disabled":i?"":void 0,disabled:i,value:n,...t,ref:g,onClick:Fe(o,x=>{d(y=>!y),w&&f&&(h.current=x.isPropagationStopped(),h.current||x.stopPropagation())})})});ye.displayName=Xe;var Ze=A.forwardRef((e,o)=>{let{__scopeSwitch:t,name:r,checked:n,defaultChecked:i,required:s,disabled:a,value:u,onCheckedChange:d,form:h,...f}=e;return B(qe,{__scopeSwitch:t,checked:n,defaultChecked:i,disabled:a,required:s,onCheckedChange:d,name:r,form:h,value:u,internal_do_not_use_render:({isFormControl:w})=>Jt(Zt,{children:[B(ye,{...f,ref:o,__scopeSwitch:t}),w&&B(ve,{__scopeSwitch:t})]})})});Ze.displayName=ce;var Je="SwitchThumb",Qe=A.forwardRef((e,o)=>{let{__scopeSwitch:t,...r}=e,n=xe(Je,t);return B(q.span,{"data-state":et(n.checked),"data-disabled":n.disabled?"":void 0,...r,ref:o})});Qe.displayName=Je;var Ke="SwitchBubbleInput",ve=A.forwardRef(({__scopeSwitch:e,...o},t)=>{let{control:r,hasConsumerStoppedPropagationRef:n,checked:i,defaultChecked:s,required:a,disabled:u,name:d,value:h,form:f,bubbleInput:w,setBubbleInput:g}=xe(Ke,e),x=X(t,g),y=Be(i),S=Ue(r);A.useEffect(()=>{let v=w;if(!v)return;let N=window.HTMLInputElement.prototype,O=Object.getOwnPropertyDescriptor(N,"checked").set,j=!n.current;if(y!==i&&O){let _=new Event("click",{bubbles:j});O.call(v,i),v.dispatchEvent(_)}},[w,y,i,n]);let I=A.useRef(i);return B(q.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??I.current,required:a,disabled:u,name:d,value:h,form:f,...o,tabIndex:-1,ref:x,style:{...o.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});ve.displayName=Ke;function to(e){return typeof e=="function"}function et(e){return e?"checked":"unchecked"}function tt(e){var o,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(o=0;o{let t=new Array(e.length+o.length);for(let r=0;r({classGroupId:e,validator:o}),ct=(e=new Map,o=null,t)=>({nextPart:e,validators:o,classGroupId:t}),me="-",rt=[],no="arbitrary..",so=e=>{let o=ao(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return io(s);let a=s.split(me),u=a[0]===""&&a.length>1?1:0;return dt(a,u,o)},getConflictingClassGroupIds:(s,a)=>{if(a){let u=r[s],d=t[s];return u?d?oo(d,u):u:d||rt}return t[s]||rt}}},dt=(e,o,t)=>{if(e.length-o===0)return t.classGroupId;let n=e[o],i=t.nextPart.get(n);if(i){let d=dt(e,o+1,i);if(d)return d}let s=t.validators;if(s===null)return;let a=o===0?e.join(me):e.slice(o).join(me),u=s.length;for(let d=0;de.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let o=e.slice(1,-1),t=o.indexOf(":"),r=o.slice(0,t);return r?no+r:void 0})(),ao=e=>{let{theme:o,classGroups:t}=e;return lo(t,o)},lo=(e,o)=>{let t=ct();for(let r in e){let n=e[r];Se(n,t,r,o)}return t},Se=(e,o,t,r)=>{let n=e.length;for(let i=0;i{if(typeof e=="string"){uo(e,o,t);return}if(typeof e=="function"){mo(e,o,t,r);return}po(e,o,t,r)},uo=(e,o,t)=>{let r=e===""?o:ut(o,e);r.classGroupId=t},mo=(e,o,t,r)=>{if(fo(e)){Se(e(r),o,t,r);return}o.validators===null&&(o.validators=[]),o.validators.push(ro(t,e))},po=(e,o,t,r)=>{let n=Object.entries(e),i=n.length;for(let s=0;s{let t=e,r=o.split(me),n=r.length;for(let i=0;i"isThemeGetter"in e&&e.isThemeGetter===!0,bo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,t=Object.create(null),r=Object.create(null),n=(i,s)=>{t[i]=s,o++,o>e&&(o=0,r=t,t=Object.create(null))};return{get(i){let s=t[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return n(i,s),s},set(i,s){i in t?t[i]=s:n(i,s)}}},Re="!",nt=":",ho=[],st=(e,o,t,r,n)=>({modifiers:e,hasImportantModifier:o,baseClassName:t,maybePostfixModifierPosition:r,isExternal:n}),go=e=>{let{prefix:o,experimentalParseClassName:t}=e,r=n=>{let i=[],s=0,a=0,u=0,d,h=n.length;for(let y=0;yu?d-u:void 0;return st(i,g,w,x)};if(o){let n=o+nt,i=r;r=s=>s.startsWith(n)?i(s.slice(n.length)):st(ho,!1,s,void 0,!0)}if(t){let n=r;r=i=>t({className:i,parseClassName:n})}return r},wo=e=>{let o=new Map;return e.orderSensitiveModifiers.forEach((t,r)=>{o.set(t,1e6+r)}),t=>{let r=[],n=[];for(let i=0;i0&&(n.sort(),r.push(...n),n=[]),r.push(s)):n.push(s)}return n.length>0&&(n.sort(),r.push(...n)),r}},xo=e=>({cache:bo(e.cacheSize),parseClassName:go(e),sortModifiers:wo(e),postfixLookupClassGroupIds:yo(e),...so(e)}),yo=e=>{let o=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let r=0;r{let{parseClassName:t,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:i,postfixLookupClassGroupIds:s}=o,a=[],u=e.trim().split(vo),d="";for(let h=u.length-1;h>=0;h-=1){let f=u[h],{isExternal:w,modifiers:g,hasImportantModifier:x,baseClassName:y,maybePostfixModifierPosition:S}=t(f);if(w){d=f+(d.length>0?" "+d:d);continue}let I=!!S,v;if(I){let _=y.substring(0,S);v=r(_);let m=v&&s[v]?r(y):void 0;m&&m!==v&&(v=m,I=!1)}else v=r(y);if(!v){if(!I){d=f+(d.length>0?" "+d:d);continue}if(v=r(y),!v){d=f+(d.length>0?" "+d:d);continue}I=!1}let N=g.length===0?"":g.length===1?g[0]:i(g).join(":"),G=x?N+Re:N,O=G+v;if(a.indexOf(O)>-1)continue;a.push(O);let j=n(v,I);for(let _=0;_0?" "+d:d)}return d},Ro=(...e)=>{let o=0,t,r,n="";for(;o{if(typeof e=="string")return e;let o,t="";for(let r=0;r{let t,r,n,i,s=u=>{let d=o.reduce((h,f)=>f(h),e());return t=xo(d),r=t.cache.get,n=t.cache.set,i=a,a(u)},a=u=>{let d=r(u);if(d)return d;let h=ko(u,t);return n(u,h),h};return i=s,(...u)=>i(Ro(...u))},Co=[],k=e=>{let o=t=>t[e]||Co;return o.isThemeGetter=!0,o},pt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ft=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Po=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Eo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ao=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,F=e=>zo.test(e),b=e=>!!e&&!Number.isNaN(Number(e)),L=e=>!!e&&Number.isInteger(Number(e)),ke=e=>e.endsWith("%")&&b(e.slice(0,-1)),$=e=>Po.test(e),bt=()=>!0,_o=e=>Eo.test(e)&&!Ao.test(e),Ce=()=>!1,To=e=>Mo.test(e),Go=e=>Io.test(e),Lo=e=>!l(e)&&!c(e),No=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Oo=e=>V(e,wt,Ce),l=e=>pt.test(e),H=e=>V(e,xt,_o),it=e=>V(e,Ho,b),Do=e=>V(e,vt,bt),$o=e=>V(e,yt,Ce),at=e=>V(e,ht,Ce),jo=e=>V(e,gt,Go),de=e=>V(e,kt,To),c=e=>ft.test(e),J=e=>U(e,xt),Fo=e=>U(e,yt),lt=e=>U(e,ht),Vo=e=>U(e,wt),Wo=e=>U(e,gt),ue=e=>U(e,kt,!0),Bo=e=>U(e,vt,!0),V=(e,o,t)=>{let r=pt.exec(e);return r?r[1]?o(r[1]):t(r[2]):!1},U=(e,o,t=!1)=>{let r=ft.exec(e);return r?r[1]?o(r[1]):t:!1},ht=e=>e==="position"||e==="percentage",gt=e=>e==="image"||e==="url",wt=e=>e==="length"||e==="size"||e==="bg-size",xt=e=>e==="length",Ho=e=>e==="number",yt=e=>e==="family-name",vt=e=>e==="number"||e==="weight",kt=e=>e==="shadow";var Uo=()=>{let e=k("color"),o=k("font"),t=k("text"),r=k("font-weight"),n=k("tracking"),i=k("leading"),s=k("breakpoint"),a=k("container"),u=k("spacing"),d=k("radius"),h=k("shadow"),f=k("inset-shadow"),w=k("text-shadow"),g=k("drop-shadow"),x=k("blur"),y=k("perspective"),S=k("aspect"),I=k("ease"),v=k("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...G(),c,l],j=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],m=()=>[c,l,u],E=()=>[F,"full","auto",...m()],ze=()=>[L,"none","subgrid",c,l],Pe=()=>["auto",{span:["full",L,c,l]},L,c,l],K=()=>[L,"auto",c,l],Ee=()=>["auto","min","max","fr",c,l],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...m()],W=()=>[F,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],fe=()=>[F,"screen","full","dvw","lvw","svw","min","max","fit",...m()],be=()=>[F,"screen","full","lh","dvh","lvh","svh","min","max","fit",...m()],p=()=>[e,c,l],Ae=()=>[...G(),lt,at,{position:[c,l]}],Me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ie=()=>["auto","cover","contain",Vo,Oo,{size:[c,l]}],he=()=>[ke,J,H],z=()=>["","none","full",d,c,l],P=()=>["",b,J,H],ee=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[b,ke,lt,at],Te=()=>["","none",x,c,l],te=()=>["none",b,c,l],oe=()=>["none",b,c,l],ge=()=>[b,c,l],re=()=>[F,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$],breakpoint:[$],color:[bt],container:[$],"drop-shadow":[$],ease:["in","out","in-out"],font:[Lo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$],shadow:[$],spacing:["px",b],text:[$],"text-shadow":[$],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",F,l,c,S]}],container:["container"],"container-type":[{"@container":["","normal","size",c,l]}],"container-named":[No],columns:[{columns:[b,l,c,a]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[L,"auto",c,l]}],basis:[{basis:[F,"full","auto",a,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[b,F,"auto","initial","none",l]}],grow:[{grow:["",b,c,l]}],shrink:[{shrink:["",b,c,l]}],order:[{order:[L,"first","last","none",c,l]}],"grid-cols":[{"grid-cols":ze()}],"col-start-end":[{col:Pe()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":ze()}],"row-start-end":[{row:Pe()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ee()}],"auto-rows":[{"auto-rows":Ee()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pbs:[{pbs:m()}],pbe:[{pbe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],"inline-size":[{inline:["auto",...fe()]}],"min-inline-size":[{"min-inline":["auto",...fe()]}],"max-inline-size":[{"max-inline":["none",...fe()]}],"block-size":[{block:["auto",...be()]}],"min-block-size":[{"min-block":["auto",...be()]}],"max-block-size":[{"max-block":["none",...be()]}],w:[{w:[a,"screen",...W()]}],"min-w":[{"min-w":[a,"screen","none",...W()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",t,J,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Bo,Do]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ke,l]}],"font-family":[{font:[Fo,$o,o]}],"font-features":[{"font-features":[l]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,c,l]}],"line-clamp":[{"line-clamp":[b,"none",c,it]}],leading:[{leading:[i,...m()]}],"list-image":[{"list-image":["none",c,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",c,l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:p()}],"text-color":[{text:p()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[b,"from-font","auto",c,H]}],"text-decoration-color":[{decoration:p()}],"underline-offset":[{"underline-offset":[b,"auto",c,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"tab-size":[{tab:[L,c,l]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c,l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c,l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ae()}],"bg-repeat":[{bg:Me()}],"bg-size":[{bg:Ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},L,c,l],radial:["",c,l],conic:[L,c,l]},Wo,jo]}],"bg-color":[{bg:p()}],"gradient-from-pos":[{from:he()}],"gradient-via-pos":[{via:he()}],"gradient-to-pos":[{to:he()}],"gradient-from":[{from:p()}],"gradient-via":[{via:p()}],"gradient-to":[{to:p()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:p()}],"border-color-x":[{"border-x":p()}],"border-color-y":[{"border-y":p()}],"border-color-s":[{"border-s":p()}],"border-color-e":[{"border-e":p()}],"border-color-bs":[{"border-bs":p()}],"border-color-be":[{"border-be":p()}],"border-color-t":[{"border-t":p()}],"border-color-r":[{"border-r":p()}],"border-color-b":[{"border-b":p()}],"border-color-l":[{"border-l":p()}],"divide-color":[{divide:p()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[b,c,l]}],"outline-w":[{outline:["",b,J,H]}],"outline-color":[{outline:p()}],shadow:[{shadow:["","none",h,ue,de]}],"shadow-color":[{shadow:p()}],"inset-shadow":[{"inset-shadow":["none",f,ue,de]}],"inset-shadow-color":[{"inset-shadow":p()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:p()}],"ring-offset-w":[{"ring-offset":[b,H]}],"ring-offset-color":[{"ring-offset":p()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":p()}],"text-shadow":[{"text-shadow":["none",w,ue,de]}],"text-shadow-color":[{"text-shadow":p()}],opacity:[{opacity:[b,c,l]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[b]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":p()}],"mask-image-linear-to-color":[{"mask-linear-to":p()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":p()}],"mask-image-t-to-color":[{"mask-t-to":p()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":p()}],"mask-image-r-to-color":[{"mask-r-to":p()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":p()}],"mask-image-b-to-color":[{"mask-b-to":p()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":p()}],"mask-image-l-to-color":[{"mask-l-to":p()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":p()}],"mask-image-x-to-color":[{"mask-x-to":p()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":p()}],"mask-image-y-to-color":[{"mask-y-to":p()}],"mask-image-radial":[{"mask-radial":[c,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":p()}],"mask-image-radial-to-color":[{"mask-radial-to":p()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[b]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":p()}],"mask-image-conic-to-color":[{"mask-conic-to":p()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ae()}],"mask-repeat":[{mask:Me()}],"mask-size":[{mask:Ie()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",c,l]}],filter:[{filter:["","none",c,l]}],blur:[{blur:Te()}],brightness:[{brightness:[b,c,l]}],contrast:[{contrast:[b,c,l]}],"drop-shadow":[{"drop-shadow":["","none",g,ue,de]}],"drop-shadow-color":[{"drop-shadow":p()}],grayscale:[{grayscale:["",b,c,l]}],"hue-rotate":[{"hue-rotate":[b,c,l]}],invert:[{invert:["",b,c,l]}],saturate:[{saturate:[b,c,l]}],sepia:[{sepia:["",b,c,l]}],"backdrop-filter":[{"backdrop-filter":["","none",c,l]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[b,c,l]}],"backdrop-contrast":[{"backdrop-contrast":[b,c,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",b,c,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b,c,l]}],"backdrop-invert":[{"backdrop-invert":["",b,c,l]}],"backdrop-opacity":[{"backdrop-opacity":[b,c,l]}],"backdrop-saturate":[{"backdrop-saturate":[b,c,l]}],"backdrop-sepia":[{"backdrop-sepia":["",b,c,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",c,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[b,"initial",c,l]}],ease:[{ease:["linear","initial",I,c,l]}],delay:[{delay:[b,c,l]}],animate:[{animate:["none",v,c,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,c,l]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[c,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"translate-none":["translate-none"],zoom:[{zoom:[L,c,l]}],accent:[{accent:p()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:p()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c,l]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":p()}],"scrollbar-track-color":[{"scrollbar-track":p()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mbs":[{"scroll-mbs":m()}],"scroll-mbe":[{"scroll-mbe":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pbs":[{"scroll-pbs":m()}],"scroll-pbe":[{"scroll-pbe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c,l]}],fill:[{fill:["none",...p()]}],"stroke-w":[{stroke:[b,J,H,it]}],stroke:[{stroke:["none",...p()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Rt=So(Uo);function Q(...e){return Rt(ot(e))}import{jsx as Yo}from"react/jsx-runtime";function St({className:e,...o}){return Yo(le.Root,{"data-slot":"label",className:Q("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...o})}import{jsx as Ct}from"react/jsx-runtime";function zt({className:e,size:o="default",...t}){return Ct(Z.Root,{"data-slot":"switch","data-size":o,className:Q("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",e),...t,children:Ct(Z.Thumb,{"data-slot":"switch-thumb",className:Q("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")})})}import{jsx as Pt,jsxs as Xo}from"react/jsx-runtime";function qo(){return Xo("div",{className:"flex items-center space-x-2",children:[Pt(zt,{id:"airplane-mode"}),Pt(St,{htmlFor:"airplane-mode",children:"Airplane Mode"})]})}export{qo as default}; diff --git a/b/86388428e46a40d44f254623b51f5a8b0dddbf0ee1bc174b78d55a015056658d b/b/86388428e46a40d44f254623b51f5a8b0dddbf0ee1bc174b78d55a015056658d new file mode 100644 index 0000000000000000000000000000000000000000..1ad8c884b8b358193d04850a8ffef62a6dc4cccb --- /dev/null +++ b/b/86388428e46a40d44f254623b51f5a8b0dddbf0ee1bc174b78d55a015056658d @@ -0,0 +1,73 @@ +Kokoro golden oracle (WASM) + + +
init…
+ diff --git a/b/864cc26ae939cca30270b86f52ced275fe965500791c7dbc1eb4b8efb44afd7e b/b/864cc26ae939cca30270b86f52ced275fe965500791c7dbc1eb4b8efb44afd7e new file mode 100644 index 0000000000000000000000000000000000000000..80beb38fc73df4acc28cff4b3db8e289094e7787 --- /dev/null +++ b/b/864cc26ae939cca30270b86f52ced275fe965500791c7dbc1eb4b8efb44afd7e @@ -0,0 +1,150 @@ +"use client" + +import * as React from "react" +import { Form, Field as FormischField, reset, useForm } from "@formisch/react" +import type { SubmitHandler } from "@formisch/react" +import { toast } from "sonner" +import * as v from "valibot" + +import { Button } from "@/registry/new-york-v4/ui/button" +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + Field, + FieldContent, + FieldDescription, + FieldError, + FieldGroup, + FieldLabel, +} from "@/registry/new-york-v4/ui/field" +import { + Select, + SelectContent, + SelectItem, + SelectSeparator, + SelectTrigger, + SelectValue, +} from "@/registry/new-york-v4/ui/select" + +const spokenLanguages = [ + { label: "English", value: "en" }, + { label: "Spanish", value: "es" }, + { label: "French", value: "fr" }, + { label: "German", value: "de" }, + { label: "Italian", value: "it" }, + { label: "Chinese", value: "zh" }, + { label: "Japanese", value: "ja" }, +] as const + +const FormSchema = v.object({ + language: v.pipe( + v.string(), + v.minLength(1, "Please select your spoken language."), + v.check( + (value) => value !== "auto", + "Auto-detection is not allowed. Please select a specific language." + ) + ), +}) + +export default function FormFormischSelect() { + const form = useForm({ + schema: FormSchema, + initialInput: { + language: "", + }, + }) + + const handleSubmit: SubmitHandler = (output) => { + toast("You submitted the following values:", { + description: ( +
+          {JSON.stringify(output, null, 2)}
+        
+ ), + position: "bottom-right", + classNames: { + content: "flex flex-col gap-2", + }, + style: { + "--border-radius": "calc(var(--radius) + 4px)", + } as React.CSSProperties, + }) + } + + return ( + + + Language Preferences + + Select your preferred spoken language. + + + +
+ + + {(field) => ( + + + + Spoken Language + + + For best results, select the language you speak. + + {field.errors && ( + ({ message }))} + /> + )} + + + + )} + + +
+
+ + + + + + +
+ ) +} diff --git a/b/864fd0c822717f8bdb65feb4566b59afa79484e79c82e66acc126428e45e5040 b/b/864fd0c822717f8bdb65feb4566b59afa79484e79c82e66acc126428e45e5040 new file mode 100644 index 0000000000000000000000000000000000000000..a93c0eb3e211977a99d129131eea7c8ad87aceff --- /dev/null +++ b/b/864fd0c822717f8bdb65feb4566b59afa79484e79c82e66acc126428e45e5040 @@ -0,0 +1 @@ +"use client";import{memo as i}from"react";import{jsx as t,jsxs as l}from"react/jsx-runtime";var o=i(({children:a,className:r="",colors:e=["#FF0080","#7928CA","#0070F3","#38bdf8"],speed:n=1})=>{let s={backgroundImage:`linear-gradient(135deg, ${e.join(", ")}, ${e[0]})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animationDuration:`${10/n}s`};return l("span",{className:`relative inline-block ${r}`,children:[t("span",{className:"sr-only",children:a}),t("span",{className:"animate-aurora relative bg-size-[200%_auto] bg-clip-text text-transparent",style:s,"aria-hidden":"true",children:a})]})});o.displayName="AuroraText";export{o as AuroraText}; diff --git a/b/865319df9d8df0c86e93492a86b2c6cebabf1e5496e9683c893042446c3b99c0 b/b/865319df9d8df0c86e93492a86b2c6cebabf1e5496e9683c893042446c3b99c0 new file mode 100644 index 0000000000000000000000000000000000000000..7d7d73a96c8d640224ada58f55634ba730edab80 --- /dev/null +++ b/b/865319df9d8df0c86e93492a86b2c6cebabf1e5496e9683c893042446c3b99c0 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.input-group-button", + "name": "input-group-button", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/input-group-button.json", + "did": "did:holo:sha256:04adaf9d5dc35a628c7078d0d93ac3a2441f3bdfec5bd5bf7d2ed5e1617d781e", + "import": "holo://sha256:dc5fd69b36a95ddb6abb00c541cfe29e9424d89dbdcaf240b93703d9880863e1", + "integrity": "sha256-3F/WmzapXdtquwDFQc/inpQk2J29yvJAuTcD2YgIY+E=", + "kappa": "sha256:04adaf9d5dc35a628c7078d0d93ac3a2441f3bdfec5bd5bf7d2ed5e1617d781e", + "moduleKappa": "sha256:dc5fd69b36a95ddb6abb00c541cfe29e9424d89dbdcaf240b93703d9880863e1", + "renderExport": "default", + "source": "registry/new-york-v4/examples/input-group-button.tsx", + "module": "vendor/components/input-group-button.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/86621c4331d93efdda9b0b6010085d137cefd835e7633821903579a1c7b823d3 b/b/86621c4331d93efdda9b0b6010085d137cefd835e7633821903579a1c7b823d3 new file mode 100644 index 0000000000000000000000000000000000000000..7e63eba7172118d36b1f3eb0adc42e91173ff654 --- /dev/null +++ b/b/86621c4331d93efdda9b0b6010085d137cefd835e7633821903579a1c7b823d3 @@ -0,0 +1,51 @@ +var Ma=Object.defineProperty;var Se=(e,t)=>{for(var a in t)Ma(e,a,{get:t[a],enumerable:!0})};import{forwardRef as Da,createElement as Ta}from"react";var ze=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),le=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as Ra,createElement as Ee}from"react";var Ve={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var We=Ra(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:l="",children:r,iconNode:d,...c},p)=>Ee("svg",{ref:p,...Ve,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:le("lucide",l),...c},[...d.map(([f,L])=>Ee(f,L)),...Array.isArray(r)?r:[r]]));var Ne=(e,t)=>{let a=Da(({className:o,...l},r)=>Ta(We,{ref:r,iconNode:t,className:le(`lucide-${ze(e)}`,o),...l}));return a.displayName=`${e}`,a};var j=Ne("GalleryVerticalEnd",[["path",{d:"M7 2h10",key:"nczekb"}],["path",{d:"M5 6h14",key:"u2x4p"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}]]);function Xe(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),$e=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),ue="-",Ke=[],Ua="arbitrary..",Ha=e=>{let t=za(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return Ga(d);let c=d.split(ue),p=c[0]===""&&c.length>1?1:0;return Ye(c,p,t)},getConflictingClassGroupIds:(d,c)=>{if(c){let p=o[d],f=a[d];return p?f?qa(f,p):p:f||Ke}return a[d]||Ke}}},Ye=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let l=e[t],r=a.nextPart.get(l);if(r){let f=Ye(e,t+1,r);if(f)return f}let d=a.validators;if(d===null)return;let c=t===0?e.join(ue):e.slice(t).join(ue),p=d.length;for(let f=0;fe.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?Ua+o:void 0})(),za=e=>{let{theme:t,classGroups:a}=e;return Va(a,t)},Va=(e,t)=>{let a=$e();for(let o in e){let l=e[o];be(l,a,o,t)}return a},be=(e,t,a,o)=>{let l=e.length;for(let r=0;r{if(typeof e=="string"){Wa(e,t,a);return}if(typeof e=="function"){Na(e,t,a,o);return}Xa(e,t,a,o)},Wa=(e,t,a)=>{let o=e===""?t:ea(t,e);o.classGroupId=a},Na=(e,t,a,o)=>{if(Ka(e)){be(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Oa(a,e))},Xa=(e,t,a,o)=>{let l=Object.entries(e),r=l.length;for(let d=0;d{let a=e,o=t.split(ue),l=o.length;for(let r=0;r"isThemeGetter"in e&&e.isThemeGetter===!0,Za=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),l=(r,d)=>{a[r]=d,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(r){let d=a[r];if(d!==void 0)return d;if((d=o[r])!==void 0)return l(r,d),d},set(r,d){r in a?a[r]=d:l(r,d)}}},ke="!",Ze=":",Ja=[],Je=(e,t,a,o,l)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:l}),_a=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=l=>{let r=[],d=0,c=0,p=0,f,L=l.length;for(let w=0;wp?f-p:void 0;return Je(r,h,g,v)};if(t){let l=t+Ze,r=o;o=d=>d.startsWith(l)?r(d.slice(l.length)):Je(Ja,!1,d,void 0,!0)}if(a){let l=o;o=r=>a({className:r,parseClassName:l})}return o},ja=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],l=[];for(let r=0;r0&&(l.sort(),o.push(...l),l=[]),o.push(d)):l.push(d)}return l.length>0&&(l.sort(),o.push(...l)),o}},Qa=e=>({cache:Za(e.cacheSize),parseClassName:_a(e),sortModifiers:ja(e),postfixLookupClassGroupIds:$a(e),...Ha(e)}),$a=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:l,sortModifiers:r,postfixLookupClassGroupIds:d}=t,c=[],p=e.trim().split(Ya),f="";for(let L=p.length-1;L>=0;L-=1){let x=p[L],{isExternal:g,modifiers:h,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:k}=a(x);if(g){f=x+(f.length>0?" "+f:f);continue}let G=!!k,F;if(G){let D=w.substring(0,k);F=o(D);let i=F&&d[F]?o(w):void 0;i&&i!==F&&(F=i,G=!1)}else F=o(w);if(!F){if(!G){f=x+(f.length>0?" "+f:f);continue}if(F=o(w),!F){f=x+(f.length>0?" "+f:f);continue}G=!1}let _=h.length===0?"":h.length===1?h[0]:r(h).join(":"),W=v?_+ke:_,N=W+F;if(c.indexOf(N)>-1)continue;c.push(N);let X=l(F,G);for(let D=0;D0?" "+f:f)}return f},at=(...e)=>{let t=0,a,o,l="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,l,r,d=p=>{let f=t.reduce((L,x)=>x(L),e());return a=Qa(f),o=a.cache.get,l=a.cache.set,r=c,c(p)},c=p=>{let f=o(p);if(f)return f;let L=et(p,a);return l(p,L),L};return r=d,(...p)=>r(at(...p))},ot=[],I=e=>{let t=a=>a[e]||ot;return t.isThemeGetter=!0,t},ta=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,oa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,rt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ut=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,st=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ft=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,q=e=>lt.test(e),m=e=>!!e&&!Number.isNaN(Number(e)),R=e=>!!e&&Number.isInteger(Number(e)),we=e=>e.endsWith("%")&&m(e.slice(0,-1)),T=e=>rt.test(e),la=()=>!0,it=e=>dt.test(e)&&!ut.test(e),Pe=()=>!1,nt=e=>st.test(e),ct=e=>ft.test(e),pt=e=>!u(e)&&!s(e),mt=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Lt=e=>O(e,ua,Pe),u=e=>ta.test(e),V=e=>O(e,sa,it),_e=e=>O(e,kt,m),xt=e=>O(e,ia,la),It=e=>O(e,fa,Pe),je=e=>O(e,ra,Pe),gt=e=>O(e,da,ct),re=e=>O(e,na,nt),s=e=>oa.test(e),Q=e=>E(e,sa),Ct=e=>E(e,fa),Qe=e=>E(e,ra),ht=e=>E(e,ua),St=e=>E(e,da),de=e=>E(e,na,!0),wt=e=>E(e,ia,!0),O=(e,t,a)=>{let o=ta.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},E=(e,t,a=!1)=>{let o=oa.exec(e);return o?o[1]?t(o[1]):a:!1},ra=e=>e==="position"||e==="percentage",da=e=>e==="image"||e==="url",ua=e=>e==="length"||e==="size"||e==="bg-size",sa=e=>e==="length",kt=e=>e==="number",fa=e=>e==="family-name",ia=e=>e==="number"||e==="weight",na=e=>e==="shadow";var bt=()=>{let e=I("color"),t=I("font"),a=I("text"),o=I("font-weight"),l=I("tracking"),r=I("leading"),d=I("breakpoint"),c=I("container"),p=I("spacing"),f=I("radius"),L=I("shadow"),x=I("inset-shadow"),g=I("text-shadow"),h=I("drop-shadow"),v=I("blur"),w=I("perspective"),k=I("aspect"),G=I("ease"),F=I("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...W(),s,u],X=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],i=()=>[s,u,p],B=()=>[q,"full","auto",...i()],Re=()=>[R,"none","subgrid",s,u],De=()=>["auto",{span:["full",R,s,u]},R,s,u],Y=()=>[R,"auto",s,u],Te=()=>["auto","min","max","fr",s,u],xe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...i()],z=()=>[q,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],Ie=()=>[q,"screen","full","dvw","lvw","svw","min","max","fit",...i()],ge=()=>[q,"screen","full","lh","dvh","lvh","svh","min","max","fit",...i()],n=()=>[e,s,u],qe=()=>[...W(),Qe,je,{position:[s,u]}],Oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ue=()=>["auto","cover","contain",ht,Lt,{size:[s,u]}],Ce=()=>[we,Q,V],b=()=>["","none","full",f,s,u],P=()=>["",m,Q,V],ee=()=>["solid","dashed","dotted","double"],He=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[m,we,Qe,je],Ge=()=>["","none",v,s,u],ae=()=>["none",m,s,u],te=()=>["none",m,s,u],he=()=>[m,s,u],oe=()=>[q,"full",...i()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[T],breakpoint:[T],color:[la],container:[T],"drop-shadow":[T],ease:["in","out","in-out"],font:[pt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[T],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[T],shadow:[T],spacing:["px",m],text:[T],"text-shadow":[T],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",q,u,s,k]}],container:["container"],"container-type":[{"@container":["","normal","size",s,u]}],"container-named":[mt],columns:[{columns:[m,u,s,c]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[R,"auto",s,u]}],basis:[{basis:[q,"full","auto",c,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m,q,"auto","initial","none",u]}],grow:[{grow:["",m,s,u]}],shrink:[{shrink:["",m,s,u]}],order:[{order:[R,"first","last","none",s,u]}],"grid-cols":[{"grid-cols":Re()}],"col-start-end":[{col:De()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":Re()}],"row-start-end":[{row:De()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Te()}],"auto-rows":[{"auto-rows":Te()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...xe(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...xe()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":xe()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:i()}],px:[{px:i()}],py:[{py:i()}],ps:[{ps:i()}],pe:[{pe:i()}],pbs:[{pbs:i()}],pbe:[{pbe:i()}],pt:[{pt:i()}],pr:[{pr:i()}],pb:[{pb:i()}],pl:[{pl:i()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],"inline-size":[{inline:["auto",...Ie()]}],"min-inline-size":[{"min-inline":["auto",...Ie()]}],"max-inline-size":[{"max-inline":["none",...Ie()]}],"block-size":[{block:["auto",...ge()]}],"min-block-size":[{"min-block":["auto",...ge()]}],"max-block-size":[{"max-block":["none",...ge()]}],w:[{w:[c,"screen",...z()]}],"min-w":[{"min-w":[c,"screen","none",...z()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[d]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",a,Q,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,wt,xt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",we,u]}],"font-family":[{font:[Ct,It,t]}],"font-features":[{"font-features":[u]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,s,u]}],"line-clamp":[{"line-clamp":[m,"none",s,_e]}],leading:[{leading:[r,...i()]}],"list-image":[{"list-image":["none",s,u]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",s,u]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:n()}],"text-color":[{text:n()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[m,"from-font","auto",s,V]}],"text-decoration-color":[{decoration:n()}],"underline-offset":[{"underline-offset":[m,"auto",s,u]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:i()}],"tab-size":[{tab:[R,s,u]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s,u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s,u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:qe()}],"bg-repeat":[{bg:Oe()}],"bg-size":[{bg:Ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},R,s,u],radial:["",s,u],conic:[R,s,u]},St,gt]}],"bg-color":[{bg:n()}],"gradient-from-pos":[{from:Ce()}],"gradient-via-pos":[{via:Ce()}],"gradient-to-pos":[{to:Ce()}],"gradient-from":[{from:n()}],"gradient-via":[{via:n()}],"gradient-to":[{to:n()}],rounded:[{rounded:b()}],"rounded-s":[{"rounded-s":b()}],"rounded-e":[{"rounded-e":b()}],"rounded-t":[{"rounded-t":b()}],"rounded-r":[{"rounded-r":b()}],"rounded-b":[{"rounded-b":b()}],"rounded-l":[{"rounded-l":b()}],"rounded-ss":[{"rounded-ss":b()}],"rounded-se":[{"rounded-se":b()}],"rounded-ee":[{"rounded-ee":b()}],"rounded-es":[{"rounded-es":b()}],"rounded-tl":[{"rounded-tl":b()}],"rounded-tr":[{"rounded-tr":b()}],"rounded-br":[{"rounded-br":b()}],"rounded-bl":[{"rounded-bl":b()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:n()}],"border-color-x":[{"border-x":n()}],"border-color-y":[{"border-y":n()}],"border-color-s":[{"border-s":n()}],"border-color-e":[{"border-e":n()}],"border-color-bs":[{"border-bs":n()}],"border-color-be":[{"border-be":n()}],"border-color-t":[{"border-t":n()}],"border-color-r":[{"border-r":n()}],"border-color-b":[{"border-b":n()}],"border-color-l":[{"border-l":n()}],"divide-color":[{divide:n()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m,s,u]}],"outline-w":[{outline:["",m,Q,V]}],"outline-color":[{outline:n()}],shadow:[{shadow:["","none",L,de,re]}],"shadow-color":[{shadow:n()}],"inset-shadow":[{"inset-shadow":["none",x,de,re]}],"inset-shadow-color":[{"inset-shadow":n()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:n()}],"ring-offset-w":[{"ring-offset":[m,V]}],"ring-offset-color":[{"ring-offset":n()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":n()}],"text-shadow":[{"text-shadow":["none",g,de,re]}],"text-shadow-color":[{"text-shadow":n()}],opacity:[{opacity:[m,s,u]}],"mix-blend":[{"mix-blend":[...He(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":He()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[m]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":n()}],"mask-image-linear-to-color":[{"mask-linear-to":n()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":n()}],"mask-image-t-to-color":[{"mask-t-to":n()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":n()}],"mask-image-r-to-color":[{"mask-r-to":n()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":n()}],"mask-image-b-to-color":[{"mask-b-to":n()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":n()}],"mask-image-l-to-color":[{"mask-l-to":n()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":n()}],"mask-image-x-to-color":[{"mask-x-to":n()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":n()}],"mask-image-y-to-color":[{"mask-y-to":n()}],"mask-image-radial":[{"mask-radial":[s,u]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":n()}],"mask-image-radial-to-color":[{"mask-radial-to":n()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":W()}],"mask-image-conic-pos":[{"mask-conic":[m]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":n()}],"mask-image-conic-to-color":[{"mask-conic-to":n()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:qe()}],"mask-repeat":[{mask:Oe()}],"mask-size":[{mask:Ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",s,u]}],filter:[{filter:["","none",s,u]}],blur:[{blur:Ge()}],brightness:[{brightness:[m,s,u]}],contrast:[{contrast:[m,s,u]}],"drop-shadow":[{"drop-shadow":["","none",h,de,re]}],"drop-shadow-color":[{"drop-shadow":n()}],grayscale:[{grayscale:["",m,s,u]}],"hue-rotate":[{"hue-rotate":[m,s,u]}],invert:[{invert:["",m,s,u]}],saturate:[{saturate:[m,s,u]}],sepia:[{sepia:["",m,s,u]}],"backdrop-filter":[{"backdrop-filter":["","none",s,u]}],"backdrop-blur":[{"backdrop-blur":Ge()}],"backdrop-brightness":[{"backdrop-brightness":[m,s,u]}],"backdrop-contrast":[{"backdrop-contrast":[m,s,u]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m,s,u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m,s,u]}],"backdrop-invert":[{"backdrop-invert":["",m,s,u]}],"backdrop-opacity":[{"backdrop-opacity":[m,s,u]}],"backdrop-saturate":[{"backdrop-saturate":[m,s,u]}],"backdrop-sepia":[{"backdrop-sepia":["",m,s,u]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":i()}],"border-spacing-x":[{"border-spacing-x":i()}],"border-spacing-y":[{"border-spacing-y":i()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",s,u]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m,"initial",s,u]}],ease:[{ease:["linear","initial",G,s,u]}],delay:[{delay:[m,s,u]}],animate:[{animate:["none",F,s,u]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,s,u]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[s,u,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],zoom:[{zoom:[R,s,u]}],accent:[{accent:n()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:n()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",s,u]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":n()}],"scrollbar-track-color":[{"scrollbar-track":n()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":i()}],"scroll-mx":[{"scroll-mx":i()}],"scroll-my":[{"scroll-my":i()}],"scroll-ms":[{"scroll-ms":i()}],"scroll-me":[{"scroll-me":i()}],"scroll-mbs":[{"scroll-mbs":i()}],"scroll-mbe":[{"scroll-mbe":i()}],"scroll-mt":[{"scroll-mt":i()}],"scroll-mr":[{"scroll-mr":i()}],"scroll-mb":[{"scroll-mb":i()}],"scroll-ml":[{"scroll-ml":i()}],"scroll-p":[{"scroll-p":i()}],"scroll-px":[{"scroll-px":i()}],"scroll-py":[{"scroll-py":i()}],"scroll-ps":[{"scroll-ps":i()}],"scroll-pe":[{"scroll-pe":i()}],"scroll-pbs":[{"scroll-pbs":i()}],"scroll-pbe":[{"scroll-pbe":i()}],"scroll-pt":[{"scroll-pt":i()}],"scroll-pr":[{"scroll-pr":i()}],"scroll-pb":[{"scroll-pb":i()}],"scroll-pl":[{"scroll-pl":i()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",s,u]}],fill:[{fill:["none",...n()]}],"stroke-w":[{stroke:[m,Q,V,_e]}],stroke:[{stroke:["none",...n()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var se=tt(bt);function ca(...e){return se(Z(e))}var pa=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ma=Z,fe=(e,t)=>a=>{var o;if(t?.variants==null)return ma(e,a?.class,a?.className);let{variants:l,defaultVariants:r}=t,d=Object.keys(l).map(f=>{let L=a?.[f],x=r?.[f];if(L===null)return null;let g=pa(L)||pa(x);return l[f][g]}),c=a&&Object.entries(a).reduce((f,L)=>{let[x,g]=L;return g===void 0||(f[x]=g),f},{}),p=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((f,L)=>{let{class:x,className:g,...h}=L;return Object.entries(h).every(v=>{let[w,k]=v;return Array.isArray(k)?k.includes({...r,...c}[w]):{...r,...c}[w]===k})?[...f,x,g]:f},[]);return ma(e,d,p,a?.class,a?.className)};import*as Sa from"react";import*as Ot from"react-dom";var ce={};Se(ce,{Root:()=>At,Slot:()=>At,Slottable:()=>yt,createSlot:()=>ne,createSlottable:()=>ha});import*as S from"react";import*as xa from"react";function La(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pt(...e){return t=>{let a=!1,o=e.map(l=>{let r=La(l,t);return!a&&typeof r=="function"&&(a=!0),r});if(a)return()=>{for(let l=0;l{let{children:l,...r}=a,d=null,c=!1,p=[];ga(l)&&typeof ie=="function"&&(l=ie(l._payload)),S.Children.forEach(l,g=>{if(Mt(g)){c=!0;let h=g,v="child"in h.props?h.props.child:h.props.children;ga(v)&&typeof ie=="function"&&(v=ie(v._payload)),d=Ft(h,v),p.push(d?.props?.children)}else p.push(g)}),d?d=S.cloneElement(d,void 0,p):!c&&S.Children.count(l)===1&&S.isValidElement(l)&&(d=l);let f=d?vt(d):void 0,L=Ia(o,f);if(!d){if(l||l===0)throw new Error(c?qt(e):Tt(e));return l}let x=Bt(r,d.props??{});return d.type!==S.Fragment&&(x.ref=o?L:f),S.cloneElement(d,x)});return t.displayName=`${e}.Slot`,t}var At=ne("Slot"),Ca=Symbol.for("radix.slottable");function ha(e){let t=a=>"child"in a?a.children(a.child):a.children;return t.displayName=`${e}.Slottable`,t.__radixId=Ca,t}var yt=ha("Slottable"),Ft=(e,t)=>{if("child"in e.props){let a=e.props.child;return S.isValidElement(a)?S.cloneElement(a,void 0,e.props.children(a.props.children)):null}return S.isValidElement(t)?t:null};function Bt(e,t){let a={...t};for(let o in t){let l=e[o],r=t[o];/^on[A-Z]/.test(o)?l&&r?a[o]=(...c)=>{let p=r(...c);return l(...c),p}:l&&(a[o]=l):o==="style"?a[o]={...l,...r}:o==="className"&&(a[o]=[l,r].filter(Boolean).join(" "))}return{...e,...a}}function vt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function Mt(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ca}var Rt=Symbol.for("react.lazy");function ga(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Rt&&"_payload"in e&&Dt(e._payload)}function Dt(e){return typeof e=="object"&&e!==null&&"then"in e}var Tt=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,qt=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,ie=S[" use ".trim().toString()];import{jsx as Ut}from"react/jsx-runtime";var Ht=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pe=Ht.reduce((e,t)=>{let a=ne(`Primitive.${t}`),o=Sa.forwardRef((l,r)=>{let{asChild:d,...c}=l,p=d?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Ut(p,{...c,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});var me={};Se(me,{Label:()=>Ae,Root:()=>Vt});import*as wa from"react";import{jsx as Gt}from"react/jsx-runtime";var zt="Label",Ae=wa.forwardRef((e,t)=>Gt(pe.label,{...e,ref:t,onMouseDown:a=>{a.target.closest("button, input, select, textarea")||(e.onMouseDown?.(a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));Ae.displayName=zt;var Vt=Ae;var Le={};Se(Le,{Root:()=>Kt,Separator:()=>ye});import*as ba from"react";import{jsx as Et}from"react/jsx-runtime";var Wt="Separator",ka="horizontal",Nt=["horizontal","vertical"],ye=ba.forwardRef((e,t)=>{let{decorative:a,orientation:o=ka,...l}=e,r=Xt(o)?o:ka,c=a?{role:"none"}:{"aria-orientation":r==="vertical"?r:void 0,role:"separator"};return Et(pe.div,{"data-orientation":r,...c,...l,ref:t})});ye.displayName=Wt;function Xt(e){return Nt.includes(e)}var Kt=ye;function A(...e){return se(Z(e))}import{jsx as Jt}from"react/jsx-runtime";var Zt=fe("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Fe({className:e,variant:t="default",size:a="default",asChild:o=!1,...l}){let r=o?ce.Root:"button";return Jt(r,{"data-slot":"button","data-variant":t,"data-size":a,className:A(Zt({variant:t,size:a,className:e})),...l})}import{useMemo as Qo}from"react";import{jsx as _t}from"react/jsx-runtime";function Pa({className:e,...t}){return _t(me.Root,{"data-slot":"label",className:A("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}import{jsx as jt}from"react/jsx-runtime";function Aa({className:e,orientation:t="horizontal",decorative:a=!0,...o}){return jt(Le.Root,{"data-slot":"separator",decorative:a,orientation:t,className:A("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...o})}import{jsx as J,jsxs as $t}from"react/jsx-runtime";function ya({className:e,...t}){return J("div",{"data-slot":"field-group",className:A("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...t})}var Qt=fe("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function $({className:e,orientation:t="vertical",...a}){return J("div",{role:"group","data-slot":"field","data-orientation":t,className:A(Qt({orientation:t}),e),...a})}function Be({className:e,...t}){return J(Pa,{"data-slot":"field-label",className:A("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 dark:has-data-[state=checked]:bg-primary/10",e),...t})}function Fa({className:e,...t}){return J("p",{"data-slot":"field-description",className:A("text-sm leading-normal font-normal text-muted-foreground group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...t})}function Ba({children:e,className:t,...a}){return $t("div",{"data-slot":"field-separator","data-content":!!e,className:A("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",t),...a,children:[J(Aa,{className:"absolute inset-0 top-1/2"}),e&&J("span",{className:"relative mx-auto block w-fit bg-background px-2 text-muted-foreground","data-slot":"field-separator-content",children:e})]})}import{jsx as Yt}from"react/jsx-runtime";function ve({className:e,type:t,...a}){return Yt("input",{type:t,"data-slot":"input",className:A("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...a})}import{jsx as y,jsxs as U}from"react/jsx-runtime";function va({className:e,...t}){return y("form",{className:ca("flex flex-col gap-6",e),...t,children:U(ya,{children:[U("div",{className:"flex flex-col items-center gap-1 text-center",children:[y("h1",{className:"text-2xl font-bold",children:"Login to your account"}),y("p",{className:"text-sm text-balance text-muted-foreground",children:"Enter your email below to login to your account"})]}),U($,{children:[y(Be,{htmlFor:"email",children:"Email"}),y(ve,{id:"email",type:"email",placeholder:"m@example.com",required:!0})]}),U($,{children:[U("div",{className:"flex items-center",children:[y(Be,{htmlFor:"password",children:"Password"}),y("a",{href:"#",className:"ml-auto text-sm underline-offset-4 hover:underline",children:"Forgot your password?"})]}),y(ve,{id:"password",type:"password",required:!0})]}),y($,{children:y(Fe,{type:"submit",children:"Login"})}),y(Ba,{children:"Or continue with"}),U($,{children:[U(Fe,{variant:"outline",type:"button",children:[y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:y("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",fill:"currentColor"})}),"Login with GitHub"]}),U(Fa,{className:"text-center",children:["Don't have an account?"," ",y("a",{href:"#",className:"underline underline-offset-4",children:"Sign up"})]})]})]})})}import{jsx as H,jsxs as Me}from"react/jsx-runtime";function eo(){return Me("div",{className:"grid min-h-svh lg:grid-cols-2",children:[Me("div",{className:"flex flex-col gap-4 p-6 md:p-10",children:[H("div",{className:"flex justify-center gap-2 md:justify-start",children:Me("a",{href:"#",className:"flex items-center gap-2 font-medium",children:[H("div",{className:"flex size-6 items-center justify-center rounded-md bg-primary text-primary-foreground",children:H(j,{className:"size-4"})}),"Acme Inc."]})}),H("div",{className:"flex flex-1 items-center justify-center",children:H("div",{className:"w-full max-w-xs",children:H(va,{})})})]}),H("div",{className:"relative hidden bg-muted lg:block",children:H("img",{src:"/placeholder.svg",alt:"Image",className:"absolute inset-0 h-full w-full object-cover dark:brightness-[0.2] dark:grayscale"})})]})}export{eo as default}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/gallery-vertical-end.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/867eca1c0f72047792b02594c265d350bb6060d30df42594b5d467b6a99a3fd3 b/b/867eca1c0f72047792b02594c265d350bb6060d30df42594b5d467b6a99a3fd3 new file mode 100644 index 0000000000000000000000000000000000000000..96c3f2a0219263f207afdd5c77cbb92637601e3d --- /dev/null +++ b/b/867eca1c0f72047792b02594c265d350bb6060d30df42594b5d467b6a99a3fd3 @@ -0,0 +1,127 @@ +var Hi=Object.defineProperty;var Xt=(e,t)=>{for(var a in t)Hi(e,a,{get:t[a],enumerable:!0})};import{forwardRef as Gi,createElement as Wi}from"react";var un=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wa=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as zi,createElement as fn}from"react";var dn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var cn=zi(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:s,...l},i)=>fn("svg",{ref:i,...dn,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:wa("lucide",r),...l},[...s.map(([u,f])=>fn(u,f)),...Array.isArray(n)?n:[n]]));var Ue=(e,t)=>{let a=Gi(({className:o,...r},n)=>Wi(cn,{ref:n,iconNode:t,className:wa(`lucide-${un(e)}`,o),...r}));return a.displayName=`${e}`,a};var Kt=Ue("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var $e=Ue("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);var jt=Ue("GalleryVerticalEnd",[["path",{d:"M7 2h10",key:"nczekb"}],["path",{d:"M5 6h14",key:"u2x4p"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}]]);var at=Ue("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);var $t=Ue("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);import*as Cn from"react";import*as xn from"react";import*as Ln from"react-dom";var ot={};Xt(ot,{Root:()=>Vi,Slot:()=>Vi,Slottable:()=>Xi,createSlot:()=>Fe,createSlottable:()=>ya});import*as le from"react";import*as mn from"react";function pn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Yt(...e){return t=>{let a=!1,o=e.map(r=>{let n=pn(r,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let r=0;r{let{children:r,...n}=a,s=null,l=!1,i=[];hn(r)&&typeof Sa=="function"&&(r=Sa(r._payload)),le.Children.forEach(r,c=>{if(Yi(c)){l=!0;let p=c,h="child"in p.props?p.props.child:p.props.children;hn(h)&&typeof Sa=="function"&&(h=Sa(h._payload)),s=Ki(p,h),i.push(s?.props?.children)}else i.push(c)}),s?s=le.cloneElement(s,void 0,i):!l&&le.Children.count(r)===1&&le.isValidElement(r)&&(s=r);let u=s?$i(s):void 0,f=W(o,u);if(!s){if(r||r===0)throw new Error(l?ed(e):Qi(e));return r}let d=ji(n,s.props??{});return s.type!==le.Fragment&&(d.ref=o?f:u),le.cloneElement(s,d)});return t.displayName=`${e}.Slot`,t}var Vi=Fe("Slot"),gn=Symbol.for("radix.slottable");function ya(e){let t=a=>"child"in a?a.children(a.child):a.children;return t.displayName=`${e}.Slottable`,t.__radixId=gn,t}var Xi=ya("Slottable"),Ki=(e,t)=>{if("child"in e.props){let a=e.props.child;return le.isValidElement(a)?le.cloneElement(a,void 0,e.props.children(a.props.children)):null}return le.isValidElement(t)?t:null};function ji(e,t){let a={...t};for(let o in t){let r=e[o],n=t[o];/^on[A-Z]/.test(o)?r&&n?a[o]=(...l)=>{let i=n(...l);return r(...l),i}:r&&(a[o]=r):o==="style"?a[o]={...r,...n}:o==="className"&&(a[o]=[r,n].filter(Boolean).join(" "))}return{...e,...a}}function $i(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function Yi(e){return le.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gn}var Zi=Symbol.for("react.lazy");function hn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Zi&&"_payload"in e&&Ji(e._payload)}function Ji(e){return typeof e=="object"&&e!==null&&"then"in e}var Qi=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,ed=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Sa=le[" use ".trim().toString()];import{jsx as td}from"react/jsx-runtime";var ad=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_=ad.reduce((e,t)=>{let a=Fe(`Primitive.${t}`),o=xn.forwardRef((r,n)=>{let{asChild:s,...l}=r,i=s?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),td(i,{...l,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Ra(e,t){e&&Ln.flushSync(()=>e.dispatchEvent(t))}import{jsx as od}from"react/jsx-runtime";var rd=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),nd="VisuallyHidden",In=Cn.forwardRef((e,t)=>od(_.span,{...e,ref:t,style:{...rd,...e.style}}));In.displayName=nd;var bn=In;import*as Re from"react";import{jsx as vn}from"react/jsx-runtime";function wn(e,t){let a=Re.createContext(t);a.displayName=e+"Context";let o=n=>{let{children:s,...l}=n,i=Re.useMemo(()=>l,Object.values(l));return vn(a.Provider,{value:i,children:s})};o.displayName=e+"Provider";function r(n){let s=Re.useContext(a);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${n}\` must be used within \`${e}\``)}return[o,r]}function xe(e,t=[]){let a=[];function o(n,s){let l=Re.createContext(s);l.displayName=n+"Context";let i=a.length;a=[...a,s];let u=d=>{let{scope:c,children:p,...h}=d,m=c?.[e]?.[i]||l,g=Re.useMemo(()=>h,Object.values(h));return vn(m.Provider,{value:g,children:p})};u.displayName=n+"Provider";function f(d,c){let p=c?.[e]?.[i]||l,h=Re.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${n}\``)}return[u,f]}let r=()=>{let n=a.map(s=>Re.createContext(s));return function(l){let i=l?.[e]||n;return Re.useMemo(()=>({[`__scope${e}`]:{...l,[e]:i}}),[l,i])}};return r.scopeName=e,[o,ld(r,...t)]}function ld(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(n){let s=o.reduce((l,{useScope:i,scopeName:u})=>{let d=i(n)[`__scope${u}`];return{...l,...d}},{});return Re.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return a.scopeName=t.scopeName,a}import*as Ee from"react";import{jsx as Ro}from"react/jsx-runtime";import*as ka from"react";import{jsx as Wh}from"react/jsx-runtime";function Pa(e){let t=e+"CollectionProvider",[a,o]=xe(t),[r,n]=a(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{let{scope:g,children:x}=m,L=Ee.useRef(null),I=Ee.useRef(new Map).current;return Ro(r,{scope:g,itemMap:I,collectionRef:L,children:x})};s.displayName=t;let l=e+"CollectionSlot",i=Fe(l),u=Ee.forwardRef((m,g)=>{let{scope:x,children:L}=m,I=n(l,x),b=W(g,I.collectionRef);return Ro(i,{ref:b,children:L})});u.displayName=l;let f=e+"CollectionItemSlot",d="data-radix-collection-item",c=Fe(f),p=Ee.forwardRef((m,g)=>{let{scope:x,children:L,...I}=m,b=Ee.useRef(null),w=W(g,b),S=n(f,x);return Ee.useEffect(()=>(S.itemMap.set(b,{ref:b,...I}),()=>void S.itemMap.delete(b))),Ro(c,{[d]:"",ref:w,children:L})});p.displayName=f;function h(m){let g=n(e+"CollectionConsumer",m);return Ee.useCallback(()=>{let L=g.collectionRef.current;if(!L)return[];let I=Array.from(L.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((S,v)=>I.indexOf(S.ref.current)-I.indexOf(v.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:u,ItemSlot:p},h,o]}var Xh=!!(typeof window<"u"&&window.document&&window.document.createElement);function M(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),a===!1||!r.defaultPrevented)return t?.(r)}}import*as Pe from"react";import*as Sn from"react";var he=globalThis?.document?Sn.useLayoutEffect:()=>{};import*as Aa from"react";var ud=Pe[" useInsertionEffect ".trim().toString()]||he;function Ye({prop:e,defaultProp:t,onChange:a=()=>{},caller:o}){let[r,n,s]=id({defaultProp:t,onChange:a}),l=e!==void 0,i=l?e:r;{let f=Pe.useRef(e!==void 0);Pe.useEffect(()=>{let d=f.current;d!==l&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,o])}let u=Pe.useCallback(f=>{if(l){let d=dd(f)?f(e):f;d!==e&&s.current?.(d)}else n(f)},[l,e,n,s]);return[i,u]}function id({defaultProp:e,onChange:t}){let[a,o]=Pe.useState(e),r=Pe.useRef(a),n=Pe.useRef(t);return ud(()=>{n.current=t},[t]),Pe.useEffect(()=>{r.current!==a&&(n.current?.(a),r.current=a)},[a,r]),[a,o,n]}function dd(e){return typeof e=="function"}var Yh=Symbol("RADIX:SYNC_STATE");import*as de from"react";import*as Rn from"react";function fd(e,t){return Rn.useReducer((a,o)=>t[a][o]??a,e)}var Se=e=>{let{present:t,children:a}=e,o=cd(t),r=typeof a=="function"?a({present:o.isPresent}):de.Children.only(a),n=pd(o.ref,md(r));return typeof a=="function"||o.isPresent?de.cloneElement(r,{ref:n}):null};Se.displayName="Presence";function cd(e){let[t,a]=de.useState(),o=de.useRef(null),r=de.useRef(e),n=de.useRef("none"),s=e?"mounted":"unmounted",[l,i]=fd(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return de.useEffect(()=>{let u=Ma(o.current);n.current=l==="mounted"?u:"none"},[l]),he(()=>{let u=o.current,f=r.current;if(f!==e){let c=n.current,p=Ma(u);e?i("MOUNT"):p==="none"||u?.display==="none"?i("UNMOUNT"):i(f&&c!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,i]),he(()=>{if(t){let u,f=t.ownerDocument.defaultView??window,d=p=>{let m=Ma(o.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(i("ANIMATION_END"),!r.current)){let g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},c=p=>{p.target===t&&(n.current=Ma(o.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else i("ANIMATION_END")},[t,i]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:de.useCallback(u=>{o.current=u?getComputedStyle(u):null,a(u)},[])}}function yn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pd(...e){let t=de.useRef(e);return t.current=e,de.useCallback(a=>{let o=t.current,r=!1,n=o.map(s=>{let l=yn(s,a);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let s=0;s{}),gd=0;function Le(e){let[t,a]=Po.useState(hd());return he(()=>{e||a(o=>o??String(gd++))},[e]),e||(t?`radix-${t}`:"")}import*as Da from"react";import{jsx as og}from"react/jsx-runtime";var xd=Da.createContext(void 0);function Ta(e){let t=Da.useContext(xd);return e||t||"ltr"}var He={};Xt(He,{Close:()=>yf,Content:()=>vf,Description:()=>Sf,Dialog:()=>Vo,DialogClose:()=>er,DialogContent:()=>Yo,DialogDescription:()=>Qo,DialogOverlay:()=>$o,DialogPortal:()=>jo,DialogTitle:()=>Jo,DialogTrigger:()=>Xo,Overlay:()=>bf,Portal:()=>If,Root:()=>Lf,Title:()=>wf,Trigger:()=>Cf,WarningProvider:()=>mf,createDialogScope:()=>sf});import*as X from"react";import*as Z from"react";import*as Dt from"react";function fe(e){let t=Dt.useRef(e);return Dt.useEffect(()=>{t.current=e}),Dt.useMemo(()=>(...a)=>t.current?.(...a),[])}import*as Pn from"react";function kn(e,t=globalThis?.document){let a=fe(e);Pn.useEffect(()=>{let o=r=>{r.key==="Escape"&&a(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[a,t])}import{jsx as Dn}from"react/jsx-runtime";var Ld="DismissableLayer",ko="dismissableLayer.update",Cd="dismissableLayer.pointerDownOutside",Id="dismissableLayer.focusOutside",An,Tn=Z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dt=Z.forwardRef((e,t)=>{let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:n,onInteractOutside:s,onDismiss:l,...i}=e,u=Z.useContext(Tn),[f,d]=Z.useState(null),c=f?.ownerDocument??globalThis?.document,[,p]=Z.useState({}),h=W(t,v=>d(v)),m=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(g),L=f?m.indexOf(f):-1,I=u.layersWithOutsidePointerEventsDisabled.size>0,b=L>=x,w=wd(v=>{let C=v.target,F=[...u.branches].some(N=>N.contains(C));!b||F||(r?.(v),s?.(v),v.defaultPrevented||l?.())},c),S=Sd(v=>{let C=v.target;[...u.branches].some(N=>N.contains(C))||(n?.(v),s?.(v),v.defaultPrevented||l?.())},c);return kn(v=>{L===u.layers.size-1&&(o?.(v),!v.defaultPrevented&&l&&(v.preventDefault(),l()))},c),Z.useEffect(()=>{if(f)return a&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(An=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Mn(),()=>{a&&(u.layersWithOutsidePointerEventsDisabled.delete(f),u.layersWithOutsidePointerEventsDisabled.size===0&&(c.body.style.pointerEvents=An))}},[f,c,a,u]),Z.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Mn())},[f,u]),Z.useEffect(()=>{let v=()=>p({});return document.addEventListener(ko,v),()=>document.removeEventListener(ko,v)},[]),Dn(_.div,{...i,ref:h,style:{pointerEvents:I?b?"auto":"none":void 0,...e.style},onFocusCapture:M(e.onFocusCapture,S.onFocusCapture),onBlurCapture:M(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:M(e.onPointerDownCapture,w.onPointerDownCapture)})});dt.displayName=Ld;var bd="DismissableLayerBranch",vd=Z.forwardRef((e,t)=>{let a=Z.useContext(Tn),o=Z.useRef(null),r=W(t,o);return Z.useEffect(()=>{let n=o.current;if(n)return a.branches.add(n),()=>{a.branches.delete(n)}},[a.branches]),Dn(_.div,{...e,ref:r})});vd.displayName=bd;function wd(e,t=globalThis?.document){let a=fe(e),o=Z.useRef(!1),r=Z.useRef(()=>{});return Z.useEffect(()=>{let n=l=>{if(l.target&&!o.current){let u=function(){On(Cd,a,f,{discrete:!0})};var i=u;let f={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",n)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",n),t.removeEventListener("click",r.current)}},[t,a]),{onPointerDownCapture:()=>o.current=!0}}function Sd(e,t=globalThis?.document){let a=fe(e),o=Z.useRef(!1);return Z.useEffect(()=>{let r=n=>{n.target&&!o.current&&On(Id,a,{originalEvent:n},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,a]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Mn(){let e=new CustomEvent(ko);document.dispatchEvent(e)}function On(e,t,a,{discrete:o}){let r=a.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&r.addEventListener(e,t,{once:!0}),o?Ra(r,n):r.dispatchEvent(n)}import*as ke from"react";import{jsx as yd}from"react/jsx-runtime";var Ao="focusScope.autoFocusOnMount",Mo="focusScope.autoFocusOnUnmount",Fn={bubbles:!1,cancelable:!0},Rd="FocusScope",Zt=ke.forwardRef((e,t)=>{let{loop:a=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:n,...s}=e,[l,i]=ke.useState(null),u=fe(r),f=fe(n),d=ke.useRef(null),c=W(t,m=>i(m)),p=ke.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ke.useEffect(()=>{if(o){let L=function(S){if(p.paused||!l)return;let v=S.target;l.contains(v)?d.current=v:rt(d.current,{select:!0})},I=function(S){if(p.paused||!l)return;let v=S.relatedTarget;v!==null&&(l.contains(v)||rt(d.current,{select:!0}))},b=function(S){if(document.activeElement===document.body)for(let C of S)C.removedNodes.length>0&&rt(l)};var m=L,g=I,x=b;document.addEventListener("focusin",L),document.addEventListener("focusout",I);let w=new MutationObserver(b);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",L),document.removeEventListener("focusout",I),w.disconnect()}}},[o,l,p.paused]),ke.useEffect(()=>{if(l){Bn.add(p);let m=document.activeElement;if(!l.contains(m)){let x=new CustomEvent(Ao,Fn);l.addEventListener(Ao,u),l.dispatchEvent(x),x.defaultPrevented||(Pd(Td(_n(l)),{select:!0}),document.activeElement===m&&rt(l))}return()=>{l.removeEventListener(Ao,u),setTimeout(()=>{let x=new CustomEvent(Mo,Fn);l.addEventListener(Mo,f),l.dispatchEvent(x),x.defaultPrevented||rt(m??document.body,{select:!0}),l.removeEventListener(Mo,f),Bn.remove(p)},0)}}},[l,u,f,p]);let h=ke.useCallback(m=>{if(!a&&!o||p.paused)return;let g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(g&&x){let L=m.currentTarget,[I,b]=kd(L);I&&b?!m.shiftKey&&x===b?(m.preventDefault(),a&&rt(I,{select:!0})):m.shiftKey&&x===I&&(m.preventDefault(),a&&rt(b,{select:!0})):x===L&&m.preventDefault()}},[a,o,p.paused]);return yd(_.div,{tabIndex:-1,...s,ref:c,onKeyDown:h})});Zt.displayName=Rd;function Pd(e,{select:t=!1}={}){let a=document.activeElement;for(let o of e)if(rt(o,{select:t}),document.activeElement!==a)return}function kd(e){let t=_n(e),a=En(t,e),o=En(t.reverse(),e);return[a,o]}function _n(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function En(e,t){for(let a of e)if(!Ad(a,{upTo:t}))return a}function Ad(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Md(e){return e instanceof HTMLInputElement&&"select"in e}function rt(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&Md(e)&&t&&e.select()}}var Bn=Dd();function Dd(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=Nn(e,t),e.unshift(t)},remove(t){e=Nn(e,t),e[0]?.resume()}}}function Nn(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function Td(e){return e.filter(t=>t.tagName!=="A")}import*as Oa from"react";import*as qn from"react-dom";import{jsx as Od}from"react/jsx-runtime";var Fd="Portal",ft=Oa.forwardRef((e,t)=>{let{container:a,...o}=e,[r,n]=Oa.useState(!1);he(()=>n(!0),[]);let s=a||r&&globalThis?.document?.body;return s?qn.createPortal(Od(_.div,{...o,ref:t}),s):null});ft.displayName=Fd;import*as Hn from"react";var Fa=0,Tt=null;function Ea(){Hn.useEffect(()=>{Tt||(Tt={start:Un(),end:Un()});let{start:e,end:t}=Tt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Fa++,()=>{Fa===1&&(Tt?.start.remove(),Tt?.end.remove(),Tt=null),Fa=Math.max(0,Fa-1)}},[])}function Un(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ce=function(){return Ce=Object.assign||function(t){for(var a,o=1,r=arguments.length;o"u")return zd;var t=Gd(e),a=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-a+t[2]-t[0])}};var Wd=Qt(),Ot="data-scroll-locked",Vd=function(e,t,a,o){var r=e.left,n=e.top,s=e.right,l=e.gap;return a===void 0&&(a="margin"),` + .`.concat(Do,` { + overflow: hidden `).concat(o,`; + padding-right: `).concat(l,"px ").concat(o,`; + } + body[`).concat(Ot,`] { + overflow: hidden `).concat(o,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(o,";"),a==="margin"&&` + padding-left: `.concat(r,`px; + padding-top: `).concat(n,`px; + padding-right: `).concat(s,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(l,"px ").concat(o,`; + `),a==="padding"&&"padding-right: ".concat(l,"px ").concat(o,";")].filter(Boolean).join(""),` + } + + .`).concat(ct,` { + right: `).concat(l,"px ").concat(o,`; + } + + .`).concat(pt,` { + margin-right: `).concat(l,"px ").concat(o,`; + } + + .`).concat(ct," .").concat(ct,` { + right: 0 `).concat(o,`; + } + + .`).concat(pt," .").concat(pt,` { + margin-right: 0 `).concat(o,`; + } + + body[`).concat(Ot,`] { + `).concat(To,": ").concat(l,`px; + } +`)},Yn=function(){var e=parseInt(document.body.getAttribute(Ot)||"0",10);return isFinite(e)?e:0},Xd=function(){Ft.useEffect(function(){return document.body.setAttribute(Ot,(Yn()+1).toString()),function(){var e=Yn()-1;e<=0?document.body.removeAttribute(Ot):document.body.setAttribute(Ot,e.toString())}},[])},Ho=function(e){var t=e.noRelative,a=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Xd();var n=Ft.useMemo(function(){return Uo(r)},[r]);return Ft.createElement(Wd,{styles:Vd(n,!t,r,a?"":"!important")})};var zo=!1;if(typeof window<"u")try{ea=Object.defineProperty({},"passive",{get:function(){return zo=!0,!0}}),window.addEventListener("test",ea,ea),window.removeEventListener("test",ea,ea)}catch{zo=!1}var ea,mt=zo?{passive:!1}:!1;var Kd=function(e){return e.tagName==="TEXTAREA"},Zn=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!Kd(e)&&a[t]==="visible")},jd=function(e){return Zn(e,"overflowY")},$d=function(e){return Zn(e,"overflowX")},Go=function(e,t){var a=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Jn(e,o);if(r){var n=Qn(e,o),s=n[1],l=n[2];if(s>l)return!0}o=o.parentNode}while(o&&o!==a.body);return!1},Yd=function(e){var t=e.scrollTop,a=e.scrollHeight,o=e.clientHeight;return[t,a,o]},Zd=function(e){var t=e.scrollLeft,a=e.scrollWidth,o=e.clientWidth;return[t,a,o]},Jn=function(e,t){return e==="v"?jd(t):$d(t)},Qn=function(e,t){return e==="v"?Yd(t):Zd(t)},Jd=function(e,t){return e==="h"&&t==="rtl"?-1:1},es=function(e,t,a,o,r){var n=Jd(e,window.getComputedStyle(t).direction),s=n*o,l=a.target,i=t.contains(l),u=!1,f=s>0,d=0,c=0;do{if(!l)break;var p=Qn(e,l),h=p[0],m=p[1],g=p[2],x=m-g-n*h;(h||x)&&Jn(e,l)&&(d+=x,c+=h);var L=l.parentNode;l=L&&L.nodeType===Node.DOCUMENT_FRAGMENT_NODE?L.host:L}while(!i&&l!==document.body||i&&(t.contains(l)||t===l));return(f&&(r&&Math.abs(d)<1||!r&&s>d)||!f&&(r&&Math.abs(c)<1||!r&&-s>c))&&(u=!0),u};var Ua=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ts=function(e){return[e.deltaX,e.deltaY]},as=function(e){return e&&"current"in e?e.current:e},Qd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ef=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},tf=0,Et=[];function os(e){var t=K.useRef([]),a=K.useRef([0,0]),o=K.useRef(),r=K.useState(tf++)[0],n=K.useState(Qt)[0],s=K.useRef(e);K.useEffect(function(){s.current=e},[e]),K.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var m=zn([e.lockRef.current],(e.shards||[]).map(as),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=K.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var x=Ua(m),L=a.current,I="deltaX"in m?m.deltaX:L[0]-x[0],b="deltaY"in m?m.deltaY:L[1]-x[1],w,S=m.target,v=Math.abs(I)>Math.abs(b)?"h":"v";if("touches"in m&&v==="h"&&S.type==="range")return!1;var C=window.getSelection(),F=C&&C.anchorNode,N=F?F===S||F.contains(S):!1;if(N)return!1;var q=Go(v,S);if(!q)return!0;if(q?w=v:(w=v==="v"?"h":"v",q=Go(v,S)),!q)return!1;if(!o.current&&"changedTouches"in m&&(I||b)&&(o.current=w),!w)return!0;var z=o.current||w;return es(z,g,m,z==="h"?I:b,!0)},[]),i=K.useCallback(function(m){var g=m;if(!(!Et.length||Et[Et.length-1]!==n)){var x="deltaY"in g?ts(g):Ua(g),L=t.current.filter(function(w){return w.name===g.type&&(w.target===g.target||g.target===w.shadowParent)&&Qd(w.delta,x)})[0];if(L&&L.should){g.cancelable&&g.preventDefault();return}if(!L){var I=(s.current.shards||[]).map(as).filter(Boolean).filter(function(w){return w.contains(g.target)}),b=I.length>0?l(g,I[0]):!s.current.noIsolation;b&&g.cancelable&&g.preventDefault()}}},[]),u=K.useCallback(function(m,g,x,L){var I={name:m,delta:g,target:x,should:L,shadowParent:af(x)};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(b){return b!==I})},1)},[]),f=K.useCallback(function(m){a.current=Ua(m),o.current=void 0},[]),d=K.useCallback(function(m){u(m.type,ts(m),m.target,l(m,e.lockRef.current))},[]),c=K.useCallback(function(m){u(m.type,Ua(m),m.target,l(m,e.lockRef.current))},[]);K.useEffect(function(){return Et.push(n),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:c}),document.addEventListener("wheel",i,mt),document.addEventListener("touchmove",i,mt),document.addEventListener("touchstart",f,mt),function(){Et=Et.filter(function(m){return m!==n}),document.removeEventListener("wheel",i,mt),document.removeEventListener("touchmove",i,mt),document.removeEventListener("touchstart",f,mt)}},[]);var p=e.removeScrollBar,h=e.inert;return K.createElement(K.Fragment,null,h?K.createElement(n,{styles:ef(r)}):null,p?K.createElement(Ho,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function af(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var rs=Eo(qa,os);var ns=Ha.forwardRef(function(e,t){return Ha.createElement(Jt,Ce({},e,{ref:t,sideCar:rs}))});ns.classNames=Jt.classNames;var ta=ns;var of=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Bt=new WeakMap,za=new WeakMap,Ga={},Wo=0,ss=function(e){return e&&(e.host||ss(e.parentNode))},rf=function(e,t){return t.map(function(a){if(e.contains(a))return a;var o=ss(a);return o&&e.contains(o)?o:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},nf=function(e,t,a,o){var r=rf(t,Array.isArray(e)?e:[e]);Ga[a]||(Ga[a]=new WeakMap);var n=Ga[a],s=[],l=new Set,i=new Set(r),u=function(d){!d||l.has(d)||(l.add(d),u(d.parentNode))};r.forEach(u);var f=function(d){!d||i.has(d)||Array.prototype.forEach.call(d.children,function(c){if(l.has(c))f(c);else try{var p=c.getAttribute(o),h=p!==null&&p!=="false",m=(Bt.get(c)||0)+1,g=(n.get(c)||0)+1;Bt.set(c,m),n.set(c,g),s.push(c),m===1&&h&&za.set(c,!0),g===1&&c.setAttribute(a,"true"),h||c.setAttribute(o,"true")}catch(x){console.error("aria-hidden: cannot operate on ",c,x)}})};return f(t),l.clear(),Wo++,function(){s.forEach(function(d){var c=Bt.get(d)-1,p=n.get(d)-1;Bt.set(d,c),n.set(d,p),c||(za.has(d)||d.removeAttribute(o),za.delete(d)),p||d.removeAttribute(a)}),Wo--,Wo||(Bt=new WeakMap,Bt=new WeakMap,za=new WeakMap,Ga={})}},Wa=function(e,t,a){a===void 0&&(a="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=t||of(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),nf(o,r,a,"aria-hidden")):function(){return null}};import{Fragment as ls,jsx as Q,jsxs as us}from"react/jsx-runtime";var Xa="Dialog",[is,sf]=xe(Xa),[lf,Be]=is(Xa),Vo=e=>{let{__scopeDialog:t,children:a,open:o,defaultOpen:r,onOpenChange:n,modal:s=!0}=e,l=X.useRef(null),i=X.useRef(null),[u,f]=Ye({prop:o,defaultProp:r??!1,onChange:n,caller:Xa});return Q(lf,{scope:t,triggerRef:l,contentRef:i,contentId:Le(),titleId:Le(),descriptionId:Le(),open:u,onOpenChange:f,onOpenToggle:X.useCallback(()=>f(d=>!d),[f]),modal:s,children:a})};Vo.displayName=Xa;var ds="DialogTrigger",Xo=X.forwardRef((e,t)=>{let{__scopeDialog:a,...o}=e,r=Be(ds,a),n=W(t,r.triggerRef);return Q(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":tr(r.open),...o,ref:n,onClick:M(e.onClick,r.onOpenToggle)})});Xo.displayName=ds;var Ko="DialogPortal",[uf,fs]=is(Ko,{forceMount:void 0}),jo=e=>{let{__scopeDialog:t,forceMount:a,children:o,container:r}=e,n=Be(Ko,t);return Q(uf,{scope:t,forceMount:a,children:X.Children.map(o,s=>Q(Se,{present:a||n.open,children:Q(ft,{asChild:!0,container:r,children:s})}))})};jo.displayName=Ko;var Va="DialogOverlay",$o=X.forwardRef((e,t)=>{let a=fs(Va,e.__scopeDialog),{forceMount:o=a.forceMount,...r}=e,n=Be(Va,e.__scopeDialog);return n.modal?Q(Se,{present:o||n.open,children:Q(ff,{...r,ref:t})}):null});$o.displayName=Va;var df=Fe("DialogOverlay.RemoveScroll"),ff=X.forwardRef((e,t)=>{let{__scopeDialog:a,...o}=e,r=Be(Va,a);return Q(ta,{as:df,allowPinchZoom:!0,shards:[r.contentRef],children:Q(_.div,{"data-state":tr(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),ht="DialogContent",Yo=X.forwardRef((e,t)=>{let a=fs(ht,e.__scopeDialog),{forceMount:o=a.forceMount,...r}=e,n=Be(ht,e.__scopeDialog);return Q(Se,{present:o||n.open,children:n.modal?Q(cf,{...r,ref:t}):Q(pf,{...r,ref:t})})});Yo.displayName=ht;var cf=X.forwardRef((e,t)=>{let a=Be(ht,e.__scopeDialog),o=X.useRef(null),r=W(t,a.contentRef,o);return X.useEffect(()=>{let n=o.current;if(n)return Wa(n)},[]),Q(cs,{...e,ref:r,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:M(e.onCloseAutoFocus,n=>{n.preventDefault(),a.triggerRef.current?.focus()}),onPointerDownOutside:M(e.onPointerDownOutside,n=>{let s=n.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&n.preventDefault()}),onFocusOutside:M(e.onFocusOutside,n=>n.preventDefault())})}),pf=X.forwardRef((e,t)=>{let a=Be(ht,e.__scopeDialog),o=X.useRef(!1),r=X.useRef(!1);return Q(cs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{e.onCloseAutoFocus?.(n),n.defaultPrevented||(o.current||a.triggerRef.current?.focus(),n.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:n=>{e.onInteractOutside?.(n),n.defaultPrevented||(o.current=!0,n.detail.originalEvent.type==="pointerdown"&&(r.current=!0));let s=n.target;a.triggerRef.current?.contains(s)&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&r.current&&n.preventDefault()}})}),cs=X.forwardRef((e,t)=>{let{__scopeDialog:a,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:n,...s}=e,l=Be(ht,a),i=X.useRef(null),u=W(t,i);return Ea(),us(ls,{children:[Q(Zt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:n,children:Q(dt,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":tr(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),us(ls,{children:[Q(hf,{titleId:l.titleId}),Q(xf,{contentRef:i,descriptionId:l.descriptionId})]})]})}),Zo="DialogTitle",Jo=X.forwardRef((e,t)=>{let{__scopeDialog:a,...o}=e,r=Be(Zo,a);return Q(_.h2,{id:r.titleId,...o,ref:t})});Jo.displayName=Zo;var ps="DialogDescription",Qo=X.forwardRef((e,t)=>{let{__scopeDialog:a,...o}=e,r=Be(ps,a);return Q(_.p,{id:r.descriptionId,...o,ref:t})});Qo.displayName=ps;var ms="DialogClose",er=X.forwardRef((e,t)=>{let{__scopeDialog:a,...o}=e,r=Be(ms,a);return Q(_.button,{type:"button",...o,ref:t,onClick:M(e.onClick,()=>r.onOpenChange(!1))})});er.displayName=ms;function tr(e){return e?"open":"closed"}var hs="DialogTitleWarning",[mf,gs]=wn(hs,{contentName:ht,titleName:Zo,docsSlug:"dialog"}),hf=({titleId:e})=>{let t=gs(hs),a=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return X.useEffect(()=>{e&&(document.getElementById(e)||console.error(a))},[a,e]),null},gf="DialogDescriptionWarning",xf=({contentRef:e,descriptionId:t})=>{let o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${gs(gf).contentName}}.`;return X.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},Lf=Vo,Cf=Xo,If=jo,bf=$o,vf=Yo,wf=Jo,Sf=Qo,yf=er;import*as xs from"react";function Ls(e){let[t,a]=xs.useState(void 0);return he(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let n=r[0],s,l;if("borderBoxSize"in n){let i=n.borderBoxSize,u=Array.isArray(i)?i[0]:i;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;a({width:s,height:l})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else a(void 0)},[e]),t}import*as A from"react";import*as ue from"react";var bs=["top","right","bottom","left"];var ze=Math.min,ge=Math.max,oa=Math.round,ra=Math.floor,Ne=e=>({x:e,y:e}),Rf={left:"right",right:"left",bottom:"top",top:"bottom"};function ja(e,t,a){return ge(e,ze(t,a))}function Ge(e,t){return typeof e=="function"?e(t):e}function We(e){return e.split("-")[0]}function gt(e){return e.split("-")[1]}function $a(e){return e==="x"?"y":"x"}function Ya(e){return e==="y"?"height":"width"}function _e(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Za(e){return $a(_e(e))}function vs(e,t,a){a===void 0&&(a=!1);let o=gt(e),r=Za(e),n=Ya(r),s=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=aa(s)),[s,aa(s)]}function ws(e){let t=aa(e);return[Ka(e),t,Ka(t)]}function Ka(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Cs=["left","right"],Is=["right","left"],Pf=["top","bottom"],kf=["bottom","top"];function Af(e,t,a){switch(e){case"top":case"bottom":return a?t?Is:Cs:t?Cs:Is;case"left":case"right":return t?Pf:kf;default:return[]}}function Ss(e,t,a,o){let r=gt(e),n=Af(We(e),a==="start",o);return r&&(n=n.map(s=>s+"-"+r),t&&(n=n.concat(n.map(Ka)))),n}function aa(e){let t=We(e);return Rf[t]+e.slice(t.length)}function Mf(e){return{top:0,right:0,bottom:0,left:0,...e}}function ar(e){return typeof e!="number"?Mf(e):{top:e,right:e,bottom:e,left:e}}function xt(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function ys(e,t,a){let{reference:o,floating:r}=e,n=_e(t),s=Za(t),l=Ya(s),i=We(t),u=n==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,c=o[l]/2-r[l]/2,p;switch(i){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(gt(t)){case"start":p[s]-=c*(a&&u?-1:1);break;case"end":p[s]+=c*(a&&u?-1:1);break}return p}async function ks(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:n,rects:s,elements:l,strategy:i}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:c=!1,padding:p=0}=Ge(t,e),h=ar(p),g=l[c?d==="floating"?"reference":"floating":d],x=xt(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(g)))==null||a?g:g.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:i})),L=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,I=await(n.getOffsetParent==null?void 0:n.getOffsetParent(l.floating)),b=await(n.isElement==null?void 0:n.isElement(I))?await(n.getScale==null?void 0:n.getScale(I))||{x:1,y:1}:{x:1,y:1},w=xt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:L,offsetParent:I,strategy:i}):L);return{top:(x.top-w.top+h.top)/b.y,bottom:(w.bottom-x.bottom+h.bottom)/b.y,left:(x.left-w.left+h.left)/b.x,right:(w.right-x.right+h.right)/b.x}}var Df=50,As=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:s}=a,l=s.detectOverflow?s:{...s,detectOverflow:ks},i=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=ys(u,o,i),c=o,p=0,h={};for(let m=0;m({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:n,platform:s,elements:l,middlewareData:i}=t,{element:u,padding:f=0}=Ge(e,t)||{};if(u==null)return{};let d=ar(f),c={x:a,y:o},p=Za(r),h=Ya(p),m=await s.getDimensions(u),g=p==="y",x=g?"top":"left",L=g?"bottom":"right",I=g?"clientHeight":"clientWidth",b=n.reference[h]+n.reference[p]-c[p]-n.floating[h],w=c[p]-n.reference[p],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u)),v=S?S[I]:0;(!v||!await(s.isElement==null?void 0:s.isElement(S)))&&(v=l.floating[I]||n.floating[h]);let C=b/2-w/2,F=v/2-m[h]/2-1,N=ze(d[x],F),q=ze(d[L],F),z=N,V=v-m[h]-q,U=v/2-m[h]/2+C,$=ja(z,U,V),O=!i.arrow&>(r)!=null&&U!==$&&n.reference[h]/2-(UU<=0)){var q,z;let U=(((q=n.flip)==null?void 0:q.index)||0)+1,$=v[U];if($&&(!(d==="alignment"?L!==_e($):!1)||N.every(D=>_e(D.placement)===L?D.overflows[0]>0:!0)))return{data:{index:U,overflows:N},reset:{placement:$}};let O=(z=N.filter(G=>G.overflows[0]<=0).sort((G,D)=>G.overflows[1]-D.overflows[1])[0])==null?void 0:z.placement;if(!O)switch(p){case"bestFit":{var V;let G=(V=N.filter(D=>{if(S){let k=_e(D.placement);return k===L||k==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(k=>k>0).reduce((k,y)=>k+y,0)]).sort((D,k)=>D[1]-k[1])[0])==null?void 0:V[0];G&&(O=G);break}case"initialPlacement":O=l;break}if(r!==O)return{reset:{placement:O}}}return{}}}};function Rs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ps(e){return bs.some(t=>e[t]>=0)}var Ts=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:o}=t,{strategy:r="referenceHidden",...n}=Ge(e,t);switch(r){case"referenceHidden":{let s=await o.detectOverflow(t,{...n,elementContext:"reference"}),l=Rs(s,a.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Ps(l)}}}case"escaped":{let s=await o.detectOverflow(t,{...n,altBoundary:!0}),l=Rs(s,a.floating);return{data:{escapedOffsets:l,escaped:Ps(l)}}}default:return{}}}}};var Os=new Set(["left","top"]);async function Tf(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=We(a),l=gt(a),i=_e(a)==="y",u=Os.has(s)?-1:1,f=n&&i?-1:1,d=Ge(t,e),{mainAxis:c,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),i?{x:p*f,y:c*u}:{x:c*u,y:p*f}}var Fs=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:n,placement:s,middlewareData:l}=t,i=await Tf(t,e);return s===((a=l.offset)==null?void 0:a.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+i.x,y:n+i.y,data:{...i,placement:s}}}}},Es=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r,platform:n}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:i={fn:x=>{let{x:L,y:I}=x;return{x:L,y:I}}},...u}=Ge(e,t),f={x:a,y:o},d=await n.detectOverflow(t,u),c=_e(We(r)),p=$a(c),h=f[p],m=f[c];if(s){let x=p==="y"?"top":"left",L=p==="y"?"bottom":"right",I=h+d[x],b=h-d[L];h=ja(I,h,b)}if(l){let x=c==="y"?"top":"left",L=c==="y"?"bottom":"right",I=m+d[x],b=m-d[L];m=ja(I,m,b)}let g=i.fn({...t,[p]:h,[c]:m});return{...g,data:{x:g.x-a,y:g.y-o,enabled:{[p]:s,[c]:l}}}}}},Bs=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:a,y:o,placement:r,rects:n,middlewareData:s}=t,{offset:l=0,mainAxis:i=!0,crossAxis:u=!0}=Ge(e,t),f={x:a,y:o},d=_e(r),c=$a(d),p=f[c],h=f[d],m=Ge(l,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(i){let I=c==="y"?"height":"width",b=n.reference[c]-n.floating[I]+g.mainAxis,w=n.reference[c]+n.reference[I]-g.mainAxis;pw&&(p=w)}if(u){var x,L;let I=c==="y"?"width":"height",b=Os.has(We(r)),w=n.reference[d]-n.floating[I]+(b&&((x=s.offset)==null?void 0:x[d])||0)+(b?0:g.crossAxis),S=n.reference[d]+n.reference[I]+(b?0:((L=s.offset)==null?void 0:L[d])||0)-(b?g.crossAxis:0);hS&&(h=S)}return{[c]:p,[d]:h}}}},Ns=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,o;let{placement:r,rects:n,platform:s,elements:l}=t,{apply:i=()=>{},...u}=Ge(e,t),f=await s.detectOverflow(t,u),d=We(r),c=gt(r),p=_e(r)==="y",{width:h,height:m}=n.floating,g,x;d==="top"||d==="bottom"?(g=d,x=c===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(x=d,g=c==="end"?"top":"bottom");let L=m-f.top-f.bottom,I=h-f.left-f.right,b=ze(m-f[g],L),w=ze(h-f[x],I),S=!t.middlewareData.shift,v=b,C=w;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(C=I),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(v=L),S&&!c){let N=ge(f.left,0),q=ge(f.right,0),z=ge(f.top,0),V=ge(f.bottom,0);p?C=h-2*(N!==0||q!==0?N+q:ge(f.left,f.right)):v=m-2*(z!==0||V!==0?z+V:ge(f.top,f.bottom))}await i({...t,availableWidth:C,availableHeight:v});let F=await s.getDimensions(l.floating);return h!==F.width||m!==F.height?{reset:{rects:!0}}:{}}}};function Ja(){return typeof window<"u"}function It(e){return qs(e)?(e.nodeName||"").toLowerCase():"#document"}function Ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qe(e){var t;return(t=(qs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qs(e){return Ja()?e instanceof Node||e instanceof Ie(e).Node:!1}function Ae(e){return Ja()?e instanceof Element||e instanceof Ie(e).Element:!1}function Ve(e){return Ja()?e instanceof HTMLElement||e instanceof Ie(e).HTMLElement:!1}function _s(e){return!Ja()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ie(e).ShadowRoot}function Nt(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=Me(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&r!=="inline"&&r!=="contents"}function Us(e){return/^(table|td|th)$/.test(It(e))}function na(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Of=/transform|translate|scale|rotate|perspective|filter/,Ff=/paint|layout|strict|content/,Lt=e=>!!e&&e!=="none",or;function Qa(e){let t=Ae(e)?Me(e):e;return Lt(t.transform)||Lt(t.translate)||Lt(t.scale)||Lt(t.rotate)||Lt(t.perspective)||!eo()&&(Lt(t.backdropFilter)||Lt(t.filter))||Of.test(t.willChange||"")||Ff.test(t.contain||"")}function Hs(e){let t=Ze(e);for(;Ve(t)&&!bt(t);){if(Qa(t))return t;if(na(t))return null;t=Ze(t)}return null}function eo(){return or==null&&(or=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),or}function bt(e){return/^(html|body|#document)$/.test(It(e))}function Me(e){return Ie(e).getComputedStyle(e)}function sa(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ze(e){if(It(e)==="html")return e;let t=e.assignedSlot||e.parentNode||_s(e)&&e.host||qe(e);return _s(t)?t.host:t}function zs(e){let t=Ze(e);return bt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ve(t)&&Nt(t)?t:zs(t)}function Ct(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=zs(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=Ie(r);if(n){let l=to(s);return t.concat(s,s.visualViewport||[],Nt(r)?r:[],l&&a?Ct(l):[])}else return t.concat(r,Ct(r,[],a))}function to(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xs(e){let t=Me(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=Ve(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:o,l=oa(a)!==n||oa(o)!==s;return l&&(a=n,o=s),{width:a,height:o,$:l}}function nr(e){return Ae(e)?e:e.contextElement}function _t(e){let t=nr(e);if(!Ve(t))return Ne(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=Xs(t),s=(n?oa(a.width):a.width)/o,l=(n?oa(a.height):a.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Ef=Ne(0);function Ks(e){let t=Ie(e);return!eo()||!t.visualViewport?Ef:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bf(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==Ie(e)?!1:t}function vt(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=nr(e),s=Ne(1);t&&(o?Ae(o)&&(s=_t(o)):s=_t(e));let l=Bf(n,a,o)?Ks(n):Ne(0),i=(r.left+l.x)/s.x,u=(r.top+l.y)/s.y,f=r.width/s.x,d=r.height/s.y;if(n){let c=Ie(n),p=o&&Ae(o)?Ie(o):o,h=c,m=to(h);for(;m&&o&&p!==h;){let g=_t(m),x=m.getBoundingClientRect(),L=Me(m),I=x.left+(m.clientLeft+parseFloat(L.paddingLeft))*g.x,b=x.top+(m.clientTop+parseFloat(L.paddingTop))*g.y;i*=g.x,u*=g.y,f*=g.x,d*=g.y,i+=I,u+=b,h=Ie(m),m=to(h)}}return xt({width:f,height:d,x:i,y:u})}function ao(e,t){let a=sa(e).scrollLeft;return t?t.left+a:vt(qe(e)).left+a}function js(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-ao(e,a),r=a.top+t.scrollTop;return{x:o,y:r}}function Nf(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",s=qe(o),l=t?na(t.floating):!1;if(o===s||l&&n)return a;let i={scrollLeft:0,scrollTop:0},u=Ne(1),f=Ne(0),d=Ve(o);if((d||!d&&!n)&&((It(o)!=="body"||Nt(s))&&(i=sa(o)),d)){let p=vt(o);u=_t(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}let c=s&&!d&&!n?js(s,i):Ne(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-i.scrollLeft*u.x+f.x+c.x,y:a.y*u.y-i.scrollTop*u.y+f.y+c.y}}function _f(e){return Array.from(e.getClientRects())}function qf(e){let t=qe(e),a=sa(e),o=e.ownerDocument.body,r=ge(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=ge(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-a.scrollLeft+ao(e),l=-a.scrollTop;return Me(o).direction==="rtl"&&(s+=ge(t.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:l}}var Gs=25;function Uf(e,t){let a=Ie(e),o=qe(e),r=a.visualViewport,n=o.clientWidth,s=o.clientHeight,l=0,i=0;if(r){n=r.width,s=r.height;let f=eo();(!f||f&&t==="fixed")&&(l=r.offsetLeft,i=r.offsetTop)}let u=ao(o);if(u<=0){let f=o.ownerDocument,d=f.body,c=getComputedStyle(d),p=f.compatMode==="CSS1Compat"&&parseFloat(c.marginLeft)+parseFloat(c.marginRight)||0,h=Math.abs(o.clientWidth-d.clientWidth-p);h<=Gs&&(n-=h)}else u<=Gs&&(n+=u);return{width:n,height:s,x:l,y:i}}function Hf(e,t){let a=vt(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=Ve(e)?_t(e):Ne(1),s=e.clientWidth*n.x,l=e.clientHeight*n.y,i=r*n.x,u=o*n.y;return{width:s,height:l,x:i,y:u}}function Ws(e,t,a){let o;if(t==="viewport")o=Uf(e,a);else if(t==="document")o=qf(qe(e));else if(Ae(t))o=Hf(t,a);else{let r=Ks(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return xt(o)}function $s(e,t){let a=Ze(e);return a===t||!Ae(a)||bt(a)?!1:Me(a).position==="fixed"||$s(a,t)}function zf(e,t){let a=t.get(e);if(a)return a;let o=Ct(e,[],!1).filter(l=>Ae(l)&&It(l)!=="body"),r=null,n=Me(e).position==="fixed",s=n?Ze(e):e;for(;Ae(s)&&!bt(s);){let l=Me(s),i=Qa(s);!i&&l.position==="fixed"&&(r=null),(n?!i&&!r:!i&&l.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Nt(s)&&!i&&$s(e,s))?o=o.filter(f=>f!==s):r=l,s=Ze(s)}return t.set(e,o),o}function Gf(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,s=[...a==="clippingAncestors"?na(t)?[]:zf(t,this._c):[].concat(a),o],l=Ws(t,s[0],r),i=l.top,u=l.right,f=l.bottom,d=l.left;for(let c=1;c{s(!1,1e-7)},1e3)}v===1&&!Js(u,e.getBoundingClientRect())&&s(),b=!1}try{a=new IntersectionObserver(w,{...I,root:r.ownerDocument})}catch{a=new IntersectionObserver(w,I)}a.observe(e)}return s(!0),n}function sr(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:i=!1}=o,u=nr(e),f=r||n?[...u?Ct(u):[],...t?Ct(t):[]]:[];f.forEach(x=>{r&&x.addEventListener("scroll",a,{passive:!0}),n&&x.addEventListener("resize",a)});let d=u&&l?jf(u,a):null,c=-1,p=null;s&&(p=new ResizeObserver(x=>{let[L]=x;L&&L.target===u&&p&&t&&(p.unobserve(t),cancelAnimationFrame(c),c=requestAnimationFrame(()=>{var I;(I=p)==null||I.observe(t)})),a()}),u&&!i&&p.observe(u),t&&p.observe(t));let h,m=i?vt(e):null;i&&g();function g(){let x=vt(e);m&&!Js(m,x)&&a(),m=x,h=requestAnimationFrame(g)}return a(),()=>{var x;f.forEach(L=>{r&&L.removeEventListener("scroll",a),n&&L.removeEventListener("resize",a)}),d?.(),(x=p)==null||x.disconnect(),p=null,i&&cancelAnimationFrame(h)}}var Qs=Fs;var el=Es,tl=Ds,al=Ns,ol=Ts,lr=Ms;var rl=Bs,ur=(e,t,a)=>{let o=new Map,r={platform:Zs,...a},n={...r.platform,_c:o};return As(e,t,{...r,platform:n})};import*as ae from"react";import{useLayoutEffect as $f}from"react";import*as sl from"react-dom";var Yf=typeof document<"u",Zf=function(){},oo=Yf?$f:Zf;function ro(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(o=a;o--!==0;)if(!ro(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),a=r.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=a;o--!==0;){let n=r[o];if(!(n==="_owner"&&e.$$typeof)&&!ro(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ll(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nl(e,t){let a=ll(e);return Math.round(t*a)/a}function ir(e){let t=ae.useRef(e);return oo(()=>{t.current=e}),t}function ul(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:o=[],platform:r,elements:{reference:n,floating:s}={},transform:l=!0,whileElementsMounted:i,open:u}=e,[f,d]=ae.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[c,p]=ae.useState(o);ro(c,o)||p(o);let[h,m]=ae.useState(null),[g,x]=ae.useState(null),L=ae.useCallback(D=>{D!==S.current&&(S.current=D,m(D))},[]),I=ae.useCallback(D=>{D!==v.current&&(v.current=D,x(D))},[]),b=n||h,w=s||g,S=ae.useRef(null),v=ae.useRef(null),C=ae.useRef(f),F=i!=null,N=ir(i),q=ir(r),z=ir(u),V=ae.useCallback(()=>{if(!S.current||!v.current)return;let D={placement:t,strategy:a,middleware:c};q.current&&(D.platform=q.current),ur(S.current,v.current,D).then(k=>{let y={...k,isPositioned:z.current!==!1};U.current&&!ro(C.current,y)&&(C.current=y,sl.flushSync(()=>{d(y)}))})},[c,t,a,q,z]);oo(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(D=>({...D,isPositioned:!1})))},[u]);let U=ae.useRef(!1);oo(()=>(U.current=!0,()=>{U.current=!1}),[]),oo(()=>{if(b&&(S.current=b),w&&(v.current=w),b&&w){if(N.current)return N.current(b,w,V);V()}},[b,w,V,N,F]);let $=ae.useMemo(()=>({reference:S,floating:v,setReference:L,setFloating:I}),[L,I]),O=ae.useMemo(()=>({reference:b,floating:w}),[b,w]),G=ae.useMemo(()=>{let D={position:a,left:0,top:0};if(!O.floating)return D;let k=nl(O.floating,f.x),y=nl(O.floating,f.y);return l?{...D,transform:"translate("+k+"px, "+y+"px)",...ll(O.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:k,top:y}},[a,l,O.floating,f.x,f.y]);return ae.useMemo(()=>({...f,update:V,refs:$,elements:O,floatingStyles:G}),[f,V,$,O,G])}var Jf=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:o,padding:r}=typeof e=="function"?e(a):e;return o&&t(o)?o.current!=null?lr({element:o.current,padding:r}).fn(a):{}:o?lr({element:o,padding:r}).fn(a):{}}}},il=(e,t)=>{let a=Qs(e);return{name:a.name,fn:a.fn,options:[e,t]}},dl=(e,t)=>{let a=el(e);return{name:a.name,fn:a.fn,options:[e,t]}},fl=(e,t)=>({fn:rl(e).fn,options:[e,t]}),cl=(e,t)=>{let a=tl(e);return{name:a.name,fn:a.fn,options:[e,t]}},pl=(e,t)=>{let a=al(e);return{name:a.name,fn:a.fn,options:[e,t]}};var ml=(e,t)=>{let a=ol(e);return{name:a.name,fn:a.fn,options:[e,t]}};var hl=(e,t)=>{let a=Jf(e);return{name:a.name,fn:a.fn,options:[e,t]}};import*as xl from"react";import{jsx as gl}from"react/jsx-runtime";var Qf="Arrow",Ll=xl.forwardRef((e,t)=>{let{children:a,width:o=10,height:r=5,...n}=e;return gl(_.svg,{...n,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:gl("polygon",{points:"0,0 30,0 15,10"})})});Ll.displayName=Qf;var Cl=Ll;import{jsx as wt}from"react/jsx-runtime";var dr="Popper",[Il,qt]=xe(dr),[tc,bl]=Il(dr),vl=e=>{let{__scopePopper:t,children:a}=e,[o,r]=ue.useState(null),[n,s]=ue.useState(void 0);return wt(tc,{scope:t,anchor:o,onAnchorChange:r,placementState:n,setPlacementState:s,children:a})};vl.displayName=dr;var wl="PopperAnchor",Sl=ue.forwardRef((e,t)=>{let{__scopePopper:a,virtualRef:o,...r}=e,n=bl(wl,a),s=ue.useRef(null),l=n.onAnchorChange,i=ue.useCallback(h=>{s.current=h,h&&l(h)},[l]),u=W(t,i),f=ue.useRef(null);ue.useEffect(()=>{if(!o)return;let h=f.current;f.current=o.current,h!==f.current&&l(f.current)});let d=n.placementState&&cr(n.placementState),c=d?.[0],p=d?.[1];return o?null:wt(_.div,{"data-radix-popper-side":c,"data-radix-popper-align":p,...r,ref:u})});Sl.displayName=wl;var fr="PopperContent",[ac,oc]=Il(fr),yl=ue.forwardRef((e,t)=>{let{__scopePopper:a,side:o="bottom",sideOffset:r=0,align:n="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:i=!0,collisionBoundary:u,collisionPadding:f=0,sticky:d="partial",hideWhenDetached:c=!1,updatePositionStrategy:p="optimized",onPlaced:h,...m}=e,g=bl(fr,a),[x,L]=ue.useState(null),I=W(t,Oe=>L(Oe)),[b,w]=ue.useState(null),S=Ls(b),v=S?.width??0,C=S?.height??0,F=o+(n!=="center"?"-"+n:""),N=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},q=u?Array.isArray(u)?u:[u]:void 0,z=q!==void 0&&q.length>0,V={padding:N,boundary:q?.filter(nc),altBoundary:z},{refs:U,floatingStyles:$,placement:O,isPositioned:G,middlewareData:D}=ul({strategy:"fixed",placement:F,whileElementsMounted:(...Oe)=>sr(...Oe,{animationFrame:p==="always"}),elements:{reference:g.anchor},middleware:[il({mainAxis:r+C,alignmentAxis:s}),i&&dl({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?fl():void 0,...V}),i&&cl({...V}),pl({...V,apply:({elements:Oe,rects:J,availableWidth:va,availableHeight:At})=>{let{width:Mt,height:Vt}=J.reference,je=Oe.floating.style;je.setProperty("--radix-popper-available-width",`${va}px`),je.setProperty("--radix-popper-available-height",`${At}px`),je.setProperty("--radix-popper-anchor-width",`${Mt}px`),je.setProperty("--radix-popper-anchor-height",`${Vt}px`)}}),b&&hl({element:b,padding:l}),sc({arrowWidth:v,arrowHeight:C}),c&&ml({strategy:"referenceHidden",...V})]}),k=g.setPlacementState;he(()=>(k(O),()=>{k(void 0)}),[O,k]);let[y,we]=cr(O),Te=fe(h);he(()=>{G&&Te?.()},[G,Te]);let tt=D.arrow?.x,Ke=D.arrow?.y,ee=D.arrow?.centerOffset!==0,[Y,te]=ue.useState();return he(()=>{x&&te(window.getComputedStyle(x).zIndex)},[x]),wt("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:G?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:wt(ac,{scope:a,placedSide:y,placedAlign:we,onArrowChange:w,arrowX:tt,arrowY:Ke,shouldHideArrow:ee,children:wt(_.div,{"data-side":y,"data-align":we,...m,ref:I,style:{...m.style,animation:G?void 0:"none"}})})})});yl.displayName=fr;var Rl="PopperArrow",rc={top:"bottom",right:"left",bottom:"top",left:"right"},Pl=ue.forwardRef(function(t,a){let{__scopePopper:o,...r}=t,n=oc(Rl,o),s=rc[n.placedSide];return wt("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:wt(Cl,{...r,ref:a,style:{...r.style,display:"block"}})})});Pl.displayName=Rl;function nc(e){return e!==null}var sc=e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,l=s?0:e.arrowWidth,i=s?0:e.arrowHeight,[u,f]=cr(a),d={start:"0%",center:"50%",end:"100%"}[f],c=(r.arrow?.x??0)+l/2,p=(r.arrow?.y??0)+i/2,h="",m="";return u==="bottom"?(h=s?d:`${c}px`,m=`${-i}px`):u==="top"?(h=s?d:`${c}px`,m=`${o.floating.height+i}px`):u==="right"?(h=`${-i}px`,m=s?d:`${p}px`):u==="left"&&(h=`${o.floating.width+i}px`,m=s?d:`${p}px`),{data:{x:h,y:m}}}});function cr(e){let[t,a="center"]=e.split("-");return[t,a]}var la=vl,no=Sl,so=yl,lo=Pl;import*as ne from"react";import{jsx as St}from"react/jsx-runtime";var pr="rovingFocusGroup.onEntryFocus",lc={bubbles:!1,cancelable:!0},ua="RovingFocusGroup",[mr,Al,uc]=Pa(ua),[ic,hr]=xe(ua,[uc]),[dc,fc]=ic(ua),Ml=ne.forwardRef((e,t)=>St(mr.Provider,{scope:e.__scopeRovingFocusGroup,children:St(mr.Slot,{scope:e.__scopeRovingFocusGroup,children:St(cc,{...e,ref:t})})}));Ml.displayName=ua;var cc=ne.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:o,loop:r=!1,dir:n,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:i,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...d}=e,c=ne.useRef(null),p=W(t,c),h=Ta(n),[m,g]=Ye({prop:s,defaultProp:l??null,onChange:i,caller:ua}),[x,L]=ne.useState(!1),I=fe(u),b=Al(a),w=ne.useRef(!1),[S,v]=ne.useState(0);return ne.useEffect(()=>{let C=c.current;if(C)return C.addEventListener(pr,I),()=>C.removeEventListener(pr,I)},[I]),St(dc,{scope:a,orientation:o,dir:h,loop:r,currentTabStopId:m,onItemFocus:ne.useCallback(C=>g(C),[g]),onItemShiftTab:ne.useCallback(()=>L(!0),[]),onFocusableItemAdd:ne.useCallback(()=>v(C=>C+1),[]),onFocusableItemRemove:ne.useCallback(()=>v(C=>C-1),[]),children:St(_.div,{tabIndex:x||S===0?-1:0,"data-orientation":o,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:M(e.onMouseDown,()=>{w.current=!0}),onFocus:M(e.onFocus,C=>{let F=!w.current;if(C.target===C.currentTarget&&F&&!x){let N=new CustomEvent(pr,lc);if(C.currentTarget.dispatchEvent(N),!N.defaultPrevented){let q=b().filter(O=>O.focusable),z=q.find(O=>O.active),V=q.find(O=>O.id===m),$=[z,V,...q].filter(Boolean).map(O=>O.ref.current);Ol($,f)}}w.current=!1}),onBlur:M(e.onBlur,()=>L(!1))})})}),Dl="RovingFocusGroupItem",Tl=ne.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:o=!0,active:r=!1,tabStopId:n,children:s,...l}=e,i=Le(),u=n||i,f=fc(Dl,a),d=f.currentTabStopId===u,c=Al(a),{onFocusableItemAdd:p,onFocusableItemRemove:h,currentTabStopId:m}=f;return ne.useEffect(()=>{if(o)return p(),()=>h()},[o,p,h]),St(mr.ItemSlot,{scope:a,id:u,focusable:o,active:r,children:St(_.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...l,ref:t,onMouseDown:M(e.onMouseDown,g=>{o?f.onItemFocus(u):g.preventDefault()}),onFocus:M(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:M(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){f.onItemShiftTab();return}if(g.target!==g.currentTarget)return;let x=hc(g,f.orientation,f.dir);if(x!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let I=c().filter(b=>b.focusable).map(b=>b.ref.current);if(x==="last")I.reverse();else if(x==="prev"||x==="next"){x==="prev"&&I.reverse();let b=I.indexOf(g.currentTarget);I=f.loop?gc(I,b+1):I.slice(b+1)}setTimeout(()=>Ol(I))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:m!=null}):s})})});Tl.displayName=Dl;var pc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mc(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function hc(e,t,a){let o=mc(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return pc[o]}function Ol(e,t=!1){let a=document.activeElement;for(let o of e)if(o===a||(o.focus({preventScroll:t}),document.activeElement!==a))return}function gc(e,t){return e.map((a,o)=>e[(t+o)%e.length])}var Fl=Ml,El=Tl;import{jsx as T}from"react/jsx-runtime";var gr=["Enter"," "],Lc=["ArrowDown","PageUp","Home"],Nl=["ArrowUp","PageDown","End"],Cc=[...Lc,...Nl],Ic={ltr:[...gr,"ArrowRight"],rtl:[...gr,"ArrowLeft"]},bc={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ca="Menu",[da,vc,wc]=Pa(ca),[yt,xr]=xe(ca,[wc,qt,hr]),pa=qt(),_l=hr(),[ql,nt]=yt(ca),[Sc,ma]=yt(ca),Ul=e=>{let{__scopeMenu:t,open:a=!1,children:o,dir:r,onOpenChange:n,modal:s=!0}=e,l=pa(t),[i,u]=A.useState(null),f=A.useRef(!1),d=fe(n),c=Ta(r);return A.useEffect(()=>{let p=()=>{f.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>f.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),T(la,{...l,children:T(ql,{scope:t,open:a,onOpenChange:d,content:i,onContentChange:u,children:T(Sc,{scope:t,onClose:A.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:c,modal:s,children:o})})})};Ul.displayName=ca;var yc="MenuAnchor",Lr=A.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e,r=pa(a);return T(no,{...r,...o,ref:t})});Lr.displayName=yc;var Cr="MenuPortal",[Rc,Hl]=yt(Cr,{forceMount:void 0}),zl=e=>{let{__scopeMenu:t,forceMount:a,children:o,container:r}=e,n=nt(Cr,t);return T(Rc,{scope:t,forceMount:a,children:T(Se,{present:a||n.open,children:T(ft,{asChild:!0,container:r,children:o})})})};zl.displayName=Cr;var De="MenuContent",[Pc,Ir]=yt(De),Gl=A.forwardRef((e,t)=>{let a=Hl(De,e.__scopeMenu),{forceMount:o=a.forceMount,...r}=e,n=nt(De,e.__scopeMenu),s=ma(De,e.__scopeMenu);return T(da.Provider,{scope:e.__scopeMenu,children:T(Se,{present:o||n.open,children:T(da.Slot,{scope:e.__scopeMenu,children:s.modal?T(kc,{...r,ref:t}):T(Ac,{...r,ref:t})})})})}),kc=A.forwardRef((e,t)=>{let a=nt(De,e.__scopeMenu),o=A.useRef(null),r=W(t,o);return A.useEffect(()=>{let n=o.current;if(n)return Wa(n)},[]),T(br,{...e,ref:r,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:M(e.onFocusOutside,n=>n.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})}),Ac=A.forwardRef((e,t)=>{let a=nt(De,e.__scopeMenu);return T(br,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>a.onOpenChange(!1)})}),Mc=Fe("MenuContent.ScrollLock"),br=A.forwardRef((e,t)=>{let{__scopeMenu:a,loop:o=!1,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:i,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:c,onDismiss:p,disableOutsideScroll:h,...m}=e,g=nt(De,a),x=ma(De,a),L=pa(a),I=_l(a),b=vc(a),[w,S]=A.useState(null),v=A.useRef(null),C=W(t,v,g.onContentChange),F=A.useRef(0),N=A.useRef(""),q=A.useRef(0),z=A.useRef(null),V=A.useRef("right"),U=A.useRef(0),$=h?ta:A.Fragment,O=h?{as:Mc,allowPinchZoom:!0}:void 0,G=k=>{let y=N.current+k,we=b().filter(te=>!te.disabled),Te=document.activeElement,tt=we.find(te=>te.ref.current===Te)?.textValue,Ke=we.map(te=>te.textValue),ee=zc(Ke,y,tt),Y=we.find(te=>te.textValue===ee)?.ref.current;(function te(Oe){N.current=Oe,window.clearTimeout(F.current),Oe!==""&&(F.current=window.setTimeout(()=>te(""),1e3))})(y),Y&&setTimeout(()=>Y.focus())};A.useEffect(()=>()=>window.clearTimeout(F.current),[]),Ea();let D=A.useCallback(k=>V.current===z.current?.side&&Wc(k,z.current?.area),[]);return T(Pc,{scope:a,searchRef:N,onItemEnter:A.useCallback(k=>{D(k)&&k.preventDefault()},[D]),onItemLeave:A.useCallback(k=>{D(k)||(v.current?.focus(),S(null))},[D]),onTriggerLeave:A.useCallback(k=>{D(k)&&k.preventDefault()},[D]),pointerGraceTimerRef:q,onPointerGraceIntentChange:A.useCallback(k=>{z.current=k},[]),children:T($,{...O,children:T(Zt,{asChild:!0,trapped:r,onMountAutoFocus:M(n,k=>{k.preventDefault(),v.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:T(dt,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:c,onDismiss:p,children:T(Fl,{asChild:!0,...I,dir:x.dir,orientation:"vertical",loop:o,currentTabStopId:w,onCurrentTabStopIdChange:S,onEntryFocus:M(i,k=>{x.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:T(so,{role:"menu","aria-orientation":"vertical","data-state":su(g.open),"data-radix-menu-content":"",dir:x.dir,...L,...m,ref:C,style:{outline:"none",...m.style},onKeyDown:M(m.onKeyDown,k=>{let we=k.target.closest("[data-radix-menu-content]")===k.currentTarget,Te=k.ctrlKey||k.altKey||k.metaKey,tt=k.key.length===1;we&&(k.key==="Tab"&&k.preventDefault(),!Te&&tt&&G(k.key));let Ke=v.current;if(k.target!==Ke||!Cc.includes(k.key))return;k.preventDefault();let Y=b().filter(te=>!te.disabled).map(te=>te.ref.current);Nl.includes(k.key)&&Y.reverse(),Uc(Y)}),onBlur:M(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(F.current),N.current="")}),onPointerMove:M(e.onPointerMove,fa(k=>{let y=k.target,we=U.current!==k.clientX;if(k.currentTarget.contains(y)&&we){let Te=k.clientX>U.current?"right":"left";V.current=Te,U.current=k.clientX}}))})})})})})})});Gl.displayName=De;var Dc="MenuGroup",vr=A.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e;return T(_.div,{role:"group",...o,ref:t})});vr.displayName=Dc;var Tc="MenuLabel",Wl=A.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e;return T(_.div,{...o,ref:t})});Wl.displayName=Tc;var uo="MenuItem",Bl="menu.itemSelect",fo=A.forwardRef((e,t)=>{let{disabled:a=!1,onSelect:o,...r}=e,n=A.useRef(null),s=ma(uo,e.__scopeMenu),l=Ir(uo,e.__scopeMenu),i=W(t,n),u=A.useRef(!1),f=()=>{let d=n.current;if(!a&&d){let c=new CustomEvent(Bl,{bubbles:!0,cancelable:!0});d.addEventListener(Bl,p=>o?.(p),{once:!0}),Ra(d,c),c.defaultPrevented?u.current=!1:s.onClose()}};return T(Vl,{...r,ref:i,disabled:a,onClick:M(e.onClick,f),onPointerDown:d=>{e.onPointerDown?.(d),u.current=!0},onPointerUp:M(e.onPointerUp,d=>{u.current||d.currentTarget?.click()}),onKeyDown:M(e.onKeyDown,d=>{let c=l.searchRef.current!=="";a||c&&d.key===" "||gr.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});fo.displayName=uo;var Vl=A.forwardRef((e,t)=>{let{__scopeMenu:a,disabled:o=!1,textValue:r,...n}=e,s=Ir(uo,a),l=_l(a),i=A.useRef(null),u=W(t,i),[f,d]=A.useState(!1),[c,p]=A.useState("");return A.useEffect(()=>{let h=i.current;h&&p((h.textContent??"").trim())},[n.children]),T(da.ItemSlot,{scope:a,disabled:o,textValue:r??c,children:T(El,{asChild:!0,...l,focusable:!o,children:T(_.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...n,ref:u,onPointerMove:M(e.onPointerMove,fa(h=>{o?s.onItemLeave(h):(s.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:M(e.onPointerLeave,fa(h=>s.onItemLeave(h))),onFocus:M(e.onFocus,()=>d(!0)),onBlur:M(e.onBlur,()=>d(!1))})})})}),Oc="MenuCheckboxItem",Xl=A.forwardRef((e,t)=>{let{checked:a=!1,onCheckedChange:o,...r}=e;return T(Zl,{scope:e.__scopeMenu,checked:a,children:T(fo,{role:"menuitemcheckbox","aria-checked":io(a)?"mixed":a,...r,ref:t,"data-state":yr(a),onSelect:M(r.onSelect,()=>o?.(io(a)?!0:!a),{checkForDefaultPrevented:!1})})})});Xl.displayName=Oc;var Kl="MenuRadioGroup",[Fc,Ec]=yt(Kl,{value:void 0,onValueChange:()=>{}}),jl=A.forwardRef((e,t)=>{let{value:a,onValueChange:o,...r}=e,n=fe(o);return T(Fc,{scope:e.__scopeMenu,value:a,onValueChange:n,children:T(vr,{...r,ref:t})})});jl.displayName=Kl;var $l="MenuRadioItem",Yl=A.forwardRef((e,t)=>{let{value:a,...o}=e,r=Ec($l,e.__scopeMenu),n=a===r.value;return T(Zl,{scope:e.__scopeMenu,checked:n,children:T(fo,{role:"menuitemradio","aria-checked":n,...o,ref:t,"data-state":yr(n),onSelect:M(o.onSelect,()=>r.onValueChange?.(a),{checkForDefaultPrevented:!1})})})});Yl.displayName=$l;var wr="MenuItemIndicator",[Zl,Bc]=yt(wr,{checked:!1}),Jl=A.forwardRef((e,t)=>{let{__scopeMenu:a,forceMount:o,...r}=e,n=Bc(wr,a);return T(Se,{present:o||io(n.checked)||n.checked===!0,children:T(_.span,{...r,ref:t,"data-state":yr(n.checked)})})});Jl.displayName=wr;var Nc="MenuSeparator",Ql=A.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e;return T(_.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Ql.displayName=Nc;var _c="MenuArrow",eu=A.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e,r=pa(a);return T(lo,{...r,...o,ref:t})});eu.displayName=_c;var Sr="MenuSub",[qc,tu]=yt(Sr),au=e=>{let{__scopeMenu:t,children:a,open:o=!1,onOpenChange:r}=e,n=nt(Sr,t),s=pa(t),[l,i]=A.useState(null),[u,f]=A.useState(null),d=fe(r);return A.useEffect(()=>(n.open===!1&&d(!1),()=>d(!1)),[n.open,d]),T(la,{...s,children:T(ql,{scope:t,open:o,onOpenChange:d,content:u,onContentChange:f,children:T(qc,{scope:t,contentId:Le(),triggerId:Le(),trigger:l,onTriggerChange:i,children:a})})})};au.displayName=Sr;var ia="MenuSubTrigger",ou=A.forwardRef((e,t)=>{let a=nt(ia,e.__scopeMenu),o=ma(ia,e.__scopeMenu),r=tu(ia,e.__scopeMenu),n=Ir(ia,e.__scopeMenu),s=A.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:i}=n,u={__scopeMenu:e.__scopeMenu},f=A.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return A.useEffect(()=>f,[f]),A.useEffect(()=>{let d=l.current;return()=>{window.clearTimeout(d),i(null)}},[l,i]),T(Lr,{asChild:!0,...u,children:T(Vl,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?r.contentId:void 0,"data-state":su(a.open),...e,ref:Yt(t,r.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:M(e.onPointerMove,fa(d=>{n.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!a.open&&!s.current&&(n.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{a.onOpenChange(!0),f()},100))})),onPointerLeave:M(e.onPointerLeave,fa(d=>{f();let c=a.content?.getBoundingClientRect();if(c){let p=a.content?.dataset.side,h=p==="right",m=h?-5:5,g=c[h?"left":"right"],x=c[h?"right":"left"];n.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x:g,y:c.top},{x,y:c.top},{x,y:c.bottom},{x:g,y:c.bottom}],side:p}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>n.onPointerGraceIntentChange(null),300)}else{if(n.onTriggerLeave(d),d.defaultPrevented)return;n.onPointerGraceIntentChange(null)}})),onKeyDown:M(e.onKeyDown,d=>{let c=n.searchRef.current!=="";e.disabled||c&&d.key===" "||Ic[o.dir].includes(d.key)&&(a.onOpenChange(!0),a.content?.focus(),d.preventDefault())})})})});ou.displayName=ia;var ru="MenuSubContent",nu=A.forwardRef((e,t)=>{let a=Hl(De,e.__scopeMenu),{forceMount:o=a.forceMount,align:r="start",...n}=e,s=nt(De,e.__scopeMenu),l=ma(De,e.__scopeMenu),i=tu(ru,e.__scopeMenu),u=A.useRef(null),f=W(t,u);return T(da.Provider,{scope:e.__scopeMenu,children:T(Se,{present:o||s.open,children:T(da.Slot,{scope:e.__scopeMenu,children:T(br,{id:i.contentId,"aria-labelledby":i.triggerId,...n,ref:f,align:r,side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{l.isUsingKeyboardRef.current&&u.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:M(e.onFocusOutside,d=>{d.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:M(e.onEscapeKeyDown,d=>{l.onClose(),d.preventDefault()}),onKeyDown:M(e.onKeyDown,d=>{let c=d.currentTarget.contains(d.target),p=bc[l.dir].includes(d.key);c&&p&&(s.onOpenChange(!1),i.trigger?.focus(),d.preventDefault())})})})})})});nu.displayName=ru;function su(e){return e?"open":"closed"}function io(e){return e==="indeterminate"}function yr(e){return io(e)?"indeterminate":e?"checked":"unchecked"}function Uc(e){let t=document.activeElement;for(let a of e)if(a===t||(a.focus(),document.activeElement!==t))return}function Hc(e,t){return e.map((a,o)=>e[(t+o)%e.length])}function zc(e,t,a){let r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,n=a?e.indexOf(a):-1,s=Hc(e,Math.max(n,0));r.length===1&&(s=s.filter(u=>u!==a));let i=s.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return i!==a?i:void 0}function Gc(e,t){let{x:a,y:o}=e,r=!1;for(let n=0,s=t.length-1;no!=c>o&&a<(d-u)*(o-f)/(c-f)+u&&(r=!r)}return r}function Wc(e,t){if(!t)return!1;let a={x:e.clientX,y:e.clientY};return Gc(a,t)}function fa(e){return t=>t.pointerType==="mouse"?e(t):void 0}var lu=Ul,uu=Lr,iu=zl,du=Gl,fu=vr,cu=Wl,pu=fo,mu=Xl,hu=jl,gu=Yl,xu=Jl,Lu=Ql,Cu=eu,Iu=au,bu=ou,vu=nu;var st={};Xt(st,{Arrow:()=>Cp,CheckboxItem:()=>mp,Content:()=>dp,DropdownMenu:()=>Rr,DropdownMenuArrow:()=>_r,DropdownMenuCheckboxItem:()=>Or,DropdownMenuContent:()=>Ar,DropdownMenuGroup:()=>Mr,DropdownMenuItem:()=>Tr,DropdownMenuItemIndicator:()=>Br,DropdownMenuLabel:()=>Dr,DropdownMenuPortal:()=>kr,DropdownMenuRadioGroup:()=>Fr,DropdownMenuRadioItem:()=>Er,DropdownMenuSeparator:()=>Nr,DropdownMenuSub:()=>Ru,DropdownMenuSubContent:()=>Ur,DropdownMenuSubTrigger:()=>qr,DropdownMenuTrigger:()=>Pr,Group:()=>fp,Item:()=>pp,ItemIndicator:()=>xp,Label:()=>cp,Portal:()=>ip,RadioGroup:()=>hp,RadioItem:()=>gp,Root:()=>lp,Separator:()=>Lp,Sub:()=>Ip,SubContent:()=>vp,SubTrigger:()=>bp,Trigger:()=>up,createDropdownMenuScope:()=>Kc});import*as oe from"react";import{jsx as se}from"react/jsx-runtime";var co="DropdownMenu",[Xc,Kc]=xe(co,[xr]),pe=xr(),[jc,wu]=Xc(co),Rr=e=>{let{__scopeDropdownMenu:t,children:a,dir:o,open:r,defaultOpen:n,onOpenChange:s,modal:l=!0}=e,i=pe(t),u=oe.useRef(null),[f,d]=Ye({prop:r,defaultProp:n??!1,onChange:s,caller:co});return se(jc,{scope:t,triggerId:Le(),triggerRef:u,contentId:Le(),open:f,onOpenChange:d,onOpenToggle:oe.useCallback(()=>d(c=>!c),[d]),modal:l,children:se(lu,{...i,open:f,onOpenChange:d,dir:o,modal:l,children:a})})};Rr.displayName=co;var Su="DropdownMenuTrigger",Pr=oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,disabled:o=!1,...r}=e,n=wu(Su,a),s=pe(a);return se(uu,{asChild:!0,...s,children:se(_.button,{type:"button",id:n.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?n.contentId:void 0,"data-state":n.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:Yt(t,n.triggerRef),onPointerDown:M(e.onPointerDown,l=>{!o&&l.button===0&&l.ctrlKey===!1&&(n.onOpenToggle(),n.open||l.preventDefault())}),onKeyDown:M(e.onKeyDown,l=>{o||(["Enter"," "].includes(l.key)&&n.onOpenToggle(),l.key==="ArrowDown"&&n.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Pr.displayName=Su;var $c="DropdownMenuPortal",kr=e=>{let{__scopeDropdownMenu:t,...a}=e,o=pe(t);return se(iu,{...o,...a})};kr.displayName=$c;var yu="DropdownMenuContent",Ar=oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=wu(yu,a),n=pe(a),s=oe.useRef(!1);return se(du,{id:r.contentId,"aria-labelledby":r.triggerId,...n,...o,ref:t,onCloseAutoFocus:M(e.onCloseAutoFocus,l=>{s.current||r.triggerRef.current?.focus(),s.current=!1,l.preventDefault()}),onInteractOutside:M(e.onInteractOutside,l=>{let i=l.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0,f=i.button===2||u;(!r.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ar.displayName=yu;var Yc="DropdownMenuGroup",Mr=oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=pe(a);return se(fu,{...r,...o,ref:t})});Mr.displayName=Yc;var Zc="DropdownMenuLabel",Dr=oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=pe(a);return se(cu,{...r,...o,ref:t})});Dr.displayName=Zc;var Jc="DropdownMenuItem",Tr=oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=pe(a);return se(pu,{...r,...o,ref:t})});Tr.displayName=Jc;var Qc="DropdownMenuCheckboxItem",Or=oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=pe(a);return se(mu,{...r,...o,ref:t})});Or.displayName=Qc;var ep="DropdownMenuRadioGroup",Fr=oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=pe(a);return se(hu,{...r,...o,ref:t})});Fr.displayName=ep;var tp="DropdownMenuRadioItem",Er=oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=pe(a);return se(gu,{...r,...o,ref:t})});Er.displayName=tp;var ap="DropdownMenuItemIndicator",Br=oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=pe(a);return se(xu,{...r,...o,ref:t})});Br.displayName=ap;var op="DropdownMenuSeparator",Nr=oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=pe(a);return se(Lu,{...r,...o,ref:t})});Nr.displayName=op;var rp="DropdownMenuArrow",_r=oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=pe(a);return se(Cu,{...r,...o,ref:t})});_r.displayName=rp;var Ru=e=>{let{__scopeDropdownMenu:t,children:a,open:o,onOpenChange:r,defaultOpen:n}=e,s=pe(t),[l,i]=Ye({prop:o,defaultProp:n??!1,onChange:r,caller:"DropdownMenuSub"});return se(Iu,{...s,open:l,onOpenChange:i,children:a})},np="DropdownMenuSubTrigger",qr=oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=pe(a);return se(bu,{...r,...o,ref:t})});qr.displayName=np;var sp="DropdownMenuSubContent",Ur=oe.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=pe(a);return se(vu,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ur.displayName=sp;var lp=Rr,up=Pr,ip=kr,dp=Ar,fp=Mr,cp=Dr,pp=Tr,mp=Or,hp=Fr,gp=Er,xp=Br,Lp=Nr,Cp=_r,Ip=Ru,bp=qr,vp=Ur;var po={};Xt(po,{Root:()=>Pp,Separator:()=>Hr});import*as ku from"react";import{jsx as wp}from"react/jsx-runtime";var Sp="Separator",Pu="horizontal",yp=["horizontal","vertical"],Hr=ku.forwardRef((e,t)=>{let{decorative:a,orientation:o=Pu,...r}=e,n=Rp(o)?o:Pu,l=a?{role:"none"}:{"aria-orientation":n==="vertical"?n:void 0,role:"separator"};return wp(_.div,{"data-orientation":n,...l,...r,ref:t})});Hr.displayName=Sp;function Rp(e){return yp.includes(e)}var Pp=Hr;var Je={};Xt(Je,{Arrow:()=>Yp,Content:()=>$p,Portal:()=>jp,Provider:()=>Vp,Root:()=>Xp,Tooltip:()=>Xr,TooltipArrow:()=>Zr,TooltipContent:()=>Yr,TooltipPortal:()=>$r,TooltipProvider:()=>Vr,TooltipTrigger:()=>Kr,Trigger:()=>Kp,createTooltipScope:()=>Ap});import*as E from"react";import{jsx as ie,jsxs as kp}from"react/jsx-runtime";var[mo,Ap]=xe("Tooltip",[qt]),ho=qt(),Au="TooltipProvider",Mp=700,zr="tooltip.open",[Dp,Wr]=mo(Au),Vr=e=>{let{__scopeTooltip:t,delayDuration:a=Mp,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:n}=e,s=E.useRef(!0),l=E.useRef(!1),i=E.useRef(0);return E.useEffect(()=>{let u=i.current;return()=>window.clearTimeout(u)},[]),ie(Dp,{scope:t,isOpenDelayedRef:s,delayDuration:a,onOpen:E.useCallback(()=>{o<=0||(window.clearTimeout(i.current),s.current=!1)},[o]),onClose:E.useCallback(()=>{o<=0||(window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.current=!0,o))},[o]),isPointerInTransitRef:l,onPointerInTransitChange:E.useCallback(u=>{l.current=u},[]),disableHoverableContent:r,children:n})};Vr.displayName=Au;var ha="Tooltip",[Tp,ga]=mo(ha),Xr=e=>{let{__scopeTooltip:t,children:a,open:o,defaultOpen:r,onOpenChange:n,disableHoverableContent:s,delayDuration:l}=e,i=Wr(ha,e.__scopeTooltip),u=ho(t),[f,d]=E.useState(null),c=Le(),p=E.useRef(0),h=s??i.disableHoverableContent,m=l??i.delayDuration,g=E.useRef(!1),[x,L]=Ye({prop:o,defaultProp:r??!1,onChange:v=>{v?(i.onOpen(),document.dispatchEvent(new CustomEvent(zr))):i.onClose(),n?.(v)},caller:ha}),I=E.useMemo(()=>x?g.current?"delayed-open":"instant-open":"closed",[x]),b=E.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,L(!0)},[L]),w=E.useCallback(()=>{window.clearTimeout(p.current),p.current=0,L(!1)},[L]),S=E.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,L(!0),p.current=0},m)},[m,L]);return E.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),ie(la,{...u,children:ie(Tp,{scope:t,contentId:c,open:x,stateAttribute:I,trigger:f,onTriggerChange:d,onTriggerEnter:E.useCallback(()=>{i.isOpenDelayedRef.current?S():b()},[i.isOpenDelayedRef,S,b]),onTriggerLeave:E.useCallback(()=>{h?w():(window.clearTimeout(p.current),p.current=0)},[w,h]),onOpen:b,onClose:w,disableHoverableContent:h,children:a})})};Xr.displayName=ha;var Gr="TooltipTrigger",Kr=E.forwardRef((e,t)=>{let{__scopeTooltip:a,...o}=e,r=ga(Gr,a),n=Wr(Gr,a),s=ho(a),l=E.useRef(null),i=W(t,l,r.onTriggerChange),u=E.useRef(!1),f=E.useRef(!1),d=E.useCallback(()=>u.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),ie(no,{asChild:!0,...s,children:ie(_.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:i,onPointerMove:M(e.onPointerMove,c=>{c.pointerType!=="touch"&&!f.current&&!n.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:M(e.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:M(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:M(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:M(e.onBlur,r.onClose),onClick:M(e.onClick,r.onClose)})})});Kr.displayName=Gr;var jr="TooltipPortal",[Op,Fp]=mo(jr,{forceMount:void 0}),$r=e=>{let{__scopeTooltip:t,forceMount:a,children:o,container:r}=e,n=ga(jr,t);return ie(Op,{scope:t,forceMount:a,children:ie(Se,{present:a||n.open,children:ie(ft,{asChild:!0,container:r,children:o})})})};$r.displayName=jr;var Ut="TooltipContent",Yr=E.forwardRef((e,t)=>{let a=Fp(Ut,e.__scopeTooltip),{forceMount:o=a.forceMount,side:r="top",...n}=e,s=ga(Ut,e.__scopeTooltip);return ie(Se,{present:o||s.open,children:s.disableHoverableContent?ie(Mu,{side:r,...n,ref:t}):ie(Ep,{side:r,...n,ref:t})})}),Ep=E.forwardRef((e,t)=>{let a=ga(Ut,e.__scopeTooltip),o=Wr(Ut,e.__scopeTooltip),r=E.useRef(null),n=W(t,r),[s,l]=E.useState(null),{trigger:i,onClose:u}=a,f=r.current,{onPointerInTransitChange:d}=o,c=E.useCallback(()=>{l(null),d(!1)},[d]),p=E.useCallback((h,m)=>{let g=h.currentTarget,x={x:h.clientX,y:h.clientY},L=qp(x,g.getBoundingClientRect()),I=Up(x,L),b=Hp(m.getBoundingClientRect()),w=Gp([...I,...b]);l(w),d(!0)},[d]);return E.useEffect(()=>()=>c(),[c]),E.useEffect(()=>{if(i&&f){let h=g=>p(g,f),m=g=>p(g,i);return i.addEventListener("pointerleave",h),f.addEventListener("pointerleave",m),()=>{i.removeEventListener("pointerleave",h),f.removeEventListener("pointerleave",m)}}},[i,f,p,c]),E.useEffect(()=>{if(s){let h=m=>{let g=m.target,x={x:m.clientX,y:m.clientY},L=i?.contains(g)||f?.contains(g),I=!zp(x,s);L?c():I&&(c(),u())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[i,f,s,u,c]),ie(Mu,{...e,ref:n})}),[Bp,Np]=mo(ha,{isInside:!1}),_p=ya("TooltipContent"),Mu=E.forwardRef((e,t)=>{let{__scopeTooltip:a,children:o,"aria-label":r,onEscapeKeyDown:n,onPointerDownOutside:s,...l}=e,i=ga(Ut,a),u=ho(a),{onClose:f}=i;return E.useEffect(()=>(document.addEventListener(zr,f),()=>document.removeEventListener(zr,f)),[f]),E.useEffect(()=>{if(i.trigger){let d=c=>{c.target instanceof Node&&c.target.contains(i.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[i.trigger,f]),ie(dt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:f,children:kp(so,{"data-state":i.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[ie(_p,{children:o}),ie(Bp,{scope:a,isInside:!0,children:ie(bn,{id:i.contentId,role:"tooltip",children:r||o})})]})})});Yr.displayName=Ut;var Du="TooltipArrow",Zr=E.forwardRef((e,t)=>{let{__scopeTooltip:a,...o}=e,r=ho(a);return Np(Du,a).isInside?null:ie(lo,{...r,...o,ref:t})});Zr.displayName=Du;function qp(e,t){let a=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),n=Math.abs(t.left-e.x);switch(Math.min(a,o,r,n)){case n:return"left";case r:return"right";case a:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Up(e,t,a=5){let o=[];switch(t){case"top":o.push({x:e.x-a,y:e.y+a},{x:e.x+a,y:e.y+a});break;case"bottom":o.push({x:e.x-a,y:e.y-a},{x:e.x+a,y:e.y-a});break;case"left":o.push({x:e.x+a,y:e.y-a},{x:e.x+a,y:e.y+a});break;case"right":o.push({x:e.x-a,y:e.y-a},{x:e.x-a,y:e.y+a});break}return o}function Hp(e){let{top:t,right:a,bottom:o,left:r}=e;return[{x:r,y:t},{x:a,y:t},{x:a,y:o},{x:r,y:o}]}function zp(e,t){let{x:a,y:o}=e,r=!1;for(let n=0,s=t.length-1;no!=c>o&&a<(d-u)*(o-f)/(c-f)+u&&(r=!r)}return r}function Gp(e){let t=e.slice();return t.sort((a,o)=>a.xo.x?1:a.yo.y?1:0),Wp(t)}function Wp(e){if(e.length<=1)return e.slice();let t=[];for(let o=0;o=2;){let n=t[t.length-1],s=t[t.length-2];if((n.x-s.x)*(r.y-s.y)>=(n.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();let a=[];for(let o=e.length-1;o>=0;o--){let r=e[o];for(;a.length>=2;){let n=a[a.length-1],s=a[a.length-2];if((n.x-s.x)*(r.y-s.y)>=(n.y-s.y)*(r.x-s.x))a.pop();else break}a.push(r)}return a.pop(),t.length===1&&a.length===1&&t[0].x===a[0].x&&t[0].y===a[0].y?t:t.concat(a)}var Vp=Vr,Xp=Xr,Kp=Kr,jp=$r,$p=Yr,Yp=Zr;function Tu(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),qu=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),Lo="-",Ou=[],Qp="arbitrary..",em=e=>{let t=am(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return tm(s);let l=s.split(Lo),i=l[0]===""&&l.length>1?1:0;return Uu(l,i,t)},getConflictingClassGroupIds:(s,l)=>{if(l){let i=o[s],u=a[s];return i?u?Zp(u,i):i:u||Ou}return a[s]||Ou}}},Uu=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],n=a.nextPart.get(r);if(n){let u=Uu(e,t+1,n);if(u)return u}let s=a.validators;if(s===null)return;let l=t===0?e.join(Lo):e.slice(t).join(Lo),i=s.length;for(let u=0;ue.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?Qp+o:void 0})(),am=e=>{let{theme:t,classGroups:a}=e;return om(a,t)},om=(e,t)=>{let a=qu();for(let o in e){let r=e[o];en(r,a,o,t)}return a},en=(e,t,a,o)=>{let r=e.length;for(let n=0;n{if(typeof e=="string"){nm(e,t,a);return}if(typeof e=="function"){sm(e,t,a,o);return}lm(e,t,a,o)},nm=(e,t,a)=>{let o=e===""?t:Hu(t,e);o.classGroupId=a},sm=(e,t,a,o)=>{if(um(e)){en(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Jp(a,e))},lm=(e,t,a,o)=>{let r=Object.entries(e),n=r.length;for(let s=0;s{let a=e,o=t.split(Lo),r=o.length;for(let n=0;n"isThemeGetter"in e&&e.isThemeGetter===!0,im=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(n,s)=>{a[n]=s,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(n){let s=a[n];if(s!==void 0)return s;if((s=o[n])!==void 0)return r(n,s),s},set(n,s){n in a?a[n]=s:r(n,s)}}},Qr="!",Fu=":",dm=[],Eu=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),fm=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=r=>{let n=[],s=0,l=0,i=0,u,f=r.length;for(let m=0;mi?u-i:void 0;return Eu(n,p,c,h)};if(t){let r=t+Fu,n=o;o=s=>s.startsWith(r)?n(s.slice(r.length)):Eu(dm,!1,s,void 0,!0)}if(a){let r=o;o=n=>a({className:n,parseClassName:r})}return o},cm=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],r=[];for(let n=0;n0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},pm=e=>({cache:im(e.cacheSize),parseClassName:fm(e),sortModifiers:cm(e),postfixLookupClassGroupIds:mm(e),...em(e)}),mm=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:n,postfixLookupClassGroupIds:s}=t,l=[],i=e.trim().split(hm),u="";for(let f=i.length-1;f>=0;f-=1){let d=i[f],{isExternal:c,modifiers:p,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:g}=a(d);if(c){u=d+(u.length>0?" "+u:u);continue}let x=!!g,L;if(x){let v=m.substring(0,g);L=o(v);let C=L&&s[L]?o(m):void 0;C&&C!==L&&(L=C,x=!1)}else L=o(m);if(!L){if(!x){u=d+(u.length>0?" "+u:u);continue}if(L=o(m),!L){u=d+(u.length>0?" "+u:u);continue}x=!1}let I=p.length===0?"":p.length===1?p[0]:n(p).join(":"),b=h?I+Qr:I,w=b+L;if(l.indexOf(w)>-1)continue;l.push(w);let S=r(L,x);for(let v=0;v0?" "+u:u)}return u},xm=(...e)=>{let t=0,a,o,r="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,r,n,s=i=>{let u=t.reduce((f,d)=>d(f),e());return a=pm(u),o=a.cache.get,r=a.cache.set,n=l,l(i)},l=i=>{let u=o(i);if(u)return u;let f=gm(i,a);return r(i,f),f};return n=s,(...i)=>n(xm(...i))},Cm=[],re=e=>{let t=a=>a[e]||Cm;return t.isThemeGetter=!0,t},Gu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Wu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Im=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,bm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vm=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,wm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Sm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ym=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lt=e=>Im.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),Xe=e=>!!e&&Number.isInteger(Number(e)),Jr=e=>e.endsWith("%")&&B(e.slice(0,-1)),Qe=e=>bm.test(e),Vu=()=>!0,Rm=e=>vm.test(e)&&!wm.test(e),tn=()=>!1,Pm=e=>Sm.test(e),km=e=>ym.test(e),Am=e=>!R(e)&&!P(e),Mm=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Dm=e=>ut(e,ju,tn),R=e=>Gu.test(e),Rt=e=>ut(e,$u,Rm),Bu=e=>ut(e,qm,B),Tm=e=>ut(e,Zu,Vu),Om=e=>ut(e,Yu,tn),Nu=e=>ut(e,Xu,tn),Fm=e=>ut(e,Ku,km),go=e=>ut(e,Ju,Pm),P=e=>Wu.test(e),xa=e=>Pt(e,$u),Em=e=>Pt(e,Yu),_u=e=>Pt(e,Xu),Bm=e=>Pt(e,ju),Nm=e=>Pt(e,Ku),xo=e=>Pt(e,Ju,!0),_m=e=>Pt(e,Zu,!0),ut=(e,t,a)=>{let o=Gu.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},Pt=(e,t,a=!1)=>{let o=Wu.exec(e);return o?o[1]?t(o[1]):a:!1},Xu=e=>e==="position"||e==="percentage",Ku=e=>e==="image"||e==="url",ju=e=>e==="length"||e==="size"||e==="bg-size",$u=e=>e==="length",qm=e=>e==="number",Yu=e=>e==="family-name",Zu=e=>e==="number"||e==="weight",Ju=e=>e==="shadow";var Um=()=>{let e=re("color"),t=re("font"),a=re("text"),o=re("font-weight"),r=re("tracking"),n=re("leading"),s=re("breakpoint"),l=re("container"),i=re("spacing"),u=re("radius"),f=re("shadow"),d=re("inset-shadow"),c=re("text-shadow"),p=re("drop-shadow"),h=re("blur"),m=re("perspective"),g=re("aspect"),x=re("ease"),L=re("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...b(),P,R],S=()=>["auto","hidden","clip","visible","scroll"],v=()=>["auto","contain","none"],C=()=>[P,R,i],F=()=>[lt,"full","auto",...C()],N=()=>[Xe,"none","subgrid",P,R],q=()=>["auto",{span:["full",Xe,P,R]},Xe,P,R],z=()=>[Xe,"auto",P,R],V=()=>["auto","min","max","fr",P,R],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...C()],G=()=>[lt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],D=()=>[lt,"screen","full","dvw","lvw","svw","min","max","fit",...C()],k=()=>[lt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],y=()=>[e,P,R],we=()=>[...b(),_u,Nu,{position:[P,R]}],Te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],tt=()=>["auto","cover","contain",Bm,Dm,{size:[P,R]}],Ke=()=>[Jr,xa,Rt],ee=()=>["","none","full",u,P,R],Y=()=>["",B,xa,Rt],te=()=>["solid","dashed","dotted","double"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[B,Jr,_u,Nu],va=()=>["","none",h,P,R],At=()=>["none",B,P,R],Mt=()=>["none",B,P,R],Vt=()=>[B,P,R],je=()=>[lt,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qe],breakpoint:[Qe],color:[Vu],container:[Qe],"drop-shadow":[Qe],ease:["in","out","in-out"],font:[Am],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qe],shadow:[Qe],spacing:["px",B],text:[Qe],"text-shadow":[Qe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",lt,R,P,g]}],container:["container"],"container-type":[{"@container":["","normal","size",P,R]}],"container-named":[Mm],columns:[{columns:[B,R,P,l]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:v()}],"overscroll-x":[{"overscroll-x":v()}],"overscroll-y":[{"overscroll-y":v()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Xe,"auto",P,R]}],basis:[{basis:[lt,"full","auto",l,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[B,lt,"auto","initial","none",R]}],grow:[{grow:["",B,P,R]}],shrink:[{shrink:["",B,P,R]}],order:[{order:[Xe,"first","last","none",P,R]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],"inline-size":[{inline:["auto",...D()]}],"min-inline-size":[{"min-inline":["auto",...D()]}],"max-inline-size":[{"max-inline":["none",...D()]}],"block-size":[{block:["auto",...k()]}],"min-block-size":[{"min-block":["auto",...k()]}],"max-block-size":[{"max-block":["none",...k()]}],w:[{w:[l,"screen",...G()]}],"min-w":[{"min-w":[l,"screen","none",...G()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",a,xa,Rt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,_m,Tm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Jr,R]}],"font-family":[{font:[Em,Om,t]}],"font-features":[{"font-features":[R]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,P,R]}],"line-clamp":[{"line-clamp":[B,"none",P,Bu]}],leading:[{leading:[n,...C()]}],"list-image":[{"list-image":["none",P,R]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[B,"from-font","auto",P,Rt]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[B,"auto",P,R]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"tab-size":[{tab:[Xe,P,R]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,R]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P,R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:we()}],"bg-repeat":[{bg:Te()}],"bg-size":[{bg:tt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xe,P,R],radial:["",P,R],conic:[Xe,P,R]},Nm,Fm]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:Ke()}],"gradient-via-pos":[{via:Ke()}],"gradient-to-pos":[{to:Ke()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-bs":[{"border-bs":Y()}],"border-w-be":[{"border-be":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-bs":[{"border-bs":y()}],"border-color-be":[{"border-be":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[B,P,R]}],"outline-w":[{outline:["",B,xa,Rt]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",f,xo,go]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",d,xo,go]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[B,Rt]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",c,xo,go]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[B,P,R]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[B]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[P,R]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[B]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:we()}],"mask-repeat":[{mask:Te()}],"mask-size":[{mask:tt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,R]}],filter:[{filter:["","none",P,R]}],blur:[{blur:va()}],brightness:[{brightness:[B,P,R]}],contrast:[{contrast:[B,P,R]}],"drop-shadow":[{"drop-shadow":["","none",p,xo,go]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",B,P,R]}],"hue-rotate":[{"hue-rotate":[B,P,R]}],invert:[{invert:["",B,P,R]}],saturate:[{saturate:[B,P,R]}],sepia:[{sepia:["",B,P,R]}],"backdrop-filter":[{"backdrop-filter":["","none",P,R]}],"backdrop-blur":[{"backdrop-blur":va()}],"backdrop-brightness":[{"backdrop-brightness":[B,P,R]}],"backdrop-contrast":[{"backdrop-contrast":[B,P,R]}],"backdrop-grayscale":[{"backdrop-grayscale":["",B,P,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,P,R]}],"backdrop-invert":[{"backdrop-invert":["",B,P,R]}],"backdrop-opacity":[{"backdrop-opacity":[B,P,R]}],"backdrop-saturate":[{"backdrop-saturate":[B,P,R]}],"backdrop-sepia":[{"backdrop-sepia":["",B,P,R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,R]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[B,"initial",P,R]}],ease:[{ease:["linear","initial",x,P,R]}],delay:[{delay:[B,P,R]}],animate:[{animate:["none",L,P,R]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,P,R]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:At()}],"rotate-x":[{"rotate-x":At()}],"rotate-y":[{"rotate-y":At()}],"rotate-z":[{"rotate-z":At()}],scale:[{scale:Mt()}],"scale-x":[{"scale-x":Mt()}],"scale-y":[{"scale-y":Mt()}],"scale-z":[{"scale-z":Mt()}],"scale-3d":["scale-3d"],skew:[{skew:Vt()}],"skew-x":[{"skew-x":Vt()}],"skew-y":[{"skew-y":Vt()}],transform:[{transform:[P,R,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:je()}],"translate-x":[{"translate-x":je()}],"translate-y":[{"translate-y":je()}],"translate-z":[{"translate-z":je()}],"translate-none":["translate-none"],zoom:[{zoom:[Xe,P,R]}],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P,R]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":y()}],"scrollbar-track-color":[{"scrollbar-track":y()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P,R]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[B,xa,Rt,Bu]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Co=Lm(Um);function H(...e){return Co(Ht(e))}import{jsx as La,jsxs as OC}from"react/jsx-runtime";function Qu({...e}){return La(st.Root,{"data-slot":"dropdown-menu",...e})}function ei({...e}){return La(st.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function ti({className:e,sideOffset:t=4,...a}){return La(st.Portal,{children:La(st.Content,{"data-slot":"dropdown-menu-content",sideOffset:t,className:H("z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...a})})}function ai({className:e,inset:t,variant:a="default",...o}){return La(st.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":a,className:H("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",e),...o})}import*as be from"react";var oi=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ri=Ht,Io=(e,t)=>a=>{var o;if(t?.variants==null)return ri(e,a?.class,a?.className);let{variants:r,defaultVariants:n}=t,s=Object.keys(r).map(u=>{let f=a?.[u],d=n?.[u];if(f===null)return null;let c=oi(f)||oi(d);return r[u][c]}),l=a&&Object.entries(a).reduce((u,f)=>{let[d,c]=f;return c===void 0||(u[d]=c),u},{}),i=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,f)=>{let{class:d,className:c,...p}=f;return Object.entries(p).every(h=>{let[m,g]=h;return Array.isArray(g)?g.includes({...n,...l}[m]):{...n,...l}[m]===g})?[...u,d,c]:u},[]);return ri(e,s,i,a?.class,a?.className)};import*as bo from"react";var an=768;function ni(){let[e,t]=bo.useState(void 0);return bo.useEffect(()=>{let a=window.matchMedia(`(max-width: ${an-1}px)`),o=()=>{t(window.innerWidtha.removeEventListener("change",o)},[]),!!e}function me(...e){return Co(Ht(e))}import{jsx as zm}from"react/jsx-runtime";var Hm=Io("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function vo({className:e,variant:t="default",size:a="default",asChild:o=!1,...r}){let n=o?ot.Root:"button";return zm(n,{"data-slot":"button","data-variant":t,"data-size":a,className:H(Hm({variant:t,size:a,className:e})),...r})}import{jsx as Gm}from"react/jsx-runtime";function si({className:e,type:t,...a}){return Gm("input",{type:t,"data-slot":"input",className:H("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...a})}import{jsx as Wm}from"react/jsx-runtime";function on({className:e,orientation:t="horizontal",decorative:a=!0,...o}){return Wm(po.Root,{"data-slot":"separator",decorative:a,orientation:t,className:H("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...o})}import{jsx as et,jsxs as rn}from"react/jsx-runtime";function li({...e}){return et(He.Root,{"data-slot":"sheet",...e})}function Vm({...e}){return et(He.Portal,{"data-slot":"sheet-portal",...e})}function Xm({className:e,...t}){return et(He.Overlay,{"data-slot":"sheet-overlay",className:H("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...t})}function ui({className:e,children:t,side:a="right",showCloseButton:o=!0,...r}){return rn(Vm,{children:[et(Xm,{}),rn(He.Content,{"data-slot":"sheet-content",className:H("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500",a==="right"&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",a==="left"&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",a==="top"&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",a==="bottom"&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e),...r,children:[t,o&&rn(He.Close,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary",children:[et($t,{className:"size-4"}),et("span",{className:"sr-only",children:"Close"})]})]})]})}function ii({className:e,...t}){return et("div",{"data-slot":"sheet-header",className:H("flex flex-col gap-1.5 p-4",e),...t})}function di({className:e,...t}){return et(He.Title,{"data-slot":"sheet-title",className:H("font-semibold text-foreground",e),...t})}function fi({className:e,...t}){return et(He.Description,{"data-slot":"sheet-description",className:H("text-sm text-muted-foreground",e),...t})}import{jsx as sI}from"react/jsx-runtime";import{jsx as Ca,jsxs as Km}from"react/jsx-runtime";function ci({delayDuration:e=0,...t}){return Ca(Je.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function pi({...e}){return Ca(Je.Root,{"data-slot":"tooltip",...e})}function mi({...e}){return Ca(Je.Trigger,{"data-slot":"tooltip-trigger",...e})}function hi({className:e,sideOffset:t=0,children:a,...o}){return Ca(Je.Portal,{children:Km(Je.Content,{"data-slot":"tooltip-content",sideOffset:t,className:H("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...o,children:[a,Ca(Je.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}import{jsx as j,jsxs as Ia}from"react/jsx-runtime";var jm="sidebar_state",$m=60*60*24*7,Ym="16rem",Zm="18rem",Jm="3rem",Qm="b",gi=be.createContext(null);function zt(){let e=be.useContext(gi);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function xi({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:n,...s}){let l=ni(),[i,u]=be.useState(!1),[f,d]=be.useState(e),c=t??f,p=be.useCallback(x=>{let L=typeof x=="function"?x(c):x;a?a(L):d(L),document.cookie=`${jm}=${L}; path=/; max-age=${$m}`},[a,c]),h=be.useCallback(()=>l?u(x=>!x):p(x=>!x),[l,p,u]);be.useEffect(()=>{let x=L=>{L.key===Qm&&(L.metaKey||L.ctrlKey)&&(L.preventDefault(),h())};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[h]);let m=c?"expanded":"collapsed",g=be.useMemo(()=>({state:m,open:c,setOpen:p,isMobile:l,openMobile:i,setOpenMobile:u,toggleSidebar:h}),[m,c,p,l,i,u,h]);return j(gi.Provider,{value:g,children:j(ci,{delayDuration:0,children:j("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Ym,"--sidebar-width-icon":Jm,...r},className:me("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",o),...s,children:n})})})}function Li({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...n}){let{isMobile:s,state:l,openMobile:i,setOpenMobile:u}=zt();return a==="none"?j("div",{"data-slot":"sidebar",className:me("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",o),...n,children:r}):s?j(li,{open:i,onOpenChange:u,...n,children:Ia(ui,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Zm},side:e,children:[Ia(ii,{className:"sr-only",children:[j(di,{children:"Sidebar"}),j(fi,{children:"Displays the mobile sidebar."})]}),j("div",{className:"flex h-full w-full flex-col",children:r})]})}):Ia("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":l,"data-collapsible":l==="collapsed"?a:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[j("div",{"data-slot":"sidebar-gap",className:me("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),j("div",{"data-slot":"sidebar-container",className:me("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...n,children:j("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:r})})]})}function Ci({className:e,onClick:t,...a}){let{toggleSidebar:o}=zt();return Ia(vo,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:me("size-7",e),onClick:r=>{t?.(r),o()},...a,children:[j(at,{}),j("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Ii({className:e,...t}){let{toggleSidebar:a}=zt();return j("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:a,title:"Toggle Sidebar",className:me("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function bi({className:e,...t}){return j("main",{"data-slot":"sidebar-inset",className:me("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function vi({className:e,...t}){return j(si,{"data-slot":"sidebar-input","data-sidebar":"input",className:me("h-8 w-full bg-background shadow-none",e),...t})}function wi({className:e,...t}){return j("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:me("flex flex-col gap-2 p-2",e),...t})}function Si({className:e,...t}){return j("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:me("flex flex-col gap-2 p-2",e),...t})}function yi({className:e,...t}){return j("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:me("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Ri({className:e,...t}){return j("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:me("relative flex w-full min-w-0 flex-col p-2",e),...t})}function wo({className:e,...t}){return j("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:me("flex w-full min-w-0 flex-col gap-1",e),...t})}function So({className:e,...t}){return j("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:me("group/menu-item relative",e),...t})}var eh=Io("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function yo({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:n,...s}){let l=e?ot.Root:"button",{isMobile:i,state:u}=zt(),f=j(l,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":o,"data-active":t,className:me(eh({variant:a,size:o}),n),...s});return r?(typeof r=="string"&&(r={children:r}),Ia(pi,{children:[j(mi,{asChild:!0,children:f}),j(hi,{side:"right",align:"center",hidden:u!=="collapsed"||i,...r})]})):f}import{jsx as it,jsxs as Pi}from"react/jsx-runtime";function ki({items:e}){let{isMobile:t}=zt();return it(Ri,{children:it(wo,{children:e.map(a=>it(Qu,{children:Pi(So,{children:[it(ei,{asChild:!0,children:Pi(yo,{className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",children:[a.title," ",it($e,{className:"ml-auto"})]})}),a.items?.length?it(ti,{side:t?"bottom":"right",align:t?"end":"start",className:"min-w-56 rounded-lg",children:a.items.map(o=>it(ai,{asChild:!0,children:it("a",{href:o.url,children:o.title})},o.title))}):null]})},a.title))})})}import{jsx as ba}from"react/jsx-runtime";function Ai({className:e,...t}){return ba("div",{"data-slot":"card",className:H("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...t})}function Mi({className:e,...t}){return ba("div",{"data-slot":"card-header",className:H("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Di({className:e,...t}){return ba("div",{"data-slot":"card-title",className:H("leading-none font-semibold",e),...t})}function Ti({className:e,...t}){return ba("div",{"data-slot":"card-description",className:H("text-sm text-muted-foreground",e),...t})}function Oi({className:e,...t}){return ba("div",{"data-slot":"card-content",className:H("px-6",e),...t})}import{jsx as Gt,jsxs as nn}from"react/jsx-runtime";function Fi(){return nn(Ai,{className:"gap-2 py-4 shadow-none",children:[nn(Mi,{className:"px-4",children:[Gt(Di,{className:"text-sm",children:"Subscribe to our newsletter"}),Gt(Ti,{children:"Opt-in to receive updates and news about the sidebar."})]}),Gt(Oi,{className:"px-4",children:Gt("form",{children:nn("div",{className:"grid gap-2.5",children:[Gt(vi,{type:"email",placeholder:"Email"}),Gt(vo,{className:"w-full bg-sidebar-primary text-sidebar-primary-foreground shadow-none",size:"sm",children:"Subscribe"})]})})})]})}import{jsx as ve,jsxs as sn}from"react/jsx-runtime";var th={navMain:[{title:"Getting Started",url:"#",items:[{title:"Installation",url:"#"},{title:"Project Structure",url:"#"}]},{title:"Build Your Application",url:"#",items:[{title:"Routing",url:"#"},{title:"Data Fetching",url:"#",isActive:!0},{title:"Rendering",url:"#"},{title:"Caching",url:"#"},{title:"Styling",url:"#"},{title:"Optimizing",url:"#"},{title:"Configuring",url:"#"},{title:"Testing",url:"#"},{title:"Authentication",url:"#"},{title:"Deploying",url:"#"},{title:"Upgrading",url:"#"},{title:"Examples",url:"#"}]},{title:"API Reference",url:"#",items:[{title:"Components",url:"#"},{title:"File Conventions",url:"#"},{title:"Functions",url:"#"},{title:"next.config.js Options",url:"#"},{title:"CLI",url:"#"},{title:"Edge Runtime",url:"#"}]},{title:"Architecture",url:"#",items:[{title:"Accessibility",url:"#"},{title:"Fast Refresh",url:"#"},{title:"Next.js Compiler",url:"#"},{title:"Supported Browsers",url:"#"},{title:"Turbopack",url:"#"}]}]};function Ei({...e}){return sn(Li,{...e,children:[ve(wi,{children:ve(wo,{children:ve(So,{children:ve(yo,{size:"lg",asChild:!0,children:sn("a",{href:"#",children:[ve("div",{className:"flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground",children:ve(jt,{className:"size-4"})}),sn("div",{className:"flex flex-col gap-0.5 leading-none",children:[ve("span",{className:"font-medium",children:"Documentation"}),ve("span",{className:"",children:"v1.0.0"})]})]})})})})}),ve(yi,{children:ve(ki,{items:th.navMain})}),ve(Si,{children:ve("div",{className:"p-1",children:ve(Fi,{})})}),ve(Ii,{})]})}import{jsx as kt,jsxs as $I}from"react/jsx-runtime";function Bi({...e}){return kt("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Ni({className:e,...t}){return kt("ol",{"data-slot":"breadcrumb-list",className:H("flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground sm:gap-2.5",e),...t})}function ln({className:e,...t}){return kt("li",{"data-slot":"breadcrumb-item",className:H("inline-flex items-center gap-1.5",e),...t})}function _i({asChild:e,className:t,...a}){let o=e?ot.Root:"a";return kt(o,{"data-slot":"breadcrumb-link",className:H("transition-colors hover:text-foreground",t),...a})}function qi({className:e,...t}){return kt("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:H("font-normal text-foreground",e),...t})}function Ui({children:e,className:t,...a}){return kt("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:H("[&>svg]:size-3.5",t),...a,children:e??kt(Kt,{})})}import{jsx as ye,jsxs as Wt}from"react/jsx-runtime";function ah(){return Wt(xi,{children:[ye(Ei,{}),Wt(bi,{children:[Wt("header",{className:"flex h-16 shrink-0 items-center gap-2 border-b px-4",children:[ye(Ci,{className:"-ml-1"}),ye(on,{orientation:"vertical",className:"mr-2 data-[orientation=vertical]:h-4"}),ye(Bi,{children:Wt(Ni,{children:[ye(ln,{className:"hidden md:block",children:ye(_i,{href:"#",children:"Build Your Application"})}),ye(Ui,{className:"hidden md:block"}),ye(ln,{children:ye(qi,{children:"Data Fetching"})})]})})]}),Wt("div",{className:"flex flex-1 flex-col gap-4 p-4",children:[Wt("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[ye("div",{className:"aspect-video rounded-xl bg-muted/50"}),ye("div",{className:"aspect-video rounded-xl bg-muted/50"}),ye("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),ye("div",{className:"min-h-[100vh] flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]})]})}export{ah as default}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/chevron-right.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/ellipsis.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/gallery-vertical-end.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/panel-left.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/x.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/868c14a60cbb137a8ebc97bb07e0169d4d539a21f8b91b504f13ef2560331704 b/b/868c14a60cbb137a8ebc97bb07e0169d4d539a21f8b91b504f13ef2560331704 new file mode 100644 index 0000000000000000000000000000000000000000..cbd718efdb2d19d1d7d2c2cdf3e9eb0ae061b601 --- /dev/null +++ b/b/868c14a60cbb137a8ebc97bb07e0169d4d539a21f8b91b504f13ef2560331704 @@ -0,0 +1,56 @@ +var Ua=Object.defineProperty;var Ue=(e,a)=>{for(var t in a)Ua(e,t,{get:a[t],enumerable:!0})};function Oe(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(a=0;atypeof e=="boolean"?`${e}`:e===0?"0":e,Ge=le,$=(e,a)=>t=>{var o;if(a?.variants==null)return Ge(e,t?.class,t?.className);let{variants:l,defaultVariants:r}=a,u=Object.keys(l).map(i=>{let x=t?.[i],L=r?.[i];if(x===null)return null;let I=He(x)||He(L);return l[i][I]}),f=t&&Object.entries(t).reduce((i,x)=>{let[L,I]=x;return I===void 0||(i[L]=I),i},{}),n=a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((i,x)=>{let{class:L,className:I,...C}=x;return Object.entries(C).every(h=>{let[S,k]=h;return Array.isArray(k)?k.includes({...r,...f}[S]):{...r,...f}[S]===k})?[...i,L,I]:i},[]);return Ge(e,u,n,t?.class,t?.className)};import*as Ke from"react";import*as Za from"react-dom";var Z={};Ue(Z,{Root:()=>Ha,Slot:()=>Ha,Slottable:()=>Ga,createSlot:()=>ue,createSlottable:()=>Xe});import*as b from"react";import*as Ve from"react";function ze(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function Oa(...e){return a=>{let t=!1,o=e.map(l=>{let r=ze(l,a);return!t&&typeof r=="function"&&(t=!0),r});if(t)return()=>{for(let l=0;l{let{children:l,...r}=t,u=null,f=!1,n=[];We(l)&&typeof re=="function"&&(l=re(l._payload)),b.Children.forEach(l,I=>{if(Wa(I)){f=!0;let C=I,h="child"in C.props?C.props.child:C.props.children;We(h)&&typeof re=="function"&&(h=re(h._payload)),u=za(C,h),n.push(u?.props?.children)}else n.push(I)}),u?u=b.cloneElement(u,void 0,n):!f&&b.Children.count(l)===1&&b.isValidElement(l)&&(u=l);let i=u?Ea(u):void 0,x=Ee(o,i);if(!u){if(l||l===0)throw new Error(f?_a(e):Ka(e));return l}let L=Va(r,u.props??{});return u.type!==b.Fragment&&(L.ref=o?x:i),b.cloneElement(u,L)});return a.displayName=`${e}.Slot`,a}var Ha=ue("Slot"),Ne=Symbol.for("radix.slottable");function Xe(e){let a=t=>"child"in t?t.children(t.child):t.children;return a.displayName=`${e}.Slottable`,a.__radixId=Ne,a}var Ga=Xe("Slottable"),za=(e,a)=>{if("child"in e.props){let t=e.props.child;return b.isValidElement(t)?b.cloneElement(t,void 0,e.props.children(t.props.children)):null}return b.isValidElement(a)?a:null};function Va(e,a){let t={...a};for(let o in a){let l=e[o],r=a[o];/^on[A-Z]/.test(o)?l&&r?t[o]=(...f)=>{let n=r(...f);return l(...f),n}:l&&(t[o]=l):o==="style"?t[o]={...l,...r}:o==="className"&&(t[o]=[l,r].filter(Boolean).join(" "))}return{...e,...t}}function Ea(e){let a=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning;return t?e.ref:(a=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function Wa(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ne}var Na=Symbol.for("react.lazy");function We(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Na&&"_payload"in e&&Xa(e._payload)}function Xa(e){return typeof e=="object"&&e!==null&&"then"in e}var Ka=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,_a=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,re=b[" use ".trim().toString()];import{jsx as Ja}from"react/jsx-runtime";var $a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=$a.reduce((e,a)=>{let t=ue(`Primitive.${a}`),o=Ke.forwardRef((l,r)=>{let{asChild:u,...f}=l,n=u?t:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Ja(n,{...f,ref:r})});return o.displayName=`Primitive.${a}`,{...e,[a]:o}},{});import*as D from"react";import{jsx as ja}from"react/jsx-runtime";function _e(e,a=[]){let t=[];function o(r,u){let f=D.createContext(u);f.displayName=r+"Context";let n=t.length;t=[...t,u];let i=L=>{let{scope:I,children:C,...h}=L,S=I?.[e]?.[n]||f,k=D.useMemo(()=>h,Object.values(h));return ja(S.Provider,{value:k,children:C})};i.displayName=r+"Provider";function x(L,I){let C=I?.[e]?.[n]||f,h=D.useContext(C);if(h)return h;if(u!==void 0)return u;throw new Error(`\`${L}\` must be used within \`${r}\``)}return[i,x]}let l=()=>{let r=t.map(u=>D.createContext(u));return function(f){let n=f?.[e]||r;return D.useMemo(()=>({[`__scope${e}`]:{...f,[e]:n}}),[f,n])}};return l.scopeName=e,[o,Qa(l,...a)]}function Qa(...e){let a=e[0];if(e.length===1)return a;let t=()=>{let o=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(r){let u=o.reduce((f,{useScope:n,scopeName:i})=>{let L=n(r)[`__scope${i}`];return{...f,...L}},{});return D.useMemo(()=>({[`__scope${a.scopeName}`]:u}),[u])}};return t.scopeName=a.scopeName,t}var j={};Ue(j,{Indicator:()=>dt,Progress:()=>we,ProgressIndicator:()=>ke,Root:()=>ut,createProgressScope:()=>et});import*as ge from"react";import{jsx as Ce}from"react/jsx-runtime";var he="Progress",Se=100,[Ya,et]=_e(he),[at,tt]=Ya(he),we=ge.forwardRef((e,a)=>{let{__scopeProgress:t,value:o=null,max:l,getValueLabel:r=ot,...u}=e;(l||l===0)&&!Ze(l)&&console.error(lt(`${l}`,"Progress"));let f=Ze(l)?l:Se;o!==null&&!Je(o,f)&&console.error(rt(`${o}`,"Progress"));let n=Je(o,f)?o:null,i=de(n)?r(n,f):void 0;return Ce(at,{scope:t,value:n,max:f,children:Ce(Ie.div,{"aria-valuemax":f,"aria-valuemin":0,"aria-valuenow":de(n)?n:void 0,"aria-valuetext":i,role:"progressbar","data-state":je(n,f),"data-value":n??void 0,"data-max":f,...u,ref:a})})});we.displayName=he;var $e="ProgressIndicator",ke=ge.forwardRef((e,a)=>{let{__scopeProgress:t,...o}=e,l=tt($e,t);return Ce(Ie.div,{"data-state":je(l.value,l.max),"data-value":l.value??void 0,"data-max":l.max,...o,ref:a})});ke.displayName=$e;function ot(e,a){return`${Math.round(e/a*100)}%`}function je(e,a){return e==null?"indeterminate":e===a?"complete":"loading"}function de(e){return typeof e=="number"}function Ze(e){return de(e)&&!isNaN(e)&&e>0}function Je(e,a){return de(e)&&!isNaN(e)&&e<=a&&e>=0}function lt(e,a){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${a}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Se}\`.`}function rt(e,a){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${a}\`. The \`value\` prop must be: + - a positive number + - less than the value passed to \`max\` (or ${Se} if no \`max\` prop is set) + - \`null\` or \`undefined\` if the progress is indeterminate. + +Defaulting to \`null\`.`}var ut=we,dt=ke;var st=(e,a)=>{let t=new Array(e.length+a.length);for(let o=0;o({classGroupId:e,validator:a}),la=(e=new Map,a=null,t)=>({nextPart:e,validators:a,classGroupId:t}),ie="-",Qe=[],it="arbitrary..",nt=e=>{let a=pt(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return ct(u);let f=u.split(ie),n=f[0]===""&&f.length>1?1:0;return ra(f,n,a)},getConflictingClassGroupIds:(u,f)=>{if(f){let n=o[u],i=t[u];return n?i?st(i,n):n:i||Qe}return t[u]||Qe}}},ra=(e,a,t)=>{if(e.length-a===0)return t.classGroupId;let l=e[a],r=t.nextPart.get(l);if(r){let i=ra(e,a+1,r);if(i)return i}let u=t.validators;if(u===null)return;let f=a===0?e.join(ie):e.slice(a).join(ie),n=u.length;for(let i=0;ie.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let a=e.slice(1,-1),t=a.indexOf(":"),o=a.slice(0,t);return o?it+o:void 0})(),pt=e=>{let{theme:a,classGroups:t}=e;return mt(t,a)},mt=(e,a)=>{let t=la();for(let o in e){let l=e[o];Ae(l,t,o,a)}return t},Ae=(e,a,t,o)=>{let l=e.length;for(let r=0;r{if(typeof e=="string"){xt(e,a,t);return}if(typeof e=="function"){It(e,a,t,o);return}Ct(e,a,t,o)},xt=(e,a,t)=>{let o=e===""?a:ua(a,e);o.classGroupId=t},It=(e,a,t,o)=>{if(gt(e)){Ae(e(o),a,t,o);return}a.validators===null&&(a.validators=[]),a.validators.push(ft(t,e))},Ct=(e,a,t,o)=>{let l=Object.entries(e),r=l.length;for(let u=0;u{let t=e,o=a.split(ie),l=o.length;for(let r=0;r"isThemeGetter"in e&&e.isThemeGetter===!0,ht=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,t=Object.create(null),o=Object.create(null),l=(r,u)=>{t[r]=u,a++,a>e&&(a=0,o=t,t=Object.create(null))};return{get(r){let u=t[r];if(u!==void 0)return u;if((u=o[r])!==void 0)return l(r,u),u},set(r,u){r in t?t[r]=u:l(r,u)}}},Pe="!",Ye=":",St=[],ea=(e,a,t,o,l)=>({modifiers:e,hasImportantModifier:a,baseClassName:t,maybePostfixModifierPosition:o,isExternal:l}),wt=e=>{let{prefix:a,experimentalParseClassName:t}=e,o=l=>{let r=[],u=0,f=0,n=0,i,x=l.length;for(let S=0;Sn?i-n:void 0;return ea(r,C,I,h)};if(a){let l=a+Ye,r=o;o=u=>u.startsWith(l)?r(u.slice(l.length)):ea(St,!1,u,void 0,!0)}if(t){let l=o;o=r=>t({className:r,parseClassName:l})}return o},kt=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{a.set(t,1e6+o)}),t=>{let o=[],l=[];for(let r=0;r0&&(l.sort(),o.push(...l),l=[]),o.push(u)):l.push(u)}return l.length>0&&(l.sort(),o.push(...l)),o}},bt=e=>({cache:ht(e.cacheSize),parseClassName:wt(e),sortModifiers:kt(e),postfixLookupClassGroupIds:Pt(e),...nt(e)}),Pt=e=>{let a=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let o=0;o{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:l,sortModifiers:r,postfixLookupClassGroupIds:u}=a,f=[],n=e.trim().split(At),i="";for(let x=n.length-1;x>=0;x-=1){let L=n[x],{isExternal:I,modifiers:C,hasImportantModifier:h,baseClassName:S,maybePostfixModifierPosition:k}=t(L);if(I){i=L+(i.length>0?" "+i:i);continue}let G=!!k,B;if(G){let F=S.substring(0,k);B=o(F);let c=B&&u[B]?o(S):void 0;c&&c!==B&&(B=c,G=!1)}else B=o(S);if(!B){if(!G){i=L+(i.length>0?" "+i:i);continue}if(B=o(S),!B){i=L+(i.length>0?" "+i:i);continue}G=!1}let J=C.length===0?"":C.length===1?C[0]:r(C).join(":"),N=h?J+Pe:J,X=N+B;if(f.indexOf(X)>-1)continue;f.push(X);let K=l(B,G);for(let F=0;F0?" "+i:i)}return i},Bt=(...e)=>{let a=0,t,o,l="";for(;a{if(typeof e=="string")return e;let a,t="";for(let o=0;o{let t,o,l,r,u=n=>{let i=a.reduce((x,L)=>L(x),e());return t=bt(i),o=t.cache.get,l=t.cache.set,r=f,f(n)},f=n=>{let i=o(n);if(i)return i;let x=yt(n,t);return l(n,x),x};return r=u,(...n)=>r(Bt(...n))},vt=[],g=e=>{let a=t=>t[e]||vt;return a.isThemeGetter=!0,a},sa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Rt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ft=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Tt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ut=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>Rt.test(e),m=e=>!!e&&!Number.isNaN(Number(e)),R=e=>!!e&&Number.isInteger(Number(e)),be=e=>e.endsWith("%")&&m(e.slice(0,-1)),T=e=>Ft.test(e),ia=()=>!0,Ot=e=>Dt.test(e)&&!Tt.test(e),ye=()=>!1,Ht=e=>qt.test(e),Gt=e=>Ut.test(e),zt=e=>!d(e)&&!s(e),Vt=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Et=e=>O(e,pa,ye),d=e=>sa.test(e),V=e=>O(e,ma,Ot),aa=e=>O(e,$t,m),Wt=e=>O(e,xa,ia),Nt=e=>O(e,La,ye),ta=e=>O(e,na,ye),Xt=e=>O(e,ca,Gt),se=e=>O(e,Ia,Ht),s=e=>fa.test(e),Q=e=>E(e,ma),Kt=e=>E(e,La),oa=e=>E(e,na),_t=e=>E(e,pa),Zt=e=>E(e,ca),fe=e=>E(e,Ia,!0),Jt=e=>E(e,xa,!0),O=(e,a,t)=>{let o=sa.exec(e);return o?o[1]?a(o[1]):t(o[2]):!1},E=(e,a,t=!1)=>{let o=fa.exec(e);return o?o[1]?a(o[1]):t:!1},na=e=>e==="position"||e==="percentage",ca=e=>e==="image"||e==="url",pa=e=>e==="length"||e==="size"||e==="bg-size",ma=e=>e==="length",$t=e=>e==="number",La=e=>e==="family-name",xa=e=>e==="number"||e==="weight",Ia=e=>e==="shadow";var jt=()=>{let e=g("color"),a=g("font"),t=g("text"),o=g("font-weight"),l=g("tracking"),r=g("leading"),u=g("breakpoint"),f=g("container"),n=g("spacing"),i=g("radius"),x=g("shadow"),L=g("inset-shadow"),I=g("text-shadow"),C=g("drop-shadow"),h=g("blur"),S=g("perspective"),k=g("aspect"),G=g("ease"),B=g("animate"),J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],X=()=>[...N(),s,d],K=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],c=()=>[s,d,n],M=()=>[U,"full","auto",...c()],Be=()=>[R,"none","subgrid",s,d],Me=()=>["auto",{span:["full",R,s,d]},R,s,d],Y=()=>[R,"auto",s,d],ve=()=>["auto","min","max","fr",s,d],ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],v=()=>["auto",...c()],z=()=>[U,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...c()],pe=()=>[U,"screen","full","dvw","lvw","svw","min","max","fit",...c()],me=()=>[U,"screen","full","lh","dvh","lvh","svh","min","max","fit",...c()],p=()=>[e,s,d],Re=()=>[...N(),oa,ta,{position:[s,d]}],Fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],De=()=>["auto","cover","contain",_t,Et,{size:[s,d]}],Le=()=>[be,Q,V],P=()=>["","none","full",i,s,d],A=()=>["",m,Q,V],ee=()=>["solid","dashed","dotted","double"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],w=()=>[m,be,oa,ta],qe=()=>["","none",h,s,d],ae=()=>["none",m,s,d],te=()=>["none",m,s,d],xe=()=>[m,s,d],oe=()=>[U,"full",...c()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[T],breakpoint:[T],color:[ia],container:[T],"drop-shadow":[T],ease:["in","out","in-out"],font:[zt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[T],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[T],shadow:[T],spacing:["px",m],text:[T],"text-shadow":[T],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",U,d,s,k]}],container:["container"],"container-type":[{"@container":["","normal","size",s,d]}],"container-named":[Vt],columns:[{columns:[m,d,s,f]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:X()}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[R,"auto",s,d]}],basis:[{basis:[U,"full","auto",f,...c()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m,U,"auto","initial","none",d]}],grow:[{grow:["",m,s,d]}],shrink:[{shrink:["",m,s,d]}],order:[{order:[R,"first","last","none",s,d]}],"grid-cols":[{"grid-cols":Be()}],"col-start-end":[{col:Me()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":Be()}],"row-start-end":[{row:Me()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:c()}],"gap-x":[{"gap-x":c()}],"gap-y":[{"gap-y":c()}],"justify-content":[{justify:[...ce(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...ce()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:c()}],px:[{px:c()}],py:[{py:c()}],ps:[{ps:c()}],pe:[{pe:c()}],pbs:[{pbs:c()}],pbe:[{pbe:c()}],pt:[{pt:c()}],pr:[{pr:c()}],pb:[{pb:c()}],pl:[{pl:c()}],m:[{m:v()}],mx:[{mx:v()}],my:[{my:v()}],ms:[{ms:v()}],me:[{me:v()}],mbs:[{mbs:v()}],mbe:[{mbe:v()}],mt:[{mt:v()}],mr:[{mr:v()}],mb:[{mb:v()}],ml:[{ml:v()}],"space-x":[{"space-x":c()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":c()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],"inline-size":[{inline:["auto",...pe()]}],"min-inline-size":[{"min-inline":["auto",...pe()]}],"max-inline-size":[{"max-inline":["none",...pe()]}],"block-size":[{block:["auto",...me()]}],"min-block-size":[{"min-block":["auto",...me()]}],"max-block-size":[{"max-block":["none",...me()]}],w:[{w:[f,"screen",...z()]}],"min-w":[{"min-w":[f,"screen","none",...z()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",t,Q,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Jt,Wt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",be,d]}],"font-family":[{font:[Kt,Nt,a]}],"font-features":[{"font-features":[d]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,s,d]}],"line-clamp":[{"line-clamp":[m,"none",s,aa]}],leading:[{leading:[r,...c()]}],"list-image":[{"list-image":["none",s,d]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",s,d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:p()}],"text-color":[{text:p()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[m,"from-font","auto",s,V]}],"text-decoration-color":[{decoration:p()}],"underline-offset":[{"underline-offset":[m,"auto",s,d]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:c()}],"tab-size":[{tab:[R,s,d]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s,d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s,d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Re()}],"bg-repeat":[{bg:Fe()}],"bg-size":[{bg:De()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},R,s,d],radial:["",s,d],conic:[R,s,d]},Zt,Xt]}],"bg-color":[{bg:p()}],"gradient-from-pos":[{from:Le()}],"gradient-via-pos":[{via:Le()}],"gradient-to-pos":[{to:Le()}],"gradient-from":[{from:p()}],"gradient-via":[{via:p()}],"gradient-to":[{to:p()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-bs":[{"border-bs":A()}],"border-w-be":[{"border-be":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":A()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:p()}],"border-color-x":[{"border-x":p()}],"border-color-y":[{"border-y":p()}],"border-color-s":[{"border-s":p()}],"border-color-e":[{"border-e":p()}],"border-color-bs":[{"border-bs":p()}],"border-color-be":[{"border-be":p()}],"border-color-t":[{"border-t":p()}],"border-color-r":[{"border-r":p()}],"border-color-b":[{"border-b":p()}],"border-color-l":[{"border-l":p()}],"divide-color":[{divide:p()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m,s,d]}],"outline-w":[{outline:["",m,Q,V]}],"outline-color":[{outline:p()}],shadow:[{shadow:["","none",x,fe,se]}],"shadow-color":[{shadow:p()}],"inset-shadow":[{"inset-shadow":["none",L,fe,se]}],"inset-shadow-color":[{"inset-shadow":p()}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:p()}],"ring-offset-w":[{"ring-offset":[m,V]}],"ring-offset-color":[{"ring-offset":p()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":p()}],"text-shadow":[{"text-shadow":["none",I,fe,se]}],"text-shadow-color":[{"text-shadow":p()}],opacity:[{opacity:[m,s,d]}],"mix-blend":[{"mix-blend":[...Te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Te()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[m]}],"mask-image-linear-from-pos":[{"mask-linear-from":w()}],"mask-image-linear-to-pos":[{"mask-linear-to":w()}],"mask-image-linear-from-color":[{"mask-linear-from":p()}],"mask-image-linear-to-color":[{"mask-linear-to":p()}],"mask-image-t-from-pos":[{"mask-t-from":w()}],"mask-image-t-to-pos":[{"mask-t-to":w()}],"mask-image-t-from-color":[{"mask-t-from":p()}],"mask-image-t-to-color":[{"mask-t-to":p()}],"mask-image-r-from-pos":[{"mask-r-from":w()}],"mask-image-r-to-pos":[{"mask-r-to":w()}],"mask-image-r-from-color":[{"mask-r-from":p()}],"mask-image-r-to-color":[{"mask-r-to":p()}],"mask-image-b-from-pos":[{"mask-b-from":w()}],"mask-image-b-to-pos":[{"mask-b-to":w()}],"mask-image-b-from-color":[{"mask-b-from":p()}],"mask-image-b-to-color":[{"mask-b-to":p()}],"mask-image-l-from-pos":[{"mask-l-from":w()}],"mask-image-l-to-pos":[{"mask-l-to":w()}],"mask-image-l-from-color":[{"mask-l-from":p()}],"mask-image-l-to-color":[{"mask-l-to":p()}],"mask-image-x-from-pos":[{"mask-x-from":w()}],"mask-image-x-to-pos":[{"mask-x-to":w()}],"mask-image-x-from-color":[{"mask-x-from":p()}],"mask-image-x-to-color":[{"mask-x-to":p()}],"mask-image-y-from-pos":[{"mask-y-from":w()}],"mask-image-y-to-pos":[{"mask-y-to":w()}],"mask-image-y-from-color":[{"mask-y-from":p()}],"mask-image-y-to-color":[{"mask-y-to":p()}],"mask-image-radial":[{"mask-radial":[s,d]}],"mask-image-radial-from-pos":[{"mask-radial-from":w()}],"mask-image-radial-to-pos":[{"mask-radial-to":w()}],"mask-image-radial-from-color":[{"mask-radial-from":p()}],"mask-image-radial-to-color":[{"mask-radial-to":p()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[m]}],"mask-image-conic-from-pos":[{"mask-conic-from":w()}],"mask-image-conic-to-pos":[{"mask-conic-to":w()}],"mask-image-conic-from-color":[{"mask-conic-from":p()}],"mask-image-conic-to-color":[{"mask-conic-to":p()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Re()}],"mask-repeat":[{mask:Fe()}],"mask-size":[{mask:De()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",s,d]}],filter:[{filter:["","none",s,d]}],blur:[{blur:qe()}],brightness:[{brightness:[m,s,d]}],contrast:[{contrast:[m,s,d]}],"drop-shadow":[{"drop-shadow":["","none",C,fe,se]}],"drop-shadow-color":[{"drop-shadow":p()}],grayscale:[{grayscale:["",m,s,d]}],"hue-rotate":[{"hue-rotate":[m,s,d]}],invert:[{invert:["",m,s,d]}],saturate:[{saturate:[m,s,d]}],sepia:[{sepia:["",m,s,d]}],"backdrop-filter":[{"backdrop-filter":["","none",s,d]}],"backdrop-blur":[{"backdrop-blur":qe()}],"backdrop-brightness":[{"backdrop-brightness":[m,s,d]}],"backdrop-contrast":[{"backdrop-contrast":[m,s,d]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m,s,d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m,s,d]}],"backdrop-invert":[{"backdrop-invert":["",m,s,d]}],"backdrop-opacity":[{"backdrop-opacity":[m,s,d]}],"backdrop-saturate":[{"backdrop-saturate":[m,s,d]}],"backdrop-sepia":[{"backdrop-sepia":["",m,s,d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":c()}],"border-spacing-x":[{"border-spacing-x":c()}],"border-spacing-y":[{"border-spacing-y":c()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",s,d]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m,"initial",s,d]}],ease:[{ease:["linear","initial",G,s,d]}],delay:[{delay:[m,s,d]}],animate:[{animate:["none",B,s,d]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,s,d]}],"perspective-origin":[{"perspective-origin":X()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[s,d,"","none","gpu","cpu"]}],"transform-origin":[{origin:X()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],zoom:[{zoom:[R,s,d]}],accent:[{accent:p()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:p()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",s,d]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":p()}],"scrollbar-track-color":[{"scrollbar-track":p()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":c()}],"scroll-mx":[{"scroll-mx":c()}],"scroll-my":[{"scroll-my":c()}],"scroll-ms":[{"scroll-ms":c()}],"scroll-me":[{"scroll-me":c()}],"scroll-mbs":[{"scroll-mbs":c()}],"scroll-mbe":[{"scroll-mbe":c()}],"scroll-mt":[{"scroll-mt":c()}],"scroll-mr":[{"scroll-mr":c()}],"scroll-mb":[{"scroll-mb":c()}],"scroll-ml":[{"scroll-ml":c()}],"scroll-p":[{"scroll-p":c()}],"scroll-px":[{"scroll-px":c()}],"scroll-py":[{"scroll-py":c()}],"scroll-ps":[{"scroll-ps":c()}],"scroll-pe":[{"scroll-pe":c()}],"scroll-pbs":[{"scroll-pbs":c()}],"scroll-pbe":[{"scroll-pbe":c()}],"scroll-pt":[{"scroll-pt":c()}],"scroll-pr":[{"scroll-pr":c()}],"scroll-pb":[{"scroll-pb":c()}],"scroll-pl":[{"scroll-pl":c()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",s,d]}],fill:[{fill:["none",...p()]}],"stroke-w":[{stroke:[m,Q,V,aa]}],stroke:[{stroke:["none",...p()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Ca=Mt(jt);function y(...e){return Ca(le(e))}import{jsx as Yt}from"react/jsx-runtime";var Qt=$("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function ga({className:e,variant:a="default",size:t="default",asChild:o=!1,...l}){let r=o?Z.Root:"button";return Yt(r,{"data-slot":"button","data-variant":a,"data-size":t,className:y(Qt({variant:a,size:t,className:e})),...l})}import{jsx as To}from"react/jsx-runtime";import{jsx as W}from"react/jsx-runtime";var eo=$("group/item flex flex-wrap items-center rounded-md border border-transparent text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-accent/50",{variants:{variant:{default:"bg-transparent",outline:"border-border",muted:"bg-muted/50"},size:{default:"gap-4 p-4",sm:"gap-2.5 px-4 py-3"}},defaultVariants:{variant:"default",size:"default"}});function ha({className:e,variant:a="default",size:t="default",asChild:o=!1,...l}){let r=o?Z.Root:"div";return W(r,{"data-slot":"item","data-variant":a,"data-size":t,className:y(eo({variant:a,size:t,className:e})),...l})}var ao=$("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-transparent",icon:"size-8 rounded-sm border bg-muted [&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});function Sa({className:e,variant:a="default",...t}){return W("div",{"data-slot":"item-media","data-variant":a,className:y(ao({variant:a,className:e})),...t})}function wa({className:e,...a}){return W("div",{"data-slot":"item-content",className:y("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none",e),...a})}function ka({className:e,...a}){return W("div",{"data-slot":"item-title",className:y("flex w-fit items-center gap-2 text-sm leading-snug font-medium",e),...a})}function ba({className:e,...a}){return W("p",{"data-slot":"item-description",className:y("line-clamp-2 text-sm leading-normal font-normal text-balance text-muted-foreground","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...a})}function Pa({className:e,...a}){return W("div",{"data-slot":"item-actions",className:y("flex items-center gap-2",e),...a})}function Aa({className:e,...a}){return W("div",{"data-slot":"item-footer",className:y("flex basis-full items-center justify-between gap-2",e),...a})}import{jsx as ya}from"react/jsx-runtime";function Ba({className:e,value:a,...t}){return ya(j.Root,{"data-slot":"progress",className:y("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...t,children:ya(j.Indicator,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(a||0)}%)`}})})}import{forwardRef as oo,createElement as lo}from"react";var Ma=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ne=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();import{forwardRef as to,createElement as Ra}from"react";var va={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Fa=to(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:l="",children:r,iconNode:u,...f},n)=>Ra("svg",{ref:n,...va,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:ne("lucide",l),...f},[...u.map(([i,x])=>Ra(i,x)),...Array.isArray(r)?r:[r]]));var Da=(e,a)=>{let t=oo(({className:o,...l},r)=>lo(Fa,{ref:r,iconNode:a,className:ne(`lucide-${Ma(e)}`,o),...l}));return t.displayName=`${e}`,t};var H=Da("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);import{jsx as ro}from"react/jsx-runtime";function Ta({className:e,...a}){return ro(H,{role:"status","aria-label":"Loading",className:y("size-4 animate-spin",e),...a})}import{jsx as q,jsxs as qa}from"react/jsx-runtime";function uo(){return q("div",{className:"flex w-full max-w-md flex-col gap-4 [--radius:1rem]",children:qa(ha,{variant:"outline",children:[q(Sa,{variant:"icon",children:q(Ta,{})}),qa(wa,{children:[q(ka,{children:"Downloading..."}),q(ba,{children:"129 MB / 1000 MB"})]}),q(Pa,{className:"hidden sm:flex",children:q(ga,{variant:"outline",size:"sm",children:"Cancel"})}),q(Aa,{children:q(Ba,{value:75})})]})})}export{uo as default}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/loader-circle.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/869adeaf00f0771abebd29c84a1552cb6f6ab271889c24432814568495ef6d80 b/b/869adeaf00f0771abebd29c84a1552cb6f6ab271889c24432814568495ef6d80 new file mode 100644 index 0000000000000000000000000000000000000000..d63e905e64996134e3961664390b50eccd571ed2 --- /dev/null +++ b/b/869adeaf00f0771abebd29c84a1552cb6f6ab271889c24432814568495ef6d80 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.input-group-custom", + "name": "input-group-custom", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/input-group-custom.json", + "did": "did:holo:sha256:a92e9f1aa877d85564a6e566e2b7b50ab2244a6d8153a1c2c5077770311e42eb", + "import": "holo://sha256:32e9dbb9da4a4f1f2877e4dd46069126db767488382bd192a37a099bd2698b58", + "integrity": "sha256-MunbudpKTx8od+TdRgaRJtt2dIg4K9GSo3oJm9Jpi1g=", + "kappa": "sha256:a92e9f1aa877d85564a6e566e2b7b50ab2244a6d8153a1c2c5077770311e42eb", + "moduleKappa": "sha256:32e9dbb9da4a4f1f2877e4dd46069126db767488382bd192a37a099bd2698b58", + "renderExport": "default", + "source": "registry/new-york-v4/examples/input-group-custom.tsx", + "module": "vendor/components/input-group-custom.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/86b6d3c9b929669cf84dafa67f26a17d5a55b7b986df3fcdf2f7fccdc0c3ebe0 b/b/86b6d3c9b929669cf84dafa67f26a17d5a55b7b986df3fcdf2f7fccdc0c3ebe0 new file mode 100644 index 0000000000000000000000000000000000000000..41820753809c9fba39f4031803691633792751bd --- /dev/null +++ b/b/86b6d3c9b929669cf84dafa67f26a17d5a55b7b986df3fcdf2f7fccdc0c3ebe0 @@ -0,0 +1,87 @@ +import * as React from "react" +import { Popover as PopoverPrimitive } from "radix-ui" + +import { cn } from "@/lib/utils" + +function Popover({ + ...props +}: React.ComponentProps) { + return +} + +function PopoverTrigger({ + ...props +}: React.ComponentProps) { + return +} + +function PopoverContent({ + className, + align = "center", + sideOffset = 4, + ...props +}: React.ComponentProps) { + return ( + + + + ) +} + +function PopoverAnchor({ + ...props +}: React.ComponentProps) { + return +} + +function PopoverHeader({ className, ...props }: React.ComponentProps<"div">) { + return ( +
+ ) +} + +function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">) { + return ( +
+ ) +} + +function PopoverDescription({ + className, + ...props +}: React.ComponentProps<"p">) { + return ( +

+ ) +} + +export { + Popover, + PopoverTrigger, + PopoverContent, + PopoverAnchor, + PopoverHeader, + PopoverTitle, + PopoverDescription, +} diff --git a/b/86cbb19ef3efd04376c1d4d66953303b7b0744b7f949e65edbe86ab6cc29d6ff b/b/86cbb19ef3efd04376c1d4d66953303b7b0744b7f949e65edbe86ab6cc29d6ff new file mode 100644 index 0000000000000000000000000000000000000000..7ed2a4d4d823a5a702abff2d28bed3e06acb411c --- /dev/null +++ b/b/86cbb19ef3efd04376c1d4d66953303b7b0744b7f949e65edbe86ab6cc29d6ff @@ -0,0 +1,57 @@ +// κ-native TurboQuant/PolarQuant KV plane: KvMemory storing K/V through the rotation- +// aware TQ codec. Proves the substrate properties — content-addressed (L2 dedup), +// L5-verifiable (tamper refused), low-bpw — and that the rotate→quant→dequant→inverse +// round-trip preserves the vector (orthogonal rotation, Lloyd-Max codebook). The +// per-block quant bytes are already BIT-EXACT vs ggml (gguf-forge-turboquant.test.mjs); +// here we exercise the memory plane on top of them. +import assert from "node:assert"; +import { KvMemory } from "./gguf-forge-kvmem.mjs"; +import { tqEncodeKV, tqDecodeKV, TQ_TYPES } from "./gguf-forge-turboquant.mjs"; + +let pass = 0, fail = 0; +const ok = (c, m) => { if (c) { console.log(` ok ${m}`); pass++; } else { console.log(` XX ${m}`); fail++; } }; +const cosine = (a, b) => { let d = 0, na = 0, nb = 0; for (let i = 0; i < a.length; i++) { d += a[i] * b[i]; na += a[i] * a[i]; nb += b[i] * b[i]; } return d / (Math.sqrt(na) * Math.sqrt(nb)); }; +function rnd(seed) { let s = seed >>> 0; return () => { s = (s * 1664525 + 1013904223) >>> 0; return (s / 4294967296) * 2 - 1; }; } + +const KVDIM = 128; // n_head_kv·head_dim — e.g. Qwen2.5-0.5B (2 kv heads × 64) + +// PQ4_0 (d=128, 1 block) and PQ4_0_64 (d=64, 2 blocks) — exercise both block tilings. +for (const [id, t] of [["48", TQ_TYPES[48]], ["49", TQ_TYPES[49]]]) { + const typeId = Number(id); + const mem = new KvMemory({ typeK: typeId, typeV: typeId, nLayer: 1 }); + const r = rnd(0x9e + typeId); + const k0 = Float32Array.from({ length: KVDIM }, () => r() * 1.5); + const v0 = Float32Array.from({ length: KVDIM }, () => r() * 1.5); + + const kVal = mem.storeK(0, 0, k0); // returns the lossy round-trip value + mem.storeV(0, 0, v0); + // round-trip quality: rotation is an exact inverse, only the codebook quant is lossy + ok(cosine(k0, kVal) > 0.95, `${t.name.padEnd(9)} KV round-trip cosine ${cosine(k0, kVal).toFixed(4)} > 0.95`); + + // stored bytes == the witnessed kernel codec (rotate + tqQuant) + const ref = tqEncodeKV(typeId, k0); + const hex = String(mem.refsK[0][0]).split(":").pop(); + const stored = mem.blocks.get(hex); + ok(stored.length === ref.length && stored.every((b, i) => b === ref[i]), `${t.name.padEnd(9)} stored κ-block == tqEncodeKV (rotate+quant)`); + + // materialize matches the store-time value (deterministic decode) + const mat = mem.materialize(0, KVDIM); + ok(mat.Kc[0][0].every((x, i) => x === kVal[i]), `${t.name.padEnd(9)} materialize == store-time decode`); + + // L2 dedup: storing the same K vector at another position → 0 new blocks + const before = mem.blocks.size; + mem.storeK(0, 1, k0.slice()); + ok(mem.blocks.size === before, `${t.name.padEnd(9)} identical KV dedups to one κ-block`); + + // low-bpw: block bytes vs F32 + const ratio = (KVDIM * 4) / t.total; + ok(t.total < KVDIM * 4, `${t.name.padEnd(9)} ${t.total} B/block vs ${KVDIM * 4} F32 (${ratio.toFixed(1)}× smaller)`); + + // L5: flip one stored byte → load refuses + stored[0] ^= 0xff; + let refused = false; try { mem.load(mem.refsK[0][0]); } catch { refused = true; } + ok(refused, `${t.name.padEnd(9)} L5 tamper refused`); +} + +console.log(`\n${pass} passed, ${fail} failed`); +process.exit(fail ? 1 : 0); diff --git a/b/86e243184201d21ae37cb2e74f18bd517995e8004e0994c2fe6a8a656409865a b/b/86e243184201d21ae37cb2e74f18bd517995e8004e0994c2fe6a8a656409865a new file mode 100644 index 0000000000000000000000000000000000000000..db5528f18a61919d8aa02b01287463088345f54a --- /dev/null +++ b/b/86e243184201d21ae37cb2e74f18bd517995e8004e0994c2fe6a8a656409865a @@ -0,0 +1,7 @@ +import mask from './object.js'; +import { addPrefix } from '../../functions/addPrefix.js'; + +export default ({ addComponents, prefix = '' }) => { + const prefixedmask = addPrefix(mask, prefix); + addComponents({ ...prefixedmask }); +}; diff --git a/b/87501daf0090852ff0e40f638a842e139ff6f76bc4ae97ae988b96f5cede3e88 b/b/87501daf0090852ff0e40f638a842e139ff6f76bc4ae97ae988b96f5cede3e88 new file mode 100644 index 0000000000000000000000000000000000000000..17fcd89a1124f1a8f75ddd1874f50b7c3a641cf3 --- /dev/null +++ b/b/87501daf0090852ff0e40f638a842e139ff6f76bc4ae97ae988b96f5cede3e88 @@ -0,0 +1,25 @@ +{ + "id": "org.hologram.ui.chart", + "name": "chart", + "tier": "component", + "library": "shadcn", + "category": "Data Display", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/chart.json", + "did": "did:holo:sha256:3938fce52bf69c34b662d23d590bc50a8502585607aabbd8d208aaed3b7ca365", + "import": "holo://sha256:28ba1725e5919103495ad761c1b91ada8c73c0a146f69be1b0aa23fb5c4b4b03", + "integrity": "sha256-KLoXJeWRkQNJWtdhwbka2oxzwKFG9pvhsKoj+1xLSwM=", + "kappa": "sha256:3938fce52bf69c34b662d23d590bc50a8502585607aabbd8d208aaed3b7ca365", + "moduleKappa": "sha256:28ba1725e5919103495ad761c1b91ada8c73c0a146f69be1b0aa23fb5c4b4b03", + "renderExport": "ChartContainer", + "source": "components/ui/chart.tsx", + "module": "vendor/components/chart.js", + "exports": [ + "ChartContainer", + "ChartTooltip", + "ChartTooltipContent", + "ChartLegend", + "ChartLegendContent", + "ChartStyle" + ], + "license": "MIT" +} diff --git a/b/875cdc52c690177475775400074072312f3dd2bdb38676ea9575426276e90fdf b/b/875cdc52c690177475775400074072312f3dd2bdb38676ea9575426276e90fdf new file mode 100644 index 0000000000000000000000000000000000000000..78573d73bca4c057b58ccf8d5bf92d97bde5643c --- /dev/null +++ b/b/875cdc52c690177475775400074072312f3dd2bdb38676ea9575426276e90fdf @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.block.sidebar-13", + "name": "sidebar-13", + "tier": "block", + "library": "shadcn", + "category": "Blocks", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/sidebar-13.json", + "did": "did:holo:sha256:4e0c020ec81f674bfa71f8a16af60c3b929c453a1d2493cf69b242f6aff270ec", + "import": "holo://sha256:9353e5ecdfc6551787991927b4986a605fe0072939d27da398dc69155e191c55", + "integrity": "sha256-k1Pl7N/GVReHmRkntJhqYF/gByk50n2jmNxpFV4ZHFU=", + "kappa": "sha256:4e0c020ec81f674bfa71f8a16af60c3b929c453a1d2493cf69b242f6aff270ec", + "moduleKappa": "sha256:9353e5ecdfc6551787991927b4986a605fe0072939d27da398dc69155e191c55", + "renderExport": "default", + "source": "registry/new-york-v4/blocks/sidebar-13/page.tsx", + "module": "vendor/components/sidebar-13.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/875d524cdedb5b3081ebbc3bdec813f03858eca022c587a1cddc83047bd6efec b/b/875d524cdedb5b3081ebbc3bdec813f03858eca022c587a1cddc83047bd6efec new file mode 100644 index 0000000000000000000000000000000000000000..41d590abec01b885db6e2afe7de64493fa8d2813 --- /dev/null +++ b/b/875d524cdedb5b3081ebbc3bdec813f03858eca022c587a1cddc83047bd6efec @@ -0,0 +1,51 @@ +var da=Object.defineProperty;var sa=(e,t)=>{for(var a in t)da(e,a,{get:t[a],enumerable:!0})};import{forwardRef as ia,createElement as na}from"react";var Se=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Q=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as fa,createElement as ke}from"react";var we={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var be=fa(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:l="",children:r,iconNode:u,...c},p)=>ke("svg",{ref:p,...we,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:Q("lucide",l),...c},[...u.map(([f,L])=>ke(f,L)),...Array.isArray(r)?r:[r]]));var Pe=(e,t)=>{let a=ia(({className:o,...l},r)=>na(be,{ref:r,iconNode:t,className:Q(`lucide-${Se(e)}`,o),...l}));return a.displayName=`${e}`,a};var N=Pe("CircleFadingArrowUp",[["path",{d:"M12 2a10 10 0 0 1 7.38 16.75",key:"175t95"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}],["path",{d:"M2.5 8.875a10 10 0 0 0-.5 3",key:"1vce0s"}],["path",{d:"M2.83 16a10 10 0 0 0 2.43 3.4",key:"o3fkw4"}],["path",{d:"M4.636 5.235a10 10 0 0 1 .891-.857",key:"1szpfk"}],["path",{d:"M8.644 21.42a10 10 0 0 0 7.631-.38",key:"9yhvd4"}]]);function Ae(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,ye=$,Me=(e,t)=>a=>{var o;if(t?.variants==null)return ye(e,a?.class,a?.className);let{variants:l,defaultVariants:r}=t,u=Object.keys(l).map(f=>{let L=a?.[f],I=r?.[f];if(L===null)return null;let C=Be(L)||Be(I);return l[f][C]}),c=a&&Object.entries(a).reduce((f,L)=>{let[I,C]=L;return C===void 0||(f[I]=C),f},{}),p=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((f,L)=>{let{class:I,className:C,...h}=L;return Object.entries(h).every(y=>{let[w,k]=y;return Array.isArray(k)?k.includes({...r,...c}[w]):{...r,...c}[w]===k})?[...f,I,C]:f},[]);return ye(e,u,p,a?.class,a?.className)};var ee={};sa(ee,{Root:()=>pa,Slot:()=>pa,Slottable:()=>ma,createSlot:()=>Te,createSlottable:()=>Ue});import*as S from"react";import*as De from"react";function Fe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ca(...e){return t=>{let a=!1,o=e.map(l=>{let r=Fe(l,t);return!a&&typeof r=="function"&&(a=!0),r});if(a)return()=>{for(let l=0;l{let{children:l,...r}=a,u=null,c=!1,p=[];ve(l)&&typeof Y=="function"&&(l=Y(l._payload)),S.Children.forEach(l,C=>{if(Ca(C)){c=!0;let h=C,y="child"in h.props?h.props.child:h.props.children;ve(y)&&typeof Y=="function"&&(y=Y(y._payload)),u=La(h,y),p.push(u?.props?.children)}else p.push(C)}),u?u=S.cloneElement(u,void 0,p):!c&&S.Children.count(l)===1&&S.isValidElement(l)&&(u=l);let f=u?xa(u):void 0,L=Re(o,f);if(!u){if(l||l===0)throw new Error(c?wa(e):Sa(e));return l}let I=Ia(r,u.props??{});return u.type!==S.Fragment&&(I.ref=o?L:f),S.cloneElement(u,I)});return t.displayName=`${e}.Slot`,t}var pa=Te("Slot"),qe=Symbol.for("radix.slottable");function Ue(e){let t=a=>"child"in a?a.children(a.child):a.children;return t.displayName=`${e}.Slottable`,t.__radixId=qe,t}var ma=Ue("Slottable"),La=(e,t)=>{if("child"in e.props){let a=e.props.child;return S.isValidElement(a)?S.cloneElement(a,void 0,e.props.children(a.props.children)):null}return S.isValidElement(t)?t:null};function Ia(e,t){let a={...t};for(let o in t){let l=e[o],r=t[o];/^on[A-Z]/.test(o)?l&&r?a[o]=(...c)=>{let p=r(...c);return l(...c),p}:l&&(a[o]=l):o==="style"?a[o]={...l,...r}:o==="className"&&(a[o]=[l,r].filter(Boolean).join(" "))}return{...e,...a}}function xa(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function Ca(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qe}var ga=Symbol.for("react.lazy");function ve(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ga&&"_payload"in e&&ha(e._payload)}function ha(e){return typeof e=="object"&&e!==null&&"then"in e}var Sa=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,wa=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Y=S[" use ".trim().toString()];var ka=(e,t)=>{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),We=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),oe="-",Oe=[],Pa="arbitrary..",Aa=e=>{let t=ya(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return Ba(u);let c=u.split(oe),p=c[0]===""&&c.length>1?1:0;return Ne(c,p,t)},getConflictingClassGroupIds:(u,c)=>{if(c){let p=o[u],f=a[u];return p?f?ka(f,p):p:f||Oe}return a[u]||Oe}}},Ne=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let l=e[t],r=a.nextPart.get(l);if(r){let f=Ne(e,t+1,r);if(f)return f}let u=a.validators;if(u===null)return;let c=t===0?e.join(oe):e.slice(t).join(oe),p=u.length;for(let f=0;fe.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?Pa+o:void 0})(),ya=e=>{let{theme:t,classGroups:a}=e;return Ma(a,t)},Ma=(e,t)=>{let a=We();for(let o in e){let l=e[o];ne(l,a,o,t)}return a},ne=(e,t,a,o)=>{let l=e.length;for(let r=0;r{if(typeof e=="string"){Da(e,t,a);return}if(typeof e=="function"){Ra(e,t,a,o);return}va(e,t,a,o)},Da=(e,t,a)=>{let o=e===""?t:Xe(t,e);o.classGroupId=a},Ra=(e,t,a,o)=>{if(Ta(e)){ne(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(ba(a,e))},va=(e,t,a,o)=>{let l=Object.entries(e),r=l.length;for(let u=0;u{let a=e,o=t.split(oe),l=o.length;for(let r=0;r"isThemeGetter"in e&&e.isThemeGetter===!0,qa=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),l=(r,u)=>{a[r]=u,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(r){let u=a[r];if(u!==void 0)return u;if((u=o[r])!==void 0)return l(r,u),u},set(r,u){r in a?a[r]=u:l(r,u)}}},ie="!",He=":",Ua=[],Ge=(e,t,a,o,l)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:l}),Oa=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=l=>{let r=[],u=0,c=0,p=0,f,L=l.length;for(let w=0;wp?f-p:void 0;return Ge(r,h,C,y)};if(t){let l=t+He,r=o;o=u=>u.startsWith(l)?r(u.slice(l.length)):Ge(Ua,!1,u,void 0,!0)}if(a){let l=o;o=r=>a({className:r,parseClassName:l})}return o},Ha=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],l=[];for(let r=0;r0&&(l.sort(),o.push(...l),l=[]),o.push(u)):l.push(u)}return l.length>0&&(l.sort(),o.push(...l)),o}},Ga=e=>({cache:qa(e.cacheSize),parseClassName:Oa(e),sortModifiers:Ha(e),postfixLookupClassGroupIds:za(e),...Aa(e)}),za=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:l,sortModifiers:r,postfixLookupClassGroupIds:u}=t,c=[],p=e.trim().split(Va),f="";for(let L=p.length-1;L>=0;L-=1){let I=p[L],{isExternal:C,modifiers:h,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:k}=a(I);if(C){f=I+(f.length>0?" "+f:f);continue}let q=!!k,A;if(q){let D=w.substring(0,k);A=o(D);let i=A&&u[A]?o(w):void 0;i&&i!==A&&(A=i,q=!1)}else A=o(w);if(!A){if(!q){f=I+(f.length>0?" "+f:f);continue}if(A=o(w),!A){f=I+(f.length>0?" "+f:f);continue}q=!1}let W=h.length===0?"":h.length===1?h[0]:r(h).join(":"),G=y?W+ie:W,z=G+A;if(c.indexOf(z)>-1)continue;c.push(z);let V=l(A,q);for(let D=0;D0?" "+f:f)}return f},Wa=(...e)=>{let t=0,a,o,l="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,l,r,u=p=>{let f=t.reduce((L,I)=>I(L),e());return a=Ga(f),o=a.cache.get,l=a.cache.set,r=c,c(p)},c=p=>{let f=o(p);if(f)return f;let L=Ea(p,a);return l(p,L),L};return r=u,(...p)=>r(Wa(...p))},Xa=[],x=e=>{let t=a=>a[e]||Xa;return t.isThemeGetter=!0,t},Ze=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Je=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ka=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Za=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ja=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_a=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ja=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,v=e=>Ka.test(e),m=e=>!!e&&!Number.isNaN(Number(e)),F=e=>!!e&&Number.isInteger(Number(e)),fe=e=>e.endsWith("%")&&m(e.slice(0,-1)),R=e=>Za.test(e),_e=()=>!0,$a=e=>Ja.test(e)&&!_a.test(e),ce=()=>!1,Ya=e=>ja.test(e),et=e=>Qa.test(e),at=e=>!d(e)&&!s(e),tt=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),ot=e=>T(e,$e,ce),d=e=>Ze.test(e),O=e=>T(e,Ye,$a),ze=e=>T(e,nt,m),lt=e=>T(e,aa,_e),rt=e=>T(e,ea,ce),Ve=e=>T(e,je,ce),ut=e=>T(e,Qe,et),ae=e=>T(e,ta,Ya),s=e=>Je.test(e),X=e=>H(e,Ye),dt=e=>H(e,ea),Ee=e=>H(e,je),st=e=>H(e,$e),ft=e=>H(e,Qe),te=e=>H(e,ta,!0),it=e=>H(e,aa,!0),T=(e,t,a)=>{let o=Ze.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},H=(e,t,a=!1)=>{let o=Je.exec(e);return o?o[1]?t(o[1]):a:!1},je=e=>e==="position"||e==="percentage",Qe=e=>e==="image"||e==="url",$e=e=>e==="length"||e==="size"||e==="bg-size",Ye=e=>e==="length",nt=e=>e==="number",ea=e=>e==="family-name",aa=e=>e==="number"||e==="weight",ta=e=>e==="shadow";var ct=()=>{let e=x("color"),t=x("font"),a=x("text"),o=x("font-weight"),l=x("tracking"),r=x("leading"),u=x("breakpoint"),c=x("container"),p=x("spacing"),f=x("radius"),L=x("shadow"),I=x("inset-shadow"),C=x("text-shadow"),h=x("drop-shadow"),y=x("blur"),w=x("perspective"),k=x("aspect"),q=x("ease"),A=x("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...G(),s,d],V=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],i=()=>[s,d,p],B=()=>[v,"full","auto",...i()],pe=()=>[F,"none","subgrid",s,d],me=()=>["auto",{span:["full",F,s,d]},F,s,d],K=()=>[F,"auto",s,d],Le=()=>["auto","min","max","fr",s,d],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...i()],U=()=>[v,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],re=()=>[v,"screen","full","dvw","lvw","svw","min","max","fit",...i()],ue=()=>[v,"screen","full","lh","dvh","lvh","svh","min","max","fit",...i()],n=()=>[e,s,d],Ie=()=>[...G(),Ee,Ve,{position:[s,d]}],xe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ce=()=>["auto","cover","contain",st,ot,{size:[s,d]}],de=()=>[fe,X,O],b=()=>["","none","full",f,s,d],P=()=>["",m,X,O],Z=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>[m,fe,Ee,Ve],he=()=>["","none",y,s,d],J=()=>["none",m,s,d],_=()=>["none",m,s,d],se=()=>[m,s,d],j=()=>[v,"full",...i()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[R],breakpoint:[R],color:[_e],container:[R],"drop-shadow":[R],ease:["in","out","in-out"],font:[at],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[R],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[R],shadow:[R],spacing:["px",m],text:[R],"text-shadow":[R],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",v,d,s,k]}],container:["container"],"container-type":[{"@container":["","normal","size",s,d]}],"container-named":[tt],columns:[{columns:[m,d,s,c]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[F,"auto",s,d]}],basis:[{basis:[v,"full","auto",c,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m,v,"auto","initial","none",d]}],grow:[{grow:["",m,s,d]}],shrink:[{shrink:["",m,s,d]}],order:[{order:[F,"first","last","none",s,d]}],"grid-cols":[{"grid-cols":pe()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":pe()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Le()}],"auto-rows":[{"auto-rows":Le()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:i()}],px:[{px:i()}],py:[{py:i()}],ps:[{ps:i()}],pe:[{pe:i()}],pbs:[{pbs:i()}],pbe:[{pbe:i()}],pt:[{pt:i()}],pr:[{pr:i()}],pb:[{pb:i()}],pl:[{pl:i()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...ue()]}],"min-block-size":[{"min-block":["auto",...ue()]}],"max-block-size":[{"max-block":["none",...ue()]}],w:[{w:[c,"screen",...U()]}],"min-w":[{"min-w":[c,"screen","none",...U()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",a,X,O]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,it,lt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fe,d]}],"font-family":[{font:[dt,rt,t]}],"font-features":[{"font-features":[d]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,s,d]}],"line-clamp":[{"line-clamp":[m,"none",s,ze]}],leading:[{leading:[r,...i()]}],"list-image":[{"list-image":["none",s,d]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",s,d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:n()}],"text-color":[{text:n()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[m,"from-font","auto",s,O]}],"text-decoration-color":[{decoration:n()}],"underline-offset":[{"underline-offset":[m,"auto",s,d]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:i()}],"tab-size":[{tab:[F,s,d]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s,d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s,d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ie()}],"bg-repeat":[{bg:xe()}],"bg-size":[{bg:Ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},F,s,d],radial:["",s,d],conic:[F,s,d]},ft,ut]}],"bg-color":[{bg:n()}],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:n()}],"gradient-via":[{via:n()}],"gradient-to":[{to:n()}],rounded:[{rounded:b()}],"rounded-s":[{"rounded-s":b()}],"rounded-e":[{"rounded-e":b()}],"rounded-t":[{"rounded-t":b()}],"rounded-r":[{"rounded-r":b()}],"rounded-b":[{"rounded-b":b()}],"rounded-l":[{"rounded-l":b()}],"rounded-ss":[{"rounded-ss":b()}],"rounded-se":[{"rounded-se":b()}],"rounded-ee":[{"rounded-ee":b()}],"rounded-es":[{"rounded-es":b()}],"rounded-tl":[{"rounded-tl":b()}],"rounded-tr":[{"rounded-tr":b()}],"rounded-br":[{"rounded-br":b()}],"rounded-bl":[{"rounded-bl":b()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:n()}],"border-color-x":[{"border-x":n()}],"border-color-y":[{"border-y":n()}],"border-color-s":[{"border-s":n()}],"border-color-e":[{"border-e":n()}],"border-color-bs":[{"border-bs":n()}],"border-color-be":[{"border-be":n()}],"border-color-t":[{"border-t":n()}],"border-color-r":[{"border-r":n()}],"border-color-b":[{"border-b":n()}],"border-color-l":[{"border-l":n()}],"divide-color":[{divide:n()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m,s,d]}],"outline-w":[{outline:["",m,X,O]}],"outline-color":[{outline:n()}],shadow:[{shadow:["","none",L,te,ae]}],"shadow-color":[{shadow:n()}],"inset-shadow":[{"inset-shadow":["none",I,te,ae]}],"inset-shadow-color":[{"inset-shadow":n()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:n()}],"ring-offset-w":[{"ring-offset":[m,O]}],"ring-offset-color":[{"ring-offset":n()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":n()}],"text-shadow":[{"text-shadow":["none",C,te,ae]}],"text-shadow-color":[{"text-shadow":n()}],opacity:[{opacity:[m,s,d]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[m]}],"mask-image-linear-from-pos":[{"mask-linear-from":g()}],"mask-image-linear-to-pos":[{"mask-linear-to":g()}],"mask-image-linear-from-color":[{"mask-linear-from":n()}],"mask-image-linear-to-color":[{"mask-linear-to":n()}],"mask-image-t-from-pos":[{"mask-t-from":g()}],"mask-image-t-to-pos":[{"mask-t-to":g()}],"mask-image-t-from-color":[{"mask-t-from":n()}],"mask-image-t-to-color":[{"mask-t-to":n()}],"mask-image-r-from-pos":[{"mask-r-from":g()}],"mask-image-r-to-pos":[{"mask-r-to":g()}],"mask-image-r-from-color":[{"mask-r-from":n()}],"mask-image-r-to-color":[{"mask-r-to":n()}],"mask-image-b-from-pos":[{"mask-b-from":g()}],"mask-image-b-to-pos":[{"mask-b-to":g()}],"mask-image-b-from-color":[{"mask-b-from":n()}],"mask-image-b-to-color":[{"mask-b-to":n()}],"mask-image-l-from-pos":[{"mask-l-from":g()}],"mask-image-l-to-pos":[{"mask-l-to":g()}],"mask-image-l-from-color":[{"mask-l-from":n()}],"mask-image-l-to-color":[{"mask-l-to":n()}],"mask-image-x-from-pos":[{"mask-x-from":g()}],"mask-image-x-to-pos":[{"mask-x-to":g()}],"mask-image-x-from-color":[{"mask-x-from":n()}],"mask-image-x-to-color":[{"mask-x-to":n()}],"mask-image-y-from-pos":[{"mask-y-from":g()}],"mask-image-y-to-pos":[{"mask-y-to":g()}],"mask-image-y-from-color":[{"mask-y-from":n()}],"mask-image-y-to-color":[{"mask-y-to":n()}],"mask-image-radial":[{"mask-radial":[s,d]}],"mask-image-radial-from-pos":[{"mask-radial-from":g()}],"mask-image-radial-to-pos":[{"mask-radial-to":g()}],"mask-image-radial-from-color":[{"mask-radial-from":n()}],"mask-image-radial-to-color":[{"mask-radial-to":n()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[m]}],"mask-image-conic-from-pos":[{"mask-conic-from":g()}],"mask-image-conic-to-pos":[{"mask-conic-to":g()}],"mask-image-conic-from-color":[{"mask-conic-from":n()}],"mask-image-conic-to-color":[{"mask-conic-to":n()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ie()}],"mask-repeat":[{mask:xe()}],"mask-size":[{mask:Ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",s,d]}],filter:[{filter:["","none",s,d]}],blur:[{blur:he()}],brightness:[{brightness:[m,s,d]}],contrast:[{contrast:[m,s,d]}],"drop-shadow":[{"drop-shadow":["","none",h,te,ae]}],"drop-shadow-color":[{"drop-shadow":n()}],grayscale:[{grayscale:["",m,s,d]}],"hue-rotate":[{"hue-rotate":[m,s,d]}],invert:[{invert:["",m,s,d]}],saturate:[{saturate:[m,s,d]}],sepia:[{sepia:["",m,s,d]}],"backdrop-filter":[{"backdrop-filter":["","none",s,d]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[m,s,d]}],"backdrop-contrast":[{"backdrop-contrast":[m,s,d]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m,s,d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m,s,d]}],"backdrop-invert":[{"backdrop-invert":["",m,s,d]}],"backdrop-opacity":[{"backdrop-opacity":[m,s,d]}],"backdrop-saturate":[{"backdrop-saturate":[m,s,d]}],"backdrop-sepia":[{"backdrop-sepia":["",m,s,d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":i()}],"border-spacing-x":[{"border-spacing-x":i()}],"border-spacing-y":[{"border-spacing-y":i()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",s,d]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m,"initial",s,d]}],ease:[{ease:["linear","initial",q,s,d]}],delay:[{delay:[m,s,d]}],animate:[{animate:["none",A,s,d]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,s,d]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[s,d,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:j()}],"translate-x":[{"translate-x":j()}],"translate-y":[{"translate-y":j()}],"translate-z":[{"translate-z":j()}],"translate-none":["translate-none"],zoom:[{zoom:[F,s,d]}],accent:[{accent:n()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:n()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",s,d]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":n()}],"scrollbar-track-color":[{"scrollbar-track":n()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":i()}],"scroll-mx":[{"scroll-mx":i()}],"scroll-my":[{"scroll-my":i()}],"scroll-ms":[{"scroll-ms":i()}],"scroll-me":[{"scroll-me":i()}],"scroll-mbs":[{"scroll-mbs":i()}],"scroll-mbe":[{"scroll-mbe":i()}],"scroll-mt":[{"scroll-mt":i()}],"scroll-mr":[{"scroll-mr":i()}],"scroll-mb":[{"scroll-mb":i()}],"scroll-ml":[{"scroll-ml":i()}],"scroll-p":[{"scroll-p":i()}],"scroll-px":[{"scroll-px":i()}],"scroll-py":[{"scroll-py":i()}],"scroll-ps":[{"scroll-ps":i()}],"scroll-pe":[{"scroll-pe":i()}],"scroll-pbs":[{"scroll-pbs":i()}],"scroll-pbe":[{"scroll-pbe":i()}],"scroll-pt":[{"scroll-pt":i()}],"scroll-pr":[{"scroll-pr":i()}],"scroll-pb":[{"scroll-pb":i()}],"scroll-pl":[{"scroll-pl":i()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",s,d]}],fill:[{fill:["none",...n()]}],"stroke-w":[{stroke:[m,X,O,ze]}],stroke:[{stroke:["none",...n()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var oa=Na(ct);function la(...e){return oa($(e))}import{jsx as mt}from"react/jsx-runtime";var pt=Me("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function ra({className:e,variant:t="default",size:a="default",asChild:o=!1,...l}){let r=o?ee.Root:"button";return mt(r,{"data-slot":"button","data-variant":t,"data-size":a,className:la(pt({variant:t,size:a,className:e})),...l})}import{jsx as ua}from"react/jsx-runtime";function Lt(){return ua(ra,{variant:"outline",size:"icon",children:ua(N,{})})}export{Lt as default}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/circle-fading-arrow-up.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/8773cfca31c4f3487b0ed325c198eee9f40b9a3e9f24825d90bdd2c796a16863 b/b/8773cfca31c4f3487b0ed325c198eee9f40b9a3e9f24825d90bdd2c796a16863 new file mode 100644 index 0000000000000000000000000000000000000000..8294794c0e752e774fddd51917870a4091517769 --- /dev/null +++ b/b/8773cfca31c4f3487b0ed325c198eee9f40b9a3e9f24825d90bdd2c796a16863 @@ -0,0 +1 @@ +export default {"color-scheme":"dark","--color-base-100":"oklch(25.33% 0.016 252.42)","--color-base-200":"oklch(23.26% 0.014 253.1)","--color-base-300":"oklch(21.15% 0.012 254.09)","--color-base-content":"oklch(97.807% 0.029 256.847)","--color-primary":"oklch(58% 0.233 277.117)","--color-primary-content":"oklch(96% 0.018 272.314)","--color-secondary":"oklch(65% 0.241 354.308)","--color-secondary-content":"oklch(94% 0.028 342.258)","--color-accent":"oklch(77% 0.152 181.912)","--color-accent-content":"oklch(38% 0.063 188.416)","--color-neutral":"oklch(14% 0.005 285.823)","--color-neutral-content":"oklch(92% 0.004 286.32)","--color-info":"oklch(74% 0.16 232.661)","--color-info-content":"oklch(29% 0.066 243.157)","--color-success":"oklch(76% 0.177 163.223)","--color-success-content":"oklch(37% 0.077 168.94)","--color-warning":"oklch(82% 0.189 84.429)","--color-warning-content":"oklch(41% 0.112 45.904)","--color-error":"oklch(71% 0.194 13.428)","--color-error-content":"oklch(27% 0.105 12.094)","--radius-selector":"0.5rem","--radius-field":"0.25rem","--radius-box":"0.5rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"1","--noise":"0"}; \ No newline at end of file diff --git a/b/87880133b512c20baf3cfc78dec9f37d24233c70d1a6ff88cec8f5c16ba7fc8b b/b/87880133b512c20baf3cfc78dec9f37d24233c70d1a6ff88cec8f5c16ba7fc8b new file mode 100644 index 0000000000000000000000000000000000000000..43882c703ab5918b09f8432db5499feaa68931bd --- /dev/null +++ b/b/87880133b512c20baf3cfc78dec9f37d24233c70d1a6ff88cec8f5c16ba7fc8b @@ -0,0 +1,14 @@ +// AUTO-GENERATED by gen-iq-grids.mjs from ggml-common.h — do not edit by hand. +// IQ-quant codebook grids + helper tables, flattened to little-endian byte runs. +// A grid entry `idx` of stride S occupies bytes [idx*S .. idx*S+S); read uint8 +// for iq2*/iq3* grids, int8 (`(b<<24)>>24`) for iq1s_grid / kvalues_iq4nl. +const D = (s) => Uint8Array.from(atob(s), (c) => c.charCodeAt(0)); +export const iq2xxs_grid = /* 2048B */ D("CAgICAgICAgrCAgICAgICBkZCAgICAgICCsICAgICAgrKwgICAgICBkIGQgICAgICBkZCAgICAgICCsICAgICCsIKwgICAgICCsrCAgICAgrKysICAgICBkICBkICAgICBkIGQgICAgICBkZCAgICAgrGRkICAgIGQgrGQgICAgIGSsZCAgICAgICCsICAgIKwgIKwgICAgrKwgrCAgICCsIKysICAgIGQgICBkICAgIGQgIGQgICAgIGQgZCAgIGRkZCBkICAgICAgZGQgICAgZCCsZCAgICCsZKxkICAgICAgIKwgICCsICAgrCAgIKwgrCCsICAgrCAgrKwgICBkICAgIGQgICBkICAgZCAgICBkICBkICBkIKwgIGQgICBkrCAgZCAgICAgZCBkICCsICBkIGQgICCsIGQgZCAgICCsZCBkICBkICCsIGQgICBkIKwgZCAgICBkrCBkICAgZKysIGQgICAgICBkZCAgrCAgIGRkICAgrCAgZGQgICAgrCBkZCAgrGQgZGRkICBkrKxkZGQgICAgIKxkZCAgZCBkrGRkICBkrCAgrGQgICAgZCCsZCAgICAgZKxkICAgZCCsrGQgICBkrKysZCAgICAgICCsICBkZCAgIKwgICCsICAgrCAgIGRkICCsICAgrKwgIKwgIGQgIGQgrCAgIGQgZCCsICAgIGRkIKwgIKwgZGQgrCAgIKwgrCCsICAgZCAgZKwgICAgIGRkrCAgrCAgIKysICAgZGQgrKwgIGQgICAgIGQgIGQgICAgZCAgIGQgICBkIGQgrCAgIGQgICAgZCAgZCAgIKxkICBkICBkIKwgIGQgICBkrCAgZCBkZGSsICBkICAgICBkIGQgIKwgIGQgZCAgIKwgZCBkICAgZGRkIGQgrKxkZGQgZCAgICCsZCBkICBkrCCsIGQgZGQgZKwgZCAgICAgIGRkICCsICAgZGQgICCsICBkZCBkZKwgIGRkIGSsIGQgZGQgICAgrCBkZCAgrGQgZGRkIKwgrGRkZGQgICAgIKxkZCCsZGQgrGRkIGQgICAgrGQgIGQgICCsZCAgIGQgIKxkICAgIGQgrGQgZCAgrCCsZCAgICAgZKxkIGRkICBkrGQgICCsrGSsZCBkIGRkrKxkICAgICAgIKwgrCAgICAgrCCsrCAgICCsICBkIGQgIKwgZCCsZCAgrCAgICCsICCsIKwgIKwgIKwgZKysIGQgrCAgrCBkZCCsICAgICCsIKwgrCAgIKwgrCBkICAgIGSsICBkICAgZKwgICBkICBkrCAgICBkIGSsIKxkZGQgZKwgICAgIGRkrCBkICBkZGSsICBkrGRkZKwgICBkrKxkrCAgrCAgIKysICAgrCAgrKwgIGRkrCCsrCAgZCBkrKysIGQgICAgICBkIGQgICAgIGQgIGQgICAgZCCsZCAgICBkZCCsICAgIGQgZKwgICAgZCAgIGQgICBkIKwgZCAgIGSsZGRkICAgZCAgrGQgICBkZCAgrCAgIGQgZCCsICAgZCAgZKwgICBkICAgIGQgIGQgIKwgZCAgZGQgrGRkICBkICAgrGQgIGRkZCCsZCAgZGQgICCsICBkICBkIKwgIGQgrCBkrCAgZKxkZGSsICBkIKysZKwgIGQgICAgIGQgZCCsICAgZCBkICCsICBkIGQgICCsIGQgZGSsZKwgZCBkrCBkIGRkIGQgZKwgZGQgZCAgICCsZCBkZCAgICCsIGQgZCAgIKwgZCAgZCAgrCBkICAgZCCsIGRkZCBkIKwgZCAgICBkrCBkIKxkZGSsIGRkIKxkZKwgZKwgIKxkrCBkZGQgZKysIGQgIGSsrKwgZCAgICAgIGRkIKwgICAgZGRkIGQgICBkZGSsZCAgIGRkICCsICAgZGQgICCsICBkZCCsIKwgIGRkIGQgIGQgZGSsICBkZCBkZCBkrKxkIGRkZCBkrKwgZGQgIGSsIGRkZKwgZKwgZGRkrKwgIGRkZGRkICAgrGRkZCBkZGSsZGRkICAgICCsZGRkIGQgIKxkZGSsZCAgrGRkIGSsZCCsZGQgICBkZKxkZCCsICCsrGRkIGQgICAgrGQgIGQgICCsZCAgIGQgIKxkIKysZCAgrGQgICAgZCCsZGRkZGRkIKxkIKxkIKwgrGQgIKxkrCCsZCAgICAgZKxkZGQgICBkrGQgIGQgZGSsZKwgZCBkZKxkIGQgrGRkrGSsICBkIKysZCAgICAgICCsrCAgICAgIKysrCAgICAgrGQgIGQgICCsrCAgrCAgIKwgZCAgZCAgrCCsZCBkICCsICAgZGQgIKxkIGQgrCAgrGQgICAgZCCsIGQgICBkIKwgIGQgIGQgrGRkZCAgZCCsICAgZCBkIKwgIKxkIGQgrCAgICBkZCCsrGQgZGRkIKwgZGSsZGQgrGSsICCsZCCsICAgZKxkIKwgIKxkrGQgrKwgICAgrCCsIGQgIGSsIKxkIGQgrKwgrCBkICAgIGSsICBkICAgZKwgZKwgICBkrCAgIGQgIGSsZCCsrCAgZKysZGQgZCBkrCAgIKxkIGSsZGQgZKwgZKwgICAgIGRkrKwgrCAgZGSsIGQgZCBkZKxkIGRkZGRkrGQgIKwgrGSsICCsIGSsZKysICAgICCsrCAgZGQgIKysZGQgrCAgrKxkrCAgZCCsrCAgICCsIKysIKxkICBkrKwgIGRkIKysrCBkICBkrKys="); +export const iq2xs_grid = /* 4096B */ D("CAgICAgICAgrCAgICAgICBkZCAgICAgICCsICAgICAgrKwgICAgICBkIGQgICAgICBkZCAgICAgrGRkICAgICBkrGQgICAgICAgrCAgICAgrCCsICAgICBkZKwgICAgICCsrCAgICAgZCAgZCAgICAgZCBkICAgIKxkIGQgICAgZKwgZCAgICAgIGRkICAgIKwgZGQgICAgZGRkZCAgICAgrGRkICAgIGQgrGQgICAgIGSsZCAgICAgICCsICAgIKwgIKwgICAgZGQgrCAgICAgrCCsICAgIGQgZKwgICAgIGRkrCAgICBkrGSsICAgICAgrKwgICAgZCAgIGQgICAgZCAgZCAgIKxkICBkICAgZKwgIGQgICAgIGQgZCAgIKwgZCBkICAgZGRkIGQgICAgrGQgZCAgIKysZCBkICAgZCCsIGQgICAgZKwgZCAgICAgIGRkICAgrCAgZGQgICBkZCBkZCAgICCsIGRkICAgZCBkZGQgICAgZGRkZCAgICAgrGRkICAgIKysZGQgICBkICCsZCAgICBkIKxkICAgICBkrGQgICAgICAgrCAgIKwgICCsICAgZGQgIKwgICAgrCAgrCAgIGQgZCCsICAgIGRkIKwgICAgIKwgrCAgIGQgIGSsICAgIGQgZKwgICAgIGRkrCAgIGRkZGSsICAgICAgrKwgICCsrCCsrCAgIGQgICAgZCAgIGQgICBkICCsZCAgIGQgIGSsICAgZCAgICBkICBkICCsIGQgIGQgIGRkZCAgZCAgIKxkICBkICBkIKwgIGQgICBkrCAgZCAgICAgZCBkICCsICBkIGQgIGRkIGQgZCAgIKwgZCBkICBkIGRkIGQgICBkZGQgZCAgrGRkZCBkICAgIKxkIGQgIGQgIKwgZCAgIGQgrCBkICAgIGSsIGQgICAgICBkZCAgrCAgIGRkICBkZCAgZGQgICCsICBkZCAgZCBkIGRkICAgZGQgZGQgICAgrCBkZCAgZCAgZGRkICAgZCBkZGQgICAgZGRkZCAgZCCsZGRkICAgICCsZGQgIGQgICCsZCAgIGQgIKxkICAgIGQgrGQgIKxkrCCsZCAgICAgZKxkICCsICBkrGQgICBkIKysZCAgICAgICCsICCsICAgIKwgIGRkICAgrCAgIKwgICCsICCsrCAgIKwgIGQgZCAgrCAgIGRkICCsICAgIKwgIKwgIGRkrCAgrCAgZCAgZCCsICAgZCBkIKwgICAgZGQgrCAgIKxkZCCsICAgICCsIKwgICAgrKwgrCAgrKysrCCsICBkICAgZKwgICBkICBkrCAgICBkIGSsICAgICBkZKwgIGQgIKxkrCAgZKwgrGSsICAgICAgrKwgICAgrCCsrCAgIKysIKysICCsZGSsrKwgICAgrKysrCAgZCAgICAgZCAgZCAgICBkIKxkICAgIGQgZKwgICAgZCAgIGQgICBkIKwgZCAgIGQgZGRkICAgZCAgrGQgICBkIGQgrCAgIGQgIGSsICAgZCAgICBkICBkIKwgIGQgIGQgZGQgZCAgZCAgrCBkICBkIGQgZGQgIGQgIGRkZCAgZCAgIKxkICBkIKysrGQgIGQgZCAgrCAgZCAgZCCsICBkICAgZKwgIGQgICAgIGQgZCCsICAgZCBkIGRkICBkIGQgIKwgIGQgZCBkIGQgZCBkICBkZCBkIGQgICCsIGQgZCBkICBkZCBkICBkIGRkIGQgICBkZGQgZCAgICCsZCBkICBkZKxkIGQgrGRkrGQgZCBkICAgrCBkICBkICCsIGQgrGQgIKwgZCAgIGQgrCBkICAgIGSsIGQgICCsZKwgZCAgICAgIGRkIKwgICAgZGQgZGQgICBkZCAgrCAgIGRkIGQgZCAgZGQgIGRkICBkZCAgIKwgIGRkIGQgIGQgZGQgIGQgZCBkZCBkrCBkIGRkICAgZGQgZGQgIGSsZCBkZCAgICCsIGRkIGQgICBkZGQgIGQgIGRkZCAgIGQgZGRkICAgIGRkZGQgICAgIKxkZCAgZGQgrGRkIGSsIGSsZGQgZCAgICCsZCAgZCAgIKxkICAgZCAgrGQgrCBkICCsZCAgICBkIKxkICBkZGQgrGQgrGQgrCCsZCAgICAgZKxkIGRkICBkrGQgrGSsZGSsZCBkIGRkrKxkIGSsrKysrGQgICAgICAgrCCsICAgICCsIGRkICAgIKwgIKwgICAgrCCsrCAgICCsIGQgZCAgIKwgIGRkICAgrCAgIKwgICCsIGQgIGQgIKwgIGQgZCAgrCAgIGRkICCsICAgIKwgIKwgICCsrCAgrCBkICAgZCCsICBkICBkIKwgICBkIGQgrCAgICBkZCCsICCsIGRkIKwgZGSsZGQgrCAgICAgrCCsIKwgrCCsIKwgICAgrKwgrCAgrKysrCCsIGQgICAgZKwgIGQgICBkrCAgIGQgIGSsIGSsrCAgZKwgICAgZCBkrCAgICAgZGSsIGQgIGRkZKwgrCBkZGRkrCBkrGSsZGSsIGQgICCsZKwgrKxkIKxkrCCsZKysrGSsICAgICAgrKwgIKwgICCsrCCsrCAgIKysICAgrCAgrKwgZGRkZCCsrCAgrCCsIKysIKwgrKwgrKwgIKysZGSsrCAgIGSsZKysICCsICCsrKwgICCsIKysrCCsICCsrKysICCsIKysrKwgrKwgrKysrCBkICAgICAgZCBkICAgICBkrGQgICAgIGRkrCAgICAgZCAgZCAgICBkrCBkICAgIGRkZGQgICAgZCCsZCAgICBkZCCsICAgIGQgZKwgICAgZCAgIGQgICBkrCAgZCAgIGRkZCBkICAgZCCsIGQgICBkrKwgZCAgIGRkIGRkICAgZCBkZGQgICBkICCsZCAgIGRkZKxkICAgZGQgIKwgICBkIGQgrCAgIGQgIGSsICAgZCAgICBkICBkrCAgIGQgIGRkZCAgZCAgZCCsICBkICBkZCBkIGQgIGQgZGQgZCAgZCAgrCBkICBkZCAgZGQgIGQgZCBkZCAgZCAgZGRkICBkICAgrGQgIGRkZCCsZCAgZKwgrKxkICBkZCAgIKwgIGQgZCAgrCAgZCAgZCCsICBkrCBkIKwgIGRkrKwgrCAgZCAgIGSsICBkICAgICBkIGSsICAgIGQgZGRkICAgZCBkIKwgICBkIGRkIGQgIGQgZCBkZCAgZCBkZKxkICBkIGQgIKwgIGQgZGQgIGQgZCBkIGQgZCBkIGQgIGRkIGQgZCAgIKwgZCBkIGRkrCBkIGRkICAgZGQgZCBkICBkZCBkICBkIGRkIGQgZKwgZGQgZCAgIGRkZCBkrKxkrGRkIGQgICAgrGQgZKysICCsZCBkIGQgZKxkIGQgIGRkrGQgZGQgICAgrCBkIGQgICCsIGQgIGQgIKwgZCAgIGQgrCBkZGQgZCCsIGQgZGRkIKwgZKwgrGQgrCBkICAgIGSsIGRkIGQgZKwgZCBkIGRkrCBkICBkZGSsIGRkrKxkZKwgZCBkICCsrCBkICAgICAgZGSsICAgICBkZGRkICAgIGRkIKwgICAgZGRkIGQgICBkZCBkZCAgIGRkICCsICAgZGQgrKwgICBkZGQgIGQgIGRkIGQgZCAgZGQgIGRkICBkZCAgIKwgIGRkZCAgIGQgZGQgZCAgZCBkZCAgZCBkIGRkZGRkIGQgZGQgICBkZCBkZKwgIGRkIGRkICAgIKwgZGQgZCBkrCBkZKysrKysIGRkZCAgICBkZGQgZCAgIGRkZCAgZCAgZGRkZCCsICBkZGQgICBkIGRkZCAgrGQgZGRkZCAgrCBkZGRkIKysIGRkZCAgICBkZGRkIKwgIGRkZGQgICCsZGRkZCCsIKxkZGRkZCCsIKxkZGQgrKxkrGRkZGQgrKysZGRkICAgICCsZGQgZGQgIKxkZGQgIGQgrGRkICBkZCCsZGRkrGSsIKxkZKysZCBkrGRkICAgZGSsZGSsICBkZKxkZGRkIKysrGRkZCAgICAgrGQgZCAgICCsZCAgZCAgIKxkICAgZCAgrGQgZGRkICCsZKwgrGQgIKxkrGQgrCAgrGRkrKysICCsZCAgICBkIKxkIGSsIKwgrGSsrCBkrCCsZKwgZKysIKxkICAgICBkrGSsZGQgIGSsZCAgZCBkZKxkICAgZGRkrGRkZCBkZGSsZCBkrKxkZKxkZCAgICCsrGSsrKxkIKysZGRkrCBkrKxkrGQgIKysrGQgZGRkrKysZKwgrGSsrKxkICAgICAgIKysICAgICAgrGRkICAgICCsIKwgICAgIKxkIGQgICAgrCBkZCAgICCsICCsICAgIKysrKwgICAgrGQgIGQgICCsIGQgZCAgIKwgIGRkICAgrCAgIKwgICCsrCAgrCAgIKwgrKysICAgrKysrKwgICCsZCAgIGQgIKwgZCAgZCAgrKxkICBkICCsICBkIGQgIKwgICBkZCAgrGQgZGRkICCsZKxkZGQgIKwgICAgrCAgrCAgrCCsICCsICAgrKwgIKysICCsrCAgrCAgrKysICCsIKysrKwgIKxkICAgIGQgrCBkICAgZCCsICBkICBkIKysIGQgIGQgrGRkZCAgZCCsICAgZCBkIKwgIKxkIGQgrGSsIKwgZCCsICAgIGRkIKwgZCBkZGQgrGRkrKxkZCCsIKxkIKxkIKysrKxkrGQgrCAgICAgrCCsIKwgICCsIKxkZKwgIKwgrKysZGQgrCCsICAgrCCsIKysICCsIKwgrCCsrKwgrCCsrGQgIGSsIKysIKwgrKwgrCAgIKysrCCsIKwgrKysIKysZGSsrKwgrCCsrKysrCCsZCAgICAgZKwgZCAgICBkrCAgZCAgIGSsICAgZCAgZKysZGRkICBkrCBkIKwgIGSsICAgIGQgZKysIKwgZCBkrCBkrGRkIGSsrGRkZKwgZKxkrCCsrCBkrCAgICAgZGSsZGQgICBkZKwgZCBkIGRkrCAgZGQgZGSsIKxkZCBkZKxkrKwgZGRkrCAgZKxkZGSsrCBkrGRkZKxkICBkrGRkrGQgZGQgrGSsrGSsrCCsZKxkrCBkZKxkrGRkZCCsrGSsICCsZKysZKwgICAgICCsrKwgICAgIKysIKwgICAgrKysrCAgICCsrCAgrCAgIKysrKysICAgrKwgIKysICCsrGQgZGRkIKysZKxkZGQgrKysZKysZCCsrCAgICCsIKysrCAgIKwgrKwgrCAgrCCsrKysrCCsIKysICAgrKwgrKwgIKysrCCsrCAgIGQgZKysZGRkrCBkrKxkZKxkrGSsrCCsZKysZKysrKwgICCsrKwgIKwgIKysrKwgrCAgrKysIKysICCsrKwgIKysIKysrCCsrKwgrKysIGQgIGSsrKwgZCCsZKysrKxkIKxkrKysIKysIKysrKysrKwgrKysrGQgZKysrKysrKysrKysrKw=="); +export const iq2s_grid = /* 8192B */ D("CAgICAgICAgrCAgICAgICBkZCAgICAgICCsICAgICAgrKwgICAgICBkIGQgICAgICBkZCAgICAgrGRkICAgICBkrGQgICAgICAgrCAgICAgrCCsICAgICBkZKwgICAgICCsrCAgICAgZCAgZCAgICAgZCBkICAgIKxkIGQgICAgZKwgZCAgICAgIGRkICAgIKwgZGQgICAgZGRkZCAgICAgrGRkICAgIGQgrGQgICAgIGSsZCAgICCsZKxkICAgIGSsrGQgICAgICAgrCAgICCsICCsICAgIGRkIKwgICAgIKwgrCAgICBkIGSsICAgICBkZKwgICAgICCsrCAgICBkZKysICAgIKysrKwgICAgZCAgIGQgICAgZCAgZCAgIKxkICBkICAgZKwgIGQgICAgIGQgZCAgIKwgZCBkICAgZGRkIGQgICAgrGQgZCAgIGQgrCBkICAgIGSsIGQgICAgICBkZCAgIKwgIGRkICAgZGQgZGQgICAgrCBkZCAgIGQgZGRkICAgIGRkZGQgICCsZGRkZCAgIGSsZGRkICAgICCsZGQgICBkZKxkZCAgICCsrGRkICAgZCAgrGQgICAgZCCsZCAgICAgZKxkICAgrCBkrGQgICBkZGSsZCAgIGQgrKxkICAgIGSsrGQgICAgICAgrCAgIKwgICCsICAgZGQgIKwgICAgrCAgrCAgIGQgZCCsICAgIGRkIKwgICAgIKwgrCAgIKysrCCsICAgZCAgZKwgICAgZCBkrCAgIKxkIGSsICAgZKwgZKwgICAgIGRkrCAgIGRkZGSsICAgICAgrKwgICBkZCCsrCAgIKysIKysICAgIGRkrKwgICCsIKysrCAgIGQgICAgZCAgIGQgICBkICCsZCAgIGQgIGSsICAgZCAgICBkICBkICCsIGQgIGQgIGRkZCAgZCAgIKxkICBkICBkIKwgIGQgICBkrCAgZCAgrGSsICBkICBkrKwgIGQgICAgIGQgZCAgrCAgZCBkICBkZCBkIGQgICCsIGQgZCAgrKwgZCBkICBkIGRkIGQgICBkZGQgZCAgrGRkZCBkICBkrGRkIGQgICAgrGQgZCAgrCCsZCBkICBkZKxkIGQgIGQgIKwgZCAgIGQgrCBkICCsZCCsIGQgIGSsIKwgZCAgICBkrCBkICBkZGSsIGQgICCsZKwgZCAgZCCsrCBkICAgZKysIGQgICAgICBkZCAgrCAgIGRkICBkZCAgZGQgICCsICBkZCAgrKwgIGRkICBkIGQgZGQgICBkZCBkZCAgrGRkIGRkICBkrGQgZGQgICAgrCBkZCAgZGSsIGRkICAgrKwgZGQgIGQgIGRkZCAgIGQgZGRkICCsZCBkZGQgIGSsIGRkZCAgICBkZGRkICCsIGRkZGQgIGRkZGRkZCAgIKxkZGRkICBkIKxkZGQgICBkrGRkZCAgICAgrGRkICCsICCsZGQgIGRkIKxkZCAgIKwgrGRkICBkIGSsZGQgICBkZKxkZCAgICCsrGRkICBkICAgrGQgICBkICCsZCAgrGQgIKxkICBkrCAgrGQgICAgZCCsZCAgZGRkIKxkICAgICBkrGQgIGRkIGSsZCAgIKwgZKxkICBkIGRkrGQgICBkZGSsZCAgICCsZKxkICBkICCsrGQgICBkIKysZCAgICBkrKxkICAgICAgIKwgIKwgICAgrCAgZGQgICCsICAgrCAgIKwgIGQgZCAgrCAgIGRkICCsICCsZGQgIKwgIGSsZCAgrCAgICCsICCsICBkZKwgIKwgIKysrCAgrCAgZCAgZCCsICAgZCBkIKwgIKxkIGQgrCAgZKwgZCCsICAgIGRkIKwgIKwgZGQgrCAgZGRkZCCsICAgrGRkIKwgIGQgrGQgrCAgIGSsZCCsICAgICCsIKwgIGRkIKwgrCAgIGRkrCCsICCsrKysIKwgIGQgICBkrCAgIGQgIGSsICAgIGQgZKwgIKwgZCBkrCAgZGRkIGSsICAgrGQgZKwgIGQgrCBkrCAgICAgZGSsICBkZCBkZKwgICCsIGRkrCAgZCBkZGSsICAgZGRkZKwgICAgrGRkrCAgZCAgrGSsICAgIGSsZKwgICAgICCsrCAgZCBkIKysICAgZGQgrKwgIKwgrCCsrCAgIKysIKysICCsrKwgrKwgICAgZGSsrCAgZKxkrKysICBkICAgICBkICBkICAgIGQgrGQgICAgZCBkrCAgICBkICAgZCAgIGQgrCBkICAgZCBkZGQgICBkICCsZCAgIGQgZCCsICAgZCAgZKwgICBkIKxkrCAgIGQgICAgZCAgZCCsICBkICBkIGRkIGQgIGQgIKwgZCAgZCBkIGRkICBkICBkZGQgIGQgrGRkZCAgZCBkrGRkICBkICAgrGQgIGQgrCCsZCAgZCBkZKxkICBkICCsrGQgIGQgZCAgrCAgZCAgZCCsICBkIKxkIKwgIGQgICBkrCAgZCBkZGSsICBkICCsZKwgIGQgZCCsrCAgZCAgZKysICBkICAgICBkIGQgrCAgIGQgZCBkZCAgZCBkICCsICBkIGQgrKwgIGQgZCBkIGQgZCBkICBkZCBkIGQgrGRkIGQgZCBkrGQgZCBkICAgrCBkIGQgrCCsIGQgZCBkZKwgZCBkICCsrCBkIGQgZCAgZGQgZCAgZCBkZCBkIKxkIGRkIGQgZKwgZGQgZCAgIGRkZCBkIKwgZGRkIGQgZGRkZGQgZCAgrGRkZCBkIGQgrGRkIGQgIGSsZGQgZCAgICCsZCBkIKwgIKxkIGQgZGQgrGQgZCAgrCCsZCBkIGQgZKxkIGQgIGRkrGQgZCBkICAgrCBkICBkICCsIGQgZKwgIKwgZCAgIGQgrCBkIGRkZCCsIGQgZCCsIKwgZCAgZKwgrCBkICAgIGSsIGQgZGQgZKwgZCBkIGRkrCBkICBkZGSsIGQgZCAgrKwgZCAgZCCsrCBkICAgZKysIGQgICAgICBkZCCsICAgIGRkIGRkICAgZGQgIKwgICBkZCBkIGQgIGRkICBkZCAgZGQgrGRkICBkZCBkrGQgIGRkICAgrCAgZGQgZGSsICBkZCAgrKwgIGRkIGQgIGQgZGQgIGQgZCBkZCCsZCBkIGRkIGSsIGQgZGQgICBkZCBkZCCsIGRkIGRkIGRkZGQgZGQgIKxkZCBkZCBkIKxkIGRkICBkrGQgZGQgICAgrCBkZCCsICCsIGRkIGRkIKwgZGQgIKwgrCBkZCBkIGSsIGRkICBkZKwgZGQgICCsrCBkZCBkICAgZGRkICBkICBkZGQgrGQgIGRkZCBkrCAgZGRkICAgZCBkZGQgrCBkIGRkZCBkZGQgZGRkICCsZCBkZGQgZCCsIGRkZCAgZKwgZGRkICAgIGRkZGQgrCAgZGRkZCBkZCBkZGRkICCsIGRkZGQgZCBkZGRkZCAgZGRkZGRkICAgrGRkZGQgZCAgrGRkZCAgZCCsZGRkICAgZKxkZGQgICAgIKxkZCBkZCAgrGRkICCsICCsZGQgZCBkIKxkZCAgZGQgrGRkICAgrCCsZGQgZCAgZKxkZCAgZCBkrGRkICAgZGSsZGQgICAgrKxkZCCsrKysrGRkIGQgICAgrGQgIGQgICCsZCCsZCAgIKxkIGSsICAgrGQgICBkICCsZCBkZGQgIKxkICCsZCAgrGQgZCCsICCsZCAgICBkIKxkIKwgIGQgrGQgZGQgZCCsZCAgrCBkIKxkIGQgZGQgrGQgIGRkZCCsZCAgIKxkIKxkIGQgIKwgrGQgIGQgrCCsZCAgICAgZKxkIKwgICBkrGQgZGQgIGSsZCAgrCAgZKxkIGQgZCBkrGQgIGRkIGSsZCAgIKwgZKxkIGQgIGRkrGQgIGQgZGSsZCAgIGRkZKxkIGSsrGRkrGQgrCCsrGSsZCAgZCAgrKxkICAgZCCsrGQgICAgZKysZCCsZGRkrKxkICAgICAgIKwgrCAgICAgrCBkZCAgICCsICCsICAgIKwgZCBkICAgrCAgZGQgICCsIKxkZCAgIKwgZKxkICAgrCAgIKwgICCsIGRkrCAgIKwgrKysICAgrCBkICBkICCsICBkIGQgIKwgICBkZCAgrCCsIGRkICCsIGRkZGQgIKwgIGSsZCAgrCAgICCsICCsIKysIKwgIKwgIGRkrCAgrCCsrKysICCsIGQgICBkIKwgIGQgIGQgrCAgIGQgZCCsIKwgZCBkIKwgZGRkIGQgrCBkIKwgZCCsICAgIGRkIKwgrCAgZGQgrCBkZCBkZCCsIGQgZGRkIKwgIGRkZGQgrCAgIKxkZCCsIGQgIKxkIKwgIGQgrGQgrCAgIGSsZCCsICAgICCsIKwgrKwgIKwgrCCsIKwgrCCsICCsrCCsIKwgrKysIKwgrCAgZCBkrCCsICAgZGSsIKwgIKwgrKwgrCCsrCCsrCCsICCsrKysIKwgZCAgICBkrCAgZCAgIGSsIKxkICAgZKwgZKwgICBkrCAgIGQgIGSsIGRkZCAgZKwgIKxkICBkrCBkIKwgIGSsICBkrCAgZKwgICAgZCBkrCCsICBkIGSsIGRkIGQgZKwgIKwgZCBkrCBkIGRkIGSsICBkZGQgZKwgICCsZCBkrCBkICCsIGSsICBkIKwgZKwgICBkrCBkrCAgICAgZGSsIGRkICBkZKwgIKwgIGRkrCBkIGQgZGSsICBkZCBkZKwgICCsIGRkrCBkICBkZGSsICBkIGRkZKwgICBkZGRkrCCsZKxkZGSsICAgIKxkZKwgZCAgIKxkrCAgZCAgrGSsICAgZCCsZKwgICAgZKxkrCBkrGRkrGSsICAgICAgrKwgZGQgICCsrCBkIGQgIKysICBkZCAgrKwgZCAgZCCsrCAgZCBkIKysICAgZGQgrKwgrKwgrCCsrCCsrKysIKysIGQgICBkrKwgIGQgIGSsrCAgIGQgZKysIGRkZKxkrKwgrKwgIKysrCCsIKwgrKysICBkrGSsrKwgIKwgrKysrCCsrCCsrKysIGQgICAgICBkIGQgICAgIGSsZCAgICAgZGSsICAgICBkICBkICAgIGSsIGQgICAgZGRkZCAgICBkIKxkICAgIGSsrGQgICAgZGQgrCAgICBkIGSsICAgIGSsZKwgICAgZCAgIGQgICBkrCAgZCAgIGRkZCBkICAgZCCsIGQgICBkrKwgZCAgIGRkIGRkICAgZCBkZGQgICBkrGRkZCAgIGRkrGRkICAgZCAgrGQgICBkrCCsZCAgIGRkZKxkICAgZGQgIKwgICBkIGQgrCAgIGQgIGSsICAgZGRkZKwgICBkIKxkrCAgIGRkIKysICAgZCBkrKwgICBkICAgIGQgIGSsICAgZCAgZGRkICBkICBkIKwgIGQgIGRkIGQgZCAgZCBkZCBkICBkrGRkIGQgIGRkrGQgZCAgZCAgrCBkICBkrCCsIGQgIGRkZKwgZCAgZGQgIGRkICBkIGQgZGQgIGSsZCBkZCAgZGSsIGRkICBkICBkZGQgIGSsIGRkZCAgZGRkZGRkICBkIKxkZGQgIGRkIKxkZCAgZCBkrGRkICBkICAgrGQgIGSsICCsZCAgZGRkIKxkICBkIKwgrGQgIGRkIGSsZCAgZCBkZKxkICBkICCsrGQgIGRkICAgrCAgZCBkICCsICBkICBkIKwgIGSsIGQgrCAgZGRkZCCsICBkIKxkIKwgIGQgZKwgrCAgZCAgIGSsICBkZGQgZKwgIGQgrCBkrCAgZGQgZGSsICBkIGRkZKwgIGQgIKxkrCAgZGQgIKysICBkIGQgrKwgIGQgICAgIGQgZKwgICAgZCBkZGQgICBkIGQgrCAgIGQgZKysICAgZCBkZCBkICBkIGQgZGQgIGQgZKxkZCAgZCBkZKxkICBkIGQgIKwgIGQgZKwgrCAgZCBkZGSsICBkIGQgrKwgIGQgZGQgIGQgZCBkIGQgZCBkIGSsZCBkIGQgZGSsIGQgZCBkICBkZCBkIGSsIGRkIGQgZGRkZGQgZCBkIKxkZCBkIGRkIKxkIGQgZCBkrGQgZCBkICAgrCBkIGSsICCsIGQgZGRkIKwgZCBkIKwgrCBkIGRkIGSsIGQgZCBkZKwgZCBkICCsrCBkIGRkICAgZGQgZCBkICBkZCBkrGQgIGRkIGRkrCAgZGQgZCAgZCBkZCBkrCBkIGRkIGRkZGQgZGQgZCCsZCBkZCBkZCCsIGRkIGQgZKwgZGQgZCAgIGRkZCBkrCAgZGRkIGRkZCBkZGQgZCCsIGRkZCBkZCBkZGRkIGQgZGRkZGQgZCAgrGRkZCBkrKysZGRkIGRkICCsZGQgZCBkIKxkZCBkICBkrGRkIGQgICAgrGQgZKwgICCsZCBkZGQgIKxkIGQgrCAgrGQgZGQgZCCsZCBkIGRkIKxkIGQgIKwgrGQgZGQgIGSsZCBkIGQgZKxkIGQgIGRkrGQgZCAgIKysZCBkZGSsrKxkIGRkICAgIKwgZCBkICAgrCBkZKwgICCsIGQgIGQgIKwgZKwgZCAgrCBkZGRkICCsIGQgrGQgIKwgZGQgrCAgrCBkIGSsICCsIGQgICBkIKwgZKwgIGQgrCBkZGQgZCCsIGQgrCBkIKwgZGQgZGQgrCBkIGRkZCCsIGQgIKxkIKwgZCBkIKwgrCBkICBkrCCsIGQgICAgZKwgZKwgICBkrCBkZGQgIGSsIGQgrCAgZKwgZGQgZCBkrCBkIGRkIGSsIGQgIKwgZKwgZGQgIGRkrCBkIGQgZGSsIGQgIGRkZKwgZCAgIKxkrCBkrGRkrGSsIGRkICAgrKwgZCBkICCsrCBkICBkIKysIGQgICBkrKwgZCAgICAgIGRkrCAgICAgZGRkZCAgICBkZCCsICAgIGRkZCBkICAgZGQgZGQgICBkZKxkZCAgIGRkZKxkICAgZGQgIKwgICBkZKwgrCAgIGRkZGSsICAgZGQgrKwgICBkZGQgIGQgIGRkIGQgZCAgZGSsZCBkICBkZGSsIGQgIGRkICBkZCAgZGSsIGRkICBkZGRkZGQgIGRkIKxkZCAgZGRkIKxkICBkZCBkrGQgIGRkICAgrCAgZGSsICCsICBkZGRkIKwgIGRkIKwgrCAgZGRkIGSsICBkZCBkZKwgIGRkZCAgIGQgZGQgZCAgZCBkZKxkICBkIGRkZKwgIGQgZGQgIGQgZCBkZKwgZCBkIGRkZGRkIGQgZGQgrGQgZCBkZGQgrCBkIGRkIGSsIGQgZGQgICBkZCBkZKwgIGRkIGRkZGQgZGQgZGQgrCBkZCBkZGQgZGRkIGRkIGRkZGQgZGQgIKxkZCBkZGQgIKxkIGRkIGQgrGQgZGQgIGSsZCBkZCAgICCsIGRkZGQgIKwgZGQgrCAgrCBkZGQgZCCsIGRkIGRkIKwgZGQgIKwgrCBkZGQgIGSsIGRkIGQgZKwgZGQgIGRkrCBkZGSsrGSsIGRkICAgrKwgZGRkICAgIGRkZCBkICAgZGRkrGQgICBkZGRkrCAgIGRkZCAgZCAgZGRkrCBkICBkZGRkZGQgIGRkZCCsZCAgZGRkZCCsICBkZGQgZKwgIGRkZCAgIGQgZGRkrCAgZCBkZGRkZCBkIGRkZCCsIGQgZGRkZCBkZCBkZGQgZGRkIGRkZCAgrGQgZGRkZCAgrCBkZGQgZCCsIGRkZCAgZKwgZGRkICAgIGRkZGSsICAgZGRkZGRkICBkZGRkIKwgIGRkZGRkIGQgZGRkZCBkZCBkZGRkICCsIGRkZGRkICBkZGRkZCBkIGRkZGRkICBkZGRkZGQgICCsZGRkZGQgICCsZGRkIGQgIKxkZGQgIGQgrGRkZKxkrCCsZGRkICAgZKxkZGQgICAgIKxkZKwgICAgrGRkZGQgICCsZGQgrCAgIKxkZGQgZCAgrGRkIGRkICCsZGQgIKwgIKxkZGQgIGQgrGRkIGQgZCCsZGQgIGRkIKxkZKysZGQgrGRkICAgrCCsZGRkICAgZKxkZCBkICBkrGRkICBkIGSsZGQgICBkZKxkZCAgICCsrGRkZKxkIKysZGRkZCCsrKxkZCCsrKysrGRkZCAgICAgrGQgZCAgICCsZKxkICAgIKxkICBkICAgrGSsIGQgICCsZGRkZCAgIKxkIKxkICAgrGRkIKwgICCsZCBkrCAgIKxkICAgZCAgrGRkZCBkICCsZCCsIGQgIKxkZCBkZCAgrGQgZGRkICCsZCAgrGQgIKxkIGQgrCAgrGQgIGSsICCsZCAgICBkIKxkrCAgIGQgrGRkZCAgZCCsZCCsICBkIKxkZCBkIGQgrGQgZGQgZCCsZCAgrCBkIKxkZCAgZGQgrGQgZCBkZCCsZCAgZGRkIKxkICAgrGQgrGRkrGSsZCCsZCBkICCsIKxkICBkIKwgrGQgICBkrCCsZKxkZGSsIKxkZCCsrKwgrGQgICAgIGSsZGRkICAgZKxkIKwgICBkrGRkIGQgIGSsZCBkZCAgZKxkICCsICBkrGRkICBkIGSsZCBkIGQgZKxkICBkZCBkrGQgICCsIGSsZGQgICBkZKxkIGQgIGRkrGQgIGQgZGSsZCAgIGRkZKxkrKwgZGRkrGQgrKxkZGSsZKwgZKxkZKxkICAgIKxkrGQgZGSsrGSsZGQgICAgrKxkIGQgICCsrGQgIGQgIKysZGRkrGQgrKxkIKxkrCCsrGQgICAgZKysZKysrCBkrKxkrCAgZKysrGRkIKysrKysZCAgICAgICCsrCAgICAgIKxkZCAgICAgrCCsICAgICCsZCBkICAgIKwgZGQgICAgrGSsZCAgICCsICCsICAgIKxkZKwgICAgrGQgIGQgICCsIGQgZCAgIKwgIGRkICAgrKwgZGQgICCsZGRkZCAgIKwgrGRkICAgrGQgrGQgICCsICAgrCAgIKxkZCCsICAgrGQgZKwgICCsIGRkrCAgIKxkICAgZCAgrCBkICBkICCsZKwgIGQgIKwgIGQgZCAgrKwgZCBkICCsZGRkIGQgIKwgrGQgZCAgrGQgrCBkICCsIGSsIGQgIKwgICBkZCAgrKwgIGRkICCsZGQgZGQgIKwgrCBkZCAgrGQgZGRkICCsIGRkZGQgIKxkICCsZCAgrCBkIKxkICCsICBkrGQgIKxkrKysZCAgrCAgICCsICCsZGQgIKwgIKysrCAgrCAgrGQgZCCsICCsIGRkIKwgIKxkICBkrCAgrCBkIGSsICCsICBkZKwgIKxkICAgIGQgrCBkICAgZCCsrGQgICBkIKxkrCAgIGQgrCAgZCAgZCCsrCBkICBkIKxkZGQgIGQgrCCsZCAgZCCsZCCsICBkIKwgICBkIGQgrKwgIGQgZCCsZGQgZCBkIKwgrCBkIGQgrGQgZGQgZCCsIGRkZCBkIKwgIKxkIGQgrGQgIKwgZCCsIGQgrCBkIKwgIGSsIGQgrCAgICBkZCCsrCAgIGRkIKxkZCAgZGQgrCCsICBkZCCsZCBkIGRkIKwgZGQgZGQgrCAgrCBkZCCsZCAgZGRkIKwgZCBkZGQgrCAgZGRkZCCsICAgrGRkIKysrCCsZGQgrGQgICCsZCCsIGQgIKxkIKwgIGQgrGQgrGSsrCCsZCCsICAgZKxkIKwgICAgIKwgrGRkICAgrCCsZCBkICCsIKwgZGQgIKwgrGQgIGQgrCCsIGQgZCCsIKwgIGRkIKwgrKwgrKwgrCCsZCAgIGSsIKwgZCAgZKwgrCAgIGRkrCCsZGSsZGSsIKysIKwgrKwgrCCsZGSsrCCsrKxkZKysIKysICCsrKwgrKwgrKysrCCsZCAgICAgZKwgZCAgICBkrGSsICAgIGSsICBkICAgZKysIGQgICBkrGRkZCAgIGSsIKxkICAgZKwgZKwgICBkrCAgIGQgIGSsrCAgZCAgZKxkZCBkICBkrCCsIGQgIGSsZCBkZCAgZKwgZGRkICBkrCAgrGQgIGSsZCAgrCAgZKwgZCCsICBkrCAgZKwgIGSsICAgIGQgZKxkZCAgZCBkrGQgZCBkIGSsIGRkIGQgZKxkICBkZCBkrCBkIGRkIGSsICBkZGQgZKysrGRkZCBkrGQgICCsIGSsIGQgIKwgZKwgIGQgrCBkrCAgIGSsIGSsrGSsrKwgZKwgICAgIGRkrKwgICAgZGSsZGQgICBkZKwgrCAgIGRkrGQgZCAgZGSsIGRkICBkZKwgIKwgIGRkrGQgIGQgZGSsIGQgZCBkZKwgIGRkIGRkrCAgIKwgZGSsrGRkrCBkZKxkICAgZGRkrCBkICBkZGSsICBkIGRkZKwgICBkZGRkrCCsZKxkZGSsZCCsrGRkZKwgICAgrGRkrKxkIGSsZGSsIGSsZKxkZKxkICAgIKxkrCBkICAgrGSsICBkICCsZKysZKwgIKxkrCAgIGQgrGSsZKysrCCsZKwgICAgZKxkrGSsIGRkrGSsrCBkZGSsZKwgIGSsrKxkrCAgICAgIKysZGQgICAgrKysrCAgICCsrCBkZCAgIKysrCCsICAgrKysrKwgICCsrGQgIGQgIKysIGQgZCAgrKwgIGRkICCsrKwgrKwgIKysrKysrCAgrKwgICBkZCCsrGRkrGRkIKysrCAgIKwgrKysrCAgrCCsrKwgrCCsIKysIKysIKwgrKysrKwgrCCsrKwgIKysIKysIKwgrKwgrKysrCCsrCCsrCCsrKysIKysZCAgICBkrKwgZCAgIGSsrCAgZCAgZKysICAgZCBkrKxkrCCsIGSsrCBkrKwgZKysICAgIGRkrKxkrGQgZGSsrGQgZGSsZKysrKwgICCsrKwgrKwgIKysrKwgrKwgrKysIGRkZGSsrKysZCCsZKysrCCsICCsrKysrKwgIKysrKwgIKwgrKysrKwgrCCsrKysIKysIKysrKwgrCCsrKysrKysrKysrKys="); +export const iq3xxs_grid = /* 1024B */ D("BAQEBBQEBAQkBAQEDAwEBBwMBAQ+DAQEBBQEBBQUBAQMHAQEFCQEBBw+BAQsPgQEDAQMBBwEDAQEDAwEFAwMBAwUDAQsFAwEBBwMBBQcDAQMJAwEJCwMBAQ+DAQEBBQEFAQUBCQEFAQMDBQEBBQUBBQUFAQMHBQEHBwUBD4cFAQMLBQEPiwUBCw+FAQMBBwEPgQcBAQMHAQUDBwELBQcBAQ+HAQcDCQEPhwkBCQkJAQ+LCQEHD4kBCw+JAQMBCwEPgQsBBQcLAQULCwELBw0BCQ0NAQEDD4EJAw+BDQMPgQcJD4EDDQ+BAwEBAwcBAQMBAwEDBQMBAwMFAQMHBQEDAQcBAwUHAQMJBwEDD4kBAwELAQMBAQMDBQEDAwMDAwMBBQMDBQUDAwMBBQMHAQUDAQMFAwUDBQMDBQUDAQcFAwUPhQMBAQcDBQEHAwEFBwMDBwcDDQkHAw0NBwMDAQkDCwEJAwELCQMBBQsDCQULAw0JCwMDD4sDCwENAwUFD4MBCQ+DAQEBBQUBAQUDAwEFBwMBBQEFAQUFBQEFDQUBBQMHAQUFCQEFAwEDBQcBAwULAQMFAQMDBQUDAwUDBQMFAQcDBQcNAwUPjQMFAQ+DBQEBBQUFAQUFAwMFBQ+DBQUBBQUFBQUFBQ+HBQUBCQUFCwsFBQMBBwUBAwcFCQMHBQEPhwUJD4cFCwcJBQcLCQUHAQsFD4ULBQMJCwUJD4sFAwEPhQcBD4UNAw+FCwkPhQMBAQcBAwEHBQMBBwMFAQcHBQEHAQsBBwsNAQcFD4EHAQEDBwUBAwcBBQMHAwcDBwkJAwcNCQMHAwEFBwcBBQcBAwUHCwUFBwULBQcFD4UHAwMHBwcHBwcBBwkHD4kJBwUPiQcBAQsHDQELBwUFCwcLCwsHCQMNBw0HDQcHDQ0HBwcPhwEND4cJAQEJD4MBCQsHAQkPhwEJBwsBCQ+LAQkJD4MJAQUFCQ+HBQkBCQUJAQ0FCQ0NBQkPgQcJCwkHCQkBCQkDCwkJCQ0JCQsFCwkHCQsJAQ+LCQsBD4kBAw+JBQMPiQEHD4kFAwELAwkBCwEPgQsBAQMLDQEDCw0FAwsLCwMLCQMFCwUHBQsFD4ULBQEHCwcLBwsBAwkLBwUJCw+FCQsFD4kLBQELCwMHCwsBCw0LCQUPiwUJD4sJBQENCQkBDQ0JAQ0JDQENAwUDDQMNAw0PgwUNCQ0FDQEHBw0NBwcNCQkJDQsBCw0FCwsNBwcNDQcBD40DBQ+NBwEBD4sBAQ+PgQEPgQMBD4UHAQ+FCwEPjQUDD4EJAw+FAwUPiwkFD4ULBQ+BAQcPiwMHD4cHBw+BDQcPgwUJD4MJCQ+BAQsPhQELD4kFCw+BBw0Pg=="); +export const iq3s_grid = /* 2048B */ D("AQEBAQMBAQEFAQEBCwEBAQ8BAQEBAwEBAwMBAQUDAQEJAwEBDQMBAQEFAQEDBQEBCwUBAQcHAQEBCQEBBQkBAQsJAQEPCQEBAwsBAQcLAQEBDQEBBQ0BAQMPAQEJDwEBDw8BAQEBAwEDAQMBBQEDAQkBAwEBAwMBAwMDAQsDAwEBBQMBBwUDAQ8FAwEDBwMBCwcDAQkJAwEDDQMBCw0DAQUPAwEBAQUBAwEFAQsBBQEPAQUBAQMFAQcDBQENAwUBAwUFAQsFBQEBBwUBCQcFAQUJBQELCQUBDwkFAQMLBQEHCwUBAQ8FAQcPBQEHAQcBAwMHAQsDBwEBBQcBBQUHAQMHBwEHBwcBDQcHAQkJBwEBCwcBBQsHAQ8NBwEDDwcBCw8HAQEBCQEHAwkBDwMJAQMFCQEJBQkBBQcJAQEJCQEHCQkBAwsJAQEPCQEFAQsBCQELAQEFCwEFBQsBDQULAQcHCwEDCQsBCwkLAQ8JCwENDQsBBw8LAQ0BDQEDAw0BBwMNAQMHDQEFCw0BAw8NAQEBDwEFAQ8BCQEPAQEFDwEFBQ8BDQUPAQcHDwEBCw8BCQsPAQEBAQMDAQEDBQEBAwkBAQMBAwEDAwMBAwcDAQMLAwEDDwMBAwEFAQMFBQEDAwcBAwkHAQMNBwEDCQsBAw0LAQMDDQEDBQ8BAwEBAwMDAQMDBwEDAw0BAwMBAwMDCQMDAwMFAwMBBwMDBwcDAwMJAwMBCwMDBQsDAwEPAwMNDwMDAQEFAwUDBQMLAwUDDwMFAwEFBQMJBQUDBQcFAwEJBQMHCQUDCwsFAwENBQMFDwUDAwEHAwkBBwMPAQcDAQMHAwcDBwMDBQcDDwUHAwEHBwMJBwcDAwkHAwUNBwMBDwcDBwEJAwsBCQMFAwkDCQMJAwMHCQMHBwkDBQkJAw0JCQMBCwkDCQsJAwMBCwMBAwsDBwMLAwMFCwMBBwsDBQcLAwMLCwMBBQ0DCQUNAw8FDQMJCQ0DDQkNAwMBDwMHAQ8DAQMPAwUDDwMDBQ8DCwcPAwMJDwMFDQ8DAQ8PAwEBAQUDAQEFBwEBBQsBAQUPAQEFAQMBBQUDAQUJAwEFDQMBBQMFAQUHBQEFDwUBBQEHAQUFBwEFAwkBBQcJAQULCQEFAQsBBQULAQUPDQEFAQ8BBQcPAQULDwEFAQEDBQUBAwUBAwMFBwMDBQ8DAwUFBQMFCwUDBQMHAwUJBwMFBQkDBQMLAwUDAQUFCQEFBQ8BBQUDBQUFBwUFBQEHBQUPBwUFAwkFBQcLBQUPCwUFAw8FBQkPBQUBAQcFBQEHBQsBBwUDAwcFBQUHBQkFBwUDBwcFBwcHBQUJBwUBCwcFDQ0HBQMBCQUPAQkFAQUJBQcFCQUFBwkFCwcJBQMJCQUFDwkFCw8JBQkBCwUDAwsFBQULBQ8HCwUBCQsFBwsLBQEPCwUBAQ0FBQENBQ8BDQUDBQ0FCwsNBQMNDQULAQ8FAwMPBQ0FDwUBBw8FBwkPBQELDwUFAQEHAwMBBwcDAQcLAwEHDwMBBwUFAQcDBwEHBwcBBwsHAQcFCQEHCQkBBw8JAQcDCwEHBw0BBwMPAQcDAQMHBwEDBwsBAwcJAwMHAwUDBwcFAwcBCQMHAQ0DBwUPAwcNDwMHAQEFBwUDBQcBBQUHBQcFBwkHBQcBCwUHAwEHBwEDBwcJAwcHAwUHBwcFBwcPBQcHAQcHBwMJBwcHCQcHDwkHBwsLBwcHDwcHBwEJBwMDCQcNAwkHBQUJBwMHCQcFCwkHAQ0JBwkNCQcDAQsHAQMLBwUDCwcLBQsHBQcLBwkJCwcNCwsHBw8LBw0DDQcDCQ0HAwEPBwcBDwcBBQ8HBQUPBwsHDwcBAQEJCQEBCQUDAQkBBQEJCQUBCQ8FAQkFBwEJAwkBCQELAQkBDwEJBQEDCQ8BAwkDAwMJBwMDCQUFAwkBBwMJCwcDCQcJAwkDCwMJCwsDCQMBBQkHAQUJAQMFCQsDBQkDBQUJBwcFCQEJBQkPCwUJBQ0FCQEPBQkJAQcJAwMHCQcDBwkBBQcJBQUHCQMHBwkLBwcJAQEJCQUBCQkJBQkJDwcJCQEJCQkDDwkJCwELCQ8BCwkDBQsJBQ0LCQcDDQkJBw0JAQ0NCQEDDwkLAw8JAQcPCQcJDwkDCw8JBQEBCwEDAQsJAwELBQUBCwEJAQsJCQELDwkBCwULAQsNDQELCQ8BCwMBAwsHAQMLCwEDCwUDAwsDBQMLBQcDCwUPAwsBAQULAwMFCwcFBQsBBwULDQcFCwcLBQsFAQcLDwEHCwEDBwsPBQcLCQkHCwMLBwsLDQcLBw8HCwMBCQsJAQkLAQUJCwUHCQsNCQkLBQMLCw0FCwsDCwsLBwsLCwUJDQsFAQ8LCQEPCwUFDwsDAwENBwMBDQsDAQ0DBwENBwcBDQENAQ0BAQMNAQUDDQ8FAw0JDQMNBQMFDQkHBQ0FCQUNCwsFDQUNBQ0BDwUNAQEHDQkDBw0DBQcNAQkHDQsFCQ0HCQkNBQ0JDQEBCw0HAQsNCQcLDQENCw0LAQ0NAQkNDQMDDw0HAw8NAQEBDwkBAQ8PAQEPAQUBDwUFAQ8NBwEPAQkBDwkLAQ8FDQEPBQEDDwMDAw8JBQMPBwkDDwsJAw8DAQUPCQEFDwEDBQ8NAwUPAwUFDwEHBQ8DCwUPBQEHDwUHBw8LBwcPBwsHDwMBCQ8LAQkPBwMJDwEFCQ8BCwkPBQULDwUJCw8FAQ0PAwcNDwEBDw8="); +export const iq1s_grid = /* 16384B */ D("//////////8B/////////wAA/////////wH///////8BAf///////wD/AP//////AAAA/////////wH//////wH/Af///////wEB//////8BAQH//////wAA/wD/////AP8AAP//////AAAA/////wEAAAD/////AAABAP////////8B/////wH//wH//////wH/Af////8BAf8B/////wAAAAH///////8BAf////8B/wEB//////8BAQH/////AQEBAf//////AP//AP///wAA//8A////AP8A/wD/////AAD/AP///wEAAP8A////AAEA/wD///8BAQD/AP///wAAAf8A////AP//AAD///8BAP8AAP///wAB/wAA////Af8AAAD///8AAAAAAP///wEBAAAA////AP8BAAD/////AAEAAP///wEAAQAA/////wEBAAD///8AAP8BAP///wD/AAEA/////wAAAQD///8BAAABAP///wAAAQEA/////////wH///8B////Af////8B//8B////AQH//wH///8AAAD/Af//////Af8B////Af8B/wH/////AQH/Af///wEBAf8B////AAD/AAH///8A/wAAAf///wABAAAB/////wABAAH///8AAQEAAf///////wEB////Af//AQH/////Af8BAf///wEB/wEB////AP8AAQH///8AAAABAf///wABAAEB//////8BAQH///8B/wEBAf////8BAQEB////AQEBAQH///8A/wD//wD///8AAP//AP//AQAA//8A//8AAAH//wD//wD//wD/AP//AAH/AP8A//8AAAAA/wD//wEBAAD/AP///wABAP8A//8AAAEA/wD//wD/AAH/AP//AAEAAf8A//8AAAEB/wD//wD///8AAP///wD//wAA//8AAP//AAD//wEA//8AAP//AAAA/wAA////AQD/AAD//wEBAP8AAP//AAEB/wAA//////8AAAD//wAA/wAAAP//AQH/AAAA/////wAAAAD//wD/AAAAAP///wAAAAAA//8AAAAAAAD//wEAAAAAAP//AAEAAAAA/////wEAAAD//wH/AQAAAP//AAABAAAA////AQEAAAD//wEBAQAAAP//AP//AQAA//8A/wABAAD//wAAAAEAAP///wEAAQAA//8BAQABAAD//wD/AQEAAP///wABAQAA//8AAAEBAAD//wEAAQEAAP//AAEBAQAA////AAD/AQD//wABAP8BAP//AP//AAEA////AP8AAQD/////AAABAP//Af8AAAEA//8AAAAAAQD///8BAAABAP////8BAAEA//8A/wEAAQD//wEAAQABAP//AAEBAAEA//8AAP8BAQD//wD/AAEBAP///wAAAQEA//8AAQABAQD/////////Af//Af////8B////Af///wH//wEB////Af//AAAA//8B/////wH//wH//wH/Af//Af///wEB//8B//8BAQH//wH//wAA/wD/Af//AP8AAP8B//8BAAAA/wH//wAAAQD/Af//////Af8B//8B//8B/wH///8B/wH/Af//AQH/Af8B//8AAAAB/wH/////AQH/Af//Af8BAf8B////AQEB/wH//wEBAQH/Af//AAD//wAB//8A/wD/AAH///8AAP8AAf//AAEA/wAB////AAH/AAH//wAAAf8AAf//AP//AAAB/////wAAAAH//wD/AAAAAf//AAAAAAAB//8A/wEAAAH///8AAQAAAf//AAEBAAAB//8A/wABAAH///8AAAEAAf//AQAAAQAB//8AAQABAAH//wAAAQEAAf///////wEB//8B////AQH///8B//8BAf//AQH//wEB//8AAAD/AQH/////Af8BAf//Af8B/wEB////AQH/AQH//wEBAf8BAf//AAD/AAEB//8A/wAAAQH//wABAAABAf//AP8BAAEB//8AAAEAAQH//////wEBAf//Af//AQEB//8AAP8BAQH///8B/wEBAf//AQH/AQEB//8AAAABAQH/////AQEBAf//Af8BAQEB////AQEBAQH//wEBAQEBAf////8A////AP8A/wD///8A//8AAP///wD/AAEA////AP//AAH///8A/wAAAf///wD/AP//AP//AP//AP8A//8A////AAD//wD/AAAAAP//AP//AQAA//8A/wD/AQD//wD//wABAP//AP8AAAEA//8A/wABAQD//wD/AP8AAf//AP//AAAB//8A/wEAAAH//wD/AP8BAf//AP8AAAEB//8A/wD///8A/wD//wD//wD/AP8BAP//AP8A/wAB//8A/wD///8A/wD/AP8B/wD/AP8A/wAAAP8A/wD//wEA/wD/AP8A/wH/AP8A//8AAf8A/wD/AAEB/wD/AP8AAP8AAP8A/wEB/wAA/wD///8AAAD/AP8A/wAAAP8A/wH/AAAA/wD//wAAAAD/AP8AAAAAAP8A/wEAAAAA/wD/AAEAAAD/AP///wEAAP8A/wAAAQAA/wD//wD/AQD/AP8B/wABAP8A/wAAAAEA/wD/AP8BAQD/AP//AAEBAP8A/wD/AP8B/wD//wAA/wH/AP8BAAD/Af8A/wAAAf8B/wD/////AAH/AP8BAP8AAf8A/wAB/wAB/wD/Af8AAAH/AP8AAAAAAf8A//8BAAAB/wD/AQEAAAH/AP//AAEAAf8A/wEAAQAB/wD/AAD/AQH/AP8A/wABAf8A//8AAAEB/wD/AQAAAQH/AP8AAAEBAf8A/wD/////AAD/AQD///8AAP8AAf///wAA//8AAP//AAD/AAAA//8AAP//AQD//wAA/wABAP//AAD/AP8B//8AAP8BAAH//wAA/wD//wD/AAD/AAD/AP8AAP8BAP8A/wAA//8B/wD/AAD/AQH/AP8AAP8A/wAA/wAA//8AAAD/AAD/AAAAAP8AAP8BAAAA/wAA/wABAAD/AAD/Af8BAP8AAP8AAAEA/wAA//8BAQD/AAD//wD/Af8AAP8AAf8B/wAA////AAH/AAD//wAAAf8AAP8AAAAB/wAA//8BAAH/AAD/AAEAAf8AAP8BAQAB/wAA/wD/AQH/AAD//wABAf8AAP8AAAEB/wAA/wABAQH/AAD/Af///wAAAP8AAP//AAAA/wEB//8AAAD/AP8A/wAAAP//AAD/AAAA/wAAAP8AAAD/AQAA/wAAAP8AAQD/AAAA////Af8AAAD/Af8B/wAAAP8AAAH/AAAA//8BAf8AAAD/AQEB/wAAAP8A//8AAAAA//8A/wAAAAD/AAD/AAAAAP8BAP8AAAAA/wD/AAAAAAD/Af8AAAAAAP//AAAAAAAA/wAAAAAAAAD/AQAAAAAAAP8AAQAAAAAA/wEBAAAAAAD/AP8BAAAAAP//AAEAAAAA/wAAAQAAAAD/AQABAAAAAP8AAQEAAAAA/////wEAAAD/Af//AQAAAP//AP8BAAAA/wAA/wEAAAD//wH/AQAAAP8BAf8BAAAA////AAEAAAD/AP8AAQAAAP//AAABAAAA/wAAAAEAAAD/AQAAAQAAAP8AAQABAAAA/wEBAAEAAAD///8BAQAAAP8B/wEBAAAA/wAAAQEAAAD/AP///wEAAP//AP//AQAA/wAA//8BAAD/AQD//wEAAP8AAAD/AQAA/wEAAP8BAAD//wEA/wEAAP8BAQD/AQAA/wD/Af8BAAD/AQAB/wEAAP////8AAQAA/wH//wABAAD//wD/AAEAAP8AAP8AAQAA//8B/wABAAD/AQH/AAEAAP8A/wAAAQAA/wAAAAABAAD/AQAAAAEAAP//AQAAAQAA/wABAAABAAD/AP8BAAEAAP//AAEAAQAA/wAAAQABAAD//wEBAAEAAP8AAQEAAQAA/wEBAQABAAD/AQD/AQEAAP8BAf8BAQAA/wH/AAEBAAD/AAAAAQEAAP//AAEBAQAA/wABAQEBAAD/AP8A//8BAP8BAAD//wEA/wAAAf//AQD/AP//AP8BAP//AP8A/wEA/wEA/wD/AQD/AAH/AP8BAP///wAA/wEA/wAAAAD/AQD//wEAAP8BAP8BAQAA/wEA////AQD/AQD/AP8BAP8BAP//AAEA/wEA/wEAAQD/AQD/AAEBAP8BAP8AAP8B/wEA/wD/AAH/AQD//wAAAf8BAP8AAAEB/wEA////AP8AAQD/Af8A/wABAP8AAAD/AAEA/wEBAP8AAQD/AP8B/wABAP8AAAH/AAEA/wH//wAAAQD//wD/AAABAP8AAP8AAAEA//8B/wAAAQD/AP8AAAABAP//AAAAAAEA/wAAAAAAAQD/AQAAAAABAP8AAQAAAAEA/wEBAAAAAQD///8BAAABAP8AAAEAAAEA/wEBAQAAAQD/AAH/AQABAP8A/wABAAEA/wH/AAEAAQD/AAAAAQABAP//AQABAAEA/wD/AQEAAQD/AQABAQABAP8AAQEBAAEA/wAB//8BAQD/AQAA/wEBAP//AAH/AQEA/wEAAf8BAQD//wD/AAEBAP8BAP8AAQEA/wAB/wABAQD///8AAAEBAP8B/wAAAQEA/wAAAAABAQD//wEAAAEBAP8A/wEAAQEA/wEAAQABAQD/AAEBAAEBAP8AAP8BAQEA/wD/AAEBAQD/AQAAAQEBAP8BAQABAQEA/////////wH/Af//////Af//Af////8B/wEB/////wH/AAAA////Af///wH///8B/wH/Af///wH/AAAB////Af//AQH///8B/wEBAf///wH/AAD/AP//Af8A/wAA//8B/wABAAD//wH/AP8BAP//Af8AAAEA//8B/////wH//wH/Af//Af//Af//Af8B//8B/wEB/wH//wH/AAAAAf//Af///wEB//8B/wH/AQH//wH/AAABAf//Af//AQEB//8B/wEBAQH//wH/AAD//wD/Af8A/wD/AP8B//8AAP8A/wH/AAEA/wD/Af8AAAH/AP8B/wH//wAA/wH//wD/AAD/Af8AAf8AAP8B/wAAAAAA/wH//wEAAAD/Af8BAQAAAP8B/wD/AQAA/wH//wABAAD/Af8AAAEAAP8B/wEAAQAA/wH/AAD/AQD/Af///wABAP8B/wEAAAEA/wH/AAEAAQD/Af8AAAEBAP8B/wD///8B/wH//wH//wH/Af8BAf//Af8B/wD/AP8B/wH/AAAA/wH/Af///wH/Af8B/wH/Af8B/wH//wEB/wH/Af8BAQH/Af8B/wAA/wAB/wH/AP8AAAH/Af8BAAAAAf8B/wABAAAB/wH/AAABAAH/Af8A//8BAf8B//8B/wEB/wH/AQH/AQH/Af8A/wABAf8B/wAAAAEB/wH///8BAQH/Af8B/wEBAf8B//8BAQEB/wH/AQEBAQH/Af8AAP///wAB//8AAP//AAH/AQAA//8AAf8AAQD//wAB/wAAAf//AAH//wD/AP8AAf8AAP8A/wAB/wEA/wD/AAH/AAH/AP8AAf8B/wAA/wAB/wAAAAD/AAH//wEAAP8AAf8BAQAA/wAB/wEAAQD/AAH/AAD/Af8AAf8A/wAB/wAB//8AAAH/AAH/AAEAAf8AAf8A/wEB/wAB/wAAAQH/AAH/AAH//wAAAf8AAAD/AAAB/wD/Af8AAAH/AAEB/wAAAf////8AAAAB/wAA/wAAAAH//wH/AAAAAf8A/wAAAAAB//8AAAAAAAH/AAAAAAAAAf8AAQAAAAAB/wH/AQAAAAH/AAABAAAAAf//AQEAAAAB/wAB/wEAAAH///8AAQAAAf//AAABAAAB/wAAAAEAAAH//wEAAQAAAf8BAQABAAAB/wD/AQEAAAH//wABAQAAAf8BAAEBAAAB/wABAQEAAAH/AAD//wEAAf///wD/AQAB/wH/AP8BAAH/AAEA/wEAAf8AAAH/AQAB/wD//wABAAH/AAH/AAEAAf8AAAAAAQAB////AQABAAH/AP8BAAEAAf8AAQEAAQAB//8A/wEBAAH/AQD/AQEAAf///wABAQAB/wEBAAEBAAH///////8BAf8B/////wEB//8B////AQH/AQH///8BAf8AAAD//wEB////Af//AQH/Af8B//8BAf//AQH//wEB/wEBAf//AQH/AAD/AP8BAf8A/wAA/wEB//8AAAD/AQH/AAABAP8BAf////8B/wEB/wH//wH/AQH//wH/Af8BAf8BAf8B/wEB////AQH/AQH/Af8BAf8BAf//AQEB/wEB/wEBAQH/AQH/AAH//wABAf8A/wD/AAEB//8AAP8AAQH/AAEA/wABAf8AAAH/AAEB/wEA/wAAAQH/AAH/AAABAf8B/wAAAAEB/wAAAAAAAQH/AP8BAAABAf//AAEAAAEB/wEAAQAAAQH/AAEBAAABAf8AAP8BAAEB////AAEAAQH/AQAAAQABAf8AAQABAAEB//8AAQEAAQH/AAABAQABAf//////AQEB/wH///8BAQH//wH//wEBAf8BAf//AQEB////Af8BAQH/Af8B/wEBAf//AQH/AQEB/wEBAf8BAQH/AAD/AAEBAf8A/wAAAQEB/wEAAAABAQH/AAEAAAEBAf8AAAEAAQEB/////wEBAQH/Af//AQEBAf//Af8BAQEB/wEB/wEBAQH/AAAAAQEBAf///wEBAQEB/wH/AQEBAQH//wEBAQEBAf8BAQEBAQEB/wAA//////8AAP8A/////wABAAD/////AAAAAf////8AAAH/AP///wAB/wAA////AAAAAAD///8A/wEAAP///wABAQAA////AAD/AQD///8A/wABAP///wABAAEA////AP8AAAH///8AAAEAAf///wAA/wEB////AAEAAQH///8A/////wD//wAA////AP//AP8A//8A//8AAQD//wD//wAAAf//AP//AAH/AP8A//8AAAAA/wD//wABAAD/AP//AP8BAP8A//8AAQEA/wD//wAA/wH/AP//AAEAAf8A//8AAAEB/wD//wAAAP8AAP//AP8B/wAA//8AAQH/AAD//wAA/wAAAP//AP8AAAAA//8AAAAAAAD//wABAAAAAP//AAABAAAA//8AAQEAAAD//wAAAAEAAP//AP8BAQAA//8AAQEBAAD//wAA//8BAP//AP8A/wEA//8AAQD/AQD//wD//wABAP//AAH/AAEA//8AAAAAAQD//wD//wEBAP//AAD/AQEA//8AAf8BAQD//wAAAP//Af//AAD/AP8B//8A/wAA/wH//wABAAD/Af//AAAAAf8B//8AAP//AAH//wAB/wAAAf//AAAAAAAB//8AAQEAAAH//wD/AAEAAf//AAABAQAB//8AAAH/AQH//wD/AAABAf//AAAAAQEB//8AAP////8A/wAAAAD//wD/AAABAP//AP8AAAEB//8A/wAAAP8A/wD/AP8B/wD/AP8AAQH/AP8A/wAA/wAA/wD/AP8AAAD/AP8AAAAAAP8A/wABAAAA/wD/AAD/AQD/AP8AAf8BAP8A/wAAAAEA/wD/AP8BAQD/AP8AAQEBAP8A/wAA//8B/wD/AAEA/wH/AP8AAAH/Af8A/wD//wAB/wD/AAH/AAH/AP8AAAAAAf8A/wD//wEB/wD/AAD/AQH/AP8AAAEBAf8A/wAA////AAD/AAH///8AAP8AAAD//wAA/wABAf//AAD/AAD/AP8AAP8A/wAA/wAA/wAAAAD/AAD/AAEAAP8AAP8AAAEA/wAA/wD//wH/AAD/AAAAAf8AAP8AAQEB/wAA/wAA//8AAAD/AP8A/wAAAP8AAAD/AAAA/wABAP8AAAD/AAAB/wAAAP8A//8AAAAA/wAA/wAAAAD/AP8AAAAAAP8AAAAAAAAA/wABAAAAAAD/AP8BAAAAAP8AAAEAAAAA/wAA/wEAAAD/AP8AAQAAAP8AAAABAAAA/wABAAEAAAD/AAABAQAAAP8AAf//AQAA/wD/AP8BAAD/AAAA/wEAAP8A/wH/AQAA/wAA/wABAAD/AP8AAAEAAP8AAAAAAQAA/wABAAABAAD/AAABAAEAAP8AAQEAAQAA/wAAAAEBAAD/AP8BAQEAAP8AAQEBAQAA/wAA////AQD/AAAA//8BAP8AAAH//wEA/wD/AAD/AQD/AAAAAP8BAP8A/wEA/wEA/wABAQD/AQD/AAD/Af8BAP8A/wAB/wEA/wAAAQH/AQD/AP///wABAP8AAf//AAEA/wAAAP8AAQD/AP8B/wABAP8A//8AAAEA/wAA/wAAAQD/AAH/AAABAP8AAAAAAAEA/wABAAAAAQD/AAABAAABAP8AAf8BAAEA/wAAAAEAAQD/AP8BAQABAP8AAP//AQEA/wAAAP8BAQD/AAEB/wEBAP8A/wAAAQEA/wAAAAABAQD/AAD/AQEBAP8A/wABAQEA/wABAAEBAQD/AAAA////Af8AAP8A//8B/wAAAAD//wH/AAEBAP//Af8AAAAB//8B/wAB//8A/wH/AAAB/wD/Af8A//8AAP8B/wAAAAAA/wH/AP8BAAD/Af8AAP8BAP8B/wD/AAEA/wH/AAEAAQD/Af8AAAEBAP8B/wAAAP8B/wH/AAD/AAH/Af8A/wAAAf8B/wABAAAB/wH/AAABAAH/Af8AAAABAf8B/wAA////AAH/AAAA//8AAf8AAQD//wAB/wABAf//AAH/AP//AP8AAf8A/wAA/wAB/wAAAAD/AAH/AP8BAP8AAf8AAP8B/wAB/wD/AAH/AAH/AAEAAf8AAf8A////AAAB/wAAAP8AAAH/AAEB/wAAAf8AAP8AAAAB/wAB/wAAAAH/AP8AAAAAAf8AAAAAAAAB/wABAAAAAAH/AAABAAAAAf8A//8BAAAB/wAB/wEAAAH/AAAAAQAAAf8AAQABAAAB/wABAQEAAAH/AAEA/wEAAf8AAAH/AQAB/wAB/wABAAH/AAAAAAEAAf8AAQAAAQAB/wD/AQABAAH/AAD/AQEAAf8A/wABAQAB/wABAAEBAAH/AAABAQEAAf8AAQAA/wEB/wD/AP8AAQH/AAEA/wABAf8AAAH/AAEB/wAAAAAAAQH/AP8BAAABAf8AAQEAAAEB/wD/AAEAAQH/AAABAQABAf8A/wAAAQEB/wAAAAEBAQH/AAD//////wAA/wD/////AAAAAP////8AAAEA/////wAAAAH/////AAAB/wD///8AAAAAAP///wAAAQEA////AAAA/wH///8AAP8AAf///wAAAAEB////AAD///8A//8AAAAA/wD//wAA/wH/AP//AAAA/wAA//8AAP8AAAD//wAAAAAAAP//AAABAAAA//8AAAABAAD//wAAAAABAP//AAD/AQEA//8AAAEA/wH//wAAAAH/Af//AAAAAAAB//8AAP8BAAH//wAA//8BAf//AAAA/wEB//8AAAEAAQH//wAAAAEBAf//AAAAAP//AP8AAP8B//8A/wAAAAH//wD/AAABAf//AP8AAAD/AP8A/wAA/wAA/wD/AAAAAAD/AP8AAAEAAP8A/wAA/wEA/wD/AAAAAQD/AP8AAP//Af8A/wAAAAAB/wD/AAABAAH/AP8AAP8BAf8A/wAAAQEB/wD/AAAA//8AAP8AAP8A/wAA/wAAAAD/AAD/AAABAP8AAP8AAAAB/wAA/wAA//8AAAD/AAAA/wAAAP8AAAH/AAAA/wAA/wAAAAD/AAAAAAAAAP8AAAEAAAAA/wAA/wEAAAD/AAAAAQAAAP8AAAEBAAAA/wAAAP8BAAD/AAD/AAEAAP8AAAAAAQAA/wAAAQABAAD/AAAAAQEAAP8AAAH//wEA/wAAAAD/AQD/AAAA/wABAP8AAP8AAAEA/wAAAAAAAQD/AAABAAABAP8AAAABAAEA/wAA//8BAQD/AAAAAAEBAP8AAAEBAQEA/wAAAP///wH/AAABAP//Af8AAAH/AP8B/wAAAAAA/wH/AAABAQD/Af8AAAD/Af8B/wAA/wAB/wH/AAAB//8AAf8AAAAA/wAB/wAAAQH/AAH/AAAA/wAAAf8AAP8AAAAB/wAAAAAAAAH/AAABAAAAAf8AAAABAAAB/wAAAf8BAAH/AAAAAAEAAf8AAAAA/wEB/wAA//8AAQH/AAAB/wABAf8AAAAAAAEB/wAAAAEAAQH/AAABAQABAf8AAP8AAQEB/wAA/wD///8AAAAAAP///wAAAAD/AP//AAAA/wAA//8AAAAAAAD//wAAAAEAAP//AAAA/wEA//8AAAAAAQD//wAAAAD/Af//AAAAAAAB//8AAAD/AQH//wAAAAEBAf//AAAAAP//AP8AAAD/AP8A/wAAAAAA/wD/AAAAAQD/AP8AAAAAAf8A/wAAAAEB/wD/AAAA//8AAP8AAAAA/wAA/wAAAP8AAAD/AAAAAAAAAP8AAAABAAAA/wAAAP8BAAD/AAAAAAEAAP8AAAABAQAA/wAAAAD/AQD/AAAAAf8BAP8AAAD/AAEA/wAAAAAAAQD/AAAAAQABAP8AAAAAAQEA/wAAAP///wH/AAAA/wH/Af8AAAABAf8B/wAAAAD/AAH/AAAA/wAAAf8AAAAAAAAB/wAAAAEAAAH/AAAAAAEAAf8AAAAA/wEB/wAAAP8AAQH/AAAAAAABAf8AAAABAQEB/wAAAAD///8AAAAAAf///wAAAAD/AP//AAAAAAAA//8AAAAAAQD//wAAAAAAAf//AAAAAP//AP8AAAAAAP8A/wAAAAAB/wD/AAAAAP8AAP8AAAAAAAAA/wAAAAABAAD/AAAAAAABAP8AAAAAAQEA/wAAAAAA/wH/AAAAAP8AAf8AAAAAAAAB/wAAAAABAAH/AAAAAAABAf8AAAAA////AAAAAAAA//8AAAAAAAH//wAAAAAA/wD/AAAAAAAAAP8AAAAAAAEA/wAAAAAA/wH/AAAAAAAAAf8AAAAAAP//AAAAAAAAAP8AAAAAAAAB/wAAAAAAAP8AAAAAAAAAAAAAAAAAAAABAAAAAAAAAP8BAAAAAAAAAAEAAAAAAAABAQAAAAAAAP//AQAAAAAAAP8BAAAAAAD/AAEAAAAAAAAAAQAAAAAAAQABAAAAAAD/AQEAAAAAAAABAQAAAAAAAQEBAAAAAAAA//8BAAAAAP8A/wEAAAAAAAD/AQAAAAAAAf8BAAAAAAEB/wEAAAAA//8AAQAAAAAA/wABAAAAAP8AAAEAAAAAAAAAAQAAAAABAAABAAAAAP8BAAEAAAAAAAEAAQAAAAAA/wEBAAAAAP8AAQEAAAAAAAABAQAAAAABAAEBAAAAAAABAQEAAAAA/////wEAAAAA////AQAAAAH///8BAAAA/wD//wEAAAABAP//AQAAAP8B//8BAAAAAAH//wEAAAAA/wD/AQAAAP8AAP8BAAAAAAAA/wEAAAD/AQD/AQAAAAABAP8BAAAA//8B/wEAAAAA/wH/AQAAAAH/Af8BAAAA/wAB/wEAAAAAAAH/AQAAAAEAAf8BAAAA/wEB/wEAAAAAAQH/AQAAAAD//wABAAAAAAD/AAEAAAABAP8AAQAAAP8B/wABAAAAAAH/AAEAAAABAf8AAQAAAP//AAABAAAAAP8AAAEAAAAB/wAAAQAAAP8AAAABAAAAAAAAAAEAAAABAAAAAQAAAP8BAAABAAAAAAEAAAEAAAABAQAAAQAAAAD/AQABAAAA/wABAAEAAAAAAAEAAQAAAAABAQABAAAAAf//AQEAAAAAAP8BAQAAAAEA/wEBAAAA/wH/AQEAAAAAAf8BAQAAAAEB/wEBAAAAAP8AAQEAAAAAAAABAQAAAAEBAAEBAAAAAf8BAQEAAAAAAAEBAQAAAAEAAQEBAAAA/wEBAQEAAAAAAQEBAQAAAP8A////AQAAAAD///8BAAABAP///wEAAAAB////AQAA//8A//8BAAAAAAD//wEAAP8BAP//AQAAAP8B//8BAAABAQH//wEAAAAA/wD/AQAA/wH/AP8BAAABAf8A/wEAAAD/AAD/AQAA/wAAAP8BAAAAAAAA/wEAAAEAAAD/AQAA/wEAAP8BAAAAAQAA/wEAAP//AQD/AQAAAf8BAP8BAAD/AAEA/wEAAAAAAQD/AQAAAf//Af8BAAAAAf8B/wEAAP//AAH/AQAAAf8AAf8BAAAAAAAB/wEAAP8BAAH/AQAAAP8BAf8BAAAAAQEB/wEAAAD///8AAQAAAf///wABAAAAAP//AAEAAAEB//8AAQAAAP8A/wABAAD/AAD/AAEAAAAAAP8AAQAAAQAA/wABAAAAAQD/AAEAAAAAAf8AAQAAAP//AAABAAD/AP8AAAEAAAAA/wAAAQAAAQD/AAABAAAAAf8AAAEAAP//AAAAAQAAAP8AAAABAAAB/wAAAAEAAP8AAAAAAQAAAAAAAAABAAABAAAAAAEAAP8BAAAAAQAAAAEAAAABAAABAQAAAAEAAAD/AQAAAQAA/wABAAABAAAAAAEAAAEAAAEAAQAAAQAAAAEBAAABAAAA//8BAAEAAAAA/wEAAQAAAAH/AQABAAAA/wABAAEAAP8AAAEAAQAAAAAAAQABAAABAAABAAEAAP8BAAEAAQAAAAEAAQABAAAAAAEBAAEAAP8A//8BAQAA/wH//wEBAAAAAAD/AQEAAAEBAP8BAQAA//8B/wEBAAAAAAH/AQEAAAEAAf8BAQAAAAEB/wEBAAAAAP8AAQEAAP8B/wABAQAAAAH/AAEBAAAA/wAAAQEAAAAAAAABAQAAAQAAAAEBAAD/AQAAAQEAAAABAAABAQAAAf8BAAEBAAAAAAEAAQEAAP8BAQABAQAAAQEBAAEBAAAA//8BAQEAAAEB/wEBAQAAAf8AAQEBAAAAAAABAQEAAAEAAAEBAQAA/wEAAQEBAAABAQABAQEAAAD/AQEBAQAAAAD/////AQD/AAD///8BAAEAAP///wEAAAEA////AQAAAAH///8BAP8A/wD//wEA//8AAP//AQAAAAAA//8BAAEAAAD//wEA/wEAAP//AQABAQAA//8BAAD/AQD//wEA/wABAP//AQABAAEA//8BAAABAQD//wEAAP//Af//AQABAAAB//8BAAAAAQH//wEAAP///wD/AQD/AP//AP8BAAEA//8A/wEAAAH//wD/AQAB/wD/AP8BAAAAAP8A/wEAAP8B/wD/AQAB/wH/AP8BAAEAAf8A/wEAAAEB/wD/AQAAAP8AAP8BAAAB/wAA/wEAAP8AAAD/AQAAAAAAAP8BAAEAAAAA/wEAAAEAAAD/AQAAAAEAAP8BAAEAAQAA/wEAAQEBAAD/AQD/AP8BAP8BAAEB/wEA/wEAAf8AAQD/AQAAAAABAP8BAAD/AQEA/wEAAQABAQD/AQAAAQEBAP8BAAD/AP8B/wEAAQAA/wH/AQAAAQD/Af8BAP///wAB/wEAAP//AAH/AQABAP8AAf8BAAAAAAAB/wEAAQAAAAH/AQD/AQAAAf8BAP//AQAB/wEAAAD/AQH/AQAA/wABAf8BAAEAAAEB/wEAAAABAQH/AQAA/wD//wABAAH/AP//AAEAAAAA//8AAQABAAD//wABAAEBAP//AAEAAP8B//8AAQABAAH//wABAAABAf//AAEA////AP8AAQAB//8A/wABAAAA/wD/AAEA/wH/AP8AAQABAf8A/wABAAD/AAD/AAEA/wAAAP8AAQAAAAAA/wABAAEAAAD/AAEAAAEAAP8AAQABAQAA/wABAP//AQD/AAEAAf8BAP8AAQAAAAEA/wABAP8A/wH/AAEAAAD/Af8AAQAAAf8B/wABAP//AAH/AAEAAf8AAf8AAQD/AAAB/wABAAAAAAH/AAEAAQAAAf8AAQD/AQAB/wABAAEBAAH/AAEAAP8BAf8AAQD/AAEB/wABAAABAQH/AAEAAAD//wAAAQD/Af//AAABAAEB//8AAAEAAP8A/wAAAQAAAAD/AAABAAEAAP8AAAEAAAEA/wAAAQD/AP8AAAABAAAA/wAAAAEAAQD/AAAAAQAAAf8AAAABAP//AAAAAAEAAP8AAAAAAQD/AAAAAAABAAAAAAAAAAEAAQAAAAAAAQAAAQAAAAABAAD/AQAAAAEA/wABAAAAAQAAAAEAAAABAAEAAQAAAAEAAAEBAAAAAQABAP8BAAABAAAB/wEAAAEAAQH/AQAAAQAA/wABAAABAAAAAAEAAAEAAQAAAQAAAQAAAQABAAABAAEBAAEAAAEAAf8BAQAAAQAAAAEBAAABAAEAAQEAAAEA/wEBAQAAAQAB////AQABAAAB//8BAAEAAAAA/wEAAQD//wH/AQABAAEAAf8BAAEA/wEB/wEAAQAAAQH/AQABAP///wABAAEAAAD/AAEAAQD/Af8AAQABAAEB/wABAAEAAP8AAAEAAQD/AAAAAQABAAAAAAABAAEAAQAAAAEAAQD/AQAAAQABAAEBAAABAAEA//8BAAEAAQAAAAEAAQABAP8BAQABAAEA////AQEAAQAB//8BAQABAAAA/wEBAAEAAQH/AQEAAQD/AAABAQABAAEAAAEBAAEA/wEAAQEAAQAAAQABAQABAP//AQEBAAEA/wABAQEAAQABAAEBAQABAAEBAQEBAAEAAQAA//8BAQAAAQD//wEBAAAAAf//AQEAAP//AP8BAQAB/wAA/wEBAAAAAAD/AQEAAQEAAP8BAQAA/wEA/wEBAAABAQD/AQEAAAD/Af8BAQAA/wAB/wEBAP8BAAH/AQEAAQABAf8BAQAA////AAEBAP8A//8AAQEA//8A/wABAQAAAAD/AAEBAAD/Af8AAQEA/wAB/wABAQABAAH/AAEBAAABAf8AAQEA////AAABAQAA//8AAAEBAAAA/wAAAQEAAQD/AAABAQD/Af8AAAEBAAD/AAAAAQEA/wAAAAABAQAAAAAAAAEBAAEAAAAAAQEAAAEAAAABAQD//wEAAAEBAAAAAQAAAQEAAQEBAAABAQAB//8BAAEBAP8A/wEAAQEAAQH/AQABAQAAAAABAAEBAAD/AQEAAQEA/wABAQABAQAAAAEBAAEBAAABAQEAAQEAAP8A/wEBAQABAAD/AQEBAP8BAP8BAQEAAP//AAEBAQD/AP8AAQEBAAAB/wABAQEA//8AAAEBAQAAAAAAAQEBAP8BAAABAQEAAQEAAAEBAQD/AAEAAQEBAAAAAQABAQEAAAEBAAEBAQABAP8BAQEBAP8AAAEBAQEA/wEAAQEBAQABAQABAQEBAAEAAQEBAQEA/////////wEB////////Af8B//////8BAQH//////wH//wH/////AQH/Af////8B/wEB/////wEBAQH/////AQAA/wD///8B//8AAP///wEA/wAA////Af8AAAD///8BAQAAAP///wEAAQAA////AQAAAQD///8B////Af///wEB//8B////Af8B/wH///8BAQH/Af///wEAAAAB////Af//AQH///8BAf8BAf///wH/AQEB////AQEBAQH///8BAAD//wD//wEA/wD/AP//Af8AAP8A//8BAQAA/wD//wEAAQD/AP//AQAAAf8A//8BAP//AAD//wH/AP8AAP//AQAB/wAA//8B//8AAAD//wEB/wAAAP//AQAAAAAA//8BAQAAAAD//wH/AQAAAP//AQABAAAA//8B/wABAAD//wEBAAEAAP//AQABAQAA//8BAAD/AQD//wEAAf8BAP//Af8AAAEA//8BAQAAAQD//wEAAQABAP//AQAAAQEA//8B/////wH//wEB////Af//Af8B//8B//8BAQH//wH//wEAAAD/Af//Af//Af8B//8BAf8B/wH//wH/AQH/Af//AQEBAf8B//8BAP8AAAH//wH/AAAAAf//AQABAAAB//8BAAABAAH//wH///8BAf//AQH//wEB//8B/wH/AQH//wEBAf8BAf//AQAAAAEB//8B//8BAQH//wEB/wEBAf//Af8BAQEB//8BAQEBAQH//wH/AAD//wD/AQABAP//AP8BAP//AP8A/wH/AP8A/wD/AQD/AAD/AP8BAAAAAP8A/wEBAQAA/wD/AQD/AQD/AP8B/wABAP8A/wEAAQEA/wD/Af8AAAH/AP8BAAEAAf8A/wEA////AAD/AQAB//8AAP8BAf8A/wAA/wEAAAD/AAD/AQEBAP8AAP8BAQAB/wAA/wEAAQH/AAD/Af///wAAAP8BAP//AAAA/wEAAP8AAAD/Af8B/wAAAP8BAP8AAAAA/wH/AAAAAAD/AQAAAAAAAP8BAQAAAAAA/wEAAQAAAAD/AQEBAAAAAP8BAAABAAAA/wEBAAEAAAD/Af8BAQAAAP8BAQEBAAAA/wEA//8BAAD/Af8A/wEAAP8BAQD/AQAA/wEAAf8BAAD/Af//AAEAAP8BAf8AAQAA/wEAAAABAAD/Af8BAAEAAP8BAQABAQAA/wEA/wD/AQD/AQEAAP8BAP8BAAEA/wEA/wEAAAH/AQD/AQD//wABAP8B/wD/AAEA/wEAAf8AAQD/AQEB/wABAP8B//8AAAEA/wEAAAAAAQD/AQABAAABAP8BAQEAAAEA/wEA/wEAAQD/AQEAAQABAP8BAQEBAAEA/wEAAP8BAQD/AQD/AAEBAP8BAQEAAQEA/wH/AAEBAQD/Af//////Af8BAf////8B/wH/Af///wH/AQEB////Af8BAAAA//8B/wH//wH//wH/AQH/Af//Af8B/wEB//8B/wEBAQH//wH/AQD//wD/Af8BAAD/AP8B/wEA/wAA/wH/Af8AAAD/Af8BAAEAAP8B/wEAAAEA/wH/AQABAQD/Af8B////Af8B/wEB//8B/wH/Af8B/wH/Af8BAQH/Af8B/wEAAAAB/wH/Af//AQH/Af8BAf8BAf8B/wH/AQEB/wH/AQEBAQH/Af8BAAD//wAB/wEBAP//AAH/AQD/AP8AAf8B/wAA/wAB/wEBAAD/AAH/AQAAAf8AAf8BAP//AAAB/wH/AP8AAAH/AQEA/wAAAf8BAAH/AAAB/wH//wAAAAH/AQH/AAAAAf8BAAAAAAAB/wEBAQAAAAH/AQD/AQAAAf8B/wABAAAB/wEAAP8BAAH/AQEAAAEAAf8BAAEAAQAB/wEAAAEBAAH/Af////8BAf8BAf///wEB/wH/Af//AQH/AQEB//8BAf8BAAAA/wEB/wH//wH/AQH/AQH/Af8BAf8B/wEB/wEB/wEBAQH/AQH/AQAA/wABAf8BAP8AAAEB/wH/AAAAAQH/AQEAAAABAf8B////AQEB/wEB//8BAQH/Af8B/wEBAf8BAQH/AQEB/wEAAAABAQH/Af//AQEBAf8BAf8BAQEB/wH/AQEBAQH/AQEBAQEBAf8BAAD/////AAEA/wD///8AAQEAAP///wAB/wEA////AAEAAQD///8AAQAAAf///wABAP//AP//AAEBAP8A//8AAQAB/wD//wABAAAAAP//AAH/AQAA//8AAQEBAAD//wABAAEBAP//AAEBAQEA//8AAQAA/wH//wABAP8AAf//AAH/AAAB//8AAQEAAAH//wABAAEAAf//AAEAAAEB//8AAQD///8A/wAB/wD//wD/AAEBAP//AP8AAQAB//8A/wAB//8A/wD/AAEAAAD/AP8AAf8BAP8A/wABAQEA/wD/AAEA/wH/AP8AAf8AAf8A/wABAQAB/wD/AAEAAQH/AP8AAf///wAA/wABAAD/AAD/AAH//wAAAP8AAQD/AAAA/wAB/wAAAAD/AAEAAAAAAP8AAQEAAAAA/wABAAEAAAD/AAEB/wEAAP8AAQAAAQAA/wAB/wD/AQD/AAEBAP8BAP8AAQH/AAEA/wABAAAAAQD/AAH/AQABAP8AAQD/AQEA/wAB/wABAQD/AAEBAAEBAP8AAQABAQEA/wABAAD//wH/AAEA/wD/Af8AAf8AAP8B/wABAAEA/wH/AAEAAAH/Af8AAf8A/wAB/wABAQD/AAH/AAEAAf8AAf8AAf//AAAB/wABAf8AAAH/AAEAAAAAAf8AAf8BAAAB/wABAQABAAH/AAEAAQEAAf8AAQAA/wEB/wAB/wAAAQH/AAEBAAABAf8AAQABAQEB/wABAP////8AAAH/AP///wAAAQEA////AAAB//8A//8AAAEAAAD//wAAAf8BAP//AAABAQAB//8AAAH///8A/wAAAQEB/wD/AAABAP8AAP8AAAH/AAAA/wAAAQAAAAD/AAABAQAAAP8AAAH/AQAA/wAAAQABAAD/AAAB//8BAP8AAAEA/wEA/wAAAQH/AQD/AAABAAABAP8AAAH/AP8B/wAAAQEA/wH/AAABAf8AAf8AAAH/AAAB/wAAAQAAAAH/AAAB/wEAAf8AAAEA/wEB/wAAAQABAQH/AAAB/////wAAAAEAAP//AAAAAf8B//8AAAABAQH//wAAAAH//wD/AAAAAQD/AP8AAAAB/wAA/wAAAAEAAAD/AAAAAQEAAP8AAAABAAEA/wAAAAEA/wH/AAAAAQAAAf8AAAABAAEB/wAAAAEBAQH/AAAAAQD//wAAAAAB/wD/AAAAAAEAAP8AAAAAAQEA/wAAAAABAAH/AAAAAAH//wAAAAAAAQD/AAAAAAABAf8AAAAAAAH/AAAAAAAAAQAAAAAAAAABAQAAAAAAAAH/AQAAAAAAAQABAAAAAAABAQEAAAAAAAEA/wEAAAAAAf8AAQAAAAABAAABAAAAAAEBAAEAAAAAAQABAQAAAAABAP//AQAAAAEAAP8BAAAAAf8B/wEAAAABAP8AAQAAAAEB/wABAAAAAf8AAAEAAAABAAAAAQAAAAEBAAABAAAAAQABAAEAAAABAQEAAQAAAAH//wEBAAAAAQH/AQEAAAABAAABAQAAAAH/AQEBAAAAAQEBAQEAAAABAP///wEAAAH/AP//AQAAAf//AP8BAAABAAAA/wEAAAEAAQD/AQAAAf//Af8BAAABAQAB/wEAAAEAAQH/AQAAAQAA/wABAAAB/wH/AAEAAAEAAf8AAQAAAQD/AAABAAABAf8AAAEAAAEAAAAAAQAAAQEAAAABAAABAAEAAAEAAAEAAAEAAQAAAf8BAQABAAABAf//AQEAAAH/AP8BAQAAAQAB/wEBAAABAQH/AQEAAAEB/wABAQAAAf8AAAEBAAABAAAAAQEAAAH/AAEBAQAAAQEAAQEBAAABAAEBAQEAAAEAAP///wEAAQEAAP//AQABAAEA//8BAAEAAAH//wEAAQD//wD/AQABAQD/AP8BAAH//wAA/wEAAQH/AAD/AQABAAAAAP8BAAEBAAAA/wEAAQEBAAD/AQAB/wABAP8BAAEAAAEA/wEAAQAA/wH/AQABAP8AAf8BAAEBAAAB/wEAAQABAAH/AQABAAABAf8BAAH/AP//AAEAAQEA//8AAQABAAH//wABAAH//wD/AAEAAQH/AP8AAQABAAAA/wABAAH/AQD/AAEAAQEBAP8AAQAB//8B/wABAAEA/wH/AAEAAf8AAf8AAQABAQAB/wABAAH///8AAAEAAQH//wAAAQABAAD/AAABAAH/Af8AAAEAAQEB/wAAAQABAP8AAAABAAH/AAAAAAEAAQAAAAAAAQABAQAAAAABAAEAAQAAAAEAAQH/AQAAAQABAAABAAABAAEBAAEAAAEAAQEBAQAAAQABAP//AQABAAH/AP8BAAEAAf//AAEAAQABAf8AAQABAAEAAAABAAEAAQEBAAEAAQABAP8BAQABAAEBAAEBAAEAAQAA//8BAQABAAAA/wEBAAEAAAH/AQEAAf8A/wABAQABAQD/AAEBAAEAAf8AAQEAAf//AAABAQABAAAAAAEBAAH/AQAAAQEAAQD/AQABAQABAAD/AQEBAAEA/wABAQEAAf8AAAEBAQABAAAAAQEBAAEBAAABAQEAAf///////wEBAf//////AQH/Af////8BAQEB/////wEBAAAA////AQH//wH///8BAQH/Af///wEB/wEB////AQEBAQH///8BAQAA/wD//wEBAP8AAP//AQH/AAAA//8BAQEAAAD//wEBAAEAAP//AQH///8B//8BAQH//wH//wEB/wH/Af//AQEBAf8B//8BAQAAAAH//wEB//8BAf//AQEB/wEB//8BAf8BAQH//wEBAQEBAf//AQEAAP//AP8BAQAB//8A/wEBAP8A/wD/AQH/AAD/AP8BAQEAAP8A/wEBAAEA/wD/AQEBAQD/AP8BAQEA/wAA/wEBAAH/AAD/AQEA/wAAAP8BAQAAAAAA/wEB/wEAAAD/AQEBAQAAAP8BAQD/AQAA/wEB/wABAAD/AQEAAP8BAP8BAf//AAEA/wEBAf8AAQD/AQEBAAABAP8BAQABAAEA/wEBAf///wH/AQH/Af//Af8BAQEB//8B/wEB//8A/wH/AQEAAQD/Af8BAQH/Af8B/wEB/wEB/wH/AQEBAQH/Af8BAQAA/wAB/wEBAP8AAAH/AQEBAAAAAf8BAQABAAAB/wEBAAABAAH/AQH///8BAf8BAQH//wEB/wEB/wH/AQH/AQEBAf8BAf8BAQAAAAEB/wEB//8BAQH/AQEB/wEBAf8BAf8BAQEB/wEBAQEBAQH/AQEAAQD//wABAQAAAf//AAEBAP//AP8AAQH/AP8A/wABAf//AAD/AAEB/wAAAP8AAQEAAAAA/wABAf8BAAD/AAEBAQEAAP8AAQEA/wEA/wABAQAAAQD/AAEBAQABAP8AAQH/AQEA/wABAQABAQD/AAEBAAD/Af8AAQEBAP//AAABAQAB//8AAAEB//8A/wAAAQEB/wD/AAABAQAAAP8AAAEB/wEA/wAAAQEBAAH/AAABAQABAf8AAAEBAf//AAAAAQEAAP8AAAABAQD/AAAAAAEB/wAAAAAAAQEAAAAAAAABAQEAAAAAAAEBAAEAAAAAAQEAAAEAAAABAQEBAQAAAAEBAP//AQAAAQH/AP8BAAABAQAA/wEAAAEBAQD/AQAAAQEAAf8BAAABAQH/AAEAAAEBAAAAAQAAAQH/AQABAAABAQAA//8BAAEBAP8A/wEAAQEBAAD/AQABAQEBAP8BAAEBAP8B/wEAAQEAAAH/AQABAf8A/wABAAEBAQD/AAEAAQEBAf8AAQABAQH/AAABAAEBAAAAAAEAAQEBAAAAAQABAf8BAAABAAEB//8BAAEAAQEB/wEAAQABAQEA/wEBAAEB//8AAQEAAQEAAAABAQABAQEAAAEBAAEBAAEAAQEAAQEA/wEBAQABAf8AAQEBAAEBAQABAQEAAQH//////wEBAQH/////AQEB/wH///8BAQEBAf///wEBAf//Af//AQEBAf8B//8BAQH/AQH//wEBAQEBAf//AQEBAP8AAP8BAQH/AAAA/wEBAQEAAAD/AQEBAAEAAP8BAQH///8B/wEBAQH//wH/AQEB/wH/Af8BAQEBAf8B/wEBAQAAAAH/AQEB//8BAf8BAQEB/wEB/wEBAf8BAQH/AQEBAQEBAf8BAQEAAP//AAEBAf8AAP8AAQEBAAEA/wABAQEA/wH/AAEBAQAAAf8AAQEBAP//AAABAQH//wAAAAEBAQAAAAAAAQEBAQEAAAABAQEA/wEAAAEBAQEAAQAAAQEBAAEBAAABAQH//wABAAEBAQEAAAEAAQEB/////wEBAQEB////AQEBAf8B//8BAQEBAQH//wEBAQH//wH/AQEBAQH/Af8BAQEB/wEB/wEBAQEBAQH/AQEBAQD/AAABAQEB/wAAAAEBAQEBAAAAAQEBAf///wEBAQEBAf//AQEBAQH/Af8BAQEBAQEB/wEBAQEBAAAAAQEBAQH//wEBAQEBAQH/AQEBAQEB/wEBAQEBAQEBAQEBAQEBAQ=="); +export const ksigns_iq2xs = /* 128B */ D("AIGCA4QFBoeICQqLDI2OD5AREpMUlZYXGJmaG5wdHp+gISKjJKWmJyipqiusLS6vMLGyM7Q1Nre4OTq7PL2+P8BBQsNExcZHSMnKS8xNTs9Q0dJT1FVW19hZWttc3d5fYOHiY+RlZufoaWrrbO3ub/BxcvN09fZ3ePn6e/x9fv8="); +export const kmask_iq2xs = /* 8B */ D("AQIECBAgQIA="); +export const kvalues_iq4nl = /* 16B */ D("gZitv8/d6vYBDRkmNUVZcQ=="); diff --git a/b/879577c93198c7c326b96e083eecc09c0b572300aec0ad6df62aa6d87d357d94 b/b/879577c93198c7c326b96e083eecc09c0b572300aec0ad6df62aa6d87d357d94 new file mode 100644 index 0000000000000000000000000000000000000000..0bdb7769a9113342db51b3a1250433cfb9c3fc4d --- /dev/null +++ b/b/879577c93198c7c326b96e083eecc09c0b572300aec0ad6df62aa6d87d357d94 @@ -0,0 +1,81 @@ +"use client" + +import { TrendingUp } from "lucide-react" +import { PolarAngleAxis, Radar, RadarChart } from "recharts" + +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + ChartContainer, + ChartTooltip, + ChartTooltipContent, + type ChartConfig, +} from "@/registry/new-york-v4/ui/chart" + +export const description = "A radar chart with no grid" + +const chartData = [ + { month: "January", desktop: 186 }, + { month: "February", desktop: 305 }, + { month: "March", desktop: 237 }, + { month: "April", desktop: 273 }, + { month: "May", desktop: 209 }, + { month: "June", desktop: 214 }, +] + +const chartConfig = { + desktop: { + label: "Desktop", + color: "var(--chart-1)", + }, +} satisfies ChartConfig + +export function ChartRadarGridNone() { + return ( + + + Radar Chart - Grid None + + Showing total visitors for the last 6 months + + + + + + } + /> + + + + + + +

+ Trending up by 5.2% this month +
+
+ January - June 2024 +
+ + + ) +} diff --git a/b/87aef6852d3773c7cd0917432f20e8cccaf72cb7fc525dc7aac1a5460d7f4468 b/b/87aef6852d3773c7cd0917432f20e8cccaf72cb7fc525dc7aac1a5460d7f4468 new file mode 100644 index 0000000000000000000000000000000000000000..f4a2e5cd23c3835af38e2287620a178b9edbd75d --- /dev/null +++ b/b/87aef6852d3773c7cd0917432f20e8cccaf72cb7fc525dc7aac1a5460d7f4468 @@ -0,0 +1,6 @@ +"use client";var po=Object.defineProperty;var uo=(e,o)=>{for(var r in o)po(e,r,{get:o[r],enumerable:!0})};import*as te from"react";import*as Te from"react";import*as So from"react-dom";import*as w from"react";import*as Me from"react";function Ae(e,o){if(typeof e=="function")return e(o);e!=null&&(e.current=o)}function fo(...e){return o=>{let r=!1,t=e.map(s=>{let a=Ae(s,o);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let s=0;s{let{children:s,...a}=r,n=null,c=!1,m=[];Ge(s)&&typeof Q=="function"&&(s=Q(s._payload)),w.Children.forEach(s,k=>{if(yo(k)){c=!0;let h=k,v="child"in h.props?h.props.child:h.props.children;Ge(v)&&typeof Q=="function"&&(v=Q(v._payload)),n=go(h,v),m.push(n?.props?.children)}else m.push(k)}),n?n=w.cloneElement(n,void 0,m):!c&&w.Children.count(s)===1&&w.isValidElement(s)&&(n=s);let u=n?xo(n):void 0,g=Ie(t,u);if(!n){if(s||s===0)throw new Error(c?Ro(e):ko(e));return s}let b=ho(a,n.props??{});return n.type!==w.Fragment&&(b.ref=t?g:u),w.cloneElement(n,b)});return o.displayName=`${e}.Slot`,o}var bo=Symbol.for("radix.slottable");var go=(e,o)=>{if("child"in e.props){let r=e.props.child;return w.isValidElement(r)?w.cloneElement(r,void 0,e.props.children(r.props.children)):null}return w.isValidElement(o)?o:null};function ho(e,o){let r={...o};for(let t in o){let s=e[t],a=o[t];/^on[A-Z]/.test(t)?s&&a?r[t]=(...c)=>{let m=a(...c);return s(...c),m}:s&&(r[t]=s):t==="style"?r[t]={...s,...a}:t==="className"&&(r[t]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}function xo(e){let o=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning;return r?e.ref:(o=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function yo(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bo}var wo=Symbol.for("react.lazy");function Ge(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===wo&&"_payload"in e&&vo(e._payload)}function vo(e){return typeof e=="object"&&e!==null&&"then"in e}var ko=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Ro=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Q=w[" use ".trim().toString()];import{jsx as Co}from"react/jsx-runtime";var Po=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ce=Po.reduce((e,o)=>{let r=Ee(`Primitive.${o}`),t=Te.forwardRef((s,a)=>{let{asChild:n,...c}=s,m=n?r:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Co(m,{...c,ref:a})});return t.displayName=`Primitive.${o}`,{...e,[o]:t}},{});import*as E from"react";import{jsx as zo}from"react/jsx-runtime";function Ne(e,o=[]){let r=[];function t(a,n){let c=E.createContext(n);c.displayName=a+"Context";let m=r.length;r=[...r,n];let u=b=>{let{scope:k,children:h,...v}=b,R=k?.[e]?.[m]||c,P=E.useMemo(()=>v,Object.values(v));return zo(R.Provider,{value:P,children:h})};u.displayName=a+"Provider";function g(b,k){let h=k?.[e]?.[m]||c,v=E.useContext(h);if(v)return v;if(n!==void 0)return n;throw new Error(`\`${b}\` must be used within \`${a}\``)}return[u,g]}let s=()=>{let a=r.map(n=>E.createContext(n));return function(c){let m=c?.[e]||a;return E.useMemo(()=>({[`__scope${e}`]:{...c,[e]:m}}),[c,m])}};return s.scopeName=e,[t,Ao(s,...o)]}function Ao(...e){let o=e[0];if(e.length===1)return o;let r=()=>{let t=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){let n=t.reduce((c,{useScope:m,scopeName:u})=>{let b=m(a)[`__scope${u}`];return{...c,...b}},{});return E.useMemo(()=>({[`__scope${o.scopeName}`]:n}),[n])}};return r.scopeName=o.scopeName,r}var U={};uo(U,{Indicator:()=>$o,Progress:()=>fe,ProgressIndicator:()=>be,Root:()=>Lo,createProgressScope:()=>Io});import*as me from"react";import{jsx as de}from"react/jsx-runtime";var pe="Progress",ue=100,[Mo,Io]=Ne(pe),[Go,Eo]=Mo(pe),fe=me.forwardRef((e,o)=>{let{__scopeProgress:r,value:t=null,max:s,getValueLabel:a=To,...n}=e;(s||s===0)&&!_e(s)&&console.error(No(`${s}`,"Progress"));let c=_e(s)?s:ue;t!==null&&!Le(t,c)&&console.error(_o(`${t}`,"Progress"));let m=Le(t,c)?t:null,u=K(m)?a(m,c):void 0;return de(Go,{scope:r,value:m,max:c,children:de(ce.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":K(m)?m:void 0,"aria-valuetext":u,role:"progressbar","data-state":Ve(m,c),"data-value":m??void 0,"data-max":c,...n,ref:o})})});fe.displayName=pe;var $e="ProgressIndicator",be=me.forwardRef((e,o)=>{let{__scopeProgress:r,...t}=e,s=Eo($e,r);return de(ce.div,{"data-state":Ve(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...t,ref:o})});be.displayName=$e;function To(e,o){return`${Math.round(e/o*100)}%`}function Ve(e,o){return e==null?"indeterminate":e===o?"complete":"loading"}function K(e){return typeof e=="number"}function _e(e){return K(e)&&!isNaN(e)&&e>0}function Le(e,o){return K(e)&&!isNaN(e)&&e<=o&&e>=0}function No(e,o){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${o}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ue}\`.`}function _o(e,o){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${o}\`. The \`value\` prop must be: + - a positive number + - less than the value passed to \`max\` (or ${ue} if no \`max\` prop is set) + - \`null\` or \`undefined\` if the progress is indeterminate. + +Defaulting to \`null\`.`}var Lo=fe,$o=be;function Oe(e){var o,r,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(o=0;o{let r=new Array(e.length+o.length);for(let t=0;t({classGroupId:e,validator:o}),He=(e=new Map,o=null,r)=>({nextPart:e,validators:o,classGroupId:r}),re="-",We=[],jo="arbitrary..",Wo=e=>{let o=Fo(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:n=>{if(n.startsWith("[")&&n.endsWith("]"))return Do(n);let c=n.split(re),m=c[0]===""&&c.length>1?1:0;return Xe(c,m,o)},getConflictingClassGroupIds:(n,c)=>{if(c){let m=t[n],u=r[n];return m?u?Vo(u,m):m:u||We}return r[n]||We}}},Xe=(e,o,r)=>{if(e.length-o===0)return r.classGroupId;let s=e[o],a=r.nextPart.get(s);if(a){let u=Xe(e,o+1,a);if(u)return u}let n=r.validators;if(n===null)return;let c=o===0?e.join(re):e.slice(o).join(re),m=n.length;for(let u=0;ue.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let o=e.slice(1,-1),r=o.indexOf(":"),t=o.slice(0,r);return t?jo+t:void 0})(),Fo=e=>{let{theme:o,classGroups:r}=e;return Bo(r,o)},Bo=(e,o)=>{let r=He();for(let t in e){let s=e[t];xe(s,r,t,o)}return r},xe=(e,o,r,t)=>{let s=e.length;for(let a=0;a{if(typeof e=="string"){Yo(e,o,r);return}if(typeof e=="function"){Ho(e,o,r,t);return}Xo(e,o,r,t)},Yo=(e,o,r)=>{let t=e===""?o:qe(o,e);t.classGroupId=r},Ho=(e,o,r,t)=>{if(qo(e)){xe(e(t),o,r,t);return}o.validators===null&&(o.validators=[]),o.validators.push(Oo(r,e))},Xo=(e,o,r,t)=>{let s=Object.entries(e),a=s.length;for(let n=0;n{let r=e,t=o.split(re),s=t.length;for(let a=0;a"isThemeGetter"in e&&e.isThemeGetter===!0,Zo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,r=Object.create(null),t=Object.create(null),s=(a,n)=>{r[a]=n,o++,o>e&&(o=0,t=r,r=Object.create(null))};return{get(a){let n=r[a];if(n!==void 0)return n;if((n=t[a])!==void 0)return s(a,n),n},set(a,n){a in r?r[a]=n:s(a,n)}}},he="!",De=":",Jo=[],Fe=(e,o,r,t,s)=>({modifiers:e,hasImportantModifier:o,baseClassName:r,maybePostfixModifierPosition:t,isExternal:s}),Qo=e=>{let{prefix:o,experimentalParseClassName:r}=e,t=s=>{let a=[],n=0,c=0,m=0,u,g=s.length;for(let R=0;Rm?u-m:void 0;return Fe(a,h,k,v)};if(o){let s=o+De,a=t;t=n=>n.startsWith(s)?a(n.slice(s.length)):Fe(Jo,!1,n,void 0,!0)}if(r){let s=t;t=a=>r({className:a,parseClassName:s})}return t},Ko=e=>{let o=new Map;return e.orderSensitiveModifiers.forEach((r,t)=>{o.set(r,1e6+t)}),r=>{let t=[],s=[];for(let a=0;a0&&(s.sort(),t.push(...s),s=[]),t.push(n)):s.push(n)}return s.length>0&&(s.sort(),t.push(...s)),t}},er=e=>({cache:Zo(e.cacheSize),parseClassName:Qo(e),sortModifiers:Ko(e),postfixLookupClassGroupIds:or(e),...Wo(e)}),or=e=>{let o=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let t=0;t{let{parseClassName:r,getClassGroupId:t,getConflictingClassGroupIds:s,sortModifiers:a,postfixLookupClassGroupIds:n}=o,c=[],m=e.trim().split(rr),u="";for(let g=m.length-1;g>=0;g-=1){let b=m[g],{isExternal:k,modifiers:h,hasImportantModifier:v,baseClassName:R,maybePostfixModifierPosition:P}=r(b);if(k){u=b+(u.length>0?" "+u:u);continue}let L=!!P,z;if(L){let G=R.substring(0,P);z=t(G);let d=z&&n[z]?t(R):void 0;d&&d!==z&&(z=d,L=!1)}else z=t(R);if(!z){if(!L){u=b+(u.length>0?" "+u:u);continue}if(z=t(R),!z){u=b+(u.length>0?" "+u:u);continue}L=!1}let B=h.length===0?"":h.length===1?h[0]:a(h).join(":"),j=v?B+he:B,W=j+z;if(c.indexOf(W)>-1)continue;c.push(W);let D=s(z,L);for(let G=0;G0?" "+u:u)}return u},sr=(...e)=>{let o=0,r,t,s="";for(;o{if(typeof e=="string")return e;let o,r="";for(let t=0;t{let r,t,s,a,n=m=>{let u=o.reduce((g,b)=>b(g),e());return r=er(u),t=r.cache.get,s=r.cache.set,a=c,c(m)},c=m=>{let u=t(m);if(u)return u;let g=tr(m,r);return s(m,g),g};return a=n,(...m)=>a(sr(...m))},ar=[],x=e=>{let o=r=>r[e]||ar;return o.isThemeGetter=!0,o},Je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ir=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,lr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,N=e=>ir.test(e),f=e=>!!e&&!Number.isNaN(Number(e)),I=e=>!!e&&Number.isInteger(Number(e)),ge=e=>e.endsWith("%")&&f(e.slice(0,-1)),T=e=>lr.test(e),Ke=()=>!0,ur=e=>cr.test(e)&&!dr.test(e),ye=()=>!1,fr=e=>mr.test(e),br=e=>pr.test(e),gr=e=>!i(e)&&!l(e),hr=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),xr=e=>_(e,ro,ye),i=e=>Je.test(e),V=e=>_(e,to,ur),Be=e=>_(e,Pr,f),yr=e=>_(e,no,Ke),wr=e=>_(e,so,ye),Ue=e=>_(e,eo,ye),vr=e=>_(e,oo,br),ee=e=>_(e,ao,fr),l=e=>Qe.test(e),Y=e=>O(e,to),kr=e=>O(e,so),Ye=e=>O(e,eo),Rr=e=>O(e,ro),Sr=e=>O(e,oo),oe=e=>O(e,ao,!0),Cr=e=>O(e,no,!0),_=(e,o,r)=>{let t=Je.exec(e);return t?t[1]?o(t[1]):r(t[2]):!1},O=(e,o,r=!1)=>{let t=Qe.exec(e);return t?t[1]?o(t[1]):r:!1},eo=e=>e==="position"||e==="percentage",oo=e=>e==="image"||e==="url",ro=e=>e==="length"||e==="size"||e==="bg-size",to=e=>e==="length",Pr=e=>e==="number",so=e=>e==="family-name",no=e=>e==="number"||e==="weight",ao=e=>e==="shadow";var zr=()=>{let e=x("color"),o=x("font"),r=x("text"),t=x("font-weight"),s=x("tracking"),a=x("leading"),n=x("breakpoint"),c=x("container"),m=x("spacing"),u=x("radius"),g=x("shadow"),b=x("inset-shadow"),k=x("text-shadow"),h=x("drop-shadow"),v=x("blur"),R=x("perspective"),P=x("aspect"),L=x("ease"),z=x("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],W=()=>[...j(),l,i],D=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],d=()=>[l,i,m],A=()=>[N,"full","auto",...d()],we=()=>[I,"none","subgrid",l,i],ve=()=>["auto",{span:["full",I,l,i]},I,l,i],H=()=>[I,"auto",l,i],ke=()=>["auto","min","max","fr",l,i],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...d()],$=()=>[N,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...d()],ne=()=>[N,"screen","full","dvw","lvw","svw","min","max","fit",...d()],ae=()=>[N,"screen","full","lh","dvh","lvh","svh","min","max","fit",...d()],p=()=>[e,l,i],Re=()=>[...j(),Ye,Ue,{position:[l,i]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ce=()=>["auto","cover","contain",Rr,xr,{size:[l,i]}],ie=()=>[ge,Y,V],S=()=>["","none","full",u,l,i],C=()=>["",f,Y,V],X=()=>["solid","dashed","dotted","double"],Pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],y=()=>[f,ge,Ye,Ue],ze=()=>["","none",v,l,i],q=()=>["none",f,l,i],Z=()=>["none",f,l,i],le=()=>[f,l,i],J=()=>[N,"full",...d()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[T],breakpoint:[T],color:[Ke],container:[T],"drop-shadow":[T],ease:["in","out","in-out"],font:[gr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[T],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[T],shadow:[T],spacing:["px",f],text:[T],"text-shadow":[T],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",N,i,l,P]}],container:["container"],"container-type":[{"@container":["","normal","size",l,i]}],"container-named":[hr],columns:[{columns:[f,i,l,c]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:W()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{"inset-s":A(),start:A()}],end:[{"inset-e":A(),end:A()}],"inset-bs":[{"inset-bs":A()}],"inset-be":[{"inset-be":A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[I,"auto",l,i]}],basis:[{basis:[N,"full","auto",c,...d()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[f,N,"auto","initial","none",i]}],grow:[{grow:["",f,l,i]}],shrink:[{shrink:["",f,l,i]}],order:[{order:[I,"first","last","none",l,i]}],"grid-cols":[{"grid-cols":we()}],"col-start-end":[{col:ve()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":we()}],"row-start-end":[{row:ve()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ke()}],"auto-rows":[{"auto-rows":ke()}],gap:[{gap:d()}],"gap-x":[{"gap-x":d()}],"gap-y":[{"gap-y":d()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:d()}],px:[{px:d()}],py:[{py:d()}],ps:[{ps:d()}],pe:[{pe:d()}],pbs:[{pbs:d()}],pbe:[{pbe:d()}],pt:[{pt:d()}],pr:[{pr:d()}],pb:[{pb:d()}],pl:[{pl:d()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":d()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":d()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...ne()]}],"min-inline-size":[{"min-inline":["auto",...ne()]}],"max-inline-size":[{"max-inline":["none",...ne()]}],"block-size":[{block:["auto",...ae()]}],"min-block-size":[{"min-block":["auto",...ae()]}],"max-block-size":[{"max-block":["none",...ae()]}],w:[{w:[c,"screen",...$()]}],"min-w":[{"min-w":[c,"screen","none",...$()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[n]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,Y,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,Cr,yr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ge,i]}],"font-family":[{font:[kr,wr,o]}],"font-features":[{"font-features":[i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,l,i]}],"line-clamp":[{"line-clamp":[f,"none",l,Be]}],leading:[{leading:[a,...d()]}],"list-image":[{"list-image":["none",l,i]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",l,i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:p()}],"text-color":[{text:p()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[f,"from-font","auto",l,V]}],"text-decoration-color":[{decoration:p()}],"underline-offset":[{"underline-offset":[f,"auto",l,i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"tab-size":[{tab:[I,l,i]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l,i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l,i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Re()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:Ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},I,l,i],radial:["",l,i],conic:[I,l,i]},Sr,vr]}],"bg-color":[{bg:p()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:p()}],"gradient-via":[{via:p()}],"gradient-to":[{to:p()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:C()}],"border-w-x":[{"border-x":C()}],"border-w-y":[{"border-y":C()}],"border-w-s":[{"border-s":C()}],"border-w-e":[{"border-e":C()}],"border-w-bs":[{"border-bs":C()}],"border-w-be":[{"border-be":C()}],"border-w-t":[{"border-t":C()}],"border-w-r":[{"border-r":C()}],"border-w-b":[{"border-b":C()}],"border-w-l":[{"border-l":C()}],"divide-x":[{"divide-x":C()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":C()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:p()}],"border-color-x":[{"border-x":p()}],"border-color-y":[{"border-y":p()}],"border-color-s":[{"border-s":p()}],"border-color-e":[{"border-e":p()}],"border-color-bs":[{"border-bs":p()}],"border-color-be":[{"border-be":p()}],"border-color-t":[{"border-t":p()}],"border-color-r":[{"border-r":p()}],"border-color-b":[{"border-b":p()}],"border-color-l":[{"border-l":p()}],"divide-color":[{divide:p()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[f,l,i]}],"outline-w":[{outline:["",f,Y,V]}],"outline-color":[{outline:p()}],shadow:[{shadow:["","none",g,oe,ee]}],"shadow-color":[{shadow:p()}],"inset-shadow":[{"inset-shadow":["none",b,oe,ee]}],"inset-shadow-color":[{"inset-shadow":p()}],"ring-w":[{ring:C()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:p()}],"ring-offset-w":[{"ring-offset":[f,V]}],"ring-offset-color":[{"ring-offset":p()}],"inset-ring-w":[{"inset-ring":C()}],"inset-ring-color":[{"inset-ring":p()}],"text-shadow":[{"text-shadow":["none",k,oe,ee]}],"text-shadow-color":[{"text-shadow":p()}],opacity:[{opacity:[f,l,i]}],"mix-blend":[{"mix-blend":[...Pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[f]}],"mask-image-linear-from-pos":[{"mask-linear-from":y()}],"mask-image-linear-to-pos":[{"mask-linear-to":y()}],"mask-image-linear-from-color":[{"mask-linear-from":p()}],"mask-image-linear-to-color":[{"mask-linear-to":p()}],"mask-image-t-from-pos":[{"mask-t-from":y()}],"mask-image-t-to-pos":[{"mask-t-to":y()}],"mask-image-t-from-color":[{"mask-t-from":p()}],"mask-image-t-to-color":[{"mask-t-to":p()}],"mask-image-r-from-pos":[{"mask-r-from":y()}],"mask-image-r-to-pos":[{"mask-r-to":y()}],"mask-image-r-from-color":[{"mask-r-from":p()}],"mask-image-r-to-color":[{"mask-r-to":p()}],"mask-image-b-from-pos":[{"mask-b-from":y()}],"mask-image-b-to-pos":[{"mask-b-to":y()}],"mask-image-b-from-color":[{"mask-b-from":p()}],"mask-image-b-to-color":[{"mask-b-to":p()}],"mask-image-l-from-pos":[{"mask-l-from":y()}],"mask-image-l-to-pos":[{"mask-l-to":y()}],"mask-image-l-from-color":[{"mask-l-from":p()}],"mask-image-l-to-color":[{"mask-l-to":p()}],"mask-image-x-from-pos":[{"mask-x-from":y()}],"mask-image-x-to-pos":[{"mask-x-to":y()}],"mask-image-x-from-color":[{"mask-x-from":p()}],"mask-image-x-to-color":[{"mask-x-to":p()}],"mask-image-y-from-pos":[{"mask-y-from":y()}],"mask-image-y-to-pos":[{"mask-y-to":y()}],"mask-image-y-from-color":[{"mask-y-from":p()}],"mask-image-y-to-color":[{"mask-y-to":p()}],"mask-image-radial":[{"mask-radial":[l,i]}],"mask-image-radial-from-pos":[{"mask-radial-from":y()}],"mask-image-radial-to-pos":[{"mask-radial-to":y()}],"mask-image-radial-from-color":[{"mask-radial-from":p()}],"mask-image-radial-to-color":[{"mask-radial-to":p()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[f]}],"mask-image-conic-from-pos":[{"mask-conic-from":y()}],"mask-image-conic-to-pos":[{"mask-conic-to":y()}],"mask-image-conic-from-color":[{"mask-conic-from":p()}],"mask-image-conic-to-color":[{"mask-conic-to":p()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Re()}],"mask-repeat":[{mask:Se()}],"mask-size":[{mask:Ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",l,i]}],filter:[{filter:["","none",l,i]}],blur:[{blur:ze()}],brightness:[{brightness:[f,l,i]}],contrast:[{contrast:[f,l,i]}],"drop-shadow":[{"drop-shadow":["","none",h,oe,ee]}],"drop-shadow-color":[{"drop-shadow":p()}],grayscale:[{grayscale:["",f,l,i]}],"hue-rotate":[{"hue-rotate":[f,l,i]}],invert:[{invert:["",f,l,i]}],saturate:[{saturate:[f,l,i]}],sepia:[{sepia:["",f,l,i]}],"backdrop-filter":[{"backdrop-filter":["","none",l,i]}],"backdrop-blur":[{"backdrop-blur":ze()}],"backdrop-brightness":[{"backdrop-brightness":[f,l,i]}],"backdrop-contrast":[{"backdrop-contrast":[f,l,i]}],"backdrop-grayscale":[{"backdrop-grayscale":["",f,l,i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f,l,i]}],"backdrop-invert":[{"backdrop-invert":["",f,l,i]}],"backdrop-opacity":[{"backdrop-opacity":[f,l,i]}],"backdrop-saturate":[{"backdrop-saturate":[f,l,i]}],"backdrop-sepia":[{"backdrop-sepia":["",f,l,i]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":d()}],"border-spacing-x":[{"border-spacing-x":d()}],"border-spacing-y":[{"border-spacing-y":d()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",l,i]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[f,"initial",l,i]}],ease:[{ease:["linear","initial",L,l,i]}],delay:[{delay:[f,l,i]}],animate:[{animate:["none",z,l,i]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[R,l,i]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:q()}],"rotate-x":[{"rotate-x":q()}],"rotate-y":[{"rotate-y":q()}],"rotate-z":[{"rotate-z":q()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[l,i,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],zoom:[{zoom:[I,l,i]}],accent:[{accent:p()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:p()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l,i]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":p()}],"scrollbar-track-color":[{"scrollbar-track":p()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mbs":[{"scroll-mbs":d()}],"scroll-mbe":[{"scroll-mbe":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pbs":[{"scroll-pbs":d()}],"scroll-pbe":[{"scroll-pbe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l,i]}],fill:[{fill:["none",...p()]}],"stroke-w":[{stroke:[f,Y,V,Be]}],stroke:[{stroke:["none",...p()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var io=nr(zr);function lo(...e){return io(je(e))}import{jsx as co}from"react/jsx-runtime";function mo({className:e,value:o,...r}){return co(U.Root,{"data-slot":"progress",className:lo("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...r,children:co(U.Indicator,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(o||0)}%)`}})})}import{jsx as Mr}from"react/jsx-runtime";function Ar(){let[e,o]=te.useState(13);return te.useEffect(()=>{let r=setTimeout(()=>o(66),500);return()=>clearTimeout(r)},[]),Mr(mo,{value:e,className:"w-[60%]"})}export{Ar as default}; diff --git a/b/87cf1070fd5c0e3b6c5e18a5659caf014b129e429457a67b626143dd68394758 b/b/87cf1070fd5c0e3b6c5e18a5659caf014b129e429457a67b626143dd68394758 new file mode 100644 index 0000000000000000000000000000000000000000..5997ead6feac59570dc869091fac35002148fbfd --- /dev/null +++ b/b/87cf1070fd5c0e3b6c5e18a5659caf014b129e429457a67b626143dd68394758 @@ -0,0 +1,32 @@ +import { IconCloud } from "@tabler/icons-react" + +import { Button } from "@/registry/new-york-v4/ui/button" +import { + Empty, + EmptyContent, + EmptyDescription, + EmptyHeader, + EmptyMedia, + EmptyTitle, +} from "@/registry/new-york-v4/ui/empty" + +export default function EmptyOutline() { + return ( + + + + + + Cloud Storage Empty + + Upload files to your cloud storage to access them anywhere. + + + + + + + ) +} diff --git a/b/883eac394d14d42cb78244067398ed9a6532f3d2830c1a73c5dfc924cae1136b b/b/883eac394d14d42cb78244067398ed9a6532f3d2830c1a73c5dfc924cae1136b new file mode 100644 index 0000000000000000000000000000000000000000..bd257ca0342ae22539298897ada5e948d9b453d5 --- /dev/null +++ b/b/883eac394d14d42cb78244067398ed9a6532f3d2830c1a73c5dfc924cae1136b @@ -0,0 +1,67 @@ +var st=Object.defineProperty;var dt=(e,t)=>{for(var a in t)st(e,a,{get:t[a],enumerable:!0})};import{forwardRef as it,createElement as nt}from"react";var ua=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Se=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as ft,createElement as da}from"react";var sa={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var fa=ft(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:u,...s},n)=>da("svg",{ref:n,...sa,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:Se("lucide",r),...s},[...u.map(([d,p])=>da(d,p)),...Array.isArray(l)?l:[l]]));var re=(e,t)=>{let a=it(({className:o,...r},l)=>nt(fa,{ref:l,iconNode:t,className:Se(`lucide-${ua(e)}`,o),...r}));return a.displayName=`${e}`,a};var de=re("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);var fe=re("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);var ie=re("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);import*as qe from"react";import*as pa from"react";import*as wt from"react-dom";import*as M from"react";import*as na from"react";function ia(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ct(...e){return t=>{let a=!1,o=e.map(r=>{let l=ia(r,t);return!a&&typeof l=="function"&&(a=!0),l});if(a)return()=>{for(let r=0;r{let{children:r,...l}=a,u=null,s=!1,n=[];ca(r)&&typeof we=="function"&&(r=we(r._payload)),M.Children.forEach(r,g=>{if(xt(g)){s=!0;let h=g,k="child"in h.props?h.props.child:h.props.children;ca(k)&&typeof we=="function"&&(k=we(k._payload)),u=mt(h,k),n.push(u?.props?.children)}else n.push(g)}),u?u=M.cloneElement(u,void 0,n):!s&&M.Children.count(r)===1&&M.isValidElement(r)&&(u=r);let d=u?It(u):void 0,p=$(o,d);if(!u){if(r||r===0)throw new Error(s?St(e):ht(e));return r}let m=Lt(l,u.props??{});return u.type!==M.Fragment&&(m.ref=o?p:d),M.cloneElement(u,m)});return t.displayName=`${e}.Slot`,t}var pt=Symbol.for("radix.slottable");var mt=(e,t)=>{if("child"in e.props){let a=e.props.child;return M.isValidElement(a)?M.cloneElement(a,void 0,e.props.children(a.props.children)):null}return M.isValidElement(t)?t:null};function Lt(e,t){let a={...t};for(let o in t){let r=e[o],l=t[o];/^on[A-Z]/.test(o)?r&&l?a[o]=(...s)=>{let n=l(...s);return r(...s),n}:r&&(a[o]=r):o==="style"?a[o]={...r,...l}:o==="className"&&(a[o]=[r,l].filter(Boolean).join(" "))}return{...e,...a}}function It(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function xt(e){return M.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pt}var gt=Symbol.for("react.lazy");function ca(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===gt&&"_payload"in e&&Ct(e._payload)}function Ct(e){return typeof e=="object"&&e!==null&&"then"in e}var ht=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,St=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,we=M[" use ".trim().toString()];import{jsx as kt}from"react/jsx-runtime";var bt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_=bt.reduce((e,t)=>{let a=ne(`Primitive.${t}`),o=pa.forwardRef((r,l)=>{let{asChild:u,...s}=r,n=u?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),kt(n,{...s,ref:l})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});import*as V from"react";import{jsx as Pt}from"react/jsx-runtime";function le(e,t=[]){let a=[];function o(l,u){let s=V.createContext(u);s.displayName=l+"Context";let n=a.length;a=[...a,u];let d=m=>{let{scope:g,children:h,...k}=m,C=g?.[e]?.[n]||s,I=V.useMemo(()=>k,Object.values(k));return Pt(C.Provider,{value:I,children:h})};d.displayName=l+"Provider";function p(m,g){let h=g?.[e]?.[n]||s,k=V.useContext(h);if(k)return k;if(u!==void 0)return u;throw new Error(`\`${m}\` must be used within \`${l}\``)}return[d,p]}let r=()=>{let l=a.map(u=>V.createContext(u));return function(s){let n=s?.[e]||l;return V.useMemo(()=>({[`__scope${e}`]:{...s,[e]:n}}),[s,n])}};return r.scopeName=e,[o,Rt(r,...t)]}function Rt(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(l){let u=o.reduce((s,{useScope:n,scopeName:d})=>{let m=n(l)[`__scope${d}`];return{...s,...m}},{});return V.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return a.scopeName=t.scopeName,a}import*as E from"react";import{jsx as Ve}from"react/jsx-runtime";import*as ke from"react";import{jsx as br}from"react/jsx-runtime";function ma(e){let t=e+"CollectionProvider",[a,o]=le(t),[r,l]=a(t,{collectionRef:{current:null},itemMap:new Map}),u=C=>{let{scope:I,children:b}=C,S=E.useRef(null),w=E.useRef(new Map).current;return Ve(r,{scope:I,itemMap:w,collectionRef:S,children:b})};u.displayName=t;let s=e+"CollectionSlot",n=ne(s),d=E.forwardRef((C,I)=>{let{scope:b,children:S}=C,w=l(s,b),P=$(I,w.collectionRef);return Ve(n,{ref:P,children:S})});d.displayName=s;let p=e+"CollectionItemSlot",m="data-radix-collection-item",g=ne(p),h=E.forwardRef((C,I)=>{let{scope:b,children:S,...w}=C,P=E.useRef(null),U=$(I,P),H=l(p,b);return E.useEffect(()=>(H.itemMap.set(P,{ref:P,...w}),()=>void H.itemMap.delete(P))),Ve(g,{[m]:"",ref:U,children:S})});h.displayName=p;function k(C){let I=l(e+"CollectionConsumer",C);return E.useCallback(()=>{let S=I.collectionRef.current;if(!S)return[];let w=Array.from(S.querySelectorAll(`[${m}]`));return Array.from(I.itemMap.values()).sort((H,q)=>w.indexOf(H.ref.current)-w.indexOf(q.ref.current))},[I.collectionRef,I.itemMap])}return[{Provider:u,Slot:d,ItemSlot:h},k,o]}var Rr=!!(typeof window<"u"&&window.document&&window.document.createElement);function W(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),a===!1||!r.defaultPrevented)return t?.(r)}}import*as G from"react";import*as La from"react";var be=globalThis?.document?La.useLayoutEffect:()=>{};import*as Pe from"react";var At=G[" useInsertionEffect ".trim().toString()]||be;function Q({prop:e,defaultProp:t,onChange:a=()=>{},caller:o}){let[r,l,u]=yt({defaultProp:t,onChange:a}),s=e!==void 0,n=s?e:r;{let p=G.useRef(e!==void 0);G.useEffect(()=>{let m=p.current;m!==s&&console.warn(`${o} is changing from ${m?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=s},[s,o])}let d=G.useCallback(p=>{if(s){let m=vt(p)?p(e):p;m!==e&&u.current?.(m)}else l(p)},[s,e,l,u]);return[n,d]}function yt({defaultProp:e,onChange:t}){let[a,o]=G.useState(e),r=G.useRef(a),l=G.useRef(t);return At(()=>{l.current=t},[t]),G.useEffect(()=>{r.current!==a&&(l.current?.(a),r.current=a)},[a,r]),[a,o,l]}function vt(e){return typeof e=="function"}var Mr=Symbol("RADIX:SYNC_STATE");import*as We from"react";var Mt=We[" useId ".trim().toString()]||(()=>{}),Ft=0;function Ia(e){let[t,a]=We.useState(Mt());return be(()=>{e||a(o=>o??String(Ft++))},[e]),e||(t?`radix-${t}`:"")}import*as Re from"react";import{jsx as qr}from"react/jsx-runtime";var Bt=Re.createContext(void 0);function Ae(e){let t=Re.useContext(Bt);return e||t||"ltr"}import*as ue from"react";function xa(e){let t=ue.useRef(e);return ue.useEffect(()=>{t.current=e}),ue.useMemo(()=>(...a)=>t.current?.(...a),[])}import*as v from"react";import{jsx as Y}from"react/jsx-runtime";var Ne="rovingFocusGroup.onEntryFocus",Dt={bubbles:!1,cancelable:!0},ce="RovingFocusGroup",[Xe,ga,Tt]=ma(ce),[qt,_e]=le(ce,[Tt]),[Ot,Ut]=qt(ce),Ca=v.forwardRef((e,t)=>Y(Xe.Provider,{scope:e.__scopeRovingFocusGroup,children:Y(Xe.Slot,{scope:e.__scopeRovingFocusGroup,children:Y(Ht,{...e,ref:t})})}));Ca.displayName=ce;var Ht=v.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:o,loop:r=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:n,onEntryFocus:d,preventScrollOnEntryFocus:p=!1,...m}=e,g=v.useRef(null),h=$(t,g),k=Ae(l),[C,I]=Q({prop:u,defaultProp:s??null,onChange:n,caller:ce}),[b,S]=v.useState(!1),w=xa(d),P=ga(a),U=v.useRef(!1),[H,q]=v.useState(0);return v.useEffect(()=>{let f=g.current;if(f)return f.addEventListener(Ne,w),()=>f.removeEventListener(Ne,w)},[w]),Y(Ot,{scope:a,orientation:o,dir:k,loop:r,currentTabStopId:C,onItemFocus:v.useCallback(f=>I(f),[I]),onItemShiftTab:v.useCallback(()=>S(!0),[]),onFocusableItemAdd:v.useCallback(()=>q(f=>f+1),[]),onFocusableItemRemove:v.useCallback(()=>q(f=>f-1),[]),children:Y(_.div,{tabIndex:b||H===0?-1:0,"data-orientation":o,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:W(e.onMouseDown,()=>{U.current=!0}),onFocus:W(e.onFocus,f=>{let F=!U.current;if(f.target===f.currentTarget&&F&&!b){let se=new CustomEvent(Ne,Dt);if(f.currentTarget.dispatchEvent(se),!se.defaultPrevented){let te=P().filter(R=>R.focusable),oe=te.find(R=>R.active),Le=te.find(R=>R.id===C),X=[oe,Le,...te].filter(Boolean).map(R=>R.ref.current);wa(X,p)}}U.current=!1}),onBlur:W(e.onBlur,()=>S(!1))})})}),ha="RovingFocusGroupItem",Sa=v.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:o=!0,active:r=!1,tabStopId:l,children:u,...s}=e,n=Ia(),d=l||n,p=Ut(ha,a),m=p.currentTabStopId===d,g=ga(a),{onFocusableItemAdd:h,onFocusableItemRemove:k,currentTabStopId:C}=p;return v.useEffect(()=>{if(o)return h(),()=>k()},[o,h,k]),Y(Xe.ItemSlot,{scope:a,id:d,focusable:o,active:r,children:Y(_.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:W(e.onMouseDown,I=>{o?p.onItemFocus(d):I.preventDefault()}),onFocus:W(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:W(e.onKeyDown,I=>{if(I.key==="Tab"&&I.shiftKey){p.onItemShiftTab();return}if(I.target!==I.currentTarget)return;let b=zt(I,p.orientation,p.dir);if(b!==void 0){if(I.metaKey||I.ctrlKey||I.altKey||I.shiftKey)return;I.preventDefault();let w=g().filter(P=>P.focusable).map(P=>P.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();let P=w.indexOf(I.currentTarget);w=p.loop?Vt(w,P+1):w.slice(P+1)}setTimeout(()=>wa(w))}}),children:typeof u=="function"?u({isCurrentTabStop:m,hasTabStop:C!=null}):u})})});Sa.displayName=ha;var Gt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Et(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function zt(e,t,a){let o=Et(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Gt[o]}function wa(e,t=!1){let a=document.activeElement;for(let o of e)if(o===a||(o.focus({preventScroll:t}),document.activeElement!==a))return}function Vt(e,t){return e.map((a,o)=>e[(t+o)%e.length])}var ka=Ca,ba=Sa;import*as Pa from"react";import{jsx as Nt}from"react/jsx-runtime";var Ra="Toggle",Ke=Pa.forwardRef((e,t)=>{let{pressed:a,defaultPressed:o,onPressedChange:r,...l}=e,[u,s]=Q({prop:a,onChange:r,defaultProp:o??!1,caller:Ra});return Nt(_.button,{type:"button","aria-pressed":u,"data-state":u?"on":"off","data-disabled":e.disabled?"":void 0,...l,ref:t,onClick:W(e.onClick,()=>{e.disabled||s(!u)})})});Ke.displayName=Ra;var pe={};dt(pe,{Item:()=>$t,Root:()=>Jt,ToggleGroup:()=>ve,ToggleGroupItem:()=>Ze,createToggleGroupScope:()=>Xt});import*as T from"react";import{jsx as O}from"react/jsx-runtime";var K="ToggleGroup",[ya,Xt]=le(K,[_e]),va=_e(),ve=T.forwardRef((e,t)=>{let{type:a,...o}=e;if(a==="single")return O(_t,{...o,ref:t});if(a==="multiple")return O(Kt,{...o,ref:t});throw new Error(`Missing prop \`type\` expected on \`${K}\``)});ve.displayName=K;var[Ma,Fa]=ya(K),_t=T.forwardRef((e,t)=>{let{value:a,defaultValue:o,onValueChange:r=()=>{},...l}=e,[u,s]=Q({prop:a,defaultProp:o??"",onChange:r,caller:K});return O(Ma,{scope:e.__scopeToggleGroup,type:"single",value:T.useMemo(()=>u?[u]:[],[u]),onItemActivate:s,onItemDeactivate:T.useCallback(()=>s(""),[s]),children:O(Ba,{...l,ref:t})})}),Kt=T.forwardRef((e,t)=>{let{value:a,defaultValue:o,onValueChange:r=()=>{},...l}=e,[u,s]=Q({prop:a,defaultProp:o??[],onChange:r,caller:K}),n=T.useCallback(p=>s((m=[])=>[...m,p]),[s]),d=T.useCallback(p=>s((m=[])=>m.filter(g=>g!==p)),[s]);return O(Ma,{scope:e.__scopeToggleGroup,type:"multiple",value:u,onItemActivate:n,onItemDeactivate:d,children:O(Ba,{...l,ref:t})})});ve.displayName=K;var[Zt,jt]=ya(K),Ba=T.forwardRef((e,t)=>{let{__scopeToggleGroup:a,disabled:o=!1,rovingFocus:r=!0,orientation:l,dir:u,loop:s=!0,...n}=e,d=va(a),p=Ae(u),m={role:"group",dir:p,...n};return O(Zt,{scope:a,rovingFocus:r,disabled:o,children:r?O(ka,{asChild:!0,...d,orientation:l,dir:p,loop:s,children:O(_.div,{...m,ref:t})}):O(_.div,{...m,ref:t})})}),ye="ToggleGroupItem",Ze=T.forwardRef((e,t)=>{let a=Fa(ye,e.__scopeToggleGroup),o=jt(ye,e.__scopeToggleGroup),r=va(e.__scopeToggleGroup),l=a.value.includes(e.value),u=o.disabled||e.disabled,s={...e,pressed:l,disabled:u},n=T.useRef(null);return o.rovingFocus?O(ba,{asChild:!0,...r,focusable:!u,active:l,ref:n,children:O(Aa,{...s,ref:t})}):O(Aa,{...s,ref:t})});Ze.displayName=ye;var Aa=T.forwardRef((e,t)=>{let{__scopeToggleGroup:a,value:o,...r}=e,l=Fa(ye,a),u={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=l.type==="single"?u:void 0;return O(Ke,{...s,...r,ref:t,onPressedChange:n=>{n?l.onItemActivate(o):l.onItemDeactivate(o)}})}),Jt=ve,$t=Ze;function Da(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),Ea=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),De="-",Ta=[],eo="arbitrary..",ao=e=>{let t=oo(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return to(u);let s=u.split(De),n=s[0]===""&&s.length>1?1:0;return za(s,n,t)},getConflictingClassGroupIds:(u,s)=>{if(s){let n=o[u],d=a[u];return n?d?Qt(d,n):n:d||Ta}return a[u]||Ta}}},za=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],l=a.nextPart.get(r);if(l){let d=za(e,t+1,l);if(d)return d}let u=a.validators;if(u===null)return;let s=t===0?e.join(De):e.slice(t).join(De),n=u.length;for(let d=0;de.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?eo+o:void 0})(),oo=e=>{let{theme:t,classGroups:a}=e;return ro(a,t)},ro=(e,t)=>{let a=Ea();for(let o in e){let r=e[o];$e(r,a,o,t)}return a},$e=(e,t,a,o)=>{let r=e.length;for(let l=0;l{if(typeof e=="string"){uo(e,t,a);return}if(typeof e=="function"){so(e,t,a,o);return}fo(e,t,a,o)},uo=(e,t,a)=>{let o=e===""?t:Va(t,e);o.classGroupId=a},so=(e,t,a,o)=>{if(io(e)){$e(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Yt(a,e))},fo=(e,t,a,o)=>{let r=Object.entries(e),l=r.length;for(let u=0;u{let a=e,o=t.split(De),r=o.length;for(let l=0;l"isThemeGetter"in e&&e.isThemeGetter===!0,no=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(l,u)=>{a[l]=u,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(l){let u=a[l];if(u!==void 0)return u;if((u=o[l])!==void 0)return r(l,u),u},set(l,u){l in a?a[l]=u:r(l,u)}}},Je="!",qa=":",co=[],Oa=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),po=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=r=>{let l=[],u=0,s=0,n=0,d,p=r.length;for(let C=0;Cn?d-n:void 0;return Oa(l,h,g,k)};if(t){let r=t+qa,l=o;o=u=>u.startsWith(r)?l(u.slice(r.length)):Oa(co,!1,u,void 0,!0)}if(a){let r=o;o=l=>a({className:l,parseClassName:r})}return o},mo=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],r=[];for(let l=0;l0&&(r.sort(),o.push(...r),r=[]),o.push(u)):r.push(u)}return r.length>0&&(r.sort(),o.push(...r)),o}},Lo=e=>({cache:no(e.cacheSize),parseClassName:po(e),sortModifiers:mo(e),postfixLookupClassGroupIds:Io(e),...ao(e)}),Io=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:l,postfixLookupClassGroupIds:u}=t,s=[],n=e.trim().split(xo),d="";for(let p=n.length-1;p>=0;p-=1){let m=n[p],{isExternal:g,modifiers:h,hasImportantModifier:k,baseClassName:C,maybePostfixModifierPosition:I}=a(m);if(g){d=m+(d.length>0?" "+d:d);continue}let b=!!I,S;if(b){let q=C.substring(0,I);S=o(q);let f=S&&u[S]?o(C):void 0;f&&f!==S&&(S=f,b=!1)}else S=o(C);if(!S){if(!b){d=m+(d.length>0?" "+d:d);continue}if(S=o(C),!S){d=m+(d.length>0?" "+d:d);continue}b=!1}let w=h.length===0?"":h.length===1?h[0]:l(h).join(":"),P=k?w+Je:w,U=P+S;if(s.indexOf(U)>-1)continue;s.push(U);let H=r(S,b);for(let q=0;q0?" "+d:d)}return d},Co=(...e)=>{let t=0,a,o,r="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,r,l,u=n=>{let d=t.reduce((p,m)=>m(p),e());return a=Lo(d),o=a.cache.get,r=a.cache.set,l=s,s(n)},s=n=>{let d=o(n);if(d)return d;let p=go(n,a);return r(n,p),p};return l=u,(...n)=>l(Co(...n))},So=[],A=e=>{let t=a=>a[e]||So;return t.isThemeGetter=!0,t},Na=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ko=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Po=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ro=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ao=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Z=e=>wo.test(e),x=e=>!!e&&!Number.isNaN(Number(e)),z=e=>!!e&&Number.isInteger(Number(e)),je=e=>e.endsWith("%")&&x(e.slice(0,-1)),N=e=>ko.test(e),_a=()=>!0,yo=e=>bo.test(e)&&!Po.test(e),Qe=()=>!1,vo=e=>Ro.test(e),Mo=e=>Ao.test(e),Fo=e=>!i(e)&&!c(e),Bo=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Do=e=>j(e,ja,Qe),i=e=>Na.test(e),ee=e=>j(e,Ja,yo),Ua=e=>j(e,zo,x),To=e=>j(e,Qa,_a),qo=e=>j(e,$a,Qe),Ha=e=>j(e,Ka,Qe),Oo=e=>j(e,Za,Mo),Fe=e=>j(e,Ya,vo),c=e=>Xa.test(e),me=e=>ae(e,Ja),Uo=e=>ae(e,$a),Ga=e=>ae(e,Ka),Ho=e=>ae(e,ja),Go=e=>ae(e,Za),Be=e=>ae(e,Ya,!0),Eo=e=>ae(e,Qa,!0),j=(e,t,a)=>{let o=Na.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},ae=(e,t,a=!1)=>{let o=Xa.exec(e);return o?o[1]?t(o[1]):a:!1},Ka=e=>e==="position"||e==="percentage",Za=e=>e==="image"||e==="url",ja=e=>e==="length"||e==="size"||e==="bg-size",Ja=e=>e==="length",zo=e=>e==="number",$a=e=>e==="family-name",Qa=e=>e==="number"||e==="weight",Ya=e=>e==="shadow";var Vo=()=>{let e=A("color"),t=A("font"),a=A("text"),o=A("font-weight"),r=A("tracking"),l=A("leading"),u=A("breakpoint"),s=A("container"),n=A("spacing"),d=A("radius"),p=A("shadow"),m=A("inset-shadow"),g=A("text-shadow"),h=A("drop-shadow"),k=A("blur"),C=A("perspective"),I=A("aspect"),b=A("ease"),S=A("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...P(),c,i],H=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],f=()=>[c,i,n],F=()=>[Z,"full","auto",...f()],se=()=>[z,"none","subgrid",c,i],te=()=>["auto",{span:["full",z,c,i]},z,c,i],oe=()=>[z,"auto",c,i],Le=()=>["auto","min","max","fr",c,i],Ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...f()],J=()=>[Z,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],He=()=>[Z,"screen","full","dvw","lvw","svw","min","max","fit",...f()],Ge=()=>[Z,"screen","full","lh","dvh","lvh","svh","min","max","fit",...f()],L=()=>[e,c,i],aa=()=>[...P(),Ga,Ha,{position:[c,i]}],ta=()=>["no-repeat",{repeat:["","x","y","space","round"]}],oa=()=>["auto","cover","contain",Ho,Do,{size:[c,i]}],Ee=()=>[je,me,ee],B=()=>["","none","full",d,c,i],D=()=>["",x,me,ee],xe=()=>["solid","dashed","dotted","double"],ra=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],y=()=>[x,je,Ga,Ha],la=()=>["","none",k,c,i],ge=()=>["none",x,c,i],Ce=()=>["none",x,c,i],ze=()=>[x,c,i],he=()=>[Z,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[N],breakpoint:[N],color:[_a],container:[N],"drop-shadow":[N],ease:["in","out","in-out"],font:[Fo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[N],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[N],shadow:[N],spacing:["px",x],text:[N],"text-shadow":[N],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Z,i,c,I]}],container:["container"],"container-type":[{"@container":["","normal","size",c,i]}],"container-named":[Bo],columns:[{columns:[x,i,c,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:U()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[z,"auto",c,i]}],basis:[{basis:[Z,"full","auto",s,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[x,Z,"auto","initial","none",i]}],grow:[{grow:["",x,c,i]}],shrink:[{shrink:["",x,c,i]}],order:[{order:[z,"first","last","none",c,i]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Le()}],"auto-rows":[{"auto-rows":Le()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...Ie(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...Ie()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ie()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pbs:[{pbs:f()}],pbe:[{pbe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mbs:[{mbs:R()}],mbe:[{mbe:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],"inline-size":[{inline:["auto",...He()]}],"min-inline-size":[{"min-inline":["auto",...He()]}],"max-inline-size":[{"max-inline":["none",...He()]}],"block-size":[{block:["auto",...Ge()]}],"min-block-size":[{"min-block":["auto",...Ge()]}],"max-block-size":[{"max-block":["none",...Ge()]}],w:[{w:[s,"screen",...J()]}],"min-w":[{"min-w":[s,"screen","none",...J()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[u]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",a,me,ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Eo,To]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",je,i]}],"font-family":[{font:[Uo,qo,t]}],"font-features":[{"font-features":[i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,c,i]}],"line-clamp":[{"line-clamp":[x,"none",c,Ua]}],leading:[{leading:[l,...f()]}],"list-image":[{"list-image":["none",c,i]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",c,i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[x,"from-font","auto",c,ee]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[x,"auto",c,i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"tab-size":[{tab:[z,c,i]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c,i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c,i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:aa()}],"bg-repeat":[{bg:ta()}],"bg-size":[{bg:oa()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},z,c,i],radial:["",c,i],conic:[z,c,i]},Go,Oo]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:Ee()}],"gradient-via-pos":[{via:Ee()}],"gradient-to-pos":[{to:Ee()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-bs":[{"border-bs":D()}],"border-w-be":[{"border-be":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[x,c,i]}],"outline-w":[{outline:["",x,me,ee]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",p,Be,Fe]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",m,Be,Fe]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[x,ee]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",g,Be,Fe]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[x,c,i]}],"mix-blend":[{"mix-blend":[...ra(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ra()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[x]}],"mask-image-linear-from-pos":[{"mask-linear-from":y()}],"mask-image-linear-to-pos":[{"mask-linear-to":y()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":y()}],"mask-image-t-to-pos":[{"mask-t-to":y()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":y()}],"mask-image-r-to-pos":[{"mask-r-to":y()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":y()}],"mask-image-b-to-pos":[{"mask-b-to":y()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":y()}],"mask-image-l-to-pos":[{"mask-l-to":y()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":y()}],"mask-image-x-to-pos":[{"mask-x-to":y()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":y()}],"mask-image-y-to-pos":[{"mask-y-to":y()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[c,i]}],"mask-image-radial-from-pos":[{"mask-radial-from":y()}],"mask-image-radial-to-pos":[{"mask-radial-to":y()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[x]}],"mask-image-conic-from-pos":[{"mask-conic-from":y()}],"mask-image-conic-to-pos":[{"mask-conic-to":y()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:aa()}],"mask-repeat":[{mask:ta()}],"mask-size":[{mask:oa()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",c,i]}],filter:[{filter:["","none",c,i]}],blur:[{blur:la()}],brightness:[{brightness:[x,c,i]}],contrast:[{contrast:[x,c,i]}],"drop-shadow":[{"drop-shadow":["","none",h,Be,Fe]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",x,c,i]}],"hue-rotate":[{"hue-rotate":[x,c,i]}],invert:[{invert:["",x,c,i]}],saturate:[{saturate:[x,c,i]}],sepia:[{sepia:["",x,c,i]}],"backdrop-filter":[{"backdrop-filter":["","none",c,i]}],"backdrop-blur":[{"backdrop-blur":la()}],"backdrop-brightness":[{"backdrop-brightness":[x,c,i]}],"backdrop-contrast":[{"backdrop-contrast":[x,c,i]}],"backdrop-grayscale":[{"backdrop-grayscale":["",x,c,i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x,c,i]}],"backdrop-invert":[{"backdrop-invert":["",x,c,i]}],"backdrop-opacity":[{"backdrop-opacity":[x,c,i]}],"backdrop-saturate":[{"backdrop-saturate":[x,c,i]}],"backdrop-sepia":[{"backdrop-sepia":["",x,c,i]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",c,i]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[x,"initial",c,i]}],ease:[{ease:["linear","initial",b,c,i]}],delay:[{delay:[x,c,i]}],animate:[{animate:["none",S,c,i]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,c,i]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[c,i,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],zoom:[{zoom:[z,c,i]}],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c,i]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":L()}],"scrollbar-track-color":[{"scrollbar-track":L()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mbs":[{"scroll-mbs":f()}],"scroll-mbe":[{"scroll-mbe":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pbs":[{"scroll-pbs":f()}],"scroll-pbe":[{"scroll-pbe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c,i]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[x,me,ee,Ua]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var et=ho(Vo);function Te(...e){return et(Me(e))}var at=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tt=Me,ot=(e,t)=>a=>{var o;if(t?.variants==null)return tt(e,a?.class,a?.className);let{variants:r,defaultVariants:l}=t,u=Object.keys(r).map(d=>{let p=a?.[d],m=l?.[d];if(p===null)return null;let g=at(p)||at(m);return r[d][g]}),s=a&&Object.entries(a).reduce((d,p)=>{let[m,g]=p;return g===void 0||(d[m]=g),d},{}),n=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((d,p)=>{let{class:m,className:g,...h}=p;return Object.entries(h).every(k=>{let[C,I]=k;return Array.isArray(I)?I.includes({...l,...s}[C]):{...l,...s}[C]===I})?[...d,m,g]:d},[]);return tt(e,u,n,a?.class,a?.className)};import{jsx as xl}from"react/jsx-runtime";var rt=ot("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 min-w-9 px-2",sm:"h-8 min-w-8 px-1.5",lg:"h-10 min-w-10 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});import{jsx as Ye}from"react/jsx-runtime";var lt=qe.createContext({size:"default",variant:"default",spacing:0});function ut({className:e,variant:t,size:a,spacing:o=0,children:r,...l}){return Ye(pe.Root,{"data-slot":"toggle-group","data-variant":t,"data-size":a,"data-spacing":o,style:{"--gap":o},className:Te("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs",e),...l,children:Ye(lt.Provider,{value:{variant:t,size:a,spacing:o},children:r})})}function Oe({className:e,children:t,variant:a,size:o,...r}){let l=qe.useContext(lt);return Ye(pe.Item,{"data-slot":"toggle-group-item","data-variant":l.variant||a,"data-size":l.size||o,"data-spacing":l.spacing,className:Te(rt({variant:l.variant||a,size:l.size||o}),"w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10","data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l",e),...r,children:t})}import{jsx as ea,jsxs as Ue}from"react/jsx-runtime";function Wo(){return Ue(ut,{type:"multiple",variant:"outline",spacing:2,size:"sm",children:[Ue(Oe,{value:"star","aria-label":"Toggle star",className:"data-[state=on]:bg-transparent data-[state=on]:*:[svg]:fill-yellow-500 data-[state=on]:*:[svg]:stroke-yellow-500",children:[ea(ie,{}),"Star"]}),Ue(Oe,{value:"heart","aria-label":"Toggle heart",className:"data-[state=on]:bg-transparent data-[state=on]:*:[svg]:fill-red-500 data-[state=on]:*:[svg]:stroke-red-500",children:[ea(fe,{}),"Heart"]}),Ue(Oe,{value:"bookmark","aria-label":"Toggle bookmark",className:"data-[state=on]:bg-transparent data-[state=on]:*:[svg]:fill-blue-500 data-[state=on]:*:[svg]:stroke-blue-500",children:[ea(de,{}),"Bookmark"]})]})}export{Wo as default}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/bookmark.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/heart.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/star.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/8844614be8005ef699c15c881a110516f26f617b9438490d79bb29cbb0ca5df0 b/b/8844614be8005ef699c15c881a110516f26f617b9438490d79bb29cbb0ca5df0 new file mode 100644 index 0000000000000000000000000000000000000000..e601211ddca44ffad8b919aabb7356fb2f36fb8b --- /dev/null +++ b/b/8844614be8005ef699c15c881a110516f26f617b9438490d79bb29cbb0ca5df0 @@ -0,0 +1,60 @@ + +lm_head tiled repro — VALID data, large N + +
running…
+ diff --git a/b/884c45e35b8017fc2a47652b3b015953866ce07ce1189b39e8910cdf96d8250d b/b/884c45e35b8017fc2a47652b3b015953866ce07ce1189b39e8910cdf96d8250d new file mode 100644 index 0000000000000000000000000000000000000000..00912788f995d7c3afe49aebaa1cf1c6af50b3a6 --- /dev/null +++ b/b/884c45e35b8017fc2a47652b3b015953866ce07ce1189b39e8910cdf96d8250d @@ -0,0 +1,59 @@ +var fa=Object.defineProperty;var ia=(e,t)=>{for(var a in t)fa(e,a,{get:t[a],enumerable:!0})};import{forwardRef as ca,createElement as pa}from"react";var Be=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Y=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as na,createElement as Me}from"react";var ye={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Fe=na(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:l="",children:r,iconNode:u,...c},p)=>Me("svg",{ref:p,...ye,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:Y("lucide",l),...c},[...u.map(([f,L])=>Me(f,L)),...Array.isArray(r)?r:[r]]));var ee=(e,t)=>{let a=ca(({className:o,...l},r)=>pa(Fe,{ref:r,iconNode:t,className:Y(`lucide-${Be(e)}`,o),...l}));return a.displayName=`${e}`,a};var N=ee("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);var X=ee("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);function De(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,ve=ae,te=(e,t)=>a=>{var o;if(t?.variants==null)return ve(e,a?.class,a?.className);let{variants:l,defaultVariants:r}=t,u=Object.keys(l).map(f=>{let L=a?.[f],x=r?.[f];if(L===null)return null;let C=Re(L)||Re(x);return l[f][C]}),c=a&&Object.entries(a).reduce((f,L)=>{let[x,C]=L;return C===void 0||(f[x]=C),f},{}),p=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((f,L)=>{let{class:x,className:C,...h}=L;return Object.entries(h).every(y=>{let[w,k]=y;return Array.isArray(k)?k.includes({...r,...c}[w]):{...r,...c}[w]===k})?[...f,x,C]:f},[]);return ve(e,u,p,a?.class,a?.className)};var le={};ia(le,{Root:()=>La,Slot:()=>La,Slottable:()=>xa,createSlot:()=>He,createSlottable:()=>ze});import*as S from"react";import*as qe from"react";function Te(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ma(...e){return t=>{let a=!1,o=e.map(l=>{let r=Te(l,t);return!a&&typeof r=="function"&&(a=!0),r});if(a)return()=>{for(let l=0;l{let{children:l,...r}=a,u=null,c=!1,p=[];Oe(l)&&typeof oe=="function"&&(l=oe(l._payload)),S.Children.forEach(l,C=>{if(ha(C)){c=!0;let h=C,y="child"in h.props?h.props.child:h.props.children;Oe(y)&&typeof oe=="function"&&(y=oe(y._payload)),u=Ia(h,y),p.push(u?.props?.children)}else p.push(C)}),u?u=S.cloneElement(u,void 0,p):!c&&S.Children.count(l)===1&&S.isValidElement(l)&&(u=l);let f=u?ga(u):void 0,L=Ue(o,f);if(!u){if(l||l===0)throw new Error(c?ba(e):ka(e));return l}let x=Ca(r,u.props??{});return u.type!==S.Fragment&&(x.ref=o?L:f),S.cloneElement(u,x)});return t.displayName=`${e}.Slot`,t}var La=He("Slot"),Ge=Symbol.for("radix.slottable");function ze(e){let t=a=>"child"in a?a.children(a.child):a.children;return t.displayName=`${e}.Slottable`,t.__radixId=Ge,t}var xa=ze("Slottable"),Ia=(e,t)=>{if("child"in e.props){let a=e.props.child;return S.isValidElement(a)?S.cloneElement(a,void 0,e.props.children(a.props.children)):null}return S.isValidElement(t)?t:null};function Ca(e,t){let a={...t};for(let o in t){let l=e[o],r=t[o];/^on[A-Z]/.test(o)?l&&r?a[o]=(...c)=>{let p=r(...c);return l(...c),p}:l&&(a[o]=l):o==="style"?a[o]={...l,...r}:o==="className"&&(a[o]=[l,r].filter(Boolean).join(" "))}return{...e,...a}}function ga(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function ha(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ge}var Sa=Symbol.for("react.lazy");function Oe(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Sa&&"_payload"in e&&wa(e._payload)}function wa(e){return typeof e=="object"&&e!==null&&"then"in e}var ka=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,ba=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,oe=S[" use ".trim().toString()];var Pa=(e,t)=>{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),Ze=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),de="-",Ve=[],Ba="arbitrary..",ya=e=>{let t=Fa(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return Ma(u);let c=u.split(de),p=c[0]===""&&c.length>1?1:0;return Je(c,p,t)},getConflictingClassGroupIds:(u,c)=>{if(c){let p=o[u],f=a[u];return p?f?Pa(f,p):p:f||Ve}return a[u]||Ve}}},Je=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let l=e[t],r=a.nextPart.get(l);if(r){let f=Je(e,t+1,r);if(f)return f}let u=a.validators;if(u===null)return;let c=t===0?e.join(de):e.slice(t).join(de),p=u.length;for(let f=0;fe.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?Ba+o:void 0})(),Fa=e=>{let{theme:t,classGroups:a}=e;return Da(a,t)},Da=(e,t)=>{let a=Ze();for(let o in e){let l=e[o];xe(l,a,o,t)}return a},xe=(e,t,a,o)=>{let l=e.length;for(let r=0;r{if(typeof e=="string"){va(e,t,a);return}if(typeof e=="function"){Ta(e,t,a,o);return}qa(e,t,a,o)},va=(e,t,a)=>{let o=e===""?t:_e(t,e);o.classGroupId=a},Ta=(e,t,a,o)=>{if(Ua(e)){xe(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Aa(a,e))},qa=(e,t,a,o)=>{let l=Object.entries(e),r=l.length;for(let u=0;u{let a=e,o=t.split(de),l=o.length;for(let r=0;r"isThemeGetter"in e&&e.isThemeGetter===!0,Oa=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),l=(r,u)=>{a[r]=u,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(r){let u=a[r];if(u!==void 0)return u;if((u=o[r])!==void 0)return l(r,u),u},set(r,u){r in a?a[r]=u:l(r,u)}}},Le="!",Ee=":",Ha=[],We=(e,t,a,o,l)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:l}),Ga=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=l=>{let r=[],u=0,c=0,p=0,f,L=l.length;for(let w=0;wp?f-p:void 0;return We(r,h,C,y)};if(t){let l=t+Ee,r=o;o=u=>u.startsWith(l)?r(u.slice(l.length)):We(Ha,!1,u,void 0,!0)}if(a){let l=o;o=r=>a({className:r,parseClassName:l})}return o},za=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],l=[];for(let r=0;r0&&(l.sort(),o.push(...l),l=[]),o.push(u)):l.push(u)}return l.length>0&&(l.sort(),o.push(...l)),o}},Va=e=>({cache:Oa(e.cacheSize),parseClassName:Ga(e),sortModifiers:za(e),postfixLookupClassGroupIds:Ea(e),...ya(e)}),Ea=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:l,sortModifiers:r,postfixLookupClassGroupIds:u}=t,c=[],p=e.trim().split(Wa),f="";for(let L=p.length-1;L>=0;L-=1){let x=p[L],{isExternal:C,modifiers:h,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:k}=a(x);if(C){f=x+(f.length>0?" "+f:f);continue}let q=!!k,A;if(q){let D=w.substring(0,k);A=o(D);let i=A&&u[A]?o(w):void 0;i&&i!==A&&(A=i,q=!1)}else A=o(w);if(!A){if(!q){f=x+(f.length>0?" "+f:f);continue}if(A=o(w),!A){f=x+(f.length>0?" "+f:f);continue}q=!1}let W=h.length===0?"":h.length===1?h[0]:r(h).join(":"),G=y?W+Le:W,z=G+A;if(c.indexOf(z)>-1)continue;c.push(z);let V=l(A,q);for(let D=0;D0?" "+f:f)}return f},Xa=(...e)=>{let t=0,a,o,l="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,l,r,u=p=>{let f=t.reduce((L,x)=>x(L),e());return a=Va(f),o=a.cache.get,l=a.cache.set,r=c,c(p)},c=p=>{let f=o(p);if(f)return f;let L=Na(p,a);return l(p,L),L};return r=u,(...p)=>r(Xa(...p))},Za=[],I=e=>{let t=a=>a[e]||Za;return t.isThemeGetter=!0,t},je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$e=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ja=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_a=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qa=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ja=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$a=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ya=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,v=e=>Ja.test(e),m=e=>!!e&&!Number.isNaN(Number(e)),F=e=>!!e&&Number.isInteger(Number(e)),me=e=>e.endsWith("%")&&m(e.slice(0,-1)),R=e=>_a.test(e),Ye=()=>!0,et=e=>Qa.test(e)&&!ja.test(e),Ie=()=>!1,at=e=>$a.test(e),tt=e=>Ya.test(e),ot=e=>!d(e)&&!s(e),lt=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),rt=e=>T(e,ta,Ie),d=e=>je.test(e),O=e=>T(e,oa,et),Ne=e=>T(e,pt,m),ut=e=>T(e,ra,Ye),dt=e=>T(e,la,Ie),Xe=e=>T(e,ea,Ie),st=e=>T(e,aa,tt),re=e=>T(e,ua,at),s=e=>$e.test(e),K=e=>H(e,oa),ft=e=>H(e,la),Ke=e=>H(e,ea),it=e=>H(e,ta),nt=e=>H(e,aa),ue=e=>H(e,ua,!0),ct=e=>H(e,ra,!0),T=(e,t,a)=>{let o=je.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},H=(e,t,a=!1)=>{let o=$e.exec(e);return o?o[1]?t(o[1]):a:!1},ea=e=>e==="position"||e==="percentage",aa=e=>e==="image"||e==="url",ta=e=>e==="length"||e==="size"||e==="bg-size",oa=e=>e==="length",pt=e=>e==="number",la=e=>e==="family-name",ra=e=>e==="number"||e==="weight",ua=e=>e==="shadow";var mt=()=>{let e=I("color"),t=I("font"),a=I("text"),o=I("font-weight"),l=I("tracking"),r=I("leading"),u=I("breakpoint"),c=I("container"),p=I("spacing"),f=I("radius"),L=I("shadow"),x=I("inset-shadow"),C=I("text-shadow"),h=I("drop-shadow"),y=I("blur"),w=I("perspective"),k=I("aspect"),q=I("ease"),A=I("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...G(),s,d],V=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],i=()=>[s,d,p],B=()=>[v,"full","auto",...i()],ge=()=>[F,"none","subgrid",s,d],he=()=>["auto",{span:["full",F,s,d]},F,s,d],J=()=>[F,"auto",s,d],Se=()=>["auto","min","max","fr",s,d],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...i()],U=()=>[v,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],ie=()=>[v,"screen","full","dvw","lvw","svw","min","max","fit",...i()],ne=()=>[v,"screen","full","lh","dvh","lvh","svh","min","max","fit",...i()],n=()=>[e,s,d],we=()=>[...G(),Ke,Xe,{position:[s,d]}],ke=()=>["no-repeat",{repeat:["","x","y","space","round"]}],be=()=>["auto","cover","contain",it,rt,{size:[s,d]}],ce=()=>[me,K,O],b=()=>["","none","full",f,s,d],P=()=>["",m,K,O],_=()=>["solid","dashed","dotted","double"],Pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>[m,me,Ke,Xe],Ae=()=>["","none",y,s,d],Q=()=>["none",m,s,d],j=()=>["none",m,s,d],pe=()=>[m,s,d],$=()=>[v,"full",...i()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[R],breakpoint:[R],color:[Ye],container:[R],"drop-shadow":[R],ease:["in","out","in-out"],font:[ot],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[R],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[R],shadow:[R],spacing:["px",m],text:[R],"text-shadow":[R],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",v,d,s,k]}],container:["container"],"container-type":[{"@container":["","normal","size",s,d]}],"container-named":[lt],columns:[{columns:[m,d,s,c]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[F,"auto",s,d]}],basis:[{basis:[v,"full","auto",c,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m,v,"auto","initial","none",d]}],grow:[{grow:["",m,s,d]}],shrink:[{shrink:["",m,s,d]}],order:[{order:[F,"first","last","none",s,d]}],"grid-cols":[{"grid-cols":ge()}],"col-start-end":[{col:he()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":ge()}],"row-start-end":[{row:he()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:i()}],px:[{px:i()}],py:[{py:i()}],ps:[{ps:i()}],pe:[{pe:i()}],pbs:[{pbs:i()}],pbe:[{pbe:i()}],pt:[{pt:i()}],pr:[{pr:i()}],pb:[{pb:i()}],pl:[{pl:i()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],"inline-size":[{inline:["auto",...ie()]}],"min-inline-size":[{"min-inline":["auto",...ie()]}],"max-inline-size":[{"max-inline":["none",...ie()]}],"block-size":[{block:["auto",...ne()]}],"min-block-size":[{"min-block":["auto",...ne()]}],"max-block-size":[{"max-block":["none",...ne()]}],w:[{w:[c,"screen",...U()]}],"min-w":[{"min-w":[c,"screen","none",...U()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",a,K,O]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ct,ut]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",me,d]}],"font-family":[{font:[ft,dt,t]}],"font-features":[{"font-features":[d]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,s,d]}],"line-clamp":[{"line-clamp":[m,"none",s,Ne]}],leading:[{leading:[r,...i()]}],"list-image":[{"list-image":["none",s,d]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",s,d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:n()}],"text-color":[{text:n()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:[m,"from-font","auto",s,O]}],"text-decoration-color":[{decoration:n()}],"underline-offset":[{"underline-offset":[m,"auto",s,d]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:i()}],"tab-size":[{tab:[F,s,d]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",s,d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",s,d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:we()}],"bg-repeat":[{bg:ke()}],"bg-size":[{bg:be()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},F,s,d],radial:["",s,d],conic:[F,s,d]},nt,st]}],"bg-color":[{bg:n()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:n()}],"gradient-via":[{via:n()}],"gradient-to":[{to:n()}],rounded:[{rounded:b()}],"rounded-s":[{"rounded-s":b()}],"rounded-e":[{"rounded-e":b()}],"rounded-t":[{"rounded-t":b()}],"rounded-r":[{"rounded-r":b()}],"rounded-b":[{"rounded-b":b()}],"rounded-l":[{"rounded-l":b()}],"rounded-ss":[{"rounded-ss":b()}],"rounded-se":[{"rounded-se":b()}],"rounded-ee":[{"rounded-ee":b()}],"rounded-es":[{"rounded-es":b()}],"rounded-tl":[{"rounded-tl":b()}],"rounded-tr":[{"rounded-tr":b()}],"rounded-br":[{"rounded-br":b()}],"rounded-bl":[{"rounded-bl":b()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._(),"hidden","none"]}],"divide-style":[{divide:[..._(),"hidden","none"]}],"border-color":[{border:n()}],"border-color-x":[{"border-x":n()}],"border-color-y":[{"border-y":n()}],"border-color-s":[{"border-s":n()}],"border-color-e":[{"border-e":n()}],"border-color-bs":[{"border-bs":n()}],"border-color-be":[{"border-be":n()}],"border-color-t":[{"border-t":n()}],"border-color-r":[{"border-r":n()}],"border-color-b":[{"border-b":n()}],"border-color-l":[{"border-l":n()}],"divide-color":[{divide:n()}],"outline-style":[{outline:[..._(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m,s,d]}],"outline-w":[{outline:["",m,K,O]}],"outline-color":[{outline:n()}],shadow:[{shadow:["","none",L,ue,re]}],"shadow-color":[{shadow:n()}],"inset-shadow":[{"inset-shadow":["none",x,ue,re]}],"inset-shadow-color":[{"inset-shadow":n()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:n()}],"ring-offset-w":[{"ring-offset":[m,O]}],"ring-offset-color":[{"ring-offset":n()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":n()}],"text-shadow":[{"text-shadow":["none",C,ue,re]}],"text-shadow-color":[{"text-shadow":n()}],opacity:[{opacity:[m,s,d]}],"mix-blend":[{"mix-blend":[...Pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[m]}],"mask-image-linear-from-pos":[{"mask-linear-from":g()}],"mask-image-linear-to-pos":[{"mask-linear-to":g()}],"mask-image-linear-from-color":[{"mask-linear-from":n()}],"mask-image-linear-to-color":[{"mask-linear-to":n()}],"mask-image-t-from-pos":[{"mask-t-from":g()}],"mask-image-t-to-pos":[{"mask-t-to":g()}],"mask-image-t-from-color":[{"mask-t-from":n()}],"mask-image-t-to-color":[{"mask-t-to":n()}],"mask-image-r-from-pos":[{"mask-r-from":g()}],"mask-image-r-to-pos":[{"mask-r-to":g()}],"mask-image-r-from-color":[{"mask-r-from":n()}],"mask-image-r-to-color":[{"mask-r-to":n()}],"mask-image-b-from-pos":[{"mask-b-from":g()}],"mask-image-b-to-pos":[{"mask-b-to":g()}],"mask-image-b-from-color":[{"mask-b-from":n()}],"mask-image-b-to-color":[{"mask-b-to":n()}],"mask-image-l-from-pos":[{"mask-l-from":g()}],"mask-image-l-to-pos":[{"mask-l-to":g()}],"mask-image-l-from-color":[{"mask-l-from":n()}],"mask-image-l-to-color":[{"mask-l-to":n()}],"mask-image-x-from-pos":[{"mask-x-from":g()}],"mask-image-x-to-pos":[{"mask-x-to":g()}],"mask-image-x-from-color":[{"mask-x-from":n()}],"mask-image-x-to-color":[{"mask-x-to":n()}],"mask-image-y-from-pos":[{"mask-y-from":g()}],"mask-image-y-to-pos":[{"mask-y-to":g()}],"mask-image-y-from-color":[{"mask-y-from":n()}],"mask-image-y-to-color":[{"mask-y-to":n()}],"mask-image-radial":[{"mask-radial":[s,d]}],"mask-image-radial-from-pos":[{"mask-radial-from":g()}],"mask-image-radial-to-pos":[{"mask-radial-to":g()}],"mask-image-radial-from-color":[{"mask-radial-from":n()}],"mask-image-radial-to-color":[{"mask-radial-to":n()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[m]}],"mask-image-conic-from-pos":[{"mask-conic-from":g()}],"mask-image-conic-to-pos":[{"mask-conic-to":g()}],"mask-image-conic-from-color":[{"mask-conic-from":n()}],"mask-image-conic-to-color":[{"mask-conic-to":n()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:we()}],"mask-repeat":[{mask:ke()}],"mask-size":[{mask:be()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",s,d]}],filter:[{filter:["","none",s,d]}],blur:[{blur:Ae()}],brightness:[{brightness:[m,s,d]}],contrast:[{contrast:[m,s,d]}],"drop-shadow":[{"drop-shadow":["","none",h,ue,re]}],"drop-shadow-color":[{"drop-shadow":n()}],grayscale:[{grayscale:["",m,s,d]}],"hue-rotate":[{"hue-rotate":[m,s,d]}],invert:[{invert:["",m,s,d]}],saturate:[{saturate:[m,s,d]}],sepia:[{sepia:["",m,s,d]}],"backdrop-filter":[{"backdrop-filter":["","none",s,d]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[m,s,d]}],"backdrop-contrast":[{"backdrop-contrast":[m,s,d]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m,s,d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m,s,d]}],"backdrop-invert":[{"backdrop-invert":["",m,s,d]}],"backdrop-opacity":[{"backdrop-opacity":[m,s,d]}],"backdrop-saturate":[{"backdrop-saturate":[m,s,d]}],"backdrop-sepia":[{"backdrop-sepia":["",m,s,d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":i()}],"border-spacing-x":[{"border-spacing-x":i()}],"border-spacing-y":[{"border-spacing-y":i()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",s,d]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m,"initial",s,d]}],ease:[{ease:["linear","initial",q,s,d]}],delay:[{delay:[m,s,d]}],animate:[{animate:["none",A,s,d]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,s,d]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:j()}],"scale-x":[{"scale-x":j()}],"scale-y":[{"scale-y":j()}],"scale-z":[{"scale-z":j()}],"scale-3d":["scale-3d"],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[s,d,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$()}],"translate-x":[{"translate-x":$()}],"translate-y":[{"translate-y":$()}],"translate-z":[{"translate-z":$()}],"translate-none":["translate-none"],zoom:[{zoom:[F,s,d]}],accent:[{accent:n()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:n()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",s,d]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":n()}],"scrollbar-track-color":[{"scrollbar-track":n()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":i()}],"scroll-mx":[{"scroll-mx":i()}],"scroll-my":[{"scroll-my":i()}],"scroll-ms":[{"scroll-ms":i()}],"scroll-me":[{"scroll-me":i()}],"scroll-mbs":[{"scroll-mbs":i()}],"scroll-mbe":[{"scroll-mbe":i()}],"scroll-mt":[{"scroll-mt":i()}],"scroll-mr":[{"scroll-mr":i()}],"scroll-mb":[{"scroll-mb":i()}],"scroll-ml":[{"scroll-ml":i()}],"scroll-p":[{"scroll-p":i()}],"scroll-px":[{"scroll-px":i()}],"scroll-py":[{"scroll-py":i()}],"scroll-ps":[{"scroll-ps":i()}],"scroll-pe":[{"scroll-pe":i()}],"scroll-pbs":[{"scroll-pbs":i()}],"scroll-pbe":[{"scroll-pbe":i()}],"scroll-pt":[{"scroll-pt":i()}],"scroll-pr":[{"scroll-pr":i()}],"scroll-pb":[{"scroll-pb":i()}],"scroll-pl":[{"scroll-pl":i()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",s,d]}],fill:[{fill:["none",...n()]}],"stroke-w":[{stroke:[m,K,O,Ne]}],stroke:[{stroke:["none",...n()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var da=Ka(mt);function Z(...e){return da(ae(e))}import{jsx as xt}from"react/jsx-runtime";var Lt=te("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ce({className:e,variant:t="default",size:a="default",asChild:o=!1,...l}){let r=o?le.Root:"button";return xt(r,{"data-slot":"button","data-variant":t,"data-size":a,className:Z(Lt({variant:t,size:a,className:e})),...l})}import{jsx as to}from"react/jsx-runtime";import{jsx as Ct}from"react/jsx-runtime";var It=te("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});function sa({className:e,orientation:t,...a}){return Ct("div",{role:"group","data-slot":"button-group","data-orientation":t,className:Z(It({orientation:t}),e),...a})}import{jsx as se,jsxs as ht}from"react/jsx-runtime";function gt(){return ht(sa,{orientation:"vertical","aria-label":"Media controls",className:"h-fit",children:[se(Ce,{variant:"outline",size:"icon",children:se(X,{})}),se(Ce,{variant:"outline",size:"icon",children:se(N,{})})]})}export{gt as default}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/minus.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/plus.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/886347c400a59c8def4e3cd3ed93f9538797944025e933cd4cd09d6b0df7e4d6 b/b/886347c400a59c8def4e3cd3ed93f9538797944025e933cd4cd09d6b0df7e4d6 new file mode 100644 index 0000000000000000000000000000000000000000..88eb8bde6f2afcde1c3f2c08b11741c6a59addea --- /dev/null +++ b/b/886347c400a59c8def4e3cd3ed93f9538797944025e933cd4cd09d6b0df7e4d6 @@ -0,0 +1,11 @@ +import { LoginForm } from "@/registry/new-york-v4/blocks/login-01/components/login-form" + +export default function Page() { + return ( +
+
+ +
+
+ ) +} diff --git a/b/88d0cc7435bd54f816ff78a1a3103cd22c9b06c5b0e9affb9bc0fc0eb2948623 b/b/88d0cc7435bd54f816ff78a1a3103cd22c9b06c5b0e9affb9bc0fc0eb2948623 new file mode 100644 index 0000000000000000000000000000000000000000..5e2a36507de6c607f8c5639be11d0ea1179a5e2c --- /dev/null +++ b/b/88d0cc7435bd54f816ff78a1a3103cd22c9b06c5b0e9affb9bc0fc0eb2948623 @@ -0,0 +1,94 @@ +"use client" + +import { TrendingUp } from "lucide-react" +import { Area, AreaChart, CartesianGrid, XAxis } from "recharts" + +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + ChartContainer, + ChartTooltip, + ChartTooltipContent, + type ChartConfig, +} from "@/registry/new-york-v4/ui/chart" + +export const description = "A linear area chart" + +const chartData = [ + { month: "January", desktop: 186 }, + { month: "February", desktop: 305 }, + { month: "March", desktop: 237 }, + { month: "April", desktop: 73 }, + { month: "May", desktop: 209 }, + { month: "June", desktop: 214 }, +] + +const chartConfig = { + desktop: { + label: "Desktop", + color: "var(--chart-1)", + }, +} satisfies ChartConfig + +export function ChartAreaLinear() { + return ( + + + Area Chart - Linear + + Showing total visitors for the last 6 months + + + + + + + value.slice(0, 3)} + /> + } + /> + + + + + +
+
+
+ Trending up by 5.2% this month +
+
+ January - June 2024 +
+
+
+
+
+ ) +} diff --git a/b/88ef911c05f0bc35cb467b2f31a6087d099d0e80240916bd498425dc8cd8ea02 b/b/88ef911c05f0bc35cb467b2f31a6087d099d0e80240916bd498425dc8cd8ea02 new file mode 100644 index 0000000000000000000000000000000000000000..6934a733fa30fd4c8e168e183613c310582d348d --- /dev/null +++ b/b/88ef911c05f0bc35cb467b2f31a6087d099d0e80240916bd498425dc8cd8ea02 @@ -0,0 +1,61 @@ +"use client" + +import { toast } from "sonner" + +import { Button } from "@/registry/new-york-v4/ui/button" + +export default function SonnerTypes() { + return ( +
+ + + + + + +
+ ) +} diff --git a/b/88f55c2fe53eca55744b2dfae5b42a385ba614c1c7cb56876f3092fc18ff9341 b/b/88f55c2fe53eca55744b2dfae5b42a385ba614c1c7cb56876f3092fc18ff9341 new file mode 100644 index 0000000000000000000000000000000000000000..6187eaddf5a59306ffc828808c878eb3658c19d8 --- /dev/null +++ b/b/88f55c2fe53eca55744b2dfae5b42a385ba614c1c7cb56876f3092fc18ff9341 @@ -0,0 +1,27 @@ +{ + "id": "org.hologram.ui.daisyui.diff", + "name": "daisyui-diff", + "tier": "component", + "library": "daisyui", + "category": "Data Display", + "upstream": "https://cdn.jsdelivr.net/npm/daisyui@5.5.23/components/diff.css", + "docs": "https://daisyui.com/components/diff/", + "did": "did:holo:sha256:142ab6bda7bf7ea113cafb982220349f76626562d3e790044ba2aff981ff5725", + "import": "holo://sha256:142ab6bda7bf7ea113cafb982220349f76626562d3e790044ba2aff981ff5725", + "integrity": "sha256-FCq2vae/fqETyvuYIiA0n3ZiZWLT55AES6Kv+YH/VyU=", + "kappa": "sha256:142ab6bda7bf7ea113cafb982220349f76626562d3e790044ba2aff981ff5725", + "moduleKappa": "sha256:142ab6bda7bf7ea113cafb982220349f76626562d3e790044ba2aff981ff5725", + "renderExport": null, + "format": "css", + "source": "components/diff.css", + "module": "vendor/daisyui/components/diff.css", + "exports": [], + "bytes": 15471, + "provenance": { + "package": "daisyui", + "version": "5.5.23", + "integrity": "sha512-xuheNUSL4T6ZVtWXoioqcNkjoyGX85QTDz4HTw2aBPfqk4fuMjax5HDo8qCmpV6M1YN8bGvfx5BpYCoDeRlt+A==", + "file": "components/diff.css" + }, + "license": "MIT" +} diff --git a/b/890053b952a10362419e9560d460da4aa46bfd05bc308b929e14a56e72a75ada b/b/890053b952a10362419e9560d460da4aa46bfd05bc308b929e14a56e72a75ada new file mode 100644 index 0000000000000000000000000000000000000000..1f594d1ec586fe96889118f7ccbdc0d3343c89ba --- /dev/null +++ b/b/890053b952a10362419e9560d460da4aa46bfd05bc308b929e14a56e72a75ada @@ -0,0 +1,107 @@ +"use client" + +import { motion, MotionStyle, Transition } from "motion/react" + +import { cn } from "@/lib/utils" + +interface BorderBeamProps { + /** + * The size of the border beam. + */ + size?: number + /** + * The duration of the border beam. + */ + duration?: number + /** + * The delay of the border beam. + */ + delay?: number + /** + * The color of the border beam from. + */ + colorFrom?: string + /** + * The color of the border beam to. + */ + colorTo?: string + /** + * The motion transition of the border beam. + */ + transition?: Transition + /** + * The class name of the border beam. + */ + className?: string + /** + * The style of the border beam. + */ + style?: React.CSSProperties + /** + * Whether to reverse the animation direction. + */ + reverse?: boolean + /** + * The initial offset position (0-100). + */ + initialOffset?: number + /** + * The border width of the beam. + */ + borderWidth?: number +} + +export const BorderBeam = ({ + className, + size = 50, + delay = 0, + duration = 6, + colorFrom = "#ffaa40", + colorTo = "#9c40ff", + transition, + style, + reverse = false, + initialOffset = 0, + borderWidth = 1, +}: BorderBeamProps) => { + return ( +
+ +
+ ) +} diff --git a/b/891f41569de79617d03094e8efa676f3b1fde837375dff38dde37c53fa4b9760 b/b/891f41569de79617d03094e8efa676f3b1fde837375dff38dde37c53fa4b9760 new file mode 100644 index 0000000000000000000000000000000000000000..b0074a2a21e0a6911bd46f097236638dde56bdad --- /dev/null +++ b/b/891f41569de79617d03094e8efa676f3b1fde837375dff38dde37c53fa4b9760 @@ -0,0 +1,59 @@ +webgpu-bench (init) + +

WebGPU decode-bandwidth benchmark — the ceiling for tok/s = bandwidth ÷ active-bytes/token

+
booting…
+ diff --git a/b/892438e4621b0ccb4e75778b0903e94b01c70025bf4fd5bb9c30d0309c3d143a b/b/892438e4621b0ccb4e75778b0903e94b01c70025bf4fd5bb9c30d0309c3d143a new file mode 100644 index 0000000000000000000000000000000000000000..5862cd9051b02755ec08fea17f2953363f6c9df2 --- /dev/null +++ b/b/892438e4621b0ccb4e75778b0903e94b01c70025bf4fd5bb9c30d0309c3d143a @@ -0,0 +1,91 @@ +"use client";var Tl=Object.defineProperty;var Go=(e,t)=>{for(var a in t)Tl(e,a,{get:t[a],enumerable:!0})};import*as Dl from"react";function zo(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Vo=_t,Xo=(e,t)=>a=>{var o;if(t?.variants==null)return Vo(e,a?.class,a?.className);let{variants:r,defaultVariants:s}=t,n=Object.keys(r).map(u=>{let i=a?.[u],d=s?.[u];if(i===null)return null;let c=Wo(i)||Wo(d);return r[u][c]}),l=a&&Object.entries(a).reduce((u,i)=>{let[d,c]=i;return c===void 0||(u[d]=c),u},{}),f=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,i)=>{let{class:d,className:c,...p}=i;return Object.entries(p).every(h=>{let[m,x]=h;return Array.isArray(x)?x.includes({...s,...l}[m]):{...s,...l}[m]===x})?[...u,d,c]:u},[]);return Vo(e,n,f,a?.class,a?.className)};import*as Jo from"react";import*as Qo from"react-dom";var Ht={};Go(Ht,{Root:()=>Fl,Slot:()=>Fl,Slottable:()=>Ol,createSlot:()=>Oe,createSlottable:()=>Zo});import*as ae from"react";import*as jo from"react";function Ko(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function It(...e){return t=>{let a=!1,o=e.map(r=>{let s=Ko(r,t);return!a&&typeof s=="function"&&(a=!0),s});if(a)return()=>{for(let r=0;r{let{children:r,...s}=a,n=null,l=!1,f=[];$o(r)&&typeof Nt=="function"&&(r=Nt(r._payload)),ae.Children.forEach(r,c=>{if(Ul(c)){l=!0;let p=c,h="child"in p.props?p.props.child:p.props.children;$o(h)&&typeof Nt=="function"&&(h=Nt(h._payload)),n=Bl(p,h),f.push(n?.props?.children)}else f.push(c)}),n?n=ae.cloneElement(n,void 0,f):!l&&ae.Children.count(r)===1&&ae.isValidElement(r)&&(n=r);let u=n?ql(n):void 0,i=j(o,u);if(!n){if(r||r===0)throw new Error(l?Gl(e):Hl(e));return r}let d=El(s,n.props??{});return n.type!==ae.Fragment&&(d.ref=o?i:u),ae.cloneElement(n,d)});return t.displayName=`${e}.Slot`,t}var Fl=Oe("Slot"),Yo=Symbol.for("radix.slottable");function Zo(e){let t=a=>"child"in a?a.children(a.child):a.children;return t.displayName=`${e}.Slottable`,t.__radixId=Yo,t}var Ol=Zo("Slottable"),Bl=(e,t)=>{if("child"in e.props){let a=e.props.child;return ae.isValidElement(a)?ae.cloneElement(a,void 0,e.props.children(a.props.children)):null}return ae.isValidElement(t)?t:null};function El(e,t){let a={...t};for(let o in t){let r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?a[o]=(...l)=>{let f=s(...l);return r(...l),f}:r&&(a[o]=r):o==="style"?a[o]={...r,...s}:o==="className"&&(a[o]=[r,s].filter(Boolean).join(" "))}return{...e,...a}}function ql(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function Ul(e){return ae.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yo}var _l=Symbol.for("react.lazy");function $o(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_l&&"_payload"in e&&Nl(e._payload)}function Nl(e){return typeof e=="object"&&e!==null&&"then"in e}var Hl=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Gl=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Nt=ae[" use ".trim().toString()];import{jsx as zl}from"react/jsx-runtime";var Wl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],V=Wl.reduce((e,t)=>{let a=Oe(`Primitive.${t}`),o=Jo.forwardRef((r,s)=>{let{asChild:n,...l}=r,f=n?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),zl(f,{...l,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Gt(e,t){e&&Qo.flushSync(()=>e.dispatchEvent(t))}import*as Be from"react";import{jsx as Vl}from"react/jsx-runtime";function ye(e,t=[]){let a=[];function o(s,n){let l=Be.createContext(n);l.displayName=s+"Context";let f=a.length;a=[...a,n];let u=d=>{let{scope:c,children:p,...h}=d,m=c?.[e]?.[f]||l,x=Be.useMemo(()=>h,Object.values(h));return Vl(m.Provider,{value:x,children:p})};u.displayName=s+"Provider";function i(d,c){let p=c?.[e]?.[f]||l,h=Be.useContext(p);if(h)return h;if(n!==void 0)return n;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,i]}let r=()=>{let s=a.map(n=>Be.createContext(n));return function(l){let f=l?.[e]||s;return Be.useMemo(()=>({[`__scope${e}`]:{...l,[e]:f}}),[l,f])}};return r.scopeName=e,[o,Xl(r,...t)]}function Xl(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){let n=o.reduce((l,{useScope:f,scopeName:u})=>{let d=f(s)[`__scope${u}`];return{...l,...d}},{});return Be.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return a.scopeName=t.scopeName,a}import*as we from"react";import{jsx as Ra}from"react/jsx-runtime";import*as Wt from"react";import{jsx as oc}from"react/jsx-runtime";function zt(e){let t=e+"CollectionProvider",[a,o]=ye(t),[r,s]=a(t,{collectionRef:{current:null},itemMap:new Map}),n=m=>{let{scope:x,children:g}=m,I=we.useRef(null),C=we.useRef(new Map).current;return Ra(r,{scope:x,itemMap:C,collectionRef:I,children:g})};n.displayName=t;let l=e+"CollectionSlot",f=Oe(l),u=we.forwardRef((m,x)=>{let{scope:g,children:I}=m,C=s(l,g),w=j(x,C.collectionRef);return Ra(f,{ref:w,children:I})});u.displayName=l;let i=e+"CollectionItemSlot",d="data-radix-collection-item",c=Oe(i),p=we.forwardRef((m,x)=>{let{scope:g,children:I,...C}=m,w=we.useRef(null),b=j(x,w),y=s(i,g);return we.useEffect(()=>(y.itemMap.set(w,{ref:w,...C}),()=>void y.itemMap.delete(w))),Ra(c,{[d]:"",ref:b,children:I})});p.displayName=i;function h(m){let x=s(e+"CollectionConsumer",m);return we.useCallback(()=>{let I=x.collectionRef.current;if(!I)return[];let C=Array.from(I.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((y,S)=>C.indexOf(y.ref.current)-C.indexOf(S.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:n,Slot:u,ItemSlot:p},h,o]}var sc=!!(typeof window<"u"&&window.document&&window.document.createElement);function B(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),a===!1||!r.defaultPrevented)return t?.(r)}}import*as pe from"react";import*as er from"react";var ue=globalThis?.document?er.useLayoutEffect:()=>{};import*as Vt from"react";var Kl=pe[" useInsertionEffect ".trim().toString()]||ue;function Ct({prop:e,defaultProp:t,onChange:a=()=>{},caller:o}){let[r,s,n]=jl({defaultProp:t,onChange:a}),l=e!==void 0,f=l?e:r;{let i=pe.useRef(e!==void 0);pe.useEffect(()=>{let d=i.current;d!==l&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),i.current=l},[l,o])}let u=pe.useCallback(i=>{if(l){let d=$l(i)?i(e):i;d!==e&&n.current?.(d)}else s(i)},[l,e,s,n]);return[f,u]}function jl({defaultProp:e,onChange:t}){let[a,o]=pe.useState(e),r=pe.useRef(a),s=pe.useRef(t);return Kl(()=>{s.current=t},[t]),pe.useEffect(()=>{r.current!==a&&(s.current?.(a),r.current=a)},[a,r]),[a,o,s]}function $l(e){return typeof e=="function"}var dc=Symbol("RADIX:SYNC_STATE");import*as re from"react";import*as ar from"react";function Yl(e,t){return ar.useReducer((a,o)=>t[a][o]??a,e)}var dt=e=>{let{present:t,children:a}=e,o=Zl(t),r=typeof a=="function"?a({present:o.isPresent}):re.Children.only(a),s=Jl(o.ref,Ql(r));return typeof a=="function"||o.isPresent?re.cloneElement(r,{ref:s}):null};dt.displayName="Presence";function Zl(e){let[t,a]=re.useState(),o=re.useRef(null),r=re.useRef(e),s=re.useRef("none"),n=e?"mounted":"unmounted",[l,f]=Yl(n,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return re.useEffect(()=>{let u=Xt(o.current);s.current=l==="mounted"?u:"none"},[l]),ue(()=>{let u=o.current,i=r.current;if(i!==e){let c=s.current,p=Xt(u);e?f("MOUNT"):p==="none"||u?.display==="none"?f("UNMOUNT"):f(i&&c!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,f]),ue(()=>{if(t){let u,i=t.ownerDocument.defaultView??window,d=p=>{let m=Xt(o.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(f("ANIMATION_END"),!r.current)){let x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=i.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},c=p=>{p.target===t&&(s.current=Xt(o.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{i.clearTimeout(u),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:re.useCallback(u=>{o.current=u?getComputedStyle(u):null,a(u)},[])}}function tr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Jl(...e){let t=re.useRef(e);return t.current=e,re.useCallback(a=>{let o=t.current,r=!1,s=o.map(n=>{let l=tr(n,a);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let n=0;n{}),tu=0;function _e(e){let[t,a]=Pa.useState(eu());return ue(()=>{e||a(o=>o??String(tu++))},[e]),e||(t?`radix-${t}`:"")}import*as Kt from"react";import{jsx as xc}from"react/jsx-runtime";var au=Kt.createContext(void 0);function jt(e){let t=Kt.useContext(au);return e||t||"ltr"}import*as X from"react";import*as it from"react";function se(e){let t=it.useRef(e);return it.useEffect(()=>{t.current=e}),it.useMemo(()=>(...a)=>t.current?.(...a),[])}import*as or from"react";function rr(e,t=globalThis?.document){let a=se(e);or.useEffect(()=>{let o=r=>{r.key==="Escape"&&a(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[a,t])}import{jsx as lr}from"react/jsx-runtime";var ou="DismissableLayer",ka="dismissableLayer.update",ru="dismissableLayer.pointerDownOutside",su="dismissableLayer.focusOutside",sr,ur=X.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Aa=X.forwardRef((e,t)=>{let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:n,onDismiss:l,...f}=e,u=X.useContext(ur),[i,d]=X.useState(null),c=i?.ownerDocument??globalThis?.document,[,p]=X.useState({}),h=j(t,S=>d(S)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(x),I=i?m.indexOf(i):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,w=I>=g,b=uu(S=>{let L=S.target,F=[...u.branches].some(E=>E.contains(L));!w||F||(r?.(S),n?.(S),S.defaultPrevented||l?.())},c),y=du(S=>{let L=S.target;[...u.branches].some(E=>E.contains(L))||(s?.(S),n?.(S),S.defaultPrevented||l?.())},c);return rr(S=>{I===u.layers.size-1&&(o?.(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},c),X.useEffect(()=>{if(i)return a&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(sr=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(i)),u.layers.add(i),nr(),()=>{a&&(u.layersWithOutsidePointerEventsDisabled.delete(i),u.layersWithOutsidePointerEventsDisabled.size===0&&(c.body.style.pointerEvents=sr))}},[i,c,a,u]),X.useEffect(()=>()=>{i&&(u.layers.delete(i),u.layersWithOutsidePointerEventsDisabled.delete(i),nr())},[i,u]),X.useEffect(()=>{let S=()=>p({});return document.addEventListener(ka,S),()=>document.removeEventListener(ka,S)},[]),lr(V.div,{...f,ref:h,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,y.onFocusCapture),onBlurCapture:B(e.onBlurCapture,y.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,b.onPointerDownCapture)})});Aa.displayName=ou;var nu="DismissableLayerBranch",lu=X.forwardRef((e,t)=>{let a=X.useContext(ur),o=X.useRef(null),r=j(t,o);return X.useEffect(()=>{let s=o.current;if(s)return a.branches.add(s),()=>{a.branches.delete(s)}},[a.branches]),lr(V.div,{...e,ref:r})});lu.displayName=nu;function uu(e,t=globalThis?.document){let a=se(e),o=X.useRef(!1),r=X.useRef(()=>{});return X.useEffect(()=>{let s=l=>{if(l.target&&!o.current){let u=function(){dr(ru,a,i,{discrete:!0})};var f=u;let i={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},n=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,a]),{onPointerDownCapture:()=>o.current=!0}}function du(e,t=globalThis?.document){let a=se(e),o=X.useRef(!1);return X.useEffect(()=>{let r=s=>{s.target&&!o.current&&dr(su,a,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,a]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function nr(){let e=new CustomEvent(ka);document.dispatchEvent(e)}function dr(e,t,a,{discrete:o}){let r=a.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&r.addEventListener(e,t,{once:!0}),o?Gt(r,s):r.dispatchEvent(s)}import*as me from"react";import{jsx as iu}from"react/jsx-runtime";var Ma="focusScope.autoFocusOnMount",Da="focusScope.autoFocusOnUnmount",ir={bubbles:!1,cancelable:!0},fu="FocusScope",Ta=me.forwardRef((e,t)=>{let{loop:a=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...n}=e,[l,f]=me.useState(null),u=se(r),i=se(s),d=me.useRef(null),c=j(t,m=>f(m)),p=me.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;me.useEffect(()=>{if(o){let I=function(y){if(p.paused||!l)return;let S=y.target;l.contains(S)?d.current=S:Ne(d.current,{select:!0})},C=function(y){if(p.paused||!l)return;let S=y.relatedTarget;S!==null&&(l.contains(S)||Ne(d.current,{select:!0}))},w=function(y){if(document.activeElement===document.body)for(let L of y)L.removedNodes.length>0&&Ne(l)};var m=I,x=C,g=w;document.addEventListener("focusin",I),document.addEventListener("focusout",C);let b=new MutationObserver(w);return l&&b.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",I),document.removeEventListener("focusout",C),b.disconnect()}}},[o,l,p.paused]),me.useEffect(()=>{if(l){cr.add(p);let m=document.activeElement;if(!l.contains(m)){let g=new CustomEvent(Ma,ir);l.addEventListener(Ma,u),l.dispatchEvent(g),g.defaultPrevented||(cu(gu(mr(l)),{select:!0}),document.activeElement===m&&Ne(l))}return()=>{l.removeEventListener(Ma,u),setTimeout(()=>{let g=new CustomEvent(Da,ir);l.addEventListener(Da,i),l.dispatchEvent(g),g.defaultPrevented||Ne(m??document.body,{select:!0}),l.removeEventListener(Da,i),cr.remove(p)},0)}}},[l,u,i,p]);let h=me.useCallback(m=>{if(!a&&!o||p.paused)return;let x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,g=document.activeElement;if(x&&g){let I=m.currentTarget,[C,w]=pu(I);C&&w?!m.shiftKey&&g===w?(m.preventDefault(),a&&Ne(C,{select:!0})):m.shiftKey&&g===C&&(m.preventDefault(),a&&Ne(w,{select:!0})):g===I&&m.preventDefault()}},[a,o,p.paused]);return iu(V.div,{tabIndex:-1,...n,ref:c,onKeyDown:h})});Ta.displayName=fu;function cu(e,{select:t=!1}={}){let a=document.activeElement;for(let o of e)if(Ne(o,{select:t}),document.activeElement!==a)return}function pu(e){let t=mr(e),a=fr(t,e),o=fr(t.reverse(),e);return[a,o]}function mr(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function fr(e,t){for(let a of e)if(!mu(a,{upTo:t}))return a}function mu(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function hu(e){return e instanceof HTMLInputElement&&"select"in e}function Ne(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&hu(e)&&t&&e.select()}}var cr=xu();function xu(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=pr(e,t),e.unshift(t)},remove(t){e=pr(e,t),e[0]?.resume()}}}function pr(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function gu(e){return e.filter(t=>t.tagName!=="A")}import*as $t from"react";import*as hr from"react-dom";import{jsx as Lu}from"react/jsx-runtime";var Iu="Portal",Fa=$t.forwardRef((e,t)=>{let{container:a,...o}=e,[r,s]=$t.useState(!1);ue(()=>s(!0),[]);let n=a||r&&globalThis?.document?.body;return n?hr.createPortal(Lu(V.div,{...o,ref:t}),n):null});Fa.displayName=Iu;import*as gr from"react";var Yt=0,ft=null;function Lr(){gr.useEffect(()=>{ft||(ft={start:xr(),end:xr()});let{start:e,end:t}=ft;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Yt++,()=>{Yt===1&&(ft?.start.remove(),ft?.end.remove(),ft=null),Yt=Math.max(0,Yt-1)}},[])}function xr(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ie=function(){return ie=Object.assign||function(t){for(var a,o=1,r=arguments.length;o"u")return Pu;var t=ku(e),a=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-a+t[2]-t[0])}};var Au=St(),ct="data-scroll-locked",Mu=function(e,t,a,o){var r=e.left,s=e.top,n=e.right,l=e.gap;return a===void 0&&(a="margin"),` + .`.concat(Oa,` { + overflow: hidden `).concat(o,`; + padding-right: `).concat(l,"px ").concat(o,`; + } + body[`).concat(ct,`] { + overflow: hidden `).concat(o,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(o,";"),a==="margin"&&` + padding-left: `.concat(r,`px; + padding-top: `).concat(s,`px; + padding-right: `).concat(n,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(l,"px ").concat(o,`; + `),a==="padding"&&"padding-right: ".concat(l,"px ").concat(o,";")].filter(Boolean).join(""),` + } + + .`).concat(We,` { + right: `).concat(l,"px ").concat(o,`; + } + + .`).concat(Ve,` { + margin-right: `).concat(l,"px ").concat(o,`; + } + + .`).concat(We," .").concat(We,` { + right: 0 `).concat(o,`; + } + + .`).concat(Ve," .").concat(Ve,` { + margin-right: 0 `).concat(o,`; + } + + body[`).concat(ct,`] { + `).concat(Ba,": ").concat(l,`px; + } +`)},Pr=function(){var e=parseInt(document.body.getAttribute(ct)||"0",10);return isFinite(e)?e:0},Du=function(){pt.useEffect(function(){return document.body.setAttribute(ct,(Pr()+1).toString()),function(){var e=Pr()-1;e<=0?document.body.removeAttribute(ct):document.body.setAttribute(ct,e.toString())}},[])},Wa=function(e){var t=e.noRelative,a=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Du();var s=pt.useMemo(function(){return za(r)},[r]);return pt.createElement(Au,{styles:Mu(s,!t,r,a?"":"!important")})};var Va=!1;if(typeof window<"u")try{vt=Object.defineProperty({},"passive",{get:function(){return Va=!0,!0}}),window.addEventListener("test",vt,vt),window.removeEventListener("test",vt,vt)}catch{Va=!1}var vt,Xe=Va?{passive:!1}:!1;var Tu=function(e){return e.tagName==="TEXTAREA"},kr=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!Tu(e)&&a[t]==="visible")},Fu=function(e){return kr(e,"overflowY")},Ou=function(e){return kr(e,"overflowX")},Xa=function(e,t){var a=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Ar(e,o);if(r){var s=Mr(e,o),n=s[1],l=s[2];if(n>l)return!0}o=o.parentNode}while(o&&o!==a.body);return!1},Bu=function(e){var t=e.scrollTop,a=e.scrollHeight,o=e.clientHeight;return[t,a,o]},Eu=function(e){var t=e.scrollLeft,a=e.scrollWidth,o=e.clientWidth;return[t,a,o]},Ar=function(e,t){return e==="v"?Fu(t):Ou(t)},Mr=function(e,t){return e==="v"?Bu(t):Eu(t)},qu=function(e,t){return e==="h"&&t==="rtl"?-1:1},Dr=function(e,t,a,o,r){var s=qu(e,window.getComputedStyle(t).direction),n=s*o,l=a.target,f=t.contains(l),u=!1,i=n>0,d=0,c=0;do{if(!l)break;var p=Mr(e,l),h=p[0],m=p[1],x=p[2],g=m-x-s*h;(h||g)&&Ar(e,l)&&(d+=g,c+=h);var I=l.parentNode;l=I&&I.nodeType===Node.DOCUMENT_FRAGMENT_NODE?I.host:I}while(!f&&l!==document.body||f&&(t.contains(l)||t===l));return(i&&(r&&Math.abs(d)<1||!r&&n>d)||!i&&(r&&Math.abs(c)<1||!r&&-n>c))&&(u=!0),u};var ta=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Tr=function(e){return[e.deltaX,e.deltaY]},Fr=function(e){return e&&"current"in e?e.current:e},Uu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_u=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},Nu=0,mt=[];function Or(e){var t=G.useRef([]),a=G.useRef([0,0]),o=G.useRef(),r=G.useState(Nu++)[0],s=G.useState(St)[0],n=G.useRef(e);G.useEffect(function(){n.current=e},[e]),G.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var m=Ir([e.lockRef.current],(e.shards||[]).map(Fr),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=G.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!n.current.allowPinchZoom;var g=ta(m),I=a.current,C="deltaX"in m?m.deltaX:I[0]-g[0],w="deltaY"in m?m.deltaY:I[1]-g[1],b,y=m.target,S=Math.abs(C)>Math.abs(w)?"h":"v";if("touches"in m&&S==="h"&&y.type==="range")return!1;var L=window.getSelection(),F=L&&L.anchorNode,E=F?F===y||F.contains(y):!1;if(E)return!1;var q=Xa(S,y);if(!q)return!0;if(q?b=S:(b=S==="v"?"h":"v",q=Xa(S,y)),!q)return!1;if(!o.current&&"changedTouches"in m&&(C||w)&&(o.current=b),!b)return!0;var _=o.current||b;return Dr(_,x,m,_==="h"?C:w,!0)},[]),f=G.useCallback(function(m){var x=m;if(!(!mt.length||mt[mt.length-1]!==s)){var g="deltaY"in x?Tr(x):ta(x),I=t.current.filter(function(b){return b.name===x.type&&(b.target===x.target||x.target===b.shadowParent)&&Uu(b.delta,g)})[0];if(I&&I.should){x.cancelable&&x.preventDefault();return}if(!I){var C=(n.current.shards||[]).map(Fr).filter(Boolean).filter(function(b){return b.contains(x.target)}),w=C.length>0?l(x,C[0]):!n.current.noIsolation;w&&x.cancelable&&x.preventDefault()}}},[]),u=G.useCallback(function(m,x,g,I){var C={name:m,delta:x,target:g,should:I,shadowParent:Hu(g)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(w){return w!==C})},1)},[]),i=G.useCallback(function(m){a.current=ta(m),o.current=void 0},[]),d=G.useCallback(function(m){u(m.type,Tr(m),m.target,l(m,e.lockRef.current))},[]),c=G.useCallback(function(m){u(m.type,ta(m),m.target,l(m,e.lockRef.current))},[]);G.useEffect(function(){return mt.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:c}),document.addEventListener("wheel",f,Xe),document.addEventListener("touchmove",f,Xe),document.addEventListener("touchstart",i,Xe),function(){mt=mt.filter(function(m){return m!==s}),document.removeEventListener("wheel",f,Xe),document.removeEventListener("touchmove",f,Xe),document.removeEventListener("touchstart",i,Xe)}},[]);var p=e.removeScrollBar,h=e.inert;return G.createElement(G.Fragment,null,h?G.createElement(s,{styles:_u(r)}):null,p?G.createElement(Wa,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Hu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Br=Ua(ea,Or);var Er=aa.forwardRef(function(e,t){return aa.createElement(wt,ie({},e,{ref:t,sideCar:Br}))});Er.classNames=wt.classNames;var Ka=Er;var Gu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ht=new WeakMap,oa=new WeakMap,ra={},ja=0,qr=function(e){return e&&(e.host||qr(e.parentNode))},zu=function(e,t){return t.map(function(a){if(e.contains(a))return a;var o=qr(a);return o&&e.contains(o)?o:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},Wu=function(e,t,a,o){var r=zu(t,Array.isArray(e)?e:[e]);ra[a]||(ra[a]=new WeakMap);var s=ra[a],n=[],l=new Set,f=new Set(r),u=function(d){!d||l.has(d)||(l.add(d),u(d.parentNode))};r.forEach(u);var i=function(d){!d||f.has(d)||Array.prototype.forEach.call(d.children,function(c){if(l.has(c))i(c);else try{var p=c.getAttribute(o),h=p!==null&&p!=="false",m=(ht.get(c)||0)+1,x=(s.get(c)||0)+1;ht.set(c,m),s.set(c,x),n.push(c),m===1&&h&&oa.set(c,!0),x===1&&c.setAttribute(a,"true"),h||c.setAttribute(o,"true")}catch(g){console.error("aria-hidden: cannot operate on ",c,g)}})};return i(t),l.clear(),ja++,function(){n.forEach(function(d){var c=ht.get(d)-1,p=s.get(d)-1;ht.set(d,c),s.set(d,p),c||(oa.has(d)||d.removeAttribute(o),oa.delete(d)),p||d.removeAttribute(a)}),ja--,ja||(ht=new WeakMap,ht=new WeakMap,oa=new WeakMap,ra={})}},Ur=function(e,t,a){a===void 0&&(a="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=t||Gu(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),Wu(o,r,a,"aria-hidden")):function(){return null}};import*as _r from"react";function Nr(e){let[t,a]=_r.useState(void 0);return ue(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let s=r[0],n,l;if("borderBoxSize"in s){let f=s.borderBoxSize,u=Array.isArray(f)?f[0]:f;n=u.inlineSize,l=u.blockSize}else n=e.offsetWidth,l=e.offsetHeight;a({width:n,height:l})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else a(void 0)},[e]),t}import*as A from"react";import*as oe from"react";var zr=["top","right","bottom","left"];var Re=Math.min,de=Math.max,yt=Math.round,Rt=Math.floor,Se=e=>({x:e,y:e}),Vu={left:"right",right:"left",bottom:"top",top:"bottom"};function na(e,t,a){return de(e,Re(t,a))}function Pe(e,t){return typeof e=="function"?e(t):e}function ke(e){return e.split("-")[0]}function Ke(e){return e.split("-")[1]}function la(e){return e==="x"?"y":"x"}function ua(e){return e==="y"?"height":"width"}function ve(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function da(e){return la(ve(e))}function Wr(e,t,a){a===void 0&&(a=!1);let o=Ke(e),r=da(e),s=ua(r),n=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(n=bt(n)),[n,bt(n)]}function Vr(e){let t=bt(e);return[sa(e),t,sa(t)]}function sa(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Hr=["left","right"],Gr=["right","left"],Xu=["top","bottom"],Ku=["bottom","top"];function ju(e,t,a){switch(e){case"top":case"bottom":return a?t?Gr:Hr:t?Hr:Gr;case"left":case"right":return t?Xu:Ku;default:return[]}}function Xr(e,t,a,o){let r=Ke(e),s=ju(ke(e),a==="start",o);return r&&(s=s.map(n=>n+"-"+r),t&&(s=s.concat(s.map(sa)))),s}function bt(e){let t=ke(e);return Vu[t]+e.slice(t.length)}function $u(e){return{top:0,right:0,bottom:0,left:0,...e}}function $a(e){return typeof e!="number"?$u(e):{top:e,right:e,bottom:e,left:e}}function je(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function Kr(e,t,a){let{reference:o,floating:r}=e,s=ve(t),n=da(t),l=ua(n),f=ke(t),u=s==="y",i=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,c=o[l]/2-r[l]/2,p;switch(f){case"top":p={x:i,y:o.y-r.height};break;case"bottom":p={x:i,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(Ke(t)){case"start":p[n]-=c*(a&&u?-1:1);break;case"end":p[n]+=c*(a&&u?-1:1);break}return p}async function Yr(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:s,rects:n,elements:l,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:i="viewport",elementContext:d="floating",altBoundary:c=!1,padding:p=0}=Pe(t,e),h=$a(p),x=l[c?d==="floating"?"reference":"floating":d],g=je(await s.getClippingRect({element:(a=await(s.isElement==null?void 0:s.isElement(x)))==null||a?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:i,strategy:f})),I=d==="floating"?{x:o,y:r,width:n.floating.width,height:n.floating.height}:n.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),w=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},b=je(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:I,offsetParent:C,strategy:f}):I);return{top:(g.top-b.top+h.top)/w.y,bottom:(b.bottom-g.bottom+h.bottom)/w.y,left:(g.left-b.left+h.left)/w.x,right:(b.right-g.right+h.right)/w.x}}var Yu=50,Zr=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:n}=a,l=n.detectOverflow?n:{...n,detectOverflow:Yr},f=await(n.isRTL==null?void 0:n.isRTL(t)),u=await n.getElementRects({reference:e,floating:t,strategy:r}),{x:i,y:d}=Kr(u,o,f),c=o,p=0,h={};for(let m=0;m({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:s,platform:n,elements:l,middlewareData:f}=t,{element:u,padding:i=0}=Pe(e,t)||{};if(u==null)return{};let d=$a(i),c={x:a,y:o},p=da(r),h=ua(p),m=await n.getDimensions(u),x=p==="y",g=x?"top":"left",I=x?"bottom":"right",C=x?"clientHeight":"clientWidth",w=s.reference[h]+s.reference[p]-c[p]-s.floating[h],b=c[p]-s.reference[p],y=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u)),S=y?y[C]:0;(!S||!await(n.isElement==null?void 0:n.isElement(y)))&&(S=l.floating[C]||s.floating[h]);let L=w/2-b/2,F=S/2-m[h]/2-1,E=Re(d[g],F),q=Re(d[I],F),_=E,H=S-m[h]-q,U=S/2-m[h]/2+L,z=na(_,U,H),T=!f.arrow&&Ke(r)!=null&&U!==z&&s.reference[h]/2-(U<_?E:q)-m[h]/2<0,N=T?U<_?U-_:U-H:0;return{[p]:c[p]+N,data:{[p]:z,centerOffset:U-z-N,...T&&{alignmentOffset:N}},reset:T}}});var Qr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:r,middlewareData:s,rects:n,initialPlacement:l,platform:f,elements:u}=t,{mainAxis:i=!0,crossAxis:d=!0,fallbackPlacements:c,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...x}=Pe(e,t);if((a=s.arrow)!=null&&a.alignmentOffset)return{};let g=ke(r),I=ve(l),C=ke(l)===l,w=await(f.isRTL==null?void 0:f.isRTL(u.floating)),b=c||(C||!m?[bt(l)]:Vr(l)),y=h!=="none";!c&&y&&b.push(...Xr(l,m,h,w));let S=[l,...b],L=await f.detectOverflow(t,x),F=[],E=((o=s.flip)==null?void 0:o.overflows)||[];if(i&&F.push(L[g]),d){let U=Wr(r,n,w);F.push(L[U[0]],L[U[1]])}if(E=[...E,{placement:r,overflows:F}],!F.every(U=>U<=0)){var q,_;let U=(((q=s.flip)==null?void 0:q.index)||0)+1,z=S[U];if(z&&(!(d==="alignment"?I!==ve(z):!1)||E.every(M=>ve(M.placement)===I?M.overflows[0]>0:!0)))return{data:{index:U,overflows:E},reset:{placement:z}};let T=(_=E.filter(N=>N.overflows[0]<=0).sort((N,M)=>N.overflows[1]-M.overflows[1])[0])==null?void 0:_.placement;if(!T)switch(p){case"bestFit":{var H;let N=(H=E.filter(M=>{if(y){let k=ve(M.placement);return k===I||k==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(k=>k>0).reduce((k,v)=>k+v,0)]).sort((M,k)=>M[1]-k[1])[0])==null?void 0:H[0];N&&(T=N);break}case"initialPlacement":T=l;break}if(r!==T)return{reset:{placement:T}}}return{}}}};function jr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $r(e){return zr.some(t=>e[t]>=0)}var es=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:o}=t,{strategy:r="referenceHidden",...s}=Pe(e,t);switch(r){case"referenceHidden":{let n=await o.detectOverflow(t,{...s,elementContext:"reference"}),l=jr(n,a.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:$r(l)}}}case"escaped":{let n=await o.detectOverflow(t,{...s,altBoundary:!0}),l=jr(n,a.floating);return{data:{escapedOffsets:l,escaped:$r(l)}}}default:return{}}}}};var ts=new Set(["left","top"]);async function Zu(e,t){let{placement:a,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),n=ke(a),l=Ke(a),f=ve(a)==="y",u=ts.has(n)?-1:1,i=s&&f?-1:1,d=Pe(t,e),{mainAxis:c,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),f?{x:p*i,y:c*u}:{x:c*u,y:p*i}}var as=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:s,placement:n,middlewareData:l}=t,f=await Zu(t,e);return n===((a=l.offset)==null?void 0:a.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+f.x,y:s+f.y,data:{...f,placement:n}}}}},os=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r,platform:s}=t,{mainAxis:n=!0,crossAxis:l=!1,limiter:f={fn:g=>{let{x:I,y:C}=g;return{x:I,y:C}}},...u}=Pe(e,t),i={x:a,y:o},d=await s.detectOverflow(t,u),c=ve(ke(r)),p=la(c),h=i[p],m=i[c];if(n){let g=p==="y"?"top":"left",I=p==="y"?"bottom":"right",C=h+d[g],w=h-d[I];h=na(C,h,w)}if(l){let g=c==="y"?"top":"left",I=c==="y"?"bottom":"right",C=m+d[g],w=m-d[I];m=na(C,m,w)}let x=f.fn({...t,[p]:h,[c]:m});return{...x,data:{x:x.x-a,y:x.y-o,enabled:{[p]:n,[c]:l}}}}}},rs=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:a,y:o,placement:r,rects:s,middlewareData:n}=t,{offset:l=0,mainAxis:f=!0,crossAxis:u=!0}=Pe(e,t),i={x:a,y:o},d=ve(r),c=la(d),p=i[c],h=i[d],m=Pe(l,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(f){let C=c==="y"?"height":"width",w=s.reference[c]-s.floating[C]+x.mainAxis,b=s.reference[c]+s.reference[C]-x.mainAxis;pb&&(p=b)}if(u){var g,I;let C=c==="y"?"width":"height",w=ts.has(ke(r)),b=s.reference[d]-s.floating[C]+(w&&((g=n.offset)==null?void 0:g[d])||0)+(w?0:x.crossAxis),y=s.reference[d]+s.reference[C]+(w?0:((I=n.offset)==null?void 0:I[d])||0)-(w?x.crossAxis:0);hy&&(h=y)}return{[c]:p,[d]:h}}}},ss=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,o;let{placement:r,rects:s,platform:n,elements:l}=t,{apply:f=()=>{},...u}=Pe(e,t),i=await n.detectOverflow(t,u),d=ke(r),c=Ke(r),p=ve(r)==="y",{width:h,height:m}=s.floating,x,g;d==="top"||d==="bottom"?(x=d,g=c===(await(n.isRTL==null?void 0:n.isRTL(l.floating))?"start":"end")?"left":"right"):(g=d,x=c==="end"?"top":"bottom");let I=m-i.top-i.bottom,C=h-i.left-i.right,w=Re(m-i[x],I),b=Re(h-i[g],C),y=!t.middlewareData.shift,S=w,L=b;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(L=C),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=I),y&&!c){let E=de(i.left,0),q=de(i.right,0),_=de(i.top,0),H=de(i.bottom,0);p?L=h-2*(E!==0||q!==0?E+q:de(i.left,i.right)):S=m-2*(_!==0||H!==0?_+H:de(i.top,i.bottom))}await f({...t,availableWidth:L,availableHeight:S});let F=await n.getDimensions(l.floating);return h!==F.width||m!==F.height?{reset:{rects:!0}}:{}}}};function ia(){return typeof window<"u"}function Ze(e){return ls(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function be(e){var t;return(t=(ls(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ls(e){return ia()?e instanceof Node||e instanceof fe(e).Node:!1}function he(e){return ia()?e instanceof Element||e instanceof fe(e).Element:!1}function Ae(e){return ia()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function ns(e){return!ia()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}function xt(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&r!=="inline"&&r!=="contents"}function us(e){return/^(table|td|th)$/.test(Ze(e))}function Pt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Ju=/transform|translate|scale|rotate|perspective|filter/,Qu=/paint|layout|strict|content/,$e=e=>!!e&&e!=="none",Ya;function fa(e){let t=he(e)?xe(e):e;return $e(t.transform)||$e(t.translate)||$e(t.scale)||$e(t.rotate)||$e(t.perspective)||!ca()&&($e(t.backdropFilter)||$e(t.filter))||Ju.test(t.willChange||"")||Qu.test(t.contain||"")}function ds(e){let t=Ee(e);for(;Ae(t)&&!Je(t);){if(fa(t))return t;if(Pt(t))return null;t=Ee(t)}return null}function ca(){return Ya==null&&(Ya=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ya}function Je(e){return/^(html|body|#document)$/.test(Ze(e))}function xe(e){return fe(e).getComputedStyle(e)}function kt(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ee(e){if(Ze(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ns(e)&&e.host||be(e);return ns(t)?t.host:t}function is(e){let t=Ee(e);return Je(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ae(t)&&xt(t)?t:is(t)}function Ye(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=is(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),n=fe(r);if(s){let l=pa(n);return t.concat(n,n.visualViewport||[],xt(r)?r:[],l&&a?Ye(l):[])}else return t.concat(r,Ye(r,[],a))}function pa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ms(e){let t=xe(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=Ae(e),s=r?e.offsetWidth:a,n=r?e.offsetHeight:o,l=yt(a)!==s||yt(o)!==n;return l&&(a=s,o=n),{width:a,height:o,$:l}}function Ja(e){return he(e)?e:e.contextElement}function gt(e){let t=Ja(e);if(!Ae(t))return Se(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:s}=ms(t),n=(s?yt(a.width):a.width)/o,l=(s?yt(a.height):a.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!l||!Number.isFinite(l))&&(l=1),{x:n,y:l}}var ed=Se(0);function hs(e){let t=fe(e);return!ca()||!t.visualViewport?ed:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function td(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==fe(e)?!1:t}function Qe(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),s=Ja(e),n=Se(1);t&&(o?he(o)&&(n=gt(o)):n=gt(e));let l=td(s,a,o)?hs(s):Se(0),f=(r.left+l.x)/n.x,u=(r.top+l.y)/n.y,i=r.width/n.x,d=r.height/n.y;if(s){let c=fe(s),p=o&&he(o)?fe(o):o,h=c,m=pa(h);for(;m&&o&&p!==h;){let x=gt(m),g=m.getBoundingClientRect(),I=xe(m),C=g.left+(m.clientLeft+parseFloat(I.paddingLeft))*x.x,w=g.top+(m.clientTop+parseFloat(I.paddingTop))*x.y;f*=x.x,u*=x.y,i*=x.x,d*=x.y,f+=C,u+=w,h=fe(m),m=pa(h)}}return je({width:i,height:d,x:f,y:u})}function ma(e,t){let a=kt(e).scrollLeft;return t?t.left+a:Qe(be(e)).left+a}function xs(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-ma(e,a),r=a.top+t.scrollTop;return{x:o,y:r}}function ad(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,s=r==="fixed",n=be(o),l=t?Pt(t.floating):!1;if(o===n||l&&s)return a;let f={scrollLeft:0,scrollTop:0},u=Se(1),i=Se(0),d=Ae(o);if((d||!d&&!s)&&((Ze(o)!=="body"||xt(n))&&(f=kt(o)),d)){let p=Qe(o);u=gt(o),i.x=p.x+o.clientLeft,i.y=p.y+o.clientTop}let c=n&&!d&&!s?xs(n,f):Se(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-f.scrollLeft*u.x+i.x+c.x,y:a.y*u.y-f.scrollTop*u.y+i.y+c.y}}function od(e){return Array.from(e.getClientRects())}function rd(e){let t=be(e),a=kt(e),o=e.ownerDocument.body,r=de(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=de(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),n=-a.scrollLeft+ma(e),l=-a.scrollTop;return xe(o).direction==="rtl"&&(n+=de(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:n,y:l}}var fs=25;function sd(e,t){let a=fe(e),o=be(e),r=a.visualViewport,s=o.clientWidth,n=o.clientHeight,l=0,f=0;if(r){s=r.width,n=r.height;let i=ca();(!i||i&&t==="fixed")&&(l=r.offsetLeft,f=r.offsetTop)}let u=ma(o);if(u<=0){let i=o.ownerDocument,d=i.body,c=getComputedStyle(d),p=i.compatMode==="CSS1Compat"&&parseFloat(c.marginLeft)+parseFloat(c.marginRight)||0,h=Math.abs(o.clientWidth-d.clientWidth-p);h<=fs&&(s-=h)}else u<=fs&&(s+=u);return{width:s,height:n,x:l,y:f}}function nd(e,t){let a=Qe(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,s=Ae(e)?gt(e):Se(1),n=e.clientWidth*s.x,l=e.clientHeight*s.y,f=r*s.x,u=o*s.y;return{width:n,height:l,x:f,y:u}}function cs(e,t,a){let o;if(t==="viewport")o=sd(e,a);else if(t==="document")o=rd(be(e));else if(he(t))o=nd(t,a);else{let r=hs(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return je(o)}function gs(e,t){let a=Ee(e);return a===t||!he(a)||Je(a)?!1:xe(a).position==="fixed"||gs(a,t)}function ld(e,t){let a=t.get(e);if(a)return a;let o=Ye(e,[],!1).filter(l=>he(l)&&Ze(l)!=="body"),r=null,s=xe(e).position==="fixed",n=s?Ee(e):e;for(;he(n)&&!Je(n);){let l=xe(n),f=fa(n);!f&&l.position==="fixed"&&(r=null),(s?!f&&!r:!f&&l.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||xt(n)&&!f&&gs(e,n))?o=o.filter(i=>i!==n):r=l,n=Ee(n)}return t.set(e,o),o}function ud(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,n=[...a==="clippingAncestors"?Pt(t)?[]:ld(t,this._c):[].concat(a),o],l=cs(t,n[0],r),f=l.top,u=l.right,i=l.bottom,d=l.left;for(let c=1;c{n(!1,1e-7)},1e3)}S===1&&!Cs(u,e.getBoundingClientRect())&&n(),w=!1}try{a=new IntersectionObserver(b,{...C,root:r.ownerDocument})}catch{a=new IntersectionObserver(b,C)}a.observe(e)}return n(!0),s}function Qa(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:f=!1}=o,u=Ja(e),i=r||s?[...u?Ye(u):[],...t?Ye(t):[]]:[];i.forEach(g=>{r&&g.addEventListener("scroll",a,{passive:!0}),s&&g.addEventListener("resize",a)});let d=u&&l?pd(u,a):null,c=-1,p=null;n&&(p=new ResizeObserver(g=>{let[I]=g;I&&I.target===u&&p&&t&&(p.unobserve(t),cancelAnimationFrame(c),c=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),a()}),u&&!f&&p.observe(u),t&&p.observe(t));let h,m=f?Qe(e):null;f&&x();function x(){let g=Qe(e);m&&!Cs(m,g)&&a(),m=g,h=requestAnimationFrame(x)}return a(),()=>{var g;i.forEach(I=>{r&&I.removeEventListener("scroll",a),s&&I.removeEventListener("resize",a)}),d?.(),(g=p)==null||g.disconnect(),p=null,f&&cancelAnimationFrame(h)}}var ws=as;var Ss=os,vs=Qr,bs=ss,ys=es,eo=Jr;var Rs=rs,to=(e,t,a)=>{let o=new Map,r={platform:Is,...a},s={...r.platform,_c:o};return Zr(e,t,{...r,platform:s})};import*as Z from"react";import{useLayoutEffect as md}from"react";import*as ks from"react-dom";var hd=typeof document<"u",xd=function(){},ha=hd?md:xd;function xa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(o=a;o--!==0;)if(!xa(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),a=r.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=a;o--!==0;){let s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!xa(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function As(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ps(e,t){let a=As(e);return Math.round(t*a)/a}function ao(e){let t=Z.useRef(e);return ha(()=>{t.current=e}),t}function Ms(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:n}={},transform:l=!0,whileElementsMounted:f,open:u}=e,[i,d]=Z.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[c,p]=Z.useState(o);xa(c,o)||p(o);let[h,m]=Z.useState(null),[x,g]=Z.useState(null),I=Z.useCallback(M=>{M!==y.current&&(y.current=M,m(M))},[]),C=Z.useCallback(M=>{M!==S.current&&(S.current=M,g(M))},[]),w=s||h,b=n||x,y=Z.useRef(null),S=Z.useRef(null),L=Z.useRef(i),F=f!=null,E=ao(f),q=ao(r),_=ao(u),H=Z.useCallback(()=>{if(!y.current||!S.current)return;let M={placement:t,strategy:a,middleware:c};q.current&&(M.platform=q.current),to(y.current,S.current,M).then(k=>{let v={...k,isPositioned:_.current!==!1};U.current&&!xa(L.current,v)&&(L.current=v,ks.flushSync(()=>{d(v)}))})},[c,t,a,q,_]);ha(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,d(M=>({...M,isPositioned:!1})))},[u]);let U=Z.useRef(!1);ha(()=>(U.current=!0,()=>{U.current=!1}),[]),ha(()=>{if(w&&(y.current=w),b&&(S.current=b),w&&b){if(E.current)return E.current(w,b,H);H()}},[w,b,H,E,F]);let z=Z.useMemo(()=>({reference:y,floating:S,setReference:I,setFloating:C}),[I,C]),T=Z.useMemo(()=>({reference:w,floating:b}),[w,b]),N=Z.useMemo(()=>{let M={position:a,left:0,top:0};if(!T.floating)return M;let k=Ps(T.floating,i.x),v=Ps(T.floating,i.y);return l?{...M,transform:"translate("+k+"px, "+v+"px)",...As(T.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:k,top:v}},[a,l,T.floating,i.x,i.y]);return Z.useMemo(()=>({...i,update:H,refs:z,elements:T,floatingStyles:N}),[i,H,z,T,N])}var gd=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:o,padding:r}=typeof e=="function"?e(a):e;return o&&t(o)?o.current!=null?eo({element:o.current,padding:r}).fn(a):{}:o?eo({element:o,padding:r}).fn(a):{}}}},Ds=(e,t)=>{let a=ws(e);return{name:a.name,fn:a.fn,options:[e,t]}},Ts=(e,t)=>{let a=Ss(e);return{name:a.name,fn:a.fn,options:[e,t]}},Fs=(e,t)=>({fn:Rs(e).fn,options:[e,t]}),Os=(e,t)=>{let a=vs(e);return{name:a.name,fn:a.fn,options:[e,t]}},Bs=(e,t)=>{let a=bs(e);return{name:a.name,fn:a.fn,options:[e,t]}};var Es=(e,t)=>{let a=ys(e);return{name:a.name,fn:a.fn,options:[e,t]}};var qs=(e,t)=>{let a=gd(e);return{name:a.name,fn:a.fn,options:[e,t]}};import*as _s from"react";import{jsx as Us}from"react/jsx-runtime";var Ld="Arrow",Ns=_s.forwardRef((e,t)=>{let{children:a,width:o=10,height:r=5,...s}=e;return Us(V.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:Us("polygon",{points:"0,0 30,0 15,10"})})});Ns.displayName=Ld;var Hs=Ns;import{jsx as et}from"react/jsx-runtime";var oo="Popper",[Gs,ro]=ye(oo),[Cd,zs]=Gs(oo),Ws=e=>{let{__scopePopper:t,children:a}=e,[o,r]=oe.useState(null),[s,n]=oe.useState(void 0);return et(Cd,{scope:t,anchor:o,onAnchorChange:r,placementState:s,setPlacementState:n,children:a})};Ws.displayName=oo;var Vs="PopperAnchor",Xs=oe.forwardRef((e,t)=>{let{__scopePopper:a,virtualRef:o,...r}=e,s=zs(Vs,a),n=oe.useRef(null),l=s.onAnchorChange,f=oe.useCallback(h=>{n.current=h,h&&l(h)},[l]),u=j(t,f),i=oe.useRef(null);oe.useEffect(()=>{if(!o)return;let h=i.current;i.current=o.current,h!==i.current&&l(i.current)});let d=s.placementState&&no(s.placementState),c=d?.[0],p=d?.[1];return o?null:et(V.div,{"data-radix-popper-side":c,"data-radix-popper-align":p,...r,ref:u})});Xs.displayName=Vs;var so="PopperContent",[wd,Sd]=Gs(so),Ks=oe.forwardRef((e,t)=>{let{__scopePopper:a,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:n=0,arrowPadding:l=0,avoidCollisions:f=!0,collisionBoundary:u,collisionPadding:i=0,sticky:d="partial",hideWhenDetached:c=!1,updatePositionStrategy:p="optimized",onPlaced:h,...m}=e,x=zs(so,a),[g,I]=oe.useState(null),C=j(t,Ce=>I(Ce)),[w,b]=oe.useState(null),y=Nr(w),S=y?.width??0,L=y?.height??0,F=o+(s!=="center"?"-"+s:""),E=typeof i=="number"?i:{top:0,right:0,bottom:0,left:0,...i},q=u?Array.isArray(u)?u:[u]:void 0,_=q!==void 0&&q.length>0,H={padding:E,boundary:q?.filter(bd),altBoundary:_},{refs:U,floatingStyles:z,placement:T,isPositioned:N,middlewareData:M}=Ms({strategy:"fixed",placement:F,whileElementsMounted:(...Ce)=>Qa(...Ce,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[Ds({mainAxis:r+L,alignmentAxis:n}),f&&Ts({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Fs():void 0,...H}),f&&Os({...H}),Bs({...H,apply:({elements:Ce,rects:K,availableWidth:Ut,availableHeight:lt})=>{let{width:ut,height:Lt}=K.reference,Fe=Ce.floating.style;Fe.setProperty("--radix-popper-available-width",`${Ut}px`),Fe.setProperty("--radix-popper-available-height",`${lt}px`),Fe.setProperty("--radix-popper-anchor-width",`${ut}px`),Fe.setProperty("--radix-popper-anchor-height",`${Lt}px`)}}),w&&qs({element:w,padding:l}),yd({arrowWidth:S,arrowHeight:L}),c&&Es({strategy:"referenceHidden",...H})]}),k=x.setPlacementState;ue(()=>(k(T),()=>{k(void 0)}),[T,k]);let[v,ce]=no(T),Ie=se(h);ue(()=>{N&&Ie?.()},[N,Ie]);let Ue=M.arrow?.x,Te=M.arrow?.y,$=M.arrow?.centerOffset!==0,[W,Y]=oe.useState();return ue(()=>{g&&Y(window.getComputedStyle(g).zIndex)},[g]),et("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:N?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:et(wd,{scope:a,placedSide:v,placedAlign:ce,onArrowChange:b,arrowX:Ue,arrowY:Te,shouldHideArrow:$,children:et(V.div,{"data-side":v,"data-align":ce,...m,ref:C,style:{...m.style,animation:N?void 0:"none"}})})})});Ks.displayName=so;var js="PopperArrow",vd={top:"bottom",right:"left",bottom:"top",left:"right"},$s=oe.forwardRef(function(t,a){let{__scopePopper:o,...r}=t,s=Sd(js,o),n=vd[s.placedSide];return et("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[n]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:et(Hs,{...r,ref:a,style:{...r.style,display:"block"}})})});$s.displayName=js;function bd(e){return e!==null}var yd=e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:o,middlewareData:r}=t,n=r.arrow?.centerOffset!==0,l=n?0:e.arrowWidth,f=n?0:e.arrowHeight,[u,i]=no(a),d={start:"0%",center:"50%",end:"100%"}[i],c=(r.arrow?.x??0)+l/2,p=(r.arrow?.y??0)+f/2,h="",m="";return u==="bottom"?(h=n?d:`${c}px`,m=`${-f}px`):u==="top"?(h=n?d:`${c}px`,m=`${o.floating.height+f}px`):u==="right"?(h=`${-f}px`,m=n?d:`${p}px`):u==="left"&&(h=`${o.floating.width+f}px`,m=n?d:`${p}px`),{data:{x:h,y:m}}}});function no(e){let[t,a="center"]=e.split("-");return[t,a]}var lo=Ws,Ys=Xs,Zs=Ks,Js=$s;import*as ee from"react";import{jsx as tt}from"react/jsx-runtime";var uo="rovingFocusGroup.onEntryFocus",Pd={bubbles:!1,cancelable:!0},At="RovingFocusGroup",[io,Qs,kd]=zt(At),[Ad,fo]=ye(At,[kd]),[Md,Dd]=Ad(At),en=ee.forwardRef((e,t)=>tt(io.Provider,{scope:e.__scopeRovingFocusGroup,children:tt(io.Slot,{scope:e.__scopeRovingFocusGroup,children:tt(Td,{...e,ref:t})})}));en.displayName=At;var Td=ee.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:o,loop:r=!1,dir:s,currentTabStopId:n,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:f,onEntryFocus:u,preventScrollOnEntryFocus:i=!1,...d}=e,c=ee.useRef(null),p=j(t,c),h=jt(s),[m,x]=Ct({prop:n,defaultProp:l??null,onChange:f,caller:At}),[g,I]=ee.useState(!1),C=se(u),w=Qs(a),b=ee.useRef(!1),[y,S]=ee.useState(0);return ee.useEffect(()=>{let L=c.current;if(L)return L.addEventListener(uo,C),()=>L.removeEventListener(uo,C)},[C]),tt(Md,{scope:a,orientation:o,dir:h,loop:r,currentTabStopId:m,onItemFocus:ee.useCallback(L=>x(L),[x]),onItemShiftTab:ee.useCallback(()=>I(!0),[]),onFocusableItemAdd:ee.useCallback(()=>S(L=>L+1),[]),onFocusableItemRemove:ee.useCallback(()=>S(L=>L-1),[]),children:tt(V.div,{tabIndex:g||y===0?-1:0,"data-orientation":o,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{b.current=!0}),onFocus:B(e.onFocus,L=>{let F=!b.current;if(L.target===L.currentTarget&&F&&!g){let E=new CustomEvent(uo,Pd);if(L.currentTarget.dispatchEvent(E),!E.defaultPrevented){let q=w().filter(T=>T.focusable),_=q.find(T=>T.active),H=q.find(T=>T.id===m),z=[_,H,...q].filter(Boolean).map(T=>T.ref.current);on(z,i)}}b.current=!1}),onBlur:B(e.onBlur,()=>I(!1))})})}),tn="RovingFocusGroupItem",an=ee.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:o=!0,active:r=!1,tabStopId:s,children:n,...l}=e,f=_e(),u=s||f,i=Dd(tn,a),d=i.currentTabStopId===u,c=Qs(a),{onFocusableItemAdd:p,onFocusableItemRemove:h,currentTabStopId:m}=i;return ee.useEffect(()=>{if(o)return p(),()=>h()},[o,p,h]),tt(io.ItemSlot,{scope:a,id:u,focusable:o,active:r,children:tt(V.span,{tabIndex:d?0:-1,"data-orientation":i.orientation,...l,ref:t,onMouseDown:B(e.onMouseDown,x=>{o?i.onItemFocus(u):x.preventDefault()}),onFocus:B(e.onFocus,()=>i.onItemFocus(u)),onKeyDown:B(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){i.onItemShiftTab();return}if(x.target!==x.currentTarget)return;let g=Bd(x,i.orientation,i.dir);if(g!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let C=c().filter(w=>w.focusable).map(w=>w.ref.current);if(g==="last")C.reverse();else if(g==="prev"||g==="next"){g==="prev"&&C.reverse();let w=C.indexOf(x.currentTarget);C=i.loop?Ed(C,w+1):C.slice(w+1)}setTimeout(()=>on(C))}}),children:typeof n=="function"?n({isCurrentTabStop:d,hasTabStop:m!=null}):n})})});an.displayName=tn;var Fd={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Od(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Bd(e,t,a){let o=Od(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Fd[o]}function on(e,t=!1){let a=document.activeElement;for(let o of e)if(o===a||(o.focus({preventScroll:t}),document.activeElement!==a))return}function Ed(e,t){return e.map((a,o)=>e[(t+o)%e.length])}var rn=en,sn=an;import{jsx as D}from"react/jsx-runtime";var co=["Enter"," "],Ud=["ArrowDown","PageUp","Home"],ln=["ArrowUp","PageDown","End"],_d=[...Ud,...ln],Nd={ltr:[...co,"ArrowRight"],rtl:[...co,"ArrowLeft"]},Hd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ft="Menu",[Dt,Gd,zd]=zt(Ft),[at,po]=ye(Ft,[zd,ro,fo]),Ot=ro(),un=fo(),[dn,He]=at(Ft),[Wd,Bt]=at(Ft),fn=e=>{let{__scopeMenu:t,open:a=!1,children:o,dir:r,onOpenChange:s,modal:n=!0}=e,l=Ot(t),[f,u]=A.useState(null),i=A.useRef(!1),d=se(s),c=jt(r);return A.useEffect(()=>{let p=()=>{i.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>i.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),D(lo,{...l,children:D(dn,{scope:t,open:a,onOpenChange:d,content:f,onContentChange:u,children:D(Wd,{scope:t,onClose:A.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:i,dir:c,modal:n,children:o})})})};fn.displayName=Ft;var Vd="MenuAnchor",mo=A.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e,r=Ot(a);return D(Ys,{...r,...o,ref:t})});mo.displayName=Vd;var ho="MenuPortal",[Xd,cn]=at(ho,{forceMount:void 0}),pn=e=>{let{__scopeMenu:t,forceMount:a,children:o,container:r}=e,s=He(ho,t);return D(Xd,{scope:t,forceMount:a,children:D(dt,{present:a||s.open,children:D(Fa,{asChild:!0,container:r,children:o})})})};pn.displayName=ho;var ge="MenuContent",[Kd,xo]=at(ge),mn=A.forwardRef((e,t)=>{let a=cn(ge,e.__scopeMenu),{forceMount:o=a.forceMount,...r}=e,s=He(ge,e.__scopeMenu),n=Bt(ge,e.__scopeMenu);return D(Dt.Provider,{scope:e.__scopeMenu,children:D(dt,{present:o||s.open,children:D(Dt.Slot,{scope:e.__scopeMenu,children:n.modal?D(jd,{...r,ref:t}):D($d,{...r,ref:t})})})})}),jd=A.forwardRef((e,t)=>{let a=He(ge,e.__scopeMenu),o=A.useRef(null),r=j(t,o);return A.useEffect(()=>{let s=o.current;if(s)return Ur(s)},[]),D(go,{...e,ref:r,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:B(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})}),$d=A.forwardRef((e,t)=>{let a=He(ge,e.__scopeMenu);return D(go,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>a.onOpenChange(!1)})}),Yd=Oe("MenuContent.ScrollLock"),go=A.forwardRef((e,t)=>{let{__scopeMenu:a,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:n,disableOutsidePointerEvents:l,onEntryFocus:f,onEscapeKeyDown:u,onPointerDownOutside:i,onFocusOutside:d,onInteractOutside:c,onDismiss:p,disableOutsideScroll:h,...m}=e,x=He(ge,a),g=Bt(ge,a),I=Ot(a),C=un(a),w=Gd(a),[b,y]=A.useState(null),S=A.useRef(null),L=j(t,S,x.onContentChange),F=A.useRef(0),E=A.useRef(""),q=A.useRef(0),_=A.useRef(null),H=A.useRef("right"),U=A.useRef(0),z=h?Ka:A.Fragment,T=h?{as:Yd,allowPinchZoom:!0}:void 0,N=k=>{let v=E.current+k,ce=w().filter(Y=>!Y.disabled),Ie=document.activeElement,Ue=ce.find(Y=>Y.ref.current===Ie)?.textValue,Te=ce.map(Y=>Y.textValue),$=ui(Te,v,Ue),W=ce.find(Y=>Y.textValue===$)?.ref.current;(function Y(Ce){E.current=Ce,window.clearTimeout(F.current),Ce!==""&&(F.current=window.setTimeout(()=>Y(""),1e3))})(v),W&&setTimeout(()=>W.focus())};A.useEffect(()=>()=>window.clearTimeout(F.current),[]),Lr();let M=A.useCallback(k=>H.current===_.current?.side&&ii(k,_.current?.area),[]);return D(Kd,{scope:a,searchRef:E,onItemEnter:A.useCallback(k=>{M(k)&&k.preventDefault()},[M]),onItemLeave:A.useCallback(k=>{M(k)||(S.current?.focus(),y(null))},[M]),onTriggerLeave:A.useCallback(k=>{M(k)&&k.preventDefault()},[M]),pointerGraceTimerRef:q,onPointerGraceIntentChange:A.useCallback(k=>{_.current=k},[]),children:D(z,{...T,children:D(Ta,{asChild:!0,trapped:r,onMountAutoFocus:B(s,k=>{k.preventDefault(),S.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:n,children:D(Aa,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:i,onFocusOutside:d,onInteractOutside:c,onDismiss:p,children:D(rn,{asChild:!0,...C,dir:g.dir,orientation:"vertical",loop:o,currentTabStopId:b,onCurrentTabStopIdChange:y,onEntryFocus:B(f,k=>{g.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:D(Zs,{role:"menu","aria-orientation":"vertical","data-state":Dn(x.open),"data-radix-menu-content":"",dir:g.dir,...I,...m,ref:L,style:{outline:"none",...m.style},onKeyDown:B(m.onKeyDown,k=>{let ce=k.target.closest("[data-radix-menu-content]")===k.currentTarget,Ie=k.ctrlKey||k.altKey||k.metaKey,Ue=k.key.length===1;ce&&(k.key==="Tab"&&k.preventDefault(),!Ie&&Ue&&N(k.key));let Te=S.current;if(k.target!==Te||!_d.includes(k.key))return;k.preventDefault();let W=w().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);ln.includes(k.key)&&W.reverse(),ni(W)}),onBlur:B(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(F.current),E.current="")}),onPointerMove:B(e.onPointerMove,Tt(k=>{let v=k.target,ce=U.current!==k.clientX;if(k.currentTarget.contains(v)&&ce){let Ie=k.clientX>U.current?"right":"left";H.current=Ie,U.current=k.clientX}}))})})})})})})});mn.displayName=ge;var Zd="MenuGroup",Lo=A.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e;return D(V.div,{role:"group",...o,ref:t})});Lo.displayName=Zd;var Jd="MenuLabel",hn=A.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e;return D(V.div,{...o,ref:t})});hn.displayName=Jd;var ga="MenuItem",nn="menu.itemSelect",Ia=A.forwardRef((e,t)=>{let{disabled:a=!1,onSelect:o,...r}=e,s=A.useRef(null),n=Bt(ga,e.__scopeMenu),l=xo(ga,e.__scopeMenu),f=j(t,s),u=A.useRef(!1),i=()=>{let d=s.current;if(!a&&d){let c=new CustomEvent(nn,{bubbles:!0,cancelable:!0});d.addEventListener(nn,p=>o?.(p),{once:!0}),Gt(d,c),c.defaultPrevented?u.current=!1:n.onClose()}};return D(xn,{...r,ref:f,disabled:a,onClick:B(e.onClick,i),onPointerDown:d=>{e.onPointerDown?.(d),u.current=!0},onPointerUp:B(e.onPointerUp,d=>{u.current||d.currentTarget?.click()}),onKeyDown:B(e.onKeyDown,d=>{let c=l.searchRef.current!=="";a||c&&d.key===" "||co.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Ia.displayName=ga;var xn=A.forwardRef((e,t)=>{let{__scopeMenu:a,disabled:o=!1,textValue:r,...s}=e,n=xo(ga,a),l=un(a),f=A.useRef(null),u=j(t,f),[i,d]=A.useState(!1),[c,p]=A.useState("");return A.useEffect(()=>{let h=f.current;h&&p((h.textContent??"").trim())},[s.children]),D(Dt.ItemSlot,{scope:a,disabled:o,textValue:r??c,children:D(sn,{asChild:!0,...l,focusable:!o,children:D(V.div,{role:"menuitem","data-highlighted":i?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:u,onPointerMove:B(e.onPointerMove,Tt(h=>{o?n.onItemLeave(h):(n.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:B(e.onPointerLeave,Tt(h=>n.onItemLeave(h))),onFocus:B(e.onFocus,()=>d(!0)),onBlur:B(e.onBlur,()=>d(!1))})})})}),Qd="MenuCheckboxItem",gn=A.forwardRef((e,t)=>{let{checked:a=!1,onCheckedChange:o,...r}=e;return D(Sn,{scope:e.__scopeMenu,checked:a,children:D(Ia,{role:"menuitemcheckbox","aria-checked":La(a)?"mixed":a,...r,ref:t,"data-state":wo(a),onSelect:B(r.onSelect,()=>o?.(La(a)?!0:!a),{checkForDefaultPrevented:!1})})})});gn.displayName=Qd;var Ln="MenuRadioGroup",[ei,ti]=at(Ln,{value:void 0,onValueChange:()=>{}}),In=A.forwardRef((e,t)=>{let{value:a,onValueChange:o,...r}=e,s=se(o);return D(ei,{scope:e.__scopeMenu,value:a,onValueChange:s,children:D(Lo,{...r,ref:t})})});In.displayName=Ln;var Cn="MenuRadioItem",wn=A.forwardRef((e,t)=>{let{value:a,...o}=e,r=ti(Cn,e.__scopeMenu),s=a===r.value;return D(Sn,{scope:e.__scopeMenu,checked:s,children:D(Ia,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":wo(s),onSelect:B(o.onSelect,()=>r.onValueChange?.(a),{checkForDefaultPrevented:!1})})})});wn.displayName=Cn;var Io="MenuItemIndicator",[Sn,ai]=at(Io,{checked:!1}),vn=A.forwardRef((e,t)=>{let{__scopeMenu:a,forceMount:o,...r}=e,s=ai(Io,a);return D(dt,{present:o||La(s.checked)||s.checked===!0,children:D(V.span,{...r,ref:t,"data-state":wo(s.checked)})})});vn.displayName=Io;var oi="MenuSeparator",bn=A.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e;return D(V.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});bn.displayName=oi;var ri="MenuArrow",yn=A.forwardRef((e,t)=>{let{__scopeMenu:a,...o}=e,r=Ot(a);return D(Js,{...r,...o,ref:t})});yn.displayName=ri;var Co="MenuSub",[si,Rn]=at(Co),Pn=e=>{let{__scopeMenu:t,children:a,open:o=!1,onOpenChange:r}=e,s=He(Co,t),n=Ot(t),[l,f]=A.useState(null),[u,i]=A.useState(null),d=se(r);return A.useEffect(()=>(s.open===!1&&d(!1),()=>d(!1)),[s.open,d]),D(lo,{...n,children:D(dn,{scope:t,open:o,onOpenChange:d,content:u,onContentChange:i,children:D(si,{scope:t,contentId:_e(),triggerId:_e(),trigger:l,onTriggerChange:f,children:a})})})};Pn.displayName=Co;var Mt="MenuSubTrigger",kn=A.forwardRef((e,t)=>{let a=He(Mt,e.__scopeMenu),o=Bt(Mt,e.__scopeMenu),r=Rn(Mt,e.__scopeMenu),s=xo(Mt,e.__scopeMenu),n=A.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:f}=s,u={__scopeMenu:e.__scopeMenu},i=A.useCallback(()=>{n.current&&window.clearTimeout(n.current),n.current=null},[]);return A.useEffect(()=>i,[i]),A.useEffect(()=>{let d=l.current;return()=>{window.clearTimeout(d),f(null)}},[l,f]),D(mo,{asChild:!0,...u,children:D(xn,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?r.contentId:void 0,"data-state":Dn(a.open),...e,ref:It(t,r.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:B(e.onPointerMove,Tt(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!a.open&&!n.current&&(s.onPointerGraceIntentChange(null),n.current=window.setTimeout(()=>{a.onOpenChange(!0),i()},100))})),onPointerLeave:B(e.onPointerLeave,Tt(d=>{i();let c=a.content?.getBoundingClientRect();if(c){let p=a.content?.dataset.side,h=p==="right",m=h?-5:5,x=c[h?"left":"right"],g=c[h?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x,y:c.top},{x:g,y:c.top},{x:g,y:c.bottom},{x,y:c.bottom}],side:p}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:B(e.onKeyDown,d=>{let c=s.searchRef.current!=="";e.disabled||c&&d.key===" "||Nd[o.dir].includes(d.key)&&(a.onOpenChange(!0),a.content?.focus(),d.preventDefault())})})})});kn.displayName=Mt;var An="MenuSubContent",Mn=A.forwardRef((e,t)=>{let a=cn(ge,e.__scopeMenu),{forceMount:o=a.forceMount,align:r="start",...s}=e,n=He(ge,e.__scopeMenu),l=Bt(ge,e.__scopeMenu),f=Rn(An,e.__scopeMenu),u=A.useRef(null),i=j(t,u);return D(Dt.Provider,{scope:e.__scopeMenu,children:D(dt,{present:o||n.open,children:D(Dt.Slot,{scope:e.__scopeMenu,children:D(go,{id:f.contentId,"aria-labelledby":f.triggerId,...s,ref:i,align:r,side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{l.isUsingKeyboardRef.current&&u.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:B(e.onFocusOutside,d=>{d.target!==f.trigger&&n.onOpenChange(!1)}),onEscapeKeyDown:B(e.onEscapeKeyDown,d=>{l.onClose(),d.preventDefault()}),onKeyDown:B(e.onKeyDown,d=>{let c=d.currentTarget.contains(d.target),p=Hd[l.dir].includes(d.key);c&&p&&(n.onOpenChange(!1),f.trigger?.focus(),d.preventDefault())})})})})})});Mn.displayName=An;function Dn(e){return e?"open":"closed"}function La(e){return e==="indeterminate"}function wo(e){return La(e)?"indeterminate":e?"checked":"unchecked"}function ni(e){let t=document.activeElement;for(let a of e)if(a===t||(a.focus(),document.activeElement!==t))return}function li(e,t){return e.map((a,o)=>e[(t+o)%e.length])}function ui(e,t,a){let r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=a?e.indexOf(a):-1,n=li(e,Math.max(s,0));r.length===1&&(n=n.filter(u=>u!==a));let f=n.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return f!==a?f:void 0}function di(e,t){let{x:a,y:o}=e,r=!1;for(let s=0,n=t.length-1;so!=c>o&&a<(d-u)*(o-i)/(c-i)+u&&(r=!r)}return r}function ii(e,t){if(!t)return!1;let a={x:e.clientX,y:e.clientY};return di(a,t)}function Tt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Tn=fn,Fn=mo,On=pn,Bn=mn,En=Lo,qn=hn,Un=Ia,_n=gn,Nn=In,Hn=wn,Gn=vn,zn=bn,Wn=yn,Vn=Pn,Xn=kn,Kn=Mn;var Le={};Go(Le,{Arrow:()=>_i,CheckboxItem:()=>Oi,Content:()=>Mi,DropdownMenu:()=>So,DropdownMenuArrow:()=>Oo,DropdownMenuCheckboxItem:()=>Ao,DropdownMenuContent:()=>yo,DropdownMenuGroup:()=>Ro,DropdownMenuItem:()=>ko,DropdownMenuItemIndicator:()=>To,DropdownMenuLabel:()=>Po,DropdownMenuPortal:()=>bo,DropdownMenuRadioGroup:()=>Mo,DropdownMenuRadioItem:()=>Do,DropdownMenuSeparator:()=>Fo,DropdownMenuSub:()=>Zn,DropdownMenuSubContent:()=>Eo,DropdownMenuSubTrigger:()=>Bo,DropdownMenuTrigger:()=>vo,Group:()=>Di,Item:()=>Fi,ItemIndicator:()=>qi,Label:()=>Ti,Portal:()=>Ai,RadioGroup:()=>Bi,RadioItem:()=>Ei,Root:()=>Pi,Separator:()=>Ui,Sub:()=>Ni,SubContent:()=>Gi,SubTrigger:()=>Hi,Trigger:()=>ki,createDropdownMenuScope:()=>pi});import*as J from"react";import{jsx as te}from"react/jsx-runtime";var Ca="DropdownMenu",[ci,pi]=ye(Ca,[po]),le=po(),[mi,jn]=ci(Ca),So=e=>{let{__scopeDropdownMenu:t,children:a,dir:o,open:r,defaultOpen:s,onOpenChange:n,modal:l=!0}=e,f=le(t),u=J.useRef(null),[i,d]=Ct({prop:r,defaultProp:s??!1,onChange:n,caller:Ca});return te(mi,{scope:t,triggerId:_e(),triggerRef:u,contentId:_e(),open:i,onOpenChange:d,onOpenToggle:J.useCallback(()=>d(c=>!c),[d]),modal:l,children:te(Tn,{...f,open:i,onOpenChange:d,dir:o,modal:l,children:a})})};So.displayName=Ca;var $n="DropdownMenuTrigger",vo=J.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,disabled:o=!1,...r}=e,s=jn($n,a),n=le(a);return te(Fn,{asChild:!0,...n,children:te(V.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:It(t,s.triggerRef),onPointerDown:B(e.onPointerDown,l=>{!o&&l.button===0&&l.ctrlKey===!1&&(s.onOpenToggle(),s.open||l.preventDefault())}),onKeyDown:B(e.onKeyDown,l=>{o||(["Enter"," "].includes(l.key)&&s.onOpenToggle(),l.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});vo.displayName=$n;var hi="DropdownMenuPortal",bo=e=>{let{__scopeDropdownMenu:t,...a}=e,o=le(t);return te(On,{...o,...a})};bo.displayName=hi;var Yn="DropdownMenuContent",yo=J.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=jn(Yn,a),s=le(a),n=J.useRef(!1);return te(Bn,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:B(e.onCloseAutoFocus,l=>{n.current||r.triggerRef.current?.focus(),n.current=!1,l.preventDefault()}),onInteractOutside:B(e.onInteractOutside,l=>{let f=l.detail.originalEvent,u=f.button===0&&f.ctrlKey===!0,i=f.button===2||u;(!r.modal||i)&&(n.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});yo.displayName=Yn;var xi="DropdownMenuGroup",Ro=J.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=le(a);return te(En,{...r,...o,ref:t})});Ro.displayName=xi;var gi="DropdownMenuLabel",Po=J.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=le(a);return te(qn,{...r,...o,ref:t})});Po.displayName=gi;var Li="DropdownMenuItem",ko=J.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=le(a);return te(Un,{...r,...o,ref:t})});ko.displayName=Li;var Ii="DropdownMenuCheckboxItem",Ao=J.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=le(a);return te(_n,{...r,...o,ref:t})});Ao.displayName=Ii;var Ci="DropdownMenuRadioGroup",Mo=J.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=le(a);return te(Nn,{...r,...o,ref:t})});Mo.displayName=Ci;var wi="DropdownMenuRadioItem",Do=J.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=le(a);return te(Hn,{...r,...o,ref:t})});Do.displayName=wi;var Si="DropdownMenuItemIndicator",To=J.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=le(a);return te(Gn,{...r,...o,ref:t})});To.displayName=Si;var vi="DropdownMenuSeparator",Fo=J.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=le(a);return te(zn,{...r,...o,ref:t})});Fo.displayName=vi;var bi="DropdownMenuArrow",Oo=J.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=le(a);return te(Wn,{...r,...o,ref:t})});Oo.displayName=bi;var Zn=e=>{let{__scopeDropdownMenu:t,children:a,open:o,onOpenChange:r,defaultOpen:s}=e,n=le(t),[l,f]=Ct({prop:o,defaultProp:s??!1,onChange:r,caller:"DropdownMenuSub"});return te(Vn,{...n,open:l,onOpenChange:f,children:a})},yi="DropdownMenuSubTrigger",Bo=J.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=le(a);return te(Xn,{...r,...o,ref:t})});Bo.displayName=yi;var Ri="DropdownMenuSubContent",Eo=J.forwardRef((e,t)=>{let{__scopeDropdownMenu:a,...o}=e,r=le(a);return te(Kn,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Eo.displayName=Ri;var Pi=So,ki=vo,Ai=bo,Mi=yo,Di=Ro,Ti=Po,Fi=ko,Oi=Ao,Bi=Mo,Ei=Do,qi=To,Ui=Fo,_i=Oo,Ni=Zn,Hi=Bo,Gi=Eo;var zi=(e,t)=>{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),rl=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),va="-",Jn=[],Vi="arbitrary..",Xi=e=>{let t=ji(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{if(n.startsWith("[")&&n.endsWith("]"))return Ki(n);let l=n.split(va),f=l[0]===""&&l.length>1?1:0;return sl(l,f,t)},getConflictingClassGroupIds:(n,l)=>{if(l){let f=o[n],u=a[n];return f?u?zi(u,f):f:u||Jn}return a[n]||Jn}}},sl=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],s=a.nextPart.get(r);if(s){let u=sl(e,t+1,s);if(u)return u}let n=a.validators;if(n===null)return;let l=t===0?e.join(va):e.slice(t).join(va),f=n.length;for(let u=0;ue.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?Vi+o:void 0})(),ji=e=>{let{theme:t,classGroups:a}=e;return $i(a,t)},$i=(e,t)=>{let a=rl();for(let o in e){let r=e[o];_o(r,a,o,t)}return a},_o=(e,t,a,o)=>{let r=e.length;for(let s=0;s{if(typeof e=="string"){Zi(e,t,a);return}if(typeof e=="function"){Ji(e,t,a,o);return}Qi(e,t,a,o)},Zi=(e,t,a)=>{let o=e===""?t:nl(t,e);o.classGroupId=a},Ji=(e,t,a,o)=>{if(ef(e)){_o(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Wi(a,e))},Qi=(e,t,a,o)=>{let r=Object.entries(e),s=r.length;for(let n=0;n{let a=e,o=t.split(va),r=o.length;for(let s=0;s"isThemeGetter"in e&&e.isThemeGetter===!0,tf=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(s,n)=>{a[s]=n,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(s){let n=a[s];if(n!==void 0)return n;if((n=o[s])!==void 0)return r(s,n),n},set(s,n){s in a?a[s]=n:r(s,n)}}},Uo="!",Qn=":",af=[],el=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),of=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=r=>{let s=[],n=0,l=0,f=0,u,i=r.length;for(let m=0;mf?u-f:void 0;return el(s,p,c,h)};if(t){let r=t+Qn,s=o;o=n=>n.startsWith(r)?s(n.slice(r.length)):el(af,!1,n,void 0,!0)}if(a){let r=o;o=s=>a({className:s,parseClassName:r})}return o},rf=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],r=[];for(let s=0;s0&&(r.sort(),o.push(...r),r=[]),o.push(n)):r.push(n)}return r.length>0&&(r.sort(),o.push(...r)),o}},sf=e=>({cache:tf(e.cacheSize),parseClassName:of(e),sortModifiers:rf(e),postfixLookupClassGroupIds:nf(e),...Xi(e)}),nf=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:s,postfixLookupClassGroupIds:n}=t,l=[],f=e.trim().split(lf),u="";for(let i=f.length-1;i>=0;i-=1){let d=f[i],{isExternal:c,modifiers:p,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:x}=a(d);if(c){u=d+(u.length>0?" "+u:u);continue}let g=!!x,I;if(g){let S=m.substring(0,x);I=o(S);let L=I&&n[I]?o(m):void 0;L&&L!==I&&(I=L,g=!1)}else I=o(m);if(!I){if(!g){u=d+(u.length>0?" "+u:u);continue}if(I=o(m),!I){u=d+(u.length>0?" "+u:u);continue}g=!1}let C=p.length===0?"":p.length===1?p[0]:s(p).join(":"),w=h?C+Uo:C,b=w+I;if(l.indexOf(b)>-1)continue;l.push(b);let y=r(I,g);for(let S=0;S0?" "+u:u)}return u},df=(...e)=>{let t=0,a,o,r="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,r,s,n=f=>{let u=t.reduce((i,d)=>d(i),e());return a=sf(u),o=a.cache.get,r=a.cache.set,s=l,l(f)},l=f=>{let u=o(f);if(u)return u;let i=uf(f,a);return r(f,i),i};return s=n,(...f)=>s(df(...f))},cf=[],Q=e=>{let t=a=>a[e]||cf;return t.isThemeGetter=!0,t},ul=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,dl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pf=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,mf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hf=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ge=e=>pf.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),Me=e=>!!e&&Number.isInteger(Number(e)),qo=e=>e.endsWith("%")&&O(e.slice(0,-1)),qe=e=>mf.test(e),il=()=>!0,If=e=>hf.test(e)&&!xf.test(e),No=()=>!1,Cf=e=>gf.test(e),wf=e=>Lf.test(e),Sf=e=>!R(e)&&!P(e),vf=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),bf=e=>ze(e,pl,No),R=e=>ul.test(e),ot=e=>ze(e,ml,If),tl=e=>ze(e,Tf,O),yf=e=>ze(e,xl,il),Rf=e=>ze(e,hl,No),al=e=>ze(e,fl,No),Pf=e=>ze(e,cl,wf),wa=e=>ze(e,gl,Cf),P=e=>dl.test(e),Et=e=>rt(e,ml),kf=e=>rt(e,hl),ol=e=>rt(e,fl),Af=e=>rt(e,pl),Mf=e=>rt(e,cl),Sa=e=>rt(e,gl,!0),Df=e=>rt(e,xl,!0),ze=(e,t,a)=>{let o=ul.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},rt=(e,t,a=!1)=>{let o=dl.exec(e);return o?o[1]?t(o[1]):a:!1},fl=e=>e==="position"||e==="percentage",cl=e=>e==="image"||e==="url",pl=e=>e==="length"||e==="size"||e==="bg-size",ml=e=>e==="length",Tf=e=>e==="number",hl=e=>e==="family-name",xl=e=>e==="number"||e==="weight",gl=e=>e==="shadow";var Ff=()=>{let e=Q("color"),t=Q("font"),a=Q("text"),o=Q("font-weight"),r=Q("tracking"),s=Q("leading"),n=Q("breakpoint"),l=Q("container"),f=Q("spacing"),u=Q("radius"),i=Q("shadow"),d=Q("inset-shadow"),c=Q("text-shadow"),p=Q("drop-shadow"),h=Q("blur"),m=Q("perspective"),x=Q("aspect"),g=Q("ease"),I=Q("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...w(),P,R],y=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],L=()=>[P,R,f],F=()=>[Ge,"full","auto",...L()],E=()=>[Me,"none","subgrid",P,R],q=()=>["auto",{span:["full",Me,P,R]},Me,P,R],_=()=>[Me,"auto",P,R],H=()=>["auto","min","max","fr",P,R],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...L()],N=()=>[Ge,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],M=()=>[Ge,"screen","full","dvw","lvw","svw","min","max","fit",...L()],k=()=>[Ge,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],v=()=>[e,P,R],ce=()=>[...w(),ol,al,{position:[P,R]}],Ie=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ue=()=>["auto","cover","contain",Af,bf,{size:[P,R]}],Te=()=>[qo,Et,ot],$=()=>["","none","full",u,P,R],W=()=>["",O,Et,ot],Y=()=>["solid","dashed","dotted","double"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[O,qo,ol,al],Ut=()=>["","none",h,P,R],lt=()=>["none",O,P,R],ut=()=>["none",O,P,R],Lt=()=>[O,P,R],Fe=()=>[Ge,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qe],breakpoint:[qe],color:[il],container:[qe],"drop-shadow":[qe],ease:["in","out","in-out"],font:[Sf],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qe],shadow:[qe],spacing:["px",O],text:[qe],"text-shadow":[qe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ge,R,P,x]}],container:["container"],"container-type":[{"@container":["","normal","size",P,R]}],"container-named":[vf],columns:[{columns:[O,R,P,l]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:y()}],"overflow-x":[{"overflow-x":y()}],"overflow-y":[{"overflow-y":y()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Me,"auto",P,R]}],basis:[{basis:[Ge,"full","auto",l,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,Ge,"auto","initial","none",R]}],grow:[{grow:["",O,P,R]}],shrink:[{shrink:["",O,P,R]}],order:[{order:[Me,"first","last","none",P,R]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",...k()]}],"min-block-size":[{"min-block":["auto",...k()]}],"max-block-size":[{"max-block":["none",...k()]}],w:[{w:[l,"screen",...N()]}],"min-w":[{"min-w":[l,"screen","none",...N()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[n]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",a,Et,ot]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Df,yf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qo,R]}],"font-family":[{font:[kf,Rf,t]}],"font-features":[{"font-features":[R]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,P,R]}],"line-clamp":[{"line-clamp":[O,"none",P,tl]}],leading:[{leading:[s,...L()]}],"list-image":[{"list-image":["none",P,R]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:v()}],"text-color":[{text:v()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",P,ot]}],"text-decoration-color":[{decoration:v()}],"underline-offset":[{"underline-offset":[O,"auto",P,R]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"tab-size":[{tab:[Me,P,R]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,R]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P,R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ce()}],"bg-repeat":[{bg:Ie()}],"bg-size":[{bg:Ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Me,P,R],radial:["",P,R],conic:[Me,P,R]},Mf,Pf]}],"bg-color":[{bg:v()}],"gradient-from-pos":[{from:Te()}],"gradient-via-pos":[{via:Te()}],"gradient-to-pos":[{to:Te()}],"gradient-from":[{from:v()}],"gradient-via":[{via:v()}],"gradient-to":[{to:v()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-bs":[{"border-bs":W()}],"border-w-be":[{"border-be":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:v()}],"border-color-x":[{"border-x":v()}],"border-color-y":[{"border-y":v()}],"border-color-s":[{"border-s":v()}],"border-color-e":[{"border-e":v()}],"border-color-bs":[{"border-bs":v()}],"border-color-be":[{"border-be":v()}],"border-color-t":[{"border-t":v()}],"border-color-r":[{"border-r":v()}],"border-color-b":[{"border-b":v()}],"border-color-l":[{"border-l":v()}],"divide-color":[{divide:v()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,P,R]}],"outline-w":[{outline:["",O,Et,ot]}],"outline-color":[{outline:v()}],shadow:[{shadow:["","none",i,Sa,wa]}],"shadow-color":[{shadow:v()}],"inset-shadow":[{"inset-shadow":["none",d,Sa,wa]}],"inset-shadow-color":[{"inset-shadow":v()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:v()}],"ring-offset-w":[{"ring-offset":[O,ot]}],"ring-offset-color":[{"ring-offset":v()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":v()}],"text-shadow":[{"text-shadow":["none",c,Sa,wa]}],"text-shadow-color":[{"text-shadow":v()}],opacity:[{opacity:[O,P,R]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":v()}],"mask-image-linear-to-color":[{"mask-linear-to":v()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":v()}],"mask-image-t-to-color":[{"mask-t-to":v()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":v()}],"mask-image-r-to-color":[{"mask-r-to":v()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":v()}],"mask-image-b-to-color":[{"mask-b-to":v()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":v()}],"mask-image-l-to-color":[{"mask-l-to":v()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":v()}],"mask-image-x-to-color":[{"mask-x-to":v()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":v()}],"mask-image-y-to-color":[{"mask-y-to":v()}],"mask-image-radial":[{"mask-radial":[P,R]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":v()}],"mask-image-radial-to-color":[{"mask-radial-to":v()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":v()}],"mask-image-conic-to-color":[{"mask-conic-to":v()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ce()}],"mask-repeat":[{mask:Ie()}],"mask-size":[{mask:Ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,R]}],filter:[{filter:["","none",P,R]}],blur:[{blur:Ut()}],brightness:[{brightness:[O,P,R]}],contrast:[{contrast:[O,P,R]}],"drop-shadow":[{"drop-shadow":["","none",p,Sa,wa]}],"drop-shadow-color":[{"drop-shadow":v()}],grayscale:[{grayscale:["",O,P,R]}],"hue-rotate":[{"hue-rotate":[O,P,R]}],invert:[{invert:["",O,P,R]}],saturate:[{saturate:[O,P,R]}],sepia:[{sepia:["",O,P,R]}],"backdrop-filter":[{"backdrop-filter":["","none",P,R]}],"backdrop-blur":[{"backdrop-blur":Ut()}],"backdrop-brightness":[{"backdrop-brightness":[O,P,R]}],"backdrop-contrast":[{"backdrop-contrast":[O,P,R]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,P,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,P,R]}],"backdrop-invert":[{"backdrop-invert":["",O,P,R]}],"backdrop-opacity":[{"backdrop-opacity":[O,P,R]}],"backdrop-saturate":[{"backdrop-saturate":[O,P,R]}],"backdrop-sepia":[{"backdrop-sepia":["",O,P,R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,R]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",P,R]}],ease:[{ease:["linear","initial",g,P,R]}],delay:[{delay:[O,P,R]}],animate:[{animate:["none",I,P,R]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,P,R]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:lt()}],"rotate-x":[{"rotate-x":lt()}],"rotate-y":[{"rotate-y":lt()}],"rotate-z":[{"rotate-z":lt()}],scale:[{scale:ut()}],"scale-x":[{"scale-x":ut()}],"scale-y":[{"scale-y":ut()}],"scale-z":[{"scale-z":ut()}],"scale-3d":["scale-3d"],skew:[{skew:Lt()}],"skew-x":[{"skew-x":Lt()}],"skew-y":[{"skew-y":Lt()}],transform:[{transform:[P,R,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Fe()}],"translate-x":[{"translate-x":Fe()}],"translate-y":[{"translate-y":Fe()}],"translate-z":[{"translate-z":Fe()}],"translate-none":["translate-none"],zoom:[{zoom:[Me,P,R]}],accent:[{accent:v()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:v()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P,R]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":v()}],"scrollbar-track-color":[{"scrollbar-track":v()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P,R]}],fill:[{fill:["none",...v()]}],"stroke-w":[{stroke:[O,Et,ot,tl]}],stroke:[{stroke:["none",...v()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Ll=ff(Ff);function st(...e){return Ll(_t(e))}import{jsx as Bf}from"react/jsx-runtime";var Of=Xo("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Il({className:e,variant:t="default",size:a="default",asChild:o=!1,...r}){let s=o?Ht.Root:"button";return Bf(s,{"data-slot":"button","data-variant":t,"data-size":a,className:st(Of({variant:t,size:a,className:e})),...r})}import{forwardRef as qf,createElement as Uf}from"react";var Cl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ba=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as Ef,createElement as Sl}from"react";var wl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var vl=Ef(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:n,...l},f)=>Sl("svg",{ref:f,...wl,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:ba("lucide",r),...l},[...n.map(([u,i])=>Sl(u,i)),...Array.isArray(s)?s:[s]]));var bl=(e,t)=>{let a=qf(({className:o,...r},s)=>Uf(vl,{ref:s,iconNode:t,className:ba(`lucide-${Cl(e)}`,o),...r}));return a.displayName=`${e}`,a};var qt=bl("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);import{jsx as De,jsxs as _f}from"react/jsx-runtime";function yl({...e}){return De(Le.Root,{"data-slot":"dropdown-menu",...e})}function Rl({...e}){return De(Le.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function Pl({className:e,sideOffset:t=4,...a}){return De(Le.Portal,{children:De(Le.Content,{"data-slot":"dropdown-menu-content",sideOffset:t,className:st("z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...a})})}function kl({...e}){return De(Le.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function ya({className:e,children:t,...a}){return _f(Le.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:st("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a,children:[De("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:De(Le.ItemIndicator,{children:De(qt,{className:"size-2 fill-current"})})}),t]})}function Al({className:e,inset:t,...a}){return De(Le.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:st("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...a})}function Ml({className:e,...t}){return De(Le.Separator,{"data-slot":"dropdown-menu-separator",className:st("-mx-1 my-1 h-px bg-border",e),...t})}import{jsx as nt,jsxs as Ho}from"react/jsx-runtime";function Nf(){let[e,t]=Dl.useState("bottom");return Ho(yl,{children:[nt(Rl,{asChild:!0,children:nt(Il,{variant:"outline",children:"Open"})}),Ho(Pl,{className:"w-56",children:[nt(Al,{children:"Panel Position"}),nt(Ml,{}),Ho(kl,{value:e,onValueChange:t,children:[nt(ya,{value:"top",children:"Top"}),nt(ya,{value:"bottom",children:"Bottom"}),nt(ya,{value:"right",children:"Right"})]})]})]})}export{Nf as default}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/circle.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/892ccc27e92d2f560a336984136d64bbc0765ad8097c669e58de561406b6c8cf b/b/892ccc27e92d2f560a336984136d64bbc0765ad8097c669e58de561406b6c8cf new file mode 100644 index 0000000000000000000000000000000000000000..3edc74321118eaab387aafd6a3e0e48d8973a688 --- /dev/null +++ b/b/892ccc27e92d2f560a336984136d64bbc0765ad8097c669e58de561406b6c8cf @@ -0,0 +1,21 @@ +{ + "id": "org.hologram.ui.chart.chart-line-multiple", + "name": "chart-line-multiple", + "tier": "chart", + "library": "shadcn", + "category": "Charts · Line", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/chart-line-multiple.json", + "did": "did:holo:sha256:8d55a8b24aaefccd5770af5b82ca979f6f8d291ebb719faf90e6c54178cdb705", + "import": "holo://sha256:31954ef885a382967b906460c07024d904efadbbeeddecf43134b74f2e7939bd", + "integrity": "sha256-MZVO+IWjgpZ7kGRgwHAk2QTvrbvu3ez0MTS3Ty55Ob0=", + "kappa": "sha256:8d55a8b24aaefccd5770af5b82ca979f6f8d291ebb719faf90e6c54178cdb705", + "moduleKappa": "sha256:31954ef885a382967b906460c07024d904efadbbeeddecf43134b74f2e7939bd", + "renderExport": "ChartLineMultiple", + "source": "registry/new-york-v4/charts/chart-line-multiple.tsx", + "module": "vendor/components/chart-line-multiple.js", + "exports": [ + "description", + "ChartLineMultiple" + ], + "license": "MIT" +} diff --git a/b/893afbef800b44f2a516d279c28dafc882b94c5f64430b1c173d99098489a2d5 b/b/893afbef800b44f2a516d279c28dafc882b94c5f64430b1c173d99098489a2d5 new file mode 100644 index 0000000000000000000000000000000000000000..60c3bc1696d1ee03cd95570f5e9b69319149a00c --- /dev/null +++ b/b/893afbef800b44f2a516d279c28dafc882b94c5f64430b1c173d99098489a2d5 @@ -0,0 +1,26 @@ +{ + "id": "org.hologram.ui.card", + "name": "card", + "tier": "component", + "library": "shadcn", + "category": "Layout", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/card.json", + "did": "did:holo:sha256:c48dd3b96be90a7066f1aebf294f0af9d00ebcdc367d5d4aca55429ade570c1c", + "import": "holo://sha256:c142f11fba89d9c6e44cf47f9f57bba27b2340534c90109fb5cad8adc39fbd36", + "integrity": "sha256-wULxH7qJ2cbkTPR/n1e7onsjQFNMkBCftcrYrcOfvTY=", + "kappa": "sha256:c48dd3b96be90a7066f1aebf294f0af9d00ebcdc367d5d4aca55429ade570c1c", + "moduleKappa": "sha256:c142f11fba89d9c6e44cf47f9f57bba27b2340534c90109fb5cad8adc39fbd36", + "renderExport": "Card", + "source": "components/ui/card.tsx", + "module": "vendor/components/card.js", + "exports": [ + "Card", + "CardHeader", + "CardFooter", + "CardTitle", + "CardAction", + "CardDescription", + "CardContent" + ], + "license": "MIT" +} diff --git a/b/8943024bc4d9c68fa5121e7f0f455bbd0002f3a7aceb5e2b936af43b4cdac56b b/b/8943024bc4d9c68fa5121e7f0f455bbd0002f3a7aceb5e2b936af43b4cdac56b new file mode 100644 index 0000000000000000000000000000000000000000..970c315c47fe3f5040e9fd5bb06f3e2be35c9aee --- /dev/null +++ b/b/8943024bc4d9c68fa5121e7f0f455bbd0002f3a7aceb5e2b936af43b4cdac56b @@ -0,0 +1,22 @@ +{ + "id": "org.hologram.ui.scroll-based-velocity", + "name": "scroll-based-velocity", + "tier": "component", + "library": "magicui", + "category": "Text", + "upstream": "https://magicui.design/r/scroll-based-velocity.json", + "did": "did:holo:sha256:17cebe769a2337587bcb0e8e5d3ebd71f5b7ffc27ad1f6f59a8971f5d277b844", + "import": "holo://sha256:c0a1b9614d97a68fc68577b4acc79e0e99ed89699a6c5da5de724c355af611cb", + "integrity": "sha256-wKG5YU2Xpo/GhXe0rMeeDpntiWmabF2l3nJMNVr2Ecs=", + "kappa": "sha256:17cebe769a2337587bcb0e8e5d3ebd71f5b7ffc27ad1f6f59a8971f5d277b844", + "moduleKappa": "sha256:c0a1b9614d97a68fc68577b4acc79e0e99ed89699a6c5da5de724c355af611cb", + "renderExport": "ScrollVelocityContainer", + "source": "components/ui/scroll-based-velocity.tsx", + "module": "vendor/components/scroll-based-velocity.js", + "exports": [ + "wrap", + "ScrollVelocityContainer", + "ScrollVelocityRow" + ], + "license": "MIT" +} diff --git a/b/894a74b5fa45c7cc6d7292bc30d1ad1678abedec2a4d5f20639742b4df4f5968 b/b/894a74b5fa45c7cc6d7292bc30d1ad1678abedec2a4d5f20639742b4df4f5968 new file mode 100644 index 0000000000000000000000000000000000000000..f016fb3099c5fee1ab90dd8f1bd5ca315a80538c --- /dev/null +++ b/b/894a74b5fa45c7cc6d7292bc30d1ad1678abedec2a4d5f20639742b4df4f5968 @@ -0,0 +1,3 @@ +/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).DOMPurify=t()}(this,(function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),s||(s=function(e,t){return new e(...t)});const u=b(Array.prototype.forEach),m=b(Array.prototype.pop),p=b(Array.prototype.push),f=b(String.prototype.toLowerCase),d=b(String.prototype.toString),h=b(String.prototype.match),g=b(String.prototype.replace),T=b(String.prototype.indexOf),y=b(String.prototype.trim),E=b(Object.prototype.hasOwnProperty),_=b(RegExp.prototype.test),A=(N=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:f;t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"==typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function R(e){for(let t=0;t/gm),B=a(/\${[\w\W]*}/gm),W=a(/^data-[\-\w.\u00B7-\uFFFF]/),G=a(/^aria-[\-\w]+$/),Y=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j=a(/^(?:\w+script|data):/i),X=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=a(/^html$/i),$=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var K=Object.freeze({__proto__:null,MUSTACHE_EXPR:H,ERB_EXPR:z,TMPLIT_EXPR:B,DATA_ATTR:W,ARIA_ATTR:G,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:X,DOCTYPE_NAME:q,CUSTOM_ELEMENT:$});const V=1,Z=3,J=7,Q=8,ee=9,te=function(){return"undefined"==typeof window?null:window};var ne=function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const o=e=>t(e);if(o.version="3.1.7",o.removed=[],!n||!n.document||n.document.nodeType!==ee)return o.isSupported=!1,o;let{document:r}=n;const a=r,c=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:N,Node:b,Element:R,NodeFilter:H,NamedNodeMap:z=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:B,DOMParser:W,trustedTypes:G}=n,j=R.prototype,X=C(j,"cloneNode"),$=C(j,"remove"),ne=C(j,"nextSibling"),oe=C(j,"childNodes"),re=C(j,"parentNode");if("function"==typeof N){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ie,ae="";const{implementation:le,createNodeIterator:ce,createDocumentFragment:se,getElementsByTagName:ue}=r,{importNode:me}=a;let pe={};o.isSupported="function"==typeof e&&"function"==typeof re&&le&&void 0!==le.createHTMLDocument;const{MUSTACHE_EXPR:fe,ERB_EXPR:de,TMPLIT_EXPR:he,DATA_ATTR:ge,ARIA_ATTR:Te,IS_SCRIPT_OR_DATA:ye,ATTR_WHITESPACE:Ee,CUSTOM_ELEMENT:_e}=K;let{IS_ALLOWED_URI:Ae}=K,Ne=null;const be=S({},[...L,...v,...D,...x,...M]);let Se=null;const Re=S({},[...I,...U,...P,...F]);let we=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,Le=null,ve=!0,De=!0,Oe=!1,xe=!0,ke=!1,Me=!0,Ie=!1,Ue=!1,Pe=!1,Fe=!1,He=!1,ze=!1,Be=!0,We=!1,Ge=!0,Ye=!1,je={},Xe=null;const qe=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $e=null;const Ke=S({},["audio","video","img","source","image","track"]);let Ve=null;const Ze=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,nt=!1,ot=null;const rt=S({},[Je,Qe,et],d);let it=null;const at=["application/xhtml+xml","text/html"];let lt=null,ct=null;const st=r.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},mt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"==typeof e||(e={}),e=w(e),it=-1===at.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,lt="application/xhtml+xml"===it?d:f,Ne=E(e,"ALLOWED_TAGS")?S({},e.ALLOWED_TAGS,lt):be,Se=E(e,"ALLOWED_ATTR")?S({},e.ALLOWED_ATTR,lt):Re,ot=E(e,"ALLOWED_NAMESPACES")?S({},e.ALLOWED_NAMESPACES,d):rt,Ve=E(e,"ADD_URI_SAFE_ATTR")?S(w(Ze),e.ADD_URI_SAFE_ATTR,lt):Ze,$e=E(e,"ADD_DATA_URI_TAGS")?S(w(Ke),e.ADD_DATA_URI_TAGS,lt):Ke,Xe=E(e,"FORBID_CONTENTS")?S({},e.FORBID_CONTENTS,lt):qe,Ce=E(e,"FORBID_TAGS")?S({},e.FORBID_TAGS,lt):{},Le=E(e,"FORBID_ATTR")?S({},e.FORBID_ATTR,lt):{},je=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,ve=!1!==e.ALLOW_ARIA_ATTR,De=!1!==e.ALLOW_DATA_ATTR,Oe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,Me=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,We=e.SANITIZE_NAMED_PROPS||!1,Ge=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,Ae=e.ALLOWED_URI_REGEXP||Y,tt=e.NAMESPACE||et,we=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(we.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(we.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(we.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(De=!1),He&&(Fe=!0),je&&(Ne=S({},M),Se=[],!0===je.html&&(S(Ne,L),S(Se,I)),!0===je.svg&&(S(Ne,v),S(Se,U),S(Se,F)),!0===je.svgFilters&&(S(Ne,D),S(Se,U),S(Se,F)),!0===je.mathMl&&(S(Ne,x),S(Se,P),S(Se,F))),e.ADD_TAGS&&(Ne===be&&(Ne=w(Ne)),S(Ne,e.ADD_TAGS,lt)),e.ADD_ATTR&&(Se===Re&&(Se=w(Se)),S(Se,e.ADD_ATTR,lt)),e.ADD_URI_SAFE_ATTR&&S(Ve,e.ADD_URI_SAFE_ATTR,lt),e.FORBID_CONTENTS&&(Xe===qe&&(Xe=w(Xe)),S(Xe,e.FORBID_CONTENTS,lt)),Ge&&(Ne["#text"]=!0),Ie&&S(Ne,["html","head","body"]),Ne.table&&(S(Ne,["tbody"]),delete Ce.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ie=e.TRUSTED_TYPES_POLICY,ae=ie.createHTML("")}else void 0===ie&&(ie=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(G,c)),null!==ie&&"string"==typeof ae&&(ae=ie.createHTML(""));i&&i(e),ct=e}},pt=S({},["mi","mo","mn","ms","mtext"]),ft=S({},["annotation-xml"]),dt=S({},["title","style","font","a","script"]),ht=S({},[...v,...D,...O]),gt=S({},[...x,...k]),Tt=function(e){p(o.removed,{element:e});try{re(e).removeChild(e)}catch(t){$(e)}},yt=function(e,t){try{p(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(Fe||He)try{Tt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){let t=null,n=null;if(Pe)e=""+e;else{const t=h(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&tt===et&&(e=''+e+"");const o=ie?ie.createHTML(e):e;if(tt===et)try{t=(new W).parseFromString(o,it)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?ae:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),tt===et?ue.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},_t=function(e){return ce.call(e.ownerDocument||e,e,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT|H.SHOW_PROCESSING_INSTRUCTION|H.SHOW_CDATA_SECTION,null)},At=function(e){return e instanceof B&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof z)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Nt=function(e){return"function"==typeof b&&e instanceof b},bt=function(e,t,n){pe[e]&&u(pe[e],(e=>{e.call(o,t,n,ct)}))},St=function(e){let t=null;if(bt("beforeSanitizeElements",e,null),At(e))return Tt(e),!0;const n=lt(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:n,allowedTags:Ne}),e.hasChildNodes()&&!Nt(e.firstElementChild)&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return Tt(e),!0;if(e.nodeType===J)return Tt(e),!0;if(Me&&e.nodeType===Q&&_(/<[/\w]/g,e.data))return Tt(e),!0;if(!Ne[n]||Ce[n]){if(!Ce[n]&&wt(n)){if(we.tagNameCheck instanceof RegExp&&_(we.tagNameCheck,n))return!1;if(we.tagNameCheck instanceof Function&&we.tagNameCheck(n))return!1}if(Ge&&!Xe[n]){const t=re(e)||e.parentNode,n=oe(e)||e.childNodes;if(n&&t){for(let o=n.length-1;o>=0;--o){const r=X(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,ne(e))}}}return Tt(e),!0}return e instanceof R&&!function(e){let t=re(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const n=f(e.tagName),o=f(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===Qe?t.namespaceURI===et?"svg"===n:t.namespaceURI===Je?"svg"===n&&("annotation-xml"===o||pt[o]):Boolean(ht[n]):e.namespaceURI===Je?t.namespaceURI===et?"math"===n:t.namespaceURI===Qe?"math"===n&&ft[o]:Boolean(gt[n]):e.namespaceURI===et?!(t.namespaceURI===Qe&&!ft[o])&&!(t.namespaceURI===Je&&!pt[o])&&!gt[n]&&(dt[n]||!ht[n]):!("application/xhtml+xml"!==it||!ot[e.namespaceURI]))}(e)?(Tt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!_(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&e.nodeType===Z&&(t=e.textContent,u([fe,de,he],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(o.removed,{element:e.cloneNode()}),e.textContent=t)),bt("afterSanitizeElements",e,null),!1):(Tt(e),!0)},Rt=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in r||n in st))return!1;if(De&&!Le[t]&&_(ge,t));else if(ve&&_(Te,t));else if(!Se[t]||Le[t]){if(!(wt(e)&&(we.tagNameCheck instanceof RegExp&&_(we.tagNameCheck,e)||we.tagNameCheck instanceof Function&&we.tagNameCheck(e))&&(we.attributeNameCheck instanceof RegExp&&_(we.attributeNameCheck,t)||we.attributeNameCheck instanceof Function&&we.attributeNameCheck(t))||"is"===t&&we.allowCustomizedBuiltInElements&&(we.tagNameCheck instanceof RegExp&&_(we.tagNameCheck,n)||we.tagNameCheck instanceof Function&&we.tagNameCheck(n))))return!1}else if(Ve[t]);else if(_(Ae,g(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(n,"data:")||!$e[e]){if(Oe&&!_(ye,g(n,Ee,"")));else if(n)return!1}else;return!0},wt=function(e){return"annotation-xml"!==e&&h(e,_e)},Ct=function(e){bt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:c}=i,s=lt(a);let p="value"===a?c:y(c);if(n.attrName=s,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,bt("uponSanitizeAttribute",e,n),p=n.attrValue,n.forceKeepAttr)continue;if(yt(a,e),!n.keepAttr)continue;if(!xe&&_(/\/>/i,p)){yt(a,e);continue}ke&&u([fe,de,he],(e=>{p=g(p,e," ")}));const f=lt(e.nodeName);if(Rt(f,s,p))if(!We||"id"!==s&&"name"!==s||(yt(a,e),p="user-content-"+p),Me&&_(/((--!?|])>)|<\/(style|title)/i,p))yt(a,e);else{if(ie&&"object"==typeof G&&"function"==typeof G.getAttributeType)if(l);else switch(G.getAttributeType(f,s)){case"TrustedHTML":p=ie.createHTML(p);break;case"TrustedScriptURL":p=ie.createScriptURL(p)}try{l?e.setAttributeNS(l,a,p):e.setAttribute(a,p),At(e)?Tt(e):m(o.removed)}catch(e){}}}bt("afterSanitizeAttributes",e,null)},Lt=function e(t){let n=null;const o=_t(t);for(bt("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)bt("uponSanitizeShadowNode",n,null),St(n)||(n.content instanceof s&&e(n.content),Ct(n));bt("afterSanitizeShadowDOM",t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,i=null,l=null;if(nt=!e,nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Nt(e)){if("function"!=typeof e.toString)throw A("toString is not a function");if("string"!=typeof(e=e.toString()))throw A("dirty is not a string, aborting")}if(!o.isSupported)return e;if(Ue||mt(t),o.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=lt(e.nodeName);if(!Ne[t]||Ce[t])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof b)n=Et("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===V&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Fe&&!ke&&!Ie&&-1===e.indexOf("<"))return ie&&ze?ie.createHTML(e):e;if(n=Et(e),!n)return Fe?null:ze?ae:""}n&&Pe&&Tt(n.firstChild);const c=_t(Ye?e:n);for(;i=c.nextNode();)St(i)||(i.content instanceof s&&Lt(i.content),Ct(i));if(Ye)return e;if(Fe){if(He)for(l=se.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Se.shadowroot||Se.shadowrootmode)&&(l=me.call(a,l,!0)),l}let m=Ie?n.outerHTML:n.innerHTML;return Ie&&Ne["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(q,n.ownerDocument.doctype.name)&&(m="\n"+m),ke&&u([fe,de,he],(e=>{m=g(m,e," ")})),ie&&ze?ie.createHTML(m):m},o.setConfig=function(){mt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ue=!0},o.clearConfig=function(){ct=null,Ue=!1},o.isValidAttribute=function(e,t,n){ct||mt({});const o=lt(e),r=lt(t);return Rt(o,r,n)},o.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],p(pe[e],t))},o.removeHook=function(e){if(pe[e])return m(pe[e])},o.removeHooks=function(e){pe[e]&&(pe[e]=[])},o.removeAllHooks=function(){pe={}},o}();return ne})); +//# sourceMappingURL=purify.min.js.map diff --git a/b/897eb735402914c26067e7dff5dee2da621681de98e52d87b6cd465f3ee3de39 b/b/897eb735402914c26067e7dff5dee2da621681de98e52d87b6cd465f3ee3de39 new file mode 100644 index 0000000000000000000000000000000000000000..81ab069827851bc82554396fb08a56e3bccd2ba1 --- /dev/null +++ b/b/897eb735402914c26067e7dff5dee2da621681de98e52d87b6cd465f3ee3de39 @@ -0,0 +1,224 @@ +"use client" + +import * as React from "react" +import { zodResolver } from "@hookform/resolvers/zod" +import { CheckIcon } from "lucide-react" +import { Controller, useForm, useWatch } from "react-hook-form" +import { toast } from "sonner" +import * as z from "zod" + +import { Button } from "@/registry/new-york-v4/ui/button" +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + Field, + FieldError, + FieldGroup, + FieldLabel, +} from "@/registry/new-york-v4/ui/field" +import { + InputGroup, + InputGroupAddon, + InputGroupInput, +} from "@/registry/new-york-v4/ui/input-group" +import { Progress } from "@/registry/new-york-v4/ui/progress" + +const passwordRequirements = [ + { + id: "length", + label: "At least 8 characters", + test: (val: string) => val.length >= 8, + }, + { + id: "lowercase", + label: "One lowercase letter", + test: (val: string) => /[a-z]/.test(val), + }, + { + id: "uppercase", + label: "One uppercase letter", + test: (val: string) => /[A-Z]/.test(val), + }, + { id: "number", label: "One number", test: (val: string) => /\d/.test(val) }, + { + id: "special", + label: "One special character", + test: (val: string) => /[!@#$%^&*(),.?":{}|<>]/.test(val), + }, +] + +const formSchema = z.object({ + password: z + .string() + .min(8, "Password must be at least 8 characters") + .refine( + (val) => /[a-z]/.test(val), + "Password must contain at least one lowercase letter" + ) + .refine( + (val) => /[A-Z]/.test(val), + "Password must contain at least one uppercase letter" + ) + .refine( + (val) => /\d/.test(val), + "Password must contain at least one number" + ) + .refine( + (val) => /[!@#$%^&*(),.?":{}|<>]/.test(val), + "Password must contain at least one special character" + ), +}) + +export default function FormRhfPassword() { + const form = useForm>({ + resolver: zodResolver(formSchema), + defaultValues: { + password: "", + }, + }) + + const password = useWatch({ + control: form.control, + name: "password", + }) + + // Calculate password strength. + const metRequirements = passwordRequirements.filter((req) => + req.test(password || "") + ) + const strengthPercentage = + (metRequirements.length / passwordRequirements.length) * 100 + + // Determine strength level and color. + const getStrengthColor = () => { + if (strengthPercentage === 0) return "bg-neutral-200" + if (strengthPercentage <= 40) return "bg-red-500" + if (strengthPercentage <= 80) return "bg-yellow-500" + return "bg-green-500" + } + + const allRequirementsMet = + metRequirements.length === passwordRequirements.length + + function onSubmit(data: z.infer) { + toast("You submitted the following values:", { + description: ( +
+          {JSON.stringify(data, null, 2)}
+        
+ ), + position: "bottom-right", + classNames: { + content: "flex flex-col gap-2", + }, + style: { + "--border-radius": "calc(var(--radius) + 4px)", + } as React.CSSProperties, + }) + } + + return ( + + + Create Password + + Choose a strong password to secure your account. + + + +
+ + ( + + + Password + + + + + + + + + {/* Password strength meter. */} +
+ + + {/* Requirements list. */} +
+ {passwordRequirements.map((requirement) => { + const isMet = requirement.test(password || "") + return ( +
+ + + {requirement.label} + +
+ ) + })} +
+
+ + {fieldState.invalid && ( + + )} +
+ )} + /> +
+
+
+ + + + + + +
+ ) +} diff --git a/b/89a1d25a1a802a424a3d780fff77bc93a3cfa2dad4679d6cd349f14b9748cdb8 b/b/89a1d25a1a802a424a3d780fff77bc93a3cfa2dad4679d6cd349f14b9748cdb8 new file mode 100644 index 0000000000000000000000000000000000000000..b6fc3cc90b48127e99e74ef3cca2a422ff80d252 --- /dev/null +++ b/b/89a1d25a1a802a424a3d780fff77bc93a3cfa2dad4679d6cd349f14b9748cdb8 @@ -0,0 +1,53 @@ +{ + "id": "org.hologram.GgufForge", + "name": "GGUF Forge", + "type": [ + "schema:SoftwareApplication", + "schema:SoftwareSourceCode" + ], + "summary": "Imports any GGUF LLM and compiles it into κ-addressable objects that run natively in the substrate, byte-faithful to upstream llama.cpp.", + "entry": "gguf-forge.mjs", + "conforms": { + "specs": [ + "law-l5", + "holo-constitution", + "verifiable-inference", + "gguf-forge" + ] + }, + "capabilities": { + "storage": [ + "org.hologram.GgufForge" + ] + }, + "engines": [ + "forge-cpu-oracle", + "forge-gpu-wgsl" + ], + "description": [ + { + "p": "GGUF carries weights and hyperparameters but no compute graph. The Forge parses any GGUF, preserves each tensor's original quantized bytes as a content-addressed κ-object, synthesizes the transformer graph from metadata, and executes it — a Tier-A CPU oracle (bit-faithful, float32-exact) and a Tier-B WebGPU runtime (greedy-token-identical)." + }, + { + "ul": [ + "Every weight tensor is a did:holo:sha256 κ-object; original quant bytes preserved (no re-quantization)", + "Forward pass matches upstream llama.cpp (greedy parity; logit cosine 0.9996)", + "BPE tokenizer conformant with llama_tokenize", + "All GPU kernels witnessed on real WebGPU against the CPU oracle", + "Tamper of any κ-block is refused (Law L5)" + ] + } + ], + "developer": { + "id": "org.hologram", + "name": "Hologram Technologies" + }, + "license": "MIT", + "releases": [ + { + "version": "0.1", + "date": "2026-06-18", + "description": "GGUF→κ forge: import any HuggingFace GGUF, preserve original quant bytes as κ-objects, synthesize the transformer graph, run a float32-exact CPU oracle (witnessed against qvac-fabric-llm.cpp / llama.cpp) and a WebGPU Tier-B runtime. Proven end-to-end on Qwen2.5-0.5B (predicts the correct next token, matching upstream)." + } + ] +} diff --git a/b/89b0ad6ec6f7a108c5ea5235a1d0e67c2c479adab938a15dd51a3c504f0d05d4 b/b/89b0ad6ec6f7a108c5ea5235a1d0e67c2c479adab938a15dd51a3c504f0d05d4 new file mode 100644 index 0000000000000000000000000000000000000000..030bcbfcfb4918111edc3a64d305fe8794deffe6 --- /dev/null +++ b/b/89b0ad6ec6f7a108c5ea5235a1d0e67c2c479adab938a15dd51a3c504f0d05d4 @@ -0,0 +1,7 @@ +import list from './object.js'; +import { addPrefix } from '../../functions/addPrefix.js'; + +export default ({ addComponents, prefix = '' }) => { + const prefixedlist = addPrefix(list, prefix); + addComponents({ ...prefixedlist }); +}; diff --git a/b/89c850846144bdf1df6530869bebbb07fabcd7c215fe2aafd4b6099bb3a759df b/b/89c850846144bdf1df6530869bebbb07fabcd7c215fe2aafd4b6099bb3a759df new file mode 100644 index 0000000000000000000000000000000000000000..ec1f88bb239b51d447e0298ce43a9e01ac686f35 --- /dev/null +++ b/b/89c850846144bdf1df6530869bebbb07fabcd7c215fe2aafd4b6099bb3a759df @@ -0,0 +1,48 @@ +// Witness the adapter .holo TRANSPORT the Q #adapter=κ chain rides: forge a LoRA adapter (attn_q) into a +// κ-addressed .holo, then open it the way createHoloModelBrain does (fetch κ → openAdapterHolo) and prove the +// decoded {target,scale,r,layers} round-trips EXACTLY, and that a tampered body is REFUSED (L5 footer). +// (The adapter DELTA math — y += scale·B·(A·x) — is already witnessed bit-exact + argmax-flipping by the C0/C1 +// GPU-vs-CPU parity; this closes the by-κ transport that feeds createHoloBrain({adapter}).) +import { writeHoloArchive } from "../holo-archive.mjs"; +import { genTestAdapter, openAdapterHolo } from "../gpu/holo-lora.mjs"; +import { sha256hex } from "../../../../../holo-os/system/os/usr/lib/holo/holo-uor.mjs"; + +let pass = 0, fail = 0; const ok = (c, m) => { if (c) { console.log(` ok ${m}`); pass++; } else { console.log(` XX ${m}`); fail++; } }; + +// qwen attn_q dims (inn = n_embd, out = n_head·head_dim); synthetic so no 500MB base model is needed. +const inn = 896, out = 896, r = 8, scale = 1.0, nLayer = 24; +const ad = genTestAdapter({ seed: 1, inn, out, r, nLayer, scale, amp: 0.3 }); + +const u8 = (a) => new Uint8Array(a.buffer, a.byteOffset, a.byteLength); +const bodies = [], order = []; +for (let L = 0; L < nLayer; L++) { + for (const [nm, arr] of [["blk." + L + ".A", ad.layers[L].A], ["blk." + L + ".B", ad.layers[L].B]]) { + const bytes = u8(arr), kappa = sha256hex(bytes); bodies.push({ kappa, bytes }); order.push({ name: nm, kappa }); + } +} +const meta = { format: "holo-adapter/1", target: "attn_q", r, scale, inn, out, nLayer, baseModel: "sha256:test", order }; +const { holo, footer, bytes } = writeHoloArchive({ meta, bodies, extKey: "holo.adapter" }); +console.log(`forged adapter .holo (${(bytes / 1e3 | 0)} KB, ${nLayer}×{A,B}, footer ${String(footer).slice(0, 28)}…)`); + +// OPEN exactly as createHoloModelBrain does post-fetch: openAdapterHolo(new Uint8Array(bytes)) +const got = openAdapterHolo(new Uint8Array(holo)); +ok(got.target === "attn_q", `target round-trips ("${got.target}")`); +ok(got.r === r && got.scale === scale && got.nLayer === nLayer && got.inn === inn && got.out === out, "r/scale/nLayer/inn/out round-trip"); +ok(got.layers.length === nLayer, `${got.layers.length} layers decoded`); +ok(got.layers[0].A.length === r * inn && got.layers[0].B.length === out * r, "per-layer A:[r×inn] B:[out×r] shapes exact"); +// the engine will use these EXACT bytes in P.f·P.f·P.saxpy — assert they equal the forged adapter, every layer +let exact = true; +for (let L = 0; L < nLayer && exact; L++) { + const a = ad.layers[L].A, ga = got.layers[L].A, b = ad.layers[L].B, gb = got.layers[L].B; + for (let i = 0; i < a.length; i++) if (a[i] !== ga[i]) { exact = false; break; } + for (let i = 0; i < b.length && exact; i++) if (b[i] !== gb[i]) { exact = false; break; } +} +ok(exact, "decoded A/B == forged A/B, bit-exact across ALL layers (the delta the engine applies is the sealed one)"); + +// tamper one body byte → openAdapterHolo must REFUSE (L5), not serve a wrong weight +let refused = false; +try { const bad = new Uint8Array(holo); bad[(bad.length >> 1) | 0] ^= 0xff; openAdapterHolo(bad); } catch { refused = true; } +ok(refused, "tampered adapter body → openAdapterHolo REFUSES (L5 fail-closed)"); + +console.log(`\n${pass}/${pass + fail} green${fail ? " — FAIL" : " — WITNESSED: adapter rides the κ-transport createHoloBrain({adapter}) consumes (forge→κ-bodies→L5-open→exact delta)"}`); +process.exit(fail ? 1 : 0); diff --git a/b/8a0e23ce10155e0668aeee962627ed56b605631dc53d0835c80ab59fc2e9bf3f b/b/8a0e23ce10155e0668aeee962627ed56b605631dc53d0835c80ab59fc2e9bf3f new file mode 100644 index 0000000000000000000000000000000000000000..e2b8e8d2d1cc3781490ad39c63f653a01b88f860 --- /dev/null +++ b/b/8a0e23ce10155e0668aeee962627ed56b605631dc53d0835c80ab59fc2e9bf3f @@ -0,0 +1 @@ +/*! 🌼 daisyUI 5.5.22 - MIT License */ @layer utilities{.fieldset{@layer daisyui.l1.l2.l3{&{grid-template-columns:1fr;grid-auto-rows:max-content;gap:.375rem;padding-block:.25rem;font-size:.75rem;display:grid}}}.fieldset-legend{@layer daisyui.l1.l2.l3{&{color:var(--color-base-content);justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:-.25rem;padding-block:.5rem;font-weight:600;display:flex}}}.fieldset-label{@layer daisyui.l1.l2.l3{&{color:color-mix(in oklab,var(--color-base-content)60%,transparent);align-items:center;gap:.375rem;display:flex}&:has(input){cursor:pointer}}}@media (width>=640px){.sm\:fieldset{@layer daisyui.l1.l2.l3{&{grid-template-columns:1fr;grid-auto-rows:max-content;gap:.375rem;padding-block:.25rem;font-size:.75rem;display:grid}}}.sm\:fieldset-legend{@layer daisyui.l1.l2.l3{&{color:var(--color-base-content);justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:-.25rem;padding-block:.5rem;font-weight:600;display:flex}}}.sm\:fieldset-label{@layer daisyui.l1.l2.l3{&{color:color-mix(in oklab,var(--color-base-content)60%,transparent);align-items:center;gap:.375rem;display:flex}&:has(input){cursor:pointer}}}}@media (width>=768px){.md\:fieldset{@layer daisyui.l1.l2.l3{&{grid-template-columns:1fr;grid-auto-rows:max-content;gap:.375rem;padding-block:.25rem;font-size:.75rem;display:grid}}}.md\:fieldset-legend{@layer daisyui.l1.l2.l3{&{color:var(--color-base-content);justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:-.25rem;padding-block:.5rem;font-weight:600;display:flex}}}.md\:fieldset-label{@layer daisyui.l1.l2.l3{&{color:color-mix(in oklab,var(--color-base-content)60%,transparent);align-items:center;gap:.375rem;display:flex}&:has(input){cursor:pointer}}}}@media (width>=1024px){.lg\:fieldset{@layer daisyui.l1.l2.l3{&{grid-template-columns:1fr;grid-auto-rows:max-content;gap:.375rem;padding-block:.25rem;font-size:.75rem;display:grid}}}.lg\:fieldset-legend{@layer daisyui.l1.l2.l3{&{color:var(--color-base-content);justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:-.25rem;padding-block:.5rem;font-weight:600;display:flex}}}.lg\:fieldset-label{@layer daisyui.l1.l2.l3{&{color:color-mix(in oklab,var(--color-base-content)60%,transparent);align-items:center;gap:.375rem;display:flex}&:has(input){cursor:pointer}}}}@media (width>=1280px){.xl\:fieldset{@layer daisyui.l1.l2.l3{&{grid-template-columns:1fr;grid-auto-rows:max-content;gap:.375rem;padding-block:.25rem;font-size:.75rem;display:grid}}}.xl\:fieldset-legend{@layer daisyui.l1.l2.l3{&{color:var(--color-base-content);justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:-.25rem;padding-block:.5rem;font-weight:600;display:flex}}}.xl\:fieldset-label{@layer daisyui.l1.l2.l3{&{color:color-mix(in oklab,var(--color-base-content)60%,transparent);align-items:center;gap:.375rem;display:flex}&:has(input){cursor:pointer}}}}@media (width>=1536px){.\32 xl\:fieldset{@layer daisyui.l1.l2.l3{&{grid-template-columns:1fr;grid-auto-rows:max-content;gap:.375rem;padding-block:.25rem;font-size:.75rem;display:grid}}}.\32 xl\:fieldset-legend{@layer daisyui.l1.l2.l3{&{color:var(--color-base-content);justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:-.25rem;padding-block:.5rem;font-weight:600;display:flex}}}.\32 xl\:fieldset-label{@layer daisyui.l1.l2.l3{&{color:color-mix(in oklab,var(--color-base-content)60%,transparent);align-items:center;gap:.375rem;display:flex}&:has(input){cursor:pointer}}}}} \ No newline at end of file diff --git a/b/8a7854cf215cfeadc5b53896c90506821af5e38bc36f541fde7dd84d76a656bb b/b/8a7854cf215cfeadc5b53896c90506821af5e38bc36f541fde7dd84d76a656bb new file mode 100644 index 0000000000000000000000000000000000000000..b01ad01a2a0265d96e085cfe678036d291a804e3 --- /dev/null +++ b/b/8a7854cf215cfeadc5b53896c90506821af5e38bc36f541fde7dd84d76a656bb @@ -0,0 +1,2314 @@ +"use strict";var __esbuild_esm_mermaid=(()=>{var cxe=Object.create;var R1=Object.defineProperty;var uxe=Object.getOwnPropertyDescriptor;var hxe=Object.getOwnPropertyNames;var fxe=Object.getPrototypeOf,dxe=Object.prototype.hasOwnProperty;var o=(t,e)=>R1(t,"name",{value:e,configurable:!0});var M=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ni=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),vr=(t,e)=>{for(var r in e)R1(t,r,{get:e[r],enumerable:!0})},Cb=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of hxe(e))!dxe.call(t,i)&&i!==r&&R1(t,i,{get:()=>e[i],enumerable:!(n=uxe(e,i))||n.enumerable});return t},Er=(t,e,r)=>(Cb(t,e,"default"),r&&Cb(r,e,"default")),ka=(t,e,r)=>(r=t!=null?cxe(fxe(t)):{},Cb(e||!t||!t.__esModule?R1(r,"default",{value:t,enumerable:!0}):r,t)),pxe=t=>Cb(R1({},"__esModule",{value:!0}),t);var Ab=Ni((wS,TS)=>{"use strict";(function(t,e){typeof wS=="object"&&typeof TS<"u"?TS.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(wS,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",a="minute",s="hour",l="day",u="week",h="month",f="quarter",d="year",p="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:o(function(k){var R=["th","st","nd","rd"],S=k%100;return"["+k+(R[(S-20)%10]||R[S]||R[0])+"]"},"ordinal")},x=o(function(k,R,S){var O=String(k);return!O||O.length>=R?k:""+Array(R+1-O.length).join(S)+k},"m"),b={s:x,z:o(function(k){var R=-k.utcOffset(),S=Math.abs(R),O=Math.floor(S/60),N=S%60;return(R<=0?"+":"-")+x(O,2,"0")+":"+x(N,2,"0")},"z"),m:o(function k(R,S){if(R.date()1)return k(F[0])}else{var B=R.name;_[B]=R,N=B}return!O&&N&&(w=N),N||!O&&w},"t"),C=o(function(k,R){if(E(k))return k.clone();var S=typeof R=="object"?R:{};return S.date=k,S.args=arguments,new I(S)},"O"),A=b;A.l=L,A.i=E,A.w=function(k,R){return C(k,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var I=function(){function k(S){this.$L=L(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[T]=!0}o(k,"M");var R=k.prototype;return R.parse=function(S){this.$d=function(O){var N=O.date,P=O.utc;if(N===null)return new Date(NaN);if(A.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var F=N.match(g);if(F){var B=F[2]-1||0,$=(F[7]||"0").substring(0,3);return P?new Date(Date.UTC(F[1],B,F[3]||1,F[4]||0,F[5]||0,F[6]||0,$)):new Date(F[1],B,F[3]||1,F[4]||0,F[5]||0,F[6]||0,$)}}return new Date(N)}(S),this.init()},R.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},R.$utils=function(){return A},R.isValid=function(){return this.$d.toString()!==m},R.isSame=function(S,O){var N=C(S);return this.startOf(O)<=N&&N<=this.endOf(O)},R.isAfter=function(S,O){return C(S){"use strict";EF=ka(Ab(),1),jc={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Y={trace:o((...t)=>{},"trace"),debug:o((...t)=>{},"debug"),info:o((...t)=>{},"info"),warn:o((...t)=>{},"warn"),error:o((...t)=>{},"error"),fatal:o((...t)=>{},"fatal")},M1=o(function(t="fatal"){let e=jc.fatal;typeof t=="string"?t.toLowerCase()in jc&&(e=jc[t]):typeof t=="number"&&(e=t),Y.trace=()=>{},Y.debug=()=>{},Y.info=()=>{},Y.warn=()=>{},Y.error=()=>{},Y.fatal=()=>{},e<=jc.fatal&&(Y.fatal=console.error?console.error.bind(console,bo("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",bo("FATAL"))),e<=jc.error&&(Y.error=console.error?console.error.bind(console,bo("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",bo("ERROR"))),e<=jc.warn&&(Y.warn=console.warn?console.warn.bind(console,bo("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",bo("WARN"))),e<=jc.info&&(Y.info=console.info?console.info.bind(console,bo("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",bo("INFO"))),e<=jc.debug&&(Y.debug=console.debug?console.debug.bind(console,bo("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",bo("DEBUG"))),e<=jc.trace&&(Y.trace=console.debug?console.debug.bind(console,bo("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",bo("TRACE")))},"setLogLevel"),bo=o(t=>`%c${(0,EF.default)().format("ss.SSS")} : ${t} : `,"format")});var mxe,Z0,kS,SF,_b=M(()=>{"use strict";mxe=Object.freeze({left:0,top:0,width:16,height:16}),Z0=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),kS=Object.freeze({...mxe,...Z0}),SF=Object.freeze({...kS,body:"",hidden:!1})});var gxe,CF,AF=M(()=>{"use strict";_b();gxe=Object.freeze({width:null,height:null}),CF=Object.freeze({...gxe,...Z0})});var Lb,ES,Db,_F=M(()=>{"use strict";Lb=/^[a-z0-9]+(-[a-z0-9]+)*$/,ES=o((t,e,r,n="")=>{let i=t.split(":");if(t.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let l=i.pop(),u=i.pop(),h={provider:i.length>0?i[0]:n,prefix:u,name:l};return e&&!Db(h)?null:h}let a=i[0],s=a.split("-");if(s.length>1){let l={provider:n,prefix:s.shift(),name:s.join("-")};return e&&!Db(l)?null:l}if(r&&n===""){let l={provider:n,prefix:"",name:a};return e&&!Db(l,r)?null:l}return null},"stringToIcon"),Db=o((t,e)=>t?!!((t.provider===""||t.provider.match(Lb))&&(e&&t.prefix===""||t.prefix.match(Lb))&&t.name.match(Lb)):!1,"validateIconName")});function LF(t,e){let r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);let n=((t.rotate||0)+(e.rotate||0))%4;return n&&(r.rotate=n),r}var DF=M(()=>{"use strict";o(LF,"mergeIconTransformations")});function SS(t,e){let r=LF(t,e);for(let n in SF)n in Z0?n in t&&!(n in r)&&(r[n]=Z0[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}var NF=M(()=>{"use strict";_b();DF();o(SS,"mergeIconData")});function RF(t,e){let r=t.icons,n=t.aliases||Object.create(null),i=Object.create(null);function a(s){if(r[s])return i[s]=[];if(!(s in i)){i[s]=null;let l=n[s]&&n[s].parent,u=l&&a(l);u&&(i[s]=[l].concat(u))}return i[s]}return o(a,"resolve"),(e||Object.keys(r).concat(Object.keys(n))).forEach(a),i}var MF=M(()=>{"use strict";o(RF,"getIconsTree")});function IF(t,e,r){let n=t.icons,i=t.aliases||Object.create(null),a={};function s(l){a=SS(n[l]||i[l],a)}return o(s,"parse"),s(e),r.forEach(s),SS(t,a)}function CS(t,e){if(t.icons[e])return IF(t,e,[]);let r=RF(t,[e])[e];return r?IF(t,e,r):null}var OF=M(()=>{"use strict";NF();MF();o(IF,"internalGetIconData");o(CS,"getIconData")});function AS(t,e,r){if(e===1)return t;if(r=r||100,typeof t=="number")return Math.ceil(t*e*r)/r;if(typeof t!="string")return t;let n=t.split(yxe);if(n===null||!n.length)return t;let i=[],a=n.shift(),s=vxe.test(a);for(;;){if(s){let l=parseFloat(a);isNaN(l)?i.push(a):i.push(Math.ceil(l*e*r)/r)}else i.push(a);if(a=n.shift(),a===void 0)return i.join("");s=!s}}var yxe,vxe,PF=M(()=>{"use strict";yxe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,vxe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;o(AS,"calculateSize")});function xxe(t,e="defs"){let r="",n=t.indexOf("<"+e);for(;n>=0;){let i=t.indexOf(">",n),a=t.indexOf("",a);if(s===-1)break;r+=t.slice(i+1,a).trim(),t=t.slice(0,n).trim()+t.slice(s+1)}return{defs:r,content:t}}function bxe(t,e){return t?""+t+""+e:e}function BF(t,e,r){let n=xxe(t);return bxe(n.defs,e+n.content+r)}var FF=M(()=>{"use strict";o(xxe,"splitSVGDefs");o(bxe,"mergeDefsAndContent");o(BF,"wrapSVGContent")});function _S(t,e){let r={...kS,...t},n={...CF,...e},i={left:r.left,top:r.top,width:r.width,height:r.height},a=r.body;[r,n].forEach(y=>{let v=[],x=y.hFlip,b=y.vFlip,w=y.rotate;x?b?w+=2:(v.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),v.push("scale(-1 1)"),i.top=i.left=0):b&&(v.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),v.push("scale(1 -1)"),i.top=i.left=0);let _;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:_=i.height/2+i.top,v.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:v.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:_=i.width/2+i.left,v.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}w%2===1&&(i.left!==i.top&&(_=i.left,i.left=i.top,i.top=_),i.width!==i.height&&(_=i.width,i.width=i.height,i.height=_)),v.length&&(a=BF(a,'',""))});let s=n.width,l=n.height,u=i.width,h=i.height,f,d;s===null?(d=l===null?"1em":l==="auto"?h:l,f=AS(d,u/h)):(f=s==="auto"?u:s,d=l===null?AS(f,h/u):l==="auto"?h:l);let p={},m=o((y,v)=>{wxe(v)||(p[y]=v.toString())},"setAttr");m("width",f),m("height",d);let g=[i.left,i.top,u,h];return p.viewBox=g.join(" "),{attributes:p,viewBox:g,body:a}}var wxe,zF=M(()=>{"use strict";_b();AF();PF();FF();wxe=o(t=>t==="unset"||t==="undefined"||t==="none","isUnsetKeyword");o(_S,"iconToSVG")});function LS(t,e=kxe){let r=[],n;for(;n=Txe.exec(t);)r.push(n[1]);if(!r.length)return t;let i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(a=>{let s=typeof e=="function"?e(a):e+(Exe++).toString(),l=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),t=t.replace(new RegExp(i,"g"),""),t}var Txe,kxe,Exe,GF=M(()=>{"use strict";Txe=/\sid="(\S+)"/g,kxe="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),Exe=0;o(LS,"replaceIDs")});function DS(t,e){let r=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let n in e)r+=" "+n+'="'+e[n]+'"';return'"+t+""}var $F=M(()=>{"use strict";o(DS,"iconToHTML")});var UF=Ni((lst,VF)=>{"use strict";var J0=1e3,ep=J0*60,tp=ep*60,Ff=tp*24,Sxe=Ff*7,Cxe=Ff*365.25;VF.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Axe(t);if(r==="number"&&isFinite(t))return e.long?Lxe(t):_xe(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Axe(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Cxe;case"weeks":case"week":case"w":return r*Sxe;case"days":case"day":case"d":return r*Ff;case"hours":case"hour":case"hrs":case"hr":case"h":return r*tp;case"minutes":case"minute":case"mins":case"min":case"m":return r*ep;case"seconds":case"second":case"secs":case"sec":case"s":return r*J0;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}o(Axe,"parse");function _xe(t){var e=Math.abs(t);return e>=Ff?Math.round(t/Ff)+"d":e>=tp?Math.round(t/tp)+"h":e>=ep?Math.round(t/ep)+"m":e>=J0?Math.round(t/J0)+"s":t+"ms"}o(_xe,"fmtShort");function Lxe(t){var e=Math.abs(t);return e>=Ff?Nb(t,e,Ff,"day"):e>=tp?Nb(t,e,tp,"hour"):e>=ep?Nb(t,e,ep,"minute"):e>=J0?Nb(t,e,J0,"second"):t+" ms"}o(Lxe,"fmtLong");function Nb(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}o(Nb,"plural")});var WF=Ni((ust,HF)=>{"use strict";function Dxe(t){r.debug=r,r.default=r,r.coerce=u,r.disable=a,r.enable=i,r.enabled=s,r.humanize=UF(),r.destroy=h,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let d=0;for(let p=0;p{if(E==="%%")return"%";_++;let C=r.formatters[L];if(typeof C=="function"){let A=v[_];E=C.call(x,A),v.splice(_,1),_--}return E}),r.formatArgs.call(x,v),(x.log||r.log).apply(x,v)}return o(y,"debug"),y.namespace=f,y.useColors=r.useColors(),y.color=r.selectColor(f),y.extend=n,y.destroy=r.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:o(()=>p!==null?p:(m!==r.namespaces&&(m=r.namespaces,g=r.enabled(f)),g),"get"),set:o(v=>{p=v},"set")}),typeof r.init=="function"&&r.init(y),y}o(r,"createDebug");function n(f,d){let p=r(this.namespace+(typeof d>"u"?":":d)+f);return p.log=this.log,p}o(n,"extend");function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let d,p=(typeof f=="string"?f:"").split(/[\s,]+/),m=p.length;for(d=0;d"-"+d)].join(",");return r.enable(""),f}o(a,"disable");function s(f){if(f[f.length-1]==="*")return!0;let d,p;for(d=0,p=r.skips.length;d{"use strict";Us.formatArgs=Rxe;Us.save=Mxe;Us.load=Ixe;Us.useColors=Nxe;Us.storage=Oxe();Us.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Us.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Nxe(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}o(Nxe,"useColors");function Rxe(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Rb.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}o(Rxe,"formatArgs");Us.log=console.debug||console.log||(()=>{});function Mxe(t){try{t?Us.storage.setItem("debug",t):Us.storage.removeItem("debug")}catch{}}o(Mxe,"save");function Ixe(){let t;try{t=Us.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}o(Ixe,"load");function Oxe(){try{return localStorage}catch{}}o(Oxe,"localstorage");Rb.exports=WF()(Us);var{formatters:Pxe}=Rb.exports;Pxe.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var dst,qF=M(()=>{"use strict";_F();OF();zF();GF();$F();dst=ka(YF(),1)});var RS,NS,XF,Mb,Bxe,wo,Kc=M(()=>{"use strict";ht();qF();RS={body:'?',height:80,width:80},NS=new Map,XF=new Map,Mb=o(t=>{for(let e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(Y.debug("Registering icon pack:",e.name),"loader"in e)XF.set(e.name,e.loader);else if("icons"in e)NS.set(e.name,e.icons);else throw Y.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Bxe=o(async(t,e)=>{let r=ES(t,!0,e!==void 0);if(!r)throw new Error(`Invalid icon name: ${t}`);let n=r.prefix||e;if(!n)throw new Error(`Icon name must contain a prefix: ${t}`);let i=NS.get(n);if(!i){let s=XF.get(n);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{i={...await s(),prefix:n},NS.set(n,i)}catch(l){throw Y.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}let a=CS(i,r.name);if(!a)throw new Error(`Icon not found: ${t}`);return a},"getRegisteredIconData"),wo=o(async(t,e)=>{let r;try{r=await Bxe(t,e?.fallbackPrefix)}catch(a){Y.error(a),r=RS}let n=_S(r,e);return DS(LS(n.body),n.attributes)},"getIconSVG")});function Ib(t){for(var e=[],r=1;r{"use strict";o(Ib,"dedent")});var Ob,zf,jF,Pb=M(()=>{"use strict";Ob=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,zf=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,jF=/\s*%%.*\n/gm});var rp,IS=M(()=>{"use strict";rp=class extends Error{static{o(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}}});var Gf,np,Bb,OS,KF,$f=M(()=>{"use strict";ht();Pb();IS();Gf={},np=o(function(t,e){t=t.replace(Ob,"").replace(zf,"").replace(jF,` +`);for(let[r,{detector:n}]of Object.entries(Gf))if(n(t,e))return r;throw new rp(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),Bb=o((...t)=>{for(let{id:e,detector:r,loader:n}of t)OS(e,r,n)},"registerLazyLoadedDiagrams"),OS=o((t,e,r)=>{Gf[t]&&Y.warn(`Detector with key ${t} already exists. Overwriting.`),Gf[t]={detector:e,loader:r},Y.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),KF=o(t=>Gf[t].loader,"getDiagramLoader")});var I1,QF,PS=M(()=>{"use strict";I1=function(){var t=o(function(He,xe,X,fe){for(X=X||{},fe=He.length;fe--;X[He[fe]]=xe);return X},"o"),e=[1,24],r=[1,25],n=[1,26],i=[1,27],a=[1,28],s=[1,63],l=[1,64],u=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],m=[1,29],g=[1,30],y=[1,31],v=[1,32],x=[1,33],b=[1,34],w=[1,35],_=[1,36],T=[1,37],E=[1,38],L=[1,39],C=[1,40],A=[1,41],I=[1,42],D=[1,43],k=[1,44],R=[1,45],S=[1,46],O=[1,47],N=[1,48],P=[1,50],F=[1,51],B=[1,52],$=[1,53],z=[1,54],W=[1,55],j=[1,56],K=[1,57],ie=[1,58],Q=[1,59],ee=[1,60],J=[14,42],H=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],q=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Z=[1,82],ae=[1,83],ue=[1,84],ce=[1,85],te=[12,14,42],De=[12,14,33,42],oe=[12,14,33,42,76,77,79,80],ke=[12,33],Fe=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Be={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:o(function(xe,X,fe,he,ge,ne,ye){var U=ne.length-1;switch(ge){case 3:he.setDirection("TB");break;case 4:he.setDirection("BT");break;case 5:he.setDirection("RL");break;case 6:he.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:he.setC4Type(ne[U-3]);break;case 19:he.setTitle(ne[U].substring(6)),this.$=ne[U].substring(6);break;case 20:he.setAccDescription(ne[U].substring(15)),this.$=ne[U].substring(15);break;case 21:this.$=ne[U].trim(),he.setTitle(this.$);break;case 22:case 23:this.$=ne[U].trim(),he.setAccDescription(this.$);break;case 28:ne[U].splice(2,0,"ENTERPRISE"),he.addPersonOrSystemBoundary(...ne[U]),this.$=ne[U];break;case 29:ne[U].splice(2,0,"SYSTEM"),he.addPersonOrSystemBoundary(...ne[U]),this.$=ne[U];break;case 30:he.addPersonOrSystemBoundary(...ne[U]),this.$=ne[U];break;case 31:ne[U].splice(2,0,"CONTAINER"),he.addContainerBoundary(...ne[U]),this.$=ne[U];break;case 32:he.addDeploymentNode("node",...ne[U]),this.$=ne[U];break;case 33:he.addDeploymentNode("nodeL",...ne[U]),this.$=ne[U];break;case 34:he.addDeploymentNode("nodeR",...ne[U]),this.$=ne[U];break;case 35:he.popBoundaryParseStack();break;case 39:he.addPersonOrSystem("person",...ne[U]),this.$=ne[U];break;case 40:he.addPersonOrSystem("external_person",...ne[U]),this.$=ne[U];break;case 41:he.addPersonOrSystem("system",...ne[U]),this.$=ne[U];break;case 42:he.addPersonOrSystem("system_db",...ne[U]),this.$=ne[U];break;case 43:he.addPersonOrSystem("system_queue",...ne[U]),this.$=ne[U];break;case 44:he.addPersonOrSystem("external_system",...ne[U]),this.$=ne[U];break;case 45:he.addPersonOrSystem("external_system_db",...ne[U]),this.$=ne[U];break;case 46:he.addPersonOrSystem("external_system_queue",...ne[U]),this.$=ne[U];break;case 47:he.addContainer("container",...ne[U]),this.$=ne[U];break;case 48:he.addContainer("container_db",...ne[U]),this.$=ne[U];break;case 49:he.addContainer("container_queue",...ne[U]),this.$=ne[U];break;case 50:he.addContainer("external_container",...ne[U]),this.$=ne[U];break;case 51:he.addContainer("external_container_db",...ne[U]),this.$=ne[U];break;case 52:he.addContainer("external_container_queue",...ne[U]),this.$=ne[U];break;case 53:he.addComponent("component",...ne[U]),this.$=ne[U];break;case 54:he.addComponent("component_db",...ne[U]),this.$=ne[U];break;case 55:he.addComponent("component_queue",...ne[U]),this.$=ne[U];break;case 56:he.addComponent("external_component",...ne[U]),this.$=ne[U];break;case 57:he.addComponent("external_component_db",...ne[U]),this.$=ne[U];break;case 58:he.addComponent("external_component_queue",...ne[U]),this.$=ne[U];break;case 60:he.addRel("rel",...ne[U]),this.$=ne[U];break;case 61:he.addRel("birel",...ne[U]),this.$=ne[U];break;case 62:he.addRel("rel_u",...ne[U]),this.$=ne[U];break;case 63:he.addRel("rel_d",...ne[U]),this.$=ne[U];break;case 64:he.addRel("rel_l",...ne[U]),this.$=ne[U];break;case 65:he.addRel("rel_r",...ne[U]),this.$=ne[U];break;case 66:he.addRel("rel_b",...ne[U]),this.$=ne[U];break;case 67:ne[U].splice(0,1),he.addRel("rel",...ne[U]),this.$=ne[U];break;case 68:he.updateElStyle("update_el_style",...ne[U]),this.$=ne[U];break;case 69:he.updateRelStyle("update_rel_style",...ne[U]),this.$=ne[U];break;case 70:he.updateLayoutConfig("update_layout_config",...ne[U]),this.$=ne[U];break;case 71:this.$=[ne[U]];break;case 72:ne[U].unshift(ne[U-1]),this.$=ne[U];break;case 73:case 75:this.$=ne[U].trim();break;case 74:let Te={};Te[ne[U-1].trim()]=ne[U].trim(),this.$=Te;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:_,52:T,53:E,54:L,55:C,56:A,57:I,58:D,59:k,60:R,61:S,62:O,63:N,64:P,65:F,66:B,67:$,68:z,69:W,70:j,71:K,72:ie,73:Q,74:ee},{13:70,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:_,52:T,53:E,54:L,55:C,56:A,57:I,58:D,59:k,60:R,61:S,62:O,63:N,64:P,65:F,66:B,67:$,68:z,69:W,70:j,71:K,72:ie,73:Q,74:ee},{13:71,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:_,52:T,53:E,54:L,55:C,56:A,57:I,58:D,59:k,60:R,61:S,62:O,63:N,64:P,65:F,66:B,67:$,68:z,69:W,70:j,71:K,72:ie,73:Q,74:ee},{13:72,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:_,52:T,53:E,54:L,55:C,56:A,57:I,58:D,59:k,60:R,61:S,62:O,63:N,64:P,65:F,66:B,67:$,68:z,69:W,70:j,71:K,72:ie,73:Q,74:ee},{13:73,19:20,20:21,21:22,22:e,23:r,24:n,26:i,28:a,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:_,52:T,53:E,54:L,55:C,56:A,57:I,58:D,59:k,60:R,61:S,62:O,63:N,64:P,65:F,66:B,67:$,68:z,69:W,70:j,71:K,72:ie,73:Q,74:ee},{14:[1,74]},t(J,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:l,37:u,38:h,39:f,40:d,41:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:_,52:T,53:E,54:L,55:C,56:A,57:I,58:D,59:k,60:R,61:S,62:O,63:N,64:P,65:F,66:B,67:$,68:z,69:W,70:j,71:K,72:ie,73:Q,74:ee}),t(J,[2,14]),t(H,[2,16],{12:[1,76]}),t(J,[2,36],{12:[1,77]}),t(q,[2,19]),t(q,[2,20]),{25:[1,78]},{27:[1,79]},t(q,[2,23]),{35:80,75:81,76:Z,77:ae,79:ue,80:ce},{35:86,75:81,76:Z,77:ae,79:ue,80:ce},{35:87,75:81,76:Z,77:ae,79:ue,80:ce},{35:88,75:81,76:Z,77:ae,79:ue,80:ce},{35:89,75:81,76:Z,77:ae,79:ue,80:ce},{35:90,75:81,76:Z,77:ae,79:ue,80:ce},{35:91,75:81,76:Z,77:ae,79:ue,80:ce},{35:92,75:81,76:Z,77:ae,79:ue,80:ce},{35:93,75:81,76:Z,77:ae,79:ue,80:ce},{35:94,75:81,76:Z,77:ae,79:ue,80:ce},{35:95,75:81,76:Z,77:ae,79:ue,80:ce},{35:96,75:81,76:Z,77:ae,79:ue,80:ce},{35:97,75:81,76:Z,77:ae,79:ue,80:ce},{35:98,75:81,76:Z,77:ae,79:ue,80:ce},{35:99,75:81,76:Z,77:ae,79:ue,80:ce},{35:100,75:81,76:Z,77:ae,79:ue,80:ce},{35:101,75:81,76:Z,77:ae,79:ue,80:ce},{35:102,75:81,76:Z,77:ae,79:ue,80:ce},{35:103,75:81,76:Z,77:ae,79:ue,80:ce},{35:104,75:81,76:Z,77:ae,79:ue,80:ce},t(te,[2,59]),{35:105,75:81,76:Z,77:ae,79:ue,80:ce},{35:106,75:81,76:Z,77:ae,79:ue,80:ce},{35:107,75:81,76:Z,77:ae,79:ue,80:ce},{35:108,75:81,76:Z,77:ae,79:ue,80:ce},{35:109,75:81,76:Z,77:ae,79:ue,80:ce},{35:110,75:81,76:Z,77:ae,79:ue,80:ce},{35:111,75:81,76:Z,77:ae,79:ue,80:ce},{35:112,75:81,76:Z,77:ae,79:ue,80:ce},{35:113,75:81,76:Z,77:ae,79:ue,80:ce},{35:114,75:81,76:Z,77:ae,79:ue,80:ce},{35:115,75:81,76:Z,77:ae,79:ue,80:ce},{20:116,29:49,30:61,32:62,34:s,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:_,52:T,53:E,54:L,55:C,56:A,57:I,58:D,59:k,60:R,61:S,62:O,63:N,64:P,65:F,66:B,67:$,68:z,69:W,70:j,71:K,72:ie,73:Q,74:ee},{12:[1,118],33:[1,117]},{35:119,75:81,76:Z,77:ae,79:ue,80:ce},{35:120,75:81,76:Z,77:ae,79:ue,80:ce},{35:121,75:81,76:Z,77:ae,79:ue,80:ce},{35:122,75:81,76:Z,77:ae,79:ue,80:ce},{35:123,75:81,76:Z,77:ae,79:ue,80:ce},{35:124,75:81,76:Z,77:ae,79:ue,80:ce},{35:125,75:81,76:Z,77:ae,79:ue,80:ce},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(J,[2,15]),t(H,[2,17],{21:22,19:130,22:e,23:r,24:n,26:i,28:a}),t(J,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:r,24:n,26:i,28:a,34:s,36:l,37:u,38:h,39:f,40:d,41:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w,51:_,52:T,53:E,54:L,55:C,56:A,57:I,58:D,59:k,60:R,61:S,62:O,63:N,64:P,65:F,66:B,67:$,68:z,69:W,70:j,71:K,72:ie,73:Q,74:ee}),t(q,[2,21]),t(q,[2,22]),t(te,[2,39]),t(De,[2,71],{75:81,35:132,76:Z,77:ae,79:ue,80:ce}),t(oe,[2,73]),{78:[1,133]},t(oe,[2,75]),t(oe,[2,76]),t(te,[2,40]),t(te,[2,41]),t(te,[2,42]),t(te,[2,43]),t(te,[2,44]),t(te,[2,45]),t(te,[2,46]),t(te,[2,47]),t(te,[2,48]),t(te,[2,49]),t(te,[2,50]),t(te,[2,51]),t(te,[2,52]),t(te,[2,53]),t(te,[2,54]),t(te,[2,55]),t(te,[2,56]),t(te,[2,57]),t(te,[2,58]),t(te,[2,60]),t(te,[2,61]),t(te,[2,62]),t(te,[2,63]),t(te,[2,64]),t(te,[2,65]),t(te,[2,66]),t(te,[2,67]),t(te,[2,68]),t(te,[2,69]),t(te,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(ke,[2,28]),t(ke,[2,29]),t(ke,[2,30]),t(ke,[2,31]),t(ke,[2,32]),t(ke,[2,33]),t(ke,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(H,[2,18]),t(J,[2,38]),t(De,[2,72]),t(oe,[2,74]),t(te,[2,24]),t(te,[2,35]),t(Fe,[2,25]),t(Fe,[2,26],{12:[1,138]}),t(Fe,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:o(function(xe,X){if(X.recoverable)this.trace(xe);else{var fe=new Error(xe);throw fe.hash=X,fe}},"parseError"),parse:o(function(xe){var X=this,fe=[0],he=[],ge=[null],ne=[],ye=this.table,U="",Te=0,se=0,Ee=0,Ae=2,Pe=1,Me=ne.slice.call(arguments,1),me=Object.create(this.lexer),We={yy:{}};for(var Re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Re)&&(We.yy[Re]=this.yy[Re]);me.setInput(xe,We.yy),We.yy.lexer=me,We.yy.parser=this,typeof me.yylloc>"u"&&(me.yylloc={});var tt=me.yylloc;ne.push(tt);var gt=me.options&&me.options.ranges;typeof We.yy.parseError=="function"?this.parseError=We.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Et(zt){fe.length=fe.length-2*zt,ge.length=ge.length-zt,ne.length=ne.length-zt}o(Et,"popStack");function vt(){var zt;return zt=he.pop()||me.lex()||Pe,typeof zt!="number"&&(zt instanceof Array&&(he=zt,zt=he.pop()),zt=X.symbols_[zt]||zt),zt}o(vt,"lex");for(var Ye,Tt,$e,rt,ft,kt,er={},dt,Xe,ct,Lt;;){if($e=fe[fe.length-1],this.defaultActions[$e]?rt=this.defaultActions[$e]:((Ye===null||typeof Ye>"u")&&(Ye=vt()),rt=ye[$e]&&ye[$e][Ye]),typeof rt>"u"||!rt.length||!rt[0]){var Rt="";Lt=[];for(dt in ye[$e])this.terminals_[dt]&&dt>Ae&&Lt.push("'"+this.terminals_[dt]+"'");me.showPosition?Rt="Parse error on line "+(Te+1)+`: +`+me.showPosition()+` +Expecting `+Lt.join(", ")+", got '"+(this.terminals_[Ye]||Ye)+"'":Rt="Parse error on line "+(Te+1)+": Unexpected "+(Ye==Pe?"end of input":"'"+(this.terminals_[Ye]||Ye)+"'"),this.parseError(Rt,{text:me.match,token:this.terminals_[Ye]||Ye,line:me.yylineno,loc:tt,expected:Lt})}if(rt[0]instanceof Array&&rt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$e+", token: "+Ye);switch(rt[0]){case 1:fe.push(Ye),ge.push(me.yytext),ne.push(me.yylloc),fe.push(rt[1]),Ye=null,Tt?(Ye=Tt,Tt=null):(se=me.yyleng,U=me.yytext,Te=me.yylineno,tt=me.yylloc,Ee>0&&Ee--);break;case 2:if(Xe=this.productions_[rt[1]][1],er.$=ge[ge.length-Xe],er._$={first_line:ne[ne.length-(Xe||1)].first_line,last_line:ne[ne.length-1].last_line,first_column:ne[ne.length-(Xe||1)].first_column,last_column:ne[ne.length-1].last_column},gt&&(er._$.range=[ne[ne.length-(Xe||1)].range[0],ne[ne.length-1].range[1]]),kt=this.performAction.apply(er,[U,se,Te,We.yy,rt[1],ge,ne].concat(Me)),typeof kt<"u")return kt;Xe&&(fe=fe.slice(0,-1*Xe*2),ge=ge.slice(0,-1*Xe),ne=ne.slice(0,-1*Xe)),fe.push(this.productions_[rt[1]][0]),ge.push(er.$),ne.push(er._$),ct=ye[fe[fe.length-2]][fe[fe.length-1]],fe.push(ct);break;case 3:return!0}}return!0},"parse")},Ve=function(){var He={EOF:1,parseError:o(function(X,fe){if(this.yy.parser)this.yy.parser.parseError(X,fe);else throw new Error(X)},"parseError"),setInput:o(function(xe,X){return this.yy=X||this.yy||{},this._input=xe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var xe=this._input[0];this.yytext+=xe,this.yyleng++,this.offset++,this.match+=xe,this.matched+=xe;var X=xe.match(/(?:\r\n?|\n).*/g);return X?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),xe},"input"),unput:o(function(xe){var X=xe.length,fe=xe.split(/(?:\r\n?|\n)/g);this._input=xe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-X),this.offset-=X;var he=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),fe.length-1&&(this.yylineno-=fe.length-1);var ge=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:fe?(fe.length===he.length?this.yylloc.first_column:0)+he[he.length-fe.length].length-fe[0].length:this.yylloc.first_column-X},this.options.ranges&&(this.yylloc.range=[ge[0],ge[0]+this.yyleng-X]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(xe){this.unput(this.match.slice(xe))},"less"),pastInput:o(function(){var xe=this.matched.substr(0,this.matched.length-this.match.length);return(xe.length>20?"...":"")+xe.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var xe=this.match;return xe.length<20&&(xe+=this._input.substr(0,20-xe.length)),(xe.substr(0,20)+(xe.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var xe=this.pastInput(),X=new Array(xe.length+1).join("-");return xe+this.upcomingInput()+` +`+X+"^"},"showPosition"),test_match:o(function(xe,X){var fe,he,ge;if(this.options.backtrack_lexer&&(ge={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ge.yylloc.range=this.yylloc.range.slice(0))),he=xe[0].match(/(?:\r\n?|\n).*/g),he&&(this.yylineno+=he.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:he?he[he.length-1].length-he[he.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+xe[0].length},this.yytext+=xe[0],this.match+=xe[0],this.matches=xe,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(xe[0].length),this.matched+=xe[0],fe=this.performAction.call(this,this.yy,this,X,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),fe)return fe;if(this._backtrack){for(var ne in ge)this[ne]=ge[ne];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var xe,X,fe,he;this._more||(this.yytext="",this.match="");for(var ge=this._currentRules(),ne=0;neX[0].length)){if(X=fe,he=ne,this.options.backtrack_lexer){if(xe=this.test_match(fe,ge[ne]),xe!==!1)return xe;if(this._backtrack){X=!1;continue}else return!1}else if(!this.options.flex)break}return X?(xe=this.test_match(X,ge[he]),xe!==!1?xe:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var X=this.next();return X||this.lex()},"lex"),begin:o(function(X){this.conditionStack.push(X)},"begin"),popState:o(function(){var X=this.conditionStack.length-1;return X>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(X){return X=this.conditionStack.length-1-Math.abs(X||0),X>=0?this.conditionStack[X]:"INITIAL"},"topState"),pushState:o(function(X){this.begin(X)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(X,fe,he,ge){var ne=ge;switch(he){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return He}();Be.lexer=Ve;function Ge(){this.yy={}}return o(Ge,"Parser"),Ge.prototype=Be,Be.Parser=Ge,new Ge}();I1.parser=I1;QF=I1});var BS,Gn,ip=M(()=>{"use strict";BS=o((t,e,{depth:r=2,clobber:n=!1}={})=>{let i={depth:r,clobber:n};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(a=>BS(t,a,i)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(a=>{t.includes(a)||t.push(a)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(a=>{typeof e[a]=="object"&&(t[a]===void 0||typeof t[a]=="object")?(t[a]===void 0&&(t[a]=Array.isArray(e[a])?[]:{}),t[a]=BS(t[a],e[a],{depth:r-1,clobber:n})):(n||typeof t[a]!="object"&&typeof e[a]!="object")&&(t[a]=e[a])}),t)},"assignWithDepth"),Gn=BS});var Fb,ZF,JF=M(()=>{"use strict";Fb={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:o(t=>t>=255?255:t<0?0:t,"r"),g:o(t=>t>=255?255:t<0?0:t,"g"),b:o(t=>t>=255?255:t<0?0:t,"b"),h:o(t=>t%360,"h"),s:o(t=>t>=100?100:t<0?0:t,"s"),l:o(t=>t>=100?100:t<0?0:t,"l"),a:o(t=>t>=1?1:t<0?0:t,"a")},toLinear:o(t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},"toLinear"),hue2rgb:o((t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?t+(e-t)*6*r:r<.5?e:r<.6666666666666666?t+(e-t)*(.6666666666666666-r)*6:t),"hue2rgb"),hsl2rgb:o(({h:t,s:e,l:r},n)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;let i=r<.5?r*(1+e):r+e-r*e,a=2*r-i;switch(n){case"r":return Fb.hue2rgb(a,i,t+.3333333333333333)*255;case"g":return Fb.hue2rgb(a,i,t)*255;case"b":return Fb.hue2rgb(a,i,t-.3333333333333333)*255}},"hsl2rgb"),rgb2hsl:o(({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;let i=Math.max(t,e,r),a=Math.min(t,e,r),s=(i+a)/2;if(n==="l")return s*100;if(i===a)return 0;let l=i-a,u=s>.5?l/(2-i-a):l/(i+a);if(n==="s")return u*100;switch(i){case t:return((e-r)/l+(e{"use strict";Fxe={clamp:o((t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),"clamp"),round:o(t=>Math.round(t*1e10)/1e10,"round")},ez=Fxe});var zxe,rz,nz=M(()=>{"use strict";zxe={dec2hex:o(t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`},"dec2hex")},rz=zxe});var Gxe,Yt,jl=M(()=>{"use strict";JF();tz();nz();Gxe={channel:ZF,lang:ez,unit:rz},Yt=Gxe});var Qc,Ri,O1=M(()=>{"use strict";jl();Qc={};for(let t=0;t<=255;t++)Qc[t]=Yt.unit.dec2hex(t);Ri={ALL:0,RGB:1,HSL:2}});var FS,iz,az=M(()=>{"use strict";O1();FS=class{static{o(this,"Type")}constructor(){this.type=Ri.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Ri.ALL}is(e){return this.type===e}},iz=FS});var zS,sz,oz=M(()=>{"use strict";jl();az();O1();zS=class{static{o(this,"Channels")}constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new iz}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=Ri.ALL,this}_ensureHSL(){let e=this.data,{h:r,s:n,l:i}=e;r===void 0&&(e.h=Yt.channel.rgb2hsl(e,"h")),n===void 0&&(e.s=Yt.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=Yt.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r,g:n,b:i}=e;r===void 0&&(e.r=Yt.channel.hsl2rgb(e,"r")),n===void 0&&(e.g=Yt.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=Yt.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,r=e.r;return!this.type.is(Ri.HSL)&&r!==void 0?r:(this._ensureHSL(),Yt.channel.hsl2rgb(e,"r"))}get g(){let e=this.data,r=e.g;return!this.type.is(Ri.HSL)&&r!==void 0?r:(this._ensureHSL(),Yt.channel.hsl2rgb(e,"g"))}get b(){let e=this.data,r=e.b;return!this.type.is(Ri.HSL)&&r!==void 0?r:(this._ensureHSL(),Yt.channel.hsl2rgb(e,"b"))}get h(){let e=this.data,r=e.h;return!this.type.is(Ri.RGB)&&r!==void 0?r:(this._ensureRGB(),Yt.channel.rgb2hsl(e,"h"))}get s(){let e=this.data,r=e.s;return!this.type.is(Ri.RGB)&&r!==void 0?r:(this._ensureRGB(),Yt.channel.rgb2hsl(e,"s"))}get l(){let e=this.data,r=e.l;return!this.type.is(Ri.RGB)&&r!==void 0?r:(this._ensureRGB(),Yt.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Ri.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Ri.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Ri.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Ri.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Ri.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Ri.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}},sz=zS});var $xe,th,P1=M(()=>{"use strict";oz();$xe=new sz({r:0,g:0,b:0,a:0},"transparent"),th=$xe});var lz,Vf,GS=M(()=>{"use strict";P1();O1();lz={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:o(t=>{if(t.charCodeAt(0)!==35)return;let e=t.match(lz.re);if(!e)return;let r=e[1],n=parseInt(r,16),i=r.length,a=i%4===0,s=i>4,l=s?1:17,u=s?8:4,h=a?0:-1,f=s?255:15;return th.set({r:(n>>u*(h+3)&f)*l,g:(n>>u*(h+2)&f)*l,b:(n>>u*(h+1)&f)*l,a:a?(n&f)*l/255:1},t)},"parse"),stringify:o(t=>{let{r:e,g:r,b:n,a:i}=t;return i<1?`#${Qc[Math.round(e)]}${Qc[Math.round(r)]}${Qc[Math.round(n)]}${Qc[Math.round(i*255)]}`:`#${Qc[Math.round(e)]}${Qc[Math.round(r)]}${Qc[Math.round(n)]}`},"stringify")},Vf=lz});var zb,B1,cz=M(()=>{"use strict";jl();P1();zb={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:o(t=>{let e=t.match(zb.hueRe);if(e){let[,r,n]=e;switch(n){case"grad":return Yt.channel.clamp.h(parseFloat(r)*.9);case"rad":return Yt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Yt.channel.clamp.h(parseFloat(r)*360)}}return Yt.channel.clamp.h(parseFloat(t))},"_hue2deg"),parse:o(t=>{let e=t.charCodeAt(0);if(e!==104&&e!==72)return;let r=t.match(zb.re);if(!r)return;let[,n,i,a,s,l]=r;return th.set({h:zb._hue2deg(n),s:Yt.channel.clamp.s(parseFloat(i)),l:Yt.channel.clamp.l(parseFloat(a)),a:s?Yt.channel.clamp.a(l?parseFloat(s)/100:parseFloat(s)):1},t)},"parse"),stringify:o(t=>{let{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${Yt.lang.round(e)}, ${Yt.lang.round(r)}%, ${Yt.lang.round(n)}%, ${i})`:`hsl(${Yt.lang.round(e)}, ${Yt.lang.round(r)}%, ${Yt.lang.round(n)}%)`},"stringify")},B1=zb});var Gb,$S,uz=M(()=>{"use strict";GS();Gb={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:o(t=>{t=t.toLowerCase();let e=Gb.colors[t];if(e)return Vf.parse(e)},"parse"),stringify:o(t=>{let e=Vf.stringify(t);for(let r in Gb.colors)if(Gb.colors[r]===e)return r},"stringify")},$S=Gb});var hz,F1,fz=M(()=>{"use strict";jl();P1();hz={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:o(t=>{let e=t.charCodeAt(0);if(e!==114&&e!==82)return;let r=t.match(hz.re);if(!r)return;let[,n,i,a,s,l,u,h,f]=r;return th.set({r:Yt.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:Yt.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:Yt.channel.clamp.b(u?parseFloat(l)*2.55:parseFloat(l)),a:h?Yt.channel.clamp.a(f?parseFloat(h)/100:parseFloat(h)):1},t)},"parse"),stringify:o(t=>{let{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${Yt.lang.round(e)}, ${Yt.lang.round(r)}, ${Yt.lang.round(n)}, ${Yt.lang.round(i)})`:`rgb(${Yt.lang.round(e)}, ${Yt.lang.round(r)}, ${Yt.lang.round(n)})`},"stringify")},F1=hz});var Vxe,Mi,Zc=M(()=>{"use strict";GS();cz();uz();fz();O1();Vxe={format:{keyword:$S,hex:Vf,rgb:F1,rgba:F1,hsl:B1,hsla:B1},parse:o(t=>{if(typeof t!="string")return t;let e=Vf.parse(t)||F1.parse(t)||B1.parse(t)||$S.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},"parse"),stringify:o(t=>!t.changed&&t.color?t.color:t.type.is(Ri.HSL)||t.data.r===void 0?B1.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?F1.stringify(t):Vf.stringify(t),"stringify")},Mi=Vxe});var Uxe,$b,VS=M(()=>{"use strict";jl();Zc();Uxe=o((t,e)=>{let r=Mi.parse(t);for(let n in e)r[n]=Yt.channel.clamp[n](e[n]);return Mi.stringify(r)},"change"),$b=Uxe});var Hxe,Hs,US=M(()=>{"use strict";jl();P1();Zc();VS();Hxe=o((t,e,r=0,n=1)=>{if(typeof t!="number")return $b(t,{a:e});let i=th.set({r:Yt.channel.clamp.r(t),g:Yt.channel.clamp.g(e),b:Yt.channel.clamp.b(r),a:Yt.channel.clamp.a(n)});return Mi.stringify(i)},"rgba"),Hs=Hxe});var Wxe,z1,dz=M(()=>{"use strict";jl();Zc();Wxe=o((t,e)=>Yt.lang.round(Mi.parse(t)[e]),"channel"),z1=Wxe});var Yxe,pz,mz=M(()=>{"use strict";jl();Zc();Yxe=o(t=>{let{r:e,g:r,b:n}=Mi.parse(t),i=.2126*Yt.channel.toLinear(e)+.7152*Yt.channel.toLinear(r)+.0722*Yt.channel.toLinear(n);return Yt.lang.round(i)},"luminance"),pz=Yxe});var qxe,gz,yz=M(()=>{"use strict";mz();qxe=o(t=>pz(t)>=.5,"isLight"),gz=qxe});var Xxe,aa,vz=M(()=>{"use strict";yz();Xxe=o(t=>!gz(t),"isDark"),aa=Xxe});var jxe,Vb,HS=M(()=>{"use strict";jl();Zc();jxe=o((t,e,r)=>{let n=Mi.parse(t),i=n[e],a=Yt.channel.clamp[e](i+r);return i!==a&&(n[e]=a),Mi.stringify(n)},"adjustChannel"),Vb=jxe});var Kxe,Dt,xz=M(()=>{"use strict";HS();Kxe=o((t,e)=>Vb(t,"l",e),"lighten"),Dt=Kxe});var Qxe,Bt,bz=M(()=>{"use strict";HS();Qxe=o((t,e)=>Vb(t,"l",-e),"darken"),Bt=Qxe});var Zxe,Ne,wz=M(()=>{"use strict";Zc();VS();Zxe=o((t,e)=>{let r=Mi.parse(t),n={};for(let i in e)e[i]&&(n[i]=r[i]+e[i]);return $b(t,n)},"adjust"),Ne=Zxe});var Jxe,Tz,kz=M(()=>{"use strict";Zc();US();Jxe=o((t,e,r=50)=>{let{r:n,g:i,b:a,a:s}=Mi.parse(t),{r:l,g:u,b:h,a:f}=Mi.parse(e),d=r/100,p=d*2-1,m=s-f,y=((p*m===-1?p:(p+m)/(1+p*m))+1)/2,v=1-y,x=n*y+l*v,b=i*y+u*v,w=a*y+h*v,_=s*d+f*(1-d);return Hs(x,b,w,_)},"mix"),Tz=Jxe});var ebe,pt,Ez=M(()=>{"use strict";Zc();kz();ebe=o((t,e=100)=>{let r=Mi.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Tz(r,t,e)},"invert"),pt=ebe});var Sz=M(()=>{"use strict";US();dz();vz();xz();bz();wz();Ez()});var To=M(()=>{"use strict";Sz()});var rh,nh,G1=M(()=>{"use strict";rh="#ffffff",nh="#f2f2f2"});var wi,ap=M(()=>{"use strict";To();wi=o((t,e)=>e?Ne(t,{s:-40,l:10}):Ne(t,{s:-40,l:-10}),"mkBorder")});var WS,Az,_z=M(()=>{"use strict";To();G1();ap();WS=class{static{o(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Ne(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Ne(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||wi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||wi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||wi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||wi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||pt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||pt(this.tertiaryColor),this.lineColor=this.lineColor||pt(this.background),this.arrowheadColor=this.arrowheadColor||pt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Bt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Bt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||pt(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Dt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ne(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ne(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ne(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ne(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ne(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ne(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Ne(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ne(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ne(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},Az=o(t=>{let e=new WS;return e.calculate(t),e},"getThemeVariables")});var YS,Lz,Dz=M(()=>{"use strict";To();ap();YS=class{static{o(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Dt(this.primaryColor,16),this.tertiaryColor=Ne(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.background),this.secondaryBorderColor=wi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=wi(this.tertiaryColor,this.darkMode),this.primaryTextColor=pt(this.primaryColor),this.secondaryTextColor=pt(this.secondaryColor),this.tertiaryTextColor=pt(this.tertiaryColor),this.lineColor=pt(this.background),this.textColor=pt(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Dt(pt("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Hs(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=Bt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Bt(this.sectionBkgColor,10),this.taskBorderColor=Hs(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Hs(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=Dt(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Dt(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Dt(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ne(this.primaryColor,{h:64}),this.fillType3=Ne(this.secondaryColor,{h:64}),this.fillType4=Ne(this.primaryColor,{h:-64}),this.fillType5=Ne(this.secondaryColor,{h:-64}),this.fillType6=Ne(this.primaryColor,{h:128}),this.fillType7=Ne(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ne(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ne(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ne(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ne(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ne(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ne(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ne(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ne(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ne(this.primaryColor,{h:330});for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},Lz=o(t=>{let e=new YS;return e.calculate(t),e},"getThemeVariables")});var qS,sp,Ub=M(()=>{"use strict";To();ap();G1();qS=class{static{o(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Ne(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Ne(this.primaryColor,{h:-160}),this.primaryBorderColor=wi(this.primaryColor,this.darkMode),this.secondaryBorderColor=wi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=wi(this.tertiaryColor,this.darkMode),this.primaryTextColor=pt(this.primaryColor),this.secondaryTextColor=pt(this.secondaryColor),this.tertiaryTextColor=pt(this.tertiaryColor),this.lineColor=pt(this.background),this.textColor=pt(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Hs(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ne(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ne(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ne(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ne(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ne(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ne(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ne(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ne(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ne(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Bt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Bt(this.tertiaryColor,40);for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},sp=o(t=>{let e=new qS;return e.calculate(t),e},"getThemeVariables")});var XS,Nz,Rz=M(()=>{"use strict";To();G1();ap();XS=class{static{o(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Dt("#cde498",10),this.primaryBorderColor=wi(this.primaryColor,this.darkMode),this.secondaryBorderColor=wi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=wi(this.tertiaryColor,this.darkMode),this.primaryTextColor=pt(this.primaryColor),this.secondaryTextColor=pt(this.secondaryColor),this.tertiaryTextColor=pt(this.primaryColor),this.lineColor=pt(this.background),this.textColor=pt(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=Bt(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ne(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ne(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ne(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ne(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ne(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ne(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ne(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ne(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ne(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Bt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Bt(this.tertiaryColor,40);for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},Nz=o(t=>{let e=new XS;return e.calculate(t),e},"getThemeVariables")});var jS,Mz,Iz=M(()=>{"use strict";To();ap();G1();jS=class{static{o(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Dt(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Ne(this.primaryColor,{h:-160}),this.primaryBorderColor=wi(this.primaryColor,this.darkMode),this.secondaryBorderColor=wi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=wi(this.tertiaryColor,this.darkMode),this.primaryTextColor=pt(this.primaryColor),this.secondaryTextColor=pt(this.secondaryColor),this.tertiaryTextColor=pt(this.tertiaryColor),this.lineColor=pt(this.background),this.textColor=pt(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=Dt(this.contrast,55),this.border2=this.contrast,this.actorBorder=Dt(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},Mz=o(t=>{let e=new jS;return e.calculate(t),e},"getThemeVariables")});var ko,Hb=M(()=>{"use strict";_z();Dz();Ub();Rz();Iz();ko={base:{getThemeVariables:Az},dark:{getThemeVariables:Lz},default:{getThemeVariables:sp},forest:{getThemeVariables:Nz},neutral:{getThemeVariables:Mz}}});var Jc,Oz=M(()=>{"use strict";Jc={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1}});var Pz,Bz,Fz,ur,hs=M(()=>{"use strict";Hb();Oz();Pz={...Jc,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:ko.default.getThemeVariables(),sequence:{...Jc.sequence,messageFont:o(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:o(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:o(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Jc.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Jc.c4,useWidth:void 0,personFont:o(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:o(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:o(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:o(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:o(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:o(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:o(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:o(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:o(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:o(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:o(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:o(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:o(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:o(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:o(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:o(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:o(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:o(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:o(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:o(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:o(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:o(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Jc.pie,useWidth:984},xyChart:{...Jc.xyChart,useWidth:void 0},requirement:{...Jc.requirement,useWidth:void 0},packet:{...Jc.packet}},Bz=o((t,e="")=>Object.keys(t).reduce((r,n)=>Array.isArray(t[n])?r:typeof t[n]=="object"&&t[n]!==null?[...r,e+n,...Bz(t[n],"")]:[...r,e+n],[]),"keyify"),Fz=new Set(Bz(Pz,"")),ur=Pz});var op,tbe,KS=M(()=>{"use strict";hs();ht();op=o(t=>{if(Y.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>op(e));return}for(let e of Object.keys(t)){if(Y.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Fz.has(e)||t[e]==null){Y.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){Y.debug("sanitizing object",e),op(t[e]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let n of r)e.includes(n)&&(Y.debug("sanitizing css option",e),t[e]=tbe(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}Y.debug("After sanitization",t)}},"sanitizeDirective"),tbe=o(t=>{let e=0,r=0;for(let n of t){if(e{"use strict";ip();ht();Hb();hs();KS();ih=Object.freeze(ur),fs=Gn({},ih),lp=[],$1=Gn({},ih),Wb=o((t,e)=>{let r=Gn({},t),n={};for(let i of e)Uz(i),n=Gn(n,i);if(r=Gn(r,n),n.theme&&n.theme in ko){let i=Gn({},Gz),a=Gn(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in ko&&(r.themeVariables=ko[r.theme].getThemeVariables(a))}return $1=r,Wz($1),$1},"updateCurrentConfig"),QS=o(t=>(fs=Gn({},ih),fs=Gn(fs,t),t.theme&&ko[t.theme]&&(fs.themeVariables=ko[t.theme].getThemeVariables(t.themeVariables)),Wb(fs,lp),fs),"setSiteConfig"),$z=o(t=>{Gz=Gn({},t)},"saveConfigFromInitialize"),Vz=o(t=>(fs=Gn(fs,t),Wb(fs,lp),fs),"updateSiteConfig"),ZS=o(()=>Gn({},fs),"getSiteConfig"),Yb=o(t=>(Wz(t),Gn($1,t),Sr()),"setConfig"),Sr=o(()=>Gn({},$1),"getConfig"),Uz=o(t=>{t&&(["secure",...fs.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(Y.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Uz(t[e])}))},"sanitize"),Hz=o(t=>{op(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),lp.push(t),Wb(fs,lp)},"addDirective"),V1=o((t=fs)=>{lp=[],Wb(t,lp)},"reset"),rbe={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},zz={},nbe=o(t=>{zz[t]||(Y.warn(rbe[t]),zz[t]=!0)},"issueWarning"),Wz=o(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&nbe("LAZY_LOAD_DEPRECATED")},"checkConfig")});function Ws(t){return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:jb;Yz&&Yz(t,null);let n=e.length;for(;n--;){let i=e[n];if(typeof i=="string"){let a=r(i);a!==i&&(ibe(e)||(e[n]=a),i=a)}t[i]=!0}return t}function ube(t){for(let e=0;e0&&arguments[0]!==void 0?arguments[0]:wbe(),e=o(yt=>iG(yt),"DOMPurify");if(e.version="3.2.1",e.removed=[],!t||!t.document||t.document.nodeType!==q1.document)return e.isSupported=!1,e;let{document:r}=t,n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:u,NodeFilter:h,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:p,trustedTypes:m}=t,g=u.prototype,y=Y1(g,"cloneNode"),v=Y1(g,"remove"),x=Y1(g,"nextSibling"),b=Y1(g,"childNodes"),w=Y1(g,"parentNode");if(typeof s=="function"){let yt=r.createElement("template");yt.content&&yt.content.ownerDocument&&(r=yt.content.ownerDocument)}let _,T="",{implementation:E,createNodeIterator:L,createDocumentFragment:C,getElementsByTagName:A}=r,{importNode:I}=n,D={};e.isSupported=typeof eG=="function"&&typeof w=="function"&&E&&E.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:k,ERB_EXPR:R,TMPLIT_EXPR:S,DATA_ATTR:O,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:P,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:B}=Jz,{IS_ALLOWED_URI:$}=Jz,z=null,W=Ar({},[...jz,...eC,...tC,...rC,...Kz]),j=null,K=Ar({},[...Qz,...nC,...Zz,...Xb]),ie=Object.seal(tG(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Q=null,ee=null,J=!0,H=!0,q=!1,Z=!0,ae=!1,ue=!0,ce=!1,te=!1,De=!1,oe=!1,ke=!1,Fe=!1,Be=!0,Ve=!1,Ge="user-content-",He=!0,xe=!1,X={},fe=null,he=Ar({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ge=null,ne=Ar({},["audio","video","img","source","image","track"]),ye=null,U=Ar({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Te="http://www.w3.org/1998/Math/MathML",se="http://www.w3.org/2000/svg",Ee="http://www.w3.org/1999/xhtml",Ae=Ee,Pe=!1,Me=null,me=Ar({},[Te,se,Ee],JS),We=Ar({},["mi","mo","mn","ms","mtext"]),Re=Ar({},["annotation-xml"]),tt=Ar({},["title","style","font","a","script"]),gt=null,Et=["application/xhtml+xml","text/html"],vt="text/html",Ye=null,Tt=null,$e=r.createElement("form"),rt=o(function(Se){return Se instanceof RegExp||Se instanceof Function},"isRegexOrFunction"),ft=o(function(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Tt&&Tt===Se)){if((!Se||typeof Se!="object")&&(Se={}),Se=Uf(Se),gt=Et.indexOf(Se.PARSER_MEDIA_TYPE)===-1?vt:Se.PARSER_MEDIA_TYPE,Ye=gt==="application/xhtml+xml"?JS:jb,z=ul(Se,"ALLOWED_TAGS")?Ar({},Se.ALLOWED_TAGS,Ye):W,j=ul(Se,"ALLOWED_ATTR")?Ar({},Se.ALLOWED_ATTR,Ye):K,Me=ul(Se,"ALLOWED_NAMESPACES")?Ar({},Se.ALLOWED_NAMESPACES,JS):me,ye=ul(Se,"ADD_URI_SAFE_ATTR")?Ar(Uf(U),Se.ADD_URI_SAFE_ATTR,Ye):U,ge=ul(Se,"ADD_DATA_URI_TAGS")?Ar(Uf(ne),Se.ADD_DATA_URI_TAGS,Ye):ne,fe=ul(Se,"FORBID_CONTENTS")?Ar({},Se.FORBID_CONTENTS,Ye):he,Q=ul(Se,"FORBID_TAGS")?Ar({},Se.FORBID_TAGS,Ye):{},ee=ul(Se,"FORBID_ATTR")?Ar({},Se.FORBID_ATTR,Ye):{},X=ul(Se,"USE_PROFILES")?Se.USE_PROFILES:!1,J=Se.ALLOW_ARIA_ATTR!==!1,H=Se.ALLOW_DATA_ATTR!==!1,q=Se.ALLOW_UNKNOWN_PROTOCOLS||!1,Z=Se.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ae=Se.SAFE_FOR_TEMPLATES||!1,ue=Se.SAFE_FOR_XML!==!1,ce=Se.WHOLE_DOCUMENT||!1,oe=Se.RETURN_DOM||!1,ke=Se.RETURN_DOM_FRAGMENT||!1,Fe=Se.RETURN_TRUSTED_TYPE||!1,De=Se.FORCE_BODY||!1,Be=Se.SANITIZE_DOM!==!1,Ve=Se.SANITIZE_NAMED_PROPS||!1,He=Se.KEEP_CONTENT!==!1,xe=Se.IN_PLACE||!1,$=Se.ALLOWED_URI_REGEXP||rG,Ae=Se.NAMESPACE||Ee,We=Se.MATHML_TEXT_INTEGRATION_POINTS||We,Re=Se.HTML_INTEGRATION_POINTS||Re,ie=Se.CUSTOM_ELEMENT_HANDLING||{},Se.CUSTOM_ELEMENT_HANDLING&&rt(Se.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ie.tagNameCheck=Se.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Se.CUSTOM_ELEMENT_HANDLING&&rt(Se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ie.attributeNameCheck=Se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Se.CUSTOM_ELEMENT_HANDLING&&typeof Se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ie.allowCustomizedBuiltInElements=Se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ae&&(H=!1),ke&&(oe=!0),X&&(z=Ar({},Kz),j=[],X.html===!0&&(Ar(z,jz),Ar(j,Qz)),X.svg===!0&&(Ar(z,eC),Ar(j,nC),Ar(j,Xb)),X.svgFilters===!0&&(Ar(z,tC),Ar(j,nC),Ar(j,Xb)),X.mathMl===!0&&(Ar(z,rC),Ar(j,Zz),Ar(j,Xb))),Se.ADD_TAGS&&(z===W&&(z=Uf(z)),Ar(z,Se.ADD_TAGS,Ye)),Se.ADD_ATTR&&(j===K&&(j=Uf(j)),Ar(j,Se.ADD_ATTR,Ye)),Se.ADD_URI_SAFE_ATTR&&Ar(ye,Se.ADD_URI_SAFE_ATTR,Ye),Se.FORBID_CONTENTS&&(fe===he&&(fe=Uf(fe)),Ar(fe,Se.FORBID_CONTENTS,Ye)),He&&(z["#text"]=!0),ce&&Ar(z,["html","head","body"]),z.table&&(Ar(z,["tbody"]),delete Q.tbody),Se.TRUSTED_TYPES_POLICY){if(typeof Se.TRUSTED_TYPES_POLICY.createHTML!="function")throw W1('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Se.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw W1('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=Se.TRUSTED_TYPES_POLICY,T=_.createHTML("")}else _===void 0&&(_=Tbe(m,i)),_!==null&&typeof T=="string"&&(T=_.createHTML(""));Wa&&Wa(Se),Tt=Se}},"_parseConfig"),kt=Ar({},[...eC,...tC,...hbe]),er=Ar({},[...rC,...fbe]),dt=o(function(Se){let at=w(Se);(!at||!at.tagName)&&(at={namespaceURI:Ae,tagName:"template"});let At=jb(Se.tagName),pr=jb(at.tagName);return Me[Se.namespaceURI]?Se.namespaceURI===se?at.namespaceURI===Ee?At==="svg":at.namespaceURI===Te?At==="svg"&&(pr==="annotation-xml"||We[pr]):!!kt[At]:Se.namespaceURI===Te?at.namespaceURI===Ee?At==="math":at.namespaceURI===se?At==="math"&&Re[pr]:!!er[At]:Se.namespaceURI===Ee?at.namespaceURI===se&&!Re[pr]||at.namespaceURI===Te&&!We[pr]?!1:!er[At]&&(tt[At]||!kt[At]):!!(gt==="application/xhtml+xml"&&Me[Se.namespaceURI]):!1},"_checkValidNamespace"),Xe=o(function(Se){U1(e.removed,{element:Se});try{w(Se).removeChild(Se)}catch{v(Se)}},"_forceRemove"),ct=o(function(Se,at){try{U1(e.removed,{attribute:at.getAttributeNode(Se),from:at})}catch{U1(e.removed,{attribute:null,from:at})}if(at.removeAttribute(Se),Se==="is"&&!j[Se])if(oe||ke)try{Xe(at)}catch{}else try{at.setAttribute(Se,"")}catch{}},"_removeAttribute"),Lt=o(function(Se){let at=null,At=null;if(De)Se=""+Se;else{let On=Xz(Se,/^[\r\n\t ]+/);At=On&&On[0]}gt==="application/xhtml+xml"&&Ae===Ee&&(Se=''+Se+"");let pr=_?_.createHTML(Se):Se;if(Ae===Ee)try{at=new p().parseFromString(pr,gt)}catch{}if(!at||!at.documentElement){at=E.createDocument(Ae,"template",null);try{at.documentElement.innerHTML=Pe?T:pr}catch{}}let In=at.body||at.documentElement;return Se&&At&&In.insertBefore(r.createTextNode(At),In.childNodes[0]||null),Ae===Ee?A.call(at,ce?"html":"body")[0]:ce?at.documentElement:In},"_initDocument"),Rt=o(function(Se){return L.call(Se.ownerDocument||Se,Se,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),zt=o(function(Se){return Se instanceof d&&(typeof Se.nodeName!="string"||typeof Se.textContent!="string"||typeof Se.removeChild!="function"||!(Se.attributes instanceof f)||typeof Se.removeAttribute!="function"||typeof Se.setAttribute!="function"||typeof Se.namespaceURI!="string"||typeof Se.insertBefore!="function"||typeof Se.hasChildNodes!="function")},"_isClobbered"),Xn=o(function(Se){return typeof l=="function"&&Se instanceof l},"_isNode");function or(yt,Se,at){D[yt]&&qb(D[yt],At=>{At.call(e,Se,at,Tt)})}o(or,"_executeHook");let hn=o(function(Se){let at=null;if(or("beforeSanitizeElements",Se,null),zt(Se))return Xe(Se),!0;let At=Ye(Se.nodeName);if(or("uponSanitizeElement",Se,{tagName:At,allowedTags:z}),Se.hasChildNodes()&&!Xn(Se.firstElementChild)&&Ha(/<[/\w]/g,Se.innerHTML)&&Ha(/<[/\w]/g,Se.textContent)||Se.nodeType===q1.progressingInstruction||ue&&Se.nodeType===q1.comment&&Ha(/<[/\w]/g,Se.data))return Xe(Se),!0;if(!z[At]||Q[At]){if(!Q[At]&&Ur(At)&&(ie.tagNameCheck instanceof RegExp&&Ha(ie.tagNameCheck,At)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(At)))return!1;if(He&&!fe[At]){let pr=w(Se)||Se.parentNode,In=b(Se)||Se.childNodes;if(In&&pr){let On=In.length;for(let Ir=On-1;Ir>=0;--Ir){let kn=y(In[Ir],!0);kn.__removalCount=(Se.__removalCount||0)+1,pr.insertBefore(kn,x(Se))}}}return Xe(Se),!0}return Se instanceof u&&!dt(Se)||(At==="noscript"||At==="noembed"||At==="noframes")&&Ha(/<\/no(script|embed|frames)/i,Se.innerHTML)?(Xe(Se),!0):(ae&&Se.nodeType===q1.text&&(at=Se.textContent,qb([k,R,S],pr=>{at=H1(at,pr," ")}),Se.textContent!==at&&(U1(e.removed,{element:Se.cloneNode()}),Se.textContent=at)),or("afterSanitizeElements",Se,null),!1)},"_sanitizeElements"),Tn=o(function(Se,at,At){if(Be&&(at==="id"||at==="name")&&(At in r||At in $e))return!1;if(!(H&&!ee[at]&&Ha(O,at))){if(!(J&&Ha(N,at))){if(!j[at]||ee[at]){if(!(Ur(Se)&&(ie.tagNameCheck instanceof RegExp&&Ha(ie.tagNameCheck,Se)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(Se))&&(ie.attributeNameCheck instanceof RegExp&&Ha(ie.attributeNameCheck,at)||ie.attributeNameCheck instanceof Function&&ie.attributeNameCheck(at))||at==="is"&&ie.allowCustomizedBuiltInElements&&(ie.tagNameCheck instanceof RegExp&&Ha(ie.tagNameCheck,At)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(At))))return!1}else if(!ye[at]){if(!Ha($,H1(At,F,""))){if(!((at==="src"||at==="xlink:href"||at==="href")&&Se!=="script"&&obe(At,"data:")===0&&ge[Se])){if(!(q&&!Ha(P,H1(At,F,"")))){if(At)return!1}}}}}}return!0},"_isValidAttribute"),Ur=o(function(Se){return Se!=="annotation-xml"&&Xz(Se,B)},"_isBasicCustomElement"),ri=o(function(Se){or("beforeSanitizeAttributes",Se,null);let{attributes:at}=Se;if(!at)return;let At={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0},pr=at.length;for(;pr--;){let In=at[pr],{name:On,namespaceURI:Ir,value:kn}=In,_t=Ye(On),St=On==="value"?kn:lbe(kn);if(At.attrName=_t,At.attrValue=St,At.keepAttr=!0,At.forceKeepAttr=void 0,or("uponSanitizeAttribute",Se,At),St=At.attrValue,Ve&&(_t==="id"||_t==="name")&&(ct(On,Se),St=Ge+St),ue&&Ha(/((--!?|])>)|<\/(style|title)/i,St)){ct(On,Se);continue}if(At.forceKeepAttr||(ct(On,Se),!At.keepAttr))continue;if(!Z&&Ha(/\/>/i,St)){ct(On,Se);continue}ae&&qb([k,R,S],Ue=>{St=H1(St,Ue," ")});let bt=Ye(Se.nodeName);if(Tn(bt,_t,St)){if(_&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!Ir)switch(m.getAttributeType(bt,_t)){case"TrustedHTML":{St=_.createHTML(St);break}case"TrustedScriptURL":{St=_.createScriptURL(St);break}}try{Ir?Se.setAttributeNS(Ir,On,St):Se.setAttribute(On,St),zt(Se)?Xe(Se):qz(e.removed)}catch{}}}or("afterSanitizeAttributes",Se,null)},"_sanitizeAttributes"),Mn=o(function yt(Se){let at=null,At=Rt(Se);for(or("beforeSanitizeShadowDOM",Se,null);at=At.nextNode();)or("uponSanitizeShadowNode",at,null),!hn(at)&&(at.content instanceof a&&yt(at.content),ri(at));or("afterSanitizeShadowDOM",Se,null)},"_sanitizeShadowDOM");return e.sanitize=function(yt){let Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},at=null,At=null,pr=null,In=null;if(Pe=!yt,Pe&&(yt=""),typeof yt!="string"&&!Xn(yt))if(typeof yt.toString=="function"){if(yt=yt.toString(),typeof yt!="string")throw W1("dirty is not a string, aborting")}else throw W1("toString is not a function");if(!e.isSupported)return yt;if(te||ft(Se),e.removed=[],typeof yt=="string"&&(xe=!1),xe){if(yt.nodeName){let kn=Ye(yt.nodeName);if(!z[kn]||Q[kn])throw W1("root node is forbidden and cannot be sanitized in-place")}}else if(yt instanceof l)at=Lt(""),At=at.ownerDocument.importNode(yt,!0),At.nodeType===q1.element&&At.nodeName==="BODY"||At.nodeName==="HTML"?at=At:at.appendChild(At);else{if(!oe&&!ae&&!ce&&yt.indexOf("<")===-1)return _&&Fe?_.createHTML(yt):yt;if(at=Lt(yt),!at)return oe?null:Fe?T:""}at&&De&&Xe(at.firstChild);let On=Rt(xe?yt:at);for(;pr=On.nextNode();)hn(pr)||(pr.content instanceof a&&Mn(pr.content),ri(pr));if(xe)return yt;if(oe){if(ke)for(In=C.call(at.ownerDocument);at.firstChild;)In.appendChild(at.firstChild);else In=at;return(j.shadowroot||j.shadowrootmode)&&(In=I.call(n,In,!0)),In}let Ir=ce?at.outerHTML:at.innerHTML;return ce&&z["!doctype"]&&at.ownerDocument&&at.ownerDocument.doctype&&at.ownerDocument.doctype.name&&Ha(nG,at.ownerDocument.doctype.name)&&(Ir=" +`+Ir),ae&&qb([k,R,S],kn=>{Ir=H1(Ir,kn," ")}),_&&Fe?_.createHTML(Ir):Ir},e.setConfig=function(){let yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ft(yt),te=!0},e.clearConfig=function(){Tt=null,te=!1},e.isValidAttribute=function(yt,Se,at){Tt||ft({});let At=Ye(yt),pr=Ye(Se);return Tn(At,pr,at)},e.addHook=function(yt,Se){typeof Se=="function"&&(D[yt]=D[yt]||[],U1(D[yt],Se))},e.removeHook=function(yt){if(D[yt])return qz(D[yt])},e.removeHooks=function(yt){D[yt]&&(D[yt]=[])},e.removeAllHooks=function(){D={}},e}var eG,Yz,ibe,abe,sbe,Wa,Eo,tG,iC,aC,qb,qz,U1,jb,JS,Xz,H1,obe,lbe,ul,Ha,W1,jz,eC,tC,hbe,rC,fbe,Kz,Qz,nC,Zz,Xb,dbe,pbe,mbe,gbe,ybe,rG,vbe,xbe,nG,bbe,Jz,q1,wbe,Tbe,ah,sC=M(()=>{"use strict";({entries:eG,setPrototypeOf:Yz,isFrozen:ibe,getPrototypeOf:abe,getOwnPropertyDescriptor:sbe}=Object),{freeze:Wa,seal:Eo,create:tG}=Object,{apply:iC,construct:aC}=typeof Reflect<"u"&&Reflect;Wa||(Wa=o(function(e){return e},"freeze"));Eo||(Eo=o(function(e){return e},"seal"));iC||(iC=o(function(e,r,n){return e.apply(r,n)},"apply"));aC||(aC=o(function(e,r){return new e(...r)},"construct"));qb=Ws(Array.prototype.forEach),qz=Ws(Array.prototype.pop),U1=Ws(Array.prototype.push),jb=Ws(String.prototype.toLowerCase),JS=Ws(String.prototype.toString),Xz=Ws(String.prototype.match),H1=Ws(String.prototype.replace),obe=Ws(String.prototype.indexOf),lbe=Ws(String.prototype.trim),ul=Ws(Object.prototype.hasOwnProperty),Ha=Ws(RegExp.prototype.test),W1=cbe(TypeError);o(Ws,"unapply");o(cbe,"unconstruct");o(Ar,"addToSet");o(ube,"cleanArray");o(Uf,"clone");o(Y1,"lookupGetter");jz=Wa(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),eC=Wa(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tC=Wa(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),hbe=Wa(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),rC=Wa(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),fbe=Wa(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Kz=Wa(["#text"]),Qz=Wa(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),nC=Wa(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Zz=Wa(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Xb=Wa(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),dbe=Eo(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pbe=Eo(/<%[\w\W]*|[\w\W]*%>/gm),mbe=Eo(/\${[\w\W]*}/gm),gbe=Eo(/^data-[\-\w.\u00B7-\uFFFF]/),ybe=Eo(/^aria-[\-\w]+$/),rG=Eo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vbe=Eo(/^(?:\w+script|data):/i),xbe=Eo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nG=Eo(/^html$/i),bbe=Eo(/^[a-z][.\w]*(-[.\w]+)+$/i),Jz=Object.freeze({__proto__:null,ARIA_ATTR:ybe,ATTR_WHITESPACE:xbe,CUSTOM_ELEMENT:bbe,DATA_ATTR:gbe,DOCTYPE_NAME:nG,ERB_EXPR:pbe,IS_ALLOWED_URI:rG,IS_SCRIPT_OR_DATA:vbe,MUSTACHE_EXPR:dbe,TMPLIT_EXPR:mbe}),q1={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},wbe=o(function(){return typeof window>"u"?null:window},"getGlobal"),Tbe=o(function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},"_createTrustedTypesPolicy");o(iG,"createDOMPurify");ah=iG()});var N$={};vr(N$,{default:()=>g3e});function Lbe(t){return String(t).replace(_be,e=>Abe[e])}function Mbe(t){if(t.default)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}function Gbe(t){for(var e=0;e=i[0]&&t<=i[1])return r.name}return null}function BG(t){for(var e=0;e=l4[e]&&t<=l4[e+1])return!0;return!1}function Qbe(t,e){Zl[t]=e}function RC(t,e,r){if(!Zl[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),i=Zl[e][n];if(!i&&t[0]in sG&&(n=sG[t[0]].charCodeAt(0),i=Zl[e][n]),!i&&r==="text"&&BG(n)&&(i=Zl[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function Zbe(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!oC[e]){var r=oC[e]={cssEmPerMu:Kb.quad[e]/18};for(var n in Kb)Kb.hasOwnProperty(n)&&(r[n]=Kb[n][e])}return oC[e]}function cG(t){if(t instanceof ms)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function r4e(t){if(t instanceof qf)return t;throw new Error("Expected span but got "+String(t)+".")}function G(t,e,r,n,i,a){En[t][i]={font:e,group:r,replace:n},a&&n&&(En[t][n]=En[t][i])}function Ct(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,l={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},u=0;u0&&(a.push(n4(s,e)),s=[]),a.push(n[l]));s.length>0&&a.push(n4(s,e));var h;r?(h=n4(Ii(r,e,!0)),h.classes=["tag"],a.push(h)):i&&a.push(i);var f=iu(["katex-html"],a);if(f.setAttribute("aria-hidden","true"),h){var d=h.children[0];d.style.height=mt(f.height+f.depth),f.depth&&(d.style.verticalAlign=mt(-f.depth))}return f}function jG(t){return new Yf(t)}function pG(t,e,r,n,i){var a=gs(t,r),s;a.length===1&&a[0]instanceof ps&&Jt.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new st.MathNode("mrow",a);var l=new st.MathNode("annotation",[new st.TextNode(e)]);l.setAttribute("encoding","application/x-tex");var u=new st.MathNode("semantics",[s,l]),h=new st.MathNode("math",[u]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var f=i?"katex":"katex-mathml";return Ie.makeSpan([f],[h])}function yr(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function PC(t){var e=x4(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function x4(t){return t&&(t.type==="atom"||i4e.hasOwnProperty(t.type))?t:null}function JG(t,e){var r=Ii(t.body,e,!0);return I4e([t.mclass],r,e)}function e$(t,e){var r,n=gs(t.body,e);return t.mclass==="minner"?r=new st.MathNode("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new st.MathNode("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new st.MathNode("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):t.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}function B4e(t,e,r){var n=O4e[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[e[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),l=r.callFunction("\\\\cdright",[e[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,l]};return r.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function F4e(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new ut("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],i=[n],a=0;a-1))if("<>AV".indexOf(h)>-1)for(var d=0;d<2;d++){for(var p=!0,m=u+1;mAV=|." after @',s[u]);var g=B4e(h,f,t),y={type:"styling",body:[g],mode:"math",style:"display"};n.push(y),l=mG()}a%2===0?n.push(l):n.shift(),n=[],i.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var v=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:v,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}function w4(t,e){var r=x4(t);if(r&&Jt.contains(Q4e,r.text))return r;throw r?new ut("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new ut("Invalid delimiter type '"+t.type+"'",t)}function vG(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}function ec(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,l={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u1||!f)&&y.pop(),x.length{"use strict";Ys=class t{static{o(this,"SourceLocation")}constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new t(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}},Co=class t{static{o(this,"Token")}constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new t(r,Ys.range(this,e))}},ut=class t{static{o(this,"ParseError")}constructor(e,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var l=s.lexer.input;i=s.start,a=s.end,i===l.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var u=l.slice(i,a).replace(/[^]/g,"$&\u0332"),h;i>15?h="\u2026"+l.slice(i-15,i):h=l.slice(0,i);var f;a+15":">","<":"<",'"':""","'":"'"},_be=/[&><"']/g;o(Lbe,"escape");PG=o(function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},"getBaseElem"),Dbe=o(function(e){var r=PG(e);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},"isCharacterBox"),Nbe=o(function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},"assert"),Rbe=o(function(e){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},"protocolFromUrl"),Jt={contains:kbe,deflt:Ebe,escape:Lbe,hyphenate:Cbe,getBaseElem:PG,isCharacterBox:Dbe,protocolFromUrl:Rbe},o4={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:o(t=>"#"+t,"cliProcessor")},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:o((t,e)=>(e.push(t),e),"cliProcessor")},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:o(t=>Math.max(0,t),"processor"),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:o(t=>Math.max(0,t),"processor"),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:o(t=>Math.max(0,t),"processor"),cli:"-e, --max-expand ",cliProcessor:o(t=>t==="Infinity"?1/0:parseInt(t),"cliProcessor")},globalGroup:{type:"boolean",cli:!1}};o(Mbe,"getDefaultValue");Z1=class{static{o(this,"Settings")}constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r in o4)if(o4.hasOwnProperty(r)){var n=o4[r];this[r]=e[r]!==void 0?n.processor?n.processor(e[r]):e[r]:Mbe(n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new ut("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var r=Jt.protocolFromUrl(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}},Kl=class{static{o(this,"Style")}constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Ql[Ibe[this.id]]}sub(){return Ql[Obe[this.id]]}fracNum(){return Ql[Pbe[this.id]]}fracDen(){return Ql[Bbe[this.id]]}cramp(){return Ql[Fbe[this.id]]}text(){return Ql[zbe[this.id]]}isTight(){return this.size>=2}},NC=0,c4=1,hp=2,ru=3,J1=4,So=5,fp=6,Ya=7,Ql=[new Kl(NC,0,!1),new Kl(c4,0,!0),new Kl(hp,1,!1),new Kl(ru,1,!0),new Kl(J1,2,!1),new Kl(So,2,!0),new Kl(fp,3,!1),new Kl(Ya,3,!0)],Ibe=[J1,So,J1,So,fp,Ya,fp,Ya],Obe=[So,So,So,So,Ya,Ya,Ya,Ya],Pbe=[hp,ru,J1,So,fp,Ya,fp,Ya],Bbe=[ru,ru,So,So,Ya,Ya,Ya,Ya],Fbe=[c4,c4,ru,ru,So,So,Ya,Ya],zbe=[NC,c4,hp,ru,hp,ru,hp,ru],rr={DISPLAY:Ql[NC],TEXT:Ql[hp],SCRIPT:Ql[J1],SCRIPTSCRIPT:Ql[fp]},xC=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];o(Gbe,"scriptFromCodepoint");l4=[];xC.forEach(t=>t.blocks.forEach(e=>l4.push(...e)));o(BG,"supportedCodepoint");up=80,$be=o(function(e,r){return"M95,"+(622+e+r)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+e/2.075+" -"+e+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+e)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},"sqrtMain"),Vbe=o(function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+e/2.084+" -"+e+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+e)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},"sqrtSize1"),Ube=o(function(e,r){return"M983 "+(10+e+r)+` +l`+e/3.13+" -"+e+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},"sqrtSize2"),Hbe=o(function(e,r){return"M424,"+(2398+e+r)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+e)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+r+` +h400000v`+(40+e)+"h-400000z"},"sqrtSize3"),Wbe=o(function(e,r){return"M473,"+(2713+e+r)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},"sqrtSize4"),Ybe=o(function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},"phasePath"),qbe=o(function(e,r,n){var i=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` +H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},"sqrtTall"),Xbe=o(function(e,r,n){r=1e3*r;var i="";switch(e){case"sqrtMain":i=$be(r,up);break;case"sqrtSize1":i=Vbe(r,up);break;case"sqrtSize2":i=Ube(r,up);break;case"sqrtSize3":i=Hbe(r,up);break;case"sqrtSize4":i=Wbe(r,up);break;case"sqrtTall":i=qbe(r,up,n)}return i},"sqrtPath"),jbe=o(function(e,r){switch(e){case"\u239C":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"\u2223":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"\u2225":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"\u239F":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"\u23A2":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"\u23A5":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"\u23AA":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"\u23D0":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"\u2016":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},"innerPath"),aG={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z +M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z +M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z +M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z +M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Kbe=o(function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z +M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z +M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z +M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},"tallDelim"),Yf=class{static{o(this,"DocumentFragment")}constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return Jt.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),r=0;rr.toText(),"toText");return this.children.map(e).join("")}},Zl={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Kb={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},sG={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};o(Qbe,"setFontMetrics");o(RC,"getCharacterMetrics");oC={};o(Zbe,"getGlobalMetrics");Jbe=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],oG=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],lG=o(function(e,r){return r.size<2?e:Jbe[e-1][r.size-1]},"sizeAtStyle"),u4=class t{static{o(this,"Options")}constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||t.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=oG[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return new t(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:lG(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:oG[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=lG(t.BASESIZE,e);return this.size===r&&this.textSize===t.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==t.BASESIZE?["sizing","reset-size"+this.size,"size"+t.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Zbe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};u4.BASESIZE=6;bC={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},e4e={ex:!0,em:!0,mu:!0},FG=o(function(e){return typeof e!="string"&&(e=e.unit),e in bC||e in e4e||e==="ex"},"validUnit"),Qn=o(function(e,r){var n;if(e.unit in bC)n=bC[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,e.unit==="ex")n=i.fontMetrics().xHeight;else if(e.unit==="em")n=i.fontMetrics().quad;else throw new ut("Invalid unit: '"+e.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},"calculateSize"),mt=o(function(e){return+e.toFixed(4)+"em"},"makeEm"),lh=o(function(e){return e.filter(r=>r).join(" ")},"createClass"),zG=o(function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},"initNode"),GG=o(function(e){var r=document.createElement(e);r.className=lh(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&r.setAttribute(i,this.attributes[i]);for(var a=0;a",r},"toMarkup"),qf=class{static{o(this,"Span")}constructor(e,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,zG.call(this,e,n,i),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return Jt.contains(this.classes,e)}toNode(){return GG.call(this,"span")}toMarkup(){return $G.call(this,"span")}},ey=class{static{o(this,"Anchor")}constructor(e,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,zG.call(this,r,i),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return Jt.contains(this.classes,e)}toNode(){return GG.call(this,"a")}toMarkup(){return $G.call(this,"a")}},wC=class{static{o(this,"Img")}constructor(e,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return Jt.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(e.style[r]=this.style[r]);return e}toMarkup(){var e=''+Jt.escape(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=mt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=lh(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(r=r||document.createElement("span"),r.style[n]=this.style[n]);return r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="0&&(n+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=Jt.hyphenate(i)+":"+this.style[i]+";");n&&(e=!0,r+=' style="'+Jt.escape(n)+'"');var a=Jt.escape(this.text);return e?(r+=">",r+=a,r+="",r):a}},fl=class{static{o(this,"SvgNode")}constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);for(var i=0;i':''}},ty=class{static{o(this,"LineNode")}constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e="","\\gt",!0);G(V,re,we,"\u2208","\\in",!0);G(V,re,we,"\uE020","\\@not");G(V,re,we,"\u2282","\\subset",!0);G(V,re,we,"\u2283","\\supset",!0);G(V,re,we,"\u2286","\\subseteq",!0);G(V,re,we,"\u2287","\\supseteq",!0);G(V,ve,we,"\u2288","\\nsubseteq",!0);G(V,ve,we,"\u2289","\\nsupseteq",!0);G(V,re,we,"\u22A8","\\models");G(V,re,we,"\u2190","\\leftarrow",!0);G(V,re,we,"\u2264","\\le");G(V,re,we,"\u2264","\\leq",!0);G(V,re,we,"<","\\lt",!0);G(V,re,we,"\u2192","\\rightarrow",!0);G(V,re,we,"\u2192","\\to");G(V,ve,we,"\u2271","\\ngeq",!0);G(V,ve,we,"\u2270","\\nleq",!0);G(V,re,su,"\xA0","\\ ");G(V,re,su,"\xA0","\\space");G(V,re,su,"\xA0","\\nobreakspace");G(it,re,su,"\xA0","\\ ");G(it,re,su,"\xA0"," ");G(it,re,su,"\xA0","\\space");G(it,re,su,"\xA0","\\nobreakspace");G(V,re,su,null,"\\nobreak");G(V,re,su,null,"\\allowbreak");G(V,re,y4,",",",");G(V,re,y4,";",";");G(V,ve,Nt,"\u22BC","\\barwedge",!0);G(V,ve,Nt,"\u22BB","\\veebar",!0);G(V,re,Nt,"\u2299","\\odot",!0);G(V,re,Nt,"\u2295","\\oplus",!0);G(V,re,Nt,"\u2297","\\otimes",!0);G(V,re,_e,"\u2202","\\partial",!0);G(V,re,Nt,"\u2298","\\oslash",!0);G(V,ve,Nt,"\u229A","\\circledcirc",!0);G(V,ve,Nt,"\u22A1","\\boxdot",!0);G(V,re,Nt,"\u25B3","\\bigtriangleup");G(V,re,Nt,"\u25BD","\\bigtriangledown");G(V,re,Nt,"\u2020","\\dagger");G(V,re,Nt,"\u22C4","\\diamond");G(V,re,Nt,"\u22C6","\\star");G(V,re,Nt,"\u25C3","\\triangleleft");G(V,re,Nt,"\u25B9","\\triangleright");G(V,re,qs,"{","\\{");G(it,re,_e,"{","\\{");G(it,re,_e,"{","\\textbraceleft");G(V,re,qa,"}","\\}");G(it,re,_e,"}","\\}");G(it,re,_e,"}","\\textbraceright");G(V,re,qs,"{","\\lbrace");G(V,re,qa,"}","\\rbrace");G(V,re,qs,"[","\\lbrack",!0);G(it,re,_e,"[","\\lbrack",!0);G(V,re,qa,"]","\\rbrack",!0);G(it,re,_e,"]","\\rbrack",!0);G(V,re,qs,"(","\\lparen",!0);G(V,re,qa,")","\\rparen",!0);G(it,re,_e,"<","\\textless",!0);G(it,re,_e,">","\\textgreater",!0);G(V,re,qs,"\u230A","\\lfloor",!0);G(V,re,qa,"\u230B","\\rfloor",!0);G(V,re,qs,"\u2308","\\lceil",!0);G(V,re,qa,"\u2309","\\rceil",!0);G(V,re,_e,"\\","\\backslash");G(V,re,_e,"\u2223","|");G(V,re,_e,"\u2223","\\vert");G(it,re,_e,"|","\\textbar",!0);G(V,re,_e,"\u2225","\\|");G(V,re,_e,"\u2225","\\Vert");G(it,re,_e,"\u2225","\\textbardbl");G(it,re,_e,"~","\\textasciitilde");G(it,re,_e,"\\","\\textbackslash");G(it,re,_e,"^","\\textasciicircum");G(V,re,we,"\u2191","\\uparrow",!0);G(V,re,we,"\u21D1","\\Uparrow",!0);G(V,re,we,"\u2193","\\downarrow",!0);G(V,re,we,"\u21D3","\\Downarrow",!0);G(V,re,we,"\u2195","\\updownarrow",!0);G(V,re,we,"\u21D5","\\Updownarrow",!0);G(V,re,Ti,"\u2210","\\coprod");G(V,re,Ti,"\u22C1","\\bigvee");G(V,re,Ti,"\u22C0","\\bigwedge");G(V,re,Ti,"\u2A04","\\biguplus");G(V,re,Ti,"\u22C2","\\bigcap");G(V,re,Ti,"\u22C3","\\bigcup");G(V,re,Ti,"\u222B","\\int");G(V,re,Ti,"\u222B","\\intop");G(V,re,Ti,"\u222C","\\iint");G(V,re,Ti,"\u222D","\\iiint");G(V,re,Ti,"\u220F","\\prod");G(V,re,Ti,"\u2211","\\sum");G(V,re,Ti,"\u2A02","\\bigotimes");G(V,re,Ti,"\u2A01","\\bigoplus");G(V,re,Ti,"\u2A00","\\bigodot");G(V,re,Ti,"\u222E","\\oint");G(V,re,Ti,"\u222F","\\oiint");G(V,re,Ti,"\u2230","\\oiiint");G(V,re,Ti,"\u2A06","\\bigsqcup");G(V,re,Ti,"\u222B","\\smallint");G(it,re,dp,"\u2026","\\textellipsis");G(V,re,dp,"\u2026","\\mathellipsis");G(it,re,dp,"\u2026","\\ldots",!0);G(V,re,dp,"\u2026","\\ldots",!0);G(V,re,dp,"\u22EF","\\@cdots",!0);G(V,re,dp,"\u22F1","\\ddots",!0);G(V,re,_e,"\u22EE","\\varvdots");G(V,re,$n,"\u02CA","\\acute");G(V,re,$n,"\u02CB","\\grave");G(V,re,$n,"\xA8","\\ddot");G(V,re,$n,"~","\\tilde");G(V,re,$n,"\u02C9","\\bar");G(V,re,$n,"\u02D8","\\breve");G(V,re,$n,"\u02C7","\\check");G(V,re,$n,"^","\\hat");G(V,re,$n,"\u20D7","\\vec");G(V,re,$n,"\u02D9","\\dot");G(V,re,$n,"\u02DA","\\mathring");G(V,re,tr,"\uE131","\\@imath");G(V,re,tr,"\uE237","\\@jmath");G(V,re,_e,"\u0131","\u0131");G(V,re,_e,"\u0237","\u0237");G(it,re,_e,"\u0131","\\i",!0);G(it,re,_e,"\u0237","\\j",!0);G(it,re,_e,"\xDF","\\ss",!0);G(it,re,_e,"\xE6","\\ae",!0);G(it,re,_e,"\u0153","\\oe",!0);G(it,re,_e,"\xF8","\\o",!0);G(it,re,_e,"\xC6","\\AE",!0);G(it,re,_e,"\u0152","\\OE",!0);G(it,re,_e,"\xD8","\\O",!0);G(it,re,$n,"\u02CA","\\'");G(it,re,$n,"\u02CB","\\`");G(it,re,$n,"\u02C6","\\^");G(it,re,$n,"\u02DC","\\~");G(it,re,$n,"\u02C9","\\=");G(it,re,$n,"\u02D8","\\u");G(it,re,$n,"\u02D9","\\.");G(it,re,$n,"\xB8","\\c");G(it,re,$n,"\u02DA","\\r");G(it,re,$n,"\u02C7","\\v");G(it,re,$n,"\xA8",'\\"');G(it,re,$n,"\u02DD","\\H");G(it,re,$n,"\u25EF","\\textcircled");VG={"--":!0,"---":!0,"``":!0,"''":!0};G(it,re,_e,"\u2013","--",!0);G(it,re,_e,"\u2013","\\textendash");G(it,re,_e,"\u2014","---",!0);G(it,re,_e,"\u2014","\\textemdash");G(it,re,_e,"\u2018","`",!0);G(it,re,_e,"\u2018","\\textquoteleft");G(it,re,_e,"\u2019","'",!0);G(it,re,_e,"\u2019","\\textquoteright");G(it,re,_e,"\u201C","``",!0);G(it,re,_e,"\u201C","\\textquotedblleft");G(it,re,_e,"\u201D","''",!0);G(it,re,_e,"\u201D","\\textquotedblright");G(V,re,_e,"\xB0","\\degree",!0);G(it,re,_e,"\xB0","\\degree");G(it,re,_e,"\xB0","\\textdegree",!0);G(V,re,_e,"\xA3","\\pounds");G(V,re,_e,"\xA3","\\mathsterling",!0);G(it,re,_e,"\xA3","\\pounds");G(it,re,_e,"\xA3","\\textsterling",!0);G(V,ve,_e,"\u2720","\\maltese");G(it,ve,_e,"\u2720","\\maltese");uG='0123456789/@."';for(Qb=0;Qb0)return hl(a,h,i,r,s.concat(f));if(u){var d,p;if(u==="boldsymbol"){var m=o4e(a,i,r,s,n);d=m.fontName,p=[m.fontClass]}else l?(d=WG[u].fontName,p=[u]):(d=r4(u,r.fontWeight,r.fontShape),p=[u,r.fontWeight,r.fontShape]);if(v4(a,d,i).metrics)return hl(a,d,i,r,s.concat(p));if(VG.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var g=[],y=0;y{if(lh(t.classes)!==lh(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n in t.style)if(t.style.hasOwnProperty(n)&&t.style[n]!==e.style[n])return!1;for(var i in e.style)if(e.style.hasOwnProperty(i)&&t.style[i]!==e.style[i])return!1;return!0},"canCombine"),u4e=o(t=>{for(var e=0;er&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=i},"sizeElementFromChildren"),ds=o(function(e,r,n,i){var a=new qf(e,r,n,i);return MC(a),a},"makeSpan"),UG=o((t,e,r,n)=>new qf(t,e,r,n),"makeSvgSpan"),h4e=o(function(e,r,n){var i=ds([e],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=mt(i.height),i.maxFontSize=1,i},"makeLineSpan"),f4e=o(function(e,r,n,i){var a=new ey(e,r,n,i);return MC(a),a},"makeAnchor"),HG=o(function(e){var r=new Yf(e);return MC(r),r},"makeFragment"),d4e=o(function(e,r){return e instanceof Yf?ds([],[e],r):e},"wrapFragment"),p4e=o(function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s{var r=ds(["mspace"],[],e),n=Qn(t,e);return r.style.marginRight=mt(n),r},"makeGlue"),r4=o(function(e,r,n){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},"retrieveTextFontName"),WG={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},YG={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},y4e=o(function(e,r){var[n,i,a]=YG[e],s=new Jl(n),l=new fl([s],{width:mt(i),height:mt(a),style:"width:"+mt(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=UG(["overlay"],[l],r);return u.height=a,u.style.height=mt(a),u.style.width=mt(i),u},"staticSvg"),Ie={fontMap:WG,makeSymbol:hl,mathsym:s4e,makeSpan:ds,makeSvgSpan:UG,makeLineSpan:h4e,makeAnchor:f4e,makeFragment:HG,wrapFragment:d4e,makeVList:m4e,makeOrd:l4e,makeGlue:g4e,staticSvg:y4e,svgData:YG,tryCombineChars:u4e},Kn={number:3,unit:"mu"},Hf={number:4,unit:"mu"},tu={number:5,unit:"mu"},v4e={mord:{mop:Kn,mbin:Hf,mrel:tu,minner:Kn},mop:{mord:Kn,mop:Kn,mrel:tu,minner:Kn},mbin:{mord:Hf,mop:Hf,mopen:Hf,minner:Hf},mrel:{mord:tu,mop:tu,mopen:tu,minner:tu},mopen:{},mclose:{mop:Kn,mbin:Hf,mrel:tu,minner:Kn},mpunct:{mord:Kn,mop:Kn,mrel:tu,mopen:Kn,mclose:Kn,mpunct:Kn,minner:Kn},minner:{mord:Kn,mop:Kn,mbin:Hf,mrel:tu,mopen:Kn,mpunct:Kn,minner:Kn}},x4e={mord:{mop:Kn},mop:{mord:Kn,mop:Kn},mbin:{},mrel:{},mopen:{},mclose:{mop:Kn},mpunct:{},minner:{mop:Kn}},qG={},f4={},d4={};o(Ct,"defineFunction");o(Xf,"defineFunctionBuilders");p4=o(function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},"normalizeArgument"),di=o(function(e){return e.type==="ordgroup"?e.body:[e]},"ordargument"),iu=Ie.makeSpan,b4e=["leftmost","mbin","mopen","mrel","mop","mpunct"],w4e=["rightmost","mrel","mclose","mpunct"],T4e={display:rr.DISPLAY,text:rr.TEXT,script:rr.SCRIPT,scriptscript:rr.SCRIPTSCRIPT},k4e={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ii=o(function(e,r,n,i){i===void 0&&(i=[null,null]);for(var a=[],s=0;s{var v=y.classes[0],x=g.classes[0];v==="mbin"&&Jt.contains(w4e,x)?y.classes[0]="mord":x==="mbin"&&Jt.contains(b4e,v)&&(g.classes[0]="mord")},{node:d},p,m),dG(a,(g,y)=>{var v=kC(y),x=kC(g),b=v&&x?g.hasClass("mtight")?x4e[v][x]:v4e[v][x]:null;if(b)return Ie.makeGlue(b,h)},{node:d},p,m),a},"buildExpression"),dG=o(function t(e,r,n,i,a){i&&e.push(i);for(var s=0;sp=>{e.splice(d+1,0,p),s++})(s)}i&&e.pop()},"traverseNonSpaceNodes"),XG=o(function(e){return e instanceof Yf||e instanceof ey||e instanceof qf&&e.hasClass("enclosing")?e:null},"checkPartialGroup"),E4e=o(function t(e,r){var n=XG(e);if(n){var i=n.children;if(i.length){if(r==="right")return t(i[i.length-1],"right");if(r==="left")return t(i[0],"left")}}return e},"getOutermostNode"),kC=o(function(e,r){return e?(r&&(e=E4e(e,r)),k4e[e.classes[0]]||null):null},"getTypeOfDomTree"),ry=o(function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return iu(r.concat(n))},"makeNullDelimiter"),Or=o(function(e,r,n){if(!e)return iu();if(f4[e.type]){var i=f4[e.type](e,r);if(n&&r.size!==n.size){i=iu(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new ut("Got group of unknown type: '"+e.type+"'")},"buildGroup");o(n4,"buildHTMLUnbreakable");o(EC,"buildHTML");o(jG,"newDocumentFragment");ps=class{static{o(this,"MathNode")}constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&e.setAttribute(r,this.attributes[r]);this.classes.length>0&&(e.className=lh(this.classes));for(var n=0;n0&&(e+=' class ="'+Jt.escape(lh(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}},Wf=class{static{o(this,"TextNode")}constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Jt.escape(this.toText())}toText(){return this.text}},SC=class{static{o(this,"SpaceNode")}constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",mt(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},st={MathNode:ps,TextNode:Wf,SpaceNode:SC,newDocumentFragment:jG},Ao=o(function(e,r,n){return En[r][e]&&En[r][e].replace&&e.charCodeAt(0)!==55349&&!(VG.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=En[r][e].replace),new st.TextNode(e)},"makeText"),IC=o(function(e){return e.length===1?e[0]:new st.MathNode("mrow",e)},"makeRow"),OC=o(function(e,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=e.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=e.text;if(Jt.contains(["\\imath","\\jmath"],a))return null;En[i][a]&&En[i][a].replace&&(a=En[i][a].replace);var s=Ie.fontMap[n].fontName;return RC(a,s,i)?Ie.fontMap[n].variant:null},"getVariant"),gs=o(function(e,r,n){if(e.length===1){var i=mn(e[0],r);return n&&i instanceof ps&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,l=0;l0&&(d.text=d.text.slice(0,1)+"\u0338"+d.text.slice(1),a.pop())}}}a.push(u),s=u}return a},"buildExpression"),ch=o(function(e,r,n){return IC(gs(e,r,n))},"buildExpressionRow"),mn=o(function(e,r){if(!e)return new st.MathNode("mrow");if(d4[e.type]){var n=d4[e.type](e,r);return n}else throw new ut("Got group of unknown type: '"+e.type+"'")},"buildGroup");o(pG,"buildMathML");KG=o(function(e){return new u4({style:e.displayMode?rr.DISPLAY:rr.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},"optionsFromSettings"),QG=o(function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=Ie.makeSpan(n,[e])}return e},"displayWrap"),S4e=o(function(e,r,n){var i=KG(n),a;if(n.output==="mathml")return pG(e,r,i,n.displayMode,!0);if(n.output==="html"){var s=EC(e,i);a=Ie.makeSpan(["katex"],[s])}else{var l=pG(e,r,i,n.displayMode,!1),u=EC(e,i);a=Ie.makeSpan(["katex"],[l,u])}return QG(a,n)},"buildTree"),C4e=o(function(e,r,n){var i=KG(n),a=EC(e,i),s=Ie.makeSpan(["katex"],[a]);return QG(s,n)},"buildHTMLTree"),A4e={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},_4e=o(function(e){var r=new st.MathNode("mo",[new st.TextNode(A4e[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},"mathMLnode"),L4e={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},D4e=o(function(e){return e.type==="ordgroup"?e.body.length:1},"groupLength"),N4e=o(function(e,r){function n(){var l=4e5,u=e.label.slice(1);if(Jt.contains(["widehat","widecheck","widetilde","utilde"],u)){var h=e,f=D4e(h.base),d,p,m;if(f>5)u==="widehat"||u==="widecheck"?(d=420,l=2364,m=.42,p=u+"4"):(d=312,l=2340,m=.34,p="tilde4");else{var g=[1,1,2,2,3,3][f];u==="widehat"||u==="widecheck"?(l=[0,1062,2364,2364,2364][g],d=[0,239,300,360,420][g],m=[0,.24,.3,.3,.36,.42][g],p=u+g):(l=[0,600,1033,2339,2340][g],d=[0,260,286,306,312][g],m=[0,.26,.286,.3,.306,.34][g],p="tilde"+g)}var y=new Jl(p),v=new fl([y],{width:"100%",height:mt(m),viewBox:"0 0 "+l+" "+d,preserveAspectRatio:"none"});return{span:Ie.makeSvgSpan([],[v],r),minWidth:0,height:m}}else{var x=[],b=L4e[u],[w,_,T]=b,E=T/1e3,L=w.length,C,A;if(L===1){var I=b[3];C=["hide-tail"],A=[I]}else if(L===2)C=["halfarrow-left","halfarrow-right"],A=["xMinYMin","xMaxYMin"];else if(L===3)C=["brace-left","brace-center","brace-right"],A=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+L+" children.");for(var D=0;D0&&(i.style.minWidth=mt(a)),i},"svgSpan"),R4e=o(function(e,r,n,i,a){var s,l=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=Ie.makeSpan(["stretchy",r],[],a),r==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new ty({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new ty({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var f=new fl(h,{width:"100%",height:mt(l)});s=Ie.makeSvgSpan([],[f],a)}return s.height=l,s.style.height=mt(l),s},"encloseSpan"),au={encloseSpan:R4e,mathMLnode:_4e,svgSpan:N4e};o(yr,"assertNodeType");o(PC,"assertSymbolNodeType");o(x4,"checkSymbolNodeType");BC=o((t,e)=>{var r,n,i;t&&t.type==="supsub"?(n=yr(t.base,"accent"),r=n.base,t.base=r,i=r4e(Or(t,e)),t.base=n):(n=yr(t,"accent"),r=n.base);var a=Or(r,e.havingCrampedStyle()),s=n.isShifty&&Jt.isCharacterBox(r),l=0;if(s){var u=Jt.getBaseElem(r),h=Or(u,e.havingCrampedStyle());l=cG(h).skew}var f=n.label==="\\c",d=f?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),p;if(n.isStretchy)p=au.svgSpan(n,e),p=Ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+mt(2*l)+")",marginLeft:mt(2*l)}:void 0}]},e);else{var m,g;n.label==="\\vec"?(m=Ie.staticSvg("vec",e),g=Ie.svgData.vec[1]):(m=Ie.makeOrd({mode:n.mode,text:n.label},e,"textord"),m=cG(m),m.italic=0,g=m.width,f&&(d+=m.depth)),p=Ie.makeSpan(["accent-body"],[m]);var y=n.label==="\\textcircled";y&&(p.classes.push("accent-full"),d=a.height);var v=l;y||(v-=g/2),p.style.left=mt(v),n.label==="\\textcircled"&&(p.style.top=".2em"),p=Ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:p}]},e)}var x=Ie.makeSpan(["mord","accent"],[p],e);return i?(i.children[0]=x,i.height=Math.max(x.height,i.height),i.classes[0]="mord",i):x},"htmlBuilder$a"),ZG=o((t,e)=>{var r=t.isStretchy?au.mathMLnode(t.label):new st.MathNode("mo",[Ao(t.label,t.mode)]),n=new st.MathNode("mover",[mn(t.base,e),r]);return n.setAttribute("accent","true"),n},"mathmlBuilder$9"),M4e=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));Ct({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:o((t,e)=>{var r=p4(e[0]),n=!M4e.test(t.funcName),i=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},"handler"),htmlBuilder:BC,mathmlBuilder:ZG});Ct({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:o((t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},"handler"),htmlBuilder:BC,mathmlBuilder:ZG});Ct({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:o((t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},"handler"),htmlBuilder:o((t,e)=>{var r=Or(t.base,e),n=au.svgSpan(t,e),i=t.label==="\\utilde"?.12:0,a=Ie.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]},e);return Ie.makeSpan(["mord","accentunder"],[a],e)},"htmlBuilder"),mathmlBuilder:o((t,e)=>{var r=au.mathMLnode(t.label),n=new st.MathNode("munder",[mn(t.base,e),r]);return n.setAttribute("accentunder","true"),n},"mathmlBuilder")});i4=o(t=>{var e=new st.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e},"paddedNode");Ct({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n,funcName:i}=t;return{type:"xArrow",mode:n.mode,label:i,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),i=Ie.wrapFragment(Or(t.body,n,e),e),a=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=Ie.wrapFragment(Or(t.below,n,e),e),s.classes.push(a+"-arrow-pad"));var l=au.svgSpan(t,e),u=-e.fontMetrics().axisHeight+.5*l.height,h=-e.fontMetrics().axisHeight-.5*l.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(h-=i.depth);var f;if(s){var d=-e.fontMetrics().axisHeight+s.height+.5*l.height+.111;f=Ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:l,shift:u},{type:"elem",elem:s,shift:d}]},e)}else f=Ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:l,shift:u}]},e);return f.children[0].children[0].children[1].classes.push("svg-align"),Ie.makeSpan(["mrel","x-arrow"],[f],e)},mathmlBuilder(t,e){var r=au.mathMLnode(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var i=i4(mn(t.body,e));if(t.below){var a=i4(mn(t.below,e));n=new st.MathNode("munderover",[r,a,i])}else n=new st.MathNode("mover",[r,i])}else if(t.below){var s=i4(mn(t.below,e));n=new st.MathNode("munder",[r,s])}else n=i4(),n=new st.MathNode("mover",[r,n]);return n}});I4e=Ie.makeSpan;o(JG,"htmlBuilder$9");o(e$,"mathmlBuilder$8");Ct({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:di(i),isCharacterBox:Jt.isCharacterBox(i)}},htmlBuilder:JG,mathmlBuilder:e$});b4=o(t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"},"binrelClass");Ct({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:b4(e[0]),body:di(e[1]),isCharacterBox:Jt.isCharacterBox(e[1])}}});Ct({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,i=e[1],a=e[0],s;n!=="\\stackrel"?s=b4(i):s="mrel";var l={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:di(i)},u={type:"supsub",mode:a.mode,base:l,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[u],isCharacterBox:Jt.isCharacterBox(u)}},htmlBuilder:JG,mathmlBuilder:e$});Ct({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:b4(e[0]),body:di(e[0])}},htmlBuilder(t,e){var r=Ii(t.body,e,!0),n=Ie.makeSpan([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=gs(t.body,e),n=new st.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});O4e={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},mG=o(()=>({type:"styling",body:[],mode:"math",style:"display"}),"newCell"),gG=o(t=>t.type==="textord"&&t.text==="@","isStartOfArrow"),P4e=o((t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e,"isLabelEnd");o(B4e,"cdArrow");o(F4e,"parseCD");Ct({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=Ie.wrapFragment(Or(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=mt(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new st.MathNode("mrow",[mn(t.label,e)]);return r=new st.MathNode("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new st.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});Ct({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:r}=t;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=Ie.wrapFragment(Or(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new st.MathNode("mrow",[mn(t.fragment,e)])}});Ct({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=yr(e[0],"ordgroup"),i=n.body,a="",s=0;s=1114111)throw new ut("\\@char with invalid code point "+a);return u<=65535?h=String.fromCharCode(u):(u-=65536,h=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:r.mode,text:h}}});t$=o((t,e)=>{var r=Ii(t.body,e.withColor(t.color),!1);return Ie.makeFragment(r)},"htmlBuilder$8"),r$=o((t,e)=>{var r=gs(t.body,e.withColor(t.color)),n=new st.MathNode("mstyle",r);return n.setAttribute("mathcolor",t.color),n},"mathmlBuilder$7");Ct({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:r}=t,n=yr(e[0],"color-token").color,i=e[1];return{type:"color",mode:r.mode,color:n,body:di(i)}},htmlBuilder:t$,mathmlBuilder:r$});Ct({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,i=yr(e[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:t$,mathmlBuilder:r$});Ct({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&yr(i,"size").value}},htmlBuilder(t,e){var r=Ie.makeSpan(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=mt(Qn(t.size,e)))),r},mathmlBuilder(t,e){var r=new st.MathNode("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",mt(Qn(t.size,e)))),r}});CC={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},n$=o(t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new ut("Expected a control sequence",t);return e},"checkControlSequence"),z4e=o(t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},"getRHS"),i$=o((t,e,r,n)=>{var i=t.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,i,n)},"letCommand");Ct({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:r}=t;e.consumeSpaces();var n=e.fetch();if(CC[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=CC[n.text]),yr(e.parseFunction(),"internal");throw new ut("Invalid token after macro prefix",n)}});Ct({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=e.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new ut("Expected a control sequence",n);for(var a=0,s,l=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),l[a].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new ut('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new ut('Argument number "'+n.text+'" out of order');a++,l.push([])}else{if(n.text==="EOF")throw new ut("Expected a macro definition");l[a].push(n.text)}var{tokens:u}=e.gullet.consumeArg();return s&&u.unshift(s),(r==="\\edef"||r==="\\xdef")&&(u=e.gullet.expandTokens(u),u.reverse()),e.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:l},r===CC[r]),{type:"internal",mode:e.mode}}});Ct({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=n$(e.gullet.popToken());e.gullet.consumeSpaces();var i=z4e(e);return i$(e,n,i,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});Ct({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=n$(e.gullet.popToken()),i=e.gullet.popToken(),a=e.gullet.popToken();return i$(e,n,a,r==="\\\\globalfuture"),e.gullet.pushToken(a),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});K1=o(function(e,r,n){var i=En.math[e]&&En.math[e].replace,a=RC(i||e,r,n);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return a},"getMetrics"),FC=o(function(e,r,n,i){var a=n.havingBaseStyle(r),s=Ie.makeSpan(i.concat(a.sizingClasses(n)),[e],n),l=a.sizeMultiplier/n.sizeMultiplier;return s.height*=l,s.depth*=l,s.maxFontSize=a.sizeMultiplier,s},"styleWrap"),a$=o(function(e,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=mt(a),e.height-=a,e.depth+=a},"centerSpan"),G4e=o(function(e,r,n,i,a,s){var l=Ie.makeSymbol(e,"Main-Regular",a,i),u=FC(l,r,i,s);return n&&a$(u,i,r),u},"makeSmallDelim"),$4e=o(function(e,r,n,i){return Ie.makeSymbol(e,"Size"+r+"-Regular",n,i)},"mathrmSize"),s$=o(function(e,r,n,i,a,s){var l=$4e(e,r,a,i),u=FC(Ie.makeSpan(["delimsizing","size"+r],[l],i),rr.TEXT,i,s);return n&&a$(u,i,rr.TEXT),u},"makeLargeDelim"),uC=o(function(e,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Ie.makeSpan(["delimsizinginner",i],[Ie.makeSpan([],[Ie.makeSymbol(e,r,n)])]);return{type:"elem",elem:a}},"makeGlyphSpan"),hC=o(function(e,r,n){var i=Zl["Size4-Regular"][e.charCodeAt(0)]?Zl["Size4-Regular"][e.charCodeAt(0)][4]:Zl["Size1-Regular"][e.charCodeAt(0)][4],a=new Jl("inner",jbe(e,Math.round(1e3*r))),s=new fl([a],{width:mt(i),height:mt(r),style:"width:"+mt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),l=Ie.makeSvgSpan([],[s],n);return l.height=r,l.style.height=mt(r),l.style.width=mt(i),{type:"elem",elem:l}},"makeInner"),AC=.008,a4={type:"kern",size:-1*AC},V4e=["|","\\lvert","\\rvert","\\vert"],U4e=["\\|","\\lVert","\\rVert","\\Vert"],o$=o(function(e,r,n,i,a,s){var l,u,h,f,d="",p=0;l=h=f=e,u=null;var m="Size1-Regular";e==="\\uparrow"?h=f="\u23D0":e==="\\Uparrow"?h=f="\u2016":e==="\\downarrow"?l=h="\u23D0":e==="\\Downarrow"?l=h="\u2016":e==="\\updownarrow"?(l="\\uparrow",h="\u23D0",f="\\downarrow"):e==="\\Updownarrow"?(l="\\Uparrow",h="\u2016",f="\\Downarrow"):Jt.contains(V4e,e)?(h="\u2223",d="vert",p=333):Jt.contains(U4e,e)?(h="\u2225",d="doublevert",p=556):e==="["||e==="\\lbrack"?(l="\u23A1",h="\u23A2",f="\u23A3",m="Size4-Regular",d="lbrack",p=667):e==="]"||e==="\\rbrack"?(l="\u23A4",h="\u23A5",f="\u23A6",m="Size4-Regular",d="rbrack",p=667):e==="\\lfloor"||e==="\u230A"?(h=l="\u23A2",f="\u23A3",m="Size4-Regular",d="lfloor",p=667):e==="\\lceil"||e==="\u2308"?(l="\u23A1",h=f="\u23A2",m="Size4-Regular",d="lceil",p=667):e==="\\rfloor"||e==="\u230B"?(h=l="\u23A5",f="\u23A6",m="Size4-Regular",d="rfloor",p=667):e==="\\rceil"||e==="\u2309"?(l="\u23A4",h=f="\u23A5",m="Size4-Regular",d="rceil",p=667):e==="("||e==="\\lparen"?(l="\u239B",h="\u239C",f="\u239D",m="Size4-Regular",d="lparen",p=875):e===")"||e==="\\rparen"?(l="\u239E",h="\u239F",f="\u23A0",m="Size4-Regular",d="rparen",p=875):e==="\\{"||e==="\\lbrace"?(l="\u23A7",u="\u23A8",f="\u23A9",h="\u23AA",m="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(l="\u23AB",u="\u23AC",f="\u23AD",h="\u23AA",m="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(l="\u23A7",f="\u23A9",h="\u23AA",m="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(l="\u23AB",f="\u23AD",h="\u23AA",m="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(l="\u23A7",f="\u23AD",h="\u23AA",m="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(l="\u23AB",f="\u23A9",h="\u23AA",m="Size4-Regular");var g=K1(l,m,a),y=g.height+g.depth,v=K1(h,m,a),x=v.height+v.depth,b=K1(f,m,a),w=b.height+b.depth,_=0,T=1;if(u!==null){var E=K1(u,m,a);_=E.height+E.depth,T=2}var L=y+w+_,C=Math.max(0,Math.ceil((r-L)/(T*x))),A=L+C*T*x,I=i.fontMetrics().axisHeight;n&&(I*=i.sizeMultiplier);var D=A/2-I,k=[];if(d.length>0){var R=A-y-w,S=Math.round(A*1e3),O=Kbe(d,Math.round(R*1e3)),N=new Jl(d,O),P=(p/1e3).toFixed(3)+"em",F=(S/1e3).toFixed(3)+"em",B=new fl([N],{width:P,height:F,viewBox:"0 0 "+p+" "+S}),$=Ie.makeSvgSpan([],[B],i);$.height=S/1e3,$.style.width=P,$.style.height=F,k.push({type:"elem",elem:$})}else{if(k.push(uC(f,m,a)),k.push(a4),u===null){var z=A-y-w+2*AC;k.push(hC(h,z,i))}else{var W=(A-y-w-_)/2+2*AC;k.push(hC(h,W,i)),k.push(a4),k.push(uC(u,m,a)),k.push(a4),k.push(hC(h,W,i))}k.push(a4),k.push(uC(l,m,a))}var j=i.havingBaseStyle(rr.TEXT),K=Ie.makeVList({positionType:"bottom",positionData:D,children:k},j);return FC(Ie.makeSpan(["delimsizing","mult"],[K],j),rr.TEXT,i,s)},"makeStackedDelim"),fC=80,dC=.08,pC=o(function(e,r,n,i,a){var s=Xbe(e,i,n),l=new Jl(e,s),u=new fl([l],{width:"400em",height:mt(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Ie.makeSvgSpan(["hide-tail"],[u],a)},"sqrtSvg"),H4e=o(function(e,r){var n=r.havingBaseSizing(),i=h$("\\surd",e*n.sizeMultiplier,u$,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),l,u=0,h=0,f=0,d;return i.type==="small"?(f=1e3+1e3*s+fC,e<1?a=1:e<1.4&&(a=.7),u=(1+s+dC)/a,h=(1+s)/a,l=pC("sqrtMain",u,f,s,r),l.style.minWidth="0.853em",d=.833/a):i.type==="large"?(f=(1e3+fC)*Q1[i.size],h=(Q1[i.size]+s)/a,u=(Q1[i.size]+s+dC)/a,l=pC("sqrtSize"+i.size,u,f,s,r),l.style.minWidth="1.02em",d=1/a):(u=e+s+dC,h=e+s,f=Math.floor(1e3*e+s)+fC,l=pC("sqrtTall",u,f,s,r),l.style.minWidth="0.742em",d=1.056),l.height=h,l.style.height=mt(u),{span:l,advanceWidth:d,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},"makeSqrtImage"),l$=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],W4e=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],c$=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Q1=[0,1.2,1.8,2.4,3],Y4e=o(function(e,r,n,i,a){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),Jt.contains(l$,e)||Jt.contains(c$,e))return s$(e,r,!1,n,i,a);if(Jt.contains(W4e,e))return o$(e,Q1[r],!1,n,i,a);throw new ut("Illegal delimiter: '"+e+"'")},"makeSizedDelim"),q4e=[{type:"small",style:rr.SCRIPTSCRIPT},{type:"small",style:rr.SCRIPT},{type:"small",style:rr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],X4e=[{type:"small",style:rr.SCRIPTSCRIPT},{type:"small",style:rr.SCRIPT},{type:"small",style:rr.TEXT},{type:"stack"}],u$=[{type:"small",style:rr.SCRIPTSCRIPT},{type:"small",style:rr.SCRIPT},{type:"small",style:rr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],j4e=o(function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},"delimTypeToFont"),h$=o(function(e,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;sr)return n[s]}return n[n.length-1]},"traverseSequence"),f$=o(function(e,r,n,i,a,s){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var l;Jt.contains(c$,e)?l=q4e:Jt.contains(l$,e)?l=u$:l=X4e;var u=h$(e,r,l,i);return u.type==="small"?G4e(e,u.style,n,i,a,s):u.type==="large"?s$(e,u.size,n,i,a,s):o$(e,r,n,i,a,s)},"makeCustomSizedDelim"),K4e=o(function(e,r,n,i,a,s){var l=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,h=5/i.fontMetrics().ptPerEm,f=Math.max(r-l,n+l),d=Math.max(f/500*u,2*f-h);return f$(e,d,!0,i,a,s)},"makeLeftRightDelim"),nu={sqrtImage:H4e,sizedDelim:Y4e,sizeToMaxHeight:Q1,customSizedDelim:f$,leftRightDelim:K4e},yG={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Q4e=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];o(w4,"checkDelimiter");Ct({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:o((t,e)=>{var r=w4(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:yG[t.funcName].size,mclass:yG[t.funcName].mclass,delim:r.text}},"handler"),htmlBuilder:o((t,e)=>t.delim==="."?Ie.makeSpan([t.mclass]):nu.sizedDelim(t.delim,t.size,e,t.mode,[t.mclass]),"htmlBuilder"),mathmlBuilder:o(t=>{var e=[];t.delim!=="."&&e.push(Ao(t.delim,t.mode));var r=new st.MathNode("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=mt(nu.sizeToMaxHeight[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r},"mathmlBuilder")});o(vG,"assertParsed");Ct({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:o((t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new ut("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:w4(e[0],t).text,color:r}},"handler")});Ct({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:o((t,e)=>{var r=w4(e[0],t),n=t.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=yr(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},"handler"),htmlBuilder:o((t,e)=>{vG(t);for(var r=Ii(t.body,e,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s{vG(t);var r=gs(t.body,e);if(t.left!=="."){var n=new st.MathNode("mo",[Ao(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var i=new st.MathNode("mo",[Ao(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),r.push(i)}return IC(r)},"mathmlBuilder")});Ct({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:o((t,e)=>{var r=w4(e[0],t);if(!t.parser.leftrightDepth)throw new ut("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},"handler"),htmlBuilder:o((t,e)=>{var r;if(t.delim===".")r=ry(e,[]);else{r=nu.sizedDelim(t.delim,1,e,t.mode,[]);var n={delim:t.delim,options:e};r.isMiddle=n}return r},"htmlBuilder"),mathmlBuilder:o((t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?Ao("|","text"):Ao(t.delim,t.mode),n=new st.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n},"mathmlBuilder")});zC=o((t,e)=>{var r=Ie.wrapFragment(Or(t.body,e),e),n=t.label.slice(1),i=e.sizeMultiplier,a,s=0,l=Jt.isCharacterBox(t.body);if(n==="sout")a=Ie.makeSpan(["stretchy","sout"]),a.height=e.fontMetrics().defaultRuleThickness/i,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var u=Qn({number:.6,unit:"pt"},e),h=Qn({number:.35,unit:"ex"},e),f=e.havingBaseSizing();i=i/f.sizeMultiplier;var d=r.height+r.depth+u+h;r.style.paddingLeft=mt(d/2+u);var p=Math.floor(1e3*d*i),m=Ybe(p),g=new fl([new Jl("phase",m)],{width:"400em",height:mt(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=Ie.makeSvgSpan(["hide-tail"],[g],e),a.style.height=mt(d),s=r.depth+u+h}else{/cancel/.test(n)?l||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var y=0,v=0,x=0;/box/.test(n)?(x=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),y=e.fontMetrics().fboxsep+(n==="colorbox"?0:x),v=y):n==="angl"?(x=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),y=4*x,v=Math.max(0,.25-r.depth)):(y=l?.2:0,v=y),a=au.encloseSpan(r,n,y,v,e),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=mt(x)):n==="angl"&&x!==.049&&(a.style.borderTopWidth=mt(x),a.style.borderRightWidth=mt(x)),s=r.depth+v,t.backgroundColor&&(a.style.backgroundColor=t.backgroundColor,t.borderColor&&(a.style.borderColor=t.borderColor))}var b;if(t.backgroundColor)b=Ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]},e);else{var w=/cancel|phase/.test(n)?["svg-align"]:[];b=Ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:w}]},e)}return/cancel/.test(n)&&(b.height=r.height,b.depth=r.depth),/cancel/.test(n)&&!l?Ie.makeSpan(["mord","cancel-lap"],[b],e):Ie.makeSpan(["mord"],[b],e)},"htmlBuilder$7"),GC=o((t,e)=>{var r=0,n=new st.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[mn(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(t.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n},"mathmlBuilder$6");Ct({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=yr(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:zC,mathmlBuilder:GC});Ct({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=yr(e[0],"color-token").color,s=yr(e[1],"color-token").color,l=e[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:l}},htmlBuilder:zC,mathmlBuilder:GC});Ct({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});Ct({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:zC,mathmlBuilder:GC});Ct({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});d$={};o(ec,"defineEnvironment");p$={};o(le,"defineMacro");o(xG,"getHLines");T4=o(t=>{var e=t.parser.settings;if(!e.displayMode)throw new ut("{"+t.envName+"} can be used only in display mode.")},"validateAmsEnvironmentContext");o($C,"getAutoTag");o(uh,"parseArray");o(VC,"dCellStyle");tc=o(function(e,r){var n,i,a=e.body.length,s=e.hLinesBeforeRow,l=0,u=new Array(a),h=[],f=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),d=1/r.fontMetrics().ptPerEm,p=5*d;if(e.colSeparationType&&e.colSeparationType==="small"){var m=r.havingStyle(rr.SCRIPT).sizeMultiplier;p=.2778*(m/r.sizeMultiplier)}var g=e.colSeparationType==="CD"?Qn({number:3,unit:"ex"},r):12*d,y=3*d,v=e.arraystretch*g,x=.7*v,b=.3*v,w=0;function _(ke){for(var Fe=0;Fe0&&(w+=.25),h.push({pos:w,isDashed:ke[Fe]})}for(o(_,"setHLinePos"),_(s[0]),n=0;n0&&(D+=b,Lke))for(n=0;n=l)){var ee=void 0;(i>0||e.hskipBeforeAndAfter)&&(ee=Jt.deflt(W.pregap,p),ee!==0&&(O=Ie.makeSpan(["arraycolsep"],[]),O.style.width=mt(ee),S.push(O)));var J=[];for(n=0;n0){for(var ae=Ie.makeLineSpan("hline",r,f),ue=Ie.makeLineSpan("hdashline",r,f),ce=[{type:"elem",elem:u,shift:0}];h.length>0;){var te=h.pop(),De=te.pos-k;te.isDashed?ce.push({type:"elem",elem:ue,shift:De}):ce.push({type:"elem",elem:ae,shift:De})}u=Ie.makeVList({positionType:"individualShift",children:ce},r)}if(P.length===0)return Ie.makeSpan(["mord"],[u],r);var oe=Ie.makeVList({positionType:"individualShift",children:P},r);return oe=Ie.makeSpan(["tag"],[oe],r),Ie.makeFragment([u,oe])},"htmlBuilder"),Z4e={c:"center ",l:"left ",r:"right "},rc=o(function(e,r){for(var n=[],i=new st.MathNode("mtd",[],["mtr-glue"]),a=new st.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var g=e.cols,y="",v=!1,x=0,b=g.length;g[0].type==="separator"&&(p+="top ",x=1),g[g.length-1].type==="separator"&&(p+="bottom ",b-=1);for(var w=x;w0?"left ":"",p+=C[C.length-1].length>0?"right ":"";for(var A=1;A-1?"alignat":"align",a=e.envName==="split",s=uh(e.parser,{cols:n,addJot:!0,autoTag:a?void 0:$C(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),l,u=0,h={type:"ordgroup",mode:e.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var f="",d=0;d0&&m&&(v=1),n[g]={type:"align",align:y,pregap:v,postgap:0}}return s.colSeparationType=m?"align":"alignat",s},"alignedHandler");ec({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=x4(e[0]),n=r?[e[0]]:yr(e[0],"ordgroup").body,i=n.map(function(s){var l=PC(s),u=l.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new ut("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return uh(t.parser,a,VC(t.envName))},htmlBuilder:tc,mathmlBuilder:rc});ec({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,"lcr".indexOf(r)===-1)throw new ut("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=uh(t.parser,n,VC(t.envName)),s=Math.max(0,...a.body.map(l=>l.length));return a.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[a],left:e[0],right:e[1],rightColor:void 0}:a},htmlBuilder:tc,mathmlBuilder:rc});ec({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=uh(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:tc,mathmlBuilder:rc});ec({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=x4(e[0]),n=r?[e[0]]:yr(e[0],"ordgroup").body,i=n.map(function(s){var l=PC(s),u=l.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new ut("Unknown column alignment: "+u,s)});if(i.length>1)throw new ut("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=uh(t.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new ut("{subarray} can contain only one column");return a},htmlBuilder:tc,mathmlBuilder:rc});ec({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=uh(t.parser,e,VC(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:tc,mathmlBuilder:rc});ec({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:m$,htmlBuilder:tc,mathmlBuilder:rc});ec({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){Jt.contains(["gather","gather*"],t.envName)&&T4(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:$C(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return uh(t.parser,e,"display")},htmlBuilder:tc,mathmlBuilder:rc});ec({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:m$,htmlBuilder:tc,mathmlBuilder:rc});ec({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){T4(t);var e={autoTag:$C(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return uh(t.parser,e,"display")},htmlBuilder:tc,mathmlBuilder:rc});ec({type:"array",names:["CD"],props:{numArgs:0},handler(t){return T4(t),F4e(t.parser)},htmlBuilder:tc,mathmlBuilder:rc});le("\\nonumber","\\gdef\\@eqnsw{0}");le("\\notag","\\nonumber");Ct({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new ut(t.funcName+" valid only within array environment")}});bG=d$;Ct({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];if(i.type!=="ordgroup")throw new ut("Invalid environment name",i);for(var a="",s=0;s{var r=t.font,n=e.withFont(r);return Or(t.body,n)},"htmlBuilder$5"),y$=o((t,e)=>{var r=t.font,n=e.withFont(r);return mn(t.body,n)},"mathmlBuilder$4"),wG={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ct({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:o((t,e)=>{var{parser:r,funcName:n}=t,i=p4(e[0]),a=n;return a in wG&&(a=wG[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},"handler"),htmlBuilder:g$,mathmlBuilder:y$});Ct({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:o((t,e)=>{var{parser:r}=t,n=e[0],i=Jt.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:b4(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:i}},"handler")});Ct({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:o((t,e)=>{var{parser:r,funcName:n,breakOnTokenText:i}=t,{mode:a}=r,s=r.parseExpression(!0,i),l="math"+n.slice(1);return{type:"font",mode:a,font:l,body:{type:"ordgroup",mode:r.mode,body:s}}},"handler"),htmlBuilder:g$,mathmlBuilder:y$});v$=o((t,e)=>{var r=e;return t==="display"?r=r.id>=rr.SCRIPT.id?r.text():rr.DISPLAY:t==="text"&&r.size===rr.DISPLAY.size?r=rr.TEXT:t==="script"?r=rr.SCRIPT:t==="scriptscript"&&(r=rr.SCRIPTSCRIPT),r},"adjustStyle"),UC=o((t,e)=>{var r=v$(t.size,e.style),n=r.fracNum(),i=r.fracDen(),a;a=e.havingStyle(n);var s=Or(t.numer,a,e);if(t.continued){var l=8.5/e.fontMetrics().ptPerEm,u=3.5/e.fontMetrics().ptPerEm;s.height=s.height0?g=3*p:g=7*p,y=e.fontMetrics().denom1):(d>0?(m=e.fontMetrics().num2,g=p):(m=e.fontMetrics().num3,g=3*p),y=e.fontMetrics().denom2);var v;if(f){var b=e.fontMetrics().axisHeight;m-s.depth-(b+.5*d){var r=new st.MathNode("mfrac",[mn(t.numer,e),mn(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=Qn(t.barSize,e);r.setAttribute("linethickness",mt(n))}var i=v$(t.size,e.style);if(i.size!==e.style.size){r=new st.MathNode("mstyle",[r]);var a=i.size===rr.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",a),r.setAttribute("scriptlevel","0")}if(t.leftDelim!=null||t.rightDelim!=null){var s=[];if(t.leftDelim!=null){var l=new st.MathNode("mo",[new st.TextNode(t.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}if(s.push(r),t.rightDelim!=null){var u=new st.MathNode("mo",[new st.TextNode(t.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return IC(s)}return r},"mathmlBuilder$3");Ct({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:o((t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1],s,l=null,u=null,h="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,l="(",u=")";break;case"\\\\bracefrac":s=!1,l="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,l="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:l,rightDelim:u,size:h,barSize:null}},"handler"),htmlBuilder:UC,mathmlBuilder:HC});Ct({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:o((t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}},"handler")});Ct({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:n}}});TG=["display","text","script","scriptscript"],kG=o(function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r},"delimFromValue");Ct({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:r}=t,n=e[4],i=e[5],a=p4(e[0]),s=a.type==="atom"&&a.family==="open"?kG(a.text):null,l=p4(e[1]),u=l.type==="atom"&&l.family==="close"?kG(l.text):null,h=yr(e[2],"size"),f,d=null;h.isBlank?f=!0:(d=h.value,f=d.number>0);var p="auto",m=e[3];if(m.type==="ordgroup"){if(m.body.length>0){var g=yr(m.body[0],"textord");p=TG[Number(g.text)]}}else m=yr(m,"textord"),p=TG[Number(m.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:f,barSize:d,leftDelim:s,rightDelim:u,size:p}},htmlBuilder:UC,mathmlBuilder:HC});Ct({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:r,funcName:n,token:i}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:yr(e[0],"size").value,token:i}}});Ct({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:o((t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=Nbe(yr(e[1],"infix").size),s=e[2],l=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:l,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},"handler"),htmlBuilder:UC,mathmlBuilder:HC});x$=o((t,e)=>{var r=e.style,n,i;t.type==="supsub"?(n=t.sup?Or(t.sup,e.havingStyle(r.sup()),e):Or(t.sub,e.havingStyle(r.sub()),e),i=yr(t.base,"horizBrace")):i=yr(t,"horizBrace");var a=Or(i.base,e.havingBaseStyle(rr.DISPLAY)),s=au.svgSpan(i,e),l;if(i.isOver?(l=Ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},e),l.children[0].children[0].children[1].classes.push("svg-align")):(l=Ie.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},e),l.children[0].children[0].children[0].classes.push("svg-align")),n){var u=Ie.makeSpan(["mord",i.isOver?"mover":"munder"],[l],e);i.isOver?l=Ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]},e):l=Ie.makeVList({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]},e)}return Ie.makeSpan(["mord",i.isOver?"mover":"munder"],[l],e)},"htmlBuilder$3"),J4e=o((t,e)=>{var r=au.mathMLnode(t.label);return new st.MathNode(t.isOver?"mover":"munder",[mn(t.base,e),r])},"mathmlBuilder$2");Ct({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:x$,mathmlBuilder:J4e});Ct({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:o((t,e)=>{var{parser:r}=t,n=e[1],i=yr(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:di(n)}:r.formatUnsupportedCmd("\\href")},"handler"),htmlBuilder:o((t,e)=>{var r=Ii(t.body,e,!1);return Ie.makeAnchor(t.href,[],r,e)},"htmlBuilder"),mathmlBuilder:o((t,e)=>{var r=ch(t.body,e);return r instanceof ps||(r=new ps("mrow",[r])),r.setAttribute("href",t.href),r},"mathmlBuilder")});Ct({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:o((t,e)=>{var{parser:r}=t,n=yr(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:r,funcName:n,token:i}=t,a=yr(e[0],"raw").string,s=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,u={};switch(n){case"\\htmlClass":u.class=a,l={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,l={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,l={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var h=a.split(","),f=0;f{var r=Ii(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var i=Ie.makeSpan(n,r,e);for(var a in t.attributes)a!=="class"&&t.attributes.hasOwnProperty(a)&&i.setAttribute(a,t.attributes[a]);return i},"htmlBuilder"),mathmlBuilder:o((t,e)=>ch(t.body,e),"mathmlBuilder")});Ct({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:o((t,e)=>{var{parser:r}=t;return{type:"htmlmathml",mode:r.mode,html:di(e[0]),mathml:di(e[1])}},"handler"),htmlBuilder:o((t,e)=>{var r=Ii(t.html,e,!1);return Ie.makeFragment(r)},"htmlBuilder"),mathmlBuilder:o((t,e)=>ch(t.mathml,e),"mathmlBuilder")});mC=o(function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new ut("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!FG(n))throw new ut("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n},"sizeData");Ct({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:o((t,e,r)=>{var{parser:n}=t,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(r[0])for(var u=yr(r[0],"raw").string,h=u.split(","),f=0;f{var r=Qn(t.height,e),n=0;t.totalheight.number>0&&(n=Qn(t.totalheight,e)-r);var i=0;t.width.number>0&&(i=Qn(t.width,e));var a={height:mt(r+n)};i>0&&(a.width=mt(i)),n>0&&(a.verticalAlign=mt(-n));var s=new wC(t.src,t.alt,a);return s.height=r,s.depth=n,s},"htmlBuilder"),mathmlBuilder:o((t,e)=>{var r=new st.MathNode("mglyph",[]);r.setAttribute("alt",t.alt);var n=Qn(t.height,e),i=0;if(t.totalheight.number>0&&(i=Qn(t.totalheight,e)-n,r.setAttribute("valign",mt(-i))),r.setAttribute("height",mt(n+i)),t.width.number>0){var a=Qn(t.width,e);r.setAttribute("width",mt(a))}return r.setAttribute("src",t.src),r},"mathmlBuilder")});Ct({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=yr(e[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(t,e){return Ie.makeGlue(t.dimension,e)},mathmlBuilder(t,e){var r=Qn(t.dimension,e);return new st.SpaceNode(r)}});Ct({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:o((t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},"handler"),htmlBuilder:o((t,e)=>{var r;t.alignment==="clap"?(r=Ie.makeSpan([],[Or(t.body,e)]),r=Ie.makeSpan(["inner"],[r],e)):r=Ie.makeSpan(["inner"],[Or(t.body,e)]);var n=Ie.makeSpan(["fix"],[]),i=Ie.makeSpan([t.alignment],[r,n],e),a=Ie.makeSpan(["strut"]);return a.style.height=mt(i.height+i.depth),i.depth&&(a.style.verticalAlign=mt(-i.depth)),i.children.unshift(a),i=Ie.makeSpan(["thinbox"],[i],e),Ie.makeSpan(["mord","vbox"],[i],e)},"htmlBuilder"),mathmlBuilder:o((t,e)=>{var r=new st.MathNode("mpadded",[mn(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r},"mathmlBuilder")});Ct({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:r,parser:n}=t,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:s}}});Ct({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new ut("Mismatched "+t.funcName)}});EG=o((t,e)=>{switch(e.style.size){case rr.DISPLAY.size:return t.display;case rr.TEXT.size:return t.text;case rr.SCRIPT.size:return t.script;case rr.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}},"chooseMathStyle");Ct({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:o((t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:di(e[0]),text:di(e[1]),script:di(e[2]),scriptscript:di(e[3])}},"handler"),htmlBuilder:o((t,e)=>{var r=EG(t,e),n=Ii(r,e,!1);return Ie.makeFragment(n)},"htmlBuilder"),mathmlBuilder:o((t,e)=>{var r=EG(t,e);return ch(r,e)},"mathmlBuilder")});b$=o((t,e,r,n,i,a,s)=>{t=Ie.makeSpan([],[t]);var l=r&&Jt.isCharacterBox(r),u,h;if(e){var f=Or(e,n.havingStyle(i.sup()),n);h={elem:f,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-f.depth)}}if(r){var d=Or(r,n.havingStyle(i.sub()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-d.height)}}var p;if(h&&u){var m=n.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+t.depth+s;p=Ie.makeVList({positionType:"bottom",positionData:m,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:mt(-a)},{type:"kern",size:u.kern},{type:"elem",elem:t},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:mt(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(u){var g=t.height-s;p=Ie.makeVList({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:mt(-a)},{type:"kern",size:u.kern},{type:"elem",elem:t}]},n)}else if(h){var y=t.depth+s;p=Ie.makeVList({positionType:"bottom",positionData:y,children:[{type:"elem",elem:t},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:mt(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return t;var v=[p];if(u&&a!==0&&!l){var x=Ie.makeSpan(["mspace"],[],n);x.style.marginRight=mt(a),v.unshift(x)}return Ie.makeSpan(["mop","op-limits"],v,n)},"assembleSupSub"),w$=["\\smallint"],pp=o((t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=yr(t.base,"op"),i=!0):a=yr(t,"op");var s=e.style,l=!1;s.size===rr.DISPLAY.size&&a.symbol&&!Jt.contains(w$,a.name)&&(l=!0);var u;if(a.symbol){var h=l?"Size2-Regular":"Size1-Regular",f="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(f=a.name.slice(1),a.name=f==="oiint"?"\\iint":"\\iiint"),u=Ie.makeSymbol(a.name,h,"math",e,["mop","op-symbol",l?"large-op":"small-op"]),f.length>0){var d=u.italic,p=Ie.staticSvg(f+"Size"+(l?"2":"1"),e);u=Ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:p,shift:l?.08:0}]},e),a.name="\\"+f,u.classes.unshift("mop"),u.italic=d}}else if(a.body){var m=Ii(a.body,e,!0);m.length===1&&m[0]instanceof ms?(u=m[0],u.classes[0]="mop"):u=Ie.makeSpan(["mop"],m,e)}else{for(var g=[],y=1;y{var r;if(t.symbol)r=new ps("mo",[Ao(t.name,t.mode)]),Jt.contains(w$,t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new ps("mo",gs(t.body,e));else{r=new ps("mi",[new Wf(t.name.slice(1))]);var n=new ps("mo",[Ao("\u2061","text")]);t.parentIsSupSub?r=new ps("mrow",[r,n]):r=jG([r,n])}return r},"mathmlBuilder$1"),e3e={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Ct({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:o((t,e)=>{var{parser:r,funcName:n}=t,i=n;return i.length===1&&(i=e3e[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},"handler"),htmlBuilder:pp,mathmlBuilder:ny});Ct({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:o((t,e)=>{var{parser:r}=t,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:di(n)}},"handler"),htmlBuilder:pp,mathmlBuilder:ny});t3e={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Ct({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:pp,mathmlBuilder:ny});Ct({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:pp,mathmlBuilder:ny});Ct({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t,n=r;return n.length===1&&(n=t3e[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:pp,mathmlBuilder:ny});T$=o((t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=yr(t.base,"operatorname"),i=!0):a=yr(t,"operatorname");var s;if(a.body.length>0){for(var l=a.body.map(d=>{var p=d.text;return typeof p=="string"?{type:"textord",mode:d.mode,text:p}:d}),u=Ii(l,e.withFont("mathrm"),!0),h=0;h{for(var r=gs(t.body,e.withFont("mathrm")),n=!0,i=0;if.toText()).join("");r=[new st.TextNode(l)]}var u=new st.MathNode("mi",r);u.setAttribute("mathvariant","normal");var h=new st.MathNode("mo",[Ao("\u2061","text")]);return t.parentIsSupSub?new st.MathNode("mrow",[u,h]):st.newDocumentFragment([u,h])},"mathmlBuilder");Ct({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:o((t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"operatorname",mode:r.mode,body:di(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},"handler"),htmlBuilder:T$,mathmlBuilder:r3e});le("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Xf({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?Ie.makeFragment(Ii(t.body,e,!1)):Ie.makeSpan(["mord"],Ii(t.body,e,!0),e)},mathmlBuilder(t,e){return ch(t.body,e,!0)}});Ct({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:r}=t,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=Or(t.body,e.havingCrampedStyle()),n=Ie.makeLineSpan("overline-line",e),i=e.fontMetrics().defaultRuleThickness,a=Ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]},e);return Ie.makeSpan(["mord","overline"],[a],e)},mathmlBuilder(t,e){var r=new st.MathNode("mo",[new st.TextNode("\u203E")]);r.setAttribute("stretchy","true");var n=new st.MathNode("mover",[mn(t.body,e),r]);return n.setAttribute("accent","true"),n}});Ct({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:o((t,e)=>{var{parser:r}=t,n=e[0];return{type:"phantom",mode:r.mode,body:di(n)}},"handler"),htmlBuilder:o((t,e)=>{var r=Ii(t.body,e.withPhantom(),!1);return Ie.makeFragment(r)},"htmlBuilder"),mathmlBuilder:o((t,e)=>{var r=gs(t.body,e);return new st.MathNode("mphantom",r)},"mathmlBuilder")});Ct({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:o((t,e)=>{var{parser:r}=t,n=e[0];return{type:"hphantom",mode:r.mode,body:n}},"handler"),htmlBuilder:o((t,e)=>{var r=Ie.makeSpan([],[Or(t.body,e.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n{var r=gs(di(t.body),e),n=new st.MathNode("mphantom",r),i=new st.MathNode("mpadded",[n]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i},"mathmlBuilder")});Ct({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:o((t,e)=>{var{parser:r}=t,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},"handler"),htmlBuilder:o((t,e)=>{var r=Ie.makeSpan(["inner"],[Or(t.body,e.withPhantom())]),n=Ie.makeSpan(["fix"],[]);return Ie.makeSpan(["mord","rlap"],[r,n],e)},"htmlBuilder"),mathmlBuilder:o((t,e)=>{var r=gs(di(t.body),e),n=new st.MathNode("mphantom",r),i=new st.MathNode("mpadded",[n]);return i.setAttribute("width","0px"),i},"mathmlBuilder")});Ct({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t,n=yr(e[0],"size").value,i=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(t,e){var r=Or(t.body,e),n=Qn(t.dy,e);return Ie.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},e)},mathmlBuilder(t,e){var r=new st.MathNode("mpadded",[mn(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});Ct({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});Ct({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(t,e,r){var{parser:n}=t,i=r[0],a=yr(e[0],"size"),s=yr(e[1],"size");return{type:"rule",mode:n.mode,shift:i&&yr(i,"size").value,width:a.value,height:s.value}},htmlBuilder(t,e){var r=Ie.makeSpan(["mord","rule"],[],e),n=Qn(t.width,e),i=Qn(t.height,e),a=t.shift?Qn(t.shift,e):0;return r.style.borderRightWidth=mt(n),r.style.borderTopWidth=mt(i),r.style.bottom=mt(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=Qn(t.width,e),n=Qn(t.height,e),i=t.shift?Qn(t.shift,e):0,a=e.color&&e.getColor()||"black",s=new st.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",mt(r)),s.setAttribute("height",mt(n));var l=new st.MathNode("mpadded",[s]);return i>=0?l.setAttribute("height",mt(i)):(l.setAttribute("height",mt(i)),l.setAttribute("depth",mt(-i))),l.setAttribute("voffset",mt(i)),l}});o(k$,"sizingGroup");SG=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],n3e=o((t,e)=>{var r=e.havingSize(t.size);return k$(t.body,r,e)},"htmlBuilder");Ct({type:"sizing",names:SG,props:{numArgs:0,allowedInText:!0},handler:o((t,e)=>{var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:SG.indexOf(n)+1,body:a}},"handler"),htmlBuilder:n3e,mathmlBuilder:o((t,e)=>{var r=e.havingSize(t.size),n=gs(t.body,r),i=new st.MathNode("mstyle",n);return i.setAttribute("mathsize",mt(r.sizeMultiplier)),i},"mathmlBuilder")});Ct({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:o((t,e,r)=>{var{parser:n}=t,i=!1,a=!1,s=r[0]&&yr(r[0],"ordgroup");if(s)for(var l="",u=0;u{var r=Ie.makeSpan([],[Or(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0,r.children))for(var n=0;n{var r=new st.MathNode("mpadded",[mn(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r},"mathmlBuilder")});Ct({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n}=t,i=r[0],a=e[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(t,e){var r=Or(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=Ie.wrapFragment(r,e);var n=e.fontMetrics(),i=n.defaultRuleThickness,a=i;e.style.idr.height+r.depth+s&&(s=(s+d-r.height-r.depth)/2);var p=u.height-r.height-s-h;r.style.paddingLeft=mt(f);var m=Ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+p)},{type:"elem",elem:u},{type:"kern",size:h}]},e);if(t.index){var g=e.havingStyle(rr.SCRIPTSCRIPT),y=Or(t.index,g,e),v=.6*(m.height-m.depth),x=Ie.makeVList({positionType:"shift",positionData:-v,children:[{type:"elem",elem:y}]},e),b=Ie.makeSpan(["root"],[x]);return Ie.makeSpan(["mord","sqrt"],[b,m],e)}else return Ie.makeSpan(["mord","sqrt"],[m],e)},mathmlBuilder(t,e){var{body:r,index:n}=t;return n?new st.MathNode("mroot",[mn(r,e),mn(n,e)]):new st.MathNode("msqrt",[mn(r,e)])}});CG={display:rr.DISPLAY,text:rr.TEXT,script:rr.SCRIPT,scriptscript:rr.SCRIPTSCRIPT};Ct({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(t,e){var r=CG[t.style],n=e.havingStyle(r).withFont("");return k$(t.body,n,e)},mathmlBuilder(t,e){var r=CG[t.style],n=e.havingStyle(r),i=gs(t.body,n),a=new st.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=s[t.style];return a.setAttribute("scriptlevel",l[0]),a.setAttribute("displaystyle",l[1]),a}});i3e=o(function(e,r){var n=e.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===rr.DISPLAY.size||n.alwaysHandleSupSub);return i?pp:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===rr.DISPLAY.size||n.limits);return a?T$:null}else{if(n.type==="accent")return Jt.isCharacterBox(n.base)?BC:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?x$:null}else return null}else return null},"htmlBuilderDelegate");Xf({type:"supsub",htmlBuilder(t,e){var r=i3e(t,e);if(r)return r(t,e);var{base:n,sup:i,sub:a}=t,s=Or(n,e),l,u,h=e.fontMetrics(),f=0,d=0,p=n&&Jt.isCharacterBox(n);if(i){var m=e.havingStyle(e.style.sup());l=Or(i,m,e),p||(f=s.height-m.fontMetrics().supDrop*m.sizeMultiplier/e.sizeMultiplier)}if(a){var g=e.havingStyle(e.style.sub());u=Or(a,g,e),p||(d=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/e.sizeMultiplier)}var y;e.style===rr.DISPLAY?y=h.sup1:e.style.cramped?y=h.sup3:y=h.sup2;var v=e.sizeMultiplier,x=mt(.5/h.ptPerEm/v),b=null;if(u){var w=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(s instanceof ms||w)&&(b=mt(-s.italic))}var _;if(l&&u){f=Math.max(f,y,l.depth+.25*h.xHeight),d=Math.max(d,h.sub2);var T=h.defaultRuleThickness,E=4*T;if(f-l.depth-(u.height-d)0&&(f+=L,d-=L)}var C=[{type:"elem",elem:u,shift:d,marginRight:x,marginLeft:b},{type:"elem",elem:l,shift:-f,marginRight:x}];_=Ie.makeVList({positionType:"individualShift",children:C},e)}else if(u){d=Math.max(d,h.sub1,u.height-.8*h.xHeight);var A=[{type:"elem",elem:u,marginLeft:b,marginRight:x}];_=Ie.makeVList({positionType:"shift",positionData:d,children:A},e)}else if(l)f=Math.max(f,y,l.depth+.25*h.xHeight),_=Ie.makeVList({positionType:"shift",positionData:-f,children:[{type:"elem",elem:l,marginRight:x}]},e);else throw new Error("supsub must have either sup or sub.");var I=kC(s,"right")||"mord";return Ie.makeSpan([I],[s,Ie.makeSpan(["msupsub"],[_])],e)},mathmlBuilder(t,e){var r=!1,n,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var a=[mn(t.base,e)];t.sub&&a.push(mn(t.sub,e)),t.sup&&a.push(mn(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var h=t.base;h&&h.type==="op"&&h.limits&&e.style===rr.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(e.style===rr.DISPLAY||h.limits)?s="munderover":s="msubsup"}else{var u=t.base;u&&u.type==="op"&&u.limits&&(e.style===rr.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||e.style===rr.DISPLAY)?s="munder":s="msub"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===rr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===rr.DISPLAY)?s="mover":s="msup"}return new st.MathNode(s,a)}});Xf({type:"atom",htmlBuilder(t,e){return Ie.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new st.MathNode("mo",[Ao(t.text,t.mode)]);if(t.family==="bin"){var n=OC(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});E$={mi:"italic",mn:"normal",mtext:"normal"};Xf({type:"mathord",htmlBuilder(t,e){return Ie.makeOrd(t,e,"mathord")},mathmlBuilder(t,e){var r=new st.MathNode("mi",[Ao(t.text,t.mode,e)]),n=OC(t,e)||"italic";return n!==E$[r.type]&&r.setAttribute("mathvariant",n),r}});Xf({type:"textord",htmlBuilder(t,e){return Ie.makeOrd(t,e,"textord")},mathmlBuilder(t,e){var r=Ao(t.text,t.mode,e),n=OC(t,e)||"normal",i;return t.mode==="text"?i=new st.MathNode("mtext",[r]):/[0-9]/.test(t.text)?i=new st.MathNode("mn",[r]):t.text==="\\prime"?i=new st.MathNode("mo",[r]):i=new st.MathNode("mi",[r]),n!==E$[i.type]&&i.setAttribute("mathvariant",n),i}});gC={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},yC={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Xf({type:"spacing",htmlBuilder(t,e){if(yC.hasOwnProperty(t.text)){var r=yC[t.text].className||"";if(t.mode==="text"){var n=Ie.makeOrd(t,e,"textord");return n.classes.push(r),n}else return Ie.makeSpan(["mspace",r],[Ie.mathsym(t.text,t.mode,e)],e)}else{if(gC.hasOwnProperty(t.text))return Ie.makeSpan(["mspace",gC[t.text]],[],e);throw new ut('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(yC.hasOwnProperty(t.text))r=new st.MathNode("mtext",[new st.TextNode("\xA0")]);else{if(gC.hasOwnProperty(t.text))return new st.MathNode("mspace");throw new ut('Unknown type of space "'+t.text+'"')}return r}});AG=o(()=>{var t=new st.MathNode("mtd",[]);return t.setAttribute("width","50%"),t},"pad");Xf({type:"tag",mathmlBuilder(t,e){var r=new st.MathNode("mtable",[new st.MathNode("mtr",[AG(),new st.MathNode("mtd",[ch(t.body,e)]),AG(),new st.MathNode("mtd",[ch(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});_G={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},LG={"\\textbf":"textbf","\\textmd":"textmd"},a3e={"\\textit":"textit","\\textup":"textup"},DG=o((t,e)=>{var r=t.font;if(r){if(_G[r])return e.withTextFontFamily(_G[r]);if(LG[r])return e.withTextFontWeight(LG[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(a3e[r])},"optionsWithFont");Ct({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"text",mode:r.mode,body:di(i),font:n}},htmlBuilder(t,e){var r=DG(t,e),n=Ii(t.body,r,!0);return Ie.makeSpan(["mord","text"],n,r)},mathmlBuilder(t,e){var r=DG(t,e);return ch(t.body,r)}});Ct({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=Or(t.body,e),n=Ie.makeLineSpan("underline-line",e),i=e.fontMetrics().defaultRuleThickness,a=Ie.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]},e);return Ie.makeSpan(["mord","underline"],[a],e)},mathmlBuilder(t,e){var r=new st.MathNode("mo",[new st.TextNode("\u203E")]);r.setAttribute("stretchy","true");var n=new st.MathNode("munder",[mn(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});Ct({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=Or(t.body,e),n=e.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return Ie.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]},e)},mathmlBuilder(t,e){return new st.MathNode("mpadded",[mn(t.body,e)],["vcenter"])}});Ct({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,r){throw new ut("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=NG(t),n=[],i=e.havingStyle(e.style.text()),a=0;at.body.replace(/ /g,t.star?"\u2423":"\xA0"),"makeVerb"),oh=qG,S$=`[ \r + ]`,s3e="\\\\[a-zA-Z@]+",o3e="\\\\[^\uD800-\uDFFF]",l3e="("+s3e+")"+S$+"*",c3e=`\\\\( +|[ \r ]+ +?)[ \r ]*`,_C="[\u0300-\u036F]",u3e=new RegExp(_C+"+$"),h3e="("+S$+"+)|"+(c3e+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(_C+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(_C+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+l3e)+("|"+o3e+")"),m4=class{static{o(this,"Lexer")}constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(h3e,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new Co("EOF",new Ys(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new ut("Unexpected character: '"+e[r]+"'",new Co(e[r],new Ys(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=e.indexOf(` +`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Co(i,new Ys(this,r,this.tokenRegex.lastIndex))}},LC=class{static{o(this,"Namespace")}constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ut("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}},f3e=p$;le("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});le("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});le("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});le("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});le("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});le("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");le("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});RG={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};le("\\char",function(t){var e=t.popToken(),r,n="";if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new ut("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=RG[e.text],n==null||n>=r)throw new ut("Invalid base-"+r+" digit "+e.text);for(var i;(i=RG[t.future().text])!=null&&i{var n=t.consumeArg().tokens;if(n.length!==1)throw new ut("\\newcommand's first argument must be a macro name");var i=n[0].text,a=t.isDefined(i);if(a&&!e)throw new ut("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!r)throw new ut("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(n=t.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var l="",u=t.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new ut("Invalid number of arguments: "+l);s=parseInt(l),n=t.consumeArg().tokens}return t.macros.set(i,{tokens:n,numArgs:s}),""},"newcommand");le("\\newcommand",t=>WC(t,!1,!0));le("\\renewcommand",t=>WC(t,!0,!1));le("\\providecommand",t=>WC(t,!0,!0));le("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});le("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});le("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),oh[r],En.math[r],En.text[r]),""});le("\\bgroup","{");le("\\egroup","}");le("~","\\nobreakspace");le("\\lq","`");le("\\rq","'");le("\\aa","\\r a");le("\\AA","\\r A");le("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");le("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");le("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");le("\u212C","\\mathscr{B}");le("\u2130","\\mathscr{E}");le("\u2131","\\mathscr{F}");le("\u210B","\\mathscr{H}");le("\u2110","\\mathscr{I}");le("\u2112","\\mathscr{L}");le("\u2133","\\mathscr{M}");le("\u211B","\\mathscr{R}");le("\u212D","\\mathfrak{C}");le("\u210C","\\mathfrak{H}");le("\u2128","\\mathfrak{Z}");le("\\Bbbk","\\Bbb{k}");le("\xB7","\\cdotp");le("\\llap","\\mathllap{\\textrm{#1}}");le("\\rlap","\\mathrlap{\\textrm{#1}}");le("\\clap","\\mathclap{\\textrm{#1}}");le("\\mathstrut","\\vphantom{(}");le("\\underbar","\\underline{\\text{#1}}");le("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');le("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");le("\\ne","\\neq");le("\u2260","\\neq");le("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");le("\u2209","\\notin");le("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");le("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");le("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");le("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");le("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");le("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");le("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");le("\u27C2","\\perp");le("\u203C","\\mathclose{!\\mkern-0.8mu!}");le("\u220C","\\notni");le("\u231C","\\ulcorner");le("\u231D","\\urcorner");le("\u231E","\\llcorner");le("\u231F","\\lrcorner");le("\xA9","\\copyright");le("\xAE","\\textregistered");le("\uFE0F","\\textregistered");le("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');le("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');le("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');le("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');le("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");le("\u22EE","\\vdots");le("\\varGamma","\\mathit{\\Gamma}");le("\\varDelta","\\mathit{\\Delta}");le("\\varTheta","\\mathit{\\Theta}");le("\\varLambda","\\mathit{\\Lambda}");le("\\varXi","\\mathit{\\Xi}");le("\\varPi","\\mathit{\\Pi}");le("\\varSigma","\\mathit{\\Sigma}");le("\\varUpsilon","\\mathit{\\Upsilon}");le("\\varPhi","\\mathit{\\Phi}");le("\\varPsi","\\mathit{\\Psi}");le("\\varOmega","\\mathit{\\Omega}");le("\\substack","\\begin{subarray}{c}#1\\end{subarray}");le("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");le("\\boxed","\\fbox{$\\displaystyle{#1}$}");le("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");le("\\implies","\\DOTSB\\;\\Longrightarrow\\;");le("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");MG={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};le("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in MG?e=MG[r]:(r.slice(0,4)==="\\not"||r in En.math&&Jt.contains(["bin","rel"],En.math[r].group))&&(e="\\dotsb"),e});YC={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};le("\\dotso",function(t){var e=t.future().text;return e in YC?"\\ldots\\,":"\\ldots"});le("\\dotsc",function(t){var e=t.future().text;return e in YC&&e!==","?"\\ldots\\,":"\\ldots"});le("\\cdots",function(t){var e=t.future().text;return e in YC?"\\@cdots\\,":"\\@cdots"});le("\\dotsb","\\cdots");le("\\dotsm","\\cdots");le("\\dotsi","\\!\\cdots");le("\\dotsx","\\ldots\\,");le("\\DOTSI","\\relax");le("\\DOTSB","\\relax");le("\\DOTSX","\\relax");le("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");le("\\,","\\tmspace+{3mu}{.1667em}");le("\\thinspace","\\,");le("\\>","\\mskip{4mu}");le("\\:","\\tmspace+{4mu}{.2222em}");le("\\medspace","\\:");le("\\;","\\tmspace+{5mu}{.2777em}");le("\\thickspace","\\;");le("\\!","\\tmspace-{3mu}{.1667em}");le("\\negthinspace","\\!");le("\\negmedspace","\\tmspace-{4mu}{.2222em}");le("\\negthickspace","\\tmspace-{5mu}{.277em}");le("\\enspace","\\kern.5em ");le("\\enskip","\\hskip.5em\\relax");le("\\quad","\\hskip1em\\relax");le("\\qquad","\\hskip2em\\relax");le("\\tag","\\@ifstar\\tag@literal\\tag@paren");le("\\tag@paren","\\tag@literal{({#1})}");le("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new ut("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});le("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");le("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");le("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");le("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");le("\\newline","\\\\\\relax");le("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");C$=mt(Zl["Main-Regular"][84][1]-.7*Zl["Main-Regular"][65][1]);le("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+C$+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");le("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+C$+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");le("\\hspace","\\@ifstar\\@hspacer\\@hspace");le("\\@hspace","\\hskip #1\\relax");le("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");le("\\ordinarycolon",":");le("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");le("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');le("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');le("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');le("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');le("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');le("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');le("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');le("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');le("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');le("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');le("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');le("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');le("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');le("\u2237","\\dblcolon");le("\u2239","\\eqcolon");le("\u2254","\\coloneqq");le("\u2255","\\eqqcolon");le("\u2A74","\\Coloneqq");le("\\ratio","\\vcentcolon");le("\\coloncolon","\\dblcolon");le("\\colonequals","\\coloneqq");le("\\coloncolonequals","\\Coloneqq");le("\\equalscolon","\\eqqcolon");le("\\equalscoloncolon","\\Eqqcolon");le("\\colonminus","\\coloneq");le("\\coloncolonminus","\\Coloneq");le("\\minuscolon","\\eqcolon");le("\\minuscoloncolon","\\Eqcolon");le("\\coloncolonapprox","\\Colonapprox");le("\\coloncolonsim","\\Colonsim");le("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");le("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");le("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");le("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");le("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");le("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");le("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");le("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");le("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");le("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");le("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");le("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");le("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");le("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");le("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");le("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");le("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");le("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");le("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");le("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");le("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");le("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");le("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");le("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");le("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");le("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");le("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");le("\\imath","\\html@mathml{\\@imath}{\u0131}");le("\\jmath","\\html@mathml{\\@jmath}{\u0237}");le("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");le("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");le("\u27E6","\\llbracket");le("\u27E7","\\rrbracket");le("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");le("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");le("\u2983","\\lBrace");le("\u2984","\\rBrace");le("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");le("\u29B5","\\minuso");le("\\darr","\\downarrow");le("\\dArr","\\Downarrow");le("\\Darr","\\Downarrow");le("\\lang","\\langle");le("\\rang","\\rangle");le("\\uarr","\\uparrow");le("\\uArr","\\Uparrow");le("\\Uarr","\\Uparrow");le("\\N","\\mathbb{N}");le("\\R","\\mathbb{R}");le("\\Z","\\mathbb{Z}");le("\\alef","\\aleph");le("\\alefsym","\\aleph");le("\\Alpha","\\mathrm{A}");le("\\Beta","\\mathrm{B}");le("\\bull","\\bullet");le("\\Chi","\\mathrm{X}");le("\\clubs","\\clubsuit");le("\\cnums","\\mathbb{C}");le("\\Complex","\\mathbb{C}");le("\\Dagger","\\ddagger");le("\\diamonds","\\diamondsuit");le("\\empty","\\emptyset");le("\\Epsilon","\\mathrm{E}");le("\\Eta","\\mathrm{H}");le("\\exist","\\exists");le("\\harr","\\leftrightarrow");le("\\hArr","\\Leftrightarrow");le("\\Harr","\\Leftrightarrow");le("\\hearts","\\heartsuit");le("\\image","\\Im");le("\\infin","\\infty");le("\\Iota","\\mathrm{I}");le("\\isin","\\in");le("\\Kappa","\\mathrm{K}");le("\\larr","\\leftarrow");le("\\lArr","\\Leftarrow");le("\\Larr","\\Leftarrow");le("\\lrarr","\\leftrightarrow");le("\\lrArr","\\Leftrightarrow");le("\\Lrarr","\\Leftrightarrow");le("\\Mu","\\mathrm{M}");le("\\natnums","\\mathbb{N}");le("\\Nu","\\mathrm{N}");le("\\Omicron","\\mathrm{O}");le("\\plusmn","\\pm");le("\\rarr","\\rightarrow");le("\\rArr","\\Rightarrow");le("\\Rarr","\\Rightarrow");le("\\real","\\Re");le("\\reals","\\mathbb{R}");le("\\Reals","\\mathbb{R}");le("\\Rho","\\mathrm{P}");le("\\sdot","\\cdot");le("\\sect","\\S");le("\\spades","\\spadesuit");le("\\sub","\\subset");le("\\sube","\\subseteq");le("\\supe","\\supseteq");le("\\Tau","\\mathrm{T}");le("\\thetasym","\\vartheta");le("\\weierp","\\wp");le("\\Zeta","\\mathrm{Z}");le("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");le("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");le("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");le("\\bra","\\mathinner{\\langle{#1}|}");le("\\ket","\\mathinner{|{#1}\\rangle}");le("\\braket","\\mathinner{\\langle{#1}\\rangle}");le("\\Bra","\\left\\langle#1\\right|");le("\\Ket","\\left|#1\\right\\rangle");A$=o(t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,i=e.consumeArg().tokens,a=e.consumeArg().tokens,s=e.macros.get("|"),l=e.macros.get("\\|");e.macros.beginGroup();var u=o(d=>p=>{t&&(p.macros.set("|",s),i.length&&p.macros.set("\\|",l));var m=d;if(!d&&i.length){var g=p.future();g.text==="|"&&(p.popToken(),m=!0)}return{tokens:m?i:n,numArgs:0}},"midMacro");e.macros.set("|",u(!1)),i.length&&e.macros.set("\\|",u(!0));var h=e.consumeArg().tokens,f=e.expandTokens([...a,...h,...r]);return e.macros.endGroup(),{tokens:f.reverse(),numArgs:0}},"braketHelper");le("\\bra@ket",A$(!1));le("\\bra@set",A$(!0));le("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");le("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");le("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");le("\\angln","{\\angl n}");le("\\blue","\\textcolor{##6495ed}{#1}");le("\\orange","\\textcolor{##ffa500}{#1}");le("\\pink","\\textcolor{##ff00af}{#1}");le("\\red","\\textcolor{##df0030}{#1}");le("\\green","\\textcolor{##28ae7b}{#1}");le("\\gray","\\textcolor{gray}{#1}");le("\\purple","\\textcolor{##9d38bd}{#1}");le("\\blueA","\\textcolor{##ccfaff}{#1}");le("\\blueB","\\textcolor{##80f6ff}{#1}");le("\\blueC","\\textcolor{##63d9ea}{#1}");le("\\blueD","\\textcolor{##11accd}{#1}");le("\\blueE","\\textcolor{##0c7f99}{#1}");le("\\tealA","\\textcolor{##94fff5}{#1}");le("\\tealB","\\textcolor{##26edd5}{#1}");le("\\tealC","\\textcolor{##01d1c1}{#1}");le("\\tealD","\\textcolor{##01a995}{#1}");le("\\tealE","\\textcolor{##208170}{#1}");le("\\greenA","\\textcolor{##b6ffb0}{#1}");le("\\greenB","\\textcolor{##8af281}{#1}");le("\\greenC","\\textcolor{##74cf70}{#1}");le("\\greenD","\\textcolor{##1fab54}{#1}");le("\\greenE","\\textcolor{##0d923f}{#1}");le("\\goldA","\\textcolor{##ffd0a9}{#1}");le("\\goldB","\\textcolor{##ffbb71}{#1}");le("\\goldC","\\textcolor{##ff9c39}{#1}");le("\\goldD","\\textcolor{##e07d10}{#1}");le("\\goldE","\\textcolor{##a75a05}{#1}");le("\\redA","\\textcolor{##fca9a9}{#1}");le("\\redB","\\textcolor{##ff8482}{#1}");le("\\redC","\\textcolor{##f9685d}{#1}");le("\\redD","\\textcolor{##e84d39}{#1}");le("\\redE","\\textcolor{##bc2612}{#1}");le("\\maroonA","\\textcolor{##ffbde0}{#1}");le("\\maroonB","\\textcolor{##ff92c6}{#1}");le("\\maroonC","\\textcolor{##ed5fa6}{#1}");le("\\maroonD","\\textcolor{##ca337c}{#1}");le("\\maroonE","\\textcolor{##9e034e}{#1}");le("\\purpleA","\\textcolor{##ddd7ff}{#1}");le("\\purpleB","\\textcolor{##c6b9fc}{#1}");le("\\purpleC","\\textcolor{##aa87ff}{#1}");le("\\purpleD","\\textcolor{##7854ab}{#1}");le("\\purpleE","\\textcolor{##543b78}{#1}");le("\\mintA","\\textcolor{##f5f9e8}{#1}");le("\\mintB","\\textcolor{##edf2df}{#1}");le("\\mintC","\\textcolor{##e0e5cc}{#1}");le("\\grayA","\\textcolor{##f6f7f7}{#1}");le("\\grayB","\\textcolor{##f0f1f2}{#1}");le("\\grayC","\\textcolor{##e3e5e6}{#1}");le("\\grayD","\\textcolor{##d6d8da}{#1}");le("\\grayE","\\textcolor{##babec2}{#1}");le("\\grayF","\\textcolor{##888d93}{#1}");le("\\grayG","\\textcolor{##626569}{#1}");le("\\grayH","\\textcolor{##3b3e40}{#1}");le("\\grayI","\\textcolor{##21242c}{#1}");le("\\kaBlue","\\textcolor{##314453}{#1}");le("\\kaGreen","\\textcolor{##71B307}{#1}");_$={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},DC=class{static{o(this,"MacroExpander")}constructor(e,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new LC(f3e,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new m4(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var r,n,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new Co("EOF",n.loc)),this.pushTokens(i),r.range(n,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,l=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new ut("Extra }",a)}else if(a.text==="EOF")throw new ut("Unexpected end of input in a macro argument, expected '"+(e&&n?e[l]:"}")+"'",a);if(e&&n)if((s===0||s===1&&e[l]==="{")&&a.text===e[l]){if(++l,l===e.length){r.splice(-l,l);break}}else l=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new ut("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;ithis.settings.maxExpand)throw new ut("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||e&&i.unexpandable){if(e&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new ut("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var l=a.length-1;l>=0;--l){var u=a[l];if(u.text==="#"){if(l===0)throw new ut("Incomplete placeholder at end of macro body",u);if(u=a[--l],u.text==="#")a.splice(l+1,1);else if(/^[1-9]$/.test(u.text))a.splice(l,2,...s[+u.text-1]);else throw new ut("Not a valid argument number",u)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Co(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var l=new m4(i,this.settings),u=[],h=l.lex();h.text!=="EOF";)u.push(h),h=l.lex();u.reverse();var f={tokens:u,numArgs:a};return f}return i}isDefined(e){return this.macros.has(e)||oh.hasOwnProperty(e)||En.math.hasOwnProperty(e)||En.text.hasOwnProperty(e)||_$.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:oh.hasOwnProperty(e)&&!oh[e].primitive}},IG=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,s4=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),vC={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},OG={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},g4=class t{static{o(this,"Parser")}constructor(e,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new DC(e,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new ut("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Co("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(t.endOfExpression.indexOf(i.text)!==-1||r&&i.text===r||e&&oh[i.text]&&oh[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',e);var l=En[this.mode][r].group,u=Ys.range(e),h;if(n4e.hasOwnProperty(l)){var f=l;h={type:"atom",mode:this.mode,family:f,loc:u,text:r}}else h={type:l,mode:this.mode,loc:u,text:r};s=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(BG(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:Ys.range(e),text:r};else return null;if(this.consume(),a)for(var d=0;d{e instanceof Element&&e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),ah.addHook("afterSanitizeAttributes",e=>{e instanceof Element&&e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}var jf,y3e,v3e,O$,M$,Tr,b3e,w3e,T3e,k3e,P$,E3e,xr,S3e,C3e,ou,jC,A3e,_3e,I$,KC,pi,Kf,hh,je,fr=M(()=>{"use strict";sC();jf=//gi,y3e=o(t=>t?P$(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),v3e=(()=>{let t=!1;return()=>{t||(x3e(),t=!0)}})();o(x3e,"setupDompurifyHooks");O$=o(t=>(v3e(),ah.sanitize(t)),"removeScript"),M$=o((t,e)=>{if(e.flowchart?.htmlLabels!==!1){let r=e.securityLevel;r==="antiscript"||r==="strict"?t=O$(t):r!=="loose"&&(t=P$(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=k3e(t))}return t},"sanitizeMore"),Tr=o((t,e)=>t&&(e.dompurifyConfig?t=ah.sanitize(M$(t,e),e.dompurifyConfig).toString():t=ah.sanitize(M$(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),b3e=o((t,e)=>typeof t=="string"?Tr(t,e):t.flat().map(r=>Tr(r,e)),"sanitizeTextOrArray"),w3e=o(t=>jf.test(t),"hasBreaks"),T3e=o(t=>t.split(jf),"splitBreaks"),k3e=o(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),P$=o(t=>t.replace(jf,"#br#"),"breakToPlaceholder"),E3e=o(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},"getUrl"),xr=o(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),S3e=o(function(...t){let e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),C3e=o(function(...t){let e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),ou=o(function(t){let e=t.split(/(,)/),r=[];for(let n=0;n0&&n+1Math.max(0,t.split(e).length-1),"countOccurrence"),A3e=o((t,e)=>{let r=jC(t,"~"),n=jC(e,"~");return r===1&&n===1},"shouldCombineSets"),_3e=o(t=>{let e=jC(t,"~"),r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let n=[...t],i=n.indexOf("~"),a=n.lastIndexOf("~");for(;i!==-1&&a!==-1&&i!==a;)n[i]="<",n[a]=">",i=n.indexOf("~"),a=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),I$=o(()=>window.MathMLElement!==void 0,"isMathMLSupported"),KC=/\$\$(.*)\$\$/g,pi=o(t=>(t.match(KC)?.length??0)>0,"hasKatex"),Kf=o(async(t,e)=>{t=await hh(t,e);let r=document.createElement("div");r.innerHTML=t,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);let i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),hh=o(async(t,e)=>{if(!pi(t))return t;if(!(I$()||e.legacyMathML||e.forceLegacyMathML))return t.replace(KC,"MathML is unsupported in this environment.");let{default:r}=await Promise.resolve().then(()=>(R$(),N$)),n=e.forceLegacyMathML||!I$()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(jf).map(i=>pi(i)?`
${i}
`:`
${i}
`).join("").replace(KC,(i,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(//g,""))},"renderKatex"),je={getRows:y3e,sanitizeText:Tr,sanitizeTextOrArray:b3e,hasBreaks:w3e,splitBreaks:T3e,lineBreakRegex:jf,removeScript:O$,getUrl:E3e,evaluate:xr,getMax:S3e,getMin:C3e}});var L3e,D3e,Zr,_o,ni=M(()=>{"use strict";ht();L3e=o(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),D3e=o(function(t,e,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${e}px;`)):(n.set("height",t),n.set("width",e)),n},"calculateSvgSizeAttrs"),Zr=o(function(t,e,r,n){let i=D3e(e,r,n);L3e(t,i)},"configureSvgSize"),_o=o(function(t,e,r,n){let i=e.node().getBBox(),a=i.width,s=i.height;Y.info(`SVG bounds: ${a}x${s}`,i);let l=0,u=0;Y.info(`Graph bounds: ${l}x${u}`,t),l=a+r*2,u=s+r*2,Y.info(`Calculated bounds: ${l}x${u}`),Zr(e,u,l,n);let h=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;e.attr("viewBox",h)},"setupGraphViewbox")});var k4,N3e,B$,F$,QC=M(()=>{"use strict";ht();k4={},N3e=o((t,e,r)=>{let n="";return t in k4&&k4[t]?n=k4[t](r):Y.warn(`No theme found for ${t}`),` & { + font-family: ${r.fontFamily}; + font-size: ${r.fontSize}; + fill: ${r.textColor} + } + + /* Classes common for multiple diagrams */ + + & .error-icon { + fill: ${r.errorBkgColor}; + } + & .error-text { + fill: ${r.errorTextColor}; + stroke: ${r.errorTextColor}; + } + + & .edge-thickness-normal { + stroke-width: 1px; + } + & .edge-thickness-thick { + stroke-width: 3.5px + } + & .edge-pattern-solid { + stroke-dasharray: 0; + } + & .edge-thickness-invisible { + stroke-width: 0; + fill: none; + } + & .edge-pattern-dashed{ + stroke-dasharray: 3; + } + .edge-pattern-dotted { + stroke-dasharray: 2; + } + + & .marker { + fill: ${r.lineColor}; + stroke: ${r.lineColor}; + } + & .marker.cross { + stroke: ${r.lineColor}; + } + + & svg { + font-family: ${r.fontFamily}; + font-size: ${r.fontSize}; + } + & p { + margin: 0 + } + + ${n} + + ${e} +`},"getStyles"),B$=o((t,e)=>{e!==void 0&&(k4[t]=e)},"addStylesForDiagram"),F$=N3e});var iy={};vr(iy,{clear:()=>_r,getAccDescription:()=>Fr,getAccTitle:()=>Pr,getDiagramTitle:()=>Jr,setAccDescription:()=>Br,setAccTitle:()=>Rr,setDiagramTitle:()=>ln});var ZC,JC,e7,t7,_r,Rr,Pr,Br,Fr,ln,Jr,ki=M(()=>{"use strict";fr();Ua();ZC="",JC="",e7="",t7=o(t=>Tr(t,Sr()),"sanitizeText"),_r=o(()=>{ZC="",e7="",JC=""},"clear"),Rr=o(t=>{ZC=t7(t).replace(/^\s+/g,"")},"setAccTitle"),Pr=o(()=>ZC,"getAccTitle"),Br=o(t=>{e7=t7(t).replace(/\n\s+/g,` +`)},"setAccDescription"),Fr=o(()=>e7,"getAccDescription"),ln=o(t=>{JC=t7(t)},"setDiagramTitle"),Jr=o(()=>JC,"getDiagramTitle")});var z$,R3e,de,n7,S4,i7,a7,M3e,E4,Qf,ay,r7,Vt=M(()=>{"use strict";$f();ht();Ua();fr();ni();QC();ki();z$=Y,R3e=M1,de=Sr,n7=Yb,S4=ih,i7=o(t=>Tr(t,de()),"sanitizeText"),a7=_o,M3e=o(()=>iy,"getCommonDb"),E4={},Qf=o((t,e,r)=>{E4[t]&&z$.warn(`Diagram with id ${t} already registered. Overwriting.`),E4[t]=e,r&&OS(t,r),B$(t,e.styles),e.injectUtils?.(z$,R3e,de,i7,a7,M3e(),()=>{})},"registerDiagram"),ay=o(t=>{if(t in E4)return E4[t];throw new r7(t)},"getDiagram"),r7=class extends Error{static{o(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}}});var pl,fh,Xa,dl,nc,sy,s7,o7,C4,A4,G$,I3e,O3e,P3e,B3e,F3e,z3e,G3e,$3e,V3e,U3e,H3e,W3e,Y3e,q3e,X3e,j3e,K3e,$$,Q3e,Z3e,V$,J3e,e5e,t5e,r5e,dh,n5e,i5e,a5e,s5e,o5e,oy,l7=M(()=>{"use strict";Vt();fr();ki();pl=[],fh=[""],Xa="global",dl="",nc=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],sy=[],s7="",o7=!1,C4=4,A4=2,I3e=o(function(){return G$},"getC4Type"),O3e=o(function(t){G$=Tr(t,de())},"setC4Type"),P3e=o(function(t,e,r,n,i,a,s,l,u){if(t==null||e===void 0||e===null||r===void 0||r===null||n===void 0||n===null)return;let h={},f=sy.find(d=>d.from===e&&d.to===r);if(f?h=f:sy.push(h),h.type=t,h.from=e,h.to=r,h.label={text:n},i==null)h.techn={text:""};else if(typeof i=="object"){let[d,p]=Object.entries(i)[0];h[d]={text:p}}else h.techn={text:i};if(a==null)h.descr={text:""};else if(typeof a=="object"){let[d,p]=Object.entries(a)[0];h[d]={text:p}}else h.descr={text:a};if(typeof s=="object"){let[d,p]=Object.entries(s)[0];h[d]=p}else h.sprite=s;if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]=p}else h.tags=l;if(typeof u=="object"){let[d,p]=Object.entries(u)[0];h[d]=p}else h.link=u;h.wrap=dh()},"addRel"),B3e=o(function(t,e,r,n,i,a,s){if(e===null||r===null)return;let l={},u=pl.find(h=>h.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,pl.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.descr={text:""};else if(typeof n=="object"){let[h,f]=Object.entries(n)[0];l[h]={text:f}}else l.descr={text:n};if(typeof i=="object"){let[h,f]=Object.entries(i)[0];l[h]=f}else l.sprite=i;if(typeof a=="object"){let[h,f]=Object.entries(a)[0];l[h]=f}else l.tags=a;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];l[h]=f}else l.link=s;l.typeC4Shape={text:t},l.parentBoundary=Xa,l.wrap=dh()},"addPersonOrSystem"),F3e=o(function(t,e,r,n,i,a,s,l){if(e===null||r===null)return;let u={},h=pl.find(f=>f.alias===e);if(h&&e===h.alias?u=h:(u.alias=e,pl.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.techn={text:""};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.techn={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.descr={text:i};if(typeof a=="object"){let[f,d]=Object.entries(a)[0];u[f]=d}else u.sprite=a;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];u[f]=d}else u.tags=s;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.wrap=dh(),u.typeC4Shape={text:t},u.parentBoundary=Xa},"addContainer"),z3e=o(function(t,e,r,n,i,a,s,l){if(e===null||r===null)return;let u={},h=pl.find(f=>f.alias===e);if(h&&e===h.alias?u=h:(u.alias=e,pl.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.techn={text:""};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.techn={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.descr={text:i};if(typeof a=="object"){let[f,d]=Object.entries(a)[0];u[f]=d}else u.sprite=a;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];u[f]=d}else u.tags=s;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.wrap=dh(),u.typeC4Shape={text:t},u.parentBoundary=Xa},"addComponent"),G3e=o(function(t,e,r,n,i){if(t===null||e===null)return;let a={},s=nc.find(l=>l.alias===t);if(s&&t===s.alias?a=s:(a.alias=t,nc.push(a)),e==null?a.label={text:""}:a.label={text:e},r==null)a.type={text:"system"};else if(typeof r=="object"){let[l,u]=Object.entries(r)[0];a[l]={text:u}}else a.type={text:r};if(typeof n=="object"){let[l,u]=Object.entries(n)[0];a[l]=u}else a.tags=n;if(typeof i=="object"){let[l,u]=Object.entries(i)[0];a[l]=u}else a.link=i;a.parentBoundary=Xa,a.wrap=dh(),dl=Xa,Xa=t,fh.push(dl)},"addPersonOrSystemBoundary"),$3e=o(function(t,e,r,n,i){if(t===null||e===null)return;let a={},s=nc.find(l=>l.alias===t);if(s&&t===s.alias?a=s:(a.alias=t,nc.push(a)),e==null?a.label={text:""}:a.label={text:e},r==null)a.type={text:"container"};else if(typeof r=="object"){let[l,u]=Object.entries(r)[0];a[l]={text:u}}else a.type={text:r};if(typeof n=="object"){let[l,u]=Object.entries(n)[0];a[l]=u}else a.tags=n;if(typeof i=="object"){let[l,u]=Object.entries(i)[0];a[l]=u}else a.link=i;a.parentBoundary=Xa,a.wrap=dh(),dl=Xa,Xa=t,fh.push(dl)},"addContainerBoundary"),V3e=o(function(t,e,r,n,i,a,s,l){if(e===null||r===null)return;let u={},h=nc.find(f=>f.alias===e);if(h&&e===h.alias?u=h:(u.alias=e,nc.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.type={text:"node"};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.type={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.descr={text:i};if(typeof s=="object"){let[f,d]=Object.entries(s)[0];u[f]=d}else u.tags=s;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.nodeType=t,u.parentBoundary=Xa,u.wrap=dh(),dl=Xa,Xa=e,fh.push(dl)},"addDeploymentNode"),U3e=o(function(){Xa=dl,fh.pop(),dl=fh.pop(),fh.push(dl)},"popBoundaryParseStack"),H3e=o(function(t,e,r,n,i,a,s,l,u,h,f){let d=pl.find(p=>p.alias===e);if(!(d===void 0&&(d=nc.find(p=>p.alias===e),d===void 0))){if(r!=null)if(typeof r=="object"){let[p,m]=Object.entries(r)[0];d[p]=m}else d.bgColor=r;if(n!=null)if(typeof n=="object"){let[p,m]=Object.entries(n)[0];d[p]=m}else d.fontColor=n;if(i!=null)if(typeof i=="object"){let[p,m]=Object.entries(i)[0];d[p]=m}else d.borderColor=i;if(a!=null)if(typeof a=="object"){let[p,m]=Object.entries(a)[0];d[p]=m}else d.shadowing=a;if(s!=null)if(typeof s=="object"){let[p,m]=Object.entries(s)[0];d[p]=m}else d.shape=s;if(l!=null)if(typeof l=="object"){let[p,m]=Object.entries(l)[0];d[p]=m}else d.sprite=l;if(u!=null)if(typeof u=="object"){let[p,m]=Object.entries(u)[0];d[p]=m}else d.techn=u;if(h!=null)if(typeof h=="object"){let[p,m]=Object.entries(h)[0];d[p]=m}else d.legendText=h;if(f!=null)if(typeof f=="object"){let[p,m]=Object.entries(f)[0];d[p]=m}else d.legendSprite=f}},"updateElStyle"),W3e=o(function(t,e,r,n,i,a,s){let l=sy.find(u=>u.from===e&&u.to===r);if(l!==void 0){if(n!=null)if(typeof n=="object"){let[u,h]=Object.entries(n)[0];l[u]=h}else l.textColor=n;if(i!=null)if(typeof i=="object"){let[u,h]=Object.entries(i)[0];l[u]=h}else l.lineColor=i;if(a!=null)if(typeof a=="object"){let[u,h]=Object.entries(a)[0];l[u]=parseInt(h)}else l.offsetX=parseInt(a);if(s!=null)if(typeof s=="object"){let[u,h]=Object.entries(s)[0];l[u]=parseInt(h)}else l.offsetY=parseInt(s)}},"updateRelStyle"),Y3e=o(function(t,e,r){let n=C4,i=A4;if(typeof e=="object"){let a=Object.values(e)[0];n=parseInt(a)}else n=parseInt(e);if(typeof r=="object"){let a=Object.values(r)[0];i=parseInt(a)}else i=parseInt(r);n>=1&&(C4=n),i>=1&&(A4=i)},"updateLayoutConfig"),q3e=o(function(){return C4},"getC4ShapeInRow"),X3e=o(function(){return A4},"getC4BoundaryInRow"),j3e=o(function(){return Xa},"getCurrentBoundaryParse"),K3e=o(function(){return dl},"getParentBoundaryParse"),$$=o(function(t){return t==null?pl:pl.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),Q3e=o(function(t){return pl.find(e=>e.alias===t)},"getC4Shape"),Z3e=o(function(t){return Object.keys($$(t))},"getC4ShapeKeys"),V$=o(function(t){return t==null?nc:nc.filter(e=>e.parentBoundary===t)},"getBoundaries"),J3e=V$,e5e=o(function(){return sy},"getRels"),t5e=o(function(){return s7},"getTitle"),r5e=o(function(t){o7=t},"setWrap"),dh=o(function(){return o7},"autoWrap"),n5e=o(function(){pl=[],nc=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],dl="",Xa="global",fh=[""],sy=[],fh=[""],s7="",o7=!1,C4=4,A4=2},"clear"),i5e={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},a5e={FILLED:0,OPEN:1},s5e={LEFTOF:0,RIGHTOF:1,OVER:2},o5e=o(function(t){s7=Tr(t,de())},"setTitle"),oy={addPersonOrSystem:B3e,addPersonOrSystemBoundary:G3e,addContainer:F3e,addContainerBoundary:$3e,addComponent:z3e,addDeploymentNode:V3e,popBoundaryParseStack:U3e,addRel:P3e,updateElStyle:H3e,updateRelStyle:W3e,updateLayoutConfig:Y3e,autoWrap:dh,setWrap:r5e,getC4ShapeArray:$$,getC4Shape:Q3e,getC4ShapeKeys:Z3e,getBoundaries:V$,getBoundarys:J3e,getCurrentBoundaryParse:j3e,getParentBoundaryParse:K3e,getRels:e5e,getTitle:t5e,getC4Type:I3e,getC4ShapeInRow:q3e,getC4BoundaryInRow:X3e,setAccTitle:Rr,getAccTitle:Pr,getAccDescription:Fr,setAccDescription:Br,getConfig:o(()=>de().c4,"getConfig"),clear:n5e,LINETYPE:i5e,ARROWTYPE:a5e,PLACEMENT:s5e,setTitle:o5e,setC4Type:O3e}});function Zf(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}var c7=M(()=>{"use strict";o(Zf,"ascending")});function u7(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}var U$=M(()=>{"use strict";o(u7,"descending")});function Jf(t){let e,r,n;t.length!==2?(e=Zf,r=o((l,u)=>Zf(t(l),u),"compare2"),n=o((l,u)=>t(l)-u,"delta")):(e=t===Zf||t===u7?t:l5e,r=t,n=t);function i(l,u,h=0,f=l.length){if(h>>1;r(l[d],u)<0?h=d+1:f=d}while(h>>1;r(l[d],u)<=0?h=d+1:f=d}while(hh&&n(l[d-1],u)>-n(l[d],u)?d-1:d}return o(s,"center"),{left:i,center:s,right:a}}function l5e(){return 0}var h7=M(()=>{"use strict";c7();U$();o(Jf,"bisector");o(l5e,"zero")});function f7(t){return t===null?NaN:+t}var H$=M(()=>{"use strict";o(f7,"number")});var W$,Y$,c5e,u5e,d7,q$=M(()=>{"use strict";c7();h7();H$();W$=Jf(Zf),Y$=W$.right,c5e=W$.left,u5e=Jf(f7).center,d7=Y$});function X$({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):r}function h5e({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function f5e({_intern:t,_key:e},r){let n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function d5e(t){return t!==null&&typeof t=="object"?t.valueOf():t}var mp,j$=M(()=>{"use strict";mp=class extends Map{static{o(this,"InternMap")}constructor(e,r=d5e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[n,i]of e)this.set(n,i)}get(e){return super.get(X$(this,e))}has(e){return super.has(X$(this,e))}set(e,r){return super.set(h5e(this,e),r)}delete(e){return super.delete(f5e(this,e))}};o(X$,"intern_get");o(h5e,"intern_set");o(f5e,"intern_delete");o(d5e,"keyof")});function _4(t,e,r){let n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),s=a>=p5e?10:a>=m5e?5:a>=g5e?2:1,l,u,h;return i<0?(h=Math.pow(10,-i)/s,l=Math.round(t*h),u=Math.round(e*h),l/he&&--u,h=-h):(h=Math.pow(10,i)*s,l=Math.round(t/h),u=Math.round(e/h),l*he&&--u),u0))return[];if(t===e)return[t];let n=e=i))return[];let l=a-i+1,u=new Array(l);if(n)if(s<0)for(let h=0;h{"use strict";p5e=Math.sqrt(50),m5e=Math.sqrt(10),g5e=Math.sqrt(2);o(_4,"tickSpec");o(L4,"ticks");o(ly,"tickIncrement");o(gp,"tickStep")});function D4(t,e){let r;if(e===void 0)for(let n of t)n!=null&&(r=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r=i)&&(r=i)}return r}var Q$=M(()=>{"use strict";o(D4,"max")});function N4(t,e){let r;if(e===void 0)for(let n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}var Z$=M(()=>{"use strict";o(N4,"min")});function R4(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,a=new Array(i);++n{"use strict";o(R4,"range")});var ph=M(()=>{"use strict";q$();h7();Q$();Z$();J$();K$();j$()});function p7(t){return t}var eV=M(()=>{"use strict";o(p7,"default")});function y5e(t){return"translate("+t+",0)"}function v5e(t){return"translate(0,"+t+")"}function x5e(t){return e=>+t(e)}function b5e(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function w5e(){return!this.__axis}function rV(t,e){var r=[],n=null,i=null,a=6,s=6,l=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=t===I4||t===M4?-1:1,f=t===M4||t===m7?"x":"y",d=t===I4||t===g7?y5e:v5e;function p(m){var g=n??(e.ticks?e.ticks.apply(e,r):e.domain()),y=i??(e.tickFormat?e.tickFormat.apply(e,r):p7),v=Math.max(a,0)+l,x=e.range(),b=+x[0]+u,w=+x[x.length-1]+u,_=(e.bandwidth?b5e:x5e)(e.copy(),u),T=m.selection?m.selection():m,E=T.selectAll(".domain").data([null]),L=T.selectAll(".tick").data(g,e).order(),C=L.exit(),A=L.enter().append("g").attr("class","tick"),I=L.select("line"),D=L.select("text");E=E.merge(E.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),L=L.merge(A),I=I.merge(A.append("line").attr("stroke","currentColor").attr(f+"2",h*a)),D=D.merge(A.append("text").attr("fill","currentColor").attr(f,h*v).attr("dy",t===I4?"0em":t===g7?"0.71em":"0.32em")),m!==T&&(E=E.transition(m),L=L.transition(m),I=I.transition(m),D=D.transition(m),C=C.transition(m).attr("opacity",tV).attr("transform",function(k){return isFinite(k=_(k))?d(k+u):this.getAttribute("transform")}),A.attr("opacity",tV).attr("transform",function(k){var R=this.parentNode.__axis;return d((R&&isFinite(R=R(k))?R:_(k))+u)})),C.remove(),E.attr("d",t===M4||t===m7?s?"M"+h*s+","+b+"H"+u+"V"+w+"H"+h*s:"M"+u+","+b+"V"+w:s?"M"+b+","+h*s+"V"+u+"H"+w+"V"+h*s:"M"+b+","+u+"H"+w),L.attr("opacity",1).attr("transform",function(k){return d(_(k)+u)}),I.attr(f+"2",h*a),D.attr(f,h*v).text(y),T.filter(w5e).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===m7?"start":t===M4?"end":"middle"),T.each(function(){this.__axis=_})}return o(p,"axis"),p.scale=function(m){return arguments.length?(e=m,p):e},p.ticks=function(){return r=Array.from(arguments),p},p.tickArguments=function(m){return arguments.length?(r=m==null?[]:Array.from(m),p):r.slice()},p.tickValues=function(m){return arguments.length?(n=m==null?null:Array.from(m),p):n&&n.slice()},p.tickFormat=function(m){return arguments.length?(i=m,p):i},p.tickSize=function(m){return arguments.length?(a=s=+m,p):a},p.tickSizeInner=function(m){return arguments.length?(a=+m,p):a},p.tickSizeOuter=function(m){return arguments.length?(s=+m,p):s},p.tickPadding=function(m){return arguments.length?(l=+m,p):l},p.offset=function(m){return arguments.length?(u=+m,p):u},p}function y7(t){return rV(I4,t)}function v7(t){return rV(g7,t)}var I4,m7,g7,M4,tV,nV=M(()=>{"use strict";eV();I4=1,m7=2,g7=3,M4=4,tV=1e-6;o(y5e,"translateX");o(v5e,"translateY");o(x5e,"number");o(b5e,"center");o(w5e,"entering");o(rV,"axis");o(y7,"axisTop");o(v7,"axisBottom")});var iV=M(()=>{"use strict";nV()});function sV(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}function E5e(t,e){for(var r=0,n=t.length,i;r{"use strict";T5e={value:o(()=>{},"value")};o(sV,"dispatch");o(O4,"Dispatch");o(k5e,"parseTypenames");O4.prototype=sV.prototype={constructor:O4,on:o(function(t,e){var r=this._,n=k5e(t+"",r),i,a=-1,s=n.length;if(arguments.length<2){for(;++a0)for(var r=new Array(i),n=0,i,a;n{"use strict";oV()});var P4,w7,T7=M(()=>{"use strict";P4="http://www.w3.org/1999/xhtml",w7={svg:"http://www.w3.org/2000/svg",xhtml:P4,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}});function ic(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),w7.hasOwnProperty(e)?{space:w7[e],local:t}:t}var B4=M(()=>{"use strict";T7();o(ic,"default")});function S5e(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===P4&&e.documentElement.namespaceURI===P4?e.createElement(t):e.createElementNS(r,t)}}function C5e(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function cy(t){var e=ic(t);return(e.local?C5e:S5e)(e)}var k7=M(()=>{"use strict";B4();T7();o(S5e,"creatorInherit");o(C5e,"creatorFixed");o(cy,"default")});function A5e(){}function mh(t){return t==null?A5e:function(){return this.querySelector(t)}}var F4=M(()=>{"use strict";o(A5e,"none");o(mh,"default")});function E7(t){typeof t!="function"&&(t=mh(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i{"use strict";ml();F4();o(E7,"default")});function S7(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}var cV=M(()=>{"use strict";o(S7,"array")});function _5e(){return[]}function yp(t){return t==null?_5e:function(){return this.querySelectorAll(t)}}var C7=M(()=>{"use strict";o(_5e,"empty");o(yp,"default")});function L5e(t){return function(){return S7(t.apply(this,arguments))}}function A7(t){typeof t=="function"?t=L5e(t):t=yp(t);for(var e=this._groups,r=e.length,n=[],i=[],a=0;a{"use strict";ml();cV();C7();o(L5e,"arrayAll");o(A7,"default")});function vp(t){return function(){return this.matches(t)}}function z4(t){return function(e){return e.matches(t)}}var uy=M(()=>{"use strict";o(vp,"default");o(z4,"childMatcher")});function N5e(t){return function(){return D5e.call(this.children,t)}}function R5e(){return this.firstElementChild}function _7(t){return this.select(t==null?R5e:N5e(typeof t=="function"?t:z4(t)))}var D5e,hV=M(()=>{"use strict";uy();D5e=Array.prototype.find;o(N5e,"childFind");o(R5e,"childFirst");o(_7,"default")});function I5e(){return Array.from(this.children)}function O5e(t){return function(){return M5e.call(this.children,t)}}function L7(t){return this.selectAll(t==null?I5e:O5e(typeof t=="function"?t:z4(t)))}var M5e,fV=M(()=>{"use strict";uy();M5e=Array.prototype.filter;o(I5e,"children");o(O5e,"childrenFilter");o(L7,"default")});function D7(t){typeof t!="function"&&(t=vp(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i{"use strict";ml();uy();o(D7,"default")});function hy(t){return new Array(t.length)}var N7=M(()=>{"use strict";o(hy,"default")});function R7(){return new ii(this._enter||this._groups.map(hy),this._parents)}function fy(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}var M7=M(()=>{"use strict";N7();ml();o(R7,"default");o(fy,"EnterNode");fy.prototype={constructor:fy,appendChild:o(function(t){return this._parent.insertBefore(t,this._next)},"appendChild"),insertBefore:o(function(t,e){return this._parent.insertBefore(t,e)},"insertBefore"),querySelector:o(function(t){return this._parent.querySelector(t)},"querySelector"),querySelectorAll:o(function(t){return this._parent.querySelectorAll(t)},"querySelectorAll")}});function I7(t){return function(){return t}}var pV=M(()=>{"use strict";o(I7,"default")});function P5e(t,e,r,n,i,a){for(var s=0,l,u=e.length,h=a.length;s=w&&(w=b+1);!(T=v[w])&&++w{"use strict";ml();M7();pV();o(P5e,"bindIndex");o(B5e,"bindKey");o(F5e,"datum");o(O7,"default");o(z5e,"arraylike")});function P7(){return new ii(this._exit||this._groups.map(hy),this._parents)}var gV=M(()=>{"use strict";N7();ml();o(P7,"default")});function B7(t,e,r){var n=this.enter(),i=this,a=this.exit();return typeof t=="function"?(n=t(n),n&&(n=n.selection())):n=n.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}var yV=M(()=>{"use strict";o(B7,"default")});function F7(t){for(var e=t.selection?t.selection():t,r=this._groups,n=e._groups,i=r.length,a=n.length,s=Math.min(i,a),l=new Array(i),u=0;u{"use strict";ml();o(F7,"default")});function z7(){for(var t=this._groups,e=-1,r=t.length;++e=0;)(s=n[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}var xV=M(()=>{"use strict";o(z7,"default")});function G7(t){t||(t=G5e);function e(d,p){return d&&p?t(d.__data__,p.__data__):!d-!p}o(e,"compareNode");for(var r=this._groups,n=r.length,i=new Array(n),a=0;ae?1:t>=e?0:NaN}var bV=M(()=>{"use strict";ml();o(G7,"default");o(G5e,"ascending")});function $7(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}var wV=M(()=>{"use strict";o($7,"default")});function V7(){return Array.from(this)}var TV=M(()=>{"use strict";o(V7,"default")});function U7(){for(var t=this._groups,e=0,r=t.length;e{"use strict";o(U7,"default")});function H7(){let t=0;for(let e of this)++t;return t}var EV=M(()=>{"use strict";o(H7,"default")});function W7(){return!this.node()}var SV=M(()=>{"use strict";o(W7,"default")});function Y7(t){for(var e=this._groups,r=0,n=e.length;r{"use strict";o(Y7,"default")});function $5e(t){return function(){this.removeAttribute(t)}}function V5e(t){return function(){this.removeAttributeNS(t.space,t.local)}}function U5e(t,e){return function(){this.setAttribute(t,e)}}function H5e(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function W5e(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Y5e(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function q7(t,e){var r=ic(t);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((e==null?r.local?V5e:$5e:typeof e=="function"?r.local?Y5e:W5e:r.local?H5e:U5e)(r,e))}var AV=M(()=>{"use strict";B4();o($5e,"attrRemove");o(V5e,"attrRemoveNS");o(U5e,"attrConstant");o(H5e,"attrConstantNS");o(W5e,"attrFunction");o(Y5e,"attrFunctionNS");o(q7,"default")});function dy(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}var X7=M(()=>{"use strict";o(dy,"default")});function q5e(t){return function(){this.style.removeProperty(t)}}function X5e(t,e,r){return function(){this.style.setProperty(t,e,r)}}function j5e(t,e,r){return function(){var n=e.apply(this,arguments);n==null?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}function j7(t,e,r){return arguments.length>1?this.each((e==null?q5e:typeof e=="function"?j5e:X5e)(t,e,r??"")):gh(this.node(),t)}function gh(t,e){return t.style.getPropertyValue(e)||dy(t).getComputedStyle(t,null).getPropertyValue(e)}var K7=M(()=>{"use strict";X7();o(q5e,"styleRemove");o(X5e,"styleConstant");o(j5e,"styleFunction");o(j7,"default");o(gh,"styleValue")});function K5e(t){return function(){delete this[t]}}function Q5e(t,e){return function(){this[t]=e}}function Z5e(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Q7(t,e){return arguments.length>1?this.each((e==null?K5e:typeof e=="function"?Z5e:Q5e)(t,e)):this.node()[t]}var _V=M(()=>{"use strict";o(K5e,"propertyRemove");o(Q5e,"propertyConstant");o(Z5e,"propertyFunction");o(Q7,"default")});function LV(t){return t.trim().split(/^|\s+/)}function Z7(t){return t.classList||new DV(t)}function DV(t){this._node=t,this._names=LV(t.getAttribute("class")||"")}function NV(t,e){for(var r=Z7(t),n=-1,i=e.length;++n{"use strict";o(LV,"classArray");o(Z7,"classList");o(DV,"ClassList");DV.prototype={add:o(function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:o(function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:o(function(t){return this._names.indexOf(t)>=0},"contains")};o(NV,"classedAdd");o(RV,"classedRemove");o(J5e,"classedTrue");o(ewe,"classedFalse");o(twe,"classedFunction");o(J7,"default")});function rwe(){this.textContent=""}function nwe(t){return function(){this.textContent=t}}function iwe(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function eA(t){return arguments.length?this.each(t==null?rwe:(typeof t=="function"?iwe:nwe)(t)):this.node().textContent}var IV=M(()=>{"use strict";o(rwe,"textRemove");o(nwe,"textConstant");o(iwe,"textFunction");o(eA,"default")});function awe(){this.innerHTML=""}function swe(t){return function(){this.innerHTML=t}}function owe(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function tA(t){return arguments.length?this.each(t==null?awe:(typeof t=="function"?owe:swe)(t)):this.node().innerHTML}var OV=M(()=>{"use strict";o(awe,"htmlRemove");o(swe,"htmlConstant");o(owe,"htmlFunction");o(tA,"default")});function lwe(){this.nextSibling&&this.parentNode.appendChild(this)}function rA(){return this.each(lwe)}var PV=M(()=>{"use strict";o(lwe,"raise");o(rA,"default")});function cwe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function nA(){return this.each(cwe)}var BV=M(()=>{"use strict";o(cwe,"lower");o(nA,"default")});function iA(t){var e=typeof t=="function"?t:cy(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}var FV=M(()=>{"use strict";k7();o(iA,"default")});function uwe(){return null}function aA(t,e){var r=typeof t=="function"?t:cy(t),n=e==null?uwe:typeof e=="function"?e:mh(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}var zV=M(()=>{"use strict";k7();F4();o(uwe,"constantNull");o(aA,"default")});function hwe(){var t=this.parentNode;t&&t.removeChild(this)}function sA(){return this.each(hwe)}var GV=M(()=>{"use strict";o(hwe,"remove");o(sA,"default")});function fwe(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function dwe(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function oA(t){return this.select(t?dwe:fwe)}var $V=M(()=>{"use strict";o(fwe,"selection_cloneShallow");o(dwe,"selection_cloneDeep");o(oA,"default")});function lA(t){return arguments.length?this.property("__data__",t):this.node().__data__}var VV=M(()=>{"use strict";o(lA,"default")});function pwe(t){return function(e){t.call(this,e,this.__data__)}}function mwe(t){return t.trim().split(/^|\s+/).map(function(e){var r="",n=e.indexOf(".");return n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function gwe(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,i=e.length,a;r{"use strict";o(pwe,"contextListener");o(mwe,"parseTypenames");o(gwe,"onRemove");o(ywe,"onAdd");o(cA,"default")});function HV(t,e,r){var n=dy(t),i=n.CustomEvent;typeof i=="function"?i=new i(e,r):(i=n.document.createEvent("Event"),r?(i.initEvent(e,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function vwe(t,e){return function(){return HV(this,t,e)}}function xwe(t,e){return function(){return HV(this,t,e.apply(this,arguments))}}function uA(t,e){return this.each((typeof e=="function"?xwe:vwe)(t,e))}var WV=M(()=>{"use strict";X7();o(HV,"dispatchEvent");o(vwe,"dispatchConstant");o(xwe,"dispatchFunction");o(uA,"default")});function*hA(){for(var t=this._groups,e=0,r=t.length;e{"use strict";o(hA,"default")});function ii(t,e){this._groups=t,this._parents=e}function qV(){return new ii([[document.documentElement]],fA)}function bwe(){return this}var fA,lu,ml=M(()=>{"use strict";lV();uV();hV();fV();dV();mV();M7();gV();yV();vV();xV();bV();wV();TV();kV();EV();SV();CV();AV();K7();_V();MV();IV();OV();PV();BV();FV();zV();GV();$V();VV();UV();WV();YV();fA=[null];o(ii,"Selection");o(qV,"selection");o(bwe,"selection_selection");ii.prototype=qV.prototype={constructor:ii,select:E7,selectAll:A7,selectChild:_7,selectChildren:L7,filter:D7,data:O7,enter:R7,exit:P7,join:B7,merge:F7,selection:bwe,order:z7,sort:G7,call:$7,nodes:V7,node:U7,size:H7,empty:W7,each:Y7,attr:q7,style:j7,property:Q7,classed:J7,text:eA,html:tA,raise:rA,lower:nA,append:iA,insert:aA,remove:sA,clone:oA,datum:lA,on:cA,dispatch:uA,[Symbol.iterator]:hA};lu=qV});function ze(t){return typeof t=="string"?new ii([[document.querySelector(t)]],[document.documentElement]):new ii([[t]],fA)}var XV=M(()=>{"use strict";ml();o(ze,"default")});var gl=M(()=>{"use strict";uy();B4();XV();ml();F4();C7();K7()});var jV=M(()=>{"use strict"});function yh(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function xp(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}var dA=M(()=>{"use strict";o(yh,"default");o(xp,"extend")});function vh(){}function QV(){return this.rgb().formatHex()}function _we(){return this.rgb().formatHex8()}function Lwe(){return iU(this).formatHsl()}function ZV(){return this.rgb().formatRgb()}function vl(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=wwe.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?JV(e):r===3?new sa(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?G4(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?G4(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Twe.exec(t))?new sa(e[1],e[2],e[3],1):(e=kwe.exec(t))?new sa(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Ewe.exec(t))?G4(e[1],e[2],e[3],e[4]):(e=Swe.exec(t))?G4(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Cwe.exec(t))?rU(e[1],e[2]/100,e[3]/100,1):(e=Awe.exec(t))?rU(e[1],e[2]/100,e[3]/100,e[4]):KV.hasOwnProperty(t)?JV(KV[t]):t==="transparent"?new sa(NaN,NaN,NaN,0):null}function JV(t){return new sa(t>>16&255,t>>8&255,t&255,1)}function G4(t,e,r,n){return n<=0&&(t=e=r=NaN),new sa(t,e,r,n)}function mA(t){return t instanceof vh||(t=vl(t)),t?(t=t.rgb(),new sa(t.r,t.g,t.b,t.opacity)):new sa}function wp(t,e,r,n){return arguments.length===1?mA(t):new sa(t,e,r,n??1)}function sa(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function eU(){return`#${ed(this.r)}${ed(this.g)}${ed(this.b)}`}function Dwe(){return`#${ed(this.r)}${ed(this.g)}${ed(this.b)}${ed((isNaN(this.opacity)?1:this.opacity)*255)}`}function tU(){let t=U4(this.opacity);return`${t===1?"rgb(":"rgba("}${td(this.r)}, ${td(this.g)}, ${td(this.b)}${t===1?")":`, ${t})`}`}function U4(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function td(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ed(t){return t=td(t),(t<16?"0":"")+t.toString(16)}function rU(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new yl(t,e,r,n)}function iU(t){if(t instanceof yl)return new yl(t.h,t.s,t.l,t.opacity);if(t instanceof vh||(t=vl(t)),!t)return new yl;if(t instanceof yl)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),s=NaN,l=a-i,u=(a+i)/2;return l?(e===a?s=(r-n)/l+(r0&&u<1?0:s,new yl(s,l,u,t.opacity)}function aU(t,e,r,n){return arguments.length===1?iU(t):new yl(t,e,r,n??1)}function yl(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function nU(t){return t=(t||0)%360,t<0?t+360:t}function $4(t){return Math.max(0,Math.min(1,t||0))}function pA(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}var py,V4,bp,my,ac,wwe,Twe,kwe,Ewe,Swe,Cwe,Awe,KV,gA=M(()=>{"use strict";dA();o(vh,"Color");py=.7,V4=1/py,bp="\\s*([+-]?\\d+)\\s*",my="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ac="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wwe=/^#([0-9a-f]{3,8})$/,Twe=new RegExp(`^rgb\\(${bp},${bp},${bp}\\)$`),kwe=new RegExp(`^rgb\\(${ac},${ac},${ac}\\)$`),Ewe=new RegExp(`^rgba\\(${bp},${bp},${bp},${my}\\)$`),Swe=new RegExp(`^rgba\\(${ac},${ac},${ac},${my}\\)$`),Cwe=new RegExp(`^hsl\\(${my},${ac},${ac}\\)$`),Awe=new RegExp(`^hsla\\(${my},${ac},${ac},${my}\\)$`),KV={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};yh(vh,vl,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:QV,formatHex:QV,formatHex8:_we,formatHsl:Lwe,formatRgb:ZV,toString:ZV});o(QV,"color_formatHex");o(_we,"color_formatHex8");o(Lwe,"color_formatHsl");o(ZV,"color_formatRgb");o(vl,"color");o(JV,"rgbn");o(G4,"rgba");o(mA,"rgbConvert");o(wp,"rgb");o(sa,"Rgb");yh(sa,wp,xp(vh,{brighter(t){return t=t==null?V4:Math.pow(V4,t),new sa(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?py:Math.pow(py,t),new sa(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new sa(td(this.r),td(this.g),td(this.b),U4(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:eU,formatHex:eU,formatHex8:Dwe,formatRgb:tU,toString:tU}));o(eU,"rgb_formatHex");o(Dwe,"rgb_formatHex8");o(tU,"rgb_formatRgb");o(U4,"clampa");o(td,"clampi");o(ed,"hex");o(rU,"hsla");o(iU,"hslConvert");o(aU,"hsl");o(yl,"Hsl");yh(yl,aU,xp(vh,{brighter(t){return t=t==null?V4:Math.pow(V4,t),new yl(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?py:Math.pow(py,t),new yl(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new sa(pA(t>=240?t-240:t+120,i,n),pA(t,i,n),pA(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new yl(nU(this.h),$4(this.s),$4(this.l),U4(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=U4(this.opacity);return`${t===1?"hsl(":"hsla("}${nU(this.h)}, ${$4(this.s)*100}%, ${$4(this.l)*100}%${t===1?")":`, ${t})`}`}}));o(nU,"clamph");o($4,"clampt");o(pA,"hsl2rgb")});var sU,oU,lU=M(()=>{"use strict";sU=Math.PI/180,oU=180/Math.PI});function pU(t){if(t instanceof sc)return new sc(t.l,t.a,t.b,t.opacity);if(t instanceof cu)return mU(t);t instanceof sa||(t=mA(t));var e=bA(t.r),r=bA(t.g),n=bA(t.b),i=yA((.2225045*e+.7168786*r+.0606169*n)/uU),a,s;return e===r&&r===n?a=s=i:(a=yA((.4360747*e+.3850649*r+.1430804*n)/cU),s=yA((.0139322*e+.0971045*r+.7141733*n)/hU)),new sc(116*i-16,500*(a-i),200*(i-s),t.opacity)}function wA(t,e,r,n){return arguments.length===1?pU(t):new sc(t,e,r,n??1)}function sc(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function yA(t){return t>Nwe?Math.pow(t,1/3):t/dU+fU}function vA(t){return t>Tp?t*t*t:dU*(t-fU)}function xA(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function bA(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Rwe(t){if(t instanceof cu)return new cu(t.h,t.c,t.l,t.opacity);if(t instanceof sc||(t=pU(t)),t.a===0&&t.b===0)return new cu(NaN,0{"use strict";dA();gA();lU();H4=18,cU=.96422,uU=1,hU=.82521,fU=4/29,Tp=6/29,dU=3*Tp*Tp,Nwe=Tp*Tp*Tp;o(pU,"labConvert");o(wA,"lab");o(sc,"Lab");yh(sc,wA,xp(vh,{brighter(t){return new sc(this.l+H4*(t??1),this.a,this.b,this.opacity)},darker(t){return new sc(this.l-H4*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=cU*vA(e),t=uU*vA(t),r=hU*vA(r),new sa(xA(3.1338561*e-1.6168667*t-.4906146*r),xA(-.9787684*e+1.9161415*t+.033454*r),xA(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));o(yA,"xyz2lab");o(vA,"lab2xyz");o(xA,"lrgb2rgb");o(bA,"rgb2lrgb");o(Rwe,"hclConvert");o(gy,"hcl");o(cu,"Hcl");o(mU,"hcl2lab");yh(cu,gy,xp(vh,{brighter(t){return new cu(this.h,this.c,this.l+H4*(t??1),this.opacity)},darker(t){return new cu(this.h,this.c,this.l-H4*(t??1),this.opacity)},rgb(){return mU(this).rgb()}}))});var kp=M(()=>{"use strict";gA();gU()});function TA(t,e,r,n,i){var a=t*t,s=a*t;return((1-3*t+3*a-s)*e+(4-6*a+3*s)*r+(1+3*t+3*a-3*s)*n+s*i)/6}function kA(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[n],a=t[n+1],s=n>0?t[n-1]:2*i-a,l=n{"use strict";o(TA,"basis");o(kA,"default")});function SA(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),i=t[(n+e-1)%e],a=t[n%e],s=t[(n+1)%e],l=t[(n+2)%e];return TA((r-n/e)*e,i,a,s,l)}}var yU=M(()=>{"use strict";EA();o(SA,"default")});var Ep,CA=M(()=>{"use strict";Ep=o(t=>()=>t,"default")});function vU(t,e){return function(r){return t+r*e}}function Mwe(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function xU(t,e){var r=e-t;return r?vU(t,r>180||r<-180?r-360*Math.round(r/360):r):Ep(isNaN(t)?e:t)}function bU(t){return(t=+t)==1?uu:function(e,r){return r-e?Mwe(e,r,t):Ep(isNaN(e)?r:e)}}function uu(t,e){var r=e-t;return r?vU(t,r):Ep(isNaN(t)?e:t)}var AA=M(()=>{"use strict";CA();o(vU,"linear");o(Mwe,"exponential");o(xU,"hue");o(bU,"gamma");o(uu,"nogamma")});function wU(t){return function(e){var r=e.length,n=new Array(r),i=new Array(r),a=new Array(r),s,l;for(s=0;s{"use strict";kp();EA();yU();AA();rd=o(function t(e){var r=bU(e);function n(i,a){var s=r((i=wp(i)).r,(a=wp(a)).r),l=r(i.g,a.g),u=r(i.b,a.b),h=uu(i.opacity,a.opacity);return function(f){return i.r=s(f),i.g=l(f),i.b=u(f),i.opacity=h(f),i+""}}return o(n,"rgb"),n.gamma=t,n},"rgbGamma")(1);o(wU,"rgbSpline");Iwe=wU(kA),Owe=wU(SA)});function LA(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),i;return function(a){for(i=0;i{"use strict";o(LA,"default");o(TU,"isNumberArray")});function EU(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,i=new Array(n),a=new Array(r),s;for(s=0;s{"use strict";W4();o(EU,"genericArray")});function DA(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}var CU=M(()=>{"use strict";o(DA,"default")});function Ki(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var yy=M(()=>{"use strict";o(Ki,"default")});function NA(t,e){var r={},n={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?r[i]=xh(t[i],e[i]):n[i]=e[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var AU=M(()=>{"use strict";W4();o(NA,"default")});function Pwe(t){return function(){return t}}function Bwe(t){return function(e){return t(e)+""}}function Sp(t,e){var r=MA.lastIndex=RA.lastIndex=0,n,i,a,s=-1,l=[],u=[];for(t=t+"",e=e+"";(n=MA.exec(t))&&(i=RA.exec(e));)(a=i.index)>r&&(a=e.slice(r,a),l[s]?l[s]+=a:l[++s]=a),(n=n[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,u.push({i:s,x:Ki(n,i)})),r=RA.lastIndex;return r{"use strict";yy();MA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,RA=new RegExp(MA.source,"g");o(Pwe,"zero");o(Bwe,"one");o(Sp,"default")});function xh(t,e){var r=typeof e,n;return e==null||r==="boolean"?Ep(e):(r==="number"?Ki:r==="string"?(n=vl(e))?(e=n,rd):Sp:e instanceof vl?rd:e instanceof Date?DA:TU(e)?LA:Array.isArray(e)?EU:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?NA:Ki)(t,e)}var W4=M(()=>{"use strict";kp();_A();SU();CU();yy();AU();IA();CA();kU();o(xh,"default")});function Y4(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}var _U=M(()=>{"use strict";o(Y4,"default")});function X4(t,e,r,n,i,a){var s,l,u;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(u=t*r+e*n)&&(r-=t*u,n-=e*u),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,u/=l),t*n{"use strict";LU=180/Math.PI,q4={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};o(X4,"default")});function NU(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?q4:X4(e.a,e.b,e.c,e.d,e.e,e.f)}function RU(t){return t==null?q4:(j4||(j4=document.createElementNS("http://www.w3.org/2000/svg","g")),j4.setAttribute("transform",t),(t=j4.transform.baseVal.consolidate())?(t=t.matrix,X4(t.a,t.b,t.c,t.d,t.e,t.f)):q4)}var j4,MU=M(()=>{"use strict";DU();o(NU,"parseCss");o(RU,"parseSvg")});function IU(t,e,r,n){function i(h){return h.length?h.pop()+" ":""}o(i,"pop");function a(h,f,d,p,m,g){if(h!==d||f!==p){var y=m.push("translate(",null,e,null,r);g.push({i:y-4,x:Ki(h,d)},{i:y-2,x:Ki(f,p)})}else(d||p)&&m.push("translate("+d+e+p+r)}o(a,"translate");function s(h,f,d,p){h!==f?(h-f>180?f+=360:f-h>180&&(h+=360),p.push({i:d.push(i(d)+"rotate(",null,n)-2,x:Ki(h,f)})):f&&d.push(i(d)+"rotate("+f+n)}o(s,"rotate");function l(h,f,d,p){h!==f?p.push({i:d.push(i(d)+"skewX(",null,n)-2,x:Ki(h,f)}):f&&d.push(i(d)+"skewX("+f+n)}o(l,"skewX");function u(h,f,d,p,m,g){if(h!==d||f!==p){var y=m.push(i(m)+"scale(",null,",",null,")");g.push({i:y-4,x:Ki(h,d)},{i:y-2,x:Ki(f,p)})}else(d!==1||p!==1)&&m.push(i(m)+"scale("+d+","+p+")")}return o(u,"scale"),function(h,f){var d=[],p=[];return h=t(h),f=t(f),a(h.translateX,h.translateY,f.translateX,f.translateY,d,p),s(h.rotate,f.rotate,d,p),l(h.skewX,f.skewX,d,p),u(h.scaleX,h.scaleY,f.scaleX,f.scaleY,d,p),h=f=null,function(m){for(var g=-1,y=p.length,v;++g{"use strict";yy();MU();o(IU,"interpolateTransform");OA=IU(NU,"px, ","px)","deg)"),PA=IU(RU,", ",")",")")});function PU(t){return function(e,r){var n=t((e=gy(e)).h,(r=gy(r)).h),i=uu(e.c,r.c),a=uu(e.l,r.l),s=uu(e.opacity,r.opacity);return function(l){return e.h=n(l),e.c=i(l),e.l=a(l),e.opacity=s(l),e+""}}}var BA,Fwe,BU=M(()=>{"use strict";kp();AA();o(PU,"hcl");BA=PU(xU),Fwe=PU(uu)});var Cp=M(()=>{"use strict";W4();yy();_U();IA();OU();_A();BU()});function ky(){return nd||(GU(zwe),nd=wy.now()+Z4)}function zwe(){nd=0}function Ty(){this._call=this._time=this._next=null}function J4(t,e,r){var n=new Ty;return n.restart(t,e,r),n}function $U(){ky(),++Ap;for(var t=K4,e;t;)(e=nd-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Ap}function FU(){nd=(Q4=wy.now())+Z4,Ap=xy=0;try{$U()}finally{Ap=0,$we(),nd=0}}function Gwe(){var t=wy.now(),e=t-Q4;e>zU&&(Z4-=e,Q4=t)}function $we(){for(var t,e=K4,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:K4=r);by=t,FA(n)}function FA(t){if(!Ap){xy&&(xy=clearTimeout(xy));var e=t-nd;e>24?(t<1/0&&(xy=setTimeout(FU,t-wy.now()-Z4)),vy&&(vy=clearInterval(vy))):(vy||(Q4=wy.now(),vy=setInterval(Gwe,zU)),Ap=1,GU(FU))}}var Ap,xy,vy,zU,K4,by,Q4,nd,Z4,wy,GU,zA=M(()=>{"use strict";Ap=0,xy=0,vy=0,zU=1e3,Q4=0,nd=0,Z4=0,wy=typeof performance=="object"&&performance.now?performance:Date,GU=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};o(ky,"now");o(zwe,"clearNow");o(Ty,"Timer");Ty.prototype=J4.prototype={constructor:Ty,restart:o(function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?ky():+r)+(e==null?0:+e),!this._next&&by!==this&&(by?by._next=this:K4=this,by=this),this._call=t,this._time=r,FA()},"restart"),stop:o(function(){this._call&&(this._call=null,this._time=1/0,FA())},"stop")};o(J4,"timer");o($U,"timerFlush");o(FU,"wake");o(Gwe,"poke");o($we,"nap");o(FA,"sleep")});function Ey(t,e,r){var n=new Ty;return e=e==null?0:+e,n.restart(i=>{n.stop(),t(i+e)},e,r),n}var VU=M(()=>{"use strict";zA();o(Ey,"default")});var e3=M(()=>{"use strict";zA();VU()});function hu(t,e,r,n,i,a){var s=t.__transition;if(!s)t.__transition={};else if(r in s)return;Hwe(t,r,{name:e,index:n,group:i,on:Vwe,tween:Uwe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:WU})}function Cy(t,e){var r=Oi(t,e);if(r.state>WU)throw new Error("too late; already scheduled");return r}function oa(t,e){var r=Oi(t,e);if(r.state>t3)throw new Error("too late; already running");return r}function Oi(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Hwe(t,e,r){var n=t.__transition,i;n[e]=r,r.timer=J4(a,0,r.time);function a(h){r.state=UU,r.timer.restart(s,r.delay,r.time),r.delay<=h&&s(h-r.delay)}o(a,"schedule");function s(h){var f,d,p,m;if(r.state!==UU)return u();for(f in n)if(m=n[f],m.name===r.name){if(m.state===t3)return Ey(s);m.state===HU?(m.state=Sy,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete n[f]):+f{"use strict";b7();e3();Vwe=x7("start","end","cancel","interrupt"),Uwe=[],WU=0,UU=1,r3=2,t3=3,HU=4,n3=5,Sy=6;o(hu,"default");o(Cy,"init");o(oa,"set");o(Oi,"get");o(Hwe,"create")});function Ay(t,e){var r=t.__transition,n,i,a=!0,s;if(r){e=e==null?null:e+"";for(s in r){if((n=r[s]).name!==e){a=!1;continue}i=n.state>r3&&n.state{"use strict";ys();o(Ay,"default")});function GA(t){return this.each(function(){Ay(this,t)})}var qU=M(()=>{"use strict";YU();o(GA,"default")});function Wwe(t,e){var r,n;return function(){var i=oa(this,t),a=i.tween;if(a!==r){n=r=a;for(var s=0,l=n.length;s{"use strict";ys();o(Wwe,"tweenRemove");o(Ywe,"tweenFunction");o($A,"default");o(_p,"tweenValue")});function Ly(t,e){var r;return(typeof e=="number"?Ki:e instanceof vl?rd:(r=vl(e))?(e=r,rd):Sp)(t,e)}var VA=M(()=>{"use strict";kp();Cp();o(Ly,"default")});function qwe(t){return function(){this.removeAttribute(t)}}function Xwe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function jwe(t,e,r){var n,i=r+"",a;return function(){var s=this.getAttribute(t);return s===i?null:s===n?a:a=e(n=s,r)}}function Kwe(t,e,r){var n,i=r+"",a;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===n?a:a=e(n=s,r)}}function Qwe(t,e,r){var n,i,a;return function(){var s,l=r(this),u;return l==null?void this.removeAttribute(t):(s=this.getAttribute(t),u=l+"",s===u?null:s===n&&u===i?a:(i=u,a=e(n=s,l)))}}function Zwe(t,e,r){var n,i,a;return function(){var s,l=r(this),u;return l==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),u=l+"",s===u?null:s===n&&u===i?a:(i=u,a=e(n=s,l)))}}function UA(t,e){var r=ic(t),n=r==="transform"?PA:Ly;return this.attrTween(t,typeof e=="function"?(r.local?Zwe:Qwe)(r,n,_p(this,"attr."+t,e)):e==null?(r.local?Xwe:qwe)(r):(r.local?Kwe:jwe)(r,n,e))}var XU=M(()=>{"use strict";Cp();gl();_y();VA();o(qwe,"attrRemove");o(Xwe,"attrRemoveNS");o(jwe,"attrConstant");o(Kwe,"attrConstantNS");o(Qwe,"attrFunction");o(Zwe,"attrFunctionNS");o(UA,"default")});function Jwe(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function eTe(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function tTe(t,e){var r,n;function i(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&eTe(t,a)),r}return o(i,"tween"),i._value=e,i}function rTe(t,e){var r,n;function i(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&Jwe(t,a)),r}return o(i,"tween"),i._value=e,i}function HA(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var n=ic(t);return this.tween(r,(n.local?tTe:rTe)(n,e))}var jU=M(()=>{"use strict";gl();o(Jwe,"attrInterpolate");o(eTe,"attrInterpolateNS");o(tTe,"attrTweenNS");o(rTe,"attrTween");o(HA,"default")});function nTe(t,e){return function(){Cy(this,t).delay=+e.apply(this,arguments)}}function iTe(t,e){return e=+e,function(){Cy(this,t).delay=e}}function WA(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?nTe:iTe)(e,t)):Oi(this.node(),e).delay}var KU=M(()=>{"use strict";ys();o(nTe,"delayFunction");o(iTe,"delayConstant");o(WA,"default")});function aTe(t,e){return function(){oa(this,t).duration=+e.apply(this,arguments)}}function sTe(t,e){return e=+e,function(){oa(this,t).duration=e}}function YA(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?aTe:sTe)(e,t)):Oi(this.node(),e).duration}var QU=M(()=>{"use strict";ys();o(aTe,"durationFunction");o(sTe,"durationConstant");o(YA,"default")});function oTe(t,e){if(typeof e!="function")throw new Error;return function(){oa(this,t).ease=e}}function qA(t){var e=this._id;return arguments.length?this.each(oTe(e,t)):Oi(this.node(),e).ease}var ZU=M(()=>{"use strict";ys();o(oTe,"easeConstant");o(qA,"default")});function lTe(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;oa(this,t).ease=r}}function XA(t){if(typeof t!="function")throw new Error;return this.each(lTe(this._id,t))}var JU=M(()=>{"use strict";ys();o(lTe,"easeVarying");o(XA,"default")});function jA(t){typeof t!="function"&&(t=vp(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i{"use strict";gl();id();o(jA,"default")});function KA(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,n=e.length,i=r.length,a=Math.min(n,i),s=new Array(n),l=0;l{"use strict";id();o(KA,"default")});function cTe(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function uTe(t,e,r){var n,i,a=cTe(e)?Cy:oa;return function(){var s=a(this,t),l=s.on;l!==n&&(i=(n=l).copy()).on(e,r),s.on=i}}function QA(t,e){var r=this._id;return arguments.length<2?Oi(this.node(),r).on.on(t):this.each(uTe(r,t,e))}var rH=M(()=>{"use strict";ys();o(cTe,"start");o(uTe,"onFunction");o(QA,"default")});function hTe(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function ZA(){return this.on("end.remove",hTe(this._id))}var nH=M(()=>{"use strict";o(hTe,"removeFunction");o(ZA,"default")});function JA(t){var e=this._name,r=this._id;typeof t!="function"&&(t=mh(t));for(var n=this._groups,i=n.length,a=new Array(i),s=0;s{"use strict";gl();id();ys();o(JA,"default")});function e8(t){var e=this._name,r=this._id;typeof t!="function"&&(t=yp(t));for(var n=this._groups,i=n.length,a=[],s=[],l=0;l{"use strict";gl();id();ys();o(e8,"default")});function t8(){return new fTe(this._groups,this._parents)}var fTe,sH=M(()=>{"use strict";gl();fTe=lu.prototype.constructor;o(t8,"default")});function dTe(t,e){var r,n,i;return function(){var a=gh(this,t),s=(this.style.removeProperty(t),gh(this,t));return a===s?null:a===r&&s===n?i:i=e(r=a,n=s)}}function oH(t){return function(){this.style.removeProperty(t)}}function pTe(t,e,r){var n,i=r+"",a;return function(){var s=gh(this,t);return s===i?null:s===n?a:a=e(n=s,r)}}function mTe(t,e,r){var n,i,a;return function(){var s=gh(this,t),l=r(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(t),gh(this,t))),s===u?null:s===n&&u===i?a:(i=u,a=e(n=s,l))}}function gTe(t,e){var r,n,i,a="style."+e,s="end."+a,l;return function(){var u=oa(this,t),h=u.on,f=u.value[a]==null?l||(l=oH(e)):void 0;(h!==r||i!==f)&&(n=(r=h).copy()).on(s,i=f),u.on=n}}function r8(t,e,r){var n=(t+="")=="transform"?OA:Ly;return e==null?this.styleTween(t,dTe(t,n)).on("end.style."+t,oH(t)):typeof e=="function"?this.styleTween(t,mTe(t,n,_p(this,"style."+t,e))).each(gTe(this._id,t)):this.styleTween(t,pTe(t,n,e),r).on("end.style."+t,null)}var lH=M(()=>{"use strict";Cp();gl();ys();_y();VA();o(dTe,"styleNull");o(oH,"styleRemove");o(pTe,"styleConstant");o(mTe,"styleFunction");o(gTe,"styleMaybeRemove");o(r8,"default")});function yTe(t,e,r){return function(n){this.style.setProperty(t,e.call(this,n),r)}}function vTe(t,e,r){var n,i;function a(){var s=e.apply(this,arguments);return s!==i&&(n=(i=s)&&yTe(t,s,r)),n}return o(a,"tween"),a._value=e,a}function n8(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,vTe(t,e,r??""))}var cH=M(()=>{"use strict";o(yTe,"styleInterpolate");o(vTe,"styleTween");o(n8,"default")});function xTe(t){return function(){this.textContent=t}}function bTe(t){return function(){var e=t(this);this.textContent=e??""}}function i8(t){return this.tween("text",typeof t=="function"?bTe(_p(this,"text",t)):xTe(t==null?"":t+""))}var uH=M(()=>{"use strict";_y();o(xTe,"textConstant");o(bTe,"textFunction");o(i8,"default")});function wTe(t){return function(e){this.textContent=t.call(this,e)}}function TTe(t){var e,r;function n(){var i=t.apply(this,arguments);return i!==r&&(e=(r=i)&&wTe(i)),e}return o(n,"tween"),n._value=t,n}function a8(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,TTe(t))}var hH=M(()=>{"use strict";o(wTe,"textInterpolate");o(TTe,"textTween");o(a8,"default")});function s8(){for(var t=this._name,e=this._id,r=i3(),n=this._groups,i=n.length,a=0;a{"use strict";id();ys();o(s8,"default")});function o8(){var t,e,r=this,n=r._id,i=r.size();return new Promise(function(a,s){var l={value:s},u={value:o(function(){--i===0&&a()},"value")};r.each(function(){var h=oa(this,n),f=h.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(u)),h.on=e}),i===0&&a()})}var dH=M(()=>{"use strict";ys();o(o8,"default")});function ja(t,e,r,n){this._groups=t,this._parents=e,this._name=r,this._id=n}function pH(t){return lu().transition(t)}function i3(){return++kTe}var kTe,fu,id=M(()=>{"use strict";gl();XU();jU();KU();QU();ZU();JU();eH();tH();rH();nH();iH();aH();sH();lH();cH();uH();hH();fH();_y();dH();kTe=0;o(ja,"Transition");o(pH,"transition");o(i3,"newId");fu=lu.prototype;ja.prototype=pH.prototype={constructor:ja,select:JA,selectAll:e8,selectChild:fu.selectChild,selectChildren:fu.selectChildren,filter:jA,merge:KA,selection:t8,transition:s8,call:fu.call,nodes:fu.nodes,node:fu.node,size:fu.size,empty:fu.empty,each:fu.each,on:QA,attr:UA,attrTween:HA,style:r8,styleTween:n8,text:i8,textTween:a8,remove:ZA,tween:$A,delay:WA,duration:YA,ease:qA,easeVarying:XA,end:o8,[Symbol.iterator]:fu[Symbol.iterator]}});function a3(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var mH=M(()=>{"use strict";o(a3,"cubicInOut")});var l8=M(()=>{"use strict";mH()});function STe(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function c8(t){var e,r;t instanceof ja?(e=t._id,t=t._name):(e=i3(),(r=ETe).time=ky(),t=t==null?null:t+"");for(var n=this._groups,i=n.length,a=0;a{"use strict";id();ys();l8();e3();ETe={time:null,delay:0,duration:250,ease:a3};o(STe,"inherit");o(c8,"default")});var yH=M(()=>{"use strict";gl();qU();gH();lu.prototype.interrupt=GA;lu.prototype.transition=c8});var s3=M(()=>{"use strict";yH()});var vH=M(()=>{"use strict"});var xH=M(()=>{"use strict"});var bH=M(()=>{"use strict"});function wH(t){return[+t[0],+t[1]]}function CTe(t){return[wH(t[0]),wH(t[1])]}function u8(t){return{type:t}}var t1t,r1t,n1t,i1t,a1t,s1t,TH=M(()=>{"use strict";s3();vH();xH();bH();({abs:t1t,max:r1t,min:n1t}=Math);o(wH,"number1");o(CTe,"number2");i1t={name:"x",handles:["w","e"].map(u8),input:o(function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},"input"),output:o(function(t){return t&&[t[0][0],t[1][0]]},"output")},a1t={name:"y",handles:["n","s"].map(u8),input:o(function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},"input"),output:o(function(t){return t&&[t[0][1],t[1][1]]},"output")},s1t={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(u8),input:o(function(t){return t==null?null:CTe(t)},"input"),output:o(function(t){return t},"output")};o(u8,"type")});var kH=M(()=>{"use strict";TH()});function EH(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return EH;let r=10**e;return function(n){this._+=n[0];for(let i=1,a=n.length;i{"use strict";h8=Math.PI,f8=2*h8,ad=1e-6,ATe=f8-ad;o(EH,"append");o(_Te,"appendRound");sd=class{static{o(this,"Path")}constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?EH:_Te(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,n,i){this._append`Q${+e},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(e,r,n,i,a,s){this._append`C${+e},${+r},${+n},${+i},${this._x1=+a},${this._y1=+s}`}arcTo(e,r,n,i,a){if(e=+e,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,l=this._y1,u=n-e,h=i-r,f=s-e,d=l-r,p=f*f+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(p>ad)if(!(Math.abs(d*u-h*f)>ad)||!a)this._append`L${this._x1=e},${this._y1=r}`;else{let m=n-s,g=i-l,y=u*u+h*h,v=m*m+g*g,x=Math.sqrt(y),b=Math.sqrt(p),w=a*Math.tan((h8-Math.acos((y+p-v)/(2*x*b)))/2),_=w/b,T=w/x;Math.abs(_-1)>ad&&this._append`L${e+_*f},${r+_*d}`,this._append`A${a},${a},0,0,${+(d*m>f*g)},${this._x1=e+T*u},${this._y1=r+T*h}`}}arc(e,r,n,i,a,s){if(e=+e,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),h=e+l,f=r+u,d=1^s,p=s?i-a:a-i;this._x1===null?this._append`M${h},${f}`:(Math.abs(this._x1-h)>ad||Math.abs(this._y1-f)>ad)&&this._append`L${h},${f}`,n&&(p<0&&(p=p%f8+f8),p>ATe?this._append`A${n},${n},0,1,${d},${e-l},${r-u}A${n},${n},0,1,${d},${this._x1=h},${this._y1=f}`:p>ad&&this._append`A${n},${n},0,${+(p>=h8)},${d},${this._x1=e+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(e,r,n,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}};o(SH,"path");SH.prototype=sd.prototype});var d8=M(()=>{"use strict";CH()});var AH=M(()=>{"use strict"});var _H=M(()=>{"use strict"});var LH=M(()=>{"use strict"});var DH=M(()=>{"use strict"});var NH=M(()=>{"use strict"});var RH=M(()=>{"use strict"});var MH=M(()=>{"use strict"});function p8(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function od(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}var Dy=M(()=>{"use strict";o(p8,"default");o(od,"formatDecimalParts")});function xl(t){return t=od(Math.abs(t)),t?t[1]:NaN}var Ny=M(()=>{"use strict";Dy();o(xl,"default")});function m8(t,e){return function(r,n){for(var i=r.length,a=[],s=0,l=t[0],u=0;i>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),a.push(r.substring(i-=l,i+l)),!((u+=l+1)>n));)l=t[s=(s+1)%t.length];return a.reverse().join(e)}}var IH=M(()=>{"use strict";o(m8,"default")});function g8(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var OH=M(()=>{"use strict";o(g8,"default")});function bh(t){if(!(e=LTe.exec(t)))throw new Error("invalid format: "+t);var e;return new o3({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o3(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}var LTe,y8=M(()=>{"use strict";LTe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;o(bh,"formatSpecifier");bh.prototype=o3.prototype;o(o3,"FormatSpecifier");o3.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type}});function v8(t){e:for(var e=t.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(i+1):t}var PH=M(()=>{"use strict";o(v8,"default")});function b8(t,e){var r=od(t,e);if(!r)return t+"";var n=r[0],i=r[1],a=i-(x8=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+od(t,Math.max(0,e+a-1))[0]}var x8,w8=M(()=>{"use strict";Dy();o(b8,"default")});function l3(t,e){var r=od(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}var BH=M(()=>{"use strict";Dy();o(l3,"default")});var T8,FH=M(()=>{"use strict";Dy();w8();BH();T8={"%":o((t,e)=>(t*100).toFixed(e),"%"),b:o(t=>Math.round(t).toString(2),"b"),c:o(t=>t+"","c"),d:p8,e:o((t,e)=>t.toExponential(e),"e"),f:o((t,e)=>t.toFixed(e),"f"),g:o((t,e)=>t.toPrecision(e),"g"),o:o(t=>Math.round(t).toString(8),"o"),p:o((t,e)=>l3(t*100,e),"p"),r:l3,s:b8,X:o(t=>Math.round(t).toString(16).toUpperCase(),"X"),x:o(t=>Math.round(t).toString(16),"x")}});function c3(t){return t}var zH=M(()=>{"use strict";o(c3,"default")});function k8(t){var e=t.grouping===void 0||t.thousands===void 0?c3:m8(GH.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?c3:g8(GH.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",u=t.nan===void 0?"NaN":t.nan+"";function h(d){d=bh(d);var p=d.fill,m=d.align,g=d.sign,y=d.symbol,v=d.zero,x=d.width,b=d.comma,w=d.precision,_=d.trim,T=d.type;T==="n"?(b=!0,T="g"):T8[T]||(w===void 0&&(w=12),_=!0,T="g"),(v||p==="0"&&m==="=")&&(v=!0,p="0",m="=");var E=y==="$"?r:y==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",L=y==="$"?n:/[%p]/.test(T)?s:"",C=T8[T],A=/[defgprs%]/.test(T);w=w===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function I(D){var k=E,R=L,S,O,N;if(T==="c")R=C(D)+R,D="";else{D=+D;var P=D<0||1/D<0;if(D=isNaN(D)?u:C(Math.abs(D),w),_&&(D=v8(D)),P&&+D==0&&g!=="+"&&(P=!1),k=(P?g==="("?g:l:g==="-"||g==="("?"":g)+k,R=(T==="s"?$H[8+x8/3]:"")+R+(P&&g==="("?")":""),A){for(S=-1,O=D.length;++SN||N>57){R=(N===46?i+D.slice(S+1):D.slice(S))+R,D=D.slice(0,S);break}}}b&&!v&&(D=e(D,1/0));var F=k.length+D.length+R.length,B=F>1)+k+D+R+B.slice(F);break;default:D=B+k+D+R;break}return a(D)}return o(I,"format"),I.toString=function(){return d+""},I}o(h,"newFormat");function f(d,p){var m=h((d=bh(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(xl(p)/3)))*3,y=Math.pow(10,-g),v=$H[8+g/3];return function(x){return m(y*x)+v}}return o(f,"formatPrefix"),{format:h,formatPrefix:f}}var GH,$H,VH=M(()=>{"use strict";Ny();IH();OH();y8();PH();FH();w8();zH();GH=Array.prototype.map,$H=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];o(k8,"default")});function E8(t){return u3=k8(t),h3=u3.format,f3=u3.formatPrefix,u3}var u3,h3,f3,UH=M(()=>{"use strict";VH();E8({thousands:",",grouping:[3],currency:["$",""]});o(E8,"defaultLocale")});function d3(t){return Math.max(0,-xl(Math.abs(t)))}var HH=M(()=>{"use strict";Ny();o(d3,"default")});function p3(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xl(e)/3)))*3-xl(Math.abs(t)))}var WH=M(()=>{"use strict";Ny();o(p3,"default")});function m3(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,xl(e)-xl(t))+1}var YH=M(()=>{"use strict";Ny();o(m3,"default")});var S8=M(()=>{"use strict";UH();y8();HH();WH();YH()});var qH=M(()=>{"use strict"});var XH=M(()=>{"use strict"});var jH=M(()=>{"use strict"});var KH=M(()=>{"use strict"});function wh(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var Ry=M(()=>{"use strict";o(wh,"initRange")});function du(){var t=new mp,e=[],r=[],n=C8;function i(a){let s=t.get(a);if(s===void 0){if(n!==C8)return n;t.set(a,s=e.push(a)-1)}return r[s%r.length]}return o(i,"scale"),i.domain=function(a){if(!arguments.length)return e.slice();e=[],t=new mp;for(let s of a)t.has(s)||t.set(s,e.push(s)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return du(e,r).unknown(n)},wh.apply(i,arguments),i}var C8,A8=M(()=>{"use strict";ph();Ry();C8=Symbol("implicit");o(du,"ordinal")});function Lp(){var t=du().unknown(void 0),e=t.domain,r=t.range,n=0,i=1,a,s,l=!1,u=0,h=0,f=.5;delete t.unknown;function d(){var p=e().length,m=i{"use strict";ph();Ry();A8();o(Lp,"band")});function _8(t){return function(){return t}}var ZH=M(()=>{"use strict";o(_8,"constants")});function L8(t){return+t}var JH=M(()=>{"use strict";o(L8,"number")});function Dp(t){return t}function D8(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:_8(isNaN(e)?NaN:.5)}function DTe(t,e){var r;return t>e&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function NTe(t,e,r){var n=t[0],i=t[1],a=e[0],s=e[1];return i2?RTe:NTe,u=h=null,d}o(f,"rescale");function d(p){return p==null||isNaN(p=+p)?a:(u||(u=l(t.map(n),e,r)))(n(s(p)))}return o(d,"scale"),d.invert=function(p){return s(i((h||(h=l(e,t.map(n),Ki)))(p)))},d.domain=function(p){return arguments.length?(t=Array.from(p,L8),f()):t.slice()},d.range=function(p){return arguments.length?(e=Array.from(p),f()):e.slice()},d.rangeRound=function(p){return e=Array.from(p),r=Y4,f()},d.clamp=function(p){return arguments.length?(s=p?!0:Dp,f()):s!==Dp},d.interpolate=function(p){return arguments.length?(r=p,f()):r},d.unknown=function(p){return arguments.length?(a=p,d):a},function(p,m){return n=p,i=m,f()}}function My(){return MTe()(Dp,Dp)}var eW,N8=M(()=>{"use strict";ph();Cp();ZH();JH();eW=[0,1];o(Dp,"identity");o(D8,"normalize");o(DTe,"clamper");o(NTe,"bimap");o(RTe,"polymap");o(g3,"copy");o(MTe,"transformer");o(My,"continuous")});function R8(t,e,r,n){var i=gp(t,e,r),a;switch(n=bh(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(a=p3(i,s))&&(n.precision=a),f3(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=m3(i,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=d3(i))&&(n.precision=a-(n.type==="%")*2);break}}return h3(n)}var tW=M(()=>{"use strict";ph();S8();o(R8,"tickFormat")});function ITe(t){var e=t.domain;return t.ticks=function(r){var n=e();return L4(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var i=e();return R8(i[0],i[i.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),i=0,a=n.length-1,s=n[i],l=n[a],u,h,f=10;for(l0;){if(h=ly(s,l,r),h===u)return n[i]=s,n[a]=l,e(n);if(h>0)s=Math.floor(s/h)*h,l=Math.ceil(l/h)*h;else if(h<0)s=Math.ceil(s*h)/h,l=Math.floor(l*h)/h;else break;u=h}return t},t}function bl(){var t=My();return t.copy=function(){return g3(t,bl())},wh.apply(t,arguments),ITe(t)}var rW=M(()=>{"use strict";ph();N8();Ry();tW();o(ITe,"linearish");o(bl,"linear")});function M8(t,e){t=t.slice();var r=0,n=t.length-1,i=t[r],a=t[n],s;return a{"use strict";o(M8,"nice")});function gn(t,e,r,n){function i(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return o(i,"interval"),i.floor=a=>(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{let s=i(a),l=i.ceil(a);return a-s(e(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,l)=>{let u=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a0))return u;let h;do u.push(h=new Date(+a)),e(a,l),t(a);while(hgn(s=>{if(s>=s)for(;t(s),!a(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;e(s,-1),!a(s););else for(;--l>=0;)for(;e(s,1),!a(s););}),r&&(i.count=(a,s)=>(I8.setTime(+a),O8.setTime(+s),t(I8),t(O8),Math.floor(r(I8,O8))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?s=>n(s)%a===0:s=>i.count(0,s)%a===0):i)),i}var I8,O8,pu=M(()=>{"use strict";I8=new Date,O8=new Date;o(gn,"timeInterval")});var oc,iW,P8=M(()=>{"use strict";pu();oc=gn(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);oc.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?gn(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):oc);iW=oc.range});var Xs,aW,B8=M(()=>{"use strict";pu();Xs=gn(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),aW=Xs.range});var mu,OTe,y3,PTe,F8=M(()=>{"use strict";pu();mu=gn(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),OTe=mu.range,y3=gn(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),PTe=y3.range});var gu,BTe,v3,FTe,z8=M(()=>{"use strict";pu();gu=gn(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),BTe=gu.range,v3=gn(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),FTe=v3.range});var Lo,zTe,Oy,GTe,x3,$Te,G8=M(()=>{"use strict";pu();Lo=gn(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),zTe=Lo.range,Oy=gn(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),GTe=Oy.range,x3=gn(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),$Te=x3.range});function ud(t){return gn(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}function hd(t){return gn(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/6048e5)}var wl,Th,b3,w3,cc,T3,k3,oW,VTe,UTe,HTe,WTe,YTe,qTe,fd,Np,lW,cW,kh,uW,hW,fW,XTe,jTe,KTe,QTe,ZTe,JTe,$8=M(()=>{"use strict";pu();o(ud,"timeWeekday");wl=ud(0),Th=ud(1),b3=ud(2),w3=ud(3),cc=ud(4),T3=ud(5),k3=ud(6),oW=wl.range,VTe=Th.range,UTe=b3.range,HTe=w3.range,WTe=cc.range,YTe=T3.range,qTe=k3.range;o(hd,"utcWeekday");fd=hd(0),Np=hd(1),lW=hd(2),cW=hd(3),kh=hd(4),uW=hd(5),hW=hd(6),fW=fd.range,XTe=Np.range,jTe=lW.range,KTe=cW.range,QTe=kh.range,ZTe=uW.range,JTe=hW.range});var yu,eke,E3,tke,V8=M(()=>{"use strict";pu();yu=gn(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),eke=yu.range,E3=gn(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),tke=E3.range});var js,rke,Tl,nke,U8=M(()=>{"use strict";pu();js=gn(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());js.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:gn(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});rke=js.range,Tl=gn(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Tl.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:gn(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});nke=Tl.range});function pW(t,e,r,n,i,a){let s=[[Xs,1,1e3],[Xs,5,5*1e3],[Xs,15,15*1e3],[Xs,30,30*1e3],[a,1,6e4],[a,5,5*6e4],[a,15,15*6e4],[a,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[n,1,864e5],[n,2,2*864e5],[r,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function l(h,f,d){let p=fv).right(s,p);if(m===s.length)return t.every(gp(h/31536e6,f/31536e6,d));if(m===0)return oc.every(Math.max(gp(h,f,d),1));let[g,y]=s[p/s[m-1][2]{"use strict";ph();P8();B8();F8();z8();G8();$8();V8();U8();o(pW,"ticker");[ake,ske]=pW(Tl,E3,fd,x3,v3,y3),[H8,W8]=pW(js,yu,wl,Lo,gu,mu)});var S3=M(()=>{"use strict";P8();B8();F8();z8();G8();$8();V8();U8();mW()});function Y8(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function q8(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Py(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function X8(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,a=t.days,s=t.shortDays,l=t.months,u=t.shortMonths,h=By(i),f=Fy(i),d=By(a),p=Fy(a),m=By(s),g=Fy(s),y=By(l),v=Fy(l),x=By(u),b=Fy(u),w={a:P,A:F,b:B,B:$,c:null,d:wW,e:wW,f:Lke,g:zke,G:$ke,H:Cke,I:Ake,j:_ke,L:CW,m:Dke,M:Nke,p:z,q:W,Q:EW,s:SW,S:Rke,u:Mke,U:Ike,V:Oke,w:Pke,W:Bke,x:null,X:null,y:Fke,Y:Gke,Z:Vke,"%":kW},_={a:j,A:K,b:ie,B:Q,c:null,d:TW,e:TW,f:Yke,g:rEe,G:iEe,H:Uke,I:Hke,j:Wke,L:_W,m:qke,M:Xke,p:ee,q:J,Q:EW,s:SW,S:jke,u:Kke,U:Qke,V:Zke,w:Jke,W:eEe,x:null,X:null,y:tEe,Y:nEe,Z:aEe,"%":kW},T={a:I,A:D,b:k,B:R,c:S,d:xW,e:xW,f:Tke,g:vW,G:yW,H:bW,I:bW,j:vke,L:wke,m:yke,M:xke,p:A,q:gke,Q:Eke,s:Ske,S:bke,u:hke,U:fke,V:dke,w:uke,W:pke,x:O,X:N,y:vW,Y:yW,Z:mke,"%":kke};w.x=E(r,w),w.X=E(n,w),w.c=E(e,w),_.x=E(r,_),_.X=E(n,_),_.c=E(e,_);function E(H,q){return function(Z){var ae=[],ue=-1,ce=0,te=H.length,De,oe,ke;for(Z instanceof Date||(Z=new Date(+Z));++ue53)return null;"w"in ae||(ae.w=1),"Z"in ae?(ce=q8(Py(ae.y,0,1)),te=ce.getUTCDay(),ce=te>4||te===0?Np.ceil(ce):Np(ce),ce=Oy.offset(ce,(ae.V-1)*7),ae.y=ce.getUTCFullYear(),ae.m=ce.getUTCMonth(),ae.d=ce.getUTCDate()+(ae.w+6)%7):(ce=Y8(Py(ae.y,0,1)),te=ce.getDay(),ce=te>4||te===0?Th.ceil(ce):Th(ce),ce=Lo.offset(ce,(ae.V-1)*7),ae.y=ce.getFullYear(),ae.m=ce.getMonth(),ae.d=ce.getDate()+(ae.w+6)%7)}else("W"in ae||"U"in ae)&&("w"in ae||(ae.w="u"in ae?ae.u%7:"W"in ae?1:0),te="Z"in ae?q8(Py(ae.y,0,1)).getUTCDay():Y8(Py(ae.y,0,1)).getDay(),ae.m=0,ae.d="W"in ae?(ae.w+6)%7+ae.W*7-(te+5)%7:ae.w+ae.U*7-(te+6)%7);return"Z"in ae?(ae.H+=ae.Z/100|0,ae.M+=ae.Z%100,q8(ae)):Y8(ae)}}o(L,"newParse");function C(H,q,Z,ae){for(var ue=0,ce=q.length,te=Z.length,De,oe;ue=te)return-1;if(De=q.charCodeAt(ue++),De===37){if(De=q.charAt(ue++),oe=T[De in gW?q.charAt(ue++):De],!oe||(ae=oe(H,Z,ae))<0)return-1}else if(De!=Z.charCodeAt(ae++))return-1}return ae}o(C,"parseSpecifier");function A(H,q,Z){var ae=h.exec(q.slice(Z));return ae?(H.p=f.get(ae[0].toLowerCase()),Z+ae[0].length):-1}o(A,"parsePeriod");function I(H,q,Z){var ae=m.exec(q.slice(Z));return ae?(H.w=g.get(ae[0].toLowerCase()),Z+ae[0].length):-1}o(I,"parseShortWeekday");function D(H,q,Z){var ae=d.exec(q.slice(Z));return ae?(H.w=p.get(ae[0].toLowerCase()),Z+ae[0].length):-1}o(D,"parseWeekday");function k(H,q,Z){var ae=x.exec(q.slice(Z));return ae?(H.m=b.get(ae[0].toLowerCase()),Z+ae[0].length):-1}o(k,"parseShortMonth");function R(H,q,Z){var ae=y.exec(q.slice(Z));return ae?(H.m=v.get(ae[0].toLowerCase()),Z+ae[0].length):-1}o(R,"parseMonth");function S(H,q,Z){return C(H,e,q,Z)}o(S,"parseLocaleDateTime");function O(H,q,Z){return C(H,r,q,Z)}o(O,"parseLocaleDate");function N(H,q,Z){return C(H,n,q,Z)}o(N,"parseLocaleTime");function P(H){return s[H.getDay()]}o(P,"formatShortWeekday");function F(H){return a[H.getDay()]}o(F,"formatWeekday");function B(H){return u[H.getMonth()]}o(B,"formatShortMonth");function $(H){return l[H.getMonth()]}o($,"formatMonth");function z(H){return i[+(H.getHours()>=12)]}o(z,"formatPeriod");function W(H){return 1+~~(H.getMonth()/3)}o(W,"formatQuarter");function j(H){return s[H.getUTCDay()]}o(j,"formatUTCShortWeekday");function K(H){return a[H.getUTCDay()]}o(K,"formatUTCWeekday");function ie(H){return u[H.getUTCMonth()]}o(ie,"formatUTCShortMonth");function Q(H){return l[H.getUTCMonth()]}o(Q,"formatUTCMonth");function ee(H){return i[+(H.getUTCHours()>=12)]}o(ee,"formatUTCPeriod");function J(H){return 1+~~(H.getUTCMonth()/3)}return o(J,"formatUTCQuarter"),{format:o(function(H){var q=E(H+="",w);return q.toString=function(){return H},q},"format"),parse:o(function(H){var q=L(H+="",!1);return q.toString=function(){return H},q},"parse"),utcFormat:o(function(H){var q=E(H+="",_);return q.toString=function(){return H},q},"utcFormat"),utcParse:o(function(H){var q=L(H+="",!0);return q.toString=function(){return H},q},"utcParse")}}function Hr(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a[e.toLowerCase(),r]))}function uke(t,e,r){var n=Qi.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function hke(t,e,r){var n=Qi.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function fke(t,e,r){var n=Qi.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function dke(t,e,r){var n=Qi.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function pke(t,e,r){var n=Qi.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function yW(t,e,r){var n=Qi.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function vW(t,e,r){var n=Qi.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function mke(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function gke(t,e,r){var n=Qi.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function yke(t,e,r){var n=Qi.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function xW(t,e,r){var n=Qi.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function vke(t,e,r){var n=Qi.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function bW(t,e,r){var n=Qi.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function xke(t,e,r){var n=Qi.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function bke(t,e,r){var n=Qi.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function wke(t,e,r){var n=Qi.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Tke(t,e,r){var n=Qi.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function kke(t,e,r){var n=oke.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Eke(t,e,r){var n=Qi.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Ske(t,e,r){var n=Qi.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function wW(t,e){return Hr(t.getDate(),e,2)}function Cke(t,e){return Hr(t.getHours(),e,2)}function Ake(t,e){return Hr(t.getHours()%12||12,e,2)}function _ke(t,e){return Hr(1+Lo.count(js(t),t),e,3)}function CW(t,e){return Hr(t.getMilliseconds(),e,3)}function Lke(t,e){return CW(t,e)+"000"}function Dke(t,e){return Hr(t.getMonth()+1,e,2)}function Nke(t,e){return Hr(t.getMinutes(),e,2)}function Rke(t,e){return Hr(t.getSeconds(),e,2)}function Mke(t){var e=t.getDay();return e===0?7:e}function Ike(t,e){return Hr(wl.count(js(t)-1,t),e,2)}function AW(t){var e=t.getDay();return e>=4||e===0?cc(t):cc.ceil(t)}function Oke(t,e){return t=AW(t),Hr(cc.count(js(t),t)+(js(t).getDay()===4),e,2)}function Pke(t){return t.getDay()}function Bke(t,e){return Hr(Th.count(js(t)-1,t),e,2)}function Fke(t,e){return Hr(t.getFullYear()%100,e,2)}function zke(t,e){return t=AW(t),Hr(t.getFullYear()%100,e,2)}function Gke(t,e){return Hr(t.getFullYear()%1e4,e,4)}function $ke(t,e){var r=t.getDay();return t=r>=4||r===0?cc(t):cc.ceil(t),Hr(t.getFullYear()%1e4,e,4)}function Vke(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Hr(e/60|0,"0",2)+Hr(e%60,"0",2)}function TW(t,e){return Hr(t.getUTCDate(),e,2)}function Uke(t,e){return Hr(t.getUTCHours(),e,2)}function Hke(t,e){return Hr(t.getUTCHours()%12||12,e,2)}function Wke(t,e){return Hr(1+Oy.count(Tl(t),t),e,3)}function _W(t,e){return Hr(t.getUTCMilliseconds(),e,3)}function Yke(t,e){return _W(t,e)+"000"}function qke(t,e){return Hr(t.getUTCMonth()+1,e,2)}function Xke(t,e){return Hr(t.getUTCMinutes(),e,2)}function jke(t,e){return Hr(t.getUTCSeconds(),e,2)}function Kke(t){var e=t.getUTCDay();return e===0?7:e}function Qke(t,e){return Hr(fd.count(Tl(t)-1,t),e,2)}function LW(t){var e=t.getUTCDay();return e>=4||e===0?kh(t):kh.ceil(t)}function Zke(t,e){return t=LW(t),Hr(kh.count(Tl(t),t)+(Tl(t).getUTCDay()===4),e,2)}function Jke(t){return t.getUTCDay()}function eEe(t,e){return Hr(Np.count(Tl(t)-1,t),e,2)}function tEe(t,e){return Hr(t.getUTCFullYear()%100,e,2)}function rEe(t,e){return t=LW(t),Hr(t.getUTCFullYear()%100,e,2)}function nEe(t,e){return Hr(t.getUTCFullYear()%1e4,e,4)}function iEe(t,e){var r=t.getUTCDay();return t=r>=4||r===0?kh(t):kh.ceil(t),Hr(t.getUTCFullYear()%1e4,e,4)}function aEe(){return"+0000"}function kW(){return"%"}function EW(t){return+t}function SW(t){return Math.floor(+t/1e3)}var gW,Qi,oke,lke,DW=M(()=>{"use strict";S3();o(Y8,"localDate");o(q8,"utcDate");o(Py,"newDate");o(X8,"formatLocale");gW={"-":"",_:" ",0:"0"},Qi=/^\s*\d+/,oke=/^%/,lke=/[\\^$*+?|[\]().{}]/g;o(Hr,"pad");o(cke,"requote");o(By,"formatRe");o(Fy,"formatLookup");o(uke,"parseWeekdayNumberSunday");o(hke,"parseWeekdayNumberMonday");o(fke,"parseWeekNumberSunday");o(dke,"parseWeekNumberISO");o(pke,"parseWeekNumberMonday");o(yW,"parseFullYear");o(vW,"parseYear");o(mke,"parseZone");o(gke,"parseQuarter");o(yke,"parseMonthNumber");o(xW,"parseDayOfMonth");o(vke,"parseDayOfYear");o(bW,"parseHour24");o(xke,"parseMinutes");o(bke,"parseSeconds");o(wke,"parseMilliseconds");o(Tke,"parseMicroseconds");o(kke,"parseLiteralPercent");o(Eke,"parseUnixTimestamp");o(Ske,"parseUnixTimestampSeconds");o(wW,"formatDayOfMonth");o(Cke,"formatHour24");o(Ake,"formatHour12");o(_ke,"formatDayOfYear");o(CW,"formatMilliseconds");o(Lke,"formatMicroseconds");o(Dke,"formatMonthNumber");o(Nke,"formatMinutes");o(Rke,"formatSeconds");o(Mke,"formatWeekdayNumberMonday");o(Ike,"formatWeekNumberSunday");o(AW,"dISO");o(Oke,"formatWeekNumberISO");o(Pke,"formatWeekdayNumberSunday");o(Bke,"formatWeekNumberMonday");o(Fke,"formatYear");o(zke,"formatYearISO");o(Gke,"formatFullYear");o($ke,"formatFullYearISO");o(Vke,"formatZone");o(TW,"formatUTCDayOfMonth");o(Uke,"formatUTCHour24");o(Hke,"formatUTCHour12");o(Wke,"formatUTCDayOfYear");o(_W,"formatUTCMilliseconds");o(Yke,"formatUTCMicroseconds");o(qke,"formatUTCMonthNumber");o(Xke,"formatUTCMinutes");o(jke,"formatUTCSeconds");o(Kke,"formatUTCWeekdayNumberMonday");o(Qke,"formatUTCWeekNumberSunday");o(LW,"UTCdISO");o(Zke,"formatUTCWeekNumberISO");o(Jke,"formatUTCWeekdayNumberSunday");o(eEe,"formatUTCWeekNumberMonday");o(tEe,"formatUTCYear");o(rEe,"formatUTCYearISO");o(nEe,"formatUTCFullYear");o(iEe,"formatUTCFullYearISO");o(aEe,"formatUTCZone");o(kW,"formatLiteralPercent");o(EW,"formatUnixTimestamp");o(SW,"formatUnixTimestampSeconds")});function j8(t){return Rp=X8(t),dd=Rp.format,NW=Rp.parse,RW=Rp.utcFormat,MW=Rp.utcParse,Rp}var Rp,dd,NW,RW,MW,IW=M(()=>{"use strict";DW();j8({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});o(j8,"defaultLocale")});var K8=M(()=>{"use strict";IW()});function sEe(t){return new Date(t)}function oEe(t){return t instanceof Date?+t:+new Date(+t)}function OW(t,e,r,n,i,a,s,l,u,h){var f=My(),d=f.invert,p=f.domain,m=h(".%L"),g=h(":%S"),y=h("%I:%M"),v=h("%I %p"),x=h("%a %d"),b=h("%b %d"),w=h("%B"),_=h("%Y");function T(E){return(u(E){"use strict";S3();K8();N8();Ry();nW();o(sEe,"date");o(oEe,"number");o(OW,"calendar");o(C3,"time")});var BW=M(()=>{"use strict";QH();rW();A8();PW()});function Q8(t){for(var e=t.length/6|0,r=new Array(e),n=0;n{"use strict";o(Q8,"default")});var Z8,zW=M(()=>{"use strict";FW();Z8=Q8("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab")});var GW=M(()=>{"use strict";zW()});function Pn(t){return o(function(){return t},"constant")}var A3=M(()=>{"use strict";o(Pn,"default")});function VW(t){return t>1?0:t<-1?Mp:Math.acos(t)}function e_(t){return t>=1?zy:t<=-1?-zy:Math.asin(t)}var J8,la,Eh,$W,_3,kl,pd,Zi,Mp,zy,Ip,L3=M(()=>{"use strict";J8=Math.abs,la=Math.atan2,Eh=Math.cos,$W=Math.max,_3=Math.min,kl=Math.sin,pd=Math.sqrt,Zi=1e-12,Mp=Math.PI,zy=Mp/2,Ip=2*Mp;o(VW,"acos");o(e_,"asin")});function D3(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{let n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new sd(e)}var t_=M(()=>{"use strict";d8();o(D3,"withPath")});function lEe(t){return t.innerRadius}function cEe(t){return t.outerRadius}function uEe(t){return t.startAngle}function hEe(t){return t.endAngle}function fEe(t){return t&&t.padAngle}function dEe(t,e,r,n,i,a,s,l){var u=r-t,h=n-e,f=s-i,d=l-a,p=d*u-f*h;if(!(p*pS*S+O*O&&(C=I,A=D),{cx:C,cy:A,x01:-f,y01:-d,x11:C*(i/T-1),y11:A*(i/T-1)}}function El(){var t=lEe,e=cEe,r=Pn(0),n=null,i=uEe,a=hEe,s=fEe,l=null,u=D3(h);function h(){var f,d,p=+t.apply(this,arguments),m=+e.apply(this,arguments),g=i.apply(this,arguments)-zy,y=a.apply(this,arguments)-zy,v=J8(y-g),x=y>g;if(l||(l=f=u()),mZi))l.moveTo(0,0);else if(v>Ip-Zi)l.moveTo(m*Eh(g),m*kl(g)),l.arc(0,0,m,g,y,!x),p>Zi&&(l.moveTo(p*Eh(y),p*kl(y)),l.arc(0,0,p,y,g,x));else{var b=g,w=y,_=g,T=y,E=v,L=v,C=s.apply(this,arguments)/2,A=C>Zi&&(n?+n.apply(this,arguments):pd(p*p+m*m)),I=_3(J8(m-p)/2,+r.apply(this,arguments)),D=I,k=I,R,S;if(A>Zi){var O=e_(A/p*kl(C)),N=e_(A/m*kl(C));(E-=O*2)>Zi?(O*=x?1:-1,_+=O,T-=O):(E=0,_=T=(g+y)/2),(L-=N*2)>Zi?(N*=x?1:-1,b+=N,w-=N):(L=0,b=w=(g+y)/2)}var P=m*Eh(b),F=m*kl(b),B=p*Eh(T),$=p*kl(T);if(I>Zi){var z=m*Eh(w),W=m*kl(w),j=p*Eh(_),K=p*kl(_),ie;if(vZi?k>Zi?(R=N3(j,K,P,F,m,k,x),S=N3(z,W,B,$,m,k,x),l.moveTo(R.cx+R.x01,R.cy+R.y01),kZi)||!(E>Zi)?l.lineTo(B,$):D>Zi?(R=N3(B,$,z,W,p,-D,x),S=N3(P,F,j,K,p,-D,x),l.lineTo(R.cx+R.x01,R.cy+R.y01),D{"use strict";A3();L3();t_();o(lEe,"arcInnerRadius");o(cEe,"arcOuterRadius");o(uEe,"arcStartAngle");o(hEe,"arcEndAngle");o(fEe,"arcPadAngle");o(dEe,"intersect");o(N3,"cornerTangents");o(El,"default")});function Gy(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}var O2t,r_=M(()=>{"use strict";O2t=Array.prototype.slice;o(Gy,"default")});function HW(t){this._context=t}function Op(t){return new HW(t)}var n_=M(()=>{"use strict";o(HW,"Linear");HW.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._point=0},"lineStart"),lineEnd:o(function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}},"point")};o(Op,"default")});function WW(t){return t[0]}function YW(t){return t[1]}var qW=M(()=>{"use strict";o(WW,"x");o(YW,"y")});function Ka(t,e){var r=Pn(!0),n=null,i=Op,a=null,s=D3(l);t=typeof t=="function"?t:t===void 0?WW:Pn(t),e=typeof e=="function"?e:e===void 0?YW:Pn(e);function l(u){var h,f=(u=Gy(u)).length,d,p=!1,m;for(n==null&&(a=i(m=s())),h=0;h<=f;++h)!(h{"use strict";r_();A3();n_();t_();qW();o(Ka,"default")});function i_(t,e){return et?1:e>=t?0:NaN}var jW=M(()=>{"use strict";o(i_,"default")});function a_(t){return t}var KW=M(()=>{"use strict";o(a_,"default")});function R3(){var t=a_,e=i_,r=null,n=Pn(0),i=Pn(Ip),a=Pn(0);function s(l){var u,h=(l=Gy(l)).length,f,d,p=0,m=new Array(h),g=new Array(h),y=+n.apply(this,arguments),v=Math.min(Ip,Math.max(-Ip,i.apply(this,arguments)-y)),x,b=Math.min(Math.abs(v)/h,a.apply(this,arguments)),w=b*(v<0?-1:1),_;for(u=0;u0&&(p+=_);for(e!=null?m.sort(function(T,E){return e(g[T],g[E])}):r!=null&&m.sort(function(T,E){return r(l[T],l[E])}),u=0,d=p?(v-h*w)/p:0;u0?_*d:0)+w,g[f]={data:l[f],index:u,value:_,startAngle:y,endAngle:x,padAngle:b};return g}return o(s,"pie"),s.value=function(l){return arguments.length?(t=typeof l=="function"?l:Pn(+l),s):t},s.sortValues=function(l){return arguments.length?(e=l,r=null,s):e},s.sort=function(l){return arguments.length?(r=l,e=null,s):r},s.startAngle=function(l){return arguments.length?(n=typeof l=="function"?l:Pn(+l),s):n},s.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Pn(+l),s):i},s.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Pn(+l),s):a},s}var QW=M(()=>{"use strict";r_();A3();jW();KW();L3();o(R3,"default")});function s_(t){return new M3(t,!0)}function o_(t){return new M3(t,!1)}var M3,ZW=M(()=>{"use strict";M3=class{static{o(this,"Bump")}constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}};o(s_,"bumpX");o(o_,"bumpY")});function Ks(){}var $y=M(()=>{"use strict";o(Ks,"default")});function Pp(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Vy(t){this._context=t}function Do(t){return new Vy(t)}var Uy=M(()=>{"use strict";o(Pp,"point");o(Vy,"Basis");Vy.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 3:Pp(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Pp(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};o(Do,"default")});function JW(t){this._context=t}function I3(t){return new JW(t)}var eY=M(()=>{"use strict";$y();Uy();o(JW,"BasisClosed");JW.prototype={areaStart:Ks,areaEnd:Ks,lineStart:o(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},"lineEnd"),point:o(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Pp(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};o(I3,"default")});function tY(t){this._context=t}function O3(t){return new tY(t)}var rY=M(()=>{"use strict";Uy();o(tY,"BasisOpen");tY.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:o(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Pp(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};o(O3,"default")});function nY(t,e){this._basis=new Vy(t),this._beta=e}var l_,iY=M(()=>{"use strict";Uy();o(nY,"Bundle");nY.prototype={lineStart:o(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:o(function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n=t[0],i=e[0],a=t[r]-n,s=e[r]-i,l=-1,u;++l<=r;)u=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(n+u*a),this._beta*e[l]+(1-this._beta)*(i+u*s));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:o(function(t,e){this._x.push(+t),this._y.push(+e)},"point")};l_=o(function t(e){function r(n){return e===1?new Vy(n):new nY(n,e)}return o(r,"bundle"),r.beta=function(n){return t(+n)},r},"custom")(.85)});function Bp(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function P3(t,e){this._context=t,this._k=(1-e)/6}var c_,Hy=M(()=>{"use strict";o(Bp,"point");o(P3,"Cardinal");P3.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Bp(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Bp(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};c_=o(function t(e){function r(n){return new P3(n,e)}return o(r,"cardinal"),r.tension=function(n){return t(+n)},r},"custom")(0)});function B3(t,e){this._context=t,this._k=(1-e)/6}var u_,h_=M(()=>{"use strict";$y();Hy();o(B3,"CardinalClosed");B3.prototype={areaStart:Ks,areaEnd:Ks,lineStart:o(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:o(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Bp(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};u_=o(function t(e){function r(n){return new B3(n,e)}return o(r,"cardinal"),r.tension=function(n){return t(+n)},r},"custom")(0)});function F3(t,e){this._context=t,this._k=(1-e)/6}var f_,d_=M(()=>{"use strict";Hy();o(F3,"CardinalOpen");F3.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:o(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Bp(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};f_=o(function t(e){function r(n){return new F3(n,e)}return o(r,"cardinal"),r.tension=function(n){return t(+n)},r},"custom")(0)});function Wy(t,e,r){var n=t._x1,i=t._y1,a=t._x2,s=t._y2;if(t._l01_a>Zi){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>Zi){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*h+t._x1*t._l23_2a-e*t._l12_2a)/f,s=(s*h+t._y1*t._l23_2a-r*t._l12_2a)/f}t._context.bezierCurveTo(n,i,a,s,t._x2,t._y2)}function aY(t,e){this._context=t,this._alpha=e}var p_,z3=M(()=>{"use strict";L3();Hy();o(Wy,"point");o(aY,"CatmullRom");aY.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Wy(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};p_=o(function t(e){function r(n){return e?new aY(n,e):new P3(n,0)}return o(r,"catmullRom"),r.alpha=function(n){return t(+n)},r},"custom")(.5)});function sY(t,e){this._context=t,this._alpha=e}var m_,oY=M(()=>{"use strict";h_();$y();z3();o(sY,"CatmullRomClosed");sY.prototype={areaStart:Ks,areaEnd:Ks,lineStart:o(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:o(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Wy(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};m_=o(function t(e){function r(n){return e?new sY(n,e):new B3(n,0)}return o(r,"catmullRom"),r.alpha=function(n){return t(+n)},r},"custom")(.5)});function lY(t,e){this._context=t,this._alpha=e}var g_,cY=M(()=>{"use strict";d_();z3();o(lY,"CatmullRomOpen");lY.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:o(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Wy(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};g_=o(function t(e){function r(n){return e?new lY(n,e):new F3(n,0)}return o(r,"catmullRom"),r.alpha=function(n){return t(+n)},r},"custom")(.5)});function uY(t){this._context=t}function G3(t){return new uY(t)}var hY=M(()=>{"use strict";$y();o(uY,"LinearClosed");uY.prototype={areaStart:Ks,areaEnd:Ks,lineStart:o(function(){this._point=0},"lineStart"),lineEnd:o(function(){this._point&&this._context.closePath()},"lineEnd"),point:o(function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))},"point")};o(G3,"default")});function fY(t){return t<0?-1:1}function dY(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),s=(r-t._y1)/(i||n<0&&-0),l=(a*i+s*n)/(n+i);return(fY(a)+fY(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function pY(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function y_(t,e,r){var n=t._x0,i=t._y0,a=t._x1,s=t._y1,l=(a-n)/3;t._context.bezierCurveTo(n+l,i+l*e,a-l,s-l*r,a,s)}function $3(t){this._context=t}function mY(t){this._context=new gY(t)}function gY(t){this._context=t}function v_(t){return new $3(t)}function x_(t){return new mY(t)}var yY=M(()=>{"use strict";o(fY,"sign");o(dY,"slope3");o(pY,"slope2");o(y_,"point");o($3,"MonotoneX");$3.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:o(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:y_(this,this._t0,pY(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:o(function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,y_(this,pY(this,r=dY(this,t,e)),r);break;default:y_(this,this._t0,r=dY(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}},"point")};o(mY,"MonotoneY");(mY.prototype=Object.create($3.prototype)).point=function(t,e){$3.prototype.point.call(this,e,t)};o(gY,"ReflectContext");gY.prototype={moveTo:o(function(t,e){this._context.moveTo(e,t)},"moveTo"),closePath:o(function(){this._context.closePath()},"closePath"),lineTo:o(function(t,e){this._context.lineTo(e,t)},"lineTo"),bezierCurveTo:o(function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)},"bezierCurveTo")};o(v_,"monotoneX");o(x_,"monotoneY")});function xY(t){this._context=t}function vY(t){var e,r=t.length-1,n,i=new Array(r),a=new Array(r),s=new Array(r);for(i[0]=0,a[0]=2,s[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(s[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e{"use strict";o(xY,"Natural");xY.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:o(function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=vY(t),i=vY(e),a=0,s=1;s{"use strict";o(U3,"Step");U3.prototype={areaStart:o(function(){this._line=0},"areaStart"),areaEnd:o(function(){this._line=NaN},"areaEnd"),lineStart:o(function(){this._x=this._y=NaN,this._point=0},"lineStart"),lineEnd:o(function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:o(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e},"point")};o(H3,"default");o(b_,"stepBefore");o(w_,"stepAfter")});var TY=M(()=>{"use strict";UW();XW();QW();eY();rY();Uy();ZW();iY();h_();d_();Hy();oY();cY();z3();hY();n_();yY();bY();wY()});var kY=M(()=>{"use strict"});var EY=M(()=>{"use strict"});function Sh(t,e,r){this.k=t,this.x=e,this.y=r}function k_(t){for(;!t.__zoom;)if(!(t=t.parentNode))return T_;return t.__zoom}var T_,E_=M(()=>{"use strict";o(Sh,"Transform");Sh.prototype={constructor:Sh,scale:o(function(t){return t===1?this:new Sh(this.k*t,this.x,this.y)},"scale"),translate:o(function(t,e){return t===0&e===0?this:new Sh(this.k,this.x+this.k*t,this.y+this.k*e)},"translate"),apply:o(function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},"apply"),applyX:o(function(t){return t*this.k+this.x},"applyX"),applyY:o(function(t){return t*this.k+this.y},"applyY"),invert:o(function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},"invert"),invertX:o(function(t){return(t-this.x)/this.k},"invertX"),invertY:o(function(t){return(t-this.y)/this.k},"invertY"),rescaleX:o(function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},"rescaleX"),rescaleY:o(function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},"rescaleY"),toString:o(function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"},"toString")};T_=new Sh(1,0,0);k_.prototype=Sh.prototype;o(k_,"transform")});var SY=M(()=>{"use strict"});var CY=M(()=>{"use strict";s3();kY();EY();E_();SY()});var AY=M(()=>{"use strict";CY();E_()});var mr=M(()=>{"use strict";ph();iV();kH();AH();kp();_H();LH();b7();jV();DH();l8();NH();MH();S8();qH();XH();Cp();d8();jH();RH();KH();BW();GW();gl();TY();S3();K8();e3();s3();AY()});var _Y=Ni(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.BLANK_URL=Ji.relativeFirstCharacters=Ji.whitespaceEscapeCharsRegex=Ji.urlSchemeRegex=Ji.ctrlCharactersRegex=Ji.htmlCtrlEntityRegex=Ji.htmlEntitiesRegex=Ji.invalidProtocolRegex=void 0;Ji.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;Ji.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;Ji.htmlCtrlEntityRegex=/&(newline|tab);/gi;Ji.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;Ji.urlSchemeRegex=/^.+(:|:)/gim;Ji.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;Ji.relativeFirstCharacters=[".","/"];Ji.BLANK_URL="about:blank"});var Fp=Ni(W3=>{"use strict";Object.defineProperty(W3,"__esModule",{value:!0});W3.sanitizeUrl=void 0;var Sa=_Y();function pEe(t){return Sa.relativeFirstCharacters.indexOf(t[0])>-1}o(pEe,"isRelativeUrlWithoutProtocol");function mEe(t){var e=t.replace(Sa.ctrlCharactersRegex,"");return e.replace(Sa.htmlEntitiesRegex,function(r,n){return String.fromCharCode(n)})}o(mEe,"decodeHtmlCharacters");function gEe(t){return URL.canParse(t)}o(gEe,"isValidUrl");function LY(t){try{return decodeURIComponent(t)}catch{return t}}o(LY,"decodeURI");function yEe(t){if(!t)return Sa.BLANK_URL;var e,r=LY(t.trim());do r=mEe(r).replace(Sa.htmlCtrlEntityRegex,"").replace(Sa.ctrlCharactersRegex,"").replace(Sa.whitespaceEscapeCharsRegex,"").trim(),r=LY(r),e=r.match(Sa.ctrlCharactersRegex)||r.match(Sa.htmlEntitiesRegex)||r.match(Sa.htmlCtrlEntityRegex)||r.match(Sa.whitespaceEscapeCharsRegex);while(e&&e.length>0);var n=r;if(!n)return Sa.BLANK_URL;if(pEe(n))return n;var i=n.trimStart(),a=i.match(Sa.urlSchemeRegex);if(!a)return n;var s=a[0].toLowerCase().trim();if(Sa.invalidProtocolRegex.test(s))return Sa.BLANK_URL;var l=i.replace(/\\/g,"/");if(s==="mailto:"||s.includes("://"))return l;if(s==="http:"||s==="https:"){if(!gEe(l))return Sa.BLANK_URL;var u=new URL(l);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return l}o(yEe,"sanitizeUrl");W3.sanitizeUrl=yEe});var S_,md,Y3,DY,NY,RY,Sl,Yy,qy=M(()=>{"use strict";S_=ka(Fp(),1);fr();md=o((t,e)=>{let r=t.append("rect");if(r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),e.name&&r.attr("name",e.name),e.rx&&r.attr("rx",e.rx),e.ry&&r.attr("ry",e.ry),e.attrs!==void 0)for(let n in e.attrs)r.attr(n,e.attrs[n]);return e.class&&r.attr("class",e.class),r},"drawRect"),Y3=o((t,e)=>{let r={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};md(t,r).lower()},"drawBackgroundRect"),DY=o((t,e)=>{let r=e.text.replace(jf," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),e.class&&n.attr("class",e.class);let i=n.append("tspan");return i.attr("x",e.x+e.textMargin*2),i.text(r),n},"drawText"),NY=o((t,e,r,n)=>{let i=t.append("image");i.attr("x",e),i.attr("y",r);let a=(0,S_.sanitizeUrl)(n);i.attr("xlink:href",a)},"drawImage"),RY=o((t,e,r,n)=>{let i=t.append("use");i.attr("x",e),i.attr("y",r);let a=(0,S_.sanitizeUrl)(n);i.attr("xlink:href",`#${a}`)},"drawEmbeddedImage"),Sl=o(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Yy=o(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj")});var MY,C_,IY,vEe,xEe,bEe,wEe,TEe,kEe,EEe,SEe,CEe,AEe,_Ee,LEe,vu,Cl,OY=M(()=>{"use strict";fr();qy();MY=ka(Fp(),1),C_=o(function(t,e){return md(t,e)},"drawRect"),IY=o(function(t,e,r,n,i,a){let s=t.append("image");s.attr("width",e),s.attr("height",r),s.attr("x",n),s.attr("y",i);let l=a.startsWith("data:image/png;base64")?a:(0,MY.sanitizeUrl)(a);s.attr("xlink:href",l)},"drawImage"),vEe=o((t,e,r)=>{let n=t.append("g"),i=0;for(let a of e){let s=a.textColor?a.textColor:"#444444",l=a.lineColor?a.lineColor:"#444444",u=a.offsetX?parseInt(a.offsetX):0,h=a.offsetY?parseInt(a.offsetY):0,f="";if(i===0){let p=n.append("line");p.attr("x1",a.startPoint.x),p.attr("y1",a.startPoint.y),p.attr("x2",a.endPoint.x),p.attr("y2",a.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",l),p.style("fill","none"),a.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(a.type==="birel"||a.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)"),i=-1}else{let p=n.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",l).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",a.startPoint.x).replaceAll("starty",a.startPoint.y).replaceAll("controlx",a.startPoint.x+(a.endPoint.x-a.startPoint.x)/2-(a.endPoint.x-a.startPoint.x)/4).replaceAll("controly",a.startPoint.y+(a.endPoint.y-a.startPoint.y)/2).replaceAll("stopx",a.endPoint.x).replaceAll("stopy",a.endPoint.y)),a.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(a.type==="birel"||a.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)")}let d=r.messageFont();vu(r)(a.label.text,n,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+u,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+h,a.label.width,a.label.height,{fill:s},d),a.techn&&a.techn.text!==""&&(d=r.messageFont(),vu(r)("["+a.techn.text+"]",n,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+u,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+r.messageFontSize+5+h,Math.max(a.label.width,a.techn.width),a.techn.height,{fill:s,"font-style":"italic"},d))}},"drawRels"),xEe=o(function(t,e,r){let n=t.append("g"),i=e.bgColor?e.bgColor:"none",a=e.borderColor?e.borderColor:"#444444",s=e.fontColor?e.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(l={"stroke-width":1});let u={x:e.x,y:e.y,fill:i,stroke:a,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:l};C_(n,u);let h=r.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=s,vu(r)(e.label.text,n,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},h),e.type&&e.type.text!==""&&(h=r.boundaryFont(),h.fontColor=s,vu(r)(e.type.text,n,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},h)),e.descr&&e.descr.text!==""&&(h=r.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=s,vu(r)(e.descr.text,n,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},h))},"drawBoundary"),bEe=o(function(t,e,r){let n=e.bgColor?e.bgColor:r[e.typeC4Shape.text+"_bg_color"],i=e.borderColor?e.borderColor:r[e.typeC4Shape.text+"_border_color"],a=e.fontColor?e.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}let l=t.append("g");l.attr("class","person-man");let u=Sl();switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":u.x=e.x,u.y=e.y,u.fill=n,u.width=e.width,u.height=e.height,u.stroke=i,u.rx=2.5,u.ry=2.5,u.attrs={"stroke-width":.5},C_(l,u);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":l.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":l.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2));break}let h=LEe(r,e.typeC4Shape.text);switch(l.append("text").attr("fill",a).attr("font-family",h.fontFamily).attr("font-size",h.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":IY(l,48,48,e.x+e.width/2-24,e.y+e.image.Y,s);break}let f=r[e.typeC4Shape.text+"Font"]();return f.fontWeight="bold",f.fontSize=f.fontSize+2,f.fontColor=a,vu(r)(e.label.text,l,e.x,e.y+e.label.Y,e.width,e.height,{fill:a},f),f=r[e.typeC4Shape.text+"Font"](),f.fontColor=a,e.techn&&e.techn?.text!==""?vu(r)(e.techn.text,l,e.x,e.y+e.techn.Y,e.width,e.height,{fill:a,"font-style":"italic"},f):e.type&&e.type.text!==""&&vu(r)(e.type.text,l,e.x,e.y+e.type.Y,e.width,e.height,{fill:a,"font-style":"italic"},f),e.descr&&e.descr.text!==""&&(f=r.personFont(),f.fontColor=a,vu(r)(e.descr.text,l,e.x,e.y+e.descr.Y,e.width,e.height,{fill:a},f)),e.height},"drawC4Shape"),wEe=o(function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),TEe=o(function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),kEe=o(function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),EEe=o(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),SEe=o(function(t){t.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),CEe=o(function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),AEe=o(function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertDynamicNumber"),_Ee=o(function(t){let r=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);r.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),r.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),LEe=o((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"getC4ShapeFont"),vu=function(){function t(i,a,s,l,u,h,f){let d=a.append("text").attr("x",s+u/2).attr("y",l+h/2+5).style("text-anchor","middle").text(i);n(d,f)}o(t,"byText");function e(i,a,s,l,u,h,f,d){let{fontSize:p,fontFamily:m,fontWeight:g}=d,y=i.split(je.lineBreakRegex);for(let v=0;v{"use strict";DEe=typeof global=="object"&&global&&global.Object===Object&&global,X3=DEe});var NEe,REe,ai,No=M(()=>{"use strict";A_();NEe=typeof self=="object"&&self&&self.Object===Object&&self,REe=X3||NEe||Function("return this")(),ai=REe});var MEe,ea,gd=M(()=>{"use strict";No();MEe=ai.Symbol,ea=MEe});function PEe(t){var e=IEe.call(t,Xy),r=t[Xy];try{t[Xy]=void 0;var n=!0}catch{}var i=OEe.call(t);return n&&(e?t[Xy]=r:delete t[Xy]),i}var PY,IEe,OEe,Xy,BY,FY=M(()=>{"use strict";gd();PY=Object.prototype,IEe=PY.hasOwnProperty,OEe=PY.toString,Xy=ea?ea.toStringTag:void 0;o(PEe,"getRawTag");BY=PEe});function zEe(t){return FEe.call(t)}var BEe,FEe,zY,GY=M(()=>{"use strict";BEe=Object.prototype,FEe=BEe.toString;o(zEe,"objectToString");zY=zEe});function VEe(t){return t==null?t===void 0?$Ee:GEe:$Y&&$Y in Object(t)?BY(t):zY(t)}var GEe,$Ee,$Y,ca,xu=M(()=>{"use strict";gd();FY();GY();GEe="[object Null]",$Ee="[object Undefined]",$Y=ea?ea.toStringTag:void 0;o(VEe,"baseGetTag");ca=VEe});function UEe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var yn,Qs=M(()=>{"use strict";o(UEe,"isObject");yn=UEe});function XEe(t){if(!yn(t))return!1;var e=ca(t);return e==WEe||e==YEe||e==HEe||e==qEe}var HEe,WEe,YEe,qEe,Ei,jy=M(()=>{"use strict";xu();Qs();HEe="[object AsyncFunction]",WEe="[object Function]",YEe="[object GeneratorFunction]",qEe="[object Proxy]";o(XEe,"isFunction");Ei=XEe});var jEe,j3,VY=M(()=>{"use strict";No();jEe=ai["__core-js_shared__"],j3=jEe});function KEe(t){return!!UY&&UY in t}var UY,HY,WY=M(()=>{"use strict";VY();UY=function(){var t=/[^.]+$/.exec(j3&&j3.keys&&j3.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();o(KEe,"isMasked");HY=KEe});function JEe(t){if(t!=null){try{return ZEe.call(t)}catch{}try{return t+""}catch{}}return""}var QEe,ZEe,bu,__=M(()=>{"use strict";QEe=Function.prototype,ZEe=QEe.toString;o(JEe,"toSource");bu=JEe});function o6e(t){if(!yn(t)||HY(t))return!1;var e=Ei(t)?s6e:t6e;return e.test(bu(t))}var e6e,t6e,r6e,n6e,i6e,a6e,s6e,YY,qY=M(()=>{"use strict";jy();WY();Qs();__();e6e=/[\\^$.*+?()[\]{}|]/g,t6e=/^\[object .+?Constructor\]$/,r6e=Function.prototype,n6e=Object.prototype,i6e=r6e.toString,a6e=n6e.hasOwnProperty,s6e=RegExp("^"+i6e.call(a6e).replace(e6e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");o(o6e,"baseIsNative");YY=o6e});function l6e(t,e){return t?.[e]}var XY,jY=M(()=>{"use strict";o(l6e,"getValue");XY=l6e});function c6e(t,e){var r=XY(t,e);return YY(r)?r:void 0}var vs,Ch=M(()=>{"use strict";qY();jY();o(c6e,"getNative");vs=c6e});var u6e,wu,Ky=M(()=>{"use strict";Ch();u6e=vs(Object,"create"),wu=u6e});function h6e(){this.__data__=wu?wu(null):{},this.size=0}var KY,QY=M(()=>{"use strict";Ky();o(h6e,"hashClear");KY=h6e});function f6e(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ZY,JY=M(()=>{"use strict";o(f6e,"hashDelete");ZY=f6e});function g6e(t){var e=this.__data__;if(wu){var r=e[t];return r===d6e?void 0:r}return m6e.call(e,t)?e[t]:void 0}var d6e,p6e,m6e,eq,tq=M(()=>{"use strict";Ky();d6e="__lodash_hash_undefined__",p6e=Object.prototype,m6e=p6e.hasOwnProperty;o(g6e,"hashGet");eq=g6e});function x6e(t){var e=this.__data__;return wu?e[t]!==void 0:v6e.call(e,t)}var y6e,v6e,rq,nq=M(()=>{"use strict";Ky();y6e=Object.prototype,v6e=y6e.hasOwnProperty;o(x6e,"hashHas");rq=x6e});function w6e(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=wu&&e===void 0?b6e:e,this}var b6e,iq,aq=M(()=>{"use strict";Ky();b6e="__lodash_hash_undefined__";o(w6e,"hashSet");iq=w6e});function zp(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{"use strict";QY();JY();tq();nq();aq();o(zp,"Hash");zp.prototype.clear=KY;zp.prototype.delete=ZY;zp.prototype.get=eq;zp.prototype.has=rq;zp.prototype.set=iq;L_=zp});function T6e(){this.__data__=[],this.size=0}var oq,lq=M(()=>{"use strict";o(T6e,"listCacheClear");oq=T6e});function k6e(t,e){return t===e||t!==t&&e!==e}var Ro,yd=M(()=>{"use strict";o(k6e,"eq");Ro=k6e});function E6e(t,e){for(var r=t.length;r--;)if(Ro(t[r][0],e))return r;return-1}var Ah,Qy=M(()=>{"use strict";yd();o(E6e,"assocIndexOf");Ah=E6e});function A6e(t){var e=this.__data__,r=Ah(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():C6e.call(e,r,1),--this.size,!0}var S6e,C6e,cq,uq=M(()=>{"use strict";Qy();S6e=Array.prototype,C6e=S6e.splice;o(A6e,"listCacheDelete");cq=A6e});function _6e(t){var e=this.__data__,r=Ah(e,t);return r<0?void 0:e[r][1]}var hq,fq=M(()=>{"use strict";Qy();o(_6e,"listCacheGet");hq=_6e});function L6e(t){return Ah(this.__data__,t)>-1}var dq,pq=M(()=>{"use strict";Qy();o(L6e,"listCacheHas");dq=L6e});function D6e(t,e){var r=this.__data__,n=Ah(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var mq,gq=M(()=>{"use strict";Qy();o(D6e,"listCacheSet");mq=D6e});function Gp(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{"use strict";lq();uq();fq();pq();gq();o(Gp,"ListCache");Gp.prototype.clear=oq;Gp.prototype.delete=cq;Gp.prototype.get=hq;Gp.prototype.has=dq;Gp.prototype.set=mq;_h=Gp});var N6e,Lh,K3=M(()=>{"use strict";Ch();No();N6e=vs(ai,"Map"),Lh=N6e});function R6e(){this.size=0,this.__data__={hash:new L_,map:new(Lh||_h),string:new L_}}var yq,vq=M(()=>{"use strict";sq();Zy();K3();o(R6e,"mapCacheClear");yq=R6e});function M6e(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var xq,bq=M(()=>{"use strict";o(M6e,"isKeyable");xq=M6e});function I6e(t,e){var r=t.__data__;return xq(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Dh,Jy=M(()=>{"use strict";bq();o(I6e,"getMapData");Dh=I6e});function O6e(t){var e=Dh(this,t).delete(t);return this.size-=e?1:0,e}var wq,Tq=M(()=>{"use strict";Jy();o(O6e,"mapCacheDelete");wq=O6e});function P6e(t){return Dh(this,t).get(t)}var kq,Eq=M(()=>{"use strict";Jy();o(P6e,"mapCacheGet");kq=P6e});function B6e(t){return Dh(this,t).has(t)}var Sq,Cq=M(()=>{"use strict";Jy();o(B6e,"mapCacheHas");Sq=B6e});function F6e(t,e){var r=Dh(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var Aq,_q=M(()=>{"use strict";Jy();o(F6e,"mapCacheSet");Aq=F6e});function $p(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e{"use strict";vq();Tq();Eq();Cq();_q();o($p,"MapCache");$p.prototype.clear=yq;$p.prototype.delete=wq;$p.prototype.get=kq;$p.prototype.has=Sq;$p.prototype.set=Aq;vd=$p});function D_(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(z6e);var r=o(function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=t.apply(this,n);return r.cache=a.set(i,s)||a,s},"memoized");return r.cache=new(D_.Cache||vd),r}var z6e,Vp,N_=M(()=>{"use strict";Q3();z6e="Expected a function";o(D_,"memoize");D_.Cache=vd;Vp=D_});function G6e(){this.__data__=new _h,this.size=0}var Lq,Dq=M(()=>{"use strict";Zy();o(G6e,"stackClear");Lq=G6e});function $6e(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Nq,Rq=M(()=>{"use strict";o($6e,"stackDelete");Nq=$6e});function V6e(t){return this.__data__.get(t)}var Mq,Iq=M(()=>{"use strict";o(V6e,"stackGet");Mq=V6e});function U6e(t){return this.__data__.has(t)}var Oq,Pq=M(()=>{"use strict";o(U6e,"stackHas");Oq=U6e});function W6e(t,e){var r=this.__data__;if(r instanceof _h){var n=r.__data__;if(!Lh||n.length{"use strict";Zy();K3();Q3();H6e=200;o(W6e,"stackSet");Bq=W6e});function Up(t){var e=this.__data__=new _h(t);this.size=e.size}var uc,ev=M(()=>{"use strict";Zy();Dq();Rq();Iq();Pq();Fq();o(Up,"Stack");Up.prototype.clear=Lq;Up.prototype.delete=Nq;Up.prototype.get=Mq;Up.prototype.has=Oq;Up.prototype.set=Bq;uc=Up});var Y6e,Hp,R_=M(()=>{"use strict";Ch();Y6e=function(){try{var t=vs(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Hp=Y6e});function q6e(t,e,r){e=="__proto__"&&Hp?Hp(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var hc,Wp=M(()=>{"use strict";R_();o(q6e,"baseAssignValue");hc=q6e});function X6e(t,e,r){(r!==void 0&&!Ro(t[e],r)||r===void 0&&!(e in t))&&hc(t,e,r)}var tv,M_=M(()=>{"use strict";Wp();yd();o(X6e,"assignMergeValue");tv=X6e});function j6e(t){return function(e,r,n){for(var i=-1,a=Object(e),s=n(e),l=s.length;l--;){var u=s[t?l:++i];if(r(a[u],u,a)===!1)break}return e}}var zq,Gq=M(()=>{"use strict";o(j6e,"createBaseFor");zq=j6e});var K6e,Yp,Z3=M(()=>{"use strict";Gq();K6e=zq(),Yp=K6e});function Z6e(t,e){if(e)return t.slice();var r=t.length,n=Uq?Uq(r):new t.constructor(r);return t.copy(n),n}var Hq,$q,Q6e,Vq,Uq,J3,I_=M(()=>{"use strict";No();Hq=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$q=Hq&&typeof module=="object"&&module&&!module.nodeType&&module,Q6e=$q&&$q.exports===Hq,Vq=Q6e?ai.Buffer:void 0,Uq=Vq?Vq.allocUnsafe:void 0;o(Z6e,"cloneBuffer");J3=Z6e});var J6e,qp,O_=M(()=>{"use strict";No();J6e=ai.Uint8Array,qp=J6e});function eSe(t){var e=new t.constructor(t.byteLength);return new qp(e).set(new qp(t)),e}var Xp,e5=M(()=>{"use strict";O_();o(eSe,"cloneArrayBuffer");Xp=eSe});function tSe(t,e){var r=e?Xp(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var t5,P_=M(()=>{"use strict";e5();o(tSe,"cloneTypedArray");t5=tSe});function rSe(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r{"use strict";o(rSe,"copyArray");r5=rSe});var Wq,nSe,Yq,qq=M(()=>{"use strict";Qs();Wq=Object.create,nSe=function(){function t(){}return o(t,"object"),function(e){if(!yn(e))return{};if(Wq)return Wq(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),Yq=nSe});function iSe(t,e){return function(r){return t(e(r))}}var n5,F_=M(()=>{"use strict";o(iSe,"overArg");n5=iSe});var aSe,jp,i5=M(()=>{"use strict";F_();aSe=n5(Object.getPrototypeOf,Object),jp=aSe});function oSe(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||sSe;return t===r}var sSe,fc,Kp=M(()=>{"use strict";sSe=Object.prototype;o(oSe,"isPrototype");fc=oSe});function lSe(t){return typeof t.constructor=="function"&&!fc(t)?Yq(jp(t)):{}}var a5,z_=M(()=>{"use strict";qq();i5();Kp();o(lSe,"initCloneObject");a5=lSe});function cSe(t){return t!=null&&typeof t=="object"}var Zn,Mo=M(()=>{"use strict";o(cSe,"isObjectLike");Zn=cSe});function hSe(t){return Zn(t)&&ca(t)==uSe}var uSe,G_,Xq=M(()=>{"use strict";xu();Mo();uSe="[object Arguments]";o(hSe,"baseIsArguments");G_=hSe});var jq,fSe,dSe,pSe,Al,Qp=M(()=>{"use strict";Xq();Mo();jq=Object.prototype,fSe=jq.hasOwnProperty,dSe=jq.propertyIsEnumerable,pSe=G_(function(){return arguments}())?G_:function(t){return Zn(t)&&fSe.call(t,"callee")&&!dSe.call(t,"callee")},Al=pSe});var mSe,Mt,Vn=M(()=>{"use strict";mSe=Array.isArray,Mt=mSe});function ySe(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=gSe}var gSe,Zp,s5=M(()=>{"use strict";gSe=9007199254740991;o(ySe,"isLength");Zp=ySe});function vSe(t){return t!=null&&Zp(t.length)&&!Ei(t)}var si,Io=M(()=>{"use strict";jy();s5();o(vSe,"isArrayLike");si=vSe});function xSe(t){return Zn(t)&&si(t)}var xd,o5=M(()=>{"use strict";Io();Mo();o(xSe,"isArrayLikeObject");xd=xSe});function bSe(){return!1}var Kq,Qq=M(()=>{"use strict";o(bSe,"stubFalse");Kq=bSe});var eX,Zq,wSe,Jq,TSe,kSe,_l,Jp=M(()=>{"use strict";No();Qq();eX=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Zq=eX&&typeof module=="object"&&module&&!module.nodeType&&module,wSe=Zq&&Zq.exports===eX,Jq=wSe?ai.Buffer:void 0,TSe=Jq?Jq.isBuffer:void 0,kSe=TSe||Kq,_l=kSe});function LSe(t){if(!Zn(t)||ca(t)!=ESe)return!1;var e=jp(t);if(e===null)return!0;var r=ASe.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&tX.call(r)==_Se}var ESe,SSe,CSe,tX,ASe,_Se,rX,nX=M(()=>{"use strict";xu();i5();Mo();ESe="[object Object]",SSe=Function.prototype,CSe=Object.prototype,tX=SSe.toString,ASe=CSe.hasOwnProperty,_Se=tX.call(Object);o(LSe,"isPlainObject");rX=LSe});function eCe(t){return Zn(t)&&Zp(t.length)&&!!Bn[ca(t)]}var DSe,NSe,RSe,MSe,ISe,OSe,PSe,BSe,FSe,zSe,GSe,$Se,VSe,USe,HSe,WSe,YSe,qSe,XSe,jSe,KSe,QSe,ZSe,JSe,Bn,iX,aX=M(()=>{"use strict";xu();s5();Mo();DSe="[object Arguments]",NSe="[object Array]",RSe="[object Boolean]",MSe="[object Date]",ISe="[object Error]",OSe="[object Function]",PSe="[object Map]",BSe="[object Number]",FSe="[object Object]",zSe="[object RegExp]",GSe="[object Set]",$Se="[object String]",VSe="[object WeakMap]",USe="[object ArrayBuffer]",HSe="[object DataView]",WSe="[object Float32Array]",YSe="[object Float64Array]",qSe="[object Int8Array]",XSe="[object Int16Array]",jSe="[object Int32Array]",KSe="[object Uint8Array]",QSe="[object Uint8ClampedArray]",ZSe="[object Uint16Array]",JSe="[object Uint32Array]",Bn={};Bn[WSe]=Bn[YSe]=Bn[qSe]=Bn[XSe]=Bn[jSe]=Bn[KSe]=Bn[QSe]=Bn[ZSe]=Bn[JSe]=!0;Bn[DSe]=Bn[NSe]=Bn[USe]=Bn[RSe]=Bn[HSe]=Bn[MSe]=Bn[ISe]=Bn[OSe]=Bn[PSe]=Bn[BSe]=Bn[FSe]=Bn[zSe]=Bn[GSe]=Bn[$Se]=Bn[VSe]=!1;o(eCe,"baseIsTypedArray");iX=eCe});function tCe(t){return function(e){return t(e)}}var Oo,bd=M(()=>{"use strict";o(tCe,"baseUnary");Oo=tCe});var sX,rv,rCe,$_,nCe,Po,nv=M(()=>{"use strict";A_();sX=typeof exports=="object"&&exports&&!exports.nodeType&&exports,rv=sX&&typeof module=="object"&&module&&!module.nodeType&&module,rCe=rv&&rv.exports===sX,$_=rCe&&X3.process,nCe=function(){try{var t=rv&&rv.require&&rv.require("util").types;return t||$_&&$_.binding&&$_.binding("util")}catch{}}(),Po=nCe});var oX,iCe,Nh,iv=M(()=>{"use strict";aX();bd();nv();oX=Po&&Po.isTypedArray,iCe=oX?Oo(oX):iX,Nh=iCe});function aCe(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var av,V_=M(()=>{"use strict";o(aCe,"safeGet");av=aCe});function lCe(t,e,r){var n=t[e];(!(oCe.call(t,e)&&Ro(n,r))||r===void 0&&!(e in t))&&hc(t,e,r)}var sCe,oCe,dc,em=M(()=>{"use strict";Wp();yd();sCe=Object.prototype,oCe=sCe.hasOwnProperty;o(lCe,"assignValue");dc=lCe});function cCe(t,e,r,n){var i=!r;r||(r={});for(var a=-1,s=e.length;++a{"use strict";em();Wp();o(cCe,"copyObject");Bo=cCe});function uCe(t,e){for(var r=-1,n=Array(t);++r{"use strict";o(uCe,"baseTimes");lX=uCe});function dCe(t,e){var r=typeof t;return e=e??hCe,!!e&&(r=="number"||r!="symbol"&&fCe.test(t))&&t>-1&&t%1==0&&t{"use strict";hCe=9007199254740991,fCe=/^(?:0|[1-9]\d*)$/;o(dCe,"isIndex");Rh=dCe});function gCe(t,e){var r=Mt(t),n=!r&&Al(t),i=!r&&!n&&_l(t),a=!r&&!n&&!i&&Nh(t),s=r||n||i||a,l=s?lX(t.length,String):[],u=l.length;for(var h in t)(e||mCe.call(t,h))&&!(s&&(h=="length"||i&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Rh(h,u)))&&l.push(h);return l}var pCe,mCe,l5,U_=M(()=>{"use strict";cX();Qp();Vn();Jp();sv();iv();pCe=Object.prototype,mCe=pCe.hasOwnProperty;o(gCe,"arrayLikeKeys");l5=gCe});function yCe(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var uX,hX=M(()=>{"use strict";o(yCe,"nativeKeysIn");uX=yCe});function bCe(t){if(!yn(t))return uX(t);var e=fc(t),r=[];for(var n in t)n=="constructor"&&(e||!xCe.call(t,n))||r.push(n);return r}var vCe,xCe,fX,dX=M(()=>{"use strict";Qs();Kp();hX();vCe=Object.prototype,xCe=vCe.hasOwnProperty;o(bCe,"baseKeysIn");fX=bCe});function wCe(t){return si(t)?l5(t,!0):fX(t)}var xs,Mh=M(()=>{"use strict";U_();dX();Io();o(wCe,"keysIn");xs=wCe});function TCe(t){return Bo(t,xs(t))}var pX,mX=M(()=>{"use strict";wd();Mh();o(TCe,"toPlainObject");pX=TCe});function kCe(t,e,r,n,i,a,s){var l=av(t,r),u=av(e,r),h=s.get(u);if(h){tv(t,r,h);return}var f=a?a(l,u,r+"",t,e,s):void 0,d=f===void 0;if(d){var p=Mt(u),m=!p&&_l(u),g=!p&&!m&&Nh(u);f=u,p||m||g?Mt(l)?f=l:xd(l)?f=r5(l):m?(d=!1,f=J3(u,!0)):g?(d=!1,f=t5(u,!0)):f=[]:rX(u)||Al(u)?(f=l,Al(l)?f=pX(l):(!yn(l)||Ei(l))&&(f=a5(u))):d=!1}d&&(s.set(u,f),i(f,u,n,a,s),s.delete(u)),tv(t,r,f)}var gX,yX=M(()=>{"use strict";M_();I_();P_();B_();z_();Qp();Vn();o5();Jp();jy();Qs();nX();iv();V_();mX();o(kCe,"baseMergeDeep");gX=kCe});function vX(t,e,r,n,i){t!==e&&Yp(e,function(a,s){if(i||(i=new uc),yn(a))gX(t,e,s,r,vX,n,i);else{var l=n?n(av(t,s),a,s+"",t,e,i):void 0;l===void 0&&(l=a),tv(t,s,l)}},xs)}var xX,bX=M(()=>{"use strict";ev();M_();Z3();yX();Qs();Mh();V_();o(vX,"baseMerge");xX=vX});function ECe(t){return t}var ta,Tu=M(()=>{"use strict";o(ECe,"identity");ta=ECe});function SCe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var wX,TX=M(()=>{"use strict";o(SCe,"apply");wX=SCe});function CCe(t,e,r){return e=kX(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,a=kX(n.length-e,0),s=Array(a);++i{"use strict";TX();kX=Math.max;o(CCe,"overRest");c5=CCe});function ACe(t){return function(){return t}}var bs,W_=M(()=>{"use strict";o(ACe,"constant");bs=ACe});var _Ce,EX,SX=M(()=>{"use strict";W_();R_();Tu();_Ce=Hp?function(t,e){return Hp(t,"toString",{configurable:!0,enumerable:!1,value:bs(e),writable:!0})}:ta,EX=_Ce});function RCe(t){var e=0,r=0;return function(){var n=NCe(),i=DCe-(n-r);if(r=n,i>0){if(++e>=LCe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var LCe,DCe,NCe,CX,AX=M(()=>{"use strict";LCe=800,DCe=16,NCe=Date.now;o(RCe,"shortOut");CX=RCe});var MCe,u5,Y_=M(()=>{"use strict";SX();AX();MCe=CX(EX),u5=MCe});function ICe(t,e){return u5(c5(t,e,ta),t+"")}var pc,tm=M(()=>{"use strict";Tu();H_();Y_();o(ICe,"baseRest");pc=ICe});function OCe(t,e,r){if(!yn(r))return!1;var n=typeof e;return(n=="number"?si(r)&&Rh(e,r.length):n=="string"&&e in r)?Ro(r[e],t):!1}var Zs,Td=M(()=>{"use strict";yd();Io();sv();Qs();o(OCe,"isIterateeCall");Zs=OCe});function PCe(t){return pc(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,s&&Zs(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++n{"use strict";tm();Td();o(PCe,"createAssigner");h5=PCe});var BCe,Ih,X_=M(()=>{"use strict";bX();q_();BCe=h5(function(t,e,r){xX(t,e,r)}),Ih=BCe});function Q_(t,e){if(!t)return e;let r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return FCe[r]??e}function VCe(t,e){let r=t.trim();if(r)return e.securityLevel!=="loose"?(0,DX.sanitizeUrl)(r):r}function MX(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function HCe(t){let e,r=0;t.forEach(i=>{r+=MX(i,e),e=i});let n=r/2;return Z_(t,n)}function WCe(t){return t.length===1?t[0]:HCe(t)}function qCe(t,e,r){let n=structuredClone(r);Y.info("our points",n),e!=="start_left"&&e!=="start_right"&&n.reverse();let i=25+t,a=Z_(n,i),s=10+t*.5,l=Math.atan2(n[0].y-a.y,n[0].x-a.x),u={x:0,y:0};return e==="start_left"?(u.x=Math.sin(l+Math.PI)*s+(n[0].x+a.x)/2,u.y=-Math.cos(l+Math.PI)*s+(n[0].y+a.y)/2):e==="end_right"?(u.x=Math.sin(l-Math.PI)*s+(n[0].x+a.x)/2-5,u.y=-Math.cos(l-Math.PI)*s+(n[0].y+a.y)/2-5):e==="end_left"?(u.x=Math.sin(l)*s+(n[0].x+a.x)/2-5,u.y=-Math.cos(l)*s+(n[0].y+a.y)/2-5):(u.x=Math.sin(l)*s+(n[0].x+a.x)/2,u.y=-Math.cos(l)*s+(n[0].y+a.y)/2),u}function J_(t){let e="",r="";for(let n of t)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}function XCe(t){let e="",r="0123456789abcdef",n=r.length;for(let i=0;i{"use strict";DX=ka(Fp(),1);mr();fr();KS();ht();$f();ip();N_();X_();Pb();K_="\u200B",FCe={curveBasis:Do,curveBasisClosed:I3,curveBasisOpen:O3,curveBumpX:s_,curveBumpY:o_,curveBundle:l_,curveCardinalClosed:u_,curveCardinalOpen:f_,curveCardinal:c_,curveCatmullRomClosed:m_,curveCatmullRomOpen:g_,curveCatmullRom:p_,curveLinear:Op,curveLinearClosed:G3,curveMonotoneX:v_,curveMonotoneY:x_,curveNatural:V3,curveStep:H3,curveStepAfter:w_,curveStepBefore:b_},zCe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,GCe=o(function(t,e){let r=NX(t,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let s=r.map(l=>l.args);op(s),n=Gn(n,[...s])}else n=r.args;if(!n)return;let i=np(t,e),a="config";return n[a]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[a],delete n[a]),n},"detectInit"),NX=o(function(t,e=null){try{let r=new RegExp(`[%]{2}(?![{]${zCe.source})(?=[}][%]{2}).* +`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),Y.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let n,i=[];for(;(n=zf.exec(t))!==null;)if(n.index===zf.lastIndex&&zf.lastIndex++,n&&!e||e&&n[1]?.match(e)||e&&n[2]?.match(e)){let a=n[1]?n[1]:n[2],s=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:a,args:s})}return i.length===0?{type:t,args:null}:i.length===1?i[0]:i}catch(r){return Y.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),RX=o(function(t){return t.replace(zf,"")},"removeDirectives"),$Ce=o(function(t,e){for(let[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray");o(Q_,"interpolateToCurve");o(VCe,"formatUrl");UCe=o((t,...e)=>{let r=t.split("."),n=r.length-1,i=r[n],a=window;for(let s=0;s{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),Z_=o((t,e)=>{let r,n=e;for(let i of t){if(r){let a=MX(i,r);if(a=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:_X((1-s)*r.x+s*i.x,5),y:_X((1-s)*r.y+s*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),YCe=o((t,e,r)=>{Y.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let i=Z_(e,25),a=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(s)*a+(e[0].x+i.x)/2,l.y=-Math.cos(s)*a+(e[0].y+i.y)/2,l},"calcCardinalityPosition");o(qCe,"calcTerminalLabelPosition");o(J_,"getStylesFromArray");LX=0,e9=o(()=>(LX++,"id-"+Math.random().toString(36).substr(2,12)+"-"+LX),"generateId");o(XCe,"makeRandomHex");t9=o(t=>XCe(t.length),"random"),jCe=o(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),KCe=o(function(t,e){let r=e.text.replace(je.lineBreakRegex," "),[,n]=Fo(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",n),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),e.class!==void 0&&i.attr("class",e.class);let a=i.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.attr("fill",e.fill),a.text(r),i},"drawSimpleText"),r9=Vp((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r),je.lineBreakRegex.test(t)))return t;let n=t.split(" ").filter(Boolean),i=[],a="";return n.forEach((s,l)=>{let u=Js(`${s} `,r),h=Js(a,r);if(u>e){let{hyphenatedStrings:p,remainingWord:m}=QCe(s,e,"-",r);i.push(a,...p),a=m}else h+u>=e?(i.push(a),a=s):a=[a,s].filter(Boolean).join(" ");l+1===n.length&&i.push(a)}),i.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),QCe=Vp((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let i=[...t],a=[],s="";return i.forEach((l,u)=>{let h=`${s}${l}`;if(Js(h,n)>=e){let d=u+1,p=i.length===d,m=`${h}${r}`;a.push(p?h:m),s=""}else s=h}),{hyphenatedStrings:a,remainingWord:s}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);o(d5,"calculateTextHeight");o(Js,"calculateTextWidth");n9=Vp((t,e)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};let[,a]=Fo(r),s=["sans-serif",n],l=t.split(je.lineBreakRegex),u=[],h=ze("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let f=h.append("svg");for(let p of s){let m=0,g={width:0,height:0,lineHeight:0};for(let y of l){let v=jCe();v.text=y||K_;let x=KCe(f,v).style("font-size",a).style("font-weight",i).style("font-family",p),b=(x._groups||x)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,b.width)),m=Math.round(b.height),g.height+=m,g.lineHeight=Math.round(Math.max(g.lineHeight,m))}u.push(g)}f.remove();let d=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),j_=class{constructor(e=!1,r){this.count=0;this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{o(this,"InitIDGenerator")}},ZCe=o(function(t){return f5=f5||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),f5.innerHTML=t,unescape(f5.textContent)},"entityDecode");o(i9,"isDetailedError");JCe=o((t,e,r,n)=>{if(!n)return;let i=t.node()?.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),Fo=o(t=>{if(typeof t=="number")return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");o(ws,"cleanAndMerge");Ut={assignWithDepth:Gn,wrapLabel:r9,calculateTextHeight:d5,calculateTextWidth:Js,calculateTextDimensions:n9,cleanAndMerge:ws,detectInit:GCe,detectDirective:NX,isSubstringInArray:$Ce,interpolateToCurve:Q_,calcLabelPosition:WCe,calcCardinalityPosition:YCe,calcTerminalLabelPosition:qCe,formatUrl:VCe,getStylesFromArray:J_,generateId:e9,random:t9,runFunc:UCe,entityDecode:ZCe,insertTitle:JCe,parseFontSize:Fo,InitIDGenerator:j_},IX=o(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){let n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"\uFB02\xB0\xB0"+n+"\xB6\xDF":"\uFB02\xB0"+n+"\xB6\xDF"}),e},"encodeEntities"),Ca=o(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),p5=o((t,e,{counter:r=0,prefix:n,suffix:i})=>`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId");o(Fn,"handleUndefinedAttr")});function Ll(t,e,r,n,i){if(!e[t].width)if(r)e[t].text=r9(e[t].text,i,n),e[t].textLines=e[t].text.split(je.lineBreakRegex).length,e[t].width=i,e[t].height=d5(e[t].text,n);else{let a=e[t].text.split(je.lineBreakRegex);e[t].textLines=a.length;let s=0;e[t].height=0,e[t].width=0;for(let l of a)e[t].width=Math.max(Js(l,n),e[t].width),s=d5(l,n),e[t].height=e[t].height+s}}function zX(t,e,r,n,i){let a=new v5(i);a.data.widthLimit=r.data.widthLimit/Math.min(a9,n.length);for(let[s,l]of n.entries()){let u=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=u,u=l.image.Y+l.image.height);let h=l.wrap&&Gt.wrap,f=m5(Gt);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",Ll("label",l,h,f,a.data.widthLimit),l.label.Y=u+8,u=l.label.Y+l.label.height,l.type&&l.type.text!==""){l.type.text="["+l.type.text+"]";let g=m5(Gt);Ll("type",l,h,g,a.data.widthLimit),l.type.Y=u+5,u=l.type.Y+l.type.height}if(l.descr&&l.descr.text!==""){let g=m5(Gt);g.fontSize=g.fontSize-2,Ll("descr",l,h,g,a.data.widthLimit),l.descr.Y=u+20,u=l.descr.Y+l.descr.height}if(s==0||s%a9===0){let g=r.data.startx+Gt.diagramMarginX,y=r.data.stopy+Gt.diagramMarginY+u;a.setData(g,g,y,y)}else{let g=a.data.stopx!==a.data.startx?a.data.stopx+Gt.diagramMarginX:a.data.startx,y=a.data.starty;a.setData(g,g,y,y)}a.name=l.alias;let d=i.db.getC4ShapeArray(l.alias),p=i.db.getC4ShapeKeys(l.alias);p.length>0&&FX(a,t,d,p),e=l.alias;let m=i.db.getBoundarys(e);m.length>0&&zX(t,e,a,m,i),l.alias!=="global"&&BX(t,l,a),r.data.stopy=Math.max(a.data.stopy+Gt.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(a.data.stopx+Gt.c4ShapeMargin,r.data.stopx),g5=Math.max(g5,r.data.stopx),y5=Math.max(y5,r.data.stopy)}}var g5,y5,PX,a9,Gt,v5,s9,ov,m5,e7e,BX,FX,Ts,OX,t7e,r7e,n7e,o9,GX=M(()=>{"use strict";mr();OY();ht();PS();fr();l7();Vt();ip();hr();ni();g5=0,y5=0,PX=4,a9=2;I1.yy=oy;Gt={},v5=class{static{o(this,"Bounds")}constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,s9(e.db.getConfig())}setData(e,r,n,i){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=r,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=i}updateVal(e,r,n,i){e[r]===void 0?e[r]=n:e[r]=i(n,e[r])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let r=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+e.margin:this.nextData.stopx+e.margin*2,n=r+e.width,i=this.nextData.starty+e.margin*2,a=i+e.height;(r>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>PX)&&(r=this.nextData.startx+e.margin+Gt.nextLinePaddingX,i=this.nextData.stopy+e.margin*2,this.nextData.stopx=n=r+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=a=i+e.height,this.nextData.cnt=1),e.x=r,e.y=i,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",a,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",a,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},s9(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},s9=o(function(t){Gn(Gt,t),t.fontFamily&&(Gt.personFontFamily=Gt.systemFontFamily=Gt.messageFontFamily=t.fontFamily),t.fontSize&&(Gt.personFontSize=Gt.systemFontSize=Gt.messageFontSize=t.fontSize),t.fontWeight&&(Gt.personFontWeight=Gt.systemFontWeight=Gt.messageFontWeight=t.fontWeight)},"setConf"),ov=o((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"c4ShapeFont"),m5=o(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),e7e=o(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");o(Ll,"calcC4ShapeTextWH");BX=o(function(t,e,r){e.x=r.data.startx,e.y=r.data.starty,e.width=r.data.stopx-r.data.startx,e.height=r.data.stopy-r.data.starty,e.label.y=Gt.c4ShapeMargin-35;let n=e.wrap&&Gt.wrap,i=m5(Gt);i.fontSize=i.fontSize+2,i.fontWeight="bold";let a=Js(e.label.text,i);Ll("label",e,n,i,a),Cl.drawBoundary(t,e,Gt)},"drawBoundary"),FX=o(function(t,e,r,n){let i=0;for(let a of n){i=0;let s=r[a],l=ov(Gt,s.typeC4Shape.text);switch(l.fontSize=l.fontSize-2,s.typeC4Shape.width=Js("\xAB"+s.typeC4Shape.text+"\xBB",l),s.typeC4Shape.height=l.fontSize+2,s.typeC4Shape.Y=Gt.c4ShapePadding,i=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height);let u=s.wrap&&Gt.wrap,h=Gt.width-Gt.c4ShapePadding*2,f=ov(Gt,s.typeC4Shape.text);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",Ll("label",s,u,f,h),s.label.Y=i+8,i=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let m=ov(Gt,s.typeC4Shape.text);Ll("type",s,u,m,h),s.type.Y=i+5,i=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let m=ov(Gt,s.techn.text);Ll("techn",s,u,m,h),s.techn.Y=i+5,i=s.techn.Y+s.techn.height}let d=i,p=s.label.width;if(s.descr&&s.descr.text!==""){let m=ov(Gt,s.typeC4Shape.text);Ll("descr",s,u,m,h),s.descr.Y=i+20,i=s.descr.Y+s.descr.height,p=Math.max(s.label.width,s.descr.width),d=i-s.descr.textLines*5}p=p+Gt.c4ShapePadding,s.width=Math.max(s.width||Gt.width,p,Gt.width),s.height=Math.max(s.height||Gt.height,d,Gt.height),s.margin=s.margin||Gt.c4ShapeMargin,t.insert(s),Cl.drawC4Shape(e,s,Gt)}t.bumpLastMargin(Gt.c4ShapeMargin)},"drawC4ShapeArray"),Ts=class{static{o(this,"Point")}constructor(e,r){this.x=e,this.y=r}},OX=o(function(t,e){let r=t.x,n=t.y,i=e.x,a=e.y,s=r+t.width/2,l=n+t.height/2,u=Math.abs(r-i),h=Math.abs(n-a),f=h/u,d=t.height/t.width,p=null;return n==a&&ri?p=new Ts(r,l):r==i&&na&&(p=new Ts(s,n)),r>i&&n=f?p=new Ts(r,l+f*t.width/2):p=new Ts(s-u/h*t.height/2,n+t.height):r=f?p=new Ts(r+t.width,l+f*t.width/2):p=new Ts(s+u/h*t.height/2,n+t.height):ra?d>=f?p=new Ts(r+t.width,l-f*t.width/2):p=new Ts(s+t.height/2*u/h,n):r>i&&n>a&&(d>=f?p=new Ts(r,l-t.width/2*f):p=new Ts(s-t.height/2*u/h,n)),p},"getIntersectPoint"),t7e=o(function(t,e){let r={x:0,y:0};r.x=e.x+e.width/2,r.y=e.y+e.height/2;let n=OX(t,r);r.x=t.x+t.width/2,r.y=t.y+t.height/2;let i=OX(e,r);return{startPoint:n,endPoint:i}},"getIntersectPoints"),r7e=o(function(t,e,r,n){let i=0;for(let a of e){i=i+1;let s=a.wrap&&Gt.wrap,l=e7e(Gt);n.db.getC4Type()==="C4Dynamic"&&(a.label.text=i+": "+a.label.text);let h=Js(a.label.text,l);Ll("label",a,s,l,h),a.techn&&a.techn.text!==""&&(h=Js(a.techn.text,l),Ll("techn",a,s,l,h)),a.descr&&a.descr.text!==""&&(h=Js(a.descr.text,l),Ll("descr",a,s,l,h));let f=r(a.from),d=r(a.to),p=t7e(f,d);a.startPoint=p.startPoint,a.endPoint=p.endPoint}Cl.drawRels(t,e,Gt)},"drawRels");o(zX,"drawInsideBoundary");n7e=o(function(t,e,r,n){Gt=de().c4;let i=de().securityLevel,a;i==="sandbox"&&(a=ze("#i"+e));let s=i==="sandbox"?ze(a.nodes()[0].contentDocument.body):ze("body"),l=n.db;n.db.setWrap(Gt.wrap),PX=l.getC4ShapeInRow(),a9=l.getC4BoundaryInRow(),Y.debug(`C:${JSON.stringify(Gt,null,2)}`);let u=i==="sandbox"?s.select(`[id="${e}"]`):ze(`[id="${e}"]`);Cl.insertComputerIcon(u),Cl.insertDatabaseIcon(u),Cl.insertClockIcon(u);let h=new v5(n);h.setData(Gt.diagramMarginX,Gt.diagramMarginX,Gt.diagramMarginY,Gt.diagramMarginY),h.data.widthLimit=screen.availWidth,g5=Gt.diagramMarginX,y5=Gt.diagramMarginY;let f=n.db.getTitle(),d=n.db.getBoundarys("");zX(u,"",h,d,n),Cl.insertArrowHead(u),Cl.insertArrowEnd(u),Cl.insertArrowCrossHead(u),Cl.insertArrowFilledHead(u),r7e(u,n.db.getRels(),n.db.getC4Shape,n),h.data.stopx=g5,h.data.stopy=y5;let p=h.data,g=p.stopy-p.starty+2*Gt.diagramMarginY,v=p.stopx-p.startx+2*Gt.diagramMarginX;f&&u.append("text").text(f).attr("x",(p.stopx-p.startx)/2-4*Gt.diagramMarginX).attr("y",p.starty+Gt.diagramMarginY),Zr(u,g,v,Gt.useMaxWidth);let x=f?60:0;u.attr("viewBox",p.startx-Gt.diagramMarginX+" -"+(Gt.diagramMarginY+x)+" "+v+" "+(g+x)),Y.debug("models:",p)},"draw"),o9={drawPersonOrSystemArray:FX,drawBoundary:BX,setConf:s9,draw:n7e}});var i7e,$X,VX=M(()=>{"use strict";i7e=o(t=>`.person { + stroke: ${t.personBorder}; + fill: ${t.personBkg}; + } +`,"getStyles"),$X=i7e});var UX={};vr(UX,{diagram:()=>a7e});var a7e,HX=M(()=>{"use strict";PS();l7();GX();VX();a7e={parser:QF,db:oy,renderer:o9,styles:$X,init:o(({c4:t,wrap:e})=>{o9.setConf(t),oy.setWrap(e)},"init")}});function u9(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function ZX(t){Ed=t}function eo(t,e){if(e){if(JX.test(t))return t.replace(c7e,qX)}else if(ej.test(t))return t.replace(u7e,qX);return t}function d7e(t){return t.replace(f7e,(e,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}function fn(t,e){let r=typeof t=="string"?t:t.source;e=e||"";let n={replace:o((i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(p7e,"$1"),r=r.replace(i,s),n},"replace"),getRegex:o(()=>new RegExp(r,e),"getRegex")};return n}function XX(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}function jX(t,e){let r=t.replace(/\|/g,(a,s,l)=>{let u=!1,h=s;for(;--h>=0&&l[h]==="\\";)u=!u;return u?"|":" |"}),n=r.split(/ \|/),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length{let a=i.match(/^\s+/);if(a===null)return i;let[s]=a;return s.length>=n.length?i.slice(n.length):i}).join(` +`)}function en(t,e){return kd.parse(t,e)}var Ed,JX,c7e,ej,u7e,h7e,qX,f7e,p7e,uv,nm,y7e,v7e,x7e,fv,b7e,tj,rj,h9,w7e,f9,T7e,k7e,w5,d9,E7e,nj,S7e,p9,QX,C7e,A7e,ij,_7e,aj,L7e,dv,D7e,N7e,R7e,M7e,I7e,O7e,P7e,B7e,F7e,b5,z7e,sj,oj,G7e,m9,$7e,l9,V7e,x5,cv,ku,im,hv,Eu,rm,c9,kd,u6t,h6t,f6t,d6t,p6t,m6t,g6t,lj=M(()=>{"use strict";o(u9,"_getDefaults");Ed=u9();o(ZX,"changeDefaults");JX=/[&<>"']/,c7e=new RegExp(JX.source,"g"),ej=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,u7e=new RegExp(ej.source,"g"),h7e={"&":"&","<":"<",">":">",'"':""","'":"'"},qX=o(t=>h7e[t],"getEscapeReplacement");o(eo,"escape$1");f7e=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;o(d7e,"unescape");p7e=/(^|[^\[])\^/g;o(fn,"edit");o(XX,"cleanUrl");uv={exec:o(()=>null,"exec")};o(jX,"splitCells");o(lv,"rtrim");o(m7e,"findClosingBracket");o(KX,"outputLink");o(g7e,"indentCodeCompensation");nm=class{static{o(this,"_Tokenizer")}options;rules;lexer;constructor(e){this.options=e||Ed}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:lv(n,` +`)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let n=r[0],i=g7e(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(/#$/.test(n)){let i=lv(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:lv(r[0],` +`)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let n=lv(r[0],` +`).split(` +`),i="",a="",s=[];for(;n.length>0;){let l=!1,u=[],h;for(h=0;h/.test(n[h]))u.push(n[h]),l=!0;else if(!l)u.push(n[h]);else break;n=n.slice(h);let f=u.join(` +`),d=f.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` + $1`).replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i} +${f}`:f,a=a?`${a} +${d}`:d;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,s,!0),this.lexer.state.top=p,n.length===0)break;let m=s[s.length-1];if(m?.type==="code")break;if(m?.type==="blockquote"){let g=m,y=g.raw+` +`+n.join(` +`),v=this.blockquote(y);s[s.length-1]=v,i=i.substring(0,i.length-g.raw.length)+v.raw,a=a.substring(0,a.length-g.text.length)+v.text;break}else if(m?.type==="list"){let g=m,y=g.raw+` +`+n.join(` +`),v=this.list(y);s[s.length-1]=v,i=i.substring(0,i.length-m.raw.length)+v.raw,a=a.substring(0,a.length-g.raw.length)+v.raw,n=y.substring(s[s.length-1].raw.length).split(` +`);continue}}return{type:"blockquote",raw:i,tokens:s,text:a}}}list(e){let r=this.rules.block.list.exec(e);if(r){let n=r[1].trim(),i=n.length>1,a={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let s=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),l=!1;for(;e;){let u=!1,h="",f="";if(!(r=s.exec(e))||this.rules.block.hr.test(e))break;h=r[0],e=e.substring(h.length);let d=r[2].split(` +`,1)[0].replace(/^\t+/,x=>" ".repeat(3*x.length)),p=e.split(` +`,1)[0],m=!d.trim(),g=0;if(this.options.pedantic?(g=2,f=d.trimStart()):m?g=r[1].length+1:(g=r[2].search(/[^ ]/),g=g>4?1:g,f=d.slice(g),g+=r[1].length),m&&/^ *$/.test(p)&&(h+=p+` +`,e=e.substring(p.length+1),u=!0),!u){let x=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),b=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),w=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),_=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;e;){let T=e.split(` +`,1)[0];if(p=T,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),w.test(p)||_.test(p)||x.test(p)||b.test(e))break;if(p.search(/[^ ]/)>=g||!p.trim())f+=` +`+p.slice(g);else{if(m||d.search(/[^ ]/)>=4||w.test(d)||_.test(d)||b.test(d))break;f+=` +`+p}!m&&!p.trim()&&(m=!0),h+=T+` +`,e=e.substring(T.length+1),d=p.slice(g)}}a.loose||(l?a.loose=!0:/\n *\n *$/.test(h)&&(l=!0));let y=null,v;this.options.gfm&&(y=/^\[[ xX]\] /.exec(f),y&&(v=y[0]!=="[ ] ",f=f.replace(/^\[[ xX]\] +/,""))),a.items.push({type:"list_item",raw:h,task:!!y,checked:v,loose:!1,text:f,tokens:[]}),a.raw+=h}a.items[a.items.length-1].raw=a.items[a.items.length-1].raw.trimEnd(),a.items[a.items.length-1].text=a.items[a.items.length-1].text.trimEnd(),a.raw=a.raw.trimEnd();for(let u=0;ud.type==="space"),f=h.length>0&&h.some(d=>/\n.*\n/.test(d.raw));a.loose=f}if(a.loose)for(let u=0;u$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:a}}}table(e){let r=this.rules.block.table.exec(e);if(!r||!/[:|]/.test(r[2]))return;let n=jX(r[1]),i=r[2].replace(/^\||\| *$/g,"").split("|"),a=r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(` +`):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let l of i)/^ *-+: *$/.test(l)?s.align.push("right"):/^ *:-+: *$/.test(l)?s.align.push("center"):/^ *:-+ *$/.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l({text:u,tokens:this.lexer.inline(u),header:!1,align:s.align[h]})));return s}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){let r=this.rules.block.paragraph.exec(e);if(r){let n=r[1].charAt(r[1].length-1)===` +`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:eo(r[1])}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&/^/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let n=r[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;let s=lv(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=m7e(r[2],"()");if(s>-1){let u=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,u).trim(),r[3]=""}}let i=r[2],a="";if(this.options.pedantic){let s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);s&&(i=s[1],a=s[3])}else a=r[3]?r[3].slice(1,-1):"";return i=i.trim(),/^$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),KX(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(/\s+/g," "),a=r[i.toLowerCase()];if(!a){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return KX(n,a,n[0],this.lexer)}}emStrong(e,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let s=[...i[0]].length-1,l,u,h=s,f=0,d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*e.length+s);(i=d.exec(r))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(u=[...l].length,i[3]||i[4]){h+=u;continue}else if((i[5]||i[6])&&s%3&&!((s+u)%3)){f+=u;continue}if(h-=u,h>0)continue;u=Math.min(u,u+h+f);let p=[...i[0]][0].length,m=e.slice(0,s+i.index+p+u);if(Math.min(s,u)%2){let y=m.slice(1,-1);return{type:"em",raw:m,text:y,tokens:this.lexer.inlineTokens(y)}}let g=m.slice(2,-2);return{type:"strong",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(/\n/g," "),i=/[^ ]/.test(n),a=/^ /.test(n)&&/ $/.test(n);return i&&a&&(n=n.substring(1,n.length-1)),n=eo(n,!0),{type:"codespan",raw:r[0],text:n}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let n,i;return r[2]==="@"?(n=eo(r[1]),i="mailto:"+n):(n=eo(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let n,i;if(r[2]==="@")n=eo(r[0]),i="mailto:"+n;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(a!==r[0]);n=eo(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let n;return this.lexer.state.inRawBlock?n=r[0]:n=eo(r[0]),{type:"text",raw:r[0],text:n}}}},y7e=/^(?: *(?:\n|$))+/,v7e=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,x7e=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,fv=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,b7e=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,tj=/(?:[*+-]|\d{1,9}[.)])/,rj=fn(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,tj).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),h9=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,w7e=/^[^\n]+/,f9=/(?!\s*\])(?:\\.|[^\[\]\\])+/,T7e=fn(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",f9).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),k7e=fn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,tj).getRegex(),w5="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",d9=/|$))/,E7e=fn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",d9).replace("tag",w5).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),nj=fn(h9).replace("hr",fv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",w5).getRegex(),S7e=fn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",nj).getRegex(),p9={blockquote:S7e,code:v7e,def:T7e,fences:x7e,heading:b7e,hr:fv,html:E7e,lheading:rj,list:k7e,newline:y7e,paragraph:nj,table:uv,text:w7e},QX=fn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",fv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",w5).getRegex(),C7e={...p9,table:QX,paragraph:fn(h9).replace("hr",fv).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",QX).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",w5).getRegex()},A7e={...p9,html:fn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",d9).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:uv,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:fn(h9).replace("hr",fv).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",rj).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ij=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,_7e=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,aj=/^( {2,}|\\)\n(?!\s*$)/,L7e=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,R7e=fn(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,dv).getRegex(),M7e=fn("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,dv).getRegex(),I7e=fn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,dv).getRegex(),O7e=fn(/\\([punct])/,"gu").replace(/punct/g,dv).getRegex(),P7e=fn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),B7e=fn(d9).replace("(?:-->|$)","-->").getRegex(),F7e=fn("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",B7e).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),b5=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,z7e=fn(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",b5).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),sj=fn(/^!?\[(label)\]\[(ref)\]/).replace("label",b5).replace("ref",f9).getRegex(),oj=fn(/^!?\[(ref)\](?:\[\])?/).replace("ref",f9).getRegex(),G7e=fn("reflink|nolink(?!\\()","g").replace("reflink",sj).replace("nolink",oj).getRegex(),m9={_backpedal:uv,anyPunctuation:O7e,autolink:P7e,blockSkip:N7e,br:aj,code:_7e,del:uv,emStrongLDelim:R7e,emStrongRDelimAst:M7e,emStrongRDelimUnd:I7e,escape:ij,link:z7e,nolink:oj,punctuation:D7e,reflink:sj,reflinkSearch:G7e,tag:F7e,text:L7e,url:uv},$7e={...m9,link:fn(/^!?\[(label)\]\((.*?)\)/).replace("label",b5).getRegex(),reflink:fn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",b5).getRegex()},l9={...m9,escape:fn(ij).replace("])","~|])").getRegex(),url:fn(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\u+" ".repeat(h.length));let i,a,s;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(i=l.call({lexer:this},e,r))?(e=e.substring(i.raw.length),r.push(i),!0):!1))){if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length),i.raw.length===1&&r.length>0?r[r.length-1].raw+=` +`:r.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length),a=r[r.length-1],a&&(a.type==="paragraph"||a.type==="text")?(a.raw+=` +`+i.raw,a.text+=` +`+i.text,this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length),a=r[r.length-1],a&&(a.type==="paragraph"||a.type==="text")?(a.raw+=` +`+i.raw,a.text+=` +`+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=a.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),r.push(i);continue}if(s=e,this.options.extensions&&this.options.extensions.startBlock){let l=1/0,u=e.slice(1),h;this.options.extensions.startBlock.forEach(f=>{h=f.call({lexer:this},u),typeof h=="number"&&h>=0&&(l=Math.min(l,h))}),l<1/0&&l>=0&&(s=e.substring(0,l+1))}if(this.state.top&&(i=this.tokenizer.paragraph(s))){a=r[r.length-1],n&&a?.type==="paragraph"?(a.raw+=` +`+i.raw,a.text+=` +`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i),n=s.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length),a=r[r.length-1],a&&a.type==="text"?(a.raw+=` +`+i.raw,a.text+=` +`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let n,i,a,s=e,l,u,h;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)f.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(u||(h=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(n=f.call({lexer:this},e,r))?(e=e.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(e,s,h)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),r.push(n);continue}if(a=e,this.options.extensions&&this.options.extensions.startInline){let f=1/0,d=e.slice(1),p;this.options.extensions.startInline.forEach(m=>{p=m.call({lexer:this},d),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),f<1/0&&f>=0&&(a=e.substring(0,f+1))}if(n=this.tokenizer.inlineText(a)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(h=n.raw.slice(-1)),u=!0,i=r[r.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(e){let f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return r}},im=class{static{o(this,"_Renderer")}options;parser;constructor(e){this.options=e||Ed}space(e){return""}code({text:e,lang:r,escaped:n}){let i=(r||"").match(/^\S*/)?.[0],a=e.replace(/\n$/,"")+` +`;return i?'
'+(n?a:eo(a,!0))+`
+`:"
"+(n?a:eo(a,!0))+`
+`}blockquote({tokens:e}){return`
+${this.parser.parse(e)}
+`}html({text:e}){return e}heading({tokens:e,depth:r}){return`${this.parser.parseInline(e)} +`}hr(e){return`
+`}list(e){let r=e.ordered,n=e.start,i="";for(let l=0;l +`+i+" +`}listitem(e){let r="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&e.tokens[0].type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" "}):r+=n+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`
  • ${r}
  • +`}checkbox({checked:e}){return"'}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

    +`}table(e){let r="",n="";for(let a=0;a${i}`),` + +`+r+` +`+i+`
    +`}tablerow({text:e}){return` +${e} +`}tablecell(e){let r=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+r+` +`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${e}`}br(e){return"
    "}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:r,tokens:n}){let i=this.parser.parseInline(n),a=XX(e);if(a===null)return i;e=a;let s='
    ",s}image({href:e,title:r,text:n}){let i=XX(e);if(i===null)return n;e=i;let a=`${n}{let l=a[s].flat(1/0);n=n.concat(this.walkTokens(l,r))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,r)))}}return n}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...l){let u=a.renderer.apply(this,l);return u===!1&&(u=s.apply(this,l)),u}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){let a=this.defaults.renderer||new im(this.defaults);for(let s in n.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let l=s,u=n.renderer[l];n.useNewRenderer||(u=this.#t(u,l,a));let h=a[l];a[l]=(...f)=>{let d=u.apply(a,f);return d===!1&&(d=h.apply(a,f)),d||""}}i.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new nm(this.defaults);for(let s in n.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let l=s,u=n.tokenizer[l],h=a[l];a[l]=(...f)=>{let d=u.apply(a,f);return d===!1&&(d=h.apply(a,f)),d}}i.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new rm;for(let s in n.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(s==="options")continue;let l=s,u=n.hooks[l],h=a[l];rm.passThroughHooks.has(s)?a[l]=f=>{if(this.defaults.async)return Promise.resolve(u.call(a,f)).then(p=>h.call(a,p));let d=u.call(a,f);return h.call(a,d)}:a[l]=(...f)=>{let d=u.apply(a,f);return d===!1&&(d=h.apply(a,f)),d}}i.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,s=n.walkTokens;i.walkTokens=function(l){let u=[];return u.push(s.call(this,l)),a&&(u=u.concat(a.call(this,l))),u}}this.defaults={...this.defaults,...i}}),this}#t(e,r,n){switch(r){case"heading":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,n.parser.parseInline(i.tokens),i.depth,d7e(n.parser.parseInline(i.tokens,n.parser.textRenderer)))};case"code":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,i.text,i.lang,!!i.escaped)};case"table":return function(i){if(!i.type||i.type!==r)return e.apply(this,arguments);let a="",s="";for(let u=0;u0&&f.tokens[0].type==="paragraph"?(f.tokens[0].text=g+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&f.tokens[0].tokens[0].type==="text"&&(f.tokens[0].tokens[0].text=g+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:g+" "}):m+=g+" "}m+=this.parser.parse(f.tokens,l),u+=this.listitem({type:"list_item",raw:m,text:m,task:p,checked:!!d,loose:l,tokens:f.tokens})}return e.call(this,u,a,s)};case"html":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,i.text,i.block)};case"paragraph":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,this.parser.parseInline(i.tokens))};case"escape":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,i.text)};case"link":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,i.href,i.title,this.parser.parseInline(i.tokens))};case"image":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,i.href,i.title,i.text)};case"strong":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,this.parser.parseInline(i.tokens))};case"em":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,this.parser.parseInline(i.tokens))};case"codespan":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,i.text)};case"del":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,this.parser.parseInline(i.tokens))};case"text":return function(i){return!i.type||i.type!==r?e.apply(this,arguments):e.call(this,i.text)}}return e}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return ku.lex(e,r??this.defaults)}parser(e,r){return Eu.parse(e,r??this.defaults)}#e(e,r){return(n,i)=>{let a={...i},s={...this.defaults,...a};this.defaults.async===!0&&a.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);let l=this.#r(!!s.silent,!!s.async);if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(n):n).then(u=>e(u,s)).then(u=>s.hooks?s.hooks.processAllTokens(u):u).then(u=>s.walkTokens?Promise.all(this.walkTokens(u,s.walkTokens)).then(()=>u):u).then(u=>r(u,s)).then(u=>s.hooks?s.hooks.postprocess(u):u).catch(l);try{s.hooks&&(n=s.hooks.preprocess(n));let u=e(n,s);s.hooks&&(u=s.hooks.processAllTokens(u)),s.walkTokens&&this.walkTokens(u,s.walkTokens);let h=r(u,s);return s.hooks&&(h=s.hooks.postprocess(h)),h}catch(u){return l(u)}}}#r(e,r){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,e){let i="

    An error occurred:

    "+eo(n.message+"",!0)+"
    ";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},kd=new c9;o(en,"marked");en.options=en.setOptions=function(t){return kd.setOptions(t),en.defaults=kd.defaults,ZX(en.defaults),en};en.getDefaults=u9;en.defaults=Ed;en.use=function(...t){return kd.use(...t),en.defaults=kd.defaults,ZX(en.defaults),en};en.walkTokens=function(t,e){return kd.walkTokens(t,e)};en.parseInline=kd.parseInline;en.Parser=Eu;en.parser=Eu.parse;en.Renderer=im;en.TextRenderer=hv;en.Lexer=ku;en.lexer=ku.lex;en.Tokenizer=nm;en.Hooks=rm;en.parse=en;u6t=en.options,h6t=en.setOptions,f6t=en.use,d6t=en.walkTokens,p6t=en.parseInline,m6t=Eu.parse,g6t=ku.lex});function U7e(t,{markdownAutoWrap:e}){let n=t.replace(//g,` +`).replace(/\n{2,}/g,` +`),i=Ib(n);return e===!1?i.replace(/ /g," "):i}function cj(t,e={}){let r=U7e(t,e),n=en.lexer(r),i=[[]],a=0;function s(l,u="normal"){l.type==="text"?l.text.split(` +`).forEach((f,d)=>{d!==0&&(a++,i.push([])),f.split(" ").forEach(p=>{p=p.replace(/'/g,"'"),p&&i[a].push({content:p,type:u})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(h=>{s(h,l.type)}):l.type==="html"&&i[a].push({content:l.text,type:"normal"})}return o(s,"processNode"),n.forEach(l=>{l.type==="paragraph"?l.tokens?.forEach(u=>{s(u)}):l.type==="html"&&i[a].push({content:l.text,type:"normal"})}),i}function uj(t,{markdownAutoWrap:e}={}){let r=en.lexer(t);function n(i){return i.type==="text"?e===!1?i.text.replace(/\n */g,"
    ").replace(/ /g," "):i.text.replace(/\n */g,"
    "):i.type==="strong"?`${i.tokens?.map(n).join("")}`:i.type==="em"?`${i.tokens?.map(n).join("")}`:i.type==="paragraph"?`

    ${i.tokens?.map(n).join("")}

    `:i.type==="space"?"":i.type==="html"?`${i.text}`:i.type==="escape"?i.text:`Unsupported markdown: ${i.type}`}return o(n,"output"),r.map(n).join("")}var hj=M(()=>{"use strict";lj();MS();o(U7e,"preprocessMarkdown");o(cj,"markdownToLines");o(uj,"markdownToHTML")});function H7e(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}function W7e(t,e){let r=H7e(e.content);return fj(t,[],r,e.type)}function fj(t,e,r,n){if(r.length===0)return[{content:e.join(""),type:n},{content:"",type:n}];let[i,...a]=r,s=[...e,i];return t([{content:s.join(""),type:n}])?fj(t,s,a,n):(e.length===0&&i&&(e.push(i),r.shift()),[{content:e.join(""),type:n},{content:r.join(""),type:n}])}function dj(t,e){if(t.some(({content:r})=>r.includes(` +`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return g9(t,e)}function g9(t,e,r=[],n=[]){if(t.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let i="";t[0].content===" "&&(i=" ",t.shift());let a=t.shift()??{content:" ",type:"normal"},s=[...n];if(i!==""&&s.push({content:i,type:"normal"}),s.push(a),e(s))return g9(t,e,r,s);if(n.length>0)r.push(n),t.unshift(a);else if(a.content){let[l,u]=W7e(e,a);r.push([l]),u.content&&t.unshift(u)}return g9(t,e,r)}var pj=M(()=>{"use strict";o(H7e,"splitTextToChars");o(W7e,"splitWordToFitWidth");o(fj,"splitWordToFitWidthRecursion");o(dj,"splitLineToFitWidth");o(g9,"splitLineToFitWidthRecursion")});function mj(t,e){e&&t.attr("style",e)}async function Y7e(t,e,r,n,i=!1){let a=t.append("foreignObject");a.attr("width",`${10*r}px`),a.attr("height",`${10*r}px`);let s=a.append("xhtml:div"),l=e.label;e.label&&pi(e.label)&&(l=await hh(e.label.replace(je.lineBreakRegex,` +`),de()));let u=e.isNode?"nodeLabel":"edgeLabel",h=s.append("span");h.html(l),mj(h,e.labelStyle),h.attr("class",`${u} ${n}`),mj(s,e.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",r+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&s.attr("class","labelBkg");let f=s.node().getBoundingClientRect();return f.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),f=s.node().getBoundingClientRect()),a.node()}function y9(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function q7e(t,e,r){let n=t.append("text"),i=y9(n,1,e);v9(i,r);let a=i.node().getComputedTextLength();return n.remove(),a}function gj(t,e,r){let n=t.append("text"),i=y9(n,1,e);v9(i,[{content:r,type:"normal"}]);let a=i.node()?.getBoundingClientRect();return a&&n.remove(),a}function X7e(t,e,r,n=!1){let a=e.append("g"),s=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1"),u=0;for(let h of r){let f=o(p=>q7e(a,1.1,p)<=t,"checkWidth"),d=f(h)?[h]:dj(h,f);for(let p of d){let m=y9(l,u,1.1);v9(m,p),u++}}if(n){let h=l.node().getBBox(),f=2;return s.attr("x",h.x-f).attr("y",h.y-f).attr("width",h.width+2*f).attr("height",h.height+2*f),a.node()}else return l.node()}function v9(t,e){t.text(""),e.forEach((r,n)=>{let i=t.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(r.content):i.text(" "+r.content)})}function x9(t){return t.replace(/fa[bklrs]?:fa-[\w-]+/g,e=>``)}var Si,Dl=M(()=>{"use strict";Vt();fr();mr();ht();hj();hr();pj();o(mj,"applyStyle");o(Y7e,"addHtmlSpan");o(y9,"createTspan");o(q7e,"computeWidthOfText");o(gj,"computeDimensionOfText");o(X7e,"createFormattedText");o(v9,"updateTextContentAndStyles");o(x9,"replaceIconSubstring");Si=o(async(t,e="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,isNode:s=!0,width:l=200,addSvgBackground:u=!1}={},h)=>{if(Y.debug("XYZ createText",e,r,n,i,a,s,"addSvgBackground: ",u),a){let f=uj(e,h),d=x9(Ca(f)),p=e.replace(/\\\\/g,"\\"),m={isNode:s,label:pi(e)?p:d,labelStyle:r.replace("fill:","color:")};return await Y7e(t,m,l,i,u)}else{let f=e.replace(//g,"
    "),d=cj(f.replace("
    ","
    "),h),p=X7e(l,t,d,e?u:!1);if(s){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ze(p).attr("style",m)}else{let m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");ze(p).select("rect").attr("style",m.replace(/background:/g,"fill:"));let g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ze(p).select("text").attr("style",g)}return p}},"createText")});function Wt(t){let e=t.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return e.push("Z"),e.join(" ")}function zo(t,e,r,n,i,a){let s=[],u=r-t,h=n-e,f=u/a,d=2*Math.PI/f,p=e+h/2;for(let m=0;m<=50;m++){let g=m/50,y=t+g*u,v=p+i*Math.sin(d*(y-t));s.push({x:y,y:v})}return s}function k5(t,e,r,n,i,a){let s=[],l=i*Math.PI/180,f=(a*Math.PI/180-l)/(n-1);for(let d=0;d{"use strict";Dl();Vt();mr();hs();fr();hr();ot=o(async(t,e,r)=>{let n,i=e.useHtmlLabels||xr(de()?.htmlLabels);r?n=r:n="node default";let a=t.insert("g").attr("class",n).attr("id",e.domId||e.id),s=a.insert("g").attr("class","label").attr("style",Fn(e.labelStyle)),l;e.label===void 0?l="":l=typeof e.label=="string"?e.label:e.label[0];let u=await Si(s,Tr(Ca(l),de()),{useHtmlLabels:i,width:e.width||de().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img}),h=u.getBBox(),f=(e?.padding??0)/2;if(i){let d=u.children[0],p=ze(u),m=d.getElementsByTagName("img");if(m){let g=l.replace(/]*>/g,"").trim()==="";await Promise.all([...m].map(y=>new Promise(v=>{function x(){if(y.style.display="flex",y.style.flexDirection="column",g){let b=de().fontSize?de().fontSize:window.getComputedStyle(document.body).fontSize,w=5,[_=ur.fontSize]=Fo(b),T=_*w+"px";y.style.minWidth=T,y.style.maxWidth=T}else y.style.width="100%";v(y)}o(x,"setupImage"),setTimeout(()=>{y.complete&&x()}),y.addEventListener("error",x),y.addEventListener("load",x)})))}h=d.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}return i?s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):s.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:h,halfPadding:f,label:s}},"labelHelper"),T5=o(async(t,e,r)=>{let n=r.useHtmlLabels||xr(de()?.flowchart?.htmlLabels),i=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await Si(i,Tr(Ca(e),de()),{useHtmlLabels:n,width:r.width||de()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),s=a.getBBox(),l=r.padding/2;if(xr(de()?.flowchart?.htmlLabels)){let u=a.children[0],h=ze(a);s=u.getBoundingClientRect(),h.attr("width",s.width),h.attr("height",s.height)}return n?i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):i.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:t,bbox:s,halfPadding:l,label:i}},"insertLabel"),Qe=o((t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),lt=o((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");o(Wt,"createPathFromPoints");o(zo,"generateFullSineWavePoints");o(k5,"generateCirclePoints")});function j7e(t,e){return t.intersect(e)}var yj,vj=M(()=>{"use strict";o(j7e,"intersectNode");yj=j7e});function K7e(t,e,r,n){var i=t.x,a=t.y,s=i-n.x,l=a-n.y,u=Math.sqrt(e*e*l*l+r*r*s*s),h=Math.abs(e*r*s/u);n.x{"use strict";o(K7e,"intersectEllipse");E5=K7e});function Q7e(t,e,r){return E5(t,e,e,r)}var xj,bj=M(()=>{"use strict";b9();o(Q7e,"intersectCircle");xj=Q7e});function Z7e(t,e,r,n){var i,a,s,l,u,h,f,d,p,m,g,y,v,x,b;if(i=e.y-t.y,s=t.x-e.x,u=e.x*t.y-t.x*e.y,p=i*r.x+s*r.y+u,m=i*n.x+s*n.y+u,!(p!==0&&m!==0&&wj(p,m))&&(a=n.y-r.y,l=r.x-n.x,h=n.x*r.y-r.x*n.y,f=a*t.x+l*t.y+h,d=a*e.x+l*e.y+h,!(f!==0&&d!==0&&wj(f,d))&&(g=i*l-a*s,g!==0)))return y=Math.abs(g/2),v=s*h-l*u,x=v<0?(v-y)/g:(v+y)/g,v=a*u-i*h,b=v<0?(v-y)/g:(v+y)/g,{x,y:b}}function wj(t,e){return t*e>0}var Tj,kj=M(()=>{"use strict";o(Z7e,"intersectLine");o(wj,"sameSign");Tj=Z7e});function J7e(t,e,r){let n=t.x,i=t.y,a=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(f){s=Math.min(s,f.x),l=Math.min(l,f.y)}):(s=Math.min(s,e.x),l=Math.min(l,e.y));let u=n-t.width/2-s,h=i-t.height/2-l;for(let f=0;f1&&a.sort(function(f,d){let p=f.x-r.x,m=f.y-r.y,g=Math.sqrt(p*p+m*m),y=d.x-r.x,v=d.y-r.y,x=Math.sqrt(y*y+v*v);return g{"use strict";kj();o(J7e,"intersectPolygon");Ej=J7e});var eAe,Oh,w9=M(()=>{"use strict";eAe=o((t,e)=>{var r=t.x,n=t.y,i=e.x-r,a=e.y-n,s=t.width/2,l=t.height/2,u,h;return Math.abs(a)*s>Math.abs(i)*l?(a<0&&(l=-l),u=a===0?0:l*i/a,h=l):(i<0&&(s=-s),u=s,h=i===0?0:s*a/i),{x:r+u,y:n+h}},"intersectRect"),Oh=eAe});var qe,qt=M(()=>{"use strict";vj();bj();b9();Sj();w9();qe={node:yj,circle:xj,ellipse:E5,polygon:Ej,rect:Oh}});var Cj,mc,tAe,et,Ze,Xt=M(()=>{"use strict";Vt();Cj=o(t=>{let{handDrawnSeed:e}=de();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),mc=o(t=>{let e=tAe([...t.cssCompiledStyles||[],...t.cssStyles||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),tAe=o(t=>{let e=new Map;return t.forEach(r=>{let[n,i]=r.split(":");e.set(n.trim(),i?.trim())}),e},"styles2Map"),et=o(t=>{let{stylesArray:e}=mc(t),r=[],n=[],i=[],a=[];return e.forEach(s=>{let l=s[0];l==="color"||l==="font-size"||l==="font-family"||l==="font-weight"||l==="font-style"||l==="text-decoration"||l==="text-align"||l==="text-transform"||l==="line-height"||l==="letter-spacing"||l==="word-spacing"||l==="text-shadow"||l==="text-overflow"||l==="white-space"||l==="word-wrap"||l==="word-break"||l==="overflow-wrap"||l==="hyphens"?r.push(s.join(":")+" !important"):(n.push(s.join(":")+" !important"),l.includes("stroke")&&i.push(s.join(":")+" !important"),l==="fill"&&a.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:a}},"styles2String"),Ze=o((t,e)=>{let{themeVariables:r,handDrawnSeed:n}=de(),{nodeBorder:i,mainBkg:a}=r,{stylesMap:s}=mc(t);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||i,seed:n,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0]},e)},"userNodeOverrides")});function T9(t,e,r){if(t&&t.length){let[n,i]=e,a=Math.PI/180*r,s=Math.cos(a),l=Math.sin(a);for(let u of t){let[h,f]=u;u[0]=(h-n)*s-(f-i)*l+n,u[1]=(h-n)*l+(f-i)*s+i}}}function rAe(t,e){return t[0]===e[0]&&t[1]===e[1]}function nAe(t,e,r,n=1){let i=r,a=Math.max(e,.1),s=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,l=[0,0];if(i)for(let h of s)T9(h,l,i);let u=function(h,f,d){let p=[];for(let b of h){let w=[...b];rAe(w[0],w[w.length-1])||w.push([w[0][0],w[0][1]]),w.length>2&&p.push(w)}let m=[];f=Math.max(f,.1);let g=[];for(let b of p)for(let w=0;wb.yminw.ymin?1:b.xw.x?1:b.ymax===w.ymax?0:(b.ymax-w.ymax)/Math.abs(b.ymax-w.ymax)),!g.length)return m;let y=[],v=g[0].ymin,x=0;for(;y.length||g.length;){if(g.length){let b=-1;for(let w=0;wv);w++)b=w;g.splice(0,b+1).forEach(w=>{y.push({s:v,edge:w})})}if(y=y.filter(b=>!(b.edge.ymax<=v)),y.sort((b,w)=>b.edge.x===w.edge.x?0:(b.edge.x-w.edge.x)/Math.abs(b.edge.x-w.edge.x)),(d!==1||x%f==0)&&y.length>1)for(let b=0;b=y.length)break;let _=y[b].edge,T=y[w].edge;m.push([[Math.round(_.x),v],[Math.round(T.x),v]])}v+=d,y.forEach(b=>{b.edge.x=b.edge.x+d*b.edge.islope}),x++}return m}(s,a,n);if(i){for(let h of s)T9(h,l,-i);(function(h,f,d){let p=[];h.forEach(m=>p.push(...m)),T9(p,f,d)})(u,l,-i)}return u}function yv(t,e){var r;let n=e.hachureAngle+90,i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let a=1;return e.roughness>=1&&(((r=e.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=i),nAe(t,i,n,a||1)}function M5(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function E9(t,e){return t.type===e}function F9(t){let e=[],r=function(s){let l=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:iAe,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:k9,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return l[l.length]={type:Aj,text:""},l}(t),n="BOD",i=0,a=r[i];for(;!E9(a,Aj);){let s=0,l=[];if(n==="BOD"){if(a.text!=="M"&&a.text!=="m")return F9("M0,0"+t);i++,s=S5[a.text],n=a.text}else E9(a,k9)?s=S5[n]:(i++,s=S5[a.text],n=a.text);if(!(i+sf%2?h+r:h+e);a.push({key:"C",data:u}),e=u[4],r=u[5];break}case"Q":a.push({key:"Q",data:[...l]}),e=l[2],r=l[3];break;case"q":{let u=l.map((h,f)=>f%2?h+r:h+e);a.push({key:"Q",data:u}),e=u[2],r=u[3];break}case"A":a.push({key:"A",data:[...l]}),e=l[5],r=l[6];break;case"a":e+=l[5],r+=l[6],a.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],e,r]});break;case"H":a.push({key:"H",data:[...l]}),e=l[0];break;case"h":e+=l[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...l]}),r=l[0];break;case"v":r+=l[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...l]}),e=l[2],r=l[3];break;case"s":{let u=l.map((h,f)=>f%2?h+r:h+e);a.push({key:"S",data:u}),e=u[2],r=u[3];break}case"T":a.push({key:"T",data:[...l]}),e=l[0],r=l[1];break;case"t":e+=l[0],r+=l[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=n,r=i}return a}function Pj(t){let e=[],r="",n=0,i=0,a=0,s=0,l=0,u=0;for(let{key:h,data:f}of t){switch(h){case"M":e.push({key:"M",data:[...f]}),[n,i]=f,[a,s]=f;break;case"C":e.push({key:"C",data:[...f]}),n=f[4],i=f[5],l=f[2],u=f[3];break;case"L":e.push({key:"L",data:[...f]}),[n,i]=f;break;case"H":n=f[0],e.push({key:"L",data:[n,i]});break;case"V":i=f[0],e.push({key:"L",data:[n,i]});break;case"S":{let d=0,p=0;r==="C"||r==="S"?(d=n+(n-l),p=i+(i-u)):(d=n,p=i),e.push({key:"C",data:[d,p,...f]}),l=f[0],u=f[1],n=f[2],i=f[3];break}case"T":{let[d,p]=f,m=0,g=0;r==="Q"||r==="T"?(m=n+(n-l),g=i+(i-u)):(m=n,g=i);let y=n+2*(m-n)/3,v=i+2*(g-i)/3,x=d+2*(m-d)/3,b=p+2*(g-p)/3;e.push({key:"C",data:[y,v,x,b,d,p]}),l=m,u=g,n=d,i=p;break}case"Q":{let[d,p,m,g]=f,y=n+2*(d-n)/3,v=i+2*(p-i)/3,x=m+2*(d-m)/3,b=g+2*(p-g)/3;e.push({key:"C",data:[y,v,x,b,m,g]}),l=d,u=p,n=m,i=g;break}case"A":{let d=Math.abs(f[0]),p=Math.abs(f[1]),m=f[2],g=f[3],y=f[4],v=f[5],x=f[6];d===0||p===0?(e.push({key:"C",data:[n,i,v,x,v,x]}),n=v,i=x):(n!==v||i!==x)&&(Bj(n,i,v,x,d,p,m,g,y).forEach(function(b){e.push({key:"C",data:b})}),n=v,i=x);break}case"Z":e.push({key:"Z",data:[]}),n=a,i=s}r=h}return e}function pv(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function Bj(t,e,r,n,i,a,s,l,u,h){let f=(d=s,Math.PI*d/180);var d;let p=[],m=0,g=0,y=0,v=0;if(h)[m,g,y,v]=h;else{[t,e]=pv(t,e,-f),[r,n]=pv(r,n,-f);let R=(t-r)/2,S=(e-n)/2,O=R*R/(i*i)+S*S/(a*a);O>1&&(O=Math.sqrt(O),i*=O,a*=O);let N=i*i,P=a*a,F=N*P-N*S*S-P*R*R,B=N*S*S+P*R*R,$=(l===u?-1:1)*Math.sqrt(Math.abs(F/B));y=$*i*S/a+(t+r)/2,v=$*-a*R/i+(e+n)/2,m=Math.asin(parseFloat(((e-v)/a).toFixed(9))),g=Math.asin(parseFloat(((n-v)/a).toFixed(9))),tg&&(m-=2*Math.PI),!u&&g>m&&(g-=2*Math.PI)}let x=g-m;if(Math.abs(x)>120*Math.PI/180){let R=g,S=r,O=n;g=u&&g>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,p=Bj(r=y+i*Math.cos(g),n=v+a*Math.sin(g),S,O,i,a,s,0,u,[g,R,y,v])}x=g-m;let b=Math.cos(m),w=Math.sin(m),_=Math.cos(g),T=Math.sin(g),E=Math.tan(x/4),L=4/3*i*E,C=4/3*a*E,A=[t,e],I=[t+L*w,e-C*b],D=[r+L*T,n-C*_],k=[r,n];if(I[0]=2*A[0]-I[0],I[1]=2*A[1]-I[1],h)return[I,D,k].concat(p);{p=[I,D,k].concat(p);let R=[];for(let S=0;S2){let i=[];for(let a=0;a2*Math.PI&&(m=0,g=2*Math.PI);let y=2*Math.PI/u.curveStepCount,v=Math.min(y/2,(g-m)/2),x=Mj(v,h,f,d,p,m,g,1,u);if(!u.disableMultiStroke){let b=Mj(v,h,f,d,p,m,g,1.5,u);x.push(...b)}return s&&(l?x.push(...Ph(h,f,h+d*Math.cos(m),f+p*Math.sin(m),u),...Ph(h,f,h+d*Math.cos(g),f+p*Math.sin(g),u)):x.push({op:"lineTo",data:[h,f]},{op:"lineTo",data:[h+d*Math.cos(m),f+p*Math.sin(m)]})),{type:"path",ops:x}}function Dj(t,e){let r=Pj(Oj(F9(t))),n=[],i=[0,0],a=[0,0];for(let{key:s,data:l}of r)switch(s){case"M":a=[l[0],l[1]],i=[l[0],l[1]];break;case"L":n.push(...Ph(a[0],a[1],l[0],l[1],e)),a=[l[0],l[1]];break;case"C":{let[u,h,f,d,p,m]=l;n.push(...oAe(u,h,f,d,p,m,a,e)),a=[p,m];break}case"Z":n.push(...Ph(a[0],a[1],i[0],i[1],e)),a=[i[0],i[1]]}return{type:"path",ops:n}}function S9(t,e){let r=[];for(let n of t)if(n.length){let i=e.maxRandomnessOffset||0,a=n.length;if(a>2){r.push({op:"move",data:[n[0][0]+nr(i,e),n[0][1]+nr(i,e)]});for(let s=1;s500?.4:-.0016668*u+1.233334;let f=i.maxRandomnessOffset||0;f*f*100>l&&(f=u/10);let d=f/2,p=.2+.2*Gj(i),m=i.bowing*i.maxRandomnessOffset*(n-e)/200,g=i.bowing*i.maxRandomnessOffset*(t-r)/200;m=nr(m,i,h),g=nr(g,i,h);let y=[],v=o(()=>nr(d,i,h),"M"),x=o(()=>nr(f,i,h),"k"),b=i.preserveVertices;return a&&(s?y.push({op:"move",data:[t+(b?0:v()),e+(b?0:v())]}):y.push({op:"move",data:[t+(b?0:nr(f,i,h)),e+(b?0:nr(f,i,h))]})),s?y.push({op:"bcurveTo",data:[m+t+(r-t)*p+v(),g+e+(n-e)*p+v(),m+t+2*(r-t)*p+v(),g+e+2*(n-e)*p+v(),r+(b?0:v()),n+(b?0:v())]}):y.push({op:"bcurveTo",data:[m+t+(r-t)*p+x(),g+e+(n-e)*p+x(),m+t+2*(r-t)*p+x(),g+e+2*(n-e)*p+x(),r+(b?0:x()),n+(b?0:x())]}),y}function C5(t,e,r){if(!t.length)return[];let n=[];n.push([t[0][0]+nr(e,r),t[0][1]+nr(e,r)]),n.push([t[0][0]+nr(e,r),t[0][1]+nr(e,r)]);for(let i=1;i3){let a=[],s=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let l=1;l+21&&i.push(l)):i.push(l),i.push(t[e+3])}else{let u=t[e+0],h=t[e+1],f=t[e+2],d=t[e+3],p=Sd(u,h,.5),m=Sd(h,f,.5),g=Sd(f,d,.5),y=Sd(p,m,.5),v=Sd(m,g,.5),x=Sd(y,v,.5);O9([u,p,y,x],0,r,i),O9([x,v,g,d],0,r,i)}var a,s;return i}function cAe(t,e){return R5(t,0,t.length,e)}function R5(t,e,r,n,i){let a=i||[],s=t[e],l=t[r-1],u=0,h=1;for(let f=e+1;fu&&(u=d,h=f)}return Math.sqrt(u)>n?(R5(t,e,h+1,n,a),R5(t,h,r,n,a)):(a.length||a.push(s),a.push(l)),a}function C9(t,e=.15,r){let n=[],i=(t.length-1)/3;for(let a=0;a0?R5(n,0,n.length,r):n}var gv,A9,_9,L9,D9,N9,ks,R9,iAe,k9,Aj,S5,aAe,to,sm,P9,A5,B9,Ke,jt=M(()=>{"use strict";o(T9,"t");o(rAe,"e");o(nAe,"s");o(yv,"n");gv=class{static{o(this,"o")}constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){let n=yv(e,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(e,r){let n=[];for(let i of e)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],r));return n}};o(M5,"a");A9=class extends gv{static{o(this,"h")}fillPolygons(e,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let i=yv(e,Object.assign({},r,{hachureGap:n})),a=Math.PI/180*r.hachureAngle,s=[],l=.5*n*Math.cos(a),u=.5*n*Math.sin(a);for(let[h,f]of i)M5([h,f])&&s.push([[h[0]-l,h[1]+u],[...f]],[[h[0]+l,h[1]-u],[...f]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}},_9=class extends gv{static{o(this,"r")}fillPolygons(e,r){let n=this._fillPolygons(e,r),i=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(e,i);return n.ops=n.ops.concat(a.ops),n}},L9=class{static{o(this,"i")}constructor(e){this.helper=e}fillPolygons(e,r){let n=yv(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(e,r){let n=[],i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);let s=i/4;for(let l of e){let u=M5(l),h=u/i,f=Math.ceil(h)-1,d=u-f*i,p=(l[0][0]+l[1][0])/2-i/4,m=Math.min(l[0][1],l[1][1]);for(let g=0;g{let l=M5(s),u=Math.floor(l/(n+i)),h=(l+i-u*(n+i))/2,f=s[0],d=s[1];f[0]>d[0]&&(f=s[1],d=s[0]);let p=Math.atan((d[1]-f[1])/(d[0]-f[0]));for(let m=0;m{let s=M5(a),l=Math.round(s/(2*r)),u=a[0],h=a[1];u[0]>h[0]&&(u=a[1],h=a[0]);let f=Math.atan((h[1]-u[1])/(h[0]-u[0]));for(let d=0;d2*Math.PI&&(L=0,C=2*Math.PI);let A=(C-L)/b.curveStepCount,I=[];for(let D=L;D<=C;D+=A)I.push([w+T*Math.cos(D),_+E*Math.sin(D)]);return I.push([w+T*Math.cos(C),_+E*Math.sin(C)]),I.push([w,_]),am([I],b)}(e,r,n,i,a,s,h));return h.stroke!==to&&f.push(d),this._d("arc",f,h)}curve(e,r){let n=this._o(r),i=[],a=_j(e,n);if(n.fill&&n.fill!==to)if(n.fillStyle==="solid"){let s=_j(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{let s=[],l=e;if(l.length){let u=typeof l[0][0]=="number"?[l]:l;for(let h of u)h.length<3?s.push(...h):h.length===3?s.push(...C9(Ij([h[0],h[0],h[1],h[2]]),10,(1+n.roughness)/2)):s.push(...C9(Ij(h),10,(1+n.roughness)/2))}s.length&&i.push(am([s],n))}return n.stroke!==to&&i.push(a),this._d("curve",i,n)}polygon(e,r){let n=this._o(r),i=[],a=_5(e,!0,n);return n.fill&&(n.fillStyle==="solid"?i.push(S9([e],n)):i.push(am([e],n))),n.stroke!==to&&i.push(a),this._d("polygon",i,n)}path(e,r){let n=this._o(r),i=[];if(!e)return this._d("path",i,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let a=n.fill&&n.fill!=="transparent"&&n.fill!==to,s=n.stroke!==to,l=!!(n.simplification&&n.simplification<1),u=function(f,d,p){let m=Pj(Oj(F9(f))),g=[],y=[],v=[0,0],x=[],b=o(()=>{x.length>=4&&y.push(...C9(x,d)),x=[]},"i"),w=o(()=>{b(),y.length&&(g.push(y),y=[])},"c");for(let{key:T,data:E}of m)switch(T){case"M":w(),v=[E[0],E[1]],y.push(v);break;case"L":b(),y.push([E[0],E[1]]);break;case"C":if(!x.length){let L=y.length?y[y.length-1]:v;x.push([L[0],L[1]])}x.push([E[0],E[1]]),x.push([E[2],E[3]]),x.push([E[4],E[5]]);break;case"Z":b(),y.push([v[0],v[1]])}if(w(),!p)return g;let _=[];for(let T of g){let E=cAe(T,p);E.length&&_.push(E)}return _}(e,1,l?4-4*(n.simplification||1):(1+n.roughness)/2),h=Dj(e,n);if(a)if(n.fillStyle==="solid")if(u.length===1){let f=Dj(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else i.push(S9(u,n));else i.push(am(u,n));return s&&(l?u.forEach(f=>{i.push(_5(f,!1,n))}):i.push(h)),this._d("path",i,n)}opsToPath(e,r){let n="";for(let i of e.ops){let a=typeof r=="number"&&r>=0?i.data.map(s=>+s.toFixed(r)):i.data;switch(i.op){case"move":n+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":n+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":n+=`L${a[0]} ${a[1]} `}}return n.trim()}toPaths(e){let r=e.sets||[],n=e.options||this.defaultOptions,i=[];for(let a of r){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:to};break;case"fillPath":s={d:this.opsToPath(a),stroke:to,strokeWidth:0,fill:n.fill||to};break;case"fillSketch":s=this.fillSketch(a,n)}s&&i.push(s)}return i}fillSketch(e,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||to,strokeWidth:n,fill:to}}_mergedShape(e){return e.filter((r,n)=>n===0||r.op!=="move")}},P9=class{static{o(this,"st")}constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new sm(r)}draw(e){let r=e.sets||[],n=e.options||this.getDefaultOptions(),i=this.ctx,a=e.options.fixedDecimalPlaceDigits;for(let s of r)switch(s.type){case"path":i.save(),i.strokeStyle=n.stroke==="none"?"transparent":n.stroke,i.lineWidth=n.strokeWidth,n.strokeLineDash&&i.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(i.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(i,s,a),i.restore();break;case"fillPath":{i.save(),i.fillStyle=n.fill||"";let l=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,a,l),i.restore();break}case"fillSketch":this.fillSketch(i,s,n)}}fillSketch(e,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=i,this._drawToContext(e,r,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,n,i="nonzero"){e.beginPath();for(let a of r.ops){let s=typeof n=="number"&&n>=0?a.data.map(l=>+l.toFixed(n)):a.data;switch(a.op){case"move":e.moveTo(s[0],s[1]);break;case"bcurveTo":e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":e.lineTo(s[0],s[1])}}r.type==="fillPath"?e.fill(i):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,n,i,a){let s=this.gen.line(e,r,n,i,a);return this.draw(s),s}rectangle(e,r,n,i,a){let s=this.gen.rectangle(e,r,n,i,a);return this.draw(s),s}ellipse(e,r,n,i,a){let s=this.gen.ellipse(e,r,n,i,a);return this.draw(s),s}circle(e,r,n,i){let a=this.gen.circle(e,r,n,i);return this.draw(a),a}linearPath(e,r){let n=this.gen.linearPath(e,r);return this.draw(n),n}polygon(e,r){let n=this.gen.polygon(e,r);return this.draw(n),n}arc(e,r,n,i,a,s,l=!1,u){let h=this.gen.arc(e,r,n,i,a,s,l,u);return this.draw(h),h}curve(e,r){let n=this.gen.curve(e,r);return this.draw(n),n}path(e,r){let n=this.gen.path(e,r);return this.draw(n),n}},A5="http://www.w3.org/2000/svg",B9=class{static{o(this,"ot")}constructor(e,r){this.svg=e,this.gen=new sm(r)}draw(e){let r=e.sets||[],n=e.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,a=i.createElementNS(A5,"g"),s=e.options.fixedDecimalPlaceDigits;for(let l of r){let u=null;switch(l.type){case"path":u=i.createElementNS(A5,"path"),u.setAttribute("d",this.opsToPath(l,s)),u.setAttribute("stroke",n.stroke),u.setAttribute("stroke-width",n.strokeWidth+""),u.setAttribute("fill","none"),n.strokeLineDash&&u.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&u.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":u=i.createElementNS(A5,"path"),u.setAttribute("d",this.opsToPath(l,s)),u.setAttribute("stroke","none"),u.setAttribute("stroke-width","0"),u.setAttribute("fill",n.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||u.setAttribute("fill-rule","evenodd");break;case"fillSketch":u=this.fillSketch(i,l,n)}u&&a.appendChild(u)}return a}fillSketch(e,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);let a=e.createElementNS(A5,"path");return a.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),a.setAttribute("stroke",n.fill||""),a.setAttribute("stroke-width",i+""),a.setAttribute("fill","none"),n.fillLineDash&&a.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,n,i,a){let s=this.gen.line(e,r,n,i,a);return this.draw(s)}rectangle(e,r,n,i,a){let s=this.gen.rectangle(e,r,n,i,a);return this.draw(s)}ellipse(e,r,n,i,a){let s=this.gen.ellipse(e,r,n,i,a);return this.draw(s)}circle(e,r,n,i){let a=this.gen.circle(e,r,n,i);return this.draw(a)}linearPath(e,r){let n=this.gen.linearPath(e,r);return this.draw(n)}polygon(e,r){let n=this.gen.polygon(e,r);return this.draw(n)}arc(e,r,n,i,a,s,l=!1,u){let h=this.gen.arc(e,r,n,i,a,s,l,u);return this.draw(h)}curve(e,r){let n=this.gen.curve(e,r);return this.draw(n)}path(e,r){let n=this.gen.path(e,r);return this.draw(n)}},Ke={canvas:o((t,e)=>new P9(t,e),"canvas"),svg:o((t,e)=>new B9(t,e),"svg"),generator:o(t=>new sm(t),"generator"),newSeed:o(()=>sm.newSeed(),"newSeed")}});function $j(t,e){let{labelStyles:r}=et(e);e.labelStyle=r;let n=lt(e),i=n;n||(i="anchor");let a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),s=1,{cssStyles:l}=e,u=Ke.svg(a),h=Ze(e,{fill:"black",stroke:"none",fillStyle:"solid"});e.look!=="handDrawn"&&(h.roughness=0);let f=u.circle(0,0,s*2,h),d=a.insert(()=>f,":first-child");return d.attr("class","anchor").attr("style",Fn(l)),Qe(e,d),e.intersect=function(p){return Y.info("Circle intersect",e,s,p),qe.circle(e,s,p)},a}var Vj=M(()=>{"use strict";ht();Ft();qt();Xt();jt();hr();o($j,"anchor")});function Uj(t,e,r,n,i,a,s){let u=(t+r)/2,h=(e+n)/2,f=Math.atan2(n-e,r-t),d=(r-t)/2,p=(n-e)/2,m=d/i,g=p/a,y=Math.sqrt(m**2+g**2);if(y>1)throw new Error("The given radii are too small to create an arc between the points.");let v=Math.sqrt(1-y**2),x=u+v*a*Math.sin(f)*(s?-1:1),b=h-v*i*Math.cos(f)*(s?-1:1),w=Math.atan2((e-b)/a,(t-x)/i),T=Math.atan2((n-b)/a,(r-x)/i)-w;s&&T<0&&(T+=2*Math.PI),!s&&T>0&&(T-=2*Math.PI);let E=[];for(let L=0;L<20;L++){let C=L/19,A=w+C*T,I=x+i*Math.cos(A),D=b+a*Math.sin(A);E.push({x:I,y:D})}return E}async function Hj(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=a.width+e.padding+20,l=a.height+e.padding,u=l/2,h=u/(2.5+l/50),{cssStyles:f}=e,d=[{x:s/2,y:-l/2},{x:-s/2,y:-l/2},...Uj(-s/2,-l/2,-s/2,l/2,h,u,!1),{x:s/2,y:l/2},...Uj(s/2,l/2,s/2,-l/2,h,u,!0)],p=Ke.svg(i),m=Ze(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=Wt(d),y=p.path(g,m),v=i.insert(()=>y,":first-child");return v.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(${h/2}, 0)`),Qe(e,v),e.intersect=function(x){return qe.polygon(e,d,x)},i}var Wj=M(()=>{"use strict";Ft();qt();Xt();jt();o(Uj,"generateArcPoints");o(Hj,"bowTieRect")});function Aa(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}var Su=M(()=>{"use strict";o(Aa,"insertPolygonShape")});async function Yj(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=a.height+e.padding,l=12,u=a.width+e.padding+l,h=0,f=u,d=-s,p=0,m=[{x:h+l,y:d},{x:f,y:d},{x:f,y:p},{x:h,y:p},{x:h,y:d+l},{x:h+l,y:d}],g,{cssStyles:y}=e;if(e.look==="handDrawn"){let v=Ke.svg(i),x=Ze(e,{}),b=Wt(m),w=v.path(b,x);g=i.insert(()=>w,":first-child").attr("transform",`translate(${-u/2}, ${s/2})`),y&&g.attr("style",y)}else g=Aa(i,u,s,m);return n&&g.attr("style",n),Qe(e,g),e.intersect=function(v){return qe.polygon(e,m,v)},i}var qj=M(()=>{"use strict";Ft();qt();Xt();jt();Su();Ft();o(Yj,"card")});function Xj(t,e){let{nodeStyles:r}=et(e);e.label="";let n=t.insert("g").attr("class",lt(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,a=Math.max(28,e.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],l=Ke.svg(n),u=Ze(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let h=Wt(s),f=l.path(h,u),d=n.insert(()=>f,":first-child");return i&&e.look!=="handDrawn"&&d.selectAll("path").attr("style",i),r&&e.look!=="handDrawn"&&d.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(p){return qe.polygon(e,s,p)},n}var jj=M(()=>{"use strict";qt();jt();Xt();Ft();o(Xj,"choice")});async function Kj(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,halfPadding:s}=await ot(t,e,lt(e)),l=a.width/2+s,u,{cssStyles:h}=e;if(e.look==="handDrawn"){let f=Ke.svg(i),d=Ze(e,{}),p=f.circle(0,0,l*2,d);u=i.insert(()=>p,":first-child"),u.attr("class","basic label-container").attr("style",Fn(h))}else u=i.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",l).attr("cx",0).attr("cy",0);return Qe(e,u),e.intersect=function(f){return Y.info("Circle intersect",e,l,f),qe.circle(e,l,f)},i}var Qj=M(()=>{"use strict";ht();Ft();qt();Xt();jt();hr();o(Kj,"circle")});function uAe(t){let e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=t*2,i={x:n/2*e,y:n/2*r},a={x:-(n/2)*e,y:n/2*r},s={x:-(n/2)*e,y:-(n/2)*r},l={x:n/2*e,y:-(n/2)*r};return`M ${a.x},${a.y} L ${l.x},${l.y} + M ${i.x},${i.y} L ${s.x},${s.y}`}function Zj(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r,e.label="";let i=t.insert("g").attr("class",lt(e)).attr("id",e.domId??e.id),a=Math.max(30,e?.width??0),{cssStyles:s}=e,l=Ke.svg(i),u=Ze(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let h=l.circle(0,0,a*2,u),f=uAe(a),d=l.path(f,u),p=i.insert(()=>h,":first-child");return p.insert(()=>d),s&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",s),n&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",n),Qe(e,p),e.intersect=function(m){return Y.info("crossedCircle intersect",e,{radius:a,point:m}),qe.circle(e,a,m)},i}var Jj=M(()=>{"use strict";ht();Ft();Xt();jt();qt();o(uAe,"createLine");o(Zj,"crossedCircle")});function Bh(t,e,r,n=100,i=0,a=180){let s=[],l=i*Math.PI/180,f=(a*Math.PI/180-l)/(n-1);for(let d=0;dw,":first-child").attr("stroke-opacity",0),_.insert(()=>x,":first-child"),_.attr("class","text"),f&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),_.attr("transform",`translate(${h}, 0)`),s.attr("transform",`translate(${-l/2+h-(a.x-(a.left??0))},${-u/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Qe(e,_),e.intersect=function(T){return qe.polygon(e,p,T)},i}var tK=M(()=>{"use strict";Ft();qt();Xt();jt();o(Bh,"generateCirclePoints");o(eK,"curlyBraceLeft")});function Fh(t,e,r,n=100,i=0,a=180){let s=[],l=i*Math.PI/180,f=(a*Math.PI/180-l)/(n-1);for(let d=0;dw,":first-child").attr("stroke-opacity",0),_.insert(()=>x,":first-child"),_.attr("class","text"),f&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),_.attr("transform",`translate(${-h}, 0)`),s.attr("transform",`translate(${-l/2+(e.padding??0)/2-(a.x-(a.left??0))},${-u/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Qe(e,_),e.intersect=function(T){return qe.polygon(e,p,T)},i}var nK=M(()=>{"use strict";Ft();qt();Xt();jt();o(Fh,"generateCirclePoints");o(rK,"curlyBraceRight")});function _a(t,e,r,n=100,i=0,a=180){let s=[],l=i*Math.PI/180,f=(a*Math.PI/180-l)/(n-1);for(let d=0;dL,":first-child").attr("stroke-opacity",0),C.insert(()=>b,":first-child"),C.insert(()=>T,":first-child"),C.attr("class","text"),f&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",n),C.attr("transform",`translate(${h-h/4}, 0)`),s.attr("transform",`translate(${-l/2+(e.padding??0)/2-(a.x-(a.left??0))},${-u/2+(e.padding??0)/2-(a.y-(a.top??0))})`),Qe(e,C),e.intersect=function(A){return qe.polygon(e,m,A)},i}var aK=M(()=>{"use strict";Ft();qt();Xt();jt();o(_a,"generateCirclePoints");o(iK,"curlyBraces")});async function sK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=80,l=20,u=Math.max(s,(a.width+(e.padding??0)*2)*1.25,e?.width??0),h=Math.max(l,a.height+(e.padding??0)*2,e?.height??0),f=h/2,{cssStyles:d}=e,p=Ke.svg(i),m=Ze(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=u,y=h,v=g-f,x=y/4,b=[{x:v,y:0},{x,y:0},{x:0,y:y/2},{x,y},{x:v,y},...k5(-v,-y/2,f,50,270,90)],w=Wt(b),_=p.path(w,m),T=i.insert(()=>_,":first-child");return T.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",d),n&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",n),T.attr("transform",`translate(${-u/2}, ${-h/2})`),Qe(e,T),e.intersect=function(E){return qe.polygon(e,b,E)},i}var oK=M(()=>{"use strict";Ft();qt();Xt();jt();o(sK,"curvedTrapezoid")});async function lK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await ot(t,e,lt(e)),l=Math.max(a.width+e.padding,e.width??0),u=l/2,h=u/(2.5+l/50),f=Math.max(a.height+h+e.padding,e.height??0),d,{cssStyles:p}=e;if(e.look==="handDrawn"){let m=Ke.svg(i),g=fAe(0,0,l,f,u,h),y=dAe(0,h,l,f,u,h),v=m.path(g,Ze(e,{})),x=m.path(y,Ze(e,{fill:"none"}));d=i.insert(()=>x,":first-child"),d=i.insert(()=>v,":first-child"),d.attr("class","basic label-container"),p&&d.attr("style",p)}else{let m=hAe(0,0,l,f,u,h);d=i.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Fn(p)).attr("style",n)}return d.attr("label-offset-y",h),d.attr("transform",`translate(${-l/2}, ${-(f/2+h)})`),Qe(e,d),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+(e.padding??0)/1.5-(a.y-(a.top??0))})`),e.intersect=function(m){let g=qe.rect(e,m),y=g.x-(e.x??0);if(u!=0&&(Math.abs(y)<(e.width??0)/2||Math.abs(y)==(e.width??0)/2&&Math.abs(g.y-(e.y??0))>(e.height??0)/2-h)){let v=h*h*(1-y*y/(u*u));v>0&&(v=Math.sqrt(v)),v=h-v,m.y-(e.y??0)>0&&(v=-v),g.y+=v}return g},i}var hAe,fAe,dAe,cK=M(()=>{"use strict";Ft();qt();Xt();jt();hr();hAe=o((t,e,r,n,i,a)=>[`M${t},${e+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),fAe=o((t,e,r,n,i,a)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),dAe=o((t,e,r,n,i,a)=>[`M${t-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");o(lK,"cylinder")});async function uK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await ot(t,e,lt(e)),l=a.width+e.padding,u=a.height+e.padding,h=u*.2,f=-l/2,d=-u/2-h/2,{cssStyles:p}=e,m=Ke.svg(i),g=Ze(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=[{x:f,y:d+h},{x:-f,y:d+h},{x:-f,y:-d},{x:f,y:-d},{x:f,y:d},{x:-f,y:d},{x:-f,y:d+h}],v=m.polygon(y.map(b=>[b.x,b.y]),g),x=i.insert(()=>v,":first-child");return x.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",n),s.attr("transform",`translate(${f+(e.padding??0)/2-(a.x-(a.left??0))}, ${d+h+(e.padding??0)/2-(a.y-(a.top??0))})`),Qe(e,x),e.intersect=function(b){return qe.rect(e,b)},i}var hK=M(()=>{"use strict";Ft();qt();Xt();jt();o(uK,"dividedRectangle")});async function fK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,halfPadding:s}=await ot(t,e,lt(e)),u=a.width/2+s+5,h=a.width/2+s,f,{cssStyles:d}=e;if(e.look==="handDrawn"){let p=Ke.svg(i),m=Ze(e,{roughness:.2,strokeWidth:2.5}),g=Ze(e,{roughness:.2,strokeWidth:1.5}),y=p.circle(0,0,u*2,m),v=p.circle(0,0,h*2,g);f=i.insert("g",":first-child"),f.attr("class",Fn(e.cssClasses)).attr("style",Fn(d)),f.node()?.appendChild(y),f.node()?.appendChild(v)}else{f=i.insert("g",":first-child");let p=f.insert("circle",":first-child"),m=f.insert("circle");f.attr("class","basic label-container").attr("style",n),p.attr("class","outer-circle").attr("style",n).attr("r",u).attr("cx",0).attr("cy",0),m.attr("class","inner-circle").attr("style",n).attr("r",h).attr("cx",0).attr("cy",0)}return Qe(e,f),e.intersect=function(p){return Y.info("DoubleCircle intersect",e,u,p),qe.circle(e,u,p)},i}var dK=M(()=>{"use strict";ht();Ft();qt();Xt();jt();hr();o(fK,"doublecircle")});function pK(t,e,{config:{themeVariables:r}}){let{labelStyles:n,nodeStyles:i}=et(e);e.label="",e.labelStyle=n;let a=t.insert("g").attr("class",lt(e)).attr("id",e.domId??e.id),s=7,{cssStyles:l}=e,u=Ke.svg(a),{nodeBorder:h}=r,f=Ze(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(f.roughness=0);let d=u.circle(0,0,s*2,f),p=a.insert(()=>d,":first-child");return p.selectAll("path").attr("style",`fill: ${h} !important;`),l&&l.length>0&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",l),i&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",i),Qe(e,p),e.intersect=function(m){return Y.info("filledCircle intersect",e,{radius:s,point:m}),qe.circle(e,s,m)},a}var mK=M(()=>{"use strict";jt();ht();qt();Xt();Ft();o(pK,"filledCircle")});async function gK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await ot(t,e,lt(e)),l=a.width+(e.padding??0),u=l+a.height,h=l+a.height,f=[{x:0,y:-u},{x:h,y:-u},{x:h/2,y:0}],{cssStyles:d}=e,p=Ke.svg(i),m=Ze(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=Wt(f),y=p.path(g,m),v=i.insert(()=>y,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`);return d&&e.look!=="handDrawn"&&v.selectChildren("path").attr("style",d),n&&e.look!=="handDrawn"&&v.selectChildren("path").attr("style",n),e.width=l,e.height=u,Qe(e,v),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-u/2+(e.padding??0)/2+(a.y-(a.top??0))})`),e.intersect=function(x){return Y.info("Triangle intersect",e,f,x),qe.polygon(e,f,x)},i}var yK=M(()=>{"use strict";ht();Ft();qt();Xt();jt();Ft();o(gK,"flippedTriangle")});function vK(t,e,{dir:r,config:{state:n,themeVariables:i}}){let{nodeStyles:a}=et(e);e.label="";let s=t.insert("g").attr("class",lt(e)).attr("id",e.domId??e.id),{cssStyles:l}=e,u=Math.max(70,e?.width??0),h=Math.max(10,e?.height??0);r==="LR"&&(u=Math.max(10,e?.width??0),h=Math.max(70,e?.height??0));let f=-1*u/2,d=-1*h/2,p=Ke.svg(s),m=Ze(e,{stroke:i.lineColor,fill:i.lineColor});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=p.rectangle(f,d,u,h,m),y=s.insert(()=>g,":first-child");l&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",l),a&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",a),Qe(e,y);let v=n?.padding??0;return e.width&&e.height&&(e.width+=v/2||0,e.height+=v/2||0),e.intersect=function(x){return qe.rect(e,x)},s}var xK=M(()=>{"use strict";jt();qt();Xt();Ft();o(vK,"forkJoin")});async function bK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let i=80,a=50,{shapeSvg:s,bbox:l}=await ot(t,e,lt(e)),u=Math.max(i,l.width+(e.padding??0)*2,e?.width??0),h=Math.max(a,l.height+(e.padding??0)*2,e?.height??0),f=h/2,{cssStyles:d}=e,p=Ke.svg(s),m=Ze(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=[{x:-u/2,y:-h/2},{x:u/2-f,y:-h/2},...k5(-u/2+f,0,f,50,90,270),{x:u/2-f,y:h/2},{x:-u/2,y:h/2}],y=Wt(g),v=p.path(y,m),x=s.insert(()=>v,":first-child");return x.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",d),n&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",n),Qe(e,x),e.intersect=function(b){return Y.info("Pill intersect",e,{radius:f,point:b}),qe.polygon(e,g,b)},s}var wK=M(()=>{"use strict";ht();Ft();qt();Xt();jt();o(bK,"halfRoundedRectangle")});async function TK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=4,l=a.height+e.padding,u=l/s,h=a.width+2*u+e.padding,f=[{x:u,y:0},{x:h-u,y:0},{x:h,y:-l/2},{x:h-u,y:-l},{x:u,y:-l},{x:0,y:-l/2}],d,{cssStyles:p}=e;if(e.look==="handDrawn"){let m=Ke.svg(i),g=Ze(e,{}),y=pAe(0,0,h,l,u),v=m.path(y,g);d=i.insert(()=>v,":first-child").attr("transform",`translate(${-h/2}, ${l/2})`),p&&d.attr("style",p)}else d=Aa(i,h,l,f);return n&&d.attr("style",n),e.width=h,e.height=l,Qe(e,d),e.intersect=function(m){return qe.polygon(e,f,m)},i}var pAe,kK=M(()=>{"use strict";Ft();qt();Xt();jt();Su();pAe=o((t,e,r,n,i)=>[`M${t+i},${e}`,`L${t+r-i},${e}`,`L${t+r},${e-n/2}`,`L${t+r-i},${e-n}`,`L${t+i},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" "),"createHexagonPathD");o(TK,"hexagon")});async function EK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.label="",e.labelStyle=r;let{shapeSvg:i}=await ot(t,e,lt(e)),a=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:l}=e,u=Ke.svg(i),h=Ze(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let f=[{x:0,y:0},{x:a,y:0},{x:0,y:s},{x:a,y:s}],d=Wt(f),p=u.path(d,h),m=i.insert(()=>p,":first-child");return m.attr("class","basic label-container"),l&&e.look!=="handDrawn"&&m.selectChildren("path").attr("style",l),n&&e.look!=="handDrawn"&&m.selectChildren("path").attr("style",n),m.attr("transform",`translate(${-a/2}, ${-s/2})`),Qe(e,m),e.intersect=function(g){return Y.info("Pill intersect",e,{points:f}),qe.polygon(e,f,g)},i}var SK=M(()=>{"use strict";ht();Ft();qt();Xt();jt();o(EK,"hourglass")});async function CK(t,e,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:i}=et(e);e.labelStyle=i;let a=e.assetHeight??48,s=e.assetWidth??48,l=Math.max(a,s),u=n?.wrappingWidth;e.width=Math.max(l,u??0);let{shapeSvg:h,bbox:f,label:d}=await ot(t,e,"icon-shape default"),p=e.pos==="t",m=l,g=l,{nodeBorder:y}=r,{stylesMap:v}=mc(e),x=-g/2,b=-m/2,w=e.label?8:0,_=Ke.svg(h),T=Ze(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let E=_.rectangle(x,b,g,m,T),L=Math.max(g,f.width),C=m+f.height+w,A=_.rectangle(-L/2,-C/2,L,C,{...T,fill:"transparent",stroke:"none"}),I=h.insert(()=>E,":first-child"),D=h.insert(()=>A);if(e.icon){let k=h.append("g");k.html(`${await wo(e.icon,{height:l,width:l,fallbackPrefix:""})}`);let R=k.node().getBBox(),S=R.width,O=R.height,N=R.x,P=R.y;k.attr("transform",`translate(${-S/2-N},${p?f.height/2+w/2-O/2-P:-f.height/2-w/2-O/2-P})`),k.attr("style",`color: ${v.get("stroke")??y};`)}return d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${p?-C/2:C/2-f.height})`),I.attr("transform",`translate(0,${p?f.height/2+w/2:-f.height/2-w/2})`),Qe(e,D),e.intersect=function(k){if(Y.info("iconSquare intersect",e,k),!e.label)return qe.rect(e,k);let R=e.x??0,S=e.y??0,O=e.height??0,N=[];return p?N=[{x:R-f.width/2,y:S-O/2},{x:R+f.width/2,y:S-O/2},{x:R+f.width/2,y:S-O/2+f.height+w},{x:R+g/2,y:S-O/2+f.height+w},{x:R+g/2,y:S+O/2},{x:R-g/2,y:S+O/2},{x:R-g/2,y:S-O/2+f.height+w},{x:R-f.width/2,y:S-O/2+f.height+w}]:N=[{x:R-g/2,y:S-O/2},{x:R+g/2,y:S-O/2},{x:R+g/2,y:S-O/2+m},{x:R+f.width/2,y:S-O/2+m},{x:R+f.width/2/2,y:S+O/2},{x:R-f.width/2,y:S+O/2},{x:R-f.width/2,y:S-O/2+m},{x:R-g/2,y:S-O/2+m}],qe.polygon(e,N,k)},h}var AK=M(()=>{"use strict";jt();ht();Kc();qt();Xt();Ft();o(CK,"icon")});async function _K(t,e,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:i}=et(e);e.labelStyle=i;let a=e.assetHeight??48,s=e.assetWidth??48,l=Math.max(a,s),u=n?.wrappingWidth;e.width=Math.max(l,u??0);let{shapeSvg:h,bbox:f,label:d}=await ot(t,e,"icon-shape default"),p=20,m=e.label?8:0,g=e.pos==="t",{nodeBorder:y,mainBkg:v}=r,{stylesMap:x}=mc(e),b=Ke.svg(h),w=Ze(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let _=x.get("fill");w.stroke=_??v;let T=h.append("g");e.icon&&T.html(`${await wo(e.icon,{height:l,width:l,fallbackPrefix:""})}`);let E=T.node().getBBox(),L=E.width,C=E.height,A=E.x,I=E.y,D=Math.max(L,C)*Math.SQRT2+p*2,k=b.circle(0,0,D,w),R=Math.max(D,f.width),S=D+f.height+m,O=b.rectangle(-R/2,-S/2,R,S,{...w,fill:"transparent",stroke:"none"}),N=h.insert(()=>k,":first-child"),P=h.insert(()=>O);return T.attr("transform",`translate(${-L/2-A},${g?f.height/2+m/2-C/2-I:-f.height/2-m/2-C/2-I})`),T.attr("style",`color: ${x.get("stroke")??y};`),d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-S/2:S/2-f.height})`),N.attr("transform",`translate(0,${g?f.height/2+m/2:-f.height/2-m/2})`),Qe(e,P),e.intersect=function(F){return Y.info("iconSquare intersect",e,F),qe.rect(e,F)},h}var LK=M(()=>{"use strict";jt();ht();Kc();qt();Xt();Ft();o(_K,"iconCircle")});var La,zh=M(()=>{"use strict";La=o((t,e,r,n,i)=>["M",t+i,e,"H",t+r-i,"A",i,i,0,0,1,t+r,e+i,"V",e+n-i,"A",i,i,0,0,1,t+r-i,e+n,"H",t+i,"A",i,i,0,0,1,t,e+n-i,"V",e+i,"A",i,i,0,0,1,t+i,e,"Z"].join(" "),"createRoundedRectPathD")});async function DK(t,e,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:i}=et(e);e.labelStyle=i;let a=e.assetHeight??48,s=e.assetWidth??48,l=Math.max(a,s),u=n?.wrappingWidth;e.width=Math.max(l,u??0);let{shapeSvg:h,bbox:f,halfPadding:d,label:p}=await ot(t,e,"icon-shape default"),m=e.pos==="t",g=l+d*2,y=l+d*2,{nodeBorder:v,mainBkg:x}=r,{stylesMap:b}=mc(e),w=-y/2,_=-g/2,T=e.label?8:0,E=Ke.svg(h),L=Ze(e,{});e.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");let C=b.get("fill");L.stroke=C??x;let A=E.path(La(w,_,y,g,5),L),I=Math.max(y,f.width),D=g+f.height+T,k=E.rectangle(-I/2,-D/2,I,D,{...L,fill:"transparent",stroke:"none"}),R=h.insert(()=>A,":first-child").attr("class","icon-shape2"),S=h.insert(()=>k);if(e.icon){let O=h.append("g");O.html(`${await wo(e.icon,{height:l,width:l,fallbackPrefix:""})}`);let N=O.node().getBBox(),P=N.width,F=N.height,B=N.x,$=N.y;O.attr("transform",`translate(${-P/2-B},${m?f.height/2+T/2-F/2-$:-f.height/2-T/2-F/2-$})`),O.attr("style",`color: ${b.get("stroke")??v};`)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${m?-D/2:D/2-f.height})`),R.attr("transform",`translate(0,${m?f.height/2+T/2:-f.height/2-T/2})`),Qe(e,S),e.intersect=function(O){if(Y.info("iconSquare intersect",e,O),!e.label)return qe.rect(e,O);let N=e.x??0,P=e.y??0,F=e.height??0,B=[];return m?B=[{x:N-f.width/2,y:P-F/2},{x:N+f.width/2,y:P-F/2},{x:N+f.width/2,y:P-F/2+f.height+T},{x:N+y/2,y:P-F/2+f.height+T},{x:N+y/2,y:P+F/2},{x:N-y/2,y:P+F/2},{x:N-y/2,y:P-F/2+f.height+T},{x:N-f.width/2,y:P-F/2+f.height+T}]:B=[{x:N-y/2,y:P-F/2},{x:N+y/2,y:P-F/2},{x:N+y/2,y:P-F/2+g},{x:N+f.width/2,y:P-F/2+g},{x:N+f.width/2/2,y:P+F/2},{x:N-f.width/2,y:P+F/2},{x:N-f.width/2,y:P-F/2+g},{x:N-y/2,y:P-F/2+g}],qe.polygon(e,B,O)},h}var NK=M(()=>{"use strict";jt();ht();Kc();qt();Xt();zh();Ft();o(DK,"iconRounded")});async function RK(t,e,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:i}=et(e);e.labelStyle=i;let a=e.assetHeight??48,s=e.assetWidth??48,l=Math.max(a,s),u=n?.wrappingWidth;e.width=Math.max(l,u??0);let{shapeSvg:h,bbox:f,halfPadding:d,label:p}=await ot(t,e,"icon-shape default"),m=e.pos==="t",g=l+d*2,y=l+d*2,{nodeBorder:v,mainBkg:x}=r,{stylesMap:b}=mc(e),w=-y/2,_=-g/2,T=e.label?8:0,E=Ke.svg(h),L=Ze(e,{});e.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");let C=b.get("fill");L.stroke=C??x;let A=E.path(La(w,_,y,g,.1),L),I=Math.max(y,f.width),D=g+f.height+T,k=E.rectangle(-I/2,-D/2,I,D,{...L,fill:"transparent",stroke:"none"}),R=h.insert(()=>A,":first-child"),S=h.insert(()=>k);if(e.icon){let O=h.append("g");O.html(`${await wo(e.icon,{height:l,width:l,fallbackPrefix:""})}`);let N=O.node().getBBox(),P=N.width,F=N.height,B=N.x,$=N.y;O.attr("transform",`translate(${-P/2-B},${m?f.height/2+T/2-F/2-$:-f.height/2-T/2-F/2-$})`),O.attr("style",`color: ${b.get("stroke")??v};`)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${m?-D/2:D/2-f.height})`),R.attr("transform",`translate(0,${m?f.height/2+T/2:-f.height/2-T/2})`),Qe(e,S),e.intersect=function(O){if(Y.info("iconSquare intersect",e,O),!e.label)return qe.rect(e,O);let N=e.x??0,P=e.y??0,F=e.height??0,B=[];return m?B=[{x:N-f.width/2,y:P-F/2},{x:N+f.width/2,y:P-F/2},{x:N+f.width/2,y:P-F/2+f.height+T},{x:N+y/2,y:P-F/2+f.height+T},{x:N+y/2,y:P+F/2},{x:N-y/2,y:P+F/2},{x:N-y/2,y:P-F/2+f.height+T},{x:N-f.width/2,y:P-F/2+f.height+T}]:B=[{x:N-y/2,y:P-F/2},{x:N+y/2,y:P-F/2},{x:N+y/2,y:P-F/2+g},{x:N+f.width/2,y:P-F/2+g},{x:N+f.width/2/2,y:P+F/2},{x:N-f.width/2,y:P+F/2},{x:N-f.width/2,y:P-F/2+g},{x:N-y/2,y:P-F/2+g}],qe.polygon(e,B,O)},h}var MK=M(()=>{"use strict";jt();ht();Kc();qt();zh();Xt();Ft();o(RK,"iconSquare")});async function IK(t,e,{config:{flowchart:r}}){let n=new Image;n.src=e?.img??"",await n.decode();let i=Number(n.naturalWidth.toString().replace("px","")),a=Number(n.naturalHeight.toString().replace("px",""));e.imageAspectRatio=i/a;let{labelStyles:s}=et(e);e.labelStyle=s;let l=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;let u=Math.max(e.label?l??0:0,e?.assetWidth??i),h=e.constraint==="on"&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:u,f=e.constraint==="on"?h/e.imageAspectRatio:e?.assetHeight??a;e.width=Math.max(h,l??0);let{shapeSvg:d,bbox:p,label:m}=await ot(t,e,"image-shape default"),g=e.pos==="t",y=-h/2,v=-f/2,x=e.label?8:0,b=Ke.svg(d),w=Ze(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let _=b.rectangle(y,v,h,f,w),T=Math.max(h,p.width),E=f+p.height+x,L=b.rectangle(-T/2,-E/2,T,E,{...w,fill:"none",stroke:"none"}),C=d.insert(()=>_,":first-child"),A=d.insert(()=>L);if(e.img){let I=d.append("image");I.attr("href",e.img),I.attr("width",h),I.attr("height",f),I.attr("preserveAspectRatio","none"),I.attr("transform",`translate(${-h/2},${g?E/2-f:-E/2})`)}return m.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${g?-f/2-p.height/2-x/2:f/2-p.height/2+x/2})`),C.attr("transform",`translate(0,${g?p.height/2+x/2:-p.height/2-x/2})`),Qe(e,A),e.intersect=function(I){if(Y.info("iconSquare intersect",e,I),!e.label)return qe.rect(e,I);let D=e.x??0,k=e.y??0,R=e.height??0,S=[];return g?S=[{x:D-p.width/2,y:k-R/2},{x:D+p.width/2,y:k-R/2},{x:D+p.width/2,y:k-R/2+p.height+x},{x:D+h/2,y:k-R/2+p.height+x},{x:D+h/2,y:k+R/2},{x:D-h/2,y:k+R/2},{x:D-h/2,y:k-R/2+p.height+x},{x:D-p.width/2,y:k-R/2+p.height+x}]:S=[{x:D-h/2,y:k-R/2},{x:D+h/2,y:k-R/2},{x:D+h/2,y:k-R/2+f},{x:D+p.width/2,y:k-R/2+f},{x:D+p.width/2/2,y:k+R/2},{x:D-p.width/2,y:k+R/2},{x:D-p.width/2,y:k-R/2+f},{x:D-h/2,y:k-R/2+f}],qe.polygon(e,S,I)},d}var OK=M(()=>{"use strict";jt();ht();qt();Xt();Ft();o(IK,"imageSquare")});async function PK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=Math.max(a.width+(e.padding??0)*2,e?.width??0),l=Math.max(a.height+(e.padding??0)*2,e?.height??0),u=[{x:0,y:0},{x:s,y:0},{x:s+3*l/6,y:-l},{x:-3*l/6,y:-l}],h,{cssStyles:f}=e;if(e.look==="handDrawn"){let d=Ke.svg(i),p=Ze(e,{}),m=Wt(u),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),f&&h.attr("style",f)}else h=Aa(i,s,l,u);return n&&h.attr("style",n),e.width=s,e.height=l,Qe(e,h),e.intersect=function(d){return qe.polygon(e,u,d)},i}var BK=M(()=>{"use strict";Ft();qt();Xt();jt();Su();o(PK,"inv_trapezoid")});async function Cd(t,e,r){let{labelStyles:n,nodeStyles:i}=et(e);e.labelStyle=n;let{shapeSvg:a,bbox:s}=await ot(t,e,lt(e)),l=Math.max(s.width+r.labelPaddingX*2,e?.width||0),u=Math.max(s.height+r.labelPaddingY*2,e?.height||0),h=-l/2,f=-u/2,d,{rx:p,ry:m}=e,{cssStyles:g}=e;if(r?.rx&&r.ry&&(p=r.rx,m=r.ry),e.look==="handDrawn"){let y=Ke.svg(a),v=Ze(e,{}),x=p||m?y.path(La(h,f,l,u,p||0),v):y.rectangle(h,f,l,u,v);d=a.insert(()=>x,":first-child"),d.attr("class","basic label-container").attr("style",Fn(g))}else d=a.insert("rect",":first-child"),d.attr("class","basic label-container").attr("style",i).attr("rx",Fn(p)).attr("ry",Fn(m)).attr("x",h).attr("y",f).attr("width",l).attr("height",u);return Qe(e,d),e.intersect=function(y){return qe.rect(e,y)},a}var vv=M(()=>{"use strict";Ft();qt();zh();Xt();jt();hr();o(Cd,"drawRect")});async function FK(t,e){let{shapeSvg:r,bbox:n,label:i}=await ot(t,e,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),Qe(e,a),e.intersect=function(u){return qe.rect(e,u)},r}var zK=M(()=>{"use strict";vv();Ft();qt();o(FK,"labelRect")});async function GK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=Math.max(a.width+(e.padding??0),e?.width??0),l=Math.max(a.height+(e.padding??0),e?.height??0),u=[{x:0,y:0},{x:s+3*l/6,y:0},{x:s,y:-l},{x:-(3*l)/6,y:-l}],h,{cssStyles:f}=e;if(e.look==="handDrawn"){let d=Ke.svg(i),p=Ze(e,{}),m=Wt(u),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),f&&h.attr("style",f)}else h=Aa(i,s,l,u);return n&&h.attr("style",n),e.width=s,e.height=l,Qe(e,h),e.intersect=function(d){return qe.polygon(e,u,d)},i}var $K=M(()=>{"use strict";Ft();qt();Xt();jt();Su();o(GK,"lean_left")});async function VK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=Math.max(a.width+(e.padding??0),e?.width??0),l=Math.max(a.height+(e.padding??0),e?.height??0),u=[{x:-3*l/6,y:0},{x:s,y:0},{x:s+3*l/6,y:-l},{x:0,y:-l}],h,{cssStyles:f}=e;if(e.look==="handDrawn"){let d=Ke.svg(i),p=Ze(e,{}),m=Wt(u),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),f&&h.attr("style",f)}else h=Aa(i,s,l,u);return n&&h.attr("style",n),e.width=s,e.height=l,Qe(e,h),e.intersect=function(d){return qe.polygon(e,u,d)},i}var UK=M(()=>{"use strict";Ft();qt();Xt();jt();Su();o(VK,"lean_right")});function HK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.label="",e.labelStyle=r;let i=t.insert("g").attr("class",lt(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,s=Math.max(35,e?.width??0),l=Math.max(35,e?.height??0),u=7,h=[{x:s,y:0},{x:0,y:l+u/2},{x:s-2*u,y:l+u/2},{x:0,y:2*l},{x:s,y:l-u/2},{x:2*u,y:l-u/2}],f=Ke.svg(i),d=Ze(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let p=Wt(h),m=f.path(p,d),g=i.insert(()=>m,":first-child");return a&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",a),n&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",n),g.attr("transform",`translate(-${s/2},${-l})`),Qe(e,g),e.intersect=function(y){return Y.info("lightningBolt intersect",e,y),qe.polygon(e,h,y)},i}var WK=M(()=>{"use strict";ht();Ft();Xt();jt();qt();Ft();o(HK,"lightningBolt")});async function YK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await ot(t,e,lt(e)),l=Math.max(a.width+(e.padding??0),e.width??0),u=l/2,h=u/(2.5+l/50),f=Math.max(a.height+h+(e.padding??0),e.height??0),d=f*.1,p,{cssStyles:m}=e;if(e.look==="handDrawn"){let g=Ke.svg(i),y=gAe(0,0,l,f,u,h,d),v=yAe(0,h,l,f,u,h),x=Ze(e,{}),b=g.path(y,x),w=g.path(v,x);i.insert(()=>w,":first-child").attr("class","line"),p=i.insert(()=>b,":first-child"),p.attr("class","basic label-container"),m&&p.attr("style",m)}else{let g=mAe(0,0,l,f,u,h,d);p=i.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",Fn(m)).attr("style",n)}return p.attr("label-offset-y",h),p.attr("transform",`translate(${-l/2}, ${-(f/2+h)})`),Qe(e,p),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+h-(a.y-(a.top??0))})`),e.intersect=function(g){let y=qe.rect(e,g),v=y.x-(e.x??0);if(u!=0&&(Math.abs(v)<(e.width??0)/2||Math.abs(v)==(e.width??0)/2&&Math.abs(y.y-(e.y??0))>(e.height??0)/2-h)){let x=h*h*(1-v*v/(u*u));x>0&&(x=Math.sqrt(x)),x=h-x,g.y-(e.y??0)>0&&(x=-x),y.y+=x}return y},i}var mAe,gAe,yAe,qK=M(()=>{"use strict";Ft();qt();Xt();jt();hr();mAe=o((t,e,r,n,i,a,s)=>[`M${t},${e+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+a+s}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),gAe=o((t,e,r,n,i,a,s)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+a+s}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),yAe=o((t,e,r,n,i,a)=>[`M${t-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");o(YK,"linedCylinder")});async function XK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await ot(t,e,lt(e)),l=Math.max(a.width+(e.padding??0)*2,e?.width??0),u=Math.max(a.height+(e.padding??0)*2,e?.height??0),h=u/4,f=u+h,{cssStyles:d}=e,p=Ke.svg(i),m=Ze(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=[{x:-l/2-l/2*.1,y:-f/2},{x:-l/2-l/2*.1,y:f/2},...zo(-l/2-l/2*.1,f/2,l/2+l/2*.1,f/2,h,.8),{x:l/2+l/2*.1,y:-f/2},{x:-l/2-l/2*.1,y:-f/2},{x:-l/2,y:-f/2},{x:-l/2,y:f/2*1.1},{x:-l/2,y:-f/2}],y=p.polygon(g.map(x=>[x.x,x.y]),m),v=i.insert(()=>y,":first-child");return v.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",d),n&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-l/2+(e.padding??0)+l/2*.1/2-(a.x-(a.left??0))},${-u/2+(e.padding??0)-h/2-(a.y-(a.top??0))})`),Qe(e,v),e.intersect=function(x){return qe.polygon(e,g,x)},i}var jK=M(()=>{"use strict";Ft();qt();jt();Xt();o(XK,"linedWaveEdgedRect")});async function KK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await ot(t,e,lt(e)),l=Math.max(a.width+(e.padding??0)*2,e?.width??0),u=Math.max(a.height+(e.padding??0)*2,e?.height??0),h=5,f=-l/2,d=-u/2,{cssStyles:p}=e,m=Ke.svg(i),g=Ze(e,{}),y=[{x:f-h,y:d+h},{x:f-h,y:d+u+h},{x:f+l-h,y:d+u+h},{x:f+l-h,y:d+u},{x:f+l,y:d+u},{x:f+l,y:d+u-h},{x:f+l+h,y:d+u-h},{x:f+l+h,y:d-h},{x:f+h,y:d-h},{x:f+h,y:d},{x:f,y:d},{x:f,y:d+h}],v=[{x:f,y:d+h},{x:f+l-h,y:d+h},{x:f+l-h,y:d+u},{x:f+l,y:d+u},{x:f+l,y:d},{x:f,y:d}];e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let x=Wt(y),b=m.path(x,g),w=Wt(v),_=m.path(w,{...g,fill:"none"}),T=i.insert(()=>_,":first-child");return T.insert(()=>b,":first-child"),T.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",n),s.attr("transform",`translate(${-(a.width/2)-h-(a.x-(a.left??0))}, ${-(a.height/2)+h-(a.y-(a.top??0))})`),Qe(e,T),e.intersect=function(E){return qe.polygon(e,y,E)},i}var QK=M(()=>{"use strict";Ft();Xt();jt();qt();o(KK,"multiRect")});async function ZK(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await ot(t,e,lt(e)),l=Math.max(a.width+(e.padding??0)*2,e?.width??0),u=Math.max(a.height+(e.padding??0)*2,e?.height??0),h=u/4,f=u+h,d=-l/2,p=-f/2,m=5,{cssStyles:g}=e,y=zo(d-m,p+f+m,d+l-m,p+f+m,h,.8),v=y?.[y.length-1],x=[{x:d-m,y:p+m},{x:d-m,y:p+f+m},...y,{x:d+l-m,y:v.y-m},{x:d+l,y:v.y-m},{x:d+l,y:v.y-2*m},{x:d+l+m,y:v.y-2*m},{x:d+l+m,y:p-m},{x:d+m,y:p-m},{x:d+m,y:p},{x:d,y:p},{x:d,y:p+m}],b=[{x:d,y:p+m},{x:d+l-m,y:p+m},{x:d+l-m,y:v.y-m},{x:d+l,y:v.y-m},{x:d+l,y:p},{x:d,y:p}],w=Ke.svg(i),_=Ze(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");let T=Wt(x),E=w.path(T,_),L=Wt(b),C=w.path(L,_),A=i.insert(()=>E,":first-child");return A.insert(()=>C),A.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&A.selectAll("path").attr("style",g),n&&e.look!=="handDrawn"&&A.selectAll("path").attr("style",n),A.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-(a.width/2)-m-(a.x-(a.left??0))}, ${-(a.height/2)+m-h/2-(a.y-(a.top??0))})`),Qe(e,A),e.intersect=function(I){return qe.polygon(e,x,I)},i}var JK=M(()=>{"use strict";Ft();qt();jt();Xt();o(ZK,"multiWaveEdgedRectangle")});async function eQ(t,e,{config:{themeVariables:r}}){let{labelStyles:n,nodeStyles:i}=et(e);e.labelStyle=n,e.useHtmlLabels||Sr().flowchart?.htmlLabels!==!1||(e.centerLabel=!0);let{shapeSvg:s,bbox:l}=await ot(t,e,lt(e)),u=Math.max(l.width+(e.padding??0)*2,e?.width??0),h=Math.max(l.height+(e.padding??0)*2,e?.height??0),f=-u/2,d=-h/2,{cssStyles:p}=e,m=Ke.svg(s),g=Ze(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=m.rectangle(f,d,u,h,g),v=s.insert(()=>y,":first-child");return v.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",p),i&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",i),Qe(e,v),e.intersect=function(x){return qe.rect(e,x)},s}var tQ=M(()=>{"use strict";jt();qt();Xt();Ft();Ua();o(eQ,"note")});async function rQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=a.width+e.padding,l=a.height+e.padding,u=s+l,h=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],f,{cssStyles:d}=e;if(e.look==="handDrawn"){let p=Ke.svg(i),m=Ze(e,{}),g=vAe(0,0,u),y=p.path(g,m);f=i.insert(()=>y,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`),d&&f.attr("style",d)}else f=Aa(i,u,u,h);return n&&f.attr("style",n),Qe(e,f),e.intersect=function(p){return Y.debug(`APA12 Intersect called SPLIT +point:`,p,` +node: +`,e,` +res:`,qe.polygon(e,h,p)),qe.polygon(e,h,p)},i}var vAe,nQ=M(()=>{"use strict";ht();Ft();qt();Xt();jt();Su();vAe=o((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");o(rQ,"question")});async function iQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await ot(t,e,lt(e)),l=Math.max(a.width+(e.padding??0),e?.width??0),u=Math.max(a.height+(e.padding??0),e?.height??0),h=-l/2,f=-u/2,d=f/2,p=[{x:h+d,y:f},{x:h,y:0},{x:h+d,y:-f},{x:-h,y:-f},{x:-h,y:f}],{cssStyles:m}=e,g=Ke.svg(i),y=Ze(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let v=Wt(p),x=g.path(v,y),b=i.insert(()=>x,":first-child");return b.attr("class","basic label-container"),m&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",m),n&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",n),b.attr("transform",`translate(${-d/2},0)`),s.attr("transform",`translate(${-d/2-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Qe(e,b),e.intersect=function(w){return qe.polygon(e,p,w)},i}var aQ=M(()=>{"use strict";Ft();qt();Xt();jt();o(iQ,"rect_left_inv_arrow")});function xAe(t,e){e&&t.attr("style",e)}async function bAe(t){let e=ze(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),n=t.label;t.label&&pi(t.label)&&(n=await hh(t.label.replace(je.lineBreakRegex,` +`),de()));let i=t.isNode?"nodeLabel":"edgeLabel";return r.html('"+n+""),xAe(r,t.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}var wAe,gc,I5=M(()=>{"use strict";mr();ht();Vt();fr();hr();o(xAe,"applyStyle");o(bAe,"addHtmlLabel");wAe=o(async(t,e,r,n)=>{let i=t||"";if(typeof i=="object"&&(i=i[0]),xr(de().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"
    "),Y.info("vertexText"+i);let a={isNode:n,label:Ca(i).replace(/fa[blrs]?:fa-[\w-]+/g,l=>``),labelStyle:e&&e.replace("fill:","color:")};return await bAe(a)}else{let a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",e.replace("color:","fill:"));let s=[];typeof i=="string"?s=i.split(/\\n|\n|/gi):Array.isArray(i)?s=i:s=[];for(let l of s){let u=document.createElementNS("http://www.w3.org/2000/svg","tspan");u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),u.setAttribute("dy","1em"),u.setAttribute("x","0"),r?u.setAttribute("class","title-row"):u.setAttribute("class","row"),u.textContent=l.trim(),a.appendChild(u)}return a}},"createLabel"),gc=wAe});async function sQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let i;e.cssClasses?i="node "+e.cssClasses:i="node default";let a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),s=a.insert("g"),l=a.insert("g").attr("class","label").attr("style",n),u=e.description,h=e.label,f=l.node().appendChild(await gc(h,e.labelStyle,!0,!0)),d={width:0,height:0};if(xr(de()?.flowchart?.htmlLabels)){let C=f.children[0],A=ze(f);d=C.getBoundingClientRect(),A.attr("width",d.width),A.attr("height",d.height)}Y.info("Text 2",u);let p=u||[],m=f.getBBox(),g=l.node().appendChild(await gc(p.join?p.join("
    "):p,e.labelStyle,!0,!0)),y=g.children[0],v=ze(g);d=y.getBoundingClientRect(),v.attr("width",d.width),v.attr("height",d.height);let x=(e.padding||0)/2;ze(g).attr("transform","translate( "+(d.width>m.width?0:(m.width-d.width)/2)+", "+(m.height+x+5)+")"),ze(f).attr("transform","translate( "+(d.width(Y.debug("Rough node insert CXC",I),D),":first-child"),E=a.insert(()=>(Y.debug("Rough node insert CXC",I),I),":first-child")}else E=s.insert("rect",":first-child"),L=s.insert("line"),E.attr("class","outer title-state").attr("style",n).attr("x",-d.width/2-x).attr("y",-d.height/2-x).attr("width",d.width+(e.padding||0)).attr("height",d.height+(e.padding||0)),L.attr("class","divider").attr("x1",-d.width/2-x).attr("x2",d.width/2+x).attr("y1",-d.height/2-x+m.height+x).attr("y2",-d.height/2-x+m.height+x);return Qe(e,E),e.intersect=function(C){return qe.rect(e,C)},a}var oQ=M(()=>{"use strict";mr();fr();Ft();I5();qt();Xt();jt();Vt();zh();ht();o(sQ,"rectWithTitle")});async function lQ(t,e){let r={rx:5,ry:5,classes:"",labelPaddingX:(e?.padding||0)*1,labelPaddingY:(e?.padding||0)*1};return Cd(t,e,r)}var cQ=M(()=>{"use strict";vv();o(lQ,"roundedRect")});async function uQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await ot(t,e,lt(e)),l=e?.padding??0,u=Math.max(a.width+(e.padding??0)*2,e?.width??0),h=Math.max(a.height+(e.padding??0)*2,e?.height??0),f=-a.width/2-l,d=-a.height/2-l,{cssStyles:p}=e,m=Ke.svg(i),g=Ze(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=[{x:f,y:d},{x:f+u+8,y:d},{x:f+u+8,y:d+h},{x:f-8,y:d+h},{x:f-8,y:d},{x:f,y:d},{x:f,y:d+h}],v=m.polygon(y.map(b=>[b.x,b.y]),g),x=i.insert(()=>v,":first-child");return x.attr("class","basic label-container").attr("style",Fn(p)),n&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",n),p&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",n),s.attr("transform",`translate(${-u/2+4+(e.padding??0)-(a.x-(a.left??0))},${-h/2+(e.padding??0)-(a.y-(a.top??0))})`),Qe(e,x),e.intersect=function(b){return qe.rect(e,b)},i}var hQ=M(()=>{"use strict";Ft();qt();Xt();jt();hr();o(uQ,"shadedProcess")});async function fQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await ot(t,e,lt(e)),l=Math.max(a.width+(e.padding??0)*2,e?.width??0),u=Math.max(a.height+(e.padding??0)*2,e?.height??0),h=-l/2,f=-u/2,{cssStyles:d}=e,p=Ke.svg(i),m=Ze(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=[{x:h,y:f},{x:h,y:f+u},{x:h+l,y:f+u},{x:h+l,y:f-u/2}],y=Wt(g),v=p.path(y,m),x=i.insert(()=>v,":first-child");return x.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",d),n&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",n),x.attr("transform",`translate(0, ${u/4})`),s.attr("transform",`translate(${-l/2+(e.padding??0)-(a.x-(a.left??0))}, ${-u/4+(e.padding??0)-(a.y-(a.top??0))})`),Qe(e,x),e.intersect=function(b){return qe.polygon(e,g,b)},i}var dQ=M(()=>{"use strict";Ft();qt();Xt();jt();o(fQ,"slopedRect")});async function pQ(t,e){let r={rx:0,ry:0,classes:"",labelPaddingX:(e?.padding||0)*2,labelPaddingY:(e?.padding||0)*1};return Cd(t,e,r)}var mQ=M(()=>{"use strict";vv();o(pQ,"squareRect")});async function gQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=a.height+e.padding,l=a.width+s/4+e.padding,u,{cssStyles:h}=e;if(e.look==="handDrawn"){let f=Ke.svg(i),d=Ze(e,{}),p=La(-l/2,-s/2,l,s,s/2),m=f.path(p,d);u=i.insert(()=>m,":first-child"),u.attr("class","basic label-container").attr("style",Fn(h))}else u=i.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",s/2).attr("ry",s/2).attr("x",-l/2).attr("y",-s/2).attr("width",l).attr("height",s);return Qe(e,u),e.intersect=function(f){return qe.rect(e,f)},i}var yQ=M(()=>{"use strict";Ft();qt();Xt();jt();zh();hr();o(gQ,"stadium")});async function vQ(t,e){return Cd(t,e,{rx:5,ry:5,classes:"flowchart-node"})}var xQ=M(()=>{"use strict";vv();o(vQ,"state")});function bQ(t,e,{config:{themeVariables:r}}){let{labelStyles:n,nodeStyles:i}=et(e);e.labelStyle=n;let{cssStyles:a}=e,{lineColor:s,stateBorder:l,nodeBorder:u}=r,h=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),f=Ke.svg(h),d=Ze(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let p=f.circle(0,0,14,{...d,stroke:s,strokeWidth:2}),m=l??u,g=f.circle(0,0,5,{...d,fill:m,stroke:m,strokeWidth:2,fillStyle:"solid"}),y=h.insert(()=>p,":first-child");return y.insert(()=>g),a&&y.selectAll("path").attr("style",a),i&&y.selectAll("path").attr("style",i),Qe(e,y),e.intersect=function(v){return qe.circle(e,7,v)},h}var wQ=M(()=>{"use strict";jt();qt();Xt();Ft();o(bQ,"stateEnd")});function TQ(t,e,{config:{themeVariables:r}}){let{lineColor:n}=r,i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a;if(e.look==="handDrawn"){let l=Ke.svg(i).circle(0,0,14,Cj(n));a=i.insert(()=>l),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else a=i.insert("circle",":first-child"),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return Qe(e,a),e.intersect=function(s){return qe.circle(e,7,s)},i}var kQ=M(()=>{"use strict";jt();qt();Xt();Ft();o(TQ,"stateStart")});async function EQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=(e?.padding||0)/2,l=a.width+e.padding,u=a.height+e.padding,h=-a.width/2-s,f=-a.height/2-s,d=[{x:0,y:0},{x:l,y:0},{x:l,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-u},{x:-8,y:-u},{x:-8,y:0}];if(e.look==="handDrawn"){let p=Ke.svg(i),m=Ze(e,{}),g=p.rectangle(h-8,f,l+16,u,m),y=p.line(h,f,h,f+u,m),v=p.line(h+l,f,h+l,f+u,m);i.insert(()=>y,":first-child"),i.insert(()=>v,":first-child");let x=i.insert(()=>g,":first-child"),{cssStyles:b}=e;x.attr("class","basic label-container").attr("style",Fn(b)),Qe(e,x)}else{let p=Aa(i,l,u,d);n&&p.attr("style",n),Qe(e,p)}return e.intersect=function(p){return qe.polygon(e,d,p)},i}var SQ=M(()=>{"use strict";Ft();qt();Xt();jt();Su();hr();o(EQ,"subroutine")});async function CQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=Math.max(a.width+(e.padding??0)*2,e?.width??0),l=Math.max(a.height+(e.padding??0)*2,e?.height??0),u=-s/2,h=-l/2,f=.2*l,d=.2*l,{cssStyles:p}=e,m=Ke.svg(i),g=Ze(e,{}),y=[{x:u-f/2,y:h},{x:u+s+f/2,y:h},{x:u+s+f/2,y:h+l},{x:u-f/2,y:h+l}],v=[{x:u+s-f/2,y:h+l},{x:u+s+f/2,y:h+l},{x:u+s+f/2,y:h+l-d}];e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let x=Wt(y),b=m.path(x,g),w=Wt(v),_=m.path(w,{...g,fillStyle:"solid"}),T=i.insert(()=>_,":first-child");return T.insert(()=>b,":first-child"),T.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",n),Qe(e,T),e.intersect=function(E){return qe.polygon(e,y,E)},i}var AQ=M(()=>{"use strict";Ft();Xt();jt();qt();o(CQ,"taggedRect")});async function _Q(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await ot(t,e,lt(e)),l=Math.max(a.width+(e.padding??0)*2,e?.width??0),u=Math.max(a.height+(e.padding??0)*2,e?.height??0),h=u/4,f=.2*l,d=.2*u,p=u+h,{cssStyles:m}=e,g=Ke.svg(i),y=Ze(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let v=[{x:-l/2-l/2*.1,y:p/2},...zo(-l/2-l/2*.1,p/2,l/2+l/2*.1,p/2,h,.8),{x:l/2+l/2*.1,y:-p/2},{x:-l/2-l/2*.1,y:-p/2}],x=-l/2+l/2*.1,b=-p/2-d*.4,w=[{x:x+l-f,y:(b+u)*1.4},{x:x+l,y:b+u-d},{x:x+l,y:(b+u)*.9},...zo(x+l,(b+u)*1.3,x+l-f,(b+u)*1.5,-u*.03,.5)],_=Wt(v),T=g.path(_,y),E=Wt(w),L=g.path(E,{...y,fillStyle:"solid"}),C=i.insert(()=>L,":first-child");return C.insert(()=>T,":first-child"),C.attr("class","basic label-container"),m&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",m),n&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",n),C.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-l/2+(e.padding??0)-(a.x-(a.left??0))},${-u/2+(e.padding??0)-h/2-(a.y-(a.top??0))})`),Qe(e,C),e.intersect=function(A){return qe.polygon(e,v,A)},i}var LQ=M(()=>{"use strict";Ft();qt();jt();Xt();o(_Q,"taggedWaveEdgedRectangle")});async function DQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=Math.max(a.width+e.padding,e?.width||0),l=Math.max(a.height+e.padding,e?.height||0),u=-s/2,h=-l/2,f=i.insert("rect",":first-child");return f.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",u).attr("y",h).attr("width",s).attr("height",l),Qe(e,f),e.intersect=function(d){return qe.rect(e,d)},i}var NQ=M(()=>{"use strict";Ft();qt();Xt();o(DQ,"text")});async function RQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s,halfPadding:l}=await ot(t,e,lt(e)),u=e.look==="neo"?l*2:l,h=a.height+u,f=h/2,d=f/(2.5+h/50),p=a.width+d+u,{cssStyles:m}=e,g;if(e.look==="handDrawn"){let y=Ke.svg(i),v=kAe(0,0,p,h,d,f),x=EAe(0,0,p,h,d,f),b=y.path(v,Ze(e,{})),w=y.path(x,Ze(e,{fill:"none"}));g=i.insert(()=>w,":first-child"),g=i.insert(()=>b,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{let y=TAe(0,0,p,h,d,f);g=i.insert("path",":first-child").attr("d",y).attr("class","basic label-container").attr("style",Fn(m)).attr("style",n),g.attr("class","basic label-container"),m&&g.selectAll("path").attr("style",m),n&&g.selectAll("path").attr("style",n)}return g.attr("label-offset-x",d),g.attr("transform",`translate(${-p/2}, ${h/2} )`),s.attr("transform",`translate(${-(a.width/2)-d-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Qe(e,g),e.intersect=function(y){let v=qe.rect(e,y),x=v.y-(e.y??0);if(f!=0&&(Math.abs(x)<(e.height??0)/2||Math.abs(x)==(e.height??0)/2&&Math.abs(v.x-(e.x??0))>(e.width??0)/2-d)){let b=d*d*(1-x*x/(f*f));b!=0&&(b=Math.sqrt(Math.abs(b))),b=d-b,y.x-(e.x??0)>0&&(b=-b),v.x+=b}return v},i}var TAe,kAe,EAe,MQ=M(()=>{"use strict";Ft();Xt();jt();qt();hr();TAe=o((t,e,r,n,i,a)=>`M${t},${e} + a${i},${a} 0,0,1 0,${-n} + l${r},0 + a${i},${a} 0,0,1 0,${n} + M${r},${-n} + a${i},${a} 0,0,0 0,${n} + l${-r},0`,"createCylinderPathD"),kAe=o((t,e,r,n,i,a)=>[`M${t},${e}`,`M${t+r},${e}`,`a${i},${a} 0,0,0 0,${-n}`,`l${-r},0`,`a${i},${a} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),EAe=o((t,e,r,n,i,a)=>[`M${t+r/2},${-n/2}`,`a${i},${a} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD");o(RQ,"tiltedCylinder")});async function IQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=a.width+e.padding,l=a.height+e.padding,u=[{x:-3*l/6,y:0},{x:s+3*l/6,y:0},{x:s,y:-l},{x:0,y:-l}],h,{cssStyles:f}=e;if(e.look==="handDrawn"){let d=Ke.svg(i),p=Ze(e,{}),m=Wt(u),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),f&&h.attr("style",f)}else h=Aa(i,s,l,u);return n&&h.attr("style",n),e.width=s,e.height=l,Qe(e,h),e.intersect=function(d){return qe.polygon(e,u,d)},i}var OQ=M(()=>{"use strict";Ft();qt();Xt();jt();Su();o(IQ,"trapezoid")});async function PQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=60,l=20,u=Math.max(s,a.width+(e.padding??0)*2,e?.width??0),h=Math.max(l,a.height+(e.padding??0)*2,e?.height??0),{cssStyles:f}=e,d=Ke.svg(i),p=Ze(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let m=[{x:-u/2*.8,y:-h/2},{x:u/2*.8,y:-h/2},{x:u/2,y:-h/2*.6},{x:u/2,y:h/2},{x:-u/2,y:h/2},{x:-u/2,y:-h/2*.6}],g=Wt(m),y=d.path(g,p),v=i.insert(()=>y,":first-child");return v.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&v.selectChildren("path").attr("style",f),n&&e.look!=="handDrawn"&&v.selectChildren("path").attr("style",n),Qe(e,v),e.intersect=function(x){return qe.polygon(e,m,x)},i}var BQ=M(()=>{"use strict";Ft();qt();Xt();jt();o(PQ,"trapezoidalPentagon")});async function FQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await ot(t,e,lt(e)),l=xr(de().flowchart?.htmlLabels),u=a.width+(e.padding??0),h=u+a.height,f=u+a.height,d=[{x:0,y:0},{x:f,y:0},{x:f/2,y:-h}],{cssStyles:p}=e,m=Ke.svg(i),g=Ze(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=Wt(d),v=m.path(y,g),x=i.insert(()=>v,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`);return p&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",p),n&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",n),e.width=u,e.height=h,Qe(e,x),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${h/2-(a.height+(e.padding??0)/(l?2:1)-(a.y-(a.top??0)))})`),e.intersect=function(b){return Y.info("Triangle intersect",e,d,b),qe.polygon(e,d,b)},i}var zQ=M(()=>{"use strict";ht();Ft();qt();Xt();jt();Ft();fr();Vt();o(FQ,"triangle")});async function GQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await ot(t,e,lt(e)),l=Math.max(a.width+(e.padding??0)*2,e?.width??0),u=Math.max(a.height+(e.padding??0)*2,e?.height??0),h=u/8,f=u+h,{cssStyles:d}=e,m=70-l,g=m>0?m/2:0,y=Ke.svg(i),v=Ze(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let x=[{x:-l/2-g,y:f/2},...zo(-l/2-g,f/2,l/2+g,f/2,h,.8),{x:l/2+g,y:-f/2},{x:-l/2-g,y:-f/2}],b=Wt(x),w=y.path(b,v),_=i.insert(()=>w,":first-child");return _.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",d),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),_.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-l/2+(e.padding??0)-(a.x-(a.left??0))},${-u/2+(e.padding??0)-h-(a.y-(a.top??0))})`),Qe(e,_),e.intersect=function(T){return qe.polygon(e,x,T)},i}var $Q=M(()=>{"use strict";Ft();qt();jt();Xt();o(GQ,"waveEdgedRectangle")});async function VQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await ot(t,e,lt(e)),s=100,l=50,u=Math.max(a.width+(e.padding??0)*2,e?.width??0),h=Math.max(a.height+(e.padding??0)*2,e?.height??0),f=u/h,d=u,p=h;d>p*f?p=d/f:d=p*f,d=Math.max(d,s),p=Math.max(p,l);let m=Math.min(p*.2,p/4),g=p+m*2,{cssStyles:y}=e,v=Ke.svg(i),x=Ze(e,{});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let b=[{x:-d/2,y:g/2},...zo(-d/2,g/2,d/2,g/2,m,1),{x:d/2,y:-g/2},...zo(d/2,-g/2,-d/2,-g/2,m,-1)],w=Wt(b),_=v.path(w,x),T=i.insert(()=>_,":first-child");return T.attr("class","basic label-container"),y&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",y),n&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",n),Qe(e,T),e.intersect=function(E){return qe.polygon(e,b,E)},i}var UQ=M(()=>{"use strict";Ft();qt();Xt();jt();o(VQ,"waveRectangle")});async function HQ(t,e){let{labelStyles:r,nodeStyles:n}=et(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await ot(t,e,lt(e)),l=Math.max(a.width+(e.padding??0)*2,e?.width??0),u=Math.max(a.height+(e.padding??0)*2,e?.height??0),h=5,f=-l/2,d=-u/2,{cssStyles:p}=e,m=Ke.svg(i),g=Ze(e,{}),y=[{x:f-h,y:d-h},{x:f-h,y:d+u},{x:f+l,y:d+u},{x:f+l,y:d-h}],v=`M${f-h},${d-h} L${f+l},${d-h} L${f+l},${d+u} L${f-h},${d+u} L${f-h},${d-h} + M${f-h},${d} L${f+l},${d} + M${f},${d-h} L${f},${d+u}`;e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let x=m.path(v,g),b=i.insert(()=>x,":first-child");return b.attr("transform",`translate(${h/2}, ${h/2})`),b.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",n),s.attr("transform",`translate(${-(a.width/2)+h/2-(a.x-(a.left??0))}, ${-(a.height/2)+h/2-(a.y-(a.top??0))})`),Qe(e,b),e.intersect=function(w){return qe.polygon(e,y,w)},i}var WQ=M(()=>{"use strict";Ft();Xt();jt();qt();o(HQ,"windowPane")});async function YQ(t,e,r,n,i=r.class.padding??12){let a=n?0:3,s=t.insert("g").attr("class",lt(e)).attr("id",e.domId||e.id),l=null,u=null,h=null,f=null,d=0,p=0,m=0;if(l=s.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let b=e.annotations[0];await O5(l,{text:`\xAB${b}\xBB`},0),d=l.node().getBBox().height}u=s.insert("g").attr("class","label-group text"),await O5(u,e,0,["font-weight: bolder"]);let g=u.node().getBBox();p=g.height,h=s.insert("g").attr("class","members-group text");let y=0;for(let b of e.members){let w=await O5(h,b,y,[b.parseClassifier()]);y+=w+a}m=h.node().getBBox().height,m<=0&&(m=i/2),f=s.insert("g").attr("class","methods-group text");let v=0;for(let b of e.methods){let w=await O5(f,b,v,[b.parseClassifier()]);v+=w+a}let x=s.node().getBBox();if(l!==null){let b=l.node().getBBox();l.attr("transform",`translate(${-b.width/2})`)}return u.attr("transform",`translate(${-g.width/2}, ${d})`),x=s.node().getBBox(),h.attr("transform",`translate(0, ${d+p+i*2})`),x=s.node().getBBox(),f.attr("transform",`translate(0, ${d+p+(m?m+i*4:i*2)})`),x=s.node().getBBox(),{shapeSvg:s,bbox:x}}async function O5(t,e,r,n=[]){let i=t.insert("g").attr("class","label").attr("style",n.join("; ")),a=Sr(),s="useHtmlLabels"in e?e.useHtmlLabels:xr(a.htmlLabels)??!0,l="";"text"in e?l=e.text:l=e.label,!s&&l.startsWith("\\")&&(l=l.substring(1)),pi(l)&&(s=!0);let u=await Si(i,i7(Ca(l)),{width:Js(l,a)+50,classes:"markdown-node-label",useHtmlLabels:s},a),h,f=1;if(s){let d=u.children[0],p=ze(u);f=d.innerHTML.split("
    ").length,d.innerHTML.includes("")&&(f+=d.innerHTML.split("").length-1);let m=d.getElementsByTagName("img");if(m){let g=l.replace(/]*>/g,"").trim()==="";await Promise.all([...m].map(y=>new Promise(v=>{function x(){if(y.style.display="flex",y.style.flexDirection="column",g){let b=a.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,_=parseInt(b,10)*5+"px";y.style.minWidth=_,y.style.maxWidth=_}else y.style.width="100%";v(y)}o(x,"setupImage"),setTimeout(()=>{y.complete&&x()}),y.addEventListener("error",x),y.addEventListener("load",x)})))}h=d.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}else{n.includes("font-weight: bolder")&&ze(u).selectAll("tspan").attr("font-weight",""),f=u.children.length;let d=u.children[0];(u.textContent===""||u.textContent.includes(">"))&&(d.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" "&&(d.textContent=d.textContent[0]+" "+d.textContent.substring(1))),d.textContent==="undefined"&&(d.textContent=""),h=u.getBBox()}return i.attr("transform","translate(0,"+(-h.height/(2*f)+r)+")"),h.height}var qQ=M(()=>{"use strict";mr();Ua();Ft();hr();Vt();Dl();fr();o(YQ,"textHelper");o(O5,"addText")});async function XQ(t,e){let r=de(),n=r.class.padding??12,i=n,a=e.useHtmlLabels??xr(r.htmlLabels)??!0,s=e;s.annotations=s.annotations??[],s.members=s.members??[],s.methods=s.methods??[];let{shapeSvg:l,bbox:u}=await YQ(t,e,r,a,i),{labelStyles:h,nodeStyles:f}=et(e);e.labelStyle=h,e.cssStyles=s.styles||"";let d=s.styles?.join(";")||f||"";e.cssStyles||(e.cssStyles=d.replaceAll("!important","").split(";"));let p=s.members.length===0&&s.methods.length===0&&!r.class?.hideEmptyMembersBox,m=Ke.svg(l),g=Ze(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=u.width,v=u.height;s.members.length===0&&s.methods.length===0?v+=i:s.members.length>0&&s.methods.length===0&&(v+=i*2);let x=-y/2,b=-v/2,w=m.rectangle(x-n,b-n-(p?n:s.members.length===0&&s.methods.length===0?-n/2:0),y+2*n,v+2*n+(p?n*2:s.members.length===0&&s.methods.length===0?-n:0),g),_=l.insert(()=>w,":first-child");_.attr("class","basic label-container");let T=_.node().getBBox();l.selectAll(".text").each((A,I,D)=>{let k=ze(D[I]),R=k.attr("transform"),S=0;if(R){let F=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(R);F&&(S=parseFloat(F[2]))}let O=S+b+n-(p?n:s.members.length===0&&s.methods.length===0?-n/2:0);a||(O-=4);let N=x;(k.attr("class").includes("label-group")||k.attr("class").includes("annotation-group"))&&(N=-k.node()?.getBBox().width/2||0,l.selectAll("text").each(function(P,F,B){window.getComputedStyle(B[F]).textAnchor==="middle"&&(N=0)})),k.attr("transform",`translate(${N}, ${O})`)});let E=l.select(".annotation-group").node().getBBox().height-(p?n/2:0)||0,L=l.select(".label-group").node().getBBox().height-(p?n/2:0)||0,C=l.select(".members-group").node().getBBox().height-(p?n/2:0)||0;if(s.members.length>0||s.methods.length>0||p){let A=m.line(T.x,E+L+b+n,T.x+T.width,E+L+b+n,g);l.insert(()=>A).attr("class","divider").attr("style",d)}if(p||s.members.length>0||s.methods.length>0){let A=m.line(T.x,E+L+C+b+i*2+n,T.x+T.width,E+L+C+b+n+i*2,g);l.insert(()=>A).attr("class","divider").attr("style",d)}if(s.look!=="handDrawn"&&l.selectAll("path").attr("style",d),_.select(":nth-child(2)").attr("style",d),l.selectAll(".divider").select("path").attr("style",d),e.labelStyle?l.selectAll("span").attr("style",e.labelStyle):l.selectAll("span").attr("style",d),!a){let A=RegExp(/color\s*:\s*([^;]*)/),I=A.exec(d);if(I){let D=I[0].replace("color","fill");l.selectAll("tspan").attr("style",D)}else if(h){let D=A.exec(h);if(D){let k=D[0].replace("color","fill");l.selectAll("tspan").attr("style",k)}}}return Qe(e,_),e.intersect=function(A){return qe.rect(e,A)},l}var jQ=M(()=>{"use strict";Ft();Vt();mr();jt();Xt();qt();qQ();fr();o(XQ,"classBox")});async function KQ(t,e,{config:r}){let{labelStyles:n,nodeStyles:i}=et(e);e.labelStyle=n||"";let a=10,s=e.width;e.width=(e.width??200)-10;let{shapeSvg:l,bbox:u,label:h}=await ot(t,e,lt(e)),f=e.padding||10,d="",p;"ticket"in e&&e.ticket&&r?.kanban?.ticketBaseUrl&&(d=r?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),p=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",d).attr("target","_blank"));let m={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1},g,y;p?{label:g,bbox:y}=await T5(p,"ticket"in e&&e.ticket||"",m):{label:g,bbox:y}=await T5(l,"ticket"in e&&e.ticket||"",m);let{label:v,bbox:x}=await T5(l,"assigned"in e&&e.assigned||"",m);e.width=s;let b=10,w=e?.width||0,_=Math.max(y.height,x.height)/2,T=Math.max(u.height+b*2,e?.height||0)+_,E=-w/2,L=-T/2;h.attr("transform","translate("+(f-w/2)+", "+(-_-u.height/2)+")"),g.attr("transform","translate("+(f-w/2)+", "+(-_+u.height/2)+")"),v.attr("transform","translate("+(f+w/2-x.width-2*a)+", "+(-_+u.height/2)+")");let C,{rx:A,ry:I}=e,{cssStyles:D}=e;if(e.look==="handDrawn"){let k=Ke.svg(l),R=Ze(e,{}),S=A||I?k.path(La(E,L,w,T,A||0),R):k.rectangle(E,L,w,T,R);C=l.insert(()=>S,":first-child"),C.attr("class","basic label-container").attr("style",D||null)}else{C=l.insert("rect",":first-child"),C.attr("class","basic label-container __APA__").attr("style",i).attr("rx",A??5).attr("ry",I??5).attr("x",E).attr("y",L).attr("width",w).attr("height",T);let k="priority"in e&&e.priority;if(k){let R=l.append("line"),S=E+2,O=L+Math.floor((A??0)/2),N=L+T-Math.floor((A??0)/2);R.attr("x1",S).attr("y1",O).attr("x2",S).attr("y2",N).attr("stroke-width","4").attr("stroke",SAe(k))}}return Qe(e,C),e.height=T,e.intersect=function(k){return qe.rect(e,k)},l}var SAe,QQ=M(()=>{"use strict";Ft();qt();zh();Xt();jt();SAe=o(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");o(KQ,"kanbanItem")});function ZQ(t){return t in z9}var CAe,AAe,z9,G9=M(()=>{"use strict";Vj();Wj();qj();jj();Qj();Jj();tK();nK();aK();oK();cK();hK();dK();mK();yK();xK();wK();kK();SK();AK();LK();NK();MK();OK();BK();zK();$K();UK();WK();qK();jK();QK();JK();tQ();nQ();aQ();oQ();cQ();hQ();dQ();mQ();yQ();xQ();wQ();kQ();SQ();AQ();LQ();NQ();MQ();OQ();BQ();zQ();$Q();UQ();WQ();jQ();QQ();CAe=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:pQ},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:lQ},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:gQ},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:EQ},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:lK},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Kj},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:rQ},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:TK},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:VK},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:GK},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:IQ},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:PK},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:fK},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:DQ},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Yj},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:uQ},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:TQ},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:bQ},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:vK},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:EK},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:eK},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:rK},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:iK},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:HK},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:GQ},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:bK},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:RQ},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:YK},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:sK},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:uK},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:FQ},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:HQ},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:pK},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:PQ},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:gK},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:fQ},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:ZK},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:KK},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Hj},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Zj},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:_Q},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:CQ},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:VQ},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:iQ},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:XK}],AAe=o(()=>{let e=[...Object.entries({state:vQ,choice:Xj,note:eQ,rectWithTitle:sQ,labelRect:FK,iconSquare:RK,iconCircle:_K,icon:CK,iconRounded:DK,imageSquare:IK,anchor:$j,kanbanItem:KQ,classBox:XQ}),...CAe.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(i=>[i,r.handler]))];return Object.fromEntries(e)},"generateShapeMap"),z9=AAe();o(ZQ,"isValidShape")});function pZ(t){return typeof t>"u"||t===null}function _Ae(t){return typeof t=="object"&&t!==null}function LAe(t){return Array.isArray(t)?t:pZ(t)?[]:[t]}function DAe(t,e){var r,n,i,a;if(e)for(a=Object.keys(e),r=0,n=a.length;rl&&(a=" ... ",e=n-l+a.length),r-n>l&&(s=" ...",r=n+l-s.length),{str:a+t.slice(e,r).replace(/\t/g,"\u2192")+s,pos:n-e+a.length}}function V9(t,e){return Pi.repeat(" ",e-t.length)+t}function zAe(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],a,s=-1;a=r.exec(t.buffer);)i.push(a.index),n.push(a.index+a[0].length),t.position<=a.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var l="",u,h,f=Math.min(t.line+e.linesAfter,i.length).toString().length,d=e.maxLength-(e.indent+f+3);for(u=1;u<=e.linesBefore&&!(s-u<0);u++)h=$9(t.buffer,n[s-u],i[s-u],t.position-(n[s]-n[s-u]),d),l=Pi.repeat(" ",e.indent)+V9((t.line-u+1).toString(),f)+" | "+h.str+` +`+l;for(h=$9(t.buffer,n[s],i[s],t.position,d),l+=Pi.repeat(" ",e.indent)+V9((t.line+1).toString(),f)+" | "+h.str+` +`,l+=Pi.repeat("-",e.indent+f+3+h.pos)+`^ +`,u=1;u<=e.linesAfter&&!(s+u>=i.length);u++)h=$9(t.buffer,n[s+u],i[s+u],t.position-(n[s]-n[s+u]),d),l+=Pi.repeat(" ",e.indent)+V9((t.line+u+1).toString(),f)+" | "+h.str+` +`;return l.replace(/\n$/,"")}function UAe(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function HAe(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if($Ae.indexOf(r)===-1)throw new Es('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=UAe(e.styleAliases||null),VAe.indexOf(this.kind)===-1)throw new Es('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function JQ(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(a,s){a.tag===n.tag&&a.kind===n.kind&&a.multi===n.multi&&(i=s)}),r[i]=n}),r}function WAe(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(o(n,"collectType"),e=0,r=arguments.length;e=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}function g8e(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Pi.isNegativeZero(t))return"-0.0";return r=t.toString(10),m8e.test(r)?r.replace("e",".e"):r}function y8e(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Pi.isNegativeZero(t))}function b8e(t){return t===null?!1:yZ.exec(t)!==null||vZ.exec(t)!==null}function w8e(t){var e,r,n,i,a,s,l,u=0,h=null,f,d,p;if(e=yZ.exec(t),e===null&&(e=vZ.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(a=+e[4],s=+e[5],l=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(f=+e[10],d=+(e[11]||0),h=(f*60+d)*6e4,e[9]==="-"&&(h=-h)),p=new Date(Date.UTC(r,n,i,a,s,l,u)),h&&p.setTime(p.getTime()-h),p}function T8e(t){return t.toISOString()}function E8e(t){return t==="<<"||t===null}function C8e(t){if(t===null)return!1;var e,r,n=0,i=t.length,a=j9;for(r=0;r64)){if(e<0)return!1;n+=6}return n%8===0}function A8e(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,a=j9,s=0,l=[];for(e=0;e>16&255),l.push(s>>8&255),l.push(s&255)),s=s<<6|a.indexOf(n.charAt(e));return r=i%4*6,r===0?(l.push(s>>16&255),l.push(s>>8&255),l.push(s&255)):r===18?(l.push(s>>10&255),l.push(s>>2&255)):r===12&&l.push(s>>4&255),new Uint8Array(l)}function _8e(t){var e="",r=0,n,i,a=t.length,s=j9;for(n=0;n>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]),r=(r<<8)+t[n];return i=a%3,i===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):i===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):i===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}function L8e(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}function M8e(t){if(t===null)return!0;var e=[],r,n,i,a,s,l=t;for(r=0,n=l.length;r>10)+55296,(t-65536&1023)+56320)}function Z8e(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||xZ,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function CZ(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=GAe(r),new Es(e,r)}function Qt(t,e){throw CZ(t,e)}function F5(t,e){t.onWarning&&t.onWarning.call(null,CZ(t,e))}function Gh(t,e,r,n){var i,a,s,l;if(e1&&(t.result+=Pi.repeat(` +`,e-1))}function J8e(t,e,r){var n,i,a,s,l,u,h,f,d=t.kind,p=t.result,m;if(m=t.input.charCodeAt(t.position),Ss(m)||lm(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=t.input.charCodeAt(t.position+1),Ss(i)||r&&lm(i)))return!1;for(t.kind="scalar",t.result="",a=s=t.position,l=!1;m!==0;){if(m===58){if(i=t.input.charCodeAt(t.position+1),Ss(i)||r&&lm(i))break}else if(m===35){if(n=t.input.charCodeAt(t.position-1),Ss(n))break}else{if(t.position===t.lineStart&&$5(t)||r&&lm(m))break;if(yc(m))if(u=t.line,h=t.lineStart,f=t.lineIndent,Ci(t,!1,-1),t.lineIndent>=e){l=!0,m=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=u,t.lineStart=h,t.lineIndent=f;break}}l&&(Gh(t,a,s,!1),Q9(t,t.line-u),a=s=t.position,l=!1),_d(m)||(s=t.position+1),m=t.input.charCodeAt(++t.position)}return Gh(t,a,s,!1),t.result?!0:(t.kind=d,t.result=p,!1)}function e_e(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Gh(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else yc(r)?(Gh(t,n,i,!0),Q9(t,Ci(t,!1,e)),n=i=t.position):t.position===t.lineStart&&$5(t)?Qt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Qt(t,"unexpected end of the stream within a single quoted scalar")}function t_e(t,e){var r,n,i,a,s,l;if(l=t.input.charCodeAt(t.position),l!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(l=t.input.charCodeAt(t.position))!==0;){if(l===34)return Gh(t,r,t.position,!0),t.position++,!0;if(l===92){if(Gh(t,r,t.position,!0),l=t.input.charCodeAt(++t.position),yc(l))Ci(t,!1,e);else if(l<256&&EZ[l])t.result+=SZ[l],t.position++;else if((s=j8e(l))>0){for(i=s,a=0;i>0;i--)l=t.input.charCodeAt(++t.position),(s=X8e(l))>=0?a=(a<<4)+s:Qt(t,"expected hexadecimal character");t.result+=Q8e(a),t.position++}else Qt(t,"unknown escape sequence");r=n=t.position}else yc(l)?(Gh(t,r,n,!0),Q9(t,Ci(t,!1,e)),r=n=t.position):t.position===t.lineStart&&$5(t)?Qt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Qt(t,"unexpected end of the stream within a double quoted scalar")}function r_e(t,e){var r=!0,n,i,a,s=t.tag,l,u=t.anchor,h,f,d,p,m,g=Object.create(null),y,v,x,b;if(b=t.input.charCodeAt(t.position),b===91)f=93,m=!1,l=[];else if(b===123)f=125,m=!0,l={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=l),b=t.input.charCodeAt(++t.position);b!==0;){if(Ci(t,!0,e),b=t.input.charCodeAt(t.position),b===f)return t.position++,t.tag=s,t.anchor=u,t.kind=m?"mapping":"sequence",t.result=l,!0;r?b===44&&Qt(t,"expected the node content, but found ','"):Qt(t,"missed comma between flow collection entries"),v=y=x=null,d=p=!1,b===63&&(h=t.input.charCodeAt(t.position+1),Ss(h)&&(d=p=!0,t.position++,Ci(t,!0,e))),n=t.line,i=t.lineStart,a=t.position,um(t,e,P5,!1,!0),v=t.tag,y=t.result,Ci(t,!0,e),b=t.input.charCodeAt(t.position),(p||t.line===n)&&b===58&&(d=!0,b=t.input.charCodeAt(++t.position),Ci(t,!0,e),um(t,e,P5,!1,!0),x=t.result),m?cm(t,l,g,v,y,x,n,i,a):d?l.push(cm(t,null,g,v,y,x,n,i,a)):l.push(y),Ci(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(r=!0,b=t.input.charCodeAt(++t.position)):r=!1}Qt(t,"unexpected end of the stream within a flow collection")}function n_e(t,e){var r,n,i=U9,a=!1,s=!1,l=e,u=0,h=!1,f,d;if(d=t.input.charCodeAt(t.position),d===124)n=!1;else if(d===62)n=!0;else return!1;for(t.kind="scalar",t.result="";d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)U9===i?i=d===43?eZ:H8e:Qt(t,"repeat of a chomping mode identifier");else if((f=K8e(d))>=0)f===0?Qt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Qt(t,"repeat of an indentation width identifier"):(l=e+f-1,s=!0);else break;if(_d(d)){do d=t.input.charCodeAt(++t.position);while(_d(d));if(d===35)do d=t.input.charCodeAt(++t.position);while(!yc(d)&&d!==0)}for(;d!==0;){for(K9(t),t.lineIndent=0,d=t.input.charCodeAt(t.position);(!s||t.lineIndentl&&(l=t.lineIndent),yc(d)){u++;continue}if(t.lineIndente)&&u!==0)Qt(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(v&&(s=t.line,l=t.lineStart,u=t.position),um(t,e,B5,!0,i)&&(v?g=t.result:y=t.result),v||(cm(t,d,p,m,g,y,s,l,u),m=g=y=null),Ci(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&b!==0)Qt(t,"bad indentation of a mapping entry");else if(t.lineIndente?u=1:t.lineIndent===e?u=0:t.lineIndente?u=1:t.lineIndent===e?u=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),d=0,p=t.implicitTypes.length;d"),t.result!==null&&g.kind!==t.kind&&Qt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Qt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||f}function l_e(t){var e=t.position,r,n,i,a=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Ci(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(a=!0,s=t.input.charCodeAt(++t.position),r=t.position;s!==0&&!Ss(s);)s=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&Qt(t,"directive name must not be less than one character in length");s!==0;){for(;_d(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!yc(s));break}if(yc(s))break;for(r=t.position;s!==0&&!Ss(s);)s=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}s!==0&&K9(t),$h.call(nZ,n)?nZ[n](t,n,i):F5(t,'unknown document directive "'+n+'"')}if(Ci(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Ci(t,!0,-1)):a&&Qt(t,"directives end mark is expected"),um(t,t.lineIndent-1,B5,!1,!0),Ci(t,!0,-1),t.checkLineBreaks&&Y8e.test(t.input.slice(e,t.position))&&F5(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&$5(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Ci(t,!0,-1));return}if(t.position"u"&&(r=e,e=null);var n=AZ(t,r);if(typeof e!="function")return n;for(var i=0,a=n.length;i=55296&&r<=56319&&e+1=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function PZ(t){var e=/^\n* /;return e.test(t)}function F_e(t,e,r,n,i,a,s,l){var u,h=0,f=null,d=!1,p=!1,m=n!==-1,g=-1,y=P_e(xv(t,0))&&B_e(xv(t,t.length-1));if(e||s)for(u=0;u=65536?u+=2:u++){if(h=xv(t,u),!kv(h))return om;y=y&&lZ(h,f,l),f=h}else{for(u=0;u=65536?u+=2:u++){if(h=xv(t,u),h===wv)d=!0,m&&(p=p||u-g-1>n&&t[g+1]!==" ",g=u);else if(!kv(h))return om;y=y&&lZ(h,f,l),f=h}p=p||m&&u-g-1>n&&t[g+1]!==" "}return!d&&!p?y&&!s&&!i(t)?BZ:a===Tv?om:q9:r>9&&PZ(t)?om:s?a===Tv?om:q9:p?zZ:FZ}function z_e(t,e,r,n,i){t.dump=function(){if(e.length===0)return t.quotingType===Tv?'""':"''";if(!t.noCompatMode&&(L_e.indexOf(e)!==-1||D_e.test(e)))return t.quotingType===Tv?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),l=n||t.flowLevel>-1&&r>=t.flowLevel;function u(h){return O_e(t,h)}switch(o(u,"testAmbiguity"),F_e(e,l,t.indent,s,u,t.quotingType,t.forceQuotes&&!n,i)){case BZ:return e;case q9:return"'"+e.replace(/'/g,"''")+"'";case FZ:return"|"+cZ(e,t.indent)+uZ(sZ(e,a));case zZ:return">"+cZ(e,t.indent)+uZ(sZ(G_e(e,s),a));case om:return'"'+$_e(e)+'"';default:throw new Es("impossible error: invalid scalar style")}}()}function cZ(t,e){var r=PZ(t)?String(e):"",n=t[t.length-1]===` +`,i=n&&(t[t.length-2]===` +`||t===` +`),a=i?"+":n?"":"-";return r+a+` +`}function uZ(t){return t[t.length-1]===` +`?t.slice(0,-1):t}function G_e(t,e){for(var r=/(\n+)([^\n]*)/g,n=function(){var h=t.indexOf(` +`);return h=h!==-1?h:t.length,r.lastIndex=h,hZ(t.slice(0,h),e)}(),i=t[0]===` +`||t[0]===" ",a,s;s=r.exec(t);){var l=s[1],u=s[2];a=u[0]===" ",n+=l+(!i&&!a&&u!==""?` +`:"")+hZ(u,e),i=a}return n}function hZ(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,a,s=0,l=0,u="";n=r.exec(t);)l=n.index,l-i>e&&(a=s>i?s:l,u+=` +`+t.slice(i,a),i=a+1),s=l;return u+=` +`,t.length-i>e&&s>i?u+=t.slice(i,s)+` +`+t.slice(s+1):u+=t.slice(i),u.slice(1)}function $_e(t){for(var e="",r=0,n,i=0;i=65536?i+=2:i++)r=xv(t,i),n=Na[r],!n&&kv(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||R_e(r);return e}function V_e(t,e,r){var n="",i=t.tag,a,s,l;for(a=0,s=r.length;a"u"&&Cu(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function fZ(t,e,r,n){var i="",a=t.tag,s,l,u;for(s=0,l=r.length;s"u"&&Cu(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Y9(t,e)),t.dump&&wv===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=a,t.dump=i||"[]"}function U_e(t,e,r){var n="",i=t.tag,a=Object.keys(r),s,l,u,h,f;for(s=0,l=a.length;s1024&&(f+="? "),f+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Cu(t,e,h,!1,!1)&&(f+=t.dump,n+=f));t.tag=i,t.dump="{"+n+"}"}function H_e(t,e,r,n){var i="",a=t.tag,s=Object.keys(r),l,u,h,f,d,p;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new Es("sortKeys must be a boolean or a function");for(l=0,u=s.length;l1024,d&&(t.dump&&wv===t.dump.charCodeAt(0)?p+="?":p+="? "),p+=t.dump,d&&(p+=Y9(t,e)),Cu(t,e+1,f,!0,d)&&(t.dump&&wv===t.dump.charCodeAt(0)?p+=":":p+=": ",p+=t.dump,i+=p));t.tag=a,t.dump=i||"{}"}function dZ(t,e,r){var n,i,a,s,l,u;for(i=r?t.explicitTypes:t.implicitTypes,a=0,s=i.length;a tag resolver accepts not "'+u+'" style');t.dump=n}return!0}return!1}function Cu(t,e,r,n,i,a,s){t.tag=null,t.dump=r,dZ(t,r,!1)||dZ(t,r,!0);var l=LZ.call(t.dump),u=n,h;n&&(n=t.flowLevel<0||t.flowLevel>e);var f=l==="[object Object]"||l==="[object Array]",d,p;if(f&&(d=t.duplicates.indexOf(r),p=d!==-1),(t.tag!==null&&t.tag!=="?"||p||t.indent!==2&&e>0)&&(i=!1),p&&t.usedDuplicates[d])t.dump="*ref_"+d;else{if(f&&p&&!t.usedDuplicates[d]&&(t.usedDuplicates[d]=!0),l==="[object Object]")n&&Object.keys(t.dump).length!==0?(H_e(t,e,t.dump,i),p&&(t.dump="&ref_"+d+t.dump)):(U_e(t,e,t.dump),p&&(t.dump="&ref_"+d+" "+t.dump));else if(l==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?fZ(t,e-1,t.dump,i):fZ(t,e,t.dump,i),p&&(t.dump="&ref_"+d+t.dump)):(V_e(t,e,t.dump),p&&(t.dump="&ref_"+d+" "+t.dump));else if(l==="[object String]")t.tag!=="?"&&z_e(t,t.dump,e,a,u);else{if(l==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Es("unacceptable kind of an object to dump "+l)}t.tag!==null&&t.tag!=="?"&&(h=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",t.dump=h+" "+t.dump)}return!0}function W_e(t,e){var r=[],n=[],i,a;for(X9(t,r,n),i=0,a=n.length;i{"use strict";o(pZ,"isNothing");o(_Ae,"isObject");o(LAe,"toArray");o(DAe,"extend");o(NAe,"repeat");o(RAe,"isNegativeZero");MAe=pZ,IAe=_Ae,OAe=LAe,PAe=NAe,BAe=RAe,FAe=DAe,Pi={isNothing:MAe,isObject:IAe,toArray:OAe,repeat:PAe,isNegativeZero:BAe,extend:FAe};o(mZ,"formatError");o(bv,"YAMLException$1");bv.prototype=Object.create(Error.prototype);bv.prototype.constructor=bv;bv.prototype.toString=o(function(e){return this.name+": "+mZ(this,e)},"toString");Es=bv;o($9,"getLine");o(V9,"padStart");o(zAe,"makeSnippet");GAe=zAe,$Ae=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],VAe=["scalar","sequence","mapping"];o(UAe,"compileStyleAliases");o(HAe,"Type$1");Da=HAe;o(JQ,"compileList");o(WAe,"compileMap");o(H9,"Schema$1");H9.prototype.extend=o(function(e){var r=[],n=[];if(e instanceof Da)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Es("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof Da))throw new Es("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Es("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new Es("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(a){if(!(a instanceof Da))throw new Es("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(H9.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=JQ(i,"implicit"),i.compiledExplicit=JQ(i,"explicit"),i.compiledTypeMap=WAe(i.compiledImplicit,i.compiledExplicit),i},"extend");YAe=H9,qAe=new Da("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(t){return t!==null?t:""},"construct")}),XAe=new Da("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(t){return t!==null?t:[]},"construct")}),jAe=new Da("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(t){return t!==null?t:{}},"construct")}),KAe=new YAe({explicit:[qAe,XAe,jAe]});o(QAe,"resolveYamlNull");o(ZAe,"constructYamlNull");o(JAe,"isNull");e8e=new Da("tag:yaml.org,2002:null",{kind:"scalar",resolve:QAe,construct:ZAe,predicate:JAe,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase"),empty:o(function(){return""},"empty")},defaultStyle:"lowercase"});o(t8e,"resolveYamlBoolean");o(r8e,"constructYamlBoolean");o(n8e,"isBoolean");i8e=new Da("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t8e,construct:r8e,predicate:n8e,represent:{lowercase:o(function(t){return t?"true":"false"},"lowercase"),uppercase:o(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});o(a8e,"isHexCode");o(s8e,"isOctCode");o(o8e,"isDecCode");o(l8e,"resolveYamlInteger");o(c8e,"constructYamlInteger");o(u8e,"isInteger");h8e=new Da("tag:yaml.org,2002:int",{kind:"scalar",resolve:l8e,construct:c8e,predicate:u8e,represent:{binary:o(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:o(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:o(function(t){return t.toString(10)},"decimal"),hexadecimal:o(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),f8e=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");o(d8e,"resolveYamlFloat");o(p8e,"constructYamlFloat");m8e=/^[-+]?[0-9]+e/;o(g8e,"representYamlFloat");o(y8e,"isFloat");v8e=new Da("tag:yaml.org,2002:float",{kind:"scalar",resolve:d8e,construct:p8e,predicate:y8e,represent:g8e,defaultStyle:"lowercase"}),gZ=KAe.extend({implicit:[e8e,i8e,h8e,v8e]}),x8e=gZ,yZ=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),vZ=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");o(b8e,"resolveYamlTimestamp");o(w8e,"constructYamlTimestamp");o(T8e,"representYamlTimestamp");k8e=new Da("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:b8e,construct:w8e,instanceOf:Date,represent:T8e});o(E8e,"resolveYamlMerge");S8e=new Da("tag:yaml.org,2002:merge",{kind:"scalar",resolve:E8e}),j9=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;o(C8e,"resolveYamlBinary");o(A8e,"constructYamlBinary");o(_8e,"representYamlBinary");o(L8e,"isBinary");D8e=new Da("tag:yaml.org,2002:binary",{kind:"scalar",resolve:C8e,construct:A8e,predicate:L8e,represent:_8e}),N8e=Object.prototype.hasOwnProperty,R8e=Object.prototype.toString;o(M8e,"resolveYamlOmap");o(I8e,"constructYamlOmap");O8e=new Da("tag:yaml.org,2002:omap",{kind:"sequence",resolve:M8e,construct:I8e}),P8e=Object.prototype.toString;o(B8e,"resolveYamlPairs");o(F8e,"constructYamlPairs");z8e=new Da("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:B8e,construct:F8e}),G8e=Object.prototype.hasOwnProperty;o($8e,"resolveYamlSet");o(V8e,"constructYamlSet");U8e=new Da("tag:yaml.org,2002:set",{kind:"mapping",resolve:$8e,construct:V8e}),xZ=x8e.extend({implicit:[k8e,S8e],explicit:[D8e,O8e,z8e,U8e]}),$h=Object.prototype.hasOwnProperty,P5=1,bZ=2,wZ=3,B5=4,U9=1,H8e=2,eZ=3,W8e=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Y8e=/[\x85\u2028\u2029]/,q8e=/[,\[\]\{\}]/,TZ=/^(?:!|!!|![a-z\-]+!)$/i,kZ=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;o(tZ,"_class");o(yc,"is_EOL");o(_d,"is_WHITE_SPACE");o(Ss,"is_WS_OR_EOL");o(lm,"is_FLOW_INDICATOR");o(X8e,"fromHexCode");o(j8e,"escapedHexLen");o(K8e,"fromDecimalCode");o(rZ,"simpleEscapeSequence");o(Q8e,"charFromCodepoint");EZ=new Array(256),SZ=new Array(256);for(Ad=0;Ad<256;Ad++)EZ[Ad]=rZ(Ad)?1:0,SZ[Ad]=rZ(Ad);o(Z8e,"State$1");o(CZ,"generateError");o(Qt,"throwError");o(F5,"throwWarning");nZ={YAML:o(function(e,r,n){var i,a,s;e.version!==null&&Qt(e,"duplication of %YAML directive"),n.length!==1&&Qt(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Qt(e,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),s=parseInt(i[2],10),a!==1&&Qt(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&F5(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(e,r,n){var i,a;n.length!==2&&Qt(e,"TAG directive accepts exactly two arguments"),i=n[0],a=n[1],TZ.test(i)||Qt(e,"ill-formed tag handle (first argument) of the TAG directive"),$h.call(e.tagMap,i)&&Qt(e,'there is a previously declared suffix for "'+i+'" tag handle'),kZ.test(a)||Qt(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Qt(e,"tag prefix is malformed: "+a)}e.tagMap[i]=a},"handleTagDirective")};o(Gh,"captureSegment");o(iZ,"mergeMappings");o(cm,"storeMappingPair");o(K9,"readLineBreak");o(Ci,"skipSeparationSpace");o($5,"testDocumentSeparator");o(Q9,"writeFoldedLines");o(J8e,"readPlainScalar");o(e_e,"readSingleQuotedScalar");o(t_e,"readDoubleQuotedScalar");o(r_e,"readFlowCollection");o(n_e,"readBlockScalar");o(aZ,"readBlockSequence");o(i_e,"readBlockMapping");o(a_e,"readTagProperty");o(s_e,"readAnchorProperty");o(o_e,"readAlias");o(um,"composeNode");o(l_e,"readDocument");o(AZ,"loadDocuments");o(c_e,"loadAll$1");o(u_e,"load$1");h_e=c_e,f_e=u_e,_Z={loadAll:h_e,load:f_e},LZ=Object.prototype.toString,DZ=Object.prototype.hasOwnProperty,Z9=65279,d_e=9,wv=10,p_e=13,m_e=32,g_e=33,y_e=34,W9=35,v_e=37,x_e=38,b_e=39,w_e=42,NZ=44,T_e=45,z5=58,k_e=61,E_e=62,S_e=63,C_e=64,RZ=91,MZ=93,A_e=96,IZ=123,__e=124,OZ=125,Na={};Na[0]="\\0";Na[7]="\\a";Na[8]="\\b";Na[9]="\\t";Na[10]="\\n";Na[11]="\\v";Na[12]="\\f";Na[13]="\\r";Na[27]="\\e";Na[34]='\\"';Na[92]="\\\\";Na[133]="\\N";Na[160]="\\_";Na[8232]="\\L";Na[8233]="\\P";L_e=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],D_e=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;o(N_e,"compileStyleMap");o(R_e,"encodeHex");M_e=1,Tv=2;o(I_e,"State");o(sZ,"indentString");o(Y9,"generateNextLine");o(O_e,"testImplicitResolving");o(G5,"isWhitespace");o(kv,"isPrintable");o(oZ,"isNsCharOrWhitespace");o(lZ,"isPlainSafe");o(P_e,"isPlainSafeFirst");o(B_e,"isPlainSafeLast");o(xv,"codePointAt");o(PZ,"needIndentIndicator");BZ=1,q9=2,FZ=3,zZ=4,om=5;o(F_e,"chooseScalarStyle");o(z_e,"writeScalar");o(cZ,"blockHeader");o(uZ,"dropEndingNewline");o(G_e,"foldString");o(hZ,"foldLine");o($_e,"escapeString");o(V_e,"writeFlowSequence");o(fZ,"writeBlockSequence");o(U_e,"writeFlowMapping");o(H_e,"writeBlockMapping");o(dZ,"detectType");o(Cu,"writeNode");o(W_e,"getDuplicateReferences");o(X9,"inspectNode");o(Y_e,"dump$1");q_e=Y_e,X_e={dump:q_e};o(J9,"renamed");hm=gZ,fm=_Z.load,uNt=_Z.loadAll,hNt=X_e.dump,fNt=J9("safeLoad","load"),dNt=J9("safeLoadAll","loadAll"),pNt=J9("safeDump","dump")});function rL(t){let e=[];for(let r of t){let n=Sv.get(r);n?.styles&&(e=[...e,...n.styles??[]].map(i=>i.trim())),n?.textStyles&&(e=[...e,...n.textStyles??[]].map(i=>i.trim()))}return e}var j_e,GZ,dm,Vh,Cs,Sv,Au,nL,iL,U5,tL,Go,H5,W5,Y5,q5,K_e,Q_e,Z_e,J_e,e9e,t9e,r9e,aL,n9e,i9e,a9e,$Z,s9e,o9e,sL,VZ,UZ,l9e,HZ,c9e,u9e,h9e,f9e,d9e,Ev,WZ,YZ,p9e,m9e,qZ,g9e,y9e,v9e,x9e,b9e,XZ,jZ,w9e,T9e,k9e,E9e,S9e,C9e,X5,oL=M(()=>{"use strict";mr();hr();Vt();fr();G9();ht();V5();ki();j_e="flowchart-",GZ=0,dm=de(),Vh=new Map,Cs=[],Sv=new Map,Au=[],nL=new Map,iL=new Map,U5=0,tL=!0,W5=[],Y5=o(t=>je.sanitizeText(t,dm),"sanitizeText"),q5=o(function(t){for(let e of Vh.values())if(e.id===t)return e.domId;return t},"lookUpDomId"),K_e=o(function(t,e,r,n,i,a,s={},l){if(!t||t.trim().length===0)return;let u,h=Vh.get(t);if(h===void 0&&(h={id:t,labelType:"text",domId:j_e+t+"-"+GZ,styles:[],classes:[]},Vh.set(t,h)),GZ++,e!==void 0?(dm=de(),u=Y5(e.text.trim()),h.labelType=e.type,u.startsWith('"')&&u.endsWith('"')&&(u=u.substring(1,u.length-1)),h.text=u):h.text===void 0&&(h.text=t),r!==void 0&&(h.type=r),n?.forEach(function(f){h.styles.push(f)}),i?.forEach(function(f){h.classes.push(f)}),a!==void 0&&(h.dir=a),h.props===void 0?h.props=s:s!==void 0&&Object.assign(h.props,s),l!==void 0){let f;l.includes(` +`)?f=l+` +`:f=`{ +`+l+` +}`;let d=fm(f,{schema:hm});if(d.shape){if(d.shape!==d.shape.toLowerCase()||d.shape.includes("_"))throw new Error(`No such shape: ${d.shape}. Shape names should be lowercase.`);if(!ZQ(d.shape))throw new Error(`No such shape: ${d.shape}.`);h.type=d?.shape}d?.label&&(h.text=d?.label),d?.icon&&(h.icon=d?.icon,!d.label?.trim()&&h.text===t&&(h.text="")),d?.form&&(h.form=d?.form),d?.pos&&(h.pos=d?.pos),d?.img&&(h.img=d?.img,!d.label?.trim()&&h.text===t&&(h.text="")),d?.constraint&&(h.constraint=d.constraint),d.w&&(h.assetWidth=Number(d.w)),d.h&&(h.assetHeight=Number(d.h))}},"addVertex"),Q_e=o(function(t,e,r){let a={start:t,end:e,type:void 0,text:"",labelType:"text"};Y.info("abc78 Got edge...",a);let s=r.text;if(s!==void 0&&(a.text=Y5(s.text.trim()),a.text.startsWith('"')&&a.text.endsWith('"')&&(a.text=a.text.substring(1,a.text.length-1)),a.labelType=s.type),r!==void 0&&(a.type=r.type,a.stroke=r.stroke,a.length=r.length>10?10:r.length),Cs.length<(dm.maxEdges??500))Y.info("Pushing edge..."),Cs.push(a);else throw new Error(`Edge limit exceeded. ${Cs.length} edges found, but the limit is ${dm.maxEdges}. + +Initialize mermaid with maxEdges set to a higher number to allow more edges. +You cannot set this config via configuration inside the diagram as it is a secure config. +You have to call mermaid.initialize.`)},"addSingleLink"),Z_e=o(function(t,e,r){Y.info("addLink",t,e,r);for(let n of t)for(let i of e)Q_e(n,i,r)},"addLink"),J_e=o(function(t,e){t.forEach(function(r){r==="default"?Cs.defaultInterpolate=e:Cs[r].interpolate=e})},"updateLinkInterpolate"),e9e=o(function(t,e){t.forEach(function(r){if(typeof r=="number"&&r>=Cs.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${Cs.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?Cs.defaultStyle=e:(Cs[r].style=e,(Cs[r]?.style?.length??0)>0&&!Cs[r]?.style?.some(n=>n?.startsWith("fill"))&&Cs[r]?.style?.push("fill:none"))})},"updateLink"),t9e=o(function(t,e){t.split(",").forEach(function(r){let n=Sv.get(r);n===void 0&&(n={id:r,styles:[],textStyles:[]},Sv.set(r,n)),e?.forEach(function(i){if(/color/.exec(i)){let a=i.replace("fill","bgFill");n.textStyles.push(a)}n.styles.push(i)})})},"addClass"),r9e=o(function(t){Go=t,/.*/.exec(Go)&&(Go="LR"),/.*v/.exec(Go)&&(Go="TB"),Go==="TD"&&(Go="TB")},"setDirection"),aL=o(function(t,e){for(let r of t.split(",")){let n=Vh.get(r);n&&n.classes.push(e);let i=nL.get(r);i&&i.classes.push(e)}},"setClass"),n9e=o(function(t,e){if(e!==void 0){e=Y5(e);for(let r of t.split(","))iL.set(H5==="gen-1"?q5(r):r,e)}},"setTooltip"),i9e=o(function(t,e,r){let n=q5(t);if(de().securityLevel!=="loose"||e===void 0)return;let i=[];if(typeof r=="string"){i=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s")),i.classed("hover",!0)}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),ze(this).classed("hover",!1)})},"setupToolTips");W5.push(HZ);c9e=o(function(t="gen-1"){Vh=new Map,Sv=new Map,Cs=[],W5=[HZ],Au=[],nL=new Map,U5=0,iL=new Map,tL=!0,H5=t,dm=de(),_r()},"clear"),u9e=o(t=>{H5=t||"gen-2"},"setGen"),h9e=o(function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},"defaultStyle"),f9e=o(function(t,e,r){let n=t.text.trim(),i=r.text;t===r&&/\s/.exec(r.text)&&(n=void 0);function a(h){let f={boolean:{},number:{},string:{}},d=[],p;return{nodeList:h.filter(function(g){let y=typeof g;return g.stmt&&g.stmt==="dir"?(p=g.value,!1):g.trim()===""?!1:y in f?f[y].hasOwnProperty(g)?!1:f[y][g]=!0:d.includes(g)?!1:d.push(g)}),dir:p}}o(a,"uniq");let{nodeList:s,dir:l}=a(e.flat());if(H5==="gen-1")for(let h=0;h2e3)return{result:!1,count:0};if(WZ[Ev]=e,Au[e].id===t)return{result:!0,count:0};let n=0,i=1;for(;n=0){let s=YZ(t,a);if(s.result)return{result:!0,count:i+s.count};i=i+s.count}n=n+1}return{result:!1,count:i}},"indexNodes2"),p9e=o(function(t){return WZ[t]},"getDepthFirstPos"),m9e=o(function(){Ev=-1,Au.length>0&&YZ("none",Au.length-1)},"indexNodes"),qZ=o(function(){return Au},"getSubGraphs"),g9e=o(()=>tL?(tL=!1,!0):!1,"firstGraph"),y9e=o(t=>{let e=t.trim(),r="arrow_open";switch(e[0]){case"<":r="arrow_point",e=e.slice(1);break;case"x":r="arrow_cross",e=e.slice(1);break;case"o":r="arrow_circle",e=e.slice(1);break}let n="normal";return e.includes("=")&&(n="thick"),e.includes(".")&&(n="dotted"),{type:r,stroke:n}},"destructStartLink"),v9e=o((t,e)=>{let r=e.length,n=0;for(let i=0;i{let e=t.trim(),r=e.slice(0,-1),n="arrow_open";switch(e.slice(-1)){case"x":n="arrow_cross",e.startsWith("x")&&(n="double_"+n,r=r.slice(1));break;case">":n="arrow_point",e.startsWith("<")&&(n="double_"+n,r=r.slice(1));break;case"o":n="arrow_circle",e.startsWith("o")&&(n="double_"+n,r=r.slice(1));break}let i="normal",a=r.length-1;r.startsWith("=")&&(i="thick"),r.startsWith("~")&&(i="invisible");let s=v9e(".",r);return s&&(i="dotted",a=s),{type:n,stroke:i,length:a}},"destructEndLink"),b9e=o((t,e)=>{let r=x9e(t),n;if(e){if(n=y9e(e),n.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(n.type==="arrow_open")n.type=r.type;else{if(n.type!==r.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return n.type==="double_arrow"&&(n.type="double_arrow_point"),n.length=r.length,n}return r},"destructLink"),XZ=o((t,e)=>{for(let r of t)if(r.nodes.includes(e))return!0;return!1},"exists"),jZ=o((t,e)=>{let r=[];return t.nodes.forEach((n,i)=>{XZ(e,n)||r.push(t.nodes[i])}),{nodes:r}},"makeUniq"),w9e={firstGraph:g9e},T9e=o(t=>{if(t.img)return"imageSquare";if(t.icon)return t.form==="circle"?"iconCircle":t.form==="square"?"iconSquare":t.form==="rounded"?"iconRounded":"icon";switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}},"getTypeFromVertex"),k9e=o((t,e)=>t.find(r=>r.id===e),"findNode"),E9e=o(t=>{let e="none",r="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":r=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":e=t.replace("double_",""),r=e;break}return{arrowTypeStart:e,arrowTypeEnd:r}},"destructEdgeType"),S9e=o((t,e,r,n,i,a)=>{let s=r.get(t.id),l=n.get(t.id)??!1,u=k9e(e,t.id);if(u)u.cssStyles=t.styles,u.cssCompiledStyles=rL(t.classes),u.cssClasses=t.classes.join(" ");else{let h={id:t.id,label:t.text,labelStyle:"",parentId:s,padding:i.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:rL(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:a,link:t.link,linkTarget:t.linkTarget,tooltip:$Z(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};l?e.push({...h,isGroup:!0,shape:"rect"}):e.push({...h,isGroup:!1,shape:T9e(t)})}},"addNodeFromVertex");o(rL,"getCompiledStyles");C9e=o(()=>{let t=de(),e=[],r=[],n=qZ(),i=new Map,a=new Map;for(let u=n.length-1;u>=0;u--){let h=n[u];h.nodes.length>0&&a.set(h.id,!0);for(let f of h.nodes)i.set(f,h.id)}for(let u=n.length-1;u>=0;u--){let h=n[u];e.push({id:h.id,label:h.title,labelStyle:"",parentId:i.get(h.id),padding:8,cssCompiledStyles:rL(h.classes),cssClasses:h.classes.join(" "),shape:"rect",dir:h.dir,isGroup:!0,look:t.look})}VZ().forEach(u=>{S9e(u,e,i,a,t,t.look||"classic")});let l=UZ();return l.forEach((u,h)=>{let{arrowTypeStart:f,arrowTypeEnd:d}=E9e(u.type),p=[...l.defaultStyle??[]];u.style&&p.push(...u.style);let m={id:p5(u.start,u.end,{counter:h,prefix:"L"}),start:u.start,end:u.end,type:u.type??"normal",label:u.text,labelpos:"c",thickness:u.stroke,minlen:u.length,classes:u?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:u?.stroke==="invisible"?"none":f,arrowTypeEnd:u?.stroke==="invisible"?"none":d,arrowheadStyle:"fill: #333",labelStyle:p,style:p,pattern:u.stroke,look:t.look};r.push(m)}),{nodes:e,edges:r,other:{},config:t}},"getData"),X5={defaultConfig:o(()=>S4.flowchart,"defaultConfig"),setAccTitle:Rr,getAccTitle:Pr,getAccDescription:Fr,getData:C9e,setAccDescription:Br,addVertex:K_e,lookUpDomId:q5,addLink:Z_e,updateLinkInterpolate:J_e,updateLink:e9e,addClass:t9e,setDirection:r9e,setClass:aL,setTooltip:n9e,getTooltip:$Z,setClickEvent:s9e,setLink:a9e,bindFunctions:o9e,getDirection:sL,getVertices:VZ,getEdges:UZ,getClasses:l9e,clear:c9e,setGen:u9e,defaultStyle:h9e,addSubGraph:f9e,getDepthFirstPos:p9e,indexNodes:m9e,getSubGraphs:qZ,destructLink:b9e,lex:w9e,exists:XZ,makeUniq:jZ,setDiagramTitle:ln,getDiagramTitle:Jr}});var pm,j5=M(()=>{"use strict";mr();pm=o((t,e)=>{let r;return e==="sandbox"&&(r=ze("#i"+t)),(e==="sandbox"?ze(r.nodes()[0].contentDocument.body):ze("body")).select(`[id="${t}"]`)},"getDiagramElement")});var _u,Cv=M(()=>{"use strict";_u=o(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0,n=e+r;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:n}},"getSubGraphTitleMargins")});var KZ,A9e,_9e,L9e,D9e,N9e,R9e,QZ,mm,ZZ,K5=M(()=>{"use strict";Vt();fr();ht();Cv();mr();jt();Dl();w9();I5();zh();Xt();KZ=o(async(t,e)=>{Y.info("Creating subgraph rect for ",e.id,e);let r=de(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:s}=n,{labelStyles:l,nodeStyles:u,borderStyles:h,backgroundStyles:f}=et(e),d=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),p=xr(r.flowchart.htmlLabels),m=d.insert("g").attr("class","cluster-label "),g=await Si(m,e.label,{style:e.labelStyle,useHtmlLabels:p,isNode:!0}),y=g.getBBox();if(xr(r.flowchart.htmlLabels)){let L=g.children[0],C=ze(g);y=L.getBoundingClientRect(),C.attr("width",y.width),C.attr("height",y.height)}let v=e.width<=y.width+e.padding?y.width+e.padding:e.width;e.width<=y.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;let x=e.height,b=e.x-v/2,w=e.y-x/2;Y.trace("Data ",e,JSON.stringify(e));let _;if(e.look==="handDrawn"){let L=Ke.svg(d),C=Ze(e,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:i}),A=L.path(La(b,w,v,x,0),C);_=d.insert(()=>(Y.debug("Rough node insert CXC",A),A),":first-child"),_.select("path:nth-child(2)").attr("style",h.join(";")),_.select("path").attr("style",f.join(";").replace("fill","stroke"))}else _=d.insert("rect",":first-child"),_.attr("style",u).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",w).attr("width",v).attr("height",x);let{subGraphTitleTopMargin:T}=_u(r);if(m.attr("transform",`translate(${e.x-y.width/2}, ${e.y-e.height/2+T})`),l){let L=m.select("span");L&&L.attr("style",l)}let E=_.node().getBBox();return e.offsetX=0,e.width=E.width,e.height=E.height,e.offsetY=y.height-e.padding/2,e.intersect=function(L){return Oh(e,L)},{cluster:d,labelBBox:y}},"rect"),A9e=o((t,e)=>{let r=t.insert("g").attr("class","note-cluster").attr("id",e.id),n=r.insert("rect",":first-child"),i=0*e.padding,a=i/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");let s=n.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(l){return Oh(e,l)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),_9e=o(async(t,e)=>{let r=de(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:a,compositeBackground:s,compositeTitleBackground:l,nodeBorder:u}=n,h=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),f=h.insert("g",":first-child"),d=h.insert("g").attr("class","cluster-label"),p=h.append("rect"),m=d.node().appendChild(await gc(e.label,e.labelStyle,void 0,!0)),g=m.getBBox();if(xr(r.flowchart.htmlLabels)){let A=m.children[0],I=ze(m);g=A.getBoundingClientRect(),I.attr("width",g.width),I.attr("height",g.height)}let y=0*e.padding,v=y/2,x=(e.width<=g.width+e.padding?g.width+e.padding:e.width)+y;e.width<=g.width+e.padding?e.diff=(x-e.width)/2-e.padding:e.diff=-e.padding;let b=e.height+y,w=e.height+y-g.height-6,_=e.x-x/2,T=e.y-b/2;e.width=x;let E=e.y-e.height/2-v+g.height+2,L;if(e.look==="handDrawn"){let A=e.cssClasses.includes("statediagram-cluster-alt"),I=Ke.svg(h),D=e.rx||e.ry?I.path(La(_,T,x,b,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:u,seed:i}):I.rectangle(_,T,x,b,{seed:i});L=h.insert(()=>D,":first-child");let k=I.rectangle(_,E,x,w,{fill:A?a:s,fillStyle:A?"hachure":"solid",stroke:u,seed:i});L=h.insert(()=>D,":first-child"),p=h.insert(()=>k)}else L=f.insert("rect",":first-child"),L.attr("class","outer").attr("x",_).attr("y",T).attr("width",x).attr("height",b).attr("data-look",e.look),p.attr("class","inner").attr("x",_).attr("y",E).attr("width",x).attr("height",w);d.attr("transform",`translate(${e.x-g.width/2}, ${T+1-(xr(r.flowchart.htmlLabels)?0:3)})`);let C=L.node().getBBox();return e.height=C.height,e.offsetX=0,e.offsetY=g.height-e.padding/2,e.labelBBox=g,e.intersect=function(A){return Oh(e,A)},{cluster:h,labelBBox:g}},"roundedWithTitle"),L9e=o(async(t,e)=>{Y.info("Creating subgraph rect for ",e.id,e);let r=de(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:s}=n,{labelStyles:l,nodeStyles:u,borderStyles:h,backgroundStyles:f}=et(e),d=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),p=xr(r.flowchart.htmlLabels),m=d.insert("g").attr("class","cluster-label "),g=await Si(m,e.label,{style:e.labelStyle,useHtmlLabels:p,isNode:!0,width:e.width}),y=g.getBBox();if(xr(r.flowchart.htmlLabels)){let L=g.children[0],C=ze(g);y=L.getBoundingClientRect(),C.attr("width",y.width),C.attr("height",y.height)}let v=e.width<=y.width+e.padding?y.width+e.padding:e.width;e.width<=y.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;let x=e.height,b=e.x-v/2,w=e.y-x/2;Y.trace("Data ",e,JSON.stringify(e));let _;if(e.look==="handDrawn"){let L=Ke.svg(d),C=Ze(e,{roughness:.7,fill:a,stroke:s,fillWeight:4,seed:i}),A=L.path(La(b,w,v,x,e.rx),C);_=d.insert(()=>(Y.debug("Rough node insert CXC",A),A),":first-child"),_.select("path:nth-child(2)").attr("style",h.join(";")),_.select("path").attr("style",f.join(";").replace("fill","stroke"))}else _=d.insert("rect",":first-child"),_.attr("style",u).attr("rx",e.rx).attr("ry",e.ry).attr("x",b).attr("y",w).attr("width",v).attr("height",x);let{subGraphTitleTopMargin:T}=_u(r);if(m.attr("transform",`translate(${e.x-y.width/2}, ${e.y-e.height/2+T})`),l){let L=m.select("span");L&&L.attr("style",l)}let E=_.node().getBBox();return e.offsetX=0,e.width=E.width,e.height=E.height,e.offsetY=y.height-e.padding/2,e.intersect=function(L){return Oh(e,L)},{cluster:d,labelBBox:y}},"kanbanSection"),D9e=o((t,e)=>{let r=de(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:a}=n,s=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),l=s.insert("g",":first-child"),u=0*e.padding,h=e.width+u;e.diff=-e.padding;let f=e.height+u,d=e.x-h/2,p=e.y-f/2;e.width=h;let m;if(e.look==="handDrawn"){let v=Ke.svg(s).rectangle(d,p,h,f,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:i});m=s.insert(()=>v,":first-child")}else m=l.insert("rect",":first-child"),m.attr("class","divider").attr("x",d).attr("y",p).attr("width",h).attr("height",f).attr("data-look",e.look);let g=m.node().getBBox();return e.height=g.height,e.offsetX=0,e.offsetY=0,e.intersect=function(y){return Oh(e,y)},{cluster:s,labelBBox:{}}},"divider"),N9e=KZ,R9e={rect:KZ,squareRect:N9e,roundedWithTitle:_9e,noteGroup:A9e,divider:D9e,kanbanSection:L9e},QZ=new Map,mm=o(async(t,e)=>{let r=e.shape||"rect",n=await R9e[r](t,e);return QZ.set(e.id,n),n},"insertCluster"),ZZ=o(()=>{QZ=new Map},"clear")});function Q5(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=Un(t),e=Un(e);let[r,n]=[t.x,t.y],[i,a]=[e.x,e.y],s=i-r,l=a-n;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}var $o,Un,Z5,lL=M(()=>{"use strict";$o={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};o(Q5,"calculateDeltaAndAngle");Un=o(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),Z5=o(t=>({x:o(function(e,r,n){let i=0,a=Un(n[0]).x=0?1:-1)}else if(r===n.length-1&&Object.hasOwn($o,t.arrowTypeEnd)){let{angle:m,deltaX:g}=Q5(n[n.length-1],n[n.length-2]);i=$o[t.arrowTypeEnd]*Math.cos(m)*(g>=0?1:-1)}let s=Math.abs(Un(e).x-Un(n[n.length-1]).x),l=Math.abs(Un(e).y-Un(n[n.length-1]).y),u=Math.abs(Un(e).x-Un(n[0]).x),h=Math.abs(Un(e).y-Un(n[0]).y),f=$o[t.arrowTypeStart],d=$o[t.arrowTypeEnd],p=1;if(s0&&l0&&h=0?1:-1)}else if(r===n.length-1&&Object.hasOwn($o,t.arrowTypeEnd)){let{angle:m,deltaY:g}=Q5(n[n.length-1],n[n.length-2]);i=$o[t.arrowTypeEnd]*Math.abs(Math.sin(m))*(g>=0?1:-1)}let s=Math.abs(Un(e).y-Un(n[n.length-1]).y),l=Math.abs(Un(e).x-Un(n[n.length-1]).x),u=Math.abs(Un(e).y-Un(n[0]).y),h=Math.abs(Un(e).x-Un(n[0]).x),f=$o[t.arrowTypeStart],d=$o[t.arrowTypeEnd],p=1;if(s0&&l0&&h{"use strict";ht();eJ=o((t,e,r,n,i)=>{e.arrowTypeStart&&JZ(t,"start",e.arrowTypeStart,r,n,i),e.arrowTypeEnd&&JZ(t,"end",e.arrowTypeEnd,r,n,i)},"addEdgeMarkers"),M9e={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},JZ=o((t,e,r,n,i,a)=>{let s=M9e[r];if(!s){Y.warn(`Unknown arrow type: ${r}`);return}let l=e==="start"?"Start":"End";t.attr(`marker-${e}`,`url(${n}#${i}_${a}-${s}${l})`)},"addEdgeMarker")});function J5(t,e){de().flowchart.htmlLabels&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}function P9e(t){let e=[],r=[];for(let n=1;n5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===s.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-s.y)>5)&&(e.push(a),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}var ew,ua,iJ,Av,tw,rw,I9e,O9e,rJ,nJ,B9e,nw,cL=M(()=>{"use strict";Vt();fr();ht();Dl();hr();lL();Cv();mr();jt();I5();tJ();ew=new Map,ua=new Map,iJ=o(()=>{ew.clear(),ua.clear()},"clear"),Av=o(t=>t?t.reduce((r,n)=>r+";"+n,""):"","getLabelStyles"),tw=o(async(t,e)=>{let r=xr(de().flowchart.htmlLabels),n=await Si(t,e.label,{style:Av(e.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1});Y.info("abc82",e,e.labelType);let i=t.insert("g").attr("class","edgeLabel"),a=i.insert("g").attr("class","label");a.node().appendChild(n);let s=n.getBBox();if(r){let u=n.children[0],h=ze(n);s=u.getBoundingClientRect(),h.attr("width",s.width),h.attr("height",s.height)}a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),ew.set(e.id,i),e.width=s.width,e.height=s.height;let l;if(e.startLabelLeft){let u=await gc(e.startLabelLeft,Av(e.labelStyle)),h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),ua.get(e.id)||ua.set(e.id,{}),ua.get(e.id).startLeft=h,J5(l,e.startLabelLeft)}if(e.startLabelRight){let u=await gc(e.startLabelRight,Av(e.labelStyle)),h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=h.node().appendChild(u),f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),ua.get(e.id)||ua.set(e.id,{}),ua.get(e.id).startRight=h,J5(l,e.startLabelRight)}if(e.endLabelLeft){let u=await gc(e.endLabelLeft,Av(e.labelStyle)),h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),h.node().appendChild(u),ua.get(e.id)||ua.set(e.id,{}),ua.get(e.id).endLeft=h,J5(l,e.endLabelLeft)}if(e.endLabelRight){let u=await gc(e.endLabelRight,Av(e.labelStyle)),h=t.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),h.node().appendChild(u),ua.get(e.id)||ua.set(e.id,{}),ua.get(e.id).endRight=h,J5(l,e.endLabelRight)}return n},"insertEdgeLabel");o(J5,"setTerminalWidth");rw=o((t,e)=>{Y.debug("Moving label abc88 ",t.id,t.label,ew.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,n=de(),{subGraphTitleTotalMargin:i}=_u(n);if(t.label){let a=ew.get(t.id),s=t.x,l=t.y;if(r){let u=Ut.calcLabelPosition(r);Y.debug("Moving label "+t.label+" from (",s,",",l,") to (",u.x,",",u.y,") abc88"),e.updatedPath&&(s=u.x,l=u.y)}a.attr("transform",`translate(${s}, ${l+i/2})`)}if(t.startLabelLeft){let a=ua.get(t.id).startLeft,s=t.x,l=t.y;if(r){let u=Ut.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(t.startLabelRight){let a=ua.get(t.id).startRight,s=t.x,l=t.y;if(r){let u=Ut.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(t.endLabelLeft){let a=ua.get(t.id).endLeft,s=t.x,l=t.y;if(r){let u=Ut.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(t.endLabelRight){let a=ua.get(t.id).endRight,s=t.x,l=t.y;if(r){let u=Ut.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}},"positionEdgeLabel"),I9e=o((t,e)=>{let r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),s=t.width/2,l=t.height/2;return i>=s||a>=l},"outsideNode"),O9e=o((t,e,r)=>{Y.debug(`intersection calc abc89: + outsidePoint: ${JSON.stringify(e)} + insidePoint : ${JSON.stringify(r)} + node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let n=t.x,i=t.y,a=Math.abs(n-r.x),s=t.width/2,l=r.xMath.abs(n-e.x)*u){let d=r.y{Y.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(Y.info("abc88 checking point",a,e),!I9e(e,a)&&!i){let s=O9e(e,n,a);Y.debug("abc88 inside",a,n,s),Y.debug("abc88 intersection",s,e);let l=!1;r.forEach(u=>{l=l||u.x===s.x&&u.y===s.y}),r.some(u=>u.x===s.x&&u.y===s.y)?Y.warn("abc88 no intersect",s,r):r.push(s),i=!0}else Y.warn("abc88 outside",a,n),n=a,i||r.push(a)}),Y.debug("returning points",r),r},"cutPathAtIntersect");o(P9e,"extractCornerPoints");nJ=o(function(t,e,r){let n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),s=r/a;return{x:e.x-s*n,y:e.y-s*i}},"findAdjacentPoint"),B9e=o(function(t){let{cornerPointPositions:e}=P9e(t),r=[];for(let n=0;n10&&Math.abs(a.y-i.y)>=10){Y.debug("Corner point fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));let m=5;s.x===l.x?p={x:h<0?l.x-m+d:l.x+m-d,y:f<0?l.y-d:l.y+d}:p={x:h<0?l.x-d:l.x+d,y:f<0?l.y-m+d:l.y+m-d}}else Y.debug("Corner point skipping fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));r.push(p,u)}else r.push(t[n]);return r},"fixCorners"),nw=o(function(t,e,r,n,i,a,s){let{handDrawnSeed:l}=de(),u=e.points,h=!1,f=i;var d=a;d.intersect&&f.intersect&&(u=u.slice(1,e.points.length-1),u.unshift(f.intersect(u[0])),Y.debug("Last point APA12",e.start,"-->",e.end,u[u.length-1],d,d.intersect(u[u.length-1])),u.push(d.intersect(u[u.length-1]))),e.toCluster&&(Y.info("to cluster abc88",r.get(e.toCluster)),u=rJ(e.points,r.get(e.toCluster).node),h=!0),e.fromCluster&&(Y.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(u,null,2)),u=rJ(u.reverse(),r.get(e.fromCluster).node).reverse(),h=!0);let p=u.filter(L=>!Number.isNaN(L.y));p=B9e(p);let m=Do;e.curve&&(m=e.curve);let{x:g,y}=Z5(e),v=Ka().x(g).y(y).curve(m),x;switch(e.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;case"invisible":x="edge-thickness-invisible";break;default:x="edge-thickness-normal"}switch(e.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed";break;default:x+=" edge-pattern-solid"}let b,w=v(p),_=Array.isArray(e.style)?e.style:[e.style];if(e.look==="handDrawn"){let L=Ke.svg(t);Object.assign([],p);let C=L.path(w,{roughness:.3,seed:l});x+=" transition",b=ze(C).select("path").attr("id",e.id).attr("class"," "+x+(e.classes?" "+e.classes:"")).attr("style",_?_.reduce((I,D)=>I+";"+D,""):"");let A=b.attr("d");b.attr("d",A),t.node().appendChild(b.node())}else b=t.append("path").attr("d",w).attr("id",e.id).attr("class"," "+x+(e.classes?" "+e.classes:"")).attr("style",_?_.reduce((L,C)=>L+";"+C,""):"");let T="";(de().flowchart.arrowMarkerAbsolute||de().state.arrowMarkerAbsolute)&&(T=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,T=T.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),Y.info("arrowTypeStart",e.arrowTypeStart),Y.info("arrowTypeEnd",e.arrowTypeEnd),eJ(b,e,T,s,n);let E={};return h&&(E.updatedPath=u),E.originalPath=e.points,E},"insertEdge")});var F9e,z9e,G9e,$9e,V9e,U9e,H9e,W9e,Y9e,q9e,X9e,iw,uL=M(()=>{"use strict";ht();F9e=o((t,e,r,n)=>{e.forEach(i=>{X9e[i](t,r,n)})},"insertMarkers"),z9e=o((t,e,r)=>{Y.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),G9e=o((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),$9e=o((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),V9e=o((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),U9e=o((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),H9e=o((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),W9e=o((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),Y9e=o((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),q9e=o((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),X9e={extension:z9e,composition:G9e,aggregation:$9e,dependency:V9e,lollipop:U9e,point:H9e,circle:W9e,cross:Y9e,barb:q9e},iw=F9e});async function gm(t,e,r){let n,i;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let a=e.shape?z9[e.shape]:void 0;if(!a)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;r.config.securityLevel==="sandbox"?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),i=await a(n,e,r)}else i=await a(t,e,r),n=i;return e.tooltip&&i.attr("title",e.tooltip),aw.set(e.id,n),e.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}var aw,aJ,sJ,_v,sw=M(()=>{"use strict";ht();G9();aw=new Map;o(gm,"insertNode");aJ=o((t,e)=>{aw.set(e.id,t)},"setNodeElem"),sJ=o(()=>{aw.clear()},"clear"),_v=o(t=>{let e=aw.get(t.id);Y.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=8,n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},"positionNode")});var oJ,lJ=M(()=>{"use strict";Ua();fr();ht();K5();cL();uL();sw();Ft();hr();oJ={common:je,getConfig:Sr,insertCluster:mm,insertEdge:nw,insertEdgeLabel:tw,insertMarkers:iw,insertNode:gm,interpolateToCurve:Q_,labelHelper:ot,log:Y,positionEdgeLabel:rw}});function K9e(t){return typeof t=="symbol"||Zn(t)&&ca(t)==j9e}var j9e,ro,Ld=M(()=>{"use strict";xu();Mo();j9e="[object Symbol]";o(K9e,"isSymbol");ro=K9e});function Q9e(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r{"use strict";o(Q9e,"arrayMap");As=Q9e});function hJ(t){if(typeof t=="string")return t;if(Mt(t))return As(t,hJ)+"";if(ro(t))return uJ?uJ.call(t):"";var e=t+"";return e=="0"&&1/t==-Z9e?"-0":e}var Z9e,cJ,uJ,fJ,dJ=M(()=>{"use strict";gd();Dd();Vn();Ld();Z9e=1/0,cJ=ea?ea.prototype:void 0,uJ=cJ?cJ.toString:void 0;o(hJ,"baseToString");fJ=hJ});function eLe(t){for(var e=t.length;e--&&J9e.test(t.charAt(e)););return e}var J9e,pJ,mJ=M(()=>{"use strict";J9e=/\s/;o(eLe,"trimmedEndIndex");pJ=eLe});function rLe(t){return t&&t.slice(0,pJ(t)+1).replace(tLe,"")}var tLe,gJ,yJ=M(()=>{"use strict";mJ();tLe=/^\s+/;o(rLe,"baseTrim");gJ=rLe});function oLe(t){if(typeof t=="number")return t;if(ro(t))return vJ;if(yn(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=yn(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=gJ(t);var r=iLe.test(t);return r||aLe.test(t)?sLe(t.slice(2),r?2:8):nLe.test(t)?vJ:+t}var vJ,nLe,iLe,aLe,sLe,xJ,bJ=M(()=>{"use strict";yJ();Qs();Ld();vJ=NaN,nLe=/^[-+]0x[0-9a-f]+$/i,iLe=/^0b[01]+$/i,aLe=/^0o[0-7]+$/i,sLe=parseInt;o(oLe,"toNumber");xJ=oLe});function cLe(t){if(!t)return t===0?t:0;if(t=xJ(t),t===wJ||t===-wJ){var e=t<0?-1:1;return e*lLe}return t===t?t:0}var wJ,lLe,ym,hL=M(()=>{"use strict";bJ();wJ=1/0,lLe=17976931348623157e292;o(cLe,"toFinite");ym=cLe});function uLe(t){var e=ym(t),r=e%1;return e===e?r?e-r:e:0}var vc,vm=M(()=>{"use strict";hL();o(uLe,"toInteger");vc=uLe});var hLe,ow,TJ=M(()=>{"use strict";Ch();No();hLe=vs(ai,"WeakMap"),ow=hLe});function fLe(){}var Jn,fL=M(()=>{"use strict";o(fLe,"noop");Jn=fLe});function dLe(t,e){for(var r=-1,n=t==null?0:t.length;++r{"use strict";o(dLe,"arrayEach");lw=dLe});function pLe(t,e,r,n){for(var i=t.length,a=r+(n?1:-1);n?a--:++a{"use strict";o(pLe,"baseFindIndex");cw=pLe});function mLe(t){return t!==t}var kJ,EJ=M(()=>{"use strict";o(mLe,"baseIsNaN");kJ=mLe});function gLe(t,e,r){for(var n=r-1,i=t.length;++n{"use strict";o(gLe,"strictIndexOf");SJ=gLe});function yLe(t,e,r){return e===e?SJ(t,e,r):cw(t,kJ,r)}var xm,uw=M(()=>{"use strict";pL();EJ();CJ();o(yLe,"baseIndexOf");xm=yLe});function vLe(t,e){var r=t==null?0:t.length;return!!r&&xm(t,e,0)>-1}var hw,mL=M(()=>{"use strict";uw();o(vLe,"arrayIncludes");hw=vLe});var xLe,AJ,_J=M(()=>{"use strict";F_();xLe=n5(Object.keys,Object),AJ=xLe});function TLe(t){if(!fc(t))return AJ(t);var e=[];for(var r in Object(t))wLe.call(t,r)&&r!="constructor"&&e.push(r);return e}var bLe,wLe,bm,fw=M(()=>{"use strict";Kp();_J();bLe=Object.prototype,wLe=bLe.hasOwnProperty;o(TLe,"baseKeys");bm=TLe});function kLe(t){return si(t)?l5(t):bm(t)}var zr,xc=M(()=>{"use strict";U_();fw();Io();o(kLe,"keys");zr=kLe});var ELe,SLe,CLe,ha,LJ=M(()=>{"use strict";em();wd();q_();Io();Kp();xc();ELe=Object.prototype,SLe=ELe.hasOwnProperty,CLe=h5(function(t,e){if(fc(e)||si(e)){Bo(e,zr(e),t);return}for(var r in e)SLe.call(e,r)&&dc(t,r,e[r])}),ha=CLe});function LLe(t,e){if(Mt(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||ro(t)?!0:_Le.test(t)||!ALe.test(t)||e!=null&&t in Object(e)}var ALe,_Le,wm,dw=M(()=>{"use strict";Vn();Ld();ALe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_Le=/^\w*$/;o(LLe,"isKey");wm=LLe});function NLe(t){var e=Vp(t,function(n){return r.size===DLe&&r.clear(),n}),r=e.cache;return e}var DLe,DJ,NJ=M(()=>{"use strict";N_();DLe=500;o(NLe,"memoizeCapped");DJ=NLe});var RLe,MLe,ILe,RJ,MJ=M(()=>{"use strict";NJ();RLe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MLe=/\\(\\)?/g,ILe=DJ(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(RLe,function(r,n,i,a){e.push(i?a.replace(MLe,"$1"):n||r)}),e}),RJ=ILe});function OLe(t){return t==null?"":fJ(t)}var pw,gL=M(()=>{"use strict";dJ();o(OLe,"toString");pw=OLe});function PLe(t,e){return Mt(t)?t:wm(t,e)?[t]:RJ(pw(t))}var Uh,Lv=M(()=>{"use strict";Vn();dw();MJ();gL();o(PLe,"castPath");Uh=PLe});function FLe(t){if(typeof t=="string"||ro(t))return t;var e=t+"";return e=="0"&&1/t==-BLe?"-0":e}var BLe,bc,Tm=M(()=>{"use strict";Ld();BLe=1/0;o(FLe,"toKey");bc=FLe});function zLe(t,e){e=Uh(e,t);for(var r=0,n=e.length;t!=null&&r{"use strict";Lv();Tm();o(zLe,"baseGet");Hh=zLe});function GLe(t,e,r){var n=t==null?void 0:Hh(t,e);return n===void 0?r:n}var IJ,OJ=M(()=>{"use strict";Dv();o(GLe,"get");IJ=GLe});function $Le(t,e){for(var r=-1,n=e.length,i=t.length;++r{"use strict";o($Le,"arrayPush");km=$Le});function VLe(t){return Mt(t)||Al(t)||!!(PJ&&t&&t[PJ])}var PJ,BJ,FJ=M(()=>{"use strict";gd();Qp();Vn();PJ=ea?ea.isConcatSpreadable:void 0;o(VLe,"isFlattenable");BJ=VLe});function zJ(t,e,r,n,i){var a=-1,s=t.length;for(r||(r=BJ),i||(i=[]);++a0&&r(l)?e>1?zJ(l,e-1,r,n,i):km(i,l):n||(i[i.length]=l)}return i}var wc,Em=M(()=>{"use strict";mw();FJ();o(zJ,"baseFlatten");wc=zJ});function ULe(t){var e=t==null?0:t.length;return e?wc(t,1):[]}var Wr,gw=M(()=>{"use strict";Em();o(ULe,"flatten");Wr=ULe});function HLe(t){return u5(c5(t,void 0,Wr),t+"")}var GJ,$J=M(()=>{"use strict";gw();H_();Y_();o(HLe,"flatRest");GJ=HLe});function WLe(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(i);++n{"use strict";o(WLe,"baseSlice");yw=WLe});function eDe(t){return JLe.test(t)}var YLe,qLe,XLe,jLe,KLe,QLe,ZLe,JLe,VJ,UJ=M(()=>{"use strict";YLe="\\ud800-\\udfff",qLe="\\u0300-\\u036f",XLe="\\ufe20-\\ufe2f",jLe="\\u20d0-\\u20ff",KLe=qLe+XLe+jLe,QLe="\\ufe0e\\ufe0f",ZLe="\\u200d",JLe=RegExp("["+ZLe+YLe+KLe+QLe+"]");o(eDe,"hasUnicode");VJ=eDe});function tDe(t,e,r,n){var i=-1,a=t==null?0:t.length;for(n&&a&&(r=t[++i]);++i{"use strict";o(tDe,"arrayReduce");HJ=tDe});function rDe(t,e){return t&&Bo(e,zr(e),t)}var YJ,qJ=M(()=>{"use strict";wd();xc();o(rDe,"baseAssign");YJ=rDe});function nDe(t,e){return t&&Bo(e,xs(e),t)}var XJ,jJ=M(()=>{"use strict";wd();Mh();o(nDe,"baseAssignIn");XJ=nDe});function iDe(t,e){for(var r=-1,n=t==null?0:t.length,i=0,a=[];++r{"use strict";o(iDe,"arrayFilter");Sm=iDe});function aDe(){return[]}var xw,vL=M(()=>{"use strict";o(aDe,"stubArray");xw=aDe});var sDe,oDe,KJ,lDe,Cm,bw=M(()=>{"use strict";vw();vL();sDe=Object.prototype,oDe=sDe.propertyIsEnumerable,KJ=Object.getOwnPropertySymbols,lDe=KJ?function(t){return t==null?[]:(t=Object(t),Sm(KJ(t),function(e){return oDe.call(t,e)}))}:xw,Cm=lDe});function cDe(t,e){return Bo(t,Cm(t),e)}var QJ,ZJ=M(()=>{"use strict";wd();bw();o(cDe,"copySymbols");QJ=cDe});var uDe,hDe,ww,xL=M(()=>{"use strict";mw();i5();bw();vL();uDe=Object.getOwnPropertySymbols,hDe=uDe?function(t){for(var e=[];t;)km(e,Cm(t)),t=jp(t);return e}:xw,ww=hDe});function fDe(t,e){return Bo(t,ww(t),e)}var JJ,eee=M(()=>{"use strict";wd();xL();o(fDe,"copySymbolsIn");JJ=fDe});function dDe(t,e,r){var n=e(t);return Mt(t)?n:km(n,r(t))}var Tw,bL=M(()=>{"use strict";mw();Vn();o(dDe,"baseGetAllKeys");Tw=dDe});function pDe(t){return Tw(t,zr,Cm)}var Nv,wL=M(()=>{"use strict";bL();bw();xc();o(pDe,"getAllKeys");Nv=pDe});function mDe(t){return Tw(t,xs,ww)}var kw,TL=M(()=>{"use strict";bL();xL();Mh();o(mDe,"getAllKeysIn");kw=mDe});var gDe,Ew,tee=M(()=>{"use strict";Ch();No();gDe=vs(ai,"DataView"),Ew=gDe});var yDe,Sw,ree=M(()=>{"use strict";Ch();No();yDe=vs(ai,"Promise"),Sw=yDe});var vDe,Wh,kL=M(()=>{"use strict";Ch();No();vDe=vs(ai,"Set"),Wh=vDe});var nee,xDe,iee,aee,see,oee,bDe,wDe,TDe,kDe,EDe,Nd,no,Rd=M(()=>{"use strict";tee();K3();ree();kL();TJ();xu();__();nee="[object Map]",xDe="[object Object]",iee="[object Promise]",aee="[object Set]",see="[object WeakMap]",oee="[object DataView]",bDe=bu(Ew),wDe=bu(Lh),TDe=bu(Sw),kDe=bu(Wh),EDe=bu(ow),Nd=ca;(Ew&&Nd(new Ew(new ArrayBuffer(1)))!=oee||Lh&&Nd(new Lh)!=nee||Sw&&Nd(Sw.resolve())!=iee||Wh&&Nd(new Wh)!=aee||ow&&Nd(new ow)!=see)&&(Nd=o(function(t){var e=ca(t),r=e==xDe?t.constructor:void 0,n=r?bu(r):"";if(n)switch(n){case bDe:return oee;case wDe:return nee;case TDe:return iee;case kDe:return aee;case EDe:return see}return e},"getTag"));no=Nd});function ADe(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&CDe.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var SDe,CDe,lee,cee=M(()=>{"use strict";SDe=Object.prototype,CDe=SDe.hasOwnProperty;o(ADe,"initCloneArray");lee=ADe});function _De(t,e){var r=e?Xp(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var uee,hee=M(()=>{"use strict";e5();o(_De,"cloneDataView");uee=_De});function DDe(t){var e=new t.constructor(t.source,LDe.exec(t));return e.lastIndex=t.lastIndex,e}var LDe,fee,dee=M(()=>{"use strict";LDe=/\w*$/;o(DDe,"cloneRegExp");fee=DDe});function NDe(t){return mee?Object(mee.call(t)):{}}var pee,mee,gee,yee=M(()=>{"use strict";gd();pee=ea?ea.prototype:void 0,mee=pee?pee.valueOf:void 0;o(NDe,"cloneSymbol");gee=NDe});function QDe(t,e,r){var n=t.constructor;switch(e){case GDe:return Xp(t);case RDe:case MDe:return new n(+t);case $De:return uee(t,r);case VDe:case UDe:case HDe:case WDe:case YDe:case qDe:case XDe:case jDe:case KDe:return t5(t,r);case IDe:return new n;case ODe:case FDe:return new n(t);case PDe:return fee(t);case BDe:return new n;case zDe:return gee(t)}}var RDe,MDe,IDe,ODe,PDe,BDe,FDe,zDe,GDe,$De,VDe,UDe,HDe,WDe,YDe,qDe,XDe,jDe,KDe,vee,xee=M(()=>{"use strict";e5();hee();dee();yee();P_();RDe="[object Boolean]",MDe="[object Date]",IDe="[object Map]",ODe="[object Number]",PDe="[object RegExp]",BDe="[object Set]",FDe="[object String]",zDe="[object Symbol]",GDe="[object ArrayBuffer]",$De="[object DataView]",VDe="[object Float32Array]",UDe="[object Float64Array]",HDe="[object Int8Array]",WDe="[object Int16Array]",YDe="[object Int32Array]",qDe="[object Uint8Array]",XDe="[object Uint8ClampedArray]",jDe="[object Uint16Array]",KDe="[object Uint32Array]";o(QDe,"initCloneByTag");vee=QDe});function JDe(t){return Zn(t)&&no(t)==ZDe}var ZDe,bee,wee=M(()=>{"use strict";Rd();Mo();ZDe="[object Map]";o(JDe,"baseIsMap");bee=JDe});var Tee,eNe,kee,Eee=M(()=>{"use strict";wee();bd();nv();Tee=Po&&Po.isMap,eNe=Tee?Oo(Tee):bee,kee=eNe});function rNe(t){return Zn(t)&&no(t)==tNe}var tNe,See,Cee=M(()=>{"use strict";Rd();Mo();tNe="[object Set]";o(rNe,"baseIsSet");See=rNe});var Aee,nNe,_ee,Lee=M(()=>{"use strict";Cee();bd();nv();Aee=Po&&Po.isSet,nNe=Aee?Oo(Aee):See,_ee=nNe});function Cw(t,e,r,n,i,a){var s,l=e&iNe,u=e&aNe,h=e&sNe;if(r&&(s=i?r(t,n,i,a):r(t)),s!==void 0)return s;if(!yn(t))return t;var f=Mt(t);if(f){if(s=lee(t),!l)return r5(t,s)}else{var d=no(t),p=d==Nee||d==hNe;if(_l(t))return J3(t,l);if(d==Ree||d==Dee||p&&!i){if(s=u||p?{}:a5(t),!l)return u?JJ(t,XJ(s,t)):QJ(t,YJ(s,t))}else{if(!Sn[d])return i?t:{};s=vee(t,d,l)}}a||(a=new uc);var m=a.get(t);if(m)return m;a.set(t,s),_ee(t)?t.forEach(function(v){s.add(Cw(v,e,r,v,t,a))}):kee(t)&&t.forEach(function(v,x){s.set(x,Cw(v,e,r,x,t,a))});var g=h?u?kw:Nv:u?xs:zr,y=f?void 0:g(t);return lw(y||t,function(v,x){y&&(x=v,v=t[x]),dc(s,x,Cw(v,e,r,x,t,a))}),s}var iNe,aNe,sNe,Dee,oNe,lNe,cNe,uNe,Nee,hNe,fNe,dNe,Ree,pNe,mNe,gNe,yNe,vNe,xNe,bNe,wNe,TNe,kNe,ENe,SNe,CNe,ANe,_Ne,LNe,Sn,Aw,EL=M(()=>{"use strict";ev();dL();em();qJ();jJ();I_();B_();ZJ();eee();wL();TL();Rd();cee();xee();z_();Vn();Jp();Eee();Qs();Lee();xc();Mh();iNe=1,aNe=2,sNe=4,Dee="[object Arguments]",oNe="[object Array]",lNe="[object Boolean]",cNe="[object Date]",uNe="[object Error]",Nee="[object Function]",hNe="[object GeneratorFunction]",fNe="[object Map]",dNe="[object Number]",Ree="[object Object]",pNe="[object RegExp]",mNe="[object Set]",gNe="[object String]",yNe="[object Symbol]",vNe="[object WeakMap]",xNe="[object ArrayBuffer]",bNe="[object DataView]",wNe="[object Float32Array]",TNe="[object Float64Array]",kNe="[object Int8Array]",ENe="[object Int16Array]",SNe="[object Int32Array]",CNe="[object Uint8Array]",ANe="[object Uint8ClampedArray]",_Ne="[object Uint16Array]",LNe="[object Uint32Array]",Sn={};Sn[Dee]=Sn[oNe]=Sn[xNe]=Sn[bNe]=Sn[lNe]=Sn[cNe]=Sn[wNe]=Sn[TNe]=Sn[kNe]=Sn[ENe]=Sn[SNe]=Sn[fNe]=Sn[dNe]=Sn[Ree]=Sn[pNe]=Sn[mNe]=Sn[gNe]=Sn[yNe]=Sn[CNe]=Sn[ANe]=Sn[_Ne]=Sn[LNe]=!0;Sn[uNe]=Sn[Nee]=Sn[vNe]=!1;o(Cw,"baseClone");Aw=Cw});function NNe(t){return Aw(t,DNe)}var DNe,rn,SL=M(()=>{"use strict";EL();DNe=4;o(NNe,"clone");rn=NNe});function INe(t){return Aw(t,RNe|MNe)}var RNe,MNe,CL,Mee=M(()=>{"use strict";EL();RNe=1,MNe=4;o(INe,"cloneDeep");CL=INe});function ONe(t){for(var e=-1,r=t==null?0:t.length,n=0,i=[];++e{"use strict";o(ONe,"compact");Tc=ONe});function BNe(t){return this.__data__.set(t,PNe),this}var PNe,Oee,Pee=M(()=>{"use strict";PNe="__lodash_hash_undefined__";o(BNe,"setCacheAdd");Oee=BNe});function FNe(t){return this.__data__.has(t)}var Bee,Fee=M(()=>{"use strict";o(FNe,"setCacheHas");Bee=FNe});function _w(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new vd;++e{"use strict";Q3();Pee();Fee();o(_w,"SetCache");_w.prototype.add=_w.prototype.push=Oee;_w.prototype.has=Bee;Am=_w});function zNe(t,e){for(var r=-1,n=t==null?0:t.length;++r{"use strict";o(zNe,"arraySome");Dw=zNe});function GNe(t,e){return t.has(e)}var _m,Nw=M(()=>{"use strict";o(GNe,"cacheHas");_m=GNe});function UNe(t,e,r,n,i,a){var s=r&$Ne,l=t.length,u=e.length;if(l!=u&&!(s&&u>l))return!1;var h=a.get(t),f=a.get(e);if(h&&f)return h==e&&f==t;var d=-1,p=!0,m=r&VNe?new Am:void 0;for(a.set(t,e),a.set(e,t);++d{"use strict";Lw();AL();Nw();$Ne=1,VNe=2;o(UNe,"equalArrays");Rw=UNe});function HNe(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}var zee,Gee=M(()=>{"use strict";o(HNe,"mapToArray");zee=HNe});function WNe(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Lm,Mw=M(()=>{"use strict";o(WNe,"setToArray");Lm=WNe});function aRe(t,e,r,n,i,a,s){switch(r){case iRe:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case nRe:return!(t.byteLength!=e.byteLength||!a(new qp(t),new qp(e)));case XNe:case jNe:case ZNe:return Ro(+t,+e);case KNe:return t.name==e.name&&t.message==e.message;case JNe:case tRe:return t==e+"";case QNe:var l=zee;case eRe:var u=n&YNe;if(l||(l=Lm),t.size!=e.size&&!u)return!1;var h=s.get(t);if(h)return h==e;n|=qNe,s.set(t,e);var f=Rw(l(t),l(e),n,i,a,s);return s.delete(t),f;case rRe:if(LL)return LL.call(t)==LL.call(e)}return!1}var YNe,qNe,XNe,jNe,KNe,QNe,ZNe,JNe,eRe,tRe,rRe,nRe,iRe,$ee,LL,Vee,Uee=M(()=>{"use strict";gd();O_();yd();_L();Gee();Mw();YNe=1,qNe=2,XNe="[object Boolean]",jNe="[object Date]",KNe="[object Error]",QNe="[object Map]",ZNe="[object Number]",JNe="[object RegExp]",eRe="[object Set]",tRe="[object String]",rRe="[object Symbol]",nRe="[object ArrayBuffer]",iRe="[object DataView]",$ee=ea?ea.prototype:void 0,LL=$ee?$ee.valueOf:void 0;o(aRe,"equalByTag");Vee=aRe});function cRe(t,e,r,n,i,a){var s=r&sRe,l=Nv(t),u=l.length,h=Nv(e),f=h.length;if(u!=f&&!s)return!1;for(var d=u;d--;){var p=l[d];if(!(s?p in e:lRe.call(e,p)))return!1}var m=a.get(t),g=a.get(e);if(m&&g)return m==e&&g==t;var y=!0;a.set(t,e),a.set(e,t);for(var v=s;++d{"use strict";wL();sRe=1,oRe=Object.prototype,lRe=oRe.hasOwnProperty;o(cRe,"equalObjects");Hee=cRe});function fRe(t,e,r,n,i,a){var s=Mt(t),l=Mt(e),u=s?qee:no(t),h=l?qee:no(e);u=u==Yee?Iw:u,h=h==Yee?Iw:h;var f=u==Iw,d=h==Iw,p=u==h;if(p&&_l(t)){if(!_l(e))return!1;s=!0,f=!1}if(p&&!f)return a||(a=new uc),s||Nh(t)?Rw(t,e,r,n,i,a):Vee(t,e,u,r,n,i,a);if(!(r&uRe)){var m=f&&Xee.call(t,"__wrapped__"),g=d&&Xee.call(e,"__wrapped__");if(m||g){var y=m?t.value():t,v=g?e.value():e;return a||(a=new uc),i(y,v,r,n,a)}}return p?(a||(a=new uc),Hee(t,e,r,n,i,a)):!1}var uRe,Yee,qee,Iw,hRe,Xee,jee,Kee=M(()=>{"use strict";ev();_L();Uee();Wee();Rd();Vn();Jp();iv();uRe=1,Yee="[object Arguments]",qee="[object Array]",Iw="[object Object]",hRe=Object.prototype,Xee=hRe.hasOwnProperty;o(fRe,"baseIsEqualDeep");jee=fRe});function Qee(t,e,r,n,i){return t===e?!0:t==null||e==null||!Zn(t)&&!Zn(e)?t!==t&&e!==e:jee(t,e,r,n,Qee,i)}var Ow,DL=M(()=>{"use strict";Kee();Mo();o(Qee,"baseIsEqual");Ow=Qee});function mRe(t,e,r,n){var i=r.length,a=i,s=!n;if(t==null)return!a;for(t=Object(t);i--;){var l=r[i];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++i{"use strict";ev();DL();dRe=1,pRe=2;o(mRe,"baseIsMatch");Zee=mRe});function gRe(t){return t===t&&!yn(t)}var Pw,NL=M(()=>{"use strict";Qs();o(gRe,"isStrictComparable");Pw=gRe});function yRe(t){for(var e=zr(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,Pw(i)]}return e}var ete,tte=M(()=>{"use strict";NL();xc();o(yRe,"getMatchData");ete=yRe});function vRe(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}var Bw,RL=M(()=>{"use strict";o(vRe,"matchesStrictComparable");Bw=vRe});function xRe(t){var e=ete(t);return e.length==1&&e[0][2]?Bw(e[0][0],e[0][1]):function(r){return r===t||Zee(r,t,e)}}var rte,nte=M(()=>{"use strict";Jee();tte();RL();o(xRe,"baseMatches");rte=xRe});function bRe(t,e){return t!=null&&e in Object(t)}var ite,ate=M(()=>{"use strict";o(bRe,"baseHasIn");ite=bRe});function wRe(t,e,r){e=Uh(e,t);for(var n=-1,i=e.length,a=!1;++n{"use strict";Lv();Qp();Vn();sv();s5();Tm();o(wRe,"hasPath");Fw=wRe});function TRe(t,e){return t!=null&&Fw(t,e,ite)}var zw,IL=M(()=>{"use strict";ate();ML();o(TRe,"hasIn");zw=TRe});function SRe(t,e){return wm(t)&&Pw(e)?Bw(bc(t),e):function(r){var n=IJ(r,t);return n===void 0&&n===e?zw(r,t):Ow(e,n,kRe|ERe)}}var kRe,ERe,ste,ote=M(()=>{"use strict";DL();OJ();IL();dw();NL();RL();Tm();kRe=1,ERe=2;o(SRe,"baseMatchesProperty");ste=SRe});function CRe(t){return function(e){return e?.[t]}}var Gw,OL=M(()=>{"use strict";o(CRe,"baseProperty");Gw=CRe});function ARe(t){return function(e){return Hh(e,t)}}var lte,cte=M(()=>{"use strict";Dv();o(ARe,"basePropertyDeep");lte=ARe});function _Re(t){return wm(t)?Gw(bc(t)):lte(t)}var ute,hte=M(()=>{"use strict";OL();cte();dw();Tm();o(_Re,"property");ute=_Re});function LRe(t){return typeof t=="function"?t:t==null?ta:typeof t=="object"?Mt(t)?ste(t[0],t[1]):rte(t):ute(t)}var dn,Qa=M(()=>{"use strict";nte();ote();Tu();Vn();hte();o(LRe,"baseIteratee");dn=LRe});function DRe(t,e,r,n){for(var i=-1,a=t==null?0:t.length;++i{"use strict";o(DRe,"arrayAggregator");fte=DRe});function NRe(t,e){return t&&Yp(t,e,zr)}var Dm,$w=M(()=>{"use strict";Z3();xc();o(NRe,"baseForOwn");Dm=NRe});function RRe(t,e){return function(r,n){if(r==null)return r;if(!si(r))return t(r,n);for(var i=r.length,a=e?i:-1,s=Object(r);(e?a--:++a{"use strict";Io();o(RRe,"createBaseEach");pte=RRe});var MRe,_s,Yh=M(()=>{"use strict";$w();mte();MRe=pte(Dm),_s=MRe});function IRe(t,e,r,n){return _s(t,function(i,a,s){e(n,i,r(i),s)}),n}var gte,yte=M(()=>{"use strict";Yh();o(IRe,"baseAggregator");gte=IRe});function ORe(t,e){return function(r,n){var i=Mt(r)?fte:gte,a=e?e():{};return i(r,t,dn(n,2),a)}}var vte,xte=M(()=>{"use strict";dte();yte();Qa();Vn();o(ORe,"createAggregator");vte=ORe});var PRe,Vw,bte=M(()=>{"use strict";No();PRe=o(function(){return ai.Date.now()},"now"),Vw=PRe});var wte,BRe,FRe,qh,Tte=M(()=>{"use strict";tm();yd();Td();Mh();wte=Object.prototype,BRe=wte.hasOwnProperty,FRe=pc(function(t,e){t=Object(t);var r=-1,n=e.length,i=n>2?e[2]:void 0;for(i&&Zs(e[0],e[1],i)&&(n=1);++r{"use strict";o(zRe,"arrayIncludesWith");Uw=zRe});function $Re(t,e,r,n){var i=-1,a=hw,s=!0,l=t.length,u=[],h=e.length;if(!l)return u;r&&(e=As(e,Oo(r))),n?(a=Uw,s=!1):e.length>=GRe&&(a=_m,s=!1,e=new Am(e));e:for(;++i{"use strict";Lw();mL();PL();Dd();bd();Nw();GRe=200;o($Re,"baseDifference");kte=$Re});var VRe,Xh,Ste=M(()=>{"use strict";Ete();Em();tm();o5();VRe=pc(function(t,e){return xd(t)?kte(t,wc(e,1,xd,!0)):[]}),Xh=VRe});function URe(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var fa,Cte=M(()=>{"use strict";o(URe,"last");fa=URe});function HRe(t,e,r){var n=t==null?0:t.length;return n?(e=r||e===void 0?1:vc(e),yw(t,e<0?0:e,n)):[]}var mi,Ate=M(()=>{"use strict";yL();vm();o(HRe,"drop");mi=HRe});function WRe(t,e,r){var n=t==null?0:t.length;return n?(e=r||e===void 0?1:vc(e),e=n-e,yw(t,0,e<0?0:e)):[]}var Lu,_te=M(()=>{"use strict";yL();vm();o(WRe,"dropRight");Lu=WRe});function YRe(t){return typeof t=="function"?t:ta}var Nm,Hw=M(()=>{"use strict";Tu();o(YRe,"castFunction");Nm=YRe});function qRe(t,e){var r=Mt(t)?lw:_s;return r(t,Nm(e))}var Ce,Ww=M(()=>{"use strict";dL();Yh();Hw();Vn();o(qRe,"forEach");Ce=qRe});var Lte=M(()=>{"use strict";Ww()});function XRe(t,e){for(var r=-1,n=t==null?0:t.length;++r{"use strict";o(XRe,"arrayEvery");Dte=XRe});function jRe(t,e){var r=!0;return _s(t,function(n,i,a){return r=!!e(n,i,a),r}),r}var Rte,Mte=M(()=>{"use strict";Yh();o(jRe,"baseEvery");Rte=jRe});function KRe(t,e,r){var n=Mt(t)?Dte:Rte;return r&&Zs(t,e,r)&&(e=void 0),n(t,dn(e,3))}var Ra,Ite=M(()=>{"use strict";Nte();Mte();Qa();Vn();Td();o(KRe,"every");Ra=KRe});function QRe(t,e){var r=[];return _s(t,function(n,i,a){e(n,i,a)&&r.push(n)}),r}var Yw,BL=M(()=>{"use strict";Yh();o(QRe,"baseFilter");Yw=QRe});function ZRe(t,e){var r=Mt(t)?Sm:Yw;return r(t,dn(e,3))}var Yr,FL=M(()=>{"use strict";vw();BL();Qa();Vn();o(ZRe,"filter");Yr=ZRe});function JRe(t){return function(e,r,n){var i=Object(e);if(!si(e)){var a=dn(r,3);e=zr(e),r=o(function(l){return a(i[l],l,i)},"predicate")}var s=t(e,r,n);return s>-1?i[a?e[s]:s]:void 0}}var Ote,Pte=M(()=>{"use strict";Qa();Io();xc();o(JRe,"createFind");Ote=JRe});function tMe(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:vc(r);return i<0&&(i=eMe(n+i,0)),cw(t,dn(e,3),i)}var eMe,Bte,Fte=M(()=>{"use strict";pL();Qa();vm();eMe=Math.max;o(tMe,"findIndex");Bte=tMe});var rMe,Za,zte=M(()=>{"use strict";Pte();Fte();rMe=Ote(Bte),Za=rMe});function nMe(t){return t&&t.length?t[0]:void 0}var ra,Gte=M(()=>{"use strict";o(nMe,"head");ra=nMe});var $te=M(()=>{"use strict";Gte()});function iMe(t,e){var r=-1,n=si(t)?Array(t.length):[];return _s(t,function(i,a,s){n[++r]=e(i,a,s)}),n}var qw,zL=M(()=>{"use strict";Yh();Io();o(iMe,"baseMap");qw=iMe});function aMe(t,e){var r=Mt(t)?As:qw;return r(t,dn(e,3))}var Je,Rm=M(()=>{"use strict";Dd();Qa();zL();Vn();o(aMe,"map");Je=aMe});function sMe(t,e){return wc(Je(t,e),1)}var da,GL=M(()=>{"use strict";Em();Rm();o(sMe,"flatMap");da=sMe});function oMe(t,e){return t==null?t:Yp(t,Nm(e),xs)}var $L,Vte=M(()=>{"use strict";Z3();Hw();Mh();o(oMe,"forIn");$L=oMe});function lMe(t,e){return t&&Dm(t,Nm(e))}var VL,Ute=M(()=>{"use strict";$w();Hw();o(lMe,"forOwn");VL=lMe});var cMe,uMe,hMe,UL,Hte=M(()=>{"use strict";Wp();xte();cMe=Object.prototype,uMe=cMe.hasOwnProperty,hMe=vte(function(t,e,r){uMe.call(t,r)?t[r].push(e):hc(t,r,[e])}),UL=hMe});function fMe(t,e){return t>e}var Wte,Yte=M(()=>{"use strict";o(fMe,"baseGt");Wte=fMe});function mMe(t,e){return t!=null&&pMe.call(t,e)}var dMe,pMe,qte,Xte=M(()=>{"use strict";dMe=Object.prototype,pMe=dMe.hasOwnProperty;o(mMe,"baseHas");qte=mMe});function gMe(t,e){return t!=null&&Fw(t,e,qte)}var It,jte=M(()=>{"use strict";Xte();ML();o(gMe,"has");It=gMe});function vMe(t){return typeof t=="string"||!Mt(t)&&Zn(t)&&ca(t)==yMe}var yMe,gi,Xw=M(()=>{"use strict";xu();Vn();Mo();yMe="[object String]";o(vMe,"isString");gi=vMe});function xMe(t,e){return As(e,function(r){return t[r]})}var Kte,Qte=M(()=>{"use strict";Dd();o(xMe,"baseValues");Kte=xMe});function bMe(t){return t==null?[]:Kte(t,zr(t))}var br,HL=M(()=>{"use strict";Qte();xc();o(bMe,"values");br=bMe});function TMe(t,e,r,n){t=si(t)?t:br(t),r=r&&!n?vc(r):0;var i=t.length;return r<0&&(r=wMe(i+r,0)),gi(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&xm(t,e,r)>-1}var wMe,Hn,Zte=M(()=>{"use strict";uw();Io();Xw();vm();HL();wMe=Math.max;o(TMe,"includes");Hn=TMe});function EMe(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var i=r==null?0:vc(r);return i<0&&(i=kMe(n+i,0)),xm(t,e,i)}var kMe,jw,Jte=M(()=>{"use strict";uw();vm();kMe=Math.max;o(EMe,"indexOf");jw=EMe});function LMe(t){if(t==null)return!0;if(si(t)&&(Mt(t)||typeof t=="string"||typeof t.splice=="function"||_l(t)||Nh(t)||Al(t)))return!t.length;var e=no(t);if(e==SMe||e==CMe)return!t.size;if(fc(t))return!bm(t).length;for(var r in t)if(_Me.call(t,r))return!1;return!0}var SMe,CMe,AMe,_Me,cr,Kw=M(()=>{"use strict";fw();Rd();Qp();Vn();Io();Jp();Kp();iv();SMe="[object Map]",CMe="[object Set]",AMe=Object.prototype,_Me=AMe.hasOwnProperty;o(LMe,"isEmpty");cr=LMe});function NMe(t){return Zn(t)&&ca(t)==DMe}var DMe,ere,tre=M(()=>{"use strict";xu();Mo();DMe="[object RegExp]";o(NMe,"baseIsRegExp");ere=NMe});var rre,RMe,Vo,nre=M(()=>{"use strict";tre();bd();nv();rre=Po&&Po.isRegExp,RMe=rre?Oo(rre):ere,Vo=RMe});function MMe(t){return t===void 0}var dr,ire=M(()=>{"use strict";o(MMe,"isUndefined");dr=MMe});function IMe(t,e){return t{"use strict";o(IMe,"baseLt");Qw=IMe});function OMe(t,e){var r={};return e=dn(e,3),Dm(t,function(n,i,a){hc(r,i,e(n,i,a))}),r}var Md,are=M(()=>{"use strict";Wp();$w();Qa();o(OMe,"mapValues");Md=OMe});function PMe(t,e,r){for(var n=-1,i=t.length;++n{"use strict";Ld();o(PMe,"baseExtremum");Mm=PMe});function BMe(t){return t&&t.length?Mm(t,ta,Wte):void 0}var Ls,sre=M(()=>{"use strict";Zw();Yte();Tu();o(BMe,"max");Ls=BMe});function FMe(t){return t&&t.length?Mm(t,ta,Qw):void 0}var Nl,YL=M(()=>{"use strict";Zw();WL();Tu();o(FMe,"min");Nl=FMe});function zMe(t,e){return t&&t.length?Mm(t,dn(e,2),Qw):void 0}var Id,ore=M(()=>{"use strict";Zw();Qa();WL();o(zMe,"minBy");Id=zMe});function $Me(t){if(typeof t!="function")throw new TypeError(GMe);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}var GMe,lre,cre=M(()=>{"use strict";GMe="Expected a function";o($Me,"negate");lre=$Me});function VMe(t,e,r,n){if(!yn(t))return t;e=Uh(e,t);for(var i=-1,a=e.length,s=a-1,l=t;l!=null&&++i{"use strict";em();Lv();sv();Qs();Tm();o(VMe,"baseSet");ure=VMe});function UMe(t,e,r){for(var n=-1,i=e.length,a={};++n{"use strict";Dv();hre();Lv();o(UMe,"basePickBy");Jw=UMe});function HMe(t,e){if(t==null)return{};var r=As(kw(t),function(n){return[n]});return e=dn(e),Jw(t,r,function(n,i){return e(n,i[0])})}var Ds,fre=M(()=>{"use strict";Dd();Qa();qL();TL();o(HMe,"pickBy");Ds=HMe});function WMe(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}var dre,pre=M(()=>{"use strict";o(WMe,"baseSortBy");dre=WMe});function YMe(t,e){if(t!==e){var r=t!==void 0,n=t===null,i=t===t,a=ro(t),s=e!==void 0,l=e===null,u=e===e,h=ro(e);if(!l&&!h&&!a&&t>e||a&&s&&u&&!l&&!h||n&&s&&u||!r&&u||!i)return 1;if(!n&&!a&&!h&&t{"use strict";Ld();o(YMe,"compareAscending");mre=YMe});function qMe(t,e,r){for(var n=-1,i=t.criteria,a=e.criteria,s=i.length,l=r.length;++n=l)return u;var h=r[n];return u*(h=="desc"?-1:1)}}return t.index-e.index}var yre,vre=M(()=>{"use strict";gre();o(qMe,"compareMultiple");yre=qMe});function XMe(t,e,r){e.length?e=As(e,function(a){return Mt(a)?function(s){return Hh(s,a.length===1?a[0]:a)}:a}):e=[ta];var n=-1;e=As(e,Oo(dn));var i=qw(t,function(a,s,l){var u=As(e,function(h){return h(a)});return{criteria:u,index:++n,value:a}});return dre(i,function(a,s){return yre(a,s,r)})}var xre,bre=M(()=>{"use strict";Dd();Dv();Qa();zL();pre();bd();vre();Tu();Vn();o(XMe,"baseOrderBy");xre=XMe});var jMe,wre,Tre=M(()=>{"use strict";OL();jMe=Gw("length"),wre=jMe});function oIe(t){for(var e=kre.lastIndex=0;kre.test(t);)++e;return e}var Ere,KMe,QMe,ZMe,JMe,eIe,tIe,XL,jL,rIe,Sre,Cre,Are,nIe,_re,Lre,iIe,aIe,sIe,kre,Dre,Nre=M(()=>{"use strict";Ere="\\ud800-\\udfff",KMe="\\u0300-\\u036f",QMe="\\ufe20-\\ufe2f",ZMe="\\u20d0-\\u20ff",JMe=KMe+QMe+ZMe,eIe="\\ufe0e\\ufe0f",tIe="["+Ere+"]",XL="["+JMe+"]",jL="\\ud83c[\\udffb-\\udfff]",rIe="(?:"+XL+"|"+jL+")",Sre="[^"+Ere+"]",Cre="(?:\\ud83c[\\udde6-\\uddff]){2}",Are="[\\ud800-\\udbff][\\udc00-\\udfff]",nIe="\\u200d",_re=rIe+"?",Lre="["+eIe+"]?",iIe="(?:"+nIe+"(?:"+[Sre,Cre,Are].join("|")+")"+Lre+_re+")*",aIe=Lre+_re+iIe,sIe="(?:"+[Sre+XL+"?",XL,Cre,Are,tIe].join("|")+")",kre=RegExp(jL+"(?="+jL+")|"+sIe+aIe,"g");o(oIe,"unicodeSize");Dre=oIe});function lIe(t){return VJ(t)?Dre(t):wre(t)}var Rre,Mre=M(()=>{"use strict";Tre();UJ();Nre();o(lIe,"stringSize");Rre=lIe});function cIe(t,e){return Jw(t,e,function(r,n){return zw(t,n)})}var Ire,Ore=M(()=>{"use strict";qL();IL();o(cIe,"basePick");Ire=cIe});var uIe,Od,Pre=M(()=>{"use strict";Ore();$J();uIe=GJ(function(t,e){return t==null?{}:Ire(t,e)}),Od=uIe});function dIe(t,e,r,n){for(var i=-1,a=fIe(hIe((e-t)/(r||1)),0),s=Array(a);a--;)s[n?a:++i]=t,t+=r;return s}var hIe,fIe,Bre,Fre=M(()=>{"use strict";hIe=Math.ceil,fIe=Math.max;o(dIe,"baseRange");Bre=dIe});function pIe(t){return function(e,r,n){return n&&typeof n!="number"&&Zs(e,r,n)&&(r=n=void 0),e=ym(e),r===void 0?(r=e,e=0):r=ym(r),n=n===void 0?e{"use strict";Fre();Td();hL();o(pIe,"createRange");zre=pIe});var mIe,Uo,$re=M(()=>{"use strict";Gre();mIe=zre(),Uo=mIe});function gIe(t,e,r,n,i){return i(t,function(a,s,l){r=n?(n=!1,a):e(r,a,s,l)}),r}var Vre,Ure=M(()=>{"use strict";o(gIe,"baseReduce");Vre=gIe});function yIe(t,e,r){var n=Mt(t)?HJ:Vre,i=arguments.length<3;return n(t,dn(e,4),r,i,_s)}var qr,KL=M(()=>{"use strict";WJ();Yh();Qa();Ure();Vn();o(yIe,"reduce");qr=yIe});function vIe(t,e){var r=Mt(t)?Sm:Yw;return r(t,lre(dn(e,3)))}var jh,Hre=M(()=>{"use strict";vw();BL();Qa();Vn();cre();o(vIe,"reject");jh=vIe});function wIe(t){if(t==null)return 0;if(si(t))return gi(t)?Rre(t):t.length;var e=no(t);return e==xIe||e==bIe?t.size:bm(t).length}var xIe,bIe,QL,Wre=M(()=>{"use strict";fw();Rd();Io();Xw();Mre();xIe="[object Map]",bIe="[object Set]";o(wIe,"size");QL=wIe});function TIe(t,e){var r;return _s(t,function(n,i,a){return r=e(n,i,a),!r}),!!r}var Yre,qre=M(()=>{"use strict";Yh();o(TIe,"baseSome");Yre=TIe});function kIe(t,e,r){var n=Mt(t)?Dw:Yre;return r&&Zs(t,e,r)&&(e=void 0),n(t,dn(e,3))}var Rv,Xre=M(()=>{"use strict";AL();Qa();qre();Vn();Td();o(kIe,"some");Rv=kIe});var EIe,kc,jre=M(()=>{"use strict";Em();bre();tm();Td();EIe=pc(function(t,e){if(t==null)return[];var r=e.length;return r>1&&Zs(t,e[0],e[1])?e=[]:r>2&&Zs(e[0],e[1],e[2])&&(e=[e[0]]),xre(t,wc(e,1),[])}),kc=EIe});var SIe,CIe,Kre,Qre=M(()=>{"use strict";kL();fL();Mw();SIe=1/0,CIe=Wh&&1/Lm(new Wh([,-0]))[1]==SIe?function(t){return new Wh(t)}:Jn,Kre=CIe});function _Ie(t,e,r){var n=-1,i=hw,a=t.length,s=!0,l=[],u=l;if(r)s=!1,i=Uw;else if(a>=AIe){var h=e?null:Kre(t);if(h)return Lm(h);s=!1,i=_m,u=new Am}else u=e?[]:l;e:for(;++n{"use strict";Lw();mL();PL();Nw();Qre();Mw();AIe=200;o(_Ie,"baseUniq");Im=_Ie});var LIe,ZL,Zre=M(()=>{"use strict";Em();tm();eT();o5();LIe=pc(function(t){return Im(wc(t,1,xd,!0))}),ZL=LIe});function DIe(t){return t&&t.length?Im(t):[]}var Om,Jre=M(()=>{"use strict";eT();o(DIe,"uniq");Om=DIe});function NIe(t,e){return t&&t.length?Im(t,dn(e,2)):[]}var ene,tne=M(()=>{"use strict";Qa();eT();o(NIe,"uniqBy");ene=NIe});function MIe(t){var e=++RIe;return pw(t)+e}var RIe,Pd,rne=M(()=>{"use strict";gL();RIe=0;o(MIe,"uniqueId");Pd=MIe});function IIe(t,e,r){for(var n=-1,i=t.length,a=e.length,s={};++n{"use strict";o(IIe,"baseZipObject");nne=IIe});function OIe(t,e){return nne(t||[],e||[],dc)}var tT,ane=M(()=>{"use strict";em();ine();o(OIe,"zipObject");tT=OIe});var Ht=M(()=>{"use strict";LJ();SL();Mee();Iee();W_();Tte();Ste();Ate();_te();Lte();Ite();FL();zte();$te();GL();gw();Ww();Vte();Ute();Hte();jte();Tu();Zte();Jte();Vn();Kw();jy();Qs();nre();Xw();ire();xc();Cte();Rm();are();sre();X_();YL();ore();fL();bte();Pre();fre();$re();KL();Hre();Wre();Xre();jre();Zre();Jre();rne();HL();ane();});function one(t,e){t[e]?t[e]++:t[e]=1}function lne(t,e){--t[e]||delete t[e]}function Mv(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var s=i;i=a,a=s}return i+sne+a+sne+(dr(n)?PIe:n)}function BIe(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var s=i;i=a,a=s}var l={v:i,w:a};return n&&(l.name=n),l}function JL(t,e){return Mv(t,e.v,e.w,e.name)}var PIe,Bd,sne,Mr,rT=M(()=>{"use strict";Ht();PIe="\0",Bd="\0",sne="",Mr=class{static{o(this,"Graph")}constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=bs(void 0),this._defaultEdgeLabelFn=bs(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[Bd]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return Ei(e)||(e=bs(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return zr(this._nodes)}sources(){var e=this;return Yr(this.nodes(),function(r){return cr(e._in[r])})}sinks(){var e=this;return Yr(this.nodes(),function(r){return cr(e._out[r])})}setNodes(e,r){var n=arguments,i=this;return Ce(e,function(a){n.length>1?i.setNode(a,r):i.setNode(a)}),this}setNode(e,r){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=Bd,this._children[e]={},this._children[Bd][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var r=o(n=>this.removeEdge(this._edgeObjs[n]),"removeEdge");delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],Ce(this.children(e),n=>{this.setParent(n)}),delete this._children[e]),Ce(zr(this._in[e]),r),delete this._in[e],delete this._preds[e],Ce(zr(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(dr(r))r=Bd;else{r+="";for(var n=r;!dr(n);n=this.parent(n))if(n===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==Bd)return r}}children(e){if(dr(e)&&(e=Bd),this._isCompound){var r=this._children[e];if(r)return zr(r)}else{if(e===Bd)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return zr(r)}successors(e){var r=this._sucs[e];if(r)return zr(r)}neighbors(e){var r=this.predecessors(e);if(r)return ZL(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;Ce(this._nodes,function(s,l){e(l)&&r.setNode(l,s)}),Ce(this._edgeObjs,function(s){r.hasNode(s.v)&&r.hasNode(s.w)&&r.setEdge(s,n.edge(s))});var i={};function a(s){var l=n.parent(s);return l===void 0||r.hasNode(l)?(i[s]=l,l):l in i?i[l]:a(l)}return o(a,"findParent"),this._isCompound&&Ce(r.nodes(),function(s){r.setParent(s,a(s))}),r}setDefaultEdgeLabel(e){return Ei(e)||(e=bs(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return br(this._edgeObjs)}setPath(e,r){var n=this,i=arguments;return qr(e,function(a,s){return i.length>1?n.setEdge(a,s,r):n.setEdge(a,s),s}),this}setEdge(){var e,r,n,i,a=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(e=s.v,r=s.w,n=s.name,arguments.length===2&&(i=arguments[1],a=!0)):(e=s,r=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,r=""+r,dr(n)||(n=""+n);var l=Mv(this._isDirected,e,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,l))return a&&(this._edgeLabels[l]=i),this;if(!dr(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[l]=a?i:this._defaultEdgeLabelFn(e,r,n);var u=BIe(this._isDirected,e,r,n);return e=u.v,r=u.w,Object.freeze(u),this._edgeObjs[l]=u,one(this._preds[r],e),one(this._sucs[e],r),this._in[r][l]=u,this._out[e][l]=u,this._edgeCount++,this}edge(e,r,n){var i=arguments.length===1?JL(this._isDirected,arguments[0]):Mv(this._isDirected,e,r,n);return this._edgeLabels[i]}hasEdge(e,r,n){var i=arguments.length===1?JL(this._isDirected,arguments[0]):Mv(this._isDirected,e,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,r,n){var i=arguments.length===1?JL(this._isDirected,arguments[0]):Mv(this._isDirected,e,r,n),a=this._edgeObjs[i];return a&&(e=a.v,r=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],lne(this._preds[r],e),lne(this._sucs[e],r),delete this._in[r][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,r){var n=this._in[e];if(n){var i=br(n);return r?Yr(i,function(a){return a.v===r}):i}}outEdges(e,r){var n=this._out[e];if(n){var i=br(n);return r?Yr(i,function(a){return a.w===r}):i}}nodeEdges(e,r){var n=this.inEdges(e,r);if(n)return n.concat(this.outEdges(e,r))}};Mr.prototype._nodeCount=0;Mr.prototype._edgeCount=0;o(one,"incrementOrInitEntry");o(lne,"decrementOrRemoveEntry");o(Mv,"edgeArgsToId");o(BIe,"edgeArgsToObj");o(JL,"edgeObjToId")});var Ns=M(()=>{"use strict";rT()});function cne(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function FIe(t,e){if(t!=="_next"&&t!=="_prev")return e}var nT,une=M(()=>{"use strict";nT=class{static{o(this,"List")}constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return cne(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&cne(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,n=r._prev;n!==r;)e.push(JSON.stringify(n,FIe)),n=n._prev;return"["+e.join(", ")+"]"}};o(cne,"unlink");o(FIe,"filterOutLinks")});function hne(t,e){if(t.nodeCount()<=1)return[];var r=$Ie(t,e||zIe),n=GIe(r.graph,r.buckets,r.zeroIdx);return Wr(Je(n,function(i){return t.outEdges(i.v,i.w)}))}function GIe(t,e,r){for(var n=[],i=e[e.length-1],a=e[0],s;t.nodeCount();){for(;s=a.dequeue();)eD(t,e,r,s);for(;s=i.dequeue();)eD(t,e,r,s);if(t.nodeCount()){for(var l=e.length-2;l>0;--l)if(s=e[l].dequeue(),s){n=n.concat(eD(t,e,r,s,!0));break}}}return n}function eD(t,e,r,n,i){var a=i?[]:void 0;return Ce(t.inEdges(n.v),function(s){var l=t.edge(s),u=t.node(s.v);i&&a.push({v:s.v,w:s.w}),u.out-=l,tD(e,r,u)}),Ce(t.outEdges(n.v),function(s){var l=t.edge(s),u=s.w,h=t.node(u);h.in-=l,tD(e,r,h)}),t.removeNode(n.v),a}function $Ie(t,e){var r=new Mr,n=0,i=0;Ce(t.nodes(),function(l){r.setNode(l,{v:l,in:0,out:0})}),Ce(t.edges(),function(l){var u=r.edge(l.v,l.w)||0,h=e(l),f=u+h;r.setEdge(l.v,l.w,f),i=Math.max(i,r.node(l.v).out+=h),n=Math.max(n,r.node(l.w).in+=h)});var a=Uo(i+n+3).map(function(){return new nT}),s=n+1;return Ce(r.nodes(),function(l){tD(a,s,r.node(l))}),{graph:r,buckets:a,zeroIdx:s}}function tD(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}var zIe,fne=M(()=>{"use strict";Ht();Ns();une();zIe=bs(1);o(hne,"greedyFAS");o(GIe,"doGreedyFAS");o(eD,"removeNode");o($Ie,"buildState");o(tD,"assignBucket")});function dne(t){var e=t.graph().acyclicer==="greedy"?hne(t,r(t)):VIe(t);Ce(e,function(n){var i=t.edge(n);t.removeEdge(n),i.forwardName=n.name,i.reversed=!0,t.setEdge(n.w,n.v,i,Pd("rev"))});function r(n){return function(i){return n.edge(i).weight}}o(r,"weightFn")}function VIe(t){var e=[],r={},n={};function i(a){Object.prototype.hasOwnProperty.call(n,a)||(n[a]=!0,r[a]=!0,Ce(t.outEdges(a),function(s){Object.prototype.hasOwnProperty.call(r,s.w)?e.push(s):i(s.w)}),delete r[a])}return o(i,"dfs"),Ce(t.nodes(),i),e}function pne(t){Ce(t.edges(),function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}})}var rD=M(()=>{"use strict";Ht();fne();o(dne,"run");o(VIe,"dfsFAS");o(pne,"undo")});function Ec(t,e,r,n){var i;do i=Pd(n);while(t.hasNode(i));return r.dummy=e,t.setNode(i,r),i}function gne(t){var e=new Mr().setGraph(t.graph());return Ce(t.nodes(),function(r){e.setNode(r,t.node(r))}),Ce(t.edges(),function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},i=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),e}function iT(t){var e=new Mr({multigraph:t.isMultigraph()}).setGraph(t.graph());return Ce(t.nodes(),function(r){t.children(r).length||e.setNode(r,t.node(r))}),Ce(t.edges(),function(r){e.setEdge(r,t.edge(r))}),e}function nD(t,e){var r=t.x,n=t.y,i=e.x-r,a=e.y-n,s=t.width/2,l=t.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var u,h;return Math.abs(a)*s>Math.abs(i)*l?(a<0&&(l=-l),u=l*i/a,h=l):(i<0&&(s=-s),u=s,h=s*a/i),{x:r+u,y:n+h}}function Kh(t){var e=Je(Uo(aD(t)+1),function(){return[]});return Ce(t.nodes(),function(r){var n=t.node(r),i=n.rank;dr(i)||(e[i][n.order]=r)}),e}function yne(t){var e=Nl(Je(t.nodes(),function(r){return t.node(r).rank}));Ce(t.nodes(),function(r){var n=t.node(r);It(n,"rank")&&(n.rank-=e)})}function vne(t){var e=Nl(Je(t.nodes(),function(a){return t.node(a).rank})),r=[];Ce(t.nodes(),function(a){var s=t.node(a).rank-e;r[s]||(r[s]=[]),r[s].push(a)});var n=0,i=t.graph().nodeRankFactor;Ce(r,function(a,s){dr(a)&&s%i!==0?--n:n&&Ce(a,function(l){t.node(l).rank+=n})})}function iD(t,e,r,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=n),Ec(t,"border",i,e)}function aD(t){return Ls(Je(t.nodes(),function(e){var r=t.node(e).rank;if(!dr(r))return r}))}function xne(t,e){var r={lhs:[],rhs:[]};return Ce(t,function(n){e(n)?r.lhs.push(n):r.rhs.push(n)}),r}function bne(t,e){var r=Vw();try{return e()}finally{console.log(t+" time: "+(Vw()-r)+"ms")}}function wne(t,e){return e()}var Sc=M(()=>{"use strict";Ht();Ns();o(Ec,"addDummyNode");o(gne,"simplify");o(iT,"asNonCompoundGraph");o(nD,"intersectRect");o(Kh,"buildLayerMatrix");o(yne,"normalizeRanks");o(vne,"removeEmptyRanks");o(iD,"addBorderNode");o(aD,"maxRank");o(xne,"partition");o(bne,"time");o(wne,"notime")});function kne(t){function e(r){var n=t.children(r),i=t.node(r);if(n.length&&Ce(n,e),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,s=i.maxRank+1;a{"use strict";Ht();Sc();o(kne,"addBorderSegments");o(Tne,"addBorderNode")});function Cne(t){var e=t.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&_ne(t)}function Ane(t){var e=t.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&UIe(t),(e==="lr"||e==="rl")&&(HIe(t),_ne(t))}function _ne(t){Ce(t.nodes(),function(e){Sne(t.node(e))}),Ce(t.edges(),function(e){Sne(t.edge(e))})}function Sne(t){var e=t.width;t.width=t.height,t.height=e}function UIe(t){Ce(t.nodes(),function(e){sD(t.node(e))}),Ce(t.edges(),function(e){var r=t.edge(e);Ce(r.points,sD),Object.prototype.hasOwnProperty.call(r,"y")&&sD(r)})}function sD(t){t.y=-t.y}function HIe(t){Ce(t.nodes(),function(e){oD(t.node(e))}),Ce(t.edges(),function(e){var r=t.edge(e);Ce(r.points,oD),Object.prototype.hasOwnProperty.call(r,"x")&&oD(r)})}function oD(t){var e=t.x;t.x=t.y,t.y=e}var Lne=M(()=>{"use strict";Ht();o(Cne,"adjust");o(Ane,"undo");o(_ne,"swapWidthHeight");o(Sne,"swapWidthHeightOne");o(UIe,"reverseY");o(sD,"reverseYOne");o(HIe,"swapXY");o(oD,"swapXYOne")});function Dne(t){t.graph().dummyChains=[],Ce(t.edges(),function(e){YIe(t,e)})}function YIe(t,e){var r=e.v,n=t.node(r).rank,i=e.w,a=t.node(i).rank,s=e.name,l=t.edge(e),u=l.labelRank;if(a!==n+1){t.removeEdge(e);var h=void 0,f,d;for(d=0,++n;n{"use strict";Ht();Sc();o(Dne,"run");o(YIe,"normalizeEdge");o(Nne,"undo")});function Iv(t){var e={};function r(n){var i=t.node(n);if(Object.prototype.hasOwnProperty.call(e,n))return i.rank;e[n]=!0;var a=Nl(Je(t.outEdges(n),function(s){return r(s.w)-t.edge(s).minlen}));return(a===Number.POSITIVE_INFINITY||a===void 0||a===null)&&(a=0),i.rank=a}o(r,"dfs"),Ce(t.sources(),r)}function Fd(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}var aT=M(()=>{"use strict";Ht();o(Iv,"longestPath");o(Fd,"slack")});function sT(t){var e=new Mr({directed:!1}),r=t.nodes()[0],n=t.nodeCount();e.setNode(r,{});for(var i,a;qIe(e,t){"use strict";Ht();Ns();aT();o(sT,"feasibleTree");o(qIe,"tightTree");o(XIe,"findMinSlackEdge");o(jIe,"shiftRanks")});var Mne=M(()=>{"use strict"});var uD=M(()=>{"use strict"});var $Yt,hD=M(()=>{"use strict";Ht();uD();$Yt=bs(1)});var Ine=M(()=>{"use strict";hD()});var fD=M(()=>{"use strict"});var One=M(()=>{"use strict";fD()});var ZYt,Pne=M(()=>{"use strict";Ht();ZYt=bs(1)});function dD(t){var e={},r={},n=[];function i(a){if(Object.prototype.hasOwnProperty.call(r,a))throw new Ov;Object.prototype.hasOwnProperty.call(e,a)||(r[a]=!0,e[a]=!0,Ce(t.predecessors(a),i),delete r[a],n.push(a))}if(o(i,"visit"),Ce(t.sinks(),i),QL(e)!==t.nodeCount())throw new Ov;return n}function Ov(){}var pD=M(()=>{"use strict";Ht();dD.CycleException=Ov;o(dD,"topsort");o(Ov,"CycleException");Ov.prototype=new Error});var Bne=M(()=>{"use strict";pD()});function oT(t,e,r){Mt(e)||(e=[e]);var n=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],a={};return Ce(e,function(s){if(!t.hasNode(s))throw new Error("Graph does not have node: "+s);Fne(t,s,r==="post",a,n,i)}),i}function Fne(t,e,r,n,i,a){Object.prototype.hasOwnProperty.call(n,e)||(n[e]=!0,r||a.push(e),Ce(i(e),function(s){Fne(t,s,r,n,i,a)}),r&&a.push(e))}var mD=M(()=>{"use strict";Ht();o(oT,"dfs");o(Fne,"doDfs")});function gD(t,e){return oT(t,e,"post")}var zne=M(()=>{"use strict";mD();o(gD,"postorder")});function yD(t,e){return oT(t,e,"pre")}var Gne=M(()=>{"use strict";mD();o(yD,"preorder")});var $ne=M(()=>{"use strict";uD();rT()});var Vne=M(()=>{"use strict";Mne();hD();Ine();One();Pne();Bne();zne();Gne();$ne();fD();pD()});function Zh(t){t=gne(t),Iv(t);var e=sT(t);xD(e),vD(e,t);for(var r,n;r=Yne(e);)n=qne(e,t,r),Xne(e,t,r,n)}function vD(t,e){var r=gD(t,t.nodes());r=r.slice(0,r.length-1),Ce(r,function(n){eOe(t,e,n)})}function eOe(t,e,r){var n=t.node(r),i=n.parent;t.edge(r,i).cutvalue=Hne(t,e,r)}function Hne(t,e,r){var n=t.node(r),i=n.parent,a=!0,s=e.edge(r,i),l=0;return s||(a=!1,s=e.edge(i,r)),l=s.weight,Ce(e.nodeEdges(r),function(u){var h=u.v===r,f=h?u.w:u.v;if(f!==i){var d=h===a,p=e.edge(u).weight;if(l+=d?p:-p,rOe(t,r,f)){var m=t.edge(r,f).cutvalue;l+=d?-m:m}}}),l}function xD(t,e){arguments.length<2&&(e=t.nodes()[0]),Wne(t,{},1,e)}function Wne(t,e,r,n,i){var a=r,s=t.node(n);return e[n]=!0,Ce(t.neighbors(n),function(l){Object.prototype.hasOwnProperty.call(e,l)||(r=Wne(t,e,r,l,n))}),s.low=a,s.lim=r++,i?s.parent=i:delete s.parent,r}function Yne(t){return Za(t.edges(),function(e){return t.edge(e).cutvalue<0})}function qne(t,e,r){var n=r.v,i=r.w;e.hasEdge(n,i)||(n=r.w,i=r.v);var a=t.node(n),s=t.node(i),l=a,u=!1;a.lim>s.lim&&(l=s,u=!0);var h=Yr(e.edges(),function(f){return u===Une(t,t.node(f.v),l)&&u!==Une(t,t.node(f.w),l)});return Id(h,function(f){return Fd(e,f)})}function Xne(t,e,r,n){var i=r.v,a=r.w;t.removeEdge(i,a),t.setEdge(n.v,n.w,{}),xD(t),vD(t,e),tOe(t,e)}function tOe(t,e){var r=Za(t.nodes(),function(i){return!e.node(i).parent}),n=yD(t,r);n=n.slice(1),Ce(n,function(i){var a=t.node(i).parent,s=e.edge(i,a),l=!1;s||(s=e.edge(a,i),l=!0),e.node(i).rank=e.node(a).rank+(l?s.minlen:-s.minlen)})}function rOe(t,e,r){return t.hasEdge(e,r)}function Une(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}var jne=M(()=>{"use strict";Ht();Vne();Sc();cD();aT();Zh.initLowLimValues=xD;Zh.initCutValues=vD;Zh.calcCutValue=Hne;Zh.leaveEdge=Yne;Zh.enterEdge=qne;Zh.exchangeEdges=Xne;o(Zh,"networkSimplex");o(vD,"initCutValues");o(eOe,"assignCutValue");o(Hne,"calcCutValue");o(xD,"initLowLimValues");o(Wne,"dfsAssignLowLim");o(Yne,"leaveEdge");o(qne,"enterEdge");o(Xne,"exchangeEdges");o(tOe,"updateRanks");o(rOe,"isTreeEdge");o(Une,"isDescendant")});function bD(t){switch(t.graph().ranker){case"network-simplex":Kne(t);break;case"tight-tree":iOe(t);break;case"longest-path":nOe(t);break;default:Kne(t)}}function iOe(t){Iv(t),sT(t)}function Kne(t){Zh(t)}var nOe,wD=M(()=>{"use strict";cD();jne();aT();o(bD,"rank");nOe=Iv;o(iOe,"tightTreeRanker");o(Kne,"networkSimplexRanker")});function Qne(t){var e=Ec(t,"root",{},"_root"),r=aOe(t),n=Ls(br(r))-1,i=2*n+1;t.graph().nestingRoot=e,Ce(t.edges(),function(s){t.edge(s).minlen*=i});var a=sOe(t)+1;Ce(t.children(),function(s){Zne(t,e,i,a,n,r,s)}),t.graph().nodeRankFactor=i}function Zne(t,e,r,n,i,a,s){var l=t.children(s);if(!l.length){s!==e&&t.setEdge(e,s,{weight:0,minlen:r});return}var u=iD(t,"_bt"),h=iD(t,"_bb"),f=t.node(s);t.setParent(u,s),f.borderTop=u,t.setParent(h,s),f.borderBottom=h,Ce(l,function(d){Zne(t,e,r,n,i,a,d);var p=t.node(d),m=p.borderTop?p.borderTop:d,g=p.borderBottom?p.borderBottom:d,y=p.borderTop?n:2*n,v=m!==g?1:i-a[s]+1;t.setEdge(u,m,{weight:y,minlen:v,nestingEdge:!0}),t.setEdge(g,h,{weight:y,minlen:v,nestingEdge:!0})}),t.parent(s)||t.setEdge(e,u,{weight:0,minlen:i+a[s]})}function aOe(t){var e={};function r(n,i){var a=t.children(n);a&&a.length&&Ce(a,function(s){r(s,i+1)}),e[n]=i}return o(r,"dfs"),Ce(t.children(),function(n){r(n,1)}),e}function sOe(t){return qr(t.edges(),function(e,r){return e+t.edge(r).weight},0)}function Jne(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,Ce(t.edges(),function(r){var n=t.edge(r);n.nestingEdge&&t.removeEdge(r)})}var eie=M(()=>{"use strict";Ht();Sc();o(Qne,"run");o(Zne,"dfs");o(aOe,"treeDepths");o(sOe,"sumWeights");o(Jne,"cleanup")});function tie(t,e,r){var n={},i;Ce(r,function(a){for(var s=t.parent(a),l,u;s;){if(l=t.parent(s),l?(u=n[l],n[l]=s):(u=i,i=s),u&&u!==s){e.setEdge(u,s);return}s=l}})}var rie=M(()=>{"use strict";Ht();o(tie,"addSubgraphConstraints")});function nie(t,e,r){var n=lOe(t),i=new Mr({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(a){return t.node(a)});return Ce(t.nodes(),function(a){var s=t.node(a),l=t.parent(a);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(i.setNode(a),i.setParent(a,l||n),Ce(t[r](a),function(u){var h=u.v===a?u.w:u.v,f=i.edge(h,a),d=dr(f)?0:f.weight;i.setEdge(h,a,{weight:t.edge(u).weight+d})}),Object.prototype.hasOwnProperty.call(s,"minRank")&&i.setNode(a,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),i}function lOe(t){for(var e;t.hasNode(e=Pd("_root")););return e}var iie=M(()=>{"use strict";Ht();Ns();o(nie,"buildLayerGraph");o(lOe,"createRootNode")});function aie(t,e){for(var r=0,n=1;n0;)f%2&&(d+=l[f+1]),f=f-1>>1,l[f]+=h.weight;u+=h.weight*d})),u}var sie=M(()=>{"use strict";Ht();o(aie,"crossCount");o(cOe,"twoLayerCrossCount")});function oie(t){var e={},r=Yr(t.nodes(),function(l){return!t.children(l).length}),n=Ls(Je(r,function(l){return t.node(l).rank})),i=Je(Uo(n+1),function(){return[]});function a(l){if(!It(e,l)){e[l]=!0;var u=t.node(l);i[u.rank].push(l),Ce(t.successors(l),a)}}o(a,"dfs");var s=kc(r,function(l){return t.node(l).rank});return Ce(s,a),i}var lie=M(()=>{"use strict";Ht();o(oie,"initOrder")});function cie(t,e){return Je(e,function(r){var n=t.inEdges(r);if(n.length){var i=qr(n,function(a,s){var l=t.edge(s),u=t.node(s.v);return{sum:a.sum+l.weight*u.order,weight:a.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}var uie=M(()=>{"use strict";Ht();o(cie,"barycenter")});function hie(t,e){var r={};Ce(t,function(i,a){var s=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};dr(i.barycenter)||(s.barycenter=i.barycenter,s.weight=i.weight)}),Ce(e.edges(),function(i){var a=r[i.v],s=r[i.w];!dr(a)&&!dr(s)&&(s.indegree++,a.out.push(r[i.w]))});var n=Yr(r,function(i){return!i.indegree});return uOe(n)}function uOe(t){var e=[];function r(a){return function(s){s.merged||(dr(s.barycenter)||dr(a.barycenter)||s.barycenter>=a.barycenter)&&hOe(a,s)}}o(r,"handleIn");function n(a){return function(s){s.in.push(a),--s.indegree===0&&t.push(s)}}for(o(n,"handleOut");t.length;){var i=t.pop();e.push(i),Ce(i.in.reverse(),r(i)),Ce(i.out,n(i))}return Je(Yr(e,function(a){return!a.merged}),function(a){return Od(a,["vs","i","barycenter","weight"])})}function hOe(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}var fie=M(()=>{"use strict";Ht();o(hie,"resolveConflicts");o(uOe,"doResolveConflicts");o(hOe,"mergeEntries")});function pie(t,e){var r=xne(t,function(f){return Object.prototype.hasOwnProperty.call(f,"barycenter")}),n=r.lhs,i=kc(r.rhs,function(f){return-f.i}),a=[],s=0,l=0,u=0;n.sort(fOe(!!e)),u=die(a,i,u),Ce(n,function(f){u+=f.vs.length,a.push(f.vs),s+=f.barycenter*f.weight,l+=f.weight,u=die(a,i,u)});var h={vs:Wr(a)};return l&&(h.barycenter=s/l,h.weight=l),h}function die(t,e,r){for(var n;e.length&&(n=fa(e)).i<=r;)e.pop(),t.push(n.vs),r++;return r}function fOe(t){return function(e,r){return e.barycenterr.barycenter?1:t?r.i-e.i:e.i-r.i}}var mie=M(()=>{"use strict";Ht();Sc();o(pie,"sort");o(die,"consumeUnsortable");o(fOe,"compareWithBias")});function TD(t,e,r,n){var i=t.children(e),a=t.node(e),s=a?a.borderLeft:void 0,l=a?a.borderRight:void 0,u={};s&&(i=Yr(i,function(g){return g!==s&&g!==l}));var h=cie(t,i);Ce(h,function(g){if(t.children(g.v).length){var y=TD(t,g.v,r,n);u[g.v]=y,Object.prototype.hasOwnProperty.call(y,"barycenter")&&pOe(g,y)}});var f=hie(h,r);dOe(f,u);var d=pie(f,n);if(s&&(d.vs=Wr([s,d.vs,l]),t.predecessors(s).length)){var p=t.node(t.predecessors(s)[0]),m=t.node(t.predecessors(l)[0]);Object.prototype.hasOwnProperty.call(d,"barycenter")||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+p.order+m.order)/(d.weight+2),d.weight+=2}return d}function dOe(t,e){Ce(t,function(r){r.vs=Wr(r.vs.map(function(n){return e[n]?e[n].vs:n}))})}function pOe(t,e){dr(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}var gie=M(()=>{"use strict";Ht();uie();fie();mie();o(TD,"sortSubgraph");o(dOe,"expandSubgraphs");o(pOe,"mergeBarycenters")});function xie(t){var e=aD(t),r=yie(t,Uo(1,e+1),"inEdges"),n=yie(t,Uo(e-1,-1,-1),"outEdges"),i=oie(t);vie(t,i);for(var a=Number.POSITIVE_INFINITY,s,l=0,u=0;u<4;++l,++u){mOe(l%2?r:n,l%4>=2),i=Kh(t);var h=aie(t,i);h{"use strict";Ht();Ns();Sc();rie();iie();sie();lie();gie();o(xie,"order");o(yie,"buildLayerGraphs");o(mOe,"sweepLayerGraphs");o(vie,"assignOrder")});function wie(t){var e=yOe(t);Ce(t.graph().dummyChains,function(r){for(var n=t.node(r),i=n.edgeObj,a=gOe(t,e,i.v,i.w),s=a.path,l=a.lca,u=0,h=s[u],f=!0;r!==i.w;){if(n=t.node(r),f){for(;(h=s[u])!==l&&t.node(h).maxRanks||l>e[u].lim));for(h=u,u=n;(u=t.parent(u))!==h;)a.push(u);return{path:i.concat(a.reverse()),lca:h}}function yOe(t){var e={},r=0;function n(i){var a=r;Ce(t.children(i),n),e[i]={low:a,lim:r++}}return o(n,"dfs"),Ce(t.children(),n),e}var Tie=M(()=>{"use strict";Ht();o(wie,"parentDummyChains");o(gOe,"findPath");o(yOe,"postorder")});function vOe(t,e){var r={};function n(i,a){var s=0,l=0,u=i.length,h=fa(a);return Ce(a,function(f,d){var p=bOe(t,f),m=p?t.node(p).order:u;(p||f===h)&&(Ce(a.slice(l,d+1),function(g){Ce(t.predecessors(g),function(y){var v=t.node(y),x=v.order;(xh)&&kie(r,p,f)})})}o(n,"scan");function i(a,s){var l=-1,u,h=0;return Ce(s,function(f,d){if(t.node(f).dummy==="border"){var p=t.predecessors(f);p.length&&(u=t.node(p[0]).order,n(s,h,d,l,u),h=d,l=u)}n(s,h,s.length,u,a.length)}),s}return o(i,"visitLayer"),qr(e,i),r}function bOe(t,e){if(t.node(e).dummy)return Za(t.predecessors(e),function(r){return t.node(r).dummy})}function kie(t,e,r){if(e>r){var n=e;e=r,r=n}var i=t[e];i||(t[e]=i={}),i[r]=!0}function wOe(t,e,r){if(e>r){var n=e;e=r,r=n}return!!t[e]&&Object.prototype.hasOwnProperty.call(t[e],r)}function TOe(t,e,r,n){var i={},a={},s={};return Ce(e,function(l){Ce(l,function(u,h){i[u]=u,a[u]=u,s[u]=h})}),Ce(e,function(l){var u=-1;Ce(l,function(h){var f=n(h);if(f.length){f=kc(f,function(y){return s[y]});for(var d=(f.length-1)/2,p=Math.floor(d),m=Math.ceil(d);p<=m;++p){var g=f[p];a[h]===h&&u{"use strict";Ht();Ns();Sc();o(vOe,"findType1Conflicts");o(xOe,"findType2Conflicts");o(bOe,"findOtherInnerSegmentNode");o(kie,"addConflict");o(wOe,"hasConflict");o(TOe,"verticalAlignment");o(kOe,"horizontalCompaction");o(EOe,"buildBlockGraph");o(SOe,"findSmallestWidthAlignment");o(COe,"alignCoordinates");o(AOe,"balance");o(Eie,"positionX");o(_Oe,"sep");o(LOe,"width")});function Cie(t){t=iT(t),DOe(t),VL(Eie(t),function(e,r){t.node(r).x=e})}function DOe(t){var e=Kh(t),r=t.graph().ranksep,n=0;Ce(e,function(i){var a=Ls(Je(i,function(s){return t.node(s).height}));Ce(i,function(s){t.node(s).y=n+a/2}),n+=a+r})}var Aie=M(()=>{"use strict";Ht();Sc();Sie();o(Cie,"position");o(DOe,"positionY")});function Du(t,e){var r=e&&e.debugTiming?bne:wne;r("layout",()=>{var n=r(" buildLayoutGraph",()=>$Oe(t));r(" runLayout",()=>NOe(n,r)),r(" updateInputGraph",()=>ROe(t,n))})}function NOe(t,e){e(" makeSpaceForEdgeLabels",()=>VOe(t)),e(" removeSelfEdges",()=>QOe(t)),e(" acyclic",()=>dne(t)),e(" nestingGraph.run",()=>Qne(t)),e(" rank",()=>bD(iT(t))),e(" injectEdgeLabelProxies",()=>UOe(t)),e(" removeEmptyRanks",()=>vne(t)),e(" nestingGraph.cleanup",()=>Jne(t)),e(" normalizeRanks",()=>yne(t)),e(" assignRankMinMax",()=>HOe(t)),e(" removeEdgeLabelProxies",()=>WOe(t)),e(" normalize.run",()=>Dne(t)),e(" parentDummyChains",()=>wie(t)),e(" addBorderSegments",()=>kne(t)),e(" order",()=>xie(t)),e(" insertSelfEdges",()=>ZOe(t)),e(" adjustCoordinateSystem",()=>Cne(t)),e(" position",()=>Cie(t)),e(" positionSelfEdges",()=>JOe(t)),e(" removeBorderNodes",()=>KOe(t)),e(" normalize.undo",()=>Nne(t)),e(" fixupEdgeLabelCoords",()=>XOe(t)),e(" undoCoordinateSystem",()=>Ane(t)),e(" translateGraph",()=>YOe(t)),e(" assignNodeIntersects",()=>qOe(t)),e(" reversePoints",()=>jOe(t)),e(" acyclic.undo",()=>pne(t))}function ROe(t,e){Ce(t.nodes(),function(r){var n=t.node(r),i=e.node(r);n&&(n.x=i.x,n.y=i.y,e.children(r).length&&(n.width=i.width,n.height=i.height))}),Ce(t.edges(),function(r){var n=t.edge(r),i=e.edge(r);n.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(n.x=i.x,n.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}function $Oe(t){var e=new Mr({multigraph:!0,compound:!0}),r=ED(t.graph());return e.setGraph(Ih({},IOe,kD(r,MOe),Od(r,OOe))),Ce(t.nodes(),function(n){var i=ED(t.node(n));e.setNode(n,qh(kD(i,POe),BOe)),e.setParent(n,t.parent(n))}),Ce(t.edges(),function(n){var i=ED(t.edge(n));e.setEdge(n,Ih({},zOe,kD(i,FOe),Od(i,GOe)))}),e}function VOe(t){var e=t.graph();e.ranksep/=2,Ce(t.edges(),function(r){var n=t.edge(r);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function UOe(t){Ce(t.edges(),function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),i=t.node(e.w),a={rank:(i.rank-n.rank)/2+n.rank,e};Ec(t,"edge-proxy",a,"_ep")}})}function HOe(t){var e=0;Ce(t.nodes(),function(r){var n=t.node(r);n.borderTop&&(n.minRank=t.node(n.borderTop).rank,n.maxRank=t.node(n.borderBottom).rank,e=Ls(e,n.maxRank))}),t.graph().maxRank=e}function WOe(t){Ce(t.nodes(),function(e){var r=t.node(e);r.dummy==="edge-proxy"&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))})}function YOe(t){var e=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,i=0,a=t.graph(),s=a.marginx||0,l=a.marginy||0;function u(h){var f=h.x,d=h.y,p=h.width,m=h.height;e=Math.min(e,f-p/2),r=Math.max(r,f+p/2),n=Math.min(n,d-m/2),i=Math.max(i,d+m/2)}o(u,"getExtremes"),Ce(t.nodes(),function(h){u(t.node(h))}),Ce(t.edges(),function(h){var f=t.edge(h);Object.prototype.hasOwnProperty.call(f,"x")&&u(f)}),e-=s,n-=l,Ce(t.nodes(),function(h){var f=t.node(h);f.x-=e,f.y-=n}),Ce(t.edges(),function(h){var f=t.edge(h);Ce(f.points,function(d){d.x-=e,d.y-=n}),Object.prototype.hasOwnProperty.call(f,"x")&&(f.x-=e),Object.prototype.hasOwnProperty.call(f,"y")&&(f.y-=n)}),a.width=r-e+s,a.height=i-n+l}function qOe(t){Ce(t.edges(),function(e){var r=t.edge(e),n=t.node(e.v),i=t.node(e.w),a,s;r.points?(a=r.points[0],s=r.points[r.points.length-1]):(r.points=[],a=i,s=n),r.points.unshift(nD(n,a)),r.points.push(nD(i,s))})}function XOe(t){Ce(t.edges(),function(e){var r=t.edge(e);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function jOe(t){Ce(t.edges(),function(e){var r=t.edge(e);r.reversed&&r.points.reverse()})}function KOe(t){Ce(t.nodes(),function(e){if(t.children(e).length){var r=t.node(e),n=t.node(r.borderTop),i=t.node(r.borderBottom),a=t.node(fa(r.borderLeft)),s=t.node(fa(r.borderRight));r.width=Math.abs(s.x-a.x),r.height=Math.abs(i.y-n.y),r.x=a.x+r.width/2,r.y=n.y+r.height/2}}),Ce(t.nodes(),function(e){t.node(e).dummy==="border"&&t.removeNode(e)})}function QOe(t){Ce(t.edges(),function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}})}function ZOe(t){var e=Kh(t);Ce(e,function(r){var n=0;Ce(r,function(i,a){var s=t.node(i);s.order=a+n,Ce(s.selfEdges,function(l){Ec(t,"selfedge",{width:l.label.width,height:l.label.height,rank:s.rank,order:a+ ++n,e:l.e,label:l.label},"_se")}),delete s.selfEdges})})}function JOe(t){Ce(t.nodes(),function(e){var r=t.node(e);if(r.dummy==="selfedge"){var n=t.node(r.e.v),i=n.x+n.width/2,a=n.y,s=r.x-i,l=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:i+2*s/3,y:a-l},{x:i+5*s/6,y:a-l},{x:i+s,y:a},{x:i+5*s/6,y:a+l},{x:i+2*s/3,y:a+l}],r.label.x=r.x,r.label.y=r.y}})}function kD(t,e){return Md(Od(t,e),Number)}function ED(t){var e={};return Ce(t,function(r,n){e[n.toLowerCase()]=r}),e}var MOe,IOe,OOe,POe,BOe,FOe,zOe,GOe,_ie=M(()=>{"use strict";Ht();Ns();Ene();Lne();rD();lD();wD();eie();bie();Tie();Aie();Sc();o(Du,"layout");o(NOe,"runLayout");o(ROe,"updateInputGraph");MOe=["nodesep","edgesep","ranksep","marginx","marginy"],IOe={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},OOe=["acyclicer","ranker","rankdir","align"],POe=["width","height"],BOe={width:0,height:0},FOe=["minlen","weight","width","height","labeloffset"],zOe={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},GOe=["labelpos"];o($Oe,"buildLayoutGraph");o(VOe,"makeSpaceForEdgeLabels");o(UOe,"injectEdgeLabelProxies");o(HOe,"assignRankMinMax");o(WOe,"removeEdgeLabelProxies");o(YOe,"translateGraph");o(qOe,"assignNodeIntersects");o(XOe,"fixupEdgeLabelCoords");o(jOe,"reversePointsForReversedEdges");o(KOe,"removeBorderNodes");o(QOe,"removeSelfEdges");o(ZOe,"insertSelfEdges");o(JOe,"positionSelfEdges");o(kD,"selectNumberAttrs");o(ED,"canonicalize")});var Pv=M(()=>{"use strict";rD();_ie();lD();wD()});function Ho(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:ePe(t),edges:tPe(t)};return dr(t.graph())||(e.value=rn(t.graph())),e}function ePe(t){return Je(t.nodes(),function(e){var r=t.node(e),n=t.parent(e),i={v:e};return dr(r)||(i.value=r),dr(n)||(i.parent=n),i})}function tPe(t){return Je(t.edges(),function(e){var r=t.edge(e),n={v:e.v,w:e.w};return dr(e.name)||(n.name=e.name),dr(r)||(n.value=r),n})}var SD=M(()=>{"use strict";Ht();rT();o(Ho,"write");o(ePe,"writeNodes");o(tPe,"writeEdges")});var wr,zd,Nie,Rie,lT,rPe,Mie,Iie,nPe,Bm,Die,Oie,Pie,Bie,Fie,zie=M(()=>{"use strict";ht();Ns();SD();wr=new Map,zd=new Map,Nie=new Map,Rie=o(()=>{zd.clear(),Nie.clear(),wr.clear()},"clear"),lT=o((t,e)=>{let r=zd.get(e)||[];return Y.trace("In isDescendant",e," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),rPe=o((t,e)=>{let r=zd.get(e)||[];return Y.info("Descendants of ",e," is ",r),Y.info("Edge is ",t),t.v===e||t.w===e?!1:r?r.includes(t.v)||lT(t.v,e)||lT(t.w,e)||r.includes(t.w):(Y.debug("Tilt, ",e,",not in descendants"),!1)},"edgeInCluster"),Mie=o((t,e,r,n)=>{Y.warn("Copying children of ",t,"root",n,"data",e.node(t),n);let i=e.children(t)||[];t!==n&&i.push(t),Y.warn("Copying (nodes) clusterId",t,"nodes",i),i.forEach(a=>{if(e.children(a).length>0)Mie(a,e,r,n);else{let s=e.node(a);Y.info("cp ",a," to ",n," with parent ",t),r.setNode(a,s),n!==e.parent(a)&&(Y.warn("Setting parent",a,e.parent(a)),r.setParent(a,e.parent(a))),t!==n&&a!==t?(Y.debug("Setting parent",a,t),r.setParent(a,t)):(Y.info("In copy ",t,"root",n,"data",e.node(t),n),Y.debug("Not Setting parent for node=",a,"cluster!==rootId",t!==n,"node!==clusterId",a!==t));let l=e.edges(a);Y.debug("Copying Edges",l),l.forEach(u=>{Y.info("Edge",u);let h=e.edge(u.v,u.w,u.name);Y.info("Edge data",h,n);try{rPe(u,n)?(Y.info("Copying as ",u.v,u.w,h,u.name),r.setEdge(u.v,u.w,h,u.name),Y.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):Y.info("Skipping copy of edge ",u.v,"-->",u.w," rootId: ",n," clusterId:",t)}catch(f){Y.error(f)}})}Y.debug("Removing node",a),e.removeNode(a)})},"copy"),Iie=o((t,e)=>{let r=e.children(t),n=[...r];for(let i of r)Nie.set(i,t),n=[...n,...Iie(i,e)];return n},"extractDescendants"),nPe=o((t,e,r)=>{let n=t.edges().filter(u=>u.v===e||u.w===e),i=t.edges().filter(u=>u.v===r||u.w===r),a=n.map(u=>({v:u.v===e?r:u.v,w:u.w===e?e:u.w})),s=i.map(u=>({v:u.v,w:u.w}));return a.filter(u=>s.some(h=>u.v===h.v&&u.w===h.w))},"findCommonEdges"),Bm=o((t,e,r)=>{let n=e.children(t);if(Y.trace("Searching children of id ",t,n),n.length<1)return t;let i;for(let a of n){let s=Bm(a,e,r),l=nPe(e,r,s);if(s)if(l.length>0)i=s;else return s}return i},"findNonClusterChild"),Die=o(t=>!wr.has(t)||!wr.get(t).externalConnections?t:wr.has(t)?wr.get(t).id:t,"getAnchorId"),Oie=o((t,e)=>{if(!t||e>10){Y.debug("Opting out, no graph ");return}else Y.debug("Opting in, graph ");t.nodes().forEach(function(r){t.children(r).length>0&&(Y.warn("Cluster identified",r," Replacement id in edges: ",Bm(r,t,r)),zd.set(r,Iie(r,t)),wr.set(r,{id:Bm(r,t,r),clusterData:t.node(r)}))}),t.nodes().forEach(function(r){let n=t.children(r),i=t.edges();n.length>0?(Y.debug("Cluster identified",r,zd),i.forEach(a=>{let s=lT(a.v,r),l=lT(a.w,r);s^l&&(Y.warn("Edge: ",a," leaves cluster ",r),Y.warn("Descendants of XXX ",r,": ",zd.get(r)),wr.get(r).externalConnections=!0)})):Y.debug("Not a cluster ",r,zd)});for(let r of wr.keys()){let n=wr.get(r).id,i=t.parent(n);i!==r&&wr.has(i)&&!wr.get(i).externalConnections&&(wr.get(r).id=i)}t.edges().forEach(function(r){let n=t.edge(r);Y.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),Y.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));let i=r.v,a=r.w;if(Y.warn("Fix XXX",wr,"ids:",r.v,r.w,"Translating: ",wr.get(r.v)," --- ",wr.get(r.w)),wr.get(r.v)||wr.get(r.w)){if(Y.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),i=Die(r.v),a=Die(r.w),t.removeEdge(r.v,r.w,r.name),i!==r.v){let s=t.parent(i);wr.get(s).externalConnections=!0,n.fromCluster=r.v}if(a!==r.w){let s=t.parent(a);wr.get(s).externalConnections=!0,n.toCluster=r.w}Y.warn("Fix Replacing with XXX",i,a,r.name),t.setEdge(i,a,n,r.name)}}),Y.warn("Adjusted Graph",Ho(t)),Pie(t,0),Y.trace(wr)},"adjustClustersAndEdges"),Pie=o((t,e)=>{if(Y.warn("extractor - ",e,Ho(t),t.children("D")),e>10){Y.error("Bailing out");return}let r=t.nodes(),n=!1;for(let i of r){let a=t.children(i);n=n||a.length>0}if(!n){Y.debug("Done, no node has children",t.nodes());return}Y.debug("Nodes = ",r,e);for(let i of r)if(Y.debug("Extracting node",i,wr,wr.has(i)&&!wr.get(i).externalConnections,!t.parent(i),t.node(i),t.children("D")," Depth ",e),!wr.has(i))Y.debug("Not a cluster",i,e);else if(!wr.get(i).externalConnections&&t.children(i)&&t.children(i).length>0){Y.warn("Cluster without external connections, without a parent and with children",i,e);let s=t.graph().rankdir==="TB"?"LR":"TB";wr.get(i)?.clusterData?.dir&&(s=wr.get(i).clusterData.dir,Y.warn("Fixing dir",wr.get(i).clusterData.dir,s));let l=new Mr({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Y.warn("Old graph before copy",Ho(t)),Mie(i,t,l,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:wr.get(i).clusterData,label:wr.get(i).label,graph:l}),Y.warn("New graph after copy node: (",i,")",Ho(l)),Y.debug("Old graph after copy",Ho(t))}else Y.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!wr.get(i).externalConnections," no parent: ",!t.parent(i)," children ",t.children(i)&&t.children(i).length>0,t.children("D"),e),Y.debug(wr);r=t.nodes(),Y.warn("New list of nodes",r);for(let i of r){let a=t.node(i);Y.warn(" Now next level",i,a),a?.clusterNode&&Pie(a.graph,e+1)}},"extractor"),Bie=o((t,e)=>{if(e.length===0)return[];let r=Object.assign([],e);return e.forEach(n=>{let i=t.children(n),a=Bie(t,i);r=[...r,...a]}),r},"sorter"),Fie=o(t=>Bie(t,t.children()),"sortNodesByHierarchy")});var $ie={};vr($ie,{render:()=>iPe});var Gie,iPe,Vie=M(()=>{"use strict";Pv();SD();Ns();uL();Ft();zie();sw();K5();cL();ht();Cv();Vt();Gie=o(async(t,e,r,n,i,a)=>{Y.warn("Graph in recursive render:XAX",Ho(e),i);let s=e.graph().rankdir;Y.trace("Dir in recursive render - dir:",s);let l=t.insert("g").attr("class","root");e.nodes()?Y.info("Recursive render XXX",e.nodes()):Y.info("No nodes found for",e),e.edges().length>0&&Y.info("Recursive edges",e.edge(e.edges()[0]));let u=l.insert("g").attr("class","clusters"),h=l.insert("g").attr("class","edgePaths"),f=l.insert("g").attr("class","edgeLabels"),d=l.insert("g").attr("class","nodes");await Promise.all(e.nodes().map(async function(y){let v=e.node(y);if(i!==void 0){let x=JSON.parse(JSON.stringify(i.clusterData));Y.trace(`Setting data for parent cluster XXX + Node.id = `,y,` + data=`,x.height,` +Parent cluster`,i.height),e.setNode(i.id,x),e.parent(y)||(Y.trace("Setting parent",y,i.id),e.setParent(y,i.id,x))}if(Y.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),v?.clusterNode){Y.info("Cluster identified XBX",y,v.width,e.node(y));let{ranksep:x,nodesep:b}=e.graph();v.graph.setGraph({...v.graph.graph(),ranksep:x+25,nodesep:b});let w=await Gie(d,v.graph,r,n,e.node(y),a),_=w.elem;Qe(v,_),v.diff=w.diff||0,Y.info("New compound node after recursive render XAX",y,"width",v.width,"height",v.height),aJ(_,v)}else e.children(y).length>0?(Y.trace("Cluster - the non recursive path XBX",y,v.id,v,v.width,"Graph:",e),Y.trace(Bm(v.id,e)),wr.set(v.id,{id:Bm(v.id,e),node:v})):(Y.trace("Node - the non recursive path XAX",y,d,e.node(y),s),await gm(d,e.node(y),{config:a,dir:s}))})),await o(async()=>{let y=e.edges().map(async function(v){let x=e.edge(v.v,v.w,v.name);Y.info("Edge "+v.v+" -> "+v.w+": "+JSON.stringify(v)),Y.info("Edge "+v.v+" -> "+v.w+": ",v," ",JSON.stringify(e.edge(v))),Y.info("Fix",wr,"ids:",v.v,v.w,"Translating: ",wr.get(v.v),wr.get(v.w)),await tw(f,x)});await Promise.all(y)},"processEdges")(),Y.info("Graph before layout:",JSON.stringify(Ho(e))),Y.info("############################################# XXX"),Y.info("### Layout ### XXX"),Y.info("############################################# XXX"),Du(e),Y.info("Graph after layout:",JSON.stringify(Ho(e)));let m=0,{subGraphTitleTotalMargin:g}=_u(a);return await Promise.all(Fie(e).map(async function(y){let v=e.node(y);if(Y.info("Position XBX => "+y+": ("+v.x,","+v.y,") width: ",v.width," height: ",v.height),v?.clusterNode)v.y+=g,Y.info("A tainted cluster node XBX1",y,v.id,v.width,v.height,v.x,v.y,e.parent(y)),wr.get(v.id).node=v,_v(v);else if(e.children(y).length>0){Y.info("A pure cluster node XBX1",y,v.id,v.x,v.y,v.width,v.height,e.parent(y)),v.height+=g,e.node(v.parentId);let x=v?.padding/2||0,b=v?.labelBBox?.height||0,w=b-x||0;Y.debug("OffsetY",w,"labelHeight",b,"halfPadding",x),await mm(u,v),wr.get(v.id).node=v}else{let x=e.node(v.parentId);v.y+=g/2,Y.info("A regular node XBX1 - using the padding",v.id,"parent",v.parentId,v.width,v.height,v.x,v.y,"offsetY",v.offsetY,"parent",x,x?.offsetY,v),_v(v)}})),e.edges().forEach(function(y){let v=e.edge(y);Y.info("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(v),v),v.points.forEach(_=>_.y+=g/2);let x=e.node(y.v);var b=e.node(y.w);let w=nw(h,v,wr,r,x,b,n);rw(v,w)}),e.nodes().forEach(function(y){let v=e.node(y);Y.info(y,v.type,v.diff),v.isGroup&&(m=v.diff)}),Y.warn("Returning from recursive render XAX",l,m),{elem:l,diff:m}},"recursiveRender"),iPe=o(async(t,e)=>{let r=new Mr({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.config?.flowchart?.nodeSpacing||t.nodeSpacing,ranksep:t.config?.rankSpacing||t.config?.flowchart?.rankSpacing||t.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=e.select("g");iw(n,t.markers,t.type,t.diagramId),sJ(),iJ(),ZZ(),Rie(),t.nodes.forEach(a=>{r.setNode(a.id,{...a}),a.parentId&&r.setParent(a.id,a.parentId)}),Y.debug("Edges:",t.edges),t.edges.forEach(a=>{if(a.start===a.end){let s=a.start,l=s+"---"+s+"---1",u=s+"---"+s+"---2",h=r.node(s);r.setNode(l,{domId:l,id:l,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(l,h.parentId),r.setNode(u,{domId:u,id:u,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(u,h.parentId);let f=structuredClone(a),d=structuredClone(a),p=structuredClone(a);f.label="",f.arrowTypeEnd="none",f.id=s+"-cyclic-special-1",d.arrowTypeEnd="none",d.id=s+"-cyclic-special-mid",p.label="",h.isGroup&&(f.fromCluster=s,p.toCluster=s),p.id=s+"-cyclic-special-2",r.setEdge(s,l,f,s+"-cyclic-special-0"),r.setEdge(l,u,d,s+"-cyclic-special-1"),r.setEdge(u,s,p,s+"-cyc{"use strict";lJ();ht();Bv={},CD=o(t=>{for(let e of t)Bv[e.name]=e},"registerLayoutLoaders"),aPe=o(()=>{CD([{name:"dagre",loader:o(async()=>await Promise.resolve().then(()=>(Vie(),$ie)),"loader")}])},"registerDefaultLayoutLoaders");aPe();Fm=o(async(t,e)=>{if(!(t.layoutAlgorithm in Bv))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);let r=Bv[t.layoutAlgorithm];return(await r.loader()).render(t,e,oJ,{algorithm:r.algorithm})},"render"),cT=o((t="",{fallback:e="dagre"}={})=>{if(t in Bv)return t;if(e in Bv)return Y.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm")});var zm,sPe,oPe,uT=M(()=>{"use strict";ni();ht();zm=o((t,e,r,n)=>{t.attr("class",r);let{width:i,height:a,x:s,y:l}=sPe(t,e);Zr(t,a,i,n);let u=oPe(s,l,i,a,e);t.attr("viewBox",u),Y.debug(`viewBox configured: ${u} with padding: ${e}`)},"setupViewPortForSVG"),sPe=o((t,e)=>{let r=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+e*2,height:r.height+e*2,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),oPe=o((t,e,r,n,i)=>`${t-i} ${e-i} ${r} ${n}`,"createViewBox")});var lPe,cPe,Uie,Hie=M(()=>{"use strict";mr();Vt();ht();j5();Fv();uT();hr();oL();lPe=o(function(t,e){return e.db.getClasses()},"getClasses"),cPe=o(async function(t,e,r,n){Y.info("REF0:"),Y.info("Drawing state diagram (v2)",e);let{securityLevel:i,flowchart:a,layout:s}=de(),l;i==="sandbox"&&(l=ze("#i"+e));let u=i==="sandbox"?l.nodes()[0].contentDocument:document;Y.debug("Before getData: ");let h=n.db.getData();Y.debug("Data: ",h);let f=pm(e,i),d=sL();h.type=n.type,h.layoutAlgorithm=cT(s),h.layoutAlgorithm==="dagre"&&s==="elk"&&Y.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),h.direction=d,h.nodeSpacing=a?.nodeSpacing||50,h.rankSpacing=a?.rankSpacing||50,h.markers=["point","circle","cross"],h.diagramId=e,Y.debug("REF1:",h),await Fm(h,f);let p=h.config.flowchart?.diagramPadding??8;Ut.insertTitle(f,"flowchartTitleText",a?.titleTopMargin||0,n.db.getDiagramTitle()),zm(f,p,"flowchart",a?.useMaxWidth||!1);for(let m of h.nodes){let g=ze(`#${e} [id="${m.id}"]`);if(!g||!m.link)continue;let y=u.createElementNS("http://www.w3.org/2000/svg","a");y.setAttributeNS("http://www.w3.org/2000/svg","class",m.cssClasses),y.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),i==="sandbox"?y.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):m.linkTarget&&y.setAttributeNS("http://www.w3.org/2000/svg","target",m.linkTarget);let v=g.insert(function(){return y},":first-child"),x=g.select(".label-container");x&&v.append(function(){return x.node()});let b=g.select(".label");b&&v.append(function(){return b.node()})}},"draw"),Uie={getClasses:lPe,draw:cPe}});var AD,Wie,Yie=M(()=>{"use strict";AD=function(){var t=o(function(kn,_t,St,bt){for(St=St||{},bt=kn.length;bt--;St[kn[bt]]=_t);return St},"o"),e=[1,4],r=[1,3],n=[1,5],i=[1,8,9,10,11,27,34,36,38,44,60,83,84,85,86,87,88,101,104,105,108,110,113,114,115,120,121,122,123],a=[2,2],s=[1,13],l=[1,14],u=[1,15],h=[1,16],f=[1,23],d=[1,25],p=[1,26],m=[1,27],g=[1,49],y=[1,48],v=[1,29],x=[1,30],b=[1,31],w=[1,32],_=[1,33],T=[1,44],E=[1,46],L=[1,42],C=[1,47],A=[1,43],I=[1,50],D=[1,45],k=[1,51],R=[1,52],S=[1,34],O=[1,35],N=[1,36],P=[1,37],F=[1,57],B=[1,8,9,10,11,27,32,34,36,38,44,60,83,84,85,86,87,88,101,104,105,108,110,113,114,115,120,121,122,123],$=[1,61],z=[1,60],W=[1,62],j=[8,9,11,75,77],K=[1,77],ie=[1,90],Q=[1,95],ee=[1,94],J=[1,91],H=[1,87],q=[1,93],Z=[1,89],ae=[1,96],ue=[1,92],ce=[1,97],te=[1,88],De=[8,9,10,11,40,75,77],oe=[8,9,10,11,40,46,75,77],ke=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,88,101,104,105,108,110,113,114,115],Fe=[8,9,11,44,60,75,77,88,101,104,105,108,110,113,114,115],Be=[44,60,88,101,104,105,108,110,113,114,115],Ve=[1,123],Ge=[1,122],He=[1,130],xe=[1,144],X=[1,145],fe=[1,146],he=[1,147],ge=[1,132],ne=[1,134],ye=[1,138],U=[1,139],Te=[1,140],se=[1,141],Ee=[1,142],Ae=[1,143],Pe=[1,148],Me=[1,149],me=[1,128],We=[1,129],Re=[1,136],tt=[1,131],gt=[1,135],Et=[1,133],vt=[8,9,10,11,27,32,34,36,38,44,60,83,84,85,86,87,88,101,104,105,108,110,113,114,115,120,121,122,123],Ye=[1,151],Tt=[1,153],$e=[8,9,11],rt=[8,9,10,11,14,44,60,88,104,105,108,110,113,114,115],ft=[1,173],kt=[1,169],er=[1,170],dt=[1,174],Xe=[1,171],ct=[1,172],Lt=[77,115,118],Rt=[8,9,10,11,12,14,27,29,32,44,60,75,83,84,85,86,87,88,89,104,108,110,113,114,115],zt=[10,105],Xn=[31,49,51,53,55,57,62,64,66,67,69,71,115,116,117],or=[1,242],hn=[1,240],Tn=[1,244],Ur=[1,238],ri=[1,239],Mn=[1,241],yt=[1,243],Se=[1,245],at=[1,263],At=[8,9,11,105],pr=[8,9,10,11,60,83,104,105,108,109,110,111],In={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,edgeTextToken:78,STR:79,MD_STR:80,textToken:81,keywords:82,STYLE:83,LINKSTYLE:84,CLASSDEF:85,CLASS:86,CLICK:87,DOWN:88,UP:89,textNoTagsToken:90,stylesOpt:91,"idString[vertex]":92,"idString[class]":93,CALLBACKNAME:94,CALLBACKARGS:95,HREF:96,LINK_TARGET:97,"STR[link]":98,"STR[tooltip]":99,alphaNum:100,DEFAULT:101,numList:102,INTERPOLATE:103,NUM:104,COMMA:105,style:106,styleComponent:107,NODE_STRING:108,UNIT:109,BRKT:110,PCT:111,idStringToken:112,MINUS:113,MULT:114,UNICODE_TEXT:115,TEXT:116,TAGSTART:117,EDGE_TEXT:118,alphaNumToken:119,direction_tb:120,direction_bt:121,direction_rl:122,direction_lr:123,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",79:"STR",80:"MD_STR",83:"STYLE",84:"LINKSTYLE",85:"CLASSDEF",86:"CLASS",87:"CLICK",88:"DOWN",89:"UP",92:"idString[vertex]",93:"idString[class]",94:"CALLBACKNAME",95:"CALLBACKARGS",96:"HREF",97:"LINK_TARGET",98:"STR[link]",99:"STR[tooltip]",101:"DEFAULT",103:"INTERPOLATE",104:"NUM",105:"COMMA",108:"NODE_STRING",109:"UNIT",110:"BRKT",111:"PCT",113:"MINUS",114:"MULT",115:"UNICODE_TEXT",116:"TEXT",117:"TAGSTART",118:"EDGE_TEXT",120:"direction_tb",121:"direction_bt",122:"direction_rl",123:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[76,1],[76,2],[76,1],[76,1],[72,1],[73,3],[30,1],[30,2],[30,1],[30,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[102,1],[102,3],[91,1],[91,3],[106,1],[106,2],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[81,1],[81,1],[81,1],[81,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[78,1],[78,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[47,1],[47,2],[100,1],[100,2],[33,1],[33,1],[33,1],[33,1]],performAction:o(function(_t,St,bt,Ue,Kt,pe,bi){var be=pe.length-1;switch(Kt){case 2:this.$=[];break;case 3:(!Array.isArray(pe[be])||pe[be].length>0)&&pe[be-1].push(pe[be]),this.$=pe[be-1];break;case 4:case 181:this.$=pe[be];break;case 11:Ue.setDirection("TB"),this.$="TB";break;case 12:Ue.setDirection(pe[be-1]),this.$=pe[be-1];break;case 27:this.$=pe[be-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=Ue.addSubGraph(pe[be-6],pe[be-1],pe[be-4]);break;case 34:this.$=Ue.addSubGraph(pe[be-3],pe[be-1],pe[be-3]);break;case 35:this.$=Ue.addSubGraph(void 0,pe[be-1],void 0);break;case 37:this.$=pe[be].trim(),Ue.setAccTitle(this.$);break;case 38:case 39:this.$=pe[be].trim(),Ue.setAccDescription(this.$);break;case 43:this.$=pe[be-1]+pe[be];break;case 44:this.$=pe[be];break;case 45:Ue.addVertex(pe[be-1][0],void 0,void 0,void 0,void 0,void 0,void 0,pe[be]),Ue.addLink(pe[be-3].stmt,pe[be-1],pe[be-2]),this.$={stmt:pe[be-1],nodes:pe[be-1].concat(pe[be-3].nodes)};break;case 46:Ue.addLink(pe[be-2].stmt,pe[be],pe[be-1]),this.$={stmt:pe[be],nodes:pe[be].concat(pe[be-2].nodes)};break;case 47:Ue.addLink(pe[be-3].stmt,pe[be-1],pe[be-2]),this.$={stmt:pe[be-1],nodes:pe[be-1].concat(pe[be-3].nodes)};break;case 48:this.$={stmt:pe[be-1],nodes:pe[be-1]};break;case 49:Ue.addVertex(pe[be-1][0],void 0,void 0,void 0,void 0,void 0,void 0,pe[be]),this.$={stmt:pe[be-1],nodes:pe[be-1],shapeData:pe[be]};break;case 50:this.$={stmt:pe[be],nodes:pe[be]};break;case 51:this.$=[pe[be]];break;case 52:Ue.addVertex(pe[be-5][0],void 0,void 0,void 0,void 0,void 0,void 0,pe[be-4]),this.$=pe[be-5].concat(pe[be]);break;case 53:this.$=pe[be-4].concat(pe[be]);break;case 54:this.$=pe[be];break;case 55:this.$=pe[be-2],Ue.setClass(pe[be-2],pe[be]);break;case 56:this.$=pe[be-3],Ue.addVertex(pe[be-3],pe[be-1],"square");break;case 57:this.$=pe[be-3],Ue.addVertex(pe[be-3],pe[be-1],"doublecircle");break;case 58:this.$=pe[be-5],Ue.addVertex(pe[be-5],pe[be-2],"circle");break;case 59:this.$=pe[be-3],Ue.addVertex(pe[be-3],pe[be-1],"ellipse");break;case 60:this.$=pe[be-3],Ue.addVertex(pe[be-3],pe[be-1],"stadium");break;case 61:this.$=pe[be-3],Ue.addVertex(pe[be-3],pe[be-1],"subroutine");break;case 62:this.$=pe[be-7],Ue.addVertex(pe[be-7],pe[be-1],"rect",void 0,void 0,void 0,Object.fromEntries([[pe[be-5],pe[be-3]]]));break;case 63:this.$=pe[be-3],Ue.addVertex(pe[be-3],pe[be-1],"cylinder");break;case 64:this.$=pe[be-3],Ue.addVertex(pe[be-3],pe[be-1],"round");break;case 65:this.$=pe[be-3],Ue.addVertex(pe[be-3],pe[be-1],"diamond");break;case 66:this.$=pe[be-5],Ue.addVertex(pe[be-5],pe[be-2],"hexagon");break;case 67:this.$=pe[be-3],Ue.addVertex(pe[be-3],pe[be-1],"odd");break;case 68:this.$=pe[be-3],Ue.addVertex(pe[be-3],pe[be-1],"trapezoid");break;case 69:this.$=pe[be-3],Ue.addVertex(pe[be-3],pe[be-1],"inv_trapezoid");break;case 70:this.$=pe[be-3],Ue.addVertex(pe[be-3],pe[be-1],"lean_right");break;case 71:this.$=pe[be-3],Ue.addVertex(pe[be-3],pe[be-1],"lean_left");break;case 72:this.$=pe[be],Ue.addVertex(pe[be]);break;case 73:pe[be-1].text=pe[be],this.$=pe[be-1];break;case 74:case 75:pe[be-2].text=pe[be-1],this.$=pe[be-2];break;case 76:this.$=pe[be];break;case 77:var vo=Ue.destructLink(pe[be],pe[be-2]);this.$={type:vo.type,stroke:vo.stroke,length:vo.length,text:pe[be-1]};break;case 78:this.$={text:pe[be],type:"text"};break;case 79:this.$={text:pe[be-1].text+""+pe[be],type:pe[be-1].type};break;case 80:this.$={text:pe[be],type:"string"};break;case 81:this.$={text:pe[be],type:"markdown"};break;case 82:var vo=Ue.destructLink(pe[be]);this.$={type:vo.type,stroke:vo.stroke,length:vo.length};break;case 83:this.$=pe[be-1];break;case 84:this.$={text:pe[be],type:"text"};break;case 85:this.$={text:pe[be-1].text+""+pe[be],type:pe[be-1].type};break;case 86:this.$={text:pe[be],type:"string"};break;case 87:case 102:this.$={text:pe[be],type:"markdown"};break;case 99:this.$={text:pe[be],type:"text"};break;case 100:this.$={text:pe[be-1].text+""+pe[be],type:pe[be-1].type};break;case 101:this.$={text:pe[be],type:"text"};break;case 103:this.$=pe[be-4],Ue.addClass(pe[be-2],pe[be]);break;case 104:this.$=pe[be-4],Ue.setClass(pe[be-2],pe[be]);break;case 105:case 113:this.$=pe[be-1],Ue.setClickEvent(pe[be-1],pe[be]);break;case 106:case 114:this.$=pe[be-3],Ue.setClickEvent(pe[be-3],pe[be-2]),Ue.setTooltip(pe[be-3],pe[be]);break;case 107:this.$=pe[be-2],Ue.setClickEvent(pe[be-2],pe[be-1],pe[be]);break;case 108:this.$=pe[be-4],Ue.setClickEvent(pe[be-4],pe[be-3],pe[be-2]),Ue.setTooltip(pe[be-4],pe[be]);break;case 109:this.$=pe[be-2],Ue.setLink(pe[be-2],pe[be]);break;case 110:this.$=pe[be-4],Ue.setLink(pe[be-4],pe[be-2]),Ue.setTooltip(pe[be-4],pe[be]);break;case 111:this.$=pe[be-4],Ue.setLink(pe[be-4],pe[be-2],pe[be]);break;case 112:this.$=pe[be-6],Ue.setLink(pe[be-6],pe[be-4],pe[be]),Ue.setTooltip(pe[be-6],pe[be-2]);break;case 115:this.$=pe[be-1],Ue.setLink(pe[be-1],pe[be]);break;case 116:this.$=pe[be-3],Ue.setLink(pe[be-3],pe[be-2]),Ue.setTooltip(pe[be-3],pe[be]);break;case 117:this.$=pe[be-3],Ue.setLink(pe[be-3],pe[be-2],pe[be]);break;case 118:this.$=pe[be-5],Ue.setLink(pe[be-5],pe[be-4],pe[be]),Ue.setTooltip(pe[be-5],pe[be-2]);break;case 119:this.$=pe[be-4],Ue.addVertex(pe[be-2],void 0,void 0,pe[be]);break;case 120:this.$=pe[be-4],Ue.updateLink([pe[be-2]],pe[be]);break;case 121:this.$=pe[be-4],Ue.updateLink(pe[be-2],pe[be]);break;case 122:this.$=pe[be-8],Ue.updateLinkInterpolate([pe[be-6]],pe[be-2]),Ue.updateLink([pe[be-6]],pe[be]);break;case 123:this.$=pe[be-8],Ue.updateLinkInterpolate(pe[be-6],pe[be-2]),Ue.updateLink(pe[be-6],pe[be]);break;case 124:this.$=pe[be-6],Ue.updateLinkInterpolate([pe[be-4]],pe[be]);break;case 125:this.$=pe[be-6],Ue.updateLinkInterpolate(pe[be-4],pe[be]);break;case 126:case 128:this.$=[pe[be]];break;case 127:case 129:pe[be-2].push(pe[be]),this.$=pe[be-2];break;case 131:this.$=pe[be-1]+pe[be];break;case 179:this.$=pe[be];break;case 180:this.$=pe[be-1]+""+pe[be];break;case 182:this.$=pe[be-1]+""+pe[be];break;case 183:this.$={stmt:"dir",value:"TB"};break;case 184:this.$={stmt:"dir",value:"BT"};break;case 185:this.$={stmt:"dir",value:"RL"};break;case 186:this.$={stmt:"dir",value:"LR"};break}},"anonymous"),table:[{3:1,4:2,9:e,10:r,12:n},{1:[3]},t(i,a,{5:6}),{4:7,9:e,10:r,12:n},{4:8,9:e,10:r,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:s,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,83:v,84:x,85:b,86:w,87:_,88:T,101:E,104:L,105:C,108:A,110:I,112:41,113:D,114:k,115:R,120:S,121:O,122:N,123:P},t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),{8:[1,54],9:[1,55],10:F,15:53,18:56},t(B,[2,3]),t(B,[2,4]),t(B,[2,5]),t(B,[2,6]),t(B,[2,7]),t(B,[2,8]),{8:$,9:z,11:W,21:58,41:59,72:63,75:[1,64],77:[1,65]},{8:$,9:z,11:W,21:66},{8:$,9:z,11:W,21:67},{8:$,9:z,11:W,21:68},{8:$,9:z,11:W,21:69},{8:$,9:z,11:W,21:70},{8:$,9:z,10:[1,71],11:W,21:72},t(B,[2,36]),{35:[1,73]},{37:[1,74]},t(B,[2,39]),t(j,[2,50],{18:75,39:76,10:F,40:K}),{10:[1,78]},{10:[1,79]},{10:[1,80]},{10:[1,81]},{14:ie,44:Q,60:ee,79:[1,85],88:J,94:[1,82],96:[1,83],100:84,104:H,105:q,108:Z,110:ae,113:ue,114:ce,115:te,119:86},t(B,[2,183]),t(B,[2,184]),t(B,[2,185]),t(B,[2,186]),t(De,[2,51]),t(De,[2,54],{46:[1,98]}),t(oe,[2,72],{112:111,29:[1,99],44:g,48:[1,100],50:[1,101],52:[1,102],54:[1,103],56:[1,104],58:[1,105],60:y,63:[1,106],65:[1,107],67:[1,108],68:[1,109],70:[1,110],88:T,101:E,104:L,105:C,108:A,110:I,113:D,114:k,115:R}),t(ke,[2,179]),t(ke,[2,140]),t(ke,[2,141]),t(ke,[2,142]),t(ke,[2,143]),t(ke,[2,144]),t(ke,[2,145]),t(ke,[2,146]),t(ke,[2,147]),t(ke,[2,148]),t(ke,[2,149]),t(ke,[2,150]),t(i,[2,12]),t(i,[2,18]),t(i,[2,19]),{9:[1,112]},t(Fe,[2,26],{18:113,10:F}),t(B,[2,27]),{42:114,43:38,44:g,45:39,47:40,60:y,88:T,101:E,104:L,105:C,108:A,110:I,112:41,113:D,114:k,115:R},t(B,[2,40]),t(B,[2,41]),t(B,[2,42]),t(Be,[2,76],{73:115,62:[1,117],74:[1,116]}),{76:118,78:119,79:[1,120],80:[1,121],115:Ve,118:Ge},t([44,60,62,74,88,101,104,105,108,110,113,114,115],[2,82]),t(B,[2,28]),t(B,[2,29]),t(B,[2,30]),t(B,[2,31]),t(B,[2,32]),{10:He,12:xe,14:X,27:fe,28:124,32:he,44:ge,60:ne,75:ye,79:[1,126],80:[1,127],82:137,83:U,84:Te,85:se,86:Ee,87:Ae,88:Pe,89:Me,90:125,104:me,108:We,110:Re,113:tt,114:gt,115:Et},t(vt,a,{5:150}),t(B,[2,37]),t(B,[2,38]),t(j,[2,48],{44:Ye}),t(j,[2,49],{18:152,10:F,40:Tt}),t(De,[2,44]),{44:g,47:154,60:y,88:T,101:E,104:L,105:C,108:A,110:I,112:41,113:D,114:k,115:R},{101:[1,155],102:156,104:[1,157]},{44:g,47:158,60:y,88:T,101:E,104:L,105:C,108:A,110:I,112:41,113:D,114:k,115:R},{44:g,47:159,60:y,88:T,101:E,104:L,105:C,108:A,110:I,112:41,113:D,114:k,115:R},t($e,[2,105],{10:[1,160],95:[1,161]}),{79:[1,162]},t($e,[2,113],{119:164,10:[1,163],14:ie,44:Q,60:ee,88:J,104:H,105:q,108:Z,110:ae,113:ue,114:ce,115:te}),t($e,[2,115],{10:[1,165]}),t(rt,[2,181]),t(rt,[2,168]),t(rt,[2,169]),t(rt,[2,170]),t(rt,[2,171]),t(rt,[2,172]),t(rt,[2,173]),t(rt,[2,174]),t(rt,[2,175]),t(rt,[2,176]),t(rt,[2,177]),t(rt,[2,178]),{44:g,47:166,60:y,88:T,101:E,104:L,105:C,108:A,110:I,112:41,113:D,114:k,115:R},{30:167,67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},{30:175,67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},{30:177,50:[1,176],67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},{30:178,67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},{30:179,67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},{30:180,67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},{108:[1,181]},{30:182,67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},{30:183,65:[1,184],67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},{30:185,67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},{30:186,67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},{30:187,67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},t(ke,[2,180]),t(i,[2,20]),t(Fe,[2,25]),t(j,[2,46],{39:188,18:189,10:F,40:K}),t(Be,[2,73],{10:[1,190]}),{10:[1,191]},{30:192,67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},{77:[1,193],78:194,115:Ve,118:Ge},t(Lt,[2,78]),t(Lt,[2,80]),t(Lt,[2,81]),t(Lt,[2,166]),t(Lt,[2,167]),{8:$,9:z,10:He,11:W,12:xe,14:X,21:196,27:fe,29:[1,195],32:he,44:ge,60:ne,75:ye,82:137,83:U,84:Te,85:se,86:Ee,87:Ae,88:Pe,89:Me,90:197,104:me,108:We,110:Re,113:tt,114:gt,115:Et},t(Rt,[2,99]),t(Rt,[2,101]),t(Rt,[2,102]),t(Rt,[2,155]),t(Rt,[2,156]),t(Rt,[2,157]),t(Rt,[2,158]),t(Rt,[2,159]),t(Rt,[2,160]),t(Rt,[2,161]),t(Rt,[2,162]),t(Rt,[2,163]),t(Rt,[2,164]),t(Rt,[2,165]),t(Rt,[2,88]),t(Rt,[2,89]),t(Rt,[2,90]),t(Rt,[2,91]),t(Rt,[2,92]),t(Rt,[2,93]),t(Rt,[2,94]),t(Rt,[2,95]),t(Rt,[2,96]),t(Rt,[2,97]),t(Rt,[2,98]),{6:11,7:12,8:s,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,198],33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,83:v,84:x,85:b,86:w,87:_,88:T,101:E,104:L,105:C,108:A,110:I,112:41,113:D,114:k,115:R,120:S,121:O,122:N,123:P},{10:F,18:199},{44:[1,200]},t(De,[2,43]),{10:[1,201],44:g,60:y,88:T,101:E,104:L,105:C,108:A,110:I,112:111,113:D,114:k,115:R},{10:[1,202]},{10:[1,203],105:[1,204]},t(zt,[2,126]),{10:[1,205],44:g,60:y,88:T,101:E,104:L,105:C,108:A,110:I,112:111,113:D,114:k,115:R},{10:[1,206],44:g,60:y,88:T,101:E,104:L,105:C,108:A,110:I,112:111,113:D,114:k,115:R},{79:[1,207]},t($e,[2,107],{10:[1,208]}),t($e,[2,109],{10:[1,209]}),{79:[1,210]},t(rt,[2,182]),{79:[1,211],97:[1,212]},t(De,[2,55],{112:111,44:g,60:y,88:T,101:E,104:L,105:C,108:A,110:I,113:D,114:k,115:R}),{31:[1,213],67:ft,81:214,115:dt,116:Xe,117:ct},t(Xn,[2,84]),t(Xn,[2,86]),t(Xn,[2,87]),t(Xn,[2,151]),t(Xn,[2,152]),t(Xn,[2,153]),t(Xn,[2,154]),{49:[1,215],67:ft,81:214,115:dt,116:Xe,117:ct},{30:216,67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},{51:[1,217],67:ft,81:214,115:dt,116:Xe,117:ct},{53:[1,218],67:ft,81:214,115:dt,116:Xe,117:ct},{55:[1,219],67:ft,81:214,115:dt,116:Xe,117:ct},{57:[1,220],67:ft,81:214,115:dt,116:Xe,117:ct},{60:[1,221]},{64:[1,222],67:ft,81:214,115:dt,116:Xe,117:ct},{66:[1,223],67:ft,81:214,115:dt,116:Xe,117:ct},{30:224,67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},{31:[1,225],67:ft,81:214,115:dt,116:Xe,117:ct},{67:ft,69:[1,226],71:[1,227],81:214,115:dt,116:Xe,117:ct},{67:ft,69:[1,229],71:[1,228],81:214,115:dt,116:Xe,117:ct},t(j,[2,45],{18:152,10:F,40:Tt}),t(j,[2,47],{44:Ye}),t(Be,[2,75]),t(Be,[2,74]),{62:[1,230],67:ft,81:214,115:dt,116:Xe,117:ct},t(Be,[2,77]),t(Lt,[2,79]),{30:231,67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},t(vt,a,{5:232}),t(Rt,[2,100]),t(B,[2,35]),{43:233,44:g,45:39,47:40,60:y,88:T,101:E,104:L,105:C,108:A,110:I,112:41,113:D,114:k,115:R},{10:F,18:234},{10:or,60:hn,83:Tn,91:235,104:Ur,106:236,107:237,108:ri,109:Mn,110:yt,111:Se},{10:or,60:hn,83:Tn,91:246,103:[1,247],104:Ur,106:236,107:237,108:ri,109:Mn,110:yt,111:Se},{10:or,60:hn,83:Tn,91:248,103:[1,249],104:Ur,106:236,107:237,108:ri,109:Mn,110:yt,111:Se},{104:[1,250]},{10:or,60:hn,83:Tn,91:251,104:Ur,106:236,107:237,108:ri,109:Mn,110:yt,111:Se},{44:g,47:252,60:y,88:T,101:E,104:L,105:C,108:A,110:I,112:41,113:D,114:k,115:R},t($e,[2,106]),{79:[1,253]},{79:[1,254],97:[1,255]},t($e,[2,114]),t($e,[2,116],{10:[1,256]}),t($e,[2,117]),t(oe,[2,56]),t(Xn,[2,85]),t(oe,[2,57]),{51:[1,257],67:ft,81:214,115:dt,116:Xe,117:ct},t(oe,[2,64]),t(oe,[2,59]),t(oe,[2,60]),t(oe,[2,61]),{108:[1,258]},t(oe,[2,63]),t(oe,[2,65]),{66:[1,259],67:ft,81:214,115:dt,116:Xe,117:ct},t(oe,[2,67]),t(oe,[2,68]),t(oe,[2,70]),t(oe,[2,69]),t(oe,[2,71]),t([10,44,60,88,101,104,105,108,110,113,114,115],[2,83]),{31:[1,260],67:ft,81:214,115:dt,116:Xe,117:ct},{6:11,7:12,8:s,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,261],33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,83:v,84:x,85:b,86:w,87:_,88:T,101:E,104:L,105:C,108:A,110:I,112:41,113:D,114:k,115:R,120:S,121:O,122:N,123:P},t(De,[2,53]),{43:262,44:g,45:39,47:40,60:y,88:T,101:E,104:L,105:C,108:A,110:I,112:41,113:D,114:k,115:R},t($e,[2,119],{105:at}),t(At,[2,128],{107:264,10:or,60:hn,83:Tn,104:Ur,108:ri,109:Mn,110:yt,111:Se}),t(pr,[2,130]),t(pr,[2,132]),t(pr,[2,133]),t(pr,[2,134]),t(pr,[2,135]),t(pr,[2,136]),t(pr,[2,137]),t(pr,[2,138]),t(pr,[2,139]),t($e,[2,120],{105:at}),{10:[1,265]},t($e,[2,121],{105:at}),{10:[1,266]},t(zt,[2,127]),t($e,[2,103],{105:at}),t($e,[2,104],{112:111,44:g,60:y,88:T,101:E,104:L,105:C,108:A,110:I,113:D,114:k,115:R}),t($e,[2,108]),t($e,[2,110],{10:[1,267]}),t($e,[2,111]),{97:[1,268]},{51:[1,269]},{62:[1,270]},{66:[1,271]},{8:$,9:z,11:W,21:272},t(B,[2,34]),t(De,[2,52]),{10:or,60:hn,83:Tn,104:Ur,106:273,107:237,108:ri,109:Mn,110:yt,111:Se},t(pr,[2,131]),{14:ie,44:Q,60:ee,88:J,100:274,104:H,105:q,108:Z,110:ae,113:ue,114:ce,115:te,119:86},{14:ie,44:Q,60:ee,88:J,100:275,104:H,105:q,108:Z,110:ae,113:ue,114:ce,115:te,119:86},{97:[1,276]},t($e,[2,118]),t(oe,[2,58]),{30:277,67:ft,79:kt,80:er,81:168,115:dt,116:Xe,117:ct},t(oe,[2,66]),t(vt,a,{5:278}),t(At,[2,129],{107:264,10:or,60:hn,83:Tn,104:Ur,108:ri,109:Mn,110:yt,111:Se}),t($e,[2,124],{119:164,10:[1,279],14:ie,44:Q,60:ee,88:J,104:H,105:q,108:Z,110:ae,113:ue,114:ce,115:te}),t($e,[2,125],{119:164,10:[1,280],14:ie,44:Q,60:ee,88:J,104:H,105:q,108:Z,110:ae,113:ue,114:ce,115:te}),t($e,[2,112]),{31:[1,281],67:ft,81:214,115:dt,116:Xe,117:ct},{6:11,7:12,8:s,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,282],33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,83:v,84:x,85:b,86:w,87:_,88:T,101:E,104:L,105:C,108:A,110:I,112:41,113:D,114:k,115:R,120:S,121:O,122:N,123:P},{10:or,60:hn,83:Tn,91:283,104:Ur,106:236,107:237,108:ri,109:Mn,110:yt,111:Se},{10:or,60:hn,83:Tn,91:284,104:Ur,106:236,107:237,108:ri,109:Mn,110:yt,111:Se},t(oe,[2,62]),t(B,[2,33]),t($e,[2,122],{105:at}),t($e,[2,123],{105:at})],defaultActions:{},parseError:o(function(_t,St){if(St.recoverable)this.trace(_t);else{var bt=new Error(_t);throw bt.hash=St,bt}},"parseError"),parse:o(function(_t){var St=this,bt=[0],Ue=[],Kt=[null],pe=[],bi=this.table,be="",vo=0,bF=0,wF=0,axe=2,TF=1,sxe=pe.slice.call(arguments,1),ji=Object.create(this.lexer),Pf={yy:{}};for(var gS in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gS)&&(Pf.yy[gS]=this.yy[gS]);ji.setInput(_t,Pf.yy),Pf.yy.lexer=ji,Pf.yy.parser=this,typeof ji.yylloc>"u"&&(ji.yylloc={});var yS=ji.yylloc;pe.push(yS);var oxe=ji.options&&ji.options.ranges;typeof Pf.yy.parseError=="function"?this.parseError=Pf.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Sat(Vs){bt.length=bt.length-2*Vs,Kt.length=Kt.length-Vs,pe.length=pe.length-Vs}o(Sat,"popStack");function lxe(){var Vs;return Vs=Ue.pop()||ji.lex()||TF,typeof Vs!="number"&&(Vs instanceof Array&&(Ue=Vs,Vs=Ue.pop()),Vs=St.symbols_[Vs]||Vs),Vs}o(lxe,"lex");for(var Va,vS,Bf,xo,Cat,xS,Q0={},Eb,Xc,kF,Sb;;){if(Bf=bt[bt.length-1],this.defaultActions[Bf]?xo=this.defaultActions[Bf]:((Va===null||typeof Va>"u")&&(Va=lxe()),xo=bi[Bf]&&bi[Bf][Va]),typeof xo>"u"||!xo.length||!xo[0]){var bS="";Sb=[];for(Eb in bi[Bf])this.terminals_[Eb]&&Eb>axe&&Sb.push("'"+this.terminals_[Eb]+"'");ji.showPosition?bS="Parse error on line "+(vo+1)+`: +`+ji.showPosition()+` +Expecting `+Sb.join(", ")+", got '"+(this.terminals_[Va]||Va)+"'":bS="Parse error on line "+(vo+1)+": Unexpected "+(Va==TF?"end of input":"'"+(this.terminals_[Va]||Va)+"'"),this.parseError(bS,{text:ji.match,token:this.terminals_[Va]||Va,line:ji.yylineno,loc:yS,expected:Sb})}if(xo[0]instanceof Array&&xo.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Bf+", token: "+Va);switch(xo[0]){case 1:bt.push(Va),Kt.push(ji.yytext),pe.push(ji.yylloc),bt.push(xo[1]),Va=null,vS?(Va=vS,vS=null):(bF=ji.yyleng,be=ji.yytext,vo=ji.yylineno,yS=ji.yylloc,wF>0&&wF--);break;case 2:if(Xc=this.productions_[xo[1]][1],Q0.$=Kt[Kt.length-Xc],Q0._$={first_line:pe[pe.length-(Xc||1)].first_line,last_line:pe[pe.length-1].last_line,first_column:pe[pe.length-(Xc||1)].first_column,last_column:pe[pe.length-1].last_column},oxe&&(Q0._$.range=[pe[pe.length-(Xc||1)].range[0],pe[pe.length-1].range[1]]),xS=this.performAction.apply(Q0,[be,bF,vo,Pf.yy,xo[1],Kt,pe].concat(sxe)),typeof xS<"u")return xS;Xc&&(bt=bt.slice(0,-1*Xc*2),Kt=Kt.slice(0,-1*Xc),pe=pe.slice(0,-1*Xc)),bt.push(this.productions_[xo[1]][0]),Kt.push(Q0.$),pe.push(Q0._$),kF=bi[bt[bt.length-2]][bt[bt.length-1]],bt.push(kF);break;case 3:return!0}}return!0},"parse")},On=function(){var kn={EOF:1,parseError:o(function(St,bt){if(this.yy.parser)this.yy.parser.parseError(St,bt);else throw new Error(St)},"parseError"),setInput:o(function(_t,St){return this.yy=St||this.yy||{},this._input=_t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var _t=this._input[0];this.yytext+=_t,this.yyleng++,this.offset++,this.match+=_t,this.matched+=_t;var St=_t.match(/(?:\r\n?|\n).*/g);return St?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_t},"input"),unput:o(function(_t){var St=_t.length,bt=_t.split(/(?:\r\n?|\n)/g);this._input=_t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-St),this.offset-=St;var Ue=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),bt.length-1&&(this.yylineno-=bt.length-1);var Kt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:bt?(bt.length===Ue.length?this.yylloc.first_column:0)+Ue[Ue.length-bt.length].length-bt[0].length:this.yylloc.first_column-St},this.options.ranges&&(this.yylloc.range=[Kt[0],Kt[0]+this.yyleng-St]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(_t){this.unput(this.match.slice(_t))},"less"),pastInput:o(function(){var _t=this.matched.substr(0,this.matched.length-this.match.length);return(_t.length>20?"...":"")+_t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var _t=this.match;return _t.length<20&&(_t+=this._input.substr(0,20-_t.length)),(_t.substr(0,20)+(_t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var _t=this.pastInput(),St=new Array(_t.length+1).join("-");return _t+this.upcomingInput()+` +`+St+"^"},"showPosition"),test_match:o(function(_t,St){var bt,Ue,Kt;if(this.options.backtrack_lexer&&(Kt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Kt.yylloc.range=this.yylloc.range.slice(0))),Ue=_t[0].match(/(?:\r\n?|\n).*/g),Ue&&(this.yylineno+=Ue.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ue?Ue[Ue.length-1].length-Ue[Ue.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_t[0].length},this.yytext+=_t[0],this.match+=_t[0],this.matches=_t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_t[0].length),this.matched+=_t[0],bt=this.performAction.call(this,this.yy,this,St,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),bt)return bt;if(this._backtrack){for(var pe in Kt)this[pe]=Kt[pe];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _t,St,bt,Ue;this._more||(this.yytext="",this.match="");for(var Kt=this._currentRules(),pe=0;peSt[0].length)){if(St=bt,Ue=pe,this.options.backtrack_lexer){if(_t=this.test_match(bt,Kt[pe]),_t!==!1)return _t;if(this._backtrack){St=!1;continue}else return!1}else if(!this.options.flex)break}return St?(_t=this.test_match(St,Kt[Ue]),_t!==!1?_t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var St=this.next();return St||this.lex()},"lex"),begin:o(function(St){this.conditionStack.push(St)},"begin"),popState:o(function(){var St=this.conditionStack.length-1;return St>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(St){return St=this.conditionStack.length-1-Math.abs(St||0),St>=0?this.conditionStack[St]:"INITIAL"},"topState"),pushState:o(function(St){this.begin(St)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(St,bt,Ue,Kt){var pe=Kt;switch(Ue){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),bt.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let bi=/\n\s*/g;return bt.yytext=bt.yytext.replace(bi,"
    "),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 94;case 17:this.popState();break;case 18:return 95;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 83;case 26:return 101;case 27:return 84;case 28:return 103;case 29:return 85;case 30:return 86;case 31:return 96;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 87;case 35:return St.lex.firstGraph()&&this.begin("dir"),12;break;case 36:return St.lex.firstGraph()&&this.begin("dir"),12;break;case 37:return St.lex.firstGraph()&&this.begin("dir"),12;break;case 38:return 27;case 39:return 32;case 40:return 97;case 41:return 97;case 42:return 97;case 43:return 97;case 44:return this.popState(),13;break;case 45:return this.popState(),14;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return 120;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 104;case 60:return 110;case 61:return 46;case 62:return 60;case 63:return 44;case 64:return 8;case 65:return 105;case 66:return 114;case 67:return this.popState(),77;break;case 68:return this.pushState("edgeText"),75;break;case 69:return 118;case 70:return this.popState(),77;break;case 71:return this.pushState("thickEdgeText"),75;break;case 72:return 118;case 73:return this.popState(),77;break;case 74:return this.pushState("dottedEdgeText"),75;break;case 75:return 118;case 76:return 77;case 77:return this.popState(),53;break;case 78:return"TEXT";case 79:return this.pushState("ellipseText"),52;break;case 80:return this.popState(),55;break;case 81:return this.pushState("text"),54;break;case 82:return this.popState(),57;break;case 83:return this.pushState("text"),56;break;case 84:return 58;case 85:return this.pushState("text"),67;break;case 86:return this.popState(),64;break;case 87:return this.pushState("text"),63;break;case 88:return this.popState(),49;break;case 89:return this.pushState("text"),48;break;case 90:return this.popState(),69;break;case 91:return this.popState(),71;break;case 92:return 116;case 93:return this.pushState("trapText"),68;break;case 94:return this.pushState("trapText"),70;break;case 95:return 117;case 96:return 67;case 97:return 89;case 98:return"SEP";case 99:return 88;case 100:return 114;case 101:return 110;case 102:return 44;case 103:return 108;case 104:return 113;case 105:return 115;case 106:return this.popState(),62;break;case 107:return this.pushState("text"),62;break;case 108:return this.popState(),51;break;case 109:return this.pushState("text"),50;break;case 110:return this.popState(),31;break;case 111:return this.pushState("text"),29;break;case 112:return this.popState(),66;break;case 113:return this.pushState("text"),65;break;case 114:return"TEXT";case 115:return"QUOTE";case 116:return 9;case 117:return 10;case 118:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},href:{rules:[21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},click:{rules:[21,24,33,34,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},dottedEdgeText:{rules:[21,24,73,75,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},thickEdgeText:{rules:[21,24,70,72,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},edgeText:{rules:[21,24,67,69,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},trapText:{rules:[21,24,76,79,81,83,87,89,90,91,92,93,94,107,109,111,113],inclusive:!1},ellipseText:{rules:[21,24,76,77,78,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},text:{rules:[21,24,76,79,80,81,82,83,86,87,88,89,93,94,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},acc_descr:{rules:[3,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},acc_title:{rules:[1,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},md_string:{rules:[19,20,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},string:{rules:[21,22,23,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,70,71,73,74,76,79,81,83,84,85,87,89,93,94,95,96,97,98,99,100,101,102,103,104,105,107,109,111,113,115,116,117,118],inclusive:!0}}};return kn}();In.lexer=On;function Ir(){this.yy={}}return o(Ir,"Parser"),Ir.prototype=In,In.Parser=Ir,new Ir}();AD.parser=AD;Wie=AD});var uPe,hPe,qie,Xie=M(()=>{"use strict";To();uPe=o((t,e)=>{let r=z1,n=r(t,"r"),i=r(t,"g"),a=r(t,"b");return Hs(n,i,a,e)},"fade"),hPe=o(t=>`.label { + font-family: ${t.fontFamily}; + color: ${t.nodeTextColor||t.textColor}; + } + .cluster-label text { + fill: ${t.titleColor}; + } + .cluster-label span { + color: ${t.titleColor}; + } + .cluster-label span p { + background-color: transparent; + } + + .label text,span { + fill: ${t.nodeTextColor||t.textColor}; + color: ${t.nodeTextColor||t.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + stroke-width: 1px; + } + .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label { + text-anchor: middle; + } + // .flowchart-label .text-outer-tspan { + // text-anchor: middle; + // } + // .flowchart-label .text-inner-tspan { + // text-anchor: start; + // } + + .node .katex path { + fill: #000; + stroke: #000; + stroke-width: 1px; + } + + .rough-node .label,.node .label, .image-shape .label, .icon-shape .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + + .root .anchor path { + fill: ${t.lineColor} !important; + stroke-width: 0; + stroke: ${t.lineColor}; + } + + .arrowheadPath { + fill: ${t.arrowheadColor}; + } + + .edgePath .path { + stroke: ${t.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${t.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${t.edgeLabelBackground}; + p { + background-color: ${t.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${t.edgeLabelBackground}; + fill: ${t.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${uPe(t.edgeLabelBackground,.5)}; + // background-color: + } + + .cluster rect { + fill: ${t.clusterBkg}; + stroke: ${t.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${t.titleColor}; + } + + .cluster span { + color: ${t.titleColor}; + } + /* .cluster div { + color: ${t.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${t.fontFamily}; + font-size: 12px; + background: ${t.tertiaryColor}; + border: 1px solid ${t.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; + } + + rect.text { + fill: none; + stroke-width: 0; + } + + .icon-shape, .image-shape { + background-color: ${t.edgeLabelBackground}; + p { + background-color: ${t.edgeLabelBackground}; + padding: 2px; + } + rect { + opacity: 0.5; + background-color: ${t.edgeLabelBackground}; + fill: ${t.edgeLabelBackground}; + } + text-align: center; + } +`,"getStyles"),qie=hPe});var hT={};vr(hT,{diagram:()=>fPe});var fPe,fT=M(()=>{"use strict";Vt();oL();Hie();Yie();Xie();fPe={parser:Wie,db:X5,renderer:Uie,styles:qie,init:o(t=>{t.flowchart||(t.flowchart={}),t.layout&&n7({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,n7({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}}),X5.clear(),X5.setGen("gen-2")},"init")}});var _D,Jie,eae=M(()=>{"use strict";_D=function(){var t=o(function(C,A,I,D){for(I=I||{},D=C.length;D--;I[C[D]]=A);return I},"o"),e=[6,8,10,20,22,24,26,27,28],r=[1,10],n=[1,11],i=[1,12],a=[1,13],s=[1,14],l=[1,15],u=[1,21],h=[1,22],f=[1,23],d=[1,24],p=[1,25],m=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],g=[1,34],y=[27,28,46,47],v=[41,42,43,44,45],x=[17,34],b=[1,54],w=[1,53],_=[17,34,36,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:o(function(A,I,D,k,R,S,O){var N=S.length-1;switch(R){case 1:break;case 2:this.$=[];break;case 3:S[N-1].push(S[N]),this.$=S[N-1];break;case 4:case 5:this.$=S[N];break;case 6:case 7:this.$=[];break;case 8:k.addEntity(S[N-4]),k.addEntity(S[N-2]),k.addRelationship(S[N-4],S[N],S[N-2],S[N-3]);break;case 9:k.addEntity(S[N-3]),k.addAttributes(S[N-3],S[N-1]);break;case 10:k.addEntity(S[N-2]);break;case 11:k.addEntity(S[N]);break;case 12:k.addEntity(S[N-6],S[N-4]),k.addAttributes(S[N-6],S[N-1]);break;case 13:k.addEntity(S[N-5],S[N-3]);break;case 14:k.addEntity(S[N-3],S[N-1]);break;case 15:case 16:this.$=S[N].trim(),k.setAccTitle(this.$);break;case 17:case 18:this.$=S[N].trim(),k.setAccDescription(this.$);break;case 19:case 43:this.$=S[N];break;case 20:case 41:case 42:this.$=S[N].replace(/"/g,"");break;case 21:case 29:this.$=[S[N]];break;case 22:S[N].push(S[N-1]),this.$=S[N];break;case 23:this.$={attributeType:S[N-1],attributeName:S[N]};break;case 24:this.$={attributeType:S[N-2],attributeName:S[N-1],attributeKeyTypeList:S[N]};break;case 25:this.$={attributeType:S[N-2],attributeName:S[N-1],attributeComment:S[N]};break;case 26:this.$={attributeType:S[N-3],attributeName:S[N-2],attributeKeyTypeList:S[N-1],attributeComment:S[N]};break;case 27:case 28:case 31:this.$=S[N];break;case 30:S[N-2].push(S[N]),this.$=S[N-2];break;case 32:this.$=S[N].replace(/"/g,"");break;case 33:this.$={cardA:S[N],relType:S[N-1],cardB:S[N-2]};break;case 34:this.$=k.Cardinality.ZERO_OR_ONE;break;case 35:this.$=k.Cardinality.ZERO_OR_MORE;break;case 36:this.$=k.Cardinality.ONE_OR_MORE;break;case 37:this.$=k.Cardinality.ONLY_ONE;break;case 38:this.$=k.Cardinality.MD_PARENT;break;case 39:this.$=k.Identification.NON_IDENTIFYING;break;case 40:this.$=k.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:n,24:i,26:a,27:s,28:l},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:n,24:i,26:a,27:s,28:l},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:u,42:h,43:f,44:d,45:p}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(m,[2,19]),t(m,[2,20]),t(e,[2,4]),{11:29,27:s,28:l},{16:30,17:[1,31],29:32,30:33,34:g},{11:35,27:s,28:l},{40:36,46:[1,37],47:[1,38]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(y,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:g},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:u,42:h,43:f,44:d,45:p},t(v,[2,39]),t(v,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(x,[2,23],{32:50,33:51,35:52,37:b,38:w}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(x,[2,24],{33:56,36:[1,57],38:w}),t(x,[2,25]),t(_,[2,29]),t(x,[2,32]),t(_,[2,31]),{16:58,17:[1,59],29:32,30:33,34:g},t(x,[2,26]),{35:60,37:b},{17:[1,61]},t(e,[2,13]),t(_,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:o(function(A,I){if(I.recoverable)this.trace(A);else{var D=new Error(A);throw D.hash=I,D}},"parseError"),parse:o(function(A){var I=this,D=[0],k=[],R=[null],S=[],O=this.table,N="",P=0,F=0,B=0,$=2,z=1,W=S.slice.call(arguments,1),j=Object.create(this.lexer),K={yy:{}};for(var ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ie)&&(K.yy[ie]=this.yy[ie]);j.setInput(A,K.yy),K.yy.lexer=j,K.yy.parser=this,typeof j.yylloc>"u"&&(j.yylloc={});var Q=j.yylloc;S.push(Q);var ee=j.options&&j.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function J(Ge){D.length=D.length-2*Ge,R.length=R.length-Ge,S.length=S.length-Ge}o(J,"popStack");function H(){var Ge;return Ge=k.pop()||j.lex()||z,typeof Ge!="number"&&(Ge instanceof Array&&(k=Ge,Ge=k.pop()),Ge=I.symbols_[Ge]||Ge),Ge}o(H,"lex");for(var q,Z,ae,ue,ce,te,De={},oe,ke,Fe,Be;;){if(ae=D[D.length-1],this.defaultActions[ae]?ue=this.defaultActions[ae]:((q===null||typeof q>"u")&&(q=H()),ue=O[ae]&&O[ae][q]),typeof ue>"u"||!ue.length||!ue[0]){var Ve="";Be=[];for(oe in O[ae])this.terminals_[oe]&&oe>$&&Be.push("'"+this.terminals_[oe]+"'");j.showPosition?Ve="Parse error on line "+(P+1)+`: +`+j.showPosition()+` +Expecting `+Be.join(", ")+", got '"+(this.terminals_[q]||q)+"'":Ve="Parse error on line "+(P+1)+": Unexpected "+(q==z?"end of input":"'"+(this.terminals_[q]||q)+"'"),this.parseError(Ve,{text:j.match,token:this.terminals_[q]||q,line:j.yylineno,loc:Q,expected:Be})}if(ue[0]instanceof Array&&ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+q);switch(ue[0]){case 1:D.push(q),R.push(j.yytext),S.push(j.yylloc),D.push(ue[1]),q=null,Z?(q=Z,Z=null):(F=j.yyleng,N=j.yytext,P=j.yylineno,Q=j.yylloc,B>0&&B--);break;case 2:if(ke=this.productions_[ue[1]][1],De.$=R[R.length-ke],De._$={first_line:S[S.length-(ke||1)].first_line,last_line:S[S.length-1].last_line,first_column:S[S.length-(ke||1)].first_column,last_column:S[S.length-1].last_column},ee&&(De._$.range=[S[S.length-(ke||1)].range[0],S[S.length-1].range[1]]),te=this.performAction.apply(De,[N,F,P,K.yy,ue[1],R,S].concat(W)),typeof te<"u")return te;ke&&(D=D.slice(0,-1*ke*2),R=R.slice(0,-1*ke),S=S.slice(0,-1*ke)),D.push(this.productions_[ue[1]][0]),R.push(De.$),S.push(De._$),Fe=O[D[D.length-2]][D[D.length-1]],D.push(Fe);break;case 3:return!0}}return!0},"parse")},E=function(){var C={EOF:1,parseError:o(function(I,D){if(this.yy.parser)this.yy.parser.parseError(I,D);else throw new Error(I)},"parseError"),setInput:o(function(A,I){return this.yy=I||this.yy||{},this._input=A,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var A=this._input[0];this.yytext+=A,this.yyleng++,this.offset++,this.match+=A,this.matched+=A;var I=A.match(/(?:\r\n?|\n).*/g);return I?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),A},"input"),unput:o(function(A){var I=A.length,D=A.split(/(?:\r\n?|\n)/g);this._input=A+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-I),this.offset-=I;var k=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),D.length-1&&(this.yylineno-=D.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:D?(D.length===k.length?this.yylloc.first_column:0)+k[k.length-D.length].length-D[0].length:this.yylloc.first_column-I},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-I]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(A){this.unput(this.match.slice(A))},"less"),pastInput:o(function(){var A=this.matched.substr(0,this.matched.length-this.match.length);return(A.length>20?"...":"")+A.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var A=this.match;return A.length<20&&(A+=this._input.substr(0,20-A.length)),(A.substr(0,20)+(A.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var A=this.pastInput(),I=new Array(A.length+1).join("-");return A+this.upcomingInput()+` +`+I+"^"},"showPosition"),test_match:o(function(A,I){var D,k,R;if(this.options.backtrack_lexer&&(R={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(R.yylloc.range=this.yylloc.range.slice(0))),k=A[0].match(/(?:\r\n?|\n).*/g),k&&(this.yylineno+=k.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+A[0].length},this.yytext+=A[0],this.match+=A[0],this.matches=A,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(A[0].length),this.matched+=A[0],D=this.performAction.call(this,this.yy,this,I,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),D)return D;if(this._backtrack){for(var S in R)this[S]=R[S];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var A,I,D,k;this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),S=0;SI[0].length)){if(I=D,k=S,this.options.backtrack_lexer){if(A=this.test_match(D,R[S]),A!==!1)return A;if(this._backtrack){I=!1;continue}else return!1}else if(!this.options.flex)break}return I?(A=this.test_match(I,R[k]),A!==!1?A:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var I=this.next();return I||this.lex()},"lex"),begin:o(function(I){this.conditionStack.push(I)},"begin"),popState:o(function(){var I=this.conditionStack.length-1;return I>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(I){return I=this.conditionStack.length-1-Math.abs(I||0),I>=0?this.conditionStack[I]:"INITIAL"},"topState"),pushState:o(function(I){this.begin(I)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(I,D,k,R){var S=R;switch(k){case 0:return this.begin("acc_title"),22;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),24;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;break;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;break;case 22:return D.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return D.yytext[0];case 55:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return C}();T.lexer=E;function L(){this.yy={}}return o(L,"Parser"),L.prototype=T,T.Parser=L,new L}();_D.parser=_D;Jie=_D});var Gd,LD,xPe,bPe,tae,wPe,TPe,kPe,EPe,SPe,rae,nae=M(()=>{"use strict";ht();Vt();ki();Gd=new Map,LD=[],xPe={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},bPe={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},tae=o(function(t,e=void 0){return Gd.has(t)?!Gd.get(t).alias&&e&&(Gd.get(t).alias=e,Y.info(`Add alias '${e}' to entity '${t}'`)):(Gd.set(t,{attributes:[],alias:e}),Y.info("Added new entity :",t)),Gd.get(t)},"addEntity"),wPe=o(()=>Gd,"getEntities"),TPe=o(function(t,e){let r=tae(t),n;for(n=e.length-1;n>=0;n--)r.attributes.push(e[n]),Y.debug("Added attribute ",e[n].attributeName)},"addAttributes"),kPe=o(function(t,e,r,n){let i={entityA:t,roleA:e,entityB:r,relSpec:n};LD.push(i),Y.debug("Added new relationship :",i)},"addRelationship"),EPe=o(()=>LD,"getRelationships"),SPe=o(function(){Gd=new Map,LD=[],_r()},"clear"),rae={Cardinality:xPe,Identification:bPe,getConfig:o(()=>de().er,"getConfig"),addEntity:tae,addAttributes:TPe,getEntities:wPe,addRelationship:kPe,getRelationships:EPe,clear:SPe,setAccTitle:Rr,getAccTitle:Pr,setAccDescription:Br,getAccDescription:Fr,setDiagramTitle:ln,getDiagramTitle:Jr}});var Rl,CPe,Wo,iae=M(()=>{"use strict";Rl={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},CPe=o(function(t,e){let r;t.append("defs").append("marker").attr("id",Rl.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",Rl.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",Rl.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",Rl.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",Rl.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",Rl.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",Rl.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",Rl.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",Rl.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",Rl.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"insertMarkers"),Wo={ERMarkers:Rl,insertMarkers:CPe}});var aae,sae=M(()=>{"use strict";aae=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function APe(t){return typeof t=="string"&&aae.test(t)}var oae,lae=M(()=>{"use strict";sae();o(APe,"validate");oae=APe});function cae(t,e=0){return pa[t[e+0]]+pa[t[e+1]]+pa[t[e+2]]+pa[t[e+3]]+"-"+pa[t[e+4]]+pa[t[e+5]]+"-"+pa[t[e+6]]+pa[t[e+7]]+"-"+pa[t[e+8]]+pa[t[e+9]]+"-"+pa[t[e+10]]+pa[t[e+11]]+pa[t[e+12]]+pa[t[e+13]]+pa[t[e+14]]+pa[t[e+15]]}var pa,uae=M(()=>{"use strict";pa=[];for(let t=0;t<256;++t)pa.push((t+256).toString(16).slice(1));o(cae,"unsafeStringify")});function _Pe(t){if(!oae(t))throw TypeError("Invalid UUID");let e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}var hae,fae=M(()=>{"use strict";lae();o(_Pe,"parse");hae=_Pe});function LPe(t){t=unescape(encodeURIComponent(t));let e=[];for(let r=0;r{"use strict";uae();fae();o(LPe,"stringToBytes");DPe="6ba7b810-9dad-11d1-80b4-00c04fd430c8",NPe="6ba7b811-9dad-11d1-80b4-00c04fd430c8";o(DD,"v35")});function RPe(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:return e^r^n;case 2:return e&r^e&n^r&n;case 3:return e^r^n}}function ND(t,e){return t<>>32-e}function MPe(t){let e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){let s=unescape(encodeURIComponent(t));t=[];for(let l=0;l>>0;p=d,d=f,f=ND(h,30)>>>0,h=u,u=y}r[0]=r[0]+u>>>0,r[1]=r[1]+h>>>0,r[2]=r[2]+f>>>0,r[3]=r[3]+d>>>0,r[4]=r[4]+p>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var pae,mae=M(()=>{"use strict";o(RPe,"f");o(ND,"ROTL");o(MPe,"sha1");pae=MPe});var IPe,RD,gae=M(()=>{"use strict";dae();mae();IPe=DD("v5",80,pae),RD=IPe});var yae=M(()=>{"use strict";gae()});function HPe(t="",e=""){let r=t.replace(OPe,"");return`${xae(e)}${xae(r)}${RD(t,UPe)}`}function xae(t=""){return t.length>0?`${t}-`:""}var OPe,Bi,zv,PPe,BPe,FPe,zPe,bae,GPe,vae,$Pe,VPe,UPe,wae,Tae=M(()=>{"use strict";Ns();mr();Pv();Vt();ht();hr();iae();ni();fr();yae();OPe=/[^\dA-Za-z](\W)*/g,Bi={},zv=new Map,PPe=o(function(t){let e=Object.keys(t);for(let r of e)Bi[r]=t[r]},"setConf"),BPe=o((t,e,r)=>{let n=Bi.entityPadding/3,i=Bi.entityPadding/3,a=Bi.fontSize*.85,s=e.node().getBBox(),l=[],u=!1,h=!1,f=0,d=0,p=0,m=0,g=s.height+n*2,y=1;r.forEach(w=>{w.attributeKeyTypeList!==void 0&&w.attributeKeyTypeList.length>0&&(u=!0),w.attributeComment!==void 0&&(h=!0)}),r.forEach(w=>{let _=`${e.node().id}-attr-${y}`,T=0,E=ou(w.attributeType),L=t.append("text").classed("er entityLabel",!0).attr("id",`${_}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",de().fontFamily).style("font-size",a+"px").text(E),C=t.append("text").classed("er entityLabel",!0).attr("id",`${_}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",de().fontFamily).style("font-size",a+"px").text(w.attributeName),A={};A.tn=L,A.nn=C;let I=L.node().getBBox(),D=C.node().getBBox();if(f=Math.max(f,I.width),d=Math.max(d,D.width),T=Math.max(I.height,D.height),u){let k=w.attributeKeyTypeList!==void 0?w.attributeKeyTypeList.join(","):"",R=t.append("text").classed("er entityLabel",!0).attr("id",`${_}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",de().fontFamily).style("font-size",a+"px").text(k);A.kn=R;let S=R.node().getBBox();p=Math.max(p,S.width),T=Math.max(T,S.height)}if(h){let k=t.append("text").classed("er entityLabel",!0).attr("id",`${_}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",de().fontFamily).style("font-size",a+"px").text(w.attributeComment||"");A.cn=k;let R=k.node().getBBox();m=Math.max(m,R.width),T=Math.max(T,R.height)}A.height=T,l.push(A),g+=T+n*2,y+=1});let v=4;u&&(v+=2),h&&(v+=2);let x=f+d+p+m,b={width:Math.max(Bi.minEntityWidth,Math.max(s.width+Bi.entityPadding*2,x+i*v)),height:r.length>0?g:Math.max(Bi.minEntityHeight,s.height+Bi.entityPadding*2)};if(r.length>0){let w=Math.max(0,(b.width-x-i*v)/(v/2));e.attr("transform","translate("+b.width/2+","+(n+s.height/2)+")");let _=s.height+n*2,T="attributeBoxOdd";l.forEach(E=>{let L=_+n+E.height/2;E.tn.attr("transform","translate("+i+","+L+")");let C=t.insert("rect","#"+E.tn.node().id).classed(`er ${T}`,!0).attr("x",0).attr("y",_).attr("width",f+i*2+w).attr("height",E.height+n*2),A=parseFloat(C.attr("x"))+parseFloat(C.attr("width"));E.nn.attr("transform","translate("+(A+i)+","+L+")");let I=t.insert("rect","#"+E.nn.node().id).classed(`er ${T}`,!0).attr("x",A).attr("y",_).attr("width",d+i*2+w).attr("height",E.height+n*2),D=parseFloat(I.attr("x"))+parseFloat(I.attr("width"));if(u){E.kn.attr("transform","translate("+(D+i)+","+L+")");let k=t.insert("rect","#"+E.kn.node().id).classed(`er ${T}`,!0).attr("x",D).attr("y",_).attr("width",p+i*2+w).attr("height",E.height+n*2);D=parseFloat(k.attr("x"))+parseFloat(k.attr("width"))}h&&(E.cn.attr("transform","translate("+(D+i)+","+L+")"),t.insert("rect","#"+E.cn.node().id).classed(`er ${T}`,"true").attr("x",D).attr("y",_).attr("width",m+i*2+w).attr("height",E.height+n*2)),_+=E.height+n*2,T=T==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else b.height=Math.max(Bi.minEntityHeight,g),e.attr("transform","translate("+b.width/2+","+b.height/2+")");return b},"drawAttributes"),FPe=o(function(t,e,r){let n=[...e.keys()],i;return n.forEach(function(a){let s=HPe(a,"entity");zv.set(a,s);let l=t.append("g").attr("id",s);i=i===void 0?s:i;let u="text-"+s,h=l.append("text").classed("er entityLabel",!0).attr("id",u).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",de().fontFamily).style("font-size",Bi.fontSize+"px").text(e.get(a).alias??a),{width:f,height:d}=BPe(l,h,e.get(a).attributes),m=l.insert("rect","#"+u).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",f).attr("height",d).node().getBBox();r.setNode(s,{width:m.width,height:m.height,shape:"rect",id:s})}),i},"drawEntities"),zPe=o(function(t,e){e.nodes().forEach(function(r){r!==void 0&&e.node(r)!==void 0&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")})},"adjustEntities"),bae=o(function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},"getEdgeName"),GPe=o(function(t,e){return t.forEach(function(r){e.setEdge(zv.get(r.entityA),zv.get(r.entityB),{relationship:r},bae(r))}),t},"addRelationships"),vae=0,$Pe=o(function(t,e,r,n,i){vae++;let a=r.edge(zv.get(e.entityA),zv.get(e.entityB),bae(e)),s=Ka().x(function(y){return y.x}).y(function(y){return y.y}).curve(Do),l=t.insert("path","#"+n).classed("er relationshipLine",!0).attr("d",s(a.points)).style("stroke",Bi.stroke).style("fill","none");e.relSpec.relType===i.db.Identification.NON_IDENTIFYING&&l.attr("stroke-dasharray","8,8");let u="";switch(Bi.arrowMarkerAbsolute&&(u=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,u=u.replace(/\(/g,"\\("),u=u.replace(/\)/g,"\\)")),e.relSpec.cardA){case i.db.Cardinality.ZERO_OR_ONE:l.attr("marker-end","url("+u+"#"+Wo.ERMarkers.ZERO_OR_ONE_END+")");break;case i.db.Cardinality.ZERO_OR_MORE:l.attr("marker-end","url("+u+"#"+Wo.ERMarkers.ZERO_OR_MORE_END+")");break;case i.db.Cardinality.ONE_OR_MORE:l.attr("marker-end","url("+u+"#"+Wo.ERMarkers.ONE_OR_MORE_END+")");break;case i.db.Cardinality.ONLY_ONE:l.attr("marker-end","url("+u+"#"+Wo.ERMarkers.ONLY_ONE_END+")");break;case i.db.Cardinality.MD_PARENT:l.attr("marker-end","url("+u+"#"+Wo.ERMarkers.MD_PARENT_END+")");break}switch(e.relSpec.cardB){case i.db.Cardinality.ZERO_OR_ONE:l.attr("marker-start","url("+u+"#"+Wo.ERMarkers.ZERO_OR_ONE_START+")");break;case i.db.Cardinality.ZERO_OR_MORE:l.attr("marker-start","url("+u+"#"+Wo.ERMarkers.ZERO_OR_MORE_START+")");break;case i.db.Cardinality.ONE_OR_MORE:l.attr("marker-start","url("+u+"#"+Wo.ERMarkers.ONE_OR_MORE_START+")");break;case i.db.Cardinality.ONLY_ONE:l.attr("marker-start","url("+u+"#"+Wo.ERMarkers.ONLY_ONE_START+")");break;case i.db.Cardinality.MD_PARENT:l.attr("marker-start","url("+u+"#"+Wo.ERMarkers.MD_PARENT_START+")");break}let h=l.node().getTotalLength(),f=l.node().getPointAtLength(h*.5),d="rel"+vae,p=e.roleA.split(/
    /g),m=t.append("text").classed("er relationshipLabel",!0).attr("id",d).attr("x",f.x).attr("y",f.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",de().fontFamily).style("font-size",Bi.fontSize+"px");if(p.length==1)m.text(e.roleA);else{let y=-(p.length-1)*.5;p.forEach((v,x)=>{m.append("tspan").attr("x",f.x).attr("dy",`${x===0?y:1}em`).text(v)})}let g=m.node().getBBox();t.insert("rect","#"+d).classed("er relationshipLabelBox",!0).attr("x",f.x-g.width/2).attr("y",f.y-g.height/2).attr("width",g.width).attr("height",g.height)},"drawRelationshipFromLayout"),VPe=o(function(t,e,r,n){Bi=de().er,Y.info("Drawing ER diagram");let i=de().securityLevel,a;i==="sandbox"&&(a=ze("#i"+e));let l=(i==="sandbox"?ze(a.nodes()[0].contentDocument.body):ze("body")).select(`[id='${e}']`);Wo.insertMarkers(l,Bi);let u;u=new Mr({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Bi.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let h=FPe(l,n.db.getEntities(),u),f=GPe(n.db.getRelationships(),u);Du(u),zPe(l,u),f.forEach(function(y){$Pe(l,y,u,h,n)});let d=Bi.diagramPadding;Ut.insertTitle(l,"entityTitleText",Bi.titleTopMargin,n.db.getDiagramTitle());let p=l.node().getBBox(),m=p.width+d*2,g=p.height+d*2;Zr(l,g,m,Bi.useMaxWidth),l.attr("viewBox",`${p.x-d} ${p.y-d} ${m} ${g}`)},"draw"),UPe="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";o(HPe,"generateId");o(xae,"strWithHyphen");wae={setConf:PPe,draw:VPe}});var WPe,kae,Eae=M(()=>{"use strict";WPe=o(t=>` + .entityBox { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + } + + .attributeBoxOdd { + fill: ${t.attributeBackgroundColorOdd}; + stroke: ${t.nodeBorder}; + } + + .attributeBoxEven { + fill: ${t.attributeBackgroundColorEven}; + stroke: ${t.nodeBorder}; + } + + .relationshipLabelBox { + fill: ${t.tertiaryColor}; + opacity: 0.7; + background-color: ${t.tertiaryColor}; + rect { + opacity: 0.5; + } + } + + .relationshipLine { + stroke: ${t.lineColor}; + } + + .entityTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; + } + #MD_PARENT_START { + fill: #f5f5f5 !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; + } + #MD_PARENT_END { + fill: #f5f5f5 !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; + } + +`,"getStyles"),kae=WPe});var Sae={};vr(Sae,{diagram:()=>YPe});var YPe,Cae=M(()=>{"use strict";eae();nae();Tae();Eae();YPe={parser:Jie,db:rae,renderer:wae,styles:kae}});function ei(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}function ma(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"}function MD(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}function Vd(t){return typeof t=="object"&&t!==null&&ei(t.container)&&ma(t.reference)&&typeof t.message=="string"}function io(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}function Jh(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}function Gv(t){return io(t)&&typeof t.fullText=="string"}var $d,Yo=M(()=>{"use strict";o(ei,"isAstNode");o(ma,"isReference");o(MD,"isAstNodeDescription");o(Vd,"isLinkingError");$d=class{static{o(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,r){return ei(e)&&this.isSubtype(e.$type,r)}isSubtype(e,r){if(e===r)return!0;let n=this.subtypes[e];n||(n=this.subtypes[e]={});let i=n[r];if(i!==void 0)return i;{let a=this.computeIsSubtype(e,r);return n[r]=a,a}}getAllSubTypes(e){let r=this.allSubtypes[e];if(r)return r;{let n=this.getAllTypes(),i=[];for(let a of n)this.isSubtype(a,e)&&i.push(a);return this.allSubtypes[e]=i,i}}};o(io,"isCompositeCstNode");o(Jh,"isLeafCstNode");o(Gv,"isRootCstNode")});function KPe(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}function dT(t){return!!t&&typeof t[Symbol.iterator]=="function"}function tn(...t){if(t.length===1){let e=t[0];if(e instanceof ao)return e;if(dT(e))return new ao(()=>e[Symbol.iterator](),r=>r.next());if(typeof e.length=="number")return new ao(()=>({index:0}),r=>r.index1?new ao(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){let r=e.iterator.next();if(!r.done)return r;e.iterator=void 0}if(e.array){if(e.arrIndex{"use strict";ao=class t{static{o(this,"StreamImpl")}constructor(e,r){this.startFn=e,this.nextFn=r}iterator(){let e={state:this.startFn(),next:o(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),r=0,n=e.next();for(;!n.done;)r++,n=e.next();return r}toArray(){let e=[],r=this.iterator(),n;do n=r.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,r){let n=this.map(i=>[e?e(i):i,r?r(i):i]);return new Map(n)}toString(){return this.join()}concat(e){let r=e[Symbol.iterator]();return new t(()=>({first:this.startFn(),firstDone:!1}),n=>{let i;if(!n.firstDone){do if(i=this.nextFn(n.first),!i.done)return i;while(!i.done);n.firstDone=!0}do if(i=r.next(),!i.done)return i;while(!i.done);return Ja})}join(e=","){let r=this.iterator(),n="",i,a=!1;do i=r.next(),i.done||(a&&(n+=e),n+=KPe(i.value)),a=!0;while(!i.done);return n}indexOf(e,r=0){let n=this.iterator(),i=0,a=n.next();for(;!a.done;){if(i>=r&&a.value===e)return i;a=n.next(),i++}return-1}every(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(!e(n.value))return!1;n=r.next()}return!0}some(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(e(n.value))return!0;n=r.next()}return!1}forEach(e){let r=this.iterator(),n=0,i=r.next();for(;!i.done;)e(i.value,n),i=r.next(),n++}map(e){return new t(this.startFn,r=>{let{done:n,value:i}=this.nextFn(r);return n?Ja:{done:!1,value:e(i)}})}filter(e){return new t(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&e(n.value))return n;while(!n.done);return Ja})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,r){let n=this.iterator(),i=r,a=n.next();for(;!a.done;)i===void 0?i=a.value:i=e(i,a.value),a=n.next();return i}reduceRight(e,r){return this.recursiveReduce(this.iterator(),e,r)}recursiveReduce(e,r,n){let i=e.next();if(i.done)return n;let a=this.recursiveReduce(e,r,n);return a===void 0?i.value:r(a,i.value)}find(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(e(n.value))return n.value;n=r.next()}}findIndex(e){let r=this.iterator(),n=0,i=r.next();for(;!i.done;){if(e(i.value))return n;i=r.next(),n++}return-1}includes(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(n.value===e)return!0;n=r.next()}return!1}flatMap(e){return new t(()=>({this:this.startFn()}),r=>{do{if(r.iterator){let a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}let{done:n,value:i}=this.nextFn(r.this);if(!n){let a=e(i);if(dT(a))r.iterator=a[Symbol.iterator]();else return{done:!1,value:a}}}while(r.iterator);return Ja})}flat(e){if(e===void 0&&(e=1),e<=0)return this;let r=e>1?this.flat(e-1):this;return new t(()=>({this:r.startFn()}),n=>{do{if(n.iterator){let s=n.iterator.next();if(s.done)n.iterator=void 0;else return s}let{done:i,value:a}=r.nextFn(n.this);if(!i)if(dT(a))n.iterator=a[Symbol.iterator]();else return{done:!1,value:a}}while(n.iterator);return Ja})}head(){let r=this.iterator().next();if(!r.done)return r.value}tail(e=1){return new t(()=>{let r=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),r=>(r.size++,r.size>e?Ja:this.nextFn(r.state)))}distinct(e){let r=new Set;return this.filter(n=>{let i=e?e(n):n;return r.has(i)?!1:(r.add(i),!0)})}exclude(e,r){let n=new Set;for(let i of e){let a=r?r(i):i;n.add(a)}return this.filter(i=>{let a=r?r(i):i;return!n.has(a)})}};o(KPe,"toString");o(dT,"isIterable");$v=new ao(()=>{},()=>Ja),Ja=Object.freeze({done:!0,value:void 0});o(tn,"stream");Cc=class extends ao{static{o(this,"TreeStreamImpl")}constructor(e,r,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[r(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){let s=i.iterators[i.iterators.length-1].next();if(s.done)i.iterators.pop();else return i.iterators.push(r(s.value)[Symbol.iterator]()),s}return Ja})}iterator(){let e={state:this.startFn(),next:o(()=>this.nextFn(e.state),"next"),prune:o(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}};(function(t){function e(a){return a.reduce((s,l)=>s+l,0)}o(e,"sum"),t.sum=e;function r(a){return a.reduce((s,l)=>s*l,0)}o(r,"product"),t.product=r;function n(a){return a.reduce((s,l)=>Math.min(s,l))}o(n,"min"),t.min=n;function i(a){return a.reduce((s,l)=>Math.max(s,l))}o(i,"max"),t.max=i})(Gm||(Gm={}))});var mT={};vr(mT,{DefaultNameRegexp:()=>pT,RangeComparison:()=>Nu,compareRange:()=>Dae,findCommentNode:()=>BD,findDeclarationNodeAtOffset:()=>ZPe,findLeafNodeAtOffset:()=>FD,findLeafNodeBeforeOffset:()=>Nae,flattenCst:()=>QPe,getInteriorNodes:()=>tBe,getNextNode:()=>JPe,getPreviousNode:()=>Mae,getStartlineNode:()=>eBe,inRange:()=>PD,isChildNode:()=>OD,isCommentNode:()=>ID,streamCst:()=>Ud,toDocumentSegment:()=>Hd,tokenToRange:()=>$m});function Ud(t){return new Cc(t,e=>io(e)?e.content:[],{includeRoot:!0})}function QPe(t){return Ud(t).filter(Jh)}function OD(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}function $m(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}function Hd(t){if(!t)return;let{offset:e,end:r,range:n}=t;return{range:n,offset:e,end:r,length:r-e}}function Dae(t,e){if(t.end.linee.end.line||t.start.line===e.end.line&&t.start.character>e.end.character)return Nu.After;let r=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,n=t.end.lineNu.After}function ZPe(t,e,r=pT){if(t){if(e>0){let n=e-t.offset,i=t.text.charAt(n);r.test(i)||e--}return FD(t,e)}}function BD(t,e){if(t){let r=Mae(t,!0);if(r&&ID(r,e))return r;if(Gv(t)){let n=t.content.findIndex(i=>!i.hidden);for(let i=n-1;i>=0;i--){let a=t.content[i];if(ID(a,e))return a}}}}function ID(t,e){return Jh(t)&&e.includes(t.tokenType.name)}function FD(t,e){if(Jh(t))return t;if(io(t)){let r=Rae(t,e,!1);if(r)return FD(r,e)}}function Nae(t,e){if(Jh(t))return t;if(io(t)){let r=Rae(t,e,!0);if(r)return Nae(r,e)}}function Rae(t,e,r){let n=0,i=t.content.length-1,a;for(;n<=i;){let s=Math.floor((n+i)/2),l=t.content[s];if(l.offset<=e&&l.end>e)return l;l.end<=e?(a=r?l:void 0,n=s+1):i=s-1}return a}function Mae(t,e=!0){for(;t.container;){let r=t.container,n=r.content.indexOf(t);for(;n>0;){n--;let i=r.content[n];if(e||!i.hidden)return i}t=r}}function JPe(t,e=!0){for(;t.container;){let r=t.container,n=r.content.indexOf(t),i=r.content.length-1;for(;n{"use strict";Yo();Rs();o(Ud,"streamCst");o(QPe,"flattenCst");o(OD,"isChildNode");o($m,"tokenToRange");o(Hd,"toDocumentSegment");(function(t){t[t.Before=0]="Before",t[t.After=1]="After",t[t.OverlapFront=2]="OverlapFront",t[t.OverlapBack=3]="OverlapBack",t[t.Inside=4]="Inside"})(Nu||(Nu={}));o(Dae,"compareRange");o(PD,"inRange");pT=/^[\w\p{L}]$/u;o(ZPe,"findDeclarationNodeAtOffset");o(BD,"findCommentNode");o(ID,"isCommentNode");o(FD,"findLeafNodeAtOffset");o(Nae,"findLeafNodeBeforeOffset");o(Rae,"binarySearch");o(Mae,"getPreviousNode");o(JPe,"getNextNode");o(eBe,"getStartlineNode");o(tBe,"getInteriorNodes");o(rBe,"getCommonParent");o(Lae,"getParentChain")});function ef(t){throw new Error("Error! The input value was not handled.")}var Wd,gT=M(()=>{"use strict";Wd=class extends Error{static{o(this,"ErrorWithLocation")}constructor(e,r){super(e?`${r} at ${e.range.start.line}:${e.range.start.character}`:r)}};o(ef,"assertUnreachable")});var Yv={};vr(Yv,{AbstractElement:()=>GD,AbstractRule:()=>Vv,AbstractType:()=>Uv,Action:()=>pN,Alternatives:()=>mN,ArrayLiteral:()=>$D,ArrayType:()=>VD,Assignment:()=>gN,BooleanLiteral:()=>HD,CharacterRange:()=>yN,Condition:()=>yT,Conjunction:()=>YD,CrossReference:()=>xN,Disjunction:()=>XD,EndOfFile:()=>bN,Grammar:()=>KD,GrammarImport:()=>Oae,Group:()=>TN,InferredType:()=>QD,Interface:()=>ZD,Keyword:()=>kN,LangiumGrammarAstReflection:()=>Vm,LangiumGrammarTerminals:()=>nBe,NamedArgument:()=>Pae,NegatedToken:()=>EN,Negation:()=>JD,NumberLiteral:()=>tN,Parameter:()=>rN,ParameterReference:()=>nN,ParserRule:()=>aN,ReferenceType:()=>sN,RegexToken:()=>CN,ReturnType:()=>Bae,RuleCall:()=>_N,SimpleType:()=>cN,StringLiteral:()=>uN,TerminalAlternatives:()=>LN,TerminalGroup:()=>NN,TerminalRule:()=>xT,TerminalRuleCall:()=>MN,Type:()=>hN,TypeAttribute:()=>Fae,TypeDefinition:()=>zD,UnionType:()=>fN,UnorderedGroup:()=>IN,UntilToken:()=>ON,ValueLiteral:()=>vT,Wildcard:()=>BN,isAbstractElement:()=>Hv,isAbstractRule:()=>iBe,isAbstractType:()=>aBe,isAction:()=>Ru,isAlternatives:()=>kT,isArrayLiteral:()=>uBe,isArrayType:()=>UD,isAssignment:()=>Il,isBooleanLiteral:()=>WD,isCharacterRange:()=>vN,isCondition:()=>sBe,isConjunction:()=>qD,isCrossReference:()=>Yd,isDisjunction:()=>jD,isEndOfFile:()=>wN,isFeatureName:()=>oBe,isGrammar:()=>hBe,isGrammarImport:()=>fBe,isGroup:()=>tf,isInferredType:()=>bT,isInterface:()=>wT,isKeyword:()=>Xo,isNamedArgument:()=>dBe,isNegatedToken:()=>SN,isNegation:()=>eN,isNumberLiteral:()=>pBe,isParameter:()=>mBe,isParameterReference:()=>iN,isParserRule:()=>Ma,isPrimitiveType:()=>Iae,isReferenceType:()=>oN,isRegexToken:()=>AN,isReturnType:()=>lN,isRuleCall:()=>Ol,isSimpleType:()=>TT,isStringLiteral:()=>gBe,isTerminalAlternatives:()=>DN,isTerminalGroup:()=>RN,isTerminalRule:()=>qo,isTerminalRuleCall:()=>ET,isType:()=>Wv,isTypeAttribute:()=>yBe,isTypeDefinition:()=>lBe,isUnionType:()=>dN,isUnorderedGroup:()=>ST,isUntilToken:()=>PN,isValueLiteral:()=>cBe,isWildcard:()=>FN,reflection:()=>lr});function iBe(t){return lr.isInstance(t,Vv)}function aBe(t){return lr.isInstance(t,Uv)}function sBe(t){return lr.isInstance(t,yT)}function oBe(t){return Iae(t)||t==="current"||t==="entry"||t==="extends"||t==="false"||t==="fragment"||t==="grammar"||t==="hidden"||t==="import"||t==="interface"||t==="returns"||t==="terminal"||t==="true"||t==="type"||t==="infer"||t==="infers"||t==="with"||typeof t=="string"&&/\^?[_a-zA-Z][\w_]*/.test(t)}function Iae(t){return t==="string"||t==="number"||t==="boolean"||t==="Date"||t==="bigint"}function lBe(t){return lr.isInstance(t,zD)}function cBe(t){return lr.isInstance(t,vT)}function Hv(t){return lr.isInstance(t,GD)}function uBe(t){return lr.isInstance(t,$D)}function UD(t){return lr.isInstance(t,VD)}function WD(t){return lr.isInstance(t,HD)}function qD(t){return lr.isInstance(t,YD)}function jD(t){return lr.isInstance(t,XD)}function hBe(t){return lr.isInstance(t,KD)}function fBe(t){return lr.isInstance(t,Oae)}function bT(t){return lr.isInstance(t,QD)}function wT(t){return lr.isInstance(t,ZD)}function dBe(t){return lr.isInstance(t,Pae)}function eN(t){return lr.isInstance(t,JD)}function pBe(t){return lr.isInstance(t,tN)}function mBe(t){return lr.isInstance(t,rN)}function iN(t){return lr.isInstance(t,nN)}function Ma(t){return lr.isInstance(t,aN)}function oN(t){return lr.isInstance(t,sN)}function lN(t){return lr.isInstance(t,Bae)}function TT(t){return lr.isInstance(t,cN)}function gBe(t){return lr.isInstance(t,uN)}function qo(t){return lr.isInstance(t,xT)}function Wv(t){return lr.isInstance(t,hN)}function yBe(t){return lr.isInstance(t,Fae)}function dN(t){return lr.isInstance(t,fN)}function Ru(t){return lr.isInstance(t,pN)}function kT(t){return lr.isInstance(t,mN)}function Il(t){return lr.isInstance(t,gN)}function vN(t){return lr.isInstance(t,yN)}function Yd(t){return lr.isInstance(t,xN)}function wN(t){return lr.isInstance(t,bN)}function tf(t){return lr.isInstance(t,TN)}function Xo(t){return lr.isInstance(t,kN)}function SN(t){return lr.isInstance(t,EN)}function AN(t){return lr.isInstance(t,CN)}function Ol(t){return lr.isInstance(t,_N)}function DN(t){return lr.isInstance(t,LN)}function RN(t){return lr.isInstance(t,NN)}function ET(t){return lr.isInstance(t,MN)}function ST(t){return lr.isInstance(t,IN)}function PN(t){return lr.isInstance(t,ON)}function FN(t){return lr.isInstance(t,BN)}var nBe,Vv,Uv,yT,zD,vT,GD,$D,VD,HD,YD,XD,KD,Oae,QD,ZD,Pae,JD,tN,rN,nN,aN,sN,Bae,cN,uN,xT,hN,Fae,fN,pN,mN,gN,yN,xN,bN,TN,kN,EN,CN,_N,LN,NN,MN,IN,ON,BN,Vm,lr,Ac=M(()=>{"use strict";Yo();nBe={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},Vv="AbstractRule";o(iBe,"isAbstractRule");Uv="AbstractType";o(aBe,"isAbstractType");yT="Condition";o(sBe,"isCondition");o(oBe,"isFeatureName");o(Iae,"isPrimitiveType");zD="TypeDefinition";o(lBe,"isTypeDefinition");vT="ValueLiteral";o(cBe,"isValueLiteral");GD="AbstractElement";o(Hv,"isAbstractElement");$D="ArrayLiteral";o(uBe,"isArrayLiteral");VD="ArrayType";o(UD,"isArrayType");HD="BooleanLiteral";o(WD,"isBooleanLiteral");YD="Conjunction";o(qD,"isConjunction");XD="Disjunction";o(jD,"isDisjunction");KD="Grammar";o(hBe,"isGrammar");Oae="GrammarImport";o(fBe,"isGrammarImport");QD="InferredType";o(bT,"isInferredType");ZD="Interface";o(wT,"isInterface");Pae="NamedArgument";o(dBe,"isNamedArgument");JD="Negation";o(eN,"isNegation");tN="NumberLiteral";o(pBe,"isNumberLiteral");rN="Parameter";o(mBe,"isParameter");nN="ParameterReference";o(iN,"isParameterReference");aN="ParserRule";o(Ma,"isParserRule");sN="ReferenceType";o(oN,"isReferenceType");Bae="ReturnType";o(lN,"isReturnType");cN="SimpleType";o(TT,"isSimpleType");uN="StringLiteral";o(gBe,"isStringLiteral");xT="TerminalRule";o(qo,"isTerminalRule");hN="Type";o(Wv,"isType");Fae="TypeAttribute";o(yBe,"isTypeAttribute");fN="UnionType";o(dN,"isUnionType");pN="Action";o(Ru,"isAction");mN="Alternatives";o(kT,"isAlternatives");gN="Assignment";o(Il,"isAssignment");yN="CharacterRange";o(vN,"isCharacterRange");xN="CrossReference";o(Yd,"isCrossReference");bN="EndOfFile";o(wN,"isEndOfFile");TN="Group";o(tf,"isGroup");kN="Keyword";o(Xo,"isKeyword");EN="NegatedToken";o(SN,"isNegatedToken");CN="RegexToken";o(AN,"isRegexToken");_N="RuleCall";o(Ol,"isRuleCall");LN="TerminalAlternatives";o(DN,"isTerminalAlternatives");NN="TerminalGroup";o(RN,"isTerminalGroup");MN="TerminalRuleCall";o(ET,"isTerminalRuleCall");IN="UnorderedGroup";o(ST,"isUnorderedGroup");ON="UntilToken";o(PN,"isUntilToken");BN="Wildcard";o(FN,"isWildcard");Vm=class extends $d{static{o(this,"LangiumGrammarAstReflection")}getAllTypes(){return["AbstractElement","AbstractRule","AbstractType","Action","Alternatives","ArrayLiteral","ArrayType","Assignment","BooleanLiteral","CharacterRange","Condition","Conjunction","CrossReference","Disjunction","EndOfFile","Grammar","GrammarImport","Group","InferredType","Interface","Keyword","NamedArgument","NegatedToken","Negation","NumberLiteral","Parameter","ParameterReference","ParserRule","ReferenceType","RegexToken","ReturnType","RuleCall","SimpleType","StringLiteral","TerminalAlternatives","TerminalGroup","TerminalRule","TerminalRuleCall","Type","TypeAttribute","TypeDefinition","UnionType","UnorderedGroup","UntilToken","ValueLiteral","Wildcard"]}computeIsSubtype(e,r){switch(e){case pN:case mN:case gN:case yN:case xN:case bN:case TN:case kN:case EN:case CN:case _N:case LN:case NN:case MN:case IN:case ON:case BN:return this.isSubtype(GD,r);case $D:case tN:case uN:return this.isSubtype(vT,r);case VD:case sN:case cN:case fN:return this.isSubtype(zD,r);case HD:return this.isSubtype(yT,r)||this.isSubtype(vT,r);case YD:case XD:case JD:case nN:return this.isSubtype(yT,r);case QD:case ZD:case hN:return this.isSubtype(Uv,r);case aN:return this.isSubtype(Vv,r)||this.isSubtype(Uv,r);case xT:return this.isSubtype(Vv,r);default:return!1}}getReferenceType(e){let r=`${e.container.$type}:${e.property}`;switch(r){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return Uv;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return Vv;case"Grammar:usedGrammars":return KD;case"NamedArgument:parameter":case"ParameterReference:parameter":return rN;case"TerminalRuleCall:rule":return xT;default:throw new Error(`${r} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case"AbstractElement":return{name:"AbstractElement",properties:[{name:"cardinality"},{name:"lookahead"}]};case"ArrayLiteral":return{name:"ArrayLiteral",properties:[{name:"elements",defaultValue:[]}]};case"ArrayType":return{name:"ArrayType",properties:[{name:"elementType"}]};case"BooleanLiteral":return{name:"BooleanLiteral",properties:[{name:"true",defaultValue:!1}]};case"Conjunction":return{name:"Conjunction",properties:[{name:"left"},{name:"right"}]};case"Disjunction":return{name:"Disjunction",properties:[{name:"left"},{name:"right"}]};case"Grammar":return{name:"Grammar",properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case"GrammarImport":return{name:"GrammarImport",properties:[{name:"path"}]};case"InferredType":return{name:"InferredType",properties:[{name:"name"}]};case"Interface":return{name:"Interface",properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case"NamedArgument":return{name:"NamedArgument",properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case"Negation":return{name:"Negation",properties:[{name:"value"}]};case"NumberLiteral":return{name:"NumberLiteral",properties:[{name:"value"}]};case"Parameter":return{name:"Parameter",properties:[{name:"name"}]};case"ParameterReference":return{name:"ParameterReference",properties:[{name:"parameter"}]};case"ParserRule":return{name:"ParserRule",properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case"ReferenceType":return{name:"ReferenceType",properties:[{name:"referenceType"}]};case"ReturnType":return{name:"ReturnType",properties:[{name:"name"}]};case"SimpleType":return{name:"SimpleType",properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case"StringLiteral":return{name:"StringLiteral",properties:[{name:"value"}]};case"TerminalRule":return{name:"TerminalRule",properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case"Type":return{name:"Type",properties:[{name:"name"},{name:"type"}]};case"TypeAttribute":return{name:"TypeAttribute",properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case"UnionType":return{name:"UnionType",properties:[{name:"types",defaultValue:[]}]};case"Action":return{name:"Action",properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case"Alternatives":return{name:"Alternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"Assignment":return{name:"Assignment",properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case"CharacterRange":return{name:"CharacterRange",properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case"CrossReference":return{name:"CrossReference",properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case"EndOfFile":return{name:"EndOfFile",properties:[{name:"cardinality"},{name:"lookahead"}]};case"Group":return{name:"Group",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case"Keyword":return{name:"Keyword",properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case"NegatedToken":return{name:"NegatedToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"RegexToken":return{name:"RegexToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case"RuleCall":return{name:"RuleCall",properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"TerminalAlternatives":return{name:"TerminalAlternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalGroup":return{name:"TerminalGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalRuleCall":return{name:"TerminalRuleCall",properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"UnorderedGroup":return{name:"UnorderedGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"UntilToken":return{name:"UntilToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"Wildcard":return{name:"Wildcard",properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}},lr=new Vm});var AT={};vr(AT,{assignMandatoryProperties:()=>$N,copyAstNode:()=>GN,findLocalReferences:()=>xBe,findRootNode:()=>zae,getContainerOfType:()=>qd,getDocument:()=>Fi,hasContainerOfType:()=>vBe,linkContentToContainer:()=>CT,streamAllContents:()=>_c,streamAst:()=>jo,streamContents:()=>qv,streamReferences:()=>Um});function CT(t){for(let[e,r]of Object.entries(t))e.startsWith("$")||(Array.isArray(r)?r.forEach((n,i)=>{ei(n)&&(n.$container=t,n.$containerProperty=e,n.$containerIndex=i)}):ei(r)&&(r.$container=t,r.$containerProperty=e))}function qd(t,e){let r=t;for(;r;){if(e(r))return r;r=r.$container}}function vBe(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.$container}return!1}function Fi(t){let r=zae(t).$document;if(!r)throw new Error("AST node has no document.");return r}function zae(t){for(;t.$container;)t=t.$container;return t}function qv(t,e){if(!t)throw new Error("Node must be an AstNode.");let r=e?.range;return new ao(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),n=>{for(;n.keyIndexqv(r,e))}function jo(t,e){if(t){if(e?.range&&!zN(t,e.range))return new Cc(t,()=>[])}else throw new Error("Root node must be an AstNode.");return new Cc(t,r=>qv(r,e),{includeRoot:!0})}function zN(t,e){var r;if(!e)return!0;let n=(r=t.$cstNode)===null||r===void 0?void 0:r.range;return n?PD(n,e):!1}function Um(t){return new ao(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex{Um(n).forEach(i=>{i.reference.ref===t&&r.push(i.reference)})}),tn(r)}function $N(t,e){let r=t.getTypeMetaData(e.$type),n=e;for(let i of r.properties)i.defaultValue!==void 0&&n[i.name]===void 0&&(n[i.name]=Gae(i.defaultValue))}function Gae(t){return Array.isArray(t)?[...t.map(Gae)]:t}function GN(t,e){let r={$type:t.$type};for(let[n,i]of Object.entries(t))if(!n.startsWith("$"))if(ei(i))r[n]=GN(i,e);else if(ma(i))r[n]=e(r,n,i.$refNode,i.$refText);else if(Array.isArray(i)){let a=[];for(let s of i)ei(s)?a.push(GN(s,e)):ma(s)?a.push(e(r,n,s.$refNode,s.$refText)):a.push(s);r[n]=a}else r[n]=i;return CT(r),r}var es=M(()=>{"use strict";Yo();Rs();Ml();o(CT,"linkContentToContainer");o(qd,"getContainerOfType");o(vBe,"hasContainerOfType");o(Fi,"getDocument");o(zae,"findRootNode");o(qv,"streamContents");o(_c,"streamAllContents");o(jo,"streamAst");o(zN,"isAstNodeInRange");o(Um,"streamReferences");o(xBe,"findLocalReferences");o($N,"assignMandatoryProperties");o(Gae,"copyDefaultValue");o(GN,"copyAstNode")});function ar(t){return t.charCodeAt(0)}function _T(t,e){Array.isArray(t)?t.forEach(function(r){e.push(r)}):e.push(t)}function Hm(t,e){if(t[e]===!0)throw"duplicate flag "+e;let r=t[e];t[e]=!0}function Xd(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}function Xv(){throw Error("Internal Error - Should never get here!")}function VN(t){return t.type==="Character"}var UN=M(()=>{"use strict";o(ar,"cc");o(_T,"insertToSet");o(Hm,"addFlag");o(Xd,"ASSERT_EXISTS");o(Xv,"ASSERT_NEVER_REACH_HERE");o(VN,"isCharacter")});var jv,Kv,HN,$ae=M(()=>{"use strict";UN();jv=[];for(let t=ar("0");t<=ar("9");t++)jv.push(t);Kv=[ar("_")].concat(jv);for(let t=ar("a");t<=ar("z");t++)Kv.push(t);for(let t=ar("A");t<=ar("Z");t++)Kv.push(t);HN=[ar(" "),ar("\f"),ar(` +`),ar("\r"),ar(" "),ar("\v"),ar(" "),ar("\xA0"),ar("\u1680"),ar("\u2000"),ar("\u2001"),ar("\u2002"),ar("\u2003"),ar("\u2004"),ar("\u2005"),ar("\u2006"),ar("\u2007"),ar("\u2008"),ar("\u2009"),ar("\u200A"),ar("\u2028"),ar("\u2029"),ar("\u202F"),ar("\u205F"),ar("\u3000"),ar("\uFEFF")]});var bBe,LT,wBe,jd,Vae=M(()=>{"use strict";UN();$ae();bBe=/[0-9a-fA-F]/,LT=/[0-9]/,wBe=/[1-9]/,jd=class{static{o(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let r=this.disjunction();this.consumeChar("/");let n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Hm(n,"global");break;case"i":Hm(n,"ignoreCase");break;case"m":Hm(n,"multiLine");break;case"u":Hm(n,"unicode");break;case"y":Hm(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:r,loc:this.loc(0)}}disjunction(){let e=[],r=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(r)}}alternative(){let e=[],r=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(r)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break}Xd(r);let n=this.disjunction();return this.consumeChar(")"),{type:r,value:n,loc:this.loc(e)}}return Xv()}quantifier(e=!1){let r,n=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":let i=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),r={atLeast:i,atMost:a}):r={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&r===void 0)return;Xd(r);break}if(!(e===!0&&r===void 0)&&Xd(r))return this.peekChar(0)==="?"?(this.consumeChar("?"),r.greedy=!1):r.greedy=!0,r.type="Quantifier",r.loc=this.loc(n),r}atom(){let e,r=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Xd(e)?(e.loc=this.loc(r),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):Xv()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[ar(` +`),ar("\r"),ar("\u2028"),ar("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,r=!1;switch(this.popChar()){case"d":e=jv;break;case"D":e=jv,r=!0;break;case"s":e=HN;break;case"S":e=HN,r=!0;break;case"w":e=Kv;break;case"W":e=Kv,r=!0;break}return Xd(e)?{type:"Set",value:e,complement:r}:Xv()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=ar("\f");break;case"n":e=ar(` +`);break;case"r":e=ar("\r");break;case"t":e=ar(" ");break;case"v":e=ar("\v");break}return Xd(e)?{type:"Character",value:e}:Xv()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:ar("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let e=this.popChar();return{type:"Character",value:ar(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case` +`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:let e=this.popChar();return{type:"Character",value:ar(e)}}}characterClass(){let e=[],r=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),r=!0);this.isClassAtom();){let n=this.classAtom(),i=n.type==="Character";if(VN(n)&&this.isRangeDash()){this.consumeChar("-");let a=this.classAtom(),s=a.type==="Character";if(VN(a)){if(a.value=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}}});var Lc,Uae=M(()=>{"use strict";Lc=class{static{o(this,"BaseRegExpVisitor")}visitChildren(e){for(let r in e){let n=e[r];e.hasOwnProperty(r)&&(n.type!==void 0?this.visit(n):Array.isArray(n)&&n.forEach(i=>{this.visit(i)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}});var Qv=M(()=>{"use strict";Vae();Uae()});var NT={};vr(NT,{NEWLINE_REGEXP:()=>YN,escapeRegExp:()=>Qd,getCaseInsensitivePattern:()=>XN,getTerminalParts:()=>TBe,isMultilineComment:()=>qN,isWhitespace:()=>DT,partialMatches:()=>jN,partialRegExp:()=>Wae});function TBe(t){try{typeof t!="string"&&(t=t.source),t=`/${t}/`;let e=Hae.pattern(t),r=[];for(let n of e.value.value)Kd.reset(t),Kd.visit(n),r.push({start:Kd.startRegexp,end:Kd.endRegex});return r}catch{return[]}}function qN(t){try{return typeof t=="string"&&(t=new RegExp(t)),t=t.toString(),Kd.reset(t),Kd.visit(Hae.pattern(t)),Kd.multiline}catch{return!1}}function DT(t){return(typeof t=="string"?new RegExp(t):t).test(" ")}function Qd(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function XN(t){return Array.prototype.map.call(t,e=>/\w/.test(e)?`[${e.toLowerCase()}${e.toUpperCase()}]`:Qd(e)).join("")}function jN(t,e){let r=Wae(t),n=e.match(r);return!!n&&n[0].length>0}function Wae(t){typeof t=="string"&&(t=new RegExp(t));let e=t,r=t.source,n=0;function i(){let a="",s;function l(h){a+=r.substr(n,h),n+=h}o(l,"appendRaw");function u(h){a+="(?:"+r.substr(n,h)+"|$)",n+=h}for(o(u,"appendOptional");n",n)-n+1);break;default:u(2);break}break;case"[":s=/\[(?:\\.|.)*?\]/g,s.lastIndex=n,s=s.exec(r)||[],u(s[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":l(1);break;case"{":s=/\{\d+,?\d*\}/g,s.lastIndex=n,s=s.exec(r),s?l(s[0].length):u(1);break;case"(":if(r[n+1]==="?")switch(r[n+2]){case":":a+="(?:",n+=3,a+=i()+"|$)";break;case"=":a+="(?=",n+=3,a+=i()+")";break;case"!":s=n,n+=3,i(),a+=r.substr(s,n-s);break;case"<":switch(r[n+3]){case"=":case"!":s=n,n+=4,i(),a+=r.substr(s,n-s);break;default:l(r.indexOf(">",n)-n+1),a+=i()+"|$)";break}break}else l(1),a+=i()+"|$)";break;case")":return++n,a;default:u(1);break}return a}return o(i,"process"),new RegExp(i(),t.flags)}var YN,Hae,WN,Kd,Wm=M(()=>{"use strict";Qv();YN=/\r?\n/gm,Hae=new jd,WN=class extends Lc{static{o(this,"TerminalRegExpVisitor")}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){let r=String.fromCharCode(e.value);if(!this.multiline&&r===` +`&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let n=Qd(r);this.endRegexpStack.push(n),this.isStarting&&(this.startRegexp+=n)}}visitSet(e){if(!this.multiline){let r=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(r);this.multiline=!!` +`.match(n)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let r=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitChildren(e){e.type==="Group"&&e.quantifier||super.visitChildren(e)}},Kd=new WN;o(TBe,"getTerminalParts");o(qN,"isMultilineComment");o(DT,"isWhitespace");o(Qd,"escapeRegExp");o(XN,"getCaseInsensitivePattern");o(jN,"partialMatches");o(Wae,"partialRegExp")});var MT={};vr(MT,{findAssignment:()=>iR,findNameAssignment:()=>RT,findNodeForKeyword:()=>rR,findNodeForProperty:()=>Jv,findNodesForKeyword:()=>kBe,findNodesForKeywordInternal:()=>nR,findNodesForProperty:()=>eR,getActionAtElement:()=>Kae,getActionType:()=>Zae,getAllReachableRules:()=>Zv,getCrossReferenceTerminal:()=>ZN,getEntryRule:()=>Yae,getExplicitRuleType:()=>aR,getHiddenRules:()=>qae,getRuleType:()=>sR,getTypeName:()=>Zd,isArrayCardinality:()=>SBe,isArrayOperator:()=>CBe,isCommentTerminal:()=>JN,isDataType:()=>ABe,isDataTypeRule:()=>e2,isOptionalCardinality:()=>EBe,terminalRegex:()=>Ym});function Yae(t){return t.rules.find(e=>Ma(e)&&e.entry)}function qae(t){return t.rules.filter(e=>qo(e)&&e.hidden)}function Zv(t,e){let r=new Set,n=Yae(t);if(!n)return new Set(t.rules);let i=[n].concat(qae(t));for(let s of i)Xae(s,r,e);let a=new Set;for(let s of t.rules)(r.has(s.name)||qo(s)&&s.hidden)&&a.add(s);return a}function Xae(t,e,r){e.add(t.name),_c(t).forEach(n=>{if(Ol(n)||r&&ET(n)){let i=n.rule.ref;i&&!e.has(i.name)&&Xae(i,e,r)}})}function ZN(t){if(t.terminal)return t.terminal;if(t.type.ref){let e=RT(t.type.ref);return e?.terminal}}function JN(t){return t.hidden&&!Ym(t).test(" ")}function eR(t,e){return!t||!e?[]:tR(t,e,t.astNode,!0)}function Jv(t,e,r){if(!t||!e)return;let n=tR(t,e,t.astNode,!0);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}function tR(t,e,r,n){if(!n){let i=qd(t.grammarSource,Il);if(i&&i.feature===e)return[t]}return io(t)&&t.astNode===r?t.content.flatMap(i=>tR(i,e,r,!1)):[]}function kBe(t,e){return t?nR(t,e,t?.astNode):[]}function rR(t,e,r){if(!t)return;let n=nR(t,e,t?.astNode);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}function nR(t,e,r){if(t.astNode!==r)return[];if(Xo(t.grammarSource)&&t.grammarSource.value===e)return[t];let n=Ud(t).iterator(),i,a=[];do if(i=n.next(),!i.done){let s=i.value;s.astNode===r?Xo(s.grammarSource)&&s.grammarSource.value===e&&a.push(s):n.prune()}while(!i.done);return a}function iR(t){var e;let r=t.astNode;for(;r===((e=t.container)===null||e===void 0?void 0:e.astNode);){let n=qd(t.grammarSource,Il);if(n)return n;t=t.container}}function RT(t){let e=t;return bT(e)&&(Ru(e.$container)?e=e.$container.$container:Ma(e.$container)?e=e.$container:ef(e.$container)),jae(t,e,new Map)}function jae(t,e,r){var n;function i(a,s){let l;return qd(a,Il)||(l=jae(s,s,r)),r.set(t,l),l}if(o(i,"go"),r.has(t))return r.get(t);r.set(t,void 0);for(let a of _c(e)){if(Il(a)&&a.feature.toLowerCase()==="name")return r.set(t,a),a;if(Ol(a)&&Ma(a.rule.ref))return i(a,a.rule.ref);if(TT(a)&&(!((n=a.typeRef)===null||n===void 0)&&n.ref))return i(a,a.typeRef.ref)}}function Kae(t){let e=t.$container;if(tf(e)){let r=e.elements,n=r.indexOf(t);for(let i=n-1;i>=0;i--){let a=r[i];if(Ru(a))return a;{let s=_c(r[i]).find(Ru);if(s)return s}}}if(Hv(e))return Kae(e)}function EBe(t,e){return t==="?"||t==="*"||tf(e)&&!!e.guardCondition}function SBe(t){return t==="*"||t==="+"}function CBe(t){return t==="+="}function e2(t){return Qae(t,new Set)}function Qae(t,e){if(e.has(t))return!0;e.add(t);for(let r of _c(t))if(Ol(r)){if(!r.rule.ref||Ma(r.rule.ref)&&!Qae(r.rule.ref,e))return!1}else{if(Il(r))return!1;if(Ru(r))return!1}return!!t.definition}function ABe(t){return QN(t.type,new Set)}function QN(t,e){if(e.has(t))return!0;if(e.add(t),UD(t))return!1;if(oN(t))return!1;if(dN(t))return t.types.every(r=>QN(r,e));if(TT(t)){if(t.primitiveType!==void 0)return!0;if(t.stringType!==void 0)return!0;if(t.typeRef!==void 0){let r=t.typeRef.ref;return Wv(r)?QN(r.type,e):!1}else return!1}else return!1}function aR(t){if(t.inferredType)return t.inferredType.name;if(t.dataType)return t.dataType;if(t.returnType){let e=t.returnType.ref;if(e){if(Ma(e))return e.name;if(wT(e)||Wv(e))return e.name}}}function Zd(t){var e;if(Ma(t))return e2(t)?t.name:(e=aR(t))!==null&&e!==void 0?e:t.name;if(wT(t)||Wv(t)||lN(t))return t.name;if(Ru(t)){let r=Zae(t);if(r)return r}else if(bT(t))return t.name;throw new Error("Cannot get name of Unknown Type")}function Zae(t){var e;if(t.inferredType)return t.inferredType.name;if(!((e=t.type)===null||e===void 0)&&e.ref)return Zd(t.type.ref)}function sR(t){var e,r,n;return qo(t)?(r=(e=t.type)===null||e===void 0?void 0:e.name)!==null&&r!==void 0?r:"string":e2(t)?t.name:(n=aR(t))!==null&&n!==void 0?n:t.name}function Ym(t){let e={s:!1,i:!1,u:!1},r=qm(t.definition,e),n=Object.entries(e).filter(([,i])=>i).map(([i])=>i).join("");return new RegExp(r,n)}function qm(t,e){if(DN(t))return _Be(t);if(RN(t))return LBe(t);if(vN(t))return RBe(t);if(ET(t)){let r=t.rule.ref;if(!r)throw new Error("Missing rule reference.");return Mu(qm(r.definition),{cardinality:t.cardinality,lookahead:t.lookahead})}else{if(SN(t))return NBe(t);if(PN(t))return DBe(t);if(AN(t)){let r=t.regex.lastIndexOf("/"),n=t.regex.substring(1,r),i=t.regex.substring(r+1);return e&&(e.i=i.includes("i"),e.s=i.includes("s"),e.u=i.includes("u")),Mu(n,{cardinality:t.cardinality,lookahead:t.lookahead,wrap:!1})}else{if(FN(t))return Mu(oR,{cardinality:t.cardinality,lookahead:t.lookahead});throw new Error(`Invalid terminal element: ${t?.$type}`)}}}function _Be(t){return Mu(t.elements.map(e=>qm(e)).join("|"),{cardinality:t.cardinality,lookahead:t.lookahead})}function LBe(t){return Mu(t.elements.map(e=>qm(e)).join(""),{cardinality:t.cardinality,lookahead:t.lookahead})}function DBe(t){return Mu(`${oR}*?${qm(t.terminal)}`,{cardinality:t.cardinality,lookahead:t.lookahead})}function NBe(t){return Mu(`(?!${qm(t.terminal)})${oR}*?`,{cardinality:t.cardinality,lookahead:t.lookahead})}function RBe(t){return t.right?Mu(`[${KN(t.left)}-${KN(t.right)}]`,{cardinality:t.cardinality,lookahead:t.lookahead,wrap:!1}):Mu(KN(t.left),{cardinality:t.cardinality,lookahead:t.lookahead,wrap:!1})}function KN(t){return Qd(t.value)}function Mu(t,e){var r;return(e.wrap!==!1||e.lookahead)&&(t=`(${(r=e.lookahead)!==null&&r!==void 0?r:""}${t})`),e.cardinality?`${t}${e.cardinality}`:t}var oR,Pl=M(()=>{"use strict";gT();Ac();Yo();es();Ml();Wm();o(Yae,"getEntryRule");o(qae,"getHiddenRules");o(Zv,"getAllReachableRules");o(Xae,"ruleDfs");o(ZN,"getCrossReferenceTerminal");o(JN,"isCommentTerminal");o(eR,"findNodesForProperty");o(Jv,"findNodeForProperty");o(tR,"findNodesForPropertyInternal");o(kBe,"findNodesForKeyword");o(rR,"findNodeForKeyword");o(nR,"findNodesForKeywordInternal");o(iR,"findAssignment");o(RT,"findNameAssignment");o(jae,"findNameAssignmentInternal");o(Kae,"getActionAtElement");o(EBe,"isOptionalCardinality");o(SBe,"isArrayCardinality");o(CBe,"isArrayOperator");o(e2,"isDataTypeRule");o(Qae,"isDataTypeRuleInternal");o(ABe,"isDataType");o(QN,"isDataTypeInternal");o(aR,"getExplicitRuleType");o(Zd,"getTypeName");o(Zae,"getActionType");o(sR,"getRuleType");o(Ym,"terminalRegex");oR=/[\s\S]/.source;o(qm,"abstractElementToRegex");o(_Be,"terminalAlternativesToRegex");o(LBe,"terminalGroupToRegex");o(DBe,"untilTokenToRegex");o(NBe,"negateTokenToRegex");o(RBe,"characterRangeToRegex");o(KN,"keywordToRegex");o(Mu,"withCardinality")});function lR(t){let e=[],r=t.Grammar;for(let n of r.rules)qo(n)&&JN(n)&&qN(Ym(n))&&e.push(n.name);return{multilineCommentRules:e,nameRegexp:pT}}var cR=M(()=>{"use strict";Ml();Pl();Wm();Ac();o(lR,"createGrammarConfig")});var uR=M(()=>{"use strict"});function Xm(t){console&&console.error&&console.error(`Error: ${t}`)}function t2(t){console&&console.warn&&console.warn(`Warning: ${t}`)}var Jae=M(()=>{"use strict";o(Xm,"PRINT_ERROR");o(t2,"PRINT_WARNING")});function r2(t){let e=new Date().getTime(),r=t();return{time:new Date().getTime()-e,value:r}}var ese=M(()=>{"use strict";o(r2,"timer")});function n2(t){function e(){}o(e,"FakeConstructor"),e.prototype=t;let r=new e;function n(){return typeof r.bar}return o(n,"fakeAccess"),n(),n(),t;(0,eval)(t)}var tse=M(()=>{"use strict";o(n2,"toFastProperties")});var jm=M(()=>{"use strict";Jae();ese();tse()});function MBe(t){return IBe(t)?t.LABEL:t.name}function IBe(t){return gi(t.LABEL)&&t.LABEL!==""}function IT(t){return Je(t,Km)}function Km(t){function e(r){return Je(r,Km)}if(o(e,"convertDefinition"),t instanceof nn){let r={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return gi(t.label)&&(r.label=t.label),r}else{if(t instanceof Cn)return{type:"Alternative",definition:e(t.definition)};if(t instanceof an)return{type:"Option",idx:t.idx,definition:e(t.definition)};if(t instanceof An)return{type:"RepetitionMandatory",idx:t.idx,definition:e(t.definition)};if(t instanceof _n)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:Km(new kr({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof vn)return{type:"RepetitionWithSeparator",idx:t.idx,separator:Km(new kr({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof Lr)return{type:"Repetition",idx:t.idx,definition:e(t.definition)};if(t instanceof xn)return{type:"Alternation",idx:t.idx,definition:e(t.definition)};if(t instanceof kr){let r={type:"Terminal",name:t.terminalType.name,label:MBe(t.terminalType),idx:t.idx};gi(t.label)&&(r.terminalLabel=t.label);let n=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(r.pattern=Vo(n)?n.source:n),r}else{if(t instanceof ts)return{type:"Rule",name:t.name,orgText:t.orgText,definition:e(t.definition)};throw Error("non exhaustive match")}}}var so,nn,ts,Cn,an,An,_n,Lr,vn,xn,kr,OT=M(()=>{"use strict";Ht();o(MBe,"tokenLabel");o(IBe,"hasTokenLabel");so=class{static{o(this,"AbstractProduction")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),Ce(this.definition,r=>{r.accept(e)})}},nn=class extends so{static{o(this,"NonTerminal")}constructor(e){super([]),this.idx=1,ha(this,Ds(e,r=>r!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}},ts=class extends so{static{o(this,"Rule")}constructor(e){super(e.definition),this.orgText="",ha(this,Ds(e,r=>r!==void 0))}},Cn=class extends so{static{o(this,"Alternative")}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,ha(this,Ds(e,r=>r!==void 0))}},an=class extends so{static{o(this,"Option")}constructor(e){super(e.definition),this.idx=1,ha(this,Ds(e,r=>r!==void 0))}},An=class extends so{static{o(this,"RepetitionMandatory")}constructor(e){super(e.definition),this.idx=1,ha(this,Ds(e,r=>r!==void 0))}},_n=class extends so{static{o(this,"RepetitionMandatoryWithSeparator")}constructor(e){super(e.definition),this.idx=1,ha(this,Ds(e,r=>r!==void 0))}},Lr=class extends so{static{o(this,"Repetition")}constructor(e){super(e.definition),this.idx=1,ha(this,Ds(e,r=>r!==void 0))}},vn=class extends so{static{o(this,"RepetitionWithSeparator")}constructor(e){super(e.definition),this.idx=1,ha(this,Ds(e,r=>r!==void 0))}},xn=class extends so{static{o(this,"Alternation")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,ha(this,Ds(e,r=>r!==void 0))}},kr=class{static{o(this,"Terminal")}constructor(e){this.idx=1,ha(this,Ds(e,r=>r!==void 0))}accept(e){e.visit(this)}};o(IT,"serializeGrammar");o(Km,"serializeProduction")});var rs,rse=M(()=>{"use strict";OT();rs=class{static{o(this,"GAstVisitor")}visit(e){let r=e;switch(r.constructor){case nn:return this.visitNonTerminal(r);case Cn:return this.visitAlternative(r);case an:return this.visitOption(r);case An:return this.visitRepetitionMandatory(r);case _n:return this.visitRepetitionMandatoryWithSeparator(r);case vn:return this.visitRepetitionWithSeparator(r);case Lr:return this.visitRepetition(r);case xn:return this.visitAlternation(r);case kr:return this.visitTerminal(r);case ts:return this.visitRule(r);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}});function hR(t){return t instanceof Cn||t instanceof an||t instanceof Lr||t instanceof An||t instanceof _n||t instanceof vn||t instanceof kr||t instanceof ts}function Jd(t,e=[]){return t instanceof an||t instanceof Lr||t instanceof vn?!0:t instanceof xn?Rv(t.definition,n=>Jd(n,e)):t instanceof nn&&Hn(e,t)?!1:t instanceof so?(t instanceof nn&&e.push(t),Ra(t.definition,n=>Jd(n,e))):!1}function fR(t){return t instanceof xn}function Ms(t){if(t instanceof nn)return"SUBRULE";if(t instanceof an)return"OPTION";if(t instanceof xn)return"OR";if(t instanceof An)return"AT_LEAST_ONE";if(t instanceof _n)return"AT_LEAST_ONE_SEP";if(t instanceof vn)return"MANY_SEP";if(t instanceof Lr)return"MANY";if(t instanceof kr)return"CONSUME";throw Error("non exhaustive match")}var nse=M(()=>{"use strict";Ht();OT();o(hR,"isSequenceProd");o(Jd,"isOptionalProd");o(fR,"isBranchingProd");o(Ms,"getProductionDslName")});var ns=M(()=>{"use strict";OT();rse();nse()});function ise(t,e,r){return[new an({definition:[new kr({terminalType:t.separator})].concat(t.definition)})].concat(e,r)}var Iu,PT=M(()=>{"use strict";Ht();ns();Iu=class{static{o(this,"RestWalker")}walk(e,r=[]){Ce(e.definition,(n,i)=>{let a=mi(e.definition,i+1);if(n instanceof nn)this.walkProdRef(n,a,r);else if(n instanceof kr)this.walkTerminal(n,a,r);else if(n instanceof Cn)this.walkFlat(n,a,r);else if(n instanceof an)this.walkOption(n,a,r);else if(n instanceof An)this.walkAtLeastOne(n,a,r);else if(n instanceof _n)this.walkAtLeastOneSep(n,a,r);else if(n instanceof vn)this.walkManySep(n,a,r);else if(n instanceof Lr)this.walkMany(n,a,r);else if(n instanceof xn)this.walkOr(n,a,r);else throw Error("non exhaustive match")})}walkTerminal(e,r,n){}walkProdRef(e,r,n){}walkFlat(e,r,n){let i=r.concat(n);this.walk(e,i)}walkOption(e,r,n){let i=r.concat(n);this.walk(e,i)}walkAtLeastOne(e,r,n){let i=[new an({definition:e.definition})].concat(r,n);this.walk(e,i)}walkAtLeastOneSep(e,r,n){let i=ise(e,r,n);this.walk(e,i)}walkMany(e,r,n){let i=[new an({definition:e.definition})].concat(r,n);this.walk(e,i)}walkManySep(e,r,n){let i=ise(e,r,n);this.walk(e,i)}walkOr(e,r,n){let i=r.concat(n);Ce(e.definition,a=>{let s=new Cn({definition:[a]});this.walk(s,i)})}};o(ise,"restForRepetitionWithSeparator")});function e0(t){if(t instanceof nn)return e0(t.referencedRule);if(t instanceof kr)return BBe(t);if(hR(t))return OBe(t);if(fR(t))return PBe(t);throw Error("non exhaustive match")}function OBe(t){let e=[],r=t.definition,n=0,i=r.length>n,a,s=!0;for(;i&&s;)a=r[n],s=Jd(a),e=e.concat(e0(a)),n=n+1,i=r.length>n;return Om(e)}function PBe(t){let e=Je(t.definition,r=>e0(r));return Om(Wr(e))}function BBe(t){return[t.terminalType]}var dR=M(()=>{"use strict";Ht();ns();o(e0,"first");o(OBe,"firstForSequence");o(PBe,"firstForBranching");o(BBe,"firstForTerminal")});var BT,pR=M(()=>{"use strict";BT="_~IN~_"});function ase(t){let e={};return Ce(t,r=>{let n=new mR(r).startWalking();ha(e,n)}),e}function FBe(t,e){return t.name+e+BT}var mR,sse=M(()=>{"use strict";PT();dR();Ht();pR();ns();mR=class extends Iu{static{o(this,"ResyncFollowsWalker")}constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,r,n){}walkProdRef(e,r,n){let i=FBe(e.referencedRule,e.idx)+this.topProd.name,a=r.concat(n),s=new Cn({definition:a}),l=e0(s);this.follows[i]=l}};o(ase,"computeAllProdsFollows");o(FBe,"buildBetweenProdsFollowPrefix")});function Qm(t){let e=t.toString();if(FT.hasOwnProperty(e))return FT[e];{let r=zBe.pattern(e);return FT[e]=r,r}}function ose(){FT={}}var FT,zBe,zT=M(()=>{"use strict";Qv();FT={},zBe=new jd;o(Qm,"getRegExpAst");o(ose,"clearRegExpParserCache")});function use(t,e=!1){try{let r=Qm(t);return gR(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===cse)e&&t2(`${i2} Unable to optimize: < ${t.toString()} > + Complement Sets cannot be automatically optimized. + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n="";e&&(n=` + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Xm(`${i2} + Failed parsing: < ${t.toString()} > + Using the @chevrotain/regexp-to-ast library + Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function gR(t,e,r){switch(t.type){case"Disjunction":for(let i=0;i{if(typeof u=="number")GT(u,e,r);else{let h=u;if(r===!0)for(let f=h.from;f<=h.to;f++)GT(f,e,r);else{for(let f=h.from;f<=h.to&&f=Zm){let f=h.from>=Zm?h.from:Zm,d=h.to,p=Dc(f),m=Dc(d);for(let g=p;g<=m;g++)e[g]=g}}}});break;case"Group":gR(s.value,e,r);break;default:throw Error("Non Exhaustive Match")}let l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&yR(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return br(e)}function GT(t,e,r){let n=Dc(t);e[n]=n,r===!0&&GBe(t,e)}function GBe(t,e){let r=String.fromCharCode(t),n=r.toUpperCase();if(n!==r){let i=Dc(n.charCodeAt(0));e[i]=i}else{let i=r.toLowerCase();if(i!==r){let a=Dc(i.charCodeAt(0));e[a]=a}}}function lse(t,e){return Za(t.value,r=>{if(typeof r=="number")return Hn(e,r);{let n=r;return Za(e,i=>n.from<=i&&i<=n.to)!==void 0}})}function yR(t){let e=t.quantifier;return e&&e.atLeast===0?!0:t.value?Mt(t.value)?Ra(t.value,yR):yR(t.value):!1}function $T(t,e){if(e instanceof RegExp){let r=Qm(e),n=new vR(t);return n.visit(r),n.found}else return Za(e,r=>Hn(t,r.charCodeAt(0)))!==void 0}var cse,i2,vR,hse=M(()=>{"use strict";Qv();Ht();jm();zT();xR();cse="Complement Sets are not supported for first char optimization",i2=`Unable to use "first char" lexer optimizations: +`;o(use,"getOptimizedStartCodesIndices");o(gR,"firstCharOptimizedIndices");o(GT,"addOptimizedIdxToResult");o(GBe,"handleIgnoreCase");o(lse,"findCode");o(yR,"isWholeOptional");vR=class extends Lc{static{o(this,"CharCodeFinder")}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return}super.visitChildren(e)}}visitCharacter(e){Hn(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?lse(e,this.targetCharCodes)===void 0&&(this.found=!0):lse(e,this.targetCharCodes)!==void 0&&(this.found=!0)}};o($T,"canMatchCharCode")});function pse(t,e){e=qh(e,{useSticky:wR,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` +`],tracer:o((b,w)=>w(),"tracer")});let r=e.tracer;r("initCharCodeToOptimizedIndexMap",()=>{iFe()});let n;r("Reject Lexer.NA",()=>{n=jh(t,b=>b[t0]===oi.NA)});let i=!1,a;r("Transform Patterns",()=>{i=!1,a=Je(n,b=>{let w=b[t0];if(Vo(w)){let _=w.source;return _.length===1&&_!=="^"&&_!=="$"&&_!=="."&&!w.ignoreCase?_:_.length===2&&_[0]==="\\"&&!Hn(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],_[1])?_[1]:e.useSticky?dse(w):fse(w)}else{if(Ei(w))return i=!0,{exec:w};if(typeof w=="object")return i=!0,w;if(typeof w=="string"){if(w.length===1)return w;{let _=w.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),T=new RegExp(_);return e.useSticky?dse(T):fse(T)}}else throw Error("non exhaustive match")}})});let s,l,u,h,f;r("misc mapping",()=>{s=Je(n,b=>b.tokenTypeIdx),l=Je(n,b=>{let w=b.GROUP;if(w!==oi.SKIPPED){if(gi(w))return w;if(dr(w))return!1;throw Error("non exhaustive match")}}),u=Je(n,b=>{let w=b.LONGER_ALT;if(w)return Mt(w)?Je(w,T=>jw(n,T)):[jw(n,w)]}),h=Je(n,b=>b.PUSH_MODE),f=Je(n,b=>It(b,"POP_MODE"))});let d;r("Line Terminator Handling",()=>{let b=Tse(e.lineTerminatorCharacters);d=Je(n,w=>!1),e.positionTracking!=="onlyOffset"&&(d=Je(n,w=>It(w,"LINE_BREAKS")?!!w.LINE_BREAKS:wse(w,b)===!1&&$T(b,w.PATTERN)))});let p,m,g,y;r("Misc Mapping #2",()=>{p=Je(n,xse),m=Je(a,rFe),g=qr(n,(b,w)=>{let _=w.GROUP;return gi(_)&&_!==oi.SKIPPED&&(b[_]=[]),b},{}),y=Je(a,(b,w)=>({pattern:a[w],longerAlt:u[w],canLineTerminator:d[w],isCustom:p[w],short:m[w],group:l[w],push:h[w],pop:f[w],tokenTypeIdx:s[w],tokenType:n[w]}))});let v=!0,x=[];return e.safeMode||r("First Char Optimization",()=>{x=qr(n,(b,w,_)=>{if(typeof w.PATTERN=="string"){let T=w.PATTERN.charCodeAt(0),E=Dc(T);bR(b,E,y[_])}else if(Mt(w.START_CHARS_HINT)){let T;Ce(w.START_CHARS_HINT,E=>{let L=typeof E=="string"?E.charCodeAt(0):E,C=Dc(L);T!==C&&(T=C,bR(b,C,y[_]))})}else if(Vo(w.PATTERN))if(w.PATTERN.unicode)v=!1,e.ensureOptimizations&&Xm(`${i2} Unable to analyze < ${w.PATTERN.toString()} > pattern. + The regexp unicode flag is not currently supported by the regexp-to-ast library. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let T=use(w.PATTERN,e.ensureOptimizations);cr(T)&&(v=!1),Ce(T,E=>{bR(b,E,y[_])})}else e.ensureOptimizations&&Xm(`${i2} TokenType: <${w.name}> is using a custom token pattern without providing parameter. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),v=!1;return b},[])}),{emptyGroups:g,patternIdxToConfig:y,charCodeToPatternIdxToConfig:x,hasCustom:i,canBeOptimized:v}}function mse(t,e){let r=[],n=VBe(t);r=r.concat(n.errors);let i=UBe(n.valid),a=i.valid;return r=r.concat(i.errors),r=r.concat($Be(a)),r=r.concat(QBe(a)),r=r.concat(ZBe(a,e)),r=r.concat(JBe(a)),r}function $Be(t){let e=[],r=Yr(t,n=>Vo(n[t0]));return e=e.concat(WBe(r)),e=e.concat(XBe(r)),e=e.concat(jBe(r)),e=e.concat(KBe(r)),e=e.concat(YBe(r)),e}function VBe(t){let e=Yr(t,i=>!It(i,t0)),r=Je(e,i=>({message:"Token Type: ->"+i.name+"<- missing static 'PATTERN' property",type:Wn.MISSING_PATTERN,tokenTypes:[i]})),n=Xh(t,e);return{errors:r,valid:n}}function UBe(t){let e=Yr(t,i=>{let a=i[t0];return!Vo(a)&&!Ei(a)&&!It(a,"exec")&&!gi(a)}),r=Je(e,i=>({message:"Token Type: ->"+i.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Wn.INVALID_PATTERN,tokenTypes:[i]})),n=Xh(t,e);return{errors:r,valid:n}}function WBe(t){class e extends Lc{static{o(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(a){this.found=!0}}let r=Yr(t,i=>{let a=i.PATTERN;try{let s=Qm(a),l=new e;return l.visit(s),l.found}catch{return HBe.test(a.source)}});return Je(r,i=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain end of input anchor '$' + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Wn.EOI_ANCHOR_FOUND,tokenTypes:[i]}))}function YBe(t){let e=Yr(t,n=>n.PATTERN.test(""));return Je(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:Wn.EMPTY_MATCH_PATTERN,tokenTypes:[n]}))}function XBe(t){class e extends Lc{static{o(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(a){this.found=!0}}let r=Yr(t,i=>{let a=i.PATTERN;try{let s=Qm(a),l=new e;return l.visit(s),l.found}catch{return qBe.test(a.source)}});return Je(r,i=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+i.name+`<- static 'PATTERN' cannot contain start of input anchor '^' + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Wn.SOI_ANCHOR_FOUND,tokenTypes:[i]}))}function jBe(t){let e=Yr(t,n=>{let i=n[t0];return i instanceof RegExp&&(i.multiline||i.global)});return Je(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Wn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[n]}))}function KBe(t){let e=[],r=Je(t,a=>qr(t,(s,l)=>(a.PATTERN.source===l.PATTERN.source&&!Hn(e,l)&&l.PATTERN!==oi.NA&&(e.push(l),s.push(l)),s),[]));r=Tc(r);let n=Yr(r,a=>a.length>1);return Je(n,a=>{let s=Je(a,u=>u.name);return{message:`The same RegExp pattern ->${ra(a).PATTERN}<-has been used in all of the following Token Types: ${s.join(", ")} <-`,type:Wn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}})}function QBe(t){let e=Yr(t,n=>{if(!It(n,"GROUP"))return!1;let i=n.GROUP;return i!==oi.SKIPPED&&i!==oi.NA&&!gi(i)});return Je(e,n=>({message:"Token Type: ->"+n.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Wn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[n]}))}function ZBe(t,e){let r=Yr(t,i=>i.PUSH_MODE!==void 0&&!Hn(e,i.PUSH_MODE));return Je(r,i=>({message:`Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`,type:Wn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[i]}))}function JBe(t){let e=[],r=qr(t,(n,i,a)=>{let s=i.PATTERN;return s===oi.NA||(gi(s)?n.push({str:s,idx:a,tokenType:i}):Vo(s)&&tFe(s)&&n.push({str:s.source,idx:a,tokenType:i})),n},[]);return Ce(t,(n,i)=>{Ce(r,({str:a,idx:s,tokenType:l})=>{if(i${l.name}<- can never be matched. +Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition. +See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;e.push({message:u,type:Wn.UNREACHABLE_PATTERN,tokenTypes:[n,l]})}})}),e}function eFe(t,e){if(Vo(e)){let r=e.exec(t);return r!==null&&r.index===0}else{if(Ei(e))return e(t,0,[],{});if(It(e,"exec"))return e.exec(t,0,[],{});if(typeof e=="string")return e===t;throw Error("non exhaustive match")}}function tFe(t){return Za([".","\\","[","]","|","^","$","(",")","?","*","+","{"],r=>t.source.indexOf(r)!==-1)===void 0}function fse(t){let e=t.ignoreCase?"i":"";return new RegExp(`^(?:${t.source})`,e)}function dse(t){let e=t.ignoreCase?"iy":"y";return new RegExp(`${t.source}`,e)}function gse(t,e,r){let n=[];return It(t,Jm)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+Jm+`> property in its definition +`,type:Wn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),It(t,VT)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+VT+`> property in its definition +`,type:Wn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),It(t,VT)&&It(t,Jm)&&!It(t.modes,t.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${Jm}: <${t.defaultMode}>which does not exist +`,type:Wn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),It(t,VT)&&Ce(t.modes,(i,a)=>{Ce(i,(s,l)=>{if(dr(s))n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${a}> at index: <${l}> +`,type:Wn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(It(s,"LONGER_ALT")){let u=Mt(s.LONGER_ALT)?s.LONGER_ALT:[s.LONGER_ALT];Ce(u,h=>{!dr(h)&&!Hn(i,h)&&n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${h.name}> on token <${s.name}> outside of mode <${a}> +`,type:Wn.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),n}function yse(t,e,r){let n=[],i=!1,a=Tc(Wr(br(t.modes))),s=jh(a,u=>u[t0]===oi.NA),l=Tse(r);return e&&Ce(s,u=>{let h=wse(u,l);if(h!==!1){let d={message:nFe(u,h),type:h.issue,tokenType:u};n.push(d)}else It(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(i=!0):$T(l,u.PATTERN)&&(i=!0)}),e&&!i&&n.push({message:`Warning: No LINE_BREAKS Found. + This Lexer has been defined to track line and column information, + But none of the Token Types can be identified as matching a line terminator. + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS + for details.`,type:Wn.NO_LINE_BREAKS_FLAGS}),n}function vse(t){let e={},r=zr(t);return Ce(r,n=>{let i=t[n];if(Mt(i))e[n]=[];else throw Error("non exhaustive match")}),e}function xse(t){let e=t.PATTERN;if(Vo(e))return!1;if(Ei(e))return!0;if(It(e,"exec"))return!0;if(gi(e))return!1;throw Error("non exhaustive match")}function rFe(t){return gi(t)&&t.length===1?t.charCodeAt(0):!1}function wse(t,e){if(It(t,"LINE_BREAKS"))return!1;if(Vo(t.PATTERN)){try{$T(e,t.PATTERN)}catch(r){return{issue:Wn.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}else{if(gi(t.PATTERN))return!1;if(xse(t))return{issue:Wn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function nFe(t,e){if(e.issue===Wn.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern. + The problem is in the <${t.name}> Token Type + Root cause: ${e.errMsg}. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(e.issue===Wn.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. + The problem is in the <${t.name}> Token Type + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function Tse(t){return Je(t,r=>gi(r)?r.charCodeAt(0):r)}function bR(t,e,r){t[e]===void 0?t[e]=[r]:t[e].push(r)}function Dc(t){return t255?255+~~(t/255):t}}var t0,Jm,VT,wR,HBe,qBe,bse,Zm,UT,xR=M(()=>{"use strict";Qv();a2();Ht();jm();hse();zT();t0="PATTERN",Jm="defaultMode",VT="modes",wR=typeof new RegExp("(?:)").sticky=="boolean";o(pse,"analyzeTokenTypes");o(mse,"validatePatterns");o($Be,"validateRegExpPattern");o(VBe,"findMissingPatterns");o(UBe,"findInvalidPatterns");HBe=/[^\\][$]/;o(WBe,"findEndOfInputAnchor");o(YBe,"findEmptyMatchRegExps");qBe=/[^\\[][\^]|^\^/;o(XBe,"findStartOfInputAnchor");o(jBe,"findUnsupportedFlags");o(KBe,"findDuplicatePatterns");o(QBe,"findInvalidGroupType");o(ZBe,"findModesThatDoNotExist");o(JBe,"findUnreachablePatterns");o(eFe,"testTokenType");o(tFe,"noMetaChar");o(fse,"addStartOfInput");o(dse,"addStickyFlag");o(gse,"performRuntimeChecks");o(yse,"performWarningRuntimeChecks");o(vse,"cloneEmptyGroups");o(xse,"isCustomPattern");o(rFe,"isShortPattern");bse={test:o(function(t){let e=t.length;for(let r=this.lastIndex;r{r.isParent=r.categoryMatches.length>0})}function aFe(t){let e=rn(t),r=t,n=!0;for(;n;){r=Tc(Wr(Je(r,a=>a.CATEGORIES)));let i=Xh(r,e);e=e.concat(i),cr(i)?n=!1:r=i}return e}function sFe(t){Ce(t,e=>{TR(e)||(Sse[kse]=e,e.tokenTypeIdx=kse++),Ese(e)&&!Mt(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),Ese(e)||(e.CATEGORIES=[]),cFe(e)||(e.categoryMatches=[]),uFe(e)||(e.categoryMatchesMap={})})}function oFe(t){Ce(t,e=>{e.categoryMatches=[],Ce(e.categoryMatchesMap,(r,n)=>{e.categoryMatches.push(Sse[n].tokenTypeIdx)})})}function lFe(t){Ce(t,e=>{Cse([],e)})}function Cse(t,e){Ce(t,r=>{e.categoryMatchesMap[r.tokenTypeIdx]=!0}),Ce(e.CATEGORIES,r=>{let n=t.concat(e);Hn(n,r)||Cse(n,r)})}function TR(t){return It(t,"tokenTypeIdx")}function Ese(t){return It(t,"CATEGORIES")}function cFe(t){return It(t,"categoryMatches")}function uFe(t){return It(t,"categoryMatchesMap")}function Ase(t){return It(t,"tokenTypeIdx")}var kse,Sse,r0=M(()=>{"use strict";Ht();o(Ou,"tokenStructuredMatcher");o(eg,"tokenStructuredMatcherNoCategories");kse=1,Sse={};o(Pu,"augmentTokenTypes");o(aFe,"expandCategories");o(sFe,"assignTokenDefaultProps");o(oFe,"assignCategoriesTokensProp");o(lFe,"assignCategoriesMapProp");o(Cse,"singleAssignCategoriesToksMap");o(TR,"hasShortKeyProperty");o(Ese,"hasCategoriesProperty");o(cFe,"hasExtendingTokensTypesProperty");o(uFe,"hasExtendingTokensTypesMapProperty");o(Ase,"isTokenType")});var kR,ER=M(()=>{"use strict";kR={buildUnableToPopLexerModeMessage(t){return`Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(t,e,r,n,i){return`unexpected character: ->${t.charAt(e)}<- at offset: ${e}, skipped ${r} characters.`}}});var Wn,s2,oi,a2=M(()=>{"use strict";xR();Ht();jm();r0();ER();zT();(function(t){t[t.MISSING_PATTERN=0]="MISSING_PATTERN",t[t.INVALID_PATTERN=1]="INVALID_PATTERN",t[t.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",t[t.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",t[t.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",t[t.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",t[t.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",t[t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",t[t.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",t[t.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",t[t.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",t[t.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",t[t.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",t[t.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",t[t.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",t[t.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",t[t.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",t[t.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(Wn||(Wn={}));s2={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` +`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:kR,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(s2);oi=class{static{o(this,"Lexer")}constructor(e,r=s2){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(i,a)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let s=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${i}>`);let{time:l,value:u}=r2(a),h=l>10?console.warn:console.log;return this.traceInitIndent time: ${l}ms`),this.traceInitIndent--,u}else return a()},typeof r=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. +a boolean 2nd argument is no longer supported`);this.config=ha({},s2,r);let n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n=="number"&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let i,a=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===s2.lineTerminatorsPattern)this.config.lineTerminatorsPattern=bse;else if(this.config.lineTerminatorCharacters===s2.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Mt(e)?i={modes:{defaultMode:rn(e)},defaultMode:Jm}:(a=!1,i=rn(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(gse(i,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(yse(i,this.trackStartLines,this.config.lineTerminatorCharacters))})),i.modes=i.modes?i.modes:{},Ce(i.modes,(l,u)=>{i.modes[u]=jh(l,h=>dr(h))});let s=zr(i.modes);if(Ce(i.modes,(l,u)=>{this.TRACE_INIT(`Mode: <${u}> processing`,()=>{if(this.modes.push(u),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(mse(l,s))}),cr(this.lexerDefinitionErrors)){Pu(l);let h;this.TRACE_INIT("analyzeTokenTypes",()=>{h=pse(l,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[u]=h.patternIdxToConfig,this.charCodeToPatternIdxToConfig[u]=h.charCodeToPatternIdxToConfig,this.emptyGroups=ha({},this.emptyGroups,h.emptyGroups),this.hasCustom=h.hasCustom||this.hasCustom,this.canModeBeOptimized[u]=h.canBeOptimized}})}),this.defaultMode=i.defaultMode,!cr(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){let u=Je(this.lexerDefinitionErrors,h=>h.message).join(`----------------------- +`);throw new Error(`Errors detected in definition of Lexer: +`+u)}Ce(this.lexerDefinitionWarning,l=>{t2(l.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(wR?(this.chopInput=ta,this.match=this.matchWithTest):(this.updateLastIndex=Jn,this.match=this.matchWithExec),a&&(this.handleModes=Jn),this.trackStartLines===!1&&(this.computeNewColumn=ta),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=Jn),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let l=qr(this.canModeBeOptimized,(u,h,f)=>(h===!1&&u.push(f),u),[]);if(r.ensureOptimizations&&!cr(l))throw Error(`Lexer Modes: < ${l.join(", ")} > cannot be optimized. + Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. + Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{ose()}),this.TRACE_INIT("toFastProperties",()=>{n2(this)})})}tokenize(e,r=this.defaultMode){if(!cr(this.lexerDefinitionErrors)){let i=Je(this.lexerDefinitionErrors,a=>a.message).join(`----------------------- +`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer: +`+i)}return this.tokenizeInternal(e,r)}tokenizeInternal(e,r){let n,i,a,s,l,u,h,f,d,p,m,g,y,v,x,b,w=e,_=w.length,T=0,E=0,L=this.hasCustom?0:Math.floor(e.length/10),C=new Array(L),A=[],I=this.trackStartLines?1:void 0,D=this.trackStartLines?1:void 0,k=vse(this.emptyGroups),R=this.trackStartLines,S=this.config.lineTerminatorsPattern,O=0,N=[],P=[],F=[],B=[];Object.freeze(B);let $;function z(){return N}o(z,"getPossiblePatternsSlow");function W(ee){let J=Dc(ee),H=P[J];return H===void 0?B:H}o(W,"getPossiblePatternsOptimized");let j=o(ee=>{if(F.length===1&&ee.tokenType.PUSH_MODE===void 0){let J=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(ee);A.push({offset:ee.startOffset,line:ee.startLine,column:ee.startColumn,length:ee.image.length,message:J})}else{F.pop();let J=fa(F);N=this.patternIdxToConfig[J],P=this.charCodeToPatternIdxToConfig[J],O=N.length;let H=this.canModeBeOptimized[J]&&this.config.safeMode===!1;P&&H?$=W:$=z}},"pop_mode");function K(ee){F.push(ee),P=this.charCodeToPatternIdxToConfig[ee],N=this.patternIdxToConfig[ee],O=N.length,O=N.length;let J=this.canModeBeOptimized[ee]&&this.config.safeMode===!1;P&&J?$=W:$=z}o(K,"push_mode"),K.call(this,r);let ie,Q=this.config.recoveryEnabled;for(;T<_;){u=null;let ee=w.charCodeAt(T),J=$(ee),H=J.length;for(n=0;nu.length){u=s,h=f,ie=ue;break}}}break}}if(u!==null){if(d=u.length,p=ie.group,p!==void 0&&(m=ie.tokenTypeIdx,g=this.createTokenInstance(u,T,m,ie.tokenType,I,D,d),this.handlePayload(g,h),p===!1?E=this.addToken(C,E,g):k[p].push(g)),e=this.chopInput(e,d),T=T+d,D=this.computeNewColumn(D,d),R===!0&&ie.canLineTerminator===!0){let q=0,Z,ae;S.lastIndex=0;do Z=S.test(u),Z===!0&&(ae=S.lastIndex-1,q++);while(Z===!0);q!==0&&(I=I+q,D=d-ae,this.updateTokenEndLineColumnLocation(g,p,ae,q,I,D,d))}this.handleModes(ie,j,K,g)}else{let q=T,Z=I,ae=D,ue=Q===!1;for(;ue===!1&&T<_;)for(e=this.chopInput(e,1),T++,i=0;i{"use strict";Ht();a2();r0();o(Bu,"tokenLabel");o(SR,"hasTokenLabel");hFe="parent",_se="categories",Lse="label",Dse="group",Nse="push_mode",Rse="pop_mode",Mse="longer_alt",Ise="line_breaks",Ose="start_chars_hint";o(HT,"createToken");o(fFe,"createTokenInternal");oo=HT({name:"EOF",pattern:oi.NA});Pu([oo]);o(n0,"createTokenInstance");o(o2,"tokenMatcher")});var Fu,Pse,Bl,tg=M(()=>{"use strict";i0();Ht();ns();Fu={buildMismatchTokenMessage({expected:t,actual:e,previous:r,ruleName:n}){return`Expecting ${SR(t)?`--> ${Bu(t)} <--`:`token of type --> ${t.name} <--`} but found --> '${e.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:t,ruleName:e}){return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage({expectedPathsPerAlt:t,actual:e,previous:r,customUserDescription:n,ruleName:i}){let a="Expecting: ",l=` +but found: '`+ra(e).image+"'";if(n)return a+n+l;{let u=qr(t,(p,m)=>p.concat(m),[]),h=Je(u,p=>`[${Je(p,m=>Bu(m)).join(", ")}]`),d=`one of these possible Token sequences: +${Je(h,(p,m)=>` ${m+1}. ${p}`).join(` +`)}`;return a+d+l}},buildEarlyExitMessage({expectedIterationPaths:t,actual:e,customUserDescription:r,ruleName:n}){let i="Expecting: ",s=` +but found: '`+ra(e).image+"'";if(r)return i+r+s;{let u=`expecting at least one iteration which starts with one of these possible Token sequences:: + <${Je(t,h=>`[${Je(h,f=>Bu(f)).join(",")}]`).join(" ,")}>`;return i+u+s}}};Object.freeze(Fu);Pse={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<- +inside top level rule: ->`+t.name+"<-"}},Bl={buildDuplicateFoundError(t,e){function r(f){return f instanceof kr?f.terminalType.name:f instanceof nn?f.nonTerminalName:""}o(r,"getExtraProductionArgument");let n=t.name,i=ra(e),a=i.idx,s=Ms(i),l=r(i),u=a>0,h=`->${s}${u?a:""}<- ${l?`with argument: ->${l}<-`:""} + appears more than once (${e.length} times) in the top level rule: ->${n}<-. + For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES + `;return h=h.replace(/[ \t]+/g," "),h=h.replace(/\s\s+/g,` +`),h},buildNamespaceConflictError(t){return`Namespace conflict found in grammar. +The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${t.name}>. +To resolve this make sure each Terminal and Non-Terminal names are unique +This is easy to accomplish by using the convention that Terminal names start with an uppercase letter +and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(t){let e=Je(t.prefixPath,i=>Bu(i)).join(", "),r=t.alternation.idx===0?"":t.alternation.idx;return`Ambiguous alternatives: <${t.ambiguityIndices.join(" ,")}> due to common lookahead prefix +in inside <${t.topLevelRule.name}> Rule, +<${e}> may appears as a prefix path in all these alternatives. +See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX +For Further details.`},buildAlternationAmbiguityError(t){let e=Je(t.prefixPath,i=>Bu(i)).join(", "),r=t.alternation.idx===0?"":t.alternation.idx,n=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(" ,")}> in inside <${t.topLevelRule.name}> Rule, +<${e}> may appears as a prefix path in all these alternatives. +`;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,n},buildEmptyRepetitionError(t){let e=Ms(t.repetition);return t.repetition.idx!==0&&(e+=t.repetition.idx),`The repetition <${e}> within Rule <${t.topLevelRule.name}> can never consume any tokens. +This could lead to an infinite loop.`},buildTokenNameError(t){return"deprecated"},buildEmptyAlternationError(t){return`Ambiguous empty alternative: <${t.emptyChoiceIdx+1}> in inside <${t.topLevelRule.name}> Rule. +Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(t){return`An Alternation cannot have more than 256 alternatives: + inside <${t.topLevelRule.name}> Rule. + has ${t.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(t){let e=t.topLevelRule.name,r=Je(t.leftRecursionPath,a=>a.name),n=`${e} --> ${r.concat([e]).join(" --> ")}`;return`Left Recursion found in grammar. +rule: <${e}> can be invoked from itself (directly or indirectly) +without consuming any Tokens. The grammar path that causes this is: + ${n} + To fix this refactor your grammar to remove the left recursion. +see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(t){return"deprecated"},buildDuplicateRuleNameError(t){let e;return t.topLevelRule instanceof ts?e=t.topLevelRule.name:e=t.topLevelRule,`Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`}}});function Bse(t,e){let r=new CR(t,e);return r.resolveRefs(),r.errors}var CR,Fse=M(()=>{"use strict";Is();Ht();ns();o(Bse,"resolveGrammar");CR=class extends rs{static{o(this,"GastRefResolverVisitor")}constructor(e,r){super(),this.nameToTopRule=e,this.errMsgProvider=r,this.errors=[]}resolveRefs(){Ce(br(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let r=this.nameToTopRule[e.nonTerminalName];if(r)e.referencedRule=r;else{let n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:n,type:zi.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}}});function XT(t,e,r=[]){r=rn(r);let n=[],i=0;function a(l){return l.concat(mi(t,i+1))}o(a,"remainingPathWith");function s(l){let u=XT(a(l),e,r);return n.concat(u)}for(o(s,"getAlternativesForProd");r.length{cr(u.definition)===!1&&(n=s(u.definition))}),n;if(l instanceof kr)r.push(l.terminalType);else throw Error("non exhaustive match")}i++}return n.push({partialPath:r,suffixDef:mi(t,i)}),n}function jT(t,e,r,n){let i="EXIT_NONE_TERMINAL",a=[i],s="EXIT_ALTERNATIVE",l=!1,u=e.length,h=u-n-1,f=[],d=[];for(d.push({idx:-1,def:t,ruleStack:[],occurrenceStack:[]});!cr(d);){let p=d.pop();if(p===s){l&&fa(d).idx<=h&&d.pop();continue}let m=p.def,g=p.idx,y=p.ruleStack,v=p.occurrenceStack;if(cr(m))continue;let x=m[0];if(x===i){let b={idx:g,def:mi(m),ruleStack:Lu(y),occurrenceStack:Lu(v)};d.push(b)}else if(x instanceof kr)if(g=0;b--){let w=x.definition[b],_={idx:g,def:w.definition.concat(mi(m)),ruleStack:y,occurrenceStack:v};d.push(_),d.push(s)}else if(x instanceof Cn)d.push({idx:g,def:x.definition.concat(mi(m)),ruleStack:y,occurrenceStack:v});else if(x instanceof ts)d.push(dFe(x,g,y,v));else throw Error("non exhaustive match")}return f}function dFe(t,e,r,n){let i=rn(r);i.push(t.name);let a=rn(n);return a.push(1),{idx:e,def:t.definition,ruleStack:i,occurrenceStack:a}}var AR,WT,rg,YT,l2,qT,c2,u2=M(()=>{"use strict";Ht();dR();PT();ns();AR=class extends Iu{static{o(this,"AbstractNextPossibleTokensWalker")}constructor(e,r){super(),this.topProd=e,this.path=r,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=rn(this.path.ruleStack).reverse(),this.occurrenceStack=rn(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,r=[]){this.found||super.walk(e,r)}walkProdRef(e,r,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let i=r.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,i)}}updateExpectedNext(){cr(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},WT=class extends AR{static{o(this,"NextAfterTokenWalker")}constructor(e,r){super(e,r),this.path=r,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,r,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let i=r.concat(n),a=new Cn({definition:i});this.possibleTokTypes=e0(a),this.found=!0}}},rg=class extends Iu{static{o(this,"AbstractNextTerminalAfterProductionWalker")}constructor(e,r){super(),this.topRule=e,this.occurrence=r,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},YT=class extends rg{static{o(this,"NextTerminalAfterManyWalker")}walkMany(e,r,n){if(e.idx===this.occurrence){let i=ra(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof kr&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkMany(e,r,n)}},l2=class extends rg{static{o(this,"NextTerminalAfterManySepWalker")}walkManySep(e,r,n){if(e.idx===this.occurrence){let i=ra(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof kr&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkManySep(e,r,n)}},qT=class extends rg{static{o(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(e,r,n){if(e.idx===this.occurrence){let i=ra(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof kr&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOne(e,r,n)}},c2=class extends rg{static{o(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(e,r,n){if(e.idx===this.occurrence){let i=ra(r.concat(n));this.result.isEndOfRule=i===void 0,i instanceof kr&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOneSep(e,r,n)}};o(XT,"possiblePathsFrom");o(jT,"nextPossibleTokensAfter");o(dFe,"expandTopLevelRule")});function h2(t){if(t instanceof an||t==="Option")return Yn.OPTION;if(t instanceof Lr||t==="Repetition")return Yn.REPETITION;if(t instanceof An||t==="RepetitionMandatory")return Yn.REPETITION_MANDATORY;if(t instanceof _n||t==="RepetitionMandatoryWithSeparator")return Yn.REPETITION_MANDATORY_WITH_SEPARATOR;if(t instanceof vn||t==="RepetitionWithSeparator")return Yn.REPETITION_WITH_SEPARATOR;if(t instanceof xn||t==="Alternation")return Yn.ALTERNATION;throw Error("non exhaustive match")}function QT(t){let{occurrence:e,rule:r,prodType:n,maxLookahead:i}=t,a=h2(n);return a===Yn.ALTERNATION?ng(e,r,i):ig(e,r,a,i)}function Gse(t,e,r,n,i,a){let s=ng(t,e,r),l=Yse(s)?eg:Ou;return a(s,n,l,i)}function $se(t,e,r,n,i,a){let s=ig(t,e,i,r),l=Yse(s)?eg:Ou;return a(s[0],l,n)}function Vse(t,e,r,n){let i=t.length,a=Ra(t,s=>Ra(s,l=>l.length===1));if(e)return function(s){let l=Je(s,u=>u.GATE);for(let u=0;uWr(u)),l=qr(s,(u,h,f)=>(Ce(h,d=>{It(u,d.tokenTypeIdx)||(u[d.tokenTypeIdx]=f),Ce(d.categoryMatches,p=>{It(u,p)||(u[p]=f)})}),u),{});return function(){let u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(let s=0;sa.length===1),i=t.length;if(n&&!r){let a=Wr(t);if(a.length===1&&cr(a[0].categoryMatches)){let l=a[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{let s=qr(a,(l,u,h)=>(l[u.tokenTypeIdx]=!0,Ce(u.categoryMatches,f=>{l[f]=!0}),l),[]);return function(){let l=this.LA(1);return s[l.tokenTypeIdx]===!0}}}else return function(){e:for(let a=0;aXT([s],1)),n=zse(r.length),i=Je(r,s=>{let l={};return Ce(s,u=>{let h=_R(u.partialPath);Ce(h,f=>{l[f]=!0})}),l}),a=r;for(let s=1;s<=e;s++){let l=a;a=zse(l.length);for(let u=0;u{let x=_R(v.partialPath);Ce(x,b=>{i[u][b]=!0})})}}}}return n}function ng(t,e,r,n){let i=new KT(t,Yn.ALTERNATION,n);return e.accept(i),Hse(i.result,r)}function ig(t,e,r,n){let i=new KT(t,r);e.accept(i);let a=i.result,l=new LR(e,t,r).startWalking(),u=new Cn({definition:a}),h=new Cn({definition:l});return Hse([u,h],n)}function ZT(t,e){e:for(let r=0;r{let i=e[n];return r===i||i.categoryMatchesMap[r.tokenTypeIdx]})}function Yse(t){return Ra(t,e=>Ra(e,r=>Ra(r,n=>cr(n.categoryMatches))))}var Yn,LR,KT,ag=M(()=>{"use strict";Ht();u2();PT();r0();ns();(function(t){t[t.OPTION=0]="OPTION",t[t.REPETITION=1]="REPETITION",t[t.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",t[t.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",t[t.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",t[t.ALTERNATION=5]="ALTERNATION"})(Yn||(Yn={}));o(h2,"getProdType");o(QT,"getLookaheadPaths");o(Gse,"buildLookaheadFuncForOr");o($se,"buildLookaheadFuncForOptionalProd");o(Vse,"buildAlternativesLookAheadFunc");o(Use,"buildSingleAlternativeLookaheadFunction");LR=class extends Iu{static{o(this,"RestDefinitionFinderWalker")}constructor(e,r,n){super(),this.topProd=e,this.targetOccurrence=r,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,r,n,i){return e.idx===this.targetOccurrence&&this.targetProdType===r?(this.restDef=n.concat(i),!0):!1}walkOption(e,r,n){this.checkIsTarget(e,Yn.OPTION,r,n)||super.walkOption(e,r,n)}walkAtLeastOne(e,r,n){this.checkIsTarget(e,Yn.REPETITION_MANDATORY,r,n)||super.walkOption(e,r,n)}walkAtLeastOneSep(e,r,n){this.checkIsTarget(e,Yn.REPETITION_MANDATORY_WITH_SEPARATOR,r,n)||super.walkOption(e,r,n)}walkMany(e,r,n){this.checkIsTarget(e,Yn.REPETITION,r,n)||super.walkOption(e,r,n)}walkManySep(e,r,n){this.checkIsTarget(e,Yn.REPETITION_WITH_SEPARATOR,r,n)||super.walkOption(e,r,n)}},KT=class extends rs{static{o(this,"InsideDefinitionFinderVisitor")}constructor(e,r,n){super(),this.targetOccurrence=e,this.targetProdType=r,this.targetRef=n,this.result=[]}checkIsTarget(e,r){e.idx===this.targetOccurrence&&this.targetProdType===r&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,Yn.OPTION)}visitRepetition(e){this.checkIsTarget(e,Yn.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,Yn.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,Yn.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,Yn.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,Yn.ALTERNATION)}};o(zse,"initializeArrayOfArrays");o(_R,"pathToHashKeys");o(pFe,"isUniquePrefixHash");o(Hse,"lookAheadSequenceFromAlternatives");o(ng,"getLookaheadPathsForOr");o(ig,"getLookaheadPathsForOptionalProd");o(ZT,"containsPath");o(Wse,"isStrictPrefixOfPath");o(Yse,"areTokenCategoriesNotUsed")});function qse(t){let e=t.lookaheadStrategy.validate({rules:t.rules,tokenTypes:t.tokenTypes,grammarName:t.grammarName});return Je(e,r=>Object.assign({type:zi.CUSTOM_LOOKAHEAD_VALIDATION},r))}function Xse(t,e,r,n){let i=da(t,u=>mFe(u,r)),a=wFe(t,e,r),s=da(t,u=>vFe(u,r)),l=da(t,u=>yFe(u,t,n,r));return i.concat(a,s,l)}function mFe(t,e){let r=new DR;t.accept(r);let n=r.allProductions,i=UL(n,gFe),a=Ds(i,l=>l.length>1);return Je(br(a),l=>{let u=ra(l),h=e.buildDuplicateFoundError(t,l),f=Ms(u),d={message:h,type:zi.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:f,occurrence:u.idx},p=jse(u);return p&&(d.parameter=p),d})}function gFe(t){return`${Ms(t)}_#_${t.idx}_#_${jse(t)}`}function jse(t){return t instanceof kr?t.terminalType.name:t instanceof nn?t.nonTerminalName:""}function yFe(t,e,r,n){let i=[];if(qr(e,(s,l)=>l.name===t.name?s+1:s,0)>1){let s=n.buildDuplicateRuleNameError({topLevelRule:t,grammarName:r});i.push({message:s,type:zi.DUPLICATE_RULE_NAME,ruleName:t.name})}return i}function Kse(t,e,r){let n=[],i;return Hn(e,t)||(i=`Invalid rule override, rule: ->${t}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,n.push({message:i,type:zi.INVALID_RULE_OVERRIDE,ruleName:t})),n}function RR(t,e,r,n=[]){let i=[],a=JT(e.definition);if(cr(a))return[];{let s=t.name;Hn(a,t)&&i.push({message:r.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:n}),type:zi.LEFT_RECURSION,ruleName:s});let u=Xh(a,n.concat([t])),h=da(u,f=>{let d=rn(n);return d.push(f),RR(t,f,r,d)});return i.concat(h)}}function JT(t){let e=[];if(cr(t))return e;let r=ra(t);if(r instanceof nn)e.push(r.referencedRule);else if(r instanceof Cn||r instanceof an||r instanceof An||r instanceof _n||r instanceof vn||r instanceof Lr)e=e.concat(JT(r.definition));else if(r instanceof xn)e=Wr(Je(r.definition,a=>JT(a.definition)));else if(!(r instanceof kr))throw Error("non exhaustive match");let n=Jd(r),i=t.length>1;if(n&&i){let a=mi(t);return e.concat(JT(a))}else return e}function Qse(t,e){let r=new f2;t.accept(r);let n=r.alternations;return da(n,a=>{let s=Lu(a.definition);return da(s,(l,u)=>{let h=jT([l],[],Ou,1);return cr(h)?[{message:e.buildEmptyAlternationError({topLevelRule:t,alternation:a,emptyChoiceIdx:u}),type:zi.NONE_LAST_EMPTY_ALT,ruleName:t.name,occurrence:a.idx,alternative:u+1}]:[]})})}function Zse(t,e,r){let n=new f2;t.accept(n);let i=n.alternations;return i=jh(i,s=>s.ignoreAmbiguities===!0),da(i,s=>{let l=s.idx,u=s.maxLookahead||e,h=ng(l,t,u,s),f=xFe(h,s,t,r),d=bFe(h,s,t,r);return f.concat(d)})}function vFe(t,e){let r=new f2;t.accept(r);let n=r.alternations;return da(n,a=>a.definition.length>255?[{message:e.buildTooManyAlternativesError({topLevelRule:t,alternation:a}),type:zi.TOO_MANY_ALTS,ruleName:t.name,occurrence:a.idx}]:[])}function Jse(t,e,r){let n=[];return Ce(t,i=>{let a=new NR;i.accept(a);let s=a.allProductions;Ce(s,l=>{let u=h2(l),h=l.maxLookahead||e,f=l.idx,p=ig(f,i,u,h)[0];if(cr(Wr(p))){let m=r.buildEmptyRepetitionError({topLevelRule:i,repetition:l});n.push({message:m,type:zi.NO_NON_EMPTY_LOOKAHEAD,ruleName:i.name})}})}),n}function xFe(t,e,r,n){let i=[],a=qr(t,(l,u,h)=>(e.definition[h].ignoreAmbiguities===!0||Ce(u,f=>{let d=[h];Ce(t,(p,m)=>{h!==m&&ZT(p,f)&&e.definition[m].ignoreAmbiguities!==!0&&d.push(m)}),d.length>1&&!ZT(i,f)&&(i.push(f),l.push({alts:d,path:f}))}),l),[]);return Je(a,l=>{let u=Je(l.alts,f=>f+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:u,prefixPath:l.path}),type:zi.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:e.idx,alternatives:l.alts}})}function bFe(t,e,r,n){let i=qr(t,(s,l,u)=>{let h=Je(l,f=>({idx:u,path:f}));return s.concat(h)},[]);return Tc(da(i,s=>{if(e.definition[s.idx].ignoreAmbiguities===!0)return[];let u=s.idx,h=s.path,f=Yr(i,p=>e.definition[p.idx].ignoreAmbiguities!==!0&&p.idx{let m=[p.idx+1,u+1],g=e.idx===0?"":e.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:m,prefixPath:p.path}),type:zi.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:g,alternatives:m}})}))}function wFe(t,e,r){let n=[],i=Je(e,a=>a.name);return Ce(t,a=>{let s=a.name;if(Hn(i,s)){let l=r.buildNamespaceConflictError(a);n.push({message:l,type:zi.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),n}var DR,f2,NR,d2=M(()=>{"use strict";Ht();Is();ns();ag();u2();r0();o(qse,"validateLookahead");o(Xse,"validateGrammar");o(mFe,"validateDuplicateProductions");o(gFe,"identifyProductionForDuplicates");o(jse,"getExtraProductionArgument");DR=class extends rs{static{o(this,"OccurrenceValidationCollector")}constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};o(yFe,"validateRuleDoesNotAlreadyExist");o(Kse,"validateRuleIsOverridden");o(RR,"validateNoLeftRecursion");o(JT,"getFirstNoneTerminal");f2=class extends rs{static{o(this,"OrCollector")}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};o(Qse,"validateEmptyOrAlternative");o(Zse,"validateAmbiguousAlternationAlternatives");NR=class extends rs{static{o(this,"RepetitionCollector")}constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}};o(vFe,"validateTooManyAlts");o(Jse,"validateSomeNonEmptyLookaheadPath");o(xFe,"checkAlternativesAmbiguities");o(bFe,"checkPrefixAlternativesAmbiguities");o(wFe,"checkTerminalAndNoneTerminalsNameSpace")});function eoe(t){let e=qh(t,{errMsgProvider:Pse}),r={};return Ce(t.rules,n=>{r[n.name]=n}),Bse(r,e.errMsgProvider)}function toe(t){return t=qh(t,{errMsgProvider:Bl}),Xse(t.rules,t.tokenTypes,t.errMsgProvider,t.grammarName)}var roe=M(()=>{"use strict";Ht();Fse();d2();tg();o(eoe,"resolveGrammar");o(toe,"validateGrammar")});function rf(t){return Hn(ooe,t.name)}var noe,ioe,aoe,soe,ooe,sg,a0,p2,m2,g2,og=M(()=>{"use strict";Ht();noe="MismatchedTokenException",ioe="NoViableAltException",aoe="EarlyExitException",soe="NotAllInputParsedException",ooe=[noe,ioe,aoe,soe];Object.freeze(ooe);o(rf,"isRecognitionException");sg=class extends Error{static{o(this,"RecognitionException")}constructor(e,r){super(e),this.token=r,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},a0=class extends sg{static{o(this,"MismatchedTokenException")}constructor(e,r,n){super(e,r),this.previousToken=n,this.name=noe}},p2=class extends sg{static{o(this,"NoViableAltException")}constructor(e,r,n){super(e,r),this.previousToken=n,this.name=ioe}},m2=class extends sg{static{o(this,"NotAllInputParsedException")}constructor(e,r){super(e,r),this.name=soe}},g2=class extends sg{static{o(this,"EarlyExitException")}constructor(e,r,n){super(e,r),this.previousToken=n,this.name=aoe}}});function TFe(t,e,r,n,i,a,s){let l=this.getKeyForAutomaticLookahead(n,i),u=this.firstAfterRepMap[l];if(u===void 0){let p=this.getCurrRuleFullName(),m=this.getGAstProductions()[p];u=new a(m,i).startWalking(),this.firstAfterRepMap[l]=u}let h=u.token,f=u.occurrence,d=u.isEndOfRule;this.RULE_STACK.length===1&&d&&h===void 0&&(h=oo,f=1),!(h===void 0||f===void 0)&&this.shouldInRepetitionRecoveryBeTried(h,f,s)&&this.tryInRepetitionRecovery(t,e,r,h)}var MR,OR,IR,ek,PR=M(()=>{"use strict";i0();Ht();og();pR();Is();MR={},OR="InRuleRecoveryException",IR=class extends Error{static{o(this,"InRuleRecoveryException")}constructor(e){super(e),this.name=OR}},ek=class{static{o(this,"Recoverable")}initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=It(e,"recoveryEnabled")?e.recoveryEnabled:is.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=TFe)}getTokenToInsert(e){let r=n0(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,r,n,i){let a=this.findReSyncTokenType(),s=this.exportLexerState(),l=[],u=!1,h=this.LA(1),f=this.LA(1),d=o(()=>{let p=this.LA(0),m=this.errorMessageProvider.buildMismatchTokenMessage({expected:i,actual:h,previous:p,ruleName:this.getCurrRuleFullName()}),g=new a0(m,h,this.LA(0));g.resyncedTokens=Lu(l),this.SAVE_ERROR(g)},"generateErrorMessage");for(;!u;)if(this.tokenMatcher(f,i)){d();return}else if(n.call(this)){d(),e.apply(this,r);return}else this.tokenMatcher(f,a)?u=!0:(f=this.SKIP_TOKEN(),this.addToResyncTokens(f,l));this.importLexerState(s)}shouldInRepetitionRecoveryBeTried(e,r,n){return!(n===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,r)))}getFollowsForInRuleRecovery(e,r){let n=this.getCurrentGrammarPath(e,r);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,r){if(this.canRecoverWithSingleTokenInsertion(e,r))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let n=this.SKIP_TOKEN();return this.consumeToken(),n}throw new IR("sad sad panda")}canPerformInRuleRecovery(e,r){return this.canRecoverWithSingleTokenInsertion(e,r)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,r){if(!this.canTokenTypeBeInsertedInRecovery(e)||cr(r))return!1;let n=this.LA(1);return Za(r,a=>this.tokenMatcher(n,a))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let r=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(r);return Hn(n,e)}findReSyncTokenType(){let e=this.flattenFollowSet(),r=this.LA(1),n=2;for(;;){let i=Za(e,a=>o2(r,a));if(i!==void 0)return i;r=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return MR;let e=this.getLastExplicitRuleShortName(),r=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK;return Je(e,(n,i)=>i===0?MR:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:r[i],inRule:this.shortRuleNameToFullName(e[i-1])})}flattenFollowSet(){let e=Je(this.buildFullFollowKeyStack(),r=>this.getFollowSetFromFollowKey(r));return Wr(e)}getFollowSetFromFollowKey(e){if(e===MR)return[oo];let r=e.ruleName+e.idxInCallingRule+BT+e.inRule;return this.resyncFollows[r]}addToResyncTokens(e,r){return this.tokenMatcher(e,oo)||r.push(e),r}reSyncTo(e){let r=[],n=this.LA(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,r);return Lu(r)}attemptInRepetitionRecovery(e,r,n,i,a,s,l){}getCurrentGrammarPath(e,r){let n=this.getHumanReadableRuleStack(),i=rn(this.RULE_OCCURRENCE_STACK);return{ruleStack:n,occurrenceStack:i,lastTok:e,lastTokOccurrence:r}}getHumanReadableRuleStack(){return Je(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}};o(TFe,"attemptInRepetitionRecovery")});function tk(t,e,r){return r|e|t}var rk=M(()=>{"use strict";o(tk,"getKeyForAutomaticLookahead")});var zu,BR=M(()=>{"use strict";Ht();tg();Is();d2();ag();zu=class{static{o(this,"LLkLookaheadStrategy")}constructor(e){var r;this.maxLookahead=(r=e?.maxLookahead)!==null&&r!==void 0?r:is.maxLookahead}validate(e){let r=this.validateNoLeftRecursion(e.rules);if(cr(r)){let n=this.validateEmptyOrAlternatives(e.rules),i=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),a=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...r,...n,...i,...a]}return r}validateNoLeftRecursion(e){return da(e,r=>RR(r,r,Bl))}validateEmptyOrAlternatives(e){return da(e,r=>Qse(r,Bl))}validateAmbiguousAlternationAlternatives(e,r){return da(e,n=>Zse(n,r,Bl))}validateSomeNonEmptyLookaheadPath(e,r){return Jse(e,r,Bl)}buildLookaheadForAlternation(e){return Gse(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Vse)}buildLookaheadForOptional(e){return $se(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,h2(e.prodType),Use)}}});function kFe(t){nk.reset(),t.accept(nk);let e=nk.dslMethods;return nk.reset(),e}var ik,FR,nk,loe=M(()=>{"use strict";Ht();Is();rk();ns();BR();ik=class{static{o(this,"LooksAhead")}initLooksAhead(e){this.dynamicTokensEnabled=It(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:is.dynamicTokensEnabled,this.maxLookahead=It(e,"maxLookahead")?e.maxLookahead:is.maxLookahead,this.lookaheadStrategy=It(e,"lookaheadStrategy")?e.lookaheadStrategy:new zu({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){Ce(e,r=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{let{alternation:n,repetition:i,option:a,repetitionMandatory:s,repetitionMandatoryWithSeparator:l,repetitionWithSeparator:u}=kFe(r);Ce(n,h=>{let f=h.idx===0?"":h.idx;this.TRACE_INIT(`${Ms(h)}${f}`,()=>{let d=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:h.idx,rule:r,maxLookahead:h.maxLookahead||this.maxLookahead,hasPredicates:h.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),p=tk(this.fullRuleNameToShort[r.name],256,h.idx);this.setLaFuncCache(p,d)})}),Ce(i,h=>{this.computeLookaheadFunc(r,h.idx,768,"Repetition",h.maxLookahead,Ms(h))}),Ce(a,h=>{this.computeLookaheadFunc(r,h.idx,512,"Option",h.maxLookahead,Ms(h))}),Ce(s,h=>{this.computeLookaheadFunc(r,h.idx,1024,"RepetitionMandatory",h.maxLookahead,Ms(h))}),Ce(l,h=>{this.computeLookaheadFunc(r,h.idx,1536,"RepetitionMandatoryWithSeparator",h.maxLookahead,Ms(h))}),Ce(u,h=>{this.computeLookaheadFunc(r,h.idx,1280,"RepetitionWithSeparator",h.maxLookahead,Ms(h))})})})}computeLookaheadFunc(e,r,n,i,a,s){this.TRACE_INIT(`${s}${r===0?"":r}`,()=>{let l=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:e,maxLookahead:a||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:i}),u=tk(this.fullRuleNameToShort[e.name],n,r);this.setLaFuncCache(u,l)})}getKeyForAutomaticLookahead(e,r){let n=this.getLastExplicitRuleShortName();return tk(n,e,r)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,r){this.lookAheadFuncsCache.set(e,r)}},FR=class extends rs{static{o(this,"DslMethodsCollectorVisitor")}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},nk=new FR;o(kFe,"collectMethods")});function $R(t,e){isNaN(t.startOffset)===!0?(t.startOffset=e.startOffset,t.endOffset=e.endOffset):t.endOffset{"use strict";o($R,"setNodeLocationOnlyOffset");o(VR,"setNodeLocationFull");o(coe,"addTerminalToCst");o(uoe,"addNoneTerminalToCst")});function UR(t,e){Object.defineProperty(t,EFe,{enumerable:!1,configurable:!0,writable:!1,value:e})}var EFe,foe=M(()=>{"use strict";EFe="name";o(UR,"defineNameProp")});function SFe(t,e){let r=zr(t),n=r.length;for(let i=0;is.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: + ${a.join(` + +`).replace(/\n/g,` + `)}`)}},"validateVisitor")};return r.prototype=n,r.prototype.constructor=r,r._RULE_NAMES=e,r}function poe(t,e,r){let n=o(function(){},"derivedConstructor");UR(n,t+"BaseSemanticsWithDefaults");let i=Object.create(r.prototype);return Ce(e,a=>{i[a]=SFe}),n.prototype=i,n.prototype.constructor=n,n}function CFe(t,e){return AFe(t,e)}function AFe(t,e){let r=Yr(e,i=>Ei(t[i])===!1),n=Je(r,i=>({msg:`Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`,type:HR.MISSING_METHOD,methodName:i}));return Tc(n)}var HR,moe=M(()=>{"use strict";Ht();foe();o(SFe,"defaultVisit");o(doe,"createBaseSemanticVisitorConstructor");o(poe,"createBaseVisitorConstructorWithDefaults");(function(t){t[t.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",t[t.MISSING_METHOD=1]="MISSING_METHOD"})(HR||(HR={}));o(CFe,"validateVisitor");o(AFe,"validateMissingCstMethods")});var lk,goe=M(()=>{"use strict";hoe();Ht();moe();Is();lk=class{static{o(this,"TreeBuilder")}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=It(e,"nodeLocationTracking")?e.nodeLocationTracking:is.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Jn,this.cstFinallyStateUpdate=Jn,this.cstPostTerminal=Jn,this.cstPostNonTerminal=Jn,this.cstPostRule=Jn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=VR,this.setNodeLocationFromNode=VR,this.cstPostRule=Jn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Jn,this.setNodeLocationFromNode=Jn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=$R,this.setNodeLocationFromNode=$R,this.cstPostRule=Jn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Jn,this.setNodeLocationFromNode=Jn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Jn,this.setNodeLocationFromNode=Jn,this.cstPostRule=Jn,this.setInitialNodeLocation=Jn;else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){let r=this.LA(1);e.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){let r={name:e,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let r=this.LA(0),n=e.location;n.startOffset<=r.startOffset?(n.endOffset=r.endOffset,n.endLine=r.endLine,n.endColumn=r.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(e){let r=this.LA(0),n=e.location;n.startOffset<=r.startOffset?n.endOffset=r.endOffset:n.startOffset=NaN}cstPostTerminal(e,r){let n=this.CST_STACK[this.CST_STACK.length-1];coe(n,r,e),this.setNodeLocationFromToken(n.location,r)}cstPostNonTerminal(e,r){let n=this.CST_STACK[this.CST_STACK.length-1];uoe(n,r,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(dr(this.baseCstVisitorConstructor)){let e=doe(this.className,zr(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(dr(this.baseCstVisitorWithDefaultsConstructor)){let e=poe(this.className,zr(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){let e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}}});var ck,yoe=M(()=>{"use strict";Is();ck=class{static{o(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):lg}LA(e){let r=this.currIdx+e;return r<0||this.tokVectorLength<=r?lg:this.tokVector[r]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}}});var uk,voe=M(()=>{"use strict";Ht();og();Is();tg();d2();ns();uk=class{static{o(this,"RecognizerApi")}ACTION(e){return e.call(this)}consume(e,r,n){return this.consumeInternal(r,e,n)}subrule(e,r,n){return this.subruleInternal(r,e,n)}option(e,r){return this.optionInternal(r,e)}or(e,r){return this.orInternal(r,e)}many(e,r){return this.manyInternal(e,r)}atLeastOne(e,r){return this.atLeastOneInternal(e,r)}CONSUME(e,r){return this.consumeInternal(e,0,r)}CONSUME1(e,r){return this.consumeInternal(e,1,r)}CONSUME2(e,r){return this.consumeInternal(e,2,r)}CONSUME3(e,r){return this.consumeInternal(e,3,r)}CONSUME4(e,r){return this.consumeInternal(e,4,r)}CONSUME5(e,r){return this.consumeInternal(e,5,r)}CONSUME6(e,r){return this.consumeInternal(e,6,r)}CONSUME7(e,r){return this.consumeInternal(e,7,r)}CONSUME8(e,r){return this.consumeInternal(e,8,r)}CONSUME9(e,r){return this.consumeInternal(e,9,r)}SUBRULE(e,r){return this.subruleInternal(e,0,r)}SUBRULE1(e,r){return this.subruleInternal(e,1,r)}SUBRULE2(e,r){return this.subruleInternal(e,2,r)}SUBRULE3(e,r){return this.subruleInternal(e,3,r)}SUBRULE4(e,r){return this.subruleInternal(e,4,r)}SUBRULE5(e,r){return this.subruleInternal(e,5,r)}SUBRULE6(e,r){return this.subruleInternal(e,6,r)}SUBRULE7(e,r){return this.subruleInternal(e,7,r)}SUBRULE8(e,r){return this.subruleInternal(e,8,r)}SUBRULE9(e,r){return this.subruleInternal(e,9,r)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,r,n=cg){if(Hn(this.definedRulesNames,e)){let s={message:Bl.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:zi.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(s)}this.definedRulesNames.push(e);let i=this.defineRule(e,r,n);return this[e]=i,i}OVERRIDE_RULE(e,r,n=cg){let i=Kse(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(i);let a=this.defineRule(e,r,n);return this[e]=a,a}BACKTRACK(e,r){return function(){this.isBackTrackingStack.push(1);let n=this.saveRecogState();try{return e.apply(this,r),!0}catch(i){if(rf(i))return!1;throw i}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return IT(br(this.gastProductionsCache))}}});var hk,xoe=M(()=>{"use strict";Ht();rk();og();ag();u2();Is();PR();i0();r0();hk=class{static{o(this,"RecognizerEngine")}initRecognizerEngine(e,r){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=eg,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},It(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 + For Further details.`);if(Mt(e)){if(cr(e))throw Error(`A Token Vocabulary cannot be empty. + Note that the first argument for the parser constructor + is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 + For Further details.`)}if(Mt(e))this.tokensMap=qr(e,(a,s)=>(a[s.name]=s,a),{});else if(It(e,"modes")&&Ra(Wr(br(e.modes)),Ase)){let a=Wr(br(e.modes)),s=Om(a);this.tokensMap=qr(s,(l,u)=>(l[u.name]=u,l),{})}else if(yn(e))this.tokensMap=rn(e);else throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=oo;let n=It(e,"modes")?Wr(br(e.modes)):br(e),i=Ra(n,a=>cr(a.categoryMatches));this.tokenMatcher=i?eg:Ou,Pu(br(this.tokensMap))}defineRule(e,r,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' +Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let i=It(n,"resyncEnabled")?n.resyncEnabled:cg.resyncEnabled,a=It(n,"recoveryValueFunc")?n.recoveryValueFunc:cg.recoveryValueFunc,s=this.ruleShortNameIdx<<12;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=e,this.fullRuleNameToShort[e]=s;let l;return this.outputCst===!0?l=o(function(...f){try{this.ruleInvocationStateUpdate(s,e,this.subruleIdx),r.apply(this,f);let d=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(d),d}catch(d){return this.invokeRuleCatch(d,i,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):l=o(function(...f){try{return this.ruleInvocationStateUpdate(s,e,this.subruleIdx),r.apply(this,f)}catch(d){return this.invokeRuleCatch(d,i,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(l,{ruleName:e,originalGrammarAction:r})}invokeRuleCatch(e,r,n){let i=this.RULE_STACK.length===1,a=r&&!this.isBackTracking()&&this.recoveryEnabled;if(rf(e)){let s=e;if(a){let l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){let u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return n(e);else{if(this.outputCst){let u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(i)return this.moveToTerminatedState(),n(e);throw s}}else throw e}optionInternal(e,r){let n=this.getKeyForAutomaticLookahead(512,r);return this.optionInternalLogic(e,r,n)}optionInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof e!="function"){a=e.DEF;let s=e.GATE;if(s!==void 0){let l=i;i=o(()=>s.call(this)&&l.call(this),"lookAheadFunc")}}else a=e;if(i.call(this)===!0)return a.call(this)}atLeastOneInternal(e,r){let n=this.getKeyForAutomaticLookahead(1024,e);return this.atLeastOneInternalLogic(e,r,n)}atLeastOneInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof r!="function"){a=r.DEF;let s=r.GATE;if(s!==void 0){let l=i;i=o(()=>s.call(this)&&l.call(this),"lookAheadFunc")}}else a=r;if(i.call(this)===!0){let s=this.doSingleRepetition(a);for(;i.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a)}else throw this.raiseEarlyExitException(e,Yn.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],i,1024,e,qT)}atLeastOneSepFirstInternal(e,r){let n=this.getKeyForAutomaticLookahead(1536,e);this.atLeastOneSepFirstInternalLogic(e,r,n)}atLeastOneSepFirstInternalLogic(e,r,n){let i=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);let l=o(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,l,i,c2],l,1536,e,c2)}else throw this.raiseEarlyExitException(e,Yn.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(e,r){let n=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,r,n)}manyInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof r!="function"){a=r.DEF;let l=r.GATE;if(l!==void 0){let u=i;i=o(()=>l.call(this)&&u.call(this),"lookaheadFunction")}}else a=r;let s=!0;for(;i.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],i,768,e,YT,s)}manySepFirstInternal(e,r){let n=this.getKeyForAutomaticLookahead(1280,e);this.manySepFirstInternalLogic(e,r,n)}manySepFirstInternalLogic(e,r,n){let i=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);let l=o(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,l,i,l2],l,1280,e,l2)}}repetitionSepSecondInternal(e,r,n,i,a){for(;n();)this.CONSUME(r),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,n,i,a],n,1536,e,a)}doSingleRepetition(e){let r=this.getLexerPosition();return e.call(this),this.getLexerPosition()>r}orInternal(e,r){let n=this.getKeyForAutomaticLookahead(256,r),i=Mt(e)?e:e.DEF,s=this.getLaFuncFromCache(n).call(this,i);if(s!==void 0)return i[s].ALT.call(this);this.raiseNoAltException(r,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){let e=this.LA(1),r=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new m2(r,e))}}subruleInternal(e,r,n){let i;try{let a=n!==void 0?n.ARGS:void 0;return this.subruleIdx=r,i=e.apply(this,a),this.cstPostNonTerminal(i,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),i}catch(a){throw this.subruleInternalError(a,n,e.ruleName)}}subruleInternalError(e,r,n){throw rf(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,r,n){let i;try{let a=this.LA(1);this.tokenMatcher(a,e)===!0?(this.consumeToken(),i=a):this.consumeInternalError(e,a,n)}catch(a){i=this.consumeInternalRecovery(e,r,a)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,i),i}consumeInternalError(e,r,n){let i,a=this.LA(0);throw n!==void 0&&n.ERR_MSG?i=n.ERR_MSG:i=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:r,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new a0(i,r,a))}consumeInternalRecovery(e,r,n){if(this.recoveryEnabled&&n.name==="MismatchedTokenException"&&!this.isBackTracking()){let i=this.getFollowsForInRuleRecovery(e,r);try{return this.tryInRuleRecovery(e,i)}catch(a){throw a.name===OR?n:a}}else throw n}saveRecogState(){let e=this.errors,r=rn(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,r,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(r)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),oo)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}}});var fk,boe=M(()=>{"use strict";og();Ht();ag();Is();fk=class{static{o(this,"ErrorHandler")}initErrorHandler(e){this._errors=[],this.errorMessageProvider=It(e,"errorMessageProvider")?e.errorMessageProvider:is.errorMessageProvider}SAVE_ERROR(e){if(rf(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:rn(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return rn(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,r,n){let i=this.getCurrRuleFullName(),a=this.getGAstProductions()[i],l=ig(e,a,r,this.maxLookahead)[0],u=[];for(let f=1;f<=this.maxLookahead;f++)u.push(this.LA(f));let h=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:n,ruleName:i});throw this.SAVE_ERROR(new g2(h,this.LA(1),this.LA(0)))}raiseNoAltException(e,r){let n=this.getCurrRuleFullName(),i=this.getGAstProductions()[n],a=ng(e,i,this.maxLookahead),s=[];for(let h=1;h<=this.maxLookahead;h++)s.push(this.LA(h));let l=this.LA(0),u=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:l,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new p2(u,this.LA(1),l))}}});var dk,woe=M(()=>{"use strict";u2();Ht();dk=class{static{o(this,"ContentAssist")}initContentAssist(){}computeContentAssist(e,r){let n=this.gastProductionsCache[e];if(dr(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return jT([n],r,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){let r=ra(e.ruleStack),i=this.getGAstProductions()[r];return new WT(i,e).startWalking()}}});function v2(t,e,r,n=!1){mk(r);let i=fa(this.recordingProdStack),a=Ei(e)?e:e.DEF,s=new t({definition:[],idx:r});return n&&(s.separator=e.SEP),It(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),i.definition.push(s),this.recordingProdStack.pop(),gk}function DFe(t,e){mk(e);let r=fa(this.recordingProdStack),n=Mt(t)===!1,i=n===!1?t:t.DEF,a=new xn({definition:[],idx:e,ignoreAmbiguities:n&&t.IGNORE_AMBIGUITIES===!0});It(t,"MAX_LOOKAHEAD")&&(a.maxLookahead=t.MAX_LOOKAHEAD);let s=Rv(i,l=>Ei(l.GATE));return a.hasPredicates=s,r.definition.push(a),Ce(i,l=>{let u=new Cn({definition:[]});a.definition.push(u),It(l,"IGNORE_AMBIGUITIES")?u.ignoreAmbiguities=l.IGNORE_AMBIGUITIES:It(l,"GATE")&&(u.ignoreAmbiguities=!0),this.recordingProdStack.push(u),l.ALT.call(this),this.recordingProdStack.pop()}),gk}function Eoe(t){return t===0?"":`${t}`}function mk(t){if(t<0||t>koe){let e=new Error(`Invalid DSL Method idx value: <${t}> + Idx value must be a none negative value smaller than ${koe+1}`);throw e.KNOWN_RECORDER_ERROR=!0,e}}var gk,Toe,koe,Soe,Coe,LFe,pk,Aoe=M(()=>{"use strict";Ht();ns();a2();r0();i0();Is();rk();gk={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(gk);Toe=!0,koe=Math.pow(2,8)-1,Soe=HT({name:"RECORDING_PHASE_TOKEN",pattern:oi.NA});Pu([Soe]);Coe=n0(Soe,`This IToken indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(Coe);LFe={name:`This CSTNode indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},pk=class{static{o(this,"GastRecorder")}initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let r=e>0?e:"";this[`CONSUME${r}`]=function(n,i){return this.consumeInternalRecord(n,e,i)},this[`SUBRULE${r}`]=function(n,i){return this.subruleInternalRecord(n,e,i)},this[`OPTION${r}`]=function(n){return this.optionInternalRecord(n,e)},this[`OR${r}`]=function(n){return this.orInternalRecord(n,e)},this[`MANY${r}`]=function(n){this.manyInternalRecord(e,n)},this[`MANY_SEP${r}`]=function(n){this.manySepFirstInternalRecord(e,n)},this[`AT_LEAST_ONE${r}`]=function(n){this.atLeastOneInternalRecord(e,n)},this[`AT_LEAST_ONE_SEP${r}`]=function(n){this.atLeastOneSepFirstInternalRecord(e,n)}}this.consume=function(e,r,n){return this.consumeInternalRecord(r,e,n)},this.subrule=function(e,r,n){return this.subruleInternalRecord(r,e,n)},this.option=function(e,r){return this.optionInternalRecord(r,e)},this.or=function(e,r){return this.orInternalRecord(r,e)},this.many=function(e,r){this.manyInternalRecord(e,r)},this.atLeastOne=function(e,r){this.atLeastOneInternalRecord(e,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{let e=this;for(let r=0;r<10;r++){let n=r>0?r:"";delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,r){return()=>!0}LA_RECORD(e){return lg}topLevelRuleRecord(e,r){try{let n=new ts({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),r.call(this),this.recordingProdStack.pop(),n}catch(n){if(n.KNOWN_RECORDER_ERROR!==!0)try{n.message=n.message+` + This error was thrown during the "grammar recording phase" For more info see: + https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw n}throw n}}optionInternalRecord(e,r){return v2.call(this,an,e,r)}atLeastOneInternalRecord(e,r){v2.call(this,An,r,e)}atLeastOneSepFirstInternalRecord(e,r){v2.call(this,_n,r,e,Toe)}manyInternalRecord(e,r){v2.call(this,Lr,r,e)}manySepFirstInternalRecord(e,r){v2.call(this,vn,r,e,Toe)}orInternalRecord(e,r){return DFe.call(this,e,r)}subruleInternalRecord(e,r,n){if(mk(r),!e||It(e,"ruleName")===!1){let l=new Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw l.KNOWN_RECORDER_ERROR=!0,l}let i=fa(this.recordingProdStack),a=e.ruleName,s=new nn({idx:r,nonTerminalName:a,label:n?.LABEL,referencedRule:void 0});return i.definition.push(s),this.outputCst?LFe:gk}consumeInternalRecord(e,r,n){if(mk(r),!TR(e)){let s=new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw s.KNOWN_RECORDER_ERROR=!0,s}let i=fa(this.recordingProdStack),a=new kr({idx:r,terminalType:e,label:n?.LABEL});return i.definition.push(a),Coe}};o(v2,"recordProd");o(DFe,"recordOrProd");o(Eoe,"getIdxSuffix");o(mk,"assertMethodIdxIsValid")});var yk,_oe=M(()=>{"use strict";Ht();jm();Is();yk=class{static{o(this,"PerformanceTracer")}initPerformanceTracer(e){if(It(e,"traceInitPerf")){let r=e.traceInitPerf,n=typeof r=="number";this.traceInitMaxIdent=n?r:1/0,this.traceInitPerf=n?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=is.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,r){if(this.traceInitPerf===!0){this.traceInitIndent++;let n=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${e}>`);let{time:i,value:a}=r2(r),s=i>10?console.warn:console.log;return this.traceInitIndent time: ${i}ms`),this.traceInitIndent--,a}else return r()}}});function Loe(t,e){e.forEach(r=>{let n=r.prototype;Object.getOwnPropertyNames(n).forEach(i=>{if(i==="constructor")return;let a=Object.getOwnPropertyDescriptor(n,i);a&&(a.get||a.set)?Object.defineProperty(t.prototype,i,a):t.prototype[i]=r.prototype[i]})})}var Doe=M(()=>{"use strict";o(Loe,"applyMixins")});function vk(t=void 0){return function(){return t}}var lg,is,cg,zi,x2,b2,Is=M(()=>{"use strict";Ht();jm();sse();i0();tg();roe();PR();loe();goe();yoe();voe();xoe();boe();woe();Aoe();_oe();Doe();d2();lg=n0(oo,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(lg);is=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Fu,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),cg=Object.freeze({recoveryValueFunc:o(()=>{},"recoveryValueFunc"),resyncEnabled:!0});(function(t){t[t.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",t[t.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",t[t.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",t[t.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",t[t.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",t[t.LEFT_RECURSION=5]="LEFT_RECURSION",t[t.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",t[t.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",t[t.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",t[t.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",t[t.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",t[t.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",t[t.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",t[t.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(zi||(zi={}));o(vk,"EMPTY_ALT");x2=class t{static{o(this,"Parser")}static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;let r=this.className;this.TRACE_INIT("toFastProps",()=>{n2(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),Ce(this.definedRulesNames,i=>{let s=this[i].originalGrammarAction,l;this.TRACE_INIT(`${i} Rule`,()=>{l=this.topLevelRuleRecord(i,s)}),this.gastProductionsCache[i]=l})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=eoe({rules:br(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(cr(n)&&this.skipValidations===!1){let i=toe({rules:br(this.gastProductionsCache),tokenTypes:br(this.tokensMap),errMsgProvider:Bl,grammarName:r}),a=qse({lookaheadStrategy:this.lookaheadStrategy,rules:br(this.gastProductionsCache),tokenTypes:br(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(i,a)}}),cr(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let i=ase(br(this.gastProductionsCache));this.resyncFollows=i}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var i,a;(a=(i=this.lookaheadStrategy).initialize)===null||a===void 0||a.call(i,{rules:br(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(br(this.gastProductionsCache))})),!t.DEFER_DEFINITION_ERRORS_HANDLING&&!cr(this.definitionErrors))throw e=Je(this.definitionErrors,i=>i.message),new Error(`Parser Definition Errors detected: + ${e.join(` +------------------------------- +`)}`)})}constructor(e,r){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(r),n.initLexerAdapter(),n.initLooksAhead(r),n.initRecognizerEngine(e,r),n.initRecoverable(r),n.initTreeBuilder(r),n.initContentAssist(),n.initGastRecorder(r),n.initPerformanceTracer(r),It(r,"ignoredIssues"))throw new Error(`The IParserConfig property has been deprecated. + Please use the flag on the relevant DSL method instead. + See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES + For further details.`);this.skipValidations=It(r,"skipValidations")?r.skipValidations:is.skipValidations}};x2.DEFER_DEFINITION_ERRORS_HANDLING=!1;Loe(x2,[ek,ik,lk,ck,hk,uk,fk,dk,pk,yk]);b2=class extends x2{static{o(this,"EmbeddedActionsParser")}constructor(e,r=is){let n=rn(r);n.outputCst=!1,super(e,n)}}});var Noe=M(()=>{"use strict";ns()});var Roe=M(()=>{"use strict"});var Moe=M(()=>{"use strict";Noe();Roe()});var Ioe=M(()=>{"use strict";uR()});var s0=M(()=>{"use strict";uR();Is();a2();i0();ag();BR();tg();og();ER();ns();ns();Moe();Ioe()});function o0(t,e,r){return`${t.name}_${e}_${r}`}function Foe(t){let e={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};BFe(e,t);let r=t.length;for(let n=0;nzoe(t,e,s));return dg(t,e,n,r,...i)}function UFe(t,e,r){let n=na(t,e,r,{type:nf});af(t,n);let i=dg(t,e,n,r,l0(t,e,r));return HFe(t,e,r,i)}function l0(t,e,r){let n=Yr(Je(r.definition,i=>zoe(t,e,i)),i=>i!==void 0);return n.length===1?n[0]:n.length===0?void 0:YFe(t,n)}function Goe(t,e,r,n,i){let a=n.left,s=n.right,l=na(t,e,r,{type:PFe});af(t,l);let u=na(t,e,r,{type:Boe});return a.loopback=l,u.loopback=l,t.decisionMap[o0(e,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=l,Ai(s,l),i===void 0?(Ai(l,a),Ai(l,u)):(Ai(l,u),Ai(l,i.left),Ai(i.right,a)),{left:a,right:u}}function $oe(t,e,r,n,i){let a=n.left,s=n.right,l=na(t,e,r,{type:OFe});af(t,l);let u=na(t,e,r,{type:Boe}),h=na(t,e,r,{type:IFe});return l.loopback=h,u.loopback=h,Ai(l,a),Ai(l,u),Ai(s,h),i!==void 0?(Ai(h,u),Ai(h,i.left),Ai(i.right,a)):Ai(h,l),t.decisionMap[o0(e,i?"RepetitionWithSeparator":"Repetition",r.idx)]=l,{left:l,right:u}}function HFe(t,e,r,n){let i=n.left,a=n.right;return Ai(i,a),t.decisionMap[o0(e,"Option",r.idx)]=i,n}function af(t,e){return t.decisionStates.push(e),e.decision=t.decisionStates.length-1,e.decision}function dg(t,e,r,n,...i){let a=na(t,e,n,{type:MFe,start:r});r.end=a;for(let l of i)l!==void 0?(Ai(r,l.left),Ai(l.right,a)):Ai(r,a);let s={left:r,right:a};return t.decisionMap[o0(e,WFe(n),n.idx)]=r,s}function WFe(t){if(t instanceof xn)return"Alternation";if(t instanceof an)return"Option";if(t instanceof Lr)return"Repetition";if(t instanceof vn)return"RepetitionWithSeparator";if(t instanceof An)return"RepetitionMandatory";if(t instanceof _n)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function YFe(t,e){let r=e.length;for(let a=0;a{"use strict";Rm();FL();s0();o(o0,"buildATNKey");nf=1,RFe=2,Ooe=4,Poe=5,fg=7,MFe=8,IFe=9,OFe=10,PFe=11,Boe=12,w2=class{static{o(this,"AbstractTransition")}constructor(e){this.target=e}isEpsilon(){return!1}},ug=class extends w2{static{o(this,"AtomTransition")}constructor(e,r){super(e),this.tokenType=r}},T2=class extends w2{static{o(this,"EpsilonTransition")}constructor(e){super(e)}isEpsilon(){return!0}},hg=class extends w2{static{o(this,"RuleTransition")}constructor(e,r,n){super(e),this.rule=r,this.followState=n}isEpsilon(){return!0}};o(Foe,"createATN");o(BFe,"createRuleStartAndStopATNStates");o(zoe,"atom");o(FFe,"repetition");o(zFe,"repetitionSep");o(GFe,"repetitionMandatory");o($Fe,"repetitionMandatorySep");o(VFe,"alternation");o(UFe,"option");o(l0,"block");o(Goe,"plus");o($oe,"star");o(HFe,"optional");o(af,"defineDecisionState");o(dg,"makeAlts");o(WFe,"getProdType");o(YFe,"makeBlock");o(YR,"tokenRef");o(qFe,"ruleRef");o(XFe,"buildRuleHandle");o(Ai,"epsilon");o(na,"newState");o(qR,"addTransition");o(jFe,"removeState")});function XR(t,e=!0){return`${e?`a${t.alt}`:""}s${t.state.stateNumber}:${t.stack.map(r=>r.stateNumber.toString()).join("_")}`}var k2,pg,Uoe=M(()=>{"use strict";Rm();k2={},pg=class{static{o(this,"ATNConfigSet")}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){let r=XR(e);r in this.map||(this.map[r]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return Je(this.configs,e=>e.alt)}get key(){let e="";for(let r in this.map)e+=r+":";return e}};o(XR,"getATNConfigKey")});function KFe(t,e){let r={};return n=>{let i=n.toString(),a=r[i];return a!==void 0||(a={atnStartState:t,decision:e,states:{}},r[i]=a),a}}function Woe(t,e=!0){let r=new Set;for(let n of t){let i=new Set;for(let a of n){if(a===void 0){if(e)break;return!1}let s=[a.tokenTypeIdx].concat(a.categoryMatches);for(let l of s)if(r.has(l)){if(!i.has(l))return!1}else r.add(l),i.add(l)}}return!0}function QFe(t){let e=t.decisionStates.length,r=Array(e);for(let n=0;nBu(i)).join(", "),r=t.production.idx===0?"":t.production.idx,n=`Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${rze(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, +<${e}> may appears as a prefix path in all these alternatives. +`;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,n}function rze(t){if(t instanceof nn)return"SUBRULE";if(t instanceof an)return"OPTION";if(t instanceof xn)return"OR";if(t instanceof An)return"AT_LEAST_ONE";if(t instanceof _n)return"AT_LEAST_ONE_SEP";if(t instanceof vn)return"MANY_SEP";if(t instanceof Lr)return"MANY";if(t instanceof kr)return"CONSUME";throw Error("non exhaustive match")}function nze(t,e,r){let n=da(e.configs.elements,a=>a.state.transitions),i=ene(n.filter(a=>a instanceof ug).map(a=>a.tokenType),a=>a.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:i,tokenPath:t}}function ize(t,e){return t.edges[e.tokenTypeIdx]}function aze(t,e,r){let n=new pg,i=[];for(let s of t.elements){if(r.is(s.alt)===!1)continue;if(s.state.type===fg){i.push(s);continue}let l=s.state.transitions.length;for(let u=0;u0&&!uze(a))for(let s of i)a.add(s);return a}function sze(t,e){if(t instanceof ug&&o2(e,t.tokenType))return t.target}function oze(t,e){let r;for(let n of t.elements)if(e.is(n.alt)===!0){if(r===void 0)r=n.alt;else if(r!==n.alt)return}return r}function qoe(t){return{configs:t,edges:{},isAcceptState:!1,prediction:-1}}function Yoe(t,e,r,n){return n=Xoe(t,n),e.edges[r.tokenTypeIdx]=n,n}function Xoe(t,e){if(e===k2)return e;let r=e.configs.key,n=t.states[r];return n!==void 0?n:(e.configs.finalize(),t.states[r]=e,e)}function lze(t){let e=new pg,r=t.transitions.length;for(let n=0;n0){let i=[...t.stack],s={state:i.pop(),alt:t.alt,stack:i};bk(s,e)}else e.add(t);return}r.epsilonOnlyTransitions||e.add(t);let n=r.transitions.length;for(let i=0;i1)return!0;return!1}function mze(t){for(let e of Array.from(t.values()))if(Object.keys(e).length===1)return!0;return!1}var xk,Hoe,E2,joe=M(()=>{"use strict";s0();Voe();Uoe();YL();GL();tne();Rm();gw();Ww();Kw();KL();o(KFe,"createDFACache");xk=class{static{o(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,r){this.predicates[e]=r}toString(){let e="",r=this.predicates.length;for(let n=0;nconsole.log(n)}initialize(e){this.atn=Foe(e.rules),this.dfas=QFe(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:r,rule:n,hasPredicates:i,dynamicTokensEnabled:a}=e,s=this.dfas,l=this.logging,u=o0(n,"Alternation",r),f=this.atn.decisionMap[u].decision,d=Je(QT({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:n}),p=>Je(p,m=>m[0]));if(Woe(d,!1)&&!a){let p=qr(d,(m,g,y)=>(Ce(g,v=>{v&&(m[v.tokenTypeIdx]=y,Ce(v.categoryMatches,x=>{m[x]=y}))}),m),{});return i?function(m){var g;let y=this.LA(1),v=p[y.tokenTypeIdx];if(m!==void 0&&v!==void 0){let x=(g=m[v])===null||g===void 0?void 0:g.GATE;if(x!==void 0&&x.call(this)===!1)return}return v}:function(){let m=this.LA(1);return p[m.tokenTypeIdx]}}else return i?function(p){let m=new xk,g=p===void 0?0:p.length;for(let v=0;vJe(p,m=>m[0]));if(Woe(d)&&d[0][0]&&!a){let p=d[0],m=Wr(p);if(m.length===1&&cr(m[0].categoryMatches)){let y=m[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===y}}else{let g=qr(m,(y,v)=>(v!==void 0&&(y[v.tokenTypeIdx]=!0,Ce(v.categoryMatches,x=>{y[x]=!0})),y),{});return function(){let y=this.LA(1);return g[y.tokenTypeIdx]===!0}}}return function(){let p=jR.call(this,s,f,Hoe,l);return typeof p=="object"?!1:p===0}}};o(Woe,"isLL1Sequence");o(QFe,"initATNSimulator");o(jR,"adaptivePredict");o(ZFe,"performLookahead");o(JFe,"computeLookaheadTarget");o(eze,"reportLookaheadAmbiguity");o(tze,"buildAmbiguityError");o(rze,"getProductionDslName");o(nze,"buildAdaptivePredictError");o(ize,"getExistingTargetState");o(aze,"computeReachSet");o(sze,"getReachableTarget");o(oze,"getUniqueAlt");o(qoe,"newDFAState");o(Yoe,"addDFAEdge");o(Xoe,"addDFAState");o(lze,"computeStartState");o(bk,"closure");o(cze,"getEpsilonTarget");o(uze,"hasConfigInRuleStopState");o(hze,"allConfigsInRuleStopStates");o(fze,"hasConflictTerminatingPrediction");o(dze,"getConflictingAltSets");o(pze,"hasConflictingAltSet");o(mze,"hasStateAssociatedWithOneAlt")});var Koe=M(()=>{"use strict";joe()});var Qoe,KR,Zoe,wk,Xr,Dr,Tk,Joe,QR,ele,tle,rle,nle,ZR,ile,ale,sle,kk,mg,gg,JR,yg,ole,eM,tM,rM,nM,iM,lle,cle,aM,ule,sM,S2,hle,fle,dle,ple,mle,gle,yle,vle,Ek,xle,ble,wle,Tle,kle,Ele,Sle,Cle,Ale,_le,Lle,Sk,Dle,Nle,Rle,Mle,Ile,Ole,Ple,Ble,Fle,zle,Gle,$le,Vle,oM,lM,Ule,Hle,Wle,Yle,qle,Xle,jle,Kle,Qle,cM,Oe,uM=M(()=>{"use strict";(function(t){function e(r){return typeof r=="string"}o(e,"is"),t.is=e})(Qoe||(Qoe={}));(function(t){function e(r){return typeof r=="string"}o(e,"is"),t.is=e})(KR||(KR={}));(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(r){return typeof r=="number"&&t.MIN_VALUE<=r&&r<=t.MAX_VALUE}o(e,"is"),t.is=e})(Zoe||(Zoe={}));(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(r){return typeof r=="number"&&t.MIN_VALUE<=r&&r<=t.MAX_VALUE}o(e,"is"),t.is=e})(wk||(wk={}));(function(t){function e(n,i){return n===Number.MAX_VALUE&&(n=wk.MAX_VALUE),i===Number.MAX_VALUE&&(i=wk.MAX_VALUE),{line:n,character:i}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.objectLiteral(i)&&Oe.uinteger(i.line)&&Oe.uinteger(i.character)}o(r,"is"),t.is=r})(Xr||(Xr={}));(function(t){function e(n,i,a,s){if(Oe.uinteger(n)&&Oe.uinteger(i)&&Oe.uinteger(a)&&Oe.uinteger(s))return{start:Xr.create(n,i),end:Xr.create(a,s)};if(Xr.is(n)&&Xr.is(i))return{start:n,end:i};throw new Error(`Range#create called with invalid arguments[${n}, ${i}, ${a}, ${s}]`)}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.objectLiteral(i)&&Xr.is(i.start)&&Xr.is(i.end)}o(r,"is"),t.is=r})(Dr||(Dr={}));(function(t){function e(n,i){return{uri:n,range:i}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.objectLiteral(i)&&Dr.is(i.range)&&(Oe.string(i.uri)||Oe.undefined(i.uri))}o(r,"is"),t.is=r})(Tk||(Tk={}));(function(t){function e(n,i,a,s){return{targetUri:n,targetRange:i,targetSelectionRange:a,originSelectionRange:s}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.objectLiteral(i)&&Dr.is(i.targetRange)&&Oe.string(i.targetUri)&&Dr.is(i.targetSelectionRange)&&(Dr.is(i.originSelectionRange)||Oe.undefined(i.originSelectionRange))}o(r,"is"),t.is=r})(Joe||(Joe={}));(function(t){function e(n,i,a,s){return{red:n,green:i,blue:a,alpha:s}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.objectLiteral(i)&&Oe.numberRange(i.red,0,1)&&Oe.numberRange(i.green,0,1)&&Oe.numberRange(i.blue,0,1)&&Oe.numberRange(i.alpha,0,1)}o(r,"is"),t.is=r})(QR||(QR={}));(function(t){function e(n,i){return{range:n,color:i}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.objectLiteral(i)&&Dr.is(i.range)&&QR.is(i.color)}o(r,"is"),t.is=r})(ele||(ele={}));(function(t){function e(n,i,a){return{label:n,textEdit:i,additionalTextEdits:a}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.objectLiteral(i)&&Oe.string(i.label)&&(Oe.undefined(i.textEdit)||gg.is(i))&&(Oe.undefined(i.additionalTextEdits)||Oe.typedArray(i.additionalTextEdits,gg.is))}o(r,"is"),t.is=r})(tle||(tle={}));(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(rle||(rle={}));(function(t){function e(n,i,a,s,l,u){let h={startLine:n,endLine:i};return Oe.defined(a)&&(h.startCharacter=a),Oe.defined(s)&&(h.endCharacter=s),Oe.defined(l)&&(h.kind=l),Oe.defined(u)&&(h.collapsedText=u),h}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.objectLiteral(i)&&Oe.uinteger(i.startLine)&&Oe.uinteger(i.startLine)&&(Oe.undefined(i.startCharacter)||Oe.uinteger(i.startCharacter))&&(Oe.undefined(i.endCharacter)||Oe.uinteger(i.endCharacter))&&(Oe.undefined(i.kind)||Oe.string(i.kind))}o(r,"is"),t.is=r})(nle||(nle={}));(function(t){function e(n,i){return{location:n,message:i}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.defined(i)&&Tk.is(i.location)&&Oe.string(i.message)}o(r,"is"),t.is=r})(ZR||(ZR={}));(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(ile||(ile={}));(function(t){t.Unnecessary=1,t.Deprecated=2})(ale||(ale={}));(function(t){function e(r){let n=r;return Oe.objectLiteral(n)&&Oe.string(n.href)}o(e,"is"),t.is=e})(sle||(sle={}));(function(t){function e(n,i,a,s,l,u){let h={range:n,message:i};return Oe.defined(a)&&(h.severity=a),Oe.defined(s)&&(h.code=s),Oe.defined(l)&&(h.source=l),Oe.defined(u)&&(h.relatedInformation=u),h}o(e,"create"),t.create=e;function r(n){var i;let a=n;return Oe.defined(a)&&Dr.is(a.range)&&Oe.string(a.message)&&(Oe.number(a.severity)||Oe.undefined(a.severity))&&(Oe.integer(a.code)||Oe.string(a.code)||Oe.undefined(a.code))&&(Oe.undefined(a.codeDescription)||Oe.string((i=a.codeDescription)===null||i===void 0?void 0:i.href))&&(Oe.string(a.source)||Oe.undefined(a.source))&&(Oe.undefined(a.relatedInformation)||Oe.typedArray(a.relatedInformation,ZR.is))}o(r,"is"),t.is=r})(kk||(kk={}));(function(t){function e(n,i,...a){let s={title:n,command:i};return Oe.defined(a)&&a.length>0&&(s.arguments=a),s}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.defined(i)&&Oe.string(i.title)&&Oe.string(i.command)}o(r,"is"),t.is=r})(mg||(mg={}));(function(t){function e(a,s){return{range:a,newText:s}}o(e,"replace"),t.replace=e;function r(a,s){return{range:{start:a,end:a},newText:s}}o(r,"insert"),t.insert=r;function n(a){return{range:a,newText:""}}o(n,"del"),t.del=n;function i(a){let s=a;return Oe.objectLiteral(s)&&Oe.string(s.newText)&&Dr.is(s.range)}o(i,"is"),t.is=i})(gg||(gg={}));(function(t){function e(n,i,a){let s={label:n};return i!==void 0&&(s.needsConfirmation=i),a!==void 0&&(s.description=a),s}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.objectLiteral(i)&&Oe.string(i.label)&&(Oe.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(Oe.string(i.description)||i.description===void 0)}o(r,"is"),t.is=r})(JR||(JR={}));(function(t){function e(r){let n=r;return Oe.string(n)}o(e,"is"),t.is=e})(yg||(yg={}));(function(t){function e(a,s,l){return{range:a,newText:s,annotationId:l}}o(e,"replace"),t.replace=e;function r(a,s,l){return{range:{start:a,end:a},newText:s,annotationId:l}}o(r,"insert"),t.insert=r;function n(a,s){return{range:a,newText:"",annotationId:s}}o(n,"del"),t.del=n;function i(a){let s=a;return gg.is(s)&&(JR.is(s.annotationId)||yg.is(s.annotationId))}o(i,"is"),t.is=i})(ole||(ole={}));(function(t){function e(n,i){return{textDocument:n,edits:i}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.defined(i)&&aM.is(i.textDocument)&&Array.isArray(i.edits)}o(r,"is"),t.is=r})(eM||(eM={}));(function(t){function e(n,i,a){let s={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),a!==void 0&&(s.annotationId=a),s}o(e,"create"),t.create=e;function r(n){let i=n;return i&&i.kind==="create"&&Oe.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||Oe.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||Oe.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||yg.is(i.annotationId))}o(r,"is"),t.is=r})(tM||(tM={}));(function(t){function e(n,i,a,s){let l={kind:"rename",oldUri:n,newUri:i};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(l.options=a),s!==void 0&&(l.annotationId=s),l}o(e,"create"),t.create=e;function r(n){let i=n;return i&&i.kind==="rename"&&Oe.string(i.oldUri)&&Oe.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||Oe.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||Oe.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||yg.is(i.annotationId))}o(r,"is"),t.is=r})(rM||(rM={}));(function(t){function e(n,i,a){let s={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),a!==void 0&&(s.annotationId=a),s}o(e,"create"),t.create=e;function r(n){let i=n;return i&&i.kind==="delete"&&Oe.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||Oe.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||Oe.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||yg.is(i.annotationId))}o(r,"is"),t.is=r})(nM||(nM={}));(function(t){function e(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(i=>Oe.string(i.kind)?tM.is(i)||rM.is(i)||nM.is(i):eM.is(i)))}o(e,"is"),t.is=e})(iM||(iM={}));(function(t){function e(n){return{uri:n}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.defined(i)&&Oe.string(i.uri)}o(r,"is"),t.is=r})(lle||(lle={}));(function(t){function e(n,i){return{uri:n,version:i}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.defined(i)&&Oe.string(i.uri)&&Oe.integer(i.version)}o(r,"is"),t.is=r})(cle||(cle={}));(function(t){function e(n,i){return{uri:n,version:i}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.defined(i)&&Oe.string(i.uri)&&(i.version===null||Oe.integer(i.version))}o(r,"is"),t.is=r})(aM||(aM={}));(function(t){function e(n,i,a,s){return{uri:n,languageId:i,version:a,text:s}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.defined(i)&&Oe.string(i.uri)&&Oe.string(i.languageId)&&Oe.integer(i.version)&&Oe.string(i.text)}o(r,"is"),t.is=r})(ule||(ule={}));(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(r){let n=r;return n===t.PlainText||n===t.Markdown}o(e,"is"),t.is=e})(sM||(sM={}));(function(t){function e(r){let n=r;return Oe.objectLiteral(r)&&sM.is(n.kind)&&Oe.string(n.value)}o(e,"is"),t.is=e})(S2||(S2={}));(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(hle||(hle={}));(function(t){t.PlainText=1,t.Snippet=2})(fle||(fle={}));(function(t){t.Deprecated=1})(dle||(dle={}));(function(t){function e(n,i,a){return{newText:n,insert:i,replace:a}}o(e,"create"),t.create=e;function r(n){let i=n;return i&&Oe.string(i.newText)&&Dr.is(i.insert)&&Dr.is(i.replace)}o(r,"is"),t.is=r})(ple||(ple={}));(function(t){t.asIs=1,t.adjustIndentation=2})(mle||(mle={}));(function(t){function e(r){let n=r;return n&&(Oe.string(n.detail)||n.detail===void 0)&&(Oe.string(n.description)||n.description===void 0)}o(e,"is"),t.is=e})(gle||(gle={}));(function(t){function e(r){return{label:r}}o(e,"create"),t.create=e})(yle||(yle={}));(function(t){function e(r,n){return{items:r||[],isIncomplete:!!n}}o(e,"create"),t.create=e})(vle||(vle={}));(function(t){function e(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}o(e,"fromPlainText"),t.fromPlainText=e;function r(n){let i=n;return Oe.string(i)||Oe.objectLiteral(i)&&Oe.string(i.language)&&Oe.string(i.value)}o(r,"is"),t.is=r})(Ek||(Ek={}));(function(t){function e(r){let n=r;return!!n&&Oe.objectLiteral(n)&&(S2.is(n.contents)||Ek.is(n.contents)||Oe.typedArray(n.contents,Ek.is))&&(r.range===void 0||Dr.is(r.range))}o(e,"is"),t.is=e})(xle||(xle={}));(function(t){function e(r,n){return n?{label:r,documentation:n}:{label:r}}o(e,"create"),t.create=e})(ble||(ble={}));(function(t){function e(r,n,...i){let a={label:r};return Oe.defined(n)&&(a.documentation=n),Oe.defined(i)?a.parameters=i:a.parameters=[],a}o(e,"create"),t.create=e})(wle||(wle={}));(function(t){t.Text=1,t.Read=2,t.Write=3})(Tle||(Tle={}));(function(t){function e(r,n){let i={range:r};return Oe.number(n)&&(i.kind=n),i}o(e,"create"),t.create=e})(kle||(kle={}));(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Ele||(Ele={}));(function(t){t.Deprecated=1})(Sle||(Sle={}));(function(t){function e(r,n,i,a,s){let l={name:r,kind:n,location:{uri:a,range:i}};return s&&(l.containerName=s),l}o(e,"create"),t.create=e})(Cle||(Cle={}));(function(t){function e(r,n,i,a){return a!==void 0?{name:r,kind:n,location:{uri:i,range:a}}:{name:r,kind:n,location:{uri:i}}}o(e,"create"),t.create=e})(Ale||(Ale={}));(function(t){function e(n,i,a,s,l,u){let h={name:n,detail:i,kind:a,range:s,selectionRange:l};return u!==void 0&&(h.children=u),h}o(e,"create"),t.create=e;function r(n){let i=n;return i&&Oe.string(i.name)&&Oe.number(i.kind)&&Dr.is(i.range)&&Dr.is(i.selectionRange)&&(i.detail===void 0||Oe.string(i.detail))&&(i.deprecated===void 0||Oe.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}o(r,"is"),t.is=r})(_le||(_le={}));(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Lle||(Lle={}));(function(t){t.Invoked=1,t.Automatic=2})(Sk||(Sk={}));(function(t){function e(n,i,a){let s={diagnostics:n};return i!=null&&(s.only=i),a!=null&&(s.triggerKind=a),s}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.defined(i)&&Oe.typedArray(i.diagnostics,kk.is)&&(i.only===void 0||Oe.typedArray(i.only,Oe.string))&&(i.triggerKind===void 0||i.triggerKind===Sk.Invoked||i.triggerKind===Sk.Automatic)}o(r,"is"),t.is=r})(Dle||(Dle={}));(function(t){function e(n,i,a){let s={title:n},l=!0;return typeof i=="string"?(l=!1,s.kind=i):mg.is(i)?s.command=i:s.edit=i,l&&a!==void 0&&(s.kind=a),s}o(e,"create"),t.create=e;function r(n){let i=n;return i&&Oe.string(i.title)&&(i.diagnostics===void 0||Oe.typedArray(i.diagnostics,kk.is))&&(i.kind===void 0||Oe.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||mg.is(i.command))&&(i.isPreferred===void 0||Oe.boolean(i.isPreferred))&&(i.edit===void 0||iM.is(i.edit))}o(r,"is"),t.is=r})(Nle||(Nle={}));(function(t){function e(n,i){let a={range:n};return Oe.defined(i)&&(a.data=i),a}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.defined(i)&&Dr.is(i.range)&&(Oe.undefined(i.command)||mg.is(i.command))}o(r,"is"),t.is=r})(Rle||(Rle={}));(function(t){function e(n,i){return{tabSize:n,insertSpaces:i}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.defined(i)&&Oe.uinteger(i.tabSize)&&Oe.boolean(i.insertSpaces)}o(r,"is"),t.is=r})(Mle||(Mle={}));(function(t){function e(n,i,a){return{range:n,target:i,data:a}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.defined(i)&&Dr.is(i.range)&&(Oe.undefined(i.target)||Oe.string(i.target))}o(r,"is"),t.is=r})(Ile||(Ile={}));(function(t){function e(n,i){return{range:n,parent:i}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.objectLiteral(i)&&Dr.is(i.range)&&(i.parent===void 0||t.is(i.parent))}o(r,"is"),t.is=r})(Ole||(Ole={}));(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(Ple||(Ple={}));(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Ble||(Ble={}));(function(t){function e(r){let n=r;return Oe.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}o(e,"is"),t.is=e})(Fle||(Fle={}));(function(t){function e(n,i){return{range:n,text:i}}o(e,"create"),t.create=e;function r(n){let i=n;return i!=null&&Dr.is(i.range)&&Oe.string(i.text)}o(r,"is"),t.is=r})(zle||(zle={}));(function(t){function e(n,i,a){return{range:n,variableName:i,caseSensitiveLookup:a}}o(e,"create"),t.create=e;function r(n){let i=n;return i!=null&&Dr.is(i.range)&&Oe.boolean(i.caseSensitiveLookup)&&(Oe.string(i.variableName)||i.variableName===void 0)}o(r,"is"),t.is=r})(Gle||(Gle={}));(function(t){function e(n,i){return{range:n,expression:i}}o(e,"create"),t.create=e;function r(n){let i=n;return i!=null&&Dr.is(i.range)&&(Oe.string(i.expression)||i.expression===void 0)}o(r,"is"),t.is=r})($le||($le={}));(function(t){function e(n,i){return{frameId:n,stoppedLocation:i}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.defined(i)&&Dr.is(n.stoppedLocation)}o(r,"is"),t.is=r})(Vle||(Vle={}));(function(t){t.Type=1,t.Parameter=2;function e(r){return r===1||r===2}o(e,"is"),t.is=e})(oM||(oM={}));(function(t){function e(n){return{value:n}}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.objectLiteral(i)&&(i.tooltip===void 0||Oe.string(i.tooltip)||S2.is(i.tooltip))&&(i.location===void 0||Tk.is(i.location))&&(i.command===void 0||mg.is(i.command))}o(r,"is"),t.is=r})(lM||(lM={}));(function(t){function e(n,i,a){let s={position:n,label:i};return a!==void 0&&(s.kind=a),s}o(e,"create"),t.create=e;function r(n){let i=n;return Oe.objectLiteral(i)&&Xr.is(i.position)&&(Oe.string(i.label)||Oe.typedArray(i.label,lM.is))&&(i.kind===void 0||oM.is(i.kind))&&i.textEdits===void 0||Oe.typedArray(i.textEdits,gg.is)&&(i.tooltip===void 0||Oe.string(i.tooltip)||S2.is(i.tooltip))&&(i.paddingLeft===void 0||Oe.boolean(i.paddingLeft))&&(i.paddingRight===void 0||Oe.boolean(i.paddingRight))}o(r,"is"),t.is=r})(Ule||(Ule={}));(function(t){function e(r){return{kind:"snippet",value:r}}o(e,"createSnippet"),t.createSnippet=e})(Hle||(Hle={}));(function(t){function e(r,n,i,a){return{insertText:r,filterText:n,range:i,command:a}}o(e,"create"),t.create=e})(Wle||(Wle={}));(function(t){function e(r){return{items:r}}o(e,"create"),t.create=e})(Yle||(Yle={}));(function(t){t.Invoked=0,t.Automatic=1})(qle||(qle={}));(function(t){function e(r,n){return{range:r,text:n}}o(e,"create"),t.create=e})(Xle||(Xle={}));(function(t){function e(r,n){return{triggerKind:r,selectedCompletionInfo:n}}o(e,"create"),t.create=e})(jle||(jle={}));(function(t){function e(r){let n=r;return Oe.objectLiteral(n)&&KR.is(n.uri)&&Oe.string(n.name)}o(e,"is"),t.is=e})(Kle||(Kle={}));(function(t){function e(a,s,l,u){return new cM(a,s,l,u)}o(e,"create"),t.create=e;function r(a){let s=a;return!!(Oe.defined(s)&&Oe.string(s.uri)&&(Oe.undefined(s.languageId)||Oe.string(s.languageId))&&Oe.uinteger(s.lineCount)&&Oe.func(s.getText)&&Oe.func(s.positionAt)&&Oe.func(s.offsetAt))}o(r,"is"),t.is=r;function n(a,s){let l=a.getText(),u=i(s,(f,d)=>{let p=f.range.start.line-d.range.start.line;return p===0?f.range.start.character-d.range.start.character:p}),h=l.length;for(let f=u.length-1;f>=0;f--){let d=u[f],p=a.offsetAt(d.range.start),m=a.offsetAt(d.range.end);if(m<=h)l=l.substring(0,p)+d.newText+l.substring(m,l.length);else throw new Error("Overlapping edit");h=p}return l}o(n,"applyEdits"),t.applyEdits=n;function i(a,s){if(a.length<=1)return a;let l=a.length/2|0,u=a.slice(0,l),h=a.slice(l);i(u,s),i(h,s);let f=0,d=0,p=0;for(;f0&&e.push(r.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return Xr.create(0,e);for(;ne?i=s:n=s+1}let a=n-1;return Xr.create(a,e-r[a])}offsetAt(e){let r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;let n=r[e.line],i=e.line+1"u"}o(n,"undefined"),t.undefined=n;function i(m){return m===!0||m===!1}o(i,"boolean"),t.boolean=i;function a(m){return e.call(m)==="[object String]"}o(a,"string"),t.string=a;function s(m){return e.call(m)==="[object Number]"}o(s,"number"),t.number=s;function l(m,g,y){return e.call(m)==="[object Number]"&&g<=m&&m<=y}o(l,"numberRange"),t.numberRange=l;function u(m){return e.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}o(u,"integer"),t.integer=u;function h(m){return e.call(m)==="[object Number]"&&0<=m&&m<=2147483647}o(h,"uinteger"),t.uinteger=h;function f(m){return e.call(m)==="[object Function]"}o(f,"func"),t.func=f;function d(m){return m!==null&&typeof m=="object"}o(d,"objectLiteral"),t.objectLiteral=d;function p(m,g){return Array.isArray(m)&&m.every(g)}o(p,"typedArray"),t.typedArray=p})(Oe||(Oe={}))});var C2,A2,c0,u0,hM,vg,Ck=M(()=>{"use strict";uM();Yo();Ml();C2=class{static{o(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]}buildRootNode(e){return this.rootNode=new vg(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let r=new u0;return r.grammarSource=e,r.root=this.rootNode,this.current.content.push(r),this.nodeStack.push(r),r}buildLeafNode(e,r){let n=new c0(e.startOffset,e.image.length,$m(e),e.tokenType,!1);return n.grammarSource=r,n.root=this.rootNode,this.current.content.push(n),n}removeNode(e){let r=e.container;if(r){let n=r.content.indexOf(e);n>=0&&r.content.splice(n,1)}}construct(e){let r=this.current;typeof e.$type=="string"&&(this.current.astNode=e),e.$cstNode=r;let n=this.nodeStack.pop();n?.content.length===0&&this.removeNode(n)}addHiddenTokens(e){for(let r of e){let n=new c0(r.startOffset,r.image.length,$m(r),r.tokenType,!0);n.root=this.rootNode,this.addHiddenToken(this.rootNode,n)}}addHiddenToken(e,r){let{offset:n,end:i}=r;for(let a=0;al&&i=0;e--){let r=this.content[e];if(!r.hidden)return r}return this.content[this.content.length-1]}},hM=class t extends Array{static{o(this,"CstNodeContainer")}constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,t.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,r,...n){return this.addParents(n),super.splice(e,r,...n)}addParents(e){for(let r of e)r.container=this.parent}},vg=class extends u0{static{o(this,"RootCstNodeImpl")}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}}});function fM(t){return t.$type===Ak}var Ak,Zle,Jle,_2,L2,_k,xg,D2,gze,dM,N2=M(()=>{"use strict";s0();Koe();Ac();Pl();es();Ck();Ak=Symbol("Datatype");o(fM,"isDataTypeNode");Zle="\u200B",Jle=o(t=>t.endsWith(Zle)?t:t+Zle,"withRuleSuffix"),_2=class{static{o(this,"AbstractLangiumParser")}constructor(e){this._unorderedGroups=new Map,this.lexer=e.parser.Lexer;let r=this.lexer.definition;this.wrapper=new dM(r,Object.assign(Object.assign({},e.parser.ParserConfig),{errorMessageProvider:e.parser.ParserErrorMessageProvider}))}alternatives(e,r){this.wrapper.wrapOr(e,r)}optional(e,r){this.wrapper.wrapOption(e,r)}many(e,r){this.wrapper.wrapMany(e,r)}atLeastOne(e,r){this.wrapper.wrapAtLeastOne(e,r)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},L2=class extends _2{static{o(this,"LangiumParser")}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new C2,this.stack=[],this.assignmentMap=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,r){let n=e.fragment?void 0:e2(e)?Ak:Zd(e),i=this.wrapper.DEFINE_RULE(Jle(e.name),this.startImplementation(n,r).bind(this));return e.entry&&(this.mainRule=i),i}parse(e){this.nodeBuilder.buildRootNode(e);let r=this.lexer.tokenize(e);this.wrapper.input=r.tokens;let n=this.mainRule.call(this.wrapper,{});return this.nodeBuilder.addHiddenTokens(r.hidden),this.unorderedGroups.clear(),{value:n,lexerErrors:r.errors,parserErrors:this.wrapper.errors}}startImplementation(e,r){return n=>{if(!this.isRecording()){let a={$type:e};this.stack.push(a),e===Ak&&(a.value="")}let i;try{i=r(n)}catch{i=void 0}return!this.isRecording()&&i===void 0&&(i=this.construct()),i}}consume(e,r,n){let i=this.wrapper.wrapConsume(e,r);if(!this.isRecording()&&this.isValidToken(i)){let a=this.nodeBuilder.buildLeafNode(i,n),{assignment:s,isCrossRef:l}=this.getAssignment(n),u=this.current;if(s){let h=Xo(n)?i.image:this.converter.convert(i.image,a);this.assign(s.operator,s.feature,h,a,l)}else if(fM(u)){let h=i.image;Xo(n)||(h=this.converter.convert(h,a).toString()),u.value+=h}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,r,n,i){let a;this.isRecording()||(a=this.nodeBuilder.buildCompositeNode(n));let s=this.wrapper.wrapSubrule(e,r,i);!this.isRecording()&&a&&a.length>0&&this.performSubruleAssignment(s,n,a)}performSubruleAssignment(e,r,n){let{assignment:i,isCrossRef:a}=this.getAssignment(r);if(i)this.assign(i.operator,i.feature,e,n,a);else if(!i){let s=this.current;if(fM(s))s.value+=e.toString();else if(typeof e=="object"&&e){let l=e.$type,u=this.assignWithoutOverride(e,s);l&&(u.$type=l);let h=u;this.stack.pop(),this.stack.push(h)}}}action(e,r){if(!this.isRecording()){let n=this.current;if(!n.$cstNode&&r.feature&&r.operator){n=this.construct(!1);let a=n.$cstNode.feature;this.nodeBuilder.buildCompositeNode(a)}let i={$type:e};this.stack.pop(),this.stack.push(i),r.feature&&r.operator&&this.assign(r.operator,r.feature,n,n.$cstNode,!1)}}construct(e=!0){if(this.isRecording())return;let r=this.current;return CT(r),this.nodeBuilder.construct(r),e&&this.stack.pop(),fM(r)?this.converter.convert(r.value,r.$cstNode):($N(this.astReflection,r),r)}getAssignment(e){if(!this.assignmentMap.has(e)){let r=qd(e,Il);this.assignmentMap.set(e,{assignment:r,isCrossRef:r?Yd(r.terminal):!1})}return this.assignmentMap.get(e)}assign(e,r,n,i,a){let s=this.current,l;switch(a&&typeof n=="string"?l=this.linker.buildReference(s,r,i,n):l=n,e){case"=":{s[r]=l;break}case"?=":{s[r]=!0;break}case"+=":Array.isArray(s[r])||(s[r]=[]),s[r].push(l)}}assignWithoutOverride(e,r){for(let[n,i]of Object.entries(r)){let a=e[n];a===void 0?e[n]=i:Array.isArray(a)&&Array.isArray(i)&&(i.push(...a),e[n]=i)}return e}get definitionErrors(){return this.wrapper.definitionErrors}},_k=class{static{o(this,"AbstractParserErrorMessageProvider")}buildMismatchTokenMessage(e){return Fu.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return Fu.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return Fu.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return Fu.buildEarlyExitMessage(e)}},xg=class extends _k{static{o(this,"LangiumParserErrorMessageProvider")}buildMismatchTokenMessage({expected:e,actual:r}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${r.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},D2=class extends _2{static{o(this,"LangiumCompletionParser")}constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();let r=this.lexer.tokenize(e);return this.tokens=r.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,r){let n=this.wrapper.DEFINE_RULE(Jle(e.name),this.startImplementation(r).bind(this));return e.entry&&(this.mainRule=n),n}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return r=>{let n=this.keepStackSize();try{e(r)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,r,n){this.wrapper.wrapConsume(e,r),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,r,n,i){this.before(n),this.wrapper.wrapSubrule(e,r,i),this.after(n)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let r=this.elementStack.lastIndexOf(e);r>=0&&this.elementStack.splice(r)}}get currIdx(){return this.wrapper.currIdx}},gze={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new xg},dM=class extends b2{static{o(this,"ChevrotainWrapper")}constructor(e,r){let n=r&&"maxLookahead"in r;super(e,Object.assign(Object.assign(Object.assign({},gze),{lookaheadStrategy:n?new zu({maxLookahead:r.maxLookahead}):new E2}),r))}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,r){return this.RULE(e,r)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,r){return this.consume(e,r)}wrapSubrule(e,r,n){return this.subrule(e,r,{ARGS:[n]})}wrapOr(e,r){this.or(e,r)}wrapOption(e,r){this.option(e,r)}wrapMany(e,r){this.many(e,r)}wrapAtLeastOne(e,r){this.atLeastOne(e,r)}}});function Dk(t,e,r){return yze({parser:e,tokens:r,rules:new Map,ruleNames:new Map},t),e}function yze(t,e){let r=Zv(e,!1),n=tn(e.rules).filter(Ma).filter(i=>r.has(i));for(let i of n){let a=Object.assign(Object.assign({},t),{consume:1,optional:1,subrule:1,many:1,or:1});a.rules.set(i.name,t.parser.rule(i,h0(a,i.definition)))}}function h0(t,e,r=!1){let n;if(Xo(e))n=Eze(t,e);else if(Ru(e))n=vze(t,e);else if(Il(e))n=h0(t,e.terminal);else if(Yd(e))n=ece(t,e);else if(Ol(e))n=xze(t,e);else if(kT(e))n=wze(t,e);else if(ST(e))n=Tze(t,e);else if(tf(e))n=kze(t,e);else if(wN(e)){let i=t.consume++;n=o(()=>t.parser.consume(i,oo,e),"method")}else throw new Wd(e.$cstNode,`Unexpected element type: ${e.$type}`);return tce(t,r?void 0:Lk(e),n,e.cardinality)}function vze(t,e){let r=Zd(e);return()=>t.parser.action(r,e)}function xze(t,e){let r=e.rule.ref;if(Ma(r)){let n=t.subrule++,i=e.arguments.length>0?bze(r,e.arguments):()=>({});return a=>t.parser.subrule(n,rce(t,r),e,i(a))}else if(qo(r)){let n=t.consume++,i=pM(t,r.name);return()=>t.parser.consume(n,i,e)}else if(r)ef(r);else throw new Wd(e.$cstNode,`Undefined rule type: ${e.$type}`)}function bze(t,e){let r=e.map(n=>Gu(n.value));return n=>{let i={};for(let a=0;ae(n)||r(n)}else if(qD(t)){let e=Gu(t.left),r=Gu(t.right);return n=>e(n)&&r(n)}else if(eN(t)){let e=Gu(t.value);return r=>!e(r)}else if(iN(t)){let e=t.parameter.ref.name;return r=>r!==void 0&&r[e]===!0}else if(WD(t)){let e=!!t.true;return()=>e}ef(t)}function wze(t,e){if(e.elements.length===1)return h0(t,e.elements[0]);{let r=[];for(let i of e.elements){let a={ALT:h0(t,i,!0)},s=Lk(i);s&&(a.GATE=Gu(s)),r.push(a)}let n=t.or++;return i=>t.parser.alternatives(n,r.map(a=>{let s={ALT:o(()=>a.ALT(i),"ALT")},l=a.GATE;return l&&(s.GATE=()=>l(i)),s}))}}function Tze(t,e){if(e.elements.length===1)return h0(t,e.elements[0]);let r=[];for(let l of e.elements){let u={ALT:h0(t,l,!0)},h=Lk(l);h&&(u.GATE=Gu(h)),r.push(u)}let n=t.or++,i=o((l,u)=>{let h=u.getRuleStack().join("-");return`uGroup_${l}_${h}`},"idFunc"),a=o(l=>t.parser.alternatives(n,r.map((u,h)=>{let f={ALT:o(()=>!0,"ALT")},d=t.parser;f.ALT=()=>{if(u.ALT(l),!d.isRecording()){let m=i(n,d);d.unorderedGroups.get(m)||d.unorderedGroups.set(m,[]);let g=d.unorderedGroups.get(m);typeof g?.[h]>"u"&&(g[h]=!0)}};let p=u.GATE;return p?f.GATE=()=>p(l):f.GATE=()=>{let m=d.unorderedGroups.get(i(n,d));return!m?.[h]},f})),"alternatives"),s=tce(t,Lk(e),a,"*");return l=>{s(l),t.parser.isRecording()||t.parser.unorderedGroups.delete(i(n,t.parser))}}function kze(t,e){let r=e.elements.map(n=>h0(t,n));return n=>r.forEach(i=>i(n))}function Lk(t){if(tf(t))return t.guardCondition}function ece(t,e,r=e.terminal){if(r)if(Ol(r)&&Ma(r.rule.ref)){let n=t.subrule++;return i=>t.parser.subrule(n,rce(t,r.rule.ref),e,i)}else if(Ol(r)&&qo(r.rule.ref)){let n=t.consume++,i=pM(t,r.rule.ref.name);return()=>t.parser.consume(n,i,e)}else if(Xo(r)){let n=t.consume++,i=pM(t,r.value);return()=>t.parser.consume(n,i,e)}else throw new Error("Could not build cross reference parser");else{if(!e.type.ref)throw new Error("Could not resolve reference to type: "+e.type.$refText);let n=RT(e.type.ref),i=n?.terminal;if(!i)throw new Error("Could not find name assignment for type: "+Zd(e.type.ref));return ece(t,e,i)}}function Eze(t,e){let r=t.consume++,n=t.tokens[e.value];if(!n)throw new Error("Could not find token for keyword: "+e.value);return()=>t.parser.consume(r,n,e)}function tce(t,e,r,n){let i=e&&Gu(e);if(!n)if(i){let a=t.or++;return s=>t.parser.alternatives(a,[{ALT:o(()=>r(s),"ALT"),GATE:o(()=>i(s),"GATE")},{ALT:vk(),GATE:o(()=>!i(s),"GATE")}])}else return r;if(n==="*"){let a=t.many++;return s=>t.parser.many(a,{DEF:o(()=>r(s),"DEF"),GATE:i?()=>i(s):void 0})}else if(n==="+"){let a=t.many++;if(i){let s=t.or++;return l=>t.parser.alternatives(s,[{ALT:o(()=>t.parser.atLeastOne(a,{DEF:o(()=>r(l),"DEF")}),"ALT"),GATE:o(()=>i(l),"GATE")},{ALT:vk(),GATE:o(()=>!i(l),"GATE")}])}else return s=>t.parser.atLeastOne(a,{DEF:o(()=>r(s),"DEF")})}else if(n==="?"){let a=t.optional++;return s=>t.parser.optional(a,{DEF:o(()=>r(s),"DEF"),GATE:i?()=>i(s):void 0})}else ef(n)}function rce(t,e){let r=Sze(t,e),n=t.rules.get(r);if(!n)throw new Error(`Rule "${r}" not found."`);return n}function Sze(t,e){if(Ma(e))return e.name;if(t.ruleNames.has(e))return t.ruleNames.get(e);{let r=e,n=r.$container,i=e.$type;for(;!Ma(n);)(tf(n)||kT(n)||ST(n))&&(i=n.elements.indexOf(r).toString()+":"+i),r=n,n=n.$container;return i=n.name+":"+i,t.ruleNames.set(e,i),i}}function pM(t,e){let r=t.tokens[e];if(!r)throw new Error(`Token "${e}" not found."`);return r}var mM=M(()=>{"use strict";s0();Ac();gT();Rs();Pl();o(Dk,"createParser");o(yze,"buildRules");o(h0,"buildElement");o(vze,"buildAction");o(xze,"buildRuleCall");o(bze,"buildRuleCallPredicate");o(Gu,"buildPredicate");o(wze,"buildAlternatives");o(Tze,"buildUnorderedGroup");o(kze,"buildGroup");o(Lk,"getGuardCondition");o(ece,"buildCrossReference");o(Eze,"buildKeyword");o(tce,"wrap");o(rce,"getRule");o(Sze,"getRuleName");o(pM,"getToken")});function gM(t){let e=t.Grammar,r=t.parser.Lexer,n=new D2(t);return Dk(e,n,r.definition),n.finalize(),n}var yM=M(()=>{"use strict";N2();mM();o(gM,"createCompletionParser")});function vM(t){let e=nce(t);return e.finalize(),e}function nce(t){let e=t.Grammar,r=t.parser.Lexer,n=new L2(t);return Dk(e,n,r.definition)}var xM=M(()=>{"use strict";N2();mM();o(vM,"createLangiumParser");o(nce,"prepareLangiumParser")});var f0,bM=M(()=>{"use strict";s0();Ac();es();Pl();Wm();Rs();f0=class{static{o(this,"DefaultTokenBuilder")}buildTokens(e,r){let n=tn(Zv(e,!1)),i=this.buildTerminalTokens(n),a=this.buildKeywordTokens(n,i,r);return i.forEach(s=>{let l=s.PATTERN;typeof l=="object"&&l&&"test"in l&&DT(l)?a.unshift(s):a.push(s)}),a}buildTerminalTokens(e){return e.filter(qo).filter(r=>!r.fragment).map(r=>this.buildTerminalToken(r)).toArray()}buildTerminalToken(e){let r=Ym(e),n=this.requiresCustomPattern(r)?this.regexPatternFunction(r):r,i={name:e.name,PATTERN:n,LINE_BREAKS:!0};return e.hidden&&(i.GROUP=DT(r)?oi.SKIPPED:"hidden"),i}requiresCustomPattern(e){return e.flags.includes("u")?!0:!!(e.source.includes("?<=")||e.source.includes("?(r.lastIndex=i,r.exec(n))}buildKeywordTokens(e,r,n){return e.filter(Ma).flatMap(i=>_c(i).filter(Xo)).distinct(i=>i.value).toArray().sort((i,a)=>a.value.length-i.value.length).map(i=>this.buildKeywordToken(i,r,!!n?.caseInsensitive))}buildKeywordToken(e,r,n){return{name:e.value,PATTERN:this.buildKeywordPattern(e,n),LONGER_ALT:this.findLongerAlt(e,r)}}buildKeywordPattern(e,r){return r?new RegExp(XN(e.value)):e.value}findLongerAlt(e,r){return r.reduce((n,i)=>{let a=i?.PATTERN;return a?.source&&jN("^"+a.source+"$",e.value)&&n.push(i),n},[])}}});var d0,Nc,wM=M(()=>{"use strict";Ac();Pl();d0=class{static{o(this,"DefaultValueConverter")}convert(e,r){let n=r.grammarSource;if(Yd(n)&&(n=ZN(n)),Ol(n)){let i=n.rule.ref;if(!i)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(i,e,r)}return e}runConverter(e,r,n){var i;switch(e.name.toUpperCase()){case"INT":return Nc.convertInt(r);case"STRING":return Nc.convertString(r);case"ID":return Nc.convertID(r)}switch((i=sR(e))===null||i===void 0?void 0:i.toLowerCase()){case"number":return Nc.convertNumber(r);case"boolean":return Nc.convertBoolean(r);case"bigint":return Nc.convertBigint(r);case"date":return Nc.convertDate(r);default:return r}}};(function(t){function e(h){let f="";for(let d=1;d{"use strict";Object.defineProperty(EM,"__esModule",{value:!0});var TM;function kM(){if(TM===void 0)throw new Error("No runtime abstraction layer installed");return TM}o(kM,"RAL");(function(t){function e(r){if(r===void 0)throw new Error("No runtime abstraction layer provided");TM=r}o(e,"install"),t.install=e})(kM||(kM={}));EM.default=kM});var sce=Ni(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.stringArray=Ia.array=Ia.func=Ia.error=Ia.number=Ia.string=Ia.boolean=void 0;function Cze(t){return t===!0||t===!1}o(Cze,"boolean");Ia.boolean=Cze;function ice(t){return typeof t=="string"||t instanceof String}o(ice,"string");Ia.string=ice;function Aze(t){return typeof t=="number"||t instanceof Number}o(Aze,"number");Ia.number=Aze;function _ze(t){return t instanceof Error}o(_ze,"error");Ia.error=_ze;function Lze(t){return typeof t=="function"}o(Lze,"func");Ia.func=Lze;function ace(t){return Array.isArray(t)}o(ace,"array");Ia.array=ace;function Dze(t){return ace(t)&&t.every(e=>ice(e))}o(Dze,"stringArray");Ia.stringArray=Dze});var AM=Ni(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.Emitter=bg.Event=void 0;var Nze=SM(),oce;(function(t){let e={dispose(){}};t.None=function(){return e}})(oce||(bg.Event=oce={}));var CM=class{static{o(this,"CallbackList")}add(e,r=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(r),Array.isArray(n)&&n.push({dispose:o(()=>this.remove(e,r),"dispose")})}remove(e,r=null){if(!this._callbacks)return;let n=!1;for(let i=0,a=this._callbacks.length;i{this._callbacks||(this._callbacks=new CM),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,r);let i={dispose:o(()=>{this._callbacks&&(this._callbacks.remove(e,r),i.dispose=t._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(n)&&n.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};bg.Emitter=Nk;Nk._noop=function(){}});var lce=Ni(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});wg.CancellationTokenSource=wg.CancellationToken=void 0;var Rze=SM(),Mze=sce(),_M=AM(),Rk;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:_M.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:_M.Event.None});function e(r){let n=r;return n&&(n===t.None||n===t.Cancelled||Mze.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}o(e,"is"),t.is=e})(Rk||(wg.CancellationToken=Rk={}));var Ize=Object.freeze(function(t,e){let r=(0,Rze.default)().timer.setTimeout(t.bind(e),0);return{dispose(){r.dispose()}}}),Mk=class{static{o(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Ize:(this._emitter||(this._emitter=new _M.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},LM=class{static{o(this,"CancellationTokenSource")}get token(){return this._token||(this._token=new Mk),this._token}cancel(){this._token?this._token.cancel():this._token=Rk.Cancelled}dispose(){this._token?this._token instanceof Mk&&this._token.dispose():this._token=Rk.None}};wg.CancellationTokenSource=LM});var Cr={};var Ko=M(()=>{"use strict";Er(Cr,ka(lce(),1))});function NM(){return new Promise(t=>{typeof setImmediate>"u"?setTimeout(t,0):setImmediate(t)})}function uce(){return DM=Date.now(),new Cr.CancellationTokenSource}function hce(t){cce=t}function sf(t){return t===Rc}async function Gi(t){if(t===Cr.CancellationToken.None)return;let e=Date.now();if(e-DM>=cce&&(DM=e,await NM()),t.isCancellationRequested)throw Rc}var DM,cce,Rc,as,Qo=M(()=>{"use strict";Ko();o(NM,"delayNextTick");DM=0,cce=10;o(uce,"startCancelableOperation");o(hce,"setInterruptionPeriod");Rc=Symbol("OperationCancelled");o(sf,"isOperationCancelled");o(Gi,"interruptAndCheck");as=class{static{o(this,"Deferred")}constructor(){this.promise=new Promise((e,r)=>{this.resolve=n=>(e(n),this),this.reject=n=>(r(n),this)})}}});function RM(t,e){if(t.length<=1)return t;let r=t.length/2|0,n=t.slice(0,r),i=t.slice(r);RM(n,e),RM(i,e);let a=0,s=0,l=0;for(;ar.line||e.line===r.line&&e.character>r.character?{start:r,end:e}:t}function Oze(t){let e=pce(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var Ik,Tg,mce=M(()=>{"use strict";Ik=class t{static{o(this,"FullTextDocument")}constructor(e,r,n,i){this._uri=e,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let r=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(r,n)}return this._content}update(e,r){for(let n of e)if(t.isIncremental(n)){let i=pce(n.range),a=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,a)+n.text+this._content.substring(s,this._content.length);let l=Math.max(i.start.line,0),u=Math.max(i.end.line,0),h=this._lineOffsets,f=fce(n.text,!1,a);if(u-l===f.length)for(let p=0,m=f.length;pe?i=s:n=s+1}let a=n-1;return e=this.ensureBeforeEOL(e,r[a]),{line:a,character:e-r[a]}}offsetAt(e){let r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;let n=r[e.line];if(e.character<=0)return n;let i=e.line+1r&&dce(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let r=e;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(e){let r=e;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}};(function(t){function e(i,a,s,l){return new Ik(i,a,s,l)}o(e,"create"),t.create=e;function r(i,a,s){if(i instanceof Ik)return i.update(a,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}o(r,"update"),t.update=r;function n(i,a){let s=i.getText(),l=RM(a.map(Oze),(f,d)=>{let p=f.range.start.line-d.range.start.line;return p===0?f.range.start.character-d.range.start.character:p}),u=0,h=[];for(let f of l){let d=i.offsetAt(f.range.start);if(du&&h.push(s.substring(u,d)),f.newText.length&&h.push(f.newText),u=i.offsetAt(f.range.end)}return h.push(s.substr(u)),h.join("")}o(n,"applyEdits"),t.applyEdits=n})(Tg||(Tg={}));o(RM,"mergeSort");o(fce,"computeLineOffsets");o(dce,"isEOL");o(pce,"getWellformedRange");o(Oze,"getWellformedEdit")});var gce,Os,kg,MM=M(()=>{"use strict";(()=>{"use strict";var t={470:i=>{function a(u){if(typeof u!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(u))}o(a,"e");function s(u,h){for(var f,d="",p=0,m=-1,g=0,y=0;y<=u.length;++y){if(y2){var v=d.lastIndexOf("/");if(v!==d.length-1){v===-1?(d="",p=0):p=(d=d.slice(0,v)).length-1-d.lastIndexOf("/"),m=y,g=0;continue}}else if(d.length===2||d.length===1){d="",p=0,m=y,g=0;continue}}h&&(d.length>0?d+="/..":d="..",p=2)}else d.length>0?d+="/"+u.slice(m+1,y):d=u.slice(m+1,y),p=y-m-1;m=y,g=0}else f===46&&g!==-1?++g:g=-1}return d}o(s,"r");var l={resolve:o(function(){for(var u,h="",f=!1,d=arguments.length-1;d>=-1&&!f;d--){var p;d>=0?p=arguments[d]:(u===void 0&&(u=process.cwd()),p=u),a(p),p.length!==0&&(h=p+"/"+h,f=p.charCodeAt(0)===47)}return h=s(h,!f),f?h.length>0?"/"+h:"/":h.length>0?h:"."},"resolve"),normalize:o(function(u){if(a(u),u.length===0)return".";var h=u.charCodeAt(0)===47,f=u.charCodeAt(u.length-1)===47;return(u=s(u,!h)).length!==0||h||(u="."),u.length>0&&f&&(u+="/"),h?"/"+u:u},"normalize"),isAbsolute:o(function(u){return a(u),u.length>0&&u.charCodeAt(0)===47},"isAbsolute"),join:o(function(){if(arguments.length===0)return".";for(var u,h=0;h0&&(u===void 0?u=f:u+="/"+f)}return u===void 0?".":l.normalize(u)},"join"),relative:o(function(u,h){if(a(u),a(h),u===h||(u=l.resolve(u))===(h=l.resolve(h)))return"";for(var f=1;fy){if(h.charCodeAt(m+x)===47)return h.slice(m+x+1);if(x===0)return h.slice(m+x)}else p>y&&(u.charCodeAt(f+x)===47?v=x:x===0&&(v=0));break}var b=u.charCodeAt(f+x);if(b!==h.charCodeAt(m+x))break;b===47&&(v=x)}var w="";for(x=f+v+1;x<=d;++x)x!==d&&u.charCodeAt(x)!==47||(w.length===0?w+="..":w+="/..");return w.length>0?w+h.slice(m+v):(m+=v,h.charCodeAt(m)===47&&++m,h.slice(m))},"relative"),_makeLong:o(function(u){return u},"_makeLong"),dirname:o(function(u){if(a(u),u.length===0)return".";for(var h=u.charCodeAt(0),f=h===47,d=-1,p=!0,m=u.length-1;m>=1;--m)if((h=u.charCodeAt(m))===47){if(!p){d=m;break}}else p=!1;return d===-1?f?"/":".":f&&d===1?"//":u.slice(0,d)},"dirname"),basename:o(function(u,h){if(h!==void 0&&typeof h!="string")throw new TypeError('"ext" argument must be a string');a(u);var f,d=0,p=-1,m=!0;if(h!==void 0&&h.length>0&&h.length<=u.length){if(h.length===u.length&&h===u)return"";var g=h.length-1,y=-1;for(f=u.length-1;f>=0;--f){var v=u.charCodeAt(f);if(v===47){if(!m){d=f+1;break}}else y===-1&&(m=!1,y=f+1),g>=0&&(v===h.charCodeAt(g)?--g==-1&&(p=f):(g=-1,p=y))}return d===p?p=y:p===-1&&(p=u.length),u.slice(d,p)}for(f=u.length-1;f>=0;--f)if(u.charCodeAt(f)===47){if(!m){d=f+1;break}}else p===-1&&(m=!1,p=f+1);return p===-1?"":u.slice(d,p)},"basename"),extname:o(function(u){a(u);for(var h=-1,f=0,d=-1,p=!0,m=0,g=u.length-1;g>=0;--g){var y=u.charCodeAt(g);if(y!==47)d===-1&&(p=!1,d=g+1),y===46?h===-1?h=g:m!==1&&(m=1):h!==-1&&(m=-1);else if(!p){f=g+1;break}}return h===-1||d===-1||m===0||m===1&&h===d-1&&h===f+1?"":u.slice(h,d)},"extname"),format:o(function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return function(h,f){var d=f.dir||f.root,p=f.base||(f.name||"")+(f.ext||"");return d?d===f.root?d+p:d+"/"+p:p}(0,u)},"format"),parse:o(function(u){a(u);var h={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return h;var f,d=u.charCodeAt(0),p=d===47;p?(h.root="/",f=1):f=0;for(var m=-1,g=0,y=-1,v=!0,x=u.length-1,b=0;x>=f;--x)if((d=u.charCodeAt(x))!==47)y===-1&&(v=!1,y=x+1),d===46?m===-1?m=x:b!==1&&(b=1):m!==-1&&(b=-1);else if(!v){g=x+1;break}return m===-1||y===-1||b===0||b===1&&m===y-1&&m===g+1?y!==-1&&(h.base=h.name=g===0&&p?u.slice(1,y):u.slice(g,y)):(g===0&&p?(h.name=u.slice(1,m),h.base=u.slice(1,y)):(h.name=u.slice(g,m),h.base=u.slice(g,y)),h.ext=u.slice(m,y)),g>0?h.dir=u.slice(0,g-1):p&&(h.dir="/"),h},"parse"),sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,i.exports=l}},e={};function r(i){var a=e[i];if(a!==void 0)return a.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,r),s.exports}o(r,"r"),r.d=(i,a)=>{for(var s in a)r.o(a,s)&&!r.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:a[s]})},r.o=(i,a)=>Object.prototype.hasOwnProperty.call(i,a),r.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var n={};(()=>{let i;r.r(n),r.d(n,{URI:o(()=>p,"URI"),Utils:o(()=>I,"Utils")}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let a=/^\w[\w\d+.-]*$/,s=/^\//,l=/^\/\//;function u(D,k){if(!D.scheme&&k)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${D.authority}", path: "${D.path}", query: "${D.query}", fragment: "${D.fragment}"}`);if(D.scheme&&!a.test(D.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(D.path){if(D.authority){if(!s.test(D.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(D.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}o(u,"s");let h="",f="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class p{static{o(this,"f")}static isUri(k){return k instanceof p||!!k&&typeof k.authority=="string"&&typeof k.fragment=="string"&&typeof k.path=="string"&&typeof k.query=="string"&&typeof k.scheme=="string"&&typeof k.fsPath=="string"&&typeof k.with=="function"&&typeof k.toString=="function"}scheme;authority;path;query;fragment;constructor(k,R,S,O,N,P=!1){typeof k=="object"?(this.scheme=k.scheme||h,this.authority=k.authority||h,this.path=k.path||h,this.query=k.query||h,this.fragment=k.fragment||h):(this.scheme=function(F,B){return F||B?F:"file"}(k,P),this.authority=R||h,this.path=function(F,B){switch(F){case"https":case"http":case"file":B?B[0]!==f&&(B=f+B):B=f}return B}(this.scheme,S||h),this.query=O||h,this.fragment=N||h,u(this,P))}get fsPath(){return b(this,!1)}with(k){if(!k)return this;let{scheme:R,authority:S,path:O,query:N,fragment:P}=k;return R===void 0?R=this.scheme:R===null&&(R=h),S===void 0?S=this.authority:S===null&&(S=h),O===void 0?O=this.path:O===null&&(O=h),N===void 0?N=this.query:N===null&&(N=h),P===void 0?P=this.fragment:P===null&&(P=h),R===this.scheme&&S===this.authority&&O===this.path&&N===this.query&&P===this.fragment?this:new g(R,S,O,N,P)}static parse(k,R=!1){let S=d.exec(k);return S?new g(S[2]||h,E(S[4]||h),E(S[5]||h),E(S[7]||h),E(S[9]||h),R):new g(h,h,h,h,h)}static file(k){let R=h;if(i&&(k=k.replace(/\\/g,f)),k[0]===f&&k[1]===f){let S=k.indexOf(f,2);S===-1?(R=k.substring(2),k=f):(R=k.substring(2,S),k=k.substring(S)||f)}return new g("file",R,k,h,h)}static from(k){let R=new g(k.scheme,k.authority,k.path,k.query,k.fragment);return u(R,!0),R}toString(k=!1){return w(this,k)}toJSON(){return this}static revive(k){if(k){if(k instanceof p)return k;{let R=new g(k);return R._formatted=k.external,R._fsPath=k._sep===m?k.fsPath:null,R}}return k}}let m=i?1:void 0;class g extends p{static{o(this,"l")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(k=!1){return k?w(this,!0):(this._formatted||(this._formatted=w(this,!1)),this._formatted)}toJSON(){let k={$mid:1};return this._fsPath&&(k.fsPath=this._fsPath,k._sep=m),this._formatted&&(k.external=this._formatted),this.path&&(k.path=this.path),this.scheme&&(k.scheme=this.scheme),this.authority&&(k.authority=this.authority),this.query&&(k.query=this.query),this.fragment&&(k.fragment=this.fragment),k}}let y={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function v(D,k,R){let S,O=-1;for(let N=0;N=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===45||P===46||P===95||P===126||k&&P===47||R&&P===91||R&&P===93||R&&P===58)O!==-1&&(S+=encodeURIComponent(D.substring(O,N)),O=-1),S!==void 0&&(S+=D.charAt(N));else{S===void 0&&(S=D.substr(0,N));let F=y[P];F!==void 0?(O!==-1&&(S+=encodeURIComponent(D.substring(O,N)),O=-1),S+=F):O===-1&&(O=N)}}return O!==-1&&(S+=encodeURIComponent(D.substring(O))),S!==void 0?S:D}o(v,"d");function x(D){let k;for(let R=0;R1&&D.scheme==="file"?`//${D.authority}${D.path}`:D.path.charCodeAt(0)===47&&(D.path.charCodeAt(1)>=65&&D.path.charCodeAt(1)<=90||D.path.charCodeAt(1)>=97&&D.path.charCodeAt(1)<=122)&&D.path.charCodeAt(2)===58?k?D.path.substr(1):D.path[1].toLowerCase()+D.path.substr(2):D.path,i&&(R=R.replace(/\//g,"\\")),R}o(b,"m");function w(D,k){let R=k?x:v,S="",{scheme:O,authority:N,path:P,query:F,fragment:B}=D;if(O&&(S+=O,S+=":"),(N||O==="file")&&(S+=f,S+=f),N){let $=N.indexOf("@");if($!==-1){let z=N.substr(0,$);N=N.substr($+1),$=z.lastIndexOf(":"),$===-1?S+=R(z,!1,!1):(S+=R(z.substr(0,$),!1,!1),S+=":",S+=R(z.substr($+1),!1,!0)),S+="@"}N=N.toLowerCase(),$=N.lastIndexOf(":"),$===-1?S+=R(N,!1,!0):(S+=R(N.substr(0,$),!1,!0),S+=N.substr($))}if(P){if(P.length>=3&&P.charCodeAt(0)===47&&P.charCodeAt(2)===58){let $=P.charCodeAt(1);$>=65&&$<=90&&(P=`/${String.fromCharCode($+32)}:${P.substr(3)}`)}else if(P.length>=2&&P.charCodeAt(1)===58){let $=P.charCodeAt(0);$>=65&&$<=90&&(P=`${String.fromCharCode($+32)}:${P.substr(2)}`)}S+=R(P,!0,!1)}return F&&(S+="?",S+=R(F,!1,!1)),B&&(S+="#",S+=k?B:v(B,!1,!1)),S}o(w,"y");function _(D){try{return decodeURIComponent(D)}catch{return D.length>3?D.substr(0,3)+_(D.substr(3)):D}}o(_,"v");let T=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(D){return D.match(T)?D.replace(T,k=>_(k)):D}o(E,"C");var L=r(470);let C=L.posix||L,A="/";var I;(function(D){D.joinPath=function(k,...R){return k.with({path:C.join(k.path,...R)})},D.resolvePath=function(k,...R){let S=k.path,O=!1;S[0]!==A&&(S=A+S,O=!0);let N=C.resolve(S,...R);return O&&N[0]===A&&!k.authority&&(N=N.substring(1)),k.with({path:N})},D.dirname=function(k){if(k.path.length===0||k.path===A)return k;let R=C.dirname(k.path);return R.length===1&&R.charCodeAt(0)===46&&(R=""),k.with({path:R})},D.basename=function(k){return C.basename(k.path)},D.extname=function(k){return C.extname(k.path)}})(I||(I={}))})(),gce=n})();({URI:Os,Utils:kg}=gce)});var ss,Mc=M(()=>{"use strict";MM();(function(t){t.basename=kg.basename,t.dirname=kg.dirname,t.extname=kg.extname,t.joinPath=kg.joinPath,t.resolvePath=kg.resolvePath;function e(n,i){return n?.toString()===i?.toString()}o(e,"equals"),t.equals=e;function r(n,i){let a=typeof n=="string"?n:n.path,s=typeof i=="string"?i:i.path,l=a.split("/").filter(p=>p.length>0),u=s.split("/").filter(p=>p.length>0),h=0;for(;h{"use strict";mce();Eg();Ko();Rs();Mc();(function(t){t[t.Changed=0]="Changed",t[t.Parsed=1]="Parsed",t[t.IndexedContent=2]="IndexedContent",t[t.ComputedScopes=3]="ComputedScopes",t[t.Linked=4]="Linked",t[t.IndexedReferences=5]="IndexedReferences",t[t.Validated=6]="Validated"})(bn||(bn={}));R2=class{static{o(this,"DefaultLangiumDocumentFactory")}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,r=Cr.CancellationToken.None){let n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,r)}fromTextDocument(e,r,n){return r=r??Os.parse(e.uri),n?this.createAsync(r,e,n):this.create(r,e)}fromString(e,r,n){return n?this.createAsync(r,e,n):this.create(r,e)}fromModel(e,r){return this.create(r,{$model:e})}create(e,r){if(typeof r=="string"){let n=this.parse(e,r);return this.createLangiumDocument(n,e,void 0,r)}else if("$model"in r){let n={value:r.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,e)}else{let n=this.parse(e,r.getText());return this.createLangiumDocument(n,e,r)}}async createAsync(e,r,n){if(typeof r=="string"){let i=await this.parseAsync(e,r,n);return this.createLangiumDocument(i,e,void 0,r)}else{let i=await this.parseAsync(e,r.getText(),n);return this.createLangiumDocument(i,e,r)}}createLangiumDocument(e,r,n,i){let a;if(n)a={parseResult:e,uri:r,state:bn.Parsed,references:[],textDocument:n};else{let s=this.createTextDocumentGetter(r,i);a={parseResult:e,uri:r,state:bn.Parsed,references:[],get textDocument(){return s()}}}return e.value.$document=a,a}async update(e,r){var n,i;let a=(n=e.parseResult.value.$cstNode)===null||n===void 0?void 0:n.root.fullText,s=(i=this.textDocuments)===null||i===void 0?void 0:i.get(e.uri.toString()),l=s?s.getText():await this.fileSystemProvider.readFile(e.uri);if(s)Object.defineProperty(e,"textDocument",{value:s});else{let u=this.createTextDocumentGetter(e.uri,l);Object.defineProperty(e,"textDocument",{get:u})}return a!==l&&(e.parseResult=await this.parseAsync(e.uri,l,r),e.parseResult.value.$document=e),e.state=bn.Parsed,e}parse(e,r){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(r)}parseAsync(e,r,n){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(r,n)}createTextDocumentGetter(e,r){let n=this.serviceRegistry,i;return()=>i??(i=Tg.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,r??""))}},M2=class{static{o(this,"DefaultLangiumDocuments")}constructor(e){this.documentMap=new Map,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory}get all(){return tn(this.documentMap.values())}addDocument(e){let r=e.uri.toString();if(this.documentMap.has(r))throw new Error(`A document with the URI '${r}' is already present.`);this.documentMap.set(r,e)}getDocument(e){let r=e.toString();return this.documentMap.get(r)}async getOrCreateDocument(e,r){let n=this.getDocument(e);return n||(n=await this.langiumDocumentFactory.fromUri(e,r),this.addDocument(n),n)}createDocument(e,r,n){if(n)return this.langiumDocumentFactory.fromString(r,e,n).then(i=>(this.addDocument(i),i));{let i=this.langiumDocumentFactory.fromString(r,e);return this.addDocument(i),i}}hasDocument(e){return this.documentMap.has(e.toString())}invalidateDocument(e){let r=e.toString(),n=this.documentMap.get(r);return n&&(n.state=bn.Changed,n.precomputedScopes=void 0,n.references=[],n.diagnostics=void 0),n}deleteDocument(e){let r=e.toString(),n=this.documentMap.get(r);return n&&(n.state=bn.Changed,this.documentMap.delete(r)),n}}});var I2,IM=M(()=>{"use strict";Ko();Yo();es();Qo();Eg();I2=class{static{o(this,"DefaultLinker")}constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator}async link(e,r=Cr.CancellationToken.None){for(let n of jo(e.parseResult.value))await Gi(r),Um(n).forEach(i=>this.doLink(i,e))}doLink(e,r){let n=e.reference;if(n._ref===void 0)try{let i=this.getCandidate(e);if(Vd(i))n._ref=i;else if(n._nodeDescription=i,this.langiumDocuments().hasDocument(i.documentUri)){let a=this.loadAstNode(i);n._ref=a??this.createLinkingError(e,i)}}catch(i){n._ref=Object.assign(Object.assign({},e),{message:`An error occurred while resolving reference to '${n.$refText}': ${i}`})}r.references.push(n)}unlink(e){for(let r of e.references)delete r._ref,delete r._nodeDescription;e.references=[]}getCandidate(e){let n=this.scopeProvider.getScope(e).getElement(e.reference.$refText);return n??this.createLinkingError(e)}buildReference(e,r,n,i){let a=this,s={$refNode:n,$refText:i,get ref(){var l;if(ei(this._ref))return this._ref;if(MD(this._nodeDescription)){let u=a.loadAstNode(this._nodeDescription);this._ref=u??a.createLinkingError({reference:s,container:e,property:r},this._nodeDescription)}else if(this._ref===void 0){let u=a.getLinkedNode({reference:s,container:e,property:r});if(u.error&&Fi(e).state{"use strict";Pl();o(yce,"isNamed");O2=class{static{o(this,"DefaultNameProvider")}getName(e){if(yce(e))return e.name}getNameNode(e){return Jv(e.$cstNode,"name")}}});var P2,PM=M(()=>{"use strict";Pl();Yo();es();Ml();Rs();Mc();P2=class{static{o(this,"DefaultReferences")}constructor(e){this.nameProvider=e.references.NameProvider,this.index=e.shared.workspace.IndexManager,this.nodeLocator=e.workspace.AstNodeLocator}findDeclaration(e){if(e){let r=iR(e),n=e.astNode;if(r&&n){let i=n[r.feature];if(ma(i))return i.ref;if(Array.isArray(i)){for(let a of i)if(ma(a)&&a.$refNode&&a.$refNode.offset<=e.offset&&a.$refNode.end>=e.end)return a.ref}}if(n){let i=this.nameProvider.getNameNode(n);if(i&&(i===e||OD(e,i)))return n}}}findDeclarationNode(e){let r=this.findDeclaration(e);if(r?.$cstNode){let n=this.nameProvider.getNameNode(r);return n??r.$cstNode}}findReferences(e,r){let n=[];if(r.includeDeclaration){let a=this.getReferenceToSelf(e);a&&n.push(a)}let i=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return r.documentUri&&(i=i.filter(a=>ss.equals(a.sourceUri,r.documentUri))),n.push(...i),tn(n)}getReferenceToSelf(e){let r=this.nameProvider.getNameNode(e);if(r){let n=Fi(e),i=this.nodeLocator.getAstNodePath(e);return{sourceUri:n.uri,sourcePath:i,targetUri:n.uri,targetPath:i,segment:Hd(r),local:!0}}}}});var Ic,p0,Sg=M(()=>{"use strict";Rs();Ic=class{static{o(this,"MultiMap")}constructor(e){if(this.map=new Map,e)for(let[r,n]of e)this.add(r,n)}get size(){return Gm.sum(tn(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,r){if(r===void 0)return this.map.delete(e);{let n=this.map.get(e);if(n){let i=n.indexOf(r);if(i>=0)return n.length===1?this.map.delete(e):n.splice(i,1),!0}return!1}}get(e){var r;return(r=this.map.get(e))!==null&&r!==void 0?r:[]}has(e,r){if(r===void 0)return this.map.has(e);{let n=this.map.get(e);return n?n.indexOf(r)>=0:!1}}add(e,r){return this.map.has(e)?this.map.get(e).push(r):this.map.set(e,[r]),this}addAll(e,r){return this.map.has(e)?this.map.get(e).push(...r):this.map.set(e,Array.from(r)),this}forEach(e){this.map.forEach((r,n)=>r.forEach(i=>e(i,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return tn(this.map.entries()).flatMap(([e,r])=>r.map(n=>[e,n]))}keys(){return tn(this.map.keys())}values(){return tn(this.map.values()).flat()}entriesGroupedByKey(){return tn(this.map.entries())}},p0=class{static{o(this,"BiMap")}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[r,n]of e)this.set(r,n)}clear(){this.map.clear(),this.inverse.clear()}set(e,r){return this.map.set(e,r),this.inverse.set(r,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let r=this.map.get(e);return r!==void 0?(this.map.delete(e),this.inverse.delete(r),!0):!1}}});var B2,BM=M(()=>{"use strict";Ko();es();Sg();Qo();B2=class{static{o(this,"DefaultScopeComputation")}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async computeExports(e,r=Cr.CancellationToken.None){return this.computeExportsForNode(e.parseResult.value,e,void 0,r)}async computeExportsForNode(e,r,n=qv,i=Cr.CancellationToken.None){let a=[];this.exportNode(e,a,r);for(let s of n(e))await Gi(i),this.exportNode(s,a,r);return a}exportNode(e,r,n){let i=this.nameProvider.getName(e);i&&r.push(this.descriptions.createDescription(e,i,n))}async computeLocalScopes(e,r=Cr.CancellationToken.None){let n=e.parseResult.value,i=new Ic;for(let a of _c(n))await Gi(r),this.processNode(a,e,i);return i}processNode(e,r,n){let i=e.$container;if(i){let a=this.nameProvider.getName(e);a&&n.add(i,this.descriptions.createDescription(e,a,r))}}}});var Cg,F2,Pze,FM=M(()=>{"use strict";Rs();Cg=class{static{o(this,"StreamScope")}constructor(e,r,n){var i;this.elements=e,this.outerScope=r,this.caseInsensitive=(i=n?.caseInsensitive)!==null&&i!==void 0?i:!1}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){let r=this.caseInsensitive?this.elements.find(n=>n.name.toLowerCase()===e.toLowerCase()):this.elements.find(n=>n.name===e);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}},F2=class{static{o(this,"MapScope")}constructor(e,r,n){var i;this.elements=new Map,this.caseInsensitive=(i=n?.caseInsensitive)!==null&&i!==void 0?i:!1;for(let a of e){let s=this.caseInsensitive?a.name.toLowerCase():a.name;this.elements.set(s,a)}this.outerScope=r}getElement(e){let r=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(r);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getAllElements(){let e=tn(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},Pze={getElement(){},getAllElements(){return $v}}});var Ag,z2,m0,Ok,_g,Pk=M(()=>{"use strict";Ag=class{static{o(this,"DisposableCache")}constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},z2=class extends Ag{static{o(this,"SimpleCache")}constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,r){this.throwIfDisposed(),this.cache.set(e,r)}get(e,r){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(r){let n=r();return this.cache.set(e,n),n}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},m0=class extends Ag{static{o(this,"ContextCache")}constructor(e){super(),this.cache=new Map,this.converter=e??(r=>r)}has(e,r){return this.throwIfDisposed(),this.cacheForContext(e).has(r)}set(e,r,n){this.throwIfDisposed(),this.cacheForContext(e).set(r,n)}get(e,r,n){this.throwIfDisposed();let i=this.cacheForContext(e);if(i.has(r))return i.get(r);if(n){let a=n();return i.set(r,a),a}else return}delete(e,r){return this.throwIfDisposed(),this.cacheForContext(e).delete(r)}clear(e){if(this.throwIfDisposed(),e){let r=this.converter(e);this.cache.delete(r)}else this.cache.clear()}cacheForContext(e){let r=this.converter(e),n=this.cache.get(r);return n||(n=new Map,this.cache.set(r,n)),n}},Ok=class extends m0{static{o(this,"DocumentCache")}constructor(e){super(r=>r.toString()),this.onDispose(e.workspace.DocumentBuilder.onUpdate((r,n)=>{let i=r.concat(n);for(let a of i)this.clear(a)}))}},_g=class extends z2{static{o(this,"WorkspaceCache")}constructor(e){super(),this.onDispose(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}}});var G2,zM=M(()=>{"use strict";FM();es();Rs();Pk();G2=class{static{o(this,"DefaultScopeProvider")}constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new _g(e.shared)}getScope(e){let r=[],n=this.reflection.getReferenceType(e),i=Fi(e.container).precomputedScopes;if(i){let s=e.container;do{let l=i.get(s);l.length>0&&r.push(tn(l).filter(u=>this.reflection.isSubtype(u.type,n))),s=s.$container}while(s)}let a=this.getGlobalScope(n,e);for(let s=r.length-1;s>=0;s--)a=this.createScope(r[s],a);return a}createScope(e,r,n){return new Cg(tn(e),r,n)}createScopeForNodes(e,r,n){let i=tn(e).map(a=>{let s=this.nameProvider.getName(a);if(s)return this.descriptions.createDescription(a,s)}).nonNullable();return new Cg(i,r,n)}getGlobalScope(e,r){return this.globalScopeCache.get(e,()=>new F2(this.indexManager.allElements(e)))}}});function GM(t){return typeof t.$comment=="string"}function vce(t){return typeof t=="object"&&!!t&&("$ref"in t||"$error"in t)}var $2,Bk=M(()=>{"use strict";MM();Yo();es();Pl();o(GM,"isAstNodeWithComment");o(vce,"isIntermediateReference");$2=class{static{o(this,"DefaultJsonSerializer")}constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,r={}){let n=r?.replacer,i=o((s,l)=>this.replacer(s,l,r),"defaultReplacer"),a=n?(s,l)=>n(s,l,i):i;try{return this.currentDocument=Fi(e),JSON.stringify(e,a,r?.space)}finally{this.currentDocument=void 0}}deserialize(e,r={}){let n=JSON.parse(e);return this.linkNode(n,n,r),n}replacer(e,r,{refText:n,sourceText:i,textRegions:a,comments:s,uriConverter:l}){var u,h,f,d;if(!this.ignoreProperties.has(e))if(ma(r)){let p=r.ref,m=n?r.$refText:void 0;if(p){let g=Fi(p),y="";this.currentDocument&&this.currentDocument!==g&&(l?y=l(g.uri,r):y=g.uri.toString());let v=this.astNodeLocator.getAstNodePath(p);return{$ref:`${y}#${v}`,$refText:m}}else return{$error:(h=(u=r.error)===null||u===void 0?void 0:u.message)!==null&&h!==void 0?h:"Could not resolve reference",$refText:m}}else if(ei(r)){let p;if(a&&(p=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},r)),(!e||r.$document)&&p?.$textRegion&&(p.$textRegion.documentURI=(f=this.currentDocument)===null||f===void 0?void 0:f.uri.toString())),i&&!e&&(p??(p=Object.assign({},r)),p.$sourceText=(d=r.$cstNode)===null||d===void 0?void 0:d.text),s){p??(p=Object.assign({},r));let m=this.commentProvider.getComment(r);m&&(p.$comment=m.replace(/\r/g,""))}return p??r}else return r}addAstNodeRegionWithAssignmentsTo(e){let r=o(n=>({offset:n.offset,end:n.end,length:n.length,range:n.range}),"createDocumentSegment");if(e.$cstNode){let n=e.$textRegion=r(e.$cstNode),i=n.assignments={};return Object.keys(e).filter(a=>!a.startsWith("$")).forEach(a=>{let s=eR(e.$cstNode,a).map(r);s.length!==0&&(i[a]=s)}),e}}linkNode(e,r,n,i,a,s){for(let[u,h]of Object.entries(e))if(Array.isArray(h))for(let f=0;f{"use strict";Mc();V2=class{static{o(this,"DefaultServiceRegistry")}register(e){if(!this.singleton&&!this.map){this.singleton=e;return}if(!this.map&&(this.map={},this.singleton)){for(let r of this.singleton.LanguageMetaData.fileExtensions)this.map[r]=this.singleton;this.singleton=void 0}for(let r of e.LanguageMetaData.fileExtensions)this.map[r]!==void 0&&this.map[r]!==e&&console.warn(`The file extension ${r} is used by multiple languages. It is now assigned to '${e.LanguageMetaData.languageId}'.`),this.map[r]=e}getServices(e){if(this.singleton!==void 0)return this.singleton;if(this.map===void 0)throw new Error("The service registry is empty. Use `register` to register the services of a language.");let r=ss.extname(e),n=this.map[r];if(!n)throw new Error(`The service registry contains no services for the extension '${r}'.`);return n}get all(){return this.singleton!==void 0?[this.singleton]:this.map!==void 0?Object.values(this.map):[]}}});function Fk(t){return{code:t}}var Lg,U2,H2=M(()=>{"use strict";Sg();Qo();Rs();o(Fk,"diagnosticData");(function(t){t.all=["fast","slow","built-in"]})(Lg||(Lg={}));U2=class{static{o(this,"ValidationRegistry")}constructor(e){this.entries=new Ic,this.reflection=e.shared.AstReflection}register(e,r=this,n="fast"){if(n==="built-in")throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");for(let[i,a]of Object.entries(e)){let s=a;if(Array.isArray(s))for(let l of s){let u={check:this.wrapValidationException(l,r),category:n};this.addEntry(i,u)}else if(typeof s=="function"){let l={check:this.wrapValidationException(s,r),category:n};this.addEntry(i,l)}}}wrapValidationException(e,r){return async(n,i,a)=>{try{await e.call(r,n,i,a)}catch(s){if(sf(s))throw s;console.error("An error occurred during validation:",s);let l=s instanceof Error?s.message:String(s);s instanceof Error&&s.stack&&console.error(s.stack),i("error","An error occurred during validation: "+l,{node:n})}}}addEntry(e,r){if(e==="AstNode"){this.entries.add("AstNode",r);return}for(let n of this.reflection.getAllSubTypes(e))this.entries.add(n,r)}getChecks(e,r){let n=tn(this.entries.get(e)).concat(this.entries.get("AstNode"));return r&&(n=n.filter(i=>r.includes(i.category))),n.map(i=>i.check)}}});function xce(t){if(t.range)return t.range;let e;return typeof t.property=="string"?e=Jv(t.node.$cstNode,t.property,t.index):typeof t.keyword=="string"&&(e=rR(t.node.$cstNode,t.keyword,t.index)),e??(e=t.node.$cstNode),e?e.range:{start:{line:0,character:0},end:{line:0,character:0}}}function zk(t){switch(t){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+t)}}var W2,$u,VM=M(()=>{"use strict";Ko();Pl();es();Ml();Qo();H2();W2=class{static{o(this,"DefaultDocumentValidator")}constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData}async validateDocument(e,r={},n=Cr.CancellationToken.None){let i=e.parseResult,a=[];if(await Gi(n),(!r.categories||r.categories.includes("built-in"))&&(this.processLexingErrors(i,a,r),r.stopAfterLexingErrors&&a.some(s=>{var l;return((l=s.data)===null||l===void 0?void 0:l.code)===$u.LexingError})||(this.processParsingErrors(i,a,r),r.stopAfterParsingErrors&&a.some(s=>{var l;return((l=s.data)===null||l===void 0?void 0:l.code)===$u.ParsingError}))||(this.processLinkingErrors(e,a,r),r.stopAfterLinkingErrors&&a.some(s=>{var l;return((l=s.data)===null||l===void 0?void 0:l.code)===$u.LinkingError}))))return a;try{a.push(...await this.validateAst(i.value,r,n))}catch(s){if(sf(s))throw s;console.error("An error occurred during validation:",s)}return await Gi(n),a}processLexingErrors(e,r,n){for(let i of e.lexerErrors){let a={severity:zk("error"),range:{start:{line:i.line-1,character:i.column-1},end:{line:i.line-1,character:i.column+i.length-1}},message:i.message,data:Fk($u.LexingError),source:this.getSource()};r.push(a)}}processParsingErrors(e,r,n){for(let i of e.parserErrors){let a;if(isNaN(i.token.startOffset)){if("previousToken"in i){let s=i.previousToken;if(isNaN(s.startOffset)){let l={line:0,character:0};a={start:l,end:l}}else{let l={line:s.endLine-1,character:s.endColumn};a={start:l,end:l}}}}else a=$m(i.token);if(a){let s={severity:zk("error"),range:a,message:i.message,data:Fk($u.ParsingError),source:this.getSource()};r.push(s)}}}processLinkingErrors(e,r,n){for(let i of e.references){let a=i.error;if(a){let s={node:a.container,property:a.property,index:a.index,data:{code:$u.LinkingError,containerType:a.container.$type,property:a.property,refText:a.reference.$refText}};r.push(this.toDiagnostic("error",a.message,s))}}}async validateAst(e,r,n=Cr.CancellationToken.None){let i=[],a=o((s,l,u)=>{i.push(this.toDiagnostic(s,l,u))},"acceptor");return await Promise.all(jo(e).map(async s=>{await Gi(n);let l=this.validationRegistry.getChecks(s.$type,r.categories);for(let u of l)await u(s,a,n)})),i}toDiagnostic(e,r,n){return{message:r,range:xce(n),severity:zk(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};o(xce,"getDiagnosticRange");o(zk,"toDiagnosticSeverity");(function(t){t.LexingError="lexing-error",t.ParsingError="parsing-error",t.LinkingError="linking-error"})($u||($u={}))});var Y2,q2,UM=M(()=>{"use strict";Ko();Yo();es();Ml();Qo();Mc();Y2=class{static{o(this,"DefaultAstNodeDescriptionProvider")}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,r,n=Fi(e)){r??(r=this.nameProvider.getName(e));let i=this.astNodeLocator.getAstNodePath(e);if(!r)throw new Error(`Node at path ${i} has no name.`);let a,s=o(()=>{var l;return a??(a=Hd((l=this.nameProvider.getNameNode(e))!==null&&l!==void 0?l:e.$cstNode))},"nameSegmentGetter");return{node:e,name:r,get nameSegment(){return s()},selectionSegment:Hd(e.$cstNode),type:e.$type,documentUri:n.uri,path:i}}},q2=class{static{o(this,"DefaultReferenceDescriptionProvider")}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,r=Cr.CancellationToken.None){let n=[],i=e.parseResult.value;for(let a of jo(i))await Gi(r),Um(a).filter(s=>!Vd(s)).forEach(s=>{let l=this.createDescription(s);l&&n.push(l)});return n}createDescription(e){let r=e.reference.$nodeDescription,n=e.reference.$refNode;if(!r||!n)return;let i=Fi(e.container).uri;return{sourceUri:i,sourcePath:this.nodeLocator.getAstNodePath(e.container),targetUri:r.documentUri,targetPath:r.path,segment:Hd(n),local:ss.equals(r.documentUri,i)}}}});var X2,HM=M(()=>{"use strict";X2=class{static{o(this,"DefaultAstNodeLocator")}constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){let r=this.getAstNodePath(e.$container),n=this.getPathSegment(e);return r+this.segmentSeparator+n}return""}getPathSegment({$containerProperty:e,$containerIndex:r}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return r!==void 0?e+this.indexSeparator+r:e}getAstNode(e,r){return r.split(this.segmentSeparator).reduce((i,a)=>{if(!i||a.length===0)return i;let s=a.indexOf(this.indexSeparator);if(s>0){let l=a.substring(0,s),u=parseInt(a.substring(s+1)),h=i[l];return h?.[u]}return i[a]},e)}}});var j2,WM=M(()=>{"use strict";Qo();j2=class{static{o(this,"DefaultConfigurationProvider")}constructor(e){this._ready=new as,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){var r,n;this.workspaceConfig=(n=(r=e.capabilities.workspace)===null||r===void 0?void 0:r.configuration)!==null&&n!==void 0?n:!1}async initialized(e){if(this.workspaceConfig){if(e.register){let r=this.serviceRegistry.all;e.register({section:r.map(n=>this.toSectionName(n.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let r=this.serviceRegistry.all.map(i=>({section:this.toSectionName(i.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(r);r.forEach((i,a)=>{this.updateSectionConfiguration(i.section,n[a])})}}this._ready.resolve()}updateConfiguration(e){e.settings&&Object.keys(e.settings).forEach(r=>{this.updateSectionConfiguration(r,e.settings[r])})}updateSectionConfiguration(e,r){this.settings[e]=r}async getConfiguration(e,r){await this.ready;let n=this.toSectionName(e);if(this.settings[n])return this.settings[n][r]}toSectionName(e){return`${e}`}}});var g0,YM=M(()=>{"use strict";(function(t){function e(r){return{dispose:o(async()=>await r(),"dispose")}}o(e,"create"),t.create=e})(g0||(g0={}))});var K2,qM=M(()=>{"use strict";Ko();YM();Sg();Qo();Rs();H2();Eg();K2=class{static{o(this,"DefaultDocumentBuilder")}constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Ic,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=bn.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.indexManager=e.workspace.IndexManager,this.serviceRegistry=e.ServiceRegistry}async build(e,r={},n=Cr.CancellationToken.None){var i,a;for(let s of e){let l=s.uri.toString();if(s.state===bn.Validated){if(typeof r.validation=="boolean"&&r.validation)s.state=bn.IndexedReferences,s.diagnostics=void 0,this.buildState.delete(l);else if(typeof r.validation=="object"){let u=this.buildState.get(l),h=(i=u?.result)===null||i===void 0?void 0:i.validationChecks;if(h){let d=((a=r.validation.categories)!==null&&a!==void 0?a:Lg.all).filter(p=>!h.includes(p));d.length>0&&(this.buildState.set(l,{completed:!1,options:{validation:Object.assign(Object.assign({},r.validation),{categories:d})},result:u.result}),s.state=bn.IndexedReferences)}}}else this.buildState.delete(l)}this.currentState=bn.Changed,await this.emitUpdate(e.map(s=>s.uri),[]),await this.buildDocuments(e,r,n)}async update(e,r,n=Cr.CancellationToken.None){this.currentState=bn.Changed;for(let s of r)this.langiumDocuments.deleteDocument(s),this.buildState.delete(s.toString()),this.indexManager.remove(s);for(let s of e){if(!this.langiumDocuments.invalidateDocument(s)){let u=this.langiumDocumentFactory.fromModel({$type:"INVALID"},s);u.state=bn.Changed,this.langiumDocuments.addDocument(u)}this.buildState.delete(s.toString())}let i=tn(e).concat(r).map(s=>s.toString()).toSet();this.langiumDocuments.all.filter(s=>!i.has(s.uri.toString())&&this.shouldRelink(s,i)).forEach(s=>{this.serviceRegistry.getServices(s.uri).references.Linker.unlink(s),s.state=Math.min(s.state,bn.ComputedScopes),s.diagnostics=void 0}),await this.emitUpdate(e,r),await Gi(n);let a=this.langiumDocuments.all.filter(s=>{var l;return s.staten(e,r)))}shouldRelink(e,r){return e.references.some(n=>n.error!==void 0)?!0:this.indexManager.isAffected(e,r)}onUpdate(e){return this.updateListeners.push(e),g0.create(()=>{let r=this.updateListeners.indexOf(e);r>=0&&this.updateListeners.splice(r,1)})}async buildDocuments(e,r,n){this.prepareBuild(e,r),await this.runCancelable(e,bn.Parsed,n,a=>this.langiumDocumentFactory.update(a,n)),await this.runCancelable(e,bn.IndexedContent,n,a=>this.indexManager.updateContent(a,n)),await this.runCancelable(e,bn.ComputedScopes,n,async a=>{let s=this.serviceRegistry.getServices(a.uri).references.ScopeComputation;a.precomputedScopes=await s.computeLocalScopes(a,n)}),await this.runCancelable(e,bn.Linked,n,a=>this.serviceRegistry.getServices(a.uri).references.Linker.link(a,n)),await this.runCancelable(e,bn.IndexedReferences,n,a=>this.indexManager.updateReferences(a,n));let i=e.filter(a=>this.shouldValidate(a));await this.runCancelable(i,bn.Validated,n,a=>this.validate(a,n));for(let a of e){let s=this.buildState.get(a.uri.toString());s&&(s.completed=!0)}}prepareBuild(e,r){for(let n of e){let i=n.uri.toString(),a=this.buildState.get(i);(!a||a.completed)&&this.buildState.set(i,{completed:!1,options:r,result:a?.result})}}async runCancelable(e,r,n,i){let a=e.filter(s=>s.state{this.buildPhaseListeners.delete(e,r)})}waitUntil(e,r,n){let i;if(r&&"path"in r?i=r:n=r,n??(n=Cr.CancellationToken.None),i){let a=this.langiumDocuments.getDocument(i);if(a&&a.state>e)return Promise.resolve(i)}return this.currentState>=e?Promise.resolve(void 0):n.isCancellationRequested?Promise.reject(Rc):new Promise((a,s)=>{let l=this.onBuildPhase(e,()=>{if(l.dispose(),u.dispose(),i){let h=this.langiumDocuments.getDocument(i);a(h?.uri)}else a(void 0)}),u=n.onCancellationRequested(()=>{l.dispose(),u.dispose(),s(Rc)})})}async notifyBuildPhase(e,r,n){if(e.length===0)return;let i=this.buildPhaseListeners.get(r);for(let a of i)await Gi(n),await a(e,n)}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,r){var n,i;let a=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,s=this.getBuildOptions(e).validation,l=typeof s=="object"?s:void 0,u=await a.validateDocument(e,l,r);e.diagnostics?e.diagnostics.push(...u):e.diagnostics=u;let h=this.buildState.get(e.uri.toString());if(h){(n=h.result)!==null&&n!==void 0||(h.result={});let f=(i=l?.categories)!==null&&i!==void 0?i:Lg.all;h.result.validationChecks?h.result.validationChecks.push(...f):h.result.validationChecks=[...f]}}getBuildOptions(e){var r,n;return(n=(r=this.buildState.get(e.uri.toString()))===null||r===void 0?void 0:r.options)!==null&&n!==void 0?n:{}}}});var Q2,XM=M(()=>{"use strict";es();Pk();Ko();Rs();Mc();Q2=class{static{o(this,"DefaultIndexManager")}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new m0,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,r){let n=Fi(e).uri,i=[];return this.referenceIndex.forEach(a=>{a.forEach(s=>{ss.equals(s.targetUri,n)&&s.targetPath===r&&i.push(s)})}),tn(i)}allElements(e,r){let n=tn(this.symbolIndex.keys());return r&&(n=n.filter(i=>!r||r.has(i))),n.map(i=>this.getFileDescriptions(i,e)).flat()}getFileDescriptions(e,r){var n;return r?this.symbolByTypeIndex.get(e,r,()=>{var a;return((a=this.symbolIndex.get(e))!==null&&a!==void 0?a:[]).filter(l=>this.astReflection.isSubtype(l.type,r))}):(n=this.symbolIndex.get(e))!==null&&n!==void 0?n:[]}remove(e){let r=e.toString();this.symbolIndex.delete(r),this.symbolByTypeIndex.clear(r),this.referenceIndex.delete(r)}async updateContent(e,r=Cr.CancellationToken.None){let i=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.computeExports(e,r),a=e.uri.toString();this.symbolIndex.set(a,i),this.symbolByTypeIndex.clear(a)}async updateReferences(e,r=Cr.CancellationToken.None){let i=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,r);this.referenceIndex.set(e.uri.toString(),i)}isAffected(e,r){let n=this.referenceIndex.get(e.uri.toString());return n?n.some(i=>!i.local&&r.has(i.targetUri.toString())):!1}}});var Z2,jM=M(()=>{"use strict";Ko();Qo();Mc();Z2=class{static{o(this,"DefaultWorkspaceManager")}constructor(e){this.initialBuildOptions={},this._ready=new as,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}initialize(e){var r;this.folders=(r=e.workspaceFolders)!==null&&r!==void 0?r:void 0}initialized(e){return this.mutex.write(r=>{var n;return this.initializeWorkspace((n=this.folders)!==null&&n!==void 0?n:[],r)})}async initializeWorkspace(e,r=Cr.CancellationToken.None){let n=await this.performStartup(e);await Gi(r),await this.documentBuilder.build(n,this.initialBuildOptions,r)}async performStartup(e){let r=this.serviceRegistry.all.flatMap(a=>a.LanguageMetaData.fileExtensions),n=[],i=o(a=>{n.push(a),this.langiumDocuments.hasDocument(a.uri)||this.langiumDocuments.addDocument(a)},"collector");return await this.loadAdditionalDocuments(e,i),await Promise.all(e.map(a=>[a,this.getRootFolder(a)]).map(async a=>this.traverseFolder(...a,r,i))),this._ready.resolve(),n}loadAdditionalDocuments(e,r){return Promise.resolve()}getRootFolder(e){return Os.parse(e.uri)}async traverseFolder(e,r,n,i){let a=await this.fileSystemProvider.readDirectory(r);await Promise.all(a.map(async s=>{if(this.includeEntry(e,s,n)){if(s.isDirectory)await this.traverseFolder(e,s.uri,n,i);else if(s.isFile){let l=await this.langiumDocuments.getOrCreateDocument(s.uri);i(l)}}}))}includeEntry(e,r,n){let i=ss.basename(r.uri);if(i.startsWith("."))return!1;if(r.isDirectory)return i!=="node_modules"&&i!=="out";if(r.isFile){let a=ss.extname(r.uri);return n.includes(a)}return!1}}});function bce(t){return Array.isArray(t)&&(t.length===0||"name"in t[0])}function QM(t){return t&&"modes"in t&&"defaultMode"in t}function KM(t){return!bce(t)&&!QM(t)}var J2,ZM=M(()=>{"use strict";s0();J2=class{static{o(this,"DefaultLexer")}constructor(e){let r=e.parser.TokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(r);let n=KM(r)?Object.values(r):r;this.chevrotainLexer=new oi(n,{positionTracking:"full"})}get definition(){return this.tokenTypes}tokenize(e){var r;let n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:(r=n.groups.hidden)!==null&&r!==void 0?r:[]}}toTokenTypeDictionary(e){if(KM(e))return e;let r=QM(e)?Object.values(e.modes).flat():e,n={};return r.forEach(i=>n[i.name]=i),n}};o(bce,"isTokenTypeArray");o(QM,"isIMultiModeLexerDefinition");o(KM,"isTokenTypeDictionary")});function tI(t,e,r){let n,i;typeof t=="string"?(i=e,n=r):(i=t.range.start,n=e),i||(i=Xr.create(0,0));let a=kce(t),s=nI(n),l=Fze({lines:a,position:i,options:s});return Uze({index:0,tokens:l,position:i})}function rI(t,e){let r=nI(e),n=kce(t);if(n.length===0)return!1;let i=n[0],a=n[n.length-1],s=r.start,l=r.end;return!!s?.exec(i)&&!!l?.exec(a)}function kce(t){let e="";return typeof t=="string"?e=t:e=t.text,e.split(YN)}function Fze(t){var e,r,n;let i=[],a=t.position.line,s=t.position.character;for(let l=0;l=f.length){if(i.length>0){let m=Xr.create(a,s);i.push({type:"break",content:"",range:Dr.create(m,m)})}}else{wce.lastIndex=d;let m=wce.exec(f);if(m){let g=m[0],y=m[1],v=Xr.create(a,s+d),x=Xr.create(a,s+d+g.length);i.push({type:"tag",content:y,range:Dr.create(v,x)}),d+=g.length,d=eI(f,d)}if(d0&&i[i.length-1].type==="break"?i.slice(0,-1):i}function zze(t,e,r,n){let i=[];if(t.length===0){let a=Xr.create(r,n),s=Xr.create(r,n+e.length);i.push({type:"text",content:e,range:Dr.create(a,s)})}else{let a=0;for(let l of t){let u=l.index,h=e.substring(a,u);h.length>0&&i.push({type:"text",content:e.substring(a,u),range:Dr.create(Xr.create(r,a+n),Xr.create(r,u+n))});let f=h.length+1,d=l[1];if(i.push({type:"inline-tag",content:d,range:Dr.create(Xr.create(r,a+f+n),Xr.create(r,a+f+d.length+n))}),f+=d.length,l.length===4){f+=l[2].length;let p=l[3];i.push({type:"text",content:p,range:Dr.create(Xr.create(r,a+f+n),Xr.create(r,a+f+p.length+n))})}else i.push({type:"text",content:"",range:Dr.create(Xr.create(r,a+f+n),Xr.create(r,a+f+n))});a=u+l[0].length}let s=e.substring(a);s.length>0&&i.push({type:"text",content:s,range:Dr.create(Xr.create(r,a+n),Xr.create(r,a+n+s.length))})}return i}function eI(t,e){let r=t.substring(e).match(Gze);return r?e+r.index:t.length}function Vze(t){let e=t.match($ze);if(e&&typeof e.index=="number")return e.index}function Uze(t){var e,r,n,i;let a=Xr.create(t.position.line,t.position.character);if(t.tokens.length===0)return new Gk([],Dr.create(a,a));let s=[];for(;t.index0){let u=eI(e,a);s=e.substring(u),e=e.substring(0,a)}return(t==="linkcode"||t==="link"&&r.link==="code")&&(s=`\`${s}\``),(i=(n=r.renderLink)===null||n===void 0?void 0:n.call(r,e,s))!==null&&i!==void 0?i:Xze(e,s)}}function Xze(t,e){try{return Os.parse(t,!0),`[${e}](${t})`}catch{return t}}function Tce(t){return t.endsWith(` +`)?` +`:` + +`}var wce,Bze,Gze,$ze,Gk,ex,tx,$k,iI=M(()=>{"use strict";uM();Wm();Mc();o(tI,"parseJSDoc");o(rI,"isJSDoc");o(kce,"getLines");wce=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Bze=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;o(Fze,"tokenize");o(zze,"buildInlineTokens");Gze=/\S/,$ze=/\s*$/;o(eI,"skipWhitespace");o(Vze,"lastCharacter");o(Uze,"parseJSDocComment");o(Hze,"parseJSDocElement");o(Wze,"appendEmptyLine");o(Ece,"parseJSDocText");o(Yze,"parseJSDocInline");o(Sce,"parseJSDocTag");o(Cce,"parseJSDocLine");o(nI,"normalizeOptions");o(JM,"normalizeOption");Gk=class{static{o(this,"JSDocCommentImpl")}constructor(e,r){this.elements=e,this.range=r}getTag(e){return this.getAllTags().find(r=>r.name===e)}getTags(e){return this.getAllTags().filter(r=>r.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(let r of this.elements)if(e.length===0)e=r.toString();else{let n=r.toString();e+=Tce(e)+n}return e.trim()}toMarkdown(e){let r="";for(let n of this.elements)if(r.length===0)r=n.toMarkdown(e);else{let i=n.toMarkdown(e);r+=Tce(r)+i}return r.trim()}},ex=class{static{o(this,"JSDocTagImpl")}constructor(e,r,n,i){this.name=e,this.content=r,this.inline=n,this.range=i}toString(){let e=`@${this.name}`,r=this.content.toString();return this.content.inlines.length===1?e=`${e} ${r}`:this.content.inlines.length>1&&(e=`${e} +${r}`),this.inline?`{${e}}`:e}toMarkdown(e){var r,n;return(n=(r=e?.renderTag)===null||r===void 0?void 0:r.call(e,this))!==null&&n!==void 0?n:this.toMarkdownDefault(e)}toMarkdownDefault(e){let r=this.content.toMarkdown(e);if(this.inline){let a=qze(this.name,r,e??{});if(typeof a=="string")return a}let n="";e?.tag==="italic"||e?.tag===void 0?n="*":e?.tag==="bold"?n="**":e?.tag==="bold-italic"&&(n="***");let i=`${n}@${this.name}${n}`;return this.content.inlines.length===1?i=`${i} \u2014 ${r}`:this.content.inlines.length>1&&(i=`${i} +${r}`),this.inline?`{${i}}`:i}};o(qze,"renderInlineTag");o(Xze,"renderLinkDefault");tx=class{static{o(this,"JSDocTextImpl")}constructor(e,r){this.inlines=e,this.range=r}toString(){let e="";for(let r=0;rn.range.start.line&&(e+=` +`)}return e}toMarkdown(e){let r="";for(let n=0;ni.range.start.line&&(r+=` +`)}return r}},$k=class{static{o(this,"JSDocLineImpl")}constructor(e,r){this.text=e,this.range=r}toString(){return this.text}toMarkdown(){return this.text}};o(Tce,"fillNewlines")});var rx,aI=M(()=>{"use strict";es();iI();rx=class{static{o(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let r=this.commentProvider.getComment(e);if(r&&rI(r))return tI(r).toMarkdown({renderLink:o((i,a)=>this.documentationLinkRenderer(e,i,a),"renderLink"),renderTag:o(i=>this.documentationTagRenderer(e,i),"renderTag")})}documentationLinkRenderer(e,r,n){var i;let a=(i=this.findNameInPrecomputedScopes(e,r))!==null&&i!==void 0?i:this.findNameInGlobalScope(e,r);if(a&&a.nameSegment){let s=a.nameSegment.range.start.line+1,l=a.nameSegment.range.start.character+1,u=a.documentUri.with({fragment:`L${s},${l}`});return`[${n}](${u.toString()})`}else return}documentationTagRenderer(e,r){}findNameInPrecomputedScopes(e,r){let i=Fi(e).precomputedScopes;if(!i)return;let a=e;do{let l=i.get(a).find(u=>u.name===r);if(l)return l;a=a.$container}while(a)}findNameInGlobalScope(e,r){return this.indexManager.allElements().find(i=>i.name===r)}}});var nx,sI=M(()=>{"use strict";Bk();Ml();nx=class{static{o(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){var r;return GM(e)?e.$comment:(r=BD(e.$cstNode,this.grammarConfig().multilineCommentRules))===null||r===void 0?void 0:r.text}}});var li={};var oI=M(()=>{"use strict";Er(li,ka(AM(),1))});var ix,lI,cI,uI=M(()=>{"use strict";Qo();oI();ix=class{static{o(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e){return Promise.resolve(this.syncParser.parse(e))}},lI=class{static{o(this,"AbstractThreadedAsyncParser")}constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length{if(this.queue.length>0){let r=this.queue.shift();r&&(e.lock(),r.resolve(e))}}),this.workerPool.push(e)}}async parse(e,r){let n=await this.acquireParserWorker(r),i=new as,a,s=r.onCancellationRequested(()=>{a=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(l=>{let u=this.hydrator.hydrate(l);i.resolve(u)}).catch(l=>{i.reject(l)}).finally(()=>{s.dispose(),clearTimeout(a)}),i.promise}terminateWorker(e){e.terminate();let r=this.workerPool.indexOf(e);r>=0&&this.workerPool.splice(r,1)}async acquireParserWorker(e){this.initializeWorkers();for(let n of this.workerPool)if(n.ready)return n.lock(),n;let r=new as;return e.onCancellationRequested(()=>{let n=this.queue.indexOf(r);n>=0&&this.queue.splice(n,1),r.reject(Rc)}),this.queue.push(r),r.promise}},cI=class{static{o(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,r,n,i){this.onReadyEmitter=new li.Emitter,this.deferred=new as,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=i,r(a=>{let s=a;this.deferred.resolve(s),this.unlock()}),n(a=>{this.deferred.reject(a),this.unlock()})}terminate(){this.deferred.reject(Rc),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new as,this.sendMessage(e),this.deferred.promise}}});var ax,hI=M(()=>{"use strict";Ko();Qo();ax=class{static{o(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new Cr.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();let r=new Cr.CancellationTokenSource;return this.previousTokenSource=r,this.enqueue(this.writeQueue,e,r.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,r,n){let i=new as,a={action:r,deferred:i,cancellationToken:n??Cr.CancellationToken.None};return e.push(a),this.performNextOperation(),i.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:r,deferred:n,cancellationToken:i})=>{try{let a=await Promise.resolve().then(()=>r(i));n.resolve(a)}catch(a){sf(a)?n.resolve(void 0):n.reject(a)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}}});var sx,fI=M(()=>{"use strict";Ck();Ac();Yo();es();Sg();Ml();sx=class{static{o(this,"DefaultHydrator")}constructor(e){this.grammarElementIdMap=new p0,this.tokenTypeIdMap=new p0,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors.map(r=>Object.assign({},r)),parserErrors:e.parserErrors.map(r=>Object.assign({},r)),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}createDehyrationContext(e){let r=new Map,n=new Map;for(let i of jo(e))r.set(i,{});if(e.$cstNode)for(let i of Ud(e.$cstNode))n.set(i,{});return{astNodes:r,cstNodes:n}}dehydrateAstNode(e,r){let n=r.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(n.$cstNode=this.dehydrateCstNode(e.$cstNode,r));for(let[i,a]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(a)){let s=[];n[i]=s;for(let l of a)ei(l)?s.push(this.dehydrateAstNode(l,r)):ma(l)?s.push(this.dehydrateReference(l,r)):s.push(l)}else ei(a)?n[i]=this.dehydrateAstNode(a,r):ma(a)?n[i]=this.dehydrateReference(a,r):a!==void 0&&(n[i]=a);return n}dehydrateReference(e,r){let n={};return n.$refText=e.$refText,e.$refNode&&(n.$refNode=r.cstNodes.get(e.$refNode)),n}dehydrateCstNode(e,r){let n=r.cstNodes.get(e);return Gv(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,n.astNode=r.astNodes.get(e.astNode),io(e)?n.content=e.content.map(i=>this.dehydrateCstNode(i,r)):Jh(e)&&(n.tokenType=e.tokenType.name,n.offset=e.offset,n.length=e.length,n.startLine=e.range.start.line,n.startColumn=e.range.start.character,n.endLine=e.range.end.line,n.endColumn=e.range.end.character),n}hydrate(e){let r=e.value,n=this.createHydrationContext(r);return"$cstNode"in r&&this.hydrateCstNode(r.$cstNode,n),{lexerErrors:e.lexerErrors,parserErrors:e.parserErrors,value:this.hydrateAstNode(r,n)}}createHydrationContext(e){let r=new Map,n=new Map;for(let a of jo(e))r.set(a,{});let i;if(e.$cstNode)for(let a of Ud(e.$cstNode)){let s;"fullText"in a?(s=new vg(a.fullText),i=s):"content"in a?s=new u0:"tokenType"in a&&(s=this.hydrateCstLeafNode(a)),s&&(n.set(a,s),s.root=i)}return{astNodes:r,cstNodes:n}}hydrateAstNode(e,r){let n=r.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode&&(n.$cstNode=r.cstNodes.get(e.$cstNode));for(let[i,a]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(a)){let s=[];n[i]=s;for(let l of a)ei(l)?s.push(this.setParent(this.hydrateAstNode(l,r),n)):ma(l)?s.push(this.hydrateReference(l,n,i,r)):s.push(l)}else ei(a)?n[i]=this.setParent(this.hydrateAstNode(a,r),n):ma(a)?n[i]=this.hydrateReference(a,n,i,r):a!==void 0&&(n[i]=a);return n}setParent(e,r){return e.$container=r,e}hydrateReference(e,r,n,i){return this.linker.buildReference(r,n,i.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,r,n=0){let i=r.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(i.grammarSource=this.getGrammarElement(e.grammarSource)),i.astNode=r.astNodes.get(e.astNode),io(i))for(let a of e.content){let s=this.hydrateCstNode(a,r,n++);i.content.push(s)}return i}hydrateCstLeafNode(e){let r=this.getTokenType(e.tokenType),n=e.offset,i=e.length,a=e.startLine,s=e.startColumn,l=e.endLine,u=e.endColumn,h=e.hidden;return new c0(n,i,{start:{line:a,character:s},end:{line:l,character:u}},r,h)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap();let r=this.grammarElementIdMap.getKey(e);if(r)return r;throw new Error("Invalid grammar element id: "+e)}createGrammarElementIdMap(){let e=0;for(let r of jo(this.grammar))Hv(r)&&this.grammarElementIdMap.set(r,e++)}}});function lo(t){return{documentation:{CommentProvider:o(e=>new nx(e),"CommentProvider"),DocumentationProvider:o(e=>new rx(e),"DocumentationProvider")},parser:{AsyncParser:o(e=>new ix(e),"AsyncParser"),GrammarConfig:o(e=>lR(e),"GrammarConfig"),LangiumParser:o(e=>vM(e),"LangiumParser"),CompletionParser:o(e=>gM(e),"CompletionParser"),ValueConverter:o(()=>new d0,"ValueConverter"),TokenBuilder:o(()=>new f0,"TokenBuilder"),Lexer:o(e=>new J2(e),"Lexer"),ParserErrorMessageProvider:o(()=>new xg,"ParserErrorMessageProvider")},workspace:{AstNodeLocator:o(()=>new X2,"AstNodeLocator"),AstNodeDescriptionProvider:o(e=>new Y2(e),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:o(e=>new q2(e),"ReferenceDescriptionProvider")},references:{Linker:o(e=>new I2(e),"Linker"),NameProvider:o(()=>new O2,"NameProvider"),ScopeProvider:o(e=>new G2(e),"ScopeProvider"),ScopeComputation:o(e=>new B2(e),"ScopeComputation"),References:o(e=>new P2(e),"References")},serializer:{Hydrator:o(e=>new sx(e),"Hydrator"),JsonSerializer:o(e=>new $2(e),"JsonSerializer")},validation:{DocumentValidator:o(e=>new W2(e),"DocumentValidator"),ValidationRegistry:o(e=>new U2(e),"ValidationRegistry")},shared:o(()=>t.shared,"shared")}}function co(t){return{ServiceRegistry:o(()=>new V2,"ServiceRegistry"),workspace:{LangiumDocuments:o(e=>new M2(e),"LangiumDocuments"),LangiumDocumentFactory:o(e=>new R2(e),"LangiumDocumentFactory"),DocumentBuilder:o(e=>new K2(e),"DocumentBuilder"),IndexManager:o(e=>new Q2(e),"IndexManager"),WorkspaceManager:o(e=>new Z2(e),"WorkspaceManager"),FileSystemProvider:o(e=>t.fileSystemProvider(e),"FileSystemProvider"),WorkspaceLock:o(()=>new ax,"WorkspaceLock"),ConfigurationProvider:o(e=>new j2(e),"ConfigurationProvider")}}}var dI=M(()=>{"use strict";cR();yM();xM();bM();wM();IM();OM();PM();BM();zM();Bk();$M();VM();H2();UM();HM();WM();qM();Eg();XM();jM();ZM();aI();sI();N2();uI();hI();fI();o(lo,"createDefaultCoreModule");o(co,"createDefaultSharedCoreModule")});function $i(t,e,r,n,i,a,s,l,u){let h=[t,e,r,n,i,a,s,l,u].reduce(Vk,{});return Dce(h)}function Lce(t){if(t&&t[mI])for(let e of Object.values(t))Lce(e);return t}function Dce(t,e){let r=new Proxy({},{deleteProperty:o(()=>!1,"deleteProperty"),get:o((n,i)=>_ce(n,i,t,e||r),"get"),getOwnPropertyDescriptor:o((n,i)=>(_ce(n,i,t,e||r),Object.getOwnPropertyDescriptor(n,i)),"getOwnPropertyDescriptor"),has:o((n,i)=>i in t,"has"),ownKeys:o(()=>[...Reflect.ownKeys(t),mI],"ownKeys")});return r[mI]=!0,r}function _ce(t,e,r,n){if(e in t){if(t[e]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable.",{cause:t[e]});if(t[e]===Ace)throw new Error('Cycle detected. Please make "'+String(e)+'" lazy. See https://langium.org/docs/configuration-services/#resolving-cyclic-dependencies');return t[e]}else if(e in r){let i=r[e];t[e]=Ace;try{t[e]=typeof i=="function"?i(n):Dce(i,n)}catch(a){throw t[e]=a instanceof Error?a:void 0,a}return t[e]}else return}function Vk(t,e){if(e){for(let[r,n]of Object.entries(e))if(n!==void 0){let i=t[r];i!==null&&n!==null&&typeof i=="object"&&typeof n=="object"?t[r]=Vk(i,n):t[r]=n}}return t}var pI,mI,Ace,gI=M(()=>{"use strict";(function(t){t.merge=(e,r)=>Vk(Vk({},e),r)})(pI||(pI={}));o($i,"inject");mI=Symbol("isProxy");o(Lce,"eagerLoad");o(Dce,"_inject");Ace=Symbol();o(_ce,"_resolve");o(Vk,"_merge")});var Nce=M(()=>{"use strict"});var Rce=M(()=>{"use strict";sI();aI();iI()});var Mce=M(()=>{"use strict"});var Ice=M(()=>{"use strict";cR();Mce()});var Oce=M(()=>{"use strict"});var Pce=M(()=>{"use strict";uI();yM();Ck();xM();N2();ZM();Oce();bM();wM()});var Bce=M(()=>{"use strict";IM();OM();PM();FM();BM();zM()});var Fce=M(()=>{"use strict";fI();Bk()});var Uk,uo,yI=M(()=>{"use strict";Uk=class{static{o(this,"EmptyFileSystemProvider")}readFile(){throw new Error("No file system is available.")}async readDirectory(){return[]}},uo={fileSystemProvider:o(()=>new Uk,"fileSystemProvider")}});function Qze(){let t=$i(co(uo),Kze),e=$i(lo({shared:t}),jze);return t.ServiceRegistry.register(e),e}function of(t){var e;let r=Qze(),n=r.serializer.JsonSerializer.deserialize(t);return r.shared.workspace.LangiumDocumentFactory.fromModel(n,Os.parse(`memory://${(e=n.name)!==null&&e!==void 0?e:"grammar"}.langium`)),n}var jze,Kze,zce=M(()=>{"use strict";dI();gI();Ac();yI();Mc();jze={Grammar:o(()=>{},"Grammar"),LanguageMetaData:o(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},Kze={AstReflection:o(()=>new Vm,"AstReflection")};o(Qze,"createMinimalGrammarServices");o(of,"loadGrammarFromJson")});var Gr={};vr(Gr,{AstUtils:()=>AT,BiMap:()=>p0,Cancellation:()=>Cr,ContextCache:()=>m0,CstUtils:()=>mT,DONE_RESULT:()=>Ja,Deferred:()=>as,Disposable:()=>g0,DisposableCache:()=>Ag,DocumentCache:()=>Ok,EMPTY_STREAM:()=>$v,ErrorWithLocation:()=>Wd,GrammarUtils:()=>MT,MultiMap:()=>Ic,OperationCancelled:()=>Rc,Reduction:()=>Gm,RegExpUtils:()=>NT,SimpleCache:()=>z2,StreamImpl:()=>ao,TreeStreamImpl:()=>Cc,URI:()=>Os,UriUtils:()=>ss,WorkspaceCache:()=>_g,assertUnreachable:()=>ef,delayNextTick:()=>NM,interruptAndCheck:()=>Gi,isOperationCancelled:()=>sf,loadGrammarFromJson:()=>of,setInterruptionPeriod:()=>hce,startCancelableOperation:()=>uce,stream:()=>tn});var Gce=M(()=>{"use strict";Pk();oI();Er(Gr,li);Sg();YM();gT();zce();Qo();Rs();Mc();es();Ko();Ml();Pl();Wm()});var $ce=M(()=>{"use strict";VM();H2()});var Vce=M(()=>{"use strict";UM();HM();WM();qM();Eg();yI();XM();hI();jM()});var ga={};vr(ga,{AbstractAstReflection:()=>$d,AbstractCstNode:()=>A2,AbstractLangiumParser:()=>_2,AbstractParserErrorMessageProvider:()=>_k,AbstractThreadedAsyncParser:()=>lI,AstUtils:()=>AT,BiMap:()=>p0,Cancellation:()=>Cr,CompositeCstNodeImpl:()=>u0,ContextCache:()=>m0,CstNodeBuilder:()=>C2,CstUtils:()=>mT,DONE_RESULT:()=>Ja,DatatypeSymbol:()=>Ak,DefaultAstNodeDescriptionProvider:()=>Y2,DefaultAstNodeLocator:()=>X2,DefaultAsyncParser:()=>ix,DefaultCommentProvider:()=>nx,DefaultConfigurationProvider:()=>j2,DefaultDocumentBuilder:()=>K2,DefaultDocumentValidator:()=>W2,DefaultHydrator:()=>sx,DefaultIndexManager:()=>Q2,DefaultJsonSerializer:()=>$2,DefaultLangiumDocumentFactory:()=>R2,DefaultLangiumDocuments:()=>M2,DefaultLexer:()=>J2,DefaultLinker:()=>I2,DefaultNameProvider:()=>O2,DefaultReferenceDescriptionProvider:()=>q2,DefaultReferences:()=>P2,DefaultScopeComputation:()=>B2,DefaultScopeProvider:()=>G2,DefaultServiceRegistry:()=>V2,DefaultTokenBuilder:()=>f0,DefaultValueConverter:()=>d0,DefaultWorkspaceLock:()=>ax,DefaultWorkspaceManager:()=>Z2,Deferred:()=>as,Disposable:()=>g0,DisposableCache:()=>Ag,DocumentCache:()=>Ok,DocumentState:()=>bn,DocumentValidator:()=>$u,EMPTY_SCOPE:()=>Pze,EMPTY_STREAM:()=>$v,EmptyFileSystem:()=>uo,EmptyFileSystemProvider:()=>Uk,ErrorWithLocation:()=>Wd,GrammarAST:()=>Yv,GrammarUtils:()=>MT,JSDocDocumentationProvider:()=>rx,LangiumCompletionParser:()=>D2,LangiumParser:()=>L2,LangiumParserErrorMessageProvider:()=>xg,LeafCstNodeImpl:()=>c0,MapScope:()=>F2,Module:()=>pI,MultiMap:()=>Ic,OperationCancelled:()=>Rc,ParserWorker:()=>cI,Reduction:()=>Gm,RegExpUtils:()=>NT,RootCstNodeImpl:()=>vg,SimpleCache:()=>z2,StreamImpl:()=>ao,StreamScope:()=>Cg,TextDocument:()=>Tg,TreeStreamImpl:()=>Cc,URI:()=>Os,UriUtils:()=>ss,ValidationCategory:()=>Lg,ValidationRegistry:()=>U2,ValueConverter:()=>Nc,WorkspaceCache:()=>_g,assertUnreachable:()=>ef,createCompletionParser:()=>gM,createDefaultCoreModule:()=>lo,createDefaultSharedCoreModule:()=>co,createGrammarConfig:()=>lR,createLangiumParser:()=>vM,delayNextTick:()=>NM,diagnosticData:()=>Fk,eagerLoad:()=>Lce,getDiagnosticRange:()=>xce,inject:()=>$i,interruptAndCheck:()=>Gi,isAstNode:()=>ei,isAstNodeDescription:()=>MD,isAstNodeWithComment:()=>GM,isCompositeCstNode:()=>io,isIMultiModeLexerDefinition:()=>QM,isJSDoc:()=>rI,isLeafCstNode:()=>Jh,isLinkingError:()=>Vd,isNamed:()=>yce,isOperationCancelled:()=>sf,isReference:()=>ma,isRootCstNode:()=>Gv,isTokenTypeArray:()=>bce,isTokenTypeDictionary:()=>KM,loadGrammarFromJson:()=>of,parseJSDoc:()=>tI,prepareLangiumParser:()=>nce,setInterruptionPeriod:()=>hce,startCancelableOperation:()=>uce,stream:()=>tn,toDiagnosticSeverity:()=>zk});var Oc=M(()=>{"use strict";dI();gI();$M();Nce();Yo();Rce();Ice();Pce();Bce();Fce();Gce();Er(ga,Gr);$ce();Vce();Ac()});function Kce(t){return Fl.isInstance(t,jce)}function Qce(t){return Fl.isInstance(t,vI)}function Zce(t){return Fl.isInstance(t,xI)}function Jce(t){return Fl.isInstance(t,tGe)}function eue(t){return Fl.isInstance(t,bI)}function rue(t){return Fl.isInstance(t,tue)}function nue(t){return Fl.isInstance(t,wI)}function aue(t){return Fl.isInstance(t,iue)}function oue(t){return Fl.isInstance(t,sue)}function cue(t){return Fl.isInstance(t,lue)}function hue(t){return Fl.isInstance(t,uue)}var Zze,Ot,Xce,jce,vI,Jze,eGe,xI,tGe,bI,tue,wI,iue,sue,lue,uue,rGe,fue,Fl,Uce,nGe,Hce,iGe,Wce,aGe,Yce,sGe,qce,oGe,lGe,cGe,uGe,hGe,fGe,zl,TI,kI,EI,SI,CI,dGe,pGe,mGe,gGe,Dg,y0,Zo,yGe,Jo=M(()=>{"use strict";Oc();Oc();Oc();Oc();Zze=Object.defineProperty,Ot=o((t,e)=>Zze(t,"name",{value:e,configurable:!0}),"__name"),Xce="Statement",jce="Architecture";o(Kce,"isArchitecture");Ot(Kce,"isArchitecture");vI="Branch";o(Qce,"isBranch");Ot(Qce,"isBranch");Jze="Checkout",eGe="CherryPicking",xI="Commit";o(Zce,"isCommit");Ot(Zce,"isCommit");tGe="Common";o(Jce,"isCommon");Ot(Jce,"isCommon");bI="GitGraph";o(eue,"isGitGraph");Ot(eue,"isGitGraph");tue="Info";o(rue,"isInfo");Ot(rue,"isInfo");wI="Merge";o(nue,"isMerge");Ot(nue,"isMerge");iue="Packet";o(aue,"isPacket");Ot(aue,"isPacket");sue="PacketBlock";o(oue,"isPacketBlock");Ot(oue,"isPacketBlock");lue="Pie";o(cue,"isPie");Ot(cue,"isPie");uue="PieSection";o(hue,"isPieSection");Ot(hue,"isPieSection");rGe="Direction",fue=class extends $d{static{o(this,"MermaidAstReflection")}static{Ot(this,"MermaidAstReflection")}getAllTypes(){return["Architecture","Branch","Checkout","CherryPicking","Commit","Common","Direction","Edge","GitGraph","Group","Info","Junction","Merge","Packet","PacketBlock","Pie","PieSection","Service","Statement"]}computeIsSubtype(t,e){switch(t){case vI:case Jze:case eGe:case xI:case wI:return this.isSubtype(Xce,e);case rGe:return this.isSubtype(bI,e);default:return!1}}getReferenceType(t){let e=`${t.container.$type}:${t.property}`;switch(e){default:throw new Error(`${e} is not a valid reference id.`)}}getTypeMetaData(t){switch(t){case"Architecture":return{name:"Architecture",properties:[{name:"accDescr"},{name:"accTitle"},{name:"edges",defaultValue:[]},{name:"groups",defaultValue:[]},{name:"junctions",defaultValue:[]},{name:"services",defaultValue:[]},{name:"title"}]};case"Branch":return{name:"Branch",properties:[{name:"name"},{name:"order"}]};case"Checkout":return{name:"Checkout",properties:[{name:"branch"}]};case"CherryPicking":return{name:"CherryPicking",properties:[{name:"id"},{name:"parent"},{name:"tags",defaultValue:[]}]};case"Commit":return{name:"Commit",properties:[{name:"id"},{name:"message"},{name:"tags",defaultValue:[]},{name:"type"}]};case"Common":return{name:"Common",properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case"Edge":return{name:"Edge",properties:[{name:"lhsDir"},{name:"lhsGroup",defaultValue:!1},{name:"lhsId"},{name:"lhsInto",defaultValue:!1},{name:"rhsDir"},{name:"rhsGroup",defaultValue:!1},{name:"rhsId"},{name:"rhsInto",defaultValue:!1},{name:"title"}]};case"GitGraph":return{name:"GitGraph",properties:[{name:"accDescr"},{name:"accTitle"},{name:"statements",defaultValue:[]},{name:"title"}]};case"Group":return{name:"Group",properties:[{name:"icon"},{name:"id"},{name:"in"},{name:"title"}]};case"Info":return{name:"Info",properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case"Junction":return{name:"Junction",properties:[{name:"id"},{name:"in"}]};case"Merge":return{name:"Merge",properties:[{name:"branch"},{name:"id"},{name:"tags",defaultValue:[]},{name:"type"}]};case"Packet":return{name:"Packet",properties:[{name:"accDescr"},{name:"accTitle"},{name:"blocks",defaultValue:[]},{name:"title"}]};case"PacketBlock":return{name:"PacketBlock",properties:[{name:"end"},{name:"label"},{name:"start"}]};case"Pie":return{name:"Pie",properties:[{name:"accDescr"},{name:"accTitle"},{name:"sections",defaultValue:[]},{name:"showData",defaultValue:!1},{name:"title"}]};case"PieSection":return{name:"PieSection",properties:[{name:"label"},{name:"value"}]};case"Service":return{name:"Service",properties:[{name:"icon"},{name:"iconText"},{name:"id"},{name:"in"},{name:"title"}]};case"Direction":return{name:"Direction",properties:[{name:"accDescr"},{name:"accTitle"},{name:"dir"},{name:"statements",defaultValue:[]},{name:"title"}]};default:return{name:t,properties:[]}}}},Fl=new fue,nGe=Ot(()=>Uce??(Uce=of('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}')),"InfoGrammar"),iGe=Ot(()=>Hce??(Hce=of(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}`)),"PacketGrammar"),aGe=Ot(()=>Wce??(Wce=of('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}')),"PieGrammar"),sGe=Ot(()=>Yce??(Yce=of('{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","name":"Architecture","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","fragment":true,"definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"LeftPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"RightPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Arrow","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ID","definition":{"$type":"RegexToken","regex":"/[\\\\w]+/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TEXT_ICON","definition":{"$type":"RegexToken","regex":"/\\\\(\\"[^\\"]+\\"\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}')),"ArchitectureGrammar"),oGe=Ot(()=>qce??(qce=of(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}`)),"GitGraphGrammar"),lGe={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},cGe={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},uGe={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},hGe={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},fGe={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},zl={AstReflection:Ot(()=>new fue,"AstReflection")},TI={Grammar:Ot(()=>nGe(),"Grammar"),LanguageMetaData:Ot(()=>lGe,"LanguageMetaData"),parser:{}},kI={Grammar:Ot(()=>iGe(),"Grammar"),LanguageMetaData:Ot(()=>cGe,"LanguageMetaData"),parser:{}},EI={Grammar:Ot(()=>aGe(),"Grammar"),LanguageMetaData:Ot(()=>uGe,"LanguageMetaData"),parser:{}},SI={Grammar:Ot(()=>sGe(),"Grammar"),LanguageMetaData:Ot(()=>hGe,"LanguageMetaData"),parser:{}},CI={Grammar:Ot(()=>oGe(),"Grammar"),LanguageMetaData:Ot(()=>fGe,"LanguageMetaData"),parser:{}},dGe=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,pGe=/accTitle[\t ]*:([^\n\r]*)/,mGe=/title([\t ][^\n\r]*|)/,gGe={ACC_DESCR:dGe,ACC_TITLE:pGe,TITLE:mGe},Dg=class extends d0{static{o(this,"AbstractMermaidValueConverter")}static{Ot(this,"AbstractMermaidValueConverter")}runConverter(t,e,r){let n=this.runCommonConverter(t,e,r);return n===void 0&&(n=this.runCustomConverter(t,e,r)),n===void 0?super.runConverter(t,e,r):n}runCommonConverter(t,e,r){let n=gGe[t.name];if(n===void 0)return;let i=n.exec(e);if(i!==null){if(i[1]!==void 0)return i[1].trim().replace(/[\t ]{2,}/gm," ");if(i[2]!==void 0)return i[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,` +`)}}},y0=class extends Dg{static{o(this,"CommonValueConverter")}static{Ot(this,"CommonValueConverter")}runCustomConverter(t,e,r){}},Zo=class extends f0{static{o(this,"AbstractMermaidTokenBuilder")}static{Ot(this,"AbstractMermaidTokenBuilder")}constructor(t){super(),this.keywords=new Set(t)}buildKeywordTokens(t,e,r){let n=super.buildKeywordTokens(t,e,r);return n.forEach(i=>{this.keywords.has(i.name)&&i.PATTERN!==void 0&&(i.PATTERN=new RegExp(i.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),n}},yGe=class extends Zo{static{o(this,"CommonTokenBuilder")}static{Ot(this,"CommonTokenBuilder")}}});function Wk(t=uo){let e=$i(co(t),zl),r=$i(lo({shared:e}),CI,Hk);return e.ServiceRegistry.register(r),{shared:e,GitGraph:r}}var vGe,Hk,AI=M(()=>{"use strict";Jo();Oc();vGe=class extends Zo{static{o(this,"GitGraphTokenBuilder")}static{Ot(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},Hk={parser:{TokenBuilder:Ot(()=>new vGe,"TokenBuilder"),ValueConverter:Ot(()=>new y0,"ValueConverter")}};o(Wk,"createGitGraphServices");Ot(Wk,"createGitGraphServices")});function qk(t=uo){let e=$i(co(t),zl),r=$i(lo({shared:e}),TI,Yk);return e.ServiceRegistry.register(r),{shared:e,Info:r}}var xGe,Yk,_I=M(()=>{"use strict";Jo();Oc();xGe=class extends Zo{static{o(this,"InfoTokenBuilder")}static{Ot(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},Yk={parser:{TokenBuilder:Ot(()=>new xGe,"TokenBuilder"),ValueConverter:Ot(()=>new y0,"ValueConverter")}};o(qk,"createInfoServices");Ot(qk,"createInfoServices")});function jk(t=uo){let e=$i(co(t),zl),r=$i(lo({shared:e}),kI,Xk);return e.ServiceRegistry.register(r),{shared:e,Packet:r}}var bGe,Xk,LI=M(()=>{"use strict";Jo();Oc();bGe=class extends Zo{static{o(this,"PacketTokenBuilder")}static{Ot(this,"PacketTokenBuilder")}constructor(){super(["packet-beta"])}},Xk={parser:{TokenBuilder:Ot(()=>new bGe,"TokenBuilder"),ValueConverter:Ot(()=>new y0,"ValueConverter")}};o(jk,"createPacketServices");Ot(jk,"createPacketServices")});function Qk(t=uo){let e=$i(co(t),zl),r=$i(lo({shared:e}),EI,Kk);return e.ServiceRegistry.register(r),{shared:e,Pie:r}}var wGe,TGe,Kk,DI=M(()=>{"use strict";Jo();Oc();wGe=class extends Zo{static{o(this,"PieTokenBuilder")}static{Ot(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},TGe=class extends Dg{static{o(this,"PieValueConverter")}static{Ot(this,"PieValueConverter")}runCustomConverter(t,e,r){if(t.name==="PIE_SECTION_LABEL")return e.replace(/"/g,"").trim()}},Kk={parser:{TokenBuilder:Ot(()=>new wGe,"TokenBuilder"),ValueConverter:Ot(()=>new TGe,"ValueConverter")}};o(Qk,"createPieServices");Ot(Qk,"createPieServices")});function Jk(t=uo){let e=$i(co(t),zl),r=$i(lo({shared:e}),SI,Zk);return e.ServiceRegistry.register(r),{shared:e,Architecture:r}}var kGe,EGe,Zk,NI=M(()=>{"use strict";Jo();Oc();kGe=class extends Zo{static{o(this,"ArchitectureTokenBuilder")}static{Ot(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},EGe=class extends Dg{static{o(this,"ArchitectureValueConverter")}static{Ot(this,"ArchitectureValueConverter")}runCustomConverter(t,e,r){if(t.name==="ARCH_ICON")return e.replace(/[()]/g,"").trim();if(t.name==="ARCH_TEXT_ICON")return e.replace(/["()]/g,"");if(t.name==="ARCH_TITLE")return e.replace(/[[\]]/g,"").trim()}},Zk={parser:{TokenBuilder:Ot(()=>new kGe,"TokenBuilder"),ValueConverter:Ot(()=>new EGe,"ValueConverter")}};o(Jk,"createArchitectureServices");Ot(Jk,"createArchitectureServices")});var due={};vr(due,{InfoModule:()=>Yk,createInfoServices:()=>qk});var pue=M(()=>{"use strict";_I();Jo()});var mue={};vr(mue,{PacketModule:()=>Xk,createPacketServices:()=>jk});var gue=M(()=>{"use strict";LI();Jo()});var yue={};vr(yue,{PieModule:()=>Kk,createPieServices:()=>Qk});var vue=M(()=>{"use strict";DI();Jo()});var xue={};vr(xue,{ArchitectureModule:()=>Zk,createArchitectureServices:()=>Jk});var bue=M(()=>{"use strict";NI();Jo()});var wue={};vr(wue,{GitGraphModule:()=>Hk,createGitGraphServices:()=>Wk});var Tue=M(()=>{"use strict";AI();Jo()});async function Gl(t,e){let r=SGe[t];if(!r)throw new Error(`Unknown diagram type: ${t}`);v0[t]||await r();let i=v0[t].parse(e);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new CGe(i);return i.value}var v0,SGe,CGe,Ng=M(()=>{"use strict";AI();_I();LI();DI();NI();Jo();v0={},SGe={info:Ot(async()=>{let{createInfoServices:t}=await Promise.resolve().then(()=>(pue(),due)),e=t().Info.parser.LangiumParser;v0.info=e},"info"),packet:Ot(async()=>{let{createPacketServices:t}=await Promise.resolve().then(()=>(gue(),mue)),e=t().Packet.parser.LangiumParser;v0.packet=e},"packet"),pie:Ot(async()=>{let{createPieServices:t}=await Promise.resolve().then(()=>(vue(),yue)),e=t().Pie.parser.LangiumParser;v0.pie=e},"pie"),architecture:Ot(async()=>{let{createArchitectureServices:t}=await Promise.resolve().then(()=>(bue(),xue)),e=t().Architecture.parser.LangiumParser;v0.architecture=e},"architecture"),gitGraph:Ot(async()=>{let{createGitGraphServices:t}=await Promise.resolve().then(()=>(Tue(),wue)),e=t().GitGraph.parser.LangiumParser;v0.gitGraph=e},"gitGraph")};o(Gl,"parse");Ot(Gl,"parse");CGe=class extends Error{static{o(this,"MermaidParseError")}constructor(t){let e=t.lexerErrors.map(n=>n.message).join(` +`),r=t.parserErrors.map(n=>n.message).join(` +`);super(`Parsing failed: ${e} ${r}`),this.result=t}static{Ot(this,"MermaidParseError")}}});function lf(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}var ox=M(()=>{"use strict";o(lf,"populateCommonDb")});var jr,eE=M(()=>{"use strict";jr={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4}});var cf,tE=M(()=>{"use strict";cf=class{constructor(e){this.init=e;this.records=this.init()}static{o(this,"ImperativeState")}reset(){this.records=this.init()}}});function RI(){return t9({length:7})}function _Ge(t,e){let r=Object.create(null);return t.reduce((n,i)=>{let a=e(i);return r[a]||(r[a]=!0,n.push(i)),n},[])}function kue(t,e,r){let n=t.indexOf(e);n===-1?t.push(r):t.splice(n,1,r)}function Sue(t){let e=t.reduce((i,a)=>i.seq>a.seq?i:a,t[0]),r="";t.forEach(function(i){i===e?r+=" *":r+=" |"});let n=[r,e.id,e.seq];for(let i in wt.records.branches)wt.records.branches.get(i)===e.id&&n.push(i);if(Y.debug(n.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){let i=wt.records.commits.get(e.parents[0]);kue(t,e,i),e.parents[1]&&t.push(wt.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){let i=wt.records.commits.get(e.parents[0]);kue(t,e,i)}}t=_Ge(t,i=>i.id),Sue(t)}var AGe,x0,wt,LGe,DGe,NGe,RGe,MGe,IGe,OGe,Eue,PGe,BGe,FGe,zGe,GGe,Cue,$Ge,VGe,UGe,rE,MI=M(()=>{"use strict";ht();hr();Ua();fr();ki();eE();tE();hs();AGe=ur.gitGraph,x0=o(()=>ws({...AGe,...Sr().gitGraph}),"getConfig"),wt=new cf(()=>{let t=x0(),e=t.mainBranchName,r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});o(RI,"getID");o(_Ge,"uniqBy");LGe=o(function(t){wt.records.direction=t},"setDirection"),DGe=o(function(t){Y.debug("options str",t),t=t?.trim(),t=t||"{}";try{wt.records.options=JSON.parse(t)}catch(e){Y.error("error while parsing gitGraph options",e.message)}},"setOptions"),NGe=o(function(){return wt.records.options},"getOptions"),RGe=o(function(t){let e=t.msg,r=t.id,n=t.type,i=t.tags;Y.info("commit",e,r,n,i),Y.debug("Entering commit:",e,r,n,i);let a=x0();r=je.sanitizeText(r,a),e=je.sanitizeText(e,a),i=i?.map(l=>je.sanitizeText(l,a));let s={id:r||wt.records.seq+"-"+RI(),message:e,seq:wt.records.seq++,type:n??jr.NORMAL,tags:i??[],parents:wt.records.head==null?[]:[wt.records.head.id],branch:wt.records.currBranch};wt.records.head=s,Y.info("main branch",a.mainBranchName),wt.records.commits.set(s.id,s),wt.records.branches.set(wt.records.currBranch,s.id),Y.debug("in pushCommit "+s.id)},"commit"),MGe=o(function(t){let e=t.name,r=t.order;if(e=je.sanitizeText(e,x0()),wt.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);wt.records.branches.set(e,wt.records.head!=null?wt.records.head.id:null),wt.records.branchConfig.set(e,{name:e,order:r}),Eue(e),Y.debug("in createBranch")},"branch"),IGe=o(t=>{let e=t.branch,r=t.id,n=t.type,i=t.tags,a=x0();e=je.sanitizeText(e,a),r&&(r=je.sanitizeText(r,a));let s=wt.records.branches.get(wt.records.currBranch),l=wt.records.branches.get(e),u=s?wt.records.commits.get(s):void 0,h=l?wt.records.commits.get(l):void 0;if(u&&h&&u.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(wt.records.currBranch===e){let p=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw p.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},p}if(u===void 0||!u){let p=new Error(`Incorrect usage of "merge". Current branch (${wt.records.currBranch})has no commits`);throw p.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},p}if(!wt.records.branches.has(e)){let p=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw p.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},p}if(h===void 0||!h){let p=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw p.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},p}if(u===h){let p=new Error('Incorrect usage of "merge". Both branches have same head');throw p.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},p}if(r&&wt.records.commits.has(r)){let p=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom Id");throw p.hash={text:`merge ${e} ${r} ${n} ${i?.join(" ")}`,token:`merge ${e} ${r} ${n} ${i?.join(" ")}`,expected:[`merge ${e} ${r}_UNIQUE ${n} ${i?.join(" ")}`]},p}let f=l||"",d={id:r||`${wt.records.seq}-${RI()}`,message:`merged branch ${e} into ${wt.records.currBranch}`,seq:wt.records.seq++,parents:wt.records.head==null?[]:[wt.records.head.id,f],branch:wt.records.currBranch,type:jr.MERGE,customType:n,customId:!!r,tags:i??[]};wt.records.head=d,wt.records.commits.set(d.id,d),wt.records.branches.set(wt.records.currBranch,d.id),Y.debug(wt.records.branches),Y.debug("in mergeBranch")},"merge"),OGe=o(function(t){let e=t.id,r=t.targetId,n=t.tags,i=t.parent;Y.debug("Entering cherryPick:",e,r,n);let a=x0();if(e=je.sanitizeText(e,a),r=je.sanitizeText(r,a),n=n?.map(u=>je.sanitizeText(u,a)),i=je.sanitizeText(i,a),!e||!wt.records.commits.has(e)){let u=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw u.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},u}let s=wt.records.commits.get(e);if(s===void 0||!s)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(s.parents)&&s.parents.includes(i)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let l=s.branch;if(s.type===jr.MERGE&&!i)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!wt.records.commits.has(r)){if(l===wt.records.currBranch){let d=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw d.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},d}let u=wt.records.branches.get(wt.records.currBranch);if(u===void 0||!u){let d=new Error(`Incorrect usage of "cherry-pick". Current branch (${wt.records.currBranch})has no commits`);throw d.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},d}let h=wt.records.commits.get(u);if(h===void 0||!h){let d=new Error(`Incorrect usage of "cherry-pick". Current branch (${wt.records.currBranch})has no commits`);throw d.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},d}let f={id:wt.records.seq+"-"+RI(),message:`cherry-picked ${s?.message} into ${wt.records.currBranch}`,seq:wt.records.seq++,parents:wt.records.head==null?[]:[wt.records.head.id,s.id],branch:wt.records.currBranch,type:jr.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===jr.MERGE?`|parent:${i}`:""}`]};wt.records.head=f,wt.records.commits.set(f.id,f),wt.records.branches.set(wt.records.currBranch,f.id),Y.debug(wt.records.branches),Y.debug("in cherryPick")}},"cherryPick"),Eue=o(function(t){if(t=je.sanitizeText(t,x0()),wt.records.branches.has(t)){wt.records.currBranch=t;let e=wt.records.branches.get(wt.records.currBranch);e===void 0||!e?wt.records.head=null:wt.records.head=wt.records.commits.get(e)??null}else{let e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");o(kue,"upsert");o(Sue,"prettyPrintCommitHistory");PGe=o(function(){Y.debug(wt.records.commits);let t=Cue()[0];Sue([t])},"prettyPrint"),BGe=o(function(){wt.reset(),_r()},"clear"),FGe=o(function(){return[...wt.records.branchConfig.values()].map((e,r)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${r}`)}).sort((e,r)=>(e.order??0)-(r.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),zGe=o(function(){return wt.records.branches},"getBranches"),GGe=o(function(){return wt.records.commits},"getCommits"),Cue=o(function(){let t=[...wt.records.commits.values()];return t.forEach(function(e){Y.debug(e.id)}),t.sort((e,r)=>e.seq-r.seq),t},"getCommitsArray"),$Ge=o(function(){return wt.records.currBranch},"getCurrentBranch"),VGe=o(function(){return wt.records.direction},"getDirection"),UGe=o(function(){return wt.records.head},"getHead"),rE={commitType:jr,getConfig:x0,setDirection:LGe,setOptions:DGe,getOptions:NGe,commit:RGe,branch:MGe,merge:IGe,cherryPick:OGe,checkout:Eue,prettyPrint:PGe,clear:BGe,getBranchesAsObjArray:FGe,getBranches:zGe,getCommits:GGe,getCommitsArray:Cue,getCurrentBranch:$Ge,getDirection:VGe,getHead:UGe,setAccTitle:Rr,getAccTitle:Pr,getAccDescription:Fr,setAccDescription:Br,setDiagramTitle:ln,getDiagramTitle:Jr}});var HGe,WGe,YGe,qGe,XGe,jGe,KGe,Aue,_ue=M(()=>{"use strict";Ng();ht();ox();MI();eE();HGe=o((t,e)=>{lf(t,e),t.dir&&e.setDirection(t.dir);for(let r of t.statements)WGe(r,e)},"populate"),WGe=o((t,e)=>{let n={Commit:o(i=>e.commit(YGe(i)),"Commit"),Branch:o(i=>e.branch(qGe(i)),"Branch"),Merge:o(i=>e.merge(XGe(i)),"Merge"),Checkout:o(i=>e.checkout(jGe(i)),"Checkout"),CherryPicking:o(i=>e.cherryPick(KGe(i)),"CherryPicking")}[t.$type];n?n(t):Y.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),YGe=o(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?jr[t.type]:jr.NORMAL,tags:t.tags??void 0}),"parseCommit"),qGe=o(t=>({name:t.name,order:t.order??0}),"parseBranch"),XGe=o(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?jr[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),jGe=o(t=>t.branch,"parseCheckout"),KGe=o(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Aue={parse:o(async t=>{let e=await Gl("gitGraph",t);Y.debug(e),HGe(e,rE)},"parse")}});var QGe,el,hf,ff,Pc,Vu,b0,Ps,Bs,nE,lx,iE,uf,Nr,ZGe,Due,Nue,JGe,e$e,t$e,r$e,n$e,i$e,a$e,s$e,o$e,l$e,c$e,u$e,Lue,h$e,cx,f$e,d$e,p$e,m$e,g$e,Rue,Mue=M(()=>{"use strict";mr();Vt();ht();hr();eE();QGe=de(),el=QGe?.gitGraph,hf=10,ff=40,Pc=4,Vu=2,b0=8,Ps=new Map,Bs=new Map,nE=30,lx=new Map,iE=[],uf=0,Nr="LR",ZGe=o(()=>{Ps.clear(),Bs.clear(),lx.clear(),uf=0,iE=[],Nr="LR"},"clear"),Due=o(t=>{let e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|/gi):t).forEach(n=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=n.trim(),e.appendChild(i)}),e},"drawText"),Nue=o(t=>{let e,r,n;return Nr==="BT"?(r=o((i,a)=>i<=a,"comparisonFunc"),n=1/0):(r=o((i,a)=>i>=a,"comparisonFunc"),n=0),t.forEach(i=>{let a=Nr==="TB"||Nr=="BT"?Bs.get(i)?.y:Bs.get(i)?.x;a!==void 0&&r(a,n)&&(e=i,n=a)}),e},"findClosestParent"),JGe=o(t=>{let e="",r=1/0;return t.forEach(n=>{let i=Bs.get(n).y;i<=r&&(e=n,r=i)}),e||void 0},"findClosestParentBT"),e$e=o((t,e,r)=>{let n=r,i=r,a=[];t.forEach(s=>{let l=e.get(s);if(!l)throw new Error(`Commit not found for key ${s}`);l.parents.length?(n=r$e(l),i=Math.max(n,i)):a.push(l),n$e(l,n)}),n=i,a.forEach(s=>{i$e(s,n,r)}),t.forEach(s=>{let l=e.get(s);if(l?.parents.length){let u=JGe(l.parents);n=Bs.get(u).y-ff,n<=i&&(i=n);let h=Ps.get(l.branch).pos,f=n-hf;Bs.set(l.id,{x:h,y:f})}})},"setParallelBTPos"),t$e=o(t=>{let e=Nue(t.parents.filter(n=>n!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);let r=Bs.get(e)?.y;if(r===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return r},"findClosestParentPos"),r$e=o(t=>t$e(t)+ff,"calculateCommitPosition"),n$e=o((t,e)=>{let r=Ps.get(t.branch);if(!r)throw new Error(`Branch not found for commit ${t.id}`);let n=r.pos,i=e+hf;return Bs.set(t.id,{x:n,y:i}),{x:n,y:i}},"setCommitPosition"),i$e=o((t,e,r)=>{let n=Ps.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);let i=e+r,a=n.pos;Bs.set(t.id,{x:a,y:i})},"setRootPosition"),a$e=o((t,e,r,n,i,a)=>{if(a===jr.HIGHLIGHT)t.append("rect").attr("x",r.x-10).attr("y",r.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${i%b0} ${n}-outer`),t.append("rect").attr("x",r.x-6).attr("y",r.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${i%b0} ${n}-inner`);else if(a===jr.CHERRY_PICK)t.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",10).attr("class",`commit ${e.id} ${n}`),t.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${n}`),t.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${n}`),t.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${n}`),t.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${n}`);else{let s=t.append("circle");if(s.attr("cx",r.x),s.attr("cy",r.y),s.attr("r",e.type===jr.MERGE?9:10),s.attr("class",`commit ${e.id} commit${i%b0}`),a===jr.MERGE){let l=t.append("circle");l.attr("cx",r.x),l.attr("cy",r.y),l.attr("r",6),l.attr("class",`commit ${n} ${e.id} commit${i%b0}`)}a===jr.REVERSE&&t.append("path").attr("d",`M ${r.x-5},${r.y-5}L${r.x+5},${r.y+5}M${r.x-5},${r.y+5}L${r.x+5},${r.y-5}`).attr("class",`commit ${n} ${e.id} commit${i%b0}`)}},"drawCommitBullet"),s$e=o((t,e,r,n)=>{if(e.type!==jr.CHERRY_PICK&&(e.customId&&e.type===jr.MERGE||e.type!==jr.MERGE)&&el?.showCommitLabel){let i=t.append("g"),a=i.insert("rect").attr("class","commit-label-bkg"),s=i.append("text").attr("x",n).attr("y",r.y+25).attr("class","commit-label").text(e.id),l=s.node()?.getBBox();if(l&&(a.attr("x",r.posWithOffset-l.width/2-Vu).attr("y",r.y+13.5).attr("width",l.width+2*Vu).attr("height",l.height+2*Vu),Nr==="TB"||Nr==="BT"?(a.attr("x",r.x-(l.width+4*Pc+5)).attr("y",r.y-12),s.attr("x",r.x-(l.width+4*Pc)).attr("y",r.y+l.height-12)):s.attr("x",r.posWithOffset-l.width/2),el.rotateCommitLabel))if(Nr==="TB"||Nr==="BT")s.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),a.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{let u=-7.5-(l.width+10)/25*9.5,h=10+l.width/25*8.5;i.attr("transform","translate("+u+", "+h+") rotate(-45, "+n+", "+r.y+")")}}},"drawCommitLabel"),o$e=o((t,e,r,n)=>{if(e.tags.length>0){let i=0,a=0,s=0,l=[];for(let u of e.tags.reverse()){let h=t.insert("polygon"),f=t.append("circle"),d=t.append("text").attr("y",r.y-16-i).attr("class","tag-label").text(u),p=d.node()?.getBBox();if(!p)throw new Error("Tag bbox not found");a=Math.max(a,p.width),s=Math.max(s,p.height),d.attr("x",r.posWithOffset-p.width/2),l.push({tag:d,hole:f,rect:h,yOffset:i}),i+=20}for(let{tag:u,hole:h,rect:f,yOffset:d}of l){let p=s/2,m=r.y-19.2-d;if(f.attr("class","tag-label-bkg").attr("points",` + ${n-a/2-Pc/2},${m+Vu} + ${n-a/2-Pc/2},${m-Vu} + ${r.posWithOffset-a/2-Pc},${m-p-Vu} + ${r.posWithOffset+a/2+Pc},${m-p-Vu} + ${r.posWithOffset+a/2+Pc},${m+p+Vu} + ${r.posWithOffset-a/2-Pc},${m+p+Vu}`),h.attr("cy",m).attr("cx",n-a/2+Pc/2).attr("r",1.5).attr("class","tag-hole"),Nr==="TB"||Nr==="BT"){let g=n+d;f.attr("class","tag-label-bkg").attr("points",` + ${r.x},${g+2} + ${r.x},${g-2} + ${r.x+hf},${g-p-2} + ${r.x+hf+a+4},${g-p-2} + ${r.x+hf+a+4},${g+p+2} + ${r.x+hf},${g+p+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+n+")"),h.attr("cx",r.x+Pc/2).attr("cy",g).attr("transform","translate(12,12) rotate(45, "+r.x+","+n+")"),u.attr("x",r.x+5).attr("y",g+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+n+")")}}}},"drawCommitTags"),l$e=o(t=>{switch(t.customType??t.type){case jr.NORMAL:return"commit-normal";case jr.REVERSE:return"commit-reverse";case jr.HIGHLIGHT:return"commit-highlight";case jr.MERGE:return"commit-merge";case jr.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),c$e=o((t,e,r,n)=>{let i={x:0,y:0};if(t.parents.length>0){let a=Nue(t.parents);if(a){let s=n.get(a)??i;return e==="TB"?s.y+ff:e==="BT"?(n.get(t.id)??i).y-ff:s.x+ff}}else return e==="TB"?nE:e==="BT"?(n.get(t.id)??i).y-ff:0;return 0},"calculatePosition"),u$e=o((t,e,r)=>{let n=Nr==="BT"&&r?e:e+hf,i=Nr==="TB"||Nr==="BT"?n:Ps.get(t.branch)?.pos,a=Nr==="TB"||Nr==="BT"?Ps.get(t.branch)?.pos:n;if(a===void 0||i===void 0)throw new Error(`Position were undefined for commit ${t.id}`);return{x:a,y:i,posWithOffset:n}},"getCommitPosition"),Lue=o((t,e,r)=>{if(!el)throw new Error("GitGraph config not found");let n=t.append("g").attr("class","commit-bullets"),i=t.append("g").attr("class","commit-labels"),a=Nr==="TB"||Nr==="BT"?nE:0,s=[...e.keys()],l=el?.parallelCommits??!1,u=o((f,d)=>{let p=e.get(f)?.seq,m=e.get(d)?.seq;return p!==void 0&&m!==void 0?p-m:0},"sortKeys"),h=s.sort(u);Nr==="BT"&&(l&&e$e(h,e,a),h=h.reverse()),h.forEach(f=>{let d=e.get(f);if(!d)throw new Error(`Commit not found for key ${f}`);l&&(a=c$e(d,Nr,a,Bs));let p=u$e(d,a,l);if(r){let m=l$e(d),g=d.customType??d.type,y=Ps.get(d.branch)?.index??0;a$e(n,d,p,m,y,g),s$e(i,d,p,a),o$e(i,d,p,a)}Nr==="TB"||Nr==="BT"?Bs.set(d.id,{x:p.x,y:p.posWithOffset}):Bs.set(d.id,{x:p.posWithOffset,y:p.y}),a=Nr==="BT"&&l?a+ff:a+ff+hf,a>uf&&(uf=a)})},"drawCommits"),h$e=o((t,e,r,n,i)=>{let s=(Nr==="TB"||Nr==="BT"?r.xh.branch===s,"isOnBranchToGetCurve"),u=o(h=>h.seq>t.seq&&h.sequ(h)&&l(h))},"shouldRerouteArrow"),cx=o((t,e,r=0)=>{let n=t+Math.abs(t-e)/2;if(r>5)return n;if(iE.every(s=>Math.abs(s-n)>=10))return iE.push(n),n;let a=Math.abs(t-e);return cx(t,e-a/5,r+1)},"findLane"),f$e=o((t,e,r,n)=>{let i=Bs.get(e.id),a=Bs.get(r.id);if(i===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${e.id} and ${r.id}`);let s=h$e(e,r,i,a,n),l="",u="",h=0,f=0,d=Ps.get(r.branch)?.index;r.type===jr.MERGE&&e.id!==r.parents[0]&&(d=Ps.get(e.branch)?.index);let p;if(s){l="A 10 10, 0, 0, 0,",u="A 10 10, 0, 0, 1,",h=10,f=10;let m=i.ya.x&&(l="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",h=20,f=20,r.type===jr.MERGE&&e.id!==r.parents[0]?p=`M ${i.x} ${i.y} L ${i.x} ${a.y-h} ${u} ${i.x-f} ${a.y} L ${a.x} ${a.y}`:p=`M ${i.x} ${i.y} L ${a.x+h} ${i.y} ${l} ${a.x} ${i.y+f} L ${a.x} ${a.y}`),i.x===a.x&&(p=`M ${i.x} ${i.y} L ${a.x} ${a.y}`)):Nr==="BT"?(i.xa.x&&(l="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",h=20,f=20,r.type===jr.MERGE&&e.id!==r.parents[0]?p=`M ${i.x} ${i.y} L ${i.x} ${a.y+h} ${l} ${i.x-f} ${a.y} L ${a.x} ${a.y}`:p=`M ${i.x} ${i.y} L ${a.x-h} ${i.y} ${l} ${a.x} ${i.y-f} L ${a.x} ${a.y}`),i.x===a.x&&(p=`M ${i.x} ${i.y} L ${a.x} ${a.y}`)):(i.ya.y&&(r.type===jr.MERGE&&e.id!==r.parents[0]?p=`M ${i.x} ${i.y} L ${a.x-h} ${i.y} ${l} ${a.x} ${i.y-f} L ${a.x} ${a.y}`:p=`M ${i.x} ${i.y} L ${i.x} ${a.y+h} ${u} ${i.x+f} ${a.y} L ${a.x} ${a.y}`),i.y===a.y&&(p=`M ${i.x} ${i.y} L ${a.x} ${a.y}`));if(p===void 0)throw new Error("Line definition not found");t.append("path").attr("d",p).attr("class","arrow arrow"+d%b0)},"drawArrow"),d$e=o((t,e)=>{let r=t.append("g").attr("class","commit-arrows");[...e.keys()].forEach(n=>{let i=e.get(n);i.parents&&i.parents.length>0&&i.parents.forEach(a=>{f$e(r,e.get(a),i,e)})})},"drawArrows"),p$e=o((t,e)=>{let r=t.append("g");e.forEach((n,i)=>{let a=i%b0,s=Ps.get(n.name)?.pos;if(s===void 0)throw new Error(`Position not found for branch ${n.name}`);let l=r.append("line");l.attr("x1",0),l.attr("y1",s),l.attr("x2",uf),l.attr("y2",s),l.attr("class","branch branch"+a),Nr==="TB"?(l.attr("y1",nE),l.attr("x1",s),l.attr("y2",uf),l.attr("x2",s)):Nr==="BT"&&(l.attr("y1",uf),l.attr("x1",s),l.attr("y2",nE),l.attr("x2",s)),iE.push(s);let u=n.name,h=Due(u),f=r.insert("rect"),p=r.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+a);p.node().appendChild(h);let m=h.getBBox();f.attr("class","branchLabelBkg label"+a).attr("rx",4).attr("ry",4).attr("x",-m.width-4-(el?.rotateCommitLabel===!0?30:0)).attr("y",-m.height/2+8).attr("width",m.width+18).attr("height",m.height+4),p.attr("transform","translate("+(-m.width-14-(el?.rotateCommitLabel===!0?30:0))+", "+(s-m.height/2-1)+")"),Nr==="TB"?(f.attr("x",s-m.width/2-10).attr("y",0),p.attr("transform","translate("+(s-m.width/2-5)+", 0)")):Nr==="BT"?(f.attr("x",s-m.width/2-10).attr("y",uf),p.attr("transform","translate("+(s-m.width/2-5)+", "+uf+")")):f.attr("transform","translate(-19, "+(s-m.height/2)+")")})},"drawBranches"),m$e=o(function(t,e,r,n,i){return Ps.set(t,{pos:e,index:r}),e+=50+(i?40:0)+(Nr==="TB"||Nr==="BT"?n.width/2:0),e},"setBranchPosition"),g$e=o(function(t,e,r,n){if(ZGe(),Y.debug("in gitgraph renderer",t+` +`,"id:",e,r),!el)throw new Error("GitGraph config not found");let i=el.rotateCommitLabel??!1,a=n.db;lx=a.getCommits();let s=a.getBranchesAsObjArray();Nr=a.getDirection();let l=ze(`[id="${e}"]`),u=0;s.forEach((h,f)=>{let d=Due(h.name),p=l.append("g"),m=p.insert("g").attr("class","branchLabel"),g=m.insert("g").attr("class","label branch-label");g.node()?.appendChild(d);let y=d.getBBox();u=m$e(h.name,u,f,y,i),g.remove(),m.remove(),p.remove()}),Lue(l,lx,!1),el.showBranches&&p$e(l,s),d$e(l,lx),Lue(l,lx,!0),Ut.insertTitle(l,"gitTitleText",el.titleTopMargin??0,a.getDiagramTitle()),a7(void 0,l,el.diagramPadding,el.useMaxWidth)},"draw"),Rue={draw:g$e}});var y$e,Iue,Oue=M(()=>{"use strict";y$e=o(t=>` + .commit-id, + .commit-msg, + .branch-label { + fill: lightgrey; + color: lightgrey; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + } + ${[0,1,2,3,4,5,6,7].map(e=>` + .branch-label${e} { fill: ${t["gitBranchLabel"+e]}; } + .commit${e} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; } + .commit-highlight${e} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; } + .label${e} { fill: ${t["git"+e]}; } + .arrow${e} { stroke: ${t["git"+e]}; } + `).join(` +`)} + + .branch { + stroke-width: 1; + stroke: ${t.lineColor}; + stroke-dasharray: 2; + } + .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};} + .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; } + .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};} + .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; } + .tag-hole { fill: ${t.textColor}; } + + .commit-merge { + stroke: ${t.primaryColor}; + fill: ${t.primaryColor}; + } + .commit-reverse { + stroke: ${t.primaryColor}; + fill: ${t.primaryColor}; + stroke-width: 3; + } + .commit-highlight-outer { + } + .commit-highlight-inner { + stroke: ${t.primaryColor}; + fill: ${t.primaryColor}; + } + + .arrow { stroke-width: 8; stroke-linecap: round; fill: none} + .gitTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; + } +`,"getStyles"),Iue=y$e});var Pue={};vr(Pue,{diagram:()=>v$e});var v$e,Bue=M(()=>{"use strict";_ue();MI();Mue();Oue();v$e={parser:Aue,db:rE,renderer:Rue,styles:Iue}});var II,Gue,$ue=M(()=>{"use strict";II=function(){var t=o(function(R,S,O,N){for(O=O||{},N=R.length;N--;O[R[N]]=S);return O},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],n=[1,27],i=[1,28],a=[1,29],s=[1,30],l=[1,31],u=[1,32],h=[1,33],f=[1,34],d=[1,9],p=[1,10],m=[1,11],g=[1,12],y=[1,13],v=[1,14],x=[1,15],b=[1,16],w=[1,19],_=[1,20],T=[1,21],E=[1,22],L=[1,23],C=[1,25],A=[1,35],I={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:o(function(S,O,N,P,F,B,$){var z=B.length-1;switch(F){case 1:return B[z-1];case 2:this.$=[];break;case 3:B[z-1].push(B[z]),this.$=B[z-1];break;case 4:case 5:this.$=B[z];break;case 6:case 7:this.$=[];break;case 8:P.setWeekday("monday");break;case 9:P.setWeekday("tuesday");break;case 10:P.setWeekday("wednesday");break;case 11:P.setWeekday("thursday");break;case 12:P.setWeekday("friday");break;case 13:P.setWeekday("saturday");break;case 14:P.setWeekday("sunday");break;case 15:P.setWeekend("friday");break;case 16:P.setWeekend("saturday");break;case 17:P.setDateFormat(B[z].substr(11)),this.$=B[z].substr(11);break;case 18:P.enableInclusiveEndDates(),this.$=B[z].substr(18);break;case 19:P.TopAxis(),this.$=B[z].substr(8);break;case 20:P.setAxisFormat(B[z].substr(11)),this.$=B[z].substr(11);break;case 21:P.setTickInterval(B[z].substr(13)),this.$=B[z].substr(13);break;case 22:P.setExcludes(B[z].substr(9)),this.$=B[z].substr(9);break;case 23:P.setIncludes(B[z].substr(9)),this.$=B[z].substr(9);break;case 24:P.setTodayMarker(B[z].substr(12)),this.$=B[z].substr(12);break;case 27:P.setDiagramTitle(B[z].substr(6)),this.$=B[z].substr(6);break;case 28:this.$=B[z].trim(),P.setAccTitle(this.$);break;case 29:case 30:this.$=B[z].trim(),P.setAccDescription(this.$);break;case 31:P.addSection(B[z].substr(8)),this.$=B[z].substr(8);break;case 33:P.addTask(B[z-1],B[z]),this.$="task";break;case 34:this.$=B[z-1],P.setClickEvent(B[z-1],B[z],null);break;case 35:this.$=B[z-2],P.setClickEvent(B[z-2],B[z-1],B[z]);break;case 36:this.$=B[z-2],P.setClickEvent(B[z-2],B[z-1],null),P.setLink(B[z-2],B[z]);break;case 37:this.$=B[z-3],P.setClickEvent(B[z-3],B[z-2],B[z-1]),P.setLink(B[z-3],B[z]);break;case 38:this.$=B[z-2],P.setClickEvent(B[z-2],B[z],null),P.setLink(B[z-2],B[z-1]);break;case 39:this.$=B[z-3],P.setClickEvent(B[z-3],B[z-1],B[z]),P.setLink(B[z-3],B[z-2]);break;case 40:this.$=B[z-1],P.setLink(B[z-1],B[z]);break;case 41:case 47:this.$=B[z-1]+" "+B[z];break;case 42:case 43:case 45:this.$=B[z-2]+" "+B[z-1]+" "+B[z];break;case 44:case 46:this.$=B[z-3]+" "+B[z-2]+" "+B[z-1]+" "+B[z];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:n,14:i,15:a,16:s,17:l,18:u,19:18,20:h,21:f,22:d,23:p,24:m,25:g,26:y,27:v,28:x,29:b,30:w,31:_,33:T,35:E,36:L,37:24,38:C,40:A},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:r,13:n,14:i,15:a,16:s,17:l,18:u,19:18,20:h,21:f,22:d,23:p,24:m,25:g,26:y,27:v,28:x,29:b,30:w,31:_,33:T,35:E,36:L,37:24,38:C,40:A},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:o(function(S,O){if(O.recoverable)this.trace(S);else{var N=new Error(S);throw N.hash=O,N}},"parseError"),parse:o(function(S){var O=this,N=[0],P=[],F=[null],B=[],$=this.table,z="",W=0,j=0,K=0,ie=2,Q=1,ee=B.slice.call(arguments,1),J=Object.create(this.lexer),H={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(H.yy[q]=this.yy[q]);J.setInput(S,H.yy),H.yy.lexer=J,H.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var Z=J.yylloc;B.push(Z);var ae=J.options&&J.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ue(he){N.length=N.length-2*he,F.length=F.length-he,B.length=B.length-he}o(ue,"popStack");function ce(){var he;return he=P.pop()||J.lex()||Q,typeof he!="number"&&(he instanceof Array&&(P=he,he=P.pop()),he=O.symbols_[he]||he),he}o(ce,"lex");for(var te,De,oe,ke,Fe,Be,Ve={},Ge,He,xe,X;;){if(oe=N[N.length-1],this.defaultActions[oe]?ke=this.defaultActions[oe]:((te===null||typeof te>"u")&&(te=ce()),ke=$[oe]&&$[oe][te]),typeof ke>"u"||!ke.length||!ke[0]){var fe="";X=[];for(Ge in $[oe])this.terminals_[Ge]&&Ge>ie&&X.push("'"+this.terminals_[Ge]+"'");J.showPosition?fe="Parse error on line "+(W+1)+`: +`+J.showPosition()+` +Expecting `+X.join(", ")+", got '"+(this.terminals_[te]||te)+"'":fe="Parse error on line "+(W+1)+": Unexpected "+(te==Q?"end of input":"'"+(this.terminals_[te]||te)+"'"),this.parseError(fe,{text:J.match,token:this.terminals_[te]||te,line:J.yylineno,loc:Z,expected:X})}if(ke[0]instanceof Array&&ke.length>1)throw new Error("Parse Error: multiple actions possible at state: "+oe+", token: "+te);switch(ke[0]){case 1:N.push(te),F.push(J.yytext),B.push(J.yylloc),N.push(ke[1]),te=null,De?(te=De,De=null):(j=J.yyleng,z=J.yytext,W=J.yylineno,Z=J.yylloc,K>0&&K--);break;case 2:if(He=this.productions_[ke[1]][1],Ve.$=F[F.length-He],Ve._$={first_line:B[B.length-(He||1)].first_line,last_line:B[B.length-1].last_line,first_column:B[B.length-(He||1)].first_column,last_column:B[B.length-1].last_column},ae&&(Ve._$.range=[B[B.length-(He||1)].range[0],B[B.length-1].range[1]]),Be=this.performAction.apply(Ve,[z,j,W,H.yy,ke[1],F,B].concat(ee)),typeof Be<"u")return Be;He&&(N=N.slice(0,-1*He*2),F=F.slice(0,-1*He),B=B.slice(0,-1*He)),N.push(this.productions_[ke[1]][0]),F.push(Ve.$),B.push(Ve._$),xe=$[N[N.length-2]][N[N.length-1]],N.push(xe);break;case 3:return!0}}return!0},"parse")},D=function(){var R={EOF:1,parseError:o(function(O,N){if(this.yy.parser)this.yy.parser.parseError(O,N);else throw new Error(O)},"parseError"),setInput:o(function(S,O){return this.yy=O||this.yy||{},this._input=S,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var S=this._input[0];this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S;var O=S.match(/(?:\r\n?|\n).*/g);return O?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},"input"),unput:o(function(S){var O=S.length,N=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-O),this.offset-=O;var P=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),N.length-1&&(this.yylineno-=N.length-1);var F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:N?(N.length===P.length?this.yylloc.first_column:0)+P[P.length-N.length].length-N[0].length:this.yylloc.first_column-O},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-O]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(S){this.unput(this.match.slice(S))},"less"),pastInput:o(function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var S=this.pastInput(),O=new Array(S.length+1).join("-");return S+this.upcomingInput()+` +`+O+"^"},"showPosition"),test_match:o(function(S,O){var N,P,F;if(this.options.backtrack_lexer&&(F={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(F.yylloc.range=this.yylloc.range.slice(0))),P=S[0].match(/(?:\r\n?|\n).*/g),P&&(this.yylineno+=P.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:P?P[P.length-1].length-P[P.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+S[0].length},this.yytext+=S[0],this.match+=S[0],this.matches=S,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(S[0].length),this.matched+=S[0],N=this.performAction.call(this,this.yy,this,O,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),N)return N;if(this._backtrack){for(var B in F)this[B]=F[B];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var S,O,N,P;this._more||(this.yytext="",this.match="");for(var F=this._currentRules(),B=0;BO[0].length)){if(O=N,P=B,this.options.backtrack_lexer){if(S=this.test_match(N,F[B]),S!==!1)return S;if(this._backtrack){O=!1;continue}else return!1}else if(!this.options.flex)break}return O?(S=this.test_match(O,F[P]),S!==!1?S:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var O=this.next();return O||this.lex()},"lex"),begin:o(function(O){this.conditionStack.push(O)},"begin"),popState:o(function(){var O=this.conditionStack.length-1;return O>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(O){return O=this.conditionStack.length-1-Math.abs(O||0),O>=0?this.conditionStack[O]:"INITIAL"},"topState"),pushState:o(function(O){this.begin(O)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(O,N,P,F){var B=F;switch(P){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return R}();I.lexer=D;function k(){this.yy={}}return o(k,"Parser"),k.prototype=I,I.Parser=k,new k}();II.parser=II;Gue=II});var Vue=Ni((OI,PI)=>{"use strict";(function(t,e){typeof OI=="object"&&typeof PI<"u"?PI.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=e()})(OI,function(){"use strict";var t="day";return function(e,r,n){var i=o(function(l){return l.add(4-l.isoWeekday(),t)},"a"),a=r.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(l){if(!this.$utils().u(l))return this.add(7*(l-this.isoWeek()),t);var u,h,f,d,p=i(this),m=(u=this.isoWeekYear(),h=this.$u,f=(h?n.utc:n)().year(u).startOf("year"),d=4-f.isoWeekday(),f.isoWeekday()>4&&(d+=7),f.add(d,t));return p.diff(m,"week")+1},a.isoWeekday=function(l){return this.$utils().u(l)?this.day()||7:this.day(this.day()%7?l:l-7)};var s=a.startOf;a.startOf=function(l,u){var h=this.$utils(),f=!!h.u(u)||u;return h.p(l)==="isoweek"?f?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):s.bind(this)(l,u)}}})});var Uue=Ni((BI,FI)=>{"use strict";(function(t,e){typeof BI=="object"&&typeof FI<"u"?FI.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=e()})(BI,function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},l=o(function(g){return(g=+g)+(g>68?1900:2e3)},"a"),u=o(function(g){return function(y){this[g]=+y}},"f"),h=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var v=y.match(/([+-]|\d\d)/g),x=60*v[1]+(+v[2]||0);return x===0?0:v[0]==="+"?-x:x}(g)}],f=o(function(g){var y=s[g];return y&&(y.indexOf?y:y.s.concat(y.f))},"u"),d=o(function(g,y){var v,x=s.meridiem;if(x){for(var b=1;b<=24;b+=1)if(g.indexOf(x(b,0,y))>-1){v=b>12;break}}else v=g===(y?"pm":"PM");return v},"d"),p={A:[a,function(g){this.afternoon=d(g,!1)}],a:[a,function(g){this.afternoon=d(g,!0)}],Q:[r,function(g){this.month=3*(g-1)+1}],S:[r,function(g){this.milliseconds=100*+g}],SS:[n,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[n,u("day")],Do:[a,function(g){var y=s.ordinal,v=g.match(/\d+/);if(this.day=v[0],y)for(var x=1;x<=31;x+=1)y(x).replace(/\[|\]/g,"")===g&&(this.day=x)}],w:[i,u("week")],ww:[n,u("week")],M:[i,u("month")],MM:[n,u("month")],MMM:[a,function(g){var y=f("months"),v=(f("monthsShort")||y.map(function(x){return x.slice(0,3)})).indexOf(g)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[a,function(g){var y=f("months").indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[n,function(g){this.year=l(g)}],YYYY:[/\d{4}/,u("year")],Z:h,ZZ:h};function m(g){var y,v;y=g,v=s&&s.formats;for(var x=(g=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,A,I){var D=I&&I.toUpperCase();return A||v[I]||t[I]||v[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,R,S){return R||S.slice(1)})})).match(e),b=x.length,w=0;w-1)return new Date((N==="X"?1e3:1)*O);var B=m(N)(O),$=B.year,z=B.month,W=B.day,j=B.hours,K=B.minutes,ie=B.seconds,Q=B.milliseconds,ee=B.zone,J=B.week,H=new Date,q=W||($||z?1:H.getDate()),Z=$||H.getFullYear(),ae=0;$&&!z||(ae=z>0?z-1:H.getMonth());var ue,ce=j||0,te=K||0,De=ie||0,oe=Q||0;return ee?new Date(Date.UTC(Z,ae,q,ce,te,De,oe+60*ee.offset*1e3)):P?new Date(Date.UTC(Z,ae,q,ce,te,De,oe)):(ue=new Date(Z,ae,q,ce,te,De,oe),J&&(ue=F(ue).week(J).toDate()),ue)}catch{return new Date("")}}(_,L,T,v),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),I&&_!=this.format(L)&&(this.$d=new Date("")),s={}}else if(L instanceof Array)for(var k=L.length,R=1;R<=k;R+=1){E[1]=L[R-1];var S=v.apply(this,E);if(S.isValid()){this.$d=S.$d,this.$L=S.$L,this.init();break}R===k&&(this.$d=new Date(""))}else b.call(this,w)}}})});var Hue=Ni((zI,GI)=>{"use strict";(function(t,e){typeof zI=="object"&&typeof GI<"u"?GI.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=e()})(zI,function(){"use strict";return function(t,e){var r=e.prototype,n=r.format;r.format=function(i){var a=this,s=this.$locale();if(!this.isValid())return n.bind(this)(i);var l=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return s.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return s.ordinal(a.week(),"W");case"w":case"ww":return l.s(a.week(),h==="w"?1:2,"0");case"W":case"WW":return l.s(a.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return l.s(String(a.$H===0?24:a.$H),h==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return h}});return n.bind(this)(u)}}})});function she(t,e,r){let n=!0;for(;n;)n=!1,r.forEach(function(i){let a="^\\s*"+i+"\\s*$",s=new RegExp(a);t[0].match(s)&&(e[i]=!0,t.shift(1),n=!0)})}var que,ho,Xue,jue,Kue,Wue,Bc,HI,WI,YI,ux,hx,qI,XI,oE,Mg,jI,Que,KI,fx,QI,ZI,lE,$I,T$e,k$e,E$e,S$e,C$e,A$e,_$e,L$e,D$e,N$e,R$e,M$e,I$e,O$e,P$e,B$e,F$e,z$e,G$e,$$e,V$e,U$e,H$e,Zue,W$e,Y$e,q$e,Jue,X$e,VI,ehe,the,aE,Rg,j$e,K$e,UI,sE,Vi,rhe,Q$e,w0,Z$e,Yue,J$e,nhe,eVe,ihe,tVe,rVe,ahe,ohe=M(()=>{"use strict";que=ka(Fp(),1),ho=ka(Ab(),1),Xue=ka(Vue(),1),jue=ka(Uue(),1),Kue=ka(Hue(),1);ht();Vt();hr();ki();ho.default.extend(Xue.default);ho.default.extend(jue.default);ho.default.extend(Kue.default);Wue={friday:5,saturday:6},Bc="",HI="",YI="",ux=[],hx=[],qI=new Map,XI=[],oE=[],Mg="",jI="",Que=["active","done","crit","milestone"],KI=[],fx=!1,QI=!1,ZI="sunday",lE="saturday",$I=0,T$e=o(function(){XI=[],oE=[],Mg="",KI=[],aE=0,UI=void 0,sE=void 0,Vi=[],Bc="",HI="",jI="",WI=void 0,YI="",ux=[],hx=[],fx=!1,QI=!1,$I=0,qI=new Map,_r(),ZI="sunday",lE="saturday"},"clear"),k$e=o(function(t){HI=t},"setAxisFormat"),E$e=o(function(){return HI},"getAxisFormat"),S$e=o(function(t){WI=t},"setTickInterval"),C$e=o(function(){return WI},"getTickInterval"),A$e=o(function(t){YI=t},"setTodayMarker"),_$e=o(function(){return YI},"getTodayMarker"),L$e=o(function(t){Bc=t},"setDateFormat"),D$e=o(function(){fx=!0},"enableInclusiveEndDates"),N$e=o(function(){return fx},"endDatesAreInclusive"),R$e=o(function(){QI=!0},"enableTopAxis"),M$e=o(function(){return QI},"topAxisEnabled"),I$e=o(function(t){jI=t},"setDisplayMode"),O$e=o(function(){return jI},"getDisplayMode"),P$e=o(function(){return Bc},"getDateFormat"),B$e=o(function(t){ux=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),F$e=o(function(){return ux},"getIncludes"),z$e=o(function(t){hx=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),G$e=o(function(){return hx},"getExcludes"),$$e=o(function(){return qI},"getLinks"),V$e=o(function(t){Mg=t,XI.push(t)},"addSection"),U$e=o(function(){return XI},"getSections"),H$e=o(function(){let t=Yue(),e=10,r=0;for(;!t&&r[\d\w- ]+)/.exec(r);if(i!==null){let s=null;for(let u of i.groups.ids.split(" ")){let h=w0(u);h!==void 0&&(!s||h.endTime>s.endTime)&&(s=h)}if(s)return s.endTime;let l=new Date;return l.setHours(0,0,0,0),l}let a=(0,ho.default)(r,e.trim(),!0);if(a.isValid())return a.toDate();{Y.debug("Invalid date:"+r),Y.debug("With date format:"+e.trim());let s=new Date(r);if(s===void 0||isNaN(s.getTime())||s.getFullYear()<-1e4||s.getFullYear()>1e4)throw new Error("Invalid date:"+r);return s}},"getStartDate"),ehe=o(function(t){let e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),the=o(function(t,e,r,n=!1){r=r.trim();let a=/^until\s+(?[\d\w- ]+)/.exec(r);if(a!==null){let f=null;for(let p of a.groups.ids.split(" ")){let m=w0(p);m!==void 0&&(!f||m.startTime{window.open(r,"_self")}),qI.set(n,r))}),nhe(t,"clickable")},"setLink"),nhe=o(function(t,e){t.split(",").forEach(function(r){let n=w0(r);n!==void 0&&n.classes.push(e)})},"setClass"),eVe=o(function(t,e,r){if(de().securityLevel!=="loose"||e===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a{Ut.runFunc(e,...n)})},"setClickFun"),ihe=o(function(t,e){KI.push(function(){let r=document.querySelector(`[id="${t}"]`);r!==null&&r.addEventListener("click",function(){e()})},function(){let r=document.querySelector(`[id="${t}-text"]`);r!==null&&r.addEventListener("click",function(){e()})})},"pushFun"),tVe=o(function(t,e,r){t.split(",").forEach(function(n){eVe(n,e,r)}),nhe(t,"clickable")},"setClickEvent"),rVe=o(function(t){KI.forEach(function(e){e(t)})},"bindFunctions"),ahe={getConfig:o(()=>de().gantt,"getConfig"),clear:T$e,setDateFormat:L$e,getDateFormat:P$e,enableInclusiveEndDates:D$e,endDatesAreInclusive:N$e,enableTopAxis:R$e,topAxisEnabled:M$e,setAxisFormat:k$e,getAxisFormat:E$e,setTickInterval:S$e,getTickInterval:C$e,setTodayMarker:A$e,getTodayMarker:_$e,setAccTitle:Rr,getAccTitle:Pr,setDiagramTitle:ln,getDiagramTitle:Jr,setDisplayMode:I$e,getDisplayMode:O$e,setAccDescription:Br,getAccDescription:Fr,addSection:V$e,getSections:U$e,getTasks:H$e,addTask:Q$e,findTaskById:w0,addTaskOrg:Z$e,setIncludes:B$e,getIncludes:F$e,setExcludes:z$e,getExcludes:G$e,setClickEvent:tVe,setLink:J$e,getLinks:$$e,bindFunctions:rVe,parseDuration:ehe,isInvalidDate:Zue,setWeekday:W$e,getWeekday:Y$e,setWeekend:q$e};o(she,"getTaskTags")});var cE,nVe,lhe,iVe,Uu,aVe,che,uhe=M(()=>{"use strict";cE=ka(Ab(),1);ht();mr();fr();Vt();ni();nVe=o(function(){Y.debug("Something is calling, setConf, remove the call")},"setConf"),lhe={monday:Th,tuesday:b3,wednesday:w3,thursday:cc,friday:T3,saturday:k3,sunday:wl},iVe=o((t,e)=>{let r=[...t].map(()=>-1/0),n=[...t].sort((a,s)=>a.startTime-s.startTime||a.order-s.order),i=0;for(let a of n)for(let s=0;s=r[s]){r[s]=a.endTime,a.order=s+e,s>i&&(i=s);break}return i},"getMaxIntersections"),aVe=o(function(t,e,r,n){let i=de().gantt,a=de().securityLevel,s;a==="sandbox"&&(s=ze("#i"+e));let l=a==="sandbox"?ze(s.nodes()[0].contentDocument.body):ze("body"),u=a==="sandbox"?s.nodes()[0].contentDocument:document,h=u.getElementById(e);Uu=h.parentElement.offsetWidth,Uu===void 0&&(Uu=1200),i.useWidth!==void 0&&(Uu=i.useWidth);let f=n.db.getTasks(),d=[];for(let C of f)d.push(C.type);d=L(d);let p={},m=2*i.topPadding;if(n.db.getDisplayMode()==="compact"||i.displayMode==="compact"){let C={};for(let I of f)C[I.section]===void 0?C[I.section]=[I]:C[I.section].push(I);let A=0;for(let I of Object.keys(C)){let D=iVe(C[I],A)+1;A+=D,m+=D*(i.barHeight+i.barGap),p[I]=D}}else{m+=f.length*(i.barHeight+i.barGap);for(let C of d)p[C]=f.filter(A=>A.type===C).length}h.setAttribute("viewBox","0 0 "+Uu+" "+m);let g=l.select(`[id="${e}"]`),y=C3().domain([N4(f,function(C){return C.startTime}),D4(f,function(C){return C.endTime})]).rangeRound([0,Uu-i.leftPadding-i.rightPadding]);function v(C,A){let I=C.startTime,D=A.startTime,k=0;return I>D?k=1:I$.order))].map($=>C.find(z=>z.order===$));g.append("g").selectAll("rect").data(N).enter().append("rect").attr("x",0).attr("y",function($,z){return z=$.order,z*A+I-2}).attr("width",function(){return S-i.rightPadding/2}).attr("height",A).attr("class",function($){for(let[z,W]of d.entries())if($.type===W)return"section section"+z%i.numberSectionStyles;return"section section0"});let P=g.append("g").selectAll("rect").data(C).enter(),F=n.db.getLinks();if(P.append("rect").attr("id",function($){return $.id}).attr("rx",3).attr("ry",3).attr("x",function($){return $.milestone?y($.startTime)+D+.5*(y($.endTime)-y($.startTime))-.5*k:y($.startTime)+D}).attr("y",function($,z){return z=$.order,z*A+I}).attr("width",function($){return $.milestone?k:y($.renderEndTime||$.endTime)-y($.startTime)}).attr("height",k).attr("transform-origin",function($,z){return z=$.order,(y($.startTime)+D+.5*(y($.endTime)-y($.startTime))).toString()+"px "+(z*A+I+.5*k).toString()+"px"}).attr("class",function($){let z="task",W="";$.classes.length>0&&(W=$.classes.join(" "));let j=0;for(let[ie,Q]of d.entries())$.type===Q&&(j=ie%i.numberSectionStyles);let K="";return $.active?$.crit?K+=" activeCrit":K=" active":$.done?$.crit?K=" doneCrit":K=" done":$.crit&&(K+=" crit"),K.length===0&&(K=" task"),$.milestone&&(K=" milestone "+K),K+=j,K+=" "+W,z+K}),P.append("text").attr("id",function($){return $.id+"-text"}).text(function($){return $.task}).attr("font-size",i.fontSize).attr("x",function($){let z=y($.startTime),W=y($.renderEndTime||$.endTime);$.milestone&&(z+=.5*(y($.endTime)-y($.startTime))-.5*k),$.milestone&&(W=z+k);let j=this.getBBox().width;return j>W-z?W+j+1.5*i.leftPadding>S?z+D-5:W+D+5:(W-z)/2+z+D}).attr("y",function($,z){return z=$.order,z*A+i.barHeight/2+(i.fontSize/2-2)+I}).attr("text-height",k).attr("class",function($){let z=y($.startTime),W=y($.endTime);$.milestone&&(W=z+k);let j=this.getBBox().width,K="";$.classes.length>0&&(K=$.classes.join(" "));let ie=0;for(let[ee,J]of d.entries())$.type===J&&(ie=ee%i.numberSectionStyles);let Q="";return $.active&&($.crit?Q="activeCritText"+ie:Q="activeText"+ie),$.done?$.crit?Q=Q+" doneCritText"+ie:Q=Q+" doneText"+ie:$.crit&&(Q=Q+" critText"+ie),$.milestone&&(Q+=" milestoneText"),j>W-z?W+j+1.5*i.leftPadding>S?K+" taskTextOutsideLeft taskTextOutside"+ie+" "+Q:K+" taskTextOutsideRight taskTextOutside"+ie+" "+Q+" width-"+j:K+" taskText taskText"+ie+" "+Q+" width-"+j}),de().securityLevel==="sandbox"){let $;$=ze("#i"+e);let z=$.nodes()[0].contentDocument;P.filter(function(W){return F.has(W.id)}).each(function(W){var j=z.querySelector("#"+W.id),K=z.querySelector("#"+W.id+"-text");let ie=j.parentNode;var Q=z.createElement("a");Q.setAttribute("xlink:href",F.get(W.id)),Q.setAttribute("target","_top"),ie.appendChild(Q),Q.appendChild(j),Q.appendChild(K)})}}o(b,"drawRects");function w(C,A,I,D,k,R,S,O){if(S.length===0&&O.length===0)return;let N,P;for(let{startTime:j,endTime:K}of R)(N===void 0||jP)&&(P=K);if(!N||!P)return;if((0,cE.default)(P).diff((0,cE.default)(N),"year")>5){Y.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let F=n.db.getDateFormat(),B=[],$=null,z=(0,cE.default)(N);for(;z.valueOf()<=P;)n.db.isInvalidDate(z,F,S,O)?$?$.end=z:$={start:z,end:z}:$&&(B.push($),$=null),z=z.add(1,"d");g.append("g").selectAll("rect").data(B).enter().append("rect").attr("id",function(j){return"exclude-"+j.start.format("YYYY-MM-DD")}).attr("x",function(j){return y(j.start)+I}).attr("y",i.gridLineStartPadding).attr("width",function(j){let K=j.end.add(1,"day");return y(K)-y(j.start)}).attr("height",k-A-i.gridLineStartPadding).attr("transform-origin",function(j,K){return(y(j.start)+I+.5*(y(j.end)-y(j.start))).toString()+"px "+(K*C+.5*k).toString()+"px"}).attr("class","exclude-range")}o(w,"drawExcludeDays");function _(C,A,I,D){let k=v7(y).tickSize(-D+A+i.gridLineStartPadding).tickFormat(dd(n.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d")),S=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(n.db.getTickInterval()||i.tickInterval);if(S!==null){let O=S[1],N=S[2],P=n.db.getWeekday()||i.weekday;switch(N){case"millisecond":k.ticks(oc.every(O));break;case"second":k.ticks(Xs.every(O));break;case"minute":k.ticks(mu.every(O));break;case"hour":k.ticks(gu.every(O));break;case"day":k.ticks(Lo.every(O));break;case"week":k.ticks(lhe[P].every(O));break;case"month":k.ticks(yu.every(O));break}}if(g.append("g").attr("class","grid").attr("transform","translate("+C+", "+(D-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),n.db.topAxisEnabled()||i.topAxis){let O=y7(y).tickSize(-D+A+i.gridLineStartPadding).tickFormat(dd(n.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(S!==null){let N=S[1],P=S[2],F=n.db.getWeekday()||i.weekday;switch(P){case"millisecond":O.ticks(oc.every(N));break;case"second":O.ticks(Xs.every(N));break;case"minute":O.ticks(mu.every(N));break;case"hour":O.ticks(gu.every(N));break;case"day":O.ticks(Lo.every(N));break;case"week":O.ticks(lhe[F].every(N));break;case"month":O.ticks(yu.every(N));break}}g.append("g").attr("class","grid").attr("transform","translate("+C+", "+A+")").call(O).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}o(_,"makeGrid");function T(C,A){let I=0,D=Object.keys(p).map(k=>[k,p[k]]);g.append("g").selectAll("text").data(D).enter().append(function(k){let R=k[0].split(je.lineBreakRegex),S=-(R.length-1)/2,O=u.createElementNS("http://www.w3.org/2000/svg","text");O.setAttribute("dy",S+"em");for(let[N,P]of R.entries()){let F=u.createElementNS("http://www.w3.org/2000/svg","tspan");F.setAttribute("alignment-baseline","central"),F.setAttribute("x","10"),N>0&&F.setAttribute("dy","1em"),F.textContent=P,O.appendChild(F)}return O}).attr("x",10).attr("y",function(k,R){if(R>0)for(let S=0;S{"use strict";sVe=o(t=>` + .mermaid-main-font { + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); + } + + .exclude-range { + fill: ${t.excludeBkgColor}; + } + + .section { + stroke: none; + opacity: 0.2; + } + + .section0 { + fill: ${t.sectionBkgColor}; + } + + .section2 { + fill: ${t.sectionBkgColor2}; + } + + .section1, + .section3 { + fill: ${t.altSectionBkgColor}; + opacity: 0.2; + } + + .sectionTitle0 { + fill: ${t.titleColor}; + } + + .sectionTitle1 { + fill: ${t.titleColor}; + } + + .sectionTitle2 { + fill: ${t.titleColor}; + } + + .sectionTitle3 { + fill: ${t.titleColor}; + } + + .sectionTitle { + text-anchor: start; + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); + } + + + /* Grid and axis */ + + .grid .tick { + stroke: ${t.gridColor}; + opacity: 0.8; + shape-rendering: crispEdges; + } + + .grid .tick text { + font-family: ${t.fontFamily}; + fill: ${t.textColor}; + } + + .grid path { + stroke-width: 0; + } + + + /* Today line */ + + .today { + fill: none; + stroke: ${t.todayLineColor}; + stroke-width: 2px; + } + + + /* Task styling */ + + /* Default task */ + + .task { + stroke-width: 2; + } + + .taskText { + text-anchor: middle; + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); + } + + .taskTextOutsideRight { + fill: ${t.taskTextDarkColor}; + text-anchor: start; + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); + } + + .taskTextOutsideLeft { + fill: ${t.taskTextDarkColor}; + text-anchor: end; + } + + + /* Special case clickable */ + + .task.clickable { + cursor: pointer; + } + + .taskText.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideLeft.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideRight.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + + /* Specific task settings for the sections*/ + + .taskText0, + .taskText1, + .taskText2, + .taskText3 { + fill: ${t.taskTextColor}; + } + + .task0, + .task1, + .task2, + .task3 { + fill: ${t.taskBkgColor}; + stroke: ${t.taskBorderColor}; + } + + .taskTextOutside0, + .taskTextOutside2 + { + fill: ${t.taskTextOutsideColor}; + } + + .taskTextOutside1, + .taskTextOutside3 { + fill: ${t.taskTextOutsideColor}; + } + + + /* Active task */ + + .active0, + .active1, + .active2, + .active3 { + fill: ${t.activeTaskBkgColor}; + stroke: ${t.activeTaskBorderColor}; + } + + .activeText0, + .activeText1, + .activeText2, + .activeText3 { + fill: ${t.taskTextDarkColor} !important; + } + + + /* Completed task */ + + .done0, + .done1, + .done2, + .done3 { + stroke: ${t.doneTaskBorderColor}; + fill: ${t.doneTaskBkgColor}; + stroke-width: 2; + } + + .doneText0, + .doneText1, + .doneText2, + .doneText3 { + fill: ${t.taskTextDarkColor} !important; + } + + + /* Tasks on the critical line */ + + .crit0, + .crit1, + .crit2, + .crit3 { + stroke: ${t.critBorderColor}; + fill: ${t.critBkgColor}; + stroke-width: 2; + } + + .activeCrit0, + .activeCrit1, + .activeCrit2, + .activeCrit3 { + stroke: ${t.critBorderColor}; + fill: ${t.activeTaskBkgColor}; + stroke-width: 2; + } + + .doneCrit0, + .doneCrit1, + .doneCrit2, + .doneCrit3 { + stroke: ${t.critBorderColor}; + fill: ${t.doneTaskBkgColor}; + stroke-width: 2; + cursor: pointer; + shape-rendering: crispEdges; + } + + .milestone { + transform: rotate(45deg) scale(0.8,0.8); + } + + .milestoneText { + font-style: italic; + } + .doneCritText0, + .doneCritText1, + .doneCritText2, + .doneCritText3 { + fill: ${t.taskTextDarkColor} !important; + } + + .activeCritText0, + .activeCritText1, + .activeCritText2, + .activeCritText3 { + fill: ${t.taskTextDarkColor} !important; + } + + .titleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.titleColor||t.textColor}; + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); + } +`,"getStyles"),hhe=sVe});var dhe={};vr(dhe,{diagram:()=>oVe});var oVe,phe=M(()=>{"use strict";$ue();ohe();uhe();fhe();oVe={parser:Gue,db:ahe,renderer:che,styles:hhe}});var yhe,vhe=M(()=>{"use strict";Ng();ht();yhe={parse:o(async t=>{let e=await Gl("info",t);Y.debug(e)},"parse")}});var dx,JI=M(()=>{dx="11.4.1"});var fVe,dVe,xhe,bhe=M(()=>{"use strict";JI();fVe={version:dx},dVe=o(()=>fVe.version,"getVersion"),xhe={getVersion:dVe}});var Oa,Hu=M(()=>{"use strict";mr();Vt();Oa=o(t=>{let{securityLevel:e}=de(),r=ze("body");if(e==="sandbox"){let a=ze(`#i${t}`).node()?.contentDocument??document;r=ze(a.body)}return r.select(`#${t}`)},"selectSvgElement")});var pVe,whe,The=M(()=>{"use strict";ht();Hu();ni();pVe=o((t,e,r)=>{Y.debug(`rendering info diagram +`+t);let n=Oa(e);Zr(n,100,400,!0),n.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${r}`)},"draw"),whe={draw:pVe}});var khe={};vr(khe,{diagram:()=>mVe});var mVe,Ehe=M(()=>{"use strict";vhe();bhe();The();mVe={parser:yhe,db:xhe,renderer:whe}});var Ahe,eO,uE,tO,vVe,xVe,bVe,wVe,TVe,kVe,EVe,hE,rO=M(()=>{"use strict";ht();ki();hs();Ahe=ur.pie,eO={sections:new Map,showData:!1,config:Ahe},uE=eO.sections,tO=eO.showData,vVe=structuredClone(Ahe),xVe=o(()=>structuredClone(vVe),"getConfig"),bVe=o(()=>{uE=new Map,tO=eO.showData,_r()},"clear"),wVe=o(({label:t,value:e})=>{uE.has(t)||(uE.set(t,e),Y.debug(`added new section: ${t}, with value: ${e}`))},"addSection"),TVe=o(()=>uE,"getSections"),kVe=o(t=>{tO=t},"setShowData"),EVe=o(()=>tO,"getShowData"),hE={getConfig:xVe,clear:bVe,setDiagramTitle:ln,getDiagramTitle:Jr,setAccTitle:Rr,getAccTitle:Pr,setAccDescription:Br,getAccDescription:Fr,addSection:wVe,getSections:TVe,setShowData:kVe,getShowData:EVe}});var SVe,_he,Lhe=M(()=>{"use strict";Ng();ht();ox();rO();SVe=o((t,e)=>{lf(t,e),e.setShowData(t.showData),t.sections.map(e.addSection)},"populateDb"),_he={parse:o(async t=>{let e=await Gl("pie",t);Y.debug(e),SVe(e,hE)},"parse")}});var CVe,Dhe,Nhe=M(()=>{"use strict";CVe=o(t=>` + .pieCircle{ + stroke: ${t.pieStrokeColor}; + stroke-width : ${t.pieStrokeWidth}; + opacity : ${t.pieOpacity}; + } + .pieOuterCircle{ + stroke: ${t.pieOuterStrokeColor}; + stroke-width: ${t.pieOuterStrokeWidth}; + fill: none; + } + .pieTitleText { + text-anchor: middle; + font-size: ${t.pieTitleTextSize}; + fill: ${t.pieTitleTextColor}; + font-family: ${t.fontFamily}; + } + .slice { + font-family: ${t.fontFamily}; + fill: ${t.pieSectionTextColor}; + font-size:${t.pieSectionTextSize}; + // fill: white; + } + .legend text { + fill: ${t.pieLegendTextColor}; + font-family: ${t.fontFamily}; + font-size: ${t.pieLegendTextSize}; + } +`,"getStyles"),Dhe=CVe});var AVe,_Ve,Rhe,Mhe=M(()=>{"use strict";mr();Vt();ht();Hu();ni();hr();AVe=o(t=>{let e=[...t.entries()].map(n=>({label:n[0],value:n[1]})).sort((n,i)=>i.value-n.value);return R3().value(n=>n.value)(e)},"createPieArcs"),_Ve=o((t,e,r,n)=>{Y.debug(`rendering pie chart +`+t);let i=n.db,a=de(),s=ws(i.getConfig(),a.pie),l=40,u=18,h=4,f=450,d=f,p=Oa(e),m=p.append("g");m.attr("transform","translate("+d/2+","+f/2+")");let{themeVariables:g}=a,[y]=Fo(g.pieOuterStrokeWidth);y??=2;let v=s.textPosition,x=Math.min(d,f)/2-l,b=El().innerRadius(0).outerRadius(x),w=El().innerRadius(x*v).outerRadius(x*v);m.append("circle").attr("cx",0).attr("cy",0).attr("r",x+y/2).attr("class","pieOuterCircle");let _=i.getSections(),T=AVe(_),E=[g.pie1,g.pie2,g.pie3,g.pie4,g.pie5,g.pie6,g.pie7,g.pie8,g.pie9,g.pie10,g.pie11,g.pie12],L=du(E);m.selectAll("mySlices").data(T).enter().append("path").attr("d",b).attr("fill",k=>L(k.data.label)).attr("class","pieCircle");let C=0;_.forEach(k=>{C+=k}),m.selectAll("mySlices").data(T).enter().append("text").text(k=>(k.data.value/C*100).toFixed(0)+"%").attr("transform",k=>"translate("+w.centroid(k)+")").style("text-anchor","middle").attr("class","slice"),m.append("text").text(i.getDiagramTitle()).attr("x",0).attr("y",-(f-50)/2).attr("class","pieTitleText");let A=m.selectAll(".legend").data(L.domain()).enter().append("g").attr("class","legend").attr("transform",(k,R)=>{let S=u+h,O=S*L.domain().length/2,N=12*u,P=R*S-O;return"translate("+N+","+P+")"});A.append("rect").attr("width",u).attr("height",u).style("fill",L).style("stroke",L),A.data(T).append("text").attr("x",u+h).attr("y",u-h).text(k=>{let{label:R,value:S}=k.data;return i.getShowData()?`${R} [${S}]`:R});let I=Math.max(...A.selectAll("text").nodes().map(k=>k?.getBoundingClientRect().width??0)),D=d+l+u+h+I;p.attr("viewBox",`0 0 ${D} ${f}`),Zr(p,f,D,s.useMaxWidth)},"draw"),Rhe={draw:_Ve}});var Ihe={};vr(Ihe,{diagram:()=>LVe});var LVe,Ohe=M(()=>{"use strict";Lhe();rO();Nhe();Mhe();LVe={parser:_he,db:hE,renderer:Rhe,styles:Dhe}});var nO,Fhe,zhe=M(()=>{"use strict";nO=function(){var t=o(function(Te,se,Ee,Ae){for(Ee=Ee||{},Ae=Te.length;Ae--;Ee[Te[Ae]]=se);return Ee},"o"),e=[1,3],r=[1,4],n=[1,5],i=[1,6],a=[1,7],s=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],u=[55,56,57],h=[2,36],f=[1,37],d=[1,36],p=[1,38],m=[1,35],g=[1,43],y=[1,41],v=[1,14],x=[1,23],b=[1,18],w=[1,19],_=[1,20],T=[1,21],E=[1,22],L=[1,24],C=[1,25],A=[1,26],I=[1,27],D=[1,28],k=[1,29],R=[1,32],S=[1,33],O=[1,34],N=[1,39],P=[1,40],F=[1,42],B=[1,44],$=[1,62],z=[1,61],W=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],j=[1,65],K=[1,66],ie=[1,67],Q=[1,68],ee=[1,69],J=[1,70],H=[1,71],q=[1,72],Z=[1,73],ae=[1,74],ue=[1,75],ce=[1,76],te=[4,5,6,7,8,9,10,11,12,13,14,15,18],De=[1,90],oe=[1,91],ke=[1,92],Fe=[1,99],Be=[1,93],Ve=[1,96],Ge=[1,94],He=[1,95],xe=[1,97],X=[1,98],fe=[1,102],he=[10,55,56,57],ge=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],ne={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(se,Ee,Ae,Pe,Me,me,We){var Re=me.length-1;switch(Me){case 23:this.$=me[Re];break;case 24:this.$=me[Re-1]+""+me[Re];break;case 26:this.$=me[Re-1]+me[Re];break;case 27:this.$=[me[Re].trim()];break;case 28:me[Re-2].push(me[Re].trim()),this.$=me[Re-2];break;case 29:this.$=me[Re-4],Pe.addClass(me[Re-2],me[Re]);break;case 37:this.$=[];break;case 42:this.$=me[Re].trim(),Pe.setDiagramTitle(this.$);break;case 43:this.$=me[Re].trim(),Pe.setAccTitle(this.$);break;case 44:case 45:this.$=me[Re].trim(),Pe.setAccDescription(this.$);break;case 46:Pe.addSection(me[Re].substr(8)),this.$=me[Re].substr(8);break;case 47:Pe.addPoint(me[Re-3],"",me[Re-1],me[Re],[]);break;case 48:Pe.addPoint(me[Re-4],me[Re-3],me[Re-1],me[Re],[]);break;case 49:Pe.addPoint(me[Re-4],"",me[Re-2],me[Re-1],me[Re]);break;case 50:Pe.addPoint(me[Re-5],me[Re-4],me[Re-2],me[Re-1],me[Re]);break;case 51:Pe.setXAxisLeftText(me[Re-2]),Pe.setXAxisRightText(me[Re]);break;case 52:me[Re-1].text+=" \u27F6 ",Pe.setXAxisLeftText(me[Re-1]);break;case 53:Pe.setXAxisLeftText(me[Re]);break;case 54:Pe.setYAxisBottomText(me[Re-2]),Pe.setYAxisTopText(me[Re]);break;case 55:me[Re-1].text+=" \u27F6 ",Pe.setYAxisBottomText(me[Re-1]);break;case 56:Pe.setYAxisBottomText(me[Re]);break;case 57:Pe.setQuadrant1Text(me[Re]);break;case 58:Pe.setQuadrant2Text(me[Re]);break;case 59:Pe.setQuadrant3Text(me[Re]);break;case 60:Pe.setQuadrant4Text(me[Re]);break;case 64:this.$={text:me[Re],type:"text"};break;case 65:this.$={text:me[Re-1].text+""+me[Re],type:me[Re-1].type};break;case 66:this.$={text:me[Re],type:"text"};break;case 67:this.$={text:me[Re],type:"markdown"};break;case 68:this.$=me[Re];break;case 69:this.$=me[Re-1]+""+me[Re];break}},"anonymous"),table:[{18:e,26:1,27:2,28:r,55:n,56:i,57:a},{1:[3]},{18:e,26:8,27:2,28:r,55:n,56:i,57:a},{18:e,26:9,27:2,28:r,55:n,56:i,57:a},t(s,[2,33],{29:10}),t(l,[2,61]),t(l,[2,62]),t(l,[2,63]),{1:[2,30]},{1:[2,31]},t(u,h,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:f,5:d,10:p,12:m,13:g,14:y,18:v,25:x,35:b,37:w,39:_,41:T,42:E,48:L,50:C,51:A,52:I,53:D,54:k,60:R,61:S,63:O,64:N,65:P,66:F,67:B}),t(s,[2,34]),{27:45,55:n,56:i,57:a},t(u,[2,37]),t(u,h,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:f,5:d,10:p,12:m,13:g,14:y,18:v,25:x,35:b,37:w,39:_,41:T,42:E,48:L,50:C,51:A,52:I,53:D,54:k,60:R,61:S,63:O,64:N,65:P,66:F,67:B}),t(u,[2,39]),t(u,[2,40]),t(u,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(u,[2,45]),t(u,[2,46]),{18:[1,50]},{4:f,5:d,10:p,12:m,13:g,14:y,43:51,58:31,60:R,61:S,63:O,64:N,65:P,66:F,67:B},{4:f,5:d,10:p,12:m,13:g,14:y,43:52,58:31,60:R,61:S,63:O,64:N,65:P,66:F,67:B},{4:f,5:d,10:p,12:m,13:g,14:y,43:53,58:31,60:R,61:S,63:O,64:N,65:P,66:F,67:B},{4:f,5:d,10:p,12:m,13:g,14:y,43:54,58:31,60:R,61:S,63:O,64:N,65:P,66:F,67:B},{4:f,5:d,10:p,12:m,13:g,14:y,43:55,58:31,60:R,61:S,63:O,64:N,65:P,66:F,67:B},{4:f,5:d,10:p,12:m,13:g,14:y,43:56,58:31,60:R,61:S,63:O,64:N,65:P,66:F,67:B},{4:f,5:d,8:$,10:p,12:m,13:g,14:y,18:z,44:[1,57],47:[1,58],58:60,59:59,63:O,64:N,65:P,66:F,67:B},t(W,[2,64]),t(W,[2,66]),t(W,[2,67]),t(W,[2,70]),t(W,[2,71]),t(W,[2,72]),t(W,[2,73]),t(W,[2,74]),t(W,[2,75]),t(W,[2,76]),t(W,[2,77]),t(W,[2,78]),t(W,[2,79]),t(W,[2,80]),t(s,[2,35]),t(u,[2,38]),t(u,[2,42]),t(u,[2,43]),t(u,[2,44]),{3:64,4:j,5:K,6:ie,7:Q,8:ee,9:J,10:H,11:q,12:Z,13:ae,14:ue,15:ce,21:63},t(u,[2,53],{59:59,58:60,4:f,5:d,8:$,10:p,12:m,13:g,14:y,18:z,49:[1,77],63:O,64:N,65:P,66:F,67:B}),t(u,[2,56],{59:59,58:60,4:f,5:d,8:$,10:p,12:m,13:g,14:y,18:z,49:[1,78],63:O,64:N,65:P,66:F,67:B}),t(u,[2,57],{59:59,58:60,4:f,5:d,8:$,10:p,12:m,13:g,14:y,18:z,63:O,64:N,65:P,66:F,67:B}),t(u,[2,58],{59:59,58:60,4:f,5:d,8:$,10:p,12:m,13:g,14:y,18:z,63:O,64:N,65:P,66:F,67:B}),t(u,[2,59],{59:59,58:60,4:f,5:d,8:$,10:p,12:m,13:g,14:y,18:z,63:O,64:N,65:P,66:F,67:B}),t(u,[2,60],{59:59,58:60,4:f,5:d,8:$,10:p,12:m,13:g,14:y,18:z,63:O,64:N,65:P,66:F,67:B}),{45:[1,79]},{44:[1,80]},t(W,[2,65]),t(W,[2,81]),t(W,[2,82]),t(W,[2,83]),{3:82,4:j,5:K,6:ie,7:Q,8:ee,9:J,10:H,11:q,12:Z,13:ae,14:ue,15:ce,18:[1,81]},t(te,[2,23]),t(te,[2,1]),t(te,[2,2]),t(te,[2,3]),t(te,[2,4]),t(te,[2,5]),t(te,[2,6]),t(te,[2,7]),t(te,[2,8]),t(te,[2,9]),t(te,[2,10]),t(te,[2,11]),t(te,[2,12]),t(u,[2,52],{58:31,43:83,4:f,5:d,10:p,12:m,13:g,14:y,60:R,61:S,63:O,64:N,65:P,66:F,67:B}),t(u,[2,55],{58:31,43:84,4:f,5:d,10:p,12:m,13:g,14:y,60:R,61:S,63:O,64:N,65:P,66:F,67:B}),{46:[1,85]},{45:[1,86]},{4:De,5:oe,6:ke,8:Fe,11:Be,13:Ve,16:89,17:Ge,18:He,19:xe,20:X,22:88,23:87},t(te,[2,24]),t(u,[2,51],{59:59,58:60,4:f,5:d,8:$,10:p,12:m,13:g,14:y,18:z,63:O,64:N,65:P,66:F,67:B}),t(u,[2,54],{59:59,58:60,4:f,5:d,8:$,10:p,12:m,13:g,14:y,18:z,63:O,64:N,65:P,66:F,67:B}),t(u,[2,47],{22:88,16:89,23:100,4:De,5:oe,6:ke,8:Fe,11:Be,13:Ve,17:Ge,18:He,19:xe,20:X}),{46:[1,101]},t(u,[2,29],{10:fe}),t(he,[2,27],{16:103,4:De,5:oe,6:ke,8:Fe,11:Be,13:Ve,17:Ge,18:He,19:xe,20:X}),t(ge,[2,25]),t(ge,[2,13]),t(ge,[2,14]),t(ge,[2,15]),t(ge,[2,16]),t(ge,[2,17]),t(ge,[2,18]),t(ge,[2,19]),t(ge,[2,20]),t(ge,[2,21]),t(ge,[2,22]),t(u,[2,49],{10:fe}),t(u,[2,48],{22:88,16:89,23:104,4:De,5:oe,6:ke,8:Fe,11:Be,13:Ve,17:Ge,18:He,19:xe,20:X}),{4:De,5:oe,6:ke,8:Fe,11:Be,13:Ve,16:89,17:Ge,18:He,19:xe,20:X,22:105},t(ge,[2,26]),t(u,[2,50],{10:fe}),t(he,[2,28],{16:103,4:De,5:oe,6:ke,8:Fe,11:Be,13:Ve,17:Ge,18:He,19:xe,20:X})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(se,Ee){if(Ee.recoverable)this.trace(se);else{var Ae=new Error(se);throw Ae.hash=Ee,Ae}},"parseError"),parse:o(function(se){var Ee=this,Ae=[0],Pe=[],Me=[null],me=[],We=this.table,Re="",tt=0,gt=0,Et=0,vt=2,Ye=1,Tt=me.slice.call(arguments,1),$e=Object.create(this.lexer),rt={yy:{}};for(var ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ft)&&(rt.yy[ft]=this.yy[ft]);$e.setInput(se,rt.yy),rt.yy.lexer=$e,rt.yy.parser=this,typeof $e.yylloc>"u"&&($e.yylloc={});var kt=$e.yylloc;me.push(kt);var er=$e.options&&$e.options.ranges;typeof rt.yy.parseError=="function"?this.parseError=rt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dt(Se){Ae.length=Ae.length-2*Se,Me.length=Me.length-Se,me.length=me.length-Se}o(dt,"popStack");function Xe(){var Se;return Se=Pe.pop()||$e.lex()||Ye,typeof Se!="number"&&(Se instanceof Array&&(Pe=Se,Se=Pe.pop()),Se=Ee.symbols_[Se]||Se),Se}o(Xe,"lex");for(var ct,Lt,Rt,zt,Xn,or,hn={},Tn,Ur,ri,Mn;;){if(Rt=Ae[Ae.length-1],this.defaultActions[Rt]?zt=this.defaultActions[Rt]:((ct===null||typeof ct>"u")&&(ct=Xe()),zt=We[Rt]&&We[Rt][ct]),typeof zt>"u"||!zt.length||!zt[0]){var yt="";Mn=[];for(Tn in We[Rt])this.terminals_[Tn]&&Tn>vt&&Mn.push("'"+this.terminals_[Tn]+"'");$e.showPosition?yt="Parse error on line "+(tt+1)+`: +`+$e.showPosition()+` +Expecting `+Mn.join(", ")+", got '"+(this.terminals_[ct]||ct)+"'":yt="Parse error on line "+(tt+1)+": Unexpected "+(ct==Ye?"end of input":"'"+(this.terminals_[ct]||ct)+"'"),this.parseError(yt,{text:$e.match,token:this.terminals_[ct]||ct,line:$e.yylineno,loc:kt,expected:Mn})}if(zt[0]instanceof Array&&zt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Rt+", token: "+ct);switch(zt[0]){case 1:Ae.push(ct),Me.push($e.yytext),me.push($e.yylloc),Ae.push(zt[1]),ct=null,Lt?(ct=Lt,Lt=null):(gt=$e.yyleng,Re=$e.yytext,tt=$e.yylineno,kt=$e.yylloc,Et>0&&Et--);break;case 2:if(Ur=this.productions_[zt[1]][1],hn.$=Me[Me.length-Ur],hn._$={first_line:me[me.length-(Ur||1)].first_line,last_line:me[me.length-1].last_line,first_column:me[me.length-(Ur||1)].first_column,last_column:me[me.length-1].last_column},er&&(hn._$.range=[me[me.length-(Ur||1)].range[0],me[me.length-1].range[1]]),or=this.performAction.apply(hn,[Re,gt,tt,rt.yy,zt[1],Me,me].concat(Tt)),typeof or<"u")return or;Ur&&(Ae=Ae.slice(0,-1*Ur*2),Me=Me.slice(0,-1*Ur),me=me.slice(0,-1*Ur)),Ae.push(this.productions_[zt[1]][0]),Me.push(hn.$),me.push(hn._$),ri=We[Ae[Ae.length-2]][Ae[Ae.length-1]],Ae.push(ri);break;case 3:return!0}}return!0},"parse")},ye=function(){var Te={EOF:1,parseError:o(function(Ee,Ae){if(this.yy.parser)this.yy.parser.parseError(Ee,Ae);else throw new Error(Ee)},"parseError"),setInput:o(function(se,Ee){return this.yy=Ee||this.yy||{},this._input=se,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var se=this._input[0];this.yytext+=se,this.yyleng++,this.offset++,this.match+=se,this.matched+=se;var Ee=se.match(/(?:\r\n?|\n).*/g);return Ee?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),se},"input"),unput:o(function(se){var Ee=se.length,Ae=se.split(/(?:\r\n?|\n)/g);this._input=se+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ee),this.offset-=Ee;var Pe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ae.length-1&&(this.yylineno-=Ae.length-1);var Me=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ae?(Ae.length===Pe.length?this.yylloc.first_column:0)+Pe[Pe.length-Ae.length].length-Ae[0].length:this.yylloc.first_column-Ee},this.options.ranges&&(this.yylloc.range=[Me[0],Me[0]+this.yyleng-Ee]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(se){this.unput(this.match.slice(se))},"less"),pastInput:o(function(){var se=this.matched.substr(0,this.matched.length-this.match.length);return(se.length>20?"...":"")+se.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var se=this.match;return se.length<20&&(se+=this._input.substr(0,20-se.length)),(se.substr(0,20)+(se.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var se=this.pastInput(),Ee=new Array(se.length+1).join("-");return se+this.upcomingInput()+` +`+Ee+"^"},"showPosition"),test_match:o(function(se,Ee){var Ae,Pe,Me;if(this.options.backtrack_lexer&&(Me={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Me.yylloc.range=this.yylloc.range.slice(0))),Pe=se[0].match(/(?:\r\n?|\n).*/g),Pe&&(this.yylineno+=Pe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Pe?Pe[Pe.length-1].length-Pe[Pe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+se[0].length},this.yytext+=se[0],this.match+=se[0],this.matches=se,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(se[0].length),this.matched+=se[0],Ae=this.performAction.call(this,this.yy,this,Ee,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ae)return Ae;if(this._backtrack){for(var me in Me)this[me]=Me[me];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var se,Ee,Ae,Pe;this._more||(this.yytext="",this.match="");for(var Me=this._currentRules(),me=0;meEe[0].length)){if(Ee=Ae,Pe=me,this.options.backtrack_lexer){if(se=this.test_match(Ae,Me[me]),se!==!1)return se;if(this._backtrack){Ee=!1;continue}else return!1}else if(!this.options.flex)break}return Ee?(se=this.test_match(Ee,Me[Pe]),se!==!1?se:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var Ee=this.next();return Ee||this.lex()},"lex"),begin:o(function(Ee){this.conditionStack.push(Ee)},"begin"),popState:o(function(){var Ee=this.conditionStack.length-1;return Ee>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(Ee){return Ee=this.conditionStack.length-1-Math.abs(Ee||0),Ee>=0?this.conditionStack[Ee]:"INITIAL"},"topState"),pushState:o(function(Ee){this.begin(Ee)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(Ee,Ae,Pe,Me){var me=Me;switch(Pe){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};return Te}();ne.lexer=ye;function U(){this.yy={}}return o(U,"Parser"),U.prototype=ne,ne.Parser=U,new U}();nO.parser=nO;Fhe=nO});var os,fE,Ghe=M(()=>{"use strict";mr();hs();ht();Ub();os=sp(),fE=class{constructor(){this.classes=new Map;this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{o(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:ur.quadrantChart?.chartWidth||500,chartWidth:ur.quadrantChart?.chartHeight||500,titlePadding:ur.quadrantChart?.titlePadding||10,titleFontSize:ur.quadrantChart?.titleFontSize||20,quadrantPadding:ur.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:ur.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:ur.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:ur.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:ur.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:ur.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:ur.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:ur.quadrantChart?.pointTextPadding||5,pointLabelFontSize:ur.quadrantChart?.pointLabelFontSize||12,pointRadius:ur.quadrantChart?.pointRadius||5,xAxisPosition:ur.quadrantChart?.xAxisPosition||"top",yAxisPosition:ur.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:ur.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:ur.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:os.quadrant1Fill,quadrant2Fill:os.quadrant2Fill,quadrant3Fill:os.quadrant3Fill,quadrant4Fill:os.quadrant4Fill,quadrant1TextFill:os.quadrant1TextFill,quadrant2TextFill:os.quadrant2TextFill,quadrant3TextFill:os.quadrant3TextFill,quadrant4TextFill:os.quadrant4TextFill,quadrantPointFill:os.quadrantPointFill,quadrantPointTextFill:os.quadrantPointTextFill,quadrantXAxisTextFill:os.quadrantXAxisTextFill,quadrantYAxisTextFill:os.quadrantYAxisTextFill,quadrantTitleFill:os.quadrantTitleFill,quadrantInternalBorderStrokeFill:os.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:os.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,Y.info("clear called")}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,r){this.classes.set(e,r)}setConfig(e){Y.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){Y.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,r,n,i){let a=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,s={top:e==="top"&&r?a:0,bottom:e==="bottom"&&r?a:0},l=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,u={left:this.config.yAxisPosition==="left"&&n?l:0,right:this.config.yAxisPosition==="right"&&n?l:0},h=this.config.titleFontSize+this.config.titlePadding*2,f={top:i?h:0},d=this.config.quadrantPadding+u.left,p=this.config.quadrantPadding+s.top+f.top,m=this.config.chartWidth-this.config.quadrantPadding*2-u.left-u.right,g=this.config.chartHeight-this.config.quadrantPadding*2-s.top-s.bottom-f.top,y=m/2,v=g/2;return{xAxisSpace:s,yAxisSpace:u,titleSpace:f,quadrantSpace:{quadrantLeft:d,quadrantTop:p,quadrantWidth:m,quadrantHalfWidth:y,quadrantHeight:g,quadrantHalfHeight:v}}}getAxisLabels(e,r,n,i){let{quadrantSpace:a,titleSpace:s}=i,{quadrantHalfHeight:l,quadrantHeight:u,quadrantLeft:h,quadrantHalfWidth:f,quadrantTop:d,quadrantWidth:p}=a,m=!!this.data.xAxisRightText,g=!!this.data.yAxisTopText,y=[];return this.data.xAxisLeftText&&r&&y.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:h+(m?f/2:0),y:e==="top"?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+d+u+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&r&&y.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:h+f+(m?f/2:0),y:e==="top"?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+d+u+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&n&&y.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+h+p+this.config.quadrantPadding,y:d+u-(g?l/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:g?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&n&&y.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+h+p+this.config.quadrantPadding,y:d+l-(g?l/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:g?"center":"left",horizontalPos:"top",rotation:-90}),y}getQuadrants(e){let{quadrantSpace:r}=e,{quadrantHalfHeight:n,quadrantLeft:i,quadrantHalfWidth:a,quadrantTop:s}=r,l=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:s,width:a,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:s,width:a,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:s+n,width:a,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:s+n,width:a,height:n,fill:this.themeConfig.quadrant4Fill}];for(let u of l)u.text.x=u.x+u.width/2,this.data.points.length===0?(u.text.y=u.y+u.height/2,u.text.horizontalPos="middle"):(u.text.y=u.y+this.config.quadrantTextTopPadding,u.text.horizontalPos="top");return l}getQuadrantPoints(e){let{quadrantSpace:r}=e,{quadrantHeight:n,quadrantLeft:i,quadrantTop:a,quadrantWidth:s}=r,l=bl().domain([0,1]).range([i,s+i]),u=bl().domain([0,1]).range([n+a,a]);return this.data.points.map(f=>{let d=this.classes.get(f.className);return d&&(f={...d,...f}),{x:l(f.x),y:u(f.y),fill:f.color??this.themeConfig.quadrantPointFill,radius:f.radius??this.config.pointRadius,text:{text:f.text,fill:this.themeConfig.quadrantPointTextFill,x:l(f.x),y:u(f.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:f.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:f.strokeWidth??"0px"}})}getBorders(e){let r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:i,quadrantHeight:a,quadrantLeft:s,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:h}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-r,y1:u,x2:s+h+r,y2:u},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s+h,y1:u+r,x2:s+h,y2:u+a-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-r,y1:u+a,x2:s+h+r,y2:u+a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s,y1:u+r,x2:s,y2:u+a-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+l,y1:u+r,x2:s+l,y2:u+a-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+r,y1:u+i,x2:s+h-r,y2:u+i}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,i=this.data.points.length>0?"bottom":this.config.xAxisPosition,a=this.calculateSpace(i,e,r,n);return{points:this.getQuadrantPoints(a),quadrants:this.getQuadrants(a),axisLabels:this.getAxisLabels(i,e,r,a),borderLines:this.getBorders(a),title:this.getTitle(n)}}}});function iO(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}function $he(t){return!/^\d+$/.test(t)}function Vhe(t){return!/^\d+px$/.test(t)}var T0,Uhe=M(()=>{"use strict";T0=class extends Error{static{o(this,"InvalidStyleError")}constructor(e,r,n){super(`value for ${e} ${r} is invalid, please use a valid ${n}`),this.name="InvalidStyleError"}};o(iO,"validateHexCode");o($he,"validateNumber");o(Vhe,"validateSizeInPixels")});function Wu(t){return Tr(t.trim(),RVe)}function MVe(t){ya.setData({quadrant1Text:Wu(t.text)})}function IVe(t){ya.setData({quadrant2Text:Wu(t.text)})}function OVe(t){ya.setData({quadrant3Text:Wu(t.text)})}function PVe(t){ya.setData({quadrant4Text:Wu(t.text)})}function BVe(t){ya.setData({xAxisLeftText:Wu(t.text)})}function FVe(t){ya.setData({xAxisRightText:Wu(t.text)})}function zVe(t){ya.setData({yAxisTopText:Wu(t.text)})}function GVe(t){ya.setData({yAxisBottomText:Wu(t.text)})}function aO(t){let e={};for(let r of t){let[n,i]=r.trim().split(/\s*:\s*/);if(n==="radius"){if($he(i))throw new T0(n,i,"number");e.radius=parseInt(i)}else if(n==="color"){if(iO(i))throw new T0(n,i,"hex code");e.color=i}else if(n==="stroke-color"){if(iO(i))throw new T0(n,i,"hex code");e.strokeColor=i}else if(n==="stroke-width"){if(Vhe(i))throw new T0(n,i,"number of pixels (eg. 10px)");e.strokeWidth=i}else throw new Error(`style named ${n} is not supported.`)}return e}function $Ve(t,e,r,n,i){let a=aO(i);ya.addPoints([{x:r,y:n,text:Wu(t.text),className:e,...a}])}function VVe(t,e){ya.addClass(t,aO(e))}function UVe(t){ya.setConfig({chartWidth:t})}function HVe(t){ya.setConfig({chartHeight:t})}function WVe(){let t=de(),{themeVariables:e,quadrantChart:r}=t;return r&&ya.setConfig(r),ya.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),ya.setData({titleText:Jr()}),ya.build()}var RVe,ya,YVe,Hhe,Whe=M(()=>{"use strict";Vt();fr();ki();Ghe();Uhe();RVe=de();o(Wu,"textSanitizer");ya=new fE;o(MVe,"setQuadrant1Text");o(IVe,"setQuadrant2Text");o(OVe,"setQuadrant3Text");o(PVe,"setQuadrant4Text");o(BVe,"setXAxisLeftText");o(FVe,"setXAxisRightText");o(zVe,"setYAxisTopText");o(GVe,"setYAxisBottomText");o(aO,"parseStyles");o($Ve,"addPoint");o(VVe,"addClass");o(UVe,"setWidth");o(HVe,"setHeight");o(WVe,"getQuadrantData");YVe=o(function(){ya.clear(),_r()},"clear"),Hhe={setWidth:UVe,setHeight:HVe,setQuadrant1Text:MVe,setQuadrant2Text:IVe,setQuadrant3Text:OVe,setQuadrant4Text:PVe,setXAxisLeftText:BVe,setXAxisRightText:FVe,setYAxisTopText:zVe,setYAxisBottomText:GVe,parseStyles:aO,addPoint:$Ve,addClass:VVe,getQuadrantData:WVe,clear:YVe,setAccTitle:Rr,getAccTitle:Pr,setDiagramTitle:ln,getDiagramTitle:Jr,getAccDescription:Fr,setAccDescription:Br}});var qVe,Yhe,qhe=M(()=>{"use strict";mr();Vt();ht();ni();qVe=o((t,e,r,n)=>{function i(C){return C==="top"?"hanging":"middle"}o(i,"getDominantBaseLine");function a(C){return C==="left"?"start":"middle"}o(a,"getTextAnchor");function s(C){return`translate(${C.x}, ${C.y}) rotate(${C.rotation||0})`}o(s,"getTransformation");let l=de();Y.debug(`Rendering quadrant chart +`+t);let u=l.securityLevel,h;u==="sandbox"&&(h=ze("#i"+e));let d=(u==="sandbox"?ze(h.nodes()[0].contentDocument.body):ze("body")).select(`[id="${e}"]`),p=d.append("g").attr("class","main"),m=l.quadrantChart?.chartWidth??500,g=l.quadrantChart?.chartHeight??500;Zr(d,g,m,l.quadrantChart?.useMaxWidth??!0),d.attr("viewBox","0 0 "+m+" "+g),n.db.setHeight(g),n.db.setWidth(m);let y=n.db.getQuadrantData(),v=p.append("g").attr("class","quadrants"),x=p.append("g").attr("class","border"),b=p.append("g").attr("class","data-points"),w=p.append("g").attr("class","labels"),_=p.append("g").attr("class","title");y.title&&_.append("text").attr("x",0).attr("y",0).attr("fill",y.title.fill).attr("font-size",y.title.fontSize).attr("dominant-baseline",i(y.title.horizontalPos)).attr("text-anchor",a(y.title.verticalPos)).attr("transform",s(y.title)).text(y.title.text),y.borderLines&&x.selectAll("line").data(y.borderLines).enter().append("line").attr("x1",C=>C.x1).attr("y1",C=>C.y1).attr("x2",C=>C.x2).attr("y2",C=>C.y2).style("stroke",C=>C.strokeFill).style("stroke-width",C=>C.strokeWidth);let T=v.selectAll("g.quadrant").data(y.quadrants).enter().append("g").attr("class","quadrant");T.append("rect").attr("x",C=>C.x).attr("y",C=>C.y).attr("width",C=>C.width).attr("height",C=>C.height).attr("fill",C=>C.fill),T.append("text").attr("x",0).attr("y",0).attr("fill",C=>C.text.fill).attr("font-size",C=>C.text.fontSize).attr("dominant-baseline",C=>i(C.text.horizontalPos)).attr("text-anchor",C=>a(C.text.verticalPos)).attr("transform",C=>s(C.text)).text(C=>C.text.text),w.selectAll("g.label").data(y.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(C=>C.text).attr("fill",C=>C.fill).attr("font-size",C=>C.fontSize).attr("dominant-baseline",C=>i(C.horizontalPos)).attr("text-anchor",C=>a(C.verticalPos)).attr("transform",C=>s(C));let L=b.selectAll("g.data-point").data(y.points).enter().append("g").attr("class","data-point");L.append("circle").attr("cx",C=>C.x).attr("cy",C=>C.y).attr("r",C=>C.radius).attr("fill",C=>C.fill).attr("stroke",C=>C.strokeColor).attr("stroke-width",C=>C.strokeWidth),L.append("text").attr("x",0).attr("y",0).text(C=>C.text.text).attr("fill",C=>C.text.fill).attr("font-size",C=>C.text.fontSize).attr("dominant-baseline",C=>i(C.text.horizontalPos)).attr("text-anchor",C=>a(C.text.verticalPos)).attr("transform",C=>s(C.text))},"draw"),Yhe={draw:qVe}});var Xhe={};vr(Xhe,{diagram:()=>XVe});var XVe,jhe=M(()=>{"use strict";zhe();Whe();qhe();XVe={parser:Fhe,db:Hhe,renderer:Yhe,styles:o(()=>"","styles")}});var sO,Zhe,Jhe=M(()=>{"use strict";sO=function(){var t=o(function(O,N,P,F){for(P=P||{},F=O.length;F--;P[O[F]]=N);return P},"o"),e=[1,10,12,14,16,18,19,21,23],r=[2,6],n=[1,3],i=[1,5],a=[1,6],s=[1,7],l=[1,5,10,12,14,16,18,19,21,23,34,35,36],u=[1,25],h=[1,26],f=[1,28],d=[1,29],p=[1,30],m=[1,31],g=[1,32],y=[1,33],v=[1,34],x=[1,35],b=[1,36],w=[1,37],_=[1,43],T=[1,42],E=[1,47],L=[1,50],C=[1,10,12,14,16,18,19,21,23,34,35,36],A=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],I=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],D=[1,64],k={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:o(function(N,P,F,B,$,z,W){var j=z.length-1;switch($){case 5:B.setOrientation(z[j]);break;case 9:B.setDiagramTitle(z[j].text.trim());break;case 12:B.setLineData({text:"",type:"text"},z[j]);break;case 13:B.setLineData(z[j-1],z[j]);break;case 14:B.setBarData({text:"",type:"text"},z[j]);break;case 15:B.setBarData(z[j-1],z[j]);break;case 16:this.$=z[j].trim(),B.setAccTitle(this.$);break;case 17:case 18:this.$=z[j].trim(),B.setAccDescription(this.$);break;case 19:this.$=z[j-1];break;case 20:this.$=[Number(z[j-2]),...z[j]];break;case 21:this.$=[Number(z[j])];break;case 22:B.setXAxisTitle(z[j]);break;case 23:B.setXAxisTitle(z[j-1]);break;case 24:B.setXAxisTitle({type:"text",text:""});break;case 25:B.setXAxisBand(z[j]);break;case 26:B.setXAxisRangeData(Number(z[j-2]),Number(z[j]));break;case 27:this.$=z[j-1];break;case 28:this.$=[z[j-2],...z[j]];break;case 29:this.$=[z[j]];break;case 30:B.setYAxisTitle(z[j]);break;case 31:B.setYAxisTitle(z[j-1]);break;case 32:B.setYAxisTitle({type:"text",text:""});break;case 33:B.setYAxisRangeData(Number(z[j-2]),Number(z[j]));break;case 37:this.$={text:z[j],type:"text"};break;case 38:this.$={text:z[j],type:"text"};break;case 39:this.$={text:z[j],type:"markdown"};break;case 40:this.$=z[j];break;case 41:this.$=z[j-1]+""+z[j];break}},"anonymous"),table:[t(e,r,{3:1,4:2,7:4,5:n,34:i,35:a,36:s}),{1:[3]},t(e,r,{4:2,7:4,3:8,5:n,34:i,35:a,36:s}),t(e,r,{4:2,7:4,6:9,3:10,5:n,8:[1,11],34:i,35:a,36:s}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(l,[2,34]),t(l,[2,35]),t(l,[2,36]),{1:[2,1]},t(e,r,{4:2,7:4,3:21,5:n,34:i,35:a,36:s}),{1:[2,3]},t(l,[2,5]),t(e,[2,7],{4:22,34:i,35:a,36:s}),{11:23,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w},{11:39,13:38,24:_,27:T,29:40,30:41,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w},{11:45,15:44,27:E,33:46,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w},{11:49,17:48,24:L,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w},{11:52,17:51,24:L,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w},{20:[1,53]},{22:[1,54]},t(C,[2,18]),{1:[2,2]},t(C,[2,8]),t(C,[2,9]),t(A,[2,37],{40:55,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w}),t(A,[2,38]),t(A,[2,39]),t(I,[2,40]),t(I,[2,42]),t(I,[2,43]),t(I,[2,44]),t(I,[2,45]),t(I,[2,46]),t(I,[2,47]),t(I,[2,48]),t(I,[2,49]),t(I,[2,50]),t(I,[2,51]),t(C,[2,10]),t(C,[2,22],{30:41,29:56,24:_,27:T}),t(C,[2,24]),t(C,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w},t(C,[2,11]),t(C,[2,30],{33:60,27:E}),t(C,[2,32]),{31:[1,61]},t(C,[2,12]),{17:62,24:L},{25:63,27:D},t(C,[2,14]),{17:65,24:L},t(C,[2,16]),t(C,[2,17]),t(I,[2,41]),t(C,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(C,[2,31]),{27:[1,69]},t(C,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(C,[2,15]),t(C,[2,26]),t(C,[2,27]),{11:59,32:72,37:24,38:u,39:h,40:27,41:f,42:d,43:p,44:m,45:g,46:y,47:v,48:x,49:b,50:w},t(C,[2,33]),t(C,[2,19]),{25:73,27:D},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:o(function(N,P){if(P.recoverable)this.trace(N);else{var F=new Error(N);throw F.hash=P,F}},"parseError"),parse:o(function(N){var P=this,F=[0],B=[],$=[null],z=[],W=this.table,j="",K=0,ie=0,Q=0,ee=2,J=1,H=z.slice.call(arguments,1),q=Object.create(this.lexer),Z={yy:{}};for(var ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ae)&&(Z.yy[ae]=this.yy[ae]);q.setInput(N,Z.yy),Z.yy.lexer=q,Z.yy.parser=this,typeof q.yylloc>"u"&&(q.yylloc={});var ue=q.yylloc;z.push(ue);var ce=q.options&&q.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function te(ne){F.length=F.length-2*ne,$.length=$.length-ne,z.length=z.length-ne}o(te,"popStack");function De(){var ne;return ne=B.pop()||q.lex()||J,typeof ne!="number"&&(ne instanceof Array&&(B=ne,ne=B.pop()),ne=P.symbols_[ne]||ne),ne}o(De,"lex");for(var oe,ke,Fe,Be,Ve,Ge,He={},xe,X,fe,he;;){if(Fe=F[F.length-1],this.defaultActions[Fe]?Be=this.defaultActions[Fe]:((oe===null||typeof oe>"u")&&(oe=De()),Be=W[Fe]&&W[Fe][oe]),typeof Be>"u"||!Be.length||!Be[0]){var ge="";he=[];for(xe in W[Fe])this.terminals_[xe]&&xe>ee&&he.push("'"+this.terminals_[xe]+"'");q.showPosition?ge="Parse error on line "+(K+1)+`: +`+q.showPosition()+` +Expecting `+he.join(", ")+", got '"+(this.terminals_[oe]||oe)+"'":ge="Parse error on line "+(K+1)+": Unexpected "+(oe==J?"end of input":"'"+(this.terminals_[oe]||oe)+"'"),this.parseError(ge,{text:q.match,token:this.terminals_[oe]||oe,line:q.yylineno,loc:ue,expected:he})}if(Be[0]instanceof Array&&Be.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Fe+", token: "+oe);switch(Be[0]){case 1:F.push(oe),$.push(q.yytext),z.push(q.yylloc),F.push(Be[1]),oe=null,ke?(oe=ke,ke=null):(ie=q.yyleng,j=q.yytext,K=q.yylineno,ue=q.yylloc,Q>0&&Q--);break;case 2:if(X=this.productions_[Be[1]][1],He.$=$[$.length-X],He._$={first_line:z[z.length-(X||1)].first_line,last_line:z[z.length-1].last_line,first_column:z[z.length-(X||1)].first_column,last_column:z[z.length-1].last_column},ce&&(He._$.range=[z[z.length-(X||1)].range[0],z[z.length-1].range[1]]),Ge=this.performAction.apply(He,[j,ie,K,Z.yy,Be[1],$,z].concat(H)),typeof Ge<"u")return Ge;X&&(F=F.slice(0,-1*X*2),$=$.slice(0,-1*X),z=z.slice(0,-1*X)),F.push(this.productions_[Be[1]][0]),$.push(He.$),z.push(He._$),fe=W[F[F.length-2]][F[F.length-1]],F.push(fe);break;case 3:return!0}}return!0},"parse")},R=function(){var O={EOF:1,parseError:o(function(P,F){if(this.yy.parser)this.yy.parser.parseError(P,F);else throw new Error(P)},"parseError"),setInput:o(function(N,P){return this.yy=P||this.yy||{},this._input=N,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var N=this._input[0];this.yytext+=N,this.yyleng++,this.offset++,this.match+=N,this.matched+=N;var P=N.match(/(?:\r\n?|\n).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),N},"input"),unput:o(function(N){var P=N.length,F=N.split(/(?:\r\n?|\n)/g);this._input=N+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var B=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),F.length-1&&(this.yylineno-=F.length-1);var $=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:F?(F.length===B.length?this.yylloc.first_column:0)+B[B.length-F.length].length-F[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[$[0],$[0]+this.yyleng-P]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(N){this.unput(this.match.slice(N))},"less"),pastInput:o(function(){var N=this.matched.substr(0,this.matched.length-this.match.length);return(N.length>20?"...":"")+N.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var N=this.match;return N.length<20&&(N+=this._input.substr(0,20-N.length)),(N.substr(0,20)+(N.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var N=this.pastInput(),P=new Array(N.length+1).join("-");return N+this.upcomingInput()+` +`+P+"^"},"showPosition"),test_match:o(function(N,P){var F,B,$;if(this.options.backtrack_lexer&&($={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&($.yylloc.range=this.yylloc.range.slice(0))),B=N[0].match(/(?:\r\n?|\n).*/g),B&&(this.yylineno+=B.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:B?B[B.length-1].length-B[B.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+N[0].length},this.yytext+=N[0],this.match+=N[0],this.matches=N,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(N[0].length),this.matched+=N[0],F=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),F)return F;if(this._backtrack){for(var z in $)this[z]=$[z];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var N,P,F,B;this._more||(this.yytext="",this.match="");for(var $=this._currentRules(),z=0;z<$.length;z++)if(F=this._input.match(this.rules[$[z]]),F&&(!P||F[0].length>P[0].length)){if(P=F,B=z,this.options.backtrack_lexer){if(N=this.test_match(F,$[z]),N!==!1)return N;if(this._backtrack){P=!1;continue}else return!1}else if(!this.options.flex)break}return P?(N=this.test_match(P,$[B]),N!==!1?N:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var P=this.next();return P||this.lex()},"lex"),begin:o(function(P){this.conditionStack.push(P)},"begin"),popState:o(function(){var P=this.conditionStack.length-1;return P>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(P){return P=this.conditionStack.length-1-Math.abs(P||0),P>=0?this.conditionStack[P]:"INITIAL"},"topState"),pushState:o(function(P){this.begin(P)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(P,F,B,$){var z=$;switch(B){case 0:break;case 1:break;case 2:return this.popState(),34;break;case 3:return this.popState(),34;break;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.pushState("acc_descr"),21;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";break;case 17:return this.pushState("axis_data"),"Y_AXIS";break;case 18:return this.pushState("axis_band_data"),24;break;case 19:return 31;case 20:return this.pushState("data"),16;break;case 21:return this.pushState("data"),18;break;case 22:return this.pushState("data_inner"),24;break;case 23:return 27;case 24:return this.popState(),26;break;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};return O}();k.lexer=R;function S(){this.yy={}}return o(S,"Parser"),S.prototype=k,k.Parser=S,new S}();sO.parser=sO;Zhe=sO});function oO(t){return t.type==="bar"}function dE(t){return t.type==="band"}function Ig(t){return t.type==="linear"}var pE=M(()=>{"use strict";o(oO,"isBarPlot");o(dE,"isBandAxisData");o(Ig,"isLinearAxisData")});var Og,lO=M(()=>{"use strict";Dl();Og=class{constructor(e){this.parentGroup=e}static{o(this,"TextDimensionCalculatorWithFont")}getMaxDimension(e,r){if(!this.parentGroup)return{width:e.reduce((a,s)=>Math.max(s.length,a),0)*r,height:r};let n={width:0,height:0},i=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r);for(let a of e){let s=gj(i,1,a),l=s?s.width:a.length*r,u=s?s.height:r;n.width=Math.max(n.width,l),n.height=Math.max(n.height,u)}return i.remove(),n}}});var Pg,cO=M(()=>{"use strict";Pg=class{constructor(e,r,n,i){this.axisConfig=e;this.title=r;this.textDimensionCalculator=n;this.axisThemeConfig=i;this.boundingRect={x:0,y:0,width:0,height:0};this.axisPosition="left";this.showTitle=!1;this.showLabel=!1;this.showTick=!1;this.showAxisLine=!1;this.outerPadding=0;this.titleTextHeight=0;this.labelTextHeight=0;this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}static{o(this,"BaseAxis")}setRange(e){this.range=e,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=e[1]-e[0]:this.boundingRect.width=e[1]-e[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(e){this.axisPosition=e,this.setRange(this.range)}getTickDistance(){let e=this.getRange();return Math.abs(e[0]-e[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(e=>e.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let r=e.height;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),i=.2*e.width;this.outerPadding=Math.min(n.width/2,i);let a=n.height+this.axisConfig.labelPadding*2;this.labelTextHeight=n.height,a<=r&&(r-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let n=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),i=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,i<=r&&(r-=i,this.showTitle=!0)}this.boundingRect.width=e.width,this.boundingRect.height=e.height-r}calculateSpaceIfDrawnVertical(e){let r=e.width;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),i=.2*e.height;this.outerPadding=Math.min(n.height/2,i);let a=n.width+this.axisConfig.labelPadding*2;a<=r&&(r-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let n=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),i=n.height+this.axisConfig.titlePadding*2;this.titleTextHeight=n.height,i<=r&&(r-=i,this.showTitle=!0)}this.boundingRect.width=e.width-r,this.boundingRect.height=e.height}calculateSpace(e){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(e):this.calculateSpaceIfDrawnHorizontally(e),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}getDrawableElementsForLeftAxis(){let e=[];if(this.showAxisLine){let r=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${r},${this.boundingRect.y} L ${r},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(r),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let r=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${r},${this.getScaleValue(n)} L ${r-this.axisConfig.tickLength},${this.getScaleValue(n)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElementsForBottomAxis(){let e=[];if(this.showAxisLine){let r=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let r=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${this.getScaleValue(n)},${r} L ${this.getScaleValue(n)},${r+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElementsForTopAxis(){let e=[];if(this.showAxisLine){let r=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let r=this.boundingRect.y;e.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(n=>({path:`M ${this.getScaleValue(n)},${r+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(n)},${r+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),e}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}}});var mE,efe=M(()=>{"use strict";mr();ht();cO();mE=class extends Pg{static{o(this,"BandAxis")}constructor(e,r,n,i,a){super(e,i,a,r),this.categories=n,this.scale=Lp().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=Lp().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Y.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}}});var gE,tfe=M(()=>{"use strict";mr();cO();gE=class extends Pg{static{o(this,"LinearAxis")}constructor(e,r,n,i,a){super(e,i,a,r),this.domain=n,this.scale=bl().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let e=[...this.domain];this.axisPosition==="left"&&e.reverse(),this.scale=bl().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}}});function uO(t,e,r,n){let i=new Og(n);return dE(t)?new mE(e,r,t.categories,t.title,i):new gE(e,r,[t.min,t.max],t.title,i)}var rfe=M(()=>{"use strict";pE();lO();efe();tfe();o(uO,"getAxis")});function nfe(t,e,r,n){let i=new Og(n);return new hO(i,t,e,r)}var hO,ife=M(()=>{"use strict";lO();hO=class{constructor(e,r,n,i){this.textDimensionCalculator=e;this.chartConfig=r;this.chartData=n;this.chartThemeConfig=i;this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{o(this,"ChartTitle")}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){let r=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(r.width,e.width),i=r.height+2*this.chartConfig.titlePadding;return r.width<=n&&r.height<=i&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=i,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let e=[];return this.showChartTitle&&e.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),e}};o(nfe,"getChartTitleComponent")});var yE,afe=M(()=>{"use strict";mr();yE=class{constructor(e,r,n,i,a){this.plotData=e;this.xAxis=r;this.yAxis=n;this.orientation=i;this.plotIndex=a}static{o(this,"LinePlot")}getDrawableElement(){let e=this.plotData.data.map(n=>[this.xAxis.getScaleValue(n[0]),this.yAxis.getScaleValue(n[1])]),r;return this.orientation==="horizontal"?r=Ka().y(n=>n[0]).x(n=>n[1])(e):r=Ka().x(n=>n[0]).y(n=>n[1])(e),r?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:r,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}});var vE,sfe=M(()=>{"use strict";vE=class{constructor(e,r,n,i,a,s){this.barData=e;this.boundingRect=r;this.xAxis=n;this.yAxis=i;this.orientation=a;this.plotIndex=s}static{o(this,"BarPlot")}getDrawableElement(){let e=this.barData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]),n=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),i=n/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map(a=>({x:this.boundingRect.x,y:a[0]-i,height:n,width:a[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map(a=>({x:a[0]-i,y:a[1],width:n,height:this.boundingRect.y+this.boundingRect.height-a[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}});function ofe(t,e,r){return new fO(t,e,r)}var fO,lfe=M(()=>{"use strict";afe();sfe();fO=class{constructor(e,r,n){this.chartConfig=e;this.chartData=r;this.chartThemeConfig=n;this.boundingRect={x:0,y:0,width:0,height:0}}static{o(this,"BasePlot")}setAxes(e,r){this.xAxis=e,this.yAxis=r}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){return this.boundingRect.width=e.width,this.boundingRect.height=e.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let e=[];for(let[r,n]of this.chartData.plots.entries())switch(n.type){case"line":{let i=new yE(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...i.getDrawableElement())}break;case"bar":{let i=new vE(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...i.getDrawableElement())}break}return e}};o(ofe,"getPlotComponent")});var xE,cfe=M(()=>{"use strict";rfe();ife();lfe();pE();xE=class{constructor(e,r,n,i){this.chartConfig=e;this.chartData=r;this.componentStore={title:nfe(e,r,n,i),plot:ofe(e,r,n),xAxis:uO(r.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},i),yAxis:uO(r.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},i)}}static{o(this,"Orchestrator")}calculateVerticalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,n=0,i=0,a=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),s=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),l=this.componentStore.plot.calculateSpace({width:a,height:s});e-=l.width,r-=l.height,l=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),i=l.height,r-=l.height,this.componentStore.xAxis.setAxisPosition("bottom"),l=this.componentStore.xAxis.calculateSpace({width:e,height:r}),r-=l.height,this.componentStore.yAxis.setAxisPosition("left"),l=this.componentStore.yAxis.calculateSpace({width:e,height:r}),n=l.width,e-=l.width,e>0&&(a+=e,e=0),r>0&&(s+=r,r=0),this.componentStore.plot.calculateSpace({width:a,height:s}),this.componentStore.plot.setBoundingBoxXY({x:n,y:i}),this.componentStore.xAxis.setRange([n,n+a]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:i+s}),this.componentStore.yAxis.setRange([i,i+s]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(u=>oO(u))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,n=0,i=0,a=0,s=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),l=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),u=this.componentStore.plot.calculateSpace({width:s,height:l});e-=u.width,r-=u.height,u=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),n=u.height,r-=u.height,this.componentStore.xAxis.setAxisPosition("left"),u=this.componentStore.xAxis.calculateSpace({width:e,height:r}),e-=u.width,i=u.width,this.componentStore.yAxis.setAxisPosition("top"),u=this.componentStore.yAxis.calculateSpace({width:e,height:r}),r-=u.height,a=n+u.height,e>0&&(s+=e,e=0),r>0&&(l+=r,r=0),this.componentStore.plot.calculateSpace({width:s,height:l}),this.componentStore.plot.setBoundingBoxXY({x:i,y:a}),this.componentStore.yAxis.setRange([i,i+s]),this.componentStore.yAxis.setBoundingBoxXY({x:i,y:n}),this.componentStore.xAxis.setRange([a,a+l]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(h=>oO(h))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let r of Object.values(this.componentStore))e.push(...r.getDrawableElements());return e}}});var bE,ufe=M(()=>{"use strict";cfe();bE=class{static{o(this,"XYChartBuilder")}static build(e,r,n,i){return new xE(e,r,n,i).getDrawableElement()}}});function ffe(){let t=sp(),e=Sr();return ws(t.xyChart,e.themeVariables.xyChart)}function dfe(){let t=Sr();return ws(ur.xyChart,t.xyChart)}function pfe(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function mO(t){let e=Sr();return Tr(t.trim(),e)}function ZVe(t){hfe=t}function JVe(t){t==="horizontal"?mx.chartOrientation="horizontal":mx.chartOrientation="vertical"}function eUe(t){un.xAxis.title=mO(t.text)}function mfe(t,e){un.xAxis={type:"linear",title:un.xAxis.title,min:t,max:e},wE=!0}function tUe(t){un.xAxis={type:"band",title:un.xAxis.title,categories:t.map(e=>mO(e.text))},wE=!0}function rUe(t){un.yAxis.title=mO(t.text)}function nUe(t,e){un.yAxis={type:"linear",title:un.yAxis.title,min:t,max:e},pO=!0}function iUe(t){let e=Math.min(...t),r=Math.max(...t),n=Ig(un.yAxis)?un.yAxis.min:1/0,i=Ig(un.yAxis)?un.yAxis.max:-1/0;un.yAxis={type:"linear",title:un.yAxis.title,min:Math.min(n,e),max:Math.max(i,r)}}function gfe(t){let e=[];if(t.length===0)return e;if(!wE){let r=Ig(un.xAxis)?un.xAxis.min:1/0,n=Ig(un.xAxis)?un.xAxis.max:-1/0;mfe(Math.min(r,1),Math.max(n,t.length))}if(pO||iUe(t),dE(un.xAxis)&&(e=un.xAxis.categories.map((r,n)=>[r,t[n]])),Ig(un.xAxis)){let r=un.xAxis.min,n=un.xAxis.max,i=(n-r)/(t.length-1),a=[];for(let s=r;s<=n;s+=i)a.push(`${s}`);e=a.map((s,l)=>[s,t[l]])}return e}function yfe(t){return dO[t===0?0:t%dO.length]}function aUe(t,e){let r=gfe(e);un.plots.push({type:"line",strokeFill:yfe(px),strokeWidth:2,data:r}),px++}function sUe(t,e){let r=gfe(e);un.plots.push({type:"bar",fill:yfe(px),data:r}),px++}function oUe(){if(un.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return un.title=Jr(),bE.build(mx,un,gx,hfe)}function lUe(){return gx}function cUe(){return mx}var px,hfe,mx,gx,un,dO,wE,pO,uUe,vfe,xfe=M(()=>{"use strict";Ua();hs();Ub();hr();fr();ki();ufe();pE();px=0,mx=dfe(),gx=ffe(),un=pfe(),dO=gx.plotColorPalette.split(",").map(t=>t.trim()),wE=!1,pO=!1;o(ffe,"getChartDefaultThemeConfig");o(dfe,"getChartDefaultConfig");o(pfe,"getChartDefaultData");o(mO,"textSanitizer");o(ZVe,"setTmpSVGG");o(JVe,"setOrientation");o(eUe,"setXAxisTitle");o(mfe,"setXAxisRangeData");o(tUe,"setXAxisBand");o(rUe,"setYAxisTitle");o(nUe,"setYAxisRangeData");o(iUe,"setYAxisRangeFromPlotData");o(gfe,"transformDataWithoutCategory");o(yfe,"getPlotColorFromPalette");o(aUe,"setLineData");o(sUe,"setBarData");o(oUe,"getDrawableElem");o(lUe,"getChartThemeConfig");o(cUe,"getChartConfig");uUe=o(function(){_r(),px=0,mx=dfe(),un=pfe(),gx=ffe(),dO=gx.plotColorPalette.split(",").map(t=>t.trim()),wE=!1,pO=!1},"clear"),vfe={getDrawableElem:oUe,clear:uUe,setAccTitle:Rr,getAccTitle:Pr,setDiagramTitle:ln,getDiagramTitle:Jr,getAccDescription:Fr,setAccDescription:Br,setOrientation:JVe,setXAxisTitle:eUe,setXAxisRangeData:mfe,setXAxisBand:tUe,setYAxisTitle:rUe,setYAxisRangeData:nUe,setLineData:aUe,setBarData:sUe,setTmpSVGG:ZVe,getChartThemeConfig:lUe,getChartConfig:cUe}});var hUe,bfe,wfe=M(()=>{"use strict";ht();Hu();ni();hUe=o((t,e,r,n)=>{let i=n.db,a=i.getChartThemeConfig(),s=i.getChartConfig();function l(v){return v==="top"?"text-before-edge":"middle"}o(l,"getDominantBaseLine");function u(v){return v==="left"?"start":v==="right"?"end":"middle"}o(u,"getTextAnchor");function h(v){return`translate(${v.x}, ${v.y}) rotate(${v.rotation||0})`}o(h,"getTextTransformation"),Y.debug(`Rendering xychart chart +`+t);let f=Oa(e),d=f.append("g").attr("class","main"),p=d.append("rect").attr("width",s.width).attr("height",s.height).attr("class","background");Zr(f,s.height,s.width,!0),f.attr("viewBox",`0 0 ${s.width} ${s.height}`),p.attr("fill",a.backgroundColor),i.setTmpSVGG(f.append("g").attr("class","mermaid-tmp-group"));let m=i.getDrawableElem(),g={};function y(v){let x=d,b="";for(let[w]of v.entries()){let _=d;w>0&&g[b]&&(_=g[b]),b+=v[w],x=g[b],x||(x=g[b]=_.append("g").attr("class",v[w]))}return x}o(y,"getGroup");for(let v of m){if(v.data.length===0)continue;let x=y(v.groupTexts);switch(v.type){case"rect":x.selectAll("rect").data(v.data).enter().append("rect").attr("x",b=>b.x).attr("y",b=>b.y).attr("width",b=>b.width).attr("height",b=>b.height).attr("fill",b=>b.fill).attr("stroke",b=>b.strokeFill).attr("stroke-width",b=>b.strokeWidth);break;case"text":x.selectAll("text").data(v.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",b=>b.fill).attr("font-size",b=>b.fontSize).attr("dominant-baseline",b=>l(b.verticalPos)).attr("text-anchor",b=>u(b.horizontalPos)).attr("transform",b=>h(b)).text(b=>b.text);break;case"path":x.selectAll("path").data(v.data).enter().append("path").attr("d",b=>b.path).attr("fill",b=>b.fill?b.fill:"none").attr("stroke",b=>b.strokeFill).attr("stroke-width",b=>b.strokeWidth);break}}},"draw"),bfe={draw:hUe}});var Tfe={};vr(Tfe,{diagram:()=>fUe});var fUe,kfe=M(()=>{"use strict";Jhe();xfe();wfe();fUe={parser:Zhe,db:vfe,renderer:bfe}});var gO,Cfe,Afe=M(()=>{"use strict";gO=function(){var t=o(function(ie,Q,ee,J){for(ee=ee||{},J=ie.length;J--;ee[ie[J]]=Q);return ee},"o"),e=[1,3],r=[1,4],n=[1,5],i=[1,6],a=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],s=[1,18],l=[2,7],u=[1,22],h=[1,23],f=[1,24],d=[1,25],p=[1,26],m=[1,27],g=[1,20],y=[1,28],v=[1,29],x=[62,63],b=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],w=[1,47],_=[1,48],T=[1,49],E=[1,50],L=[1,51],C=[1,52],A=[1,53],I=[53,54],D=[1,64],k=[1,60],R=[1,61],S=[1,62],O=[1,63],N=[1,65],P=[1,69],F=[1,70],B=[1,67],$=[1,68],z=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],W={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:o(function(Q,ee,J,H,q,Z,ae){var ue=Z.length-1;switch(q){case 4:this.$=Z[ue].trim(),H.setAccTitle(this.$);break;case 5:case 6:this.$=Z[ue].trim(),H.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:H.addRequirement(Z[ue-3],Z[ue-4]);break;case 14:H.setNewReqId(Z[ue-2]);break;case 15:H.setNewReqText(Z[ue-2]);break;case 16:H.setNewReqRisk(Z[ue-2]);break;case 17:H.setNewReqVerifyMethod(Z[ue-2]);break;case 20:this.$=H.RequirementType.REQUIREMENT;break;case 21:this.$=H.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=H.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=H.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=H.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=H.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=H.RiskLevel.LOW_RISK;break;case 27:this.$=H.RiskLevel.MED_RISK;break;case 28:this.$=H.RiskLevel.HIGH_RISK;break;case 29:this.$=H.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=H.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=H.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=H.VerifyType.VERIFY_TEST;break;case 33:H.addElement(Z[ue-3]);break;case 34:H.setNewElementType(Z[ue-2]);break;case 35:H.setNewElementDocRef(Z[ue-2]);break;case 38:H.addRelationship(Z[ue-2],Z[ue],Z[ue-4]);break;case 39:H.addRelationship(Z[ue-2],Z[ue-4],Z[ue]);break;case 40:this.$=H.Relationships.CONTAINS;break;case 41:this.$=H.Relationships.COPIES;break;case 42:this.$=H.Relationships.DERIVES;break;case 43:this.$=H.Relationships.SATISFIES;break;case 44:this.$=H.Relationships.VERIFIES;break;case 45:this.$=H.Relationships.REFINES;break;case 46:this.$=H.Relationships.TRACES;break}},"anonymous"),table:[{3:1,4:2,6:e,9:r,11:n,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:e,9:r,11:n,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(a,[2,6]),{3:12,4:2,6:e,9:r,11:n,13:i},{1:[2,2]},{4:17,5:s,7:13,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},t(a,[2,4]),t(a,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:s,7:31,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{4:17,5:s,7:32,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{4:17,5:s,7:33,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{4:17,5:s,7:34,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{4:17,5:s,7:35,8:l,9:r,11:n,13:i,14:14,15:15,16:16,17:19,23:21,31:u,32:h,33:f,34:d,35:p,36:m,44:g,62:y,63:v},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},t(x,[2,20]),t(x,[2,21]),t(x,[2,22]),t(x,[2,23]),t(x,[2,24]),t(x,[2,25]),t(b,[2,49]),t(b,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:w,56:_,57:T,58:E,59:L,60:C,61:A},{52:54,55:w,56:_,57:T,58:E,59:L,60:C,61:A},{5:[1,55]},{5:[1,56]},{53:[1,57]},t(I,[2,40]),t(I,[2,41]),t(I,[2,42]),t(I,[2,43]),t(I,[2,44]),t(I,[2,45]),t(I,[2,46]),{54:[1,58]},{5:D,20:59,21:k,24:R,26:S,28:O,30:N},{5:P,30:F,46:66,47:B,49:$},{23:71,62:y,63:v},{23:72,62:y,63:v},t(z,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:D,20:77,21:k,24:R,26:S,28:O,30:N},t(z,[2,19]),t(z,[2,33]),{22:[1,78]},{22:[1,79]},{5:P,30:F,46:80,47:B,49:$},t(z,[2,37]),t(z,[2,38]),t(z,[2,39]),{23:81,62:y,63:v},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},t(z,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},t(z,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:D,20:106,21:k,24:R,26:S,28:O,30:N},{5:D,20:107,21:k,24:R,26:S,28:O,30:N},{5:D,20:108,21:k,24:R,26:S,28:O,30:N},{5:D,20:109,21:k,24:R,26:S,28:O,30:N},{5:P,30:F,46:110,47:B,49:$},{5:P,30:F,46:111,47:B,49:$},t(z,[2,14]),t(z,[2,15]),t(z,[2,16]),t(z,[2,17]),t(z,[2,34]),t(z,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:o(function(Q,ee){if(ee.recoverable)this.trace(Q);else{var J=new Error(Q);throw J.hash=ee,J}},"parseError"),parse:o(function(Q){var ee=this,J=[0],H=[],q=[null],Z=[],ae=this.table,ue="",ce=0,te=0,De=0,oe=2,ke=1,Fe=Z.slice.call(arguments,1),Be=Object.create(this.lexer),Ve={yy:{}};for(var Ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ge)&&(Ve.yy[Ge]=this.yy[Ge]);Be.setInput(Q,Ve.yy),Ve.yy.lexer=Be,Ve.yy.parser=this,typeof Be.yylloc>"u"&&(Be.yylloc={});var He=Be.yylloc;Z.push(He);var xe=Be.options&&Be.options.ranges;typeof Ve.yy.parseError=="function"?this.parseError=Ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function X(We){J.length=J.length-2*We,q.length=q.length-We,Z.length=Z.length-We}o(X,"popStack");function fe(){var We;return We=H.pop()||Be.lex()||ke,typeof We!="number"&&(We instanceof Array&&(H=We,We=H.pop()),We=ee.symbols_[We]||We),We}o(fe,"lex");for(var he,ge,ne,ye,U,Te,se={},Ee,Ae,Pe,Me;;){if(ne=J[J.length-1],this.defaultActions[ne]?ye=this.defaultActions[ne]:((he===null||typeof he>"u")&&(he=fe()),ye=ae[ne]&&ae[ne][he]),typeof ye>"u"||!ye.length||!ye[0]){var me="";Me=[];for(Ee in ae[ne])this.terminals_[Ee]&&Ee>oe&&Me.push("'"+this.terminals_[Ee]+"'");Be.showPosition?me="Parse error on line "+(ce+1)+`: +`+Be.showPosition()+` +Expecting `+Me.join(", ")+", got '"+(this.terminals_[he]||he)+"'":me="Parse error on line "+(ce+1)+": Unexpected "+(he==ke?"end of input":"'"+(this.terminals_[he]||he)+"'"),this.parseError(me,{text:Be.match,token:this.terminals_[he]||he,line:Be.yylineno,loc:He,expected:Me})}if(ye[0]instanceof Array&&ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+he);switch(ye[0]){case 1:J.push(he),q.push(Be.yytext),Z.push(Be.yylloc),J.push(ye[1]),he=null,ge?(he=ge,ge=null):(te=Be.yyleng,ue=Be.yytext,ce=Be.yylineno,He=Be.yylloc,De>0&&De--);break;case 2:if(Ae=this.productions_[ye[1]][1],se.$=q[q.length-Ae],se._$={first_line:Z[Z.length-(Ae||1)].first_line,last_line:Z[Z.length-1].last_line,first_column:Z[Z.length-(Ae||1)].first_column,last_column:Z[Z.length-1].last_column},xe&&(se._$.range=[Z[Z.length-(Ae||1)].range[0],Z[Z.length-1].range[1]]),Te=this.performAction.apply(se,[ue,te,ce,Ve.yy,ye[1],q,Z].concat(Fe)),typeof Te<"u")return Te;Ae&&(J=J.slice(0,-1*Ae*2),q=q.slice(0,-1*Ae),Z=Z.slice(0,-1*Ae)),J.push(this.productions_[ye[1]][0]),q.push(se.$),Z.push(se._$),Pe=ae[J[J.length-2]][J[J.length-1]],J.push(Pe);break;case 3:return!0}}return!0},"parse")},j=function(){var ie={EOF:1,parseError:o(function(ee,J){if(this.yy.parser)this.yy.parser.parseError(ee,J);else throw new Error(ee)},"parseError"),setInput:o(function(Q,ee){return this.yy=ee||this.yy||{},this._input=Q,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var Q=this._input[0];this.yytext+=Q,this.yyleng++,this.offset++,this.match+=Q,this.matched+=Q;var ee=Q.match(/(?:\r\n?|\n).*/g);return ee?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Q},"input"),unput:o(function(Q){var ee=Q.length,J=Q.split(/(?:\r\n?|\n)/g);this._input=Q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ee),this.offset-=ee;var H=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),J.length-1&&(this.yylineno-=J.length-1);var q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:J?(J.length===H.length?this.yylloc.first_column:0)+H[H.length-J.length].length-J[0].length:this.yylloc.first_column-ee},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-ee]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(Q){this.unput(this.match.slice(Q))},"less"),pastInput:o(function(){var Q=this.matched.substr(0,this.matched.length-this.match.length);return(Q.length>20?"...":"")+Q.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var Q=this.match;return Q.length<20&&(Q+=this._input.substr(0,20-Q.length)),(Q.substr(0,20)+(Q.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var Q=this.pastInput(),ee=new Array(Q.length+1).join("-");return Q+this.upcomingInput()+` +`+ee+"^"},"showPosition"),test_match:o(function(Q,ee){var J,H,q;if(this.options.backtrack_lexer&&(q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(q.yylloc.range=this.yylloc.range.slice(0))),H=Q[0].match(/(?:\r\n?|\n).*/g),H&&(this.yylineno+=H.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:H?H[H.length-1].length-H[H.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Q[0].length},this.yytext+=Q[0],this.match+=Q[0],this.matches=Q,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Q[0].length),this.matched+=Q[0],J=this.performAction.call(this,this.yy,this,ee,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),J)return J;if(this._backtrack){for(var Z in q)this[Z]=q[Z];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Q,ee,J,H;this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),Z=0;Zee[0].length)){if(ee=J,H=Z,this.options.backtrack_lexer){if(Q=this.test_match(J,q[Z]),Q!==!1)return Q;if(this._backtrack){ee=!1;continue}else return!1}else if(!this.options.flex)break}return ee?(Q=this.test_match(ee,q[H]),Q!==!1?Q:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var ee=this.next();return ee||this.lex()},"lex"),begin:o(function(ee){this.conditionStack.push(ee)},"begin"),popState:o(function(){var ee=this.conditionStack.length-1;return ee>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(ee){return ee=this.conditionStack.length-1-Math.abs(ee||0),ee>=0?this.conditionStack[ee]:"INITIAL"},"topState"),pushState:o(function(ee){this.begin(ee)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(ee,J,H,q){var Z=q;switch(H){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return J.yytext=J.yytext.trim(),62;break}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}};return ie}();W.lexer=j;function K(){this.yy={}}return o(K,"Parser"),K.prototype=W,W.Parser=K,new K}();gO.parser=gO;Cfe=gO});var yO,Fs,yx,df,vx,gUe,yUe,vUe,xUe,bUe,wUe,TUe,kUe,EUe,SUe,CUe,AUe,_Ue,LUe,DUe,NUe,RUe,_fe,Lfe=M(()=>{"use strict";Vt();ht();ki();yO=[],Fs={},yx=new Map,df={},vx=new Map,gUe={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},yUe={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},vUe={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},xUe={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},bUe=o((t,e)=>(yx.has(t)||yx.set(t,{name:t,type:e,id:Fs.id,text:Fs.text,risk:Fs.risk,verifyMethod:Fs.verifyMethod}),Fs={},yx.get(t)),"addRequirement"),wUe=o(()=>yx,"getRequirements"),TUe=o(t=>{Fs!==void 0&&(Fs.id=t)},"setNewReqId"),kUe=o(t=>{Fs!==void 0&&(Fs.text=t)},"setNewReqText"),EUe=o(t=>{Fs!==void 0&&(Fs.risk=t)},"setNewReqRisk"),SUe=o(t=>{Fs!==void 0&&(Fs.verifyMethod=t)},"setNewReqVerifyMethod"),CUe=o(t=>(vx.has(t)||(vx.set(t,{name:t,type:df.type,docRef:df.docRef}),Y.info("Added new requirement: ",t)),df={},vx.get(t)),"addElement"),AUe=o(()=>vx,"getElements"),_Ue=o(t=>{df!==void 0&&(df.type=t)},"setNewElementType"),LUe=o(t=>{df!==void 0&&(df.docRef=t)},"setNewElementDocRef"),DUe=o((t,e,r)=>{yO.push({type:t,src:e,dst:r})},"addRelationship"),NUe=o(()=>yO,"getRelationships"),RUe=o(()=>{yO=[],Fs={},yx=new Map,df={},vx=new Map,_r()},"clear"),_fe={RequirementType:gUe,RiskLevel:yUe,VerifyType:vUe,Relationships:xUe,getConfig:o(()=>de().req,"getConfig"),addRequirement:bUe,getRequirements:wUe,setNewReqId:TUe,setNewReqText:kUe,setNewReqRisk:EUe,setNewReqVerifyMethod:SUe,setAccTitle:Rr,getAccTitle:Pr,setAccDescription:Br,getAccDescription:Fr,addElement:CUe,getElements:AUe,setNewElementType:_Ue,setNewElementDocRef:LUe,addRelationship:DUe,getRelationships:NUe,clear:RUe}});var MUe,Dfe,Nfe=M(()=>{"use strict";MUe=o(t=>` + + marker { + fill: ${t.relationColor}; + stroke: ${t.relationColor}; + } + + marker.cross { + stroke: ${t.lineColor}; + } + + svg { + font-family: ${t.fontFamily}; + font-size: ${t.fontSize}; + } + + .reqBox { + fill: ${t.requirementBackground}; + fill-opacity: 1.0; + stroke: ${t.requirementBorderColor}; + stroke-width: ${t.requirementBorderSize}; + } + + .reqTitle, .reqLabel{ + fill: ${t.requirementTextColor}; + } + .reqLabelBox { + fill: ${t.relationLabelBackground}; + fill-opacity: 1.0; + } + + .req-title-line { + stroke: ${t.requirementBorderColor}; + stroke-width: ${t.requirementBorderSize}; + } + .relationshipLine { + stroke: ${t.relationColor}; + stroke-width: 1; + } + .relationshipLabel { + fill: ${t.relationLabelColor}; + } + +`,"getStyles"),Dfe=MUe});var vO,IUe,xO,Rfe=M(()=>{"use strict";vO={CONTAINS:"contains",ARROW:"arrow"},IUe=o((t,e)=>{let r=t.append("defs").append("marker").attr("id",vO.CONTAINS+"_line_ending").attr("refX",0).attr("refY",e.line_height/2).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("g");r.append("circle").attr("cx",e.line_height/2).attr("cy",e.line_height/2).attr("r",e.line_height/2).attr("fill","none"),r.append("line").attr("x1",0).attr("x2",e.line_height).attr("y1",e.line_height/2).attr("y2",e.line_height/2).attr("stroke-width",1),r.append("line").attr("y1",0).attr("y2",e.line_height).attr("x1",e.line_height/2).attr("x2",e.line_height/2).attr("stroke-width",1),t.append("defs").append("marker").attr("id",vO.ARROW+"_line_ending").attr("refX",e.line_height).attr("refY",.5*e.line_height).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("path").attr("d",`M0,0 + L${e.line_height},${e.line_height/2} + M${e.line_height},${e.line_height/2} + L0,${e.line_height}`).attr("stroke-width",1)},"insertLineEndings"),xO={ReqMarkers:vO,insertLineEndings:IUe}});var ci,Mfe,Ife,Ofe,Pfe,OUe,PUe,BUe,FUe,zUe,GUe,Bg,$Ue,Bfe,Ffe=M(()=>{"use strict";mr();Pv();Ns();Vt();ht();ni();fr();Rfe();ci={},Mfe=0,Ife=o((t,e)=>t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",ci.rect_min_width+"px").attr("height",ci.rect_min_height+"px"),"newRectNode"),Ofe=o((t,e,r)=>{let n=ci.rect_min_width/2,i=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",n).attr("y",ci.rect_padding).attr("dominant-baseline","hanging"),a=0;r.forEach(h=>{a==0?i.append("tspan").attr("text-anchor","middle").attr("x",ci.rect_min_width/2).attr("dy",0).text(h):i.append("tspan").attr("text-anchor","middle").attr("x",ci.rect_min_width/2).attr("dy",ci.line_height*.75).text(h),a++});let s=1.5*ci.rect_padding,l=a*ci.line_height*.75,u=s+l;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",ci.rect_min_width).attr("y1",u).attr("y2",u),{titleNode:i,y:u}},"newTitleNode"),Pfe=o((t,e,r,n)=>{let i=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",ci.rect_padding).attr("y",n).attr("dominant-baseline","hanging"),a=0,s=30,l=[];return r.forEach(u=>{let h=u.length;for(;h>s&&a<3;){let f=u.substring(0,s);u=u.substring(s,u.length),h=u.length,l[l.length]=f,a++}if(a==3){let f=l[l.length-1];l[l.length-1]=f.substring(0,f.length-4)+"..."}else l[l.length]=u;a=0}),l.forEach(u=>{i.append("tspan").attr("x",ci.rect_padding).attr("dy",ci.line_height).text(u)}),i},"newBodyNode"),OUe=o((t,e,r,n)=>{let i=e.node().getTotalLength(),a=e.node().getPointAtLength(i*.5),s="rel"+Mfe;Mfe++;let u=t.append("text").attr("class","req relationshipLabel").attr("id",s).attr("x",a.x).attr("y",a.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(n).node().getBBox();t.insert("rect","#"+s).attr("class","req reqLabelBox").attr("x",a.x-u.width/2).attr("y",a.y-u.height/2).attr("width",u.width).attr("height",u.height).attr("fill","white").attr("fill-opacity","85%")},"addEdgeLabel"),PUe=o(function(t,e,r,n,i){let a=r.edge(Bg(e.src),Bg(e.dst)),s=Ka().x(function(u){return u.x}).y(function(u){return u.y}),l=t.insert("path","#"+n).attr("class","er relationshipLine").attr("d",s(a.points)).attr("fill","none");e.type==i.db.Relationships.CONTAINS?l.attr("marker-start","url("+je.getUrl(ci.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)"):(l.attr("stroke-dasharray","10,7"),l.attr("marker-end","url("+je.getUrl(ci.arrowMarkerAbsolute)+"#"+xO.ReqMarkers.ARROW+"_line_ending)")),OUe(t,l,ci,`<<${e.type}>>`)},"drawRelationshipFromLayout"),BUe=o((t,e,r)=>{t.forEach((n,i)=>{i=Bg(i),Y.info("Added new requirement: ",i);let a=r.append("g").attr("id",i),s="req-"+i,l=Ife(a,s),u=[],h=Ofe(a,i+"_title",[`<<${n.type}>>`,`${n.name}`]);u.push(h.titleNode);let f=Pfe(a,i+"_body",[`Id: ${n.id}`,`Text: ${n.text}`,`Risk: ${n.risk}`,`Verification: ${n.verifyMethod}`],h.y);u.push(f);let d=l.node().getBBox();e.setNode(i,{width:d.width,height:d.height,shape:"rect",id:i})})},"drawReqs"),FUe=o((t,e,r)=>{t.forEach((n,i)=>{let a=Bg(i),s=r.append("g").attr("id",a),l="element-"+a,u=Ife(s,l),h=[],f=Ofe(s,l+"_title",["<>",`${i}`]);h.push(f.titleNode);let d=Pfe(s,l+"_body",[`Type: ${n.type||"Not Specified"}`,`Doc Ref: ${n.docRef||"None"}`],f.y);h.push(d);let p=u.node().getBBox();e.setNode(a,{width:p.width,height:p.height,shape:"rect",id:a})})},"drawElements"),zUe=o((t,e)=>(t.forEach(function(r){let n=Bg(r.src),i=Bg(r.dst);e.setEdge(n,i,{relationship:r})}),t),"addRelationships"),GUe=o(function(t,e){e.nodes().forEach(function(r){r!==void 0&&e.node(r)!==void 0&&(t.select("#"+r),t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )"))})},"adjustEntities"),Bg=o(t=>t.replace(/\s/g,"").replace(/\./g,"_"),"elementString"),$Ue=o((t,e,r,n)=>{ci=de().requirement;let i=ci.securityLevel,a;i==="sandbox"&&(a=ze("#i"+e));let l=(i==="sandbox"?ze(a.nodes()[0].contentDocument.body):ze("body")).select(`[id='${e}']`);xO.insertLineEndings(l,ci);let u=new Mr({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:ci.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),h=n.db.getRequirements(),f=n.db.getElements(),d=n.db.getRelationships();BUe(h,u,l),FUe(f,u,l),zUe(d,u),Du(u),GUe(l,u),d.forEach(function(v){PUe(l,v,u,e,n)});let p=ci.rect_padding,m=l.node().getBBox(),g=m.width+p*2,y=m.height+p*2;Zr(l,y,g,ci.useMaxWidth),l.attr("viewBox",`${m.x-p} ${m.y-p} ${g} ${y}`)},"draw"),Bfe={draw:$Ue}});var zfe={};vr(zfe,{diagram:()=>VUe});var VUe,Gfe=M(()=>{"use strict";Afe();Lfe();Nfe();Ffe();VUe={parser:Cfe,db:_fe,renderer:Bfe,styles:Dfe}});var bO,Ufe,Hfe=M(()=>{"use strict";bO=function(){var t=o(function(H,q,Z,ae){for(Z=Z||{},ae=H.length;ae--;Z[H[ae]]=q);return Z},"o"),e=[1,2],r=[1,3],n=[1,4],i=[2,4],a=[1,9],s=[1,11],l=[1,13],u=[1,14],h=[1,16],f=[1,17],d=[1,18],p=[1,24],m=[1,25],g=[1,26],y=[1,27],v=[1,28],x=[1,29],b=[1,30],w=[1,31],_=[1,32],T=[1,33],E=[1,34],L=[1,35],C=[1,36],A=[1,37],I=[1,38],D=[1,39],k=[1,41],R=[1,42],S=[1,43],O=[1,44],N=[1,45],P=[1,46],F=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],B=[4,5,16,50,52,53],$=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],z=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],W=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],K=[68,69,70],ie=[1,122],Q={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:o(function(q,Z,ae,ue,ce,te,De){var oe=te.length-1;switch(ce){case 3:return ue.apply(te[oe]),te[oe];break;case 4:case 9:this.$=[];break;case 5:case 10:te[oe-1].push(te[oe]),this.$=te[oe-1];break;case 6:case 7:case 11:case 12:this.$=te[oe];break;case 8:case 13:this.$=[];break;case 15:te[oe].type="createParticipant",this.$=te[oe];break;case 16:te[oe-1].unshift({type:"boxStart",boxData:ue.parseBoxData(te[oe-2])}),te[oe-1].push({type:"boxEnd",boxText:te[oe-2]}),this.$=te[oe-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(te[oe-2]),sequenceIndexStep:Number(te[oe-1]),sequenceVisible:!0,signalType:ue.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(te[oe-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:ue.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:ue.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:ue.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:ue.LINETYPE.ACTIVE_START,actor:te[oe-1].actor};break;case 23:this.$={type:"activeEnd",signalType:ue.LINETYPE.ACTIVE_END,actor:te[oe-1].actor};break;case 29:ue.setDiagramTitle(te[oe].substring(6)),this.$=te[oe].substring(6);break;case 30:ue.setDiagramTitle(te[oe].substring(7)),this.$=te[oe].substring(7);break;case 31:this.$=te[oe].trim(),ue.setAccTitle(this.$);break;case 32:case 33:this.$=te[oe].trim(),ue.setAccDescription(this.$);break;case 34:te[oe-1].unshift({type:"loopStart",loopText:ue.parseMessage(te[oe-2]),signalType:ue.LINETYPE.LOOP_START}),te[oe-1].push({type:"loopEnd",loopText:te[oe-2],signalType:ue.LINETYPE.LOOP_END}),this.$=te[oe-1];break;case 35:te[oe-1].unshift({type:"rectStart",color:ue.parseMessage(te[oe-2]),signalType:ue.LINETYPE.RECT_START}),te[oe-1].push({type:"rectEnd",color:ue.parseMessage(te[oe-2]),signalType:ue.LINETYPE.RECT_END}),this.$=te[oe-1];break;case 36:te[oe-1].unshift({type:"optStart",optText:ue.parseMessage(te[oe-2]),signalType:ue.LINETYPE.OPT_START}),te[oe-1].push({type:"optEnd",optText:ue.parseMessage(te[oe-2]),signalType:ue.LINETYPE.OPT_END}),this.$=te[oe-1];break;case 37:te[oe-1].unshift({type:"altStart",altText:ue.parseMessage(te[oe-2]),signalType:ue.LINETYPE.ALT_START}),te[oe-1].push({type:"altEnd",signalType:ue.LINETYPE.ALT_END}),this.$=te[oe-1];break;case 38:te[oe-1].unshift({type:"parStart",parText:ue.parseMessage(te[oe-2]),signalType:ue.LINETYPE.PAR_START}),te[oe-1].push({type:"parEnd",signalType:ue.LINETYPE.PAR_END}),this.$=te[oe-1];break;case 39:te[oe-1].unshift({type:"parStart",parText:ue.parseMessage(te[oe-2]),signalType:ue.LINETYPE.PAR_OVER_START}),te[oe-1].push({type:"parEnd",signalType:ue.LINETYPE.PAR_END}),this.$=te[oe-1];break;case 40:te[oe-1].unshift({type:"criticalStart",criticalText:ue.parseMessage(te[oe-2]),signalType:ue.LINETYPE.CRITICAL_START}),te[oe-1].push({type:"criticalEnd",signalType:ue.LINETYPE.CRITICAL_END}),this.$=te[oe-1];break;case 41:te[oe-1].unshift({type:"breakStart",breakText:ue.parseMessage(te[oe-2]),signalType:ue.LINETYPE.BREAK_START}),te[oe-1].push({type:"breakEnd",optText:ue.parseMessage(te[oe-2]),signalType:ue.LINETYPE.BREAK_END}),this.$=te[oe-1];break;case 43:this.$=te[oe-3].concat([{type:"option",optionText:ue.parseMessage(te[oe-1]),signalType:ue.LINETYPE.CRITICAL_OPTION},te[oe]]);break;case 45:this.$=te[oe-3].concat([{type:"and",parText:ue.parseMessage(te[oe-1]),signalType:ue.LINETYPE.PAR_AND},te[oe]]);break;case 47:this.$=te[oe-3].concat([{type:"else",altText:ue.parseMessage(te[oe-1]),signalType:ue.LINETYPE.ALT_ELSE},te[oe]]);break;case 48:te[oe-3].draw="participant",te[oe-3].type="addParticipant",te[oe-3].description=ue.parseMessage(te[oe-1]),this.$=te[oe-3];break;case 49:te[oe-1].draw="participant",te[oe-1].type="addParticipant",this.$=te[oe-1];break;case 50:te[oe-3].draw="actor",te[oe-3].type="addParticipant",te[oe-3].description=ue.parseMessage(te[oe-1]),this.$=te[oe-3];break;case 51:te[oe-1].draw="actor",te[oe-1].type="addParticipant",this.$=te[oe-1];break;case 52:te[oe-1].type="destroyParticipant",this.$=te[oe-1];break;case 53:this.$=[te[oe-1],{type:"addNote",placement:te[oe-2],actor:te[oe-1].actor,text:te[oe]}];break;case 54:te[oe-2]=[].concat(te[oe-1],te[oe-1]).slice(0,2),te[oe-2][0]=te[oe-2][0].actor,te[oe-2][1]=te[oe-2][1].actor,this.$=[te[oe-1],{type:"addNote",placement:ue.PLACEMENT.OVER,actor:te[oe-2].slice(0,2),text:te[oe]}];break;case 55:this.$=[te[oe-1],{type:"addLinks",actor:te[oe-1].actor,text:te[oe]}];break;case 56:this.$=[te[oe-1],{type:"addALink",actor:te[oe-1].actor,text:te[oe]}];break;case 57:this.$=[te[oe-1],{type:"addProperties",actor:te[oe-1].actor,text:te[oe]}];break;case 58:this.$=[te[oe-1],{type:"addDetails",actor:te[oe-1].actor,text:te[oe]}];break;case 61:this.$=[te[oe-2],te[oe]];break;case 62:this.$=te[oe];break;case 63:this.$=ue.PLACEMENT.LEFTOF;break;case 64:this.$=ue.PLACEMENT.RIGHTOF;break;case 65:this.$=[te[oe-4],te[oe-1],{type:"addMessage",from:te[oe-4].actor,to:te[oe-1].actor,signalType:te[oe-3],msg:te[oe],activate:!0},{type:"activeStart",signalType:ue.LINETYPE.ACTIVE_START,actor:te[oe-1].actor}];break;case 66:this.$=[te[oe-4],te[oe-1],{type:"addMessage",from:te[oe-4].actor,to:te[oe-1].actor,signalType:te[oe-3],msg:te[oe]},{type:"activeEnd",signalType:ue.LINETYPE.ACTIVE_END,actor:te[oe-4].actor}];break;case 67:this.$=[te[oe-3],te[oe-1],{type:"addMessage",from:te[oe-3].actor,to:te[oe-1].actor,signalType:te[oe-2],msg:te[oe]}];break;case 68:this.$={type:"addParticipant",actor:te[oe]};break;case 69:this.$=ue.LINETYPE.SOLID_OPEN;break;case 70:this.$=ue.LINETYPE.DOTTED_OPEN;break;case 71:this.$=ue.LINETYPE.SOLID;break;case 72:this.$=ue.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=ue.LINETYPE.DOTTED;break;case 74:this.$=ue.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=ue.LINETYPE.SOLID_CROSS;break;case 76:this.$=ue.LINETYPE.DOTTED_CROSS;break;case 77:this.$=ue.LINETYPE.SOLID_POINT;break;case 78:this.$=ue.LINETYPE.DOTTED_POINT;break;case 79:this.$=ue.parseMessage(te[oe].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:r,6:n},{1:[3]},{3:5,4:e,5:r,6:n},{3:6,4:e,5:r,6:n},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:s,8:8,9:10,12:12,13:l,14:u,17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:_,41:T,43:E,44:L,46:C,50:A,52:I,53:D,54:k,59:R,60:S,61:O,62:N,70:P},t(F,[2,5]),{9:47,12:12,13:l,14:u,17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:_,41:T,43:E,44:L,46:C,50:A,52:I,53:D,54:k,59:R,60:S,61:O,62:N,70:P},t(F,[2,7]),t(F,[2,8]),t(F,[2,14]),{12:48,50:A,52:I,53:D},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:P},{22:55,70:P},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(F,[2,29]),t(F,[2,30]),{32:[1,61]},{34:[1,62]},t(F,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:P},{22:72,70:P},{22:73,70:P},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:P},{22:90,70:P},{22:91,70:P},{22:92,70:P},t([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),t(F,[2,6]),t(F,[2,15]),t(B,[2,9],{10:93}),t(F,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},t(F,[2,21]),{5:[1,97]},{5:[1,98]},t(F,[2,24]),t(F,[2,25]),t(F,[2,26]),t(F,[2,27]),t(F,[2,28]),t(F,[2,31]),t(F,[2,32]),t($,i,{7:99}),t($,i,{7:100}),t($,i,{7:101}),t(z,i,{40:102,7:103}),t(W,i,{42:104,7:105}),t(W,i,{7:105,42:106}),t(j,i,{45:107,7:108}),t($,i,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:P},t(K,[2,69]),t(K,[2,70]),t(K,[2,71]),t(K,[2,72]),t(K,[2,73]),t(K,[2,74]),t(K,[2,75]),t(K,[2,76]),t(K,[2,77]),t(K,[2,78]),{22:118,70:P},{22:120,58:119,70:P},{70:[2,63]},{70:[2,64]},{56:121,81:ie},{56:123,81:ie},{56:124,81:ie},{56:125,81:ie},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:A,52:I,53:D},{5:[1,131]},t(F,[2,19]),t(F,[2,20]),t(F,[2,22]),t(F,[2,23]),{4:a,5:s,8:8,9:10,12:12,13:l,14:u,16:[1,132],17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:_,41:T,43:E,44:L,46:C,50:A,52:I,53:D,54:k,59:R,60:S,61:O,62:N,70:P},{4:a,5:s,8:8,9:10,12:12,13:l,14:u,16:[1,133],17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:_,41:T,43:E,44:L,46:C,50:A,52:I,53:D,54:k,59:R,60:S,61:O,62:N,70:P},{4:a,5:s,8:8,9:10,12:12,13:l,14:u,16:[1,134],17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:_,41:T,43:E,44:L,46:C,50:A,52:I,53:D,54:k,59:R,60:S,61:O,62:N,70:P},{16:[1,135]},{4:a,5:s,8:8,9:10,12:12,13:l,14:u,16:[2,46],17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:_,41:T,43:E,44:L,46:C,49:[1,136],50:A,52:I,53:D,54:k,59:R,60:S,61:O,62:N,70:P},{16:[1,137]},{4:a,5:s,8:8,9:10,12:12,13:l,14:u,16:[2,44],17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:_,41:T,43:E,44:L,46:C,48:[1,138],50:A,52:I,53:D,54:k,59:R,60:S,61:O,62:N,70:P},{16:[1,139]},{16:[1,140]},{4:a,5:s,8:8,9:10,12:12,13:l,14:u,16:[2,42],17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:_,41:T,43:E,44:L,46:C,47:[1,141],50:A,52:I,53:D,54:k,59:R,60:S,61:O,62:N,70:P},{4:a,5:s,8:8,9:10,12:12,13:l,14:u,16:[1,142],17:15,18:h,21:f,22:40,23:d,24:19,25:20,26:21,27:22,28:23,29:p,30:m,31:g,33:y,35:v,36:x,37:b,38:w,39:_,41:T,43:E,44:L,46:C,50:A,52:I,53:D,54:k,59:R,60:S,61:O,62:N,70:P},{15:[1,143]},t(F,[2,49]),{15:[1,144]},t(F,[2,51]),t(F,[2,52]),{22:145,70:P},{22:146,70:P},{56:147,81:ie},{56:148,81:ie},{56:149,81:ie},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(F,[2,16]),t(B,[2,10]),{12:151,50:A,52:I,53:D},t(B,[2,12]),t(B,[2,13]),t(F,[2,18]),t(F,[2,34]),t(F,[2,35]),t(F,[2,36]),t(F,[2,37]),{15:[1,152]},t(F,[2,38]),{15:[1,153]},t(F,[2,39]),t(F,[2,40]),{15:[1,154]},t(F,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:ie},{56:158,81:ie},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:P},t(B,[2,11]),t(z,i,{7:103,40:160}),t(W,i,{7:105,42:161}),t(j,i,{7:108,45:162}),t(F,[2,48]),t(F,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:o(function(q,Z){if(Z.recoverable)this.trace(q);else{var ae=new Error(q);throw ae.hash=Z,ae}},"parseError"),parse:o(function(q){var Z=this,ae=[0],ue=[],ce=[null],te=[],De=this.table,oe="",ke=0,Fe=0,Be=0,Ve=2,Ge=1,He=te.slice.call(arguments,1),xe=Object.create(this.lexer),X={yy:{}};for(var fe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,fe)&&(X.yy[fe]=this.yy[fe]);xe.setInput(q,X.yy),X.yy.lexer=xe,X.yy.parser=this,typeof xe.yylloc>"u"&&(xe.yylloc={});var he=xe.yylloc;te.push(he);var ge=xe.options&&xe.options.ranges;typeof X.yy.parseError=="function"?this.parseError=X.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ne(Et){ae.length=ae.length-2*Et,ce.length=ce.length-Et,te.length=te.length-Et}o(ne,"popStack");function ye(){var Et;return Et=ue.pop()||xe.lex()||Ge,typeof Et!="number"&&(Et instanceof Array&&(ue=Et,Et=ue.pop()),Et=Z.symbols_[Et]||Et),Et}o(ye,"lex");for(var U,Te,se,Ee,Ae,Pe,Me={},me,We,Re,tt;;){if(se=ae[ae.length-1],this.defaultActions[se]?Ee=this.defaultActions[se]:((U===null||typeof U>"u")&&(U=ye()),Ee=De[se]&&De[se][U]),typeof Ee>"u"||!Ee.length||!Ee[0]){var gt="";tt=[];for(me in De[se])this.terminals_[me]&&me>Ve&&tt.push("'"+this.terminals_[me]+"'");xe.showPosition?gt="Parse error on line "+(ke+1)+`: +`+xe.showPosition()+` +Expecting `+tt.join(", ")+", got '"+(this.terminals_[U]||U)+"'":gt="Parse error on line "+(ke+1)+": Unexpected "+(U==Ge?"end of input":"'"+(this.terminals_[U]||U)+"'"),this.parseError(gt,{text:xe.match,token:this.terminals_[U]||U,line:xe.yylineno,loc:he,expected:tt})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+se+", token: "+U);switch(Ee[0]){case 1:ae.push(U),ce.push(xe.yytext),te.push(xe.yylloc),ae.push(Ee[1]),U=null,Te?(U=Te,Te=null):(Fe=xe.yyleng,oe=xe.yytext,ke=xe.yylineno,he=xe.yylloc,Be>0&&Be--);break;case 2:if(We=this.productions_[Ee[1]][1],Me.$=ce[ce.length-We],Me._$={first_line:te[te.length-(We||1)].first_line,last_line:te[te.length-1].last_line,first_column:te[te.length-(We||1)].first_column,last_column:te[te.length-1].last_column},ge&&(Me._$.range=[te[te.length-(We||1)].range[0],te[te.length-1].range[1]]),Pe=this.performAction.apply(Me,[oe,Fe,ke,X.yy,Ee[1],ce,te].concat(He)),typeof Pe<"u")return Pe;We&&(ae=ae.slice(0,-1*We*2),ce=ce.slice(0,-1*We),te=te.slice(0,-1*We)),ae.push(this.productions_[Ee[1]][0]),ce.push(Me.$),te.push(Me._$),Re=De[ae[ae.length-2]][ae[ae.length-1]],ae.push(Re);break;case 3:return!0}}return!0},"parse")},ee=function(){var H={EOF:1,parseError:o(function(Z,ae){if(this.yy.parser)this.yy.parser.parseError(Z,ae);else throw new Error(Z)},"parseError"),setInput:o(function(q,Z){return this.yy=Z||this.yy||{},this._input=q,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var q=this._input[0];this.yytext+=q,this.yyleng++,this.offset++,this.match+=q,this.matched+=q;var Z=q.match(/(?:\r\n?|\n).*/g);return Z?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),q},"input"),unput:o(function(q){var Z=q.length,ae=q.split(/(?:\r\n?|\n)/g);this._input=q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Z),this.offset-=Z;var ue=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ae.length-1&&(this.yylineno-=ae.length-1);var ce=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ae?(ae.length===ue.length?this.yylloc.first_column:0)+ue[ue.length-ae.length].length-ae[0].length:this.yylloc.first_column-Z},this.options.ranges&&(this.yylloc.range=[ce[0],ce[0]+this.yyleng-Z]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(q){this.unput(this.match.slice(q))},"less"),pastInput:o(function(){var q=this.matched.substr(0,this.matched.length-this.match.length);return(q.length>20?"...":"")+q.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var q=this.match;return q.length<20&&(q+=this._input.substr(0,20-q.length)),(q.substr(0,20)+(q.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var q=this.pastInput(),Z=new Array(q.length+1).join("-");return q+this.upcomingInput()+` +`+Z+"^"},"showPosition"),test_match:o(function(q,Z){var ae,ue,ce;if(this.options.backtrack_lexer&&(ce={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ce.yylloc.range=this.yylloc.range.slice(0))),ue=q[0].match(/(?:\r\n?|\n).*/g),ue&&(this.yylineno+=ue.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ue?ue[ue.length-1].length-ue[ue.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+q[0].length},this.yytext+=q[0],this.match+=q[0],this.matches=q,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(q[0].length),this.matched+=q[0],ae=this.performAction.call(this,this.yy,this,Z,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ae)return ae;if(this._backtrack){for(var te in ce)this[te]=ce[te];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var q,Z,ae,ue;this._more||(this.yytext="",this.match="");for(var ce=this._currentRules(),te=0;teZ[0].length)){if(Z=ae,ue=te,this.options.backtrack_lexer){if(q=this.test_match(ae,ce[te]),q!==!1)return q;if(this._backtrack){Z=!1;continue}else return!1}else if(!this.options.flex)break}return Z?(q=this.test_match(Z,ce[ue]),q!==!1?q:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var Z=this.next();return Z||this.lex()},"lex"),begin:o(function(Z){this.conditionStack.push(Z)},"begin"),popState:o(function(){var Z=this.conditionStack.length-1;return Z>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(Z){return Z=this.conditionStack.length-1-Math.abs(Z||0),Z>=0?this.conditionStack[Z]:"INITIAL"},"topState"),pushState:o(function(Z){this.begin(Z)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(Z,ae,ue,ce){var te=ce;switch(ue){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;break;case 8:return this.begin("ID"),50;break;case 9:return this.begin("ID"),52;break;case 10:return 13;case 11:return this.begin("ID"),53;break;case 12:return ae.yytext=ae.yytext.trim(),this.begin("ALIAS"),70;break;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;break;case 14:return this.popState(),this.popState(),5;break;case 15:return this.begin("LINE"),36;break;case 16:return this.begin("LINE"),37;break;case 17:return this.begin("LINE"),38;break;case 18:return this.begin("LINE"),39;break;case 19:return this.begin("LINE"),49;break;case 20:return this.begin("LINE"),41;break;case 21:return this.begin("LINE"),43;break;case 22:return this.begin("LINE"),48;break;case 23:return this.begin("LINE"),44;break;case 24:return this.begin("LINE"),47;break;case 25:return this.begin("LINE"),46;break;case 26:return this.popState(),15;break;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;break;case 37:return this.begin("ID"),23;break;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;break;case 41:return this.popState(),"acc_title_value";break;case 42:return this.begin("acc_descr"),33;break;case 43:return this.popState(),"acc_descr_value";break;case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 51:return 5;case 52:return ae.yytext=ae.yytext.trim(),70;break;case 53:return 73;case 54:return 74;case 55:return 75;case 56:return 76;case 57:return 71;case 58:return 72;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 80;case 63:return 81;case 64:return 68;case 65:return 69;case 66:return 5;case 67:return"INVALID"}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\<->\->:\n,;]+?([\-]*[^\<->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\<->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\<->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}};return H}();Q.lexer=ee;function J(){this.yy={}}return o(J,"Parser"),J.prototype=Q,Q.Parser=J,new J}();bO.parser=bO;Ufe=bO});function TO(t,e){if(t.links==null)t.links=e;else for(let r in e)t.links[r]=e[r]}function jfe(t,e){if(t.properties==null)t.properties=e;else for(let r in e)t.properties[r]=e[r]}function dHe(){$t.records.currentBox=void 0}var $t,YUe,wO,qUe,XUe,yi,jUe,KUe,QUe,ZUe,JUe,eHe,tHe,bx,rHe,nHe,iHe,aHe,sHe,Wfe,k0,oHe,lHe,cHe,xx,uHe,hHe,Yfe,qfe,fHe,Xfe,Kfe,pHe,Qfe,kO,Zfe=M(()=>{"use strict";Vt();ht();tE();fr();ki();$t=new cf(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),YUe=o(function(t){$t.records.boxes.push({name:t.text,wrap:t.wrap??k0(),fill:t.color,actorKeys:[]}),$t.records.currentBox=$t.records.boxes.slice(-1)[0]},"addBox"),wO=o(function(t,e,r,n){let i=$t.records.currentBox,a=$t.records.actors.get(t);if(a){if($t.records.currentBox&&a.box&&$t.records.currentBox!==a.box)throw new Error(`A same participant should only be defined in one Box: ${a.name} can't be in '${a.box.name}' and in '${$t.records.currentBox.name}' at the same time.`);if(i=a.box?a.box:$t.records.currentBox,a.box=i,a&&e===a.name&&r==null)return}if(r?.text==null&&(r={text:e,type:n}),(n==null||r.text==null)&&(r={text:e,type:n}),$t.records.actors.set(t,{box:i,name:e,description:r.text,wrap:r.wrap??k0(),prevActor:$t.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:n??"participant"}),$t.records.prevActor){let s=$t.records.actors.get($t.records.prevActor);s&&(s.nextActor=t)}$t.records.currentBox&&$t.records.currentBox.actorKeys.push(t),$t.records.prevActor=t},"addActor"),qUe=o(t=>{let e,r=0;if(!t)return 0;for(e=0;e<$t.records.messages.length;e++)$t.records.messages[e].type===xx.ACTIVE_START&&$t.records.messages[e].from===t&&r++,$t.records.messages[e].type===xx.ACTIVE_END&&$t.records.messages[e].from===t&&r--;return r},"activationCount"),XUe=o(function(t,e,r,n){$t.records.messages.push({from:t,to:e,message:r.text,wrap:r.wrap??k0(),answer:n})},"addMessage"),yi=o(function(t,e,r,n,i=!1){if(n===xx.ACTIVE_END&&qUe(t??"")<1){let s=new Error("Trying to inactivate an inactive participant ("+t+")");throw s.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},s}return $t.records.messages.push({from:t,to:e,message:r?.text??"",wrap:r?.wrap??k0(),type:n,activate:i}),!0},"addSignal"),jUe=o(function(){return $t.records.boxes.length>0},"hasAtLeastOneBox"),KUe=o(function(){return $t.records.boxes.some(t=>t.name)},"hasAtLeastOneBoxWithTitle"),QUe=o(function(){return $t.records.messages},"getMessages"),ZUe=o(function(){return $t.records.boxes},"getBoxes"),JUe=o(function(){return $t.records.actors},"getActors"),eHe=o(function(){return $t.records.createdActors},"getCreatedActors"),tHe=o(function(){return $t.records.destroyedActors},"getDestroyedActors"),bx=o(function(t){return $t.records.actors.get(t)},"getActor"),rHe=o(function(){return[...$t.records.actors.keys()]},"getActorKeys"),nHe=o(function(){$t.records.sequenceNumbersEnabled=!0},"enableSequenceNumbers"),iHe=o(function(){$t.records.sequenceNumbersEnabled=!1},"disableSequenceNumbers"),aHe=o(()=>$t.records.sequenceNumbersEnabled,"showSequenceNumbers"),sHe=o(function(t){$t.records.wrapEnabled=t},"setWrap"),Wfe=o(t=>{if(t===void 0)return{};t=t.trim();let e=/^:?wrap:/.exec(t)!==null?!0:/^:?nowrap:/.exec(t)!==null?!1:void 0;return{cleanedText:(e===void 0?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:e}},"extractWrap"),k0=o(()=>$t.records.wrapEnabled!==void 0?$t.records.wrapEnabled:de().sequence?.wrap??!1,"autoWrap"),oHe=o(function(){$t.reset(),_r()},"clear"),lHe=o(function(t){let e=t.trim(),{wrap:r,cleanedText:n}=Wfe(e),i={text:n,wrap:r};return Y.debug(`parseMessage: ${JSON.stringify(i)}`),i},"parseMessage"),cHe=o(function(t){let e=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t),r=e?.[1]?e[1].trim():"transparent",n=e?.[2]?e[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",r)||(r="transparent",n=t.trim());else{let s=new Option().style;s.color=r,s.color!==r&&(r="transparent",n=t.trim())}let{wrap:i,cleanedText:a}=Wfe(n);return{text:a?Tr(a,de()):void 0,color:r,wrap:i}},"parseBoxData"),xx={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34},uHe={FILLED:0,OPEN:1},hHe={LEFTOF:0,RIGHTOF:1,OVER:2},Yfe=o(function(t,e,r){let n={actor:t,placement:e,message:r.text,wrap:r.wrap??k0()},i=[].concat(t,t);$t.records.notes.push(n),$t.records.messages.push({from:i[0],to:i[1],message:r.text,wrap:r.wrap??k0(),type:xx.NOTE,placement:e})},"addNote"),qfe=o(function(t,e){let r=bx(t);try{let n=Tr(e.text,de());n=n.replace(/&/g,"&"),n=n.replace(/=/g,"=");let i=JSON.parse(n);TO(r,i)}catch(n){Y.error("error while parsing actor link text",n)}},"addLinks"),fHe=o(function(t,e){let r=bx(t);try{let n={},i=Tr(e.text,de()),a=i.indexOf("@");i=i.replace(/&/g,"&"),i=i.replace(/=/g,"=");let s=i.slice(0,a-1).trim(),l=i.slice(a+1).trim();n[s]=l,TO(r,n)}catch(n){Y.error("error while parsing actor link text",n)}},"addALink");o(TO,"insertLinks");Xfe=o(function(t,e){let r=bx(t);try{let n=Tr(e.text,de()),i=JSON.parse(n);jfe(r,i)}catch(n){Y.error("error while parsing actor properties text",n)}},"addProperties");o(jfe,"insertProperties");o(dHe,"boxEnd");Kfe=o(function(t,e){let r=bx(t),n=document.getElementById(e.text);try{let i=n.innerHTML,a=JSON.parse(i);a.properties&&jfe(r,a.properties),a.links&&TO(r,a.links)}catch(i){Y.error("error while parsing actor details text",i)}},"addDetails"),pHe=o(function(t,e){if(t?.properties!==void 0)return t.properties[e]},"getActorProperty"),Qfe=o(function(t){if(Array.isArray(t))t.forEach(function(e){Qfe(e)});else switch(t.type){case"sequenceIndex":$t.records.messages.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":wO(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if($t.records.actors.has(t.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");$t.records.lastCreated=t.actor,wO(t.actor,t.actor,t.description,t.draw),$t.records.createdActors.set(t.actor,$t.records.messages.length);break;case"destroyParticipant":$t.records.lastDestroyed=t.actor,$t.records.destroyedActors.set(t.actor,$t.records.messages.length);break;case"activeStart":yi(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":yi(t.actor,void 0,void 0,t.signalType);break;case"addNote":Yfe(t.actor,t.placement,t.text);break;case"addLinks":qfe(t.actor,t.text);break;case"addALink":fHe(t.actor,t.text);break;case"addProperties":Xfe(t.actor,t.text);break;case"addDetails":Kfe(t.actor,t.text);break;case"addMessage":if($t.records.lastCreated){if(t.to!==$t.records.lastCreated)throw new Error("The created participant "+$t.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");$t.records.lastCreated=void 0}else if($t.records.lastDestroyed){if(t.to!==$t.records.lastDestroyed&&t.from!==$t.records.lastDestroyed)throw new Error("The destroyed participant "+$t.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");$t.records.lastDestroyed=void 0}yi(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":YUe(t.boxData);break;case"boxEnd":dHe();break;case"loopStart":yi(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":yi(void 0,void 0,void 0,t.signalType);break;case"rectStart":yi(void 0,void 0,t.color,t.signalType);break;case"rectEnd":yi(void 0,void 0,void 0,t.signalType);break;case"optStart":yi(void 0,void 0,t.optText,t.signalType);break;case"optEnd":yi(void 0,void 0,void 0,t.signalType);break;case"altStart":yi(void 0,void 0,t.altText,t.signalType);break;case"else":yi(void 0,void 0,t.altText,t.signalType);break;case"altEnd":yi(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":Rr(t.text);break;case"parStart":yi(void 0,void 0,t.parText,t.signalType);break;case"and":yi(void 0,void 0,t.parText,t.signalType);break;case"parEnd":yi(void 0,void 0,void 0,t.signalType);break;case"criticalStart":yi(void 0,void 0,t.criticalText,t.signalType);break;case"option":yi(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":yi(void 0,void 0,void 0,t.signalType);break;case"breakStart":yi(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":yi(void 0,void 0,void 0,t.signalType);break}},"apply"),kO={addActor:wO,addMessage:XUe,addSignal:yi,addLinks:qfe,addDetails:Kfe,addProperties:Xfe,autoWrap:k0,setWrap:sHe,enableSequenceNumbers:nHe,disableSequenceNumbers:iHe,showSequenceNumbers:aHe,getMessages:QUe,getActors:JUe,getCreatedActors:eHe,getDestroyedActors:tHe,getActor:bx,getActorKeys:rHe,getActorProperty:pHe,getAccTitle:Pr,getBoxes:ZUe,getDiagramTitle:Jr,setDiagramTitle:ln,getConfig:o(()=>de().sequence,"getConfig"),clear:oHe,parseMessage:lHe,parseBoxData:cHe,LINETYPE:xx,ARROWTYPE:uHe,PLACEMENT:hHe,addNote:Yfe,setAccTitle:Rr,apply:Qfe,setAccDescription:Br,getAccDescription:Fr,hasAtLeastOneBox:jUe,hasAtLeastOneBoxWithTitle:KUe}});var mHe,Jfe,ede=M(()=>{"use strict";mHe=o(t=>`.actor { + stroke: ${t.actorBorder}; + fill: ${t.actorBkg}; + } + + text.actor > tspan { + fill: ${t.actorTextColor}; + stroke: none; + } + + .actor-line { + stroke: ${t.actorLineColor}; + } + + .messageLine0 { + stroke-width: 1.5; + stroke-dasharray: none; + stroke: ${t.signalColor}; + } + + .messageLine1 { + stroke-width: 1.5; + stroke-dasharray: 2, 2; + stroke: ${t.signalColor}; + } + + #arrowhead path { + fill: ${t.signalColor}; + stroke: ${t.signalColor}; + } + + .sequenceNumber { + fill: ${t.sequenceNumberColor}; + } + + #sequencenumber { + fill: ${t.signalColor}; + } + + #crosshead path { + fill: ${t.signalColor}; + stroke: ${t.signalColor}; + } + + .messageText { + fill: ${t.signalTextColor}; + stroke: none; + } + + .labelBox { + stroke: ${t.labelBoxBorderColor}; + fill: ${t.labelBoxBkgColor}; + } + + .labelText, .labelText > tspan { + fill: ${t.labelTextColor}; + stroke: none; + } + + .loopText, .loopText > tspan { + fill: ${t.loopTextColor}; + stroke: none; + } + + .loopLine { + stroke-width: 2px; + stroke-dasharray: 2, 2; + stroke: ${t.labelBoxBorderColor}; + fill: ${t.labelBoxBorderColor}; + } + + .note { + //stroke: #decc93; + stroke: ${t.noteBorderColor}; + fill: ${t.noteBkgColor}; + } + + .noteText, .noteText > tspan { + fill: ${t.noteTextColor}; + stroke: none; + } + + .activation0 { + fill: ${t.activationBkgColor}; + stroke: ${t.activationBorderColor}; + } + + .activation1 { + fill: ${t.activationBkgColor}; + stroke: ${t.activationBorderColor}; + } + + .activation2 { + fill: ${t.activationBkgColor}; + stroke: ${t.activationBorderColor}; + } + + .actorPopupMenu { + position: absolute; + } + + .actorPopupMenuPanel { + position: absolute; + fill: ${t.actorBkg}; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4)); +} + .actor-man line { + stroke: ${t.actorBorder}; + fill: ${t.actorBkg}; + } + .actor-man circle, line { + stroke: ${t.actorBorder}; + fill: ${t.actorBkg}; + stroke-width: 2px; + } +`,"getStyles"),Jfe=mHe});var EO,pf,rde,nde,gHe,tde,SO,yHe,vHe,wx,E0,ide,Fc,CO,xHe,bHe,wHe,THe,kHe,EHe,SHe,ade,CHe,AHe,_He,LHe,DHe,NHe,RHe,sde,MHe,AO,IHe,ui,ode=M(()=>{"use strict";fr();qy();hr();EO=ka(Fp(),1);Ua();pf=18*2,rde="actor-top",nde="actor-bottom",gHe="actor-box",tde="actor-man",SO=o(function(t,e){return md(t,e)},"drawRect"),yHe=o(function(t,e,r,n,i){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};let a=e.links,s=e.actorCnt,l=e.rectData;var u="none";i&&(u="block !important");let h=t.append("g");h.attr("id","actor"+s+"_popup"),h.attr("class","actorPopupMenu"),h.attr("display",u);var f="";l.class!==void 0&&(f=" "+l.class);let d=l.width>r?l.width:r,p=h.append("rect");if(p.attr("class","actorPopupMenuPanel"+f),p.attr("x",l.x),p.attr("y",l.height),p.attr("fill",l.fill),p.attr("stroke",l.stroke),p.attr("width",d),p.attr("height",l.height),p.attr("rx",l.rx),p.attr("ry",l.ry),a!=null){var m=20;for(let v in a){var g=h.append("a"),y=(0,EO.sanitizeUrl)(a[v]);g.attr("xlink:href",y),g.attr("target","_blank"),IHe(n)(v,g,l.x+10,l.height+m,d,20,{class:"actor"},n),m+=30}}return p.attr("height",m),{height:l.height+m,width:d}},"drawPopup"),vHe=o(function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),wx=o(async function(t,e,r=null){let n=t.append("foreignObject"),i=await hh(e.text,Sr()),s=n.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(n.attr("height",Math.round(s.height)).attr("width",Math.round(s.width)),e.class==="noteText"){let l=t.node().firstChild;l.setAttribute("height",s.height+2*e.textMargin);let u=l.getBBox();n.attr("x",Math.round(u.x+u.width/2-s.width/2)).attr("y",Math.round(u.y+u.height/2-s.height/2))}else if(r){let{startx:l,stopx:u,starty:h}=r;if(l>u){let f=l;l=u,u=f}n.attr("x",Math.round(l+Math.abs(l-u)/2-s.width/2)),e.class==="loopText"?n.attr("y",Math.round(h)):n.attr("y",Math.round(h-s.height))}return[n]},"drawKatex"),E0=o(function(t,e){let r=0,n=0,i=e.text.split(je.lineBreakRegex),[a,s]=Fo(e.fontSize),l=[],u=0,h=o(()=>e.y,"yfunc");if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":h=o(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":h=o(()=>Math.round(e.y+(r+n+e.textMargin)/2),"yfunc");break;case"bottom":case"end":h=o(()=>Math.round(e.y+(r+n+2*e.textMargin)-e.textMargin),"yfunc");break}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle";break}for(let[f,d]of i.entries()){e.textMargin!==void 0&&e.textMargin===0&&a!==void 0&&(u=f*a);let p=t.append("text");p.attr("x",e.x),p.attr("y",h()),e.anchor!==void 0&&p.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&p.style("font-family",e.fontFamily),s!==void 0&&p.style("font-size",s),e.fontWeight!==void 0&&p.style("font-weight",e.fontWeight),e.fill!==void 0&&p.attr("fill",e.fill),e.class!==void 0&&p.attr("class",e.class),e.dy!==void 0?p.attr("dy",e.dy):u!==0&&p.attr("dy",u);let m=d||K_;if(e.tspan){let g=p.append("tspan");g.attr("x",e.x),e.fill!==void 0&&g.attr("fill",e.fill),g.text(m)}else p.text(m);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(n+=(p._groups||p)[0][0].getBBox().height,r=n),l.push(p)}return l},"drawText"),ide=o(function(t,e){function r(i,a,s,l,u){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+l-u)+" "+(i+s-u*1.2)+","+(a+l)+" "+i+","+(a+l)}o(r,"genPoints");let n=t.append("polygon");return n.attr("points",r(e.x,e.y,e.width,e.height,7)),n.attr("class","labelBox"),e.y=e.y+e.height/2,E0(t,e),n},"drawLabel"),Fc=-1,CO=o((t,e,r,n)=>{t.select&&r.forEach(i=>{let a=e.get(i),s=t.select("#actor"+a.actorCnt);!n.mirrorActors&&a.stopy?s.attr("y2",a.stopy+a.height/2):n.mirrorActors&&s.attr("y2",a.stopy)})},"fixLifeLineHeights"),xHe=o(function(t,e,r,n){let i=n?e.stopy:e.starty,a=e.x+e.width/2,s=i+e.height,l=t.append("g").lower();var u=l;n||(Fc++,Object.keys(e.links||{}).length&&!r.forceMenus&&u.attr("onclick",vHe(`actor${Fc}_popup`)).attr("cursor","pointer"),u.append("line").attr("id","actor"+Fc).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name),u=l.append("g"),e.actorCnt=Fc,e.links!=null&&u.attr("id","root-"+Fc));let h=Sl();var f="actor";e.properties?.class?f=e.properties.class:h.fill="#eaeaea",n?f+=` ${nde}`:f+=` ${rde}`,h.x=e.x,h.y=i,h.width=e.width,h.height=e.height,h.class=f,h.rx=3,h.ry=3,h.name=e.name;let d=SO(u,h);if(e.rectData=h,e.properties?.icon){let m=e.properties.icon.trim();m.charAt(0)==="@"?RY(u,h.x+h.width-20,h.y+10,m.substr(1)):NY(u,h.x+h.width-20,h.y+10,m)}AO(r,pi(e.description))(e.description,u,h.x,h.y,h.width,h.height,{class:`actor ${gHe}`},r);let p=e.height;if(d.node){let m=d.node().getBBox();e.height=m.height,p=m.height}return p},"drawActorTypeParticipant"),bHe=o(function(t,e,r,n){let i=n?e.stopy:e.starty,a=e.x+e.width/2,s=i+80,l=t.append("g").lower();n||(Fc++,l.append("line").attr("id","actor"+Fc).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name),e.actorCnt=Fc);let u=t.append("g"),h=tde;n?h+=` ${nde}`:h+=` ${rde}`,u.attr("class",h),u.attr("name",e.name);let f=Sl();f.x=e.x,f.y=i,f.fill="#eaeaea",f.width=e.width,f.height=e.height,f.class="actor",f.rx=3,f.ry=3,u.append("line").attr("id","actor-man-torso"+Fc).attr("x1",a).attr("y1",i+25).attr("x2",a).attr("y2",i+45),u.append("line").attr("id","actor-man-arms"+Fc).attr("x1",a-pf/2).attr("y1",i+33).attr("x2",a+pf/2).attr("y2",i+33),u.append("line").attr("x1",a-pf/2).attr("y1",i+60).attr("x2",a).attr("y2",i+45),u.append("line").attr("x1",a).attr("y1",i+45).attr("x2",a+pf/2-2).attr("y2",i+60);let d=u.append("circle");d.attr("cx",e.x+e.width/2),d.attr("cy",i+10),d.attr("r",15),d.attr("width",e.width),d.attr("height",e.height);let p=u.node().getBBox();return e.height=p.height,AO(r,pi(e.description))(e.description,u,f.x,f.y+35,f.width,f.height,{class:`actor ${tde}`},r),e.height},"drawActorTypeActor"),wHe=o(async function(t,e,r,n){switch(e.type){case"actor":return await bHe(t,e,r,n);case"participant":return await xHe(t,e,r,n)}},"drawActor"),THe=o(function(t,e,r){let i=t.append("g");ade(i,e),e.name&&AO(r)(e.name,i,e.x,e.y+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},r),i.lower()},"drawBox"),kHe=o(function(t){return t.append("g")},"anchorElement"),EHe=o(function(t,e,r,n,i){let a=Sl(),s=e.anchored;a.x=e.startx,a.y=e.starty,a.class="activation"+i%3,a.width=e.stopx-e.startx,a.height=r-e.starty,SO(s,a)},"drawActivation"),SHe=o(async function(t,e,r,n){let{boxMargin:i,boxTextMargin:a,labelBoxHeight:s,labelBoxWidth:l,messageFontFamily:u,messageFontSize:h,messageFontWeight:f}=n,d=t.append("g"),p=o(function(y,v,x,b){return d.append("line").attr("x1",y).attr("y1",v).attr("x2",x).attr("y2",b).attr("class","loopLine")},"drawLoopLine");p(e.startx,e.starty,e.stopx,e.starty),p(e.stopx,e.starty,e.stopx,e.stopy),p(e.startx,e.stopy,e.stopx,e.stopy),p(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(y){p(e.startx,y.y,e.stopx,y.y).style("stroke-dasharray","3, 3")});let m=Yy();m.text=r,m.x=e.startx,m.y=e.starty,m.fontFamily=u,m.fontSize=h,m.fontWeight=f,m.anchor="middle",m.valign="middle",m.tspan=!1,m.width=l||50,m.height=s||20,m.textMargin=a,m.class="labelText",ide(d,m),m=sde(),m.text=e.title,m.x=e.startx+l/2+(e.stopx-e.startx)/2,m.y=e.starty+i+a,m.anchor="middle",m.valign="middle",m.textMargin=a,m.class="loopText",m.fontFamily=u,m.fontSize=h,m.fontWeight=f,m.wrap=!0;let g=pi(m.text)?await wx(d,m,e):E0(d,m);if(e.sectionTitles!==void 0){for(let[y,v]of Object.entries(e.sectionTitles))if(v.message){m.text=v.message,m.x=e.startx+(e.stopx-e.startx)/2,m.y=e.sections[y].y+i+a,m.class="loopText",m.anchor="middle",m.valign="middle",m.tspan=!1,m.fontFamily=u,m.fontSize=h,m.fontWeight=f,m.wrap=e.wrap,pi(m.text)?(e.starty=e.sections[y].y,await wx(d,m,e)):E0(d,m);let x=Math.round(g.map(b=>(b._groups||b)[0][0].getBBox().height).reduce((b,w)=>b+w));e.sections[y].height+=x-(i+a)}}return e.height=Math.round(e.stopy-e.starty),d},"drawLoop"),ade=o(function(t,e){Y3(t,e)},"drawBackgroundRect"),CHe=o(function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),AHe=o(function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),_He=o(function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),LHe=o(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),DHe=o(function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),NHe=o(function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),RHe=o(function(t){t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),sde=o(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),MHe=o(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),AO=function(){function t(a,s,l,u,h,f,d){let p=s.append("text").attr("x",l+h/2).attr("y",u+f/2+5).style("text-anchor","middle").text(a);i(p,d)}o(t,"byText");function e(a,s,l,u,h,f,d,p){let{actorFontSize:m,actorFontFamily:g,actorFontWeight:y}=p,[v,x]=Fo(m),b=a.split(je.lineBreakRegex);for(let w=0;w{let s=S0(Le),l=a.actorKeys.reduce((f,d)=>f+=t.get(d).width+(t.get(d).margin||0),0);l-=2*Le.boxTextMargin,a.wrap&&(a.name=Ut.wrapLabel(a.name,l-2*Le.wrapPadding,s));let u=Ut.calculateTextDimensions(a.name,s);i=je.getMax(u.height,i);let h=je.getMax(l,u.width+2*Le.wrapPadding);if(a.margin=Le.boxTextMargin,la.textMaxHeight=i),je.getMax(n,Le.height)}var Le,nt,OHe,S0,Fg,_O,BHe,FHe,LO,cde,ude,TE,lde,GHe,VHe,HHe,WHe,YHe,hde,fde=M(()=>{"use strict";mr();ode();ht();fr();qy();Vt();ip();hr();ni();Le={},nt={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:o(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(t=>t.height||0))+(this.loops.length===0?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.messages.length===0?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.notes.length===0?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},"getHeight"),clear:o(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:o(function(t){this.boxes.push(t)},"addBox"),addActor:o(function(t){this.actors.push(t)},"addActor"),addLoop:o(function(t){this.loops.push(t)},"addLoop"),addMessage:o(function(t){this.messages.push(t)},"addMessage"),addNote:o(function(t){this.notes.push(t)},"addNote"),lastActor:o(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:o(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:o(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:o(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:o(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,ude(de())},"init"),updateVal:o(function(t,e,r,n){t[e]===void 0?t[e]=r:t[e]=n(r,t[e])},"updateVal"),updateBounds:o(function(t,e,r,n){let i=this,a=0;function s(l){return o(function(h){a++;let f=i.sequenceItems.length-a+1;i.updateVal(h,"starty",e-f*Le.boxMargin,Math.min),i.updateVal(h,"stopy",n+f*Le.boxMargin,Math.max),i.updateVal(nt.data,"startx",t-f*Le.boxMargin,Math.min),i.updateVal(nt.data,"stopx",r+f*Le.boxMargin,Math.max),l!=="activation"&&(i.updateVal(h,"startx",t-f*Le.boxMargin,Math.min),i.updateVal(h,"stopx",r+f*Le.boxMargin,Math.max),i.updateVal(nt.data,"starty",e-f*Le.boxMargin,Math.min),i.updateVal(nt.data,"stopy",n+f*Le.boxMargin,Math.max))},"updateItemBounds")}o(s,"updateFn"),this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},"updateBounds"),insert:o(function(t,e,r,n){let i=je.getMin(t,r),a=je.getMax(t,r),s=je.getMin(e,n),l=je.getMax(e,n);this.updateVal(nt.data,"startx",i,Math.min),this.updateVal(nt.data,"starty",s,Math.min),this.updateVal(nt.data,"stopx",a,Math.max),this.updateVal(nt.data,"stopy",l,Math.max),this.updateBounds(i,s,a,l)},"insert"),newActivation:o(function(t,e,r){let n=r.get(t.from),i=TE(t.from).length||0,a=n.x+n.width/2+(i-1)*Le.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+Le.activationWidth,stopy:void 0,actor:t.from,anchored:ui.anchorElement(e)})},"newActivation"),endActivation:o(function(t){let e=this.activations.map(function(r){return r.actor}).lastIndexOf(t.from);return this.activations.splice(e,1)[0]},"endActivation"),createLoop:o(function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},"createLoop"),newLoop:o(function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},"newLoop"),endLoop:o(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:o(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:o(function(t){let e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:nt.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},"addSectionToLoop"),saveVerticalPos:o(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:o(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:o(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=je.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:o(function(){return this.verticalPos},"getVerticalPos"),getBounds:o(function(){return{bounds:this.data,models:this.models}},"getBounds")},OHe=o(async function(t,e){nt.bumpVerticalPos(Le.boxMargin),e.height=Le.boxMargin,e.starty=nt.getVerticalPos();let r=Sl();r.x=e.startx,r.y=e.starty,r.width=e.width||Le.width,r.class="note";let n=t.append("g"),i=ui.drawRect(n,r),a=Yy();a.x=e.startx,a.y=e.starty,a.width=r.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=Le.noteFontFamily,a.fontSize=Le.noteFontSize,a.fontWeight=Le.noteFontWeight,a.anchor=Le.noteAlign,a.textMargin=Le.noteMargin,a.valign="center";let s=pi(a.text)?await wx(n,a):E0(n,a),l=Math.round(s.map(u=>(u._groups||u)[0][0].getBBox().height).reduce((u,h)=>u+h));i.attr("height",l+2*Le.noteMargin),e.height+=l+2*Le.noteMargin,nt.bumpVerticalPos(l+2*Le.noteMargin),e.stopy=e.starty+l+2*Le.noteMargin,e.stopx=e.startx+r.width,nt.insert(e.startx,e.starty,e.stopx,e.stopy),nt.models.addNote(e)},"drawNote"),S0=o(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont"),Fg=o(t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),"noteFont"),_O=o(t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}),"actorFont");o(PHe,"boundMessage");BHe=o(async function(t,e,r,n){let{startx:i,stopx:a,starty:s,message:l,type:u,sequenceIndex:h,sequenceVisible:f}=e,d=Ut.calculateTextDimensions(l,S0(Le)),p=Yy();p.x=i,p.y=s+10,p.width=a-i,p.class="messageText",p.dy="1em",p.text=l,p.fontFamily=Le.messageFontFamily,p.fontSize=Le.messageFontSize,p.fontWeight=Le.messageFontWeight,p.anchor=Le.messageAlign,p.valign="center",p.textMargin=Le.wrapPadding,p.tspan=!1,pi(p.text)?await wx(t,p,{startx:i,stopx:a,starty:r}):E0(t,p);let m=d.width,g;i===a?Le.rightAngles?g=t.append("path").attr("d",`M ${i},${r} H ${i+je.getMax(Le.width/2,m/2)} V ${r+25} H ${i}`):g=t.append("path").attr("d","M "+i+","+r+" C "+(i+60)+","+(r-10)+" "+(i+60)+","+(r+30)+" "+i+","+(r+20)):(g=t.append("line"),g.attr("x1",i),g.attr("y1",r),g.attr("x2",a),g.attr("y2",r)),u===n.db.LINETYPE.DOTTED||u===n.db.LINETYPE.DOTTED_CROSS||u===n.db.LINETYPE.DOTTED_POINT||u===n.db.LINETYPE.DOTTED_OPEN||u===n.db.LINETYPE.BIDIRECTIONAL_DOTTED?(g.style("stroke-dasharray","3, 3"),g.attr("class","messageLine1")):g.attr("class","messageLine0");let y="";Le.arrowMarkerAbsolute&&(y=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,y=y.replace(/\(/g,"\\("),y=y.replace(/\)/g,"\\)")),g.attr("stroke-width",2),g.attr("stroke","none"),g.style("fill","none"),(u===n.db.LINETYPE.SOLID||u===n.db.LINETYPE.DOTTED)&&g.attr("marker-end","url("+y+"#arrowhead)"),(u===n.db.LINETYPE.BIDIRECTIONAL_SOLID||u===n.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(g.attr("marker-start","url("+y+"#arrowhead)"),g.attr("marker-end","url("+y+"#arrowhead)")),(u===n.db.LINETYPE.SOLID_POINT||u===n.db.LINETYPE.DOTTED_POINT)&&g.attr("marker-end","url("+y+"#filled-head)"),(u===n.db.LINETYPE.SOLID_CROSS||u===n.db.LINETYPE.DOTTED_CROSS)&&g.attr("marker-end","url("+y+"#crosshead)"),(f||Le.showSequenceNumbers)&&(g.attr("marker-start","url("+y+"#sequencenumber)"),t.append("text").attr("x",i).attr("y",r+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(h))},"drawMessage"),FHe=o(function(t,e,r,n,i,a,s){let l=0,u=0,h,f=0;for(let d of n){let p=e.get(d),m=p.box;h&&h!=m&&(s||nt.models.addBox(h),u+=Le.boxMargin+h.margin),m&&m!=h&&(s||(m.x=l+u,m.y=i),u+=m.margin),p.width=p.width||Le.width,p.height=je.getMax(p.height||Le.height,Le.height),p.margin=p.margin||Le.actorMargin,f=je.getMax(f,p.height),r.get(p.name)&&(u+=p.width/2),p.x=l+u,p.starty=nt.getVerticalPos(),nt.insert(p.x,i,p.x+p.width,p.height),l+=p.width+u,p.box&&(p.box.width=l+m.margin-p.box.x),u=p.margin,h=p.box,nt.models.addActor(p)}h&&!s&&nt.models.addBox(h),nt.bumpVerticalPos(f)},"addActorRenderingData"),LO=o(async function(t,e,r,n){if(n){let i=0;nt.bumpVerticalPos(Le.boxMargin*2);for(let a of r){let s=e.get(a);s.stopy||(s.stopy=nt.getVerticalPos());let l=await ui.drawActor(t,s,Le,!0);i=je.getMax(i,l)}nt.bumpVerticalPos(i+Le.boxMargin)}else for(let i of r){let a=e.get(i);await ui.drawActor(t,a,Le,!1)}},"drawActors"),cde=o(function(t,e,r,n){let i=0,a=0;for(let s of r){let l=e.get(s),u=VHe(l),h=ui.drawPopup(t,l,u,Le,Le.forceMenus,n);h.height>i&&(i=h.height),h.width+l.x>a&&(a=h.width+l.x)}return{maxHeight:i,maxWidth:a}},"drawActorsPopup"),ude=o(function(t){Gn(Le,t),t.fontFamily&&(Le.actorFontFamily=Le.noteFontFamily=Le.messageFontFamily=t.fontFamily),t.fontSize&&(Le.actorFontSize=Le.noteFontSize=Le.messageFontSize=t.fontSize),t.fontWeight&&(Le.actorFontWeight=Le.noteFontWeight=Le.messageFontWeight=t.fontWeight)},"setConf"),TE=o(function(t){return nt.activations.filter(function(e){return e.actor===t})},"actorActivations"),lde=o(function(t,e){let r=e.get(t),n=TE(t),i=n.reduce(function(s,l){return je.getMin(s,l.startx)},r.x+r.width/2-1),a=n.reduce(function(s,l){return je.getMax(s,l.stopx)},r.x+r.width/2+1);return[i,a]},"activationBounds");o(zc,"adjustLoopHeightForWrap");o(zHe,"adjustCreatedDestroyedData");GHe=o(async function(t,e,r,n){let{securityLevel:i,sequence:a}=de();Le=a;let s;i==="sandbox"&&(s=ze("#i"+e));let l=i==="sandbox"?ze(s.nodes()[0].contentDocument.body):ze("body"),u=i==="sandbox"?s.nodes()[0].contentDocument:document;nt.init(),Y.debug(n.db);let h=i==="sandbox"?l.select(`[id="${e}"]`):ze(`[id="${e}"]`),f=n.db.getActors(),d=n.db.getCreatedActors(),p=n.db.getDestroyedActors(),m=n.db.getBoxes(),g=n.db.getActorKeys(),y=n.db.getMessages(),v=n.db.getDiagramTitle(),x=n.db.hasAtLeastOneBox(),b=n.db.hasAtLeastOneBoxWithTitle(),w=await $He(f,y,n);if(Le.height=await UHe(f,w,m),ui.insertComputerIcon(h),ui.insertDatabaseIcon(h),ui.insertClockIcon(h),x&&(nt.bumpVerticalPos(Le.boxMargin),b&&nt.bumpVerticalPos(m[0].textMaxHeight)),Le.hideUnusedParticipants===!0){let F=new Set;y.forEach(B=>{F.add(B.from),F.add(B.to)}),g=g.filter(B=>F.has(B))}FHe(h,f,d,g,0,y,!1);let _=await YHe(y,f,w,n);ui.insertArrowHead(h),ui.insertArrowCrossHead(h),ui.insertArrowFilledHead(h),ui.insertSequenceNumber(h);function T(F,B){let $=nt.endActivation(F);$.starty+18>B&&($.starty=B-6,B+=12),ui.drawActivation(h,$,B,Le,TE(F.from).length),nt.insert($.startx,B-10,$.stopx,B)}o(T,"activeEnd");let E=1,L=1,C=[],A=[],I=0;for(let F of y){let B,$,z;switch(F.type){case n.db.LINETYPE.NOTE:nt.resetVerticalPos(),$=F.noteModel,await OHe(h,$);break;case n.db.LINETYPE.ACTIVE_START:nt.newActivation(F,h,f);break;case n.db.LINETYPE.ACTIVE_END:T(F,nt.getVerticalPos());break;case n.db.LINETYPE.LOOP_START:zc(_,F,Le.boxMargin,Le.boxMargin+Le.boxTextMargin,W=>nt.newLoop(W));break;case n.db.LINETYPE.LOOP_END:B=nt.endLoop(),await ui.drawLoop(h,B,"loop",Le),nt.bumpVerticalPos(B.stopy-nt.getVerticalPos()),nt.models.addLoop(B);break;case n.db.LINETYPE.RECT_START:zc(_,F,Le.boxMargin,Le.boxMargin,W=>nt.newLoop(void 0,W.message));break;case n.db.LINETYPE.RECT_END:B=nt.endLoop(),A.push(B),nt.models.addLoop(B),nt.bumpVerticalPos(B.stopy-nt.getVerticalPos());break;case n.db.LINETYPE.OPT_START:zc(_,F,Le.boxMargin,Le.boxMargin+Le.boxTextMargin,W=>nt.newLoop(W));break;case n.db.LINETYPE.OPT_END:B=nt.endLoop(),await ui.drawLoop(h,B,"opt",Le),nt.bumpVerticalPos(B.stopy-nt.getVerticalPos()),nt.models.addLoop(B);break;case n.db.LINETYPE.ALT_START:zc(_,F,Le.boxMargin,Le.boxMargin+Le.boxTextMargin,W=>nt.newLoop(W));break;case n.db.LINETYPE.ALT_ELSE:zc(_,F,Le.boxMargin+Le.boxTextMargin,Le.boxMargin,W=>nt.addSectionToLoop(W));break;case n.db.LINETYPE.ALT_END:B=nt.endLoop(),await ui.drawLoop(h,B,"alt",Le),nt.bumpVerticalPos(B.stopy-nt.getVerticalPos()),nt.models.addLoop(B);break;case n.db.LINETYPE.PAR_START:case n.db.LINETYPE.PAR_OVER_START:zc(_,F,Le.boxMargin,Le.boxMargin+Le.boxTextMargin,W=>nt.newLoop(W)),nt.saveVerticalPos();break;case n.db.LINETYPE.PAR_AND:zc(_,F,Le.boxMargin+Le.boxTextMargin,Le.boxMargin,W=>nt.addSectionToLoop(W));break;case n.db.LINETYPE.PAR_END:B=nt.endLoop(),await ui.drawLoop(h,B,"par",Le),nt.bumpVerticalPos(B.stopy-nt.getVerticalPos()),nt.models.addLoop(B);break;case n.db.LINETYPE.AUTONUMBER:E=F.message.start||E,L=F.message.step||L,F.message.visible?n.db.enableSequenceNumbers():n.db.disableSequenceNumbers();break;case n.db.LINETYPE.CRITICAL_START:zc(_,F,Le.boxMargin,Le.boxMargin+Le.boxTextMargin,W=>nt.newLoop(W));break;case n.db.LINETYPE.CRITICAL_OPTION:zc(_,F,Le.boxMargin+Le.boxTextMargin,Le.boxMargin,W=>nt.addSectionToLoop(W));break;case n.db.LINETYPE.CRITICAL_END:B=nt.endLoop(),await ui.drawLoop(h,B,"critical",Le),nt.bumpVerticalPos(B.stopy-nt.getVerticalPos()),nt.models.addLoop(B);break;case n.db.LINETYPE.BREAK_START:zc(_,F,Le.boxMargin,Le.boxMargin+Le.boxTextMargin,W=>nt.newLoop(W));break;case n.db.LINETYPE.BREAK_END:B=nt.endLoop(),await ui.drawLoop(h,B,"break",Le),nt.bumpVerticalPos(B.stopy-nt.getVerticalPos()),nt.models.addLoop(B);break;default:try{z=F.msgModel,z.starty=nt.getVerticalPos(),z.sequenceIndex=E,z.sequenceVisible=n.db.showSequenceNumbers();let W=await PHe(h,z);zHe(F,z,W,I,f,d,p),C.push({messageModel:z,lineStartY:W}),nt.models.addMessage(z)}catch(W){Y.error("error while drawing message",W)}}[n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT,n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(F.type)&&(E=E+L),I++}Y.debug("createdActors",d),Y.debug("destroyedActors",p),await LO(h,f,g,!1);for(let F of C)await BHe(h,F.messageModel,F.lineStartY,n);Le.mirrorActors&&await LO(h,f,g,!0),A.forEach(F=>ui.drawBackgroundRect(h,F)),CO(h,f,g,Le);for(let F of nt.models.boxes)F.height=nt.getVerticalPos()-F.y,nt.insert(F.x,F.y,F.x+F.width,F.height),F.startx=F.x,F.starty=F.y,F.stopx=F.startx+F.width,F.stopy=F.starty+F.height,F.stroke="rgb(0,0,0, 0.5)",ui.drawBox(h,F,Le);x&&nt.bumpVerticalPos(Le.boxMargin);let D=cde(h,f,g,u),{bounds:k}=nt.getBounds();k.startx===void 0&&(k.startx=0),k.starty===void 0&&(k.starty=0),k.stopx===void 0&&(k.stopx=0),k.stopy===void 0&&(k.stopy=0);let R=k.stopy-k.starty;R2,d=o(y=>l?-y:y,"adjustValue");t.from===t.to?h=u:(t.activate&&!f&&(h+=d(Le.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN].includes(t.type)||(h+=d(3)),[r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type)&&(u-=d(3)));let p=[n,i,a,s],m=Math.abs(u-h);t.wrap&&t.message&&(t.message=Ut.wrapLabel(t.message,je.getMax(m+2*Le.wrapPadding,Le.width),S0(Le)));let g=Ut.calculateTextDimensions(t.message,S0(Le));return{width:je.getMax(t.wrap?0:g.width+2*Le.wrapPadding,m+2*Le.wrapPadding,Le.width),height:0,startx:u,stopx:h,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,p),toBounds:Math.max.apply(null,p)}},"buildMessageModel"),YHe=o(async function(t,e,r,n){let i={},a=[],s,l,u;for(let h of t){switch(h.id=Ut.random({length:10}),h.type){case n.db.LINETYPE.LOOP_START:case n.db.LINETYPE.ALT_START:case n.db.LINETYPE.OPT_START:case n.db.LINETYPE.PAR_START:case n.db.LINETYPE.PAR_OVER_START:case n.db.LINETYPE.CRITICAL_START:case n.db.LINETYPE.BREAK_START:a.push({id:h.id,msg:h.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case n.db.LINETYPE.ALT_ELSE:case n.db.LINETYPE.PAR_AND:case n.db.LINETYPE.CRITICAL_OPTION:h.message&&(s=a.pop(),i[s.id]=s,i[h.id]=s,a.push(s));break;case n.db.LINETYPE.LOOP_END:case n.db.LINETYPE.ALT_END:case n.db.LINETYPE.OPT_END:case n.db.LINETYPE.PAR_END:case n.db.LINETYPE.CRITICAL_END:case n.db.LINETYPE.BREAK_END:s=a.pop(),i[s.id]=s;break;case n.db.LINETYPE.ACTIVE_START:{let d=e.get(h.from?h.from:h.to.actor),p=TE(h.from?h.from:h.to.actor).length,m=d.x+d.width/2+(p-1)*Le.activationWidth/2,g={startx:m,stopx:m+Le.activationWidth,actor:h.from,enabled:!0};nt.activations.push(g)}break;case n.db.LINETYPE.ACTIVE_END:{let d=nt.activations.map(p=>p.actor).lastIndexOf(h.from);nt.activations.splice(d,1).splice(0,1)}break}h.placement!==void 0?(l=await HHe(h,e,n),h.noteModel=l,a.forEach(d=>{s=d,s.from=je.getMin(s.from,l.startx),s.to=je.getMax(s.to,l.startx+l.width),s.width=je.getMax(s.width,Math.abs(s.from-s.to))-Le.labelBoxWidth})):(u=WHe(h,e,n),h.msgModel=u,u.startx&&u.stopx&&a.length>0&&a.forEach(d=>{if(s=d,u.startx===u.stopx){let p=e.get(h.from),m=e.get(h.to);s.from=je.getMin(p.x-u.width/2,p.x-p.width/2,s.from),s.to=je.getMax(m.x+u.width/2,m.x+p.width/2,s.to),s.width=je.getMax(s.width,Math.abs(s.to-s.from))-Le.labelBoxWidth}else s.from=je.getMin(u.startx,s.from),s.to=je.getMax(u.stopx,s.to),s.width=je.getMax(s.width,u.width)-Le.labelBoxWidth}))}return nt.activations=[],Y.debug("Loop type widths:",i),i},"calculateLoopBounds"),hde={bounds:nt,drawActors:LO,drawActorsPopup:cde,setConf:ude,draw:GHe}});var dde={};vr(dde,{diagram:()=>qHe});var qHe,pde=M(()=>{"use strict";Hfe();Zfe();ede();fde();qHe={parser:Ufe,db:kO,renderer:hde,styles:Jfe,init:o(({wrap:t})=>{kO.setWrap(t)},"init")}});var DO,kE,NO=M(()=>{"use strict";DO=function(){var t=o(function(X,fe,he,ge){for(he=he||{},ge=X.length;ge--;he[X[ge]]=fe);return he},"o"),e=[1,18],r=[1,19],n=[1,20],i=[1,41],a=[1,42],s=[1,26],l=[1,24],u=[1,25],h=[1,32],f=[1,33],d=[1,34],p=[1,45],m=[1,35],g=[1,36],y=[1,37],v=[1,38],x=[1,27],b=[1,28],w=[1,29],_=[1,30],T=[1,31],E=[1,44],L=[1,46],C=[1,43],A=[1,47],I=[1,9],D=[1,8,9],k=[1,58],R=[1,59],S=[1,60],O=[1,61],N=[1,62],P=[1,63],F=[1,64],B=[1,8,9,41],$=[1,76],z=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],W=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],j=[13,58,84,99,101,102],K=[13,58,71,72,84,99,101,102],ie=[13,58,66,67,68,69,70,84,99,101,102],Q=[1,98],ee=[1,115],J=[1,107],H=[1,113],q=[1,108],Z=[1,109],ae=[1,110],ue=[1,111],ce=[1,112],te=[1,114],De=[22,58,59,80,84,85,86,87,88,89],oe=[1,8,9,39,41,44],ke=[1,8,9,22],Fe=[1,143],Be=[1,8,9,59],Ve=[1,8,9,22,58,59,80,84,85,86,87,88,89],Ge={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:o(function(fe,he,ge,ne,ye,U,Te){var se=U.length-1;switch(ye){case 8:this.$=U[se-1];break;case 9:case 12:case 14:this.$=U[se];break;case 10:case 13:this.$=U[se-2]+"."+U[se];break;case 11:case 15:this.$=U[se-1]+U[se];break;case 16:case 17:this.$=U[se-1]+"~"+U[se]+"~";break;case 18:ne.addRelation(U[se]);break;case 19:U[se-1].title=ne.cleanupLabel(U[se]),ne.addRelation(U[se-1]);break;case 30:this.$=U[se].trim(),ne.setAccTitle(this.$);break;case 31:case 32:this.$=U[se].trim(),ne.setAccDescription(this.$);break;case 33:ne.addClassesToNamespace(U[se-3],U[se-1]);break;case 34:ne.addClassesToNamespace(U[se-4],U[se-1]);break;case 35:this.$=U[se],ne.addNamespace(U[se]);break;case 36:this.$=[U[se]];break;case 37:this.$=[U[se-1]];break;case 38:U[se].unshift(U[se-2]),this.$=U[se];break;case 40:ne.setCssClass(U[se-2],U[se]);break;case 41:ne.addMembers(U[se-3],U[se-1]);break;case 42:ne.setCssClass(U[se-5],U[se-3]),ne.addMembers(U[se-5],U[se-1]);break;case 43:this.$=U[se],ne.addClass(U[se]);break;case 44:this.$=U[se-1],ne.addClass(U[se-1]),ne.setClassLabel(U[se-1],U[se]);break;case 45:ne.addAnnotation(U[se],U[se-2]);break;case 46:case 59:this.$=[U[se]];break;case 47:U[se].push(U[se-1]),this.$=U[se];break;case 48:break;case 49:ne.addMember(U[se-1],ne.cleanupLabel(U[se]));break;case 50:break;case 51:break;case 52:this.$={id1:U[se-2],id2:U[se],relation:U[se-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:U[se-3],id2:U[se],relation:U[se-1],relationTitle1:U[se-2],relationTitle2:"none"};break;case 54:this.$={id1:U[se-3],id2:U[se],relation:U[se-2],relationTitle1:"none",relationTitle2:U[se-1]};break;case 55:this.$={id1:U[se-4],id2:U[se],relation:U[se-2],relationTitle1:U[se-3],relationTitle2:U[se-1]};break;case 56:ne.addNote(U[se],U[se-1]);break;case 57:ne.addNote(U[se]);break;case 58:this.$=U[se-2],ne.defineClass(U[se-1],U[se]);break;case 60:this.$=U[se-2].concat([U[se]]);break;case 61:ne.setDirection("TB");break;case 62:ne.setDirection("BT");break;case 63:ne.setDirection("RL");break;case 64:ne.setDirection("LR");break;case 65:this.$={type1:U[se-2],type2:U[se],lineType:U[se-1]};break;case 66:this.$={type1:"none",type2:U[se],lineType:U[se-1]};break;case 67:this.$={type1:U[se-1],type2:"none",lineType:U[se]};break;case 68:this.$={type1:"none",type2:"none",lineType:U[se]};break;case 69:this.$=ne.relationType.AGGREGATION;break;case 70:this.$=ne.relationType.EXTENSION;break;case 71:this.$=ne.relationType.COMPOSITION;break;case 72:this.$=ne.relationType.DEPENDENCY;break;case 73:this.$=ne.relationType.LOLLIPOP;break;case 74:this.$=ne.lineType.LINE;break;case 75:this.$=ne.lineType.DOTTED_LINE;break;case 76:case 82:this.$=U[se-2],ne.setClickEvent(U[se-1],U[se]);break;case 77:case 83:this.$=U[se-3],ne.setClickEvent(U[se-2],U[se-1]),ne.setTooltip(U[se-2],U[se]);break;case 78:this.$=U[se-2],ne.setLink(U[se-1],U[se]);break;case 79:this.$=U[se-3],ne.setLink(U[se-2],U[se-1],U[se]);break;case 80:this.$=U[se-3],ne.setLink(U[se-2],U[se-1]),ne.setTooltip(U[se-2],U[se]);break;case 81:this.$=U[se-4],ne.setLink(U[se-3],U[se-2],U[se]),ne.setTooltip(U[se-3],U[se-1]);break;case 84:this.$=U[se-3],ne.setClickEvent(U[se-2],U[se-1],U[se]);break;case 85:this.$=U[se-4],ne.setClickEvent(U[se-3],U[se-2],U[se-1]),ne.setTooltip(U[se-3],U[se]);break;case 86:this.$=U[se-3],ne.setLink(U[se-2],U[se]);break;case 87:this.$=U[se-4],ne.setLink(U[se-3],U[se-1],U[se]);break;case 88:this.$=U[se-4],ne.setLink(U[se-3],U[se-1]),ne.setTooltip(U[se-3],U[se]);break;case 89:this.$=U[se-5],ne.setLink(U[se-4],U[se-2],U[se]),ne.setTooltip(U[se-4],U[se-1]);break;case 90:this.$=U[se-2],ne.setCssStyle(U[se-1],U[se]);break;case 91:ne.setCssClass(U[se-1],U[se]);break;case 92:this.$=[U[se]];break;case 93:U[se-2].push(U[se]),this.$=U[se-2];break;case 95:this.$=U[se-1]+U[se];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:r,37:n,38:22,42:i,43:23,46:a,47:s,49:l,50:u,52:h,54:f,55:d,58:p,60:m,61:g,62:y,63:v,73:x,74:b,76:w,80:_,81:T,84:E,99:L,101:C,102:A},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(I,[2,5],{8:[1,48]}),{8:[1,49]},t(D,[2,18],{22:[1,50]}),t(D,[2,20]),t(D,[2,21]),t(D,[2,22]),t(D,[2,23]),t(D,[2,24]),t(D,[2,25]),t(D,[2,26]),t(D,[2,27]),t(D,[2,28]),t(D,[2,29]),{34:[1,51]},{36:[1,52]},t(D,[2,32]),t(D,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:k,67:R,68:S,69:O,70:N,71:P,72:F}),{39:[1,65]},t(B,[2,39],{39:[1,67],44:[1,66]}),t(D,[2,50]),t(D,[2,51]),{16:68,58:p,84:E,99:L,101:C},{16:39,18:69,19:40,58:p,84:E,99:L,101:C,102:A},{16:39,18:70,19:40,58:p,84:E,99:L,101:C,102:A},{16:39,18:71,19:40,58:p,84:E,99:L,101:C,102:A},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:p,84:E,99:L,101:C,102:A},{13:$,53:75},{56:77,58:[1,78]},t(D,[2,61]),t(D,[2,62]),t(D,[2,63]),t(D,[2,64]),t(z,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:p,84:E,99:L,101:C,102:A}),t(z,[2,14],{20:[1,82]}),{15:83,16:84,58:p,84:E,99:L,101:C},{16:39,18:85,19:40,58:p,84:E,99:L,101:C,102:A},t(W,[2,118]),t(W,[2,119]),t(W,[2,120]),t(W,[2,121]),t([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),t(I,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:e,35:r,37:n,42:i,46:a,47:s,49:l,50:u,52:h,54:f,55:d,58:p,60:m,61:g,62:y,63:v,73:x,74:b,76:w,80:_,81:T,84:E,99:L,101:C,102:A}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:r,37:n,38:22,42:i,43:23,46:a,47:s,49:l,50:u,52:h,54:f,55:d,58:p,60:m,61:g,62:y,63:v,73:x,74:b,76:w,80:_,81:T,84:E,99:L,101:C,102:A},t(D,[2,19]),t(D,[2,30]),t(D,[2,31]),{13:[1,89],16:39,18:88,19:40,58:p,84:E,99:L,101:C,102:A},{51:90,64:56,65:57,66:k,67:R,68:S,69:O,70:N,71:P,72:F},t(D,[2,49]),{65:91,71:P,72:F},t(j,[2,68],{64:92,66:k,67:R,68:S,69:O,70:N}),t(K,[2,69]),t(K,[2,70]),t(K,[2,71]),t(K,[2,72]),t(K,[2,73]),t(ie,[2,74]),t(ie,[2,75]),{8:[1,94],24:95,40:93,43:23,46:a},{16:96,58:p,84:E,99:L,101:C},{45:97,49:Q},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:ee,57:104,58:J,80:H,82:105,83:106,84:q,85:Z,86:ae,87:ue,88:ce,89:te},{58:[1,116]},{13:$,53:117},t(D,[2,57]),t(D,[2,123]),{22:ee,57:118,58:J,59:[1,119],80:H,82:105,83:106,84:q,85:Z,86:ae,87:ue,88:ce,89:te},t(De,[2,59]),{16:39,18:120,19:40,58:p,84:E,99:L,101:C,102:A},t(z,[2,15]),t(z,[2,16]),t(z,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:p,84:E,99:L,101:C},t(oe,[2,43],{11:123,12:[1,124]}),t(I,[2,7]),{9:[1,125]},t(ke,[2,52]),{16:39,18:126,19:40,58:p,84:E,99:L,101:C,102:A},{13:[1,128],16:39,18:127,19:40,58:p,84:E,99:L,101:C,102:A},t(j,[2,67],{64:129,66:k,67:R,68:S,69:O,70:N}),t(j,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:a},{8:[1,132],41:[2,36]},t(B,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:Q},{16:39,18:136,19:40,58:p,84:E,99:L,101:C,102:A},t(D,[2,76],{13:[1,137]}),t(D,[2,78],{13:[1,139],75:[1,138]}),t(D,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},t(D,[2,90],{59:Fe}),t(Be,[2,92],{83:144,22:ee,58:J,80:H,84:q,85:Z,86:ae,87:ue,88:ce,89:te}),t(Ve,[2,94]),t(Ve,[2,96]),t(Ve,[2,97]),t(Ve,[2,98]),t(Ve,[2,99]),t(Ve,[2,100]),t(Ve,[2,101]),t(Ve,[2,102]),t(Ve,[2,103]),t(Ve,[2,104]),t(D,[2,91]),t(D,[2,56]),t(D,[2,58],{59:Fe}),{58:[1,145]},t(z,[2,13]),{15:146,16:84,58:p,84:E,99:L,101:C},{39:[2,11]},t(oe,[2,44]),{13:[1,147]},{1:[2,4]},t(ke,[2,54]),t(ke,[2,53]),{16:39,18:148,19:40,58:p,84:E,99:L,101:C,102:A},t(j,[2,65]),t(D,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:a},{45:151,49:Q},t(B,[2,41]),{41:[2,47]},t(D,[2,45]),t(D,[2,77]),t(D,[2,79]),t(D,[2,80],{75:[1,152]}),t(D,[2,83]),t(D,[2,84],{13:[1,153]}),t(D,[2,86],{13:[1,155],75:[1,154]}),{22:ee,58:J,80:H,82:156,83:106,84:q,85:Z,86:ae,87:ue,88:ce,89:te},t(Ve,[2,95]),t(De,[2,60]),{39:[2,10]},{14:[1,157]},t(ke,[2,55]),t(D,[2,34]),{41:[2,38]},{41:[1,158]},t(D,[2,81]),t(D,[2,85]),t(D,[2,87]),t(D,[2,88],{75:[1,159]}),t(Be,[2,93],{83:144,22:ee,58:J,80:H,84:q,85:Z,86:ae,87:ue,88:ce,89:te}),t(oe,[2,8]),t(B,[2,42]),t(D,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:o(function(fe,he){if(he.recoverable)this.trace(fe);else{var ge=new Error(fe);throw ge.hash=he,ge}},"parseError"),parse:o(function(fe){var he=this,ge=[0],ne=[],ye=[null],U=[],Te=this.table,se="",Ee=0,Ae=0,Pe=0,Me=2,me=1,We=U.slice.call(arguments,1),Re=Object.create(this.lexer),tt={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(tt.yy[gt]=this.yy[gt]);Re.setInput(fe,tt.yy),tt.yy.lexer=Re,tt.yy.parser=this,typeof Re.yylloc>"u"&&(Re.yylloc={});var Et=Re.yylloc;U.push(Et);var vt=Re.options&&Re.options.ranges;typeof tt.yy.parseError=="function"?this.parseError=tt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ye(or){ge.length=ge.length-2*or,ye.length=ye.length-or,U.length=U.length-or}o(Ye,"popStack");function Tt(){var or;return or=ne.pop()||Re.lex()||me,typeof or!="number"&&(or instanceof Array&&(ne=or,or=ne.pop()),or=he.symbols_[or]||or),or}o(Tt,"lex");for(var $e,rt,ft,kt,er,dt,Xe={},ct,Lt,Rt,zt;;){if(ft=ge[ge.length-1],this.defaultActions[ft]?kt=this.defaultActions[ft]:(($e===null||typeof $e>"u")&&($e=Tt()),kt=Te[ft]&&Te[ft][$e]),typeof kt>"u"||!kt.length||!kt[0]){var Xn="";zt=[];for(ct in Te[ft])this.terminals_[ct]&&ct>Me&&zt.push("'"+this.terminals_[ct]+"'");Re.showPosition?Xn="Parse error on line "+(Ee+1)+`: +`+Re.showPosition()+` +Expecting `+zt.join(", ")+", got '"+(this.terminals_[$e]||$e)+"'":Xn="Parse error on line "+(Ee+1)+": Unexpected "+($e==me?"end of input":"'"+(this.terminals_[$e]||$e)+"'"),this.parseError(Xn,{text:Re.match,token:this.terminals_[$e]||$e,line:Re.yylineno,loc:Et,expected:zt})}if(kt[0]instanceof Array&&kt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ft+", token: "+$e);switch(kt[0]){case 1:ge.push($e),ye.push(Re.yytext),U.push(Re.yylloc),ge.push(kt[1]),$e=null,rt?($e=rt,rt=null):(Ae=Re.yyleng,se=Re.yytext,Ee=Re.yylineno,Et=Re.yylloc,Pe>0&&Pe--);break;case 2:if(Lt=this.productions_[kt[1]][1],Xe.$=ye[ye.length-Lt],Xe._$={first_line:U[U.length-(Lt||1)].first_line,last_line:U[U.length-1].last_line,first_column:U[U.length-(Lt||1)].first_column,last_column:U[U.length-1].last_column},vt&&(Xe._$.range=[U[U.length-(Lt||1)].range[0],U[U.length-1].range[1]]),dt=this.performAction.apply(Xe,[se,Ae,Ee,tt.yy,kt[1],ye,U].concat(We)),typeof dt<"u")return dt;Lt&&(ge=ge.slice(0,-1*Lt*2),ye=ye.slice(0,-1*Lt),U=U.slice(0,-1*Lt)),ge.push(this.productions_[kt[1]][0]),ye.push(Xe.$),U.push(Xe._$),Rt=Te[ge[ge.length-2]][ge[ge.length-1]],ge.push(Rt);break;case 3:return!0}}return!0},"parse")},He=function(){var X={EOF:1,parseError:o(function(he,ge){if(this.yy.parser)this.yy.parser.parseError(he,ge);else throw new Error(he)},"parseError"),setInput:o(function(fe,he){return this.yy=he||this.yy||{},this._input=fe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var fe=this._input[0];this.yytext+=fe,this.yyleng++,this.offset++,this.match+=fe,this.matched+=fe;var he=fe.match(/(?:\r\n?|\n).*/g);return he?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),fe},"input"),unput:o(function(fe){var he=fe.length,ge=fe.split(/(?:\r\n?|\n)/g);this._input=fe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var ne=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ge.length-1&&(this.yylineno-=ge.length-1);var ye=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ge?(ge.length===ne.length?this.yylloc.first_column:0)+ne[ne.length-ge.length].length-ge[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[ye[0],ye[0]+this.yyleng-he]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(fe){this.unput(this.match.slice(fe))},"less"),pastInput:o(function(){var fe=this.matched.substr(0,this.matched.length-this.match.length);return(fe.length>20?"...":"")+fe.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var fe=this.match;return fe.length<20&&(fe+=this._input.substr(0,20-fe.length)),(fe.substr(0,20)+(fe.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var fe=this.pastInput(),he=new Array(fe.length+1).join("-");return fe+this.upcomingInput()+` +`+he+"^"},"showPosition"),test_match:o(function(fe,he){var ge,ne,ye;if(this.options.backtrack_lexer&&(ye={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ye.yylloc.range=this.yylloc.range.slice(0))),ne=fe[0].match(/(?:\r\n?|\n).*/g),ne&&(this.yylineno+=ne.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ne?ne[ne.length-1].length-ne[ne.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+fe[0].length},this.yytext+=fe[0],this.match+=fe[0],this.matches=fe,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(fe[0].length),this.matched+=fe[0],ge=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ge)return ge;if(this._backtrack){for(var U in ye)this[U]=ye[U];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var fe,he,ge,ne;this._more||(this.yytext="",this.match="");for(var ye=this._currentRules(),U=0;Uhe[0].length)){if(he=ge,ne=U,this.options.backtrack_lexer){if(fe=this.test_match(ge,ye[U]),fe!==!1)return fe;if(this._backtrack){he=!1;continue}else return!1}else if(!this.options.flex)break}return he?(fe=this.test_match(he,ye[ne]),fe!==!1?fe:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var he=this.next();return he||this.lex()},"lex"),begin:o(function(he){this.conditionStack.push(he)},"begin"),popState:o(function(){var he=this.conditionStack.length-1;return he>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(he){return he=this.conditionStack.length-1-Math.abs(he||0),he>=0?this.conditionStack[he]:"INITIAL"},"topState"),pushState:o(function(he){this.begin(he)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(he,ge,ne,ye){var U=ye;switch(ne){case 0:return 60;case 1:return 61;case 2:return 62;case 3:return 63;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 77;case 22:this.popState();break;case 23:return 78;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 80;case 28:return 55;case 29:return this.begin("namespace"),42;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:return this.popState(),41;break;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),46;break;case 39:return this.popState(),8;break;case 40:break;case 41:return this.popState(),this.popState(),41;break;case 42:return this.begin("class-body"),39;break;case 43:return this.popState(),41;break;case 44:return"EOF_IN_STRUCT";case 45:return"EDGE_STATE";case 46:return"OPEN_IN_STRUCT";case 47:break;case 48:return"MEMBER";case 49:return 81;case 50:return 73;case 51:return 74;case 52:return 76;case 53:return 52;case 54:return 54;case 55:return 47;case 56:return 48;case 57:return 79;case 58:this.popState();break;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:return 75;case 65:return 75;case 66:return 75;case 67:return 75;case 68:return 67;case 69:return 67;case 70:return 69;case 71:return 69;case 72:return 68;case 73:return 66;case 74:return 70;case 75:return 71;case 76:return 72;case 77:return 22;case 78:return 44;case 79:return 99;case 80:return 17;case 81:return"PLUS";case 82:return 85;case 83:return 59;case 84:return 88;case 85:return 88;case 86:return 89;case 87:return"EQUALS";case 88:return"EQUALS";case 89:return 58;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 84;case 94:return 101;case 95:return 87;case 96:return 87;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}};return X}();Ge.lexer=He;function xe(){this.yy={}}return o(xe,"Parser"),xe.prototype=Ge,Ge.Parser=xe,new xe}();DO.parser=DO;kE=DO});var yde,Tx,vde=M(()=>{"use strict";Vt();fr();yde=["#","+","~","-",""],Tx=class{static{o(this,"ClassMember")}constructor(e,r){this.memberType=r,this.visibility="",this.classifier="",this.text="";let n=Tr(e,de());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+ou(this.id);this.memberType==="method"&&(e+=`(${ou(this.parameters.trim())})`,this.returnType&&(e+=" : "+ou(this.returnType))),e=e.trim();let r=this.parseClassifier();return{displayText:e,cssStyle:r}}parseMember(e){let r="";if(this.memberType==="method"){let a=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(a){let s=a[1]?a[1].trim():"";if(yde.includes(s)&&(this.visibility=s),this.id=a[2],this.parameters=a[3]?a[3].trim():"",r=a[4]?a[4].trim():"",this.returnType=a[5]?a[5].trim():"",r===""){let l=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(l)&&(r=l,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let i=e.length,a=e.substring(0,1),s=e.substring(i-1);yde.includes(a)&&(this.visibility=a),/[$*]/.exec(s)&&(r=s),this.id=e.substring(this.visibility===""?0:1,r===""?i:i-1)}this.classifier=r,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let n=`${this.visibility?"\\"+this.visibility:""}${ou(this.id)}${this.memberType==="method"?`(${ou(this.parameters)})${this.returnType?" : "+ou(this.returnType):""}`:""}`;this.text=n.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}});function Tde(t){let e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}var EE,SE,Ln,xde,kx,Gg,bde,$l,RO,Ex,C0,A0,QHe,zg,wde,kde,ZHe,JHe,eWe,tWe,rWe,nWe,iWe,Ede,aWe,sWe,oWe,MO,lWe,cWe,uWe,hWe,fWe,dWe,pWe,mWe,mf,Sde,IO,Cde,gWe,yWe,vWe,xWe,bWe,wWe,TWe,$g,OO=M(()=>{"use strict";mr();ht();Vt();fr();hr();ki();vde();EE="classId-",SE=[],Ln=new Map,xde=new Map,kx=[],Gg=[],bde=0,$l=new Map,RO=0,Ex=[],C0=o(t=>je.sanitizeText(t,de()),"sanitizeText"),A0=o(function(t){let e=je.sanitizeText(t,de()),r="",n=e;if(e.indexOf("~")>0){let i=e.split("~");n=C0(i[0]),r=C0(i[1])}return{className:n,type:r}},"splitClassNameAndType"),QHe=o(function(t,e){let r=je.sanitizeText(t,de());e&&(e=C0(e));let{className:n}=A0(r);Ln.get(n).label=e,Ln.get(n).text=`${e}${Ln.get(n).type?`<${Ln.get(n).type}>`:""}`},"setClassLabel"),zg=o(function(t){let e=je.sanitizeText(t,de()),{className:r,type:n}=A0(e);if(Ln.has(r))return;let i=je.sanitizeText(r,de());Ln.set(i,{id:i,type:n,label:i,text:`${i}${n?`<${n}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:EE+i+"-"+bde}),bde++},"addClass"),wde=o(function(t,e){let r={id:`interface${Gg.length}`,label:t,classId:e};Gg.push(r)},"addInterface"),kde=o(function(t){let e=je.sanitizeText(t,de());if(Ln.has(e))return Ln.get(e).domId;throw new Error("Class not found: "+e)},"lookUpDomId"),ZHe=o(function(){SE=[],Ln=new Map,kx=[],Gg=[],Ex=[],Ex.push(Sde),$l=new Map,RO=0,IO="TB",_r()},"clear"),JHe=o(function(t){return Ln.get(t)},"getClass"),eWe=o(function(){return Ln},"getClasses"),tWe=o(function(){return SE},"getRelations"),rWe=o(function(){return kx},"getNotes"),nWe=o(function(t){Y.debug("Adding relation: "+JSON.stringify(t));let e=[mf.LOLLIPOP,mf.AGGREGATION,mf.COMPOSITION,mf.DEPENDENCY,mf.EXTENSION];t.relation.type1===mf.LOLLIPOP&&!e.includes(t.relation.type2)?(zg(t.id2),wde(t.id1,t.id2),t.id1=`interface${Gg.length-1}`):t.relation.type2===mf.LOLLIPOP&&!e.includes(t.relation.type1)?(zg(t.id1),wde(t.id2,t.id1),t.id2=`interface${Gg.length-1}`):(zg(t.id1),zg(t.id2)),t.id1=A0(t.id1).className,t.id2=A0(t.id2).className,t.relationTitle1=je.sanitizeText(t.relationTitle1.trim(),de()),t.relationTitle2=je.sanitizeText(t.relationTitle2.trim(),de()),SE.push(t)},"addRelation"),iWe=o(function(t,e){let r=A0(t).className;Ln.get(r).annotations.push(e)},"addAnnotation"),Ede=o(function(t,e){zg(t);let r=A0(t).className,n=Ln.get(r);if(typeof e=="string"){let i=e.trim();i.startsWith("<<")&&i.endsWith(">>")?n.annotations.push(C0(i.substring(2,i.length-2))):i.indexOf(")")>0?n.methods.push(new Tx(i,"method")):i&&n.members.push(new Tx(i,"attribute"))}},"addMember"),aWe=o(function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(r=>Ede(t,r)))},"addMembers"),sWe=o(function(t,e){let r={id:`note${kx.length}`,class:e,text:t};kx.push(r)},"addNote"),oWe=o(function(t){return t.startsWith(":")&&(t=t.substring(1)),C0(t.trim())},"cleanupLabel"),MO=o(function(t,e){t.split(",").forEach(function(r){let n=r;/\d/.exec(r[0])&&(n=EE+n);let i=Ln.get(n);i&&(i.cssClasses+=" "+e)})},"setCssClass"),lWe=o(function(t,e){for(let r of t){let n=xde.get(r);n===void 0&&(n={id:r,styles:[],textStyles:[]},xde.set(r,n)),e&&e.forEach(function(i){if(/color/.exec(i)){let a=i.replace("fill","bgFill");n.textStyles.push(a)}n.styles.push(i)}),Ln.forEach(i=>{i.cssClasses.includes(r)&&i.styles.push(...e.flatMap(a=>a.split(",")))})}},"defineClass"),cWe=o(function(t,e){t.split(",").forEach(function(r){e!==void 0&&(Ln.get(r).tooltip=C0(e))})},"setTooltip"),uWe=o(function(t,e){return e&&$l.has(e)?$l.get(e).classes.get(t).tooltip:Ln.get(t).tooltip},"getTooltip"),hWe=o(function(t,e,r){let n=de();t.split(",").forEach(function(i){let a=i;/\d/.exec(i[0])&&(a=EE+a);let s=Ln.get(a);s&&(s.link=Ut.formatUrl(e,n),n.securityLevel==="sandbox"?s.linkTarget="_top":typeof r=="string"?s.linkTarget=C0(r):s.linkTarget="_blank")}),MO(t,"clickable")},"setLink"),fWe=o(function(t,e,r){t.split(",").forEach(function(n){dWe(n,e,r),Ln.get(n).haveCallback=!0}),MO(t,"clickable")},"setClickEvent"),dWe=o(function(t,e,r){let n=je.sanitizeText(t,de());if(de().securityLevel!=="loose"||e===void 0)return;let a=n;if(Ln.has(a)){let s=kde(a),l=[];if(typeof r=="string"){l=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let u=0;u")),i.classed("hover",!0)}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),ze(this).classed("hover",!1)})},"setupToolTips");Ex.push(Sde);IO="TB",Cde=o(()=>IO,"getDirection"),gWe=o(t=>{IO=t},"setDirection"),yWe=o(function(t){$l.has(t)||($l.set(t,{id:t,classes:new Map,children:{},domId:EE+t+"-"+RO}),RO++)},"addNamespace"),vWe=o(function(t){return $l.get(t)},"getNamespace"),xWe=o(function(){return $l},"getNamespaces"),bWe=o(function(t,e){if($l.has(t))for(let r of e){let{className:n}=A0(r);Ln.get(n).parent=t,$l.get(t).classes.set(n,Ln.get(n))}},"addClassesToNamespace"),wWe=o(function(t,e){let r=Ln.get(t);if(!(!e||!r))for(let n of e)n.includes(",")?r.styles.push(...n.split(",")):r.styles.push(n)},"setCssStyle");o(Tde,"getArrowMarker");TWe=o(()=>{let t=[],e=[],r=de();for(let i of $l.keys()){let a=$l.get(i);if(a){let s={id:a.id,label:a.id,isGroup:!0,padding:r.class.padding??16,shape:"rect",cssStyles:["fill: none","stroke: black"],look:r.look};t.push(s)}}for(let i of Ln.keys()){let a=Ln.get(i);if(a){let s=a;s.parentId=a.parent,s.look=r.look,t.push(s)}}let n=0;for(let i of kx){n++;let a={id:i.id,label:i.text,isGroup:!1,shape:"note",padding:r.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${r.themeVariables.noteBkgColor}`,`stroke: ${r.themeVariables.noteBorderColor}`],look:r.look};t.push(a);let s=Ln.get(i.class)?.id??"";if(s){let l={id:`edgeNote${n}`,start:i.id,end:s,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:r.look};e.push(l)}}for(let i of Gg){let a={id:i.id,label:i.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:r.look};t.push(a)}n=0;for(let i of SE){n++;let a={id:p5(i.id1,i.id2,{prefix:"id",counter:n}),start:i.id1,end:i.id2,type:"normal",label:i.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:Tde(i.relation.type1),arrowTypeEnd:Tde(i.relation.type2),startLabelRight:i.relationTitle1==="none"?"":i.relationTitle1,endLabelLeft:i.relationTitle2==="none"?"":i.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:i.style||"",pattern:i.relation.lineType==1?"dashed":"solid",look:r.look};e.push(a)}return{nodes:t,edges:e,other:{},config:r,direction:Cde()}},"getData"),$g={setAccTitle:Rr,getAccTitle:Pr,getAccDescription:Fr,setAccDescription:Br,getConfig:o(()=>de().class,"getConfig"),addClass:zg,bindFunctions:pWe,clear:ZHe,getClass:JHe,getClasses:eWe,getNotes:rWe,addAnnotation:iWe,addNote:sWe,getRelations:tWe,addRelation:nWe,getDirection:Cde,setDirection:gWe,addMember:Ede,addMembers:aWe,cleanupLabel:oWe,lineType:mWe,relationType:mf,setClickEvent:fWe,setCssClass:MO,defineClass:lWe,setLink:hWe,getTooltip:uWe,setTooltip:cWe,lookUpDomId:kde,setDiagramTitle:ln,getDiagramTitle:Jr,setClassLabel:QHe,addNamespace:yWe,addClassesToNamespace:bWe,getNamespace:vWe,getNamespaces:xWe,setCssStyle:wWe,getData:TWe}});var kWe,CE,PO=M(()=>{"use strict";kWe=o(t=>`g.classGroup text { + fill: ${t.nodeBorder||t.classText}; + stroke: none; + font-family: ${t.fontFamily}; + font-size: 10px; + + .title { + font-weight: bolder; + } + +} + +.nodeLabel, .edgeLabel { + color: ${t.classText}; +} +.edgeLabel .label rect { + fill: ${t.mainBkg}; +} +.label text { + fill: ${t.classText}; +} + +.labelBkg { + background: ${t.mainBkg}; +} +.edgeLabel .label span { + background: ${t.mainBkg}; +} + +.classTitle { + font-weight: bolder; +} +.node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + stroke-width: 1px; + } + + +.divider { + stroke: ${t.nodeBorder}; + stroke-width: 1; +} + +g.clickable { + cursor: pointer; +} + +g.classGroup rect { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; +} + +g.classGroup line { + stroke: ${t.nodeBorder}; + stroke-width: 1; +} + +.classLabel .box { + stroke: none; + stroke-width: 0; + fill: ${t.mainBkg}; + opacity: 0.5; +} + +.classLabel .label { + fill: ${t.nodeBorder}; + font-size: 10px; +} + +.relation { + stroke: ${t.lineColor}; + stroke-width: 1; + fill: none; +} + +.dashed-line{ + stroke-dasharray: 3; +} + +.dotted-line{ + stroke-dasharray: 1 2; +} + +#compositionStart, .composition { + fill: ${t.lineColor} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +#compositionEnd, .composition { + fill: ${t.lineColor} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +#dependencyStart, .dependency { + fill: ${t.lineColor} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +#dependencyStart, .dependency { + fill: ${t.lineColor} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +#extensionStart, .extension { + fill: transparent !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +#extensionEnd, .extension { + fill: transparent !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +#aggregationStart, .aggregation { + fill: transparent !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +#aggregationEnd, .aggregation { + fill: transparent !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +#lollipopStart, .lollipop { + fill: ${t.mainBkg} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +#lollipopEnd, .lollipop { + fill: ${t.mainBkg} !important; + stroke: ${t.lineColor} !important; + stroke-width: 1; +} + +.edgeTerminals { + font-size: 11px; + line-height: initial; +} + +.classTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; +} +`,"getStyles"),CE=kWe});var EWe,SWe,CWe,AE,BO=M(()=>{"use strict";Vt();ht();j5();Fv();uT();hr();EWe=o((t,e="TB")=>{if(!t.doc)return e;let r=e;for(let n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir"),SWe=o(function(t,e){return e.db.getClasses()},"getClasses"),CWe=o(async function(t,e,r,n){Y.info("REF0:"),Y.info("Drawing class diagram (v3)",e);let{securityLevel:i,state:a,layout:s}=de(),l=n.db.getData(),u=pm(e,i);l.type=n.type,l.layoutAlgorithm=cT(s),l.nodeSpacing=a?.nodeSpacing||50,l.rankSpacing=a?.rankSpacing||50,l.markers=["aggregation","extension","composition","dependency","lollipop"],l.diagramId=e,await Fm(l,u);let h=8;Ut.insertTitle(u,"classDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),zm(u,h,"classDiagram",a?.useMaxWidth??!0)},"draw"),AE={getClasses:SWe,draw:CWe,getDir:EWe}});var Ade={};vr(Ade,{diagram:()=>AWe});var AWe,_de=M(()=>{"use strict";NO();OO();PO();BO();AWe={parser:kE,db:$g,renderer:AE,styles:CE,init:o(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,$g.clear()},"init")}});var Nde={};vr(Nde,{diagram:()=>NWe});var NWe,Rde=M(()=>{"use strict";NO();OO();PO();BO();NWe={parser:kE,db:$g,renderer:AE,styles:CE,init:o(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,$g.clear()},"init")}});var FO,_E,zO=M(()=>{"use strict";FO=function(){var t=o(function(F,B,$,z){for($=$||{},z=F.length;z--;$[F[z]]=B);return $},"o"),e=[1,2],r=[1,3],n=[1,4],i=[2,4],a=[1,9],s=[1,11],l=[1,16],u=[1,17],h=[1,18],f=[1,19],d=[1,32],p=[1,20],m=[1,21],g=[1,22],y=[1,23],v=[1,24],x=[1,26],b=[1,27],w=[1,28],_=[1,29],T=[1,30],E=[1,31],L=[1,34],C=[1,35],A=[1,36],I=[1,37],D=[1,33],k=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],R=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],S=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],O={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:o(function(B,$,z,W,j,K,ie){var Q=K.length-1;switch(j){case 3:return W.setRootDoc(K[Q]),K[Q];break;case 4:this.$=[];break;case 5:K[Q]!="nl"&&(K[Q-1].push(K[Q]),this.$=K[Q-1]);break;case 6:case 7:this.$=K[Q];break;case 8:this.$="nl";break;case 12:this.$=K[Q];break;case 13:let q=K[Q-1];q.description=W.trimColon(K[Q]),this.$=q;break;case 14:this.$={stmt:"relation",state1:K[Q-2],state2:K[Q]};break;case 15:let Z=W.trimColon(K[Q]);this.$={stmt:"relation",state1:K[Q-3],state2:K[Q-1],description:Z};break;case 19:this.$={stmt:"state",id:K[Q-3],type:"default",description:"",doc:K[Q-1]};break;case 20:var ee=K[Q],J=K[Q-2].trim();if(K[Q].match(":")){var H=K[Q].split(":");ee=H[0],J=[J,H[1]]}this.$={stmt:"state",id:ee,type:"default",description:J};break;case 21:this.$={stmt:"state",id:K[Q-3],type:"default",description:K[Q-5],doc:K[Q-1]};break;case 22:this.$={stmt:"state",id:K[Q],type:"fork"};break;case 23:this.$={stmt:"state",id:K[Q],type:"join"};break;case 24:this.$={stmt:"state",id:K[Q],type:"choice"};break;case 25:this.$={stmt:"state",id:W.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:K[Q-1].trim(),note:{position:K[Q-2].trim(),text:K[Q].trim()}};break;case 29:this.$=K[Q].trim(),W.setAccTitle(this.$);break;case 30:case 31:this.$=K[Q].trim(),W.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:K[Q-1].trim(),classes:K[Q].trim()};break;case 34:this.$={stmt:"style",id:K[Q-1].trim(),styleClass:K[Q].trim()};break;case 35:this.$={stmt:"applyClass",id:K[Q-1].trim(),styleClass:K[Q].trim()};break;case 36:W.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:W.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:W.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:W.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:K[Q].trim(),type:"default",description:""};break;case 44:this.$={stmt:"state",id:K[Q-2].trim(),classes:[K[Q].trim()],type:"default",description:""};break;case 45:this.$={stmt:"state",id:K[Q-2].trim(),classes:[K[Q].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:r,6:n},{1:[3]},{3:5,4:e,5:r,6:n},{3:6,4:e,5:r,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:u,19:h,22:f,24:d,25:p,26:m,27:g,28:y,29:v,32:25,33:x,35:b,37:w,38:_,42:T,45:E,48:L,49:C,50:A,51:I,54:D},t(k,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:l,17:u,19:h,22:f,24:d,25:p,26:m,27:g,28:y,29:v,32:25,33:x,35:b,37:w,38:_,42:T,45:E,48:L,49:C,50:A,51:I,54:D},t(k,[2,7]),t(k,[2,8]),t(k,[2,9]),t(k,[2,10]),t(k,[2,11]),t(k,[2,12],{14:[1,39],15:[1,40]}),t(k,[2,16]),{18:[1,41]},t(k,[2,18],{20:[1,42]}),{23:[1,43]},t(k,[2,22]),t(k,[2,23]),t(k,[2,24]),t(k,[2,25]),{30:44,31:[1,45],56:[1,46],57:[1,47]},t(k,[2,28]),{34:[1,48]},{36:[1,49]},t(k,[2,31]),{39:[1,50],41:[1,51]},{43:[1,52]},{46:[1,53]},t(R,[2,42],{55:[1,54]}),t(R,[2,43],{55:[1,55]}),t(k,[2,36]),t(k,[2,37]),t(k,[2,38]),t(k,[2,39]),t(k,[2,6]),t(k,[2,13]),{13:56,24:d,54:D},t(k,[2,17]),t(S,i,{7:57}),{24:[1,58]},{24:[1,59]},{23:[1,60]},{24:[2,46]},{24:[2,47]},t(k,[2,29]),t(k,[2,30]),{40:[1,61]},{40:[1,62]},{44:[1,63]},{47:[1,64]},{24:[1,65]},{24:[1,66]},t(k,[2,14],{14:[1,67]}),{4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:u,19:h,21:[1,68],22:f,24:d,25:p,26:m,27:g,28:y,29:v,32:25,33:x,35:b,37:w,38:_,42:T,45:E,48:L,49:C,50:A,51:I,54:D},t(k,[2,20],{20:[1,69]}),{31:[1,70]},{24:[1,71]},t(k,[2,32]),t(k,[2,33]),t(k,[2,34]),t(k,[2,35]),t(R,[2,44]),t(R,[2,45]),t(k,[2,15]),t(k,[2,19]),t(S,i,{7:72}),t(k,[2,26]),t(k,[2,27]),{4:a,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:u,19:h,21:[1,73],22:f,24:d,25:p,26:m,27:g,28:y,29:v,32:25,33:x,35:b,37:w,38:_,42:T,45:E,48:L,49:C,50:A,51:I,54:D},t(k,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:o(function(B,$){if($.recoverable)this.trace(B);else{var z=new Error(B);throw z.hash=$,z}},"parseError"),parse:o(function(B){var $=this,z=[0],W=[],j=[null],K=[],ie=this.table,Q="",ee=0,J=0,H=0,q=2,Z=1,ae=K.slice.call(arguments,1),ue=Object.create(this.lexer),ce={yy:{}};for(var te in this.yy)Object.prototype.hasOwnProperty.call(this.yy,te)&&(ce.yy[te]=this.yy[te]);ue.setInput(B,ce.yy),ce.yy.lexer=ue,ce.yy.parser=this,typeof ue.yylloc>"u"&&(ue.yylloc={});var De=ue.yylloc;K.push(De);var oe=ue.options&&ue.options.ranges;typeof ce.yy.parseError=="function"?this.parseError=ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(Te){z.length=z.length-2*Te,j.length=j.length-Te,K.length=K.length-Te}o(ke,"popStack");function Fe(){var Te;return Te=W.pop()||ue.lex()||Z,typeof Te!="number"&&(Te instanceof Array&&(W=Te,Te=W.pop()),Te=$.symbols_[Te]||Te),Te}o(Fe,"lex");for(var Be,Ve,Ge,He,xe,X,fe={},he,ge,ne,ye;;){if(Ge=z[z.length-1],this.defaultActions[Ge]?He=this.defaultActions[Ge]:((Be===null||typeof Be>"u")&&(Be=Fe()),He=ie[Ge]&&ie[Ge][Be]),typeof He>"u"||!He.length||!He[0]){var U="";ye=[];for(he in ie[Ge])this.terminals_[he]&&he>q&&ye.push("'"+this.terminals_[he]+"'");ue.showPosition?U="Parse error on line "+(ee+1)+`: +`+ue.showPosition()+` +Expecting `+ye.join(", ")+", got '"+(this.terminals_[Be]||Be)+"'":U="Parse error on line "+(ee+1)+": Unexpected "+(Be==Z?"end of input":"'"+(this.terminals_[Be]||Be)+"'"),this.parseError(U,{text:ue.match,token:this.terminals_[Be]||Be,line:ue.yylineno,loc:De,expected:ye})}if(He[0]instanceof Array&&He.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ge+", token: "+Be);switch(He[0]){case 1:z.push(Be),j.push(ue.yytext),K.push(ue.yylloc),z.push(He[1]),Be=null,Ve?(Be=Ve,Ve=null):(J=ue.yyleng,Q=ue.yytext,ee=ue.yylineno,De=ue.yylloc,H>0&&H--);break;case 2:if(ge=this.productions_[He[1]][1],fe.$=j[j.length-ge],fe._$={first_line:K[K.length-(ge||1)].first_line,last_line:K[K.length-1].last_line,first_column:K[K.length-(ge||1)].first_column,last_column:K[K.length-1].last_column},oe&&(fe._$.range=[K[K.length-(ge||1)].range[0],K[K.length-1].range[1]]),X=this.performAction.apply(fe,[Q,J,ee,ce.yy,He[1],j,K].concat(ae)),typeof X<"u")return X;ge&&(z=z.slice(0,-1*ge*2),j=j.slice(0,-1*ge),K=K.slice(0,-1*ge)),z.push(this.productions_[He[1]][0]),j.push(fe.$),K.push(fe._$),ne=ie[z[z.length-2]][z[z.length-1]],z.push(ne);break;case 3:return!0}}return!0},"parse")},N=function(){var F={EOF:1,parseError:o(function($,z){if(this.yy.parser)this.yy.parser.parseError($,z);else throw new Error($)},"parseError"),setInput:o(function(B,$){return this.yy=$||this.yy||{},this._input=B,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var B=this._input[0];this.yytext+=B,this.yyleng++,this.offset++,this.match+=B,this.matched+=B;var $=B.match(/(?:\r\n?|\n).*/g);return $?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),B},"input"),unput:o(function(B){var $=B.length,z=B.split(/(?:\r\n?|\n)/g);this._input=B+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-$),this.offset-=$;var W=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),z.length-1&&(this.yylineno-=z.length-1);var j=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:z?(z.length===W.length?this.yylloc.first_column:0)+W[W.length-z.length].length-z[0].length:this.yylloc.first_column-$},this.options.ranges&&(this.yylloc.range=[j[0],j[0]+this.yyleng-$]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(B){this.unput(this.match.slice(B))},"less"),pastInput:o(function(){var B=this.matched.substr(0,this.matched.length-this.match.length);return(B.length>20?"...":"")+B.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var B=this.match;return B.length<20&&(B+=this._input.substr(0,20-B.length)),(B.substr(0,20)+(B.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var B=this.pastInput(),$=new Array(B.length+1).join("-");return B+this.upcomingInput()+` +`+$+"^"},"showPosition"),test_match:o(function(B,$){var z,W,j;if(this.options.backtrack_lexer&&(j={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(j.yylloc.range=this.yylloc.range.slice(0))),W=B[0].match(/(?:\r\n?|\n).*/g),W&&(this.yylineno+=W.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:W?W[W.length-1].length-W[W.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+B[0].length},this.yytext+=B[0],this.match+=B[0],this.matches=B,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(B[0].length),this.matched+=B[0],z=this.performAction.call(this,this.yy,this,$,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),z)return z;if(this._backtrack){for(var K in j)this[K]=j[K];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var B,$,z,W;this._more||(this.yytext="",this.match="");for(var j=this._currentRules(),K=0;K$[0].length)){if($=z,W=K,this.options.backtrack_lexer){if(B=this.test_match(z,j[K]),B!==!1)return B;if(this._backtrack){$=!1;continue}else return!1}else if(!this.options.flex)break}return $?(B=this.test_match($,j[W]),B!==!1?B:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var $=this.next();return $||this.lex()},"lex"),begin:o(function($){this.conditionStack.push($)},"begin"),popState:o(function(){var $=this.conditionStack.length-1;return $>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function($){return $=this.conditionStack.length-1-Math.abs($||0),$>=0?this.conditionStack[$]:"INITIAL"},"topState"),pushState:o(function($){this.begin($)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function($,z,W,j){var K=j;switch(W){case 0:return 41;case 1:return 48;case 2:return 49;case 3:return 50;case 4:return 51;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),17;break;case 13:return 18;case 14:this.popState();break;case 15:return this.begin("acc_title"),33;break;case 16:return this.popState(),"acc_title_value";break;case 17:return this.begin("acc_descr"),35;break;case 18:return this.popState(),"acc_descr_value";break;case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),38;break;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 24:return this.popState(),this.pushState("CLASSDEFID"),39;break;case 25:return this.popState(),40;break;case 26:return this.pushState("CLASS"),45;break;case 27:return this.popState(),this.pushState("CLASS_STYLE"),46;break;case 28:return this.popState(),47;break;case 29:return this.pushState("STYLE"),42;break;case 30:return this.popState(),this.pushState("STYLEDEF_STYLES"),43;break;case 31:return this.popState(),44;break;case 32:return this.pushState("SCALE"),17;break;case 33:return 18;case 34:this.popState();break;case 35:this.pushState("STATE");break;case 36:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),25;break;case 37:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),26;break;case 38:return this.popState(),z.yytext=z.yytext.slice(0,-10).trim(),27;break;case 39:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),25;break;case 40:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),26;break;case 41:return this.popState(),z.yytext=z.yytext.slice(0,-10).trim(),27;break;case 42:return 48;case 43:return 49;case 44:return 50;case 45:return 51;case 46:this.pushState("STATE_STRING");break;case 47:return this.pushState("STATE_ID"),"AS";break;case 48:return this.popState(),"ID";break;case 49:this.popState();break;case 50:return"STATE_DESCR";case 51:return 19;case 52:this.popState();break;case 53:return this.popState(),this.pushState("struct"),20;break;case 54:break;case 55:return this.popState(),21;break;case 56:break;case 57:return this.begin("NOTE"),29;break;case 58:return this.popState(),this.pushState("NOTE_ID"),56;break;case 59:return this.popState(),this.pushState("NOTE_ID"),57;break;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 62:break;case 63:return"NOTE_TEXT";case 64:return this.popState(),"ID";break;case 65:return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 66:return this.popState(),z.yytext=z.yytext.substr(2).trim(),31;break;case 67:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),31;break;case 68:return 6;case 69:return 6;case 70:return 16;case 71:return 54;case 72:return 24;case 73:return z.yytext=z.yytext.trim(),14;break;case 74:return 15;case 75:return 28;case 76:return 55;case 77:return 5;case 78:return"INVALID"}},"anonymous"),rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,29,35,42,43,44,45,54,55,56,57,71,72,73,74,75],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[31],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[30],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,33,34],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[48],inclusive:!1},STATE_STRING:{rules:[49,50],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,36,37,38,39,40,41,46,47,51,52,53],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,35,53,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}};return F}();O.lexer=N;function P(){this.yy={}}return o(P,"Parser"),P.prototype=O,O.Parser=P,new P}();FO.parser=FO;_E=FO});var Ode,LE,Vg,Sx,Pde,Bde,Fde,_0,DE,GO,$O,VO,UO,HO,NE,RE,zde,Gde,WO,YO,$de,Vde,Ug,OWe,Ude,qO,PWe,BWe,Hde,Wde,FWe,Yde,zWe,qde,XO,jO,Xde,ME,jde,KO,IE=M(()=>{"use strict";Ode="LR",LE="TB",Vg="state",Sx="relation",Pde="classDef",Bde="style",Fde="applyClass",_0="default",DE="divider",GO="fill:none",$O="fill: #333",VO="c",UO="text",HO="normal",NE="rect",RE="rectWithTitle",zde="stateStart",Gde="stateEnd",WO="divider",YO="roundedWithTitle",$de="note",Vde="noteGroup",Ug="statediagram",OWe="state",Ude=`${Ug}-${OWe}`,qO="transition",PWe="note",BWe="note-edge",Hde=`${qO} ${BWe}`,Wde=`${Ug}-${PWe}`,FWe="cluster",Yde=`${Ug}-${FWe}`,zWe="cluster-alt",qde=`${Ug}-${zWe}`,XO="parent",jO="note",Xde="state",ME="----",jde=`${ME}${jO}`,KO=`${ME}${XO}`});function QO(t="",e=0,r="",n=ME){let i=r!==null&&r.length>0?`${n}${r}`:"";return`${Xde}-${t}${i}-${e}`}function OE(t,e,r){if(!e.id||e.id===""||e.id==="")return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(i=>{if(r.get(i)){let a=r.get(i);e.cssCompiledStyles=[...e.cssCompiledStyles,...a.styles]}}));let n=t.find(i=>i.id===e.id);n?Object.assign(n,e):t.push(e)}function $We(t){return t?.classes?.join(" ")??""}function VWe(t){return t?.styles??[]}var PE,gf,GWe,Kde,Hg,Qde,Zde=M(()=>{"use strict";Vt();ht();fr();IE();PE=new Map,gf=0;o(QO,"stateDomId");GWe=o((t,e,r,n,i,a,s,l)=>{Y.trace("items",e),e.forEach(u=>{switch(u.stmt){case Vg:Hg(t,u,r,n,i,a,s,l);break;case _0:Hg(t,u,r,n,i,a,s,l);break;case Sx:{Hg(t,u.state1,r,n,i,a,s,l),Hg(t,u.state2,r,n,i,a,s,l);let h={id:"edge"+gf,start:u.state1.id,end:u.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:GO,labelStyle:"",label:je.sanitizeText(u.description,de()),arrowheadStyle:$O,labelpos:VO,labelType:UO,thickness:HO,classes:qO,look:s};i.push(h),gf++}break}})},"setupDoc"),Kde=o((t,e=LE)=>{let r=e;if(t.doc)for(let n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir");o(OE,"insertOrUpdateNode");o($We,"getClassesFromDbInfo");o(VWe,"getStylesFromDbInfo");Hg=o((t,e,r,n,i,a,s,l)=>{let u=e.id,h=r.get(u),f=$We(h),d=VWe(h);if(Y.info("dataFetcher parsedItem",e,h,d),u!=="root"){let p=NE;e.start===!0?p=zde:e.start===!1&&(p=Gde),e.type!==_0&&(p=e.type),PE.get(u)||PE.set(u,{id:u,shape:p,description:je.sanitizeText(u,de()),cssClasses:`${f} ${Ude}`,cssStyles:d});let m=PE.get(u);e.description&&(Array.isArray(m.description)?(m.shape=RE,m.description.push(e.description)):m.description?.length>0?(m.shape=RE,m.description===u?m.description=[e.description]:m.description=[m.description,e.description]):(m.shape=NE,m.description=e.description),m.description=je.sanitizeTextOrArray(m.description,de())),m.description?.length===1&&m.shape===RE&&(m.type==="group"?m.shape=YO:m.shape=NE),!m.type&&e.doc&&(Y.info("Setting cluster for XCX",u,Kde(e)),m.type="group",m.isGroup=!0,m.dir=Kde(e),m.shape=e.type===DE?WO:YO,m.cssClasses=`${m.cssClasses} ${Yde} ${a?qde:""}`);let g={labelStyle:"",shape:m.shape,label:m.description,cssClasses:m.cssClasses,cssCompiledStyles:[],cssStyles:m.cssStyles,id:u,dir:m.dir,domId:QO(u,gf),type:m.type,isGroup:m.type==="group",padding:8,rx:10,ry:10,look:s};if(g.shape===WO&&(g.label=""),t&&t.id!=="root"&&(Y.trace("Setting node ",u," to be child of its parent ",t.id),g.parentId=t.id),g.centerLabel=!0,e.note){let y={labelStyle:"",shape:$de,label:e.note.text,cssClasses:Wde,cssStyles:[],cssCompilesStyles:[],id:u+jde+"-"+gf,domId:QO(u,gf,jO),type:m.type,isGroup:m.type==="group",padding:de().flowchart.padding,look:s,position:e.note.position},v=u+KO,x={labelStyle:"",shape:Vde,label:e.note.text,cssClasses:m.cssClasses,cssStyles:[],id:u+KO,domId:QO(u,gf,XO),type:"group",isGroup:!0,padding:16,look:s,position:e.note.position};gf++,x.id=v,y.parentId=v,OE(n,x,l),OE(n,y,l),OE(n,g,l);let b=u,w=y.id;e.note.position==="left of"&&(b=y.id,w=u),i.push({id:b+"-"+w,start:b,end:w,arrowhead:"none",arrowTypeEnd:"",style:GO,labelStyle:"",classes:Hde,arrowheadStyle:$O,labelpos:VO,labelType:UO,thickness:HO,look:s})}else OE(n,g,l)}e.doc&&(Y.trace("Adding nodes children "),GWe(e,e.doc,r,n,i,!a,s,l))},"dataFetcher"),Qde=o(()=>{PE.clear(),gf=0},"reset")});var ZO,UWe,HWe,Jde,JO=M(()=>{"use strict";Vt();ht();j5();Fv();uT();hr();IE();ZO=o((t,e=LE)=>{if(!t.doc)return e;let r=e;for(let n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir"),UWe=o(function(t,e){return e.db.extract(e.db.getRootDocV2()),e.db.getClasses()},"getClasses"),HWe=o(async function(t,e,r,n){Y.info("REF0:"),Y.info("Drawing state diagram (v2)",e);let{securityLevel:i,state:a,layout:s}=de();n.db.extract(n.db.getRootDocV2());let l=n.db.getData(),u=pm(e,i);l.type=n.type,l.layoutAlgorithm=s,l.nodeSpacing=a?.nodeSpacing||50,l.rankSpacing=a?.rankSpacing||50,l.markers=["barb"],l.diagramId=e,await Fm(l,u);let h=8;Ut.insertTitle(u,"statediagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),zm(u,h,Ug,a?.useMaxWidth??!0)},"draw"),Jde={getClasses:UWe,draw:HWe,getDir:ZO}});function s0e(){return new Map}function eP(t=""){let e=t;return t===nP&&(Cx++,e=`${n0e}${Cx}`),e}function tP(t="",e=_0){return t===nP?n0e:e}function eYe(t=""){let e=t;return t===i0e&&(Cx++,e=`${a0e}${Cx}`),e}function tYe(t="",e=_0){return t===i0e?a0e:e}function rYe(t,e,r){let n=eP(t.id.trim()),i=tP(t.id.trim(),t.type),a=eP(e.id.trim()),s=tP(e.id.trim(),e.type);yf(n,i,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),yf(a,s,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),zs.relations.push({id1:n,id2:a,relationTitle:je.sanitizeText(r,de())})}var nP,n0e,i0e,a0e,e0e,t0e,WWe,YWe,zE,iP,o0e,GE,Wg,l0e,$E,zs,Cx,r0e,qWe,XWe,BE,jWe,KWe,FE,aP,QWe,yf,c0e,L0,u0e,ZWe,JWe,h0e,rP,nYe,iYe,f0e,aYe,sP,sYe,oYe,lYe,cYe,uYe,hYe,tl,VE=M(()=>{"use strict";ht();hr();fr();Vt();ki();Zde();JO();IE();nP="[*]",n0e="start",i0e=nP,a0e="end",e0e="color",t0e="fill",WWe="bgFill",YWe=",";o(s0e,"newClassesList");zE=[],iP=[],o0e=Ode,GE=[],Wg=s0e(),l0e=o(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),$E={root:l0e()},zs=$E.root,Cx=0,r0e=0,qWe={LINE:0,DOTTED_LINE:1},XWe={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},BE=o(t=>JSON.parse(JSON.stringify(t)),"clone"),jWe=o(t=>{Y.info("Setting root doc",t),GE=t},"setRootDoc"),KWe=o(()=>GE,"getRootDoc"),FE=o((t,e,r)=>{if(e.stmt===Sx)FE(t,e.state1,!0),FE(t,e.state2,!1);else if(e.stmt===Vg&&(e.id==="[*]"?(e.id=r?t.id+"_start":t.id+"_end",e.start=r):e.id=e.id.trim()),e.doc){let n=[],i=[],a;for(a=0;a0&&i.length>0){let s={stmt:Vg,id:e9(),type:"divider",doc:BE(i)};n.push(BE(s)),e.doc=n}e.doc.forEach(s=>FE(e,s,!0))}},"docTranslator"),aP=o(()=>(FE({id:"root"},{id:"root",doc:GE},!0),{id:"root",doc:GE}),"getRootDocV2"),QWe=o(t=>{let e;t.doc?e=t.doc:e=t,Y.info(e),c0e(!0),Y.info("Extract initial document:",e),e.forEach(a=>{switch(Y.warn("Statement",a.stmt),a.stmt){case Vg:yf(a.id.trim(),a.type,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles);break;case Sx:h0e(a.state1,a.state2,a.description);break;case Pde:f0e(a.id.trim(),a.classes);break;case Bde:{let s=a.id.trim().split(","),l=a.styleClass.split(",");s.forEach(u=>{let h=L0(u);if(h===void 0){let f=u.trim();yf(f),h=L0(f)}h.styles=l.map(f=>f.replace(/;/g,"")?.trim())})}break;case Fde:sP(a.id.trim(),a.styleClass);break}});let r=u0e(),i=de().look;Qde(),Hg(void 0,aP(),r,zE,iP,!0,i,Wg),zE.forEach(a=>{if(Array.isArray(a.label)){if(a.description=a.label.slice(1),a.isGroup&&a.description.length>0)throw new Error("Group nodes can only have label. Remove the additional description for node ["+a.id+"]");a.label=a.label[0]}})},"extract"),yf=o(function(t,e=_0,r=null,n=null,i=null,a=null,s=null,l=null){let u=t?.trim();if(zs.states.has(u)?(zs.states.get(u).doc||(zs.states.get(u).doc=r),zs.states.get(u).type||(zs.states.get(u).type=e)):(Y.info("Adding state ",u,n),zs.states.set(u,{id:u,descriptions:[],type:e,doc:r,note:i,classes:[],styles:[],textStyles:[]})),n&&(Y.info("Setting state description",u,n),typeof n=="string"&&rP(u,n.trim()),typeof n=="object"&&n.forEach(h=>rP(u,h.trim()))),i){let h=zs.states.get(u);h.note=i,h.note.text=je.sanitizeText(h.note.text,de())}a&&(Y.info("Setting state classes",u,a),(typeof a=="string"?[a]:a).forEach(f=>sP(u,f.trim()))),s&&(Y.info("Setting state styles",u,s),(typeof s=="string"?[s]:s).forEach(f=>sYe(u,f.trim()))),l&&(Y.info("Setting state styles",u,s),(typeof l=="string"?[l]:l).forEach(f=>oYe(u,f.trim())))},"addState"),c0e=o(function(t){zE=[],iP=[],$E={root:l0e()},zs=$E.root,Cx=0,Wg=s0e(),t||_r()},"clear"),L0=o(function(t){return zs.states.get(t)},"getState"),u0e=o(function(){return zs.states},"getStates"),ZWe=o(function(){Y.info("Documents = ",$E)},"logDocuments"),JWe=o(function(){return zs.relations},"getRelations");o(eP,"startIdIfNeeded");o(tP,"startTypeIfNeeded");o(eYe,"endIdIfNeeded");o(tYe,"endTypeIfNeeded");o(rYe,"addRelationObjs");h0e=o(function(t,e,r){if(typeof t=="object")rYe(t,e,r);else{let n=eP(t.trim()),i=tP(t),a=eYe(e.trim()),s=tYe(e);yf(n,i),yf(a,s),zs.relations.push({id1:n,id2:a,title:je.sanitizeText(r,de())})}},"addRelation"),rP=o(function(t,e){let r=zs.states.get(t),n=e.startsWith(":")?e.replace(":","").trim():e;r.descriptions.push(je.sanitizeText(n,de()))},"addDescription"),nYe=o(function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},"cleanupLabel"),iYe=o(()=>(r0e++,"divider-id-"+r0e),"getDividerId"),f0e=o(function(t,e=""){Wg.has(t)||Wg.set(t,{id:t,styles:[],textStyles:[]});let r=Wg.get(t);e?.split(YWe).forEach(n=>{let i=n.replace(/([^;]*);/,"$1").trim();if(RegExp(e0e).exec(n)){let s=i.replace(t0e,WWe).replace(e0e,t0e);r.textStyles.push(s)}r.styles.push(i)})},"addStyleClass"),aYe=o(function(){return Wg},"getClasses"),sP=o(function(t,e){t.split(",").forEach(function(r){let n=L0(r);if(n===void 0){let i=r.trim();yf(i),n=L0(i)}n.classes.push(e)})},"setCssClass"),sYe=o(function(t,e){let r=L0(t);r!==void 0&&r.styles.push(e)},"setStyle"),oYe=o(function(t,e){let r=L0(t);r!==void 0&&r.textStyles.push(e)},"setTextStyle"),lYe=o(()=>o0e,"getDirection"),cYe=o(t=>{o0e=t},"setDirection"),uYe=o(t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),"trimColon"),hYe=o(()=>{let t=de();return{nodes:zE,edges:iP,other:{},config:t,direction:ZO(aP())}},"getData"),tl={getConfig:o(()=>de().state,"getConfig"),getData:hYe,addState:yf,clear:c0e,getState:L0,getStates:u0e,getRelations:JWe,getClasses:aYe,getDirection:lYe,addRelation:h0e,getDividerId:iYe,setDirection:cYe,cleanupLabel:nYe,lineType:qWe,relationType:XWe,logDocuments:ZWe,getRootDoc:KWe,setRootDoc:jWe,getRootDocV2:aP,extract:QWe,trimColon:uYe,getAccTitle:Pr,setAccTitle:Rr,getAccDescription:Fr,setAccDescription:Br,addStyleClass:f0e,setCssClass:sP,addDescription:rP,setDiagramTitle:ln,getDiagramTitle:Jr}});var fYe,UE,oP=M(()=>{"use strict";fYe=o(t=>` +defs #statediagram-barbEnd { + fill: ${t.transitionColor}; + stroke: ${t.transitionColor}; + } +g.stateGroup text { + fill: ${t.nodeBorder}; + stroke: none; + font-size: 10px; +} +g.stateGroup text { + fill: ${t.textColor}; + stroke: none; + font-size: 10px; + +} +g.stateGroup .state-title { + font-weight: bolder; + fill: ${t.stateLabelColor}; +} + +g.stateGroup rect { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; +} + +g.stateGroup line { + stroke: ${t.lineColor}; + stroke-width: 1; +} + +.transition { + stroke: ${t.transitionColor}; + stroke-width: 1; + fill: none; +} + +.stateGroup .composit { + fill: ${t.background}; + border-bottom: 1px +} + +.stateGroup .alt-composit { + fill: #e0e0e0; + border-bottom: 1px +} + +.state-note { + stroke: ${t.noteBorderColor}; + fill: ${t.noteBkgColor}; + + text { + fill: ${t.noteTextColor}; + stroke: none; + font-size: 10px; + } +} + +.stateLabel .box { + stroke: none; + stroke-width: 0; + fill: ${t.mainBkg}; + opacity: 0.5; +} + +.edgeLabel .label rect { + fill: ${t.labelBackgroundColor}; + opacity: 0.5; +} +.edgeLabel { + background-color: ${t.edgeLabelBackground}; + p { + background-color: ${t.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${t.edgeLabelBackground}; + fill: ${t.edgeLabelBackground}; + } + text-align: center; +} +.edgeLabel .label text { + fill: ${t.transitionLabelColor||t.tertiaryTextColor}; +} +.label div .edgeLabel { + color: ${t.transitionLabelColor||t.tertiaryTextColor}; +} + +.stateLabel text { + fill: ${t.stateLabelColor}; + font-size: 10px; + font-weight: bold; +} + +.node circle.state-start { + fill: ${t.specialStateColor}; + stroke: ${t.specialStateColor}; +} + +.node .fork-join { + fill: ${t.specialStateColor}; + stroke: ${t.specialStateColor}; +} + +.node circle.state-end { + fill: ${t.innerEndBackground}; + stroke: ${t.background}; + stroke-width: 1.5 +} +.end-state-inner { + fill: ${t.compositeBackground||t.background}; + // stroke: ${t.background}; + stroke-width: 1.5 +} + +.node rect { + fill: ${t.stateBkg||t.mainBkg}; + stroke: ${t.stateBorder||t.nodeBorder}; + stroke-width: 1px; +} +.node polygon { + fill: ${t.mainBkg}; + stroke: ${t.stateBorder||t.nodeBorder};; + stroke-width: 1px; +} +#statediagram-barbEnd { + fill: ${t.lineColor}; +} + +.statediagram-cluster rect { + fill: ${t.compositeTitleBackground}; + stroke: ${t.stateBorder||t.nodeBorder}; + stroke-width: 1px; +} + +.cluster-label, .nodeLabel { + color: ${t.stateLabelColor}; + // line-height: 1; +} + +.statediagram-cluster rect.outer { + rx: 5px; + ry: 5px; +} +.statediagram-state .divider { + stroke: ${t.stateBorder||t.nodeBorder}; +} + +.statediagram-state .title-state { + rx: 5px; + ry: 5px; +} +.statediagram-cluster.statediagram-cluster .inner { + fill: ${t.compositeBackground||t.background}; +} +.statediagram-cluster.statediagram-cluster-alt .inner { + fill: ${t.altBackground?t.altBackground:"#efefef"}; +} + +.statediagram-cluster .inner { + rx:0; + ry:0; +} + +.statediagram-state rect.basic { + rx: 5px; + ry: 5px; +} +.statediagram-state rect.divider { + stroke-dasharray: 10,10; + fill: ${t.altBackground?t.altBackground:"#efefef"}; +} + +.note-edge { + stroke-dasharray: 5; +} + +.statediagram-note rect { + fill: ${t.noteBkgColor}; + stroke: ${t.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} +.statediagram-note rect { + fill: ${t.noteBkgColor}; + stroke: ${t.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} + +.statediagram-note text { + fill: ${t.noteTextColor}; +} + +.statediagram-note .nodeLabel { + color: ${t.noteTextColor}; +} +.statediagram .edgeLabel { + color: red; // ${t.noteTextColor}; +} + +#dependencyStart, #dependencyEnd { + fill: ${t.lineColor}; + stroke: ${t.lineColor}; + stroke-width: 1; +} + +.statediagramTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; +} +`,"getStyles"),UE=fYe});var lP,dYe,pYe,d0e,mYe,p0e,m0e=M(()=>{"use strict";lP={},dYe=o((t,e)=>{lP[t]=e},"set"),pYe=o(t=>lP[t],"get"),d0e=o(()=>Object.keys(lP),"keys"),mYe=o(()=>d0e().length,"size"),p0e={get:pYe,set:dYe,keys:d0e,size:mYe}});var gYe,yYe,vYe,xYe,y0e,bYe,wYe,TYe,kYe,cP,g0e,v0e,x0e=M(()=>{"use strict";mr();m0e();VE();hr();fr();Vt();ht();gYe=o(t=>t.append("circle").attr("class","start-state").attr("r",de().state.sizeUnit).attr("cx",de().state.padding+de().state.sizeUnit).attr("cy",de().state.padding+de().state.sizeUnit),"drawStartState"),yYe=o(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",de().state.textHeight).attr("class","divider").attr("x2",de().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),vYe=o((t,e)=>{let r=t.append("text").attr("x",2*de().state.padding).attr("y",de().state.textHeight+2*de().state.padding).attr("font-size",de().state.fontSize).attr("class","state-title").text(e.id),n=r.node().getBBox();return t.insert("rect",":first-child").attr("x",de().state.padding).attr("y",de().state.padding).attr("width",n.width+2*de().state.padding).attr("height",n.height+2*de().state.padding).attr("rx",de().state.radius),r},"drawSimpleState"),xYe=o((t,e)=>{let r=o(function(p,m,g){let y=p.append("tspan").attr("x",2*de().state.padding).text(m);g||y.attr("dy",de().state.textHeight)},"addTspan"),i=t.append("text").attr("x",2*de().state.padding).attr("y",de().state.textHeight+1.3*de().state.padding).attr("font-size",de().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),a=i.height,s=t.append("text").attr("x",de().state.padding).attr("y",a+de().state.padding*.4+de().state.dividerMargin+de().state.textHeight).attr("class","state-description"),l=!0,u=!0;e.descriptions.forEach(function(p){l||(r(s,p,u),u=!1),l=!1});let h=t.append("line").attr("x1",de().state.padding).attr("y1",de().state.padding+a+de().state.dividerMargin/2).attr("y2",de().state.padding+a+de().state.dividerMargin/2).attr("class","descr-divider"),f=s.node().getBBox(),d=Math.max(f.width,i.width);return h.attr("x2",d+3*de().state.padding),t.insert("rect",":first-child").attr("x",de().state.padding).attr("y",de().state.padding).attr("width",d+2*de().state.padding).attr("height",f.height+a+2*de().state.padding).attr("rx",de().state.radius),t},"drawDescrState"),y0e=o((t,e,r)=>{let n=de().state.padding,i=2*de().state.padding,a=t.node().getBBox(),s=a.width,l=a.x,u=t.append("text").attr("x",0).attr("y",de().state.titleShift).attr("font-size",de().state.fontSize).attr("class","state-title").text(e.id),f=u.node().getBBox().width+i,d=Math.max(f,s);d===s&&(d=d+i);let p,m=t.node().getBBox();e.doc,p=l-n,f>s&&(p=(s-d)/2+n),Math.abs(l-m.x)s&&(p=l-(f-s)/2);let g=1-de().state.textHeight;return t.insert("rect",":first-child").attr("x",p).attr("y",g).attr("class",r?"alt-composit":"composit").attr("width",d).attr("height",m.height+de().state.textHeight+de().state.titleShift+1).attr("rx","0"),u.attr("x",p+n),f<=s&&u.attr("x",l+(d-i)/2-f/2+n),t.insert("rect",":first-child").attr("x",p).attr("y",de().state.titleShift-de().state.textHeight-de().state.padding).attr("width",d).attr("height",de().state.textHeight*3).attr("rx",de().state.radius),t.insert("rect",":first-child").attr("x",p).attr("y",de().state.titleShift-de().state.textHeight-de().state.padding).attr("width",d).attr("height",m.height+3+2*de().state.textHeight).attr("rx",de().state.radius),t},"addTitleAndBox"),bYe=o(t=>(t.append("circle").attr("class","end-state-outer").attr("r",de().state.sizeUnit+de().state.miniPadding).attr("cx",de().state.padding+de().state.sizeUnit+de().state.miniPadding).attr("cy",de().state.padding+de().state.sizeUnit+de().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",de().state.sizeUnit).attr("cx",de().state.padding+de().state.sizeUnit+2).attr("cy",de().state.padding+de().state.sizeUnit+2)),"drawEndState"),wYe=o((t,e)=>{let r=de().state.forkWidth,n=de().state.forkHeight;if(e.parentId){let i=r;r=n,n=i}return t.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",n).attr("x",de().state.padding).attr("y",de().state.padding)},"drawForkJoinState"),TYe=o((t,e,r,n)=>{let i=0,a=n.append("text");a.style("text-anchor","start"),a.attr("class","noteText");let s=t.replace(/\r\n/g,"
    ");s=s.replace(/\n/g,"
    ");let l=s.split(je.lineBreakRegex),u=1.25*de().state.noteMargin;for(let h of l){let f=h.trim();if(f.length>0){let d=a.append("tspan");if(d.text(f),u===0){let p=d.node().getBBox();u+=p.height}i+=u,d.attr("x",e+de().state.noteMargin),d.attr("y",r+i+1.25*de().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:i}},"_drawLongText"),kYe=o((t,e)=>{e.attr("class","state-note");let r=e.append("rect").attr("x",0).attr("y",de().state.padding),n=e.append("g"),{textWidth:i,textHeight:a}=TYe(t,0,0,n);return r.attr("height",a+2*de().state.noteMargin),r.attr("width",i+de().state.noteMargin*2),r},"drawNote"),cP=o(function(t,e){let r=e.id,n={id:r,label:e.id,width:0,height:0},i=t.append("g").attr("id",r).attr("class","stateGroup");e.type==="start"&&gYe(i),e.type==="end"&&bYe(i),(e.type==="fork"||e.type==="join")&&wYe(i,e),e.type==="note"&&kYe(e.note.text,i),e.type==="divider"&&yYe(i),e.type==="default"&&e.descriptions.length===0&&vYe(i,e),e.type==="default"&&e.descriptions.length>0&&xYe(i,e);let a=i.node().getBBox();return n.width=a.width+2*de().state.padding,n.height=a.height+2*de().state.padding,p0e.set(r,n),n},"drawState"),g0e=0,v0e=o(function(t,e,r){let n=o(function(u){switch(u){case tl.relationType.AGGREGATION:return"aggregation";case tl.relationType.EXTENSION:return"extension";case tl.relationType.COMPOSITION:return"composition";case tl.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(u=>!Number.isNaN(u.y));let i=e.points,a=Ka().x(function(u){return u.x}).y(function(u){return u.y}).curve(Do),s=t.append("path").attr("d",a(i)).attr("id","edge"+g0e).attr("class","transition"),l="";if(de().state.arrowMarkerAbsolute&&(l=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,l=l.replace(/\(/g,"\\("),l=l.replace(/\)/g,"\\)")),s.attr("marker-end","url("+l+"#"+n(tl.relationType.DEPENDENCY)+"End)"),r.title!==void 0){let u=t.append("g").attr("class","stateLabel"),{x:h,y:f}=Ut.calcLabelPosition(e.points),d=je.getRows(r.title),p=0,m=[],g=0,y=0;for(let b=0;b<=d.length;b++){let w=u.append("text").attr("text-anchor","middle").text(d[b]).attr("x",h).attr("y",f+p),_=w.node().getBBox();g=Math.max(g,_.width),y=Math.min(y,_.x),Y.info(_.x,h,f+p),p===0&&(p=w.node().getBBox().height,Y.info("Title height",p,f)),m.push(w)}let v=p*d.length;if(d.length>1){let b=(d.length-1)*p*.5;m.forEach((w,_)=>w.attr("y",f+_*p-b)),v=p*d.length}let x=u.node().getBBox();u.insert("rect",":first-child").attr("class","box").attr("x",h-g/2-de().state.padding/2).attr("y",f-v/2-de().state.padding/2-3.5).attr("width",g+de().state.padding).attr("height",v+de().state.padding),Y.info(x)}g0e++},"drawEdge")});var fo,uP,EYe,SYe,CYe,AYe,b0e,w0e,T0e=M(()=>{"use strict";mr();Pv();Ns();ht();fr();x0e();Vt();ni();uP={},EYe=o(function(){},"setConf"),SYe=o(function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),CYe=o(function(t,e,r,n){fo=de().state;let i=de().securityLevel,a;i==="sandbox"&&(a=ze("#i"+e));let s=i==="sandbox"?ze(a.nodes()[0].contentDocument.body):ze("body"),l=i==="sandbox"?a.nodes()[0].contentDocument:document;Y.debug("Rendering diagram "+t);let u=s.select(`[id='${e}']`);SYe(u);let h=n.db.getRootDoc();b0e(h,u,void 0,!1,s,l,n);let f=fo.padding,d=u.node().getBBox(),p=d.width+f*2,m=d.height+f*2,g=p*1.75;Zr(u,m,g,fo.useMaxWidth),u.attr("viewBox",`${d.x-fo.padding} ${d.y-fo.padding} `+p+" "+m)},"draw"),AYe=o(t=>t?t.length*fo.fontSizeFactor:1,"getLabelWidth"),b0e=o((t,e,r,n,i,a,s)=>{let l=new Mr({compound:!0,multigraph:!0}),u,h=!0;for(u=0;u{let T=_.parentElement,E=0,L=0;T&&(T.parentElement&&(E=T.parentElement.getBBox().width),L=parseInt(T.getAttribute("data-x-shift"),10),Number.isNaN(L)&&(L=0)),_.setAttribute("x1",0-L+8),_.setAttribute("x2",E-L-8)})):Y.debug("No Node "+b+": "+JSON.stringify(l.node(b)))});let v=y.getBBox();l.edges().forEach(function(b){b!==void 0&&l.edge(b)!==void 0&&(Y.debug("Edge "+b.v+" -> "+b.w+": "+JSON.stringify(l.edge(b))),v0e(e,l.edge(b),l.edge(b).relation))}),v=y.getBBox();let x={id:r||"root",label:r||"root",width:0,height:0};return x.width=v.width+2*fo.padding,x.height=v.height+2*fo.padding,Y.debug("Doc rendered",x,l),x},"renderDoc"),w0e={setConf:EYe,draw:CYe}});var k0e={};vr(k0e,{diagram:()=>_Ye});var _Ye,E0e=M(()=>{"use strict";zO();VE();oP();T0e();_Ye={parser:_E,db:tl,renderer:w0e,styles:UE,init:o(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,tl.clear()},"init")}});var A0e={};vr(A0e,{diagram:()=>RYe});var RYe,_0e=M(()=>{"use strict";zO();VE();oP();JO();RYe={parser:_E,db:tl,renderer:Jde,styles:UE,init:o(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,tl.clear()},"init")}});var hP,N0e,R0e=M(()=>{"use strict";hP=function(){var t=o(function(d,p,m,g){for(m=m||{},g=d.length;g--;m[d[g]]=p);return m},"o"),e=[6,8,10,11,12,14,16,17,18],r=[1,9],n=[1,10],i=[1,11],a=[1,12],s=[1,13],l=[1,14],u={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:o(function(p,m,g,y,v,x,b){var w=x.length-1;switch(v){case 1:return x[w-1];case 2:this.$=[];break;case 3:x[w-1].push(x[w]),this.$=x[w-1];break;case 4:case 5:this.$=x[w];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(x[w].substr(6)),this.$=x[w].substr(6);break;case 9:this.$=x[w].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=x[w].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(x[w].substr(8)),this.$=x[w].substr(8);break;case 13:y.addTask(x[w-1],x[w]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:n,14:i,16:a,17:s,18:l},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:r,12:n,14:i,16:a,17:s,18:l},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:o(function(p,m){if(m.recoverable)this.trace(p);else{var g=new Error(p);throw g.hash=m,g}},"parseError"),parse:o(function(p){var m=this,g=[0],y=[],v=[null],x=[],b=this.table,w="",_=0,T=0,E=0,L=2,C=1,A=x.slice.call(arguments,1),I=Object.create(this.lexer),D={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(D.yy[k]=this.yy[k]);I.setInput(p,D.yy),D.yy.lexer=I,D.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var R=I.yylloc;x.push(R);var S=I.options&&I.options.ranges;typeof D.yy.parseError=="function"?this.parseError=D.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(H){g.length=g.length-2*H,v.length=v.length-H,x.length=x.length-H}o(O,"popStack");function N(){var H;return H=y.pop()||I.lex()||C,typeof H!="number"&&(H instanceof Array&&(y=H,H=y.pop()),H=m.symbols_[H]||H),H}o(N,"lex");for(var P,F,B,$,z,W,j={},K,ie,Q,ee;;){if(B=g[g.length-1],this.defaultActions[B]?$=this.defaultActions[B]:((P===null||typeof P>"u")&&(P=N()),$=b[B]&&b[B][P]),typeof $>"u"||!$.length||!$[0]){var J="";ee=[];for(K in b[B])this.terminals_[K]&&K>L&&ee.push("'"+this.terminals_[K]+"'");I.showPosition?J="Parse error on line "+(_+1)+`: +`+I.showPosition()+` +Expecting `+ee.join(", ")+", got '"+(this.terminals_[P]||P)+"'":J="Parse error on line "+(_+1)+": Unexpected "+(P==C?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(J,{text:I.match,token:this.terminals_[P]||P,line:I.yylineno,loc:R,expected:ee})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+P);switch($[0]){case 1:g.push(P),v.push(I.yytext),x.push(I.yylloc),g.push($[1]),P=null,F?(P=F,F=null):(T=I.yyleng,w=I.yytext,_=I.yylineno,R=I.yylloc,E>0&&E--);break;case 2:if(ie=this.productions_[$[1]][1],j.$=v[v.length-ie],j._$={first_line:x[x.length-(ie||1)].first_line,last_line:x[x.length-1].last_line,first_column:x[x.length-(ie||1)].first_column,last_column:x[x.length-1].last_column},S&&(j._$.range=[x[x.length-(ie||1)].range[0],x[x.length-1].range[1]]),W=this.performAction.apply(j,[w,T,_,D.yy,$[1],v,x].concat(A)),typeof W<"u")return W;ie&&(g=g.slice(0,-1*ie*2),v=v.slice(0,-1*ie),x=x.slice(0,-1*ie)),g.push(this.productions_[$[1]][0]),v.push(j.$),x.push(j._$),Q=b[g[g.length-2]][g[g.length-1]],g.push(Q);break;case 3:return!0}}return!0},"parse")},h=function(){var d={EOF:1,parseError:o(function(m,g){if(this.yy.parser)this.yy.parser.parseError(m,g);else throw new Error(m)},"parseError"),setInput:o(function(p,m){return this.yy=m||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var m=p.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),p},"input"),unput:o(function(p){var m=p.length,g=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===y.length?this.yylloc.first_column:0)+y[y.length-g.length].length-g[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(p){this.unput(this.match.slice(p))},"less"),pastInput:o(function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?"...":"")+p.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var p=this.match;return p.length<20&&(p+=this._input.substr(0,20-p.length)),(p.substr(0,20)+(p.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var p=this.pastInput(),m=new Array(p.length+1).join("-");return p+this.upcomingInput()+` +`+m+"^"},"showPosition"),test_match:o(function(p,m){var g,y,v;if(this.options.backtrack_lexer&&(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(v.yylloc.range=this.yylloc.range.slice(0))),y=p[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(p[0].length),this.matched+=p[0],g=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var x in v)this[x]=v[x];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var p,m,g,y;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),x=0;xm[0].length)){if(m=g,y=x,this.options.backtrack_lexer){if(p=this.test_match(g,v[x]),p!==!1)return p;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(p=this.test_match(m,v[y]),p!==!1?p:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var m=this.next();return m||this.lex()},"lex"),begin:o(function(m){this.conditionStack.push(m)},"begin"),popState:o(function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},"topState"),pushState:o(function(m){this.begin(m)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(m,g,y,v){var x=v;switch(y){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return d}();u.lexer=h;function f(){this.yy={}}return o(f,"Parser"),f.prototype=u,u.Parser=f,new f}();hP.parser=hP;N0e=hP});var Yg,fP,Ax,_x,PYe,BYe,FYe,zYe,GYe,$Ye,VYe,M0e,UYe,dP,I0e=M(()=>{"use strict";Vt();ki();Yg="",fP=[],Ax=[],_x=[],PYe=o(function(){fP.length=0,Ax.length=0,Yg="",_x.length=0,_r()},"clear"),BYe=o(function(t){Yg=t,fP.push(t)},"addSection"),FYe=o(function(){return fP},"getSections"),zYe=o(function(){let t=M0e(),e=100,r=0;for(;!t&&r{r.people&&t.push(...r.people)}),[...new Set(t)].sort()},"updateActors"),$Ye=o(function(t,e){let r=e.substr(1).split(":"),n=0,i=[];r.length===1?(n=Number(r[0]),i=[]):(n=Number(r[0]),i=r[1].split(","));let a=i.map(l=>l.trim()),s={section:Yg,type:Yg,people:a,task:t,score:n};_x.push(s)},"addTask"),VYe=o(function(t){let e={section:Yg,type:Yg,description:t,task:t,classes:[]};Ax.push(e)},"addTaskOrg"),M0e=o(function(){let t=o(function(r){return _x[r].processed},"compileTask"),e=!0;for(let[r,n]of _x.entries())t(r),e=e&&n.processed;return e},"compileTasks"),UYe=o(function(){return GYe()},"getActors"),dP={getConfig:o(()=>de().journey,"getConfig"),clear:PYe,setDiagramTitle:ln,getDiagramTitle:Jr,setAccTitle:Rr,getAccTitle:Pr,setAccDescription:Br,getAccDescription:Fr,addSection:BYe,getSections:FYe,getTasks:zYe,addTask:$Ye,addTaskOrg:VYe,getActors:UYe}});var HYe,O0e,P0e=M(()=>{"use strict";HYe=o(t=>`.label { + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + color: ${t.textColor}; + } + .mouth { + stroke: #666; + } + + line { + stroke: ${t.textColor} + } + + .legend { + fill: ${t.textColor}; + } + + .label text { + fill: #333; + } + .label { + color: ${t.textColor} + } + + .face { + ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"}; + stroke: #999; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + stroke-width: 1px; + } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${t.arrowheadColor}; + } + + .edgePath .path { + stroke: ${t.lineColor}; + stroke-width: 1.5px; + } + + .flowchart-link { + stroke: ${t.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${t.edgeLabelBackground}; + rect { + opacity: 0.5; + } + text-align: center; + } + + .cluster rect { + } + + .cluster text { + fill: ${t.titleColor}; + } + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + font-size: 12px; + background: ${t.tertiaryColor}; + border: 1px solid ${t.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .task-type-0, .section-type-0 { + ${t.fillType0?`fill: ${t.fillType0}`:""}; + } + .task-type-1, .section-type-1 { + ${t.fillType0?`fill: ${t.fillType1}`:""}; + } + .task-type-2, .section-type-2 { + ${t.fillType0?`fill: ${t.fillType2}`:""}; + } + .task-type-3, .section-type-3 { + ${t.fillType0?`fill: ${t.fillType3}`:""}; + } + .task-type-4, .section-type-4 { + ${t.fillType0?`fill: ${t.fillType4}`:""}; + } + .task-type-5, .section-type-5 { + ${t.fillType0?`fill: ${t.fillType5}`:""}; + } + .task-type-6, .section-type-6 { + ${t.fillType0?`fill: ${t.fillType6}`:""}; + } + .task-type-7, .section-type-7 { + ${t.fillType0?`fill: ${t.fillType7}`:""}; + } + + .actor-0 { + ${t.actor0?`fill: ${t.actor0}`:""}; + } + .actor-1 { + ${t.actor1?`fill: ${t.actor1}`:""}; + } + .actor-2 { + ${t.actor2?`fill: ${t.actor2}`:""}; + } + .actor-3 { + ${t.actor3?`fill: ${t.actor3}`:""}; + } + .actor-4 { + ${t.actor4?`fill: ${t.actor4}`:""}; + } + .actor-5 { + ${t.actor5?`fill: ${t.actor5}`:""}; + } +`,"getStyles"),O0e=HYe});var pP,WYe,F0e,z0e,YYe,qYe,B0e,XYe,jYe,G0e,KYe,qg,$0e=M(()=>{"use strict";mr();qy();pP=o(function(t,e){return md(t,e)},"drawRect"),WYe=o(function(t,e){let n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function a(u){let h=El().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}o(a,"smile");function s(u){let h=El().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}o(s,"sad");function l(u){u.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return o(l,"ambivalent"),e.score>3?a(i):e.score<3?s(i):l(i),n},"drawFace"),F0e=o(function(t,e){let r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},"drawCircle"),z0e=o(function(t,e){return DY(t,e)},"drawText"),YYe=o(function(t,e){function r(i,a,s,l,u){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+l-u)+" "+(i+s-u*1.2)+","+(a+l)+" "+i+","+(a+l)}o(r,"genPoints");let n=t.append("polygon");n.attr("points",r(e.x,e.y,50,20,7)),n.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,z0e(t,e)},"drawLabel"),qYe=o(function(t,e,r){let n=t.append("g"),i=Sl();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width*e.taskCount+r.diagramMarginX*(e.taskCount-1),i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,pP(n,i),G0e(r)(e.text,n,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),B0e=-1,XYe=o(function(t,e,r){let n=e.x+r.width/2,i=t.append("g");B0e++;let a=300+5*30;i.append("line").attr("id","task"+B0e).attr("x1",n).attr("y1",e.y).attr("x2",n).attr("y2",a).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),WYe(i,{cx:n,cy:300+(5-e.score)*30,score:e.score});let s=Sl();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=r.width,s.height=r.height,s.class="task task-type-"+e.num,s.rx=3,s.ry=3,pP(i,s);let l=e.x+14;e.people.forEach(u=>{let h=e.actors[u].color,f={cx:l,cy:e.y,r:7,fill:h,stroke:"#000",title:u,pos:e.actors[u].position};F0e(i,f),l+=10}),G0e(r)(e.task,i,s.x,s.y,s.width,s.height,{class:"task"},r,e.colour)},"drawTask"),jYe=o(function(t,e){Y3(t,e)},"drawBackgroundRect"),G0e=function(){function t(i,a,s,l,u,h,f,d){let p=a.append("text").attr("x",s+u/2).attr("y",l+h/2+5).style("font-color",d).style("text-anchor","middle").text(i);n(p,f)}o(t,"byText");function e(i,a,s,l,u,h,f,d,p){let{taskFontSize:m,taskFontFamily:g}=d,y=i.split(//gi);for(let v=0;v{let i=Yu[n].color,a={cx:20,cy:r,r:7,fill:i,stroke:"#000",pos:Yu[n].position};qg.drawCircle(t,a);let s={x:40,y:r+7,fill:"#666",text:n,textMargin:e.boxTextMargin|5};qg.drawText(t,s),r+=20})}var QYe,Yu,HE,D0,JYe,rl,mP,V0e,eqe,gP,U0e=M(()=>{"use strict";mr();$0e();Vt();ni();QYe=o(function(t){Object.keys(t).forEach(function(r){HE[r]=t[r]})},"setConf"),Yu={};o(ZYe,"drawActorLegend");HE=de().journey,D0=HE.leftMargin,JYe=o(function(t,e,r,n){let i=de().journey,a=de().securityLevel,s;a==="sandbox"&&(s=ze("#i"+e));let l=a==="sandbox"?ze(s.nodes()[0].contentDocument.body):ze("body");rl.init();let u=l.select("#"+e);qg.initGraphics(u);let h=n.db.getTasks(),f=n.db.getDiagramTitle(),d=n.db.getActors();for(let x in Yu)delete Yu[x];let p=0;d.forEach(x=>{Yu[x]={color:i.actorColours[p%i.actorColours.length],position:p},p++}),ZYe(u),rl.insert(0,0,D0,Object.keys(Yu).length*50),eqe(u,h,0);let m=rl.getBounds();f&&u.append("text").text(f).attr("x",D0).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);let g=m.stopy-m.starty+2*i.diagramMarginY,y=D0+m.stopx+2*i.diagramMarginX;Zr(u,g,y,i.useMaxWidth),u.append("line").attr("x1",D0).attr("y1",i.height*4).attr("x2",y-D0-4).attr("y2",i.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");let v=f?70:0;u.attr("viewBox",`${m.startx} -25 ${y} ${g+v}`),u.attr("preserveAspectRatio","xMinYMin meet"),u.attr("height",g+v+25)},"draw"),rl={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:o(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:o(function(t,e,r,n){t[e]===void 0?t[e]=r:t[e]=n(r,t[e])},"updateVal"),updateBounds:o(function(t,e,r,n){let i=de().journey,a=this,s=0;function l(u){return o(function(f){s++;let d=a.sequenceItems.length-s+1;a.updateVal(f,"starty",e-d*i.boxMargin,Math.min),a.updateVal(f,"stopy",n+d*i.boxMargin,Math.max),a.updateVal(rl.data,"startx",t-d*i.boxMargin,Math.min),a.updateVal(rl.data,"stopx",r+d*i.boxMargin,Math.max),u!=="activation"&&(a.updateVal(f,"startx",t-d*i.boxMargin,Math.min),a.updateVal(f,"stopx",r+d*i.boxMargin,Math.max),a.updateVal(rl.data,"starty",e-d*i.boxMargin,Math.min),a.updateVal(rl.data,"stopy",n+d*i.boxMargin,Math.max))},"updateItemBounds")}o(l,"updateFn"),this.sequenceItems.forEach(l())},"updateBounds"),insert:o(function(t,e,r,n){let i=Math.min(t,r),a=Math.max(t,r),s=Math.min(e,n),l=Math.max(e,n);this.updateVal(rl.data,"startx",i,Math.min),this.updateVal(rl.data,"starty",s,Math.min),this.updateVal(rl.data,"stopx",a,Math.max),this.updateVal(rl.data,"stopy",l,Math.max),this.updateBounds(i,s,a,l)},"insert"),bumpVerticalPos:o(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:o(function(){return this.verticalPos},"getVerticalPos"),getBounds:o(function(){return this.data},"getBounds")},mP=HE.sectionFills,V0e=HE.sectionColours,eqe=o(function(t,e,r){let n=de().journey,i="",a=n.height*2+n.diagramMarginY,s=r+a,l=0,u="#CCC",h="black",f=0;for(let[d,p]of e.entries()){if(i!==p.section){u=mP[l%mP.length],f=l%mP.length,h=V0e[l%V0e.length];let g=0,y=p.section;for(let x=d;x(Yu[y]&&(g[y]=Yu[y]),g),{});p.x=d*n.taskMargin+d*n.width+D0,p.y=s,p.width=n.diagramMarginX,p.height=n.diagramMarginY,p.colour=h,p.fill=u,p.num=f,p.actors=m,qg.drawTask(t,p,n),rl.insert(p.x,p.y,p.x+p.width+n.taskMargin,300+5*30)}},"drawTasks"),gP={setConf:QYe,draw:JYe}});var H0e={};vr(H0e,{diagram:()=>tqe});var tqe,W0e=M(()=>{"use strict";R0e();I0e();P0e();U0e();tqe={parser:N0e,db:dP,renderer:gP,styles:O0e,init:o(t=>{gP.setConf(t.journey),dP.clear()},"init")}});var vP,Z0e,J0e=M(()=>{"use strict";vP=function(){var t=o(function(p,m,g,y){for(g=g||{},y=p.length;y--;g[p[y]]=m);return g},"o"),e=[6,8,10,11,12,14,16,17,20,21],r=[1,9],n=[1,10],i=[1,11],a=[1,12],s=[1,13],l=[1,16],u=[1,17],h={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:o(function(m,g,y,v,x,b,w){var _=b.length-1;switch(x){case 1:return b[_-1];case 2:this.$=[];break;case 3:b[_-1].push(b[_]),this.$=b[_-1];break;case 4:case 5:this.$=b[_];break;case 6:case 7:this.$=[];break;case 8:v.getCommonDb().setDiagramTitle(b[_].substr(6)),this.$=b[_].substr(6);break;case 9:this.$=b[_].trim(),v.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=b[_].trim(),v.getCommonDb().setAccDescription(this.$);break;case 12:v.addSection(b[_].substr(8)),this.$=b[_].substr(8);break;case 15:v.addTask(b[_],0,""),this.$=b[_];break;case 16:v.addEvent(b[_].substr(2)),this.$=b[_];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:n,14:i,16:a,17:s,18:14,19:15,20:l,21:u},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:18,11:r,12:n,14:i,16:a,17:s,18:14,19:15,20:l,21:u},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,19]},{15:[1,20]},t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,4]),t(e,[2,9]),t(e,[2,10])],defaultActions:{},parseError:o(function(m,g){if(g.recoverable)this.trace(m);else{var y=new Error(m);throw y.hash=g,y}},"parseError"),parse:o(function(m){var g=this,y=[0],v=[],x=[null],b=[],w=this.table,_="",T=0,E=0,L=0,C=2,A=1,I=b.slice.call(arguments,1),D=Object.create(this.lexer),k={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(k.yy[R]=this.yy[R]);D.setInput(m,k.yy),k.yy.lexer=D,k.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var S=D.yylloc;b.push(S);var O=D.options&&D.options.ranges;typeof k.yy.parseError=="function"?this.parseError=k.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(q){y.length=y.length-2*q,x.length=x.length-q,b.length=b.length-q}o(N,"popStack");function P(){var q;return q=v.pop()||D.lex()||A,typeof q!="number"&&(q instanceof Array&&(v=q,q=v.pop()),q=g.symbols_[q]||q),q}o(P,"lex");for(var F,B,$,z,W,j,K={},ie,Q,ee,J;;){if($=y[y.length-1],this.defaultActions[$]?z=this.defaultActions[$]:((F===null||typeof F>"u")&&(F=P()),z=w[$]&&w[$][F]),typeof z>"u"||!z.length||!z[0]){var H="";J=[];for(ie in w[$])this.terminals_[ie]&&ie>C&&J.push("'"+this.terminals_[ie]+"'");D.showPosition?H="Parse error on line "+(T+1)+`: +`+D.showPosition()+` +Expecting `+J.join(", ")+", got '"+(this.terminals_[F]||F)+"'":H="Parse error on line "+(T+1)+": Unexpected "+(F==A?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(H,{text:D.match,token:this.terminals_[F]||F,line:D.yylineno,loc:S,expected:J})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+F);switch(z[0]){case 1:y.push(F),x.push(D.yytext),b.push(D.yylloc),y.push(z[1]),F=null,B?(F=B,B=null):(E=D.yyleng,_=D.yytext,T=D.yylineno,S=D.yylloc,L>0&&L--);break;case 2:if(Q=this.productions_[z[1]][1],K.$=x[x.length-Q],K._$={first_line:b[b.length-(Q||1)].first_line,last_line:b[b.length-1].last_line,first_column:b[b.length-(Q||1)].first_column,last_column:b[b.length-1].last_column},O&&(K._$.range=[b[b.length-(Q||1)].range[0],b[b.length-1].range[1]]),j=this.performAction.apply(K,[_,E,T,k.yy,z[1],x,b].concat(I)),typeof j<"u")return j;Q&&(y=y.slice(0,-1*Q*2),x=x.slice(0,-1*Q),b=b.slice(0,-1*Q)),y.push(this.productions_[z[1]][0]),x.push(K.$),b.push(K._$),ee=w[y[y.length-2]][y[y.length-1]],y.push(ee);break;case 3:return!0}}return!0},"parse")},f=function(){var p={EOF:1,parseError:o(function(g,y){if(this.yy.parser)this.yy.parser.parseError(g,y);else throw new Error(g)},"parseError"),setInput:o(function(m,g){return this.yy=g||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var g=m.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:o(function(m){var g=m.length,y=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var v=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var x=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===v.length?this.yylloc.first_column:0)+v[v.length-y.length].length-y[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(m){this.unput(this.match.slice(m))},"less"),pastInput:o(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var m=this.pastInput(),g=new Array(m.length+1).join("-");return m+this.upcomingInput()+` +`+g+"^"},"showPosition"),test_match:o(function(m,g){var y,v,x;if(this.options.backtrack_lexer&&(x={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(x.yylloc.range=this.yylloc.range.slice(0))),v=m[0].match(/(?:\r\n?|\n).*/g),v&&(this.yylineno+=v.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(m[0].length),this.matched+=m[0],y=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var b in x)this[b]=x[b];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,g,y,v;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),b=0;bg[0].length)){if(g=y,v=b,this.options.backtrack_lexer){if(m=this.test_match(y,x[b]),m!==!1)return m;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(m=this.test_match(g,x[v]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var g=this.next();return g||this.lex()},"lex"),begin:o(function(g){this.conditionStack.push(g)},"begin"),popState:o(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:o(function(g){this.begin(g)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(g,y,v,x){var b=x;switch(v){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s[^:\n]+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return p}();h.lexer=f;function d(){this.yy={}}return o(d,"Parser"),d.prototype=h,h.Parser=d,new d}();vP.parser=vP;Z0e=vP});var bP={};vr(bP,{addEvent:()=>lpe,addSection:()=>ipe,addTask:()=>ope,addTaskOrg:()=>cpe,clear:()=>npe,default:()=>uqe,getCommonDb:()=>rpe,getSections:()=>ape,getTasks:()=>spe});var Xg,tpe,xP,WE,jg,rpe,npe,ipe,ape,spe,ope,lpe,cpe,epe,uqe,upe=M(()=>{"use strict";ki();Xg="",tpe=0,xP=[],WE=[],jg=[],rpe=o(()=>iy,"getCommonDb"),npe=o(function(){xP.length=0,WE.length=0,Xg="",jg.length=0,_r()},"clear"),ipe=o(function(t){Xg=t,xP.push(t)},"addSection"),ape=o(function(){return xP},"getSections"),spe=o(function(){let t=epe(),e=100,r=0;for(;!t&&rr.id===tpe-1).events.push(t)},"addEvent"),cpe=o(function(t){let e={section:Xg,type:Xg,description:t,task:t,classes:[]};WE.push(e)},"addTaskOrg"),epe=o(function(){let t=o(function(r){return jg[r].processed},"compileTask"),e=!0;for(let[r,n]of jg.entries())t(r),e=e&&n.processed;return e},"compileTasks"),uqe={clear:npe,getCommonDb:rpe,addSection:ipe,getSections:ape,getTasks:spe,addTask:ope,addTaskOrg:cpe,addEvent:lpe}});function ppe(t,e){t.each(function(){var r=ze(this),n=r.text().split(/(\s+|
    )/).reverse(),i,a=[],s=1.1,l=r.attr("y"),u=parseFloat(r.attr("dy")),h=r.text(null).append("tspan").attr("x",0).attr("y",l).attr("dy",u+"em");for(let f=0;fe||i==="
    ")&&(a.pop(),h.text(a.join(" ").trim()),i==="
    "?a=[""]:a=[i],h=r.append("tspan").attr("x",0).attr("y",l).attr("dy",s+"em").text(i))})}var hqe,YE,fqe,dqe,fpe,pqe,mqe,hpe,gqe,yqe,vqe,wP,dpe,xqe,bqe,wqe,Tqe,vf,mpe=M(()=>{"use strict";mr();hqe=12,YE=o(function(t,e){let r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.class!==void 0&&r.attr("class",e.class),r},"drawRect"),fqe=o(function(t,e){let n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function a(u){let h=El().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}o(a,"smile");function s(u){let h=El().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}o(s,"sad");function l(u){u.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return o(l,"ambivalent"),e.score>3?a(i):e.score<3?s(i):l(i),n},"drawFace"),dqe=o(function(t,e){let r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},"drawCircle"),fpe=o(function(t,e){let r=e.text.replace(//gi," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),e.class!==void 0&&n.attr("class",e.class);let i=n.append("tspan");return i.attr("x",e.x+e.textMargin*2),i.text(r),n},"drawText"),pqe=o(function(t,e){function r(i,a,s,l,u){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+l-u)+" "+(i+s-u*1.2)+","+(a+l)+" "+i+","+(a+l)}o(r,"genPoints");let n=t.append("polygon");n.attr("points",r(e.x,e.y,50,20,7)),n.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,fpe(t,e)},"drawLabel"),mqe=o(function(t,e,r){let n=t.append("g"),i=wP();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width,i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,YE(n,i),dpe(r)(e.text,n,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),hpe=-1,gqe=o(function(t,e,r){let n=e.x+r.width/2,i=t.append("g");hpe++;let a=300+5*30;i.append("line").attr("id","task"+hpe).attr("x1",n).attr("y1",e.y).attr("x2",n).attr("y2",a).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),fqe(i,{cx:n,cy:300+(5-e.score)*30,score:e.score});let s=wP();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=r.width,s.height=r.height,s.class="task task-type-"+e.num,s.rx=3,s.ry=3,YE(i,s),dpe(r)(e.task,i,s.x,s.y,s.width,s.height,{class:"task"},r,e.colour)},"drawTask"),yqe=o(function(t,e){YE(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),vqe=o(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),wP=o(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),dpe=function(){function t(i,a,s,l,u,h,f,d){let p=a.append("text").attr("x",s+u/2).attr("y",l+h/2+5).style("font-color",d).style("text-anchor","middle").text(i);n(p,f)}o(t,"byText");function e(i,a,s,l,u,h,f,d,p){let{taskFontSize:m,taskFontFamily:g}=d,y=i.split(//gi);for(let v=0;v{"use strict";mr();mpe();ht();Vt();ni();kqe=o(function(t,e,r,n){let i=de(),a=i.leftMargin??50;Y.debug("timeline",n.db);let s=i.securityLevel,l;s==="sandbox"&&(l=ze("#i"+e));let h=(s==="sandbox"?ze(l.nodes()[0].contentDocument.body):ze("body")).select("#"+e);h.append("g");let f=n.db.getTasks(),d=n.db.getCommonDb().getDiagramTitle();Y.debug("task",f),vf.initGraphics(h);let p=n.db.getSections();Y.debug("sections",p);let m=0,g=0,y=0,v=0,x=50+a,b=50;v=50;let w=0,_=!0;p.forEach(function(A){let I={number:w,descr:A,section:w,width:150,padding:20,maxHeight:m},D=vf.getVirtualNodeHeight(h,I,i);Y.debug("sectionHeight before draw",D),m=Math.max(m,D+20)});let T=0,E=0;Y.debug("tasks.length",f.length);for(let[A,I]of f.entries()){let D={number:A,descr:I,section:I.section,width:150,padding:20,maxHeight:g},k=vf.getVirtualNodeHeight(h,D,i);Y.debug("taskHeight before draw",k),g=Math.max(g,k+20),T=Math.max(T,I.events.length);let R=0;for(let S of I.events){let O={descr:S,section:I.section,number:I.section,width:150,padding:20,maxHeight:50};R+=vf.getVirtualNodeHeight(h,O,i)}E=Math.max(E,R)}Y.debug("maxSectionHeight before draw",m),Y.debug("maxTaskHeight before draw",g),p&&p.length>0?p.forEach(A=>{let I=f.filter(S=>S.section===A),D={number:w,descr:A,section:w,width:200*Math.max(I.length,1)-50,padding:20,maxHeight:m};Y.debug("sectionNode",D);let k=h.append("g"),R=vf.drawNode(k,D,w,i);Y.debug("sectionNode output",R),k.attr("transform",`translate(${x}, ${v})`),b+=m+50,I.length>0&&gpe(h,I,w,x,b,g,i,T,E,m,!1),x+=200*Math.max(I.length,1),b=v,w++}):(_=!1,gpe(h,f,w,x,b,g,i,T,E,m,!0));let L=h.node().getBBox();Y.debug("bounds",L),d&&h.append("text").text(d).attr("x",L.width/2-a).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),y=_?m+g+150:g+100,h.append("g").attr("class","lineWrapper").append("line").attr("x1",a).attr("y1",y).attr("x2",L.width+3*a).attr("y2",y).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),_o(void 0,h,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),gpe=o(function(t,e,r,n,i,a,s,l,u,h,f){for(let d of e){let p={descr:d.task,section:r,number:r,width:150,padding:20,maxHeight:a};Y.debug("taskNode",p);let m=t.append("g").attr("class","taskWrapper"),y=vf.drawNode(m,p,r,s).height;if(Y.debug("taskHeight after draw",y),m.attr("transform",`translate(${n}, ${i})`),a=Math.max(a,y),d.events){let v=t.append("g").attr("class","lineWrapper"),x=a;i+=100,x=x+Eqe(t,d.events,r,n,i,s),i-=100,v.append("line").attr("x1",n+190/2).attr("y1",i+a).attr("x2",n+190/2).attr("y2",i+a+(f?a:h)+u+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}n=n+200,f&&!s.timeline?.disableMulticolor&&r++}i=i-10},"drawTasks"),Eqe=o(function(t,e,r,n,i,a){let s=0,l=i;i=i+100;for(let u of e){let h={descr:u,section:r,number:r,width:150,padding:20,maxHeight:50};Y.debug("eventNode",h);let f=t.append("g").attr("class","eventWrapper"),p=vf.drawNode(f,h,r,a).height;s=s+p,f.attr("transform",`translate(${n}, ${i})`),i=i+10+p}return i=l,s},"drawEvents"),ype={setConf:o(()=>{},"setConf"),draw:kqe}});var Sqe,Cqe,xpe,bpe=M(()=>{"use strict";To();Sqe=o(t=>{let e="";for(let r=0;r` + .edge { + stroke-width: 3; + } + ${Sqe(t)} + .section-root rect, .section-root path, .section-root circle { + fill: ${t.git0}; + } + .section-root text { + fill: ${t.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .eventWrapper { + filter: brightness(120%); + } +`,"getStyles"),xpe=Cqe});var wpe={};vr(wpe,{diagram:()=>Aqe});var Aqe,Tpe=M(()=>{"use strict";J0e();upe();vpe();bpe();Aqe={db:bP,renderer:ype,parser:Z0e,styles:xpe}});var TP,Spe,Cpe=M(()=>{"use strict";TP=function(){var t=o(function(_,T,E,L){for(E=E||{},L=_.length;L--;E[_[L]]=T);return E},"o"),e=[1,4],r=[1,13],n=[1,12],i=[1,15],a=[1,16],s=[1,20],l=[1,19],u=[6,7,8],h=[1,26],f=[1,24],d=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],g=[1,33],y=[1,34],v=[1,6,7,11,13,15,16,19,22],x={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:o(function(T,E,L,C,A,I,D){var k=I.length-1;switch(A){case 6:case 7:return C;case 8:C.getLogger().trace("Stop NL ");break;case 9:C.getLogger().trace("Stop EOF ");break;case 11:C.getLogger().trace("Stop NL2 ");break;case 12:C.getLogger().trace("Stop EOF2 ");break;case 15:C.getLogger().info("Node: ",I[k].id),C.addNode(I[k-1].length,I[k].id,I[k].descr,I[k].type);break;case 16:C.getLogger().trace("Icon: ",I[k]),C.decorateNode({icon:I[k]});break;case 17:case 21:C.decorateNode({class:I[k]});break;case 18:C.getLogger().trace("SPACELIST");break;case 19:C.getLogger().trace("Node: ",I[k].id),C.addNode(0,I[k].id,I[k].descr,I[k].type);break;case 20:C.decorateNode({icon:I[k]});break;case 25:C.getLogger().trace("node found ..",I[k-2]),this.$={id:I[k-1],descr:I[k-1],type:C.getType(I[k-2],I[k])};break;case 26:this.$={id:I[k],descr:I[k],type:C.nodeType.DEFAULT};break;case 27:C.getLogger().trace("node found ..",I[k-3]),this.$={id:I[k-3],descr:I[k-1],type:C.getType(I[k-2],I[k])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:l},t(u,[2,3]),{1:[2,2]},t(u,[2,4]),t(u,[2,5]),{1:[2,6],6:r,12:21,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:l},{6:r,9:22,12:11,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:l},{6:h,7:f,10:23,11:d},t(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:l}),t(p,[2,18]),t(p,[2,19]),t(p,[2,20]),t(p,[2,21]),t(p,[2,23]),t(p,[2,24]),t(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:f,10:32,11:d},{1:[2,7],6:r,12:21,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:l},t(m,[2,14],{7:g,11:y}),t(v,[2,8]),t(v,[2,9]),t(v,[2,10]),t(p,[2,15]),t(p,[2,16]),t(p,[2,17]),{20:[1,35]},{21:[1,36]},t(m,[2,13],{7:g,11:y}),t(v,[2,11]),t(v,[2,12]),{21:[1,37]},t(p,[2,25]),t(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(T,E){if(E.recoverable)this.trace(T);else{var L=new Error(T);throw L.hash=E,L}},"parseError"),parse:o(function(T){var E=this,L=[0],C=[],A=[null],I=[],D=this.table,k="",R=0,S=0,O=0,N=2,P=1,F=I.slice.call(arguments,1),B=Object.create(this.lexer),$={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&($.yy[z]=this.yy[z]);B.setInput(T,$.yy),$.yy.lexer=B,$.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var W=B.yylloc;I.push(W);var j=B.options&&B.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function K(ke){L.length=L.length-2*ke,A.length=A.length-ke,I.length=I.length-ke}o(K,"popStack");function ie(){var ke;return ke=C.pop()||B.lex()||P,typeof ke!="number"&&(ke instanceof Array&&(C=ke,ke=C.pop()),ke=E.symbols_[ke]||ke),ke}o(ie,"lex");for(var Q,ee,J,H,q,Z,ae={},ue,ce,te,De;;){if(J=L[L.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((Q===null||typeof Q>"u")&&(Q=ie()),H=D[J]&&D[J][Q]),typeof H>"u"||!H.length||!H[0]){var oe="";De=[];for(ue in D[J])this.terminals_[ue]&&ue>N&&De.push("'"+this.terminals_[ue]+"'");B.showPosition?oe="Parse error on line "+(R+1)+`: +`+B.showPosition()+` +Expecting `+De.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":oe="Parse error on line "+(R+1)+": Unexpected "+(Q==P?"end of input":"'"+(this.terminals_[Q]||Q)+"'"),this.parseError(oe,{text:B.match,token:this.terminals_[Q]||Q,line:B.yylineno,loc:W,expected:De})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+Q);switch(H[0]){case 1:L.push(Q),A.push(B.yytext),I.push(B.yylloc),L.push(H[1]),Q=null,ee?(Q=ee,ee=null):(S=B.yyleng,k=B.yytext,R=B.yylineno,W=B.yylloc,O>0&&O--);break;case 2:if(ce=this.productions_[H[1]][1],ae.$=A[A.length-ce],ae._$={first_line:I[I.length-(ce||1)].first_line,last_line:I[I.length-1].last_line,first_column:I[I.length-(ce||1)].first_column,last_column:I[I.length-1].last_column},j&&(ae._$.range=[I[I.length-(ce||1)].range[0],I[I.length-1].range[1]]),Z=this.performAction.apply(ae,[k,S,R,$.yy,H[1],A,I].concat(F)),typeof Z<"u")return Z;ce&&(L=L.slice(0,-1*ce*2),A=A.slice(0,-1*ce),I=I.slice(0,-1*ce)),L.push(this.productions_[H[1]][0]),A.push(ae.$),I.push(ae._$),te=D[L[L.length-2]][L[L.length-1]],L.push(te);break;case 3:return!0}}return!0},"parse")},b=function(){var _={EOF:1,parseError:o(function(E,L){if(this.yy.parser)this.yy.parser.parseError(E,L);else throw new Error(E)},"parseError"),setInput:o(function(T,E){return this.yy=E||this.yy||{},this._input=T,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var T=this._input[0];this.yytext+=T,this.yyleng++,this.offset++,this.match+=T,this.matched+=T;var E=T.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),T},"input"),unput:o(function(T){var E=T.length,L=T.split(/(?:\r\n?|\n)/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var C=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),L.length-1&&(this.yylineno-=L.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:L?(L.length===C.length?this.yylloc.first_column:0)+C[C.length-L.length].length-L[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(T){this.unput(this.match.slice(T))},"less"),pastInput:o(function(){var T=this.matched.substr(0,this.matched.length-this.match.length);return(T.length>20?"...":"")+T.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var T=this.match;return T.length<20&&(T+=this._input.substr(0,20-T.length)),(T.substr(0,20)+(T.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var T=this.pastInput(),E=new Array(T.length+1).join("-");return T+this.upcomingInput()+` +`+E+"^"},"showPosition"),test_match:o(function(T,E){var L,C,A;if(this.options.backtrack_lexer&&(A={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(A.yylloc.range=this.yylloc.range.slice(0))),C=T[0].match(/(?:\r\n?|\n).*/g),C&&(this.yylineno+=C.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:C?C[C.length-1].length-C[C.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+T[0].length},this.yytext+=T[0],this.match+=T[0],this.matches=T,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(T[0].length),this.matched+=T[0],L=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),L)return L;if(this._backtrack){for(var I in A)this[I]=A[I];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var T,E,L,C;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),I=0;IE[0].length)){if(E=L,C=I,this.options.backtrack_lexer){if(T=this.test_match(L,A[I]),T!==!1)return T;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(T=this.test_match(E,A[C]),T!==!1?T:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var E=this.next();return E||this.lex()},"lex"),begin:o(function(E){this.conditionStack.push(E)},"begin"),popState:o(function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},"topState"),pushState:o(function(E){this.begin(E)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(E,L,C,A){var I=A;switch(C){case 0:return E.getLogger().trace("Found comment",L.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:E.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return E.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:E.getLogger().trace("end icon"),this.popState();break;case 10:return E.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return E.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return E.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return E.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:E.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return E.getLogger().trace("description:",L.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),E.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),E.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),E.getLogger().trace("node end ...",L.yytext),"NODE_DEND";break;case 30:return this.popState(),E.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),E.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),E.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),E.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),E.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return E.getLogger().trace("Long description:",L.yytext),20;break;case 36:return E.getLogger().trace("Long description:",L.yytext),20;break}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return _}();x.lexer=b;function w(){this.yy={}}return o(w,"Parser"),w.prototype=x,x.Parser=w,new w}();TP.parser=TP;Spe=TP});var Vl,Ape,kP,Nqe,Rqe,Mqe,Iqe,Ui,Oqe,Pqe,Bqe,Fqe,zqe,Gqe,$qe,_pe,Lpe=M(()=>{"use strict";Vt();fr();ht();hs();Vl=[],Ape=0,kP={},Nqe=o(()=>{Vl=[],Ape=0,kP={}},"clear"),Rqe=o(function(t){for(let e=Vl.length-1;e>=0;e--)if(Vl[e].levelVl.length>0?Vl[0]:null,"getMindmap"),Iqe=o((t,e,r,n)=>{Y.info("addNode",t,e,r,n);let i=de(),a=i.mindmap?.padding??ur.mindmap.padding;switch(n){case Ui.ROUNDED_RECT:case Ui.RECT:case Ui.HEXAGON:a*=2}let s={id:Ape++,nodeId:Tr(e,i),level:t,descr:Tr(r,i),type:n,children:[],width:i.mindmap?.maxNodeWidth??ur.mindmap.maxNodeWidth,padding:a},l=Rqe(t);if(l)l.children.push(s),Vl.push(s);else if(Vl.length===0)Vl.push(s);else throw new Error('There can be only one root. No parent could be found for ("'+s.descr+'")')},"addNode"),Ui={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Oqe=o((t,e)=>{switch(Y.debug("In get type",t,e),t){case"[":return Ui.RECT;case"(":return e===")"?Ui.ROUNDED_RECT:Ui.CLOUD;case"((":return Ui.CIRCLE;case")":return Ui.CLOUD;case"))":return Ui.BANG;case"{{":return Ui.HEXAGON;default:return Ui.DEFAULT}},"getType"),Pqe=o((t,e)=>{kP[t]=e},"setElementForId"),Bqe=o(t=>{if(!t)return;let e=de(),r=Vl[Vl.length-1];t.icon&&(r.icon=Tr(t.icon,e)),t.class&&(r.class=Tr(t.class,e))},"decorateNode"),Fqe=o(t=>{switch(t){case Ui.DEFAULT:return"no-border";case Ui.RECT:return"rect";case Ui.ROUNDED_RECT:return"rounded-rect";case Ui.CIRCLE:return"circle";case Ui.CLOUD:return"cloud";case Ui.BANG:return"bang";case Ui.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),zqe=o(()=>Y,"getLogger"),Gqe=o(t=>kP[t],"getElementById"),$qe={clear:Nqe,addNode:Iqe,getMindmap:Mqe,nodeType:Ui,getType:Oqe,setElementForId:Pqe,decorateNode:Bqe,type2Str:Fqe,getLogger:zqe,getElementById:Gqe},_pe=$qe});function Yi(t){"@babel/helpers - typeof";return Yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yi(t)}function JP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dpe(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},"n"),e:o(function(u){throw u},"e"),f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,s=!1,l;return{s:o(function(){r=r.call(t)},"s"),n:o(function(){var u=r.next();return a=u.done,u},"n"),e:o(function(u){s=!0,l=u},"e"),f:o(function(){try{!a&&r.return!=null&&r.return()}finally{if(s)throw l}},"f")}}function pXe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function mXe(t,e){return e={exports:{}},t(e,e.exports),e.exports}function TXe(t){for(var e=t.length;e--&&wXe.test(t.charAt(e)););return e}function SXe(t){return t&&t.slice(0,kXe(t)+1).replace(EXe,"")}function DXe(t){var e=_Xe.call(t,Lx),r=t[Lx];try{t[Lx]=void 0;var n=!0}catch{}var i=LXe.call(t);return n&&(e?t[Lx]=r:delete t[Lx]),i}function IXe(t){return MXe.call(t)}function FXe(t){return t==null?t===void 0?BXe:PXe:Ipe&&Ipe in Object(t)?NXe(t):OXe(t)}function zXe(t){return t!=null&&typeof t=="object"}function VXe(t){return typeof t=="symbol"||GXe(t)&&tge(t)==$Xe}function qXe(t){if(typeof t=="number")return t;if(eb(t))return Ope;if(F0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=F0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=CXe(t);var r=HXe.test(t);return r||WXe.test(t)?YXe(t.slice(2),r?2:8):UXe.test(t)?Ope:+t}function QXe(t,e,r){var n,i,a,s,l,u,h=0,f=!1,d=!1,p=!0;if(typeof t!="function")throw new TypeError(XXe);e=Ppe(e)||0,F0(r)&&(f=!!r.leading,d="maxWait"in r,a=d?jXe(Ppe(r.maxWait)||0,e):a,p="trailing"in r?!!r.trailing:p);function m(E){var L=n,C=i;return n=i=void 0,h=E,s=t.apply(C,L),s}o(m,"invokeFunc");function g(E){return h=E,l=setTimeout(x,e),f?m(E):s}o(g,"leadingEdge");function y(E){var L=E-u,C=E-h,A=e-L;return d?KXe(A,a-C):A}o(y,"remainingWait");function v(E){var L=E-u,C=E-h;return u===void 0||L>=e||L<0||d&&C>=a}o(v,"shouldInvoke");function x(){var E=EP();if(v(E))return b(E);l=setTimeout(x,y(E))}o(x,"timerExpired");function b(E){return l=void 0,p&&n?m(E):(n=i=void 0,s)}o(b,"trailingEdge");function w(){l!==void 0&&clearTimeout(l),h=0,n=u=i=l=void 0}o(w,"cancel");function _(){return l===void 0?s:b(EP())}o(_,"flush");function T(){var E=EP(),L=v(E);if(n=arguments,i=this,u=E,L){if(l===void 0)return g(u);if(d)return clearTimeout(l),l=setTimeout(x,e),m(u)}return l===void 0&&(l=setTimeout(x,e)),s}return o(T,"debounced"),T.cancel=w,T.flush=_,T}function D6(t,e,r,n,i,a){var s;return ti(t)?s=t:s=u1[t]||u1.euclidean,e===0&&ti(t)?s(i,a):s(e,r,n,i,a)}function UKe(t,e){if(N6(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||eb(t)?!0:VKe.test(t)||!$Ke.test(t)||e!=null&&t in Object(e)}function jKe(t){if(!F0(t))return!1;var e=tge(t);return e==YKe||e==qKe||e==WKe||e==XKe}function ZKe(t){return!!rme&&rme in t}function rQe(t){if(t!=null){try{return tQe.call(t)}catch{}try{return t+""}catch{}}return""}function hQe(t){if(!F0(t)||JKe(t))return!1;var e=KKe(t)?uQe:aQe;return e.test(nQe(t))}function dQe(t,e){return t?.[e]}function mQe(t,e){var r=pQe(t,e);return fQe(r)?r:void 0}function yQe(){this.__data__=qx?qx(null):{},this.size=0}function xQe(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function EQe(t){var e=this.__data__;if(qx){var r=e[t];return r===wQe?void 0:r}return kQe.call(e,t)?e[t]:void 0}function _Qe(t){var e=this.__data__;return qx?e[t]!==void 0:AQe.call(e,t)}function NQe(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=qx&&e===void 0?DQe:e,this}function p1(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1}function WQe(t,e){var r=this.__data__,n=R6(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function m1(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t0;){var f=i.shift();e(f),a.add(f.id()),l&&n(i,a,f)}return t}function Ige(t,e,r){if(r.isParent())for(var n=r._private.children,i=0;i0&&arguments[0]!==void 0?arguments[0]:LJe,e=arguments.length>1?arguments[1]:void 0,r=0;r0?k=S:D=S;while(Math.abs(R)>s&&++O=a?b(I,O):N===0?O:_(I,D,D+h)}o(T,"getTForX");var E=!1;function L(){E=!0,(t!==e||r!==n)&&w()}o(L,"precompute");var C=o(function(D){return E||L(),t===e&&r===n?D:D===0?0:D===1?1:v(T(D),e,n)},"f");C.getControlPoints=function(){return[{x:t,y:e},{x:r,y:n}]};var A="generateBezier("+[t,e,r,n]+")";return C.toString=function(){return A},C}function wme(t,e,r,n,i){if(n===1||e===r)return r;var a=i(e,r,n);return t==null||((t.roundValue||t.color)&&(a=Math.round(a)),t.min!==void 0&&(a=Math.max(a,t.min)),t.max!==void 0&&(a=Math.min(a,t.max))),a}function Tme(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function Zg(t,e,r,n,i){var a=i!=null?i.type:null;r<0?r=0:r>1&&(r=1);var s=Tme(t,i),l=Tme(e,i);if(xt(s)&&xt(l))return wme(a,s,l,r,n);if(wn(s)&&wn(l)){for(var u=[],h=0;h0?(m==="spring"&&g.push(s.duration),s.easingImpl=c6[m].apply(null,g)):s.easingImpl=c6[m]}var y=s.easingImpl,v;if(s.duration===0?v=1:v=(r-u)/s.duration,s.applying&&(v=s.progress),v<0?v=0:v>1&&(v=1),s.delay==null){var x=s.startPosition,b=s.position;if(b&&i&&!t.locked()){var w={};Mx(x.x,b.x)&&(w.x=Zg(x.x,b.x,v,y)),Mx(x.y,b.y)&&(w.y=Zg(x.y,b.y,v,y)),t.position(w)}var _=s.startPan,T=s.pan,E=a.pan,L=T!=null&&n;L&&(Mx(_.x,T.x)&&(E.x=Zg(_.x,T.x,v,y)),Mx(_.y,T.y)&&(E.y=Zg(_.y,T.y,v,y)),t.emit("pan"));var C=s.startZoom,A=s.zoom,I=A!=null&&n;I&&(Mx(C,A)&&(a.zoom=Wx(a.minZoom,Zg(C,A,v,y),a.maxZoom)),t.emit("zoom")),(L||I)&&t.emit("viewport");var D=s.style;if(D&&D.length>0&&i){for(var k=0;k=0;L--){var C=E[L];C()}E.splice(0,E.length)},"callbacks"),b=m.length-1;b>=0;b--){var w=m[b],_=w._private;if(_.stopped){m.splice(b,1),_.hooked=!1,_.playing=!1,_.started=!1,x(_.frames);continue}!_.playing&&!_.applying||(_.playing&&_.applying&&(_.applying=!1),_.started||UJe(f,w,t),VJe(f,w,t,d),_.applying&&(_.applying=!1),x(_.frames),_.step!=null&&_.step(t),w.completed()&&(m.splice(b,1),_.hooked=!1,_.playing=!1,_.started=!1,x(_.completes)),y=!0)}return!d&&m.length===0&&g.length===0&&n.push(f),y}o(i,"stepOne");for(var a=!1,s=0;s0?e.notify("draw",r):e.notify("draw")),r.unmerge(n),e.emit("step")}function Qge(t){this.options=ir({},QJe,ZJe,t)}function Zge(t){this.options=ir({},JJe,t)}function Jge(t){this.options=ir({},eet,t)}function G6(t){this.options=ir({},tet,t),this.options.layout=this;var e=this.options.eles.nodes(),r=this.options.eles.edges(),n=r.filter(function(i){var a=i.source().data("id"),s=i.target().data("id"),l=e.some(function(h){return h.data("id")===a}),u=e.some(function(h){return h.data("id")===s});return!l||!u});this.options.eles=this.options.eles.not(n)}function t1e(t){this.options=ir({},xet,t)}function vB(t){this.options=ir({},bet,t)}function r1e(t){this.options=ir({},wet,t)}function n1e(t){this.options=ir({},Tet,t)}function i1e(t){this.options=t,this.notifications=0}function o1e(t,e){e.radius===0?t.lineTo(e.cx,e.cy):t.arc(e.cx,e.cy,e.radius,e.startAngle,e.endAngle,e.counterClockwise)}function bB(t,e,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return n===0||e.radius===0?{cx:e.x,cy:e.y,radius:0,startX:e.x,startY:e.y,stopX:e.x,stopY:e.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(Cet(t,e,r,n,i),{cx:WP,cy:YP,radius:O0,startX:a1e,startY:s1e,stopX:qP,stopY:XP,startAngle:$c.ang+Math.PI/2*P0,endAngle:nl.ang-Math.PI/2*P0,counterClockwise:f6})}function l1e(t){var e=[];if(t!=null){for(var r=0;r5&&arguments[5]!==void 0?arguments[5]:5,s=arguments.length>6?arguments[6]:void 0;t.beginPath(),t.moveTo(e+a,r),t.lineTo(e+n-a,r),t.quadraticCurveTo(e+n,r,e+n,r+a),t.lineTo(e+n,r+i-a),t.quadraticCurveTo(e+n,r+i,e+n-a,r+i),t.lineTo(e+a,r+i),t.quadraticCurveTo(e,r+i,e,r+i-a),t.lineTo(e,r+a),t.quadraticCurveTo(e,r,e+a,r),t.closePath(),s?t.stroke():t.fill()}function ptt(t,e){for(var r=atob(t),n=new ArrayBuffer(r.length),i=new Uint8Array(n),a=0;a{"use strict";o(Yi,"_typeof");o(JP,"_classCallCheck");o(Dpe,"_defineProperties");o(eB,"_createClass");o(Hme,"_defineProperty$1");o(Ul,"_slicedToArray");o(Vqe,"_arrayWithHoles");o(Uqe,"_iterableToArrayLimit");o(Wme,"_unsupportedIterableToArray");o(Npe,"_arrayLikeToArray");o(Hqe,"_nonIterableRest");o(Yme,"_createForOfIteratorHelper");Hi=typeof window>"u"?null:window,Rpe=Hi?Hi.navigator:null;Hi&&Hi.document;Wqe=Yi(""),qme=Yi({}),Yqe=Yi(function(){}),qqe=typeof HTMLElement>"u"?"undefined":Yi(HTMLElement),Zx=o(function(e){return e&&e.instanceString&&ti(e.instanceString)?e.instanceString():null},"instanceStr"),Zt=o(function(e){return e!=null&&Yi(e)==Wqe},"string"),ti=o(function(e){return e!=null&&Yi(e)===Yqe},"fn"),wn=o(function(e){return!po(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},"array"),Vr=o(function(e){return e!=null&&Yi(e)===qme&&!wn(e)&&e.constructor===Object},"plainObject"),Xqe=o(function(e){return e!=null&&Yi(e)===qme},"object"),xt=o(function(e){return e!=null&&Yi(e)===Yi(1)&&!isNaN(e)},"number"),jqe=o(function(e){return xt(e)&&Math.floor(e)===e},"integer"),p6=o(function(e){if(qqe!=="undefined")return e!=null&&e instanceof HTMLElement},"htmlElement"),po=o(function(e){return Jx(e)||Xme(e)},"elementOrCollection"),Jx=o(function(e){return Zx(e)==="collection"&&e._private.single},"element"),Xme=o(function(e){return Zx(e)==="collection"&&!e._private.single},"collection"),tB=o(function(e){return Zx(e)==="core"},"core"),jme=o(function(e){return Zx(e)==="stylesheet"},"stylesheet"),Kqe=o(function(e){return Zx(e)==="event"},"event"),Sf=o(function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},"emptyString"),Qqe=o(function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},"domElement"),Zqe=o(function(e){return Vr(e)&&xt(e.x1)&&xt(e.x2)&&xt(e.y1)&&xt(e.y2)},"boundingBox"),Jqe=o(function(e){return Xqe(e)&&ti(e.then)},"promise"),eXe=o(function(){return Rpe&&Rpe.userAgent.match(/msie|trident|edge/i)},"ms"),$x=o(function(e,r){r||(r=o(function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var a=[],s=0;sr?1:0},"ascending"),oXe=o(function(e,r){return-1*Qme(e,r)},"descending"),ir=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(v-=1),v<1/6?g+(y-g)*6*v:v<1/2?y:v<2/3?g+(y-g)*(2/3-v)*6:g}o(f,"hue2rgb");var d=new RegExp("^"+nXe+"$").exec(e);if(d){if(n=parseInt(d[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n=n%360),n/=360,i=parseFloat(d[2]),i<0||i>100||(i=i/100,a=parseFloat(d[3]),a<0||a>100)||(a=a/100,s=d[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(i===0)l=u=h=Math.round(a*255);else{var p=a<.5?a*(1+i):a+i-a*i,m=2*a-p;l=Math.round(255*f(m,p,n+1/3)),u=Math.round(255*f(m,p,n)),h=Math.round(255*f(m,p,n-1/3))}r=[l,u,h,s]}return r},"hsl2tuple"),uXe=o(function(e){var r,n=new RegExp("^"+tXe+"$").exec(e);if(n){r=[];for(var i=[],a=1;a<=3;a++){var s=n[a];if(s[s.length-1]==="%"&&(i[a]=!0),s=parseFloat(s),i[a]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var l=i[1]||i[2]||i[3],u=i[1]&&i[2]&&i[3];if(l&&!u)return;var h=n[4];if(h!==void 0){if(h=parseFloat(h),h<0||h>1)return;r.push(h)}}return r},"rgb2tuple"),hXe=o(function(e){return dXe[e.toLowerCase()]},"colorname2tuple"),fXe=o(function(e){return(wn(e)?e:null)||hXe(e)||lXe(e)||uXe(e)||cXe(e)},"color2tuple"),dXe={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Zme=o(function(e){for(var r=e.map,n=e.keys,i=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:t1,n=r,i;i=e.next(),!i.done;)n=n*nge+i.value|0;return n},"hashIterableInts"),Vx=o(function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t1;return r*nge+e|0},"hashInt"),Ux=o(function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ox;return(r<<5)+r+e|0},"hashIntAlt"),JXe=o(function(e,r){return e*2097152+r},"combineHashes"),xf=o(function(e){return e[0]*2097152+e[1]},"combineHashesArray"),qE=o(function(e,r){return[Vx(e[0],r[0]),Ux(e[1],r[1])]},"hashArrays"),eje=o(function(e,r){var n={value:0,done:!1},i=0,a=e.length,s={next:o(function(){return i=0&&!(e[i]===r&&(e.splice(i,1),n));i--);},"removeFromArray"),aB=o(function(e){e.splice(0,e.length)},"clearArray"),oje=o(function(e,r){for(var n=0;n"u"?"undefined":Yi(Set))!==cje?Set:uje,_6=o(function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!tB(e)){hi("An element must have a core reference and parameters set");return}var i=r.group;if(i==null&&(r.data&&r.data.source!=null&&r.data.target!=null?i="edges":i="nodes"),i!=="nodes"&&i!=="edges"){hi("An element must be of type `nodes` or `edges`; you specified `"+i+"`");return}this.length=1,this[0]=this;var a=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:i,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?i==="edges":!!r.pannable,active:!1,classes:new f1,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(a.position.x==null&&(a.position.x=0),a.position.y==null&&(a.position.y=0),r.renderedPosition){var s=r.renderedPosition,l=e.pan(),u=e.zoom();a.position={x:(s.x-l.x)/u,y:(s.y-l.y)/u}}var h=[];wn(r.classes)?h=r.classes:Zt(r.classes)&&(h=r.classes.split(/\s+/));for(var f=0,d=h.length;fb?1:0},"defaultCmp"),f=o(function(x,b,w,_,T){var E;if(w==null&&(w=0),T==null&&(T=n),w<0)throw new Error("lo must be non-negative");for(_==null&&(_=x.length);w<_;)E=i((w+_)/2),T(b,x[E])<0?_=E:w=E+1;return[].splice.apply(x,[w,w-w].concat(b)),b},"insort"),l=o(function(x,b,w){return w==null&&(w=n),x.push(b),y(x,0,x.length-1,w)},"heappush"),s=o(function(x,b){var w,_;return b==null&&(b=n),w=x.pop(),x.length?(_=x[0],x[0]=w,v(x,0,b)):_=w,_},"heappop"),h=o(function(x,b,w){var _;return w==null&&(w=n),_=x[0],x[0]=b,v(x,0,w),_},"heapreplace"),u=o(function(x,b,w){var _;return w==null&&(w=n),x.length&&w(x[0],b)<0&&(_=[x[0],b],b=_[0],x[0]=_[1],v(x,0,w)),b},"heappushpop"),a=o(function(x,b){var w,_,T,E,L,C;for(b==null&&(b=n),E=function(){C=[];for(var A=0,I=i(x.length/2);0<=I?AI;0<=I?A++:A--)C.push(A);return C}.apply(this).reverse(),L=[],_=0,T=E.length;_D;0<=D?++C:--C)k.push(s(x,w));return k},"nsmallest"),y=o(function(x,b,w,_){var T,E,L;for(_==null&&(_=n),T=x[w];w>b;){if(L=w-1>>1,E=x[L],_(T,E)<0){x[w]=E,w=L;continue}break}return x[w]=T},"_siftdown"),v=o(function(x,b,w){var _,T,E,L,C;for(w==null&&(w=n),T=x.length,C=b,E=x[b],_=2*b+1;_0;){var E=b.pop(),L=v(E),C=E.id();if(p[C]=L,L!==1/0)for(var A=E.neighborhood().intersect(g),I=0;I0)for(F.unshift(P);d[$];){var z=d[$];F.unshift(z.edge),F.unshift(z.node),B=z.node,$=B.id()}return l.spawn(F)},"pathTo")}},"dijkstra")},pje={kruskal:o(function(e){e=e||function(w){return 1};for(var r=this.byGroup(),n=r.nodes,i=r.edges,a=n.length,s=new Array(a),l=n,u=o(function(_){for(var T=0;T0;){if(T(),L++,_===f){for(var C=[],A=a,I=f,D=x[I];C.unshift(A),D!=null&&C.unshift(D),A=v[I],A!=null;)I=A.id(),D=x[I];return{found:!0,distance:d[_],path:this.spawn(C),steps:L}}m[_]=!0;for(var k=w._private.edges,R=0;RD&&(g[I]=D,b[I]=A,w[I]=T),!a){var k=A*f+C;!a&&g[k]>D&&(g[k]=D,b[k]=C,w[k]=T)}}}for(var R=0;R1&&arguments[1]!==void 0?arguments[1]:s,Be=w(ke),Ve=[],Ge=Be;;){if(Ge==null)return r.spawn();var He=b(Ge),xe=He.edge,X=He.pred;if(Ve.unshift(Ge[0]),Ge.same(Fe)&&Ve.length>0)break;xe!=null&&Ve.unshift(xe),Ge=X}return u.spawn(Ve)},"pathTo"),E=0;E=0;f--){var d=h[f],p=d[1],m=d[2];(r[p]===l&&r[m]===u||r[p]===u&&r[m]===l)&&h.splice(f,1)}for(var g=0;gi;){var a=Math.floor(Math.random()*r.length);r=Tje(a,e,r),n--}return r},"contractUntil"),kje={kargerStein:o(function(){var e=this,r=this.byGroup(),n=r.nodes,i=r.edges;i.unmergeBy(function(F){return F.isLoop()});var a=n.length,s=i.length,l=Math.ceil(Math.pow(Math.log(a)/Math.LN2,2)),u=Math.floor(a/wje);if(a<2){hi("At least 2 nodes are required for Karger-Stein algorithm");return}for(var h=[],f=0;f1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=1/0,a=r;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=-1/0,a=r;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=0,a=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;i?e=e.slice(r,n):(n0&&e.splice(0,r));for(var l=0,u=e.length-1;u>=0;u--){var h=e[u];s?isFinite(h)||(e[u]=-1/0,l++):e.splice(u,1)}a&&e.sort(function(p,m){return p-m});var f=e.length,d=Math.floor(f/2);return f%2!==0?e[d+1+l]:(e[d-1+l]+e[d+l])/2},"median"),Lje=o(function(e){return Math.PI*e/180},"deg2rad"),XE=o(function(e,r){return Math.atan2(r,e)-Math.PI/2},"getAngleFromDisp"),sB=Math.log2||function(t){return Math.log(t)/Math.log(2)},hge=o(function(e){return e>0?1:e<0?-1:0},"signum"),G0=o(function(e,r){return Math.sqrt(M0(e,r))},"dist"),M0=o(function(e,r){var n=r.x-e.x,i=r.y-e.y;return n*n+i*i},"sqdist"),Dje=o(function(e){for(var r=e.length,n=0,i=0;i=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},"makeBoundingBox"),Rje=o(function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},"copyBoundingBox"),Mje=o(function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},"clearBoundingBox"),Ije=o(function(e,r,n){return{x1:e.x1+r,x2:e.x2+r,y1:e.y1+n,y2:e.y2+n,w:e.w,h:e.h}},"shiftBoundingBox"),fge=o(function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},"updateBoundingBox"),Oje=o(function(e,r,n){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},"expandBoundingBoxByPoint"),a6=o(function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},"expandBoundingBox"),s6=o(function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,i,a,s;if(r.length===1)n=i=a=s=r[0];else if(r.length===2)n=a=r[0],s=i=r[1];else if(r.length===4){var l=Ul(r,4);n=l[0],i=l[1],a=l[2],s=l[3]}return e.x1-=s,e.x2+=i,e.y1-=n,e.y2+=a,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},"expandBoundingBoxSides"),Gpe=o(function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},"assignBoundingBox"),oB=o(function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},"boundingBoxesIntersect"),c1=o(function(e,r,n){return e.x1<=r&&r<=e.x2&&e.y1<=n&&n<=e.y2},"inBoundingBox"),Pje=o(function(e,r){return c1(e,r.x,r.y)},"pointInBoundingBox"),dge=o(function(e,r){return c1(e,r.x1,r.y1)&&c1(e,r.x2,r.y2)},"boundingBoxInBoundingBox"),pge=o(function(e,r,n,i,a,s,l){var u=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",h=u==="auto"?$0(a,s):u,f=a/2,d=s/2;h=Math.min(h,f,d);var p=h!==f,m=h!==d,g;if(p){var y=n-f+h-l,v=i-d-l,x=n+f-h+l,b=v;if(g=Tf(e,r,n,i,y,v,x,b,!1),g.length>0)return g}if(m){var w=n+f+l,_=i-d+h-l,T=w,E=i+d-h+l;if(g=Tf(e,r,n,i,w,_,T,E,!1),g.length>0)return g}if(p){var L=n-f+h-l,C=i+d+l,A=n+f-h+l,I=C;if(g=Tf(e,r,n,i,L,C,A,I,!1),g.length>0)return g}if(m){var D=n-f-l,k=i-d+h-l,R=D,S=i+d-h+l;if(g=Tf(e,r,n,i,D,k,R,S,!1),g.length>0)return g}var O;{var N=n-f+h,P=i-d+h;if(O=Px(e,r,n,i,N,P,h+l),O.length>0&&O[0]<=N&&O[1]<=P)return[O[0],O[1]]}{var F=n+f-h,B=i-d+h;if(O=Px(e,r,n,i,F,B,h+l),O.length>0&&O[0]>=F&&O[1]<=B)return[O[0],O[1]]}{var $=n+f-h,z=i+d-h;if(O=Px(e,r,n,i,$,z,h+l),O.length>0&&O[0]>=$&&O[1]>=z)return[O[0],O[1]]}{var W=n-f+h,j=i+d-h;if(O=Px(e,r,n,i,W,j,h+l),O.length>0&&O[0]<=W&&O[1]>=j)return[O[0],O[1]]}return[]},"roundRectangleIntersectLine"),Bje=o(function(e,r,n,i,a,s,l){var u=l,h=Math.min(n,a),f=Math.max(n,a),d=Math.min(i,s),p=Math.max(i,s);return h-u<=e&&e<=f+u&&d-u<=r&&r<=p+u},"inLineVicinity"),Fje=o(function(e,r,n,i,a,s,l,u,h){var f={x1:Math.min(n,l,a)-h,x2:Math.max(n,l,a)+h,y1:Math.min(i,u,s)-h,y2:Math.max(i,u,s)+h};return!(ef.x2||rf.y2)},"inBezierVicinity"),zje=o(function(e,r,n,i){n-=i;var a=r*r-4*e*n;if(a<0)return[];var s=Math.sqrt(a),l=2*e,u=(-r+s)/l,h=(-r-s)/l;return[u,h]},"solveQuadratic"),Gje=o(function(e,r,n,i,a){var s=1e-5;e===0&&(e=s),r/=e,n/=e,i/=e;var l,u,h,f,d,p,m,g;if(u=(3*n-r*r)/9,h=-(27*i)+r*(9*n-2*(r*r)),h/=54,l=u*u*u+h*h,a[1]=0,m=r/3,l>0){d=h+Math.sqrt(l),d=d<0?-Math.pow(-d,1/3):Math.pow(d,1/3),p=h-Math.sqrt(l),p=p<0?-Math.pow(-p,1/3):Math.pow(p,1/3),a[0]=-m+d+p,m+=(d+p)/2,a[4]=a[2]=-m,m=Math.sqrt(3)*(-p+d)/2,a[3]=m,a[5]=-m;return}if(a[5]=a[3]=0,l===0){g=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),a[0]=-m+2*g,a[4]=a[2]=-(g+m);return}u=-u,f=u*u*u,f=Math.acos(h/Math.sqrt(f)),g=2*Math.sqrt(u),a[0]=-m+g*Math.cos(f/3),a[2]=-m+g*Math.cos((f+2*Math.PI)/3),a[4]=-m+g*Math.cos((f+4*Math.PI)/3)},"solveCubic"),$je=o(function(e,r,n,i,a,s,l,u){var h=1*n*n-4*n*a+2*n*l+4*a*a-4*a*l+l*l+i*i-4*i*s+2*i*u+4*s*s-4*s*u+u*u,f=1*9*n*a-3*n*n-3*n*l-6*a*a+3*a*l+9*i*s-3*i*i-3*i*u-6*s*s+3*s*u,d=1*3*n*n-6*n*a+n*l-n*e+2*a*a+2*a*e-l*e+3*i*i-6*i*s+i*u-i*r+2*s*s+2*s*r-u*r,p=1*n*a-n*n+n*e-a*e+i*s-i*i+i*r-s*r,m=[];Gje(h,f,d,p,m);for(var g=1e-7,y=[],v=0;v<6;v+=2)Math.abs(m[v+1])=0&&m[v]<=1&&y.push(m[v]);y.push(1),y.push(0);for(var x=-1,b,w,_,T=0;T=0?_h?(e-a)*(e-a)+(r-s)*(r-s):f-p},"sqdistToFiniteLine"),Gs=o(function(e,r,n){for(var i,a,s,l,u,h=0,f=0;f=e&&e>=s||i<=e&&e<=s)u=(e-i)/(s-i)*(l-a)+a,u>r&&h++;else continue;return h%2!==0},"pointInsidePolygonPoints"),ju=o(function(e,r,n,i,a,s,l,u,h){var f=new Array(n.length),d;u[0]!=null?(d=Math.atan(u[1]/u[0]),u[0]<0?d=d+Math.PI/2:d=-d-Math.PI/2):d=u;for(var p=Math.cos(-d),m=Math.sin(-d),g=0;g0){var v=v6(f,-h);y=y6(v)}else y=f;return Gs(e,r,y)},"pointInsidePolygon"),Uje=o(function(e,r,n,i,a,s,l,u){for(var h=new Array(n.length*2),f=0;f=0&&v<=1&&b.push(v),x>=0&&x<=1&&b.push(x),b.length===0)return[];var w=b[0]*u[0]+e,_=b[0]*u[1]+r;if(b.length>1){if(b[0]==b[1])return[w,_];var T=b[1]*u[0]+e,E=b[1]*u[1]+r;return[w,_,T,E]}else return[w,_]},"intersectLineCircle"),AP=o(function(e,r,n){return r<=e&&e<=n||n<=e&&e<=r?e:e<=r&&r<=n||n<=r&&r<=e?r:n},"midOfThree"),Tf=o(function(e,r,n,i,a,s,l,u,h){var f=e-a,d=n-e,p=l-a,m=r-s,g=i-r,y=u-s,v=p*m-y*f,x=d*m-g*f,b=y*d-p*g;if(b!==0){var w=v/b,_=x/b,T=.001,E=0-T,L=1+T;return E<=w&&w<=L&&E<=_&&_<=L?[e+w*d,r+w*g]:h?[e+w*d,r+w*g]:[]}else return v===0||x===0?AP(e,n,l)===l?[l,u]:AP(e,n,a)===a?[a,s]:AP(a,l,n)===n?[n,i]:[]:[]},"finiteLinesIntersect"),Yx=o(function(e,r,n,i,a,s,l,u){var h=[],f,d=new Array(n.length),p=!0;s==null&&(p=!1);var m;if(p){for(var g=0;g0){var y=v6(d,-u);m=y6(y)}else m=d}else m=n;for(var v,x,b,w,_=0;_2){for(var g=[f[0],f[1]],y=Math.pow(g[0]-e,2)+Math.pow(g[1]-r,2),v=1;vf&&(f=_)},"set"),get:o(function(w){return h[w]},"get")},p=0;p0?N=O.edgesTo(S)[0]:N=S.edgesTo(O)[0];var P=i(N);S=S.id(),C[S]>C[k]+P&&(C[S]=C[k]+P,A.nodes.indexOf(S)<0?A.push(S):A.updateItem(S),L[S]=0,E[S]=[]),C[S]==C[k]+P&&(L[S]=L[S]+L[k],E[S].push(k))}else for(var F=0;F0;){for(var W=T.pop(),j=0;j0&&l.push(n[u]);l.length!==0&&a.push(i.collection(l))}return a},"assign"),aKe=o(function(e,r){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:lKe,l=i,u,h,f=0;f=2?Dx(e,r,n,0,Wpe,cKe):Dx(e,r,n,0,Hpe)},"euclidean"),squaredEuclidean:o(function(e,r,n){return Dx(e,r,n,0,Wpe)},"squaredEuclidean"),manhattan:o(function(e,r,n){return Dx(e,r,n,0,Hpe)},"manhattan"),max:o(function(e,r,n){return Dx(e,r,n,-1/0,uKe)},"max")};u1["squared-euclidean"]=u1.squaredEuclidean;u1.squaredeuclidean=u1.squaredEuclidean;o(D6,"clusteringDistance");hKe=wa({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),cB=o(function(e){return hKe(e)},"setOptions"),x6=o(function(e,r,n,i,a){var s=a!=="kMedoids",l=s?function(d){return n[d]}:function(d){return i[d](n)},u=o(function(p){return i[p](r)},"getQ"),h=n,f=r;return D6(e,i.length,l,u,h,f)},"getDist"),_P=o(function(e,r,n){for(var i=n.length,a=new Array(i),s=new Array(i),l=new Array(r),u=null,h=0;hn)return!1}return!0},"haveMatricesConverged"),pKe=o(function(e,r,n){for(var i=0;il&&(l=r[h][f],u=f);a[u].push(e[h])}for(var d=0;d=a.threshold||a.mode==="dendrogram"&&e.length===1)return!1;var g=r[s],y=r[i[s]],v;a.mode==="dendrogram"?v={left:g,right:y,key:g.key}:v={value:g.value.concat(y.value),key:g.key},e[g.index]=v,e.splice(y.index,1),r[g.key]=v;for(var x=0;xn[y.key][b.key]&&(u=n[y.key][b.key])):a.linkage==="max"?(u=n[g.key][b.key],n[g.key][b.key]0&&i.push(a);return i},"findExemplars"),Qpe=o(function(e,r,n){for(var i=[],a=0;al&&(s=h,l=r[a*e+h])}s>0&&i.push(s)}for(var f=0;fh&&(u=f,h=d)}n[a]=s[u]}return i=Qpe(e,r,n),i},"assign"),Zpe=o(function(e){for(var r=this.cy(),n=this.nodes(),i=_Ke(e),a={},s=0;s=D?(k=D,D=S,R=O):S>k&&(k=S);for(var N=0;N0?1:0;L[A%i.minIterations*l+W]=j,z+=j}if(z>0&&(A>=i.minIterations-1||A==i.maxIterations-1)){for(var K=0,ie=0;ie1||E>1)&&(l=!0),d[w]=[],b.outgoers().forEach(function(C){C.isEdge()&&d[w].push(C.id())})}else p[w]=[void 0,b.target().id()]}):s.forEach(function(b){var w=b.id();if(b.isNode()){var _=b.degree(!0);_%2&&(u?h?l=!0:h=w:u=w),d[w]=[],b.connectedEdges().forEach(function(T){return d[w].push(T.id())})}else p[w]=[b.source().id(),b.target().id()]});var m={found:!1,trail:void 0};if(l)return m;if(h&&u)if(a){if(f&&h!=f)return m;f=h}else{if(f&&h!=f&&u!=f)return m;f||(f=h)}else f||(f=s[0].id());var g=o(function(w){for(var _=w,T=[w],E,L,C;d[_].length;)E=d[_].shift(),L=p[E][0],C=p[E][1],_!=C?(d[C]=d[C].filter(function(A){return A!=E}),_=C):!a&&_!=L&&(d[L]=d[L].filter(function(A){return A!=E}),_=L),T.unshift(E),T.unshift(_);return T},"walk"),y=[],v=[];for(v=g(f);v.length!=1;)d[v[0]].length==0?(y.unshift(s.getElementById(v.shift())),y.unshift(s.getElementById(v.shift()))):v=g(v.shift()).concat(v);y.unshift(s.getElementById(v.shift()));for(var x in d)if(d[x].length)return m;return m.found=!0,m.trail=this.spawn(y,!0),m},"hierholzer")},QE=o(function(){var e=this,r={},n=0,i=0,a=[],s=[],l={},u=o(function(p,m){for(var g=s.length-1,y=[],v=e.spawn();s[g].x!=p||s[g].y!=m;)y.push(s.pop().edge),g--;y.push(s.pop().edge),y.forEach(function(x){var b=x.connectedNodes().intersection(e);v.merge(x),b.forEach(function(w){var _=w.id(),T=w.connectedEdges().intersection(e);v.merge(w),r[_].cutVertex?v.merge(T.filter(function(E){return E.isLoop()})):v.merge(T)})}),a.push(v)},"buildComponent"),h=o(function d(p,m,g){p===g&&(i+=1),r[m]={id:n,low:n++,cutVertex:!1};var y=e.getElementById(m).connectedEdges().intersection(e);if(y.size()===0)a.push(e.spawn(e.getElementById(m)));else{var v,x,b,w;y.forEach(function(_){v=_.source().id(),x=_.target().id(),b=v===m?x:v,b!==g&&(w=_.id(),l[w]||(l[w]=!0,s.push({x:m,y:b,edge:_})),b in r?r[m].low=Math.min(r[m].low,r[b].id):(d(p,b,m),r[m].low=Math.min(r[m].low,r[b].low),r[m].id<=r[b].low&&(r[m].cutVertex=!0,u(m,b))))})}},"biconnectedSearch");e.forEach(function(d){if(d.isNode()){var p=d.id();p in r||(i=0,h(p,p),r[p].cutVertex=i>1)}});var f=Object.keys(r).filter(function(d){return r[d].cutVertex}).map(function(d){return e.getElementById(d)});return{cut:e.spawn(f),components:a}},"hopcroftTarjanBiconnected"),PKe={hopcroftTarjanBiconnected:QE,htbc:QE,htb:QE,hopcroftTarjanBiconnectedComponents:QE},ZE=o(function(){var e=this,r={},n=0,i=[],a=[],s=e.spawn(e),l=o(function u(h){a.push(h),r[h]={index:n,low:n++,explored:!1};var f=e.getElementById(h).connectedEdges().intersection(e);if(f.forEach(function(y){var v=y.target().id();v!==h&&(v in r||u(v),r[v].explored||(r[h].low=Math.min(r[h].low,r[v].low)))}),r[h].index===r[h].low){for(var d=e.spawn();;){var p=a.pop();if(d.merge(e.getElementById(p)),r[p].low=r[h].index,r[p].explored=!0,p===h)break}var m=d.edgesWith(d),g=d.merge(m);i.push(g),s=s.difference(g)}},"stronglyConnectedSearch");return e.forEach(function(u){if(u.isNode()){var h=u.id();h in r||l(h)}}),{cut:s,components:i}},"tarjanStronglyConnected"),BKe={tarjanStronglyConnected:ZE,tsc:ZE,tscc:ZE,tarjanStronglyConnectedComponents:ZE},wge={};[Hx,dje,pje,gje,vje,bje,kje,Xje,a1,s1,zP,oKe,bKe,CKe,MKe,OKe,PKe,BKe].forEach(function(t){ir(wge,t)});Tge=0,kge=1,Ege=2,Ku=o(function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=Tge,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))},"api");Ku.prototype={fulfill:o(function(e){return Jpe(this,kge,"fulfillValue",e)},"fulfill"),reject:o(function(e){return Jpe(this,Ege,"rejectReason",e)},"reject"),then:o(function(e,r){var n=this,i=new Ku;return n.onFulfilled.push(tme(e,i,"fulfill")),n.onRejected.push(tme(r,i,"reject")),Sge(n),i.proxy},"then")};Jpe=o(function(e,r,n,i){return e.state===Tge&&(e.state=r,e[n]=i,Sge(e)),e},"deliver"),Sge=o(function(e){e.state===kge?eme(e,"onFulfilled",e.fulfillValue):e.state===Ege&&eme(e,"onRejected",e.rejectReason)},"execute"),eme=o(function(e,r,n){if(e[r].length!==0){var i=e[r];e[r]=[];var a=o(function(){for(var l=0;l0},"animatedImpl")},"animated"),clearQueue:o(function(){return o(function(){var r=this,n=r.length!==void 0,i=n?r:[r],a=this._private.cy||this;if(!a.styleEnabled())return this;for(var s=0;s0&&this.spawn(i).updateStyle().emit("class"),r},"classes"),addClass:o(function(e){return this.toggleClass(e,!0)},"addClass"),hasClass:o(function(e){var r=this[0];return r!=null&&r._private.classes.has(e)},"hasClass"),toggleClass:o(function(e,r){wn(e)||(e=e.match(/\S+/g)||[]);for(var n=this,i=r===void 0,a=[],s=0,l=n.length;s0&&this.spawn(a).updateStyle().emit("class"),n},"toggleClass"),removeClass:o(function(e){return this.toggleClass(e,!1)},"removeClass"),flashClass:o(function(e,r){var n=this;if(r==null)r=250;else if(r===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},r),n},"flashClass")};o6.className=o6.classNames=o6.classes;$r={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Wi,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};$r.variable="(?:[\\w-.]|(?:\\\\"+$r.metaChar+"))+";$r.className="(?:[\\w-]|(?:\\\\"+$r.metaChar+"))+";$r.value=$r.string+"|"+$r.number;$r.id=$r.variable;(function(){var t,e,r;for(t=$r.comparatorOp.split("|"),r=0;r=0)&&e!=="="&&($r.comparatorOp+="|\\!"+e)})();pn=o(function(){return{checks:[]}},"newQuery"),Pt={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},$P=[{selector:":selected",matches:o(function(e){return e.selected()},"matches")},{selector:":unselected",matches:o(function(e){return!e.selected()},"matches")},{selector:":selectable",matches:o(function(e){return e.selectable()},"matches")},{selector:":unselectable",matches:o(function(e){return!e.selectable()},"matches")},{selector:":locked",matches:o(function(e){return e.locked()},"matches")},{selector:":unlocked",matches:o(function(e){return!e.locked()},"matches")},{selector:":visible",matches:o(function(e){return e.visible()},"matches")},{selector:":hidden",matches:o(function(e){return!e.visible()},"matches")},{selector:":transparent",matches:o(function(e){return e.transparent()},"matches")},{selector:":grabbed",matches:o(function(e){return e.grabbed()},"matches")},{selector:":free",matches:o(function(e){return!e.grabbed()},"matches")},{selector:":removed",matches:o(function(e){return e.removed()},"matches")},{selector:":inside",matches:o(function(e){return!e.removed()},"matches")},{selector:":grabbable",matches:o(function(e){return e.grabbable()},"matches")},{selector:":ungrabbable",matches:o(function(e){return!e.grabbable()},"matches")},{selector:":animated",matches:o(function(e){return e.animated()},"matches")},{selector:":unanimated",matches:o(function(e){return!e.animated()},"matches")},{selector:":parent",matches:o(function(e){return e.isParent()},"matches")},{selector:":childless",matches:o(function(e){return e.isChildless()},"matches")},{selector:":child",matches:o(function(e){return e.isChild()},"matches")},{selector:":orphan",matches:o(function(e){return e.isOrphan()},"matches")},{selector:":nonorphan",matches:o(function(e){return e.isChild()},"matches")},{selector:":compound",matches:o(function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()},"matches")},{selector:":loop",matches:o(function(e){return e.isLoop()},"matches")},{selector:":simple",matches:o(function(e){return e.isSimple()},"matches")},{selector:":active",matches:o(function(e){return e.active()},"matches")},{selector:":inactive",matches:o(function(e){return!e.active()},"matches")},{selector:":backgrounding",matches:o(function(e){return e.backgrounding()},"matches")},{selector:":nonbackgrounding",matches:o(function(e){return!e.backgrounding()},"matches")}].sort(function(t,e){return oXe(t.selector,e.selector)}),KZe=function(){for(var t={},e,r=0;r<$P.length;r++)e=$P[r],t[e.selector]=e.matches;return t}(),QZe=o(function(e,r){return KZe[e](r)},"stateSelectorMatches"),ZZe="("+$P.map(function(t){return t.selector}).join("|")+")",Kg=o(function(e){return e.replace(new RegExp("\\\\("+$r.metaChar+")","g"),function(r,n){return n})},"cleanMetaChars"),bf=o(function(e,r,n){e[e.length-1]=n},"replaceLastQuery"),VP=[{name:"group",query:!0,regex:"("+$r.group+")",populate:o(function(e,r,n){var i=Ul(n,1),a=i[0];r.checks.push({type:Pt.GROUP,value:a==="*"?a:a+"s"})},"populate")},{name:"state",query:!0,regex:ZZe,populate:o(function(e,r,n){var i=Ul(n,1),a=i[0];r.checks.push({type:Pt.STATE,value:a})},"populate")},{name:"id",query:!0,regex:"\\#("+$r.id+")",populate:o(function(e,r,n){var i=Ul(n,1),a=i[0];r.checks.push({type:Pt.ID,value:Kg(a)})},"populate")},{name:"className",query:!0,regex:"\\.("+$r.className+")",populate:o(function(e,r,n){var i=Ul(n,1),a=i[0];r.checks.push({type:Pt.CLASS,value:Kg(a)})},"populate")},{name:"dataExists",query:!0,regex:"\\[\\s*("+$r.variable+")\\s*\\]",populate:o(function(e,r,n){var i=Ul(n,1),a=i[0];r.checks.push({type:Pt.DATA_EXIST,field:Kg(a)})},"populate")},{name:"dataCompare",query:!0,regex:"\\[\\s*("+$r.variable+")\\s*("+$r.comparatorOp+")\\s*("+$r.value+")\\s*\\]",populate:o(function(e,r,n){var i=Ul(n,3),a=i[0],s=i[1],l=i[2],u=new RegExp("^"+$r.string+"$").exec(l)!=null;u?l=l.substring(1,l.length-1):l=parseFloat(l),r.checks.push({type:Pt.DATA_COMPARE,field:Kg(a),operator:s,value:l})},"populate")},{name:"dataBool",query:!0,regex:"\\[\\s*("+$r.boolOp+")\\s*("+$r.variable+")\\s*\\]",populate:o(function(e,r,n){var i=Ul(n,2),a=i[0],s=i[1];r.checks.push({type:Pt.DATA_BOOL,field:Kg(s),operator:a})},"populate")},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+$r.meta+")\\s*("+$r.comparatorOp+")\\s*("+$r.number+")\\s*\\]\\]",populate:o(function(e,r,n){var i=Ul(n,3),a=i[0],s=i[1],l=i[2];r.checks.push({type:Pt.META_COMPARE,field:Kg(a),operator:s,value:parseFloat(l)})},"populate")},{name:"nextQuery",separator:!0,regex:$r.separator,populate:o(function(e,r){var n=e.currentSubject,i=e.edgeCount,a=e.compoundCount,s=e[e.length-1];n!=null&&(s.subject=n,e.currentSubject=null),s.edgeCount=i,s.compoundCount=a,e.edgeCount=0,e.compoundCount=0;var l=e[e.length++]=pn();return l},"populate")},{name:"directedEdge",separator:!0,regex:$r.directedEdge,populate:o(function(e,r){if(e.currentSubject==null){var n=pn(),i=r,a=pn();return n.checks.push({type:Pt.DIRECTED_EDGE,source:i,target:a}),bf(e,r,n),e.edgeCount++,a}else{var s=pn(),l=r,u=pn();return s.checks.push({type:Pt.NODE_SOURCE,source:l,target:u}),bf(e,r,s),e.edgeCount++,u}},"populate")},{name:"undirectedEdge",separator:!0,regex:$r.undirectedEdge,populate:o(function(e,r){if(e.currentSubject==null){var n=pn(),i=r,a=pn();return n.checks.push({type:Pt.UNDIRECTED_EDGE,nodes:[i,a]}),bf(e,r,n),e.edgeCount++,a}else{var s=pn(),l=r,u=pn();return s.checks.push({type:Pt.NODE_NEIGHBOR,node:l,neighbor:u}),bf(e,r,s),u}},"populate")},{name:"child",separator:!0,regex:$r.child,populate:o(function(e,r){if(e.currentSubject==null){var n=pn(),i=pn(),a=e[e.length-1];return n.checks.push({type:Pt.CHILD,parent:a,child:i}),bf(e,r,n),e.compoundCount++,i}else if(e.currentSubject===r){var s=pn(),l=e[e.length-1],u=pn(),h=pn(),f=pn(),d=pn();return s.checks.push({type:Pt.COMPOUND_SPLIT,left:l,right:u,subject:h}),h.checks=r.checks,r.checks=[{type:Pt.TRUE}],d.checks.push({type:Pt.TRUE}),u.checks.push({type:Pt.PARENT,parent:d,child:f}),bf(e,l,s),e.currentSubject=h,e.compoundCount++,f}else{var p=pn(),m=pn(),g=[{type:Pt.PARENT,parent:p,child:m}];return p.checks=r.checks,r.checks=g,e.compoundCount++,m}},"populate")},{name:"descendant",separator:!0,regex:$r.descendant,populate:o(function(e,r){if(e.currentSubject==null){var n=pn(),i=pn(),a=e[e.length-1];return n.checks.push({type:Pt.DESCENDANT,ancestor:a,descendant:i}),bf(e,r,n),e.compoundCount++,i}else if(e.currentSubject===r){var s=pn(),l=e[e.length-1],u=pn(),h=pn(),f=pn(),d=pn();return s.checks.push({type:Pt.COMPOUND_SPLIT,left:l,right:u,subject:h}),h.checks=r.checks,r.checks=[{type:Pt.TRUE}],d.checks.push({type:Pt.TRUE}),u.checks.push({type:Pt.ANCESTOR,ancestor:d,descendant:f}),bf(e,l,s),e.currentSubject=h,e.compoundCount++,f}else{var p=pn(),m=pn(),g=[{type:Pt.ANCESTOR,ancestor:p,descendant:m}];return p.checks=r.checks,r.checks=g,e.compoundCount++,m}},"populate")},{name:"subject",modifier:!0,regex:$r.subject,populate:o(function(e,r){if(e.currentSubject!=null&&e.currentSubject!==r)return on("Redefinition of subject in selector `"+e.toString()+"`"),!1;e.currentSubject=r;var n=e[e.length-1],i=n.checks[0],a=i==null?null:i.type;a===Pt.DIRECTED_EDGE?i.type=Pt.NODE_TARGET:a===Pt.UNDIRECTED_EDGE&&(i.type=Pt.NODE_NEIGHBOR,i.node=i.nodes[1],i.neighbor=i.nodes[0],i.nodes=null)},"populate")}];VP.forEach(function(t){return t.regexObj=new RegExp("^"+t.regex)});JZe=o(function(e){for(var r,n,i,a=0;a0&&f.edgeCount>0)return on("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(f.edgeCount>1)return on("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;f.edgeCount===1&&on("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},"parse"),rJe=o(function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=o(function(f){return f??""},"clean"),r=o(function(f){return Zt(f)?'"'+f+'"':e(f)},"cleanVal"),n=o(function(f){return" "+f+" "},"space"),i=o(function(f,d){var p=f.type,m=f.value;switch(p){case Pt.GROUP:{var g=e(m);return g.substring(0,g.length-1)}case Pt.DATA_COMPARE:{var y=f.field,v=f.operator;return"["+y+n(e(v))+r(m)+"]"}case Pt.DATA_BOOL:{var x=f.operator,b=f.field;return"["+e(x)+b+"]"}case Pt.DATA_EXIST:{var w=f.field;return"["+w+"]"}case Pt.META_COMPARE:{var _=f.operator,T=f.field;return"[["+T+n(e(_))+r(m)+"]]"}case Pt.STATE:return m;case Pt.ID:return"#"+m;case Pt.CLASS:return"."+m;case Pt.PARENT:case Pt.CHILD:return a(f.parent,d)+n(">")+a(f.child,d);case Pt.ANCESTOR:case Pt.DESCENDANT:return a(f.ancestor,d)+" "+a(f.descendant,d);case Pt.COMPOUND_SPLIT:{var E=a(f.left,d),L=a(f.subject,d),C=a(f.right,d);return E+(E.length>0?" ":"")+L+C}case Pt.TRUE:return""}},"checkToString"),a=o(function(f,d){return f.checks.reduce(function(p,m,g){return p+(d===f&&g===0?"$":"")+i(m,d)},"")},"queryToString"),s="",l=0;l1&&l=0&&(r=r.replace("!",""),d=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),f=!0),(a||l||f)&&(u=!a&&!s?"":""+e,h=""+n),f&&(e=u=u.toLowerCase(),n=h=h.toLowerCase()),r){case"*=":i=u.indexOf(h)>=0;break;case"$=":i=u.indexOf(h,u.length-h.length)>=0;break;case"^=":i=u.indexOf(h)===0;break;case"=":i=e===n;break;case">":p=!0,i=e>n;break;case">=":p=!0,i=e>=n;break;case"<":p=!0,i=e1&&arguments[1]!==void 0?arguments[1]:!0;return pB(this,t,e,Ige)};o(Oge,"addParent");h1.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return pB(this,t,e,Oge)};o(uJe,"addParentAndChildren");h1.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return pB(this,t,e,uJe)};h1.ancestors=h1.parents;Xx=Pge={data:sn.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:sn.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:sn.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:sn.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:sn.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:sn.removeData({field:"rscratch",triggerEvent:!1}),id:o(function(){var e=this[0];if(e)return e._private.data.id},"id")};Xx.attr=Xx.data;Xx.removeAttr=Xx.removeData;hJe=Pge,I6={};o(DP,"defineDegreeFunction");ir(I6,{degree:DP(function(t,e){return e.source().same(e.target())?2:1}),indegree:DP(function(t,e){return e.target().same(t)?1:0}),outdegree:DP(function(t,e){return e.source().same(t)?1:0})});o(Qg,"defineDegreeBoundsFunction");ir(I6,{minDegree:Qg("degree",function(t,e){return te}),minIndegree:Qg("indegree",function(t,e){return te}),minOutdegree:Qg("outdegree",function(t,e){return te})});ir(I6,{totalDegree:o(function(e){for(var r=0,n=this.nodes(),i=0;i0,p=d;d&&(f=f[0]);var m=p?f.position():{x:0,y:0};r!==void 0?h.position(e,r+m[e]):a!==void 0&&h.position({x:a.x+m.x,y:a.y+m.y})}else{var g=n.position(),y=l?n.parent():null,v=y&&y.length>0,x=v;v&&(y=y[0]);var b=x?y.position():{x:0,y:0};return a={x:g.x-b.x,y:g.y-b.y},e===void 0?a:a[e]}else if(!s)return;return this},"relativePosition")};Yl.modelPosition=Yl.point=Yl.position;Yl.modelPositions=Yl.points=Yl.positions;Yl.renderedPoint=Yl.renderedPosition;Yl.relativePoint=Yl.relativePosition;fJe=Bge;o1=Df={};Df.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),n=r.zoom(),i=r.pan(),a=e.x1*n+i.x,s=e.x2*n+i.x,l=e.y1*n+i.y,u=e.y2*n+i.y;return{x1:a,x2:s,y1:l,y2:u,w:s-a,h:u-l}};Df.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var n=r._private;n.compoundBoundsClean=!1,n.bbCache=null,t||r.emitAndNotify("bounds")}}),this)};Df.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(s){if(!s.isParent())return;var l=s._private,u=s.children(),h=s.pstyle("compound-sizing-wrt-labels").value==="include",f={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},d=u.boundingBox({includeLabels:h,includeOverlays:!1,useCache:!1}),p=l.position;(d.w===0||d.h===0)&&(d={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue},d.x1=p.x-d.w/2,d.x2=p.x+d.w/2,d.y1=p.y-d.h/2,d.y2=p.y+d.h/2);function m(A,I,D){var k=0,R=0,S=I+D;return A>0&&S>0&&(k=I/S*A,R=D/S*A),{biasDiff:k,biasComplementDiff:R}}o(m,"computeBiasValues");function g(A,I,D,k){if(D.units==="%")switch(k){case"width":return A>0?D.pfValue*A:0;case"height":return I>0?D.pfValue*I:0;case"average":return A>0&&I>0?D.pfValue*(A+I)/2:0;case"min":return A>0&&I>0?A>I?D.pfValue*I:D.pfValue*A:0;case"max":return A>0&&I>0?A>I?D.pfValue*A:D.pfValue*I:0;default:return 0}else return D.units==="px"?D.pfValue:0}o(g,"computePaddingValues");var y=f.width.left.value;f.width.left.units==="px"&&f.width.val>0&&(y=y*100/f.width.val);var v=f.width.right.value;f.width.right.units==="px"&&f.width.val>0&&(v=v*100/f.width.val);var x=f.height.top.value;f.height.top.units==="px"&&f.height.val>0&&(x=x*100/f.height.val);var b=f.height.bottom.value;f.height.bottom.units==="px"&&f.height.val>0&&(b=b*100/f.height.val);var w=m(f.width.val-d.w,y,v),_=w.biasDiff,T=w.biasComplementDiff,E=m(f.height.val-d.h,x,b),L=E.biasDiff,C=E.biasComplementDiff;l.autoPadding=g(d.w,d.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),l.autoWidth=Math.max(d.w,f.width.val),p.x=(-_+d.x1+d.x2+T)/2,l.autoHeight=Math.max(d.h,f.height.val),p.y=(-L+d.y1+d.y2+C)/2}o(r,"update");for(var n=0;ne.x2?i:e.x2,e.y1=ne.y2?a:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},"updateBounds"),I0=o(function(e,r){return r==null?e:Hl(e,r.x1,r.y1,r.x2,r.y2)},"updateBoundsFromBox"),Nx=o(function(e,r,n){return Wl(e,r,n)},"prefixedProperty"),JE=o(function(e,r,n){if(!r.cy().headless()){var i=r._private,a=i.rstyle,s=a.arrowWidth/2,l=r.pstyle(n+"-arrow-shape").value,u,h;if(l!=="none"){n==="source"?(u=a.srcX,h=a.srcY):n==="target"?(u=a.tgtX,h=a.tgtY):(u=a.midX,h=a.midY);var f=i.arrowBounds=i.arrowBounds||{},d=f[n]=f[n]||{};d.x1=u-s,d.y1=h-s,d.x2=u+s,d.y2=h+s,d.w=d.x2-d.x1,d.h=d.y2-d.y1,a6(d,1),Hl(e,d.x1,d.y1,d.x2,d.y2)}}},"updateBoundsFromArrow"),NP=o(function(e,r,n){if(!r.cy().headless()){var i;n?i=n+"-":i="";var a=r._private,s=a.rstyle,l=r.pstyle(i+"label").strValue;if(l){var u=r.pstyle("text-halign"),h=r.pstyle("text-valign"),f=Nx(s,"labelWidth",n),d=Nx(s,"labelHeight",n),p=Nx(s,"labelX",n),m=Nx(s,"labelY",n),g=r.pstyle(i+"text-margin-x").pfValue,y=r.pstyle(i+"text-margin-y").pfValue,v=r.isEdge(),x=r.pstyle(i+"text-rotation"),b=r.pstyle("text-outline-width").pfValue,w=r.pstyle("text-border-width").pfValue,_=w/2,T=r.pstyle("text-background-padding").pfValue,E=2,L=d,C=f,A=C/2,I=L/2,D,k,R,S;if(v)D=p-A,k=p+A,R=m-I,S=m+I;else{switch(u.value){case"left":D=p-C,k=p;break;case"center":D=p-A,k=p+A;break;case"right":D=p,k=p+C;break}switch(h.value){case"top":R=m-L,S=m;break;case"center":R=m-I,S=m+I;break;case"bottom":R=m,S=m+L;break}}D+=g-Math.max(b,_)-T-E,k+=g+Math.max(b,_)+T+E,R+=y-Math.max(b,_)-T-E,S+=y+Math.max(b,_)+T+E;var O=n||"main",N=a.labelBounds,P=N[O]=N[O]||{};P.x1=D,P.y1=R,P.x2=k,P.y2=S,P.w=k-D,P.h=S-R;var F=v&&x.strValue==="autorotate",B=x.pfValue!=null&&x.pfValue!==0;if(F||B){var $=F?Nx(a.rstyle,"labelAngle",n):x.pfValue,z=Math.cos($),W=Math.sin($),j=(D+k)/2,K=(R+S)/2;if(!v){switch(u.value){case"left":j=k;break;case"right":j=D;break}switch(h.value){case"top":K=S;break;case"bottom":K=R;break}}var ie=o(function(ue,ce){return ue=ue-j,ce=ce-K,{x:ue*z-ce*W+j,y:ue*W+ce*z+K}},"rotate"),Q=ie(D,R),ee=ie(D,S),J=ie(k,R),H=ie(k,S);D=Math.min(Q.x,ee.x,J.x,H.x),k=Math.max(Q.x,ee.x,J.x,H.x),R=Math.min(Q.y,ee.y,J.y,H.y),S=Math.max(Q.y,ee.y,J.y,H.y)}var q=O+"Rot",Z=N[q]=N[q]||{};Z.x1=D,Z.y1=R,Z.x2=k,Z.y2=S,Z.w=k-D,Z.h=S-R,Hl(e,D,R,k,S),Hl(a.labelBounds.all,D,R,k,S)}return e}},"updateBoundsFromLabel"),dJe=o(function(e,r){if(!r.cy().headless()){var n=r.pstyle("outline-opacity").value,i=r.pstyle("outline-width").value;if(n>0&&i>0){var a=r.pstyle("outline-offset").value,s=r.pstyle("shape").value,l=i+a,u=(e.w+l*2)/e.w,h=(e.h+l*2)/e.h,f=0,d=0;["diamond","pentagon","round-triangle"].includes(s)?(u=(e.w+l*2.4)/e.w,d=-l/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(s)?u=(e.w+l*2.4)/e.w:s==="star"?(u=(e.w+l*2.8)/e.w,h=(e.h+l*2.6)/e.h,d=-l/3.8):s==="triangle"?(u=(e.w+l*2.8)/e.w,h=(e.h+l*2.4)/e.h,d=-l/1.4):s==="vee"&&(u=(e.w+l*4.4)/e.w,h=(e.h+l*3.8)/e.h,d=-l*.5);var p=e.h*h-e.h,m=e.w*u-e.w;if(s6(e,[Math.ceil(p/2),Math.ceil(m/2)]),f!=0||d!==0){var g=Ije(e,f,d);fge(e,g)}}}},"updateBoundsFromOutline"),pJe=o(function(e,r){var n=e._private.cy,i=n.styleEnabled(),a=n.headless(),s=$s(),l=e._private,u=e.isNode(),h=e.isEdge(),f,d,p,m,g,y,v=l.rstyle,x=u&&i?e.pstyle("bounds-expansion").pfValue:[0],b=o(function(De){return De.pstyle("display").value!=="none"},"isDisplayed"),w=!i||b(e)&&(!h||b(e.source())&&b(e.target()));if(w){var _=0,T=0;i&&r.includeOverlays&&(_=e.pstyle("overlay-opacity").value,_!==0&&(T=e.pstyle("overlay-padding").value));var E=0,L=0;i&&r.includeUnderlays&&(E=e.pstyle("underlay-opacity").value,E!==0&&(L=e.pstyle("underlay-padding").value));var C=Math.max(T,L),A=0,I=0;if(i&&(A=e.pstyle("width").pfValue,I=A/2),u&&r.includeNodes){var D=e.position();g=D.x,y=D.y;var k=e.outerWidth(),R=k/2,S=e.outerHeight(),O=S/2;f=g-R,d=g+R,p=y-O,m=y+O,Hl(s,f,p,d,m),i&&r.includeOutlines&&dJe(s,e)}else if(h&&r.includeEdges)if(i&&!a){var N=e.pstyle("curve-style").strValue;if(f=Math.min(v.srcX,v.midX,v.tgtX),d=Math.max(v.srcX,v.midX,v.tgtX),p=Math.min(v.srcY,v.midY,v.tgtY),m=Math.max(v.srcY,v.midY,v.tgtY),f-=I,d+=I,p-=I,m+=I,Hl(s,f,p,d,m),N==="haystack"){var P=v.haystackPts;if(P&&P.length===2){if(f=P[0].x,p=P[0].y,d=P[1].x,m=P[1].y,f>d){var F=f;f=d,d=F}if(p>m){var B=p;p=m,m=B}Hl(s,f-I,p-I,d+I,m+I)}}else if(N==="bezier"||N==="unbundled-bezier"||N.endsWith("segments")||N.endsWith("taxi")){var $;switch(N){case"bezier":case"unbundled-bezier":$=v.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":$=v.linePts;break}if($!=null)for(var z=0;z<$.length;z++){var W=$[z];f=W.x-I,d=W.x+I,p=W.y-I,m=W.y+I,Hl(s,f,p,d,m)}}}else{var j=e.source(),K=j.position(),ie=e.target(),Q=ie.position();if(f=K.x,d=Q.x,p=K.y,m=Q.y,f>d){var ee=f;f=d,d=ee}if(p>m){var J=p;p=m,m=J}f-=I,d+=I,p-=I,m+=I,Hl(s,f,p,d,m)}if(i&&r.includeEdges&&h&&(JE(s,e,"mid-source"),JE(s,e,"mid-target"),JE(s,e,"source"),JE(s,e,"target")),i){var H=e.pstyle("ghost").value==="yes";if(H){var q=e.pstyle("ghost-offset-x").pfValue,Z=e.pstyle("ghost-offset-y").pfValue;Hl(s,s.x1+q,s.y1+Z,s.x2+q,s.y2+Z)}}var ae=l.bodyBounds=l.bodyBounds||{};Gpe(ae,s),s6(ae,x),a6(ae,1),i&&(f=s.x1,d=s.x2,p=s.y1,m=s.y2,Hl(s,f-C,p-C,d+C,m+C));var ue=l.overlayBounds=l.overlayBounds||{};Gpe(ue,s),s6(ue,x),a6(ue,1);var ce=l.labelBounds=l.labelBounds||{};ce.all!=null?Mje(ce.all):ce.all=$s(),i&&r.includeLabels&&(r.includeMainLabels&&NP(s,e,null),h&&(r.includeSourceLabels&&NP(s,e,"source"),r.includeTargetLabels&&NP(s,e,"target")))}return s.x1=il(s.x1),s.y1=il(s.y1),s.x2=il(s.x2),s.y2=il(s.y2),s.w=il(s.x2-s.x1),s.h=il(s.y2-s.y1),s.w>0&&s.h>0&&w&&(s6(s,x),a6(s,1)),s},"boundingBoxImpl"),zge=o(function(e){var r=0,n=o(function(s){return(s?1:0)<=0;l--)s(l);return this};Lf.removeAllListeners=function(){return this.removeListener("*")};Lf.emit=Lf.trigger=function(t,e,r){var n=this.listeners,i=n.length;return this.emitting++,wn(e)||(e=[e]),DJe(this,function(a,s){r!=null&&(n=[{event:s.event,type:s.type,namespace:s.namespace,callback:r}],i=n.length);for(var l=o(function(f){var d=n[f];if(d.type===s.type&&(!d.namespace||d.namespace===s.namespace||d.namespace===_Je)&&a.eventMatches(a.context,d,s)){var p=[s];e!=null&&oje(p,e),a.beforeEmit(a.context,d,s),d.conf&&d.conf.one&&(a.listeners=a.listeners.filter(function(y){return y!==d}));var m=a.callbackContext(a.context,d,s),g=d.callback.apply(m,p);a.afterEmit(a.context,d,s),g===!1&&(s.stopPropagation(),s.preventDefault())}},"_loop2"),u=0;u1&&!s){var l=this.length-1,u=this[l],h=u._private.data.id;this[l]=void 0,this[e]=u,a.set(h,{ele:u,index:e})}return this.length--,this},"unmergeAt"),unmergeOne:o(function(e){e=e[0];var r=this._private,n=e._private.data.id,i=r.map,a=i.get(n);if(!a)return this;var s=a.index;return this.unmergeAt(s),this},"unmergeOne"),unmerge:o(function(e){var r=this._private.cy;if(!e)return this;if(e&&Zt(e)){var n=e;e=r.mutableElements().filter(n)}for(var i=0;i=0;r--){var n=this[r];e(n)&&this.unmergeAt(r)}return this},"unmergeBy"),map:o(function(e,r){for(var n=[],i=this,a=0;an&&(n=u,i=l)}return{value:n,ele:i}},"max"),min:o(function(e,r){for(var n=1/0,i,a=this,s=0;s=0&&a"u"?"undefined":Yi(Symbol))!=e&&Yi(Symbol.iterator)!=e;r&&(b6[Symbol.iterator]=function(){var n=this,i={value:void 0,done:!1},a=0,s=this.length;return Hme({next:o(function(){return a1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],i=n.cy();if(i.styleEnabled()&&n){this.cleanStyle();var a=n._private.style[e];return a??(r?i.style().getDefaultProperty(e):null)}},"parsedStyle"),numericStyle:o(function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var n=r.pstyle(e);return n.pfValue!==void 0?n.pfValue:n.value}},"numericStyle"),numericStyleUnits:o(function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},"numericStyleUnits"),renderedStyle:o(function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=this[0];if(n)return r.style().getRenderedStyle(n,e)},"renderedStyle"),style:o(function(e,r){var n=this.cy();if(!n.styleEnabled())return this;var i=!1,a=n.style();if(Vr(e)){var s=e;a.applyBypass(this,s,i),this.emitAndNotify("style")}else if(Zt(e))if(r===void 0){var l=this[0];return l?a.getStylePropertyValue(l,e):void 0}else a.applyBypass(this,e,r,i),this.emitAndNotify("style");else if(e===void 0){var u=this[0];return u?a.getRawStyle(u):void 0}return this},"style"),removeStyle:o(function(e){var r=this.cy();if(!r.styleEnabled())return this;var n=!1,i=r.style(),a=this;if(e===void 0)for(var s=0;s0&&e.push(f[0]),e.push(l[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:o(function(e){return this.neighborhood().add(this).filter(e)},"closedNeighborhood"),openNeighborhood:o(function(e){return this.neighborhood(e)},"openNeighborhood")});Ba.neighbourhood=Ba.neighborhood;Ba.closedNeighbourhood=Ba.closedNeighborhood;Ba.openNeighbourhood=Ba.openNeighborhood;ir(Ba,{source:al(o(function(e){var r=this[0],n;return r&&(n=r._private.source||r.cy().collection()),n&&e?n.filter(e):n},"sourceImpl"),"source"),target:al(o(function(e){var r=this[0],n;return r&&(n=r._private.target||r.cy().collection()),n&&e?n.filter(e):n},"targetImpl"),"target"),sources:vme({attr:"source"}),targets:vme({attr:"target"})});o(vme,"defineSourceFunction");ir(Ba,{edgesWith:al(xme(),"edgesWith"),edgesTo:al(xme({thisIsSrc:!0}),"edgesTo")});o(xme,"defineEdgesWithFunction");ir(Ba,{connectedEdges:al(function(t){for(var e=[],r=this,n=0;n0);return s},"components"),component:o(function(){var e=this[0];return e.cy().mutableElements().components(e)[0]},"component")});Ba.componentsOf=Ba.components;ba=o(function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){hi("A collection must have a reference to the core");return}var a=new Uc,s=!1;if(!r)r=[];else if(r.length>0&&Vr(r[0])&&!Jx(r[0])){s=!0;for(var l=[],u=new f1,h=0,f=r.length;h0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=r.cy(),i=n._private,a=[],s=[],l,u=0,h=r.length;u0){for(var B=l.length===r.length?r:new ba(n,l),$=0;$0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=[],i={},a=r._private.cy;function s(S){for(var O=S._private.edges,N=0;N0&&(t?D.emitAndNotify("remove"):e&&D.emit("remove"));for(var k=0;kf&&Math.abs(g.v)>f;);return p?function(y){return u[y*(u.length-1)|0]}:h},"springRK4Factory")}(),Dn=o(function(e,r,n,i){var a=GJe(e,r,n,i);return function(s,l,u){return s+(l-s)*a(u)}},"cubicBezier"),c6={linear:o(function(e,r,n){return e+(r-e)*n},"linear"),ease:Dn(.25,.1,.25,1),"ease-in":Dn(.42,0,1,1),"ease-out":Dn(0,0,.58,1),"ease-in-out":Dn(.42,0,.58,1),"ease-in-sine":Dn(.47,0,.745,.715),"ease-out-sine":Dn(.39,.575,.565,1),"ease-in-out-sine":Dn(.445,.05,.55,.95),"ease-in-quad":Dn(.55,.085,.68,.53),"ease-out-quad":Dn(.25,.46,.45,.94),"ease-in-out-quad":Dn(.455,.03,.515,.955),"ease-in-cubic":Dn(.55,.055,.675,.19),"ease-out-cubic":Dn(.215,.61,.355,1),"ease-in-out-cubic":Dn(.645,.045,.355,1),"ease-in-quart":Dn(.895,.03,.685,.22),"ease-out-quart":Dn(.165,.84,.44,1),"ease-in-out-quart":Dn(.77,0,.175,1),"ease-in-quint":Dn(.755,.05,.855,.06),"ease-out-quint":Dn(.23,1,.32,1),"ease-in-out-quint":Dn(.86,0,.07,1),"ease-in-expo":Dn(.95,.05,.795,.035),"ease-out-expo":Dn(.19,1,.22,1),"ease-in-out-expo":Dn(1,0,0,1),"ease-in-circ":Dn(.6,.04,.98,.335),"ease-out-circ":Dn(.075,.82,.165,1),"ease-in-out-circ":Dn(.785,.135,.15,.86),spring:o(function(e,r,n){if(n===0)return c6.linear;var i=$Je(e,r,n);return function(a,s,l){return a+(s-a)*i(l)}},"spring"),"cubic-bezier":Dn};o(wme,"getEasedValue");o(Tme,"getValue");o(Zg,"ease");o(VJe,"step$1");o(Mx,"valid");o(UJe,"startAnimation");o(kme,"stepAll");HJe={animate:sn.animate(),animation:sn.animation(),animated:sn.animated(),clearQueue:sn.clearQueue(),delay:sn.delay(),delayAnimation:sn.delayAnimation(),stop:sn.stop(),addToAnimationPool:o(function(e){var r=this;r.styleEnabled()&&r._private.aniEles.merge(e)},"addToAnimationPool"),stopAnimationLoop:o(function(){this._private.animationsRunning=!1},"stopAnimationLoop"),startAnimationLoop:o(function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function r(){e._private.animationsRunning&&m6(o(function(a){kme(a,e),r()},"animationStep"))}o(r,"headlessStep");var n=e.renderer();n&&n.beforeRender?n.beforeRender(o(function(a,s){kme(s,e)},"rendererAnimationStep"),n.beforeRenderPriorities.animations):r()},"startAnimationLoop")},WJe={qualifierCompare:o(function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},"qualifierCompare"),eventMatches:o(function(e,r,n){var i=r.qualifier;return i!=null?e!==n.target&&Jx(n.target)&&i.matches(n.target):!0},"eventMatches"),addEventFields:o(function(e,r){r.cy=e,r.target=e},"addEventFields"),callbackContext:o(function(e,r,n){return r.qualifier!=null?n.target:e},"callbackContext")},r6=o(function(e){return Zt(e)?new Af(e):e},"argSelector"),Kge={createEmitter:o(function(){var e=this._private;return e.emitter||(e.emitter=new O6(WJe,this)),this},"createEmitter"),emitter:o(function(){return this._private.emitter},"emitter"),on:o(function(e,r,n){return this.emitter().on(e,r6(r),n),this},"on"),removeListener:o(function(e,r,n){return this.emitter().removeListener(e,r6(r),n),this},"removeListener"),removeAllListeners:o(function(){return this.emitter().removeAllListeners(),this},"removeAllListeners"),one:o(function(e,r,n){return this.emitter().one(e,r6(r),n),this},"one"),once:o(function(e,r,n){return this.emitter().one(e,r6(r),n),this},"once"),emit:o(function(e,r){return this.emitter().emit(e,r),this},"emit"),emitAndNotify:o(function(e,r){return this.emit(e),this.notify(e,r),this},"emitAndNotify")};sn.eventAliasesOn(Kge);UP={png:o(function(e){var r=this._private.renderer;return e=e||{},r.png(e)},"png"),jpg:o(function(e){var r=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",r.jpg(e)},"jpg")};UP.jpeg=UP.jpg;u6={layout:o(function(e){var r=this;if(e==null){hi("Layout options must be specified to make a layout");return}if(e.name==null){hi("A `name` must be specified to make a layout");return}var n=e.name,i=r.extension("layout",n);if(i==null){hi("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var a;Zt(e.eles)?a=r.$(e.eles):a=e.eles!=null?e.eles:r.$();var s=new i(ir({},e,{cy:r,eles:a}));return s},"layout")};u6.createLayout=u6.makeLayout=u6.layout;YJe={notify:o(function(e,r){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var i=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();r!=null&&i.merge(r);return}if(n.notificationsEnabled){var a=this.renderer();this.destroyed()||!a||a.notify(e,r)}},"notify"),notifications:o(function(e){var r=this._private;return e===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},"notifications"),noNotifications:o(function(e){this.notifications(!1),e(),this.notifications(!0)},"noNotifications"),batching:o(function(){return this._private.batchCount>0},"batching"),startBatch:o(function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},"startBatch"),endBatch:o(function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var i=e.batchNotifications[n];i.empty()?r.notify(n):r.notify(n,i)})}return this},"endBatch"),batch:o(function(e){return this.startBatch(),e(),this.endBatch(),this},"batch"),batchData:o(function(e){var r=this;return this.batch(function(){for(var n=Object.keys(e),i=0;i0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(n){var i=n._private;i.rscratch={},i.rstyle={},i.animation.current=[],i.animation.queue=[]})},"destroyRenderer"),onRender:o(function(e){return this.on("render",e)},"onRender"),offRender:o(function(e){return this.off("render",e)},"offRender")};HP.invalidateDimensions=HP.resize;h6={collection:o(function(e,r){return Zt(e)?this.$(e):po(e)?e.collection():wn(e)?(r||(r={}),new ba(this,e,r.unique,r.removed)):new ba(this)},"collection"),nodes:o(function(e){var r=this.$(function(n){return n.isNode()});return e?r.filter(e):r},"nodes"),edges:o(function(e){var r=this.$(function(n){return n.isEdge()});return e?r.filter(e):r},"edges"),$:o(function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},"$"),mutableElements:o(function(){return this._private.elements},"mutableElements")};h6.elements=h6.filter=h6.$;za={},zx="t",XJe="f";za.apply=function(t){for(var e=this,r=e._private,n=r.cy,i=n.collection(),a=0;a0;if(p||d&&m){var g=void 0;p&&m||p?g=h.properties:m&&(g=h.mappedProperties);for(var y=0;y1&&(_=1),l.color){var E=n.valueMin[0],L=n.valueMax[0],C=n.valueMin[1],A=n.valueMax[1],I=n.valueMin[2],D=n.valueMax[2],k=n.valueMin[3]==null?1:n.valueMin[3],R=n.valueMax[3]==null?1:n.valueMax[3],S=[Math.round(E+(L-E)*_),Math.round(C+(A-C)*_),Math.round(I+(D-I)*_),Math.round(k+(R-k)*_)];a={bypass:n.bypass,name:n.name,value:S,strValue:"rgb("+S[0]+", "+S[1]+", "+S[2]+")"}}else if(l.number){var O=n.valueMin+(n.valueMax-n.valueMin)*_;a=this.parse(n.name,O,n.bypass,p)}else return!1;if(!a)return y(),!1;a.mapping=n,n=a;break}case s.data:{for(var N=n.field.split("."),P=d.data,F=0;F0&&a>0){for(var l={},u=!1,h=0;h0?t.delayAnimation(s).play().promise().then(w):w()}).then(function(){return t.animation({style:l,duration:a,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,i),t.emitAndNotify("style"),n.transitioning=!1})}else n.transitioning&&(this.removeBypasses(t,i),t.emitAndNotify("style"),n.transitioning=!1)};za.checkTrigger=function(t,e,r,n,i,a){var s=this.properties[e],l=i(s);l!=null&&l(r,n)&&a(s)};za.checkZOrderTrigger=function(t,e,r,n){var i=this;this.checkTrigger(t,e,r,n,function(a){return a.triggersZOrder},function(){i._private.cy.notify("zorder",t)})};za.checkBoundsTrigger=function(t,e,r,n){this.checkTrigger(t,e,r,n,function(i){return i.triggersBounds},function(i){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),i.triggersBoundsOfParallelBeziers&&e==="curve-style"&&(r==="bezier"||n==="bezier")&&t.parallelEdges().forEach(function(a){a.isBundledBezier()&&a.dirtyBoundingBoxCache()}),i.triggersBoundsOfConnectedEdges&&e==="display"&&(r==="none"||n==="none")&&t.connectedEdges().forEach(function(a){a.dirtyBoundingBoxCache()})})};za.checkTriggers=function(t,e,r,n){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,n),this.checkBoundsTrigger(t,e,r,n)};nb={};nb.applyBypass=function(t,e,r,n){var i=this,a=[],s=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var l=0;li.length?n=n.substr(i.length):n=""}o(l,"removeSelAndBlockFromRemaining");function u(){a.length>s.length?a=a.substr(s.length):a=""}for(o(u,"removePropAndValFromRem");;){var h=n.match(/^\s*$/);if(h)break;var f=n.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!f){on("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+n);break}i=f[0];var d=f[1];if(d!=="core"){var p=new Af(d);if(p.invalid){on("Skipping parsing of block: Invalid selector found in string stylesheet: "+d),l();continue}}var m=f[2],g=!1;a=m;for(var y=[];;){var v=a.match(/^\s*$/);if(v)break;var x=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!x){on("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+m),g=!0;break}s=x[0];var b=x[1],w=x[2],_=e.properties[b];if(!_){on("Skipping property: Invalid property name in: "+s),u();continue}var T=r.parse(b,w);if(!T){on("Skipping property: Invalid property definition in: "+s),u();continue}y.push({name:b,val:w}),u()}if(g){l();break}r.selector(d);for(var E=0;E=7&&e[0]==="d"&&(f=new RegExp(l.data.regex).exec(e))){if(r)return!1;var p=l.data;return{name:t,value:f,strValue:""+e,mapped:p,field:f[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(d=new RegExp(l.mapData.regex).exec(e))){if(r||h.multiple)return!1;var m=l.mapData;if(!(h.color||h.number))return!1;var g=this.parse(t,d[4]);if(!g||g.mapped)return!1;var y=this.parse(t,d[5]);if(!y||y.mapped)return!1;if(g.pfValue===y.pfValue||g.strValue===y.strValue)return on("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+g.strValue+"`"),this.parse(t,g.strValue);if(h.color){var v=g.value,x=y.value,b=v[0]===x[0]&&v[1]===x[1]&&v[2]===x[2]&&(v[3]===x[3]||(v[3]==null||v[3]===1)&&(x[3]==null||x[3]===1));if(b)return!1}return{name:t,value:d,strValue:""+e,mapped:m,field:d[1],fieldMin:parseFloat(d[2]),fieldMax:parseFloat(d[3]),valueMin:g.value,valueMax:y.value,bypass:r}}}if(h.multiple&&n!=="multiple"){var w;if(u?w=e.split(/\s+/):wn(e)?w=e:w=[e],h.evenMultiple&&w.length%2!==0)return null;for(var _=[],T=[],E=[],L="",C=!1,A=0;A0?" ":"")+I.strValue}return h.validate&&!h.validate(_,T)?null:h.singleEnum&&C?_.length===1&&Zt(_[0])?{name:t,value:_[0],strValue:_[0],bypass:r}:null:{name:t,value:_,pfValue:E,strValue:L,bypass:r,units:T}}var D=o(function(){for(var H=0;Hh.max||h.strictMax&&e===h.max))return null;var N={name:t,value:e,strValue:""+e+(k||""),units:k,bypass:r};return h.unitless||k!=="px"&&k!=="em"?N.pfValue=e:N.pfValue=k==="px"||!k?e:this.getEmSizeInPixels()*e,(k==="ms"||k==="s")&&(N.pfValue=k==="ms"?e:1e3*e),(k==="deg"||k==="rad")&&(N.pfValue=k==="rad"?e:Lje(e)),k==="%"&&(N.pfValue=e/100),N}else if(h.propList){var P=[],F=""+e;if(F!=="none"){for(var B=F.split(/\s*,\s*|\s+/),$=0;$0&&l>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){u=Math.min((s-2*r)/n.w,(l-2*r)/n.h),u=u>this._private.maxZoom?this._private.maxZoom:u,u=u=n.minZoom&&(n.maxZoom=r),this},"zoomRange"),minZoom:o(function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},"minZoom"),maxZoom:o(function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},"maxZoom"),getZoomedViewport:o(function(e){var r=this._private,n=r.pan,i=r.zoom,a,s,l=!1;if(r.zoomingEnabled||(l=!0),xt(e)?s=e:Vr(e)&&(s=e.level,e.position!=null?a=L6(e.position,i,n):e.renderedPosition!=null&&(a=e.renderedPosition),a!=null&&!r.panningEnabled&&(l=!0)),s=s>r.maxZoom?r.maxZoom:s,s=sr.maxZoom||!r.zoomingEnabled?s=!0:(r.zoom=u,a.push("zoom"))}if(i&&(!s||!e.cancelOnFailedZoom)&&r.panningEnabled){var h=e.pan;xt(h.x)&&(r.pan.x=h.x,l=!1),xt(h.y)&&(r.pan.y=h.y,l=!1),l||a.push("pan")}return a.length>0&&(a.push("viewport"),this.emit(a.join(" ")),this.notify("viewport")),this},"viewport"),center:o(function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},"center"),getCenterPan:o(function(e,r){if(this._private.panningEnabled){if(Zt(e)){var n=e;e=this.mutableElements().filter(n)}else po(e)||(e=this.mutableElements());if(e.length!==0){var i=e.boundingBox(),a=this.width(),s=this.height();r=r===void 0?this._private.zoom:r;var l={x:(a-r*(i.x1+i.x2))/2,y:(s-r*(i.y1+i.y2))/2};return l}}},"getCenterPan"),reset:o(function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},"reset"),invalidateSize:o(function(){this._private.sizeCache=null},"invalidateSize"),size:o(function(){var e=this._private,r=e.container,n=this;return e.sizeCache=e.sizeCache||(r?function(){var i=n.window().getComputedStyle(r),a=o(function(l){return parseFloat(i.getPropertyValue(l))},"val");return{width:r.clientWidth-a("padding-left")-a("padding-right"),height:r.clientHeight-a("padding-top")-a("padding-bottom")}}():{width:1,height:1})},"size"),width:o(function(){return this.size().width},"width"),height:o(function(){return this.size().height},"height"),extent:o(function(){var e=this._private.pan,r=this._private.zoom,n=this.renderedExtent(),i={x1:(n.x1-e.x)/r,x2:(n.x2-e.x)/r,y1:(n.y1-e.y)/r,y2:(n.y2-e.y)/r};return i.w=i.x2-i.x1,i.h=i.y2-i.y1,i},"extent"),renderedExtent:o(function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},"renderedExtent"),multiClickDebounceTime:o(function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this},"multiClickDebounceTime")};U0.centre=U0.center;U0.autolockNodes=U0.autolock;U0.autoungrabifyNodes=U0.autoungrabify;Kx={data:sn.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:sn.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:sn.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:sn.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Kx.attr=Kx.data;Kx.removeAttr=Kx.removeData;Qx=o(function(e){var r=this;e=ir({},e);var n=e.container;n&&!p6(n)&&p6(n[0])&&(n=n[0]);var i=n?n._cyreg:null;i=i||{},i&&i.cy&&(i.cy.destroy(),i={});var a=i.readies=i.readies||[];n&&(n._cyreg=i),i.cy=r;var s=Hi!==void 0&&n!==void 0&&!e.headless,l=e;l.layout=ir({name:s?"grid":"null"},l.layout),l.renderer=ir({name:s?"canvas":"null"},l.renderer);var u=o(function(g,y,v){return y!==void 0?y:v!==void 0?v:g},"defVal"),h=this._private={container:n,ready:!1,options:l,elements:new ba(this),listeners:[],aniEles:new ba(this),data:l.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:u(!0,l.zoomingEnabled),userZoomingEnabled:u(!0,l.userZoomingEnabled),panningEnabled:u(!0,l.panningEnabled),userPanningEnabled:u(!0,l.userPanningEnabled),boxSelectionEnabled:u(!0,l.boxSelectionEnabled),autolock:u(!1,l.autolock,l.autolockNodes),autoungrabify:u(!1,l.autoungrabify,l.autoungrabifyNodes),autounselectify:u(!1,l.autounselectify),styleEnabled:l.styleEnabled===void 0?s:l.styleEnabled,zoom:xt(l.zoom)?l.zoom:1,pan:{x:Vr(l.pan)&&xt(l.pan.x)?l.pan.x:0,y:Vr(l.pan)&&xt(l.pan.y)?l.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:u(250,l.multiClickDebounceTime)};this.createEmitter(),this.selectionType(l.selectionType),this.zoomRange({min:l.minZoom,max:l.maxZoom});var f=o(function(g,y){var v=g.some(Jqe);if(v)return d1.all(g).then(y);y(g)},"loadExtData");h.styleEnabled&&r.setStyle([]);var d=ir({},l,l.renderer);r.initRenderer(d);var p=o(function(g,y,v){r.notifications(!1);var x=r.mutableElements();x.length>0&&x.remove(),g!=null&&(Vr(g)||wn(g))&&r.add(g),r.one("layoutready",function(w){r.notifications(!0),r.emit(w),r.one("load",y),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",v),r.emit("done")});var b=ir({},r._private.options.layout);b.eles=r.elements(),r.layout(b).run()},"setElesAndLayout");f([l.style,l.elements],function(m){var g=m[0],y=m[1];h.styleEnabled&&r.style().append(g),p(y,function(){r.startAnimationLoop(),h.ready=!0,ti(l.ready)&&r.on("ready",l.ready);for(var v=0;v0,u=$s(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),h;if(po(e.roots))h=e.roots;else if(wn(e.roots)){for(var f=[],d=0;d0;){var O=S(),N=I(O,k);if(N)O.outgoers().filter(function(ce){return ce.isNode()&&n.has(ce)}).forEach(R);else if(N===null){on("Detected double maximal shift for node `"+O.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}A();var P=0;if(e.avoidOverlap)for(var F=0;F0&&x[0].length<=3?Ge/2:0),X=2*Math.PI/x[oe].length*ke;return oe===0&&x[0].length===1&&(xe=1),{x:Z.x+xe*Math.cos(X),y:Z.y+xe*Math.sin(X)}}else{var He={x:Z.x+(ke+1-(Fe+1)/2)*Be,y:(oe+1)*Ve};return He}},"getPosition");return n.nodes().layoutPositions(this,e,ue),this};JJe={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:o(function(e,r){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:o(function(e,r){return r},"transform")};o(Zge,"CircleLayout");Zge.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,i=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=n.nodes().not(":parent");e.sort&&(a=a.sort(e.sort));for(var s=$s(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),l={x:s.x1+s.w/2,y:s.y1+s.h/2},u=e.sweep===void 0?2*Math.PI-2*Math.PI/a.length:e.sweep,h=u/Math.max(1,a.length-1),f,d=0,p=0;p1&&e.avoidOverlap){d*=1.75;var x=Math.cos(h)-Math.cos(0),b=Math.sin(h)-Math.sin(0),w=Math.sqrt(d*d/(x*x+b*b));f=Math.max(w,f)}var _=o(function(E,L){var C=e.startAngle+L*h*(i?1:-1),A=f*Math.cos(C),I=f*Math.sin(C),D={x:l.x+A,y:l.y+I};return D},"getPos");return n.nodes().layoutPositions(this,e,_),this};eet={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:o(function(e){return e.degree()},"concentric"),levelWidth:o(function(e){return e.maxDegree()/4},"levelWidth"),animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:o(function(e,r){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:o(function(e,r){return r},"transform")};o(Jge,"ConcentricLayout");Jge.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,n=t.cy,i=e.eles,a=i.nodes().not(":parent"),s=$s(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),l={x:s.x1+s.w/2,y:s.y1+s.h/2},u=[],h=0,f=0;f0){var T=Math.abs(b[0].value-_.value);T>=v&&(b=[],x.push(b))}b.push(_)}var E=h+e.minNodeSpacing;if(!e.avoidOverlap){var L=x.length>0&&x[0].length>1,C=Math.min(s.w,s.h)/2-E,A=C/(x.length+L?1:0);E=Math.min(E,A)}for(var I=0,D=0;D1&&e.avoidOverlap){var O=Math.cos(S)-Math.cos(0),N=Math.sin(S)-Math.sin(0),P=Math.sqrt(E*E/(O*O+N*N));I=Math.max(P,I)}k.r=I,I+=E}if(e.equidistant){for(var F=0,B=0,$=0;$=t.numIter||(cet(n,t),n.temperature=n.temperature*t.coolingFactor,n.temperature=t.animationThreshold&&a(),m6(d)}},"frame");f()}else{for(;h;)h=s(u),u++;Cme(n,t),l()}return this};G6.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};G6.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};ret=o(function(e,r,n){for(var i=n.eles.edges(),a=n.eles.nodes(),s=$s(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),l={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:a.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:i.size(),temperature:n.initialTemp,clientWidth:s.w,clientHeight:s.h,boundingBox:s},u=n.eles.components(),h={},f=0;f0){l.graphSet.push(C);for(var f=0;fi.count?0:i.graph},"findLCA"),iet=o(function t(e,r,n,i){var a=i.graphSet[n];if(-10)var d=i.nodeOverlap*f,p=Math.sqrt(l*l+u*u),m=d*l/p,g=d*u/p;else var y=T6(e,l,u),v=T6(r,-1*l,-1*u),x=v.x-y.x,b=v.y-y.y,w=x*x+b*b,p=Math.sqrt(w),d=(e.nodeRepulsion+r.nodeRepulsion)/w,m=d*x/p,g=d*b/p;e.isLocked||(e.offsetX-=m,e.offsetY-=g),r.isLocked||(r.offsetX+=m,r.offsetY+=g)}},"nodeRepulsion"),fet=o(function(e,r,n,i){if(n>0)var a=e.maxX-r.minX;else var a=r.maxX-e.minX;if(i>0)var s=e.maxY-r.minY;else var s=r.maxY-e.minY;return a>=0&&s>=0?Math.sqrt(a*a+s*s):0},"nodesOverlap"),T6=o(function(e,r,n){var i=e.positionX,a=e.positionY,s=e.height||1,l=e.width||1,u=n/r,h=s/l,f={};return r===0&&0n?(f.x=i,f.y=a+s/2,f):0r&&-1*h<=u&&u<=h?(f.x=i-l/2,f.y=a-l*n/2/r,f):0=h)?(f.x=i+s*r/2/n,f.y=a+s/2,f):(0>n&&(u<=-1*h||u>=h)&&(f.x=i-s*r/2/n,f.y=a-s/2),f)},"findClippingPoint"),det=o(function(e,r){for(var n=0;nn){var v=r.gravity*m/y,x=r.gravity*g/y;p.offsetX+=v,p.offsetY+=x}}}}},"calculateGravityForces"),met=o(function(e,r){var n=[],i=0,a=-1;for(n.push.apply(n,e.graphSet[0]),a+=e.graphSet[0].length;i<=a;){var s=n[i++],l=e.idToIndex[s],u=e.layoutNodes[l],h=u.children;if(0n)var a={x:n*e/i,y:n*r/i};else var a={x:e,y:r};return a},"limitForce"),vet=o(function t(e,r){var n=e.parentId;if(n!=null){var i=r.layoutNodes[r.idToIndex[n]],a=!1;if((i.maxX==null||e.maxX+i.padRight>i.maxX)&&(i.maxX=e.maxX+i.padRight,a=!0),(i.minX==null||e.minX-i.padLefti.maxY)&&(i.maxY=e.maxY+i.padBottom,a=!0),(i.minY==null||e.minY-i.padTopx&&(g+=v+r.componentSpacing,m=0,y=0,v=0)}}},"separateComponents"),xet={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:o(function(e){},"position"),sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:o(function(e,r){return!0},"animateFilter"),ready:void 0,stop:void 0,transform:o(function(e,r){return r},"transform")};o(t1e,"GridLayout");t1e.prototype.run=function(){var t=this.options,e=t,r=t.cy,n=e.eles,i=n.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));var a=$s(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(a.h===0||a.w===0)n.nodes().layoutPositions(this,e,function(j){return{x:a.x1,y:a.y1}});else{var s=i.size(),l=Math.sqrt(s*a.h/a.w),u=Math.round(l),h=Math.round(a.w/a.h*l),f=o(function(K){if(K==null)return Math.min(u,h);var ie=Math.min(u,h);ie==u?u=K:h=K},"small"),d=o(function(K){if(K==null)return Math.max(u,h);var ie=Math.max(u,h);ie==u?u=K:h=K},"large"),p=e.rows,m=e.cols!=null?e.cols:e.columns;if(p!=null&&m!=null)u=p,h=m;else if(p!=null&&m==null)u=p,h=Math.ceil(s/u);else if(p==null&&m!=null)h=m,u=Math.ceil(s/h);else if(h*u>s){var g=f(),y=d();(g-1)*y>=s?f(g-1):(y-1)*g>=s&&d(y-1)}else for(;h*u=s?d(x+1):f(v+1)}var b=a.w/h,w=a.h/u;if(e.condense&&(b=0,w=0),e.avoidOverlap)for(var _=0;_=h&&(O=0,S++)},"moveToNextCell"),P={},F=0;F(O=Vje(t,e,N[P],N[P+1],N[P+2],N[P+3])))return v(L,O),!0}else if(A.edgeType==="bezier"||A.edgeType==="multibezier"||A.edgeType==="self"||A.edgeType==="compound"){for(var N=A.allpts,P=0;P+5(O=$je(t,e,N[P],N[P+1],N[P+2],N[P+3],N[P+4],N[P+5])))return v(L,O),!0}for(var F=F||C.source,B=B||C.target,$=i.getArrowWidth(I,D),z=[{name:"source",x:A.arrowStartX,y:A.arrowStartY,angle:A.srcArrowAngle},{name:"target",x:A.arrowEndX,y:A.arrowEndY,angle:A.tgtArrowAngle},{name:"mid-source",x:A.midX,y:A.midY,angle:A.midsrcArrowAngle},{name:"mid-target",x:A.midX,y:A.midY,angle:A.midtgtArrowAngle}],P=0;P0&&(x(F),x(B))}o(b,"checkEdge");function w(L,C,A){return Wl(L,C,A)}o(w,"preprop");function _(L,C){var A=L._private,I=p,D;C?D=C+"-":D="",L.boundingBox();var k=A.labelBounds[C||"main"],R=L.pstyle(D+"label").value,S=L.pstyle("text-events").strValue==="yes";if(!(!S||!R)){var O=w(A.rscratch,"labelX",C),N=w(A.rscratch,"labelY",C),P=w(A.rscratch,"labelAngle",C),F=L.pstyle(D+"text-margin-x").pfValue,B=L.pstyle(D+"text-margin-y").pfValue,$=k.x1-I-F,z=k.x2+I-F,W=k.y1-I-B,j=k.y2+I-B;if(P){var K=Math.cos(P),ie=Math.sin(P),Q=o(function(ue,ce){return ue=ue-O,ce=ce-N,{x:ue*K-ce*ie+O,y:ue*ie+ce*K+N}},"rotate"),ee=Q($,W),J=Q($,j),H=Q(z,W),q=Q(z,j),Z=[ee.x+F,ee.y+B,H.x+F,H.y+B,q.x+F,q.y+B,J.x+F,J.y+B];if(Gs(t,e,Z))return v(L),!0}else if(c1(k,t,e))return v(L),!0}}o(_,"checkLabel");for(var T=s.length-1;T>=0;T--){var E=s[T];E.isNode()?x(E)||_(E):b(E)||_(E)||_(E,"source")||_(E,"target")}return l};W0.getAllInBox=function(t,e,r,n){var i=this.getCachedZSortedEles().interactive,a=[],s=Math.min(t,r),l=Math.max(t,r),u=Math.min(e,n),h=Math.max(e,n);t=s,r=l,e=u,n=h;for(var f=$s({x1:t,y1:e,x2:r,y2:n}),d=0;d0?-(Math.PI-e.ang):Math.PI+e.ang},"invertVec"),Cet=o(function(e,r,n,i,a){if(e!==Nme?Rme(r,e,$c):Eet(nl,$c),Rme(r,n,nl),Lme=$c.nx*nl.ny-$c.ny*nl.nx,Dme=$c.nx*nl.nx-$c.ny*-nl.ny,qu=Math.asin(Math.max(-1,Math.min(1,Lme))),Math.abs(qu)<1e-6){WP=r.x,YP=r.y,O0=e1=0;return}P0=1,f6=!1,Dme<0?qu<0?qu=Math.PI+qu:(qu=Math.PI-qu,P0=-1,f6=!0):qu>0&&(P0=-1,f6=!0),r.radius!==void 0?e1=r.radius:e1=i,N0=qu/2,n6=Math.min($c.len/2,nl.len/2),a?(Gc=Math.abs(Math.cos(N0)*e1/Math.sin(N0)),Gc>n6?(Gc=n6,O0=Math.abs(Gc*Math.sin(N0)/Math.cos(N0))):O0=e1):(Gc=Math.min(n6,e1),O0=Math.abs(Gc*Math.sin(N0)/Math.cos(N0))),qP=r.x+nl.nx*Gc,XP=r.y+nl.ny*Gc,WP=qP-nl.ny*O0*P0,YP=XP+nl.nx*O0*P0,a1e=r.x+$c.nx*Gc,s1e=r.y+$c.ny*Gc,Nme=r},"calcCornerArc");o(o1e,"drawPreparedRoundCorner");o(bB,"getRoundCorner");Ga={};Ga.findMidptPtsEtc=function(t,e){var r=e.posPts,n=e.intersectionPts,i=e.vectorNormInverse,a,s=t.pstyle("source-endpoint"),l=t.pstyle("target-endpoint"),u=s.units!=null&&l.units!=null,h=o(function(T,E,L,C){var A=C-E,I=L-T,D=Math.sqrt(I*I+A*A);return{x:-A/D,y:I/D}},"recalcVectorNormInverse"),f=t.pstyle("edge-distances").value;switch(f){case"node-position":a=r;break;case"intersection":a=n;break;case"endpoints":{if(u){var d=this.manualEndptToPx(t.source()[0],s),p=Ul(d,2),m=p[0],g=p[1],y=this.manualEndptToPx(t.target()[0],l),v=Ul(y,2),x=v[0],b=v[1],w={x1:m,y1:g,x2:x,y2:b};i=h(m,g,x,b),a=w}else on("Edge ".concat(t.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),a=n;break}}return{midptPts:a,vectorNormInverse:i}};Ga.findHaystackPoints=function(t){for(var e=0;e0?Math.max(se-Ee,0):Math.min(se+Ee,0)},"subDWH"),R=k(I,C),S=k(D,A),O=!1;b===h?x=Math.abs(R)>Math.abs(S)?i:n:b===u||b===l?(x=n,O=!0):(b===a||b===s)&&(x=i,O=!0);var N=x===n,P=N?S:R,F=N?D:I,B=hge(F),$=!1;!(O&&(_||E))&&(b===l&&F<0||b===u&&F>0||b===a&&F>0||b===s&&F<0)&&(B*=-1,P=B*Math.abs(P),$=!0);var z;if(_){var W=T<0?1+T:T;z=W*P}else{var j=T<0?P:0;z=j+T*B}var K=o(function(se){return Math.abs(se)=Math.abs(P)},"getIsTooClose"),ie=K(z),Q=K(Math.abs(P)-Math.abs(z)),ee=ie||Q;if(ee&&!$)if(N){var J=Math.abs(F)<=p/2,H=Math.abs(I)<=m/2;if(J){var q=(f.x1+f.x2)/2,Z=f.y1,ae=f.y2;r.segpts=[q,Z,q,ae]}else if(H){var ue=(f.y1+f.y2)/2,ce=f.x1,te=f.x2;r.segpts=[ce,ue,te,ue]}else r.segpts=[f.x1,f.y2]}else{var De=Math.abs(F)<=d/2,oe=Math.abs(D)<=g/2;if(De){var ke=(f.y1+f.y2)/2,Fe=f.x1,Be=f.x2;r.segpts=[Fe,ke,Be,ke]}else if(oe){var Ve=(f.x1+f.x2)/2,Ge=f.y1,He=f.y2;r.segpts=[Ve,Ge,Ve,He]}else r.segpts=[f.x2,f.y1]}else if(N){var xe=f.y1+z+(v?p/2*B:0),X=f.x1,fe=f.x2;r.segpts=[X,xe,fe,xe]}else{var he=f.x1+z+(v?d/2*B:0),ge=f.y1,ne=f.y2;r.segpts=[he,ge,he,ne]}if(r.isRound){var ye=t.pstyle("taxi-radius").value,U=t.pstyle("radius-type").value[0]==="arc-radius";r.radii=new Array(r.segpts.length/2).fill(ye),r.isArcRadius=new Array(r.segpts.length/2).fill(U)}};Ga.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var n=e.srcPos,i=e.tgtPos,a=e.srcW,s=e.srcH,l=e.tgtW,u=e.tgtH,h=e.srcShape,f=e.tgtShape,d=e.srcCornerRadius,p=e.tgtCornerRadius,m=e.srcRs,g=e.tgtRs,y=!xt(r.startX)||!xt(r.startY),v=!xt(r.arrowStartX)||!xt(r.arrowStartY),x=!xt(r.endX)||!xt(r.endY),b=!xt(r.arrowEndX)||!xt(r.arrowEndY),w=3,_=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,T=w*_,E=G0({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),L=ES.poolIndex()){var O=R;R=S,S=O}var N=A.srcPos=R.position(),P=A.tgtPos=S.position(),F=A.srcW=R.outerWidth(),B=A.srcH=R.outerHeight(),$=A.tgtW=S.outerWidth(),z=A.tgtH=S.outerHeight(),W=A.srcShape=r.nodeShapes[e.getNodeShape(R)],j=A.tgtShape=r.nodeShapes[e.getNodeShape(S)],K=A.srcCornerRadius=R.pstyle("corner-radius").value==="auto"?"auto":R.pstyle("corner-radius").pfValue,ie=A.tgtCornerRadius=S.pstyle("corner-radius").value==="auto"?"auto":S.pstyle("corner-radius").pfValue,Q=A.tgtRs=S._private.rscratch,ee=A.srcRs=R._private.rscratch;A.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var J=0;J0){var ae=a,ue=M0(ae,r1(r)),ce=M0(ae,r1(Z)),te=ue;if(ce2){var De=M0(ae,{x:Z[2],y:Z[3]});De0){var ne=s,ye=M0(ne,r1(r)),U=M0(ne,r1(ge)),Te=ye;if(U2){var se=M0(ne,{x:ge[2],y:ge[3]});se=g||L){v={cp:_,segment:E};break}}if(v)break}var C=v.cp,A=v.segment,I=(g-x)/A.length,D=A.t1-A.t0,k=m?A.t0+D*I:A.t1-D*I;k=Wx(0,k,1),e=i1(C.p0,C.p1,C.p2,k),p=_et(C.p0,C.p1,C.p2,k);break}case"straight":case"segments":case"haystack":{for(var R=0,S,O,N,P,F=n.allpts.length,B=0;B+3=g));B+=2);var $=g-O,z=$/S;z=Wx(0,z,1),e=Nje(N,P,z),p=u1e(N,P);break}}s("labelX",d,e.x),s("labelY",d,e.y),s("labelAutoAngle",d,p)}},"calculateEndProjection");h("source"),h("target"),this.applyLabelDimensions(t)}};Wc.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))};Wc.applyPrefixedLabelDimensions=function(t,e){var r=t._private,n=this.getLabelText(t,e),i=this.calculateLabelDimensions(t,n),a=t.pstyle("line-height").pfValue,s=t.pstyle("text-wrap").strValue,l=Wl(r.rscratch,"labelWrapCachedLines",e)||[],u=s!=="wrap"?1:Math.max(l.length,1),h=i.height/u,f=h*a,d=i.width,p=i.height+(u-1)*(a-1)*h;wf(r.rstyle,"labelWidth",e,d),wf(r.rscratch,"labelWidth",e,d),wf(r.rstyle,"labelHeight",e,p),wf(r.rscratch,"labelHeight",e,p),wf(r.rscratch,"labelLineHeight",e,f)};Wc.getLabelText=function(t,e){var r=t._private,n=e?e+"-":"",i=t.pstyle(n+"label").strValue,a=t.pstyle("text-transform").value,s=o(function(j,K){return K?(wf(r.rscratch,j,e,K),K):Wl(r.rscratch,j,e)},"rscratch");if(!i)return"";a=="none"||(a=="uppercase"?i=i.toUpperCase():a=="lowercase"&&(i=i.toLowerCase()));var l=t.pstyle("text-wrap").value;if(l==="wrap"){var u=s("labelKey");if(u!=null&&s("labelWrapKey")===u)return s("labelWrapCachedText");for(var h="\u200B",f=i.split(` +`),d=t.pstyle("text-max-width").pfValue,p=t.pstyle("text-overflow-wrap").value,m=p==="anywhere",g=[],y=/[\s\u200b]+|$/g,v=0;vd){var T=x.matchAll(y),E="",L=0,C=Yme(T),A;try{for(C.s();!(A=C.n()).done;){var I=A.value,D=I[0],k=x.substring(L,I.index);L=I.index+D.length;var R=E.length===0?k:E+k+D,S=this.calculateLabelDimensions(t,R),O=S.width;O<=d?E+=k+D:(E&&g.push(E),E=k+D)}}catch(W){C.e(W)}finally{C.f()}E.match(/^[\s\u200b]+$/)||g.push(E)}else g.push(x)}s("labelWrapCachedLines",g),i=s("labelWrapCachedText",g.join(` +`)),s("labelWrapKey",u)}else if(l==="ellipsis"){var N=t.pstyle("text-max-width").pfValue,P="",F="\u2026",B=!1;if(this.calculateLabelDimensions(t,i).widthN)break;P+=i[$],$===i.length-1&&(B=!0)}return B||(P+=F),P}return i};Wc.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if(e==="auto")if(t.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e};Wc.calculateLabelDimensions=function(t,e){var r=this,n=r.cy.window(),i=n.document,a=z0(e,t._private.labelDimsKey),s=r.labelDimCache||(r.labelDimCache=[]),l=s[a];if(l!=null)return l;var u=0,h=t.pstyle("font-style").strValue,f=t.pstyle("font-size").pfValue,d=t.pstyle("font-family").strValue,p=t.pstyle("font-weight").strValue,m=this.labelCalcCanvas,g=this.labelCalcCanvasContext;if(!m){m=this.labelCalcCanvas=i.createElement("canvas"),g=this.labelCalcCanvasContext=m.getContext("2d");var y=m.style;y.position="absolute",y.left="-9999px",y.top="-9999px",y.zIndex="-1",y.visibility="hidden",y.pointerEvents="none"}g.font="".concat(h," ").concat(p," ").concat(f,"px ").concat(d);for(var v=0,x=0,b=e.split(` +`),w=0;w1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(s),l)for(var u=0;u=t.desktopTapThreshold2}var Tt=i(X);Re&&(t.hoverData.tapholdCancelled=!0);var $e=o(function(){var zt=t.hoverData.dragDelta=t.hoverData.dragDelta||[];zt.length===0?(zt.push(me[0]),zt.push(me[1])):(zt[0]+=me[0],zt[1]+=me[1])},"updateDragDelta");he=!0,n(Ae,["mousemove","vmousemove","tapdrag"],X,{x:U[0],y:U[1]});var rt=o(function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||ge.emit({originalEvent:X,type:"boxstart",position:{x:U[0],y:U[1]}}),Ee[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()},"goIntoBoxMode");if(t.hoverData.which===3){if(Re){var ft={originalEvent:X,type:"cxtdrag",position:{x:U[0],y:U[1]}};Me?Me.emit(ft):ge.emit(ft),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||Ae!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:X,type:"cxtdragout",position:{x:U[0],y:U[1]}}),t.hoverData.cxtOver=Ae,Ae&&Ae.emit({originalEvent:X,type:"cxtdragover",position:{x:U[0],y:U[1]}}))}}else if(t.hoverData.dragging){if(he=!0,ge.panningEnabled()&&ge.userPanningEnabled()){var kt;if(t.hoverData.justStartedPan){var er=t.hoverData.mdownPos;kt={x:(U[0]-er[0])*ne,y:(U[1]-er[1])*ne},t.hoverData.justStartedPan=!1}else kt={x:me[0]*ne,y:me[1]*ne};ge.panBy(kt),ge.emit("dragpan"),t.hoverData.dragged=!0}U=t.projectIntoViewport(X.clientX,X.clientY)}else if(Ee[4]==1&&(Me==null||Me.pannable())){if(Re){if(!t.hoverData.dragging&&ge.boxSelectionEnabled()&&(Tt||!ge.panningEnabled()||!ge.userPanningEnabled()))rt();else if(!t.hoverData.selecting&&ge.panningEnabled()&&ge.userPanningEnabled()){var dt=a(Me,t.hoverData.downs);dt&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,Ee[4]=0,t.data.bgActivePosistion=r1(Te),t.redrawHint("select",!0),t.redraw())}Me&&Me.pannable()&&Me.active()&&Me.unactivate()}}else{if(Me&&Me.pannable()&&Me.active()&&Me.unactivate(),(!Me||!Me.grabbed())&&Ae!=Pe&&(Pe&&n(Pe,["mouseout","tapdragout"],X,{x:U[0],y:U[1]}),Ae&&n(Ae,["mouseover","tapdragover"],X,{x:U[0],y:U[1]}),t.hoverData.last=Ae),Me)if(Re){if(ge.boxSelectionEnabled()&&Tt)Me&&Me.grabbed()&&(v(We),Me.emit("freeon"),We.emit("free"),t.dragData.didDrag&&(Me.emit("dragfreeon"),We.emit("dragfree"))),rt();else if(Me&&Me.grabbed()&&t.nodeIsDraggable(Me)){var Xe=!t.dragData.didDrag;Xe&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||g(We,{inDragLayer:!0});var ct={x:0,y:0};if(xt(me[0])&&xt(me[1])&&(ct.x+=me[0],ct.y+=me[1],Xe)){var Lt=t.hoverData.dragDelta;Lt&&xt(Lt[0])&&xt(Lt[1])&&(ct.x+=Lt[0],ct.y+=Lt[1])}t.hoverData.draggingEles=!0,We.silentShift(ct).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else $e();he=!0}if(Ee[2]=U[0],Ee[3]=U[1],he)return X.stopPropagation&&X.stopPropagation(),X.preventDefault&&X.preventDefault(),!1}},"mousemoveHandler"),!1);var I,D,k;t.registerBinding(e,"mouseup",o(function(X){if(!(t.hoverData.which===1&&X.which!==1&&t.hoverData.capture)){var fe=t.hoverData.capture;if(fe){t.hoverData.capture=!1;var he=t.cy,ge=t.projectIntoViewport(X.clientX,X.clientY),ne=t.selection,ye=t.findNearestElement(ge[0],ge[1],!0,!1),U=t.dragData.possibleDragElements,Te=t.hoverData.down,se=i(X);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,Te&&Te.unactivate(),t.hoverData.which===3){var Ee={originalEvent:X,type:"cxttapend",position:{x:ge[0],y:ge[1]}};if(Te?Te.emit(Ee):he.emit(Ee),!t.hoverData.cxtDragged){var Ae={originalEvent:X,type:"cxttap",position:{x:ge[0],y:ge[1]}};Te?Te.emit(Ae):he.emit(Ae)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(n(ye,["mouseup","tapend","vmouseup"],X,{x:ge[0],y:ge[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(n(Te,["click","tap","vclick"],X,{x:ge[0],y:ge[1]}),D=!1,X.timeStamp-k<=he.multiClickDebounceTime()?(I&&clearTimeout(I),D=!0,k=null,n(Te,["dblclick","dbltap","vdblclick"],X,{x:ge[0],y:ge[1]})):(I=setTimeout(function(){D||n(Te,["oneclick","onetap","voneclick"],X,{x:ge[0],y:ge[1]})},he.multiClickDebounceTime()),k=X.timeStamp)),Te==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!i(X)&&(he.$(r).unselect(["tapunselect"]),U.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=U=he.collection()),ye==Te&&!t.dragData.didDrag&&!t.hoverData.selecting&&ye!=null&&ye._private.selectable&&(t.hoverData.dragging||(he.selectionType()==="additive"||se?ye.selected()?ye.unselect(["tapunselect"]):ye.select(["tapselect"]):se||(he.$(r).unmerge(ye).unselect(["tapunselect"]),ye.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var Pe=he.collection(t.getAllInBox(ne[0],ne[1],ne[2],ne[3]));t.redrawHint("select",!0),Pe.length>0&&t.redrawHint("eles",!0),he.emit({type:"boxend",originalEvent:X,position:{x:ge[0],y:ge[1]}});var Me=o(function(Re){return Re.selectable()&&!Re.selected()},"eleWouldBeSelected");he.selectionType()==="additive"||se||he.$(r).unmerge(Pe).unselect(),Pe.emit("box").stdFilter(Me).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!ne[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var me=Te&&Te.grabbed();v(U),me&&(Te.emit("freeon"),U.emit("free"),t.dragData.didDrag&&(Te.emit("dragfreeon"),U.emit("dragfree")))}}ne[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null,t.hoverData.which=null}}},"mouseupHandler"),!1);var R=o(function(X){if(!t.scrollingPage){var fe=t.cy,he=fe.zoom(),ge=fe.pan(),ne=t.projectIntoViewport(X.clientX,X.clientY),ye=[ne[0]*he+ge.x,ne[1]*he+ge.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||C()){X.preventDefault();return}if(fe.panningEnabled()&&fe.userPanningEnabled()&&fe.zoomingEnabled()&&fe.userZoomingEnabled()){X.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout(function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()},150);var U;X.deltaY!=null?U=X.deltaY/-250:X.wheelDeltaY!=null?U=X.wheelDeltaY/1e3:U=X.wheelDelta/1e3,U=U*t.wheelSensitivity;var Te=X.deltaMode===1;Te&&(U*=33);var se=fe.zoom()*Math.pow(10,U);X.type==="gesturechange"&&(se=t.gestureStartZoom*X.scale),fe.zoom({level:se,renderedPosition:{x:ye[0],y:ye[1]}}),fe.emit(X.type==="gesturechange"?"pinchzoom":"scrollzoom")}}},"wheelHandler");t.registerBinding(t.container,"wheel",R,!0),t.registerBinding(e,"scroll",o(function(X){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},"scrollHandler"),!0),t.registerBinding(t.container,"gesturestart",o(function(X){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||X.preventDefault()},"gestureStartHandler"),!0),t.registerBinding(t.container,"gesturechange",function(xe){t.hasTouchStarted||R(xe)},!0),t.registerBinding(t.container,"mouseout",o(function(X){var fe=t.projectIntoViewport(X.clientX,X.clientY);t.cy.emit({originalEvent:X,type:"mouseout",position:{x:fe[0],y:fe[1]}})},"mouseOutHandler"),!1),t.registerBinding(t.container,"mouseover",o(function(X){var fe=t.projectIntoViewport(X.clientX,X.clientY);t.cy.emit({originalEvent:X,type:"mouseover",position:{x:fe[0],y:fe[1]}})},"mouseOverHandler"),!1);var S,O,N,P,F,B,$,z,W,j,K,ie,Q,ee=o(function(X,fe,he,ge){return Math.sqrt((he-X)*(he-X)+(ge-fe)*(ge-fe))},"distance"),J=o(function(X,fe,he,ge){return(he-X)*(he-X)+(ge-fe)*(ge-fe)},"distanceSq"),H;t.registerBinding(t.container,"touchstart",H=o(function(X){if(t.hasTouchStarted=!0,!!A(X)){b(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var fe=t.cy,he=t.touchData.now,ge=t.touchData.earlier;if(X.touches[0]){var ne=t.projectIntoViewport(X.touches[0].clientX,X.touches[0].clientY);he[0]=ne[0],he[1]=ne[1]}if(X.touches[1]){var ne=t.projectIntoViewport(X.touches[1].clientX,X.touches[1].clientY);he[2]=ne[0],he[3]=ne[1]}if(X.touches[2]){var ne=t.projectIntoViewport(X.touches[2].clientX,X.touches[2].clientY);he[4]=ne[0],he[5]=ne[1]}if(X.touches[1]){t.touchData.singleTouchMoved=!0,v(t.dragData.touchDragEles);var ye=t.findContainerClientCoords();W=ye[0],j=ye[1],K=ye[2],ie=ye[3],S=X.touches[0].clientX-W,O=X.touches[0].clientY-j,N=X.touches[1].clientX-W,P=X.touches[1].clientY-j,Q=0<=S&&S<=K&&0<=N&&N<=K&&0<=O&&O<=ie&&0<=P&&P<=ie;var U=fe.pan(),Te=fe.zoom();F=ee(S,O,N,P),B=J(S,O,N,P),$=[(S+N)/2,(O+P)/2],z=[($[0]-U.x)/Te,($[1]-U.y)/Te];var se=200,Ee=se*se;if(B=1){for(var gt=t.touchData.startPosition=[null,null,null,null,null,null],Et=0;Et=t.touchTapThreshold2}if(fe&&t.touchData.cxt){X.preventDefault();var gt=X.touches[0].clientX-W,Et=X.touches[0].clientY-j,vt=X.touches[1].clientX-W,Ye=X.touches[1].clientY-j,Tt=J(gt,Et,vt,Ye),$e=Tt/B,rt=150,ft=rt*rt,kt=1.5,er=kt*kt;if($e>=er||Tt>=ft){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var dt={originalEvent:X,type:"cxttapend",position:{x:ne[0],y:ne[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(dt),t.touchData.start=null):ge.emit(dt)}}if(fe&&t.touchData.cxt){var dt={originalEvent:X,type:"cxtdrag",position:{x:ne[0],y:ne[1]}};t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(dt):ge.emit(dt),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var Xe=t.findNearestElement(ne[0],ne[1],!0,!0);(!t.touchData.cxtOver||Xe!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:X,type:"cxtdragout",position:{x:ne[0],y:ne[1]}}),t.touchData.cxtOver=Xe,Xe&&Xe.emit({originalEvent:X,type:"cxtdragover",position:{x:ne[0],y:ne[1]}}))}else if(fe&&X.touches[2]&&ge.boxSelectionEnabled())X.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||ge.emit({originalEvent:X,type:"boxstart",position:{x:ne[0],y:ne[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,he[4]=1,!he||he.length===0||he[0]===void 0?(he[0]=(ne[0]+ne[2]+ne[4])/3,he[1]=(ne[1]+ne[3]+ne[5])/3,he[2]=(ne[0]+ne[2]+ne[4])/3+1,he[3]=(ne[1]+ne[3]+ne[5])/3+1):(he[2]=(ne[0]+ne[2]+ne[4])/3,he[3]=(ne[1]+ne[3]+ne[5])/3),t.redrawHint("select",!0),t.redraw();else if(fe&&X.touches[1]&&!t.touchData.didSelect&&ge.zoomingEnabled()&&ge.panningEnabled()&&ge.userZoomingEnabled()&&ge.userPanningEnabled()){X.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var ct=t.dragData.touchDragEles;if(ct){t.redrawHint("drag",!0);for(var Lt=0;Lt0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},"touchmoveHandler"),!1);var Z;t.registerBinding(e,"touchcancel",Z=o(function(X){var fe=t.touchData.start;t.touchData.capture=!1,fe&&fe.unactivate()},"touchcancelHandler"));var ae,ue,ce,te;if(t.registerBinding(e,"touchend",ae=o(function(X){var fe=t.touchData.start,he=t.touchData.capture;if(he)X.touches.length===0&&(t.touchData.capture=!1),X.preventDefault();else return;var ge=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var ne=t.cy,ye=ne.zoom(),U=t.touchData.now,Te=t.touchData.earlier;if(X.touches[0]){var se=t.projectIntoViewport(X.touches[0].clientX,X.touches[0].clientY);U[0]=se[0],U[1]=se[1]}if(X.touches[1]){var se=t.projectIntoViewport(X.touches[1].clientX,X.touches[1].clientY);U[2]=se[0],U[3]=se[1]}if(X.touches[2]){var se=t.projectIntoViewport(X.touches[2].clientX,X.touches[2].clientY);U[4]=se[0],U[5]=se[1]}fe&&fe.unactivate();var Ee;if(t.touchData.cxt){if(Ee={originalEvent:X,type:"cxttapend",position:{x:U[0],y:U[1]}},fe?fe.emit(Ee):ne.emit(Ee),!t.touchData.cxtDragged){var Ae={originalEvent:X,type:"cxttap",position:{x:U[0],y:U[1]}};fe?fe.emit(Ae):ne.emit(Ae)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!X.touches[2]&&ne.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var Pe=ne.collection(t.getAllInBox(ge[0],ge[1],ge[2],ge[3]));ge[0]=void 0,ge[1]=void 0,ge[2]=void 0,ge[3]=void 0,ge[4]=0,t.redrawHint("select",!0),ne.emit({type:"boxend",originalEvent:X,position:{x:U[0],y:U[1]}});var Me=o(function(ft){return ft.selectable()&&!ft.selected()},"eleWouldBeSelected");Pe.emit("box").stdFilter(Me).select().emit("boxselect"),Pe.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(fe?.unactivate(),X.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!X.touches[1]){if(!X.touches[0]){if(!X.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var me=t.dragData.touchDragEles;if(fe!=null){var We=fe._private.grabbed;v(me),t.redrawHint("drag",!0),t.redrawHint("eles",!0),We&&(fe.emit("freeon"),me.emit("free"),t.dragData.didDrag&&(fe.emit("dragfreeon"),me.emit("dragfree"))),n(fe,["touchend","tapend","vmouseup","tapdragout"],X,{x:U[0],y:U[1]}),fe.unactivate(),t.touchData.start=null}else{var Re=t.findNearestElement(U[0],U[1],!0,!0);n(Re,["touchend","tapend","vmouseup","tapdragout"],X,{x:U[0],y:U[1]})}var tt=t.touchData.startPosition[0]-U[0],gt=tt*tt,Et=t.touchData.startPosition[1]-U[1],vt=Et*Et,Ye=gt+vt,Tt=Ye*ye*ye;t.touchData.singleTouchMoved||(fe||ne.$(":selected").unselect(["tapunselect"]),n(fe,["tap","vclick"],X,{x:U[0],y:U[1]}),ue=!1,X.timeStamp-te<=ne.multiClickDebounceTime()?(ce&&clearTimeout(ce),ue=!0,te=null,n(fe,["dbltap","vdblclick"],X,{x:U[0],y:U[1]})):(ce=setTimeout(function(){ue||n(fe,["onetap","voneclick"],X,{x:U[0],y:U[1]})},ne.multiClickDebounceTime()),te=X.timeStamp)),fe!=null&&!t.dragData.didDrag&&fe._private.selectable&&Tt"u"){var De=[],oe=o(function(X){return{clientX:X.clientX,clientY:X.clientY,force:1,identifier:X.pointerId,pageX:X.pageX,pageY:X.pageY,radiusX:X.width/2,radiusY:X.height/2,screenX:X.screenX,screenY:X.screenY,target:X.target}},"makeTouch"),ke=o(function(X){return{event:X,touch:oe(X)}},"makePointer"),Fe=o(function(X){De.push(ke(X))},"addPointer"),Be=o(function(X){for(var fe=0;fe0)return W[0]}return null},"getCurveT"),g=Object.keys(p),y=0;y0?m:pge(a,s,e,r,n,i,l,u)},"intersectLine"),checkPoint:o(function(e,r,n,i,a,s,l,u){u=u==="auto"?$0(i,a):u;var h=2*u;if(ju(e,r,this.points,s,l,i,a-h,[0,-1],n)||ju(e,r,this.points,s,l,i-h,a,[0,-1],n))return!0;var f=i/2+2*n,d=a/2+2*n,p=[s-f,l-d,s-f,l,s+f,l,s+f,l-d];return!!(Gs(e,r,p)||B0(e,r,h,h,s+i/2-u,l+a/2-u,n)||B0(e,r,h,h,s-i/2+u,l+a/2-u,n))},"checkPoint")}};Qu.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",ls(3,0)),this.generateRoundPolygon("round-triangle",ls(3,0)),this.generatePolygon("rectangle",ls(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",ls(5,0)),this.generateRoundPolygon("round-pentagon",ls(5,0)),this.generatePolygon("hexagon",ls(6,0)),this.generateRoundPolygon("round-hexagon",ls(6,0)),this.generatePolygon("heptagon",ls(7,0)),this.generateRoundPolygon("round-heptagon",ls(7,0)),this.generatePolygon("octagon",ls(8,0)),this.generateRoundPolygon("round-octagon",ls(8,0));var n=new Array(20);{var i=BP(5,0),a=BP(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var l=0;l=e.deqFastCost*_)break}else if(h){if(b>=e.deqCost*m||b>=e.deqAvgCost*p)break}else if(w>=e.deqNoDrawCost*IP)break;var T=e.deq(n,v,y);if(T.length>0)for(var E=0;E0&&(e.onDeqd(n,g),!h&&e.shouldRedraw(n,g,v,y)&&a())},"dequeue"),l=e.priority||iB;i.beforeRender(s,l(n))}},"setupDequeueingImpl")},"setupDequeueing")},Det=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g6;JP(this,t),this.idsByKey=new Uc,this.keyForId=new Uc,this.cachesByLvl=new Uc,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return o(t,"ElementTextureCacheLookup"),eB(t,[{key:"getIdsFor",value:o(function(r){r==null&&hi("Can not get id list for null key");var n=this.idsByKey,i=this.idsByKey.get(r);return i||(i=new f1,n.set(r,i)),i},"getIdsFor")},{key:"addIdForKey",value:o(function(r,n){r!=null&&this.getIdsFor(r).add(n)},"addIdForKey")},{key:"deleteIdForKey",value:o(function(r,n){r!=null&&this.getIdsFor(r).delete(n)},"deleteIdForKey")},{key:"getNumberOfIdsForKey",value:o(function(r){return r==null?0:this.getIdsFor(r).size},"getNumberOfIdsForKey")},{key:"updateKeyMappingFor",value:o(function(r){var n=r.id(),i=this.keyForId.get(n),a=this.getKey(r);this.deleteIdForKey(i,n),this.addIdForKey(a,n),this.keyForId.set(n,a)},"updateKeyMappingFor")},{key:"deleteKeyMappingFor",value:o(function(r){var n=r.id(),i=this.keyForId.get(n);this.deleteIdForKey(i,n),this.keyForId.delete(n)},"deleteKeyMappingFor")},{key:"keyHasChangedFor",value:o(function(r){var n=r.id(),i=this.keyForId.get(n),a=this.getKey(r);return i!==a},"keyHasChangedFor")},{key:"isInvalid",value:o(function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)},"isInvalid")},{key:"getCachesAt",value:o(function(r){var n=this.cachesByLvl,i=this.lvls,a=n.get(r);return a||(a=new Uc,n.set(r,a),i.push(r)),a},"getCachesAt")},{key:"getCache",value:o(function(r,n){return this.getCachesAt(n).get(r)},"getCache")},{key:"get",value:o(function(r,n){var i=this.getKey(r),a=this.getCache(i,n);return a!=null&&this.updateKeyMappingFor(r),a},"get")},{key:"getForCachedKey",value:o(function(r,n){var i=this.keyForId.get(r.id()),a=this.getCache(i,n);return a},"getForCachedKey")},{key:"hasCache",value:o(function(r,n){return this.getCachesAt(n).has(r)},"hasCache")},{key:"has",value:o(function(r,n){var i=this.getKey(r);return this.hasCache(i,n)},"has")},{key:"setCache",value:o(function(r,n,i){i.key=r,this.getCachesAt(n).set(r,i)},"setCache")},{key:"set",value:o(function(r,n,i){var a=this.getKey(r);this.setCache(a,n,i),this.updateKeyMappingFor(r)},"set")},{key:"deleteCache",value:o(function(r,n){this.getCachesAt(n).delete(r)},"deleteCache")},{key:"delete",value:o(function(r,n){var i=this.getKey(r);this.deleteCache(i,n)},"_delete")},{key:"invalidateKey",value:o(function(r){var n=this;this.lvls.forEach(function(i){return n.deleteCache(r,i)})},"invalidateKey")},{key:"invalidate",value:o(function(r){var n=r.id(),i=this.keyForId.get(n);this.deleteKeyMappingFor(r);var a=this.doesEleInvalidateKey(r);return a&&this.invalidateKey(i),a||this.getNumberOfIdsForKey(i)===0},"invalidate")}]),t}(),Pme=25,i6=50,d6=-4,jP=3,Net=7.99,Ret=8,Met=1024,Iet=1024,Oet=1024,Pet=.2,Bet=.8,Fet=10,zet=.15,Get=.1,$et=.9,Vet=.9,Uet=100,Het=1,n1={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Wet=wa({getKey:null,doesEleInvalidateKey:g6,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:sge,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),Fx=o(function(e,r){var n=this;n.renderer=e,n.onDequeues=[];var i=Wet(r);ir(n,i),n.lookup=new Det(i.getKey,i.doesEleInvalidateKey),n.setupDequeueing()},"ElementTextureCache"),qi=Fx.prototype;qi.reasons=n1;qi.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]};qi.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},n=r[t]=r[t]||[];return n};qi.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new tb(function(r,n){return n.reqs-r.reqs});return e};qi.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e};qi.getElement=function(t,e,r,n,i){var a=this,s=this.renderer,l=s.cy.zoom(),u=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!a.allowEdgeTxrCaching&&t.isEdge()||!a.allowParentTxrCaching&&t.isParent())return null;if(n==null&&(n=Math.ceil(sB(l*r))),n=Net||n>jP)return null;var h=Math.pow(2,n),f=e.h*h,d=e.w*h,p=s.eleTextBiggerThanMin(t,h);if(!this.isVisible(t,p))return null;var m=u.get(t,n);if(m&&m.invalidated&&(m.invalidated=!1,m.texture.invalidatedWidth-=m.width),m)return m;var g;if(f<=Pme?g=Pme:f<=i6?g=i6:g=Math.ceil(f/i6)*i6,f>Oet||d>Iet)return null;var y=a.getTextureQueue(g),v=y[y.length-2],x=o(function(){return a.recycleTexture(g,d)||a.addTexture(g,d)},"addNewTxr");v||(v=y[y.length-1]),v||(v=x()),v.width-v.usedWidthn;D--)A=a.getElement(t,e,r,D,n1.downscale);I()}else return a.queueElement(t,E.level-1),E;else{var k;if(!w&&!_&&!T)for(var R=n-1;R>=d6;R--){var S=u.get(t,R);if(S){k=S;break}}if(b(k))return a.queueElement(t,n),k;v.context.translate(v.usedWidth,0),v.context.scale(h,h),this.drawElement(v.context,t,e,p,!1),v.context.scale(1/h,1/h),v.context.translate(-v.usedWidth,0)}return m={x:v.usedWidth,texture:v,level:n,scale:h,width:d,height:f,scaledLabelShown:p},v.usedWidth+=Math.ceil(d+Ret),v.eleCaches.push(m),u.set(t,n,m),a.checkTextureFullness(v),m};qi.invalidateElements=function(t){for(var e=0;e=Pet*t.width&&this.retireTexture(t)};qi.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>Bet&&t.fullnessChecks>=Fet?Cf(r,t):t.fullnessChecks++};qi.retireTexture=function(t){var e=this,r=t.height,n=e.getTextureQueue(r),i=this.lookup;Cf(n,t),t.retired=!0;for(var a=t.eleCaches,s=0;s=e)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,aB(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),Cf(i,s),n.push(s),s}};qi.queueElement=function(t,e){var r=this,n=r.getElementQueue(),i=r.getElementKeyToQueue(),a=this.getKey(t),s=i[a];if(s)s.level=Math.max(s.level,e),s.eles.merge(t),s.reqs++,n.updateItem(s);else{var l={eles:t.spawn().merge(t),level:e,reqs:1,key:a};n.push(l),i[a]=l}};qi.dequeue=function(t){for(var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),i=[],a=e.lookup,s=0;s0;s++){var l=r.pop(),u=l.key,h=l.eles[0],f=a.hasCache(h,l.level);if(n[u]=null,f)continue;i.push(l);var d=e.getBoundingBox(h);e.getElement(h,d,t,l.level,n1.dequeue)}return i};qi.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),n=e.getElementKeyToQueue(),i=this.getKey(t),a=n[i];a!=null&&(a.eles.length===1?(a.reqs=nB,r.updateItem(a),r.pop(),n[i]=null):a.eles.unmerge(t))};qi.onDequeue=function(t){this.onDequeues.push(t)};qi.offDequeue=function(t){Cf(this.onDequeues,t)};qi.setupDequeueing=m1e.setupDequeueing({deqRedrawThreshold:Uet,deqCost:zet,deqAvgCost:Get,deqNoDrawCost:$et,deqFastCost:Vet,deq:o(function(e,r,n){return e.dequeue(r,n)},"deq"),onDeqd:o(function(e,r){for(var n=0;n=qet||r>E6)return null}n.validateLayersElesOrdering(r,t);var u=n.layersByLevel,h=Math.pow(2,r),f=u[r]=u[r]||[],d,p=n.levelIsComplete(r,t),m,g=o(function(){var I=o(function(O){if(n.validateLayersElesOrdering(O,t),n.levelIsComplete(O,t))return m=u[O],!0},"canUseAsTmpLvl"),D=o(function(O){if(!m)for(var N=r+O;Gx<=N&&N<=E6&&!I(N);N+=O);},"checkLvls");D(1),D(-1);for(var k=f.length-1;k>=0;k--){var R=f[k];R.invalid&&Cf(f,R)}},"checkTempLevels");if(!p)g();else return f;var y=o(function(){if(!d){d=$s();for(var I=0;Ittt)return null;var R=n.makeLayer(d,r);if(D!=null){var S=f.indexOf(D)+1;f.splice(S,0,R)}else(I.insert===void 0||I.insert)&&f.unshift(R);return R},"makeLayer");if(n.skipping&&!l)return null;for(var x=null,b=t.length/Yet,w=!l,_=0;_=b||!dge(x.bb,T.boundingBox()))&&(x=v({insert:!0,after:x}),!x))return null;m||w?n.queueLayer(x,T):n.drawEleInLayer(x,T,r,e),x.eles.push(T),L[r]=x}return m||(w?null:f)};Ta.getEleLevelForLayerLevel=function(t,e){return t};Ta.drawEleInLayer=function(t,e,r,n){var i=this,a=this.renderer,s=t.context,l=e.boundingBox();l.w===0||l.h===0||!e.visible()||(r=i.getEleLevelForLayerLevel(r,n),a.setImgSmoothing(s,!1),a.drawCachedElement(s,e,null,null,r,rtt),a.setImgSmoothing(s,!0))};Ta.levelIsComplete=function(t,e){var r=this,n=r.layersByLevel[t];if(!n||n.length===0)return!1;for(var i=0,a=0;a0||s.invalid)return!1;i+=s.eles.length}return i===e.length};Ta.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var n=0;n0){e=!0;break}}return e};Ta.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=Xu(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,o(function(n,i,a){e.invalidateLayer(n)},"invalAssocLayers")))};Ta.invalidateLayer=function(t){if(this.lastInvalidationTime=Xu(),!t.invalid){var e=t.level,r=t.eles,n=this.layersByLevel[e];Cf(n,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,l=e._private.rscratch;if(!(a&&!e.visible())&&!(l.badLine||l.allpts==null||isNaN(l.allpts[0]))){var u;r&&(u=r,t.translate(-u.x1,-u.y1));var h=a?e.pstyle("opacity").value:1,f=a?e.pstyle("line-opacity").value:1,d=e.pstyle("curve-style").value,p=e.pstyle("line-style").value,m=e.pstyle("width").pfValue,g=e.pstyle("line-cap").value,y=e.pstyle("line-outline-width").value,v=e.pstyle("line-outline-color").value,x=h*f,b=h*f,w=o(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x;d==="straight-triangle"?(s.eleStrokeStyle(t,e,O),s.drawEdgeTrianglePath(e,t,l.allpts)):(t.lineWidth=m,t.lineCap=g,s.eleStrokeStyle(t,e,O),s.drawEdgePath(e,t,l.allpts,p),t.lineCap="butt")},"drawLine"),_=o(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x;if(t.lineWidth=m+y,t.lineCap=g,y>0)s.colorStrokeStyle(t,v[0],v[1],v[2],O);else{t.lineCap="butt";return}d==="straight-triangle"?s.drawEdgeTrianglePath(e,t,l.allpts):(s.drawEdgePath(e,t,l.allpts,p),t.lineCap="butt")},"drawLineOutline"),T=o(function(){i&&s.drawEdgeOverlay(t,e)},"drawOverlay"),E=o(function(){i&&s.drawEdgeUnderlay(t,e)},"drawUnderlay"),L=o(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b;s.drawArrowheads(t,e,O)},"drawArrows"),C=o(function(){s.drawElementText(t,e,null,n)},"drawText");t.lineJoin="round";var A=e.pstyle("ghost").value==="yes";if(A){var I=e.pstyle("ghost-offset-x").pfValue,D=e.pstyle("ghost-offset-y").pfValue,k=e.pstyle("ghost-opacity").value,R=x*k;t.translate(I,D),w(R),L(R),t.translate(-I,-D)}else _();E(),w(),L(),T(),C(),r&&t.translate(u.x1,u.y1)}};v1e=o(function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,n){if(n.visible()){var i=n.pstyle("".concat(e,"-opacity")).value;if(i!==0){var a=this,s=a.usePaths(),l=n._private.rscratch,u=n.pstyle("".concat(e,"-padding")).pfValue,h=2*u,f=n.pstyle("".concat(e,"-color")).value;r.lineWidth=h,l.edgeType==="self"&&!s?r.lineCap="butt":r.lineCap="round",a.colorStrokeStyle(r,f[0],f[1],f[2],i),a.drawEdgePath(n,r,l.allpts,"solid")}}}},"drawEdgeOverlayUnderlay");Zu.drawEdgeOverlay=v1e("overlay");Zu.drawEdgeUnderlay=v1e("underlay");Zu.drawEdgePath=function(t,e,r,n){var i=t._private.rscratch,a=e,s,l=!1,u=this.usePaths(),h=t.pstyle("line-dash-pattern").pfValue,f=t.pstyle("line-dash-offset").pfValue;if(u){var d=r.join("$"),p=i.pathCacheKey&&i.pathCacheKey===d;p?(s=e=i.pathCache,l=!0):(s=e=new Path2D,i.pathCacheKey=d,i.pathCache=s)}if(a.setLineDash)switch(n){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(h),a.lineDashOffset=f;break;case"solid":a.setLineDash([]);break}if(!l&&!i.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),i.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var m=2;m+35&&arguments[5]!==void 0?arguments[5]:!0,s=this;if(n==null){if(a&&!s.eleTextBiggerThanMin(e))return}else if(n===!1)return;if(e.isNode()){var l=e.pstyle("label");if(!l||!l.value)return;var u=s.getLabelJustification(e);t.textAlign=u,t.textBaseline="bottom"}else{var h=e.element()._private.rscratch.badLine,f=e.pstyle("label"),d=e.pstyle("source-label"),p=e.pstyle("target-label");if(h||(!f||!f.value)&&(!d||!d.value)&&(!p||!p.value))return;t.textAlign="center",t.textBaseline="bottom"}var m=!r,g;r&&(g=r,t.translate(-g.x1,-g.y1)),i==null?(s.drawText(t,e,null,m,a),e.isEdge()&&(s.drawText(t,e,"source",m,a),s.drawText(t,e,"target",m,a))):s.drawText(t,e,i,m,a),r&&t.translate(g.x1,g.y1)};Y0.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!0,n=e.pstyle("font-style").strValue,i=e.pstyle("font-size").pfValue+"px",a=e.pstyle("font-family").strValue,s=e.pstyle("font-weight").strValue,l=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,u=e.pstyle("text-outline-opacity").value*l,h=e.pstyle("color").value,f=e.pstyle("text-outline-color").value;t.font=n+" "+s+" "+i+" "+a,t.lineJoin="round",this.colorFillStyle(t,h[0],h[1],h[2],l),this.colorStrokeStyle(t,f[0],f[1],f[2],u)};o(PP,"roundRect");Y0.getTextAngle=function(t,e){var r,n=t._private,i=n.rscratch,a=e?e+"-":"",s=t.pstyle(a+"text-rotation"),l=Wl(i,"labelAngle",e);return s.strValue==="autorotate"?r=t.isEdge()?l:0:s.strValue==="none"?r=0:r=s.pfValue,r};Y0.drawText=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=e._private,s=a.rscratch,l=i?e.effectiveOpacity():1;if(!(i&&(l===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var u=Wl(s,"labelX",r),h=Wl(s,"labelY",r),f,d,p=this.getLabelText(e,r);if(p!=null&&p!==""&&!isNaN(u)&&!isNaN(h)){this.setupTextStyle(t,e,i);var m=r?r+"-":"",g=Wl(s,"labelWidth",r),y=Wl(s,"labelHeight",r),v=e.pstyle(m+"text-margin-x").pfValue,x=e.pstyle(m+"text-margin-y").pfValue,b=e.isEdge(),w=e.pstyle("text-halign").value,_=e.pstyle("text-valign").value;b&&(w="center",_="center"),u+=v,h+=x;var T;switch(n?T=this.getTextAngle(e,r):T=0,T!==0&&(f=u,d=h,t.translate(f,d),t.rotate(T),u=0,h=0),_){case"top":break;case"center":h+=y/2;break;case"bottom":h+=y;break}var E=e.pstyle("text-background-opacity").value,L=e.pstyle("text-border-opacity").value,C=e.pstyle("text-border-width").pfValue,A=e.pstyle("text-background-padding").pfValue,I=e.pstyle("text-background-shape").strValue,D=I.indexOf("round")===0,k=2;if(E>0||C>0&&L>0){var R=u-A;switch(w){case"left":R-=g;break;case"center":R-=g/2;break}var S=h-y-A,O=g+2*A,N=y+2*A;if(E>0){var P=t.fillStyle,F=e.pstyle("text-background-color").value;t.fillStyle="rgba("+F[0]+","+F[1]+","+F[2]+","+E*l+")",D?PP(t,R,S,O,N,k):t.fillRect(R,S,O,N),t.fillStyle=P}if(C>0&&L>0){var B=t.strokeStyle,$=t.lineWidth,z=e.pstyle("text-border-color").value,W=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+z[0]+","+z[1]+","+z[2]+","+L*l+")",t.lineWidth=C,t.setLineDash)switch(W){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=C/4,t.setLineDash([]);break;case"solid":t.setLineDash([]);break}if(D?PP(t,R,S,O,N,k,"stroke"):t.strokeRect(R,S,O,N),W==="double"){var j=C/2;D?PP(t,R+j,S+j,O-j*2,N-j*2,k,"stroke"):t.strokeRect(R+j,S+j,O-j*2,N-j*2)}t.setLineDash&&t.setLineDash([]),t.lineWidth=$,t.strokeStyle=B}}var K=2*e.pstyle("text-outline-width").pfValue;if(K>0&&(t.lineWidth=K),e.pstyle("text-wrap").value==="wrap"){var ie=Wl(s,"labelWrapCachedLines",r),Q=Wl(s,"labelLineHeight",r),ee=g/2,J=this.getLabelJustification(e);switch(J==="auto"||(w==="left"?J==="left"?u+=-g:J==="center"&&(u+=-ee):w==="center"?J==="left"?u+=-ee:J==="right"&&(u+=ee):w==="right"&&(J==="center"?u+=ee:J==="right"&&(u+=g))),_){case"top":h-=(ie.length-1)*Q;break;case"center":case"bottom":h-=(ie.length-1)*Q;break}for(var H=0;H0&&t.strokeText(ie[H],u,h),t.fillText(ie[H],u,h),h+=Q}else K>0&&t.strokeText(p,u,h),t.fillText(p,u,h);T!==0&&(t.rotate(-T),t.translate(-f,-d))}}};w1={};w1.drawNode=function(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,l,u,h=e._private,f=h.rscratch,d=e.position();if(!(!xt(d.x)||!xt(d.y))&&!(a&&!e.visible())){var p=a?e.effectiveOpacity():1,m=s.usePaths(),g,y=!1,v=e.padding();l=e.width()+2*v,u=e.height()+2*v;var x;r&&(x=r,t.translate(-x.x1,-x.y1));for(var b=e.pstyle("background-image"),w=b.value,_=new Array(w.length),T=new Array(w.length),E=0,L=0;L0&&arguments[0]!==void 0?arguments[0]:R;s.eleFillStyle(t,e,ye)},"setupShapeColor"),H=o(function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z;s.colorStrokeStyle(t,S[0],S[1],S[2],ye)},"setupBorderColor"),q=o(function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ie;s.colorStrokeStyle(t,j[0],j[1],j[2],ye)},"setupOutlineColor"),Z=o(function(ye,U,Te,se){var Ee=s.nodePathCache=s.nodePathCache||[],Ae=age(Te==="polygon"?Te+","+se.join(","):Te,""+U,""+ye,""+ee),Pe=Ee[Ae],Me,me=!1;return Pe!=null?(Me=Pe,me=!0,f.pathCache=Me):(Me=new Path2D,Ee[Ae]=f.pathCache=Me),{path:Me,cacheHit:me}},"getPath"),ae=e.pstyle("shape").strValue,ue=e.pstyle("shape-polygon-points").pfValue;if(m){t.translate(d.x,d.y);var ce=Z(l,u,ae,ue);g=ce.path,y=ce.cacheHit}var te=o(function(){if(!y){var ye=d;m&&(ye={x:0,y:0}),s.nodeShapes[s.getNodeShape(e)].draw(g||t,ye.x,ye.y,l,u,ee,f)}m?t.fill(g):t.fill()},"drawShape"),De=o(function(){for(var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Te=h.backgrounding,se=0,Ee=0;Ee0&&arguments[0]!==void 0?arguments[0]:!1,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p;s.hasPie(e)&&(s.drawPie(t,e,U),ye&&(m||s.nodeShapes[s.getNodeShape(e)].draw(t,d.x,d.y,l,u,ee,f)))},"drawPie"),ke=o(function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,U=(D>0?D:-D)*ye,Te=D>0?0:255;D!==0&&(s.colorFillStyle(t,Te,Te,Te,U),m?t.fill(g):t.fill())},"darken"),Fe=o(function(){if(k>0){if(t.lineWidth=k,t.lineCap=P,t.lineJoin=N,t.setLineDash)switch(O){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash(B),t.lineDashOffset=$;break;case"solid":case"double":t.setLineDash([]);break}if(F!=="center"){if(t.save(),t.lineWidth*=2,F==="inside")m?t.clip(g):t.clip();else{var ye=new Path2D;ye.rect(-l/2-k,-u/2-k,l+2*k,u+2*k),ye.addPath(g),t.clip(ye,"evenodd")}m?t.stroke(g):t.stroke(),t.restore()}else m?t.stroke(g):t.stroke();if(O==="double"){t.lineWidth=k/3;var U=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",m?t.stroke(g):t.stroke(),t.globalCompositeOperation=U}t.setLineDash&&t.setLineDash([])}},"drawBorder"),Be=o(function(){if(W>0){if(t.lineWidth=W,t.lineCap="butt",t.setLineDash)switch(K){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}var ye=d;m&&(ye={x:0,y:0});var U=s.getNodeShape(e),Te=k;F==="inside"&&(Te=0),F==="outside"&&(Te*=2);var se=(l+Te+(W+Q))/l,Ee=(u+Te+(W+Q))/u,Ae=l*se,Pe=u*Ee,Me=s.nodeShapes[U].points,me;if(m){var We=Z(Ae,Pe,U,Me);me=We.path}if(U==="ellipse")s.drawEllipsePath(me||t,ye.x,ye.y,Ae,Pe);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(U)){var Re=0,tt=0,gt=0;U==="round-diamond"?Re=(Te+Q+W)*1.4:U==="round-heptagon"?(Re=(Te+Q+W)*1.075,gt=-(Te/2+Q+W)/35):U==="round-hexagon"?Re=(Te+Q+W)*1.12:U==="round-pentagon"?(Re=(Te+Q+W)*1.13,gt=-(Te/2+Q+W)/15):U==="round-tag"?(Re=(Te+Q+W)*1.12,tt=(Te/2+W+Q)*.07):U==="round-triangle"&&(Re=(Te+Q+W)*(Math.PI/2),gt=-(Te+Q/2+W)/Math.PI),Re!==0&&(se=(l+Re)/l,Ae=l*se,["round-hexagon","round-tag"].includes(U)||(Ee=(u+Re)/u,Pe=u*Ee)),ee=ee==="auto"?gge(Ae,Pe):ee;for(var Et=Ae/2,vt=Pe/2,Ye=ee+(Te+W+Q)/2,Tt=new Array(Me.length/2),$e=new Array(Me.length/2),rt=0;rt0){if(i=i||n.position(),a==null||s==null){var m=n.padding();a=n.width()+2*m,s=n.height()+2*m}l.colorFillStyle(r,f[0],f[1],f[2],h),l.nodeShapes[d].draw(r,i.x,i.y,a+u*2,s+u*2,p),r.fill()}}}},"drawNodeOverlayUnderlay");w1.drawNodeOverlay=x1e("overlay");w1.drawNodeUnderlay=x1e("underlay");w1.hasPie=function(t){return t=t[0],t._private.hasPie};w1.drawPie=function(t,e,r,n){e=e[0],n=n||e.position();var i=e.cy().style(),a=e.pstyle("pie-size"),s=n.x,l=n.y,u=e.width(),h=e.height(),f=Math.min(u,h)/2,d=0,p=this.usePaths();p&&(s=0,l=0),a.units==="%"?f=f*a.pfValue:a.pfValue!==void 0&&(f=a.pfValue/2);for(var m=1;m<=i.pieBackgroundN;m++){var g=e.pstyle("pie-"+m+"-background-size").value,y=e.pstyle("pie-"+m+"-background-color").value,v=e.pstyle("pie-"+m+"-background-opacity").value*r,x=g/100;x+d>1&&(x=1-d);var b=1.5*Math.PI+2*Math.PI*d,w=2*Math.PI*x,_=b+w;g===0||d>=1||d+x>1||(t.beginPath(),t.moveTo(s,l),t.arc(s,l,f,b,_),t.closePath(),this.colorFillStyle(t,y[0],y[1],y[2],v),t.fill(),d+=x)}};mo={},dtt=100;mo.getPixelRatio=function(){var t=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=this.cy.window(),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(e.devicePixelRatio||1)/r};mo.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,n,i=0;is.minMbLowQualFrames&&(s.motionBlurPxRatio=s.mbPxRBlurry)),s.clearingMotionBlur&&(s.motionBlurPxRatio=1),s.textureDrawLastFrame&&!d&&(f[s.NODE]=!0,f[s.SELECT_BOX]=!0);var b=u.style(),w=u.zoom(),_=i!==void 0?i:w,T=u.pan(),E={x:T.x,y:T.y},L={zoom:w,pan:{x:T.x,y:T.y}},C=s.prevViewport,A=C===void 0||L.zoom!==C.zoom||L.pan.x!==C.pan.x||L.pan.y!==C.pan.y;!A&&!(y&&!g)&&(s.motionBlurPxRatio=1),a&&(E=a),_*=l,E.x*=l,E.y*=l;var I=s.getCachedZSortedEles();function D(ce,te,De,oe,ke){var Fe=ce.globalCompositeOperation;ce.globalCompositeOperation="destination-out",s.colorFillStyle(ce,255,255,255,s.motionBlurTransparency),ce.fillRect(te,De,oe,ke),ce.globalCompositeOperation=Fe}o(D,"mbclear");function k(ce,te){var De,oe,ke,Fe;!s.clearingMotionBlur&&(ce===h.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]||ce===h.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG])?(De={x:T.x*m,y:T.y*m},oe=w*m,ke=s.canvasWidth*m,Fe=s.canvasHeight*m):(De=E,oe=_,ke=s.canvasWidth,Fe=s.canvasHeight),ce.setTransform(1,0,0,1,0,0),te==="motionBlur"?D(ce,0,0,ke,Fe):!e&&(te===void 0||te)&&ce.clearRect(0,0,ke,Fe),r||(ce.translate(De.x,De.y),ce.scale(oe,oe)),a&&ce.translate(a.x,a.y),i&&ce.scale(i,i)}if(o(k,"setContextTransform"),d||(s.textureDrawLastFrame=!1),d){if(s.textureDrawLastFrame=!0,!s.textureCache){s.textureCache={},s.textureCache.bb=u.mutableElements().boundingBox(),s.textureCache.texture=s.data.bufferCanvases[s.TEXTURE_BUFFER];var R=s.data.bufferContexts[s.TEXTURE_BUFFER];R.setTransform(1,0,0,1,0,0),R.clearRect(0,0,s.canvasWidth*s.textureMult,s.canvasHeight*s.textureMult),s.render({forcedContext:R,drawOnlyNodeLayer:!0,forcedPxRatio:l*s.textureMult});var L=s.textureCache.viewport={zoom:u.zoom(),pan:u.pan(),width:s.canvasWidth,height:s.canvasHeight};L.mpan={x:(0-L.pan.x)/L.zoom,y:(0-L.pan.y)/L.zoom}}f[s.DRAG]=!1,f[s.NODE]=!1;var S=h.contexts[s.NODE],O=s.textureCache.texture,L=s.textureCache.viewport;S.setTransform(1,0,0,1,0,0),p?D(S,0,0,L.width,L.height):S.clearRect(0,0,L.width,L.height);var N=b.core("outside-texture-bg-color").value,P=b.core("outside-texture-bg-opacity").value;s.colorFillStyle(S,N[0],N[1],N[2],P),S.fillRect(0,0,L.width,L.height);var w=u.zoom();k(S,!1),S.clearRect(L.mpan.x,L.mpan.y,L.width/L.zoom/l,L.height/L.zoom/l),S.drawImage(O,L.mpan.x,L.mpan.y,L.width/L.zoom/l,L.height/L.zoom/l)}else s.textureOnViewport&&!e&&(s.textureCache=null);var F=u.extent(),B=s.pinching||s.hoverData.dragging||s.swipePanning||s.data.wheelZooming||s.hoverData.draggingEles||s.cy.animated(),$=s.hideEdgesOnViewport&&B,z=[];if(z[s.NODE]=!f[s.NODE]&&p&&!s.clearedForMotionBlur[s.NODE]||s.clearingMotionBlur,z[s.NODE]&&(s.clearedForMotionBlur[s.NODE]=!0),z[s.DRAG]=!f[s.DRAG]&&p&&!s.clearedForMotionBlur[s.DRAG]||s.clearingMotionBlur,z[s.DRAG]&&(s.clearedForMotionBlur[s.DRAG]=!0),f[s.NODE]||r||n||z[s.NODE]){var W=p&&!z[s.NODE]&&m!==1,S=e||(W?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]:h.contexts[s.NODE]),j=p&&!W?"motionBlur":void 0;k(S,j),$?s.drawCachedNodes(S,I.nondrag,l,F):s.drawLayeredElements(S,I.nondrag,l,F),s.debug&&s.drawDebugPoints(S,I.nondrag),!r&&!p&&(f[s.NODE]=!1)}if(!n&&(f[s.DRAG]||r||z[s.DRAG])){var W=p&&!z[s.DRAG]&&m!==1,S=e||(W?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG]:h.contexts[s.DRAG]);k(S,p&&!W?"motionBlur":void 0),$?s.drawCachedNodes(S,I.drag,l,F):s.drawCachedElements(S,I.drag,l,F),s.debug&&s.drawDebugPoints(S,I.drag),!r&&!p&&(f[s.DRAG]=!1)}if(s.showFps||!n&&f[s.SELECT_BOX]&&!r){var S=e||h.contexts[s.SELECT_BOX];if(k(S),s.selection[4]==1&&(s.hoverData.selecting||s.touchData.selecting)){var w=s.cy.zoom(),K=b.core("selection-box-border-width").value/w;S.lineWidth=K,S.fillStyle="rgba("+b.core("selection-box-color").value[0]+","+b.core("selection-box-color").value[1]+","+b.core("selection-box-color").value[2]+","+b.core("selection-box-opacity").value+")",S.fillRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]),K>0&&(S.strokeStyle="rgba("+b.core("selection-box-border-color").value[0]+","+b.core("selection-box-border-color").value[1]+","+b.core("selection-box-border-color").value[2]+","+b.core("selection-box-opacity").value+")",S.strokeRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]))}if(h.bgActivePosistion&&!s.hoverData.selecting){var w=s.cy.zoom(),ie=h.bgActivePosistion;S.fillStyle="rgba("+b.core("active-bg-color").value[0]+","+b.core("active-bg-color").value[1]+","+b.core("active-bg-color").value[2]+","+b.core("active-bg-opacity").value+")",S.beginPath(),S.arc(ie.x,ie.y,b.core("active-bg-size").pfValue/w,0,2*Math.PI),S.fill()}var Q=s.lastRedrawTime;if(s.showFps&&Q){Q=Math.round(Q);var ee=Math.round(1e3/Q);S.setTransform(1,0,0,1,0,0),S.fillStyle="rgba(255, 0, 0, 0.75)",S.strokeStyle="rgba(255, 0, 0, 0.75)",S.lineWidth=1,S.fillText("1 frame = "+Q+" ms = "+ee+" fps",0,20);var J=60;S.strokeRect(0,30,250,20),S.fillRect(0,30,250*Math.min(ee/J,1),20)}r||(f[s.SELECT_BOX]=!1)}if(p&&m!==1){var H=h.contexts[s.NODE],q=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_NODE],Z=h.contexts[s.DRAG],ae=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_DRAG],ue=o(function(te,De,oe){te.setTransform(1,0,0,1,0,0),oe||!x?te.clearRect(0,0,s.canvasWidth,s.canvasHeight):D(te,0,0,s.canvasWidth,s.canvasHeight);var ke=m;te.drawImage(De,0,0,s.canvasWidth*ke,s.canvasHeight*ke,0,0,s.canvasWidth,s.canvasHeight)},"drawMotionBlur");(f[s.NODE]||z[s.NODE])&&(ue(H,q,z[s.NODE]),f[s.NODE]=!1),(f[s.DRAG]||z[s.DRAG])&&(ue(Z,ae,z[s.DRAG]),f[s.DRAG]=!1)}s.prevViewport=L,s.clearingMotionBlur&&(s.clearingMotionBlur=!1,s.motionBlurCleared=!0,s.motionBlur=!0),p&&(s.motionBlurTimeout=setTimeout(function(){s.motionBlurTimeout=null,s.clearedForMotionBlur[s.NODE]=!1,s.clearedForMotionBlur[s.DRAG]=!1,s.motionBlur=!1,s.clearingMotionBlur=!d,s.mbFrames=0,f[s.NODE]=!0,f[s.DRAG]=!0,s.redraw()},dtt)),e||u.emit("render")};Nf={};Nf.drawPolygonPath=function(t,e,r,n,i,a){var s=n/2,l=i/2;t.beginPath&&t.beginPath(),t.moveTo(e+s*a[0],r+l*a[1]);for(var u=1;u0&&s>0){m.clearRect(0,0,a,s),m.globalCompositeOperation="source-over";var g=this.getCachedZSortedEles();if(t.full)m.translate(-n.x1*h,-n.y1*h),m.scale(h,h),this.drawElements(m,g),m.scale(1/h,1/h),m.translate(n.x1*h,n.y1*h);else{var y=e.pan(),v={x:y.x*h,y:y.y*h};h*=e.zoom(),m.translate(v.x,v.y),m.scale(h,h),this.drawElements(m,g),m.scale(1/h,1/h),m.translate(-v.x,-v.y)}t.bg&&(m.globalCompositeOperation="destination-over",m.fillStyle=t.bg,m.rect(0,0,a,s),m.fill())}return p};o(ptt,"b64ToBlob");o(Ume,"b64UriToB64");o(w1e,"output");sb.png=function(t){return w1e(t,this.bufferCanvasImage(t),"image/png")};sb.jpg=function(t){return w1e(t,this.bufferCanvasImage(t),"image/jpeg")};T1e={};T1e.nodeShapeImpl=function(t,e,r,n,i,a,s,l){switch(t){case"ellipse":return this.drawEllipsePath(e,r,n,i,a);case"polygon":return this.drawPolygonPath(e,r,n,i,a,s);case"round-polygon":return this.drawRoundPolygonPath(e,r,n,i,a,s,l);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,r,n,i,a,l);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,r,n,i,a,s,l);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,r,n,i,a,l);case"barrel":return this.drawBarrelPath(e,r,n,i,a)}};mtt=k1e,Kr=k1e.prototype;Kr.CANVAS_LAYERS=3;Kr.SELECT_BOX=0;Kr.DRAG=1;Kr.NODE=2;Kr.BUFFER_COUNT=3;Kr.TEXTURE_BUFFER=0;Kr.MOTIONBLUR_BUFFER_NODE=1;Kr.MOTIONBLUR_BUFFER_DRAG=2;o(k1e,"CanvasRenderer");Kr.redrawHint=function(t,e){var r=this;switch(t){case"eles":r.data.canvasNeedsRedraw[Kr.NODE]=e;break;case"drag":r.data.canvasNeedsRedraw[Kr.DRAG]=e;break;case"select":r.data.canvasNeedsRedraw[Kr.SELECT_BOX]=e;break}};gtt=typeof Path2D<"u";Kr.path2dEnabled=function(t){if(t===void 0)return this.pathsEnabled;this.pathsEnabled=!!t};Kr.usePaths=function(){return gtt&&this.pathsEnabled};Kr.setImgSmoothing=function(t,e){t.imageSmoothingEnabled!=null?t.imageSmoothingEnabled=e:(t.webkitImageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.msImageSmoothingEnabled=e)};Kr.getImgSmoothing=function(t){return t.imageSmoothingEnabled!=null?t.imageSmoothingEnabled:t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled};Kr.makeOffscreenCanvas=function(t,e){var r;if((typeof OffscreenCanvas>"u"?"undefined":Yi(OffscreenCanvas))!=="undefined")r=new OffscreenCanvas(t,e);else{var n=this.cy.window(),i=n.document;r=i.createElement("canvas"),r.width=t,r.height=e}return r};[y1e,Yc,Zu,TB,Y0,w1,mo,Nf,sb,T1e].forEach(function(t){ir(Kr,t)});ytt=[{name:"null",impl:i1e},{name:"base",impl:p1e},{name:"canvas",impl:mtt}],vtt=[{type:"layout",extensions:ket},{type:"renderer",extensions:ytt}],E1e={},S1e={};o(C1e,"setExtension");o(A1e,"getExtension");o(xtt,"setModule");o(btt,"getModule");ZP=o(function(){if(arguments.length===2)return A1e.apply(null,arguments);if(arguments.length===3)return C1e.apply(null,arguments);if(arguments.length===4)return btt.apply(null,arguments);if(arguments.length===5)return xtt.apply(null,arguments);hi("Invalid extension access syntax")},"extension");Qx.prototype.extension=ZP;vtt.forEach(function(t){t.extensions.forEach(function(e){C1e(t.type,e.name,e.impl)})});_1e=o(function t(){if(!(this instanceof t))return new t;this.length=0},"Stylesheet"),H0=_1e.prototype;H0.instanceString=function(){return"stylesheet"};H0.selector=function(t){var e=this.length++;return this[e]={selector:t,properties:[]},this};H0.css=function(t,e){var r=this.length-1;if(Zt(t))this[r].properties.push({name:t,value:e});else if(Vr(t))for(var n=t,i=Object.keys(n),a=0;a{"use strict";o(function(e,r){typeof ob=="object"&&typeof EB=="object"?EB.exports=r():typeof define=="function"&&define.amd?define([],r):typeof ob=="object"?ob.layoutBase=r():e.layoutBase=r()},"webpackUniversalModuleDefinition")(ob,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return o(r,"__webpack_require__"),r.m=t,r.c=e,r.i=function(n){return n},r.d=function(n,i,a){r.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:a})},r.n=function(n){var i=n&&n.__esModule?o(function(){return n.default},"getDefault"):o(function(){return n},"getModuleExports");return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=26)}([function(t,e,r){"use strict";function n(){}o(n,"LayoutConstants"),n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_SIZE=40,n.SIMPLE_NODE_HALF_SIZE=n.SIMPLE_NODE_SIZE/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.WORLD_BOUNDARY=1e6,n.INITIAL_WORLD_BOUNDARY=n.WORLD_BOUNDARY/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,t.exports=n},function(t,e,r){"use strict";var n=r(2),i=r(8),a=r(9);function s(u,h,f){n.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=u,this.target=h}o(s,"LEdge"),s.prototype=Object.create(n.prototype);for(var l in n)s[l]=n[l];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(u){if(this.source===u)return this.target;if(this.target===u)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(u,h){for(var f=this.getOtherEnd(u),d=h.getGraphManager().getRoot();;){if(f.getOwner()==h)return f;if(f.getOwner()==d)break;f=f.getOwner().getParent()}return null},s.prototype.updateLength=function(){var u=new Array(4);this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),u),this.isOverlapingSourceAndTarget||(this.lengthX=u[0]-u[2],this.lengthY=u[1]-u[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=s},function(t,e,r){"use strict";function n(i){this.vGraphObject=i}o(n,"LGraphObject"),t.exports=n},function(t,e,r){"use strict";var n=r(2),i=r(10),a=r(13),s=r(0),l=r(16),u=r(4);function h(d,p,m,g){m==null&&g==null&&(g=p),n.call(this,g),d.graphManager!=null&&(d=d.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=g,this.edges=[],this.graphManager=d,m!=null&&p!=null?this.rect=new a(p.x,p.y,m.width,m.height):this.rect=new a}o(h,"LNode"),h.prototype=Object.create(n.prototype);for(var f in n)h[f]=n[f];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(d){this.rect.width=d},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(d){this.rect.height=d},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new u(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new u(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(d,p){this.rect.x=d.x,this.rect.y=d.y,this.rect.width=p.width,this.rect.height=p.height},h.prototype.setCenter=function(d,p){this.rect.x=d-this.rect.width/2,this.rect.y=p-this.rect.height/2},h.prototype.setLocation=function(d,p){this.rect.x=d,this.rect.y=p},h.prototype.moveBy=function(d,p){this.rect.x+=d,this.rect.y+=p},h.prototype.getEdgeListToNode=function(d){var p=[],m,g=this;return g.edges.forEach(function(y){if(y.target==d){if(y.source!=g)throw"Incorrect edge source!";p.push(y)}}),p},h.prototype.getEdgesBetween=function(d){var p=[],m,g=this;return g.edges.forEach(function(y){if(!(y.source==g||y.target==g))throw"Incorrect edge source and/or target";(y.target==d||y.source==d)&&p.push(y)}),p},h.prototype.getNeighborsList=function(){var d=new Set,p=this;return p.edges.forEach(function(m){if(m.source==p)d.add(m.target);else{if(m.target!=p)throw"Incorrect incidency!";d.add(m.source)}}),d},h.prototype.withChildren=function(){var d=new Set,p,m;if(d.add(this),this.child!=null)for(var g=this.child.getNodes(),y=0;yp&&(this.rect.x-=(this.labelWidth-p)/2,this.setWidth(this.labelWidth)),this.labelHeight>m&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-m)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-m),this.setHeight(this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(d){var p=this.rect.x;p>s.WORLD_BOUNDARY?p=s.WORLD_BOUNDARY:p<-s.WORLD_BOUNDARY&&(p=-s.WORLD_BOUNDARY);var m=this.rect.y;m>s.WORLD_BOUNDARY?m=s.WORLD_BOUNDARY:m<-s.WORLD_BOUNDARY&&(m=-s.WORLD_BOUNDARY);var g=new u(p,m),y=d.inverseTransformPoint(g);this.setLocation(y.x,y.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},t.exports=h},function(t,e,r){"use strict";function n(i,a){i==null&&a==null?(this.x=0,this.y=0):(this.x=i,this.y=a)}o(n,"PointD"),n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.setX=function(i){this.x=i},n.prototype.setY=function(i){this.y=i},n.prototype.getDifference=function(i){return new DimensionD(this.x-i.x,this.y-i.y)},n.prototype.getCopy=function(){return new n(this.x,this.y)},n.prototype.translate=function(i){return this.x+=i.width,this.y+=i.height,this},t.exports=n},function(t,e,r){"use strict";var n=r(2),i=r(10),a=r(0),s=r(6),l=r(3),u=r(1),h=r(13),f=r(12),d=r(11);function p(g,y,v){n.call(this,v),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=g,y!=null&&y instanceof s?this.graphManager=y:y!=null&&y instanceof Layout&&(this.graphManager=y.graphManager)}o(p,"LGraph"),p.prototype=Object.create(n.prototype);for(var m in n)p[m]=n[m];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(g,y,v){if(y==null&&v==null){var x=g;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(x)>-1)throw"Node already in graph!";return x.owner=this,this.getNodes().push(x),x}else{var b=g;if(!(this.getNodes().indexOf(y)>-1&&this.getNodes().indexOf(v)>-1))throw"Source or target not in graph!";if(!(y.owner==v.owner&&y.owner==this))throw"Both owners must be this graph!";return y.owner!=v.owner?null:(b.source=y,b.target=v,b.isInterGraph=!1,this.getEdges().push(b),y.edges.push(b),v!=y&&v.edges.push(b),b)}},p.prototype.remove=function(g){var y=g;if(g instanceof l){if(y==null)throw"Node is null!";if(!(y.owner!=null&&y.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var v=y.edges.slice(),x,b=v.length,w=0;w-1&&E>-1))throw"Source and/or target doesn't know this edge!";x.source.edges.splice(T,1),x.target!=x.source&&x.target.edges.splice(E,1);var _=x.source.owner.getEdges().indexOf(x);if(_==-1)throw"Not in owner's edge list!";x.source.owner.getEdges().splice(_,1)}},p.prototype.updateLeftTop=function(){for(var g=i.MAX_VALUE,y=i.MAX_VALUE,v,x,b,w=this.getNodes(),_=w.length,T=0;T<_;T++){var E=w[T];v=E.getTop(),x=E.getLeft(),g>v&&(g=v),y>x&&(y=x)}return g==i.MAX_VALUE?null:(w[0].getParent().paddingLeft!=null?b=w[0].getParent().paddingLeft:b=this.margin,this.left=y-b,this.top=g-b,new f(this.left,this.top))},p.prototype.updateBounds=function(g){for(var y=i.MAX_VALUE,v=-i.MAX_VALUE,x=i.MAX_VALUE,b=-i.MAX_VALUE,w,_,T,E,L,C=this.nodes,A=C.length,I=0;Iw&&(y=w),v<_&&(v=_),x>T&&(x=T),bw&&(y=w),v<_&&(v=_),x>T&&(x=T),b=this.nodes.length){var A=0;v.forEach(function(I){I.owner==g&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},t.exports=p},function(t,e,r){"use strict";var n,i=r(1);function a(s){n=r(5),this.layout=s,this.graphs=[],this.edges=[]}o(a,"LGraphManager"),a.prototype.addRoot=function(){var s=this.layout.newGraph(),l=this.layout.newNode(null),u=this.add(s,l);return this.setRootGraph(u),this.rootGraph},a.prototype.add=function(s,l,u,h,f){if(u==null&&h==null&&f==null){if(s==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(s)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(s),s.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return s.parent=l,l.child=s,s}else{f=u,h=l,u=s;var d=h.getOwner(),p=f.getOwner();if(!(d!=null&&d.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(p!=null&&p.getGraphManager()==this))throw"Target not in this graph mgr!";if(d==p)return u.isInterGraph=!1,d.add(u,h,f);if(u.isInterGraph=!0,u.source=h,u.target=f,this.edges.indexOf(u)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(u),!(u.source!=null&&u.target!=null))throw"Edge source and/or target is null!";if(!(u.source.edges.indexOf(u)==-1&&u.target.edges.indexOf(u)==-1))throw"Edge already in source and/or target incidency list!";return u.source.edges.push(u),u.target.edges.push(u),u}},a.prototype.remove=function(s){if(s instanceof n){var l=s;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var u=[];u=u.concat(l.getEdges());for(var h,f=u.length,d=0;d=s.getRight()?l[0]+=Math.min(s.getX()-a.getX(),a.getRight()-s.getRight()):s.getX()<=a.getX()&&s.getRight()>=a.getRight()&&(l[0]+=Math.min(a.getX()-s.getX(),s.getRight()-a.getRight())),a.getY()<=s.getY()&&a.getBottom()>=s.getBottom()?l[1]+=Math.min(s.getY()-a.getY(),a.getBottom()-s.getBottom()):s.getY()<=a.getY()&&s.getBottom()>=a.getBottom()&&(l[1]+=Math.min(a.getY()-s.getY(),s.getBottom()-a.getBottom()));var f=Math.abs((s.getCenterY()-a.getCenterY())/(s.getCenterX()-a.getCenterX()));s.getCenterY()===a.getCenterY()&&s.getCenterX()===a.getCenterX()&&(f=1);var d=f*l[0],p=l[1]/f;l[0]d)return l[0]=u,l[1]=m,l[2]=f,l[3]=C,!1;if(hf)return l[0]=p,l[1]=h,l[2]=E,l[3]=d,!1;if(uf?(l[0]=y,l[1]=v,k=!0):(l[0]=g,l[1]=m,k=!0):S===N&&(u>f?(l[0]=p,l[1]=m,k=!0):(l[0]=x,l[1]=v,k=!0)),-O===N?f>u?(l[2]=L,l[3]=C,R=!0):(l[2]=E,l[3]=T,R=!0):O===N&&(f>u?(l[2]=_,l[3]=T,R=!0):(l[2]=A,l[3]=C,R=!0)),k&&R)return!1;if(u>f?h>d?(P=this.getCardinalDirection(S,N,4),F=this.getCardinalDirection(O,N,2)):(P=this.getCardinalDirection(-S,N,3),F=this.getCardinalDirection(-O,N,1)):h>d?(P=this.getCardinalDirection(-S,N,1),F=this.getCardinalDirection(-O,N,3)):(P=this.getCardinalDirection(S,N,2),F=this.getCardinalDirection(O,N,4)),!k)switch(P){case 1:$=m,B=u+-w/N,l[0]=B,l[1]=$;break;case 2:B=x,$=h+b*N,l[0]=B,l[1]=$;break;case 3:$=v,B=u+w/N,l[0]=B,l[1]=$;break;case 4:B=y,$=h+-b*N,l[0]=B,l[1]=$;break}if(!R)switch(F){case 1:W=T,z=f+-D/N,l[2]=z,l[3]=W;break;case 2:z=A,W=d+I*N,l[2]=z,l[3]=W;break;case 3:W=C,z=f+D/N,l[2]=z,l[3]=W;break;case 4:z=L,W=d+-I*N,l[2]=z,l[3]=W;break}}return!1},i.getCardinalDirection=function(a,s,l){return a>s?l:1+l%4},i.getIntersection=function(a,s,l,u){if(u==null)return this.getIntersection2(a,s,l);var h=a.x,f=a.y,d=s.x,p=s.y,m=l.x,g=l.y,y=u.x,v=u.y,x=void 0,b=void 0,w=void 0,_=void 0,T=void 0,E=void 0,L=void 0,C=void 0,A=void 0;return w=p-f,T=h-d,L=d*f-h*p,_=v-g,E=m-y,C=y*g-m*v,A=w*E-_*T,A===0?null:(x=(T*C-E*L)/A,b=(_*L-w*C)/A,new n(x,b))},i.angleOfVector=function(a,s,l,u){var h=void 0;return a!==l?(h=Math.atan((u-s)/(l-a)),l0?1:i<0?-1:0},n.floor=function(i){return i<0?Math.ceil(i):Math.floor(i)},n.ceil=function(i){return i<0?Math.floor(i):Math.ceil(i)},t.exports=n},function(t,e,r){"use strict";function n(){}o(n,"Integer"),n.MAX_VALUE=2147483647,n.MIN_VALUE=-2147483648,t.exports=n},function(t,e,r){"use strict";var n=function(){function h(f,d){for(var p=0;p"u"?"undefined":n(a);return a==null||s!="object"&&s!="function"},t.exports=i},function(t,e,r){"use strict";function n(m){if(Array.isArray(m)){for(var g=0,y=Array(m.length);g0&&g;){for(w.push(T[0]);w.length>0&&g;){var E=w[0];w.splice(0,1),b.add(E);for(var L=E.getEdges(),x=0;x-1&&T.splice(D,1)}b=new Set,_=new Map}}return m},p.prototype.createDummyNodesForBendpoints=function(m){for(var g=[],y=m.source,v=this.graphManager.calcLowestCommonAncestor(m.source,m.target),x=0;x0){for(var v=this.edgeToDummyNodes.get(y),x=0;x=0&&g.splice(C,1);var A=_.getNeighborsList();A.forEach(function(k){if(y.indexOf(k)<0){var R=v.get(k),S=R-1;S==1&&E.push(k),v.set(k,S)}})}y=y.concat(E),(g.length==1||g.length==2)&&(x=!0,b=g[0])}return b},p.prototype.setGraphManager=function(m){this.graphManager=m},t.exports=p},function(t,e,r){"use strict";function n(){}o(n,"RandomSeed"),n.seed=1,n.x=0,n.nextDouble=function(){return n.x=Math.sin(n.seed++)*1e4,n.x-Math.floor(n.x)},t.exports=n},function(t,e,r){"use strict";var n=r(4);function i(a,s){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}o(i,"Transform"),i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(a){this.lworldExtX=a},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(a){this.lworldExtY=a},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},i.prototype.transformX=function(a){var s=0,l=this.lworldExtX;return l!=0&&(s=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/l),s},i.prototype.transformY=function(a){var s=0,l=this.lworldExtY;return l!=0&&(s=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/l),s},i.prototype.inverseTransformX=function(a){var s=0,l=this.ldeviceExtX;return l!=0&&(s=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/l),s},i.prototype.inverseTransformY=function(a){var s=0,l=this.ldeviceExtY;return l!=0&&(s=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/l),s},i.prototype.inverseTransformPoint=function(a){var s=new n(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return s},t.exports=i},function(t,e,r){"use strict";function n(d){if(Array.isArray(d)){for(var p=0,m=Array(d.length);pa.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(d-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(d>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(d-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var d=this.getAllEdges(),p,m=0;m0&&arguments[0]!==void 0?arguments[0]:!0,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m,g,y,v,x=this.getAllNodes(),b;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&d&&this.updateGrid(),b=new Set,m=0;mw||b>w)&&(d.gravitationForceX=-this.gravityConstant*y,d.gravitationForceY=-this.gravityConstant*v)):(w=p.getEstimatedSize()*this.compoundGravityRangeFactor,(x>w||b>w)&&(d.gravitationForceX=-this.gravityConstant*y*this.compoundGravityConstant,d.gravitationForceY=-this.gravityConstant*v*this.compoundGravityConstant))},h.prototype.isConverged=function(){var d,p=!1;return this.totalIterations>this.maxIterations/3&&(p=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),d=this.totalDisplacement=x.length||w>=x[0].length)){for(var _=0;_h},"_defaultCompareFunction")}]),l}();t.exports=s},function(t,e,r){"use strict";var n=function(){function s(l,u){for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,s),this.sequence1=l,this.sequence2=u,this.match_score=h,this.mismatch_penalty=f,this.gap_penalty=d,this.iMax=l.length+1,this.jMax=u.length+1,this.grid=new Array(this.iMax);for(var p=0;p=0;l--){var u=this.listeners[l];u.event===a&&u.callback===s&&this.listeners.splice(l,1)}},i.emit=function(a,s){for(var l=0;l{"use strict";o(function(e,r){typeof lb=="object"&&typeof CB=="object"?CB.exports=r(SB()):typeof define=="function"&&define.amd?define(["layout-base"],r):typeof lb=="object"?lb.coseBase=r(SB()):e.coseBase=r(e.layoutBase)},"webpackUniversalModuleDefinition")(lb,function(t){return function(e){var r={};function n(i){if(r[i])return r[i].exports;var a=r[i]={i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return o(n,"__webpack_require__"),n.m=e,n.c=r,n.i=function(i){return i},n.d=function(i,a,s){n.o(i,a)||Object.defineProperty(i,a,{configurable:!1,enumerable:!0,get:s})},n.n=function(i){var a=i&&i.__esModule?o(function(){return i.default},"getDefault"):o(function(){return i},"getModuleExports");return n.d(a,"a",a),a},n.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},n.p="",n(n.s=7)}([function(e,r){e.exports=t},function(e,r,n){"use strict";var i=n(0).FDLayoutConstants;function a(){}o(a,"CoSEConstants");for(var s in i)a[s]=i[s];a.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,a.DEFAULT_RADIAL_SEPARATION=i.DEFAULT_EDGE_LENGTH,a.DEFAULT_COMPONENT_SEPERATION=60,a.TILE=!0,a.TILING_PADDING_VERTICAL=10,a.TILING_PADDING_HORIZONTAL=10,a.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=a},function(e,r,n){"use strict";var i=n(0).FDLayoutEdge;function a(l,u,h){i.call(this,l,u,h)}o(a,"CoSEEdge"),a.prototype=Object.create(i.prototype);for(var s in i)a[s]=i[s];e.exports=a},function(e,r,n){"use strict";var i=n(0).LGraph;function a(l,u,h){i.call(this,l,u,h)}o(a,"CoSEGraph"),a.prototype=Object.create(i.prototype);for(var s in i)a[s]=i[s];e.exports=a},function(e,r,n){"use strict";var i=n(0).LGraphManager;function a(l){i.call(this,l)}o(a,"CoSEGraphManager"),a.prototype=Object.create(i.prototype);for(var s in i)a[s]=i[s];e.exports=a},function(e,r,n){"use strict";var i=n(0).FDLayoutNode,a=n(0).IMath;function s(u,h,f,d){i.call(this,u,h,f,d)}o(s,"CoSENode"),s.prototype=Object.create(i.prototype);for(var l in i)s[l]=i[l];s.prototype.move=function(){var u=this.graphManager.getLayout();this.displacementX=u.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=u.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>u.coolingFactor*u.maxNodeDisplacement&&(this.displacementX=u.coolingFactor*u.maxNodeDisplacement*a.sign(this.displacementX)),Math.abs(this.displacementY)>u.coolingFactor*u.maxNodeDisplacement&&(this.displacementY=u.coolingFactor*u.maxNodeDisplacement*a.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),u.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},s.prototype.propogateDisplacementToChildren=function(u,h){for(var f=this.getChild().getNodes(),d,p=0;p0)this.positionNodesRadially(T);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),L=this.nodesWithGravity.filter(function(C){return E.has(C)});this.graphManager.setAllNodesToApplyGravitation(L),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},w.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%f.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var T=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(A){return T.has(A)});this.graphManager.setAllNodesToApplyGravitation(E),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var L=!this.isTreeGrowing&&!this.isGrowthFinished,C=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(L,C),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},w.prototype.getPositionsData=function(){for(var T=this.graphManager.getAllNodes(),E={},L=0;L1){var k;for(k=0;kC&&(C=Math.floor(D.y)),I=Math.floor(D.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new m(d.WORLD_CENTER_X-D.x/2,d.WORLD_CENTER_Y-D.y/2))},w.radialLayout=function(T,E,L){var C=Math.max(this.maxDiagonalInTree(T),h.DEFAULT_RADIAL_SEPARATION);w.branchRadialLayout(E,null,0,359,0,C);var A=x.calculateBounds(T),I=new b;I.setDeviceOrgX(A.getMinX()),I.setDeviceOrgY(A.getMinY()),I.setWorldOrgX(L.x),I.setWorldOrgY(L.y);for(var D=0;D1;){var j=W[0];W.splice(0,1);var K=P.indexOf(j);K>=0&&P.splice(K,1),$--,F--}E!=null?z=(P.indexOf(W[0])+1)%$:z=0;for(var ie=Math.abs(C-L)/F,Q=z;B!=F;Q=++Q%$){var ee=P[Q].getOtherEnd(T);if(ee!=E){var J=(L+B*ie)%360,H=(J+ie)%360;w.branchRadialLayout(ee,T,J,H,A+I,I),B++}}},w.maxDiagonalInTree=function(T){for(var E=y.MIN_VALUE,L=0;LE&&(E=A)}return E},w.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},w.prototype.groupZeroDegreeMembers=function(){var T=this,E={};this.memberGroups={},this.idToDummyNode={};for(var L=[],C=this.graphManager.getAllNodes(),A=0;A"u"&&(E[k]=[]),E[k]=E[k].concat(I)}Object.keys(E).forEach(function(R){if(E[R].length>1){var S="DummyCompound_"+R;T.memberGroups[S]=E[R];var O=E[R][0].getParent(),N=new l(T.graphManager);N.id=S,N.paddingLeft=O.paddingLeft||0,N.paddingRight=O.paddingRight||0,N.paddingBottom=O.paddingBottom||0,N.paddingTop=O.paddingTop||0,T.idToDummyNode[S]=N;var P=T.getGraphManager().add(T.newGraph(),N),F=O.getChild();F.add(N);for(var B=0;B=0;T--){var E=this.compoundOrder[T],L=E.id,C=E.paddingLeft,A=E.paddingTop;this.adjustLocations(this.tiledMemberPack[L],E.rect.x,E.rect.y,C,A)}},w.prototype.repopulateZeroDegreeMembers=function(){var T=this,E=this.tiledZeroDegreePack;Object.keys(E).forEach(function(L){var C=T.idToDummyNode[L],A=C.paddingLeft,I=C.paddingTop;T.adjustLocations(E[L],C.rect.x,C.rect.y,A,I)})},w.prototype.getToBeTiled=function(T){var E=T.id;if(this.toBeTiled[E]!=null)return this.toBeTiled[E];var L=T.getChild();if(L==null)return this.toBeTiled[E]=!1,!1;for(var C=L.getNodes(),A=0;A0)return this.toBeTiled[E]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[E]=!1,!1}return this.toBeTiled[E]=!0,!0},w.prototype.getNodeDegree=function(T){for(var E=T.id,L=T.getEdges(),C=0,A=0;AR&&(R=O.rect.height)}L+=R+T.verticalPadding}},w.prototype.tileCompoundMembers=function(T,E){var L=this;this.tiledMemberPack=[],Object.keys(T).forEach(function(C){var A=E[C];L.tiledMemberPack[C]=L.tileNodes(T[C],A.paddingLeft+A.paddingRight),A.rect.width=L.tiledMemberPack[C].width,A.rect.height=L.tiledMemberPack[C].height})},w.prototype.tileNodes=function(T,E){var L=h.TILING_PADDING_VERTICAL,C=h.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:E,verticalPadding:L,horizontalPadding:C};T.sort(function(k,R){return k.rect.width*k.rect.height>R.rect.width*R.rect.height?-1:k.rect.width*k.rect.height0&&(D+=T.horizontalPadding),T.rowWidth[L]=D,T.width0&&(k+=T.verticalPadding);var R=0;k>T.rowHeight[L]&&(R=T.rowHeight[L],T.rowHeight[L]=k,R=T.rowHeight[L]-R),T.height+=R,T.rows[L].push(E)},w.prototype.getShortestRowIndex=function(T){for(var E=-1,L=Number.MAX_VALUE,C=0;CL&&(E=C,L=T.rowWidth[C]);return E},w.prototype.canAddHorizontal=function(T,E,L){var C=this.getShortestRowIndex(T);if(C<0)return!0;var A=T.rowWidth[C];if(A+T.horizontalPadding+E<=T.width)return!0;var I=0;T.rowHeight[C]0&&(I=L+T.verticalPadding-T.rowHeight[C]);var D;T.width-A>=E+T.horizontalPadding?D=(T.height+I)/(A+E+T.horizontalPadding):D=(T.height+I)/T.width,I=L+T.verticalPadding;var k;return T.widthI&&E!=L){C.splice(-1,1),T.rows[L].push(A),T.rowWidth[E]=T.rowWidth[E]-I,T.rowWidth[L]=T.rowWidth[L]+I,T.width=T.rowWidth[instance.getLongestRowIndex(T)];for(var D=Number.MIN_VALUE,k=0;kD&&(D=C[k].height);E>0&&(D+=T.verticalPadding);var R=T.rowHeight[E]+T.rowHeight[L];T.rowHeight[E]=D,T.rowHeight[L]0)for(var F=A;F<=I;F++)P[0]+=this.grid[F][D-1].length+this.grid[F][D].length-1;if(I0)for(var F=D;F<=k;F++)P[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var B=y.MAX_VALUE,$,z,W=0;W{"use strict";o(function(e,r){typeof cb=="object"&&typeof _B=="object"?_B.exports=r(AB()):typeof define=="function"&&define.amd?define(["cose-base"],r):typeof cb=="object"?cb.cytoscapeCoseBilkent=r(AB()):e.cytoscapeCoseBilkent=r(e.coseBase)},"webpackUniversalModuleDefinition")(cb,function(t){return function(e){var r={};function n(i){if(r[i])return r[i].exports;var a=r[i]={i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return o(n,"__webpack_require__"),n.m=e,n.c=r,n.i=function(i){return i},n.d=function(i,a,s){n.o(i,a)||Object.defineProperty(i,a,{configurable:!1,enumerable:!0,get:s})},n.n=function(i){var a=i&&i.__esModule?o(function(){return i.default},"getDefault"):o(function(){return i},"getModuleExports");return n.d(a,"a",a),a},n.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},n.p="",n(n.s=1)}([function(e,r){e.exports=t},function(e,r,n){"use strict";var i=n(0).layoutBase.LayoutConstants,a=n(0).layoutBase.FDLayoutConstants,s=n(0).CoSEConstants,l=n(0).CoSELayout,u=n(0).CoSENode,h=n(0).layoutBase.PointD,f=n(0).layoutBase.DimensionD,d={ready:o(function(){},"ready"),stop:o(function(){},"stop"),quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function p(v,x){var b={};for(var w in v)b[w]=v[w];for(var w in x)b[w]=x[w];return b}o(p,"extend");function m(v){this.options=p(d,v),g(this.options)}o(m,"_CoSELayout");var g=o(function(x){x.nodeRepulsion!=null&&(s.DEFAULT_REPULSION_STRENGTH=a.DEFAULT_REPULSION_STRENGTH=x.nodeRepulsion),x.idealEdgeLength!=null&&(s.DEFAULT_EDGE_LENGTH=a.DEFAULT_EDGE_LENGTH=x.idealEdgeLength),x.edgeElasticity!=null&&(s.DEFAULT_SPRING_STRENGTH=a.DEFAULT_SPRING_STRENGTH=x.edgeElasticity),x.nestingFactor!=null&&(s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=x.nestingFactor),x.gravity!=null&&(s.DEFAULT_GRAVITY_STRENGTH=a.DEFAULT_GRAVITY_STRENGTH=x.gravity),x.numIter!=null&&(s.MAX_ITERATIONS=a.MAX_ITERATIONS=x.numIter),x.gravityRange!=null&&(s.DEFAULT_GRAVITY_RANGE_FACTOR=a.DEFAULT_GRAVITY_RANGE_FACTOR=x.gravityRange),x.gravityCompound!=null&&(s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=a.DEFAULT_COMPOUND_GRAVITY_STRENGTH=x.gravityCompound),x.gravityRangeCompound!=null&&(s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=x.gravityRangeCompound),x.initialEnergyOnIncremental!=null&&(s.DEFAULT_COOLING_FACTOR_INCREMENTAL=a.DEFAULT_COOLING_FACTOR_INCREMENTAL=x.initialEnergyOnIncremental),x.quality=="draft"?i.QUALITY=0:x.quality=="proof"?i.QUALITY=2:i.QUALITY=1,s.NODE_DIMENSIONS_INCLUDE_LABELS=a.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=x.nodeDimensionsIncludeLabels,s.DEFAULT_INCREMENTAL=a.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=!x.randomize,s.ANIMATE=a.ANIMATE=i.ANIMATE=x.animate,s.TILE=x.tile,s.TILING_PADDING_VERTICAL=typeof x.tilingPaddingVertical=="function"?x.tilingPaddingVertical.call():x.tilingPaddingVertical,s.TILING_PADDING_HORIZONTAL=typeof x.tilingPaddingHorizontal=="function"?x.tilingPaddingHorizontal.call():x.tilingPaddingHorizontal},"getUserOptions");m.prototype.run=function(){var v,x,b=this.options,w=this.idToLNode={},_=this.layout=new l,T=this;T.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var E=_.newGraphManager();this.gm=E;var L=this.options.eles.nodes(),C=this.options.eles.edges();this.root=E.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(L),_);for(var A=0;A0){var k;k=b.getGraphManager().add(b.newGraph(),L),this.processChildrenList(k,E,b)}}},m.prototype.stop=function(){return this.stopped=!0,this};var y=o(function(x){x("layout","cose-bilkent",m)},"register");typeof cytoscape<"u"&&y(cytoscape),e.exports=y}])})});function _tt(t,e,r,n,i){return t.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+(i.width-e)/2+", "+r+")")}var Ttt,ktt,Ett,Stt,Ctt,Att,Ltt,Dtt,D1e,N1e,R1e=M(()=>{"use strict";Dl();hr();Ttt=12,ktt=o(function(t,e,r,n){e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 ${r.height-5} v${-r.height+2*5} q0,-5 5,-5 h${r.width-2*5} q5,0 5,5 v${r.height-5} H0 Z`),e.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",r.height).attr("x2",r.width).attr("y2",r.height)},"defaultBkg"),Ett=o(function(t,e,r){e.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("height",r.height).attr("width",r.width)},"rectBkg"),Stt=o(function(t,e,r){let n=r.width,i=r.height,a=.15*n,s=.25*n,l=.35*n,u=.2*n;e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 0 a${a},${a} 0 0,1 ${n*.25},${-1*n*.1} + a${l},${l} 1 0,1 ${n*.4},${-1*n*.1} + a${s},${s} 1 0,1 ${n*.35},${1*n*.2} + + a${a},${a} 1 0,1 ${n*.15},${1*i*.35} + a${u},${u} 1 0,1 ${-1*n*.15},${1*i*.65} + + a${s},${a} 1 0,1 ${-1*n*.25},${n*.15} + a${l},${l} 1 0,1 ${-1*n*.5},0 + a${a},${a} 1 0,1 ${-1*n*.25},${-1*n*.15} + + a${a},${a} 1 0,1 ${-1*n*.1},${-1*i*.35} + a${u},${u} 1 0,1 ${n*.1},${-1*i*.65} + + H0 V0 Z`)},"cloudBkg"),Ctt=o(function(t,e,r){let n=r.width,i=r.height,a=.15*n;e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 0 a${a},${a} 1 0,0 ${n*.25},${-1*i*.1} + a${a},${a} 1 0,0 ${n*.25},0 + a${a},${a} 1 0,0 ${n*.25},0 + a${a},${a} 1 0,0 ${n*.25},${1*i*.1} + + a${a},${a} 1 0,0 ${n*.15},${1*i*.33} + a${a*.8},${a*.8} 1 0,0 0,${1*i*.34} + a${a},${a} 1 0,0 ${-1*n*.15},${1*i*.33} + + a${a},${a} 1 0,0 ${-1*n*.25},${i*.15} + a${a},${a} 1 0,0 ${-1*n*.25},0 + a${a},${a} 1 0,0 ${-1*n*.25},0 + a${a},${a} 1 0,0 ${-1*n*.25},${-1*i*.15} + + a${a},${a} 1 0,0 ${-1*n*.1},${-1*i*.33} + a${a*.8},${a*.8} 1 0,0 0,${-1*i*.34} + a${a},${a} 1 0,0 ${n*.1},${-1*i*.33} + + H0 V0 Z`)},"bangBkg"),Att=o(function(t,e,r){e.append("circle").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("r",r.width/2)},"circleBkg");o(_tt,"insertPolygonShape");Ltt=o(function(t,e,r){let n=r.height,a=n/4,s=r.width-r.padding+2*a,l=[{x:a,y:0},{x:s-a,y:0},{x:s,y:-n/2},{x:s-a,y:-n},{x:a,y:-n},{x:0,y:-n/2}];_tt(e,s,n,l,r)},"hexagonBkg"),Dtt=o(function(t,e,r){e.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("height",r.height).attr("rx",r.padding).attr("ry",r.padding).attr("width",r.width)},"roundedRectBkg"),D1e=o(async function(t,e,r,n,i){let a=i.htmlLabels,s=n%(Ttt-1),l=e.append("g");r.section=s;let u="section-"+s;s<0&&(u+=" section-root"),l.attr("class",(r.class?r.class+" ":"")+"mindmap-node "+u);let h=l.append("g"),f=l.append("g"),d=r.descr.replace(/()/g,` +`);await Si(f,d,{useHtmlLabels:a,width:r.width,classes:"mindmap-node-label"},i),a||f.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");let p=f.node().getBBox(),[m]=Fo(i.fontSize);if(r.height=p.height+m*1.1*.5+r.padding,r.width=p.width+2*r.padding,r.icon)if(r.type===t.nodeType.CIRCLE)r.height+=50,r.width+=50,l.append("foreignObject").attr("height","50px").attr("width",r.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),f.attr("transform","translate("+r.width/2+", "+(r.height/2-1.5*r.padding)+")");else{r.width+=50;let g=r.height;r.height=Math.max(g,60);let y=Math.abs(r.height-g);l.append("foreignObject").attr("width","60px").attr("height",r.height).attr("style","text-align: center;margin-top:"+y/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),f.attr("transform","translate("+(25+r.width/2)+", "+(y/2+r.padding/2)+")")}else if(a){let g=(r.width-p.width)/2,y=(r.height-p.height)/2;f.attr("transform","translate("+g+", "+y+")")}else{let g=r.width/2,y=r.padding/2;f.attr("transform","translate("+g+", "+y+")")}switch(r.type){case t.nodeType.DEFAULT:ktt(t,h,r,s);break;case t.nodeType.ROUNDED_RECT:Dtt(t,h,r,s);break;case t.nodeType.RECT:Ett(t,h,r,s);break;case t.nodeType.CIRCLE:h.attr("transform","translate("+r.width/2+", "+ +r.height/2+")"),Att(t,h,r,s);break;case t.nodeType.CLOUD:Stt(t,h,r,s);break;case t.nodeType.BANG:Ctt(t,h,r,s);break;case t.nodeType.HEXAGON:Ltt(t,h,r,s);break}return t.setElementForId(r.id,l),r.height},"drawNode"),N1e=o(function(t,e){let r=t.getElementById(e.id),n=e.x||0,i=e.y||0;r.attr("transform","translate("+n+","+i+")")},"positionNode")});async function I1e(t,e,r,n,i){await D1e(t,e,r,n,i),r.children&&await Promise.all(r.children.map((a,s)=>I1e(t,e,a,n<0?s:n,i)))}function Ntt(t,e){e.edges().map((r,n)=>{let i=r.data();if(r[0]._private.bodyBounds){let a=r[0]._private.rscratch;Y.trace("Edge: ",n,i),t.insert("path").attr("d",`M ${a.startX},${a.startY} L ${a.midX},${a.midY} L${a.endX},${a.endY} `).attr("class","edge section-edge-"+i.section+" edge-depth-"+i.depth)}})}function O1e(t,e,r,n){e.add({group:"nodes",data:{id:t.id.toString(),labelText:t.descr,height:t.height,width:t.width,level:n,nodeId:t.id,padding:t.padding,type:t.type},position:{x:t.x,y:t.y}}),t.children&&t.children.forEach(i=>{O1e(i,e,r,n+1),e.add({group:"edges",data:{id:`${t.id}_${i.id}`,source:t.id,target:i.id,depth:n,section:i.section}})})}function Rtt(t,e){return new Promise(r=>{let n=ze("body").append("div").attr("id","cy").attr("style","display:none"),i=sl({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});n.remove(),O1e(t,i,e,0),i.nodes().forEach(function(a){a.layoutDimensions=()=>{let s=a.data();return{w:s.width,h:s.height}}}),i.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),i.ready(a=>{Y.info("Ready",a),r(i)})})}function Mtt(t,e){e.nodes().map((r,n)=>{let i=r.data();i.x=r.position().x,i.y=r.position().y,N1e(t,i);let a=t.getElementById(i.nodeId);Y.info("Id:",n,"Position: (",r.position().x,", ",r.position().y,")",i),a.attr("transform",`translate(${r.position().x-i.width/2}, ${r.position().y-i.height/2})`),a.attr("attr",`apa-${n})`)})}var M1e,Itt,P1e,B1e=M(()=>{"use strict";kB();M1e=ka(L1e(),1);mr();Vt();ht();Hu();ni();R1e();hs();sl.use(M1e.default);o(I1e,"drawNodes");o(Ntt,"drawEdges");o(O1e,"addNodes");o(Rtt,"layoutMindmap");o(Mtt,"positionNodes");Itt=o(async(t,e,r,n)=>{Y.debug(`Rendering mindmap diagram +`+t);let i=n.db,a=i.getMindmap();if(!a)return;let s=de();s.htmlLabels=!1;let l=Oa(e),u=l.append("g");u.attr("class","mindmap-edges");let h=l.append("g");h.attr("class","mindmap-nodes"),await I1e(i,h,a,-1,s);let f=await Rtt(a,s);Ntt(u,f),Mtt(i,f),_o(void 0,l,s.mindmap?.padding??ur.mindmap.padding,s.mindmap?.useMaxWidth??ur.mindmap.useMaxWidth)},"draw"),P1e={draw:Itt}});var Ott,Ptt,F1e,z1e=M(()=>{"use strict";To();Ott=o(t=>{let e="";for(let r=0;r` + .edge { + stroke-width: 3; + } + ${Ott(t)} + .section-root rect, .section-root path, .section-root circle, .section-root polygon { + fill: ${t.git0}; + } + .section-root text { + fill: ${t.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .mindmap-node-label { + dy: 1em; + alignment-baseline: middle; + text-anchor: middle; + dominant-baseline: middle; + text-align: center; + } +`,"getStyles"),F1e=Ptt});var G1e={};vr(G1e,{diagram:()=>Btt});var Btt,$1e=M(()=>{"use strict";Cpe();Lpe();B1e();z1e();Btt={db:_pe,renderer:P1e,parser:Spe,styles:F1e}});var LB,H1e,W1e=M(()=>{"use strict";LB=function(){var t=o(function(L,C,A,I){for(A=A||{},I=L.length;I--;A[L[I]]=C);return A},"o"),e=[1,4],r=[1,13],n=[1,12],i=[1,15],a=[1,16],s=[1,20],l=[1,19],u=[6,7,8],h=[1,26],f=[1,24],d=[1,25],p=[6,7,11],m=[1,31],g=[6,7,11,24],y=[1,6,13,16,17,20,23],v=[1,35],x=[1,36],b=[1,6,7,11,13,16,17,20,23],w=[1,38],_={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(C,A,I,D,k,R,S){var O=R.length-1;switch(k){case 6:case 7:return D;case 8:D.getLogger().trace("Stop NL ");break;case 9:D.getLogger().trace("Stop EOF ");break;case 11:D.getLogger().trace("Stop NL2 ");break;case 12:D.getLogger().trace("Stop EOF2 ");break;case 15:D.getLogger().info("Node: ",R[O-1].id),D.addNode(R[O-2].length,R[O-1].id,R[O-1].descr,R[O-1].type,R[O]);break;case 16:D.getLogger().info("Node: ",R[O].id),D.addNode(R[O-1].length,R[O].id,R[O].descr,R[O].type);break;case 17:D.getLogger().trace("Icon: ",R[O]),D.decorateNode({icon:R[O]});break;case 18:case 23:D.decorateNode({class:R[O]});break;case 19:D.getLogger().trace("SPACELIST");break;case 20:D.getLogger().trace("Node: ",R[O-1].id),D.addNode(0,R[O-1].id,R[O-1].descr,R[O-1].type,R[O]);break;case 21:D.getLogger().trace("Node: ",R[O].id),D.addNode(0,R[O].id,R[O].descr,R[O].type);break;case 22:D.decorateNode({icon:R[O]});break;case 27:D.getLogger().trace("node found ..",R[O-2]),this.$={id:R[O-1],descr:R[O-1],type:D.getType(R[O-2],R[O])};break;case 28:this.$={id:R[O],descr:R[O],type:0};break;case 29:D.getLogger().trace("node found ..",R[O-3]),this.$={id:R[O-3],descr:R[O-1],type:D.getType(R[O-2],R[O])};break;case 30:this.$=R[O-1]+R[O];break;case 31:this.$=R[O];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:l},t(u,[2,3]),{1:[2,2]},t(u,[2,4]),t(u,[2,5]),{1:[2,6],6:r,12:21,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:l},{6:r,9:22,12:11,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:l},{6:h,7:f,10:23,11:d},t(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:l}),t(p,[2,19]),t(p,[2,21],{15:30,24:m}),t(p,[2,22]),t(p,[2,23]),t(g,[2,25]),t(g,[2,26]),t(g,[2,28],{20:[1,32]}),{21:[1,33]},{6:h,7:f,10:34,11:d},{1:[2,7],6:r,12:21,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:l},t(y,[2,14],{7:v,11:x}),t(b,[2,8]),t(b,[2,9]),t(b,[2,10]),t(p,[2,16],{15:37,24:m}),t(p,[2,17]),t(p,[2,18]),t(p,[2,20],{24:w}),t(g,[2,31]),{21:[1,39]},{22:[1,40]},t(y,[2,13],{7:v,11:x}),t(b,[2,11]),t(b,[2,12]),t(p,[2,15],{24:w}),t(g,[2,30]),{22:[1,41]},t(g,[2,27]),t(g,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(C,A){if(A.recoverable)this.trace(C);else{var I=new Error(C);throw I.hash=A,I}},"parseError"),parse:o(function(C){var A=this,I=[0],D=[],k=[null],R=[],S=this.table,O="",N=0,P=0,F=0,B=2,$=1,z=R.slice.call(arguments,1),W=Object.create(this.lexer),j={yy:{}};for(var K in this.yy)Object.prototype.hasOwnProperty.call(this.yy,K)&&(j.yy[K]=this.yy[K]);W.setInput(C,j.yy),j.yy.lexer=W,j.yy.parser=this,typeof W.yylloc>"u"&&(W.yylloc={});var ie=W.yylloc;R.push(ie);var Q=W.options&&W.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ee(Ve){I.length=I.length-2*Ve,k.length=k.length-Ve,R.length=R.length-Ve}o(ee,"popStack");function J(){var Ve;return Ve=D.pop()||W.lex()||$,typeof Ve!="number"&&(Ve instanceof Array&&(D=Ve,Ve=D.pop()),Ve=A.symbols_[Ve]||Ve),Ve}o(J,"lex");for(var H,q,Z,ae,ue,ce,te={},De,oe,ke,Fe;;){if(Z=I[I.length-1],this.defaultActions[Z]?ae=this.defaultActions[Z]:((H===null||typeof H>"u")&&(H=J()),ae=S[Z]&&S[Z][H]),typeof ae>"u"||!ae.length||!ae[0]){var Be="";Fe=[];for(De in S[Z])this.terminals_[De]&&De>B&&Fe.push("'"+this.terminals_[De]+"'");W.showPosition?Be="Parse error on line "+(N+1)+`: +`+W.showPosition()+` +Expecting `+Fe.join(", ")+", got '"+(this.terminals_[H]||H)+"'":Be="Parse error on line "+(N+1)+": Unexpected "+(H==$?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(Be,{text:W.match,token:this.terminals_[H]||H,line:W.yylineno,loc:ie,expected:Fe})}if(ae[0]instanceof Array&&ae.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+H);switch(ae[0]){case 1:I.push(H),k.push(W.yytext),R.push(W.yylloc),I.push(ae[1]),H=null,q?(H=q,q=null):(P=W.yyleng,O=W.yytext,N=W.yylineno,ie=W.yylloc,F>0&&F--);break;case 2:if(oe=this.productions_[ae[1]][1],te.$=k[k.length-oe],te._$={first_line:R[R.length-(oe||1)].first_line,last_line:R[R.length-1].last_line,first_column:R[R.length-(oe||1)].first_column,last_column:R[R.length-1].last_column},Q&&(te._$.range=[R[R.length-(oe||1)].range[0],R[R.length-1].range[1]]),ce=this.performAction.apply(te,[O,P,N,j.yy,ae[1],k,R].concat(z)),typeof ce<"u")return ce;oe&&(I=I.slice(0,-1*oe*2),k=k.slice(0,-1*oe),R=R.slice(0,-1*oe)),I.push(this.productions_[ae[1]][0]),k.push(te.$),R.push(te._$),ke=S[I[I.length-2]][I[I.length-1]],I.push(ke);break;case 3:return!0}}return!0},"parse")},T=function(){var L={EOF:1,parseError:o(function(A,I){if(this.yy.parser)this.yy.parser.parseError(A,I);else throw new Error(A)},"parseError"),setInput:o(function(C,A){return this.yy=A||this.yy||{},this._input=C,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var C=this._input[0];this.yytext+=C,this.yyleng++,this.offset++,this.match+=C,this.matched+=C;var A=C.match(/(?:\r\n?|\n).*/g);return A?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),C},"input"),unput:o(function(C){var A=C.length,I=C.split(/(?:\r\n?|\n)/g);this._input=C+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var D=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),I.length-1&&(this.yylineno-=I.length-1);var k=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:I?(I.length===D.length?this.yylloc.first_column:0)+D[D.length-I.length].length-I[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(C){this.unput(this.match.slice(C))},"less"),pastInput:o(function(){var C=this.matched.substr(0,this.matched.length-this.match.length);return(C.length>20?"...":"")+C.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var C=this.match;return C.length<20&&(C+=this._input.substr(0,20-C.length)),(C.substr(0,20)+(C.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var C=this.pastInput(),A=new Array(C.length+1).join("-");return C+this.upcomingInput()+` +`+A+"^"},"showPosition"),test_match:o(function(C,A){var I,D,k;if(this.options.backtrack_lexer&&(k={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(k.yylloc.range=this.yylloc.range.slice(0))),D=C[0].match(/(?:\r\n?|\n).*/g),D&&(this.yylineno+=D.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:D?D[D.length-1].length-D[D.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+C[0].length},this.yytext+=C[0],this.match+=C[0],this.matches=C,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(C[0].length),this.matched+=C[0],I=this.performAction.call(this,this.yy,this,A,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),I)return I;if(this._backtrack){for(var R in k)this[R]=k[R];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var C,A,I,D;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),R=0;RA[0].length)){if(A=I,D=R,this.options.backtrack_lexer){if(C=this.test_match(I,k[R]),C!==!1)return C;if(this._backtrack){A=!1;continue}else return!1}else if(!this.options.flex)break}return A?(C=this.test_match(A,k[D]),C!==!1?C:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var A=this.next();return A||this.lex()},"lex"),begin:o(function(A){this.conditionStack.push(A)},"begin"),popState:o(function(){var A=this.conditionStack.length-1;return A>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(A){return A=this.conditionStack.length-1-Math.abs(A||0),A>=0?this.conditionStack[A]:"INITIAL"},"topState"),pushState:o(function(A){this.begin(A)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(A,I,D,k){var R=k;switch(D){case 0:return this.pushState("shapeData"),I.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:let S=/\n\s*/g;return I.yytext=I.yytext.replace(S,"
    "),24;break;case 4:return 24;case 5:this.popState();break;case 6:return A.getLogger().trace("Found comment",I.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:A.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return A.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:A.getLogger().trace("end icon"),this.popState();break;case 16:return A.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return A.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return A.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return A.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:A.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return A.getLogger().trace("description:",I.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),A.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),A.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),A.getLogger().trace("node end ...",I.yytext),"NODE_DEND";break;case 36:return this.popState(),A.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),A.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),A.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),A.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),A.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return A.getLogger().trace("Long description:",I.yytext),21;break;case 42:return A.getLogger().trace("Long description:",I.yytext),21;break}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return L}();_.lexer=T;function E(){this.yy={}}return o(E,"Parser"),E.prototype=_,_.Parser=E,new E}();LB.parser=LB;H1e=LB});var ol,NB,DB,RB,$tt,Vtt,Y1e,Utt,Htt,Xi,Wtt,Ytt,qtt,Xtt,jtt,Ktt,Qtt,q1e,X1e=M(()=>{"use strict";Vt();fr();ht();hs();V5();ol=[],NB=[],DB=0,RB={},$tt=o(()=>{ol=[],NB=[],DB=0,RB={}},"clear"),Vtt=o(t=>{if(ol.length===0)return null;let e=ol[0].level,r=null;for(let n=ol.length-1;n>=0;n--)if(ol[n].level===e&&!r&&(r=ol[n]),ol[n].levell.parentId===i.id);for(let l of s){let u={id:l.id,parentId:i.id,label:Tr(l.label??"",n),isGroup:!1,ticket:l?.ticket,priority:l?.priority,assigned:l?.assigned,icon:l?.icon,shape:"kanbanItem",level:l.level,rx:5,ry:5,cssStyles:["text-align: left"]};e.push(u)}}return{nodes:e,edges:t,other:{},config:de()}},"getData"),Htt=o((t,e,r,n,i)=>{let a=de(),s=a.mindmap?.padding??ur.mindmap.padding;switch(n){case Xi.ROUNDED_RECT:case Xi.RECT:case Xi.HEXAGON:s*=2}let l={id:Tr(e,a)||"kbn"+DB++,level:t,label:Tr(r,a),width:a.mindmap?.maxNodeWidth??ur.mindmap.maxNodeWidth,padding:s,isGroup:!1};if(i!==void 0){let h;i.includes(` +`)?h=i+` +`:h=`{ +`+i+` +}`;let f=fm(h,{schema:hm});if(f.shape&&(f.shape!==f.shape.toLowerCase()||f.shape.includes("_")))throw new Error(`No such shape: ${f.shape}. Shape names should be lowercase.`);f?.shape&&f.shape==="kanbanItem"&&(l.shape=f?.shape),f?.label&&(l.label=f?.label),f?.icon&&(l.icon=f?.icon.toString()),f?.assigned&&(l.assigned=f?.assigned.toString()),f?.ticket&&(l.ticket=f?.ticket.toString()),f?.priority&&(l.priority=f?.priority)}let u=Vtt(t);u?l.parentId=u.id||"kbn"+DB++:NB.push(l),ol.push(l)},"addNode"),Xi={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Wtt=o((t,e)=>{switch(Y.debug("In get type",t,e),t){case"[":return Xi.RECT;case"(":return e===")"?Xi.ROUNDED_RECT:Xi.CLOUD;case"((":return Xi.CIRCLE;case")":return Xi.CLOUD;case"))":return Xi.BANG;case"{{":return Xi.HEXAGON;default:return Xi.DEFAULT}},"getType"),Ytt=o((t,e)=>{RB[t]=e},"setElementForId"),qtt=o(t=>{if(!t)return;let e=de(),r=ol[ol.length-1];t.icon&&(r.icon=Tr(t.icon,e)),t.class&&(r.cssClasses=Tr(t.class,e))},"decorateNode"),Xtt=o(t=>{switch(t){case Xi.DEFAULT:return"no-border";case Xi.RECT:return"rect";case Xi.ROUNDED_RECT:return"rounded-rect";case Xi.CIRCLE:return"circle";case Xi.CLOUD:return"cloud";case Xi.BANG:return"bang";case Xi.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),jtt=o(()=>Y,"getLogger"),Ktt=o(t=>RB[t],"getElementById"),Qtt={clear:$tt,addNode:Htt,getSections:Y1e,getData:Utt,nodeType:Xi,getType:Wtt,setElementForId:Ytt,decorateNode:qtt,type2Str:Xtt,getLogger:jtt,getElementById:Ktt},q1e=Qtt});var Ztt,j1e,K1e=M(()=>{"use strict";Vt();ht();Hu();ni();hs();K5();sw();Ztt=o(async(t,e,r,n)=>{Y.debug(`Rendering kanban diagram +`+t);let a=n.db.getData(),s=de();s.htmlLabels=!1;let l=Oa(e),u=l.append("g");u.attr("class","sections");let h=l.append("g");h.attr("class","items");let f=a.nodes.filter(v=>v.isGroup),d=0,p=10,m=[],g=25;for(let v of f){let x=s?.kanban?.sectionWidth||200;d=d+1,v.x=x*d+(d-1)*p/2,v.width=x,v.y=0,v.height=x*3,v.rx=5,v.ry=5,v.cssClasses=v.cssClasses+" section-"+d;let b=await mm(u,v);g=Math.max(g,b?.labelBBox?.height),m.push(b)}let y=0;for(let v of f){let x=m[y];y=y+1;let b=s?.kanban?.sectionWidth||200,w=-b*3/2+g,_=w,T=a.nodes.filter(C=>C.parentId===v.id);for(let C of T){if(C.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");C.x=v.x,C.width=b-1.5*p;let I=(await gm(h,C,{config:s})).node().getBBox();C.y=_+I.height/2,await _v(C),_=C.y+I.height/2+p/2}let E=x.cluster.select("rect"),L=Math.max(_-w+3*p,50)+(g-25);E.attr("height",L)}_o(void 0,l,s.mindmap?.padding??ur.kanban.padding,s.mindmap?.useMaxWidth??ur.kanban.useMaxWidth)},"draw"),j1e={draw:Ztt}});var Jtt,ert,Q1e,Z1e=M(()=>{"use strict";To();Jtt=o(t=>{let e="";for(let n=0;nt.darkMode?Bt(n,i):Dt(n,i),"adjuster");for(let n=0;n` + .edge { + stroke-width: 3; + } + ${Jtt(t)} + .section-root rect, .section-root path, .section-root circle, .section-root polygon { + fill: ${t.git0}; + } + .section-root text { + fill: ${t.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .cluster-label, .label { + color: ${t.textColor}; + fill: ${t.textColor}; + } + .kanban-label { + dy: 1em; + alignment-baseline: middle; + text-anchor: middle; + dominant-baseline: middle; + text-align: center; + } +`,"getStyles"),Q1e=ert});var J1e={};vr(J1e,{diagram:()=>trt});var trt,eye=M(()=>{"use strict";W1e();X1e();K1e();Z1e();trt={db:q1e,renderer:j1e,parser:H1e,styles:Q1e}});var MB,ub,nye=M(()=>{"use strict";MB=function(){var t=o(function(l,u,h,f){for(h=h||{},f=l.length;f--;h[l[f]]=u);return h},"o"),e=[1,9],r=[1,10],n=[1,5,10,12],i={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:o(function(u,h,f,d,p,m,g){var y=m.length-1;switch(p){case 7:let v=d.findOrCreateNode(m[y-4].trim().replaceAll('""','"')),x=d.findOrCreateNode(m[y-2].trim().replaceAll('""','"')),b=parseFloat(m[y].trim());d.addLink(v,x,b);break;case 8:case 9:case 11:this.$=m[y];break;case 10:this.$=m[y-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(n,[2,8]),t(n,[2,9]),{19:[1,16]},t(n,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:r},{15:18,16:7,17:8,18:e,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(n,[2,10]),{15:21,16:7,17:8,18:e,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:o(function(u,h){if(h.recoverable)this.trace(u);else{var f=new Error(u);throw f.hash=h,f}},"parseError"),parse:o(function(u){var h=this,f=[0],d=[],p=[null],m=[],g=this.table,y="",v=0,x=0,b=0,w=2,_=1,T=m.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var C in this.yy)Object.prototype.hasOwnProperty.call(this.yy,C)&&(L.yy[C]=this.yy[C]);E.setInput(u,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var A=E.yylloc;m.push(A);var I=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function D(ie){f.length=f.length-2*ie,p.length=p.length-ie,m.length=m.length-ie}o(D,"popStack");function k(){var ie;return ie=d.pop()||E.lex()||_,typeof ie!="number"&&(ie instanceof Array&&(d=ie,ie=d.pop()),ie=h.symbols_[ie]||ie),ie}o(k,"lex");for(var R,S,O,N,P,F,B={},$,z,W,j;;){if(O=f[f.length-1],this.defaultActions[O]?N=this.defaultActions[O]:((R===null||typeof R>"u")&&(R=k()),N=g[O]&&g[O][R]),typeof N>"u"||!N.length||!N[0]){var K="";j=[];for($ in g[O])this.terminals_[$]&&$>w&&j.push("'"+this.terminals_[$]+"'");E.showPosition?K="Parse error on line "+(v+1)+`: +`+E.showPosition()+` +Expecting `+j.join(", ")+", got '"+(this.terminals_[R]||R)+"'":K="Parse error on line "+(v+1)+": Unexpected "+(R==_?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(K,{text:E.match,token:this.terminals_[R]||R,line:E.yylineno,loc:A,expected:j})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+R);switch(N[0]){case 1:f.push(R),p.push(E.yytext),m.push(E.yylloc),f.push(N[1]),R=null,S?(R=S,S=null):(x=E.yyleng,y=E.yytext,v=E.yylineno,A=E.yylloc,b>0&&b--);break;case 2:if(z=this.productions_[N[1]][1],B.$=p[p.length-z],B._$={first_line:m[m.length-(z||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(z||1)].first_column,last_column:m[m.length-1].last_column},I&&(B._$.range=[m[m.length-(z||1)].range[0],m[m.length-1].range[1]]),F=this.performAction.apply(B,[y,x,v,L.yy,N[1],p,m].concat(T)),typeof F<"u")return F;z&&(f=f.slice(0,-1*z*2),p=p.slice(0,-1*z),m=m.slice(0,-1*z)),f.push(this.productions_[N[1]][0]),p.push(B.$),m.push(B._$),W=g[f[f.length-2]][f[f.length-1]],f.push(W);break;case 3:return!0}}return!0},"parse")},a=function(){var l={EOF:1,parseError:o(function(h,f){if(this.yy.parser)this.yy.parser.parseError(h,f);else throw new Error(h)},"parseError"),setInput:o(function(u,h){return this.yy=h||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var h=u.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:o(function(u){var h=u.length,f=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===d.length?this.yylloc.first_column:0)+d[d.length-f.length].length-f[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(u){this.unput(this.match.slice(u))},"less"),pastInput:o(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var u=this.pastInput(),h=new Array(u.length+1).join("-");return u+this.upcomingInput()+` +`+h+"^"},"showPosition"),test_match:o(function(u,h){var f,d,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),d=u[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],f=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var m in p)this[m]=p[m];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,h,f,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),m=0;mh[0].length)){if(h=f,d=m,this.options.backtrack_lexer){if(u=this.test_match(f,p[m]),u!==!1)return u;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(u=this.test_match(h,p[d]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var h=this.next();return h||this.lex()},"lex"),begin:o(function(h){this.conditionStack.push(h)},"begin"),popState:o(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:o(function(h){this.begin(h)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(h,f,d,p){var m=p;switch(d){case 0:return this.pushState("csv"),4;break;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;break;case 5:return 20;case 6:return this.popState("escaped_text"),18;break;case 7:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return l}();i.lexer=a;function s(){this.yy={}}return o(s,"Parser"),s.prototype=i,i.Parser=s,new s}();MB.parser=MB;ub=MB});var H6,W6,U6,art,IB,srt,OB,ort,lrt,crt,urt,iye,aye=M(()=>{"use strict";Vt();fr();ki();H6=[],W6=[],U6=new Map,art=o(()=>{H6=[],W6=[],U6=new Map,_r()},"clear"),IB=class{constructor(e,r,n=0){this.source=e;this.target=r;this.value=n}static{o(this,"SankeyLink")}},srt=o((t,e,r)=>{H6.push(new IB(t,e,r))},"addLink"),OB=class{constructor(e){this.ID=e}static{o(this,"SankeyNode")}},ort=o(t=>{t=je.sanitizeText(t,de());let e=U6.get(t);return e===void 0&&(e=new OB(t),U6.set(t,e),W6.push(e)),e},"findOrCreateNode"),lrt=o(()=>W6,"getNodes"),crt=o(()=>H6,"getLinks"),urt=o(()=>({nodes:W6.map(t=>({id:t.ID})),links:H6.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),iye={nodesMap:U6,getConfig:o(()=>de().sankey,"getConfig"),getNodes:lrt,getLinks:crt,getGraph:urt,addLink:srt,findOrCreateNode:ort,getAccTitle:Pr,setAccTitle:Rr,getAccDescription:Fr,setAccDescription:Br,getDiagramTitle:Jr,setDiagramTitle:ln,clear:art}});function hb(t,e){let r;if(e===void 0)for(let n of t)n!=null&&(r=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r=i)&&(r=i)}return r}var sye=M(()=>{"use strict";o(hb,"max")});function T1(t,e){let r;if(e===void 0)for(let n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}var oye=M(()=>{"use strict";o(T1,"min")});function k1(t,e){let r=0;if(e===void 0)for(let n of t)(n=+n)&&(r+=n);else{let n=-1;for(let i of t)(i=+e(i,++n,t))&&(r+=i)}return r}var lye=M(()=>{"use strict";o(k1,"sum")});var PB=M(()=>{"use strict";sye();oye();lye()});function hrt(t){return t.target.depth}function BB(t){return t.depth}function FB(t,e){return e-1-t.height}function fb(t,e){return t.sourceLinks.length?t.depth:e-1}function zB(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?T1(t.sourceLinks,hrt)-1:0}var GB=M(()=>{"use strict";PB();o(hrt,"targetDepth");o(BB,"left");o(FB,"right");o(fb,"justify");o(zB,"center")});function E1(t){return function(){return t}}var cye=M(()=>{"use strict";o(E1,"constant")});function uye(t,e){return Y6(t.source,e.source)||t.index-e.index}function hye(t,e){return Y6(t.target,e.target)||t.index-e.index}function Y6(t,e){return t.y0-e.y0}function $B(t){return t.value}function frt(t){return t.index}function drt(t){return t.nodes}function prt(t){return t.links}function fye(t,e){let r=t.get(e);if(!r)throw new Error("missing: "+e);return r}function dye({nodes:t}){for(let e of t){let r=e.y0,n=r;for(let i of e.sourceLinks)i.y0=r+i.width/2,r+=i.width;for(let i of e.targetLinks)i.y1=n+i.width/2,n+=i.width}}function q6(){let t=0,e=0,r=1,n=1,i=24,a=8,s,l=frt,u=fb,h,f,d=drt,p=prt,m=6;function g(){let O={nodes:d.apply(null,arguments),links:p.apply(null,arguments)};return y(O),v(O),x(O),b(O),T(O),dye(O),O}o(g,"sankey"),g.update=function(O){return dye(O),O},g.nodeId=function(O){return arguments.length?(l=typeof O=="function"?O:E1(O),g):l},g.nodeAlign=function(O){return arguments.length?(u=typeof O=="function"?O:E1(O),g):u},g.nodeSort=function(O){return arguments.length?(h=O,g):h},g.nodeWidth=function(O){return arguments.length?(i=+O,g):i},g.nodePadding=function(O){return arguments.length?(a=s=+O,g):a},g.nodes=function(O){return arguments.length?(d=typeof O=="function"?O:E1(O),g):d},g.links=function(O){return arguments.length?(p=typeof O=="function"?O:E1(O),g):p},g.linkSort=function(O){return arguments.length?(f=O,g):f},g.size=function(O){return arguments.length?(t=e=0,r=+O[0],n=+O[1],g):[r-t,n-e]},g.extent=function(O){return arguments.length?(t=+O[0][0],r=+O[1][0],e=+O[0][1],n=+O[1][1],g):[[t,e],[r,n]]},g.iterations=function(O){return arguments.length?(m=+O,g):m};function y({nodes:O,links:N}){for(let[F,B]of O.entries())B.index=F,B.sourceLinks=[],B.targetLinks=[];let P=new Map(O.map((F,B)=>[l(F,B,O),F]));for(let[F,B]of N.entries()){B.index=F;let{source:$,target:z}=B;typeof $!="object"&&($=B.source=fye(P,$)),typeof z!="object"&&(z=B.target=fye(P,z)),$.sourceLinks.push(B),z.targetLinks.push(B)}if(f!=null)for(let{sourceLinks:F,targetLinks:B}of O)F.sort(f),B.sort(f)}o(y,"computeNodeLinks");function v({nodes:O}){for(let N of O)N.value=N.fixedValue===void 0?Math.max(k1(N.sourceLinks,$B),k1(N.targetLinks,$B)):N.fixedValue}o(v,"computeNodeValues");function x({nodes:O}){let N=O.length,P=new Set(O),F=new Set,B=0;for(;P.size;){for(let $ of P){$.depth=B;for(let{target:z}of $.sourceLinks)F.add(z)}if(++B>N)throw new Error("circular link");P=F,F=new Set}}o(x,"computeNodeDepths");function b({nodes:O}){let N=O.length,P=new Set(O),F=new Set,B=0;for(;P.size;){for(let $ of P){$.height=B;for(let{source:z}of $.targetLinks)F.add(z)}if(++B>N)throw new Error("circular link");P=F,F=new Set}}o(b,"computeNodeHeights");function w({nodes:O}){let N=hb(O,B=>B.depth)+1,P=(r-t-i)/(N-1),F=new Array(N);for(let B of O){let $=Math.max(0,Math.min(N-1,Math.floor(u.call(null,B,N))));B.layer=$,B.x0=t+$*P,B.x1=B.x0+i,F[$]?F[$].push(B):F[$]=[B]}if(h)for(let B of F)B.sort(h);return F}o(w,"computeNodeLayers");function _(O){let N=T1(O,P=>(n-e-(P.length-1)*s)/k1(P,$B));for(let P of O){let F=e;for(let B of P){B.y0=F,B.y1=F+B.value*N,F=B.y1+s;for(let $ of B.sourceLinks)$.width=$.value*N}F=(n-F+s)/(P.length+1);for(let B=0;BP.length)-1)),_(N);for(let P=0;P0))continue;let K=(W/j-z.y0)*N;z.y0+=K,z.y1+=K,D(z)}h===void 0&&$.sort(Y6),C($,P)}}o(E,"relaxLeftToRight");function L(O,N,P){for(let F=O.length,B=F-2;B>=0;--B){let $=O[B];for(let z of $){let W=0,j=0;for(let{target:ie,value:Q}of z.sourceLinks){let ee=Q*(ie.layer-z.layer);W+=S(z,ie)*ee,j+=ee}if(!(j>0))continue;let K=(W/j-z.y0)*N;z.y0+=K,z.y1+=K,D(z)}h===void 0&&$.sort(Y6),C($,P)}}o(L,"relaxRightToLeft");function C(O,N){let P=O.length>>1,F=O[P];I(O,F.y0-s,P-1,N),A(O,F.y1+s,P+1,N),I(O,n,O.length-1,N),A(O,e,0,N)}o(C,"resolveCollisions");function A(O,N,P,F){for(;P1e-6&&(B.y0+=$,B.y1+=$),N=B.y1+s}}o(A,"resolveCollisionsTopToBottom");function I(O,N,P,F){for(;P>=0;--P){let B=O[P],$=(B.y1-N)*F;$>1e-6&&(B.y0-=$,B.y1-=$),N=B.y0-s}}o(I,"resolveCollisionsBottomToTop");function D({sourceLinks:O,targetLinks:N}){if(f===void 0){for(let{source:{sourceLinks:P}}of N)P.sort(hye);for(let{target:{targetLinks:P}}of O)P.sort(uye)}}o(D,"reorderNodeLinks");function k(O){if(f===void 0)for(let{sourceLinks:N,targetLinks:P}of O)N.sort(hye),P.sort(uye)}o(k,"reorderLinks");function R(O,N){let P=O.y0-(O.sourceLinks.length-1)*s/2;for(let{target:F,width:B}of O.sourceLinks){if(F===N)break;P+=B+s}for(let{source:F,width:B}of N.targetLinks){if(F===O)break;P-=B}return P}o(R,"targetTop");function S(O,N){let P=N.y0-(N.targetLinks.length-1)*s/2;for(let{source:F,width:B}of N.targetLinks){if(F===O)break;P+=B+s}for(let{target:F,width:B}of O.sourceLinks){if(F===N)break;P-=B}return P}return o(S,"sourceTop"),g}var pye=M(()=>{"use strict";PB();GB();cye();o(uye,"ascendingSourceBreadth");o(hye,"ascendingTargetBreadth");o(Y6,"ascendingBreadth");o($B,"value");o(frt,"defaultId");o(drt,"defaultNodes");o(prt,"defaultLinks");o(fye,"find");o(dye,"computeLinkBreadths");o(q6,"Sankey")});function HB(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function mye(){return new HB}var VB,UB,q0,mrt,WB,gye=M(()=>{"use strict";VB=Math.PI,UB=2*VB,q0=1e-6,mrt=UB-q0;o(HB,"Path");o(mye,"path");HB.prototype=mye.prototype={constructor:HB,moveTo:o(function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},"moveTo"),closePath:o(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:o(function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},"lineTo"),quadraticCurveTo:o(function(t,e,r,n){this._+="Q"+ +t+","+ +e+","+(this._x1=+r)+","+(this._y1=+n)},"quadraticCurveTo"),bezierCurveTo:o(function(t,e,r,n,i,a){this._+="C"+ +t+","+ +e+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},"bezierCurveTo"),arcTo:o(function(t,e,r,n,i){t=+t,e=+e,r=+r,n=+n,i=+i;var a=this._x1,s=this._y1,l=r-t,u=n-e,h=a-t,f=s-e,d=h*h+f*f;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(d>q0)if(!(Math.abs(f*l-u*h)>q0)||!i)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var p=r-a,m=n-s,g=l*l+u*u,y=p*p+m*m,v=Math.sqrt(g),x=Math.sqrt(d),b=i*Math.tan((VB-Math.acos((g+d-y)/(2*v*x)))/2),w=b/x,_=b/v;Math.abs(w-1)>q0&&(this._+="L"+(t+w*h)+","+(e+w*f)),this._+="A"+i+","+i+",0,0,"+ +(f*p>h*m)+","+(this._x1=t+_*l)+","+(this._y1=e+_*u)}},"arcTo"),arc:o(function(t,e,r,n,i,a){t=+t,e=+e,r=+r,a=!!a;var s=r*Math.cos(n),l=r*Math.sin(n),u=t+s,h=e+l,f=1^a,d=a?n-i:i-n;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+u+","+h:(Math.abs(this._x1-u)>q0||Math.abs(this._y1-h)>q0)&&(this._+="L"+u+","+h),r&&(d<0&&(d=d%UB+UB),d>mrt?this._+="A"+r+","+r+",0,1,"+f+","+(t-s)+","+(e-l)+"A"+r+","+r+",0,1,"+f+","+(this._x1=u)+","+(this._y1=h):d>q0&&(this._+="A"+r+","+r+",0,"+ +(d>=VB)+","+f+","+(this._x1=t+r*Math.cos(i))+","+(this._y1=e+r*Math.sin(i))))},"arc"),rect:o(function(t,e,r,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},"rect"),toString:o(function(){return this._},"toString")};WB=mye});var yye=M(()=>{"use strict";gye()});function X6(t){return o(function(){return t},"constant")}var vye=M(()=>{"use strict";o(X6,"default")});function xye(t){return t[0]}function bye(t){return t[1]}var wye=M(()=>{"use strict";o(xye,"x");o(bye,"y")});var Tye,kye=M(()=>{"use strict";Tye=Array.prototype.slice});function grt(t){return t.source}function yrt(t){return t.target}function vrt(t){var e=grt,r=yrt,n=xye,i=bye,a=null;function s(){var l,u=Tye.call(arguments),h=e.apply(this,u),f=r.apply(this,u);if(a||(a=l=WB()),t(a,+n.apply(this,(u[0]=h,u)),+i.apply(this,u),+n.apply(this,(u[0]=f,u)),+i.apply(this,u)),l)return a=null,l+""||null}return o(s,"link"),s.source=function(l){return arguments.length?(e=l,s):e},s.target=function(l){return arguments.length?(r=l,s):r},s.x=function(l){return arguments.length?(n=typeof l=="function"?l:X6(+l),s):n},s.y=function(l){return arguments.length?(i=typeof l=="function"?l:X6(+l),s):i},s.context=function(l){return arguments.length?(a=l??null,s):a},s}function xrt(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function YB(){return vrt(xrt)}var Eye=M(()=>{"use strict";yye();kye();vye();wye();o(grt,"linkSource");o(yrt,"linkTarget");o(vrt,"link");o(xrt,"curveHorizontal");o(YB,"linkHorizontal")});var Sye=M(()=>{"use strict";Eye()});function brt(t){return[t.source.x1,t.y0]}function wrt(t){return[t.target.x0,t.y1]}function j6(){return YB().source(brt).target(wrt)}var Cye=M(()=>{"use strict";Sye();o(brt,"horizontalSource");o(wrt,"horizontalTarget");o(j6,"default")});var Aye=M(()=>{"use strict";pye();GB();Cye()});var db,_ye=M(()=>{"use strict";db=class t{static{o(this,"Uid")}static{this.count=0}static next(e){return new t(e+ ++t.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return"url("+this.href+")"}}});var Trt,krt,Lye,Dye=M(()=>{"use strict";Vt();mr();Aye();ni();_ye();Trt={left:BB,right:FB,center:zB,justify:fb},krt=o(function(t,e,r,n){let{securityLevel:i,sankey:a}=de(),s=S4.sankey,l;i==="sandbox"&&(l=ze("#i"+e));let u=i==="sandbox"?ze(l.nodes()[0].contentDocument.body):ze("body"),h=i==="sandbox"?u.select(`[id="${e}"]`):ze(`[id="${e}"]`),f=a?.width??s.width,d=a?.height??s.width,p=a?.useMaxWidth??s.useMaxWidth,m=a?.nodeAlignment??s.nodeAlignment,g=a?.prefix??s.prefix,y=a?.suffix??s.suffix,v=a?.showValues??s.showValues,x=n.db.getGraph(),b=Trt[m];q6().nodeId(I=>I.id).nodeWidth(10).nodePadding(10+(v?15:0)).nodeAlign(b).extent([[0,0],[f,d]])(x);let T=du(Z8);h.append("g").attr("class","nodes").selectAll(".node").data(x.nodes).join("g").attr("class","node").attr("id",I=>(I.uid=db.next("node-")).id).attr("transform",function(I){return"translate("+I.x0+","+I.y0+")"}).attr("x",I=>I.x0).attr("y",I=>I.y0).append("rect").attr("height",I=>I.y1-I.y0).attr("width",I=>I.x1-I.x0).attr("fill",I=>T(I.id));let E=o(({id:I,value:D})=>v?`${I} +${g}${Math.round(D*100)/100}${y}`:I,"getText");h.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(x.nodes).join("text").attr("x",I=>I.x0(I.y1+I.y0)/2).attr("dy",`${v?"0":"0.35"}em`).attr("text-anchor",I=>I.x0(D.uid=db.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",D=>D.source.x1).attr("x2",D=>D.target.x0);I.append("stop").attr("offset","0%").attr("stop-color",D=>T(D.source.id)),I.append("stop").attr("offset","100%").attr("stop-color",D=>T(D.target.id))}let A;switch(C){case"gradient":A=o(I=>I.uid,"coloring");break;case"source":A=o(I=>T(I.source.id),"coloring");break;case"target":A=o(I=>T(I.target.id),"coloring");break;default:A=C}L.append("path").attr("d",j6()).attr("stroke",A).attr("stroke-width",I=>Math.max(1,I.width)),_o(void 0,h,0,p)},"draw"),Lye={draw:krt}});var Nye,Rye=M(()=>{"use strict";Nye=o(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` +`).trim(),"prepareTextForParsing")});var Mye={};vr(Mye,{diagram:()=>Srt});var Ert,Srt,Iye=M(()=>{"use strict";nye();aye();Dye();Rye();Ert=ub.parse.bind(ub);ub.parse=t=>Ert(Nye(t));Srt={parser:ub,db:iye,renderer:Lye}});var Bye,qB,Lrt,Drt,Nrt,Rrt,Mrt,Rf,XB=M(()=>{"use strict";Ua();hs();hr();ki();Bye={packet:[]},qB=structuredClone(Bye),Lrt=ur.packet,Drt=o(()=>{let t=ws({...Lrt,...Sr().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),Nrt=o(()=>qB.packet,"getPacket"),Rrt=o(t=>{t.length>0&&qB.packet.push(t)},"pushWord"),Mrt=o(()=>{_r(),qB=structuredClone(Bye)},"clear"),Rf={pushWord:Rrt,getPacket:Nrt,getConfig:Drt,clear:Mrt,setAccTitle:Rr,getAccTitle:Pr,setDiagramTitle:ln,getDiagramTitle:Jr,getAccDescription:Fr,setAccDescription:Br}});var Irt,Ort,Prt,Fye,zye=M(()=>{"use strict";Ng();ht();ox();XB();Irt=1e4,Ort=o(t=>{lf(t,Rf);let e=-1,r=[],n=1,{bitsPerRow:i}=Rf.getConfig();for(let{start:a,end:s,label:l}of t.blocks){if(s&&s{if(t.end===void 0&&(t.end=t.start),t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*r?[t,void 0]:[{start:t.start,end:e*r-1,label:t.label},{start:e*r,end:t.end,label:t.label}]},"getNextFittingBlock"),Fye={parse:o(async t=>{let e=await Gl("packet",t);Y.debug(e),Ort(e)},"parse")}});var Brt,Frt,Gye,$ye=M(()=>{"use strict";Hu();ni();Brt=o((t,e,r,n)=>{let i=n.db,a=i.getConfig(),{rowHeight:s,paddingY:l,bitWidth:u,bitsPerRow:h}=a,f=i.getPacket(),d=i.getDiagramTitle(),p=s+l,m=p*(f.length+1)-(d?0:s),g=u*h+2,y=Oa(e);y.attr("viewbox",`0 0 ${g} ${m}`),Zr(y,m,g,a.useMaxWidth);for(let[v,x]of f.entries())Frt(y,x,v,a);y.append("text").text(d).attr("x",g/2).attr("y",m-p/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),Frt=o((t,e,r,{rowHeight:n,paddingX:i,paddingY:a,bitWidth:s,bitsPerRow:l,showBits:u})=>{let h=t.append("g"),f=r*(n+a)+a;for(let d of e){let p=d.start%l*s+1,m=(d.end-d.start+1)*s-i;if(h.append("rect").attr("x",p).attr("y",f).attr("width",m).attr("height",n).attr("class","packetBlock"),h.append("text").attr("x",p+m/2).attr("y",f+n/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(d.label),!u)continue;let g=d.end===d.start,y=f-2;h.append("text").attr("x",p+(g?m/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",g?"middle":"start").text(d.start),g||h.append("text").attr("x",p+m).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(d.end)}},"drawWord"),Gye={draw:Brt}});var zrt,Vye,Uye=M(()=>{"use strict";hr();zrt={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},Vye=o(({packet:t}={})=>{let e=ws(zrt,t);return` + .packetByte { + font-size: ${e.byteFontSize}; + } + .packetByte.start { + fill: ${e.startByteColor}; + } + .packetByte.end { + fill: ${e.endByteColor}; + } + .packetLabel { + fill: ${e.labelColor}; + font-size: ${e.labelFontSize}; + } + .packetTitle { + fill: ${e.titleColor}; + font-size: ${e.titleFontSize}; + } + .packetBlock { + stroke: ${e.blockStrokeColor}; + stroke-width: ${e.blockStrokeWidth}; + fill: ${e.blockFillColor}; + } + `},"styles")});var Hye={};vr(Hye,{diagram:()=>Grt});var Grt,Wye=M(()=>{"use strict";XB();zye();$ye();Uye();Grt={parser:Fye,db:Rf,renderer:Gye,styles:Vye}});var jB,Xye,jye=M(()=>{"use strict";jB=function(){var t=o(function(w,_,T,E){for(T=T||{},E=w.length;E--;T[w[E]]=_);return T},"o"),e=[1,7],r=[1,13],n=[1,14],i=[1,15],a=[1,19],s=[1,16],l=[1,17],u=[1,18],h=[8,30],f=[8,21,28,29,30,31,32,40,44,47],d=[1,23],p=[1,24],m=[8,15,16,21,28,29,30,31,32,40,44,47],g=[8,15,16,21,27,28,29,30,31,32,40,44,47],y=[1,49],v={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:o(function(_,T,E,L,C,A,I){var D=A.length-1;switch(C){case 4:L.getLogger().debug("Rule: separator (NL) ");break;case 5:L.getLogger().debug("Rule: separator (Space) ");break;case 6:L.getLogger().debug("Rule: separator (EOF) ");break;case 7:L.getLogger().debug("Rule: hierarchy: ",A[D-1]),L.setHierarchy(A[D-1]);break;case 8:L.getLogger().debug("Stop NL ");break;case 9:L.getLogger().debug("Stop EOF ");break;case 10:L.getLogger().debug("Stop NL2 ");break;case 11:L.getLogger().debug("Stop EOF2 ");break;case 12:L.getLogger().debug("Rule: statement: ",A[D]),typeof A[D].length=="number"?this.$=A[D]:this.$=[A[D]];break;case 13:L.getLogger().debug("Rule: statement #2: ",A[D-1]),this.$=[A[D-1]].concat(A[D]);break;case 14:L.getLogger().debug("Rule: link: ",A[D],_),this.$={edgeTypeStr:A[D],label:""};break;case 15:L.getLogger().debug("Rule: LABEL link: ",A[D-3],A[D-1],A[D]),this.$={edgeTypeStr:A[D],label:A[D-1]};break;case 18:let k=parseInt(A[D]),R=L.generateId();this.$={id:R,type:"space",label:"",width:k,children:[]};break;case 23:L.getLogger().debug("Rule: (nodeStatement link node) ",A[D-2],A[D-1],A[D]," typestr: ",A[D-1].edgeTypeStr);let S=L.edgeStrToEdgeData(A[D-1].edgeTypeStr);this.$=[{id:A[D-2].id,label:A[D-2].label,type:A[D-2].type,directions:A[D-2].directions},{id:A[D-2].id+"-"+A[D].id,start:A[D-2].id,end:A[D].id,label:A[D-1].label,type:"edge",directions:A[D].directions,arrowTypeEnd:S,arrowTypeStart:"arrow_open"},{id:A[D].id,label:A[D].label,type:L.typeStr2Type(A[D].typeStr),directions:A[D].directions}];break;case 24:L.getLogger().debug("Rule: nodeStatement (abc88 node size) ",A[D-1],A[D]),this.$={id:A[D-1].id,label:A[D-1].label,type:L.typeStr2Type(A[D-1].typeStr),directions:A[D-1].directions,widthInColumns:parseInt(A[D],10)};break;case 25:L.getLogger().debug("Rule: nodeStatement (node) ",A[D]),this.$={id:A[D].id,label:A[D].label,type:L.typeStr2Type(A[D].typeStr),directions:A[D].directions,widthInColumns:1};break;case 26:L.getLogger().debug("APA123",this?this:"na"),L.getLogger().debug("COLUMNS: ",A[D]),this.$={type:"column-setting",columns:A[D]==="auto"?-1:parseInt(A[D])};break;case 27:L.getLogger().debug("Rule: id-block statement : ",A[D-2],A[D-1]);let O=L.generateId();this.$={...A[D-2],type:"composite",children:A[D-1]};break;case 28:L.getLogger().debug("Rule: blockStatement : ",A[D-2],A[D-1],A[D]);let N=L.generateId();this.$={id:N,type:"composite",label:"",children:A[D-1]};break;case 29:L.getLogger().debug("Rule: node (NODE_ID separator): ",A[D]),this.$={id:A[D]};break;case 30:L.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",A[D-1],A[D]),this.$={id:A[D-1],label:A[D].label,typeStr:A[D].typeStr,directions:A[D].directions};break;case 31:L.getLogger().debug("Rule: dirList: ",A[D]),this.$=[A[D]];break;case 32:L.getLogger().debug("Rule: dirList: ",A[D-1],A[D]),this.$=[A[D-1]].concat(A[D]);break;case 33:L.getLogger().debug("Rule: nodeShapeNLabel: ",A[D-2],A[D-1],A[D]),this.$={typeStr:A[D-2]+A[D],label:A[D-1]};break;case 34:L.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",A[D-3],A[D-2]," #3:",A[D-1],A[D]),this.$={typeStr:A[D-3]+A[D],label:A[D-2],directions:A[D-1]};break;case 35:case 36:this.$={type:"classDef",id:A[D-1].trim(),css:A[D].trim()};break;case 37:this.$={type:"applyClass",id:A[D-1].trim(),styleClass:A[D].trim()};break;case 38:this.$={type:"applyStyles",id:A[D-1].trim(),stylesStr:A[D].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:u},{8:[1,20]},t(h,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:e,28:r,29:n,31:i,32:a,40:s,44:l,47:u}),t(f,[2,16],{14:22,15:d,16:p}),t(f,[2,17]),t(f,[2,18]),t(f,[2,19]),t(f,[2,20]),t(f,[2,21]),t(f,[2,22]),t(m,[2,25],{27:[1,25]}),t(f,[2,26]),{19:26,26:12,32:a},{11:27,13:4,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:u},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},t(g,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},t(h,[2,13]),{26:35,32:a},{32:[2,14]},{17:[1,36]},t(m,[2,24]),{11:37,13:4,14:22,15:d,16:p,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:u},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},t(g,[2,30]),{18:[1,43]},{18:[1,44]},t(m,[2,23]),{18:[1,45]},{30:[1,46]},t(f,[2,28]),t(f,[2,35]),t(f,[2,36]),t(f,[2,37]),t(f,[2,38]),{37:[1,47]},{34:48,35:y},{15:[1,50]},t(f,[2,27]),t(g,[2,33]),{39:[1,51]},{34:52,35:y,39:[2,31]},{32:[2,15]},t(g,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:o(function(_,T){if(T.recoverable)this.trace(_);else{var E=new Error(_);throw E.hash=T,E}},"parseError"),parse:o(function(_){var T=this,E=[0],L=[],C=[null],A=[],I=this.table,D="",k=0,R=0,S=0,O=2,N=1,P=A.slice.call(arguments,1),F=Object.create(this.lexer),B={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(B.yy[$]=this.yy[$]);F.setInput(_,B.yy),B.yy.lexer=F,B.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var z=F.yylloc;A.push(z);var W=F.options&&F.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j(oe){E.length=E.length-2*oe,C.length=C.length-oe,A.length=A.length-oe}o(j,"popStack");function K(){var oe;return oe=L.pop()||F.lex()||N,typeof oe!="number"&&(oe instanceof Array&&(L=oe,oe=L.pop()),oe=T.symbols_[oe]||oe),oe}o(K,"lex");for(var ie,Q,ee,J,H,q,Z={},ae,ue,ce,te;;){if(ee=E[E.length-1],this.defaultActions[ee]?J=this.defaultActions[ee]:((ie===null||typeof ie>"u")&&(ie=K()),J=I[ee]&&I[ee][ie]),typeof J>"u"||!J.length||!J[0]){var De="";te=[];for(ae in I[ee])this.terminals_[ae]&&ae>O&&te.push("'"+this.terminals_[ae]+"'");F.showPosition?De="Parse error on line "+(k+1)+`: +`+F.showPosition()+` +Expecting `+te.join(", ")+", got '"+(this.terminals_[ie]||ie)+"'":De="Parse error on line "+(k+1)+": Unexpected "+(ie==N?"end of input":"'"+(this.terminals_[ie]||ie)+"'"),this.parseError(De,{text:F.match,token:this.terminals_[ie]||ie,line:F.yylineno,loc:z,expected:te})}if(J[0]instanceof Array&&J.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ee+", token: "+ie);switch(J[0]){case 1:E.push(ie),C.push(F.yytext),A.push(F.yylloc),E.push(J[1]),ie=null,Q?(ie=Q,Q=null):(R=F.yyleng,D=F.yytext,k=F.yylineno,z=F.yylloc,S>0&&S--);break;case 2:if(ue=this.productions_[J[1]][1],Z.$=C[C.length-ue],Z._$={first_line:A[A.length-(ue||1)].first_line,last_line:A[A.length-1].last_line,first_column:A[A.length-(ue||1)].first_column,last_column:A[A.length-1].last_column},W&&(Z._$.range=[A[A.length-(ue||1)].range[0],A[A.length-1].range[1]]),q=this.performAction.apply(Z,[D,R,k,B.yy,J[1],C,A].concat(P)),typeof q<"u")return q;ue&&(E=E.slice(0,-1*ue*2),C=C.slice(0,-1*ue),A=A.slice(0,-1*ue)),E.push(this.productions_[J[1]][0]),C.push(Z.$),A.push(Z._$),ce=I[E[E.length-2]][E[E.length-1]],E.push(ce);break;case 3:return!0}}return!0},"parse")},x=function(){var w={EOF:1,parseError:o(function(T,E){if(this.yy.parser)this.yy.parser.parseError(T,E);else throw new Error(T)},"parseError"),setInput:o(function(_,T){return this.yy=T||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var T=_.match(/(?:\r\n?|\n).*/g);return T?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},"input"),unput:o(function(_){var T=_.length,E=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-T),this.offset-=T;var L=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===L.length?this.yylloc.first_column:0)+L[L.length-E.length].length-E[0].length:this.yylloc.first_column-T},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-T]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(_){this.unput(this.match.slice(_))},"less"),pastInput:o(function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var _=this.pastInput(),T=new Array(_.length+1).join("-");return _+this.upcomingInput()+` +`+T+"^"},"showPosition"),test_match:o(function(_,T){var E,L,C;if(this.options.backtrack_lexer&&(C={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(C.yylloc.range=this.yylloc.range.slice(0))),L=_[0].match(/(?:\r\n?|\n).*/g),L&&(this.yylineno+=L.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:L?L[L.length-1].length-L[L.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_[0].length),this.matched+=_[0],E=this.performAction.call(this,this.yy,this,T,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),E)return E;if(this._backtrack){for(var A in C)this[A]=C[A];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,T,E,L;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),A=0;AT[0].length)){if(T=E,L=A,this.options.backtrack_lexer){if(_=this.test_match(E,C[A]),_!==!1)return _;if(this._backtrack){T=!1;continue}else return!1}else if(!this.options.flex)break}return T?(_=this.test_match(T,C[L]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var T=this.next();return T||this.lex()},"lex"),begin:o(function(T){this.conditionStack.push(T)},"begin"),popState:o(function(){var T=this.conditionStack.length-1;return T>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(T){return T=this.conditionStack.length-1-Math.abs(T||0),T>=0?this.conditionStack[T]:"INITIAL"},"topState"),pushState:o(function(T){this.begin(T)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(T,E,L,C){var A=C;switch(L){case 0:return 10;case 1:return T.getLogger().debug("Found space-block"),31;break;case 2:return T.getLogger().debug("Found nl-block"),31;break;case 3:return T.getLogger().debug("Found space-block"),29;break;case 4:T.getLogger().debug(".",E.yytext);break;case 5:T.getLogger().debug("_",E.yytext);break;case 6:return 5;case 7:return E.yytext=-1,28;break;case 8:return E.yytext=E.yytext.replace(/columns\s+/,""),T.getLogger().debug("COLUMNS (LEX)",E.yytext),28;break;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:T.getLogger().debug("LEX: POPPING STR:",E.yytext),this.popState();break;case 14:return T.getLogger().debug("LEX: STR end:",E.yytext),"STR";break;case 15:return E.yytext=E.yytext.replace(/space\:/,""),T.getLogger().debug("SPACE NUM (LEX)",E.yytext),21;break;case 16:return E.yytext="1",T.getLogger().debug("COLUMNS (LEX)",E.yytext),21;break;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;break;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 22:return this.popState(),this.pushState("CLASSDEFID"),41;break;case 23:return this.popState(),42;break;case 24:return this.pushState("CLASS"),44;break;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;break;case 26:return this.popState(),46;break;case 27:return this.pushState("STYLE_STMNT"),47;break;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;break;case 29:return this.popState(),49;break;case 30:return this.pushState("acc_title"),"acc_title";break;case 31:return this.popState(),"acc_title_value";break;case 32:return this.pushState("acc_descr"),"acc_descr";break;case 33:return this.popState(),"acc_descr_value";break;case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 40:return this.popState(),T.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 41:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 43:return this.popState(),T.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 44:return this.popState(),T.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 45:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 46:return this.popState(),T.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 47:return this.popState(),T.getLogger().debug("Lex: ("),"NODE_DEND";break;case 48:return this.popState(),T.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 49:return this.popState(),T.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),T.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 51:return this.popState(),T.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 52:return this.popState(),T.getLogger().debug("Lex: )"),"NODE_DEND";break;case 53:return this.popState(),T.getLogger().debug("Lex: ]>"),"NODE_DEND";break;case 54:return this.popState(),T.getLogger().debug("Lex: ]"),"NODE_DEND";break;case 55:return T.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;break;case 56:return T.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;break;case 57:return T.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;break;case 58:return T.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;break;case 59:return T.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;break;case 60:return T.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;break;case 61:return T.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;break;case 62:return T.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;break;case 63:return T.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;break;case 64:return T.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;break;case 65:return T.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;break;case 66:return this.pushState("NODE"),36;break;case 67:return this.pushState("NODE"),36;break;case 68:return this.pushState("NODE"),36;break;case 69:return this.pushState("NODE"),36;break;case 70:return this.pushState("NODE"),36;break;case 71:return this.pushState("NODE"),36;break;case 72:return this.pushState("NODE"),36;break;case 73:return T.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;break;case 74:return this.pushState("BLOCK_ARROW"),T.getLogger().debug("LEX ARR START"),38;break;case 75:return T.getLogger().debug("Lex: NODE_ID",E.yytext),32;break;case 76:return T.getLogger().debug("Lex: EOF",E.yytext),8;break;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:T.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:T.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return T.getLogger().debug("LEX: NODE_DESCR:",E.yytext),"NODE_DESCR";break;case 84:T.getLogger().debug("LEX POPPING"),this.popState();break;case 85:T.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return E.yytext=E.yytext.replace(/^,\s*/,""),T.getLogger().debug("Lex (right): dir:",E.yytext),"DIR";break;case 87:return E.yytext=E.yytext.replace(/^,\s*/,""),T.getLogger().debug("Lex (left):",E.yytext),"DIR";break;case 88:return E.yytext=E.yytext.replace(/^,\s*/,""),T.getLogger().debug("Lex (x):",E.yytext),"DIR";break;case 89:return E.yytext=E.yytext.replace(/^,\s*/,""),T.getLogger().debug("Lex (y):",E.yytext),"DIR";break;case 90:return E.yytext=E.yytext.replace(/^,\s*/,""),T.getLogger().debug("Lex (up):",E.yytext),"DIR";break;case 91:return E.yytext=E.yytext.replace(/^,\s*/,""),T.getLogger().debug("Lex (down):",E.yytext),"DIR";break;case 92:return E.yytext="]>",T.getLogger().debug("Lex (ARROW_DIR end):",E.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";break;case 93:return T.getLogger().debug("Lex: LINK","#"+E.yytext+"#"),15;break;case 94:return T.getLogger().debug("Lex: LINK",E.yytext),15;break;case 95:return T.getLogger().debug("Lex: LINK",E.yytext),15;break;case 96:return T.getLogger().debug("Lex: LINK",E.yytext),15;break;case 97:return T.getLogger().debug("Lex: START_LINK",E.yytext),this.pushState("LLABEL"),16;break;case 98:return T.getLogger().debug("Lex: START_LINK",E.yytext),this.pushState("LLABEL"),16;break;case 99:return T.getLogger().debug("Lex: START_LINK",E.yytext),this.pushState("LLABEL"),16;break;case 100:this.pushState("md_string");break;case 101:return T.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";break;case 102:return this.popState(),T.getLogger().debug("Lex: LINK","#"+E.yytext+"#"),15;break;case 103:return this.popState(),T.getLogger().debug("Lex: LINK",E.yytext),15;break;case 104:return this.popState(),T.getLogger().debug("Lex: LINK",E.yytext),15;break;case 105:return T.getLogger().debug("Lex: COLON",E.yytext),E.yytext=E.yytext.slice(1),27;break}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};return w}();v.lexer=x;function b(){this.yy={}}return o(b,"Parser"),b.prototype=v,v.Parser=b,new b}();jB.parser=jB;Xye=jB});function Krt(t){switch(Y.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return Y.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function Qrt(t){switch(Y.debug("typeStr2Type",t),t){case"==":return"thick";default:return"normal"}}function Zrt(t){switch(t.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}var ql,QB,KB,Kye,Qye,Urt,Jye,Hrt,K6,Wrt,Yrt,qrt,Xrt,eve,ZB,pb,jrt,Zye,Jrt,ent,tnt,rnt,nnt,int,ant,snt,ont,lnt,cnt,tve,rve=M(()=>{"use strict";SL();Ua();Vt();ht();fr();ki();ql=new Map,QB=[],KB=new Map,Kye="color",Qye="fill",Urt="bgFill",Jye=",",Hrt=de(),K6=new Map,Wrt=o(t=>je.sanitizeText(t,Hrt),"sanitizeText"),Yrt=o(function(t,e=""){let r=K6.get(t);r||(r={id:t,styles:[],textStyles:[]},K6.set(t,r)),e?.split(Jye).forEach(n=>{let i=n.replace(/([^;]*);/,"$1").trim();if(RegExp(Kye).exec(n)){let s=i.replace(Qye,Urt).replace(Kye,Qye);r.textStyles.push(s)}r.styles.push(i)})},"addStyleClass"),qrt=o(function(t,e=""){let r=ql.get(t);e!=null&&(r.styles=e.split(Jye))},"addStyle2Node"),Xrt=o(function(t,e){t.split(",").forEach(function(r){let n=ql.get(r);if(n===void 0){let i=r.trim();n={id:i,type:"na",children:[]},ql.set(i,n)}n.classes||(n.classes=[]),n.classes.push(e)})},"setCssClass"),eve=o((t,e)=>{let r=t.flat(),n=[];for(let i of r){if(i.label&&(i.label=Wrt(i.label)),i.type==="classDef"){Yrt(i.id,i.css);continue}if(i.type==="applyClass"){Xrt(i.id,i?.styleClass??"");continue}if(i.type==="applyStyles"){i?.stylesStr&&qrt(i.id,i?.stylesStr);continue}if(i.type==="column-setting")e.columns=i.columns??-1;else if(i.type==="edge"){let a=(KB.get(i.id)??0)+1;KB.set(i.id,a),i.id=a+"-"+i.id,QB.push(i)}else{i.label||(i.type==="composite"?i.label="":i.label=i.id);let a=ql.get(i.id);if(a===void 0?ql.set(i.id,i):(i.type!=="na"&&(a.type=i.type),i.label!==i.id&&(a.label=i.label)),i.children&&eve(i.children,i),i.type==="space"){let s=i.width??1;for(let l=0;l{Y.debug("Clear called"),_r(),pb={id:"root",type:"composite",children:[],columns:-1},ql=new Map([["root",pb]]),ZB=[],K6=new Map,QB=[],KB=new Map},"clear");o(Krt,"typeStr2Type");o(Qrt,"edgeTypeStr2Type");o(Zrt,"edgeStrToEdgeData");Zye=0,Jrt=o(()=>(Zye++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Zye),"generateId"),ent=o(t=>{pb.children=t,eve(t,pb),ZB=pb.children},"setHierarchy"),tnt=o(t=>{let e=ql.get(t);return e?e.columns?e.columns:e.children?e.children.length:-1:-1},"getColumns"),rnt=o(()=>[...ql.values()],"getBlocksFlat"),nnt=o(()=>ZB||[],"getBlocks"),int=o(()=>QB,"getEdges"),ant=o(t=>ql.get(t),"getBlock"),snt=o(t=>{ql.set(t.id,t)},"setBlock"),ont=o(()=>console,"getLogger"),lnt=o(function(){return K6},"getClasses"),cnt={getConfig:o(()=>Sr().block,"getConfig"),typeStr2Type:Krt,edgeTypeStr2Type:Qrt,edgeStrToEdgeData:Zrt,getLogger:ont,getBlocksFlat:rnt,getBlocks:nnt,getEdges:int,setHierarchy:ent,getBlock:ant,setBlock:snt,getColumns:tnt,getClasses:lnt,clear:jrt,generateId:Jrt},tve=cnt});var Q6,unt,nve,ive=M(()=>{"use strict";To();Q6=o((t,e)=>{let r=z1,n=r(t,"r"),i=r(t,"g"),a=r(t,"b");return Hs(n,i,a,e)},"fade"),unt=o(t=>`.label { + font-family: ${t.fontFamily}; + color: ${t.nodeTextColor||t.textColor}; + } + .cluster-label text { + fill: ${t.titleColor}; + } + .cluster-label span,p { + color: ${t.titleColor}; + } + + + + .label text,span,p { + fill: ${t.nodeTextColor||t.textColor}; + color: ${t.nodeTextColor||t.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + stroke-width: 1px; + } + .flowchart-label text { + text-anchor: middle; + } + // .flowchart-label .text-outer-tspan { + // text-anchor: middle; + // } + // .flowchart-label .text-inner-tspan { + // text-anchor: start; + // } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${t.arrowheadColor}; + } + + .edgePath .path { + stroke: ${t.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${t.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${t.edgeLabelBackground}; + rect { + opacity: 0.5; + background-color: ${t.edgeLabelBackground}; + fill: ${t.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${Q6(t.edgeLabelBackground,.5)}; + // background-color: + } + + .node .cluster { + // fill: ${Q6(t.mainBkg,.5)}; + fill: ${Q6(t.clusterBkg,.5)}; + stroke: ${Q6(t.clusterBorder,.2)}; + box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; + stroke-width: 1px; + } + + .cluster text { + fill: ${t.titleColor}; + } + + .cluster span,p { + color: ${t.titleColor}; + } + /* .cluster div { + color: ${t.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${t.fontFamily}; + font-size: 12px; + background: ${t.tertiaryColor}; + border: 1px solid ${t.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; + } +`,"getStyles"),nve=unt});var hnt,fnt,dnt,pnt,mnt,gnt,ynt,vnt,xnt,bnt,wnt,ave,sve=M(()=>{"use strict";ht();hnt=o((t,e,r,n)=>{e.forEach(i=>{wnt[i](t,r,n)})},"insertMarkers"),fnt=o((t,e,r)=>{Y.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),dnt=o((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),pnt=o((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),mnt=o((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),gnt=o((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),ynt=o((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),vnt=o((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),xnt=o((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),bnt=o((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),wnt={extension:fnt,composition:dnt,aggregation:pnt,dependency:mnt,lollipop:gnt,point:ynt,circle:vnt,cross:xnt,barb:bnt},ave=hnt});function Tnt(t,e){if(t===0||!Number.isInteger(t))throw new Error("Columns must be an integer !== 0.");if(e<0||!Number.isInteger(e))throw new Error("Position must be a non-negative integer."+e);if(t<0)return{px:e,py:0};if(t===1)return{px:0,py:e};let r=e%t,n=Math.floor(e/t);return{px:r,py:n}}function JB(t,e,r=0,n=0){Y.debug("setBlockSizes abc95 (start)",t.id,t?.size?.x,"block width =",t?.size,"sieblingWidth",r),t?.size?.width||(t.size={width:r,height:n,x:0,y:0});let i=0,a=0;if(t.children?.length>0){for(let m of t.children)JB(m,e);let s=knt(t);i=s.width,a=s.height,Y.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",i,a);for(let m of t.children)m.size&&(Y.debug(`abc95 Setting size of children of ${t.id} id=${m.id} ${i} ${a} ${JSON.stringify(m.size)}`),m.size.width=i*(m.widthInColumns??1)+xi*((m.widthInColumns??1)-1),m.size.height=a,m.size.x=0,m.size.y=0,Y.debug(`abc95 updating size of ${t.id} children child:${m.id} maxWidth:${i} maxHeight:${a}`));for(let m of t.children)JB(m,e,i,a);let l=t.columns??-1,u=0;for(let m of t.children)u+=m.widthInColumns??1;let h=t.children.length;l>0&&l0?Math.min(t.children.length,l):t.children.length;if(m>0){let g=(d-m*xi-xi)/m;Y.debug("abc95 (growing to fit) width",t.id,d,t.size?.width,g);for(let y of t.children)y.size&&(y.size.width=g)}}t.size={width:d,height:p,x:0,y:0}}Y.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}function ove(t,e){Y.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);let r=t.columns??-1;if(Y.debug("layoutBlocks columns abc95",t.id,"=>",r,t),t.children&&t.children.length>0){let n=t?.children[0]?.size?.width??0,i=t.children.length*n+(t.children.length-1)*xi;Y.debug("widthOfChildren 88",i,"posX");let a=0;Y.debug("abc91 block?.size?.x",t.id,t?.size?.x);let s=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-xi,l=0;for(let u of t.children){let h=t;if(!u.size)continue;let{width:f,height:d}=u.size,{px:p,py:m}=Tnt(r,a);if(m!=l&&(l=m,s=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-xi,Y.debug("New row in layout for block",t.id," and child ",u.id,l)),Y.debug(`abc89 layout blocks (child) id: ${u.id} Pos: ${a} (px, py) ${p},${m} (${h?.size?.x},${h?.size?.y}) parent: ${h.id} width: ${f}${xi}`),h.size){let g=f/2;u.size.x=s+xi+g,Y.debug(`abc91 layout blocks (calc) px, pyid:${u.id} startingPos=X${s} new startingPosX${u.size.x} ${g} padding=${xi} width=${f} halfWidth=${g} => x:${u.size.x} y:${u.size.y} ${u.widthInColumns} (width * (child?.w || 1)) / 2 ${f*(u?.widthInColumns??1)/2}`),s=u.size.x+g,u.size.y=h.size.y-h.size.height/2+m*(d+xi)+d/2+xi,Y.debug(`abc88 layout blocks (calc) px, pyid:${u.id}startingPosX${s}${xi}${g}=>x:${u.size.x}y:${u.size.y}${u.widthInColumns}(width * (child?.w || 1)) / 2${f*(u?.widthInColumns??1)/2}`)}u.children&&ove(u,e),a+=u?.widthInColumns??1,Y.debug("abc88 columnsPos",u,a)}}Y.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}function lve(t,{minX:e,minY:r,maxX:n,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&t.id!=="root"){let{x:a,y:s,width:l,height:u}=t.size;a-l/2n&&(n=a+l/2),s+u/2>i&&(i=s+u/2)}if(t.children)for(let a of t.children)({minX:e,minY:r,maxX:n,maxY:i}=lve(a,{minX:e,minY:r,maxX:n,maxY:i}));return{minX:e,minY:r,maxX:n,maxY:i}}function cve(t){let e=t.getBlock("root");if(!e)return;JB(e,t,0,0),ove(e,t),Y.debug("getBlocks",JSON.stringify(e,null,2));let{minX:r,minY:n,maxX:i,maxY:a}=lve(e),s=a-n,l=i-r;return{x:r,y:n,width:l,height:s}}var xi,knt,uve=M(()=>{"use strict";ht();Vt();xi=de()?.block?.padding??8;o(Tnt,"calculateBlockPosition");knt=o(t=>{let e=0,r=0;for(let n of t.children){let{width:i,height:a,x:s,y:l}=n.size??{width:0,height:0,x:0,y:0};Y.debug("getMaxChildSize abc95 child:",n.id,"width:",i,"height:",a,"x:",s,"y:",l,n.type),n.type!=="space"&&(i>e&&(e=i/(t.widthInColumns??1)),a>r&&(r=a))}return{width:e,height:r}},"getMaxChildSize");o(JB,"setBlockSizes");o(ove,"layoutBlocks");o(lve,"findBounds");o(cve,"layout")});function hve(t,e){e&&t.attr("style",e)}function Ent(t){let e=ze(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),n=t.label,i=t.isNode?"nodeLabel":"edgeLabel",a=r.append("span");return a.html(n),hve(a,t.labelStyle),a.attr("class",i),hve(r,t.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}var Snt,cs,Z6=M(()=>{"use strict";mr();ht();Vt();fr();hr();Dl();o(hve,"applyStyle");o(Ent,"addHtmlLabel");Snt=o((t,e,r,n)=>{let i=t||"";if(typeof i=="object"&&(i=i[0]),xr(de().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"
    "),Y.debug("vertexText"+i);let a={isNode:n,label:x9(Ca(i)),labelStyle:e.replace("fill:","color:")};return Ent(a)}else{let a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",e.replace("color:","fill:"));let s=[];typeof i=="string"?s=i.split(/\\n|\n|/gi):Array.isArray(i)?s=i:s=[];for(let l of s){let u=document.createElementNS("http://www.w3.org/2000/svg","tspan");u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),u.setAttribute("dy","1em"),u.setAttribute("x","0"),r?u.setAttribute("class","title-row"):u.setAttribute("class","row"),u.textContent=l.trim(),a.appendChild(u)}return a}},"createLabel"),cs=Snt});var dve,Cnt,fve,pve=M(()=>{"use strict";ht();dve=o((t,e,r,n,i)=>{e.arrowTypeStart&&fve(t,"start",e.arrowTypeStart,r,n,i),e.arrowTypeEnd&&fve(t,"end",e.arrowTypeEnd,r,n,i)},"addEdgeMarkers"),Cnt={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},fve=o((t,e,r,n,i,a)=>{let s=Cnt[r];if(!s){Y.warn(`Unknown arrow type: ${r}`);return}let l=e==="start"?"Start":"End";t.attr(`marker-${e}`,`url(${n}#${i}_${a}-${s}${l})`)},"addEdgeMarker")});function J6(t,e){de().flowchart.htmlLabels&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}var eF,$a,gve,yve,Ant,_nt,mve,vve,xve=M(()=>{"use strict";ht();Z6();Dl();mr();Vt();hr();fr();lL();Cv();pve();eF={},$a={},gve=o((t,e)=>{let r=de(),n=xr(r.flowchart.htmlLabels),i=e.labelType==="markdown"?Si(t,e.label,{style:e.labelStyle,useHtmlLabels:n,addSvgBackground:!0},r):cs(e.label,e.labelStyle),a=t.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label");s.node().appendChild(i);let l=i.getBBox();if(n){let h=i.children[0],f=ze(i);l=h.getBoundingClientRect(),f.attr("width",l.width),f.attr("height",l.height)}s.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),eF[e.id]=a,e.width=l.width,e.height=l.height;let u;if(e.startLabelLeft){let h=cs(e.startLabelLeft,e.labelStyle),f=t.insert("g").attr("class","edgeTerminals"),d=f.insert("g").attr("class","inner");u=d.node().appendChild(h);let p=h.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),$a[e.id]||($a[e.id]={}),$a[e.id].startLeft=f,J6(u,e.startLabelLeft)}if(e.startLabelRight){let h=cs(e.startLabelRight,e.labelStyle),f=t.insert("g").attr("class","edgeTerminals"),d=f.insert("g").attr("class","inner");u=f.node().appendChild(h),d.node().appendChild(h);let p=h.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),$a[e.id]||($a[e.id]={}),$a[e.id].startRight=f,J6(u,e.startLabelRight)}if(e.endLabelLeft){let h=cs(e.endLabelLeft,e.labelStyle),f=t.insert("g").attr("class","edgeTerminals"),d=f.insert("g").attr("class","inner");u=d.node().appendChild(h);let p=h.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),f.node().appendChild(h),$a[e.id]||($a[e.id]={}),$a[e.id].endLeft=f,J6(u,e.endLabelLeft)}if(e.endLabelRight){let h=cs(e.endLabelRight,e.labelStyle),f=t.insert("g").attr("class","edgeTerminals"),d=f.insert("g").attr("class","inner");u=d.node().appendChild(h);let p=h.getBBox();d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),f.node().appendChild(h),$a[e.id]||($a[e.id]={}),$a[e.id].endRight=f,J6(u,e.endLabelRight)}return i},"insertEdgeLabel");o(J6,"setTerminalWidth");yve=o((t,e)=>{Y.debug("Moving label abc88 ",t.id,t.label,eF[t.id],e);let r=e.updatedPath?e.updatedPath:e.originalPath,n=de(),{subGraphTitleTotalMargin:i}=_u(n);if(t.label){let a=eF[t.id],s=t.x,l=t.y;if(r){let u=Ut.calcLabelPosition(r);Y.debug("Moving label "+t.label+" from (",s,",",l,") to (",u.x,",",u.y,") abc88"),e.updatedPath&&(s=u.x,l=u.y)}a.attr("transform",`translate(${s}, ${l+i/2})`)}if(t.startLabelLeft){let a=$a[t.id].startLeft,s=t.x,l=t.y;if(r){let u=Ut.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(t.startLabelRight){let a=$a[t.id].startRight,s=t.x,l=t.y;if(r){let u=Ut.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(t.endLabelLeft){let a=$a[t.id].endLeft,s=t.x,l=t.y;if(r){let u=Ut.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}if(t.endLabelRight){let a=$a[t.id].endRight,s=t.x,l=t.y;if(r){let u=Ut.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=u.x,l=u.y}a.attr("transform",`translate(${s}, ${l})`)}},"positionEdgeLabel"),Ant=o((t,e)=>{let r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),s=t.width/2,l=t.height/2;return i>=s||a>=l},"outsideNode"),_nt=o((t,e,r)=>{Y.debug(`intersection calc abc89: + outsidePoint: ${JSON.stringify(e)} + insidePoint : ${JSON.stringify(r)} + node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let n=t.x,i=t.y,a=Math.abs(n-r.x),s=t.width/2,l=r.xMath.abs(n-e.x)*u){let d=r.y{Y.debug("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(!Ant(e,a)&&!i){let s=_nt(e,n,a),l=!1;r.forEach(u=>{l=l||u.x===s.x&&u.y===s.y}),r.some(u=>u.x===s.x&&u.y===s.y)||r.push(s),i=!0}else n=a,i||r.push(a)}),r},"cutPathAtIntersect"),vve=o(function(t,e,r,n,i,a,s){let l=r.points;Y.debug("abc88 InsertEdge: edge=",r,"e=",e);let u=!1,h=a.node(e.v);var f=a.node(e.w);f?.intersect&&h?.intersect&&(l=l.slice(1,r.points.length-1),l.unshift(h.intersect(l[0])),l.push(f.intersect(l[l.length-1]))),r.toCluster&&(Y.debug("to cluster abc88",n[r.toCluster]),l=mve(r.points,n[r.toCluster].node),u=!0),r.fromCluster&&(Y.debug("from cluster abc88",n[r.fromCluster]),l=mve(l.reverse(),n[r.fromCluster].node).reverse(),u=!0);let d=l.filter(_=>!Number.isNaN(_.y)),p=Do;r.curve&&(i==="graph"||i==="flowchart")&&(p=r.curve);let{x:m,y:g}=Z5(r),y=Ka().x(m).y(g).curve(p),v;switch(r.thickness){case"normal":v="edge-thickness-normal";break;case"thick":v="edge-thickness-thick";break;case"invisible":v="edge-thickness-thick";break;default:v=""}switch(r.pattern){case"solid":v+=" edge-pattern-solid";break;case"dotted":v+=" edge-pattern-dotted";break;case"dashed":v+=" edge-pattern-dashed";break}let x=t.append("path").attr("d",y(d)).attr("id",r.id).attr("class"," "+v+(r.classes?" "+r.classes:"")).attr("style",r.style),b="";(de().flowchart.arrowMarkerAbsolute||de().state.arrowMarkerAbsolute)&&(b=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,b=b.replace(/\(/g,"\\("),b=b.replace(/\)/g,"\\)")),dve(x,r,b,s,i);let w={};return u&&(w.updatedPath=l),w.originalPath=r.points,w},"insertEdge")});var Lnt,bve,wve=M(()=>{"use strict";Lnt=o(t=>{let e=new Set;for(let r of t)switch(r){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(r);break}return e},"expandAndDeduplicateDirections"),bve=o((t,e,r)=>{let n=Lnt(t),i=2,a=e.height+2*r.padding,s=a/i,l=e.width+2*s+r.padding,u=r.padding/2;return n.has("right")&&n.has("left")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:s,y:0},{x:l/2,y:2*u},{x:l-s,y:0},{x:l,y:0},{x:l,y:-a/3},{x:l+2*u,y:-a/2},{x:l,y:-2*a/3},{x:l,y:-a},{x:l-s,y:-a},{x:l/2,y:-a-2*u},{x:s,y:-a},{x:0,y:-a},{x:0,y:-2*a/3},{x:-2*u,y:-a/2},{x:0,y:-a/3}]:n.has("right")&&n.has("left")&&n.has("up")?[{x:s,y:0},{x:l-s,y:0},{x:l,y:-a/2},{x:l-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}]:n.has("right")&&n.has("left")&&n.has("down")?[{x:0,y:0},{x:s,y:-a},{x:l-s,y:-a},{x:l,y:0}]:n.has("right")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:l,y:-s},{x:l,y:-a+s},{x:0,y:-a}]:n.has("left")&&n.has("up")&&n.has("down")?[{x:l,y:0},{x:0,y:-s},{x:0,y:-a+s},{x:l,y:-a}]:n.has("right")&&n.has("left")?[{x:s,y:0},{x:s,y:-u},{x:l-s,y:-u},{x:l-s,y:0},{x:l,y:-a/2},{x:l-s,y:-a},{x:l-s,y:-a+u},{x:s,y:-a+u},{x:s,y:-a},{x:0,y:-a/2}]:n.has("up")&&n.has("down")?[{x:l/2,y:0},{x:0,y:-u},{x:s,y:-u},{x:s,y:-a+u},{x:0,y:-a+u},{x:l/2,y:-a},{x:l,y:-a+u},{x:l-s,y:-a+u},{x:l-s,y:-u},{x:l,y:-u}]:n.has("right")&&n.has("up")?[{x:0,y:0},{x:l,y:-s},{x:0,y:-a}]:n.has("right")&&n.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-a}]:n.has("left")&&n.has("up")?[{x:l,y:0},{x:0,y:-s},{x:l,y:-a}]:n.has("left")&&n.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-a}]:n.has("right")?[{x:s,y:-u},{x:s,y:-u},{x:l-s,y:-u},{x:l-s,y:0},{x:l,y:-a/2},{x:l-s,y:-a},{x:l-s,y:-a+u},{x:s,y:-a+u},{x:s,y:-a+u}]:n.has("left")?[{x:s,y:0},{x:s,y:-u},{x:l-s,y:-u},{x:l-s,y:-a+u},{x:s,y:-a+u},{x:s,y:-a},{x:0,y:-a/2}]:n.has("up")?[{x:s,y:-u},{x:s,y:-a+u},{x:0,y:-a+u},{x:l/2,y:-a},{x:l,y:-a+u},{x:l-s,y:-a+u},{x:l-s,y:-u}]:n.has("down")?[{x:l/2,y:0},{x:0,y:-u},{x:s,y:-u},{x:s,y:-a+u},{x:l-s,y:-a+u},{x:l-s,y:-u},{x:l,y:-u}]:[{x:0,y:0}]},"getArrowPoints")});function Dnt(t,e){return t.intersect(e)}var Tve,kve=M(()=>{"use strict";o(Dnt,"intersectNode");Tve=Dnt});function Nnt(t,e,r,n){var i=t.x,a=t.y,s=i-n.x,l=a-n.y,u=Math.sqrt(e*e*l*l+r*r*s*s),h=Math.abs(e*r*s/u);n.x{"use strict";o(Nnt,"intersectEllipse");eS=Nnt});function Rnt(t,e,r){return eS(t,e,e,r)}var Eve,Sve=M(()=>{"use strict";tF();o(Rnt,"intersectCircle");Eve=Rnt});function Mnt(t,e,r,n){var i,a,s,l,u,h,f,d,p,m,g,y,v,x,b;if(i=e.y-t.y,s=t.x-e.x,u=e.x*t.y-t.x*e.y,p=i*r.x+s*r.y+u,m=i*n.x+s*n.y+u,!(p!==0&&m!==0&&Cve(p,m))&&(a=n.y-r.y,l=r.x-n.x,h=n.x*r.y-r.x*n.y,f=a*t.x+l*t.y+h,d=a*e.x+l*e.y+h,!(f!==0&&d!==0&&Cve(f,d))&&(g=i*l-a*s,g!==0)))return y=Math.abs(g/2),v=s*h-l*u,x=v<0?(v-y)/g:(v+y)/g,v=a*u-i*h,b=v<0?(v-y)/g:(v+y)/g,{x,y:b}}function Cve(t,e){return t*e>0}var Ave,_ve=M(()=>{"use strict";o(Mnt,"intersectLine");o(Cve,"sameSign");Ave=Mnt});function Int(t,e,r){var n=t.x,i=t.y,a=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(g){s=Math.min(s,g.x),l=Math.min(l,g.y)}):(s=Math.min(s,e.x),l=Math.min(l,e.y));for(var u=n-t.width/2-s,h=i-t.height/2-l,f=0;f1&&a.sort(function(g,y){var v=g.x-r.x,x=g.y-r.y,b=Math.sqrt(v*v+x*x),w=y.x-r.x,_=y.y-r.y,T=Math.sqrt(w*w+_*_);return b{"use strict";_ve();Lve=Int;o(Int,"intersectPolygon")});var Ont,Nve,Rve=M(()=>{"use strict";Ont=o((t,e)=>{var r=t.x,n=t.y,i=e.x-r,a=e.y-n,s=t.width/2,l=t.height/2,u,h;return Math.abs(a)*s>Math.abs(i)*l?(a<0&&(l=-l),u=a===0?0:l*i/a,h=l):(i<0&&(s=-s),u=s,h=i===0?0:s*a/i),{x:r+u,y:n+h}},"intersectRect"),Nve=Ont});var Rn,rF=M(()=>{"use strict";kve();Sve();tF();Dve();Rve();Rn={node:Tve,circle:Eve,ellipse:eS,polygon:Lve,rect:Nve}});function Xl(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}var _i,qn,nF=M(()=>{"use strict";Z6();Dl();Vt();mr();fr();hr();_i=o(async(t,e,r,n)=>{let i=de(),a,s=e.useHtmlLabels||xr(i.flowchart.htmlLabels);r?a=r:a="node default";let l=t.insert("g").attr("class",a).attr("id",e.domId||e.id),u=l.insert("g").attr("class","label").attr("style",e.labelStyle),h;e.labelText===void 0?h="":h=typeof e.labelText=="string"?e.labelText:e.labelText[0];let f=u.node(),d;e.labelType==="markdown"?d=Si(u,Tr(Ca(h),i),{useHtmlLabels:s,width:e.width||i.flowchart.wrappingWidth,classes:"markdown-node-label"},i):d=f.appendChild(cs(Tr(Ca(h),i),e.labelStyle,!1,n));let p=d.getBBox(),m=e.padding/2;if(xr(i.flowchart.htmlLabels)){let g=d.children[0],y=ze(d),v=g.getElementsByTagName("img");if(v){let x=h.replace(/]*>/g,"").trim()==="";await Promise.all([...v].map(b=>new Promise(w=>{function _(){if(b.style.display="flex",b.style.flexDirection="column",x){let T=i.fontSize?i.fontSize:window.getComputedStyle(document.body).fontSize,L=parseInt(T,10)*5+"px";b.style.minWidth=L,b.style.maxWidth=L}else b.style.width="100%";w(b)}o(_,"setupImage"),setTimeout(()=>{b.complete&&_()}),b.addEventListener("error",_),b.addEventListener("load",_)})))}p=g.getBoundingClientRect(),y.attr("width",p.width),y.attr("height",p.height)}return s?u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):u.attr("transform","translate(0, "+-p.height/2+")"),e.centerLabel&&u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),u.insert("rect",":first-child"),{shapeSvg:l,bbox:p,halfPadding:m,label:u}},"labelHelper"),qn=o((t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds");o(Xl,"insertPolygonShape")});var Pnt,Mve,Ive=M(()=>{"use strict";nF();ht();Vt();rF();Pnt=o(async(t,e)=>{e.useHtmlLabels||de().flowchart.htmlLabels||(e.centerLabel=!0);let{shapeSvg:n,bbox:i,halfPadding:a}=await _i(t,e,"node "+e.classes,!0);Y.info("Classes = ",e.classes);let s=n.insert("rect",":first-child");return s.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),qn(e,s),e.intersect=function(l){return Rn.rect(e,l)},n},"note"),Mve=Pnt});function iF(t,e,r,n){let i=[],a=o(l=>{i.push(l,0)},"addBorder"),s=o(l=>{i.push(0,l)},"skipBorder");e.includes("t")?(Y.debug("add top border"),a(r)):s(r),e.includes("r")?(Y.debug("add right border"),a(n)):s(n),e.includes("b")?(Y.debug("add bottom border"),a(r)):s(r),e.includes("l")?(Y.debug("add left border"),a(n)):s(n),t.attr("stroke-dasharray",i.join(" "))}var Ove,go,Pve,Bnt,Fnt,znt,Gnt,$nt,Vnt,Unt,Hnt,Wnt,Ynt,qnt,Xnt,jnt,Knt,Qnt,Znt,Jnt,eit,tit,Bve,rit,nit,Fve,tS,aF,zve,Gve=M(()=>{"use strict";mr();Vt();fr();ht();wve();Z6();rF();Ive();nF();Ove=o(t=>t?" "+t:"","formatClass"),go=o((t,e)=>`${e||"node default"}${Ove(t.classes)} ${Ove(t.class)}`,"getClassesFromNode"),Pve=o(async(t,e)=>{let{shapeSvg:r,bbox:n}=await _i(t,e,go(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=i+a,l=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];Y.info("Question main (Circle)");let u=Xl(r,s,s,l);return u.attr("style",e.style),qn(e,u),e.intersect=function(h){return Y.warn("Intersect called"),Rn.polygon(e,l,h)},r},"question"),Bnt=o((t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=28,i=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];return r.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(s){return Rn.circle(e,14,s)},r},"choice"),Fnt=o(async(t,e)=>{let{shapeSvg:r,bbox:n}=await _i(t,e,go(e,void 0),!0),i=4,a=n.height+e.padding,s=a/i,l=n.width+2*s+e.padding,u=[{x:s,y:0},{x:l-s,y:0},{x:l,y:-a/2},{x:l-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],h=Xl(r,l,a,u);return h.attr("style",e.style),qn(e,h),e.intersect=function(f){return Rn.polygon(e,u,f)},r},"hexagon"),znt=o(async(t,e)=>{let{shapeSvg:r,bbox:n}=await _i(t,e,void 0,!0),i=2,a=n.height+2*e.padding,s=a/i,l=n.width+2*s+e.padding,u=bve(e.directions,n,e),h=Xl(r,l,a,u);return h.attr("style",e.style),qn(e,h),e.intersect=function(f){return Rn.polygon(e,u,f)},r},"block_arrow"),Gnt=o(async(t,e)=>{let{shapeSvg:r,bbox:n}=await _i(t,e,go(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:-a/2,y:0},{x:i,y:0},{x:i,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}];return Xl(r,i,a,s).attr("style",e.style),e.width=i+a,e.height=a,e.intersect=function(u){return Rn.polygon(e,s,u)},r},"rect_left_inv_arrow"),$nt=o(async(t,e)=>{let{shapeSvg:r,bbox:n}=await _i(t,e,go(e),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:-2*a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:a/6,y:-a}],l=Xl(r,i,a,s);return l.attr("style",e.style),qn(e,l),e.intersect=function(u){return Rn.polygon(e,s,u)},r},"lean_right"),Vnt=o(async(t,e)=>{let{shapeSvg:r,bbox:n}=await _i(t,e,go(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:2*a/6,y:0},{x:i+a/6,y:0},{x:i-2*a/6,y:-a},{x:-a/6,y:-a}],l=Xl(r,i,a,s);return l.attr("style",e.style),qn(e,l),e.intersect=function(u){return Rn.polygon(e,s,u)},r},"lean_left"),Unt=o(async(t,e)=>{let{shapeSvg:r,bbox:n}=await _i(t,e,go(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:-2*a/6,y:0},{x:i+2*a/6,y:0},{x:i-a/6,y:-a},{x:a/6,y:-a}],l=Xl(r,i,a,s);return l.attr("style",e.style),qn(e,l),e.intersect=function(u){return Rn.polygon(e,s,u)},r},"trapezoid"),Hnt=o(async(t,e)=>{let{shapeSvg:r,bbox:n}=await _i(t,e,go(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:a/6,y:0},{x:i-a/6,y:0},{x:i+2*a/6,y:-a},{x:-2*a/6,y:-a}],l=Xl(r,i,a,s);return l.attr("style",e.style),qn(e,l),e.intersect=function(u){return Rn.polygon(e,s,u)},r},"inv_trapezoid"),Wnt=o(async(t,e)=>{let{shapeSvg:r,bbox:n}=await _i(t,e,go(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:0,y:0},{x:i+a/2,y:0},{x:i,y:-a/2},{x:i+a/2,y:-a},{x:0,y:-a}],l=Xl(r,i,a,s);return l.attr("style",e.style),qn(e,l),e.intersect=function(u){return Rn.polygon(e,s,u)},r},"rect_right_inv_arrow"),Ynt=o(async(t,e)=>{let{shapeSvg:r,bbox:n}=await _i(t,e,go(e,void 0),!0),i=n.width+e.padding,a=i/2,s=a/(2.5+i/50),l=n.height+s+e.padding,u="M 0,"+s+" a "+a+","+s+" 0,0,0 "+i+" 0 a "+a+","+s+" 0,0,0 "+-i+" 0 l 0,"+l+" a "+a+","+s+" 0,0,0 "+i+" 0 l 0,"+-l,h=r.attr("label-offset-y",s).insert("path",":first-child").attr("style",e.style).attr("d",u).attr("transform","translate("+-i/2+","+-(l/2+s)+")");return qn(e,h),e.intersect=function(f){let d=Rn.rect(e,f),p=d.x-e.x;if(a!=0&&(Math.abs(p)e.height/2-s)){let m=s*s*(1-p*p/(a*a));m!=0&&(m=Math.sqrt(m)),m=s-m,f.y-e.y>0&&(m=-m),d.y+=m}return d},r},"cylinder"),qnt=o(async(t,e)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await _i(t,e,"node "+e.classes+" "+e.class,!0),a=r.insert("rect",":first-child"),s=e.positioned?e.width:n.width+e.padding,l=e.positioned?e.height:n.height+e.padding,u=e.positioned?-s/2:-n.width/2-i,h=e.positioned?-l/2:-n.height/2-i;if(a.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",u).attr("y",h).attr("width",s).attr("height",l),e.props){let f=new Set(Object.keys(e.props));e.props.borders&&(iF(a,e.props.borders,s,l),f.delete("borders")),f.forEach(d=>{Y.warn(`Unknown node property ${d}`)})}return qn(e,a),e.intersect=function(f){return Rn.rect(e,f)},r},"rect"),Xnt=o(async(t,e)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await _i(t,e,"node "+e.classes,!0),a=r.insert("rect",":first-child"),s=e.positioned?e.width:n.width+e.padding,l=e.positioned?e.height:n.height+e.padding,u=e.positioned?-s/2:-n.width/2-i,h=e.positioned?-l/2:-n.height/2-i;if(a.attr("class","basic cluster composite label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",u).attr("y",h).attr("width",s).attr("height",l),e.props){let f=new Set(Object.keys(e.props));e.props.borders&&(iF(a,e.props.borders,s,l),f.delete("borders")),f.forEach(d=>{Y.warn(`Unknown node property ${d}`)})}return qn(e,a),e.intersect=function(f){return Rn.rect(e,f)},r},"composite"),jnt=o(async(t,e)=>{let{shapeSvg:r}=await _i(t,e,"label",!0);Y.trace("Classes = ",e.class);let n=r.insert("rect",":first-child"),i=0,a=0;if(n.attr("width",i).attr("height",a),r.attr("class","label edgeLabel"),e.props){let s=new Set(Object.keys(e.props));e.props.borders&&(iF(n,e.props.borders,i,a),s.delete("borders")),s.forEach(l=>{Y.warn(`Unknown node property ${l}`)})}return qn(e,n),e.intersect=function(s){return Rn.rect(e,s)},r},"labelRect");o(iF,"applyNodePropertyBorders");Knt=o((t,e)=>{let r;e.classes?r="node "+e.classes:r="node default";let n=t.insert("g").attr("class",r).attr("id",e.domId||e.id),i=n.insert("rect",":first-child"),a=n.insert("line"),s=n.insert("g").attr("class","label"),l=e.labelText.flat?e.labelText.flat():e.labelText,u="";typeof l=="object"?u=l[0]:u=l,Y.info("Label text abc79",u,l,typeof l=="object");let h=s.node().appendChild(cs(u,e.labelStyle,!0,!0)),f={width:0,height:0};if(xr(de().flowchart.htmlLabels)){let y=h.children[0],v=ze(h);f=y.getBoundingClientRect(),v.attr("width",f.width),v.attr("height",f.height)}Y.info("Text 2",l);let d=l.slice(1,l.length),p=h.getBBox(),m=s.node().appendChild(cs(d.join?d.join("
    "):d,e.labelStyle,!0,!0));if(xr(de().flowchart.htmlLabels)){let y=m.children[0],v=ze(m);f=y.getBoundingClientRect(),v.attr("width",f.width),v.attr("height",f.height)}let g=e.padding/2;return ze(m).attr("transform","translate( "+(f.width>p.width?0:(p.width-f.width)/2)+", "+(p.height+g+5)+")"),ze(h).attr("transform","translate( "+(f.width{let{shapeSvg:r,bbox:n}=await _i(t,e,go(e,void 0),!0),i=n.height+e.padding,a=n.width+i/4+e.padding,s=r.insert("rect",":first-child").attr("style",e.style).attr("rx",i/2).attr("ry",i/2).attr("x",-a/2).attr("y",-i/2).attr("width",a).attr("height",i);return qn(e,s),e.intersect=function(l){return Rn.rect(e,l)},r},"stadium"),Znt=o(async(t,e)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await _i(t,e,go(e,void 0),!0),a=r.insert("circle",":first-child");return a.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),Y.info("Circle main"),qn(e,a),e.intersect=function(s){return Y.info("Circle intersect",e,n.width/2+i,s),Rn.circle(e,n.width/2+i,s)},r},"circle"),Jnt=o(async(t,e)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await _i(t,e,go(e,void 0),!0),a=5,s=r.insert("g",":first-child"),l=s.insert("circle"),u=s.insert("circle");return s.attr("class",e.class),l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i+a).attr("width",n.width+e.padding+a*2).attr("height",n.height+e.padding+a*2),u.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),Y.info("DoubleCircle main"),qn(e,l),e.intersect=function(h){return Y.info("DoubleCircle intersect",e,n.width/2+i+a,h),Rn.circle(e,n.width/2+i+a,h)},r},"doublecircle"),eit=o(async(t,e)=>{let{shapeSvg:r,bbox:n}=await _i(t,e,go(e,void 0),!0),i=n.width+e.padding,a=n.height+e.padding,s=[{x:0,y:0},{x:i,y:0},{x:i,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],l=Xl(r,i,a,s);return l.attr("style",e.style),qn(e,l),e.intersect=function(u){return Rn.polygon(e,s,u)},r},"subroutine"),tit=o((t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),qn(e,n),e.intersect=function(i){return Rn.circle(e,7,i)},r},"start"),Bve=o((t,e,r)=>{let n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=70,a=10;r==="LR"&&(i=10,a=70);let s=n.append("rect").attr("x",-1*i/2).attr("y",-1*a/2).attr("width",i).attr("height",a).attr("class","fork-join");return qn(e,s),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(l){return Rn.rect(e,l)},n},"forkJoin"),rit=o((t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=r.insert("circle",":first-child"),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),qn(e,i),e.intersect=function(a){return Rn.circle(e,7,a)},r},"end"),nit=o((t,e)=>{let r=e.padding/2,n=4,i=8,a;e.classes?a="node "+e.classes:a="node default";let s=t.insert("g").attr("class",a).attr("id",e.domId||e.id),l=s.insert("rect",":first-child"),u=s.insert("line"),h=s.insert("line"),f=0,d=n,p=s.insert("g").attr("class","label"),m=0,g=e.classData.annotations?.[0],y=e.classData.annotations[0]?"\xAB"+e.classData.annotations[0]+"\xBB":"",v=p.node().appendChild(cs(y,e.labelStyle,!0,!0)),x=v.getBBox();if(xr(de().flowchart.htmlLabels)){let C=v.children[0],A=ze(v);x=C.getBoundingClientRect(),A.attr("width",x.width),A.attr("height",x.height)}e.classData.annotations[0]&&(d+=x.height+n,f+=x.width);let b=e.classData.label;e.classData.type!==void 0&&e.classData.type!==""&&(de().flowchart.htmlLabels?b+="<"+e.classData.type+">":b+="<"+e.classData.type+">");let w=p.node().appendChild(cs(b,e.labelStyle,!0,!0));ze(w).attr("class","classTitle");let _=w.getBBox();if(xr(de().flowchart.htmlLabels)){let C=w.children[0],A=ze(w);_=C.getBoundingClientRect(),A.attr("width",_.width),A.attr("height",_.height)}d+=_.height+n,_.width>f&&(f=_.width);let T=[];e.classData.members.forEach(C=>{let A=C.getDisplayDetails(),I=A.displayText;de().flowchart.htmlLabels&&(I=I.replace(//g,">"));let D=p.node().appendChild(cs(I,A.cssStyle?A.cssStyle:e.labelStyle,!0,!0)),k=D.getBBox();if(xr(de().flowchart.htmlLabels)){let R=D.children[0],S=ze(D);k=R.getBoundingClientRect(),S.attr("width",k.width),S.attr("height",k.height)}k.width>f&&(f=k.width),d+=k.height+n,T.push(D)}),d+=i;let E=[];if(e.classData.methods.forEach(C=>{let A=C.getDisplayDetails(),I=A.displayText;de().flowchart.htmlLabels&&(I=I.replace(//g,">"));let D=p.node().appendChild(cs(I,A.cssStyle?A.cssStyle:e.labelStyle,!0,!0)),k=D.getBBox();if(xr(de().flowchart.htmlLabels)){let R=D.children[0],S=ze(D);k=R.getBoundingClientRect(),S.attr("width",k.width),S.attr("height",k.height)}k.width>f&&(f=k.width),d+=k.height+n,E.push(D)}),d+=i,g){let C=(f-x.width)/2;ze(v).attr("transform","translate( "+(-1*f/2+C)+", "+-1*d/2+")"),m=x.height+n}let L=(f-_.width)/2;return ze(w).attr("transform","translate( "+(-1*f/2+L)+", "+(-1*d/2+m)+")"),m+=_.height+n,u.attr("class","divider").attr("x1",-f/2-r).attr("x2",f/2+r).attr("y1",-d/2-r+i+m).attr("y2",-d/2-r+i+m),m+=i,T.forEach(C=>{ze(C).attr("transform","translate( "+-f/2+", "+(-1*d/2+m+i/2)+")");let A=C?.getBBox();m+=(A?.height??0)+n}),m+=i,h.attr("class","divider").attr("x1",-f/2-r).attr("x2",f/2+r).attr("y1",-d/2-r+i+m).attr("y2",-d/2-r+i+m),m+=i,E.forEach(C=>{ze(C).attr("transform","translate( "+-f/2+", "+(-1*d/2+m)+")");let A=C?.getBBox();m+=(A?.height??0)+n}),l.attr("style",e.style).attr("class","outer title-state").attr("x",-f/2-r).attr("y",-(d/2)-r).attr("width",f+e.padding).attr("height",d+e.padding),qn(e,l),e.intersect=function(C){return Rn.rect(e,C)},s},"class_box"),Fve={rhombus:Pve,composite:Xnt,question:Pve,rect:qnt,labelRect:jnt,rectWithTitle:Knt,choice:Bnt,circle:Znt,doublecircle:Jnt,stadium:Qnt,hexagon:Fnt,block_arrow:znt,rect_left_inv_arrow:Gnt,lean_right:$nt,lean_left:Vnt,trapezoid:Unt,inv_trapezoid:Hnt,rect_right_inv_arrow:Wnt,cylinder:Ynt,start:tit,end:rit,note:Mve,subroutine:eit,fork:Bve,join:Bve,class_box:nit},tS={},aF=o(async(t,e,r)=>{let n,i;if(e.link){let a;de().securityLevel==="sandbox"?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),i=await Fve[e.shape](n,e,r)}else i=await Fve[e.shape](t,e,r),n=i;return e.tooltip&&i.attr("title",e.tooltip),e.class&&i.attr("class","node default "+e.class),tS[e.id]=n,e.haveCallback&&tS[e.id].attr("class",tS[e.id].attr("class")+" clickable"),n},"insertNode"),zve=o(t=>{let e=tS[t.id];Y.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=8,n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},"positionNode")});function $ve(t,e,r=!1){let n=t,i="default";(n?.classes?.length||0)>0&&(i=(n?.classes??[]).join(" ")),i=i+" flowchart-label";let a=0,s="",l;switch(n.type){case"round":a=5,s="rect";break;case"composite":a=0,s="composite",l=0;break;case"square":s="rect";break;case"diamond":s="question";break;case"hexagon":s="hexagon";break;case"block_arrow":s="block_arrow";break;case"odd":s="rect_left_inv_arrow";break;case"lean_right":s="lean_right";break;case"lean_left":s="lean_left";break;case"trapezoid":s="trapezoid";break;case"inv_trapezoid":s="inv_trapezoid";break;case"rect_left_inv_arrow":s="rect_left_inv_arrow";break;case"circle":s="circle";break;case"ellipse":s="ellipse";break;case"stadium":s="stadium";break;case"subroutine":s="subroutine";break;case"cylinder":s="cylinder";break;case"group":s="rect";break;case"doublecircle":s="doublecircle";break;default:s="rect"}let u=J_(n?.styles??[]),h=n.label,f=n.size??{width:0,height:0,x:0,y:0};return{labelStyle:u.labelStyle,shape:s,labelText:h,rx:a,ry:a,class:i,style:u.style,id:n.id,directions:n.directions,width:f.width,height:f.height,x:f.x,y:f.y,positioned:r,intersect:void 0,type:n.type,padding:l??Sr()?.block?.padding??0}}async function iit(t,e,r){let n=$ve(e,r,!1);if(n.type==="group")return;let i=Sr(),a=await aF(t,n,{config:i}),s=a.node().getBBox(),l=r.getBlock(n.id);l.size={width:s.width,height:s.height,x:0,y:0,node:a},r.setBlock(l),a.remove()}async function ait(t,e,r){let n=$ve(e,r,!0);if(r.getBlock(n.id).type!=="space"){let a=Sr();await aF(t,n,{config:a}),e.intersect=n?.intersect,zve(n)}}async function sF(t,e,r,n){for(let i of e)await n(t,i,r),i.children&&await sF(t,i.children,r,n)}async function Vve(t,e,r){await sF(t,e,r,iit)}async function Uve(t,e,r){await sF(t,e,r,ait)}async function Hve(t,e,r,n,i){let a=new Mr({multigraph:!0,compound:!0});a.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let s of r)s.size&&a.setNode(s.id,{width:s.size.width,height:s.size.height,intersect:s.intersect});for(let s of e)if(s.start&&s.end){let l=n.getBlock(s.start),u=n.getBlock(s.end);if(l?.size&&u?.size){let h=l.size,f=u.size,d=[{x:h.x,y:h.y},{x:h.x+(f.x-h.x)/2,y:h.y+(f.y-h.y)/2},{x:f.x,y:f.y}];vve(t,{v:s.start,w:s.end,name:s.id},{...s,arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:d,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",a,i),s.label&&(await gve(t,{...s,label:s.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:d,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),yve({...s,x:d[1].x,y:d[1].y},{originalPath:d}))}}}var Wve=M(()=>{"use strict";Ns();Ua();xve();Gve();hr();o($ve,"getNodeFromBlock");o(iit,"calculateBlockSize");o(ait,"insertBlockPositioned");o(sF,"performOperations");o(Vve,"calculateBlockSizes");o(Uve,"insertBlocks");o(Hve,"insertEdges")});var sit,oit,Yve,qve=M(()=>{"use strict";mr();Ua();sve();ht();ni();uve();Wve();sit=o(function(t,e){return e.db.getClasses()},"getClasses"),oit=o(async function(t,e,r,n){let{securityLevel:i,block:a}=Sr(),s=n.db,l;i==="sandbox"&&(l=ze("#i"+e));let u=i==="sandbox"?ze(l.nodes()[0].contentDocument.body):ze("body"),h=i==="sandbox"?u.select(`[id="${e}"]`):ze(`[id="${e}"]`);ave(h,["point","circle","cross"],n.type,e);let d=s.getBlocks(),p=s.getBlocksFlat(),m=s.getEdges(),g=h.insert("g").attr("class","block");await Vve(g,d,s);let y=cve(s);if(await Uve(g,d,s),await Hve(g,m,p,s,e),y){let v=y,x=Math.max(1,Math.round(.125*(v.width/v.height))),b=v.height+x+10,w=v.width+10,{useMaxWidth:_}=a;Zr(h,b,w,!!_),Y.debug("Here Bounds",y,v),h.attr("viewBox",`${v.x-5} ${v.y-5} ${v.width+10} ${v.height+10}`)}},"draw"),Yve={draw:oit,getClasses:sit}});var Xve={};vr(Xve,{diagram:()=>lit});var lit,jve=M(()=>{"use strict";jye();rve();ive();qve();lit={parser:Xye,db:tve,renderer:Yve,styles:nve}});var oF,lF,mb,Zve,cF,us,qc,rS,Jve,fit,gb,e2e,t2e,r2e,n2e,nS,Mf,iS=M(()=>{"use strict";oF={L:"left",R:"right",T:"top",B:"bottom"},lF={L:o(t=>`${t},${t/2} 0,${t} 0,0`,"L"),R:o(t=>`0,${t/2} ${t},0 ${t},${t}`,"R"),T:o(t=>`0,0 ${t},0 ${t/2},${t}`,"T"),B:o(t=>`${t/2},0 ${t},${t} 0,${t}`,"B")},mb={L:o((t,e)=>t-e+2,"L"),R:o((t,e)=>t-2,"R"),T:o((t,e)=>t-e+2,"T"),B:o((t,e)=>t-2,"B")},Zve=o(function(t){return us(t)?t==="L"?"R":"L":t==="T"?"B":"T"},"getOppositeArchitectureDirection"),cF=o(function(t){let e=t;return e==="L"||e==="R"||e==="T"||e==="B"},"isArchitectureDirection"),us=o(function(t){let e=t;return e==="L"||e==="R"},"isArchitectureDirectionX"),qc=o(function(t){let e=t;return e==="T"||e==="B"},"isArchitectureDirectionY"),rS=o(function(t,e){let r=us(t)&&qc(e),n=qc(t)&&us(e);return r||n},"isArchitectureDirectionXY"),Jve=o(function(t){let e=t[0],r=t[1],n=us(e)&&qc(r),i=qc(e)&&us(r);return n||i},"isArchitecturePairXY"),fit=o(function(t){return t!=="LL"&&t!=="RR"&&t!=="TT"&&t!=="BB"},"isValidArchitectureDirectionPair"),gb=o(function(t,e){let r=`${t}${e}`;return fit(r)?r:void 0},"getArchitectureDirectionPair"),e2e=o(function([t,e],r){let n=r[0],i=r[1];return us(n)?qc(i)?[t+(n==="L"?-1:1),e+(i==="T"?1:-1)]:[t+(n==="L"?-1:1),e]:us(i)?[t+(i==="L"?1:-1),e+(n==="T"?1:-1)]:[t,e+(n==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),t2e=o(function(t){return t==="LT"||t==="TL"?[1,1]:t==="BL"||t==="LB"?[1,-1]:t==="BR"||t==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),r2e=o(function(t){return t.type==="service"},"isArchitectureService"),n2e=o(function(t){return t.type==="junction"},"isArchitectureJunction"),nS=o(t=>t.data(),"edgeData"),Mf=o(t=>t.data(),"nodeData")});function Li(t){let e=de().architecture;return e?.[t]?e[t]:i2e[t]}var i2e,gr,dit,pit,mit,git,yit,vit,xit,bit,wit,Tit,kit,Eit,Sit,Cit,X0,yb=M(()=>{"use strict";hs();Vt();tE();ki();iS();i2e=ur.architecture,gr=new cf(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:i2e,dataStructures:void 0,elements:{}})),dit=o(()=>{gr.reset(),_r()},"clear"),pit=o(function({id:t,icon:e,in:r,title:n,iconText:i}){if(gr.records.registeredIds[t]!==void 0)throw new Error(`The service id [${t}] is already in use by another ${gr.records.registeredIds[t]}`);if(r!==void 0){if(t===r)throw new Error(`The service [${t}] cannot be placed within itself`);if(gr.records.registeredIds[r]===void 0)throw new Error(`The service [${t}]'s parent does not exist. Please make sure the parent is created before this service`);if(gr.records.registeredIds[r]==="node")throw new Error(`The service [${t}]'s parent is not a group`)}gr.records.registeredIds[t]="node",gr.records.nodes[t]={id:t,type:"service",icon:e,iconText:i,title:n,edges:[],in:r}},"addService"),mit=o(()=>Object.values(gr.records.nodes).filter(r2e),"getServices"),git=o(function({id:t,in:e}){gr.records.registeredIds[t]="node",gr.records.nodes[t]={id:t,type:"junction",edges:[],in:e}},"addJunction"),yit=o(()=>Object.values(gr.records.nodes).filter(n2e),"getJunctions"),vit=o(()=>Object.values(gr.records.nodes),"getNodes"),xit=o(t=>gr.records.nodes[t],"getNode"),bit=o(function({id:t,icon:e,in:r,title:n}){if(gr.records.registeredIds[t]!==void 0)throw new Error(`The group id [${t}] is already in use by another ${gr.records.registeredIds[t]}`);if(r!==void 0){if(t===r)throw new Error(`The group [${t}] cannot be placed within itself`);if(gr.records.registeredIds[r]===void 0)throw new Error(`The group [${t}]'s parent does not exist. Please make sure the parent is created before this group`);if(gr.records.registeredIds[r]==="node")throw new Error(`The group [${t}]'s parent is not a group`)}gr.records.registeredIds[t]="group",gr.records.groups[t]={id:t,icon:e,title:n,in:r}},"addGroup"),wit=o(()=>Object.values(gr.records.groups),"getGroups"),Tit=o(function({lhsId:t,rhsId:e,lhsDir:r,rhsDir:n,lhsInto:i,rhsInto:a,lhsGroup:s,rhsGroup:l,title:u}){if(!cF(r))throw new Error(`Invalid direction given for left hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${r}`);if(!cF(n))throw new Error(`Invalid direction given for right hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${n}`);if(gr.records.nodes[t]===void 0&&gr.records.groups[t]===void 0)throw new Error(`The left-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(gr.records.nodes[e]===void 0&&gr.records.groups[t]===void 0)throw new Error(`The right-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);let h=gr.records.nodes[t].in,f=gr.records.nodes[e].in;if(s&&h&&f&&h==f)throw new Error(`The left-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(l&&h&&f&&h==f)throw new Error(`The right-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let d={lhsId:t,lhsDir:r,lhsInto:i,lhsGroup:s,rhsId:e,rhsDir:n,rhsInto:a,rhsGroup:l,title:u};gr.records.edges.push(d),gr.records.nodes[t]&&gr.records.nodes[e]&&(gr.records.nodes[t].edges.push(gr.records.edges[gr.records.edges.length-1]),gr.records.nodes[e].edges.push(gr.records.edges[gr.records.edges.length-1]))},"addEdge"),kit=o(()=>gr.records.edges,"getEdges"),Eit=o(()=>{if(gr.records.dataStructures===void 0){let t=Object.entries(gr.records.nodes).reduce((s,[l,u])=>(s[l]=u.edges.reduce((h,f)=>{if(f.lhsId===l){let d=gb(f.lhsDir,f.rhsDir);d&&(h[d]=f.rhsId)}else{let d=gb(f.rhsDir,f.lhsDir);d&&(h[d]=f.lhsId)}return h},{}),s),{}),e=Object.keys(t)[0],r={[e]:1},n=Object.keys(t).reduce((s,l)=>l===e?s:{...s,[l]:1},{}),i=o(s=>{let l={[s]:[0,0]},u=[s];for(;u.length>0;){let h=u.shift();if(h){r[h]=1,delete n[h];let f=t[h],[d,p]=l[h];Object.entries(f).forEach(([m,g])=>{r[g]||(l[g]=e2e([d,p],m),u.push(g))})}}return l},"BFS"),a=[i(e)];for(;Object.keys(n).length>0;)a.push(i(Object.keys(n)[0]));gr.records.dataStructures={adjList:t,spatialMaps:a}}return gr.records.dataStructures},"getDataStructures"),Sit=o((t,e)=>{gr.records.elements[t]=e},"setElementForId"),Cit=o(t=>gr.records.elements[t],"getElementById"),X0={clear:dit,setDiagramTitle:ln,getDiagramTitle:Jr,setAccTitle:Rr,getAccTitle:Pr,setAccDescription:Br,getAccDescription:Fr,addService:pit,getServices:mit,addJunction:git,getJunctions:yit,getNodes:vit,getNode:xit,addGroup:bit,getGroups:wit,addEdge:Tit,getEdges:kit,setElementForId:Sit,getElementById:Cit,getDataStructures:Eit};o(Li,"getConfigField")});var Ait,a2e,s2e=M(()=>{"use strict";Ng();ht();ox();yb();Ait=o((t,e)=>{lf(t,e),t.groups.map(e.addGroup),t.services.map(r=>e.addService({...r,type:"service"})),t.junctions.map(r=>e.addJunction({...r,type:"junction"})),t.edges.map(e.addEdge)},"populateDb"),a2e={parse:o(async t=>{let e=await Gl("architecture",t);Y.debug(e),Ait(e,X0)},"parse")}});var _it,o2e,l2e=M(()=>{"use strict";_it=o(t=>` + .edge { + stroke-width: ${t.archEdgeWidth}; + stroke: ${t.archEdgeColor}; + fill: none; + } + + .arrow { + fill: ${t.archEdgeArrowColor}; + } + + .node-bkg { + fill: none; + stroke: ${t.archGroupBorderColor}; + stroke-width: ${t.archGroupBorderWidth}; + stroke-dasharray: 8; + } + .node-icon-text { + display: flex; + align-items: center; + } + + .node-icon-text > div { + color: #fff; + margin: 1px; + height: fit-content; + text-align: center; + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + } +`,"getStyles"),o2e=_it});var hF=Ni((vb,uF)=>{"use strict";o(function(e,r){typeof vb=="object"&&typeof uF=="object"?uF.exports=r():typeof define=="function"&&define.amd?define([],r):typeof vb=="object"?vb.layoutBase=r():e.layoutBase=r()},"webpackUniversalModuleDefinition")(vb,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return o(r,"__webpack_require__"),r.m=t,r.c=e,r.i=function(n){return n},r.d=function(n,i,a){r.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:a})},r.n=function(n){var i=n&&n.__esModule?o(function(){return n.default},"getDefault"):o(function(){return n},"getModuleExports");return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=28)}([function(t,e,r){"use strict";function n(){}o(n,"LayoutConstants"),n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_SIZE=40,n.SIMPLE_NODE_HALF_SIZE=n.SIMPLE_NODE_SIZE/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.WORLD_BOUNDARY=1e6,n.INITIAL_WORLD_BOUNDARY=n.WORLD_BOUNDARY/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,t.exports=n},function(t,e,r){"use strict";var n=r(2),i=r(8),a=r(9);function s(u,h,f){n.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=u,this.target=h}o(s,"LEdge"),s.prototype=Object.create(n.prototype);for(var l in n)s[l]=n[l];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(u){if(this.source===u)return this.target;if(this.target===u)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(u,h){for(var f=this.getOtherEnd(u),d=h.getGraphManager().getRoot();;){if(f.getOwner()==h)return f;if(f.getOwner()==d)break;f=f.getOwner().getParent()}return null},s.prototype.updateLength=function(){var u=new Array(4);this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),u),this.isOverlapingSourceAndTarget||(this.lengthX=u[0]-u[2],this.lengthY=u[1]-u[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=s},function(t,e,r){"use strict";function n(i){this.vGraphObject=i}o(n,"LGraphObject"),t.exports=n},function(t,e,r){"use strict";var n=r(2),i=r(10),a=r(13),s=r(0),l=r(16),u=r(5);function h(d,p,m,g){m==null&&g==null&&(g=p),n.call(this,g),d.graphManager!=null&&(d=d.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=g,this.edges=[],this.graphManager=d,m!=null&&p!=null?this.rect=new a(p.x,p.y,m.width,m.height):this.rect=new a}o(h,"LNode"),h.prototype=Object.create(n.prototype);for(var f in n)h[f]=n[f];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(d){this.rect.width=d},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(d){this.rect.height=d},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new u(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new u(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(d,p){this.rect.x=d.x,this.rect.y=d.y,this.rect.width=p.width,this.rect.height=p.height},h.prototype.setCenter=function(d,p){this.rect.x=d-this.rect.width/2,this.rect.y=p-this.rect.height/2},h.prototype.setLocation=function(d,p){this.rect.x=d,this.rect.y=p},h.prototype.moveBy=function(d,p){this.rect.x+=d,this.rect.y+=p},h.prototype.getEdgeListToNode=function(d){var p=[],m,g=this;return g.edges.forEach(function(y){if(y.target==d){if(y.source!=g)throw"Incorrect edge source!";p.push(y)}}),p},h.prototype.getEdgesBetween=function(d){var p=[],m,g=this;return g.edges.forEach(function(y){if(!(y.source==g||y.target==g))throw"Incorrect edge source and/or target";(y.target==d||y.source==d)&&p.push(y)}),p},h.prototype.getNeighborsList=function(){var d=new Set,p=this;return p.edges.forEach(function(m){if(m.source==p)d.add(m.target);else{if(m.target!=p)throw"Incorrect incidency!";d.add(m.source)}}),d},h.prototype.withChildren=function(){var d=new Set,p,m;if(d.add(this),this.child!=null)for(var g=this.child.getNodes(),y=0;yp?(this.rect.x-=(this.labelWidth-p)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(p+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(m+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>m?(this.rect.y-=(this.labelHeight-m)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(m+this.labelHeight))}}},h.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},h.prototype.transform=function(d){var p=this.rect.x;p>s.WORLD_BOUNDARY?p=s.WORLD_BOUNDARY:p<-s.WORLD_BOUNDARY&&(p=-s.WORLD_BOUNDARY);var m=this.rect.y;m>s.WORLD_BOUNDARY?m=s.WORLD_BOUNDARY:m<-s.WORLD_BOUNDARY&&(m=-s.WORLD_BOUNDARY);var g=new u(p,m),y=d.inverseTransformPoint(g);this.setLocation(y.x,y.y)},h.prototype.getLeft=function(){return this.rect.x},h.prototype.getRight=function(){return this.rect.x+this.rect.width},h.prototype.getTop=function(){return this.rect.y},h.prototype.getBottom=function(){return this.rect.y+this.rect.height},h.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},t.exports=h},function(t,e,r){"use strict";var n=r(0);function i(){}o(i,"FDLayoutConstants");for(var a in n)i[a]=n[a];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=i.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,t.exports=i},function(t,e,r){"use strict";function n(i,a){i==null&&a==null?(this.x=0,this.y=0):(this.x=i,this.y=a)}o(n,"PointD"),n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.setX=function(i){this.x=i},n.prototype.setY=function(i){this.y=i},n.prototype.getDifference=function(i){return new DimensionD(this.x-i.x,this.y-i.y)},n.prototype.getCopy=function(){return new n(this.x,this.y)},n.prototype.translate=function(i){return this.x+=i.width,this.y+=i.height,this},t.exports=n},function(t,e,r){"use strict";var n=r(2),i=r(10),a=r(0),s=r(7),l=r(3),u=r(1),h=r(13),f=r(12),d=r(11);function p(g,y,v){n.call(this,v),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=g,y!=null&&y instanceof s?this.graphManager=y:y!=null&&y instanceof Layout&&(this.graphManager=y.graphManager)}o(p,"LGraph"),p.prototype=Object.create(n.prototype);for(var m in n)p[m]=n[m];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(g,y,v){if(y==null&&v==null){var x=g;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(x)>-1)throw"Node already in graph!";return x.owner=this,this.getNodes().push(x),x}else{var b=g;if(!(this.getNodes().indexOf(y)>-1&&this.getNodes().indexOf(v)>-1))throw"Source or target not in graph!";if(!(y.owner==v.owner&&y.owner==this))throw"Both owners must be this graph!";return y.owner!=v.owner?null:(b.source=y,b.target=v,b.isInterGraph=!1,this.getEdges().push(b),y.edges.push(b),v!=y&&v.edges.push(b),b)}},p.prototype.remove=function(g){var y=g;if(g instanceof l){if(y==null)throw"Node is null!";if(!(y.owner!=null&&y.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var v=y.edges.slice(),x,b=v.length,w=0;w-1&&E>-1))throw"Source and/or target doesn't know this edge!";x.source.edges.splice(T,1),x.target!=x.source&&x.target.edges.splice(E,1);var _=x.source.owner.getEdges().indexOf(x);if(_==-1)throw"Not in owner's edge list!";x.source.owner.getEdges().splice(_,1)}},p.prototype.updateLeftTop=function(){for(var g=i.MAX_VALUE,y=i.MAX_VALUE,v,x,b,w=this.getNodes(),_=w.length,T=0;T<_;T++){var E=w[T];v=E.getTop(),x=E.getLeft(),g>v&&(g=v),y>x&&(y=x)}return g==i.MAX_VALUE?null:(w[0].getParent().paddingLeft!=null?b=w[0].getParent().paddingLeft:b=this.margin,this.left=y-b,this.top=g-b,new f(this.left,this.top))},p.prototype.updateBounds=function(g){for(var y=i.MAX_VALUE,v=-i.MAX_VALUE,x=i.MAX_VALUE,b=-i.MAX_VALUE,w,_,T,E,L,C=this.nodes,A=C.length,I=0;Iw&&(y=w),v<_&&(v=_),x>T&&(x=T),bw&&(y=w),v<_&&(v=_),x>T&&(x=T),b=this.nodes.length){var A=0;v.forEach(function(I){I.owner==g&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},t.exports=p},function(t,e,r){"use strict";var n,i=r(1);function a(s){n=r(6),this.layout=s,this.graphs=[],this.edges=[]}o(a,"LGraphManager"),a.prototype.addRoot=function(){var s=this.layout.newGraph(),l=this.layout.newNode(null),u=this.add(s,l);return this.setRootGraph(u),this.rootGraph},a.prototype.add=function(s,l,u,h,f){if(u==null&&h==null&&f==null){if(s==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(s)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(s),s.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return s.parent=l,l.child=s,s}else{f=u,h=l,u=s;var d=h.getOwner(),p=f.getOwner();if(!(d!=null&&d.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(p!=null&&p.getGraphManager()==this))throw"Target not in this graph mgr!";if(d==p)return u.isInterGraph=!1,d.add(u,h,f);if(u.isInterGraph=!0,u.source=h,u.target=f,this.edges.indexOf(u)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(u),!(u.source!=null&&u.target!=null))throw"Edge source and/or target is null!";if(!(u.source.edges.indexOf(u)==-1&&u.target.edges.indexOf(u)==-1))throw"Edge already in source and/or target incidency list!";return u.source.edges.push(u),u.target.edges.push(u),u}},a.prototype.remove=function(s){if(s instanceof n){var l=s;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var u=[];u=u.concat(l.getEdges());for(var h,f=u.length,d=0;d=s.getRight()?l[0]+=Math.min(s.getX()-a.getX(),a.getRight()-s.getRight()):s.getX()<=a.getX()&&s.getRight()>=a.getRight()&&(l[0]+=Math.min(a.getX()-s.getX(),s.getRight()-a.getRight())),a.getY()<=s.getY()&&a.getBottom()>=s.getBottom()?l[1]+=Math.min(s.getY()-a.getY(),a.getBottom()-s.getBottom()):s.getY()<=a.getY()&&s.getBottom()>=a.getBottom()&&(l[1]+=Math.min(a.getY()-s.getY(),s.getBottom()-a.getBottom()));var f=Math.abs((s.getCenterY()-a.getCenterY())/(s.getCenterX()-a.getCenterX()));s.getCenterY()===a.getCenterY()&&s.getCenterX()===a.getCenterX()&&(f=1);var d=f*l[0],p=l[1]/f;l[0]d)return l[0]=u,l[1]=m,l[2]=f,l[3]=C,!1;if(hf)return l[0]=p,l[1]=h,l[2]=E,l[3]=d,!1;if(uf?(l[0]=y,l[1]=v,k=!0):(l[0]=g,l[1]=m,k=!0):S===N&&(u>f?(l[0]=p,l[1]=m,k=!0):(l[0]=x,l[1]=v,k=!0)),-O===N?f>u?(l[2]=L,l[3]=C,R=!0):(l[2]=E,l[3]=T,R=!0):O===N&&(f>u?(l[2]=_,l[3]=T,R=!0):(l[2]=A,l[3]=C,R=!0)),k&&R)return!1;if(u>f?h>d?(P=this.getCardinalDirection(S,N,4),F=this.getCardinalDirection(O,N,2)):(P=this.getCardinalDirection(-S,N,3),F=this.getCardinalDirection(-O,N,1)):h>d?(P=this.getCardinalDirection(-S,N,1),F=this.getCardinalDirection(-O,N,3)):(P=this.getCardinalDirection(S,N,2),F=this.getCardinalDirection(O,N,4)),!k)switch(P){case 1:$=m,B=u+-w/N,l[0]=B,l[1]=$;break;case 2:B=x,$=h+b*N,l[0]=B,l[1]=$;break;case 3:$=v,B=u+w/N,l[0]=B,l[1]=$;break;case 4:B=y,$=h+-b*N,l[0]=B,l[1]=$;break}if(!R)switch(F){case 1:W=T,z=f+-D/N,l[2]=z,l[3]=W;break;case 2:z=A,W=d+I*N,l[2]=z,l[3]=W;break;case 3:W=C,z=f+D/N,l[2]=z,l[3]=W;break;case 4:z=L,W=d+-I*N,l[2]=z,l[3]=W;break}}return!1},i.getCardinalDirection=function(a,s,l){return a>s?l:1+l%4},i.getIntersection=function(a,s,l,u){if(u==null)return this.getIntersection2(a,s,l);var h=a.x,f=a.y,d=s.x,p=s.y,m=l.x,g=l.y,y=u.x,v=u.y,x=void 0,b=void 0,w=void 0,_=void 0,T=void 0,E=void 0,L=void 0,C=void 0,A=void 0;return w=p-f,T=h-d,L=d*f-h*p,_=v-g,E=m-y,C=y*g-m*v,A=w*E-_*T,A===0?null:(x=(T*C-E*L)/A,b=(_*L-w*C)/A,new n(x,b))},i.angleOfVector=function(a,s,l,u){var h=void 0;return a!==l?(h=Math.atan((u-s)/(l-a)),l=0){var v=(-m+Math.sqrt(m*m-4*p*g))/(2*p),x=(-m-Math.sqrt(m*m-4*p*g))/(2*p),b=null;return v>=0&&v<=1?[v]:x>=0&&x<=1?[x]:b}else return null},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,t.exports=i},function(t,e,r){"use strict";function n(){}o(n,"IMath"),n.sign=function(i){return i>0?1:i<0?-1:0},n.floor=function(i){return i<0?Math.ceil(i):Math.floor(i)},n.ceil=function(i){return i<0?Math.floor(i):Math.ceil(i)},t.exports=n},function(t,e,r){"use strict";function n(){}o(n,"Integer"),n.MAX_VALUE=2147483647,n.MIN_VALUE=-2147483648,t.exports=n},function(t,e,r){"use strict";var n=function(){function h(f,d){for(var p=0;p"u"?"undefined":n(a);return a==null||s!="object"&&s!="function"},t.exports=i},function(t,e,r){"use strict";function n(m){if(Array.isArray(m)){for(var g=0,y=Array(m.length);g0&&g;){for(w.push(T[0]);w.length>0&&g;){var E=w[0];w.splice(0,1),b.add(E);for(var L=E.getEdges(),x=0;x-1&&T.splice(D,1)}b=new Set,_=new Map}}return m},p.prototype.createDummyNodesForBendpoints=function(m){for(var g=[],y=m.source,v=this.graphManager.calcLowestCommonAncestor(m.source,m.target),x=0;x0){for(var v=this.edgeToDummyNodes.get(y),x=0;x=0&&g.splice(C,1);var A=_.getNeighborsList();A.forEach(function(k){if(y.indexOf(k)<0){var R=v.get(k),S=R-1;S==1&&E.push(k),v.set(k,S)}})}y=y.concat(E),(g.length==1||g.length==2)&&(x=!0,b=g[0])}return b},p.prototype.setGraphManager=function(m){this.graphManager=m},t.exports=p},function(t,e,r){"use strict";function n(){}o(n,"RandomSeed"),n.seed=1,n.x=0,n.nextDouble=function(){return n.x=Math.sin(n.seed++)*1e4,n.x-Math.floor(n.x)},t.exports=n},function(t,e,r){"use strict";var n=r(5);function i(a,s){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}o(i,"Transform"),i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(a){this.lworldExtX=a},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(a){this.lworldExtY=a},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},i.prototype.transformX=function(a){var s=0,l=this.lworldExtX;return l!=0&&(s=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/l),s},i.prototype.transformY=function(a){var s=0,l=this.lworldExtY;return l!=0&&(s=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/l),s},i.prototype.inverseTransformX=function(a){var s=0,l=this.ldeviceExtX;return l!=0&&(s=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/l),s},i.prototype.inverseTransformY=function(a){var s=0,l=this.ldeviceExtY;return l!=0&&(s=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/l),s},i.prototype.inverseTransformPoint=function(a){var s=new n(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return s},t.exports=i},function(t,e,r){"use strict";function n(d){if(Array.isArray(d)){for(var p=0,m=Array(d.length);pa.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(d-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(d>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(d-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var d=this.getAllEdges(),p,m=0;m0&&arguments[0]!==void 0?arguments[0]:!0,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m,g,y,v,x=this.getAllNodes(),b;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&d&&this.updateGrid(),b=new Set,m=0;mw||b>w)&&(d.gravitationForceX=-this.gravityConstant*y,d.gravitationForceY=-this.gravityConstant*v)):(w=p.getEstimatedSize()*this.compoundGravityRangeFactor,(x>w||b>w)&&(d.gravitationForceX=-this.gravityConstant*y*this.compoundGravityConstant,d.gravitationForceY=-this.gravityConstant*v*this.compoundGravityConstant))},h.prototype.isConverged=function(){var d,p=!1;return this.totalIterations>this.maxIterations/3&&(p=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),d=this.totalDisplacement=x.length||w>=x[0].length)){for(var _=0;_h},"_defaultCompareFunction")}]),l}();t.exports=s},function(t,e,r){"use strict";function n(){}o(n,"SVD"),n.svd=function(i){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=i.length,this.n=i[0].length;var a=Math.min(this.m,this.n);this.s=function(dt){for(var Xe=[];dt-- >0;)Xe.push(0);return Xe}(Math.min(this.m+1,this.n)),this.U=function(dt){var Xe=o(function ct(Lt){if(Lt.length==0)return 0;for(var Rt=[],zt=0;zt0;)Xe.push(0);return Xe}(this.n),l=function(dt){for(var Xe=[];dt-- >0;)Xe.push(0);return Xe}(this.m),u=!0,h=!0,f=Math.min(this.m-1,this.n),d=Math.max(0,Math.min(this.n-2,this.m)),p=0;p=0;N--)if(this.s[N]!==0){for(var P=N+1;P=0;K--){if(function(dt,Xe){return dt&&Xe}(K0;){var ce=void 0,te=void 0;for(ce=R-2;ce>=-1&&ce!==-1;ce--)if(Math.abs(s[ce])<=ue+ae*(Math.abs(this.s[ce])+Math.abs(this.s[ce+1]))){s[ce]=0;break}if(ce===R-2)te=4;else{var De=void 0;for(De=R-1;De>=ce&&De!==ce;De--){var oe=(De!==R?Math.abs(s[De]):0)+(De!==ce+1?Math.abs(s[De-1]):0);if(Math.abs(this.s[De])<=ue+ae*oe){this.s[De]=0;break}}De===ce?te=3:De===R-1?te=1:(te=2,ce=De)}switch(ce++,te){case 1:{var ke=s[R-2];s[R-2]=0;for(var Fe=R-2;Fe>=ce;Fe--){var Be=n.hypot(this.s[Fe],ke),Ve=this.s[Fe]/Be,Ge=ke/Be;if(this.s[Fe]=Be,Fe!==ce&&(ke=-Ge*s[Fe-1],s[Fe-1]=Ve*s[Fe-1]),h)for(var He=0;He=this.s[ce+1]);){var rt=this.s[ce];if(this.s[ce]=this.s[ce+1],this.s[ce+1]=rt,h&&ceMath.abs(a)?(s=a/i,s=Math.abs(i)*Math.sqrt(1+s*s)):a!=0?(s=i/a,s=Math.abs(a)*Math.sqrt(1+s*s)):s=0,s},t.exports=n},function(t,e,r){"use strict";var n=function(){function s(l,u){for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,s),this.sequence1=l,this.sequence2=u,this.match_score=h,this.mismatch_penalty=f,this.gap_penalty=d,this.iMax=l.length+1,this.jMax=u.length+1,this.grid=new Array(this.iMax);for(var p=0;p=0;l--){var u=this.listeners[l];u.event===a&&u.callback===s&&this.listeners.splice(l,1)}},i.emit=function(a,s){for(var l=0;l{"use strict";o(function(e,r){typeof xb=="object"&&typeof fF=="object"?fF.exports=r(hF()):typeof define=="function"&&define.amd?define(["layout-base"],r):typeof xb=="object"?xb.coseBase=r(hF()):e.coseBase=r(e.layoutBase)},"webpackUniversalModuleDefinition")(xb,function(t){return(()=>{"use strict";var e={45:(a,s,l)=>{var u={};u.layoutBase=l(551),u.CoSEConstants=l(806),u.CoSEEdge=l(767),u.CoSEGraph=l(880),u.CoSEGraphManager=l(578),u.CoSELayout=l(765),u.CoSENode=l(991),u.ConstraintHandler=l(902),a.exports=u},806:(a,s,l)=>{var u=l(551).FDLayoutConstants;function h(){}o(h,"CoSEConstants");for(var f in u)h[f]=u[f];h.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,h.DEFAULT_RADIAL_SEPARATION=u.DEFAULT_EDGE_LENGTH,h.DEFAULT_COMPONENT_SEPERATION=60,h.TILE=!0,h.TILING_PADDING_VERTICAL=10,h.TILING_PADDING_HORIZONTAL=10,h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!0,h.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,h.TREE_REDUCTION_ON_INCREMENTAL=!0,h.PURE_INCREMENTAL=h.DEFAULT_INCREMENTAL,a.exports=h},767:(a,s,l)=>{var u=l(551).FDLayoutEdge;function h(d,p,m){u.call(this,d,p,m)}o(h,"CoSEEdge"),h.prototype=Object.create(u.prototype);for(var f in u)h[f]=u[f];a.exports=h},880:(a,s,l)=>{var u=l(551).LGraph;function h(d,p,m){u.call(this,d,p,m)}o(h,"CoSEGraph"),h.prototype=Object.create(u.prototype);for(var f in u)h[f]=u[f];a.exports=h},578:(a,s,l)=>{var u=l(551).LGraphManager;function h(d){u.call(this,d)}o(h,"CoSEGraphManager"),h.prototype=Object.create(u.prototype);for(var f in u)h[f]=u[f];a.exports=h},765:(a,s,l)=>{var u=l(551).FDLayout,h=l(578),f=l(880),d=l(991),p=l(767),m=l(806),g=l(902),y=l(551).FDLayoutConstants,v=l(551).LayoutConstants,x=l(551).Point,b=l(551).PointD,w=l(551).DimensionD,_=l(551).Layout,T=l(551).Integer,E=l(551).IGeometry,L=l(551).LGraph,C=l(551).Transform,A=l(551).LinkedList;function I(){u.call(this),this.toBeTiled={},this.constraints={}}o(I,"CoSELayout"),I.prototype=Object.create(u.prototype);for(var D in u)I[D]=u[D];I.prototype.newGraphManager=function(){var k=new h(this);return this.graphManager=k,k},I.prototype.newGraph=function(k){return new f(null,this.graphManager,k)},I.prototype.newNode=function(k){return new d(this.graphManager,k)},I.prototype.newEdge=function(k){return new p(null,null,k)},I.prototype.initParameters=function(){u.prototype.initParameters.call(this,arguments),this.isSubLayout||(m.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=m.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=m.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=y.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=y.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=y.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=y.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},I.prototype.initSpringEmbedder=function(){u.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/y.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},I.prototype.layout=function(){var k=v.DEFAULT_CREATE_BENDS_AS_NEEDED;return k&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},I.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(m.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var R=new Set(this.getAllNodes()),S=this.nodesWithGravity.filter(function(P){return R.has(P)});this.graphManager.setAllNodesToApplyGravitation(S)}}else{var k=this.getFlatForest();if(k.length>0)this.positionNodesRadially(k);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var R=new Set(this.getAllNodes()),S=this.nodesWithGravity.filter(function(O){return R.has(O)});this.graphManager.setAllNodesToApplyGravitation(S),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(g.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),m.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},I.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%y.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var k=new Set(this.getAllNodes()),R=this.nodesWithGravity.filter(function(N){return k.has(N)});this.graphManager.setAllNodesToApplyGravitation(R),this.graphManager.updateBounds(),this.updateGrid(),m.PURE_INCREMENTAL?this.coolingFactor=y.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=y.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),m.PURE_INCREMENTAL?this.coolingFactor=y.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=y.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var S=!this.isTreeGrowing&&!this.isGrowthFinished,O=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(S,O),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},I.prototype.getPositionsData=function(){for(var k=this.graphManager.getAllNodes(),R={},S=0;S0&&this.updateDisplacements();for(var S=0;S0&&(O.fixedNodeWeight=P)}}if(this.constraints.relativePlacementConstraint){var F=new Map,B=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(ee){k.fixedNodesOnHorizontal.add(ee),k.fixedNodesOnVertical.add(ee)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var $=this.constraints.alignmentConstraint.vertical,S=0;S<$.length;S++)this.dummyToNodeForVerticalAlignment.set("dummy"+S,[]),$[S].forEach(function(J){F.set(J,"dummy"+S),k.dummyToNodeForVerticalAlignment.get("dummy"+S).push(J),k.fixedNodeSet.has(J)&&k.fixedNodesOnHorizontal.add("dummy"+S)});if(this.constraints.alignmentConstraint.horizontal)for(var z=this.constraints.alignmentConstraint.horizontal,S=0;S=2*ee.length/3;q--)J=Math.floor(Math.random()*(q+1)),H=ee[q],ee[q]=ee[J],ee[J]=H;return ee},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(ee){if(ee.left){var J=F.has(ee.left)?F.get(ee.left):ee.left,H=F.has(ee.right)?F.get(ee.right):ee.right;k.nodesInRelativeHorizontal.includes(J)||(k.nodesInRelativeHorizontal.push(J),k.nodeToRelativeConstraintMapHorizontal.set(J,[]),k.dummyToNodeForVerticalAlignment.has(J)?k.nodeToTempPositionMapHorizontal.set(J,k.idToNodeMap.get(k.dummyToNodeForVerticalAlignment.get(J)[0]).getCenterX()):k.nodeToTempPositionMapHorizontal.set(J,k.idToNodeMap.get(J).getCenterX())),k.nodesInRelativeHorizontal.includes(H)||(k.nodesInRelativeHorizontal.push(H),k.nodeToRelativeConstraintMapHorizontal.set(H,[]),k.dummyToNodeForVerticalAlignment.has(H)?k.nodeToTempPositionMapHorizontal.set(H,k.idToNodeMap.get(k.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):k.nodeToTempPositionMapHorizontal.set(H,k.idToNodeMap.get(H).getCenterX())),k.nodeToRelativeConstraintMapHorizontal.get(J).push({right:H,gap:ee.gap}),k.nodeToRelativeConstraintMapHorizontal.get(H).push({left:J,gap:ee.gap})}else{var q=B.has(ee.top)?B.get(ee.top):ee.top,Z=B.has(ee.bottom)?B.get(ee.bottom):ee.bottom;k.nodesInRelativeVertical.includes(q)||(k.nodesInRelativeVertical.push(q),k.nodeToRelativeConstraintMapVertical.set(q,[]),k.dummyToNodeForHorizontalAlignment.has(q)?k.nodeToTempPositionMapVertical.set(q,k.idToNodeMap.get(k.dummyToNodeForHorizontalAlignment.get(q)[0]).getCenterY()):k.nodeToTempPositionMapVertical.set(q,k.idToNodeMap.get(q).getCenterY())),k.nodesInRelativeVertical.includes(Z)||(k.nodesInRelativeVertical.push(Z),k.nodeToRelativeConstraintMapVertical.set(Z,[]),k.dummyToNodeForHorizontalAlignment.has(Z)?k.nodeToTempPositionMapVertical.set(Z,k.idToNodeMap.get(k.dummyToNodeForHorizontalAlignment.get(Z)[0]).getCenterY()):k.nodeToTempPositionMapVertical.set(Z,k.idToNodeMap.get(Z).getCenterY())),k.nodeToRelativeConstraintMapVertical.get(q).push({bottom:Z,gap:ee.gap}),k.nodeToRelativeConstraintMapVertical.get(Z).push({top:q,gap:ee.gap})}});else{var W=new Map,j=new Map;this.constraints.relativePlacementConstraint.forEach(function(ee){if(ee.left){var J=F.has(ee.left)?F.get(ee.left):ee.left,H=F.has(ee.right)?F.get(ee.right):ee.right;W.has(J)?W.get(J).push(H):W.set(J,[H]),W.has(H)?W.get(H).push(J):W.set(H,[J])}else{var q=B.has(ee.top)?B.get(ee.top):ee.top,Z=B.has(ee.bottom)?B.get(ee.bottom):ee.bottom;j.has(q)?j.get(q).push(Z):j.set(q,[Z]),j.has(Z)?j.get(Z).push(q):j.set(Z,[q])}});var K=o(function(J,H){var q=[],Z=[],ae=new A,ue=new Set,ce=0;return J.forEach(function(te,De){if(!ue.has(De)){q[ce]=[],Z[ce]=!1;var oe=De;for(ae.push(oe),ue.add(oe),q[ce].push(oe);ae.length!=0;){oe=ae.shift(),H.has(oe)&&(Z[ce]=!0);var ke=J.get(oe);ke.forEach(function(Fe){ue.has(Fe)||(ae.push(Fe),ue.add(Fe),q[ce].push(Fe))})}ce++}}),{components:q,isFixed:Z}},"constructComponents"),ie=K(W,k.fixedNodesOnHorizontal);this.componentsOnHorizontal=ie.components,this.fixedComponentsOnHorizontal=ie.isFixed;var Q=K(j,k.fixedNodesOnVertical);this.componentsOnVertical=Q.components,this.fixedComponentsOnVertical=Q.isFixed}}},I.prototype.updateDisplacements=function(){var k=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(Q){var ee=k.idToNodeMap.get(Q.nodeId);ee.displacementX=0,ee.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var R=this.constraints.alignmentConstraint.vertical,S=0;S1){var B;for(B=0;BO&&(O=Math.floor(F.y)),P=Math.floor(F.x+m.DEFAULT_COMPONENT_SEPERATION)}this.transform(new b(v.WORLD_CENTER_X-F.x/2,v.WORLD_CENTER_Y-F.y/2))},I.radialLayout=function(k,R,S){var O=Math.max(this.maxDiagonalInTree(k),m.DEFAULT_RADIAL_SEPARATION);I.branchRadialLayout(R,null,0,359,0,O);var N=L.calculateBounds(k),P=new C;P.setDeviceOrgX(N.getMinX()),P.setDeviceOrgY(N.getMinY()),P.setWorldOrgX(S.x),P.setWorldOrgY(S.y);for(var F=0;F1;){var q=H[0];H.splice(0,1);var Z=K.indexOf(q);Z>=0&&K.splice(Z,1),ee--,ie--}R!=null?J=(K.indexOf(H[0])+1)%ee:J=0;for(var ae=Math.abs(O-S)/ie,ue=J;Q!=ie;ue=++ue%ee){var ce=K[ue].getOtherEnd(k);if(ce!=R){var te=(S+Q*ae)%360,De=(te+ae)%360;I.branchRadialLayout(ce,k,te,De,N+P,P),Q++}}},I.maxDiagonalInTree=function(k){for(var R=T.MIN_VALUE,S=0;SR&&(R=N)}return R},I.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},I.prototype.groupZeroDegreeMembers=function(){var k=this,R={};this.memberGroups={},this.idToDummyNode={};for(var S=[],O=this.graphManager.getAllNodes(),N=0;N"u"&&(R[B]=[]),R[B]=R[B].concat(P)}Object.keys(R).forEach(function($){if(R[$].length>1){var z="DummyCompound_"+$;k.memberGroups[z]=R[$];var W=R[$][0].getParent(),j=new d(k.graphManager);j.id=z,j.paddingLeft=W.paddingLeft||0,j.paddingRight=W.paddingRight||0,j.paddingBottom=W.paddingBottom||0,j.paddingTop=W.paddingTop||0,k.idToDummyNode[z]=j;var K=k.getGraphManager().add(k.newGraph(),j),ie=W.getChild();ie.add(j);for(var Q=0;QN?(O.rect.x-=(O.labelWidth-N)/2,O.setWidth(O.labelWidth),O.labelMarginLeft=(O.labelWidth-N)/2):O.labelPosHorizontal=="right"&&O.setWidth(N+O.labelWidth)),O.labelHeight&&(O.labelPosVertical=="top"?(O.rect.y-=O.labelHeight,O.setHeight(P+O.labelHeight),O.labelMarginTop=O.labelHeight):O.labelPosVertical=="center"&&O.labelHeight>P?(O.rect.y-=(O.labelHeight-P)/2,O.setHeight(O.labelHeight),O.labelMarginTop=(O.labelHeight-P)/2):O.labelPosVertical=="bottom"&&O.setHeight(P+O.labelHeight))}})},I.prototype.repopulateCompounds=function(){for(var k=this.compoundOrder.length-1;k>=0;k--){var R=this.compoundOrder[k],S=R.id,O=R.paddingLeft,N=R.paddingTop,P=R.labelMarginLeft,F=R.labelMarginTop;this.adjustLocations(this.tiledMemberPack[S],R.rect.x,R.rect.y,O,N,P,F)}},I.prototype.repopulateZeroDegreeMembers=function(){var k=this,R=this.tiledZeroDegreePack;Object.keys(R).forEach(function(S){var O=k.idToDummyNode[S],N=O.paddingLeft,P=O.paddingTop,F=O.labelMarginLeft,B=O.labelMarginTop;k.adjustLocations(R[S],O.rect.x,O.rect.y,N,P,F,B)})},I.prototype.getToBeTiled=function(k){var R=k.id;if(this.toBeTiled[R]!=null)return this.toBeTiled[R];var S=k.getChild();if(S==null)return this.toBeTiled[R]=!1,!1;for(var O=S.getNodes(),N=0;N0)return this.toBeTiled[R]=!1,!1;if(P.getChild()==null){this.toBeTiled[P.id]=!1;continue}if(!this.getToBeTiled(P))return this.toBeTiled[R]=!1,!1}return this.toBeTiled[R]=!0,!0},I.prototype.getNodeDegree=function(k){for(var R=k.id,S=k.getEdges(),O=0,N=0;NW&&(W=K.rect.height)}S+=W+k.verticalPadding}},I.prototype.tileCompoundMembers=function(k,R){var S=this;this.tiledMemberPack=[],Object.keys(k).forEach(function(O){var N=R[O];if(S.tiledMemberPack[O]=S.tileNodes(k[O],N.paddingLeft+N.paddingRight),N.rect.width=S.tiledMemberPack[O].width,N.rect.height=S.tiledMemberPack[O].height,N.setCenter(S.tiledMemberPack[O].centerX,S.tiledMemberPack[O].centerY),N.labelMarginLeft=0,N.labelMarginTop=0,m.NODE_DIMENSIONS_INCLUDE_LABELS){var P=N.rect.width,F=N.rect.height;N.labelWidth&&(N.labelPosHorizontal=="left"?(N.rect.x-=N.labelWidth,N.setWidth(P+N.labelWidth),N.labelMarginLeft=N.labelWidth):N.labelPosHorizontal=="center"&&N.labelWidth>P?(N.rect.x-=(N.labelWidth-P)/2,N.setWidth(N.labelWidth),N.labelMarginLeft=(N.labelWidth-P)/2):N.labelPosHorizontal=="right"&&N.setWidth(P+N.labelWidth)),N.labelHeight&&(N.labelPosVertical=="top"?(N.rect.y-=N.labelHeight,N.setHeight(F+N.labelHeight),N.labelMarginTop=N.labelHeight):N.labelPosVertical=="center"&&N.labelHeight>F?(N.rect.y-=(N.labelHeight-F)/2,N.setHeight(N.labelHeight),N.labelMarginTop=(N.labelHeight-F)/2):N.labelPosVertical=="bottom"&&N.setHeight(F+N.labelHeight))}})},I.prototype.tileNodes=function(k,R){var S=this.tileNodesByFavoringDim(k,R,!0),O=this.tileNodesByFavoringDim(k,R,!1),N=this.getOrgRatio(S),P=this.getOrgRatio(O),F;return PB&&(B=Q.getWidth())});var $=P/N,z=F/N,W=Math.pow(S-O,2)+4*($+O)*(z+S)*N,j=(O-S+Math.sqrt(W))/(2*($+O)),K;R?(K=Math.ceil(j),K==j&&K++):K=Math.floor(j);var ie=K*($+O)-O;return B>ie&&(ie=B),ie+=O*2,ie},I.prototype.tileNodesByFavoringDim=function(k,R,S){var O=m.TILING_PADDING_VERTICAL,N=m.TILING_PADDING_HORIZONTAL,P=m.TILING_COMPARE_BY,F={rows:[],rowWidth:[],rowHeight:[],width:0,height:R,verticalPadding:O,horizontalPadding:N,centerX:0,centerY:0};P&&(F.idealRowWidth=this.calcIdealRowWidth(k,S));var B=o(function(ee){return ee.rect.width*ee.rect.height},"getNodeArea"),$=o(function(ee,J){return B(J)-B(ee)},"areaCompareFcn");k.sort(function(Q,ee){var J=$;return F.idealRowWidth?(J=P,J(Q.id,ee.id)):J(Q,ee)});for(var z=0,W=0,j=0;j0&&(F+=k.horizontalPadding),k.rowWidth[S]=F,k.width0&&(B+=k.verticalPadding);var $=0;B>k.rowHeight[S]&&($=k.rowHeight[S],k.rowHeight[S]=B,$=k.rowHeight[S]-$),k.height+=$,k.rows[S].push(R)},I.prototype.getShortestRowIndex=function(k){for(var R=-1,S=Number.MAX_VALUE,O=0;OS&&(R=O,S=k.rowWidth[O]);return R},I.prototype.canAddHorizontal=function(k,R,S){if(k.idealRowWidth){var O=k.rows.length-1,N=k.rowWidth[O];return N+R+k.horizontalPadding<=k.idealRowWidth}var P=this.getShortestRowIndex(k);if(P<0)return!0;var F=k.rowWidth[P];if(F+k.horizontalPadding+R<=k.width)return!0;var B=0;k.rowHeight[P]0&&(B=S+k.verticalPadding-k.rowHeight[P]);var $;k.width-F>=R+k.horizontalPadding?$=(k.height+B)/(F+R+k.horizontalPadding):$=(k.height+B)/k.width,B=S+k.verticalPadding;var z;return k.widthP&&R!=S){O.splice(-1,1),k.rows[S].push(N),k.rowWidth[R]=k.rowWidth[R]-P,k.rowWidth[S]=k.rowWidth[S]+P,k.width=k.rowWidth[instance.getLongestRowIndex(k)];for(var F=Number.MIN_VALUE,B=0;BF&&(F=O[B].height);R>0&&(F+=k.verticalPadding);var $=k.rowHeight[R]+k.rowHeight[S];k.rowHeight[R]=F,k.rowHeight[S]0)for(var ie=N;ie<=P;ie++)K[0]+=this.grid[ie][F-1].length+this.grid[ie][F].length-1;if(P0)for(var ie=F;ie<=B;ie++)K[3]+=this.grid[N-1][ie].length+this.grid[N][ie].length-1;for(var Q=T.MAX_VALUE,ee,J,H=0;H{var u=l(551).FDLayoutNode,h=l(551).IMath;function f(p,m,g,y){u.call(this,p,m,g,y)}o(f,"CoSENode"),f.prototype=Object.create(u.prototype);for(var d in u)f[d]=u[d];f.prototype.calculateDisplacement=function(){var p=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=p.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=p.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=p.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=p.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>p.coolingFactor*p.maxNodeDisplacement&&(this.displacementX=p.coolingFactor*p.maxNodeDisplacement*h.sign(this.displacementX)),Math.abs(this.displacementY)>p.coolingFactor*p.maxNodeDisplacement&&(this.displacementY=p.coolingFactor*p.maxNodeDisplacement*h.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},f.prototype.propogateDisplacementToChildren=function(p,m){for(var g=this.getChild().getNodes(),y,v=0;v{function u(g){if(Array.isArray(g)){for(var y=0,v=Array(g.length);y0){var Tt=0;Ye.forEach(function(rt){Te=="horizontal"?(me.set(rt,x.has(rt)?b[x.get(rt)]:Ee.get(rt)),Tt+=me.get(rt)):(me.set(rt,x.has(rt)?w[x.get(rt)]:Ee.get(rt)),Tt+=me.get(rt))}),Tt=Tt/Ye.length,vt.forEach(function(rt){se.has(rt)||me.set(rt,Tt)})}else{var $e=0;vt.forEach(function(rt){Te=="horizontal"?$e+=x.has(rt)?b[x.get(rt)]:Ee.get(rt):$e+=x.has(rt)?w[x.get(rt)]:Ee.get(rt)}),$e=$e/vt.length,vt.forEach(function(rt){me.set(rt,$e)})}});for(var tt=o(function(){var Ye=Re.shift(),Tt=U.get(Ye);Tt.forEach(function($e){if(me.get($e.id)rt&&(rt=Rt),zt<$e&&($e=zt),zt>ft&&(ft=zt)}}catch(yt){er=!0,dt=yt}finally{try{!kt&&Xe.return&&Xe.return()}finally{if(er)throw dt}}var Xn=(Tt+rt)/2-($e+ft)/2,or=!0,hn=!1,Tn=void 0;try{for(var Ur=vt[Symbol.iterator](),ri;!(or=(ri=Ur.next()).done);or=!0){var Mn=ri.value;me.set(Mn,me.get(Mn)+Xn)}}catch(yt){hn=!0,Tn=yt}finally{try{!or&&Ur.return&&Ur.return()}finally{if(hn)throw Tn}}})}return me},"findAppropriatePositionForRelativePlacement"),D=o(function(U){var Te=0,se=0,Ee=0,Ae=0;if(U.forEach(function(We){We.left?b[x.get(We.left)]-b[x.get(We.right)]>=0?Te++:se++:w[x.get(We.top)]-w[x.get(We.bottom)]>=0?Ee++:Ae++}),Te>se&&Ee>Ae)for(var Pe=0;Pese)for(var Me=0;MeAe)for(var me=0;me1)y.fixedNodeConstraint.forEach(function(ye,U){O[U]=[ye.position.x,ye.position.y],N[U]=[b[x.get(ye.nodeId)],w[x.get(ye.nodeId)]]}),P=!0;else if(y.alignmentConstraint)(function(){var ye=0;if(y.alignmentConstraint.vertical){for(var U=y.alignmentConstraint.vertical,Te=o(function(me){var We=new Set;U[me].forEach(function(gt){We.add(gt)});var Re=new Set([].concat(u(We)).filter(function(gt){return B.has(gt)})),tt=void 0;Re.size>0?tt=b[x.get(Re.values().next().value)]:tt=A(We).x,U[me].forEach(function(gt){O[ye]=[tt,w[x.get(gt)]],N[ye]=[b[x.get(gt)],w[x.get(gt)]],ye++})},"_loop2"),se=0;se0?tt=b[x.get(Re.values().next().value)]:tt=A(We).y,Ee[me].forEach(function(gt){O[ye]=[b[x.get(gt)],tt],N[ye]=[b[x.get(gt)],w[x.get(gt)]],ye++})},"_loop3"),Pe=0;Pej&&(j=W[ie].length,K=ie);if(j0){var Ve={x:0,y:0};y.fixedNodeConstraint.forEach(function(ye,U){var Te={x:b[x.get(ye.nodeId)],y:w[x.get(ye.nodeId)]},se=ye.position,Ee=C(se,Te);Ve.x+=Ee.x,Ve.y+=Ee.y}),Ve.x/=y.fixedNodeConstraint.length,Ve.y/=y.fixedNodeConstraint.length,b.forEach(function(ye,U){b[U]+=Ve.x}),w.forEach(function(ye,U){w[U]+=Ve.y}),y.fixedNodeConstraint.forEach(function(ye){b[x.get(ye.nodeId)]=ye.position.x,w[x.get(ye.nodeId)]=ye.position.y})}if(y.alignmentConstraint){if(y.alignmentConstraint.vertical)for(var Ge=y.alignmentConstraint.vertical,He=o(function(U){var Te=new Set;Ge[U].forEach(function(Ae){Te.add(Ae)});var se=new Set([].concat(u(Te)).filter(function(Ae){return B.has(Ae)})),Ee=void 0;se.size>0?Ee=b[x.get(se.values().next().value)]:Ee=A(Te).x,Te.forEach(function(Ae){B.has(Ae)||(b[x.get(Ae)]=Ee)})},"_loop4"),xe=0;xe0?Ee=w[x.get(se.values().next().value)]:Ee=A(Te).y,Te.forEach(function(Ae){B.has(Ae)||(w[x.get(Ae)]=Ee)})},"_loop5"),he=0;he{a.exports=t}},r={};function n(a){var s=r[a];if(s!==void 0)return s.exports;var l=r[a]={exports:{}};return e[a](l,l.exports,n),l.exports}o(n,"__webpack_require__");var i=n(45);return i})()})});var c2e=Ni((bb,pF)=>{"use strict";o(function(e,r){typeof bb=="object"&&typeof pF=="object"?pF.exports=r(dF()):typeof define=="function"&&define.amd?define(["cose-base"],r):typeof bb=="object"?bb.cytoscapeFcose=r(dF()):e.cytoscapeFcose=r(e.coseBase)},"webpackUniversalModuleDefinition")(bb,function(t){return(()=>{"use strict";var e={658:a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(s){for(var l=arguments.length,u=Array(l>1?l-1:0),h=1;h{var u=function(){function d(p,m){var g=[],y=!0,v=!1,x=void 0;try{for(var b=p[Symbol.iterator](),w;!(y=(w=b.next()).done)&&(g.push(w.value),!(m&&g.length===m));y=!0);}catch(_){v=!0,x=_}finally{try{!y&&b.return&&b.return()}finally{if(v)throw x}}return g}return o(d,"sliceIterator"),function(p,m){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return d(p,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=l(140).layoutBase.LinkedList,f={};f.getTopMostNodes=function(d){for(var p={},m=0;m0&&P.merge(z)});for(var F=0;F1){w=x[0],_=w.connectedEdges().length,x.forEach(function(N){N.connectedEdges().length<_&&(_=N.connectedEdges().length,w=N)}),L.push(w.id());var O=d.collection();O.merge(x[0]),x.forEach(function(N){O.merge(N)}),x=[],m=m.difference(O),E++}},"_loop");do A();while(!T);return g&&L.length>0&&g.set("dummy"+(g.size+1),L),C},f.relocateComponent=function(d,p,m){if(!m.fixedNodeConstraint){var g=Number.POSITIVE_INFINITY,y=Number.NEGATIVE_INFINITY,v=Number.POSITIVE_INFINITY,x=Number.NEGATIVE_INFINITY;if(m.quality=="draft"){var b=!0,w=!1,_=void 0;try{for(var T=p.nodeIndexes[Symbol.iterator](),E;!(b=(E=T.next()).done);b=!0){var L=E.value,C=u(L,2),A=C[0],I=C[1],D=m.cy.getElementById(A);if(D){var k=D.boundingBox(),R=p.xCoords[I]-k.w/2,S=p.xCoords[I]+k.w/2,O=p.yCoords[I]-k.h/2,N=p.yCoords[I]+k.h/2;Ry&&(y=S),Ox&&(x=N)}}}catch(z){w=!0,_=z}finally{try{!b&&T.return&&T.return()}finally{if(w)throw _}}var P=d.x-(y+g)/2,F=d.y-(x+v)/2;p.xCoords=p.xCoords.map(function(z){return z+P}),p.yCoords=p.yCoords.map(function(z){return z+F})}else{Object.keys(p).forEach(function(z){var W=p[z],j=W.getRect().x,K=W.getRect().x+W.getRect().width,ie=W.getRect().y,Q=W.getRect().y+W.getRect().height;jy&&(y=K),iex&&(x=Q)});var B=d.x-(y+g)/2,$=d.y-(x+v)/2;Object.keys(p).forEach(function(z){var W=p[z];W.setCenter(W.getCenterX()+B,W.getCenterY()+$)})}}},f.calcBoundingBox=function(d,p,m,g){for(var y=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER,x=Number.MAX_SAFE_INTEGER,b=Number.MIN_SAFE_INTEGER,w=void 0,_=void 0,T=void 0,E=void 0,L=d.descendants().not(":parent"),C=L.length,A=0;Aw&&(y=w),v<_&&(v=_),x>T&&(x=T),b{var u=l(548),h=l(140).CoSELayout,f=l(140).CoSENode,d=l(140).layoutBase.PointD,p=l(140).layoutBase.DimensionD,m=l(140).layoutBase.LayoutConstants,g=l(140).layoutBase.FDLayoutConstants,y=l(140).CoSEConstants,v=o(function(b,w){var _=b.cy,T=b.eles,E=T.nodes(),L=T.edges(),C=void 0,A=void 0,I=void 0,D={};b.randomize&&(C=w.nodeIndexes,A=w.xCoords,I=w.yCoords);var k=o(function(z){return typeof z=="function"},"isFn"),R=o(function(z,W){return k(z)?z(W):z},"optFn"),S=u.calcParentsWithoutChildren(_,T),O=o(function $(z,W,j,K){for(var ie=W.length,Q=0;Q0){var ae=void 0;ae=j.getGraphManager().add(j.newGraph(),H),$(ae,J,j,K)}}},"processChildrenList"),N=o(function(z,W,j){for(var K=0,ie=0,Q=0;Q0?y.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=K/ie:k(b.idealEdgeLength)?y.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=50:y.DEFAULT_EDGE_LENGTH=g.DEFAULT_EDGE_LENGTH=b.idealEdgeLength,y.MIN_REPULSION_DIST=g.MIN_REPULSION_DIST=g.DEFAULT_EDGE_LENGTH/10,y.DEFAULT_RADIAL_SEPARATION=g.DEFAULT_EDGE_LENGTH)},"processEdges"),P=o(function(z,W){W.fixedNodeConstraint&&(z.constraints.fixedNodeConstraint=W.fixedNodeConstraint),W.alignmentConstraint&&(z.constraints.alignmentConstraint=W.alignmentConstraint),W.relativePlacementConstraint&&(z.constraints.relativePlacementConstraint=W.relativePlacementConstraint)},"processConstraints");b.nestingFactor!=null&&(y.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=g.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=b.nestingFactor),b.gravity!=null&&(y.DEFAULT_GRAVITY_STRENGTH=g.DEFAULT_GRAVITY_STRENGTH=b.gravity),b.numIter!=null&&(y.MAX_ITERATIONS=g.MAX_ITERATIONS=b.numIter),b.gravityRange!=null&&(y.DEFAULT_GRAVITY_RANGE_FACTOR=g.DEFAULT_GRAVITY_RANGE_FACTOR=b.gravityRange),b.gravityCompound!=null&&(y.DEFAULT_COMPOUND_GRAVITY_STRENGTH=g.DEFAULT_COMPOUND_GRAVITY_STRENGTH=b.gravityCompound),b.gravityRangeCompound!=null&&(y.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=g.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=b.gravityRangeCompound),b.initialEnergyOnIncremental!=null&&(y.DEFAULT_COOLING_FACTOR_INCREMENTAL=g.DEFAULT_COOLING_FACTOR_INCREMENTAL=b.initialEnergyOnIncremental),b.tilingCompareBy!=null&&(y.TILING_COMPARE_BY=b.tilingCompareBy),b.quality=="proof"?m.QUALITY=2:m.QUALITY=0,y.NODE_DIMENSIONS_INCLUDE_LABELS=g.NODE_DIMENSIONS_INCLUDE_LABELS=m.NODE_DIMENSIONS_INCLUDE_LABELS=b.nodeDimensionsIncludeLabels,y.DEFAULT_INCREMENTAL=g.DEFAULT_INCREMENTAL=m.DEFAULT_INCREMENTAL=!b.randomize,y.ANIMATE=g.ANIMATE=m.ANIMATE=b.animate,y.TILE=b.tile,y.TILING_PADDING_VERTICAL=typeof b.tilingPaddingVertical=="function"?b.tilingPaddingVertical.call():b.tilingPaddingVertical,y.TILING_PADDING_HORIZONTAL=typeof b.tilingPaddingHorizontal=="function"?b.tilingPaddingHorizontal.call():b.tilingPaddingHorizontal,y.DEFAULT_INCREMENTAL=g.DEFAULT_INCREMENTAL=m.DEFAULT_INCREMENTAL=!0,y.PURE_INCREMENTAL=!b.randomize,m.DEFAULT_UNIFORM_LEAF_NODE_SIZES=b.uniformNodeDimensions,b.step=="transformed"&&(y.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,y.ENFORCE_CONSTRAINTS=!1,y.APPLY_LAYOUT=!1),b.step=="enforced"&&(y.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,y.ENFORCE_CONSTRAINTS=!0,y.APPLY_LAYOUT=!1),b.step=="cose"&&(y.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,y.ENFORCE_CONSTRAINTS=!1,y.APPLY_LAYOUT=!0),b.step=="all"&&(b.randomize?y.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:y.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,y.ENFORCE_CONSTRAINTS=!0,y.APPLY_LAYOUT=!0),b.fixedNodeConstraint||b.alignmentConstraint||b.relativePlacementConstraint?y.TREE_REDUCTION_ON_INCREMENTAL=!1:y.TREE_REDUCTION_ON_INCREMENTAL=!0;var F=new h,B=F.newGraphManager();return O(B.addRoot(),u.getTopMostNodes(E),F,b),N(F,B,L),P(F,b),F.runLayout(),D},"coseLayout");a.exports={coseLayout:v}},212:(a,s,l)=>{var u=function(){function b(w,_){for(var T=0;T<_.length;T++){var E=_[T];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}return o(b,"defineProperties"),function(w,_,T){return _&&b(w.prototype,_),T&&b(w,T),w}}();function h(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}o(h,"_classCallCheck");var f=l(658),d=l(548),p=l(657),m=p.spectralLayout,g=l(816),y=g.coseLayout,v=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:o(function(w){return 4500},"nodeRepulsion"),idealEdgeLength:o(function(w){return 50},"idealEdgeLength"),edgeElasticity:o(function(w){return .45},"edgeElasticity"),nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:o(function(){},"ready"),stop:o(function(){},"stop")}),x=function(){function b(w){h(this,b),this.options=f({},v,w)}return o(b,"Layout"),u(b,[{key:"run",value:o(function(){var _=this,T=this.options,E=T.cy,L=T.eles,C=[],A=void 0,I=void 0,D=[],k=void 0,R=[];T.fixedNodeConstraint&&(!Array.isArray(T.fixedNodeConstraint)||T.fixedNodeConstraint.length==0)&&(T.fixedNodeConstraint=void 0),T.alignmentConstraint&&(T.alignmentConstraint.vertical&&(!Array.isArray(T.alignmentConstraint.vertical)||T.alignmentConstraint.vertical.length==0)&&(T.alignmentConstraint.vertical=void 0),T.alignmentConstraint.horizontal&&(!Array.isArray(T.alignmentConstraint.horizontal)||T.alignmentConstraint.horizontal.length==0)&&(T.alignmentConstraint.horizontal=void 0)),T.relativePlacementConstraint&&(!Array.isArray(T.relativePlacementConstraint)||T.relativePlacementConstraint.length==0)&&(T.relativePlacementConstraint=void 0);var S=T.fixedNodeConstraint||T.alignmentConstraint||T.relativePlacementConstraint;S&&(T.tile=!1,T.packComponents=!1);var O=void 0,N=!1;if(E.layoutUtilities&&T.packComponents&&(O=E.layoutUtilities("get"),O||(O=E.layoutUtilities()),N=!0),L.nodes().length>0)if(N){var B=d.getTopMostNodes(T.eles.nodes());if(k=d.connectComponents(E,T.eles,B),k.forEach(function(oe){var ke=oe.boundingBox();R.push({x:ke.x1+ke.w/2,y:ke.y1+ke.h/2})}),T.randomize&&k.forEach(function(oe){T.eles=oe,C.push(m(T))}),T.quality=="default"||T.quality=="proof"){var $=E.collection();if(T.tile){var z=new Map,W=[],j=[],K=0,ie={nodeIndexes:z,xCoords:W,yCoords:j},Q=[];if(k.forEach(function(oe,ke){oe.edges().length==0&&(oe.nodes().forEach(function(Fe,Be){$.merge(oe.nodes()[Be]),Fe.isParent()||(ie.nodeIndexes.set(oe.nodes()[Be].id(),K++),ie.xCoords.push(oe.nodes()[0].position().x),ie.yCoords.push(oe.nodes()[0].position().y))}),Q.push(ke))}),$.length>1){var ee=$.boundingBox();R.push({x:ee.x1+ee.w/2,y:ee.y1+ee.h/2}),k.push($),C.push(ie);for(var J=Q.length-1;J>=0;J--)k.splice(Q[J],1),C.splice(Q[J],1),R.splice(Q[J],1)}}k.forEach(function(oe,ke){T.eles=oe,D.push(y(T,C[ke])),d.relocateComponent(R[ke],D[ke],T)})}else k.forEach(function(oe,ke){d.relocateComponent(R[ke],C[ke],T)});var H=new Set;if(k.length>1){var q=[],Z=L.filter(function(oe){return oe.css("display")=="none"});k.forEach(function(oe,ke){var Fe=void 0;if(T.quality=="draft"&&(Fe=C[ke].nodeIndexes),oe.nodes().not(Z).length>0){var Be={};Be.edges=[],Be.nodes=[];var Ve=void 0;oe.nodes().not(Z).forEach(function(Ge){if(T.quality=="draft")if(!Ge.isParent())Ve=Fe.get(Ge.id()),Be.nodes.push({x:C[ke].xCoords[Ve]-Ge.boundingbox().w/2,y:C[ke].yCoords[Ve]-Ge.boundingbox().h/2,width:Ge.boundingbox().w,height:Ge.boundingbox().h});else{var He=d.calcBoundingBox(Ge,C[ke].xCoords,C[ke].yCoords,Fe);Be.nodes.push({x:He.topLeftX,y:He.topLeftY,width:He.width,height:He.height})}else D[ke][Ge.id()]&&Be.nodes.push({x:D[ke][Ge.id()].getLeft(),y:D[ke][Ge.id()].getTop(),width:D[ke][Ge.id()].getWidth(),height:D[ke][Ge.id()].getHeight()})}),oe.edges().forEach(function(Ge){var He=Ge.source(),xe=Ge.target();if(He.css("display")!="none"&&xe.css("display")!="none")if(T.quality=="draft"){var X=Fe.get(He.id()),fe=Fe.get(xe.id()),he=[],ge=[];if(He.isParent()){var ne=d.calcBoundingBox(He,C[ke].xCoords,C[ke].yCoords,Fe);he.push(ne.topLeftX+ne.width/2),he.push(ne.topLeftY+ne.height/2)}else he.push(C[ke].xCoords[X]),he.push(C[ke].yCoords[X]);if(xe.isParent()){var ye=d.calcBoundingBox(xe,C[ke].xCoords,C[ke].yCoords,Fe);ge.push(ye.topLeftX+ye.width/2),ge.push(ye.topLeftY+ye.height/2)}else ge.push(C[ke].xCoords[fe]),ge.push(C[ke].yCoords[fe]);Be.edges.push({startX:he[0],startY:he[1],endX:ge[0],endY:ge[1]})}else D[ke][He.id()]&&D[ke][xe.id()]&&Be.edges.push({startX:D[ke][He.id()].getCenterX(),startY:D[ke][He.id()].getCenterY(),endX:D[ke][xe.id()].getCenterX(),endY:D[ke][xe.id()].getCenterY()})}),Be.nodes.length>0&&(q.push(Be),H.add(ke))}});var ae=O.packComponents(q,T.randomize).shifts;if(T.quality=="draft")C.forEach(function(oe,ke){var Fe=oe.xCoords.map(function(Ve){return Ve+ae[ke].dx}),Be=oe.yCoords.map(function(Ve){return Ve+ae[ke].dy});oe.xCoords=Fe,oe.yCoords=Be});else{var ue=0;H.forEach(function(oe){Object.keys(D[oe]).forEach(function(ke){var Fe=D[oe][ke];Fe.setCenter(Fe.getCenterX()+ae[ue].dx,Fe.getCenterY()+ae[ue].dy)}),ue++})}}}else{var P=T.eles.boundingBox();if(R.push({x:P.x1+P.w/2,y:P.y1+P.h/2}),T.randomize){var F=m(T);C.push(F)}T.quality=="default"||T.quality=="proof"?(D.push(y(T,C[0])),d.relocateComponent(R[0],D[0],T)):d.relocateComponent(R[0],C[0],T)}var ce=o(function(ke,Fe){if(T.quality=="default"||T.quality=="proof"){typeof ke=="number"&&(ke=Fe);var Be=void 0,Ve=void 0,Ge=ke.data("id");return D.forEach(function(xe){Ge in xe&&(Be={x:xe[Ge].getRect().getCenterX(),y:xe[Ge].getRect().getCenterY()},Ve=xe[Ge])}),T.nodeDimensionsIncludeLabels&&(Ve.labelWidth&&(Ve.labelPosHorizontal=="left"?Be.x+=Ve.labelWidth/2:Ve.labelPosHorizontal=="right"&&(Be.x-=Ve.labelWidth/2)),Ve.labelHeight&&(Ve.labelPosVertical=="top"?Be.y+=Ve.labelHeight/2:Ve.labelPosVertical=="bottom"&&(Be.y-=Ve.labelHeight/2))),Be==null&&(Be={x:ke.position("x"),y:ke.position("y")}),{x:Be.x,y:Be.y}}else{var He=void 0;return C.forEach(function(xe){var X=xe.nodeIndexes.get(ke.id());X!=null&&(He={x:xe.xCoords[X],y:xe.yCoords[X]})}),He==null&&(He={x:ke.position("x"),y:ke.position("y")}),{x:He.x,y:He.y}}},"getPositions");if(T.quality=="default"||T.quality=="proof"||T.randomize){var te=d.calcParentsWithoutChildren(E,L),De=L.filter(function(oe){return oe.css("display")=="none"});T.eles=L.not(De),L.nodes().not(":parent").not(De).layoutPositions(_,T,ce),te.length>0&&te.forEach(function(oe){oe.position(ce(oe))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")},"run")}]),b}();a.exports=x},657:(a,s,l)=>{var u=l(548),h=l(140).layoutBase.Matrix,f=l(140).layoutBase.SVD,d=o(function(m){var g=m.cy,y=m.eles,v=y.nodes(),x=y.nodes(":parent"),b=new Map,w=new Map,_=new Map,T=[],E=[],L=[],C=[],A=[],I=[],D=[],k=[],R=void 0,S=void 0,O=1e8,N=1e-9,P=m.piTol,F=m.samplingType,B=m.nodeSeparation,$=void 0,z=o(function(){for(var Te=0,se=0,Ee=!1;se<$;){Te=Math.floor(Math.random()*S),Ee=!1;for(var Ae=0;Ae=Pe;){me=Ae[Pe++];for(var vt=T[me],Ye=0;Yett&&(tt=A[$e],gt=$e)}return gt},"BFS"),j=o(function(Te){var se=void 0;if(Te){se=Math.floor(Math.random()*S),R=se;for(var Ae=0;Ae=1)break;tt=Re}for(var vt=0;vt=1)break;tt=Re}for(var Tt=0;Tt0&&(se.isParent()?T[Te].push(_.get(se.id())):T[Te].push(se.id()))})});var te=o(function(Te){var se=w.get(Te),Ee=void 0;b.get(Te).forEach(function(Ae){g.getElementById(Ae).isParent()?Ee=_.get(Ae):Ee=Ae,T[se].push(Ee),T[w.get(Ee)].push(Te)})},"_loop"),De=!0,oe=!1,ke=void 0;try{for(var Fe=b.keys()[Symbol.iterator](),Be;!(De=(Be=Fe.next()).done);De=!0){var Ve=Be.value;te(Ve)}}catch(U){oe=!0,ke=U}finally{try{!De&&Fe.return&&Fe.return()}finally{if(oe)throw ke}}S=w.size;var Ge=void 0;if(S>2){$=S{var u=l(212),h=o(function(d){d&&d("layout","fcose",u)},"register");typeof cytoscape<"u"&&h(cytoscape),a.exports=h},140:a=>{a.exports=t}},r={};function n(a){var s=r[a];if(s!==void 0)return s.exports;var l=r[a]={exports:{}};return e[a](l,l.exports,n),l.exports}o(n,"__webpack_require__");var i=n(579);return i})()})});var S1,j0,mF=M(()=>{"use strict";Kc();S1=o(t=>`${t}`,"wrapIcon"),j0={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:S1('')},server:{body:S1('')},disk:{body:S1('')},internet:{body:S1('')},cloud:{body:S1('')},unknown:RS,blank:{body:S1("")}}}});var u2e,h2e,f2e,d2e,p2e=M(()=>{"use strict";Kc();Vt();Dl();yb();mF();iS();u2e=o(async function(t,e){let r=Li("padding"),n=Li("iconSize"),i=n/2,a=n/6,s=a/2;await Promise.all(e.edges().map(async l=>{let{source:u,sourceDir:h,sourceArrow:f,sourceGroup:d,target:p,targetDir:m,targetArrow:g,targetGroup:y,label:v}=nS(l),{x,y:b}=l[0].sourceEndpoint(),{x:w,y:_}=l[0].midpoint(),{x:T,y:E}=l[0].targetEndpoint(),L=r+4;if(d&&(us(h)?x+=h==="L"?-L:L:b+=h==="T"?-L:L+18),y&&(us(m)?T+=m==="L"?-L:L:E+=m==="T"?-L:L+18),!d&&X0.getNode(u)?.type==="junction"&&(us(h)?x+=h==="L"?i:-i:b+=h==="T"?i:-i),!y&&X0.getNode(p)?.type==="junction"&&(us(m)?T+=m==="L"?i:-i:E+=m==="T"?i:-i),l[0]._private.rscratch){let C=t.insert("g");if(C.insert("path").attr("d",`M ${x},${b} L ${w},${_} L${T},${E} `).attr("class","edge"),f){let A=us(h)?mb[h](x,a):x-s,I=qc(h)?mb[h](b,a):b-s;C.insert("polygon").attr("points",lF[h](a)).attr("transform",`translate(${A},${I})`).attr("class","arrow")}if(g){let A=us(m)?mb[m](T,a):T-s,I=qc(m)?mb[m](E,a):E-s;C.insert("polygon").attr("points",lF[m](a)).attr("transform",`translate(${A},${I})`).attr("class","arrow")}if(v){let A=rS(h,m)?"XY":us(h)?"X":"Y",I=0;A==="X"?I=Math.abs(x-T):A==="Y"?I=Math.abs(b-E)/1.5:I=Math.abs(x-T)/2;let D=C.append("g");if(await Si(D,v,{useHtmlLabels:!1,width:I,classes:"architecture-service-label"},de()),D.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),A==="X")D.attr("transform","translate("+w+", "+_+")");else if(A==="Y")D.attr("transform","translate("+w+", "+_+") rotate(-90)");else if(A==="XY"){let k=gb(h,m);if(k&&Jve(k)){let R=D.node().getBoundingClientRect(),[S,O]=t2e(k);D.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*S*O*45})`);let N=D.node().getBoundingClientRect();D.attr("transform",` + translate(${w}, ${_-R.height/2}) + translate(${S*N.width/2}, ${O*N.height/2}) + rotate(${-1*S*O*45}, 0, ${R.height/2}) + `)}}}}}))},"drawEdges"),h2e=o(async function(t,e){let n=Li("padding")*.75,i=Li("fontSize"),s=Li("iconSize")/2;await Promise.all(e.nodes().map(async l=>{let u=Mf(l);if(u.type==="group"){let{h,w:f,x1:d,y1:p}=l.boundingBox();t.append("rect").attr("x",d+s).attr("y",p+s).attr("width",f).attr("height",h).attr("class","node-bkg");let m=t.append("g"),g=d,y=p;if(u.icon){let v=m.append("g");v.html(`${await wo(u.icon,{height:n,width:n,fallbackPrefix:j0.prefix})}`),v.attr("transform","translate("+(g+s+1)+", "+(y+s+1)+")"),g+=n,y+=i/2-1-2}if(u.label){let v=m.append("g");await Si(v,u.label,{useHtmlLabels:!1,width:f,classes:"architecture-service-label"},de()),v.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),v.attr("transform","translate("+(g+s+4)+", "+(y+s+2)+")")}}}))},"drawGroups"),f2e=o(async function(t,e,r){for(let n of r){let i=e.append("g"),a=Li("iconSize");if(n.title){let h=i.append("g");await Si(h,n.title,{useHtmlLabels:!1,width:a*1.5,classes:"architecture-service-label"},de()),h.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),h.attr("transform","translate("+a/2+", "+a+")")}let s=i.append("g");if(n.icon)s.html(`${await wo(n.icon,{height:a,width:a,fallbackPrefix:j0.prefix})}`);else if(n.iconText){s.html(`${await wo("blank",{height:a,width:a,fallbackPrefix:j0.prefix})}`);let d=s.append("g").append("foreignObject").attr("width",a).attr("height",a).append("div").attr("class","node-icon-text").attr("style",`height: ${a}px;`).append("div").html(n.iconText),p=parseInt(window.getComputedStyle(d.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;d.attr("style",`-webkit-line-clamp: ${Math.floor((a-2)/p)};`)}else s.append("path").attr("class","node-bkg").attr("id","node-"+n.id).attr("d",`M0 ${a} v${-a} q0,-5 5,-5 h${a} q5,0 5,5 v${a} H0 Z`);i.attr("class","architecture-service");let{width:l,height:u}=i._groups[0][0].getBBox();n.width=l,n.height=u,t.setElementForId(n.id,i)}return 0},"drawServices"),d2e=o(function(t,e,r){r.forEach(n=>{let i=e.append("g"),a=Li("iconSize");i.append("g").append("rect").attr("id","node-"+n.id).attr("fill-opacity","0").attr("width",a).attr("height",a),i.attr("class","architecture-junction");let{width:l,height:u}=i._groups[0][0].getBBox();i.width=l,i.height=u,t.setElementForId(n.id,i)})},"drawJunctions")});function Lit(t,e){t.forEach(r=>{e.add({group:"nodes",data:{type:"service",id:r.id,icon:r.icon,label:r.title,parent:r.in,width:Li("iconSize"),height:Li("iconSize")},classes:"node-service"})})}function Dit(t,e){t.forEach(r=>{e.add({group:"nodes",data:{type:"junction",id:r.id,parent:r.in,width:Li("iconSize"),height:Li("iconSize")},classes:"node-junction"})})}function Nit(t,e){e.nodes().map(r=>{let n=Mf(r);if(n.type==="group")return;n.x=r.position().x,n.y=r.position().y,t.getElementById(n.id).attr("transform","translate("+(n.x||0)+","+(n.y||0)+")")})}function Rit(t,e){t.forEach(r=>{e.add({group:"nodes",data:{type:"group",id:r.id,icon:r.icon,label:r.title,parent:r.in},classes:"node-group"})})}function Mit(t,e){t.forEach(r=>{let{lhsId:n,rhsId:i,lhsInto:a,lhsGroup:s,rhsInto:l,lhsDir:u,rhsDir:h,rhsGroup:f,title:d}=r,p=rS(r.lhsDir,r.rhsDir)?"segments":"straight",m={id:`${n}-${i}`,label:d,source:n,sourceDir:u,sourceArrow:a,sourceGroup:s,sourceEndpoint:u==="L"?"0 50%":u==="R"?"100% 50%":u==="T"?"50% 0":"50% 100%",target:i,targetDir:h,targetArrow:l,targetGroup:f,targetEndpoint:h==="L"?"0 50%":h==="R"?"100% 50%":h==="T"?"50% 0":"50% 100%"};e.add({group:"edges",data:m,classes:p})})}function Iit(t){let e=t.map(i=>{let a={},s={};return Object.entries(i).forEach(([l,[u,h]])=>{a[h]||(a[h]=[]),s[u]||(s[u]=[]),a[h].push(l),s[u].push(l)}),{horiz:Object.values(a).filter(l=>l.length>1),vert:Object.values(s).filter(l=>l.length>1)}}),[r,n]=e.reduce(([i,a],{horiz:s,vert:l})=>[[...i,...s],[...a,...l]],[[],[]]);return{horizontal:r,vertical:n}}function Oit(t){let e=[],r=o(i=>`${i[0]},${i[1]}`,"posToStr"),n=o(i=>i.split(",").map(a=>parseInt(a)),"strToPos");return t.forEach(i=>{let a=Object.fromEntries(Object.entries(i).map(([h,f])=>[r(f),h])),s=[r([0,0])],l={},u={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;s.length>0;){let h=s.shift();if(h){l[h]=1;let f=a[h];if(f){let d=n(h);Object.entries(u).forEach(([p,m])=>{let g=r([d[0]+m[0],d[1]+m[1]]),y=a[g];y&&!l[g]&&(s.push(g),e.push({[oF[p]]:y,[oF[Zve(p)]]:f,gap:1.5*Li("iconSize")}))})}}}}),e}function Pit(t,e,r,n,{spatialMaps:i}){return new Promise(a=>{let s=ze("body").append("div").attr("id","cy").attr("style","display:none"),l=sl({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight",label:"data(label)","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${Li("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${Li("padding")}px`}}]});s.remove(),Rit(r,l),Lit(t,l),Dit(e,l),Mit(n,l);let u=Iit(i),h=Oit(i),f=l.layout({name:"fcose",quality:"proof",styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(d){let[p,m]=d.connectedNodes(),{parent:g}=Mf(p),{parent:y}=Mf(m);return g===y?1.5*Li("iconSize"):.5*Li("iconSize")},edgeElasticity(d){let[p,m]=d.connectedNodes(),{parent:g}=Mf(p),{parent:y}=Mf(m);return g===y?.45:.001},alignmentConstraint:u,relativePlacementConstraint:h});f.one("layoutstop",()=>{function d(p,m,g,y){let v,x,{x:b,y:w}=p,{x:_,y:T}=m;x=(y-w+(b-g)*(w-T)/(b-_))/Math.sqrt(1+Math.pow((w-T)/(b-_),2)),v=Math.sqrt(Math.pow(y-w,2)+Math.pow(g-b,2)-Math.pow(x,2));let E=Math.sqrt(Math.pow(_-b,2)+Math.pow(T-w,2));v=v/E;let L=(_-b)*(y-w)-(T-w)*(g-b);switch(!0){case L>=0:L=1;break;case L<0:L=-1;break}let C=(_-b)*(g-b)+(T-w)*(y-w);switch(!0){case C>=0:C=1;break;case C<0:C=-1;break}return x=Math.abs(x)*L,v=v*C,{distances:x,weights:v}}o(d,"getSegmentWeights"),l.startBatch();for(let p of Object.values(l.edges()))if(p.data?.()){let{x:m,y:g}=p.source().position(),{x:y,y:v}=p.target().position();if(m!==y&&g!==v){let x=p.sourceEndpoint(),b=p.targetEndpoint(),{sourceDir:w}=nS(p),[_,T]=qc(w)?[x.x,b.y]:[b.x,x.y],{weights:E,distances:L}=d(x,b,_,T);p.style("segment-distances",L),p.style("segment-weights",E)}}l.endBatch(),f.run()}),f.run(),l.ready(d=>{Y.info("Ready",d),a(l)})})}var m2e,Bit,g2e,y2e=M(()=>{"use strict";Kc();kB();m2e=ka(c2e(),1);mr();ht();Hu();ni();yb();mF();iS();p2e();Mb([{name:j0.prefix,icons:j0}]);sl.use(m2e.default);o(Lit,"addServices");o(Dit,"addJunctions");o(Nit,"positionNodes");o(Rit,"addGroups");o(Mit,"addEdges");o(Iit,"getAlignments");o(Oit,"getRelativeConstraints");o(Pit,"layoutArchitecture");Bit=o(async(t,e,r,n)=>{let i=n.db,a=i.getServices(),s=i.getJunctions(),l=i.getGroups(),u=i.getEdges(),h=i.getDataStructures(),f=Oa(e),d=f.append("g");d.attr("class","architecture-edges");let p=f.append("g");p.attr("class","architecture-services");let m=f.append("g");m.attr("class","architecture-groups"),await f2e(i,p,a),d2e(i,p,s);let g=await Pit(a,s,l,u,h);await u2e(d,g),await h2e(m,g),Nit(i,g),_o(void 0,f,Li("padding"),Li("useMaxWidth"))},"draw"),g2e={draw:Bit}});var v2e={};vr(v2e,{diagram:()=>Fit});var Fit,x2e=M(()=>{"use strict";s2e();yb();l2e();y2e();Fit={parser:a2e,db:X0,renderer:g2e,styles:o2e}});var Eat={};vr(Eat,{default:()=>kat});Kc();MS();$f();var WX="c4",s7e=o(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),o7e=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(HX(),UX));return{id:WX,diagram:t}},"loader"),l7e={id:WX,detector:s7e,loader:o7e},YX=l7e;var jie="flowchart",dPe=o((t,e)=>e?.flowchart?.defaultRenderer==="dagre-wrapper"||e?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(t),"detector"),pPe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(fT(),hT));return{id:jie,diagram:t}},"loader"),mPe={id:jie,detector:dPe,loader:pPe},Kie=mPe;var Qie="flowchart-v2",gPe=o((t,e)=>e?.flowchart?.defaultRenderer==="dagre-d3"?!1:(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)),"detector"),yPe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(fT(),hT));return{id:Qie,diagram:t}},"loader"),vPe={id:Qie,detector:gPe,loader:yPe},Zie=vPe;var Aae="er",qPe=o(t=>/^\s*erDiagram/.test(t),"detector"),XPe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Cae(),Sae));return{id:Aae,diagram:t}},"loader"),jPe={id:Aae,detector:qPe,loader:XPe},_ae=jPe;var Fue="gitGraph",x$e=o(t=>/^\s*gitGraph/.test(t),"detector"),b$e=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Bue(),Pue));return{id:Fue,diagram:t}},"loader"),w$e={id:Fue,detector:x$e,loader:b$e},zue=w$e;var mhe="gantt",lVe=o(t=>/^\s*gantt/.test(t),"detector"),cVe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(phe(),dhe));return{id:mhe,diagram:t}},"loader"),uVe={id:mhe,detector:lVe,loader:cVe},ghe=uVe;var She="info",gVe=o(t=>/^\s*info/.test(t),"detector"),yVe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Ehe(),khe));return{id:She,diagram:t}},"loader"),Che={id:She,detector:gVe,loader:yVe};var Phe="pie",DVe=o(t=>/^\s*pie/.test(t),"detector"),NVe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Ohe(),Ihe));return{id:Phe,diagram:t}},"loader"),Bhe={id:Phe,detector:DVe,loader:NVe};var Khe="quadrantChart",jVe=o(t=>/^\s*quadrantChart/.test(t),"detector"),KVe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(jhe(),Xhe));return{id:Khe,diagram:t}},"loader"),QVe={id:Khe,detector:jVe,loader:KVe},Qhe=QVe;var Efe="xychart",dUe=o(t=>/^\s*xychart-beta/.test(t),"detector"),pUe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(kfe(),Tfe));return{id:Efe,diagram:t}},"loader"),mUe={id:Efe,detector:dUe,loader:pUe},Sfe=mUe;var $fe="requirement",UUe=o(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),HUe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Gfe(),zfe));return{id:$fe,diagram:t}},"loader"),WUe={id:$fe,detector:UUe,loader:HUe},Vfe=WUe;var mde="sequence",XHe=o(t=>/^\s*sequenceDiagram/.test(t),"detector"),jHe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(pde(),dde));return{id:mde,diagram:t}},"loader"),KHe={id:mde,detector:XHe,loader:jHe},gde=KHe;var Lde="class",_We=o((t,e)=>e?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t),"detector"),LWe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(_de(),Ade));return{id:Lde,diagram:t}},"loader"),DWe={id:Lde,detector:_We,loader:LWe},Dde=DWe;var Mde="classDiagram",RWe=o((t,e)=>/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t),"detector"),MWe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Rde(),Nde));return{id:Mde,diagram:t}},"loader"),IWe={id:Mde,detector:RWe,loader:MWe},Ide=IWe;var S0e="state",LYe=o((t,e)=>e?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t),"detector"),DYe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(E0e(),k0e));return{id:S0e,diagram:t}},"loader"),NYe={id:S0e,detector:LYe,loader:DYe},C0e=NYe;var L0e="stateDiagram",MYe=o((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),IYe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(_0e(),A0e));return{id:L0e,diagram:t}},"loader"),OYe={id:L0e,detector:MYe,loader:IYe},D0e=OYe;var Y0e="journey",rqe=o(t=>/^\s*journey/.test(t),"detector"),nqe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(W0e(),H0e));return{id:Y0e,diagram:t}},"loader"),iqe={id:Y0e,detector:rqe,loader:nqe},q0e=iqe;ht();Hu();ni();var aqe=o((t,e,r)=>{Y.debug(`rendering svg for syntax error +`);let n=Oa(e),i=n.append("g");n.attr("viewBox","0 0 2412 512"),Zr(n,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),yP={draw:aqe},X0e=yP;var sqe={db:{},renderer:yP,parser:{parse:o(()=>{},"parse")}},j0e=sqe;var K0e="flowchart-elk",oqe=o((t,e={})=>/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&e?.flowchart?.defaultRenderer==="elk"?(e.layout="elk",!0):!1,"detector"),lqe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(fT(),hT));return{id:K0e,diagram:t}},"loader"),cqe={id:K0e,detector:oqe,loader:lqe},Q0e=cqe;var kpe="timeline",_qe=o(t=>/^\s*timeline/.test(t),"detector"),Lqe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Tpe(),wpe));return{id:kpe,diagram:t}},"loader"),Dqe={id:kpe,detector:_qe,loader:Lqe},Epe=Dqe;var V1e="mindmap",Ftt=o(t=>/^\s*mindmap/.test(t),"detector"),ztt=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>($1e(),G1e));return{id:V1e,diagram:t}},"loader"),Gtt={id:V1e,detector:Ftt,loader:ztt},U1e=Gtt;var tye="kanban",rrt=o(t=>/^\s*kanban/.test(t),"detector"),nrt=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(eye(),J1e));return{id:tye,diagram:t}},"loader"),irt={id:tye,detector:rrt,loader:nrt},rye=irt;var Oye="sankey",Crt=o(t=>/^\s*sankey-beta/.test(t),"detector"),Art=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Iye(),Mye));return{id:Oye,diagram:t}},"loader"),_rt={id:Oye,detector:Crt,loader:Art},Pye=_rt;var Yye="packet",$rt=o(t=>/^\s*packet-beta/.test(t),"detector"),Vrt=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Wye(),Hye));return{id:Yye,diagram:t}},"loader"),qye={id:Yye,detector:$rt,loader:Vrt};var Kve="block",cit=o(t=>/^\s*block-beta/.test(t),"detector"),uit=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(jve(),Xve));return{id:Kve,diagram:t}},"loader"),hit={id:Kve,detector:cit,loader:uit},Qve=hit;var b2e="architecture",zit=o(t=>/^\s*architecture/.test(t),"detector"),Git=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(x2e(),v2e));return{id:b2e,diagram:t}},"loader"),$it={id:b2e,detector:zit,loader:Git},w2e=$it;$f();Vt();var T2e=!1,C1=o(()=>{T2e||(T2e=!0,Qf("error",j0e,t=>t.toLowerCase().trim()==="error"),Qf("---",{db:{clear:o(()=>{},"clear")},styles:{},renderer:{draw:o(()=>{},"draw")},parser:{parse:o(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:o(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),Bb(YX,rye,Ide,Dde,_ae,ghe,Che,Bhe,Vfe,gde,Q0e,Zie,Kie,U1e,Epe,zue,D0e,C0e,q0e,Qhe,Pye,qye,Sfe,Qve,w2e))},"addDiagrams");ht();$f();Vt();var k2e=o(async()=>{Y.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(Gf).map(async([r,{detector:n,loader:i}])=>{if(i)try{ay(r)}catch{try{let{diagram:a,id:s}=await i();Qf(s,a,n)}catch(a){throw Y.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Gf[r],a}}}))).filter(r=>r.status==="rejected");if(e.length>0){Y.error(`Failed to load ${e.length} external diagrams`);for(let r of e)Y.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");ht();mr();var aS="comm",sS="rule",oS="decl";var E2e="@import";var S2e="@keyframes";var C2e="@layer";var gF=Math.abs,wb=String.fromCharCode;function lS(t){return t.trim()}o(lS,"trim");function Tb(t,e,r){return t.replace(e,r)}o(Tb,"replace");function A2e(t,e,r){return t.indexOf(e,r)}o(A2e,"indexof");function K0(t,e){return t.charCodeAt(e)|0}o(K0,"charat");function If(t,e,r){return t.slice(e,r)}o(If,"substr");function yo(t){return t.length}o(yo,"strlen");function _2e(t){return t.length}o(_2e,"sizeof");function A1(t,e){return e.push(t),t}o(A1,"append");var cS=1,_1=1,L2e=0,ll=0,Di=0,D1="";function uS(t,e,r,n,i,a,s,l){return{value:t,root:e,parent:r,type:n,props:i,children:a,line:cS,column:_1,length:s,return:"",siblings:l}}o(uS,"node");function D2e(){return Di}o(D2e,"char");function N2e(){return Di=ll>0?K0(D1,--ll):0,_1--,Di===10&&(_1=1,cS--),Di}o(N2e,"prev");function cl(){return Di=ll2||L1(Di)>3?"":" "}o(I2e,"whitespace");function O2e(t,e){for(;--e&&cl()&&!(Di<48||Di>102||Di>57&&Di<65||Di>70&&Di<97););return hS(t,kb()+(e<6&&Ju()==32&&cl()==32))}o(O2e,"escaping");function yF(t){for(;cl();)switch(Di){case t:return ll;case 34:case 39:t!==34&&t!==39&&yF(Di);break;case 40:t===41&&yF(t);break;case 92:cl();break}return ll}o(yF,"delimiter");function P2e(t,e){for(;cl()&&t+Di!==57;)if(t+Di===84&&Ju()===47)break;return"/*"+hS(e,ll-1)+"*"+wb(t===47?t:cl())}o(P2e,"commenter");function B2e(t){for(;!L1(Ju());)cl();return hS(t,ll)}o(B2e,"identifier");function G2e(t){return M2e(dS("",null,null,null,[""],t=R2e(t),0,[0],t))}o(G2e,"compile");function dS(t,e,r,n,i,a,s,l,u){for(var h=0,f=0,d=s,p=0,m=0,g=0,y=1,v=1,x=1,b=0,w="",_=i,T=a,E=n,L=w;v;)switch(g=b,b=cl()){case 40:if(g!=108&&K0(L,d-1)==58){A2e(L+=Tb(fS(b),"&","&\f"),"&\f",gF(h?l[h-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:L+=fS(b);break;case 9:case 10:case 13:case 32:L+=I2e(g);break;case 92:L+=O2e(kb()-1,7);continue;case 47:switch(Ju()){case 42:case 47:A1(Vit(P2e(cl(),kb()),e,r,u),u),(L1(g||1)==5||L1(Ju()||1)==5)&&yo(L)&&If(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*y:l[h++]=yo(L)*x;case 125*y:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+f:x==-1&&(L=Tb(L,/\f/g,"")),m>0&&(yo(L)-d||y===0&&g===47)&&A1(m>32?z2e(L+";",n,r,d-1,u):z2e(Tb(L," ","")+";",n,r,d-2,u),u);break;case 59:L+=";";default:if(A1(E=F2e(L,e,r,h,f,i,l,w,_=[],T=[],d,a),a),b===123)if(f===0)dS(L,e,E,E,_,a,d,l,T);else switch(p===99&&K0(L,3)===110?100:p){case 100:case 108:case 109:case 115:dS(t,E,E,n&&A1(F2e(t,E,E,0,0,i,l,w,i,_=[],d,T),T),i,T,d,l,n?_:T);break;default:dS(L,E,E,E,[""],T,0,l,T)}}h=f=m=0,y=x=1,w=L="",d=s;break;case 58:d=1+yo(L),m=g;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&N2e()==125)continue}switch(L+=wb(b),b*y){case 38:x=f>0?1:(L+="\f",-1);break;case 44:l[h++]=(yo(L)-1)*x,x=1;break;case 64:Ju()===45&&(L+=fS(cl())),p=Ju(),f=d=yo(w=L+=B2e(kb())),b++;break;case 45:g===45&&yo(L)==2&&(y=0)}}return a}o(dS,"parse");function F2e(t,e,r,n,i,a,s,l,u,h,f,d){for(var p=i-1,m=i===0?a:[""],g=_2e(m),y=0,v=0,x=0;y0?m[b]+" "+w:Tb(w,/&\f/g,m[b])))&&(u[x++]=_);return uS(t,e,r,i===0?sS:l,u,h,f,d)}o(F2e,"ruleset");function Vit(t,e,r,n){return uS(t,e,r,aS,wb(D2e()),If(t,2,-2),0,n)}o(Vit,"comment");function z2e(t,e,r,n,i){return uS(t,e,r,oS,If(t,0,n),If(t,n+1,-1),n,i)}o(z2e,"declaration");function pS(t,e){for(var r="",n=0;n{H2e.forEach(t=>{t()}),H2e=[]},"attachFunctions");ht();var Y2e=o(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");Pb();V5();function q2e(t){let e=t.match(Ob);if(!e)return{text:t,metadata:{}};let r=fm(e[1],{schema:hm})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};let n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:t.slice(e[0].length),metadata:n}}o(q2e,"extractFrontMatter");hr();var Hit=o(t=>t.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(e,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Wit=o(t=>{let{text:e,metadata:r}=q2e(t),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:e}},"processFrontmatter"),Yit=o(t=>{let e=Ut.detectInit(t)??{},r=Ut.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:n})=>n==="wrap"):r?.type==="wrap"&&(e.wrap=!0),{text:RX(t),directive:e}},"processDirectives");function vF(t){let e=Hit(t),r=Wit(e),n=Yit(r.text),i=ws(r.config,n.directive);return t=Y2e(n.text),{code:t,title:r.title,config:i}}o(vF,"preprocessDiagram");QC();Hb();hr();function X2e(t){let e=new TextEncoder().encode(t),r=Array.from(e,n=>String.fromCodePoint(n)).join("");return btoa(r)}o(X2e,"toBase64");var qit=5e4,Xit="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",jit="sandbox",Kit="loose",Qit="http://www.w3.org/2000/svg",Zit="http://www.w3.org/1999/xlink",Jit="http://www.w3.org/1999/xhtml",eat="100%",tat="100%",rat="border:0;margin:0;",nat="margin:0",iat="allow-top-navigation-by-user-activation allow-popups",aat='The "iframe" tag is not supported by your browser.',sat=["foreignobject"],oat=["dominant-baseline"];function Z2e(t){let e=vF(t);return V1(),Hz(e.config??{}),e}o(Z2e,"processAndSetConfigs");async function lat(t,e){C1();try{let{code:r,config:n}=Z2e(t);return{diagramType:(await J2e(r)).type,config:n}}catch(r){if(e?.suppressErrors)return!1;throw r}}o(lat,"parse");var j2e=o((t,e,r=[])=>` +.${t} ${e} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),cat=o((t,e=new Map)=>{let r="";if(t.themeCSS!==void 0&&(r+=` +${t.themeCSS}`),t.fontFamily!==void 0&&(r+=` +:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=` +:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){let s=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(l=>{cr(l.styles)||s.forEach(u=>{r+=j2e(l.id,u,l.styles)}),cr(l.textStyles)||(r+=j2e(l.id,"tspan",(l?.textStyles||[]).map(u=>u.replace("color","fill"))))})}return r},"createCssStyles"),uat=o((t,e,r,n)=>{let i=cat(t,r),a=F$(e,i,t.themeVariables);return pS(G2e(`${n}{${a}}`),$2e)},"createUserStyles"),hat=o((t="",e,r)=>{let n=t;return!r&&!e&&(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=Ca(n),n=n.replace(/
    /g,"
    "),n},"cleanUpSvgCode"),fat=o((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":tat,n=X2e(`${t}`);return``},"putIntoIFrame"),K2e=o((t,e,r,n,i)=>{let a=t.append("div");a.attr("id",r),n&&a.attr("style",n);let s=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Qit);return i&&s.attr("xmlns:xlink",i),s.append("g"),t},"appendDivSvgG");function Q2e(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}o(Q2e,"sandboxedIframe");var dat=o((t,e,r,n)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(n)?.remove()},"removeExistingElements"),pat=o(async function(t,e,r){C1();let n=Z2e(e);e=n.code;let i=Sr();Y.debug(i),e.length>(i?.maxTextSize??qit)&&(e=Xit);let a="#"+t,s="i"+t,l="#"+s,u="d"+t,h="#"+u,f=o(()=>{let R=ze(p?l:h).node();R&&"remove"in R&&R.remove()},"removeTempElements"),d=ze("body"),p=i.securityLevel===jit,m=i.securityLevel===Kit,g=i.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),p){let k=Q2e(ze(r),s);d=ze(k.nodes()[0].contentDocument.body),d.node().style.margin=0}else d=ze(r);K2e(d,t,u,`font-family: ${g}`,Zit)}else{if(dat(document,t,u,s),p){let k=Q2e(ze("body"),s);d=ze(k.nodes()[0].contentDocument.body),d.node().style.margin=0}else d=ze("body");K2e(d,t,u)}let y,v;try{y=await N1.fromText(e,{title:n.title})}catch(k){if(i.suppressErrorRendering)throw f(),k;y=await N1.fromText("error"),v=k}let x=d.select(h).node(),b=y.type,w=x.firstChild,_=w.firstChild,T=y.renderer.getClasses?.(e,y),E=uat(i,b,T,a),L=document.createElement("style");L.innerHTML=E,w.insertBefore(L,_);try{await y.renderer.draw(e,t,dx,y)}catch(k){throw i.suppressErrorRendering?f():X0e.draw(e,t,dx),k}let C=d.select(`${h} svg`),A=y.db.getAccTitle?.(),I=y.db.getAccDescription?.();gat(b,C,A,I),d.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Jit);let D=d.select(h).node().innerHTML;if(Y.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),D=hat(D,p,xr(i.arrowMarkerAbsolute)),p){let k=d.select(h+" svg").node();D=fat(D,k)}else m||(D=ah.sanitize(D,{ADD_TAGS:sat,ADD_ATTR:oat,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(W2e(),v)throw v;return f(),{diagramType:b,svg:D,bindFunctions:y.db.bindFunctions}},"render");function mat(t={}){let e=Gn({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),$z(e),e?.theme&&e.theme in ko?e.themeVariables=ko[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=ko.default.getThemeVariables(e.themeVariables));let r=typeof e=="object"?QS(e):ZS();M1(r.logLevel),C1()}o(mat,"initialize");var J2e=o((t,e={})=>{let{code:r}=vF(t);return N1.fromText(r,e)},"getDiagramFromText");function gat(t,e,r,n){V2e(e,t),U2e(e,r,n,e.attr("id"))}o(gat,"addA11yInfo");var Of=Object.freeze({render:pat,parse:lat,getDiagramFromText:J2e,initialize:mat,getConfig:Sr,setConfig:Yb,getSiteConfig:ZS,updateSiteConfig:Vz,reset:o(()=>{V1()},"reset"),globalReset:o(()=>{V1(ih)},"globalReset"),defaultConfig:ih});M1(Sr().logLevel);V1(Sr());Fv();hr();var yat=o((t,e,r)=>{Y.warn(t),i9(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),exe=o(async function(t={querySelector:".mermaid"}){try{await vat(t)}catch(e){if(i9(e)&&Y.error(e.str),eh.parseError&&eh.parseError(e),!t.suppressErrors)throw Y.error("Use the suppressErrors option to suppress these errors"),e}},"run"),vat=o(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let n=Of.getConfig();Y.debug(`${t?"":"No "}Callback function found`);let i;if(r)i=r;else if(e)i=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");Y.debug(`Found ${i.length} diagrams`),n?.startOnLoad!==void 0&&(Y.debug("Start On Load: "+n?.startOnLoad),Of.updateSiteConfig({startOnLoad:n?.startOnLoad}));let a=new Ut.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed),s,l=[];for(let u of Array.from(i)){Y.info("Rendering diagram: "+u.id);if(u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");let h=`mermaid-${a.next()}`;s=u.innerHTML,s=Ib(Ut.entityDecode(s)).trim().replace(//gi,"
    ");let f=Ut.detectInit(s);f&&Y.debug("Detected early reinit: ",f);try{let{svg:d,bindFunctions:p}=await ixe(h,s,u);u.innerHTML=d,t&&await t(h),p&&p(u)}catch(d){yat(d,l,eh.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),txe=o(function(t){Of.initialize(t)},"initialize"),xat=o(async function(t,e,r){Y.warn("mermaid.init is deprecated. Please use run instead."),t&&txe(t);let n={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await exe(n)},"init"),bat=o(async(t,{lazyLoad:e=!0}={})=>{C1(),Bb(...t),e===!1&&await k2e()},"registerExternalDiagrams"),rxe=o(function(){if(eh.startOnLoad){let{startOnLoad:t}=Of.getConfig();t&&eh.run().catch(e=>Y.error("Mermaid failed to initialize",e))}},"contentLoaded");if(typeof document<"u"){window.addEventListener("load",rxe,!1)}var wat=o(function(t){eh.parseError=t},"setParseErrorHandler"),mS=[],xF=!1,nxe=o(async()=>{if(!xF){for(xF=!0;mS.length>0;){let t=mS.shift();if(t)try{await t()}catch(e){Y.error("Error executing queue",e)}}xF=!1}},"executeQueue"),Tat=o(async(t,e)=>new Promise((r,n)=>{let i=o(()=>new Promise((a,s)=>{Of.parse(t,e).then(l=>{a(l),r(l)},l=>{Y.error("Error parsing",l),eh.parseError?.(l),s(l),n(l)})}),"performCall");mS.push(i),nxe().catch(n)}),"parse"),ixe=o((t,e,r)=>new Promise((n,i)=>{let a=o(()=>new Promise((s,l)=>{Of.render(t,e,r).then(u=>{s(u),n(u)},u=>{Y.error("Error parsing",u),eh.parseError?.(u),l(u),i(u)})}),"performCall");mS.push(a),nxe().catch(i)}),"render"),eh={startOnLoad:!0,mermaidAPI:Of,parse:Tat,render:ixe,init:xat,run:exe,registerExternalDiagrams:bat,registerLayoutLoaders:CD,initialize:txe,parseError:void 0,contentLoaded:rxe,setParseErrorHandler:wat,detectType:np,registerIconPacks:Mb},kat=eh;return pxe(Eat);})(); +/*! Check if previously processed */ +/*! + * Wait for document loaded before starting the execution + */ +/*! Bundled license information: + +dompurify/dist/purify.es.mjs: + (*! @license DOMPurify 3.2.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.1/LICENSE *) + +js-yaml/dist/js-yaml.mjs: + (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *) + +lodash-es/lodash.js: + (** + * @license + * Lodash (Custom Build) + * Build: `lodash modularize exports="es" -o ./` + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + *) + +cytoscape/dist/cytoscape.esm.mjs: + (*! + Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable + Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) + Licensed under The MIT License (http://opensource.org/licenses/MIT) + *) + (*! + Event object based on jQuery events, MIT license + + https://jquery.org/license/ + https://tldrlegal.com/license/mit-license + https://github.com/jquery/jquery/blob/master/src/event.js + *) + (*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License *) + (*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License *) +*/ +globalThis.mermaid = globalThis.__esbuild_esm_mermaid.default; diff --git a/b/8a8234301d3b96a007bde00a21d3c92607e9b0254827751e166cacc3d09ef01c b/b/8a8234301d3b96a007bde00a21d3c92607e9b0254827751e166cacc3d09ef01c new file mode 100644 index 0000000000000000000000000000000000000000..4c5b1e840ab57e284b38f75558669ae554094a4b --- /dev/null +++ b/b/8a8234301d3b96a007bde00a21d3c92607e9b0254827751e166cacc3d09ef01c @@ -0,0 +1,31 @@ +import * as React from "react" + +import { + Select, + SelectContent, + SelectGroup, + SelectItem, + SelectLabel, + SelectTrigger, + SelectValue, +} from "@/registry/new-york-v4/ui/select" + +export default function SelectDemo() { + return ( + + ) +} diff --git a/b/8ab65a4d8facdd03fea6466e13b3f664f4241b7314950d3f79b154568aa2c257 b/b/8ab65a4d8facdd03fea6466e13b3f664f4241b7314950d3f79b154568aa2c257 new file mode 100644 index 0000000000000000000000000000000000000000..d2183aece84e8708393c4cdbcead940762700917 --- /dev/null +++ b/b/8ab65a4d8facdd03fea6466e13b3f664f4241b7314950d3f79b154568aa2c257 @@ -0,0 +1 @@ +import{jsx as l,jsxs as s}from"react/jsx-runtime";function c({width:i=433,height:e=882,src:r,videoSrc:a,...t}){return s("svg",{width:i,height:e,viewBox:`0 0 ${i} ${e}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[l("path",{d:"M376 153H378C379.105 153 380 153.895 380 155V249C380 250.105 379.105 251 378 251H376V153Z",className:"fill-[#E5E5E5] dark:fill-[#404040]"}),l("path",{d:"M376 301H378C379.105 301 380 301.895 380 303V351C380 352.105 379.105 353 378 353H376V301Z",className:"fill-[#E5E5E5] dark:fill-[#404040]"}),l("path",{d:"M0 42C0 18.8041 18.804 0 42 0H336C359.196 0 378 18.804 378 42V788C378 811.196 359.196 830 336 830H42C18.804 830 0 811.196 0 788V42Z",className:"fill-[#E5E5E5] dark:fill-[#404040]"}),l("path",{d:"M2 43C2 22.0132 19.0132 5 40 5H338C358.987 5 376 22.0132 376 43V787C376 807.987 358.987 825 338 825H40C19.0132 825 2 807.987 2 787V43Z",className:"fill-white dark:fill-[#262626]"}),l("g",{clipPath:"url(#clip0_514_20855)",children:l("path",{d:"M9.25 48C9.25 29.3604 24.3604 14.25 43 14.25H335C353.64 14.25 368.75 29.3604 368.75 48V780C368.75 798.64 353.64 813.75 335 813.75H43C24.3604 813.75 9.25 798.64 9.25 780V48Z",className:"fill-[#E5E5E5] stroke-[#E5E5E5] stroke-[0.5] dark:fill-[#404040] dark:stroke-[#404040]"})}),l("circle",{cx:"189",cy:"28",r:"9",className:"fill-white dark:fill-[#262626]"}),l("circle",{cx:"189",cy:"28",r:"4",className:"fill-[#E5E5E5] dark:fill-[#404040]"}),r&&l("image",{href:r,width:"360",height:"800",className:"size-full object-cover",preserveAspectRatio:"xMidYMid slice",clipPath:"url(#clip0_514_20855)"}),a&&l("foreignObject",{width:"380",height:"820",clipPath:"url(#clip0_514_20855)",preserveAspectRatio:"xMidYMid slice",children:l("video",{className:"size-full object-cover",src:a,autoPlay:!0,loop:!0,muted:!0,playsInline:!0})}),l("defs",{children:l("clipPath",{id:"clip0_514_20855",children:l("rect",{width:"360",height:"800",rx:"33",ry:"25",className:"fill-white dark:fill-[#262626]",transform:"translate(9 14)"})})})]})}export{c as Android}; diff --git a/b/8ada2befc5a544d3947e143d0b8839cad7a73100c2ebe3043d408c1ecf4eb64f b/b/8ada2befc5a544d3947e143d0b8839cad7a73100c2ebe3043d408c1ecf4eb64f new file mode 100644 index 0000000000000000000000000000000000000000..e0fc9999f39a076668c8e44b3c6f934c9dca5dab --- /dev/null +++ b/b/8ada2befc5a544d3947e143d0b8839cad7a73100c2ebe3043d408c1ecf4eb64f @@ -0,0 +1,69 @@ +// core/memory.js — persistent USER MEMORY (LibreChat memory semantics, substrate-native). +// Memories are key/value facts (key validated /^[a-z_]+$/, value a complete sentence) stored as +// κ-objects with pointers in the boot index. They inject into the system block as the +// "# Existing memory:" section, and the model maintains them itself through two LOCAL tools +// (set_memory / delete_memory) armed alongside MCP tools in the agentic loop — no server, +// every write content-addressed and verifiable. + +const LC = { lc: "https://librechat.ai/ns#" }; +export const KEY_RE = /^[a-z_]+$/; + +export function makeMemory(chatStore, { tokenLimit = 2000 } = {}) { + const { store, getIndex, newId } = chatStore; + const putIndex = async (idx) => { const b = new TextEncoder().encode(JSON.stringify(idx)); return store.backend.putRaw ? store.backend.putRaw("index:org.hologram.HoloQ", b) : store.backend.put("index:org.hologram.HoloQ", b); }; + const tokensOf = (s) => Math.ceil((s || "").length / 4); // a fair, dependency-free estimate + + async function list() { return (await getIndex()).memories || []; } + + async function set(key, value) { + key = String(key || "").toLowerCase().trim(); + if (!KEY_RE.test(key)) return { ok: false, error: "invalid key — use lowercase letters and underscores" }; + const idx = await getIndex(); + idx.memories = idx.memories || []; + const used = idx.memories.filter((m) => m.key !== key).reduce((n, m) => n + (m.tokenCount || 0), 0); + const tc = tokensOf(value); + if (used + tc > tokenLimit) return { ok: false, error: `memory full: ${used}+${tc} > ${tokenLimit} tokens` }; + const obj = await store.makeObject({ + type: ["schema:Statement", "prov:Entity"], context: [LC], + "lc:key": key, "lc:value": String(value || ""), "lc:tokenCount": tc, + "schema:dateModified": new Date().toISOString(), + }); + const i = idx.memories.findIndex((m) => m.key === key); + const ptr = { key, kappa: obj.id, value: String(value || ""), tokenCount: tc, updated_at: new Date().toISOString() }; + if (i >= 0) idx.memories[i] = ptr; else idx.memories.push(ptr); + await putIndex(idx); + return { ok: true, key, kappa: obj.id }; + } + + async function remove(key) { + const idx = await getIndex(); + idx.memories = (idx.memories || []).filter((m) => m.key !== key); + await putIndex(idx); + return { ok: true }; + } + + // The system-block injection ("# Existing memory:" — the LibreChat convention). + async function injection() { + const mems = await list(); + if (!mems.length) return ""; + const used = mems.reduce((n, m) => n + (m.tokenCount || 0), 0); + return `# Memory Status:\nCurrent memory usage: ${used} tokens\nToken limit: ${tokenLimit} tokens\nRemaining capacity: ${Math.max(0, tokenLimit - used)} tokens\n\n# Existing memory:\n` + + mems.map((m) => `- ${m.key}: ${m.value}`).join("\n"); + } + + // The two LOCAL tools the agentic loop arms (same shape as MCP hub tools). + function localTools() { + return [ + { + def: { name: "set_memory", description: "Remember a fact about the user across conversations. Only when the user explicitly asks (\"remember that…\"). key: lowercase_with_underscores; value: one complete sentence.", inputSchema: { type: "object", properties: { key: { type: "string" }, value: { type: "string" } }, required: ["key", "value"] } }, + serverName: "memory", call: async (a) => { const r = await set(a.key, a.value); return { text: JSON.stringify(r), isError: !r.ok }; }, + }, + { + def: { name: "delete_memory", description: "Forget a remembered fact, by key. Only when the user explicitly asks.", inputSchema: { type: "object", properties: { key: { type: "string" } }, required: ["key"] } }, + serverName: "memory", call: async (a) => { const r = await remove(a.key); return { text: JSON.stringify(r), isError: false }; }, + }, + ]; + } + + return { list, set, remove, injection, localTools, tokenLimit }; +} diff --git a/b/8aeb70074b201993ed60fa4d7667fcdde76ae34a399677057184b2fd188db31f b/b/8aeb70074b201993ed60fa4d7667fcdde76ae34a399677057184b2fd188db31f new file mode 100644 index 0000000000000000000000000000000000000000..aa08279183299c983f9bc88b99dc35446f8d726c --- /dev/null +++ b/b/8aeb70074b201993ed60fa4d7667fcdde76ae34a399677057184b2fd188db31f @@ -0,0 +1,9 @@ +var Zu=Object.defineProperty;var Ju=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,o)=>(typeof require<"u"?require:e)[o]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Qu=(t,e)=>{for(var o in e)Zu(t,o,{get:e[o],enumerable:!0})};import{jsx as xs,Fragment as Tm}from"react/jsx-runtime";import{useMemo as Sm,useRef as vs,useState as Ts,useContext as Vm}from"react";import{createContext as tm}from"react";var ut=tm({});import{useRef as em}from"react";function M(t){let e=em(null);return e.current===null&&(e.current=t()),e.current}import{jsx as ps}from"react/jsx-runtime";import*as hs from"react";import{useId as lm,useCallback as um,useMemo as ds}from"react";import{createContext as om}from"react";var mt=om(null);import{jsx as nm}from"react/jsx-runtime";import*as nr from"react";import{useId as im,useRef as cs,useContext as sm,useInsertionEffect as am}from"react";import{createContext as rm}from"react";var _=rm({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var En=class extends nr.Component{getSnapshotBeforeUpdate(e){let o=this.props.childRef.current;if(o&&e.isPresent&&!this.props.isPresent){let r=this.props.sizeRef.current;r.height=o.offsetHeight||0,r.width=o.offsetWidth||0,r.top=o.offsetTop,r.left=o.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function fs({children:t,isPresent:e}){let o=im(),r=cs(null),n=cs({width:0,height:0,top:0,left:0}),{nonce:s}=sm(_);return am(()=>{let{width:i,height:a,top:l,left:u}=n.current;if(e||!r.current||!i||!a)return;r.current.dataset.motionPopId=o;let m=document.createElement("style");return s&&(m.nonce=s),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(` + [data-motion-pop-id="${o}"] { + position: absolute !important; + width: ${i}px !important; + height: ${a}px !important; + top: ${l}px !important; + left: ${u}px !important; + } + `),()=>{document.head.removeChild(m)}},[e]),nm(En,{isPresent:e,childRef:r,sizeRef:n,children:nr.cloneElement(t,{ref:r})})}var gs=({children:t,initial:e,isPresent:o,onExitComplete:r,custom:n,presenceAffectsLayout:s,mode:i})=>{let a=M(mm),l=lm(),u=um(c=>{a.set(c,!0);for(let f of a.values())if(!f)return;r&&r()},[a,r]),m=ds(()=>({id:l,initial:e,isPresent:o,custom:n,onExitComplete:u,register:c=>(a.set(c,!1),()=>a.delete(c))}),s?[Math.random(),u]:[o,u]);return ds(()=>{a.forEach((c,f)=>a.set(f,!1))},[o]),hs.useEffect(()=>{!o&&!a.size&&r&&r()},[o]),i==="popLayout"&&(t=ps(fs,{isPresent:o,children:t})),ps(mt.Provider,{value:m,children:t})};function mm(){return new Map}import{useContext as ys,useId as cm,useEffect as fm,useCallback as pm}from"react";function po(t=!0){let e=ys(mt);if(e===null)return[!0,null];let{isPresent:o,onExitComplete:r,register:n}=e,s=cm();fm(()=>{t&&n(s)},[t]);let i=pm(()=>t&&r&&r(s),[s,r,t]);return!o&&r?[!1,i]:[!0]}function dm(){return hm(ys(mt))}function hm(t){return t===null?!0:t.isPresent}import{Children as gm,isValidElement as ym}from"react";var ho=t=>t.key||"";function Dn(t){let e=[];return gm.forEach(t,o=>{ym(o)&&e.push(o)}),e}import{useLayoutEffect as xm,useEffect as vm}from"react";var Yt=typeof window<"u";var Q=Yt?xm:vm;var bm=({children:t,custom:e,initial:o=!0,onExitComplete:r,presenceAffectsLayout:n=!0,mode:s="sync",propagate:i=!1})=>{let[a,l]=po(i),u=Sm(()=>Dn(t),[t]),m=i&&!a?[]:u.map(ho),c=vs(!0),f=vs(u),p=M(()=>new Map),[d,h]=Ts(u),[y,g]=Ts(u);Q(()=>{c.current=!1,f.current=u;for(let b=0;b{let v=ho(b),P=i&&!a?!1:u===y||m.includes(v),I=()=>{if(p.has(v))p.set(v,!0);else return;let w=!0;p.forEach(E=>{E||(w=!1)}),w&&(S?.(),g(f.current),i&&l?.(),r&&r())};return xs(gs,{isPresent:P,initial:!c.current||o?void 0:!1,custom:P?void 0:e,presenceAffectsLayout:n,mode:s,onExitComplete:P?void 0:I,children:b},v)})})};import{jsx as Em}from"react/jsx-runtime";import{useContext as ws,useRef as Dm,useMemo as Rm}from"react";import{createContext as wm}from"react";var Rn=wm(null);import{useState as Cm,useCallback as bs}from"react";import{useRef as Pm}from"react";function Ss(){let t=Pm(!1);return Q(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var D=t=>t;var nt=D,L=D;var Xt={skipAnimations:!1,useManualTiming:!1};function Vs(t){let e=new Set,o=new Set,r=!1,n=!1,s=new WeakSet,i={delta:0,timestamp:0,isProcessing:!1};function a(u){s.has(u)&&(l.schedule(u),t()),u(i)}let l={schedule:(u,m=!1,c=!1)=>{let p=c&&r?e:o;return m&&s.add(u),p.has(u)||p.add(u),u},cancel:u=>{o.delete(u),s.delete(u)},process:u=>{if(i=u,r){n=!0;return}r=!0,[e,o]=[o,e],e.forEach(a),e.clear(),r=!1,n&&(n=!1,l.process(u))}};return l}var ge=["read","resolveKeyframes","update","preRender","render","postRender"],Am=40;function ir(t,e){let o=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>o=!0,i=ge.reduce((g,x)=>(g[x]=Vs(s),g),{}),{read:a,resolveKeyframes:l,update:u,preRender:m,render:c,postRender:f}=i,p=()=>{let g=Xt.useManualTiming?n.timestamp:performance.now();o=!1,n.delta=r?1e3/60:Math.max(Math.min(g-n.timestamp,Am),1),n.timestamp=g,n.isProcessing=!0,a.process(n),l.process(n),u.process(n),m.process(n),c.process(n),f.process(n),n.isProcessing=!1,o&&e&&(r=!1,t(p))},d=()=>{o=!0,r=!0,n.isProcessing||t(p)};return{schedule:ge.reduce((g,x)=>{let S=i[x];return g[x]=(b,v=!1,P=!1)=>(o||d(),S.schedule(b,v,P)),g},{}),cancel:g=>{for(let x=0;x{t.current&&o(e+1)},[e]);return[bs(()=>T.postRender(r),[r]),e]}var Mm=t=>!t.isLayoutDirty&&t.willUpdate(!1);function Ln(){let t=new Set,e=new WeakMap,o=()=>t.forEach(Mm);return{add:r=>{t.add(r),e.set(r,r.addEventListener("willUpdate",o))},remove:r=>{t.delete(r);let n=e.get(r);n&&(n(),e.delete(r)),o()},dirty:o}}var Ps=t=>t===!0,Lm=t=>Ps(t===!0)||t==="id",In=({children:t,id:e,inherit:o=!0})=>{let r=ws(ut),n=ws(Rn),[s,i]=yo(),a=Dm(null),l=r.id||n;a.current===null&&(Lm(o)&&l&&(e=e?l+"-"+e:l),a.current={id:e,group:Ps(o)?r.group||Ln():Ln()});let u=Rm(()=>({...a.current,forceRender:s}),[i]);return Em(ut.Provider,{value:u,children:t})};import{jsx as Om}from"react/jsx-runtime";import{useState as Fm,useRef as Bm,useEffect as km}from"react";import{createContext as Im}from"react";var ye=Im({strict:!1});var As={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},vt={};for(let t in As)vt[t]={isEnabled:e=>As[t].some(o=>!!e[o])};function xo(t){for(let e in t)vt[e]={...vt[e],...t[e]}}function jm({children:t,features:e,strict:o=!1}){let[,r]=Fm(!On(e)),n=Bm(void 0);if(!On(e)){let{renderer:s,...i}=e;n.current=s,xo(i)}return km(()=>{On(e)&&e().then(({renderer:s,...i})=>{xo(i),n.current=s,r(!0)})},[]),Om(ye.Provider,{value:{renderer:n.current,strict:o},children:t})}function On(t){return typeof t=="function"}import{jsx as Um}from"react/jsx-runtime";import{useContext as Gm,useMemo as Wm}from"react";var Nm=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function xe(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Nm.has(t)}var Cs=t=>!xe(t);function Fn(t){t&&(Cs=e=>e.startsWith("on")?!xe(e):t(e))}try{Fn(Ju("@emotion/is-prop-valid").default)}catch{}function Bn(t,e,o){let r={};for(let n in t)n==="values"&&typeof t.values=="object"||(Cs(n)||o===!0&&xe(n)||!e&&!xe(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}function _m({children:t,isValidProp:e,...o}){e&&Fn(e),o={...Gm(_),...o},o.isStatic=M(()=>o.isStatic);let r=Wm(()=>o,[JSON.stringify(o.transition),o.transformPagePoint,o.reducedMotion]);return Um(_.Provider,{value:r,children:t})}function sr(t){if(typeof Proxy>"u")return t;let e=new Map,o=(...r)=>t(...r);return new Proxy(o,{get:(r,n)=>n==="create"?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}import{jsxs as Jm,jsx as Qm}from"react/jsx-runtime";import{forwardRef as tc,useContext as Nn}from"react";import{createContext as zm}from"react";var st=zm({});import{useContext as Km,useMemo as Hm}from"react";function Tt(t){return typeof t=="string"||Array.isArray(t)}function Dt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}var ar=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vo=["initial",...ar];function qt(t){return Dt(t.animate)||vo.some(e=>Tt(t[e]))}function lr(t){return!!(qt(t)||t.variants)}function Ms(t,e){if(qt(t)){let{initial:o,animate:r}=t;return{initial:o===!1||Tt(o)?o:void 0,animate:Tt(r)?r:void 0}}return t.inherit!==!1?e:{}}function Ds(t){let{initial:e,animate:o}=Ms(t,Km(st));return Hm(()=>({initial:e,animate:o}),[Es(e),Es(o)])}function Es(t){return Array.isArray(t)?t.join(" "):t}var ve=Symbol.for("motionComponentSymbol");import{useCallback as $m}from"react";function St(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Rs(t,e,o){return $m(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),o&&(typeof o=="function"?o(r):St(o)&&(o.current=r))},[e])}import{useContext as Vo,useRef as jn,useInsertionEffect as Xm,useEffect as qm}from"react";var Rt=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var kn="framerAppearId",To="data-"+Rt(kn);var{schedule:Te,cancel:Ty}=ir(queueMicrotask,!1);import{createContext as Ym}from"react";var So=Ym({});function Ls(t,e,o,r,n){var s,i;let{visualElement:a}=Vo(st),l=Vo(ye),u=Vo(mt),m=Vo(_).reducedMotion,c=jn(null);r=r||l.renderer,!c.current&&r&&(c.current=r(t,{visualState:e,parent:a,props:o,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:m}));let f=c.current,p=Vo(So);f&&!f.projection&&n&&(f.type==="html"||f.type==="svg")&&Zm(c.current,o,n,p);let d=jn(!1);Xm(()=>{f&&d.current&&f.update(o,u)});let h=o[To],y=jn(!!h&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,h))&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,h)));return Q(()=>{f&&(d.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Te.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),qm(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)===null||g===void 0||g.call(window,h)}),y.current=!1))}),f}function Zm(t,e,o,r){let{layoutId:n,layout:s,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new o(t.latestValues,e["data-framer-portal-id"]?void 0:Is(t.parent)),t.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!i||a&&St(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Is(t){if(t)return t.options.allowProjection!==!1?t.projection:Is(t.parent)}function Un({preloadedFeatures:t,createVisualElement:e,useRender:o,useVisualState:r,Component:n}){var s,i;t&&xo(t);function a(u,m){let c,f={...Nn(_),...u,layoutId:ec(u)},{isStatic:p}=f,d=Ds(u),h=r(u,p);if(!p&&Yt){oc(f,t);let y=rc(f);c=y.MeasureLayout,d.visualElement=Ls(n,h,f,e,y.ProjectionNode)}return Jm(st.Provider,{value:d,children:[c&&d.visualElement?Qm(c,{visualElement:d.visualElement,...f}):null,o(n,u,Rs(h,d.visualElement,m),h,p,d.visualElement)]})}a.displayName=`motion.${typeof n=="string"?n:`create(${(i=(s=n.displayName)!==null&&s!==void 0?s:n.name)!==null&&i!==void 0?i:""})`}`;let l=tc(a);return l[ve]=n,l}function ec({layoutId:t}){let e=Nn(ut).id;return e&&t!==void 0?e+"-"+t:t}function oc(t,e){let o=Nn(ye).strict}function rc(t){let{drag:e,layout:o}=vt;if(!e&&!o)return{};let r={...e,...o};return{MeasureLayout:e?.isEnabled(t)||o?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var Os=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Se(t){return typeof t!="string"||t.includes("-")?!1:!!(Os.indexOf(t)>-1||/[A-Z]/u.test(t))}import{useContext as js}from"react";function Fs(t){let e=[{},{}];return t?.values.forEach((o,r)=>{e[0][r]=o.get(),e[1][r]=o.getVelocity()}),e}function Ve(t,e,o,r){if(typeof e=="function"){let[n,s]=Fs(r);e=e(o!==void 0?o:t.custom,n,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){let[n,s]=Fs(r);e=e(o!==void 0?o:t.custom,n,s)}return e}var bo=t=>Array.isArray(t);var Bs=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),ks=t=>bo(t)?t[t.length-1]||0:t;var A=t=>!!(t&&t.getVelocity);function Zt(t){let e=A(t)?t.get():t;return Bs(e)?e.toValue():e}function nc({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:o},r,n,s){let i={latestValues:ic(r,n,s,t),renderState:e()};return o&&(i.onMount=a=>o({props:r,current:a,...i}),i.onUpdate=a=>o(a)),i}var Jt=t=>(e,o)=>{let r=js(st),n=js(mt),s=()=>nc(t,e,r,n);return o?s():M(s)};function ic(t,e,o,r){let n={},s=r(t,{});for(let f in s)n[f]=Zt(s[f]);let{initial:i,animate:a}=t,l=qt(t),u=lr(t);e&&u&&!l&&t.inherit!==!1&&(i===void 0&&(i=e.initial),a===void 0&&(a=e.animate));let m=o?o.initial===!1:!1;m=m||i===!1;let c=m?a:i;if(c&&typeof c!="boolean"&&!Dt(c)){let f=Array.isArray(c)?c:[c];for(let p=0;pe=>typeof e=="string"&&e.startsWith(t),ur=Ns("--"),sc=Ns("var(--"),be=t=>sc(t)?ac.test(t.split("/*")[0].trim()):!1,ac=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var mr=(t,e)=>e&&typeof t=="number"?e.transform(t):t;var N=(t,e,o)=>o>e?e:otypeof t=="number",parse:parseFloat,transform:t=>t},Vt={...ft,transform:t=>N(0,1,t)},wo={...ft,default:1};var Po=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),pt=Po("deg"),tt=Po("%"),V=Po("px"),Us=Po("vh"),Gs=Po("vw"),Gn={...tt,parse:t=>tt.parse(t)/100,transform:t=>tt.transform(t*100)};var Ao={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V};var Ws={rotate:pt,rotateX:pt,rotateY:pt,rotateZ:pt,scale:wo,scaleX:wo,scaleY:wo,scaleZ:wo,skew:pt,skewX:pt,skewY:pt,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Vt,originX:Gn,originY:Gn,originZ:V};var Wn={...ft,transform:Math.round};var we={...Ao,...Ws,zIndex:Wn,size:V,fillOpacity:Vt,strokeOpacity:Vt,numOctaves:Wn};var lc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},uc=ct.length;function _n(t,e,o){let r="",n=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}});var cr=()=>({...Ce(),attrs:{}});var Me=t=>typeof t=="string"&&t.toLowerCase()==="svg";function fr(t,{style:e,vars:o},r,n){Object.assign(t.style,e,n&&n.getProjectionStyles(r));for(let s in o)t.style.setProperty(s,o[s])}var pr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function dr(t,e,o,r){fr(t,e,void 0,r);for(let n in e.attrs)t.setAttribute(pr.has(n)?n:Rt(n),e.attrs[n])}var Ee={};function zn(t){Object.assign(Ee,t)}function hr(t,{layout:e,layoutId:o}){return z.has(t)||t.startsWith("origin")||(e||o!==void 0)&&(!!Ee[t]||t==="opacity")}function De(t,e,o){var r;let{style:n}=t,s={};for(let i in n)(A(n[i])||e.style&&A(e.style[i])||hr(i,t)||((r=o?.getValue(i))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[i]=n[i]);return s}function gr(t,e,o){let r=De(t,e,o);for(let n in t)if(A(t[n])||A(e[n])){let s=ct.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[s]=t[n]}return r}function fc(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}var Hs=["x","y","width","height","cx","cy","r"],$s={useVisualState:Jt({scrapeMotionValuesFromProps:gr,createRenderState:cr,onUpdate:({props:t,prevProps:e,current:o,renderState:r,latestValues:n})=>{if(!o)return;let s=!!t.drag;if(!s){for(let a in n)if(z.has(a)){s=!0;break}}if(!s)return;let i=!e;if(e)for(let a=0;a{fc(o,r),T.render(()=>{Ae(r,n,Me(o.tagName),t.transformTemplate),dr(o,r)})})}})};var Ys={useVisualState:Jt({scrapeMotionValuesFromProps:De,createRenderState:Ce})};import{Fragment as yc,useMemo as xc,createElement as vc}from"react";import{useMemo as pc}from"react";function Kn(t,e,o){for(let r in e)!A(e[r])&&!hr(r,o)&&(t[r]=e[r])}function dc({transformTemplate:t},e){return pc(()=>{let o=Ce();return Pe(o,e,t),Object.assign({},o.vars,o.style)},[e])}function hc(t,e){let o=t.style||{},r={};return Kn(r,o,t),Object.assign(r,dc(t,e)),r}function Xs(t,e){let o={},r=hc(t,e);return t.drag&&t.dragListener!==!1&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(o.tabIndex=0),o.style=r,o}import{useMemo as gc}from"react";function qs(t,e,o,r){let n=gc(()=>{let s=cr();return Ae(s,e,Me(r),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){let s={};Kn(s,t.style,t),n.style={...s,...n.style}}return n}function Zs(t=!1){return(o,r,n,{latestValues:s},i)=>{let l=(Se(o)?qs:Xs)(r,s,i,o),u=Bn(r,typeof o=="string",t),m=o!==yc?{...u,...l,ref:n}:{},{children:c}=r,f=xc(()=>A(c)?c.get():c,[c]);return vc(o,{...m,children:f})}}function yr(t,e){return function(r,{forwardMotionProps:n}={forwardMotionProps:!1}){let i={...Se(r)?$s:Ys,preloadedFeatures:t,useRender:Zs(n),createVisualElement:e,Component:r};return Un(i)}}var Js=yr();var Tc=sr(Js);function Hn(t,e){if(!Array.isArray(e))return!1;let o=e.length;if(o!==t.length)return!1;for(let r=0;r(vr===void 0&&$.set(O.isProcessing||Xt.useManualTiming?O.timestamp:performance.now()),vr),set:t=>{vr=t,queueMicrotask(Sc)}};function Ot(t,e){t.indexOf(e)===-1&&t.push(e)}function Ft(t,e){let o=t.indexOf(e);o>-1&&t.splice(o,1)}function Qs([...t],e,o){let r=e<0?t.length+e:e;if(r>=0&&rFt(this.subscriptions,e)}notify(e,o,r){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](e,o,r);else for(let s=0;s!isNaN(parseFloat(t)),Le={current:void 0},Ie=class{constructor(e,o={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,n=!0)=>{let s=$.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),n&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=o.owner}setCurrent(e){this.current=e,this.updatedAt=$.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Vc(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,o){this.events[e]||(this.events[e]=new Bt);let r=this.events[e].add(o);return e==="change"?()=>{r(),T.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,o){this.passiveEffect=e,this.stopPassiveEffect=o}set(e,o=!0){!o||!this.passiveEffect?this.updateAndNotify(e,o):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,o,r){this.set(o),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,o=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Le.current&&Le.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=$.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ta)return 0;let o=Math.min(this.updatedAt-this.prevUpdatedAt,ta);return Re(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(e){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=e(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Y(t,e){return new Ie(t,e)}function bc(t,e,o){t.hasValue(e)?t.getValue(e).set(o):t.addValue(e,Y(o))}function Co(t,e){let o=Lt(t,e),{transitionEnd:r={},transition:n={},...s}=o||{};s={...s,...r};for(let i in s){let a=ks(s[i]);bc(t,i,a)}}function ea(t){return!!(A(t)&&t.add)}function Mo(t,e){let o=t.getValue("willChange");if(ea(o))return o.add(e)}function Oe(t){return t.props[To]}function kt(t){let e;return()=>(e===void 0&&(e=t()),e)}var Tr=kt(()=>window.ScrollTimeline!==void 0);var Sr=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,o){for(let r=0;r{if(Tr()&&n.attachTimeline)return n.attachTimeline(e);if(typeof o=="function")return o(n)});return()=>{r.forEach((n,s)=>{n&&n(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let o=0;oo[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var jt=class extends Sr{then(e,o){return Promise.all(this.animations).then(e).catch(o)}};var F=t=>t*1e3,W=t=>t/1e3;var Nt={current:!1};function dt(t){return typeof t=="function"}function Eo(t,e){t.timeline=e,t.onfinish=null}var Do=t=>Array.isArray(t)&&typeof t[0]=="number";var oa={linearEasing:void 0};function ra(t,e){let o=kt(t);return()=>{var r;return(r=oa[e])!==null&&r!==void 0?r:o()}}var Ut=ra(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Z=(t,e,o)=>{let r=e-t;return r===0?1:(o-t)/r};var Vr=(t,e,o=10)=>{let r="",n=Math.max(Math.round(e/o),2);for(let s=0;s`cubic-bezier(${t}, ${e}, ${o}, ${r})`,$n={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ro([0,.65,.55,1]),circOut:Ro([.55,0,1,.45]),backIn:Ro([.31,.01,.66,-.59]),backOut:Ro([.33,1.53,.69,.99])};function Xn(t,e){if(t)return typeof t=="function"&&Ut()?Vr(t,e):Do(t)?Ro(t):Array.isArray(t)?t.map(o=>Xn(o,e)||$n.easeOut):$n[t]}var na=(t,e,o)=>(((1-3*o+3*e)*t+(3*o-6*e))*t+3*e)*t,wc=1e-7,Pc=12;function Ac(t,e,o,r,n){let s,i,a=0;do i=e+(o-e)/2,s=na(i,r,n)-t,s>0?o=i:e=i;while(Math.abs(s)>wc&&++aAc(s,0,1,t,o);return s=>s===0||s===1?s:na(n(s),e,r)}var Lo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;var Io=t=>e=>1-t(1-e);var br=bt(.33,1.53,.69,.99),Fe=Io(br),Oo=Lo(Fe);var Fo=t=>(t*=2)<1?.5*Fe(t):.5*(2-Math.pow(2,-10*(t-1)));var Bo=t=>1-Math.sin(Math.acos(t)),ko=Io(Bo),jo=Lo(Bo);var wr=t=>/^0[^.\s]+$/u.test(t);function ia(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||wr(t):!0}var Gt=t=>Math.round(t*1e5)/1e5;var Be=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sa(t){return t==null}var aa=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var ke=(t,e)=>o=>!!(typeof o=="string"&&aa.test(o)&&o.startsWith(t)||e&&!sa(o)&&Object.prototype.hasOwnProperty.call(o,e)),Pr=(t,e,o)=>r=>{if(typeof r!="string")return r;let[n,s,i,a]=r.match(Be);return{[t]:parseFloat(n),[e]:parseFloat(s),[o]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}};var Cc=t=>N(0,255,t),qn={...ft,transform:t=>Math.round(Cc(t))},ht={test:ke("rgb","red"),parse:Pr("red","green","blue"),transform:({red:t,green:e,blue:o,alpha:r=1})=>"rgba("+qn.transform(t)+", "+qn.transform(e)+", "+qn.transform(o)+", "+Gt(Vt.transform(r))+")"};function Mc(t){let e="",o="",r="",n="";return t.length>5?(e=t.substring(1,3),o=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),o=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,o+=o,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(o,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}}var No={test:ke("#"),parse:Mc,transform:ht.transform};var Wt={test:ke("hsl","hue"),parse:Pr("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:o,alpha:r=1})=>"hsla("+Math.round(t)+", "+tt.transform(Gt(e))+", "+tt.transform(Gt(o))+", "+Gt(Vt.transform(r))+")"};var G={test:t=>ht.test(t)||No.test(t)||Wt.test(t),parse:t=>ht.test(t)?ht.parse(t):Wt.test(t)?Wt.parse(t):No.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ht.transform(t):Wt.transform(t)};var la=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ec(t){var e,o;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Be))===null||e===void 0?void 0:e.length)||0)+(((o=t.match(la))===null||o===void 0?void 0:o.length)||0)>0}var ma="number",ca="color",Dc="var",Rc="var(",ua="${}",Lc=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Qt(t){let e=t.toString(),o=[],r={color:[],number:[],var:[]},n=[],s=0,a=e.replace(Lc,l=>(G.test(l)?(r.color.push(s),n.push(ca),o.push(G.parse(l))):l.startsWith(Rc)?(r.var.push(s),n.push(Dc),o.push(l)):(r.number.push(s),n.push(ma),o.push(parseFloat(l))),++s,ua)).split(ua);return{values:o,split:a,indexes:r,types:n}}function fa(t){return Qt(t).values}function pa(t){let{split:e,types:o}=Qt(t),r=e.length;return n=>{let s="";for(let i=0;itypeof t=="number"?0:t;function Oc(t){let e=fa(t);return pa(t)(e.map(Ic))}var J={test:Ec,parse:fa,createTransformer:pa,getAnimatableNone:Oc};var Fc=new Set(["brightness","contrast","saturate","opacity"]);function Bc(t){let[e,o]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;let[r]=o.match(Be)||[];if(!r)return t;let n=o.replace(r,""),s=Fc.has(e)?1:0;return r!==o&&(s*=100),e+"("+s+n+")"}var kc=/\b([a-z-]*)\(.*?\)/gu,Uo={...J,getAnimatableNone:t=>{let e=t.match(kc);return e?e.map(Bc).join(" "):t}};var jc={...we,color:G,backgroundColor:G,outlineColor:G,fill:G,stroke:G,borderColor:G,borderTopColor:G,borderRightColor:G,borderBottomColor:G,borderLeftColor:G,filter:Uo,WebkitFilter:Uo},je=t=>jc[t];function Ar(t,e){let o=je(t);return o!==Uo&&(o=J),o.getAnimatableNone?o.getAnimatableNone(e):void 0}var Nc=new Set(["auto","none","0"]);function da(t,e,o){let r=0,n;for(;rt===ft||t===V,ha=(t,e)=>parseFloat(t.split(", ")[e]),ga=(t,e)=>(o,{transform:r})=>{if(r==="none"||!r)return 0;let n=r.match(/^matrix3d\((.+)\)$/u);if(n)return ha(n[1],e);{let s=r.match(/^matrix\((.+)\)$/u);return s?ha(s[1],t):0}},Uc=new Set(["x","y","z"]),Gc=ct.filter(t=>!Uc.has(t));function ya(t){let e=[];return Gc.forEach(o=>{let r=t.getValue(o);r!==void 0&&(e.push([o,r.get()]),r.set(o.startsWith("scale")?1:0))}),e}var te={width:({x:t},{paddingLeft:e="0",paddingRight:o="0"})=>t.max-t.min-parseFloat(e)-parseFloat(o),height:({y:t},{paddingTop:e="0",paddingBottom:o="0"})=>t.max-t.min-parseFloat(e)-parseFloat(o),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:ga(4,13),y:ga(5,14)};te.translateX=te.x;te.translateY=te.y;var ee=new Set,Jn=!1,Qn=!1;function xa(){if(Qn){let t=Array.from(ee).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),o=new Map;e.forEach(r=>{let n=ya(r);n.length&&(o.set(r,n),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();let n=o.get(r);n&&n.forEach(([s,i])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(i)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Qn=!1,Jn=!1,ee.forEach(t=>t.complete()),ee.clear()}function va(){ee.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Qn=!0)})}function Ta(){va(),xa()}var _t=class{constructor(e,o,r,n,s,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=o,this.name=r,this.motionValue=n,this.element=s,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ee.add(this),Jn||(Jn=!0,T.read(va),T.resolveKeyframes(xa))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:o,element:r,motionValue:n}=this;for(let s=0;s/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var Wc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _c(t){let e=Wc.exec(t);if(!e)return[,];let[,o,r,n]=e;return[`--${o??r}`,n]}var zc=4;function ti(t,e,o=1){L(o<=zc,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,n]=_c(t);if(!r)return;let s=window.getComputedStyle(e).getPropertyValue(r);if(s){let i=s.trim();return Cr(i)?parseFloat(i):i}return be(n)?ti(n,e,o+1):n}var Mr=t=>e=>e.test(t);var Sa={test:t=>t==="auto",parse:t=>t};var ei=[ft,V,tt,pt,Gs,Us,Sa],oi=t=>ei.find(Mr(t));var Ne=class extends _t{constructor(e,o,r,n,s){super(e,o,r,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:o,name:r}=this;if(!o||!o.current)return;super.readKeyframes();for(let l=0;l{o.getValue(l).set(u)}),this.resolveNoneKeyframes()}};var ri=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(J.test(t)||t==="0")&&!t.startsWith("url("));function Kc(t){let e=t[0];if(t.length===1)return!0;for(let o=0;ot!==null;function gt(t,{repeat:e,repeatType:o="loop"},r){let n=t.filter(Hc),s=e&&o!=="loop"&&e%2===1?0:n.length-1;return!s||r===void 0?n[s]:r}var $c=40,Ue=class{constructor({autoplay:e=!0,delay:o=0,type:r="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=$.now(),this.options={autoplay:e,delay:o,type:r,repeat:n,repeatDelay:s,repeatType:i,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>$c?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Ta(),this._resolved}onKeyframesResolved(e,o){this.resolvedAt=$.now(),this.hasAttemptedResolve=!0;let{name:r,type:n,velocity:s,delay:i,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Va(e,r,n,s))if(Nt.current||!i){l&&l(gt(e,this.options,o)),a&&a(),this.resolveFinishedPromise();return}else this.options.duration=0;let m=this.initPlayback(e,o);m!==!1&&(this._resolved={keyframes:e,finalKeyframe:o,...m},this.onPostResolved())}onPostResolved(){}then(e,o){return this.currentFinishedPromise.then(e,o)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}};function Ge(t){let e=0,o=50,r=t.next(e);for(;!r.done&&e<2e4;)e+=o,r=t.next(e);return e>=2e4?1/0:e}var C=(t,e,o)=>t+(e-t)*o;function ni(t,e,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+(e-t)*6*o:o<1/2?e:o<2/3?t+(e-t)*(2/3-o)*6:t}function ba({hue:t,saturation:e,lightness:o,alpha:r}){t/=360,e/=100,o/=100;let n=0,s=0,i=0;if(!e)n=s=i=o;else{let a=o<.5?o*(1+e):o+e-o*e,l=2*o-a;n=ni(l,a,t+1/3),s=ni(l,a,t),i=ni(l,a,t-1/3)}return{red:Math.round(n*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function We(t,e){return o=>o>0?e:t}var ii=(t,e,o)=>{let r=t*t,n=o*(e*e-r)+r;return n<0?0:Math.sqrt(n)},Yc=[No,ht,Wt],Xc=t=>Yc.find(e=>e.test(t));function wa(t){let e=Xc(t);if(nt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let o=e.parse(t);return e===Wt&&(o=ba(o)),o}var si=(t,e)=>{let o=wa(t),r=wa(e);if(!o||!r)return We(t,e);let n={...o};return s=>(n.red=ii(o.red,r.red,s),n.green=ii(o.green,r.green,s),n.blue=ii(o.blue,r.blue,s),n.alpha=C(o.alpha,r.alpha,s),ht.transform(n))};var qc=(t,e)=>o=>e(t(o)),at=(...t)=>t.reduce(qc);var Er=new Set(["none","hidden"]);function Pa(t,e){return Er.has(t)?o=>o<=0?t:e:o=>o>=1?e:t}function Zc(t,e){return o=>C(t,e,o)}function Dr(t){return typeof t=="number"?Zc:typeof t=="string"?be(t)?We:G.test(t)?si:tf:Array.isArray(t)?Aa:typeof t=="object"?G.test(t)?si:Jc:We}function Aa(t,e){let o=[...t],r=o.length,n=t.map((s,i)=>Dr(s)(s,e[i]));return s=>{for(let i=0;i{for(let s in r)o[s]=r[s](n);return o}}function Qc(t,e){var o;let r=[],n={color:0,var:0,number:0};for(let s=0;s{let o=J.createTransformer(e),r=Qt(t),n=Qt(e);return r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length?Er.has(t)&&!n.values.length||Er.has(e)&&!r.values.length?Pa(t,e):at(Aa(Qc(r,n),n.values),o):(nt(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),We(t,e))};function Go(t,e,o){return typeof t=="number"&&typeof e=="number"&&typeof o=="number"?C(t,e,o):Dr(t)(t,e)}var ef=5;function Rr(t,e,o){let r=Math.max(e-ef,0);return Re(o-t(r),e-r)}var B={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var ai=.001;function li({duration:t=B.duration,bounce:e=B.bounce,velocity:o=B.velocity,mass:r=B.mass}){let n,s;nt(t<=F(B.maxDuration),"Spring duration must be 10 seconds or less");let i=1-e;i=N(B.minDamping,B.maxDamping,i),t=N(B.minDuration,B.maxDuration,W(t)),i<1?(n=u=>{let m=u*i,c=m*t,f=m-o,p=Lr(u,i),d=Math.exp(-c);return ai-f/p*d},s=u=>{let c=u*i*t,f=c*o+o,p=Math.pow(i,2)*Math.pow(u,2)*t,d=Math.exp(-c),h=Lr(Math.pow(u,2),i);return(-n(u)+ai>0?-1:1)*((f-p)*d)/h}):(n=u=>{let m=Math.exp(-u*t),c=(u-o)*t+1;return-ai+m*c},s=u=>{let m=Math.exp(-u*t),c=(o-u)*(t*t);return m*c});let a=5/t,l=rf(n,s,a);if(t=F(t),isNaN(l))return{stiffness:B.stiffness,damping:B.damping,duration:t};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:i*2*Math.sqrt(r*u),duration:t}}}var of=12;function rf(t,e,o){let r=o;for(let n=1;nt[o]!==void 0)}function af(t){let e={velocity:B.velocity,stiffness:B.stiffness,damping:B.damping,mass:B.mass,isResolvedFromDuration:!1,...t};if(!Ca(t,sf)&&Ca(t,nf))if(t.visualDuration){let o=t.visualDuration,r=2*Math.PI/(o*1.2),n=r*r,s=2*N(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:B.mass,stiffness:n,damping:s}}else{let o=li(t);e={...e,...o,mass:B.mass},e.isResolvedFromDuration=!0}return e}function oe(t=B.visualDuration,e=B.bounce){let o=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:n}=o,s=o.keyframes[0],i=o.keyframes[o.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:m,duration:c,velocity:f,isResolvedFromDuration:p}=af({...o,velocity:-W(o.velocity||0)}),d=f||0,h=u/(2*Math.sqrt(l*m)),y=i-s,g=W(Math.sqrt(l/m)),x=Math.abs(y)<5;r||(r=x?B.restSpeed.granular:B.restSpeed.default),n||(n=x?B.restDelta.granular:B.restDelta.default);let S;if(h<1){let v=Lr(g,h);S=P=>{let I=Math.exp(-h*g*P);return i-I*((d+h*g*y)/v*Math.sin(v*P)+y*Math.cos(v*P))}}else if(h===1)S=v=>i-Math.exp(-g*v)*(y+(d+g*y)*v);else{let v=g*Math.sqrt(h*h-1);S=P=>{let I=Math.exp(-h*g*P),w=Math.min(v*P,300);return i-I*((d+h*g*y)*Math.sinh(w)+v*y*Math.cosh(w))/v}}let b={calculatedDuration:p&&c||null,next:v=>{let P=S(v);if(p)a.done=v>=c;else{let I=0;h<1&&(I=v===0?F(d):Rr(S,v,P));let w=Math.abs(I)<=r,E=Math.abs(i-P)<=n;a.done=w&&E}return a.value=a.done?i:P,a},toString:()=>{let v=Math.min(Ge(b),2e4),P=Vr(I=>b.next(v*I).value,v,30);return v+"ms "+P}};return b}function Ir({keyframes:t,velocity:e=0,power:o=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:u=.5,restSpeed:m}){let c=t[0],f={done:!1,value:c},p=w=>a!==void 0&&wl,d=w=>a===void 0?l:l===void 0||Math.abs(a-w)-h*Math.exp(-w/r),S=w=>g+x(w),b=w=>{let E=x(w),X=S(w);f.done=Math.abs(E)<=u,f.value=f.done?g:X},v,P,I=w=>{p(f.value)&&(v=w,P=oe({keyframes:[f.value,d(f.value)],velocity:Rr(S,w,f.value),damping:n,stiffness:s,restDelta:u,restSpeed:m}))};return I(0),{calculatedDuration:null,next:w=>{let E=!1;return!P&&v===void 0&&(E=!0,b(w),I(w)),v!==void 0&&w>=v?P.next(w-v):(!E&&b(w),f)}}}var mi=bt(.42,0,1,1),ci=bt(0,0,.58,1),Wo=bt(.42,0,.58,1);var Or=t=>Array.isArray(t)&&typeof t[0]!="number";var Ma={linear:D,easeIn:mi,easeInOut:Wo,easeOut:ci,circIn:Bo,circInOut:jo,circOut:ko,backIn:Fe,backInOut:Oo,backOut:br,anticipate:Fo},_o=t=>{if(Do(t)){L(t.length===4,"Cubic bezier arrays must contain four numerical values.");let[e,o,r,n]=t;return bt(e,o,r,n)}else if(typeof t=="string")return L(Ma[t]!==void 0,`Invalid easing type '${t}'`),Ma[t];return t};function lf(t,e,o){let r=[],n=o||Go,s=t.length-1;for(let i=0;ie[0];if(s===2&&e[0]===e[1])return()=>e[1];let i=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=lf(e,r,n),l=a.length,u=m=>{if(i&&m1)for(;cu(N(t[0],t[s-1],m)):u}function Fr(t,e){let o=t[t.length-1];for(let r=1;r<=e;r++){let n=Z(0,e,r);t.push(C(o,1,n))}}function _e(t){let e=[0];return Fr(e,t.length-1),e}function Ea(t,e){return t.map(o=>o*e)}function uf(t,e){return t.map(()=>e||Wo).splice(0,t.length-1)}function ze({duration:t=300,keyframes:e,times:o,ease:r="easeInOut"}){let n=Or(r)?r.map(_o):_o(r),s={done:!1,value:e[0]},i=Ea(o&&o.length===e.length?o:_e(e),t),a=re(i,e,{ease:Array.isArray(n)?n:uf(e,n)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}var Da=t=>{let e=({timestamp:o})=>t(o);return{start:()=>T.update(e,!0),stop:()=>j(e),now:()=>O.isProcessing?O.timestamp:$.now()}};var mf={decay:Ir,inertia:Ir,tween:ze,keyframes:ze,spring:oe},cf=t=>t/100,zt=class extends Ue{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:l}=this.options;l&&l()};let{name:o,motionValue:r,element:n,keyframes:s}=this.options,i=n?.KeyframeResolver||_t,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new i(s,a,o,r,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let{type:o="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s,velocity:i=0}=this.options,a=dt(o)?o:mf[o]||ze,l,u;a!==ze&&typeof e[0]!="number"&&(l=at(cf,Go(e[0],e[1])),e=[0,100]);let m=a({...this.options,keyframes:e});s==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),m.calculatedDuration===null&&(m.calculatedDuration=Ge(m));let{calculatedDuration:c}=m,f=c+n,p=f*(r+1)-n;return{generator:m,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:c,resolvedDuration:f,totalDuration:p}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,o=!1){let{resolved:r}=this;if(!r){let{keyframes:w}=this.options;return{done:!0,value:w[w.length-1]}}let{finalKeyframe:n,generator:s,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:m,resolvedDuration:c}=r;if(this.startTime===null)return s.next(0);let{delay:f,repeat:p,repeatType:d,repeatDelay:h,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-m/this.speed,this.startTime)),o?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let g=this.currentTime-f*(this.speed>=0?1:-1),x=this.speed>=0?g<0:g>m;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let S=this.currentTime,b=s;if(p){let w=Math.min(this.currentTime,m)/c,E=Math.floor(w),X=w%1;!X&&w>=1&&(X=1),X===1&&E--,E=Math.min(E,p+1),!!(E%2)&&(d==="reverse"?(X=1-X,h&&(X-=h/c)):d==="mirror"&&(b=i)),S=N(0,1,X)*c}let v=x?{done:!1,value:l[0]}:b.next(S);a&&(v.value=a(v.value));let{done:P}=v;!x&&u!==null&&(P=this.speed>=0?this.currentTime>=m:this.currentTime<=0);let I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return I&&n!==void 0&&(v.value=gt(l,this.options,n)),y&&y(v.value),I&&this.finish(),v}get duration(){let{resolved:e}=this;return e?W(e.calculatedDuration):0}get time(){return W(this.currentTime)}set time(e){e=F(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let o=this.playbackSpeed!==e;this.playbackSpeed=e,o&&(this.time=W(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=Da,onPlay:o,startTime:r}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),o&&o();let n=this.driver.now();this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=n):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}};function fi(t){return new zt(t)}var Br=new Set(["opacity","clipPath","filter","transform"]);function ne(t,e,o,{delay:r=0,duration:n=300,repeat:s=0,repeatType:i="loop",ease:a="easeInOut",times:l}={}){let u={[e]:o};l&&(u.offset=l);let m=Xn(a,n);return Array.isArray(m)&&(u.easing=m),t.animate(u,{delay:r,duration:n,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"})}var kr=kt(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var jr=10,ff=2e4;function pf(t){return dt(t.type)||t.type==="spring"||!Yn(t.ease)}function df(t,e){let o=new zt({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:t[0]},n=[],s=0;for(;!r.done&&sthis.onKeyframesResolved(i,a),o,r,n),this.resolver.scheduleResolve()}initPlayback(e,o){let{duration:r=300,times:n,ease:s,type:i,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&Ut()&&hf(s)&&(s=Ra[s]),pf(this.options)){let{onComplete:c,onUpdate:f,motionValue:p,element:d,...h}=this.options,y=df(e,h);e=y.keyframes,e.length===1&&(e[1]=e[0]),r=y.duration,n=y.times,s=y.ease,i="keyframes"}let m=ne(a.owner.current,l,e,{...this.options,duration:r,times:n,ease:s});return m.startTime=u??this.calcStartTime(),this.pendingTimeline?(Eo(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{let{onComplete:c}=this.options;a.set(gt(e,this.options,o)),c&&c(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:n,type:i,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:o}=e;return W(o)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:o}=e;return W(o.currentTime||0)}set time(e){let{resolved:o}=this;if(!o)return;let{animation:r}=o;r.currentTime=F(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:o}=e;return o.playbackRate}set speed(e){let{resolved:o}=this;if(!o)return;let{animation:r}=o;r.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:o}=e;return o.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:o}=e;return o.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{let{resolved:o}=this;if(!o)return D;let{animation:r}=o;Eo(r,e)}return D}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:o}=e;o.playState==="finished"&&this.updateFinishedPromise(),o.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:o}=e;o.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:o,keyframes:r,duration:n,type:s,ease:i,times:a}=e;if(o.playState==="idle"||o.playState==="finished")return;if(this.time){let{motionValue:u,onUpdate:m,onComplete:c,element:f,...p}=this.options,d=new zt({...p,keyframes:r,duration:n,type:s,ease:i,times:a,isGenerator:!0}),h=F(this.time);u.setWithVelocity(d.sample(h-jr).value,d.sample(h).value,jr)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:o,name:r,repeatDelay:n,repeatType:s,damping:i,type:a}=e;if(!o||!o.owner||!(o.owner.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=o.owner.getProps();return kr()&&r&&Br.has(r)&&!l&&!u&&!n&&s!=="mirror"&&i!==0&&a!=="inertia"}};var gf={type:"spring",stiffness:500,damping:25,restSpeed:10},yf=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),xf={type:"keyframes",duration:.8},vf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},La=(t,{keyframes:e})=>e.length>2?xf:z.has(t)?t.startsWith("scale")?yf(e[1]):gf:vf;function Ia({when:t,delay:e,delayChildren:o,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:u,...m}){return!!Object.keys(m).length}var He=(t,e,o,r={},n,s)=>i=>{let a=It(r,t)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u=u-F(l);let m={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:n};Ia(a)||(m={...m,...La(t,m)}),m.duration&&(m.duration=F(m.duration)),m.repeatDelay&&(m.repeatDelay=F(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let c=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(c=!0)),(Nt.current||Xt.skipAnimations)&&(c=!0,m.duration=0,m.delay=0),c&&!s&&e.get()!==void 0){let f=gt(m.keyframes,a);if(f!==void 0)return T.update(()=>{m.onUpdate(f),m.onComplete()}),new jt([])}return!s&&Ke.supports(m)?new Ke(m):new zt(m)};function Tf({protectedKeys:t,needsAnimating:e},o){let r=t.hasOwnProperty(o)&&e[o]!==!0;return e[o]=!1,r}function $e(t,e,{delay:o=0,transitionOverride:r,type:n}={}){var s;let{transition:i=t.getDefaultTransition(),transitionEnd:a,...l}=e;r&&(i=r);let u=[],m=n&&t.animationState&&t.animationState.getState()[n];for(let c in l){let f=t.getValue(c,(s=t.latestValues[c])!==null&&s!==void 0?s:null),p=l[c];if(p===void 0||m&&Tf(m,c))continue;let d={delay:o,...It(i||{},c)},h=!1;if(window.MotionHandoffAnimation){let g=Oe(t);if(g){let x=window.MotionHandoffAnimation(g,c,T);x!==null&&(d.startTime=x,h=!0)}}Mo(t,c),f.start(He(c,f,p,t.shouldReduceMotion&&xr.has(c)?{type:!1}:d,t,h));let y=f.animation;y&&u.push(y)}return a&&Promise.all(u).then(()=>{T.update(()=>{a&&Co(t,a)})}),u}function Nr(t,e,o={}){var r;let n=Lt(t,e,o.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};o.transitionOverride&&(s=o.transitionOverride);let i=n?()=>Promise.all($e(t,n,o)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{let{delayChildren:m=0,staggerChildren:c,staggerDirection:f}=s;return Sf(t,e,m+u,c,f,o)}:()=>Promise.resolve(),{when:l}=s;if(l){let[u,m]=l==="beforeChildren"?[i,a]:[a,i];return u().then(()=>m())}else return Promise.all([i(),a(o.delay)])}function Sf(t,e,o=0,r=0,n=1,s){let i=[],a=(t.variantChildren.size-1)*r,l=n===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(t.variantChildren).sort(Vf).forEach((u,m)=>{u.notify("AnimationStart",e),i.push(Nr(u,e,{...s,delay:o+l(m)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(i)}function Vf(t,e){return t.sortNodePosition(e)}function ie(t,e,o={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){let n=e.map(s=>Nr(t,s,o));r=Promise.all(n)}else if(typeof e=="string")r=Nr(t,e,o);else{let n=typeof e=="function"?Lt(t,e,o.custom):e;r=Promise.all($e(t,n,o))}return r.then(()=>{t.notify("AnimationComplete",e)})}var bf=vo.length;function pi(t){if(!t)return;if(!t.isControllingVariants){let o=t.parent?pi(t.parent)||{}:{};return t.props.initial!==void 0&&(o.initial=t.props.initial),o}let e={};for(let o=0;oPromise.all(e.map(({animation:o,options:r})=>ie(t,o,r)))}function Fa(t){let e=Af(t),o=Oa(),r=!0,n=l=>(u,m)=>{var c;let f=Lt(t,m,l==="exit"?(c=t.presenceContext)===null||c===void 0?void 0:c.custom:void 0);if(f){let{transition:p,transitionEnd:d,...h}=f;u={...u,...h,...d}}return u};function s(l){e=l(t)}function i(l){let{props:u}=t,m=pi(t.parent)||{},c=[],f=new Set,p={},d=1/0;for(let y=0;yd&&b,E=!1,X=Array.isArray(S)?S:[S],q=X.reduce(n(g),{});v===!1&&(q={});let{prevResolvedValues:pe={}}=x,$t={...pe,...q},Mn=k=>{w=!0,f.has(k)&&(E=!0,f.delete(k)),x.needsAnimating[k]=!0;let U=t.getValue(k);U&&(U.liveStyle=!1)};for(let k in $t){let U=q[k],de=pe[k];if(p.hasOwnProperty(k))continue;let he=!1;bo(U)&&bo(de)?he=!Hn(U,de):he=U!==de,he?U!=null?Mn(k):f.add(k):U!==void 0&&f.has(k)?Mn(k):x.protectedKeys[k]=!0}x.prevProp=S,x.prevResolvedValues=q,x.isActive&&(p={...p,...q}),r&&t.blockInitialAnimation&&(w=!1),w&&(!(P&&I)||E)&&c.push(...X.map(k=>({animation:k,options:{type:g}})))}if(f.size){let y={};f.forEach(g=>{let x=t.getBaseTarget(g),S=t.getValue(g);S&&(S.liveStyle=!0),y[g]=x??null}),c.push({animation:y})}let h=!!c.length;return r&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(h=!1),r=!1,h?e(c):Promise.resolve()}function a(l,u){var m;if(o[l].isActive===u)return Promise.resolve();(m=t.variantChildren)===null||m===void 0||m.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),o[l].isActive=u;let c=i(l);for(let f in o)o[f].protectedKeys={};return c}return{animateChanges:i,setActive:a,setAnimateFunction:s,getState:()=>o,reset:()=>{o=Oa(),r=!0}}}function Cf(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Hn(e,t):!1}function se(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Oa(){return{animate:se(!0),whileInView:se(),whileHover:se(),whileTap:se(),whileDrag:se(),whileFocus:se(),exit:se()}}var K=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};var Ur=class extends K{constructor(e){super(e),e.animationState||(e.animationState=Fa(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Dt(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:o}=this.node.prevProps||{};e!==o&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}};var Mf=0,Gr=class extends K{constructor(){super(...arguments),this.id=Mf++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:o}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive("exit",!e);o&&!e&&n.then(()=>o(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}};var ae={animation:{Feature:Ur},exit:{Feature:Gr}};var it={x:!1,y:!1};function zo(){return it.x||it.y}function Ba(t){return t==="x"||t==="y"?it[t]?null:(it[t]=!0,()=>{it[t]=!1}):it.x||it.y?null:(it.x=it.y=!0,()=>{it.x=it.y=!1})}var Ye=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function lt(t,e,o,r={passive:!0}){return t.addEventListener(e,o,r),()=>t.removeEventListener(e,o)}function wt(t){return{point:{x:t.pageX,y:t.pageY}}}var di=t=>e=>Ye(e)&&t(e,wt(e));function Pt(t,e,o,r){return lt(t,e,di(o),r)}var hi=(t,e)=>Math.abs(t-e);function gi(t,e){let o=hi(t.x,e.x),r=hi(t.y,e.y);return Math.sqrt(o**2+r**2)}var Xe=class{constructor(e,o,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=xi(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=gi(c.offset,{x:0,y:0})>=3;if(!f&&!p)return;let{point:d}=c,{timestamp:h}=O;this.history.push({...d,timestamp:h});let{onStart:y,onMove:g}=this.handlers;f||(y&&y(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=yi(f,this.transformPagePoint),T.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{this.end();let{onEnd:p,onSessionEnd:d,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let y=xi(c.type==="pointercancel"?this.lastMoveEventInfo:yi(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(c,y),d&&d(c,y)},!Ye(e))return;this.dragSnapToOrigin=s,this.handlers=o,this.transformPagePoint=r,this.contextWindow=n||window;let i=wt(e),a=yi(i,this.transformPagePoint),{point:l}=a,{timestamp:u}=O;this.history=[{...l,timestamp:u}];let{onSessionStart:m}=o;m&&m(e,xi(a,this.history)),this.removeListeners=at(Pt(this.contextWindow,"pointermove",this.handlePointerMove),Pt(this.contextWindow,"pointerup",this.handlePointerUp),Pt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),j(this.updatePoint)}};function yi(t,e){return e?{point:e(t.point)}:t}function ka(t,e){return{x:t.x-e.x,y:t.y-e.y}}function xi({point:t},e){return{point:t,delta:ka(t,ja(e)),offset:ka(t,Ef(e)),velocity:Df(e,.1)}}function Ef(t){return t[0]}function ja(t){return t[t.length-1]}function Df(t,e){if(t.length<2)return{x:0,y:0};let o=t.length-1,r=null,n=ja(t);for(;o>=0&&(r=t[o],!(n.timestamp-r.timestamp>F(e)));)o--;if(!r)return{x:0,y:0};let s=W(n.timestamp-r.timestamp);if(s===0)return{x:0,y:0};let i={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}var Wa=1e-4,Rf=1-Wa,Lf=1+Wa,_a=.01,If=0-_a,Of=0+_a;function H(t){return t.max-t.min}function za(t,e,o){return Math.abs(t-e)<=o}function Na(t,e,o,r=.5){t.origin=r,t.originPoint=C(e.min,e.max,t.origin),t.scale=H(o)/H(e),t.translate=C(o.min,o.max,t.origin)-t.originPoint,(t.scale>=Rf&&t.scale<=Lf||isNaN(t.scale))&&(t.scale=1),(t.translate>=If&&t.translate<=Of||isNaN(t.translate))&&(t.translate=0)}function qe(t,e,o,r){Na(t.x,e.x,o.x,r?r.originX:void 0),Na(t.y,e.y,o.y,r?r.originY:void 0)}function Ua(t,e,o){t.min=o.min+e.min,t.max=t.min+H(e)}function Ka(t,e,o){Ua(t.x,e.x,o.x),Ua(t.y,e.y,o.y)}function Ga(t,e,o){t.min=e.min-o.min,t.max=t.min+H(e)}function Ze(t,e,o){Ga(t.x,e.x,o.x),Ga(t.y,e.y,o.y)}function qa(t,{min:e,max:o},r){return e!==void 0&&to&&(t=r?C(o,t,r.max):Math.min(t,o)),t}function Ha(t,e,o){return{min:e!==void 0?t.min+e:void 0,max:o!==void 0?t.max+o-(t.max-t.min):void 0}}function Za(t,{top:e,left:o,bottom:r,right:n}){return{x:Ha(t.x,o,n),y:Ha(t.y,e,r)}}function $a(t,e){let o=e.min-t.min,r=e.max-t.max;return e.max-e.minr?o=Z(e.min,e.max-r,t.min):r>n&&(o=Z(t.min,t.max-n,e.min)),N(0,1,o)}function tl(t,e){let o={};return e.min!==void 0&&(o.min=e.min-t.min),e.max!==void 0&&(o.max=e.max-t.min),o}var Wr=.35;function el(t=Wr){return t===!1?t=0:t===!0&&(t=Wr),{x:Ya(t,"left","right"),y:Ya(t,"top","bottom")}}function Ya(t,e,o){return{min:Xa(t,e),max:Xa(t,o)}}function Xa(t,e){return typeof t=="number"?t:t[e]||0}var ol=()=>({translate:0,scale:1,origin:0,originPoint:0}),le=()=>({x:ol(),y:ol()}),rl=()=>({min:0,max:0}),R=()=>({x:rl(),y:rl()});function et(t){return[t("x"),t("y")]}function _r({top:t,left:e,right:o,bottom:r}){return{x:{min:e,max:o},y:{min:t,max:r}}}function nl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function il(t,e){if(!e)return t;let o=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:o.y,left:o.x,bottom:r.y,right:r.x}}function vi(t){return t===void 0||t===1}function zr({scale:t,scaleX:e,scaleY:o}){return!vi(t)||!vi(e)||!vi(o)}function At(t){return zr(t)||Ti(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ti(t){return sl(t.x)||sl(t.y)}function sl(t){return t&&t!=="0%"}function Ko(t,e,o){let r=t-o,n=e*r;return o+n}function al(t,e,o,r,n){return n!==void 0&&(t=Ko(t,n,r)),Ko(t,o,r)+e}function Si(t,e=0,o=1,r,n){t.min=al(t.min,e,o,r,n),t.max=al(t.max,e,o,r,n)}function Vi(t,{x:e,y:o}){Si(t.x,e.translate,e.scale,e.originPoint),Si(t.y,o.translate,o.scale,o.originPoint)}var ll=.999999999999,ul=1.0000000000001;function cl(t,e,o,r=!1){let n=o.length;if(!n)return;e.x=e.y=1;let s,i;for(let a=0;all&&(e.x=1),e.yll&&(e.y=1)}function Kt(t,e){t.min=t.min+e,t.max=t.max+e}function ml(t,e,o,r,n=.5){let s=C(t.min,t.max,n);Si(t,e,o,s,r)}function ue(t,e){ml(t.x,e.x,e.scaleX,e.scale,e.originX),ml(t.y,e.y,e.scaleY,e.scale,e.originY)}function bi(t,e){return _r(il(t.getBoundingClientRect(),e))}function fl(t,e,o){let r=bi(t,o),{scroll:n}=e;return n&&(Kt(r.x,n.offset.x),Kt(r.y,n.offset.y)),r}var Kr=({current:t})=>t?t.ownerDocument.defaultView:null;var Ff=new WeakMap,$r=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=R(),this.visualElement=e}start(e,{snapToCursor:o=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let n=m=>{let{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),o&&this.snapToCursor(wt(m).point)},s=(m,c)=>{let{drag:f,dragPropagation:p,onDragStart:d}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ba(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),et(y=>{let g=this.getAxisMotionValue(y).get()||0;if(tt.test(g)){let{projection:x}=this.visualElement;if(x&&x.layout){let S=x.layout.layoutBox[y];S&&(g=H(S)*(parseFloat(g)/100))}}this.originPoint[y]=g}),d&&T.postRender(()=>d(m,c)),Mo(this.visualElement,"transform");let{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},i=(m,c)=>{let{dragPropagation:f,dragDirectionLock:p,onDirectionLock:d,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;let{offset:y}=c;if(p&&this.currentDirection===null){this.currentDirection=Bf(y),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",c.point,y),this.updateAxis("y",c.point,y),this.visualElement.render(),h&&h(m,c)},a=(m,c)=>this.stop(m,c),l=()=>et(m=>{var c;return this.getAnimationState(m)==="paused"&&((c=this.getAxisMotionValue(m).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Xe(e,{onSessionStart:n,onStart:s,onMove:i,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Kr(this.visualElement)})}stop(e,o){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=o;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&T.postRender(()=>s(e,o))}cancel(){this.isDragging=!1;let{projection:e,animationState:o}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}updateAxis(e,o,r){let{drag:n}=this.getProps();if(!r||!Hr(e,n,this.currentDirection))return;let s=this.getAxisMotionValue(e),i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=qa(i,this.constraints[e],this.elastic[e])),s.set(i)}resolveConstraints(){var e;let{dragConstraints:o,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;o&&St(o)?this.constraints||(this.constraints=this.resolveRefConstraints()):o&&n?this.constraints=Za(n.layoutBox,o):this.constraints=!1,this.elastic=el(r),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&et(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=tl(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:o}=this.getProps();if(!e||!St(e))return!1;let r=e.current;L(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=fl(r,n.root,this.visualElement.getTransformPagePoint()),i=Ja(n.layout.layoutBox,s);if(o){let a=o(nl(i));this.hasMutatedConstraints=!!a,a&&(i=_r(a))}return i}startAnimation(e){let{drag:o,dragMomentum:r,dragElastic:n,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=et(m=>{if(!Hr(m,o,this.currentDirection))return;let c=l&&l[m]||{};i&&(c={min:0,max:0});let f=n?200:1e6,p=n?40:1e7,d={type:"inertia",velocity:r?e[m]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...c};return this.startAxisValueAnimation(m,d)});return Promise.all(u).then(a)}startAxisValueAnimation(e,o){let r=this.getAxisMotionValue(e);return Mo(this.visualElement,e),r.start(He(e,r,0,o,this.visualElement,!1))}stopAnimation(){et(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){et(e=>{var o;return(o=this.getAxisMotionValue(e).animation)===null||o===void 0?void 0:o.pause()})}getAnimationState(e){var o;return(o=this.getAxisMotionValue(e).animation)===null||o===void 0?void 0:o.state}getAxisMotionValue(e){let o=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),n=r[o];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){et(o=>{let{drag:r}=this.getProps();if(!Hr(o,r,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(o);if(n&&n.layout){let{min:i,max:a}=n.layout.layoutBox[o];s.set(e[o]-C(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:o}=this.getProps(),{projection:r}=this.visualElement;if(!St(o)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};et(i=>{let a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){let l=a.get();n[i]=Qa({min:l,max:l},this.constraints[i])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),et(i=>{if(!Hr(i,e,null))return;let a=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];a.set(C(l,u,n[i]))})}addListeners(){if(!this.visualElement.current)return;Ff.set(this.visualElement,this);let e=this.visualElement.current,o=Pt(e,"pointerdown",l=>{let{drag:u,dragListener:m=!0}=this.getProps();u&&m&&this.start(l)}),r=()=>{let{dragConstraints:l}=this.getProps();St(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,s=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),T.read(r);let i=lt(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(et(m=>{let c=this.getAxisMotionValue(m);c&&(this.originPoint[m]+=l[m].translate,c.set(c.get()+l[m].translate))}),this.visualElement.render())});return()=>{i(),o(),s(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:i=Wr,dragMomentum:a=!0}=e;return{...e,drag:o,dragDirectionLock:r,dragPropagation:n,dragConstraints:s,dragElastic:i,dragMomentum:a}}};function Hr(t,e,o){return(e===!0||e===t)&&(o===null||o===t)}function Bf(t,e=10){let o=null;return Math.abs(t.y)>e?o="y":Math.abs(t.x)>e&&(o="x"),o}var Yr=class extends K{constructor(e){super(e),this.removeGroupControls=D,this.removeListeners=D,this.controls=new $r(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||D}unmount(){this.removeGroupControls(),this.removeListeners()}};var pl=t=>(e,o)=>{t&&T.postRender(()=>t(e,o))},Xr=class extends K{constructor(){super(...arguments),this.removePointerDownListener=D}onPointerDown(e){this.session=new Xe(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kr(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:o,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:pl(e),onStart:pl(o),onMove:r,onEnd:(s,i)=>{delete this.session,n&&T.postRender(()=>n(s,i))}}}mount(){this.removePointerDownListener=Pt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};import{jsx as kf}from"react/jsx-runtime";import{useContext as gl,Component as jf}from"react";var Je={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function dl(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var Qe={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(V.test(t))t=parseFloat(t);else return t;let o=dl(t,e.target.x),r=dl(t,e.target.y);return`${o}% ${r}%`}};var hl={correct:(t,{treeScale:e,projectionDelta:o})=>{let r=t,n=J.parse(t);if(n.length>5)return r;let s=J.createTransformer(t),i=typeof n[0]!="number"?1:0,a=o.x.scale*e.x,l=o.y.scale*e.y;n[0+i]/=a,n[1+i]/=l;let u=C(a,l,.5);return typeof n[2+i]=="number"&&(n[2+i]/=u),typeof n[3+i]=="number"&&(n[3+i]/=u),s(n)}};var wi=class extends jf{componentDidMount(){let{visualElement:e,layoutGroup:o,switchLayoutGroup:r,layoutId:n}=this.props,{projection:s}=e;zn(Nf),s&&(o.group&&o.group.add(s),r&&r.register&&n&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Je.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:o,visualElement:r,drag:n,isPresent:s}=this.props,i=r.projection;return i&&(i.isPresent=s,n||e.layoutDependency!==o||o===void 0?i.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?i.promote():i.relegate()||T.postRender(()=>{let a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Te.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:o,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function qr(t){let[e,o]=po(),r=gl(ut);return kf(wi,{...t,layoutGroup:r,switchLayoutGroup:gl(So),isPresent:e,safeToRemove:o})}var Nf={borderRadius:{...Qe,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qe,borderTopRightRadius:Qe,borderBottomLeftRadius:Qe,borderBottomRightRadius:Qe,boxShadow:hl};function Zr(t,e,o){let r=A(t)?t:Y(t);return r.start(He("",r,e,o)),r.animation}function Jr(t){return t instanceof SVGElement&&t.tagName!=="svg"}var yl=(t,e)=>t.depth-e.depth;var Ho=class{constructor(){this.children=[],this.isDirty=!1}add(e){Ot(this.children,e),this.isDirty=!0}remove(e){Ft(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(yl),this.isDirty=!1,this.children.forEach(e)}};function Pi(t,e){let o=$.now(),r=({timestamp:n})=>{let s=n-o;s>=e&&(j(r),t(s-e))};return T.read(r,!0),()=>j(r)}var Sl=["TopLeft","TopRight","BottomLeft","BottomRight"],Uf=Sl.length,xl=t=>typeof t=="string"?parseFloat(t):t,vl=t=>typeof t=="number"||V.test(t);function Vl(t,e,o,r,n,s){n?(t.opacity=C(0,o.opacity!==void 0?o.opacity:1,Gf(r)),t.opacityExit=C(e.opacity!==void 0?e.opacity:1,0,Wf(r))):s&&(t.opacity=C(e.opacity!==void 0?e.opacity:1,o.opacity!==void 0?o.opacity:1,r));for(let i=0;ire?1:o(Z(t,e,r))}function wl(t,e){t.min=e.min,t.max=e.max}function rt(t,e){wl(t.x,e.x),wl(t.y,e.y)}function Ai(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Pl(t,e,o,r,n){return t-=e,t=Ko(t,1/o,r),n!==void 0&&(t=Ko(t,1/n,r)),t}function _f(t,e=0,o=1,r=.5,n,s=t,i=t){if(tt.test(e)&&(e=parseFloat(e),e=C(i.min,i.max,e/100)-i.min),typeof e!="number")return;let a=C(s.min,s.max,r);t===s&&(a-=e),t.min=Pl(t.min,e,o,a,n),t.max=Pl(t.max,e,o,a,n)}function Al(t,e,[o,r,n],s,i){_f(t,e[o],e[r],e[n],e.scale,s,i)}var zf=["x","scaleX","originX"],Kf=["y","scaleY","originY"];function Ci(t,e,o,r){Al(t.x,e,zf,o?o.x:void 0,r?r.x:void 0),Al(t.y,e,Kf,o?o.y:void 0,r?r.y:void 0)}function Cl(t){return t.translate===0&&t.scale===1}function Mi(t){return Cl(t.x)&&Cl(t.y)}function Ml(t,e){return t.min===e.min&&t.max===e.max}function Dl(t,e){return Ml(t.x,e.x)&&Ml(t.y,e.y)}function El(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ei(t,e){return El(t.x,e.x)&&El(t.y,e.y)}function Di(t){return H(t.x)/H(t.y)}function Ri(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var Qr=class{constructor(){this.members=[]}add(e){Ot(this.members,e),e.scheduleRender()}remove(e){if(Ft(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(e){let o=this.members.findIndex(n=>e===n);if(o===0)return!1;let r;for(let n=o;n>=0;n--){let s=this.members[n];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,o){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,o&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;n===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:o,resumingFrom:r}=e;o.onExitComplete&&o.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function Rl(t,e,o){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,i=o?.z||0;if((n||s||i)&&(r=`translate3d(${n}px, ${s}px, ${i}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),o){let{transformPerspective:u,rotate:m,rotateX:c,rotateY:f,skewX:p,skewY:d}=o;u&&(r=`perspective(${u}px) ${r}`),m&&(r+=`rotate(${m}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),d&&(r+=`skewY(${d}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}var me={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},$o=typeof window<"u"&&window.MotionDebug!==void 0,Li=["","X","Y","Z"],Hf={visibility:"hidden"},Ll=1e3,$f=0;function Ii(t,e,o,r){let{latestValues:n}=e;n[t]&&(o[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function Ul(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:e}=t.options;if(!e)return;let o=Oe(e);if(window.MotionHasOptimisedAnimation(o,"transform")){let{layout:n,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(o,"transform",T,!(n||s))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&Ul(r)}function tn({attachResizeListener:t,defaultParent:e,measureScroll:o,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(i={},a=e?.()){this.id=$f++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,$o&&(me.totalNodes=me.resolvedTargetDeltas=me.recalculatedProjection=0),this.nodes.forEach(qf),this.nodes.forEach(ep),this.nodes.forEach(op),this.nodes.forEach(Zf),$o&&window.MotionDebug.record(me)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(i,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=Pi(f,250),Je.hasAnimatedSinceResize&&(Je.hasAnimatedSinceResize=!1,this.nodes.forEach(Ol))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&m&&(l||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let h=this.options.transition||m.getDefaultTransition()||ap,{onLayoutAnimationStart:y,onLayoutAnimationComplete:g}=m.getProps(),x=!this.targetLayout||!Ei(this.targetLayout,d)||p,S=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,S);let b={...It(h,"layout"),onPlay:y,onComplete:g};(m.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||Ol(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,j(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rp),this.animationId++)}getTransformTemplate(){let{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ul(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{let v=b/1e3;Fl(c.x,i.x,v),Fl(c.y,i.y,v),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ze(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ip(this.relativeTarget,this.relativeTargetOrigin,f,v),S&&Dl(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=R()),rt(S,this.relativeTarget)),h&&(this.animationValues=m,Vl(m,u,this.latestValues,v,x,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=v},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(j(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=T.update(()=>{Je.hasAnimatedSinceResize=!0,this.currentAnimation=Zr(0,Ll,{...i,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ll),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let i=this.getLead(),{targetWithTransforms:a,target:l,layout:u,latestValues:m}=i;if(!(!a||!l||!u)){if(this!==i&&this.layout&&u&&Gl(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||R();let c=H(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+c;let f=H(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+f}rt(a,l),ue(a,m),qe(this.projectionDeltaWithTransform,this.layoutCorrected,a,m)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Qr),this.sharedNodes.get(i).add(a);let u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){let i=this.getStack();return i?i.lead===this:!0}getLead(){var i;let{layoutId:a}=this.options;return a?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;let{layoutId:a}=this.options;return a?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){let{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){let{visualElement:i}=this.options;if(!i)return;let a=!1,{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;let u={};l.z&&Ii("z",i,u,this.animationValues);for(let m=0;m{var a;return(a=i.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Il),this.root.sharedNodes.clear()}}}function Yf(t){t.updateLayout()}function Xf(t){var e;let o=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&o&&t.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=t.layout,{animationType:s}=t.options,i=o.source!==t.layout.source;s==="size"?et(c=>{let f=i?o.measuredBox[c]:o.layoutBox[c],p=H(f);f.min=r[c].min,f.max=f.min+p}):Gl(s,o.layoutBox,r)&&et(c=>{let f=i?o.measuredBox[c]:o.layoutBox[c],p=H(r[c]);f.max=f.min+p,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[c].max=t.relativeTarget[c].min+p)});let a=le();qe(a,r,o.layoutBox);let l=le();i?qe(l,t.applyTransform(n,!0),o.measuredBox):qe(l,r,o.layoutBox);let u=!Mi(a),m=!1;if(!t.resumeFrom){let c=t.getClosestProjectingParent();if(c&&!c.resumeFrom){let{snapshot:f,layout:p}=c;if(f&&p){let d=R();Ze(d,o.layoutBox,f.layoutBox);let h=R();Ze(h,r,p.layoutBox),Ei(d,h)||(m=!0),c.options.layoutRoot&&(t.relativeTarget=h,t.relativeTargetOrigin=d,t.relativeParent=c)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:o,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:m})}else if(t.isLead()){let{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function qf(t){$o&&me.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Zf(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Jf(t){t.clearSnapshot()}function Il(t){t.clearMeasurements()}function Qf(t){t.isLayoutDirty=!1}function tp(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ol(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ep(t){t.resolveTargetDelta()}function op(t){t.calcProjection()}function rp(t){t.resetSkewAndRotation()}function np(t){t.removeLeadSnapshot()}function Fl(t,e,o){t.translate=C(e.translate,0,o),t.scale=C(e.scale,1,o),t.origin=e.origin,t.originPoint=e.originPoint}function Bl(t,e,o,r){t.min=C(e.min,o.min,r),t.max=C(e.max,o.max,r)}function ip(t,e,o,r){Bl(t.x,e.x,o.x,r),Bl(t.y,e.y,o.y,r)}function sp(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}var ap={duration:.45,ease:[.4,0,.1,1]},kl=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),jl=kl("applewebkit/")&&!kl("chrome/")?Math.round:D;function Nl(t){t.min=jl(t.min),t.max=jl(t.max)}function lp(t){Nl(t.x),Nl(t.y)}function Gl(t,e,o){return t==="position"||t==="preserve-aspect"&&!za(Di(e),Di(o),.2)}function up(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}var Wl=tn({attachResizeListener:(t,e)=>lt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Ct={current:void 0},en=tn({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ct.current){let t=new Wl({});t.mount(window),t.setOptions({layoutScroll:!0}),Ct.current=t}return Ct.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});var on={pan:{Feature:Xr},drag:{Feature:Yr,ProjectionNode:en,MeasureLayout:qr}};function yt(t,e,o){var r;if(t instanceof Element)return[t];if(typeof t=="string"){let n=document;e&&(n=e.current);let s=(r=o?.[t])!==null&&r!==void 0?r:n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function rn(t,e){let o=yt(t),r=new AbortController,n={passive:!0,...e,signal:r.signal};return[o,n,()=>r.abort()]}function _l(t){return e=>{e.pointerType==="touch"||zo()||t(e)}}function zl(t,e,o={}){let[r,n,s]=rn(t,o),i=_l(a=>{let{target:l}=a,u=e(a);if(typeof u!="function"||!l)return;let m=_l(c=>{u(c),l.removeEventListener("pointerleave",m)});l.addEventListener("pointerleave",m,n)});return r.forEach(a=>{a.addEventListener("pointerenter",i,n)}),s}function Kl(t,e,o){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",o==="Start");let n="onHover"+o,s=r[n];s&&T.postRender(()=>s(e,wt(e)))}var nn=class extends K{mount(){let{current:e}=this.node;e&&(this.unmount=zl(e,o=>(Kl(this.node,o,"Start"),r=>Kl(this.node,r,"End"))))}unmount(){}};var sn=class extends K{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=at(lt(this.node.current,"focus",()=>this.onFocus()),lt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};var Oi=(t,e)=>e?t===e?!0:Oi(t,e.parentElement):!1;var mp=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Hl(t){return mp.has(t.tagName)||t.tabIndex!==-1}var ce=new WeakSet;function $l(t){return e=>{e.key==="Enter"&&t(e)}}function Fi(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}var Yl=(t,e)=>{let o=t.currentTarget;if(!o)return;let r=$l(()=>{if(ce.has(o))return;Fi(o,"down");let n=$l(()=>{Fi(o,"up")}),s=()=>Fi(o,"cancel");o.addEventListener("keyup",n,e),o.addEventListener("blur",s,e)});o.addEventListener("keydown",r,e),o.addEventListener("blur",()=>o.removeEventListener("keydown",r),e)};function Xl(t){return Ye(t)&&!zo()}function ql(t,e,o={}){let[r,n,s]=rn(t,o),i=a=>{let l=a.currentTarget;if(!Xl(a)||ce.has(l))return;ce.add(l);let u=e(a),m=(p,d)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",f),!(!Xl(p)||!ce.has(l))&&(ce.delete(l),typeof u=="function"&&u(p,{success:d}))},c=p=>{m(p,o.useGlobalTarget||Oi(l,p.target))},f=p=>{m(p,!1)};window.addEventListener("pointerup",c,n),window.addEventListener("pointercancel",f,n)};return r.forEach(a=>{!Hl(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(o.useGlobalTarget?window:a).addEventListener("pointerdown",i,n),a.addEventListener("focus",u=>Yl(u,n),n)}),s}function Zl(t,e,o){let{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",o==="Start");let n="onTap"+(o==="End"?"":o),s=r[n];s&&T.postRender(()=>s(e,wt(e)))}var an=class extends K{mount(){let{current:e}=this.node;e&&(this.unmount=ql(e,o=>(Zl(this.node,o,"Start"),(r,{success:n})=>Zl(this.node,r,n?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};var ki=new WeakMap,Bi=new WeakMap,cp=t=>{let e=ki.get(t.target);e&&e(t)},fp=t=>{t.forEach(cp)};function pp({root:t,...e}){let o=t||document;Bi.has(o)||Bi.set(o,{});let r=Bi.get(o),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(fp,{root:t,...e})),r[n]}function Jl(t,e,o){let r=pp(e);return ki.set(t,o),r.observe(t),()=>{ki.delete(t),r.unobserve(t)}}var dp={some:0,all:1},ln=class extends K{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:o,margin:r,amount:n="some",once:s}=e,i={root:o?o.current:void 0,rootMargin:r,threshold:typeof n=="number"?n:dp[n]},a=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:m,onViewportLeave:c}=this.node.getProps(),f=u?m:c;f&&f(l)};return Jl(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:e,prevProps:o}=this.node;["amount","margin","root"].some(hp(e,o))&&this.startObserver()}unmount(){}};function hp({viewport:t={}},{viewport:e={}}={}){return o=>t[o]!==e[o]}var un={inView:{Feature:ln},tap:{Feature:an},focus:{Feature:sn},hover:{Feature:nn}};var mn={layout:{ProjectionNode:en,MeasureLayout:qr}};import{Fragment as xp}from"react";var fe={current:null},to={current:!1};function cn(){if(to.current=!0,!!Yt)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>fe.current=t.matches;t.addListener(e),e()}else fe.current=!1}var gp=[...ei,G,J],Ql=t=>gp.find(Mr(t));var xt=new WeakMap;function tu(t,e,o){for(let r in e){let n=e[r],s=o[r];if(A(n))t.addValue(r,n);else if(A(s))t.addValue(r,Y(n,{owner:t}));else if(s!==n)if(t.hasValue(r)){let i=t.getValue(r);i.liveStyle===!0?i.jump(n):i.hasAnimated||i.set(n)}else{let i=t.getStaticValue(r);t.addValue(r,Y(i!==void 0?i:n,{owner:t}))}}for(let r in o)e[r]===void 0&&t.removeValue(r);return e}var eu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Mt=class{scrapeMotionValuesFromProps(e,o,r){return{}}constructor({parent:e,props:o,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:s,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=_t,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let p=$.now();this.renderScheduledAtthis.bindToMotionValue(r,o)),to.current||cn(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fe.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xt.delete(this.current),this.projection&&this.projection.unmount(),j(this.notifyUpdate),j(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let o=this.features[e];o&&(o.unmount(),o.isMounted=!1)}this.current=null}bindToMotionValue(e,o){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=z.has(e),n=o.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&T.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=o.on("renderRequest",this.scheduleRender),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,o)),this.valueSubscriptions.set(e,()=>{n(),s(),i&&i(),o.owner&&o.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in vt){let o=vt[e];if(!o)continue;let{isEnabled:r,Feature:n}=o;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):R()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,o){this.latestValues[e]=o}update(e,o){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let r=0;ro.variantChildren.delete(e)}addValue(e,o){let r=this.values.get(e);o!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,o),this.values.set(e,o),this.latestValues[e]=o.get())}removeValue(e){this.values.delete(e);let o=this.valueSubscriptions.get(e);o&&(o(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,o){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&o!==void 0&&(r=Y(o===null?void 0:o,{owner:this}),this.addValue(e,r)),r}readValue(e,o){var r;let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n=="string"&&(Cr(n)||wr(n))?n=parseFloat(n):!Ql(n)&&J.test(o)&&(n=Ar(e,o)),this.setBaseTarget(e,A(n)?n.get():n)),A(n)?n.get():n}setBaseTarget(e,o){this.baseTarget[e]=o}getBaseTarget(e){var o;let{initial:r}=this.props,n;if(typeof r=="string"||typeof r=="object"){let i=Ve(this.props,r,(o=this.presenceContext)===null||o===void 0?void 0:o.custom);i&&(n=i[e])}if(r&&n!==void 0)return n;let s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!A(s)?s:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,o){return this.events[e]||(this.events[e]=new Bt),this.events[e].add(o)}notify(e,...o){this.events[e]&&this.events[e].notify(...o)}};var eo=class extends Mt{constructor(){super(...arguments),this.KeyframeResolver=Ne}sortInstanceNodePosition(e,o){return e.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(e,o){return e.style?e.style[o]:void 0}removeValueFromRenderState(e,{vars:o,style:r}){delete o[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;A(e)&&(this.childSubscription=e.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}};function yp(t){return window.getComputedStyle(t)}var oo=class extends eo{constructor(){super(...arguments),this.type="html",this.renderInstance=fr}readValueFromInstance(e,o){if(z.has(o)){let r=je(o);return r&&r.default||0}else{let r=yp(e),n=(ur(o)?r.getPropertyValue(o):r[o])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:o}){return bi(e,o)}build(e,o,r){Pe(e,o,r.transformTemplate)}scrapeMotionValuesFromProps(e,o,r){return De(e,o,r)}};var ro=class extends eo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=R}getBaseTargetFromProps(e,o){return e[o]}readValueFromInstance(e,o){if(z.has(o)){let r=je(o);return r&&r.default||0}return o=pr.has(o)?o:Rt(o),e.getAttribute(o)}scrapeMotionValuesFromProps(e,o,r){return gr(e,o,r)}build(e,o,r){Ae(e,o,this.isSVGTag,r.transformTemplate)}renderInstance(e,o,r,n){dr(e,o,r,n)}mount(e){this.isSVGTag=Me(e.tagName),super.mount(e)}};var no=(t,e)=>Se(t)?new ro(e):new oo(e,{allowProjection:t!==xp});var ou=yr({...ae,...un,...on,...mn},no);var Yo=sr(ou);var ji={renderer:no,...ae,...un};var vp={...ji,...on,...mn};var Tp={renderer:no,...ae};import{useInsertionEffect as Sp}from"react";function Ni(t,e,o){Sp(()=>t.on(e,o),[t,e,o])}import{useEffect as kp}from"react";function Ui(t,e){let o,r=()=>{let{currentTime:n}=e,i=(n===null?0:n.value)/100;o!==i&&t(i),o=i};return T.update(r,!0),()=>j(r)}var fn=new WeakMap,Ht;function Vp(t,e){if(e){let{inlineSize:o,blockSize:r}=e[0];return{width:o,height:r}}else return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}function bp({target:t,contentRect:e,borderBoxSize:o}){var r;(r=fn.get(t))===null||r===void 0||r.forEach(n=>{n({target:t,contentSize:e,get size(){return Vp(t,o)}})})}function wp(t){t.forEach(bp)}function Pp(){typeof ResizeObserver>"u"||(Ht=new ResizeObserver(wp))}function ru(t,e){Ht||Pp();let o=yt(t);return o.forEach(r=>{let n=fn.get(r);n||(n=new Set,fn.set(r,n)),n.add(e),Ht?.observe(r)}),()=>{o.forEach(r=>{let n=fn.get(r);n?.delete(e),n?.size||Ht?.unobserve(r)})}}var pn=new Set,Xo;function Ap(){Xo=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};pn.forEach(o=>o(e))},window.addEventListener("resize",Xo)}function nu(t){return pn.add(t),Xo||Ap(),()=>{pn.delete(t),!pn.size&&Xo&&(Xo=void 0)}}function iu(t,e){return typeof t=="function"?nu(t):ru(t,e)}var Cp=50,su=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),lu=()=>({time:0,x:su(),y:su()}),Mp={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function au(t,e,o,r){let n=o[e],{length:s,position:i}=Mp[e],a=n.current,l=o.time;n.current=t[`scroll${i}`],n.scrollLength=t[`scroll${s}`]-t[`client${s}`],n.offset.length=0,n.offset[0]=0,n.offset[1]=n.scrollLength,n.progress=Z(0,n.scrollLength,n.current);let u=r-l;n.velocity=u>Cp?0:Re(n.current-a,u)}function uu(t,e,o){au(t,"x",e,o),au(t,"y",e,o),e.time=o}function mu(t,e){let o={x:0,y:0},r=t;for(;r&&r!==e;)if(r instanceof HTMLElement)o.x+=r.offsetLeft,o.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){let n=r.getBoundingClientRect();r=r.parentElement;let s=r.getBoundingClientRect();o.x+=n.left-s.left,o.y+=n.top-s.top}else if(r instanceof SVGGraphicsElement){let{x:n,y:s}=r.getBBox();o.x+=n,o.y+=s;let i=null,a=r.parentNode;for(;!i;)a.tagName==="svg"&&(i=a),a=r.parentNode;r=i}else break;return o}var dn={start:0,center:.5,end:1};function Gi(t,e,o=0){let r=0;if(t in dn&&(t=dn[t]),typeof t=="string"){let n=parseFloat(t);t.endsWith("px")?r=n:t.endsWith("%")?t=n/100:t.endsWith("vw")?r=n/100*document.documentElement.clientWidth:t.endsWith("vh")?r=n/100*document.documentElement.clientHeight:t=n}return typeof t=="number"&&(r=e*t),o+r}var Ep=[0,0];function cu(t,e,o,r){let n=Array.isArray(t)?t:Ep,s=0,i=0;return typeof t=="number"?n=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?n=t.split(" "):n=[t,dn[t]?t:"0"]),s=Gi(n[0],o,r),i=Gi(n[1],e),s-i}var fu={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};var Dp={x:0,y:0};function Rp(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function pu(t,e,o){let{offset:r=fu.All}=o,{target:n=t,axis:s="y"}=o,i=s==="y"?"height":"width",a=n!==t?mu(n,t):Dp,l=n===t?{width:t.scrollWidth,height:t.scrollHeight}:Rp(n),u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let m=!e[s].interpolate,c=r.length;for(let f=0;fLp(t,r.target,o),update:n=>{uu(t,o,n),(r.offset||r.target)&&pu(t,o,r)},notify:()=>e(o)}}var qo=new WeakMap,hu=new WeakMap,Wi=new WeakMap,gu=t=>t===document.documentElement?window:t;function Zo(t,{container:e=document.documentElement,...o}={}){let r=Wi.get(e);r||(r=new Set,Wi.set(e,r));let n=lu(),s=du(e,t,n,o);if(r.add(s),!qo.has(e)){let a=()=>{for(let f of r)f.measure()},l=()=>{for(let f of r)f.update(O.timestamp)},u=()=>{for(let f of r)f.notify()},m=()=>{T.read(a,!1,!0),T.read(l,!1,!0),T.update(u,!1,!0)};qo.set(e,m);let c=gu(e);window.addEventListener("resize",m,{passive:!0}),e!==document.documentElement&&hu.set(e,iu(e,m)),c.addEventListener("scroll",m,{passive:!0})}let i=qo.get(e);return T.read(i,!1,!0),()=>{var a;j(i);let l=Wi.get(e);if(!l||(l.delete(s),l.size))return;let u=qo.get(e);qo.delete(e),u&&(gu(e).removeEventListener("scroll",u),(a=hu.get(e))===null||a===void 0||a(),window.removeEventListener("resize",u))}}function Ip({source:t,container:e,axis:o="y"}){t&&(e=t);let r={value:0},n=Zo(s=>{r.value=s[o].progress*100},{container:e,axis:o});return{currentTime:r,cancel:n}}var _i=new Map;function yu({source:t,container:e=document.documentElement,axis:o="y"}={}){t&&(e=t),_i.has(e)||_i.set(e,{});let r=_i.get(e);return r[o]||(r[o]=Tr()?new ScrollTimeline({source:e,axis:o}):Ip({source:e,axis:o})),r[o]}function Op(t){return t.length===2}function xu(t){return t&&(t.target||t.offset)}function Fp(t,e){return Op(t)||xu(e)?Zo(o=>{t(o[e.axis].progress,o)},e):Ui(t,yu(e))}function Bp(t,e){if(t.flatten(),xu(e))return t.pause(),Zo(o=>{t.time=t.duration*o[e.axis].progress},e);{let o=yu(e);return t.attachTimeline?t.attachTimeline(o,r=>(r.pause(),Ui(n=>{r.time=r.duration*n},o))):D}}function zi(t,{axis:e="y",...o}={}){let r={axis:e,...o};return typeof t=="function"?Fp(t,r):Bp(t,r)}function vu(t,e){nt(!!(!e||e.current),`You have defined a ${t} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}var jp=()=>({scrollX:Y(0),scrollY:Y(0),scrollXProgress:Y(0),scrollYProgress:Y(0)});function Jo({container:t,target:e,layoutEffect:o=!0,...r}={}){let n=M(jp);return(o?Q:kp)(()=>(vu("target",e),vu("container",t),zi((i,{x:a,y:l})=>{n.scrollX.set(a.current),n.scrollXProgress.set(a.progress),n.scrollY.set(l.current),n.scrollYProgress.set(l.progress)},{...r,container:t?.current||void 0,target:e?.current||void 0})),[t,e,JSON.stringify(r.offset)]),n}function Np(t){return Jo({container:t})}function Up(){return Jo()}import{useContext as Gp,useState as Wp,useEffect as _p}from"react";function ot(t){let e=M(()=>Y(t)),{isStatic:o}=Gp(_);if(o){let[,r]=Wp(t);_p(()=>e.on("change",r),[])}return e}function io(t,e){let o=ot(e()),r=()=>o.set(e());return r(),Q(()=>{let n=()=>T.preRender(r,!1,!0),s=t.map(i=>i.on("change",n));return()=>{s.forEach(i=>i()),j(r)}}),o}function zp(t,...e){let o=t.length;function r(){let n="";for(let s=0;s{}),a=()=>{let u=r.current;u&&u.time===0&&u.sample(O.delta),l(),r.current=fi({keyframes:[n.get(),s.current],velocity:n.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...e,onUpdate:i.current})},l=()=>{r.current&&r.current.stop()};return Hp(()=>n.attach((u,m)=>o?m(u):(s.current=u,i.current=m,T.update(a),n.get()),l),[JSON.stringify(e)]),Q(()=>{if(A(t))return t.on("change",u=>n.set(Tu(u)))},[n]),n}import{useRef as Yp,useContext as Xp,useEffect as qp}from"react";function Hi(t){let e=Yp(0),{isStatic:o}=Xp(_);qp(()=>{if(o)return;let r=({timestamp:n,delta:s})=>{e.current||(e.current=n),t(n-e.current,s)};return T.update(r,!0),()=>j(r)},[t])}function Zp(){let t=ot(0);return Hi(e=>t.set(e)),t}var Jp=t=>t&&typeof t=="object"&&t.mix,Qp=t=>Jp(t)?t.mix:void 0;function $i(...t){let e=!Array.isArray(t[0]),o=e?0:-1,r=t[0+o],n=t[1+o],s=t[2+o],i=t[3+o],a=re(n,s,{mixer:Qp(s[0]),...i});return e?a(r):a}function Su(t){Le.current=[],t();let e=io(Le.current,t);return Le.current=void 0,e}function so(t,e,o,r){if(typeof t=="function")return Su(t);let n=typeof e=="function"?e:$i(e,o,r);return Array.isArray(t)?Vu(t,n):Vu([t],([s])=>n(s))}function Vu(t,e){let o=M(()=>[]);return io(t,()=>{o.length=0;let r=t.length;for(let n=0;n{let r=t.getVelocity();e.set(r),r&&T.update(o)};return Ni(t,"change",()=>{T.update(o,!1,!0)}),e}function bu(t){if(z.has(t))return"transform";if(Br.has(t))return Rt(t)}var hn=class extends Ie{constructor(){super(...arguments),this.values=[]}add(e){let o=bu(e);o&&(Ot(this.values,o),this.update())}update(){this.set(this.values.length?this.values.join(", "):"auto")}};function ed(){return M(()=>new hn("auto"))}import{useState as od}from"react";function Yi(){!to.current&&cn();let[t]=od(fe.current);return t}import{useContext as rd}from"react";function nd(){let t=Yi(),{reducedMotion:e}=rd(_);return e==="never"?!1:e==="always"?!0:t}function id(t){t.values.forEach(e=>e.stop())}function Xi(t,e){[...e].reverse().forEach(r=>{let n=t.getVariant(r);n&&Co(t,n),t.variantChildren&&t.variantChildren.forEach(s=>{Xi(s,e)})})}function sd(t,e){if(Array.isArray(e))return Xi(t,e);if(typeof e=="string")return Xi(t,[e]);Co(t,e)}function qi(){let t=!1,e=new Set,o={subscribe(r){return e.add(r),()=>void e.delete(r)},start(r,n){L(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let s=[];return e.forEach(i=>{s.push(ie(i,r,{transitionOverride:n}))}),Promise.all(s)},set(r){return L(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(n=>{sd(n,r)})},stop(){e.forEach(r=>{id(r)})},mount(){return t=!0,()=>{t=!1,o.stop()}}};return o}import{useEffect as ad}from"react";function Qo(t){return ad(()=>()=>t(),[])}function gn(t,e=100,o){let r=o({...t,keyframes:[0,e]}),n=Math.min(Ge(r),2e4);return{type:"keyframes",ease:s=>r.next(n*s).value/e,duration:W(n)}}var tr=(t,e,o)=>{let r=e-t;return((o-t)%r+r)%r+t};function yn(t,e){return Or(t)?t[tr(0,t.length,e)]:t}function er(t){return typeof t=="object"&&!Array.isArray(t)}function xn(t,e,o,r){return typeof t=="string"&&er(e)?yt(t,o,r):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function wu(t,e,o){return t*(e+1)}function Zi(t,e,o,r){var n;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?o:(n=r.get(e))!==null&&n!==void 0?n:t}function ld(t,e,o){for(let r=0;re&&n.at{let E=cd(b),{delay:X=0,times:q=_e(E),type:pe="keyframes",repeat:$t,repeatType:Mn,repeatDelay:qu=0,...ss}=v,{ease:k=e.ease||"easeOut",duration:U}=v,de=typeof X=="function"?X(I,w):X,he=E.length,as=dt(pe)?pe:n?.[pe];if(he<=2&&as){let mo=100;if(he===2&&dd(E)){let co=E[1]-E[0];mo=Math.abs(co)}let or={...ss};U!==void 0&&(or.duration=F(U));let rr=gn(or,mo,as);k=rr.ease,U=rr.duration}U??(U=s);let ls=c+de;q.length===1&&q[0]===0&&(q[1]=1);let us=q.length-E.length;if(us>0&&Fr(q,us),E.length===1&&E.unshift(null),$t){L($t{for(let h in p){let y=p[h];y.sort(Cu);let g=[],x=[],S=[];for(let v=0;vtypeof t=="number",dd=t=>t.every(pd);function hd(t,e){return t in e}var vn=class extends Mt{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,o){if(hd(o,e)){let r=e[o];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(e,o){delete o.output[e]}measureInstanceViewportBox(){return R()}build(e,o){Object.assign(e.output,o)}renderInstance(e,{output:o}){Object.assign(e,o)}sortInstanceNodePosition(){return 0}};function Ru(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},o=Jr(t)?new ro(e):new oo(e);o.mount(t),xt.set(t,o)}function Lu(t){let e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},o=new vn(e);o.mount(t),xt.set(t,o)}function gd(t,e){return A(t)||typeof t=="number"||typeof t=="string"&&!er(e)}function Tn(t,e,o,r){let n=[];if(gd(t,e))n.push(Zr(t,er(e)&&e.default||e,o&&(o.default||o)));else{let s=xn(t,e,r),i=s.length;L(!!i,"No valid elements provided.");for(let a=0;a{r.push(...Tn(a,s,i))}),r}function yd(t){return Array.isArray(t)&&t.some(Array.isArray)}function Sn(t){function e(o,r,n){let s=[];yd(o)?s=Iu(o,r,t):s=Tn(o,r,n,t);let i=new jt(s);return t&&t.animations.push(i),i}return e}var xd=Sn();function vd(){let t=M(()=>({current:null,animations:[]})),e=M(()=>Sn(t));return Qo(()=>{t.animations.forEach(o=>o.stop())}),[t,e]}var Vn=class{constructor(e){this.animation=e}get duration(){var e,o,r;let n=((o=(e=this.animation)===null||e===void 0?void 0:e.effect)===null||o===void 0?void 0:o.getComputedTiming().duration)||((r=this.options)===null||r===void 0?void 0:r.duration)||300;return W(Number(n))}get time(){var e;return this.animation?W(((e=this.animation)===null||e===void 0?void 0:e.currentTime)||0):0}set time(e){this.animation&&(this.animation.currentTime=F(e))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(e){this.animation&&(this.animation.playbackRate=e)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}get finished(){return this.animation?this.animation.finished:Promise.resolve()}play(){this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}stop(){!this.animation||this.state==="idle"||this.state==="finished"||(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}flatten(){var e;this.animation&&((e=this.animation.effect)===null||e===void 0||e.updateTiming({easing:"linear"}))}attachTimeline(e){return this.animation&&Eo(this.animation,e),D}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch{}}};function Ou(t,e,o){t.style.setProperty(`--${e}`,o)}function Fu(t,e,o){t.style[e]=o}var Bu=kt(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0});var bn=new WeakMap;function Td(t,e,o){for(let r=0;ro.startsWith("--")?e.style.getPropertyValue(o):window.getComputedStyle(e)[o];if(Array.isArray(r)||(r=[r]),Td(o,r,a),dt(n.type)){let m=gn(n,100,n.type);n.ease=Ut()?m.ease:ku,n.duration=F(m.duration),n.type="keyframes"}else n.ease=n.ease||ku;let l=()=>{this.setValue(e,o,gt(r,n)),this.cancel(),this.resolveFinishedPromise()},u=()=>{this.setValue=s?Ou:Fu,this.options=n,this.updateFinishedPromise(),this.removeAnimation=()=>{let m=bn.get(e);m&&m.delete(o)}};kr()?(super(ne(e,o,r,n)),u(),n.autoplay===!1&&this.animation.pause(),this.animation.onfinish=l,ju(e).set(o,this)):(super(),u(),l())}then(e,o){return this.currentFinishedPromise.then(e,o)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}play(){this.state==="finished"&&this.updateFinishedPromise(),super.play()}cancel(){this.removeAnimation(),super.cancel()}};function Nu(t,e,o,r){let n=yt(t,r),s=n.length;L(!!s,"No valid element provided.");let i=[];for(let a=0;a{function e(o,r,n){return new jt(Nu(o,r,n,t))}return e},Sd=Ji();function Vd(){let t=M(()=>({current:null,animations:[]})),e=M(()=>Ji(t));return Qo(()=>{t.animations.forEach(o=>o.stop())}),[t,e]}function Uu(){let t=M(qi);return Q(t.mount,[]),t}var bd=Uu;import{useEffect as wd}from"react";function Pd(t,e,o,r){wd(()=>{let n=t.current;if(o&&n)return lt(n,e,o,r)},[t,e,o,r])}var Pn=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,o){this.componentControls.forEach(r=>{r.start(e.nativeEvent||e,o)})}},Ad=()=>new Pn;function Cd(){return M(Ad)}function Qi(t){return t!==null&&typeof t=="object"&&ve in t}function Md(t){if(Qi(t))return t[ve]}function ts(){return Ed}function Ed(t){Ct.current&&(Ct.current.isUpdating=!1,Ct.current.blockUpdate(),t&&t())}import{useCallback as Dd}from"react";function Rd(){return Dd(()=>{let e=Ct.current;e&&e.resetTree()},[])}import{useRef as Ld,useState as Id,useCallback as Od}from"react";function Fd(...t){let e=Ld(0),[o,r]=Id(t[e.current]),n=Od(s=>{e.current=typeof s!="number"?tr(0,t.length,e.current+1):s,r(t[e.current])},[t.length,...t]);return[o,n]}import{useState as kd,useEffect as jd}from"react";var Bd={some:0,all:1};function es(t,e,{root:o,margin:r,amount:n="some"}={}){let s=yt(t),i=new WeakMap,a=u=>{u.forEach(m=>{let c=i.get(m.target);if(m.isIntersecting!==!!c)if(m.isIntersecting){let f=e(m);typeof f=="function"?i.set(m.target,f):l.unobserve(m.target)}else typeof c=="function"&&(c(m),i.delete(m.target))})},l=new IntersectionObserver(a,{root:o,rootMargin:r,threshold:typeof n=="number"?n:Bd[n]});return s.forEach(u=>l.observe(u)),()=>l.disconnect()}function Nd(t,{root:e,margin:o,amount:r,once:n=!1}={}){let[s,i]=kd(!1);return jd(()=>{if(!t.current||n&&s)return;let a=()=>(i(!0),n?void 0:()=>i(!1)),l={root:e&&e.current||void 0,margin:o,amount:r};return es(t.current,a,l)},[e,t,o,n,r]),s}import{useRef as Ud,useEffect as Gd}from"react";function Wd(){let[t,e]=yo(),o=ts(),r=Ud(-1);return Gd(()=>{T.postRender(()=>T.postRender(()=>{e===r.current&&(Nt.current=!1)}))},[e]),n=>{o(()=>{Nt.current=!0,t(),n(),r.current=e+1})}}function _d(){Nt.current=!1}var ao=(t,e)=>{let o=z.has(e)?"transform":e;return`${t}: ${o}`};var Et=new Map,lo=new Map;function os(t,e,o){var r;let n=ao(t,e),s=Et.get(n);if(!s)return null;let{animation:i,startTime:a}=s;function l(){var u;(u=window.MotionCancelOptimisedAnimation)===null||u===void 0||u.call(window,t,e,o)}return i.onfinish=l,a===null||!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,t)?(l(),null):a}var An,uo,rs=new Set;function zd(){rs.forEach(t=>{t.animation.play(),t.animation.startTime=t.startTime}),rs.clear()}function Kd(t,e,o,r,n){if(window.MotionIsMounted)return;let s=t.dataset[kn];if(!s)return;window.MotionHandoffAnimation=os;let i=ao(s,e);uo||(uo=ne(t,e,[o[0],o[0]],{duration:1e4,ease:"linear"}),Et.set(i,{animation:uo,startTime:null}),window.MotionHandoffAnimation=os,window.MotionHasOptimisedAnimation=(l,u)=>{if(!l)return!1;if(!u)return lo.has(l);let m=ao(l,u);return!!Et.get(m)},window.MotionHandoffMarkAsComplete=l=>{lo.has(l)&&lo.set(l,!0)},window.MotionHandoffIsComplete=l=>lo.get(l)===!0,window.MotionCancelOptimisedAnimation=(l,u,m,c)=>{let f=ao(l,u),p=Et.get(f);p&&(m&&c===void 0?m.postRender(()=>{m.postRender(()=>{p.animation.cancel()})}):p.animation.cancel(),m&&c?(rs.add(p),m.render(zd)):(Et.delete(f),Et.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(l,u,m)=>{var c,f;let p=Oe(l);if(!p)return;let d=(c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,p,u),h=(f=l.props.values)===null||f===void 0?void 0:f[u];if(!d||!h)return;let y=m.on("change",g=>{var x;h.get()!==g&&((x=window.MotionCancelOptimisedAnimation)===null||x===void 0||x.call(window,p,u),y())});return y});let a=()=>{uo.cancel();let l=ne(t,e,o,r);An===void 0&&(An=performance.now()),l.startTime=An,Et.set(i,{animation:l,startTime:An}),n&&n(l)};lo.set(s,!1),uo.ready?uo.ready.then(a).catch(D):a()}import{useState as Hd,useLayoutEffect as $d}from"react";var ns=()=>({}),is=class extends Mt{constructor(){super(...arguments),this.measureInstanceViewportBox=R}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return ns()}getBaseTargetFromProps(){}readValueFromInstance(e,o,r){return r.initialState[o]||0}sortInstanceNodePosition(){return 0}},Yd=Jt({scrapeMotionValuesFromProps:ns,createRenderState:ns});function Xd(t){let[e,o]=Hd(t),r=Yd({},!1),n=M(()=>new is({props:{onUpdate:i=>{o({...i})}},visualState:r,presenceContext:null},{initialState:t}));$d(()=>(n.mount({}),()=>n.unmount()),[n]);let s=M(()=>i=>ie(n,i));return[e,s]}import{jsx as qd}from"react/jsx-runtime";import*as Gu from"react";var Zd=0,Jd=({children:t})=>(Gu.useEffect(()=>{L(!1,"AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations")},[]),qd(In,{id:M(()=>`asl-${Zd++}`),children:t}));import{useContext as Qd}from"react";var th=1e5,Wu=t=>t>.001?1/t:th,_u=!1;function eh(t){let e=ot(1),o=ot(1),{visualElement:r}=Qd(st);L(!!(t||r),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),nt(_u,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),_u=!0,t?(e=t.scaleX||e,o=t.scaleY||o):r&&(e=r.getValue("scaleX",1),o=r.getValue("scaleY",1));let n=so(e,Wu),s=so(o,Wu);return{scaleX:n,scaleY:s}}function oh(t,e){if(t==="first")return 0;{let o=e-1;return t==="last"?o:o/2}}function rh(t=.1,{startDelay:e=0,from:o=0,ease:r}={}){return(n,s)=>{let i=typeof o=="number"?o:oh(o,s),a=Math.abs(i-n),l=t*a;if(r){let u=s*t;l=_o(r)(l/u)*u}return e+l}}var nh=T,ih=ge.reduce((t,e)=>(t[e]=o=>j(o),t),{});function sh(t,e="end"){return o=>{o=e==="end"?Math.min(o,.999):Math.max(o,.001);let r=o*t,n=e==="end"?Math.floor(r):Math.ceil(r);return N(0,1,n/t)}}var Xu={};Qu(Xu,{Group:()=>Hu,Item:()=>Yu});import{jsx as Ku}from"react/jsx-runtime";import{forwardRef as lh,useRef as uh,useEffect as mh}from"react";import{createContext as ah}from"react";var Cn=ah(null);function zu(t,e,o,r){if(!r)return t;let n=t.findIndex(m=>m.value===e);if(n===-1)return t;let s=r>0?1:-1,i=t[n+s];if(!i)return t;let a=t[n],l=i.layout,u=C(l.min,l.max,.5);return s===1&&a.layout.max+o>u||s===-1&&a.layout.min+oYo[e]),l=[],u=uh(!1);L(!!n,"Reorder.Group must be provided a values prop");let m={axis:o,registerItem:(c,f)=>{let p=l.findIndex(d=>c===d.value);p!==-1?l[p].layout=f[o]:l.push({value:c,layout:f[o]}),l.sort(ph)},updateOrder:(c,f,p)=>{if(u.current)return;let d=zu(l,c,f,p);l!==d&&(u.current=!0,r(d.map(fh).filter(h=>n.indexOf(h)!==-1)))}};return mh(()=>{u.current=!1}),Ku(a,{...s,ref:i,ignoreStrict:!0,children:Ku(Cn.Provider,{value:m,children:t})})}var Hu=lh(ch);function fh(t){return t.value}function ph(t,e){return t.layout.min-e.layout.min}import{jsx as dh}from"react/jsx-runtime";import{forwardRef as hh,useContext as gh}from"react";function $u(t,e=0){return A(t)?t:ot(e)}function yh({children:t,style:e={},value:o,as:r="li",onDrag:n,layout:s=!0,...i},a){let l=M(()=>Yo[r]),u=gh(Cn),m={x:$u(e.x),y:$u(e.y)},c=so([m.x,m.y],([h,y])=>h||y?1:"unset");L(!!u,"Reorder.Item must be a child of Reorder.Group");let{axis:f,registerItem:p,updateOrder:d}=u;return dh(l,{drag:f,...i,dragSnapToOrigin:!0,style:{...e,x:m.x,y:m.y,zIndex:c},layout:s,onDrag:(h,y)=>{let{velocity:g}=y;g[f]&&d(o,m[f].get(),g[f]),n&&n(h,y)},onLayoutMeasure:h=>p(o,h),ref:a,ignoreStrict:!0,children:t})}var Yu=hh(yh);export{Ke as AcceleratedAnimation,bm as AnimatePresence,Jd as AnimateSharedLayout,Rn as DeprecatedLayoutGroupContext,Pn as DragControls,Ho as FlatTree,In as LayoutGroup,ut as LayoutGroupContext,jm as LazyMotion,_m as MotionConfig,_ as MotionConfigContext,st as MotionContext,Xt as MotionGlobalConfig,Ie as MotionValue,mt as PresenceContext,Xu as Reorder,So as SwitchLayoutGroupContext,Mt as VisualElement,Pt as addPointerEvent,di as addPointerInfo,zn as addScaleCorrector,xd as animate,Sd as animateMini,fi as animateValue,ie as animateVisualElement,qi as animationControls,ae as animations,Fo as anticipate,Fe as backIn,Oo as backInOut,br as backOut,_n as buildTransform,H as calcLength,j as cancelFrame,ih as cancelSync,Bo as circIn,jo as circInOut,ko as circOut,N as clamp,G as color,J as complex,R as createBox,Un as createRendererMotionComponent,Sn as createScopedAnimate,bt as cubicBezier,Pi as delay,_d as disableInstantTransitions,hi as distance,gi as distance2D,ji as domAnimation,vp as domMax,Tp as domMin,mi as easeIn,Wo as easeInOut,ci as easeOut,Bn as filterProps,li as findSpring,T as frame,O as frameData,go as frameSteps,es as inView,Ir as inertia,re as interpolate,L as invariant,Yt as isBrowser,zo as isDragActive,Qi as isMotionComponent,A as isMotionValue,xe as isValidMotionProp,ze as keyframes,Tc as m,Jt as makeUseVisualState,Lo as mirrorEasing,Go as mix,Yo as motion,Y as motionValue,D as noop,To as optimizedAppearDataAttribute,at as pipe,Z as progress,V as px,Zt as resolveMotionValue,Io as reverseEasing,zi as scroll,Zo as scrollInfo,oe as spring,rh as stagger,Kd as startOptimizedAppearAnimation,sh as steps,nh as sync,$ as time,$i as transform,Md as unwrapMotionComponent,vd as useAnimate,Vd as useAnimateMini,bd as useAnimation,Uu as useAnimationControls,Hi as useAnimationFrame,Fd as useCycle,Xd as useDeprecatedAnimatedState,eh as useDeprecatedInvertedScale,Pd as useDomEvent,Cd as useDragControls,Np as useElementScroll,yo as useForceUpdate,Nd as useInView,ts as useInstantLayoutTransition,Wd as useInstantTransition,dm as useIsPresent,Q as useIsomorphicLayoutEffect,zp as useMotionTemplate,ot as useMotionValue,Ni as useMotionValueEvent,po as usePresence,Yi as useReducedMotion,nd as useReducedMotionConfig,Rd as useResetProjection,Jo as useScroll,$p as useSpring,Zp as useTime,so as useTransform,Qo as useUnmountEffect,td as useVelocity,Up as useViewportScroll,ed as useWillChange,xt as visualElementStore,tr as wrap}; diff --git a/b/8aeb85ece60bdf014672dbb77dced602c6a2a1e16e75b9a783d7ecc7b61059fc b/b/8aeb85ece60bdf014672dbb77dced602c6a2a1e16e75b9a783d7ecc7b61059fc new file mode 100644 index 0000000000000000000000000000000000000000..23f1e17c9ef01ce8af870c6ead45df4167db14f0 --- /dev/null +++ b/b/8aeb85ece60bdf014672dbb77dced602c6a2a1e16e75b9a783d7ecc7b61059fc @@ -0,0 +1,62 @@ +import { Button } from "@/registry/new-york-v4/ui/button" +import { Input } from "@/registry/new-york-v4/ui/input" +import { Label } from "@/registry/new-york-v4/ui/label" +import { + Popover, + PopoverContent, + PopoverTrigger, +} from "@/registry/new-york-v4/ui/popover" + +export default function PopoverDemo() { + return ( + + + + + +
    +
    +

    Dimensions

    +

    + Set the dimensions for the layer. +

    +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    +
    + ) +} diff --git a/b/8b3474ca4f670acbfcc4988bdb36f1d70fc97c480f5ee1b8d82f4cb04c84a3a0 b/b/8b3474ca4f670acbfcc4988bdb36f1d70fc97c480f5ee1b8d82f4cb04c84a3a0 new file mode 100644 index 0000000000000000000000000000000000000000..942462fe3c56ed4e376ab4bad17967bb3b2fb33f --- /dev/null +++ b/b/8b3474ca4f670acbfcc4988bdb36f1d70fc97c480f5ee1b8d82f4cb04c84a3a0 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.scroll-progress", + "name": "scroll-progress", + "tier": "component", + "library": "magicui", + "category": "Special Effects", + "upstream": "https://magicui.design/r/scroll-progress.json", + "did": "did:holo:sha256:4d79d33956520a69ff3c74509deaee7be6036125b0e0fb54078eba7eeefe894a", + "import": "holo://sha256:18113165b9e1fcc1aeccecf0f319911b54721a328e6bf1e0baf481ab70176da7", + "integrity": "sha256-GBExZbnh/MGuzOzw8xmRG1RyGjKOa/HguvSBq3AXbac=", + "kappa": "sha256:4d79d33956520a69ff3c74509deaee7be6036125b0e0fb54078eba7eeefe894a", + "moduleKappa": "sha256:18113165b9e1fcc1aeccecf0f319911b54721a328e6bf1e0baf481ab70176da7", + "renderExport": "ScrollProgress", + "source": "components/ui/scroll-progress.tsx", + "module": "vendor/components/scroll-progress.js", + "exports": [ + "ScrollProgress" + ], + "license": "MIT" +} diff --git a/b/8b7ec0929791a984cf3190a7bf0c2dc025e584a59792b9a32b248756c6a3f13b b/b/8b7ec0929791a984cf3190a7bf0c2dc025e584a59792b9a32b248756c6a3f13b new file mode 100644 index 0000000000000000000000000000000000000000..676a125b35d6053b577cc404ee522e22b9632a43 --- /dev/null +++ b/b/8b7ec0929791a984cf3190a7bf0c2dc025e584a59792b9a32b248756c6a3f13b @@ -0,0 +1 @@ +"use client";import je,{useEffect as To,useMemo as Fe,useState as No}from"react";import{AnimatePresence as Wo,motion as Vo}from"motion/react";function ge(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{let r=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),Ce=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),H="-",xe=[],Ue="arbitrary..",De=e=>{let t=qe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Ye(a);let f=a.split(H),u=f[0]===""&&f.length>1?1:0;return Ae(f,u,t)},getConflictingClassGroupIds:(a,f)=>{if(f){let u=o[a],m=r[a];return u?m?Be(m,u):u:m||xe}return r[a]||xe}}},Ae=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;let i=e[t],d=r.nextPart.get(i);if(d){let m=Ae(e,t+1,d);if(m)return m}let a=r.validators;if(a===null)return;let f=t===0?e.join(H):e.slice(t).join(H),u=a.length;for(let m=0;me.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),o=t.slice(0,r);return o?Ue+o:void 0})(),qe=e=>{let{theme:t,classGroups:r}=e;return Xe(r,t)},Xe=(e,t)=>{let r=Ce();for(let o in e){let i=e[o];ie(i,r,o,t)}return r},ie=(e,t,r,o)=>{let i=e.length;for(let d=0;d{if(typeof e=="string"){Qe(e,t,r);return}if(typeof e=="function"){He(e,t,r,o);return}Ke(e,t,r,o)},Qe=(e,t,r)=>{let o=e===""?t:Se(t,e);o.classGroupId=r},He=(e,t,r,o)=>{if(Ze(e)){ie(e(o),t,r,o);return}t.validators===null&&(t.validators=[]),t.validators.push($e(r,e))},Ke=(e,t,r,o)=>{let i=Object.entries(e),d=i.length;for(let a=0;a{let r=e,o=t.split(H),i=o.length;for(let d=0;d"isThemeGetter"in e&&e.isThemeGetter===!0,eo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),o=Object.create(null),i=(d,a)=>{r[d]=a,t++,t>e&&(t=0,o=r,r=Object.create(null))};return{get(d){let a=r[d];if(a!==void 0)return a;if((a=o[d])!==void 0)return i(d,a),a},set(d,a){d in r?r[d]=a:i(d,a)}}},ne="!",ke=":",oo=[],ye=(e,t,r,o,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:i}),ro=e=>{let{prefix:t,experimentalParseClassName:r}=e,o=i=>{let d=[],a=0,f=0,u=0,m,h=i.length;for(let w=0;wu?m-u:void 0;return ye(d,S,L,F)};if(t){let i=t+ke,d=o;o=a=>a.startsWith(i)?d(a.slice(i.length)):ye(oo,!1,a,void 0,!0)}if(r){let i=o;o=d=>r({className:d,parseClassName:i})}return o},to=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((r,o)=>{t.set(r,1e6+o)}),r=>{let o=[],i=[];for(let d=0;d0&&(i.sort(),o.push(...i),i=[]),o.push(a)):i.push(a)}return i.length>0&&(i.sort(),o.push(...i)),o}},so=e=>({cache:eo(e.cacheSize),parseClassName:ro(e),sortModifiers:to(e),postfixLookupClassGroupIds:no(e),...De(e)}),no=e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let o=0;o{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:d,postfixLookupClassGroupIds:a}=t,f=[],u=e.trim().split(io),m="";for(let h=u.length-1;h>=0;h-=1){let x=u[h],{isExternal:L,modifiers:S,hasImportantModifier:F,baseClassName:w,maybePostfixModifierPosition:C}=r(x);if(L){m=x+(m.length>0?" "+m:m);continue}let T=!!C,v;if(T){let P=w.substring(0,C);v=o(P);let l=v&&a[v]?o(w):void 0;l&&l!==v&&(v=l,T=!1)}else v=o(w);if(!v){if(!T){m=x+(m.length>0?" "+m:m);continue}if(v=o(w),!v){m=x+(m.length>0?" "+m:m);continue}T=!1}let B=S.length===0?"":S.length===1?S[0]:d(S).join(":"),E=F?B+ne:B,O=E+v;if(f.indexOf(O)>-1)continue;f.push(O);let _=i(v,T);for(let P=0;P<_.length;++P){let l=_[P];f.push(E+l)}m=x+(m.length>0?" "+m:m)}return m},lo=(...e)=>{let t=0,r,o,i="";for(;t{if(typeof e=="string")return e;let t,r="";for(let o=0;o{let r,o,i,d,a=u=>{let m=t.reduce((h,x)=>x(h),e());return r=so(m),o=r.cache.get,i=r.cache.set,d=f,f(u)},f=u=>{let m=o(u);if(m)return m;let h=ao(u,r);return i(u,h),h};return d=a,(...u)=>d(lo(...u))},mo=[],b=e=>{let t=r=>r[e]||mo;return t.isThemeGetter=!0,t},Pe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Re=/^\((?:(\w[\w-]*):)?(.+)\)$/i,po=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,uo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,go=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ho=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=e=>po.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),se=e=>e.endsWith("%")&&p(e.slice(0,-1)),R=e=>uo.test(e),Me=()=>!0,xo=e=>fo.test(e)&&!bo.test(e),ae=()=>!1,ko=e=>go.test(e),yo=e=>ho.test(e),wo=e=>!s(e)&&!n(e),vo=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),zo=e=>I(e,Te,ae),s=e=>Pe.test(e),W=e=>I(e,Ne,xo),we=e=>I(e,Io,p),Co=e=>I(e,Ve,Me),Ao=e=>I(e,We,ae),ve=e=>I(e,Ie,ae),So=e=>I(e,Le,yo),J=e=>I(e,Ee,ko),n=e=>Re.test(e),$=e=>V(e,Ne),Go=e=>V(e,We),ze=e=>V(e,Ie),Po=e=>V(e,Te),Ro=e=>V(e,Le),Q=e=>V(e,Ee,!0),Mo=e=>V(e,Ve,!0),I=(e,t,r)=>{let o=Pe.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},V=(e,t,r=!1)=>{let o=Re.exec(e);return o?o[1]?t(o[1]):r:!1},Ie=e=>e==="position"||e==="percentage",Le=e=>e==="image"||e==="url",Te=e=>e==="length"||e==="size"||e==="bg-size",Ne=e=>e==="length",Io=e=>e==="number",We=e=>e==="family-name",Ve=e=>e==="number"||e==="weight",Ee=e=>e==="shadow";var Lo=()=>{let e=b("color"),t=b("font"),r=b("text"),o=b("font-weight"),i=b("tracking"),d=b("leading"),a=b("breakpoint"),f=b("container"),u=b("spacing"),m=b("radius"),h=b("shadow"),x=b("inset-shadow"),L=b("text-shadow"),S=b("drop-shadow"),F=b("blur"),w=b("perspective"),C=b("aspect"),T=b("ease"),v=b("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...E(),n,s],_=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],l=()=>[n,s,u],z=()=>[M,"full","auto",...l()],le=()=>[G,"none","subgrid",n,s],ce=()=>["auto",{span:["full",G,n,s]},G,n,s],U=()=>[G,"auto",n,s],de=()=>["auto","min","max","fr",n,s],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...l()],N=()=>[M,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...l()],ee=()=>[M,"screen","full","dvw","lvw","svw","min","max","fit",...l()],oe=()=>[M,"screen","full","lh","dvh","lvh","svh","min","max","fit",...l()],c=()=>[e,n,s],me=()=>[...E(),ze,ve,{position:[n,s]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",Po,zo,{size:[n,s]}],re=()=>[se,$,W],k=()=>["","none","full",m,n,s],y=()=>["",p,$,W],D=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>[p,se,ze,ve],be=()=>["","none",F,n,s],Y=()=>["none",p,n,s],q=()=>["none",p,n,s],te=()=>[p,n,s],X=()=>[M,"full",...l()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[R],breakpoint:[R],color:[Me],container:[R],"drop-shadow":[R],ease:["in","out","in-out"],font:[wo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[R],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[R],shadow:[R],spacing:["px",p],text:[R],"text-shadow":[R],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",M,s,n,C]}],container:["container"],"container-type":[{"@container":["","normal","size",n,s]}],"container-named":[vo],columns:[{columns:[p,s,n,f]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[G,"auto",n,s]}],basis:[{basis:[M,"full","auto",f,...l()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,M,"auto","initial","none",s]}],grow:[{grow:["",p,n,s]}],shrink:[{shrink:["",p,n,s]}],order:[{order:[G,"first","last","none",n,s]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:l()}],"gap-x":[{"gap-x":l()}],"gap-y":[{"gap-y":l()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:l()}],px:[{px:l()}],py:[{py:l()}],ps:[{ps:l()}],pe:[{pe:l()}],pbs:[{pbs:l()}],pbe:[{pbe:l()}],pt:[{pt:l()}],pr:[{pr:l()}],pb:[{pb:l()}],pl:[{pl:l()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":l()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":l()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"block-size":[{block:["auto",...oe()]}],"min-block-size":[{"min-block":["auto",...oe()]}],"max-block-size":[{"max-block":["none",...oe()]}],w:[{w:[f,"screen",...N()]}],"min-w":[{"min-w":[f,"screen","none",...N()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[a]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",r,$,W]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Mo,Co]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",se,s]}],"font-family":[{font:[Go,Ao,t]}],"font-features":[{"font-features":[s]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,n,s]}],"line-clamp":[{"line-clamp":[p,"none",n,we]}],leading:[{leading:[d,...l()]}],"list-image":[{"list-image":["none",n,s]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",n,s]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",n,W]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[p,"auto",n,s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:l()}],"tab-size":[{tab:[G,n,s]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",n,s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",n,s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},G,n,s],radial:["",n,s],conic:[G,n,s]},Ro,So]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:y()}],"border-w-x":[{"border-x":y()}],"border-w-y":[{"border-y":y()}],"border-w-s":[{"border-s":y()}],"border-w-e":[{"border-e":y()}],"border-w-bs":[{"border-bs":y()}],"border-w-be":[{"border-be":y()}],"border-w-t":[{"border-t":y()}],"border-w-r":[{"border-r":y()}],"border-w-b":[{"border-b":y()}],"border-w-l":[{"border-l":y()}],"divide-x":[{"divide-x":y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...D(),"hidden","none"]}],"divide-style":[{divide:[...D(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-bs":[{"border-bs":c()}],"border-color-be":[{"border-be":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...D(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,n,s]}],"outline-w":[{outline:["",p,$,W]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",h,Q,J]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",x,Q,J]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[p,W]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":y()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",L,Q,J]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[p,n,s]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":g()}],"mask-image-linear-to-pos":[{"mask-linear-to":g()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":g()}],"mask-image-t-to-pos":[{"mask-t-to":g()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":g()}],"mask-image-r-to-pos":[{"mask-r-to":g()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":g()}],"mask-image-b-to-pos":[{"mask-b-to":g()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":g()}],"mask-image-l-to-pos":[{"mask-l-to":g()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":g()}],"mask-image-x-to-pos":[{"mask-x-to":g()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":g()}],"mask-image-y-to-pos":[{"mask-y-to":g()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[n,s]}],"mask-image-radial-from-pos":[{"mask-radial-from":g()}],"mask-image-radial-to-pos":[{"mask-radial-to":g()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":g()}],"mask-image-conic-to-pos":[{"mask-conic-to":g()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",n,s]}],filter:[{filter:["","none",n,s]}],blur:[{blur:be()}],brightness:[{brightness:[p,n,s]}],contrast:[{contrast:[p,n,s]}],"drop-shadow":[{"drop-shadow":["","none",S,Q,J]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",p,n,s]}],"hue-rotate":[{"hue-rotate":[p,n,s]}],invert:[{invert:["",p,n,s]}],saturate:[{saturate:[p,n,s]}],sepia:[{sepia:["",p,n,s]}],"backdrop-filter":[{"backdrop-filter":["","none",n,s]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[p,n,s]}],"backdrop-contrast":[{"backdrop-contrast":[p,n,s]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,n,s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,n,s]}],"backdrop-invert":[{"backdrop-invert":["",p,n,s]}],"backdrop-opacity":[{"backdrop-opacity":[p,n,s]}],"backdrop-saturate":[{"backdrop-saturate":[p,n,s]}],"backdrop-sepia":[{"backdrop-sepia":["",p,n,s]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":l()}],"border-spacing-x":[{"border-spacing-x":l()}],"border-spacing-y":[{"border-spacing-y":l()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",n,s]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",n,s]}],ease:[{ease:["linear","initial",T,n,s]}],delay:[{delay:[p,n,s]}],animate:[{animate:["none",v,n,s]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,n,s]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:Y()}],"rotate-x":[{"rotate-x":Y()}],"rotate-y":[{"rotate-y":Y()}],"rotate-z":[{"rotate-z":Y()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[n,s,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:X()}],"translate-x":[{"translate-x":X()}],"translate-y":[{"translate-y":X()}],"translate-z":[{"translate-z":X()}],"translate-none":["translate-none"],zoom:[{zoom:[G,n,s]}],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",n,s]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":c()}],"scrollbar-track-color":[{"scrollbar-track":c()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":l()}],"scroll-mx":[{"scroll-mx":l()}],"scroll-my":[{"scroll-my":l()}],"scroll-ms":[{"scroll-ms":l()}],"scroll-me":[{"scroll-me":l()}],"scroll-mbs":[{"scroll-mbs":l()}],"scroll-mbe":[{"scroll-mbe":l()}],"scroll-mt":[{"scroll-mt":l()}],"scroll-mr":[{"scroll-mr":l()}],"scroll-mb":[{"scroll-mb":l()}],"scroll-ml":[{"scroll-ml":l()}],"scroll-p":[{"scroll-p":l()}],"scroll-px":[{"scroll-px":l()}],"scroll-py":[{"scroll-py":l()}],"scroll-ps":[{"scroll-ps":l()}],"scroll-pe":[{"scroll-pe":l()}],"scroll-pbs":[{"scroll-pbs":l()}],"scroll-pbe":[{"scroll-pbe":l()}],"scroll-pt":[{"scroll-pt":l()}],"scroll-pr":[{"scroll-pr":l()}],"scroll-pb":[{"scroll-pb":l()}],"scroll-pl":[{"scroll-pl":l()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",n,s]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[p,$,W,we]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Oe=co(Lo);function _e(...e){return Oe(he(e))}import{jsx as K}from"react/jsx-runtime";function Eo({children:e}){let t={initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,originY:0},exit:{scale:0,opacity:0},transition:{type:"spring",stiffness:350,damping:40}};return K(Vo.div,{...t,layout:!0,className:"mx-auto w-full",children:e})}var Oo=je.memo(({children:e,className:t,delay:r=1e3,...o})=>{let[i,d]=No(0),a=Fe(()=>je.Children.toArray(e),[e]);To(()=>{let u=null;return i{d(m=>(m+1)%a.length)},r)),()=>{u!==null&&clearTimeout(u)}},[i,r,a.length]);let f=Fe(()=>a.slice(0,i+1).reverse(),[i,a]);return K("div",{className:_e("flex flex-col items-center gap-4",t),...o,children:K(Wo,{children:f.map(u=>K(Eo,{children:u},u.key))})})});Oo.displayName="AnimatedList";export{Oo as AnimatedList,Eo as AnimatedListItem}; diff --git a/b/8bcd9eaccee7aeb5d6852415025f38b831b450ec1cb478895b7c12bdb09c5a45 b/b/8bcd9eaccee7aeb5d6852415025f38b831b450ec1cb478895b7c12bdb09c5a45 new file mode 100644 index 0000000000000000000000000000000000000000..461e3ea878ec615e4bbee3770fb53ddaf9af92b9 --- /dev/null +++ b/b/8bcd9eaccee7aeb5d6852415025f38b831b450ec1cb478895b7c12bdb09c5a45 @@ -0,0 +1,53 @@ +// holo-onnx-kserve.mjs — serve an ONNX faculty model's files from its κ-addressable .holo INTO the +// unchanged transformers.js / onnxruntime-web runtime. ONE shim for every ONNX faculty (TTS · embed · +// vision): no engine port — only weight DELIVERY becomes content-addressed (HTTP-Range + per-block L5 + +// OPFS warm cache + serverless multi-source), exactly like the κ-native brain/ASR, but the forward stays on +// the proven engine. Generalises the proof in kokoro-holo-test.html into a reusable, fail-safe module. +// +// serveModelFromHolo({ holoUrl, modelId, release }) → { stats, served, missed, restore, modelKey } (browser) +// +// Install BEFORE the engine loads; the engine then fetches its model files normally and the shim answers any +// request whose URL contains "/" from the .holo. Everything else passes through +// untouched (cheap substring test). Keep it installed for the engine's lifetime (lazy per-file fetches — +// e.g. a TTS voice — still route through it); call restore() to uninstall. ANY failure ⇒ the caller restores +// and falls back to the vendored ONNX path, so a faculty is never bricked by the κ path. + +// the URL key a transformers model id resolves to: "onnx-community/Kokoro-82M-v1.0-ONNX" → "Kokoro-82M-v1.0-ONNX/" +export function modelKeyFor(modelId) { return String(modelId || "").split("/").pop() + "/"; } + +// PURE, INJECTABLE routing core (Node-witnessable). Wraps target.fetch so any request whose URL contains +// `key` is answered from `hf.getFile(name)`; non-matching (and not-in-holo) requests fall through to the +// original transport. Returns the running served/missed lists and a restore() that reinstalls the original. +export function installModelFetchShim({ hf, key, target }) { + const orig = target.fetch; // the RAW original — restore() reinstalls this exact reference + const callOrig = orig.bind(target); // bound copy for safe invocation (window.fetch needs its this) + const served = [], missed = []; + const ResponseCtor = target.Response || (typeof Response !== "undefined" ? Response : null); + target.fetch = async (input, init) => { + const url = typeof input === "string" ? input : (input && input.url) || ""; + const i = url.indexOf(key); + if (i >= 0) { + const name = decodeURIComponent(url.slice(i + key.length).split("?")[0]); + try { + const b = await hf.getFile(name); + served.push(name); + return new ResponseCtor(b, { status: 200, headers: { "Content-Type": "application/octet-stream", "Content-Length": String((b && (b.length || b.byteLength)) || 0) } }); + } catch (e) { missed.push(name); } // not in the .holo → fall through to the original transport + } + return callOrig(input, init); + }; + return { served, missed, restore() { target.fetch = orig; } }; +} + +// browser entry: open the file-bundle .holo (range + L5 + OPFS, release fallback) and install the shim on +// `target` (window by default). `openFiles` is injectable for tests; in the browser it lazy-imports holo-files. +export async function serveModelFromHolo({ holoUrl, modelId, release = "", target, openFiles } = {}) { + const t = target || (typeof window !== "undefined" ? window : globalThis); + const open = openFiles || (async (u, o) => (await import("./holo-files.mjs")).openHoloFiles(u, o)); + const hf = await open(holoUrl, { release }); + const key = modelKeyFor(modelId); + const shim = installModelFetchShim({ hf, key, target: t }); + return { stats: hf.stats, served: shim.served, missed: shim.missed, restore: shim.restore, modelKey: key, files: hf.files }; +} + +export default serveModelFromHolo; diff --git a/b/8bf2feb7e128049c563bf9ff2cecd7ba0a3d7958d473b1037b0c94b3a620769d b/b/8bf2feb7e128049c563bf9ff2cecd7ba0a3d7958d473b1037b0c94b3a620769d new file mode 100644 index 0000000000000000000000000000000000000000..c68bb38e2a82533c5f293408be288a780fcb8c77 --- /dev/null +++ b/b/8bf2feb7e128049c563bf9ff2cecd7ba0a3d7958d473b1037b0c94b3a620769d @@ -0,0 +1,107 @@ +"use client";var si=Object.defineProperty;var Ha=(e,t)=>{for(var a in t)si(e,a,{get:t[a],enumerable:!0})};var jt,ni={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function no(e){return!e&&!jt?ni:{lang:e?.lang??jt?.lang,message:e?.message,abortEarly:e?.abortEarly??jt?.abortEarly,abortPipeEarly:e?.abortPipeEarly??jt?.abortPipeEarly}}var li;function ii(e){return li?.get(e)}var ui;function ci(e){return ui?.get(e)}var fi;function di(e,t){return fi?.get(e)?.get(t)}function pi(e){let t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":t}function At(e,t,a,r,o){let s=o&&"input"in o?o.input:a.value,n=o?.expected??e.expects??null,l=o?.received??pi(s),u={kind:e.kind,type:e.type,input:s,expected:n,received:l,message:`Invalid ${t}: ${n?`Expected ${n} but r`:"R"}eceived ${l}`,requirement:e.requirement,path:o?.path,issues:o?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},i=e.kind==="schema",c=o?.message??e.message??di(e.reference,u.lang)??(i?ci(u.lang):null)??r.message??ii(u.lang);c!==void 0&&(u.message=typeof c=="function"?c(u):c),i&&(a.typed=!1),a.issues?a.issues.push(u):a.issues=[u]}var so=new WeakMap;function za(e){let t=so.get(e);return t||(t={version:1,vendor:"valibot",validate(a){return e["~run"]({value:a},no())}},so.set(e,t)),t}function Va(e,t){return{kind:"validation",type:"check",reference:Va,async:!1,expects:null,requirement:e,message:t,"~run"(a,r){return a.typed&&!this.requirement(a.value)&&At(this,"input",a,r),a}}}function Ga(e,t){return{kind:"validation",type:"min_length",reference:Ga,async:!1,expects:`>=${e}`,requirement:e,message:t,"~run"(a,r){return a.typed&&a.value.lengtha.selected&&!a.disabled).map(a=>a.value);if(e.type==="checkbox"){let a=document.getElementsByName(e.name);return a.length>1?[...a].filter(r=>r.checked).map(r=>r.value):e.checked}return e.type==="radio"?e.checked?e.value:Ge(()=>Dt(t)):e.type==="file"?e.multiple?[...e.files]:e.files[0]:e.value}function ho(e,t){let a=e;for(let r of t)a=a.children[r];return a}function Ka(e,t,a){Et(()=>{if(e.kind==="array"){e[t].value=a;for(let r=0;re.items.value).length;r++)Ka(e.children[r],t,a)}else if(e.kind=="object")for(let r in e.children)Ka(e.children[r],t,a);else e[t].value=a})}function Ya(e,t){if(e.isTouched.value=!0,e.kind==="array"){let a=t??[],r=e.items.value;if(a.lengthr.length){if(a.length>e.children.length){let o=JSON.parse(e.name);for(let s=e.children.length;s{Ge(()=>{let r=e;for(let o=0;o{if(e.kind==="array"){e.input.value=t==null?t:!0;let a=t??[];if(a.length>e.children.length){let r=JSON.parse(e.name);for(let o=e.children.length;oe.items.value).length;a++)$t(e.children[a],t);else if(e.kind==="object")for(let a in e.children)$t(e.children[a],t)}function Ii(e,t){let a={};return Me(a,e.schema,e.initialInput,[]),a.validators=0,a.validate=e.validate??"submit",a.revalidate=e.revalidate??"input",a.parse=t,a.isSubmitting=ne(!1),a.isSubmitted=ne(!1),a.isValidating=ne(!1),a}async function Kt(e,t){e.validators++,e.isValidating.value=!0;let a=await e.parse(Ge(()=>Dt(e))),r,o;if(a.issues){o={};for(let n of a.issues)if(n.path){let l=[];for(let c of n.path){let f=c.key,m=typeof f,p=c.type;if(m!=="string"&&m!=="number"||p==="map"||p==="set")break;l.push(f)}let u=JSON.stringify(l),i=o[u];i?i.push(n.message):o[u]=[n.message]}else r?r.push(n.message):r=[n.message]}let s=t?.shouldFocus??!1;return Et(()=>{$t(e,n=>{if(n.name==="[]")n.errors.value=r??null;else{let l=o?.[n.name]??null;n.errors.value=l,s&&l&&(n.elements[0]?.focus(),s=!1)}}),e.validators--,e.isValidating.value=e.validators>0}),a}function ht(e,t,a){a===(e.validate==="initial"||(e.validate==="submit"?Ge(()=>e.isSubmitted.value):Ge(()=>qe(t,"errors")))?e.revalidate:e.validate)&&Kt(e)}var Tt="~internal";function Ci(e,t){return async a=>{a?.preventDefault();let r=e[Tt];r.isSubmitted.value=!0,r.isSubmitting.value=!0;try{let o=await Kt(r,{shouldFocus:!0});o.success&&await t(o.output,a)}catch(o){r.errors.value=[o&&typeof o=="object"&&"message"in o&&typeof o.message=="string"?o.message:"An unknown error has occurred."]}finally{r.isSubmitting.value=!1}}}function bi(e,t){return Ci(e,t)}function go(e,t){Et(()=>{Ge(()=>{let a=e[Tt],r=t?.path?ho(a,t.path):a;t&&"initialInput"in t&&Za(r,t.initialInput),$t(r,o=>{if(o.elements=o.initialElements,t?.keepErrors||(o.errors.value=null),t?.keepTouched||(o.isTouched.value=!1),o.startInput.value=o.initialInput.value,t?.keepInput||(o.input.value=o.initialInput.value),o.kind==="array")o.startItems.value=o.initialItems.value,(!t?.keepInput||o.startItems.value.length===o.items.value.length)&&(o.items.value=o.initialItems.value),o.isDirty.value=o.startInput.value!==o.input.value||o.startItems.value!==o.items.value;else if(o.kind==="object")o.isDirty.value=o.startInput.value!==o.input.value;else{let s=o.startInput.value,n=o.input.value;o.isDirty.value=s!==n&&(s!=null||n!==""&&!Number.isNaN(n));for(let l of o.elements)l.type==="file"&&(l.value="")}}),t?.path||(t?.keepSubmitted||(a.isSubmitted.value=!1),a.validate==="initial"&&Kt(a))})})}function yo(){let[,e]=gi(o=>o+1,0),t=Xt(()=>[e,new Set],[]),a=hi(()=>{for(let o of t[1])o.delete(t)},[t]);a(),co(t),mo(()=>co(void 0));let r=yi(null);po(()=>(r.current&&(clearTimeout(r.current),r.current=null),()=>{r.current=setTimeout(a)}),[a])}function wi(e,t){yo();let a=e[Tt],r=ho(a,t.path);return po(()=>()=>{r.elements=r.elements.filter(o=>o.isConnected)},[r]),Xt(()=>({path:t.path,get input(){return Dt(r)},get errors(){return r.errors.value},get isTouched(){return qe(r,"isTouched")},get isDirty(){return qe(r,"isDirty")},get isValid(){return!qe(r,"errors")},onChange(o){fo(a,t.path,o),ht(a,r,"input"),ht(a,r,"change")},props:{name:r.name,autoFocus:!!r.errors.value,ref(o){o&&r.elements.push(o)},onFocus(){Ka(r,"isTouched",!0),ht(a,r,"touch")},onChange(o){fo(a,t.path,Li(o.currentTarget,r)),ht(a,r,"input"),ht(a,r,"change")},onBlur(){ht(a,r,"blur")}}}),[a,r])}function xo(e){yo();let t=Xt(()=>Ii(e,a=>io(e.schema,a)),[]);return mo(()=>{e.validate==="initial"&&Kt(t)},[]),Xt(()=>({[Tt]:t,get isSubmitting(){return t.isSubmitting.value},get isSubmitted(){return t.isSubmitted.value},get isValidating(){return t.isValidating.value},get isTouched(){return qe(t,"isTouched")},get isDirty(){return qe(t,"isDirty")},get isValid(){return!qe(t,"errors")},get errors(){return t.errors.value}}),[t])}function vo({of:e,path:t,children:a}){return a(wi(e,{path:t}))}function Lo({of:e,onSubmit:t,...a}){return xi("form",{...a,noValidate:!0,ref:r=>{r&&(e[Tt].element=r)},onSubmit:bi(e,t)})}import Mt from"react";import cd from"react-dom";function Si(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}var fd=Array(12).fill(0);var Qa=1,er=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let a=this.subscribers.indexOf(t);this.subscribers.splice(a,1)}),this.publish=t=>{this.subscribers.forEach(a=>a(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var a;let{message:r,...o}=t,s=typeof t?.id=="number"||((a=t.id)==null?void 0:a.length)>0?t.id:Qa++,n=this.toasts.find(u=>u.id===s),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),n?this.toasts=this.toasts.map(u=>u.id===s?(this.publish({...u,...t,id:s,title:r}),{...u,...t,id:s,dismissible:l,title:r}):u):this.addToast({title:r,...o,dismissible:l,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(a=>a({id:t,dismiss:!0})))):this.toasts.forEach(a=>{this.subscribers.forEach(r=>r({id:a.id,dismiss:!0}))}),t),this.message=(t,a)=>this.create({...a,message:t}),this.error=(t,a)=>this.create({...a,message:t,type:"error"}),this.success=(t,a)=>this.create({...a,type:"success",message:t}),this.info=(t,a)=>this.create({...a,type:"info",message:t}),this.warning=(t,a)=>this.create({...a,type:"warning",message:t}),this.loading=(t,a)=>this.create({...a,type:"loading",message:t}),this.promise=(t,a)=>{if(!a)return;let r;a.loading!==void 0&&(r=this.create({...a,promise:t,type:"loading",message:a.loading,description:typeof a.description!="function"?a.description:void 0}));let o=Promise.resolve(t instanceof Function?t():t),s=r!==void 0,n,l=o.then(async i=>{if(n=["resolve",i],Mt.isValidElement(i))s=!1,this.create({id:r,type:"default",message:i});else if(Ri(i)&&!i.ok){s=!1;let f=typeof a.error=="function"?await a.error(`HTTP error! status: ${i.status}`):a.error,m=typeof a.description=="function"?await a.description(`HTTP error! status: ${i.status}`):a.description,g=typeof f=="object"&&!Mt.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:m,...g})}else if(i instanceof Error){s=!1;let f=typeof a.error=="function"?await a.error(i):a.error,m=typeof a.description=="function"?await a.description(i):a.description,g=typeof f=="object"&&!Mt.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:m,...g})}else if(a.success!==void 0){s=!1;let f=typeof a.success=="function"?await a.success(i):a.success,m=typeof a.description=="function"?await a.description(i):a.description,g=typeof f=="object"&&!Mt.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:m,...g})}}).catch(async i=>{if(n=["reject",i],a.error!==void 0){s=!1;let c=typeof a.error=="function"?await a.error(i):a.error,f=typeof a.description=="function"?await a.description(i):a.description,p=typeof c=="object"&&!Mt.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...p})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),a.finally==null||a.finally.call(a)}),u=()=>new Promise((i,c)=>l.then(()=>n[0]==="reject"?c(n[1]):i(n[1])).catch(c));return typeof r!="string"&&typeof r!="number"?{unwrap:u}:Object.assign(r,{unwrap:u})},this.custom=(t,a)=>{let r=a?.id||Qa++;return this.create({jsx:t(r),id:r,...a}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ie=new er,ki=(e,t)=>{let a=t?.id||Qa++;return Ie.addToast({title:e,...t,id:a}),a},Ri=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Pi=ki,Ai=()=>Ie.toasts,Di=()=>Ie.getActiveToasts(),Io=Object.assign(Pi,{success:Ie.success,info:Ie.info,warning:Ie.warning,error:Ie.error,custom:Ie.custom,message:Ie.message,promise:Ie.promise,dismiss:Ie.dismiss,loading:Ie.loading},{getHistory:Ai,getToasts:Di});Si("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Co(e){var t,a,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,wo=Yt,Zt=(e,t)=>a=>{var r;if(t?.variants==null)return wo(e,a?.class,a?.className);let{variants:o,defaultVariants:s}=t,n=Object.keys(o).map(i=>{let c=a?.[i],f=s?.[i];if(c===null)return null;let m=bo(c)||bo(f);return o[i][m]}),l=a&&Object.entries(a).reduce((i,c)=>{let[f,m]=c;return m===void 0||(i[f]=m),i},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((i,c)=>{let{class:f,className:m,...p}=c;return Object.entries(p).every(g=>{let[d,h]=g;return Array.isArray(h)?h.includes({...s,...l}[d]):{...s,...l}[d]===h})?[...i,f,m]:i},[]);return wo(e,n,u,a?.class,a?.className)};import*as Mo from"react";import*as Do from"react";import*as Eo from"react-dom";var Qt={};Ha(Qt,{Root:()=>Ti,Slot:()=>Ti,Slottable:()=>Mi,createSlot:()=>Ue,createSlottable:()=>Ao});import*as ie from"react";import*as ko from"react";function So(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ei(...e){return t=>{let a=!1,r=e.map(o=>{let s=So(o,t);return!a&&typeof s=="function"&&(a=!0),s});if(a)return()=>{for(let o=0;o{let{children:o,...s}=a,n=null,l=!1,u=[];Ro(o)&&typeof Jt=="function"&&(o=Jt(o._payload)),ie.Children.forEach(o,m=>{if(Fi(m)){l=!0;let p=m,g="child"in p.props?p.props.child:p.props.children;Ro(g)&&typeof Jt=="function"&&(g=Jt(g._payload)),n=Oi(p,g),u.push(n?.props?.children)}else u.push(m)}),n?n=ie.cloneElement(n,void 0,u):!l&&ie.Children.count(o)===1&&ie.isValidElement(o)&&(n=o);let i=n?_i(n):void 0,c=Z(r,i);if(!n){if(o||o===0)throw new Error(l?Hi(e):Ui(e));return o}let f=Bi(s,n.props??{});return n.type!==ie.Fragment&&(f.ref=r?c:i),ie.cloneElement(n,f)});return t.displayName=`${e}.Slot`,t}var Ti=Ue("Slot"),Po=Symbol.for("radix.slottable");function Ao(e){let t=a=>"child"in a?a.children(a.child):a.children;return t.displayName=`${e}.Slottable`,t.__radixId=Po,t}var Mi=Ao("Slottable"),Oi=(e,t)=>{if("child"in e.props){let a=e.props.child;return ie.isValidElement(a)?ie.cloneElement(a,void 0,e.props.children(a.props.children)):null}return ie.isValidElement(t)?t:null};function Bi(e,t){let a={...t};for(let r in t){let o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?a[r]=(...l)=>{let u=s(...l);return o(...l),u}:o&&(a[r]=o):r==="style"?a[r]={...o,...s}:r==="className"&&(a[r]=[o,s].filter(Boolean).join(" "))}return{...e,...a}}function _i(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function Fi(e){return ie.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Po}var Ni=Symbol.for("react.lazy");function Ro(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ni&&"_payload"in e&&qi(e._payload)}function qi(e){return typeof e=="object"&&e!==null&&"then"in e}var Ui=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Hi=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Jt=ie[" use ".trim().toString()];import{jsx as zi}from"react/jsx-runtime";var Vi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],G=Vi.reduce((e,t)=>{let a=Ue(`Primitive.${t}`),r=Do.forwardRef((o,s)=>{let{asChild:n,...l}=o,u=n?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),zi(u,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function To(e,t){e&&Eo.flushSync(()=>e.dispatchEvent(t))}import{jsx as Gi}from"react/jsx-runtime";var tr=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Wi="VisuallyHidden",ji=Mo.forwardRef((e,t)=>Gi(G.span,{...e,ref:t,style:{...tr,...e.style}}));ji.displayName=Wi;import*as He from"react";import{jsx as Xi}from"react/jsx-runtime";function yt(e,t=[]){let a=[];function r(s,n){let l=He.createContext(n);l.displayName=s+"Context";let u=a.length;a=[...a,n];let i=f=>{let{scope:m,children:p,...g}=f,d=m?.[e]?.[u]||l,h=He.useMemo(()=>g,Object.values(g));return Xi(d.Provider,{value:h,children:p})};i.displayName=s+"Provider";function c(f,m){let p=m?.[e]?.[u]||l,g=He.useContext(p);if(g)return g;if(n!==void 0)return n;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[i,c]}let o=()=>{let s=a.map(n=>He.createContext(n));return function(l){let u=l?.[e]||s;return He.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return o.scopeName=e,[r,$i(o,...t)]}function $i(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){let n=r.reduce((l,{useScope:u,scopeName:i})=>{let f=u(s)[`__scope${i}`];return{...l,...f}},{});return He.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return a.scopeName=t.scopeName,a}import*as Pe from"react";import{jsx as ar}from"react/jsx-runtime";import*as ea from"react";import{jsx as Ed}from"react/jsx-runtime";function Oo(e){let t=e+"CollectionProvider",[a,r]=yt(t),[o,s]=a(t,{collectionRef:{current:null},itemMap:new Map}),n=d=>{let{scope:h,children:x}=d,y=Pe.useRef(null),v=Pe.useRef(new Map).current;return ar(o,{scope:h,itemMap:v,collectionRef:y,children:x})};n.displayName=t;let l=e+"CollectionSlot",u=Ue(l),i=Pe.forwardRef((d,h)=>{let{scope:x,children:y}=d,v=s(l,x),I=Z(h,v.collectionRef);return ar(u,{ref:I,children:y})});i.displayName=l;let c=e+"CollectionItemSlot",f="data-radix-collection-item",m=Ue(c),p=Pe.forwardRef((d,h)=>{let{scope:x,children:y,...v}=d,I=Pe.useRef(null),w=Z(h,I),k=s(c,x);return Pe.useEffect(()=>(k.itemMap.set(I,{ref:I,...v}),()=>void k.itemMap.delete(I))),ar(m,{[f]:"",ref:w,children:y})});p.displayName=c;function g(d){let h=s(e+"CollectionConsumer",d);return Pe.useCallback(()=>{let y=h.collectionRef.current;if(!y)return[];let v=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(h.itemMap.values()).sort((k,C)=>v.indexOf(k.ref.current)-v.indexOf(C.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:n,Slot:i,ItemSlot:p},g,r]}var Md=!!(typeof window<"u"&&window.document&&window.document.createElement);function ae(e,t,{checkForDefaultPrevented:a=!0}={}){return function(o){if(e?.(o),a===!1||!o.defaultPrevented)return t?.(o)}}import*as Ce from"react";import*as Bo from"react";var J=globalThis?.document?Bo.useLayoutEffect:()=>{};import*as ta from"react";var Ki=Ce[" useInsertionEffect ".trim().toString()]||J;function rr({prop:e,defaultProp:t,onChange:a=()=>{},caller:r}){let[o,s,n]=Yi({defaultProp:t,onChange:a}),l=e!==void 0,u=l?e:o;{let c=Ce.useRef(e!==void 0);Ce.useEffect(()=>{let f=c.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=l},[l,r])}let i=Ce.useCallback(c=>{if(l){let f=Zi(c)?c(e):c;f!==e&&n.current?.(f)}else s(c)},[l,e,s,n]);return[u,i]}function Yi({defaultProp:e,onChange:t}){let[a,r]=Ce.useState(e),o=Ce.useRef(a),s=Ce.useRef(t);return Ki(()=>{s.current=t},[t]),Ce.useEffect(()=>{o.current!==a&&(s.current?.(a),o.current=a)},[a,o]),[a,r,s]}function Zi(e){return typeof e=="function"}var Fd=Symbol("RADIX:SYNC_STATE");import*as de from"react";import*as Fo from"react";function Ji(e,t){return Fo.useReducer((a,r)=>t[a][r]??a,e)}var or=e=>{let{present:t,children:a}=e,r=Qi(t),o=typeof a=="function"?a({present:r.isPresent}):de.Children.only(a),s=eu(r.ref,tu(o));return typeof a=="function"||r.isPresent?de.cloneElement(o,{ref:s}):null};or.displayName="Presence";function Qi(e){let[t,a]=de.useState(),r=de.useRef(null),o=de.useRef(e),s=de.useRef("none"),n=e?"mounted":"unmounted",[l,u]=Ji(n,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return de.useEffect(()=>{let i=aa(r.current);s.current=l==="mounted"?i:"none"},[l]),J(()=>{let i=r.current,c=o.current;if(c!==e){let m=s.current,p=aa(i);e?u("MOUNT"):p==="none"||i?.display==="none"?u("UNMOUNT"):u(c&&m!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),J(()=>{if(t){let i,c=t.ownerDocument.defaultView??window,f=p=>{let d=aa(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&d&&(u("ANIMATION_END"),!o.current)){let h=t.style.animationFillMode;t.style.animationFillMode="forwards",i=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},m=p=>{p.target===t&&(s.current=aa(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(i),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:de.useCallback(i=>{r.current=i?getComputedStyle(i):null,a(i)},[])}}function _o(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function eu(...e){let t=de.useRef(e);return t.current=e,de.useCallback(a=>{let r=t.current,o=!1,s=r.map(n=>{let l=_o(n,a);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let n=0;n{}),ru=0;function ra(e){let[t,a]=sr.useState(au());return J(()=>{e||a(r=>r??String(ru++))},[e]),e||(t?`radix-${t}`:"")}import*as oa from"react";import{jsx as Gd}from"react/jsx-runtime";var ou=oa.createContext(void 0);function No(e){let t=oa.useContext(ou);return e||t||"ltr"}import*as ee from"react";import*as xt from"react";function be(e){let t=xt.useRef(e);return xt.useEffect(()=>{t.current=e}),xt.useMemo(()=>(...a)=>t.current?.(...a),[])}import*as qo from"react";function Uo(e,t=globalThis?.document){let a=be(e);qo.useEffect(()=>{let r=o=>{o.key==="Escape"&&a(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[a,t])}import{jsx as Vo}from"react/jsx-runtime";var su="DismissableLayer",nr="dismissableLayer.update",nu="dismissableLayer.pointerDownOutside",lu="dismissableLayer.focusOutside",Ho,Go=ee.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lr=ee.forwardRef((e,t)=>{let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:n,onDismiss:l,...u}=e,i=ee.useContext(Go),[c,f]=ee.useState(null),m=c?.ownerDocument??globalThis?.document,[,p]=ee.useState({}),g=Z(t,C=>f(C)),d=Array.from(i.layers),[h]=[...i.layersWithOutsidePointerEventsDisabled].slice(-1),x=d.indexOf(h),y=c?d.indexOf(c):-1,v=i.layersWithOutsidePointerEventsDisabled.size>0,I=y>=x,w=cu(C=>{let L=C.target,T=[...i.branches].some(N=>N.contains(L));!I||T||(o?.(C),n?.(C),C.defaultPrevented||l?.())},m),k=fu(C=>{let L=C.target;[...i.branches].some(N=>N.contains(L))||(s?.(C),n?.(C),C.defaultPrevented||l?.())},m);return Uo(C=>{y===i.layers.size-1&&(r?.(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},m),ee.useEffect(()=>{if(c)return a&&(i.layersWithOutsidePointerEventsDisabled.size===0&&(Ho=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),i.layersWithOutsidePointerEventsDisabled.add(c)),i.layers.add(c),zo(),()=>{a&&(i.layersWithOutsidePointerEventsDisabled.delete(c),i.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Ho))}},[c,m,a,i]),ee.useEffect(()=>()=>{c&&(i.layers.delete(c),i.layersWithOutsidePointerEventsDisabled.delete(c),zo())},[c,i]),ee.useEffect(()=>{let C=()=>p({});return document.addEventListener(nr,C),()=>document.removeEventListener(nr,C)},[]),Vo(G.div,{...u,ref:g,style:{pointerEvents:v?I?"auto":"none":void 0,...e.style},onFocusCapture:ae(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ae(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ae(e.onPointerDownCapture,w.onPointerDownCapture)})});lr.displayName=su;var iu="DismissableLayerBranch",uu=ee.forwardRef((e,t)=>{let a=ee.useContext(Go),r=ee.useRef(null),o=Z(t,r);return ee.useEffect(()=>{let s=r.current;if(s)return a.branches.add(s),()=>{a.branches.delete(s)}},[a.branches]),Vo(G.div,{...e,ref:o})});uu.displayName=iu;function cu(e,t=globalThis?.document){let a=be(e),r=ee.useRef(!1),o=ee.useRef(()=>{});return ee.useEffect(()=>{let s=l=>{if(l.target&&!r.current){let i=function(){Wo(nu,a,c,{discrete:!0})};var u=i;let c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=i,t.addEventListener("click",o.current,{once:!0})):i()}else t.removeEventListener("click",o.current);r.current=!1},n=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,a]),{onPointerDownCapture:()=>r.current=!0}}function fu(e,t=globalThis?.document){let a=be(e),r=ee.useRef(!1);return ee.useEffect(()=>{let o=s=>{s.target&&!r.current&&Wo(lu,a,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,a]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zo(){let e=new CustomEvent(nr);document.dispatchEvent(e)}function Wo(e,t,a,{discrete:r}){let o=a.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&o.addEventListener(e,t,{once:!0}),r?To(o,s):o.dispatchEvent(s)}import*as we from"react";import{jsx as du}from"react/jsx-runtime";var ir="focusScope.autoFocusOnMount",ur="focusScope.autoFocusOnUnmount",jo={bubbles:!1,cancelable:!0},pu="FocusScope",cr=we.forwardRef((e,t)=>{let{loop:a=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...n}=e,[l,u]=we.useState(null),i=be(o),c=be(s),f=we.useRef(null),m=Z(t,d=>u(d)),p=we.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;we.useEffect(()=>{if(r){let y=function(k){if(p.paused||!l)return;let C=k.target;l.contains(C)?f.current=C:We(f.current,{select:!0})},v=function(k){if(p.paused||!l)return;let C=k.relatedTarget;C!==null&&(l.contains(C)||We(f.current,{select:!0}))},I=function(k){if(document.activeElement===document.body)for(let L of k)L.removedNodes.length>0&&We(l)};var d=y,h=v,x=I;document.addEventListener("focusin",y),document.addEventListener("focusout",v);let w=new MutationObserver(I);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),w.disconnect()}}},[r,l,p.paused]),we.useEffect(()=>{if(l){$o.add(p);let d=document.activeElement;if(!l.contains(d)){let x=new CustomEvent(ir,jo);l.addEventListener(ir,i),l.dispatchEvent(x),x.defaultPrevented||(mu(vu(Yo(l)),{select:!0}),document.activeElement===d&&We(l))}return()=>{l.removeEventListener(ir,i),setTimeout(()=>{let x=new CustomEvent(ur,jo);l.addEventListener(ur,c),l.dispatchEvent(x),x.defaultPrevented||We(d??document.body,{select:!0}),l.removeEventListener(ur,c),$o.remove(p)},0)}}},[l,i,c,p]);let g=we.useCallback(d=>{if(!a&&!r||p.paused)return;let h=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,x=document.activeElement;if(h&&x){let y=d.currentTarget,[v,I]=hu(y);v&&I?!d.shiftKey&&x===I?(d.preventDefault(),a&&We(v,{select:!0})):d.shiftKey&&x===v&&(d.preventDefault(),a&&We(I,{select:!0})):x===y&&d.preventDefault()}},[a,r,p.paused]);return du(G.div,{tabIndex:-1,...n,ref:m,onKeyDown:g})});cr.displayName=pu;function mu(e,{select:t=!1}={}){let a=document.activeElement;for(let r of e)if(We(r,{select:t}),document.activeElement!==a)return}function hu(e){let t=Yo(e),a=Xo(t,e),r=Xo(t.reverse(),e);return[a,r]}function Yo(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function Xo(e,t){for(let a of e)if(!gu(a,{upTo:t}))return a}function gu(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function yu(e){return e instanceof HTMLInputElement&&"select"in e}function We(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&yu(e)&&t&&e.select()}}var $o=xu();function xu(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=Ko(e,t),e.unshift(t)},remove(t){e=Ko(e,t),e[0]?.resume()}}}function Ko(e,t){let a=[...e],r=a.indexOf(t);return r!==-1&&a.splice(r,1),a}function vu(e){return e.filter(t=>t.tagName!=="A")}import*as sa from"react";import*as Zo from"react-dom";import{jsx as Lu}from"react/jsx-runtime";var Iu="Portal",fr=sa.forwardRef((e,t)=>{let{container:a,...r}=e,[o,s]=sa.useState(!1);J(()=>s(!0),[]);let n=a||o&&globalThis?.document?.body;return n?Zo.createPortal(Lu(G.div,{...r,ref:t}),n):null});fr.displayName=Iu;import*as Qo from"react";var na=0,vt=null;function es(){Qo.useEffect(()=>{vt||(vt={start:Jo(),end:Jo()});let{start:e,end:t}=vt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),na++,()=>{na===1&&(vt?.start.remove(),vt?.end.remove(),vt=null),na=Math.max(0,na-1)}},[])}function Jo(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ge=function(){return ge=Object.assign||function(t){for(var a,r=1,o=arguments.length;r"u")return Au;var t=Du(e),a=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-a+t[2]-t[0])}};var Eu=Bt(),Lt="data-scroll-locked",Tu=function(e,t,a,r){var o=e.left,s=e.top,n=e.right,l=e.gap;return a===void 0&&(a="margin"),` + .`.concat(dr,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(l,"px ").concat(r,`; + } + body[`).concat(Lt,`] { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),a==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(s,`px; + padding-right: `).concat(n,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(l,"px ").concat(r,`; + `),a==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Qe,` { + right: `).concat(l,"px ").concat(r,`; + } + + .`).concat(et,` { + margin-right: `).concat(l,"px ").concat(r,`; + } + + .`).concat(Qe," .").concat(Qe,` { + right: 0 `).concat(r,`; + } + + .`).concat(et," .").concat(et,` { + margin-right: 0 `).concat(r,`; + } + + body[`).concat(Lt,`] { + `).concat(pr,": ").concat(l,`px; + } +`)},us=function(){var e=parseInt(document.body.getAttribute(Lt)||"0",10);return isFinite(e)?e:0},Mu=function(){It.useEffect(function(){return document.body.setAttribute(Lt,(us()+1).toString()),function(){var e=us()-1;e<=0?document.body.removeAttribute(Lt):document.body.setAttribute(Lt,e.toString())}},[])},Cr=function(e){var t=e.noRelative,a=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Mu();var s=It.useMemo(function(){return Ir(o)},[o]);return It.createElement(Eu,{styles:Tu(s,!t,o,a?"":"!important")})};var br=!1;if(typeof window<"u")try{_t=Object.defineProperty({},"passive",{get:function(){return br=!0,!0}}),window.addEventListener("test",_t,_t),window.removeEventListener("test",_t,_t)}catch{br=!1}var _t,tt=br?{passive:!1}:!1;var Ou=function(e){return e.tagName==="TEXTAREA"},cs=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!Ou(e)&&a[t]==="visible")},Bu=function(e){return cs(e,"overflowY")},_u=function(e){return cs(e,"overflowX")},wr=function(e,t){var a=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=fs(e,r);if(o){var s=ds(e,r),n=s[1],l=s[2];if(n>l)return!0}r=r.parentNode}while(r&&r!==a.body);return!1},Fu=function(e){var t=e.scrollTop,a=e.scrollHeight,r=e.clientHeight;return[t,a,r]},Nu=function(e){var t=e.scrollLeft,a=e.scrollWidth,r=e.clientWidth;return[t,a,r]},fs=function(e,t){return e==="v"?Bu(t):_u(t)},ds=function(e,t){return e==="v"?Fu(t):Nu(t)},qu=function(e,t){return e==="h"&&t==="rtl"?-1:1},ps=function(e,t,a,r,o){var s=qu(e,window.getComputedStyle(t).direction),n=s*r,l=a.target,u=t.contains(l),i=!1,c=n>0,f=0,m=0;do{if(!l)break;var p=ds(e,l),g=p[0],d=p[1],h=p[2],x=d-h-s*g;(g||x)&&fs(e,l)&&(f+=x,m+=g);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(c&&(o&&Math.abs(f)<1||!o&&n>f)||!c&&(o&&Math.abs(m)<1||!o&&-n>m))&&(i=!0),i};var fa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ms=function(e){return[e.deltaX,e.deltaY]},hs=function(e){return e&&"current"in e?e.current:e},Uu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Hu=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},zu=0,Ct=[];function gs(e){var t=Y.useRef([]),a=Y.useRef([0,0]),r=Y.useRef(),o=Y.useState(zu++)[0],s=Y.useState(Bt)[0],n=Y.useRef(e);Y.useEffect(function(){n.current=e},[e]),Y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=ts([e.lockRef.current],(e.shards||[]).map(hs),!0).filter(Boolean);return d.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=Y.useCallback(function(d,h){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!n.current.allowPinchZoom;var x=fa(d),y=a.current,v="deltaX"in d?d.deltaX:y[0]-x[0],I="deltaY"in d?d.deltaY:y[1]-x[1],w,k=d.target,C=Math.abs(v)>Math.abs(I)?"h":"v";if("touches"in d&&C==="h"&&k.type==="range")return!1;var L=window.getSelection(),T=L&&L.anchorNode,N=T?T===k||T.contains(k):!1;if(N)return!1;var q=wr(C,k);if(!q)return!0;if(q?w=C:(w=C==="v"?"h":"v",q=wr(C,k)),!q)return!1;if(!r.current&&"changedTouches"in d&&(v||I)&&(r.current=w),!w)return!0;var U=r.current||w;return ps(U,h,d,U==="h"?v:I,!0)},[]),u=Y.useCallback(function(d){var h=d;if(!(!Ct.length||Ct[Ct.length-1]!==s)){var x="deltaY"in h?ms(h):fa(h),y=t.current.filter(function(w){return w.name===h.type&&(w.target===h.target||h.target===w.shadowParent)&&Uu(w.delta,x)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var v=(n.current.shards||[]).map(hs).filter(Boolean).filter(function(w){return w.contains(h.target)}),I=v.length>0?l(h,v[0]):!n.current.noIsolation;I&&h.cancelable&&h.preventDefault()}}},[]),i=Y.useCallback(function(d,h,x,y){var v={name:d,delta:h,target:x,should:y,shadowParent:Vu(x)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(I){return I!==v})},1)},[]),c=Y.useCallback(function(d){a.current=fa(d),r.current=void 0},[]),f=Y.useCallback(function(d){i(d.type,ms(d),d.target,l(d,e.lockRef.current))},[]),m=Y.useCallback(function(d){i(d.type,fa(d),d.target,l(d,e.lockRef.current))},[]);Y.useEffect(function(){return Ct.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",u,tt),document.addEventListener("touchmove",u,tt),document.addEventListener("touchstart",c,tt),function(){Ct=Ct.filter(function(d){return d!==s}),document.removeEventListener("wheel",u,tt),document.removeEventListener("touchmove",u,tt),document.removeEventListener("touchstart",c,tt)}},[]);var p=e.removeScrollBar,g=e.inert;return Y.createElement(Y.Fragment,null,g?Y.createElement(s,{styles:Hu(o)}):null,p?Y.createElement(Cr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Vu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ys=gr(ca,gs);var xs=da.forwardRef(function(e,t){return da.createElement(Ot,ge({},e,{ref:t,sideCar:ys}))});xs.classNames=Ot.classNames;var Sr=xs;var Gu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bt=new WeakMap,pa=new WeakMap,ma={},kr=0,vs=function(e){return e&&(e.host||vs(e.parentNode))},Wu=function(e,t){return t.map(function(a){if(e.contains(a))return a;var r=vs(a);return r&&e.contains(r)?r:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},ju=function(e,t,a,r){var o=Wu(t,Array.isArray(e)?e:[e]);ma[a]||(ma[a]=new WeakMap);var s=ma[a],n=[],l=new Set,u=new Set(o),i=function(f){!f||l.has(f)||(l.add(f),i(f.parentNode))};o.forEach(i);var c=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(m){if(l.has(m))c(m);else try{var p=m.getAttribute(r),g=p!==null&&p!=="false",d=(bt.get(m)||0)+1,h=(s.get(m)||0)+1;bt.set(m,d),s.set(m,h),n.push(m),d===1&&g&&pa.set(m,!0),h===1&&m.setAttribute(a,"true"),g||m.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",m,x)}})};return c(t),l.clear(),kr++,function(){n.forEach(function(f){var m=bt.get(f)-1,p=s.get(f)-1;bt.set(f,m),s.set(f,p),m||(pa.has(f)||f.removeAttribute(r),pa.delete(f)),p||f.removeAttribute(a)}),kr--,kr||(bt=new WeakMap,bt=new WeakMap,pa=new WeakMap,ma={})}},Ls=function(e,t,a){a===void 0&&(a="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Gu(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ju(r,o,a,"aria-hidden")):function(){return null}};import*as ha from"react";function Is(e){let t=ha.useRef({value:e,previous:e});return ha.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}import*as Cs from"react";function bs(e){let[t,a]=Cs.useState(void 0);return J(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let s=o[0],n,l;if("borderBoxSize"in s){let u=s.borderBoxSize,i=Array.isArray(u)?u[0]:u;n=i.inlineSize,l=i.blockSize}else n=e.offsetWidth,l=e.offsetHeight;a({width:n,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else a(void 0)},[e]),t}import*as ue from"react";var ks=["top","right","bottom","left"];var Oe=Math.min,he=Math.max,Nt=Math.round,qt=Math.floor,Ae=e=>({x:e,y:e}),Xu={left:"right",right:"left",bottom:"top",top:"bottom"};function ya(e,t,a){return he(e,Oe(t,a))}function Be(e,t){return typeof e=="function"?e(t):e}function _e(e){return e.split("-")[0]}function at(e){return e.split("-")[1]}function xa(e){return e==="x"?"y":"x"}function va(e){return e==="y"?"height":"width"}function De(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function La(e){return xa(De(e))}function Rs(e,t,a){a===void 0&&(a=!1);let r=at(e),o=La(e),s=va(o),n=o==="x"?r===(a?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(n=Ft(n)),[n,Ft(n)]}function Ps(e){let t=Ft(e);return[ga(e),t,ga(t)]}function ga(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var ws=["left","right"],Ss=["right","left"],$u=["top","bottom"],Ku=["bottom","top"];function Yu(e,t,a){switch(e){case"top":case"bottom":return a?t?Ss:ws:t?ws:Ss;case"left":case"right":return t?$u:Ku;default:return[]}}function As(e,t,a,r){let o=at(e),s=Yu(_e(e),a==="start",r);return o&&(s=s.map(n=>n+"-"+o),t&&(s=s.concat(s.map(ga)))),s}function Ft(e){let t=_e(e);return Xu[t]+e.slice(t.length)}function Zu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rr(e){return typeof e!="number"?Zu(e):{top:e,right:e,bottom:e,left:e}}function rt(e){let{x:t,y:a,width:r,height:o}=e;return{width:r,height:o,top:a,left:t,right:t+r,bottom:a+o,x:t,y:a}}function Ds(e,t,a){let{reference:r,floating:o}=e,s=De(t),n=La(t),l=va(n),u=_e(t),i=s==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[l]/2-o[l]/2,p;switch(u){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(at(t)){case"start":p[n]-=m*(a&&i?-1:1);break;case"end":p[n]+=m*(a&&i?-1:1);break}return p}async function Ms(e,t){var a;t===void 0&&(t={});let{x:r,y:o,platform:s,rects:n,elements:l,strategy:u}=e,{boundary:i="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:m=!1,padding:p=0}=Be(t,e),g=Rr(p),h=l[m?f==="floating"?"reference":"floating":f],x=rt(await s.getClippingRect({element:(a=await(s.isElement==null?void 0:s.isElement(h)))==null||a?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:i,rootBoundary:c,strategy:u})),y=f==="floating"?{x:r,y:o,width:n.floating.width,height:n.floating.height}:n.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),I=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},w=rt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:v,strategy:u}):y);return{top:(x.top-w.top+g.top)/I.y,bottom:(w.bottom-x.bottom+g.bottom)/I.y,left:(x.left-w.left+g.left)/I.x,right:(w.right-x.right+g.right)/I.x}}var Ju=50,Os=async(e,t,a)=>{let{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:n}=a,l=n.detectOverflow?n:{...n,detectOverflow:Ms},u=await(n.isRTL==null?void 0:n.isRTL(t)),i=await n.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=Ds(i,r,u),m=r,p=0,g={};for(let d=0;d({name:"arrow",options:e,async fn(t){let{x:a,y:r,placement:o,rects:s,platform:n,elements:l,middlewareData:u}=t,{element:i,padding:c=0}=Be(e,t)||{};if(i==null)return{};let f=Rr(c),m={x:a,y:r},p=La(o),g=va(p),d=await n.getDimensions(i),h=p==="y",x=h?"top":"left",y=h?"bottom":"right",v=h?"clientHeight":"clientWidth",I=s.reference[g]+s.reference[p]-m[p]-s.floating[g],w=m[p]-s.reference[p],k=await(n.getOffsetParent==null?void 0:n.getOffsetParent(i)),C=k?k[v]:0;(!C||!await(n.isElement==null?void 0:n.isElement(k)))&&(C=l.floating[v]||s.floating[g]);let L=I/2-w/2,T=C/2-d[g]/2-1,N=Oe(f[x],T),q=Oe(f[y],T),U=N,V=C-d[g]-q,_=C/2-d[g]/2+L,z=ya(U,_,V),M=!u.arrow&&at(o)!=null&&_!==z&&s.reference[g]/2-(__<=0)){var q,U;let _=(((q=s.flip)==null?void 0:q.index)||0)+1,z=C[_];if(z&&(!(f==="alignment"?y!==De(z):!1)||N.every(D=>De(D.placement)===y?D.overflows[0]>0:!0)))return{data:{index:_,overflows:N},reset:{placement:z}};let M=(U=N.filter(B=>B.overflows[0]<=0).sort((B,D)=>B.overflows[1]-D.overflows[1])[0])==null?void 0:U.placement;if(!M)switch(p){case"bestFit":{var V;let B=(V=N.filter(D=>{if(k){let H=De(D.placement);return H===y||H==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(H=>H>0).reduce((H,S)=>H+S,0)]).sort((D,H)=>D[1]-H[1])[0])==null?void 0:V[0];B&&(M=B);break}case"initialPlacement":M=l;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Es(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ts(e){return ks.some(t=>e[t]>=0)}var Fs=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:r}=t,{strategy:o="referenceHidden",...s}=Be(e,t);switch(o){case"referenceHidden":{let n=await r.detectOverflow(t,{...s,elementContext:"reference"}),l=Es(n,a.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Ts(l)}}}case"escaped":{let n=await r.detectOverflow(t,{...s,altBoundary:!0}),l=Es(n,a.floating);return{data:{escapedOffsets:l,escaped:Ts(l)}}}default:return{}}}}};var Ns=new Set(["left","top"]);async function Qu(e,t){let{placement:a,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),n=_e(a),l=at(a),u=De(a)==="y",i=Ns.has(n)?-1:1,c=s&&u?-1:1,f=Be(t,e),{mainAxis:m,crossAxis:p,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof g=="number"&&(p=l==="end"?g*-1:g),u?{x:p*c,y:m*i}:{x:m*i,y:p*c}}var qs=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,r;let{x:o,y:s,placement:n,middlewareData:l}=t,u=await Qu(t,e);return n===((a=l.offset)==null?void 0:a.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:n}}}}},Us=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:r,placement:o,platform:s}=t,{mainAxis:n=!0,crossAxis:l=!1,limiter:u={fn:x=>{let{x:y,y:v}=x;return{x:y,y:v}}},...i}=Be(e,t),c={x:a,y:r},f=await s.detectOverflow(t,i),m=De(_e(o)),p=xa(m),g=c[p],d=c[m];if(n){let x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=g+f[x],I=g-f[y];g=ya(v,g,I)}if(l){let x=m==="y"?"top":"left",y=m==="y"?"bottom":"right",v=d+f[x],I=d-f[y];d=ya(v,d,I)}let h=u.fn({...t,[p]:g,[m]:d});return{...h,data:{x:h.x-a,y:h.y-r,enabled:{[p]:n,[m]:l}}}}}},Hs=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:a,y:r,placement:o,rects:s,middlewareData:n}=t,{offset:l=0,mainAxis:u=!0,crossAxis:i=!0}=Be(e,t),c={x:a,y:r},f=De(o),m=xa(f),p=c[m],g=c[f],d=Be(l,t),h=typeof d=="number"?{mainAxis:d,crossAxis:0}:{mainAxis:0,crossAxis:0,...d};if(u){let v=m==="y"?"height":"width",I=s.reference[m]-s.floating[v]+h.mainAxis,w=s.reference[m]+s.reference[v]-h.mainAxis;pw&&(p=w)}if(i){var x,y;let v=m==="y"?"width":"height",I=Ns.has(_e(o)),w=s.reference[f]-s.floating[v]+(I&&((x=n.offset)==null?void 0:x[f])||0)+(I?0:h.crossAxis),k=s.reference[f]+s.reference[v]+(I?0:((y=n.offset)==null?void 0:y[f])||0)-(I?h.crossAxis:0);gk&&(g=k)}return{[m]:p,[f]:g}}}},zs=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,r;let{placement:o,rects:s,platform:n,elements:l}=t,{apply:u=()=>{},...i}=Be(e,t),c=await n.detectOverflow(t,i),f=_e(o),m=at(o),p=De(o)==="y",{width:g,height:d}=s.floating,h,x;f==="top"||f==="bottom"?(h=f,x=m===(await(n.isRTL==null?void 0:n.isRTL(l.floating))?"start":"end")?"left":"right"):(x=f,h=m==="end"?"top":"bottom");let y=d-c.top-c.bottom,v=g-c.left-c.right,I=Oe(d-c[h],y),w=Oe(g-c[x],v),k=!t.middlewareData.shift,C=I,L=w;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(L=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=y),k&&!m){let N=he(c.left,0),q=he(c.right,0),U=he(c.top,0),V=he(c.bottom,0);p?L=g-2*(N!==0||q!==0?N+q:he(c.left,c.right)):C=d-2*(U!==0||V!==0?U+V:he(c.top,c.bottom))}await u({...t,availableWidth:L,availableHeight:C});let T=await n.getDimensions(l.floating);return g!==T.width||d!==T.height?{reset:{rects:!0}}:{}}}};function Ia(){return typeof window<"u"}function nt(e){return Gs(e)?(e.nodeName||"").toLowerCase():"#document"}function ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ee(e){var t;return(t=(Gs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gs(e){return Ia()?e instanceof Node||e instanceof ye(e).Node:!1}function Se(e){return Ia()?e instanceof Element||e instanceof ye(e).Element:!1}function Fe(e){return Ia()?e instanceof HTMLElement||e instanceof ye(e).HTMLElement:!1}function Vs(e){return!Ia()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ye(e).ShadowRoot}function wt(e){let{overflow:t,overflowX:a,overflowY:r,display:o}=ke(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&o!=="inline"&&o!=="contents"}function Ws(e){return/^(table|td|th)$/.test(nt(e))}function Ut(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var ec=/transform|translate|scale|rotate|perspective|filter/,tc=/paint|layout|strict|content/,ot=e=>!!e&&e!=="none",Pr;function Ca(e){let t=Se(e)?ke(e):e;return ot(t.transform)||ot(t.translate)||ot(t.scale)||ot(t.rotate)||ot(t.perspective)||!ba()&&(ot(t.backdropFilter)||ot(t.filter))||ec.test(t.willChange||"")||tc.test(t.contain||"")}function js(e){let t=ze(e);for(;Fe(t)&&!lt(t);){if(Ca(t))return t;if(Ut(t))return null;t=ze(t)}return null}function ba(){return Pr==null&&(Pr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Pr}function lt(e){return/^(html|body|#document)$/.test(nt(e))}function ke(e){return ye(e).getComputedStyle(e)}function Ht(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ze(e){if(nt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Vs(e)&&e.host||Ee(e);return Vs(t)?t.host:t}function Xs(e){let t=ze(e);return lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fe(t)&&wt(t)?t:Xs(t)}function st(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);let o=Xs(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),n=ye(o);if(s){let l=wa(n);return t.concat(n,n.visualViewport||[],wt(o)?o:[],l&&a?st(l):[])}else return t.concat(o,st(o,[],a))}function wa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zs(e){let t=ke(e),a=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Fe(e),s=o?e.offsetWidth:a,n=o?e.offsetHeight:r,l=Nt(a)!==s||Nt(r)!==n;return l&&(a=s,r=n),{width:a,height:r,$:l}}function Dr(e){return Se(e)?e:e.contextElement}function St(e){let t=Dr(e);if(!Fe(t))return Ae(1);let a=t.getBoundingClientRect(),{width:r,height:o,$:s}=Zs(t),n=(s?Nt(a.width):a.width)/r,l=(s?Nt(a.height):a.height)/o;return(!n||!Number.isFinite(n))&&(n=1),(!l||!Number.isFinite(l))&&(l=1),{x:n,y:l}}var ac=Ae(0);function Js(e){let t=ye(e);return!ba()||!t.visualViewport?ac:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rc(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==ye(e)?!1:t}function it(e,t,a,r){t===void 0&&(t=!1),a===void 0&&(a=!1);let o=e.getBoundingClientRect(),s=Dr(e),n=Ae(1);t&&(r?Se(r)&&(n=St(r)):n=St(e));let l=rc(s,a,r)?Js(s):Ae(0),u=(o.left+l.x)/n.x,i=(o.top+l.y)/n.y,c=o.width/n.x,f=o.height/n.y;if(s){let m=ye(s),p=r&&Se(r)?ye(r):r,g=m,d=wa(g);for(;d&&r&&p!==g;){let h=St(d),x=d.getBoundingClientRect(),y=ke(d),v=x.left+(d.clientLeft+parseFloat(y.paddingLeft))*h.x,I=x.top+(d.clientTop+parseFloat(y.paddingTop))*h.y;u*=h.x,i*=h.y,c*=h.x,f*=h.y,u+=v,i+=I,g=ye(d),d=wa(g)}}return rt({width:c,height:f,x:u,y:i})}function Sa(e,t){let a=Ht(e).scrollLeft;return t?t.left+a:it(Ee(e)).left+a}function Qs(e,t){let a=e.getBoundingClientRect(),r=a.left+t.scrollLeft-Sa(e,a),o=a.top+t.scrollTop;return{x:r,y:o}}function oc(e){let{elements:t,rect:a,offsetParent:r,strategy:o}=e,s=o==="fixed",n=Ee(r),l=t?Ut(t.floating):!1;if(r===n||l&&s)return a;let u={scrollLeft:0,scrollTop:0},i=Ae(1),c=Ae(0),f=Fe(r);if((f||!f&&!s)&&((nt(r)!=="body"||wt(n))&&(u=Ht(r)),f)){let p=it(r);i=St(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}let m=n&&!f&&!s?Qs(n,u):Ae(0);return{width:a.width*i.x,height:a.height*i.y,x:a.x*i.x-u.scrollLeft*i.x+c.x+m.x,y:a.y*i.y-u.scrollTop*i.y+c.y+m.y}}function sc(e){return Array.from(e.getClientRects())}function nc(e){let t=Ee(e),a=Ht(e),r=e.ownerDocument.body,o=he(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=he(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-a.scrollLeft+Sa(e),l=-a.scrollTop;return ke(r).direction==="rtl"&&(n+=he(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:n,y:l}}var $s=25;function lc(e,t){let a=ye(e),r=Ee(e),o=a.visualViewport,s=r.clientWidth,n=r.clientHeight,l=0,u=0;if(o){s=o.width,n=o.height;let c=ba();(!c||c&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}let i=Sa(r);if(i<=0){let c=r.ownerDocument,f=c.body,m=getComputedStyle(f),p=c.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-f.clientWidth-p);g<=$s&&(s-=g)}else i<=$s&&(s+=i);return{width:s,height:n,x:l,y:u}}function ic(e,t){let a=it(e,!0,t==="fixed"),r=a.top+e.clientTop,o=a.left+e.clientLeft,s=Fe(e)?St(e):Ae(1),n=e.clientWidth*s.x,l=e.clientHeight*s.y,u=o*s.x,i=r*s.y;return{width:n,height:l,x:u,y:i}}function Ks(e,t,a){let r;if(t==="viewport")r=lc(e,a);else if(t==="document")r=nc(Ee(e));else if(Se(t))r=ic(t,a);else{let o=Js(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return rt(r)}function en(e,t){let a=ze(e);return a===t||!Se(a)||lt(a)?!1:ke(a).position==="fixed"||en(a,t)}function uc(e,t){let a=t.get(e);if(a)return a;let r=st(e,[],!1).filter(l=>Se(l)&&nt(l)!=="body"),o=null,s=ke(e).position==="fixed",n=s?ze(e):e;for(;Se(n)&&!lt(n);){let l=ke(n),u=Ca(n);!u&&l.position==="fixed"&&(o=null),(s?!u&&!o:!u&&l.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||wt(n)&&!u&&en(e,n))?r=r.filter(c=>c!==n):o=l,n=ze(n)}return t.set(e,r),r}function cc(e){let{element:t,boundary:a,rootBoundary:r,strategy:o}=e,n=[...a==="clippingAncestors"?Ut(t)?[]:uc(t,this._c):[].concat(a),r],l=Ks(t,n[0],o),u=l.top,i=l.right,c=l.bottom,f=l.left;for(let m=1;m{n(!1,1e-7)},1e3)}C===1&&!rn(i,e.getBoundingClientRect())&&n(),I=!1}try{a=new IntersectionObserver(w,{...v,root:o.ownerDocument})}catch{a=new IntersectionObserver(w,v)}a.observe(e)}return n(!0),s}function Er(e,t,a,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,i=Dr(e),c=o||s?[...i?st(i):[],...t?st(t):[]]:[];c.forEach(x=>{o&&x.addEventListener("scroll",a,{passive:!0}),s&&x.addEventListener("resize",a)});let f=i&&l?hc(i,a):null,m=-1,p=null;n&&(p=new ResizeObserver(x=>{let[y]=x;y&&y.target===i&&p&&t&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),a()}),i&&!u&&p.observe(i),t&&p.observe(t));let g,d=u?it(e):null;u&&h();function h(){let x=it(e);d&&!rn(d,x)&&a(),d=x,g=requestAnimationFrame(h)}return a(),()=>{var x;c.forEach(y=>{o&&y.removeEventListener("scroll",a),s&&y.removeEventListener("resize",a)}),f?.(),(x=p)==null||x.disconnect(),p=null,u&&cancelAnimationFrame(g)}}var on=qs;var sn=Us,nn=_s,ln=zs,un=Fs,Tr=Bs;var cn=Hs,Mr=(e,t,a)=>{let r=new Map,o={platform:an,...a},s={...o.platform,_c:r};return Os(e,t,{...o,platform:s})};import*as re from"react";import{useLayoutEffect as gc}from"react";import*as dn from"react-dom";var yc=typeof document<"u",xc=function(){},ka=yc?gc:xc;function Ra(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(r=a;r--!==0;)if(!Ra(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),a=o.length,a!==Object.keys(t).length)return!1;for(r=a;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=a;r--!==0;){let s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Ra(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function pn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fn(e,t){let a=pn(e);return Math.round(t*a)/a}function Or(e){let t=re.useRef(e);return ka(()=>{t.current=e}),t}function mn(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:n}={},transform:l=!0,whileElementsMounted:u,open:i}=e,[c,f]=re.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=re.useState(r);Ra(m,r)||p(r);let[g,d]=re.useState(null),[h,x]=re.useState(null),y=re.useCallback(D=>{D!==k.current&&(k.current=D,d(D))},[]),v=re.useCallback(D=>{D!==C.current&&(C.current=D,x(D))},[]),I=s||g,w=n||h,k=re.useRef(null),C=re.useRef(null),L=re.useRef(c),T=u!=null,N=Or(u),q=Or(o),U=Or(i),V=re.useCallback(()=>{if(!k.current||!C.current)return;let D={placement:t,strategy:a,middleware:m};q.current&&(D.platform=q.current),Mr(k.current,C.current,D).then(H=>{let S={...H,isPositioned:U.current!==!1};_.current&&!Ra(L.current,S)&&(L.current=S,dn.flushSync(()=>{f(S)}))})},[m,t,a,q,U]);ka(()=>{i===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,f(D=>({...D,isPositioned:!1})))},[i]);let _=re.useRef(!1);ka(()=>(_.current=!0,()=>{_.current=!1}),[]),ka(()=>{if(I&&(k.current=I),w&&(C.current=w),I&&w){if(N.current)return N.current(I,w,V);V()}},[I,w,V,N,T]);let z=re.useMemo(()=>({reference:k,floating:C,setReference:y,setFloating:v}),[y,v]),M=re.useMemo(()=>({reference:I,floating:w}),[I,w]),B=re.useMemo(()=>{let D={position:a,left:0,top:0};if(!M.floating)return D;let H=fn(M.floating,c.x),S=fn(M.floating,c.y);return l?{...D,transform:"translate("+H+"px, "+S+"px)",...pn(M.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:H,top:S}},[a,l,M.floating,c.x,c.y]);return re.useMemo(()=>({...c,update:V,refs:z,elements:M,floatingStyles:B}),[c,V,z,M,B])}var vc=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:r,padding:o}=typeof e=="function"?e(a):e;return r&&t(r)?r.current!=null?Tr({element:r.current,padding:o}).fn(a):{}:r?Tr({element:r,padding:o}).fn(a):{}}}},hn=(e,t)=>{let a=on(e);return{name:a.name,fn:a.fn,options:[e,t]}},gn=(e,t)=>{let a=sn(e);return{name:a.name,fn:a.fn,options:[e,t]}},yn=(e,t)=>({fn:cn(e).fn,options:[e,t]}),xn=(e,t)=>{let a=nn(e);return{name:a.name,fn:a.fn,options:[e,t]}},vn=(e,t)=>{let a=ln(e);return{name:a.name,fn:a.fn,options:[e,t]}};var Ln=(e,t)=>{let a=un(e);return{name:a.name,fn:a.fn,options:[e,t]}};var In=(e,t)=>{let a=vc(e);return{name:a.name,fn:a.fn,options:[e,t]}};import*as bn from"react";import{jsx as Cn}from"react/jsx-runtime";var Lc="Arrow",wn=bn.forwardRef((e,t)=>{let{children:a,width:r=10,height:o=5,...s}=e;return Cn(G.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:Cn("polygon",{points:"0,0 30,0 15,10"})})});wn.displayName=Lc;var Sn=wn;import{jsx as ut}from"react/jsx-runtime";var Br="Popper",[kn,_r]=yt(Br),[Cc,Rn]=kn(Br),Pn=e=>{let{__scopePopper:t,children:a}=e,[r,o]=ue.useState(null),[s,n]=ue.useState(void 0);return ut(Cc,{scope:t,anchor:r,onAnchorChange:o,placementState:s,setPlacementState:n,children:a})};Pn.displayName=Br;var An="PopperAnchor",Dn=ue.forwardRef((e,t)=>{let{__scopePopper:a,virtualRef:r,...o}=e,s=Rn(An,a),n=ue.useRef(null),l=s.onAnchorChange,u=ue.useCallback(g=>{n.current=g,g&&l(g)},[l]),i=Z(t,u),c=ue.useRef(null);ue.useEffect(()=>{if(!r)return;let g=c.current;c.current=r.current,g!==c.current&&l(c.current)});let f=s.placementState&&Nr(s.placementState),m=f?.[0],p=f?.[1];return r?null:ut(G.div,{"data-radix-popper-side":m,"data-radix-popper-align":p,...o,ref:i})});Dn.displayName=An;var Fr="PopperContent",[bc,wc]=kn(Fr),En=ue.forwardRef((e,t)=>{let{__scopePopper:a,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:n=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:i,collisionPadding:c=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:g,...d}=e,h=Rn(Fr,a),[x,y]=ue.useState(null),v=Z(t,j=>y(j)),[I,w]=ue.useState(null),k=bs(I),C=k?.width??0,L=k?.height??0,T=r+(s!=="center"?"-"+s:""),N=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},q=i?Array.isArray(i)?i:[i]:void 0,U=q!==void 0&&q.length>0,V={padding:N,boundary:q?.filter(kc),altBoundary:U},{refs:_,floatingStyles:z,placement:M,isPositioned:B,middlewareData:D}=mn({strategy:"fixed",placement:T,whileElementsMounted:(...j)=>Er(...j,{animationFrame:p==="always"}),elements:{reference:h.anchor},middleware:[hn({mainAxis:o+L,alignmentAxis:n}),u&&gn({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?yn():void 0,...V}),u&&xn({...V}),vn({...V,apply:({elements:j,rects:F,availableWidth:X,availableHeight:W})=>{let{width:K,height:ve}=F.reference,le=j.floating.style;le.setProperty("--radix-popper-available-width",`${X}px`),le.setProperty("--radix-popper-available-height",`${W}px`),le.setProperty("--radix-popper-anchor-width",`${K}px`),le.setProperty("--radix-popper-anchor-height",`${ve}px`)}}),I&&In({element:I,padding:l}),Rc({arrowWidth:C,arrowHeight:L}),m&&Ln({strategy:"referenceHidden",...V})]}),H=h.setPlacementState;J(()=>(H(M),()=>{H(void 0)}),[M,H]);let[S,fe]=Nr(M),xe=be(g);J(()=>{B&&xe?.()},[B,xe]);let Re=D.arrow?.x,Le=D.arrow?.y,te=D.arrow?.centerOffset!==0,[Q,A]=ue.useState();return J(()=>{x&&A(window.getComputedStyle(x).zIndex)},[x]),ut("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:B?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:ut(bc,{scope:a,placedSide:S,placedAlign:fe,onArrowChange:w,arrowX:Re,arrowY:Le,shouldHideArrow:te,children:ut(G.div,{"data-side":S,"data-align":fe,...d,ref:v,style:{...d.style,animation:B?void 0:"none"}})})})});En.displayName=Fr;var Tn="PopperArrow",Sc={top:"bottom",right:"left",bottom:"top",left:"right"},Mn=ue.forwardRef(function(t,a){let{__scopePopper:r,...o}=t,s=wc(Tn,r),n=Sc[s.placedSide];return ut("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[n]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:ut(Sn,{...o,ref:a,style:{...o.style,display:"block"}})})});Mn.displayName=Tn;function kc(e){return e!==null}var Rc=e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:r,middlewareData:o}=t,n=o.arrow?.centerOffset!==0,l=n?0:e.arrowWidth,u=n?0:e.arrowHeight,[i,c]=Nr(a),f={start:"0%",center:"50%",end:"100%"}[c],m=(o.arrow?.x??0)+l/2,p=(o.arrow?.y??0)+u/2,g="",d="";return i==="bottom"?(g=n?f:`${m}px`,d=`${-u}px`):i==="top"?(g=n?f:`${m}px`,d=`${r.floating.height+u}px`):i==="right"?(g=`${-u}px`,d=n?f:`${p}px`):i==="left"&&(g=`${r.floating.width+u}px`,d=n?f:`${p}px`),{data:{x:g,y:d}}}});function Nr(e){let[t,a="center"]=e.split("-");return[t,a]}var On=Pn,Bn=Dn,_n=En,Fn=Mn;var Pa={};Ha(Pa,{Label:()=>qr,Root:()=>Ec});import*as Nn from"react";import{jsx as Ac}from"react/jsx-runtime";var Dc="Label",qr=Nn.forwardRef((e,t)=>Ac(G.label,{...e,ref:t,onMouseDown:a=>{a.target.closest("button, input, select, textarea")||(e.onMouseDown?.(a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));qr.displayName=Dc;var Ec=qr;function Ur(e,[t,a]){return Math.min(a,Math.max(t,e))}var me={};Ha(me,{Arrow:()=>pl,Content:()=>Xn,Group:()=>el,Icon:()=>Gn,Item:()=>ol,ItemIndicator:()=>ll,ItemText:()=>sl,Label:()=>al,Portal:()=>jn,Root:()=>qn,ScrollDownButton:()=>ul,ScrollUpButton:()=>il,Select:()=>qn,SelectArrow:()=>pl,SelectContent:()=>Xn,SelectGroup:()=>el,SelectIcon:()=>Gn,SelectItem:()=>ol,SelectItemIndicator:()=>ll,SelectItemText:()=>sl,SelectLabel:()=>al,SelectPortal:()=>jn,SelectScrollDownButton:()=>ul,SelectScrollUpButton:()=>il,SelectSeparator:()=>fl,SelectTrigger:()=>Hn,SelectValue:()=>Vn,SelectViewport:()=>Jn,Separator:()=>fl,Trigger:()=>Hn,Value:()=>Vn,Viewport:()=>Jn,createSelectScope:()=>Bc,unstable_BubbleInput:()=>Kr,unstable_Provider:()=>Xr,unstable_SelectBubbleInput:()=>Kr,unstable_SelectProvider:()=>Xr});import*as b from"react";import*as Wr from"react-dom";import{Fragment as jr,jsx as E,jsxs as Da}from"react/jsx-runtime";var Tc=[" ","Enter","ArrowUp","ArrowDown"],Mc=[" ","Enter"],ct="Select",[Ea,Ta,Oc]=Oo(ct),[ft,Bc]=yt(ct,[Oc,_r]),Ma=_r(),[_c,Xe]=ft(ct),[Fc,Nc]=ft(ct),qc="SelectProvider";function Xr(e){let{__scopeSelect:t,children:a,open:r,defaultOpen:o,onOpenChange:s,value:n,defaultValue:l,onValueChange:u,dir:i,name:c,autoComplete:f,disabled:m,required:p,form:g,internal_do_not_use_render:d}=e,h=Ma(t),[x,y]=b.useState(null),[v,I]=b.useState(null),[w,k]=b.useState(!1),C=No(i),[L,T]=rr({prop:r,defaultProp:o??!1,onChange:s,caller:ct}),[N,q]=rr({prop:n,defaultProp:l,onChange:u,caller:ct}),U=b.useRef(null),V=x?!!g||!!x.closest("form"):!0,[_,z]=b.useState(new Set),M=ra(),B=Array.from(_).map(fe=>fe.props.value).join(";"),D=b.useCallback(fe=>{z(xe=>new Set(xe).add(fe))},[]),H=b.useCallback(fe=>{z(xe=>{let Re=new Set(xe);return Re.delete(fe),Re})},[]),S={required:p,trigger:x,onTriggerChange:y,valueNode:v,onValueNodeChange:I,valueNodeHasChildren:w,onValueNodeHasChildrenChange:k,contentId:M,value:N,onValueChange:q,open:L,onOpenChange:T,dir:C,triggerPointerDownPosRef:U,disabled:m,name:c,autoComplete:f,form:g,nativeOptions:_,nativeSelectKey:B,isFormControl:V};return E(On,{...h,children:E(_c,{scope:t,...S,children:E(Ea.Provider,{scope:t,children:E(Fc,{scope:t,onNativeOptionAdd:D,onNativeOptionRemove:H,children:Jc(d)?d(S):a})})})})}Xr.displayName=qc;var qn=e=>{let{__scopeSelect:t,children:a,...r}=e;return E(Xr,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:o})=>Da(jr,{children:[a,o?E(Kr,{__scopeSelect:t}):null]})})};qn.displayName=ct;var Un="SelectTrigger",Hn=b.forwardRef((e,t)=>{let{__scopeSelect:a,disabled:r=!1,...o}=e,s=Ma(a),n=Xe(Un,a),l=n.disabled||r,u=Z(t,n.onTriggerChange),i=Ta(a),c=b.useRef("touch"),[f,m,p]=hl(d=>{let h=i().filter(v=>!v.disabled),x=h.find(v=>v.value===n.value),y=gl(h,d,x);y!==void 0&&n.onValueChange(y.value)}),g=d=>{l||(n.onOpenChange(!0),p()),d&&(n.triggerPointerDownPosRef.current={x:Math.round(d.pageX),y:Math.round(d.pageY)})};return E(Bn,{asChild:!0,...s,children:E(G.button,{type:"button",role:"combobox","aria-controls":n.open?n.contentId:void 0,"aria-expanded":n.open,"aria-required":n.required,"aria-autocomplete":"none",dir:n.dir,"data-state":n.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Yr(n.value)?"":void 0,...o,ref:u,onClick:ae(o.onClick,d=>{d.currentTarget.focus(),c.current!=="mouse"&&g(d)}),onPointerDown:ae(o.onPointerDown,d=>{c.current=d.pointerType;let h=d.target;h.hasPointerCapture(d.pointerId)&&h.releasePointerCapture(d.pointerId),d.button===0&&d.ctrlKey===!1&&d.pointerType==="mouse"&&(g(d),d.preventDefault())}),onKeyDown:ae(o.onKeyDown,d=>{let h=f.current!=="";!(d.ctrlKey||d.altKey||d.metaKey)&&d.key.length===1&&m(d.key),!(h&&d.key===" ")&&Tc.includes(d.key)&&(g(),d.preventDefault())})})})});Hn.displayName=Un;var zn="SelectValue",Vn=b.forwardRef((e,t)=>{let{__scopeSelect:a,className:r,style:o,children:s,placeholder:n="",...l}=e,u=Xe(zn,a),{onValueNodeHasChildrenChange:i}=u,c=s!==void 0,f=Z(t,u.onValueNodeChange);J(()=>{i(c)},[i,c]);let m=Yr(u.value);return E(G.span,{...l,asChild:m?!1:l.asChild,ref:f,style:{pointerEvents:"none"},children:E(b.Fragment,{children:m?n:s},m?"placeholder":"value")})});Vn.displayName=zn;var Uc="SelectIcon",Gn=b.forwardRef((e,t)=>{let{__scopeSelect:a,children:r,...o}=e;return E(G.span,{"aria-hidden":!0,...o,ref:t,children:r||"\u25BC"})});Gn.displayName=Uc;var Wn="SelectPortal",[Hc,zc]=ft(Wn,{forceMount:void 0}),jn=e=>{let{__scopeSelect:t,forceMount:a,...r}=e;return E(Hc,{scope:e.__scopeSelect,forceMount:a,children:E(fr,{asChild:!0,...r})})};jn.displayName=Wn;var je="SelectContent",Xn=b.forwardRef((e,t)=>{let a=zc(je,e.__scopeSelect),{forceMount:r=a.forceMount,...o}=e,s=Xe(je,e.__scopeSelect),[n,l]=b.useState();return J(()=>{l(new DocumentFragment)},[]),E(or,{present:r||s.open,children:({present:u})=>u?E(Yn,{...o,ref:t}):E($n,{...o,fragment:n})})});Xn.displayName=je;var $n=b.forwardRef((e,t)=>{let{__scopeSelect:a,children:r,fragment:o}=e;return o?Wr.createPortal(E(Kn,{scope:a,children:E(Ea.Slot,{scope:a,children:E("div",{ref:t,children:r})})}),o):null});$n.displayName="SelectContentFragment";var Te=10,[Kn,$e]=ft(je),Vc="SelectContentImpl",Gc=Ue("SelectContent.RemoveScroll"),Yn=b.forwardRef((e,t)=>{let{__scopeSelect:a}=e,{position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:n,side:l,sideOffset:u,align:i,alignOffset:c,arrowPadding:f,collisionBoundary:m,collisionPadding:p,sticky:g,hideWhenDetached:d,avoidCollisions:h,...x}=e,y=Xe(je,a),[v,I]=b.useState(null),[w,k]=b.useState(null),C=Z(t,A=>I(A)),[L,T]=b.useState(null),[N,q]=b.useState(null),U=Ta(a),[V,_]=b.useState(!1),z=b.useRef(!1);b.useEffect(()=>{if(v)return Ls(v)},[v]),es();let M=b.useCallback(A=>{let[j,...F]=U().map(K=>K.ref.current),[X]=F.slice(-1),W=document.activeElement;for(let K of A)if(K===W||(K?.scrollIntoView({block:"nearest"}),K===j&&w&&(w.scrollTop=0),K===X&&w&&(w.scrollTop=w.scrollHeight),K?.focus(),document.activeElement!==W))return},[U,w]),B=b.useCallback(()=>M([L,v]),[M,L,v]);b.useEffect(()=>{V&&B()},[V,B]);let{onOpenChange:D,triggerPointerDownPosRef:H}=y;b.useEffect(()=>{if(v){let A={x:0,y:0},j=X=>{A={x:Math.abs(Math.round(X.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(X.pageY)-(H.current?.y??0))}},F=X=>{A.x<=10&&A.y<=10?X.preventDefault():X.composedPath().includes(v)||D(!1),document.removeEventListener("pointermove",j),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",j),document.addEventListener("pointerup",F,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",F,{capture:!0})}}},[v,D,H]),b.useEffect(()=>{let A=()=>D(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[D]);let[S,fe]=hl(A=>{let j=U().filter(W=>!W.disabled),F=j.find(W=>W.ref.current===document.activeElement),X=gl(j,A,F);X&&setTimeout(()=>X.ref.current.focus())}),xe=b.useCallback((A,j,F)=>{let X=!z.current&&!F;(y.value!==void 0&&y.value===j||X)&&(T(A),X&&(z.current=!0))},[y.value]),Re=b.useCallback(()=>v?.focus(),[v]),Le=b.useCallback((A,j,F)=>{let X=!z.current&&!F;(y.value!==void 0&&y.value===j||X)&&q(A)},[y.value]),te=r==="popper"?Hr:Zn,Q=te===Hr?{side:l,sideOffset:u,align:i,alignOffset:c,arrowPadding:f,collisionBoundary:m,collisionPadding:p,sticky:g,hideWhenDetached:d,avoidCollisions:h}:{};return E(Kn,{scope:a,content:v,viewport:w,onViewportChange:k,itemRefCallback:xe,selectedItem:L,onItemLeave:Re,itemTextRefCallback:Le,focusSelectedItem:B,selectedItemText:N,position:r,isPositioned:V,searchRef:S,children:E(Sr,{as:Gc,allowPinchZoom:!0,children:E(cr,{asChild:!0,trapped:y.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:ae(o,A=>{y.trigger?.focus({preventScroll:!0}),A.preventDefault()}),children:E(lr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:n,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:E(te,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:A=>A.preventDefault(),...x,...Q,onPlaced:()=>_(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:ae(x.onKeyDown,A=>{let j=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!j&&A.key.length===1&&fe(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let X=U().filter(W=>!W.disabled).map(W=>W.ref.current);if(["ArrowUp","End"].includes(A.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){let W=A.target,K=X.indexOf(W);X=X.slice(K+1)}setTimeout(()=>M(X)),A.preventDefault()}})})})})})})});Yn.displayName=Vc;var Wc="SelectItemAlignedPosition",Zn=b.forwardRef((e,t)=>{let{__scopeSelect:a,onPlaced:r,...o}=e,s=Xe(je,a),n=$e(je,a),[l,u]=b.useState(null),[i,c]=b.useState(null),f=Z(t,C=>c(C)),m=Ta(a),p=b.useRef(!1),g=b.useRef(!0),{viewport:d,selectedItem:h,selectedItemText:x,focusSelectedItem:y}=n,v=b.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&i&&d&&h&&x){let C=s.trigger.getBoundingClientRect(),L=i.getBoundingClientRect(),T=s.valueNode.getBoundingClientRect(),N=x.getBoundingClientRect();if(s.dir!=="rtl"){let W=N.left-L.left,K=T.left-W,ve=C.left-K,le=C.width+ve,Na=Math.max(le,L.width),qa=window.innerWidth-Te,Ua=Ur(K,[Te,Math.max(Te,qa-Na)]);l.style.minWidth=le+"px",l.style.left=Ua+"px"}else{let W=L.right-N.right,K=window.innerWidth-T.right-W,ve=window.innerWidth-C.right-K,le=C.width+ve,Na=Math.max(le,L.width),qa=window.innerWidth-Te,Ua=Ur(K,[Te,Math.max(Te,qa-Na)]);l.style.minWidth=le+"px",l.style.right=Ua+"px"}let q=m(),U=window.innerHeight-Te*2,V=d.scrollHeight,_=window.getComputedStyle(i),z=parseInt(_.borderTopWidth,10),M=parseInt(_.paddingTop,10),B=parseInt(_.borderBottomWidth,10),D=parseInt(_.paddingBottom,10),H=z+M+V+D+B,S=Math.min(h.offsetHeight*5,H),fe=window.getComputedStyle(d),xe=parseInt(fe.paddingTop,10),Re=parseInt(fe.paddingBottom,10),Le=C.top+C.height/2-Te,te=U-Le,Q=h.offsetHeight/2,A=h.offsetTop+Q,j=z+M+A,F=H-j;if(j<=Le){let W=q.length>0&&h===q[q.length-1].ref.current;l.style.bottom="0px";let K=i.clientHeight-d.offsetTop-d.offsetHeight,ve=Math.max(te,Q+(W?Re:0)+K+B),le=j+ve;l.style.height=le+"px"}else{let W=q.length>0&&h===q[0].ref.current;l.style.top="0px";let ve=Math.max(Le,z+d.offsetTop+(W?xe:0)+Q)+F;l.style.height=ve+"px",d.scrollTop=j-Le+d.offsetTop}l.style.margin=`${Te}px 0`,l.style.minHeight=S+"px",l.style.maxHeight=U+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[m,s.trigger,s.valueNode,l,i,d,h,x,s.dir,r]);J(()=>v(),[v]);let[I,w]=b.useState();J(()=>{i&&w(window.getComputedStyle(i).zIndex)},[i]);let k=b.useCallback(C=>{C&&g.current===!0&&(v(),y?.(),g.current=!1)},[v,y]);return E(Xc,{scope:a,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:k,children:E("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:I},children:E(G.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Zn.displayName=Wc;var jc="SelectPopperPosition",Hr=b.forwardRef((e,t)=>{let{__scopeSelect:a,align:r="start",collisionPadding:o=Te,...s}=e,n=Ma(a);return E(_n,{...n,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Hr.displayName=jc;var[Xc,$r]=ft(je,{}),zr="SelectViewport",Jn=b.forwardRef((e,t)=>{let{__scopeSelect:a,nonce:r,...o}=e,s=$e(zr,a),n=$r(zr,a),l=Z(t,s.onViewportChange),u=b.useRef(0);return Da(jr,{children:[E("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),E(Ea.Slot,{scope:a,children:E(G.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ae(o.onScroll,i=>{let c=i.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:m}=n;if(m?.current&&f){let p=Math.abs(u.current-c.scrollTop);if(p>0){let g=window.innerHeight-Te*2,d=parseFloat(f.style.minHeight),h=parseFloat(f.style.height),x=Math.max(d,h);if(x0?I:0,f.style.justifyContent="flex-end")}}}u.current=c.scrollTop})})})]})});Jn.displayName=zr;var Qn="SelectGroup",[$c,Kc]=ft(Qn),el=b.forwardRef((e,t)=>{let{__scopeSelect:a,...r}=e,o=ra();return E($c,{scope:a,id:o,children:E(G.div,{role:"group","aria-labelledby":o,...r,ref:t})})});el.displayName=Qn;var tl="SelectLabel",al=b.forwardRef((e,t)=>{let{__scopeSelect:a,...r}=e,o=Kc(tl,a);return E(G.div,{id:o.id,...r,ref:t})});al.displayName=tl;var Aa="SelectItem",[Yc,rl]=ft(Aa),ol=b.forwardRef((e,t)=>{let{__scopeSelect:a,value:r,disabled:o=!1,textValue:s,...n}=e,l=Xe(Aa,a),u=$e(Aa,a),i=l.value===r,[c,f]=b.useState(s??""),[m,p]=b.useState(!1),g=Z(t,y=>u.itemRefCallback?.(y,r,o)),d=ra(),h=b.useRef("touch"),x=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return E(Yc,{scope:a,value:r,disabled:o,textId:d,isSelected:i,onItemTextChange:b.useCallback(y=>{f(v=>v||(y?.textContent??"").trim())},[]),children:E(Ea.ItemSlot,{scope:a,value:r,disabled:o,textValue:c,children:E(G.div,{role:"option","aria-labelledby":d,"data-highlighted":m?"":void 0,"aria-selected":i&&m,"data-state":i?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...n,ref:g,onFocus:ae(n.onFocus,()=>p(!0)),onBlur:ae(n.onBlur,()=>p(!1)),onClick:ae(n.onClick,()=>{h.current!=="mouse"&&x()}),onPointerUp:ae(n.onPointerUp,()=>{h.current==="mouse"&&x()}),onPointerDown:ae(n.onPointerDown,y=>{h.current=y.pointerType}),onPointerMove:ae(n.onPointerMove,y=>{h.current=y.pointerType,o?u.onItemLeave?.():h.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ae(n.onPointerLeave,y=>{y.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:ae(n.onKeyDown,y=>{u.searchRef?.current!==""&&y.key===" "||(Mc.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});ol.displayName=Aa;var zt="SelectItemText",sl=b.forwardRef((e,t)=>{let{__scopeSelect:a,className:r,style:o,...s}=e,n=Xe(zt,a),l=$e(zt,a),u=rl(zt,a),i=Nc(zt,a),[c,f]=b.useState(null),m=Z(t,x=>f(x),u.onItemTextChange,x=>l.itemTextRefCallback?.(x,u.value,u.disabled)),p=c?.textContent,g=b.useMemo(()=>E("option",{value:u.value,disabled:u.disabled,children:p},u.value),[u.disabled,u.value,p]),{onNativeOptionAdd:d,onNativeOptionRemove:h}=i;return J(()=>(d(g),()=>h(g)),[d,h,g]),Da(jr,{children:[E(G.span,{id:u.textId,...s,ref:m}),u.isSelected&&n.valueNode&&!n.valueNodeHasChildren?Wr.createPortal(s.children,n.valueNode):null]})});sl.displayName=zt;var nl="SelectItemIndicator",ll=b.forwardRef((e,t)=>{let{__scopeSelect:a,...r}=e;return rl(nl,a).isSelected?E(G.span,{"aria-hidden":!0,...r,ref:t}):null});ll.displayName=nl;var Vr="SelectScrollUpButton",il=b.forwardRef((e,t)=>{let a=$e(Vr,e.__scopeSelect),r=$r(Vr,e.__scopeSelect),[o,s]=b.useState(!1),n=Z(t,r.onScrollButtonChange);return J(()=>{if(a.viewport&&a.isPositioned){let u=function(){let c=i.scrollTop>0;s(c)};var l=u;let i=a.viewport;return u(),i.addEventListener("scroll",u),()=>i.removeEventListener("scroll",u)}},[a.viewport,a.isPositioned]),o?E(cl,{...e,ref:n,onAutoScroll:()=>{let{viewport:l,selectedItem:u}=a;l&&u&&(l.scrollTop=l.scrollTop-u.offsetHeight)}}):null});il.displayName=Vr;var Gr="SelectScrollDownButton",ul=b.forwardRef((e,t)=>{let a=$e(Gr,e.__scopeSelect),r=$r(Gr,e.__scopeSelect),[o,s]=b.useState(!1),n=Z(t,r.onScrollButtonChange);return J(()=>{if(a.viewport&&a.isPositioned){let u=function(){let c=i.scrollHeight-i.clientHeight,f=Math.ceil(i.scrollTop)i.removeEventListener("scroll",u)}},[a.viewport,a.isPositioned]),o?E(cl,{...e,ref:n,onAutoScroll:()=>{let{viewport:l,selectedItem:u}=a;l&&u&&(l.scrollTop=l.scrollTop+u.offsetHeight)}}):null});ul.displayName=Gr;var cl=b.forwardRef((e,t)=>{let{__scopeSelect:a,onAutoScroll:r,...o}=e,s=$e("SelectScrollButton",a),n=b.useRef(null),l=Ta(a),u=b.useCallback(()=>{n.current!==null&&(window.clearInterval(n.current),n.current=null)},[]);return b.useEffect(()=>()=>u(),[u]),J(()=>{l().find(c=>c.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),E(G.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ae(o.onPointerDown,()=>{n.current===null&&(n.current=window.setInterval(r,50))}),onPointerMove:ae(o.onPointerMove,()=>{s.onItemLeave?.(),n.current===null&&(n.current=window.setInterval(r,50))}),onPointerLeave:ae(o.onPointerLeave,()=>{u()})})}),Zc="SelectSeparator",fl=b.forwardRef((e,t)=>{let{__scopeSelect:a,...r}=e;return E(G.div,{"aria-hidden":!0,...r,ref:t})});fl.displayName=Zc;var dl="SelectArrow",pl=b.forwardRef((e,t)=>{let{__scopeSelect:a,...r}=e,o=Ma(a);return $e(dl,a).position==="popper"?E(Fn,{...o,...r,ref:t}):null});pl.displayName=dl;var ml="SelectBubbleInput",Kr=b.forwardRef(({__scopeSelect:e,...t},a)=>{let r=Xe(ml,e),{value:o,onValueChange:s,required:n,disabled:l,name:u,autoComplete:i,form:c}=r,{nativeOptions:f,nativeSelectKey:m}=r,p=b.useRef(null),g=Z(a,p),d=o??"",h=Is(d);return b.useEffect(()=>{let x=p.current;if(!x)return;let y=window.HTMLSelectElement.prototype,I=Object.getOwnPropertyDescriptor(y,"value").set;if(h!==d&&I){let w=new Event("change",{bubbles:!0});I.call(x,d),x.dispatchEvent(w)}},[h,d]),Da(G.select,{"aria-hidden":!0,required:n,tabIndex:-1,name:u,autoComplete:i,disabled:l,form:c,onChange:x=>s(x.target.value),...t,style:{...tr,...t.style},ref:g,defaultValue:d,children:[Yr(o)?E("option",{value:""}):null,Array.from(f)]},m)});Kr.displayName=ml;function Jc(e){return typeof e=="function"}function Yr(e){return e===""||e===void 0}function hl(e){let t=be(e),a=b.useRef(""),r=b.useRef(0),o=b.useCallback(n=>{let l=a.current+n;t(l),function u(i){a.current=i,window.clearTimeout(r.current),i!==""&&(r.current=window.setTimeout(()=>u(""),1e3))}(l)},[t]),s=b.useCallback(()=>{a.current="",window.clearTimeout(r.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(r.current),[]),[a,o,s]}function gl(e,t,a){let o=t.length>1&&Array.from(t).every(i=>i===t[0])?t[0]:t,s=a?e.indexOf(a):-1,n=Qc(e,Math.max(s,0));o.length===1&&(n=n.filter(i=>i!==a));let u=n.find(i=>i.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==a?u:void 0}function Qc(e,t){return e.map((a,r)=>e[(t+r)%e.length])}var ef=(e,t)=>{let a=new Array(e.length+t.length);for(let r=0;r({classGroupId:e,validator:t}),bl=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),_a="-",yl=[],af="arbitrary..",rf=e=>{let t=sf(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:n=>{if(n.startsWith("[")&&n.endsWith("]"))return of(n);let l=n.split(_a),u=l[0]===""&&l.length>1?1:0;return wl(l,u,t)},getConflictingClassGroupIds:(n,l)=>{if(l){let u=r[n],i=a[n];return u?i?ef(i,u):u:i||yl}return a[n]||yl}}},wl=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let o=e[t],s=a.nextPart.get(o);if(s){let i=wl(e,t+1,s);if(i)return i}let n=a.validators;if(n===null)return;let l=t===0?e.join(_a):e.slice(t).join(_a),u=n.length;for(let i=0;ie.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),r=t.slice(0,a);return r?af+r:void 0})(),sf=e=>{let{theme:t,classGroups:a}=e;return nf(a,t)},nf=(e,t)=>{let a=bl();for(let r in e){let o=e[r];Qr(o,a,r,t)}return a},Qr=(e,t,a,r)=>{let o=e.length;for(let s=0;s{if(typeof e=="string"){uf(e,t,a);return}if(typeof e=="function"){cf(e,t,a,r);return}ff(e,t,a,r)},uf=(e,t,a)=>{let r=e===""?t:Sl(t,e);r.classGroupId=a},cf=(e,t,a,r)=>{if(df(e)){Qr(e(r),t,a,r);return}t.validators===null&&(t.validators=[]),t.validators.push(tf(a,e))},ff=(e,t,a,r)=>{let o=Object.entries(e),s=o.length;for(let n=0;n{let a=e,r=t.split(_a),o=r.length;for(let s=0;s"isThemeGetter"in e&&e.isThemeGetter===!0,pf=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),r=Object.create(null),o=(s,n)=>{a[s]=n,t++,t>e&&(t=0,r=a,a=Object.create(null))};return{get(s){let n=a[s];if(n!==void 0)return n;if((n=r[s])!==void 0)return o(s,n),n},set(s,n){s in a?a[s]=n:o(s,n)}}},Jr="!",xl=":",mf=[],vl=(e,t,a,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:r,isExternal:o}),hf=e=>{let{prefix:t,experimentalParseClassName:a}=e,r=o=>{let s=[],n=0,l=0,u=0,i,c=o.length;for(let d=0;du?i-u:void 0;return vl(s,p,m,g)};if(t){let o=t+xl,s=r;r=n=>n.startsWith(o)?s(n.slice(o.length)):vl(mf,!1,n,void 0,!0)}if(a){let o=r;r=s=>a({className:s,parseClassName:o})}return r},gf=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,r)=>{t.set(a,1e6+r)}),a=>{let r=[],o=[];for(let s=0;s0&&(o.sort(),r.push(...o),o=[]),r.push(n)):o.push(n)}return o.length>0&&(o.sort(),r.push(...o)),r}},yf=e=>({cache:pf(e.cacheSize),parseClassName:hf(e),sortModifiers:gf(e),postfixLookupClassGroupIds:xf(e),...rf(e)}),xf=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let r=0;r{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:n}=t,l=[],u=e.trim().split(vf),i="";for(let c=u.length-1;c>=0;c-=1){let f=u[c],{isExternal:m,modifiers:p,hasImportantModifier:g,baseClassName:d,maybePostfixModifierPosition:h}=a(f);if(m){i=f+(i.length>0?" "+i:i);continue}let x=!!h,y;if(x){let C=d.substring(0,h);y=r(C);let L=y&&n[y]?r(d):void 0;L&&L!==y&&(y=L,x=!1)}else y=r(d);if(!y){if(!x){i=f+(i.length>0?" "+i:i);continue}if(y=r(d),!y){i=f+(i.length>0?" "+i:i);continue}x=!1}let v=p.length===0?"":p.length===1?p[0]:s(p).join(":"),I=g?v+Jr:v,w=I+y;if(l.indexOf(w)>-1)continue;l.push(w);let k=o(y,x);for(let C=0;C0?" "+i:i)}return i},If=(...e)=>{let t=0,a,r,o="";for(;t{if(typeof e=="string")return e;let t,a="";for(let r=0;r{let a,r,o,s,n=u=>{let i=t.reduce((c,f)=>f(c),e());return a=yf(i),r=a.cache.get,o=a.cache.set,s=l,l(u)},l=u=>{let i=r(u);if(i)return i;let c=Lf(u,a);return o(u,c),c};return s=n,(...u)=>s(If(...u))},bf=[],oe=e=>{let t=a=>a[e]||bf;return t.isThemeGetter=!0,t},Rl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wf=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Sf=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kf=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Rf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Pf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Af=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ke=e=>wf.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),Ne=e=>!!e&&Number.isInteger(Number(e)),Zr=e=>e.endsWith("%")&&O(e.slice(0,-1)),Ve=e=>Sf.test(e),Al=()=>!0,Df=e=>kf.test(e)&&!Rf.test(e),eo=()=>!1,Ef=e=>Pf.test(e),Tf=e=>Af.test(e),Mf=e=>!R(e)&&!P(e),Of=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Bf=e=>Ye(e,Tl,eo),R=e=>Rl.test(e),dt=e=>Ye(e,Ml,Df),Ll=e=>Ye(e,Vf,O),_f=e=>Ye(e,Bl,Al),Ff=e=>Ye(e,Ol,eo),Il=e=>Ye(e,Dl,eo),Nf=e=>Ye(e,El,Tf),Oa=e=>Ye(e,_l,Ef),P=e=>Pl.test(e),Vt=e=>pt(e,Ml),qf=e=>pt(e,Ol),Cl=e=>pt(e,Dl),Uf=e=>pt(e,Tl),Hf=e=>pt(e,El),Ba=e=>pt(e,_l,!0),zf=e=>pt(e,Bl,!0),Ye=(e,t,a)=>{let r=Rl.exec(e);return r?r[1]?t(r[1]):a(r[2]):!1},pt=(e,t,a=!1)=>{let r=Pl.exec(e);return r?r[1]?t(r[1]):a:!1},Dl=e=>e==="position"||e==="percentage",El=e=>e==="image"||e==="url",Tl=e=>e==="length"||e==="size"||e==="bg-size",Ml=e=>e==="length",Vf=e=>e==="number",Ol=e=>e==="family-name",Bl=e=>e==="number"||e==="weight",_l=e=>e==="shadow";var Gf=()=>{let e=oe("color"),t=oe("font"),a=oe("text"),r=oe("font-weight"),o=oe("tracking"),s=oe("leading"),n=oe("breakpoint"),l=oe("container"),u=oe("spacing"),i=oe("radius"),c=oe("shadow"),f=oe("inset-shadow"),m=oe("text-shadow"),p=oe("drop-shadow"),g=oe("blur"),d=oe("perspective"),h=oe("aspect"),x=oe("ease"),y=oe("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...I(),P,R],k=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],L=()=>[P,R,u],T=()=>[Ke,"full","auto",...L()],N=()=>[Ne,"none","subgrid",P,R],q=()=>["auto",{span:["full",Ne,P,R]},Ne,P,R],U=()=>[Ne,"auto",P,R],V=()=>["auto","min","max","fr",P,R],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...L()],B=()=>[Ke,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],D=()=>[Ke,"screen","full","dvw","lvw","svw","min","max","fit",...L()],H=()=>[Ke,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],S=()=>[e,P,R],fe=()=>[...I(),Cl,Il,{position:[P,R]}],xe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Re=()=>["auto","cover","contain",Uf,Bf,{size:[P,R]}],Le=()=>[Zr,Vt,dt],te=()=>["","none","full",i,P,R],Q=()=>["",O,Vt,dt],A=()=>["solid","dashed","dotted","double"],j=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>[O,Zr,Cl,Il],X=()=>["","none",g,P,R],W=()=>["none",O,P,R],K=()=>["none",O,P,R],ve=()=>[O,P,R],le=()=>[Ke,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ve],breakpoint:[Ve],color:[Al],container:[Ve],"drop-shadow":[Ve],ease:["in","out","in-out"],font:[Mf],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ve],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ve],shadow:[Ve],spacing:["px",O],text:[Ve],"text-shadow":[Ve],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ke,R,P,h]}],container:["container"],"container-type":[{"@container":["","normal","size",P,R]}],"container-named":[Of],columns:[{columns:[O,R,P,l]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[Ne,"auto",P,R]}],basis:[{basis:[Ke,"full","auto",l,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,Ke,"auto","initial","none",R]}],grow:[{grow:["",O,P,R]}],shrink:[{shrink:["",O,P,R]}],order:[{order:[Ne,"first","last","none",P,R]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...D()]}],"min-inline-size":[{"min-inline":["auto",...D()]}],"max-inline-size":[{"max-inline":["none",...D()]}],"block-size":[{block:["auto",...H()]}],"min-block-size":[{"min-block":["auto",...H()]}],"max-block-size":[{"max-block":["none",...H()]}],w:[{w:[l,"screen",...B()]}],"min-w":[{"min-w":[l,"screen","none",...B()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[n]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",a,Vt,dt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,zf,_f]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zr,R]}],"font-family":[{font:[qf,Ff,t]}],"font-features":[{"font-features":[R]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,P,R]}],"line-clamp":[{"line-clamp":[O,"none",P,Ll]}],leading:[{leading:[s,...L()]}],"list-image":[{"list-image":["none",P,R]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",P,dt]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[O,"auto",P,R]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"tab-size":[{tab:[Ne,P,R]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,R]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P,R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:xe()}],"bg-size":[{bg:Re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ne,P,R],radial:["",P,R],conic:[Ne,P,R]},Hf,Nf]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:Le()}],"gradient-via-pos":[{via:Le()}],"gradient-to-pos":[{to:Le()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...A(),"hidden","none"]}],"divide-style":[{divide:[...A(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-bs":[{"border-bs":S()}],"border-color-be":[{"border-be":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...A(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,P,R]}],"outline-w":[{outline:["",O,Vt,dt]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",c,Ba,Oa]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",f,Ba,Oa]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[O,dt]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",m,Ba,Oa]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[O,P,R]}],"mix-blend":[{"mix-blend":[...j(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":j()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[P,R]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:xe()}],"mask-size":[{mask:Re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,R]}],filter:[{filter:["","none",P,R]}],blur:[{blur:X()}],brightness:[{brightness:[O,P,R]}],contrast:[{contrast:[O,P,R]}],"drop-shadow":[{"drop-shadow":["","none",p,Ba,Oa]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",O,P,R]}],"hue-rotate":[{"hue-rotate":[O,P,R]}],invert:[{invert:["",O,P,R]}],saturate:[{saturate:[O,P,R]}],sepia:[{sepia:["",O,P,R]}],"backdrop-filter":[{"backdrop-filter":["","none",P,R]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[O,P,R]}],"backdrop-contrast":[{"backdrop-contrast":[O,P,R]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,P,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,P,R]}],"backdrop-invert":[{"backdrop-invert":["",O,P,R]}],"backdrop-opacity":[{"backdrop-opacity":[O,P,R]}],"backdrop-saturate":[{"backdrop-saturate":[O,P,R]}],"backdrop-sepia":[{"backdrop-sepia":["",O,P,R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,R]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",P,R]}],ease:[{ease:["linear","initial",x,P,R]}],delay:[{delay:[O,P,R]}],animate:[{animate:["none",y,P,R]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[d,P,R]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:K()}],"scale-x":[{"scale-x":K()}],"scale-y":[{"scale-y":K()}],"scale-z":[{"scale-z":K()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[P,R,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],zoom:[{zoom:[Ne,P,R]}],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P,R]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":S()}],"scrollbar-track-color":[{"scrollbar-track":S()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P,R]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[O,Vt,dt,Ll]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Fl=Cf(Gf);function $(...e){return Fl(Yt(e))}import{jsx as jf}from"react/jsx-runtime";var Wf=Zt("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function to({className:e,variant:t="default",size:a="default",asChild:r=!1,...o}){let s=r?Qt.Root:"button";return jf(s,{"data-slot":"button","data-variant":t,"data-size":a,className:$(Wf({variant:t,size:a,className:e})),...o})}import{jsx as kt}from"react/jsx-runtime";function Nl({className:e,...t}){return kt("div",{"data-slot":"card",className:$("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...t})}function ql({className:e,...t}){return kt("div",{"data-slot":"card-header",className:$("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Ul({className:e,...t}){return kt("div",{"data-slot":"card-title",className:$("leading-none font-semibold",e),...t})}function Hl({className:e,...t}){return kt("div",{"data-slot":"card-description",className:$("text-sm text-muted-foreground",e),...t})}function zl({className:e,...t}){return kt("div",{"data-slot":"card-content",className:$("px-6",e),...t})}function Vl({className:e,...t}){return kt("div",{"data-slot":"card-footer",className:$("flex items-center px-6 [.border-t]:pt-6",e),...t})}import{useMemo as $f}from"react";import{jsx as Xf}from"react/jsx-runtime";function Gl({className:e,...t}){return Xf(Pa.Root,{"data-slot":"label",className:$("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}import{jsx as Wh}from"react/jsx-runtime";import{jsx as Ze,jsxs as eg}from"react/jsx-runtime";function Wl({className:e,...t}){return Ze("div",{"data-slot":"field-group",className:$("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...t})}var Kf=Zt("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function ao({className:e,orientation:t="vertical",...a}){return Ze("div",{role:"group","data-slot":"field","data-orientation":t,className:$(Kf({orientation:t}),e),...a})}function jl({className:e,...t}){return Ze("div",{"data-slot":"field-content",className:$("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",e),...t})}function Xl({className:e,...t}){return Ze(Gl,{"data-slot":"field-label",className:$("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 dark:has-data-[state=checked]:bg-primary/10",e),...t})}function $l({className:e,...t}){return Ze("p",{"data-slot":"field-description",className:$("text-sm leading-normal font-normal text-muted-foreground group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...t})}function Kl({className:e,children:t,errors:a,...r}){let o=$f(()=>{if(t)return t;if(!a?.length)return null;let s=[...new Map(a.map(n=>[n?.message,n])).values()];return s?.length==1?s[0]?.message:Ze("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:s.map((n,l)=>n?.message&&Ze("li",{children:n.message},l))})},[t,a]);return o?Ze("div",{role:"alert","data-slot":"field-error",className:$("text-sm font-normal text-destructive",e),...r,children:o}):null}import{forwardRef as Zf,createElement as Jf}from"react";var Yl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fa=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim();import{forwardRef as Yf,createElement as Jl}from"react";var Zl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Ql=Yf(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:n,...l},u)=>Jl("svg",{ref:u,...Zl,width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:Fa("lucide",o),...l},[...n.map(([i,c])=>Jl(i,c)),...Array.isArray(s)?s:[s]]));var Rt=(e,t)=>{let a=Zf(({className:r,...o},s)=>Jf(Ql,{ref:s,iconNode:t,className:Fa(`lucide-${Yl(e)}`,r),...o}));return a.displayName=`${e}`,a};var Gt=Rt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var Pt=Rt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var Wt=Rt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);import{jsx as ce,jsxs as oo}from"react/jsx-runtime";function ei({...e}){return ce(me.Root,{"data-slot":"select",...e})}function ti({...e}){return ce(me.Value,{"data-slot":"select-value",...e})}function ai({className:e,size:t="default",children:a,...r}){return oo(me.Trigger,{"data-slot":"select-trigger","data-size":t,className:$("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...r,children:[a,ce(me.Icon,{asChild:!0,children:ce(Pt,{className:"size-4 opacity-50"})})]})}function ri({className:e,children:t,position:a="item-aligned",align:r="center",...o}){return ce(me.Portal,{children:oo(me.Content,{"data-slot":"select-content",className:$("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,align:r,...o,children:[ce(Qf,{}),ce(me.Viewport,{className:$("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),ce(ed,{})]})})}function ro({className:e,children:t,...a}){return oo(me.Item,{"data-slot":"select-item",className:$("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[ce("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:ce(me.ItemIndicator,{children:ce(Gt,{className:"size-4"})})}),ce(me.ItemText,{children:t})]})}function oi({className:e,...t}){return ce(me.Separator,{"data-slot":"select-separator",className:$("pointer-events-none -mx-1 my-1 h-px bg-border",e),...t})}function Qf({className:e,...t}){return ce(me.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:$("flex cursor-default items-center justify-center py-1",e),...t,children:ce(Wt,{className:"size-4"})})}function ed({className:e,...t}){return ce(me.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:$("flex cursor-default items-center justify-center py-1",e),...t,children:ce(Pt,{className:"size-4"})})}import{jsx as se,jsxs as mt}from"react/jsx-runtime";var td=[{label:"English",value:"en"},{label:"Spanish",value:"es"},{label:"French",value:"fr"},{label:"German",value:"de"},{label:"Italian",value:"it"},{label:"Chinese",value:"zh"},{label:"Japanese",value:"ja"}],ad=ja({language:lo(Xa(),Ga(1,"Please select your spoken language."),Va(e=>e!=="auto","Auto-detection is not allowed. Please select a specific language."))});function rd(){let e=xo({schema:ad,initialInput:{language:""}});return mt(Nl,{className:"w-full sm:max-w-lg",children:[mt(ql,{children:[se(Ul,{children:"Language Preferences"}),se(Hl,{children:"Select your preferred spoken language."})]}),se(zl,{children:se(Lo,{of:e,id:"form-formisch-select",onSubmit:a=>{Io("You submitted the following values:",{description:se("pre",{className:"mt-2 w-[320px] overflow-x-auto rounded-md bg-code p-4 text-code-foreground",children:se("code",{children:JSON.stringify(a,null,2)})}),position:"bottom-right",classNames:{content:"flex flex-col gap-2"},style:{"--border-radius":"calc(var(--radius) + 4px)"}})},children:se(Wl,{children:se(vo,{of:e,path:["language"],children:a=>mt(ao,{orientation:"responsive","data-invalid":a.errors!==null,children:[mt(jl,{children:[se(Xl,{htmlFor:"form-formisch-select-language",children:"Spoken Language"}),se($l,{children:"For best results, select the language you speak."}),a.errors&&se(Kl,{errors:a.errors.map(r=>({message:r}))})]}),mt(ei,{value:a.input??"",onValueChange:r=>a.onChange(r),children:[se(ai,{id:"form-formisch-select-language","aria-invalid":a.errors!==null,className:"min-w-[120px]",children:se(ti,{placeholder:"Select"})}),mt(ri,{position:"item-aligned",children:[se(ro,{value:"auto",children:"Auto"}),se(oi,{}),td.map(r=>se(ro,{value:r.value,children:r.label},r.value))]})]})]})})})})}),se(Vl,{children:mt(ao,{orientation:"horizontal",children:[se(to,{type:"button",variant:"outline",onClick:()=>go(e),children:"Reset"}),se(to,{type:"submit",form:"form-formisch-select",children:"Save"})]})})]})}export{rd as default}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/check.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/chevron-down.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/chevron-up.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/8bf6279a23ab7fbf295564fa8479bad37bb9ff2a7a7e55ae3160854c20dbdead b/b/8bf6279a23ab7fbf295564fa8479bad37bb9ff2a7a7e55ae3160854c20dbdead new file mode 100644 index 0000000000000000000000000000000000000000..a6cd151dbdd9c736bf6dfdd9d6f952611367bd52 Binary files /dev/null and b/b/8bf6279a23ab7fbf295564fa8479bad37bb9ff2a7a7e55ae3160854c20dbdead differ diff --git a/b/8c0fd5b1303d2b7dd931ea91a1b6ee00c05ec5e97924bbe0216e579940acab8a b/b/8c0fd5b1303d2b7dd931ea91a1b6ee00c05ec5e97924bbe0216e579940acab8a new file mode 100644 index 0000000000000000000000000000000000000000..73f52a4cf5b019dba49ad34c2f4571d2c0746551 --- /dev/null +++ b/b/8c0fd5b1303d2b7dd931ea91a1b6ee00c05ec5e97924bbe0216e579940acab8a @@ -0,0 +1,236 @@ +"use client" + +import { + useEffect, + useMemo, + useRef, + useState, + type ComponentType, + type RefAttributes, + type RefObject, +} from "react" +import { + motion, + useInView, + type DOMMotionComponents, + type HTMLMotionProps, + type MotionProps, +} from "motion/react" + +import { cn } from "@/lib/utils" + +const motionElements = { + article: motion.article, + div: motion.div, + h1: motion.h1, + h2: motion.h2, + h3: motion.h3, + h4: motion.h4, + h5: motion.h5, + h6: motion.h6, + li: motion.li, + p: motion.p, + section: motion.section, + span: motion.span, +} as const + +type MotionElementType = Extract< + keyof DOMMotionComponents, + keyof typeof motionElements +> +type TypingAnimationMotionComponent = ComponentType< + Omit, "ref"> & RefAttributes +> + +interface TypingAnimationProps extends Omit { + children?: string + words?: string[] + className?: string + duration?: number + typeSpeed?: number + deleteSpeed?: number + delay?: number + pauseDelay?: number + loop?: boolean + as?: MotionElementType + startOnView?: boolean + showCursor?: boolean + blinkCursor?: boolean + cursorStyle?: "line" | "block" | "underscore" +} + +export function TypingAnimation({ + children, + words, + className, + duration = 100, + typeSpeed, + deleteSpeed, + delay = 0, + pauseDelay = 1000, + loop = false, + as: Component = "span", + startOnView = true, + showCursor = true, + blinkCursor = true, + cursorStyle = "line", + ...props +}: TypingAnimationProps) { + const MotionComponent = motionElements[ + Component + ] as TypingAnimationMotionComponent + + const [displayedText, setDisplayedText] = useState("") + const [currentWordIndex, setCurrentWordIndex] = useState(0) + const [currentCharIndex, setCurrentCharIndex] = useState(0) + const [phase, setPhase] = useState<"typing" | "pause" | "deleting">("typing") + const elementRef = useRef(null) + const isInView = useInView(elementRef as RefObject, { + amount: 0.3, + once: true, + }) + + const wordsToAnimate = useMemo( + () => words ?? (children ? [children] : []), + [words, children] + ) + const hasMultipleWords = wordsToAnimate.length > 1 + + const typingSpeed = typeSpeed ?? duration + const deletingSpeed = deleteSpeed ?? typingSpeed / 2 + + const shouldStart = startOnView ? isInView : true + const animationSourceKey = useMemo( + () => (words ? words.join("\u0000") : (children ?? "")), + [words, children] + ) + + useEffect(() => { + setDisplayedText("") + setCurrentWordIndex(0) + setCurrentCharIndex(0) + setPhase("typing") + }, [animationSourceKey]) + + useEffect(() => { + let timeout: ReturnType | null = null + + if (shouldStart && wordsToAnimate.length > 0) { + const timeoutDelay = + delay > 0 && displayedText === "" + ? delay + : phase === "typing" + ? typingSpeed + : phase === "deleting" + ? deletingSpeed + : pauseDelay + + timeout = setTimeout(() => { + const currentWord = wordsToAnimate[currentWordIndex] || "" + const graphemes = Array.from(currentWord) + + switch (phase) { + case "typing": + if (currentCharIndex < graphemes.length) { + setDisplayedText( + graphemes.slice(0, currentCharIndex + 1).join("") + ) + setCurrentCharIndex(currentCharIndex + 1) + } else { + if (hasMultipleWords || loop) { + const isLastWord = + currentWordIndex === wordsToAnimate.length - 1 + if (!isLastWord || loop) { + setPhase("pause") + } + } + } + break + + case "pause": + setPhase("deleting") + break + + case "deleting": + if (currentCharIndex > 0) { + setDisplayedText( + graphemes.slice(0, currentCharIndex - 1).join("") + ) + setCurrentCharIndex(currentCharIndex - 1) + } else { + const nextIndex = (currentWordIndex + 1) % wordsToAnimate.length + setCurrentWordIndex(nextIndex) + setPhase("typing") + } + break + } + }, timeoutDelay) + } + + return () => { + if (timeout !== null) { + clearTimeout(timeout) + } + } + }, [ + shouldStart, + phase, + currentCharIndex, + currentWordIndex, + displayedText, + wordsToAnimate, + hasMultipleWords, + loop, + typingSpeed, + deletingSpeed, + pauseDelay, + delay, + ]) + + const currentWordGraphemes = Array.from( + wordsToAnimate[currentWordIndex] || "" + ) + const isComplete = + !loop && + currentWordIndex === wordsToAnimate.length - 1 && + currentCharIndex >= currentWordGraphemes.length && + phase !== "deleting" + + const shouldShowCursor = + showCursor && + !isComplete && + (hasMultipleWords || loop || currentCharIndex < currentWordGraphemes.length) + + const getCursorChar = () => { + switch (cursorStyle) { + case "block": + return "▌" + case "underscore": + return "_" + case "line": + default: + return "|" + } + } + + return ( + + {displayedText} + {shouldShowCursor && ( + + {getCursorChar()} + + )} + + ) +} diff --git a/b/8c241e9134b0f6c43ec29a971ca155f37a6c9984f0f01e454315d06428bd9749 b/b/8c241e9134b0f6c43ec29a971ca155f37a6c9984f0f01e454315d06428bd9749 new file mode 100644 index 0000000000000000000000000000000000000000..cf61330566321b80ffcd8ca381b962fb00a770cf --- /dev/null +++ b/b/8c241e9134b0f6c43ec29a971ca155f37a6c9984f0f01e454315d06428bd9749 @@ -0,0 +1,43 @@ +// m14c.mjs — LOCALITY across tokens (honest). In a greedy generate loop, does caching the working set +// recover throughput? For a DENSE model every token touches every weight once → cross-token locality +// helps only to the extent the LRU budget holds the model. Measure per-token streamed bytes + time at a +// BOUNDED budget vs a budget that HOLDS the model. Output byte-identical throughout. (MoE would let a +// small budget capture the frequently-routed experts — a far better curve; noted, not measured here.) +import { readFileSync, writeFileSync, mkdirSync, rmSync } from "node:fs"; +import { performance } from "node:perf_hooks"; +import { forgeGguf } from "./gguf-forge.mjs"; +import { synthesizeGraph } from "./gguf-forge-graph.mjs"; +import { forward, blockOf } from "./gguf-forge-exec.mjs"; +import { sha256hex } from "../../../../holo-os/system/os/usr/lib/holo/holo-uor.mjs"; + +const MODEL = ".models/qwen2.5-0.5b-instruct-q4_k_m.gguf"; +const SH = "C:/Users/pavel/AppData/Local/Temp/claude/C--Users-pavel-Desktop-HOLOGRAM/9be01320-de05-4b56-a1ab-35f38d512e16/scratchpad/_m14c"; +const MiB = 1024 * 1024, hexOf = (k) => String(k).split(":").pop(); +const f = forgeGguf(new Uint8Array(readFileSync(MODEL))); const graph = synthesizeGraph(f.plan); +const modelMiB = [...f.blocks.values()].reduce((a, b) => a + b.byteLength, 0) / MiB; +const rowBytesOf = (t) => t.typeName === "F32" ? t.dims[0] * 4 : t.typeName === "F16" ? t.dims[0] * 2 : (() => { const [be, bb] = blockOf(t.type); return (t.dims[0] / be) * bb; })(); + +rmSync(SH, { recursive: true, force: true }); mkdirSync(SH, { recursive: true }); +const opts_tiles = {}; +for (const t of f.plan.tensors) { const whole = f.blocks.get(hexOf(t.kappa)); + if (t.nbytes > 8 * MiB && t.dims.length > 1) { const rb = rowBytesOf(t), N = t.dims[1], TR = Math.max(1, Math.floor(4 * MiB / rb)); const tiles = []; + for (let n0 = 0; n0 < N; n0 += TR) { const n1 = Math.min(n0 + TR, N); const b = whole.subarray(n0 * rb, n1 * rb); const hx = sha256hex(b); writeFileSync(`${SH}/${hx}.bin`, Buffer.from(b)); tiles.push({ kappa: "sha256:" + hx, n0, n1 }); } + opts_tiles[t.kappa] = tiles; } else { const hx = hexOf(t.kappa); writeFileSync(`${SH}/${hx}.bin`, Buffer.from(whole)); } } + +function streamStore(budgetBytes) { const lru = new Map(); let resident = 0, streamedTok = 0, peak = 0; + return { get: (hex) => { if (lru.has(hex)) { const b = lru.get(hex); lru.delete(hex); lru.set(hex, b); return b; } + const b = new Uint8Array(readFileSync(`${SH}/${hex}.bin`)); streamedTok += b.byteLength; if (sha256hex(b) !== hex) throw new Error("L5"); + lru.set(hex, b); resident += b.byteLength; while (resident > budgetBytes && lru.size > 1) { const [k, v] = lru.entries().next().value; lru.delete(k); resident -= v.byteLength; } if (resident > peak) peak = resident; return b; }, + tokReset: () => { const s = streamedTok; streamedTok = 0; return s; }, peakMiB: () => peak / MiB }; } +const load = (st, k) => st.get(hexOf(k)); +const argmax = (l) => { let a = 0; for (let i = 1; i < l.length; i++) if (l[i] > l[a]) a = i; return a; }; +const SEED = [785, 6722, 374, 264], NTOK = 3; + +for (const budgetMiB of [12, 512]) { // 12 = bounded (< model); 512 = holds the whole 463 MiB model + const ss = streamStore(budgetMiB * MiB); const toks = SEED.slice(); const rows = []; + for (let i = 0; i < NTOK; i++) { const t0 = performance.now(); const lg = forward(f.plan, graph, ss, toks, { load, tiles: opts_tiles }); const ms = performance.now() - t0; toks.push(argmax(lg)); rows.push({ streamed: ss.tokReset() / MiB, ms }); } + console.log(`\nbudget ${budgetMiB} MiB (${budgetMiB >= modelMiB ? "holds the model" : "bounded < model"}) · peak resident ${ss.peakMiB().toFixed(0)} MiB`); + rows.forEach((r, i) => { const lbl = i === 0 ? "(cold)" : (r.streamed < 5 ? "(WARM: working set cached, ~0 re-stream)" : "(re-streams working set)"); console.log(` token ${i + 1}: streamed ${r.streamed.toFixed(0).padStart(4)} MiB . ${r.ms.toFixed(0).padStart(6)} ms ${lbl}`); }); +} +console.log(`\n14c HONEST: DENSE model → cross-token locality helps ONLY as the budget holds the model: a budget ≥ model caches the working set so tokens 2+ re-stream ~0 (resident speed); a bounded budget re-streams the working set every token (I/O-bound). It's a smooth RAM↔I/O curve, NOT a free lunch. MoE is where a SMALL budget wins big (cache the hot experts; cold ones stream) — the real lever for huge models. Prewarm/overlap hides latency but not bytes. Full fidelity, byte-identical throughout.`); +rmSync(SH, { recursive: true, force: true }); diff --git a/b/8c294eceba9b82b79d8f8bf34559a7f1c330b8d36667234a662680f434416ffe b/b/8c294eceba9b82b79d8f8bf34559a7f1c330b8d36667234a662680f434416ffe new file mode 100644 index 0000000000000000000000000000000000000000..3d5fb52fc57d0df3120e617ad4b996674afb0c35 --- /dev/null +++ b/b/8c294eceba9b82b79d8f8bf34559a7f1c330b8d36667234a662680f434416ffe @@ -0,0 +1 @@ +export default {".loading":{"@layer daisyui.l1.l2.l3":{"pointer-events":"none","display":"inline-block","aspect-ratio":"1 / 1","background-color":"currentcolor","vertical-align":"middle","width":"calc(var(--size-selector, 0.25rem) * 6)","mask-size":"100%","mask-repeat":"no-repeat","mask-position":"center","mask-image":"url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\")"}},".loading-spinner":{"@layer daisyui.l1.l2":{"mask-image":"url(\"data:image/svg+xml,%3Csvg width='24' height='24' stroke='black' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform-origin='center'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='2s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dasharray' values='0,150;42,150;42,150' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-dashoffset' values='0;-16;-59' keyTimes='0;0.475;1' dur='1.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\")"}},".loading-dots":{"@layer daisyui.l1.l2":{"mask-image":"url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4' cy='12' r='3'%3E%3Canimate attributeName='cy' values='12;6;12;12' keyTimes='0;0.286;0.571;1' dur='1.05s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1'/%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='3'%3E%3Canimate attributeName='cy' values='12;6;12;12' keyTimes='0;0.286;0.571;1' dur='1.05s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1' begin='0.1s'/%3E%3C/circle%3E%3Ccircle cx='20' cy='12' r='3'%3E%3Canimate attributeName='cy' values='12;6;12;12' keyTimes='0;0.286;0.571;1' dur='1.05s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1' begin='0.2s'/%3E%3C/circle%3E%3C/svg%3E\")"}},".loading-ring":{"@layer daisyui.l1.l2":{"mask-image":"url(\"data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg' stroke='white'%3E%3Cg fill='none' fill-rule='evenodd' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1;20' calcMode='spline' keyTimes='0;1' keySplines='0.165,0.84,0.44,1' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1;0' calcMode='spline' keyTimes='0;1' keySplines='0.3,0.61,0.355,1' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1;20' calcMode='spline' keyTimes='0;1' keySplines='0.165,0.84,0.44,1' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1;0' calcMode='spline' keyTimes='0;1' keySplines='0.3,0.61,0.355,1' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E\")"}},".loading-ball":{"@layer daisyui.l1.l2":{"mask-image":"url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='12' cy='5' rx='4' ry='4'%3E%3Canimate attributeName='cy' values='5;20;20.5;20;5' keyTimes='0;0.469;0.5;0.531;1' dur='.8s' repeatCount='indefinite' keySplines='.33,0,.66,.33;.33,.66,.66,1'/%3E%3Canimate attributeName='rx' values='4;4;4.8;4;4' keyTimes='0;0.469;0.5;0.531;1' dur='.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='ry' values='4;4;3;4;4' keyTimes='0;0.469;0.5;0.531;1' dur='.8s' repeatCount='indefinite'/%3E%3C/ellipse%3E%3C/svg%3E\")"}},".loading-bars":{"@layer daisyui.l1.l2":{"mask-image":"url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='1' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='9' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.65s'/%3E%3C/rect%3E%3Crect x='17' y='1' width='6' height='22'%3E%3Canimate attributeName='y' values='1;5;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3Canimate attributeName='height' values='22;14;22' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3Canimate attributeName='opacity' values='1;0.2;1' keyTimes='0;0.938;1' dur='.8s' repeatCount='indefinite' begin='-0.5s'/%3E%3C/rect%3E%3C/svg%3E\")"}},".loading-infinity":{"@layer daisyui.l1.l2":{"mask-image":"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='shape-rendering:auto;' width='200px' height='200px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3E%3Cpath fill='none' stroke='black' stroke-width='10' stroke-dasharray='205.271 51.318' d='M24.3 30C11.4 30 5 43.3 5 50s6.4 20 19.3 20c19.3 0 32.1-40 51.4-40C88.6 30 95 43.3 95 50s-6.4 20-19.3 20C56.4 70 43.6 30 24.3 30z' stroke-linecap='round' style='transform:scale(0.8);transform-origin:50px 50px'%3E%3Canimate attributeName='stroke-dashoffset' repeatCount='indefinite' dur='2s' keyTimes='0;1' values='0;256.589'/%3E%3C/path%3E%3C/svg%3E\")"}},".loading-xs":{"@layer daisyui.l1.l2":{"width":"calc(var(--size-selector, 0.25rem) * 4)"}},".loading-sm":{"@layer daisyui.l1.l2":{"width":"calc(var(--size-selector, 0.25rem) * 5)"}},".loading-md":{"@layer daisyui.l1.l2":{"width":"calc(var(--size-selector, 0.25rem) * 6)"}},".loading-lg":{"@layer daisyui.l1.l2":{"width":"calc(var(--size-selector, 0.25rem) * 7)"}},".loading-xl":{"@layer daisyui.l1.l2":{"width":"calc(var(--size-selector, 0.25rem) * 8)"}}}; \ No newline at end of file diff --git a/b/8c3f0e86bf37ded3557d8cf361ce1bfae66b6f7b838bf08eec594efd4e72f6b6 b/b/8c3f0e86bf37ded3557d8cf361ce1bfae66b6f7b838bf08eec594efd4e72f6b6 new file mode 100644 index 0000000000000000000000000000000000000000..d6c64e1d3311b39821ddbb959a1d8abb01ed8d32 --- /dev/null +++ b/b/8c3f0e86bf37ded3557d8cf361ce1bfae66b6f7b838bf08eec594efd4e72f6b6 @@ -0,0 +1,11 @@ +import { Italic } from "lucide-react" + +import { Toggle } from "@/registry/new-york-v4/ui/toggle" + +export default function ToggleSm() { + return ( + + + + ) +} diff --git a/b/8c43519c6f672c286fcde80cb884165030ce3a62171181416642e24ca4462ab6 b/b/8c43519c6f672c286fcde80cb884165030ce3a62171181416642e24ca4462ab6 new file mode 100644 index 0000000000000000000000000000000000000000..d8961b8d80239fb122cc042adc6f9d595d225a23 --- /dev/null +++ b/b/8c43519c6f672c286fcde80cb884165030ce3a62171181416642e24ca4462ab6 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a34a615952fb8c02acc876dc0f552fed295592810198c4169ee014731a9f29a4 +size 134400 diff --git a/b/8cd8af340c0d8aa0ae6c69e17a1a0f3f8c48b6b949aab4a81a5967d47bcc8d8b b/b/8cd8af340c0d8aa0ae6c69e17a1a0f3f8c48b6b949aab4a81a5967d47bcc8d8b new file mode 100644 index 0000000000000000000000000000000000000000..aec82e866fcb7ef1ea099815618fb287412e1813 --- /dev/null +++ b/b/8cd8af340c0d8aa0ae6c69e17a1a0f3f8c48b6b949aab4a81a5967d47bcc8d8b @@ -0,0 +1,21 @@ +{ + "id": "org.hologram.ui.chart.chart-radar-dots", + "name": "chart-radar-dots", + "tier": "chart", + "library": "shadcn", + "category": "Charts · Radar", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/chart-radar-dots.json", + "did": "did:holo:sha256:e844857ce448a56bece540cb2cf083081ffdb6e46fdfb250ed5c1eb1f4d7c77b", + "import": "holo://sha256:51a3cd04dd267dbb53c25b816b4304065d174c208c39fe326e60be71e8447cb8", + "integrity": "sha256-UaPNBN0mfbtTwluBa0MEBl0XTCCMOf4ybmC+cehEfLg=", + "kappa": "sha256:e844857ce448a56bece540cb2cf083081ffdb6e46fdfb250ed5c1eb1f4d7c77b", + "moduleKappa": "sha256:51a3cd04dd267dbb53c25b816b4304065d174c208c39fe326e60be71e8447cb8", + "renderExport": "ChartRadarDots", + "source": "registry/new-york-v4/charts/chart-radar-dots.tsx", + "module": "vendor/components/chart-radar-dots.js", + "exports": [ + "description", + "ChartRadarDots" + ], + "license": "MIT" +} diff --git a/b/8ce47b17d49fea31904d77d547f8bcefe065de6003582f0ace9f6fd1ee3f1a39 b/b/8ce47b17d49fea31904d77d547f8bcefe065de6003582f0ace9f6fd1ee3f1a39 new file mode 100644 index 0000000000000000000000000000000000000000..816849ae79ad99870906c79d4af467ecb15cabfd --- /dev/null +++ b/b/8ce47b17d49fea31904d77d547f8bcefe065de6003582f0ace9f6fd1ee3f1a39 @@ -0,0 +1,7 @@ +import toggle from './object.js'; +import { addPrefix } from '../../functions/addPrefix.js'; + +export default ({ addComponents, prefix = '' }) => { + const prefixedtoggle = addPrefix(toggle, prefix); + addComponents({ ...prefixedtoggle }); +}; diff --git a/b/8cf8571836fe5a05ea0b7c20be2b82d890b7d32222221190322091439591c4be b/b/8cf8571836fe5a05ea0b7c20be2b82d890b7d32222221190322091439591c4be new file mode 100644 index 0000000000000000000000000000000000000000..cdf87ec3c0dba3df65d2548ec07c77cc894197cb --- /dev/null +++ b/b/8cf8571836fe5a05ea0b7c20be2b82d890b7d32222221190322091439591c4be @@ -0,0 +1 @@ +var Kt=Object.defineProperty;var Ht=(e,t)=>{for(var o in t)Kt(e,o,{get:t[o],enumerable:!0})};function Ue(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t{let o=new Array(e.length+t.length);for(let r=0;r({classGroupId:e,validator:t}),tt=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),ge="-",Xe=[],Xt="arbitrary..",qt=e=>{let t=Jt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Zt(i);let a=i.split(ge),c=a[0]===""&&a.length>1?1:0;return ot(a,c,t)},getConflictingClassGroupIds:(i,a)=>{if(a){let c=r[i],l=o[i];return c?l?Ut(l,c):c:l||Xe}return o[i]||Xe}}},ot=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;let n=e[t],s=o.nextPart.get(n);if(s){let l=ot(e,t+1,s);if(l)return l}let i=o.validators;if(i===null)return;let a=t===0?e.join(ge):e.slice(t).join(ge),c=i.length;for(let l=0;le.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?Xt+r:void 0})(),Jt=e=>{let{theme:t,classGroups:o}=e;return Qt(o,t)},Qt=(e,t)=>{let o=tt();for(let r in e){let n=e[r];Ie(n,o,r,t)}return o},Ie=(e,t,o,r)=>{let n=e.length;for(let s=0;s{if(typeof e=="string"){to(e,t,o);return}if(typeof e=="function"){oo(e,t,o,r);return}ro(e,t,o,r)},to=(e,t,o)=>{let r=e===""?t:rt(t,e);r.classGroupId=o},oo=(e,t,o,r)=>{if(no(e)){Ie(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Yt(o,e))},ro=(e,t,o,r)=>{let n=Object.entries(e),s=n.length;for(let i=0;i{let o=e,r=t.split(ge),n=r.length;for(let s=0;s"isThemeGetter"in e&&e.isThemeGetter===!0,so=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null),n=(s,i)=>{o[s]=i,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(s){let i=o[s];if(i!==void 0)return i;if((i=r[s])!==void 0)return n(s,i),i},set(s,i){s in o?o[s]=i:n(s,i)}}},Me="!",qe=":",io=[],Ze=(e,t,o,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:n}),ao=e=>{let{prefix:t,experimentalParseClassName:o}=e,r=n=>{let s=[],i=0,a=0,c=0,l,h=n.length;for(let g=0;gc?l-c:void 0;return Ze(s,y,b,R)};if(t){let n=t+qe,s=r;r=i=>i.startsWith(n)?s(i.slice(n.length)):Ze(io,!1,i,void 0,!0)}if(o){let n=r;r=s=>o({className:s,parseClassName:n})}return r},lo=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{let r=[],n=[];for(let s=0;s0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},co=e=>({cache:so(e.cacheSize),parseClassName:ao(e),sortModifiers:lo(e),postfixLookupClassGroupIds:uo(e),...qt(e)}),uo=e=>{let t=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let r=0;r{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:s,postfixLookupClassGroupIds:i}=t,a=[],c=e.trim().split(fo),l="";for(let h=c.length-1;h>=0;h-=1){let d=c[h],{isExternal:b,modifiers:y,hasImportantModifier:R,baseClassName:g,maybePostfixModifierPosition:x}=o(d);if(b){l=d+(l.length>0?" "+l:l);continue}let S=!!x,w;if(S){let _=g.substring(0,x);w=r(_);let m=w&&i[w]?r(g):void 0;m&&m!==w&&(w=m,S=!1)}else w=r(g);if(!w){if(!S){l=d+(l.length>0?" "+l:l);continue}if(w=r(g),!w){l=d+(l.length>0?" "+l:l);continue}S=!1}let k=y.length===0?"":y.length===1?y[0]:s(y).join(":"),P=R?k+Me:k,E=P+w;if(a.indexOf(E)>-1)continue;a.push(E);let G=n(w,S);for(let _=0;_0?" "+l:l)}return l},po=(...e)=>{let t=0,o,r,n="";for(;t{if(typeof e=="string")return e;let t,o="";for(let r=0;r{let o,r,n,s,i=c=>{let l=t.reduce((h,d)=>d(h),e());return o=co(l),r=o.cache.get,n=o.cache.set,s=a,a(c)},a=c=>{let l=r(c);if(l)return l;let h=mo(c,o);return n(c,h),h};return s=i,(...c)=>s(po(...c))},bo=[],M=e=>{let t=o=>o[e]||bo;return t.isThemeGetter=!0,t},st=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,it=/^\((?:(\w[\w-]*):)?(.+)\)$/i,go=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,xo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,wo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,So=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Z=e=>go.test(e),v=e=>!!e&&!Number.isNaN(Number(e)),H=e=>!!e&&Number.isInteger(Number(e)),Ae=e=>e.endsWith("%")&&v(e.slice(0,-1)),Y=e=>xo.test(e),at=()=>!0,Ro=e=>yo.test(e)&&!vo.test(e),ze=()=>!1,ko=e=>wo.test(e),Co=e=>So.test(e),Po=e=>!u(e)&&!f(e),Eo=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Ao=e=>J(e,dt,ze),u=e=>st.test(e),ee=e=>J(e,ut,Ro),Je=e=>J(e,No,v),Mo=e=>J(e,mt,at),Io=e=>J(e,ft,ze),Qe=e=>J(e,lt,ze),zo=e=>J(e,ct,Co),he=e=>J(e,pt,ko),f=e=>it.test(e),ae=e=>te(e,ut),To=e=>te(e,ft),et=e=>te(e,lt),_o=e=>te(e,dt),Do=e=>te(e,ct),be=e=>te(e,pt,!0),Oo=e=>te(e,mt,!0),J=(e,t,o)=>{let r=st.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},te=(e,t,o=!1)=>{let r=it.exec(e);return r?r[1]?t(r[1]):o:!1},lt=e=>e==="position"||e==="percentage",ct=e=>e==="image"||e==="url",dt=e=>e==="length"||e==="size"||e==="bg-size",ut=e=>e==="length",No=e=>e==="number",ft=e=>e==="family-name",mt=e=>e==="number"||e==="weight",pt=e=>e==="shadow";var Lo=()=>{let e=M("color"),t=M("font"),o=M("text"),r=M("font-weight"),n=M("tracking"),s=M("leading"),i=M("breakpoint"),a=M("container"),c=M("spacing"),l=M("radius"),h=M("shadow"),d=M("inset-shadow"),b=M("text-shadow"),y=M("drop-shadow"),R=M("blur"),g=M("perspective"),x=M("aspect"),S=M("ease"),w=M("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...P(),f,u],G=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],m=()=>[f,u,c],D=()=>[Z,"full","auto",...m()],de=()=>[H,"none","subgrid",f,u],q=()=>["auto",{span:["full",H,f,u]},H,f,u],A=()=>[H,"auto",f,u],W=()=>["auto","min","max","fr",f,u],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...m()],V=()=>[Z,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],K=()=>[Z,"screen","full","dvw","lvw","svw","min","max","fit",...m()],j=()=>[Z,"screen","full","lh","dvh","lvh","svh","min","max","fit",...m()],p=()=>[e,f,u],$e=()=>[...P(),et,Qe,{position:[f,u]}],Fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],We=()=>["auto","cover","contain",_o,Ao,{size:[f,u]}],Pe=()=>[Ae,ae,ee],N=()=>["","none","full",l,f,u],L=()=>["",v,ae,ee],ue=()=>["solid","dashed","dotted","double"],Ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>[v,Ae,et,Qe],He=()=>["","none",R,f,u],fe=()=>["none",v,f,u],me=()=>["none",v,f,u],Ee=()=>[v,f,u],pe=()=>[Z,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Y],breakpoint:[Y],color:[at],container:[Y],"drop-shadow":[Y],ease:["in","out","in-out"],font:[Po],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Y],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Y],shadow:[Y],spacing:["px",v],text:[Y],"text-shadow":[Y],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Z,u,f,x]}],container:["container"],"container-type":[{"@container":["","normal","size",f,u]}],"container-named":[Eo],columns:[{columns:[v,u,f,a]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[H,"auto",f,u]}],basis:[{basis:[Z,"full","auto",a,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[v,Z,"auto","initial","none",u]}],grow:[{grow:["",v,f,u]}],shrink:[{shrink:["",v,f,u]}],order:[{order:[H,"first","last","none",f,u]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pbs:[{pbs:m()}],pbe:[{pbe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],"inline-size":[{inline:["auto",...K()]}],"min-inline-size":[{"min-inline":["auto",...K()]}],"max-inline-size":[{"max-inline":["none",...K()]}],"block-size":[{block:["auto",...j()]}],"min-block-size":[{"min-block":["auto",...j()]}],"max-block-size":[{"max-block":["none",...j()]}],w:[{w:[a,"screen",...V()]}],"min-w":[{"min-w":[a,"screen","none",...V()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",o,ae,ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Oo,Mo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ae,u]}],"font-family":[{font:[To,Io,t]}],"font-features":[{"font-features":[u]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,f,u]}],"line-clamp":[{"line-clamp":[v,"none",f,Je]}],leading:[{leading:[s,...m()]}],"list-image":[{"list-image":["none",f,u]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",f,u]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:p()}],"text-color":[{text:p()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[v,"from-font","auto",f,ee]}],"text-decoration-color":[{decoration:p()}],"underline-offset":[{"underline-offset":[v,"auto",f,u]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"tab-size":[{tab:[H,f,u]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f,u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",f,u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$e()}],"bg-repeat":[{bg:Fe()}],"bg-size":[{bg:We()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},H,f,u],radial:["",f,u],conic:[H,f,u]},Do,zo]}],"bg-color":[{bg:p()}],"gradient-from-pos":[{from:Pe()}],"gradient-via-pos":[{via:Pe()}],"gradient-to-pos":[{to:Pe()}],"gradient-from":[{from:p()}],"gradient-via":[{via:p()}],"gradient-to":[{to:p()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:p()}],"border-color-x":[{"border-x":p()}],"border-color-y":[{"border-y":p()}],"border-color-s":[{"border-s":p()}],"border-color-e":[{"border-e":p()}],"border-color-bs":[{"border-bs":p()}],"border-color-be":[{"border-be":p()}],"border-color-t":[{"border-t":p()}],"border-color-r":[{"border-r":p()}],"border-color-b":[{"border-b":p()}],"border-color-l":[{"border-l":p()}],"divide-color":[{divide:p()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[v,f,u]}],"outline-w":[{outline:["",v,ae,ee]}],"outline-color":[{outline:p()}],shadow:[{shadow:["","none",h,be,he]}],"shadow-color":[{shadow:p()}],"inset-shadow":[{"inset-shadow":["none",d,be,he]}],"inset-shadow-color":[{"inset-shadow":p()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:p()}],"ring-offset-w":[{"ring-offset":[v,ee]}],"ring-offset-color":[{"ring-offset":p()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":p()}],"text-shadow":[{"text-shadow":["none",b,be,he]}],"text-shadow-color":[{"text-shadow":p()}],opacity:[{opacity:[v,f,u]}],"mix-blend":[{"mix-blend":[...Ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ke()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[v]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":p()}],"mask-image-linear-to-color":[{"mask-linear-to":p()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":p()}],"mask-image-t-to-color":[{"mask-t-to":p()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":p()}],"mask-image-r-to-color":[{"mask-r-to":p()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":p()}],"mask-image-b-to-color":[{"mask-b-to":p()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":p()}],"mask-image-l-to-color":[{"mask-l-to":p()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":p()}],"mask-image-x-to-color":[{"mask-x-to":p()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":p()}],"mask-image-y-to-color":[{"mask-y-to":p()}],"mask-image-radial":[{"mask-radial":[f,u]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":p()}],"mask-image-radial-to-color":[{"mask-radial-to":p()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[v]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":p()}],"mask-image-conic-to-color":[{"mask-conic-to":p()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$e()}],"mask-repeat":[{mask:Fe()}],"mask-size":[{mask:We()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",f,u]}],filter:[{filter:["","none",f,u]}],blur:[{blur:He()}],brightness:[{brightness:[v,f,u]}],contrast:[{contrast:[v,f,u]}],"drop-shadow":[{"drop-shadow":["","none",y,be,he]}],"drop-shadow-color":[{"drop-shadow":p()}],grayscale:[{grayscale:["",v,f,u]}],"hue-rotate":[{"hue-rotate":[v,f,u]}],invert:[{invert:["",v,f,u]}],saturate:[{saturate:[v,f,u]}],sepia:[{sepia:["",v,f,u]}],"backdrop-filter":[{"backdrop-filter":["","none",f,u]}],"backdrop-blur":[{"backdrop-blur":He()}],"backdrop-brightness":[{"backdrop-brightness":[v,f,u]}],"backdrop-contrast":[{"backdrop-contrast":[v,f,u]}],"backdrop-grayscale":[{"backdrop-grayscale":["",v,f,u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v,f,u]}],"backdrop-invert":[{"backdrop-invert":["",v,f,u]}],"backdrop-opacity":[{"backdrop-opacity":[v,f,u]}],"backdrop-saturate":[{"backdrop-saturate":[v,f,u]}],"backdrop-sepia":[{"backdrop-sepia":["",v,f,u]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",f,u]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[v,"initial",f,u]}],ease:[{ease:["linear","initial",S,f,u]}],delay:[{delay:[v,f,u]}],animate:[{animate:["none",w,f,u]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,f,u]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[f,u,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],zoom:[{zoom:[H,f,u]}],accent:[{accent:p()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:p()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f,u]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":p()}],"scrollbar-track-color":[{"scrollbar-track":p()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mbs":[{"scroll-mbs":m()}],"scroll-mbe":[{"scroll-mbe":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pbs":[{"scroll-pbs":m()}],"scroll-pbe":[{"scroll-pbe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",f,u]}],fill:[{fill:["none",...p()]}],"stroke-w":[{stroke:[v,ae,ee,Je]}],stroke:[{stroke:["none",...p()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var ht=ho(Lo);function ne(...e){return ht(Ye(e))}import*as Ft from"react";import*as yt from"react";import*as Yo from"react-dom";import*as T from"react";import*as gt from"react";function bt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Go(...e){return t=>{let o=!1,r=e.map(n=>{let s=bt(n,t);return!o&&typeof s=="function"&&(o=!0),s});if(o)return()=>{for(let n=0;n{let{children:n,...s}=o,i=null,a=!1,c=[];xt(n)&&typeof xe=="function"&&(n=xe(n._payload)),T.Children.forEach(n,b=>{if(Fo(b)){a=!0;let y=b,R="child"in y.props?y.props.child:y.props.children;xt(R)&&typeof xe=="function"&&(R=xe(R._payload)),i=Bo(y,R),c.push(i?.props?.children)}else c.push(b)}),i?i=T.cloneElement(i,void 0,c):!a&&T.Children.count(n)===1&&T.isValidElement(n)&&(i=n);let l=i?$o(i):void 0,h=$(r,l);if(!i){if(n||n===0)throw new Error(a?Uo(e):Ho(e));return n}let d=jo(s,i.props??{});return i.type!==T.Fragment&&(d.ref=r?h:l),T.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}var Vo=Symbol.for("radix.slottable");var Bo=(e,t)=>{if("child"in e.props){let o=e.props.child;return T.isValidElement(o)?T.cloneElement(o,void 0,e.props.children(o.props.children)):null}return T.isValidElement(t)?t:null};function jo(e,t){let o={...t};for(let r in t){let n=e[r],s=t[r];/^on[A-Z]/.test(r)?n&&s?o[r]=(...a)=>{let c=s(...a);return n(...a),c}:n&&(o[r]=n):r==="style"?o[r]={...n,...s}:r==="className"&&(o[r]=[n,s].filter(Boolean).join(" "))}return{...e,...o}}function $o(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function Fo(e){return T.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vo}var Wo=Symbol.for("react.lazy");function xt(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Wo&&"_payload"in e&&Ko(e._payload)}function Ko(e){return typeof e=="object"&&e!==null&&"then"in e}var Ho=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Uo=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,xe=T[" use ".trim().toString()];import{jsx as Xo}from"react/jsx-runtime";var qo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=qo.reduce((e,t)=>{let o=le(`Primitive.${t}`),r=yt.forwardRef((n,s)=>{let{asChild:i,...a}=n,c=i?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Xo(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});import*as X from"react";import{jsx as Zo}from"react/jsx-runtime";function ye(e,t=[]){let o=[];function r(s,i){let a=X.createContext(i);a.displayName=s+"Context";let c=o.length;o=[...o,i];let l=d=>{let{scope:b,children:y,...R}=d,g=b?.[e]?.[c]||a,x=X.useMemo(()=>R,Object.values(R));return Zo(g.Provider,{value:x,children:y})};l.displayName=s+"Provider";function h(d,b){let y=b?.[e]?.[c]||a,R=X.useContext(y);if(R)return R;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,h]}let n=()=>{let s=o.map(i=>X.createContext(i));return function(a){let c=a?.[e]||s;return X.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return n.scopeName=e,[r,Jo(n,...t)]}function Jo(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){let i=r.reduce((a,{useScope:c,scopeName:l})=>{let d=c(s)[`__scope${l}`];return{...a,...d}},{});return X.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return o.scopeName=t.scopeName,o}import*as F from"react";import{jsx as Te}from"react/jsx-runtime";import*as ve from"react";import{jsx as Fr}from"react/jsx-runtime";function vt(e){let t=e+"CollectionProvider",[o,r]=ye(t),[n,s]=o(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{let{scope:x,children:S}=g,w=F.useRef(null),k=F.useRef(new Map).current;return Te(n,{scope:x,itemMap:k,collectionRef:w,children:S})};i.displayName=t;let a=e+"CollectionSlot",c=le(a),l=F.forwardRef((g,x)=>{let{scope:S,children:w}=g,k=s(a,S),P=$(x,k.collectionRef);return Te(c,{ref:P,children:w})});l.displayName=a;let h=e+"CollectionItemSlot",d="data-radix-collection-item",b=le(h),y=F.forwardRef((g,x)=>{let{scope:S,children:w,...k}=g,P=F.useRef(null),E=$(x,P),G=s(h,S);return F.useEffect(()=>(G.itemMap.set(P,{ref:P,...k}),()=>void G.itemMap.delete(P))),Te(b,{[d]:"",ref:E,children:w})});y.displayName=h;function R(g){let x=s(e+"CollectionConsumer",g);return F.useCallback(()=>{let w=x.collectionRef.current;if(!w)return[];let k=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((G,_)=>k.indexOf(G.ref.current)-k.indexOf(_.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:l,ItemSlot:y},R,r]}var Kr=!!(typeof window<"u"&&window.document&&window.document.createElement);function oe(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}import*as B from"react";import*as wt from"react";var we=globalThis?.document?wt.useLayoutEffect:()=>{};import*as Se from"react";var Qo=B[" useInsertionEffect ".trim().toString()]||we;function St({prop:e,defaultProp:t,onChange:o=()=>{},caller:r}){let[n,s,i]=er({defaultProp:t,onChange:o}),a=e!==void 0,c=a?e:n;{let h=B.useRef(e!==void 0);B.useEffect(()=>{let d=h.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=a},[a,r])}let l=B.useCallback(h=>{if(a){let d=tr(h)?h(e):h;d!==e&&i.current?.(d)}else s(h)},[a,e,s,i]);return[c,l]}function er({defaultProp:e,onChange:t}){let[o,r]=B.useState(e),n=B.useRef(o),s=B.useRef(t);return Qo(()=>{s.current=t},[t]),B.useEffect(()=>{n.current!==o&&(s.current?.(o),n.current=o)},[o,n]),[o,r,s]}function tr(e){return typeof e=="function"}var Xr=Symbol("RADIX:SYNC_STATE");import*as Re from"react";import{jsx as Jr}from"react/jsx-runtime";var or=Re.createContext(void 0);function Rt(e){let t=Re.useContext(or);return e||t||"ltr"}import*as ke from"react";function kt(e){let t=ke.useRef({value:e,previous:e});return ke.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}import*as Ct from"react";function Pt(e){let[t,o]=Ct.useState(void 0);return we(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let s=n[0],i,a;if("borderBoxSize"in s){let c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;o({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else o(void 0)},[e]),t}function _e(e,[t,o]){return Math.min(o,Math.max(t,e))}var re={};Ht(re,{Range:()=>Nt,Root:()=>It,Slider:()=>It,SliderRange:()=>Nt,SliderThumb:()=>Bt,SliderTrack:()=>Ot,Thumb:()=>Bt,Track:()=>Ot,createSliderScope:()=>ar,unstable_BubbleInput:()=>Ve,unstable_SliderBubbleInput:()=>Ve,unstable_SliderThumbProvider:()=>Le,unstable_SliderThumbTrigger:()=>Ge,unstable_ThumbProvider:()=>Le,unstable_ThumbTrigger:()=>Ge});import*as C from"react";import{Fragment as rr,jsx as I,jsxs as nr}from"react/jsx-runtime";var Et=["PageUp","PageDown"],At=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Mt={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ie="Slider",[De,sr,ir]=vt(ie),[Ne,ar]=ye(ie,[ir]),[lr,ce]=Ne(ie),It=C.forwardRef((e,t)=>{let{name:o,min:r=0,max:n=100,step:s=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[r],value:h,onValueChange:d=()=>{},onValueCommit:b=()=>{},inverted:y=!1,form:R,...g}=e,x=C.useRef(new Set),S=C.useRef(0),w=C.useRef(!1),P=i==="horizontal"?cr:dr,[E=[],G]=St({prop:h,defaultProp:l,onChange:A=>{[...x.current][S.current]?.focus({preventScroll:!0,focusVisible:w.current}),w.current=!1,d(A)}}),_=C.useRef(E);function m(A){let W=pr(E,A);q(A,W)}function D(A){q(A,S.current)}function de(){let A=_.current[S.current];E[S.current]!==A&&b(E)}function q(A,W,{commit:Q}={commit:!1}){let U=xr(s),O=yr(Math.round((A-r)/s)*s+r,U),V=_e(O,[r,n]);G((K=[])=>{let j=fr(K,V,W);if(gr(j,c*s)){S.current=j.indexOf(V);let p=String(j)!==String(K);return p&&Q&&b(j),p?j:K}else return K})}return I(lr,{scope:e.__scopeSlider,name:o,disabled:a,min:r,max:n,valueIndexToChangeRef:S,thumbs:x.current,values:E,orientation:i,form:R,children:I(De.Provider,{scope:e.__scopeSlider,children:I(De.Slot,{scope:e.__scopeSlider,children:I(P,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:oe(g.onPointerDown,()=>{a||(_.current=E,w.current=!1)}),min:r,max:n,inverted:y,onSlideStart:a?void 0:m,onSlideMove:a?void 0:D,onSlideEnd:a?void 0:de,onHomeKeyDown:()=>{a||(w.current=!0,q(r,0,{commit:!0}))},onEndKeyDown:()=>{a||(w.current=!0,q(n,E.length-1,{commit:!0}))},onStepKeyDown:({event:A,direction:W})=>{if(!a){w.current=!0;let O=Et.includes(A.key)||A.shiftKey&&At.includes(A.key)?10:1,V=S.current,K=E[V],j=s*O*W;q(K+j,V,{commit:!0})}}})})})})});It.displayName=ie;var[zt,Tt]=Ne(ie,{startEdge:"left",endEdge:"right",size:"width",direction:1}),cr=C.forwardRef((e,t)=>{let{min:o,max:r,dir:n,inverted:s,onSlideStart:i,onSlideMove:a,onSlideEnd:c,onStepKeyDown:l,...h}=e,[d,b]=C.useState(null),y=$(t,k=>b(k)),R=C.useRef(void 0),g=Rt(n),x=g==="ltr",S=x&&!s||!x&&s;function w(k){let P=R.current||d.getBoundingClientRect(),E=[0,P.width],_=Be(E,S?[o,r]:[r,o]);return R.current=P,_(k-P.left)}return I(zt,{scope:e.__scopeSlider,startEdge:S?"left":"right",endEdge:S?"right":"left",direction:S?1:-1,size:"width",children:I(_t,{dir:g,"data-orientation":"horizontal",...h,ref:y,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:k=>{let P=w(k.clientX);i?.(P)},onSlideMove:k=>{let P=w(k.clientX);a?.(P)},onSlideEnd:()=>{R.current=void 0,c?.()},onStepKeyDown:k=>{let E=Mt[S?"from-left":"from-right"].includes(k.key);l?.({event:k,direction:E?-1:1})}})})}),dr=C.forwardRef((e,t)=>{let{min:o,max:r,inverted:n,onSlideStart:s,onSlideMove:i,onSlideEnd:a,onStepKeyDown:c,...l}=e,h=C.useRef(null),d=$(t,h),b=C.useRef(void 0),y=!n;function R(g){let x=b.current||h.current.getBoundingClientRect(),S=[0,x.height],k=Be(S,y?[r,o]:[o,r]);return b.current=x,k(g-x.top)}return I(zt,{scope:e.__scopeSlider,startEdge:y?"bottom":"top",endEdge:y?"top":"bottom",size:"height",direction:y?1:-1,children:I(_t,{"data-orientation":"vertical",...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{let x=R(g.clientY);s?.(x)},onSlideMove:g=>{let x=R(g.clientY);i?.(x)},onSlideEnd:()=>{b.current=void 0,a?.()},onStepKeyDown:g=>{let S=Mt[y?"from-bottom":"from-top"].includes(g.key);c?.({event:g,direction:S?-1:1})}})})}),_t=C.forwardRef((e,t)=>{let{__scopeSlider:o,onSlideStart:r,onSlideMove:n,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:c,...l}=e,h=ce(ie,o);return I(se.span,{...l,ref:t,onKeyDown:oe(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):Et.concat(At).includes(d.key)&&(c(d),d.preventDefault())}),onPointerDown:oe(e.onPointerDown,d=>{let b=d.target;b.setPointerCapture(d.pointerId),d.preventDefault(),h.thumbs.has(b)?b.focus({preventScroll:!0,focusVisible:!1}):r(d)}),onPointerMove:oe(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&n(d)}),onPointerUp:oe(e.onPointerUp,d=>{let b=d.target;b.hasPointerCapture(d.pointerId)&&(b.releasePointerCapture(d.pointerId),s(d))})})}),Dt="SliderTrack",Ot=C.forwardRef((e,t)=>{let{__scopeSlider:o,...r}=e,n=ce(Dt,o);return I(se.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...r,ref:t})});Ot.displayName=Dt;var Oe="SliderRange",Nt=C.forwardRef((e,t)=>{let{__scopeSlider:o,...r}=e,n=ce(Oe,o),s=Tt(Oe,o),i=C.useRef(null),a=$(t,i),c=n.values.length,l=n.values.map(b=>$t(b,n.min,n.max)),h=c>1?Math.min(...l):0,d=100-Math.max(...l);return I(se.span,{"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,...r,ref:a,style:{...e.style,[s.startEdge]:h+"%",[s.endEdge]:d+"%"}})});Nt.displayName=Oe;var Lt="SliderThumb",[ur,Gt]=Ne(Lt),Vt="SliderThumbProvider";function Le(e){let{__scopeSlider:t,name:o,children:r,internal_do_not_use_render:n}=e,s=ce(Vt,t),i=sr(t),[a,c]=C.useState(null),l=C.useMemo(()=>a?i().findIndex(x=>x.ref.current===a):-1,[i,a]),h=Pt(a),d=a?!!s.form||!!a.closest("form"):!0,b=s.values[l],y=o??(s.name?s.name+(s.values.length>1?"[]":""):void 0),R=b===void 0?0:$t(b,s.min,s.max);C.useEffect(()=>{if(a)return s.thumbs.add(a),()=>{s.thumbs.delete(a)}},[a,s.thumbs]);let g={value:b,name:y,form:s.form,isFormControl:d,index:l,thumb:a,onThumbChange:c,percent:R,size:h};return I(ur,{scope:t,...g,children:vr(n)?n(g):r})}Le.displayName=Vt;var Ce="SliderThumbTrigger",Ge=C.forwardRef((e,t)=>{let{__scopeSlider:o,...r}=e,n=ce(Ce,o),s=Tt(Ce,o),{index:i,value:a,percent:c,size:l,onThumbChange:h}=Gt(Ce,o),d=$(t,g=>h(g)),b=mr(i,n.values.length),y=l?.[s.size],R=y?hr(y,c,s.direction):0;return I("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${c}% + ${R}px)`},children:I(De.ItemSlot,{scope:o,children:I(se.span,{role:"slider","aria-label":e["aria-label"]||b,"aria-valuemin":n.min,"aria-valuenow":a,"aria-valuemax":n.max,"aria-orientation":n.orientation,"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,tabIndex:n.disabled?void 0:0,...r,ref:d,style:a===void 0?{display:"none"}:e.style,onFocus:oe(e.onFocus,()=>{n.valueIndexToChangeRef.current=i})})})})});Ge.displayName=Ce;var Bt=C.forwardRef((e,t)=>{let{__scopeSlider:o,name:r,...n}=e;return I(Le,{__scopeSlider:o,name:r,internal_do_not_use_render:({index:s,isFormControl:i})=>nr(rr,{children:[I(Ge,{...n,ref:t,__scopeSlider:o}),i?I(Ve,{__scopeSlider:o},s):null]})})});Bt.displayName=Lt;var jt="SliderBubbleInput",Ve=C.forwardRef(({__scopeSlider:e,...t},o)=>{let{value:r,name:n,form:s}=Gt(jt,e),i=C.useRef(null),a=$(i,o),c=kt(r);return C.useEffect(()=>{let l=i.current;if(!l)return;let h=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(h,"value").set;if(c!==r&&b){let y=new Event("input",{bubbles:!0});b.call(l,r),l.dispatchEvent(y)}},[c,r]),I(se.input,{style:{display:"none"},name:n,form:s,...t,ref:a,defaultValue:r})});Ve.displayName=jt;function fr(e=[],t,o){let r=[...e];return r[o]=t,r.sort((n,s)=>n-s)}function $t(e,t,o){let s=100/(o-t)*(e-t);return _e(s,[0,100])}function mr(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function pr(e,t){if(e.length===1)return 0;let o=e.map(n=>Math.abs(n-t)),r=Math.min(...o);return o.indexOf(r)}function hr(e,t,o){let r=e/2,s=Be([0,50],[0,r]);return(r-s(t)*o)*o}function br(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function gr(e,t){if(t>0){let o=br(e);return Math.min(...o)>=t}return!0}function Be(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(o-e[0])}}function xr(e){if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes("e")){let[r,n]=t.split("e"),s=r.split(".")[1]||"",i=Number(n);return Math.max(0,s.length-i)}let o=t.split(".")[1];return o?o.length:0}function yr(e,t){let o=Math.pow(10,t);return Math.round(e*o)/o}function vr(e){return typeof e=="function"}import{jsx as je,jsxs as wr}from"react/jsx-runtime";function Wt({className:e,defaultValue:t,value:o,min:r=0,max:n=100,...s}){let i=Ft.useMemo(()=>Array.isArray(o)?o:Array.isArray(t)?t:[r,n],[o,t,r,n]);return wr(re.Root,{"data-slot":"slider",defaultValue:t,value:o,min:r,max:n,className:ne("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",e),...s,children:[je(re.Track,{"data-slot":"slider-track",className:ne("relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:je(re.Range,{"data-slot":"slider-range",className:ne("absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:i.length},(a,c)=>je(re.Thumb,{"data-slot":"slider-thumb",className:"block size-4 shrink-0 rounded-full border border-primary bg-white shadow-sm ring-ring/50 transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},c))]})}import{jsx as Rr}from"react/jsx-runtime";function Sr({className:e,...t}){return Rr(Wt,{defaultValue:[50],max:100,step:1,className:ne("w-[60%]",e),...t})}export{Sr as default}; diff --git a/b/8d048840af4700417828e3c05136e24a5f6c0dbddd283aef01af8ff1f0765bb7 b/b/8d048840af4700417828e3c05136e24a5f6c0dbddd283aef01af8ff1f0765bb7 new file mode 100644 index 0000000000000000000000000000000000000000..18cf1be0f7c2f65cc212b17716a0a6b64e2bda2e --- /dev/null +++ b/b/8d048840af4700417828e3c05136e24a5f6c0dbddd283aef01af8ff1f0765bb7 @@ -0,0 +1 @@ +export default {"color-scheme":"light","--color-base-100":"oklch(100% 0 0)","--color-base-200":"oklch(93% 0 0)","--color-base-300":"oklch(86% 0 0)","--color-base-content":"oklch(27.807% 0.029 256.847)","--color-primary":"oklch(37.45% 0.189 325.02)","--color-primary-content":"oklch(87.49% 0.037 325.02)","--color-secondary":"oklch(53.92% 0.162 241.36)","--color-secondary-content":"oklch(90.784% 0.032 241.36)","--color-accent":"oklch(75.98% 0.204 56.72)","--color-accent-content":"oklch(15.196% 0.04 56.72)","--color-neutral":"oklch(27.807% 0.029 256.847)","--color-neutral-content":"oklch(85.561% 0.005 256.847)","--color-info":"oklch(72.06% 0.191 231.6)","--color-info-content":"oklch(0% 0 0)","--color-success":"oklch(64.8% 0.15 160)","--color-success-content":"oklch(0% 0 0)","--color-warning":"oklch(84.71% 0.199 83.87)","--color-warning-content":"oklch(0% 0 0)","--color-error":"oklch(71.76% 0.221 22.18)","--color-error-content":"oklch(0% 0 0)","--radius-selector":"1rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"1px","--depth":"1","--noise":"0"}; \ No newline at end of file diff --git a/b/8d1b3e22a0b5f9715d7649e2fa993c3e743412553887b4564e038a208589eca5 b/b/8d1b3e22a0b5f9715d7649e2fa993c3e743412553887b4564e038a208589eca5 new file mode 100644 index 0000000000000000000000000000000000000000..f5d0aad880a11e18aab90c6af68c467f6b39c538 --- /dev/null +++ b/b/8d1b3e22a0b5f9715d7649e2fa993c3e743412553887b4564e038a208589eca5 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.native-select-groups", + "name": "native-select-groups", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/native-select-groups.json", + "did": "did:holo:sha256:5ca40f732271da4dc0ea65cf45204a1331f303d815bc0b0661e5485bbf2e810e", + "import": "holo://sha256:e65694147ebd723617b1739782d30eaeccca025764439f59157d205d0e8f3f10", + "integrity": "sha256-5laUFH69cjYXsXOXgtMOrszKAldkQ59ZFX0gXQ6PPxA=", + "kappa": "sha256:5ca40f732271da4dc0ea65cf45204a1331f303d815bc0b0661e5485bbf2e810e", + "moduleKappa": "sha256:e65694147ebd723617b1739782d30eaeccca025764439f59157d205d0e8f3f10", + "renderExport": "default", + "source": "registry/new-york-v4/examples/native-select-groups.tsx", + "module": "vendor/components/native-select-groups.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/8d2ba99f5079cb06364f38dcda54e1315961711dc44edd6471e6c4696929264f b/b/8d2ba99f5079cb06364f38dcda54e1315961711dc44edd6471e6c4696929264f new file mode 100644 index 0000000000000000000000000000000000000000..746f9476c8100fffd41ed8940795fda94c3045e7 --- /dev/null +++ b/b/8d2ba99f5079cb06364f38dcda54e1315961711dc44edd6471e6c4696929264f @@ -0,0 +1 @@ +function fe(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t{let r=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),ze=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),H="-",he=[],Be="arbitrary..",$e=e=>{let t=Ue(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return De(l);let u=l.split(H),b=u[0]===""&&u.length>1?1:0;return Ce(u,b,t)},getConflictingClassGroupIds:(l,u)=>{if(u){let b=o[l],m=r[l];return b?m?je(m,b):b:m||he}return r[l]||he}}},Ce=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;let a=e[t],d=r.nextPart.get(a);if(d){let m=Ce(e,t+1,d);if(m)return m}let l=r.validators;if(l===null)return;let u=t===0?e.join(H):e.slice(t).join(H),b=l.length;for(let m=0;me.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),o=t.slice(0,r);return o?Be+o:void 0})(),Ue=e=>{let{theme:t,classGroups:r}=e;return Ye(r,t)},Ye=(e,t)=>{let r=ze();for(let o in e){let a=e[o];ne(a,r,o,t)}return r},ne=(e,t,r,o)=>{let a=e.length;for(let d=0;d{if(typeof e=="string"){Xe(e,t,r);return}if(typeof e=="function"){Je(e,t,r,o);return}Qe(e,t,r,o)},Xe=(e,t,r)=>{let o=e===""?t:Se(t,e);o.classGroupId=r},Je=(e,t,r,o)=>{if(He(e)){ne(e(o),t,r,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Fe(r,e))},Qe=(e,t,r,o)=>{let a=Object.entries(e),d=a.length;for(let l=0;l{let r=e,o=t.split(H),a=o.length;for(let d=0;d"isThemeGetter"in e&&e.isThemeGetter===!0,Ke=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),o=Object.create(null),a=(d,l)=>{r[d]=l,t++,t>e&&(t=0,o=r,r=Object.create(null))};return{get(d){let l=r[d];if(l!==void 0)return l;if((l=o[d])!==void 0)return a(d,l),l},set(d,l){d in r?r[d]=l:a(d,l)}}},se="!",xe=":",Ze=[],ke=(e,t,r,o,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:a}),eo=e=>{let{prefix:t,experimentalParseClassName:r}=e,o=a=>{let d=[],l=0,u=0,b=0,m,h=a.length;for(let y=0;yb?m-b:void 0;return ke(d,A,T,F)};if(t){let a=t+xe,d=o;o=l=>l.startsWith(a)?d(l.slice(a.length)):ke(Ze,!1,l,void 0,!0)}if(r){let a=o;o=d=>r({className:d,parseClassName:a})}return o},oo=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((r,o)=>{t.set(r,1e6+o)}),r=>{let o=[],a=[];for(let d=0;d0&&(a.sort(),o.push(...a),a=[]),o.push(l)):a.push(l)}return a.length>0&&(a.sort(),o.push(...a)),o}},ro=e=>({cache:Ke(e.cacheSize),parseClassName:eo(e),sortModifiers:oo(e),postfixLookupClassGroupIds:to(e),...$e(e)}),to=e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let o=0;o{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a,sortModifiers:d,postfixLookupClassGroupIds:l}=t,u=[],b=e.trim().split(so),m="";for(let h=b.length-1;h>=0;h-=1){let x=b[h],{isExternal:T,modifiers:A,hasImportantModifier:F,baseClassName:y,maybePostfixModifierPosition:C}=r(x);if(T){m=x+(m.length>0?" "+m:m);continue}let L=!!C,v;if(L){let M=y.substring(0,C);v=o(M);let i=v&&l[v]?o(y):void 0;i&&i!==v&&(v=i,L=!1)}else v=o(y);if(!v){if(!L){m=x+(m.length>0?" "+m:m);continue}if(v=o(y),!v){m=x+(m.length>0?" "+m:m);continue}L=!1}let B=A.length===0?"":A.length===1?A[0]:d(A).join(":"),E=F?B+se:B,O=E+v;if(u.indexOf(O)>-1)continue;u.push(O);let _=a(v,L);for(let M=0;M<_.length;++M){let i=_[M];u.push(E+i)}m=x+(m.length>0?" "+m:m)}return m},io=(...e)=>{let t=0,r,o,a="";for(;t{if(typeof e=="string")return e;let t,r="";for(let o=0;o{let r,o,a,d,l=b=>{let m=t.reduce((h,x)=>x(h),e());return r=ro(m),o=r.cache.get,a=r.cache.set,d=u,u(b)},u=b=>{let m=o(b);if(m)return m;let h=no(b,r);return a(b,h),h};return d=l,(...b)=>d(io(...b))},lo=[],f=e=>{let t=r=>r[e]||lo;return t.isThemeGetter=!0,t},Ge=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Me=/^\((?:(\w[\w-]*):)?(.+)\)$/i,co=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,mo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,po=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,uo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>co.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),te=e=>e.endsWith("%")&&p(e.slice(0,-1)),I=e=>mo.test(e),Ie=()=>!0,go=e=>po.test(e)&&!uo.test(e),ie=()=>!1,ho=e=>bo.test(e),xo=e=>fo.test(e),ko=e=>!s(e)&&!n(e),wo=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),yo=e=>R(e,Te,ie),s=e=>Ge.test(e),V=e=>R(e,Le,go),we=e=>R(e,Io,p),vo=e=>R(e,Ve,Ie),zo=e=>R(e,Ne,ie),ye=e=>R(e,Pe,ie),Co=e=>R(e,Re,xo),J=e=>R(e,We,ho),n=e=>Me.test(e),$=e=>W(e,Le),So=e=>W(e,Ne),ve=e=>W(e,Pe),Ao=e=>W(e,Te),Go=e=>W(e,Re),Q=e=>W(e,We,!0),Mo=e=>W(e,Ve,!0),R=(e,t,r)=>{let o=Ge.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},W=(e,t,r=!1)=>{let o=Me.exec(e);return o?o[1]?t(o[1]):r:!1},Pe=e=>e==="position"||e==="percentage",Re=e=>e==="image"||e==="url",Te=e=>e==="length"||e==="size"||e==="bg-size",Le=e=>e==="length",Io=e=>e==="number",Ne=e=>e==="family-name",Ve=e=>e==="number"||e==="weight",We=e=>e==="shadow";var Po=()=>{let e=f("color"),t=f("font"),r=f("text"),o=f("font-weight"),a=f("tracking"),d=f("leading"),l=f("breakpoint"),u=f("container"),b=f("spacing"),m=f("radius"),h=f("shadow"),x=f("inset-shadow"),T=f("text-shadow"),A=f("drop-shadow"),F=f("blur"),y=f("perspective"),C=f("aspect"),L=f("ease"),v=f("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...E(),n,s],_=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],i=()=>[n,s,b],z=()=>[P,"full","auto",...i()],ae=()=>[G,"none","subgrid",n,s],le=()=>["auto",{span:["full",G,n,s]},G,n,s],D=()=>[G,"auto",n,s],ce=()=>["auto","min","max","fr",n,s],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],S=()=>["auto",...i()],N=()=>[P,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],Z=()=>[P,"screen","full","dvw","lvw","svw","min","max","fit",...i()],ee=()=>[P,"screen","full","lh","dvh","lvh","svh","min","max","fit",...i()],c=()=>[e,n,s],de=()=>[...E(),ve,ye,{position:[n,s]}],me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],pe=()=>["auto","cover","contain",Ao,yo,{size:[n,s]}],oe=()=>[te,$,V],k=()=>["","none","full",m,n,s],w=()=>["",p,$,V],U=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>[p,te,ve,ye],be=()=>["","none",F,n,s],Y=()=>["none",p,n,s],q=()=>["none",p,n,s],re=()=>[p,n,s],X=()=>[P,"full",...i()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[I],breakpoint:[I],color:[Ie],container:[I],"drop-shadow":[I],ease:["in","out","in-out"],font:[ko],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[I],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[I],shadow:[I],spacing:["px",p],text:[I],"text-shadow":[I],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",P,s,n,C]}],container:["container"],"container-type":[{"@container":["","normal","size",n,s]}],"container-named":[wo],columns:[{columns:[p,s,n,u]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[G,"auto",n,s]}],basis:[{basis:[P,"full","auto",u,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,P,"auto","initial","none",s]}],grow:[{grow:["",p,n,s]}],shrink:[{shrink:["",p,n,s]}],order:[{order:[G,"first","last","none",n,s]}],"grid-cols":[{"grid-cols":ae()}],"col-start-end":[{col:le()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":ae()}],"row-start-end":[{row:le()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:i()}],px:[{px:i()}],py:[{py:i()}],ps:[{ps:i()}],pe:[{pe:i()}],pbs:[{pbs:i()}],pbe:[{pbe:i()}],pt:[{pt:i()}],pr:[{pr:i()}],pb:[{pb:i()}],pl:[{pl:i()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mbs:[{mbs:S()}],mbe:[{mbe:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...ee()]}],"min-block-size":[{"min-block":["auto",...ee()]}],"max-block-size":[{"max-block":["none",...ee()]}],w:[{w:[u,"screen",...N()]}],"min-w":[{"min-w":[u,"screen","none",...N()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",r,$,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Mo,vo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",te,s]}],"font-family":[{font:[So,zo,t]}],"font-features":[{"font-features":[s]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,n,s]}],"line-clamp":[{"line-clamp":[p,"none",n,we]}],leading:[{leading:[d,...i()]}],"list-image":[{"list-image":["none",n,s]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",n,s]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",n,V]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[p,"auto",n,s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:i()}],"tab-size":[{tab:[G,n,s]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",n,s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",n,s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:me()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},G,n,s],radial:["",n,s],conic:[G,n,s]},Go,Co]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:w()}],"border-w-x":[{"border-x":w()}],"border-w-y":[{"border-y":w()}],"border-w-s":[{"border-s":w()}],"border-w-e":[{"border-e":w()}],"border-w-bs":[{"border-bs":w()}],"border-w-be":[{"border-be":w()}],"border-w-t":[{"border-t":w()}],"border-w-r":[{"border-r":w()}],"border-w-b":[{"border-b":w()}],"border-w-l":[{"border-l":w()}],"divide-x":[{"divide-x":w()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":w()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...U(),"hidden","none"]}],"divide-style":[{divide:[...U(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-bs":[{"border-bs":c()}],"border-color-be":[{"border-be":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...U(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,n,s]}],"outline-w":[{outline:["",p,$,V]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",h,Q,J]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",x,Q,J]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:w()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[p,V]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":w()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",T,Q,J]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[p,n,s]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":g()}],"mask-image-linear-to-pos":[{"mask-linear-to":g()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":g()}],"mask-image-t-to-pos":[{"mask-t-to":g()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":g()}],"mask-image-r-to-pos":[{"mask-r-to":g()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":g()}],"mask-image-b-to-pos":[{"mask-b-to":g()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":g()}],"mask-image-l-to-pos":[{"mask-l-to":g()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":g()}],"mask-image-x-to-pos":[{"mask-x-to":g()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":g()}],"mask-image-y-to-pos":[{"mask-y-to":g()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[n,s]}],"mask-image-radial-from-pos":[{"mask-radial-from":g()}],"mask-image-radial-to-pos":[{"mask-radial-to":g()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":g()}],"mask-image-conic-to-pos":[{"mask-conic-to":g()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:me()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",n,s]}],filter:[{filter:["","none",n,s]}],blur:[{blur:be()}],brightness:[{brightness:[p,n,s]}],contrast:[{contrast:[p,n,s]}],"drop-shadow":[{"drop-shadow":["","none",A,Q,J]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",p,n,s]}],"hue-rotate":[{"hue-rotate":[p,n,s]}],invert:[{invert:["",p,n,s]}],saturate:[{saturate:[p,n,s]}],sepia:[{sepia:["",p,n,s]}],"backdrop-filter":[{"backdrop-filter":["","none",n,s]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[p,n,s]}],"backdrop-contrast":[{"backdrop-contrast":[p,n,s]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,n,s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,n,s]}],"backdrop-invert":[{"backdrop-invert":["",p,n,s]}],"backdrop-opacity":[{"backdrop-opacity":[p,n,s]}],"backdrop-saturate":[{"backdrop-saturate":[p,n,s]}],"backdrop-sepia":[{"backdrop-sepia":["",p,n,s]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":i()}],"border-spacing-x":[{"border-spacing-x":i()}],"border-spacing-y":[{"border-spacing-y":i()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",n,s]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",n,s]}],ease:[{ease:["linear","initial",L,n,s]}],delay:[{delay:[p,n,s]}],animate:[{animate:["none",v,n,s]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,n,s]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:Y()}],"rotate-x":[{"rotate-x":Y()}],"rotate-y":[{"rotate-y":Y()}],"rotate-z":[{"rotate-z":Y()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[n,s,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:X()}],"translate-x":[{"translate-x":X()}],"translate-y":[{"translate-y":X()}],"translate-z":[{"translate-z":X()}],"translate-none":["translate-none"],zoom:[{zoom:[G,n,s]}],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",n,s]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":c()}],"scrollbar-track-color":[{"scrollbar-track":c()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":i()}],"scroll-mx":[{"scroll-mx":i()}],"scroll-my":[{"scroll-my":i()}],"scroll-ms":[{"scroll-ms":i()}],"scroll-me":[{"scroll-me":i()}],"scroll-mbs":[{"scroll-mbs":i()}],"scroll-mbe":[{"scroll-mbe":i()}],"scroll-mt":[{"scroll-mt":i()}],"scroll-mr":[{"scroll-mr":i()}],"scroll-mb":[{"scroll-mb":i()}],"scroll-ml":[{"scroll-ml":i()}],"scroll-p":[{"scroll-p":i()}],"scroll-px":[{"scroll-px":i()}],"scroll-py":[{"scroll-py":i()}],"scroll-ps":[{"scroll-ps":i()}],"scroll-pe":[{"scroll-pe":i()}],"scroll-pbs":[{"scroll-pbs":i()}],"scroll-pbe":[{"scroll-pbe":i()}],"scroll-pt":[{"scroll-pt":i()}],"scroll-pr":[{"scroll-pr":i()}],"scroll-pb":[{"scroll-pb":i()}],"scroll-pl":[{"scroll-pl":i()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",n,s]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[p,$,V,we]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Ee=ao(Po);function Oe(...e){return Ee(ge(e))}import{jsx as Ro}from"react/jsx-runtime";function _e({className:e,type:t,...r}){return Ro("input",{type:t,"data-slot":"input",className:Oe("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...r})}import{jsx as Lo}from"react/jsx-runtime";function To(){return Lo(_e,{type:"email",placeholder:"Email"})}export{To as default}; diff --git a/b/8d2c960e92f1cbb2e7fdff6fd602f66cf7ce202296e3b520e010665c63cc5881 b/b/8d2c960e92f1cbb2e7fdff6fd602f66cf7ce202296e3b520e010665c63cc5881 new file mode 100644 index 0000000000000000000000000000000000000000..f78da94f0b3748018b79ec77de4345ee7599c876 --- /dev/null +++ b/b/8d2c960e92f1cbb2e7fdff6fd602f66cf7ce202296e3b520e010665c63cc5881 @@ -0,0 +1,47 @@ +import { Button } from "@/registry/new-york-v4/ui/button" +import { Input } from "@/registry/new-york-v4/ui/input" +import { Label } from "@/registry/new-york-v4/ui/label" +import { + Sheet, + SheetClose, + SheetContent, + SheetDescription, + SheetFooter, + SheetHeader, + SheetTitle, + SheetTrigger, +} from "@/registry/new-york-v4/ui/sheet" + +export default function SheetDemo() { + return ( + + + + + + + Edit profile + + Make changes to your profile here. Click save when you're done. + + +
    +
    + + +
    +
    + + +
    +
    + + + + + + +
    +
    + ) +} diff --git a/b/8d5303041c73df13aa6cf19a50475d8fae0a3d6167152e21e4f40bd1364de46e b/b/8d5303041c73df13aa6cf19a50475d8fae0a3d6167152e21e4f40bd1364de46e new file mode 100644 index 0000000000000000000000000000000000000000..b5e059673f9c244762318de2be4117ed663d8671 --- /dev/null +++ b/b/8d5303041c73df13aa6cf19a50475d8fae0a3d6167152e21e4f40bd1364de46e @@ -0,0 +1,246 @@ +// e8-atlas.mjs — THE SUBSTRATE-NATIVE E₈ LATTICE OBJECT, as hosted by ATLAS 96 (ADR-0054 arc). +// Compiles the E₈ ball (shells of norm² ≤ 8: 1+240+2160+6720+17520 = 26,641 points, EXACT integer +// arithmetic in doubled coordinates c = 2q ∈ ℤ⁸) into a sealed, content-addressed UOR object with +// hologram-style PRECOMPILED LOOKUP TABLES — membership, shell, resonance class, Φ-cell, and Gosset +// adjacency are all O(1) hash/table reads at runtime (the "compile-once, dispatch-O(1)" principle). +// +// THE ATLAS 96 BRIDGE (declared, zero free parameters — verbatim invariants from the vendored +// upstream: R96 = b % 96, Φ(p,b) = (p<<8)|b, 48×256 = 12,288 cells): +// • R96(point) = ( Σ_i byte(c_i) ) mod 96 — the per-byte classifier composed additively +// over the point's canonical 8-byte (int8 c=2q) encoding; the 96 classes are +// the resonance HYPEREDGES grouping lattice points. +// • Φ(point) = its index in canonical order (shell-major, lex-minor) — the atlas's 12,288 +// pages exactly HOST the ball through shell 3 (origin+240+2160+6720 = 9,121 +// cells used); shell 4 lives outside the page space (stated, not hidden). +// +// E₈ in c = 2q coordinates: all c_i SAME parity, Σc_i ≡ 0 (mod 4); norm² = Σc²/4. +// Falsification gates in the witness: shell counts must equal the theta series, every root must +// have exactly 56 Gosset neighbors, the Conway-Sloane decoder must be idempotent on every point, +// the hash table must hit 100% of members and 0% of perturbed non-members. +import { nearestE8 } from "./e8-quant.mjs"; +// node-only deps (seal + the witness main) load lazily so the module stays browser-importable + +export const MAX_NORM2 = 8; // shells: 2,4,6,8 (plus the origin) +export const THETA = { 0: 1, 2: 240, 4: 2160, 6: 6720, 8: 17520 }; // E₈ theta series (the gate) +export const PAGES = 48, BYTES = 256, CELLS = 12288, RCLASSES = 96; // ATLAS 96 — verbatim +const phiEncode = (p, b) => (p << 8) | b; // verbatim +const r96byte = (b) => (b & 0xff) % 96; // verbatim per-byte classifier + +// ── exact construction: DFS over c ∈ ℤ⁸, same parity, Σ ≡ 0 (mod 4), Σc² ≤ 4·MAX_NORM2 ── +export function buildBall(maxNorm2 = MAX_NORM2) { + const pts = []; + const lim2 = 4 * maxNorm2; + for (const parity of [0, 1]) { + const vals = []; + for (let v = -5; v <= 5; v++) if (Math.abs(v % 2) === parity) vals.push(v); + const c = new Int8Array(8); + const dfs = (i, n2, sum) => { + if (n2 > lim2) return; + if (i === 8) { if ((((sum % 4) + 4) % 4) === 0 && !(parity === 0 && n2 === 0 && false)) pts.push(Int8Array.from(c)); return; } + for (const v of vals) { c[i] = v; dfs(i + 1, n2 + v * v, sum + v); } + }; + dfs(0, 0, 0); + } + // canonical order: shell-major (norm² asc), then lexicographic — the Φ order + pts.sort((a, b) => { const na = a.reduce((s, v) => s + v * v, 0), nb = b.reduce((s, v) => s + v * v, 0); if (na !== nb) return na - nb; for (let i = 0; i < 8; i++) if (a[i] !== b[i]) return a[i] - b[i]; return 0; }); + return pts; // includes the origin at index 0 +} + +// ── the precompiled lookup tables (the hologram move: compute once → O(1) forever) ── +const fnv = (bytes) => { let h = 0x811c9dc5; for (let i = 0; i < 8; i++) { h ^= bytes[i] & 0xff; h = Math.imul(h, 0x01000193); } return h >>> 0; }; +export function buildTables(pts) { + const n = pts.length; + const points = new Int8Array(n * 8); + const shell = new Uint8Array(n), cls = new Uint8Array(n); + const HASH_SIZE = 65536, hash = new Int32Array(HASH_SIZE); // (idx+1), 0 = empty; linear probe + for (let i = 0; i < n; i++) { + const c = pts[i]; points.set(c, i * 8); + let n2 = 0, cs = 0; + for (let k = 0; k < 8; k++) { n2 += c[k] * c[k]; cs += (c[k] & 0xff); } + shell[i] = n2 / 4; cls[i] = cs % 96; + let s = fnv(c) & (HASH_SIZE - 1); + while (hash[s] !== 0) s = (s + 1) & (HASH_SIZE - 1); + hash[s] = i + 1; + } + const lookup = (c) => { // O(1) membership/index + let s = fnv(c) & (HASH_SIZE - 1); + while (hash[s] !== 0) { + const i = hash[s] - 1; let eq = true; + for (let k = 0; k < 8; k++) if (points[i * 8 + k] !== c[k]) { eq = false; break; } + if (eq) return i; + s = (s + 1) & (HASH_SIZE - 1); + } + return -1; + }; + // Gosset graph: the 240 roots (shell 1 = indices 1..240); edges at ‖c_a−c_b‖² = 8 (q-dist² = 2) + const roots = []; + for (let i = 0; i < n; i++) if (shell[i] === 2) roots.push(i); + const deg = [], gosset = []; + for (const a of roots) { + const nb = []; + for (const b of roots) { + if (a === b) continue; + let d2 = 0; for (let k = 0; k < 8; k++) { const d = points[a * 8 + k] - points[b * 8 + k]; d2 += d * d; } + if (d2 === 8) nb.push(b); + } + deg.push(nb.length); gosset.push(nb); + } + return { n, points, shell, cls, hash, lookup, roots, gosset, deg }; +} + +// ── runtime API over the tables (usable in node + browser; experiments run THROUGH this) ── +export function atlasE8(T) { + const c8 = new Int8Array(8); + const snap = (x) => { // ℝ⁸ → nearest E₈ point (exact decoder) → c = 2q + const q = new Float64Array(8); nearestE8(x, q); + for (let i = 0; i < 8; i++) c8[i] = Math.round(q[i] * 2); + return Int8Array.from(c8); + }; + return { + n: T.n, + member: (c) => T.lookup(c) >= 0, + index: (c) => T.lookup(c), + point: (i) => T.points.subarray(i * 8, i * 8 + 8), + shellOf: (i) => T.shell[i], + class96: (i) => T.cls[i], + phiOf: (i) => (i < CELLS ? { cell: i, page: i >> 8, byte: i & 0xff, phi: phiEncode(i >> 8, i & 0xff) } : null), // shells ≤3 live in the atlas page space + snap, + neighbors: (i) => { // lattice neighbors via the 240 roots, each an O(1) lookup + const out = [], c = T.points.subarray(i * 8, i * 8 + 8), t = new Int8Array(8); + for (const r of T.roots) { + for (let k = 0; k < 8; k++) t[k] = c[k] + T.points[r * 8 + k]; + const j = T.lookup(t); if (j >= 0) out.push(j); + } + return out; + }, + gosset: (rootIdx) => T.gosset[T.roots.indexOf(rootIdx)] || null, + }; +} + +// ── seal: blocks (gzip, sha256-addressed) + JCS manifest → did:holo ── (node-only) +const jcs = (v) => Array.isArray(v) ? "[" + v.map(jcs).join(",") + "]" : (v && typeof v === "object") ? "{" + Object.keys(v).sort().map((k) => JSON.stringify(k) + ":" + jcs(v[k])).join(",") + "}" : JSON.stringify(v); +export async function seal(T, outDir, links = {}) { + const { createHash } = await import("node:crypto"); + const { gzipSync } = await import("node:zlib"); + const { mkdirSync, writeFileSync } = await import("node:fs"); + const sha = (b) => "sha256:" + createHash("sha256").update(b).digest("hex"); + mkdirSync(outDir + "/b", { recursive: true }); + const block = (bytes) => { const gz = gzipSync(Buffer.from(bytes.buffer ? new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.byteLength) : bytes), { level: 9 }); const k = sha(gz); writeFileSync(`${outDir}/b/${k.replace(":", "_")}.gz`, gz); return { kappa: k, stored: gz.length, bytes: bytes.byteLength }; }; + const gflat = new Uint16Array(240 * 56); + T.gosset.forEach((nb, i) => nb.forEach((v, j) => { gflat[i * 56 + j] = v; })); + const blocks = { + points: block(T.points), shells: block(T.shell), classes: block(T.cls), + hash: block(T.hash), gosset: block(gflat), + }; + const shellCounts = {}; for (let i = 0; i < T.n; i++) shellCounts[T.shell[i]] = (shellCounts[T.shell[i]] || 0) + 1; + const body = { + "@context": ["https://www.w3.org/ns/did/v1", { schema: "https://schema.org/", prov: "http://www.w3.org/ns/prov#", holo: "https://hologram.os/ns/q#", hosc: "https://hologram.os/ns/conformance#" }], + "@type": ["holo:E8AtlasLattice", "prov:Entity"], + "schema:name": "E₈ lattice ball, ATLAS-96-hosted, O(1)-navigable", + "schema:version": "e8atlas/1.0", + "holo:coords": "c = 2q ∈ ℤ⁸ (int8), same parity, Σc ≡ 0 mod 4; norm² = Σc²/4", + "holo:maxNorm2": MAX_NORM2, + "holo:points": T.n, + "holo:shellCounts": shellCounts, + "holo:classRule": "R96(point) = (Σ_i byte(c_i)) mod 96 — verbatim per-byte R96 composed additively", + "holo:phiRule": "Φ(point) = canonical index (shell-major, lex-minor); shells ≤3 (9,121 points) live inside the 12,288-cell page space", + "holo:navigation": "precompiled O(1): FNV-1a open-addressed membership (65,536 slots) · per-point shell/class tables · Gosset 240×56 adjacency", + "holo:blocks": Object.fromEntries(Object.entries(blocks).map(([k, v]) => [k, { kappa: v.kappa, bytes: v.bytes }])), + "holo:links": links, // atlas object id ⊕ atlas wasm κ ⊕ E8 standard ⊕ model codebook κs + "holo:laws": ["L1 content-address", "L5 re-derivation"], + }; + const id = "did:holo:" + sha(Buffer.from(jcs(body))); + writeFileSync(`${outDir}/lattice.uor.json`, JSON.stringify({ "@id": id, ...body }, null, 1)); + return { id, body, blocks }; +} + +// ── isomorphic loader: fetch the SEALED object, κ-verify every block (Law L5), rebuild the O(1) +// API with zero recompute — browser experiments run against the same content-addressed bytes. ── +export async function loadObject(baseUrl) { + const man = await (await fetch(baseUrl + "/lattice.uor.json", { cache: "no-store" })).json(); + const hex = (buf) => [...new Uint8Array(buf)].map((b) => b.toString(16).padStart(2, "0")).join(""); + const gun = async (u8) => { const ds = new DecompressionStream("gzip"); const w = ds.writable.getWriter(); w.write(u8); w.close(); return new Uint8Array(await new Response(ds.readable).arrayBuffer()); }; + const blk = async (rec) => { + const gz = new Uint8Array(await (await fetch(baseUrl + "/b/" + rec.kappa.replace(":", "_") + ".gz", { cache: "no-store" })).arrayBuffer()); + if ("sha256:" + hex(await crypto.subtle.digest("SHA-256", gz)) !== rec.kappa) throw new Error("κ MISMATCH " + rec.kappa.slice(0, 24)); + return gun(gz); + }; + const B = man["holo:blocks"]; + const [p, s, c, h, g] = await Promise.all([blk(B.points), blk(B.shells), blk(B.classes), blk(B.hash), blk(B.gosset)]); + const points = new Int8Array(p.buffer, p.byteOffset, p.byteLength); + const shell = s, cls = c; + const hash = new Int32Array(h.buffer.slice(h.byteOffset, h.byteOffset + h.byteLength)); + const gflat = new Uint16Array(g.buffer.slice(g.byteOffset, g.byteOffset + g.byteLength)); + const n = points.length / 8, HASH_SIZE = hash.length; + const lookup = (cc) => { let sl = fnv(cc) & (HASH_SIZE - 1); while (hash[sl] !== 0) { const i = hash[sl] - 1; let eq = true; for (let k = 0; k < 8; k++) if (points[i * 8 + k] !== cc[k]) { eq = false; break; } if (eq) return i; sl = (sl + 1) & (HASH_SIZE - 1); } return -1; }; + const roots = []; for (let i = 0; i < n; i++) if (shell[i] === 2) roots.push(i); + const gosset = Array.from({ length: 240 }, (_, i) => Array.from(gflat.subarray(i * 56, i * 56 + 56))); + return { man, api: atlasE8({ n, points, shell, cls, hash, lookup, roots, gosset, deg: gosset.map((x) => x.length) }) }; +} + +// ── node: build + WITNESS + seal + the codebook-alignment experiment ── +if (typeof process !== "undefined" && process.argv[1] && process.argv[1].endsWith("e8-atlas.mjs")) { + const { createHash } = await import("node:crypto"); + const { readFileSync, existsSync } = await import("node:fs"); + const sha = (b) => "sha256:" + createHash("sha256").update(b).digest("hex"); + const t0 = Date.now(); + const pts = buildBall(); + const T = buildTables(pts); + const A = atlasE8(T); + const rec = []; + const check = (name, ok, detail = "") => { rec.push(ok); console.log(` ${ok ? "✓" : "✗"} ${name}${detail ? " — " + detail : ""}`); }; + + // 1 · theta series (the construction gate) + const counts = {}; for (let i = 0; i < T.n; i++) counts[T.shell[i]] = (counts[T.shell[i]] || 0) + 1; + check("shell counts = E₈ theta series", JSON.stringify(counts) === JSON.stringify(THETA), JSON.stringify(counts)); + // 2 · negation closure (lattice symmetry) + let negOk = true; const t = new Int8Array(8); + for (let i = 0; i < T.n && negOk; i += 7) { const c = A.point(i); for (let k = 0; k < 8; k++) t[k] = -c[k]; negOk = T.lookup(t) >= 0; } + check("closed under negation", negOk); + // 3 · Gosset degree = 56 for every root (E₈ kissing structure) + check("every root has exactly 56 Gosset neighbors", T.deg.every((d) => d === 56), `degrees ${Math.min(...T.deg)}..${Math.max(...T.deg)}`); + // 4 · decoder idempotence: snap(point) = point, all 26,641 + let snapOk = true; const x = new Float64Array(8); + for (let i = 0; i < T.n && snapOk; i++) { const c = A.point(i); for (let k = 0; k < 8; k++) x[k] = c[k] / 2; const s = A.snap(x); for (let k = 0; k < 8; k++) if (s[k] !== c[k]) { snapOk = false; break; } } + check("Conway-Sloane decoder idempotent on every point", snapOk); + // 5 · hash: 100% member hits + 0 false positives on parity-violating perturbations + let hit = 0; for (let i = 0; i < T.n; i++) if (T.lookup(A.point(i)) === i) hit++; + let fp = 0; for (let i = 0; i < T.n; i += 3) { const c = Int8Array.from(A.point(i)); c[i % 8] += 1; if (T.lookup(c) >= 0) fp++; } // breaks parity ⇒ must miss + check("O(1) hash: 100% hits, 0 false positives", hit === T.n && fp === 0, `${hit}/${T.n} hits, ${fp} fp`); + // 6 · O(1) speed: lookups/s vs decoder ops/s + let s1 = Date.now(), m = 0; + for (let r = 0; r < 40; r++) for (let i = 0; i < T.n; i++) m += T.lookup(A.point(i)) >= 0 ? 1 : 0; + const lps = (m / ((Date.now() - s1) / 1000) / 1e6).toFixed(1); + check("O(1) navigation speed", true, `${lps} M lookups/s (${m.toLocaleString()} lookups)`); + // 7 · resonance classes: how the 96 hyperedges partition the ball + const ch = new Array(96).fill(0); for (let i = 0; i < T.n; i++) ch[T.cls[i]]++; + const nz = ch.filter((v) => v > 0).length, mx = Math.max(...ch), mn = Math.min(...ch.filter((v) => v > 0)); + check("R96 hyperedges cover the ball", nz > 0, `${nz}/96 classes populated, sizes ${mn}..${mx}`); + + // 8 · THE ALIGNMENT EXPERIMENT: where does the LLM's sealed E8 codebook live in the lattice? + for (const model of ["qwen2.5-1.5b-e8", "qwen2.5-14b-e8"]) { + const lp = `./models/${model}/_lut.bin`; + if (!existsSync(lp)) continue; + const lut = new Float32Array(readFileSync(lp).buffer.slice(0), 0, 2048); + const sh = {}; let onLattice = 0; + for (let s = 0; s < 256; s++) { + const c = new Int8Array(8); let n2 = 0; + for (let k = 0; k < 8; k++) { c[k] = Math.round(lut[s * 8 + k] * 2); n2 += c[k] * c[k]; } + const i = T.lookup(c); // the +sign representative + if (i >= 0) { onLattice++; sh[T.shell[i]] = (sh[T.shell[i]] || 0) + 1; } + else sh["off:" + n2 / 4] = (sh["off:" + n2 / 4] || 0) + 1; + } + console.log(` · codebook[${model}]: ${onLattice}/256 shapes are lattice points · shells ${JSON.stringify(sh)}`); + } + + // 9 · seal + const links = {}; + try { links.atlasWasm = "did:holo:" + sha(readFileSync("./atlas12288.wasm")); } catch {} + try { links.modelCodebook15 = JSON.parse(readFileSync("./models/qwen2.5-1.5b-e8/manifest.json", "utf8")).e8lut; } catch {} + const { id, blocks } = await seal(T, "./atlas-e8", links); + const total = Object.values(blocks).reduce((a, b) => a + b.stored, 0); + console.log(`\nsealed → ./atlas-e8 (${(total / 1024).toFixed(0)} KB in ${Object.keys(blocks).length} κ-blocks)`); + console.log(`object id: ${id}`); + console.log(`witness: ${rec.filter(Boolean).length}/${rec.length} checks pass · ${((Date.now() - t0) / 1000).toFixed(1)}s`); + process.exit(rec.every(Boolean) ? 0 : 1); +} diff --git a/b/8d79a97eac9b993e6f7d3d16fc0dd80e05058a101f4fa217891360ab704cc70d b/b/8d79a97eac9b993e6f7d3d16fc0dd80e05058a101f4fa217891360ab704cc70d new file mode 100644 index 0000000000000000000000000000000000000000..07cc1a1633ab59286df0741364ddab899dae14dd --- /dev/null +++ b/b/8d79a97eac9b993e6f7d3d16fc0dd80e05058a101f4fa217891360ab704cc70d @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.resizable-demo", + "name": "resizable-demo", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/resizable-demo.json", + "did": "did:holo:sha256:225d846fa5e8724da3966e5a5d23ab31a22a9b97fd43c78c3331adbd05af397a", + "import": "holo://sha256:a0b5923a96a38ba95ea680a0ff1d268f2c367ff28c1d504ac4cdbdf9ce3c301f", + "integrity": "sha256-oLWSOpaji6lepoCg/x0mjyw2f/KMHVBKxM29+c48MB8=", + "kappa": "sha256:225d846fa5e8724da3966e5a5d23ab31a22a9b97fd43c78c3331adbd05af397a", + "moduleKappa": "sha256:a0b5923a96a38ba95ea680a0ff1d268f2c367ff28c1d504ac4cdbdf9ce3c301f", + "renderExport": "default", + "source": "registry/new-york-v4/examples/resizable-demo.tsx", + "module": "vendor/components/resizable-demo.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/8d9330362ad415270e3530786376f86eb2362f4cf3a859a61cf42b3d22d0cf5c b/b/8d9330362ad415270e3530786376f86eb2362f4cf3a859a61cf42b3d22d0cf5c new file mode 100644 index 0000000000000000000000000000000000000000..de0da7937b9ec21f42b77bc51c1f489e2791293b --- /dev/null +++ b/b/8d9330362ad415270e3530786376f86eb2362f4cf3a859a61cf42b3d22d0cf5c @@ -0,0 +1,57 @@ +// holo-voice-clause-speak.mjs — C1: STREAMING SPEAK. Speak Q's answer CLAUSE-BY-CLAUSE as the brain generates it, +// instead of waiting for the whole paragraph — so the first audio lands in ~one clause, not one response. The +// brain streams tokens → this segments them into clauses at punctuation and pushes each to the TTS queue the +// moment it completes. Clauses go through the clause-grained κ-cache (CFG.clauseCache / the compute memo), so a +// repeated clause replays instantly and the karaoke ribbon syncs to what's actually spoken. +// +// DOM-free, dependency-free; speak + memo injected (production: holo-voice-tts kokoro + holo-compute-memo). +// TTS is SERIALISED (one clause plays at a time, in order) so audio never overlaps — the queue drains in order. + +const norm = (t) => String(t || "").trim().replace(/\s+/g, " ").toLowerCase(); +// first complete clause at the front of the buffer (ends at sentence/clause punctuation, keeps it). `s` flag so . +// matches newlines from a token stream. +const CLAUSE = /^([^]*?[.!?,;:]['")\]]?)(\s+|$)/; + +// makeClauseSpeaker({ speak, memo, onClause, minChars }) → { feed(textChunk), flush(), reset(), spokenClauses() } +// speak(clause) : async — render + play ONE clause (kokoro). Serialised by the internal queue. +// memo : makeComputeMemo (optional) — clause-grained dedup; a repeated clause replays (hit). +// onClause(ev) : { clause, hit, i } — the karaoke binding (paint the clause as it's spoken). +// minChars : don't split a clause shorter than this on a COMMA (keep tiny fragments together); sentence +// punctuation (. ! ?) always splits. Default 12. +export function makeClauseSpeaker({ speak, memo = null, onClause = () => {}, minChars = 12 } = {}) { + if (!speak) throw new Error("makeClauseSpeaker needs speak(clause)"); + let buf = "", spoken = [], i = 0; + let chain = Promise.resolve(); // serialise TTS — clauses play in order, never overlapping + + function enqueue(clause) { + const c = clause.trim(); if (!c) return; + const idx = i++; + chain = chain.then(async () => { + let hit = false; + if (memo) { const r = await memo.compute("clause-tts@v1", norm(c), async () => { await speak(c); return new Uint8Array([1]); }); hit = r.hit; } + else { await speak(c); } + spoken.push(c); onClause({ clause: c, hit, i: idx }); + }); + return chain; + } + + // feed(textChunk) — push brain output (a token, a few tokens, whatever). Emits every COMPLETE clause now. + function feed(text) { + buf += String(text || ""); + let m; + while ((m = buf.match(CLAUSE))) { + const clause = m[1], isSentence = /[.!?]/.test(clause.slice(-2)); + if (!isSentence && clause.trim().length < minChars) break; // tiny comma-fragment → wait for more + enqueue(clause); + buf = buf.slice(m[0].length); + } + } + + // flush() — end of response: speak the trailing partial clause (if any) and await the queue draining. + async function flush() { if (buf.trim()) { enqueue(buf); buf = ""; } await chain; } + + function reset() { buf = ""; spoken = []; i = 0; chain = Promise.resolve(); } + return { feed, flush, reset, spokenClauses: () => spoken.slice(), pending: () => chain }; +} + +export default { makeClauseSpeaker }; diff --git a/b/8dc98e7a84dc064695116665f7b7240567643e71d8ead51fd9f11bb1d26c940e b/b/8dc98e7a84dc064695116665f7b7240567643e71d8ead51fd9f11bb1d26c940e new file mode 100644 index 0000000000000000000000000000000000000000..21b4cfe03e256db7c616444cc977cb7d6a43b822 --- /dev/null +++ b/b/8dc98e7a84dc064695116665f7b7240567643e71d8ead51fd9f11bb1d26c940e @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.date-picker-demo", + "name": "date-picker-demo", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/date-picker-demo.json", + "did": "did:holo:sha256:9c99a153e311a1ad434d85a78cb5640d3f4b870331548d152e947539218ae5d4", + "import": "holo://sha256:ad1acbf93ab033e714d96d014b7d82cc71a5ed27c7bfa6338b1e2c6e53bdd225", + "integrity": "sha256-rRrL+TqwM+cU2W0BS32CzHGl7SfHv6Yzix4sblO90iU=", + "kappa": "sha256:9c99a153e311a1ad434d85a78cb5640d3f4b870331548d152e947539218ae5d4", + "moduleKappa": "sha256:ad1acbf93ab033e714d96d014b7d82cc71a5ed27c7bfa6338b1e2c6e53bdd225", + "renderExport": "default", + "source": "registry/new-york-v4/examples/date-picker-demo.tsx", + "module": "vendor/components/date-picker-demo.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/8dd1414ab6c95eaaadabcb25b8dc489b82116b2a49e9fe8ee316a1ca292d5232 b/b/8dd1414ab6c95eaaadabcb25b8dc489b82116b2a49e9fe8ee316a1ca292d5232 new file mode 100644 index 0000000000000000000000000000000000000000..aaf0b9214e2a67147423673174727387dd1c2c45 --- /dev/null +++ b/b/8dd1414ab6c95eaaadabcb25b8dc489b82116b2a49e9fe8ee316a1ca292d5232 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.radio-group-demo", + "name": "radio-group-demo", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/radio-group-demo.json", + "did": "did:holo:sha256:bc67f9b495b2384aea14cf1fba73f7cc0b4875b1fbfe4a6e9523de8bfdb387d3", + "import": "holo://sha256:8a544071239036cfeadcf57dd400132ae72d18523783cdebcb5daeb0fd32d80e", + "integrity": "sha256-ilRAcSOQNs/q3PV91AATKuctGFI3g83ry12usP0y2A4=", + "kappa": "sha256:bc67f9b495b2384aea14cf1fba73f7cc0b4875b1fbfe4a6e9523de8bfdb387d3", + "moduleKappa": "sha256:8a544071239036cfeadcf57dd400132ae72d18523783cdebcb5daeb0fd32d80e", + "renderExport": "default", + "source": "registry/new-york-v4/examples/radio-group-demo.tsx", + "module": "vendor/components/radio-group-demo.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/8e1b160ce639ebbf9d50068a470afddbedaa68ac39d4e867a06f0c955d50deb6 b/b/8e1b160ce639ebbf9d50068a470afddbedaa68ac39d4e867a06f0c955d50deb6 new file mode 100644 index 0000000000000000000000000000000000000000..9c6c62c21a46e9ff30b5d1a6c1e0720dfae5dbee --- /dev/null +++ b/b/8e1b160ce639ebbf9d50068a470afddbedaa68ac39d4e867a06f0c955d50deb6 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.empty-avatar-group", + "name": "empty-avatar-group", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/empty-avatar-group.json", + "did": "did:holo:sha256:fb6b7b812f38bcc0ea07ac8f25ae6e786d949540b0b05ce7f17c49a1cc023c3b", + "import": "holo://sha256:0f70e2e155c8f4944a0544e1d90ed9351f91f18ea67aba1cba2d9456a3a618aa", + "integrity": "sha256-D3Di4VXI9JRKBUTh2Q7ZNR+R8Y6merocui2UVqOmGKo=", + "kappa": "sha256:fb6b7b812f38bcc0ea07ac8f25ae6e786d949540b0b05ce7f17c49a1cc023c3b", + "moduleKappa": "sha256:0f70e2e155c8f4944a0544e1d90ed9351f91f18ea67aba1cba2d9456a3a618aa", + "renderExport": "default", + "source": "registry/new-york-v4/examples/empty-avatar-group.tsx", + "module": "vendor/components/empty-avatar-group.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/8e1d7827a8dae5f4db75f05b01a684265511a62056ff01c0965ab7b969fafe87 b/b/8e1d7827a8dae5f4db75f05b01a684265511a62056ff01c0965ab7b969fafe87 new file mode 100644 index 0000000000000000000000000000000000000000..df619fb54857b5092c27797ec0dd82f2ce8436a4 --- /dev/null +++ b/b/8e1d7827a8dae5f4db75f05b01a684265511a62056ff01c0965ab7b969fafe87 @@ -0,0 +1,103 @@ +"use client";var hr=Object.defineProperty;var Ir=(e,a)=>{for(var t in a)hr(e,t,{get:a[t],enumerable:!0})};var Ct=1,Cr=.9,Sr=.8,wr=.17,ya=.1,ka=.999,vr=.9999,br=.99,yr=/[\\\/_+.#"@\[\(\{&]/,kr=/[\\\/_+.#"@\[\(\{&]/g,Pr=/[\s-]/,wt=/[\s-]/g;function Pa(e,a,t,o,r,l,s){if(l===a.length)return r===e.length?Ct:br;var u=`${r},${l}`;if(s[u]!==void 0)return s[u];for(var f=o.charAt(l),d=t.indexOf(f,r),n=0,i,m,L,y;d>=0;)i=Pa(e,a,t,o,d+1,l+1,s),i>n&&(d===r?i*=Ct:yr.test(e.charAt(d-1))?(i*=Sr,L=e.slice(r,d-1).match(kr),L&&r>0&&(i*=Math.pow(ka,L.length))):Pr.test(e.charAt(d-1))?(i*=Cr,y=e.slice(r,d-1).match(wt),y&&r>0&&(i*=Math.pow(ka,y.length))):(i*=wr,r>0&&(i*=Math.pow(ka,d-r))),e.charAt(d)!==a.charAt(l)&&(i*=vr)),(ii&&(i=m*ya)),i>n&&(n=i),d=t.indexOf(f,d+1);return s[u]=n,n}function St(e){return e.toLowerCase().replace(wt," ")}function vt(e,a,t){return e=t&&t.length>0?`${e+" "+t.join(" ")}`:e,Pa(e,a,St(e),St(a),0,0,{})}var fe={};Ir(fe,{Close:()=>Jl,Content:()=>nt,Description:()=>Zl,Dialog:()=>Za,DialogClose:()=>lt,DialogContent:()=>at,DialogDescription:()=>rt,DialogOverlay:()=>et,DialogPortal:()=>Qa,DialogTitle:()=>ot,DialogTrigger:()=>Ja,Overlay:()=>ft,Portal:()=>dt,Root:()=>st,Title:()=>$l,Trigger:()=>jl,WarningProvider:()=>Vl,createDialogScope:()=>ql});import*as q from"react";var is=!!(typeof window<"u"&&window.document&&window.document.createElement);function ie(e,a,{checkForDefaultPrevented:t=!0}={}){return function(r){if(e?.(r),t===!1||!r.defaultPrevented)return a?.(r)}}import*as yt from"react";function bt(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function ve(...e){return a=>{let t=!1,o=e.map(r=>{let l=bt(r,a);return!t&&typeof l=="function"&&(t=!0),l});if(t)return()=>{for(let r=0;r{let{children:s,...u}=l,f=ee.useMemo(()=>u,Object.values(u));return kt(t.Provider,{value:f,children:s})};o.displayName=e+"Provider";function r(l){let s=ee.useContext(t);if(s)return s;if(a!==void 0)return a;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[o,r]}function Rt(e,a=[]){let t=[];function o(l,s){let u=ee.createContext(s);u.displayName=l+"Context";let f=t.length;t=[...t,s];let d=i=>{let{scope:m,children:L,...y}=i,p=m?.[e]?.[f]||u,S=ee.useMemo(()=>y,Object.values(y));return kt(p.Provider,{value:S,children:L})};d.displayName=l+"Provider";function n(i,m){let L=m?.[e]?.[f]||u,y=ee.useContext(L);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${i}\` must be used within \`${l}\``)}return[d,n]}let r=()=>{let l=t.map(s=>ee.createContext(s));return function(u){let f=u?.[e]||l;return ee.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return r.scopeName=e,[o,Rr(r,...a)]}function Rr(...e){let a=e[0];if(e.length===1)return a;let t=()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(l){let s=o.reduce((u,{useScope:f,scopeName:d})=>{let i=f(l)[`__scope${d}`];return{...u,...i}},{});return ee.useMemo(()=>({[`__scope${a.scopeName}`]:s}),[s])}};return t.scopeName=a.scopeName,t}import*as Ra from"react";import*as At from"react";var pe=globalThis?.document?At.useLayoutEffect:()=>{};var Ar=Ra[" useId ".trim().toString()]||(()=>{}),Dr=0;function se(e){let[a,t]=Ra.useState(Ar());return pe(()=>{e||t(o=>o??String(Dr++))},[e]),e||(a?`radix-${a}`:"")}import*as ae from"react";import*as aa from"react";var Mr=ae[" useInsertionEffect ".trim().toString()]||pe;function Dt({prop:e,defaultProp:a,onChange:t=()=>{},caller:o}){let[r,l,s]=Fr({defaultProp:a,onChange:t}),u=e!==void 0,f=u?e:r;{let n=ae.useRef(e!==void 0);ae.useEffect(()=>{let i=n.current;i!==u&&console.warn(`${o} is changing from ${i?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),n.current=u},[u,o])}let d=ae.useCallback(n=>{if(u){let i=Br(n)?n(e):n;i!==e&&s.current?.(i)}else l(n)},[u,e,l,s]);return[f,d]}function Fr({defaultProp:e,onChange:a}){let[t,o]=ae.useState(e),r=ae.useRef(t),l=ae.useRef(a);return Mr(()=>{l.current=a},[a]),ae.useEffect(()=>{r.current!==t&&(l.current?.(t),r.current=t)},[t,r]),[t,o,l]}function Br(e){return typeof e=="function"}var Cs=Symbol("RADIX:SYNC_STATE");import*as N from"react";import*as Ft from"react";import*as Bt from"react-dom";import*as V from"react";function oa(e){let a=V.forwardRef((t,o)=>{let{children:r,...l}=t,s=null,u=!1,f=[];Mt(r)&&typeof ta=="function"&&(r=ta(r._payload)),V.Children.forEach(r,m=>{if(Ur(m)){u=!0;let L=m,y="child"in L.props?L.props.child:L.props.children;Mt(y)&&typeof ta=="function"&&(y=ta(y._payload)),s=Or(L,y),f.push(s?.props?.children)}else f.push(m)}),s?s=V.cloneElement(s,void 0,f):!u&&V.Children.count(r)===1&&V.isValidElement(r)&&(s=r);let d=s?qr(s):void 0,n=ue(o,d);if(!s){if(r||r===0)throw new Error(u?zr(e):Gr(e));return r}let i=Er(l,s.props??{});return s.type!==V.Fragment&&(i.ref=o?n:d),V.cloneElement(s,i)});return a.displayName=`${e}.Slot`,a}var Tr=Symbol.for("radix.slottable");var Or=(e,a)=>{if("child"in e.props){let t=e.props.child;return V.isValidElement(t)?V.cloneElement(t,void 0,e.props.children(t.props.children)):null}return V.isValidElement(a)?a:null};function Er(e,a){let t={...a};for(let o in a){let r=e[o],l=a[o];/^on[A-Z]/.test(o)?r&&l?t[o]=(...u)=>{let f=l(...u);return r(...u),f}:r&&(t[o]=r):o==="style"?t[o]={...r,...l}:o==="className"&&(t[o]=[r,l].filter(Boolean).join(" "))}return{...e,...t}}function qr(e){let a=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning;return t?e.ref:(a=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=a&&"isReactWarning"in a&&a.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function Ur(e){return V.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tr}var Hr=Symbol.for("react.lazy");function Mt(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Hr&&"_payload"in e&&Nr(e._payload)}function Nr(e){return typeof e=="object"&&e!==null&&"then"in e}var Gr=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,zr=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,ta=V[" use ".trim().toString()];import{jsx as Wr}from"react/jsx-runtime";var Vr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],G=Vr.reduce((e,a)=>{let t=oa(`Primitive.${a}`),o=Ft.forwardRef((r,l)=>{let{asChild:s,...u}=r,f=s?t:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Wr(f,{...u,ref:l})});return o.displayName=`Primitive.${a}`,{...e,[a]:o}},{});function Tt(e,a){e&&Bt.flushSync(()=>e.dispatchEvent(a))}import*as Be from"react";function xe(e){let a=Be.useRef(e);return Be.useEffect(()=>{a.current=e}),Be.useMemo(()=>(...t)=>a.current?.(...t),[])}import*as Ot from"react";function Et(e,a=globalThis?.document){let t=xe(e);Ot.useEffect(()=>{let o=r=>{r.key==="Escape"&&t(r)};return a.addEventListener("keydown",o,{capture:!0}),()=>a.removeEventListener("keydown",o,{capture:!0})},[t,a])}import{jsx as Ht}from"react/jsx-runtime";var _r="DismissableLayer",Aa="dismissableLayer.update",Xr="dismissableLayer.pointerDownOutside",Kr="dismissableLayer.focusOutside",qt,Nt=N.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Da=N.forwardRef((e,a)=>{let{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:l,onInteractOutside:s,onDismiss:u,...f}=e,d=N.useContext(Nt),[n,i]=N.useState(null),m=n?.ownerDocument??globalThis?.document,[,L]=N.useState({}),y=ue(a,w=>i(w)),p=Array.from(d.layers),[S]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),A=p.indexOf(S),P=n?p.indexOf(n):-1,T=d.layersWithOutsidePointerEventsDisabled.size>0,O=P>=A,F=Zr(w=>{let x=w.target,H=[...d.branches].some(Y=>Y.contains(x));!O||H||(r?.(w),s?.(w),w.defaultPrevented||u?.())},m),b=Jr(w=>{let x=w.target;[...d.branches].some(Y=>Y.contains(x))||(l?.(w),s?.(w),w.defaultPrevented||u?.())},m);return Et(w=>{P===d.layers.size-1&&(o?.(w),!w.defaultPrevented&&u&&(w.preventDefault(),u()))},m),N.useEffect(()=>{if(n)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(qt=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(n)),d.layers.add(n),Ut(),()=>{t&&(d.layersWithOutsidePointerEventsDisabled.delete(n),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=qt))}},[n,m,t,d]),N.useEffect(()=>()=>{n&&(d.layers.delete(n),d.layersWithOutsidePointerEventsDisabled.delete(n),Ut())},[n,d]),N.useEffect(()=>{let w=()=>L({});return document.addEventListener(Aa,w),()=>document.removeEventListener(Aa,w)},[]),Ht(G.div,{...f,ref:y,style:{pointerEvents:T?O?"auto":"none":void 0,...e.style},onFocusCapture:ie(e.onFocusCapture,b.onFocusCapture),onBlurCapture:ie(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:ie(e.onPointerDownCapture,F.onPointerDownCapture)})});Da.displayName=_r;var jr="DismissableLayerBranch",$r=N.forwardRef((e,a)=>{let t=N.useContext(Nt),o=N.useRef(null),r=ue(a,o);return N.useEffect(()=>{let l=o.current;if(l)return t.branches.add(l),()=>{t.branches.delete(l)}},[t.branches]),Ht(G.div,{...e,ref:r})});$r.displayName=jr;function Zr(e,a=globalThis?.document){let t=xe(e),o=N.useRef(!1),r=N.useRef(()=>{});return N.useEffect(()=>{let l=u=>{if(u.target&&!o.current){let d=function(){Gt(Xr,t,n,{discrete:!0})};var f=d;let n={originalEvent:u};u.pointerType==="touch"?(a.removeEventListener("click",r.current),r.current=d,a.addEventListener("click",r.current,{once:!0})):d()}else a.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{a.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(s),a.removeEventListener("pointerdown",l),a.removeEventListener("click",r.current)}},[a,t]),{onPointerDownCapture:()=>o.current=!0}}function Jr(e,a=globalThis?.document){let t=xe(e),o=N.useRef(!1);return N.useEffect(()=>{let r=l=>{l.target&&!o.current&&Gt(Kr,t,{originalEvent:l},{discrete:!1})};return a.addEventListener("focusin",r),()=>a.removeEventListener("focusin",r)},[a,t]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ut(){let e=new CustomEvent(Aa);document.dispatchEvent(e)}function Gt(e,a,t,{discrete:o}){let r=t.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});a&&r.addEventListener(e,a,{once:!0}),o?Tt(r,l):r.dispatchEvent(l)}import*as te from"react";import{jsx as Yr}from"react/jsx-runtime";var Ma="focusScope.autoFocusOnMount",Fa="focusScope.autoFocusOnUnmount",zt={bubbles:!1,cancelable:!0},Qr="FocusScope",Ba=te.forwardRef((e,a)=>{let{loop:t=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:l,...s}=e,[u,f]=te.useState(null),d=xe(r),n=xe(l),i=te.useRef(null),m=ue(a,p=>f(p)),L=te.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;te.useEffect(()=>{if(o){let P=function(b){if(L.paused||!u)return;let w=b.target;u.contains(w)?i.current=w:ge(i.current,{select:!0})},T=function(b){if(L.paused||!u)return;let w=b.relatedTarget;w!==null&&(u.contains(w)||ge(i.current,{select:!0}))},O=function(b){if(document.activeElement===document.body)for(let x of b)x.removedNodes.length>0&&ge(u)};var p=P,S=T,A=O;document.addEventListener("focusin",P),document.addEventListener("focusout",T);let F=new MutationObserver(O);return u&&F.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",P),document.removeEventListener("focusout",T),F.disconnect()}}},[o,u,L.paused]),te.useEffect(()=>{if(u){Vt.add(L);let p=document.activeElement;if(!u.contains(p)){let A=new CustomEvent(Ma,zt);u.addEventListener(Ma,d),u.dispatchEvent(A),A.defaultPrevented||(el(ll(Xt(u)),{select:!0}),document.activeElement===p&&ge(u))}return()=>{u.removeEventListener(Ma,d),setTimeout(()=>{let A=new CustomEvent(Fa,zt);u.addEventListener(Fa,n),u.dispatchEvent(A),A.defaultPrevented||ge(p??document.body,{select:!0}),u.removeEventListener(Fa,n),Vt.remove(L)},0)}}},[u,d,n,L]);let y=te.useCallback(p=>{if(!t&&!o||L.paused)return;let S=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,A=document.activeElement;if(S&&A){let P=p.currentTarget,[T,O]=al(P);T&&O?!p.shiftKey&&A===O?(p.preventDefault(),t&&ge(T,{select:!0})):p.shiftKey&&A===T&&(p.preventDefault(),t&&ge(O,{select:!0})):A===P&&p.preventDefault()}},[t,o,L.paused]);return Yr(G.div,{tabIndex:-1,...s,ref:m,onKeyDown:y})});Ba.displayName=Qr;function el(e,{select:a=!1}={}){let t=document.activeElement;for(let o of e)if(ge(o,{select:a}),document.activeElement!==t)return}function al(e){let a=Xt(e),t=Wt(a,e),o=Wt(a.reverse(),e);return[t,o]}function Xt(e){let a=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)a.push(t.currentNode);return a}function Wt(e,a){for(let t of e)if(!tl(t,{upTo:a}))return t}function tl(e,{upTo:a}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(a!==void 0&&e===a)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ol(e){return e instanceof HTMLInputElement&&"select"in e}function ge(e,{select:a=!1}={}){if(e&&e.focus){let t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&ol(e)&&a&&e.select()}}var Vt=rl();function rl(){let e=[];return{add(a){let t=e[0];a!==t&&t?.pause(),e=_t(e,a),e.unshift(a)},remove(a){e=_t(e,a),e[0]?.resume()}}}function _t(e,a){let t=[...e],o=t.indexOf(a);return o!==-1&&t.splice(o,1),t}function ll(e){return e.filter(a=>a.tagName!=="A")}import*as ra from"react";import*as Kt from"react-dom";import{jsx as ul}from"react/jsx-runtime";var sl="Portal",Ta=ra.forwardRef((e,a)=>{let{container:t,...o}=e,[r,l]=ra.useState(!1);pe(()=>l(!0),[]);let s=t||r&&globalThis?.document?.body;return s?Kt.createPortal(ul(G.div,{...o,ref:a}),s):null});Ta.displayName=sl;import*as X from"react";import*as $t from"react";function dl(e,a){return $t.useReducer((t,o)=>a[t][o]??t,e)}var We=e=>{let{present:a,children:t}=e,o=fl(a),r=typeof t=="function"?t({present:o.isPresent}):X.Children.only(t),l=nl(o.ref,il(r));return typeof t=="function"||o.isPresent?X.cloneElement(r,{ref:l}):null};We.displayName="Presence";function fl(e){let[a,t]=X.useState(),o=X.useRef(null),r=X.useRef(e),l=X.useRef("none"),s=e?"mounted":"unmounted",[u,f]=dl(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return X.useEffect(()=>{let d=la(o.current);l.current=u==="mounted"?d:"none"},[u]),pe(()=>{let d=o.current,n=r.current;if(n!==e){let m=l.current,L=la(d);e?f("MOUNT"):L==="none"||d?.display==="none"?f("UNMOUNT"):f(n&&m!==L?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,f]),pe(()=>{if(a){let d,n=a.ownerDocument.defaultView??window,i=L=>{let p=la(o.current).includes(CSS.escape(L.animationName));if(L.target===a&&p&&(f("ANIMATION_END"),!r.current)){let S=a.style.animationFillMode;a.style.animationFillMode="forwards",d=n.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=S)})}},m=L=>{L.target===a&&(l.current=la(o.current))};return a.addEventListener("animationstart",m),a.addEventListener("animationcancel",i),a.addEventListener("animationend",i),()=>{n.clearTimeout(d),a.removeEventListener("animationstart",m),a.removeEventListener("animationcancel",i),a.removeEventListener("animationend",i)}}else f("ANIMATION_END")},[a,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:X.useCallback(d=>{o.current=d?getComputedStyle(d):null,t(d)},[])}}function jt(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}function nl(...e){let a=X.useRef(e);return a.current=e,X.useCallback(t=>{let o=a.current,r=!1,l=o.map(s=>{let u=jt(s,t);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let s=0;s{Te||(Te={start:Zt(),end:Zt()});let{start:e,end:a}=Te;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==a&&document.body.insertAdjacentElement("beforeend",a),ua++,()=>{ua===1&&(Te?.start.remove(),Te?.end.remove(),Te=null),ua=Math.max(0,ua-1)}},[])}function Zt(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Z=function(){return Z=Object.assign||function(a){for(var t,o=1,r=arguments.length;o"u")return Il;var a=Cl(e),t=document.documentElement.clientWidth,o=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,o-t+a[2]-a[0])}};var Sl=_e(),Oe="data-scroll-locked",wl=function(e,a,t,o){var r=e.left,l=e.top,s=e.right,u=e.gap;return t===void 0&&(t="margin"),` + .`.concat(Oa,` { + overflow: hidden `).concat(o,`; + padding-right: `).concat(u,"px ").concat(o,`; + } + body[`).concat(Oe,`] { + overflow: hidden `).concat(o,`; + overscroll-behavior: contain; + `).concat([a&&"position: relative ".concat(o,";"),t==="margin"&&` + padding-left: `.concat(r,`px; + padding-top: `).concat(l,`px; + padding-right: `).concat(s,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(u,"px ").concat(o,`; + `),t==="padding"&&"padding-right: ".concat(u,"px ").concat(o,";")].filter(Boolean).join(""),` + } + + .`).concat(be,` { + right: `).concat(u,"px ").concat(o,`; + } + + .`).concat(ye,` { + margin-right: `).concat(u,"px ").concat(o,`; + } + + .`).concat(be," .").concat(be,` { + right: 0 `).concat(o,`; + } + + .`).concat(ye," .").concat(ye,` { + margin-right: 0 `).concat(o,`; + } + + body[`).concat(Oe,`] { + `).concat(Ea,": ").concat(u,`px; + } +`)},so=function(){var e=parseInt(document.body.getAttribute(Oe)||"0",10);return isFinite(e)?e:0},vl=function(){Ee.useEffect(function(){return document.body.setAttribute(Oe,(so()+1).toString()),function(){var e=so()-1;e<=0?document.body.removeAttribute(Oe):document.body.setAttribute(Oe,e.toString())}},[])},_a=function(e){var a=e.noRelative,t=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;vl();var l=Ee.useMemo(function(){return Va(r)},[r]);return Ee.createElement(Sl,{styles:wl(l,!a,r,t?"":"!important")})};var Xa=!1;if(typeof window<"u")try{Xe=Object.defineProperty({},"passive",{get:function(){return Xa=!0,!0}}),window.addEventListener("test",Xe,Xe),window.removeEventListener("test",Xe,Xe)}catch{Xa=!1}var Xe,ke=Xa?{passive:!1}:!1;var bl=function(e){return e.tagName==="TEXTAREA"},fo=function(e,a){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[a]!=="hidden"&&!(t.overflowY===t.overflowX&&!bl(e)&&t[a]==="visible")},yl=function(e){return fo(e,"overflowY")},kl=function(e){return fo(e,"overflowX")},Ka=function(e,a){var t=a.ownerDocument,o=a;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=no(e,o);if(r){var l=io(e,o),s=l[1],u=l[2];if(s>u)return!0}o=o.parentNode}while(o&&o!==t.body);return!1},Pl=function(e){var a=e.scrollTop,t=e.scrollHeight,o=e.clientHeight;return[a,t,o]},Rl=function(e){var a=e.scrollLeft,t=e.scrollWidth,o=e.clientWidth;return[a,t,o]},no=function(e,a){return e==="v"?yl(a):kl(a)},io=function(e,a){return e==="v"?Pl(a):Rl(a)},Al=function(e,a){return e==="h"&&a==="rtl"?-1:1},co=function(e,a,t,o,r){var l=Al(e,window.getComputedStyle(a).direction),s=l*o,u=t.target,f=a.contains(u),d=!1,n=s>0,i=0,m=0;do{if(!u)break;var L=io(e,u),y=L[0],p=L[1],S=L[2],A=p-S-l*y;(y||A)&&no(e,u)&&(i+=A,m+=y);var P=u.parentNode;u=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!f&&u!==document.body||f&&(a.contains(u)||a===u));return(n&&(r&&Math.abs(i)<1||!r&&s>i)||!n&&(r&&Math.abs(m)<1||!r&&-s>m))&&(d=!0),d};var ia=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},po=function(e){return[e.deltaX,e.deltaY]},mo=function(e){return e&&"current"in e?e.current:e},Dl=function(e,a){return e[0]===a[0]&&e[1]===a[1]},Ml=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},Fl=0,qe=[];function Lo(e){var a=U.useRef([]),t=U.useRef([0,0]),o=U.useRef(),r=U.useState(Fl++)[0],l=U.useState(_e)[0],s=U.useRef(e);U.useEffect(function(){s.current=e},[e]),U.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=Qt([e.lockRef.current],(e.shards||[]).map(mo),!0).filter(Boolean);return p.forEach(function(S){return S.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var u=U.useCallback(function(p,S){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var A=ia(p),P=t.current,T="deltaX"in p?p.deltaX:P[0]-A[0],O="deltaY"in p?p.deltaY:P[1]-A[1],F,b=p.target,w=Math.abs(T)>Math.abs(O)?"h":"v";if("touches"in p&&w==="h"&&b.type==="range")return!1;var x=window.getSelection(),H=x&&x.anchorNode,Y=H?H===b||H.contains(b):!1;if(Y)return!1;var oe=Ka(w,b);if(!oe)return!0;if(oe?F=w:(F=w==="v"?"h":"v",oe=Ka(w,b)),!oe)return!1;if(!o.current&&"changedTouches"in p&&(T||O)&&(o.current=F),!F)return!0;var re=o.current||F;return co(re,S,p,re==="h"?T:O,!0)},[]),f=U.useCallback(function(p){var S=p;if(!(!qe.length||qe[qe.length-1]!==l)){var A="deltaY"in S?po(S):ia(S),P=a.current.filter(function(F){return F.name===S.type&&(F.target===S.target||S.target===F.shadowParent)&&Dl(F.delta,A)})[0];if(P&&P.should){S.cancelable&&S.preventDefault();return}if(!P){var T=(s.current.shards||[]).map(mo).filter(Boolean).filter(function(F){return F.contains(S.target)}),O=T.length>0?u(S,T[0]):!s.current.noIsolation;O&&S.cancelable&&S.preventDefault()}}},[]),d=U.useCallback(function(p,S,A,P){var T={name:p,delta:S,target:A,should:P,shadowParent:Bl(A)};a.current.push(T),setTimeout(function(){a.current=a.current.filter(function(O){return O!==T})},1)},[]),n=U.useCallback(function(p){t.current=ia(p),o.current=void 0},[]),i=U.useCallback(function(p){d(p.type,po(p),p.target,u(p,e.lockRef.current))},[]),m=U.useCallback(function(p){d(p.type,ia(p),p.target,u(p,e.lockRef.current))},[]);U.useEffect(function(){return qe.push(l),e.setCallbacks({onScrollCapture:i,onWheelCapture:i,onTouchMoveCapture:m}),document.addEventListener("wheel",f,ke),document.addEventListener("touchmove",f,ke),document.addEventListener("touchstart",n,ke),function(){qe=qe.filter(function(p){return p!==l}),document.removeEventListener("wheel",f,ke),document.removeEventListener("touchmove",f,ke),document.removeEventListener("touchstart",n,ke)}},[]);var L=e.removeScrollBar,y=e.inert;return U.createElement(U.Fragment,null,y?U.createElement(l,{styles:Ml(r)}):null,L?U.createElement(_a,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Bl(e){for(var a=null;e!==null;)e instanceof ShadowRoot&&(a=e.host,e=e.host),e=e.parentNode;return a}var xo=Ha(na,Lo);var go=ca.forwardRef(function(e,a){return ca.createElement(Ve,Z({},e,{ref:a,sideCar:xo}))});go.classNames=Ve.classNames;var ja=go;var Tl=function(e){if(typeof document>"u")return null;var a=Array.isArray(e)?e[0]:e;return a.ownerDocument.body},Ue=new WeakMap,pa=new WeakMap,ma={},$a=0,ho=function(e){return e&&(e.host||ho(e.parentNode))},Ol=function(e,a){return a.map(function(t){if(e.contains(t))return t;var o=ho(t);return o&&e.contains(o)?o:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},El=function(e,a,t,o){var r=Ol(a,Array.isArray(e)?e:[e]);ma[t]||(ma[t]=new WeakMap);var l=ma[t],s=[],u=new Set,f=new Set(r),d=function(i){!i||u.has(i)||(u.add(i),d(i.parentNode))};r.forEach(d);var n=function(i){!i||f.has(i)||Array.prototype.forEach.call(i.children,function(m){if(u.has(m))n(m);else try{var L=m.getAttribute(o),y=L!==null&&L!=="false",p=(Ue.get(m)||0)+1,S=(l.get(m)||0)+1;Ue.set(m,p),l.set(m,S),s.push(m),p===1&&y&&pa.set(m,!0),S===1&&m.setAttribute(t,"true"),y||m.setAttribute(o,"true")}catch(A){console.error("aria-hidden: cannot operate on ",m,A)}})};return n(a),u.clear(),$a++,function(){s.forEach(function(i){var m=Ue.get(i)-1,L=l.get(i)-1;Ue.set(i,m),l.set(i,L),m||(pa.has(i)||i.removeAttribute(o),pa.delete(i)),L||i.removeAttribute(t)}),$a--,$a||(Ue=new WeakMap,Ue=new WeakMap,pa=new WeakMap,ma={})}},Io=function(e,a,t){t===void 0&&(t="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=a||Tl(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),El(o,r,t,"aria-hidden")):function(){return null}};import{Fragment as Co,jsx as z,jsxs as So}from"react/jsx-runtime";var xa="Dialog",[wo,ql]=Rt(xa),[Ul,de]=wo(xa),Za=e=>{let{__scopeDialog:a,children:t,open:o,defaultOpen:r,onOpenChange:l,modal:s=!0}=e,u=q.useRef(null),f=q.useRef(null),[d,n]=Dt({prop:o,defaultProp:r??!1,onChange:l,caller:xa});return z(Ul,{scope:a,triggerRef:u,contentRef:f,contentId:se(),titleId:se(),descriptionId:se(),open:d,onOpenChange:n,onOpenToggle:q.useCallback(()=>n(i=>!i),[n]),modal:s,children:t})};Za.displayName=xa;var vo="DialogTrigger",Ja=q.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=de(vo,t),l=ue(a,r.triggerRef);return z(G.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":ut(r.open),...o,ref:l,onClick:ie(e.onClick,r.onOpenToggle)})});Ja.displayName=vo;var Ya="DialogPortal",[Hl,bo]=wo(Ya,{forceMount:void 0}),Qa=e=>{let{__scopeDialog:a,forceMount:t,children:o,container:r}=e,l=de(Ya,a);return z(Hl,{scope:a,forceMount:t,children:q.Children.map(o,s=>z(We,{present:t||l.open,children:z(Ta,{asChild:!0,container:r,children:s})}))})};Qa.displayName=Ya;var La="DialogOverlay",et=q.forwardRef((e,a)=>{let t=bo(La,e.__scopeDialog),{forceMount:o=t.forceMount,...r}=e,l=de(La,e.__scopeDialog);return l.modal?z(We,{present:o||l.open,children:z(Gl,{...r,ref:a})}):null});et.displayName=La;var Nl=oa("DialogOverlay.RemoveScroll"),Gl=q.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=de(La,t);return z(ja,{as:Nl,allowPinchZoom:!0,shards:[r.contentRef],children:z(G.div,{"data-state":ut(r.open),...o,ref:a,style:{pointerEvents:"auto",...o.style}})})}),Pe="DialogContent",at=q.forwardRef((e,a)=>{let t=bo(Pe,e.__scopeDialog),{forceMount:o=t.forceMount,...r}=e,l=de(Pe,e.__scopeDialog);return z(We,{present:o||l.open,children:l.modal?z(zl,{...r,ref:a}):z(Wl,{...r,ref:a})})});at.displayName=Pe;var zl=q.forwardRef((e,a)=>{let t=de(Pe,e.__scopeDialog),o=q.useRef(null),r=ue(a,t.contentRef,o);return q.useEffect(()=>{let l=o.current;if(l)return Io(l)},[]),z(yo,{...e,ref:r,trapFocus:t.open,disableOutsidePointerEvents:t.open,onCloseAutoFocus:ie(e.onCloseAutoFocus,l=>{l.preventDefault(),t.triggerRef.current?.focus()}),onPointerDownOutside:ie(e.onPointerDownOutside,l=>{let s=l.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0;(s.button===2||u)&&l.preventDefault()}),onFocusOutside:ie(e.onFocusOutside,l=>l.preventDefault())})}),Wl=q.forwardRef((e,a)=>{let t=de(Pe,e.__scopeDialog),o=q.useRef(!1),r=q.useRef(!1);return z(yo,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{e.onCloseAutoFocus?.(l),l.defaultPrevented||(o.current||t.triggerRef.current?.focus(),l.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:l=>{e.onInteractOutside?.(l),l.defaultPrevented||(o.current=!0,l.detail.originalEvent.type==="pointerdown"&&(r.current=!0));let s=l.target;t.triggerRef.current?.contains(s)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&r.current&&l.preventDefault()}})}),yo=q.forwardRef((e,a)=>{let{__scopeDialog:t,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:l,...s}=e,u=de(Pe,t),f=q.useRef(null),d=ue(a,f);return Yt(),So(Co,{children:[z(Ba,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:l,children:z(Da,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":ut(u.open),...s,ref:d,onDismiss:()=>u.onOpenChange(!1)})}),So(Co,{children:[z(_l,{titleId:u.titleId}),z(Kl,{contentRef:f,descriptionId:u.descriptionId})]})]})}),tt="DialogTitle",ot=q.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=de(tt,t);return z(G.h2,{id:r.titleId,...o,ref:a})});ot.displayName=tt;var ko="DialogDescription",rt=q.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=de(ko,t);return z(G.p,{id:r.descriptionId,...o,ref:a})});rt.displayName=ko;var Po="DialogClose",lt=q.forwardRef((e,a)=>{let{__scopeDialog:t,...o}=e,r=de(Po,t);return z(G.button,{type:"button",...o,ref:a,onClick:ie(e.onClick,()=>r.onOpenChange(!1))})});lt.displayName=Po;function ut(e){return e?"open":"closed"}var Ro="DialogTitleWarning",[Vl,Ao]=Pt(Ro,{contentName:Pe,titleName:tt,docsSlug:"dialog"}),_l=({titleId:e})=>{let a=Ao(Ro),t=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return q.useEffect(()=>{e&&(document.getElementById(e)||console.error(t))},[t,e]),null},Xl="DialogDescriptionWarning",Kl=({contentRef:e,descriptionId:a})=>{let o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ao(Xl).contentName}}.`;return q.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");a&&r&&(document.getElementById(a)||console.warn(o))},[o,e,a]),null},st=Za,jl=Ja,dt=Qa,ft=et,nt=at,$l=ot,Zl=rt,Jl=lt;import*as g from"react";var Ke='[cmdk-group=""]',it='[cmdk-group-items=""]',Yl='[cmdk-group-heading=""]',Mo='[cmdk-item=""]',Do=`${Mo}:not([aria-disabled="true"])`,ct="cmdk-item-select",He="data-value",Ql=(e,a,t)=>vt(e,a,t),Fo=g.createContext(void 0),je=()=>g.useContext(Fo),Bo=g.createContext(void 0),pt=()=>g.useContext(Bo),To=g.createContext(void 0),Oo=g.forwardRef((e,a)=>{let t=Ne(()=>{var c,k;return{search:"",value:(k=(c=e.value)!=null?c:e.defaultValue)!=null?k:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=Ne(()=>new Set),r=Ne(()=>new Map),l=Ne(()=>new Map),s=Ne(()=>new Set),u=Eo(e),{label:f,children:d,value:n,onValueChange:i,filter:m,shouldFilter:L,loop:y,disablePointerSelection:p=!1,vimBindings:S=!0,...A}=e,P=se(),T=se(),O=se(),F=g.useRef(null),b=nu();Re(()=>{if(n!==void 0){let c=n.trim();t.current.value=c,w.emit()}},[n]),Re(()=>{b(6,Ge)},[]);let w=g.useMemo(()=>({subscribe:c=>(s.current.add(c),()=>s.current.delete(c)),snapshot:()=>t.current,setState:(c,k,M)=>{var I,R,E,_;if(!Object.is(t.current[c],k)){if(t.current[c]=k,c==="search")re(),Y(),b(1,oe);else if(c==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let B=document.getElementById(O);B?B.focus():(I=document.getElementById(P))==null||I.focus()}if(b(7,()=>{var B;t.current.selectedItemId=(B=ne())==null?void 0:B.id,w.emit()}),M||b(5,Ge),((R=u.current)==null?void 0:R.value)!==void 0){let B=k??"";(_=(E=u.current).onValueChange)==null||_.call(E,B);return}}w.emit()}},emit:()=>{s.current.forEach(c=>c())}}),[]),x=g.useMemo(()=>({value:(c,k,M)=>{var I;k!==((I=l.current.get(c))==null?void 0:I.value)&&(l.current.set(c,{value:k,keywords:M}),t.current.filtered.items.set(c,H(k,M)),b(2,()=>{Y(),w.emit()}))},item:(c,k)=>(o.current.add(c),k&&(r.current.has(k)?r.current.get(k).add(c):r.current.set(k,new Set([c]))),b(3,()=>{re(),Y(),t.current.value||oe(),w.emit()}),()=>{l.current.delete(c),o.current.delete(c),t.current.filtered.items.delete(c);let M=ne();b(4,()=>{re(),M?.getAttribute("id")===c&&oe(),w.emit()})}),group:c=>(r.current.has(c)||r.current.set(c,new Set),()=>{l.current.delete(c),r.current.delete(c)}),filter:()=>u.current.shouldFilter,label:f||e["aria-label"],getDisablePointerSelection:()=>u.current.disablePointerSelection,listId:P,inputId:O,labelId:T,listInnerRef:F}),[]);function H(c,k){var M,I;let R=(I=(M=u.current)==null?void 0:M.filter)!=null?I:Ql;return c?R(c,t.current.search,k):0}function Y(){if(!t.current.search||u.current.shouldFilter===!1)return;let c=t.current.filtered.items,k=[];t.current.filtered.groups.forEach(I=>{let R=r.current.get(I),E=0;R.forEach(_=>{let B=c.get(_);E=Math.max(B,E)}),k.push([I,E])});let M=F.current;Q().sort((I,R)=>{var E,_;let B=I.getAttribute("id"),we=R.getAttribute("id");return((E=c.get(we))!=null?E:0)-((_=c.get(B))!=null?_:0)}).forEach(I=>{let R=I.closest(it);R?R.appendChild(I.parentElement===R?I:I.closest(`${it} > *`)):M.appendChild(I.parentElement===M?I:I.closest(`${it} > *`))}),k.sort((I,R)=>R[1]-I[1]).forEach(I=>{var R;let E=(R=F.current)==null?void 0:R.querySelector(`${Ke}[${He}="${encodeURIComponent(I[0])}"]`);E?.parentElement.appendChild(E)})}function oe(){let c=Q().find(M=>M.getAttribute("aria-disabled")!=="true"),k=c?.getAttribute(He);w.setState("value",k||void 0)}function re(){var c,k,M,I;if(!t.current.search||u.current.shouldFilter===!1){t.current.filtered.count=o.current.size;return}t.current.filtered.groups=new Set;let R=0;for(let E of o.current){let _=(k=(c=l.current.get(E))==null?void 0:c.value)!=null?k:"",B=(I=(M=l.current.get(E))==null?void 0:M.keywords)!=null?I:[],we=H(_,B);t.current.filtered.items.set(E,we),we>0&&R++}for(let[E,_]of r.current)for(let B of _)if(t.current.filtered.items.get(B)>0){t.current.filtered.groups.add(E);break}t.current.filtered.count=R}function Ge(){var c,k,M;let I=ne();I&&(((c=I.parentElement)==null?void 0:c.firstChild)===I&&((M=(k=I.closest(Ke))==null?void 0:k.querySelector(Yl))==null||M.scrollIntoView({block:"nearest"})),I.scrollIntoView({block:"nearest"}))}function ne(){var c;return(c=F.current)==null?void 0:c.querySelector(`${Mo}[aria-selected="true"]`)}function Q(){var c;return Array.from(((c=F.current)==null?void 0:c.querySelectorAll(Do))||[])}function $(c){let k=Q()[c];k&&w.setState("value",k.getAttribute(He))}function le(c){var k;let M=ne(),I=Q(),R=I.findIndex(_=>_===M),E=I[R+c];(k=u.current)!=null&&k.loop&&(E=R+c<0?I[I.length-1]:R+c===I.length?I[0]:I[R+c]),E&&w.setState("value",E.getAttribute(He))}function Me(c){let k=ne(),M=k?.closest(Ke),I;for(;M&&!I;)M=c>0?du(M,Ke):fu(M,Ke),I=M?.querySelector(Do);I?w.setState("value",I.getAttribute(He)):le(c)}let Fe=()=>$(Q().length-1),v=c=>{c.preventDefault(),c.metaKey?Fe():c.altKey?Me(1):le(1)},ze=c=>{c.preventDefault(),c.metaKey?$(0):c.altKey?Me(-1):le(-1)};return g.createElement(G.div,{ref:a,tabIndex:-1,...A,"cmdk-root":"",onKeyDown:c=>{var k;(k=A.onKeyDown)==null||k.call(A,c);let M=c.nativeEvent.isComposing||c.keyCode===229;if(!(c.defaultPrevented||M))switch(c.key){case"n":case"j":{S&&c.ctrlKey&&v(c);break}case"ArrowDown":{v(c);break}case"p":case"k":{S&&c.ctrlKey&&ze(c);break}case"ArrowUp":{ze(c);break}case"Home":{c.preventDefault(),$(0);break}case"End":{c.preventDefault(),Fe();break}case"Enter":{c.preventDefault();let I=ne();if(I){let R=new Event(ct);I.dispatchEvent(R)}}}}},g.createElement("label",{"cmdk-label":"",htmlFor:x.inputId,id:x.labelId,style:cu},f),ga(e,c=>g.createElement(Bo.Provider,{value:w},g.createElement(Fo.Provider,{value:x},c))))}),eu=g.forwardRef((e,a)=>{var t,o;let r=se(),l=g.useRef(null),s=g.useContext(To),u=je(),f=Eo(e),d=(o=(t=f.current)==null?void 0:t.forceMount)!=null?o:s?.forceMount;Re(()=>{if(!d)return u.item(r,s?.id)},[d]);let n=qo(r,l,[e.value,e.children,l],e.keywords),i=pt(),m=he(b=>b.value&&b.value===n.current),L=he(b=>d||u.filter()===!1?!0:b.search?b.filtered.items.get(r)>0:!0);g.useEffect(()=>{let b=l.current;if(!(!b||e.disabled))return b.addEventListener(ct,y),()=>b.removeEventListener(ct,y)},[L,e.onSelect,e.disabled]);function y(){var b,w;p(),(w=(b=f.current).onSelect)==null||w.call(b,n.current)}function p(){i.setState("value",n.current,!0)}if(!L)return null;let{disabled:S,value:A,onSelect:P,forceMount:T,keywords:O,...F}=e;return g.createElement(G.div,{ref:ve(l,a),...F,id:r,"cmdk-item":"",role:"option","aria-disabled":!!S,"aria-selected":!!m,"data-disabled":!!S,"data-selected":!!m,onPointerMove:S||u.getDisablePointerSelection()?void 0:p,onClick:S?void 0:y},e.children)}),au=g.forwardRef((e,a)=>{let{heading:t,children:o,forceMount:r,...l}=e,s=se(),u=g.useRef(null),f=g.useRef(null),d=se(),n=je(),i=he(L=>r||n.filter()===!1?!0:L.search?L.filtered.groups.has(s):!0);Re(()=>n.group(s),[]),qo(s,u,[e.value,e.heading,f]);let m=g.useMemo(()=>({id:s,forceMount:r}),[r]);return g.createElement(G.div,{ref:ve(u,a),...l,"cmdk-group":"",role:"presentation",hidden:i?void 0:!0},t&&g.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:d},t),ga(e,L=>g.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":t?d:void 0},g.createElement(To.Provider,{value:m},L))))}),tu=g.forwardRef((e,a)=>{let{alwaysRender:t,...o}=e,r=g.useRef(null),l=he(s=>!s.search);return!t&&!l?null:g.createElement(G.div,{ref:ve(r,a),...o,"cmdk-separator":"",role:"separator"})}),ou=g.forwardRef((e,a)=>{let{onValueChange:t,...o}=e,r=e.value!=null,l=pt(),s=he(d=>d.search),u=he(d=>d.selectedItemId),f=je();return g.useEffect(()=>{e.value!=null&&l.setState("search",e.value)},[e.value]),g.createElement(G.input,{ref:a,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":u,id:f.inputId,type:"text",value:r?e.value:s,onChange:d=>{r||l.setState("search",d.target.value),t?.(d.target.value)}})}),ru=g.forwardRef((e,a)=>{let{children:t,label:o="Suggestions",...r}=e,l=g.useRef(null),s=g.useRef(null),u=he(d=>d.selectedItemId),f=je();return g.useEffect(()=>{if(s.current&&l.current){let d=s.current,n=l.current,i,m=new ResizeObserver(()=>{i=requestAnimationFrame(()=>{let L=d.offsetHeight;n.style.setProperty("--cmdk-list-height",L.toFixed(1)+"px")})});return m.observe(d),()=>{cancelAnimationFrame(i),m.unobserve(d)}}},[]),g.createElement(G.div,{ref:ve(l,a),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":o,id:f.listId},ga(e,d=>g.createElement("div",{ref:ve(s,f.listInnerRef),"cmdk-list-sizer":""},d)))}),lu=g.forwardRef((e,a)=>{let{open:t,onOpenChange:o,overlayClassName:r,contentClassName:l,container:s,...u}=e;return g.createElement(st,{open:t,onOpenChange:o},g.createElement(dt,{container:s},g.createElement(ft,{"cmdk-overlay":"",className:r}),g.createElement(nt,{"aria-label":e.label,"cmdk-dialog":"",className:l},g.createElement(Oo,{ref:a,...u}))))}),uu=g.forwardRef((e,a)=>he(t=>t.filtered.count===0)?g.createElement(G.div,{ref:a,...e,"cmdk-empty":"",role:"presentation"}):null),su=g.forwardRef((e,a)=>{let{progress:t,children:o,label:r="Loading...",...l}=e;return g.createElement(G.div,{ref:a,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},ga(e,s=>g.createElement("div",{"aria-hidden":!0},s)))}),Ie=Object.assign(Oo,{List:ru,Item:eu,Input:ou,Group:au,Separator:tu,Dialog:lu,Empty:uu,Loading:su});function du(e,a){let t=e.nextElementSibling;for(;t;){if(t.matches(a))return t;t=t.nextElementSibling}}function fu(e,a){let t=e.previousElementSibling;for(;t;){if(t.matches(a))return t;t=t.previousElementSibling}}function Eo(e){let a=g.useRef(e);return Re(()=>{a.current=e}),a}var Re=typeof window>"u"?g.useEffect:g.useLayoutEffect;function Ne(e){let a=g.useRef();return a.current===void 0&&(a.current=e()),a}function he(e){let a=pt(),t=()=>e(a.snapshot());return g.useSyncExternalStore(a.subscribe,t,t)}function qo(e,a,t,o=[]){let r=g.useRef(),l=je();return Re(()=>{var s;let u=(()=>{var d;for(let n of t){if(typeof n=="string")return n.trim();if(typeof n=="object"&&"current"in n)return n.current?(d=n.current.textContent)==null?void 0:d.trim():r.current}})(),f=o.map(d=>d.trim());l.value(e,u,f),(s=a.current)==null||s.setAttribute(He,u),r.current=u}),r}var nu=()=>{let[e,a]=g.useState(),t=Ne(()=>new Map);return Re(()=>{t.current.forEach(o=>o()),t.current=new Map},[e]),(o,r)=>{t.current.set(o,r),a({})}};function iu(e){let a=e.type;return typeof a=="function"?a(e.props):"render"in a?a.render(e.props):e}function ga({asChild:e,children:a},t){return e&&g.isValidElement(a)?g.cloneElement(iu(a),{ref:a.ref},t(a.props.children)):t(a)}var cu={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};import{forwardRef as mu,createElement as Lu}from"react";var Uo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ha=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim();import{forwardRef as pu,createElement as No}from"react";var Ho={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Go=pu(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:s,...u},f)=>No("svg",{ref:f,...Ho,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:ha("lucide",r),...u},[...s.map(([d,n])=>No(d,n)),...Array.isArray(l)?l:[l]]));var Ia=(e,a)=>{let t=mu(({className:o,...r},l)=>Lu(Go,{ref:l,iconNode:a,className:ha(`lucide-${Uo(e)}`,o),...r}));return t.displayName=`${e}`,t};var $e=Ia("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var Ze=Ia("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function zo(e){var a,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;a{let t=new Array(e.length+a.length);for(let o=0;o({classGroupId:e,validator:a}),$o=(e=new Map,a=null,t)=>({nextPart:e,validators:a,classGroupId:t}),va="-",Wo=[],hu="arbitrary..",Iu=e=>{let a=Su(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Cu(s);let u=s.split(va),f=u[0]===""&&u.length>1?1:0;return Zo(u,f,a)},getConflictingClassGroupIds:(s,u)=>{if(u){let f=o[s],d=t[s];return f?d?xu(d,f):f:d||Wo}return t[s]||Wo}}},Zo=(e,a,t)=>{if(e.length-a===0)return t.classGroupId;let r=e[a],l=t.nextPart.get(r);if(l){let d=Zo(e,a+1,l);if(d)return d}let s=t.validators;if(s===null)return;let u=a===0?e.join(va):e.slice(a).join(va),f=s.length;for(let d=0;de.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let a=e.slice(1,-1),t=a.indexOf(":"),o=a.slice(0,t);return o?hu+o:void 0})(),Su=e=>{let{theme:a,classGroups:t}=e;return wu(t,a)},wu=(e,a)=>{let t=$o();for(let o in e){let r=e[o];xt(r,t,o,a)}return t},xt=(e,a,t,o)=>{let r=e.length;for(let l=0;l{if(typeof e=="string"){bu(e,a,t);return}if(typeof e=="function"){yu(e,a,t,o);return}ku(e,a,t,o)},bu=(e,a,t)=>{let o=e===""?a:Jo(a,e);o.classGroupId=t},yu=(e,a,t,o)=>{if(Pu(e)){xt(e(o),a,t,o);return}a.validators===null&&(a.validators=[]),a.validators.push(gu(t,e))},ku=(e,a,t,o)=>{let r=Object.entries(e),l=r.length;for(let s=0;s{let t=e,o=a.split(va),r=o.length;for(let l=0;l"isThemeGetter"in e&&e.isThemeGetter===!0,Ru=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,t=Object.create(null),o=Object.create(null),r=(l,s)=>{t[l]=s,a++,a>e&&(a=0,o=t,t=Object.create(null))};return{get(l){let s=t[l];if(s!==void 0)return s;if((s=o[l])!==void 0)return r(l,s),s},set(l,s){l in t?t[l]=s:r(l,s)}}},Lt="!",Vo=":",Au=[],_o=(e,a,t,o,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:t,maybePostfixModifierPosition:o,isExternal:r}),Du=e=>{let{prefix:a,experimentalParseClassName:t}=e,o=r=>{let l=[],s=0,u=0,f=0,d,n=r.length;for(let p=0;pf?d-f:void 0;return _o(l,L,m,y)};if(a){let r=a+Vo,l=o;o=s=>s.startsWith(r)?l(s.slice(r.length)):_o(Au,!1,s,void 0,!0)}if(t){let r=o;o=l=>t({className:l,parseClassName:r})}return o},Mu=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{a.set(t,1e6+o)}),t=>{let o=[],r=[];for(let l=0;l0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},Fu=e=>({cache:Ru(e.cacheSize),parseClassName:Du(e),sortModifiers:Mu(e),postfixLookupClassGroupIds:Bu(e),...Iu(e)}),Bu=e=>{let a=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let o=0;o{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:l,postfixLookupClassGroupIds:s}=a,u=[],f=e.trim().split(Tu),d="";for(let n=f.length-1;n>=0;n-=1){let i=f[n],{isExternal:m,modifiers:L,hasImportantModifier:y,baseClassName:p,maybePostfixModifierPosition:S}=t(i);if(m){d=i+(d.length>0?" "+d:d);continue}let A=!!S,P;if(A){let w=p.substring(0,S);P=o(w);let x=P&&s[P]?o(p):void 0;x&&x!==P&&(P=x,A=!1)}else P=o(p);if(!P){if(!A){d=i+(d.length>0?" "+d:d);continue}if(P=o(p),!P){d=i+(d.length>0?" "+d:d);continue}A=!1}let T=L.length===0?"":L.length===1?L[0]:l(L).join(":"),O=y?T+Lt:T,F=O+P;if(u.indexOf(F)>-1)continue;u.push(F);let b=r(P,A);for(let w=0;w0?" "+d:d)}return d},Eu=(...e)=>{let a=0,t,o,r="";for(;a{if(typeof e=="string")return e;let a,t="";for(let o=0;o{let t,o,r,l,s=f=>{let d=a.reduce((n,i)=>i(n),e());return t=Fu(d),o=t.cache.get,r=t.cache.set,l=u,u(f)},u=f=>{let d=o(f);if(d)return d;let n=Ou(f,t);return r(f,n),n};return l=s,(...f)=>l(Eu(...f))},Uu=[],W=e=>{let a=t=>t[e]||Uu;return a.isThemeGetter=!0,a},Qo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,er=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Hu=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Nu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Wu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ce=e=>Hu.test(e),D=e=>!!e&&!Number.isNaN(Number(e)),ce=e=>!!e&&Number.isInteger(Number(e)),mt=e=>e.endsWith("%")&&D(e.slice(0,-1)),me=e=>Nu.test(e),ar=()=>!0,_u=e=>Gu.test(e)&&!zu.test(e),gt=()=>!1,Xu=e=>Wu.test(e),Ku=e=>Vu.test(e),ju=e=>!h(e)&&!C(e),$u=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Zu=e=>Se(e,rr,gt),h=e=>Qo.test(e),Ae=e=>Se(e,lr,_u),Xo=e=>Se(e,rs,D),Ju=e=>Se(e,sr,ar),Yu=e=>Se(e,ur,gt),Ko=e=>Se(e,tr,gt),Qu=e=>Se(e,or,Ku),Sa=e=>Se(e,dr,Xu),C=e=>er.test(e),Je=e=>De(e,lr),es=e=>De(e,ur),jo=e=>De(e,tr),as=e=>De(e,rr),ts=e=>De(e,or),wa=e=>De(e,dr,!0),os=e=>De(e,sr,!0),Se=(e,a,t)=>{let o=Qo.exec(e);return o?o[1]?a(o[1]):t(o[2]):!1},De=(e,a,t=!1)=>{let o=er.exec(e);return o?o[1]?a(o[1]):t:!1},tr=e=>e==="position"||e==="percentage",or=e=>e==="image"||e==="url",rr=e=>e==="length"||e==="size"||e==="bg-size",lr=e=>e==="length",rs=e=>e==="number",ur=e=>e==="family-name",sr=e=>e==="number"||e==="weight",dr=e=>e==="shadow";var ls=()=>{let e=W("color"),a=W("font"),t=W("text"),o=W("font-weight"),r=W("tracking"),l=W("leading"),s=W("breakpoint"),u=W("container"),f=W("spacing"),d=W("radius"),n=W("shadow"),i=W("inset-shadow"),m=W("text-shadow"),L=W("drop-shadow"),y=W("blur"),p=W("perspective"),S=W("aspect"),A=W("ease"),P=W("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...O(),C,h],b=()=>["auto","hidden","clip","visible","scroll"],w=()=>["auto","contain","none"],x=()=>[C,h,f],H=()=>[Ce,"full","auto",...x()],Y=()=>[ce,"none","subgrid",C,h],oe=()=>["auto",{span:["full",ce,C,h]},ce,C,h],re=()=>[ce,"auto",C,h],Ge=()=>["auto","min","max","fr",C,h],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...x()],le=()=>[Ce,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],Me=()=>[Ce,"screen","full","dvw","lvw","svw","min","max","fit",...x()],Fe=()=>[Ce,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],v=()=>[e,C,h],ze=()=>[...O(),jo,Ko,{position:[C,h]}],c=()=>["no-repeat",{repeat:["","x","y","space","round"]}],k=()=>["auto","cover","contain",as,Zu,{size:[C,h]}],M=()=>[mt,Je,Ae],I=()=>["","none","full",d,C,h],R=()=>["",D,Je,Ae],E=()=>["solid","dashed","dotted","double"],_=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[D,mt,jo,Ko],we=()=>["","none",y,C,h],Ye=()=>["none",D,C,h],Qe=()=>["none",D,C,h],ba=()=>[D,C,h],ea=()=>[Ce,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[me],breakpoint:[me],color:[ar],container:[me],"drop-shadow":[me],ease:["in","out","in-out"],font:[ju],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[me],shadow:[me],spacing:["px",D],text:[me],"text-shadow":[me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ce,h,C,S]}],container:["container"],"container-type":[{"@container":["","normal","size",C,h]}],"container-named":[$u],columns:[{columns:[D,h,C,u]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:w()}],"overscroll-x":[{"overscroll-x":w()}],"overscroll-y":[{"overscroll-y":w()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{"inset-s":H(),start:H()}],end:[{"inset-e":H(),end:H()}],"inset-bs":[{"inset-bs":H()}],"inset-be":[{"inset-be":H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[ce,"auto",C,h]}],basis:[{basis:[Ce,"full","auto",u,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[D,Ce,"auto","initial","none",h]}],grow:[{grow:["",D,C,h]}],shrink:[{shrink:["",D,C,h]}],order:[{order:[ce,"first","last","none",C,h]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:oe()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:oe()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ge()}],"auto-rows":[{"auto-rows":Ge()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mbs:[{mbs:$()}],mbe:[{mbe:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:le()}],"inline-size":[{inline:["auto",...Me()]}],"min-inline-size":[{"min-inline":["auto",...Me()]}],"max-inline-size":[{"max-inline":["none",...Me()]}],"block-size":[{block:["auto",...Fe()]}],"min-block-size":[{"min-block":["auto",...Fe()]}],"max-block-size":[{"max-block":["none",...Fe()]}],w:[{w:[u,"screen",...le()]}],"min-w":[{"min-w":[u,"screen","none",...le()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[s]},...le()]}],h:[{h:["screen","lh",...le()]}],"min-h":[{"min-h":["screen","lh","none",...le()]}],"max-h":[{"max-h":["screen","lh",...le()]}],"font-size":[{text:["base",t,Je,Ae]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,os,Ju]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mt,h]}],"font-family":[{font:[es,Yu,a]}],"font-features":[{"font-features":[h]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,C,h]}],"line-clamp":[{"line-clamp":[D,"none",C,Xo]}],leading:[{leading:[l,...x()]}],"list-image":[{"list-image":["none",C,h]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",C,h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:v()}],"text-color":[{text:v()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...E(),"wavy"]}],"text-decoration-thickness":[{decoration:[D,"from-font","auto",C,Ae]}],"text-decoration-color":[{decoration:v()}],"underline-offset":[{"underline-offset":[D,"auto",C,h]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[ce,C,h]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C,h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",C,h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ze()}],"bg-repeat":[{bg:c()}],"bg-size":[{bg:k()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ce,C,h],radial:["",C,h],conic:[ce,C,h]},ts,Qu]}],"bg-color":[{bg:v()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:v()}],"gradient-via":[{via:v()}],"gradient-to":[{to:v()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...E(),"hidden","none"]}],"divide-style":[{divide:[...E(),"hidden","none"]}],"border-color":[{border:v()}],"border-color-x":[{"border-x":v()}],"border-color-y":[{"border-y":v()}],"border-color-s":[{"border-s":v()}],"border-color-e":[{"border-e":v()}],"border-color-bs":[{"border-bs":v()}],"border-color-be":[{"border-be":v()}],"border-color-t":[{"border-t":v()}],"border-color-r":[{"border-r":v()}],"border-color-b":[{"border-b":v()}],"border-color-l":[{"border-l":v()}],"divide-color":[{divide:v()}],"outline-style":[{outline:[...E(),"none","hidden"]}],"outline-offset":[{"outline-offset":[D,C,h]}],"outline-w":[{outline:["",D,Je,Ae]}],"outline-color":[{outline:v()}],shadow:[{shadow:["","none",n,wa,Sa]}],"shadow-color":[{shadow:v()}],"inset-shadow":[{"inset-shadow":["none",i,wa,Sa]}],"inset-shadow-color":[{"inset-shadow":v()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:v()}],"ring-offset-w":[{"ring-offset":[D,Ae]}],"ring-offset-color":[{"ring-offset":v()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":v()}],"text-shadow":[{"text-shadow":["none",m,wa,Sa]}],"text-shadow-color":[{"text-shadow":v()}],opacity:[{opacity:[D,C,h]}],"mix-blend":[{"mix-blend":[..._(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[D]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":v()}],"mask-image-linear-to-color":[{"mask-linear-to":v()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":v()}],"mask-image-t-to-color":[{"mask-t-to":v()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":v()}],"mask-image-r-to-color":[{"mask-r-to":v()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":v()}],"mask-image-b-to-color":[{"mask-b-to":v()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":v()}],"mask-image-l-to-color":[{"mask-l-to":v()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":v()}],"mask-image-x-to-color":[{"mask-x-to":v()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":v()}],"mask-image-y-to-color":[{"mask-y-to":v()}],"mask-image-radial":[{"mask-radial":[C,h]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":v()}],"mask-image-radial-to-color":[{"mask-radial-to":v()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[D]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":v()}],"mask-image-conic-to-color":[{"mask-conic-to":v()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ze()}],"mask-repeat":[{mask:c()}],"mask-size":[{mask:k()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",C,h]}],filter:[{filter:["","none",C,h]}],blur:[{blur:we()}],brightness:[{brightness:[D,C,h]}],contrast:[{contrast:[D,C,h]}],"drop-shadow":[{"drop-shadow":["","none",L,wa,Sa]}],"drop-shadow-color":[{"drop-shadow":v()}],grayscale:[{grayscale:["",D,C,h]}],"hue-rotate":[{"hue-rotate":[D,C,h]}],invert:[{invert:["",D,C,h]}],saturate:[{saturate:[D,C,h]}],sepia:[{sepia:["",D,C,h]}],"backdrop-filter":[{"backdrop-filter":["","none",C,h]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[D,C,h]}],"backdrop-contrast":[{"backdrop-contrast":[D,C,h]}],"backdrop-grayscale":[{"backdrop-grayscale":["",D,C,h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D,C,h]}],"backdrop-invert":[{"backdrop-invert":["",D,C,h]}],"backdrop-opacity":[{"backdrop-opacity":[D,C,h]}],"backdrop-saturate":[{"backdrop-saturate":[D,C,h]}],"backdrop-sepia":[{"backdrop-sepia":["",D,C,h]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",C,h]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[D,"initial",C,h]}],ease:[{ease:["linear","initial",A,C,h]}],delay:[{delay:[D,C,h]}],animate:[{animate:["none",P,C,h]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,C,h]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:Ye()}],"rotate-x":[{"rotate-x":Ye()}],"rotate-y":[{"rotate-y":Ye()}],"rotate-z":[{"rotate-z":Ye()}],scale:[{scale:Qe()}],"scale-x":[{"scale-x":Qe()}],"scale-y":[{"scale-y":Qe()}],"scale-z":[{"scale-z":Qe()}],"scale-3d":["scale-3d"],skew:[{skew:ba()}],"skew-x":[{"skew-x":ba()}],"skew-y":[{"skew-y":ba()}],transform:[{transform:[C,h,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ea()}],"translate-x":[{"translate-x":ea()}],"translate-y":[{"translate-y":ea()}],"translate-z":[{"translate-z":ea()}],"translate-none":["translate-none"],zoom:[{zoom:[ce,C,h]}],accent:[{accent:v()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:v()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C,h]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":v()}],"scrollbar-track-color":[{"scrollbar-track":v()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C,h]}],fill:[{fill:["none",...v()]}],"stroke-w":[{stroke:[D,Je,Ae,Xo]}],stroke:[{stroke:["none",...v()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var fr=qu(ls);function j(...e){return fr(Ca(e))}var nr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ir=Ca,cr=(e,a)=>t=>{var o;if(a?.variants==null)return ir(e,t?.class,t?.className);let{variants:r,defaultVariants:l}=a,s=Object.keys(r).map(d=>{let n=t?.[d],i=l?.[d];if(n===null)return null;let m=nr(n)||nr(i);return r[d][m]}),u=t&&Object.entries(t).reduce((d,n)=>{let[i,m]=n;return m===void 0||(d[i]=m),d},{}),f=a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((d,n)=>{let{class:i,className:m,...L}=n;return Object.entries(L).every(y=>{let[p,S]=y;return Array.isArray(S)?S.includes({...l,...u}[p]):{...l,...u}[p]===S})?[...d,i,m]:d},[]);return ir(e,s,f,t?.class,t?.className)};import{jsx as an}from"react/jsx-runtime";var Qf=cr("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});import{jsx as Le,jsxs as ht}from"react/jsx-runtime";function pr({...e}){return Le(fe.Root,{"data-slot":"dialog",...e})}function us({...e}){return Le(fe.Portal,{"data-slot":"dialog-portal",...e})}function ss({className:e,...a}){return Le(fe.Overlay,{"data-slot":"dialog-overlay",className:j("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...a})}function mr({className:e,children:a,showCloseButton:t=!0,...o}){return ht(us,{"data-slot":"dialog-portal",children:[Le(ss,{}),ht(fe.Content,{"data-slot":"dialog-content",className:j("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",e),...o,children:[a,t&&ht(fe.Close,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[Le(Ze,{}),Le("span",{className:"sr-only",children:"Close"})]})]})]})}function Lr({className:e,...a}){return Le("div",{"data-slot":"dialog-header",className:j("flex flex-col gap-2 text-center sm:text-left",e),...a})}function xr({className:e,...a}){return Le(fe.Title,{"data-slot":"dialog-title",className:j("text-lg leading-none font-semibold",e),...a})}function gr({className:e,...a}){return Le(fe.Description,{"data-slot":"dialog-description",className:j("text-sm text-muted-foreground",e),...a})}import{jsx as J,jsxs as It}from"react/jsx-runtime";function ds({className:e,...a}){return J(Ie,{"data-slot":"command",className:j("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...a})}function Ln({title:e="Command Palette",description:a="Search for a command to run...",children:t,className:o,showCloseButton:r=!0,...l}){return It(pr,{...l,children:[It(Lr,{className:"sr-only",children:[J(xr,{children:e}),J(gr,{children:a})]}),J(mr,{className:j("overflow-hidden p-0",o),showCloseButton:r,children:J(ds,{className:"**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t})})]})}function xn({className:e,...a}){return It("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[J($e,{className:"size-4 shrink-0 opacity-50"}),J(Ie.Input,{"data-slot":"command-input",className:j("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...a})]})}function gn({className:e,...a}){return J(Ie.List,{"data-slot":"command-list",className:j("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...a})}function hn({...e}){return J(Ie.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function In({className:e,...a}){return J(Ie.Group,{"data-slot":"command-group",className:j("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...a})}function Cn({className:e,...a}){return J(Ie.Separator,{"data-slot":"command-separator",className:j("-mx-1 h-px bg-border",e),...a})}function Sn({className:e,...a}){return J(Ie.Item,{"data-slot":"command-item",className:j("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...a})}function wn({className:e,...a}){return J("span",{"data-slot":"command-shortcut",className:j("ml-auto text-xs tracking-widest text-muted-foreground",e),...a})}export{ds as Command,Ln as CommandDialog,hn as CommandEmpty,In as CommandGroup,xn as CommandInput,Sn as CommandItem,gn as CommandList,Cn as CommandSeparator,wn as CommandShortcut}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/search.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/x.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/8e3817d7fea2376c1466894b97b001370b03cc213d1008a5a21e4f7f015d88a0 b/b/8e3817d7fea2376c1466894b97b001370b03cc213d1008a5a21e4f7f015d88a0 new file mode 100644 index 0000000000000000000000000000000000000000..3c7a784d37836686748fbdeab9defd6bc8fa63ca --- /dev/null +++ b/b/8e3817d7fea2376c1466894b97b001370b03cc213d1008a5a21e4f7f015d88a0 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.separator-demo", + "name": "separator-demo", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/separator-demo.json", + "did": "did:holo:sha256:128e76026308dd47d64a7935b2847bc9e4fd20de5c08653c9dae6807858d838d", + "import": "holo://sha256:7836e41c8e30701bd78899f207f1a37ca95439dd7dd9430e81b4cd27df7a174c", + "integrity": "sha256-eDbkHI4wcBvXiJnyB/GjfKlUOd192UMOgbTNJ996F0w=", + "kappa": "sha256:128e76026308dd47d64a7935b2847bc9e4fd20de5c08653c9dae6807858d838d", + "moduleKappa": "sha256:7836e41c8e30701bd78899f207f1a37ca95439dd7dd9430e81b4cd27df7a174c", + "renderExport": "default", + "source": "registry/new-york-v4/examples/separator-demo.tsx", + "module": "vendor/components/separator-demo.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/8e38884e8f25f3cf4c1378da129875cb9a3c569cc7b7c947e0110f08be55ccf7 b/b/8e38884e8f25f3cf4c1378da129875cb9a3c569cc7b7c947e0110f08be55ccf7 new file mode 100644 index 0000000000000000000000000000000000000000..8d994e2030f910a53aecc99f9ede24cc999a878e --- /dev/null +++ b/b/8e38884e8f25f3cf4c1378da129875cb9a3c569cc7b7c947e0110f08be55ccf7 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.block.sidebar-15", + "name": "sidebar-15", + "tier": "block", + "library": "shadcn", + "category": "Blocks", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/sidebar-15.json", + "did": "did:holo:sha256:75a4f5150fb75713b9db1638835151f4cd5cf9f7f4dd1249c9be0c49f24f1e68", + "import": "holo://sha256:352fcd7ee4b47d3d9826ccc9346527892951eb82f52f7edcd732274cd8259256", + "integrity": "sha256-NS/NfuS0fT2YJszJNGUniSlR64L1L37c1zInTNglklY=", + "kappa": "sha256:75a4f5150fb75713b9db1638835151f4cd5cf9f7f4dd1249c9be0c49f24f1e68", + "moduleKappa": "sha256:352fcd7ee4b47d3d9826ccc9346527892951eb82f52f7edcd732274cd8259256", + "renderExport": "default", + "source": "registry/new-york-v4/blocks/sidebar-15/page.tsx", + "module": "vendor/components/sidebar-15.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/8e41fd9b9e2aab8f8524a998337c61d1227ea2367127cc4db699c6f574f49920 b/b/8e41fd9b9e2aab8f8524a998337c61d1227ea2367127cc4db699c6f574f49920 new file mode 100644 index 0000000000000000000000000000000000000000..bfd99eb59d91173d7bb16fddb1439951608b051f --- /dev/null +++ b/b/8e41fd9b9e2aab8f8524a998337c61d1227ea2367127cc4db699c6f574f49920 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.block.sidebar-04", + "name": "sidebar-04", + "tier": "block", + "library": "shadcn", + "category": "Blocks", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/sidebar-04.json", + "did": "did:holo:sha256:2c4090bfdc0a971b7b688b91b218247d2ae4f46c3c65290990db26c571d689a8", + "import": "holo://sha256:c714c15351ecc3f7072ada8b121013a0e2e95c267e922bd85a1a8250c1fd915f", + "integrity": "sha256-xxTBU1Hsw/cHKtqLEhAToOLpXCZ+kivYWhqCUMH9kV8=", + "kappa": "sha256:2c4090bfdc0a971b7b688b91b218247d2ae4f46c3c65290990db26c571d689a8", + "moduleKappa": "sha256:c714c15351ecc3f7072ada8b121013a0e2e95c267e922bd85a1a8250c1fd915f", + "renderExport": "default", + "source": "registry/new-york-v4/blocks/sidebar-04/page.tsx", + "module": "vendor/components/sidebar-04.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/8e42cdf523f0ec2a6a9505e27590d1d42566461fbb4b13bae9372c98dcd88fef b/b/8e42cdf523f0ec2a6a9505e27590d1d42566461fbb4b13bae9372c98dcd88fef new file mode 100644 index 0000000000000000000000000000000000000000..da6db1392967ab1884173dcb6b8abe4675041826 --- /dev/null +++ b/b/8e42cdf523f0ec2a6a9505e27590d1d42566461fbb4b13bae9372c98dcd88fef @@ -0,0 +1 @@ +/*! 🌼 daisyUI 5.5.22 - MIT License */ @layer utilities{.fab{@layer daisyui.l1.l2.l3{&{pointer-events:none;inset-inline-end:1rem;z-index:999;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));white-space:nowrap;flex-direction:column-reverse;align-items:flex-end;gap:.5rem;display:flex;position:fixed;bottom:1rem}&>*{pointer-events:auto;align-items:center;gap:.5rem;display:flex;&:hover,&:has(:focus-visible){z-index:1}}&>[tabindex]{&:first-child{transition-property:opacity,visibility,rotate;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:grid;position:relative}}& .fab-close,& .fab-main-action{inset-inline-end:0;position:absolute;bottom:0}&:focus-within{&:has(.fab-close),&:has(.fab-main-action){&>[tabindex]{opacity:0;rotate:90deg}}}&>:nth-child(n+2){visibility:hidden;--tw-scale-x:80%;--tw-scale-y:80%;--tw-scale-z:80%;scale:var(--tw-scale-x)var(--tw-scale-y);opacity:0;transition-property:opacity,scale,visibility;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);&.fab-main-action,&.fab-close{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}}&>:nth-child(3){transition-delay:30ms}&>:nth-child(4){transition-delay:60ms}&>:nth-child(5){transition-delay:90ms}&>:nth-child(6){transition-delay:.12s}&:focus-within{&>[tabindex]:first-child{pointer-events:none}&>:nth-child(n+2){visibility:visible;--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y);opacity:1}}}}.fab-flower{@layer daisyui.l1.l2.l3{&{--position:0rem;display:grid}&>:nth-child(-n+2){--position:0rem}&>*{--degree:180deg;--flip-degree:calc(180deg - var(--degree));transform:translateX(calc(cos(var(--degree))*var(--position)))translateY(calc(sin(var(--degree))*-1*var(--position)));grid-area:1/1;[dir=rtl] &{transform:translateX(calc(cos(var(--flip-degree))*var(--position)))translateY(calc(sin(var(--flip-degree))*-1*var(--position)))}}&>:nth-child(n+7){display:none}&:has(:nth-child(3)){--position:140%;&>:nth-child(3){--degree:135deg}}&:has(:nth-child(4)){--position:140%;&>:nth-child(3){--degree:165deg}&>:nth-child(4){--degree:105deg}}&:has(:nth-child(5)){--position:180%;&>:nth-child(3){--degree:180deg}&>:nth-child(4){--degree:135deg}&>:nth-child(5){--degree:90deg}}&:has(:nth-child(6)){--position:220%;&>:nth-child(3){--degree:180deg}&>:nth-child(4){--degree:150deg}&>:nth-child(5){--degree:120deg}&>:nth-child(6){--degree:90deg}}}}@media (width>=640px){.sm\:fab{@layer daisyui.l1.l2.l3{&{pointer-events:none;inset-inline-end:1rem;z-index:999;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));white-space:nowrap;flex-direction:column-reverse;align-items:flex-end;gap:.5rem;display:flex;position:fixed;bottom:1rem}&>*{pointer-events:auto;align-items:center;gap:.5rem;display:flex;&:hover,&:has(:focus-visible){z-index:1}}&>[tabindex]{&:first-child{transition-property:opacity,visibility,rotate;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:grid;position:relative}}& .fab-close,& .fab-main-action{inset-inline-end:0;position:absolute;bottom:0}&:focus-within{&:has(.fab-close),&:has(.fab-main-action){&>[tabindex]{opacity:0;rotate:90deg}}}&>:nth-child(n+2){visibility:hidden;--tw-scale-x:80%;--tw-scale-y:80%;--tw-scale-z:80%;scale:var(--tw-scale-x)var(--tw-scale-y);opacity:0;transition-property:opacity,scale,visibility;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);&.fab-main-action,&.fab-close{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}}&>:nth-child(3){transition-delay:30ms}&>:nth-child(4){transition-delay:60ms}&>:nth-child(5){transition-delay:90ms}&>:nth-child(6){transition-delay:.12s}&:focus-within{&>[tabindex]:first-child{pointer-events:none}&>:nth-child(n+2){visibility:visible;--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y);opacity:1}}}}.sm\:fab-flower{@layer daisyui.l1.l2.l3{&{--position:0rem;display:grid}&>:nth-child(-n+2){--position:0rem}&>*{--degree:180deg;--flip-degree:calc(180deg - var(--degree));transform:translateX(calc(cos(var(--degree))*var(--position)))translateY(calc(sin(var(--degree))*-1*var(--position)));grid-area:1/1;[dir=rtl] &{transform:translateX(calc(cos(var(--flip-degree))*var(--position)))translateY(calc(sin(var(--flip-degree))*-1*var(--position)))}}&>:nth-child(n+7){display:none}&:has(:nth-child(3)){--position:140%;&>:nth-child(3){--degree:135deg}}&:has(:nth-child(4)){--position:140%;&>:nth-child(3){--degree:165deg}&>:nth-child(4){--degree:105deg}}&:has(:nth-child(5)){--position:180%;&>:nth-child(3){--degree:180deg}&>:nth-child(4){--degree:135deg}&>:nth-child(5){--degree:90deg}}&:has(:nth-child(6)){--position:220%;&>:nth-child(3){--degree:180deg}&>:nth-child(4){--degree:150deg}&>:nth-child(5){--degree:120deg}&>:nth-child(6){--degree:90deg}}}}}@media (width>=768px){.md\:fab{@layer daisyui.l1.l2.l3{&{pointer-events:none;inset-inline-end:1rem;z-index:999;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));white-space:nowrap;flex-direction:column-reverse;align-items:flex-end;gap:.5rem;display:flex;position:fixed;bottom:1rem}&>*{pointer-events:auto;align-items:center;gap:.5rem;display:flex;&:hover,&:has(:focus-visible){z-index:1}}&>[tabindex]{&:first-child{transition-property:opacity,visibility,rotate;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:grid;position:relative}}& .fab-close,& .fab-main-action{inset-inline-end:0;position:absolute;bottom:0}&:focus-within{&:has(.fab-close),&:has(.fab-main-action){&>[tabindex]{opacity:0;rotate:90deg}}}&>:nth-child(n+2){visibility:hidden;--tw-scale-x:80%;--tw-scale-y:80%;--tw-scale-z:80%;scale:var(--tw-scale-x)var(--tw-scale-y);opacity:0;transition-property:opacity,scale,visibility;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);&.fab-main-action,&.fab-close{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}}&>:nth-child(3){transition-delay:30ms}&>:nth-child(4){transition-delay:60ms}&>:nth-child(5){transition-delay:90ms}&>:nth-child(6){transition-delay:.12s}&:focus-within{&>[tabindex]:first-child{pointer-events:none}&>:nth-child(n+2){visibility:visible;--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y);opacity:1}}}}.md\:fab-flower{@layer daisyui.l1.l2.l3{&{--position:0rem;display:grid}&>:nth-child(-n+2){--position:0rem}&>*{--degree:180deg;--flip-degree:calc(180deg - var(--degree));transform:translateX(calc(cos(var(--degree))*var(--position)))translateY(calc(sin(var(--degree))*-1*var(--position)));grid-area:1/1;[dir=rtl] &{transform:translateX(calc(cos(var(--flip-degree))*var(--position)))translateY(calc(sin(var(--flip-degree))*-1*var(--position)))}}&>:nth-child(n+7){display:none}&:has(:nth-child(3)){--position:140%;&>:nth-child(3){--degree:135deg}}&:has(:nth-child(4)){--position:140%;&>:nth-child(3){--degree:165deg}&>:nth-child(4){--degree:105deg}}&:has(:nth-child(5)){--position:180%;&>:nth-child(3){--degree:180deg}&>:nth-child(4){--degree:135deg}&>:nth-child(5){--degree:90deg}}&:has(:nth-child(6)){--position:220%;&>:nth-child(3){--degree:180deg}&>:nth-child(4){--degree:150deg}&>:nth-child(5){--degree:120deg}&>:nth-child(6){--degree:90deg}}}}}@media (width>=1024px){.lg\:fab{@layer daisyui.l1.l2.l3{&{pointer-events:none;inset-inline-end:1rem;z-index:999;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));white-space:nowrap;flex-direction:column-reverse;align-items:flex-end;gap:.5rem;display:flex;position:fixed;bottom:1rem}&>*{pointer-events:auto;align-items:center;gap:.5rem;display:flex;&:hover,&:has(:focus-visible){z-index:1}}&>[tabindex]{&:first-child{transition-property:opacity,visibility,rotate;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:grid;position:relative}}& .fab-close,& .fab-main-action{inset-inline-end:0;position:absolute;bottom:0}&:focus-within{&:has(.fab-close),&:has(.fab-main-action){&>[tabindex]{opacity:0;rotate:90deg}}}&>:nth-child(n+2){visibility:hidden;--tw-scale-x:80%;--tw-scale-y:80%;--tw-scale-z:80%;scale:var(--tw-scale-x)var(--tw-scale-y);opacity:0;transition-property:opacity,scale,visibility;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);&.fab-main-action,&.fab-close{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}}&>:nth-child(3){transition-delay:30ms}&>:nth-child(4){transition-delay:60ms}&>:nth-child(5){transition-delay:90ms}&>:nth-child(6){transition-delay:.12s}&:focus-within{&>[tabindex]:first-child{pointer-events:none}&>:nth-child(n+2){visibility:visible;--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y);opacity:1}}}}.lg\:fab-flower{@layer daisyui.l1.l2.l3{&{--position:0rem;display:grid}&>:nth-child(-n+2){--position:0rem}&>*{--degree:180deg;--flip-degree:calc(180deg - var(--degree));transform:translateX(calc(cos(var(--degree))*var(--position)))translateY(calc(sin(var(--degree))*-1*var(--position)));grid-area:1/1;[dir=rtl] &{transform:translateX(calc(cos(var(--flip-degree))*var(--position)))translateY(calc(sin(var(--flip-degree))*-1*var(--position)))}}&>:nth-child(n+7){display:none}&:has(:nth-child(3)){--position:140%;&>:nth-child(3){--degree:135deg}}&:has(:nth-child(4)){--position:140%;&>:nth-child(3){--degree:165deg}&>:nth-child(4){--degree:105deg}}&:has(:nth-child(5)){--position:180%;&>:nth-child(3){--degree:180deg}&>:nth-child(4){--degree:135deg}&>:nth-child(5){--degree:90deg}}&:has(:nth-child(6)){--position:220%;&>:nth-child(3){--degree:180deg}&>:nth-child(4){--degree:150deg}&>:nth-child(5){--degree:120deg}&>:nth-child(6){--degree:90deg}}}}}@media (width>=1280px){.xl\:fab{@layer daisyui.l1.l2.l3{&{pointer-events:none;inset-inline-end:1rem;z-index:999;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));white-space:nowrap;flex-direction:column-reverse;align-items:flex-end;gap:.5rem;display:flex;position:fixed;bottom:1rem}&>*{pointer-events:auto;align-items:center;gap:.5rem;display:flex;&:hover,&:has(:focus-visible){z-index:1}}&>[tabindex]{&:first-child{transition-property:opacity,visibility,rotate;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:grid;position:relative}}& .fab-close,& .fab-main-action{inset-inline-end:0;position:absolute;bottom:0}&:focus-within{&:has(.fab-close),&:has(.fab-main-action){&>[tabindex]{opacity:0;rotate:90deg}}}&>:nth-child(n+2){visibility:hidden;--tw-scale-x:80%;--tw-scale-y:80%;--tw-scale-z:80%;scale:var(--tw-scale-x)var(--tw-scale-y);opacity:0;transition-property:opacity,scale,visibility;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);&.fab-main-action,&.fab-close{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}}&>:nth-child(3){transition-delay:30ms}&>:nth-child(4){transition-delay:60ms}&>:nth-child(5){transition-delay:90ms}&>:nth-child(6){transition-delay:.12s}&:focus-within{&>[tabindex]:first-child{pointer-events:none}&>:nth-child(n+2){visibility:visible;--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y);opacity:1}}}}.xl\:fab-flower{@layer daisyui.l1.l2.l3{&{--position:0rem;display:grid}&>:nth-child(-n+2){--position:0rem}&>*{--degree:180deg;--flip-degree:calc(180deg - var(--degree));transform:translateX(calc(cos(var(--degree))*var(--position)))translateY(calc(sin(var(--degree))*-1*var(--position)));grid-area:1/1;[dir=rtl] &{transform:translateX(calc(cos(var(--flip-degree))*var(--position)))translateY(calc(sin(var(--flip-degree))*-1*var(--position)))}}&>:nth-child(n+7){display:none}&:has(:nth-child(3)){--position:140%;&>:nth-child(3){--degree:135deg}}&:has(:nth-child(4)){--position:140%;&>:nth-child(3){--degree:165deg}&>:nth-child(4){--degree:105deg}}&:has(:nth-child(5)){--position:180%;&>:nth-child(3){--degree:180deg}&>:nth-child(4){--degree:135deg}&>:nth-child(5){--degree:90deg}}&:has(:nth-child(6)){--position:220%;&>:nth-child(3){--degree:180deg}&>:nth-child(4){--degree:150deg}&>:nth-child(5){--degree:120deg}&>:nth-child(6){--degree:90deg}}}}}@media (width>=1536px){.\32 xl\:fab{@layer daisyui.l1.l2.l3{&{pointer-events:none;inset-inline-end:1rem;z-index:999;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));white-space:nowrap;flex-direction:column-reverse;align-items:flex-end;gap:.5rem;display:flex;position:fixed;bottom:1rem}&>*{pointer-events:auto;align-items:center;gap:.5rem;display:flex;&:hover,&:has(:focus-visible){z-index:1}}&>[tabindex]{&:first-child{transition-property:opacity,visibility,rotate;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:grid;position:relative}}& .fab-close,& .fab-main-action{inset-inline-end:0;position:absolute;bottom:0}&:focus-within{&:has(.fab-close),&:has(.fab-main-action){&>[tabindex]{opacity:0;rotate:90deg}}}&>:nth-child(n+2){visibility:hidden;--tw-scale-x:80%;--tw-scale-y:80%;--tw-scale-z:80%;scale:var(--tw-scale-x)var(--tw-scale-y);opacity:0;transition-property:opacity,scale,visibility;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);&.fab-main-action,&.fab-close{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}}&>:nth-child(3){transition-delay:30ms}&>:nth-child(4){transition-delay:60ms}&>:nth-child(5){transition-delay:90ms}&>:nth-child(6){transition-delay:.12s}&:focus-within{&>[tabindex]:first-child{pointer-events:none}&>:nth-child(n+2){visibility:visible;--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y);opacity:1}}}}.\32 xl\:fab-flower{@layer daisyui.l1.l2.l3{&{--position:0rem;display:grid}&>:nth-child(-n+2){--position:0rem}&>*{--degree:180deg;--flip-degree:calc(180deg - var(--degree));transform:translateX(calc(cos(var(--degree))*var(--position)))translateY(calc(sin(var(--degree))*-1*var(--position)));grid-area:1/1;[dir=rtl] &{transform:translateX(calc(cos(var(--flip-degree))*var(--position)))translateY(calc(sin(var(--flip-degree))*-1*var(--position)))}}&>:nth-child(n+7){display:none}&:has(:nth-child(3)){--position:140%;&>:nth-child(3){--degree:135deg}}&:has(:nth-child(4)){--position:140%;&>:nth-child(3){--degree:165deg}&>:nth-child(4){--degree:105deg}}&:has(:nth-child(5)){--position:180%;&>:nth-child(3){--degree:180deg}&>:nth-child(4){--degree:135deg}&>:nth-child(5){--degree:90deg}}&:has(:nth-child(6)){--position:220%;&>:nth-child(3){--degree:180deg}&>:nth-child(4){--degree:150deg}&>:nth-child(5){--degree:120deg}&>:nth-child(6){--degree:90deg}}}}}} \ No newline at end of file diff --git a/b/8e4afdd4e1e46c662e0719feec3d6f9d1589f389a920eb56e93f5e1325ee9b2d b/b/8e4afdd4e1e46c662e0719feec3d6f9d1589f389a920eb56e93f5e1325ee9b2d new file mode 100644 index 0000000000000000000000000000000000000000..e49c5bc0085c271f07d6cfed09531be420c962f9 --- /dev/null +++ b/b/8e4afdd4e1e46c662e0719feec3d6f9d1589f389a920eb56e93f5e1325ee9b2d @@ -0,0 +1,33 @@ +import { ArrowUpIcon } from "lucide-react" + +import { + InputGroup, + InputGroupAddon, + InputGroupButton, + InputGroupInput, + InputGroupTextarea, +} from "@/registry/new-york-v4/ui/input-group" +import { Spinner } from "@/registry/new-york-v4/ui/spinner" + +export default function SpinnerInputGroup() { + return ( +
    + + + + + + + + + + Validating... + + + Send + + + +
    + ) +} diff --git a/b/8e4df7bf8494883e7e58a906cdadcb7e5eca2f297a665b15770a957ef804f45d b/b/8e4df7bf8494883e7e58a906cdadcb7e5eca2f297a665b15770a957ef804f45d new file mode 100644 index 0000000000000000000000000000000000000000..c4ca8674ee42a22e9572fa385318cb4b42da2fac --- /dev/null +++ b/b/8e4df7bf8494883e7e58a906cdadcb7e5eca2f297a665b15770a957ef804f45d @@ -0,0 +1,93 @@ +"use client" + +import { TrendingUp } from "lucide-react" +import { Pie, PieChart } from "recharts" + +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + ChartContainer, + ChartTooltip, + ChartTooltipContent, + type ChartConfig, +} from "@/registry/new-york-v4/ui/chart" + +export const description = "A donut chart" + +const chartData = [ + { browser: "chrome", visitors: 275, fill: "var(--color-chrome)" }, + { browser: "safari", visitors: 200, fill: "var(--color-safari)" }, + { browser: "firefox", visitors: 187, fill: "var(--color-firefox)" }, + { browser: "edge", visitors: 173, fill: "var(--color-edge)" }, + { browser: "other", visitors: 90, fill: "var(--color-other)" }, +] + +const chartConfig = { + visitors: { + label: "Visitors", + }, + chrome: { + label: "Chrome", + color: "var(--chart-1)", + }, + safari: { + label: "Safari", + color: "var(--chart-2)", + }, + firefox: { + label: "Firefox", + color: "var(--chart-3)", + }, + edge: { + label: "Edge", + color: "var(--chart-4)", + }, + other: { + label: "Other", + color: "var(--chart-5)", + }, +} satisfies ChartConfig + +export function ChartPieDonut() { + return ( + + + Pie Chart - Donut + January - June 2024 + + + + + } + /> + + + + + +
    + Trending up by 5.2% this month +
    +
    + Showing total visitors for the last 6 months +
    +
    +
    + ) +} diff --git a/b/8e66799a41879ff6ab4ce4259e687a9e8bf4d0b4c1bf15ab2405b346757963c8 b/b/8e66799a41879ff6ab4ce4259e687a9e8bf4d0b4c1bf15ab2405b346757963c8 new file mode 100644 index 0000000000000000000000000000000000000000..6432b267a128673a6ee8dfe79aefa7b904b9de8d --- /dev/null +++ b/b/8e66799a41879ff6ab4ce4259e687a9e8bf4d0b4c1bf15ab2405b346757963c8 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.light-rays", + "name": "light-rays", + "tier": "component", + "library": "magicui", + "category": "Special Effects", + "upstream": "https://magicui.design/r/light-rays.json", + "did": "did:holo:sha256:e0b8d42d19a7b05b80f69bf023dadc24143d6b7b75da113bd158eddbf36d46bf", + "import": "holo://sha256:ffc856c148c1d323da09f777b4b0a73013e6f2c7c9e44e038ebf2486b114e9a8", + "integrity": "sha256-/8hWwUjB0yPaCfd3tLCnMBPm8sfJ5E4Djr8khrEU6ag=", + "kappa": "sha256:e0b8d42d19a7b05b80f69bf023dadc24143d6b7b75da113bd158eddbf36d46bf", + "moduleKappa": "sha256:ffc856c148c1d323da09f777b4b0a73013e6f2c7c9e44e038ebf2486b114e9a8", + "renderExport": "LightRays", + "source": "components/ui/light-rays.tsx", + "module": "vendor/components/light-rays.js", + "exports": [ + "LightRays" + ], + "license": "MIT" +} diff --git a/b/8ea43e5b9f4f061bdea3c4d37cce0b4ec9707e630a151b7bdbbf65283aaa9244 b/b/8ea43e5b9f4f061bdea3c4d37cce0b4ec9707e630a151b7bdbbf65283aaa9244 new file mode 100644 index 0000000000000000000000000000000000000000..06b65b674558570e0942d1553bd93fbd8e23657a --- /dev/null +++ b/b/8ea43e5b9f4f061bdea3c4d37cce0b4ec9707e630a151b7bdbbf65283aaa9244 @@ -0,0 +1,31 @@ +:root:has(input.theme-controller[value=lofi]:checked),[data-theme="lofi"] { +color-scheme: light; +--color-base-100: oklch(100% 0 0); +--color-base-200: oklch(97% 0 0); +--color-base-300: oklch(94% 0 0); +--color-base-content: oklch(0% 0 0); +--color-primary: oklch(15.906% 0 0); +--color-primary-content: oklch(100% 0 0); +--color-secondary: oklch(21.455% 0.001 17.278); +--color-secondary-content: oklch(100% 0 0); +--color-accent: oklch(26.861% 0 0); +--color-accent-content: oklch(100% 0 0); +--color-neutral: oklch(0% 0 0); +--color-neutral-content: oklch(100% 0 0); +--color-info: oklch(79.54% 0.103 205.9); +--color-info-content: oklch(15.908% 0.02 205.9); +--color-success: oklch(90.13% 0.153 164.14); +--color-success-content: oklch(18.026% 0.03 164.14); +--color-warning: oklch(88.37% 0.135 79.94); +--color-warning-content: oklch(17.674% 0.027 79.94); +--color-error: oklch(78.66% 0.15 28.47); +--color-error-content: oklch(15.732% 0.03 28.47); +--radius-selector: 2rem; +--radius-field: 0.25rem; +--radius-box: 0.5rem; +--size-selector: 0.25rem; +--size-field: 0.25rem; +--border: 1px; +--depth: 0; +--noise: 0; +} diff --git a/b/8eb8dc77dea98b86390f5d91c2a14061c882a707553831f8ee4e29dae0dde110 b/b/8eb8dc77dea98b86390f5d91c2a14061c882a707553831f8ee4e29dae0dde110 new file mode 100644 index 0000000000000000000000000000000000000000..edc68a7c0a8de8077dfeaaf86f07514ce8913b9a --- /dev/null +++ b/b/8eb8dc77dea98b86390f5d91c2a14061c882a707553831f8ee4e29dae0dde110 @@ -0,0 +1 @@ +export default {".mockup-code":{"@layer daisyui.l1.l2.l3":{"position":"relative","overflow":"hidden","overflow-x":"auto","border-radius":"var(--radius-box)","background-color":"var(--color-neutral)","padding-block":"calc(0.25rem * 5)","color":"var(--color-neutral-content)","font-size":"0.875rem","direction":"ltr","&:before":{"content":"\"\"","margin-bottom":"calc(0.25rem * 4)","display":"block","height":"calc(0.25rem * 3)","width":"calc(0.25rem * 3)","border-radius":"calc(infinity * 1px)","opacity":"30%","box-shadow":"1.4em 0, 2.8em 0, 4.2em 0"},"pre":{"padding-right":"calc(0.25rem * 5)","&:before":{"content":"\"\"","margin-right":"2ch"},"&[data-prefix]":{"&:before":{"--tw-content":"attr(data-prefix)","content":"var(--tw-content)","display":"inline-block","width":"calc(0.25rem * 8)","text-align":"right","opacity":"50%"}}}}},".mockup-window":{"@layer daisyui.l1.l2.l3":{"position":"relative","display":"flex","flex-direction":"column","overflow":"hidden","overflow-x":"auto","border-radius":"var(--radius-box)","padding-top":"calc(0.25rem * 5)","&:before":{"content":"\"\"","margin-bottom":"calc(0.25rem * 4)","display":"block","aspect-ratio":"1 / 1","height":"calc(0.25rem * 3)","flex-shrink":0,"align-self":"flex-start","border-radius":"calc(infinity * 1px)","opacity":"30%","box-shadow":"1.4em 0, 2.8em 0, 4.2em 0"},"[dir=\"rtl\"] &:before":{"align-self":"flex-end"},"pre[data-prefix]":{"&:before":{"--tw-content":"attr(data-prefix)","content":"var(--tw-content)","display":"inline-block","text-align":"right"}}}},".mockup-browser":{"@layer daisyui.l1.l2.l3":{"position":"relative","overflow":"hidden","overflow-x":"auto","border-radius":"var(--radius-box)","pre[data-prefix]":{"&:before":{"--tw-content":"attr(data-prefix)","content":"var(--tw-content)","display":"inline-block","text-align":"right"}},".mockup-browser-toolbar":{"margin-block":"calc(0.25rem * 3)","display":"inline-flex","width":"100%","align-items":"center","padding-right":"1.4em","&:where(:dir(rtl), [dir=\"rtl\"], [dir=\"rtl\"] *)":{"flex-direction":"row-reverse"},"&:before":{"content":"\"\"","margin-right":"4.8rem","display":"inline-block","aspect-ratio":"1 / 1","height":"calc(0.25rem * 3)","border-radius":"calc(infinity * 1px)","opacity":"30%","box-shadow":"1.4em 0, 2.8em 0, 4.2em 0"},".input":{"margin-inline":"auto","display":"flex","height":"100%","align-items":"center","gap":"calc(0.25rem * 2)","overflow":"hidden","background-color":"var(--color-base-200)","text-overflow":"ellipsis","white-space":"nowrap","font-size":"0.75rem","direction":"ltr","&:before":{"content":"\"\"","width":"calc(0.25rem * 4)","height":"calc(0.25rem * 4)","opacity":"50%","background-color":"currentColor","mask":"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z' clip-rule='evenodd' /%3E%3C/svg%3E\") no-repeat center","mask-size":"contain"}}}}},".mockup-phone":{"@layer daisyui.l1.l2.l3":{"display":"inline-grid","justify-items":"center","border":"5px solid #6b6b6b","border-radius":"65px","background-color":"#000","padding":"6px","overflow":"hidden","width":"100%","max-width":"462px","aspect-ratio":"462 / 978","@supports (corner-shape: superellipse(1.45))":{"border-radius":"90px","corner-shape":"superellipse(1.45)"}}},".mockup-phone-camera":{"@layer daisyui.l1.l2.l3":{"grid-column":"1/1","grid-row":"1/1","background":"#000","height":"3.7%","width":"28%","border-radius":"17px","z-index":1,"margin-top":"3%"}},".mockup-phone-display":{"@layer daisyui.l1.l2.l3":{"border-radius":"54px","grid-column":"1/1","grid-row":"1/1","overflow":"hidden","width":"100%","height":"100%","@supports (corner-shape: superellipse(1.87))":{"border-radius":"101px","corner-shape":"superellipse(1.87)"},"& > img":{"width":"100%","height":"100%","object-fit":"cover"}}}}; \ No newline at end of file diff --git a/b/8ed151d30a76a18a7503fad151dccd4ae2472e7fa6e62c1359a0dcfaa34a7742 b/b/8ed151d30a76a18a7503fad151dccd4ae2472e7fa6e62c1359a0dcfaa34a7742 new file mode 100644 index 0000000000000000000000000000000000000000..9fd0f23349645ac87ed70cd6b93b9ea5e5dbd1b5 --- /dev/null +++ b/b/8ed151d30a76a18a7503fad151dccd4ae2472e7fa6e62c1359a0dcfaa34a7742 @@ -0,0 +1,366 @@ +// holo-orb.js — THE canonical living Q orb (shared by the standalone Q chat and the messenger; the messenger's +// holo-q-orb-live.mjs re-exports this file). mountOrb(canvas, opts?) → { stop, fallback, mode, ... } — the API is +// a superset of the original 54-line WebGL orb (opts optional, {stop,fallback} preserved), so existing callers +// are unaffected while every surface gains the enhanced renderer. Original preserved as holo-orb.js.pre-converge.bak. +// +// PRIMARY: a NATIVE-WebGPU raymarched volume rendered on a dedicated Web Worker via OffscreenCanvas. The render +// loop lives on the worker, PHYSICALLY off the main thread, so the orb stays glass-smooth and NEVER freezes even +// while the host's main thread is busy (React, Q inference, message churn). It binds the real GPU adapter +// (powerPreference:"high-performance", no fallback) → 100% native WebGPU, and renders at native DPR × SSAA for a +// crisp, hyper-real look. Fully self-contained: the worker is spawned from a Blob URL with inline WGSL — no deps, +// no import map, no extra files to serve, so it works in every environment (dev SPA and the real app alike). +// +// FALLBACK: the original self-contained WebGL2 wireframe icosphere (kept verbatim below), then a CSS/SVG orb. +// The gate is fail-closed and probe-before-transfer: the worker confirms a GPU adapter BEFORE the canvas is +// transferred, so a probe failure leaves the canvas reusable for the WebGL2 floor. +// +// mountOrb(canvas) → { stop(), fallback:boolean, mode } + +// ───────────────────────────────────────────────────────────────────────────────────────────────────────── +// WGSL — fullscreen-triangle vertex + a raymarched, noise-displaced SDF sphere with the OS brand spectrum +// (OKLAB-interpolated), a triangular lattice shell, thin-film iridescence, an inner living nebula, ACES filmic +// tonemap and temporal dither. Idle-animated (breath + spin + shimmer) so it's alive at rest with ZERO main- +// thread involvement. TERM-IDENTICAL to the native OS orb (usr/lib/holo/voice/holo-voice-orb-gpu.mjs): same +// march (72 steps / 4 octaves / radius 0.82 / freq 1.7 / glow 0.012), same full signal uniforms (level + bands +// + onset + energy + warm/dim/gold), same spin/swell/iridescence/nebula formulas — so the messenger's corner +// orb and the CEF home-tab orb are the SAME animation, pixel for pixel (minus the OS-only morph-form library). +// ───────────────────────────────────────────────────────────────────────────────────────────────────────── +const WGSL = ` +struct U { + res: vec2f, time: f32, level: f32, + bass: f32, mid: f32, treble: f32, onset: f32, + energy: f32, warm: f32, dim: f32, gold: f32, +}; +@group(0) @binding(0) var u: U; + +const STOPS = array( + vec3f(1.0, 0.231, 0.42), vec3f(1.0, 0.62, 0.173), vec3f(1.0, 0.886, 0.29), vec3f(0.275, 0.878, 0.541), + vec3f(0.169, 0.831, 1.0), vec3f(0.357, 0.549, 1.0), vec3f(0.78, 0.482, 1.0), vec3f(1.0, 0.231, 0.42)); + +@vertex fn vs(@builtin(vertex_index) vi: u32) -> @builtin(position) vec4f { + var p = array(vec2f(-1.0, -1.0), vec2f(3.0, -1.0), vec2f(-1.0, 3.0)); + return vec4f(p[vi], 0.0, 1.0); +} +fn hash(p3i: vec3f) -> f32 { var p3 = fract(p3i * 0.1031); p3 = p3 + dot(p3, p3.yzx + 33.33); return fract((p3.x + p3.y) * p3.z); } +fn vnoise(x: vec3f) -> f32 { + let i = floor(x); let f = fract(x); let w = f * f * (3.0 - 2.0 * f); + let n000 = hash(i + vec3f(0.0,0.0,0.0)); let n100 = hash(i + vec3f(1.0,0.0,0.0)); + let n010 = hash(i + vec3f(0.0,1.0,0.0)); let n110 = hash(i + vec3f(1.0,1.0,0.0)); + let n001 = hash(i + vec3f(0.0,0.0,1.0)); let n101 = hash(i + vec3f(1.0,0.0,1.0)); + let n011 = hash(i + vec3f(0.0,1.0,1.0)); let n111 = hash(i + vec3f(1.0,1.0,1.0)); + let x00 = mix(n000,n100,w.x); let x10 = mix(n010,n110,w.x); let x01 = mix(n001,n101,w.x); let x11 = mix(n011,n111,w.x); + return mix(mix(x00,x10,w.y), mix(x01,x11,w.y), w.z) * 2.0 - 1.0; +} +fn fbm(p0: vec3f) -> f32 { var p = p0; var a = 0.5; var s = 0.0; for (var i = 0; i < 4; i = i + 1) { s = s + a * vnoise(p); p = p * 1.9; a = a * 0.5; } return s; } +fn srgb2lin(c: vec3f) -> vec3f { return select(c/12.92, pow((c+0.055)/1.055, vec3f(2.4)), c > vec3f(0.04045)); } +fn lin2srgb(c: vec3f) -> vec3f { let x = max(c, vec3f(0.0)); return select(x*12.92, 1.055*pow(x, vec3f(1.0/2.4))-0.055, x > vec3f(0.0031308)); } +fn lin2oklab(c: vec3f) -> vec3f { + let l = 0.4122214708*c.r + 0.5363325363*c.g + 0.0514459929*c.b; + let m = 0.2119034982*c.r + 0.6806995451*c.g + 0.1073969566*c.b; + let s = 0.0883024619*c.r + 0.2817188376*c.g + 0.6299787005*c.b; + let l_ = pow(max(l,0.0),1.0/3.0); let m_ = pow(max(m,0.0),1.0/3.0); let s_ = pow(max(s,0.0),1.0/3.0); + return vec3f(0.2104542553*l_+0.7936177850*m_-0.0040720468*s_, 1.9779984951*l_-2.4285922050*m_+0.4505937099*s_, 0.0259040371*l_+0.7827717662*m_-0.8086757660*s_); +} +fn oklab2srgb(c: vec3f) -> vec3f { + let l_ = c.x+0.3963377774*c.y+0.2158037573*c.z; let m_ = c.x-0.1055613458*c.y-0.0638541728*c.z; let s_ = c.x-0.0894841775*c.y-1.2914855480*c.z; + let l = l_*l_*l_; let m = m_*m_*m_; let s = s_*s_*s_; + let lin = vec3f(4.0767416621*l-3.3077115913*m+0.2309699292*s, -1.2684380046*l+2.6097574011*m-0.3413193965*s, -0.0041960863*l-0.7034186147*m+1.7076147010*s); + return lin2srgb(lin); +} +fn spec(t0: f32) -> vec3f { let t = fract(t0) * 7.0; let k = clamp(i32(floor(t)), 0, 6); let a = lin2oklab(srgb2lin(STOPS[k])); let b = lin2oklab(srgb2lin(STOPS[k+1])); return oklab2srgb(mix(a, b, fract(t))); } +fn sdf(p: vec3f) -> f32 { + let R = 0.82 + u.level * 0.05 + u.onset * 0.03 + sin(u.time * 0.6) * 0.012; + let warp = vec3f(u.time*0.05, u.time*0.06, u.time*0.07); + let disp = fbm(p * 1.7 + warp) * (0.07 + u.level * 0.20 + u.mid * 0.14 + u.bass * 0.10); + return length(p) - R - disp; +} +fn nrm(p: vec3f) -> vec3f { let e = vec2f(0.0012, 0.0); return normalize(vec3f(sdf(p+e.xyy)-sdf(p-e.xyy), sdf(p+e.yxy)-sdf(p-e.yxy), sdf(p+e.yyx)-sdf(p-e.yyx))); } +fn gline(x: f32) -> f32 { return smoothstep(0.42, 0.5, abs(fract(x) - 0.5)); } +fn ign(p: vec2f) -> f32 { return fract(52.9829189 * fract(dot(p, vec2f(0.06711056, 0.00583715)))); } +fn aces(x: vec3f) -> vec3f { let a=2.51; let b=0.03; let c=2.43; let d=0.59; let e=0.14; return clamp((x*(a*x+b))/(x*(c*x+d)+e), vec3f(0.0), vec3f(1.0)); } + +@fragment fn fs(@builtin(position) fc: vec4f) -> @location(0) vec4f { + let uv = (fc.xy - 0.5 * u.res) / u.res.y; + let ro = vec3f(0.0, 0.0, 3.6); + let rd = normalize(vec3f(uv.x, -uv.y, -1.5)); + let spin = u.time / 7.0 * (1.0 + u.level * 1.6 + u.treble * 1.4) * (0.4 + 0.6 * u.energy); + var t = 0.0; var glow = 0.0; var neb = 0.0; var hit = false; var hp = vec3f(0.0); + var omega = 1.2; var prevD = 1e9; var stepLen = 0.0; + for (var i = 0; i < 72; i = i + 1) { + let p = ro + rd * t; let d = sdf(p); + if (omega > 1.0 && (d + prevD) < stepLen) { t = t - stepLen; omega = 1.0; prevD = 1e9; continue; } + prevD = d; + glow = glow + 0.012 / (1.0 + d * d * 42.0); + if (d < 0.0) { neb = neb + (0.5 + 0.5 * fbm(p * 2.72 + vec3f(u.time * 0.09))) * 0.05; } + if (d < 0.0015) { hit = true; hp = p; break; } + stepLen = max(d * omega, 0.004); t = t + stepLen; + if (t > 6.0) { break; } + } + var col = vec3f(0.0); var alpha = 0.0; + if (hit) { + let n = nrm(hp); + let lon = atan2(n.x, n.z) / 6.2831853 + 0.5; + let lat = acos(clamp(n.y, -1.0, 1.0)) / 3.14159265; + let hue = lon + spin + 0.18 * n.y; + let base = spec(hue); + let fres = pow(1.0 - max(dot(n, -rd), 0.0), 2.5); + let ld = normalize(vec3f(-0.4, 0.7, 0.5)); + let diff = 0.5 + 0.5 * max(dot(n, ld), 0.0); + let irid = spec(hue + fres * 0.30 + u.treble * 0.08); + let bodyHue = mix(base, irid, fres * 0.45); + let A = lon * 18.0; let B = lat * 11.0; let pf = sin(lat * 3.14159265); + let g = max(gline(B), max(gline(A + B * 0.5), gline(A - B * 0.5))) * pf; + let face = bodyHue * (0.28 + 0.30 * diff); + let dofs = 0.020 * (0.5 + fres); + let edgeRGB = vec3f(spec(hue - dofs).r, spec(hue).g, spec(hue + dofs).b); + let edge = (edgeRGB * 1.7 + vec3f(0.22, 0.22, 0.32)) * (0.7 + 0.6 * fres); + col = mix(face, edge, g) + bodyHue * fres * 0.55; + col = col * (0.9 + u.level * 0.45 + u.onset * 0.5); + alpha = max(g, 0.34 + 0.45 * fres); + } + let ncol = spec(spin + 0.55 + neb); + col = col + ncol * neb * (0.7 + u.level * 0.9 + u.bass * 0.8); + let gcol = spec(spin + 0.25); + col = col + gcol * glow * (0.6 + u.level * 1.0 + u.treble * 0.7); + alpha = max(alpha, clamp((glow + neb * 0.6) * 1.2, 0.0, 1.0)); + if (u.gold > 0.0) { col = mix(col, vec3f(1.0, 0.78, 0.20) * (0.4 + 0.9 * length(col)), u.gold); } + col.r = col.r * (1.0 + u.warm * 0.10); + col.b = col.b * (1.0 - u.warm * 0.30); + col = col * (1.0 - u.dim * 0.4); + col = aces(col * 1.18); + col = col + (ign(fc.xy + u.time * 60.0) - 0.5) * (1.5 / 255.0); + col = clamp(col, vec3f(0.0), vec3f(1.0)); + return vec4f(col * alpha, alpha); +}`; + +// ── the worker body (classic worker, spawned from a Blob URL). WGSL is injected as a JS string literal so the +// whole thing is self-contained — nothing extra is fetched, so it runs in any serve environment. ── +const WORKER_BODY = [ + "const WGSL = __WGSL__;", + "let dev=null, ctx=null, pipeline=null, bind=null, ubuf=null, uf=null, raf=0, running=false, dead=false, canvas=null;", + "let dpr=1, ssMax=1, scale=1, cssW=64, cssH=64;", // backing = css × dpr × scale; scale climbs to ssMax (SSAA) with headroom, drops under load — the native orb's ladder + "let mode=0, extLevel=-1, cur=0.0, gcur=0.0, dbg=false, fc=0, lastT=0, emaDt=0;", // mode: 0 idle · 1 listening · 2 thinking · 3 speaking. cur = eased base level; gcur = eased gold (mind-flare) wash; extLevel = live speech amplitude (0..1) or -1. + "const NOW=function(){return (typeof performance!=='undefined')?performance.now():Date.now();};", + "const RAF=(typeof requestAnimationFrame==='function')?requestAnimationFrame:function(f){return setTimeout(function(){f(NOW());},16);};", + "const CAF=(typeof cancelAnimationFrame==='function')?cancelAnimationFrame:clearTimeout;", + "function resize(){var s=dpr*scale;var w=Math.max(1,Math.round(cssW*s)),h=Math.max(1,Math.round(cssH*s)); if(canvas.width!==w||canvas.height!==h){canvas.width=w;canvas.height=h;}}", + // Q-state-reactive level, calibrated to the NATIVE orb's idle: at rest level eases to 0 (energy 1), so the + // idle animation is exactly the OS home-tab orb — breath sin(t·0.6)·0.012, spin t/7, fbm skin 0.07. States + // modulate on top: listening = alert; thinking = livelier + the OS gold mind-flare wash; speaking = pulse to + // live amplitude (extLevel) or a synthetic speech cadence. cur/gcur ease so transitions read as intent.", + "function frame(){ if(!running||dead) return; var t=NOW()/1000; var base, osc, gold=0;", + " if(mode===2){ base=0.35; osc=0.10*Math.sin(t*3.4); gold=0.30+0.20*Math.sin(t*3.4); }", + " else if(mode===1){ base=0.22; osc=0.05*Math.sin(t*2.0); }", + " else if(mode===3){ base=0.32; osc=(extLevel>=0?0.0:0.30*Math.abs(Math.sin(t*6.5))); }", + " else { base=0.0; osc=0.0; }", + " var live=(extLevel>=0&&(mode===1||mode===3))?extLevel*0.6:0.0;", // REAL audio amplitude swells the orb (listening to you · speaking as Q) + " cur+=(base-cur)*0.06; gcur+=(gold-gcur)*0.08; var lvl=Math.max(0.0, cur+osc+live);", + " var now=NOW(); if(lastT){ emaDt=emaDt?emaDt*0.9+(now-lastT)*0.1:(now-lastT); } lastT=now;", + " if(((++fc)%24)===0&&emaDt>0){ var fps=1000/emaDt;", // frame-time adaptive resolution (the native ladder): drop fast under load, climb slow into SSAA headroom → sharp AND never laggy + " if(fps<50&&scale>0.5){ scale=Math.max(0.5,scale-0.25); resize(); }", + " else if(fps>58&&scale Math.min((typeof window !== "undefined" && window.devicePixelRatio) || 1, 3); // full device DPR (cap 3) — a small corner orb is cheap, so every edge is razor-sharp + const cw = () => canvas.clientWidth || 64, ch = () => canvas.clientHeight || 64; + + worker.onmessage = (e) => { + const m = e.data || {}; + if (m.t === "probe-ok") { + if (stopped) return; + let off; try { off = canvas.transferControlToOffscreen(); transferred = true; } + catch (err) { toWebgl(); return; } + try { worker.postMessage({ t: "init", canvas: off, dpr: dpr(), ss: 2, cssW: cw(), cssH: ch(), debug: !!opts.debug }, [off]); } // ss = the SSAA ceiling the worker's ladder climbs to with fps headroom (starts at 1× — instant first paint) + catch (err) { toWebgl(); } + } else if (m.t === "ready") { if (timer) { clearTimeout(timer); timer = 0; } if (pendingSig) { forwardSig(pendingSig.mode, pendingSig.level); pendingSig = null; } } // painting on the worker + else if (m.t === "lvl") { handle.level = m.v; handle.stateMode = m.mode; if (typeof handle.onLevel === "function") { try { handle.onLevel(m.v, m.mode); } catch (e) {} } } // optional debug readback (opts.debug) + else if (m.t === "fail") { toWebgl(); } + }; + worker.onerror = () => toWebgl(); + timer = setTimeout(toWebgl, 4500); + try { worker.postMessage({ t: "probe" }); } catch (e) { toWebgl(); } + + if (typeof ResizeObserver !== "undefined") { + ro = new ResizeObserver(() => { if (transferred && worker && !stopped) { try { worker.postMessage({ t: "size", cssW: cw(), cssH: ch(), dpr: dpr() }); } catch (e) {} } }); + try { ro.observe(canvas); } catch (e) {} + } + + // ── Q-state reactivity: forward the global `holo-q-state` events to the worker (the messenger dispatches them + // when Q is thinking/listening/speaking), so the orb visibly REACTS instead of only idling. Buffered until the + // worker is live (pendingSig), and torn down with the orb (stop() removes the listener). ── + const MODE_MAP = { idle: 0, listening: 1, thinking: 2, speaking: 3 }; + function forwardSig(modeNum, level) { + if (worker && transferred && !stopped) { try { worker.postMessage({ t: "sig", mode: modeNum, level: level }); } catch (e) {} } + else pendingSig = { mode: modeNum, level: level }; + } + handle.signal = function (s) { s = s || {}; forwardSig(MODE_MAP[s.mode] || 0, (typeof s.level === "number") ? s.level : -1); }; + onQState = (e) => handle.signal((e && e.detail) || {}); + if (typeof window !== "undefined") { try { window.addEventListener("holo-q-state", onQState); } catch (e) {} } + return handle; +} + +// ── VISIBILITY BUDGET (M5-L1) — the orb is a CONTINUOUS GPU raymarch; on a phone it must cost ~nothing when it +// can't be seen. The dominant case is the app/tab BACKGROUNDED — halt the loop on `visibilitychange`/document.hidden +// and resume on return. This is 100% reliable and self-correcting: the orb runs exactly as before whenever the app +// is foreground-visible, and goes idle (no rAF, no GPU) the moment it's backgrounded — the big battery/thermal win. +// prefers-reduced-motion → paint one calm frame, then hold static (the base behind the canvas carries the +// still orb, so it never goes blank). Fail-safe: any error leaves the orb running exactly as before — we never +// break the orb to save a frame. (Off-screen-while-foreground gating via IntersectionObserver is deferred to a +// later L1 pass, pending real-device verification — it can't be exercised in a throttled headless tab.) +function budgetByVisibility(canvas, h) { + try { + if (!h || typeof h.pause !== "function" || typeof h.resume !== "function") return h; // mode:"none" → nothing to gate + if (typeof document === "undefined") return h; + const reduce = (typeof matchMedia === "function") && matchMedia("(prefers-reduced-motion: reduce)").matches; + if (reduce) { + const t = setTimeout(function () { try { h.pause(); } catch (e) {} }, 450); // one frame settles, then the still image holds + const os = h.stop && h.stop.bind(h); + h.stop = function () { try { clearTimeout(t); } catch (e) {} if (os) os(); }; + return h; + } + let gone = false; + const onVis = function () { if (gone) return; try { document.hidden ? h.pause() : h.resume(); } catch (e) {} }; + try { document.addEventListener("visibilitychange", onVis); } catch (e) {} + const os = h.stop && h.stop.bind(h); + h.stop = function () { + gone = true; + try { document.removeEventListener("visibilitychange", onVis); } catch (e) {} + if (os) os(); + }; + if (document.hidden) onVis(); // mounted while backgrounded → start idle + return h; + } catch (e) { return h; } +} + +export function mountOrb(canvas, opts) { + const h = mountGpuOrb(canvas, opts) // native-WebGPU worker orb (off the main thread) — the hero + || mountWebglOrb(canvas); // no WebGPU/Worker/OffscreenCanvas → the WebGL2 wireframe floor + return budgetByVisibility(canvas, h); +} + +// ───────────────────────────────────────────────────────────────────────────────────────────────────────── +// FALLBACK — the original self-contained WebGL2 wireframe icosphere (VERBATIM from hf-space-q-chat/core/ +// holo-orb.js), so where WebGPU/worker isn't available the messenger's Q orb still animates as it always has. +// ───────────────────────────────────────────────────────────────────────────────────────────────────────── +const SPECTRUM = [[1,.231,.42],[1,.62,.173],[1,.886,.29],[.275,.878,.541],[.169,.831,1],[.357,.549,1],[.78,.482,1],[1,.231,.42]]; +function hueAt(t){ t=(t%1+1)%1; const n=SPECTRUM.length-1, f=t*n, i=Math.floor(f), k=f-i, a=SPECTRUM[i], b=SPECTRUM[Math.min(i+1,n)]; return [a[0]+(b[0]-a[0])*k, a[1]+(b[1]-a[1])*k, a[2]+(b[2]-a[2])*k]; } +function norm(v){ const l=Math.hypot(v[0],v[1],v[2])||1; return [v[0]/l,v[1]/l,v[2]/l]; } +function icosphere(sub){ + const t=(1+Math.sqrt(5))/2; + let V=[[-1,t,0],[1,t,0],[-1,-t,0],[1,-t,0],[0,-1,t],[0,1,t],[0,-1,-t],[0,1,-t],[t,0,-1],[t,0,1],[-t,0,-1],[-t,0,1]].map(norm); + let F=[[0,11,5],[0,5,1],[0,1,7],[0,7,10],[0,10,11],[1,5,9],[5,11,4],[11,10,2],[10,7,6],[7,1,8],[3,9,4],[3,4,2],[3,2,6],[3,6,8],[3,8,9],[4,9,5],[2,4,11],[6,2,10],[8,6,7],[9,8,1]]; + const cache=new Map(); + const mid=(a,b)=>{ const key=a{ const o=gl.createShader(t); gl.shaderSource(o,s); gl.compileShader(o); if(!gl.getShaderParameter(o,gl.COMPILE_STATUS)){ console.error("[orb] shader:", gl.getShaderInfoLog(o)); } return o; }; + const prog=gl.createProgram(); gl.attachShader(prog,sh(gl.VERTEX_SHADER,vs)); gl.attachShader(prog,sh(gl.FRAGMENT_SHADER,fs)); gl.linkProgram(prog); + if(!gl.getProgramParameter(prog,gl.LINK_STATUS)){ console.error("[orb] link:", gl.getProgramInfoLog(prog)); return { fallback:true, mode:"none", stop(){} }; } + gl.useProgram(prog); + const mkBuf=(data,loc)=>{ const b=gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER,b); gl.bufferData(gl.ARRAY_BUFFER,data,gl.STATIC_DRAW); gl.enableVertexAttribArray(loc); gl.vertexAttribPointer(loc,3,gl.FLOAT,false,0,0); }; + mkBuf(pos, gl.getAttribLocation(prog,"aPos")); mkBuf(col, gl.getAttribLocation(prog,"aCol")); + const uProj=gl.getUniformLocation(prog,"uProj"), uT=gl.getUniformLocation(prog,"uT"); + gl.enable(gl.BLEND); gl.blendFunc(gl.SRC_ALPHA, gl.ONE); gl.lineWidth(1); + let raf=0, t0=performance.now(), stopped=false, paused=false; + function resize(){ const dpr=Math.min(window.devicePixelRatio||1, 2.5); const w=Math.max(2, canvas.clientWidth), h=Math.max(2, canvas.clientHeight); const W=Math.round(w*dpr), H=Math.round(h*dpr); if(canvas.width!==W||canvas.height!==H){ canvas.width=W; canvas.height=H; } gl.viewport(0,0,canvas.width,canvas.height); gl.uniformMatrix4fv(uProj,false, mat4Perspective(45*Math.PI/180, canvas.width/canvas.height, 0.1, 10)); } + function frame(){ if(stopped||paused) return; resize(); const t=(performance.now()-t0)/1000; gl.clearColor(0,0,0,0); gl.clear(gl.COLOR_BUFFER_BIT); gl.uniform1f(uT,t); gl.drawArrays(gl.LINES,0,E.length); raf=requestAnimationFrame(frame); } + frame(); + return { + stop(){ stopped=true; cancelAnimationFrame(raf); raf=0; }, + pause(){ if(paused||stopped) return; paused=true; if(raf){ cancelAnimationFrame(raf); raf=0; } }, // halt while unseen; the last frame stays painted + resume(){ if(!paused||stopped) return; paused=false; if(!raf) frame(); }, + fallback:false, mode:"webgl" }; +} + +export default mountOrb; diff --git a/b/8ee979ef7836cb2fd6ed6f5d290f4f22e70511fb1feb881cb742bbf0ca7de873 b/b/8ee979ef7836cb2fd6ed6f5d290f4f22e70511fb1feb881cb742bbf0ca7de873 new file mode 100644 index 0000000000000000000000000000000000000000..9a4f79868b05dcfc177da8462efd12fa8ef46e0b --- /dev/null +++ b/b/8ee979ef7836cb2fd6ed6f5d290f4f22e70511fb1feb881cb742bbf0ca7de873 @@ -0,0 +1,103 @@ +"use client";var zw=Object.create;var Os=Object.defineProperty;var Hw=Object.getOwnPropertyDescriptor;var Vw=Object.getOwnPropertyNames;var Ww=Object.getPrototypeOf,Gw=Object.prototype.hasOwnProperty;var ri=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kw=(e,t)=>{for(var r in t)Os(e,r,{get:t[r],enumerable:!0})},$w=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Vw(t))!Gw.call(e,o)&&o!==r&&Os(e,o,{get:()=>t[o],enumerable:!(a=Hw(t,o))||a.enumerable});return e};var ai=(e,t,r)=>(r=e!=null?zw(Ww(e)):{},$w(t||!e||!e.__esModule?Os(r,"default",{value:e,enumerable:!0}):r,e));var uc=ri((Mv,Su)=>{(function(e){"use strict";var t=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},a=!0,o="[DecimalError] ",n=o+"Invalid argument: ",i=o+"Exponent out of range: ",u=Math.floor,l=Math.pow,s=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,c,f=1e7,d=7,p=9007199254740991,h=u(p/d),m={};m.absoluteValue=m.abs=function(){var g=new this.constructor(this);return g.s&&(g.s=1),g},m.comparedTo=m.cmp=function(g){var y,C,I,x,w=this;if(g=new w.constructor(g),w.s!==g.s)return w.s||-g.s;if(w.e!==g.e)return w.e>g.e^w.s<0?1:-1;for(I=w.d.length,x=g.d.length,y=0,C=Ig.d[y]^w.s<0?1:-1;return I===x?0:I>x^w.s<0?1:-1},m.decimalPlaces=m.dp=function(){var g=this,y=g.d.length-1,C=(y-g.e)*d;if(y=g.d[y],y)for(;y%10==0;y/=10)C--;return C<0?0:C},m.dividedBy=m.div=function(g){return S(this,new this.constructor(g))},m.dividedToIntegerBy=m.idiv=function(g){var y=this,C=y.constructor;return N(S(y,new C(g),0,1),C.precision)},m.equals=m.eq=function(g){return!this.cmp(g)},m.exponent=function(){return L(this)},m.greaterThan=m.gt=function(g){return this.cmp(g)>0},m.greaterThanOrEqualTo=m.gte=function(g){return this.cmp(g)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return this.s===0},m.lessThan=m.lt=function(g){return this.cmp(g)<0},m.lessThanOrEqualTo=m.lte=function(g){return this.cmp(g)<1},m.logarithm=m.log=function(g){var y,C=this,I=C.constructor,x=I.precision,w=x+5;if(g===void 0)g=new I(10);else if(g=new I(g),g.s<1||g.eq(c))throw Error(o+"NaN");if(C.s<1)throw Error(o+(C.s?"NaN":"-Infinity"));return C.eq(c)?new I(0):(a=!1,y=S(A(C,w),A(g,w),w),a=!0,N(y,x))},m.minus=m.sub=function(g){var y=this;return g=new y.constructor(g),y.s==g.s?W(y,g):v(y,(g.s=-g.s,g))},m.modulo=m.mod=function(g){var y,C=this,I=C.constructor,x=I.precision;if(g=new I(g),!g.s)throw Error(o+"NaN");return C.s?(a=!1,y=S(C,g,0,1).times(g),a=!0,C.minus(y)):N(new I(C),x)},m.naturalExponential=m.exp=function(){return E(this)},m.naturalLogarithm=m.ln=function(){return A(this)},m.negated=m.neg=function(){var g=new this.constructor(this);return g.s=-g.s||0,g},m.plus=m.add=function(g){var y=this;return g=new y.constructor(g),y.s==g.s?v(y,g):W(y,(g.s=-g.s,g))},m.precision=m.sd=function(g){var y,C,I,x=this;if(g!==void 0&&g!==!!g&&g!==1&&g!==0)throw Error(n+g);if(y=L(x)+1,I=x.d.length-1,C=I*d+1,I=x.d[I],I){for(;I%10==0;I/=10)C--;for(I=x.d[0];I>=10;I/=10)C++}return g&&y>C?y:C},m.squareRoot=m.sqrt=function(){var g,y,C,I,x,w,D,_=this,B=_.constructor;if(_.s<1){if(!_.s)return new B(0);throw Error(o+"NaN")}for(g=L(_),a=!1,x=Math.sqrt(+_),x==0||x==1/0?(y=O(_.d),(y.length+g)%2==0&&(y+="0"),x=Math.sqrt(y),g=u((g+1)/2)-(g<0||g%2),x==1/0?y="5e"+g:(y=x.toExponential(),y=y.slice(0,y.indexOf("e")+1)+g),I=new B(y)):I=new B(x.toString()),C=B.precision,x=D=C+3;;)if(w=I,I=w.plus(S(_,w,D+2)).times(.5),O(w.d).slice(0,D)===(y=O(I.d)).slice(0,D)){if(y=y.slice(D-3,D+1),x==D&&y=="4999"){if(N(w,C+1,0),w.times(w).eq(_)){I=w;break}}else if(y!="9999")break;D+=4}return a=!0,N(I,C)},m.times=m.mul=function(g){var y,C,I,x,w,D,_,B,U,j=this,H=j.constructor,oe=j.d,T=(g=new H(g)).d;if(!j.s||!g.s)return new H(0);for(g.s*=j.s,C=j.e+g.e,B=oe.length,U=T.length,B=0;){for(y=0,x=B+I;x>I;)_=w[x]+T[I]*oe[x-I-1]+y,w[x--]=_%f|0,y=_/f|0;w[x]=(w[x]+y)%f|0}for(;!w[--D];)w.pop();return y?++C:w.shift(),g.d=w,g.e=C,a?N(g,H.precision):g},m.toDecimalPlaces=m.todp=function(g,y){var C=this,I=C.constructor;return C=new I(C),g===void 0?C:(b(g,0,t),y===void 0?y=I.rounding:b(y,0,8),N(C,g+L(C)+1,y))},m.toExponential=function(g,y){var C,I=this,x=I.constructor;return g===void 0?C=F(I,!0):(b(g,0,t),y===void 0?y=x.rounding:b(y,0,8),I=N(new x(I),g+1,y),C=F(I,!0,g+1)),C},m.toFixed=function(g,y){var C,I,x=this,w=x.constructor;return g===void 0?F(x):(b(g,0,t),y===void 0?y=w.rounding:b(y,0,8),I=N(new w(x),g+L(x)+1,y),C=F(I.abs(),!1,g+L(I)+1),x.isneg()&&!x.isZero()?"-"+C:C)},m.toInteger=m.toint=function(){var g=this,y=g.constructor;return N(new y(g),L(g)+1,y.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(g){var y,C,I,x,w,D,_=this,B=_.constructor,U=12,j=+(g=new B(g));if(!g.s)return new B(c);if(_=new B(_),!_.s){if(g.s<1)throw Error(o+"Infinity");return _}if(_.eq(c))return _;if(I=B.precision,g.eq(c))return N(_,I);if(y=g.e,C=g.d.length-1,D=y>=C,w=_.s,D){if((C=j<0?-j:j)<=p){for(x=new B(c),y=Math.ceil(I/d+4),a=!1;C%2&&(x=x.times(_),$(x.d,y)),C=u(C/2),C!==0;)_=_.times(_),$(_.d,y);return a=!0,g.s<0?new B(c).div(x):N(x,I)}}else if(w<0)throw Error(o+"NaN");return w=w<0&&g.d[Math.max(y,C)]&1?-1:1,_.s=1,a=!1,x=g.times(A(_,I+U)),a=!0,x=E(x),x.s=w,x},m.toPrecision=function(g,y){var C,I,x=this,w=x.constructor;return g===void 0?(C=L(x),I=F(x,C<=w.toExpNeg||C>=w.toExpPos)):(b(g,1,t),y===void 0?y=w.rounding:b(y,0,8),x=N(new w(x),g,y),C=L(x),I=F(x,g<=C||C<=w.toExpNeg,g)),I},m.toSignificantDigits=m.tosd=function(g,y){var C=this,I=C.constructor;return g===void 0?(g=I.precision,y=I.rounding):(b(g,1,t),y===void 0?y=I.rounding:b(y,0,8)),N(new I(C),g,y)},m.toString=m.valueOf=m.val=m.toJSON=function(){var g=this,y=L(g),C=g.constructor;return F(g,y<=C.toExpNeg||y>=C.toExpPos)};function v(g,y){var C,I,x,w,D,_,B,U,j=g.constructor,H=j.precision;if(!g.s||!y.s)return y.s||(y=new j(g)),a?N(y,H):y;if(B=g.d,U=y.d,D=g.e,x=y.e,B=B.slice(),w=D-x,w){for(w<0?(I=B,w=-w,_=U.length):(I=U,x=D,_=B.length),D=Math.ceil(H/d),_=D>_?D+1:_+1,w>_&&(w=_,I.length=1),I.reverse();w--;)I.push(0);I.reverse()}for(_=B.length,w=U.length,_-w<0&&(w=_,I=U,U=B,B=I),C=0;w;)C=(B[--w]=B[w]+U[w]+C)/f|0,B[w]%=f;for(C&&(B.unshift(C),++x),_=B.length;B[--_]==0;)B.pop();return y.d=B,y.e=x,a?N(y,H):y}function b(g,y,C){if(g!==~~g||gC)throw Error(n+g)}function O(g){var y,C,I,x=g.length-1,w="",D=g[0];if(x>0){for(w+=D,y=1;yD?1:-1;else for(_=B=0;_x[_]?1:-1;break}return B}function C(I,x,w){for(var D=0;w--;)I[w]-=D,D=I[w]1;)I.shift()}return function(I,x,w,D){var _,B,U,j,H,oe,T,q,V,R,we,ee,ze,Fe,ht,Aa,Pt,ei,ti=I.constructor,qw=I.s==x.s?1:-1,Bt=I.d,Ee=x.d;if(!I.s)return new ti(I);if(!x.s)throw Error(o+"Division by zero");for(B=I.e-x.e,Pt=Ee.length,ht=Bt.length,T=new ti(qw),q=T.d=[],U=0;Ee[U]==(Bt[U]||0);)++U;if(Ee[U]>(Bt[U]||0)&&--B,w==null?ee=w=ti.precision:D?ee=w+(L(I)-L(x))+1:ee=w,ee<0)return new ti(0);if(ee=ee/d+2|0,U=0,Pt==1)for(j=0,Ee=Ee[0],ee++;(U1&&(Ee=g(Ee,j),Bt=g(Bt,j),Pt=Ee.length,ht=Bt.length),Fe=Pt,V=Bt.slice(0,Pt),R=V.length;R=f/2&&++Aa;do j=0,_=y(Ee,V,Pt,R),_<0?(we=V[0],Pt!=R&&(we=we*f+(V[1]||0)),j=we/Aa|0,j>1?(j>=f&&(j=f-1),H=g(Ee,j),oe=H.length,R=V.length,_=y(H,V,oe,R),_==1&&(j--,C(H,Pt16)throw Error(i+L(g));if(!g.s)return new j(c);for(y==null?(a=!1,_=H):_=y,D=new j(.03125);g.abs().gte(.1);)g=g.times(D),U+=5;for(I=Math.log(l(2,U))/Math.LN10*2+5|0,_+=I,C=x=w=new j(c),j.precision=_;;){if(x=N(x.times(g),_),C=C.times(++B),D=w.plus(S(x,C,_)),O(D.d).slice(0,_)===O(w.d).slice(0,_)){for(;U--;)w=N(w.times(w),_);return j.precision=H,y==null?(a=!0,N(w,H)):w}w=D}}function L(g){for(var y=g.e*d,C=g.d[0];C>=10;C/=10)y++;return y}function k(g,y,C){if(y>g.LN10.sd())throw a=!0,C&&(g.precision=C),Error(o+"LN10 precision limit exceeded");return N(new g(g.LN10),y)}function M(g){for(var y="";g--;)y+="0";return y}function A(g,y){var C,I,x,w,D,_,B,U,j,H=1,oe=10,T=g,q=T.d,V=T.constructor,R=V.precision;if(T.s<1)throw Error(o+(T.s?"NaN":"-Infinity"));if(T.eq(c))return new V(0);if(y==null?(a=!1,U=R):U=y,T.eq(10))return y==null&&(a=!0),k(V,U);if(U+=oe,V.precision=U,C=O(q),I=C.charAt(0),w=L(T),Math.abs(w)<15e14){for(;I<7&&I!=1||I==1&&C.charAt(1)>3;)T=T.times(g),C=O(T.d),I=C.charAt(0),H++;w=L(T),I>1?(T=new V("0."+C),w++):T=new V(I+"."+C.slice(1))}else return B=k(V,U+2,R).times(w+""),T=A(new V(I+"."+C.slice(1)),U-oe).plus(B),V.precision=R,y==null?(a=!0,N(T,R)):T;for(_=D=T=S(T.minus(c),T.plus(c),U),j=N(T.times(T),U),x=3;;){if(D=N(D.times(j),U),B=_.plus(S(D,new V(x),U)),O(B.d).slice(0,U)===O(_.d).slice(0,U))return _=_.times(2),w!==0&&(_=_.plus(k(V,U+2,R).times(w+""))),_=S(_,new V(H),U),V.precision=R,y==null?(a=!0,N(_,R)):_;_=B,x+=2}}function z(g,y){var C,I,x;for((C=y.indexOf("."))>-1&&(y=y.replace(".","")),(I=y.search(/e/i))>0?(C<0&&(C=I),C+=+y.slice(I+1),y=y.substring(0,I)):C<0&&(C=y.length),I=0;y.charCodeAt(I)===48;)++I;for(x=y.length;y.charCodeAt(x-1)===48;)--x;if(y=y.slice(I,x),y){if(x-=I,C=C-I-1,g.e=u(C/d),g.d=[],I=(C+1)%d,C<0&&(I+=d),Ih||g.e<-h))throw Error(i+C)}else g.s=0,g.e=0,g.d=[0];return g}function N(g,y,C){var I,x,w,D,_,B,U,j,H=g.d;for(D=1,w=H[0];w>=10;w/=10)D++;if(I=y-D,I<0)I+=d,x=y,U=H[j=0];else{if(j=Math.ceil((I+1)/d),w=H.length,j>=w)return g;for(U=w=H[j],D=1;w>=10;w/=10)D++;I%=d,x=I-d+D}if(C!==void 0&&(w=l(10,D-x-1),_=U/w%10|0,B=y<0||H[j+1]!==void 0||U%w,B=C<4?(_||B)&&(C==0||C==(g.s<0?3:2)):_>5||_==5&&(C==4||B||C==6&&(I>0?x>0?U/l(10,D-x):0:H[j-1])%10&1||C==(g.s<0?8:7))),y<1||!H[0])return B?(w=L(g),H.length=1,y=y-w-1,H[0]=l(10,(d-y%d)%d),g.e=u(-y/d)||0):(H.length=1,H[0]=g.e=g.s=0),g;if(I==0?(H.length=j,w=1,j--):(H.length=j+1,w=l(10,d-I),H[j]=x>0?(U/l(10,D-x)%l(10,x)|0)*w:0),B)for(;;)if(j==0){(H[0]+=w)==f&&(H[0]=1,++g.e);break}else{if(H[j]+=w,H[j]!=f)break;H[j--]=0,w=1}for(I=H.length;H[--I]===0;)H.pop();if(a&&(g.e>h||g.e<-h))throw Error(i+L(g));return g}function W(g,y){var C,I,x,w,D,_,B,U,j,H,oe=g.constructor,T=oe.precision;if(!g.s||!y.s)return y.s?y.s=-y.s:y=new oe(g),a?N(y,T):y;if(B=g.d,H=y.d,I=y.e,U=g.e,B=B.slice(),D=U-I,D){for(j=D<0,j?(C=B,D=-D,_=H.length):(C=H,I=U,_=B.length),x=Math.max(Math.ceil(T/d),_)+2,D>x&&(D=x,C.length=1),C.reverse(),x=D;x--;)C.push(0);C.reverse()}else{for(x=B.length,_=H.length,j=x<_,j&&(_=x),x=0;x<_;x++)if(B[x]!=H[x]){j=B[x]0;--x)B[_++]=0;for(x=H.length;x>D;){if(B[--x]0?w=w.charAt(0)+"."+w.slice(1)+M(I):D>1&&(w=w.charAt(0)+"."+w.slice(1)),w=w+(x<0?"e":"e+")+x):x<0?(w="0."+M(-x-1)+w,C&&(I=C-D)>0&&(w+=M(I))):x>=D?(w+=M(x+1-D),C&&(I=C-x-1)>0&&(w=w+"."+M(I))):((I=x+1)0&&(x+1===D&&(w+="."),w+=M(I))),g.s<0?"-"+w:w}function $(g,y){if(g.length>y)return g.length=y,!0}function Z(g){var y,C,I;function x(w){var D=this;if(!(D instanceof x))return new x(w);if(D.constructor=x,w instanceof x){D.s=w.s,D.e=w.e,D.d=(w=w.d)?w.slice():w;return}if(typeof w=="number"){if(w*0!==0)throw Error(n+w);if(w>0)D.s=1;else if(w<0)w=-w,D.s=-1;else{D.s=0,D.e=0,D.d=[0];return}if(w===~~w&&w<1e7){D.e=0,D.d=[w];return}return z(D,w.toString())}else if(typeof w!="string")throw Error(n+w);if(w.charCodeAt(0)===45?(w=w.slice(1),D.s=-1):D.s=1,s.test(w))z(D,w);else throw Error(n+w)}if(x.prototype=m,x.ROUND_UP=0,x.ROUND_DOWN=1,x.ROUND_CEIL=2,x.ROUND_FLOOR=3,x.ROUND_HALF_UP=4,x.ROUND_HALF_DOWN=5,x.ROUND_HALF_EVEN=6,x.ROUND_HALF_CEIL=7,x.ROUND_HALF_FLOOR=8,x.clone=Z,x.config=x.set=J,g===void 0&&(g={}),g)for(I=["precision","rounding","toExpNeg","toExpPos","LN10"],y=0;y=x[y+1]&&I<=x[y+2])this[C]=I;else throw Error(n+C+": "+I);if((I=g[C="LN10"])!==void 0)if(I==Math.LN10)this[C]=new this(I);else throw Error(n+C+": "+I);return this}r=Z(r),r.default=r.Decimal=r,c=new r(1),typeof define=="function"&&define.amd?define(function(){return r}):typeof Su<"u"&&Su.exports?Su.exports=r:(e||(e=typeof self<"u"&&self&&self.self==self?self:Function("return this")()),e.Decimal=r)})(Mv)});var yb=ri((TY,_d)=>{"use strict";var wD=Object.prototype.hasOwnProperty,Qe="~";function Un(){}Object.create&&(Un.prototype=Object.create(null),new Un().__proto__||(Qe=!1));function CD(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function xb(e,t,r,a,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var n=new CD(r,a||e,o),i=Qe?Qe+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],n]:e._events[i].push(n):(e._events[i]=n,e._eventsCount++),e}function Vl(e,t){--e._eventsCount===0?e._events=new Un:delete e._events[t]}function Ke(){this._events=new Un,this._eventsCount=0}Ke.prototype.eventNames=function(){var t=[],r,a;if(this._eventsCount===0)return t;for(a in r=this._events)wD.call(r,a)&&t.push(Qe?a.slice(1):a);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Ke.prototype.listeners=function(t){var r=Qe?Qe+t:t,a=this._events[r];if(!a)return[];if(a.fn)return[a.fn];for(var o=0,n=a.length,i=new Array(n);o{"use strict";var Kd=Symbol.for("react.transitional.element"),$d=Symbol.for("react.portal"),as=Symbol.for("react.fragment"),os=Symbol.for("react.strict_mode"),ns=Symbol.for("react.profiler"),is=Symbol.for("react.consumer"),us=Symbol.for("react.context"),ls=Symbol.for("react.forward_ref"),ss=Symbol.for("react.suspense"),fs=Symbol.for("react.suspense_list"),cs=Symbol.for("react.memo"),ds=Symbol.for("react.lazy"),iR=Symbol.for("react.view_transition"),uR=Symbol.for("react.client.reference");function St(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Kd:switch(e=e.type,e){case as:case ns:case os:case ss:case fs:case iR:return e;default:switch(e=e&&e.$$typeof,e){case us:case ls:case ds:case cs:return e;case is:return e;default:return t}}case $d:return t}}}he.ContextConsumer=is;he.ContextProvider=us;he.Element=Kd;he.ForwardRef=ls;he.Fragment=as;he.Lazy=ds;he.Memo=cs;he.Portal=$d;he.Profiler=ns;he.StrictMode=os;he.Suspense=ss;he.SuspenseList=fs;he.isContextConsumer=function(e){return St(e)===is};he.isContextProvider=function(e){return St(e)===us};he.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kd};he.isForwardRef=function(e){return St(e)===ls};he.isFragment=function(e){return St(e)===as};he.isLazy=function(e){return St(e)===ds};he.isMemo=function(e){return St(e)===cs};he.isPortal=function(e){return St(e)===$d};he.isProfiler=function(e){return St(e)===ns};he.isStrictMode=function(e){return St(e)===os};he.isSuspense=function(e){return St(e)===ss};he.isSuspenseList=function(e){return St(e)===fs};he.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===as||e===ns||e===os||e===ss||e===fs||typeof e=="object"&&e!==null&&(e.$$typeof===ds||e.$$typeof===cs||e.$$typeof===us||e.$$typeof===is||e.$$typeof===ls||e.$$typeof===uR||e.getModuleId!==void 0)};he.typeOf=St});var kI=ri((F6,OI)=>{"use strict";OI.exports=AI()});import{forwardRef as Yw,createElement as Zw}from"react";var Ip=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),oi=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();import{forwardRef as Xw,createElement as Cp}from"react";var wp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Sp=Xw(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:n,iconNode:i,...u},l)=>Cp("svg",{ref:l,...wp,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:oi("lucide",o),...u},[...i.map(([s,c])=>Cp(s,c)),...Array.isArray(n)?n:[n]]));var Lp=(e,t)=>{let r=Yw(({className:a,...o},n)=>Zw(Sp,{ref:n,iconNode:t,className:oi(`lucide-${Ip(e)}`,a),...o}));return r.displayName=`${e}`,r};var ko=Lp("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);import*as ni from"react";import{forwardRef as nC}from"react";function Pp(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{var{children:r,width:a,height:o,viewBox:n,className:i,style:u,title:l,desc:s}=e,c=aC(e,rC),f=n||{width:a,height:o,x:0,y:0},d=re("recharts-surface",i);return ni.createElement("svg",Ms({},Se(c),{className:d,width:a,height:o,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),ni.createElement("title",null,l),ni.createElement("desc",null,s),r)});import*as ii from"react";var iC=["children","className"];function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:r,className:a}=e,o=uC(e,iC),n=re("recharts-layer",a);return ii.createElement("g",Ts({className:n},Se(o),{ref:t}),r)});import{createContext as sC,useContext as QN}from"react";var Ap=sC(null);import*as Gp from"react";function fe(e){return function(){return e}}var Rs=Math.cos;var Do=Math.sin,je=Math.sqrt;var qr=Math.PI,rB=qr/2,Oa=2*qr;var _s=Math.PI,Ns=2*_s,zr=1e-6,fC=Ns-zr;function Op(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Op;let r=10**t;return function(a){this._+=a[0];for(let o=1,n=a.length;ozr)if(!(Math.abs(f*l-s*c)>zr)||!n)this._append`L${this._x1=t},${this._y1=r}`;else{let p=a-i,h=o-u,m=l*l+s*s,v=p*p+h*h,b=Math.sqrt(m),O=Math.sqrt(d),S=n*Math.tan((_s-Math.acos((m+d-v)/(2*b*O)))/2),E=S/O,L=S/b;Math.abs(E-1)>zr&&this._append`L${t+E*c},${r+E*f}`,this._append`A${n},${n},0,0,${+(f*p>c*h)},${this._x1=t+L*l},${this._y1=r+L*s}`}}arc(t,r,a,o,n,i){if(t=+t,r=+r,a=+a,i=!!i,a<0)throw new Error(`negative radius: ${a}`);let u=a*Math.cos(o),l=a*Math.sin(o),s=t+u,c=r+l,f=1^i,d=i?o-n:n-o;this._x1===null?this._append`M${s},${c}`:(Math.abs(this._x1-s)>zr||Math.abs(this._y1-c)>zr)&&this._append`L${s},${c}`,a&&(d<0&&(d=d%Ns+Ns),d>fC?this._append`A${a},${a},0,1,${f},${t-u},${r-l}A${a},${a},0,1,${f},${this._x1=s},${this._y1=c}`:d>zr&&this._append`A${a},${a},0,${+(d>=_s)},${f},${this._x1=t+a*Math.cos(n)},${this._y1=r+a*Math.sin(n)}`)}rect(t,r,a,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${a=+a}v${+o}h${-a}Z`}toString(){return this._}};function kp(){return new Hr}kp.prototype=Hr.prototype;function ka(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let a=Math.floor(r);if(!(a>=0))throw new RangeError(`invalid digits: ${r}`);t=a}return e},()=>new Hr(t)}var fB=Array.prototype.slice;function Ea(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ep(e){this._context=e}Ep.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function gr(e){return new Ep(e)}function ui(e){return e[0]}function li(e){return e[1]}function To(e,t){var r=fe(!0),a=null,o=gr,n=null,i=ka(u);e=typeof e=="function"?e:e===void 0?ui:fe(e),t=typeof t=="function"?t:t===void 0?li:fe(t);function u(l){var s,c=(l=Ea(l)).length,f,d=!1,p;for(a==null&&(n=o(p=i())),s=0;s<=c;++s)!(s=p;--h)u.point(S[h],E[h]);u.lineEnd(),u.areaEnd()}b&&(S[d]=+e(v,d,f),E[d]=+t(v,d,f),u.point(a?+a(v,d,f):S[d],r?+r(v,d,f):E[d]))}if(O)return u=null,O+""||null}function c(){return To().defined(o).curve(i).context(n)}return s.x=function(f){return arguments.length?(e=typeof f=="function"?f:fe(+f),a=null,s):e},s.x0=function(f){return arguments.length?(e=typeof f=="function"?f:fe(+f),s):e},s.x1=function(f){return arguments.length?(a=f==null?null:typeof f=="function"?f:fe(+f),s):a},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:fe(+f),r=null,s):t},s.y0=function(f){return arguments.length?(t=typeof f=="function"?f:fe(+f),s):t},s.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:fe(+f),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(a).y(t)},s.defined=function(f){return arguments.length?(o=typeof f=="function"?f:fe(!!f),s):o},s.curve=function(f){return arguments.length?(i=f,n!=null&&(u=i(n)),s):i},s.context=function(f){return arguments.length?(f==null?n=u=null:u=i(n=f),s):n},s}var si=class{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};function Bs(e){return new si(e,!0)}function Fs(e){return new si(e,!1)}var Da={draw(e,t){let r=je(t/qr);e.moveTo(r,0),e.arc(0,0,r,0,Oa)}};var js={draw(e,t){let r=je(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};var Mp=je(1/3),dC=Mp*2,Us={draw(e,t){let r=je(t/dC),a=r*Mp;e.moveTo(0,-r),e.lineTo(a,0),e.lineTo(0,r),e.lineTo(-a,0),e.closePath()}};var qs={draw(e,t){let r=je(t),a=-r/2;e.rect(a,a,r,r)}};var pC=.8908130915292852,Dp=Do(qr/10)/Do(7*qr/10),mC=Do(Oa/10)*Dp,hC=-Rs(Oa/10)*Dp,zs={draw(e,t){let r=je(t*pC),a=mC*r,o=hC*r;e.moveTo(0,-r),e.lineTo(a,o);for(let n=1;n<5;++n){let i=Oa*n/5,u=Rs(i),l=Do(i);e.lineTo(l*r,-u*r),e.lineTo(u*a-l*o,l*a+u*o)}e.closePath()}};var Hs=je(3),Vs={draw(e,t){let r=-je(t/(Hs*3));e.moveTo(0,r*2),e.lineTo(-Hs*r,-r),e.lineTo(Hs*r,-r),e.closePath()}};var vt=-.5,xt=je(3)/2,Ws=1/je(12),gC=(Ws/2+1)*3,Gs={draw(e,t){let r=je(t/gC),a=r/2,o=r*Ws,n=a,i=r*Ws+r,u=-n,l=i;e.moveTo(a,o),e.lineTo(n,i),e.lineTo(u,l),e.lineTo(vt*a-xt*o,xt*a+vt*o),e.lineTo(vt*n-xt*i,xt*n+vt*i),e.lineTo(vt*u-xt*l,xt*u+vt*l),e.lineTo(vt*a+xt*o,vt*o-xt*a),e.lineTo(vt*n+xt*i,vt*i-xt*n),e.lineTo(vt*u+xt*l,vt*l-xt*u),e.closePath()}};function fi(e,t){let r=null,a=ka(o);e=typeof e=="function"?e:fe(e||Da),t=typeof t=="function"?t:fe(t===void 0?64:+t);function o(){let n;if(r||(r=n=a()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),n)return r=null,n+""||null}return o.type=function(n){return arguments.length?(e=typeof n=="function"?n:fe(n),o):e},o.size=function(n){return arguments.length?(t=typeof n=="function"?n:fe(+n),o):t},o.context=function(n){return arguments.length?(r=n??null,o):r},o}function Ta(){}function Ra(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Tp(e){this._context=e}Tp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ra(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ra(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ks(e){return new Tp(e)}function Rp(e){this._context=e}Rp.prototype={areaStart:Ta,areaEnd:Ta,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ra(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $s(e){return new Rp(e)}function _p(e){this._context=e}_p.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:Ra(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Xs(e){return new _p(e)}function Np(e){this._context=e}Np.prototype={areaStart:Ta,areaEnd:Ta,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Ys(e){return new Np(e)}function Bp(e){return e<0?-1:1}function Fp(e,t,r){var a=e._x1-e._x0,o=t-e._x1,n=(e._y1-e._y0)/(a||o<0&&-0),i=(r-e._y1)/(o||a<0&&-0),u=(n*o+i*a)/(a+o);return(Bp(n)+Bp(i))*Math.min(Math.abs(n),Math.abs(i),.5*Math.abs(u))||0}function jp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Zs(e,t,r){var a=e._x0,o=e._y0,n=e._x1,i=e._y1,u=(n-a)/3;e._context.bezierCurveTo(a+u,o+u*t,n-u,i-u*r,n,i)}function ci(e){this._context=e}ci.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Zs(this,this._t0,jp(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Zs(this,jp(this,r=Fp(this,e,t)),r);break;default:Zs(this,this._t0,r=Fp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Up(e){this._context=new qp(e)}(Up.prototype=Object.create(ci.prototype)).point=function(e,t){ci.prototype.point.call(this,t,e)};function qp(e){this._context=e}qp.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,a,o,n){this._context.bezierCurveTo(t,e,a,r,n,o)}};function Js(e){return new ci(e)}function Qs(e){return new Up(e)}function Hp(e){this._context=e}Hp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var a=zp(e),o=zp(t),n=0,i=1;i=0;--t)o[t]=(i[t]-o[t+1])/n[t];for(n[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function tf(e){return new di(e,.5)}function rf(e){return new di(e,0)}function af(e){return new di(e,1)}function it(e,t){if((i=e.length)>1)for(var r=1,a,o,n=e[t[0]],i,u=n.length;r=0;)r[t]=t;return r}function vC(e,t){return e[t]}function xC(e){let t=[];return t.key=e,t}function of(){var e=fe([]),t=_a,r=it,a=vC;function o(n){var i=Array.from(e.apply(this,arguments),xC),u,l=i.length,s=-1,c;for(let f of n)for(u=0,++s;u0){for(var r,a,o=0,n=e[0].length,i;o0){for(var r=0,a=e[t[0]],o,n=a.length;r0)||!((n=(o=e[t[0]]).length)>0))){for(var r=0,a=1,o,n,i;a1&&arguments[1]!==void 0?arguments[1]:IC,r=10**t,a=Math.round(e*r)/r;return Object.is(a,-0)?0:a}function ve(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{var u=r[i-1];return typeof u=="string"?o+u+n:u!==void 0?o+Ft(u)+n:o+n},"")}var Pe=e=>e===0?0:e>0?1:-1,tt=e=>typeof e=="number"&&e!=+e,Zt=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,X=e=>(typeof e=="number"||e instanceof Number)&&!tt(e),rt=e=>X(e)||typeof e=="string",wC=0,Jt=e=>{var t=++wC;return"".concat(e||"").concat(t)},Ue=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!X(t)&&typeof t!="string")return a;var n;if(Zt(t)){if(r==null)return a;var i=t.indexOf("%");n=r*parseFloat(t.slice(0,i))/100}else n=+t;return tt(n)&&(n=a),o&&r!=null&&n>r&&(n=r),n},ff=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},a=0;aa&&(typeof t=="function"?t(a):$e(a,t))===r)}var Me=e=>e===null||typeof e>"u",Qt=e=>Me(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function ut(e){return e!=null}function er(){}var CC=["type","size","sizeType"];function df(){return df=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t="symbol".concat(Qt(e));return Kp[t]||Da},MC=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var a=18*kC;return 1.25*e*e*(Math.tan(a)-Math.tan(a*2)*Math.tan(a)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},DC=(e,t)=>{Kp["symbol".concat(Qt(e))]=t},pf=e=>{var{type:t="circle",size:r=64,sizeType:a="area"}=e,o=AC(e,CC),n=Wp(Wp({},o),{},{type:t,size:r,sizeType:a}),i="circle";typeof t=="string"&&(i=t);var u=()=>{var d=EC(i),p=fi().type(d).size(MC(r,a,i)),h=p();if(h!==null)return h},{className:l,cx:s,cy:c}=n,f=Se(n);return X(s)&&X(c)&&X(r)?Gp.createElement("path",df({},f,{className:re("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(c,")"),d:u()})):null};pf.registerSymbol=DC;import{isValidElement as TC}from"react";var hi=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,$p=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(TC(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var a={};return Object.keys(r).forEach(o=>{Eo(o)&&typeof r[o]=="function"&&(a[o]=t||(n=>r[o](r,n)))}),a},RC=(e,t,r)=>a=>(e(t,r,a),null),Xp=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var a=null;return Object.keys(e).forEach(o=>{var n=e[o];Eo(o)&&typeof n=="function"&&(a||(a={}),a[o]=RC(n,t,r))}),a};function Yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function _C(e){for(var t=1;t(i[u]===void 0&&a[u]!==void 0&&(i[u]=a[u]),i),r);return n}function Zp(e,t){let r=new Map;for(let a=0;aObject.prototype.propertyIsEnumerable.call(e,t))}function Fa(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var rm="[object RegExp]",vi="[object String]",xi="[object Number]",yi="[object Boolean]",bi="[object Arguments]",am="[object Symbol]",om="[object Date]",nm="[object Map]",im="[object Set]",um="[object Array]";var lm="[object ArrayBuffer]",sm="[object Object]";var fm="[object DataView]",cm="[object Uint8Array]",dm="[object Uint8ClampedArray]",pm="[object Uint16Array]",mm="[object Uint32Array]";var hm="[object Int8Array]",gm="[object Int16Array]",vm="[object Int32Array]";var xm="[object Float32Array]",ym="[object Float64Array]";var mf=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}();function bm(e){return typeof mf.Buffer<"u"&&mf.Buffer.isBuffer(e)}function Im(e,t){return vr(e,void 0,e,new Map,t)}function vr(e,t,r,a=new Map,o=void 0){let n=o?.(e,t,r,a);if(n!==void 0)return n;if(Ro(e))return e;if(a.has(e))return a.get(e);if(Array.isArray(e)){let i=new Array(e.length);a.set(e,i);for(let u=0;u{}):hf(e,t,function a(o,n,i,u,l,s){let c=r(o,n,i,u,l,s);return c!==void 0?!!c:hf(o,n,a,s)},new Map)}function hf(e,t,r,a){if(t===e)return!0;switch(typeof t){case"object":return UC(e,t,r,a);case"function":return Object.keys(t).length>0?hf(e,{...t},r,a):_o(e,t);default:return Ii(e)?typeof t=="string"?t==="":!0:_o(e,t)}}function UC(e,t,r,a){if(t==null)return!0;if(Array.isArray(t))return Cm(e,t,r,a);if(t instanceof Map)return qC(e,t,r,a);if(t instanceof Set)return zC(e,t,r,a);let o=Object.keys(t);if(e==null||Ro(e))return o.length===0;if(o.length===0)return!0;if(a?.has(t))return a.get(t)===e;a?.set(t,e);try{for(let n=0;n{})}function Sm(e){return e=wm(e),t=>wi(t,e)}function Lm(e,t){return Im(e,(r,a,o,n)=>{let i=t?.(r,a,o,n);if(i!==void 0)return i;if(typeof e=="object"){if(Fa(e)==="[object Object]"&&typeof e.constructor!="function"){let u={};return n.set(e,u),yt(u,e,o,n),u}switch(Object.prototype.toString.call(e)){case xi:case vi:case yi:{let u=new e.constructor(e?.valueOf());return yt(u,e),u}case bi:{let u={};return yt(u,e),u.length=e.length,u[Symbol.iterator]=e[Symbol.iterator],u}default:return}}})}function Pm(e){return Lm(e)}var HC=/^(?:0|[1-9]\d*)$/;function Ci(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e=0}function Si(e){return e!=null&&typeof e!="function"&&Mm(e.length)}function Dm(e){return typeof e=="object"&&e!==null}function Tm(e){return Dm(e)&&Si(e)}function Li(e,t=gi){return Tm(e)?Zp(Array.from(e),Jp(Em(t),1)):[]}function Rm(e,t,r){return t===!0?Li(e,r):typeof t=="function"?Li(e,t):e}import*as vf from"react";var{useRef:VC,useEffect:WC,useMemo:GC,useDebugValue:KC}=vf;function xf(e,t,r,a,o){let n=VC(null),i;n.current===null?(i={hasValue:!1,value:null},n.current=i):i=n.current;let[u,l]=GC(()=>{let c=!1,f,d,p=b=>{if(!c){c=!0,f=b;let L=a(b);if(o!==void 0&&i.hasValue){let k=i.value;if(o(k,L))return d=k,k}return d=L,L}let O=f,S=d;if(Object.is(O,b))return S;let E=a(b);return o!==void 0&&o(S,E)?(f=b,S):(f=b,d=E,E)},h=r===void 0?null:r;return[()=>p(t()),h===null?void 0:()=>p(h())]},[t,r,a,o]),s=vf.useSyncExternalStore(e,u,l);return WC(()=>{i.hasValue=!0,i.value=s},[s]),KC(s),s}import{useContext as _m,useMemo as XC}from"react";import{createContext as $C}from"react";var No=$C(null);var YC=e=>e,ne=()=>{var e=_m(No);return e?e.store.dispatch:YC},Pi=()=>{},ZC=()=>Pi,JC=(e,t)=>e===t;function Y(e){var t=_m(No),r=XC(()=>t?a=>{if(a!=null)return e(a)}:Pi,[t,e]);return xf(t?t.subscription.addNestedSub:ZC,t?t.store.getState:Pi,t?t.store.getState:Pi,r,JC)}function QC(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function eS(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function tS(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){let r=e.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${t}[${r}]`)}}var Nm=e=>Array.isArray(e)?e:[e];function rS(e){let t=Array.isArray(e[0])?e[0]:e;return tS(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function aS(e,t){let r=[],{length:a}=e;for(let o=0;o{r=Ai(),i.resetResultsCount()},i.resultsCount=()=>n,i.resetResultsCount=()=>{n=0},i}function uS(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,a=(...o)=>{let n=0,i=0,u,l={},s=o.pop();typeof s=="object"&&(l=s,s=o.pop()),QC(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);let c={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:p=Fm,argsMemoizeOptions:h=[],devModeChecks:m={}}=c,v=Nm(d),b=Nm(h),O=rS(o),S=f(function(){return n++,s.apply(null,arguments)},...v),E=!0,L=p(function(){i++;let M=aS(O,arguments);return u=S.apply(null,M),u},...b);return Object.assign(L,{resultFunc:s,memoizedResultFunc:S,dependencies:O,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>u,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:f,argsMemoize:p})};return Object.assign(a,{withTypes:()=>a}),a}var P=uS(Fm),lS=Object.assign((e,t=P)=>{eS(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),a=r.map(n=>e[n]);return t(a,(...n)=>n.reduce((i,u,l)=>(i[r[l]]=u,i),{}))},{withTypes:()=>lS});function jm(e,t=1){let r=[],a=Math.floor(t),o=(n,i)=>{for(let u=0;u{if(e!==t){let a=Um(e),o=Um(t);if(a===o&&a===0){if(et)return r==="desc"?-1:1}return r==="desc"?o-a:a-o}return 0};function Oi(e){return typeof e=="symbol"||e instanceof Symbol}var sS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fS=/^\w*$/;function zm(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Oi(e)?!0:typeof e=="string"&&(fS.test(e)||!sS.test(e))||t!=null&&Object.hasOwn(t,e)}function Hm(e,t,r,a){if(e==null)return[];r=a?void 0:r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(u=>String(u));let o=(u,l)=>{let s=u;for(let c=0;cl==null||u==null?l:typeof u=="object"&&"key"in u?Object.hasOwn(l,u.key)?l[u.key]:o(l,u.path):typeof u=="function"?u(l):Array.isArray(u)?o(l,u):typeof l=="object"?l[u]:l,i=t.map(u=>(Array.isArray(u)&&u.length===1&&(u=u[0]),u==null||typeof u=="function"||Array.isArray(u)||zm(u)?u:{key:u,path:Ba(u)}));return e.map(u=>({original:u,criteria:i.map(l=>n(l,u))})).slice().sort((u,l)=>{for(let s=0;su.original)}function tr(e,...t){let r=t.length;return r>1&&Bo(e,t[0],t[1])?t=[]:r>2&&Bo(t[0],t[1],t[2])&&(t=[t[0]]),Hm(e,jm(t),["asc"])}var yf=e=>e.legend.settings,Vm=e=>e.legend.size,cS=e=>e.legend.payload,yU=P([cS,yf],(e,t)=>{var{itemSorter:r}=t,a=e.flat(1);return r?tr(a,r):a});import{useCallback as dS,useState as pS}from"react";var ki=1;function Wm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=pS({height:0,left:0,top:0,width:0}),a=dS(o=>{if(o!=null){var n=o.getBoundingClientRect(),i={height:n.height,left:n.left,top:n.top,width:n.width};(Math.abs(i.height-t.height)>ki||Math.abs(i.left-t.left)>ki||Math.abs(i.top-t.top)>ki||Math.abs(i.width-t.width)>ki)&&r({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,a]}import{useEffect as XL}from"react";function He(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var mS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Gm=mS,bf=()=>Math.random().toString(36).substring(7).split("").join("."),hS={INIT:`@@redux/INIT${bf()}`,REPLACE:`@@redux/REPLACE${bf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${bf()}`},Ei=hS;function Mi(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function If(e,t,r){if(typeof e!="function")throw new Error(He(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(He(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(He(1));return r(If)(e,t)}let a=e,o=t,n=new Map,i=n,u=0,l=!1;function s(){i===n&&(i=new Map,n.forEach((v,b)=>{i.set(b,v)}))}function c(){if(l)throw new Error(He(3));return o}function f(v){if(typeof v!="function")throw new Error(He(4));if(l)throw new Error(He(5));let b=!0;s();let O=u++;return i.set(O,v),function(){if(b){if(l)throw new Error(He(6));b=!1,s(),i.delete(O),n=null}}}function d(v){if(!Mi(v))throw new Error(He(7));if(typeof v.type>"u")throw new Error(He(8));if(typeof v.type!="string")throw new Error(He(17));if(l)throw new Error(He(9));try{l=!0,o=a(o,v)}finally{l=!1}return(n=i).forEach(O=>{O()}),v}function p(v){if(typeof v!="function")throw new Error(He(10));a=v,d({type:Ei.REPLACE})}function h(){let v=f;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(He(11));function O(){let E=b;E.next&&E.next(c())}return O(),{unsubscribe:v(O)}},[Gm](){return this}}}return d({type:Ei.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:p,[Gm]:h}}function gS(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Ei.INIT})>"u")throw new Error(He(12));if(typeof r(void 0,{type:Ei.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(He(13))})}function Di(e){let t=Object.keys(e),r={};for(let i=0;i"u"){let v=l&&l.type;throw new Error(He(14))}c[d]=m,s=s||m!==h}return s=s||a.length!==Object.keys(u).length,s?c:u}}function Fo(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...a)=>t(r(...a)))}function Km(...e){return t=>(r,a)=>{let o=t(r,a),n=()=>{throw new Error(He(15))},i={getState:o.getState,dispatch:(l,...s)=>n(l,...s)},u=e.map(l=>l(i));return n=Fo(...u)(o.dispatch),{...o,dispatch:n}}}function wf(e){return Mi(e)&&"type"in e&&typeof e.type=="string"}var ah=Symbol.for("immer-nothing"),$m=Symbol.for("immer-draftable"),Xe=Symbol.for("immer-state");function At(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var lt=Object,Ua=lt.getPrototypeOf,Ni="constructor",zi="prototype",Lf="configurable",Bi="enumerable",Ri="writable",jo="value",jt=e=>!!e&&!!e[Xe];function bt(e){return e?oh(e)||Vi(e)||!!e[$m]||!!e[Ni]?.[$m]||Wi(e)||Gi(e):!1}var vS=lt[zi][Ni].toString(),Xm=new WeakMap;function oh(e){if(!e||!Tf(e))return!1;let t=Ua(e);if(t===null||t===lt[zi])return!0;let r=lt.hasOwnProperty.call(t,Ni)&&t[Ni];if(r===Object)return!0;if(!ja(r))return!1;let a=Xm.get(r);return a===void 0&&(a=Function.toString.call(r),Xm.set(r,a)),a===vS}function Hi(e,t,r=!0){zo(e)===0?(r?Reflect.ownKeys(e):lt.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((a,o)=>t(o,a,e))}function zo(e){let t=e[Xe];return t?t.type_:Vi(e)?1:Wi(e)?2:Gi(e)?3:0}var Ym=(e,t,r=zo(e))=>r===2?e.has(t):lt[zi].hasOwnProperty.call(e,t),Pf=(e,t,r=zo(e))=>r===2?e.get(t):e[t],Fi=(e,t,r,a=zo(e))=>{a===2?e.set(t,r):a===3?e.add(r):e[t]=r};function xS(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Vi=Array.isArray,Wi=e=>e instanceof Map,Gi=e=>e instanceof Set,Tf=e=>typeof e=="object",ja=e=>typeof e=="function",Cf=e=>typeof e=="boolean";function yS(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var rr=e=>e.copy_||e.base_;var Rf=e=>e.modified_?e.copy_:e.base_;function Af(e,t){if(Wi(e))return new Map(e);if(Gi(e))return new Set(e);if(Vi(e))return Array[zi].slice.call(e);let r=oh(e);if(t===!0||t==="class_only"&&!r){let a=lt.getOwnPropertyDescriptors(e);delete a[Xe];let o=Reflect.ownKeys(a);for(let n=0;n1&<.defineProperties(e,{set:Ti,add:Ti,clear:Ti,delete:Ti}),lt.freeze(e),t&&Hi(e,(r,a)=>{_f(a,!0)},!1)),e}function bS(){At(2)}var Ti={[jo]:bS};function Ki(e){return e===null||!Tf(e)?!0:lt.isFrozen(e)}var ji="MapSet",Of="Patches",Zm="ArrayMethods",nh={};function Vr(e){let t=nh[e];return t||At(0,e),t}var Jm=e=>!!nh[e];var Uo,ih=()=>Uo,IS=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Jm(ji)?Vr(ji):void 0,arrayMethodsPlugin_:Jm(Zm)?Vr(Zm):void 0});function Qm(e,t){t&&(e.patchPlugin_=Vr(Of),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function kf(e){Ef(e),e.drafts_.forEach(wS),e.drafts_=null}function Ef(e){e===Uo&&(Uo=e.parent_)}var eh=e=>Uo=IS(Uo,e);function wS(e){let t=e[Xe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function th(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[Xe].modified_&&(kf(t),At(4)),bt(e)&&(e=rh(t,e));let{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[Xe].base_,e,t)}else e=rh(t,r);return CS(t,e,!0),kf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ah?e:void 0}function rh(e,t){if(Ki(t))return t;let r=t[Xe];if(!r)return Ui(t,e.handledSet_,e);if(!$i(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:a}=r;if(a)for(;a.length>0;)a.pop()(e);sh(r,e)}return r.copy_}function CS(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_f(t,r)}function uh(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var $i=(e,t)=>e.scope_===t,SS=[];function lh(e,t,r,a){let o=rr(e),n=e.type_;if(a!==void 0&&Pf(o,a,n)===t){Fi(o,a,r,n);return}if(!e.draftLocations_){let u=e.draftLocations_=new Map;Hi(o,(l,s)=>{if(jt(s)){let c=u.get(s)||[];c.push(l),u.set(s,c)}})}let i=e.draftLocations_.get(t)??SS;for(let u of i)Fi(o,u,r,n)}function LS(e,t,r){e.callbacks_.push(function(o){let n=t;if(!n||!$i(n,o))return;o.mapSetPlugin_?.fixSetContents(n);let i=Rf(n);lh(e,n.draft_??n,i,r),sh(n,o)})}function sh(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:a}=t;if(a){let o=a.getPath(e);o&&a.generatePatches_(e,o,t)}uh(e)}}function PS(e,t,r){let{scope_:a}=e;if(jt(r)){let o=r[Xe];$i(o,a)&&o.callbacks_.push(function(){_i(e);let i=Rf(o);lh(e,r,i,t)})}else bt(r)&&e.callbacks_.push(function(){let n=rr(e);e.type_===3?n.has(r)&&Ui(r,a.handledSet_,a):Pf(n,t,e.type_)===r&&a.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ui(Pf(e.copy_,t,e.type_),a.handledSet_,a)})}function Ui(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||jt(e)||t.has(e)||!bt(e)||Ki(e)||(t.add(e),Hi(e,(a,o)=>{if(jt(o)){let n=o[Xe];if($i(n,r)){let i=Rf(n);Fi(e,a,i,e.type_),uh(n)}}else bt(o)&&Ui(o,t,r)})),e}function AS(e,t){let r=Vi(e),a={type_:r?1:0,scope_:t?t.scope_:ih(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=a,n=qi;r&&(o=[a],n=qo);let{revoke:i,proxy:u}=Proxy.revocable(o,n);return a.draft_=u,a.revoke_=i,[u,a]}var qi={get(e,t){if(t===Xe)return e;let r=e.scope_.arrayMethodsPlugin_,a=e.type_===1&&typeof t=="string";if(a&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let o=rr(e);if(!Ym(o,t,e.type_))return OS(e,o,t);let n=o[t];if(e.finalized_||!bt(n)||a&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&yS(t))return n;if(n===Sf(e.base_,t)){_i(e);let i=e.type_===1?+t:t,u=Df(e.scope_,n,e,i);return e.copy_[i]=u}return n},has(e,t){return t in rr(e)},ownKeys(e){return Reflect.ownKeys(rr(e))},set(e,t,r){let a=fh(rr(e),t);if(a?.set)return a.set.call(e.draft_,r),!0;if(!e.modified_){let o=Sf(rr(e),t),n=o?.[Xe];if(n&&n.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(xS(r,o)&&(r!==void 0||Ym(e.base_,t,e.type_)))return!0;_i(e),Mf(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),PS(e,t,r)),!0},deleteProperty(e,t){return _i(e),Sf(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Mf(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=rr(e),a=Reflect.getOwnPropertyDescriptor(r,t);return a&&{[Ri]:!0,[Lf]:e.type_!==1||t!=="length",[Bi]:a[Bi],[jo]:r[t]}},defineProperty(){At(11)},getPrototypeOf(e){return Ua(e.base_)},setPrototypeOf(){At(12)}},qo={};for(let e in qi){let t=qi[e];qo[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}qo.deleteProperty=function(e,t){return qo.set.call(this,e,t,void 0)};qo.set=function(e,t,r){return qi.set.call(this,e[0],t,r,e[0])};function Sf(e,t){let r=e[Xe];return(r?rr(r):e)[t]}function OS(e,t,r){let a=fh(t,r);return a?jo in a?a[jo]:a.get?.call(e.draft_):void 0}function fh(e,t){if(!(t in e))return;let r=Ua(e);for(;r;){let a=Object.getOwnPropertyDescriptor(r,t);if(a)return a;r=Ua(r)}}function Mf(e){e.modified_||(e.modified_=!0,e.parent_&&Mf(e.parent_))}function _i(e){e.copy_||(e.assigned_=new Map,e.copy_=Af(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var kS=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,a)=>{if(ja(t)&&!ja(r)){let n=r;r=t;let i=this;return function(l=n,...s){return i.produce(l,c=>r.call(this,c,...s))}}ja(r)||At(6),a!==void 0&&!ja(a)&&At(7);let o;if(bt(t)){let n=eh(this),i=Df(n,t,void 0),u=!0;try{o=r(i),u=!1}finally{u?kf(n):Ef(n)}return Qm(n,a),th(o,n)}else if(!t||!Tf(t)){if(o=r(t),o===void 0&&(o=t),o===ah&&(o=void 0),this.autoFreeze_&&_f(o,!0),a){let n=[],i=[];Vr(Of).generateReplacementPatches_(t,o,{patches_:n,inversePatches_:i}),a(n,i)}return o}else At(1,t)},this.produceWithPatches=(t,r)=>{if(ja(t))return(i,...u)=>this.produceWithPatches(i,l=>t(l,...u));let a,o;return[this.produce(t,r,(i,u)=>{a=i,o=u}),a,o]},Cf(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Cf(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Cf(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){bt(e)||At(8),jt(e)&&(e=Ve(e));let t=eh(this),r=Df(t,e,void 0);return r[Xe].isManual_=!0,Ef(t),r}finishDraft(e,t){let r=e&&e[Xe];(!r||!r.isManual_)&&At(9);let{scope_:a}=r;return Qm(a,t),th(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));let a=Vr(Of).applyPatches_;return jt(e)?a(e,t):this.produce(e,o=>a(o,t))}};function Df(e,t,r,a){let[o,n]=Wi(t)?Vr(ji).proxyMap_(t,r):Gi(t)?Vr(ji).proxySet_(t,r):AS(t,r);return(r?.scope_??ih()).drafts_.push(o),n.callbacks_=r?.callbacks_??[],n.key_=a,r&&a!==void 0?LS(r,n,a):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:s}=l;n.modified_&&s&&s.generatePatches_(n,[],l)}),o}function Ve(e){return jt(e)||At(10,e),ch(e)}function ch(e){if(!bt(e)||Ki(e))return e;let t=e[Xe],r,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Af(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else r=Af(e,!0);return Hi(r,(o,n)=>{Fi(r,o,ch(n))},a),t&&(t.finalized_=!1),r}var ES=new kS,Nf=ES.produce;function dh(e){return({dispatch:r,getState:a})=>o=>n=>typeof n=="function"?n(r,a,e):o(n)}var ph=dh(),mh=dh;var MS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Fo:Fo.apply(null,arguments)},EU=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},DS=e=>e&&typeof e.match=="function";function Te(e,t){function r(...a){if(t){let o=t(...a);if(!o)throw new Error(st(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:a[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=a=>wf(a)&&a.type===e,r}var wh=class Ho extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ho.prototype)}static get[Symbol.species](){return Ho}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ho(...t[0].concat(this)):new Ho(...t.concat(this))}};function hh(e){return bt(e)?Nf(e,()=>{}):e}function Xi(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function TS(e){return typeof e=="boolean"}var RS=()=>function(t){let{thunk:r=!0,immutableCheck:a=!0,serializableCheck:o=!0,actionCreatorCheck:n=!0}=t??{},i=new wh;return r&&(TS(r)?i.push(ph):i.push(mh(r.extraArgument))),i},Ch="RTK_autoBatch",ce=()=>e=>({payload:e,meta:{[Ch]:!0}}),gh=e=>t=>{setTimeout(t,e)},_S=(e,t)=>r=>{let a=!1,o=()=>{a||(a=!0,cancelAnimationFrame(n),clearTimeout(i),r())},n=e(o),i=setTimeout(o,t)},Uf=(e={type:"raf"})=>t=>(...r)=>{let a=t(...r),o=!0,n=!1,i=!1,u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?_S(window.requestAnimationFrame,100):gh(10):e.type==="callback"?e.queueNotification:gh(e.timeout),s=()=>{i=!1,n&&(n=!1,u.forEach(c=>c()))};return Object.assign({},a,{subscribe(c){let f=()=>o&&c(),d=a.subscribe(f);return u.add(c),()=>{d(),u.delete(c)}},dispatch(c){try{return o=!c?.meta?.[Ch],n=!o,n&&(i||(i=!0,l(s))),a.dispatch(c)}finally{o=!0}}})},NS=e=>function(r){let{autoBatch:a=!0}=r??{},o=new wh(e);return a&&o.push(Uf(typeof a=="object"?a:void 0)),o};function Sh(e){let t=RS(),{reducer:r=void 0,middleware:a,devTools:o=!0,duplicateMiddlewareCheck:n=!0,preloadedState:i=void 0,enhancers:u=void 0}=e||{},l;if(typeof r=="function")l=r;else if(Mi(r))l=Di(r);else throw new Error(st(1));let s;typeof a=="function"?s=a(t):s=t();let c=Fo;o&&(c=MS({trace:!1,...typeof o=="object"&&o}));let f=Km(...s),d=NS(f),p=typeof u=="function"?u(d):d(),h=c(...p);return If(l,i,h)}function Lh(e){let t={},r=[],a,o={addCase(n,i){let u=typeof n=="string"?n:n.type;if(!u)throw new Error(st(28));if(u in t)throw new Error(st(29));return t[u]=i,o},addAsyncThunk(n,i){return i.pending&&(t[n.pending.type]=i.pending),i.rejected&&(t[n.rejected.type]=i.rejected),i.fulfilled&&(t[n.fulfilled.type]=i.fulfilled),i.settled&&r.push({matcher:n.settled,reducer:i.settled}),o},addMatcher(n,i){return r.push({matcher:n,reducer:i}),o},addDefaultCase(n){return a=n,o}};return e(o),[t,r,a]}function BS(e){return typeof e=="function"}function FS(e,t){let[r,a,o]=Lh(t),n;if(BS(e))n=()=>hh(e());else{let u=hh(e);n=()=>u}function i(u=n(),l){let s=[r[l.type],...a.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return s.filter(c=>!!c).length===0&&(s=[o]),s.reduce((c,f)=>{if(f)if(jt(c)){let p=f(c,l);return p===void 0?c:p}else{if(bt(c))return Nf(c,d=>f(d,l));{let d=f(c,l);if(d===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return c},u)}return i.getInitialState=n,i}var jS=(e,t)=>DS(e)?e.match(t):e(t);function US(...e){return t=>e.some(r=>jS(r,t))}var qS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ph=(e=21)=>{let t="",r=e;for(;r--;)t+=qS[Math.random()*64|0];return t},zS=["name","message","stack","code"],Bf=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},vh=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},HS=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of zS)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},xh="External signal was aborted",VS=(()=>{function e(t,r,a){let o=Te(t+"/fulfilled",(l,s,c,f)=>({payload:l,meta:{...f||{},arg:c,requestId:s,requestStatus:"fulfilled"}})),n=Te(t+"/pending",(l,s,c)=>({payload:void 0,meta:{...c||{},arg:s,requestId:l,requestStatus:"pending"}})),i=Te(t+"/rejected",(l,s,c,f,d)=>({payload:f,error:(a&&a.serializeError||HS)(l||"Rejected"),meta:{...d||{},arg:c,requestId:s,rejectedWithValue:!!f,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function u(l,{signal:s}={}){return(c,f,d)=>{let p=a?.idGenerator?a.idGenerator(l):Ph(),h=new AbortController,m,v;function b(S){v=S,h.abort()}s&&(s.aborted?b(xh):s.addEventListener("abort",()=>b(xh),{once:!0}));let O=async function(){let S;try{let L=a?.condition?.(l,{getState:f,extra:d});if(GS(L)&&(L=await L),L===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let k=new Promise((M,A)=>{m=()=>{A({name:"AbortError",message:v||"Aborted"})},h.signal.addEventListener("abort",m,{once:!0})});c(n(p,l,a?.getPendingMeta?.({requestId:p,arg:l},{getState:f,extra:d}))),S=await Promise.race([k,Promise.resolve(r(l,{dispatch:c,getState:f,extra:d,requestId:p,signal:h.signal,abort:b,rejectWithValue:(M,A)=>new Bf(M,A),fulfillWithValue:(M,A)=>new vh(M,A)})).then(M=>{if(M instanceof Bf)throw M;return M instanceof vh?o(M.payload,p,l,M.meta):o(M,p,l)})])}catch(L){S=L instanceof Bf?i(null,p,l,L.payload,L.meta):i(L,p,l)}finally{m&&h.signal.removeEventListener("abort",m)}return a&&!a.dispatchConditionRejection&&i.match(S)&&S.meta.condition||c(S),S}();return Object.assign(O,{abort:b,requestId:p,arg:l,unwrap(){return O.then(WS)}})}}return Object.assign(u,{pending:n,rejected:i,fulfilled:o,settled:US(i,o),typePrefix:t})}return e.withTypes=()=>e,e})();function WS(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function GS(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ah=Symbol.for("rtk-slice-createasyncthunk"),DU={[Ah]:VS};function KS(e,t){return`${e}/${t}`}function $S({creators:e}={}){let t=e?.asyncThunk?.[Ah];return function(a){let{name:o,reducerPath:n=o}=a;if(!o)throw new Error(st(11));typeof process<"u";let i=(typeof a.reducers=="function"?a.reducers(YS()):a.reducers)||{},u=Object.keys(i),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(S,E){let L=typeof S=="string"?S:S.type;if(!L)throw new Error(st(12));if(L in l.sliceCaseReducersByType)throw new Error(st(13));return l.sliceCaseReducersByType[L]=E,s},addMatcher(S,E){return l.sliceMatchers.push({matcher:S,reducer:E}),s},exposeAction(S,E){return l.actionCreators[S]=E,s},exposeCaseReducer(S,E){return l.sliceCaseReducersByName[S]=E,s}};u.forEach(S=>{let E=i[S],L={reducerName:S,type:KS(o,S),createNotation:typeof a.reducers=="function"};JS(E)?eL(L,E,s,t):ZS(L,E,s)});function c(){let[S={},E=[],L=void 0]=typeof a.extraReducers=="function"?Lh(a.extraReducers):[a.extraReducers],k={...S,...l.sliceCaseReducersByType};return FS(a.initialState,M=>{for(let A in k)M.addCase(A,k[A]);for(let A of l.sliceMatchers)M.addMatcher(A.matcher,A.reducer);for(let A of E)M.addMatcher(A.matcher,A.reducer);L&&M.addDefaultCase(L)})}let f=S=>S,d=new Map,p=new WeakMap,h;function m(S,E){return h||(h=c()),h(S,E)}function v(){return h||(h=c()),h.getInitialState()}function b(S,E=!1){function L(M){let A=M[S];return typeof A>"u"&&E&&(A=Xi(p,L,v)),A}function k(M=f){let A=Xi(d,E,()=>new WeakMap);return Xi(A,M,()=>{let z={};for(let[N,W]of Object.entries(a.selectors??{}))z[N]=XS(W,M,()=>Xi(p,M,v),E);return z})}return{reducerPath:S,getSelectors:k,get selectors(){return k(L)},selectSlice:L}}let O={name:o,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...b(n),injectInto(S,{reducerPath:E,...L}={}){let k=E??n;return S.inject({reducerPath:k,reducer:m},L),{...O,...b(k,!0)}}};return O}}function XS(e,t,r,a){function o(n,...i){let u=t(n);return typeof u>"u"&&a&&(u=r()),e(u,...i)}return o.unwrapped=e,o}var ue=$S();function YS(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function ZS({type:e,reducerName:t,createNotation:r},a,o){let n,i;if("reducer"in a){if(r&&!QS(a))throw new Error(st(17));n=a.reducer,i=a.prepare}else n=a;o.addCase(e,n).exposeCaseReducer(t,n).exposeAction(t,i?Te(e,i):Te(e))}function JS(e){return e._reducerDefinitionType==="asyncThunk"}function QS(e){return e._reducerDefinitionType==="reducerWithPrepare"}function eL({type:e,reducerName:t},r,a,o){if(!o)throw new Error(st(18));let{payloadCreator:n,fulfilled:i,pending:u,rejected:l,settled:s,options:c}=r,f=o(e,n,c);a.exposeAction(t,f),i&&a.addCase(f.fulfilled,i),u&&a.addCase(f.pending,u),l&&a.addCase(f.rejected,l),s&&a.addMatcher(f.settled,s),a.exposeCaseReducer(t,{fulfilled:i||Yi,pending:u||Yi,rejected:l||Yi,settled:s||Yi})}function Yi(){}var tL="task",Oh="listener",kh="completed",qf="cancelled",rL=`task-${qf}`,aL=`task-${kh}`,Ff=`${Oh}-${qf}`,oL=`${Oh}-${kh}`,Qi=class{constructor(e){this.code=e,this.message=`${tL} ${qf} (reason: ${e})`}code;name="TaskAbortError";message},zf=(e,t)=>{if(typeof e!="function")throw new TypeError(st(32))},Zi=()=>{},Eh=(e,t=Zi)=>(e.catch(t),e),Mh=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Wr=e=>{if(e.aborted)throw new Qi(e.reason)};function Dh(e,t){let r=Zi;return new Promise((a,o)=>{let n=()=>o(new Qi(e.reason));if(e.aborted){n();return}r=Mh(e,n),t.finally(()=>r()).then(a,o)}).finally(()=>{r=Zi})}var nL=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Qi?"cancelled":"rejected",error:r}}finally{t?.()}},Ji=e=>t=>Eh(Dh(e,t).then(r=>(Wr(e),r))),Th=e=>{let t=Ji(e);return r=>t(new Promise(a=>setTimeout(a,r)))},{assign:qa}=Object,yh={},eu="listenerMiddleware",iL=(e,t)=>{let r=a=>Mh(e,()=>a.abort(e.reason));return(a,o)=>{zf(a,"taskExecutor");let n=new AbortController;r(n);let i=nL(async()=>{Wr(e),Wr(n.signal);let u=await a({pause:Ji(n.signal),delay:Th(n.signal),signal:n.signal});return Wr(n.signal),u},()=>n.abort(aL));return o?.autoJoin&&t.push(i.catch(Zi)),{result:Ji(e)(i),cancel(){n.abort(rL)}}}},uL=(e,t)=>{let r=async(a,o)=>{Wr(t);let n=()=>{},u=[new Promise((l,s)=>{let c=e({predicate:a,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});n=()=>{c(),s()}})];o!=null&&u.push(new Promise(l=>setTimeout(l,o,null)));try{let l=await Dh(t,Promise.race(u));return Wr(t),l}finally{n()}};return(a,o)=>Eh(r(a,o))},Rh=e=>{let{type:t,actionCreator:r,matcher:a,predicate:o,effect:n}=e;if(t)o=Te(t).match;else if(r)t=r.type,o=r.match;else if(a)o=a;else if(!o)throw new Error(st(21));return zf(n,"options.listener"),{predicate:o,type:t,effect:n}},_h=qa(e=>{let{type:t,predicate:r,effect:a}=Rh(e);return{id:Ph(),effect:a,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(st(22))}}},{withTypes:()=>_h}),bh=(e,t)=>{let{type:r,effect:a,predicate:o}=Rh(t);return Array.from(e.values()).find(n=>(typeof r=="string"?n.type===r:n.predicate===o)&&n.effect===a)},jf=e=>{e.pending.forEach(t=>{t.abort(Ff)})},lL=(e,t)=>()=>{for(let r of t.keys())jf(r);e.clear()},Ih=(e,t,r)=>{try{e(t,r)}catch(a){setTimeout(()=>{throw a},0)}},Nh=qa(Te(`${eu}/add`),{withTypes:()=>Nh}),sL=Te(`${eu}/removeAll`),Bh=qa(Te(`${eu}/remove`),{withTypes:()=>Bh}),fL=(...e)=>{console.error(`${eu}/error`,...e)},ar=(e={})=>{let t=new Map,r=new Map,a=p=>{let h=r.get(p)??0;r.set(p,h+1)},o=p=>{let h=r.get(p)??1;h===1?r.delete(p):r.set(p,h-1)},{extra:n,onError:i=fL}=e;zf(i,"onError");let u=p=>(p.unsubscribe=()=>t.delete(p.id),t.set(p.id,p),h=>{p.unsubscribe(),h?.cancelActive&&jf(p)}),l=p=>{let h=bh(t,p)??_h(p);return u(h)};qa(l,{withTypes:()=>l});let s=p=>{let h=bh(t,p);return h&&(h.unsubscribe(),p.cancelActive&&jf(h)),!!h};qa(s,{withTypes:()=>s});let c=async(p,h,m,v)=>{let b=new AbortController,O=uL(l,b.signal),S=[];try{p.pending.add(b),a(p),await Promise.resolve(p.effect(h,qa({},m,{getOriginalState:v,condition:(E,L)=>O(E,L).then(Boolean),take:O,delay:Th(b.signal),pause:Ji(b.signal),extra:n,signal:b.signal,fork:iL(b.signal,S),unsubscribe:p.unsubscribe,subscribe:()=>{t.set(p.id,p)},cancelActiveListeners:()=>{p.pending.forEach((E,L,k)=>{E!==b&&(E.abort(Ff),k.delete(E))})},cancel:()=>{b.abort(Ff),p.pending.delete(b)},throwIfCancelled:()=>{Wr(b.signal)}})))}catch(E){E instanceof Qi||Ih(i,E,{raisedBy:"effect"})}finally{await Promise.all(S),b.abort(oL),o(p),p.pending.delete(b)}},f=lL(t,r);return{middleware:p=>h=>m=>{if(!wf(m))return h(m);if(Nh.match(m))return l(m.payload);if(sL.match(m)){f();return}if(Bh.match(m))return s(m.payload);let v=p.getState(),b=()=>{if(v===yh)throw new Error(st(23));return v},O;try{if(O=h(m),t.size>0){let S=p.getState(),E=Array.from(t.values());for(let L of E){let k=!1;try{k=L.predicate(m,S,v)}catch(M){k=!1,Ih(i,M,{raisedBy:"predicate"})}k&&c(L,m,p,b)}}}finally{v=yh}return O},startListening:l,stopListening:s,clearListeners:f}};function st(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var cL={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Fh=ue({name:"chartLayout",initialState:cL,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,a,o,n;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(a=t.payload.right)!==null&&a!==void 0?a:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(n=t.payload.left)!==null&&n!==void 0?n:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Hf,setLayout:jh,setChartSize:Uh,setScale:qh}=Fh.actions,zh=Fh.reducer;function tu(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function ae(e){return Number.isFinite(e)}function Ot(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Hh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function za(e){for(var t=1;t{if(t&&r){var{width:a,height:o}=r,{align:n,verticalAlign:i,layout:u}=t;if((u==="vertical"||u==="horizontal"&&i==="middle")&&n!=="center"&&X(e[n]))return za(za({},e),{},{[n]:e[n]+(a||0)});if((u==="horizontal"||u==="vertical"&&n==="center")&&i!=="middle"&&X(e[i]))return za(za({},e),{},{[i]:e[i]+(o||0)})}return e},kt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis";var hL=e=>{var t,r=e.length;if(!(r<=0)){var a=(t=e[0])===null||t===void 0?void 0:t.length;if(!(a==null||a<=0))for(var o=0;o=0?(s[0]=n,n+=d,s[1]=n):(s[0]=i,i+=d,s[1]=i)}}}},gL=e=>{var t,r=e.length;if(!(r<=0)){var a=(t=e[0])===null||t===void 0?void 0:t.length;if(!(a==null||a<=0))for(var o=0;o=0?(l[0]=n,n+=s,l[1]=n):(l[0]=0,l[1]=0)}}}},vL={sign:hL,expand:nf,none:it,silhouette:uf,wiggle:lf,positive:gL},Wh=(e,t,r)=>{var a,o=(a=vL[r])!==null&&a!==void 0?a:it,n=of().keys(t).value((u,l)=>Number(de(u,l,0))).order(_a).offset(o),i=n(e);return i.forEach((u,l)=>{u.forEach((s,c)=>{var f=de(e[c],t[l],0);Array.isArray(f)&&f.length===2&&X(f[0])&&X(f[1])&&(s[0]=f[0],s[1]=f[1])})}),i};var xL=e=>{var t=e.flat(2).filter(X);return[Math.min(...t),Math.max(...t)]},yL=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Gh=(e,t,r)=>{if(e!=null)return yL(Object.keys(e).reduce((a,o)=>{var n=e[o];if(!n)return a;var{stackedData:i}=n,u=i.reduce((l,s)=>{var c=tu(s,t,r),f=xL(c);return!ae(f[0])||!ae(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],a[0]),Math.max(u[1],a[1])]},[1/0,-1/0]))},Vf=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Wf=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Gf=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var a=e.scale.bandwidth();if(!r||a>0)return a}if(e&&t&&t.length>=2){for(var o=tr(t,c=>c.coordinate),n=1/0,i=1,u=o.length;i{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},$h=(e,t)=>t==="centric"?e.angle:e.radius;var We=e=>e.layout.width,Ge=e=>e.layout.height,Xh=e=>e.layout.scale,au=e=>e.layout.margin;var Ha=P(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Va=P(e=>e.cartesianAxis.yAxis,e=>Object.values(e));var ou="data-recharts-item-index",nu="data-recharts-item-id",Gr=60;function Yh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function iu(e){for(var t=1;te.brush.height;function SL(e){var t=Va(e);return t.reduce((r,a)=>{if(a.orientation==="left"&&!a.mirror&&!a.hide){var o=typeof a.width=="number"?a.width:Gr;return r+o}return r},0)}function LL(e){var t=Va(e);return t.reduce((r,a)=>{if(a.orientation==="right"&&!a.mirror&&!a.hide){var o=typeof a.width=="number"?a.width:Gr;return r+o}return r},0)}function PL(e){var t=Ha(e);return t.reduce((r,a)=>a.orientation==="top"&&!a.mirror&&!a.hide?r+a.height:r,0)}function AL(e){var t=Ha(e);return t.reduce((r,a)=>a.orientation==="bottom"&&!a.mirror&&!a.hide?r+a.height:r,0)}var pe=P([We,Ge,au,CL,SL,LL,PL,AL,yf,Vm],(e,t,r,a,o,n,i,u,l,s)=>{var c={left:(r.left||0)+o,right:(r.right||0)+n},f={top:(r.top||0)+i,bottom:(r.bottom||0)+u},d=iu(iu({},f),c),p=d.bottom;d.bottom+=a,d=Vh(d,l,s);var h=e-d.left-d.right,m=t-d.top-d.bottom;return iu(iu({brushBottom:p},d),{},{width:Math.max(h,0),height:Math.max(m,0)})}),Zh=P(pe,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),nq=P(We,Ge,(e,t)=>({x:0,y:0,width:e,height:t}));import*as OL from"react";import{createContext as kL,useContext as EL}from"react";var ML=kL(null),Ye=()=>EL(ML)!=null;var Wa=e=>e.brush,Kr=P([Wa,pe,au],(e,t,r)=>({height:e.height,x:X(e.x)?e.x:t.left,y:X(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:X(e.width)?e.width:t.width}));import*as $r from"react";import{createContext as UL,forwardRef as ng,useCallback as qL,useContext as zL,useEffect as HL,useImperativeHandle as VL,useMemo as WL,useRef as og,useState as GL}from"react";function Jh(e,t,{signal:r,edges:a}={}){let o,n=null,i=a!=null&&a.includes("leading"),u=a==null||a.includes("trailing"),l=()=>{n!==null&&(e.apply(o,n),o=void 0,n=null)},s=()=>{u&&l(),p()},c=null,f=()=>{c!=null&&clearTimeout(c),c=setTimeout(()=>{c=null,s()},t)},d=()=>{c!==null&&(clearTimeout(c),c=null)},p=()=>{d(),o=void 0,n=null},h=()=>{l()},m=function(...v){if(r?.aborted)return;o=this,n=v;let b=c==null;f(),i&&b&&l()};return m.schedule=f,m.cancel=p,m.flush=h,r?.addEventListener("abort",p,{once:!0}),m}function Qh(e,t=0,r={}){typeof r!="object"&&(r={});let{leading:a=!1,trailing:o=!0,maxWait:n}=r,i=Array(2);a&&(i[0]="leading"),o&&(i[1]="trailing");let u,l=null,s=Jh(function(...d){u=e.apply(this,d),l=null},t,{edges:i}),c=function(...d){return n!=null&&(l===null&&(l=Date.now()),Date.now()-l>=n)?(u=e.apply(this,d),l=Date.now(),s.cancel(),s.schedule(),u):(s.apply(this,d),u)},f=()=>(s.flush(),u);return c.cancel=s.cancel,c.flush=f,c}function $f(e,t=0,r={}){let{leading:a=!0,trailing:o=!0}=r;return Qh(e,t,{leading:a,maxWait:t,trailing:o})}var DL=!0,Xf=function(t,r){for(var a=arguments.length,o=new Array(a>2?a-2:0),n=2;no[i++]))}};var Et={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Yf=(e,t,r)=>{var{width:a=Et.width,height:o=Et.height,aspect:n,maxHeight:i}=r,u=Zt(a)?e:Number(a),l=Zt(o)?t:Number(o);return n&&n>0&&(u?l=u/n:l&&(u=l*n),i&&l!=null&&l>i&&(l=i)),{calculatedWidth:u,calculatedHeight:l}},TL={width:0,height:0,overflow:"visible"},RL={width:0,overflowX:"visible"},_L={height:0,overflowY:"visible"},NL={},eg=e=>{var{width:t,height:r}=e,a=Zt(t),o=Zt(r);return a&&o?TL:a?RL:o?_L:NL};function tg(e){var{width:t,height:r,aspect:a}=e,o=t,n=r;return o===void 0&&n===void 0?(o=Et.width,n=Et.height):o===void 0?o=a&&a>0?void 0:Et.width:n===void 0&&(n=a&&a>0?void 0:Et.height),{width:o,height:n}}function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:r,height:a}),[r,a]);return KL(o)?$r.createElement(ig.Provider,{value:o},t):null}var Vo=()=>zL(ig),$L=ng((e,t)=>{var{aspect:r,initialDimension:a=Et.initialDimension,width:o,height:n,minWidth:i=Et.minWidth,minHeight:u,maxHeight:l,children:s,debounce:c=Et.debounce,id:f,className:d,onResize:p,style:h={}}=e,m=og(null),v=og();v.current=p,VL(t,()=>m.current);var[b,O]=GL({containerWidth:a.width,containerHeight:a.height}),S=qL((A,z)=>{O(N=>{var W=Math.round(A),F=Math.round(z);return N.containerWidth===W&&N.containerHeight===F?N:{containerWidth:W,containerHeight:F}})},[]);HL(()=>{if(m.current==null||typeof ResizeObserver>"u")return er;var A=F=>{var $,Z=F[0];if(Z!=null){var{width:J,height:g}=Z.contentRect;S(J,g),($=v.current)===null||$===void 0||$.call(v,J,g)}};c>0&&(A=$f(A,c,{trailing:!0,leading:!1}));var z=new ResizeObserver(A),{width:N,height:W}=m.current.getBoundingClientRect();return S(N,W),z.observe(m.current),()=>{z.disconnect()}},[S,c]);var{containerWidth:E,containerHeight:L}=b;Xf(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:k,calculatedHeight:M}=Yf(E,L,{width:o,height:n,aspect:r,maxHeight:l});return Xf(k!=null&&k>0||M!=null&&M>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,k,M,o,n,i,u,r),$r.createElement("div",{id:f?"".concat(f):void 0,className:re("recharts-responsive-container",d),style:ag(ag({},h),{},{width:o,height:n,minWidth:i,minHeight:u,maxHeight:l}),ref:m},$r.createElement("div",{style:eg({width:o,height:n})},$r.createElement(ug,{width:k,height:M},s)))}),Jf=ng((e,t)=>{var r=Vo();if(Ot(r.width)&&Ot(r.height))return e.children;var{width:a,height:o}=tg({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:n,calculatedHeight:i}=Yf(void 0,void 0,{width:a,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return X(n)&&X(i)?$r.createElement(ug,{width:n,height:i},e.children):$r.createElement($L,Zf({},e,{width:a,height:o,ref:t}))});function Wo(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Xr=()=>{var e,t=Ye(),r=Y(Zh),a=Y(Kr),o=(e=Y(Wa))===null||e===void 0?void 0:e.padding;return!t||!a||!o?r:{width:a.width-o.left-o.right,height:a.height-o.top-o.bottom,x:o.left,y:o.top}},YL={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},lg=()=>{var e;return(e=Y(pe))!==null&&e!==void 0?e:YL},sg=()=>Y(We),fg=()=>Y(Ge);var le=e=>e.layout.layoutType,Yr=()=>Y(le);var Qf=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t};var cg=()=>{var e=Yr();return e!==void 0},Zr=e=>{var t=ne(),r=Ye(),{width:a,height:o}=e,n=Vo(),i=a,u=o;return n&&(i=n.width>0?n.width:a,u=n.height>0?n.height:o),XL(()=>{!r&&Ot(i)&&Ot(u)&&t(Uh({width:i,height:u}))},[t,r,i,u]),null};var ZL={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},dg=ue({name:"legend",initialState:ZL,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:ce()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ve(e).payload.indexOf(r);o>-1&&(e.payload[o]=a)},prepare:ce()},removeLegendPayload:{reducer(e,t){var r=Ve(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:ce()}}}),{setLegendSize:Hq,setLegendSettings:Vq,addLegendPayload:pg,replaceLegendPayload:mg,removeLegendPayload:hg}=dg.actions,gg=dg.reducer;import*as Le from"react";var JL=Symbol.for("react.forward_ref");var QL=Symbol.for("react.memo");var eP=JL,tP=QL;function rP(e){e()}function aP(){let e=null,t=null;return{clear(){e=null,t=null},notify(){rP(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],a=e;for(;a;)r.push(a),a=a.next;return r},subscribe(r){let a=!0,o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!a||e===null||(a=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var vg={notify(){},get:()=>[]};function oP(e,t){let r,a=vg,o=0,n=!1;function i(m){c();let v=a.subscribe(m),b=!1;return()=>{b||(b=!0,v(),f())}}function u(){a.notify()}function l(){h.onStateChange&&h.onStateChange()}function s(){return n}function c(){o++,r||(r=t?t.addNestedSub(l):e.subscribe(l),a=aP())}function f(){o--,r&&o===0&&(r(),r=void 0,a.clear(),a=vg)}function d(){n||(n=!0,c())}function p(){n&&(n=!1,f())}let h={addNestedSub:i,notifyNestedSubs:u,handleChangeWrapper:l,isSubscribed:s,trySubscribe:d,tryUnsubscribe:p,getListeners:()=>a};return h}var nP=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iP=nP(),uP=()=>typeof navigator<"u"&&navigator.product==="ReactNative",lP=uP(),sP=()=>iP||lP?Le.useLayoutEffect:Le.useEffect,fP=sP();function xg(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function yg(e,t){if(xg(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let o=0;o{let l=oP(o);return{store:o,subscription:l,getServerState:a?()=>a:void 0}},[o,a]),i=Le.useMemo(()=>o.getState(),[o]);return fP(()=>{let{subscription:l}=n;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[n,i]),Le.createElement((r||gP).Provider,{value:n},t)}var bg=vP;var xP=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function yP(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function uu(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var a of r)if(xP.has(a)){if(e[a]==null&&t[a]==null)continue;if(!yg(e[a],t[a]))return!1}else if(!yP(e[a],t[a]))return!1;return!0}import*as Ct from"react";import{useEffect as FD}from"react";import{createPortal as jD}from"react-dom";import*as Mt from"react";function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{separator:t=Ga.separator,contentStyle:r,itemStyle:a,labelStyle:o=Ga.labelStyle,payload:n,formatter:i,itemSorter:u,wrapperClassName:l,labelClassName:s,label:c,labelFormatter:f,accessibilityLayer:d=Ga.accessibilityLayer}=e,p=()=>{if(n&&n.length){var L={padding:0,margin:0},k=SP(n,u),M=k.map((A,z)=>{if(A.type==="none")return null;var N=A.formatter||i||CP,{value:W,name:F}=A,$=W,Z=F;if(N){var J=N(W,F,A,z,n);if(Array.isArray(J))[$,Z]=J;else if(J!=null)$=J;else return null}var g=Go(Go({},Ga.itemStyle),{},{color:A.color||Ga.itemStyle.color},a);return Mt.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(z),style:g},rt(Z)?Mt.createElement("span",{className:"recharts-tooltip-item-name"},Z):null,rt(Z)?Mt.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,Mt.createElement("span",{className:"recharts-tooltip-item-value"},$),Mt.createElement("span",{className:"recharts-tooltip-item-unit"},A.unit||""))});return Mt.createElement("ul",{className:"recharts-tooltip-item-list",style:L},M)}return null},h=Go(Go({},Ga.contentStyle),r),m=Go({margin:0},o),v=!Me(c),b=v?c:"",O=re("recharts-default-tooltip",l),S=re("recharts-tooltip-label",s);v&&f&&n!==void 0&&n!==null&&(b=f(c,n));var E=d?{role:"status","aria-live":"assertive"}:{};return Mt.createElement("div",ec({className:O,style:h},E),Mt.createElement("p",{className:S,style:m},Mt.isValidElement(b)?b:"".concat(b)),p())};import*as xr from"react";var Ko="recharts-tooltip-wrapper",LP={visibility:"hidden"};function PP(e){var{coordinate:t,translateX:r,translateY:a}=e;return re(Ko,{["".concat(Ko,"-right")]:X(r)&&t&&X(t.x)&&r>=t.x,["".concat(Ko,"-left")]:X(r)&&t&&X(t.x)&&r=t.y,["".concat(Ko,"-top")]:X(a)&&t&&X(t.y)&&a0?o:0),f=r[a]+o;if(t[a])return i[a]?c:f;var d=l[a];if(d==null)return 0;if(i[a]){var p=c,h=d;return pv?Math.max(c,d):Math.max(f,d)}function AP(e){var{translateX:t,translateY:r,useTranslate3d:a}=e;return{transform:a?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Sg(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:a,offsetLeft:o,position:n,reverseDirection:i,tooltipBox:u,useTranslate3d:l,viewBox:s}=e,c,f,d;return u.height>0&&u.width>0&&r?(f=Cg({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:n,reverseDirection:i,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),d=Cg({allowEscapeViewBox:t,coordinate:r,key:"y",offset:a,position:n,reverseDirection:i,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),c=AP({translateX:f,translateY:d,useTranslate3d:l})):c=LP,{cssProperties:c,cssClasses:PP({translateX:f,translateY:d,coordinate:r})}}import{useEffect as kP,useState as EP}from"react";var OP=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Ut={devToolsEnabled:!0,isSsr:OP()};function lu(){var[e,t]=EP(()=>Ut.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return kP(()=>{if(window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>{t(r.matches)};return r.addEventListener("change",a),()=>{r.removeEventListener("change",a)}}},[]),e}function Lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Ka(e){for(var t=1;t({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));xr.useEffect(()=>{var h=m=>{if(m.key==="Escape"){var v,b,O,S;s({dismissed:!0,dismissedAtCoordinate:{x:(v=(b=e.coordinate)===null||b===void 0?void 0:b.x)!==null&&v!==void 0?v:0,y:(O=(S=e.coordinate)===null||S===void 0?void 0:S.y)!==null&&O!==void 0?O:0}})}};return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(r=e.coordinate)===null||r===void 0?void 0:r.y]),l.dismissed&&(((a=(o=e.coordinate)===null||o===void 0?void 0:o.x)!==null&&a!==void 0?a:0)!==l.dismissedAtCoordinate.x||((n=(i=e.coordinate)===null||i===void 0?void 0:i.y)!==null&&n!==void 0?n:0)!==l.dismissedAtCoordinate.y)&&s(Ka(Ka({},l),{},{dismissed:!1}));var{cssClasses:c,cssProperties:f}=Sg({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),d=e.hasPortalFromProps?{}:Ka(Ka({transition:RP({prefersReducedMotion:u,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},f),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),p=Ka(Ka({},d),{},{visibility:!l.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return xr.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:c,style:p,ref:e.innerRef},e.children)}var Pg=xr.memo(_P);var su=()=>{var e;return(e=Y(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};import*as Hl from"react";import{cloneElement as hD,createElement as gD,isValidElement as vD}from"react";import*as Dg from"react";function tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;tae(e.x)&&ae(e.y),Eg=e=>e.base!=null&&fu(e.base)&&fu(e),$o=e=>e.x,Xo=e=>e.y,jP=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Qt(e));if((r==="curveMonotone"||r==="curveBump")&&t){var a=kg["".concat(r).concat(t==="vertical"?"Y":"X")];if(a)return a}return kg[r]||gr},Mg={connectNulls:!1,type:"linear"},UP=e=>{var{type:t=Mg.type,points:r=[],baseLine:a,layout:o,connectNulls:n=Mg.connectNulls}=e,i=jP(t,o),u=n?r.filter(fu):r;if(Array.isArray(a)){var l,s=r.map((h,m)=>Og(Og({},h),{},{base:a[m]}));o==="vertical"?l=Ma().y(Xo).x1($o).x0(h=>h.base.x):l=Ma().x($o).y1(Xo).y0(h=>h.base.y);var c=l.defined(Eg).curve(i),f=n?s.filter(Eg):s;return c(f)}var d;o==="vertical"&&X(a)?d=Ma().y(Xo).x1($o).x0(a):X(a)?d=Ma().x($o).y1(Xo).y0(a):d=To().x($o).y(Xo);var p=d.defined(fu).curve(i);return p(u)},$a=e=>{var{className:t,points:r,path:a,pathRef:o}=e,n=Yr();if((!r||!r.length)&&!a)return null;var i={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||n,connectNulls:e.connectNulls},u=r&&r.length?UP(i):a;return Dg.createElement("path",tc({},Yt(e),$p(e),{className:re("recharts-curve",t),d:u===null?void 0:u,ref:o}))};import*as Rg from"react";var qP=["x","y","top","left","width","height","className"];function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"M".concat(e,",").concat(o,"v").concat(a,"M").concat(n,",").concat(t,"h").concat(r),_g=e=>{var{x:t=0,y:r=0,top:a=0,left:o=0,width:n=0,height:i=0,className:u}=e,l=GP(e,qP),s=zP({x:t,y:r,top:a,left:o,width:n,height:i},l);return!X(t)||!X(r)||!X(n)||!X(i)||!X(a)||!X(o)?null:Rg.createElement("path",rc({},Se(s),{className:re("recharts-cross",u),d:$P(t,r,n,i,a,o)}))};function Ng(e,t,r,a){var o=a/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-o,width:e==="horizontal"?a:r.width-1,height:e==="horizontal"?r.height-1:a}}import*as hu from"react";import{useEffect as wA,useMemo as CA,useRef as Yo,useState as SA}from"react";import{useEffect as Zg,useRef as pA,useState as mA}from"react";function Bg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Fg(e){for(var t=1;te.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),cu=(e,t,r)=>e.map(a=>"".concat(JP(a)," ").concat(t,"ms ").concat(r)).join(","),jg=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,a)=>r.filter(o=>a.includes(o))),Xa=(e,t)=>Object.keys(t).reduce((r,a)=>Fg(Fg({},r),{},{[a]:e(a,t[a])}),{});function Ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Re(e){for(var t=1;te+(t-e)*r,ac=e=>{var{from:t,to:r}=e;return t!==r},qg=(e,t,r)=>{var a=Xa((o,n)=>{if(ac(n)){var[i,u]=e(n.from,n.to,n.velocity);return Re(Re({},n),{},{from:i,velocity:u})}return n},t);return r<1?Xa((o,n)=>ac(n)&&a[o]!=null?Re(Re({},n),{},{velocity:du(n.velocity,a[o].velocity,r),from:du(n.from,a[o].from,r)}):n,t):qg(e,a,r-1)};function rA(e,t,r,a,o,n){var i,u=a.reduce((d,p)=>Re(Re({},d),{},{[p]:{from:e[p],velocity:0,to:t[p]}}),{}),l=()=>Xa((d,p)=>p.from,u),s=()=>!Object.values(u).filter(ac).length,c=null,f=d=>{i||(i=d);var p=d-i,h=p/r.dt;u=qg(r,u,h),o(Re(Re(Re({},e),t),l())),i=d,s()||(c=n.setTimeout(f))};return()=>(c=n.setTimeout(f),()=>{var d;(d=c)===null||d===void 0||d()})}function aA(e,t,r,a,o,n,i){var u=null,l=o.reduce((f,d)=>{var p=e[d],h=t[d];return p==null||h==null?f:Re(Re({},f),{},{[d]:[p,h]})},{}),s,c=f=>{s||(s=f);var d=(f-s)/a,p=Xa((m,v)=>du(...v,r(d)),l);if(n(Re(Re(Re({},e),t),p)),d<1)u=i.setTimeout(c);else{var h=Xa((m,v)=>du(...v,r(1)),l);n(Re(Re(Re({},e),t),h))}};return()=>(u=i.setTimeout(c),()=>{var f;(f=u)===null||f===void 0||f()})}var zg=(e,t,r,a,o,n)=>{var i=jg(e,t);return r==null?()=>(o(Re(Re({},e),t)),()=>{}):r.isStepper===!0?rA(e,t,r,i,o,n):aA(e,t,r,a,i,o,n)};var pu=1e-4,Wg=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Gg=(e,t)=>e.map((r,a)=>r*t**a).reduce((r,a)=>r+a),Hg=(e,t)=>r=>{var a=Wg(e,t);return Gg(a,r)},oA=(e,t)=>r=>{var a=Wg(e,t),o=[...a.map((n,i)=>n*i).slice(1),0];return Gg(o,r)},nA=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var a=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(a==null||a.length!==4)return null;var o=a.map(n=>parseFloat(n));return[o[0],o[1],o[2],o[3]]},iA=function(){for(var t=arguments.length,r=new Array(t),a=0;a{var o=Hg(e,r),n=Hg(t,a),i=oA(e,r),u=s=>s>1?1:s<0?0:s,l=s=>{for(var c=s>1?1:s,f=c,d=0;d<8;++d){var p=o(f)-c,h=i(f);if(Math.abs(p-c)0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:a=8,dt:o=17}=t,n=(i,u,l)=>{var s=-(i-u)*r,c=l*a,f=l+(s-c)*o/1e3,d=l*o/1e3+i;return Math.abs(d-u){if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Vg(e);case"spring":return lA();default:if(e.split("(")[0]==="cubic-bezier")return Vg(e)}return typeof e=="function"?e:null};import{createContext as sA,useContext as fA,useMemo as cA}from"react";function $g(e){var t,r=()=>null,a=!1,o=null,n=i=>{if(!a){if(Array.isArray(i)){if(!i.length)return;var u=i,[l,...s]=u;if(typeof l=="number"){o=e.setTimeout(n.bind(null,s),l);return}n(l),o=e.setTimeout(n.bind(null,s));return}typeof i=="string"&&(t=i,r(t)),typeof i=="object"&&(t=i,r(t)),typeof i=="function"&&i()}};return{stop:()=>{a=!0},start:i=>{a=!1,o&&(o(),o=null),n(i)},subscribe:i=>(r=i,()=>{r=()=>null}),getTimeoutController:()=>e}}var mu=class{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=performance.now(),o=null,n=i=>{i-a>=r?t(i):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(n))};return o=requestAnimationFrame(n),()=>{o!=null&&cancelAnimationFrame(o)}}};function Xg(){return $g(new mu)}var dA=sA(Xg);function Yg(e,t){var r=fA(dA);return cA(()=>t??r(e),[e,t,r])}var hA={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Jg={t:0},oc={t:1};function Ya(e){var t=De(e,hA),{isActive:r,canBegin:a,duration:o,easing:n,begin:i,onAnimationEnd:u,onAnimationStart:l,children:s}=t,c=lu(),f=r==="auto"?!Ut.isSsr&&!c:r,d=Yg(t.animationId,t.animationManager),[p,h]=mA(f?Jg:oc),m=pA(null);return Zg(()=>{f||h(oc)},[f]),Zg(()=>{if(!f||!a)return er;var v=zg(Jg,oc,Kg(n),o,h,d.getTimeoutController()),b=()=>{m.current=v()};return d.start([l,i,b,o,u]),()=>{d.stop(),m.current&&m.current(),u()}},[f,a,o,n,i,l,u,d]),s(p.t)}import{useRef as Qg}from"react";function Za(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=Qg(Jt(t)),a=Qg(e);return a.current!==e&&(r.current=Jt(t),a.current=e),r.current}var gA=["radius"],vA=["radius"],ev,tv,rv,av,ov,nv,iv,uv,lv,sv;function fv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function cv(e){for(var t=1;t{var n=Ft(r),i=Ft(a),u=Math.min(Math.abs(n)/2,Math.abs(i)/2),l=i>=0?1:-1,s=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,f;if(u>0&&Array.isArray(o)){for(var d=[0,0,0,0],p=0,h=4;pu?u:v}f=ve(ev||(ev=qt(["M",",",""])),e,t+l*d[0]),d[0]>0&&(f+=ve(tv||(tv=qt(["A ",",",",0,0,",",",",",""])),d[0],d[0],c,e+s*d[0],t)),f+=ve(rv||(rv=qt(["L ",",",""])),e+r-s*d[1],t),d[1]>0&&(f+=ve(av||(av=qt(["A ",",",",0,0,",`, + `,",",""])),d[1],d[1],c,e+r,t+l*d[1])),f+=ve(ov||(ov=qt(["L ",",",""])),e+r,t+a-l*d[2]),d[2]>0&&(f+=ve(nv||(nv=qt(["A ",",",",0,0,",`, + `,",",""])),d[2],d[2],c,e+r-s*d[2],t+a)),f+=ve(iv||(iv=qt(["L ",",",""])),e+s*d[3],t+a),d[3]>0&&(f+=ve(uv||(uv=qt(["A ",",",",0,0,",`, + `,",",""])),d[3],d[3],c,e,t+a-l*d[3])),f+="Z"}else if(u>0&&o===+o&&o>0){var b=Math.min(u,o);f=ve(lv||(lv=qt(["M ",",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",","," Z"])),e,t+l*b,b,b,c,e+s*b,t,e+r-s*b,t,b,b,c,e+r,t+l*b,e+r,t+a-l*b,b,b,c,e+r-s*b,t+a,e+s*b,t+a,b,b,c,e,t+a-l*b)}else f=ve(sv||(sv=qt(["M ",","," h "," v "," h "," Z"])),e,t,r,a,-r);return f},mv={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},vu=e=>{var t=De(e,mv),r=Yo(null),[a,o]=SA(-1);wA(()=>{if(r.current&&r.current.getTotalLength)try{var y=r.current.getTotalLength();y&&o(y)}catch{}},[]);var{x:n,y:i,width:u,height:l,radius:s,className:c}=t,{animationEasing:f,animationDuration:d,animationBegin:p,isAnimationActive:h,isUpdateAnimationActive:m}=t,v=Yo(u),b=Yo(l),O=Yo(n),S=Yo(i),E=CA(()=>({x:n,y:i,width:u,height:l,radius:s}),[n,i,u,l,s]),L=Za(E,"rectangle-");if(n!==+n||i!==+i||u!==+u||l!==+l||u===0||l===0)return null;var k=re("recharts-rectangle",c);if(!m){var M=Se(t),{radius:A}=M,z=dv(M,gA);return hu.createElement("path",gu({},z,{x:Ft(n),y:Ft(i),width:Ft(u),height:Ft(l),radius:typeof s=="number"?s:void 0,className:k,d:pv(n,i,u,l,s)}))}var N=v.current,W=b.current,F=O.current,$=S.current,Z="0px ".concat(a===-1?1:a,"px"),J="".concat(a,"px ").concat(a,"px"),g=cu(["strokeDasharray"],d,typeof f=="string"?f:mv.animationEasing);return hu.createElement(Ya,{animationId:L,key:L,canBegin:a>0,duration:d,easing:f,isActive:m,begin:p},y=>{var C=at(N,u,y),I=at(W,l,y),x=at(F,n,y),w=at($,i,y);r.current&&(v.current=C,b.current=I,O.current=x,S.current=w);var D;h?y>0?D={transition:g,strokeDasharray:J}:D={strokeDasharray:Z}:D={strokeDasharray:J};var _=Se(t),{radius:B}=_,U=dv(_,vA);return hu.createElement("path",gu({},U,{radius:typeof s=="number"?s:void 0,className:k,d:pv(x,w,C,I,s),ref:r,style:cv(cv({},D),t.style)}))})};function hv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function gv(e){for(var t=1;te*180/Math.PI,ge=(e,t,r,a)=>({x:e+Math.cos(-Zo*a)*r,y:t+Math.sin(-Zo*a)*r}),xu=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(t-(a.left||0)-(a.right||0)),Math.abs(r-(a.top||0)-(a.bottom||0)))/2},kA=(e,t)=>{var{x:r,y:a}=e,{x:o,y:n}=t;return Math.sqrt((r-o)**2+(a-n)**2)},EA=(e,t)=>{var{x:r,y:a}=e,{cx:o,cy:n}=t,i=kA({x:r,y:a},{x:o,y:n});if(i<=0)return{radius:i,angle:0};var u=(r-o)/i,l=Math.acos(u);return a>n&&(l=2*Math.PI-l),{radius:i,angle:OA(l),angleInRadian:l}},MA=e=>{var{startAngle:t,endAngle:r}=e,a=Math.floor(t/360),o=Math.floor(r/360),n=Math.min(a,o);return{startAngle:t-n*360,endAngle:r-n*360}},DA=(e,t)=>{var{startAngle:r,endAngle:a}=t,o=Math.floor(r/360),n=Math.floor(a/360),i=Math.min(o,n);return e+i*360},vv=(e,t)=>{var{relativeX:r,relativeY:a}=e,{radius:o,angle:n}=EA({x:r,y:a},t),{innerRadius:i,outerRadius:u}=t;if(ou||o===0)return null;var{startAngle:l,endAngle:s}=MA(t),c=n,f;if(l<=s){for(;c>s;)c-=360;for(;c=l&&c<=s}else{for(;c>l;)c-=360;for(;c=s&&c<=l}return f?gv(gv({},t),{},{radius:o,angle:DA(c,t)}):null};function yu(e){var{cx:t,cy:r,radius:a,startAngle:o,endAngle:n}=e,i=ge(t,r,a,o),u=ge(t,r,a,n);return{points:[i,u],cx:t,cy:r,radius:a,startAngle:o,endAngle:n}}import*as Lv from"react";var xv,yv,bv,Iv,wv,Cv,Sv;function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=Pe(t-e),a=Math.min(Math.abs(t-e),359.999);return r*a},bu=e=>{var{cx:t,cy:r,radius:a,angle:o,sign:n,isExternal:i,cornerRadius:u,cornerIsExternal:l}=e,s=u*(i?1:-1)+a,c=Math.asin(u/s)/Zo,f=l?o:o+n*c,d=ge(t,r,s,f),p=ge(t,r,a,f),h=l?o-n*c:o,m=ge(t,r,s*Math.cos(c*Zo),h);return{center:d,circleTangency:p,lineTangency:m,theta:c}},Pv=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:n,endAngle:i}=e,u=TA(n,i),l=n+u,s=ge(t,r,o,n),c=ge(t,r,o,l),f=ve(xv||(xv=Jr(["M ",",",` + A `,",",`,0, + `,",",`, + `,",",` + `])),s.x,s.y,o,o,+(Math.abs(u)>180),+(n>l),c.x,c.y);if(a>0){var d=ge(t,r,a,n),p=ge(t,r,a,l);f+=ve(yv||(yv=Jr(["L ",",",` + A `,",",`,0, + `,",",`, + `,","," Z"])),p.x,p.y,a,a,+(Math.abs(u)>180),+(n<=l),d.x,d.y)}else f+=ve(bv||(bv=Jr(["L ",","," Z"])),t,r);return f},RA=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:o,cornerRadius:n,forceCornerRadius:i,cornerIsExternal:u,startAngle:l,endAngle:s}=e,c=Pe(s-l),{circleTangency:f,lineTangency:d,theta:p}=bu({cx:t,cy:r,radius:o,angle:l,sign:c,cornerRadius:n,cornerIsExternal:u}),{circleTangency:h,lineTangency:m,theta:v}=bu({cx:t,cy:r,radius:o,angle:s,sign:-c,cornerRadius:n,cornerIsExternal:u}),b=u?Math.abs(l-s):Math.abs(l-s)-p-v;if(b<0)return i?ve(Iv||(Iv=Jr(["M ",",",` + a`,",",",0,0,1,",`,0 + a`,",",",0,0,1,",`,0 + `])),d.x,d.y,n,n,n*2,n,n,-n*2):Pv({cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:l,endAngle:s});var O=ve(wv||(wv=Jr(["M ",",",` + A`,",",",0,0,",",",",",` + A`,",",",0,",",",",",",",` + A`,",",",0,0,",",",",",` + `])),d.x,d.y,n,n,+(c<0),f.x,f.y,o,o,+(b>180),+(c<0),h.x,h.y,n,n,+(c<0),m.x,m.y);if(a>0){var{circleTangency:S,lineTangency:E,theta:L}=bu({cx:t,cy:r,radius:a,angle:l,sign:c,isExternal:!0,cornerRadius:n,cornerIsExternal:u}),{circleTangency:k,lineTangency:M,theta:A}=bu({cx:t,cy:r,radius:a,angle:s,sign:-c,isExternal:!0,cornerRadius:n,cornerIsExternal:u}),z=u?Math.abs(l-s):Math.abs(l-s)-L-A;if(z<0&&n===0)return"".concat(O,"L").concat(t,",").concat(r,"Z");O+=ve(Cv||(Cv=Jr(["L",",",` + A`,",",",0,0,",",",",",` + A`,",",",0,",",",",",",",` + A`,",",",0,0,",",",",","Z"])),M.x,M.y,n,n,+(c<0),k.x,k.y,a,a,+(z>180),+(c>0),S.x,S.y,n,n,+(c<0),E.x,E.y)}else O+=ve(Sv||(Sv=Jr(["L",",","Z"])),t,r);return O},_A={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},yr=e=>{var t=De(e,_A),{cx:r,cy:a,innerRadius:o,outerRadius:n,cornerRadius:i,forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:c,className:f}=t;if(n0&&Math.abs(s-c)<360?m=RA({cx:r,cy:a,innerRadius:o,outerRadius:n,cornerRadius:Math.min(h,p/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:c}):m=Pv({cx:r,cy:a,innerRadius:o,outerRadius:n,startAngle:s,endAngle:c}),Lv.createElement("path",nc({},Se(t),{className:d,d:m}))};function Av(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(hi(t)){if(e==="centric"){var{cx:a,cy:o,innerRadius:n,outerRadius:i,angle:u}=t,l=ge(a,o,n,u),s=ge(a,o,i,u);return[{x:l.x,y:l.y},{x:s.x,y:s.y}]}return yu(t)}}function Ov(e){return Oi(e)?NaN:Number(e)}function Iu(e){return e?(e=Ov(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function wu(e,t,r){r&&typeof r!="number"&&Bo(e,t,r)&&(t=r=void 0),e=Iu(e),t===void 0?(t=e,e=0):t=Iu(t),r=r===void 0?ee.chartData,Jo=P([Dt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),ic=(e,t,r,a)=>a?Jo(e):Dt(e);function ft(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(ae(t)&&ae(r))return!0}return!1}function kv(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Cu(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,a]=e,o,n;if(ae(r))o=r;else if(typeof r=="function")return;if(ae(a))n=a;else if(typeof a=="function")return;var i=[o,n];if(ft(i))return i}}function Ev(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var a=e(t,r);if(ft(a))return kv(a,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[o,n]=e,i,u;if(o==="auto")t!=null&&(i=Math.min(...t));else if(X(o))i=o;else if(typeof o=="function")try{t!=null&&(i=o(t?.[0]))}catch{}else if(typeof o=="string"&&Vf.test(o)){var l=Vf.exec(o);if(l==null||l[1]==null||t==null)i=void 0;else{var s=+l[1];i=t[0]-s}}else i=t?.[0];if(n==="auto")t!=null&&(u=Math.max(...t));else if(X(n))u=n;else if(typeof n=="function")try{t!=null&&(u=n(t?.[1]))}catch{}else if(typeof n=="string"&&Wf.test(n)){var c=Wf.exec(n);if(c==null||c[1]==null||t==null)u=void 0;else{var f=+c[1];u=t[1]+f}}else u=t?.[1];var d=[i,u];if(ft(d))return t==null?d:kv(d,t,r)}}}var ie=ai(uc());var lc=ai(uc());function sc(e){var t;return e===0?t=1:t=Math.floor(new lc.default(e).abs().log(10).toNumber())+1,t}function fc(e,t,r){for(var a=new lc.default(e),o=0,n=[];a.lt(t)&&o<1e5;)n.push(a.toNumber()),a=a.add(r),o++;return n}var Dv=e=>{var[t,r]=e,[a,o]=[t,r];return t>r&&([a,o]=[r,t]),[a,o]},cc=(e,t,r)=>{if(e.lte(0))return new ie.default(0);var a=sc(e.toNumber()),o=new ie.default(10).pow(a),n=e.div(o),i=a!==1?.05:.1,u=new ie.default(Math.ceil(n.div(i).toNumber())).add(r).mul(i),l=u.mul(o);return t?new ie.default(l.toNumber()):new ie.default(Math.ceil(l.toNumber()))},Tv=(e,t,r)=>{var a;if(e.lte(0))return new ie.default(0);var o=[1,2,2.5,5],n=e.toNumber(),i=Math.floor(new ie.default(n).abs().log(10).toNumber()),u=new ie.default(10).pow(i),l=e.div(u).toNumber(),s=o.findIndex(p=>p>=l-1e-10);if(s===-1&&(u=u.mul(10),s=0),s+=r,s>=o.length){var c=Math.floor(s/o.length);s%=o.length,u=u.mul(new ie.default(10).pow(c))}var f=(a=o[s])!==null&&a!==void 0?a:1,d=new ie.default(f).mul(u);return t?d:new ie.default(Math.ceil(d.toNumber()))},NA=(e,t,r)=>{var a=new ie.default(1),o=new ie.default(e);if(!o.isint()&&r){var n=Math.abs(e);n<1?(a=new ie.default(10).pow(sc(e)-1),o=new ie.default(Math.floor(o.div(a).toNumber())).mul(a)):n>1&&(o=new ie.default(Math.floor(e)))}else e===0?o=new ie.default(Math.floor((t-1)/2)):r||(o=new ie.default(Math.floor(e)));for(var i=Math.floor((t-1)/2),u=[],l=0;l4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:cc;if(!Number.isFinite((r-t)/(a-1)))return{step:new ie.default(0),tickMin:new ie.default(0),tickMax:new ie.default(0)};var u=i(new ie.default(r).sub(t).div(a-1),o,n),l;t<=0&&r>=0?l=new ie.default(0):(l=new ie.default(t).add(r).div(2),l=l.sub(new ie.default(l).mod(u)));var s=Math.ceil(l.sub(t).div(u).toNumber()),c=Math.ceil(new ie.default(r).sub(l).div(u).toNumber()),f=s+c+1;return f>a?Rv(t,r,a,o,n+1,i):(f0?c+(a-f):c,s=r>0?s:s+(a-f)),{step:u,tickMin:l.sub(new ie.default(s).mul(u)),tickMax:l.add(new ie.default(c).mul(u))})};var Lu=function(t){var[r,a]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",u=Math.max(o,2),[l,s]=Dv([r,a]);if(l===-1/0||s===1/0){var c=s===1/0?[l,...Array(o-1).fill(1/0)]:[...Array(o-1).fill(-1/0),s];return r>a?c.reverse():c}if(l===s)return NA(l,o,n);var f=i==="snap125"?Tv:cc,{step:d,tickMin:p,tickMax:h}=Rv(l,s,u,n,0,f),m=fc(p,h.add(new ie.default(.1).mul(d)),d);return r>a?m.reverse():m},Pu=function(t,r){var[a,o]=t,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[u,l]=Dv([a,o]);if(u===-1/0||l===1/0)return[a,o];if(u===l)return[u];var s=i==="snap125"?Tv:cc,c=Math.max(r,2),f=s(new ie.default(l).sub(u).div(c-1),n,0),d=[...fc(new ie.default(u),new ie.default(l),f),l];return n===!1&&(d=d.map(p=>Math.round(p))),a>o?d.reverse():d};var _v=e=>e.rootProps.barCategoryGap;var br=e=>e.rootProps.stackOffset,Au=e=>e.rootProps.reverseStackOrder,Ja=e=>e.options.chartName,Ou=e=>e.rootProps.syncId,dc=e=>e.rootProps.syncMethod,ku=e=>e.options.eventEmitter;var Ae={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3};var Ir={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:"auto",orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"auto",zIndex:Ae.axis};var Tt={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:"auto",label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,tickLine:!0,type:"auto",zIndex:Ae.axis};var Qr=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function pc(e,t,r){if(r!=="auto")return r;if(e!=null)return kt(e,t)?"category":"number"}function Nv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Eu(e){for(var t=1;t{if(t!=null)return e.polarAxis.angleAxis[t]},Mu=P([UA,Qf],(e,t)=>{var r;if(e!=null)return e;var a=(r=pc(t,"angleAxis",Bv.type))!==null&&r!==void 0?r:"category";return Eu(Eu({},Bv),{},{type:a})}),qA=(e,t)=>e.polarAxis.radiusAxis[t],Du=P([qA,Qf],(e,t)=>{var r;if(e!=null)return e;var a=(r=pc(t,"radiusAxis",Fv.type))!==null&&r!==void 0?r:"category";return Eu(Eu({},Fv),{},{type:a})}),Tu=e=>e.polarOptions,mc=P([We,Ge,pe],xu),jv=P([Tu,mc],(e,t)=>{if(e!=null)return Ue(e.innerRadius,t,0)}),Uv=P([Tu,mc],(e,t)=>{if(e!=null)return Ue(e.outerRadius,t,t*.8)}),zA=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},hc=P([Tu],zA),iV=P([Mu,hc],Qr),gc=P([mc,jv,Uv],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]}),uV=P([Du,gc],Qr),Ru=P([le,Tu,jv,Uv,We,Ge],(e,t,r,a,o,n)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||a==null)){var{cx:i,cy:u,startAngle:l,endAngle:s}=t;return{cx:Ue(i,o,o/2),cy:Ue(u,n,n/2),innerRadius:r,outerRadius:a,startAngle:l,endAngle:s,clockWise:!1}}});var xe=(e,t)=>t;var ea=(e,t,r)=>r;function _u(e){return e?.id}function Nu(e,t,r){var{chartData:a=[]}=t,{allowDuplicatedCategory:o,dataKey:n}=r,i=new Map;return e.forEach(u=>{var l,s=(l=u.data)!==null&&l!==void 0?l:a;if(!(s==null||s.length===0)){var c=_u(u);s.forEach((f,d)=>{var p=n==null||o?d:String(de(f,n,null)),h=de(f,u.dataKey,0),m;i.has(p)?m=i.get(p):m={},Object.assign(m,{[c]:h}),i.set(p,m)})}}),Array.from(i.values())}function Qo(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Qa=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function eo(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function qv(e,t){if(e.length===t.length){for(var r=0;r{var t=le(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"};var wr=e=>e.tooltip.settings.axisId;function en(e){if(e!=null){var t=e.ticks,r=e.bandwidth,a=e.range(),o=[Math.min(...a),Math.max(...a)];return{domain:()=>e.domain(),range:function(n){function i(){return n.apply(this,arguments)}return i.toString=function(){return n.toString()},i}(()=>o),rangeMin:()=>o[0],rangeMax:()=>o[1],isInRange(n){var i=o[0],u=o[1];return i<=u?n>=i&&n<=u:n>=u&&n<=i},bandwidth:r?()=>r.call(e):void 0,ticks:t?n=>t.call(e,n):void 0,map:(n,i)=>{var u=e(n);if(u!=null){if(e.bandwidth&&i!==null&&i!==void 0&&i.position){var l=e.bandwidth();switch(i.position){case"middle":u+=l/2;break;case"end":u+=l;break;default:break}}return u}}}}}var Bu=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!ft(t)){for(var r,a,o=0;oa)&&(a=n))}return r!==void 0&&a!==void 0?[r,a]:void 0}return t}default:return t}};var Or={};Kw(Or,{scaleBand:()=>on,scaleDiverging:()=>xl,scaleDivergingLog:()=>Xc,scaleDivergingPow:()=>yl,scaleDivergingSqrt:()=>sy,scaleDivergingSymlog:()=>Yc,scaleIdentity:()=>rl,scaleImplicit:()=>Vu,scaleLinear:()=>tl,scaleLog:()=>al,scaleOrdinal:()=>ao,scalePoint:()=>$v,scalePow:()=>gn,scaleQuantile:()=>il,scaleQuantize:()=>ul,scaleRadial:()=>nl,scaleSequential:()=>ml,scaleSequentialLog:()=>Kc,scaleSequentialPow:()=>hl,scaleSequentialQuantile:()=>gl,scaleSequentialSqrt:()=>ly,scaleSequentialSymlog:()=>$c,scaleSqrt:()=>Ex,scaleSymlog:()=>ol,scaleThreshold:()=>ll,scaleTime:()=>Wc,scaleUtc:()=>Gc,tickFormat:()=>cn});function Ze(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function vc(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function ta(e){let t,r,a;e.length!==2?(t=Ze,r=(u,l)=>Ze(e(u),l),a=(u,l)=>e(u)-l):(t=e===Ze||e===vc?e:HA,r=e,a=e);function o(u,l,s=0,c=u.length){if(s>>1;r(u[f],l)<0?s=f+1:c=f}while(s>>1;r(u[f],l)<=0?s=f+1:c=f}while(ss&&a(u[f-1],l)>-a(u[f],l)?f-1:f}return{left:o,center:i,right:n}}function HA(){return 0}function tn(e){return e===null?NaN:+e}function*zv(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(a=+a)>=a&&(yield a)}}var Hv=ta(Ze),Vv=Hv.right,VA=Hv.left,WA=ta(tn).center,Rt=Vv;var to=class extends Map{constructor(t,r=$A){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[a,o]of t)this.set(a,o)}get(t){return super.get(Wv(this,t))}has(t){return super.has(Wv(this,t))}set(t,r){return super.set(GA(this,t),r)}delete(t){return super.delete(KA(this,t))}};function Wv({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):r}function GA({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function KA({_intern:e,_key:t},r){let a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function $A(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Gv(e=Ze){if(e===Ze)return xc;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{let a=e(t,r);return a||a===0?a:(e(r,r)===0)-(e(t,t)===0)}}function xc(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}var XA=Math.sqrt(50),YA=Math.sqrt(10),ZA=Math.sqrt(2);function Fu(e,t,r){let a=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(a)),n=a/Math.pow(10,o),i=n>=XA?10:n>=YA?5:n>=ZA?2:1,u,l,s;return o<0?(s=Math.pow(10,-o)/i,u=Math.round(e*s),l=Math.round(t*s),u/st&&--l,s=-s):(s=Math.pow(10,o)*i,u=Math.round(e/s),l=Math.round(t/s),u*st&&--l),l0))return[];if(e===t)return[e];let a=t=o))return[];let u=n-o+1,l=new Array(u);if(a)if(i<0)for(let s=0;s=a)&&(r=a);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&(r=o)&&(r=o)}return r}function Uu(e,t){let r;if(t===void 0)for(let a of e)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function qu(e,t,r=0,a=1/0,o){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),a=Math.floor(Math.min(e.length-1,a)),!(r<=t&&t<=a))return e;for(o=o===void 0?xc:Gv(o);a>r;){if(a-r>600){let l=a-r+1,s=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(s-l/2<0?-1:1),p=Math.max(r,Math.floor(t-s*f/l+d)),h=Math.min(a,Math.floor(t+(l-s)*f/l+d));qu(e,t,p,h,o)}let n=e[t],i=r,u=a;for(an(e,r,t),o(e[a],n)>0&&an(e,r,a);i0;)--u}o(e[r],n)===0?an(e,r,u):(++u,an(e,u,a)),u<=t&&(r=u+1),t<=u&&(a=u-1)}return e}function an(e,t,r){let a=e[t];e[t]=e[r],e[r]=a}function zu(e,t,r){if(e=Float64Array.from(zv(e,r)),!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return Uu(e);if(t>=1)return ju(e);var a,o=(a-1)*t,n=Math.floor(o),i=ju(qu(e,n).subarray(0,n+1)),u=Uu(e.subarray(n+1));return i+(u-i)*(o-n)}}function yc(e,t,r=tn){if(!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return+r(e[0],0,e);if(t>=1)return+r(e[a-1],a-1,e);var a,o=(a-1)*t,n=Math.floor(o),i=+r(e[n],n,e),u=+r(e[n+1],n+1,e);return i+(u-i)*(o-n)}}function Hu(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var a=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,n=new Array(o);++a>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Gu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Gu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=QA.exec(e))?new ot(t[1],t[2],t[3],1):(t=eO.exec(e))?new ot(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tO.exec(e))?Gu(t[1],t[2],t[3],t[4]):(t=rO.exec(e))?Gu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=aO.exec(e))?tx(t[1],t[2]/100,t[3]/100,1):(t=oO.exec(e))?tx(t[1],t[2]/100,t[3]/100,t[4]):Xv.hasOwnProperty(e)?Jv(Xv[e]):e==="transparent"?new ot(NaN,NaN,NaN,0):null}function Jv(e){return new ot(e>>16&255,e>>8&255,e&255,1)}function Gu(e,t,r,a){return a<=0&&(e=t=r=NaN),new ot(e,t,r,a)}function uO(e){return e instanceof ln||(e=Cr(e)),e?(e=e.rgb(),new ot(e.r,e.g,e.b,e.opacity)):new ot}function no(e,t,r,a){return arguments.length===1?uO(e):new ot(e,t,r,a??1)}function ot(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}Wu(ot,no,bc(ln,{brighter(e){return e=e==null?$u:Math.pow($u,e),new ot(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?nn:Math.pow(nn,e),new ot(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ot(oa(this.r),oa(this.g),oa(this.b),Xu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Qv,formatHex:Qv,formatHex8:lO,formatRgb:ex,toString:ex}));function Qv(){return`#${aa(this.r)}${aa(this.g)}${aa(this.b)}`}function lO(){return`#${aa(this.r)}${aa(this.g)}${aa(this.b)}${aa((isNaN(this.opacity)?1:this.opacity)*255)}`}function ex(){let e=Xu(this.opacity);return`${e===1?"rgb(":"rgba("}${oa(this.r)}, ${oa(this.g)}, ${oa(this.b)}${e===1?")":`, ${e})`}`}function Xu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function aa(e){return e=oa(e),(e<16?"0":"")+e.toString(16)}function tx(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new _t(e,t,r,a)}function ax(e){if(e instanceof _t)return new _t(e.h,e.s,e.l,e.opacity);if(e instanceof ln||(e=Cr(e)),!e)return new _t;if(e instanceof _t)return e;e=e.rgb();var t=e.r/255,r=e.g/255,a=e.b/255,o=Math.min(t,r,a),n=Math.max(t,r,a),i=NaN,u=n-o,l=(n+o)/2;return u?(t===n?i=(r-a)/u+(r0&&l<1?0:i,new _t(i,u,l,e.opacity)}function ox(e,t,r,a){return arguments.length===1?ax(e):new _t(e,t,r,a??1)}function _t(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}Wu(_t,ox,bc(ln,{brighter(e){return e=e==null?$u:Math.pow($u,e),new _t(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?nn:Math.pow(nn,e),new _t(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*t,o=2*r-a;return new ot(Ic(e>=240?e-240:e+120,o,a),Ic(e,o,a),Ic(e<120?e+240:e-120,o,a),this.opacity)},clamp(){return new _t(rx(this.h),Ku(this.s),Ku(this.l),Xu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Xu(this.opacity);return`${e===1?"hsl(":"hsla("}${rx(this.h)}, ${Ku(this.s)*100}%, ${Ku(this.l)*100}%${e===1?")":`, ${e})`}`}}));function rx(e){return e=(e||0)%360,e<0?e+360:e}function Ku(e){return Math.max(0,Math.min(1,e||0))}function Ic(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function wc(e,t,r,a,o){var n=e*e,i=n*e;return((1-3*e+3*n-i)*t+(4-6*n+3*i)*r+(1+3*e+3*n-3*i)*a+i*o)/6}function nx(e){var t=e.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[a],n=e[a+1],i=a>0?e[a-1]:2*o-n,u=a()=>e;function sO(e,t){return function(r){return e+r*t}}function fO(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(a){return Math.pow(e+a*t,r)}}function ux(e){return(e=+e)==1?Yu:function(t,r){return r-t?fO(t,r,e):sn(isNaN(t)?r:t)}}function Yu(e,t){var r=t-e;return r?sO(e,r):sn(isNaN(e)?t:e)}var Cc=function e(t){var r=ux(t);function a(o,n){var i=r((o=no(o)).r,(n=no(n)).r),u=r(o.g,n.g),l=r(o.b,n.b),s=Yu(o.opacity,n.opacity);return function(c){return o.r=i(c),o.g=u(c),o.b=l(c),o.opacity=s(c),o+""}}return a.gamma=e,a}(1);function lx(e){return function(t){var r=t.length,a=new Array(r),o=new Array(r),n=new Array(r),i,u;for(i=0;ir&&(n=t.slice(r,n),u[i]?u[i]+=n:u[++i]=n),(a=a[0])===(o=o[0])?u[i]?u[i]+=o:u[++i]=o:(u[++i]=null,l.push({i,x:Sr(a,o)})),r=Sc.lastIndex;return rt&&(r=e,e=t,t=r),function(a){return Math.max(e,Math.min(t,a))}}function mO(e,t,r){var a=e[0],o=e[1],n=t[0],i=t[1];return o2?hO:mO,l=s=null,f}function f(d){return d==null||isNaN(d=+d)?n:(l||(l=u(e.map(a),t,r)))(a(i(d)))}return f.invert=function(d){return i(o((s||(s=u(t,e.map(a),Sr)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Lr),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=na,c()},f.clamp=function(d){return arguments.length?(i=d?!0:_e,c()):i!==_e},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(n=d,f):n},function(d,p){return a=d,o=p,c()}}function ua(){return ia()(_e,_e)}function gx(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function la(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),a=e.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+e.slice(r+1)]}function Vt(e){return e=la(Math.abs(e)),e?e[1]:NaN}function vx(e,t){return function(r,a){for(var o=r.length,n=[],i=0,u=e[0],l=0;o>0&&u>0&&(l+u+1>a&&(u=Math.max(1,a-l)),n.push(r.substring(o-=u,o+u)),!((l+=u+1)>a));)u=e[i=(i+1)%e.length];return n.reverse().join(t)}}function xx(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var gO=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Wt(e){if(!(t=gO.exec(e)))throw new Error("invalid format: "+e);var t;return new Ju({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Wt.prototype=Ju.prototype;function Ju(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Ju.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function yx(e){e:for(var t=e.length,r=1,a=-1,o;r0&&(a=0);break}return a>0?e.slice(0,a)+e.slice(o+1):e}var fn;function bx(e,t){var r=la(e,t);if(!r)return fn=void 0,e.toPrecision(t);var a=r[0],o=r[1],n=o-(fn=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=a.length;return n===i?a:n>i?a+new Array(n-i+1).join("0"):n>0?a.slice(0,n)+"."+a.slice(n):"0."+new Array(1-n).join("0")+la(e,Math.max(0,t+n-1))[0]}function Oc(e,t){var r=la(e,t);if(!r)return e+"";var a=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}var kc={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:gx,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Oc(e*100,t),r:Oc,s:bx,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ec(e){return e}var Ix=Array.prototype.map,wx=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Cx(e){var t=e.grouping===void 0||e.thousands===void 0?Ec:vx(Ix.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",n=e.numerals===void 0?Ec:xx(Ix.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"\u2212":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function s(f,d){f=Wt(f);var p=f.fill,h=f.align,m=f.sign,v=f.symbol,b=f.zero,O=f.width,S=f.comma,E=f.precision,L=f.trim,k=f.type;k==="n"?(S=!0,k="g"):kc[k]||(E===void 0&&(E=12),L=!0,k="g"),(b||p==="0"&&h==="=")&&(b=!0,p="0",h="=");var M=(d&&d.prefix!==void 0?d.prefix:"")+(v==="$"?r:v==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():""),A=(v==="$"?a:/[%p]/.test(k)?i:"")+(d&&d.suffix!==void 0?d.suffix:""),z=kc[k],N=/[defgprs%]/.test(k);E=E===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function W(F){var $=M,Z=A,J,g,y;if(k==="c")Z=z(F)+Z,F="";else{F=+F;var C=F<0||1/F<0;if(F=isNaN(F)?l:z(Math.abs(F),E),L&&(F=yx(F)),C&&+F==0&&m!=="+"&&(C=!1),$=(C?m==="("?m:u:m==="-"||m==="("?"":m)+$,Z=(k==="s"&&!isNaN(F)&&fn!==void 0?wx[8+fn/3]:"")+Z+(C&&m==="("?")":""),N){for(J=-1,g=F.length;++Jy||y>57){Z=(y===46?o+F.slice(J+1):F.slice(J))+Z,F=F.slice(0,J);break}}}S&&!b&&(F=t(F,1/0));var I=$.length+F.length+Z.length,x=I>1)+$+F+Z+x.slice(I);break;default:F=x+$+F+Z;break}return n(F)}return W.toString=function(){return f+""},W}function c(f,d){var p=Math.max(-8,Math.min(8,Math.floor(Vt(d)/3)))*3,h=Math.pow(10,-p),m=s((f=Wt(f),f.type="f",f),{suffix:wx[8+p/3]});return function(v){return m(h*v)}}return{format:s,formatPrefix:c}}var Qu,io,el;Mc({thousands:",",grouping:[3],currency:["$",""]});function Mc(e){return Qu=Cx(e),io=Qu.format,el=Qu.formatPrefix,Qu}function Dc(e){return Math.max(0,-Vt(Math.abs(e)))}function Tc(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Vt(t)/3)))*3-Vt(Math.abs(e)))}function Rc(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Vt(t)-Vt(e))+1}function cn(e,t,r,a){var o=ro(e,t,r),n;switch(a=Wt(a??",f"),a.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return a.precision==null&&!isNaN(n=Tc(o,i))&&(a.precision=n),el(a,i)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(n=Rc(o,Math.max(Math.abs(e),Math.abs(t))))&&(a.precision=n-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(n=Dc(o))&&(a.precision=n-(a.type==="%")*2);break}}return io(a)}function Je(e){var t=e.domain;return e.ticks=function(r){var a=t();return ra(a[0],a[a.length-1],r??10)},e.tickFormat=function(r,a){var o=t();return cn(o[0],o[o.length-1],r??10,a)},e.nice=function(r){r==null&&(r=10);var a=t(),o=0,n=a.length-1,i=a[o],u=a[n],l,s,c=10;for(u0;){if(s=rn(i,u,r),s===l)return a[o]=i,a[n]=u,t(a);if(s>0)i=Math.floor(i/s)*s,u=Math.ceil(u/s)*s;else if(s<0)i=Math.ceil(i*s)/s,u=Math.floor(u*s)/s;else break;l=s}return e},e}function tl(){var e=ua();return e.copy=function(){return Ht(e,tl())},ye.apply(e,arguments),Je(e)}function rl(e){var t;function r(a){return a==null||isNaN(a=+a)?t:a}return r.invert=r,r.domain=r.range=function(a){return arguments.length?(e=Array.from(a,Lr),r):e.slice()},r.unknown=function(a){return arguments.length?(t=a,r):t},r.copy=function(){return rl(e).unknown(t)},e=arguments.length?Array.from(e,Lr):[0,1],Je(r)}function dn(e,t){e=e.slice();var r=0,a=e.length-1,o=e[r],n=e[a],i;return nMath.pow(e,t)}function IO(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Px(e){return(t,r)=>-e(-t,r)}function pn(e){let t=e(Sx,Lx),r=t.domain,a=10,o,n;function i(){return o=IO(a),n=bO(a),r()[0]<0?(o=Px(o),n=Px(n),e(vO,xO)):e(Sx,Lx),t}return t.base=function(u){return arguments.length?(a=+u,i()):a},t.domain=function(u){return arguments.length?(r(u),i()):r()},t.ticks=u=>{let l=r(),s=l[0],c=l[l.length-1],f=c0){for(;d<=p;++d)for(h=1;hc)break;b.push(m)}}else for(;d<=p;++d)for(h=a-1;h>=1;--h)if(m=d>0?h/n(-d):h*n(d),!(mc)break;b.push(m)}b.length*2{if(u==null&&(u=10),l==null&&(l=a===10?"s":","),typeof l!="function"&&(!(a%1)&&(l=Wt(l)).precision==null&&(l.trim=!0),l=io(l)),u===1/0)return l;let s=Math.max(1,a*u/t.ticks().length);return c=>{let f=c/n(Math.round(o(c)));return f*ar(dn(r(),{floor:u=>n(Math.floor(o(u))),ceil:u=>n(Math.ceil(o(u)))})),t}function al(){let e=pn(ia()).domain([1,10]);return e.copy=()=>Ht(e,al()).base(e.base()),ye.apply(e,arguments),e}function Ax(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Ox(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function mn(e){var t=1,r=e(Ax(t),Ox(t));return r.constant=function(a){return arguments.length?e(Ax(t=+a),Ox(t)):t},Je(r)}function ol(){var e=mn(ia());return e.copy=function(){return Ht(e,ol()).constant(e.constant())},ye.apply(e,arguments)}function kx(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function wO(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function CO(e){return e<0?-e*e:e*e}function hn(e){var t=e(_e,_e),r=1;function a(){return r===1?e(_e,_e):r===.5?e(wO,CO):e(kx(r),kx(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,a()):r},Je(t)}function gn(){var e=hn(ia());return e.copy=function(){return Ht(e,gn()).exponent(e.exponent())},ye.apply(e,arguments),e}function Ex(){return gn.apply(null,arguments).exponent(.5)}function Mx(e){return Math.sign(e)*e*e}function SO(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function nl(){var e=ua(),t=[0,1],r=!1,a;function o(n){var i=SO(e(n));return isNaN(i)?a:r?Math.round(i):i}return o.invert=function(n){return e.invert(Mx(n))},o.domain=function(n){return arguments.length?(e.domain(n),o):e.domain()},o.range=function(n){return arguments.length?(e.range((t=Array.from(n,Lr)).map(Mx)),o):t.slice()},o.rangeRound=function(n){return o.range(n).round(!0)},o.round=function(n){return arguments.length?(r=!!n,o):r},o.clamp=function(n){return arguments.length?(e.clamp(n),o):e.clamp()},o.unknown=function(n){return arguments.length?(a=n,o):a},o.copy=function(){return nl(e.domain(),t).round(r).clamp(e.clamp()).unknown(a)},ye.apply(o,arguments),Je(o)}function il(){var e=[],t=[],r=[],a;function o(){var i=0,u=Math.max(1,t.length);for(r=new Array(u-1);++i0?r[u-1]:e[0],u=r?[a[r-1],t]:[a[s-1],a[s]]},i.unknown=function(l){return arguments.length&&(n=l),i},i.thresholds=function(){return a.slice()},i.copy=function(){return ul().domain([e,t]).range(o).unknown(n)},ye.apply(Je(i),arguments)}function ll(){var e=[.5],t=[0,1],r,a=1;function o(n){return n!=null&&n<=n?t[Rt(e,n,0,a)]:r}return o.domain=function(n){return arguments.length?(e=Array.from(n),a=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(n){return arguments.length?(t=Array.from(n),a=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(n){var i=t.indexOf(n);return[e[i-1],e[i]]},o.unknown=function(n){return arguments.length?(r=n,o):r},o.copy=function(){return ll().domain(e).range(t).unknown(r)},ye.apply(o,arguments)}var _c=new Date,Nc=new Date;function me(e,t,r,a){function o(n){return e(n=arguments.length===0?new Date:new Date(+n)),n}return o.floor=n=>(e(n=new Date(+n)),n),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=n=>{let i=o(n),u=o.ceil(n);return n-i(t(n=new Date(+n),i==null?1:Math.floor(i)),n),o.range=(n,i,u)=>{let l=[];if(n=o.ceil(n),u=u==null?1:Math.floor(u),!(n0))return l;let s;do l.push(s=new Date(+n)),t(n,u),e(n);while(sme(i=>{if(i>=i)for(;e(i),!n(i);)i.setTime(i-1)},(i,u)=>{if(i>=i)if(u<0)for(;++u<=0;)for(;t(i,-1),!n(i););else for(;--u>=0;)for(;t(i,1),!n(i););}),r&&(o.count=(n,i)=>(_c.setTime(+n),Nc.setTime(+i),e(_c),e(Nc),Math.floor(r(_c,Nc))),o.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?o.filter(a?i=>a(i)%n===0:i=>o.count(0,i)%n===0):o)),o}var vn=me(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);vn.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?me(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):vn);var j3=vn.range;var wt=me(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),Dx=wt.range;var uo=me(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),LO=uo.range,lo=me(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),PO=lo.range;var so=me(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),AO=so.range,fo=me(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),OO=fo.range;var or=me(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),kO=or.range,ca=me(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),EO=ca.range,sl=me(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),MO=sl.range;function da(e){return me(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}var nr=da(0),co=da(1),Rx=da(2),_x=da(3),Pr=da(4),Nx=da(5),Bx=da(6),Fx=nr.range,DO=co.range,TO=Rx.range,RO=_x.range,_O=Pr.range,NO=Nx.range,BO=Bx.range;function pa(e){return me(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var ir=pa(0),po=pa(1),jx=pa(2),Ux=pa(3),Ar=pa(4),qx=pa(5),zx=pa(6),Hx=ir.range,FO=po.range,jO=jx.range,UO=Ux.range,qO=Ar.range,zO=qx.range,HO=zx.range;var mo=me(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),VO=mo.range,ho=me(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),WO=ho.range;var dt=me(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());dt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:me(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});var GO=dt.range,pt=me(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());pt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:me(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});var KO=pt.range;function Wx(e,t,r,a,o,n){let i=[[wt,1,1e3],[wt,5,5*1e3],[wt,15,15*1e3],[wt,30,30*1e3],[n,1,6e4],[n,5,5*6e4],[n,15,15*6e4],[n,30,30*6e4],[o,1,36e5],[o,3,3*36e5],[o,6,6*36e5],[o,12,12*36e5],[a,1,864e5],[a,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function u(s,c,f){let d=cv).right(i,d);if(p===i.length)return e.every(ro(s/31536e6,c/31536e6,f));if(p===0)return vn.every(Math.max(ro(s,c,f),1));let[h,m]=i[d/i[p-1][2]53)return null;"w"in R||(R.w=1),"Z"in R?(ee=zc(yn(R.y,0,1)),ze=ee.getUTCDay(),ee=ze>4||ze===0?po.ceil(ee):po(ee),ee=ca.offset(ee,(R.V-1)*7),R.y=ee.getUTCFullYear(),R.m=ee.getUTCMonth(),R.d=ee.getUTCDate()+(R.w+6)%7):(ee=qc(yn(R.y,0,1)),ze=ee.getDay(),ee=ze>4||ze===0?co.ceil(ee):co(ee),ee=or.offset(ee,(R.V-1)*7),R.y=ee.getFullYear(),R.m=ee.getMonth(),R.d=ee.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),ze="Z"in R?zc(yn(R.y,0,1)).getUTCDay():qc(yn(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(ze+5)%7:R.w+R.U*7-(ze+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,zc(R)):qc(R)}}function A(T,q,V,R){for(var we=0,ee=q.length,ze=V.length,Fe,ht;we=ze)return-1;if(Fe=q.charCodeAt(we++),Fe===37){if(Fe=q.charAt(we++),ht=L[Fe in Gx?q.charAt(we++):Fe],!ht||(R=ht(T,V,R))<0)return-1}else if(Fe!=V.charCodeAt(R++))return-1}return R}function z(T,q,V){var R=s.exec(q.slice(V));return R?(T.p=c.get(R[0].toLowerCase()),V+R[0].length):-1}function N(T,q,V){var R=p.exec(q.slice(V));return R?(T.w=h.get(R[0].toLowerCase()),V+R[0].length):-1}function W(T,q,V){var R=f.exec(q.slice(V));return R?(T.w=d.get(R[0].toLowerCase()),V+R[0].length):-1}function F(T,q,V){var R=b.exec(q.slice(V));return R?(T.m=O.get(R[0].toLowerCase()),V+R[0].length):-1}function $(T,q,V){var R=m.exec(q.slice(V));return R?(T.m=v.get(R[0].toLowerCase()),V+R[0].length):-1}function Z(T,q,V){return A(T,t,q,V)}function J(T,q,V){return A(T,r,q,V)}function g(T,q,V){return A(T,a,q,V)}function y(T){return i[T.getDay()]}function C(T){return n[T.getDay()]}function I(T){return l[T.getMonth()]}function x(T){return u[T.getMonth()]}function w(T){return o[+(T.getHours()>=12)]}function D(T){return 1+~~(T.getMonth()/3)}function _(T){return i[T.getUTCDay()]}function B(T){return n[T.getUTCDay()]}function U(T){return l[T.getUTCMonth()]}function j(T){return u[T.getUTCMonth()]}function H(T){return o[+(T.getUTCHours()>=12)]}function oe(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var q=k(T+="",S);return q.toString=function(){return T},q},parse:function(T){var q=M(T+="",!1);return q.toString=function(){return T},q},utcFormat:function(T){var q=k(T+="",E);return q.toString=function(){return T},q},utcParse:function(T){var q=M(T+="",!0);return q.toString=function(){return T},q}}}var Gx={"-":"",_:" ",0:"0"},qe=/^\s*\d+/,XO=/^%/,YO=/[\\^$*+?|[\]().{}]/g;function se(e,t,r){var a=e<0?"-":"",o=(a?-e:e)+"",n=o.length;return a+(n[t.toLowerCase(),r]))}function JO(e,t,r){var a=qe.exec(t.slice(r,r+1));return a?(e.w=+a[0],r+a[0].length):-1}function QO(e,t,r){var a=qe.exec(t.slice(r,r+1));return a?(e.u=+a[0],r+a[0].length):-1}function ek(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.U=+a[0],r+a[0].length):-1}function tk(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.V=+a[0],r+a[0].length):-1}function rk(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.W=+a[0],r+a[0].length):-1}function Kx(e,t,r){var a=qe.exec(t.slice(r,r+4));return a?(e.y=+a[0],r+a[0].length):-1}function $x(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function ak(e,t,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function ok(e,t,r){var a=qe.exec(t.slice(r,r+1));return a?(e.q=a[0]*3-3,r+a[0].length):-1}function nk(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.m=a[0]-1,r+a[0].length):-1}function Xx(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.d=+a[0],r+a[0].length):-1}function ik(e,t,r){var a=qe.exec(t.slice(r,r+3));return a?(e.m=0,e.d=+a[0],r+a[0].length):-1}function Yx(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.H=+a[0],r+a[0].length):-1}function uk(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.M=+a[0],r+a[0].length):-1}function lk(e,t,r){var a=qe.exec(t.slice(r,r+2));return a?(e.S=+a[0],r+a[0].length):-1}function sk(e,t,r){var a=qe.exec(t.slice(r,r+3));return a?(e.L=+a[0],r+a[0].length):-1}function fk(e,t,r){var a=qe.exec(t.slice(r,r+6));return a?(e.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function ck(e,t,r){var a=XO.exec(t.slice(r,r+1));return a?r+a[0].length:-1}function dk(e,t,r){var a=qe.exec(t.slice(r));return a?(e.Q=+a[0],r+a[0].length):-1}function pk(e,t,r){var a=qe.exec(t.slice(r));return a?(e.s=+a[0],r+a[0].length):-1}function Zx(e,t){return se(e.getDate(),t,2)}function mk(e,t){return se(e.getHours(),t,2)}function hk(e,t){return se(e.getHours()%12||12,t,2)}function gk(e,t){return se(1+or.count(dt(e),e),t,3)}function ry(e,t){return se(e.getMilliseconds(),t,3)}function vk(e,t){return ry(e,t)+"000"}function xk(e,t){return se(e.getMonth()+1,t,2)}function yk(e,t){return se(e.getMinutes(),t,2)}function bk(e,t){return se(e.getSeconds(),t,2)}function Ik(e){var t=e.getDay();return t===0?7:t}function wk(e,t){return se(nr.count(dt(e)-1,e),t,2)}function ay(e){var t=e.getDay();return t>=4||t===0?Pr(e):Pr.ceil(e)}function Ck(e,t){return e=ay(e),se(Pr.count(dt(e),e)+(dt(e).getDay()===4),t,2)}function Sk(e){return e.getDay()}function Lk(e,t){return se(co.count(dt(e)-1,e),t,2)}function Pk(e,t){return se(e.getFullYear()%100,t,2)}function Ak(e,t){return e=ay(e),se(e.getFullYear()%100,t,2)}function Ok(e,t){return se(e.getFullYear()%1e4,t,4)}function kk(e,t){var r=e.getDay();return e=r>=4||r===0?Pr(e):Pr.ceil(e),se(e.getFullYear()%1e4,t,4)}function Ek(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+se(t/60|0,"0",2)+se(t%60,"0",2)}function Jx(e,t){return se(e.getUTCDate(),t,2)}function Mk(e,t){return se(e.getUTCHours(),t,2)}function Dk(e,t){return se(e.getUTCHours()%12||12,t,2)}function Tk(e,t){return se(1+ca.count(pt(e),e),t,3)}function oy(e,t){return se(e.getUTCMilliseconds(),t,3)}function Rk(e,t){return oy(e,t)+"000"}function _k(e,t){return se(e.getUTCMonth()+1,t,2)}function Nk(e,t){return se(e.getUTCMinutes(),t,2)}function Bk(e,t){return se(e.getUTCSeconds(),t,2)}function Fk(e){var t=e.getUTCDay();return t===0?7:t}function jk(e,t){return se(ir.count(pt(e)-1,e),t,2)}function ny(e){var t=e.getUTCDay();return t>=4||t===0?Ar(e):Ar.ceil(e)}function Uk(e,t){return e=ny(e),se(Ar.count(pt(e),e)+(pt(e).getUTCDay()===4),t,2)}function qk(e){return e.getUTCDay()}function zk(e,t){return se(po.count(pt(e)-1,e),t,2)}function Hk(e,t){return se(e.getUTCFullYear()%100,t,2)}function Vk(e,t){return e=ny(e),se(e.getUTCFullYear()%100,t,2)}function Wk(e,t){return se(e.getUTCFullYear()%1e4,t,4)}function Gk(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ar(e):Ar.ceil(e),se(e.getUTCFullYear()%1e4,t,4)}function Kk(){return"+0000"}function Qx(){return"%"}function ey(e){return+e}function ty(e){return Math.floor(+e/1e3)}var go,fl,iy,cl,uy;Vc({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Vc(e){return go=Hc(e),fl=go.format,iy=go.parse,cl=go.utcFormat,uy=go.utcParse,go}function $k(e){return new Date(e)}function Xk(e){return e instanceof Date?+e:+new Date(+e)}function dl(e,t,r,a,o,n,i,u,l,s){var c=ua(),f=c.invert,d=c.domain,p=s(".%L"),h=s(":%S"),m=s("%I:%M"),v=s("%I %p"),b=s("%a %d"),O=s("%b %d"),S=s("%B"),E=s("%Y");function L(k){return(l(k)t(o/(e.length-1)))},r.quantiles=function(a){return Array.from({length:a+1},(o,n)=>zu(e,n/a))},r.copy=function(){return gl(t).domain(e)},It.apply(r,arguments)}function vl(){var e=0,t=.5,r=1,a=1,o,n,i,u,l,s=_e,c,f=!1,d;function p(m){return isNaN(m=+m)?d:(m=.5+((m=+c(m))-n)*(a*m{if(e!=null){var{scale:a,type:o}=e;if(a==="auto")return o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":o==="category"?"band":"linear";if(typeof a=="string")return Jk(a)?a:"point"}};function Qk(e,t){for(var r=0,a=e.length,o=e[0]t)?r=n+1:a=n}return r}function Il(e,t){if(e){var r=t??e.domain(),a=r.map(n=>{var i;return(i=e(n))!==null&&i!==void 0?i:0}),o=e.range();if(!(r.length===0||o.length<2))return n=>{var i,u,l=Qk(a,n);if(l<=0)return r[0];if(l>=r.length)return r[r.length-1];var s=(i=a[l-1])!==null&&i!==void 0?i:0,c=(u=a[l])!==null&&u!==void 0?u:0;return Math.abs(n-s)<=Math.abs(n-c)?r[l-1]:r[l]}}}function cy(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):Il(e,void 0)}function dy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function wl(e){for(var t=1;te.cartesianAxis.xAxis[t],kr=(e,t)=>{var r=oE(e,t);return r??aE},nE={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Zc,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:Gr},iE=(e,t)=>e.cartesianAxis.yAxis[t],Er=(e,t)=>{var r=iE(e,t);return r??nE},uE={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Jc=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??uE},Ce=(e,t,r)=>{switch(t){case"xAxis":return kr(e,r);case"yAxis":return Er(e,r);case"zAxis":return Jc(e,r);case"angleAxis":return Mu(e,r);case"radiusAxis":return Du(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},lE=(e,t,r)=>{switch(t){case"xAxis":return kr(e,r);case"yAxis":return Er(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},ma=(e,t,r)=>{switch(t){case"xAxis":return kr(e,r);case"yAxis":return Er(e,r);case"angleAxis":return Mu(e,r);case"radiusAxis":return Du(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Qc=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Sn(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var sE=e=>e.graphicalItems.cartesianItems,fE=P([xe,ea],Sn),Ln=(e,t,r)=>e.filter(r).filter(a=>t?.includeHidden===!0?!0:!a.hide),Pn=P([sE,Ce,fE],Ln,{memoizeOptions:{resultEqualityCheck:eo}}),my=P([Pn],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Qo)),ed=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),cE=P([Pn],ed),An=e=>e.map(t=>t.data).filter(Boolean).flat(1),dE=P([Pn],An,{memoizeOptions:{resultEqualityCheck:eo}}),On=(e,t)=>{var{chartData:r=[],dataStartIndex:a,dataEndIndex:o}=t;return e.length>0?e:r.slice(a,o+1)},td=P([dE,ic],On),kn=(e,t,r)=>t?.dataKey!=null?e.map(a=>({value:de(a,t.dataKey)})):r.length>0?r.map(a=>a.dataKey).flatMap(a=>e.map(o=>({value:de(o,a)}))):e.map(a=>({value:a})),En=P([td,Ce,Pn],kn);function vo(e){if(rt(e)||e instanceof Date){var t=Number(e);if(ae(t))return t}}function py(e){if(Array.isArray(e)){var t=[vo(e[0]),vo(e[1])];return ft(t)?t:void 0}var r=vo(e);if(r!=null)return[r,r]}function lr(e){return e.map(vo).filter(ut)}function pE(e,t){var r=vo(e),a=vo(t);return r==null&&a==null?0:r==null?-1:a==null?1:r-a}var mE=P([En],e=>e?.map(t=>t.value).sort(pE));function hy(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function hE(e,t,r){return!r||typeof t!="number"||tt(t)?[]:r.length?lr(r.flatMap(a=>{var o=de(e,a.dataKey),n,i;if(Array.isArray(o)?[n,i]=o:n=i=o,!(!ae(n)||!ae(i)))return[t-n,t+i]})):[]}var ke=e=>{var t=Oe(e),r=wr(e);return ma(e,t,r)},Mr=P([ke],e=>e?.dataKey),gE=P([my,ic,ke],Nu),rd=(e,t,r,a)=>{var o={},n=t.reduce((i,u)=>{if(u.stackId==null)return i;var l=i[u.stackId];return l==null&&(l=[]),l.push(u),i[u.stackId]=l,i},o);return Object.fromEntries(Object.entries(n).map(i=>{var[u,l]=i,s=a?[...l].reverse():l,c=s.map(_u);return[u,{stackedData:Wh(e,c,r),graphicalItems:s}]}))},vE=P([gE,my,br,Au],rd),ad=(e,t,r,a)=>{var{dataStartIndex:o,dataEndIndex:n}=t;if(a==null&&r!=="zAxis"){var i=Gh(e,o,n);if(!(i!=null&&i[0]===0&&i[1]===0))return i}},xE=P([Ce],e=>e.allowDataOverflow),Cl=e=>{var t;if(e==null||!("domain"in e))return Zc;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=lr(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Zc},Sl=P([Ce],Cl),Ll=P([Sl,xE],Cu),yE=P([vE,Dt,xe,Ll],ad,{memoizeOptions:{resultEqualityCheck:Qa}}),xo=e=>e.errorBars,bE=(e,t,r)=>e.flatMap(a=>t[a.id]).filter(Boolean).filter(a=>hy(r,a)),Cn=function(){for(var t=arguments.length,r=new Array(t),a=0;a{var n,i;if(r.length>0&&e.forEach(u=>{r.forEach(l=>{var s,c,f=(s=a[l.id])===null||s===void 0?void 0:s.filter(b=>hy(o,b)),d=de(u,(c=t.dataKey)!==null&&c!==void 0?c:l.dataKey),p=hE(u,d,f);if(p.length>=2){var h=Math.min(...p),m=Math.max(...p);(n==null||hi)&&(i=m)}var v=py(d);v!=null&&(n=n==null?v[0]:Math.min(n,v[0]),i=i==null?v[1]:Math.max(i,v[1]))})}),t?.dataKey!=null&&e.forEach(u=>{var l=py(de(u,t.dataKey));l!=null&&(n=n==null?l[0]:Math.min(n,l[0]),i=i==null?l[1]:Math.max(i,l[1]))}),ae(n)&&ae(i))return[n,i]},IE=P([td,Ce,cE,xo,xe],Mn,{memoizeOptions:{resultEqualityCheck:Qa}});function wE(e){var{value:t}=e;if(rt(t)||t instanceof Date)return t}var CE=(e,t,r)=>{var a=e.map(wE).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&ff(a))?wu(0,e.length):t.allowDuplicatedCategory?a:Array.from(new Set(a))},od=e=>e.referenceElements.dots,ha=(e,t,r)=>e.filter(a=>a.ifOverflow==="extendDomain").filter(a=>t==="xAxis"?a.xAxisId===r:a.yAxisId===r),SE=P([od,xe,ea],ha),nd=e=>e.referenceElements.areas,LE=P([nd,xe,ea],ha),id=e=>e.referenceElements.lines,PE=P([id,xe,ea],ha),ud=(e,t)=>{if(e!=null){var r=lr(e.map(a=>t==="xAxis"?a.x:a.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},AE=P(SE,xe,ud),ld=(e,t)=>{if(e!=null){var r=lr(e.flatMap(a=>[t==="xAxis"?a.x1:a.y1,t==="xAxis"?a.x2:a.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},OE=P([LE,xe],ld);function kE(e){var t;if(e.x!=null)return lr([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(a=>a.x);return r==null||r.length===0?[]:lr(r)}function EE(e){var t;if(e.y!=null)return lr([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(a=>a.y);return r==null||r.length===0?[]:lr(r)}var sd=(e,t)=>{if(e!=null){var r=e.flatMap(a=>t==="xAxis"?kE(a):EE(a));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},ME=P([PE,xe],sd),DE=P(AE,ME,OE,(e,t,r)=>Cn(e,r,t)),Dn=(e,t,r,a,o,n,i,u)=>{if(r!=null)return r;var l=i==="vertical"&&u==="xAxis"||i==="horizontal"&&u==="yAxis",s=l?Cn(a,n,o):Cn(n,o);return Ev(t,s,e.allowDataOverflow)},TE=P([Ce,Sl,Ll,yE,IE,DE,le,xe],Dn,{memoizeOptions:{resultEqualityCheck:Qa}}),RE=[0,1],Tn=(e,t,r,a,o,n,i)=>{if(!((e==null||r==null||r.length===0)&&i===void 0)){var{dataKey:u,type:l}=e,s=kt(t,n);if(s&&u==null){var c;return wu(0,(c=r?.length)!==null&&c!==void 0?c:0)}return l==="category"?CE(a,e,s):o==="expand"?RE:i}},fd=P([Ce,le,td,En,br,xe,TE],Tn),sr=P([Ce,Qc,Ja],bl),Rn=(e,t,r)=>{var{niceTicks:a}=t;if(a!=="none"){var o=Cl(t),n=Array.isArray(o)&&(o[0]==="auto"||o[1]==="auto");if((a==="snap125"||a==="adaptive")&&t!=null&&t.tickCount&&ft(e)){if(n)return Lu(e,t.tickCount,t.allowDecimals,a);if(t.type==="number")return Pu(e,t.tickCount,t.allowDecimals,a)}if(a==="auto"&&r==="linear"&&t!=null&&t.tickCount){if(n&&ft(e))return Lu(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&ft(e))return Pu(e,t.tickCount,t.allowDecimals,"adaptive")}}},cd=P([fd,ma,sr],Rn),_n=(e,t,r,a)=>{if(a!=="angleAxis"&&e?.type==="number"&&ft(t)&&Array.isArray(r)&&r.length>0){var o,n,i=t[0],u=(o=r[0])!==null&&o!==void 0?o:0,l=t[1],s=(n=r[r.length-1])!==null&&n!==void 0?n:0;return[Math.min(i,u),Math.max(l,s)]}return t},_E=P([Ce,fd,cd,xe],_n),NE=P(En,Ce,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,a=Array.from(lr(e.map(f=>f.value))).sort((f,d)=>f-d),o=a[0],n=a[a.length-1];if(o==null||n==null)return 1/0;var i=n-o;if(i===0)return 1/0;for(var u=0;uo,(e,t,r,a,o)=>{if(!ae(e))return 0;var n=t==="vertical"?a.height:a.width;if(o==="gap")return e*n/2;if(o==="no-gap"){var i=Ue(r,e*n),u=e*n/2;return u-i-(u-i)/n*i}return 0}),BE=(e,t,r)=>{var a=kr(e,t);return a==null||typeof a.padding!="string"?0:gy(e,"xAxis",t,r,a.padding)},FE=(e,t,r)=>{var a=Er(e,t);return a==null||typeof a.padding!="string"?0:gy(e,"yAxis",t,r,a.padding)},jE=P(kr,BE,(e,t)=>{var r,a;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((r=o.left)!==null&&r!==void 0?r:0)+t,right:((a=o.right)!==null&&a!==void 0?a:0)+t}}),UE=P(Er,FE,(e,t)=>{var r,a;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((r=o.top)!==null&&r!==void 0?r:0)+t,bottom:((a=o.bottom)!==null&&a!==void 0?a:0)+t}}),qE=P([pe,jE,Kr,Wa,(e,t,r)=>r],(e,t,r,a,o)=>{var{padding:n}=a;return o?[n.left,r.width-n.right]:[e.left+t.left,e.left+e.width-t.right]}),zE=P([pe,le,UE,Kr,Wa,(e,t,r)=>r],(e,t,r,a,o,n)=>{var{padding:i}=o;return n?[a.height-i.bottom,i.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),yo=(e,t,r,a)=>{var o;switch(t){case"xAxis":return qE(e,r,a);case"yAxis":return zE(e,r,a);case"zAxis":return(o=Jc(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return hc(e);case"radiusAxis":return gc(e,r);default:return}},vy=P([Ce,yo],Qr),HE=P([sr,_E],Bu),dd=P([Ce,sr,HE,vy],wn),pd=(e,t,r,a)=>{if(!(r==null||r.dataKey==null)){var{type:o,scale:n}=r,i=kt(e,a);if(i&&(o==="number"||n!=="auto"))return t.map(u=>u.value)}},md=P([le,En,ma,xe],pd),Pl=P([dd],en),lX=P([dd],cy),sX=P([dd,mE],Il),fX=P([Pn,xo,xe],bE);function xy(e,t){return e.idt.id?1:0}var Al=(e,t)=>t,Ol=(e,t,r)=>r,VE=P(Ha,Al,Ol,(e,t,r)=>e.filter(a=>a.orientation===t).filter(a=>a.mirror===r).sort(xy)),WE=P(Va,Al,Ol,(e,t,r)=>e.filter(a=>a.orientation===t).filter(a=>a.mirror===r).sort(xy)),yy=(e,t)=>({width:e.width,height:t.height}),GE=(e,t)=>{var r=typeof t.width=="number"?t.width:Gr;return{width:r,height:e.height}},cX=P(pe,kr,yy),KE=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},$E=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},XE=P(Ge,pe,VE,Al,Ol,(e,t,r,a,o)=>{var n={},i;return r.forEach(u=>{var l=yy(t,u);i==null&&(i=KE(t,a,e));var s=a==="top"&&!o||a==="bottom"&&o;n[u.id]=i-Number(s)*l.height,i+=(s?-1:1)*l.height}),n}),YE=P(We,pe,WE,Al,Ol,(e,t,r,a,o)=>{var n={},i;return r.forEach(u=>{var l=GE(t,u);i==null&&(i=$E(t,a,e));var s=a==="left"&&!o||a==="right"&&o;n[u.id]=i-Number(s)*l.width,i+=(s?-1:1)*l.width}),n}),ZE=(e,t)=>{var r=kr(e,t);if(r!=null)return XE(e,r.orientation,r.mirror)},dX=P([pe,kr,ZE,(e,t)=>t],(e,t,r,a)=>{if(t!=null){var o=r?.[a];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),JE=(e,t)=>{var r=Er(e,t);if(r!=null)return YE(e,r.orientation,r.mirror)},pX=P([pe,Er,JE,(e,t)=>t],(e,t,r,a)=>{if(t!=null){var o=r?.[a];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),mX=P(pe,Er,(e,t)=>{var r=typeof t.width=="number"?t.width:Gr;return{width:r,height:e.height}});var hd=(e,t,r,a)=>{if(r!=null){var{allowDuplicatedCategory:o,type:n,dataKey:i}=r,u=kt(e,a),l=t.map(s=>s.value);if(i&&u&&n==="category"&&o&&ff(l))return l}},gd=P([le,En,Ce,xe],hd),hX=P([le,lE,sr,Pl,gd,md,yo,cd,xe],(e,t,r,a,o,n,i,u,l)=>{if(t!=null){var s=kt(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:n,duplicateDomain:o,isCategorical:s,niceTicks:u,range:i,realScaleType:r,scale:a}}}),QE=(e,t,r,a,o,n,i,u,l)=>{if(!(t==null||a==null)){var s=kt(e,l),{type:c,ticks:f,tickCount:d}=t,p=r==="scaleBand"&&typeof a.bandwidth=="function"?a.bandwidth()/2:2,h=c==="category"&&a.bandwidth?a.bandwidth()/p:0;h=l==="angleAxis"&&n!=null&&n.length>=2?Pe(n[0]-n[1])*2*h:h;var m=f||o;return m?m.map((v,b)=>{var O=i?i.indexOf(v):v,S=a.map(O);return ae(S)?{index:b,coordinate:S+h,value:v,offset:h}:null}).filter(ut):s&&u?u.map((v,b)=>{var O=a.map(v);return ae(O)?{coordinate:O+h,value:v,index:b,offset:h}:null}).filter(ut):a.ticks?a.ticks(d).map((v,b)=>{var O=a.map(v);return ae(O)?{coordinate:O+h,value:v,index:b,offset:h}:null}).filter(ut):a.domain().map((v,b)=>{var O=a.map(v);return ae(O)?{coordinate:O+h,value:i?i[v]:v,index:b,offset:h}:null}).filter(ut)}},gX=P([le,ma,sr,Pl,cd,yo,gd,md,xe],QE),eM=(e,t,r,a,o,n,i)=>{if(!(t==null||r==null||a==null||a[0]===a[1])){var u=kt(e,i),{tickCount:l}=t,s=0;return s=i==="angleAxis"&&a?.length>=2?Pe(a[0]-a[1])*2*s:s,u&&n?n.map((c,f)=>{var d=r.map(c);return ae(d)?{coordinate:d+s,value:c,index:f,offset:s}:null}).filter(ut):r.ticks?r.ticks(l).map((c,f)=>{var d=r.map(c);return ae(d)?{coordinate:d+s,value:c,index:f,offset:s}:null}).filter(ut):r.domain().map((c,f)=>{var d=r.map(c);return ae(d)?{coordinate:d+s,value:o?o[c]:c,index:f,offset:s}:null}).filter(ut)}},vX=P([le,ma,Pl,yo,gd,md,xe],eM),xX=P(Ce,Pl,(e,t)=>{if(!(e==null||t==null))return wl(wl({},e),{},{scale:t})}),tM=P([Ce,sr,fd,vy],wn),rM=P([tM],en),yX=P((e,t,r)=>Jc(e,r),rM,(e,t)=>{if(!(e==null||t==null))return wl(wl({},e),{},{scale:t})}),by=P([le,Ha,Va],(e,t,r)=>{switch(e){case"horizontal":return t.some(a=>a.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(a=>a.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),aM=(e,t,r)=>{var a;return(a=e.renderedTicks[t])===null||a===void 0?void 0:a[r]},bX=P([aM],e=>{if(!(!e||e.length===0))return t=>{var r,a=1/0,o=e[0];for(var n of e){var i=Math.abs(n.coordinate-t);ie.options.defaultTooltipEventType,xd=e=>e.options.validateTooltipEventTypes;function yd(e,t,r){if(e==null)return t;var a=e?"axis":"item";return r==null?t:r.includes(a)?a:t}function Nn(e,t){var r=vd(e),a=xd(e);return yd(t,r,a)}function Iy(e){return Y(t=>Nn(t,e))}var kl=(e,t)=>{var r,a=Number(t);if(!(tt(a)||t==null))return a>=0?e==null||(r=e[a])===null||r===void 0?void 0:r.value:void 0};var wy=e=>e.tooltip.settings;var fr={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},oM={itemInteraction:{click:fr,hover:fr},axisInteraction:{click:fr,hover:fr},keyboardInteraction:fr,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},Cy=ue({name:"tooltip",initialState:oM,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:ce()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ve(e).tooltipItemPayloads.indexOf(r);o>-1&&(e.tooltipItemPayloads[o]=a)},prepare:ce()},removeTooltipEntrySettings:{reducer(e,t){var r=Ve(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:ce()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Sy,replaceTooltipEntrySettings:Ly,removeTooltipEntrySettings:Py,setTooltipSettingsState:Ay,setActiveMouseOverItemIndex:El,mouseLeaveItem:Oy,mouseLeaveChart:Ml,setActiveClickItemIndex:ky,setMouseOverAxisIndex:Dl,setMouseClickAxisIndex:Ey,setSyncInteraction:Tl,setKeyboardInteraction:Bn}=Cy.actions,My=Cy.reducer;function Dy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Rl(e){for(var t=1;t{if(t==null)return fr;var o=lM(e,t,r);if(o==null)return fr;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var n=e.settings.active===!0;if(sM(o)){if(n)return Rl(Rl({},o),{},{active:!0})}else if(a!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:a,graphicalItemId:void 0};return Rl(Rl({},fr),{},{coordinate:o.coordinate})};function fM(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function cM(e,t){var r=fM(e),a=t[0],o=t[1];if(r===void 0)return!1;var n=Math.min(a,o),i=Math.max(a,o);return r>=n&&r<=i}function dM(e,t,r){if(r==null||t==null)return!0;var a=de(e,t);return a==null||!ft(r)?!0:cM(a,r)}var bo=(e,t,r,a)=>{var o=e?.index;if(o==null)return null;var n=Number(o);if(!ae(n))return o;var i=0,u=1/0;t.length>0&&(u=t.length-1);var l=Math.max(i,Math.min(n,u)),s=t[l];return s==null||dM(s,r,a)?String(l):null};var Nl=(e,t,r,a,o,n,i)=>{if(n!=null){var u=i[0],l=u?.getPosition(n);if(l!=null)return l;var s=o?.[Number(n)];if(s)switch(r){case"horizontal":return{x:s.coordinate,y:(a.top+t)/2};default:return{x:(a.left+e)/2,y:s.coordinate}}}};var Bl=(e,t,r,a)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(r==="hover"?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&o==null)return e.tooltipItemPayloads;if(o==null&&a!=null){var n=e.tooltipItemPayloads[0];return n!=null?[n]:[]}return e.tooltipItemPayloads.filter(i=>{var u;return((u=i.settings)===null||u===void 0?void 0:u.graphicalItemId)===o})};var Fl=e=>e.options.tooltipPayloadSearcher;var cr=e=>e.tooltip;function Ty(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Ry(e){for(var t=1;te(t)}function _y(e){if(typeof e=="string")return e}function yM(e){if(!(e==null||typeof e!="object")){var t="name"in e?gM(e.name):void 0,r="unit"in e?vM(e.unit):void 0,a="dataKey"in e?xM(e.dataKey):void 0,o="payload"in e?e.payload:void 0,n="color"in e?_y(e.color):void 0,i="fill"in e?_y(e.fill):void 0;return{name:t,unit:r,dataKey:a,payload:o,color:n,fill:i}}}function bM(e,t){return e??t}var jl=(e,t,r,a,o,n,i)=>{if(!(t==null||n==null)){var{chartData:u,computedData:l,dataStartIndex:s,dataEndIndex:c}=r,f=[];return e.reduce((d,p)=>{var h,{dataDefinedOnItem:m,settings:v}=p,b=bM(m,u),O=Array.isArray(b)?tu(b,s,c):b,S=(h=v?.dataKey)!==null&&h!==void 0?h:a,E=v?.nameKey,L;if(a&&Array.isArray(O)&&!Array.isArray(O[0])&&i==="axis"?L=cf(O,a,o):L=n(O,t,l,E),Array.isArray(L))L.forEach(M=>{var A,z,N=yM(M),W=N?.name,F=N?.dataKey,$=N?.payload,Z=Ry(Ry({},v),{},{name:W,unit:N?.unit,color:(A=N?.color)!==null&&A!==void 0?A:v?.color,fill:(z=N?.fill)!==null&&z!==void 0?z:v?.fill});d.push(Kf({tooltipEntrySettings:Z,dataKey:F,payload:$,value:de($,F),name:W==null?void 0:String(W)}))});else{var k;d.push(Kf({tooltipEntrySettings:v,dataKey:S,payload:L,value:de(L,S),name:(k=de(L,E))!==null&&k!==void 0?k:v?.name}))}return d},f)}};var bd=P([ke,Qc,Ja],bl),IM=P([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),wM=P([Oe,wr],Sn),ga=P([IM,ke,wM],Ln,{memoizeOptions:{resultEqualityCheck:eo}}),CM=P([ga],e=>e.filter(Qo)),SM=P([ga],An,{memoizeOptions:{resultEqualityCheck:eo}}),Dr=P([SM,Dt],On),LM=P([CM,Dt,ke],Nu),Id=P([Dr,ke,ga],kn),Ny=P([ke],Cl),PM=P([ke],e=>e.allowDataOverflow),By=P([Ny,PM],Cu),AM=P([ga],e=>e.filter(Qo)),OM=P([LM,AM,br,Au],rd),kM=P([OM,Dt,Oe,By],ad),EM=P([ga],ed),MM=P([Dr,ke,EM,xo,Oe],Mn,{memoizeOptions:{resultEqualityCheck:Qa}}),DM=P([od,Oe,wr],ha),TM=P([DM,Oe],ud),RM=P([nd,Oe,wr],ha),_M=P([RM,Oe],ld),NM=P([id,Oe,wr],ha),BM=P([NM,Oe],sd),FM=P([TM,BM,_M],Cn),jM=P([ke,Ny,By,kM,MM,FM,le,Oe],Dn),va=P([ke,le,Dr,Id,br,Oe,jM],Tn),UM=P([va,ke,bd],Rn),qM=P([ke,va,UM,Oe],_n),Fy=e=>{var t=Oe(e),r=wr(e),a=!1;return yo(e,t,r,a)},wd=P([ke,Fy],Qr),zM=P([ke,bd,qM,wd],wn),Cd=P([zM],en),HM=P([le,Id,ke,Oe],hd),VM=P([le,Id,ke,Oe],pd),WM=(e,t,r,a,o,n,i,u)=>{if(t){var{type:l}=t,s=kt(e,u);if(a){var c=r==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,f=l==="category"&&a.bandwidth?a.bandwidth()/c:0;return f=u==="angleAxis"&&o!=null&&o?.length>=2?Pe(o[0]-o[1])*2*f:f,s&&i?i.map((d,p)=>{var h=a.map(d);return ae(h)?{coordinate:h+f,value:d,index:p,offset:f}:null}).filter(ut):a.domain().map((d,p)=>{var h=a.map(d);return ae(h)?{coordinate:h+f,value:n?n[d]:d,index:p,offset:f}:null}).filter(ut)}}},nt=P([le,ke,bd,Cd,Fy,HM,VM,Oe],WM),Sd=P([vd,xd,wy],(e,t,r)=>yd(r.shared,e,t)),jy=e=>e.tooltip.settings.trigger,Ld=e=>e.tooltip.settings.defaultIndex,Fn=P([cr,Sd,jy,Ld],_l),xa=P([Fn,Dr,Mr,va],bo),Pd=P([nt,xa],kl),Ul=P([Fn],e=>{if(e)return e.dataKey}),ql=P([Fn],e=>{if(e)return e.graphicalItemId}),Uy=P([cr,Sd,jy,Ld],Bl),GM=P([We,Ge,le,pe,nt,Ld,Uy],Nl),qy=P([Fn,GM],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),zy=P([Fn],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),KM=P([Uy,xa,Dt,Mr,Pd,Fl,Sd],jl),b5=P([KM],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Hy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Vy(e){for(var t=1;tY(ke),Wy=()=>{var e=ZM(),t=Y(nt),r=Y(Cd);return!e||!r?Gf(void 0,t):Gf(Vy(Vy({},e),{},{scale:r}),t)};function Gy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Io(e){for(var t=1;t{var o=t.find(n=>n&&n.index===r);if(o){if(e==="horizontal")return{x:o.coordinate,y:a.relativeY};if(e==="vertical")return{x:a.relativeX,y:o.coordinate}}return{x:0,y:0}},$y=(e,t,r,a)=>{var o=t.find(s=>s&&s.index===r);if(o){if(e==="centric"){var n=o.coordinate,{radius:i}=a;return Io(Io(Io({},a),ge(a.cx,a.cy,i,n)),{},{angle:n,radius:i})}var u=o.coordinate,{angle:l}=a;return Io(Io(Io({},a),ge(a.cx,a.cy,u,l)),{},{angle:l,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function Xy(e,t){var{relativeX:r,relativeY:a}=e;return r>=t.left&&r<=t.left+t.width&&a>=t.top&&a<=t.top+t.height}var Ad=(e,t,r,a,o)=>{var n,i=(n=t?.length)!==null&&n!==void 0?n:0;if(i<=1||e==null)return 0;if(a==="angleAxis"&&o!=null&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var u=0;u0?(l=r[u-1])===null||l===void 0?void 0:l.coordinate:(s=r[i-1])===null||s===void 0?void 0:s.coordinate,h=(c=r[u])===null||c===void 0?void 0:c.coordinate,m=u>=i-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(d=r[u+1])===null||d===void 0?void 0:d.coordinate,v=void 0;if(!(p==null||h==null||m==null))if(Pe(h-p)!==Pe(m-h)){var b=[];if(Pe(m-h)===Pe(o[1]-o[0])){v=m;var O=h+o[1]-o[0];b[0]=Math.min(O,(O+p)/2),b[1]=Math.max(O,(O+p)/2)}else{v=p;var S=m+o[1]-o[0];b[0]=Math.min(h,(S+h)/2),b[1]=Math.max(h,(S+h)/2)}var E=[Math.min(h,(v+h)/2),Math.max(h,(v+h)/2)];if(e>E[0]&&e<=E[1]||e>=b[0]&&e<=b[1]){var L;return(L=r[u])===null||L===void 0?void 0:L.index}}else{var k=Math.min(p,m),M=Math.max(p,m);if(e>(k+h)/2&&e<=(M+h)/2){var A;return(A=r[u])===null||A===void 0?void 0:A.index}}}else if(t)for(var z=0;z(N.coordinate+F.coordinate)/2||z>0&&z(N.coordinate+F.coordinate)/2&&e<=(N.coordinate+W.coordinate)/2)return N.index}}return-1};var Yy=()=>Y(Ja),Od=(e,t)=>t,Zy=(e,t,r)=>r,kd=(e,t,r,a)=>a,Jy=P(nt,e=>tr(e,t=>t.coordinate)),Ed=P([cr,Od,Zy,kd],_l),Md=P([Ed,Dr,Mr,va],bo),Qy=(e,t,r)=>{if(t!=null){var a=cr(e);return t==="axis"?r==="hover"?a.axisInteraction.hover.dataKey:a.axisInteraction.click.dataKey:r==="hover"?a.itemInteraction.hover.dataKey:a.itemInteraction.click.dataKey}},eb=P([cr,Od,Zy,kd],Bl),jn=P([We,Ge,le,pe,nt,kd,eb],Nl),tb=P([Ed,jn],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),Dd=P([nt,Md],kl),rb=P([eb,Md,Dt,Mr,Dd,Fl,Od],jl),ab=P([Ed,Md],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),tD=(e,t,r,a,o,n,i)=>{if(!(!e||!r||!a||!o)&&Xy(e,i)){var u=Kh(e,t),l=Ad(u,n,o,r,a),s=Ky(t,o,l,e);return{activeIndex:String(l),activeCoordinate:s}}},rD=(e,t,r,a,o,n,i)=>{if(!(!e||!a||!o||!n||!r)){var u=vv(e,r);if(u){var l=$h(u,t),s=Ad(l,i,n,a,o),c=$y(t,n,s,u);return{activeIndex:String(s),activeCoordinate:c}}}},ob=(e,t,r,a,o,n,i,u)=>{if(!(!e||!t||!a||!o||!n))return t==="horizontal"||t==="vertical"?tD(e,t,a,o,n,i,u):rD(e,t,r,a,o,n,i)};import{useLayoutEffect as fD}from"react";import{createPortal as cD}from"react-dom";var nb=P(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var a=e[t];if(a!=null)return r?a.panoramaElement:a.element}}),ib=P(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(a=>parseInt(a,10)).concat(Object.values(Ae)),r=Array.from(new Set(t));return r.sort((a,o)=>a-o)},{memoizeOptions:{resultEqualityCheck:qv}});function ub(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function lb(e){for(var t=1;tlb(lb({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),iD)},lD=new Set(Object.values(Ae));function sD(e){return lD.has(e)}var sb=ue({name:"zIndex",initialState:uD,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:ce()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!sD(r)&&delete e.zIndexMap[r])},prepare:ce()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:a,isPanorama:o}=t.payload;e.zIndexMap[r]?o?e.zIndexMap[r].panoramaElement=a:e.zIndexMap[r].element=a:e.zIndexMap[r]={consumers:0,element:o?void 0:a,panoramaElement:o?a:void 0}},prepare:ce()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:ce()}}}),{registerZIndexPortal:fb,unregisterZIndexPortal:cb,registerZIndexPortalElement:db,unregisterZIndexPortalElement:pb}=sb.actions,mb=sb.reducer;function dr(e){var{zIndex:t,children:r}=e,a=cg(),o=a&&t!==void 0&&t!==0,n=Ye(),i=ne();fD(()=>o?(i(fb({zIndex:t})),()=>{i(cb({zIndex:t}))}):er,[i,t,o]);var u=Y(l=>nb(l,t,n));return o?u?cD(r,u):null:r}function Td(){return Td=Object.assign?Object.assign.bind():function(e){for(var t=1;tID(Rd);import{useEffect as Gl}from"react";var bb=ai(yb(),1);var Ib=bb.default;var wo=new Ib;var Wl="recharts.syncEvent.tooltip",Nd="recharts.syncEvent.brush";var wb=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!tt(r))return e[r]}},SD={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},Cb=ue({name:"options",initialState:SD,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Sb=Cb.reducer,{createEventEmitter:Lb}=Cb.actions;function Pb(e){return e.tooltip.syncInteraction}var LD={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},Ab=ue({name:"chartData",initialState:LD,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:a}=t.payload;r!=null&&(e.dataStartIndex=r),a!=null&&(e.dataEndIndex=a)}}}),{setChartData:Bd,setDataStartEndIndexes:Ob,setComputedData:PD}=Ab.actions,kb=Ab.reducer;var AD=["x","y"];function Eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Co(e){for(var t=1;tl.rootProps.className);Gl(()=>{if(e==null)return er;var l=(s,c,f)=>{if(t!==f&&e===s){if(a==="index"){var d;if(i&&c!==null&&c!==void 0&&(d=c.payload)!==null&&d!==void 0&&d.coordinate&&c.payload.sourceViewBox){var p=c.payload.coordinate,{x:h,y:m}=p,v=MD(p,AD),{x:b,y:O,width:S,height:E}=c.payload.sourceViewBox,L=Co(Co({},v),{},{x:i.x+(S?(h-b)/S:0)*i.width,y:i.y+(E?(m-O)/E:0)*i.height});r(Co(Co({},c),{},{payload:Co(Co({},c.payload),{},{coordinate:L})}))}else r(c);return}if(o!=null){var k;if(typeof a=="function"){var M={activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate},A=a(o,M);k=o[A]}else a==="value"&&(k=o.find(g=>String(g.value)===c.payload.label));var{coordinate:z}=c.payload;if(k==null||c.payload.active===!1||z==null||i==null){r(Tl({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:N,y:W}=z,F=Math.min(N,i.x+i.width),$=Math.min(W,i.y+i.height),Z={x:n==="horizontal"?k.coordinate:F,y:n==="horizontal"?$:k.coordinate},J=Tl({active:c.payload.active,coordinate:Z,dataKey:c.payload.dataKey,index:String(k.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId});r(J)}}};return wo.on(Wl,l),()=>{wo.off(Wl,l)}},[u,r,t,e,a,o,n,i])}function RD(){var e=Y(Ou),t=Y(ku),r=ne();Gl(()=>{if(e==null)return er;var a=(o,n,i)=>{t!==i&&e===o&&r(Ob(n))};return wo.on(Nd,a),()=>{wo.off(Nd,a)}},[r,t,e])}function Mb(){var e=ne();Gl(()=>{e(Lb())},[e]),TD(),RD()}function Db(e,t,r,a,o,n){var i=Y(h=>Qy(h,e,t)),u=Y(ql),l=Y(ku),s=Y(Ou),c=Y(dc),f=Y(Pb),d=f?.active,p=Xr();Gl(()=>{if(!d&&s!=null&&l!=null){var h=Tl({active:n,coordinate:r,dataKey:i,index:o,label:typeof a=="number"?String(a):a,sourceViewBox:p,graphicalItemId:u});wo.emit(Wl,s,h,l)}},[d,r,i,u,o,a,l,s,c,n,p])}function Tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Rb(e){for(var t=1;t{M(Ay({shared:O,trigger:S,axisId:k,active:o,defaultIndex:A}))},[M,O,S,k,o,A]);var z=Xr(),N=su(),W=Iy(O),{activeIndex:F,isActive:$}=(t=Y(oe=>ab(oe,W,S,A)))!==null&&t!==void 0?t:{},Z=Y(oe=>rb(oe,W,S,A)),J=Y(oe=>Dd(oe,W,S,A)),g=Y(oe=>tb(oe,W,S,A)),y=Z,C=vb(),I=(r=o??$)!==null&&r!==void 0?r:!1,[x,w]=Wm([y,I]),D=W==="axis"?J:void 0;Db(W,S,g,D,F,I);var _=L??C;if(_==null||z==null||W==null)return null;var B=y??_b;I||(B=_b),s&&B.length&&(B=Rm(B.filter(oe=>oe.value!=null&&(oe.hide!==!0||a.includeHidden)),d,UD));var U=B.length>0,j=Rb(Rb({},a),{},{payload:B,label:D,active:I,activeIndex:F,coordinate:g,accessibilityLayer:N}),H=Ct.createElement(Pg,{allowEscapeViewBox:n,animationDuration:i,animationEasing:u,isAnimationActive:c,active:I,coordinate:g,hasPayload:U,offset:f,position:p,reverseDirection:h,useTranslate3d:m,viewBox:z,wrapperStyle:v,lastBoundingBox:x,innerRef:w,hasPortalFromProps:!!L},qD(l,j));return Ct.createElement(Ct.Fragment,null,jD(H,_),I&&Ct.createElement(gb,{cursor:b,tooltipEventType:W,coordinate:g,payload:B,index:F}))}var Kl=e=>null;Kl.displayName="Cell";import*as qd from"react";import{useMemo as mT,forwardRef as hT}from"react";function HD(e,t,r){return(t=VD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VD(e){var t=WD(e,"string");return typeof t=="symbol"?t:t+""}function WD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $l=class{constructor(t){HD(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var a=this.cache.keys().next().value;a!=null&&this.cache.delete(a)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}};function Nb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function GD(e){for(var t=1;t{try{var r=document.getElementById(Fb);r||(r=document.createElement("span"),r.setAttribute("id",Fb),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,ZD,t),r.textContent="".concat(e);var a=r.getBoundingClientRect();return{width:a.width,height:a.height}}catch{return{width:0,height:0}}},jd=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ut.isSsr)return{width:0,height:0};if(!Ub.enableCache)return jb(t,r);var a=JD(t,r),o=Bb.get(a);if(o)return o;var n=jb(t,r);return Bb.set(a,n),n};var Vb;function QD(e,t,r){return(t=eT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eT(e){var t=tT(e,"string");return typeof t=="symbol"?t:t+""}function tT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qb=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zb=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,rT=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,aT=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,oT={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},nT=["cm","mm","pt","pc","in","Q","px"];function iT(e){return nT.includes(e)}var So="NaN";function uT(e,t){return e*oT[t]}var Tr=class e{static parse(t){var r,[,a,o]=(r=aT.exec(t))!==null&&r!==void 0?r:[];return a==null?e.NaN:new e(parseFloat(a),o??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,tt(t)&&(this.unit=""),r!==""&&!rT.test(r)&&(this.num=NaN,this.unit=""),iT(r)&&(this.num=uT(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return tt(this.num)}};Vb=Tr;QD(Tr,"NaN",new Vb(NaN,""));function Wb(e){if(e==null||e.includes(So))return So;for(var t=e;t.includes("*")||t.includes("/");){var r,[,a,o,n]=(r=qb.exec(t))!==null&&r!==void 0?r:[],i=Tr.parse(a??""),u=Tr.parse(n??""),l=o==="*"?i.multiply(u):i.divide(u);if(l.isNaN())return So;t=t.replace(qb,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var s,[,c,f,d]=(s=zb.exec(t))!==null&&s!==void 0?s:[],p=Tr.parse(c??""),h=Tr.parse(d??""),m=f==="+"?p.add(h):p.subtract(h);if(m.isNaN())return So;t=t.replace(zb,m.toString())}return t}var Hb=/\(([^()]*)\)/;function lT(e){for(var t=e,r;(r=Hb.exec(t))!=null;){var[,a]=r;t=t.replace(Hb,Wb(a))}return t}function sT(e){var t=e.replace(/\s+/g,"");return t=lT(t),t=Wb(t),t}function fT(e){try{return sT(e)}catch{return So}}function Xl(e){var t=fT(e.slice(5,-1));return t===So?"":t}var cT=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],dT=["dx","dy","angle","className","breakAll"];function Ud(){return Ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:t,breakAll:r,style:a}=e;try{var o=[];Me(t)||(r?o=t.toString().split(""):o=t.toString().split(Xb));var n=o.map(u=>({word:u,width:jd(u,a).width})),i=r?0:jd("\xA0",a).width;return{wordsWithComputedWidth:n,spaceWidth:i}}catch{return null}};function Zb(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function Jb(e){return Me(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var Qb=(e,t,r,a)=>e.reduce((o,n)=>{var{word:i,width:u}=n,l=o[o.length-1];if(l&&u!=null&&(t==null||a||l.width+u+re.reduce((t,r)=>t.width>r.width?t:r),gT="\u2026",Kb=(e,t,r,a,o,n,i,u)=>{var l=e.slice(0,t),s=Yb({breakAll:r,style:a,children:l+gT});if(!s)return[!1,[]];var c=Qb(s.wordsWithComputedWidth,n,i,u),f=c.length>o||eI(c).width>Number(n);return[f,c]},vT=(e,t,r,a,o)=>{var{maxLines:n,children:i,style:u,breakAll:l}=e,s=X(n),c=String(i),f=Qb(t,a,r,o);if(!s||o)return f;var d=f.length>n||eI(f).width>Number(a);if(!d)return f;for(var p=0,h=c.length-1,m=0,v;p<=h&&m<=c.length-1;){var b=Math.floor((p+h)/2),O=b-1,[S,E]=Kb(c,O,l,u,n,a,r,o),[L]=Kb(c,b,l,u,n,a,r,o);if(!S&&!L&&(p=b+1),S&&L&&(h=b-1),!S&&L){v=E;break}m++}return v||f},$b=e=>{var t=Me(e)?[]:e.toString().split(Xb);return[{words:t,width:void 0}]},xT=e=>{var{width:t,scaleToFit:r,children:a,style:o,breakAll:n,maxLines:i}=e;if((t||r)&&!Ut.isSsr){var u,l,s=Yb({breakAll:n,children:a,style:o});if(s){var{wordsWithComputedWidth:c,spaceWidth:f}=s;u=c,l=f}else return $b(a);return vT({breakAll:n,children:a,maxLines:i,style:o},u,l,t,!!r)}return $b(a)},tI="#808080",yT={angle:0,breakAll:!1,capHeight:"0.71em",fill:tI,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},qn=hT((e,t)=>{var r=De(e,yT),{x:a,y:o,lineHeight:n,capHeight:i,fill:u,scaleToFit:l,textAnchor:s,verticalAnchor:c}=r,f=Gb(r,cT),d=mT(()=>xT({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:l,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,l,f.style,f.width]),{dx:p,dy:h,angle:m,className:v,breakAll:b}=f,O=Gb(f,dT);if(!rt(a)||!rt(o)||d.length===0)return null;var S=Number(a)+(X(p)?p:0),E=Number(o)+(X(h)?h:0);if(!ae(S)||!ae(E))return null;var L;switch(c){case"start":L=Xl("calc(".concat(i,")"));break;case"middle":L=Xl("calc(".concat((d.length-1)/2," * -").concat(n," + (").concat(i," / 2))"));break;default:L=Xl("calc(".concat(d.length-1," * -").concat(n,")"));break}var k=[],M=d[0];if(l&&M!=null){var A=M.width,{width:z}=f;k.push("scale(".concat(X(z)&&X(A)?z/A:1,")"))}return m&&k.push("rotate(".concat(m,", ").concat(S,", ").concat(E,")")),k.length&&(O.transform=k.join(" ")),qd.createElement("text",Ud({},Se(O),{ref:t,x:S,y:E,className:re("recharts-text",v),textAnchor:s,fill:u.includes("url")?tI:u}),d.map((N,W)=>{var F=N.words.join(b?"":" ");return qd.createElement("tspan",{x:S,dy:W===0?L:n,key:"".concat(F,"-").concat(W)},F)}))});qn.displayName="Text";import*as ya from"react";import{cloneElement as kT,createContext as iI,createElement as ET,isValidElement as zd,useContext as uI,useMemo as U4}from"react";function rI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Kt(e){for(var t=1;t{var{viewBox:t,position:r,offset:a=0,parentViewBox:o,clamp:n}=e,{x:i,y:u,height:l,upperWidth:s,lowerWidth:c}=Wo(t),f=i,d=i+(s-c)/2,p=(f+d)/2,h=(s+c)/2,m=f+s/2,v=l>=0?1:-1,b=v*a,O=v>0?"end":"start",S=v>0?"start":"end",E=s>=0?1:-1,L=E*a,k=E>0?"end":"start",M=E>0?"start":"end",A=o;if(r==="top"){var z={x:f+s/2,y:u-b,horizontalAnchor:"middle",verticalAnchor:O};return n&&A&&(z.height=Math.max(u-A.y,0),z.width=s),z}if(r==="bottom"){var N={x:d+c/2,y:u+l+b,horizontalAnchor:"middle",verticalAnchor:S};return n&&A&&(N.height=Math.max(A.y+A.height-(u+l),0),N.width=c),N}if(r==="left"){var W={x:p-L,y:u+l/2,horizontalAnchor:k,verticalAnchor:"middle"};return n&&A&&(W.width=Math.max(W.x-A.x,0),W.height=l),W}if(r==="right"){var F={x:p+h+L,y:u+l/2,horizontalAnchor:M,verticalAnchor:"middle"};return n&&A&&(F.width=Math.max(A.x+A.width-F.x,0),F.height=l),F}var $=n&&A?{width:h,height:l}:{};return r==="insideLeft"?Kt({x:p+L,y:u+l/2,horizontalAnchor:M,verticalAnchor:"middle"},$):r==="insideRight"?Kt({x:p+h-L,y:u+l/2,horizontalAnchor:k,verticalAnchor:"middle"},$):r==="insideTop"?Kt({x:f+s/2,y:u+b,horizontalAnchor:"middle",verticalAnchor:S},$):r==="insideBottom"?Kt({x:d+c/2,y:u+l-b,horizontalAnchor:"middle",verticalAnchor:O},$):r==="insideTopLeft"?Kt({x:f+L,y:u+b,horizontalAnchor:M,verticalAnchor:S},$):r==="insideTopRight"?Kt({x:f+s-L,y:u+b,horizontalAnchor:k,verticalAnchor:S},$):r==="insideBottomLeft"?Kt({x:d+L,y:u+l-b,horizontalAnchor:M,verticalAnchor:O},$):r==="insideBottomRight"?Kt({x:d+c-L,y:u+l-b,horizontalAnchor:k,verticalAnchor:O},$):r&&typeof r=="object"&&(X(r.x)||Zt(r.x))&&(X(r.y)||Zt(r.y))?Kt({x:i+Ue(r.x,h),y:u+Ue(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},$):Kt({x:m,y:u+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},$)};var CT=["labelRef"],ST=["content"];function oI(e,t){if(e==null)return{};var r,a,o=LT(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var e=uI(MT),t=Xr();return e||(t?Wo(t):void 0)},TT=iI(null);var RT=()=>{var e=uI(TT),t=Y(Ru);return e||t},_T=e=>{var{value:t,formatter:r}=e,a=Me(e.children)?t:e.children;return typeof r=="function"?r(a):a},lI=e=>e!=null&&typeof e=="function",NT=(e,t)=>{var r=Pe(t-e),a=Math.min(Math.abs(t-e),360);return r*a},BT=(e,t,r,a,o)=>{var{offset:n,className:i}=e,{cx:u,cy:l,innerRadius:s,outerRadius:c,startAngle:f,endAngle:d,clockWise:p}=o,h=(s+c)/2,m=NT(f,d),v=m>=0?1:-1,b,O;switch(t){case"insideStart":b=f+v*n,O=p;break;case"insideEnd":b=d-v*n,O=!p;break;case"end":b=d+v*n,O=p;break;default:throw new Error("Unsupported position ".concat(t))}O=m<=0?O:!O;var S=ge(u,l,h,b),E=ge(u,l,h,b+(O?1:-1)*359),L="M".concat(S.x,",").concat(S.y,` + A`).concat(h,",").concat(h,",0,1,").concat(O?0:1,`, + `).concat(E.x,",").concat(E.y),k=Me(e.id)?Jt("recharts-radial-line-"):e.id;return ya.createElement("text",Jl({},a,{dominantBaseline:"central",className:re("recharts-radial-bar-label",i)}),ya.createElement("defs",null,ya.createElement("path",{id:k,d:L})),ya.createElement("textPath",{xlinkHref:"#".concat(k)},r))},FT=(e,t,r)=>{var{cx:a,cy:o,innerRadius:n,outerRadius:i,startAngle:u,endAngle:l}=e,s=(u+l)/2;if(r==="outside"){var{x:c,y:f}=ge(a,o,i+t,s);return{x:c,y:f,textAnchor:c>=a?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:a,y:o,textAnchor:"middle",verticalAnchor:"end"};var d=(n+i)/2,{x:p,y:h}=ge(a,o,d,s);return{x:p,y:h,textAnchor:"middle",verticalAnchor:"middle"}},Zl=e=>e!=null&&"cx"in e&&X(e.cx),jT={angle:0,offset:5,zIndex:Ae.label,position:"middle",textBreakAll:!1};function UT(e){if(!Zl(e))return e;var{cx:t,cy:r,outerRadius:a}=e,o=a*2;return{x:t-a,y:r-a,width:o,upperWidth:o,lowerWidth:o,height:o}}function Hd(e){var t=De(e,jT),{viewBox:r,parentViewBox:a,position:o,value:n,children:i,content:u,className:l="",textBreakAll:s,labelRef:c}=t,f=RT(),d=DT(),p=o==="center"?d:f??d,h,m,v;r==null?h=p:Zl(r)?h=r:h=Wo(r);var b=UT(h);if(!h||Me(n)&&Me(i)&&!zd(u)&&typeof u!="function")return null;var O=Yl(Yl({},t),{},{viewBox:h});if(zd(u)){var{labelRef:S}=O,E=oI(O,CT);return kT(u,E)}if(typeof u=="function"){var{content:L}=O,k=oI(O,ST);if(m=ET(u,k),zd(m))return m}else m=_T(t);var M=Se(t);if(Zl(h)){if(o==="insideStart"||o==="insideEnd"||o==="end")return BT(t,o,m,M,h);v=FT(h,t.offset,t.position)}else{if(!b)return null;var A=aI({viewBox:b,position:o,offset:t.offset,parentViewBox:Zl(a)?void 0:a,clamp:!0});v=Yl(Yl({x:A.x,y:A.y,textAnchor:A.horizontalAnchor,verticalAnchor:A.verticalAnchor},A.width!==void 0?{width:A.width}:{}),A.height!==void 0?{height:A.height}:{})}return ya.createElement(dr,{zIndex:t.zIndex},ya.createElement(qn,Jl({ref:c,className:re("recharts-label",l)},M,v,{textAnchor:Zb(M.textAnchor)?M.textAnchor:v.textAnchor,breakAll:s}),m))}Hd.displayName="Label";import*as pr from"react";import{createContext as fI,useContext as cI}from"react";var qT=["valueAccessor"],zT=["dataKey","clockWise","id","textBreakAll","zIndex"];function es(){return es=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(Jb(t))return t},dI=fI(void 0),s6=dI.Provider,pI=fI(void 0),mI=pI.Provider;function WT(){return cI(dI)}function GT(){return cI(pI)}function Ql(e){var{valueAccessor:t=VT}=e,r=sI(e,qT),{dataKey:a,clockWise:o,id:n,textBreakAll:i,zIndex:u}=r,l=sI(r,zT),s=WT(),c=GT(),f=s||c;return!f||!f.length?null:pr.createElement(dr,{zIndex:u??Ae.label},pr.createElement(gt,{className:"recharts-label-list"},f.map((d,p)=>{var h,m=Me(a)?t(d,p):de(d.payload,a),v=Me(n)?{}:{id:"".concat(n,"-").concat(p)};return pr.createElement(Hd,es({key:"label-".concat(p)},Se(d),l,v,{fill:(h=r.fill)!==null&&h!==void 0?h:d.fill,parentViewBox:d.parentViewBox,value:m,textBreakAll:i,viewBox:d.viewBox,index:p,zIndex:0}))})))}Ql.displayName="LabelList";function hI(e){var{label:t}=e;return t?t===!0?pr.createElement(Ql,{key:"labelList-implicit"}):pr.isValidElement(t)||lI(t)?pr.createElement(Ql,{key:"labelList-implicit",content:t}):typeof t=="object"?pr.createElement(Ql,es({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}var Vd=e=>e.graphicalItems.polarItems,KT=P([xe,ea],Sn),ts=P([Vd,Ce,KT],Ln),$T=P([ts],An),rs=P([$T,Jo],On),XT=P([rs,Ce,ts],kn),b6=P([rs,Ce,ts],(e,t,r)=>r.length>0?e.flatMap(a=>r.flatMap(o=>{var n,i=de(a,(n=t.dataKey)!==null&&n!==void 0?n:o.dataKey);return{value:i,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(a=>({value:de(a,t.dataKey),errorDomain:[]})):e.map(a=>({value:a,errorDomain:[]}))),gI=()=>{},YT=P([rs,Ce,ts,xo,xe],Mn),ZT=P([Ce,Sl,Ll,gI,YT,gI,le,xe],Dn),vI=P([Ce,le,rs,XT,br,xe,ZT],Tn),JT=P([vI,ma,sr],Rn),QT=P([Ce,vI,JT,xe],_n),I6=P([sr,QT],Bu);var eR={radiusAxis:{},angleAxis:{}},xI=ue({name:"polarAxis",initialState:eR,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:S6,removeRadiusAxis:L6,addAngleAxis:P6,removeAngleAxis:A6}=xI.actions,yI=xI.reducer;function bI(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}import*as Q from"react";import{useCallback as d0,useMemo as Qd,useRef as WR,useState as GR}from"react";function II(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function wI(e){for(var t=1;tt,Wd=P([Vd,oR],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),nR=[],Gd=(e,t,r)=>r?.length===0?nR:r,CI=P([Jo,Wd,Gd],(e,t,r)=>{var{chartData:a}=e;if(t!=null){var o;if(t?.data!=null&&t.data.length>0?o=t.data:o=a,(!o||!o.length)&&r!=null&&(o=r.map(n=>wI(wI({},t.presentationProps),n.props))),o!=null)return o}}),SI=P([CI,Wd,Gd],(e,t,r)=>{if(!(e==null||t==null))return e.map((a,o)=>{var n,i=de(a,t.nameKey,t.name),u;return r!=null&&(n=r[o])!==null&&n!==void 0&&(n=n.props)!==null&&n!==void 0&&n.fill?u=r[o].props.fill:typeof a=="object"&&a!=null&&"fill"in a?u=a.fill:u=t.fill,{value:ru(i,t.dataKey),color:u,payload:a,type:t.legendType}})}),LI=P([CI,Wd,Gd,pe],(e,t,r,a)=>{if(!(t==null||e==null))return PI({offset:a,pieSettings:t,displayedData:e,cells:r})});var DI=ai(kI());import{Children as lR}from"react";var EI=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",MI=null,Xd=null,TI=e=>{if(e===MI&&Array.isArray(Xd))return Xd;var t=[];return lR.forEach(e,r=>{Me(r)||((0,DI.isFragment)(r)?t=t.concat(TI(r.props.children)):t.push(r))}),Xd=t,MI=e,t};function Yd(e,t){var r=[],a=[];return Array.isArray(t)?a=t.map(o=>EI(o)):a=[EI(t)],TI(e).forEach(o=>{var n=$e(o,"type.displayName")||$e(o,"type.name");n&&a.indexOf(n)!==-1&&r.push(o)}),r}import*as $t from"react";import{cloneElement as IR,isValidElement as WI}from"react";function Zd(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let r=e[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${r}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}import*as Hn from"react";import{useEffect as dR,useRef as Lo,useState as pR}from"react";var RI,_I,NI,BI,FI;function jI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function UI(e){for(var t=1;t{var n=r-a,i;return i=ve(RI||(RI=zn(["M ",",",""])),e,t),i+=ve(_I||(_I=zn(["L ",",",""])),e+r,t),i+=ve(NI||(NI=zn(["L ",",",""])),e+r-n/2,t+o),i+=ve(BI||(BI=zn(["L ",",",""])),e+r-n/2-a,t+o),i+=ve(FI||(FI=zn(["L ",","," Z"])),e,t),i},mR={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zI=e=>{var t=De(e,mR),{x:r,y:a,upperWidth:o,lowerWidth:n,height:i,className:u}=t,{animationEasing:l,animationDuration:s,animationBegin:c,isUpdateAnimationActive:f}=t,d=Lo(null),[p,h]=pR(-1),m=Lo(o),v=Lo(n),b=Lo(i),O=Lo(r),S=Lo(a),E=Za(e,"trapezoid-");if(dR(()=>{if(d.current&&d.current.getTotalLength)try{var Z=d.current.getTotalLength();Z&&h(Z)}catch{}},[]),r!==+r||a!==+a||o!==+o||n!==+n||i!==+i||o===0&&n===0||i===0)return null;var L=re("recharts-trapezoid",u);if(!f)return Hn.createElement("g",null,Hn.createElement("path",ps({},Se(t),{className:L,d:qI(r,a,o,n,i)})));var k=m.current,M=v.current,A=b.current,z=O.current,N=S.current,W="0px ".concat(p===-1?1:p,"px"),F="".concat(p,"px ").concat(p,"px"),$=cu(["strokeDasharray"],s,l);return Hn.createElement(Ya,{animationId:E,key:E,canBegin:p>0,duration:s,easing:l,isActive:f,begin:c},Z=>{var J=at(k,o,Z),g=at(M,n,Z),y=at(A,i,Z),C=at(z,r,Z),I=at(N,a,Z);d.current&&(m.current=J,v.current=g,b.current=y,O.current=C,S.current=I);var x=Z>0?{transition:$,strokeDasharray:F}:{strokeDasharray:W};return Hn.createElement("path",ps({},Se(t),{className:L,d:qI(C,I,J,g,y),ref:d,style:UI(UI({},x),t.style)}))})};var hR=["option","shapeType","activeClassName","inActiveClassName"];function gR(e,t){if(e==null)return{};var r,a,o=vR(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var a=ne();return(o,n)=>i=>{e?.(o,n,i),a(El({activeIndex:String(n),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}},$I=e=>{var t=ne();return(r,a)=>o=>{e?.(r,a,o),t(Oy())}},XI=(e,t,r)=>{var a=ne();return(o,n)=>i=>{e?.(o,n,i),a(ky({activeIndex:String(n),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}};import{useLayoutEffect as YI,useRef as LR}from"react";function ZI(e){var{tooltipEntrySettings:t}=e,r=ne(),a=Ye(),o=LR(null);return YI(()=>{a||(o.current===null?r(Sy(t)):o.current!==t&&r(Ly({prev:o.current,next:t})),o.current=t)},[t,r,a]),YI(()=>()=>{o.current&&(r(Py(o.current)),o.current=null)},[r]),null}import{useLayoutEffect as JI,useRef as PR}from"react";function QI(e){var{legendPayload:t}=e,r=ne(),a=Y(le),o=PR(null);return JI(()=>{a!=="centric"&&a!=="radial"||(o.current===null?r(pg(t)):o.current!==t&&r(mg({prev:o.current,next:t})),o.current=t)},[r,a,t]),JI(()=>()=>{o.current&&(r(hg(o.current)),o.current=null)},[r]),null}import*as r0 from"react";import{createContext as OR,useContext as k8}from"react";import*as hs from"react";var Jd,AR=()=>{var[e]=hs.useState(()=>Jt("uid-"));return e},e0=(Jd=hs.useId)!==null&&Jd!==void 0?Jd:AR;function t0(e,t){var r=e0();return t||(e?"".concat(e,"-").concat(r):r)}var kR=OR(void 0),a0=e=>{var{id:t,type:r,children:a}=e,o=t0("recharts-".concat(r),t);return r0.createElement(kR.Provider,{value:o},a(o))};import{memo as RR,useLayoutEffect as s0,useRef as _R}from"react";var ER={cartesianItems:[],polarItems:[]},o0=ue({name:"graphicalItems",initialState:ER,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ce()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ve(e).cartesianItems.indexOf(r);o>-1&&(e.cartesianItems[o]=a)},prepare:ce()},removeCartesianGraphicalItem:{reducer(e,t){var r=Ve(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:ce()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:ce()},removePolarGraphicalItem:{reducer(e,t){var r=Ve(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:ce()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:a}=t.payload,o=Ve(e).polarItems.indexOf(r);o>-1&&(e.polarItems[o]=a)},prepare:ce()}}}),{addCartesianGraphicalItem:MR,replaceCartesianGraphicalItem:DR,removeCartesianGraphicalItem:TR,addPolarGraphicalItem:n0,removePolarGraphicalItem:i0,replacePolarGraphicalItem:u0}=o0.actions,l0=o0.reducer;var NR=e=>{var t=ne(),r=_R(null);return s0(()=>{r.current===null?t(n0(e)):r.current!==e&&t(u0({prev:r.current,next:e})),r.current=e},[t,e]),s0(()=>()=>{r.current&&(t(i0(r.current)),r.current=null)},[t]),null},f0=RR(NR);var BR=["key"],FR=["onMouseEnter","onClick","onMouseLeave"],jR=["id"],UR=["id"];function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;tYd(e.children,Kl),[e.children]),r=Y(a=>SI(a,e.id,t));return r==null?null:Q.createElement(QI,{legendPayload:r})}function $R(e){if(!(e==null||typeof e=="boolean"||typeof e=="function")){if(Q.isValidElement(e)){var t,r=(t=e.props)===null||t===void 0?void 0:t.fill;return typeof r=="string"?r:void 0}var{fill:a}=e;return typeof a=="string"?a:void 0}}var XR=Q.memo(e=>{var{dataKey:t,nameKey:r,sectors:a,stroke:o,strokeWidth:n,fill:i,name:u,hide:l,tooltipType:s,id:c,activeShape:f}=e,d=$R(f),p=a.map(m=>{var v=m.tooltipPayload;return d==null||v==null?v:v.map(b=>be(be({},b),{},{color:d,fill:d}))}),h={dataDefinedOnItem:p,getPosition:m=>{var v;return(v=a[Number(m)])===null||v===void 0?void 0:v.tooltipPosition},settings:{stroke:o,strokeWidth:n,fill:i,dataKey:t,nameKey:r,name:ru(u,t),hide:l,type:s,color:i,unit:"",graphicalItemId:c}};return Q.createElement(ZI,{tooltipEntrySettings:h})}),YR=(e,t)=>e>t?"start":etypeof t=="function"?Ue(t(e),r,r*.8):Ue(t,r,r*.8),JR=(e,t,r)=>{var{top:a,left:o,width:n,height:i}=t,u=xu(n,i),l=o+Ue(e.cx,n,n/2),s=a+Ue(e.cy,i,i/2),c=Ue(e.innerRadius,u,0),f=ZR(r,e.outerRadius,u),d=e.maxRadius||Math.sqrt(n*n+i*i)/2;return{cx:l,cy:s,innerRadius:c,outerRadius:f,maxRadius:d}},QR=(e,t)=>{var r=Pe(t-e),a=Math.min(Math.abs(t-e),360);return r*a},e1=(e,t)=>{if(Q.isValidElement(e))return Q.cloneElement(e,t);if(typeof e=="function")return e(t);var r=re("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:a}=t,o=gs(t,BR);return Q.createElement($a,Rr({},o,{type:"linear",className:r}))},t1=(e,t,r)=>{if(Q.isValidElement(e))return Q.cloneElement(e,t);var a=r;if(typeof e=="function"&&(a=e(t),Q.isValidElement(a)))return a;var o=re("recharts-pie-label-text",bI(e));return Q.createElement(qn,Rr({},t,{alignmentBaseline:"middle",className:o}),a)};function r1(e){var{sectors:t,props:r,showLabels:a}=e,{label:o,labelLine:n,dataKey:i}=r;if(!a||!o||!t)return null;var u=Yt(r),l=Mo(o),s=Mo(n),c=typeof o=="object"&&"offsetRadius"in o&&typeof o.offsetRadius=="number"&&o.offsetRadius||20,f=t.map((d,p)=>{var h=(d.startAngle+d.endAngle)/2,m=ge(d.cx,d.cy,d.outerRadius+c,h),v=be(be(be(be({},u),d),{},{stroke:"none"},l),{},{index:p,textAnchor:YR(m.x,d.cx)},m),b=be(be(be(be({},u),d),{},{fill:"none",stroke:d.fill},s),{},{index:p,points:[ge(d.cx,d.cy,d.outerRadius,h),m],key:"line"});return Q.createElement(dr,{zIndex:Ae.label,key:"label-".concat(d.startAngle,"-").concat(d.endAngle,"-").concat(d.midAngle,"-").concat(p)},Q.createElement(gt,null,n&&e1(n,b),t1(o,v,de(d,i))))});return Q.createElement(gt,{className:"recharts-pie-labels"},f)}function a1(e){var{sectors:t,props:r,showLabels:a}=e,{label:o}=r;return typeof o=="object"&&o!=null&&"position"in o?Q.createElement(hI,{label:o}):Q.createElement(r1,{sectors:t,props:r,showLabels:a})}function o1(e){var{sectors:t,activeShape:r,inactiveShape:a,allOtherPieProps:o,shape:n,id:i}=e,u=Y(xa),l=Y(Ul),s=Y(ql),{onMouseEnter:c,onClick:f,onMouseLeave:d}=o,p=gs(o,FR),h=KI(c,o.dataKey,i),m=$I(d),v=XI(f,o.dataKey,i);return t==null||t.length===0?null:Q.createElement(Q.Fragment,null,t.map((b,O)=>{if(b?.startAngle===0&&b?.endAngle===0&&t.length!==1)return null;var S=s==null||s===i,E=String(O)===u&&(l==null||o.dataKey===l)&&S,L=u?a:null,k=r&&E?r:L,M=be(be({},b),{},{stroke:b.stroke,tabIndex:-1,[ou]:O,[nu]:i});return Q.createElement(gt,Rr({key:"sector-".concat(b?.startAngle,"-").concat(b?.endAngle,"-").concat(b.midAngle,"-").concat(O),tabIndex:-1,className:"recharts-pie-sector"},Xp(p,b,O),{onMouseEnter:h(b,O),onMouseLeave:m(b,O),onClick:v(b,O)}),Q.createElement(GI,Rr({option:n??k,index:O,shapeType:"sector",isActive:E},M)))}))}function PI(e){var t,{pieSettings:r,displayedData:a,cells:o,offset:n}=e,{cornerRadius:i,startAngle:u,endAngle:l,dataKey:s,nameKey:c,tooltipType:f}=r,d=Math.abs(r.minAngle),p=QR(u,l),h=Math.abs(p),m=a.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,v=a.filter(k=>de(k,s,0)!==0).length,b=(h>=360?v:v-1)*m,O=h-v*d-b,S=a.reduce((k,M)=>{var A=de(M,s,0);return k+(X(A)?A:0)},0),E;if(S>0){var L;E=a.map((k,M)=>{var A=de(k,s,0),z=de(k,c,M),N=JR(r,n,k),W=(X(A)?A:0)/S,F,$=be(be({},k),o&&o[M]&&o[M].props),Z=$!=null&&"fill"in $&&typeof $.fill=="string"?$.fill:r.fill;M?F=L.endAngle+Pe(p)*m*(A!==0?1:0):F=u;var J=F+Pe(p)*((A!==0?d:0)+W*O),g=(F+J)/2,y=(N.innerRadius+N.outerRadius)/2,C=[{name:z,value:A,payload:$,dataKey:s,type:f,color:Z,fill:Z,graphicalItemId:r.id}],I=ge(N.cx,N.cy,y,g);return L=be(be(be(be({},r.presentationProps),{},{percent:W,cornerRadius:typeof i=="string"?parseFloat(i):i,name:z,tooltipPayload:C,midAngle:g,middleRadius:y,tooltipPosition:I},$),N),{},{value:A,dataKey:s,startAngle:F,endAngle:J,payload:$,paddingAngle:Pe(p)*m}),L})}return E}function n1(e){var{showLabels:t,sectors:r,children:a}=e,o=Qd(()=>!t||!r?[]:r.map(n=>({value:n.value,payload:n.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:n.cx,cy:n.cy,innerRadius:n.innerRadius,outerRadius:n.outerRadius,startAngle:n.startAngle,endAngle:n.endAngle,clockWise:!1},fill:n.fill})),[r,t]);return Q.createElement(mI,{value:t?o:void 0},a)}function i1(e){var{props:t,previousSectorsRef:r,id:a}=e,{sectors:o,isAnimationActive:n,animationBegin:i,animationDuration:u,animationEasing:l,activeShape:s,inactiveShape:c,onAnimationStart:f,onAnimationEnd:d}=t,p=Za(t,"recharts-pie-"),h=r.current,[m,v]=GR(!1),b=d0(()=>{typeof d=="function"&&d(),v(!1)},[d]),O=d0(()=>{typeof f=="function"&&f(),v(!0)},[f]);return Q.createElement(n1,{showLabels:!m,sectors:o},Q.createElement(Ya,{animationId:p,begin:i,duration:u,isActive:n,easing:l,onAnimationStart:O,onAnimationEnd:b,key:p},S=>{var E,L=[],k=o&&o[0],M=(E=k?.startAngle)!==null&&E!==void 0?E:0;return o?.forEach((A,z)=>{var N=h&&h[z],W=z>0?$e(A,"paddingAngle",0):0;if(N){var F=at(N.endAngle-N.startAngle,A.endAngle-A.startAngle,S),$=be(be({},A),{},{startAngle:M+W,endAngle:M+F+W});L.push($),M=$.endAngle}else{var{endAngle:Z,startAngle:J}=A,g=at(0,Z-J,S),y=be(be({},A),{},{startAngle:M+W,endAngle:M+g+W});L.push(y),M=y.endAngle}}),r.current=L,Q.createElement(gt,null,Q.createElement(o1,{sectors:L,activeShape:s,inactiveShape:c,allOtherPieProps:t,shape:t.shape,id:a}))}),Q.createElement(a1,{showLabels:!m,sectors:o,props:t}),t.children)}var u1={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:Ae.area};function l1(e){var{id:t}=e,r=gs(e,jR),{hide:a,className:o,rootTabIndex:n}=e,i=Qd(()=>Yd(e.children,Kl),[e.children]),u=Y(c=>LI(c,t,i)),l=WR(null),s=re("recharts-pie",o);return a||u==null?(l.current=null,Q.createElement(gt,{tabIndex:n,className:s})):Q.createElement(dr,{zIndex:e.zIndex},Q.createElement(XR,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:u,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t,activeShape:e.activeShape}),Q.createElement(gt,{tabIndex:n,className:s},Q.createElement(i1,{props:be(be({},r),{},{sectors:u}),previousSectorsRef:l,id:t})))}function s1(e){var t=De(e,u1),{id:r}=t,a=gs(t,UR),o=Yt(a);return Q.createElement(a0,{id:r,type:"pie"},n=>Q.createElement(Q.Fragment,null,Q.createElement(f0,{type:"pie",id:n,data:a.data,dataKey:a.dataKey,hide:a.hide,angleAxisId:0,radiusAxisId:0,name:a.name,nameKey:a.nameKey,tooltipType:a.tooltipType,legendType:a.legendType,fill:a.fill,cx:a.cx,cy:a.cy,startAngle:a.startAngle,endAngle:a.endAngle,paddingAngle:a.paddingAngle,minAngle:a.minAngle,innerRadius:a.innerRadius,outerRadius:a.outerRadius,cornerRadius:a.cornerRadius,presentationProps:o,maxRadius:t.maxRadius}),Q.createElement(KR,Rr({},a,{id:n})),Q.createElement(l1,Rr({},a,{id:n}))))}var vs=s1;vs.displayName="Pie";function p0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function m0(e){for(var t=1;t({top:e.top,bottom:e.bottom,left:e.left,right:e.right}));var x0=P([v0,We,Ge],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}});var y0=()=>Y(x0);import{useEffect as m1}from"react";var b0=e=>{var{chartData:t}=e,r=ne(),a=Ye();return m1(()=>a?()=>{}:(r(Bd(t)),()=>{r(Bd(void 0))}),[t,r,a]),null};var I0={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},w0=ue({name:"brush",initialState:I0,reducers:{setBrushSettings(e,t){return t.payload==null?I0:t.payload}}}),{setBrushSettings:HZ}=w0.actions,C0=w0.reducer;var h1={dots:[],areas:[],lines:[]},S0=ue({name:"referenceElements",initialState:h1,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Ve(e).dots.findIndex(a=>a===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Ve(e).areas.findIndex(a=>a===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Ve(e).lines.findIndex(a=>a===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:GZ,removeDot:KZ,addArea:$Z,removeArea:XZ,addLine:YZ,removeLine:ZZ}=S0.actions,L0=S0.reducer;import*as Vn from"react";import{createContext as g1,useContext as e9,useState as v1}from"react";var x1=g1(void 0),P0=e=>{var{children:t}=e,[r]=v1("".concat(Jt("recharts"),"-clip")),a=y0();if(a==null)return null;var{x:o,y:n,width:i,height:u}=a;return Vn.createElement(x1.Provider,{value:r},Vn.createElement("defs",null,Vn.createElement("clipPath",{id:r},Vn.createElement("rect",{x:o,y:n,height:u,width:i}))),t)};var y1={xAxis:{},yAxis:{}},A0=ue({name:"renderedTicks",initialState:y1,reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:a,ticks:o}=t.payload;e[r][a]=o},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:a}=t.payload;delete e[r][a]}}}),{setRenderedTicks:n9,removeRenderedTicks:i9}=A0.actions,O0=A0.reducer;var b1={},k0=ue({name:"errorBars",initialState:b1,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:a}=t.payload;e[r]||(e[r]=[]),e[r].push(a)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:a,next:o}=t.payload;e[r]&&(e[r]=e[r].map(n=>n.dataKey===a.dataKey&&n.direction===a.direction?o:n))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:a}=t.payload;e[r]&&(e[r]=e[r].filter(o=>o.dataKey!==a.dataKey||o.direction!==a.direction))}}}),{addErrorBar:s9,replaceErrorBar:f9,removeErrorBar:c9}=k0.actions,E0=k0.reducer;import*as W0 from"react";import{useRef as A1}from"react";var I1=(e,t)=>t,Wn=P([I1,le,Ru,Oe,wd,nt,Jy,pe],ob);function w1(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function Gn(e){var t=e.currentTarget.getBoundingClientRect(),r,a;if(w1(e)){var o=e.currentTarget.getBBox();r=o.width>0?t.width/o.width:1,a=o.height>0?t.height/o.height:1}else{var n=e.currentTarget;r=n.offsetWidth>0?t.width/n.offsetWidth:1,a=n.offsetHeight>0?t.height/n.offsetHeight:1}var i=(u,l)=>({relativeX:Math.round((u-t.left)/r),relativeY:Math.round((l-t.top)/a)});return"touches"in e?Array.from(e.touches).map(u=>i(u.clientX,u.clientY)):i(e.clientX,e.clientY)}var tp=Te("mouseClick"),rp=ar();rp.startListening({actionCreator:tp,effect:(e,t)=>{var r=e.payload,a=Wn(t.getState(),Gn(r));a?.activeIndex!=null&&t.dispatch(Ey({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}});var xs=Te("mouseMove"),ap=ar(),Po=null,ba=null,ep=null;ap.startListening({actionCreator:xs,effect:(e,t)=>{var r=e.payload,a=t.getState(),{throttleDelay:o,throttledEvents:n}=a.eventSettings,i=n==="all"||n?.includes("mousemove");Po!==null&&(cancelAnimationFrame(Po),Po=null),ba!==null&&(typeof o!="number"||!i)&&(clearTimeout(ba),ba=null),ep=Gn(r);var u=()=>{var l=t.getState(),s=Nn(l,l.tooltip.settings.shared);if(!ep){Po=null,ba=null;return}if(s==="axis"){var c=Wn(l,ep);c?.activeIndex!=null?t.dispatch(Dl({activeIndex:c.activeIndex,activeDataKey:void 0,activeCoordinate:c.activeCoordinate})):t.dispatch(Ml())}Po=null,ba=null};if(!i){u();return}o==="raf"?Po=requestAnimationFrame(u):typeof o=="number"&&ba===null&&(ba=setTimeout(u,o))}});function M0(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<>":t}var D0={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},T0=ue({name:"rootProps",initialState:D0,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:D0.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),R0=T0.reducer,{updateOptions:_0}=T0.actions;var C1=null,S1={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},N0=ue({name:"polarOptions",initialState:C1,reducers:S1}),{updatePolarOptions:B0}=N0.actions,F0=N0.reducer;var op=Te("keyDown"),np=Te("focus"),ip=Te("blur"),Kn=ar(),Ao=null,Ia=null,ys=null;Kn.startListening({actionCreator:op,effect:(e,t)=>{ys=e.payload,Ao!==null&&(cancelAnimationFrame(Ao),Ao=null);var r=t.getState(),{throttleDelay:a,throttledEvents:o}=r.eventSettings,n=o==="all"||o.includes("keydown");Ia!==null&&(typeof a!="number"||!n)&&(clearTimeout(Ia),Ia=null);var i=()=>{try{var u=t.getState(),l=u.rootProps.accessibilityLayer!==!1;if(!l)return;var{keyboardInteraction:s}=u.tooltip,c=ys;if(c!=="ArrowRight"&&c!=="ArrowLeft"&&c!=="Enter")return;var f=bo(s,Dr(u),Mr(u),va(u)),d=f==null?-1:Number(f);if(!Number.isFinite(d)||d<0)return;var p=nt(u);if(c==="Enter"){var h=jn(u,"axis","hover",String(s.index));t.dispatch(Bn({active:!s.active,activeIndex:s.index,activeCoordinate:h}));return}var m=by(u),v=m==="left-to-right"?1:-1,b=c==="ArrowRight"?1:-1,O=d+b*v;if(p==null||O>=p.length||O<0)return;var S=jn(u,"axis","hover",String(O));t.dispatch(Bn({active:!0,activeIndex:O.toString(),activeCoordinate:S}))}finally{Ao=null,Ia=null}};if(!n){i();return}a==="raf"?Ao=requestAnimationFrame(i):typeof a=="number"&&Ia===null&&(i(),ys=null,Ia=setTimeout(()=>{ys?i():(Ia=null,Ao=null)},a))}});Kn.startListening({actionCreator:np,effect:(e,t)=>{var r=t.getState(),a=r.rootProps.accessibilityLayer!==!1;if(a){var{keyboardInteraction:o}=r.tooltip;if(!o.active&&o.index==null){var n="0",i=jn(r,"axis","hover",String(n));t.dispatch(Bn({active:!0,activeIndex:n,activeCoordinate:i}))}}}});Kn.startListening({actionCreator:ip,effect:(e,t)=>{var r=t.getState(),a=r.rootProps.accessibilityLayer!==!1;if(a){var{keyboardInteraction:o}=r.tooltip;o.active&&t.dispatch(Bn({active:!1,activeIndex:o.index,activeCoordinate:o.coordinate}))}}});function bs(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(r,a)=>{if(a==="currentTarget")return t;var o=Reflect.get(r,a);return typeof o=="function"?o.bind(r):o}})}var mt=Te("externalEvent"),lp=ar(),Is=new Map,$n=new Map,up=new Map;lp.startListening({actionCreator:mt,effect:(e,t)=>{var{handler:r,reactEvent:a}=e.payload;if(r!=null){var o=a.type,n=bs(a);up.set(o,{handler:r,reactEvent:n});var i=Is.get(o);i!==void 0&&(cancelAnimationFrame(i),Is.delete(o));var u=t.getState(),{throttleDelay:l,throttledEvents:s}=u.eventSettings,c=s,f=c==="all"||c?.includes(o),d=$n.get(o);d!==void 0&&(typeof l!="number"||!f)&&(clearTimeout(d),$n.delete(o));var p=()=>{var v=up.get(o);try{if(!v)return;var{handler:b,reactEvent:O}=v,S=t.getState(),E={activeCoordinate:qy(S),activeDataKey:Ul(S),activeIndex:xa(S),activeLabel:Pd(S),activeTooltipIndex:xa(S),isTooltipActive:zy(S)};b&&b(E,O)}finally{Is.delete(o),$n.delete(o),up.delete(o)}};if(!f){p();return}if(l==="raf"){var h=requestAnimationFrame(p);Is.set(o,h)}else if(typeof l=="number"){if(!$n.has(o)){p();var m=setTimeout(p,l);$n.set(o,m)}}else p()}}});var L1=P([cr],e=>e.tooltipItemPayloads),j0=P([L1,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var a=e.find(n=>n.settings.graphicalItemId===r);if(a!=null){var{getPosition:o}=a;if(o!=null)return o(t)}}});var sp=Te("touchMove"),fp=ar(),wa=null,_r=null,U0=null,Xn=null;fp.startListening({actionCreator:sp,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){Xn=bs(r);var a=t.getState(),{throttleDelay:o,throttledEvents:n}=a.eventSettings,i=n==="all"||n.includes("touchmove");wa!==null&&(cancelAnimationFrame(wa),wa=null),_r!==null&&(typeof o!="number"||!i)&&(clearTimeout(_r),_r=null),U0=Array.from(r.touches).map(l=>Gn({clientX:l.clientX,clientY:l.clientY,currentTarget:r.currentTarget}));var u=()=>{if(Xn!=null){var l=t.getState(),s=Nn(l,l.tooltip.settings.shared);if(s==="axis"){var c,f=(c=U0)===null||c===void 0?void 0:c[0];if(f==null){wa=null,_r=null;return}var d=Wn(l,f);d?.activeIndex!=null&&t.dispatch(Dl({activeIndex:d.activeIndex,activeDataKey:void 0,activeCoordinate:d.activeCoordinate}))}else if(s==="item"){var p,h=Xn.touches[0];if(document.elementFromPoint==null||h==null)return;var m=document.elementFromPoint(h.clientX,h.clientY);if(!m||!m.getAttribute)return;var v=m.getAttribute(ou),b=(p=m.getAttribute(nu))!==null&&p!==void 0?p:void 0,O=ga(l).find(L=>L.id===b);if(v==null||O==null||b==null)return;var{dataKey:S}=O,E=j0(l,v,b);t.dispatch(El({activeDataKey:S,activeIndex:v,activeCoordinate:E,activeGraphicalItemId:b}))}wa=null,_r=null}};if(!i){u();return}o==="raf"?wa=requestAnimationFrame(u):typeof o=="number"&&_r===null&&(u(),Xn=null,_r=setTimeout(()=>{Xn?u():(_r=null,wa=null)},o))}}});var cp={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},q0=ue({name:"eventSettings",initialState:cp,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:z0}=q0.actions,H0=q0.reducer;var P1=Di({brush:C0,cartesianAxis:g0,chartData:kb,errorBars:E0,eventSettings:H0,graphicalItems:l0,layout:zh,legend:gg,options:Sb,polarAxis:yI,polarOptions:F0,referenceElements:L0,renderedTicks:O0,rootProps:R0,tooltip:My,zIndex:mb}),V0=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return Sh({reducer:P1,preloadedState:t,middleware:a=>{var o;return a({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([rp.middleware,ap.middleware,Kn.middleware,lp.middleware,fp.middleware])},enhancers:a=>{var o=a;return typeof a=="function"&&(o=a()),o.concat(Uf({type:"raf"}))},devTools:Ut.devToolsEnabled&&{serialize:{replacer:M0},name:"recharts-".concat(r)}})};function G0(e){var{preloadedState:t,children:r,reduxStoreName:a}=e,o=Ye(),n=A1(null);if(o)return r;n.current==null&&(n.current=V0(t,a));var i=No;return W0.createElement(bg,{context:i,store:n.current},r)}import{memo as O1,useEffect as k1}from"react";function E1(e){var{layout:t,margin:r}=e,a=ne(),o=Ye();return k1(()=>{o||(a(jh(t)),a(Hf(r)))},[a,o,t,r]),null}var K0=O1(E1,uu);import{useEffect as M1}from"react";function $0(e){var t=ne();return M1(()=>{t(_0(e))},[t,e]),null}import{useEffect as D1,memo as T1}from"react";var R1=e=>{var t=ne();return D1(()=>{t(z0(e))},[t,e]),null},X0=T1(R1,uu);import*as mr from"react";import{forwardRef as n_}from"react";import*as Sa from"react";import{forwardRef as Z0}from"react";import*as Ca from"react";import{useLayoutEffect as _1,useRef as N1}from"react";function Y0(e){var{zIndex:t,isPanorama:r}=e,a=N1(null),o=ne();return _1(()=>(a.current&&o(db({zIndex:t,element:a.current,isPanorama:r})),()=>{o(pb({zIndex:t,isPanorama:r}))}),[o,t,r]),Ca.createElement("g",{tabIndex:-1,ref:a,className:"recharts-zIndex-layer_".concat(t)})}function dp(e){var{children:t,isPanorama:r}=e,a=Y(ib);if(!a||a.length===0)return t;var o=a.filter(i=>i<0),n=a.filter(i=>i>0);return Ca.createElement(Ca.Fragment,null,o.map(i=>Ca.createElement(Y0,{key:i,zIndex:i,isPanorama:r})),t,n.map(i=>Ca.createElement(Y0,{key:i,zIndex:i,isPanorama:r})))}var B1=["children"];function F1(e,t){if(e==null)return{};var r,a,o=j1(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var r=sg(),a=fg(),o=su();if(!Ot(r)||!Ot(a))return null;var{children:n,otherAttributes:i,title:u,desc:l}=e,s,c;return i!=null&&(typeof i.tabIndex=="number"?s=i.tabIndex:s=o?0:void 0,typeof i.role=="string"?c=i.role:c=o?"application":void 0),Sa.createElement(Ds,ws({},i,{title:u,desc:l,role:c,tabIndex:s,width:r,height:a,style:U1,ref:t}),n)}),z1=e=>{var{children:t}=e,r=Y(Kr);if(!r)return null;var{width:a,height:o,y:n,x:i}=r;return Sa.createElement(Ds,{width:a,height:o,x:i,y:n},t)},pp=Z0((e,t)=>{var{children:r}=e,a=F1(e,B1),o=Ye();return o?Sa.createElement(z1,null,Sa.createElement(dp,{isPanorama:!0},r)):Sa.createElement(q1,ws({ref:t},a),Sa.createElement(dp,{isPanorama:!1},r))});import*as Ie from"react";import{forwardRef as Yn,useCallback as Ne,useEffect as X1,useRef as ew,useState as Cs}from"react";import{useEffect as H1,useState as V1}from"react";function J0(){var e=ne(),[t,r]=V1(null),a=Y(Xh);return H1(()=>{if(t!=null){var o=t.getBoundingClientRect(),n=o.width/t.offsetWidth;ae(n)&&n!==a&&e(qh(n))}},[t,e,a]),r}function Q0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function W1(e){for(var t=1;t(Mb(),null);function Ss(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Z1=Yn((e,t)=>{var r,a,o=ew(null),[n,i]=Cs({containerWidth:Ss((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Ss((a=e.style)===null||a===void 0?void 0:a.height)}),u=Ne((s,c)=>{i(f=>{var d=Math.round(s),p=Math.round(c);return f.containerWidth===d&&f.containerHeight===p?f:{containerWidth:d,containerHeight:p}})},[]),l=Ne(s=>{if(typeof t=="function"&&t(s),s!=null&&typeof ResizeObserver<"u"){var{width:c,height:f}=s.getBoundingClientRect();u(c,f);var d=h=>{var m=h[0];if(m!=null){var{width:v,height:b}=m.contentRect;u(v,b)}},p=new ResizeObserver(d);p.observe(s),o.current=p}},[t,u]);return X1(()=>()=>{var s=o.current;s?.disconnect()},[u]),Ie.createElement(Ie.Fragment,null,Ie.createElement(Zr,{width:n.containerWidth,height:n.containerHeight}),Ie.createElement("div",Nr({ref:l},e)))}),J1=Yn((e,t)=>{var{width:r,height:a}=e,[o,n]=Cs({containerWidth:Ss(r),containerHeight:Ss(a)}),i=Ne((l,s)=>{n(c=>{var f=Math.round(l),d=Math.round(s);return c.containerWidth===f&&c.containerHeight===d?c:{containerWidth:f,containerHeight:d}})},[]),u=Ne(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:s,height:c}=l.getBoundingClientRect();i(s,c)}},[t,i]);return Ie.createElement(Ie.Fragment,null,Ie.createElement(Zr,{width:o.containerWidth,height:o.containerHeight}),Ie.createElement("div",Nr({ref:u},e)))}),Q1=Yn((e,t)=>{var{width:r,height:a}=e;return Ie.createElement(Ie.Fragment,null,Ie.createElement(Zr,{width:r,height:a}),Ie.createElement("div",Nr({ref:t},e)))}),e_=Yn((e,t)=>{var{width:r,height:a}=e;return typeof r=="string"||typeof a=="string"?Ie.createElement(J1,Nr({},e,{ref:t})):typeof r=="number"&&typeof a=="number"?Ie.createElement(Q1,Nr({},e,{width:r,height:a,ref:t})):Ie.createElement(Ie.Fragment,null,Ie.createElement(Zr,{width:r,height:a}),Ie.createElement("div",Nr({ref:t},e)))});function t_(e){return e?Z1:e_}var tw=Yn((e,t)=>{var{children:r,className:a,height:o,onClick:n,onContextMenu:i,onDoubleClick:u,onMouseDown:l,onMouseEnter:s,onMouseLeave:c,onMouseMove:f,onMouseUp:d,onTouchEnd:p,onTouchMove:h,onTouchStart:m,style:v,width:b,responsive:O,dispatchTouchEvents:S=!0}=e,E=ew(null),L=ne(),[k,M]=Cs(null),[A,z]=Cs(null),N=J0(),W=Vo(),F=W?.width>0?W.width:b,$=W?.height>0?W.height:o,Z=Ne(q=>{N(q),typeof t=="function"&&t(q),M(q),z(q),q!=null&&(E.current=q)},[N,t,M,z]),J=Ne(q=>{L(tp(q)),L(mt({handler:n,reactEvent:q}))},[L,n]),g=Ne(q=>{L(xs(q)),L(mt({handler:s,reactEvent:q}))},[L,s]),y=Ne(q=>{L(Ml()),L(mt({handler:c,reactEvent:q}))},[L,c]),C=Ne(q=>{L(xs(q)),L(mt({handler:f,reactEvent:q}))},[L,f]),I=Ne(()=>{L(np())},[L]),x=Ne(()=>{L(ip())},[L]),w=Ne(q=>{L(op(q.key))},[L]),D=Ne(q=>{L(mt({handler:i,reactEvent:q}))},[L,i]),_=Ne(q=>{L(mt({handler:u,reactEvent:q}))},[L,u]),B=Ne(q=>{L(mt({handler:l,reactEvent:q}))},[L,l]),U=Ne(q=>{L(mt({handler:d,reactEvent:q}))},[L,d]),j=Ne(q=>{L(mt({handler:m,reactEvent:q}))},[L,m]),H=Ne(q=>{S&&L(sp(q)),L(mt({handler:h,reactEvent:q}))},[L,S,h]),oe=Ne(q=>{L(mt({handler:p,reactEvent:q}))},[L,p]),T=t_(O);return Ie.createElement(Rd.Provider,{value:k},Ie.createElement(Ap.Provider,{value:A},Ie.createElement(T,{width:F??v?.width,height:$??v?.height,className:re("recharts-wrapper",a),style:W1({position:"relative",cursor:"default",width:F,height:$},v),onClick:J,onContextMenu:D,onDoubleClick:_,onFocus:I,onBlur:x,onKeyDown:w,onMouseDown:B,onMouseEnter:g,onMouseLeave:y,onMouseMove:C,onMouseUp:U,onTouchEnd:oe,onTouchMove:H,onTouchStart:j,ref:Z},Ie.createElement(Y1,null),r)))});var r_=["width","height","responsive","children","className","style","compact","title","desc"];function a_(e,t){if(e==null)return{};var r,a,o=o_(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a{var{width:r,height:a,responsive:o,children:n,className:i,style:u,compact:l,title:s,desc:c}=e,f=a_(e,r_),d=Yt(f);return l?mr.createElement(mr.Fragment,null,mr.createElement(Zr,{width:r,height:a}),mr.createElement(pp,{otherAttributes:d,title:s,desc:c},n)):mr.createElement(tw,{className:i,style:u,width:r,height:a,responsive:o??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},mr.createElement(pp,{otherAttributes:d,title:s,desc:c,ref:t},mr.createElement(P0,null,n)))});import*as lw from"react";import{forwardRef as y_}from"react";import{forwardRef as m_}from"react";import*as Br from"react";import{useEffect as i_}from"react";function aw(e){var t=ne();return i_(()=>{t(B0(e))},[t,e]),null}var u_=["layout"];function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=De(e,I_);return lw.createElement(nw,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:b_,tooltipPayloadSearcher:wb,categoricalChartProps:r,ref:t})});var C_=(e,t)=>{let r=new Array(e.length+t.length);for(let a=0;a({classGroupId:e,validator:t}),hw=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),As="-",sw=[],L_="arbitrary..",P_=e=>{let t=O_(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return A_(i);let u=i.split(As),l=u[0]===""&&u.length>1?1:0;return gw(u,l,t)},getConflictingClassGroupIds:(i,u)=>{if(u){let l=a[i],s=r[i];return l?s?C_(s,l):l:s||sw}return r[i]||sw}}},gw=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;let o=e[t],n=r.nextPart.get(o);if(n){let s=gw(e,t+1,n);if(s)return s}let i=r.validators;if(i===null)return;let u=t===0?e.join(As):e.slice(t).join(As),l=i.length;for(let s=0;se.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),a=t.slice(0,r);return a?L_+a:void 0})(),O_=e=>{let{theme:t,classGroups:r}=e;return k_(r,t)},k_=(e,t)=>{let r=hw();for(let a in e){let o=e[a];yp(o,r,a,t)}return r},yp=(e,t,r,a)=>{let o=e.length;for(let n=0;n{if(typeof e=="string"){M_(e,t,r);return}if(typeof e=="function"){D_(e,t,r,a);return}T_(e,t,r,a)},M_=(e,t,r)=>{let a=e===""?t:vw(t,e);a.classGroupId=r},D_=(e,t,r,a)=>{if(R_(e)){yp(e(a),t,r,a);return}t.validators===null&&(t.validators=[]),t.validators.push(S_(r,e))},T_=(e,t,r,a)=>{let o=Object.entries(e),n=o.length;for(let i=0;i{let r=e,a=t.split(As),o=a.length;for(let n=0;n"isThemeGetter"in e&&e.isThemeGetter===!0,__=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),a=Object.create(null),o=(n,i)=>{r[n]=i,t++,t>e&&(t=0,a=r,r=Object.create(null))};return{get(n){let i=r[n];if(i!==void 0)return i;if((i=a[n])!==void 0)return o(n,i),i},set(n,i){n in r?r[n]=i:o(n,i)}}},xp="!",fw=":",N_=[],cw=(e,t,r,a,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:o}),B_=e=>{let{prefix:t,experimentalParseClassName:r}=e,a=o=>{let n=[],i=0,u=0,l=0,s,c=o.length;for(let m=0;ml?s-l:void 0;return cw(n,p,d,h)};if(t){let o=t+fw,n=a;a=i=>i.startsWith(o)?n(i.slice(o.length)):cw(N_,!1,i,void 0,!0)}if(r){let o=a;a=n=>r({className:n,parseClassName:o})}return a},F_=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{t.set(r,1e6+a)}),r=>{let a=[],o=[];for(let n=0;n0&&(o.sort(),a.push(...o),o=[]),a.push(i)):o.push(i)}return o.length>0&&(o.sort(),a.push(...o)),a}},j_=e=>({cache:__(e.cacheSize),parseClassName:B_(e),sortModifiers:F_(e),postfixLookupClassGroupIds:U_(e),...P_(e)}),U_=e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let a=0;a{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:n,postfixLookupClassGroupIds:i}=t,u=[],l=e.trim().split(q_),s="";for(let c=l.length-1;c>=0;c-=1){let f=l[c],{isExternal:d,modifiers:p,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:v}=r(f);if(d){s=f+(s.length>0?" "+s:s);continue}let b=!!v,O;if(b){let M=m.substring(0,v);O=a(M);let A=O&&i[O]?a(m):void 0;A&&A!==O&&(O=A,b=!1)}else O=a(m);if(!O){if(!b){s=f+(s.length>0?" "+s:s);continue}if(O=a(m),!O){s=f+(s.length>0?" "+s:s);continue}b=!1}let S=p.length===0?"":p.length===1?p[0]:n(p).join(":"),E=h?S+xp:S,L=E+O;if(u.indexOf(L)>-1)continue;u.push(L);let k=o(O,b);for(let M=0;M0?" "+s:s)}return s},H_=(...e)=>{let t=0,r,a,o="";for(;t{if(typeof e=="string")return e;let t,r="";for(let a=0;a{let r,a,o,n,i=l=>{let s=t.reduce((c,f)=>f(c),e());return r=j_(s),a=r.cache.get,o=r.cache.set,n=u,u(l)},u=l=>{let s=a(l);if(s)return s;let c=z_(l,r);return o(l,c),c};return n=i,(...l)=>n(H_(...l))},W_=[],Be=e=>{let t=r=>r[e]||W_;return t.isThemeGetter=!0,t},yw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,G_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,K_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,X_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Y_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Z_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fr=e=>G_.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),Xt=e=>!!e&&Number.isInteger(Number(e)),vp=e=>e.endsWith("%")&&te(e.slice(0,-1)),hr=e=>K_.test(e),Iw=()=>!0,J_=e=>$_.test(e)&&!X_.test(e),bp=()=>!1,Q_=e=>Y_.test(e),eN=e=>Z_.test(e),tN=e=>!G(e)&&!K(e),rN=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),aN=e=>jr(e,Sw,bp),G=e=>yw.test(e),La=e=>jr(e,Lw,J_),dw=e=>jr(e,cN,te),oN=e=>jr(e,Aw,Iw),nN=e=>jr(e,Pw,bp),pw=e=>jr(e,ww,bp),iN=e=>jr(e,Cw,eN),Ls=e=>jr(e,Ow,Q_),K=e=>bw.test(e),Zn=e=>Pa(e,Lw),uN=e=>Pa(e,Pw),mw=e=>Pa(e,ww),lN=e=>Pa(e,Sw),sN=e=>Pa(e,Cw),Ps=e=>Pa(e,Ow,!0),fN=e=>Pa(e,Aw,!0),jr=(e,t,r)=>{let a=yw.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},Pa=(e,t,r=!1)=>{let a=bw.exec(e);return a?a[1]?t(a[1]):r:!1},ww=e=>e==="position"||e==="percentage",Cw=e=>e==="image"||e==="url",Sw=e=>e==="length"||e==="size"||e==="bg-size",Lw=e=>e==="length",cN=e=>e==="number",Pw=e=>e==="family-name",Aw=e=>e==="number"||e==="weight",Ow=e=>e==="shadow";var dN=()=>{let e=Be("color"),t=Be("font"),r=Be("text"),a=Be("font-weight"),o=Be("tracking"),n=Be("leading"),i=Be("breakpoint"),u=Be("container"),l=Be("spacing"),s=Be("radius"),c=Be("shadow"),f=Be("inset-shadow"),d=Be("text-shadow"),p=Be("drop-shadow"),h=Be("blur"),m=Be("perspective"),v=Be("aspect"),b=Be("ease"),O=Be("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...E(),K,G],k=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],A=()=>[K,G,l],z=()=>[Fr,"full","auto",...A()],N=()=>[Xt,"none","subgrid",K,G],W=()=>["auto",{span:["full",Xt,K,G]},Xt,K,G],F=()=>[Xt,"auto",K,G],$=()=>["auto","min","max","fr",K,G],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],g=()=>["auto",...A()],y=()=>[Fr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],C=()=>[Fr,"screen","full","dvw","lvw","svw","min","max","fit",...A()],I=()=>[Fr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...A()],x=()=>[e,K,G],w=()=>[...E(),mw,pw,{position:[K,G]}],D=()=>["no-repeat",{repeat:["","x","y","space","round"]}],_=()=>["auto","cover","contain",lN,aN,{size:[K,G]}],B=()=>[vp,Zn,La],U=()=>["","none","full",s,K,G],j=()=>["",te,Zn,La],H=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[te,vp,mw,pw],q=()=>["","none",h,K,G],V=()=>["none",te,K,G],R=()=>["none",te,K,G],we=()=>[te,K,G],ee=()=>[Fr,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hr],breakpoint:[hr],color:[Iw],container:[hr],"drop-shadow":[hr],ease:["in","out","in-out"],font:[tN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hr],shadow:[hr],spacing:["px",te],text:[hr],"text-shadow":[hr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Fr,G,K,v]}],container:["container"],"container-type":[{"@container":["","normal","size",K,G]}],"container-named":[rN],columns:[{columns:[te,G,K,u]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[Xt,"auto",K,G]}],basis:[{basis:[Fr,"full","auto",u,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,Fr,"auto","initial","none",G]}],grow:[{grow:["",te,K,G]}],shrink:[{shrink:["",te,K,G]}],order:[{order:[Xt,"first","last","none",K,G]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pbs:[{pbs:A()}],pbe:[{pbe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:g()}],mx:[{mx:g()}],my:[{my:g()}],ms:[{ms:g()}],me:[{me:g()}],mbs:[{mbs:g()}],mbe:[{mbe:g()}],mt:[{mt:g()}],mr:[{mr:g()}],mb:[{mb:g()}],ml:[{ml:g()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:y()}],"inline-size":[{inline:["auto",...C()]}],"min-inline-size":[{"min-inline":["auto",...C()]}],"max-inline-size":[{"max-inline":["none",...C()]}],"block-size":[{block:["auto",...I()]}],"min-block-size":[{"min-block":["auto",...I()]}],"max-block-size":[{"max-block":["none",...I()]}],w:[{w:[u,"screen",...y()]}],"min-w":[{"min-w":[u,"screen","none",...y()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...y()]}],h:[{h:["screen","lh",...y()]}],"min-h":[{"min-h":["screen","lh","none",...y()]}],"max-h":[{"max-h":["screen","lh",...y()]}],"font-size":[{text:["base",r,Zn,La]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,fN,oN]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vp,G]}],"font-family":[{font:[uN,nN,t]}],"font-features":[{"font-features":[G]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,K,G]}],"line-clamp":[{"line-clamp":[te,"none",K,dw]}],leading:[{leading:[n,...A()]}],"list-image":[{"list-image":["none",K,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",K,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",K,La]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[te,"auto",K,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"tab-size":[{tab:[Xt,K,G]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:w()}],"bg-repeat":[{bg:D()}],"bg-size":[{bg:_()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xt,K,G],radial:["",K,G],conic:[Xt,K,G]},sN,iN]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:B()}],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-bs":[{"border-bs":j()}],"border-w-be":[{"border-be":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...H(),"hidden","none"]}],"divide-style":[{divide:[...H(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-bs":[{"border-bs":x()}],"border-color-be":[{"border-be":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...H(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,K,G]}],"outline-w":[{outline:["",te,Zn,La]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",c,Ps,Ls]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",f,Ps,Ls]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[te,La]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",d,Ps,Ls]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[te,K,G]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[K,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:w()}],"mask-repeat":[{mask:D()}],"mask-size":[{mask:_()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",K,G]}],filter:[{filter:["","none",K,G]}],blur:[{blur:q()}],brightness:[{brightness:[te,K,G]}],contrast:[{contrast:[te,K,G]}],"drop-shadow":[{"drop-shadow":["","none",p,Ps,Ls]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",te,K,G]}],"hue-rotate":[{"hue-rotate":[te,K,G]}],invert:[{invert:["",te,K,G]}],saturate:[{saturate:[te,K,G]}],sepia:[{sepia:["",te,K,G]}],"backdrop-filter":[{"backdrop-filter":["","none",K,G]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[te,K,G]}],"backdrop-contrast":[{"backdrop-contrast":[te,K,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,K,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,K,G]}],"backdrop-invert":[{"backdrop-invert":["",te,K,G]}],"backdrop-opacity":[{"backdrop-opacity":[te,K,G]}],"backdrop-saturate":[{"backdrop-saturate":[te,K,G]}],"backdrop-sepia":[{"backdrop-sepia":["",te,K,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",K,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",K,G]}],ease:[{ease:["linear","initial",b,K,G]}],delay:[{delay:[te,K,G]}],animate:[{animate:["none",O,K,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,K,G]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:V()}],"rotate-x":[{"rotate-x":V()}],"rotate-y":[{"rotate-y":V()}],"rotate-z":[{"rotate-z":V()}],scale:[{scale:R()}],"scale-x":[{"scale-x":R()}],"scale-y":[{"scale-y":R()}],"scale-z":[{"scale-z":R()}],"scale-3d":["scale-3d"],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[K,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[Xt,K,G]}],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":x()}],"scrollbar-track-color":[{"scrollbar-track":x()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mbs":[{"scroll-mbs":A()}],"scroll-mbe":[{"scroll-mbe":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pbs":[{"scroll-pbs":A()}],"scroll-pbe":[{"scroll-pbe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K,G]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[te,Zn,La,dw]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var kw=V_(dN);function et(...e){return kw(re(e))}import{jsx as Oo}from"react/jsx-runtime";function Ew({className:e,...t}){return Oo("div",{"data-slot":"card",className:et("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...t})}function Mw({className:e,...t}){return Oo("div",{"data-slot":"card-header",className:et("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Dw({className:e,...t}){return Oo("div",{"data-slot":"card-title",className:et("leading-none font-semibold",e),...t})}function Tw({className:e,...t}){return Oo("div",{"data-slot":"card-description",className:et("text-sm text-muted-foreground",e),...t})}function Rw({className:e,...t}){return Oo("div",{"data-slot":"card-content",className:et("px-6",e),...t})}function _w({className:e,...t}){return Oo("div",{"data-slot":"card-footer",className:et("flex items-center px-6 [.border-t]:pt-6",e),...t})}import*as Ur from"react";import{Fragment as vN,jsx as Lt,jsxs as Jn}from"react/jsx-runtime";var pN={light:"",dark:".dark"},mN={width:320,height:200},Bw=Ur.createContext(null);function hN(){let e=Ur.useContext(Bw);if(!e)throw new Error("useChart must be used within a ");return e}function Fw({id:e,className:t,children:r,config:a,initialDimension:o=mN,...n}){let i=Ur.useId(),u=`chart-${e??i.replace(/:/g,"")}`;return Lt(Bw.Provider,{value:{config:a},children:Jn("div",{"data-slot":"chart","data-chart":u,className:et("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",t),...n,children:[Lt(gN,{id:u,config:a}),Lt(Jf,{initialDimension:o,children:r})]})})}var gN=({id:e,config:t})=>{let r=Object.entries(t).filter(([,a])=>a.theme??a.color);return r.length?Lt("style",{dangerouslySetInnerHTML:{__html:Object.entries(pN).map(([a,o])=>` +${o} [data-chart=${e}] { +${r.map(([n,i])=>{let u=i.theme?.[a]??i.color;return u?` --color-${n}: ${u};`:null}).join(` +`)} +} +`).join(` +`)}}):null},jw=Fd;function Uw({active:e,payload:t,className:r,indicator:a="dot",hideLabel:o=!1,hideIndicator:n=!1,label:i,labelFormatter:u,labelClassName:l,formatter:s,color:c,nameKey:f,labelKey:d}){let{config:p}=hN(),h=Ur.useMemo(()=>{if(o||!t?.length)return null;let[v]=t,b=`${d??v?.dataKey??v?.name??"value"}`,O=Nw(p,v,b),S=!d&&typeof i=="string"?p[i]?.label??i:O?.label;return u?Lt("div",{className:et("font-medium",l),children:u(S,t)}):S?Lt("div",{className:et("font-medium",l),children:S}):null},[i,u,t,o,l,p,d]);if(!e||!t?.length)return null;let m=t.length===1&&a!=="dot";return Jn("div",{className:et("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[m?null:h,Lt("div",{className:"grid gap-1.5",children:t.filter(v=>v.type!=="none").map((v,b)=>{let O=`${f??v.name??v.dataKey??"value"}`,S=Nw(p,v,O),E=c??v.payload?.fill??v.color;return Lt("div",{className:et("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",a==="dot"&&"items-center"),children:s&&v?.value!==void 0&&v.name?s(v.value,v.name,v,b,v.payload):Jn(vN,{children:[S?.icon?Lt(S.icon,{}):!n&&Lt("div",{className:et("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":a==="dot","w-1":a==="line","w-0 border-[1.5px] border-dashed bg-transparent":a==="dashed","my-0.5":m&&a==="dashed"}),style:{"--color-bg":E,"--color-border":E}}),Jn("div",{className:et("flex flex-1 justify-between leading-none",m?"items-end":"items-center"),children:[Jn("div",{className:"grid gap-1.5",children:[m?h:null,Lt("span",{className:"text-muted-foreground",children:S?.label??v.name})]}),v.value!=null&&Lt("span",{className:"font-mono font-medium text-foreground tabular-nums",children:typeof v.value=="number"?v.value.toLocaleString():String(v.value)})]})]})},b)})})]})}function Nw(e,t,r){if(typeof t!="object"||t===null)return;let a="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0,o=r;return r in t&&typeof t[r]=="string"?o=t[r]:a&&r in a&&typeof a[r]=="string"&&(o=a[r]),o in e?e[o]:e[r]}import{jsx as Nt,jsxs as Qn}from"react/jsx-runtime";var AQ="A donut chart with an active sector",xN=[{browser:"chrome",visitors:275,fill:"var(--color-chrome)"},{browser:"safari",visitors:200,fill:"var(--color-safari)"},{browser:"firefox",visitors:187,fill:"var(--color-firefox)"},{browser:"edge",visitors:173,fill:"var(--color-edge)"},{browser:"other",visitors:90,fill:"var(--color-other)"}],yN={visitors:{label:"Visitors"},chrome:{label:"Chrome",color:"var(--chart-1)"},safari:{label:"Safari",color:"var(--chart-2)"},firefox:{label:"Firefox",color:"var(--chart-3)"},edge:{label:"Edge",color:"var(--chart-4)"},other:{label:"Other",color:"var(--chart-5)"}},bN=0;function OQ(){return Qn(Ew,{className:"flex flex-col",children:[Qn(Mw,{className:"items-center pb-0",children:[Nt(Dw,{children:"Pie Chart - Donut Active"}),Nt(Tw,{children:"January - June 2024"})]}),Nt(Rw,{className:"flex-1 pb-0",children:Nt(Fw,{config:yN,className:"mx-auto aspect-square max-h-[250px]",children:Qn(gp,{children:[Nt(jw,{cursor:!1,content:Nt(Uw,{hideLabel:!0})}),Nt(vs,{data:xN,dataKey:"visitors",nameKey:"browser",innerRadius:60,strokeWidth:5,shape:({index:e,outerRadius:t=0,...r})=>e===bN?Nt(yr,{...r,outerRadius:t+10}):Nt(yr,{...r,outerRadius:t})})]})})}),Qn(_w,{className:"flex-col gap-2 text-sm",children:[Qn("div",{className:"flex items-center gap-2 leading-none font-medium",children:["Trending up by 5.2% this month ",Nt(ko,{className:"h-4 w-4"})]}),Nt("div",{className:"leading-none text-muted-foreground",children:"Showing total visitors for the last 6 months"})]})]})}export{OQ as ChartPieDonutActive,AQ as description}; +/*! Bundled license information: + +decimal.js-light/decimal.js: + (*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE *) + +react-is/cjs/react-is.production.js: + (** + * @license React + * react-is.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/trending-up.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/8f04d9f4344948d99146ddc5087d10ab474f7b6b8f4547108cf36e7ebfdd1b9e b/b/8f04d9f4344948d99146ddc5087d10ab474f7b6b8f4547108cf36e7ebfdd1b9e new file mode 100644 index 0000000000000000000000000000000000000000..e07f06adf4a44fc1b240d0b94e1a38964003ee95 --- /dev/null +++ b/b/8f04d9f4344948d99146ddc5087d10ab474f7b6b8f4547108cf36e7ebfdd1b9e @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.alert-destructive", + "name": "alert-destructive", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/alert-destructive.json", + "did": "did:holo:sha256:bf52ac4d4b32ec58129adfe443983abbf2eda03b801e60b8840ba5444fa6a756", + "import": "holo://sha256:05cc50ef10fe89f61bff12a3d295e5d84894f4cacd7bcc165dc4290e658a9e97", + "integrity": "sha256-BcxQ7xD+ifYb/xKj0pXl2EiU9MrNe8wWXcQpDmWKnpc=", + "kappa": "sha256:bf52ac4d4b32ec58129adfe443983abbf2eda03b801e60b8840ba5444fa6a756", + "moduleKappa": "sha256:05cc50ef10fe89f61bff12a3d295e5d84894f4cacd7bcc165dc4290e658a9e97", + "renderExport": "default", + "source": "registry/new-york-v4/examples/alert-destructive.tsx", + "module": "vendor/components/alert-destructive.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/8f106108074d32696336cce7d8d6d1583e9ec4f4e42d16b930aa5a67cf5b2498 b/b/8f106108074d32696336cce7d8d6d1583e9ec4f4e42d16b930aa5a67cf5b2498 new file mode 100644 index 0000000000000000000000000000000000000000..a4f7cfebade3149893099584c246ce2c0e71fcce --- /dev/null +++ b/b/8f106108074d32696336cce7d8d6d1583e9ec4f4e42d16b930aa5a67cf5b2498 @@ -0,0 +1,27 @@ +{ + "id": "org.hologram.ui.daisyui.radialprogress", + "name": "daisyui-radialprogress", + "tier": "component", + "library": "daisyui", + "category": "Feedback", + "upstream": "https://cdn.jsdelivr.net/npm/daisyui@5.5.23/components/radialprogress.css", + "docs": "https://daisyui.com/components/radialprogress/", + "did": "did:holo:sha256:7577e0f9fb12fa1d73a38d227c750e84145262cac5b753fe784d460a1ea49cc9", + "import": "holo://sha256:7577e0f9fb12fa1d73a38d227c750e84145262cac5b753fe784d460a1ea49cc9", + "integrity": "sha256-dXfg+fsS+h1zo40ifHUOhBRSYsrFt1P+eE1GCh6knMk=", + "kappa": "sha256:7577e0f9fb12fa1d73a38d227c750e84145262cac5b753fe784d460a1ea49cc9", + "moduleKappa": "sha256:7577e0f9fb12fa1d73a38d227c750e84145262cac5b753fe784d460a1ea49cc9", + "renderExport": null, + "format": "css", + "source": "components/radialprogress.css", + "module": "vendor/daisyui/components/radialprogress.css", + "exports": [], + "bytes": 6789, + "provenance": { + "package": "daisyui", + "version": "5.5.23", + "integrity": "sha512-xuheNUSL4T6ZVtWXoioqcNkjoyGX85QTDz4HTw2aBPfqk4fuMjax5HDo8qCmpV6M1YN8bGvfx5BpYCoDeRlt+A==", + "file": "components/radialprogress.css" + }, + "license": "MIT" +} diff --git a/b/8f18e6b1c507d1b2192b61dc6b0f5a483bf83392fc21829198e3b17d86027e04 b/b/8f18e6b1c507d1b2192b61dc6b0f5a483bf83392fc21829198e3b17d86027e04 new file mode 100644 index 0000000000000000000000000000000000000000..5b990ea83097c4ec93125f9b600164dcfc3867f1 --- /dev/null +++ b/b/8f18e6b1c507d1b2192b61dc6b0f5a483bf83392fc21829198e3b17d86027e04 @@ -0,0 +1,51 @@ +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-06/components/app-sidebar" +import { + Breadcrumb, + BreadcrumbItem, + BreadcrumbLink, + BreadcrumbList, + BreadcrumbPage, + BreadcrumbSeparator, +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" +import { + SidebarInset, + SidebarProvider, + SidebarTrigger, +} from "@/registry/new-york-v4/ui/sidebar" + +export default function Page() { + return ( + + + +
    + + + + + + Build Your Application + + + + Data Fetching + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + ) +} diff --git a/b/8f3d1368f9363de9bde313b08b4a39d34b81a2b682b00dbc8df72b131e0eea42 b/b/8f3d1368f9363de9bde313b08b4a39d34b81a2b682b00dbc8df72b131e0eea42 new file mode 100644 index 0000000000000000000000000000000000000000..68229dcc5d6cd52dd17f3d39617c7e0970162cea --- /dev/null +++ b/b/8f3d1368f9363de9bde313b08b4a39d34b81a2b682b00dbc8df72b131e0eea42 @@ -0,0 +1,29 @@ +// core/keymap.js — the keyboard map as a data table (LibreChat's native set): Alt+N new chat, +// Alt+S toggle sidebar, Alt+W focus the input, Ctrl/⌘+Enter send, Esc stop generation, +// Ctrl/⌘+K model menu. `/` and `@` composer menus live in ui/composer.js (they are caret-local). + +export const BINDINGS = [ + { combo: "Alt+N", action: "newChat", label: "New chat" }, + { combo: "Alt+S", action: "toggleNav", label: "Toggle sidebar" }, + { combo: "Alt+W", action: "focusInput", label: "Focus message box" }, + { combo: "Ctrl+Enter", action: "send", label: "Send message" }, + { combo: "Escape", action: "stop", label: "Stop generating" }, + { combo: "Ctrl+K", action: "modelMenu", label: "Choose model" }, +]; + +export function installKeymap(handlers) { + const onKey = (e) => { + const ctrl = e.ctrlKey || e.metaKey; + const fire = (name) => { const fn = handlers[name]; if (fn) { e.preventDefault(); fn(e); } }; + if (e.altKey && !ctrl && !e.shiftKey) { + if (e.code === "KeyN") return fire("newChat"); + if (e.code === "KeyS") return fire("toggleNav"); + if (e.code === "KeyW") return fire("focusInput"); + } + if (ctrl && e.key === "Enter") return fire("send"); + if (ctrl && !e.shiftKey && e.code === "KeyK") return fire("modelMenu"); + if (e.key === "Escape") { const fn = handlers.stop; if (fn) fn(e); } // don't preventDefault — Esc also closes menus + }; + document.addEventListener("keydown", onKey); + return () => document.removeEventListener("keydown", onKey); +} diff --git a/b/8f3dc2058a90f142868daac8b2bf7dfca4e4318bc6147054fdacc5cdb0a52a08 b/b/8f3dc2058a90f142868daac8b2bf7dfca4e4318bc6147054fdacc5cdb0a52a08 new file mode 100644 index 0000000000000000000000000000000000000000..7a333fc3a29b097f9918e7a5ead51a81073fe800 --- /dev/null +++ b/b/8f3dc2058a90f142868daac8b2bf7dfca4e4318bc6147054fdacc5cdb0a52a08 @@ -0,0 +1,105 @@ +"use client" + +import { TrendingUp } from "lucide-react" +import { CartesianGrid, LabelList, Line, LineChart, XAxis } from "recharts" + +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + ChartContainer, + ChartTooltip, + ChartTooltipContent, + type ChartConfig, +} from "@/registry/new-york-v4/ui/chart" + +export const description = "A line chart with a label" + +const chartData = [ + { month: "January", desktop: 186, mobile: 80 }, + { month: "February", desktop: 305, mobile: 200 }, + { month: "March", desktop: 237, mobile: 120 }, + { month: "April", desktop: 73, mobile: 190 }, + { month: "May", desktop: 209, mobile: 130 }, + { month: "June", desktop: 214, mobile: 140 }, +] + +const chartConfig = { + desktop: { + label: "Desktop", + color: "var(--chart-1)", + }, + mobile: { + label: "Mobile", + color: "var(--chart-2)", + }, +} satisfies ChartConfig + +export function ChartLineLabel() { + return ( + + + Line Chart - Label + January - June 2024 + + + + + + value.slice(0, 3)} + /> + } + /> + + + + + + + +
    + Trending up by 5.2% this month +
    +
    + Showing total visitors for the last 6 months +
    +
    +
    + ) +} diff --git a/b/8f47d0bfc0ad05eddf070e4628ff4b7f07a9fda78d17386059e4b74b32c145f3 b/b/8f47d0bfc0ad05eddf070e4628ff4b7f07a9fda78d17386059e4b74b32c145f3 new file mode 100644 index 0000000000000000000000000000000000000000..2cf62d10a569a83bb9f37ad906ef6403f16171ca --- /dev/null +++ b/b/8f47d0bfc0ad05eddf070e4628ff4b7f07a9fda78d17386059e4b74b32c145f3 @@ -0,0 +1,149 @@ +// holo-q-pack-provider.mjs — the consumer seam: open the unified q-models pack ONCE per page and hand each faculty its +// model view from it, fail-soft to the faculty's own standalone .holo when the pack isn't reachable. This is what +// voice.js / the ear + brain loaders call instead of fetching a per-model .holo: one open, one warm OPFS store, one +// address; pack.model(id) is openHoloStream-shaped so the loaders take it unchanged. +// +// getQPack({ packSpec, fetchImpl }) → the opened pack (memoized; concurrent callers share one open) +// packModelFor(spec, { packSpec, fetchImpl }) → spec's model view FROM the pack, or null (caller uses standalone) +// +// spec is a faculty spec from holo-q-faculty-models.specFor()/resolveFacultyModel — it carries spec.pack={url,release, +// model} when the model lives in the pack. packSpec is that module's exported packSpec (one file + shards manifest). +import { openQPack } from "./holo-pack-shards.mjs"; + +let _pack = null, _opening = null, _key = null; + +const baseOf = (url) => (url ? url.replace(/[^/]*$/, "") : undefined); + +// open the pack once. Prefers the monolithic file (dev/FORGE-local), falls back to release shards. Memoized by the +// pack's address so every faculty on the page shares ONE open + OPFS warm. Concurrent callers await the same promise. +export async function getQPack({ packSpec, fetchImpl } = {}) { + if (!packSpec) throw new Error("getQPack needs packSpec"); + const key = (packSpec.url || "") + "|" + (packSpec.partsManifest || ""); + if (_pack && _key === key) return _pack; + if (_opening && _key === key) return _opening; + _key = key; + _opening = openQPack({ monolithicUrl: packSpec.url, partsUrl: packSpec.partsManifest, base: baseOf(packSpec.release), fetchImpl }) + .then((r) => { _pack = r.pack; _pack.__via = r.via; _opening = null; return _pack; }) + .catch((e) => { if (_key === key) { _opening = null; _key = null; } throw e; }); + return _opening; +} + +export function resetQPack() { _pack = null; _opening = null; _key = null; } + +// hand a faculty its model view FROM the pack, or null. null ⇒ the model isn't in the pack OR the pack is unreachable +// ⇒ the caller falls back to spec.url/spec.release (the standalone .holo) — never a hard failure. +export async function packModelFor(spec, { packSpec, fetchImpl } = {}) { + try { + if (!spec || !spec.pack) return null; + const pack = await getQPack({ packSpec, fetchImpl }); + return pack.model(spec.pack.model); + } catch { return null; } +} + +// ── ear adapter ────────────────────────────────────────────────────────────────────────────────── +// createWhisperEar (parakeet) loads its encoder + joint via deps.openStream(url) and its small loose files (rescale +// json/bin, vocab, nemo) via deps.fetchBytes(url). This maps those URLs — by basename — onto the unified pack so the +// REAL ear streams entirely from the one file, with the standalone url/release as fallback. ZERO ear changes: +// createWhisperEar(cfg, makePackEarDeps({ packSpec })) ← that's the whole flip. +const EAR_BYNAME = { + "parakeet-tdt-0.6b-v2-stream.holo": { kind: "stream", model: "parakeet-encoder" }, + "parakeet-tdt-0.6b-v2-joint.holo": { kind: "stream", model: "parakeet-joint" }, + "parakeet-encoder-rescale.json": { kind: "file", model: "parakeet-encoder", file: "parakeet-encoder-rescale.json" }, + "parakeet-encoder-rescale.bin": { kind: "file", model: "parakeet-encoder", file: "parakeet-encoder-rescale.bin" }, + "parakeet-vocab.txt": { kind: "file", model: "parakeet-encoder", file: "parakeet-vocab.txt" }, + "parakeet-nemo128.onnx": { kind: "file", model: "parakeet-encoder", file: "parakeet-nemo128.onnx" }, +}; +const basename = (u) => String(u).split(/[/?#]/).filter(Boolean).pop(); + +// ── universal faculty→pack map ─────────────────────────────────────────────────────────────────── +// every model's standalone .holo basename → how it's served from the pack: "stream" (openHoloStream-shaped loaders: +// moonshine/parakeet ears), "gguf" (the GGUF brain via ggufStreamFromPackModel), "files" (file-bundle loaders served +// through openHoloFiles: turn-detector, kokoro). So ONE provider backs every loader in the voice loop. +const PACK_BYNAME = { + "moonshine-tiny-int8.holo": { kind: "stream", model: "moonshine-tiny-int8" }, + "moonshine-tiny-f16.holo": { kind: "stream", model: "moonshine-tiny-f16" }, + "parakeet-tdt-0.6b-v2-stream.holo": { kind: "stream", model: "parakeet-encoder" }, + "parakeet-tdt-0.6b-v2-joint.holo": { kind: "stream", model: "parakeet-joint" }, + "qwen2.5-0.5b-instruct.holo": { kind: "gguf", model: "qwen2.5-0.5b" }, + "qwen2.5-1.5b-instruct.holo": { kind: "gguf", model: "qwen2.5-1.5b" }, + "qwen2.5-coder-3b-instruct.holo": { kind: "gguf", model: "qwen-coder-3b" }, + "turn-detector.holo": { kind: "files", model: "turn-detector" }, + "kokoro-82m.holo": { kind: "files", model: "kokoro-82m" }, +}; + +// reconstruct streamHolo's view (getF32/getQuant/getMelFilters/meta.config) from a pack model view — the moonshine ear +// reads these, not the bare getBody. Reuses holo-whisper-stream's buildHoloViews over the view's L5 getBody, so decode +// is byte-identical to the standalone .holo. The view carries the full meta (config + order with dims/type) from the pack. +export async function streamHoloFromPackModel(view) { + await view.ensureHeader?.(); // split-manifest pack: fetch the lazy header body before decode + const { buildHoloViews } = await import("./holo-whisper-stream.mjs"); + const v = buildHoloViews(view.meta, view.headerBytes, (h) => view.getBody(h)); + return Object.assign({}, v, { dir: view.dir, stats: { ranges: 0, bytesFetched: 0, verifies: 0, opfsHits: 0, fromPack: true } }); +} + +// an openStream(url,opts) for the moonshine ear (whisper-shaped): pack view (full getF32/getQuant) for a known +// basename, else fallback to streamHolo. (Parakeet uses makePackEarDeps — the raw openHoloStream view — not this.) +export function makePackOpenStream({ packSpec, fetchImpl, openStream, onSource } = {}) { + return async (url, o) => { + const e = PACK_BYNAME[basename(url)]; + if (e && e.kind === "stream") { try { const pack = await getQPack({ packSpec, fetchImpl }); const v = await streamHoloFromPackModel(pack.model(e.model)); try { onSource && onSource("stream", basename(url), "pack"); } catch {} return v; } catch {} } + try { onSource && onSource("stream", basename(url), "standalone"); } catch {} + if (openStream) return openStream(url, o); + const { streamHolo } = await import("./holo-whisper-stream.mjs"); return streamHolo(url, o); + }; +} + +// an openFiles(url,opts) for file-bundle loaders (serveModelFromHolo's `openFiles`): a files-view backed by the pack +// model's fileBody, else fallback to openHoloFiles. modelId pins which pack model answers (turn-detector / kokoro). +export function makePackOpenFiles(modelId, { packSpec, fetchImpl, openFiles, onSource } = {}) { + return async (url, o) => { + try { const pack = await getQPack({ packSpec, fetchImpl }); const m = pack.model(modelId); + // a file-bundle's named entries land in `order` (the forge stores them there); `files` holds only extra loose + // files. Expose whichever carries the names so serveModelFromHolo can enumerate; getFile resolves across both. + const names = (m.files && m.files.length) ? m.files : m.order; + try { onSource && onSource("files", basename(url), "pack"); } catch {} + return { meta: { files: names }, files: names, getFile: (name) => m.fileBody(name), bodyByKappa: (k) => m.getBody(k), objectURL: async (name, mime = "application/octet-stream") => URL.createObjectURL(new Blob([await m.fileBody(name)], { type: mime })) }; + } catch {} + try { onSource && onSource("files", basename(url), "standalone"); } catch {} + if (openFiles) return openFiles(url, o); + const { openHoloFiles } = await import("./holo-files.mjs"); return openHoloFiles(url, o); + }; +} + +// resolve a model .holo URL → its pack entry {kind,model} (or null if not in the pack) — lets a loader decide whether +// to take a pack adapter for the model it was handed by URL (the brain/turn/tts call sites). +export function packEntryForUrl(url) { return PACK_BYNAME[basename(url)] || null; } + +// a ()→{plan,store,headerBytes,…} for the GGUF brain (createHoloBrain's openGgufStream): the unified-pack qwen, built +// via ggufStreamFromPackModel. Falls back to null so the brain uses its own makeBrainRange+openGgufHoloStream path. +export function makePackGgufStream(modelId, { packSpec, fetchImpl, onSource } = {}) { + return async ({ persist = null } = {}) => { + try { const pack = await getQPack({ packSpec, fetchImpl }); const { ggufStreamFromPackModel } = await import("../gguf-forge-kstream.mjs"); + const view = pack.model(modelId); await view.ensureHeader?.(); // split-manifest: fetch the lazy GGUF header before planFrom + try { onSource && onSource("gguf", modelId, "pack"); } catch {} + return ggufStreamFromPackModel(view, { persist }); + } catch { try { onSource && onSource("gguf", modelId, "standalone"); } catch {} return null; } + }; +} + +export function makePackEarDeps({ packSpec, fetchImpl, openStream, fetchBytes, onSource } = {}) { + const note = (kind, name, src) => { try { onSource && onSource(kind, name, src); } catch {} }; + return { + openStream: async (url, o) => { + const e = EAR_BYNAME[basename(url)]; + if (e && e.kind === "stream") { try { const pack = await getQPack({ packSpec, fetchImpl }); const v = pack.model(e.model); await v.ensureHeader?.(); note("stream", basename(url), "pack"); return v; } catch {} } + note("stream", basename(url), "standalone"); + if (openStream) return openStream(url, o); + const { streamHolo } = await import("./holo-whisper-stream.mjs"); return streamHolo(url, o); + }, + fetchBytes: async (url) => { + const e = EAR_BYNAME[basename(url)]; + if (e && e.kind === "file") { try { const pack = await getQPack({ packSpec, fetchImpl }); const b = await pack.model(e.model).fileBody(e.file); note("file", basename(url), "pack"); return b; } catch {} } + note("file", basename(url), "standalone"); + if (fetchBytes) return fetchBytes(url); + const r = await fetch(url); if (!r.ok) throw new Error("fetch " + url + " " + r.status); return new Uint8Array(await r.arrayBuffer()); + }, + }; +} + +export default { getQPack, packModelFor, resetQPack, makePackEarDeps }; diff --git a/b/8f5303046438e79ff60d649a11216e799f250929aacf0ba06e1a24e106b70b2c b/b/8f5303046438e79ff60d649a11216e799f250929aacf0ba06e1a24e106b70b2c new file mode 100644 index 0000000000000000000000000000000000000000..054786173f664c01d18a4d876cc123ca7602ef00 --- /dev/null +++ b/b/8f5303046438e79ff60d649a11216e799f250929aacf0ba06e1a24e106b70b2c @@ -0,0 +1 @@ +import{useMemo as Io}from"react";function fe(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t{let o=new Array(e.length+t.length);for(let r=0;r({classGroupId:e,validator:t}),ze=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),Q="-",he=[],Fe="arbitrary..",je=e=>{let t=Ue(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Be(l);let u=l.split(Q),b=u[0]===""&&u.length>1?1:0;return Ce(u,b,t)},getConflictingClassGroupIds:(l,u)=>{if(u){let b=r[l],m=o[l];return b?m?Ee(m,b):b:m||he}return o[l]||he}}},Ce=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;let a=e[t],d=o.nextPart.get(a);if(d){let m=Ce(e,t+1,d);if(m)return m}let l=o.validators;if(l===null)return;let u=t===0?e.join(Q):e.slice(t).join(Q),b=l.length;for(let m=0;me.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),o=t.indexOf(":"),r=t.slice(0,o);return r?Fe+r:void 0})(),Ue=e=>{let{theme:t,classGroups:o}=e;return De(o,t)},De=(e,t)=>{let o=ze();for(let r in e){let a=e[r];ne(a,o,r,t)}return o},ne=(e,t,o,r)=>{let a=e.length;for(let d=0;d{if(typeof e=="string"){Ye(e,t,o);return}if(typeof e=="function"){Xe(e,t,o,r);return}qe(e,t,o,r)},Ye=(e,t,o)=>{let r=e===""?t:Ge(t,e);r.classGroupId=o},Xe=(e,t,o,r)=>{if(Je(e)){ne(e(r),t,o,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Oe(o,e))},qe=(e,t,o,r)=>{let a=Object.entries(e),d=a.length;for(let l=0;l{let o=e,r=t.split(Q),a=r.length;for(let d=0;d"isThemeGetter"in e&&e.isThemeGetter===!0,Qe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),r=Object.create(null),a=(d,l)=>{o[d]=l,t++,t>e&&(t=0,r=o,o=Object.create(null))};return{get(d){let l=o[d];if(l!==void 0)return l;if((l=r[d])!==void 0)return a(d,l),l},set(d,l){d in o?o[d]=l:a(d,l)}}},se="!",ke=":",Ke=[],xe=(e,t,o,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:r,isExternal:a}),Ze=e=>{let{prefix:t,experimentalParseClassName:o}=e,r=a=>{let d=[],l=0,u=0,b=0,m,g=a.length;for(let y=0;yb?m-b:void 0;return xe(d,C,P,L)};if(t){let a=t+ke,d=r;r=l=>l.startsWith(a)?d(l.slice(a.length)):xe(Ke,!1,l,void 0,!0)}if(o){let a=r;r=d=>o({className:d,parseClassName:a})}return r},eo=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((o,r)=>{t.set(o,1e6+r)}),o=>{let r=[],a=[];for(let d=0;d0&&(a.sort(),r.push(...a),a=[]),r.push(l)):a.push(l)}return a.length>0&&(a.sort(),r.push(...a)),r}},oo=e=>({cache:Qe(e.cacheSize),parseClassName:Ze(e),sortModifiers:eo(e),postfixLookupClassGroupIds:ro(e),...je(e)}),ro=e=>{let t=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let r=0;r{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:d,postfixLookupClassGroupIds:l}=t,u=[],b=e.trim().split(to),m="";for(let g=b.length-1;g>=0;g-=1){let h=b[g],{isExternal:P,modifiers:C,hasImportantModifier:L,baseClassName:y,maybePostfixModifierPosition:G}=o(h);if(P){m=h+(m.length>0?" "+m:m);continue}let _=!!G,v;if(_){let M=y.substring(0,G);v=r(M);let i=v&&l[v]?r(y):void 0;i&&i!==v&&(v=i,_=!1)}else v=r(y);if(!v){if(!_){m=h+(m.length>0?" "+m:m);continue}if(v=r(y),!v){m=h+(m.length>0?" "+m:m);continue}_=!1}let j=C.length===0?"":C.length===1?C[0]:d(C).join(":"),W=L?j+se:j,E=W+v;if(u.indexOf(E)>-1)continue;u.push(E);let O=a(v,_);for(let M=0;M0?" "+m:m)}return m},no=(...e)=>{let t=0,o,r,a="";for(;t{if(typeof e=="string")return e;let t,o="";for(let r=0;r{let o,r,a,d,l=b=>{let m=t.reduce((g,h)=>h(g),e());return o=oo(m),r=o.cache.get,a=o.cache.set,d=u,u(b)},u=b=>{let m=r(b);if(m)return m;let g=so(b,o);return a(b,g),g};return d=l,(...b)=>d(no(...b))},io=[],f=e=>{let t=o=>o[e]||io;return t.isThemeGetter=!0,t},Ae=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,co=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,po=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>lo.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),A=e=>!!e&&Number.isInteger(Number(e)),te=e=>e.endsWith("%")&&p(e.slice(0,-1)),I=e=>co.test(e),Me=()=>!0,fo=e=>mo.test(e)&&!po.test(e),ae=()=>!1,go=e=>uo.test(e),ho=e=>bo.test(e),ko=e=>!s(e)&&!n(e),xo=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),wo=e=>T(e,Te,ae),s=e=>Ae.test(e),N=e=>T(e,Le,fo),we=e=>T(e,Po,p),yo=e=>T(e,$e,Me),vo=e=>T(e,_e,ae),ye=e=>T(e,Ie,ae),zo=e=>T(e,Re,ho),q=e=>T(e,Ne,go),n=e=>Pe.test(e),B=e=>V(e,Le),Co=e=>V(e,_e),ve=e=>V(e,Ie),Go=e=>V(e,Te),So=e=>V(e,Re),J=e=>V(e,Ne,!0),Ao=e=>V(e,$e,!0),T=(e,t,o)=>{let r=Ae.exec(e);return r?r[1]?t(r[1]):o(r[2]):!1},V=(e,t,o=!1)=>{let r=Pe.exec(e);return r?r[1]?t(r[1]):o:!1},Ie=e=>e==="position"||e==="percentage",Re=e=>e==="image"||e==="url",Te=e=>e==="length"||e==="size"||e==="bg-size",Le=e=>e==="length",Po=e=>e==="number",_e=e=>e==="family-name",$e=e=>e==="number"||e==="weight",Ne=e=>e==="shadow";var Mo=()=>{let e=f("color"),t=f("font"),o=f("text"),r=f("font-weight"),a=f("tracking"),d=f("leading"),l=f("breakpoint"),u=f("container"),b=f("spacing"),m=f("radius"),g=f("shadow"),h=f("inset-shadow"),P=f("text-shadow"),C=f("drop-shadow"),L=f("blur"),y=f("perspective"),G=f("aspect"),_=f("ease"),v=f("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...W(),n,s],O=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],i=()=>[n,s,b],z=()=>[R,"full","auto",...i()],ie=()=>[A,"none","subgrid",n,s],le=()=>["auto",{span:["full",A,n,s]},A,n,s],U=()=>[A,"auto",n,s],ce=()=>["auto","min","max","fr",n,s],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],S=()=>["auto",...i()],$=()=>[R,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...i()],Z=()=>[R,"screen","full","dvw","lvw","svw","min","max","fit",...i()],ee=()=>[R,"screen","full","lh","dvh","lvh","svh","min","max","fit",...i()],c=()=>[e,n,s],de=()=>[...W(),ve,ye,{position:[n,s]}],me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],pe=()=>["auto","cover","contain",Go,wo,{size:[n,s]}],oe=()=>[te,B,N],x=()=>["","none","full",m,n,s],w=()=>["",p,B,N],D=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>[p,te,ve,ye],be=()=>["","none",L,n,s],H=()=>["none",p,n,s],Y=()=>["none",p,n,s],re=()=>[p,n,s],X=()=>[R,"full",...i()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[I],breakpoint:[I],color:[Me],container:[I],"drop-shadow":[I],ease:["in","out","in-out"],font:[ko],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[I],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[I],shadow:[I],spacing:["px",p],text:[I],"text-shadow":[I],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",R,s,n,G]}],container:["container"],"container-type":[{"@container":["","normal","size",n,s]}],"container-named":[xo],columns:[{columns:[p,s,n,u]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[A,"auto",n,s]}],basis:[{basis:[R,"full","auto",u,...i()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,R,"auto","initial","none",s]}],grow:[{grow:["",p,n,s]}],shrink:[{shrink:["",p,n,s]}],order:[{order:[A,"first","last","none",n,s]}],"grid-cols":[{"grid-cols":ie()}],"col-start-end":[{col:le()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":ie()}],"row-start-end":[{row:le()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:i()}],"gap-x":[{"gap-x":i()}],"gap-y":[{"gap-y":i()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:i()}],px:[{px:i()}],py:[{py:i()}],ps:[{ps:i()}],pe:[{pe:i()}],pbs:[{pbs:i()}],pbe:[{pbe:i()}],pt:[{pt:i()}],pr:[{pr:i()}],pb:[{pb:i()}],pl:[{pl:i()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mbs:[{mbs:S()}],mbe:[{mbe:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":i()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":i()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...ee()]}],"min-block-size":[{"min-block":["auto",...ee()]}],"max-block-size":[{"max-block":["none",...ee()]}],w:[{w:[u,"screen",...$()]}],"min-w":[{"min-w":[u,"screen","none",...$()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",o,B,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ao,yo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",te,s]}],"font-family":[{font:[Co,vo,t]}],"font-features":[{"font-features":[s]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,n,s]}],"line-clamp":[{"line-clamp":[p,"none",n,we]}],leading:[{leading:[d,...i()]}],"list-image":[{"list-image":["none",n,s]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",n,s]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",n,N]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[p,"auto",n,s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:i()}],"tab-size":[{tab:[A,n,s]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",n,s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",n,s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:me()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},A,n,s],radial:["",n,s],conic:[A,n,s]},So,zo]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:w()}],"border-w-x":[{"border-x":w()}],"border-w-y":[{"border-y":w()}],"border-w-s":[{"border-s":w()}],"border-w-e":[{"border-e":w()}],"border-w-bs":[{"border-bs":w()}],"border-w-be":[{"border-be":w()}],"border-w-t":[{"border-t":w()}],"border-w-r":[{"border-r":w()}],"border-w-b":[{"border-b":w()}],"border-w-l":[{"border-l":w()}],"divide-x":[{"divide-x":w()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":w()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...D(),"hidden","none"]}],"divide-style":[{divide:[...D(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-bs":[{"border-bs":c()}],"border-color-be":[{"border-be":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...D(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,n,s]}],"outline-w":[{outline:["",p,B,N]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",g,J,q]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",h,J,q]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:w()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[p,N]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":w()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",P,J,q]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[p,n,s]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":k()}],"mask-image-linear-to-pos":[{"mask-linear-to":k()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":k()}],"mask-image-t-to-pos":[{"mask-t-to":k()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":k()}],"mask-image-r-to-pos":[{"mask-r-to":k()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":k()}],"mask-image-b-to-pos":[{"mask-b-to":k()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":k()}],"mask-image-l-to-pos":[{"mask-l-to":k()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":k()}],"mask-image-x-to-pos":[{"mask-x-to":k()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":k()}],"mask-image-y-to-pos":[{"mask-y-to":k()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[n,s]}],"mask-image-radial-from-pos":[{"mask-radial-from":k()}],"mask-image-radial-to-pos":[{"mask-radial-to":k()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":W()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":k()}],"mask-image-conic-to-pos":[{"mask-conic-to":k()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:me()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",n,s]}],filter:[{filter:["","none",n,s]}],blur:[{blur:be()}],brightness:[{brightness:[p,n,s]}],contrast:[{contrast:[p,n,s]}],"drop-shadow":[{"drop-shadow":["","none",C,J,q]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",p,n,s]}],"hue-rotate":[{"hue-rotate":[p,n,s]}],invert:[{invert:["",p,n,s]}],saturate:[{saturate:[p,n,s]}],sepia:[{sepia:["",p,n,s]}],"backdrop-filter":[{"backdrop-filter":["","none",n,s]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[p,n,s]}],"backdrop-contrast":[{"backdrop-contrast":[p,n,s]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,n,s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,n,s]}],"backdrop-invert":[{"backdrop-invert":["",p,n,s]}],"backdrop-opacity":[{"backdrop-opacity":[p,n,s]}],"backdrop-saturate":[{"backdrop-saturate":[p,n,s]}],"backdrop-sepia":[{"backdrop-sepia":["",p,n,s]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":i()}],"border-spacing-x":[{"border-spacing-x":i()}],"border-spacing-y":[{"border-spacing-y":i()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",n,s]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",n,s]}],ease:[{ease:["linear","initial",_,n,s]}],delay:[{delay:[p,n,s]}],animate:[{animate:["none",v,n,s]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,n,s]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:H()}],"rotate-x":[{"rotate-x":H()}],"rotate-y":[{"rotate-y":H()}],"rotate-z":[{"rotate-z":H()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[n,s,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:X()}],"translate-x":[{"translate-x":X()}],"translate-y":[{"translate-y":X()}],"translate-z":[{"translate-z":X()}],"translate-none":["translate-none"],zoom:[{zoom:[A,n,s]}],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",n,s]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":c()}],"scrollbar-track-color":[{"scrollbar-track":c()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":i()}],"scroll-mx":[{"scroll-mx":i()}],"scroll-my":[{"scroll-my":i()}],"scroll-ms":[{"scroll-ms":i()}],"scroll-me":[{"scroll-me":i()}],"scroll-mbs":[{"scroll-mbs":i()}],"scroll-mbe":[{"scroll-mbe":i()}],"scroll-mt":[{"scroll-mt":i()}],"scroll-mr":[{"scroll-mr":i()}],"scroll-mb":[{"scroll-mb":i()}],"scroll-ml":[{"scroll-ml":i()}],"scroll-p":[{"scroll-p":i()}],"scroll-px":[{"scroll-px":i()}],"scroll-py":[{"scroll-py":i()}],"scroll-ps":[{"scroll-ps":i()}],"scroll-pe":[{"scroll-pe":i()}],"scroll-pbs":[{"scroll-pbs":i()}],"scroll-pbe":[{"scroll-pbe":i()}],"scroll-pt":[{"scroll-pt":i()}],"scroll-pr":[{"scroll-pr":i()}],"scroll-pb":[{"scroll-pb":i()}],"scroll-pl":[{"scroll-pl":i()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",n,s]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[p,B,N,we]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Ve=ao(Mo);function We(...e){return Ve(ge(e))}import{jsx as To}from"react/jsx-runtime";function Ro(e,t){let o=e.replace("#",""),r=a=>Number.parseInt(a,16);return/^[0-9A-Fa-f]{6}$/.test(o)?`rgba(${r(o.slice(0,2))},${r(o.slice(2,4))},${r(o.slice(4,6))},${t})`:/^[0-9A-Fa-f]{3}$/.test(o)?`rgba(${r(o[0]+o[0])},${r(o[1]+o[1])},${r(o[2]+o[2])},${t})`:e}function Oo({background:e="#000",children:t,color:o="#ffffff",opacity:r=.5,angle:a=-45,size:d=250,duration:l=650,playOnce:u=!1,className:b,style:m,width:g,height:h,...P}){let C=Io(()=>Ro(o,r),[o,r]),L={"--gh-angle":`${a}deg`,"--gh-duration":`${l}ms`,"--gh-size":`${d}%`,"--gh-rgba":C,background:e,...m,...g!==void 0?{width:g}:{},...h!==void 0?{height:h}:{}};return To("div",{...P,className:We("relative grid size-fit cursor-pointer place-items-center overflow-hidden bg-transparent","before:pointer-events-none before:absolute before:inset-0 before:z-10 before:bg-no-repeat before:content-['']","before:[background-image:linear-gradient(var(--gh-angle),transparent_60%,var(--gh-rgba)_70%,transparent,transparent_100%)]","before:[background-size:var(--gh-size)_var(--gh-size),100%_100%]","before:[background-position:-100%_-100%,0_0]",!u&&"before:transition-[background-position] before:duration-[var(--gh-duration)] before:ease-in-out",u&&"before:transition-none hover:before:transition-[background-position] hover:before:duration-[var(--gh-duration)]","hover:before:[background-position:100%_100%,0_0]",b),style:L,children:t})}export{Oo as GlareHover}; diff --git a/b/8f5e48f49b60d213b1297d39eca5337a730723a4356338ceac0fc3949849a810 b/b/8f5e48f49b60d213b1297d39eca5337a730723a4356338ceac0fc3949849a810 new file mode 100644 index 0000000000000000000000000000000000000000..a1b2b7e9fa8b94308da9cd362d4183c792972dfe --- /dev/null +++ b/b/8f5e48f49b60d213b1297d39eca5337a730723a4356338ceac0fc3949849a810 @@ -0,0 +1,57 @@ +import { PlusIcon } from "lucide-react" + +import { + Avatar, + AvatarFallback, + AvatarImage, +} from "@/registry/new-york-v4/ui/avatar" +import { Button } from "@/registry/new-york-v4/ui/button" +import { + Empty, + EmptyContent, + EmptyDescription, + EmptyHeader, + EmptyMedia, + EmptyTitle, +} from "@/registry/new-york-v4/ui/empty" + +export default function EmptyAvatarGroup() { + return ( + + + +
    + + + CN + + + + LR + + + + ER + +
    +
    + No Team Members + + Invite your team to collaborate on this project. + +
    + + + +
    + ) +} diff --git a/b/8f8a20b8c82db1737c200232e9a04a8f706172be9a41daa7b332445d28ee1dfd b/b/8f8a20b8c82db1737c200232e9a04a8f706172be9a41daa7b332445d28ee1dfd new file mode 100644 index 0000000000000000000000000000000000000000..1431cde60d458195a348d960d0b73b8c985e46bc --- /dev/null +++ b/b/8f8a20b8c82db1737c200232e9a04a8f706172be9a41daa7b332445d28ee1dfd @@ -0,0 +1,555 @@ +# 554 initializers · 81.2M params · 324.6 MB raw +f32 [178,128] encoder.bert.embeddings.word_embeddings.weight +f32 [178,512] encoder.text_encoder.embedding.weight +i64 [1] /encoder/Constant_3_output_0 +i64 [1] /encoder/Constant_4_output_0 +i64 [1] /encoder/Constant_2_output_0 +i64 [1] /decoder/Constant_1_output_0 +i64 [] /encoder/bert/Constant_1_output_0 +f32 [1024,128] encoder.predictor.text_encoder.lstms.1.fc.weight +f32 [1024] encoder.predictor.text_encoder.lstms.1.fc.bias +f32 [1024,128] encoder.predictor.text_encoder.lstms.3.fc.weight +f32 [1024] encoder.predictor.text_encoder.lstms.3.fc.bias +f32 [1024,128] encoder.predictor.text_encoder.lstms.5.fc.weight +f32 [1024] encoder.predictor.text_encoder.lstms.5.fc.bias +f32 [1024,128] encoder.predictor.F0.0.norm1.fc.weight +f32 [1024] encoder.predictor.F0.0.norm1.fc.bias +f32 [1024,128] encoder.predictor.F0.0.norm2.fc.weight +f32 [1024] encoder.predictor.F0.0.norm2.fc.bias +f32 [1024,128] encoder.predictor.F0.1.norm1.fc.weight +f32 [1024] encoder.predictor.F0.1.norm1.fc.bias +f32 [512,128] encoder.predictor.F0.1.norm2.fc.weight +f32 [512] encoder.predictor.F0.1.norm2.fc.bias +f32 [512,128] encoder.predictor.F0.2.norm1.fc.weight +f32 [512] encoder.predictor.F0.2.norm1.fc.bias +f32 [512,128] encoder.predictor.F0.2.norm2.fc.weight +f32 [512] encoder.predictor.F0.2.norm2.fc.bias +f32 [1024,128] encoder.predictor.N.0.norm1.fc.weight +f32 [1024] encoder.predictor.N.0.norm1.fc.bias +f32 [1024,128] encoder.predictor.N.0.norm2.fc.weight +f32 [1024] encoder.predictor.N.0.norm2.fc.bias +f32 [1024,128] encoder.predictor.N.1.norm1.fc.weight +f32 [1024] encoder.predictor.N.1.norm1.fc.bias +f32 [512,128] encoder.predictor.N.1.norm2.fc.weight +f32 [512] encoder.predictor.N.1.norm2.fc.bias +f32 [512,128] encoder.predictor.N.2.norm1.fc.weight +f32 [512] encoder.predictor.N.2.norm1.fc.bias +f32 [512,128] encoder.predictor.N.2.norm2.fc.weight +f32 [512] encoder.predictor.N.2.norm2.fc.bias +f32 [1028,128] decoder.decoder.encode.norm1.fc.weight +f32 [1028] decoder.decoder.encode.norm1.fc.bias +f32 [2048,128] decoder.decoder.encode.norm2.fc.weight +f32 [2048] decoder.decoder.encode.norm2.fc.bias +f32 [2180,128] decoder.decoder.decode.0.norm1.fc.weight +f32 [2180] decoder.decoder.decode.0.norm1.fc.bias +f32 [2048,128] decoder.decoder.decode.0.norm2.fc.weight +f32 [2048] decoder.decoder.decode.0.norm2.fc.bias +f32 [2180,128] decoder.decoder.decode.1.norm1.fc.weight +f32 [2180] decoder.decoder.decode.1.norm1.fc.bias +f32 [2048,128] decoder.decoder.decode.1.norm2.fc.weight +f32 [2048] decoder.decoder.decode.1.norm2.fc.bias +f32 [2180,128] decoder.decoder.decode.2.norm1.fc.weight +f32 [2180] decoder.decoder.decode.2.norm1.fc.bias +f32 [2048,128] decoder.decoder.decode.2.norm2.fc.weight +f32 [2048] decoder.decoder.decode.2.norm2.fc.bias +f32 [2180,128] decoder.decoder.decode.3.norm1.fc.weight +f32 [2180] decoder.decoder.decode.3.norm1.fc.bias +f32 [1024,128] decoder.decoder.decode.3.norm2.fc.weight +f32 [1024] decoder.decoder.decode.3.norm2.fc.bias +f32 [512,128] decoder.decoder.generator.noise_res.0.adain1.0.fc.weight +f32 [512] decoder.decoder.generator.noise_res.0.adain1.0.fc.bias +f32 [512,128] decoder.decoder.generator.noise_res.0.adain2.0.fc.weight +f32 [512] decoder.decoder.generator.noise_res.0.adain2.0.fc.bias +f32 [512,128] decoder.decoder.generator.noise_res.0.adain1.1.fc.weight +f32 [512] decoder.decoder.generator.noise_res.0.adain1.1.fc.bias +f32 [512,128] decoder.decoder.generator.noise_res.0.adain2.1.fc.weight +f32 [512] decoder.decoder.generator.noise_res.0.adain2.1.fc.bias +f32 [512,128] decoder.decoder.generator.noise_res.0.adain1.2.fc.weight +f32 [512] decoder.decoder.generator.noise_res.0.adain1.2.fc.bias +f32 [512,128] decoder.decoder.generator.noise_res.0.adain2.2.fc.weight +f32 [512] decoder.decoder.generator.noise_res.0.adain2.2.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.0.adain1.0.fc.weight +f32 [512] decoder.decoder.generator.resblocks.0.adain1.0.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.0.adain2.0.fc.weight +f32 [512] decoder.decoder.generator.resblocks.0.adain2.0.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.0.adain1.1.fc.weight +f32 [512] decoder.decoder.generator.resblocks.0.adain1.1.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.0.adain2.1.fc.weight +f32 [512] decoder.decoder.generator.resblocks.0.adain2.1.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.0.adain1.2.fc.weight +f32 [512] decoder.decoder.generator.resblocks.0.adain1.2.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.0.adain2.2.fc.weight +f32 [512] decoder.decoder.generator.resblocks.0.adain2.2.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.1.adain1.0.fc.weight +f32 [512] decoder.decoder.generator.resblocks.1.adain1.0.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.1.adain2.0.fc.weight +f32 [512] decoder.decoder.generator.resblocks.1.adain2.0.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.1.adain1.1.fc.weight +f32 [512] decoder.decoder.generator.resblocks.1.adain1.1.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.1.adain2.1.fc.weight +f32 [512] decoder.decoder.generator.resblocks.1.adain2.1.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.1.adain1.2.fc.weight +f32 [512] decoder.decoder.generator.resblocks.1.adain1.2.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.1.adain2.2.fc.weight +f32 [512] decoder.decoder.generator.resblocks.1.adain2.2.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.2.adain1.0.fc.weight +f32 [512] decoder.decoder.generator.resblocks.2.adain1.0.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.2.adain2.0.fc.weight +f32 [512] decoder.decoder.generator.resblocks.2.adain2.0.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.2.adain1.1.fc.weight +f32 [512] decoder.decoder.generator.resblocks.2.adain1.1.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.2.adain2.1.fc.weight +f32 [512] decoder.decoder.generator.resblocks.2.adain2.1.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.2.adain1.2.fc.weight +f32 [512] decoder.decoder.generator.resblocks.2.adain1.2.fc.bias +f32 [512,128] decoder.decoder.generator.resblocks.2.adain2.2.fc.weight +f32 [512] decoder.decoder.generator.resblocks.2.adain2.2.fc.bias +f32 [256,128] decoder.decoder.generator.noise_res.1.adain1.0.fc.weight +f32 [256] decoder.decoder.generator.noise_res.1.adain1.0.fc.bias +f32 [256,128] decoder.decoder.generator.noise_res.1.adain2.0.fc.weight +f32 [256] decoder.decoder.generator.noise_res.1.adain2.0.fc.bias +f32 [256,128] decoder.decoder.generator.noise_res.1.adain1.1.fc.weight +f32 [256] decoder.decoder.generator.noise_res.1.adain1.1.fc.bias +f32 [256,128] decoder.decoder.generator.noise_res.1.adain2.1.fc.weight +f32 [256] decoder.decoder.generator.noise_res.1.adain2.1.fc.bias +f32 [256,128] decoder.decoder.generator.noise_res.1.adain1.2.fc.weight +f32 [256] decoder.decoder.generator.noise_res.1.adain1.2.fc.bias +f32 [256,128] decoder.decoder.generator.noise_res.1.adain2.2.fc.weight +f32 [256] decoder.decoder.generator.noise_res.1.adain2.2.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.3.adain1.0.fc.weight +f32 [256] decoder.decoder.generator.resblocks.3.adain1.0.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.3.adain2.0.fc.weight +f32 [256] decoder.decoder.generator.resblocks.3.adain2.0.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.3.adain1.1.fc.weight +f32 [256] decoder.decoder.generator.resblocks.3.adain1.1.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.3.adain2.1.fc.weight +f32 [256] decoder.decoder.generator.resblocks.3.adain2.1.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.3.adain1.2.fc.weight +f32 [256] decoder.decoder.generator.resblocks.3.adain1.2.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.3.adain2.2.fc.weight +f32 [256] decoder.decoder.generator.resblocks.3.adain2.2.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.4.adain1.0.fc.weight +f32 [256] decoder.decoder.generator.resblocks.4.adain1.0.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.4.adain2.0.fc.weight +f32 [256] decoder.decoder.generator.resblocks.4.adain2.0.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.4.adain1.1.fc.weight +f32 [256] decoder.decoder.generator.resblocks.4.adain1.1.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.4.adain2.1.fc.weight +f32 [256] decoder.decoder.generator.resblocks.4.adain2.1.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.4.adain1.2.fc.weight +f32 [256] decoder.decoder.generator.resblocks.4.adain1.2.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.4.adain2.2.fc.weight +f32 [256] decoder.decoder.generator.resblocks.4.adain2.2.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.5.adain1.0.fc.weight +f32 [256] decoder.decoder.generator.resblocks.5.adain1.0.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.5.adain2.0.fc.weight +f32 [256] decoder.decoder.generator.resblocks.5.adain2.0.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.5.adain1.1.fc.weight +f32 [256] decoder.decoder.generator.resblocks.5.adain1.1.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.5.adain2.1.fc.weight +f32 [256] decoder.decoder.generator.resblocks.5.adain2.1.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.5.adain1.2.fc.weight +f32 [256] decoder.decoder.generator.resblocks.5.adain1.2.fc.bias +f32 [256,128] decoder.decoder.generator.resblocks.5.adain2.2.fc.weight +f32 [256] decoder.decoder.generator.resblocks.5.adain2.2.fc.bias +i64 [1] /encoder/predictor/text_encoder/lstms.1/Constant_output_0 +f32 [512,512,5] /encoder/text_encoder/cnn.0/Mul_output_0 +f32 [512] encoder.text_encoder.cnn.0.0.bias +i64 [1] /encoder/bert/Unsqueeze_output_0 +i64 [1,512] onnx::Slice_579 +i64 [1,512] onnx::Slice_603 +i64 [1] /encoder/predictor/text_encoder/lstms.1/Mul_output_0 +i64 [1] /encoder/predictor/text_encoder/lstms.1/Mul_1_output_0 +i64 [1] /encoder/F0.1/norm2/Mul_output_0 +i64 [1] /decoder/decoder/encode/norm1/Mul_output_0 +i64 [1] /decoder/decoder/encode/norm1/Mul_1_output_0 +i64 [1] /decoder/decoder/encode/norm2/Mul_1_output_0 +i64 [1] /decoder/decoder/decode.0/norm1/Mul_output_0 +i64 [1] /decoder/decoder/decode.0/norm1/Mul_1_output_0 +f32 [512,128] encoder.bert.embeddings.position_embeddings.weight +f32 [512] encoder.text_encoder.cnn.0.1.gamma +f32 [512] encoder.text_encoder.cnn.0.1.beta +f32 [] /encoder/F0.0/norm1/Constant_7_output_0 +i64 [2] /encoder/bert/Mul_output_0 +i64 [2] /encoder/bert/Unsqueeze_5_axes +i64 [2] /encoder/bert/ConstantOfShape_1_output_0 +i64 [] /encoder/bert/Constant_10_output_0 +f32 [512,512,5] /encoder/text_encoder/cnn.1/Mul_output_0 +f32 [512] encoder.text_encoder.cnn.1.0.bias +f32 [2,128] encoder.bert.embeddings.token_type_embeddings.weight +f32 [512] encoder.text_encoder.cnn.1.1.gamma +f32 [512] encoder.text_encoder.cnn.1.1.beta +i64 [4] /encoder/bert/Mul_1_output_0 +f32 [128] encoder.bert.embeddings.LayerNorm.weight +f32 [128] encoder.bert.embeddings.LayerNorm.bias +i64 [4] /encoder/bert/ConstantOfShape_2_output_0 +f32 [128,768] onnx::MatMul_6547 +f32 [512,512,5] /encoder/text_encoder/cnn.2/Mul_output_0 +f32 [512] encoder.text_encoder.cnn.2.0.bias +f32 [768] encoder.bert.encoder.embedding_hidden_mapping_in.bias +f32 [] /encoder/bert/Constant_20_output_0 +f32 [768,768] onnx::MatMul_6548 +f32 [768,768] onnx::MatMul_6551 +f32 [768,768] onnx::MatMul_6554 +f32 [512] encoder.text_encoder.cnn.2.1.gamma +f32 [512] encoder.text_encoder.cnn.2.1.beta +f32 [768] encoder.bert.encoder.albert_layer_groups.0.albert_layers.0.attention.query.bias +f32 [768] encoder.bert.encoder.albert_layer_groups.0.albert_layers.0.attention.key.bias +f32 [768] encoder.bert.encoder.albert_layer_groups.0.albert_layers.0.attention.value.bias +f32 [] /encoder/bert/Constant_21_output_0 +i64 [1] /encoder/bert/encoder/albert_layer_groups.0/albert_layers.0/attention/Constant_17_output_0 +f32 [2,1024,512] onnx::LSTM_6930 +f32 [2,1024,256] onnx::LSTM_6931 +f32 [2,2048] onnx::LSTM_6929 +f32 [2,1,256] /encoder/text_encoder/lstm/ConstantOfShape_output_0 +i64 [1] /encoder/bert/encoder/albert_layer_groups.0/albert_layers.0/attention/Constant_4_output_0 +i64 [1] /encoder/bert/encoder/albert_layer_groups.0/albert_layers.0/attention/Constant_5_output_0 +i64 [3] /encoder/text_encoder/lstm/Constant_3_output_0 +i64 [1] /encoder/bert/encoder/albert_layer_groups.0/albert_layers.0/attention/Constant_14_output_0 +f32 [1] /encoder/bert/encoder/albert_layer_groups.0/albert_layers.0/attention/Constant_16_output_0 +f32 [768,768] onnx::MatMul_6558 +f32 [768] encoder.bert.encoder.albert_layer_groups.0.albert_layers.0.attention.dense.bias +f32 [768] encoder.bert.encoder.albert_layer_groups.0.albert_layers.0.attention.LayerNorm.weight +f32 [768] encoder.bert.encoder.albert_layer_groups.0.albert_layers.0.attention.LayerNorm.bias +f32 [768,2048] onnx::MatMul_6559 +f32 [2048] encoder.bert.encoder.albert_layer_groups.0.albert_layers.0.ffn.bias +f32 [] /encoder/bert/encoder/albert_layer_groups.0/albert_layers.0/activation/Constant_output_0 +f32 [] /encoder/bert/encoder/albert_layer_groups.0/albert_layers.0/activation/Constant_1_output_0 +f32 [] /encoder/bert/encoder/albert_layer_groups.0/albert_layers.0/activation/Constant_2_output_0 +f32 [] /encoder/bert/encoder/albert_layer_groups.0/albert_layers.0/activation/Constant_3_output_0 +f32 [2048,768] onnx::MatMul_6560 +f32 [768] encoder.bert.encoder.albert_layer_groups.0.albert_layers.0.ffn_output.bias +f32 [768] encoder.bert.encoder.albert_layer_groups.0.albert_layers.0.full_layer_layer_norm.weight +f32 [768] encoder.bert.encoder.albert_layer_groups.0.albert_layers.0.full_layer_layer_norm.bias +f32 [768,512] onnx::MatMul_6704 +f32 [512] encoder.bert_encoder.bias +i64 [1] /encoder/predictor/text_encoder/Constant_4_output_0 +i64 [3] /encoder/predictor/text_encoder/Mul_output_0 +i64 [3] /encoder/predictor/text_encoder/ConstantOfShape_output_0 +i64 [1] /encoder/predictor/text_encoder/lstms.0/Constant_1_output_0 +f32 [2,1024,640] onnx::LSTM_6749 +f32 [2,1024,256] onnx::LSTM_6750 +f32 [2,2048] onnx::LSTM_6748 +f32 [512] /encoder/predictor/text_encoder/lstms.1/Constant_7_output_0 +f32 [512] /encoder/predictor/text_encoder/lstms.1/Constant_8_output_0 +f32 [2,1024,640] onnx::LSTM_6794 +f32 [2,1024,256] onnx::LSTM_6795 +f32 [2,2048] onnx::LSTM_6793 +f32 [2,1024,640] onnx::LSTM_6839 +f32 [2,1024,256] onnx::LSTM_6840 +f32 [2,2048] onnx::LSTM_6838 +f32 [2,1024,640] onnx::LSTM_6884 +f32 [2,1024,256] onnx::LSTM_6885 +f32 [2,2048] onnx::LSTM_6883 +f32 [512,50] onnx::MatMul_6886 +f32 [50] encoder.predictor.duration_proj.linear_layer.bias +i32 [] /encoder/Constant_7_output_0 +i64 [] /encoder/bert/embeddings/token_type_embeddings/Constant_output_0 +f32 [1] /encoder/Constant_14_output_0 +f32 [64,512,1] /decoder/decoder/asr_res/Mul_output_0 +f32 [64] decoder.decoder.asr_res.0.bias +f32 [2,1024,640] onnx::LSTM_6981 +f32 [2,1024,256] onnx::LSTM_6982 +f32 [2,2048] onnx::LSTM_6980 +f32 [] /encoder/F0.0/norm1/Constant_10_output_0 +f32 [512,512,3] /encoder/F0.0/Mul_output_0 +f32 [512] encoder.predictor.F0.0.conv1.bias +f32 [512,512,3] /encoder/N.0/Mul_output_0 +f32 [512] encoder.predictor.N.0.conv1.bias +f32 [512,512,3] /encoder/F0.0/Mul_1_output_0 +f32 [512] encoder.predictor.F0.0.conv2.bias +f32 [512,512,3] /encoder/N.0/Mul_1_output_0 +f32 [512] encoder.predictor.N.0.conv2.bias +f32 [] /encoder/F0.0/Constant_2_output_0 +f32 [3] /encoder/F0.1/upsample/Constant_output_0 +f32 [256,512,1] /encoder/F0.1/Mul_3_output_0 +f32 [256,512,1] /encoder/N.1/Mul_3_output_0 +f32 [512,1,3] /encoder/F0.1/Mul_output_0 +f32 [512] encoder.predictor.F0.1.pool.bias +f32 [512,1,3] /encoder/N.1/Mul_output_0 +f32 [512] encoder.predictor.N.1.pool.bias +f32 [256,512,3] /encoder/F0.1/Mul_1_output_0 +f32 [256] encoder.predictor.F0.1.conv1.bias +f32 [256,512,3] /encoder/N.1/Mul_1_output_0 +f32 [256] encoder.predictor.N.1.conv1.bias +f32 [256,256,3] /encoder/F0.1/Mul_2_output_0 +f32 [256] encoder.predictor.F0.1.conv2.bias +f32 [256,256,3] /encoder/N.1/Mul_2_output_0 +f32 [256] encoder.predictor.N.1.conv2.bias +f32 [256,256,3] /encoder/F0.2/Mul_output_0 +f32 [256] encoder.predictor.F0.2.conv1.bias +f32 [256,256,3] /encoder/N.2/Mul_output_0 +f32 [256] encoder.predictor.N.2.conv1.bias +f32 [256,256,3] /encoder/F0.2/Mul_1_output_0 +f32 [256] encoder.predictor.F0.2.conv2.bias +f32 [256,256,3] /encoder/N.2/Mul_1_output_0 +f32 [256] encoder.predictor.N.2.conv2.bias +f32 [1,256,1] encoder.predictor.F0_proj.weight +f32 [1] encoder.predictor.F0_proj.bias +f32 [1,256,1] encoder.predictor.N_proj.weight +f32 [1] encoder.predictor.N_proj.bias +i64 [2] /encoder/Constant_20_output_0 +f32 [1,1,3] /decoder/decoder/Mul_output_0 +f32 [1] decoder.decoder.F0_conv.bias +f32 [1,1,3] /decoder/decoder/Mul_1_output_0 +f32 [1] decoder.decoder.N_conv.bias +f32 [3] /decoder/decoder/generator/f0_upsamp/Constant_output_0 +f32 [1024,514,1] /decoder/decoder/encode/Mul_2_output_0 +f32 [1,1,9] /decoder/decoder/generator/m_source/l_sin_gen/Constant_output_0 +f32 [] /decoder/decoder/generator/m_source/l_sin_gen/Constant_11_output_0 +f32 [] /decoder/decoder/generator/m_source/l_sin_gen/Constant_1_output_0 +f32 [3] /decoder/decoder/generator/m_source/l_sin_gen/Constant_4_output_0 +i32 [] /decoder/decoder/generator/m_source/l_sin_gen/Constant_5_output_0 +f32 [] /decoder/decoder/generator/m_source/l_sin_gen/Constant_6_output_0 +f32 [] /decoder/decoder/generator/m_source/l_sin_gen/Constant_7_output_0 +f32 [1024,514,3] /decoder/decoder/encode/Mul_output_0 +f32 [1024] decoder.decoder.encode.conv1.bias +f32 [] /decoder/decoder/generator/m_source/l_sin_gen/Constant_8_output_0 +f32 [] /decoder/decoder/generator/m_source/l_sin_gen/Constant_10_output_0 +f32 [9,1] onnx::MatMul_6993 +f32 [1] decoder.decoder.generator.m_source.l_linear.bias +f32 [1024,1024,3] /decoder/decoder/encode/Mul_1_output_0 +f32 [1024] decoder.decoder.encode.conv2.bias +f32 [1024,1090,1] /decoder/decoder/decode.0/Mul_2_output_0 +i64 [6] /decoder/decoder/generator/Cast_output_0 +i64 [] /decoder/decoder/generator/Constant_14_output_0 +i64 [] /decoder/decoder/generator/Constant_15_output_0 +f32 [20] /decoder/decoder/generator/Constant_17_output_0 +i64 [] /decoder/decoder/generator/Constant_16_output_0 +f32 [1024,1090,3] /decoder/decoder/decode.0/Mul_output_0 +f32 [1024] decoder.decoder.decode.0.conv1.bias +f32 [] /decoder/decoder/generator/Constant_18_output_0 +f32 [] /decoder/decoder/generator/Constant_20_output_0 +f32 [256,22,12] decoder.decoder.generator.noise_convs.0.weight +f32 [256] decoder.decoder.generator.noise_convs.0.bias +f32 [128,22,1] decoder.decoder.generator.noise_convs.1.weight +f32 [128] decoder.decoder.generator.noise_convs.1.bias +f32 [1024,1024,3] /decoder/decoder/decode.0/Mul_1_output_0 +f32 [1024] decoder.decoder.decode.0.conv2.bias +f32 [1024,1090,1] /decoder/decoder/decode.1/Mul_2_output_0 +f32 [1,256,1] decoder.decoder.generator.noise_res.0.alpha1.0 +f32 [1,128,1] decoder.decoder.generator.noise_res.1.alpha1.0 +f32 [1,256,1] /decoder/decoder/generator/noise_res.0/Reciprocal_output_0 +f32 [1,128,1] /decoder/decoder/generator/noise_res.1/Reciprocal_output_0 +f32 [256,256,7] /decoder/decoder/generator/noise_res.0/Mul_2_output_0 +f32 [256] decoder.decoder.generator.noise_res.0.convs1.0.bias +f32 [128,128,11] /decoder/decoder/generator/noise_res.1/Mul_2_output_0 +f32 [128] decoder.decoder.generator.noise_res.1.convs1.0.bias +f32 [1024,1090,3] /decoder/decoder/decode.1/Mul_output_0 +f32 [1024] decoder.decoder.decode.1.conv1.bias +f32 [1,256,1] decoder.decoder.generator.noise_res.0.alpha2.0 +f32 [1,128,1] decoder.decoder.generator.noise_res.1.alpha2.0 +f32 [1,256,1] /decoder/decoder/generator/noise_res.0/Reciprocal_1_output_0 +f32 [1,128,1] /decoder/decoder/generator/noise_res.1/Reciprocal_1_output_0 +f32 [1024,1024,3] /decoder/decoder/decode.1/Mul_1_output_0 +f32 [1024] decoder.decoder.decode.1.conv2.bias +f32 [256,256,7] /decoder/decoder/generator/noise_res.0/Mul_5_output_0 +f32 [256] decoder.decoder.generator.noise_res.0.convs2.0.bias +f32 [128,128,11] /decoder/decoder/generator/noise_res.1/Mul_5_output_0 +f32 [128] decoder.decoder.generator.noise_res.1.convs2.0.bias +f32 [1024,1090,1] /decoder/decoder/decode.2/Mul_2_output_0 +f32 [1,256,1] decoder.decoder.generator.noise_res.0.alpha1.1 +f32 [1,128,1] decoder.decoder.generator.noise_res.1.alpha1.1 +f32 [1024,1090,3] /decoder/decoder/decode.2/Mul_output_0 +f32 [1024] decoder.decoder.decode.2.conv1.bias +f32 [1,256,1] /decoder/decoder/generator/noise_res.0/Reciprocal_2_output_0 +f32 [1,128,1] /decoder/decoder/generator/noise_res.1/Reciprocal_2_output_0 +f32 [256,256,7] /decoder/decoder/generator/noise_res.0/Mul_8_output_0 +f32 [256] decoder.decoder.generator.noise_res.0.convs1.1.bias +f32 [128,128,11] /decoder/decoder/generator/noise_res.1/Mul_8_output_0 +f32 [128] decoder.decoder.generator.noise_res.1.convs1.1.bias +f32 [1024,1024,3] /decoder/decoder/decode.2/Mul_1_output_0 +f32 [1024] decoder.decoder.decode.2.conv2.bias +f32 [1,256,1] decoder.decoder.generator.noise_res.0.alpha2.1 +f32 [1,128,1] decoder.decoder.generator.noise_res.1.alpha2.1 +f32 [512,1090,1] /decoder/decoder/decode.3/Mul_3_output_0 +f32 [1,256,1] /decoder/decoder/generator/noise_res.0/Reciprocal_3_output_0 +f32 [1,128,1] /decoder/decoder/generator/noise_res.1/Reciprocal_3_output_0 +f32 [256,256,7] /decoder/decoder/generator/noise_res.0/Mul_11_output_0 +f32 [256] decoder.decoder.generator.noise_res.0.convs2.1.bias +f32 [128,128,11] /decoder/decoder/generator/noise_res.1/Mul_11_output_0 +f32 [128] decoder.decoder.generator.noise_res.1.convs2.1.bias +f32 [1090,1,3] /decoder/decoder/decode.3/Mul_output_0 +f32 [1090] decoder.decoder.decode.3.pool.bias +f32 [512,1090,3] /decoder/decoder/decode.3/Mul_1_output_0 +f32 [512] decoder.decoder.decode.3.conv1.bias +f32 [1,256,1] decoder.decoder.generator.noise_res.0.alpha1.2 +f32 [1,128,1] decoder.decoder.generator.noise_res.1.alpha1.2 +f32 [1,256,1] /decoder/decoder/generator/noise_res.0/Reciprocal_4_output_0 +f32 [1,128,1] /decoder/decoder/generator/noise_res.1/Reciprocal_4_output_0 +f32 [256,256,7] /decoder/decoder/generator/noise_res.0/Mul_14_output_0 +f32 [256] decoder.decoder.generator.noise_res.0.convs1.2.bias +f32 [128,128,11] /decoder/decoder/generator/noise_res.1/Mul_14_output_0 +f32 [128] decoder.decoder.generator.noise_res.1.convs1.2.bias +f32 [512,512,3] /decoder/decoder/decode.3/Mul_2_output_0 +f32 [512] decoder.decoder.decode.3.conv2.bias +f32 [512,256,20] /decoder/decoder/generator/Mul_output_0 +f32 [256] decoder.decoder.generator.ups.0.bias +f32 [1,256,1] decoder.decoder.generator.noise_res.0.alpha2.2 +f32 [1,128,1] decoder.decoder.generator.noise_res.1.alpha2.2 +f32 [1,256,1] /decoder/decoder/generator/noise_res.0/Reciprocal_5_output_0 +f32 [1,128,1] /decoder/decoder/generator/noise_res.1/Reciprocal_5_output_0 +f32 [256,256,7] /decoder/decoder/generator/noise_res.0/Mul_17_output_0 +f32 [256] decoder.decoder.generator.noise_res.0.convs2.2.bias +f32 [128,128,11] /decoder/decoder/generator/noise_res.1/Mul_17_output_0 +f32 [128] decoder.decoder.generator.noise_res.1.convs2.2.bias +f32 [1,256,1] decoder.decoder.generator.resblocks.0.alpha1.0 +f32 [1,256,1] decoder.decoder.generator.resblocks.1.alpha1.0 +f32 [1,256,1] decoder.decoder.generator.resblocks.2.alpha1.0 +f32 [1,256,1] /decoder/decoder/generator/resblocks.0/Reciprocal_output_0 +f32 [1,256,1] /decoder/decoder/generator/resblocks.1/Reciprocal_output_0 +f32 [1,256,1] /decoder/decoder/generator/resblocks.2/Reciprocal_output_0 +f32 [256,256,3] /decoder/decoder/generator/resblocks.0/Mul_2_output_0 +f32 [256] decoder.decoder.generator.resblocks.0.convs1.0.bias +f32 [256,256,7] /decoder/decoder/generator/resblocks.1/Mul_2_output_0 +f32 [256] decoder.decoder.generator.resblocks.1.convs1.0.bias +f32 [256,256,11] /decoder/decoder/generator/resblocks.2/Mul_2_output_0 +f32 [256] decoder.decoder.generator.resblocks.2.convs1.0.bias +f32 [1,256,1] decoder.decoder.generator.resblocks.0.alpha2.0 +f32 [1,256,1] decoder.decoder.generator.resblocks.1.alpha2.0 +f32 [1,256,1] decoder.decoder.generator.resblocks.2.alpha2.0 +f32 [1,256,1] /decoder/decoder/generator/resblocks.0/Reciprocal_1_output_0 +f32 [1,256,1] /decoder/decoder/generator/resblocks.1/Reciprocal_1_output_0 +f32 [1,256,1] /decoder/decoder/generator/resblocks.2/Reciprocal_1_output_0 +f32 [256,256,3] /decoder/decoder/generator/resblocks.0/Mul_5_output_0 +f32 [256] decoder.decoder.generator.resblocks.0.convs2.0.bias +f32 [256,256,7] /decoder/decoder/generator/resblocks.1/Mul_5_output_0 +f32 [256] decoder.decoder.generator.resblocks.1.convs2.0.bias +f32 [256,256,11] /decoder/decoder/generator/resblocks.2/Mul_5_output_0 +f32 [256] decoder.decoder.generator.resblocks.2.convs2.0.bias +f32 [1,256,1] decoder.decoder.generator.resblocks.0.alpha1.1 +f32 [1,256,1] decoder.decoder.generator.resblocks.1.alpha1.1 +f32 [1,256,1] decoder.decoder.generator.resblocks.2.alpha1.1 +f32 [1,256,1] /decoder/decoder/generator/resblocks.0/Reciprocal_2_output_0 +f32 [1,256,1] /decoder/decoder/generator/resblocks.1/Reciprocal_2_output_0 +f32 [1,256,1] /decoder/decoder/generator/resblocks.2/Reciprocal_2_output_0 +f32 [256,256,3] /decoder/decoder/generator/resblocks.0/Mul_8_output_0 +f32 [256] decoder.decoder.generator.resblocks.0.convs1.1.bias +f32 [256,256,7] /decoder/decoder/generator/resblocks.1/Mul_8_output_0 +f32 [256] decoder.decoder.generator.resblocks.1.convs1.1.bias +f32 [256,256,11] /decoder/decoder/generator/resblocks.2/Mul_8_output_0 +f32 [256] decoder.decoder.generator.resblocks.2.convs1.1.bias +f32 [1,256,1] decoder.decoder.generator.resblocks.0.alpha2.1 +f32 [1,256,1] decoder.decoder.generator.resblocks.1.alpha2.1 +f32 [1,256,1] decoder.decoder.generator.resblocks.2.alpha2.1 +f32 [1,256,1] /decoder/decoder/generator/resblocks.0/Reciprocal_3_output_0 +f32 [1,256,1] /decoder/decoder/generator/resblocks.1/Reciprocal_3_output_0 +f32 [1,256,1] /decoder/decoder/generator/resblocks.2/Reciprocal_3_output_0 +f32 [256,256,3] /decoder/decoder/generator/resblocks.0/Mul_11_output_0 +f32 [256] decoder.decoder.generator.resblocks.0.convs2.1.bias +f32 [256,256,7] /decoder/decoder/generator/resblocks.1/Mul_11_output_0 +f32 [256] decoder.decoder.generator.resblocks.1.convs2.1.bias +f32 [256,256,11] /decoder/decoder/generator/resblocks.2/Mul_11_output_0 +f32 [256] decoder.decoder.generator.resblocks.2.convs2.1.bias +f32 [1,256,1] decoder.decoder.generator.resblocks.0.alpha1.2 +f32 [1,256,1] decoder.decoder.generator.resblocks.1.alpha1.2 +f32 [1,256,1] decoder.decoder.generator.resblocks.2.alpha1.2 +f32 [1,256,1] /decoder/decoder/generator/resblocks.0/Reciprocal_4_output_0 +f32 [1,256,1] /decoder/decoder/generator/resblocks.1/Reciprocal_4_output_0 +f32 [1,256,1] /decoder/decoder/generator/resblocks.2/Reciprocal_4_output_0 +f32 [256,256,3] /decoder/decoder/generator/resblocks.0/Mul_14_output_0 +f32 [256] decoder.decoder.generator.resblocks.0.convs1.2.bias +f32 [256,256,7] /decoder/decoder/generator/resblocks.1/Mul_14_output_0 +f32 [256] decoder.decoder.generator.resblocks.1.convs1.2.bias +f32 [256,256,11] /decoder/decoder/generator/resblocks.2/Mul_14_output_0 +f32 [256] decoder.decoder.generator.resblocks.2.convs1.2.bias +f32 [1,256,1] decoder.decoder.generator.resblocks.0.alpha2.2 +f32 [1,256,1] decoder.decoder.generator.resblocks.1.alpha2.2 +f32 [1,256,1] decoder.decoder.generator.resblocks.2.alpha2.2 +f32 [1,256,1] /decoder/decoder/generator/resblocks.0/Reciprocal_5_output_0 +f32 [1,256,1] /decoder/decoder/generator/resblocks.1/Reciprocal_5_output_0 +f32 [1,256,1] /decoder/decoder/generator/resblocks.2/Reciprocal_5_output_0 +f32 [256,256,3] /decoder/decoder/generator/resblocks.0/Mul_17_output_0 +f32 [256] decoder.decoder.generator.resblocks.0.convs2.2.bias +f32 [256,256,7] /decoder/decoder/generator/resblocks.1/Mul_17_output_0 +f32 [256] decoder.decoder.generator.resblocks.1.convs2.2.bias +f32 [256,256,11] /decoder/decoder/generator/resblocks.2/Mul_17_output_0 +f32 [256] decoder.decoder.generator.resblocks.2.convs2.2.bias +f32 [] /decoder/decoder/generator/Constant_25_output_0 +f32 [256,128,12] /decoder/decoder/generator/Mul_1_output_0 +f32 [128] decoder.decoder.generator.ups.1.bias +i64 [6] /decoder/decoder/generator/reflection_pad/Cast_output_0 +f32 [1,128,1] decoder.decoder.generator.resblocks.3.alpha1.0 +f32 [1,128,1] decoder.decoder.generator.resblocks.4.alpha1.0 +f32 [1,128,1] decoder.decoder.generator.resblocks.5.alpha1.0 +f32 [1,128,1] /decoder/decoder/generator/resblocks.3/Reciprocal_output_0 +f32 [1,128,1] /decoder/decoder/generator/resblocks.4/Reciprocal_output_0 +f32 [1,128,1] /decoder/decoder/generator/resblocks.5/Reciprocal_output_0 +f32 [128,128,3] /decoder/decoder/generator/resblocks.3/Mul_2_output_0 +f32 [128] decoder.decoder.generator.resblocks.3.convs1.0.bias +f32 [128,128,7] /decoder/decoder/generator/resblocks.4/Mul_2_output_0 +f32 [128] decoder.decoder.generator.resblocks.4.convs1.0.bias +f32 [128,128,11] /decoder/decoder/generator/resblocks.5/Mul_2_output_0 +f32 [128] decoder.decoder.generator.resblocks.5.convs1.0.bias +f32 [1,128,1] decoder.decoder.generator.resblocks.3.alpha2.0 +f32 [1,128,1] decoder.decoder.generator.resblocks.4.alpha2.0 +f32 [1,128,1] decoder.decoder.generator.resblocks.5.alpha2.0 +f32 [1,128,1] /decoder/decoder/generator/resblocks.3/Reciprocal_1_output_0 +f32 [1,128,1] /decoder/decoder/generator/resblocks.4/Reciprocal_1_output_0 +f32 [1,128,1] /decoder/decoder/generator/resblocks.5/Reciprocal_1_output_0 +f32 [128,128,3] /decoder/decoder/generator/resblocks.3/Mul_5_output_0 +f32 [128] decoder.decoder.generator.resblocks.3.convs2.0.bias +f32 [128,128,7] /decoder/decoder/generator/resblocks.4/Mul_5_output_0 +f32 [128] decoder.decoder.generator.resblocks.4.convs2.0.bias +f32 [128,128,11] /decoder/decoder/generator/resblocks.5/Mul_5_output_0 +f32 [128] decoder.decoder.generator.resblocks.5.convs2.0.bias +f32 [1,128,1] decoder.decoder.generator.resblocks.3.alpha1.1 +f32 [1,128,1] decoder.decoder.generator.resblocks.4.alpha1.1 +f32 [1,128,1] decoder.decoder.generator.resblocks.5.alpha1.1 +f32 [1,128,1] /decoder/decoder/generator/resblocks.3/Reciprocal_2_output_0 +f32 [1,128,1] /decoder/decoder/generator/resblocks.4/Reciprocal_2_output_0 +f32 [1,128,1] /decoder/decoder/generator/resblocks.5/Reciprocal_2_output_0 +f32 [128,128,3] /decoder/decoder/generator/resblocks.3/Mul_8_output_0 +f32 [128] decoder.decoder.generator.resblocks.3.convs1.1.bias +f32 [128,128,7] /decoder/decoder/generator/resblocks.4/Mul_8_output_0 +f32 [128] decoder.decoder.generator.resblocks.4.convs1.1.bias +f32 [128,128,11] /decoder/decoder/generator/resblocks.5/Mul_8_output_0 +f32 [128] decoder.decoder.generator.resblocks.5.convs1.1.bias +f32 [1,128,1] decoder.decoder.generator.resblocks.3.alpha2.1 +f32 [1,128,1] decoder.decoder.generator.resblocks.4.alpha2.1 +f32 [1,128,1] decoder.decoder.generator.resblocks.5.alpha2.1 +f32 [1,128,1] /decoder/decoder/generator/resblocks.3/Reciprocal_3_output_0 +f32 [1,128,1] /decoder/decoder/generator/resblocks.4/Reciprocal_3_output_0 +f32 [1,128,1] /decoder/decoder/generator/resblocks.5/Reciprocal_3_output_0 +f32 [128,128,3] /decoder/decoder/generator/resblocks.3/Mul_11_output_0 +f32 [128] decoder.decoder.generator.resblocks.3.convs2.1.bias +f32 [128,128,7] /decoder/decoder/generator/resblocks.4/Mul_11_output_0 +f32 [128] decoder.decoder.generator.resblocks.4.convs2.1.bias +f32 [128,128,11] /decoder/decoder/generator/resblocks.5/Mul_11_output_0 +f32 [128] decoder.decoder.generator.resblocks.5.convs2.1.bias +f32 [1,128,1] decoder.decoder.generator.resblocks.3.alpha1.2 +f32 [1,128,1] decoder.decoder.generator.resblocks.4.alpha1.2 +f32 [1,128,1] decoder.decoder.generator.resblocks.5.alpha1.2 +f32 [1,128,1] /decoder/decoder/generator/resblocks.3/Reciprocal_4_output_0 +f32 [1,128,1] /decoder/decoder/generator/resblocks.4/Reciprocal_4_output_0 +f32 [1,128,1] /decoder/decoder/generator/resblocks.5/Reciprocal_4_output_0 +f32 [128,128,3] /decoder/decoder/generator/resblocks.3/Mul_14_output_0 +f32 [128] decoder.decoder.generator.resblocks.3.convs1.2.bias +f32 [128,128,7] /decoder/decoder/generator/resblocks.4/Mul_14_output_0 +f32 [128] decoder.decoder.generator.resblocks.4.convs1.2.bias +f32 [128,128,11] /decoder/decoder/generator/resblocks.5/Mul_14_output_0 +f32 [128] decoder.decoder.generator.resblocks.5.convs1.2.bias +f32 [1,128,1] decoder.decoder.generator.resblocks.3.alpha2.2 +f32 [1,128,1] decoder.decoder.generator.resblocks.4.alpha2.2 +f32 [1,128,1] decoder.decoder.generator.resblocks.5.alpha2.2 +f32 [1,128,1] /decoder/decoder/generator/resblocks.3/Reciprocal_5_output_0 +f32 [1,128,1] /decoder/decoder/generator/resblocks.4/Reciprocal_5_output_0 +f32 [1,128,1] /decoder/decoder/generator/resblocks.5/Reciprocal_5_output_0 +f32 [128,128,3] /decoder/decoder/generator/resblocks.3/Mul_17_output_0 +f32 [128] decoder.decoder.generator.resblocks.3.convs2.2.bias +f32 [128,128,7] /decoder/decoder/generator/resblocks.4/Mul_17_output_0 +f32 [128] decoder.decoder.generator.resblocks.4.convs2.2.bias +f32 [128,128,11] /decoder/decoder/generator/resblocks.5/Mul_17_output_0 +f32 [128] decoder.decoder.generator.resblocks.5.convs2.2.bias +f32 [22,128,7] /decoder/decoder/generator/Mul_2_output_0 +f32 [22] decoder.decoder.generator.conv_post.bias +i64 [1] /decoder/decoder/generator/Constant_31_output_0 +f32 [22,1,20] decoder.decoder.generator.stft.istft.stft.inverse_basis +f32 [20] decoder.decoder.generator.stft.istft.stft.window_sum +i64 [2] onnx::Reshape_6478 +f32 [] /decoder/decoder/generator/istft/stft/Constant_9_output_0 +f32 [] /decoder/decoder/generator/istft/stft/Constant_19_output_0 +i64 [1] /decoder/decoder/generator/istft/stft/Constant_21_output_0 +i64 [1] /decoder/decoder/generator/istft/stft/Constant_22_output_0 +i64 [1] /decoder/decoder/generator/istft/stft/Constant_25_output_0 +i64 [1] /decoder/decoder/generator/istft/stft/Constant_26_output_0 diff --git a/b/8fd5150365027319f18217e63d5038f0d674bc3ee5a94204086ce6ff3fe9b37a b/b/8fd5150365027319f18217e63d5038f0d674bc3ee5a94204086ce6ff3fe9b37a new file mode 100644 index 0000000000000000000000000000000000000000..9e633ff122128f40bea650604942ebd53e06173a Binary files /dev/null and b/b/8fd5150365027319f18217e63d5038f0d674bc3ee5a94204086ce6ff3fe9b37a differ diff --git a/b/8fe1b43b412890f6b7160c58ac2d8766d4aa65258d923ca1ca6e58565f82929f b/b/8fe1b43b412890f6b7160c58ac2d8766d4aa65258d923ca1ca6e58565f82929f new file mode 100644 index 0000000000000000000000000000000000000000..a45f1c180b3f008c0dae370ab9650fca4e9ca21c --- /dev/null +++ b/b/8fe1b43b412890f6b7160c58ac2d8766d4aa65258d923ca1ca6e58565f82929f @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.typography-list", + "name": "typography-list", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/typography-list.json", + "did": "did:holo:sha256:fa69100335106cb34f8c5b9f21eb648add7e5c6dc69be0e19909b9393cbbc56d", + "import": "holo://sha256:e56e6def5416484a30e6a2a5a97235526e3c758bcc4d86c20f722a6a2bda940c", + "integrity": "sha256-5W5t71QWSEow5qKlqXI1Um48dYvMTYbCD3IqaivalAw=", + "kappa": "sha256:fa69100335106cb34f8c5b9f21eb648add7e5c6dc69be0e19909b9393cbbc56d", + "moduleKappa": "sha256:e56e6def5416484a30e6a2a5a97235526e3c758bcc4d86c20f722a6a2bda940c", + "renderExport": "default", + "source": "registry/new-york-v4/examples/typography-list.tsx", + "module": "vendor/components/typography-list.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/900d1a3d8f1aae403872a061a3baa394b1e17f4efd7f162f55bb0c96d4257e70 b/b/900d1a3d8f1aae403872a061a3baa394b1e17f4efd7f162f55bb0c96d4257e70 new file mode 100644 index 0000000000000000000000000000000000000000..0a55d27f70175a7bb404d360b8cfba503049c79a --- /dev/null +++ b/b/900d1a3d8f1aae403872a061a3baa394b1e17f4efd7f162f55bb0c96d4257e70 @@ -0,0 +1,112 @@ +"use client" + +import React, { type ComponentPropsWithoutRef } from "react" +import { motion, Transition, Variants } from "motion/react" + +import { cn } from "@/lib/utils" + +interface SpinningTextProps extends ComponentPropsWithoutRef<"div"> { + children: string | string[] + duration?: number + reverse?: boolean + radius?: number + transition?: Transition + variants?: { + container?: Variants + item?: Variants + } +} + +const BASE_TRANSITION: Transition = { + repeat: Infinity, + ease: "linear", +} + +const BASE_ITEM_VARIANTS: Variants = { + hidden: { + opacity: 1, + }, + visible: { + opacity: 1, + }, +} + +export function SpinningText({ + children, + duration = 10, + reverse = false, + radius = 5, + transition, + variants, + className, + style, +}: SpinningTextProps) { + if (typeof children !== "string" && !Array.isArray(children)) { + throw new Error("children must be a string or an array of strings") + } + + if (Array.isArray(children)) { + // Validate all elements are strings + if (!children.every((child) => typeof child === "string")) { + throw new Error("all elements in children array must be strings") + } + children = children.join("") + } + + const letters = children.split("") + letters.push(" ") + + const finalTransition: Transition = { + ...BASE_TRANSITION, + ...transition, + duration: (transition as { duration?: number })?.duration ?? duration, + } + + const containerVariants: Variants = { + visible: { rotate: reverse ? -360 : 360 }, + ...variants?.container, + } + + const itemVariants: Variants = { + ...BASE_ITEM_VARIANTS, + ...variants?.item, + } + + return ( + + {letters.map((letter, index) => ( + + ))} + {children} + + ) +} diff --git a/b/9037b1893263fef6b904a16a8b5504d04963abe06ba414103e61a97692bdd4e0 b/b/9037b1893263fef6b904a16a8b5504d04963abe06ba414103e61a97692bdd4e0 new file mode 100644 index 0000000000000000000000000000000000000000..f00a458beb79cec6f6016d17e0fe5c8de0257e43 --- /dev/null +++ b/b/9037b1893263fef6b904a16a8b5504d04963abe06ba414103e61a97692bdd4e0 @@ -0,0 +1,130 @@ +import React, { useCallback, useMemo, useRef, useState } from "react" +import { AnimatePresence, motion, useMotionTemplate } from "motion/react" + +interface Position { + /** The x coordinate of the lens */ + x: number + /** The y coordinate of the lens */ + y: number +} + +interface LensProps { + /** The children of the lens */ + children: React.ReactNode + /** The zoom factor of the lens */ + zoomFactor?: number + /** The size of the lens */ + lensSize?: number + /** The position of the lens */ + position?: Position + /** The default position of the lens */ + defaultPosition?: Position + /** Whether the lens is static */ + isStatic?: boolean + /** The duration of the animation */ + duration?: number + /** The color of the lens */ + lensColor?: string + /** The aria label of the lens */ + ariaLabel?: string +} + +export function Lens({ + children, + zoomFactor = 1.3, + lensSize = 170, + isStatic = false, + position = { x: 0, y: 0 }, + defaultPosition, + duration = 0.1, + lensColor = "black", + ariaLabel = "Zoom Area", +}: LensProps) { + if (zoomFactor < 1) { + throw new Error("zoomFactor must be greater than 1") + } + if (lensSize < 0) { + throw new Error("lensSize must be greater than 0") + } + + const [isHovering, setIsHovering] = useState(false) + const [mousePosition, setMousePosition] = useState(position) + const containerRef = useRef(null) + + const currentPosition = useMemo(() => { + if (isStatic) return position + if (defaultPosition && !isHovering) return defaultPosition + return mousePosition + }, [isStatic, position, defaultPosition, isHovering, mousePosition]) + + const handleMouseMove = useCallback((e: React.MouseEvent) => { + const rect = e.currentTarget.getBoundingClientRect() + setMousePosition({ + x: e.clientX - rect.left, + y: e.clientY - rect.top, + }) + }, []) + + const handleKeyDown = useCallback((e: React.KeyboardEvent) => { + if (e.key === "Escape") setIsHovering(false) + }, []) + + const maskImage = useMotionTemplate`radial-gradient(circle ${ + lensSize / 2 + }px at ${currentPosition.x}px ${ + currentPosition.y + }px, ${lensColor} 100%, transparent 100%)` + + const LensContent = useMemo(() => { + const { x, y } = currentPosition + + return ( + +
    + {children} +
    +
    + ) + }, [currentPosition, maskImage, zoomFactor, children, duration]) + + return ( +
    setIsHovering(true)} + onMouseLeave={() => setIsHovering(false)} + onMouseMove={handleMouseMove} + onKeyDown={handleKeyDown} + role="region" + aria-label={ariaLabel} + tabIndex={0} + > + {children} + {isStatic || defaultPosition ? ( + LensContent + ) : ( + + {isHovering && LensContent} + + )} +
    + ) +} diff --git a/b/90395d29849d3858f52e105e6121e7c2551d35231df682d3f963ee95c679d646 b/b/90395d29849d3858f52e105e6121e7c2551d35231df682d3f963ee95c679d646 new file mode 100644 index 0000000000000000000000000000000000000000..6a2c90e2ddafdf8924e4f8c0a2a0a89d02f5d0cd --- /dev/null +++ b/b/90395d29849d3858f52e105e6121e7c2551d35231df682d3f963ee95c679d646 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.example.item-size", + "name": "item-size", + "tier": "example", + "library": "shadcn", + "category": "Examples", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/item-size.json", + "did": "did:holo:sha256:7e20643ce094acc8764f93529021b51ec887a1183edf19a047f7d455d3767555", + "import": "holo://sha256:a413bc68f0d9d1b3a7f5f6a7fad759f27451c47fd880cdd0ac656befbbea8311", + "integrity": "sha256-pBO8aPDZ0bOn9fan+tdZ8nRRxH/YgM3QrGVr77vqgxE=", + "kappa": "sha256:7e20643ce094acc8764f93529021b51ec887a1183edf19a047f7d455d3767555", + "moduleKappa": "sha256:a413bc68f0d9d1b3a7f5f6a7fad759f27451c47fd880cdd0ac656befbbea8311", + "renderExport": "default", + "source": "registry/new-york-v4/examples/item-size.tsx", + "module": "vendor/components/item-size.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/90596a1853f09b027389127f5ba290428afa6ef8f38a795fa14d95972174dacc b/b/90596a1853f09b027389127f5ba290428afa6ef8f38a795fa14d95972174dacc new file mode 100644 index 0000000000000000000000000000000000000000..708e03af09c22c964c66d2148357f7fe1d6f9e0f --- /dev/null +++ b/b/90596a1853f09b027389127f5ba290428afa6ef8f38a795fa14d95972174dacc @@ -0,0 +1,59 @@ +import { ChevronDownIcon, MoreHorizontal } from "lucide-react" + +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuTrigger, +} from "@/registry/new-york-v4/ui/dropdown-menu" +import { + InputGroup, + InputGroupAddon, + InputGroupButton, + InputGroupInput, +} from "@/registry/new-york-v4/ui/input-group" + +export default function InputGroupDropdown() { + return ( +
    + + + + + + + + + + + Settings + Copy path + Open location + + + + + + + + + + + Search In... + + + + Documentation + Blog Posts + Changelog + + + + +
    + ) +} diff --git a/b/9060579c1c6e7b89587dfbb6f0a5e153e3a122e0c6de5eaf962f390b601d94b0 b/b/9060579c1c6e7b89587dfbb6f0a5e153e3a122e0c6de5eaf962f390b601d94b0 new file mode 100644 index 0000000000000000000000000000000000000000..48359538256fd6479c8d02e3b8471593ac27e7b2 --- /dev/null +++ b/b/9060579c1c6e7b89587dfbb6f0a5e153e3a122e0c6de5eaf962f390b601d94b0 @@ -0,0 +1,83 @@ +BitNet MULTI-LAYER GPU forward witness +
    loading…
    diff --git a/b/9067371388c2ca60907c221711b2798ee06cb91feaf2a089be07ed63b31403a3 b/b/9067371388c2ca60907c221711b2798ee06cb91feaf2a089be07ed63b31403a3 new file mode 100644 index 0000000000000000000000000000000000000000..4b4d4dfd22e8febf3ae02bab40ea2edf960d7889 --- /dev/null +++ b/b/9067371388c2ca60907c221711b2798ee06cb91feaf2a089be07ed63b31403a3 @@ -0,0 +1,99 @@ +import React, { MouseEvent, useEffect, useState } from "react" + +import { cn } from "@/lib/utils" + +interface RippleButtonProps extends React.ButtonHTMLAttributes { + rippleColor?: string + duration?: string +} + +export const RippleButton = React.forwardRef< + HTMLButtonElement, + RippleButtonProps +>( + ( + { + className, + children, + rippleColor = "#ffffff", + duration = "600ms", + onClick, + ...props + }, + ref + ) => { + const [buttonRipples, setButtonRipples] = useState< + Array<{ x: number; y: number; size: number; key: number }> + >([]) + + const handleClick = (event: MouseEvent) => { + createRipple(event) + onClick?.(event) + } + + const createRipple = (event: MouseEvent) => { + const button = event.currentTarget + const rect = button.getBoundingClientRect() + const size = Math.max(rect.width, rect.height) + const x = event.clientX - rect.left - size / 2 + const y = event.clientY - rect.top - size / 2 + + const newRipple = { x, y, size, key: Date.now() } + setButtonRipples((prevRipples) => [...prevRipples, newRipple]) + } + + useEffect(() => { + let timeout: ReturnType | null = null + + if (buttonRipples.length > 0) { + const lastRipple = buttonRipples[buttonRipples.length - 1] + timeout = setTimeout(() => { + setButtonRipples((prevRipples) => + prevRipples.filter((ripple) => ripple.key !== lastRipple.key) + ) + }, parseInt(duration)) + } + + return () => { + if (timeout !== null) { + clearTimeout(timeout) + } + } + }, [buttonRipples, duration]) + + return ( + + ) + } +) + +RippleButton.displayName = "RippleButton" diff --git a/b/9071071176f2eb0fb8b6f1218b1320937a255f677def7a7eb9069baeb05a1bc0 b/b/9071071176f2eb0fb8b6f1218b1320937a255f677def7a7eb9069baeb05a1bc0 new file mode 100644 index 0000000000000000000000000000000000000000..90a11c8805d9c18299963f79946e12beff540028 --- /dev/null +++ b/b/9071071176f2eb0fb8b6f1218b1320937a255f677def7a7eb9069baeb05a1bc0 @@ -0,0 +1,44 @@ +"use client";var _S=Object.create;var Ac=Object.defineProperty;var IS=Object.getOwnPropertyDescriptor;var TS=Object.getOwnPropertyNames;var DS=Object.getPrototypeOf,MS=Object.prototype.hasOwnProperty;var Rp=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),NS=(e,t)=>{for(var r in t)Ac(e,r,{get:t[r],enumerable:!0})},RS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of TS(t))!MS.call(e,o)&&o!==r&&Ac(e,o,{get:()=>t[o],enumerable:!(n=IS(t,o))||n.enumerable});return e};var Ec=(e,t,r)=>(r=e!=null?_S(DS(e)):{},RS(t||!e||!e.__esModule?Ac(r,"default",{value:e,enumerable:!0}):r,e));var of=Rp((Uy,Ts)=>{(function(e){"use strict";var t=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},n=!0,o="[DecimalError] ",i=o+"Invalid argument: ",a=o+"Exponent out of range: ",s=Math.floor,l=Math.pow,c=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,u,f=1e7,d=7,p=9007199254740991,h=s(p/d),m={};m.absoluteValue=m.abs=function(){var g=new this.constructor(this);return g.s&&(g.s=1),g},m.comparedTo=m.cmp=function(g){var b,A,w,x,S=this;if(g=new S.constructor(g),S.s!==g.s)return S.s||-g.s;if(S.e!==g.e)return S.e>g.e^S.s<0?1:-1;for(w=S.d.length,x=g.d.length,b=0,A=wg.d[b]^S.s<0?1:-1;return w===x?0:w>x^S.s<0?1:-1},m.decimalPlaces=m.dp=function(){var g=this,b=g.d.length-1,A=(b-g.e)*d;if(b=g.d[b],b)for(;b%10==0;b/=10)A--;return A<0?0:A},m.dividedBy=m.div=function(g){return P(this,new this.constructor(g))},m.dividedToIntegerBy=m.idiv=function(g){var b=this,A=b.constructor;return L(P(b,new A(g),0,1),A.precision)},m.equals=m.eq=function(g){return!this.cmp(g)},m.exponent=function(){return E(this)},m.greaterThan=m.gt=function(g){return this.cmp(g)>0},m.greaterThanOrEqualTo=m.gte=function(g){return this.cmp(g)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return this.s===0},m.lessThan=m.lt=function(g){return this.cmp(g)<0},m.lessThanOrEqualTo=m.lte=function(g){return this.cmp(g)<1},m.logarithm=m.log=function(g){var b,A=this,w=A.constructor,x=w.precision,S=x+5;if(g===void 0)g=new w(10);else if(g=new w(g),g.s<1||g.eq(u))throw Error(o+"NaN");if(A.s<1)throw Error(o+(A.s?"NaN":"-Infinity"));return A.eq(u)?new w(0):(n=!1,b=P(k(A,S),k(g,S),S),n=!0,L(b,x))},m.minus=m.sub=function(g){var b=this;return g=new b.constructor(g),b.s==g.s?H(b,g):v(b,(g.s=-g.s,g))},m.modulo=m.mod=function(g){var b,A=this,w=A.constructor,x=w.precision;if(g=new w(g),!g.s)throw Error(o+"NaN");return A.s?(n=!1,b=P(A,g,0,1).times(g),n=!0,A.minus(b)):L(new w(A),x)},m.naturalExponential=m.exp=function(){return C(this)},m.naturalLogarithm=m.ln=function(){return k(this)},m.negated=m.neg=function(){var g=new this.constructor(this);return g.s=-g.s||0,g},m.plus=m.add=function(g){var b=this;return g=new b.constructor(g),b.s==g.s?v(b,g):H(b,(g.s=-g.s,g))},m.precision=m.sd=function(g){var b,A,w,x=this;if(g!==void 0&&g!==!!g&&g!==1&&g!==0)throw Error(i+g);if(b=E(x)+1,w=x.d.length-1,A=w*d+1,w=x.d[w],w){for(;w%10==0;w/=10)A--;for(w=x.d[0];w>=10;w/=10)A++}return g&&b>A?b:A},m.squareRoot=m.sqrt=function(){var g,b,A,w,x,S,T,M=this,j=M.constructor;if(M.s<1){if(!M.s)return new j(0);throw Error(o+"NaN")}for(g=E(M),n=!1,x=Math.sqrt(+M),x==0||x==1/0?(b=O(M.d),(b.length+g)%2==0&&(b+="0"),x=Math.sqrt(b),g=s((g+1)/2)-(g<0||g%2),x==1/0?b="5e"+g:(b=x.toExponential(),b=b.slice(0,b.indexOf("e")+1)+g),w=new j(b)):w=new j(x.toString()),A=j.precision,x=T=A+3;;)if(S=w,w=S.plus(P(M,S,T+2)).times(.5),O(S.d).slice(0,T)===(b=O(w.d)).slice(0,T)){if(b=b.slice(T-3,T+1),x==T&&b=="4999"){if(L(S,A+1,0),S.times(S).eq(M)){w=S;break}}else if(b!="9999")break;T+=4}return n=!0,L(w,A)},m.times=m.mul=function(g){var b,A,w,x,S,T,M,j,W,F=this,$=F.constructor,ne=F.d,N=(g=new $(g)).d;if(!F.s||!g.s)return new $(0);for(g.s*=F.s,A=F.e+g.e,j=ne.length,W=N.length,j=0;){for(b=0,x=j+w;x>w;)M=S[x]+N[w]*ne[x-w-1]+b,S[x--]=M%f|0,b=M/f|0;S[x]=(S[x]+b)%f|0}for(;!S[--T];)S.pop();return b?++A:S.shift(),g.d=S,g.e=A,n?L(g,$.precision):g},m.toDecimalPlaces=m.todp=function(g,b){var A=this,w=A.constructor;return A=new w(A),g===void 0?A:(y(g,0,t),b===void 0?b=w.rounding:y(b,0,8),L(A,g+E(A)+1,b))},m.toExponential=function(g,b){var A,w=this,x=w.constructor;return g===void 0?A=z(w,!0):(y(g,0,t),b===void 0?b=x.rounding:y(b,0,8),w=L(new x(w),g+1,b),A=z(w,!0,g+1)),A},m.toFixed=function(g,b){var A,w,x=this,S=x.constructor;return g===void 0?z(x):(y(g,0,t),b===void 0?b=S.rounding:y(b,0,8),w=L(new S(x),g+E(x)+1,b),A=z(w.abs(),!1,g+E(w)+1),x.isneg()&&!x.isZero()?"-"+A:A)},m.toInteger=m.toint=function(){var g=this,b=g.constructor;return L(new b(g),E(g)+1,b.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(g){var b,A,w,x,S,T,M=this,j=M.constructor,W=12,F=+(g=new j(g));if(!g.s)return new j(u);if(M=new j(M),!M.s){if(g.s<1)throw Error(o+"Infinity");return M}if(M.eq(u))return M;if(w=j.precision,g.eq(u))return L(M,w);if(b=g.e,A=g.d.length-1,T=b>=A,S=M.s,T){if((A=F<0?-F:F)<=p){for(x=new j(u),b=Math.ceil(w/d+4),n=!1;A%2&&(x=x.times(M),X(x.d,b)),A=s(A/2),A!==0;)M=M.times(M),X(M.d,b);return n=!0,g.s<0?new j(u).div(x):L(x,w)}}else if(S<0)throw Error(o+"NaN");return S=S<0&&g.d[Math.max(b,A)]&1?-1:1,M.s=1,n=!1,x=g.times(k(M,w+W)),n=!0,x=C(x),x.s=S,x},m.toPrecision=function(g,b){var A,w,x=this,S=x.constructor;return g===void 0?(A=E(x),w=z(x,A<=S.toExpNeg||A>=S.toExpPos)):(y(g,1,t),b===void 0?b=S.rounding:y(b,0,8),x=L(new S(x),g,b),A=E(x),w=z(x,g<=A||A<=S.toExpNeg,g)),w},m.toSignificantDigits=m.tosd=function(g,b){var A=this,w=A.constructor;return g===void 0?(g=w.precision,b=w.rounding):(y(g,1,t),b===void 0?b=w.rounding:y(b,0,8)),L(new w(A),g,b)},m.toString=m.valueOf=m.val=m.toJSON=function(){var g=this,b=E(g),A=g.constructor;return z(g,b<=A.toExpNeg||b>=A.toExpPos)};function v(g,b){var A,w,x,S,T,M,j,W,F=g.constructor,$=F.precision;if(!g.s||!b.s)return b.s||(b=new F(g)),n?L(b,$):b;if(j=g.d,W=b.d,T=g.e,x=b.e,j=j.slice(),S=T-x,S){for(S<0?(w=j,S=-S,M=W.length):(w=W,x=T,M=j.length),T=Math.ceil($/d),M=T>M?T+1:M+1,S>M&&(S=M,w.length=1),w.reverse();S--;)w.push(0);w.reverse()}for(M=j.length,S=W.length,M-S<0&&(S=M,w=W,W=j,j=w),A=0;S;)A=(j[--S]=j[S]+W[S]+A)/f|0,j[S]%=f;for(A&&(j.unshift(A),++x),M=j.length;j[--M]==0;)j.pop();return b.d=j,b.e=x,n?L(b,$):b}function y(g,b,A){if(g!==~~g||gA)throw Error(i+g)}function O(g){var b,A,w,x=g.length-1,S="",T=g[0];if(x>0){for(S+=T,b=1;bT?1:-1;else for(M=j=0;Mx[M]?1:-1;break}return j}function A(w,x,S){for(var T=0;S--;)w[S]-=T,T=w[S]1;)w.shift()}return function(w,x,S,T){var M,j,W,F,$,ne,N,V,K,R,Se,ee,Ue,Fe,At,jn,Lt,ca,ua=w.constructor,kS=w.s==x.s?1:-1,Kt=w.d,De=x.d;if(!w.s)return new ua(w);if(!x.s)throw Error(o+"Division by zero");for(j=w.e-x.e,Lt=De.length,At=Kt.length,N=new ua(kS),V=N.d=[],W=0;De[W]==(Kt[W]||0);)++W;if(De[W]>(Kt[W]||0)&&--j,S==null?ee=S=ua.precision:T?ee=S+(E(w)-E(x))+1:ee=S,ee<0)return new ua(0);if(ee=ee/d+2|0,W=0,Lt==1)for(F=0,De=De[0],ee++;(W1&&(De=g(De,F),Kt=g(Kt,F),Lt=De.length,At=Kt.length),Fe=Lt,K=Kt.slice(0,Lt),R=K.length;R=f/2&&++jn;do F=0,M=b(De,K,Lt,R),M<0?(Se=K[0],Lt!=R&&(Se=Se*f+(K[1]||0)),F=Se/jn|0,F>1?(F>=f&&(F=f-1),$=g(De,F),ne=$.length,R=K.length,M=b($,K,ne,R),M==1&&(F--,A($,Lt16)throw Error(a+E(g));if(!g.s)return new F(u);for(b==null?(n=!1,M=$):M=b,T=new F(.03125);g.abs().gte(.1);)g=g.times(T),W+=5;for(w=Math.log(l(2,W))/Math.LN10*2+5|0,M+=w,A=x=S=new F(u),F.precision=M;;){if(x=L(x.times(g),M),A=A.times(++j),T=S.plus(P(x,A,M)),O(T.d).slice(0,M)===O(S.d).slice(0,M)){for(;W--;)S=L(S.times(S),M);return F.precision=$,b==null?(n=!0,L(S,$)):S}S=T}}function E(g){for(var b=g.e*d,A=g.d[0];A>=10;A/=10)b++;return b}function _(g,b,A){if(b>g.LN10.sd())throw n=!0,A&&(g.precision=A),Error(o+"LN10 precision limit exceeded");return L(new g(g.LN10),b)}function D(g){for(var b="";g--;)b+="0";return b}function k(g,b){var A,w,x,S,T,M,j,W,F,$=1,ne=10,N=g,V=N.d,K=N.constructor,R=K.precision;if(N.s<1)throw Error(o+(N.s?"NaN":"-Infinity"));if(N.eq(u))return new K(0);if(b==null?(n=!1,W=R):W=b,N.eq(10))return b==null&&(n=!0),_(K,W);if(W+=ne,K.precision=W,A=O(V),w=A.charAt(0),S=E(N),Math.abs(S)<15e14){for(;w<7&&w!=1||w==1&&A.charAt(1)>3;)N=N.times(g),A=O(N.d),w=A.charAt(0),$++;S=E(N),w>1?(N=new K("0."+A),S++):N=new K(w+"."+A.slice(1))}else return j=_(K,W+2,R).times(S+""),N=k(new K(w+"."+A.slice(1)),W-ne).plus(j),K.precision=R,b==null?(n=!0,L(N,R)):N;for(M=T=N=P(N.minus(u),N.plus(u),W),F=L(N.times(N),W),x=3;;){if(T=L(T.times(F),W),j=M.plus(P(T,new K(x),W)),O(j.d).slice(0,W)===O(M.d).slice(0,W))return M=M.times(2),S!==0&&(M=M.plus(_(K,W+2,R).times(S+""))),M=P(M,new K($),W),K.precision=R,b==null?(n=!0,L(M,R)):M;M=j,x+=2}}function B(g,b){var A,w,x;for((A=b.indexOf("."))>-1&&(b=b.replace(".","")),(w=b.search(/e/i))>0?(A<0&&(A=w),A+=+b.slice(w+1),b=b.substring(0,w)):A<0&&(A=b.length),w=0;b.charCodeAt(w)===48;)++w;for(x=b.length;b.charCodeAt(x-1)===48;)--x;if(b=b.slice(w,x),b){if(x-=w,A=A-w-1,g.e=s(A/d),g.d=[],w=(A+1)%d,A<0&&(w+=d),wh||g.e<-h))throw Error(a+A)}else g.s=0,g.e=0,g.d=[0];return g}function L(g,b,A){var w,x,S,T,M,j,W,F,$=g.d;for(T=1,S=$[0];S>=10;S/=10)T++;if(w=b-T,w<0)w+=d,x=b,W=$[F=0];else{if(F=Math.ceil((w+1)/d),S=$.length,F>=S)return g;for(W=S=$[F],T=1;S>=10;S/=10)T++;w%=d,x=w-d+T}if(A!==void 0&&(S=l(10,T-x-1),M=W/S%10|0,j=b<0||$[F+1]!==void 0||W%S,j=A<4?(M||j)&&(A==0||A==(g.s<0?3:2)):M>5||M==5&&(A==4||j||A==6&&(w>0?x>0?W/l(10,T-x):0:$[F-1])%10&1||A==(g.s<0?8:7))),b<1||!$[0])return j?(S=E(g),$.length=1,b=b-S-1,$[0]=l(10,(d-b%d)%d),g.e=s(-b/d)||0):($.length=1,$[0]=g.e=g.s=0),g;if(w==0?($.length=F,S=1,F--):($.length=F+1,S=l(10,d-w),$[F]=x>0?(W/l(10,T-x)%l(10,x)|0)*S:0),j)for(;;)if(F==0){($[0]+=S)==f&&($[0]=1,++g.e);break}else{if($[F]+=S,$[F]!=f)break;$[F--]=0,S=1}for(w=$.length;$[--w]===0;)$.pop();if(n&&(g.e>h||g.e<-h))throw Error(a+E(g));return g}function H(g,b){var A,w,x,S,T,M,j,W,F,$,ne=g.constructor,N=ne.precision;if(!g.s||!b.s)return b.s?b.s=-b.s:b=new ne(g),n?L(b,N):b;if(j=g.d,$=b.d,w=b.e,W=g.e,j=j.slice(),T=W-w,T){for(F=T<0,F?(A=j,T=-T,M=$.length):(A=$,w=W,M=j.length),x=Math.max(Math.ceil(N/d),M)+2,T>x&&(T=x,A.length=1),A.reverse(),x=T;x--;)A.push(0);A.reverse()}else{for(x=j.length,M=$.length,F=x0;--x)j[M++]=0;for(x=$.length;x>T;){if(j[--x]<$[x]){for(S=x;S&&j[--S]===0;)j[S]=f-1;--j[S],j[x]+=f}j[x]-=$[x]}for(;j[--M]===0;)j.pop();for(;j[0]===0;j.shift())--w;return j[0]?(b.d=j,b.e=w,n?L(b,N):b):new ne(0)}function z(g,b,A){var w,x=E(g),S=O(g.d),T=S.length;return b?(A&&(w=A-T)>0?S=S.charAt(0)+"."+S.slice(1)+D(w):T>1&&(S=S.charAt(0)+"."+S.slice(1)),S=S+(x<0?"e":"e+")+x):x<0?(S="0."+D(-x-1)+S,A&&(w=A-T)>0&&(S+=D(w))):x>=T?(S+=D(x+1-T),A&&(w=A-x-1)>0&&(S=S+"."+D(w))):((w=x+1)0&&(x+1===T&&(S+="."),S+=D(w))),g.s<0?"-"+S:S}function X(g,b){if(g.length>b)return g.length=b,!0}function Z(g){var b,A,w;function x(S){var T=this;if(!(T instanceof x))return new x(S);if(T.constructor=x,S instanceof x){T.s=S.s,T.e=S.e,T.d=(S=S.d)?S.slice():S;return}if(typeof S=="number"){if(S*0!==0)throw Error(i+S);if(S>0)T.s=1;else if(S<0)S=-S,T.s=-1;else{T.s=0,T.e=0,T.d=[0];return}if(S===~~S&&S<1e7){T.e=0,T.d=[S];return}return B(T,S.toString())}else if(typeof S!="string")throw Error(i+S);if(S.charCodeAt(0)===45?(S=S.slice(1),T.s=-1):T.s=1,c.test(S))B(T,S);else throw Error(i+S)}if(x.prototype=m,x.ROUND_UP=0,x.ROUND_DOWN=1,x.ROUND_CEIL=2,x.ROUND_FLOOR=3,x.ROUND_HALF_UP=4,x.ROUND_HALF_DOWN=5,x.ROUND_HALF_EVEN=6,x.ROUND_HALF_CEIL=7,x.ROUND_HALF_FLOOR=8,x.clone=Z,x.config=x.set=J,g===void 0&&(g={}),g)for(w=["precision","rounding","toExpNeg","toExpPos","LN10"],b=0;b=x[b+1]&&w<=x[b+2])this[A]=w;else throw Error(i+A+": "+w);if((w=g[A="LN10"])!==void 0)if(w==Math.LN10)this[A]=new this(w);else throw Error(i+A+": "+w);return this}r=Z(r),r.default=r.Decimal=r,u=new r(1),typeof define=="function"&&define.amd?define(function(){return r}):typeof Ts<"u"&&Ts.exports?Ts.exports=r:(e||(e=typeof self<"u"&&self&&self.self==self?self:Function("return this")()),e.Decimal=r)})(Uy)});var Lb=Rp((KH,Yd)=>{"use strict";var oD=Object.prototype.hasOwnProperty,st="~";function Vi(){}Object.create&&(Vi.prototype=Object.create(null),new Vi().__proto__||(st=!1));function iD(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function jb(e,t,r,n,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var i=new iD(r,n||e,o),a=st?st+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],i]:e._events[a].push(i):(e._events[a]=i,e._eventsCount++),e}function Gl(e,t){--e._eventsCount===0?e._events=new Vi:delete e._events[t]}function Qe(){this._events=new Vi,this._eventsCount=0}Qe.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)oD.call(r,n)&&t.push(st?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Qe.prototype.listeners=function(t){var r=st?st+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o{var{children:r,width:n,height:o,viewBox:i,className:a,style:s,title:l,desc:c}=e,u=VS(e,WS),f=i||{width:n,height:o,x:0,y:0},d=Q("recharts-surface",a);return fa.createElement("svg",_c({},me(u),{className:d,width:n,height:o,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),fa.createElement("title",null,l),fa.createElement("desc",null,c),r)});import*as da from"react";var KS=["children","className"];function Tc(){return Tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:r,className:n}=e,o=qS(e,KS),i=Q("recharts-layer",n);return da.createElement("g",Tc({className:i},me(o),{ref:t}),r)});import{createContext as HS,useContext as yL}from"react";var zp=HS(null);import*as nm from"react";function ce(e){return function(){return e}}var Dc=Math.cos;var Vo=Math.sin,We=Math.sqrt;var Hr=Math.PI,bL=Hr/2,Ln=2*Hr;var Mc=Math.PI,Nc=2*Mc,Yr=1e-6,YS=Nc-Yr;function Bp(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Bp;let r=10**t;return function(n){this._+=n[0];for(let o=1,i=n.length;oYr)if(!(Math.abs(f*l-c*u)>Yr)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-a,h=o-s,m=l*l+c*c,v=p*p+h*h,y=Math.sqrt(m),O=Math.sqrt(d),P=i*Math.tan((Mc-Math.acos((m+d-v)/(2*y*O)))/2),C=P/O,E=P/y;Math.abs(C-1)>Yr&&this._append`L${t+C*u},${r+C*f}`,this._append`A${i},${i},0,0,${+(f*p>u*h)},${this._x1=t+E*l},${this._y1=r+E*c}`}}arc(t,r,n,o,i,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(o),l=n*Math.sin(o),c=t+s,u=r+l,f=1^a,d=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Yr||Math.abs(this._y1-u)>Yr)&&this._append`L${c},${u}`,n&&(d<0&&(d=d%Nc+Nc),d>YS?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=c},${this._y1=u}`:d>Yr&&this._append`A${n},${n},0,${+(d>=Mc)},${f},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}};function Fp(){return new Xr}Fp.prototype=Xr.prototype;function zn(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Xr(t)}var kL=Array.prototype.slice;function Bn(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Wp(e){this._context=e}Wp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Cr(e){return new Wp(e)}function pa(e){return e[0]}function ma(e){return e[1]}function Uo(e,t){var r=ce(!0),n=null,o=Cr,i=null,a=zn(s);e=typeof e=="function"?e:e===void 0?pa:ce(e),t=typeof t=="function"?t:t===void 0?ma:ce(t);function s(l){var c,u=(l=Bn(l)).length,f,d=!1,p;for(n==null&&(i=o(p=a())),c=0;c<=u;++c)!(c=p;--h)s.point(P[h],C[h]);s.lineEnd(),s.areaEnd()}y&&(P[d]=+e(v,d,f),C[d]=+t(v,d,f),s.point(n?+n(v,d,f):P[d],r?+r(v,d,f):C[d]))}if(O)return s=null,O+""||null}function u(){return Uo().defined(o).curve(a).context(i)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:ce(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ce(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ce(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:ce(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:ce(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:ce(+f),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(f){return arguments.length?(o=typeof f=="function"?f:ce(!!f),c):o},c.curve=function(f){return arguments.length?(a=f,i!=null&&(s=a(i)),c):a},c.context=function(f){return arguments.length?(f==null?i=s=null:s=a(i=f),c):i},c}var ha=class{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};function Rc(e){return new ha(e,!0)}function jc(e){return new ha(e,!1)}var Wn={draw(e,t){let r=We(t/Hr);e.moveTo(r,0),e.arc(0,0,r,0,Ln)}};var Lc={draw(e,t){let r=We(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};var Vp=We(1/3),ZS=Vp*2,zc={draw(e,t){let r=We(t/ZS),n=r*Vp;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}};var Bc={draw(e,t){let r=We(t),n=-r/2;e.rect(n,n,r,r)}};var QS=.8908130915292852,Up=Vo(Hr/10)/Vo(7*Hr/10),JS=Vo(Ln/10)*Up,eO=-Dc(Ln/10)*Up,Fc={draw(e,t){let r=We(t*QS),n=JS*r,o=eO*r;e.moveTo(0,-r),e.lineTo(n,o);for(let i=1;i<5;++i){let a=Ln*i/5,s=Dc(a),l=Vo(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*o,l*n+s*o)}e.closePath()}};var Wc=We(3),Vc={draw(e,t){let r=-We(t/(Wc*3));e.moveTo(0,r*2),e.lineTo(-Wc*r,-r),e.lineTo(Wc*r,-r),e.closePath()}};var Et=-.5,Ct=We(3)/2,Uc=1/We(12),tO=(Uc/2+1)*3,$c={draw(e,t){let r=We(t/tO),n=r/2,o=r*Uc,i=n,a=r*Uc+r,s=-i,l=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Et*n-Ct*o,Ct*n+Et*o),e.lineTo(Et*i-Ct*a,Ct*i+Et*a),e.lineTo(Et*s-Ct*l,Ct*s+Et*l),e.lineTo(Et*n+Ct*o,Et*o-Ct*n),e.lineTo(Et*i+Ct*a,Et*a-Ct*i),e.lineTo(Et*s+Ct*l,Et*l-Ct*s),e.closePath()}};function va(e,t){let r=null,n=zn(o);e=typeof e=="function"?e:ce(e||Wn),t=typeof t=="function"?t:ce(t===void 0?64:+t);function o(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:ce(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:ce(+i),o):t},o.context=function(i){return arguments.length?(r=i??null,o):r},o}function Vn(){}function Un(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function $p(e){this._context=e}$p.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Un(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Un(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Kc(e){return new $p(e)}function Kp(e){this._context=e}Kp.prototype={areaStart:Vn,areaEnd:Vn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Un(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qc(e){return new Kp(e)}function qp(e){this._context=e}qp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Un(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Gc(e){return new qp(e)}function Gp(e){this._context=e}Gp.prototype={areaStart:Vn,areaEnd:Vn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Hc(e){return new Gp(e)}function Hp(e){return e<0?-1:1}function Yp(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0),s=(i*o+a*n)/(n+o);return(Hp(i)+Hp(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function Xp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Yc(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,o+s*t,i-s,a-s*r,i,a)}function ya(e){this._context=e}ya.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Yc(this,this._t0,Xp(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Yc(this,Xp(this,r=Yp(this,e,t)),r);break;default:Yc(this,this._t0,r=Yp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Zp(e){this._context=new Qp(e)}(Zp.prototype=Object.create(ya.prototype)).point=function(e,t){ya.prototype.point.call(this,t,e)};function Qp(e){this._context=e}Qp.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}};function Xc(e){return new ya(e)}function Zc(e){return new Zp(e)}function em(e){this._context=e}em.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Jp(e),o=Jp(t),i=0,a=1;a=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Jc(e){return new ga(e,.5)}function eu(e){return new ga(e,0)}function tu(e){return new ga(e,1)}function pt(e,t){if((a=e.length)>1)for(var r=1,n,o,i=e[t[0]],a,s=i.length;r=0;)r[t]=t;return r}function rO(e,t){return e[t]}function nO(e){let t=[];return t.key=e,t}function ru(){var e=ce([]),t=$n,r=pt,n=rO;function o(i){var a=Array.from(e.apply(this,arguments),nO),s,l=a.length,c=-1,u;for(let f of i)for(s=0,++c;s0){for(var r,n,o=0,i=e[0].length,a;o0){for(var r=0,n=e[t[0]],o,i=n.length;r0)||!((i=(o=e[t[0]]).length)>0))){for(var r=0,n=1,o,i,a;n1&&arguments[1]!==void 0?arguments[1]:aO,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function he(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{var s=r[a-1];return typeof s=="string"?o+s+i:s!==void 0?o+qt(s)+i:o+i},"")}var Ne=e=>e===0?0:e>0?1:-1,lt=e=>typeof e=="number"&&e!=+e,sr=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,U=e=>(typeof e=="number"||e instanceof Number)&&!lt(e),rt=e=>U(e)||typeof e=="string",sO=0,lr=e=>{var t=++sO;return"".concat(e||"").concat(t)},kt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!U(t)&&typeof t!="string")return n;var i;if(sr(t)){if(r==null)return n;var a=t.indexOf("%");i=r*parseFloat(t.slice(0,a))/100}else i=+t;return lt(i)&&(i=n),o&&r!=null&&i>r&&(i=r),i},su=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;nn&&(typeof t=="function"?t(n):mt(n,t))===r)}var ve=e=>e===null||typeof e>"u",cr=e=>ve(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Ke(e){return e!=null}function ht(){}var lO=["type","size","sizeType"];function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t="symbol".concat(cr(e));return om[t]||Wn},vO=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*mO;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},yO=(e,t)=>{om["symbol".concat(cr(e))]=t},cu=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,o=dO(e,lO),i=rm(rm({},o),{},{type:t,size:r,sizeType:n}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var d=hO(a),p=va().type(d).size(vO(r,n,a)),h=p();if(h!==null)return h},{className:l,cx:c,cy:u}=i,f=me(i);return U(c)&&U(u)&&U(r)?nm.createElement("path",lu({},f,{className:Q("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};cu.registerSymbol=yO;import{isValidElement as gO}from"react";var Pa=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Gn=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(gO(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(o=>{Wo(o)&&typeof r[o]=="function"&&(n[o]=t||(i=>r[o](r,i)))}),n},xO=(e,t,r)=>n=>(e(t,r,n),null),im=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(o=>{var i=e[o];Wo(o)&&typeof i=="function"&&(n||(n={}),n[o]=xO(i,t,r))}),n};function am(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function bO(e){for(var t=1;t(a[s]===void 0&&n[s]!==void 0&&(a[s]=n[s]),a),r);return i}function sm(e,t){let r=new Map;for(let n=0;nObject.prototype.propertyIsEnumerable.call(e,t))}function Hn(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var dm="[object RegExp]",Oa="[object String]",Aa="[object Number]",Ea="[object Boolean]",Ca="[object Arguments]",pm="[object Symbol]",mm="[object Date]",hm="[object Map]",vm="[object Set]",ym="[object Array]";var gm="[object ArrayBuffer]",xm="[object Object]";var bm="[object DataView]",wm="[object Uint8Array]",Pm="[object Uint8ClampedArray]",Sm="[object Uint16Array]",Om="[object Uint32Array]";var Am="[object Int8Array]",Em="[object Int16Array]",Cm="[object Int32Array]";var km="[object Float32Array]",_m="[object Float64Array]";var uu=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}();function Im(e){return typeof uu.Buffer<"u"&&uu.Buffer.isBuffer(e)}function Tm(e,t){return kr(e,void 0,e,new Map,t)}function kr(e,t,r,n=new Map,o=void 0){let i=o?.(e,t,r,n);if(i!==void 0)return i;if($o(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let a=new Array(e.length);n.set(e,a);for(let s=0;s{}):fu(e,t,function n(o,i,a,s,l,c){let u=r(o,i,a,s,l,c);return u!==void 0?!!u:fu(o,i,n,c)},new Map)}function fu(e,t,r,n){if(t===e)return!0;switch(typeof t){case"object":return AO(e,t,r,n);case"function":return Object.keys(t).length>0?fu(e,{...t},r,n):Ko(e,t);default:return ka(e)?typeof t=="string"?t==="":!0:Ko(e,t)}}function AO(e,t,r,n){if(t==null)return!0;if(Array.isArray(t))return Mm(e,t,r,n);if(t instanceof Map)return EO(e,t,r,n);if(t instanceof Set)return CO(e,t,r,n);let o=Object.keys(t);if(e==null||$o(e))return o.length===0;if(o.length===0)return!0;if(n?.has(t))return n.get(t)===e;n?.set(t,e);try{for(let i=0;i{})}function Nm(e){return e=Dm(e),t=>_a(t,e)}function Rm(e,t){return Tm(e,(r,n,o,i)=>{let a=t?.(r,n,o,i);if(a!==void 0)return a;if(typeof e=="object"){if(Hn(e)==="[object Object]"&&typeof e.constructor!="function"){let s={};return i.set(e,s),_t(s,e,o,i),s}switch(Object.prototype.toString.call(e)){case Aa:case Oa:case Ea:{let s=new e.constructor(e?.valueOf());return _t(s,e),s}case Ca:{let s={};return _t(s,e),s.length=e.length,s[Symbol.iterator]=e[Symbol.iterator],s}default:return}}})}function jm(e){return Rm(e)}var kO=/^(?:0|[1-9]\d*)$/;function Ia(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e=0}function Ta(e){return e!=null&&typeof e!="function"&&Wm(e.length)}function Vm(e){return typeof e=="object"&&e!==null}function Um(e){return Vm(e)&&Ta(e)}function Da(e,t=Sa){return Um(e)?sm(Array.from(e),lm(Fm(t),1)):[]}function $m(e,t,r){return t===!0?Da(e,r):typeof t=="function"?Da(e,t):e}import*as pu from"react";var{useRef:_O,useEffect:IO,useMemo:TO,useDebugValue:DO}=pu;function mu(e,t,r,n,o){let i=_O(null),a;i.current===null?(a={hasValue:!1,value:null},i.current=a):a=i.current;let[s,l]=TO(()=>{let u=!1,f,d,p=y=>{if(!u){u=!0,f=y;let E=n(y);if(o!==void 0&&a.hasValue){let _=a.value;if(o(_,E))return d=_,_}return d=E,E}let O=f,P=d;if(Object.is(O,y))return P;let C=n(y);return o!==void 0&&o(P,C)?(f=y,P):(f=y,d=C,C)},h=r===void 0?null:r;return[()=>p(t()),h===null?void 0:()=>p(h())]},[t,r,n,o]),c=pu.useSyncExternalStore(e,s,l);return IO(()=>{a.hasValue=!0,a.value=c},[c]),DO(c),c}import{useContext as Km,useMemo as NO}from"react";import{createContext as MO}from"react";var qo=MO(null);var RO=e=>e,ie=()=>{var e=Km(qo);return e?e.store.dispatch:RO},Ma=()=>{},jO=()=>Ma,LO=(e,t)=>e===t;function q(e){var t=Km(qo),r=NO(()=>t?n=>{if(n!=null)return e(n)}:Ma,[t,e]);return mu(t?t.subscription.addNestedSub:jO,t?t.store.getState:Ma,t?t.store.getState:Ma,r,LO)}function zO(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function BO(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function FO(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){let r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var qm=e=>Array.isArray(e)?e:[e];function WO(e){let t=Array.isArray(e[0])?e[0]:e;return FO(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function VO(e,t){let r=[],{length:n}=e;for(let o=0;o{r=Na(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function qO(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,a=0,s,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),zO(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);let u={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:p=Hm,argsMemoizeOptions:h=[],devModeChecks:m={}}=u,v=qm(d),y=qm(h),O=WO(o),P=f(function(){return i++,c.apply(null,arguments)},...v),C=!0,E=p(function(){a++;let D=VO(O,arguments);return s=P.apply(null,D),s},...y);return Object.assign(E,{resultFunc:c,memoizedResultFunc:P,dependencies:O,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:p})};return Object.assign(n,{withTypes:()=>n}),n}var I=qO(Hm),GO=Object.assign((e,t=I)=>{BO(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((a,s,l)=>(a[r[l]]=s,a),{}))},{withTypes:()=>GO});function Ym(e,t=1){let r=[],n=Math.floor(t),o=(i,a)=>{for(let s=0;s{if(e!==t){let n=Xm(e),o=Xm(t);if(n===o&&n===0){if(et)return r==="desc"?-1:1}return r==="desc"?o-n:n-o}return 0};function Ra(e){return typeof e=="symbol"||e instanceof Symbol}var HO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YO=/^\w*$/;function Qm(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Ra(e)?!0:typeof e=="string"&&(YO.test(e)||!HO.test(e))||t!=null&&Object.hasOwn(t,e)}function Jm(e,t,r,n){if(e==null)return[];r=n?void 0:r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(s=>String(s));let o=(s,l)=>{let c=s;for(let u=0;ul==null||s==null?l:typeof s=="object"&&"key"in s?Object.hasOwn(l,s.key)?l[s.key]:o(l,s.path):typeof s=="function"?s(l):Array.isArray(s)?o(l,s):typeof l=="object"?l[s]:l,a=t.map(s=>(Array.isArray(s)&&s.length===1&&(s=s[0]),s==null||typeof s=="function"||Array.isArray(s)||Qm(s)?s:{key:s,path:qn(s)}));return e.map(s=>({original:s,criteria:a.map(l=>i(l,s))})).slice().sort((s,l)=>{for(let c=0;cs.original)}function ur(e,...t){let r=t.length;return r>1&&Go(e,t[0],t[1])?t=[]:r>2&&Go(t[0],t[1],t[2])&&(t=[t[0]]),Jm(e,Ym(t),["asc"])}var hu=e=>e.legend.settings,eh=e=>e.legend.size,XO=e=>e.legend.payload,L4=I([XO,hu],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?ur(n,r):n});import{useCallback as ZO,useState as QO}from"react";var ja=1;function th(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=QO({height:0,left:0,top:0,width:0}),n=ZO(o=>{if(o!=null){var i=o.getBoundingClientRect(),a={height:i.height,left:i.left,top:i.top,width:i.width};(Math.abs(a.height-t.height)>ja||Math.abs(a.left-t.left)>ja||Math.abs(a.top-t.top)>ja||Math.abs(a.width-t.width)>ja)&&r({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}import{useEffect as NE}from"react";function qe(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var JO=typeof Symbol=="function"&&Symbol.observable||"@@observable",rh=JO,vu=()=>Math.random().toString(36).substring(7).split("").join("."),eA={INIT:`@@redux/INIT${vu()}`,REPLACE:`@@redux/REPLACE${vu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${vu()}`},La=eA;function za(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function yu(e,t,r){if(typeof e!="function")throw new Error(qe(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(qe(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(qe(1));return r(yu)(e,t)}let n=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((v,y)=>{a.set(y,v)}))}function u(){if(l)throw new Error(qe(3));return o}function f(v){if(typeof v!="function")throw new Error(qe(4));if(l)throw new Error(qe(5));let y=!0;c();let O=s++;return a.set(O,v),function(){if(y){if(l)throw new Error(qe(6));y=!1,c(),a.delete(O),i=null}}}function d(v){if(!za(v))throw new Error(qe(7));if(typeof v.type>"u")throw new Error(qe(8));if(typeof v.type!="string")throw new Error(qe(17));if(l)throw new Error(qe(9));try{l=!0,o=n(o,v)}finally{l=!1}return(i=a).forEach(O=>{O()}),v}function p(v){if(typeof v!="function")throw new Error(qe(10));n=v,d({type:La.REPLACE})}function h(){let v=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(qe(11));function O(){let C=y;C.next&&C.next(u())}return O(),{unsubscribe:v(O)}},[rh](){return this}}}return d({type:La.INIT}),{dispatch:d,subscribe:f,getState:u,replaceReducer:p,[rh]:h}}function tA(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:La.INIT})>"u")throw new Error(qe(12));if(typeof r(void 0,{type:La.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(qe(13))})}function Ba(e){let t=Object.keys(e),r={};for(let a=0;a"u"){let v=l&&l.type;throw new Error(qe(14))}u[d]=m,c=c||m!==h}return c=c||n.length!==Object.keys(s).length,c?u:s}}function Ho(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function nh(...e){return t=>(r,n)=>{let o=t(r,n),i=()=>{throw new Error(qe(15))},a={getState:o.getState,dispatch:(l,...c)=>i(l,...c)},s=e.map(l=>l(a));return i=Ho(...s)(o.dispatch),{...o,dispatch:i}}}function gu(e){return za(e)&&"type"in e&&typeof e.type=="string"}var ph=Symbol.for("immer-nothing"),oh=Symbol.for("immer-draftable"),nt=Symbol.for("immer-state");function zt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var vt=Object,Xn=vt.getPrototypeOf,Ua="constructor",Ya="prototype",wu="configurable",$a="enumerable",Wa="writable",Yo="value",Gt=e=>!!e&&!!e[nt];function It(e){return e?mh(e)||Za(e)||!!e[oh]||!!e[Ua]?.[oh]||Qa(e)||Ja(e):!1}var rA=vt[Ya][Ua].toString(),ih=new WeakMap;function mh(e){if(!e||!_u(e))return!1;let t=Xn(e);if(t===null||t===vt[Ya])return!0;let r=vt.hasOwnProperty.call(t,Ua)&&t[Ua];if(r===Object)return!0;if(!Yn(r))return!1;let n=ih.get(r);return n===void 0&&(n=Function.toString.call(r),ih.set(r,n)),n===rA}function Xa(e,t,r=!0){Qo(e)===0?(r?Reflect.ownKeys(e):vt.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function Qo(e){let t=e[nt];return t?t.type_:Za(e)?1:Qa(e)?2:Ja(e)?3:0}var ah=(e,t,r=Qo(e))=>r===2?e.has(t):vt[Ya].hasOwnProperty.call(e,t),Pu=(e,t,r=Qo(e))=>r===2?e.get(t):e[t],Ka=(e,t,r,n=Qo(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function nA(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Za=Array.isArray,Qa=e=>e instanceof Map,Ja=e=>e instanceof Set,_u=e=>typeof e=="object",Yn=e=>typeof e=="function",xu=e=>typeof e=="boolean";function oA(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var fr=e=>e.copy_||e.base_;var Iu=e=>e.modified_?e.copy_:e.base_;function Su(e,t){if(Qa(e))return new Map(e);if(Ja(e))return new Set(e);if(Za(e))return Array[Ya].slice.call(e);let r=mh(e);if(t===!0||t==="class_only"&&!r){let n=vt.getOwnPropertyDescriptors(e);delete n[nt];let o=Reflect.ownKeys(n);for(let i=0;i1&&vt.defineProperties(e,{set:Fa,add:Fa,clear:Fa,delete:Fa}),vt.freeze(e),t&&Xa(e,(r,n)=>{Tu(n,!0)},!1)),e}function iA(){zt(2)}var Fa={[Yo]:iA};function es(e){return e===null||!_u(e)?!0:vt.isFrozen(e)}var qa="MapSet",Ou="Patches",sh="ArrayMethods",hh={};function Zr(e){let t=hh[e];return t||zt(0,e),t}var lh=e=>!!hh[e];var Xo,vh=()=>Xo,aA=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:lh(qa)?Zr(qa):void 0,arrayMethodsPlugin_:lh(sh)?Zr(sh):void 0});function ch(e,t){t&&(e.patchPlugin_=Zr(Ou),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Au(e){Eu(e),e.drafts_.forEach(sA),e.drafts_=null}function Eu(e){e===Xo&&(Xo=e.parent_)}var uh=e=>Xo=aA(Xo,e);function sA(e){let t=e[nt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function fh(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[nt].modified_&&(Au(t),zt(4)),It(e)&&(e=dh(t,e));let{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[nt].base_,e,t)}else e=dh(t,r);return lA(t,e,!0),Au(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ph?e:void 0}function dh(e,t){if(es(t))return t;let r=t[nt];if(!r)return Ga(t,e.handledSet_,e);if(!ts(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);xh(r,e)}return r.copy_}function lA(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Tu(t,r)}function yh(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ts=(e,t)=>e.scope_===t,cA=[];function gh(e,t,r,n){let o=fr(e),i=e.type_;if(n!==void 0&&Pu(o,n,i)===t){Ka(o,n,r,i);return}if(!e.draftLocations_){let s=e.draftLocations_=new Map;Xa(o,(l,c)=>{if(Gt(c)){let u=s.get(c)||[];u.push(l),s.set(c,u)}})}let a=e.draftLocations_.get(t)??cA;for(let s of a)Ka(o,s,r,i)}function uA(e,t,r){e.callbacks_.push(function(o){let i=t;if(!i||!ts(i,o))return;o.mapSetPlugin_?.fixSetContents(i);let a=Iu(i);gh(e,i.draft_??i,a,r),xh(i,o)})}function xh(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let o=n.getPath(e);o&&n.generatePatches_(e,o,t)}yh(e)}}function fA(e,t,r){let{scope_:n}=e;if(Gt(r)){let o=r[nt];ts(o,n)&&o.callbacks_.push(function(){Va(e);let a=Iu(o);gh(e,r,a,t)})}else It(r)&&e.callbacks_.push(function(){let i=fr(e);e.type_===3?i.has(r)&&Ga(r,n.handledSet_,n):Pu(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ga(Pu(e.copy_,t,e.type_),n.handledSet_,n)})}function Ga(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Gt(e)||t.has(e)||!It(e)||es(e)||(t.add(e),Xa(e,(n,o)=>{if(Gt(o)){let i=o[nt];if(ts(i,r)){let a=Iu(i);Ka(e,n,a,e.type_),yh(i)}}else It(o)&&Ga(o,t,r)})),e}function dA(e,t){let r=Za(e),n={type_:r?1:0,scope_:t?t.scope_:vh(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=n,i=Ha;r&&(o=[n],i=Zo);let{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,[s,n]}var Ha={get(e,t){if(t===nt)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let o=fr(e);if(!ah(o,t,e.type_))return pA(e,o,t);let i=o[t];if(e.finalized_||!It(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&oA(t))return i;if(i===bu(e.base_,t)){Va(e);let a=e.type_===1?+t:t,s=ku(e.scope_,i,e,a);return e.copy_[a]=s}return i},has(e,t){return t in fr(e)},ownKeys(e){return Reflect.ownKeys(fr(e))},set(e,t,r){let n=bh(fr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let o=bu(fr(e),t),i=o?.[nt];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(nA(r,o)&&(r!==void 0||ah(e.base_,t,e.type_)))return!0;Va(e),Cu(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),fA(e,t,r)),!0},deleteProperty(e,t){return Va(e),bu(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Cu(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=fr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Wa]:!0,[wu]:e.type_!==1||t!=="length",[$a]:n[$a],[Yo]:r[t]}},defineProperty(){zt(11)},getPrototypeOf(e){return Xn(e.base_)},setPrototypeOf(){zt(12)}},Zo={};for(let e in Ha){let t=Ha[e];Zo[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Zo.deleteProperty=function(e,t){return Zo.set.call(this,e,t,void 0)};Zo.set=function(e,t,r){return Ha.set.call(this,e[0],t,r,e[0])};function bu(e,t){let r=e[nt];return(r?fr(r):e)[t]}function pA(e,t,r){let n=bh(t,r);return n?Yo in n?n[Yo]:n.get?.call(e.draft_):void 0}function bh(e,t){if(!(t in e))return;let r=Xn(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Xn(r)}}function Cu(e){e.modified_||(e.modified_=!0,e.parent_&&Cu(e.parent_))}function Va(e){e.copy_||(e.assigned_=new Map,e.copy_=Su(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var mA=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Yn(t)&&!Yn(r)){let i=r;r=t;let a=this;return function(l=i,...c){return a.produce(l,u=>r.call(this,u,...c))}}Yn(r)||zt(6),n!==void 0&&!Yn(n)&&zt(7);let o;if(It(t)){let i=uh(this),a=ku(i,t,void 0),s=!0;try{o=r(a),s=!1}finally{s?Au(i):Eu(i)}return ch(i,n),fh(o,i)}else if(!t||!_u(t)){if(o=r(t),o===void 0&&(o=t),o===ph&&(o=void 0),this.autoFreeze_&&Tu(o,!0),n){let i=[],a=[];Zr(Ou).generateReplacementPatches_(t,o,{patches_:i,inversePatches_:a}),n(i,a)}return o}else zt(1,t)},this.produceWithPatches=(t,r)=>{if(Yn(t))return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let n,o;return[this.produce(t,r,(a,s)=>{n=a,o=s}),n,o]},xu(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),xu(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),xu(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){It(e)||zt(8),Gt(e)&&(e=Ge(e));let t=uh(this),r=ku(t,e,void 0);return r[nt].isManual_=!0,Eu(t),r}finishDraft(e,t){let r=e&&e[nt];(!r||!r.isManual_)&&zt(9);let{scope_:n}=r;return ch(n,t),fh(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));let n=Zr(Ou).applyPatches_;return Gt(e)?n(e,t):this.produce(e,o=>n(o,t))}};function ku(e,t,r,n){let[o,i]=Qa(t)?Zr(qa).proxyMap_(t,r):Ja(t)?Zr(qa).proxySet_(t,r):dA(t,r);return(r?.scope_??vh()).drafts_.push(o),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?uA(r,i,n):i.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:c}=l;i.modified_&&c&&c.generatePatches_(i,[],l)}),o}function Ge(e){return Gt(e)||zt(10,e),wh(e)}function wh(e){if(!It(e)||es(e))return e;let t=e[nt],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Su(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Su(e,!0);return Xa(r,(o,i)=>{Ka(r,o,wh(i))},n),t&&(t.finalized_=!1),r}var hA=new mA,Du=hA.produce;function Ph(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var Sh=Ph(),Oh=Ph;var vA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ho:Ho.apply(null,arguments)},H4=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},yA=e=>e&&typeof e.match=="function";function Me(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(yt(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>gu(n)&&n.type===e,r}var Dh=class Jo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Jo.prototype)}static get[Symbol.species](){return Jo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Jo(...t[0].concat(this)):new Jo(...t.concat(this))}};function Ah(e){return It(e)?Du(e,()=>{}):e}function rs(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function gA(e){return typeof e=="boolean"}var xA=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{},a=new Dh;return r&&(gA(r)?a.push(Sh):a.push(Oh(r.extraArgument))),a},Mh="RTK_autoBatch",ue=()=>e=>({payload:e,meta:{[Mh]:!0}}),Eh=e=>t=>{setTimeout(t,e)},bA=(e,t)=>r=>{let n=!1,o=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(a),r())},i=e(o),a=setTimeout(o,t)},ju=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),o=!0,i=!1,a=!1,s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?bA(window.requestAnimationFrame,100):Eh(10):e.type==="callback"?e.queueNotification:Eh(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let f=()=>o&&u(),d=n.subscribe(f);return s.add(u),()=>{d(),s.delete(u)}},dispatch(u){try{return o=!u?.meta?.[Mh],i=!o,i&&(a||(a=!0,l(c))),n.dispatch(u)}finally{o=!0}}})},wA=e=>function(r){let{autoBatch:n=!0}=r??{},o=new Dh(e);return n&&o.push(ju(typeof n=="object"?n:void 0)),o};function Nh(e){let t=xA(),{reducer:r=void 0,middleware:n,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{},l;if(typeof r=="function")l=r;else if(za(r))l=Ba(r);else throw new Error(yt(1));let c;typeof n=="function"?c=n(t):c=t();let u=Ho;o&&(u=vA({trace:!1,...typeof o=="object"&&o}));let f=nh(...c),d=wA(f),p=typeof s=="function"?s(d):d(),h=u(...p);return yu(l,a,h)}function Rh(e){let t={},r=[],n,o={addCase(i,a){let s=typeof i=="string"?i:i.type;if(!s)throw new Error(yt(28));if(s in t)throw new Error(yt(29));return t[s]=a,o},addAsyncThunk(i,a){return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:i.settled,reducer:a.settled}),o},addMatcher(i,a){return r.push({matcher:i,reducer:a}),o},addDefaultCase(i){return n=i,o}};return e(o),[t,r,n]}function PA(e){return typeof e=="function"}function SA(e,t){let[r,n,o]=Rh(t),i;if(PA(e))i=()=>Ah(e());else{let s=Ah(e);i=()=>s}function a(s=i(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,f)=>{if(f)if(Gt(u)){let p=f(u,l);return p===void 0?u:p}else{if(It(u))return Du(u,d=>f(d,l));{let d=f(u,l);if(d===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return u},s)}return a.getInitialState=i,a}var OA=(e,t)=>yA(e)?e.match(t):e(t);function AA(...e){return t=>e.some(r=>OA(r,t))}var EA="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",jh=(e=21)=>{let t="",r=e;for(;r--;)t+=EA[Math.random()*64|0];return t},CA=["name","message","stack","code"],Mu=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Ch=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},kA=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of CA)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},kh="External signal was aborted",_A=(()=>{function e(t,r,n){let o=Me(t+"/fulfilled",(l,c,u,f)=>({payload:l,meta:{...f||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),i=Me(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),a=Me(t+"/rejected",(l,c,u,f,d)=>({payload:f,error:(n&&n.serializeError||kA)(l||"Rejected"),meta:{...d||{},arg:u,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function s(l,{signal:c}={}){return(u,f,d)=>{let p=n?.idGenerator?n.idGenerator(l):jh(),h=new AbortController,m,v;function y(P){v=P,h.abort()}c&&(c.aborted?y(kh):c.addEventListener("abort",()=>y(kh),{once:!0}));let O=async function(){let P;try{let E=n?.condition?.(l,{getState:f,extra:d});if(TA(E)&&(E=await E),E===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let _=new Promise((D,k)=>{m=()=>{k({name:"AbortError",message:v||"Aborted"})},h.signal.addEventListener("abort",m,{once:!0})});u(i(p,l,n?.getPendingMeta?.({requestId:p,arg:l},{getState:f,extra:d}))),P=await Promise.race([_,Promise.resolve(r(l,{dispatch:u,getState:f,extra:d,requestId:p,signal:h.signal,abort:y,rejectWithValue:(D,k)=>new Mu(D,k),fulfillWithValue:(D,k)=>new Ch(D,k)})).then(D=>{if(D instanceof Mu)throw D;return D instanceof Ch?o(D.payload,p,l,D.meta):o(D,p,l)})])}catch(E){P=E instanceof Mu?a(null,p,l,E.payload,E.meta):a(E,p,l)}finally{m&&h.signal.removeEventListener("abort",m)}return n&&!n.dispatchConditionRejection&&a.match(P)&&P.meta.condition||u(P),P}();return Object.assign(O,{abort:y,requestId:p,arg:l,unwrap(){return O.then(IA)}})}}return Object.assign(s,{pending:i,rejected:a,fulfilled:o,settled:AA(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function IA(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function TA(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Lh=Symbol.for("rtk-slice-createasyncthunk"),X4={[Lh]:_A};function DA(e,t){return`${e}/${t}`}function MA({creators:e}={}){let t=e?.asyncThunk?.[Lh];return function(n){let{name:o,reducerPath:i=o}=n;if(!o)throw new Error(yt(11));typeof process<"u";let a=(typeof n.reducers=="function"?n.reducers(RA()):n.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(P,C){let E=typeof P=="string"?P:P.type;if(!E)throw new Error(yt(12));if(E in l.sliceCaseReducersByType)throw new Error(yt(13));return l.sliceCaseReducersByType[E]=C,c},addMatcher(P,C){return l.sliceMatchers.push({matcher:P,reducer:C}),c},exposeAction(P,C){return l.actionCreators[P]=C,c},exposeCaseReducer(P,C){return l.sliceCaseReducersByName[P]=C,c}};s.forEach(P=>{let C=a[P],E={reducerName:P,type:DA(o,P),createNotation:typeof n.reducers=="function"};LA(C)?BA(E,C,c,t):jA(E,C,c)});function u(){let[P={},C=[],E=void 0]=typeof n.extraReducers=="function"?Rh(n.extraReducers):[n.extraReducers],_={...P,...l.sliceCaseReducersByType};return SA(n.initialState,D=>{for(let k in _)D.addCase(k,_[k]);for(let k of l.sliceMatchers)D.addMatcher(k.matcher,k.reducer);for(let k of C)D.addMatcher(k.matcher,k.reducer);E&&D.addDefaultCase(E)})}let f=P=>P,d=new Map,p=new WeakMap,h;function m(P,C){return h||(h=u()),h(P,C)}function v(){return h||(h=u()),h.getInitialState()}function y(P,C=!1){function E(D){let k=D[P];return typeof k>"u"&&C&&(k=rs(p,E,v)),k}function _(D=f){let k=rs(d,C,()=>new WeakMap);return rs(k,D,()=>{let B={};for(let[L,H]of Object.entries(n.selectors??{}))B[L]=NA(H,D,()=>rs(p,D,v),C);return B})}return{reducerPath:P,getSelectors:_,get selectors(){return _(E)},selectSlice:E}}let O={name:o,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...y(i),injectInto(P,{reducerPath:C,...E}={}){let _=C??i;return P.inject({reducerPath:_,reducer:m},E),{...O,...y(_,!0)}}};return O}}function NA(e,t,r,n){function o(i,...a){let s=t(i);return typeof s>"u"&&n&&(s=r()),e(s,...a)}return o.unwrapped=e,o}var se=MA();function RA(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function jA({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!zA(n))throw new Error(yt(17));i=n.reducer,a=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Me(e,a):Me(e))}function LA(e){return e._reducerDefinitionType==="asyncThunk"}function zA(e){return e._reducerDefinitionType==="reducerWithPrepare"}function BA({type:e,reducerName:t},r,n,o){if(!o)throw new Error(yt(18));let{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=r,f=o(e,i,u);n.exposeAction(t,f),a&&n.addCase(f.fulfilled,a),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:a||ns,pending:s||ns,rejected:l||ns,settled:c||ns})}function ns(){}var FA="task",zh="listener",Bh="completed",Lu="cancelled",WA=`task-${Lu}`,VA=`task-${Bh}`,Nu=`${zh}-${Lu}`,UA=`${zh}-${Bh}`,as=class{constructor(e){this.code=e,this.message=`${FA} ${Lu} (reason: ${e})`}code;name="TaskAbortError";message},zu=(e,t)=>{if(typeof e!="function")throw new TypeError(yt(32))},os=()=>{},Fh=(e,t=os)=>(e.catch(t),e),Wh=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Qr=e=>{if(e.aborted)throw new as(e.reason)};function Vh(e,t){let r=os;return new Promise((n,o)=>{let i=()=>o(new as(e.reason));if(e.aborted){i();return}r=Wh(e,i),t.finally(()=>r()).then(n,o)}).finally(()=>{r=os})}var $A=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof as?"cancelled":"rejected",error:r}}finally{t?.()}},is=e=>t=>Fh(Vh(e,t).then(r=>(Qr(e),r))),Uh=e=>{let t=is(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Zn}=Object,_h={},ss="listenerMiddleware",KA=(e,t)=>{let r=n=>Wh(e,()=>n.abort(e.reason));return(n,o)=>{zu(n,"taskExecutor");let i=new AbortController;r(i);let a=$A(async()=>{Qr(e),Qr(i.signal);let s=await n({pause:is(i.signal),delay:Uh(i.signal),signal:i.signal});return Qr(i.signal),s},()=>i.abort(VA));return o?.autoJoin&&t.push(a.catch(os)),{result:is(e)(a),cancel(){i.abort(WA)}}}},qA=(e,t)=>{let r=async(n,o)=>{Qr(t);let i=()=>{},s=[new Promise((l,c)=>{let u=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});i=()=>{u(),c()}})];o!=null&&s.push(new Promise(l=>setTimeout(l,o,null)));try{let l=await Vh(t,Promise.race(s));return Qr(t),l}finally{i()}};return(n,o)=>Fh(r(n,o))},$h=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:i}=e;if(t)o=Me(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(!o)throw new Error(yt(21));return zu(i,"options.listener"),{predicate:o,type:t,effect:i}},Kh=Zn(e=>{let{type:t,predicate:r,effect:n}=$h(e);return{id:jh(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(yt(22))}}},{withTypes:()=>Kh}),Ih=(e,t)=>{let{type:r,effect:n,predicate:o}=$h(t);return Array.from(e.values()).find(i=>(typeof r=="string"?i.type===r:i.predicate===o)&&i.effect===n)},Ru=e=>{e.pending.forEach(t=>{t.abort(Nu)})},GA=(e,t)=>()=>{for(let r of t.keys())Ru(r);e.clear()},Th=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},qh=Zn(Me(`${ss}/add`),{withTypes:()=>qh}),HA=Me(`${ss}/removeAll`),Gh=Zn(Me(`${ss}/remove`),{withTypes:()=>Gh}),YA=(...e)=>{console.error(`${ss}/error`,...e)},dr=(e={})=>{let t=new Map,r=new Map,n=p=>{let h=r.get(p)??0;r.set(p,h+1)},o=p=>{let h=r.get(p)??1;h===1?r.delete(p):r.set(p,h-1)},{extra:i,onError:a=YA}=e;zu(a,"onError");let s=p=>(p.unsubscribe=()=>t.delete(p.id),t.set(p.id,p),h=>{p.unsubscribe(),h?.cancelActive&&Ru(p)}),l=p=>{let h=Ih(t,p)??Kh(p);return s(h)};Zn(l,{withTypes:()=>l});let c=p=>{let h=Ih(t,p);return h&&(h.unsubscribe(),p.cancelActive&&Ru(h)),!!h};Zn(c,{withTypes:()=>c});let u=async(p,h,m,v)=>{let y=new AbortController,O=qA(l,y.signal),P=[];try{p.pending.add(y),n(p),await Promise.resolve(p.effect(h,Zn({},m,{getOriginalState:v,condition:(C,E)=>O(C,E).then(Boolean),take:O,delay:Uh(y.signal),pause:is(y.signal),extra:i,signal:y.signal,fork:KA(y.signal,P),unsubscribe:p.unsubscribe,subscribe:()=>{t.set(p.id,p)},cancelActiveListeners:()=>{p.pending.forEach((C,E,_)=>{C!==y&&(C.abort(Nu),_.delete(C))})},cancel:()=>{y.abort(Nu),p.pending.delete(y)},throwIfCancelled:()=>{Qr(y.signal)}})))}catch(C){C instanceof as||Th(a,C,{raisedBy:"effect"})}finally{await Promise.all(P),y.abort(UA),o(p),p.pending.delete(y)}},f=GA(t,r);return{middleware:p=>h=>m=>{if(!gu(m))return h(m);if(qh.match(m))return l(m.payload);if(HA.match(m)){f();return}if(Gh.match(m))return c(m.payload);let v=p.getState(),y=()=>{if(v===_h)throw new Error(yt(23));return v},O;try{if(O=h(m),t.size>0){let P=p.getState(),C=Array.from(t.values());for(let E of C){let _=!1;try{_=E.predicate(m,P,v)}catch(D){_=!1,Th(a,D,{raisedBy:"predicate"})}_&&u(E,m,p,y)}}}finally{v=_h}return O},startListening:l,stopListening:c,clearListeners:f}};function yt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var XA={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Hh=se({name:"chartLayout",initialState:XA,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,o,i;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(i=t.payload.left)!==null&&i!==void 0?i:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Bu,setLayout:Yh,setChartSize:Xh,setScale:Zh}=Hh.actions,Qh=Hh.reducer;function ls(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function te(e){return Number.isFinite(e)}function ct(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Jh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qn(e){for(var t=1;t{if(t&&r){var{width:n,height:o}=r,{align:i,verticalAlign:a,layout:s}=t;if((s==="vertical"||s==="horizontal"&&a==="middle")&&i!=="center"&&U(e[i]))return Qn(Qn({},e),{},{[i]:e[i]+(n||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&a!=="middle"&&U(e[a]))return Qn(Qn({},e),{},{[a]:e[a]+(o||0)})}return e},gt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Fu=(e,t,r,n)=>{if(n)return e.map(s=>s.coordinate);var o,i,a=e.map(s=>(s.coordinate===t&&(o=!0),s.coordinate===r&&(i=!0),s.coordinate));return o||a.push(t),i||a.push(r),a},Wu=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:o,range:i,scale:a,realScaleType:s,isCategorical:l,categoricalDomain:c,tickCount:u,ticks:f,niceTicks:d,axisType:p}=e;if(!a)return null;var h=s==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,m=(t||r)&&o==="category"&&a.bandwidth?a.bandwidth()/h:0;if(m=p==="angleAxis"&&i&&i.length>=2?Ne(i[0]-i[1])*2*m:m,t&&(f||d)){var v=(f||d||[]).map((y,O)=>{var P=n?n.indexOf(y):y,C=a.map(P);return te(C)?{coordinate:C+m,value:y,offset:m,index:O}:null}).filter(Ke);return v}return l&&c?c.map((y,O)=>{var P=a.map(y);return te(P)?{coordinate:P+m,value:y,index:O,offset:m}:null}).filter(Ke):a.ticks&&!r&&u!=null?a.ticks(u).map((y,O)=>{var P=a.map(y);return te(P)?{coordinate:P+m,value:y,index:O,offset:m}:null}).filter(Ke):a.domain().map((y,O)=>{var P=a.map(y);return te(P)?{coordinate:P+m,value:n?n[y]:y,index:O,offset:m}:null}).filter(Ke)};var eE=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o=0?(c[0]=i,i+=d,c[1]=i):(c[0]=a,a+=d,c[1]=a)}}}},tE=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o=0?(l[0]=i,i+=c,l[1]=i):(l[0]=0,l[1]=0)}}}},rE={sign:eE,expand:nu,none:pt,silhouette:ou,wiggle:iu,positive:tE},tv=(e,t,r)=>{var n,o=(n=rE[r])!==null&&n!==void 0?n:pt,i=ru().keys(t).value((s,l)=>Number(Oe(s,l,0))).order($n).offset(o),a=i(e);return a.forEach((s,l)=>{s.forEach((c,u)=>{var f=Oe(e[u],t[l],0);Array.isArray(f)&&f.length===2&&U(f[0])&&U(f[1])&&(c[0]=f[0],c[1]=f[1])})}),a};function Vu(e){var{axis:t,ticks:r,bandSize:n,entry:o,index:i,dataKey:a}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ve(o[t.dataKey])){var s=wa(r,"value",o[t.dataKey]);if(s)return s.coordinate+n/2}return r!=null&&r[i]?r[i].coordinate+n/2:null}var l=Oe(o,ve(a)?t.dataKey:a),c=t.scale.map(l);return U(c)?c:null}var nE=e=>{var t=e.flat(2).filter(U);return[Math.min(...t),Math.max(...t)]},oE=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],rv=(e,t,r)=>{if(e!=null)return oE(Object.keys(e).reduce((n,o)=>{var i=e[o];if(!i)return n;var{stackedData:a}=i,s=a.reduce((l,c)=>{var u=ls(c,t,r),f=nE(u);return!te(f[0])||!te(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},Uu=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$u=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Jn=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=ur(t,u=>u.coordinate),i=1/0,a=1,s=o.length;a{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},ov=(e,t)=>t==="centric"?e.angle:e.radius;var Xe=e=>e.layout.width,Ze=e=>e.layout.height,iv=e=>e.layout.scale,cs=e=>e.layout.margin;var eo=I(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),to=I(e=>e.cartesianAxis.yAxis,e=>Object.values(e));var av="data-recharts-item-index",sv="data-recharts-item-id",Jr=60;function lv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function us(e){for(var t=1;te.brush.height;function cE(e){var t=to(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:Jr;return r+o}return r},0)}function uE(e){var t=to(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:Jr;return r+o}return r},0)}function fE(e){var t=eo(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function dE(e){var t=eo(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var ge=I([Xe,Ze,cs,lE,cE,uE,fE,dE,hu,eh],(e,t,r,n,o,i,a,s,l,c)=>{var u={left:(r.left||0)+o,right:(r.right||0)+i},f={top:(r.top||0)+a,bottom:(r.bottom||0)+s},d=us(us({},f),u),p=d.bottom;d.bottom+=n,d=ev(d,l,c);var h=e-d.left-d.right,m=t-d.top-d.bottom;return us(us({brushBottom:p},d),{},{width:Math.max(h,0),height:Math.max(m,0)})}),cv=I(ge,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),uv=I(Xe,Ze,(e,t)=>({x:0,y:0,width:e,height:t}));import*as pE from"react";import{createContext as mE,useContext as hE}from"react";var vE=mE(null),be=()=>hE(vE)!=null;var ro=e=>e.brush,en=I([ro,ge,cs],(e,t,r)=>({height:e.height,x:U(e.x)?e.x:t.left,y:U(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:U(e.width)?e.width:t.width}));import*as tn from"react";import{createContext as AE,forwardRef as gv,useCallback as EE,useContext as CE,useEffect as kE,useImperativeHandle as _E,useMemo as IE,useRef as yv,useState as TE}from"react";function fv(e,t,{signal:r,edges:n}={}){let o,i=null,a=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),l=()=>{i!==null&&(e.apply(o,i),o=void 0,i=null)},c=()=>{s&&l(),p()},u=null,f=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,c()},t)},d=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{d(),o=void 0,i=null},h=()=>{l()},m=function(...v){if(r?.aborted)return;o=this,i=v;let y=u==null;f(),a&&y&&l()};return m.schedule=f,m.cancel=p,m.flush=h,r?.addEventListener("abort",p,{once:!0}),m}function dv(e,t=0,r={}){typeof r!="object"&&(r={});let{leading:n=!1,trailing:o=!0,maxWait:i}=r,a=Array(2);n&&(a[0]="leading"),o&&(a[1]="trailing");let s,l=null,c=fv(function(...d){s=e.apply(this,d),l=null},t,{edges:a}),u=function(...d){return i!=null&&(l===null&&(l=Date.now()),Date.now()-l>=i)?(s=e.apply(this,d),l=Date.now(),c.cancel(),c.schedule(),s):(c.apply(this,d),s)},f=()=>(c.flush(),s);return u.cancel=c.cancel,u.flush=f,u}function Gu(e,t=0,r={}){let{leading:n=!0,trailing:o=!0}=r;return dv(e,t,{leading:n,maxWait:t,trailing:o})}var yE=!0,no=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;io[a++]))}};var Bt={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Hu=(e,t,r)=>{var{width:n=Bt.width,height:o=Bt.height,aspect:i,maxHeight:a}=r,s=sr(n)?e:Number(n),l=sr(o)?t:Number(o);return i&&i>0&&(s?l=s/i:l&&(s=l*i),a&&l!=null&&l>a&&(l=a)),{calculatedWidth:s,calculatedHeight:l}},gE={width:0,height:0,overflow:"visible"},xE={width:0,overflowX:"visible"},bE={height:0,overflowY:"visible"},wE={},pv=e=>{var{width:t,height:r}=e,n=sr(t),o=sr(r);return n&&o?gE:n?xE:o?bE:wE};function mv(e){var{width:t,height:r,aspect:n}=e,o=t,i=r;return o===void 0&&i===void 0?(o=Bt.width,i=Bt.height):o===void 0?o=n&&n>0?void 0:Bt.width:i===void 0&&(i=n&&n>0?void 0:Bt.height),{width:o,height:i}}function Yu(){return Yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:r,height:n}),[r,n]);return DE(o)?tn.createElement(xv.Provider,{value:o},t):null}var ei=()=>CE(xv),ME=gv((e,t)=>{var{aspect:r,initialDimension:n=Bt.initialDimension,width:o,height:i,minWidth:a=Bt.minWidth,minHeight:s,maxHeight:l,children:c,debounce:u=Bt.debounce,id:f,className:d,onResize:p,style:h={}}=e,m=yv(null),v=yv();v.current=p,_E(t,()=>m.current);var[y,O]=TE({containerWidth:n.width,containerHeight:n.height}),P=EE((k,B)=>{O(L=>{var H=Math.round(k),z=Math.round(B);return L.containerWidth===H&&L.containerHeight===z?L:{containerWidth:H,containerHeight:z}})},[]);kE(()=>{if(m.current==null||typeof ResizeObserver>"u")return ht;var k=z=>{var X,Z=z[0];if(Z!=null){var{width:J,height:g}=Z.contentRect;P(J,g),(X=v.current)===null||X===void 0||X.call(v,J,g)}};u>0&&(k=Gu(k,u,{trailing:!0,leading:!1}));var B=new ResizeObserver(k),{width:L,height:H}=m.current.getBoundingClientRect();return P(L,H),B.observe(m.current),()=>{B.disconnect()}},[P,u]);var{containerWidth:C,containerHeight:E}=y;no(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:_,calculatedHeight:D}=Hu(C,E,{width:o,height:i,aspect:r,maxHeight:l});return no(_!=null&&_>0||D!=null&&D>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,_,D,o,i,a,s,r),tn.createElement("div",{id:f?"".concat(f):void 0,className:Q("recharts-responsive-container",d),style:vv(vv({},h),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:m},tn.createElement("div",{style:pv({width:o,height:i})},tn.createElement(bv,{width:_,height:D},c)))}),Xu=gv((e,t)=>{var r=ei();if(ct(r.width)&&ct(r.height))return e.children;var{width:n,height:o}=mv({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:a}=Hu(void 0,void 0,{width:n,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return U(i)&&U(a)?tn.createElement(bv,{width:i,height:a},e.children):tn.createElement(ME,Yu({},e,{width:n,height:o,ref:t}))});function ti(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var rn=()=>{var e,t=be(),r=q(cv),n=q(en),o=(e=q(ro))===null||e===void 0?void 0:e.padding;return!t||!n||!o?r:{width:n.width-o.left-o.right,height:n.height-o.top-o.bottom,x:o.left,y:o.top}},RE={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},fs=()=>{var e;return(e=q(ge))!==null&&e!==void 0?e:RE},ds=()=>q(Xe),ps=()=>q(Ze);var fe=e=>e.layout.layoutType,Ht=()=>q(fe),wv=()=>{var e=Ht();if(e==="horizontal"||e==="vertical")return e},Zu=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t};var Pv=()=>{var e=Ht();return e!==void 0},nn=e=>{var t=ie(),r=be(),{width:n,height:o}=e,i=ei(),a=n,s=o;return i&&(a=i.width>0?i.width:n,s=i.height>0?i.height:o),NE(()=>{!r&&ct(a)&&ct(s)&&t(Xh({width:a,height:s}))},[t,r,a,s]),null};var jE={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Sv=se({name:"legend",initialState:jE,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:ue()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Ge(e).payload.indexOf(r);o>-1&&(e.payload[o]=n)},prepare:ue()},removeLegendPayload:{reducer(e,t){var r=Ge(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:ue()}}}),{setLegendSize:a3,setLegendSettings:s3,addLegendPayload:Ov,replaceLegendPayload:Av,removeLegendPayload:Ev}=Sv.actions,Cv=Sv.reducer;import*as Ae from"react";var LE=Symbol.for("react.forward_ref");var zE=Symbol.for("react.memo");var BE=LE,FE=zE;function WE(e){e()}function VE(){let e=null,t=null;return{clear(){e=null,t=null},notify(){WE(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0,o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var kv={notify(){},get:()=>[]};function UE(e,t){let r,n=kv,o=0,i=!1;function a(m){u();let v=n.subscribe(m),y=!1;return()=>{y||(y=!0,v(),f())}}function s(){n.notify()}function l(){h.onStateChange&&h.onStateChange()}function c(){return i}function u(){o++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=VE())}function f(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=kv)}function d(){i||(i=!0,u())}function p(){i&&(i=!1,f())}let h={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:p,getListeners:()=>n};return h}var $E=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",KE=$E(),qE=()=>typeof navigator<"u"&&navigator.product==="ReactNative",GE=qE(),HE=()=>KE||GE?Ae.useLayoutEffect:Ae.useEffect,YE=HE();function _v(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Iv(e,t){if(_v(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o{let l=UE(o);return{store:o,subscription:l,getServerState:n?()=>n:void 0}},[o,n]),a=Ae.useMemo(()=>o.getState(),[o]);return YE(()=>{let{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,a]),Ae.createElement((r||t1).Provider,{value:i},t)}var Tv=r1;var n1=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function o1(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function _r(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(n1.has(n)){if(e[n]==null&&t[n]==null)continue;if(!Iv(e[n],t[n]))return!1}else if(!o1(e[n],t[n]))return!1;return!0}import*as Nt from"react";import{useEffect as bD}from"react";import{createPortal as wD}from"react-dom";import*as Ft from"react";function Qu(){return Qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{separator:t=oo.separator,contentStyle:r,itemStyle:n,labelStyle:o=oo.labelStyle,payload:i,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:f,accessibilityLayer:d=oo.accessibilityLayer}=e,p=()=>{if(i&&i.length){var E={padding:0,margin:0},_=c1(i,s),D=_.map((k,B)=>{if(k.type==="none")return null;var L=k.formatter||a||l1,{value:H,name:z}=k,X=H,Z=z;if(L){var J=L(H,z,k,B,i);if(Array.isArray(J))[X,Z]=J;else if(J!=null)X=J;else return null}var g=ri(ri({},oo.itemStyle),{},{color:k.color||oo.itemStyle.color},n);return Ft.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(B),style:g},rt(Z)?Ft.createElement("span",{className:"recharts-tooltip-item-name"},Z):null,rt(Z)?Ft.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,Ft.createElement("span",{className:"recharts-tooltip-item-value"},X),Ft.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return Ft.createElement("ul",{className:"recharts-tooltip-item-list",style:E},D)}return null},h=ri(ri({},oo.contentStyle),r),m=ri({margin:0},o),v=!ve(u),y=v?u:"",O=Q("recharts-default-tooltip",l),P=Q("recharts-tooltip-label",c);v&&f&&i!==void 0&&i!==null&&(y=f(u,i));var C=d?{role:"status","aria-live":"assertive"}:{};return Ft.createElement("div",Qu({className:O,style:h},C),Ft.createElement("p",{className:P,style:m},Ft.isValidElement(y)?y:"".concat(y)),p())};import*as Ir from"react";var ni="recharts-tooltip-wrapper",u1={visibility:"hidden"};function f1(e){var{coordinate:t,translateX:r,translateY:n}=e;return Q(ni,{["".concat(ni,"-right")]:U(r)&&t&&U(t.x)&&r>=t.x,["".concat(ni,"-left")]:U(r)&&t&&U(t.x)&&r=t.y,["".concat(ni,"-top")]:U(n)&&t&&U(t.y)&&n0?o:0),f=r[n]+o;if(t[n])return a[n]?u:f;var d=l[n];if(d==null)return 0;if(a[n]){var p=u,h=d;return pv?Math.max(u,d):Math.max(f,d)}function d1(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Rv(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:o,position:i,reverseDirection:a,tooltipBox:s,useTranslate3d:l,viewBox:c}=e,u,f,d;return s.height>0&&s.width>0&&r?(f=Nv({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),d=Nv({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),u=d1({translateX:f,translateY:d,useTranslate3d:l})):u=u1,{cssProperties:u,cssClasses:f1({translateX:f,translateY:d,coordinate:r})}}import{useEffect as m1,useState as h1}from"react";var p1=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Tt={devToolsEnabled:!0,isSsr:p1()};function ms(){var[e,t]=h1(()=>Tt.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return m1(()=>{if(window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>{t(r.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}}},[]),e}function jv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function io(e){for(var t=1;t({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));Ir.useEffect(()=>{var h=m=>{if(m.key==="Escape"){var v,y,O,P;c({dismissed:!0,dismissedAtCoordinate:{x:(v=(y=e.coordinate)===null||y===void 0?void 0:y.x)!==null&&v!==void 0?v:0,y:(O=(P=e.coordinate)===null||P===void 0?void 0:P.y)!==null&&O!==void 0?O:0}})}};return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(r=e.coordinate)===null||r===void 0?void 0:r.y]),l.dismissed&&(((n=(o=e.coordinate)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)!==l.dismissedAtCoordinate.x||((i=(a=e.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)!==l.dismissedAtCoordinate.y)&&c(io(io({},l),{},{dismissed:!1}));var{cssClasses:u,cssProperties:f}=Rv({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),d=e.hasPortalFromProps?{}:io(io({transition:x1({prefersReducedMotion:s,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},f),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),p=io(io({},d),{},{visibility:!l.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return Ir.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:u,style:p,ref:e.innerRef},e.children)}var Lv=Ir.memo(b1);var hs=()=>{var e;return(e=q(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};import*as ql from"react";import{cloneElement as ZT,createElement as QT,isValidElement as JT}from"react";import*as Uv from"react";function Ju(){return Ju=Object.assign?Object.assign.bind():function(e){for(var t=1;tte(e.x)&&te(e.y),Wv=e=>e.base!=null&&vs(e.base)&&vs(e),oi=e=>e.x,ii=e=>e.y,O1=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(cr(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=Fv["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return Fv[r]||Cr},Vv={connectNulls:!1,type:"linear"},A1=e=>{var{type:t=Vv.type,points:r=[],baseLine:n,layout:o,connectNulls:i=Vv.connectNulls}=e,a=O1(t,o),s=i?r.filter(vs):r;if(Array.isArray(n)){var l,c=r.map((h,m)=>Bv(Bv({},h),{},{base:n[m]}));o==="vertical"?l=Fn().y(ii).x1(oi).x0(h=>h.base.x):l=Fn().x(oi).y1(ii).y0(h=>h.base.y);var u=l.defined(Wv).curve(a),f=i?c.filter(Wv):c;return u(f)}var d;o==="vertical"&&U(n)?d=Fn().y(ii).x1(oi).x0(n):U(n)?d=Fn().x(oi).y1(ii).y0(n):d=Uo().x(oi).y(ii);var p=d.defined(vs).curve(a);return p(s)},ys=e=>{var{className:t,points:r,path:n,pathRef:o}=e,i=Ht();if((!r||!r.length)&&!n)return null;var a={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||i,connectNulls:e.connectNulls},s=r&&r.length?A1(a):n;return Uv.createElement("path",Ju({},Ye(e),Gn(e),{className:Q("recharts-curve",t),d:s===null?void 0:s,ref:o}))};import*as Kv from"react";var E1=["x","y","top","left","width","height","className"];function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t"M".concat(e,",").concat(o,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r),qv=e=>{var{x:t=0,y:r=0,top:n=0,left:o=0,width:i=0,height:a=0,className:s}=e,l=T1(e,E1),c=C1({x:t,y:r,top:n,left:o,width:i,height:a},l);return!U(t)||!U(r)||!U(i)||!U(a)||!U(n)||!U(o)?null:Kv.createElement("path",ef({},me(c),{className:Q("recharts-cross",s),d:M1(t,r,i,a,n,o)}))};function Gv(e,t,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-o,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}import*as Ps from"react";import{useEffect as sC,useMemo as lC,useRef as ai,useState as cC}from"react";import{useEffect as ly,useRef as Q1,useState as J1}from"react";function Hv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Yv(e){for(var t=1;te.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),gs=(e,t,r)=>e.map(n=>"".concat(L1(n)," ").concat(t,"ms ").concat(r)).join(","),Xv=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(o=>n.includes(o))),ao=(e,t)=>Object.keys(t).reduce((r,n)=>Yv(Yv({},r),{},{[n]:e(n,t[n])}),{});function Zv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Re(e){for(var t=1;te+(t-e)*r,tf=e=>{var{from:t,to:r}=e;return t!==r},Qv=(e,t,r)=>{var n=ao((o,i)=>{if(tf(i)){var[a,s]=e(i.from,i.to,i.velocity);return Re(Re({},i),{},{from:a,velocity:s})}return i},t);return r<1?ao((o,i)=>tf(i)&&n[o]!=null?Re(Re({},i),{},{velocity:xs(i.velocity,n[o].velocity,r),from:xs(i.from,n[o].from,r)}):i,t):Qv(e,n,r-1)};function W1(e,t,r,n,o,i){var a,s=n.reduce((d,p)=>Re(Re({},d),{},{[p]:{from:e[p],velocity:0,to:t[p]}}),{}),l=()=>ao((d,p)=>p.from,s),c=()=>!Object.values(s).filter(tf).length,u=null,f=d=>{a||(a=d);var p=d-a,h=p/r.dt;s=Qv(r,s,h),o(Re(Re(Re({},e),t),l())),a=d,c()||(u=i.setTimeout(f))};return()=>(u=i.setTimeout(f),()=>{var d;(d=u)===null||d===void 0||d()})}function V1(e,t,r,n,o,i,a){var s=null,l=o.reduce((f,d)=>{var p=e[d],h=t[d];return p==null||h==null?f:Re(Re({},f),{},{[d]:[p,h]})},{}),c,u=f=>{c||(c=f);var d=(f-c)/n,p=ao((m,v)=>xs(...v,r(d)),l);if(i(Re(Re(Re({},e),t),p)),d<1)s=a.setTimeout(u);else{var h=ao((m,v)=>xs(...v,r(1)),l);i(Re(Re(Re({},e),t),h))}};return()=>(s=a.setTimeout(u),()=>{var f;(f=s)===null||f===void 0||f()})}var Jv=(e,t,r,n,o,i)=>{var a=Xv(e,t);return r==null?()=>(o(Re(Re({},e),t)),()=>{}):r.isStepper===!0?W1(e,t,r,a,o,i):V1(e,t,r,n,a,o,i)};var bs=1e-4,ry=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],ny=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),ey=(e,t)=>r=>{var n=ry(e,t);return ny(n,r)},U1=(e,t)=>r=>{var n=ry(e,t),o=[...n.map((i,a)=>i*a).slice(1),0];return ny(o,r)},$1=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var o=n.map(i=>parseFloat(i));return[o[0],o[1],o[2],o[3]]},K1=function(){for(var t=arguments.length,r=new Array(t),n=0;n{var o=ey(e,r),i=ey(t,n),a=U1(e,r),s=c=>c>1?1:c<0?0:c,l=c=>{for(var u=c>1?1:c,f=u,d=0;d<8;++d){var p=o(f)-u,h=a(f);if(Math.abs(p-u)0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:o=17}=t,i=(a,s,l)=>{var c=-(a-s)*r,u=l*n,f=l+(c-u)*o/1e3,d=l*o/1e3+a;return Math.abs(d-s){if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ty(e);case"spring":return G1();default:if(e.split("(")[0]==="cubic-bezier")return ty(e)}return typeof e=="function"?e:null};import{createContext as H1,useContext as Y1,useMemo as X1}from"react";function iy(e){var t,r=()=>null,n=!1,o=null,i=a=>{if(!n){if(Array.isArray(a)){if(!a.length)return;var s=a,[l,...c]=s;if(typeof l=="number"){o=e.setTimeout(i.bind(null,c),l);return}i(l),o=e.setTimeout(i.bind(null,c));return}typeof a=="string"&&(t=a,r(t)),typeof a=="object"&&(t=a,r(t)),typeof a=="function"&&a()}};return{stop:()=>{n=!0},start:a=>{n=!1,o&&(o(),o=null),i(a)},subscribe:a=>(r=a,()=>{r=()=>null}),getTimeoutController:()=>e}}var ws=class{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),o=null,i=a=>{a-n>=r?t(a):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(i))};return o=requestAnimationFrame(i),()=>{o!=null&&cancelAnimationFrame(o)}}};function ay(){return iy(new ws)}var Z1=H1(ay);function sy(e,t){var r=Y1(Z1);return X1(()=>t??r(e),[e,t,r])}var eC={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},cy={t:0},rf={t:1};function so(e){var t=ye(e,eC),{isActive:r,canBegin:n,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=ms(),f=r==="auto"?!Tt.isSsr&&!u:r,d=sy(t.animationId,t.animationManager),[p,h]=J1(f?cy:rf),m=Q1(null);return ly(()=>{f||h(rf)},[f]),ly(()=>{if(!f||!n)return ht;var v=Jv(cy,rf,oy(i),o,h,d.getTimeoutController()),y=()=>{m.current=v()};return d.start([l,a,y,o,s]),()=>{d.stop(),m.current&&m.current(),s()}},[f,n,o,i,a,l,s,d]),c(p.t)}import{useRef as uy}from"react";function lo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=uy(lr(t)),n=uy(e);return n.current!==e&&(r.current=lr(t),n.current=e),r.current}var tC=["radius"],rC=["radius"],fy,dy,py,my,hy,vy,yy,gy,xy,by;function wy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Py(e){for(var t=1;t{var i=qt(r),a=qt(n),s=Math.min(Math.abs(i)/2,Math.abs(a)/2),l=a>=0?1:-1,c=i>=0?1:-1,u=a>=0&&i>=0||a<0&&i<0?1:0,f;if(s>0&&Array.isArray(o)){for(var d=[0,0,0,0],p=0,h=4;ps?s:v}f=he(fy||(fy=Yt(["M",",",""])),e,t+l*d[0]),d[0]>0&&(f+=he(dy||(dy=Yt(["A ",",",",0,0,",",",",",""])),d[0],d[0],u,e+c*d[0],t)),f+=he(py||(py=Yt(["L ",",",""])),e+r-c*d[1],t),d[1]>0&&(f+=he(my||(my=Yt(["A ",",",",0,0,",`, + `,",",""])),d[1],d[1],u,e+r,t+l*d[1])),f+=he(hy||(hy=Yt(["L ",",",""])),e+r,t+n-l*d[2]),d[2]>0&&(f+=he(vy||(vy=Yt(["A ",",",",0,0,",`, + `,",",""])),d[2],d[2],u,e+r-c*d[2],t+n)),f+=he(yy||(yy=Yt(["L ",",",""])),e+c*d[3],t+n),d[3]>0&&(f+=he(gy||(gy=Yt(["A ",",",",0,0,",`, + `,",",""])),d[3],d[3],u,e,t+n-l*d[3])),f+="Z"}else if(s>0&&o===+o&&o>0){var y=Math.min(s,o);f=he(xy||(xy=Yt(["M ",",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",","," Z"])),e,t+l*y,y,y,u,e+c*y,t,e+r-c*y,t,y,y,u,e+r,t+l*y,e+r,t+n-l*y,y,y,u,e+r-c*y,t+n,e+c*y,t+n,y,y,u,e,t+n-l*y)}else f=he(by||(by=Yt(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return f},Ay={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Os=e=>{var t=ye(e,Ay),r=ai(null),[n,o]=cC(-1);sC(()=>{if(r.current&&r.current.getTotalLength)try{var b=r.current.getTotalLength();b&&o(b)}catch{}},[]);var{x:i,y:a,width:s,height:l,radius:c,className:u}=t,{animationEasing:f,animationDuration:d,animationBegin:p,isAnimationActive:h,isUpdateAnimationActive:m}=t,v=ai(s),y=ai(l),O=ai(i),P=ai(a),C=lC(()=>({x:i,y:a,width:s,height:l,radius:c}),[i,a,s,l,c]),E=lo(C,"rectangle-");if(i!==+i||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var _=Q("recharts-rectangle",u);if(!m){var D=me(t),{radius:k}=D,B=Sy(D,tC);return Ps.createElement("path",Ss({},B,{x:qt(i),y:qt(a),width:qt(s),height:qt(l),radius:typeof c=="number"?c:void 0,className:_,d:Oy(i,a,s,l,c)}))}var L=v.current,H=y.current,z=O.current,X=P.current,Z="0px ".concat(n===-1?1:n,"px"),J="".concat(n,"px ").concat(n,"px"),g=gs(["strokeDasharray"],d,typeof f=="string"?f:Ay.animationEasing);return Ps.createElement(so,{animationId:E,key:E,canBegin:n>0,duration:d,easing:f,isActive:m,begin:p},b=>{var A=$e(L,s,b),w=$e(H,l,b),x=$e(z,i,b),S=$e(X,a,b);r.current&&(v.current=A,y.current=w,O.current=x,P.current=S);var T;h?b>0?T={transition:g,strokeDasharray:J}:T={strokeDasharray:Z}:T={strokeDasharray:J};var M=me(t),{radius:j}=M,W=Sy(M,rC);return Ps.createElement("path",Ss({},W,{radius:typeof c=="number"?c:void 0,className:_,d:Oy(x,S,A,w,c),ref:r,style:Py(Py({},T),t.style)}))})};function Ey(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Cy(e){for(var t=1;te*180/Math.PI,Ee=(e,t,r,n)=>({x:e+Math.cos(-si*n)*r,y:t+Math.sin(-si*n)*r}),ky=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},mC=(e,t)=>{var{x:r,y:n}=e,{x:o,y:i}=t;return Math.sqrt((r-o)**2+(n-i)**2)},hC=(e,t)=>{var{x:r,y:n}=e,{cx:o,cy:i}=t,a=mC({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a,angle:0};var s=(r-o)/a,l=Math.acos(s);return n>i&&(l=2*Math.PI-l),{radius:a,angle:pC(l),angleInRadian:l}},vC=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:t-i*360,endAngle:r-i*360}},yC=(e,t)=>{var{startAngle:r,endAngle:n}=t,o=Math.floor(r/360),i=Math.floor(n/360),a=Math.min(o,i);return e+a*360},_y=(e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:o,angle:i}=hC({x:r,y:n},t),{innerRadius:a,outerRadius:s}=t;if(os||o===0)return null;var{startAngle:l,endAngle:c}=vC(t),u=i,f;if(l<=c){for(;u>c;)u-=360;for(;u=l&&u<=c}else{for(;u>l;)u-=360;for(;u=c&&u<=l}return f?Cy(Cy({},t),{},{radius:o,angle:yC(u,t)}):null};function As(e){var{cx:t,cy:r,radius:n,startAngle:o,endAngle:i}=e,a=Ee(t,r,n,o),s=Ee(t,r,n,i);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:o,endAngle:i}}import*as Ly from"react";var Iy,Ty,Dy,My,Ny,Ry,jy;function nf(){return nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=Ne(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Es=e=>{var{cx:t,cy:r,radius:n,angle:o,sign:i,isExternal:a,cornerRadius:s,cornerIsExternal:l}=e,c=s*(a?1:-1)+n,u=Math.asin(s/c)/si,f=l?o:o+i*u,d=Ee(t,r,c,f),p=Ee(t,r,n,f),h=l?o-i*u:o,m=Ee(t,r,c*Math.cos(u*si),h);return{center:d,circleTangency:p,lineTangency:m,theta:u}},zy=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:i,endAngle:a}=e,s=gC(i,a),l=i+s,c=Ee(t,r,o,i),u=Ee(t,r,o,l),f=he(Iy||(Iy=on(["M ",",",` + A `,",",`,0, + `,",",`, + `,",",` + `])),c.x,c.y,o,o,+(Math.abs(s)>180),+(i>l),u.x,u.y);if(n>0){var d=Ee(t,r,n,i),p=Ee(t,r,n,l);f+=he(Ty||(Ty=on(["L ",",",` + A `,",",`,0, + `,",",`, + `,","," Z"])),p.x,p.y,n,n,+(Math.abs(s)>180),+(i<=l),d.x,d.y)}else f+=he(Dy||(Dy=on(["L ",","," Z"])),t,r);return f},xC=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,cornerRadius:i,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=Ne(c-l),{circleTangency:f,lineTangency:d,theta:p}=Es({cx:t,cy:r,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),{circleTangency:h,lineTangency:m,theta:v}=Es({cx:t,cy:r,radius:o,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:s}),y=s?Math.abs(l-c):Math.abs(l-c)-p-v;if(y<0)return a?he(My||(My=on(["M ",",",` + a`,",",",0,0,1,",`,0 + a`,",",",0,0,1,",`,0 + `])),d.x,d.y,i,i,i*2,i,i,-i*2):zy({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:c});var O=he(Ny||(Ny=on(["M ",",",` + A`,",",",0,0,",",",",",` + A`,",",",0,",",",",",",",` + A`,",",",0,0,",",",",",` + `])),d.x,d.y,i,i,+(u<0),f.x,f.y,o,o,+(y>180),+(u<0),h.x,h.y,i,i,+(u<0),m.x,m.y);if(n>0){var{circleTangency:P,lineTangency:C,theta:E}=Es({cx:t,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:_,lineTangency:D,theta:k}=Es({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),B=s?Math.abs(l-c):Math.abs(l-c)-E-k;if(B<0&&i===0)return"".concat(O,"L").concat(t,",").concat(r,"Z");O+=he(Ry||(Ry=on(["L",",",` + A`,",",",0,0,",",",",",` + A`,",",",0,",",",",",",",` + A`,",",",0,0,",",",",","Z"])),D.x,D.y,i,i,+(u<0),_.x,_.y,n,n,+(B>180),+(u>0),P.x,P.y,i,i,+(u<0),C.x,C.y)}else O+=he(jy||(jy=on(["L",",","Z"])),t,r);return O},bC={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Cs=e=>{var t=ye(e,bC),{cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:f}=t;if(i0&&Math.abs(c-u)<360?m=xC({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(h,p/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):m=zy({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u}),Ly.createElement("path",nf({},me(t),{className:d,d:m}))};function By(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(Pa(t)){if(e==="centric"){var{cx:n,cy:o,innerRadius:i,outerRadius:a,angle:s}=t,l=Ee(n,o,i,s),c=Ee(n,o,a,s);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return As(t)}}function Fy(e){return Ra(e)?NaN:Number(e)}function ks(e){return e?(e=Fy(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function _s(e,t,r){r&&typeof r!="number"&&Go(e,t,r)&&(t=r=void 0),e=ks(e),t===void 0?(t=e,e=0):t=ks(t),r=r===void 0?ee.chartData,wC=I([Wt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),li=(e,t,r,n)=>n?wC(e):Wt(e);function xt(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(te(t)&&te(r))return!0}return!1}function Wy(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Is(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,o,i;if(te(r))o=r;else if(typeof r=="function")return;if(te(n))i=n;else if(typeof n=="function")return;var a=[o,i];if(xt(a))return a}}function Vy(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(xt(n))return Wy(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[o,i]=e,a,s;if(o==="auto")t!=null&&(a=Math.min(...t));else if(U(o))a=o;else if(typeof o=="function")try{t!=null&&(a=o(t?.[0]))}catch{}else if(typeof o=="string"&&Uu.test(o)){var l=Uu.exec(o);if(l==null||l[1]==null||t==null)a=void 0;else{var c=+l[1];a=t[0]-c}}else a=t?.[0];if(i==="auto")t!=null&&(s=Math.max(...t));else if(U(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[1]))}catch{}else if(typeof i=="string"&&$u.test(i)){var u=$u.exec(i);if(u==null||u[1]==null||t==null)s=void 0;else{var f=+u[1];s=t[1]+f}}else s=t?.[1];var d=[a,s];if(xt(d))return t==null?d:Wy(d,t,r)}}}var ae=Ec(of());var af=Ec(of());function sf(e){var t;return e===0?t=1:t=Math.floor(new af.default(e).abs().log(10).toNumber())+1,t}function lf(e,t,r){for(var n=new af.default(e),o=0,i=[];n.lt(t)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i}var $y=e=>{var[t,r]=e,[n,o]=[t,r];return t>r&&([n,o]=[r,t]),[n,o]},cf=(e,t,r)=>{if(e.lte(0))return new ae.default(0);var n=sf(e.toNumber()),o=new ae.default(10).pow(n),i=e.div(o),a=n!==1?.05:.1,s=new ae.default(Math.ceil(i.div(a).toNumber())).add(r).mul(a),l=s.mul(o);return t?new ae.default(l.toNumber()):new ae.default(Math.ceil(l.toNumber()))},Ky=(e,t,r)=>{var n;if(e.lte(0))return new ae.default(0);var o=[1,2,2.5,5],i=e.toNumber(),a=Math.floor(new ae.default(i).abs().log(10).toNumber()),s=new ae.default(10).pow(a),l=e.div(s).toNumber(),c=o.findIndex(p=>p>=l-1e-10);if(c===-1&&(s=s.mul(10),c=0),c+=r,c>=o.length){var u=Math.floor(c/o.length);c%=o.length,s=s.mul(new ae.default(10).pow(u))}var f=(n=o[c])!==null&&n!==void 0?n:1,d=new ae.default(f).mul(s);return t?d:new ae.default(Math.ceil(d.toNumber()))},PC=(e,t,r)=>{var n=new ae.default(1),o=new ae.default(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new ae.default(10).pow(sf(e)-1),o=new ae.default(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new ae.default(Math.floor(e)))}else e===0?o=new ae.default(Math.floor((t-1)/2)):r||(o=new ae.default(Math.floor(e)));for(var a=Math.floor((t-1)/2),s=[],l=0;l4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:cf;if(!Number.isFinite((r-t)/(n-1)))return{step:new ae.default(0),tickMin:new ae.default(0),tickMax:new ae.default(0)};var s=a(new ae.default(r).sub(t).div(n-1),o,i),l;t<=0&&r>=0?l=new ae.default(0):(l=new ae.default(t).add(r).div(2),l=l.sub(new ae.default(l).mod(s)));var c=Math.ceil(l.sub(t).div(s).toNumber()),u=Math.ceil(new ae.default(r).sub(l).div(s).toNumber()),f=c+u+1;return f>n?qy(t,r,n,o,i+1,a):(f0?u+(n-f):u,c=r>0?c:c+(n-f)),{step:s,tickMin:l.sub(new ae.default(c).mul(s)),tickMax:l.add(new ae.default(u).mul(s))})};var Ds=function(t){var[r,n]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",s=Math.max(o,2),[l,c]=$y([r,n]);if(l===-1/0||c===1/0){var u=c===1/0?[l,...Array(o-1).fill(1/0)]:[...Array(o-1).fill(-1/0),c];return r>n?u.reverse():u}if(l===c)return PC(l,o,i);var f=a==="snap125"?Ky:cf,{step:d,tickMin:p,tickMax:h}=qy(l,c,s,i,0,f),m=lf(p,h.add(new ae.default(.1).mul(d)),d);return r>n?m.reverse():m},Ms=function(t,r){var[n,o]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[s,l]=$y([n,o]);if(s===-1/0||l===1/0)return[n,o];if(s===l)return[s];var c=a==="snap125"?Ky:cf,u=Math.max(r,2),f=c(new ae.default(l).sub(s).div(u-1),i,0),d=[...lf(new ae.default(s),new ae.default(l),f),l];return i===!1&&(d=d.map(p=>Math.round(p))),n>o?d.reverse():d};var Gy=e=>e.rootProps.barCategoryGap;var co=e=>e.rootProps.stackOffset,Ns=e=>e.rootProps.reverseStackOrder,uo=e=>e.options.chartName,Rs=e=>e.rootProps.syncId,uf=e=>e.rootProps.syncMethod,js=e=>e.options.eventEmitter;var de={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3};var Tr={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:"auto",orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"auto",zIndex:de.axis};var Vt={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:"auto",label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,tickLine:!0,type:"auto",zIndex:de.axis};var an=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function ci(e,t,r){if(r!=="auto")return r;if(e!=null)return gt(e,t)?"category":"number"}function Hy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ls(e){for(var t=1;t{if(t!=null)return e.polarAxis.angleAxis[t]},zs=I([EC,Zu],(e,t)=>{var r;if(e!=null)return e;var n=(r=ci(t,"angleAxis",Yy.type))!==null&&r!==void 0?r:"category";return Ls(Ls({},Yy),{},{type:n})}),CC=(e,t)=>e.polarAxis.radiusAxis[t],Bs=I([CC,Zu],(e,t)=>{var r;if(e!=null)return e;var n=(r=ci(t,"radiusAxis",Xy.type))!==null&&r!==void 0?r:"category";return Ls(Ls({},Xy),{},{type:n})}),Fs=e=>e.polarOptions,ff=I([Xe,Ze,ge],ky),Zy=I([Fs,ff],(e,t)=>{if(e!=null)return kt(e.innerRadius,t,0)}),Qy=I([Fs,ff],(e,t)=>{if(e!=null)return kt(e.outerRadius,t,t*.8)}),kC=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},df=I([Fs],kC),SU=I([zs,df],an),pf=I([ff,Zy,Qy],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]}),OU=I([Bs,pf],an),Ws=I([fe,Fs,Zy,Qy,Xe,Ze],(e,t,r,n,o,i)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:a,cy:s,startAngle:l,endAngle:c}=t;return{cx:kt(a,o,o/2),cy:kt(s,i,i/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}});var je=(e,t)=>t;var ui=(e,t,r)=>r;function Vs(e){return e?.id}function Us(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:o,dataKey:i}=r,a=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:n;if(!(c==null||c.length===0)){var u=Vs(s);c.forEach((f,d)=>{var p=i==null||o?d:String(Oe(f,i,null)),h=Oe(f,s.dataKey,0),m;a.has(p)?m=a.get(p):m={},Object.assign(m,{[u]:h}),a.set(p,m)})}}),Array.from(a.values())}function fi(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var fo=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function po(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function Jy(e,t){if(e.length===t.length){for(var r=0;r{var t=fe(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"};var Dr=e=>e.tooltip.settings.axisId;function di(e){if(e!=null){var t=e.ticks,r=e.bandwidth,n=e.range(),o=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:function(i){function a(){return i.apply(this,arguments)}return a.toString=function(){return i.toString()},a}(()=>o),rangeMin:()=>o[0],rangeMax:()=>o[1],isInRange(i){var a=o[0],s=o[1];return a<=s?i>=a&&i<=s:i>=s&&i<=a},bandwidth:r?()=>r.call(e):void 0,ticks:t?i=>t.call(e,i):void 0,map:(i,a)=>{var s=e(i);if(s!=null){if(e.bandwidth&&a!==null&&a!==void 0&&a.position){var l=e.bandwidth();switch(a.position){case"middle":s+=l/2;break;case"end":s+=l;break;default:break}}return s}}}}}var eg=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!xt(t)){for(var r,n,o=0;on)&&(n=i))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};var zr={};NS(zr,{scaleBand:()=>vi,scaleDiverging:()=>Ol,scaleDivergingLog:()=>qf,scaleDivergingPow:()=>Al,scaleDivergingSqrt:()=>Px,scaleDivergingSymlog:()=>Gf,scaleIdentity:()=>ll,scaleImplicit:()=>Xs,scaleLinear:()=>sl,scaleLog:()=>cl,scaleOrdinal:()=>vo,scalePoint:()=>sg,scalePow:()=>Ci,scaleQuantile:()=>dl,scaleQuantize:()=>pl,scaleRadial:()=>fl,scaleSequential:()=>bl,scaleSequentialLog:()=>$f,scaleSequentialPow:()=>wl,scaleSequentialQuantile:()=>Pl,scaleSequentialSqrt:()=>wx,scaleSequentialSymlog:()=>Kf,scaleSqrt:()=>Ug,scaleSymlog:()=>ul,scaleThreshold:()=>ml,scaleTime:()=>Vf,scaleUtc:()=>Uf,tickFormat:()=>Pi});function ot(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function mf(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function sn(e){let t,r,n;e.length!==2?(t=ot,r=(s,l)=>ot(e(s),l),n=(s,l)=>e(s)-l):(t=e===ot||e===mf?e:_C,r=e,n=e);function o(s,l,c=0,u=s.length){if(c>>1;r(s[f],l)<0?c=f+1:u=f}while(c>>1;r(s[f],l)<=0?c=f+1:u=f}while(cc&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:o,center:a,right:i}}function _C(){return 0}function pi(e){return e===null?NaN:+e}function*tg(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}var rg=sn(ot),ng=rg.right,IC=rg.left,TC=sn(pi).center,Ut=ng;var mo=class extends Map{constructor(t,r=NC){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[n,o]of t)this.set(n,o)}get(t){return super.get(og(this,t))}has(t){return super.has(og(this,t))}set(t,r){return super.set(DC(this,t),r)}delete(t){return super.delete(MC(this,t))}};function og({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function DC({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function MC({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function NC(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ig(e=ot){if(e===ot)return hf;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{let n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function hf(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}var RC=Math.sqrt(50),jC=Math.sqrt(10),LC=Math.sqrt(2);function $s(e,t,r){let n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=RC?10:i>=jC?5:i>=LC?2:1,s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(e*c),l=Math.round(t*c),s/ct&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(e/c),l=Math.round(t/c),s*ct&&--l),l0))return[];if(e===t)return[e];let n=t=o))return[];let s=i-o+1,l=new Array(s);if(n)if(a<0)for(let c=0;c=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r=o)&&(r=o)}return r}function qs(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function Gs(e,t,r=0,n=1/0,o){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(o=o===void 0?hf:ig(o);n>r;){if(n-r>600){let l=n-r+1,c=t-r+1,u=Math.log(l),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),p=Math.max(r,Math.floor(t-c*f/l+d)),h=Math.min(n,Math.floor(t+(l-c)*f/l+d));Gs(e,t,p,h,o)}let i=e[t],a=r,s=n;for(hi(e,r,t),o(e[n],i)>0&&hi(e,r,n);a0;)--s}o(e[r],i)===0?hi(e,r,s):(++s,hi(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function hi(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function Hs(e,t,r){if(e=Float64Array.from(tg(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return qs(e);if(t>=1)return Ks(e);var n,o=(n-1)*t,i=Math.floor(o),a=Ks(Gs(e,i).subarray(0,i+1)),s=qs(e.subarray(i+1));return a+(s-a)*(o-i)}}function vf(e,t,r=pi){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,o=(n-1)*t,i=Math.floor(o),a=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function Ys(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var n=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(o);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Qs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Qs(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=BC.exec(e))?new ut(t[1],t[2],t[3],1):(t=FC.exec(e))?new ut(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=WC.exec(e))?Qs(t[1],t[2],t[3],t[4]):(t=VC.exec(e))?Qs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=UC.exec(e))?mg(t[1],t[2]/100,t[3]/100,1):(t=$C.exec(e))?mg(t[1],t[2]/100,t[3]/100,t[4]):lg.hasOwnProperty(e)?fg(lg[e]):e==="transparent"?new ut(NaN,NaN,NaN,0):null}function fg(e){return new ut(e>>16&255,e>>8&255,e&255,1)}function Qs(e,t,r,n){return n<=0&&(e=t=r=NaN),new ut(e,t,r,n)}function GC(e){return e instanceof xi||(e=Mr(e)),e?(e=e.rgb(),new ut(e.r,e.g,e.b,e.opacity)):new ut}function go(e,t,r,n){return arguments.length===1?GC(e):new ut(e,t,r,n??1)}function ut(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Zs(ut,go,yf(xi,{brighter(e){return e=e==null?el:Math.pow(el,e),new ut(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yi:Math.pow(yi,e),new ut(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ut(un(this.r),un(this.g),un(this.b),tl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:dg,formatHex:dg,formatHex8:HC,formatRgb:pg,toString:pg}));function dg(){return`#${cn(this.r)}${cn(this.g)}${cn(this.b)}`}function HC(){return`#${cn(this.r)}${cn(this.g)}${cn(this.b)}${cn((isNaN(this.opacity)?1:this.opacity)*255)}`}function pg(){let e=tl(this.opacity);return`${e===1?"rgb(":"rgba("}${un(this.r)}, ${un(this.g)}, ${un(this.b)}${e===1?")":`, ${e})`}`}function tl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function un(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function cn(e){return e=un(e),(e<16?"0":"")+e.toString(16)}function mg(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new $t(e,t,r,n)}function vg(e){if(e instanceof $t)return new $t(e.h,e.s,e.l,e.opacity);if(e instanceof xi||(e=Mr(e)),!e)return new $t;if(e instanceof $t)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(r-n)/s+(r0&&l<1?0:a,new $t(a,s,l,e.opacity)}function yg(e,t,r,n){return arguments.length===1?vg(e):new $t(e,t,r,n??1)}function $t(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Zs($t,yg,yf(xi,{brighter(e){return e=e==null?el:Math.pow(el,e),new $t(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yi:Math.pow(yi,e),new $t(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new ut(gf(e>=240?e-240:e+120,o,n),gf(e,o,n),gf(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new $t(hg(this.h),Js(this.s),Js(this.l),tl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=tl(this.opacity);return`${e===1?"hsl(":"hsla("}${hg(this.h)}, ${Js(this.s)*100}%, ${Js(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hg(e){return e=(e||0)%360,e<0?e+360:e}function Js(e){return Math.max(0,Math.min(1,e||0))}function gf(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function xf(e,t,r,n,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*r+(1+3*e+3*i-3*a)*n+a*o)/6}function gg(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[n],i=e[n+1],a=n>0?e[n-1]:2*o-i,s=n()=>e;function YC(e,t){return function(r){return e+r*t}}function XC(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function bg(e){return(e=+e)==1?rl:function(t,r){return r-t?XC(t,r,e):bi(isNaN(t)?r:t)}}function rl(e,t){var r=t-e;return r?YC(e,r):bi(isNaN(e)?t:e)}var bf=function e(t){var r=bg(t);function n(o,i){var a=r((o=go(o)).r,(i=go(i)).r),s=r(o.g,i.g),l=r(o.b,i.b),c=rl(o.opacity,i.opacity);return function(u){return o.r=a(u),o.g=s(u),o.b=l(u),o.opacity=c(u),o+""}}return n.gamma=e,n}(1);function wg(e){return function(t){var r=t.length,n=new Array(r),o=new Array(r),i=new Array(r),a,s;for(a=0;ar&&(i=t.slice(r,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:Nr(n,o)})),r=wf.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function ek(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o2?tk:ek,l=c=null,f}function f(d){return d==null||isNaN(d=+d)?i:(l||(l=s(e.map(n),t,r)))(n(a(d)))}return f.invert=function(d){return a(o((c||(c=s(t,e.map(n),Nr)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Rr),u()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),u()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=fn,u()},f.clamp=function(d){return arguments.length?(a=d?!0:Le,u()):a!==Le},f.interpolate=function(d){return arguments.length?(r=d,u()):r},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,p){return n=d,o=p,u()}}function pn(){return dn()(Le,Le)}function _g(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function mn(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Qt(e){return e=mn(Math.abs(e)),e?e[1]:NaN}function Ig(e,t){return function(r,n){for(var o=r.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(o-=s,o+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function Tg(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var rk=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Jt(e){if(!(t=rk.exec(e)))throw new Error("invalid format: "+e);var t;return new ol({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Jt.prototype=ol.prototype;function ol(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}ol.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Dg(e){e:for(var t=e.length,r=1,n=-1,o;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(o+1):e}var wi;function Mg(e,t){var r=mn(e,t);if(!r)return wi=void 0,e.toPrecision(t);var n=r[0],o=r[1],i=o-(wi=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+mn(e,Math.max(0,t+i-1))[0]}function Af(e,t){var r=mn(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}var Ef={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:_g,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Af(e*100,t),r:Af,s:Mg,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Cf(e){return e}var Ng=Array.prototype.map,Rg=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function jg(e){var t=e.grouping===void 0||e.thousands===void 0?Cf:Ig(Ng.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?Cf:Tg(Ng.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"\u2212":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f,d){f=Jt(f);var p=f.fill,h=f.align,m=f.sign,v=f.symbol,y=f.zero,O=f.width,P=f.comma,C=f.precision,E=f.trim,_=f.type;_==="n"?(P=!0,_="g"):Ef[_]||(C===void 0&&(C=12),E=!0,_="g"),(y||p==="0"&&h==="=")&&(y=!0,p="0",h="=");var D=(d&&d.prefix!==void 0?d.prefix:"")+(v==="$"?r:v==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():""),k=(v==="$"?n:/[%p]/.test(_)?a:"")+(d&&d.suffix!==void 0?d.suffix:""),B=Ef[_],L=/[defgprs%]/.test(_);C=C===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function H(z){var X=D,Z=k,J,g,b;if(_==="c")Z=B(z)+Z,z="";else{z=+z;var A=z<0||1/z<0;if(z=isNaN(z)?l:B(Math.abs(z),C),E&&(z=Dg(z)),A&&+z==0&&m!=="+"&&(A=!1),X=(A?m==="("?m:s:m==="-"||m==="("?"":m)+X,Z=(_==="s"&&!isNaN(z)&&wi!==void 0?Rg[8+wi/3]:"")+Z+(A&&m==="("?")":""),L){for(J=-1,g=z.length;++Jb||b>57){Z=(b===46?o+z.slice(J+1):z.slice(J))+Z,z=z.slice(0,J);break}}}P&&!y&&(z=t(z,1/0));var w=X.length+z.length+Z.length,x=w>1)+X+z+Z+x.slice(w);break;default:z=x+X+z+Z;break}return i(z)}return H.toString=function(){return f+""},H}function u(f,d){var p=Math.max(-8,Math.min(8,Math.floor(Qt(d)/3)))*3,h=Math.pow(10,-p),m=c((f=Jt(f),f.type="f",f),{suffix:Rg[8+p/3]});return function(v){return m(h*v)}}return{format:c,formatPrefix:u}}var il,xo,al;kf({thousands:",",grouping:[3],currency:["$",""]});function kf(e){return il=jg(e),xo=il.format,al=il.formatPrefix,il}function _f(e){return Math.max(0,-Qt(Math.abs(e)))}function If(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Qt(t)/3)))*3-Qt(Math.abs(e)))}function Tf(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Qt(t)-Qt(e))+1}function Pi(e,t,r,n){var o=ho(e,t,r),i;switch(n=Jt(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=If(o,a))&&(n.precision=i),al(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=Tf(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=_f(o))&&(n.precision=i-(n.type==="%")*2);break}}return xo(n)}function it(e){var t=e.domain;return e.ticks=function(r){var n=t();return ln(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var o=t();return Pi(o[0],o[o.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),o=0,i=n.length-1,a=n[o],s=n[i],l,c,u=10;for(s0;){if(c=mi(a,s,r),c===l)return n[o]=a,n[i]=s,t(n);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function sl(){var e=pn();return e.copy=function(){return Zt(e,sl())},we.apply(e,arguments),it(e)}function ll(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Rr),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return ll(e).unknown(t)},e=arguments.length?Array.from(e,Rr):[0,1],it(r)}function Si(e,t){e=e.slice();var r=0,n=e.length-1,o=e[r],i=e[n],a;return iMath.pow(e,t)}function sk(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Bg(e){return(t,r)=>-e(-t,r)}function Oi(e){let t=e(Lg,zg),r=t.domain,n=10,o,i;function a(){return o=sk(n),i=ak(n),r()[0]<0?(o=Bg(o),i=Bg(i),e(nk,ok)):e(Lg,zg),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{let l=r(),c=l[0],u=l[l.length-1],f=u0){for(;d<=p;++d)for(h=1;hu)break;y.push(m)}}else for(;d<=p;++d)for(h=n-1;h>=1;--h)if(m=d>0?h/i(-d):h*i(d),!(mu)break;y.push(m)}y.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Jt(l)).precision==null&&(l.trim=!0),l=xo(l)),s===1/0)return l;let c=Math.max(1,n*s/t.ticks().length);return u=>{let f=u/i(Math.round(o(u)));return f*nr(Si(r(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function cl(){let e=Oi(dn()).domain([1,10]);return e.copy=()=>Zt(e,cl()).base(e.base()),we.apply(e,arguments),e}function Fg(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Wg(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ai(e){var t=1,r=e(Fg(t),Wg(t));return r.constant=function(n){return arguments.length?e(Fg(t=+n),Wg(t)):t},it(r)}function ul(){var e=Ai(dn());return e.copy=function(){return Zt(e,ul()).constant(e.constant())},we.apply(e,arguments)}function Vg(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function lk(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ck(e){return e<0?-e*e:e*e}function Ei(e){var t=e(Le,Le),r=1;function n(){return r===1?e(Le,Le):r===.5?e(lk,ck):e(Vg(r),Vg(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,n()):r},it(t)}function Ci(){var e=Ei(dn());return e.copy=function(){return Zt(e,Ci()).exponent(e.exponent())},we.apply(e,arguments),e}function Ug(){return Ci.apply(null,arguments).exponent(.5)}function $g(e){return Math.sign(e)*e*e}function uk(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function fl(){var e=pn(),t=[0,1],r=!1,n;function o(i){var a=uk(e(i));return isNaN(a)?n:r?Math.round(a):a}return o.invert=function(i){return e.invert($g(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,Rr)).map($g)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(r=!!i,o):r},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return fl(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},we.apply(o,arguments),it(o)}function dl(){var e=[],t=[],r=[],n;function o(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[c-1],n[c]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return n.slice()},a.copy=function(){return pl().domain([e,t]).range(o).unknown(i)},we.apply(it(a),arguments)}function ml(){var e=[.5],t=[0,1],r,n=1;function o(i){return i!=null&&i<=i?t[Ut(e,i,0,n)]:r}return o.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return ml().domain(e).range(t).unknown(r)},we.apply(o,arguments)}var Df=new Date,Mf=new Date;function pe(e,t,r,n){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{let a=o(i),s=o.ceil(i);return i-a(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{let l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(cpe(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),r&&(o.count=(i,a)=>(Df.setTime(+i),Mf.setTime(+a),e(Df),e(Mf),Math.floor(r(Df,Mf))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(n?a=>n(a)%i===0:a=>o.count(0,a)%i===0):o)),o}var ki=pe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ki.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?pe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ki);var r6=ki.range;var Mt=pe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),Kg=Mt.range;var bo=pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),fk=bo.range,wo=pe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),dk=wo.range;var Po=pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),pk=Po.range,So=pe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),mk=So.range;var pr=pe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),hk=pr.range,yn=pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),vk=yn.range,hl=pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),yk=hl.range;function gn(e){return pe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}var mr=gn(0),Oo=gn(1),Gg=gn(2),Hg=gn(3),jr=gn(4),Yg=gn(5),Xg=gn(6),Zg=mr.range,gk=Oo.range,xk=Gg.range,bk=Hg.range,wk=jr.range,Pk=Yg.range,Sk=Xg.range;function xn(e){return pe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var hr=xn(0),Ao=xn(1),Qg=xn(2),Jg=xn(3),Lr=xn(4),ex=xn(5),tx=xn(6),rx=hr.range,Ok=Ao.range,Ak=Qg.range,Ek=Jg.range,Ck=Lr.range,kk=ex.range,_k=tx.range;var Eo=pe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),Ik=Eo.range,Co=pe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),Tk=Co.range;var wt=pe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());wt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:pe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});var Dk=wt.range,Pt=pe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Pt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:pe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});var Mk=Pt.range;function ox(e,t,r,n,o,i){let a=[[Mt,1,1e3],[Mt,5,5*1e3],[Mt,15,15*1e3],[Mt,30,30*1e3],[i,1,6e4],[i,5,5*6e4],[i,15,15*6e4],[i,30,30*6e4],[o,1,36e5],[o,3,3*36e5],[o,6,6*36e5],[o,12,12*36e5],[n,1,864e5],[n,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function s(c,u,f){let d=uv).right(a,d);if(p===a.length)return e.every(ho(c/31536e6,u/31536e6,f));if(p===0)return ki.every(Math.max(ho(c,u,f),1));let[h,m]=a[d/a[p-1][2]53)return null;"w"in R||(R.w=1),"Z"in R?(ee=Bf(Ii(R.y,0,1)),Ue=ee.getUTCDay(),ee=Ue>4||Ue===0?Ao.ceil(ee):Ao(ee),ee=yn.offset(ee,(R.V-1)*7),R.y=ee.getUTCFullYear(),R.m=ee.getUTCMonth(),R.d=ee.getUTCDate()+(R.w+6)%7):(ee=zf(Ii(R.y,0,1)),Ue=ee.getDay(),ee=Ue>4||Ue===0?Oo.ceil(ee):Oo(ee),ee=pr.offset(ee,(R.V-1)*7),R.y=ee.getFullYear(),R.m=ee.getMonth(),R.d=ee.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),Ue="Z"in R?Bf(Ii(R.y,0,1)).getUTCDay():zf(Ii(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(Ue+5)%7:R.w+R.U*7-(Ue+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,Bf(R)):zf(R)}}function k(N,V,K,R){for(var Se=0,ee=V.length,Ue=K.length,Fe,At;Se=Ue)return-1;if(Fe=V.charCodeAt(Se++),Fe===37){if(Fe=V.charAt(Se++),At=E[Fe in ix?V.charAt(Se++):Fe],!At||(R=At(N,K,R))<0)return-1}else if(Fe!=K.charCodeAt(R++))return-1}return R}function B(N,V,K){var R=c.exec(V.slice(K));return R?(N.p=u.get(R[0].toLowerCase()),K+R[0].length):-1}function L(N,V,K){var R=p.exec(V.slice(K));return R?(N.w=h.get(R[0].toLowerCase()),K+R[0].length):-1}function H(N,V,K){var R=f.exec(V.slice(K));return R?(N.w=d.get(R[0].toLowerCase()),K+R[0].length):-1}function z(N,V,K){var R=y.exec(V.slice(K));return R?(N.m=O.get(R[0].toLowerCase()),K+R[0].length):-1}function X(N,V,K){var R=m.exec(V.slice(K));return R?(N.m=v.get(R[0].toLowerCase()),K+R[0].length):-1}function Z(N,V,K){return k(N,t,V,K)}function J(N,V,K){return k(N,r,V,K)}function g(N,V,K){return k(N,n,V,K)}function b(N){return a[N.getDay()]}function A(N){return i[N.getDay()]}function w(N){return l[N.getMonth()]}function x(N){return s[N.getMonth()]}function S(N){return o[+(N.getHours()>=12)]}function T(N){return 1+~~(N.getMonth()/3)}function M(N){return a[N.getUTCDay()]}function j(N){return i[N.getUTCDay()]}function W(N){return l[N.getUTCMonth()]}function F(N){return s[N.getUTCMonth()]}function $(N){return o[+(N.getUTCHours()>=12)]}function ne(N){return 1+~~(N.getUTCMonth()/3)}return{format:function(N){var V=_(N+="",P);return V.toString=function(){return N},V},parse:function(N){var V=D(N+="",!1);return V.toString=function(){return N},V},utcFormat:function(N){var V=_(N+="",C);return V.toString=function(){return N},V},utcParse:function(N){var V=D(N+="",!0);return V.toString=function(){return N},V}}}var ix={"-":"",_:" ",0:"0"},Ve=/^\s*\d+/,Rk=/^%/,jk=/[\\^$*+?|[\]().{}]/g;function le(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i[t.toLowerCase(),r]))}function zk(e,t,r){var n=Ve.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Bk(e,t,r){var n=Ve.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Fk(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Wk(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Vk(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function ax(e,t,r){var n=Ve.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function sx(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Uk(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function $k(e,t,r){var n=Ve.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Kk(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function lx(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function qk(e,t,r){var n=Ve.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function cx(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Gk(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Hk(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Yk(e,t,r){var n=Ve.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Xk(e,t,r){var n=Ve.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Zk(e,t,r){var n=Rk.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Qk(e,t,r){var n=Ve.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Jk(e,t,r){var n=Ve.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function ux(e,t){return le(e.getDate(),t,2)}function e_(e,t){return le(e.getHours(),t,2)}function t_(e,t){return le(e.getHours()%12||12,t,2)}function r_(e,t){return le(1+pr.count(wt(e),e),t,3)}function hx(e,t){return le(e.getMilliseconds(),t,3)}function n_(e,t){return hx(e,t)+"000"}function o_(e,t){return le(e.getMonth()+1,t,2)}function i_(e,t){return le(e.getMinutes(),t,2)}function a_(e,t){return le(e.getSeconds(),t,2)}function s_(e){var t=e.getDay();return t===0?7:t}function l_(e,t){return le(mr.count(wt(e)-1,e),t,2)}function vx(e){var t=e.getDay();return t>=4||t===0?jr(e):jr.ceil(e)}function c_(e,t){return e=vx(e),le(jr.count(wt(e),e)+(wt(e).getDay()===4),t,2)}function u_(e){return e.getDay()}function f_(e,t){return le(Oo.count(wt(e)-1,e),t,2)}function d_(e,t){return le(e.getFullYear()%100,t,2)}function p_(e,t){return e=vx(e),le(e.getFullYear()%100,t,2)}function m_(e,t){return le(e.getFullYear()%1e4,t,4)}function h_(e,t){var r=e.getDay();return e=r>=4||r===0?jr(e):jr.ceil(e),le(e.getFullYear()%1e4,t,4)}function v_(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+le(t/60|0,"0",2)+le(t%60,"0",2)}function fx(e,t){return le(e.getUTCDate(),t,2)}function y_(e,t){return le(e.getUTCHours(),t,2)}function g_(e,t){return le(e.getUTCHours()%12||12,t,2)}function x_(e,t){return le(1+yn.count(Pt(e),e),t,3)}function yx(e,t){return le(e.getUTCMilliseconds(),t,3)}function b_(e,t){return yx(e,t)+"000"}function w_(e,t){return le(e.getUTCMonth()+1,t,2)}function P_(e,t){return le(e.getUTCMinutes(),t,2)}function S_(e,t){return le(e.getUTCSeconds(),t,2)}function O_(e){var t=e.getUTCDay();return t===0?7:t}function A_(e,t){return le(hr.count(Pt(e)-1,e),t,2)}function gx(e){var t=e.getUTCDay();return t>=4||t===0?Lr(e):Lr.ceil(e)}function E_(e,t){return e=gx(e),le(Lr.count(Pt(e),e)+(Pt(e).getUTCDay()===4),t,2)}function C_(e){return e.getUTCDay()}function k_(e,t){return le(Ao.count(Pt(e)-1,e),t,2)}function __(e,t){return le(e.getUTCFullYear()%100,t,2)}function I_(e,t){return e=gx(e),le(e.getUTCFullYear()%100,t,2)}function T_(e,t){return le(e.getUTCFullYear()%1e4,t,4)}function D_(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Lr(e):Lr.ceil(e),le(e.getUTCFullYear()%1e4,t,4)}function M_(){return"+0000"}function dx(){return"%"}function px(e){return+e}function mx(e){return Math.floor(+e/1e3)}var ko,vl,xx,yl,bx;Wf({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Wf(e){return ko=Ff(e),vl=ko.format,xx=ko.parse,yl=ko.utcFormat,bx=ko.utcParse,ko}function N_(e){return new Date(e)}function R_(e){return e instanceof Date?+e:+new Date(+e)}function gl(e,t,r,n,o,i,a,s,l,c){var u=pn(),f=u.invert,d=u.domain,p=c(".%L"),h=c(":%S"),m=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),O=c("%b %d"),P=c("%B"),C=c("%Y");function E(_){return(l(_)<_?p:s(_)<_?h:a(_)<_?m:i(_)<_?v:n(_)<_?o(_)<_?y:O:r(_)<_?P:C)(_)}return u.invert=function(_){return new Date(f(_))},u.domain=function(_){return arguments.length?d(Array.from(_,R_)):d().map(N_)},u.ticks=function(_){var D=d();return e(D[0],D[D.length-1],_??10)},u.tickFormat=function(_,D){return D==null?E:c(D)},u.nice=function(_){var D=d();return(!_||typeof _.range!="function")&&(_=t(D[0],D[D.length-1],_??10)),_?d(Si(D,_)):u},u.copy=function(){return Zt(u,gl(e,t,r,n,o,i,a,s,l,c))},u}function Vf(){return we.apply(gl(jf,Lf,wt,Eo,mr,pr,Po,bo,Mt,vl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Uf(){return we.apply(gl(Nf,Rf,Pt,Co,hr,yn,So,wo,Mt,yl).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function xl(){var e=0,t=1,r,n,o,i,a=Le,s=!1,l;function c(f){return f==null||isNaN(f=+f)?l:a(o===0?.5:(f=(i(f)-r)*o,s?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,r=i(e=+e),n=i(t=+t),o=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(a=f,c):a};function u(f){return function(d){var p,h;return arguments.length?([p,h]=d,a=f(p,h),c):[a(0),a(1)]}}return c.range=u(bt),c.rangeRound=u(fn),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return i=f,r=f(e),n=f(t),o=r===n?0:1/(n-r),c}}function vr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function bl(){var e=it(xl()(Le));return e.copy=function(){return vr(e,bl())},Dt.apply(e,arguments)}function $f(){var e=Oi(xl()).domain([1,10]);return e.copy=function(){return vr(e,$f()).base(e.base())},Dt.apply(e,arguments)}function Kf(){var e=Ai(xl());return e.copy=function(){return vr(e,Kf()).constant(e.constant())},Dt.apply(e,arguments)}function wl(){var e=Ei(xl());return e.copy=function(){return vr(e,wl()).exponent(e.exponent())},Dt.apply(e,arguments)}function wx(){return wl.apply(null,arguments).exponent(.5)}function Pl(){var e=[],t=Le;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ut(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let o of n)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(ot),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,o)=>t(o/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(o,i)=>Hs(e,i/n))},r.copy=function(){return Pl(t).domain(e)},Dt.apply(r,arguments)}function Sl(){var e=0,t=.5,r=1,n=1,o,i,a,s,l,c=Le,u,f=!1,d;function p(m){return isNaN(m=+m)?d:(m=.5+((m=+u(m))-i)*(n*m{if(e!=null){var{scale:n,type:o}=e;if(n==="auto")return o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":o==="category"?"band":"linear";if(typeof n=="string")return z_(n)?n:"point"}};function B_(e,t){for(var r=0,n=e.length,o=e[0]t)?r=i+1:n=i}return r}function Cl(e,t){if(e){var r=t??e.domain(),n=r.map(i=>{var a;return(a=e(i))!==null&&a!==void 0?a:0}),o=e.range();if(!(r.length===0||o.length<2))return i=>{var a,s,l=B_(n,i);if(l<=0)return r[0];if(l>=r.length)return r[r.length-1];var c=(a=n[l-1])!==null&&a!==void 0?a:0,u=(s=n[l])!==null&&s!==void 0?s:0;return Math.abs(i-c)<=Math.abs(i-u)?r[l-1]:r[l]}}}function Ox(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):Cl(e,void 0)}function Ax(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function kl(e){for(var t=1;te.cartesianAxis.xAxis[t],tr=(e,t)=>{var r=Yf(e,t);return r??Ie},Xf={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Hf,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:Jr},U_=(e,t)=>e.cartesianAxis.yAxis[t],rr=(e,t)=>{var r=U_(e,t);return r??Xf},$_={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Zf=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??$_},at=(e,t,r)=>{switch(t){case"xAxis":return tr(e,r);case"yAxis":return rr(e,r);case"zAxis":return Zf(e,r);case"angleAxis":return zs(e,r);case"radiusAxis":return Bs(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},K_=(e,t,r)=>{switch(t){case"xAxis":return tr(e,r);case"yAxis":return rr(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Ri=(e,t,r)=>{switch(t){case"xAxis":return tr(e,r);case"yAxis":return rr(e,r);case"angleAxis":return zs(e,r);case"radiusAxis":return Bs(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Qf=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Jf(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var ed=e=>e.graphicalItems.cartesianItems,q_=I([je,ui],Jf),td=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),ji=I([ed,at,q_],td,{memoizeOptions:{resultEqualityCheck:po}}),Cx=I([ji],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(fi)),rd=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),G_=I([ji],rd),nd=e=>e.map(t=>t.data).filter(Boolean).flat(1),H_=I([ji],nd,{memoizeOptions:{resultEqualityCheck:po}}),od=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:o}=t;return e.length>0?e:r.slice(n,o+1)},id=I([H_,li],od),ad=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:Oe(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(o=>({value:Oe(o,n)}))):e.map(n=>({value:n})),Li=I([id,at,ji],ad);function _o(e){if(rt(e)||e instanceof Date){var t=Number(e);if(te(t))return t}}function Ex(e){if(Array.isArray(e)){var t=[_o(e[0]),_o(e[1])];return xt(t)?t:void 0}var r=_o(e);if(r!=null)return[r,r]}function yr(e){return e.map(_o).filter(Ke)}function Y_(e,t){var r=_o(e),n=_o(t);return r==null&&n==null?0:r==null?-1:n==null?1:r-n}var X_=I([Li],e=>e?.map(t=>t.value).sort(Y_));function kx(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Z_(e,t,r){return!r||typeof t!="number"||lt(t)?[]:r.length?yr(r.flatMap(n=>{var o=Oe(e,n.dataKey),i,a;if(Array.isArray(o)?[i,a]=o:i=a=o,!(!te(i)||!te(a)))return[t-i,t+a]})):[]}var Te=e=>{var t=_e(e),r=Dr(e);return Ri(e,t,r)},Br=I([Te],e=>e?.dataKey),Q_=I([Cx,li,Te],Us),sd=(e,t,r,n)=>{var o={},i=t.reduce((a,s)=>{if(s.stackId==null)return a;var l=a[s.stackId];return l==null&&(l=[]),l.push(s),a[s.stackId]=l,a},o);return Object.fromEntries(Object.entries(i).map(a=>{var[s,l]=a,c=n?[...l].reverse():l,u=c.map(Vs);return[s,{stackedData:tv(e,u,r),graphicalItems:c}]}))},J_=I([Q_,Cx,co,Ns],sd),ld=(e,t,r,n)=>{var{dataStartIndex:o,dataEndIndex:i}=t;if(n==null&&r!=="zAxis"){var a=rv(e,o,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},eI=I([at],e=>e.allowDataOverflow),_l=e=>{var t;if(e==null||!("domain"in e))return Hf;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=yr(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Hf},_x=I([at],_l),Ix=I([_x,eI],Is),tI=I([J_,Wt,je,Ix],ld,{memoizeOptions:{resultEqualityCheck:fo}}),Il=e=>e.errorBars,rI=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>kx(r,n)),Ni=function(){for(var t=arguments.length,r=new Array(t),n=0;n{var i,a;if(r.length>0&&e.forEach(s=>{r.forEach(l=>{var c,u,f=(c=n[l.id])===null||c===void 0?void 0:c.filter(y=>kx(o,y)),d=Oe(s,(u=t.dataKey)!==null&&u!==void 0?u:l.dataKey),p=Z_(s,d,f);if(p.length>=2){var h=Math.min(...p),m=Math.max(...p);(i==null||ha)&&(a=m)}var v=Ex(d);v!=null&&(i=i==null?v[0]:Math.min(i,v[0]),a=a==null?v[1]:Math.max(a,v[1]))})}),t?.dataKey!=null&&e.forEach(s=>{var l=Ex(Oe(s,t.dataKey));l!=null&&(i=i==null?l[0]:Math.min(i,l[0]),a=a==null?l[1]:Math.max(a,l[1]))}),te(i)&&te(a))return[i,a]},nI=I([id,at,G_,Il,je],cd,{memoizeOptions:{resultEqualityCheck:fo}});function oI(e){var{value:t}=e;if(rt(t)||t instanceof Date)return t}var iI=(e,t,r)=>{var n=e.map(oI).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&su(n))?_s(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},ud=e=>e.referenceElements.dots,bn=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),aI=I([ud,je,ui],bn),fd=e=>e.referenceElements.areas,sI=I([fd,je,ui],bn),dd=e=>e.referenceElements.lines,lI=I([dd,je,ui],bn),pd=(e,t)=>{if(e!=null){var r=yr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},cI=I(aI,je,pd),md=(e,t)=>{if(e!=null){var r=yr(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},uI=I([sI,je],md);function fI(e){var t;if(e.x!=null)return yr([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:yr(r)}function dI(e){var t;if(e.y!=null)return yr([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:yr(r)}var hd=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?fI(n):dI(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},pI=I([lI,je],hd),mI=I(cI,pI,uI,(e,t,r)=>Ni(e,r,t)),vd=(e,t,r,n,o,i,a,s)=>{if(r!=null)return r;var l=a==="vertical"&&s==="xAxis"||a==="horizontal"&&s==="yAxis",c=l?Ni(n,i,o):Ni(i,o);return Vy(t,c,e.allowDataOverflow)},hI=I([at,_x,Ix,tI,nI,mI,fe,je],vd,{memoizeOptions:{resultEqualityCheck:fo}}),vI=[0,1],yd=(e,t,r,n,o,i,a)=>{if(!((e==null||r==null||r.length===0)&&a===void 0)){var{dataKey:s,type:l}=e,c=gt(t,i);if(c&&s==null){var u;return _s(0,(u=r?.length)!==null&&u!==void 0?u:0)}return l==="category"?iI(n,e,c):o==="expand"?vI:a}},gd=I([at,fe,id,Li,co,je,hI],yd),Io=I([at,Qf,uo],El),xd=(e,t,r)=>{var{niceTicks:n}=t;if(n!=="none"){var o=_l(t),i=Array.isArray(o)&&(o[0]==="auto"||o[1]==="auto");if((n==="snap125"||n==="adaptive")&&t!=null&&t.tickCount&&xt(e)){if(i)return Ds(e,t.tickCount,t.allowDecimals,n);if(t.type==="number")return Ms(e,t.tickCount,t.allowDecimals,n)}if(n==="auto"&&r==="linear"&&t!=null&&t.tickCount){if(i&&xt(e))return Ds(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&xt(e))return Ms(e,t.tickCount,t.allowDecimals,"adaptive")}}},bd=I([gd,Ri,Io],xd),wd=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&xt(t)&&Array.isArray(r)&&r.length>0){var o,i,a=t[0],s=(o=r[0])!==null&&o!==void 0?o:0,l=t[1],c=(i=r[r.length-1])!==null&&i!==void 0?i:0;return[Math.min(a,s),Math.max(l,c)]}return t},yI=I([at,gd,bd,je],wd),gI=I(Li,at,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(yr(e.map(f=>f.value))).sort((f,d)=>f-d),o=n[0],i=n[n.length-1];if(o==null||i==null)return 1/0;var a=i-o;if(a===0)return 1/0;for(var s=0;so,(e,t,r,n,o)=>{if(!te(e))return 0;var i=t==="vertical"?n.height:n.width;if(o==="gap")return e*i/2;if(o==="no-gap"){var a=kt(r,e*i),s=e*i/2;return s-a-(s-a)/i*a}return 0}),xI=(e,t,r)=>{var n=tr(e,t);return n==null||typeof n.padding!="string"?0:Tx(e,"xAxis",t,r,n.padding)},bI=(e,t,r)=>{var n=rr(e,t);return n==null||typeof n.padding!="string"?0:Tx(e,"yAxis",t,r,n.padding)},wI=I(tr,xI,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((r=o.left)!==null&&r!==void 0?r:0)+t,right:((n=o.right)!==null&&n!==void 0?n:0)+t}}),PI=I(rr,bI,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((r=o.top)!==null&&r!==void 0?r:0)+t,bottom:((n=o.bottom)!==null&&n!==void 0?n:0)+t}}),SI=I([ge,wI,en,ro,(e,t,r)=>r],(e,t,r,n,o)=>{var{padding:i}=n;return o?[i.left,r.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),OI=I([ge,fe,PI,en,ro,(e,t,r)=>r],(e,t,r,n,o,i)=>{var{padding:a}=o;return i?[n.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),To=(e,t,r,n)=>{var o;switch(t){case"xAxis":return SI(e,r,n);case"yAxis":return OI(e,r,n);case"zAxis":return(o=Zf(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return df(e);case"radiusAxis":return pf(e,r);default:return}},Dx=I([at,To],an),AI=I([Io,yI],eg),Pd=I([at,Io,AI,Dx],Mi),Sd=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:o,scale:i}=r,a=gt(e,n);if(a&&(o==="number"||i!=="auto"))return t.map(s=>s.value)}},Od=I([fe,Li,Ri,je],Sd),Tl=I([Pd],di),A8=I([Pd],Ox),E8=I([Pd,X_],Cl),C8=I([ji,Il,je],rI);function Mx(e,t){return e.idt.id?1:0}var Dl=(e,t)=>t,Ml=(e,t,r)=>r,EI=I(eo,Dl,Ml,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Mx)),CI=I(to,Dl,Ml,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Mx)),Nx=(e,t)=>({width:e.width,height:t.height}),kI=(e,t)=>{var r=typeof t.width=="number"?t.width:Jr;return{width:r,height:e.height}},Rx=I(ge,tr,Nx),_I=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},II=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},TI=I(Ze,ge,EI,Dl,Ml,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=Nx(t,s);a==null&&(a=_I(t,n,e));var c=n==="top"&&!o||n==="bottom"&&o;i[s.id]=a-Number(c)*l.height,a+=(c?-1:1)*l.height}),i}),DI=I(Xe,ge,CI,Dl,Ml,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=kI(t,s);a==null&&(a=II(t,n,e));var c=n==="left"&&!o||n==="right"&&o;i[s.id]=a-Number(c)*l.width,a+=(c?-1:1)*l.width}),i}),MI=(e,t)=>{var r=tr(e,t);if(r!=null)return TI(e,r.orientation,r.mirror)},jx=I([ge,tr,MI,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var o=r?.[n];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),NI=(e,t)=>{var r=rr(e,t);if(r!=null)return DI(e,r.orientation,r.mirror)},k8=I([ge,rr,NI,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var o=r?.[n];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),_8=I(ge,rr,(e,t)=>{var r=typeof t.width=="number"?t.width:Jr;return{width:r,height:e.height}});var Ad=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:o,type:i,dataKey:a}=r,s=gt(e,n),l=t.map(c=>c.value);if(a&&s&&i==="category"&&o&&su(l))return l}},Ed=I([fe,Li,at,je],Ad),Cd=I([fe,K_,Io,Tl,Ed,Od,To,bd,je],(e,t,r,n,o,i,a,s,l)=>{if(t!=null){var c=gt(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:i,duplicateDomain:o,isCategorical:c,niceTicks:s,range:a,realScaleType:r,scale:n}}}),RI=(e,t,r,n,o,i,a,s,l)=>{if(!(t==null||n==null)){var c=gt(e,l),{type:u,ticks:f,tickCount:d}=t,p=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,h=u==="category"&&n.bandwidth?n.bandwidth()/p:0;h=l==="angleAxis"&&i!=null&&i.length>=2?Ne(i[0]-i[1])*2*h:h;var m=f||o;return m?m.map((v,y)=>{var O=a?a.indexOf(v):v,P=n.map(O);return te(P)?{index:y,coordinate:P+h,value:v,offset:h}:null}).filter(Ke):c&&s?s.map((v,y)=>{var O=n.map(v);return te(O)?{coordinate:O+h,value:v,index:y,offset:h}:null}).filter(Ke):n.ticks?n.ticks(d).map((v,y)=>{var O=n.map(v);return te(O)?{coordinate:O+h,value:v,index:y,offset:h}:null}).filter(Ke):n.domain().map((v,y)=>{var O=n.map(v);return te(O)?{coordinate:O+h,value:a?a[v]:v,index:y,offset:h}:null}).filter(Ke)}},Lx=I([fe,Ri,Io,Tl,bd,To,Ed,Od,je],RI),jI=(e,t,r,n,o,i,a)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=gt(e,a),{tickCount:l}=t,c=0;return c=a==="angleAxis"&&n?.length>=2?Ne(n[0]-n[1])*2*c:c,s&&i?i.map((u,f)=>{var d=r.map(u);return te(d)?{coordinate:d+c,value:u,index:f,offset:c}:null}).filter(Ke):r.ticks?r.ticks(l).map((u,f)=>{var d=r.map(u);return te(d)?{coordinate:d+c,value:u,index:f,offset:c}:null}).filter(Ke):r.domain().map((u,f)=>{var d=r.map(u);return te(d)?{coordinate:d+c,value:o?o[u]:u,index:f,offset:c}:null}).filter(Ke)}},kd=I([fe,Ri,Tl,To,Ed,Od,je],jI),_d=I(at,Tl,(e,t)=>{if(!(e==null||t==null))return kl(kl({},e),{},{scale:t})}),LI=I([at,Io,gd,Dx],Mi),zI=I([LI],di),I8=I((e,t,r)=>Zf(e,r),zI,(e,t)=>{if(!(e==null||t==null))return kl(kl({},e),{},{scale:t})}),zx=I([fe,eo,to],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),BI=(e,t,r)=>{var n;return(n=e.renderedTicks[t])===null||n===void 0?void 0:n[r]},T8=I([BI],e=>{if(!(!e||e.length===0))return t=>{var r,n=1/0,o=e[0];for(var i of e){var a=Math.abs(i.coordinate-t);ae.options.defaultTooltipEventType,Td=e=>e.options.validateTooltipEventTypes;function Dd(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function zi(e,t){var r=Id(e),n=Td(e);return Dd(t,r,n)}function Bx(e){return q(t=>zi(t,e))}var Nl=(e,t)=>{var r,n=Number(t);if(!(lt(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0};var Fx=e=>e.tooltip.settings;var gr={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},FI={itemInteraction:{click:gr,hover:gr},axisInteraction:{click:gr,hover:gr},keyboardInteraction:gr,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},Wx=se({name:"tooltip",initialState:FI,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:ue()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Ge(e).tooltipItemPayloads.indexOf(r);o>-1&&(e.tooltipItemPayloads[o]=n)},prepare:ue()},removeTooltipEntrySettings:{reducer(e,t){var r=Ge(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:ue()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Vx,replaceTooltipEntrySettings:Ux,removeTooltipEntrySettings:$x,setTooltipSettingsState:Kx,setActiveMouseOverItemIndex:qx,mouseLeaveItem:B8,mouseLeaveChart:Rl,setActiveClickItemIndex:F8,setMouseOverAxisIndex:jl,setMouseClickAxisIndex:Gx,setSyncInteraction:Ll,setKeyboardInteraction:Bi}=Wx.actions,Hx=Wx.reducer;function Yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function zl(e){for(var t=1;t{if(t==null)return gr;var o=$I(e,t,r);if(o==null)return gr;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var i=e.settings.active===!0;if(KI(o)){if(i)return zl(zl({},o),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return zl(zl({},gr),{},{coordinate:o.coordinate})};function qI(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function GI(e,t){var r=qI(e),n=t[0],o=t[1];if(r===void 0)return!1;var i=Math.min(n,o),a=Math.max(n,o);return r>=i&&r<=a}function HI(e,t,r){if(r==null||t==null)return!0;var n=Oe(e,t);return n==null||!xt(r)?!0:GI(n,r)}var Do=(e,t,r,n)=>{var o=e?.index;if(o==null)return null;var i=Number(o);if(!te(i))return o;var a=0,s=1/0;t.length>0&&(s=t.length-1);var l=Math.max(a,Math.min(i,s)),c=t[l];return c==null||HI(c,r,n)?String(l):null};var Fl=(e,t,r,n,o,i,a)=>{if(i!=null){var s=a[0],l=s?.getPosition(i);if(l!=null)return l;var c=o?.[Number(i)];if(c)switch(r){case"horizontal":return{x:c.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:c.coordinate}}}};var Wl=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(r==="hover"?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&o==null)return e.tooltipItemPayloads;if(o==null&&n!=null){var i=e.tooltipItemPayloads[0];return i!=null?[i]:[]}return e.tooltipItemPayloads.filter(a=>{var s;return((s=a.settings)===null||s===void 0?void 0:s.graphicalItemId)===o})};var Vl=e=>e.options.tooltipPayloadSearcher;var xr=e=>e.tooltip;function Xx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Zx(e){for(var t=1;te(t)}function Qx(e){if(typeof e=="string")return e}function tT(e){if(!(e==null||typeof e!="object")){var t="name"in e?QI(e.name):void 0,r="unit"in e?JI(e.unit):void 0,n="dataKey"in e?eT(e.dataKey):void 0,o="payload"in e?e.payload:void 0,i="color"in e?Qx(e.color):void 0,a="fill"in e?Qx(e.fill):void 0;return{name:t,unit:r,dataKey:n,payload:o,color:i,fill:a}}}function rT(e,t){return e??t}var Ul=(e,t,r,n,o,i,a)=>{if(!(t==null||i==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=r,f=[];return e.reduce((d,p)=>{var h,{dataDefinedOnItem:m,settings:v}=p,y=rT(m,s),O=Array.isArray(y)?ls(y,c,u):y,P=(h=v?.dataKey)!==null&&h!==void 0?h:n,C=v?.nameKey,E;if(n&&Array.isArray(O)&&!Array.isArray(O[0])&&a==="axis"?E=wa(O,n,o):E=i(O,t,l,C),Array.isArray(E))E.forEach(D=>{var k,B,L=tT(D),H=L?.name,z=L?.dataKey,X=L?.payload,Z=Zx(Zx({},v),{},{name:H,unit:L?.unit,color:(k=L?.color)!==null&&k!==void 0?k:v?.color,fill:(B=L?.fill)!==null&&B!==void 0?B:v?.fill});d.push(Ku({tooltipEntrySettings:Z,dataKey:z,payload:X,value:Oe(X,z),name:H==null?void 0:String(H)}))});else{var _;d.push(Ku({tooltipEntrySettings:v,dataKey:P,payload:E,value:Oe(E,P),name:(_=Oe(E,C))!==null&&_!==void 0?_:v?.name}))}return d},f)}};var Md=I([Te,Qf,uo],El),nT=I([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),oT=I([_e,Dr],Jf),wn=I([nT,Te,oT],td,{memoizeOptions:{resultEqualityCheck:po}}),iT=I([wn],e=>e.filter(fi)),aT=I([wn],nd,{memoizeOptions:{resultEqualityCheck:po}}),Fr=I([aT,Wt],od),sT=I([iT,Wt,Te],Us),Nd=I([Fr,Te,wn],ad),Jx=I([Te],_l),lT=I([Te],e=>e.allowDataOverflow),eb=I([Jx,lT],Is),cT=I([wn],e=>e.filter(fi)),uT=I([sT,cT,co,Ns],sd),fT=I([uT,Wt,_e,eb],ld),dT=I([wn],rd),pT=I([Fr,Te,dT,Il,_e],cd,{memoizeOptions:{resultEqualityCheck:fo}}),mT=I([ud,_e,Dr],bn),hT=I([mT,_e],pd),vT=I([fd,_e,Dr],bn),yT=I([vT,_e],md),gT=I([dd,_e,Dr],bn),xT=I([gT,_e],hd),bT=I([hT,xT,yT],Ni),wT=I([Te,Jx,eb,fT,pT,bT,fe,_e],vd),Pn=I([Te,fe,Fr,Nd,co,_e,wT],yd),PT=I([Pn,Te,Md],xd),ST=I([Te,Pn,PT,_e],wd),tb=e=>{var t=_e(e),r=Dr(e),n=!1;return To(e,t,r,n)},Rd=I([Te,tb],an),OT=I([Te,Md,ST,Rd],Mi),jd=I([OT],di),AT=I([fe,Nd,Te,_e],Ad),ET=I([fe,Nd,Te,_e],Sd),CT=(e,t,r,n,o,i,a,s)=>{if(t){var{type:l}=t,c=gt(e,s);if(n){var u=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=l==="category"&&n.bandwidth?n.bandwidth()/u:0;return f=s==="angleAxis"&&o!=null&&o?.length>=2?Ne(o[0]-o[1])*2*f:f,c&&a?a.map((d,p)=>{var h=n.map(d);return te(h)?{coordinate:h+f,value:d,index:p,offset:f}:null}).filter(Ke):n.domain().map((d,p)=>{var h=n.map(d);return te(h)?{coordinate:h+f,value:i?i[d]:d,index:p,offset:f}:null}).filter(Ke)}}},ft=I([fe,Te,Md,jd,tb,AT,ET,_e],CT),Ld=I([Id,Td,Fx],(e,t,r)=>Dd(r.shared,e,t)),rb=e=>e.tooltip.settings.trigger,zd=e=>e.tooltip.settings.defaultIndex,Fi=I([xr,Ld,rb,zd],Bl),Sn=I([Fi,Fr,Br,Pn],Do),$l=I([ft,Sn],Nl),nb=I([Fi],e=>{if(e)return e.dataKey}),ob=I([Fi],e=>{if(e)return e.graphicalItemId}),ib=I([xr,Ld,rb,zd],Wl),kT=I([Xe,Ze,fe,ge,ft,zd,ib],Fl),Bd=I([Fi,kT],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Fd=I([Fi],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),_T=I([ib,Sn,Wt,Br,$l,Vl,Ld],Ul),ab=I([_T],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function sb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function lb(e){for(var t=1;tq(Te),cb=()=>{var e=MT(),t=q(ft),r=q(jd);return!e||!r?Jn(void 0,t):Jn(lb(lb({},e),{},{scale:r}),t)};function ub(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Mo(e){for(var t=1;t{var o=t.find(i=>i&&i.index===r);if(o){if(e==="horizontal")return{x:o.coordinate,y:n.relativeY};if(e==="vertical")return{x:n.relativeX,y:o.coordinate}}return{x:0,y:0}},db=(e,t,r,n)=>{var o=t.find(c=>c&&c.index===r);if(o){if(e==="centric"){var i=o.coordinate,{radius:a}=n;return Mo(Mo(Mo({},n),Ee(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,{angle:l}=n;return Mo(Mo(Mo({},n),Ee(n.cx,n.cy,s,l)),{},{angle:l,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function pb(e,t){var{relativeX:r,relativeY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var Wd=(e,t,r,n,o)=>{var i,a=(i=t?.length)!==null&&i!==void 0?i:0;if(a<=1||e==null)return 0;if(n==="angleAxis"&&o!=null&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var s=0;s0?(l=r[s-1])===null||l===void 0?void 0:l.coordinate:(c=r[a-1])===null||c===void 0?void 0:c.coordinate,h=(u=r[s])===null||u===void 0?void 0:u.coordinate,m=s>=a-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(d=r[s+1])===null||d===void 0?void 0:d.coordinate,v=void 0;if(!(p==null||h==null||m==null))if(Ne(h-p)!==Ne(m-h)){var y=[];if(Ne(m-h)===Ne(o[1]-o[0])){v=m;var O=h+o[1]-o[0];y[0]=Math.min(O,(O+p)/2),y[1]=Math.max(O,(O+p)/2)}else{v=p;var P=m+o[1]-o[0];y[0]=Math.min(h,(P+h)/2),y[1]=Math.max(h,(P+h)/2)}var C=[Math.min(h,(v+h)/2),Math.max(h,(v+h)/2)];if(e>C[0]&&e<=C[1]||e>=y[0]&&e<=y[1]){var E;return(E=r[s])===null||E===void 0?void 0:E.index}}else{var _=Math.min(p,m),D=Math.max(p,m);if(e>(_+h)/2&&e<=(D+h)/2){var k;return(k=r[s])===null||k===void 0?void 0:k.index}}}else if(t)for(var B=0;B(L.coordinate+z.coordinate)/2||B>0&&B(L.coordinate+z.coordinate)/2&&e<=(L.coordinate+H.coordinate)/2)return L.index}}return-1};var mb=()=>q(uo),Vd=(e,t)=>t,hb=(e,t,r)=>r,Ud=(e,t,r,n)=>n,vb=I(ft,e=>ur(e,t=>t.coordinate)),$d=I([xr,Vd,hb,Ud],Bl),Kd=I([$d,Fr,Br,Pn],Do),yb=(e,t,r)=>{if(t!=null){var n=xr(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},gb=I([xr,Vd,hb,Ud],Wl),Wi=I([Xe,Ze,fe,ge,ft,Ud,gb],Fl),xb=I([$d,Wi],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),qd=I([ft,Kd],Nl),bb=I([gb,Kd,Wt,Br,qd,Vl,Vd],Ul),wb=I([$d,Kd],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),LT=(e,t,r,n,o,i,a)=>{if(!(!e||!r||!n||!o)&&pb(e,a)){var s=nv(e,t),l=Wd(s,i,o,r,n),c=fb(t,o,l,e);return{activeIndex:String(l),activeCoordinate:c}}},zT=(e,t,r,n,o,i,a)=>{if(!(!e||!n||!o||!i||!r)){var s=_y(e,r);if(s){var l=ov(s,t),c=Wd(l,a,i,n,o),u=db(t,i,c,s);return{activeIndex:String(c),activeCoordinate:u}}}},Pb=(e,t,r,n,o,i,a,s)=>{if(!(!e||!t||!n||!o||!i))return t==="horizontal"||t==="vertical"?LT(e,t,n,o,i,a,s):zT(e,t,r,n,o,i,a)};import{useLayoutEffect as qT}from"react";import{createPortal as GT}from"react-dom";var Sb=I(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),Ob=I(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(de)),r=Array.from(new Set(t));return r.sort((n,o)=>n-o)},{memoizeOptions:{resultEqualityCheck:Jy}});function Ab(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Eb(e){for(var t=1;tEb(Eb({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),VT)},$T=new Set(Object.values(de));function KT(e){return $T.has(e)}var Cb=se({name:"zIndex",initialState:UT,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:ue()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!KT(r)&&delete e.zIndexMap[r])},prepare:ue()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:o}=t.payload;e.zIndexMap[r]?o?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:o?void 0:n,panoramaElement:o?n:void 0}},prepare:ue()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:ue()}}}),{registerZIndexPortal:kb,unregisterZIndexPortal:_b,registerZIndexPortalElement:Ib,unregisterZIndexPortalElement:Tb}=Cb.actions,Db=Cb.reducer;function He(e){var{zIndex:t,children:r}=e,n=Pv(),o=n&&t!==void 0&&t!==0,i=be(),a=ie();qT(()=>o?(a(kb({zIndex:t})),()=>{a(_b({zIndex:t}))}):ht,[a,t,o]);var s=q(l=>Sb(l,t,i));return o?s?GT(r,s):null:r}function Gd(){return Gd=Object.assign?Object.assign.bind():function(e){for(var t=1;tnD(Hd);import{useEffect as Yl}from"react";var zb=Ec(Lb(),1);var Bb=zb.default;var No=new Bb;var Hl="recharts.syncEvent.tooltip",Xd="recharts.syncEvent.brush";var Fb=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!lt(r))return e[r]}},aD={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},Wb=se({name:"options",initialState:aD,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Vb=Wb.reducer,{createEventEmitter:Ub}=Wb.actions;function $b(e){return e.tooltip.syncInteraction}var sD={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},Kb=se({name:"chartData",initialState:sD,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:Zd,setDataStartEndIndexes:qb,setComputedData:lD}=Kb.actions,Gb=Kb.reducer;var cD=["x","y"];function Hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ro(e){for(var t=1;tl.rootProps.className);Yl(()=>{if(e==null)return ht;var l=(c,u,f)=>{if(t!==f&&e===c){if(n==="index"){var d;if(a&&u!==null&&u!==void 0&&(d=u.payload)!==null&&d!==void 0&&d.coordinate&&u.payload.sourceViewBox){var p=u.payload.coordinate,{x:h,y:m}=p,v=pD(p,cD),{x:y,y:O,width:P,height:C}=u.payload.sourceViewBox,E=Ro(Ro({},v),{},{x:a.x+(P?(h-y)/P:0)*a.width,y:a.y+(C?(m-O)/C:0)*a.height});r(Ro(Ro({},u),{},{payload:Ro(Ro({},u.payload),{},{coordinate:E})}))}else r(u);return}if(o!=null){var _;if(typeof n=="function"){var D={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},k=n(o,D);_=o[k]}else n==="value"&&(_=o.find(g=>String(g.value)===u.payload.label));var{coordinate:B}=u.payload;if(_==null||u.payload.active===!1||B==null||a==null){r(Ll({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:L,y:H}=B,z=Math.min(L,a.x+a.width),X=Math.min(H,a.y+a.height),Z={x:i==="horizontal"?_.coordinate:z,y:i==="horizontal"?X:_.coordinate},J=Ll({active:u.payload.active,coordinate:Z,dataKey:u.payload.dataKey,index:String(_.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:u.payload.graphicalItemId});r(J)}}};return No.on(Hl,l),()=>{No.off(Hl,l)}},[s,r,t,e,n,o,i,a])}function vD(){var e=q(Rs),t=q(js),r=ie();Yl(()=>{if(e==null)return ht;var n=(o,i,a)=>{t!==a&&e===o&&r(qb(i))};return No.on(Xd,n),()=>{No.off(Xd,n)}},[r,t,e])}function Yb(){var e=ie();Yl(()=>{e(Ub())},[e]),hD(),vD()}function Xb(e,t,r,n,o,i){var a=q(h=>yb(h,e,t)),s=q(ob),l=q(js),c=q(Rs),u=q(uf),f=q($b),d=f?.active,p=rn();Yl(()=>{if(!d&&c!=null&&l!=null){var h=Ll({active:i,coordinate:r,dataKey:a,index:o,label:typeof n=="number"?String(n):n,sourceViewBox:p,graphicalItemId:s});No.emit(Hl,c,h,l)}},[d,r,a,s,o,n,l,c,u,i,p])}function Zb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qb(e){for(var t=1;t{D(Kx({shared:O,trigger:P,axisId:_,active:o,defaultIndex:k}))},[D,O,P,_,o,k]);var B=rn(),L=hs(),H=Bx(O),{activeIndex:z,isActive:X}=(t=q(ne=>wb(ne,H,P,k)))!==null&&t!==void 0?t:{},Z=q(ne=>bb(ne,H,P,k)),J=q(ne=>qd(ne,H,P,k)),g=q(ne=>xb(ne,H,P,k)),b=Z,A=Rb(),w=(r=o??X)!==null&&r!==void 0?r:!1,[x,S]=th([b,w]),T=H==="axis"?J:void 0;Xb(H,P,g,T,z,w);var M=E??A;if(M==null||B==null||H==null)return null;var j=b??Jb;w||(j=Jb),c&&j.length&&(j=$m(j.filter(ne=>ne.value!=null&&(ne.hide!==!0||n.includeHidden)),d,PD));var W=j.length>0,F=Qb(Qb({},n),{},{payload:j,label:T,active:w,activeIndex:z,coordinate:g,accessibilityLayer:L}),$=Nt.createElement(Lv,{allowEscapeViewBox:i,animationDuration:a,animationEasing:s,isAnimationActive:u,active:w,coordinate:g,hasPayload:W,offset:f,position:p,reverseDirection:h,useTranslate3d:m,viewBox:B,wrapperStyle:v,lastBoundingBox:x,innerRef:S,hasPortalFromProps:!!E},SD(l,F));return Nt.createElement(Nt.Fragment,null,wD($,M),w&&Nt.createElement(Nb,{cursor:y,tooltipEventType:H,coordinate:g,payload:j,index:z}))}import*as ep from"react";import{useMemo as XD,forwardRef as ZD}from"react";function AD(e,t,r){return(t=ED(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ED(e){var t=CD(e,"string");return typeof t=="symbol"?t:t+""}function CD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xl=class{constructor(t){AD(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}};function e0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function kD(e){for(var t=1;t{try{var r=document.getElementById(r0);r||(r=document.createElement("span"),r.setAttribute("id",r0),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,MD,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},On=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Tt.isSsr)return{width:0,height:0};if(!o0.enableCache)return n0(t,r);var n=ND(t,r),o=t0.get(n);if(o)return o;var i=n0(t,r);return t0.set(n,i),i};var l0;function RD(e,t,r){return(t=jD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jD(e){var t=LD(e,"string");return typeof t=="symbol"?t:t+""}function LD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i0=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,a0=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zD=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,BD=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,FD={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},WD=["cm","mm","pt","pc","in","Q","px"];function VD(e){return WD.includes(e)}var jo="NaN";function UD(e,t){return e*FD[t]}var Wr=class e{static parse(t){var r,[,n,o]=(r=BD.exec(t))!==null&&r!==void 0?r:[];return n==null?e.NaN:new e(parseFloat(n),o??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,lt(t)&&(this.unit=""),r!==""&&!zD.test(r)&&(this.num=NaN,this.unit=""),VD(r)&&(this.num=UD(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return lt(this.num)}};l0=Wr;RD(Wr,"NaN",new l0(NaN,""));function c0(e){if(e==null||e.includes(jo))return jo;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,o,i]=(r=i0.exec(t))!==null&&r!==void 0?r:[],a=Wr.parse(n??""),s=Wr.parse(i??""),l=o==="*"?a.multiply(s):a.divide(s);if(l.isNaN())return jo;t=t.replace(i0,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,f,d]=(c=a0.exec(t))!==null&&c!==void 0?c:[],p=Wr.parse(u??""),h=Wr.parse(d??""),m=f==="+"?p.add(h):p.subtract(h);if(m.isNaN())return jo;t=t.replace(a0,m.toString())}return t}var s0=/\(([^()]*)\)/;function $D(e){for(var t=e,r;(r=s0.exec(t))!=null;){var[,n]=r;t=t.replace(s0,c0(n))}return t}function KD(e){var t=e.replace(/\s+/g,"");return t=$D(t),t=c0(t),t}function qD(e){try{return KD(e)}catch{return jo}}function Zl(e){var t=qD(e.slice(5,-1));return t===jo?"":t}var GD=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],HD=["dx","dy","angle","className","breakAll"];function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:t,breakAll:r,style:n}=e;try{var o=[];ve(t)||(r?o=t.toString().split(""):o=t.toString().split(p0));var i=o.map(s=>({word:s,width:On(s,n).width})),a=r?0:On("\xA0",n).width;return{wordsWithComputedWidth:i,spaceWidth:a}}catch{return null}};function Ql(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function h0(e){return ve(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var v0=(e,t,r,n)=>e.reduce((o,i)=>{var{word:a,width:s}=i,l=o[o.length-1];if(l&&s!=null&&(t==null||n||l.width+s+re.reduce((t,r)=>t.width>r.width?t:r),QD="\u2026",f0=(e,t,r,n,o,i,a,s)=>{var l=e.slice(0,t),c=m0({breakAll:r,style:n,children:l+QD});if(!c)return[!1,[]];var u=v0(c.wordsWithComputedWidth,i,a,s),f=u.length>o||y0(u).width>Number(i);return[f,u]},JD=(e,t,r,n,o)=>{var{maxLines:i,children:a,style:s,breakAll:l}=e,c=U(i),u=String(a),f=v0(t,n,r,o);if(!c||o)return f;var d=f.length>i||y0(f).width>Number(n);if(!d)return f;for(var p=0,h=u.length-1,m=0,v;p<=h&&m<=u.length-1;){var y=Math.floor((p+h)/2),O=y-1,[P,C]=f0(u,O,l,s,i,n,r,o),[E]=f0(u,y,l,s,i,n,r,o);if(!P&&!E&&(p=y+1),P&&E&&(h=y-1),!P&&E){v=C;break}m++}return v||f},d0=e=>{var t=ve(e)?[]:e.toString().split(p0);return[{words:t,width:void 0}]},eM=e=>{var{width:t,scaleToFit:r,children:n,style:o,breakAll:i,maxLines:a}=e;if((t||r)&&!Tt.isSsr){var s,l,c=m0({breakAll:i,children:n,style:o});if(c){var{wordsWithComputedWidth:u,spaceWidth:f}=c;s=u,l=f}else return d0(n);return JD({breakAll:i,children:n,maxLines:a,style:o},s,l,t,!!r)}return d0(n)},g0="#808080",tM={angle:0,breakAll:!1,capHeight:"0.71em",fill:g0,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Ui=ZD((e,t)=>{var r=ye(e,tM),{x:n,y:o,lineHeight:i,capHeight:a,fill:s,scaleToFit:l,textAnchor:c,verticalAnchor:u}=r,f=u0(r,GD),d=XD(()=>eM({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:l,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,l,f.style,f.width]),{dx:p,dy:h,angle:m,className:v,breakAll:y}=f,O=u0(f,HD);if(!rt(n)||!rt(o)||d.length===0)return null;var P=Number(n)+(U(p)?p:0),C=Number(o)+(U(h)?h:0);if(!te(P)||!te(C))return null;var E;switch(u){case"start":E=Zl("calc(".concat(a,")"));break;case"middle":E=Zl("calc(".concat((d.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:E=Zl("calc(".concat(d.length-1," * -").concat(i,")"));break}var _=[],D=d[0];if(l&&D!=null){var k=D.width,{width:B}=f;_.push("scale(".concat(U(B)&&U(k)?B/k:1,")"))}return m&&_.push("rotate(".concat(m,", ").concat(P,", ").concat(C,")")),_.length&&(O.transform=_.join(" ")),ep.createElement("text",Jd({},me(O),{ref:t,x:P,y:C,className:Q("recharts-text",v),textAnchor:c,fill:s.includes("url")?g0:s}),d.map((L,H)=>{var z=L.words.join(y?"":" ");return ep.createElement("tspan",{x:P,dy:H===0?E:i,key:"".concat(z,"-").concat(H)},z)}))});Ui.displayName="Text";import*as St from"react";import{cloneElement as S0,createContext as O0,createElement as fM,isValidElement as Jl,useContext as A0,useMemo as dM}from"react";function x0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nr(e){for(var t=1;t{var{viewBox:t,position:r,offset:n=0,parentViewBox:o,clamp:i}=e,{x:a,y:s,height:l,upperWidth:c,lowerWidth:u}=ti(t),f=a,d=a+(c-u)/2,p=(f+d)/2,h=(c+u)/2,m=f+c/2,v=l>=0?1:-1,y=v*n,O=v>0?"end":"start",P=v>0?"start":"end",C=c>=0?1:-1,E=C*n,_=C>0?"end":"start",D=C>0?"start":"end",k=o;if(r==="top"){var B={x:f+c/2,y:s-y,horizontalAnchor:"middle",verticalAnchor:O};return i&&k&&(B.height=Math.max(s-k.y,0),B.width=c),B}if(r==="bottom"){var L={x:d+u/2,y:s+l+y,horizontalAnchor:"middle",verticalAnchor:P};return i&&k&&(L.height=Math.max(k.y+k.height-(s+l),0),L.width=u),L}if(r==="left"){var H={x:p-E,y:s+l/2,horizontalAnchor:_,verticalAnchor:"middle"};return i&&k&&(H.width=Math.max(H.x-k.x,0),H.height=l),H}if(r==="right"){var z={x:p+h+E,y:s+l/2,horizontalAnchor:D,verticalAnchor:"middle"};return i&&k&&(z.width=Math.max(k.x+k.width-z.x,0),z.height=l),z}var X=i&&k?{width:h,height:l}:{};return r==="insideLeft"?nr({x:p+E,y:s+l/2,horizontalAnchor:D,verticalAnchor:"middle"},X):r==="insideRight"?nr({x:p+h-E,y:s+l/2,horizontalAnchor:_,verticalAnchor:"middle"},X):r==="insideTop"?nr({x:f+c/2,y:s+y,horizontalAnchor:"middle",verticalAnchor:P},X):r==="insideBottom"?nr({x:d+u/2,y:s+l-y,horizontalAnchor:"middle",verticalAnchor:O},X):r==="insideTopLeft"?nr({x:f+E,y:s+y,horizontalAnchor:D,verticalAnchor:P},X):r==="insideTopRight"?nr({x:f+c-E,y:s+y,horizontalAnchor:_,verticalAnchor:P},X):r==="insideBottomLeft"?nr({x:d+E,y:s+l-y,horizontalAnchor:D,verticalAnchor:O},X):r==="insideBottomRight"?nr({x:d+u-E,y:s+l-y,horizontalAnchor:_,verticalAnchor:O},X):r&&typeof r=="object"&&(U(r.x)||sr(r.x))&&(U(r.y)||sr(r.y))?nr({x:a+kt(r.x,h),y:s+kt(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},X):nr({x:m,y:s+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},X)};var iM=["labelRef"],aM=["content"];function w0(e,t){if(e==null)return{};var r,n,o=sM(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var{x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a,children:s}=e,l=dM(()=>({x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a}),[t,r,n,o,i,a]);return St.createElement(E0.Provider,{value:l},s)},k0=()=>{var e=A0(E0),t=rn();return e||(t?ti(t):void 0)},pM=O0(null);var mM=()=>{var e=A0(pM),t=q(Ws);return e||t},hM=e=>{var{value:t,formatter:r}=e,n=ve(e.children)?t:e.children;return typeof r=="function"?r(n):n},tp=e=>e!=null&&typeof e=="function",vM=(e,t)=>{var r=Ne(t-e),n=Math.min(Math.abs(t-e),360);return r*n},yM=(e,t,r,n,o)=>{var{offset:i,className:a}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:f,endAngle:d,clockWise:p}=o,h=(c+u)/2,m=vM(f,d),v=m>=0?1:-1,y,O;switch(t){case"insideStart":y=f+v*i,O=p;break;case"insideEnd":y=d-v*i,O=!p;break;case"end":y=d+v*i,O=p;break;default:throw new Error("Unsupported position ".concat(t))}O=m<=0?O:!O;var P=Ee(s,l,h,y),C=Ee(s,l,h,y+(O?1:-1)*359),E="M".concat(P.x,",").concat(P.y,` + A`).concat(h,",").concat(h,",0,1,").concat(O?0:1,`, + `).concat(C.x,",").concat(C.y),_=ve(e.id)?lr("recharts-radial-line-"):e.id;return St.createElement("text",wr({},n,{dominantBaseline:"central",className:Q("recharts-radial-bar-label",a)}),St.createElement("defs",null,St.createElement("path",{id:_,d:E})),St.createElement("textPath",{xlinkHref:"#".concat(_)},r))},gM=(e,t,r)=>{var{cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:s,endAngle:l}=e,c=(s+l)/2;if(r==="outside"){var{x:u,y:f}=Ee(n,o,a+t,c);return{x:u,y:f,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"end"};var d=(i+a)/2,{x:p,y:h}=Ee(n,o,d,c);return{x:p,y:h,textAnchor:"middle",verticalAnchor:"middle"}},ec=e=>e!=null&&"cx"in e&&U(e.cx),xM={angle:0,offset:5,zIndex:de.label,position:"middle",textBreakAll:!1};function bM(e){if(!ec(e))return e;var{cx:t,cy:r,outerRadius:n}=e,o=n*2;return{x:t-n,y:r-n,width:o,upperWidth:o,lowerWidth:o,height:o}}function br(e){var t=ye(e,xM),{viewBox:r,parentViewBox:n,position:o,value:i,children:a,content:s,className:l="",textBreakAll:c,labelRef:u}=t,f=mM(),d=k0(),p=o==="center"?d:f??d,h,m,v;r==null?h=p:ec(r)?h=r:h=ti(r);var y=bM(h);if(!h||ve(i)&&ve(a)&&!Jl(s)&&typeof s!="function")return null;var O=$i($i({},t),{},{viewBox:h});if(Jl(s)){var{labelRef:P}=O,C=w0(O,iM);return S0(s,C)}if(typeof s=="function"){var{content:E}=O,_=w0(O,aM);if(m=fM(s,_),Jl(m))return m}else m=hM(t);var D=me(t);if(ec(h)){if(o==="insideStart"||o==="insideEnd"||o==="end")return yM(t,o,m,D,h);v=gM(h,t.offset,t.position)}else{if(!y)return null;var k=b0({viewBox:y,position:o,offset:t.offset,parentViewBox:ec(n)?void 0:n,clamp:!0});v=$i($i({x:k.x,y:k.y,textAnchor:k.horizontalAnchor,verticalAnchor:k.verticalAnchor},k.width!==void 0?{width:k.width}:{}),k.height!==void 0?{height:k.height}:{})}return St.createElement(He,{zIndex:t.zIndex},St.createElement(Ui,wr({ref:u,className:Q("recharts-label",l)},D,v,{textAnchor:Ql(D.textAnchor)?D.textAnchor:v.textAnchor,breakAll:c}),m))}br.displayName="Label";var wM=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?St.createElement(br,wr({key:"label-implicit"},n)):rt(e)?St.createElement(br,wr({key:"label-implicit",value:e},n)):Jl(e)?e.type===br?S0(e,$i({key:"label-implicit"},n)):St.createElement(br,wr({key:"label-implicit",content:e},n)):tp(e)?St.createElement(br,wr({key:"label-implicit",content:e},n)):e&&typeof e=="object"?St.createElement(br,wr({},e,{key:"label-implicit"},n)):null};function _0(e){var{label:t,labelRef:r}=e,n=k0();return wM(t,n,r)||null}import*as Pr from"react";import{createContext as T0,useContext as D0}from"react";var PM=["valueAccessor"],SM=["dataKey","clockWise","id","textBreakAll","zIndex"];function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(h0(t))return t},M0=T0(void 0),N0=M0.Provider,R0=T0(void 0),xX=R0.Provider;function EM(){return D0(M0)}function CM(){return D0(R0)}function tc(e){var{valueAccessor:t=AM}=e,r=I0(e,PM),{dataKey:n,clockWise:o,id:i,textBreakAll:a,zIndex:s}=r,l=I0(r,SM),c=EM(),u=CM(),f=c||u;return!f||!f.length?null:Pr.createElement(He,{zIndex:s??de.label},Pr.createElement(tt,{className:"recharts-label-list"},f.map((d,p)=>{var h,m=ve(n)?t(d,p):Oe(d.payload,n),v=ve(i)?{}:{id:"".concat(i,"-").concat(p)};return Pr.createElement(br,rc({key:"label-".concat(p)},me(d),l,v,{fill:(h=r.fill)!==null&&h!==void 0?h:d.fill,parentViewBox:d.parentViewBox,value:m,textBreakAll:a,viewBox:d.viewBox,index:p,zIndex:0}))})))}tc.displayName="LabelList";function j0(e){var{label:t}=e;return t?t===!0?Pr.createElement(tc,{key:"labelList-implicit"}):Pr.isValidElement(t)||tp(t)?Pr.createElement(tc,{key:"labelList-implicit",content:t}):typeof t=="object"?Pr.createElement(tc,rc({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}import*as L0 from"react";function rp(){return rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{cx:t,cy:r,r:n,className:o}=e,i=Q("recharts-dot",o);return U(t)&&U(r)&&U(n)?L0.createElement("circle",rp({},Ye(e),Gn(e),{className:i,cx:t,cy:r,r:n})):null};var kM={radiusAxis:{},angleAxis:{}},z0=se({name:"polarAxis",initialState:kM,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:CX,removeRadiusAxis:kX,addAngleAxis:_X,removeAngleAxis:IX}=z0.actions,B0=z0.reducer;function F0(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}import{Children as NX}from"react";var oc=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0;import*as or from"react";import{cloneElement as WM,isValidElement as Q0}from"react";function np(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let r=e[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${r}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}import*as qi from"react";import{useEffect as DM,useRef as Lo,useState as MM}from"react";var W0,V0,U0,$0,K0;function q0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function G0(e){for(var t=1;t{var i=r-n,a;return a=he(W0||(W0=Ki(["M ",",",""])),e,t),a+=he(V0||(V0=Ki(["L ",",",""])),e+r,t),a+=he(U0||(U0=Ki(["L ",",",""])),e+r-i/2,t+o),a+=he($0||($0=Ki(["L ",",",""])),e+r-i/2-n,t+o),a+=he(K0||(K0=Ki(["L ",","," Z"])),e,t),a},NM={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Y0=e=>{var t=ye(e,NM),{x:r,y:n,upperWidth:o,lowerWidth:i,height:a,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:f}=t,d=Lo(null),[p,h]=MM(-1),m=Lo(o),v=Lo(i),y=Lo(a),O=Lo(r),P=Lo(n),C=lo(e,"trapezoid-");if(DM(()=>{if(d.current&&d.current.getTotalLength)try{var Z=d.current.getTotalLength();Z&&h(Z)}catch{}},[]),r!==+r||n!==+n||o!==+o||i!==+i||a!==+a||o===0&&i===0||a===0)return null;var E=Q("recharts-trapezoid",s);if(!f)return qi.createElement("g",null,qi.createElement("path",ic({},me(t),{className:E,d:H0(r,n,o,i,a)})));var _=m.current,D=v.current,k=y.current,B=O.current,L=P.current,H="0px ".concat(p===-1?1:p,"px"),z="".concat(p,"px ").concat(p,"px"),X=gs(["strokeDasharray"],c,l);return qi.createElement(so,{animationId:C,key:C,canBegin:p>0,duration:c,easing:l,isActive:f,begin:u},Z=>{var J=$e(_,o,Z),g=$e(D,i,Z),b=$e(k,a,Z),A=$e(B,r,Z),w=$e(L,n,Z);d.current&&(m.current=J,v.current=g,y.current=b,O.current=A,P.current=w);var x=Z>0?{transition:X,strokeDasharray:z}:{strokeDasharray:H};return qi.createElement("path",ic({},me(t),{className:E,d:H0(A,w,J,g,b),ref:d,style:G0(G0({},x),t.style)}))})};var RM=["option","shapeType","activeClassName","inActiveClassName"];function jM(e,t){if(e==null)return{};var r,n,o=LM(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{n||(o.current===null?r(Vx(t)):o.current!==t&&r(Ux({prev:o.current,next:t})),o.current=t)},[t,r,n]),ew(()=>()=>{o.current&&(r($x(o.current)),o.current=null)},[r]),null}import{useLayoutEffect as rw,useRef as qM}from"react";function nw(e){var{legendPayload:t}=e,r=ie(),n=be(),o=qM(null);return rw(()=>{n||(o.current===null?r(Ov(t)):o.current!==t&&r(Av({prev:o.current,next:t})),o.current=t)},[r,n,t]),rw(()=>()=>{o.current&&(r(Ev(o.current)),o.current=null)},[r]),null}import*as aw from"react";import{createContext as HM,useContext as x9}from"react";import*as sc from"react";var op,GM=()=>{var[e]=sc.useState(()=>lr("uid-"));return e},ow=(op=sc.useId)!==null&&op!==void 0?op:GM;function iw(e,t){var r=ow();return t||(e?"".concat(e,"-").concat(r):r)}var YM=HM(void 0),sw=e=>{var{id:t,type:r,children:n}=e,o=iw("recharts-".concat(r),t);return aw.createElement(YM.Provider,{value:o},n(o))};import{memo as eN,useLayoutEffect as pw,useRef as tN}from"react";var XM={cartesianItems:[],polarItems:[]},lw=se({name:"graphicalItems",initialState:XM,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ue()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Ge(e).cartesianItems.indexOf(r);o>-1&&(e.cartesianItems[o]=n)},prepare:ue()},removeCartesianGraphicalItem:{reducer(e,t){var r=Ge(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:ue()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:ue()},removePolarGraphicalItem:{reducer(e,t){var r=Ge(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:ue()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Ge(e).polarItems.indexOf(r);o>-1&&(e.polarItems[o]=n)},prepare:ue()}}}),{addCartesianGraphicalItem:cw,replaceCartesianGraphicalItem:uw,removeCartesianGraphicalItem:fw,addPolarGraphicalItem:ZM,removePolarGraphicalItem:QM,replacePolarGraphicalItem:JM}=lw.actions,dw=lw.reducer;var rN=e=>{var t=ie(),r=tN(null);return pw(()=>{r.current===null?t(cw(e)):r.current!==e&&t(uw({prev:r.current,next:e})),r.current=e},[t,e]),pw(()=>()=>{r.current&&(t(fw(r.current)),r.current=null)},[t]),null},mw=eN(rN);import*as Gi from"react";import{cloneElement as cN,isValidElement as uN}from"react";var nN=["points"];function hw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ip(e){for(var t=1;t{var v,y,O=ip(ip(ip({r:3},a),f),{},{index:m,cx:(v=h.x)!==null&&v!==void 0?v:void 0,cy:(y=h.y)!==null&&y!==void 0?y:void 0,dataKey:i,value:h.value,payload:h.payload,points:t});return Gi.createElement(fN,{key:"dot-".concat(m),option:r,dotProps:O,className:o})}),p={};return s&&l!=null&&(p.clipPath="url(#clipPath-".concat(u?"":"dots-").concat(l,")")),Gi.createElement(He,{zIndex:c},Gi.createElement(tt,lc({className:n},p),d))}import*as Hi from"react";import{cloneElement as bN,isValidElement as wN}from"react";function yw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function gw(e){for(var t=1;t({top:e.top,bottom:e.bottom,left:e.left,right:e.right}));var Aw=I([Ow,Xe,Ze],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}});var zo=()=>q(Aw),Ew=()=>q(ab);function Cw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ap(e){for(var t=1;t{var{point:t,childIndex:r,mainColor:n,activeDot:o,dataKey:i,clipPath:a}=e;if(o===!1||t.x==null||t.y==null)return null;var s={index:r,dataKey:i,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},l=ap(ap(ap({},s),Er(o)),Gn(o)),c;return wN(o)?c=bN(o,l):typeof o=="function"?c=o(l):c=Hi.createElement(nc,l),Hi.createElement(tt,{className:"recharts-active-dot",clipPath:a},c)};function kw(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:o,clipPath:i,zIndex:a=de.activeDot}=e,s=q(Sn),l=Ew();if(t==null||l==null)return null;var c=t.find(u=>l.includes(u.payload));return ve(c)?null:Hi.createElement(He,{zIndex:a},Hi.createElement(PN,{point:c,childIndex:Number(s),mainColor:r,dataKey:o,activeDot:n,clipPath:i}))}import{useEffect as SN}from"react";var _w=e=>{var{chartData:t}=e,r=ie(),n=be();return SN(()=>n?()=>{}:(r(Zd(t)),()=>{r(Zd(void 0))}),[t,r,n]),null};var Iw={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},Tw=se({name:"brush",initialState:Iw,reducers:{setBrushSettings(e,t){return t.payload==null?Iw:t.payload}}}),{setBrushSettings:w7}=Tw.actions,Dw=Tw.reducer;function ON(e){return(e%180+180)%180}var Mw=function(t){var{width:r,height:n}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=ON(o),a=i*Math.PI/180,s=Math.atan(n/r),l=a>s&&a{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Ge(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Ge(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Ge(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:A7,removeDot:E7,addArea:C7,removeArea:k7,addLine:_7,removeLine:I7}=Nw.actions,Rw=Nw.reducer;import*as Yi from"react";import{createContext as EN,useContext as M7,useState as CN}from"react";var kN=EN(void 0),jw=e=>{var{children:t}=e,[r]=CN("".concat(lr("recharts"),"-clip")),n=zo();if(n==null)return null;var{x:o,y:i,width:a,height:s}=n;return Yi.createElement(kN.Provider,{value:r},Yi.createElement("defs",null,Yi.createElement("clipPath",{id:r},Yi.createElement("rect",{x:o,y:i,height:s,width:a}))),t)};import*as xe from"react";import{useState as Yw,useRef as WN,useCallback as VN,forwardRef as Xw,useImperativeHandle as UN,useEffect as $N}from"react";function cc(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;ne*o)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-o)<=0}function Bw(e,t){return cc(e,t+1)}function Fw(e,t,r,n,o){for(var i=(n||[]).slice(),{start:a,end:s}=t,l=0,c=1,u=a,f=function(){var h=n?.[l];if(h===void 0)return{v:cc(n,c)};var m=l,v,y=()=>(v===void 0&&(v=r(h,m)),v),O=h.coordinate,P=l===0||An(e,O,y,u,s);P||(l=0,u=a,c+=1),P&&(u=O+e*(y()/2+o),l+=c)},d;c<=i.length;)if(d=f(),d)return d.v;return[]}function Ww(e,t,r,n,o){var i=(n||[]).slice(),a=i.length;if(a===0)return[];for(var{start:s,end:l}=t,c=1;c<=a;c++){for(var u=(a-1)%c,f=s,d=!0,p=function(){var C=n[m];if(C==null)return 0;var E=m,_,D=()=>(_===void 0&&(_=r(C,E)),_),k=C.coordinate,B=m===u||An(e,k,D,f,l);if(!B)return d=!1,1;B&&(f=k+e*(D()/2+o))},h,m=u;m(m===void 0&&(m=r(p,d)),m);if(d===a-1){var y=e*(h.coordinate+e*v()/2-l);i[d]=h=Je(Je({},h),{},{tickCoord:y>0?h.coordinate-y*e:h.coordinate})}else i[d]=h=Je(Je({},h),{},{tickCoord:h.coordinate});if(h.tickCoord!=null){var O=An(e,h.tickCoord,v,s,l);O&&(l=h.tickCoord-e*(v()/2+o),i[d]=Je(Je({},h),{},{isShow:!0}))}},u=a-1;u>=0;u--)c(u);return i}function MN(e,t,r,n,o,i){var a=(n||[]).slice(),s=a.length,{start:l,end:c}=t;if(i){var u=n[s-1];if(u!=null){var f=r(u,s-1),d=e*(u.coordinate+e*f/2-c);if(a[s-1]=u=Je(Je({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate}),u.tickCoord!=null){var p=An(e,u.tickCoord,()=>f,l,c);p&&(c=u.tickCoord-e*(f/2+o),a[s-1]=Je(Je({},u),{},{isShow:!0}))}}}for(var h=i?s-1:s,m=function(O){var P=a[O];if(P==null)return 1;var C=P,E,_=()=>(E===void 0&&(E=r(P,O)),E);if(O===0){var D=e*(C.coordinate-e*_()/2-l);a[O]=C=Je(Je({},C),{},{tickCoord:D<0?C.coordinate-D*e:C.coordinate})}else a[O]=C=Je(Je({},C),{},{tickCoord:C.coordinate});if(C.tickCoord!=null){var k=An(e,C.tickCoord,_,l,c);k&&(l=C.tickCoord+e*(_()/2+o),a[O]=Je(Je({},C),{},{isShow:!0}))}},v=0;v{var D=typeof c=="function"?c(E.value,_):E.value;return h==="width"?Lw(On(D,{fontSize:t,letterSpacing:r}),m,f):On(D,{fontSize:t,letterSpacing:r})[h]},y=o[0],O=o[1],P=o.length>=2&&y!=null&&O!=null?Ne(O.coordinate-y.coordinate):1,C=zw(i,P,h);return l==="equidistantPreserveStart"?Fw(P,C,v,o,a):l==="equidistantPreserveEnd"?Ww(P,C,v,o,a):(l==="preserveStart"||l==="preserveStartEnd"?p=MN(P,C,v,o,a,l==="preserveStartEnd"):p=DN(P,C,v,o,a),p.filter(E=>E.isShow))}var Uw=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:o=0,tickMargin:i=0}=e,a=0;if(t){Array.from(t).forEach(u=>{if(u){var f=u.getBoundingClientRect();f.width>a&&(a=f.width)}});var s=r?r.getBoundingClientRect().width:0,l=o+i,c=a+l+s+(r?n:0);return Math.round(c)}return 0};var NN={xAxis:{},yAxis:{}},$w=se({name:"renderedTicks",initialState:NN,reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:n,ticks:o}=t.payload;e[r][n]=o},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:n}=t.payload;delete e[r][n]}}}),{setRenderedTicks:Kw,removeRenderedTicks:qw}=$w.actions,Gw=$w.reducer;var RN=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function jN(e,t){if(e==null)return{};var r,n,o=LN(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{if(n==null||r==null)return ht;var i=t.map(a=>({value:a.value,coordinate:a.coordinate,offset:a.offset,index:a.index}));return o(Kw({ticks:i,axisId:n,axisType:r})),()=>{o(qw({axisId:n,axisType:r}))}},[o,t,n,r]),null}var ZN=Xw((e,t)=>{var{ticks:r=[],tick:n,tickLine:o,stroke:i,tickFormatter:a,unit:s,padding:l,tickTextProps:c,orientation:u,mirror:f,x:d,y:p,width:h,height:m,tickSize:v,tickMargin:y,fontSize:O,letterSpacing:P,getTicksConfig:C,events:E,axisType:_,axisId:D}=e,k=Xi(Ce(Ce({},C),{},{ticks:r}),O,P),B=Ye(C),L=Er(n),H=Ql(B.textAnchor)?B.textAnchor:GN(u,f),z=HN(u,f),X={};typeof o=="object"&&(X=o);var Z=Ce(Ce({},B),{},{fill:"none"},X),J=k.map(A=>Ce({entry:A},qN(A,d,p,h,m,u,v,f,y))),g=J.map(A=>{var{entry:w,line:x}=A;return xe.createElement(tt,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},o&&xe.createElement("line",En({},Z,x,{className:Q("recharts-cartesian-axis-tick-line",mt(o,"className"))})))}),b=J.map((A,w)=>{var x,S,{entry:T,tick:M}=A,j=Ce(Ce(Ce(Ce({verticalAnchor:z},B),{},{textAnchor:H,stroke:"none",fill:i},M),{},{index:w,payload:T,visibleTicksCount:k.length,tickFormatter:a,padding:l},c),{},{angle:(x=(S=c?.angle)!==null&&S!==void 0?S:B.angle)!==null&&x!==void 0?x:0}),W=Ce(Ce({},j),L);return xe.createElement(tt,En({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(T.value,"-").concat(T.coordinate,"-").concat(T.tickCoord)},im(E,T,w)),n&&xe.createElement(YN,{option:n,tickProps:W,value:"".concat(typeof a=="function"?a(T.value,w):T.value).concat(s||"")}))});return xe.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(_,"-ticks")},xe.createElement(XN,{ticks:k,axisId:D,axisType:_}),b.length>0&&xe.createElement(He,{zIndex:de.label},xe.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(_,"-tick-labels"),ref:t},b)),g.length>0&&xe.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(_,"-tick-lines")},g))}),QN=Xw((e,t)=>{var{axisLine:r,width:n,height:o,className:i,hide:a,ticks:s,axisType:l,axisId:c}=e,u=jN(e,RN),[f,d]=Yw(""),[p,h]=Yw(""),m=WN(null);UN(t,()=>({getCalculatedWidth:()=>{var y;return Uw({ticks:m.current,label:(y=e.labelRef)===null||y===void 0?void 0:y.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var v=VN(y=>{if(y){var O=y.getElementsByClassName("recharts-cartesian-axis-tick-value");m.current=O;var P=O[0];if(P){var C=window.getComputedStyle(P),E=C.fontSize,_=C.letterSpacing;(E!==f||_!==p)&&(d(E),h(_))}}},[f,p]);return a||n!=null&&n<=0||o!=null&&o<=0?null:xe.createElement(He,{zIndex:e.zIndex},xe.createElement(tt,{className:Q("recharts-cartesian-axis",i)},xe.createElement(KN,{x:e.x,y:e.y,width:n,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Ye(e)}),xe.createElement(ZN,{ref:v,axisType:l,events:u,fontSize:f,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:c}),xe.createElement(C0,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},xe.createElement(_0,{label:e.label,labelRef:e.labelRef}),e.children)))}),sp=xe.forwardRef((e,t)=>{var r=ye(e,Vr);return xe.createElement(QN,En({},r,{ref:t}))});sp.displayName="CartesianAxis";import*as ke from"react";var JN=["x1","y1","x2","y2","key"],eR=["offset"],tR=["xAxisId","yAxisId"],rR=["xAxisId","yAxisId"];function Zw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function et(e){for(var t=1;t{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:o,width:i,height:a,ry:s}=e;return ke.createElement("rect",{x:n,y:o,ry:s,width:i,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function Qw(e){var{option:t,lineItemProps:r}=e,n;if(ke.isValidElement(t))n=ke.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var o,{x1:i,y1:a,x2:s,y2:l,key:c}=r,u=uc(r,JN),f=(o=Ye(u))!==null&&o!==void 0?o:{},{offset:d}=f,p=uc(f,eR);n=ke.createElement("line",Cn({},p,{x1:i,y1:a,x2:s,y2:l,fill:"none",key:c}))}return n}function lR(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:o}=e;if(!n||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=uc(e,tR),l=o.map((c,u)=>{var f=et(et({},s),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(u),index:u});return ke.createElement(Qw,{key:"line-".concat(u),option:n,lineItemProps:f})});return ke.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function cR(e){var{y:t,height:r,vertical:n=!0,verticalPoints:o}=e;if(!n||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=uc(e,rR),l=o.map((c,u)=>{var f=et(et({},s),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(u),index:u});return ke.createElement(Qw,{option:n,lineItemProps:f,key:"line-".concat(u)})});return ke.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function uR(e){var{horizontalFill:t,fillOpacity:r,x:n,y:o,width:i,height:a,horizontalPoints:s,horizontal:l=!0}=e;if(!l||!t||!t.length||s==null)return null;var c=s.map(f=>Math.round(f+o-o)).sort((f,d)=>f-d);o!==c[0]&&c.unshift(0);var u=c.map((f,d)=>{var p=c[d+1],h=p==null,m=h?o+a-f:p-f;if(m<=0)return null;var v=d%t.length;return ke.createElement("rect",{key:"react-".concat(d),y:f,x:n,height:m,width:i,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return ke.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function fR(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:o,y:i,width:a,height:s,verticalPoints:l}=e;if(!t||!r||!r.length)return null;var c=l.map(f=>Math.round(f+o-o)).sort((f,d)=>f-d);o!==c[0]&&c.unshift(0);var u=c.map((f,d)=>{var p=c[d+1],h=p==null,m=h?o+a-f:p-f;if(m<=0)return null;var v=d%r.length;return ke.createElement("rect",{key:"react-".concat(d),x:f,y:i,width:m,height:s,stroke:"none",fill:r[v],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return ke.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var dR=(e,t)=>{var{xAxis:r,width:n,height:o,offset:i}=e;return Fu(Xi(et(et(et({},Vr),r),{},{ticks:Wu(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,t)},pR=(e,t)=>{var{yAxis:r,width:n,height:o,offset:i}=e;return Fu(Xi(et(et(et({},Vr),r),{},{ticks:Wu(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,t)},mR={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:de.grid};function fc(e){var t=ds(),r=ps(),n=fs(),o=et(et({},ye(e,mR)),{},{x:U(e.x)?e.x:n.left,y:U(e.y)?e.y:n.top,width:U(e.width)?e.width:n.width,height:U(e.height)?e.height:n.height}),{xAxisId:i,yAxisId:a,x:s,y:l,width:c,height:u,syncWithTicks:f,horizontalValues:d,verticalValues:p}=o,h=be(),m=q(B=>Cd(B,"xAxis",i,h)),v=q(B=>Cd(B,"yAxis",a,h));if(!ct(c)||!ct(u)||!U(s)||!U(l))return null;var y=o.verticalCoordinatesGenerator||dR,O=o.horizontalCoordinatesGenerator||pR,{horizontalPoints:P,verticalPoints:C}=o;if((!P||!P.length)&&typeof O=="function"){var E=d&&d.length,_=O({yAxis:v?et(et({},v),{},{ticks:E?d:v.ticks}):void 0,width:t??c,height:r??u,offset:n},E?!0:f);no(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof _,"]")),Array.isArray(_)&&(P=_)}if((!C||!C.length)&&typeof y=="function"){var D=p&&p.length,k=y({xAxis:m?et(et({},m),{},{ticks:D?p:m.ticks}):void 0,width:t??c,height:r??u,offset:n},D?!0:f);no(Array.isArray(k),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof k,"]")),Array.isArray(k)&&(C=k)}return ke.createElement(He,{zIndex:o.zIndex},ke.createElement("g",{className:"recharts-cartesian-grid"},ke.createElement(sR,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),ke.createElement(uR,Cn({},o,{horizontalPoints:P})),ke.createElement(fR,Cn({},o,{verticalPoints:C})),ke.createElement(lR,Cn({},o,{offset:n,horizontalPoints:P,xAxis:m,yAxis:v})),ke.createElement(cR,Cn({},o,{offset:n,verticalPoints:C,xAxis:m,yAxis:v}))))}fc.displayName="CartesianGrid";import*as oe from"react";import{Component as MR,useCallback as dP,useMemo as NR,useRef as Zi,useState as RR}from"react";import*as tP from"react";import{createContext as xR,useContext as zZ,useEffect as BZ,useRef as FZ}from"react";var hR={},Jw=se({name:"errorBars",initialState:hR,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:o}=t.payload;e[r]&&(e[r]=e[r].map(i=>i.dataKey===n.dataKey&&i.direction===n.direction?o:i))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(o=>o.dataKey!==n.dataKey||o.direction!==n.direction))}}}),{addErrorBar:MZ,replaceErrorBar:NZ,removeErrorBar:RZ}=Jw.actions,eP=Jw.reducer;var vR=["children"];function yR(e,t){if(e==null)return{};var r,n,o=gR(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n({x:0,y:0,value:0}),errorBarOffset:0},wR=xR(bR);function rP(e){var{children:t}=e,r=yR(e,vR);return tP.createElement(wR.Provider,{value:r},t)}import*as lp from"react";function cp(e,t){var r,n,o=q(c=>tr(c,e)),i=q(c=>rr(c,t)),a=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:Ie.allowDataOverflow,s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:Xf.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function nP(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,o=zo(),{needClipX:i,needClipY:a,needClip:s}=cp(t,r);if(!s||!o)return null;var{x:l,y:c,width:u,height:f}=o;return lp.createElement("clipPath",{id:"clipPath-".concat(n)},lp.createElement("rect",{x:i?l:l-u/2,y:a?c:c-f/2,width:i?u:u*2,height:a?f:f*2}))}var oP=(e,t,r,n)=>_d(e,"xAxis",t,n),iP=(e,t,r,n)=>kd(e,"xAxis",t,n),aP=(e,t,r,n)=>_d(e,"yAxis",r,n),sP=(e,t,r,n)=>kd(e,"yAxis",r,n),PR=I([fe,oP,aP,iP,sP],(e,t,r,n,o)=>gt(e,"xAxis")?Jn(t,n,!1):Jn(r,o,!1)),SR=(e,t,r,n,o)=>o;function OR(e){return e.type==="line"}var AR=I([ed,SR],(e,t)=>e.filter(OR).find(r=>r.id===t)),lP=I([fe,oP,aP,iP,sP,AR,PR,li],(e,t,r,n,o,i,a,s)=>{var{chartData:l,dataStartIndex:c,dataEndIndex:u}=s;if(!(i==null||t==null||r==null||n==null||o==null||n.length===0||o.length===0||a==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:f,data:d}=i,p;if(d!=null&&d.length>0?p=d:p=l?.slice(c,u+1),p!=null)return cP({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:o,dataKey:f,bandSize:a,displayedData:p})}});function uP(e){var t=Er(e),r=3,n=2;if(t!=null){var{r:o,strokeWidth:i}=t,a=Number(o),s=Number(i);return(Number.isNaN(a)||a<0)&&(a=r),(Number.isNaN(s)||s<0)&&(s=n),{r:a,strokeWidth:s}}return{r,strokeWidth:n}}var ER=["id"],CR=["type","layout","connectNulls","needClip","shape"],kR=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{dataKey:t,name:r,stroke:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:qu(r,t),payload:e}]},LR=oe.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:o,fill:i,name:a,hide:s,unit:l,tooltipType:c,id:u}=e,f={dataDefinedOnItem:r,getPosition:ht,settings:{stroke:n,strokeWidth:o,fill:i,dataKey:t,nameKey:void 0,name:qu(a,t),hide:s,type:c,color:n,unit:l,graphicalItemId:u}};return oe.createElement(tw,{tooltipEntrySettings:f})}),mP=(e,t)=>"".concat(t,"px ").concat(e,"px");function zR(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],o=0;o{var n=r.reduce((d,p)=>d+p,0);if(!n)return mP(t,e);for(var o=Math.floor(e/n),i=e%n,a=[],s=0,l=0;si){a=[...r.slice(0,s),i-l];break}}var f=a.length%2===0?[0,t]:[t];return[...zR(r,o),...a,...f].map(d=>"".concat(d,"px")).join(", ")};function FR(e){var{clipPathId:t,points:r,props:n}=e,{dot:o,dataKey:i,needClip:a}=n,{id:s}=n,l=fp(n,ER),c=Ye(l);return oe.createElement(vw,{points:r,dot:o,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:c,needClip:a,clipPathId:t})}function WR(e){var{showLabels:t,children:r,points:n}=e,o=NR(()=>n?.map(i=>{var a,s,l={x:(a=i.x)!==null&&a!==void 0?a:0,y:(s=i.y)!==null&&s!==void 0?s:0,width:0,lowerWidth:0,upperWidth:0,height:0};return ir(ir({},l),{},{value:i.value,payload:i.payload,viewBox:l,parentViewBox:void 0,fill:void 0})}),[n]);return oe.createElement(N0,{value:t?o:void 0},r)}function pP(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:o,props:i}=e,{type:a,layout:s,connectNulls:l,needClip:c,shape:u}=i,f=fp(i,CR),d=ir(ir({},me(f)),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:n,type:a,layout:s,connectNulls:l,strokeDasharray:o??i.strokeDasharray});return oe.createElement(oe.Fragment,null,n?.length>1&&oe.createElement(J0,Qi({shapeType:"curve",option:u},d,{pathRef:r})),oe.createElement(FR,{points:n,clipPathId:t,props:i}))}function VR(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function UR(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:o,longestAnimatedLengthRef:i}=e,{points:a,strokeDasharray:s,isAnimationActive:l,animationBegin:c,animationDuration:u,animationEasing:f,animateNewValues:d,width:p,height:h,onAnimationEnd:m,onAnimationStart:v}=r,y=o.current,O=lo(a,"recharts-line-"),P=Zi(O),[C,E]=RR(!1),_=!C,D=dP(()=>{typeof m=="function"&&m(),E(!1)},[m]),k=dP(()=>{typeof v=="function"&&v(),E(!0)},[v]),B=VR(n.current),L=Zi(0);P.current!==O&&(L.current=i.current,P.current=O);var H=L.current;return oe.createElement(WR,{points:a,showLabels:_},r.children,oe.createElement(so,{animationId:O,begin:c,duration:u,isActive:l,easing:f,onAnimationEnd:D,onAnimationStart:k,key:O},z=>{var X=$e(H,B+H,z),Z=Math.min(X,B),J;if(l)if(s){var g="".concat(s).split(/[,\s]+/gim).map(w=>parseFloat(w));J=BR(Z,B,g)}else J=mP(B,Z);else J=s==null?void 0:String(s);if(z>0&&B>0&&(o.current=a,i.current=Math.max(i.current,Z)),y){var b=y.length/a.length,A=z===1?a:a.map((w,x)=>{var S=Math.floor(x*b);if(y[S]){var T=y[S];return ir(ir({},w),{},{x:$e(T.x,w.x,z),y:$e(T.y,w.y,z)})}return d?ir(ir({},w),{},{x:$e(p*2,w.x,z),y:$e(h/2,w.y,z)}):ir(ir({},w),{},{x:w.x,y:w.y})});return o.current=A,oe.createElement(pP,{props:r,points:A,clipPathId:t,pathRef:n,strokeDasharray:J})}return oe.createElement(pP,{props:r,points:a,clipPathId:t,pathRef:n,strokeDasharray:J})}),oe.createElement(j0,{label:r.label}))}function $R(e){var{clipPathId:t,props:r}=e,n=Zi(null),o=Zi(0),i=Zi(null);return oe.createElement(UR,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:o,pathRef:i})}var KR=(e,t)=>{var r,n;return{x:(r=e.x)!==null&&r!==void 0?r:void 0,y:(n=e.y)!==null&&n!==void 0?n:void 0,value:e.value,errorVal:Oe(e.payload,t)}},up=class extends MR{render(){var{hide:t,dot:r,points:n,className:o,xAxisId:i,yAxisId:a,top:s,left:l,width:c,height:u,id:f,needClip:d,zIndex:p}=this.props;if(t)return null;var h=Q("recharts-line",o),m=f,{r:v,strokeWidth:y}=uP(r),O=oc(r),P=v*2+y,C=d?"url(#clipPath-".concat(O?"":"dots-").concat(m,")"):void 0;return oe.createElement(He,{zIndex:p},oe.createElement(tt,{className:h},d&&oe.createElement("defs",null,oe.createElement(nP,{clipPathId:m,xAxisId:i,yAxisId:a}),!O&&oe.createElement("clipPath",{id:"clipPath-dots-".concat(m)},oe.createElement("rect",{x:l-P/2,y:s-P/2,width:c+P,height:u+P}))),oe.createElement(rP,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:KR,errorBarOffset:0},oe.createElement($R,{props:this.props,clipPathId:m}))),oe.createElement(kw,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:C}))}},hP={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:de.line,type:"linear"};function qR(e){var t=ye(e,hP),{activeDot:r,animateNewValues:n,animationBegin:o,animationDuration:i,animationEasing:a,connectNulls:s,dot:l,hide:c,isAnimationActive:u,label:f,legendType:d,xAxisId:p,yAxisId:h,id:m}=t,v=fp(t,kR),{needClip:y}=cp(p,h),O=zo(),P=Ht(),C=be(),E=q(L=>lP(L,p,h,C,m));if(P!=="horizontal"&&P!=="vertical"||E==null||O==null)return null;var{height:_,width:D,x:k,y:B}=O;return oe.createElement(up,Qi({},v,{id:m,connectNulls:s,dot:l,activeDot:r,animateNewValues:n,animationBegin:o,animationDuration:i,animationEasing:a,isAnimationActive:u,hide:c,label:f,legendType:d,xAxisId:p,yAxisId:h,points:E,layout:P,height:_,width:D,left:k,top:B,needClip:y}))}function cP(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:o,yAxisTicks:i,dataKey:a,bandSize:s,displayedData:l}=e;return l.map((c,u)=>{var f=Oe(c,a);if(t==="horizontal"){var d=Vu({axis:r,ticks:o,bandSize:s,entry:c,index:u}),p=ve(f)?null:n.scale.map(f);return{x:d,y:p??null,value:f,payload:c}}var h=ve(f)?null:r.scale.map(f),m=Vu({axis:n,ticks:i,bandSize:s,entry:c,index:u});return h==null||m==null?null:{x:h,y:m,value:f,payload:c}}).filter(Boolean)}function GR(e){var t=ye(e,hP),r=be();return oe.createElement(sw,{id:t.id,type:"line"},n=>oe.createElement(oe.Fragment,null,oe.createElement(nw,{legendPayload:jR(t)}),oe.createElement(LR,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:n}),oe.createElement(mw,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),oe.createElement(qR,Qi({},t,{id:n}))))}var dc=oe.memo(GR,_r);dc.displayName="Line";import*as Sr from"react";import{useLayoutEffect as wP,useMemo as oj,useRef as ij}from"react";var HR=["domain","range"],YR=["domain","range"];function vP(e,t){if(e==null)return{};var r,n,o=XR(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{if(a!=null)return bP(bP({},i),{},{type:a})},[i,a]);return wP(()=>{s!=null&&(r.current===null?t(bw(s)):r.current!==s&&t(ww({prev:r.current,next:s})),r.current=s)},[s,t]),wP(()=>()=>{r.current&&(t(Pw(r.current)),r.current=null)},[t]),null}var sj=e=>{var{xAxisId:t,className:r}=e,n=q(uv),o=be(),i="xAxis",a=q(y=>Lx(y,i,t,o)),s=q(y=>Rx(y,t)),l=q(y=>jx(y,t)),c=q(y=>Yf(y,t));if(s==null||l==null||c==null)return null;var{dangerouslySetInnerHTML:u,ticks:f,scale:d}=e,p=pp(e,QR),{id:h,scale:m}=c,v=pp(c,JR);return Sr.createElement(sp,dp({},p,v,{x:l.x,y:l.y,width:s.width,height:s.height,className:Q("recharts-".concat(i," ").concat(i),r),viewBox:n,ticks:a,axisType:i,axisId:t}))},lj={allowDataOverflow:Ie.allowDataOverflow,allowDecimals:Ie.allowDecimals,allowDuplicatedCategory:Ie.allowDuplicatedCategory,angle:Ie.angle,axisLine:Vr.axisLine,height:Ie.height,hide:!1,includeHidden:Ie.includeHidden,interval:Ie.interval,label:!1,minTickGap:Ie.minTickGap,mirror:Ie.mirror,orientation:Ie.orientation,padding:Ie.padding,reversed:Ie.reversed,scale:Ie.scale,tick:Ie.tick,tickCount:Ie.tickCount,tickLine:Vr.tickLine,tickSize:Vr.tickSize,type:Ie.type,niceTicks:Ie.niceTicks,xAxisId:0},cj=e=>{var t=ye(e,lj);return Sr.createElement(Sr.Fragment,null,Sr.createElement(aj,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),Sr.createElement(sj,t))},pc=Sr.memo(cj,gP);pc.displayName="XAxis";import*as YP from"react";import{forwardRef as r2}from"react";import*as Mn from"react";import{forwardRef as Jj}from"react";import*as RP from"react";import{useRef as vj}from"react";var uj=(e,t)=>t,Ji=I([uj,fe,Ws,_e,Rd,ft,vb,ge],Pb);function fj(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function ea(e){var t=e.currentTarget.getBoundingClientRect(),r,n;if(fj(e)){var o=e.currentTarget.getBBox();r=o.width>0?t.width/o.width:1,n=o.height>0?t.height/o.height:1}else{var i=e.currentTarget;r=i.offsetWidth>0?t.width/i.offsetWidth:1,n=i.offsetHeight>0?t.height/i.offsetHeight:1}var a=(s,l)=>({relativeX:Math.round((s-t.left)/r),relativeY:Math.round((l-t.top)/n)});return"touches"in e?Array.from(e.touches).map(s=>a(s.clientX,s.clientY)):a(e.clientX,e.clientY)}var hp=Me("mouseClick"),vp=dr();vp.startListening({actionCreator:hp,effect:(e,t)=>{var r=e.payload,n=Ji(t.getState(),ea(r));n?.activeIndex!=null&&t.dispatch(Gx({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var mc=Me("mouseMove"),yp=dr(),Bo=null,kn=null,mp=null;yp.startListening({actionCreator:mc,effect:(e,t)=>{var r=e.payload,n=t.getState(),{throttleDelay:o,throttledEvents:i}=n.eventSettings,a=i==="all"||i?.includes("mousemove");Bo!==null&&(cancelAnimationFrame(Bo),Bo=null),kn!==null&&(typeof o!="number"||!a)&&(clearTimeout(kn),kn=null),mp=ea(r);var s=()=>{var l=t.getState(),c=zi(l,l.tooltip.settings.shared);if(!mp){Bo=null,kn=null;return}if(c==="axis"){var u=Ji(l,mp);u?.activeIndex!=null?t.dispatch(jl({activeIndex:u.activeIndex,activeDataKey:void 0,activeCoordinate:u.activeCoordinate})):t.dispatch(Rl())}Bo=null,kn=null};if(!a){s();return}o==="raf"?Bo=requestAnimationFrame(s):typeof o=="number"&&kn===null&&(kn=setTimeout(s,o))}});function PP(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<>":t}var SP={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},OP=se({name:"rootProps",initialState:SP,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:SP.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),AP=OP.reducer,{updateOptions:EP}=OP.actions;var dj=null,pj={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},CP=se({name:"polarOptions",initialState:dj,reducers:pj}),{updatePolarOptions:dJ}=CP.actions,kP=CP.reducer;var gp=Me("keyDown"),xp=Me("focus"),bp=Me("blur"),ta=dr(),Fo=null,_n=null,hc=null;ta.startListening({actionCreator:gp,effect:(e,t)=>{hc=e.payload,Fo!==null&&(cancelAnimationFrame(Fo),Fo=null);var r=t.getState(),{throttleDelay:n,throttledEvents:o}=r.eventSettings,i=o==="all"||o.includes("keydown");_n!==null&&(typeof n!="number"||!i)&&(clearTimeout(_n),_n=null);var a=()=>{try{var s=t.getState(),l=s.rootProps.accessibilityLayer!==!1;if(!l)return;var{keyboardInteraction:c}=s.tooltip,u=hc;if(u!=="ArrowRight"&&u!=="ArrowLeft"&&u!=="Enter")return;var f=Do(c,Fr(s),Br(s),Pn(s)),d=f==null?-1:Number(f);if(!Number.isFinite(d)||d<0)return;var p=ft(s);if(u==="Enter"){var h=Wi(s,"axis","hover",String(c.index));t.dispatch(Bi({active:!c.active,activeIndex:c.index,activeCoordinate:h}));return}var m=zx(s),v=m==="left-to-right"?1:-1,y=u==="ArrowRight"?1:-1,O=d+y*v;if(p==null||O>=p.length||O<0)return;var P=Wi(s,"axis","hover",String(O));t.dispatch(Bi({active:!0,activeIndex:O.toString(),activeCoordinate:P}))}finally{Fo=null,_n=null}};if(!i){a();return}n==="raf"?Fo=requestAnimationFrame(a):typeof n=="number"&&_n===null&&(a(),hc=null,_n=setTimeout(()=>{hc?a():(_n=null,Fo=null)},n))}});ta.startListening({actionCreator:xp,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=r.tooltip;if(!o.active&&o.index==null){var i="0",a=Wi(r,"axis","hover",String(i));t.dispatch(Bi({active:!0,activeIndex:i,activeCoordinate:a}))}}}});ta.startListening({actionCreator:bp,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=r.tooltip;o.active&&t.dispatch(Bi({active:!1,activeIndex:o.index,activeCoordinate:o.coordinate}))}}});function vc(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(r,n)=>{if(n==="currentTarget")return t;var o=Reflect.get(r,n);return typeof o=="function"?o.bind(r):o}})}var Ot=Me("externalEvent"),Pp=dr(),yc=new Map,ra=new Map,wp=new Map;Pp.startListening({actionCreator:Ot,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){var o=n.type,i=vc(n);wp.set(o,{handler:r,reactEvent:i});var a=yc.get(o);a!==void 0&&(cancelAnimationFrame(a),yc.delete(o));var s=t.getState(),{throttleDelay:l,throttledEvents:c}=s.eventSettings,u=c,f=u==="all"||u?.includes(o),d=ra.get(o);d!==void 0&&(typeof l!="number"||!f)&&(clearTimeout(d),ra.delete(o));var p=()=>{var v=wp.get(o);try{if(!v)return;var{handler:y,reactEvent:O}=v,P=t.getState(),C={activeCoordinate:Bd(P),activeDataKey:nb(P),activeIndex:Sn(P),activeLabel:$l(P),activeTooltipIndex:Sn(P),isTooltipActive:Fd(P)};y&&y(C,O)}finally{yc.delete(o),ra.delete(o),wp.delete(o)}};if(!f){p();return}if(l==="raf"){var h=requestAnimationFrame(p);yc.set(o,h)}else if(typeof l=="number"){if(!ra.has(o)){p();var m=setTimeout(p,l);ra.set(o,m)}}else p()}}});var mj=I([xr],e=>e.tooltipItemPayloads),_P=I([mj,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var n=e.find(i=>i.settings.graphicalItemId===r);if(n!=null){var{getPosition:o}=n;if(o!=null)return o(t)}}});var Sp=Me("touchMove"),Op=dr(),In=null,Ur=null,IP=null,na=null;Op.startListening({actionCreator:Sp,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){na=vc(r);var n=t.getState(),{throttleDelay:o,throttledEvents:i}=n.eventSettings,a=i==="all"||i.includes("touchmove");In!==null&&(cancelAnimationFrame(In),In=null),Ur!==null&&(typeof o!="number"||!a)&&(clearTimeout(Ur),Ur=null),IP=Array.from(r.touches).map(l=>ea({clientX:l.clientX,clientY:l.clientY,currentTarget:r.currentTarget}));var s=()=>{if(na!=null){var l=t.getState(),c=zi(l,l.tooltip.settings.shared);if(c==="axis"){var u,f=(u=IP)===null||u===void 0?void 0:u[0];if(f==null){In=null,Ur=null;return}var d=Ji(l,f);d?.activeIndex!=null&&t.dispatch(jl({activeIndex:d.activeIndex,activeDataKey:void 0,activeCoordinate:d.activeCoordinate}))}else if(c==="item"){var p,h=na.touches[0];if(document.elementFromPoint==null||h==null)return;var m=document.elementFromPoint(h.clientX,h.clientY);if(!m||!m.getAttribute)return;var v=m.getAttribute(av),y=(p=m.getAttribute(sv))!==null&&p!==void 0?p:void 0,O=wn(l).find(E=>E.id===y);if(v==null||O==null||y==null)return;var{dataKey:P}=O,C=_P(l,v,y);t.dispatch(qx({activeDataKey:P,activeIndex:v,activeCoordinate:C,activeGraphicalItemId:y}))}In=null,Ur=null}};if(!a){s();return}o==="raf"?In=requestAnimationFrame(s):typeof o=="number"&&Ur===null&&(s(),na=null,Ur=setTimeout(()=>{na?s():(Ur=null,In=null)},o))}}});var Ap={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},TP=se({name:"eventSettings",initialState:Ap,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:DP}=TP.actions,MP=TP.reducer;var hj=Ba({brush:Dw,cartesianAxis:Sw,chartData:Gb,errorBars:eP,eventSettings:MP,graphicalItems:dw,layout:Qh,legend:Cv,options:Vb,polarAxis:B0,polarOptions:kP,referenceElements:Rw,renderedTicks:Gw,rootProps:AP,tooltip:Hx,zIndex:Db}),NP=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return Nh({reducer:hj,preloadedState:t,middleware:n=>{var o;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([vp.middleware,yp.middleware,ta.middleware,Pp.middleware,Op.middleware])},enhancers:n=>{var o=n;return typeof n=="function"&&(o=n()),o.concat(ju({type:"raf"}))},devTools:Tt.devToolsEnabled&&{serialize:{replacer:PP},name:"recharts-".concat(r)}})};function jP(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,o=be(),i=vj(null);if(o)return r;i.current==null&&(i.current=NP(t,n));var a=qo;return RP.createElement(Tv,{context:a,store:i.current},r)}import{memo as yj,useEffect as gj}from"react";function xj(e){var{layout:t,margin:r}=e,n=ie(),o=be();return gj(()=>{o||(n(Yh(t)),n(Bu(r)))},[n,o,t,r]),null}var LP=yj(xj,_r);import{useEffect as bj}from"react";function zP(e){var t=ie();return bj(()=>{t(EP(e))},[t,e]),null}import{useEffect as wj,memo as Pj}from"react";var Sj=e=>{var t=ie();return wj(()=>{t(DP(e))},[t,e]),null},BP=Pj(Sj,_r);import*as Or from"react";import{forwardRef as Hj}from"react";import*as Dn from"react";import{forwardRef as WP}from"react";import*as Tn from"react";import{useLayoutEffect as Oj,useRef as Aj}from"react";function FP(e){var{zIndex:t,isPanorama:r}=e,n=Aj(null),o=ie();return Oj(()=>(n.current&&o(Ib({zIndex:t,element:n.current,isPanorama:r})),()=>{o(Tb({zIndex:t,isPanorama:r}))}),[o,t,r]),Tn.createElement("g",{tabIndex:-1,ref:n,className:"recharts-zIndex-layer_".concat(t)})}function Ep(e){var{children:t,isPanorama:r}=e,n=q(Ob);if(!n||n.length===0)return t;var o=n.filter(a=>a<0),i=n.filter(a=>a>0);return Tn.createElement(Tn.Fragment,null,o.map(a=>Tn.createElement(FP,{key:a,zIndex:a,isPanorama:r})),t,i.map(a=>Tn.createElement(FP,{key:a,zIndex:a,isPanorama:r})))}var Ej=["children"];function Cj(e,t){if(e==null)return{};var r,n,o=kj(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var r=ds(),n=ps(),o=hs();if(!ct(r)||!ct(n))return null;var{children:i,otherAttributes:a,title:s,desc:l}=e,c,u;return a!=null&&(typeof a.tabIndex=="number"?c=a.tabIndex:c=o?0:void 0,typeof a.role=="string"?u=a.role:u=o?"application":void 0),Dn.createElement(Ic,gc({},a,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:_j,ref:t}),i)}),Tj=e=>{var{children:t}=e,r=q(en);if(!r)return null;var{width:n,height:o,y:i,x:a}=r;return Dn.createElement(Ic,{width:n,height:o,x:a,y:i},t)},Cp=WP((e,t)=>{var{children:r}=e,n=Cj(e,Ej),o=be();return o?Dn.createElement(Tj,null,Dn.createElement(Ep,{isPanorama:!0},r)):Dn.createElement(Ij,gc({ref:t},n),Dn.createElement(Ep,{isPanorama:!1},r))});import*as Pe from"react";import{forwardRef as oa,useCallback as ze,useEffect as zj,useRef as $P,useState as xc}from"react";import{useEffect as Dj,useState as Mj}from"react";function VP(){var e=ie(),[t,r]=Mj(null),n=q(iv);return Dj(()=>{if(t!=null){var o=t.getBoundingClientRect(),i=o.width/t.offsetWidth;te(i)&&i!==n&&e(Zh(i))}},[t,e,n]),r}function UP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Nj(e){for(var t=1;t(Yb(),null);function bc(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Fj=oa((e,t)=>{var r,n,o=$P(null),[i,a]=xc({containerWidth:bc((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:bc((n=e.style)===null||n===void 0?void 0:n.height)}),s=ze((c,u)=>{a(f=>{var d=Math.round(c),p=Math.round(u);return f.containerWidth===d&&f.containerHeight===p?f:{containerWidth:d,containerHeight:p}})},[]),l=ze(c=>{if(typeof t=="function"&&t(c),c!=null&&typeof ResizeObserver<"u"){var{width:u,height:f}=c.getBoundingClientRect();s(u,f);var d=h=>{var m=h[0];if(m!=null){var{width:v,height:y}=m.contentRect;s(v,y)}},p=new ResizeObserver(d);p.observe(c),o.current=p}},[t,s]);return zj(()=>()=>{var c=o.current;c?.disconnect()},[s]),Pe.createElement(Pe.Fragment,null,Pe.createElement(nn,{width:i.containerWidth,height:i.containerHeight}),Pe.createElement("div",$r({ref:l},e)))}),Wj=oa((e,t)=>{var{width:r,height:n}=e,[o,i]=xc({containerWidth:bc(r),containerHeight:bc(n)}),a=ze((l,c)=>{i(u=>{var f=Math.round(l),d=Math.round(c);return u.containerWidth===f&&u.containerHeight===d?u:{containerWidth:f,containerHeight:d}})},[]),s=ze(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:c,height:u}=l.getBoundingClientRect();a(c,u)}},[t,a]);return Pe.createElement(Pe.Fragment,null,Pe.createElement(nn,{width:o.containerWidth,height:o.containerHeight}),Pe.createElement("div",$r({ref:s},e)))}),Vj=oa((e,t)=>{var{width:r,height:n}=e;return Pe.createElement(Pe.Fragment,null,Pe.createElement(nn,{width:r,height:n}),Pe.createElement("div",$r({ref:t},e)))}),Uj=oa((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?Pe.createElement(Wj,$r({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?Pe.createElement(Vj,$r({},e,{width:r,height:n,ref:t})):Pe.createElement(Pe.Fragment,null,Pe.createElement(nn,{width:r,height:n}),Pe.createElement("div",$r({ref:t},e)))});function $j(e){return e?Fj:Uj}var KP=oa((e,t)=>{var{children:r,className:n,height:o,onClick:i,onContextMenu:a,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:f,onMouseUp:d,onTouchEnd:p,onTouchMove:h,onTouchStart:m,style:v,width:y,responsive:O,dispatchTouchEvents:P=!0}=e,C=$P(null),E=ie(),[_,D]=xc(null),[k,B]=xc(null),L=VP(),H=ei(),z=H?.width>0?H.width:y,X=H?.height>0?H.height:o,Z=ze(V=>{L(V),typeof t=="function"&&t(V),D(V),B(V),V!=null&&(C.current=V)},[L,t,D,B]),J=ze(V=>{E(hp(V)),E(Ot({handler:i,reactEvent:V}))},[E,i]),g=ze(V=>{E(mc(V)),E(Ot({handler:c,reactEvent:V}))},[E,c]),b=ze(V=>{E(Rl()),E(Ot({handler:u,reactEvent:V}))},[E,u]),A=ze(V=>{E(mc(V)),E(Ot({handler:f,reactEvent:V}))},[E,f]),w=ze(()=>{E(xp())},[E]),x=ze(()=>{E(bp())},[E]),S=ze(V=>{E(gp(V.key))},[E]),T=ze(V=>{E(Ot({handler:a,reactEvent:V}))},[E,a]),M=ze(V=>{E(Ot({handler:s,reactEvent:V}))},[E,s]),j=ze(V=>{E(Ot({handler:l,reactEvent:V}))},[E,l]),W=ze(V=>{E(Ot({handler:d,reactEvent:V}))},[E,d]),F=ze(V=>{E(Ot({handler:m,reactEvent:V}))},[E,m]),$=ze(V=>{P&&E(Sp(V)),E(Ot({handler:h,reactEvent:V}))},[E,P,h]),ne=ze(V=>{E(Ot({handler:p,reactEvent:V}))},[E,p]),N=$j(O);return Pe.createElement(Hd.Provider,{value:_},Pe.createElement(zp.Provider,{value:k},Pe.createElement(N,{width:z??v?.width,height:X??v?.height,className:Q("recharts-wrapper",n),style:Nj({position:"relative",cursor:"default",width:z,height:X},v),onClick:J,onContextMenu:T,onDoubleClick:M,onFocus:w,onBlur:x,onKeyDown:S,onMouseDown:j,onMouseEnter:g,onMouseLeave:b,onMouseMove:A,onMouseUp:W,onTouchEnd:ne,onTouchMove:$,onTouchStart:F,ref:Z},Pe.createElement(Bj,null),r)))});var Kj=["width","height","responsive","children","className","style","compact","title","desc"];function qj(e,t){if(e==null)return{};var r,n,o=Gj(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var{width:r,height:n,responsive:o,children:i,className:a,style:s,compact:l,title:c,desc:u}=e,f=qj(e,Kj),d=Ye(f);return l?Or.createElement(Or.Fragment,null,Or.createElement(nn,{width:r,height:n}),Or.createElement(Cp,{otherAttributes:d,title:c,desc:u},i)):Or.createElement(KP,{className:a,style:s,width:r,height:n,responsive:o??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},Or.createElement(Cp,{otherAttributes:d,title:c,desc:u,ref:t},Or.createElement(jw,null,i)))});function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var t=1;tYP.createElement(HP,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:n2,tooltipPayloadSearcher:Fb,categoricalChartProps:e,ref:t}));var i2=(e,t)=>{let r=new Array(e.length+t.length);for(let n=0;n({classGroupId:e,validator:t}),rS=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Sc="-",XP=[],s2="arbitrary..",l2=e=>{let t=u2(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return c2(a);let s=a.split(Sc),l=s[0]===""&&s.length>1?1:0;return nS(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){let l=n[a],c=r[a];return l?c?i2(c,l):l:c||XP}return r[a]||XP}}},nS=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;let o=e[t],i=r.nextPart.get(o);if(i){let c=nS(e,t+1,i);if(c)return c}let a=r.validators;if(a===null)return;let s=t===0?e.join(Sc):e.slice(t).join(Sc),l=a.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?s2+n:void 0})(),u2=e=>{let{theme:t,classGroups:r}=e;return f2(r,t)},f2=(e,t)=>{let r=rS();for(let n in e){let o=e[n];Dp(o,r,n,t)}return r},Dp=(e,t,r,n)=>{let o=e.length;for(let i=0;i{if(typeof e=="string"){p2(e,t,r);return}if(typeof e=="function"){m2(e,t,r,n);return}h2(e,t,r,n)},p2=(e,t,r)=>{let n=e===""?t:oS(t,e);n.classGroupId=r},m2=(e,t,r,n)=>{if(v2(e)){Dp(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(a2(r,e))},h2=(e,t,r,n)=>{let o=Object.entries(e),i=o.length;for(let a=0;a{let r=e,n=t.split(Sc),o=n.length;for(let i=0;i"isThemeGetter"in e&&e.isThemeGetter===!0,y2=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),o=(i,a)=>{r[i]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let a=r[i];if(a!==void 0)return a;if((a=n[i])!==void 0)return o(i,a),a},set(i,a){i in r?r[i]=a:o(i,a)}}},Tp="!",ZP=":",g2=[],QP=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),x2=e=>{let{prefix:t,experimentalParseClassName:r}=e,n=o=>{let i=[],a=0,s=0,l=0,c,u=o.length;for(let m=0;ml?c-l:void 0;return QP(i,p,d,h)};if(t){let o=t+ZP,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):QP(g2,!1,a,void 0,!0)}if(r){let o=n;n=i=>r({className:i,parseClassName:o})}return n},b2=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{let n=[],o=[];for(let i=0;i0&&(o.sort(),n.push(...o),o=[]),n.push(a)):o.push(a)}return o.length>0&&(o.sort(),n.push(...o)),n}},w2=e=>({cache:y2(e.cacheSize),parseClassName:x2(e),sortModifiers:b2(e),postfixLookupClassGroupIds:P2(e),...l2(e)}),P2=e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let n=0;n{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:a}=t,s=[],l=e.trim().split(S2),c="";for(let u=l.length-1;u>=0;u-=1){let f=l[u],{isExternal:d,modifiers:p,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:v}=r(f);if(d){c=f+(c.length>0?" "+c:c);continue}let y=!!v,O;if(y){let D=m.substring(0,v);O=n(D);let k=O&&a[O]?n(m):void 0;k&&k!==O&&(O=k,y=!1)}else O=n(m);if(!O){if(!y){c=f+(c.length>0?" "+c:c);continue}if(O=n(m),!O){c=f+(c.length>0?" "+c:c);continue}y=!1}let P=p.length===0?"":p.length===1?p[0]:i(p).join(":"),C=h?P+Tp:P,E=C+O;if(s.indexOf(E)>-1)continue;s.push(E);let _=o(O,y);for(let D=0;D<_.length;++D){let k=_[D];s.push(C+k)}c=f+(c.length>0?" "+c:c)}return c},A2=(...e)=>{let t=0,r,n,o="";for(;t{if(typeof e=="string")return e;let t,r="";for(let n=0;n{let r,n,o,i,a=l=>{let c=t.reduce((u,f)=>f(u),e());return r=w2(c),n=r.cache.get,o=r.cache.set,i=s,s(l)},s=l=>{let c=n(l);if(c)return c;let u=O2(l,r);return o(l,u),u};return i=a,(...l)=>i(A2(...l))},C2=[],Be=e=>{let t=r=>r[e]||C2;return t.isThemeGetter=!0,t},aS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,k2=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,I2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,T2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,D2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kr=e=>k2.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),ar=e=>!!e&&Number.isInteger(Number(e)),Ip=e=>e.endsWith("%")&&re(e.slice(0,-1)),Ar=e=>_2.test(e),lS=()=>!0,N2=e=>I2.test(e)&&!T2.test(e),Mp=()=>!1,R2=e=>D2.test(e),j2=e=>M2.test(e),L2=e=>!G(e)&&!Y(e),z2=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),B2=e=>qr(e,fS,Mp),G=e=>aS.test(e),Nn=e=>qr(e,dS,N2),JP=e=>qr(e,G2,re),F2=e=>qr(e,mS,lS),W2=e=>qr(e,pS,Mp),eS=e=>qr(e,cS,Mp),V2=e=>qr(e,uS,j2),wc=e=>qr(e,hS,R2),Y=e=>sS.test(e),ia=e=>Rn(e,dS),U2=e=>Rn(e,pS),tS=e=>Rn(e,cS),$2=e=>Rn(e,fS),K2=e=>Rn(e,uS),Pc=e=>Rn(e,hS,!0),q2=e=>Rn(e,mS,!0),qr=(e,t,r)=>{let n=aS.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Rn=(e,t,r=!1)=>{let n=sS.exec(e);return n?n[1]?t(n[1]):r:!1},cS=e=>e==="position"||e==="percentage",uS=e=>e==="image"||e==="url",fS=e=>e==="length"||e==="size"||e==="bg-size",dS=e=>e==="length",G2=e=>e==="number",pS=e=>e==="family-name",mS=e=>e==="number"||e==="weight",hS=e=>e==="shadow";var H2=()=>{let e=Be("color"),t=Be("font"),r=Be("text"),n=Be("font-weight"),o=Be("tracking"),i=Be("leading"),a=Be("breakpoint"),s=Be("container"),l=Be("spacing"),c=Be("radius"),u=Be("shadow"),f=Be("inset-shadow"),d=Be("text-shadow"),p=Be("drop-shadow"),h=Be("blur"),m=Be("perspective"),v=Be("aspect"),y=Be("ease"),O=Be("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...C(),Y,G],_=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],k=()=>[Y,G,l],B=()=>[Kr,"full","auto",...k()],L=()=>[ar,"none","subgrid",Y,G],H=()=>["auto",{span:["full",ar,Y,G]},ar,Y,G],z=()=>[ar,"auto",Y,G],X=()=>["auto","min","max","fr",Y,G],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],g=()=>["auto",...k()],b=()=>[Kr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],A=()=>[Kr,"screen","full","dvw","lvw","svw","min","max","fit",...k()],w=()=>[Kr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],x=()=>[e,Y,G],S=()=>[...C(),tS,eS,{position:[Y,G]}],T=()=>["no-repeat",{repeat:["","x","y","space","round"]}],M=()=>["auto","cover","contain",$2,B2,{size:[Y,G]}],j=()=>[Ip,ia,Nn],W=()=>["","none","full",c,Y,G],F=()=>["",re,ia,Nn],$=()=>["solid","dashed","dotted","double"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>[re,Ip,tS,eS],V=()=>["","none",h,Y,G],K=()=>["none",re,Y,G],R=()=>["none",re,Y,G],Se=()=>[re,Y,G],ee=()=>[Kr,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ar],breakpoint:[Ar],color:[lS],container:[Ar],"drop-shadow":[Ar],ease:["in","out","in-out"],font:[L2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ar],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ar],shadow:[Ar],spacing:["px",re],text:[Ar],"text-shadow":[Ar],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Kr,G,Y,v]}],container:["container"],"container-type":[{"@container":["","normal","size",Y,G]}],"container-named":[z2],columns:[{columns:[re,G,Y,s]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{"inset-s":B(),start:B()}],end:[{"inset-e":B(),end:B()}],"inset-bs":[{"inset-bs":B()}],"inset-be":[{"inset-be":B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[ar,"auto",Y,G]}],basis:[{basis:[Kr,"full","auto",s,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,Kr,"auto","initial","none",G]}],grow:[{grow:["",re,Y,G]}],shrink:[{shrink:["",re,Y,G]}],order:[{order:[ar,"first","last","none",Y,G]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:g()}],mx:[{mx:g()}],my:[{my:g()}],ms:[{ms:g()}],me:[{me:g()}],mbs:[{mbs:g()}],mbe:[{mbe:g()}],mt:[{mt:g()}],mr:[{mr:g()}],mb:[{mb:g()}],ml:[{ml:g()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:b()}],"inline-size":[{inline:["auto",...A()]}],"min-inline-size":[{"min-inline":["auto",...A()]}],"max-inline-size":[{"max-inline":["none",...A()]}],"block-size":[{block:["auto",...w()]}],"min-block-size":[{"min-block":["auto",...w()]}],"max-block-size":[{"max-block":["none",...w()]}],w:[{w:[s,"screen",...b()]}],"min-w":[{"min-w":[s,"screen","none",...b()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...b()]}],h:[{h:["screen","lh",...b()]}],"min-h":[{"min-h":["screen","lh","none",...b()]}],"max-h":[{"max-h":["screen","lh",...b()]}],"font-size":[{text:["base",r,ia,Nn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,q2,F2]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ip,G]}],"font-family":[{font:[U2,W2,t]}],"font-features":[{"font-features":[G]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Y,G]}],"line-clamp":[{"line-clamp":[re,"none",Y,JP]}],leading:[{leading:[i,...k()]}],"list-image":[{"list-image":["none",Y,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Y,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",Y,Nn]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[re,"auto",Y,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[ar,Y,G]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:S()}],"bg-repeat":[{bg:T()}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ar,Y,G],radial:["",Y,G],conic:[ar,Y,G]},K2,V2]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-bs":[{"border-bs":x()}],"border-color-be":[{"border-be":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[re,Y,G]}],"outline-w":[{outline:["",re,ia,Nn]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",u,Pc,wc]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",f,Pc,wc]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[re,Nn]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",d,Pc,wc]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[re,Y,G]}],"mix-blend":[{"mix-blend":[...ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ne()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":N()}],"mask-image-linear-to-pos":[{"mask-linear-to":N()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":N()}],"mask-image-t-to-pos":[{"mask-t-to":N()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":N()}],"mask-image-r-to-pos":[{"mask-r-to":N()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":N()}],"mask-image-b-to-pos":[{"mask-b-to":N()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":N()}],"mask-image-l-to-pos":[{"mask-l-to":N()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":N()}],"mask-image-x-to-pos":[{"mask-x-to":N()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":N()}],"mask-image-y-to-pos":[{"mask-y-to":N()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[Y,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":N()}],"mask-image-radial-to-pos":[{"mask-radial-to":N()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":N()}],"mask-image-conic-to-pos":[{"mask-conic-to":N()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:S()}],"mask-repeat":[{mask:T()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Y,G]}],filter:[{filter:["","none",Y,G]}],blur:[{blur:V()}],brightness:[{brightness:[re,Y,G]}],contrast:[{contrast:[re,Y,G]}],"drop-shadow":[{"drop-shadow":["","none",p,Pc,wc]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",re,Y,G]}],"hue-rotate":[{"hue-rotate":[re,Y,G]}],invert:[{invert:["",re,Y,G]}],saturate:[{saturate:[re,Y,G]}],sepia:[{sepia:["",re,Y,G]}],"backdrop-filter":[{"backdrop-filter":["","none",Y,G]}],"backdrop-blur":[{"backdrop-blur":V()}],"backdrop-brightness":[{"backdrop-brightness":[re,Y,G]}],"backdrop-contrast":[{"backdrop-contrast":[re,Y,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,Y,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,Y,G]}],"backdrop-invert":[{"backdrop-invert":["",re,Y,G]}],"backdrop-opacity":[{"backdrop-opacity":[re,Y,G]}],"backdrop-saturate":[{"backdrop-saturate":[re,Y,G]}],"backdrop-sepia":[{"backdrop-sepia":["",re,Y,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Y,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",Y,G]}],ease:[{ease:["linear","initial",y,Y,G]}],delay:[{delay:[re,Y,G]}],animate:[{animate:["none",O,Y,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Y,G]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:K()}],"rotate-x":[{"rotate-x":K()}],"rotate-y":[{"rotate-y":K()}],"rotate-z":[{"rotate-z":K()}],scale:[{scale:R()}],"scale-x":[{"scale-x":R()}],"scale-y":[{"scale-y":R()}],"scale-z":[{"scale-z":R()}],"scale-3d":["scale-3d"],skew:[{skew:Se()}],"skew-x":[{"skew-x":Se()}],"skew-y":[{"skew-y":Se()}],transform:[{transform:[Y,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[ar,Y,G]}],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":x()}],"scrollbar-track-color":[{"scrollbar-track":x()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y,G]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[re,ia,Nn,JP]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var vS=E2(H2);function dt(...e){return vS(Q(e))}import{jsx as aa}from"react/jsx-runtime";function yS({className:e,...t}){return aa("div",{"data-slot":"card",className:dt("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...t})}function gS({className:e,...t}){return aa("div",{"data-slot":"card-header",className:dt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function xS({className:e,...t}){return aa("div",{"data-slot":"card-title",className:dt("leading-none font-semibold",e),...t})}function bS({className:e,...t}){return aa("div",{"data-slot":"card-description",className:dt("text-sm text-muted-foreground",e),...t})}function wS({className:e,...t}){return aa("div",{"data-slot":"card-content",className:dt("px-6",e),...t})}import*as Gr from"react";import{Fragment as J2,jsx as Rt,jsxs as sa}from"react/jsx-runtime";var Y2={light:"",dark:".dark"},X2={width:320,height:200},SS=Gr.createContext(null);function Z2(){let e=Gr.useContext(SS);if(!e)throw new Error("useChart must be used within a ");return e}function OS({id:e,className:t,children:r,config:n,initialDimension:o=X2,...i}){let a=Gr.useId(),s=`chart-${e??a.replace(/:/g,"")}`;return Rt(SS.Provider,{value:{config:n},children:sa("div",{"data-slot":"chart","data-chart":s,className:dt("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",t),...i,children:[Rt(Q2,{id:s,config:n}),Rt(Xu,{initialDimension:o,children:r})]})})}var Q2=({id:e,config:t})=>{let r=Object.entries(t).filter(([,n])=>n.theme??n.color);return r.length?Rt("style",{dangerouslySetInnerHTML:{__html:Object.entries(Y2).map(([n,o])=>` +${o} [data-chart=${e}] { +${r.map(([i,a])=>{let s=a.theme?.[n]??a.color;return s?` --color-${i}: ${s};`:null}).join(` +`)} +} +`).join(` +`)}}):null},AS=Qd;function ES({active:e,payload:t,className:r,indicator:n="dot",hideLabel:o=!1,hideIndicator:i=!1,label:a,labelFormatter:s,labelClassName:l,formatter:c,color:u,nameKey:f,labelKey:d}){let{config:p}=Z2(),h=Gr.useMemo(()=>{if(o||!t?.length)return null;let[v]=t,y=`${d??v?.dataKey??v?.name??"value"}`,O=PS(p,v,y),P=!d&&typeof a=="string"?p[a]?.label??a:O?.label;return s?Rt("div",{className:dt("font-medium",l),children:s(P,t)}):P?Rt("div",{className:dt("font-medium",l),children:P}):null},[a,s,t,o,l,p,d]);if(!e||!t?.length)return null;let m=t.length===1&&n!=="dot";return sa("div",{className:dt("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[m?null:h,Rt("div",{className:"grid gap-1.5",children:t.filter(v=>v.type!=="none").map((v,y)=>{let O=`${f??v.name??v.dataKey??"value"}`,P=PS(p,v,O),C=u??v.payload?.fill??v.color;return Rt("div",{className:dt("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center"),children:c&&v?.value!==void 0&&v.name?c(v.value,v.name,v,y,v.payload):sa(J2,{children:[P?.icon?Rt(P.icon,{}):!i&&Rt("div",{className:dt("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":m&&n==="dashed"}),style:{"--color-bg":C,"--color-border":C}}),sa("div",{className:dt("flex flex-1 justify-between leading-none",m?"items-end":"items-center"),children:[sa("div",{className:"grid gap-1.5",children:[m?h:null,Rt("span",{className:"text-muted-foreground",children:P?.label??v.name})]}),v.value!=null&&Rt("span",{className:"font-mono font-medium text-foreground tabular-nums",children:typeof v.value=="number"?v.value.toLocaleString():String(v.value)})]})]})},y)})})]})}function PS(e,t,r){if(typeof t!="object"||t===null)return;let n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0,o=r;return r in t&&typeof t[r]=="string"?o=t[r]:n&&r in n&&typeof n[r]=="string"&&(o=n[r]),o in e?e[o]:e[r]}import{jsx as jt,jsxs as la}from"react/jsx-runtime";var tre="An interactive line chart",Np=[{date:"2024-04-01",desktop:222,mobile:150},{date:"2024-04-02",desktop:97,mobile:180},{date:"2024-04-03",desktop:167,mobile:120},{date:"2024-04-04",desktop:242,mobile:260},{date:"2024-04-05",desktop:373,mobile:290},{date:"2024-04-06",desktop:301,mobile:340},{date:"2024-04-07",desktop:245,mobile:180},{date:"2024-04-08",desktop:409,mobile:320},{date:"2024-04-09",desktop:59,mobile:110},{date:"2024-04-10",desktop:261,mobile:190},{date:"2024-04-11",desktop:327,mobile:350},{date:"2024-04-12",desktop:292,mobile:210},{date:"2024-04-13",desktop:342,mobile:380},{date:"2024-04-14",desktop:137,mobile:220},{date:"2024-04-15",desktop:120,mobile:170},{date:"2024-04-16",desktop:138,mobile:190},{date:"2024-04-17",desktop:446,mobile:360},{date:"2024-04-18",desktop:364,mobile:410},{date:"2024-04-19",desktop:243,mobile:180},{date:"2024-04-20",desktop:89,mobile:150},{date:"2024-04-21",desktop:137,mobile:200},{date:"2024-04-22",desktop:224,mobile:170},{date:"2024-04-23",desktop:138,mobile:230},{date:"2024-04-24",desktop:387,mobile:290},{date:"2024-04-25",desktop:215,mobile:250},{date:"2024-04-26",desktop:75,mobile:130},{date:"2024-04-27",desktop:383,mobile:420},{date:"2024-04-28",desktop:122,mobile:180},{date:"2024-04-29",desktop:315,mobile:240},{date:"2024-04-30",desktop:454,mobile:380},{date:"2024-05-01",desktop:165,mobile:220},{date:"2024-05-02",desktop:293,mobile:310},{date:"2024-05-03",desktop:247,mobile:190},{date:"2024-05-04",desktop:385,mobile:420},{date:"2024-05-05",desktop:481,mobile:390},{date:"2024-05-06",desktop:498,mobile:520},{date:"2024-05-07",desktop:388,mobile:300},{date:"2024-05-08",desktop:149,mobile:210},{date:"2024-05-09",desktop:227,mobile:180},{date:"2024-05-10",desktop:293,mobile:330},{date:"2024-05-11",desktop:335,mobile:270},{date:"2024-05-12",desktop:197,mobile:240},{date:"2024-05-13",desktop:197,mobile:160},{date:"2024-05-14",desktop:448,mobile:490},{date:"2024-05-15",desktop:473,mobile:380},{date:"2024-05-16",desktop:338,mobile:400},{date:"2024-05-17",desktop:499,mobile:420},{date:"2024-05-18",desktop:315,mobile:350},{date:"2024-05-19",desktop:235,mobile:180},{date:"2024-05-20",desktop:177,mobile:230},{date:"2024-05-21",desktop:82,mobile:140},{date:"2024-05-22",desktop:81,mobile:120},{date:"2024-05-23",desktop:252,mobile:290},{date:"2024-05-24",desktop:294,mobile:220},{date:"2024-05-25",desktop:201,mobile:250},{date:"2024-05-26",desktop:213,mobile:170},{date:"2024-05-27",desktop:420,mobile:460},{date:"2024-05-28",desktop:233,mobile:190},{date:"2024-05-29",desktop:78,mobile:130},{date:"2024-05-30",desktop:340,mobile:280},{date:"2024-05-31",desktop:178,mobile:230},{date:"2024-06-01",desktop:178,mobile:200},{date:"2024-06-02",desktop:470,mobile:410},{date:"2024-06-03",desktop:103,mobile:160},{date:"2024-06-04",desktop:439,mobile:380},{date:"2024-06-05",desktop:88,mobile:140},{date:"2024-06-06",desktop:294,mobile:250},{date:"2024-06-07",desktop:323,mobile:370},{date:"2024-06-08",desktop:385,mobile:320},{date:"2024-06-09",desktop:438,mobile:480},{date:"2024-06-10",desktop:155,mobile:200},{date:"2024-06-11",desktop:92,mobile:150},{date:"2024-06-12",desktop:492,mobile:420},{date:"2024-06-13",desktop:81,mobile:130},{date:"2024-06-14",desktop:426,mobile:380},{date:"2024-06-15",desktop:307,mobile:350},{date:"2024-06-16",desktop:371,mobile:310},{date:"2024-06-17",desktop:475,mobile:520},{date:"2024-06-18",desktop:107,mobile:170},{date:"2024-06-19",desktop:341,mobile:290},{date:"2024-06-20",desktop:408,mobile:450},{date:"2024-06-21",desktop:169,mobile:210},{date:"2024-06-22",desktop:317,mobile:270},{date:"2024-06-23",desktop:480,mobile:530},{date:"2024-06-24",desktop:132,mobile:180},{date:"2024-06-25",desktop:141,mobile:190},{date:"2024-06-26",desktop:434,mobile:380},{date:"2024-06-27",desktop:448,mobile:490},{date:"2024-06-28",desktop:149,mobile:200},{date:"2024-06-29",desktop:103,mobile:160},{date:"2024-06-30",desktop:446,mobile:400}],CS={views:{label:"Page Views"},desktop:{label:"Desktop",color:"var(--chart-1)"},mobile:{label:"Mobile",color:"var(--chart-2)"}};function rre(){let[e,t]=Oc.useState("desktop"),r=Oc.useMemo(()=>({desktop:Np.reduce((n,o)=>n+o.desktop,0),mobile:Np.reduce((n,o)=>n+o.mobile,0)}),[]);return la(yS,{className:"py-4 sm:py-0",children:[la(gS,{className:"flex flex-col items-stretch border-b p-0! sm:flex-row",children:[la("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 pb-3 sm:pb-0",children:[jt(xS,{children:"Line Chart - Interactive"}),jt(bS,{children:"Showing total visitors for the last 3 months"})]}),jt("div",{className:"flex",children:["desktop","mobile"].map(n=>{let o=n;return la("button",{"data-active":e===o,className:"flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l data-[active=true]:bg-muted/50 sm:border-t-0 sm:border-l sm:px-8 sm:py-6",onClick:()=>t(o),children:[jt("span",{className:"text-xs text-muted-foreground",children:CS[o].label}),jt("span",{className:"text-lg leading-none font-bold sm:text-3xl",children:r[n].toLocaleString()})]},o)})})]}),jt(wS,{className:"px-2 sm:p-6",children:jt(OS,{config:CS,className:"aspect-auto h-[250px] w-full",children:la(_p,{accessibilityLayer:!0,data:Np,margin:{left:12,right:12},children:[jt(fc,{vertical:!1}),jt(pc,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:n=>new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric"})}),jt(AS,{content:jt(ES,{className:"w-[150px]",nameKey:"views",labelFormatter:n=>new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})}),jt(dc,{dataKey:e,type:"monotone",stroke:`var(--color-${e})`,strokeWidth:2,dot:!1})]})})})]})}export{rre as ChartLineInteractive,tre as description}; +/*! Bundled license information: + +decimal.js-light/decimal.js: + (*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE *) +*/ diff --git a/b/90a57da704bc44723e5164f647007b50cf143d90491ff62a72163c2501cc590f b/b/90a57da704bc44723e5164f647007b50cf143d90491ff62a72163c2501cc590f new file mode 100644 index 0000000000000000000000000000000000000000..9ac25c8672e877d7b48c3e8a259bc2afe9bdbe1d --- /dev/null +++ b/b/90a57da704bc44723e5164f647007b50cf143d90491ff62a72163c2501cc590f @@ -0,0 +1,7 @@ +import rating from './object.js'; +import { addPrefix } from '../../functions/addPrefix.js'; + +export default ({ addComponents, prefix = '' }) => { + const prefixedrating = addPrefix(rating, prefix); + addComponents({ ...prefixedrating }); +}; diff --git a/b/90d5e36744b543faf3d7db7466496ea1261f98f65ba94314153925c99b9cc6bd b/b/90d5e36744b543faf3d7db7466496ea1261f98f65ba94314153925c99b9cc6bd new file mode 100644 index 0000000000000000000000000000000000000000..ccdb395b9f3b5d0a94bd62a45ba63437cb29d98a --- /dev/null +++ b/b/90d5e36744b543faf3d7db7466496ea1261f98f65ba94314153925c99b9cc6bd @@ -0,0 +1,21 @@ +{ + "id": "org.hologram.ui.chart.chart-radar-legend", + "name": "chart-radar-legend", + "tier": "chart", + "library": "shadcn", + "category": "Charts · Radar", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/chart-radar-legend.json", + "did": "did:holo:sha256:132b18d5502fa68887fa6639a304d26f56ca80b5264cebef945224482cc11cc5", + "import": "holo://sha256:7ebdbcad1231c319a6566b12dbebb7bda9e5aa1d26939073db9c07e7978eacf0", + "integrity": "sha256-fr28rRIxwxmmVmsS2+u3vanlqh0mk5Bz25wH55eOrPA=", + "kappa": "sha256:132b18d5502fa68887fa6639a304d26f56ca80b5264cebef945224482cc11cc5", + "moduleKappa": "sha256:7ebdbcad1231c319a6566b12dbebb7bda9e5aa1d26939073db9c07e7978eacf0", + "renderExport": "ChartRadarLegend", + "source": "registry/new-york-v4/charts/chart-radar-legend.tsx", + "module": "vendor/components/chart-radar-legend.js", + "exports": [ + "description", + "ChartRadarLegend" + ], + "license": "MIT" +} diff --git a/b/90d7db188b9c9a8e3268b15d717d08c32eeef1b5643d1ca7808cd62ae03e5f78 b/b/90d7db188b9c9a8e3268b15d717d08c32eeef1b5643d1ca7808cd62ae03e5f78 new file mode 100644 index 0000000000000000000000000000000000000000..51993336dde02a428dba879c6c86cc83acb9a2e4 --- /dev/null +++ b/b/90d7db188b9c9a8e3268b15d717d08c32eeef1b5643d1ca7808cd62ae03e5f78 @@ -0,0 +1,39 @@ +{ + "spec": "qwen35 gated-DeltaNet linear layer is NUMERICALLY EXACT vs HF Qwen3NextGatedDeltaNet (same weights+input): contiguous q|k|v split, causal depthwise conv1d+SiLU (no bias), head-group repeat_interleave expansion, per-head qk L2-norm + q·1/√d scale, decay g=-exp(A_log)·softplus(a+dt_bias), gated delta-rule recurrence, gated RMSNorm with z, out_proj. Caught+fixed a missing qk-L2-norm. min cosine and max relative-L2 across tokens recorded below.", + "authority": "HF transformers modeling_qwen3_next (torch reference path) · fixture via gguf-forge-qwen35-parity.gen.py", + "minCosine": 0.9999999999993644, + "maxRelL2": 0.000001141763085722988, + "perToken": [ + { + "t": 0, + "cos": 1, + "relL2": 2.7078383162218707e-7 + }, + { + "t": 1, + "cos": 1, + "relL2": 2.397536169531652e-7 + }, + { + "t": 2, + "cos": 1, + "relL2": 2.530518659938669e-7 + }, + { + "t": 3, + "cos": 1, + "relL2": 3.945507654189746e-7 + }, + { + "t": 4, + "cos": 1, + "relL2": 2.986460066945053e-7 + }, + { + "t": 5, + "cos": 1, + "relL2": 0.000001141763085722988 + } + ], + "witnessed": true +} diff --git a/b/90e9836b2a36c0cc8345a295b9d42b529dfe926eec2b6a8578e8eaba37a6db56 b/b/90e9836b2a36c0cc8345a295b9d42b529dfe926eec2b6a8578e8eaba37a6db56 new file mode 100644 index 0000000000000000000000000000000000000000..b649825c681657e4870506e1518c4042ac58f4d6 --- /dev/null +++ b/b/90e9836b2a36c0cc8345a295b9d42b529dfe926eec2b6a8578e8eaba37a6db56 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.client-tweet-card", + "name": "client-tweet-card", + "tier": "component", + "library": "magicui", + "category": "Components", + "upstream": "https://magicui.design/r/client-tweet-card.json", + "did": "did:holo:sha256:f921a3af951665445365b0dae95c61cdc86f472d15fa76b8355d5b2a1ee52f62", + "import": "holo://sha256:874749d0192fd16800c52e49ca0c084a3813553d6dc09f0d18730975ceaeb3f5", + "integrity": "sha256-h0dJ0Bkv0WgAxS5JygwISjgTVT1twJ8NGHMJdc6us/U=", + "kappa": "sha256:f921a3af951665445365b0dae95c61cdc86f472d15fa76b8355d5b2a1ee52f62", + "moduleKappa": "sha256:874749d0192fd16800c52e49ca0c084a3813553d6dc09f0d18730975ceaeb3f5", + "renderExport": "ClientTweetCard", + "source": "components/ui/client-tweet-card.tsx", + "module": "vendor/components/client-tweet-card.js", + "exports": [ + "ClientTweetCard" + ], + "license": "MIT" +} diff --git a/b/90f7424aec38a2b20663d6e54166fb24f4594fbe29b17f523b4dcf0aa7ad46b0 b/b/90f7424aec38a2b20663d6e54166fb24f4594fbe29b17f523b4dcf0aa7ad46b0 new file mode 100644 index 0000000000000000000000000000000000000000..e417dce165a4a2c4adef81ac3f1a9d33dc526076 --- /dev/null +++ b/b/90f7424aec38a2b20663d6e54166fb24f4594fbe29b17f523b4dcf0aa7ad46b0 @@ -0,0 +1,81 @@ +// gen-real-model-meta.mjs — export everything the BROWSER GPU executor needs to run the real +// DeepSeek-V2-Lite forward by streaming weights from the served .gguf (HTTP Range + WebCrypto verify). +// +// Exports graph ops + weight descriptors (κ/type/dims) + dir (κ→file offset) + expert directory + precomputed +// YaRN uniforms + the CPU oracle (integer-dot argmax == llama.cpp "Berlin", AND a float-dequant-dot trace that +// the GPU raw kernels match tightly per-op). Writes gpu/_qtest/real-model.json. Slow — run in background. +import { openSync, readSync, statSync, closeSync, writeFileSync, mkdirSync } from "node:fs"; +import { forgeGgufScan } from "./gguf-forge.mjs"; +import { makeDiskStore } from "./gguf-forge-kstore.mjs"; +import { synthesizeGraph } from "./gguf-forge-graph.mjs"; +import { forward } from "./gguf-forge-exec.mjs"; +import { makeTokenizer } from "./gguf-forge-tokenizer.mjs"; + +const MODEL = ".models/deepseek-v2-lite-q4_k_m.gguf"; +const MODEL_URL = "/holo-apps/apps/q/forge/.models/deepseek-v2-lite-q4_k_m.gguf"; +const MiB = 1048576, hexOf = (k) => String(k).split(":").pop(); +const t0 = Date.now(), el = () => ((Date.now() - t0) / 1000).toFixed(0); +const fd = openSync(MODEL, "r"), size = statSync(MODEL).size; +const rr = (off, len) => { const b = Buffer.allocUnsafe(len); let g = 0; while (g < len) { const n = readSync(fd, b, g, len - g, off + g); if (n <= 0) break; g += n; } return new Uint8Array(b.buffer, b.byteOffset, len); }; +const header = rr(0, Math.min(size, 48 * MiB)); + +console.log(`[${el()}s] scanning…`); +const f = await forgeGgufScan(rr, { headerBytes: header }); +const g = synthesizeGraph(f.plan); +const store = makeDiskStore({ fd, dir: f.dir, budgetBytes: 3 << 30 }); +const fastload = (st, k) => { const b = st.get(hexOf(k)); if (b === undefined) throw new Error("κ not found " + k); return b; }; +const tok = makeTokenizer(header); +const ids = tok.encode("The capital of Germany is", { addSpecial: false, parseSpecial: false }); +console.log(`[${el()}s] scanned. family=${g.family} layers=${g.stats.n_layer} ids=[${ids}]`); + +// YaRN uniforms (mirror gguf-forge-exec mla_attn YaRN branch) — computed once, shipped to the browser. +const mla = g.ops.find((o) => o.op === "mla_attn"); +const A = mla.attrs, HK = A.n_embd_head_k, ROPE = A.qk_rope, fb = A.freq_base; +function yarnUniforms(rope, freqBase, factor, origCtx, logMul) { + const freqScale = 1 / factor, ext = 1.0, lf = Math.log(factor); + const corrDim = (beta) => rope * Math.log(origCtx / (beta * 2 * Math.PI)) / (2 * Math.log(freqBase)); + const lo = Math.max(0, Math.floor(corrDim(32))), hi = Math.min(rope - 1, Math.ceil(corrDim(1))); + const getMscale = (s, m) => s <= 1 ? 1 : (0.1 * m * Math.log(s) + 1); + const mAll = logMul, mSc = (logMul !== 0 && mAll !== 1) ? mAll : 1; + let attnFactor = logMul !== 0 ? getMscale(factor, mSc) / getMscale(factor, mAll) : getMscale(factor, 1); + if (ext !== 0) attnFactor *= 1 / (1 + 0.1 * lf); + const ropeMscale = ext !== 0 ? attnFactor * (1 + 0.1 * lf) : attnFactor; + const kqMscale = attnFactor * (1 + 0.1 * lf) * (1 + 0.1 * logMul * lf); + return { freqScale, extFactor: ext, lo, hi, mscale: ropeMscale, kqScale: (kqMscale * kqMscale) / Math.sqrt(HK) }; +} +const yarn = A.ropeScaling === "yarn" ? yarnUniforms(ROPE, fb, A.yarnFactor, A.yarnOrigCtx, A.yarn_log_mul || 0) : null; + +// weight descriptors + dir (κ→file offset) — the browser range-fetches bytes by these. +const weights = {}; for (const nm in g.weights) { const w = g.weights[nm]; weights[nm] = { hex: hexOf(w.kappa), type: w.type, dims: w.dims }; } +const dir = {}; for (const hx in f.dir) dir[hx] = { off: f.dir[hx].fileOffset, len: f.dir[hx].len }; +const expertMeta = {}; +for (const nm in f.expertDir.tensors) { const td = f.expertDir.tensors[nm]; expertMeta[nm] = { stride: td.stride, wholeHex: hexOf(g.weights[nm].kappa), experts: td.experts.map((e) => hexOf(e.kappa)) }; } + +// ── CPU oracle: integer-dot (== llama.cpp) argmax, then float-dequant-dot trace (matches GPU raw kernels) ── +console.log(`[${el()}s] CPU forward (integer dot)…`); +const logitsInt = forward(f.plan, g, store, ids, { load: fastload, expertDir: f.expertDir }); +const argmax = (a) => { let m = 0; for (let i = 1; i < a.length; i++) if (a[i] > a[m]) m = i; return m; }; +const expectedInt = argmax(logitsInt); +console.log(`[${el()}s] integer argmax=${expectedInt} ("${tok.decode([expectedInt]).replace(/\n/g, "\\n")}")`); + +globalThis.__HOLO_FORCE_FLOAT_DEQUANT = true; +const keep = /^(h|e|result_norm|logits)$|^l\d+\.out$/; // per-layer residual + endpoints (localization) +const trace = {}; +const dbg = (label, arr, p) => { if (p === ids.length - 1 && keep.test(label)) trace[label] = Array.from(arr); }; +console.log(`[${el()}s] CPU forward (FLOAT dequant dot)…`); +const logitsFloat = forward(f.plan, g, store, ids, { load: fastload, expertDir: f.expertDir, dbg }); +globalThis.__HOLO_FORCE_FLOAT_DEQUANT = false; +const floatArgmax = argmax(logitsFloat); +console.log(`[${el()}s] float argmax=${floatArgmax} ("${tok.decode([floatArgmax]).replace(/\n/g, "\\n")}") (int was ${expectedInt})`); + +mkdirSync("gpu/_qtest", { recursive: true }); +writeFileSync("gpu/_qtest/real-model.json", JSON.stringify({ + modelUrl: MODEL_URL, ids, vocab: g.weights["output.weight"].dims[1], + cfg: { nLayer: g.stats.n_layer, D: g.weights["token_embd.weight"].dims[0], NH: A.n_head, HK: A.n_embd_head_k, HV: A.n_embd_head_v, + ROPE: A.qk_rope, NOPE: A.qk_nope, KVL: A.kv_lora, lite: !!A.lite, leadingDense: g.stats.leading_dense ?? 1, + E: g.stats.n_expert, USED: g.stats.n_expert_used, eps: A.eps, freqBase: fb, yarn, kqScalePlain: 1 / Math.sqrt(HK) }, + ops: g.ops, weights, dir, expertMeta, + expectedInt, floatArgmax, floatLogits: Array.from(logitsFloat), trace, +})); +console.log(`[${el()}s] wrote gpu/_qtest/real-model.json — ${Object.keys(weights).length} weights, ${Object.keys(expertMeta).length} expert tensors, trace ${Object.keys(trace).length} ops`); +closeSync(fd); diff --git a/b/9100ee57c611046b16f72c160a7ef3b1e195d9b0f36cd2813b041ca9267ecf87 b/b/9100ee57c611046b16f72c160a7ef3b1e195d9b0f36cd2813b041ca9267ecf87 new file mode 100644 index 0000000000000000000000000000000000000000..4e6a260a3be17983f3828582d66b927e8fa9ad52 --- /dev/null +++ b/b/9100ee57c611046b16f72c160a7ef3b1e195d9b0f36cd2813b041ca9267ecf87 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.ripple", + "name": "ripple", + "tier": "component", + "library": "magicui", + "category": "Backgrounds", + "upstream": "https://magicui.design/r/ripple.json", + "did": "did:holo:sha256:1ac207017c0f4e993f83a1ead8b8a1b4a92286ef1595a297aba79782b2616eaf", + "import": "holo://sha256:efb370e0f59e279415bc02224606779e16599f24253db8627ab0a80fac000a71", + "integrity": "sha256-77Nw4PWeJ5QVvAIiRgZ3nhZZnyQlPbhierCoD6wACnE=", + "kappa": "sha256:1ac207017c0f4e993f83a1ead8b8a1b4a92286ef1595a297aba79782b2616eaf", + "moduleKappa": "sha256:efb370e0f59e279415bc02224606779e16599f24253db8627ab0a80fac000a71", + "renderExport": "Ripple", + "source": "components/ui/ripple.tsx", + "module": "vendor/components/ripple.js", + "exports": [ + "Ripple" + ], + "license": "MIT" +} diff --git a/b/914eed2931b2016c5dedbba8ca8c7d13f9b840223cab4062a0e181dec930c1f6 b/b/914eed2931b2016c5dedbba8ca8c7d13f9b840223cab4062a0e181dec930c1f6 new file mode 100644 index 0000000000000000000000000000000000000000..e4c3a2120732e3901ae10182800b939c452bc9bc --- /dev/null +++ b/b/914eed2931b2016c5dedbba8ca8c7d13f9b840223cab4062a0e181dec930c1f6 @@ -0,0 +1,154 @@ +"use client" + +import * as React from "react" +import { Form, Field as FormischField, reset, useForm } from "@formisch/react" +import type { SubmitHandler } from "@formisch/react" +import { toast } from "sonner" +import * as v from "valibot" + +import { Button } from "@/registry/new-york-v4/ui/button" +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + Field, + FieldContent, + FieldDescription, + FieldError, + FieldGroup, + FieldLabel, + FieldLegend, + FieldSet, + FieldTitle, +} from "@/registry/new-york-v4/ui/field" +import { + RadioGroup, + RadioGroupItem, +} from "@/registry/new-york-v4/ui/radio-group" + +const plans = [ + { + id: "starter", + title: "Starter (100K tokens/month)", + description: "For everyday use with basic features.", + }, + { + id: "pro", + title: "Pro (1M tokens/month)", + description: "For advanced AI usage with more features.", + }, + { + id: "enterprise", + title: "Enterprise (Unlimited tokens)", + description: "For large teams and heavy usage.", + }, +] as const + +const FormSchema = v.object({ + plan: v.pipe( + v.string(), + v.minLength(1, "You must select a subscription plan to continue.") + ), +}) + +export default function FormFormischRadioGroup() { + const form = useForm({ + schema: FormSchema, + initialInput: { + plan: "", + }, + }) + + const handleSubmit: SubmitHandler = (output) => { + toast("You submitted the following values:", { + description: ( +
    +          {JSON.stringify(output, null, 2)}
    +        
    + ), + position: "bottom-right", + classNames: { + content: "flex flex-col gap-2", + }, + style: { + "--border-radius": "calc(var(--radius) + 4px)", + } as React.CSSProperties, + }) + } + + return ( + + + Subscription Plan + + See pricing and features for each plan. + + + +
    + + + {(field) => ( +
    + Plan + + You can upgrade or downgrade your plan at any time. + + field.onChange(value)} + aria-invalid={field.errors !== null} + > + {plans.map((plan) => ( + + + + {plan.title} + + {plan.description} + + + + + + ))} + + {field.errors && ( + ({ message }))} + /> + )} +
    + )} +
    +
    +
    +
    + + + + + + +
    + ) +} diff --git a/b/915010306332bf23dad2401559ad704ce9db0233c52040106b926f8e94663397 b/b/915010306332bf23dad2401559ad704ce9db0233c52040106b926f8e94663397 new file mode 100644 index 0000000000000000000000000000000000000000..c388c63ee469b4259f97bbd3f9324e63004f7b14 --- /dev/null +++ b/b/915010306332bf23dad2401559ad704ce9db0233c52040106b926f8e94663397 @@ -0,0 +1,55 @@ +import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-07/components/app-sidebar" +import { + Breadcrumb, + BreadcrumbItem, + BreadcrumbLink, + BreadcrumbList, + BreadcrumbPage, + BreadcrumbSeparator, +} from "@/registry/new-york-v4/ui/breadcrumb" +import { Separator } from "@/registry/new-york-v4/ui/separator" +import { + SidebarInset, + SidebarProvider, + SidebarTrigger, +} from "@/registry/new-york-v4/ui/sidebar" + +export default function Page() { + return ( + + + +
    +
    + + + + + + + Build Your Application + + + + + Data Fetching + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + ) +} diff --git a/b/915bc99afffd6255e98d8bdedf4669482f48c6031bb2dde61b811d19216a552f b/b/915bc99afffd6255e98d8bdedf4669482f48c6031bb2dde61b811d19216a552f new file mode 100644 index 0000000000000000000000000000000000000000..1593cf5c1ada3a751aa38d5b7bccd984f0238fc7 --- /dev/null +++ b/b/915bc99afffd6255e98d8bdedf4669482f48c6031bb2dde61b811d19216a552f @@ -0,0 +1 @@ +{"D":896,"NH":14,"NHKV":2,"HD":64,"FF":4864,"KV":128,"QD":896,"EPS":9.999999974752427e-7,"FREQ":1000000,"T":4,"scale":0.125,"grp":7,"layout":{"attn_norm":{"off":0,"len":896},"ffn_norm":{"off":896,"len":896},"wq":{"off":1792,"len":802816},"bq":{"off":804608,"len":896},"wk":{"off":805504,"len":114688},"bk":{"off":920192,"len":128},"wv":{"off":920320,"len":114688},"bv":{"off":1035008,"len":128},"wo":{"off":1035136,"len":802816},"gate":{"off":1837952,"len":4358144},"up":{"off":6196096,"len":4358144},"down":{"off":10554240,"len":4358144},"emb0":{"off":14912384,"len":896},"emb1":{"off":14913280,"len":896},"emb2":{"off":14914176,"len":896},"emb3":{"off":14915072,"len":896},"exp0":{"off":14915968,"len":896},"exp1":{"off":14916864,"len":896},"exp2":{"off":14917760,"len":896},"exp3":{"off":14918656,"len":896}}} \ No newline at end of file diff --git a/b/916f57e128a84c1b4f72409eb5cdb851ac7bbfcaefec2e3dbecfd1d71de0f5c2 b/b/916f57e128a84c1b4f72409eb5cdb851ac7bbfcaefec2e3dbecfd1d71de0f5c2 new file mode 100644 index 0000000000000000000000000000000000000000..6d3d58a3b6a3149426b83e45616e1ff26ac4368e --- /dev/null +++ b/b/916f57e128a84c1b4f72409eb5cdb851ac7bbfcaefec2e3dbecfd1d71de0f5c2 @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.block.sidebar-07", + "name": "sidebar-07", + "tier": "block", + "library": "shadcn", + "category": "Blocks", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/sidebar-07.json", + "did": "did:holo:sha256:3b5833120e28ec8b2aef00f083f8da055122cb17426d9857f8e8ad7c54be3c48", + "import": "holo://sha256:285794200521f471ed2f0246e9af48dfc6a881034e07d6d1472b5a6f9238fa96", + "integrity": "sha256-KFeUIAUh9HHtLwJG6a9I38aogQNOB9bRRytab5I4+pY=", + "kappa": "sha256:3b5833120e28ec8b2aef00f083f8da055122cb17426d9857f8e8ad7c54be3c48", + "moduleKappa": "sha256:285794200521f471ed2f0246e9af48dfc6a881034e07d6d1472b5a6f9238fa96", + "renderExport": "default", + "source": "registry/new-york-v4/blocks/sidebar-07/page.tsx", + "module": "vendor/components/sidebar-07.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/916f8cfe41efa6771feae0ff8d6bc9ccd00f065bf2a59d241bc2f676f47b00ca b/b/916f8cfe41efa6771feae0ff8d6bc9ccd00f065bf2a59d241bc2f676f47b00ca new file mode 100644 index 0000000000000000000000000000000000000000..d2120894d70a50284cd2f27f19f40a1008c43962 --- /dev/null +++ b/b/916f8cfe41efa6771feae0ff8d6bc9ccd00f065bf2a59d241bc2f676f47b00ca @@ -0,0 +1 @@ +export default {"color-scheme":"light","--color-base-100":"oklch(98% 0.016 73.684)","--color-base-200":"oklch(95% 0.038 75.164)","--color-base-300":"oklch(90% 0.076 70.697)","--color-base-content":"oklch(40% 0.123 38.172)","--color-primary":"oklch(0% 0 0)","--color-primary-content":"oklch(100% 0 0)","--color-secondary":"oklch(22.45% 0.075 37.85)","--color-secondary-content":"oklch(90% 0.076 70.697)","--color-accent":"oklch(46.44% 0.111 37.85)","--color-accent-content":"oklch(90% 0.076 70.697)","--color-neutral":"oklch(55% 0.195 38.402)","--color-neutral-content":"oklch(98% 0.016 73.684)","--color-info":"oklch(42% 0.199 265.638)","--color-info-content":"oklch(90% 0.076 70.697)","--color-success":"oklch(43% 0.095 166.913)","--color-success-content":"oklch(90% 0.076 70.697)","--color-warning":"oklch(82% 0.189 84.429)","--color-warning-content":"oklch(41% 0.112 45.904)","--color-error":"oklch(70% 0.191 22.216)","--color-error-content":"oklch(39% 0.141 25.723)","--radius-selector":"2rem","--radius-field":"0.5rem","--radius-box":"1rem","--size-selector":"0.25rem","--size-field":"0.25rem","--border":"2px","--depth":"1","--noise":"1"}; \ No newline at end of file diff --git a/b/9174a2c2d3a91fddaeae1eaf5db75d1b91bfdbd2df5fa300c067bb0865fb195a b/b/9174a2c2d3a91fddaeae1eaf5db75d1b91bfdbd2df5fa300c067bb0865fb195a new file mode 100644 index 0000000000000000000000000000000000000000..9e3de268087aabc644593ac990625b2463275436 --- /dev/null +++ b/b/9174a2c2d3a91fddaeae1eaf5db75d1b91bfdbd2df5fa300c067bb0865fb195a @@ -0,0 +1,20 @@ +{ + "id": "org.hologram.ui.block.sidebar-11", + "name": "sidebar-11", + "tier": "block", + "library": "shadcn", + "category": "Blocks", + "upstream": "https://ui.shadcn.com/r/styles/new-york-v4/sidebar-11.json", + "did": "did:holo:sha256:96760f94d0eecc25b406065a8dd8dabf8524e507310fd6065ae0d933e6ca87b8", + "import": "holo://sha256:66a2970cc7945c9f050907c0e97fcf977e547bbe4cda812d4a7a153f493ffc1f", + "integrity": "sha256-ZqKXDMeUXJ8FCQfA6X/Pl35Ue75M2oEtSnoVP0k//B8=", + "kappa": "sha256:96760f94d0eecc25b406065a8dd8dabf8524e507310fd6065ae0d933e6ca87b8", + "moduleKappa": "sha256:66a2970cc7945c9f050907c0e97fcf977e547bbe4cda812d4a7a153f493ffc1f", + "renderExport": "default", + "source": "registry/new-york-v4/blocks/sidebar-11/page.tsx", + "module": "vendor/components/sidebar-11.js", + "exports": [ + "default" + ], + "license": "MIT" +} diff --git a/b/919c5015abe95eb5e4fa0cdded49ed400e18f3eb35c3b85626e0d4351501a6b9 b/b/919c5015abe95eb5e4fa0cdded49ed400e18f3eb35c3b85626e0d4351501a6b9 new file mode 100644 index 0000000000000000000000000000000000000000..bf8902ff10de933914c94dc00d32284b8bc2fe5a --- /dev/null +++ b/b/919c5015abe95eb5e4fa0cdded49ed400e18f3eb35c3b85626e0d4351501a6b9 @@ -0,0 +1,7 @@ +import tooltip from './object.js'; +import { addPrefix } from '../../functions/addPrefix.js'; + +export default ({ addComponents, prefix = '' }) => { + const prefixedtooltip = addPrefix(tooltip, prefix); + addComponents({ ...prefixedtooltip }); +}; diff --git a/b/91bb9b436062723fc92a936eb0959b4a2e3c2a35ab6caf69050fc1632e0f2fa4 b/b/91bb9b436062723fc92a936eb0959b4a2e3c2a35ab6caf69050fc1632e0f2fa4 new file mode 100644 index 0000000000000000000000000000000000000000..06fd1305e9e112b02db10658dd646b44cfe4613b --- /dev/null +++ b/b/91bb9b436062723fc92a936eb0959b4a2e3c2a35ab6caf69050fc1632e0f2fa4 @@ -0,0 +1 @@ +"use client";var mr=Object.defineProperty;var ot=(e,r)=>{for(var t in r)mr(e,t,{get:r[t],enumerable:!0})};var de,hr={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function ut(e){return!e&&!de?hr:{lang:e?.lang??de?.lang,message:e?.message,abortEarly:e?.abortEarly??de?.abortEarly,abortPipeEarly:e?.abortPipeEarly??de?.abortPipeEarly}}var yr;function vr(e){return yr?.get(e)}var gr;function br(e){return gr?.get(e)}var xr;function kr(e,r){return xr?.get(e)?.get(r)}function wr(e){let r=typeof e;return r==="string"?`"${e}"`:r==="number"||r==="bigint"||r==="boolean"?`${e}`:r==="object"||r==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":r}function re(e,r,t,n,s){let o=s&&"input"in s?s.input:t.value,i=s?.expected??e.expects??null,l=s?.received??wr(o),a={kind:e.kind,type:e.type,input:o,expected:i,received:l,message:`Invalid ${r}: ${i?`Expected ${i} but r`:"R"}eceived ${l}`,requirement:e.requirement,path:s?.path,issues:s?.issues,lang:n.lang,abortEarly:n.abortEarly,abortPipeEarly:n.abortPipeEarly},u=e.kind==="schema",m=s?.message??e.message??kr(e.reference,a.lang)??(u?br(a.lang):null)??n.message??vr(a.lang);m!==void 0&&(a.message=typeof m=="function"?m(a):m),u&&(t.typed=!1),t.issues?t.issues.push(a):t.issues=[a]}var at=new WeakMap;function je(e){let r=at.get(e);return r||(r={version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},ut())}},at.set(e,r)),r}function ze(e,r){return{kind:"validation",type:"max_length",reference:ze,async:!1,expects:`<=${e}`,requirement:e,message:r,"~run"(t,n){return t.typed&&t.value.length>this.requirement&&re(this,"length",t,n,{received:`${t.value.length}`}),t}}}function Pe(e,r){return{kind:"validation",type:"min_length",reference:Pe,async:!1,expects:`>=${e}`,requirement:e,message:r,"~run"(t,n){return t.typed&&t.value.lengtht.selected&&!t.disabled).map(t=>t.value);if(e.type==="checkbox"){let t=document.getElementsByName(e.name);return t.length>1?[...t].filter(n=>n.checked).map(n=>n.value):e.checked}return e.type==="radio"?e.checked?e.value:q(()=>ne(r)):e.type==="file"?e.multiple?[...e.files]:e.files[0]:e.value}function yt(e,r){let t=e;for(let n of r)t=t.children[n];return t}function qe(e,r,t){se(()=>{if(e.kind==="array"){e[r].value=t;for(let n=0;ne.items.value).length;n++)qe(e.children[n],r,t)}else if(e.kind=="object")for(let n in e.children)qe(e.children[n],r,t);else e[r].value=t})}function Be(e,r){if(e.isTouched.value=!0,e.kind==="array"){let t=r??[],n=e.items.value;if(t.lengthn.length){if(t.length>e.children.length){let s=JSON.parse(e.name);for(let o=e.children.length;o{q(()=>{let n=e;for(let s=0;s{if(e.kind==="array"){e.input.value=r==null?r:!0;let t=r??[];if(t.length>e.children.length){let n=JSON.parse(e.name);for(let s=e.children.length;se.items.value).length;t++)he(e.children[t],r);else if(e.kind==="object")for(let t in e.children)he(e.children[t],r)}function Tr(e,r){let t={};return P(t,e.schema,e.initialInput,[]),t.validators=0,t.validate=e.validate??"submit",t.revalidate=e.revalidate??"input",t.parse=r,t.isSubmitting=E(!1),t.isSubmitted=E(!1),t.isValidating=E(!1),t}async function ye(e,r){e.validators++,e.isValidating.value=!0;let t=await e.parse(q(()=>ne(e))),n,s;if(t.issues){s={};for(let i of t.issues)if(i.path){let l=[];for(let m of i.path){let h=m.key,v=typeof h,g=m.type;if(v!=="string"&&v!=="number"||g==="map"||g==="set")break;l.push(h)}let a=JSON.stringify(l),u=s[a];u?u.push(i.message):s[a]=[i.message]}else n?n.push(i.message):n=[i.message]}let o=r?.shouldFocus??!1;return se(()=>{he(e,i=>{if(i.name==="[]")i.errors.value=n??null;else{let l=s?.[i.name]??null;i.errors.value=l,o&&l&&(i.elements[0]?.focus(),o=!1)}}),e.validators--,e.isValidating.value=e.validators>0}),t}function Q(e,r,t){t===(e.validate==="initial"||(e.validate==="submit"?q(()=>e.isSubmitted.value):q(()=>G(r,"errors")))?e.revalidate:e.validate)&&ye(e)}var ie="~internal";function Ir(e,r){return async t=>{t?.preventDefault();let n=e[ie];n.isSubmitted.value=!0,n.isSubmitting.value=!0;try{let s=await ye(n,{shouldFocus:!0});s.success&&await r(s.output,t)}catch(s){n.errors.value=[s&&typeof s=="object"&&"message"in s&&typeof s.message=="string"?s.message:"An unknown error has occurred."]}finally{n.isSubmitting.value=!1}}}function jr(e,r){return Ir(e,r)}function vt(e,r){se(()=>{q(()=>{let t=e[ie],n=r?.path?yt(t,r.path):t;r&&"initialInput"in r&&Ve(n,r.initialInput),he(n,s=>{if(s.elements=s.initialElements,r?.keepErrors||(s.errors.value=null),r?.keepTouched||(s.isTouched.value=!1),s.startInput.value=s.initialInput.value,r?.keepInput||(s.input.value=s.initialInput.value),s.kind==="array")s.startItems.value=s.initialItems.value,(!r?.keepInput||s.startItems.value.length===s.items.value.length)&&(s.items.value=s.initialItems.value),s.isDirty.value=s.startInput.value!==s.input.value||s.startItems.value!==s.items.value;else if(s.kind==="object")s.isDirty.value=s.startInput.value!==s.input.value;else{let o=s.startInput.value,i=s.input.value;s.isDirty.value=o!==i&&(o!=null||i!==""&&!Number.isNaN(i));for(let l of s.elements)l.type==="file"&&(l.value="")}}),r?.path||(r?.keepSubmitted||(t.isSubmitted.value=!1),t.validate==="initial"&&ye(t))})})}function gt(){let[,e]=Ar(s=>s+1,0),r=me(()=>[e,new Set],[]),t=_r(()=>{for(let s of r[1])s.delete(r)},[r]);t(),pt(r),ht(()=>pt(void 0));let n=Dr(null);mt(()=>(n.current&&(clearTimeout(n.current),n.current=null),()=>{n.current=setTimeout(t)}),[t])}function zr(e,r){gt();let t=e[ie],n=yt(t,r.path);return mt(()=>()=>{n.elements=n.elements.filter(s=>s.isConnected)},[n]),me(()=>({path:r.path,get input(){return ne(n)},get errors(){return n.errors.value},get isTouched(){return G(n,"isTouched")},get isDirty(){return G(n,"isDirty")},get isValid(){return!G(n,"errors")},onChange(s){dt(t,r.path,s),Q(t,n,"input"),Q(t,n,"change")},props:{name:n.name,autoFocus:!!n.errors.value,ref(s){s&&n.elements.push(s)},onFocus(){qe(n,"isTouched",!0),Q(t,n,"touch")},onChange(s){dt(t,r.path,Nr(s.currentTarget,n)),Q(t,n,"input"),Q(t,n,"change")},onBlur(){Q(t,n,"blur")}}}),[t,n])}function bt(e){gt();let r=me(()=>Tr(e,t=>ct(e.schema,t)),[]);return ht(()=>{e.validate==="initial"&&ye(r)},[]),me(()=>({[ie]:r,get isSubmitting(){return r.isSubmitting.value},get isSubmitted(){return r.isSubmitted.value},get isValidating(){return r.isValidating.value},get isTouched(){return G(r,"isTouched")},get isDirty(){return G(r,"isDirty")},get isValid(){return!G(r,"errors")},get errors(){return r.errors.value}}),[r])}function xt({of:e,path:r,children:t}){return t(zr(e,{path:r}))}function kt({of:e,onSubmit:r,...t}){return Cr("form",{...t,noValidate:!0,ref:n=>{n&&(e[ie].element=n)},onSubmit:jr(e,r)})}import oe from"react";import us from"react-dom";function Pr(e){if(!e||typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",r.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}var ls=Array(12).fill(0);var Xe=1,We=class{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{let t=this.subscribers.indexOf(r);this.subscribers.splice(t,1)}),this.publish=r=>{this.subscribers.forEach(t=>t(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var t;let{message:n,...s}=r,o=typeof r?.id=="number"||((t=r.id)==null?void 0:t.length)>0?r.id:Xe++,i=this.toasts.find(a=>a.id===o),l=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...r,id:o,title:n}),{...a,...r,id:o,dismissible:l,title:n}):a):this.addToast({title:n,...s,dismissible:l,id:o}),o},this.dismiss=r=>(r?(this.dismissedToasts.add(r),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:r,dismiss:!0})))):this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),r),this.message=(r,t)=>this.create({...t,message:r}),this.error=(r,t)=>this.create({...t,message:r,type:"error"}),this.success=(r,t)=>this.create({...t,type:"success",message:r}),this.info=(r,t)=>this.create({...t,type:"info",message:r}),this.warning=(r,t)=>this.create({...t,type:"warning",message:r}),this.loading=(r,t)=>this.create({...t,type:"loading",message:r}),this.promise=(r,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:r,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let s=Promise.resolve(r instanceof Function?r():r),o=n!==void 0,i,l=s.then(async u=>{if(i=["resolve",u],oe.isValidElement(u))o=!1,this.create({id:n,type:"default",message:u});else if(Or(u)&&!u.ok){o=!1;let h=typeof t.error=="function"?await t.error(`HTTP error! status: ${u.status}`):t.error,v=typeof t.description=="function"?await t.description(`HTTP error! status: ${u.status}`):t.description,k=typeof h=="object"&&!oe.isValidElement(h)?h:{message:h};this.create({id:n,type:"error",description:v,...k})}else if(u instanceof Error){o=!1;let h=typeof t.error=="function"?await t.error(u):t.error,v=typeof t.description=="function"?await t.description(u):t.description,k=typeof h=="object"&&!oe.isValidElement(h)?h:{message:h};this.create({id:n,type:"error",description:v,...k})}else if(t.success!==void 0){o=!1;let h=typeof t.success=="function"?await t.success(u):t.success,v=typeof t.description=="function"?await t.description(u):t.description,k=typeof h=="object"&&!oe.isValidElement(h)?h:{message:h};this.create({id:n,type:"success",description:v,...k})}}).catch(async u=>{if(i=["reject",u],t.error!==void 0){o=!1;let m=typeof t.error=="function"?await t.error(u):t.error,h=typeof t.description=="function"?await t.description(u):t.description,g=typeof m=="object"&&!oe.isValidElement(m)?m:{message:m};this.create({id:n,type:"error",description:h,...g})}}).finally(()=>{o&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),a=()=>new Promise((u,m)=>l.then(()=>i[0]==="reject"?m(i[1]):u(i[1])).catch(m));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(r,t)=>{let n=t?.id||Xe++;return this.create({jsx:r(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},j=new We,Mr=(e,r)=>{let t=r?.id||Xe++;return j.addToast({title:e,...r,id:t}),t},Or=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Gr=Mr,Lr=()=>j.toasts,qr=()=>j.getActiveToasts(),wt=Object.assign(Gr,{success:j.success,info:j.info,warning:j.warning,error:j.error,custom:j.custom,message:j.message,promise:j.promise,dismiss:j.dismiss,loading:j.loading},{getHistory:Lr,getToasts:qr});Pr("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Et(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;rtypeof e=="boolean"?`${e}`:e===0?"0":e,At=ve,ge=(e,r)=>t=>{var n;if(r?.variants==null)return At(e,t?.class,t?.className);let{variants:s,defaultVariants:o}=r,i=Object.keys(s).map(u=>{let m=t?.[u],h=o?.[u];if(m===null)return null;let v=_t(m)||_t(h);return s[u][v]}),l=t&&Object.entries(t).reduce((u,m)=>{let[h,v]=m;return v===void 0||(u[h]=v),u},{}),a=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((u,m)=>{let{class:h,className:v,...g}=m;return Object.entries(g).every(k=>{let[A,D]=k;return Array.isArray(D)?D.includes({...o,...l}[A]):{...o,...l}[A]===D})?[...u,h,v]:u},[]);return At(e,i,a,t?.class,t?.className)};import*as jt from"react";import*as Kr from"react-dom";var ke={};ot(ke,{Root:()=>Vr,Slot:()=>Vr,Slottable:()=>$r,createSlot:()=>xe,createSlottable:()=>It});import*as _ from"react";import*as Ct from"react";function Dt(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Br(...e){return r=>{let t=!1,n=e.map(s=>{let o=Dt(s,r);return!t&&typeof o=="function"&&(t=!0),o});if(t)return()=>{for(let s=0;s{let{children:s,...o}=t,i=null,l=!1,a=[];Nt(s)&&typeof be=="function"&&(s=be(s._payload)),_.Children.forEach(s,v=>{if(Sr(v)){l=!0;let g=v,k="child"in g.props?g.props.child:g.props.children;Nt(k)&&typeof be=="function"&&(k=be(k._payload)),i=Xr(g,k),a.push(i?.props?.children)}else a.push(v)}),i?i=_.cloneElement(i,void 0,a):!l&&_.Children.count(s)===1&&_.isValidElement(s)&&(i=s);let u=i?Hr(i):void 0,m=Rt(n,u);if(!i){if(s||s===0)throw new Error(l?Zr(e):Yr(e));return s}let h=Wr(o,i.props??{});return i.type!==_.Fragment&&(h.ref=n?m:u),_.cloneElement(i,h)});return r.displayName=`${e}.Slot`,r}var Vr=xe("Slot"),Tt=Symbol.for("radix.slottable");function It(e){let r=t=>"child"in t?t.children(t.child):t.children;return r.displayName=`${e}.Slottable`,r.__radixId=Tt,r}var $r=It("Slottable"),Xr=(e,r)=>{if("child"in e.props){let t=e.props.child;return _.isValidElement(t)?_.cloneElement(t,void 0,e.props.children(t.props.children)):null}return _.isValidElement(r)?r:null};function Wr(e,r){let t={...r};for(let n in r){let s=e[n],o=r[n];/^on[A-Z]/.test(n)?s&&o?t[n]=(...l)=>{let a=o(...l);return s(...l),a}:s&&(t[n]=s):n==="style"?t[n]={...s,...o}:n==="className"&&(t[n]=[s,o].filter(Boolean).join(" "))}return{...e,...t}}function Hr(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function Sr(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tt}var Jr=Symbol.for("react.lazy");function Nt(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Jr&&"_payload"in e&&Ur(e._payload)}function Ur(e){return typeof e=="object"&&e!==null&&"then"in e}var Yr=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Zr=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,be=_[" use ".trim().toString()];import{jsx as Qr}from"react/jsx-runtime";var Fr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],zt=Fr.reduce((e,r)=>{let t=xe(`Primitive.${r}`),n=jt.forwardRef((s,o)=>{let{asChild:i,...l}=s,a=i?t:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Qr(a,{...l,ref:o})});return n.displayName=`Primitive.${r}`,{...e,[r]:n}},{});var we={};ot(we,{Label:()=>He,Root:()=>rn});import*as Pt from"react";import{jsx as en}from"react/jsx-runtime";var tn="Label",He=Pt.forwardRef((e,r)=>en(zt.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));He.displayName=tn;var rn=He;var nn=(e,r)=>{let t=new Array(e.length+r.length);for(let n=0;n({classGroupId:e,validator:r}),Vt=(e=new Map,r=null,t)=>({nextPart:e,validators:r,classGroupId:t}),Ae="-",Mt=[],on="arbitrary..",an=e=>{let r=ln(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return un(i);let l=i.split(Ae),a=l[0]===""&&l.length>1?1:0;return $t(l,a,r)},getConflictingClassGroupIds:(i,l)=>{if(l){let a=n[i],u=t[i];return a?u?nn(u,a):a:u||Mt}return t[i]||Mt}}},$t=(e,r,t)=>{if(e.length-r===0)return t.classGroupId;let s=e[r],o=t.nextPart.get(s);if(o){let u=$t(e,r+1,o);if(u)return u}let i=t.validators;if(i===null)return;let l=r===0?e.join(Ae):e.slice(r).join(Ae),a=i.length;for(let u=0;ue.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let r=e.slice(1,-1),t=r.indexOf(":"),n=r.slice(0,t);return n?on+n:void 0})(),ln=e=>{let{theme:r,classGroups:t}=e;return cn(t,r)},cn=(e,r)=>{let t=Vt();for(let n in e){let s=e[n];Ue(s,t,n,r)}return t},Ue=(e,r,t,n)=>{let s=e.length;for(let o=0;o{if(typeof e=="string"){pn(e,r,t);return}if(typeof e=="function"){dn(e,r,t,n);return}mn(e,r,t,n)},pn=(e,r,t)=>{let n=e===""?r:Xt(r,e);n.classGroupId=t},dn=(e,r,t,n)=>{if(hn(e)){Ue(e(n),r,t,n);return}r.validators===null&&(r.validators=[]),r.validators.push(sn(t,e))},mn=(e,r,t,n)=>{let s=Object.entries(e),o=s.length;for(let i=0;i{let t=e,n=r.split(Ae),s=n.length;for(let o=0;o"isThemeGetter"in e&&e.isThemeGetter===!0,yn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=Object.create(null),n=Object.create(null),s=(o,i)=>{t[o]=i,r++,r>e&&(r=0,n=t,t=Object.create(null))};return{get(o){let i=t[o];if(i!==void 0)return i;if((i=n[o])!==void 0)return s(o,i),i},set(o,i){o in t?t[o]=i:s(o,i)}}},Je="!",Ot=":",vn=[],Gt=(e,r,t,n,s)=>({modifiers:e,hasImportantModifier:r,baseClassName:t,maybePostfixModifierPosition:n,isExternal:s}),gn=e=>{let{prefix:r,experimentalParseClassName:t}=e,n=s=>{let o=[],i=0,l=0,a=0,u,m=s.length;for(let A=0;Aa?u-a:void 0;return Gt(o,g,v,k)};if(r){let s=r+Ot,o=n;n=i=>i.startsWith(s)?o(i.slice(s.length)):Gt(vn,!1,i,void 0,!0)}if(t){let s=n;n=o=>t({className:o,parseClassName:s})}return n},bn=e=>{let r=new Map;return e.orderSensitiveModifiers.forEach((t,n)=>{r.set(t,1e6+n)}),t=>{let n=[],s=[];for(let o=0;o0&&(s.sort(),n.push(...s),s=[]),n.push(i)):s.push(i)}return s.length>0&&(s.sort(),n.push(...s)),n}},xn=e=>({cache:yn(e.cacheSize),parseClassName:gn(e),sortModifiers:bn(e),postfixLookupClassGroupIds:kn(e),...an(e)}),kn=e=>{let r=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let n=0;n{let{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:s,sortModifiers:o,postfixLookupClassGroupIds:i}=r,l=[],a=e.trim().split(wn),u="";for(let m=a.length-1;m>=0;m-=1){let h=a[m],{isExternal:v,modifiers:g,hasImportantModifier:k,baseClassName:A,maybePostfixModifierPosition:D}=t(h);if(v){u=h+(u.length>0?" "+u:u);continue}let $=!!D,T;if($){let O=A.substring(0,D);T=n(O);let p=T&&i[T]?n(A):void 0;p&&p!==T&&(T=p,$=!1)}else T=n(A);if(!T){if(!$){u=h+(u.length>0?" "+u:u);continue}if(T=n(A),!T){u=h+(u.length>0?" "+u:u);continue}$=!1}let te=g.length===0?"":g.length===1?g[0]:o(g).join(":"),U=k?te+Je:te,Y=U+T;if(l.indexOf(Y)>-1)continue;l.push(Y);let Z=s(T,$);for(let O=0;O0?" "+u:u)}return u},_n=(...e)=>{let r=0,t,n,s="";for(;r{if(typeof e=="string")return e;let r,t="";for(let n=0;n{let t,n,s,o,i=a=>{let u=r.reduce((m,h)=>h(m),e());return t=xn(u),n=t.cache.get,s=t.cache.set,o=l,l(a)},l=a=>{let u=n(a);if(u)return u;let m=En(a,t);return s(a,m),m};return o=i,(...a)=>o(_n(...a))},Dn=[],x=e=>{let r=t=>t[e]||Dn;return r.isThemeGetter=!0,r},Ht=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,St=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Cn=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Rn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Tn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,In=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>Cn.test(e),y=e=>!!e&&!Number.isNaN(Number(e)),M=e=>!!e&&Number.isInteger(Number(e)),Se=e=>e.endsWith("%")&&y(e.slice(0,-1)),L=e=>Rn.test(e),Jt=()=>!0,zn=e=>Nn.test(e)&&!Tn.test(e),Ye=()=>!1,Pn=e=>In.test(e),Mn=e=>jn.test(e),On=e=>!c(e)&&!f(e),Gn=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Ln=e=>V(e,Zt,Ye),c=e=>Ht.test(e),H=e=>V(e,Kt,zn),Lt=e=>V(e,Sn,y),qn=e=>V(e,Ft,Jt),Bn=e=>V(e,Qt,Ye),qt=e=>V(e,Ut,Ye),Vn=e=>V(e,Yt,Mn),Ee=e=>V(e,er,Pn),f=e=>St.test(e),ae=e=>S(e,Kt),$n=e=>S(e,Qt),Bt=e=>S(e,Ut),Xn=e=>S(e,Zt),Wn=e=>S(e,Yt),_e=e=>S(e,er,!0),Hn=e=>S(e,Ft,!0),V=(e,r,t)=>{let n=Ht.exec(e);return n?n[1]?r(n[1]):t(n[2]):!1},S=(e,r,t=!1)=>{let n=St.exec(e);return n?n[1]?r(n[1]):t:!1},Ut=e=>e==="position"||e==="percentage",Yt=e=>e==="image"||e==="url",Zt=e=>e==="length"||e==="size"||e==="bg-size",Kt=e=>e==="length",Sn=e=>e==="number",Qt=e=>e==="family-name",Ft=e=>e==="number"||e==="weight",er=e=>e==="shadow";var Jn=()=>{let e=x("color"),r=x("font"),t=x("text"),n=x("font-weight"),s=x("tracking"),o=x("leading"),i=x("breakpoint"),l=x("container"),a=x("spacing"),u=x("radius"),m=x("shadow"),h=x("inset-shadow"),v=x("text-shadow"),g=x("drop-shadow"),k=x("blur"),A=x("perspective"),D=x("aspect"),$=x("ease"),T=x("animate"),te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Y=()=>[...U(),f,c],Z=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],p=()=>[f,c,a],I=()=>[B,"full","auto",...p()],Qe=()=>[M,"none","subgrid",f,c],Fe=()=>["auto",{span:["full",M,f,c]},M,f,c],ue=()=>[M,"auto",f,c],et=()=>["auto","min","max","fr",f,c],Ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...p()],X=()=>[B,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...p()],Re=()=>[B,"screen","full","dvw","lvw","svw","min","max","fit",...p()],Ne=()=>[B,"screen","full","lh","dvh","lvh","svh","min","max","fit",...p()],d=()=>[e,f,c],tt=()=>[...U(),Bt,qt,{position:[f,c]}],rt=()=>["no-repeat",{repeat:["","x","y","space","round"]}],nt=()=>["auto","cover","contain",Xn,Ln,{size:[f,c]}],Te=()=>[Se,ae,H],C=()=>["","none","full",u,f,c],R=()=>["",y,ae,H],le=()=>["solid","dashed","dotted","double"],st=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],w=()=>[y,Se,Bt,qt],it=()=>["","none",k,f,c],ce=()=>["none",y,f,c],fe=()=>["none",y,f,c],Ie=()=>[y,f,c],pe=()=>[B,"full",...p()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[L],breakpoint:[L],color:[Jt],container:[L],"drop-shadow":[L],ease:["in","out","in-out"],font:[On],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[L],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[L],shadow:[L],spacing:["px",y],text:[L],"text-shadow":[L],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",B,c,f,D]}],container:["container"],"container-type":[{"@container":["","normal","size",f,c]}],"container-named":[Gn],columns:[{columns:[y,c,f,l]}],"break-after":[{"break-after":te()}],"break-before":[{"break-before":te()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Y()}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[M,"auto",f,c]}],basis:[{basis:[B,"full","auto",l,...p()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[y,B,"auto","initial","none",c]}],grow:[{grow:["",y,f,c]}],shrink:[{shrink:["",y,f,c]}],order:[{order:[M,"first","last","none",f,c]}],"grid-cols":[{"grid-cols":Qe()}],"col-start-end":[{col:Fe()}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":Qe()}],"row-start-end":[{row:Fe()}],"row-start":[{"row-start":ue()}],"row-end":[{"row-end":ue()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":et()}],"auto-rows":[{"auto-rows":et()}],gap:[{gap:p()}],"gap-x":[{"gap-x":p()}],"gap-y":[{"gap-y":p()}],"justify-content":[{justify:[...Ce(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...Ce()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ce()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:p()}],px:[{px:p()}],py:[{py:p()}],ps:[{ps:p()}],pe:[{pe:p()}],pbs:[{pbs:p()}],pbe:[{pbe:p()}],pt:[{pt:p()}],pr:[{pr:p()}],pb:[{pb:p()}],pl:[{pl:p()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":p()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":p()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...Re()]}],"min-inline-size":[{"min-inline":["auto",...Re()]}],"max-inline-size":[{"max-inline":["none",...Re()]}],"block-size":[{block:["auto",...Ne()]}],"min-block-size":[{"min-block":["auto",...Ne()]}],"max-block-size":[{"max-block":["none",...Ne()]}],w:[{w:[l,"screen",...X()]}],"min-w":[{"min-w":[l,"screen","none",...X()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",t,ae,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Hn,qn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Se,c]}],"font-family":[{font:[$n,Bn,r]}],"font-features":[{"font-features":[c]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,f,c]}],"line-clamp":[{"line-clamp":[y,"none",f,Lt]}],leading:[{leading:[o,...p()]}],"list-image":[{"list-image":["none",f,c]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",f,c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:d()}],"text-color":[{text:d()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[y,"from-font","auto",f,H]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[y,"auto",f,c]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"tab-size":[{tab:[M,f,c]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f,c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",f,c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:tt()}],"bg-repeat":[{bg:rt()}],"bg-size":[{bg:nt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},M,f,c],radial:["",f,c],conic:[M,f,c]},Wn,Vn]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:Te()}],"gradient-via-pos":[{via:Te()}],"gradient-to-pos":[{to:Te()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:C()}],"rounded-s":[{"rounded-s":C()}],"rounded-e":[{"rounded-e":C()}],"rounded-t":[{"rounded-t":C()}],"rounded-r":[{"rounded-r":C()}],"rounded-b":[{"rounded-b":C()}],"rounded-l":[{"rounded-l":C()}],"rounded-ss":[{"rounded-ss":C()}],"rounded-se":[{"rounded-se":C()}],"rounded-ee":[{"rounded-ee":C()}],"rounded-es":[{"rounded-es":C()}],"rounded-tl":[{"rounded-tl":C()}],"rounded-tr":[{"rounded-tr":C()}],"rounded-br":[{"rounded-br":C()}],"rounded-bl":[{"rounded-bl":C()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:d()}],"border-color-x":[{"border-x":d()}],"border-color-y":[{"border-y":d()}],"border-color-s":[{"border-s":d()}],"border-color-e":[{"border-e":d()}],"border-color-bs":[{"border-bs":d()}],"border-color-be":[{"border-be":d()}],"border-color-t":[{"border-t":d()}],"border-color-r":[{"border-r":d()}],"border-color-b":[{"border-b":d()}],"border-color-l":[{"border-l":d()}],"divide-color":[{divide:d()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[y,f,c]}],"outline-w":[{outline:["",y,ae,H]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",m,_e,Ee]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",h,_e,Ee]}],"inset-shadow-color":[{"inset-shadow":d()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[y,H]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",v,_e,Ee]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[y,f,c]}],"mix-blend":[{"mix-blend":[...st(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":st()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[y]}],"mask-image-linear-from-pos":[{"mask-linear-from":w()}],"mask-image-linear-to-pos":[{"mask-linear-to":w()}],"mask-image-linear-from-color":[{"mask-linear-from":d()}],"mask-image-linear-to-color":[{"mask-linear-to":d()}],"mask-image-t-from-pos":[{"mask-t-from":w()}],"mask-image-t-to-pos":[{"mask-t-to":w()}],"mask-image-t-from-color":[{"mask-t-from":d()}],"mask-image-t-to-color":[{"mask-t-to":d()}],"mask-image-r-from-pos":[{"mask-r-from":w()}],"mask-image-r-to-pos":[{"mask-r-to":w()}],"mask-image-r-from-color":[{"mask-r-from":d()}],"mask-image-r-to-color":[{"mask-r-to":d()}],"mask-image-b-from-pos":[{"mask-b-from":w()}],"mask-image-b-to-pos":[{"mask-b-to":w()}],"mask-image-b-from-color":[{"mask-b-from":d()}],"mask-image-b-to-color":[{"mask-b-to":d()}],"mask-image-l-from-pos":[{"mask-l-from":w()}],"mask-image-l-to-pos":[{"mask-l-to":w()}],"mask-image-l-from-color":[{"mask-l-from":d()}],"mask-image-l-to-color":[{"mask-l-to":d()}],"mask-image-x-from-pos":[{"mask-x-from":w()}],"mask-image-x-to-pos":[{"mask-x-to":w()}],"mask-image-x-from-color":[{"mask-x-from":d()}],"mask-image-x-to-color":[{"mask-x-to":d()}],"mask-image-y-from-pos":[{"mask-y-from":w()}],"mask-image-y-to-pos":[{"mask-y-to":w()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[f,c]}],"mask-image-radial-from-pos":[{"mask-radial-from":w()}],"mask-image-radial-to-pos":[{"mask-radial-to":w()}],"mask-image-radial-from-color":[{"mask-radial-from":d()}],"mask-image-radial-to-color":[{"mask-radial-to":d()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":U()}],"mask-image-conic-pos":[{"mask-conic":[y]}],"mask-image-conic-from-pos":[{"mask-conic-from":w()}],"mask-image-conic-to-pos":[{"mask-conic-to":w()}],"mask-image-conic-from-color":[{"mask-conic-from":d()}],"mask-image-conic-to-color":[{"mask-conic-to":d()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:tt()}],"mask-repeat":[{mask:rt()}],"mask-size":[{mask:nt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",f,c]}],filter:[{filter:["","none",f,c]}],blur:[{blur:it()}],brightness:[{brightness:[y,f,c]}],contrast:[{contrast:[y,f,c]}],"drop-shadow":[{"drop-shadow":["","none",g,_e,Ee]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",y,f,c]}],"hue-rotate":[{"hue-rotate":[y,f,c]}],invert:[{invert:["",y,f,c]}],saturate:[{saturate:[y,f,c]}],sepia:[{sepia:["",y,f,c]}],"backdrop-filter":[{"backdrop-filter":["","none",f,c]}],"backdrop-blur":[{"backdrop-blur":it()}],"backdrop-brightness":[{"backdrop-brightness":[y,f,c]}],"backdrop-contrast":[{"backdrop-contrast":[y,f,c]}],"backdrop-grayscale":[{"backdrop-grayscale":["",y,f,c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y,f,c]}],"backdrop-invert":[{"backdrop-invert":["",y,f,c]}],"backdrop-opacity":[{"backdrop-opacity":[y,f,c]}],"backdrop-saturate":[{"backdrop-saturate":[y,f,c]}],"backdrop-sepia":[{"backdrop-sepia":["",y,f,c]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":p()}],"border-spacing-x":[{"border-spacing-x":p()}],"border-spacing-y":[{"border-spacing-y":p()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",f,c]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[y,"initial",f,c]}],ease:[{ease:["linear","initial",$,f,c]}],delay:[{delay:[y,f,c]}],animate:[{animate:["none",T,f,c]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,f,c]}],"perspective-origin":[{"perspective-origin":Y()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":["scale-3d"],skew:[{skew:Ie()}],"skew-x":[{"skew-x":Ie()}],"skew-y":[{"skew-y":Ie()}],transform:[{transform:[f,c,"","none","gpu","cpu"]}],"transform-origin":[{origin:Y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],zoom:[{zoom:[M,f,c]}],accent:[{accent:d()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:d()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f,c]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":d()}],"scrollbar-track-color":[{"scrollbar-track":d()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mbs":[{"scroll-mbs":p()}],"scroll-mbe":[{"scroll-mbe":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pbs":[{"scroll-pbs":p()}],"scroll-pbe":[{"scroll-pbe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",f,c]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[y,ae,H,Lt]}],stroke:[{stroke:["none",...d()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var tr=An(Jn);function b(...e){return tr(ve(e))}import{jsx as Yn}from"react/jsx-runtime";var Un=ge("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ze({className:e,variant:r="default",size:t="default",asChild:n=!1,...s}){let o=n?ke.Root:"button";return Yn(o,{"data-slot":"button","data-variant":r,"data-size":t,className:b(Un({variant:r,size:t,className:e})),...s})}import{jsx as ee}from"react/jsx-runtime";function rr({className:e,...r}){return ee("div",{"data-slot":"card",className:b("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...r})}function nr({className:e,...r}){return ee("div",{"data-slot":"card-header",className:b("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...r})}function sr({className:e,...r}){return ee("div",{"data-slot":"card-title",className:b("leading-none font-semibold",e),...r})}function ir({className:e,...r}){return ee("div",{"data-slot":"card-description",className:b("text-sm text-muted-foreground",e),...r})}function or({className:e,...r}){return ee("div",{"data-slot":"card-content",className:b("px-6",e),...r})}function ar({className:e,...r}){return ee("div",{"data-slot":"card-footer",className:b("flex items-center px-6 [.border-t]:pt-6",e),...r})}import{useMemo as Kn}from"react";import{jsx as Zn}from"react/jsx-runtime";function ur({className:e,...r}){return Zn(we.Root,{"data-slot":"label",className:b("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}import{jsx as Bs}from"react/jsx-runtime";import{jsx as J,jsxs as Ys}from"react/jsx-runtime";function lr({className:e,...r}){return J("div",{"data-slot":"field-group",className:b("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...r})}var Qn=ge("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function Ke({className:e,orientation:r="vertical",...t}){return J("div",{role:"group","data-slot":"field","data-orientation":r,className:b(Qn({orientation:r}),e),...t})}function cr({className:e,...r}){return J(ur,{"data-slot":"field-label",className:b("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 dark:has-data-[state=checked]:bg-primary/10",e),...r})}function fr({className:e,...r}){return J("p",{"data-slot":"field-description",className:b("text-sm leading-normal font-normal text-muted-foreground group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})}function pr({className:e,children:r,errors:t,...n}){let s=Kn(()=>{if(r)return r;if(!t?.length)return null;let o=[...new Map(t.map(i=>[i?.message,i])).values()];return o?.length==1?o[0]?.message:J("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:o.map((i,l)=>i?.message&&J("li",{children:i.message},l))})},[r,t]);return s?J("div",{role:"alert","data-slot":"field-error",className:b("text-sm font-normal text-destructive",e),...n,children:s}):null}import{jsx as Fn}from"react/jsx-runtime";function dr({className:e,...r}){return Fn("textarea",{"data-slot":"textarea",className:b("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",e),...r})}import{jsx as N,jsxs as De}from"react/jsx-runtime";var es=Oe({about:lt(Ge(),Pe(10,"Please provide at least 10 characters."),ze(200,"Please keep it under 200 characters."))});function ts(){let e=bt({schema:es,initialInput:{about:""}});return De(rr,{className:"w-full sm:max-w-md",children:[De(nr,{children:[N(sr,{children:"Personalization"}),N(ir,{children:"Customize your experience by telling us more about yourself."})]}),N(or,{children:N(kt,{of:e,id:"form-formisch-textarea",onSubmit:t=>{wt("You submitted the following values:",{description:N("pre",{className:"mt-2 w-[320px] overflow-x-auto rounded-md bg-code p-4 text-code-foreground",children:N("code",{children:JSON.stringify(t,null,2)})}),position:"bottom-right",classNames:{content:"flex flex-col gap-2"},style:{"--border-radius":"calc(var(--radius) + 4px)"}})},children:N(lr,{children:N(xt,{of:e,path:["about"],children:t=>De(Ke,{"data-invalid":t.errors!==null,children:[N(cr,{htmlFor:"form-formisch-textarea-about",children:"More about you"}),N(dr,{...t.props,id:"form-formisch-textarea-about",value:t.input??"","aria-invalid":t.errors!==null,placeholder:"I'm a software engineer...",className:"min-h-[120px]"}),N(fr,{children:"Tell us more about yourself. This will be used to help us personalize your experience."}),t.errors&&N(pr,{errors:t.errors.map(n=>({message:n}))})]})})})})}),N(ar,{children:De(Ke,{orientation:"horizontal",children:[N(Ze,{type:"button",variant:"outline",onClick:()=>vt(e),children:"Reset"}),N(Ze,{type:"submit",form:"form-formisch-textarea",children:"Save"})]})})]})}export{ts as default}; diff --git a/b/91caf95056fd228075d1ee0af09686a61dae6b7510ba2f01884acffd870762e4 b/b/91caf95056fd228075d1ee0af09686a61dae6b7510ba2f01884acffd870762e4 new file mode 100644 index 0000000000000000000000000000000000000000..da632c87f0f4278ee4db4c7d7359088a478c57c3 --- /dev/null +++ b/b/91caf95056fd228075d1ee0af09686a61dae6b7510ba2f01884acffd870762e4 @@ -0,0 +1,55 @@ +"use client";var $w=Object.create;var ql=Object.defineProperty;var Kw=Object.getOwnPropertyDescriptor;var Gw=Object.getOwnPropertyNames;var Yw=Object.getPrototypeOf,qw=Object.prototype.hasOwnProperty;var Fi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hw=(e,t)=>{for(var r in t)ql(e,r,{get:t[r],enumerable:!0})},Xw=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Gw(t))!qw.call(e,o)&&o!==r&&ql(e,o,{get:()=>t[o],enumerable:!(n=Kw(t,o))||n.enumerable});return e};var Wi=(e,t,r)=>(r=e!=null?$w(Yw(e)):{},Xw(t||!e||!e.__esModule?ql(r,"default",{value:e,enumerable:!0}):r,e));var Pu=Fi((Mv,Ka)=>{(function(e){"use strict";var t=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},n=!0,o="[DecimalError] ",i=o+"Invalid argument: ",a=o+"Exponent out of range: ",s=Math.floor,l=Math.pow,c=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,f,u=1e7,d=7,m=9007199254740991,h=s(m/d),p={};p.absoluteValue=p.abs=function(){var g=new this.constructor(this);return g.s&&(g.s=1),g},p.comparedTo=p.cmp=function(g){var b,O,w,y,S=this;if(g=new S.constructor(g),S.s!==g.s)return S.s||-g.s;if(S.e!==g.e)return S.e>g.e^S.s<0?1:-1;for(w=S.d.length,y=g.d.length,b=0,O=wg.d[b]^S.s<0?1:-1;return w===y?0:w>y^S.s<0?1:-1},p.decimalPlaces=p.dp=function(){var g=this,b=g.d.length-1,O=(b-g.e)*d;if(b=g.d[b],b)for(;b%10==0;b/=10)O--;return O<0?0:O},p.dividedBy=p.div=function(g){return P(this,new this.constructor(g))},p.dividedToIntegerBy=p.idiv=function(g){var b=this,O=b.constructor;return j(P(b,new O(g),0,1),O.precision)},p.equals=p.eq=function(g){return!this.cmp(g)},p.exponent=function(){return E(this)},p.greaterThan=p.gt=function(g){return this.cmp(g)>0},p.greaterThanOrEqualTo=p.gte=function(g){return this.cmp(g)>=0},p.isInteger=p.isint=function(){return this.e>this.d.length-2},p.isNegative=p.isneg=function(){return this.s<0},p.isPositive=p.ispos=function(){return this.s>0},p.isZero=function(){return this.s===0},p.lessThan=p.lt=function(g){return this.cmp(g)<0},p.lessThanOrEqualTo=p.lte=function(g){return this.cmp(g)<1},p.logarithm=p.log=function(g){var b,O=this,w=O.constructor,y=w.precision,S=y+5;if(g===void 0)g=new w(10);else if(g=new w(g),g.s<1||g.eq(f))throw Error(o+"NaN");if(O.s<1)throw Error(o+(O.s?"NaN":"-Infinity"));return O.eq(f)?new w(0):(n=!1,b=P(I(O,S),I(g,S),S),n=!0,j(b,y))},p.minus=p.sub=function(g){var b=this;return g=new b.constructor(g),b.s==g.s?Y(b,g):x(b,(g.s=-g.s,g))},p.modulo=p.mod=function(g){var b,O=this,w=O.constructor,y=w.precision;if(g=new w(g),!g.s)throw Error(o+"NaN");return O.s?(n=!1,b=P(O,g,0,1).times(g),n=!0,O.minus(b)):j(new w(O),y)},p.naturalExponential=p.exp=function(){return C(this)},p.naturalLogarithm=p.ln=function(){return I(this)},p.negated=p.neg=function(){var g=new this.constructor(this);return g.s=-g.s||0,g},p.plus=p.add=function(g){var b=this;return g=new b.constructor(g),b.s==g.s?x(b,g):Y(b,(g.s=-g.s,g))},p.precision=p.sd=function(g){var b,O,w,y=this;if(g!==void 0&&g!==!!g&&g!==1&&g!==0)throw Error(i+g);if(b=E(y)+1,w=y.d.length-1,O=w*d+1,w=y.d[w],w){for(;w%10==0;w/=10)O--;for(w=y.d[0];w>=10;w/=10)O++}return g&&b>O?b:O},p.squareRoot=p.sqrt=function(){var g,b,O,w,y,S,M,D=this,L=D.constructor;if(D.s<1){if(!D.s)return new L(0);throw Error(o+"NaN")}for(g=E(D),n=!1,y=Math.sqrt(+D),y==0||y==1/0?(b=A(D.d),(b.length+g)%2==0&&(b+="0"),y=Math.sqrt(b),g=s((g+1)/2)-(g<0||g%2),y==1/0?b="5e"+g:(b=y.toExponential(),b=b.slice(0,b.indexOf("e")+1)+g),w=new L(b)):w=new L(y.toString()),O=L.precision,y=M=O+3;;)if(S=w,w=S.plus(P(D,S,M+2)).times(.5),A(S.d).slice(0,M)===(b=A(w.d)).slice(0,M)){if(b=b.slice(M-3,M+1),y==M&&b=="4999"){if(j(S,O+1,0),S.times(S).eq(D)){w=S;break}}else if(b!="9999")break;M+=4}return n=!0,j(w,O)},p.times=p.mul=function(g){var b,O,w,y,S,M,D,L,W,F=this,$=F.constructor,he=F.d,R=(g=new $(g)).d;if(!F.s||!g.s)return new $(0);for(g.s*=F.s,O=F.e+g.e,L=he.length,W=R.length,L=0;){for(b=0,y=L+w;y>w;)D=S[y]+R[w]*he[y-w-1]+b,S[y--]=D%u|0,b=D/u|0;S[y]=(S[y]+b)%u|0}for(;!S[--M];)S.pop();return b?++O:S.shift(),g.d=S,g.e=O,n?j(g,$.precision):g},p.toDecimalPlaces=p.todp=function(g,b){var O=this,w=O.constructor;return O=new w(O),g===void 0?O:(v(g,0,t),b===void 0?b=w.rounding:v(b,0,8),j(O,g+E(O)+1,b))},p.toExponential=function(g,b){var O,w=this,y=w.constructor;return g===void 0?O=B(w,!0):(v(g,0,t),b===void 0?b=y.rounding:v(b,0,8),w=j(new y(w),g+1,b),O=B(w,!0,g+1)),O},p.toFixed=function(g,b){var O,w,y=this,S=y.constructor;return g===void 0?B(y):(v(g,0,t),b===void 0?b=S.rounding:v(b,0,8),w=j(new S(y),g+E(y)+1,b),O=B(w.abs(),!1,g+E(w)+1),y.isneg()&&!y.isZero()?"-"+O:O)},p.toInteger=p.toint=function(){var g=this,b=g.constructor;return j(new b(g),E(g)+1,b.rounding)},p.toNumber=function(){return+this},p.toPower=p.pow=function(g){var b,O,w,y,S,M,D=this,L=D.constructor,W=12,F=+(g=new L(g));if(!g.s)return new L(f);if(D=new L(D),!D.s){if(g.s<1)throw Error(o+"Infinity");return D}if(D.eq(f))return D;if(w=L.precision,g.eq(f))return j(D,w);if(b=g.e,O=g.d.length-1,M=b>=O,S=D.s,M){if((O=F<0?-F:F)<=m){for(y=new L(f),b=Math.ceil(w/d+4),n=!1;O%2&&(y=y.times(D),X(y.d,b)),O=s(O/2),O!==0;)D=D.times(D),X(D.d,b);return n=!0,g.s<0?new L(f).div(y):j(y,w)}}else if(S<0)throw Error(o+"NaN");return S=S<0&&g.d[Math.max(b,O)]&1?-1:1,D.s=1,n=!1,y=g.times(I(D,w+W)),n=!0,y=C(y),y.s=S,y},p.toPrecision=function(g,b){var O,w,y=this,S=y.constructor;return g===void 0?(O=E(y),w=B(y,O<=S.toExpNeg||O>=S.toExpPos)):(v(g,1,t),b===void 0?b=S.rounding:v(b,0,8),y=j(new S(y),g,b),O=E(y),w=B(y,g<=O||O<=S.toExpNeg,g)),w},p.toSignificantDigits=p.tosd=function(g,b){var O=this,w=O.constructor;return g===void 0?(g=w.precision,b=w.rounding):(v(g,1,t),b===void 0?b=w.rounding:v(b,0,8)),j(new w(O),g,b)},p.toString=p.valueOf=p.val=p.toJSON=function(){var g=this,b=E(g),O=g.constructor;return B(g,b<=O.toExpNeg||b>=O.toExpPos)};function x(g,b){var O,w,y,S,M,D,L,W,F=g.constructor,$=F.precision;if(!g.s||!b.s)return b.s||(b=new F(g)),n?j(b,$):b;if(L=g.d,W=b.d,M=g.e,y=b.e,L=L.slice(),S=M-y,S){for(S<0?(w=L,S=-S,D=W.length):(w=W,y=M,D=L.length),M=Math.ceil($/d),D=M>D?M+1:D+1,S>D&&(S=D,w.length=1),w.reverse();S--;)w.push(0);w.reverse()}for(D=L.length,S=W.length,D-S<0&&(S=D,w=W,W=L,L=w),O=0;S;)O=(L[--S]=L[S]+W[S]+O)/u|0,L[S]%=u;for(O&&(L.unshift(O),++y),D=L.length;L[--D]==0;)L.pop();return b.d=L,b.e=y,n?j(b,$):b}function v(g,b,O){if(g!==~~g||gO)throw Error(i+g)}function A(g){var b,O,w,y=g.length-1,S="",M=g[0];if(y>0){for(S+=M,b=1;bM?1:-1;else for(D=L=0;Dy[D]?1:-1;break}return L}function O(w,y,S){for(var M=0;S--;)w[S]-=M,M=w[S]1;)w.shift()}return function(w,y,S,M){var D,L,W,F,$,he,R,V,U,N,be,Q,Ue,Fe,St,_n,Rt,zi,Bi=w.constructor,Uw=w.s==y.s?1:-1,Ft=w.d,_e=y.d;if(!w.s)return new Bi(w);if(!y.s)throw Error(o+"Division by zero");for(L=w.e-y.e,Rt=_e.length,St=Ft.length,R=new Bi(Uw),V=R.d=[],W=0;_e[W]==(Ft[W]||0);)++W;if(_e[W]>(Ft[W]||0)&&--L,S==null?Q=S=Bi.precision:M?Q=S+(E(w)-E(y))+1:Q=S,Q<0)return new Bi(0);if(Q=Q/d+2|0,W=0,Rt==1)for(F=0,_e=_e[0],Q++;(W1&&(_e=g(_e,F),Ft=g(Ft,F),Rt=_e.length,St=Ft.length),Fe=Rt,U=Ft.slice(0,Rt),N=U.length;N=u/2&&++_n;do F=0,D=b(_e,U,Rt,N),D<0?(be=U[0],Rt!=N&&(be=be*u+(U[1]||0)),F=be/_n|0,F>1?(F>=u&&(F=u-1),$=g(_e,F),he=$.length,N=U.length,D=b($,U,he,N),D==1&&(F--,O($,Rt16)throw Error(a+E(g));if(!g.s)return new F(f);for(b==null?(n=!1,D=$):D=b,M=new F(.03125);g.abs().gte(.1);)g=g.times(M),W+=5;for(w=Math.log(l(2,W))/Math.LN10*2+5|0,D+=w,O=y=S=new F(f),F.precision=D;;){if(y=j(y.times(g),D),O=O.times(++L),M=S.plus(P(y,O,D)),A(M.d).slice(0,D)===A(S.d).slice(0,D)){for(;W--;)S=j(S.times(S),D);return F.precision=$,b==null?(n=!0,j(S,$)):S}S=M}}function E(g){for(var b=g.e*d,O=g.d[0];O>=10;O/=10)b++;return b}function k(g,b,O){if(b>g.LN10.sd())throw n=!0,O&&(g.precision=O),Error(o+"LN10 precision limit exceeded");return j(new g(g.LN10),b)}function T(g){for(var b="";g--;)b+="0";return b}function I(g,b){var O,w,y,S,M,D,L,W,F,$=1,he=10,R=g,V=R.d,U=R.constructor,N=U.precision;if(R.s<1)throw Error(o+(R.s?"NaN":"-Infinity"));if(R.eq(f))return new U(0);if(b==null?(n=!1,W=N):W=b,R.eq(10))return b==null&&(n=!0),k(U,W);if(W+=he,U.precision=W,O=A(V),w=O.charAt(0),S=E(R),Math.abs(S)<15e14){for(;w<7&&w!=1||w==1&&O.charAt(1)>3;)R=R.times(g),O=A(R.d),w=O.charAt(0),$++;S=E(R),w>1?(R=new U("0."+O),S++):R=new U(w+"."+O.slice(1))}else return L=k(U,W+2,N).times(S+""),R=I(new U(w+"."+O.slice(1)),W-he).plus(L),U.precision=N,b==null?(n=!0,j(R,N)):R;for(D=M=R=P(R.minus(f),R.plus(f),W),F=j(R.times(R),W),y=3;;){if(M=j(M.times(F),W),L=D.plus(P(M,new U(y),W)),A(L.d).slice(0,W)===A(D.d).slice(0,W))return D=D.times(2),S!==0&&(D=D.plus(k(U,W+2,N).times(S+""))),D=P(D,new U($),W),U.precision=N,b==null?(n=!0,j(D,N)):D;D=L,y+=2}}function z(g,b){var O,w,y;for((O=b.indexOf("."))>-1&&(b=b.replace(".","")),(w=b.search(/e/i))>0?(O<0&&(O=w),O+=+b.slice(w+1),b=b.substring(0,w)):O<0&&(O=b.length),w=0;b.charCodeAt(w)===48;)++w;for(y=b.length;b.charCodeAt(y-1)===48;)--y;if(b=b.slice(w,y),b){if(y-=w,O=O-w-1,g.e=s(O/d),g.d=[],w=(O+1)%d,O<0&&(w+=d),wh||g.e<-h))throw Error(a+O)}else g.s=0,g.e=0,g.d=[0];return g}function j(g,b,O){var w,y,S,M,D,L,W,F,$=g.d;for(M=1,S=$[0];S>=10;S/=10)M++;if(w=b-M,w<0)w+=d,y=b,W=$[F=0];else{if(F=Math.ceil((w+1)/d),S=$.length,F>=S)return g;for(W=S=$[F],M=1;S>=10;S/=10)M++;w%=d,y=w-d+M}if(O!==void 0&&(S=l(10,M-y-1),D=W/S%10|0,L=b<0||$[F+1]!==void 0||W%S,L=O<4?(D||L)&&(O==0||O==(g.s<0?3:2)):D>5||D==5&&(O==4||L||O==6&&(w>0?y>0?W/l(10,M-y):0:$[F-1])%10&1||O==(g.s<0?8:7))),b<1||!$[0])return L?(S=E(g),$.length=1,b=b-S-1,$[0]=l(10,(d-b%d)%d),g.e=s(-b/d)||0):($.length=1,$[0]=g.e=g.s=0),g;if(w==0?($.length=F,S=1,F--):($.length=F+1,S=l(10,d-w),$[F]=y>0?(W/l(10,M-y)%l(10,y)|0)*S:0),L)for(;;)if(F==0){($[0]+=S)==u&&($[0]=1,++g.e);break}else{if($[F]+=S,$[F]!=u)break;$[F--]=0,S=1}for(w=$.length;$[--w]===0;)$.pop();if(n&&(g.e>h||g.e<-h))throw Error(a+E(g));return g}function Y(g,b){var O,w,y,S,M,D,L,W,F,$,he=g.constructor,R=he.precision;if(!g.s||!b.s)return b.s?b.s=-b.s:b=new he(g),n?j(b,R):b;if(L=g.d,$=b.d,w=b.e,W=g.e,L=L.slice(),M=W-w,M){for(F=M<0,F?(O=L,M=-M,D=$.length):(O=$,w=W,D=L.length),y=Math.max(Math.ceil(R/d),D)+2,M>y&&(M=y,O.length=1),O.reverse(),y=M;y--;)O.push(0);O.reverse()}else{for(y=L.length,D=$.length,F=y0;--y)L[D++]=0;for(y=$.length;y>M;){if(L[--y]<$[y]){for(S=y;S&&L[--S]===0;)L[S]=u-1;--L[S],L[y]+=u}L[y]-=$[y]}for(;L[--D]===0;)L.pop();for(;L[0]===0;L.shift())--w;return L[0]?(b.d=L,b.e=w,n?j(b,R):b):new he(0)}function B(g,b,O){var w,y=E(g),S=A(g.d),M=S.length;return b?(O&&(w=O-M)>0?S=S.charAt(0)+"."+S.slice(1)+T(w):M>1&&(S=S.charAt(0)+"."+S.slice(1)),S=S+(y<0?"e":"e+")+y):y<0?(S="0."+T(-y-1)+S,O&&(w=O-M)>0&&(S+=T(w))):y>=M?(S+=T(y+1-M),O&&(w=O-y-1)>0&&(S=S+"."+T(w))):((w=y+1)0&&(y+1===M&&(S+="."),S+=T(w))),g.s<0?"-"+S:S}function X(g,b){if(g.length>b)return g.length=b,!0}function H(g){var b,O,w;function y(S){var M=this;if(!(M instanceof y))return new y(S);if(M.constructor=y,S instanceof y){M.s=S.s,M.e=S.e,M.d=(S=S.d)?S.slice():S;return}if(typeof S=="number"){if(S*0!==0)throw Error(i+S);if(S>0)M.s=1;else if(S<0)S=-S,M.s=-1;else{M.s=0,M.e=0,M.d=[0];return}if(S===~~S&&S<1e7){M.e=0,M.d=[S];return}return z(M,S.toString())}else if(typeof S!="string")throw Error(i+S);if(S.charCodeAt(0)===45?(S=S.slice(1),M.s=-1):M.s=1,c.test(S))z(M,S);else throw Error(i+S)}if(y.prototype=p,y.ROUND_UP=0,y.ROUND_DOWN=1,y.ROUND_CEIL=2,y.ROUND_FLOOR=3,y.ROUND_HALF_UP=4,y.ROUND_HALF_DOWN=5,y.ROUND_HALF_EVEN=6,y.ROUND_HALF_CEIL=7,y.ROUND_HALF_FLOOR=8,y.clone=H,y.config=y.set=re,g===void 0&&(g={}),g)for(w=["precision","rounding","toExpNeg","toExpPos","LN10"],b=0;b=y[b+1]&&w<=y[b+2])this[O]=w;else throw Error(i+O+": "+w);if((w=g[O="LN10"])!==void 0)if(w==Math.LN10)this[O]=new this(w);else throw Error(i+O+": "+w);return this}r=H(r),r.default=r.Decimal=r,f=new r(1),typeof define=="function"&&define.amd?define(function(){return r}):typeof Ka<"u"&&Ka.exports?Ka.exports=r:(e||(e=typeof self<"u"&&self&&self.self==self?self:Function("return this")()),e.Decimal=r)})(Mv)});var px=Fi((p5,dd)=>{"use strict";var j_=Object.prototype.hasOwnProperty,at="~";function wi(){}Object.create&&(wi.prototype=Object.create(null),new wi().__proto__||(at=!1));function L_(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function dx(e,t,r,n,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var i=new L_(r,n||e,o),a=at?at+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],i]:e._events[a].push(i):(e._events[a]=i,e._eventsCount++),e}function sl(e,t){--e._eventsCount===0?e._events=new wi:delete e._events[t]}function Je(){this._events=new wi,this._eventsCount=0}Je.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)j_.call(r,n)&&t.push(at?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Je.prototype.listeners=function(t){var r=at?at+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o{"use strict";var wd=Symbol.for("react.transitional.element"),Sd=Symbol.for("react.portal"),hl=Symbol.for("react.fragment"),vl=Symbol.for("react.strict_mode"),gl=Symbol.for("react.profiler"),yl=Symbol.for("react.consumer"),xl=Symbol.for("react.context"),bl=Symbol.for("react.forward_ref"),wl=Symbol.for("react.suspense"),Sl=Symbol.for("react.suspense_list"),Al=Symbol.for("react.memo"),Pl=Symbol.for("react.lazy"),QI=Symbol.for("react.view_transition"),eT=Symbol.for("react.client.reference");function Mt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case wd:switch(e=e.type,e){case hl:case gl:case vl:case wl:case Sl:case QI:return e;default:switch(e=e&&e.$$typeof,e){case xl:case bl:case Pl:case Al:return e;case yl:return e;default:return t}}case Sd:return t}}}me.ContextConsumer=yl;me.ContextProvider=xl;me.Element=wd;me.ForwardRef=bl;me.Fragment=hl;me.Lazy=Pl;me.Memo=Al;me.Portal=Sd;me.Profiler=gl;me.StrictMode=vl;me.Suspense=wl;me.SuspenseList=Sl;me.isContextConsumer=function(e){return Mt(e)===yl};me.isContextProvider=function(e){return Mt(e)===xl};me.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===wd};me.isForwardRef=function(e){return Mt(e)===bl};me.isFragment=function(e){return Mt(e)===hl};me.isLazy=function(e){return Mt(e)===Pl};me.isMemo=function(e){return Mt(e)===Al};me.isPortal=function(e){return Mt(e)===Sd};me.isProfiler=function(e){return Mt(e)===gl};me.isStrictMode=function(e){return Mt(e)===vl};me.isSuspense=function(e){return Mt(e)===wl};me.isSuspenseList=function(e){return Mt(e)===Sl};me.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hl||e===gl||e===vl||e===wl||e===Sl||typeof e=="object"&&e!==null&&(e.$$typeof===Pl||e.$$typeof===Al||e.$$typeof===xl||e.$$typeof===yl||e.$$typeof===bl||e.$$typeof===eT||e.getModuleId!==void 0)};me.typeOf=Mt});var pb=Fi((Mq,db)=>{"use strict";db.exports=fb()});import*as Ui from"react";import{forwardRef as oS}from"react";function ap(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{var{children:r,width:n,height:o,viewBox:i,className:a,style:s,title:l,desc:c}=e,f=rS(e,tS),u=i||{width:n,height:o,x:0,y:0},d=ae("recharts-surface",a);return Ui.createElement("svg",Zl({},Ie(f),{className:d,width:n,height:o,style:s,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height),ref:t}),Ui.createElement("title",null,l),Ui.createElement("desc",null,c),r)});import*as $i from"react";var iS=["children","className"];function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:r,className:n}=e,o=aS(e,iS),i=ae("recharts-layer",n);return $i.createElement("g",Ql({className:i},Ie(o),{ref:t}),r)});import{createContext as lS,useContext as UD}from"react";var sp=lS(null);import*as Cp from"react";function ce(e){return function(){return e}}var ec=Math.cos;var ko=Math.sin,We=Math.sqrt;var zr=Math.PI,GD=zr/2,In=2*zr;var tc=Math.PI,rc=2*tc,Br=1e-6,cS=rc-Br;function lp(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return lp;let r=10**t;return function(n){this._+=n[0];for(let o=1,i=n.length;oBr)if(!(Math.abs(u*l-c*f)>Br)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-a,h=o-s,p=l*l+c*c,x=m*m+h*h,v=Math.sqrt(p),A=Math.sqrt(d),P=i*Math.tan((tc-Math.acos((p+d-x)/(2*v*A)))/2),C=P/A,E=P/v;Math.abs(C-1)>Br&&this._append`L${t+C*f},${r+C*u}`,this._append`A${i},${i},0,0,${+(u*m>f*h)},${this._x1=t+E*l},${this._y1=r+E*c}`}}arc(t,r,n,o,i,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(o),l=n*Math.sin(o),c=t+s,f=r+l,u=1^a,d=a?o-i:i-o;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Br||Math.abs(this._y1-f)>Br)&&this._append`L${c},${f}`,n&&(d<0&&(d=d%rc+rc),d>cS?this._append`A${n},${n},0,1,${u},${t-s},${r-l}A${n},${n},0,1,${u},${this._x1=c},${this._y1=f}`:d>Br&&this._append`A${n},${n},0,${+(d>=tc)},${u},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}};function cp(){return new Fr}cp.prototype=Fr.prototype;function Tn(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Fr(t)}var ej=Array.prototype.slice;function Mn(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function up(e){this._context=e}up.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function gr(e){return new up(e)}function Ki(e){return e[0]}function Gi(e){return e[1]}function _o(e,t){var r=ce(!0),n=null,o=gr,i=null,a=Tn(s);e=typeof e=="function"?e:e===void 0?Ki:ce(e),t=typeof t=="function"?t:t===void 0?Gi:ce(t);function s(l){var c,f=(l=Mn(l)).length,u,d=!1,m;for(n==null&&(i=o(m=a())),c=0;c<=f;++c)!(c=m;--h)s.point(P[h],C[h]);s.lineEnd(),s.areaEnd()}v&&(P[d]=+e(x,d,u),C[d]=+t(x,d,u),s.point(n?+n(x,d,u):P[d],r?+r(x,d,u):C[d]))}if(A)return s=null,A+""||null}function f(){return _o().defined(o).curve(a).context(i)}return c.x=function(u){return arguments.length?(e=typeof u=="function"?u:ce(+u),n=null,c):e},c.x0=function(u){return arguments.length?(e=typeof u=="function"?u:ce(+u),c):e},c.x1=function(u){return arguments.length?(n=u==null?null:typeof u=="function"?u:ce(+u),c):n},c.y=function(u){return arguments.length?(t=typeof u=="function"?u:ce(+u),r=null,c):t},c.y0=function(u){return arguments.length?(t=typeof u=="function"?u:ce(+u),c):t},c.y1=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:ce(+u),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(u){return arguments.length?(o=typeof u=="function"?u:ce(!!u),c):o},c.curve=function(u){return arguments.length?(a=u,i!=null&&(s=a(i)),c):a},c.context=function(u){return arguments.length?(u==null?i=s=null:s=a(i=u),c):i},c}var Yi=class{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};function nc(e){return new Yi(e,!0)}function oc(e){return new Yi(e,!1)}var Nn={draw(e,t){let r=We(t/zr);e.moveTo(r,0),e.arc(0,0,r,0,In)}};var ic={draw(e,t){let r=We(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};var fp=We(1/3),fS=fp*2,ac={draw(e,t){let r=We(t/fS),n=r*fp;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}};var sc={draw(e,t){let r=We(t),n=-r/2;e.rect(n,n,r,r)}};var dS=.8908130915292852,dp=ko(zr/10)/ko(7*zr/10),pS=ko(In/10)*dp,mS=-ec(In/10)*dp,lc={draw(e,t){let r=We(t*dS),n=pS*r,o=mS*r;e.moveTo(0,-r),e.lineTo(n,o);for(let i=1;i<5;++i){let a=In*i/5,s=ec(a),l=ko(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*o,l*n+s*o)}e.closePath()}};var cc=We(3),uc={draw(e,t){let r=-We(t/(cc*3));e.moveTo(0,r*2),e.lineTo(-cc*r,-r),e.lineTo(cc*r,-r),e.closePath()}};var At=-.5,Pt=We(3)/2,fc=1/We(12),hS=(fc/2+1)*3,dc={draw(e,t){let r=We(t/hS),n=r/2,o=r*fc,i=n,a=r*fc+r,s=-i,l=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(At*n-Pt*o,Pt*n+At*o),e.lineTo(At*i-Pt*a,Pt*i+At*a),e.lineTo(At*s-Pt*l,Pt*s+At*l),e.lineTo(At*n+Pt*o,At*o-Pt*n),e.lineTo(At*i+Pt*a,At*a-Pt*i),e.lineTo(At*s+Pt*l,At*l-Pt*s),e.closePath()}};function qi(e,t){let r=null,n=Tn(o);e=typeof e=="function"?e:ce(e||Nn),t=typeof t=="function"?t:ce(t===void 0?64:+t);function o(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:ce(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:ce(+i),o):t},o.context=function(i){return arguments.length?(r=i??null,o):r},o}function Dn(){}function jn(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function pp(e){this._context=e}pp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:jn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:jn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pc(e){return new pp(e)}function mp(e){this._context=e}mp.prototype={areaStart:Dn,areaEnd:Dn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:jn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mc(e){return new mp(e)}function hp(e){this._context=e}hp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:jn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hc(e){return new hp(e)}function vp(e){this._context=e}vp.prototype={areaStart:Dn,areaEnd:Dn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function vc(e){return new vp(e)}function gp(e){return e<0?-1:1}function yp(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0),s=(i*o+a*n)/(n+o);return(gp(i)+gp(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function xp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function gc(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,o+s*t,i-s,a-s*r,i,a)}function Hi(e){this._context=e}Hi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:gc(this,this._t0,xp(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,gc(this,xp(this,r=yp(this,e,t)),r);break;default:gc(this,this._t0,r=yp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function bp(e){this._context=new wp(e)}(bp.prototype=Object.create(Hi.prototype)).point=function(e,t){Hi.prototype.point.call(this,t,e)};function wp(e){this._context=e}wp.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}};function yc(e){return new Hi(e)}function xc(e){return new bp(e)}function Ap(e){this._context=e}Ap.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Sp(e),o=Sp(t),i=0,a=1;a=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function wc(e){return new Xi(e,.5)}function Sc(e){return new Xi(e,0)}function Ac(e){return new Xi(e,1)}function ft(e,t){if((a=e.length)>1)for(var r=1,n,o,i=e[t[0]],a,s=i.length;r=0;)r[t]=t;return r}function vS(e,t){return e[t]}function gS(e){let t=[];return t.key=e,t}function Pc(){var e=ce([]),t=Ln,r=ft,n=vS;function o(i){var a=Array.from(e.apply(this,arguments),gS),s,l=a.length,c=-1,f;for(let u of i)for(s=0,++c;s0){for(var r,n,o=0,i=e[0].length,a;o0){for(var r=0,n=e[t[0]],o,i=n.length;r0)||!((i=(o=e[t[0]]).length)>0))){for(var r=0,n=1,o,i,a;n1&&arguments[1]!==void 0?arguments[1]:bS,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function ve(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{var s=r[a-1];return typeof s=="string"?o+s+i:s!==void 0?o+Wt(s)+i:o+i},"")}var Se=e=>e===0?0:e>0?1:-1,qe=e=>typeof e=="number"&&e!=+e,tr=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,q=e=>(typeof e=="number"||e instanceof Number)&&!qe(e),Vt=e=>q(e)||typeof e=="string",wS=0,rr=e=>{var t=++wS;return"".concat(e||"").concat(t)},$e=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&typeof t!="string")return n;var i;if(tr(t)){if(r==null)return n;var a=t.indexOf("%");i=r*parseFloat(t.slice(0,a))/100}else i=+t;return qe(i)&&(i=n),o&&r!=null&&i>r&&(i=r),i},_c=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;nn&&(typeof t=="function"?t(n):Ot(n,t))===r)}var fe=e=>e===null||typeof e>"u",nr=e=>fe(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Ke(e){return e!=null}function dt(){}var SS=["type","size","sizeType"];function Tc(){return Tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t="symbol".concat(nr(e));return kp[t]||Nn},IS=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*kS;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},TS=(e,t)=>{kp["symbol".concat(nr(e))]=t},Mc=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,o=ES(e,SS),i=Ep(Ep({},o),{},{type:t,size:r,sizeType:n}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var d=_S(a),m=qi().type(d).size(IS(r,n,a)),h=m();if(h!==null)return h},{className:l,cx:c,cy:f}=i,u=Ie(i);return q(c)&&q(f)&&q(r)?Cp.createElement("path",Tc({},u,{className:ae("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(f,")"),d:s()})):null};Mc.registerSymbol=TS;import{isValidElement as MS}from"react";var _p=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(MS(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(o=>{Co(o)&&typeof r[o]=="function"&&(n[o]=t||(i=>r[o](r,i)))}),n},RS=(e,t,r)=>n=>(e(t,r,n),null),Io=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(o=>{var i=e[o];Co(o)&&typeof i=="function"&&(n||(n={}),n[o]=RS(i,t,r))}),n};function Ip(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function NS(e){for(var t=1;t(a[s]===void 0&&n[s]!==void 0&&(a[s]=n[s]),a),r);return i}function Tp(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Mp(e){return e!==null&&(typeof e=="object"||typeof e=="function")}var zS=/^(?:0|[1-9]\d*)$/;function Rp(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e=0}function Dp(e){return e!=null&&typeof e!="function"&&Np(e.length)}import*as Rc from"react";var{useRef:BS,useEffect:FS,useMemo:WS,useDebugValue:VS}=Rc;function Nc(e,t,r,n,o){let i=BS(null),a;i.current===null?(a={hasValue:!1,value:null},i.current=a):a=i.current;let[s,l]=WS(()=>{let f=!1,u,d,m=v=>{if(!f){f=!0,u=v;let E=n(v);if(o!==void 0&&a.hasValue){let k=a.value;if(o(k,E))return d=k,k}return d=E,E}let A=u,P=d;if(Object.is(A,v))return P;let C=n(v);return o!==void 0&&o(P,C)?(u=v,P):(u=v,d=C,C)},h=r===void 0?null:r;return[()=>m(t()),h===null?void 0:()=>m(h())]},[t,r,n,o]),c=Rc.useSyncExternalStore(e,s,l);return FS(()=>{a.hasValue=!0,a.value=c},[c]),VS(c),c}import{useContext as jp,useMemo as $S}from"react";import{createContext as US}from"react";var To=US(null);var KS=e=>e,ne=()=>{var e=jp(To);return e?e.store.dispatch:KS},ea=()=>{},GS=()=>ea,YS=(e,t)=>e===t;function J(e){var t=jp(To),r=$S(()=>t?n=>{if(n!=null)return e(n)}:ea,[t,e]);return Nc(t?t.subscription.addNestedSub:GS,t?t.store.getState:ea,t?t.store.getState:ea,r,YS)}function qS(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function HS(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function XS(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){let r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Lp=e=>Array.isArray(e)?e:[e];function ZS(e){let t=Array.isArray(e[0])?e[0]:e;return XS(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function JS(e,t){let r=[],{length:n}=e;for(let o=0;o{r=ta(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function rA(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,a=0,s,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),qS(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);let f={...r,...l},{memoize:u,memoizeOptions:d=[],argsMemoize:m=Bp,argsMemoizeOptions:h=[],devModeChecks:p={}}=f,x=Lp(d),v=Lp(h),A=ZS(o),P=u(function(){return i++,c.apply(null,arguments)},...x),C=!0,E=m(function(){a++;let T=JS(A,arguments);return s=P.apply(null,T),s},...v);return Object.assign(E,{resultFunc:c,memoizedResultFunc:P,dependencies:A,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:u,argsMemoize:m})};return Object.assign(n,{withTypes:()=>n}),n}var _=rA(Bp),nA=Object.assign((e,t=_)=>{HS(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((a,s,l)=>(a[r[l]]=s,a),{}))},{withTypes:()=>nA});function Fp(e,t=1){let r=[],n=Math.floor(t),o=(i,a)=>{for(let s=0;s{if(e!==t){let n=Wp(e),o=Wp(t);if(n===o&&n===0){if(et)return r==="desc"?-1:1}return r==="desc"?o-n:n-o}return 0};function ra(e){return typeof e=="symbol"||e instanceof Symbol}var oA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iA=/^\w*$/;function Up(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||ra(e)?!0:typeof e=="string"&&(iA.test(e)||!oA.test(e))||t!=null&&Object.hasOwn(t,e)}function $p(e,t,r,n){if(e==null)return[];r=n?void 0:r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(s=>String(s));let o=(s,l)=>{let c=s;for(let f=0;fl==null||s==null?l:typeof s=="object"&&"key"in s?Object.hasOwn(l,s.key)?l[s.key]:o(l,s.path):typeof s=="function"?s(l):Array.isArray(s)?o(l,s):typeof l=="object"?l[s]:l,a=t.map(s=>(Array.isArray(s)&&s.length===1&&(s=s[0]),s==null||typeof s=="function"||Array.isArray(s)||Up(s)?s:{key:s,path:Qi(s)}));return e.map(s=>({original:s,criteria:a.map(l=>i(l,s))})).slice().sort((s,l)=>{for(let c=0;cs.original)}function Wr(e,...t){let r=t.length;return r>1&&Mo(e,t[0],t[1])?t=[]:r>2&&Mo(t[0],t[1],t[2])&&(t=[t[0]]),$p(e,Fp(t),["asc"])}var Dc=e=>e.legend.settings,Kp=e=>e.legend.size,aA=e=>e.legend.payload,qL=_([aA,Dc],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Wr(n,r):n});import{useEffect as VP}from"react";function Ge(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var sA=typeof Symbol=="function"&&Symbol.observable||"@@observable",Gp=sA,jc=()=>Math.random().toString(36).substring(7).split("").join("."),lA={INIT:`@@redux/INIT${jc()}`,REPLACE:`@@redux/REPLACE${jc()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${jc()}`},na=lA;function oa(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Lc(e,t,r){if(typeof e!="function")throw new Error(Ge(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ge(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ge(1));return r(Lc)(e,t)}let n=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((x,v)=>{a.set(v,x)}))}function f(){if(l)throw new Error(Ge(3));return o}function u(x){if(typeof x!="function")throw new Error(Ge(4));if(l)throw new Error(Ge(5));let v=!0;c();let A=s++;return a.set(A,x),function(){if(v){if(l)throw new Error(Ge(6));v=!1,c(),a.delete(A),i=null}}}function d(x){if(!oa(x))throw new Error(Ge(7));if(typeof x.type>"u")throw new Error(Ge(8));if(typeof x.type!="string")throw new Error(Ge(17));if(l)throw new Error(Ge(9));try{l=!0,o=n(o,x)}finally{l=!1}return(i=a).forEach(A=>{A()}),x}function m(x){if(typeof x!="function")throw new Error(Ge(10));n=x,d({type:na.REPLACE})}function h(){let x=u;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(Ge(11));function A(){let C=v;C.next&&C.next(f())}return A(),{unsubscribe:x(A)}},[Gp](){return this}}}return d({type:na.INIT}),{dispatch:d,subscribe:u,getState:f,replaceReducer:m,[Gp]:h}}function cA(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:na.INIT})>"u")throw new Error(Ge(12));if(typeof r(void 0,{type:na.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ge(13))})}function ia(e){let t=Object.keys(e),r={};for(let a=0;a"u"){let x=l&&l.type;throw new Error(Ge(14))}f[d]=p,c=c||p!==h}return c=c||n.length!==Object.keys(s).length,c?f:s}}function Ro(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Yp(...e){return t=>(r,n)=>{let o=t(r,n),i=()=>{throw new Error(Ge(15))},a={getState:o.getState,dispatch:(l,...c)=>i(l,...c)},s=e.map(l=>l(a));return i=Ro(...s)(o.dispatch),{...o,dispatch:i}}}function zc(e){return oa(e)&&"type"in e&&typeof e.type=="string"}var nm=Symbol.for("immer-nothing"),qp=Symbol.for("immer-draftable"),rt=Symbol.for("immer-state");function Nt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var pt=Object,Bn=pt.getPrototypeOf,ca="constructor",ha="prototype",Wc="configurable",ua="enumerable",sa="writable",No="value",Ut=e=>!!e&&!!e[rt];function Et(e){return e?om(e)||ga(e)||!!e[qp]||!!e[ca]?.[qp]||ya(e)||xa(e):!1}var uA=pt[ha][ca].toString(),Hp=new WeakMap;function om(e){if(!e||!Hc(e))return!1;let t=Bn(e);if(t===null||t===pt[ha])return!0;let r=pt.hasOwnProperty.call(t,ca)&&t[ca];if(r===Object)return!0;if(!zn(r))return!1;let n=Hp.get(r);return n===void 0&&(n=Function.toString.call(r),Hp.set(r,n)),n===uA}function va(e,t,r=!0){Lo(e)===0?(r?Reflect.ownKeys(e):pt.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function Lo(e){let t=e[rt];return t?t.type_:ga(e)?1:ya(e)?2:xa(e)?3:0}var Xp=(e,t,r=Lo(e))=>r===2?e.has(t):pt[ha].hasOwnProperty.call(e,t),Vc=(e,t,r=Lo(e))=>r===2?e.get(t):e[t],fa=(e,t,r,n=Lo(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function fA(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var ga=Array.isArray,ya=e=>e instanceof Map,xa=e=>e instanceof Set,Hc=e=>typeof e=="object",zn=e=>typeof e=="function",Bc=e=>typeof e=="boolean";function dA(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var or=e=>e.copy_||e.base_;var Xc=e=>e.modified_?e.copy_:e.base_;function Uc(e,t){if(ya(e))return new Map(e);if(xa(e))return new Set(e);if(ga(e))return Array[ha].slice.call(e);let r=om(e);if(t===!0||t==="class_only"&&!r){let n=pt.getOwnPropertyDescriptors(e);delete n[rt];let o=Reflect.ownKeys(n);for(let i=0;i1&&pt.defineProperties(e,{set:aa,add:aa,clear:aa,delete:aa}),pt.freeze(e),t&&va(e,(r,n)=>{Zc(n,!0)},!1)),e}function pA(){Nt(2)}var aa={[No]:pA};function ba(e){return e===null||!Hc(e)?!0:pt.isFrozen(e)}var da="MapSet",$c="Patches",Zp="ArrayMethods",im={};function Vr(e){let t=im[e];return t||Nt(0,e),t}var Jp=e=>!!im[e];var Do,am=()=>Do,mA=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Jp(da)?Vr(da):void 0,arrayMethodsPlugin_:Jp(Zp)?Vr(Zp):void 0});function Qp(e,t){t&&(e.patchPlugin_=Vr($c),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Kc(e){Gc(e),e.drafts_.forEach(hA),e.drafts_=null}function Gc(e){e===Do&&(Do=e.parent_)}var em=e=>Do=mA(Do,e);function hA(e){let t=e[rt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function tm(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[rt].modified_&&(Kc(t),Nt(4)),Et(e)&&(e=rm(t,e));let{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[rt].base_,e,t)}else e=rm(t,r);return vA(t,e,!0),Kc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==nm?e:void 0}function rm(e,t){if(ba(t))return t;let r=t[rt];if(!r)return pa(t,e.handledSet_,e);if(!wa(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);cm(r,e)}return r.copy_}function vA(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Zc(t,r)}function sm(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var wa=(e,t)=>e.scope_===t,gA=[];function lm(e,t,r,n){let o=or(e),i=e.type_;if(n!==void 0&&Vc(o,n,i)===t){fa(o,n,r,i);return}if(!e.draftLocations_){let s=e.draftLocations_=new Map;va(o,(l,c)=>{if(Ut(c)){let f=s.get(c)||[];f.push(l),s.set(c,f)}})}let a=e.draftLocations_.get(t)??gA;for(let s of a)fa(o,s,r,i)}function yA(e,t,r){e.callbacks_.push(function(o){let i=t;if(!i||!wa(i,o))return;o.mapSetPlugin_?.fixSetContents(i);let a=Xc(i);lm(e,i.draft_??i,a,r),cm(i,o)})}function cm(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let o=n.getPath(e);o&&n.generatePatches_(e,o,t)}sm(e)}}function xA(e,t,r){let{scope_:n}=e;if(Ut(r)){let o=r[rt];wa(o,n)&&o.callbacks_.push(function(){la(e);let a=Xc(o);lm(e,r,a,t)})}else Et(r)&&e.callbacks_.push(function(){let i=or(e);e.type_===3?i.has(r)&&pa(r,n.handledSet_,n):Vc(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&pa(Vc(e.copy_,t,e.type_),n.handledSet_,n)})}function pa(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ut(e)||t.has(e)||!Et(e)||ba(e)||(t.add(e),va(e,(n,o)=>{if(Ut(o)){let i=o[rt];if(wa(i,r)){let a=Xc(i);fa(e,n,a,e.type_),sm(i)}}else Et(o)&&pa(o,t,r)})),e}function bA(e,t){let r=ga(e),n={type_:r?1:0,scope_:t?t.scope_:am(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=n,i=ma;r&&(o=[n],i=jo);let{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,[s,n]}var ma={get(e,t){if(t===rt)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let o=or(e);if(!Xp(o,t,e.type_))return wA(e,o,t);let i=o[t];if(e.finalized_||!Et(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&dA(t))return i;if(i===Fc(e.base_,t)){la(e);let a=e.type_===1?+t:t,s=qc(e.scope_,i,e,a);return e.copy_[a]=s}return i},has(e,t){return t in or(e)},ownKeys(e){return Reflect.ownKeys(or(e))},set(e,t,r){let n=um(or(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let o=Fc(or(e),t),i=o?.[rt];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(fA(r,o)&&(r!==void 0||Xp(e.base_,t,e.type_)))return!0;la(e),Yc(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),xA(e,t,r)),!0},deleteProperty(e,t){return la(e),Fc(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Yc(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=or(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[sa]:!0,[Wc]:e.type_!==1||t!=="length",[ua]:n[ua],[No]:r[t]}},defineProperty(){Nt(11)},getPrototypeOf(e){return Bn(e.base_)},setPrototypeOf(){Nt(12)}},jo={};for(let e in ma){let t=ma[e];jo[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}jo.deleteProperty=function(e,t){return jo.set.call(this,e,t,void 0)};jo.set=function(e,t,r){return ma.set.call(this,e[0],t,r,e[0])};function Fc(e,t){let r=e[rt];return(r?or(r):e)[t]}function wA(e,t,r){let n=um(t,r);return n?No in n?n[No]:n.get?.call(e.draft_):void 0}function um(e,t){if(!(t in e))return;let r=Bn(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Bn(r)}}function Yc(e){e.modified_||(e.modified_=!0,e.parent_&&Yc(e.parent_))}function la(e){e.copy_||(e.assigned_=new Map,e.copy_=Uc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var SA=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(zn(t)&&!zn(r)){let i=r;r=t;let a=this;return function(l=i,...c){return a.produce(l,f=>r.call(this,f,...c))}}zn(r)||Nt(6),n!==void 0&&!zn(n)&&Nt(7);let o;if(Et(t)){let i=em(this),a=qc(i,t,void 0),s=!0;try{o=r(a),s=!1}finally{s?Kc(i):Gc(i)}return Qp(i,n),tm(o,i)}else if(!t||!Hc(t)){if(o=r(t),o===void 0&&(o=t),o===nm&&(o=void 0),this.autoFreeze_&&Zc(o,!0),n){let i=[],a=[];Vr($c).generateReplacementPatches_(t,o,{patches_:i,inversePatches_:a}),n(i,a)}return o}else Nt(1,t)},this.produceWithPatches=(t,r)=>{if(zn(t))return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let n,o;return[this.produce(t,r,(a,s)=>{n=a,o=s}),n,o]},Bc(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Bc(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Bc(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Et(e)||Nt(8),Ut(e)&&(e=Ye(e));let t=em(this),r=qc(t,e,void 0);return r[rt].isManual_=!0,Gc(t),r}finishDraft(e,t){let r=e&&e[rt];(!r||!r.isManual_)&&Nt(9);let{scope_:n}=r;return Qp(n,t),tm(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));let n=Vr($c).applyPatches_;return Ut(e)?n(e,t):this.produce(e,o=>n(o,t))}};function qc(e,t,r,n){let[o,i]=ya(t)?Vr(da).proxyMap_(t,r):xa(t)?Vr(da).proxySet_(t,r):bA(t,r);return(r?.scope_??am()).drafts_.push(o),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?yA(r,i,n):i.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:c}=l;i.modified_&&c&&c.generatePatches_(i,[],l)}),o}function Ye(e){return Ut(e)||Nt(10,e),fm(e)}function fm(e){if(!Et(e)||ba(e))return e;let t=e[rt],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Uc(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Uc(e,!0);return va(r,(o,i)=>{fa(r,o,fm(i))},n),t&&(t.finalized_=!1),r}var AA=new SA,Jc=AA.produce;function dm(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var pm=dm(),mm=dm;var PA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ro:Ro.apply(null,arguments)},nz=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},OA=e=>e&&typeof e.match=="function";function Re(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(mt(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>zc(n)&&n.type===e,r}var Sm=class zo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,zo.prototype)}static get[Symbol.species](){return zo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new zo(...t[0].concat(this)):new zo(...t.concat(this))}};function hm(e){return Et(e)?Jc(e,()=>{}):e}function Sa(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function EA(e){return typeof e=="boolean"}var CA=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{},a=new Sm;return r&&(EA(r)?a.push(pm):a.push(mm(r.extraArgument))),a},Am="RTK_autoBatch",ue=()=>e=>({payload:e,meta:{[Am]:!0}}),vm=e=>t=>{setTimeout(t,e)},kA=(e,t)=>r=>{let n=!1,o=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(a),r())},i=e(o),a=setTimeout(o,t)},ru=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),o=!0,i=!1,a=!1,s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?kA(window.requestAnimationFrame,100):vm(10):e.type==="callback"?e.queueNotification:vm(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(f=>f()))};return Object.assign({},n,{subscribe(f){let u=()=>o&&f(),d=n.subscribe(u);return s.add(f),()=>{d(),s.delete(f)}},dispatch(f){try{return o=!f?.meta?.[Am],i=!o,i&&(a||(a=!0,l(c))),n.dispatch(f)}finally{o=!0}}})},_A=e=>function(r){let{autoBatch:n=!0}=r??{},o=new Sm(e);return n&&o.push(ru(typeof n=="object"?n:void 0)),o};function Pm(e){let t=CA(),{reducer:r=void 0,middleware:n,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{},l;if(typeof r=="function")l=r;else if(oa(r))l=ia(r);else throw new Error(mt(1));let c;typeof n=="function"?c=n(t):c=t();let f=Ro;o&&(f=PA({trace:!1,...typeof o=="object"&&o}));let u=Yp(...c),d=_A(u),m=typeof s=="function"?s(d):d(),h=f(...m);return Lc(l,a,h)}function Om(e){let t={},r=[],n,o={addCase(i,a){let s=typeof i=="string"?i:i.type;if(!s)throw new Error(mt(28));if(s in t)throw new Error(mt(29));return t[s]=a,o},addAsyncThunk(i,a){return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:i.settled,reducer:a.settled}),o},addMatcher(i,a){return r.push({matcher:i,reducer:a}),o},addDefaultCase(i){return n=i,o}};return e(o),[t,r,n]}function IA(e){return typeof e=="function"}function TA(e,t){let[r,n,o]=Om(t),i;if(IA(e))i=()=>hm(e());else{let s=hm(e);i=()=>s}function a(s=i(),l){let c=[r[l.type],...n.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return c.filter(f=>!!f).length===0&&(c=[o]),c.reduce((f,u)=>{if(u)if(Ut(f)){let m=u(f,l);return m===void 0?f:m}else{if(Et(f))return Jc(f,d=>u(d,l));{let d=u(f,l);if(d===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return f},s)}return a.getInitialState=i,a}var MA=(e,t)=>OA(e)?e.match(t):e(t);function RA(...e){return t=>e.some(r=>MA(r,t))}var NA="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Em=(e=21)=>{let t="",r=e;for(;r--;)t+=NA[Math.random()*64|0];return t},DA=["name","message","stack","code"],Qc=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},gm=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},jA=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of DA)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},ym="External signal was aborted",LA=(()=>{function e(t,r,n){let o=Re(t+"/fulfilled",(l,c,f,u)=>({payload:l,meta:{...u||{},arg:f,requestId:c,requestStatus:"fulfilled"}})),i=Re(t+"/pending",(l,c,f)=>({payload:void 0,meta:{...f||{},arg:c,requestId:l,requestStatus:"pending"}})),a=Re(t+"/rejected",(l,c,f,u,d)=>({payload:u,error:(n&&n.serializeError||jA)(l||"Rejected"),meta:{...d||{},arg:f,requestId:c,rejectedWithValue:!!u,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function s(l,{signal:c}={}){return(f,u,d)=>{let m=n?.idGenerator?n.idGenerator(l):Em(),h=new AbortController,p,x;function v(P){x=P,h.abort()}c&&(c.aborted?v(ym):c.addEventListener("abort",()=>v(ym),{once:!0}));let A=async function(){let P;try{let E=n?.condition?.(l,{getState:u,extra:d});if(BA(E)&&(E=await E),E===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let k=new Promise((T,I)=>{p=()=>{I({name:"AbortError",message:x||"Aborted"})},h.signal.addEventListener("abort",p,{once:!0})});f(i(m,l,n?.getPendingMeta?.({requestId:m,arg:l},{getState:u,extra:d}))),P=await Promise.race([k,Promise.resolve(r(l,{dispatch:f,getState:u,extra:d,requestId:m,signal:h.signal,abort:v,rejectWithValue:(T,I)=>new Qc(T,I),fulfillWithValue:(T,I)=>new gm(T,I)})).then(T=>{if(T instanceof Qc)throw T;return T instanceof gm?o(T.payload,m,l,T.meta):o(T,m,l)})])}catch(E){P=E instanceof Qc?a(null,m,l,E.payload,E.meta):a(E,m,l)}finally{p&&h.signal.removeEventListener("abort",p)}return n&&!n.dispatchConditionRejection&&a.match(P)&&P.meta.condition||f(P),P}();return Object.assign(A,{abort:v,requestId:m,arg:l,unwrap(){return A.then(zA)}})}}return Object.assign(s,{pending:i,rejected:a,fulfilled:o,settled:RA(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function zA(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function BA(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Cm=Symbol.for("rtk-slice-createasyncthunk"),iz={[Cm]:LA};function FA(e,t){return`${e}/${t}`}function WA({creators:e}={}){let t=e?.asyncThunk?.[Cm];return function(n){let{name:o,reducerPath:i=o}=n;if(!o)throw new Error(mt(11));typeof process<"u";let a=(typeof n.reducers=="function"?n.reducers(UA()):n.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(P,C){let E=typeof P=="string"?P:P.type;if(!E)throw new Error(mt(12));if(E in l.sliceCaseReducersByType)throw new Error(mt(13));return l.sliceCaseReducersByType[E]=C,c},addMatcher(P,C){return l.sliceMatchers.push({matcher:P,reducer:C}),c},exposeAction(P,C){return l.actionCreators[P]=C,c},exposeCaseReducer(P,C){return l.sliceCaseReducersByName[P]=C,c}};s.forEach(P=>{let C=a[P],E={reducerName:P,type:FA(o,P),createNotation:typeof n.reducers=="function"};KA(C)?YA(E,C,c,t):$A(E,C,c)});function f(){let[P={},C=[],E=void 0]=typeof n.extraReducers=="function"?Om(n.extraReducers):[n.extraReducers],k={...P,...l.sliceCaseReducersByType};return TA(n.initialState,T=>{for(let I in k)T.addCase(I,k[I]);for(let I of l.sliceMatchers)T.addMatcher(I.matcher,I.reducer);for(let I of C)T.addMatcher(I.matcher,I.reducer);E&&T.addDefaultCase(E)})}let u=P=>P,d=new Map,m=new WeakMap,h;function p(P,C){return h||(h=f()),h(P,C)}function x(){return h||(h=f()),h.getInitialState()}function v(P,C=!1){function E(T){let I=T[P];return typeof I>"u"&&C&&(I=Sa(m,E,x)),I}function k(T=u){let I=Sa(d,C,()=>new WeakMap);return Sa(I,T,()=>{let z={};for(let[j,Y]of Object.entries(n.selectors??{}))z[j]=VA(Y,T,()=>Sa(m,T,x),C);return z})}return{reducerPath:P,getSelectors:k,get selectors(){return k(E)},selectSlice:E}}let A={name:o,reducer:p,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...v(i),injectInto(P,{reducerPath:C,...E}={}){let k=C??i;return P.inject({reducerPath:k,reducer:p},E),{...A,...v(k,!0)}}};return A}}function VA(e,t,r,n){function o(i,...a){let s=t(i);return typeof s>"u"&&n&&(s=r()),e(s,...a)}return o.unwrapped=e,o}var se=WA();function UA(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function $A({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!GA(n))throw new Error(mt(17));i=n.reducer,a=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Re(e,a):Re(e))}function KA(e){return e._reducerDefinitionType==="asyncThunk"}function GA(e){return e._reducerDefinitionType==="reducerWithPrepare"}function YA({type:e,reducerName:t},r,n,o){if(!o)throw new Error(mt(18));let{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:f}=r,u=o(e,i,f);n.exposeAction(t,u),a&&n.addCase(u.fulfilled,a),s&&n.addCase(u.pending,s),l&&n.addCase(u.rejected,l),c&&n.addMatcher(u.settled,c),n.exposeCaseReducer(t,{fulfilled:a||Aa,pending:s||Aa,rejected:l||Aa,settled:c||Aa})}function Aa(){}var qA="task",km="listener",_m="completed",nu="cancelled",HA=`task-${nu}`,XA=`task-${_m}`,eu=`${km}-${nu}`,ZA=`${km}-${_m}`,Ea=class{constructor(e){this.code=e,this.message=`${qA} ${nu} (reason: ${e})`}code;name="TaskAbortError";message},ou=(e,t)=>{if(typeof e!="function")throw new TypeError(mt(32))},Pa=()=>{},Im=(e,t=Pa)=>(e.catch(t),e),Tm=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Ur=e=>{if(e.aborted)throw new Ea(e.reason)};function Mm(e,t){let r=Pa;return new Promise((n,o)=>{let i=()=>o(new Ea(e.reason));if(e.aborted){i();return}r=Tm(e,i),t.finally(()=>r()).then(n,o)}).finally(()=>{r=Pa})}var JA=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Ea?"cancelled":"rejected",error:r}}finally{t?.()}},Oa=e=>t=>Im(Mm(e,t).then(r=>(Ur(e),r))),Rm=e=>{let t=Oa(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Fn}=Object,xm={},Ca="listenerMiddleware",QA=(e,t)=>{let r=n=>Tm(e,()=>n.abort(e.reason));return(n,o)=>{ou(n,"taskExecutor");let i=new AbortController;r(i);let a=JA(async()=>{Ur(e),Ur(i.signal);let s=await n({pause:Oa(i.signal),delay:Rm(i.signal),signal:i.signal});return Ur(i.signal),s},()=>i.abort(XA));return o?.autoJoin&&t.push(a.catch(Pa)),{result:Oa(e)(a),cancel(){i.abort(HA)}}}},eP=(e,t)=>{let r=async(n,o)=>{Ur(t);let i=()=>{},s=[new Promise((l,c)=>{let f=e({predicate:n,effect:(u,d)=>{d.unsubscribe(),l([u,d.getState(),d.getOriginalState()])}});i=()=>{f(),c()}})];o!=null&&s.push(new Promise(l=>setTimeout(l,o,null)));try{let l=await Mm(t,Promise.race(s));return Ur(t),l}finally{i()}};return(n,o)=>Im(r(n,o))},Nm=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:i}=e;if(t)o=Re(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(!o)throw new Error(mt(21));return ou(i,"options.listener"),{predicate:o,type:t,effect:i}},Dm=Fn(e=>{let{type:t,predicate:r,effect:n}=Nm(e);return{id:Em(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(mt(22))}}},{withTypes:()=>Dm}),bm=(e,t)=>{let{type:r,effect:n,predicate:o}=Nm(t);return Array.from(e.values()).find(i=>(typeof r=="string"?i.type===r:i.predicate===o)&&i.effect===n)},tu=e=>{e.pending.forEach(t=>{t.abort(eu)})},tP=(e,t)=>()=>{for(let r of t.keys())tu(r);e.clear()},wm=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},jm=Fn(Re(`${Ca}/add`),{withTypes:()=>jm}),rP=Re(`${Ca}/removeAll`),Lm=Fn(Re(`${Ca}/remove`),{withTypes:()=>Lm}),nP=(...e)=>{console.error(`${Ca}/error`,...e)},ir=(e={})=>{let t=new Map,r=new Map,n=m=>{let h=r.get(m)??0;r.set(m,h+1)},o=m=>{let h=r.get(m)??1;h===1?r.delete(m):r.set(m,h-1)},{extra:i,onError:a=nP}=e;ou(a,"onError");let s=m=>(m.unsubscribe=()=>t.delete(m.id),t.set(m.id,m),h=>{m.unsubscribe(),h?.cancelActive&&tu(m)}),l=m=>{let h=bm(t,m)??Dm(m);return s(h)};Fn(l,{withTypes:()=>l});let c=m=>{let h=bm(t,m);return h&&(h.unsubscribe(),m.cancelActive&&tu(h)),!!h};Fn(c,{withTypes:()=>c});let f=async(m,h,p,x)=>{let v=new AbortController,A=eP(l,v.signal),P=[];try{m.pending.add(v),n(m),await Promise.resolve(m.effect(h,Fn({},p,{getOriginalState:x,condition:(C,E)=>A(C,E).then(Boolean),take:A,delay:Rm(v.signal),pause:Oa(v.signal),extra:i,signal:v.signal,fork:QA(v.signal,P),unsubscribe:m.unsubscribe,subscribe:()=>{t.set(m.id,m)},cancelActiveListeners:()=>{m.pending.forEach((C,E,k)=>{C!==v&&(C.abort(eu),k.delete(C))})},cancel:()=>{v.abort(eu),m.pending.delete(v)},throwIfCancelled:()=>{Ur(v.signal)}})))}catch(C){C instanceof Ea||wm(a,C,{raisedBy:"effect"})}finally{await Promise.all(P),v.abort(ZA),o(m),m.pending.delete(v)}},u=tP(t,r);return{middleware:m=>h=>p=>{if(!zc(p))return h(p);if(jm.match(p))return l(p.payload);if(rP.match(p)){u();return}if(Lm.match(p))return c(p.payload);let x=m.getState(),v=()=>{if(x===xm)throw new Error(mt(23));return x},A;try{if(A=h(p),t.size>0){let P=m.getState(),C=Array.from(t.values());for(let E of C){let k=!1;try{k=E.predicate(p,P,x)}catch(T){k=!1,wm(a,T,{raisedBy:"predicate"})}k&&f(E,p,m,v)}}}finally{x=xm}return A},startListening:l,stopListening:c,clearListeners:u}};function mt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var oP={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},zm=se({name:"chartLayout",initialState:oP,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,o,i;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(i=t.payload.left)!==null&&i!==void 0?i:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:iu,setLayout:Bm,setChartSize:Fm,setScale:Wm}=zm.actions,Vm=zm.reducer;function ka(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function Z(e){return Number.isFinite(e)}function ct(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Um(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Wn(e){for(var t=1;t{if(t&&r){var{width:n,height:o}=r,{align:i,verticalAlign:a,layout:s}=t;if((s==="vertical"||s==="horizontal"&&a==="middle")&&i!=="center"&&q(e[i]))return Wn(Wn({},e),{},{[i]:e[i]+(n||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&a!=="middle"&&q(e[a]))return Wn(Wn({},e),{},{[a]:e[a]+(o||0)})}return e},Dt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",au=(e,t,r,n)=>{if(n)return e.map(s=>s.coordinate);var o,i,a=e.map(s=>(s.coordinate===t&&(o=!0),s.coordinate===r&&(i=!0),s.coordinate));return o||a.push(t),i||a.push(r),a},su=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:o,range:i,scale:a,realScaleType:s,isCategorical:l,categoricalDomain:c,tickCount:f,ticks:u,niceTicks:d,axisType:m}=e;if(!a)return null;var h=s==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,p=(t||r)&&o==="category"&&a.bandwidth?a.bandwidth()/h:0;if(p=m==="angleAxis"&&i&&i.length>=2?Se(i[0]-i[1])*2*p:p,t&&(u||d)){var x=(u||d||[]).map((v,A)=>{var P=n?n.indexOf(v):v,C=a.map(P);return Z(C)?{coordinate:C+p,value:v,offset:p,index:A}:null}).filter(Ke);return x}return l&&c?c.map((v,A)=>{var P=a.map(v);return Z(P)?{coordinate:P+p,value:v,index:A,offset:p}:null}).filter(Ke):a.ticks&&!r&&f!=null?a.ticks(f).map((v,A)=>{var P=a.map(v);return Z(P)?{coordinate:P+p,value:v,index:A,offset:p}:null}).filter(Ke):a.domain().map((v,A)=>{var P=a.map(v);return Z(P)?{coordinate:P+p,value:n?n[v]:v,index:A,offset:p}:null}).filter(Ke)},Km=(e,t)=>{if(!t||t.length!==2||!q(t[0])||!q(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!q(e[0])||e[0]n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o=0?(c[0]=i,i+=d,c[1]=i):(c[0]=a,a+=d,c[1]=a)}}}},cP=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o=0?(l[0]=i,i+=c,l[1]=i):(l[0]=0,l[1]=0)}}}},uP={sign:lP,expand:Oc,none:ft,silhouette:Ec,wiggle:Cc,positive:cP},Gm=(e,t,r)=>{var n,o=(n=uP[r])!==null&&n!==void 0?n:ft,i=Pc().keys(t).value((s,l)=>Number(we(s,l,0))).order(Ln).offset(o),a=i(e);return a.forEach((s,l)=>{s.forEach((c,f)=>{var u=we(e[f],t[l],0);Array.isArray(u)&&u.length===2&&q(u[0])&&q(u[1])&&(c[0]=u[0],c[1]=u[1])})}),a};function Ym(e){return e==null?void 0:String(e)}var lu=e=>{var{axis:t,ticks:r,offset:n,bandSize:o,entry:i,index:a}=e;if(t.type==="category")return r[a]?r[a].coordinate+n:null;var s=we(i,t.dataKey,t.scale.domain()[a]);if(fe(s))return null;var l=t.scale.map(s);return q(l)?l-o/2+n:null},qm=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]},fP=e=>{var t=e.flat(2).filter(q);return[Math.min(...t),Math.max(...t)]},dP=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Hm=(e,t,r)=>{if(e!=null)return dP(Object.keys(e).reduce((n,o)=>{var i=e[o];if(!i)return n;var{stackedData:a}=i,s=a.reduce((l,c)=>{var f=ka(c,t,r),u=fP(f);return!Z(u[0])||!Z(u[1])?l:[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},cu=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,uu=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fu=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=Wr(t,f=>f.coordinate),i=1/0,a=1,s=o.length;a{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},Zm=(e,t)=>t==="centric"?e.angle:e.radius;var He=e=>e.layout.width,Xe=e=>e.layout.height,Jm=e=>e.layout.scale,_a=e=>e.layout.margin;var Vn=_(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Un=_(e=>e.cartesianAxis.yAxis,e=>Object.values(e));var Qm="data-recharts-item-index",eh="data-recharts-item-id",$r=60;function th(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ia(e){for(var t=1;te.brush.height;function gP(e){var t=Un(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:$r;return r+o}return r},0)}function yP(e){var t=Un(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:$r;return r+o}return r},0)}function xP(e){var t=Vn(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function bP(e){var t=Vn(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var de=_([He,Xe,_a,vP,gP,yP,xP,bP,Dc,Kp],(e,t,r,n,o,i,a,s,l,c)=>{var f={left:(r.left||0)+o,right:(r.right||0)+i},u={top:(r.top||0)+a,bottom:(r.bottom||0)+s},d=Ia(Ia({},u),f),m=d.bottom;d.bottom+=n,d=$m(d,l,c);var h=e-d.left-d.right,p=t-d.top-d.bottom;return Ia(Ia({brushBottom:m},d),{},{width:Math.max(h,0),height:Math.max(p,0)})}),rh=_(de,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),nh=_(He,Xe,(e,t)=>({x:0,y:0,width:e,height:t}));import*as wP from"react";import{createContext as SP,useContext as AP}from"react";var PP=SP(null),Ae=()=>AP(PP)!=null;var $n=e=>e.brush,Kr=_([$n,de,_a],(e,t,r)=>({height:e.height,x:q(e.x)?e.x:t.left,y:q(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:q(e.width)?e.width:t.width}));import*as Gr from"react";import{createContext as RP,forwardRef as fh,useCallback as NP,useContext as DP,useEffect as jP,useImperativeHandle as LP,useMemo as zP,useRef as uh,useState as BP}from"react";function oh(e,t,{signal:r,edges:n}={}){let o,i=null,a=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),l=()=>{i!==null&&(e.apply(o,i),o=void 0,i=null)},c=()=>{s&&l(),m()},f=null,u=()=>{f!=null&&clearTimeout(f),f=setTimeout(()=>{f=null,c()},t)},d=()=>{f!==null&&(clearTimeout(f),f=null)},m=()=>{d(),o=void 0,i=null},h=()=>{l()},p=function(...x){if(r?.aborted)return;o=this,i=x;let v=f==null;u(),a&&v&&l()};return p.schedule=u,p.cancel=m,p.flush=h,r?.addEventListener("abort",m,{once:!0}),p}function ih(e,t=0,r={}){typeof r!="object"&&(r={});let{leading:n=!1,trailing:o=!0,maxWait:i}=r,a=Array(2);n&&(a[0]="leading"),o&&(a[1]="trailing");let s,l=null,c=oh(function(...d){s=e.apply(this,d),l=null},t,{edges:a}),f=function(...d){return i!=null&&(l===null&&(l=Date.now()),Date.now()-l>=i)?(s=e.apply(this,d),l=Date.now(),c.cancel(),c.schedule(),s):(c.apply(this,d),s)},u=()=>(c.flush(),s);return f.cancel=c.cancel,f.flush=u,f}function mu(e,t=0,r={}){let{leading:n=!0,trailing:o=!0}=r;return ih(e,t,{leading:n,maxWait:t,trailing:o})}var OP=!0,Kn=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;io[a++]))}};var jt={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},hu=(e,t,r)=>{var{width:n=jt.width,height:o=jt.height,aspect:i,maxHeight:a}=r,s=tr(n)?e:Number(n),l=tr(o)?t:Number(o);return i&&i>0&&(s?l=s/i:l&&(s=l*i),a&&l!=null&&l>a&&(l=a)),{calculatedWidth:s,calculatedHeight:l}},EP={width:0,height:0,overflow:"visible"},CP={width:0,overflowX:"visible"},kP={height:0,overflowY:"visible"},_P={},ah=e=>{var{width:t,height:r}=e,n=tr(t),o=tr(r);return n&&o?EP:n?CP:o?kP:_P};function sh(e){var{width:t,height:r,aspect:n}=e,o=t,i=r;return o===void 0&&i===void 0?(o=jt.width,i=jt.height):o===void 0?o=n&&n>0?void 0:jt.width:i===void 0&&(i=n&&n>0?void 0:jt.height),{width:o,height:i}}function vu(){return vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:r,height:n}),[r,n]);return FP(o)?Gr.createElement(dh.Provider,{value:o},t):null}var Bo=()=>DP(dh),WP=fh((e,t)=>{var{aspect:r,initialDimension:n=jt.initialDimension,width:o,height:i,minWidth:a=jt.minWidth,minHeight:s,maxHeight:l,children:c,debounce:f=jt.debounce,id:u,className:d,onResize:m,style:h={}}=e,p=uh(null),x=uh();x.current=m,LP(t,()=>p.current);var[v,A]=BP({containerWidth:n.width,containerHeight:n.height}),P=NP((I,z)=>{A(j=>{var Y=Math.round(I),B=Math.round(z);return j.containerWidth===Y&&j.containerHeight===B?j:{containerWidth:Y,containerHeight:B}})},[]);jP(()=>{if(p.current==null||typeof ResizeObserver>"u")return dt;var I=B=>{var X,H=B[0];if(H!=null){var{width:re,height:g}=H.contentRect;P(re,g),(X=x.current)===null||X===void 0||X.call(x,re,g)}};f>0&&(I=mu(I,f,{trailing:!0,leading:!1}));var z=new ResizeObserver(I),{width:j,height:Y}=p.current.getBoundingClientRect();return P(j,Y),z.observe(p.current),()=>{z.disconnect()}},[P,f]);var{containerWidth:C,containerHeight:E}=v;Kn(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:k,calculatedHeight:T}=hu(C,E,{width:o,height:i,aspect:r,maxHeight:l});return Kn(k!=null&&k>0||T!=null&&T>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,k,T,o,i,a,s,r),Gr.createElement("div",{id:u?"".concat(u):void 0,className:ae("recharts-responsive-container",d),style:ch(ch({},h),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:p},Gr.createElement("div",{style:ah({width:o,height:i})},Gr.createElement(ph,{width:k,height:T},c)))}),gu=fh((e,t)=>{var r=Bo();if(ct(r.width)&&ct(r.height))return e.children;var{width:n,height:o}=sh({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:a}=hu(void 0,void 0,{width:n,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return q(i)&&q(a)?Gr.createElement(ph,{width:i,height:a},e.children):Gr.createElement(WP,vu({},e,{width:n,height:o,ref:t}))});function Fo(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Ta=()=>{var e,t=Ae(),r=J(rh),n=J(Kr),o=(e=J($n))===null||e===void 0?void 0:e.padding;return!t||!n||!o?r:{width:n.width-o.left-o.right,height:n.height-o.top-o.bottom,x:o.left,y:o.top}},UP={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},mh=()=>{var e;return(e=J(de))!==null&&e!==void 0?e:UP},Ma=()=>J(He),Ra=()=>J(Xe);var oe=e=>e.layout.layoutType,Yr=()=>J(oe);var yu=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t};var hh=()=>{var e=Yr();return e!==void 0},qr=e=>{var t=ne(),r=Ae(),{width:n,height:o}=e,i=Bo(),a=n,s=o;return i&&(a=i.width>0?i.width:n,s=i.height>0?i.height:o),VP(()=>{!r&&ct(a)&&ct(s)&&t(Fm({width:a,height:s}))},[t,r,a,s]),null};var $P={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},vh=se({name:"legend",initialState:$P,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:ue()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Ye(e).payload.indexOf(r);o>-1&&(e.payload[o]=n)},prepare:ue()},removeLegendPayload:{reducer(e,t){var r=Ye(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:ue()}}}),{setLegendSize:hB,setLegendSettings:vB,addLegendPayload:gh,replaceLegendPayload:yh,removeLegendPayload:xh}=vh.actions,bh=vh.reducer;import*as Pe from"react";var KP=Symbol.for("react.forward_ref");var GP=Symbol.for("react.memo");var YP=KP,qP=GP;function HP(e){e()}function XP(){let e=null,t=null;return{clear(){e=null,t=null},notify(){HP(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0,o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var wh={notify(){},get:()=>[]};function ZP(e,t){let r,n=wh,o=0,i=!1;function a(p){f();let x=n.subscribe(p),v=!1;return()=>{v||(v=!0,x(),u())}}function s(){n.notify()}function l(){h.onStateChange&&h.onStateChange()}function c(){return i}function f(){o++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=XP())}function u(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=wh)}function d(){i||(i=!0,f())}function m(){i&&(i=!1,u())}let h={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:m,getListeners:()=>n};return h}var JP=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",QP=JP(),eO=()=>typeof navigator<"u"&&navigator.product==="ReactNative",tO=eO(),rO=()=>QP||tO?Pe.useLayoutEffect:Pe.useEffect,nO=rO();function Sh(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Ah(e,t){if(Sh(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o{let l=ZP(o);return{store:o,subscription:l,getServerState:n?()=>n:void 0}},[o,n]),a=Pe.useMemo(()=>o.getState(),[o]);return nO(()=>{let{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,a]),Pe.createElement((r||cO).Provider,{value:i},t)}var Ph=uO;var fO=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function dO(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function Gn(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(fO.has(n)){if(e[n]==null&&t[n]==null)continue;if(!Ah(e[n],t[n]))return!1}else if(!dO(e[n],t[n]))return!1;return!0}import{useEffect as mO,useState as hO}from"react";var pO=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Ct={devToolsEnabled:!0,isSsr:pO()};function Oh(){var[e,t]=hO(()=>Ct.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return mO(()=>{if(window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>{t(r.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}}},[]),e}var Eh=()=>{var e;return(e=J(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};import*as Mh from"react";function xu(){return xu=Object.assign?Object.assign.bind():function(e){for(var t=1;tZ(e.x)&&Z(e.y),Ih=e=>e.base!=null&&Na(e.base)&&Na(e),Wo=e=>e.x,Vo=e=>e.y,xO=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(nr(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=_h["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return _h[r]||gr},Th={connectNulls:!1,type:"linear"},bO=e=>{var{type:t=Th.type,points:r=[],baseLine:n,layout:o,connectNulls:i=Th.connectNulls}=e,a=xO(t,o),s=i?r.filter(Na):r;if(Array.isArray(n)){var l,c=r.map((h,p)=>kh(kh({},h),{},{base:n[p]}));o==="vertical"?l=Rn().y(Vo).x1(Wo).x0(h=>h.base.x):l=Rn().x(Wo).y1(Vo).y0(h=>h.base.y);var f=l.defined(Ih).curve(a),u=i?c.filter(Ih):c;return f(u)}var d;o==="vertical"&&q(n)?d=Rn().y(Vo).x1(Wo).x0(n):q(n)?d=Rn().x(Wo).y1(Vo).y0(n):d=_o().x(Wo).y(Vo);var m=d.defined(Na).curve(a);return m(s)},Rh=e=>{var{className:t,points:r,path:n,pathRef:o}=e,i=Yr();if((!r||!r.length)&&!n)return null;var a={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||i,connectNulls:e.connectNulls},s=r&&r.length?bO(a):n;return Mh.createElement("path",xu({},lt(e),_p(e),{className:ae("recharts-curve",t),d:s===null?void 0:s,ref:o}))};import*as Ba from"react";import{useEffect as qO,useMemo as HO,useRef as Uo,useState as XO}from"react";import{useEffect as qh,useRef as BO,useState as FO}from"react";function Nh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Dh(e){for(var t=1;te.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),Da=(e,t,r)=>e.map(n=>"".concat(PO(n)," ").concat(t,"ms ").concat(r)).join(","),jh=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(o=>n.includes(o))),Yn=(e,t)=>Object.keys(t).reduce((r,n)=>Dh(Dh({},r),{},{[n]:e(n,t[n])}),{});function Lh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;te+(t-e)*r,bu=e=>{var{from:t,to:r}=e;return t!==r},zh=(e,t,r)=>{var n=Yn((o,i)=>{if(bu(i)){var[a,s]=e(i.from,i.to,i.velocity);return Ne(Ne({},i),{},{from:a,velocity:s})}return i},t);return r<1?Yn((o,i)=>bu(i)&&n[o]!=null?Ne(Ne({},i),{},{velocity:ja(i.velocity,n[o].velocity,r),from:ja(i.from,n[o].from,r)}):i,t):zh(e,n,r-1)};function kO(e,t,r,n,o,i){var a,s=n.reduce((d,m)=>Ne(Ne({},d),{},{[m]:{from:e[m],velocity:0,to:t[m]}}),{}),l=()=>Yn((d,m)=>m.from,s),c=()=>!Object.values(s).filter(bu).length,f=null,u=d=>{a||(a=d);var m=d-a,h=m/r.dt;s=zh(r,s,h),o(Ne(Ne(Ne({},e),t),l())),a=d,c()||(f=i.setTimeout(u))};return()=>(f=i.setTimeout(u),()=>{var d;(d=f)===null||d===void 0||d()})}function _O(e,t,r,n,o,i,a){var s=null,l=o.reduce((u,d)=>{var m=e[d],h=t[d];return m==null||h==null?u:Ne(Ne({},u),{},{[d]:[m,h]})},{}),c,f=u=>{c||(c=u);var d=(u-c)/n,m=Yn((p,x)=>ja(...x,r(d)),l);if(i(Ne(Ne(Ne({},e),t),m)),d<1)s=a.setTimeout(f);else{var h=Yn((p,x)=>ja(...x,r(1)),l);i(Ne(Ne(Ne({},e),t),h))}};return()=>(s=a.setTimeout(f),()=>{var u;(u=s)===null||u===void 0||u()})}var Bh=(e,t,r,n,o,i)=>{var a=jh(e,t);return r==null?()=>(o(Ne(Ne({},e),t)),()=>{}):r.isStepper===!0?kO(e,t,r,a,o,i):_O(e,t,r,n,a,o,i)};var La=1e-4,Vh=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Uh=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Fh=(e,t)=>r=>{var n=Vh(e,t);return Uh(n,r)},IO=(e,t)=>r=>{var n=Vh(e,t),o=[...n.map((i,a)=>i*a).slice(1),0];return Uh(o,r)},TO=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var o=n.map(i=>parseFloat(i));return[o[0],o[1],o[2],o[3]]},MO=function(){for(var t=arguments.length,r=new Array(t),n=0;n{var o=Fh(e,r),i=Fh(t,n),a=IO(e,r),s=c=>c>1?1:c<0?0:c,l=c=>{for(var f=c>1?1:c,u=f,d=0;d<8;++d){var m=o(u)-f,h=a(u);if(Math.abs(m-f)0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:o=17}=t,i=(a,s,l)=>{var c=-(a-s)*r,f=l*n,u=l+(c-f)*o/1e3,d=l*o/1e3+a;return Math.abs(d-s){if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Wh(e);case"spring":return NO();default:if(e.split("(")[0]==="cubic-bezier")return Wh(e)}return typeof e=="function"?e:null};import{createContext as DO,useContext as jO,useMemo as LO}from"react";function Kh(e){var t,r=()=>null,n=!1,o=null,i=a=>{if(!n){if(Array.isArray(a)){if(!a.length)return;var s=a,[l,...c]=s;if(typeof l=="number"){o=e.setTimeout(i.bind(null,c),l);return}i(l),o=e.setTimeout(i.bind(null,c));return}typeof a=="string"&&(t=a,r(t)),typeof a=="object"&&(t=a,r(t)),typeof a=="function"&&a()}};return{stop:()=>{n=!0},start:a=>{n=!1,o&&(o(),o=null),i(a)},subscribe:a=>(r=a,()=>{r=()=>null}),getTimeoutController:()=>e}}var za=class{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),o=null,i=a=>{a-n>=r?t(a):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(i))};return o=requestAnimationFrame(i),()=>{o!=null&&cancelAnimationFrame(o)}}};function Gh(){return Kh(new za)}var zO=DO(Gh);function Yh(e,t){var r=jO(zO);return LO(()=>t??r(e),[e,t,r])}var WO={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Hh={t:0},wu={t:1};function qn(e){var t=Me(e,WO),{isActive:r,canBegin:n,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,f=Oh(),u=r==="auto"?!Ct.isSsr&&!f:r,d=Yh(t.animationId,t.animationManager),[m,h]=FO(u?Hh:wu),p=BO(null);return qh(()=>{u||h(wu)},[u]),qh(()=>{if(!u||!n)return dt;var x=Bh(Hh,wu,$h(i),o,h,d.getTimeoutController()),v=()=>{p.current=x()};return d.start([l,a,v,o,s]),()=>{d.stop(),p.current&&p.current(),s()}},[u,n,o,i,a,l,s,d]),c(m.t)}import{useRef as Xh}from"react";function Hn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=Xh(rr(t)),n=Xh(e);return n.current!==e&&(r.current=rr(t),n.current=e),r.current}var VO=["radius"],UO=["radius"],Zh,Jh,Qh,ev,tv,rv,nv,ov,iv,av;function sv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function lv(e){for(var t=1;t{var i=Wt(r),a=Wt(n),s=Math.min(Math.abs(i)/2,Math.abs(a)/2),l=a>=0?1:-1,c=i>=0?1:-1,f=a>=0&&i>=0||a<0&&i<0?1:0,u;if(s>0&&Array.isArray(o)){for(var d=[0,0,0,0],m=0,h=4;ms?s:x}u=ve(Zh||(Zh=$t(["M",",",""])),e,t+l*d[0]),d[0]>0&&(u+=ve(Jh||(Jh=$t(["A ",",",",0,0,",",",",",""])),d[0],d[0],f,e+c*d[0],t)),u+=ve(Qh||(Qh=$t(["L ",",",""])),e+r-c*d[1],t),d[1]>0&&(u+=ve(ev||(ev=$t(["A ",",",",0,0,",`, + `,",",""])),d[1],d[1],f,e+r,t+l*d[1])),u+=ve(tv||(tv=$t(["L ",",",""])),e+r,t+n-l*d[2]),d[2]>0&&(u+=ve(rv||(rv=$t(["A ",",",",0,0,",`, + `,",",""])),d[2],d[2],f,e+r-c*d[2],t+n)),u+=ve(nv||(nv=$t(["L ",",",""])),e+c*d[3],t+n),d[3]>0&&(u+=ve(ov||(ov=$t(["A ",",",",0,0,",`, + `,",",""])),d[3],d[3],f,e,t+n-l*d[3])),u+="Z"}else if(s>0&&o===+o&&o>0){var v=Math.min(s,o);u=ve(iv||(iv=$t(["M ",",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",","," Z"])),e,t+l*v,v,v,f,e+c*v,t,e+r-c*v,t,v,v,f,e+r,t+l*v,e+r,t+n-l*v,v,v,f,e+r-c*v,t+n,e+c*v,t+n,v,v,f,e,t+n-l*v)}else u=ve(av||(av=$t(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return u},fv={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},dv=e=>{var t=Me(e,fv),r=Uo(null),[n,o]=XO(-1);qO(()=>{if(r.current&&r.current.getTotalLength)try{var b=r.current.getTotalLength();b&&o(b)}catch{}},[]);var{x:i,y:a,width:s,height:l,radius:c,className:f}=t,{animationEasing:u,animationDuration:d,animationBegin:m,isAnimationActive:h,isUpdateAnimationActive:p}=t,x=Uo(s),v=Uo(l),A=Uo(i),P=Uo(a),C=HO(()=>({x:i,y:a,width:s,height:l,radius:c}),[i,a,s,l,c]),E=Hn(C,"rectangle-");if(i!==+i||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var k=ae("recharts-rectangle",f);if(!p){var T=Ie(t),{radius:I}=T,z=cv(T,VO);return Ba.createElement("path",Fa({},z,{x:Wt(i),y:Wt(a),width:Wt(s),height:Wt(l),radius:typeof c=="number"?c:void 0,className:k,d:uv(i,a,s,l,c)}))}var j=x.current,Y=v.current,B=A.current,X=P.current,H="0px ".concat(n===-1?1:n,"px"),re="".concat(n,"px ").concat(n,"px"),g=Da(["strokeDasharray"],d,typeof u=="string"?u:fv.animationEasing);return Ba.createElement(qn,{animationId:E,key:E,canBegin:n>0,duration:d,easing:u,isActive:p,begin:m},b=>{var O=Te(j,s,b),w=Te(Y,l,b),y=Te(B,i,b),S=Te(X,a,b);r.current&&(x.current=O,v.current=w,A.current=y,P.current=S);var M;h?b>0?M={transition:g,strokeDasharray:re}:M={strokeDasharray:H}:M={strokeDasharray:re};var D=Ie(t),{radius:L}=D,W=cv(D,UO);return Ba.createElement("path",Fa({},W,{radius:typeof c=="number"?c:void 0,className:k,d:uv(y,S,O,w,c),ref:r,style:lv(lv({},M),t.style)}))})};function pv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function mv(e){for(var t=1;te*180/Math.PI,Ze=(e,t,r,n)=>({x:e+Math.cos(-$o*n)*r,y:t+Math.sin(-$o*n)*r}),hv=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},tE=(e,t)=>{var{x:r,y:n}=e,{x:o,y:i}=t;return Math.sqrt((r-o)**2+(n-i)**2)},rE=(e,t)=>{var{x:r,y:n}=e,{cx:o,cy:i}=t,a=tE({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a,angle:0};var s=(r-o)/a,l=Math.acos(s);return n>i&&(l=2*Math.PI-l),{radius:a,angle:eE(l),angleInRadian:l}},nE=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:t-i*360,endAngle:r-i*360}},oE=(e,t)=>{var{startAngle:r,endAngle:n}=t,o=Math.floor(r/360),i=Math.floor(n/360),a=Math.min(o,i);return e+a*360},vv=(e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:o,angle:i}=rE({x:r,y:n},t),{innerRadius:a,outerRadius:s}=t;if(os||o===0)return null;var{startAngle:l,endAngle:c}=nE(t),f=i,u;if(l<=c){for(;f>c;)f-=360;for(;f=l&&f<=c}else{for(;f>l;)f-=360;for(;f=c&&f<=l}return u?mv(mv({},t),{},{radius:o,angle:oE(f,t)}):null};import*as Pv from"react";var gv,yv,xv,bv,wv,Sv,Av;function Su(){return Su=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=Se(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Wa=e=>{var{cx:t,cy:r,radius:n,angle:o,sign:i,isExternal:a,cornerRadius:s,cornerIsExternal:l}=e,c=s*(a?1:-1)+n,f=Math.asin(s/c)/$o,u=l?o:o+i*f,d=Ze(t,r,c,u),m=Ze(t,r,n,u),h=l?o-i*f:o,p=Ze(t,r,c*Math.cos(f*$o),h);return{center:d,circleTangency:m,lineTangency:p,theta:f}},Ov=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:i,endAngle:a}=e,s=iE(i,a),l=i+s,c=Ze(t,r,o,i),f=Ze(t,r,o,l),u=ve(gv||(gv=Hr(["M ",",",` + A `,",",`,0, + `,",",`, + `,",",` + `])),c.x,c.y,o,o,+(Math.abs(s)>180),+(i>l),f.x,f.y);if(n>0){var d=Ze(t,r,n,i),m=Ze(t,r,n,l);u+=ve(yv||(yv=Hr(["L ",",",` + A `,",",`,0, + `,",",`, + `,","," Z"])),m.x,m.y,n,n,+(Math.abs(s)>180),+(i<=l),d.x,d.y)}else u+=ve(xv||(xv=Hr(["L ",","," Z"])),t,r);return u},aE=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,cornerRadius:i,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:c}=e,f=Se(c-l),{circleTangency:u,lineTangency:d,theta:m}=Wa({cx:t,cy:r,radius:o,angle:l,sign:f,cornerRadius:i,cornerIsExternal:s}),{circleTangency:h,lineTangency:p,theta:x}=Wa({cx:t,cy:r,radius:o,angle:c,sign:-f,cornerRadius:i,cornerIsExternal:s}),v=s?Math.abs(l-c):Math.abs(l-c)-m-x;if(v<0)return a?ve(bv||(bv=Hr(["M ",",",` + a`,",",",0,0,1,",`,0 + a`,",",",0,0,1,",`,0 + `])),d.x,d.y,i,i,i*2,i,i,-i*2):Ov({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:c});var A=ve(wv||(wv=Hr(["M ",",",` + A`,",",",0,0,",",",",",` + A`,",",",0,",",",",",",",` + A`,",",",0,0,",",",",",` + `])),d.x,d.y,i,i,+(f<0),u.x,u.y,o,o,+(v>180),+(f<0),h.x,h.y,i,i,+(f<0),p.x,p.y);if(n>0){var{circleTangency:P,lineTangency:C,theta:E}=Wa({cx:t,cy:r,radius:n,angle:l,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:k,lineTangency:T,theta:I}=Wa({cx:t,cy:r,radius:n,angle:c,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),z=s?Math.abs(l-c):Math.abs(l-c)-E-I;if(z<0&&i===0)return"".concat(A,"L").concat(t,",").concat(r,"Z");A+=ve(Sv||(Sv=Hr(["L",",",` + A`,",",",0,0,",",",",",` + A`,",",",0,",",",",",",",` + A`,",",",0,0,",",",",","Z"])),T.x,T.y,i,i,+(f<0),k.x,k.y,n,n,+(z>180),+(f>0),P.x,P.y,i,i,+(f<0),C.x,C.y)}else A+=ve(Av||(Av=Hr(["L",",","Z"])),t,r);return A},sE={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Ev=e=>{var t=Me(e,sE),{cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:f,className:u}=t;if(i0&&Math.abs(c-f)<360?p=aE({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(h,m/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:f}):p=Ov({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:c,endAngle:f}),Pv.createElement("path",Su({},Ie(t),{className:d,d:p}))};function Cv(e){return ra(e)?NaN:Number(e)}function Va(e){return e?(e=Cv(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function Ua(e,t,r){r&&typeof r!="number"&&Mo(e,t,r)&&(t=r=void 0),e=Va(e),t===void 0?(t=e,e=0):t=Va(t),r=r===void 0?ee.chartData,kv=_([kt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Au=(e,t,r,n)=>n?kv(e):kt(e),_v=(e,t,r)=>r?kv(e):kt(e);function ht(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(Z(t)&&Z(r))return!0}return!1}function Iv(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function $a(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,o,i;if(Z(r))o=r;else if(typeof r=="function")return;if(Z(n))i=n;else if(typeof n=="function")return;var a=[o,i];if(ht(a))return a}}function Tv(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(ht(n))return Iv(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[o,i]=e,a,s;if(o==="auto")t!=null&&(a=Math.min(...t));else if(q(o))a=o;else if(typeof o=="function")try{t!=null&&(a=o(t?.[0]))}catch{}else if(typeof o=="string"&&cu.test(o)){var l=cu.exec(o);if(l==null||l[1]==null||t==null)a=void 0;else{var c=+l[1];a=t[0]-c}}else a=t?.[0];if(i==="auto")t!=null&&(s=Math.max(...t));else if(q(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[1]))}catch{}else if(typeof i=="string"&&uu.test(i)){var f=uu.exec(i);if(f==null||f[1]==null||t==null)s=void 0;else{var u=+f[1];s=t[1]+u}}else s=t?.[1];var d=[a,s];if(ht(d))return t==null?d:Iv(d,t,r)}}}var ie=Wi(Pu());var Ou=Wi(Pu());function Eu(e){var t;return e===0?t=1:t=Math.floor(new Ou.default(e).abs().log(10).toNumber())+1,t}function Cu(e,t,r){for(var n=new Ou.default(e),o=0,i=[];n.lt(t)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i}var Rv=e=>{var[t,r]=e,[n,o]=[t,r];return t>r&&([n,o]=[r,t]),[n,o]},ku=(e,t,r)=>{if(e.lte(0))return new ie.default(0);var n=Eu(e.toNumber()),o=new ie.default(10).pow(n),i=e.div(o),a=n!==1?.05:.1,s=new ie.default(Math.ceil(i.div(a).toNumber())).add(r).mul(a),l=s.mul(o);return t?new ie.default(l.toNumber()):new ie.default(Math.ceil(l.toNumber()))},Nv=(e,t,r)=>{var n;if(e.lte(0))return new ie.default(0);var o=[1,2,2.5,5],i=e.toNumber(),a=Math.floor(new ie.default(i).abs().log(10).toNumber()),s=new ie.default(10).pow(a),l=e.div(s).toNumber(),c=o.findIndex(m=>m>=l-1e-10);if(c===-1&&(s=s.mul(10),c=0),c+=r,c>=o.length){var f=Math.floor(c/o.length);c%=o.length,s=s.mul(new ie.default(10).pow(f))}var u=(n=o[c])!==null&&n!==void 0?n:1,d=new ie.default(u).mul(s);return t?d:new ie.default(Math.ceil(d.toNumber()))},lE=(e,t,r)=>{var n=new ie.default(1),o=new ie.default(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new ie.default(10).pow(Eu(e)-1),o=new ie.default(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new ie.default(Math.floor(e)))}else e===0?o=new ie.default(Math.floor((t-1)/2)):r||(o=new ie.default(Math.floor(e)));for(var a=Math.floor((t-1)/2),s=[],l=0;l4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:ku;if(!Number.isFinite((r-t)/(n-1)))return{step:new ie.default(0),tickMin:new ie.default(0),tickMax:new ie.default(0)};var s=a(new ie.default(r).sub(t).div(n-1),o,i),l;t<=0&&r>=0?l=new ie.default(0):(l=new ie.default(t).add(r).div(2),l=l.sub(new ie.default(l).mod(s)));var c=Math.ceil(l.sub(t).div(s).toNumber()),f=Math.ceil(new ie.default(r).sub(l).div(s).toNumber()),u=c+f+1;return u>n?Dv(t,r,n,o,i+1,a):(u0?f+(n-u):f,c=r>0?c:c+(n-u)),{step:s,tickMin:l.sub(new ie.default(c).mul(s)),tickMax:l.add(new ie.default(f).mul(s))})};var Ga=function(t){var[r,n]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",s=Math.max(o,2),[l,c]=Rv([r,n]);if(l===-1/0||c===1/0){var f=c===1/0?[l,...Array(o-1).fill(1/0)]:[...Array(o-1).fill(-1/0),c];return r>n?f.reverse():f}if(l===c)return lE(l,o,i);var u=a==="snap125"?Nv:ku,{step:d,tickMin:m,tickMax:h}=Dv(l,c,s,i,0,u),p=Cu(m,h.add(new ie.default(.1).mul(d)),d);return r>n?p.reverse():p},Ya=function(t,r){var[n,o]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[s,l]=Rv([n,o]);if(s===-1/0||l===1/0)return[n,o];if(s===l)return[s];var c=a==="snap125"?Nv:ku,f=Math.max(r,2),u=c(new ie.default(l).sub(s).div(f-1),i,0),d=[...Cu(new ie.default(s),new ie.default(l),u),l];return i===!1&&(d=d.map(m=>Math.round(m))),n>o?d.reverse():d};var _u=e=>e.rootProps.maxBarSize,jv=e=>e.rootProps.barGap,qa=e=>e.rootProps.barCategoryGap,Lv=e=>e.rootProps.barSize,Xn=e=>e.rootProps.stackOffset,Ha=e=>e.rootProps.reverseStackOrder,Xa=e=>e.options.chartName,Iu=e=>e.rootProps.syncId,zv=e=>e.rootProps.syncMethod,Tu=e=>e.options.eventEmitter;var Oe={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3};var yr={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:"auto",orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"auto",zIndex:Oe.axis};var Lt={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:"auto",label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,tickLine:!0,type:"auto",zIndex:Oe.axis};var Xr=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function Mu(e,t,r){if(r!=="auto")return r;if(e!=null)return Dt(e,t)?"category":"number"}function Bv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Za(e){for(var t=1;t{if(t!=null)return e.polarAxis.angleAxis[t]},Ja=_([dE,yu],(e,t)=>{var r;if(e!=null)return e;var n=(r=Mu(t,"angleAxis",Fv.type))!==null&&r!==void 0?r:"category";return Za(Za({},Fv),{},{type:n})}),pE=(e,t)=>e.polarAxis.radiusAxis[t],Qa=_([pE,yu],(e,t)=>{var r;if(e!=null)return e;var n=(r=Mu(t,"radiusAxis",Wv.type))!==null&&r!==void 0?r:"category";return Za(Za({},Wv),{},{type:n})}),es=e=>e.polarOptions,Ru=_([He,Xe,de],hv),Vv=_([es,Ru],(e,t)=>{if(e!=null)return $e(e.innerRadius,t,0)}),Uv=_([es,Ru],(e,t)=>{if(e!=null)return $e(e.outerRadius,t,t*.8)}),mE=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},Nu=_([es],mE),fW=_([Ja,Nu],Xr),Du=_([Ru,Vv,Uv],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]}),dW=_([Qa,Du],Xr),ts=_([oe,es,Vv,Uv,He,Xe],(e,t,r,n,o,i)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:a,cy:s,startAngle:l,endAngle:c}=t;return{cx:$e(a,o,o/2),cy:$e(s,i,i/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}});var De=(e,t)=>t;var Ko=(e,t,r)=>r;function Zn(e){return e?.id}function rs(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:o,dataKey:i}=r,a=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:n;if(!(c==null||c.length===0)){var f=Zn(s);c.forEach((u,d)=>{var m=i==null||o?d:String(we(u,i,null)),h=we(u,s.dataKey,0),p;a.has(m)?p=a.get(m):p={},Object.assign(p,{[f]:h}),a.set(m,p)})}}),Array.from(a.values())}function Zr(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Jn=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Qn(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function $v(e,t){if(e.length===t.length){for(var r=0;r{var t=oe(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"};var xr=e=>e.tooltip.settings.axisId;function Go(e){if(e!=null){var t=e.ticks,r=e.bandwidth,n=e.range(),o=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:function(i){function a(){return i.apply(this,arguments)}return a.toString=function(){return i.toString()},a}(()=>o),rangeMin:()=>o[0],rangeMax:()=>o[1],isInRange(i){var a=o[0],s=o[1];return a<=s?i>=a&&i<=s:i>=s&&i<=a},bandwidth:r?()=>r.call(e):void 0,ticks:t?i=>t.call(e,i):void 0,map:(i,a)=>{var s=e(i);if(s!=null){if(e.bandwidth&&a!==null&&a!==void 0&&a.position){var l=e.bandwidth();switch(a.position){case"middle":s+=l/2;break;case"end":s+=l;break;default:break}}return s}}}}}var Kv=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!ht(t)){for(var r,n,o=0;on)&&(n=i))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};var Or={};Hw(Or,{scaleBand:()=>Xo,scaleDiverging:()=>Ls,scaleDivergingLog:()=>hf,scaleDivergingPow:()=>zs,scaleDivergingSqrt:()=>py,scaleDivergingSymlog:()=>vf,scaleIdentity:()=>ws,scaleImplicit:()=>cs,scaleLinear:()=>bs,scaleLog:()=>Ss,scaleOrdinal:()=>ro,scalePoint:()=>Jv,scalePow:()=>si,scaleQuantile:()=>Os,scaleQuantize:()=>Es,scaleRadial:()=>Ps,scaleSequential:()=>Rs,scaleSequentialLog:()=>pf,scaleSequentialPow:()=>Ns,scaleSequentialQuantile:()=>Ds,scaleSequentialSqrt:()=>dy,scaleSequentialSymlog:()=>mf,scaleSqrt:()=>Ng,scaleSymlog:()=>As,scaleThreshold:()=>Cs,scaleTime:()=>ff,scaleUtc:()=>df,tickFormat:()=>ri});function nt(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function ju(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Jr(e){let t,r,n;e.length!==2?(t=nt,r=(s,l)=>nt(e(s),l),n=(s,l)=>e(s)-l):(t=e===nt||e===ju?e:hE,r=e,n=e);function o(s,l,c=0,f=s.length){if(c>>1;r(s[u],l)<0?c=u+1:f=u}while(c>>1;r(s[u],l)<=0?c=u+1:f=u}while(cc&&n(s[u-1],l)>-n(s[u],l)?u-1:u}return{left:o,center:a,right:i}}function hE(){return 0}function Yo(e){return e===null?NaN:+e}function*Gv(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}var Yv=Jr(nt),qv=Yv.right,vE=Yv.left,gE=Jr(Yo).center,zt=qv;var eo=class extends Map{constructor(t,r=bE){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[n,o]of t)this.set(n,o)}get(t){return super.get(Hv(this,t))}has(t){return super.has(Hv(this,t))}set(t,r){return super.set(yE(this,t),r)}delete(t){return super.delete(xE(this,t))}};function Hv({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function yE({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function xE({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function bE(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Xv(e=nt){if(e===nt)return Lu;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{let n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Lu(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}var wE=Math.sqrt(50),SE=Math.sqrt(10),AE=Math.sqrt(2);function ns(e,t,r){let n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=wE?10:i>=SE?5:i>=AE?2:1,s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(e*c),l=Math.round(t*c),s/ct&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(e/c),l=Math.round(t/c),s*ct&&--l),l0))return[];if(e===t)return[e];let n=t=o))return[];let s=i-o+1,l=new Array(s);if(n)if(a<0)for(let c=0;c=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r=o)&&(r=o)}return r}function is(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function as(e,t,r=0,n=1/0,o){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(o=o===void 0?Lu:Xv(o);n>r;){if(n-r>600){let l=n-r+1,c=t-r+1,f=Math.log(l),u=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*u*(l-u)/l)*(c-l/2<0?-1:1),m=Math.max(r,Math.floor(t-c*u/l+d)),h=Math.min(n,Math.floor(t+(l-c)*u/l+d));as(e,t,m,h,o)}let i=e[t],a=r,s=n;for(Ho(e,r,t),o(e[n],i)>0&&Ho(e,r,n);a0;)--s}o(e[r],i)===0?Ho(e,r,s):(++s,Ho(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Ho(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function ss(e,t,r){if(e=Float64Array.from(Gv(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return is(e);if(t>=1)return os(e);var n,o=(n-1)*t,i=Math.floor(o),a=os(as(e,i).subarray(0,i+1)),s=is(e.subarray(i+1));return a+(s-a)*(o-i)}}function zu(e,t,r=Yo){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,o=(n-1)*t,i=Math.floor(o),a=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function ls(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var n=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(o);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?fs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?fs(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=OE.exec(e))?new ut(t[1],t[2],t[3],1):(t=EE.exec(e))?new ut(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=CE.exec(e))?fs(t[1],t[2],t[3],t[4]):(t=kE.exec(e))?fs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_E.exec(e))?ig(t[1],t[2]/100,t[3]/100,1):(t=IE.exec(e))?ig(t[1],t[2]/100,t[3]/100,t[4]):Qv.hasOwnProperty(e)?rg(Qv[e]):e==="transparent"?new ut(NaN,NaN,NaN,0):null}function rg(e){return new ut(e>>16&255,e>>8&255,e&255,1)}function fs(e,t,r,n){return n<=0&&(e=t=r=NaN),new ut(e,t,r,n)}function RE(e){return e instanceof Qo||(e=br(e)),e?(e=e.rgb(),new ut(e.r,e.g,e.b,e.opacity)):new ut}function oo(e,t,r,n){return arguments.length===1?RE(e):new ut(e,t,r,n??1)}function ut(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}us(ut,oo,Bu(Qo,{brighter(e){return e=e==null?ps:Math.pow(ps,e),new ut(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Zo:Math.pow(Zo,e),new ut(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ut(tn(this.r),tn(this.g),tn(this.b),ms(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ng,formatHex:ng,formatHex8:NE,formatRgb:og,toString:og}));function ng(){return`#${en(this.r)}${en(this.g)}${en(this.b)}`}function NE(){return`#${en(this.r)}${en(this.g)}${en(this.b)}${en((isNaN(this.opacity)?1:this.opacity)*255)}`}function og(){let e=ms(this.opacity);return`${e===1?"rgb(":"rgba("}${tn(this.r)}, ${tn(this.g)}, ${tn(this.b)}${e===1?")":`, ${e})`}`}function ms(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function en(e){return e=tn(e),(e<16?"0":"")+e.toString(16)}function ig(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Bt(e,t,r,n)}function sg(e){if(e instanceof Bt)return new Bt(e.h,e.s,e.l,e.opacity);if(e instanceof Qo||(e=br(e)),!e)return new Bt;if(e instanceof Bt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(r-n)/s+(r0&&l<1?0:a,new Bt(a,s,l,e.opacity)}function lg(e,t,r,n){return arguments.length===1?sg(e):new Bt(e,t,r,n??1)}function Bt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}us(Bt,lg,Bu(Qo,{brighter(e){return e=e==null?ps:Math.pow(ps,e),new Bt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Zo:Math.pow(Zo,e),new Bt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new ut(Fu(e>=240?e-240:e+120,o,n),Fu(e,o,n),Fu(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Bt(ag(this.h),ds(this.s),ds(this.l),ms(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ms(this.opacity);return`${e===1?"hsl(":"hsla("}${ag(this.h)}, ${ds(this.s)*100}%, ${ds(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ag(e){return e=(e||0)%360,e<0?e+360:e}function ds(e){return Math.max(0,Math.min(1,e||0))}function Fu(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function Wu(e,t,r,n,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*r+(1+3*e+3*i-3*a)*n+a*o)/6}function cg(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[n],i=e[n+1],a=n>0?e[n-1]:2*o-i,s=n()=>e;function DE(e,t){return function(r){return e+r*t}}function jE(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function fg(e){return(e=+e)==1?hs:function(t,r){return r-t?jE(t,r,e):ei(isNaN(t)?r:t)}}function hs(e,t){var r=t-e;return r?DE(e,r):ei(isNaN(e)?t:e)}var Vu=function e(t){var r=fg(t);function n(o,i){var a=r((o=oo(o)).r,(i=oo(i)).r),s=r(o.g,i.g),l=r(o.b,i.b),c=hs(o.opacity,i.opacity);return function(f){return o.r=a(f),o.g=s(f),o.b=l(f),o.opacity=c(f),o+""}}return n.gamma=e,n}(1);function dg(e){return function(t){var r=t.length,n=new Array(r),o=new Array(r),i=new Array(r),a,s;for(a=0;ar&&(i=t.slice(r,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:wr(n,o)})),r=Uu.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function FE(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o2?WE:FE,l=c=null,u}function u(d){return d==null||isNaN(d=+d)?i:(l||(l=s(e.map(n),t,r)))(n(a(d)))}return u.invert=function(d){return a(o((c||(c=s(t,e.map(n),wr)))(d)))},u.domain=function(d){return arguments.length?(e=Array.from(d,Sr),f()):e.slice()},u.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},u.rangeRound=function(d){return t=Array.from(d),r=rn,f()},u.clamp=function(d){return arguments.length?(a=d?!0:je,f()):a!==je},u.interpolate=function(d){return arguments.length?(r=d,f()):r},u.unknown=function(d){return arguments.length?(i=d,u):i},function(d,m){return n=d,o=m,f()}}function on(){return nn()(je,je)}function bg(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function an(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Yt(e){return e=an(Math.abs(e)),e?e[1]:NaN}function wg(e,t){return function(r,n){for(var o=r.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(o-=s,o+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function Sg(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var VE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qt(e){if(!(t=VE.exec(e)))throw new Error("invalid format: "+e);var t;return new gs({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}qt.prototype=gs.prototype;function gs(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}gs.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ag(e){e:for(var t=e.length,r=1,n=-1,o;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(o+1):e}var ti;function Pg(e,t){var r=an(e,t);if(!r)return ti=void 0,e.toPrecision(t);var n=r[0],o=r[1],i=o-(ti=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+an(e,Math.max(0,t+i-1))[0]}function Yu(e,t){var r=an(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}var qu={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:bg,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Yu(e*100,t),r:Yu,s:Pg,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Hu(e){return e}var Og=Array.prototype.map,Eg=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Cg(e){var t=e.grouping===void 0||e.thousands===void 0?Hu:wg(Og.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?Hu:Sg(Og.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"\u2212":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(u,d){u=qt(u);var m=u.fill,h=u.align,p=u.sign,x=u.symbol,v=u.zero,A=u.width,P=u.comma,C=u.precision,E=u.trim,k=u.type;k==="n"?(P=!0,k="g"):qu[k]||(C===void 0&&(C=12),E=!0,k="g"),(v||m==="0"&&h==="=")&&(v=!0,m="0",h="=");var T=(d&&d.prefix!==void 0?d.prefix:"")+(x==="$"?r:x==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():""),I=(x==="$"?n:/[%p]/.test(k)?a:"")+(d&&d.suffix!==void 0?d.suffix:""),z=qu[k],j=/[defgprs%]/.test(k);C=C===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function Y(B){var X=T,H=I,re,g,b;if(k==="c")H=z(B)+H,B="";else{B=+B;var O=B<0||1/B<0;if(B=isNaN(B)?l:z(Math.abs(B),C),E&&(B=Ag(B)),O&&+B==0&&p!=="+"&&(O=!1),X=(O?p==="("?p:s:p==="-"||p==="("?"":p)+X,H=(k==="s"&&!isNaN(B)&&ti!==void 0?Eg[8+ti/3]:"")+H+(O&&p==="("?")":""),j){for(re=-1,g=B.length;++reb||b>57){H=(b===46?o+B.slice(re+1):B.slice(re))+H,B=B.slice(0,re);break}}}P&&!v&&(B=t(B,1/0));var w=X.length+B.length+H.length,y=w>1)+X+B+H+y.slice(w);break;default:B=y+X+B+H;break}return i(B)}return Y.toString=function(){return u+""},Y}function f(u,d){var m=Math.max(-8,Math.min(8,Math.floor(Yt(d)/3)))*3,h=Math.pow(10,-m),p=c((u=qt(u),u.type="f",u),{suffix:Eg[8+m/3]});return function(x){return p(h*x)}}return{format:c,formatPrefix:f}}var ys,io,xs;Xu({thousands:",",grouping:[3],currency:["$",""]});function Xu(e){return ys=Cg(e),io=ys.format,xs=ys.formatPrefix,ys}function Zu(e){return Math.max(0,-Yt(Math.abs(e)))}function Ju(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yt(t)/3)))*3-Yt(Math.abs(e)))}function Qu(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yt(t)-Yt(e))+1}function ri(e,t,r,n){var o=to(e,t,r),i;switch(n=qt(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=Ju(o,a))&&(n.precision=i),xs(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=Qu(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=Zu(o))&&(n.precision=i-(n.type==="%")*2);break}}return io(n)}function ot(e){var t=e.domain;return e.ticks=function(r){var n=t();return Qr(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var o=t();return ri(o[0],o[o.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),o=0,i=n.length-1,a=n[o],s=n[i],l,c,f=10;for(s0;){if(c=qo(a,s,r),c===l)return n[o]=a,n[i]=s,t(n);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function bs(){var e=on();return e.copy=function(){return Gt(e,bs())},ye.apply(e,arguments),ot(e)}function ws(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Sr),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return ws(e).unknown(t)},e=arguments.length?Array.from(e,Sr):[0,1],ot(r)}function ni(e,t){e=e.slice();var r=0,n=e.length-1,o=e[r],i=e[n],a;return iMath.pow(e,t)}function YE(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Ig(e){return(t,r)=>-e(-t,r)}function oi(e){let t=e(kg,_g),r=t.domain,n=10,o,i;function a(){return o=YE(n),i=GE(n),r()[0]<0?(o=Ig(o),i=Ig(i),e(UE,$E)):e(kg,_g),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{let l=r(),c=l[0],f=l[l.length-1],u=f0){for(;d<=m;++d)for(h=1;hf)break;v.push(p)}}else for(;d<=m;++d)for(h=n-1;h>=1;--h)if(p=d>0?h/i(-d):h*i(d),!(pf)break;v.push(p)}v.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=qt(l)).precision==null&&(l.trim=!0),l=io(l)),s===1/0)return l;let c=Math.max(1,n*s/t.ticks().length);return f=>{let u=f/i(Math.round(o(f)));return u*nr(ni(r(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function Ss(){let e=oi(nn()).domain([1,10]);return e.copy=()=>Gt(e,Ss()).base(e.base()),ye.apply(e,arguments),e}function Tg(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Mg(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ii(e){var t=1,r=e(Tg(t),Mg(t));return r.constant=function(n){return arguments.length?e(Tg(t=+n),Mg(t)):t},ot(r)}function As(){var e=ii(nn());return e.copy=function(){return Gt(e,As()).constant(e.constant())},ye.apply(e,arguments)}function Rg(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function qE(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function HE(e){return e<0?-e*e:e*e}function ai(e){var t=e(je,je),r=1;function n(){return r===1?e(je,je):r===.5?e(qE,HE):e(Rg(r),Rg(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,n()):r},ot(t)}function si(){var e=ai(nn());return e.copy=function(){return Gt(e,si()).exponent(e.exponent())},ye.apply(e,arguments),e}function Ng(){return si.apply(null,arguments).exponent(.5)}function Dg(e){return Math.sign(e)*e*e}function XE(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Ps(){var e=on(),t=[0,1],r=!1,n;function o(i){var a=XE(e(i));return isNaN(a)?n:r?Math.round(a):a}return o.invert=function(i){return e.invert(Dg(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,Sr)).map(Dg)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(r=!!i,o):r},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return Ps(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},ye.apply(o,arguments),ot(o)}function Os(){var e=[],t=[],r=[],n;function o(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[c-1],n[c]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return n.slice()},a.copy=function(){return Es().domain([e,t]).range(o).unknown(i)},ye.apply(ot(a),arguments)}function Cs(){var e=[.5],t=[0,1],r,n=1;function o(i){return i!=null&&i<=i?t[zt(e,i,0,n)]:r}return o.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return Cs().domain(e).range(t).unknown(r)},ye.apply(o,arguments)}var ef=new Date,tf=new Date;function pe(e,t,r,n){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{let a=o(i),s=o.ceil(i);return i-a(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{let l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(cpe(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),r&&(o.count=(i,a)=>(ef.setTime(+i),tf.setTime(+a),e(ef),e(tf),Math.floor(r(ef,tf))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(n?a=>n(a)%i===0:a=>o.count(0,a)%i===0):o)),o}var li=pe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);li.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?pe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):li);var $$=li.range;var It=pe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),jg=It.range;var ao=pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),ZE=ao.range,so=pe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),JE=so.range;var lo=pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),QE=lo.range,co=pe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),eC=co.range;var ar=pe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),tC=ar.range,cn=pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),rC=cn.range,ks=pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),nC=ks.range;function un(e){return pe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}var sr=un(0),uo=un(1),zg=un(2),Bg=un(3),Ar=un(4),Fg=un(5),Wg=un(6),Vg=sr.range,oC=uo.range,iC=zg.range,aC=Bg.range,sC=Ar.range,lC=Fg.range,cC=Wg.range;function fn(e){return pe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var lr=fn(0),fo=fn(1),Ug=fn(2),$g=fn(3),Pr=fn(4),Kg=fn(5),Gg=fn(6),Yg=lr.range,uC=fo.range,fC=Ug.range,dC=$g.range,pC=Pr.range,mC=Kg.range,hC=Gg.range;var po=pe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),vC=po.range,mo=pe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),gC=mo.range;var gt=pe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());gt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:pe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});var yC=gt.range,yt=pe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());yt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:pe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});var xC=yt.range;function Hg(e,t,r,n,o,i){let a=[[It,1,1e3],[It,5,5*1e3],[It,15,15*1e3],[It,30,30*1e3],[i,1,6e4],[i,5,5*6e4],[i,15,15*6e4],[i,30,30*6e4],[o,1,36e5],[o,3,3*36e5],[o,6,6*36e5],[o,12,12*36e5],[n,1,864e5],[n,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function s(c,f,u){let d=fx).right(a,d);if(m===a.length)return e.every(to(c/31536e6,f/31536e6,u));if(m===0)return li.every(Math.max(to(c,f,u),1));let[h,p]=a[d/a[m-1][2]53)return null;"w"in N||(N.w=1),"Z"in N?(Q=lf(ui(N.y,0,1)),Ue=Q.getUTCDay(),Q=Ue>4||Ue===0?fo.ceil(Q):fo(Q),Q=cn.offset(Q,(N.V-1)*7),N.y=Q.getUTCFullYear(),N.m=Q.getUTCMonth(),N.d=Q.getUTCDate()+(N.w+6)%7):(Q=sf(ui(N.y,0,1)),Ue=Q.getDay(),Q=Ue>4||Ue===0?uo.ceil(Q):uo(Q),Q=ar.offset(Q,(N.V-1)*7),N.y=Q.getFullYear(),N.m=Q.getMonth(),N.d=Q.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),Ue="Z"in N?lf(ui(N.y,0,1)).getUTCDay():sf(ui(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(Ue+5)%7:N.w+N.U*7-(Ue+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,lf(N)):sf(N)}}function I(R,V,U,N){for(var be=0,Q=V.length,Ue=U.length,Fe,St;be=Ue)return-1;if(Fe=V.charCodeAt(be++),Fe===37){if(Fe=V.charAt(be++),St=E[Fe in Xg?V.charAt(be++):Fe],!St||(N=St(R,U,N))<0)return-1}else if(Fe!=U.charCodeAt(N++))return-1}return N}function z(R,V,U){var N=c.exec(V.slice(U));return N?(R.p=f.get(N[0].toLowerCase()),U+N[0].length):-1}function j(R,V,U){var N=m.exec(V.slice(U));return N?(R.w=h.get(N[0].toLowerCase()),U+N[0].length):-1}function Y(R,V,U){var N=u.exec(V.slice(U));return N?(R.w=d.get(N[0].toLowerCase()),U+N[0].length):-1}function B(R,V,U){var N=v.exec(V.slice(U));return N?(R.m=A.get(N[0].toLowerCase()),U+N[0].length):-1}function X(R,V,U){var N=p.exec(V.slice(U));return N?(R.m=x.get(N[0].toLowerCase()),U+N[0].length):-1}function H(R,V,U){return I(R,t,V,U)}function re(R,V,U){return I(R,r,V,U)}function g(R,V,U){return I(R,n,V,U)}function b(R){return a[R.getDay()]}function O(R){return i[R.getDay()]}function w(R){return l[R.getMonth()]}function y(R){return s[R.getMonth()]}function S(R){return o[+(R.getHours()>=12)]}function M(R){return 1+~~(R.getMonth()/3)}function D(R){return a[R.getUTCDay()]}function L(R){return i[R.getUTCDay()]}function W(R){return l[R.getUTCMonth()]}function F(R){return s[R.getUTCMonth()]}function $(R){return o[+(R.getUTCHours()>=12)]}function he(R){return 1+~~(R.getUTCMonth()/3)}return{format:function(R){var V=k(R+="",P);return V.toString=function(){return R},V},parse:function(R){var V=T(R+="",!1);return V.toString=function(){return R},V},utcFormat:function(R){var V=k(R+="",C);return V.toString=function(){return R},V},utcParse:function(R){var V=T(R+="",!0);return V.toString=function(){return R},V}}}var Xg={"-":"",_:" ",0:"0"},Ve=/^\s*\d+/,wC=/^%/,SC=/[\\^$*+?|[\]().{}]/g;function le(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i[t.toLowerCase(),r]))}function PC(e,t,r){var n=Ve.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function OC(e,t,r){var n=Ve.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function EC(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function CC(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function kC(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Zg(e,t,r){var n=Ve.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Jg(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function _C(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function IC(e,t,r){var n=Ve.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function TC(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Qg(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function MC(e,t,r){var n=Ve.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function ey(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function RC(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function NC(e,t,r){var n=Ve.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function DC(e,t,r){var n=Ve.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function jC(e,t,r){var n=Ve.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function LC(e,t,r){var n=wC.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function zC(e,t,r){var n=Ve.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function BC(e,t,r){var n=Ve.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function ty(e,t){return le(e.getDate(),t,2)}function FC(e,t){return le(e.getHours(),t,2)}function WC(e,t){return le(e.getHours()%12||12,t,2)}function VC(e,t){return le(1+ar.count(gt(e),e),t,3)}function ay(e,t){return le(e.getMilliseconds(),t,3)}function UC(e,t){return ay(e,t)+"000"}function $C(e,t){return le(e.getMonth()+1,t,2)}function KC(e,t){return le(e.getMinutes(),t,2)}function GC(e,t){return le(e.getSeconds(),t,2)}function YC(e){var t=e.getDay();return t===0?7:t}function qC(e,t){return le(sr.count(gt(e)-1,e),t,2)}function sy(e){var t=e.getDay();return t>=4||t===0?Ar(e):Ar.ceil(e)}function HC(e,t){return e=sy(e),le(Ar.count(gt(e),e)+(gt(e).getDay()===4),t,2)}function XC(e){return e.getDay()}function ZC(e,t){return le(uo.count(gt(e)-1,e),t,2)}function JC(e,t){return le(e.getFullYear()%100,t,2)}function QC(e,t){return e=sy(e),le(e.getFullYear()%100,t,2)}function e1(e,t){return le(e.getFullYear()%1e4,t,4)}function t1(e,t){var r=e.getDay();return e=r>=4||r===0?Ar(e):Ar.ceil(e),le(e.getFullYear()%1e4,t,4)}function r1(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+le(t/60|0,"0",2)+le(t%60,"0",2)}function ry(e,t){return le(e.getUTCDate(),t,2)}function n1(e,t){return le(e.getUTCHours(),t,2)}function o1(e,t){return le(e.getUTCHours()%12||12,t,2)}function i1(e,t){return le(1+cn.count(yt(e),e),t,3)}function ly(e,t){return le(e.getUTCMilliseconds(),t,3)}function a1(e,t){return ly(e,t)+"000"}function s1(e,t){return le(e.getUTCMonth()+1,t,2)}function l1(e,t){return le(e.getUTCMinutes(),t,2)}function c1(e,t){return le(e.getUTCSeconds(),t,2)}function u1(e){var t=e.getUTCDay();return t===0?7:t}function f1(e,t){return le(lr.count(yt(e)-1,e),t,2)}function cy(e){var t=e.getUTCDay();return t>=4||t===0?Pr(e):Pr.ceil(e)}function d1(e,t){return e=cy(e),le(Pr.count(yt(e),e)+(yt(e).getUTCDay()===4),t,2)}function p1(e){return e.getUTCDay()}function m1(e,t){return le(fo.count(yt(e)-1,e),t,2)}function h1(e,t){return le(e.getUTCFullYear()%100,t,2)}function v1(e,t){return e=cy(e),le(e.getUTCFullYear()%100,t,2)}function g1(e,t){return le(e.getUTCFullYear()%1e4,t,4)}function y1(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Pr(e):Pr.ceil(e),le(e.getUTCFullYear()%1e4,t,4)}function x1(){return"+0000"}function ny(){return"%"}function oy(e){return+e}function iy(e){return Math.floor(+e/1e3)}var ho,_s,uy,Is,fy;uf({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function uf(e){return ho=cf(e),_s=ho.format,uy=ho.parse,Is=ho.utcFormat,fy=ho.utcParse,ho}function b1(e){return new Date(e)}function w1(e){return e instanceof Date?+e:+new Date(+e)}function Ts(e,t,r,n,o,i,a,s,l,c){var f=on(),u=f.invert,d=f.domain,m=c(".%L"),h=c(":%S"),p=c("%I:%M"),x=c("%I %p"),v=c("%a %d"),A=c("%b %d"),P=c("%B"),C=c("%Y");function E(k){return(l(k)t(o/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(o,i)=>ss(e,i/n))},r.copy=function(){return Ds(t).domain(e)},_t.apply(r,arguments)}function js(){var e=0,t=.5,r=1,n=1,o,i,a,s,l,c=je,f,u=!1,d;function m(p){return isNaN(p=+p)?d:(p=.5+((p=+f(p))-i)*(n*p{if(e!=null){var{scale:n,type:o}=e;if(n==="auto")return o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":o==="category"?"band":"linear";if(typeof n=="string")return P1(n)?n:"point"}};function O1(e,t){for(var r=0,n=e.length,o=e[0]t)?r=i+1:n=i}return r}function Fs(e,t){if(e){var r=t??e.domain(),n=r.map(i=>{var a;return(a=e(i))!==null&&a!==void 0?a:0}),o=e.range();if(!(r.length===0||o.length<2))return i=>{var a,s,l=O1(n,i);if(l<=0)return r[0];if(l>=r.length)return r[r.length-1];var c=(a=n[l-1])!==null&&a!==void 0?a:0,f=(s=n[l])!==null&&s!==void 0?s:0;return Math.abs(i-c)<=Math.abs(i-f)?r[l-1]:r[l]}}}function hy(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):Fs(e,void 0)}function vy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ws(e){for(var t=1;te.cartesianAxis.xAxis[t],Xt=(e,t)=>{var r=_1(e,t);return r??yf},xf={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:gf,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:$r},I1=(e,t)=>e.cartesianAxis.yAxis[t],Zt=(e,t)=>{var r=I1(e,t);return r??xf},T1={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},bf=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??T1},it=(e,t,r)=>{switch(t){case"xAxis":return Xt(e,r);case"yAxis":return Zt(e,r);case"zAxis":return bf(e,r);case"angleAxis":return Ja(e,r);case"radiusAxis":return Qa(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},M1=(e,t,r)=>{switch(t){case"xAxis":return Xt(e,r);case"yAxis":return Zt(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},hi=(e,t,r)=>{switch(t){case"xAxis":return Xt(e,r);case"yAxis":return Zt(e,r);case"angleAxis":return Ja(e,r);case"radiusAxis":return Qa(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},wf=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Sf(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Vs=e=>e.graphicalItems.cartesianItems,R1=_([De,Ko],Sf),Af=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),vi=_([Vs,it,R1],Af,{memoizeOptions:{resultEqualityCheck:Qn}}),yy=_([vi],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Zr)),Pf=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),N1=_([vi],Pf),Of=e=>e.map(t=>t.data).filter(Boolean).flat(1),D1=_([vi],Of,{memoizeOptions:{resultEqualityCheck:Qn}}),Ef=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:o}=t;return e.length>0?e:r.slice(n,o+1)},Cf=_([D1,Au],Ef),kf=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:we(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(o=>({value:we(o,n)}))):e.map(n=>({value:n})),gi=_([Cf,it,vi],kf);function vo(e){if(Vt(e)||e instanceof Date){var t=Number(e);if(Z(t))return t}}function gy(e){if(Array.isArray(e)){var t=[vo(e[0]),vo(e[1])];return ht(t)?t:void 0}var r=vo(e);if(r!=null)return[r,r]}function ur(e){return e.map(vo).filter(Ke)}function j1(e,t){var r=vo(e),n=vo(t);return r==null&&n==null?0:r==null?-1:n==null?1:r-n}var L1=_([gi],e=>e?.map(t=>t.value).sort(j1));function xy(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function z1(e,t,r){return!r||typeof t!="number"||qe(t)?[]:r.length?ur(r.flatMap(n=>{var o=we(e,n.dataKey),i,a;if(Array.isArray(o)?[i,a]=o:i=a=o,!(!Z(i)||!Z(a)))return[t-i,t+a]})):[]}var Le=e=>{var t=ke(e),r=xr(e);return hi(e,t,r)},Er=_([Le],e=>e?.dataKey),B1=_([yy,Au,Le],rs),_f=(e,t,r,n)=>{var o={},i=t.reduce((a,s)=>{if(s.stackId==null)return a;var l=a[s.stackId];return l==null&&(l=[]),l.push(s),a[s.stackId]=l,a},o);return Object.fromEntries(Object.entries(i).map(a=>{var[s,l]=a,c=n?[...l].reverse():l,f=c.map(Zn);return[s,{stackedData:Gm(e,f,r),graphicalItems:c}]}))},Us=_([B1,yy,Xn,Ha],_f),If=(e,t,r,n)=>{var{dataStartIndex:o,dataEndIndex:i}=t;if(n==null&&r!=="zAxis"){var a=Hm(e,o,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},F1=_([it],e=>e.allowDataOverflow),$s=e=>{var t;if(e==null||!("domain"in e))return gf;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=ur(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:gf},by=_([it],$s),wy=_([by,F1],$a),W1=_([Us,kt,De,wy],If,{memoizeOptions:{resultEqualityCheck:Jn}}),Ks=e=>e.errorBars,V1=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>xy(r,n)),mi=function(){for(var t=arguments.length,r=new Array(t),n=0;n{var i,a;if(r.length>0&&e.forEach(s=>{r.forEach(l=>{var c,f,u=(c=n[l.id])===null||c===void 0?void 0:c.filter(v=>xy(o,v)),d=we(s,(f=t.dataKey)!==null&&f!==void 0?f:l.dataKey),m=z1(s,d,u);if(m.length>=2){var h=Math.min(...m),p=Math.max(...m);(i==null||ha)&&(a=p)}var x=gy(d);x!=null&&(i=i==null?x[0]:Math.min(i,x[0]),a=a==null?x[1]:Math.max(a,x[1]))})}),t?.dataKey!=null&&e.forEach(s=>{var l=gy(we(s,t.dataKey));l!=null&&(i=i==null?l[0]:Math.min(i,l[0]),a=a==null?l[1]:Math.max(a,l[1]))}),Z(i)&&Z(a))return[i,a]},U1=_([Cf,it,N1,Ks,De],Tf,{memoizeOptions:{resultEqualityCheck:Jn}});function $1(e){var{value:t}=e;if(Vt(t)||t instanceof Date)return t}var K1=(e,t,r)=>{var n=e.map($1).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&_c(n))?Ua(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},Mf=e=>e.referenceElements.dots,dn=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),G1=_([Mf,De,Ko],dn),Rf=e=>e.referenceElements.areas,Y1=_([Rf,De,Ko],dn),Nf=e=>e.referenceElements.lines,q1=_([Nf,De,Ko],dn),Df=(e,t)=>{if(e!=null){var r=ur(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},H1=_(G1,De,Df),jf=(e,t)=>{if(e!=null){var r=ur(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},X1=_([Y1,De],jf);function Z1(e){var t;if(e.x!=null)return ur([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:ur(r)}function J1(e){var t;if(e.y!=null)return ur([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:ur(r)}var Lf=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?Z1(n):J1(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},Q1=_([q1,De],Lf),ek=_(H1,Q1,X1,(e,t,r)=>mi(e,r,t)),zf=(e,t,r,n,o,i,a,s)=>{if(r!=null)return r;var l=a==="vertical"&&s==="xAxis"||a==="horizontal"&&s==="yAxis",c=l?mi(n,i,o):mi(i,o);return Tv(t,c,e.allowDataOverflow)},tk=_([it,by,wy,W1,U1,ek,oe,De],zf,{memoizeOptions:{resultEqualityCheck:Jn}}),rk=[0,1],Bf=(e,t,r,n,o,i,a)=>{if(!((e==null||r==null||r.length===0)&&a===void 0)){var{dataKey:s,type:l}=e,c=Dt(t,i);if(c&&s==null){var f;return Ua(0,(f=r?.length)!==null&&f!==void 0?f:0)}return l==="category"?K1(n,e,c):o==="expand"?rk:a}},Ff=_([it,oe,Cf,gi,Xn,De,tk],Bf),go=_([it,wf,Xa],Bs),Wf=(e,t,r)=>{var{niceTicks:n}=t;if(n!=="none"){var o=$s(t),i=Array.isArray(o)&&(o[0]==="auto"||o[1]==="auto");if((n==="snap125"||n==="adaptive")&&t!=null&&t.tickCount&&ht(e)){if(i)return Ga(e,t.tickCount,t.allowDecimals,n);if(t.type==="number")return Ya(e,t.tickCount,t.allowDecimals,n)}if(n==="auto"&&r==="linear"&&t!=null&&t.tickCount){if(i&&ht(e))return Ga(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&ht(e))return Ya(e,t.tickCount,t.allowDecimals,"adaptive")}}},Vf=_([Ff,hi,go],Wf),Uf=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&ht(t)&&Array.isArray(r)&&r.length>0){var o,i,a=t[0],s=(o=r[0])!==null&&o!==void 0?o:0,l=t[1],c=(i=r[r.length-1])!==null&&i!==void 0?i:0;return[Math.min(a,s),Math.max(l,c)]}return t},nk=_([it,Ff,Vf,De],Uf),ok=_(gi,it,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(ur(e.map(u=>u.value))).sort((u,d)=>u-d),o=n[0],i=n[n.length-1];if(o==null||i==null)return 1/0;var a=i-o;if(a===0)return 1/0;for(var s=0;so,(e,t,r,n,o)=>{if(!Z(e))return 0;var i=t==="vertical"?n.height:n.width;if(o==="gap")return e*i/2;if(o==="no-gap"){var a=$e(r,e*i),s=e*i/2;return s-a-(s-a)/i*a}return 0}),ik=(e,t,r)=>{var n=Xt(e,t);return n==null||typeof n.padding!="string"?0:Sy(e,"xAxis",t,r,n.padding)},ak=(e,t,r)=>{var n=Zt(e,t);return n==null||typeof n.padding!="string"?0:Sy(e,"yAxis",t,r,n.padding)},sk=_(Xt,ik,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((r=o.left)!==null&&r!==void 0?r:0)+t,right:((n=o.right)!==null&&n!==void 0?n:0)+t}}),lk=_(Zt,ak,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((r=o.top)!==null&&r!==void 0?r:0)+t,bottom:((n=o.bottom)!==null&&n!==void 0?n:0)+t}}),ck=_([de,sk,Kr,$n,(e,t,r)=>r],(e,t,r,n,o)=>{var{padding:i}=n;return o?[i.left,r.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),uk=_([de,oe,lk,Kr,$n,(e,t,r)=>r],(e,t,r,n,o,i)=>{var{padding:a}=o;return i?[n.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),yo=(e,t,r,n)=>{var o;switch(t){case"xAxis":return ck(e,r,n);case"yAxis":return uk(e,r,n);case"zAxis":return(o=bf(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return Nu(e);case"radiusAxis":return Du(e,r);default:return}},Ay=_([it,yo],Xr),fk=_([go,nk],Kv),$f=_([it,go,fk,Ay],pi),Kf=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:o,scale:i}=r,a=Dt(e,n);if(a&&(o==="number"||i!=="auto"))return t.map(s=>s.value)}},Gf=_([oe,gi,hi,De],Kf),Gs=_([$f],Go),pG=_([$f],hy),mG=_([$f,L1],Fs),hG=_([vi,Ks,De],V1);function Py(e,t){return e.idt.id?1:0}var Ys=(e,t)=>t,qs=(e,t,r)=>r,dk=_(Vn,Ys,qs,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Py)),pk=_(Un,Ys,qs,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Py)),Oy=(e,t)=>({width:e.width,height:t.height}),mk=(e,t)=>{var r=typeof t.width=="number"?t.width:$r;return{width:r,height:e.height}},hk=_(de,Xt,Oy),vk=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},gk=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},yk=_(Xe,de,dk,Ys,qs,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=Oy(t,s);a==null&&(a=vk(t,n,e));var c=n==="top"&&!o||n==="bottom"&&o;i[s.id]=a-Number(c)*l.height,a+=(c?-1:1)*l.height}),i}),xk=_(He,de,pk,Ys,qs,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=mk(t,s);a==null&&(a=gk(t,n,e));var c=n==="left"&&!o||n==="right"&&o;i[s.id]=a-Number(c)*l.width,a+=(c?-1:1)*l.width}),i}),bk=(e,t)=>{var r=Xt(e,t);if(r!=null)return yk(e,r.orientation,r.mirror)},vG=_([de,Xt,bk,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var o=r?.[n];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),wk=(e,t)=>{var r=Zt(e,t);if(r!=null)return xk(e,r.orientation,r.mirror)},gG=_([de,Zt,wk,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var o=r?.[n];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),Sk=_(de,Zt,(e,t)=>{var r=typeof t.width=="number"?t.width:$r;return{width:r,height:e.height}}),Yf=(e,t,r)=>{switch(t){case"xAxis":return hk(e,r).width;case"yAxis":return Sk(e,r).height;default:return}},qf=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:o,type:i,dataKey:a}=r,s=Dt(e,n),l=t.map(c=>c.value);if(a&&s&&i==="category"&&o&&_c(l))return l}},Hf=_([oe,gi,it,De],qf),Xf=_([oe,M1,go,Gs,Hf,Gf,yo,Vf,De],(e,t,r,n,o,i,a,s,l)=>{if(t!=null){var c=Dt(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:i,duplicateDomain:o,isCategorical:c,niceTicks:s,range:a,realScaleType:r,scale:n}}}),Ak=(e,t,r,n,o,i,a,s,l)=>{if(!(t==null||n==null)){var c=Dt(e,l),{type:f,ticks:u,tickCount:d}=t,m=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,h=f==="category"&&n.bandwidth?n.bandwidth()/m:0;h=l==="angleAxis"&&i!=null&&i.length>=2?Se(i[0]-i[1])*2*h:h;var p=u||o;return p?p.map((x,v)=>{var A=a?a.indexOf(x):x,P=n.map(A);return Z(P)?{index:v,coordinate:P+h,value:x,offset:h}:null}).filter(Ke):c&&s?s.map((x,v)=>{var A=n.map(x);return Z(A)?{coordinate:A+h,value:x,index:v,offset:h}:null}).filter(Ke):n.ticks?n.ticks(d).map((x,v)=>{var A=n.map(x);return Z(A)?{coordinate:A+h,value:x,index:v,offset:h}:null}).filter(Ke):n.domain().map((x,v)=>{var A=n.map(x);return Z(A)?{coordinate:A+h,value:a?a[x]:x,index:v,offset:h}:null}).filter(Ke)}},yG=_([oe,hi,go,Gs,Vf,yo,Hf,Gf,De],Ak),Pk=(e,t,r,n,o,i,a)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=Dt(e,a),{tickCount:l}=t,c=0;return c=a==="angleAxis"&&n?.length>=2?Se(n[0]-n[1])*2*c:c,s&&i?i.map((f,u)=>{var d=r.map(f);return Z(d)?{coordinate:d+c,value:f,index:u,offset:c}:null}).filter(Ke):r.ticks?r.ticks(l).map((f,u)=>{var d=r.map(f);return Z(d)?{coordinate:d+c,value:f,index:u,offset:c}:null}).filter(Ke):r.domain().map((f,u)=>{var d=r.map(f);return Z(d)?{coordinate:d+c,value:o?o[f]:f,index:u,offset:c}:null}).filter(Ke)}},pn=_([oe,hi,Gs,yo,Hf,Gf,De],Pk),mn=_(it,Gs,(e,t)=>{if(!(e==null||t==null))return Ws(Ws({},e),{},{scale:t})}),Ok=_([it,go,Ff,Ay],pi),Ek=_([Ok],Go),xG=_((e,t,r)=>bf(e,r),Ek,(e,t)=>{if(!(e==null||t==null))return Ws(Ws({},e),{},{scale:t})}),Ey=_([oe,Vn,Un],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),Ck=(e,t,r)=>{var n;return(n=e.renderedTicks[t])===null||n===void 0?void 0:n[r]},bG=_([Ck],e=>{if(!(!e||e.length===0))return t=>{var r,n=1/0,o=e[0];for(var i of e){var a=Math.abs(i.coordinate-t);ae.options.defaultTooltipEventType,Jf=e=>e.options.validateTooltipEventTypes;function Qf(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function Hs(e,t){var r=Zf(e),n=Jf(e);return Qf(t,r,n)}var Xs=(e,t)=>{var r,n=Number(t);if(!(qe(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0};var Cy=e=>e.tooltip.settings;var fr={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},kk={itemInteraction:{click:fr,hover:fr},axisInteraction:{click:fr,hover:fr},keyboardInteraction:fr,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},ky=se({name:"tooltip",initialState:kk,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:ue()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Ye(e).tooltipItemPayloads.indexOf(r);o>-1&&(e.tooltipItemPayloads[o]=n)},prepare:ue()},removeTooltipEntrySettings:{reducer(e,t){var r=Ye(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:ue()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:_y,replaceTooltipEntrySettings:Iy,removeTooltipEntrySettings:Ty,setTooltipSettingsState:CG,setActiveMouseOverItemIndex:Zs,mouseLeaveItem:My,mouseLeaveChart:Js,setActiveClickItemIndex:Ry,setMouseOverAxisIndex:Qs,setMouseClickAxisIndex:Ny,setSyncInteraction:ed,setKeyboardInteraction:yi}=ky.actions,Dy=ky.reducer;function jy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function el(e){for(var t=1;t{if(t==null)return fr;var o=Mk(e,t,r);if(o==null)return fr;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var i=e.settings.active===!0;if(Rk(o)){if(i)return el(el({},o),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return el(el({},fr),{},{coordinate:o.coordinate})};function Nk(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function Dk(e,t){var r=Nk(e),n=t[0],o=t[1];if(r===void 0)return!1;var i=Math.min(n,o),a=Math.max(n,o);return r>=i&&r<=a}function jk(e,t,r){if(r==null||t==null)return!0;var n=we(e,t);return n==null||!ht(r)?!0:Dk(n,r)}var xo=(e,t,r,n)=>{var o=e?.index;if(o==null)return null;var i=Number(o);if(!Z(i))return o;var a=0,s=1/0;t.length>0&&(s=t.length-1);var l=Math.max(a,Math.min(i,s)),c=t[l];return c==null||jk(c,r,n)?String(l):null};var rl=(e,t,r,n,o,i,a)=>{if(i!=null){var s=a[0],l=s?.getPosition(i);if(l!=null)return l;var c=o?.[Number(i)];if(c)switch(r){case"horizontal":return{x:c.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:c.coordinate}}}};var nl=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(r==="hover"?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&o==null)return e.tooltipItemPayloads;if(o==null&&n!=null){var i=e.tooltipItemPayloads[0];return i!=null?[i]:[]}return e.tooltipItemPayloads.filter(a=>{var s;return((s=a.settings)===null||s===void 0?void 0:s.graphicalItemId)===o})};var ol=e=>e.options.tooltipPayloadSearcher;var Cr=e=>e.tooltip;function Ly(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function zy(e){for(var t=1;te(t)}function By(e){if(typeof e=="string")return e}function Uk(e){if(!(e==null||typeof e!="object")){var t="name"in e?Fk(e.name):void 0,r="unit"in e?Wk(e.unit):void 0,n="dataKey"in e?Vk(e.dataKey):void 0,o="payload"in e?e.payload:void 0,i="color"in e?By(e.color):void 0,a="fill"in e?By(e.fill):void 0;return{name:t,unit:r,dataKey:n,payload:o,color:i,fill:a}}}function $k(e,t){return e??t}var il=(e,t,r,n,o,i,a)=>{if(!(t==null||i==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:f}=r,u=[];return e.reduce((d,m)=>{var h,{dataDefinedOnItem:p,settings:x}=m,v=$k(p,s),A=Array.isArray(v)?ka(v,c,f):v,P=(h=x?.dataKey)!==null&&h!==void 0?h:n,C=x?.nameKey,E;if(n&&Array.isArray(A)&&!Array.isArray(A[0])&&a==="axis"?E=Ic(A,n,o):E=i(A,t,l,C),Array.isArray(E))E.forEach(T=>{var I,z,j=Uk(T),Y=j?.name,B=j?.dataKey,X=j?.payload,H=zy(zy({},x),{},{name:Y,unit:j?.unit,color:(I=j?.color)!==null&&I!==void 0?I:x?.color,fill:(z=j?.fill)!==null&&z!==void 0?z:x?.fill});d.push(du({tooltipEntrySettings:H,dataKey:B,payload:X,value:we(X,B),name:Y==null?void 0:String(Y)}))});else{var k;d.push(du({tooltipEntrySettings:x,dataKey:P,payload:E,value:we(E,P),name:(k=we(E,C))!==null&&k!==void 0?k:x?.name}))}return d},u)}};var td=_([Le,wf,Xa],Bs),Kk=_([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Gk=_([ke,xr],Sf),hn=_([Kk,Le,Gk],Af,{memoizeOptions:{resultEqualityCheck:Qn}}),Yk=_([hn],e=>e.filter(Zr)),qk=_([hn],Of,{memoizeOptions:{resultEqualityCheck:Qn}}),kr=_([qk,kt],Ef),Hk=_([Yk,kt,Le],rs),rd=_([kr,Le,hn],kf),Fy=_([Le],$s),Xk=_([Le],e=>e.allowDataOverflow),Wy=_([Fy,Xk],$a),Zk=_([hn],e=>e.filter(Zr)),Jk=_([Hk,Zk,Xn,Ha],_f),Qk=_([Jk,kt,ke,Wy],If),e_=_([hn],Pf),t_=_([kr,Le,e_,Ks,ke],Tf,{memoizeOptions:{resultEqualityCheck:Jn}}),r_=_([Mf,ke,xr],dn),n_=_([r_,ke],Df),o_=_([Rf,ke,xr],dn),i_=_([o_,ke],jf),a_=_([Nf,ke,xr],dn),s_=_([a_,ke],Lf),l_=_([n_,s_,i_],mi),c_=_([Le,Fy,Wy,Qk,t_,l_,oe,ke],zf),vn=_([Le,oe,kr,rd,Xn,ke,c_],Bf),u_=_([vn,Le,td],Wf),f_=_([Le,vn,u_,ke],Uf),Vy=e=>{var t=ke(e),r=xr(e),n=!1;return yo(e,t,r,n)},nd=_([Le,Vy],Xr),d_=_([Le,td,f_,nd],pi),p_=_([d_],Go),m_=_([oe,rd,Le,ke],qf),h_=_([oe,rd,Le,ke],Kf),v_=(e,t,r,n,o,i,a,s)=>{if(t){var{type:l}=t,c=Dt(e,s);if(n){var f=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,u=l==="category"&&n.bandwidth?n.bandwidth()/f:0;return u=s==="angleAxis"&&o!=null&&o?.length>=2?Se(o[0]-o[1])*2*u:u,c&&a?a.map((d,m)=>{var h=n.map(d);return Z(h)?{coordinate:h+u,value:d,index:m,offset:u}:null}).filter(Ke):n.domain().map((d,m)=>{var h=n.map(d);return Z(h)?{coordinate:h+u,value:i?i[d]:d,index:m,offset:u}:null}).filter(Ke)}}},Tt=_([oe,Le,td,p_,Vy,m_,h_,ke],v_),od=_([Zf,Jf,Cy],(e,t,r)=>Qf(r.shared,e,t)),Uy=e=>e.tooltip.settings.trigger,id=e=>e.tooltip.settings.defaultIndex,xi=_([Cr,od,Uy,id],tl),_r=_([xi,kr,Er,vn],xo),ad=_([Tt,_r],Xs),al=_([xi],e=>{if(e)return e.dataKey}),g_=_([xi],e=>{if(e)return e.graphicalItemId}),$y=_([Cr,od,Uy,id],nl),y_=_([He,Xe,oe,de,Tt,id,$y],rl),Ky=_([xi,y_],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Gy=_([xi],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),x_=_([$y,_r,kt,Er,ad,ol,od],il),bY=_([x_],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Yy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function bo(e){for(var t=1;t{var o=t.find(i=>i&&i.index===r);if(o){if(e==="horizontal")return{x:o.coordinate,y:n.relativeY};if(e==="vertical")return{x:n.relativeX,y:o.coordinate}}return{x:0,y:0}},Hy=(e,t,r,n)=>{var o=t.find(c=>c&&c.index===r);if(o){if(e==="centric"){var i=o.coordinate,{radius:a}=n;return bo(bo(bo({},n),Ze(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,{angle:l}=n;return bo(bo(bo({},n),Ze(n.cx,n.cy,s,l)),{},{angle:l,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function Xy(e,t){var{relativeX:r,relativeY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var sd=(e,t,r,n,o)=>{var i,a=(i=t?.length)!==null&&i!==void 0?i:0;if(a<=1||e==null)return 0;if(n==="angleAxis"&&o!=null&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var s=0;s0?(l=r[s-1])===null||l===void 0?void 0:l.coordinate:(c=r[a-1])===null||c===void 0?void 0:c.coordinate,h=(f=r[s])===null||f===void 0?void 0:f.coordinate,p=s>=a-1?(u=r[0])===null||u===void 0?void 0:u.coordinate:(d=r[s+1])===null||d===void 0?void 0:d.coordinate,x=void 0;if(!(m==null||h==null||p==null))if(Se(h-m)!==Se(p-h)){var v=[];if(Se(p-h)===Se(o[1]-o[0])){x=p;var A=h+o[1]-o[0];v[0]=Math.min(A,(A+m)/2),v[1]=Math.max(A,(A+m)/2)}else{x=m;var P=p+o[1]-o[0];v[0]=Math.min(h,(P+h)/2),v[1]=Math.max(h,(P+h)/2)}var C=[Math.min(h,(x+h)/2),Math.max(h,(x+h)/2)];if(e>C[0]&&e<=C[1]||e>=v[0]&&e<=v[1]){var E;return(E=r[s])===null||E===void 0?void 0:E.index}}else{var k=Math.min(m,p),T=Math.max(m,p);if(e>(k+h)/2&&e<=(T+h)/2){var I;return(I=r[s])===null||I===void 0?void 0:I.index}}}else if(t)for(var z=0;z(j.coordinate+B.coordinate)/2||z>0&&z(j.coordinate+B.coordinate)/2&&e<=(j.coordinate+Y.coordinate)/2)return j.index}}return-1};var ld=(e,t)=>t,Zy=(e,t,r)=>r,cd=(e,t,r,n)=>n,Jy=_(Tt,e=>Wr(e,t=>t.coordinate)),ud=_([Cr,ld,Zy,cd],tl),fd=_([ud,kr,Er,vn],xo);var Qy=_([Cr,ld,Zy,cd],nl),bi=_([He,Xe,oe,de,Tt,cd,Qy],rl),$Y=_([ud,bi],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),A_=_([Tt,fd],Xs),KY=_([Qy,fd,kt,Er,A_,ol,ld],il),GY=_([ud,fd],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),P_=(e,t,r,n,o,i,a)=>{if(!(!e||!r||!n||!o)&&Xy(e,a)){var s=Xm(e,t),l=sd(s,i,o,r,n),c=qy(t,o,l,e);return{activeIndex:String(l),activeCoordinate:c}}},O_=(e,t,r,n,o,i,a)=>{if(!(!e||!n||!o||!i||!r)){var s=vv(e,r);if(s){var l=Zm(s,t),c=sd(l,a,i,n,o),f=Hy(t,i,c,s);return{activeIndex:String(c),activeCoordinate:f}}}},ex=(e,t,r,n,o,i,a,s)=>{if(!(!e||!t||!n||!o||!i))return t==="horizontal"||t==="vertical"?P_(e,t,n,o,i,a,s):O_(e,t,r,n,o,i,a)};import{useLayoutEffect as R_}from"react";import{createPortal as N_}from"react-dom";var tx=_(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),rx=_(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(Oe)),r=Array.from(new Set(t));return r.sort((n,o)=>n-o)},{memoizeOptions:{resultEqualityCheck:$v}});function nx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ox(e){for(var t=1;tox(ox({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),__)},T_=new Set(Object.values(Oe));function M_(e){return T_.has(e)}var ix=se({name:"zIndex",initialState:I_,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:ue()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!M_(r)&&delete e.zIndexMap[r])},prepare:ue()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:o}=t.payload;e.zIndexMap[r]?o?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:o?void 0:n,panoramaElement:o?n:void 0}},prepare:ue()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:ue()}}}),{registerZIndexPortal:ax,unregisterZIndexPortal:sx,registerZIndexPortalElement:lx,unregisterZIndexPortalElement:cx}=ix.actions,ux=ix.reducer;function xt(e){var{zIndex:t,children:r}=e,n=hh(),o=n&&t!==void 0&&t!==0,i=Ae(),a=ne();R_(()=>o?(a(ax({zIndex:t})),()=>{a(sx({zIndex:t}))}):dt,[a,t,o]);var s=J(l=>tx(l,t,i));return o?s?N_(r,s):null:r}import{createContext as D_,useContext as f5}from"react";var fx=D_(null);import{useEffect as vd}from"react";var mx=Wi(px(),1);var hx=mx.default;var Si=new hx;var pd="recharts.syncEvent.tooltip",md="recharts.syncEvent.brush";var vx=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!qe(r))return e[r]}},z_={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},gx=se({name:"options",initialState:z_,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),yx=gx.reducer,{createEventEmitter:xx}=gx.actions;var B_={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},bx=se({name:"chartData",initialState:B_,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:hd,setDataStartEndIndexes:wx,setComputedData:F_}=bx.actions,Sx=bx.reducer;var W_=["x","y"];function Ax(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function wo(e){for(var t=1;tl.rootProps.className);vd(()=>{if(e==null)return dt;var l=(c,f,u)=>{if(t!==u&&e===c){if(n==="index"){var d;if(a&&f!==null&&f!==void 0&&(d=f.payload)!==null&&d!==void 0&&d.coordinate&&f.payload.sourceViewBox){var m=f.payload.coordinate,{x:h,y:p}=m,x=K_(m,W_),{x:v,y:A,width:P,height:C}=f.payload.sourceViewBox,E=wo(wo({},x),{},{x:a.x+(P?(h-v)/P:0)*a.width,y:a.y+(C?(p-A)/C:0)*a.height});r(wo(wo({},f),{},{payload:wo(wo({},f.payload),{},{coordinate:E})}))}else r(f);return}if(o!=null){var k;if(typeof n=="function"){var T={activeTooltipIndex:f.payload.index==null?void 0:Number(f.payload.index),isTooltipActive:f.payload.active,activeIndex:f.payload.index==null?void 0:Number(f.payload.index),activeLabel:f.payload.label,activeDataKey:f.payload.dataKey,activeCoordinate:f.payload.coordinate},I=n(o,T);k=o[I]}else n==="value"&&(k=o.find(g=>String(g.value)===f.payload.label));var{coordinate:z}=f.payload;if(k==null||f.payload.active===!1||z==null||a==null){r(ed({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:j,y:Y}=z,B=Math.min(j,a.x+a.width),X=Math.min(Y,a.y+a.height),H={x:i==="horizontal"?k.coordinate:B,y:i==="horizontal"?X:k.coordinate},re=ed({active:f.payload.active,coordinate:H,dataKey:f.payload.dataKey,index:String(k.index),label:f.payload.label,sourceViewBox:f.payload.sourceViewBox,graphicalItemId:f.payload.graphicalItemId});r(re)}}};return Si.on(pd,l),()=>{Si.off(pd,l)}},[s,r,t,e,n,o,i,a])}function q_(){var e=J(Iu),t=J(Tu),r=ne();vd(()=>{if(e==null)return dt;var n=(o,i,a)=>{t!==a&&e===o&&r(wx(i))};return Si.on(md,n),()=>{Si.off(md,n)}},[r,t,e])}function Px(){var e=ne();vd(()=>{e(xx())},[e]),Y_(),q_()}var gd=e=>null;gd.displayName="Cell";import*as xd from"react";import{useMemo as bI,forwardRef as wI}from"react";function H_(e,t,r){return(t=X_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X_(e){var t=Z_(e,"string");return typeof t=="symbol"?t:t+""}function Z_(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ll=class{constructor(t){H_(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}};function Ox(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function J_(e){for(var t=1;t{try{var r=document.getElementById(Cx);r||(r=document.createElement("span"),r.setAttribute("id",Cx),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,nI,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},gn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ct.isSsr)return{width:0,height:0};if(!_x.enableCache)return kx(t,r);var n=oI(t,r),o=Ex.get(n);if(o)return o;var i=kx(t,r);return Ex.set(n,i),i};var Rx;function iI(e,t,r){return(t=aI(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aI(e){var t=sI(e,"string");return typeof t=="symbol"?t:t+""}function sI(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ix=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Tx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,lI=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,cI=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,uI={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},fI=["cm","mm","pt","pc","in","Q","px"];function dI(e){return fI.includes(e)}var So="NaN";function pI(e,t){return e*uI[t]}var Ir=class e{static parse(t){var r,[,n,o]=(r=cI.exec(t))!==null&&r!==void 0?r:[];return n==null?e.NaN:new e(parseFloat(n),o??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,qe(t)&&(this.unit=""),r!==""&&!lI.test(r)&&(this.num=NaN,this.unit=""),dI(r)&&(this.num=pI(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return qe(this.num)}};Rx=Ir;iI(Ir,"NaN",new Rx(NaN,""));function Nx(e){if(e==null||e.includes(So))return So;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,o,i]=(r=Ix.exec(t))!==null&&r!==void 0?r:[],a=Ir.parse(n??""),s=Ir.parse(i??""),l=o==="*"?a.multiply(s):a.divide(s);if(l.isNaN())return So;t=t.replace(Ix,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,f,u,d]=(c=Tx.exec(t))!==null&&c!==void 0?c:[],m=Ir.parse(f??""),h=Ir.parse(d??""),p=u==="+"?m.add(h):m.subtract(h);if(p.isNaN())return So;t=t.replace(Tx,p.toString())}return t}var Mx=/\(([^()]*)\)/;function mI(e){for(var t=e,r;(r=Mx.exec(t))!=null;){var[,n]=r;t=t.replace(Mx,Nx(n))}return t}function hI(e){var t=e.replace(/\s+/g,"");return t=mI(t),t=Nx(t),t}function vI(e){try{return hI(e)}catch{return So}}function cl(e){var t=vI(e.slice(5,-1));return t===So?"":t}var gI=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],yI=["dx","dy","angle","className","breakAll"];function yd(){return yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:t,breakAll:r,style:n}=e;try{var o=[];fe(t)||(r?o=t.toString().split(""):o=t.toString().split(zx));var i=o.map(s=>({word:s,width:gn(s,n).width})),a=r?0:gn("\xA0",n).width;return{wordsWithComputedWidth:i,spaceWidth:a}}catch{return null}};function ul(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function Fx(e){return fe(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var Wx=(e,t,r,n)=>e.reduce((o,i)=>{var{word:a,width:s}=i,l=o[o.length-1];if(l&&s!=null&&(t==null||n||l.width+s+re.reduce((t,r)=>t.width>r.width?t:r),SI="\u2026",jx=(e,t,r,n,o,i,a,s)=>{var l=e.slice(0,t),c=Bx({breakAll:r,style:n,children:l+SI});if(!c)return[!1,[]];var f=Wx(c.wordsWithComputedWidth,i,a,s),u=f.length>o||Vx(f).width>Number(i);return[u,f]},AI=(e,t,r,n,o)=>{var{maxLines:i,children:a,style:s,breakAll:l}=e,c=q(i),f=String(a),u=Wx(t,n,r,o);if(!c||o)return u;var d=u.length>i||Vx(u).width>Number(n);if(!d)return u;for(var m=0,h=f.length-1,p=0,x;m<=h&&p<=f.length-1;){var v=Math.floor((m+h)/2),A=v-1,[P,C]=jx(f,A,l,s,i,n,r,o),[E]=jx(f,v,l,s,i,n,r,o);if(!P&&!E&&(m=v+1),P&&E&&(h=v-1),!P&&E){x=C;break}p++}return x||u},Lx=e=>{var t=fe(e)?[]:e.toString().split(zx);return[{words:t,width:void 0}]},PI=e=>{var{width:t,scaleToFit:r,children:n,style:o,breakAll:i,maxLines:a}=e;if((t||r)&&!Ct.isSsr){var s,l,c=Bx({breakAll:i,children:n,style:o});if(c){var{wordsWithComputedWidth:f,spaceWidth:u}=c;s=f,l=u}else return Lx(n);return AI({breakAll:i,children:n,maxLines:a,style:o},s,l,t,!!r)}return Lx(n)},Ux="#808080",OI={angle:0,breakAll:!1,capHeight:"0.71em",fill:Ux,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Ai=wI((e,t)=>{var r=Me(e,OI),{x:n,y:o,lineHeight:i,capHeight:a,fill:s,scaleToFit:l,textAnchor:c,verticalAnchor:f}=r,u=Dx(r,gI),d=bI(()=>PI({breakAll:u.breakAll,children:u.children,maxLines:u.maxLines,scaleToFit:l,style:u.style,width:u.width}),[u.breakAll,u.children,u.maxLines,l,u.style,u.width]),{dx:m,dy:h,angle:p,className:x,breakAll:v}=u,A=Dx(u,yI);if(!Vt(n)||!Vt(o)||d.length===0)return null;var P=Number(n)+(q(m)?m:0),C=Number(o)+(q(h)?h:0);if(!Z(P)||!Z(C))return null;var E;switch(f){case"start":E=cl("calc(".concat(a,")"));break;case"middle":E=cl("calc(".concat((d.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:E=cl("calc(".concat(d.length-1," * -").concat(i,")"));break}var k=[],T=d[0];if(l&&T!=null){var I=T.width,{width:z}=u;k.push("scale(".concat(q(z)&&q(I)?z/I:1,")"))}return p&&k.push("rotate(".concat(p,", ").concat(P,", ").concat(C,")")),k.length&&(A.transform=k.join(" ")),xd.createElement("text",yd({},Ie(A),{ref:t,x:P,y:C,className:ae("recharts-text",x),textAnchor:c,fill:s.includes("url")?Ux:s}),d.map((j,Y)=>{var B=j.words.join(v?"":" ");return xd.createElement("tspan",{x:P,dy:Y===0?E:i,key:"".concat(B,"-").concat(Y)},B)}))});Ai.displayName="Text";import*as bt from"react";import{cloneElement as qx,createContext as Hx,createElement as DI,isValidElement as fl,useContext as Xx,useMemo as jI}from"react";function $x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t{var{viewBox:t,position:r,offset:n=0,parentViewBox:o,clamp:i}=e,{x:a,y:s,height:l,upperWidth:c,lowerWidth:f}=Fo(t),u=a,d=a+(c-f)/2,m=(u+d)/2,h=(c+f)/2,p=u+c/2,x=l>=0?1:-1,v=x*n,A=x>0?"end":"start",P=x>0?"start":"end",C=c>=0?1:-1,E=C*n,k=C>0?"end":"start",T=C>0?"start":"end",I=o;if(r==="top"){var z={x:u+c/2,y:s-v,horizontalAnchor:"middle",verticalAnchor:A};return i&&I&&(z.height=Math.max(s-I.y,0),z.width=c),z}if(r==="bottom"){var j={x:d+f/2,y:s+l+v,horizontalAnchor:"middle",verticalAnchor:P};return i&&I&&(j.height=Math.max(I.y+I.height-(s+l),0),j.width=f),j}if(r==="left"){var Y={x:m-E,y:s+l/2,horizontalAnchor:k,verticalAnchor:"middle"};return i&&I&&(Y.width=Math.max(Y.x-I.x,0),Y.height=l),Y}if(r==="right"){var B={x:m+h+E,y:s+l/2,horizontalAnchor:T,verticalAnchor:"middle"};return i&&I&&(B.width=Math.max(I.x+I.width-B.x,0),B.height=l),B}var X=i&&I?{width:h,height:l}:{};return r==="insideLeft"?Jt({x:m+E,y:s+l/2,horizontalAnchor:T,verticalAnchor:"middle"},X):r==="insideRight"?Jt({x:m+h-E,y:s+l/2,horizontalAnchor:k,verticalAnchor:"middle"},X):r==="insideTop"?Jt({x:u+c/2,y:s+v,horizontalAnchor:"middle",verticalAnchor:P},X):r==="insideBottom"?Jt({x:d+f/2,y:s+l-v,horizontalAnchor:"middle",verticalAnchor:A},X):r==="insideTopLeft"?Jt({x:u+E,y:s+v,horizontalAnchor:T,verticalAnchor:P},X):r==="insideTopRight"?Jt({x:u+c-E,y:s+v,horizontalAnchor:k,verticalAnchor:P},X):r==="insideBottomLeft"?Jt({x:d+E,y:s+l-v,horizontalAnchor:T,verticalAnchor:A},X):r==="insideBottomRight"?Jt({x:d+f-E,y:s+l-v,horizontalAnchor:k,verticalAnchor:A},X):r&&typeof r=="object"&&(q(r.x)||tr(r.x))&&(q(r.y)||tr(r.y))?Jt({x:a+$e(r.x,h),y:s+$e(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},X):Jt({x:p,y:s+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},X)};var _I=["labelRef"],II=["content"];function Gx(e,t){if(e==null)return{};var r,n,o=TI(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var{x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a,children:s}=e,l=jI(()=>({x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a}),[t,r,n,o,i,a]);return bt.createElement(Zx.Provider,{value:l},s)},Qx=()=>{var e=Xx(Zx),t=Ta();return e||(t?Fo(t):void 0)},LI=Hx(null);var zI=()=>{var e=Xx(LI),t=J(ts);return e||t},BI=e=>{var{value:t,formatter:r}=e,n=fe(e.children)?t:e.children;return typeof r=="function"?r(n):n},bd=e=>e!=null&&typeof e=="function",FI=(e,t)=>{var r=Se(t-e),n=Math.min(Math.abs(t-e),360);return r*n},WI=(e,t,r,n,o)=>{var{offset:i,className:a}=e,{cx:s,cy:l,innerRadius:c,outerRadius:f,startAngle:u,endAngle:d,clockWise:m}=o,h=(c+f)/2,p=FI(u,d),x=p>=0?1:-1,v,A;switch(t){case"insideStart":v=u+x*i,A=m;break;case"insideEnd":v=d-x*i,A=!m;break;case"end":v=d+x*i,A=m;break;default:throw new Error("Unsupported position ".concat(t))}A=p<=0?A:!A;var P=Ze(s,l,h,v),C=Ze(s,l,h,v+(A?1:-1)*359),E="M".concat(P.x,",").concat(P.y,` + A`).concat(h,",").concat(h,",0,1,").concat(A?0:1,`, + `).concat(C.x,",").concat(C.y),k=fe(e.id)?rr("recharts-radial-line-"):e.id;return bt.createElement("text",pr({},n,{dominantBaseline:"central",className:ae("recharts-radial-bar-label",a)}),bt.createElement("defs",null,bt.createElement("path",{id:k,d:E})),bt.createElement("textPath",{xlinkHref:"#".concat(k)},r))},VI=(e,t,r)=>{var{cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:s,endAngle:l}=e,c=(s+l)/2;if(r==="outside"){var{x:f,y:u}=Ze(n,o,a+t,c);return{x:f,y:u,textAnchor:f>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"end"};var d=(i+a)/2,{x:m,y:h}=Ze(n,o,d,c);return{x:m,y:h,textAnchor:"middle",verticalAnchor:"middle"}},dl=e=>e!=null&&"cx"in e&&q(e.cx),UI={angle:0,offset:5,zIndex:Oe.label,position:"middle",textBreakAll:!1};function $I(e){if(!dl(e))return e;var{cx:t,cy:r,outerRadius:n}=e,o=n*2;return{x:t-n,y:r-n,width:o,upperWidth:o,lowerWidth:o,height:o}}function dr(e){var t=Me(e,UI),{viewBox:r,parentViewBox:n,position:o,value:i,children:a,content:s,className:l="",textBreakAll:c,labelRef:f}=t,u=zI(),d=Qx(),m=o==="center"?d:u??d,h,p,x;r==null?h=m:dl(r)?h=r:h=Fo(r);var v=$I(h);if(!h||fe(i)&&fe(a)&&!fl(s)&&typeof s!="function")return null;var A=Pi(Pi({},t),{},{viewBox:h});if(fl(s)){var{labelRef:P}=A,C=Gx(A,_I);return qx(s,C)}if(typeof s=="function"){var{content:E}=A,k=Gx(A,II);if(p=DI(s,k),fl(p))return p}else p=BI(t);var T=Ie(t);if(dl(h)){if(o==="insideStart"||o==="insideEnd"||o==="end")return WI(t,o,p,T,h);x=VI(h,t.offset,t.position)}else{if(!v)return null;var I=Kx({viewBox:v,position:o,offset:t.offset,parentViewBox:dl(n)?void 0:n,clamp:!0});x=Pi(Pi({x:I.x,y:I.y,textAnchor:I.horizontalAnchor,verticalAnchor:I.verticalAnchor},I.width!==void 0?{width:I.width}:{}),I.height!==void 0?{height:I.height}:{})}return bt.createElement(xt,{zIndex:t.zIndex},bt.createElement(Ai,pr({ref:f,className:ae("recharts-label",l)},T,x,{textAnchor:ul(T.textAnchor)?T.textAnchor:x.textAnchor,breakAll:c}),p))}dr.displayName="Label";var KI=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?bt.createElement(dr,pr({key:"label-implicit"},n)):Vt(e)?bt.createElement(dr,pr({key:"label-implicit",value:e},n)):fl(e)?e.type===dr?qx(e,Pi({key:"label-implicit"},n)):bt.createElement(dr,pr({key:"label-implicit",content:e},n)):bd(e)?bt.createElement(dr,pr({key:"label-implicit",content:e},n)):e&&typeof e=="object"?bt.createElement(dr,pr({},e,{key:"label-implicit"},n)):null};function eb(e){var{label:t,labelRef:r}=e,n=Qx();return KI(t,n,r)||null}import*as mr from"react";import{createContext as rb,useContext as nb}from"react";var GI=["valueAccessor"],YI=["dataKey","clockWise","id","textBreakAll","zIndex"];function ml(){return ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(Fx(t))return t},ob=rb(void 0),ib=ob.Provider,ab=rb(void 0),Sq=ab.Provider;function XI(){return nb(ob)}function ZI(){return nb(ab)}function pl(e){var{valueAccessor:t=HI}=e,r=tb(e,GI),{dataKey:n,clockWise:o,id:i,textBreakAll:a,zIndex:s}=r,l=tb(r,YI),c=XI(),f=ZI(),u=c||f;return!u||!u.length?null:mr.createElement(xt,{zIndex:s??Oe.label},mr.createElement(tt,{className:"recharts-label-list"},u.map((d,m)=>{var h,p=fe(n)?t(d,m):we(d.payload,n),x=fe(i)?{}:{id:"".concat(i,"-").concat(m)};return mr.createElement(dr,ml({key:"label-".concat(m)},Ie(d),l,x,{fill:(h=r.fill)!==null&&h!==void 0?h:d.fill,parentViewBox:d.parentViewBox,value:p,textBreakAll:a,viewBox:d.viewBox,index:m,zIndex:0}))})))}pl.displayName="LabelList";function sb(e){var{label:t}=e;return t?t===!0?mr.createElement(pl,{key:"labelList-implicit"}):mr.isValidElement(t)||bd(t)?mr.createElement(pl,{key:"labelList-implicit",content:t}):typeof t=="object"?mr.createElement(pl,ml({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}var JI={radiusAxis:{},angleAxis:{}},lb=se({name:"polarAxis",initialState:JI,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Oq,removeRadiusAxis:Eq,addAngleAxis:Cq,removeAngleAxis:kq}=lb.actions,cb=lb.reducer;function ub(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var vb=Wi(pb());import{Children as tT}from"react";var mb=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",hb=null,Ad=null,gb=e=>{if(e===hb&&Array.isArray(Ad))return Ad;var t=[];return tT.forEach(e,r=>{fe(r)||((0,vb.isFragment)(r)?t=t.concat(gb(r.props.children)):t.push(r))}),Ad=t,hb=e,t};function yb(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(o=>mb(o)):n=[mb(t)],gb(e).forEach(o=>{var i=Ot(o,"type.displayName")||Ot(o,"type.name");i&&n.indexOf(i)!==-1&&r.push(o)}),r}import*as Qt from"react";import{cloneElement as mT,isValidElement as Ib}from"react";function Pd(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let r=e[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${r}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}import*as Ei from"react";import{useEffect as iT,useRef as Ao,useState as aT}from"react";var xb,bb,wb,Sb,Ab;function Pb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ob(e){for(var t=1;t{var i=r-n,a;return a=ve(xb||(xb=Oi(["M ",",",""])),e,t),a+=ve(bb||(bb=Oi(["L ",",",""])),e+r,t),a+=ve(wb||(wb=Oi(["L ",",",""])),e+r-i/2,t+o),a+=ve(Sb||(Sb=Oi(["L ",",",""])),e+r-i/2-n,t+o),a+=ve(Ab||(Ab=Oi(["L ",","," Z"])),e,t),a},sT={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Cb=e=>{var t=Me(e,sT),{x:r,y:n,upperWidth:o,lowerWidth:i,height:a,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:f,isUpdateAnimationActive:u}=t,d=Ao(null),[m,h]=aT(-1),p=Ao(o),x=Ao(i),v=Ao(a),A=Ao(r),P=Ao(n),C=Hn(e,"trapezoid-");if(iT(()=>{if(d.current&&d.current.getTotalLength)try{var H=d.current.getTotalLength();H&&h(H)}catch{}},[]),r!==+r||n!==+n||o!==+o||i!==+i||a!==+a||o===0&&i===0||a===0)return null;var E=ae("recharts-trapezoid",s);if(!u)return Ei.createElement("g",null,Ei.createElement("path",Ol({},Ie(t),{className:E,d:Eb(r,n,o,i,a)})));var k=p.current,T=x.current,I=v.current,z=A.current,j=P.current,Y="0px ".concat(m===-1?1:m,"px"),B="".concat(m,"px ").concat(m,"px"),X=Da(["strokeDasharray"],c,l);return Ei.createElement(qn,{animationId:C,key:C,canBegin:m>0,duration:c,easing:l,isActive:u,begin:f},H=>{var re=Te(k,o,H),g=Te(T,i,H),b=Te(I,a,H),O=Te(z,r,H),w=Te(j,n,H);d.current&&(p.current=re,x.current=g,v.current=b,A.current=O,P.current=w);var y=H>0?{transition:X,strokeDasharray:B}:{strokeDasharray:Y};return Ei.createElement("path",Ol({},Ie(t),{className:E,d:Eb(O,w,re,g,b),ref:d,style:Ob(Ob({},y),t.style)}))})};var lT=["option","shapeType","activeClassName","inActiveClassName"];function cT(e,t){if(e==null)return{};var r,n,o=uT(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var n=ne();return(o,i)=>a=>{e?.(o,i,a),n(Zs({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}},Ed=e=>{var t=ne();return(r,n)=>o=>{e?.(r,n,o),t(My())}},Cd=(e,t,r)=>{var n=ne();return(o,i)=>a=>{e?.(o,i,a),n(Ry({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}};import{useLayoutEffect as Mb,useRef as yT}from"react";function Rb(e){var{tooltipEntrySettings:t}=e,r=ne(),n=Ae(),o=yT(null);return Mb(()=>{n||(o.current===null?r(_y(t)):o.current!==t&&r(Iy({prev:o.current,next:t})),o.current=t)},[t,r,n]),Mb(()=>()=>{o.current&&(r(Ty(o.current)),o.current=null)},[r]),null}import{useLayoutEffect as Nb,useRef as xT}from"react";function Db(e){var{legendPayload:t}=e,r=ne(),n=Ae(),o=xT(null);return Nb(()=>{n||(o.current===null?r(gh(t)):o.current!==t&&r(yh({prev:o.current,next:t})),o.current=t)},[r,n,t]),Nb(()=>()=>{o.current&&(r(xh(o.current)),o.current=null)},[r]),null}import*as zb from"react";import{createContext as wT,useContext as AH}from"react";import*as Cl from"react";var kd,bT=()=>{var[e]=Cl.useState(()=>rr("uid-"));return e},jb=(kd=Cl.useId)!==null&&kd!==void 0?kd:bT;function Lb(e,t){var r=jb();return t||(e?"".concat(e,"-").concat(r):r)}var ST=wT(void 0),Bb=e=>{var{id:t,type:r,children:n}=e,o=Lb("recharts-".concat(r),t);return zb.createElement(ST.Provider,{value:o},n(o))};import{memo as CT,useLayoutEffect as Kb,useRef as kT}from"react";var AT={cartesianItems:[],polarItems:[]},Fb=se({name:"graphicalItems",initialState:AT,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ue()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Ye(e).cartesianItems.indexOf(r);o>-1&&(e.cartesianItems[o]=n)},prepare:ue()},removeCartesianGraphicalItem:{reducer(e,t){var r=Ye(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:ue()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:ue()},removePolarGraphicalItem:{reducer(e,t){var r=Ye(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:ue()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Ye(e).polarItems.indexOf(r);o>-1&&(e.polarItems[o]=n)},prepare:ue()}}}),{addCartesianGraphicalItem:Wb,replaceCartesianGraphicalItem:Vb,removeCartesianGraphicalItem:Ub,addPolarGraphicalItem:PT,removePolarGraphicalItem:OT,replacePolarGraphicalItem:ET}=Fb.actions,$b=Fb.reducer;var _T=e=>{var t=ne(),r=kT(null);return Kb(()=>{r.current===null?t(Wb(e)):r.current!==e&&t(Vb({prev:r.current,next:e})),r.current=e},[t,e]),Kb(()=>()=>{r.current&&(t(Ub(r.current)),r.current=null)},[t]),null},Gb=CT(_T);function Yb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function qb(e){for(var t=1;t({top:e.top,bottom:e.bottom,left:e.left,right:e.right}));var Jb=_([Zb,He,Xe],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}});var kl=()=>J(Jb);var Qb=(e,t,r)=>{var n=r??e;if(!fe(n))return $e(n,t,0)},e0=(e,t,r)=>{var n={},o=e.filter(Zr),i=e.filter(c=>c.stackId==null),a=o.reduce((c,f)=>{var u=c[f.stackId];return u==null&&(u=[]),u.push(f),c[f.stackId]=u,c},n),s=Object.entries(a).map(c=>{var f,[u,d]=c,m=d.map(p=>p.dataKey),h=Qb(t,r,(f=d[0])===null||f===void 0?void 0:f.barSize);return{stackId:u,dataKeys:m,barSize:h}}),l=i.map(c=>{var f=[c.dataKey].filter(d=>d!=null),u=Qb(t,r,c.barSize);return{stackId:void 0,dataKeys:f,barSize:u}});return[...s,...l]};function t0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function _l(e){for(var t=1;tA+(P.barSize||0),0);d+=(a-1)*s,d>=r&&(d-=(a-1)*s,s=0),d>=r&&u>0&&(f=!0,u*=.9,d=a*u);var m=(r-d)/2>>0,h={offset:m-s,size:0};l=n.reduce((A,P)=>{var C,E={stackId:P.stackId,dataKeys:P.dataKeys,position:{offset:h.offset+h.size+s,size:f?u:(C=P.barSize)!==null&&C!==void 0?C:0}},k=[...A,E];return h=E.position,k},c)}else{var p=$e(t,r,0,!0);r-2*p-(a-1)*s<=0&&(s=0);var x=(r-2*p-(a-1)*s)/a;x>1&&(x>>=0);var v=Z(o)?Math.min(x,o):x;l=n.reduce((A,P,C)=>[...A,{stackId:P.stackId,dataKeys:P.dataKeys,position:{offset:p+(x+s)*C+(x-v)/2,size:v}}],c)}return l}}var r0=(e,t,r,n,o,i,a)=>{var s=fe(a)?t:a,l=LT(r,n,o!==i?o:i,e,s);return o!==i&&l!=null&&(l=l.map(c=>_l(_l({},c),{},{position:_l(_l({},c.position),{},{offset:c.position.offset-o/2})}))),l};var n0=(e,t)=>{var r=Zn(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var o=e[n];if(o){var{stackedData:i}=o;if(i)return i.find(a=>a.key===r)}}}};var o0=(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}};function i0(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&Z(e.zIndex)?e.zIndex:t}import{useEffect as zT}from"react";var a0=e=>{var{chartData:t}=e,r=ne(),n=Ae();return zT(()=>n?()=>{}:(r(hd(t)),()=>{r(hd(void 0))}),[t,r,n]),null};var s0={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},l0=se({name:"brush",initialState:s0,reducers:{setBrushSettings(e,t){return t.payload==null?s0:t.payload}}}),{setBrushSettings:g4}=l0.actions,c0=l0.reducer;function BT(e){return(e%180+180)%180}var u0=function(t){var{width:r,height:n}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=BT(o),a=i*Math.PI/180,s=Math.atan(n/r),l=a>s&&a{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Ye(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Ye(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Ye(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:w4,removeDot:S4,addArea:A4,removeArea:P4,addLine:O4,removeLine:E4}=f0.actions,d0=f0.reducer;import*as Ci from"react";import{createContext as WT,useContext as _4,useState as VT}from"react";var UT=WT(void 0),p0=e=>{var{children:t}=e,[r]=VT("".concat(rr("recharts"),"-clip")),n=kl();if(n==null)return null;var{x:o,y:i,width:a,height:s}=n;return Ci.createElement(UT.Provider,{value:r},Ci.createElement("defs",null,Ci.createElement("clipPath",{id:r},Ci.createElement("rect",{x:o,y:i,height:s,width:a}))),t)};import*as ge from"react";import{useState as E0,useRef as rM,useCallback as nM,forwardRef as C0,useImperativeHandle as oM,useEffect as iM}from"react";function Il(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;ne*o)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-o)<=0}function v0(e,t){return Il(e,t+1)}function g0(e,t,r,n,o){for(var i=(n||[]).slice(),{start:a,end:s}=t,l=0,c=1,f=a,u=function(){var h=n?.[l];if(h===void 0)return{v:Il(n,c)};var p=l,x,v=()=>(x===void 0&&(x=r(h,p)),x),A=h.coordinate,P=l===0||yn(e,A,v,f,s);P||(l=0,f=a,c+=1),P&&(f=A+e*(v()/2+o),l+=c)},d;c<=i.length;)if(d=u(),d)return d.v;return[]}function y0(e,t,r,n,o){var i=(n||[]).slice(),a=i.length;if(a===0)return[];for(var{start:s,end:l}=t,c=1;c<=a;c++){for(var f=(a-1)%c,u=s,d=!0,m=function(){var C=n[p];if(C==null)return 0;var E=p,k,T=()=>(k===void 0&&(k=r(C,E)),k),I=C.coordinate,z=p===f||yn(e,I,T,u,l);if(!z)return d=!1,1;z&&(u=I+e*(T()/2+o))},h,p=f;p(p===void 0&&(p=r(m,d)),p);if(d===a-1){var v=e*(h.coordinate+e*x()/2-l);i[d]=h=Qe(Qe({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else i[d]=h=Qe(Qe({},h),{},{tickCoord:h.coordinate});if(h.tickCoord!=null){var A=yn(e,h.tickCoord,x,s,l);A&&(l=h.tickCoord-e*(x()/2+o),i[d]=Qe(Qe({},h),{},{isShow:!0}))}},f=a-1;f>=0;f--)c(f);return i}function qT(e,t,r,n,o,i){var a=(n||[]).slice(),s=a.length,{start:l,end:c}=t;if(i){var f=n[s-1];if(f!=null){var u=r(f,s-1),d=e*(f.coordinate+e*u/2-c);if(a[s-1]=f=Qe(Qe({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate}),f.tickCoord!=null){var m=yn(e,f.tickCoord,()=>u,l,c);m&&(c=f.tickCoord-e*(u/2+o),a[s-1]=Qe(Qe({},f),{},{isShow:!0}))}}}for(var h=i?s-1:s,p=function(A){var P=a[A];if(P==null)return 1;var C=P,E,k=()=>(E===void 0&&(E=r(P,A)),E);if(A===0){var T=e*(C.coordinate-e*k()/2-l);a[A]=C=Qe(Qe({},C),{},{tickCoord:T<0?C.coordinate-T*e:C.coordinate})}else a[A]=C=Qe(Qe({},C),{},{tickCoord:C.coordinate});if(C.tickCoord!=null){var I=yn(e,C.tickCoord,k,l,c);I&&(l=C.tickCoord+e*(k()/2+o),a[A]=Qe(Qe({},C),{},{isShow:!0}))}},x=0;x{var T=typeof c=="function"?c(E.value,k):E.value;return h==="width"?m0(gn(T,{fontSize:t,letterSpacing:r}),p,u):gn(T,{fontSize:t,letterSpacing:r})[h]},v=o[0],A=o[1],P=o.length>=2&&v!=null&&A!=null?Se(A.coordinate-v.coordinate):1,C=h0(i,P,h);return l==="equidistantPreserveStart"?g0(P,C,x,o,a):l==="equidistantPreserveEnd"?y0(P,C,x,o,a):(l==="preserveStart"||l==="preserveStartEnd"?m=qT(P,C,x,o,a,l==="preserveStartEnd"):m=YT(P,C,x,o,a),m.filter(E=>E.isShow))}var b0=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:o=0,tickMargin:i=0}=e,a=0;if(t){Array.from(t).forEach(f=>{if(f){var u=f.getBoundingClientRect();u.width>a&&(a=u.width)}});var s=r?r.getBoundingClientRect().width:0,l=o+i,c=a+l+s+(r?n:0);return Math.round(c)}return 0};var HT={xAxis:{},yAxis:{}},w0=se({name:"renderedTicks",initialState:HT,reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:n,ticks:o}=t.payload;e[r][n]=o},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:n}=t.payload;delete e[r][n]}}}),{setRenderedTicks:S0,removeRenderedTicks:A0}=w0.actions,P0=w0.reducer;var XT=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function ZT(e,t){if(e==null)return{};var r,n,o=JT(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{if(n==null||r==null)return dt;var i=t.map(a=>({value:a.value,coordinate:a.coordinate,offset:a.offset,index:a.index}));return o(S0({ticks:i,axisId:n,axisType:r})),()=>{o(A0({axisId:n,axisType:r}))}},[o,t,n,r]),null}var dM=C0((e,t)=>{var{ticks:r=[],tick:n,tickLine:o,stroke:i,tickFormatter:a,unit:s,padding:l,tickTextProps:c,orientation:f,mirror:u,x:d,y:m,width:h,height:p,tickSize:x,tickMargin:v,fontSize:A,letterSpacing:P,getTicksConfig:C,events:E,axisType:k,axisId:T}=e,I=ki(Ee(Ee({},C),{},{ticks:r}),A,P),z=lt(C),j=Vi(n),Y=ul(z.textAnchor)?z.textAnchor:lM(f,u),B=cM(f,u),X={};typeof o=="object"&&(X=o);var H=Ee(Ee({},z),{},{fill:"none"},X),re=I.map(O=>Ee({entry:O},sM(O,d,m,h,p,f,x,u,v))),g=re.map(O=>{var{entry:w,line:y}=O;return ge.createElement(tt,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},o&&ge.createElement("line",xn({},H,y,{className:ae("recharts-cartesian-axis-tick-line",Ot(o,"className"))})))}),b=re.map((O,w)=>{var y,S,{entry:M,tick:D}=O,L=Ee(Ee(Ee(Ee({verticalAnchor:B},z),{},{textAnchor:Y,stroke:"none",fill:i},D),{},{index:w,payload:M,visibleTicksCount:I.length,tickFormatter:a,padding:l},c),{},{angle:(y=(S=c?.angle)!==null&&S!==void 0?S:z.angle)!==null&&y!==void 0?y:0}),W=Ee(Ee({},L),j);return ge.createElement(tt,xn({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},Io(E,M,w)),n&&ge.createElement(uM,{option:n,tickProps:W,value:"".concat(typeof a=="function"?a(M.value,w):M.value).concat(s||"")}))});return ge.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(k,"-ticks")},ge.createElement(fM,{ticks:I,axisId:T,axisType:k}),b.length>0&&ge.createElement(xt,{zIndex:Oe.label},ge.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(k,"-tick-labels"),ref:t},b)),g.length>0&&ge.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(k,"-tick-lines")},g))}),pM=C0((e,t)=>{var{axisLine:r,width:n,height:o,className:i,hide:a,ticks:s,axisType:l,axisId:c}=e,f=ZT(e,XT),[u,d]=E0(""),[m,h]=E0(""),p=rM(null);oM(t,()=>({getCalculatedWidth:()=>{var v;return b0({ticks:p.current,label:(v=e.labelRef)===null||v===void 0?void 0:v.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var x=nM(v=>{if(v){var A=v.getElementsByClassName("recharts-cartesian-axis-tick-value");p.current=A;var P=A[0];if(P){var C=window.getComputedStyle(P),E=C.fontSize,k=C.letterSpacing;(E!==u||k!==m)&&(d(E),h(k))}}},[u,m]);return a||n!=null&&n<=0||o!=null&&o<=0?null:ge.createElement(xt,{zIndex:e.zIndex},ge.createElement(tt,{className:ae("recharts-cartesian-axis",i)},ge.createElement(aM,{x:e.x,y:e.y,width:n,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:lt(e)}),ge.createElement(dM,{ref:x,axisType:l,events:f,fontSize:u,getTicksConfig:e,height:e.height,letterSpacing:m,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:c}),ge.createElement(Jx,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},ge.createElement(eb,{label:e.label,labelRef:e.labelRef}),e.children)))}),mM=ge.forwardRef((e,t)=>{var r=Me(e,Tl);return ge.createElement(pM,xn({},r,{ref:t}))});mM.displayName="CartesianAxis";import*as Ce from"react";var hM=["x1","y1","x2","y2","key"],vM=["offset"],gM=["xAxisId","yAxisId"],yM=["xAxisId","yAxisId"];function k0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function et(e){for(var t=1;t{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:o,width:i,height:a,ry:s}=e;return Ce.createElement("rect",{x:n,y:o,ry:s,width:i,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function _0(e){var{option:t,lineItemProps:r}=e,n;if(Ce.isValidElement(t))n=Ce.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var o,{x1:i,y1:a,x2:s,y2:l,key:c}=r,f=Ml(r,hM),u=(o=lt(f))!==null&&o!==void 0?o:{},{offset:d}=u,m=Ml(u,vM);n=Ce.createElement("line",bn({},m,{x1:i,y1:a,x2:s,y2:l,fill:"none",key:c}))}return n}function PM(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:o}=e;if(!n||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=Ml(e,gM),l=o.map((c,f)=>{var u=et(et({},s),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(f),index:f});return Ce.createElement(_0,{key:"line-".concat(f),option:n,lineItemProps:u})});return Ce.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function OM(e){var{y:t,height:r,vertical:n=!0,verticalPoints:o}=e;if(!n||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=Ml(e,yM),l=o.map((c,f)=>{var u=et(et({},s),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(f),index:f});return Ce.createElement(_0,{option:n,lineItemProps:u,key:"line-".concat(f)})});return Ce.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function EM(e){var{horizontalFill:t,fillOpacity:r,x:n,y:o,width:i,height:a,horizontalPoints:s,horizontal:l=!0}=e;if(!l||!t||!t.length||s==null)return null;var c=s.map(u=>Math.round(u+o-o)).sort((u,d)=>u-d);o!==c[0]&&c.unshift(0);var f=c.map((u,d)=>{var m=c[d+1],h=m==null,p=h?o+a-u:m-u;if(p<=0)return null;var x=d%t.length;return Ce.createElement("rect",{key:"react-".concat(d),y:u,x:n,height:p,width:i,stroke:"none",fill:t[x],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return Ce.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function CM(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:o,y:i,width:a,height:s,verticalPoints:l}=e;if(!t||!r||!r.length)return null;var c=l.map(u=>Math.round(u+o-o)).sort((u,d)=>u-d);o!==c[0]&&c.unshift(0);var f=c.map((u,d)=>{var m=c[d+1],h=m==null,p=h?o+a-u:m-u;if(p<=0)return null;var x=d%r.length;return Ce.createElement("rect",{key:"react-".concat(d),x:u,y:i,width:p,height:s,stroke:"none",fill:r[x],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return Ce.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var kM=(e,t)=>{var{xAxis:r,width:n,height:o,offset:i}=e;return au(ki(et(et(et({},Tl),r),{},{ticks:su(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,t)},_M=(e,t)=>{var{yAxis:r,width:n,height:o,offset:i}=e;return au(ki(et(et(et({},Tl),r),{},{ticks:su(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,t)},IM={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Oe.grid};function Rl(e){var t=Ma(),r=Ra(),n=mh(),o=et(et({},Me(e,IM)),{},{x:q(e.x)?e.x:n.left,y:q(e.y)?e.y:n.top,width:q(e.width)?e.width:n.width,height:q(e.height)?e.height:n.height}),{xAxisId:i,yAxisId:a,x:s,y:l,width:c,height:f,syncWithTicks:u,horizontalValues:d,verticalValues:m}=o,h=Ae(),p=J(z=>Xf(z,"xAxis",i,h)),x=J(z=>Xf(z,"yAxis",a,h));if(!ct(c)||!ct(f)||!q(s)||!q(l))return null;var v=o.verticalCoordinatesGenerator||kM,A=o.horizontalCoordinatesGenerator||_M,{horizontalPoints:P,verticalPoints:C}=o;if((!P||!P.length)&&typeof A=="function"){var E=d&&d.length,k=A({yAxis:x?et(et({},x),{},{ticks:E?d:x.ticks}):void 0,width:t??c,height:r??f,offset:n},E?!0:u);Kn(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof k,"]")),Array.isArray(k)&&(P=k)}if((!C||!C.length)&&typeof v=="function"){var T=m&&m.length,I=v({xAxis:p?et(et({},p),{},{ticks:T?m:p.ticks}):void 0,width:t??c,height:r??f,offset:n},T?!0:u);Kn(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof I,"]")),Array.isArray(I)&&(C=I)}return Ce.createElement(xt,{zIndex:o.zIndex},Ce.createElement("g",{className:"recharts-cartesian-grid"},Ce.createElement(AM,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),Ce.createElement(EM,bn({},o,{horizontalPoints:P})),Ce.createElement(CM,bn({},o,{verticalPoints:C})),Ce.createElement(PM,bn({},o,{offset:n,horizontalPoints:P,xAxis:p,yAxis:x})),Ce.createElement(OM,bn({},o,{offset:n,verticalPoints:C,xAxis:p,yAxis:x}))))}Rl.displayName="CartesianGrid";import*as M0 from"react";import{createContext as DM,useContext as N8,useEffect as D8,useRef as j8}from"react";var TM={},I0=se({name:"errorBars",initialState:TM,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:o}=t.payload;e[r]&&(e[r]=e[r].map(i=>i.dataKey===n.dataKey&&i.direction===n.direction?o:i))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(o=>o.dataKey!==n.dataKey||o.direction!==n.direction))}}}),{addErrorBar:_8,replaceErrorBar:I8,removeErrorBar:T8}=I0.actions,T0=I0.reducer;var MM=["children"];function RM(e,t){if(e==null)return{};var r,n,o=NM(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n({x:0,y:0,value:0}),errorBarOffset:0},LM=DM(jM);function R0(e){var{children:t}=e,r=RM(e,MM);return M0.createElement(LM.Provider,{value:r},t)}import*as Id from"react";function Td(e,t){var r,n,o=J(c=>Xt(c,e)),i=J(c=>Zt(c,t)),a=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:yf.allowDataOverflow,s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:xf.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function N0(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,o=kl(),{needClipX:i,needClipY:a,needClip:s}=Td(t,r);if(!s||!o)return null;var{x:l,y:c,width:f,height:u}=o;return Id.createElement("clipPath",{id:"clipPath-".concat(n)},Id.createElement("rect",{x:i?l:l-f/2,y:a?c:c-u/2,width:i?f:f*2,height:a?u:u*2}))}function Tr(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||n===void 0?void 0:n.xAxisId)!==null&&r!==void 0?r:_d}function Mr(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||n===void 0?void 0:n.yAxisId)!==null&&r!==void 0?r:_d}import*as ee from"react";import{PureComponent as hR,useCallback as Ld,useEffect as vR,useRef as gR,useState as zd}from"react";import*as j0 from"react";var zM=!0,Md="Invariant failed";function D0(e,t){if(!e){if(zM)throw new Error(Md);var r=typeof t=="function"?t():t,n=r?"".concat(Md,": ").concat(r):Md;throw new Error(n)}}function Rd(){return Rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:0;return(n,o)=>{if(q(t))return t;var i=q(n)||fe(n);return i?t(n,o):(i||D0(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}};var BM=(e,t,r)=>r,FM=(e,t)=>t,_i=_([Vs,FM],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),WM=_([_i],e=>e?.maxBarSize),VM=(e,t,r,n)=>n,UM=_([oe,Vs,Tr,Mr,BM],(e,t,r,n,o)=>t.filter(i=>e==="horizontal"?i.xAxisId===r:i.yAxisId===n).filter(i=>i.isPanorama===o).filter(i=>i.hide===!1).filter(i=>i.type==="bar")),$M=(e,t,r)=>{var n=oe(e),o=Tr(e,t),i=Mr(e,t);if(!(o==null||i==null))return n==="horizontal"?Us(e,"yAxis",i,r):Us(e,"xAxis",o,r)},KM=(e,t)=>{var r=oe(e),n=Tr(e,t),o=Mr(e,t);if(!(n==null||o==null))return r==="horizontal"?Yf(e,"xAxis",n):Yf(e,"yAxis",o)},GM=_([UM,Lv,KM],e0),YM=(e,t,r)=>{var n,o,i=_i(e,t);if(i==null)return 0;var a=Tr(e,t),s=Mr(e,t);if(a==null||s==null)return 0;var l=oe(e),c=_u(e),{maxBarSize:f}=i,u=fe(f)?c:f,d,m;return l==="horizontal"?(d=mn(e,"xAxis",a,r),m=pn(e,"xAxis",a,r)):(d=mn(e,"yAxis",s,r),m=pn(e,"yAxis",s,r)),(n=(o=fu(d,m,!0))!==null&&o!==void 0?o:u)!==null&&n!==void 0?n:0},z0=(e,t,r)=>{var n=oe(e),o=Tr(e,t),i=Mr(e,t);if(!(o==null||i==null)){var a,s;return n==="horizontal"?(a=mn(e,"xAxis",o,r),s=pn(e,"xAxis",o,r)):(a=mn(e,"yAxis",i,r),s=pn(e,"yAxis",i,r)),fu(a,s)}},qM=_([GM,_u,jv,qa,YM,z0,WM],r0),HM=(e,t,r)=>{var n=Tr(e,t);if(n!=null)return mn(e,"xAxis",n,r)},XM=(e,t,r)=>{var n=Mr(e,t);if(n!=null)return mn(e,"yAxis",n,r)},ZM=(e,t,r)=>{var n=Tr(e,t);if(n!=null)return pn(e,"xAxis",n,r)},JM=(e,t,r)=>{var n=Mr(e,t);if(n!=null)return pn(e,"yAxis",n,r)},QM=_([qM,_i],o0),eR=_([$M,_i],n0),B0=_([de,nh,HM,XM,ZM,JM,QM,oe,_v,z0,eR,_i,VM],(e,t,r,n,o,i,a,s,l,c,f,u,d)=>{var{chartData:m,dataStartIndex:h,dataEndIndex:p}=l;if(!(u==null||a==null||t==null||s!=="horizontal"&&s!=="vertical"||r==null||n==null||o==null||i==null||c==null)){var{data:x}=u,v;if(x!=null&&x.length>0?v=x:v=m?.slice(h,p+1),v!=null)return F0({layout:s,barSettings:u,pos:a,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:o,yAxisTicks:i,stackedData:f,displayedData:v,offset:e,cells:d,dataStartIndex:h})}});import*as Dd from"react";import{createContext as oR,useContext as W0,useMemo as f6}from"react";var tR=["index"];function Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=W0(V0);if(t!=null)return t.stackId;if(e!=null)return Ym(e)};var iR=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),aR=e=>{var t=W0(V0);if(t!=null){var{stackId:r}=t;return"url(#".concat(iR(r,e),")")}},jd=e=>{var{index:t}=e,r=rR(e,tR),n=aR(t);return Dd.createElement(tt,Nd({className:"recharts-bar-stack-layer",clipPath:n},r))};var sR=["onMouseEnter","onMouseLeave","onClick"],lR=["value","background","tooltipPosition"],cR=["id"],uR=["onMouseEnter","onClick","onMouseLeave"];function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{dataKey:t,name:r,fill:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:pu(r,t),payload:e}]},xR=ee.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:o,name:i,hide:a,unit:s,tooltipType:l,id:c}=e,f={dataDefinedOnItem:void 0,getPosition:dt,settings:{stroke:r,strokeWidth:n,fill:o,dataKey:t,nameKey:void 0,name:pu(i,t),hide:a,type:l,color:o,unit:s,graphicalItemId:c}};return ee.createElement(Rb,{tooltipEntrySettings:f})});function bR(e){var t=J(_r),{data:r,dataKey:n,background:o,allOtherBarProps:i}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=i,c=Dl(i,sR),f=Od(a,n,i.id),u=Ed(s),d=Cd(l,n,i.id);if(!o||r==null)return null;var m=Vi(o);return ee.createElement(xt,{zIndex:i0(o,Oe.barBackground)},r.map((h,p)=>{var{value:x,background:v,tooltipPosition:A}=h,P=Dl(h,lR);if(!v)return null;var C=f(h,p),E=u(h,p),k=d(h,p),T=st(st(st(st(st({option:o,isActive:String(p)===t},P),{},{fill:"#eee"},v),m),Io(c,h,p)),{},{onMouseEnter:C,onMouseLeave:E,onClick:k,dataKey:n,index:p,className:"recharts-bar-background-rectangle"});return ee.createElement(Nl,Rr({key:"background-bar-".concat(p)},T))}))}function wR(e){var{showLabels:t,children:r,rects:n}=e,o=n?.map(i=>{var a={x:i.x,y:i.y,width:i.width,lowerWidth:i.width,upperWidth:i.width,height:i.height};return st(st({},a),{},{value:i.value,payload:i.payload,parentViewBox:i.parentViewBox,viewBox:a,fill:i.fill})});return ee.createElement(ib,{value:t?o:void 0},r)}function SR(e){var{shape:t,activeBar:r,baseProps:n,entry:o,index:i,dataKey:a}=e,s=J(_r),l=J(al),c=r&&String(o.originalDataIndex)===s&&(l==null||a===l),[f,u]=zd(!1),[d,m]=zd(!1);vR(()=>{var P;return c?(u(!0),P=requestAnimationFrame(()=>{m(!0)})):m(!1),()=>{cancelAnimationFrame(P)}},[c]);var h=Ld(()=>{c||u(!1)},[c]),p=c&&d,x=c||f,v;c?r===!0?v=t:v=r:v=t;var A=ee.createElement(Nl,Rr({},n,{name:String(n.name)},o,{isActive:p,option:v,index:i,dataKey:a,onTransitionEnd:h}));return x?ee.createElement(xt,{zIndex:Oe.activeBar},ee.createElement(jd,{index:o.originalDataIndex},A)):A}function AR(e){var{shape:t,baseProps:r,entry:n,index:o,dataKey:i}=e;return ee.createElement(Nl,Rr({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:o,dataKey:i}))}function PR(e){var t,{data:r,props:n}=e,o=(t=lt(n))!==null&&t!==void 0?t:{},{id:i}=o,a=Dl(o,cR),{shape:s,dataKey:l,activeBar:c}=n,{onMouseEnter:f,onClick:u,onMouseLeave:d}=n,m=Dl(n,uR),h=Od(f,l,i),p=Ed(d),x=Cd(u,l,i);return r?ee.createElement(ee.Fragment,null,r.map((v,A)=>ee.createElement(jd,Rr({index:v.originalDataIndex,key:"rectangle-".concat(v?.x,"-").concat(v?.y,"-").concat(v?.value,"-").concat(A),className:"recharts-bar-rectangle"},Io(m,v,A),{onMouseEnter:h(v,A),onMouseLeave:p(v,A),onClick:x(v,A)}),c?ee.createElement(SR,{shape:s,activeBar:c,baseProps:a,entry:v,index:A,dataKey:l}):ee.createElement(AR,{shape:s,baseProps:a,entry:v,index:A,dataKey:l})))):null}function OR(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:o,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:l,onAnimationEnd:c,onAnimationStart:f}=t,u=r.current,d=Hn(t,"recharts-bar-"),[m,h]=zd(!1),p=!m,x=Ld(()=>{typeof c=="function"&&c(),h(!1)},[c]),v=Ld(()=>{typeof f=="function"&&f(),h(!0)},[f]);return ee.createElement(wR,{showLabels:p,rects:n},ee.createElement(qn,{animationId:d,begin:a,duration:s,isActive:i,easing:l,onAnimationEnd:x,onAnimationStart:v,key:d},A=>{var P=A===1?n:n?.map((C,E)=>{var k=u&&u[E];if(k)return st(st({},C),{},{x:Te(k.x,C.x,A),y:Te(k.y,C.y,A),width:Te(k.width,C.width,A),height:Te(k.height,C.height,A)});if(o==="horizontal"){var T=Te(0,C.height,A),I=Te(C.stackedBarStart,C.y,A);return st(st({},C),{},{y:I,height:T})}var z=Te(0,C.width,A),j=Te(C.stackedBarStart,C.x,A);return st(st({},C),{},{width:z,x:j})});return A>0&&(r.current=P??null),P==null?null:ee.createElement(tt,null,ee.createElement(PR,{props:t,data:P}))}),ee.createElement(sb,{label:t.label}),t.children)}function ER(e){var t=gR(null);return ee.createElement(OR,{previousRectanglesRef:t,props:e})}var K0=0,CR=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:we(e,t)}},Bd=class extends hR{render(){var{hide:t,data:r,dataKey:n,className:o,xAxisId:i,yAxisId:a,needClip:s,background:l,id:c}=this.props;if(t||r==null)return null;var f=ae("recharts-bar",o),u=c;return ee.createElement(tt,{className:f,id:c},s&&ee.createElement("defs",null,ee.createElement(N0,{clipPathId:u,xAxisId:i,yAxisId:a})),ee.createElement(tt,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(u,")"):void 0},ee.createElement(bR,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),ee.createElement(ER,this.props)))}},kR={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:K0,xAxisId:0,yAxisId:0,zIndex:Oe.bar};function _R(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:f}=e,{needClip:u}=Td(t,r),d=Yr(),m=Ae(),h=yb(e.children,gd),p=J(A=>B0(A,e.id,m,h));if(d!=="vertical"&&d!=="horizontal")return null;var x,v=p?.[0];return v==null||v.height==null||v.width==null?x=0:x=d==="vertical"?v.height/2:v.width/2,ee.createElement(R0,{xAxisId:t,yAxisId:r,data:p,dataPointFormatter:CR,errorBarOffset:x},ee.createElement(Bd,Rr({},e,{layout:d,needClip:u,data:p,xAxisId:t,yAxisId:r,hide:n,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:f})))}function F0(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n,hasCustomShape:o},pos:i,bandSize:a,xAxis:s,yAxis:l,xAxisTicks:c,yAxisTicks:f,stackedData:u,displayedData:d,offset:m,cells:h,parentViewBox:p,dataStartIndex:x}=e,v=t==="horizontal"?l:s,A=u?v.scale.domain():null,P=qm({numericAxis:v}),C=v.scale.map(P);return d.map((E,k)=>{var T,I,z,j,Y,B;if(u){var X=u[k+x];if(X==null)return null;T=Km(X,A)}else T=we(E,r),Array.isArray(T)||(T=[P,T]);var H=L0(n,K0)(T[1],k);if(t==="horizontal"){var re,g=l.scale.map(T[0]),b=l.scale.map(T[1]);if(g==null||b==null)return null;I=lu({axis:s,ticks:c,bandSize:a,offset:i.offset,entry:E,index:k}),z=(re=b??g)!==null&&re!==void 0?re:void 0,j=i.size;var O=g-b;if(Y=qe(O)?0:O,B={x:I,y:m.top,width:j,height:m.height},Math.abs(H)>0&&Math.abs(Y)0&&Math.abs(j)ee.createElement(ee.Fragment,null,ee.createElement(Db,{legendPayload:yR(t)}),ee.createElement(xR,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:o}),ee.createElement(Gb,{type:"bar",id:o,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:r,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n,hasCustomShape:t.shape!=null}),ee.createElement(xt,{zIndex:t.zIndex},ee.createElement(_R,Rr({},t,{id:o})))))}var Ii=ee.memo(IR,Gn);Ii.displayName="Bar";import*as En from"react";import{forwardRef as bN}from"react";import*as iw from"react";import{useRef as LR}from"react";var TR=(e,t)=>t,Ti=_([TR,oe,ts,ke,nd,Tt,Jy,de],ex);function MR(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function Mi(e){var t=e.currentTarget.getBoundingClientRect(),r,n;if(MR(e)){var o=e.currentTarget.getBBox();r=o.width>0?t.width/o.width:1,n=o.height>0?t.height/o.height:1}else{var i=e.currentTarget;r=i.offsetWidth>0?t.width/i.offsetWidth:1,n=i.offsetHeight>0?t.height/i.offsetHeight:1}var a=(s,l)=>({relativeX:Math.round((s-t.left)/r),relativeY:Math.round((l-t.top)/n)});return"touches"in e?Array.from(e.touches).map(s=>a(s.clientX,s.clientY)):a(e.clientX,e.clientY)}var Wd=Re("mouseClick"),Vd=ir();Vd.startListening({actionCreator:Wd,effect:(e,t)=>{var r=e.payload,n=Ti(t.getState(),Mi(r));n?.activeIndex!=null&&t.dispatch(Ny({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var jl=Re("mouseMove"),Ud=ir(),Po=null,wn=null,Fd=null;Ud.startListening({actionCreator:jl,effect:(e,t)=>{var r=e.payload,n=t.getState(),{throttleDelay:o,throttledEvents:i}=n.eventSettings,a=i==="all"||i?.includes("mousemove");Po!==null&&(cancelAnimationFrame(Po),Po=null),wn!==null&&(typeof o!="number"||!a)&&(clearTimeout(wn),wn=null),Fd=Mi(r);var s=()=>{var l=t.getState(),c=Hs(l,l.tooltip.settings.shared);if(!Fd){Po=null,wn=null;return}if(c==="axis"){var f=Ti(l,Fd);f?.activeIndex!=null?t.dispatch(Qs({activeIndex:f.activeIndex,activeDataKey:void 0,activeCoordinate:f.activeCoordinate})):t.dispatch(Js())}Po=null,wn=null};if(!a){s();return}o==="raf"?Po=requestAnimationFrame(s):typeof o=="number"&&wn===null&&(wn=setTimeout(s,o))}});function G0(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<>":t}var Y0={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},q0=se({name:"rootProps",initialState:Y0,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:Y0.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),H0=q0.reducer,{updateOptions:X0}=q0.actions;var RR=null,NR={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},Z0=se({name:"polarOptions",initialState:RR,reducers:NR}),{updatePolarOptions:dX}=Z0.actions,J0=Z0.reducer;var $d=Re("keyDown"),Kd=Re("focus"),Gd=Re("blur"),Ri=ir(),Oo=null,Sn=null,Ll=null;Ri.startListening({actionCreator:$d,effect:(e,t)=>{Ll=e.payload,Oo!==null&&(cancelAnimationFrame(Oo),Oo=null);var r=t.getState(),{throttleDelay:n,throttledEvents:o}=r.eventSettings,i=o==="all"||o.includes("keydown");Sn!==null&&(typeof n!="number"||!i)&&(clearTimeout(Sn),Sn=null);var a=()=>{try{var s=t.getState(),l=s.rootProps.accessibilityLayer!==!1;if(!l)return;var{keyboardInteraction:c}=s.tooltip,f=Ll;if(f!=="ArrowRight"&&f!=="ArrowLeft"&&f!=="Enter")return;var u=xo(c,kr(s),Er(s),vn(s)),d=u==null?-1:Number(u);if(!Number.isFinite(d)||d<0)return;var m=Tt(s);if(f==="Enter"){var h=bi(s,"axis","hover",String(c.index));t.dispatch(yi({active:!c.active,activeIndex:c.index,activeCoordinate:h}));return}var p=Ey(s),x=p==="left-to-right"?1:-1,v=f==="ArrowRight"?1:-1,A=d+v*x;if(m==null||A>=m.length||A<0)return;var P=bi(s,"axis","hover",String(A));t.dispatch(yi({active:!0,activeIndex:A.toString(),activeCoordinate:P}))}finally{Oo=null,Sn=null}};if(!i){a();return}n==="raf"?Oo=requestAnimationFrame(a):typeof n=="number"&&Sn===null&&(a(),Ll=null,Sn=setTimeout(()=>{Ll?a():(Sn=null,Oo=null)},n))}});Ri.startListening({actionCreator:Kd,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=r.tooltip;if(!o.active&&o.index==null){var i="0",a=bi(r,"axis","hover",String(i));t.dispatch(yi({active:!0,activeIndex:i,activeCoordinate:a}))}}}});Ri.startListening({actionCreator:Gd,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=r.tooltip;o.active&&t.dispatch(yi({active:!1,activeIndex:o.index,activeCoordinate:o.coordinate}))}}});function zl(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(r,n)=>{if(n==="currentTarget")return t;var o=Reflect.get(r,n);return typeof o=="function"?o.bind(r):o}})}var wt=Re("externalEvent"),qd=ir(),Bl=new Map,Ni=new Map,Yd=new Map;qd.startListening({actionCreator:wt,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){var o=n.type,i=zl(n);Yd.set(o,{handler:r,reactEvent:i});var a=Bl.get(o);a!==void 0&&(cancelAnimationFrame(a),Bl.delete(o));var s=t.getState(),{throttleDelay:l,throttledEvents:c}=s.eventSettings,f=c,u=f==="all"||f?.includes(o),d=Ni.get(o);d!==void 0&&(typeof l!="number"||!u)&&(clearTimeout(d),Ni.delete(o));var m=()=>{var x=Yd.get(o);try{if(!x)return;var{handler:v,reactEvent:A}=x,P=t.getState(),C={activeCoordinate:Ky(P),activeDataKey:al(P),activeIndex:_r(P),activeLabel:ad(P),activeTooltipIndex:_r(P),isTooltipActive:Gy(P)};v&&v(C,A)}finally{Bl.delete(o),Ni.delete(o),Yd.delete(o)}};if(!u){m();return}if(l==="raf"){var h=requestAnimationFrame(m);Bl.set(o,h)}else if(typeof l=="number"){if(!Ni.has(o)){m();var p=setTimeout(m,l);Ni.set(o,p)}}else m()}}});var DR=_([Cr],e=>e.tooltipItemPayloads),Q0=_([DR,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var n=e.find(i=>i.settings.graphicalItemId===r);if(n!=null){var{getPosition:o}=n;if(o!=null)return o(t)}}});var Hd=Re("touchMove"),Xd=ir(),An=null,Nr=null,ew=null,Di=null;Xd.startListening({actionCreator:Hd,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){Di=zl(r);var n=t.getState(),{throttleDelay:o,throttledEvents:i}=n.eventSettings,a=i==="all"||i.includes("touchmove");An!==null&&(cancelAnimationFrame(An),An=null),Nr!==null&&(typeof o!="number"||!a)&&(clearTimeout(Nr),Nr=null),ew=Array.from(r.touches).map(l=>Mi({clientX:l.clientX,clientY:l.clientY,currentTarget:r.currentTarget}));var s=()=>{if(Di!=null){var l=t.getState(),c=Hs(l,l.tooltip.settings.shared);if(c==="axis"){var f,u=(f=ew)===null||f===void 0?void 0:f[0];if(u==null){An=null,Nr=null;return}var d=Ti(l,u);d?.activeIndex!=null&&t.dispatch(Qs({activeIndex:d.activeIndex,activeDataKey:void 0,activeCoordinate:d.activeCoordinate}))}else if(c==="item"){var m,h=Di.touches[0];if(document.elementFromPoint==null||h==null)return;var p=document.elementFromPoint(h.clientX,h.clientY);if(!p||!p.getAttribute)return;var x=p.getAttribute(Qm),v=(m=p.getAttribute(eh))!==null&&m!==void 0?m:void 0,A=hn(l).find(E=>E.id===v);if(x==null||A==null||v==null)return;var{dataKey:P}=A,C=Q0(l,x,v);t.dispatch(Zs({activeDataKey:P,activeIndex:x,activeCoordinate:C,activeGraphicalItemId:v}))}An=null,Nr=null}};if(!a){s();return}o==="raf"?An=requestAnimationFrame(s):typeof o=="number"&&Nr===null&&(s(),Di=null,Nr=setTimeout(()=>{Di?s():(Nr=null,An=null)},o))}}});var Zd={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},tw=se({name:"eventSettings",initialState:Zd,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:rw}=tw.actions,nw=tw.reducer;var jR=ia({brush:c0,cartesianAxis:Xb,chartData:Sx,errorBars:T0,eventSettings:nw,graphicalItems:$b,layout:Vm,legend:bh,options:yx,polarAxis:cb,polarOptions:J0,referenceElements:d0,renderedTicks:P0,rootProps:H0,tooltip:Dy,zIndex:ux}),ow=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return Pm({reducer:jR,preloadedState:t,middleware:n=>{var o;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([Vd.middleware,Ud.middleware,Ri.middleware,qd.middleware,Xd.middleware])},enhancers:n=>{var o=n;return typeof n=="function"&&(o=n()),o.concat(ru({type:"raf"}))},devTools:Ct.devToolsEnabled&&{serialize:{replacer:G0},name:"recharts-".concat(r)}})};function aw(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,o=Ae(),i=LR(null);if(o)return r;i.current==null&&(i.current=ow(t,n));var a=To;return iw.createElement(Ph,{context:a,store:i.current},r)}import{memo as zR,useEffect as BR}from"react";function FR(e){var{layout:t,margin:r}=e,n=ne(),o=Ae();return BR(()=>{o||(n(Bm(t)),n(iu(r)))},[n,o,t,r]),null}var sw=zR(FR,Gn);import{useEffect as WR}from"react";function lw(e){var t=ne();return WR(()=>{t(X0(e))},[t,e]),null}import{useEffect as VR,memo as UR}from"react";var $R=e=>{var t=ne();return VR(()=>{t(rw(e))},[t,e]),null},cw=UR($R,Gn);import*as hr from"react";import{forwardRef as hN}from"react";import*as On from"react";import{forwardRef as fw}from"react";import*as Pn from"react";import{useLayoutEffect as KR,useRef as GR}from"react";function uw(e){var{zIndex:t,isPanorama:r}=e,n=GR(null),o=ne();return KR(()=>(n.current&&o(lx({zIndex:t,element:n.current,isPanorama:r})),()=>{o(cx({zIndex:t,isPanorama:r}))}),[o,t,r]),Pn.createElement("g",{tabIndex:-1,ref:n,className:"recharts-zIndex-layer_".concat(t)})}function Jd(e){var{children:t,isPanorama:r}=e,n=J(rx);if(!n||n.length===0)return t;var o=n.filter(a=>a<0),i=n.filter(a=>a>0);return Pn.createElement(Pn.Fragment,null,o.map(a=>Pn.createElement(uw,{key:a,zIndex:a,isPanorama:r})),t,i.map(a=>Pn.createElement(uw,{key:a,zIndex:a,isPanorama:r})))}var YR=["children"];function qR(e,t){if(e==null)return{};var r,n,o=HR(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var r=Ma(),n=Ra(),o=Eh();if(!ct(r)||!ct(n))return null;var{children:i,otherAttributes:a,title:s,desc:l}=e,c,f;return a!=null&&(typeof a.tabIndex=="number"?c=a.tabIndex:c=o?0:void 0,typeof a.role=="string"?f=a.role:f=o?"application":void 0),On.createElement(Jl,Fl({},a,{title:s,desc:l,role:f,tabIndex:c,width:r,height:n,style:XR,ref:t}),i)}),JR=e=>{var{children:t}=e,r=J(Kr);if(!r)return null;var{width:n,height:o,y:i,x:a}=r;return On.createElement(Jl,{width:n,height:o,x:a,y:i},t)},Qd=fw((e,t)=>{var{children:r}=e,n=qR(e,YR),o=Ae();return o?On.createElement(JR,null,On.createElement(Jd,{isPanorama:!0},r)):On.createElement(ZR,Fl({ref:t},n),On.createElement(Jd,{isPanorama:!1},r))});import*as xe from"react";import{forwardRef as ji,useCallback as ze,useEffect as iN,useRef as mw,useState as Wl}from"react";import{useEffect as QR,useState as eN}from"react";function dw(){var e=ne(),[t,r]=eN(null),n=J(Jm);return QR(()=>{if(t!=null){var o=t.getBoundingClientRect(),i=o.width/t.offsetWidth;Z(i)&&i!==n&&e(Wm(i))}},[t,e,n]),r}function pw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function tN(e){for(var t=1;t(Px(),null);function Vl(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var sN=ji((e,t)=>{var r,n,o=mw(null),[i,a]=Wl({containerWidth:Vl((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Vl((n=e.style)===null||n===void 0?void 0:n.height)}),s=ze((c,f)=>{a(u=>{var d=Math.round(c),m=Math.round(f);return u.containerWidth===d&&u.containerHeight===m?u:{containerWidth:d,containerHeight:m}})},[]),l=ze(c=>{if(typeof t=="function"&&t(c),c!=null&&typeof ResizeObserver<"u"){var{width:f,height:u}=c.getBoundingClientRect();s(f,u);var d=h=>{var p=h[0];if(p!=null){var{width:x,height:v}=p.contentRect;s(x,v)}},m=new ResizeObserver(d);m.observe(c),o.current=m}},[t,s]);return iN(()=>()=>{var c=o.current;c?.disconnect()},[s]),xe.createElement(xe.Fragment,null,xe.createElement(qr,{width:i.containerWidth,height:i.containerHeight}),xe.createElement("div",Dr({ref:l},e)))}),lN=ji((e,t)=>{var{width:r,height:n}=e,[o,i]=Wl({containerWidth:Vl(r),containerHeight:Vl(n)}),a=ze((l,c)=>{i(f=>{var u=Math.round(l),d=Math.round(c);return f.containerWidth===u&&f.containerHeight===d?f:{containerWidth:u,containerHeight:d}})},[]),s=ze(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:c,height:f}=l.getBoundingClientRect();a(c,f)}},[t,a]);return xe.createElement(xe.Fragment,null,xe.createElement(qr,{width:o.containerWidth,height:o.containerHeight}),xe.createElement("div",Dr({ref:s},e)))}),cN=ji((e,t)=>{var{width:r,height:n}=e;return xe.createElement(xe.Fragment,null,xe.createElement(qr,{width:r,height:n}),xe.createElement("div",Dr({ref:t},e)))}),uN=ji((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?xe.createElement(lN,Dr({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?xe.createElement(cN,Dr({},e,{width:r,height:n,ref:t})):xe.createElement(xe.Fragment,null,xe.createElement(qr,{width:r,height:n}),xe.createElement("div",Dr({ref:t},e)))});function fN(e){return e?sN:uN}var hw=ji((e,t)=>{var{children:r,className:n,height:o,onClick:i,onContextMenu:a,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:f,onMouseMove:u,onMouseUp:d,onTouchEnd:m,onTouchMove:h,onTouchStart:p,style:x,width:v,responsive:A,dispatchTouchEvents:P=!0}=e,C=mw(null),E=ne(),[k,T]=Wl(null),[I,z]=Wl(null),j=dw(),Y=Bo(),B=Y?.width>0?Y.width:v,X=Y?.height>0?Y.height:o,H=ze(V=>{j(V),typeof t=="function"&&t(V),T(V),z(V),V!=null&&(C.current=V)},[j,t,T,z]),re=ze(V=>{E(Wd(V)),E(wt({handler:i,reactEvent:V}))},[E,i]),g=ze(V=>{E(jl(V)),E(wt({handler:c,reactEvent:V}))},[E,c]),b=ze(V=>{E(Js()),E(wt({handler:f,reactEvent:V}))},[E,f]),O=ze(V=>{E(jl(V)),E(wt({handler:u,reactEvent:V}))},[E,u]),w=ze(()=>{E(Kd())},[E]),y=ze(()=>{E(Gd())},[E]),S=ze(V=>{E($d(V.key))},[E]),M=ze(V=>{E(wt({handler:a,reactEvent:V}))},[E,a]),D=ze(V=>{E(wt({handler:s,reactEvent:V}))},[E,s]),L=ze(V=>{E(wt({handler:l,reactEvent:V}))},[E,l]),W=ze(V=>{E(wt({handler:d,reactEvent:V}))},[E,d]),F=ze(V=>{E(wt({handler:p,reactEvent:V}))},[E,p]),$=ze(V=>{P&&E(Hd(V)),E(wt({handler:h,reactEvent:V}))},[E,P,h]),he=ze(V=>{E(wt({handler:m,reactEvent:V}))},[E,m]),R=fN(A);return xe.createElement(fx.Provider,{value:k},xe.createElement(sp.Provider,{value:I},xe.createElement(R,{width:B??x?.width,height:X??x?.height,className:ae("recharts-wrapper",n),style:tN({position:"relative",cursor:"default",width:B,height:X},x),onClick:re,onContextMenu:M,onDoubleClick:D,onFocus:w,onBlur:y,onKeyDown:S,onMouseDown:L,onMouseEnter:g,onMouseLeave:b,onMouseMove:O,onMouseUp:W,onTouchEnd:he,onTouchMove:$,onTouchStart:F,ref:H},xe.createElement(aN,null),r)))});var dN=["width","height","responsive","children","className","style","compact","title","desc"];function pN(e,t){if(e==null)return{};var r,n,o=mN(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var{width:r,height:n,responsive:o,children:i,className:a,style:s,compact:l,title:c,desc:f}=e,u=pN(e,dN),d=lt(u);return l?hr.createElement(hr.Fragment,null,hr.createElement(qr,{width:r,height:n}),hr.createElement(Qd,{otherAttributes:d,title:c,desc:f},i)):hr.createElement(hw,{className:a,style:s,width:r,height:n,responsive:o??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},hr.createElement(Qd,{otherAttributes:d,title:c,desc:f,ref:t},hr.createElement(p0,null,i)))});function ep(){return ep=Object.assign?Object.assign.bind():function(e){for(var t=1;txw.createElement(yw,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:PN,tooltipPayloadSearcher:vx,categoricalChartProps:e,ref:t}));import*as Eo from"react";var EN=(e,t)=>{let r=new Array(e.length+t.length);for(let n=0;n({classGroupId:e,validator:t}),Ew=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Kl="-",bw=[],kN="arbitrary..",_N=e=>{let t=TN(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return IN(a);let s=a.split(Kl),l=s[0]===""&&s.length>1?1:0;return Cw(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){let l=n[a],c=r[a];return l?c?EN(c,l):l:c||bw}return r[a]||bw}}},Cw=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;let o=e[t],i=r.nextPart.get(o);if(i){let c=Cw(e,t+1,i);if(c)return c}let a=r.validators;if(a===null)return;let s=t===0?e.join(Kl):e.slice(t).join(Kl),l=a.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?kN+n:void 0})(),TN=e=>{let{theme:t,classGroups:r}=e;return MN(r,t)},MN=(e,t)=>{let r=Ew();for(let n in e){let o=e[n];op(o,r,n,t)}return r},op=(e,t,r,n)=>{let o=e.length;for(let i=0;i{if(typeof e=="string"){NN(e,t,r);return}if(typeof e=="function"){DN(e,t,r,n);return}jN(e,t,r,n)},NN=(e,t,r)=>{let n=e===""?t:kw(t,e);n.classGroupId=r},DN=(e,t,r,n)=>{if(LN(e)){op(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(CN(r,e))},jN=(e,t,r,n)=>{let o=Object.entries(e),i=o.length;for(let a=0;a{let r=e,n=t.split(Kl),o=n.length;for(let i=0;i"isThemeGetter"in e&&e.isThemeGetter===!0,zN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),o=(i,a)=>{r[i]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let a=r[i];if(a!==void 0)return a;if((a=n[i])!==void 0)return o(i,a),a},set(i,a){i in r?r[i]=a:o(i,a)}}},np="!",ww=":",BN=[],Sw=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),FN=e=>{let{prefix:t,experimentalParseClassName:r}=e,n=o=>{let i=[],a=0,s=0,l=0,c,f=o.length;for(let p=0;pl?c-l:void 0;return Sw(i,m,d,h)};if(t){let o=t+ww,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):Sw(BN,!1,a,void 0,!0)}if(r){let o=n;n=i=>r({className:i,parseClassName:o})}return n},WN=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{let n=[],o=[];for(let i=0;i0&&(o.sort(),n.push(...o),o=[]),n.push(a)):o.push(a)}return o.length>0&&(o.sort(),n.push(...o)),n}},VN=e=>({cache:zN(e.cacheSize),parseClassName:FN(e),sortModifiers:WN(e),postfixLookupClassGroupIds:UN(e),..._N(e)}),UN=e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let n=0;n{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:a}=t,s=[],l=e.trim().split($N),c="";for(let f=l.length-1;f>=0;f-=1){let u=l[f],{isExternal:d,modifiers:m,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:x}=r(u);if(d){c=u+(c.length>0?" "+c:c);continue}let v=!!x,A;if(v){let T=p.substring(0,x);A=n(T);let I=A&&a[A]?n(p):void 0;I&&I!==A&&(A=I,v=!1)}else A=n(p);if(!A){if(!v){c=u+(c.length>0?" "+c:c);continue}if(A=n(p),!A){c=u+(c.length>0?" "+c:c);continue}v=!1}let P=m.length===0?"":m.length===1?m[0]:i(m).join(":"),C=h?P+np:P,E=C+A;if(s.indexOf(E)>-1)continue;s.push(E);let k=o(A,v);for(let T=0;T0?" "+c:c)}return c},GN=(...e)=>{let t=0,r,n,o="";for(;t{if(typeof e=="string")return e;let t,r="";for(let n=0;n{let r,n,o,i,a=l=>{let c=t.reduce((f,u)=>u(f),e());return r=VN(c),n=r.cache.get,o=r.cache.set,i=s,s(l)},s=l=>{let c=n(l);if(c)return c;let f=KN(l,r);return o(l,f),f};return i=a,(...l)=>i(GN(...l))},qN=[],Be=e=>{let t=r=>r[e]||qN;return t.isThemeGetter=!0,t},Iw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Tw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,HN=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,XN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,JN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,QN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jr=e=>HN.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),er=e=>!!e&&Number.isInteger(Number(e)),rp=e=>e.endsWith("%")&&te(e.slice(0,-1)),vr=e=>XN.test(e),Mw=()=>!0,tD=e=>ZN.test(e)&&!JN.test(e),ip=()=>!1,rD=e=>QN.test(e),nD=e=>eD.test(e),oD=e=>!K(e)&&!G(e),iD=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),aD=e=>Lr(e,Dw,ip),K=e=>Iw.test(e),Cn=e=>Lr(e,jw,tD),Aw=e=>Lr(e,mD,te),sD=e=>Lr(e,zw,Mw),lD=e=>Lr(e,Lw,ip),Pw=e=>Lr(e,Rw,ip),cD=e=>Lr(e,Nw,nD),Ul=e=>Lr(e,Bw,rD),G=e=>Tw.test(e),Li=e=>kn(e,jw),uD=e=>kn(e,Lw),Ow=e=>kn(e,Rw),fD=e=>kn(e,Dw),dD=e=>kn(e,Nw),$l=e=>kn(e,Bw,!0),pD=e=>kn(e,zw,!0),Lr=(e,t,r)=>{let n=Iw.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},kn=(e,t,r=!1)=>{let n=Tw.exec(e);return n?n[1]?t(n[1]):r:!1},Rw=e=>e==="position"||e==="percentage",Nw=e=>e==="image"||e==="url",Dw=e=>e==="length"||e==="size"||e==="bg-size",jw=e=>e==="length",mD=e=>e==="number",Lw=e=>e==="family-name",zw=e=>e==="number"||e==="weight",Bw=e=>e==="shadow";var hD=()=>{let e=Be("color"),t=Be("font"),r=Be("text"),n=Be("font-weight"),o=Be("tracking"),i=Be("leading"),a=Be("breakpoint"),s=Be("container"),l=Be("spacing"),c=Be("radius"),f=Be("shadow"),u=Be("inset-shadow"),d=Be("text-shadow"),m=Be("drop-shadow"),h=Be("blur"),p=Be("perspective"),x=Be("aspect"),v=Be("ease"),A=Be("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...C(),G,K],k=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],I=()=>[G,K,l],z=()=>[jr,"full","auto",...I()],j=()=>[er,"none","subgrid",G,K],Y=()=>["auto",{span:["full",er,G,K]},er,G,K],B=()=>[er,"auto",G,K],X=()=>["auto","min","max","fr",G,K],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],g=()=>["auto",...I()],b=()=>[jr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],O=()=>[jr,"screen","full","dvw","lvw","svw","min","max","fit",...I()],w=()=>[jr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],y=()=>[e,G,K],S=()=>[...C(),Ow,Pw,{position:[G,K]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",fD,aD,{size:[G,K]}],L=()=>[rp,Li,Cn],W=()=>["","none","full",c,G,K],F=()=>["",te,Li,Cn],$=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[te,rp,Ow,Pw],V=()=>["","none",h,G,K],U=()=>["none",te,G,K],N=()=>["none",te,G,K],be=()=>[te,G,K],Q=()=>[jr,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[vr],breakpoint:[vr],color:[Mw],container:[vr],"drop-shadow":[vr],ease:["in","out","in-out"],font:[oD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[vr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[vr],shadow:[vr],spacing:["px",te],text:[vr],"text-shadow":[vr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",jr,K,G,x]}],container:["container"],"container-type":[{"@container":["","normal","size",G,K]}],"container-named":[iD],columns:[{columns:[te,K,G,s]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[er,"auto",G,K]}],basis:[{basis:[jr,"full","auto",s,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,jr,"auto","initial","none",K]}],grow:[{grow:["",te,G,K]}],shrink:[{shrink:["",te,G,K]}],order:[{order:[er,"first","last","none",G,K]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pbs:[{pbs:I()}],pbe:[{pbe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:g()}],mx:[{mx:g()}],my:[{my:g()}],ms:[{ms:g()}],me:[{me:g()}],mbs:[{mbs:g()}],mbe:[{mbe:g()}],mt:[{mt:g()}],mr:[{mr:g()}],mb:[{mb:g()}],ml:[{ml:g()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:b()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",...w()]}],"min-block-size":[{"min-block":["auto",...w()]}],"max-block-size":[{"max-block":["none",...w()]}],w:[{w:[s,"screen",...b()]}],"min-w":[{"min-w":[s,"screen","none",...b()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...b()]}],h:[{h:["screen","lh",...b()]}],"min-h":[{"min-h":["screen","lh","none",...b()]}],"max-h":[{"max-h":["screen","lh",...b()]}],"font-size":[{text:["base",r,Li,Cn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,pD,sD]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rp,K]}],"font-family":[{font:[uD,lD,t]}],"font-features":[{"font-features":[K]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,G,K]}],"line-clamp":[{"line-clamp":[te,"none",G,Aw]}],leading:[{leading:[i,...I()]}],"list-image":[{"list-image":["none",G,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",G,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",G,Cn]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[te,"auto",G,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"tab-size":[{tab:[er,G,K]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G,K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:S()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},er,G,K],radial:["",G,K],conic:[er,G,K]},dD,cD]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-bs":[{"border-bs":y()}],"border-color-be":[{"border-be":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,G,K]}],"outline-w":[{outline:["",te,Li,Cn]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",f,$l,Ul]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",u,$l,Ul]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[te,Cn]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",d,$l,Ul]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[te,G,K]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[G,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:S()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",G,K]}],filter:[{filter:["","none",G,K]}],blur:[{blur:V()}],brightness:[{brightness:[te,G,K]}],contrast:[{contrast:[te,G,K]}],"drop-shadow":[{"drop-shadow":["","none",m,$l,Ul]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",te,G,K]}],"hue-rotate":[{"hue-rotate":[te,G,K]}],invert:[{invert:["",te,G,K]}],saturate:[{saturate:[te,G,K]}],sepia:[{sepia:["",te,G,K]}],"backdrop-filter":[{"backdrop-filter":["","none",G,K]}],"backdrop-blur":[{"backdrop-blur":V()}],"backdrop-brightness":[{"backdrop-brightness":[te,G,K]}],"backdrop-contrast":[{"backdrop-contrast":[te,G,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,G,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,G,K]}],"backdrop-invert":[{"backdrop-invert":["",te,G,K]}],"backdrop-opacity":[{"backdrop-opacity":[te,G,K]}],"backdrop-saturate":[{"backdrop-saturate":[te,G,K]}],"backdrop-sepia":[{"backdrop-sepia":["",te,G,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",G,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",G,K]}],ease:[{ease:["linear","initial",v,G,K]}],delay:[{delay:[te,G,K]}],animate:[{animate:["none",A,G,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,G,K]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:N()}],"scale-x":[{"scale-x":N()}],"scale-y":[{"scale-y":N()}],"scale-z":[{"scale-z":N()}],"scale-3d":["scale-3d"],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[G,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Q()}],"translate-x":[{"translate-x":Q()}],"translate-y":[{"translate-y":Q()}],"translate-z":[{"translate-z":Q()}],"translate-none":["translate-none"],zoom:[{zoom:[er,G,K]}],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G,K]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":y()}],"scrollbar-track-color":[{"scrollbar-track":y()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mbs":[{"scroll-mbs":I()}],"scroll-mbe":[{"scroll-mbe":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pbs":[{"scroll-pbs":I()}],"scroll-pbe":[{"scroll-pbe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G,K]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[te,Li,Cn,Aw]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Fw=YN(hD);function Ww(...e){return Fw(ae(e))}import{Fragment as YZ,jsx as Gl,jsxs as bD}from"react/jsx-runtime";var vD={light:"",dark:".dark"},gD={width:320,height:200},yD=Eo.createContext(null);function Vw({id:e,className:t,children:r,config:n,initialDimension:o=gD,...i}){let a=Eo.useId(),s=`chart-${e??a.replace(/:/g,"")}`;return Gl(yD.Provider,{value:{config:n},children:bD("div",{"data-slot":"chart","data-chart":s,className:Ww("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",t),...i,children:[Gl(xD,{id:s,config:n}),Gl(gu,{initialDimension:o,children:r})]})})}var xD=({id:e,config:t})=>{let r=Object.entries(t).filter(([,n])=>n.theme??n.color);return r.length?Gl("style",{dangerouslySetInnerHTML:{__html:Object.entries(vD).map(([n,o])=>` +${o} [data-chart=${e}] { +${r.map(([i,a])=>{let s=a.theme?.[n]??a.color;return s?` --color-${i}: ${s};`:null}).join(` +`)} +} +`).join(` +`)}}):null};import{jsx as Yl,jsxs as PD}from"react/jsx-runtime";var wD=[{month:"January",desktop:186,mobile:80},{month:"February",desktop:305,mobile:200},{month:"March",desktop:237,mobile:120},{month:"April",desktop:73,mobile:190},{month:"May",desktop:209,mobile:130},{month:"June",desktop:214,mobile:140}],SD={desktop:{label:"Desktop",color:"#2563eb"},mobile:{label:"Mobile",color:"#60a5fa"}};function AD(){return Yl(Vw,{config:SD,className:"min-h-[200px] w-full",children:PD(tp,{accessibilityLayer:!0,data:wD,children:[Yl(Rl,{vertical:!1}),Yl(Ii,{dataKey:"desktop",fill:"var(--color-desktop)",radius:4}),Yl(Ii,{dataKey:"mobile",fill:"var(--color-mobile)",radius:4})]})})}export{AD as default}; +/*! Bundled license information: + +decimal.js-light/decimal.js: + (*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE *) + +react-is/cjs/react-is.production.js: + (** + * @license React + * react-is.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/91cdada74da55c1c8226f8fd6e05af85f41a1fbddf2819e7fde77e2eb681cf35 b/b/91cdada74da55c1c8226f8fd6e05af85f41a1fbddf2819e7fde77e2eb681cf35 new file mode 100644 index 0000000000000000000000000000000000000000..cbc72f2d33a44589054b6b1d59a7ad1178f080f8 --- /dev/null +++ b/b/91cdada74da55c1c8226f8fd6e05af85f41a1fbddf2819e7fde77e2eb681cf35 @@ -0,0 +1,16 @@ +import { + NativeSelect, + NativeSelectOption, +} from "@/registry/new-york-v4/ui/native-select" + +export default function NativeSelectDisabled() { + return ( + + Select priority + Low + Medium + High + Critical + + ) +} diff --git a/b/91fb31e33299e6546bb4050b670d532c8008d67f0f408952da1c84632524231b b/b/91fb31e33299e6546bb4050b670d532c8008d67f0f408952da1c84632524231b new file mode 100644 index 0000000000000000000000000000000000000000..a72a8404a6d00f110bd26a782bbb15a68eefdef4 --- /dev/null +++ b/b/91fb31e33299e6546bb4050b670d532c8008d67f0f408952da1c84632524231b @@ -0,0 +1,65 @@ +"use client" + +import * as React from "react" +import { addDays, format } from "date-fns" +import { CalendarIcon } from "lucide-react" + +import { cn } from "@/lib/utils" +import { Button } from "@/registry/new-york-v4/ui/button" +import { Calendar } from "@/registry/new-york-v4/ui/calendar" +import { + Popover, + PopoverContent, + PopoverTrigger, +} from "@/registry/new-york-v4/ui/popover" +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/registry/new-york-v4/ui/select" + +export default function DatePickerWithPresets() { + const [date, setDate] = React.useState() + + return ( + + + + + + +
    + +
    +
    +
    + ) +} diff --git a/b/920534bef9536c5eae31de638a9c6ce232ecf323aae28d8ae592204cb82cd330 b/b/920534bef9536c5eae31de638a9c6ce232ecf323aae28d8ae592204cb82cd330 new file mode 100644 index 0000000000000000000000000000000000000000..c59ec0c9a45d1320cf42c0b6e6f238719c05b23f --- /dev/null +++ b/b/920534bef9536c5eae31de638a9c6ce232ecf323aae28d8ae592204cb82cd330 @@ -0,0 +1,59 @@ +import{useCallback as Wa,useEffect as Ea,useRef as Xa,useState as Na}from"react";import{forwardRef as Qe,createElement as je}from"react";var Se=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ae=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();import{forwardRef as Je,createElement as ke}from"react";var we={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var be=Je(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:n,iconNode:l,...i},f)=>ke("svg",{ref:f,...we,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:ae("lucide",r),...i},[...l.map(([c,L])=>ke(c,L)),...Array.isArray(n)?n:[n]]));var te=(e,t)=>{let a=Qe(({className:o,...r},n)=>je(be,{ref:n,iconNode:t,className:ae(`lucide-${Se(e)}`,o),...r}));return a.displayName=`${e}`,a};var N=te("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var K=te("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);import{flushSync as Ka}from"react-dom";function Pe(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),Te=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),ue="-",Me=[],ea="arbitrary..",aa=e=>{let t=oa(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return ta(l);let i=l.split(ue),f=i[0]===""&&i.length>1?1:0;return qe(i,f,t)},getConflictingClassGroupIds:(l,i)=>{if(i){let f=o[l],c=a[l];return f?c?Ye(c,f):f:c||Me}return a[l]||Me}}},qe=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],n=a.nextPart.get(r);if(n){let c=qe(e,t+1,n);if(c)return c}let l=a.validators;if(l===null)return;let i=t===0?e.join(ue):e.slice(t).join(ue),f=l.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?ea+o:void 0})(),oa=e=>{let{theme:t,classGroups:a}=e;return la(a,t)},la=(e,t)=>{let a=Te();for(let o in e){let r=e[o];pe(r,a,o,t)}return a},pe=(e,t,a,o)=>{let r=e.length;for(let n=0;n{if(typeof e=="string"){da(e,t,a);return}if(typeof e=="function"){ra(e,t,a,o);return}sa(e,t,a,o)},da=(e,t,a)=>{let o=e===""?t:ve(t,e);o.classGroupId=a},ra=(e,t,a,o)=>{if(fa(e)){pe(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(_e(a,e))},sa=(e,t,a,o)=>{let r=Object.entries(e),n=r.length;for(let l=0;l{let a=e,o=t.split(ue),r=o.length;for(let n=0;n"isThemeGetter"in e&&e.isThemeGetter===!0,ia=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(n,l)=>{a[n]=l,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(n){let l=a[n];if(l!==void 0)return l;if((l=o[n])!==void 0)return r(n,l),l},set(n,l){n in a?a[n]=l:r(n,l)}}},ce="!",Be=":",na=[],Fe=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),ca=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=r=>{let n=[],l=0,i=0,f=0,c,L=r.length;for(let x=0;xf?c-f:void 0;return Fe(n,w,A,M)};if(t){let r=t+Be,n=o;o=l=>l.startsWith(r)?n(l.slice(r.length)):Fe(na,!1,l,void 0,!0)}if(a){let r=o;o=n=>a({className:n,parseClassName:r})}return o},pa=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],r=[];for(let n=0;n0&&(r.sort(),o.push(...r),r=[]),o.push(l)):r.push(l)}return r.length>0&&(r.sort(),o.push(...r)),o}},ma=e=>({cache:ia(e.cacheSize),parseClassName:ca(e),sortModifiers:pa(e),postfixLookupClassGroupIds:La(e),...aa(e)}),La=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:n,postfixLookupClassGroupIds:l}=t,i=[],f=e.trim().split(Ia),c="";for(let L=f.length-1;L>=0;L-=1){let I=f[L],{isExternal:A,modifiers:w,hasImportantModifier:M,baseClassName:x,maybePostfixModifierPosition:k}=a(I);if(A){c=I+(c.length>0?" "+c:c);continue}let B=!!k,C;if(B){let y=x.substring(0,k);C=o(y);let s=C&&l[C]?o(x):void 0;s&&s!==C&&(C=s,B=!1)}else C=o(x);if(!C){if(!B){c=I+(c.length>0?" "+c:c);continue}if(C=o(x),!C){c=I+(c.length>0?" "+c:c);continue}B=!1}let G=w.length===0?"":w.length===1?w[0]:n(w).join(":"),T=M?G+ce:G,q=T+C;if(i.indexOf(q)>-1)continue;i.push(q);let F=r(C,B);for(let y=0;y0?" "+c:c)}return c},Ca=(...e)=>{let t=0,a,o,r="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,r,n,l=f=>{let c=t.reduce((L,I)=>I(L),e());return a=ma(c),o=a.cache.get,r=a.cache.set,n=i,i(f)},i=f=>{let c=o(f);if(c)return c;let L=xa(f,a);return r(f,L),L};return n=l,(...f)=>n(Ca(...f))},ga=[],h=e=>{let t=a=>a[e]||ga;return t.isThemeGetter=!0,t},Oe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,He=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Sa=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,wa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ka=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ba=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Pa=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Aa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=e=>Sa.test(e),m=e=>!!e&&!Number.isNaN(Number(e)),R=e=>!!e&&Number.isInteger(Number(e)),ne=e=>e.endsWith("%")&&m(e.slice(0,-1)),v=e=>wa.test(e),Ge=()=>!0,Ma=e=>ka.test(e)&&!ba.test(e),me=()=>!1,Ba=e=>Pa.test(e),Fa=e=>Aa.test(e),ya=e=>!u(e)&&!d(e),Da=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Ra=e=>H(e,We,me),u=e=>Oe.test(e),V=e=>H(e,Ee,Ma),ye=e=>H(e,za,m),Ta=e=>H(e,Ne,Ge),qa=e=>H(e,Xe,me),De=e=>H(e,ze,me),va=e=>H(e,Ve,Fa),oe=e=>H(e,Ke,Ba),d=e=>He.test(e),$=e=>W(e,Ee),Ua=e=>W(e,Xe),Re=e=>W(e,ze),Oa=e=>W(e,We),Ha=e=>W(e,Ve),le=e=>W(e,Ke,!0),Ga=e=>W(e,Ne,!0),H=(e,t,a)=>{let o=Oe.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},W=(e,t,a=!1)=>{let o=He.exec(e);return o?o[1]?t(o[1]):a:!1},ze=e=>e==="position"||e==="percentage",Ve=e=>e==="image"||e==="url",We=e=>e==="length"||e==="size"||e==="bg-size",Ee=e=>e==="length",za=e=>e==="number",Xe=e=>e==="family-name",Ne=e=>e==="number"||e==="weight",Ke=e=>e==="shadow";var Va=()=>{let e=h("color"),t=h("font"),a=h("text"),o=h("font-weight"),r=h("tracking"),n=h("leading"),l=h("breakpoint"),i=h("container"),f=h("spacing"),c=h("radius"),L=h("shadow"),I=h("inset-shadow"),A=h("text-shadow"),w=h("drop-shadow"),M=h("blur"),x=h("perspective"),k=h("aspect"),B=h("ease"),C=h("animate"),G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...T(),d,u],F=()=>["auto","hidden","clip","visible","scroll"],y=()=>["auto","contain","none"],s=()=>[d,u,f],S=()=>[O,"full","auto",...s()],U=()=>[R,"none","subgrid",d,u],J=()=>["auto",{span:["full",R,d,u]},R,d,u],E=()=>[R,"auto",d,u],Q=()=>["auto","min","max","fr",d,u],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...s()],z=()=>[O,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...s()],re=()=>[O,"screen","full","dvw","lvw","svw","min","max","fit",...s()],se=()=>[O,"screen","full","lh","dvh","lvh","svh","min","max","fit",...s()],p=()=>[e,d,u],Ie=()=>[...T(),Re,De,{position:[d,u]}],xe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ce=()=>["auto","cover","contain",Oa,Ra,{size:[d,u]}],fe=()=>[ne,$,V],b=()=>["","none","full",c,d,u],P=()=>["",m,$,V],j=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>[m,ne,Re,De],ge=()=>["","none",M,d,u],Y=()=>["none",m,d,u],_=()=>["none",m,d,u],ie=()=>[m,d,u],ee=()=>[O,"full",...s()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[v],breakpoint:[v],color:[Ge],container:[v],"drop-shadow":[v],ease:["in","out","in-out"],font:[ya],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[v],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[v],shadow:[v],spacing:["px",m],text:[v],"text-shadow":[v],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",O,u,d,k]}],container:["container"],"container-type":[{"@container":["","normal","size",d,u]}],"container-named":[Da],columns:[{columns:[m,u,d,i]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:q()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:y()}],"overscroll-x":[{"overscroll-x":y()}],"overscroll-y":[{"overscroll-y":y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:["visible","invisible","collapse"],z:[{z:[R,"auto",d,u]}],basis:[{basis:[O,"full","auto",i,...s()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m,O,"auto","initial","none",u]}],grow:[{grow:["",m,d,u]}],shrink:[{shrink:["",m,d,u]}],order:[{order:[R,"first","last","none",d,u]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:s()}],"gap-x":[{"gap-x":s()}],"gap-y":[{"gap-y":s()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:s()}],px:[{px:s()}],py:[{py:s()}],ps:[{ps:s()}],pe:[{pe:s()}],pbs:[{pbs:s()}],pbe:[{pbe:s()}],pt:[{pt:s()}],pr:[{pr:s()}],pb:[{pb:s()}],pl:[{pl:s()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":s()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":s()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...se()]}],"min-block-size":[{"min-block":["auto",...se()]}],"max-block-size":[{"max-block":["none",...se()]}],w:[{w:[i,"screen",...z()]}],"min-w":[{"min-w":[i,"screen","none",...z()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",a,$,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Ga,Ta]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ne,u]}],"font-family":[{font:[Ua,qa,t]}],"font-features":[{"font-features":[u]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,d,u]}],"line-clamp":[{"line-clamp":[m,"none",d,ye]}],leading:[{leading:[n,...s()]}],"list-image":[{"list-image":["none",d,u]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d,u]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:p()}],"text-color":[{text:p()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:[m,"from-font","auto",d,V]}],"text-decoration-color":[{decoration:p()}],"underline-offset":[{"underline-offset":[m,"auto",d,u]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:s()}],"tab-size":[{tab:[R,d,u]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d,u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d,u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ie()}],"bg-repeat":[{bg:xe()}],"bg-size":[{bg:Ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},R,d,u],radial:["",d,u],conic:[R,d,u]},Ha,va]}],"bg-color":[{bg:p()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:p()}],"gradient-via":[{via:p()}],"gradient-to":[{to:p()}],rounded:[{rounded:b()}],"rounded-s":[{"rounded-s":b()}],"rounded-e":[{"rounded-e":b()}],"rounded-t":[{"rounded-t":b()}],"rounded-r":[{"rounded-r":b()}],"rounded-b":[{"rounded-b":b()}],"rounded-l":[{"rounded-l":b()}],"rounded-ss":[{"rounded-ss":b()}],"rounded-se":[{"rounded-se":b()}],"rounded-ee":[{"rounded-ee":b()}],"rounded-es":[{"rounded-es":b()}],"rounded-tl":[{"rounded-tl":b()}],"rounded-tr":[{"rounded-tr":b()}],"rounded-br":[{"rounded-br":b()}],"rounded-bl":[{"rounded-bl":b()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...j(),"hidden","none"]}],"divide-style":[{divide:[...j(),"hidden","none"]}],"border-color":[{border:p()}],"border-color-x":[{"border-x":p()}],"border-color-y":[{"border-y":p()}],"border-color-s":[{"border-s":p()}],"border-color-e":[{"border-e":p()}],"border-color-bs":[{"border-bs":p()}],"border-color-be":[{"border-be":p()}],"border-color-t":[{"border-t":p()}],"border-color-r":[{"border-r":p()}],"border-color-b":[{"border-b":p()}],"border-color-l":[{"border-l":p()}],"divide-color":[{divide:p()}],"outline-style":[{outline:[...j(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m,d,u]}],"outline-w":[{outline:["",m,$,V]}],"outline-color":[{outline:p()}],shadow:[{shadow:["","none",L,le,oe]}],"shadow-color":[{shadow:p()}],"inset-shadow":[{"inset-shadow":["none",I,le,oe]}],"inset-shadow-color":[{"inset-shadow":p()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:p()}],"ring-offset-w":[{"ring-offset":[m,V]}],"ring-offset-color":[{"ring-offset":p()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":p()}],"text-shadow":[{"text-shadow":["none",A,le,oe]}],"text-shadow-color":[{"text-shadow":p()}],opacity:[{opacity:[m,d,u]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[m]}],"mask-image-linear-from-pos":[{"mask-linear-from":g()}],"mask-image-linear-to-pos":[{"mask-linear-to":g()}],"mask-image-linear-from-color":[{"mask-linear-from":p()}],"mask-image-linear-to-color":[{"mask-linear-to":p()}],"mask-image-t-from-pos":[{"mask-t-from":g()}],"mask-image-t-to-pos":[{"mask-t-to":g()}],"mask-image-t-from-color":[{"mask-t-from":p()}],"mask-image-t-to-color":[{"mask-t-to":p()}],"mask-image-r-from-pos":[{"mask-r-from":g()}],"mask-image-r-to-pos":[{"mask-r-to":g()}],"mask-image-r-from-color":[{"mask-r-from":p()}],"mask-image-r-to-color":[{"mask-r-to":p()}],"mask-image-b-from-pos":[{"mask-b-from":g()}],"mask-image-b-to-pos":[{"mask-b-to":g()}],"mask-image-b-from-color":[{"mask-b-from":p()}],"mask-image-b-to-color":[{"mask-b-to":p()}],"mask-image-l-from-pos":[{"mask-l-from":g()}],"mask-image-l-to-pos":[{"mask-l-to":g()}],"mask-image-l-from-color":[{"mask-l-from":p()}],"mask-image-l-to-color":[{"mask-l-to":p()}],"mask-image-x-from-pos":[{"mask-x-from":g()}],"mask-image-x-to-pos":[{"mask-x-to":g()}],"mask-image-x-from-color":[{"mask-x-from":p()}],"mask-image-x-to-color":[{"mask-x-to":p()}],"mask-image-y-from-pos":[{"mask-y-from":g()}],"mask-image-y-to-pos":[{"mask-y-to":g()}],"mask-image-y-from-color":[{"mask-y-from":p()}],"mask-image-y-to-color":[{"mask-y-to":p()}],"mask-image-radial":[{"mask-radial":[d,u]}],"mask-image-radial-from-pos":[{"mask-radial-from":g()}],"mask-image-radial-to-pos":[{"mask-radial-to":g()}],"mask-image-radial-from-color":[{"mask-radial-from":p()}],"mask-image-radial-to-color":[{"mask-radial-to":p()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[m]}],"mask-image-conic-from-pos":[{"mask-conic-from":g()}],"mask-image-conic-to-pos":[{"mask-conic-to":g()}],"mask-image-conic-from-color":[{"mask-conic-from":p()}],"mask-image-conic-to-color":[{"mask-conic-to":p()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ie()}],"mask-repeat":[{mask:xe()}],"mask-size":[{mask:Ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d,u]}],filter:[{filter:["","none",d,u]}],blur:[{blur:ge()}],brightness:[{brightness:[m,d,u]}],contrast:[{contrast:[m,d,u]}],"drop-shadow":[{"drop-shadow":["","none",w,le,oe]}],"drop-shadow-color":[{"drop-shadow":p()}],grayscale:[{grayscale:["",m,d,u]}],"hue-rotate":[{"hue-rotate":[m,d,u]}],invert:[{invert:["",m,d,u]}],saturate:[{saturate:[m,d,u]}],sepia:[{sepia:["",m,d,u]}],"backdrop-filter":[{"backdrop-filter":["","none",d,u]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[m,d,u]}],"backdrop-contrast":[{"backdrop-contrast":[m,d,u]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m,d,u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m,d,u]}],"backdrop-invert":[{"backdrop-invert":["",m,d,u]}],"backdrop-opacity":[{"backdrop-opacity":[m,d,u]}],"backdrop-saturate":[{"backdrop-saturate":[m,d,u]}],"backdrop-sepia":[{"backdrop-sepia":["",m,d,u]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":s()}],"border-spacing-x":[{"border-spacing-x":s()}],"border-spacing-y":[{"border-spacing-y":s()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d,u]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m,"initial",d,u]}],ease:[{ease:["linear","initial",B,d,u]}],delay:[{delay:[m,d,u]}],animate:[{animate:["none",C,d,u]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,d,u]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:Y()}],"rotate-x":[{"rotate-x":Y()}],"rotate-y":[{"rotate-y":Y()}],"rotate-z":[{"rotate-z":Y()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[d,u,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[R,d,u]}],accent:[{accent:p()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:p()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d,u]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":p()}],"scrollbar-track-color":[{"scrollbar-track":p()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":s()}],"scroll-mx":[{"scroll-mx":s()}],"scroll-my":[{"scroll-my":s()}],"scroll-ms":[{"scroll-ms":s()}],"scroll-me":[{"scroll-me":s()}],"scroll-mbs":[{"scroll-mbs":s()}],"scroll-mbe":[{"scroll-mbe":s()}],"scroll-mt":[{"scroll-mt":s()}],"scroll-mr":[{"scroll-mr":s()}],"scroll-mb":[{"scroll-mb":s()}],"scroll-ml":[{"scroll-ml":s()}],"scroll-p":[{"scroll-p":s()}],"scroll-px":[{"scroll-px":s()}],"scroll-py":[{"scroll-py":s()}],"scroll-ps":[{"scroll-ps":s()}],"scroll-pe":[{"scroll-pe":s()}],"scroll-pbs":[{"scroll-pbs":s()}],"scroll-pbe":[{"scroll-pbe":s()}],"scroll-pt":[{"scroll-pt":s()}],"scroll-pr":[{"scroll-pr":s()}],"scroll-pb":[{"scroll-pb":s()}],"scroll-pl":[{"scroll-pl":s()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d,u]}],fill:[{fill:["none",...p()]}],"stroke-w":[{stroke:[m,$,V,ye]}],stroke:[{stroke:["none",...p()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var $e=ha(Va);function Ze(...e){return $e(Ae(e))}import{jsx as Le,jsxs as Za}from"react/jsx-runtime";function Z(e,t,a){return`polygon(${Array.from({length:a},()=>`${e}px ${t}px`).join(", ")})`}function $a(e,t,a,o,r,n){switch(e){case"circle":return[`circle(0px at ${t}px ${a}px)`,`circle(${o}px at ${t}px ${a}px)`];case"square":{let l=Math.max(t,r-t),i=Math.max(a,n-a),f=Math.max(l,i)*1.05,c=[`${t-f}px ${a-f}px`,`${t+f}px ${a-f}px`,`${t+f}px ${a+f}px`,`${t-f}px ${a+f}px`].join(", ");return[Z(t,a,4),`polygon(${c})`]}case"triangle":{let l=o*2.2,i=Math.sqrt(3)/2*l,f=[`${t}px ${a-l}px`,`${t+i}px ${a+.5*l}px`,`${t-i}px ${a+.5*l}px`].join(", ");return[Z(t,a,3),`polygon(${f})`]}case"diamond":{let l=o*Math.SQRT2,i=[`${t}px ${a-l}px`,`${t+l}px ${a}px`,`${t}px ${a+l}px`,`${t-l}px ${a}px`].join(", ");return[Z(t,a,4),`polygon(${i})`]}case"hexagon":{let l=o*Math.SQRT2,i=[];for(let f=0;f<6;f++){let c=-Math.PI/2+f*Math.PI/3;i.push(`${t+l*Math.cos(c)}px ${a+l*Math.sin(c)}px`)}return[Z(t,a,6),`polygon(${i.join(", ")})`]}case"rectangle":{let l=Math.max(t,r-t),i=Math.max(a,n-a),f=[`${t-l}px ${a-i}px`,`${t+l}px ${a-i}px`,`${t+l}px ${a+i}px`,`${t-l}px ${a+i}px`].join(", ");return[Z(t,a,4),`polygon(${f})`]}case"star":{let l=o*Math.SQRT2*1.03,i=.42,f=L=>{let I=[];for(let A=0;A<5;A++){let w=-Math.PI/2+A*2*Math.PI/5;I.push(`${t+L*Math.cos(w)}px ${a+L*Math.sin(w)}px`);let M=w+Math.PI/5;I.push(`${t+L*i*Math.cos(M)}px ${a+L*i*Math.sin(M)}px`)}return`polygon(${I.join(", ")})`},c=Math.max(2,l*.025);return[f(c),f(l)]}default:return[`circle(0px at ${t}px ${a}px)`,`circle(${o}px at ${t}px ${a}px)`]}}var St=({className:e,duration:t=400,variant:a,fromCenter:o=!1,theme:r,onThemeChange:n,...l})=>{let i=a??"circle",f=r!==void 0,[c,L]=Na(!1),I=f?r==="dark":c,A=Xa(null);Ea(()=>{if(f)return;let M=()=>{L(document.documentElement.classList.contains("dark"))};M();let x=new MutationObserver(M);return x.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>x.disconnect()},[f]);let w=Wa(()=>{let M=A.current;if(!M)return;let x=window.visualViewport?.width??window.innerWidth,k=window.visualViewport?.height??window.innerHeight,B,C;if(o)B=x/2,C=k/2;else{let{top:U,left:J,width:E,height:Q}=M.getBoundingClientRect();B=J+E/2,C=U+Q/2}let G=Math.hypot(Math.max(B,x-B),Math.max(C,k-C)),T=()=>{let U=!I;document.documentElement.classList.toggle("dark"),f?n?.(U?"dark":"light"):(L(U),localStorage.setItem("theme",U?"dark":"light"))};if(typeof document.startViewTransition!="function"){T();return}let q=$a(i,B,C,G,x,k),F=document.documentElement;F.dataset.magicuiThemeVt="active",F.style.setProperty("--magicui-theme-toggle-vt-duration",`${t}ms`),F.style.setProperty("--magicui-theme-vt-clip-from",q[0]);let y=()=>{delete F.dataset.magicuiThemeVt,F.style.removeProperty("--magicui-theme-toggle-vt-duration"),F.style.removeProperty("--magicui-theme-vt-clip-from")},s=document.startViewTransition(()=>{Ka(T)});typeof s?.finished?.finally=="function"?s.finished.finally(y):y();let S=s?.ready;S&&typeof S.then=="function"&&S.then(()=>{document.documentElement.animate({clipPath:q},{duration:t,easing:i==="star"?"linear":"ease-in-out",fill:"forwards",pseudoElement:"::view-transition-new(root)"})})},[i,o,t,I,f,n]);return Za("button",{type:"button",ref:A,onClick:w,className:Ze(e),...l,children:[I?Le(K,{}):Le(N,{}),Le("span",{className:"sr-only",children:"Toggle theme"})]})};export{St as AnimatedThemeToggler}; +/*! Bundled license information: + +lucide-react/dist/esm/shared/src/utils.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/defaultAttributes.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/Icon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/createLucideIcon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/moon.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/icons/sun.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) + +lucide-react/dist/esm/lucide-react.js: + (** + * @license lucide-react v0.456.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/b/9221f1ea5efbcb63c8f123155991aac34509ca3feb4131ebf2aae8e47474c9fd b/b/9221f1ea5efbcb63c8f123155991aac34509ca3feb4131ebf2aae8e47474c9fd new file mode 100644 index 0000000000000000000000000000000000000000..29657023adc09956249f6295746c8ce4469b50d3 Binary files /dev/null and b/b/9221f1ea5efbcb63c8f123155991aac34509ca3feb4131ebf2aae8e47474c9fd differ