diff --git a/.gitignore b/.gitignore index 8ed3dd93adb..b9578487436 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ node_modules/ **/node_modules **/node_modules/ dist/ +ui/storybook-static/ .env *.tsbuildinfo drizzle/meta/ diff --git a/ui/storybook-static/android-chrome-192x192.png b/ui/storybook-static/android-chrome-192x192.png deleted file mode 100644 index 32120f8a74b..00000000000 Binary files a/ui/storybook-static/android-chrome-192x192.png and /dev/null differ diff --git a/ui/storybook-static/android-chrome-512x512.png b/ui/storybook-static/android-chrome-512x512.png deleted file mode 100644 index a7493ed46e3..00000000000 Binary files a/ui/storybook-static/android-chrome-512x512.png and /dev/null differ diff --git a/ui/storybook-static/apple-touch-icon.png b/ui/storybook-static/apple-touch-icon.png deleted file mode 100644 index 0104f97e5cf..00000000000 Binary files a/ui/storybook-static/apple-touch-icon.png and /dev/null differ diff --git a/ui/storybook-static/assets/AgentIconPicker-B29UI7uB.js b/ui/storybook-static/assets/AgentIconPicker-B29UI7uB.js deleted file mode 100644 index b26f86f8d61..00000000000 --- a/ui/storybook-static/assets/AgentIconPicker-B29UI7uB.js +++ /dev/null @@ -1,186 +0,0 @@ -import{c as e}from"./createLucideIcon-D2uUVdtm.js";import{a as s,b6 as m,j as c,r as p,P as g,b as M,d as x,c as f}from"./iframe-aoIC7NDi.js";import{I as _}from"./input-DeZ-mgkh.js";import{M as N,B as v}from"./message-square-CCO5PzL9.js";import{D as b}from"./database-Dx6aEk21.js";import{L as w,E as A}from"./lightbulb-CWoAXyu4.js";import{S as z}from"./dialog-6DTSoM1_.js";/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const $=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z",key:"1l2ple"}],["path",{d:"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z",key:"1wam0m"}]],q=e("atom",$);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const j=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],oe=e("boxes",j);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const V=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],I=e("brain",V);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const L=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],C=e("bug",L);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const E=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ne=e("chevron-right",E);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const P=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M11 9h4a2 2 0 0 0 2-2V3",key:"1ve2rv"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"M7 21v-4a2 2 0 0 1 2-2h4",key:"1fwkro"}],["circle",{cx:"15",cy:"15",r:"2",key:"3i40o0"}]],S=e("circuit-board",P);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const D=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],T=e("code",D);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const H=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],U=e("cog",H);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const R=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],B=e("cpu",R);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const G=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],Z=e("crown",G);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const F=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],O=e("file-code",F);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const W=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],J=e("fingerprint-pattern",W);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const K=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Q=e("flame",K);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const X=[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]],Y=e("gem",X);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const e1=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],a1=e("git-branch",e1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const t1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],c1=e("globe",t1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const o1=[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]],n1=e("hammer",o1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const s1=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],r1=e("heart",s1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const d1=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]],i1=e("hexagon",d1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const p1=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],h1=e("lock",p1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const l1=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],y1=e("mail",l1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const k1=[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]],m1=e("microscope",k1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const u1=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],g1=e("package",u1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const M1=[["path",{d:"M10.83 2.38a2 2 0 0 1 2.34 0l8 5.74a2 2 0 0 1 .73 2.25l-3.04 9.26a2 2 0 0 1-1.9 1.37H7.04a2 2 0 0 1-1.9-1.37L2.1 10.37a2 2 0 0 1 .73-2.25z",key:"2hea0t"}]],x1=e("pentagon",M1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const f1=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],_1=e("puzzle",f1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const N1=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],v1=e("radar",N1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const b1=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],w1=e("rocket",b1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const A1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],z1=e("shield",A1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const $1=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],q1=e("sparkles",$1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const j1=[["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"}]],V1=e("star",j1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const I1=[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]],L1=e("swords",I1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const C1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],E1=e("target",C1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const P1=[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]],S1=e("telescope",P1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const D1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],T1=e("terminal",D1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const H1=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],U1=e("wand-sparkles",H1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const R1=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],B1=e("wrench",R1);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const G1=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Z1=e("zap",G1),se={getGeneral:()=>s.get("/instance/settings/general"),updateGeneral:a=>s.patch("/instance/settings/general",a),getExperimental:()=>s.get("/instance/settings/experimental"),updateExperimental:a=>s.patch("/instance/settings/experimental",a)},h={bot:v,cpu:B,brain:I,zap:Z1,rocket:w1,code:T,terminal:T1,shield:z1,eye:A,search:z,wrench:B1,hammer:n1,lightbulb:w,sparkles:q1,star:V1,heart:r1,flame:Q,bug:C,cog:U,database:b,globe:c1,lock:h1,mail:y1,"message-square":N,"file-code":O,"git-branch":a1,package:g1,puzzle:_1,target:E1,wand:U1,atom:q,"circuit-board":S,radar:v1,swords:L1,telescope:S1,microscope:m1,crown:Z,gem:Y,hexagon:i1,pentagon:x1,fingerprint:J},F1="bot";function O1(a){return a&&m.includes(a)?h[a]:h[F1]}const W1="bot";function J1({icon:a,className:r}){const d=O1(a);return c.jsxDEV(d,{className:r},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/AgentIconPicker.tsx",lineNumber:24,columnNumber:10},this)}function K1({value:a,onChange:r,children:d}){const[u,l]=p.useState(!1),[o,y]=p.useState(""),k=p.useMemo(()=>{const t=m.map(n=>[n,h[n]]);if(!o)return t;const i=o.toLowerCase();return t.filter(([n])=>n.includes(i))},[o]);return c.jsxDEV(g,{open:u,onOpenChange:l,children:[c.jsxDEV(M,{asChild:!0,children:d},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/AgentIconPicker.tsx",lineNumber:46,columnNumber:7},this),c.jsxDEV(x,{className:"w-72 p-3",align:"start",children:[c.jsxDEV(_,{placeholder:"Search icons...",value:o,onChange:t=>y(t.target.value),className:"mb-2 h-8 text-sm",autoFocus:!0},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/AgentIconPicker.tsx",lineNumber:48,columnNumber:9},this),c.jsxDEV("div",{className:"grid grid-cols-7 gap-1 max-h-48 overflow-y-auto",children:[k.map(([t,i])=>c.jsxDEV("button",{onClick:()=>{r(t),l(!1),y("")},className:f("flex items-center justify-center h-8 w-8 rounded hover:bg-accent transition-colors",(a??W1)===t&&"bg-accent ring-1 ring-primary"),title:t,children:c.jsxDEV(i,{className:"h-4 w-4"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/AgentIconPicker.tsx",lineNumber:70,columnNumber:15},this)},t,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/AgentIconPicker.tsx",lineNumber:57,columnNumber:13},this)),k.length===0&&c.jsxDEV("p",{className:"col-span-7 text-xs text-muted-foreground text-center py-2",children:"No icons match"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/AgentIconPicker.tsx",lineNumber:74,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/AgentIconPicker.tsx",lineNumber:55,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/AgentIconPicker.tsx",lineNumber:47,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/AgentIconPicker.tsx",lineNumber:45,columnNumber:5},this)}J1.__docgenInfo={description:"",methods:[],displayName:"AgentIcon",props:{icon:{required:!0,tsType:{name:"union",raw:"string | null | undefined",elements:[{name:"string"},{name:"null"},{name:"undefined"}]},description:""},className:{required:!1,tsType:{name:"string"},description:""}}};K1.__docgenInfo={description:"",methods:[],displayName:"AgentIconPicker",props:{value:{required:!0,tsType:{name:"union",raw:"string | null | undefined",elements:[{name:"string"},{name:"null"},{name:"undefined"}]},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(icon: string) => void",signature:{arguments:[{type:{name:"string"},name:"icon"}],return:{name:"void"}}},description:""},children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};export{J1 as A,oe as B,B as C,a1 as G,r1 as H,w1 as R,q1 as S,T1 as T,U1 as W,Y as a,T as b,ne as c,E1 as d,K1 as e,I as f,B1 as g,i1 as h,se as i,n1 as j,O1 as k}; diff --git a/ui/storybook-static/assets/ApprovalCard-DsForM_Y.js b/ui/storybook-static/assets/ApprovalCard-DsForM_Y.js deleted file mode 100644 index 570466008b6..00000000000 --- a/ui/storybook-static/assets/ApprovalCard-DsForM_Y.js +++ /dev/null @@ -1,11 +0,0 @@ -import{j as e,ab as x,G as U,B as c,L as P,c as w,ac as C}from"./iframe-aoIC7NDi.js";import{B as k}from"./badge-CQZT8Hmw.js";import{I as _}from"./Identity-qezU2VU6.js";import{S as b}from"./shield-check-Do8XLHtm.js";import{c as v}from"./createLucideIcon-D2uUVdtm.js";import{L as q}from"./lightbulb-CWoAXyu4.js";import{U as T}from"./user-plus-Bh0OVGC-.js";import{C as S}from"./circle-check-B6ZHio0H.js";import{C as R}from"./circle-x-D1djpUMR.js";/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const B=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],f=v("clock",B);/** - * @license lucide-react v0.574.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const I=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],O=v("shield-alert",I),z={hire_agent:"Hire Agent",approve_ceo_strategy:"CEO Strategy",budget_override_required:"Budget Override",request_board_approval:"Board Approval"};function n(...r){for(const s of r)if(typeof s=="string"&&s.trim().length>0)return s.trim();return null}function L(r){return n(r==null?void 0:r.title,r==null?void 0:r.name,r==null?void 0:r.summary,r==null?void 0:r.recommendedAction)}const M={hire_agent:T,approve_ceo_strategy:q,budget_override_required:O,request_board_approval:b},F=b;function i({label:r,value:s}){return s?e.jsxDEV("div",{className:"flex items-center gap-2",children:[e.jsxDEV("span",{className:"text-muted-foreground w-20 sm:w-24 shrink-0 text-xs",children:r},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:52,columnNumber:7},this),e.jsxDEV("span",{children:String(s)},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:53,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:51,columnNumber:5},this):null}function H({values:r}){if(!Array.isArray(r))return null;const s=r.filter(t=>typeof t=="string").map(t=>t.trim()).filter(Boolean);return s.length===0?null:e.jsxDEV("div",{className:"flex items-start gap-2",children:[e.jsxDEV("span",{className:"text-muted-foreground w-20 sm:w-24 shrink-0 text-xs pt-0.5",children:"Skills"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:68,columnNumber:7},this),e.jsxDEV("div",{className:"flex flex-wrap gap-1.5",children:s.map(t=>e.jsxDEV("span",{className:"rounded bg-muted px-1.5 py-0.5 font-mono text-[11px] text-muted-foreground",children:t},t,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:71,columnNumber:11},this))},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:69,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:67,columnNumber:5},this)}function h({payload:r}){return e.jsxDEV("div",{className:"mt-3 space-y-1.5 text-sm",children:[e.jsxDEV("div",{className:"flex items-center gap-2",children:[e.jsxDEV("span",{className:"text-muted-foreground w-20 sm:w-24 shrink-0 text-xs",children:"Name"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:87,columnNumber:9},this),e.jsxDEV("span",{className:"font-medium",children:String(r.name??"—")},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:88,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:86,columnNumber:7},this),e.jsxDEV(i,{label:"Role",value:r.role},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:90,columnNumber:7},this),e.jsxDEV(i,{label:"Title",value:r.title},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:91,columnNumber:7},this),e.jsxDEV(i,{label:"Icon",value:r.icon},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:92,columnNumber:7},this),!!r.capabilities&&e.jsxDEV("div",{className:"flex items-start gap-2",children:[e.jsxDEV("span",{className:"text-muted-foreground w-20 sm:w-24 shrink-0 text-xs pt-0.5",children:"Capabilities"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:95,columnNumber:11},this),e.jsxDEV("span",{className:"text-muted-foreground",children:String(r.capabilities)},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:96,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:94,columnNumber:9},this),!!r.adapterType&&e.jsxDEV("div",{className:"flex items-center gap-2",children:[e.jsxDEV("span",{className:"text-muted-foreground w-20 sm:w-24 shrink-0 text-xs",children:"Adapter"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:101,columnNumber:11},this),e.jsxDEV("span",{className:"font-mono text-xs bg-muted px-1.5 py-0.5 rounded",children:String(r.adapterType)},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:102,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:100,columnNumber:9},this),e.jsxDEV(H,{values:r.desiredSkills},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:107,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:85,columnNumber:5},this)}function g({payload:r}){const s=r.plan??r.description??r.strategy??r.text;return e.jsxDEV("div",{className:"mt-3 space-y-1.5 text-sm",children:[e.jsxDEV(i,{label:"Title",value:r.title},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:116,columnNumber:7},this),!!s&&e.jsxDEV("div",{className:"mt-2 rounded-md bg-muted/40 px-3 py-2 text-sm text-muted-foreground whitespace-pre-wrap font-mono text-xs max-h-48 overflow-y-auto",children:String(s)},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:118,columnNumber:9},this),!s&&e.jsxDEV("pre",{className:"mt-2 rounded-md bg-muted/40 px-3 py-2 text-xs text-muted-foreground overflow-x-auto max-h-48",children:JSON.stringify(r,null,2)},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:123,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:115,columnNumber:5},this)}function A({payload:r}){const s=typeof r.budgetAmount=="number"?r.budgetAmount:null,t=typeof r.observedAmount=="number"?r.observedAmount:null;return e.jsxDEV("div",{className:"mt-3 space-y-1.5 text-sm",children:[e.jsxDEV(i,{label:"Scope",value:r.scopeName??r.scopeType},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:136,columnNumber:7},this),e.jsxDEV(i,{label:"Window",value:r.windowKind},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:137,columnNumber:7},this),e.jsxDEV(i,{label:"Metric",value:r.metric},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:138,columnNumber:7},this),s!==null||t!==null?e.jsxDEV("div",{className:"rounded-md bg-muted/40 px-3 py-2 text-xs text-muted-foreground",children:["Limit ",s!==null?x(s):"—"," · Observed ",t!==null?x(t):"—"]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:140,columnNumber:9},this):null,!!r.guidance&&e.jsxDEV("p",{className:"text-muted-foreground",children:String(r.guidance)},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:145,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:135,columnNumber:5},this)}function y({payload:r,hideTitle:s=!1}){const t=s?{...r,title:void 0}:r;return e.jsxDEV(G,{payload:t},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:160,columnNumber:5},this)}function G({payload:r}){const s=Array.isArray(r.risks)?r.risks.filter(a=>typeof a=="string").map(a=>a.trim()).filter(Boolean):[],t=n(r.title),m=n(r.summary),l=n(r.recommendedAction),o=n(r.nextActionOnApproval),p=n(r.proposedComment);return e.jsxDEV("div",{className:"mt-4 space-y-3.5 text-sm",children:[t&&e.jsxDEV("div",{className:"space-y-1",children:[e.jsxDEV("p",{className:"text-[11px] font-medium uppercase tracking-[0.08em] text-muted-foreground",children:"Title"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:181,columnNumber:11},this),e.jsxDEV("p",{className:"font-medium leading-6 text-foreground",children:t},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:182,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:180,columnNumber:9},this),m&&e.jsxDEV("div",{className:"space-y-1",children:[e.jsxDEV("p",{className:"text-[11px] font-medium uppercase tracking-[0.08em] text-muted-foreground",children:"Summary"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:187,columnNumber:11},this),e.jsxDEV("p",{className:"leading-6 text-foreground/90",children:m},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:188,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:186,columnNumber:9},this),l&&e.jsxDEV("div",{className:"rounded-lg border border-amber-500/20 bg-amber-500/10 px-3.5 py-3",children:[e.jsxDEV("p",{className:"text-[11px] font-medium uppercase tracking-[0.08em] text-amber-700 dark:text-amber-300",children:"Recommended action"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:193,columnNumber:11},this),e.jsxDEV("p",{className:"mt-1 leading-6 text-foreground",children:l},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:196,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:192,columnNumber:9},this),o&&e.jsxDEV("div",{className:"rounded-lg border border-border/60 bg-background/60 px-3.5 py-3",children:[e.jsxDEV("p",{className:"text-[11px] font-medium uppercase tracking-[0.08em] text-muted-foreground",children:"On approval"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:201,columnNumber:11},this),e.jsxDEV("p",{className:"mt-1 leading-6 text-foreground",children:o},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:202,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:200,columnNumber:9},this),s.length>0&&e.jsxDEV("div",{className:"space-y-1.5",children:[e.jsxDEV("p",{className:"text-[11px] font-medium uppercase tracking-[0.08em] text-muted-foreground",children:"Risks"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:207,columnNumber:11},this),e.jsxDEV("ul",{className:"space-y-1 text-sm text-muted-foreground",children:s.map(a=>e.jsxDEV("li",{className:"flex items-start gap-2",children:[e.jsxDEV("span",{className:"mt-2 h-1.5 w-1.5 rounded-full bg-muted-foreground/60"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:211,columnNumber:17},this),e.jsxDEV("span",{className:"leading-6",children:a},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:212,columnNumber:17},this)]},a,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:210,columnNumber:15},this))},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:208,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:206,columnNumber:9},this),p&&e.jsxDEV("div",{className:"space-y-1.5",children:[e.jsxDEV("p",{className:"text-[11px] font-medium uppercase tracking-[0.08em] text-muted-foreground",children:"Proposed comment"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:220,columnNumber:11},this),e.jsxDEV("pre",{className:"max-h-48 overflow-auto rounded-lg border border-border/60 bg-muted/50 px-3.5 py-3 font-mono text-xs leading-5 text-muted-foreground whitespace-pre-wrap",children:p},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:223,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:219,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:178,columnNumber:5},this)}function j({type:r,payload:s,hidePrimaryTitle:t=!1}){return r==="hire_agent"?e.jsxDEV(h,{payload:s},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:241,columnNumber:37},this):r==="budget_override_required"?e.jsxDEV(A,{payload:s},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:242,columnNumber:51},this):r==="request_board_approval"?e.jsxDEV(y,{payload:s,hideTitle:t},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:244,columnNumber:12},this):e.jsxDEV(g,{payload:s},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalPayload.tsx",lineNumber:246,columnNumber:10},this)}h.__docgenInfo={description:"",methods:[],displayName:"HireAgentPayload",props:{payload:{required:!0,tsType:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},description:""}}};g.__docgenInfo={description:"",methods:[],displayName:"CeoStrategyPayload",props:{payload:{required:!0,tsType:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},description:""}}};A.__docgenInfo={description:"",methods:[],displayName:"BudgetOverridePayload",props:{payload:{required:!0,tsType:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},description:""}}};y.__docgenInfo={description:"",methods:[],displayName:"BoardApprovalPayload",props:{payload:{required:!0,tsType:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},description:""},hideTitle:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}}};j.__docgenInfo={description:"",methods:[],displayName:"ApprovalPayloadRenderer",props:{type:{required:!0,tsType:{name:"string"},description:""},payload:{required:!0,tsType:{name:"Record",elements:[{name:"string"},{name:"unknown"}],raw:"Record"},description:""},hidePrimaryTitle:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}}}};function J(r){return r==="approved"?e.jsxDEV(S,{className:"h-3.5 w-3.5 text-green-600 dark:text-green-400"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:18,columnNumber:37},this):r==="rejected"?e.jsxDEV(R,{className:"h-3.5 w-3.5 text-red-600 dark:text-red-400"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:19,columnNumber:37},this):r==="revision_requested"?e.jsxDEV(f,{className:"h-3.5 w-3.5 text-amber-600 dark:text-amber-400"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:20,columnNumber:47},this):r==="pending"?e.jsxDEV(f,{className:"h-3.5 w-3.5 text-yellow-600 dark:text-yellow-400"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:21,columnNumber:36},this):null}function K({approval:r,requesterAgent:s,onApprove:t,onReject:m,onOpen:l,detailLink:o,isPending:p=!1,pendingAction:a=null}){const V=r.payload,E=M[r.type]??F,u=z[r.type]??r.type,d=L(V),N=!!(t&&m)&&r.type!=="budget_override_required"&&(r.status==="pending"||r.status==="revision_requested"),D=N||!!(o||l);return e.jsxDEV("div",{className:"rounded-xl border border-border/70 bg-card p-4 shadow-sm",children:[e.jsxDEV("div",{className:"flex items-start justify-between gap-4",children:[e.jsxDEV("div",{className:"min-w-0 flex-1",children:e.jsxDEV("div",{className:"flex items-start gap-3",children:[e.jsxDEV("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-border/70 bg-background/80",children:e.jsxDEV(E,{className:"h-4 w-4 text-muted-foreground"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:60,columnNumber:15},this)},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:59,columnNumber:13},this),e.jsxDEV("div",{className:"min-w-0 flex-1 space-y-2",children:[e.jsxDEV("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxDEV(k,{variant:"outline",className:"border-border/70 bg-background/70 px-2 py-0.5 text-[11px] font-medium uppercase tracking-[0.08em] text-muted-foreground",children:u},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:64,columnNumber:17},this),s&&e.jsxDEV("div",{className:"inline-flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground",children:[e.jsxDEV("span",{children:"Requested by"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:72,columnNumber:21},this),e.jsxDEV(_,{name:s.name,size:"sm",className:"inline-flex"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:73,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:71,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:63,columnNumber:15},this),e.jsxDEV("div",{className:"space-y-1",children:[e.jsxDEV("h3",{className:"text-base font-semibold leading-6 text-foreground",children:d??u},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:78,columnNumber:17},this),e.jsxDEV("p",{className:"text-xs leading-5 text-muted-foreground",children:["Approval request created ",U(r.createdAt)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:81,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:77,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:62,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:58,columnNumber:11},this)},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:57,columnNumber:9},this),e.jsxDEV("div",{className:"shrink-0",children:e.jsxDEV("div",{className:"inline-flex items-center gap-1.5 rounded-full border border-border/70 bg-background/80 px-2.5 py-1 text-xs text-muted-foreground",children:[J(r.status),e.jsxDEV("span",{className:"capitalize",children:r.status.replace(/_/g," ")},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:91,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:89,columnNumber:11},this)},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:88,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:56,columnNumber:7},this),e.jsxDEV("div",{className:"mt-4 border-t border-border/60 pt-4",children:e.jsxDEV(j,{type:r.type,payload:r.payload,hidePrimaryTitle:!!d},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:97,columnNumber:9},this)},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:96,columnNumber:7},this),r.decisionNote&&e.jsxDEV("div",{className:"mt-4 rounded-lg border border-border/60 bg-muted/30 px-3.5 py-3 text-xs leading-5 text-muted-foreground",children:[e.jsxDEV("span",{className:"font-medium text-foreground",children:"Decision note."},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:106,columnNumber:11},this)," ",r.decisionNote]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:105,columnNumber:9},this),D?e.jsxDEV("div",{className:"mt-4 flex flex-wrap items-center justify-between gap-3 border-t border-border/60 pt-4",children:[e.jsxDEV("div",{className:"flex flex-wrap items-center gap-2",children:N&&e.jsxDEV(e.Fragment,{children:[e.jsxDEV(c,{size:"sm",className:"bg-green-700 hover:bg-green-600 text-white",onClick:t,disabled:p,children:a==="approve"?"Approving...":"Approve"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:115,columnNumber:17},this),e.jsxDEV(c,{variant:"destructive",size:"sm",onClick:m,disabled:p,children:a==="reject"?"Rejecting...":"Reject"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:123,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:114,columnNumber:15},this)},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:112,columnNumber:11},this),o||l?o?e.jsxDEV(P,{to:o,className:w(C({variant:"ghost",size:"sm"}),"h-auto px-2 text-xs text-muted-foreground"),children:"View details"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:136,columnNumber:15},this):e.jsxDEV(c,{variant:"ghost",size:"sm",className:"h-auto px-2 text-xs text-muted-foreground",onClick:l,children:"View details"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:143,columnNumber:15},this):null]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:111,columnNumber:9},this):null]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/ApprovalCard.tsx",lineNumber:55,columnNumber:5},this)}K.__docgenInfo={description:"",methods:[],displayName:"ApprovalCard",props:{approval:{required:!0,tsType:{name:"Approval"},description:""},requesterAgent:{required:!0,tsType:{name:"union",raw:"Agent | null",elements:[{name:"Agent"},{name:"null"}]},description:""},onApprove:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onReject:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onOpen:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},detailLink:{required:!1,tsType:{name:"string"},description:""},isPending:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},pendingAction:{required:!1,tsType:{name:"union",raw:'"approve" | "reject" | null',elements:[{name:"literal",value:'"approve"'},{name:"literal",value:'"reject"'},{name:"null"}]},description:"",defaultValue:{value:"null",computed:!1}}}};export{K as A,O as S}; diff --git a/ui/storybook-static/assets/BudgetSidebarMarker-BHgQjRCo.js b/ui/storybook-static/assets/BudgetSidebarMarker-BHgQjRCo.js deleted file mode 100644 index 9ad1c7693db..00000000000 --- a/ui/storybook-static/assets/BudgetSidebarMarker-BHgQjRCo.js +++ /dev/null @@ -1 +0,0 @@ -import{j as t}from"./iframe-aoIC7NDi.js";import{D as r}from"./dollar-sign-C1pMKyuM.js";const l={healthy:"bg-emerald-500/90 text-white",warning:"bg-amber-500/95 text-amber-950",critical:"bg-red-500/90 text-white"},s={healthy:"Budget healthy",warning:"Budget warning",critical:"Paused by budget"};function n({title:i,level:e="critical"}){const a=i??s[e];return t.jsxDEV("span",{title:a,"aria-label":a,className:`ml-auto inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full shadow-[0_0_0_1px_rgba(255,255,255,0.08)] ${l[e]}`,children:t.jsxDEV(r,{className:"h-3 w-3"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/BudgetSidebarMarker.tsx",lineNumber:32,columnNumber:7},this)},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/BudgetSidebarMarker.tsx",lineNumber:27,columnNumber:5},this)}n.__docgenInfo={description:"",methods:[],displayName:"BudgetSidebarMarker",props:{title:{required:!1,tsType:{name:"string"},description:""},level:{required:!1,tsType:{name:"union",raw:'"healthy" | "warning" | "critical"',elements:[{name:"literal",value:'"healthy"'},{name:"literal",value:'"warning"'},{name:"literal",value:'"critical"'}]},description:"",defaultValue:{value:'"critical"',computed:!1}}}};export{n as B}; diff --git a/ui/storybook-static/assets/Color-FRDS63T2-Dk_nTePj.js b/ui/storybook-static/assets/Color-FRDS63T2-Dk_nTePj.js deleted file mode 100644 index 1da8b6af96d..00000000000 --- a/ui/storybook-static/assets/Color-FRDS63T2-Dk_nTePj.js +++ /dev/null @@ -1 +0,0 @@ -import{g as he,P as de,M as fe,s as M,F as ge,B as Y}from"./DocsRenderer-LL677BLK-C2eW-rkQ.js";import{r as y,R as v,_ as be,x as P}from"./iframe-aoIC7NDi.js";import"./preload-helper-Dp1pzeXC.js";import"./react-18-D7zDPu8g.js";import"./index-DUUcyzlS.js";import"./index-DrFu-skq.js";var ve=P({"../../../node_modules/color-name/index.js"(r,o){o.exports={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],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],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],rebeccapurple:[102,51,153],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]}}}),J=P({"../../../node_modules/color-convert/conversions.js"(r,o){var s=ve(),h={};for(let e of Object.keys(s))h[s[e]]=e;var u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};o.exports=u;for(let e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:n,labels:t}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:n}),Object.defineProperty(u[e],"labels",{value:t})}u.rgb.hsl=function(e){let n=e[0]/255,t=e[1]/255,a=e[2]/255,l=Math.min(n,t,a),i=Math.max(n,t,a),c=i-l,d,g;i===l?d=0:n===i?d=(t-a)/c:t===i?d=2+(a-n)/c:a===i&&(d=4+(n-t)/c),d=Math.min(d*60,360),d<0&&(d+=360);let b=(l+i)/2;return i===l?g=0:b<=.5?g=c/(i+l):g=c/(2-i-l),[d,g*100,b*100]},u.rgb.hsv=function(e){let n,t,a,l,i,c=e[0]/255,d=e[1]/255,g=e[2]/255,b=Math.max(c,d,g),p=b-Math.min(c,d,g),m=function(k){return(b-k)/6/p+1/2};return p===0?(l=0,i=0):(i=p/b,n=m(c),t=m(d),a=m(g),c===b?l=a-t:d===b?l=1/3+n-a:g===b&&(l=2/3+t-n),l<0?l+=1:l>1&&(l-=1)),[l*360,i*100,b*100]},u.rgb.hwb=function(e){let n=e[0],t=e[1],a=e[2],l=u.rgb.hsl(e)[0],i=1/255*Math.min(n,Math.min(t,a));return a=1-1/255*Math.max(n,Math.max(t,a)),[l,i*100,a*100]},u.rgb.cmyk=function(e){let n=e[0]/255,t=e[1]/255,a=e[2]/255,l=Math.min(1-n,1-t,1-a),i=(1-n-l)/(1-l)||0,c=(1-t-l)/(1-l)||0,d=(1-a-l)/(1-l)||0;return[i*100,c*100,d*100,l*100]};function f(e,n){return(e[0]-n[0])**2+(e[1]-n[1])**2+(e[2]-n[2])**2}u.rgb.keyword=function(e){let n=h[e];if(n)return n;let t=1/0,a;for(let l of Object.keys(s)){let i=s[l],c=f(e,i);c.04045?((n+.055)/1.055)**2.4:n/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let l=n*.4124+t*.3576+a*.1805,i=n*.2126+t*.7152+a*.0722,c=n*.0193+t*.1192+a*.9505;return[l*100,i*100,c*100]},u.rgb.lab=function(e){let n=u.rgb.xyz(e),t=n[0],a=n[1],l=n[2];t/=95.047,a/=100,l/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;let i=116*a-16,c=500*(t-a),d=200*(a-l);return[i,c,d]},u.hsl.rgb=function(e){let n=e[0]/360,t=e[1]/100,a=e[2]/100,l,i,c;if(t===0)return c=a*255,[c,c,c];a<.5?l=a*(1+t):l=a+t-a*t;let d=2*a-l,g=[0,0,0];for(let b=0;b<3;b++)i=n+1/3*-(b-1),i<0&&i++,i>1&&i--,6*i<1?c=d+(l-d)*6*i:2*i<1?c=l:3*i<2?c=d+(l-d)*(2/3-i)*6:c=d,g[b]=c*255;return g},u.hsl.hsv=function(e){let n=e[0],t=e[1]/100,a=e[2]/100,l=t,i=Math.max(a,.01);a*=2,t*=a<=1?a:2-a,l*=i<=1?i:2-i;let c=(a+t)/2,d=a===0?2*l/(i+l):2*t/(a+t);return[n,d*100,c*100]},u.hsv.rgb=function(e){let n=e[0]/60,t=e[1]/100,a=e[2]/100,l=Math.floor(n)%6,i=n-Math.floor(n),c=255*a*(1-t),d=255*a*(1-t*i),g=255*a*(1-t*(1-i));switch(a*=255,l){case 0:return[a,g,c];case 1:return[d,a,c];case 2:return[c,a,g];case 3:return[c,d,a];case 4:return[g,c,a];case 5:return[a,c,d]}},u.hsv.hsl=function(e){let n=e[0],t=e[1]/100,a=e[2]/100,l=Math.max(a,.01),i,c;c=(2-t)*a;let d=(2-t)*l;return i=t*l,i/=d<=1?d:2-d,i=i||0,c/=2,[n,i*100,c*100]},u.hwb.rgb=function(e){let n=e[0]/360,t=e[1]/100,a=e[2]/100,l=t+a,i;l>1&&(t/=l,a/=l);let c=Math.floor(6*n),d=1-a;i=6*n-c,(c&1)!==0&&(i=1-i);let g=t+i*(d-t),b,p,m;switch(c){default:case 6:case 0:b=d,p=g,m=t;break;case 1:b=g,p=d,m=t;break;case 2:b=t,p=d,m=g;break;case 3:b=t,p=g,m=d;break;case 4:b=g,p=t,m=d;break;case 5:b=d,p=t,m=g;break}return[b*255,p*255,m*255]},u.cmyk.rgb=function(e){let n=e[0]/100,t=e[1]/100,a=e[2]/100,l=e[3]/100,i=1-Math.min(1,n*(1-l)+l),c=1-Math.min(1,t*(1-l)+l),d=1-Math.min(1,a*(1-l)+l);return[i*255,c*255,d*255]},u.xyz.rgb=function(e){let n=e[0]/100,t=e[1]/100,a=e[2]/100,l,i,c;return l=n*3.2406+t*-1.5372+a*-.4986,i=n*-.9689+t*1.8758+a*.0415,c=n*.0557+t*-.204+a*1.057,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,l=Math.min(Math.max(0,l),1),i=Math.min(Math.max(0,i),1),c=Math.min(Math.max(0,c),1),[l*255,i*255,c*255]},u.xyz.lab=function(e){let n=e[0],t=e[1],a=e[2];n/=95.047,t/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let l=116*t-16,i=500*(n-t),c=200*(t-a);return[l,i,c]},u.lab.xyz=function(e){let n=e[0],t=e[1],a=e[2],l,i,c;i=(n+16)/116,l=t/500+i,c=i-a/200;let d=i**3,g=l**3,b=c**3;return i=d>.008856?d:(i-16/116)/7.787,l=g>.008856?g:(l-16/116)/7.787,c=b>.008856?b:(c-16/116)/7.787,l*=95.047,i*=100,c*=108.883,[l,i,c]},u.lab.lch=function(e){let n=e[0],t=e[1],a=e[2],l;l=Math.atan2(a,t)*360/2/Math.PI,l<0&&(l+=360);let i=Math.sqrt(t*t+a*a);return[n,i,l]},u.lch.lab=function(e){let n=e[0],t=e[1],a=e[2]/360*2*Math.PI,l=t*Math.cos(a),i=t*Math.sin(a);return[n,l,i]},u.rgb.ansi16=function(e,n=null){let[t,a,l]=e,i=n===null?u.rgb.hsv(e)[2]:n;if(i=Math.round(i/50),i===0)return 30;let c=30+(Math.round(l/255)<<2|Math.round(a/255)<<1|Math.round(t/255));return i===2&&(c+=60),c},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){let n=e[0],t=e[1],a=e[2];return n===t&&t===a?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(t/255*5)+Math.round(a/255*5)},u.ansi16.rgb=function(e){let n=e%10;if(n===0||n===7)return e>50&&(n+=3.5),n=n/10.5*255,[n,n,n];let t=(~~(e>50)+1)*.5,a=(n&1)*t*255,l=(n>>1&1)*t*255,i=(n>>2&1)*t*255;return[a,l,i]},u.ansi256.rgb=function(e){if(e>=232){let i=(e-232)*10+8;return[i,i,i]}e-=16;let n,t=Math.floor(e/36)/5*255,a=Math.floor((n=e%36)/6)/5*255,l=n%6/5*255;return[t,a,l]},u.rgb.hex=function(e){let n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n},u.hex.rgb=function(e){let n=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];let t=n[0];n[0].length===3&&(t=t.split("").map(d=>d+d).join(""));let a=parseInt(t,16),l=a>>16&255,i=a>>8&255,c=a&255;return[l,i,c]},u.rgb.hcg=function(e){let n=e[0]/255,t=e[1]/255,a=e[2]/255,l=Math.max(Math.max(n,t),a),i=Math.min(Math.min(n,t),a),c=l-i,d,g;return c<1?d=i/(1-c):d=0,c<=0?g=0:l===n?g=(t-a)/c%6:l===t?g=2+(a-n)/c:g=4+(n-t)/c,g/=6,g%=1,[g*360,c*100,d*100]},u.hsl.hcg=function(e){let n=e[1]/100,t=e[2]/100,a=t<.5?2*n*t:2*n*(1-t),l=0;return a<1&&(l=(t-.5*a)/(1-a)),[e[0],a*100,l*100]},u.hsv.hcg=function(e){let n=e[1]/100,t=e[2]/100,a=n*t,l=0;return a<1&&(l=(t-a)/(1-a)),[e[0],a*100,l*100]},u.hcg.rgb=function(e){let n=e[0]/360,t=e[1]/100,a=e[2]/100;if(t===0)return[a*255,a*255,a*255];let l=[0,0,0],i=n%1*6,c=i%1,d=1-c,g=0;switch(Math.floor(i)){case 0:l[0]=1,l[1]=c,l[2]=0;break;case 1:l[0]=d,l[1]=1,l[2]=0;break;case 2:l[0]=0,l[1]=1,l[2]=c;break;case 3:l[0]=0,l[1]=d,l[2]=1;break;case 4:l[0]=c,l[1]=0,l[2]=1;break;default:l[0]=1,l[1]=0,l[2]=d}return g=(1-t)*a,[(t*l[0]+g)*255,(t*l[1]+g)*255,(t*l[2]+g)*255]},u.hcg.hsv=function(e){let n=e[1]/100,t=e[2]/100,a=n+t*(1-n),l=0;return a>0&&(l=n/a),[e[0],l*100,a*100]},u.hcg.hsl=function(e){let n=e[1]/100,t=e[2]/100*(1-n)+.5*n,a=0;return t>0&&t<.5?a=n/(2*t):t>=.5&&t<1&&(a=n/(2*(1-t))),[e[0],a*100,t*100]},u.hcg.hwb=function(e){let n=e[1]/100,t=e[2]/100,a=n+t*(1-n);return[e[0],(a-n)*100,(1-a)*100]},u.hwb.hcg=function(e){let n=e[1]/100,t=1-e[2]/100,a=t-n,l=0;return a<1&&(l=(t-a)/(1-a)),[e[0],a*100,l*100]},u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},u.gray.hsl=function(e){return[0,0,e[0]]},u.gray.hsv=u.gray.hsl,u.gray.hwb=function(e){return[0,100,e[0]]},u.gray.cmyk=function(e){return[0,0,0,e[0]]},u.gray.lab=function(e){return[e[0],0,0]},u.gray.hex=function(e){let n=Math.round(e[0]/100*255)&255,t=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}}),me=P({"../../../node_modules/color-convert/route.js"(r,o){var s=J();function h(){let n={},t=Object.keys(s);for(let a=t.length,l=0;l1&&(l=i),t(l))};return"conversion"in t&&(a.conversion=t.conversion),a}function n(t){let a=function(...l){let i=l[0];if(i==null)return i;i.length>1&&(l=i);let c=t(l);if(typeof c=="object")for(let d=c.length,g=0;g{u[t]={},Object.defineProperty(u[t],"channels",{value:s[t].channels}),Object.defineProperty(u[t],"labels",{value:s[t].labels});let a=h(t);Object.keys(a).forEach(l=>{let i=a[l];u[t][l]=n(i),u[t][l].raw=e(i)})}),o.exports=u}}),_=be(pe());function ye(r,o,{signal:s,edges:h}={}){let u,f=null,e=h!=null&&h.includes("leading"),n=h==null||h.includes("trailing"),t=()=>{f!==null&&(r.apply(u,f),u=void 0,f=null)},a=()=>{n&&t(),d()},l=null,i=()=>{l!=null&&clearTimeout(l),l=setTimeout(()=>{l=null,a()},o)},c=()=>{l!==null&&(clearTimeout(l),l=null)},d=()=>{c(),u=void 0,f=null},g=()=>{t()},b=function(...p){if(s!=null&&s.aborted)return;u=this,f=p;let m=l==null;i(),e&&m&&t()};return b.schedule=i,b.cancel=d,b.flush=g,s==null||s.addEventListener("abort",d,{once:!0}),b}function C(){return(C=Object.assign||function(r){for(var o=1;o=0||(u[s]=r[s]);return u}function L(r){var o=y.useRef(r),s=y.useRef(function(h){o.current&&o.current(h)});return o.current=r,s.current}var O=function(r,o,s){return o===void 0&&(o=0),s===void 0&&(s=1),r>s?s:r0:p.buttons>0)&&u.current?f(A(u.current,p,n.current)):b(!1)},g=function(){return b(!1)};function b(p){var m=t.current,k=B(u.current),E=p?k.addEventListener:k.removeEventListener;E(m?"touchmove":"mousemove",d),E(m?"touchend":"mouseup",g)}return[function(p){var m=p.nativeEvent,k=u.current;if(k&&(W(m),!(function(R,x){return x&&!S(R)})(m,t.current)&&k)){if(S(m)){t.current=!0;var E=m.changedTouches||[];E.length&&(n.current=E[0].identifier)}k.focus(),f(A(k,m,n.current)),b(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),e({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},b]},[e,f]),l=a[0],i=a[1],c=a[2];return y.useEffect(function(){return c},[c]),v.createElement("div",C({},h,{onTouchStart:l,onMouseDown:l,className:"react-colorful__interactive",ref:u,onKeyDown:i,tabIndex:0,role:"slider"}))}),N=function(r){return r.filter(Boolean).join(" ")},D=function(r){var o=r.color,s=r.left,h=r.top,u=h===void 0?.5:h,f=N(["react-colorful__pointer",r.className]);return v.createElement("div",{className:f,style:{top:100*u+"%",left:100*s+"%"}},v.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:o}}))},w=function(r,o,s){return o===void 0&&(o=0),s===void 0&&(s=Math.pow(10,o)),Math.round(s*r)/s},xe={grad:.9,turn:360,rad:360/(2*Math.PI)},we=function(r){return ee(T(r))},T=function(r){return r[0]==="#"&&(r=r.substring(1)),r.length<6?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:r.length===4?w(parseInt(r[3]+r[3],16)/255,2):1}:{r:parseInt(r.substring(0,2),16),g:parseInt(r.substring(2,4),16),b:parseInt(r.substring(4,6),16),a:r.length===8?w(parseInt(r.substring(6,8),16)/255,2):1}},ke=function(r,o){return o===void 0&&(o="deg"),Number(r)*(xe[o]||1)},_e=function(r){var o=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(r);return o?Ee({h:ke(o[1],o[2]),s:Number(o[3]),l:Number(o[4]),a:o[5]===void 0?1:Number(o[5])/(o[6]?100:1)}):{h:0,s:0,v:0,a:1}},Ee=function(r){var o=r.s,s=r.l;return{h:r.h,s:(o*=(s<50?s:100-s)/100)>0?2*o/(s+o)*100:0,v:s+o,a:r.a}},Me=function(r){return $e(Z(r))},Q=function(r){var o=r.s,s=r.v,h=r.a,u=(200-o)*s/100;return{h:w(r.h),s:w(u>0&&u<200?o*s/100/(u<=100?u:200-u)*100:0),l:w(u/2),a:w(h,2)}},K=function(r){var o=Q(r);return"hsl("+o.h+", "+o.s+"%, "+o.l+"%)"},H=function(r){var o=Q(r);return"hsla("+o.h+", "+o.s+"%, "+o.l+"%, "+o.a+")"},Z=function(r){var o=r.h,s=r.s,h=r.v,u=r.a;o=o/360*6,s/=100,h/=100;var f=Math.floor(o),e=h*(1-s),n=h*(1-(o-f)*s),t=h*(1-(1-o+f)*s),a=f%6;return{r:w(255*[h,n,e,e,t,h][a]),g:w(255*[t,h,h,n,e,e][a]),b:w(255*[e,e,t,h,h,n][a]),a:w(u,2)}},Ce=function(r){var o=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(r);return o?ee({r:Number(o[1])/(o[2]?100/255:1),g:Number(o[3])/(o[4]?100/255:1),b:Number(o[5])/(o[6]?100/255:1),a:o[7]===void 0?1:Number(o[7])/(o[8]?100:1)}):{h:0,s:0,v:0,a:1}},j=function(r){var o=r.toString(16);return o.length<2?"0"+o:o},$e=function(r){var o=r.r,s=r.g,h=r.b,u=r.a,f=u<1?j(w(255*u)):"";return"#"+j(o)+j(s)+j(h)+f},ee=function(r){var o=r.r,s=r.g,h=r.b,u=r.a,f=Math.max(o,s,h),e=f-Math.min(o,s,h),n=e?f===o?(s-h)/e:f===s?2+(h-o)/e:4+(o-s)/e:0;return{h:w(60*(n<0?n+6:n)),s:w(f?e/f*100:0),v:w(f/255*100),a:u}},re=v.memo(function(r){var o=r.hue,s=r.onChange,h=N(["react-colorful__hue",r.className]);return v.createElement("div",{className:h},v.createElement(F,{onMove:function(u){s({h:360*u.left})},onKey:function(u){s({h:O(o+360*u.left,0,360)})},"aria-label":"Hue","aria-valuenow":w(o),"aria-valuemax":"360","aria-valuemin":"0"},v.createElement(D,{className:"react-colorful__hue-pointer",left:o/360,color:K({h:o,s:100,v:100,a:1})})))}),te=v.memo(function(r){var o=r.hsva,s=r.onChange,h={backgroundColor:K({h:o.h,s:100,v:100,a:1})};return v.createElement("div",{className:"react-colorful__saturation",style:h},v.createElement(F,{onMove:function(u){s({s:100*u.left,v:100-100*u.top})},onKey:function(u){s({s:O(o.s+100*u.left,0,100),v:O(o.v-100*u.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+w(o.s)+"%, Brightness "+w(o.v)+"%"},v.createElement(D,{className:"react-colorful__saturation-pointer",top:1-o.v/100,left:o.s/100,color:K(o)})))}),ne=function(r,o){if(r===o)return!0;for(var s in r)if(r[s]!==o[s])return!1;return!0},ae=function(r,o){return r.replace(/\s/g,"")===o.replace(/\s/g,"")},Oe=function(r,o){return r.toLowerCase()===o.toLowerCase()||ne(T(r),T(o))};function le(r,o,s){var h=L(s),u=y.useState(function(){return r.toHsva(o)}),f=u[0],e=u[1],n=y.useRef({color:o,hsva:f});y.useEffect(function(){if(!r.equal(o,n.current.color)){var a=r.toHsva(o);n.current={hsva:a,color:o},e(a)}},[o,r]),y.useEffect(function(){var a;ne(f,n.current.hsva)||r.equal(a=r.fromHsva(f),n.current.color)||(n.current={hsva:f,color:a},h(a))},[f,r,h]);var t=y.useCallback(function(a){e(function(l){return Object.assign({},l,a)})},[]);return[f,t]}var Se=typeof window<"u"?y.useLayoutEffect:y.useEffect,Ne=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},U=new Map,oe=function(r){Se(function(){var o=r.current?r.current.ownerDocument:document;if(o!==void 0&&!U.has(o)){var s=o.createElement("style");s.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,U.set(o,s);var h=Ne();h&&s.setAttribute("nonce",h),o.head.appendChild(s)}},[])},Re=function(r){var o=r.className,s=r.colorModel,h=r.color,u=h===void 0?s.defaultColor:h,f=r.onChange,e=X(r,["className","colorModel","color","onChange"]),n=y.useRef(null);oe(n);var t=le(s,u,f),a=t[0],l=t[1],i=N(["react-colorful",o]);return v.createElement("div",C({},e,{ref:n,className:i}),v.createElement(te,{hsva:a,onChange:l}),v.createElement(re,{hue:a.h,onChange:l,className:"react-colorful__last-control"}))},je={defaultColor:"000",toHsva:we,fromHsva:function(r){return Me({h:r.h,s:r.s,v:r.v,a:1})},equal:Oe},ze=function(r){return v.createElement(Re,C({},r,{colorModel:je}))},He=function(r){var o=r.className,s=r.hsva,h=r.onChange,u={backgroundImage:"linear-gradient(90deg, "+H(Object.assign({},s,{a:0}))+", "+H(Object.assign({},s,{a:1}))+")"},f=N(["react-colorful__alpha",o]),e=w(100*s.a);return v.createElement("div",{className:f},v.createElement("div",{className:"react-colorful__alpha-gradient",style:u}),v.createElement(F,{onMove:function(n){h({a:n.left})},onKey:function(n){h({a:O(s.a+n.left)})},"aria-label":"Alpha","aria-valuetext":e+"%","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100"},v.createElement(D,{className:"react-colorful__alpha-pointer",left:s.a,color:H(s)})))},ue=function(r){var o=r.className,s=r.colorModel,h=r.color,u=h===void 0?s.defaultColor:h,f=r.onChange,e=X(r,["className","colorModel","color","onChange"]),n=y.useRef(null);oe(n);var t=le(s,u,f),a=t[0],l=t[1],i=N(["react-colorful",o]);return v.createElement("div",C({},e,{ref:n,className:i}),v.createElement(te,{hsva:a,onChange:l}),v.createElement(re,{hue:a.h,onChange:l}),v.createElement(He,{hsva:a,onChange:l,className:"react-colorful__last-control"}))},Ie={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:_e,fromHsva:H,equal:ae},Pe=function(r){return v.createElement(ue,C({},r,{colorModel:Ie}))},qe={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Ce,fromHsva:function(r){var o=Z(r);return"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")"},equal:ae},Le=function(r){return v.createElement(ue,C({},r,{colorModel:qe}))},Be=M.div({position:"relative",maxWidth:250}),Te=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Ke=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Ve=r=>`url('data:image/svg+xml;charset=utf-8,')`,ie=M(Y)(({value:r,selected:o,theme:s})=>({width:16,height:16,boxShadow:o?`${s.appBorderColor} 0 0 0 1px inset, ${s.textMutedColor}50 0 0 0 4px`:`${s.appBorderColor} 0 0 0 1px inset`,border:"none",borderRadius:s.appBorderRadius,"&, &:hover":{background:"unset",backgroundColor:"unset",backgroundImage:`linear-gradient(${r}, ${r}), ${Ve(s.base==="dark")}`}})),Xe=M(ge.Input)(({theme:r})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:r.typography.fonts.base,'[aria-readonly="true"] > &':{background:r.base==="light"?r.color.lighter:"transparent"}})),Fe=M(ie)(({disabled:r})=>({position:"absolute",top:4,left:4,zIndex:1,cursor:r?"not-allowed":"pointer"})),De=M(Y)(({theme:r})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:r.input.color})),se=(r=>(r.RGB="rgb",r.HSL="hsl",r.HEX="hex",r))(se||{}),q=Object.values(se),Ge=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Ae=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,We=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,V=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Ue=/^\s*#?([0-9a-f]{3})\s*$/i,Ye={hex:ze,rgb:Le,hsl:Pe},z={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=r=>{let o=r==null?void 0:r.match(Ge);if(!o)return[0,0,0,1];let[,s,h,u,f=1]=o;return[s,h,u,f].map(Number)},Je=r=>{let[o,s,h,u]=ce(r),[f,e,n]=_.default.rgb.hsl([o,s,h])||[0,0,0];return{valid:!0,value:r,keyword:_.default.rgb.keyword([o,s,h]),colorSpace:"rgb",rgb:r,hsl:`hsla(${f}, ${e}%, ${n}%, ${u})`,hex:`#${_.default.rgb.hex([o,s,h]).toLowerCase()}`}},Qe=r=>{let[o,s,h,u]=ce(r),[f,e,n]=_.default.hsl.rgb([o,s,h])||[0,0,0];return{valid:!0,value:r,keyword:_.default.hsl.keyword([o,s,h]),colorSpace:"hsl",rgb:`rgba(${f}, ${e}, ${n}, ${u})`,hsl:r,hex:`#${_.default.hsl.hex([o,s,h]).toLowerCase()}`}},Ze=r=>{let o=r.replace("#",""),s=_.default.keyword.rgb(o)||_.default.hex.rgb(o),h=_.default.rgb.hsl(s),u=r;/[^#a-f0-9]/i.test(r)?u=o:V.test(r)&&(u=`#${o}`);let f=!0;if(u.startsWith("#"))f=V.test(u);else try{_.default.keyword.hex(u)}catch{f=!1}return{valid:f,value:u,keyword:_.default.rgb.keyword(s),colorSpace:"hex",rgb:`rgba(${s[0]}, ${s[1]}, ${s[2]}, 1)`,hsl:`hsla(${h[0]}, ${h[1]}%, ${h[2]}%, 1)`,hex:u}},$=r=>{if(r)return Ae.test(r)?Je(r):We.test(r)?Qe(r):Ze(r)},er=(r,o,s)=>{if(!r||!(o!=null&&o.valid))return z[s];if(s!=="hex")return(o==null?void 0:o[s])||z[s];if(!o.hex.startsWith("#"))try{return`#${_.default.keyword.hex(o.hex)}`}catch{return z.hex}let h=o.hex.match(Ue);if(!h)return V.test(o.hex)?o.hex:z.hex;let[u,f,e]=h[1].split("");return`#${u}${u}${f}${f}${e}${e}`},rr=(r,o)=>{let[s,h]=y.useState(r||""),[u,f]=y.useState(()=>$(s)),[e,n]=y.useState((u==null?void 0:u.colorSpace)||"hex");y.useEffect(()=>{let i=r||"",c=$(i);h(i),f(c),n((c==null?void 0:c.colorSpace)||"hex")},[r]);let t=y.useMemo(()=>er(s,u,e).toLowerCase(),[s,u,e]),a=y.useCallback(i=>{let c=$(i),d=(c==null?void 0:c.value)||i||"";h(d),d===""&&(f(void 0),o(void 0)),c&&(f(c),n(c.colorSpace),o(c.value))},[o]),l=y.useCallback(()=>{let i=(q.indexOf(e)+1)%q.length,c=q[i];n(c);let d=(u==null?void 0:u[c])||"";h(d),o(d)},[u,e,o]);return{value:s,realValue:t,updateValue:a,color:u,colorSpace:e,cycleColorSpace:l}},I=r=>r.replace(/\s*/,"").toLowerCase(),tr=(r,o,s)=>{let[h,u]=y.useState(o!=null&&o.valid?[o]:[]);y.useEffect(()=>{o===void 0&&u([])},[o]);let f=y.useMemo(()=>(r||[]).map(n=>typeof n=="string"?$(n):n.title?{...$(n.color),keyword:n.title}:$(n.color)).concat(h).filter(Boolean).slice(-27),[r,h]),e=y.useCallback(n=>{n!=null&&n.valid&&(f.some(t=>t&&t[s]&&I(t[s]||"")===I(n[s]||""))||u(t=>t.concat(n)))},[s,f]);return{presets:f,addPreset:e}},nr=({name:r,value:o,onChange:s,onFocus:h,onBlur:u,presetColors:f,startOpen:e=!1,argType:n})=>{var R;let t=y.useCallback(ye(s,200),[s]),{value:a,realValue:l,updateValue:i,color:c,colorSpace:d,cycleColorSpace:g}=rr(o,t),{presets:b,addPreset:p}=tr(f??[],c,d),m=Ye[d],k=!!((R=n==null?void 0:n.table)!=null&&R.readonly),E=he(r);return v.createElement(Be,null,v.createElement("label",{htmlFor:E,className:"sb-sr-only"},r),v.createElement(Xe,{id:E,value:a,onChange:x=>i(x.target.value),onFocus:x=>x.target.select(),readOnly:k,placeholder:"Choose color..."}),v.createElement(de,{ariaLabel:"Color picker",defaultVisible:e,visible:k?!1:void 0,onVisibleChange:()=>c&&p(c),popover:v.createElement(Te,null,v.createElement(m,{color:l==="transparent"?"#000000":l,onChange:i,onFocus:h,onBlur:u}),b.length>0&&v.createElement(Ke,null,b.map((x,G)=>v.createElement(ie,{key:`${(x==null?void 0:x.value)||G}-${G}`,variant:"ghost",padding:"small",size:"small",ariaLabel:"Pick this color",tooltip:(x==null?void 0:x.keyword)||(x==null?void 0:x.value)||"",value:(x==null?void 0:x.value)||"",selected:!!(c&&x&&x[d]&&I(x[d]||"")===I(c[d])),onClick:()=>x&&i(x.value||"")}))))},v.createElement(Fe,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Open color picker",value:l,style:{margin:4},disabled:k})),a?v.createElement(De,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Cycle through color spaces",disabled:k,onClick:k?void 0:g},v.createElement(fe,null)):null)},cr=nr;export{nr as ColorControl,cr as default}; diff --git a/ui/storybook-static/assets/CompanyPatternIcon-B7N9Y189.js b/ui/storybook-static/assets/CompanyPatternIcon-B7N9Y189.js deleted file mode 100644 index b12f75eebcb..00000000000 --- a/ui/storybook-static/assets/CompanyPatternIcon-B7N9Y189.js +++ /dev/null @@ -1 +0,0 @@ -import{r as x,j as d,c as I}from"./iframe-aoIC7NDi.js";const X=[[0,8,2,10],[12,4,14,6],[3,11,1,9],[15,7,13,5]];function Y(s){let n=2166136261;for(let t=0;t>>0}function k(s){let n=s>>>0;return()=>{n=n+1831565813>>>0;let t=Math.imul(n^n>>>15,1|n);return t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296}}function P(s,n,t){const a=(s%360+360)%360,r=Math.max(0,Math.min(100,n))/100,i=Math.max(0,Math.min(100,t))/100,e=(1-Math.abs(2*i-1))*r,o=e*(1-Math.abs(a/60%2-1)),l=i-e/2;let c=0,m=0,u=0;return a<60?(c=e,m=o):a<120?(c=o,m=e):a<180?(m=e,u=o):a<240?(m=o,u=e):a<300?(c=o,u=e):(c=e,u=o),[Math.round((c+l)*255),Math.round((m+l)*255),Math.round((u+l)*255)]}function H(s){const n=parseInt(s.slice(1,3),16)/255,t=parseInt(s.slice(3,5),16)/255,a=parseInt(s.slice(5,7),16)/255,r=Math.max(n,t,a),i=Math.min(n,t,a),e=r-i;if(e===0)return 0;let o=0;return r===n?o=(t-a)/e%6:r===t?o=(a-n)/e+2:o=(n-t)/e+4,(o*60+360)%360}function J(s,n,t=22,a=2){if(typeof document>"u")return"";const r=document.createElement("canvas");r.width=t*a,r.height=t*a;const i=r.getContext("2d");if(!i)return"";const e=k(Y(s)),o=n?H(n):Math.floor(e()*360),[l,c,m]=P(o,54+Math.floor(e()*14),36+Math.floor(e()*12)),[u,D,j]=P(o+(e()>.5?10:-10),86+Math.floor(e()*10),82+Math.floor(e()*10)),p=(t-1)/2,b=Math.max(p,1),y=e()*Math.PI*2,v=Math.cos(y),N=Math.sin(y),E=Math.abs(v*b)+Math.abs(N*b),w=.34+e()*.12,C=.33+e()*.12,R=e()*Math.PI*2,q=e()*Math.PI*2;i.fillStyle=`rgb(${l} ${c} ${m})`,i.fillRect(0,0,r.width,r.height),i.fillStyle=`rgb(${u} ${D} ${j})`;const T=a*.46;for(let h=0;h0?n:null;x.useEffect(()=>{o(!1)},[n]);const c=x.useMemo(()=>J(s.trim().toLowerCase(),t),[s,t]);return d.jsxDEV("div",{className:I("relative flex items-center justify-center w-11 h-11 text-base font-semibold text-white overflow-hidden",a),children:[l?d.jsxDEV("img",{src:l,alt:`${s} logo`,onError:()=>o(!0),className:I("absolute inset-0 h-full w-full",r==="contain"?"object-contain":"object-cover")},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/CompanyPatternIcon.tsx",lineNumber:190,columnNumber:9},this):c?d.jsxDEV("img",{src:c,alt:"","aria-hidden":"true",className:"absolute inset-0 h-full w-full",style:{imageRendering:"pixelated"}},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/CompanyPatternIcon.tsx",lineNumber:200,columnNumber:9},this):d.jsxDEV("div",{className:"absolute inset-0 bg-muted"},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/CompanyPatternIcon.tsx",lineNumber:208,columnNumber:9},this),!l&&d.jsxDEV("span",{className:"relative z-10 drop-shadow-[0_1px_2px_rgba(0,0,0,0.65)]",children:i},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/CompanyPatternIcon.tsx",lineNumber:211,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/CompanyPatternIcon.tsx",lineNumber:183,columnNumber:5},this)}K.__docgenInfo={description:"",methods:[],displayName:"CompanyPatternIcon",props:{companyName:{required:!0,tsType:{name:"string"},description:""},logoUrl:{required:!1,tsType:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},description:""},brandColor:{required:!1,tsType:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},description:""},className:{required:!1,tsType:{name:"string"},description:""},logoFit:{required:!1,tsType:{name:"union",raw:'"cover" | "contain"',elements:[{name:"literal",value:'"cover"'},{name:"literal",value:'"contain"'}]},description:"",defaultValue:{value:'"cover"',computed:!1}}}};export{K as C}; diff --git a/ui/storybook-static/assets/CopyText-Cz29Tq5k.js b/ui/storybook-static/assets/CopyText-Cz29Tq5k.js deleted file mode 100644 index aeb5a7aae2d..00000000000 --- a/ui/storybook-static/assets/CopyText-Cz29Tq5k.js +++ /dev/null @@ -1 +0,0 @@ -import{r as t,j as o,c as i}from"./iframe-aoIC7NDi.js";function C({text:s,children:c,containerClassName:p,className:u,ariaLabel:d,title:m,copiedLabel:a="Copied!"}){const[f,n]=t.useState(!1),[y,l]=t.useState(a),r=t.useRef(void 0),x=t.useRef(null);t.useEffect(()=>()=>clearTimeout(r.current),[]);const b=t.useCallback(async()=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(s);else{const e=document.createElement("textarea");e.value=s,e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e);try{if(e.select(),!document.execCommand("copy"))throw new Error("execCommand copy failed")}finally{document.body.removeChild(e)}}l(a)}catch{l("Copy failed")}clearTimeout(r.current),n(!0),r.current=setTimeout(()=>n(!1),1500)},[a,s]);return o.jsxDEV("span",{className:i("relative inline-flex",p),children:[o.jsxDEV("button",{ref:x,type:"button","aria-label":d,title:m,className:i("cursor-copy hover:text-foreground transition-colors",u),onClick:b,children:c??s},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/CopyText.tsx",lineNumber:62,columnNumber:7},this),o.jsxDEV("span",{role:"status","aria-live":"polite",className:i("pointer-events-none absolute left-1/2 -translate-x-1/2 bottom-full mb-1.5 rounded-md bg-foreground text-background px-2 py-1 text-xs whitespace-nowrap transition-opacity duration-300",f?"opacity-100":"opacity-0"),children:y},void 0,!1,{fileName:"/Users/dotta/paperclip/ui/src/components/CopyText.tsx",lineNumber:75,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dotta/paperclip/ui/src/components/CopyText.tsx",lineNumber:61,columnNumber:5},this)}C.__docgenInfo={description:"",methods:[],displayName:"CopyText",props:{text:{required:!0,tsType:{name:"string"},description:""},children:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:"What to display. Defaults to `text`."},containerClassName:{required:!1,tsType:{name:"string"},description:""},className:{required:!1,tsType:{name:"string"},description:""},ariaLabel:{required:!1,tsType:{name:"string"},description:""},title:{required:!1,tsType:{name:"string"},description:""},copiedLabel:{required:!1,tsType:{name:"string"},description:'Tooltip message shown after copying. Default: "Copied!"',defaultValue:{value:'"Copied!"',computed:!1}}}};export{C}; diff --git a/ui/storybook-static/assets/DocsRenderer-LL677BLK-C2eW-rkQ.js b/ui/storybook-static/assets/DocsRenderer-LL677BLK-C2eW-rkQ.js deleted file mode 100644 index 1c02f93ec49..00000000000 --- a/ui/storybook-static/assets/DocsRenderer-LL677BLK-C2eW-rkQ.js +++ /dev/null @@ -1,1046 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-OH4MV7E3-6iTWU9dL.js","./iframe-aoIC7NDi.js","./preload-helper-Dp1pzeXC.js","./iframe-CAdr9hwF.css","./react-18-D7zDPu8g.js","./index-DUUcyzlS.js","./index-DrFu-skq.js","./formatter-EIJCOSYU-B2EBE6a6.js","./WithTooltip-65CFNBJE-C-7GVHws.js","./Color-FRDS63T2-Dk_nTePj.js"])))=>i.map(i=>d[i]); -var Ww=Object.defineProperty;var Vw=(e,t,r)=>t in e?Ww(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ht=(e,t,r)=>Vw(e,typeof t!="symbol"?t+"":t,r);import{_ as pr}from"./preload-helper-Dp1pzeXC.js";import{bX as Dp,bY as qw,bZ as Yw,b_ as Xw,b$ as Jw,c0 as Zw,c1 as Qw,c2 as eC,c3 as ql,c4 as Fn,c5 as Pp,c6 as tC,c7 as rC,c8 as nC,c9 as oC,ca as aC,cb as iC,cc as lC,cd as sC,ce as uC,cf as cC,cg as dC,ch as fC,ci as pC,cj as hC,ck as gC,cl as mC,cm as bC,cn as Fp,D as Je,co as va,r as p,y as nt,R as h,N as le,C as qi,cp as We,aa as yC,cq as fo,cr as Yl,cs as mi,ct as EC,cu as vC,z as Zb,cv as SC,cw as Ip,cx as Xl}from"./iframe-aoIC7NDi.js";import{renderElement as xC,unmountElement as $C}from"./react-18-D7zDPu8g.js";import{s as wC}from"./index-DUUcyzlS.js";import{d as CC}from"./index-DrFu-skq.js";function _C(){}function TC(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function AC(e,t,r){return Co(e,t,void 0,void 0,void 0,void 0,r)}function Co(e,t,r,n,o,a,i){let l=i(e,t,r,n,o,a);if(l!==void 0)return l;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return Po(e,t,a,i)}return Po(e,t,a,i)}function Po(e,t,r,n){if(Object.is(e,t))return!0;let o=Dp(e),a=Dp(t);if(o===Fp&&(o=ql),a===Fp&&(a=ql),o!==a)return!1;switch(o){case eC:return e.toString()===t.toString();case Qw:{let s=e.valueOf(),u=t.valueOf();return TC(s,u)}case Zw:case Jw:case Xw:return Object.is(e.valueOf(),t.valueOf());case Yw:return e.source===t.source&&e.flags===t.flags;case qw:return e===t}r=r??new Map;let i=r.get(e),l=r.get(t);if(i!=null&&l!=null)return i===t;r.set(e,t),r.set(t,e);try{switch(o){case bC:{if(e.size!==t.size)return!1;for(let[s,u]of e.entries())if(!t.has(s)||!Co(u,t.get(s),s,e,t,r,n))return!1;return!0}case mC:{if(e.size!==t.size)return!1;let s=Array.from(e.values()),u=Array.from(t.values());for(let c=0;cCo(d,g,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case gC:case hC:case pC:case fC:case dC:case cC:case uC:case sC:case lC:case iC:case aC:case oC:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let s=0;s`control-${e.replace(/\s+/g,"-")}`,Yi=e=>`set-${e.replace(/\s+/g,"-")}`;function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?o-1:0),i=1;i=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var c=r-a/2,d=l+c,f=s+c,g=u+c;return n(d,f,g)}var Lp={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"639",red:"f00",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",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function kC(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Lp[t]?"#"+Lp[t]:e}var NC=/^#[a-fA-F0-9]{6}$/,MC=/^#[a-fA-F0-9]{8}$/,BC=/^#[a-fA-F0-9]{3}$/,jC=/^#[a-fA-F0-9]{4}$/,Zl=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,HC=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,UC=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,zC=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function In(e){if(typeof e!="string")throw new qt(3);var t=kC(e);if(t.match(NC))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(MC)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(BC))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(jC)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=Zl.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=HC.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=UC.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+bi(l,s,u)+")",d=Zl.exec(c);if(!d)throw new qt(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=zC.exec(t.substring(0,50));if(f){var g=parseInt(""+f[1],10),b=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,v="rgb("+bi(g,b,y)+")",m=Zl.exec(v);if(!m)throw new qt(4,t,v);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new qt(5)}function KC(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r=1?ey(e.hue,e.saturation,e.lightness):"rgba("+bi(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new qt(2)}function uc(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return sc("#"+Kr(e)+Kr(t)+Kr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return sc("#"+Kr(e.red)+Kr(e.green)+Kr(e.blue));throw new qt(6)}function rn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=In(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?uc(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?uc(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new qt(7)}var YC=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},XC=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},JC=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},ZC=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Pr(e){if(typeof e!="object")throw new qt(8);if(XC(e))return rn(e);if(YC(e))return uc(e);if(ZC(e))return qC(e);if(JC(e))return VC(e);throw new qt(8)}function ty(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):ty(e,t,n)}}function mt(e){return ty(e,e.length,[])}function QC(e,t){if(t==="transparent")return t;var r=Dr(t);return Pr(Ke({},r,{hue:r.hue+parseFloat(e)}))}mt(QC);function Jn(e,t,r){return Math.max(e,Math.min(t,r))}function e_(e,t){if(t==="transparent")return t;var r=Dr(t);return Pr(Ke({},r,{lightness:Jn(0,1,r.lightness-parseFloat(e))}))}var t_=mt(e_),Ye=t_;function r_(e,t){if(t==="transparent")return t;var r=Dr(t);return Pr(Ke({},r,{saturation:Jn(0,1,r.saturation-parseFloat(e))}))}mt(r_);function n_(e,t){if(t==="transparent")return t;var r=Dr(t);return Pr(Ke({},r,{lightness:Jn(0,1,r.lightness+parseFloat(e))}))}var o_=mt(n_),Xa=o_;function a_(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=In(t),o=Ke({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=In(r),i=Ke({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,f=1-d,g={red:Math.floor(o.red*d+i.red*f),green:Math.floor(o.green*d+i.green*f),blue:Math.floor(o.blue*d+i.blue*f),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return rn(g)}var i_=mt(a_),ry=i_;function l_(e,t){if(t==="transparent")return t;var r=In(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ke({},r,{alpha:Jn(0,1,(n*100+parseFloat(e)*100)/100)});return rn(o)}var s_=mt(l_),u_=s_;function c_(e,t){if(t==="transparent")return t;var r=Dr(t);return Pr(Ke({},r,{saturation:Jn(0,1,r.saturation+parseFloat(e))}))}mt(c_);function d_(e,t){return t==="transparent"?t:Pr(Ke({},Dr(t),{hue:parseFloat(e)}))}mt(d_);function f_(e,t){return t==="transparent"?t:Pr(Ke({},Dr(t),{lightness:parseFloat(e)}))}mt(f_);function p_(e,t){return t==="transparent"?t:Pr(Ke({},Dr(t),{saturation:parseFloat(e)}))}mt(p_);function h_(e,t){return t==="transparent"?t:ry(parseFloat(e),"rgb(0, 0, 0)",t)}mt(h_);function g_(e,t){return t==="transparent"?t:ry(parseFloat(e),"rgb(255, 255, 255)",t)}mt(g_);function m_(e,t){if(t==="transparent")return t;var r=In(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ke({},r,{alpha:Jn(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return rn(o)}var b_=mt(m_),hr=b_,Q={primary:"#FF4785",secondary:"#006DEB",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F6F9FC",light:"#EEF2F6",mediumlight:"#ECF2F9",medium:"#D9E5F2",mediumdark:"#737F8C",dark:"#5C6570",darker:"#454C54",darkest:"#2E3338",border:"hsl(212 50% 30% / 0.15)",positive:"#66BF3C",warning:"#E69D00",negative:"#FF4400",critical:"#FFFFFF",defaultText:"#2E3338",inverseText:"#FFFFFF",positiveText:"#427C27",warningText:"#955B1E",negativeText:"#C23400"},cr={app:"#F6F9FC",bar:Q.lightest,content:Q.lightest,preview:Q.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},Lt={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},cc={light:{fgColor:{default:Q.darkest,muted:Q.dark,accent:Q.secondary,inverse:Q.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF"},bgColor:{default:Q.lightest,muted:cr.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800"},borderColor:{default:Q.border,muted:"hsl(0 0% 0% / 0.1)",inverse:"hsl(0 0% 100% / 0.1)",positive:"#BFE7AC",warning:"#FFCE85",negative:"#FFC3AD",critical:"hsl(16 100% 100% / 0)"}},dark:{fgColor:{default:"#C9CCCF",muted:"#95999D",accent:"#479DFF",inverse:"#1B1C1D",positive:"#86CE64",warning:"#FFAD33",negative:"#FF6933",critical:"#FF6933"},bgColor:{default:"#222325",muted:"#1B1C1D",positive:"hsl(101 100% 100% / 0)",warning:"hsl(101 100% 100% / 0)",negative:"hsl(101 100% 100% / 0)",critical:"hsl(101 100% 100% / 0)"},borderColor:{default:"hsl(0 0% 100% / 0.1)",muted:"hsl(0 0% 100% / 0.5)",inverse:"hsl(0 0% 0% / 0.1)",positive:"hsl(101 52% 64% / 0.15)",warning:"hsl(36 100% 64% / 0.15)",negative:"hsl(16 100% 64% / 0.15)",critical:"#FF6933"}}},y_={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:Q.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:Lt.fonts.base,fontCode:Lt.fonts.mono,textColor:"#C9CCCF",textInverseColor:"#1B1C1D",textMutedColor:"#95999D",barTextColor:"#95999D",barHoverColor:"#70B3FF",barSelectedColor:"#479DFF",barBg:"#222325",buttonBg:"#1B1C1D",buttonBorder:"hsl(0 0% 100% / 0.1)",booleanBg:"#1B1C1D",booleanSelectedBg:"#292B2E",inputBg:"#1B1C1D",inputBorder:"hsl(0 0% 100% / 0.1)",inputTextColor:"#C9CCCF",inputBorderRadius:4},E_=y_,v_={base:"light",colorPrimary:Q.primary,colorSecondary:Q.secondary,appBg:cr.app,appContentBg:Q.lightest,appHoverBg:"#DBECFF",appPreviewBg:Q.lightest,appBorderColor:Q.border,appBorderRadius:4,fontBase:Lt.fonts.base,fontCode:Lt.fonts.mono,textColor:Q.darkest,textInverseColor:Q.lightest,textMutedColor:Q.dark,barTextColor:Q.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:Q.lightest,buttonBg:cr.app,buttonBorder:Q.medium,booleanBg:Q.mediumlight,booleanSelectedBg:Q.lightest,inputBg:Q.lightest,inputBorder:Q.border,inputTextColor:Q.darkest,inputBorderRadius:4},dc=v_;const{logger:S_}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:x_}=__STORYBOOK_MODULE_GLOBAL__;var{window:es}=x_,$_=e=>({color:e}),w_=e=>typeof e!="string"?(S_.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,C_=e=>!/(gradient|var|calc)/.test(e),__=(e,t)=>e==="darken"?rn(`${Ye(1,t)}`,.95):e==="lighten"?rn(`${Xa(1,t)}`,.95):t,T_=e=>t=>{if(!w_(t)||!C_(t))return t;try{return __(e,t)}catch{return t}},Ad=T_("lighten"),Od=()=>!es||!es.matchMedia?"light":es.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",kp={light:dc,dark:E_},Ja=Od(),Zr={...kp,normal:kp[Ja]},ny=(e={base:Ja},t)=>{let r={...Zr[Ja],...Zr[e.base]||{},...e,base:Zr[e.base]?e.base:Ja};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}},un=Je({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return(function r(n,o,a){function i(u,c){if(!o[u]){if(!n[u]){var d=typeof va=="function"&&va;if(!c&&d)return d(u,!0);if(l)return l(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var g=o[u]={exports:{}};n[u][0].call(g.exports,function(b){var y=n[u][1][b];return i(y||b)},g,g.exports,r,n,o,a)}return o[u].exports}for(var l=typeof va=="function"&&va,s=0;s=0)return this.lastItem=this.list[l],this.list[l].val},a.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},a.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},a.prototype.forEach=function(i,l){var s;for(s=0;s0&&(E[m]={cacheItem:b,arg:arguments[m]},S?i(d,E):d.push(E),d.length>u&&l(d.shift())),g.wasMemoized=S,g.numArgs=m+1,v};return g.limit=u,g.wasMemoized=!1,g.cache=c,g.lru=d,g}};function i(u,c){var d=u.length,f=c.length,g,b,y;for(b=0;b=0&&(d=u[g],f=d.cacheItem.get(d.arg),!f||!f.size);g--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}});function $t(e){for(var t=[],r=1;r0?He(Zn,--ct):0,Ln--,De===10&&(Ln=1,Ji--),De}function gt(){return De=ct2||jo(De)>3?"":" "}function z_(e,t){for(;--t&>()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return ra(e,Za()+(t<6&&Qt()==32&>()==32))}function pc(e){for(;gt();)switch(De){case e:return ct;case 34:case 39:e!==34&&e!==39&&pc(De);break;case 40:e===41&&pc(e);break;case 92:gt();break}return ct}function K_(e,t){for(;gt()&&e+De!==57&&!(e+De===84&&Qt()===47););return"/*"+ra(t,ct-1)+"*"+Xi(e===47?e:gt())}function G_(e){for(;!jo(Qt());)gt();return ra(e,ct)}function W_(e){return cy(ei("",null,null,null,[""],e=uy(e),0,[0],e))}function ei(e,t,r,n,o,a,i,l,s){for(var u=0,c=0,d=i,f=0,g=0,b=0,y=1,v=1,m=1,E=0,S="",x=o,_=a,T=n,C=S;v;)switch(b=E,E=gt()){case 40:if(b!=108&&He(C,d-1)==58){fc(C+=he(Qa(E),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:C+=Qa(E);break;case 9:case 10:case 13:case 32:C+=U_(b);break;case 92:C+=z_(Za()-1,7);continue;case 47:switch(Qt()){case 42:case 47:Sa(V_(K_(gt(),Za()),t,r),s);break;default:C+="/"}break;case 123*y:l[u++]=Gt(C)*m;case 125*y:case 59:case 0:switch(E){case 0:case 125:v=0;case 59+c:m==-1&&(C=he(C,/\f/g,"")),g>0&&Gt(C)-d&&Sa(g>32?Mp(C+";",n,r,d-1):Mp(he(C," ","")+";",n,r,d-2),s);break;case 59:C+=";";default:if(Sa(T=Np(C,t,r,u,c,o,l,S,x=[],_=[],d),a),E===123)if(c===0)ei(C,t,T,T,x,a,d,l,_);else switch(f===99&&He(C,3)===110?100:f){case 100:case 108:case 109:case 115:ei(e,T,T,n&&Sa(Np(e,T,T,0,0,o,l,S,o,x=[],d),_),o,_,d,l,n?x:_);break;default:ei(C,T,T,T,[""],_,0,l,_)}}u=c=g=0,y=m=1,S=C="",d=i;break;case 58:d=1+Gt(C),g=b;default:if(y<1){if(E==123)--y;else if(E==125&&y++==0&&H_()==125)continue}switch(C+=Xi(E),E*y){case 38:m=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Gt(C)-1)*m,m=1;break;case 64:Qt()===45&&(C+=Qa(gt())),f=Qt(),c=d=Gt(S=C+=G_(Za())),E++;break;case 45:b===45&&Gt(C)==2&&(y=0)}}return a}function Np(e,t,r,n,o,a,i,l,s,u,c){for(var d=o-1,f=o===0?a:[""],g=Pd(f),b=0,y=0,v=0;b0?f[m]+" "+E:he(E,/&\f/g,f[m])))&&(s[v++]=S);return Zi(e,t,r,o===0?Rd:l,s,u,c)}function V_(e,t,r){return Zi(e,t,r,ay,Xi(j_()),Bo(e,2,-2),0)}function Mp(e,t,r,n){return Zi(e,t,r,Dd,Bo(e,0,n),Bo(e,n+1,-1),n)}function An(e,t){for(var r="",n=Pd(e),o=0;o6)switch(He(e,t+1)){case 109:if(He(e,t+4)!==45)break;case 102:return he(e,/(.+:)(.+)-([^]+)/,"$1"+pe+"$2-$3$1"+yi+(He(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fc(e,"stretch")?fy(he(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(He(e,t+1)!==115)break;case 6444:switch(He(e,Gt(e)-3-(~fc(e,"!important")&&10))){case 107:return he(e,":",":"+pe)+e;case 101:return he(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pe+(He(e,14)===45?"inline-":"")+"box$3$1"+pe+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(He(e,t+11)){case 114:return pe+e+qe+he(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+qe+he(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+qe+he(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pe+e+qe+e+e}return e}var rT=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Dd:e.return=fy(e.value,e.length);break;case iy:return An([po(e,{value:he(e.value,"@","@"+pe)})],n);case Rd:if(e.length)return B_(e.props,function(o){switch(M_(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return An([po(e,{props:[he(o,/:(read-\w+)/,":"+yi+"$1")]})],n);case"::placeholder":return An([po(e,{props:[he(o,/:(plac\w+)/,":"+pe+"input-$1")]}),po(e,{props:[he(o,/:(plac\w+)/,":"+yi+"$1")]}),po(e,{props:[he(o,/:(plac\w+)/,qe+"input-$1")]})],n)}return""})}},nT=[rT],py=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var y=b.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var n=e.stylisPlugins||nT,o={},a,i=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(b){for(var y=b.getAttribute("data-emotion").split(" "),v=1;v=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var iT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lT=/[A-Z]|^ms/g,sT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hy=function(e){return e.charCodeAt(1)===45},Hp=function(e){return e!=null&&typeof e!="boolean"},ts=dy(function(e){return hy(e)?e:e.replace(lT,"-$&").toLowerCase()}),Up=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(sT,function(r,n,o){return Wt={name:n,styles:o,next:Wt},n})}return iT[e]!==1&&!hy(e)&&typeof t=="number"&&t!==0?t+"px":t};function Ho(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Wt={name:o.name,styles:o.styles,next:Wt},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Wt={name:i.name,styles:i.styles,next:Wt},i=i.next;var l=a.styles+";";return l}return uT(e,t,r)}case"function":{if(e!==void 0){var s=Wt,u=r(e);return Wt=s,Ho(e,t,u)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function uT(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?ST:xT},Wp=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(a){return e.__emotion_forwardProp(a)&&o(a)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},$T=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Qi(t,r,n),Id(function(){return el(t,r,n)}),null},wT=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var l=Wp(t,r,n),s=l||Gp(o),u=!s("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var g=c.length,b=1;b({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,by.default)(1)(({color:e,background:t,typography:r})=>{let n=Ey({typography:r});return{...n,body:{...n.body,position:"fixed",width:"100vw",height:"100vh",overflow:"hidden",color:e.defaultText,background:t.app},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":yy,".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1},"[data-sb-landmark]":{position:"relative"},"[data-sb-landmark]:focus-visible":{outline:"none"},"[data-sb-landmark]:focus-visible::after":{outline:`2px solid ${e.primary}`,outlineOffset:"-2px"},"[data-sb-landmark]::after":{content:"''",position:"absolute",inset:0,pointerEvents:"none"},".react-aria-Popover:focus-visible":{outline:"none"}}});var _T={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},TT=je` - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -`,vy=je` - 0%, 100% { opacity: 1; } - 50% { opacity: .4; } -`,AT=je` - 0% { transform: translateY(1px); } - 25% { transform: translateY(0px); } - 50% { transform: translateY(-3px); } - 100% { transform: translateY(1px); } -`,OT=je` - 0%, 100% { transform:translate3d(0,0,0); } - 12.5%, 62.5% { transform:translate3d(-4px,0,0); } - 37.5%, 87.5% { transform: translate3d(4px,0,0); } -`,RT=nl` - animation: ${vy} 1.5s ease-in-out infinite; - color: transparent; - cursor: progress; -`,DT=nl` - transition: all 150ms ease-out; - transform: translate3d(0, 0, 0); - - &:hover { - transform: translate3d(0, -2px, 0); - } - - &:active { - transform: translate3d(0, 0, 0); - } -`,PT={rotate360:TT,glow:vy,float:AT,jiggle:OT,inlineGlow:RT,hoverable:DT},FT={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},IT={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},LT=e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:$_(n)}),{}),kT=({colors:e,mono:t})=>{let r=LT(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},NT={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#eb0000",gray1:"#393A34",cyan1:"#008380",cyan2:"#007ca0",blue1:"#0000ff",blue2:"#00009f"},MT={green1:"#95999D",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},BT=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:Q.tertiary,ancillary:Q.ancillary,orange:Q.orange,gold:Q.gold,green:Q.green,seafoam:Q.seafoam,purple:Q.purple,ultraviolet:Q.ultraviolet,lightest:Q.lightest,lighter:Q.lighter,light:Q.light,mediumlight:Q.mediumlight,medium:Q.medium,mediumdark:Q.mediumdark,dark:Q.dark,darker:Q.darker,darkest:Q.darkest,border:Q.border,positive:Q.positive,negative:Q.negative,warning:Q.warning,critical:Q.critical,defaultText:e.textColor||Q.darkest,inverseText:e.textInverseColor||Q.lightest,positiveText:Q.positiveText,negativeText:Q.negativeText,warningText:Q.warningText}),Ei=(e=Zr[Od()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:o,appContentBg:a,appHoverBg:i,appPreviewBg:l,appBorderColor:s,appBorderRadius:u,fontBase:c,fontCode:d,textColor:f,textInverseColor:g,barTextColor:b,barHoverColor:y,barSelectedColor:v,barBg:m,buttonBg:E,buttonBorder:S,booleanBg:x,booleanSelectedBg:_,inputBg:T,inputBorder:C,inputTextColor:A,inputBorderRadius:D,brandTitle:I,brandUrl:$,brandImage:N,brandTarget:B,gridCellSize:P,...k}=e;return{...k,base:t,...t==="dark"?cc.dark:cc.light,color:BT(e),background:{app:o,bar:m,content:a,preview:l,gridCellSize:P||cr.gridCellSize,hoverable:i,positive:cr.positive,negative:cr.negative,warning:cr.warning,critical:cr.critical},typography:{fonts:{base:c,mono:d},weight:Lt.weight,size:Lt.size},animation:PT,easing:_T,input:{background:T,border:C,borderRadius:D,color:A},button:{background:E||T,border:S||C},boolean:{background:x||C,selectedBackground:_||T},layoutMargin:10,appBorderColor:s,appBorderRadius:u,barTextColor:b,barHoverColor:y||n,barSelectedColor:v||n,barBg:m,brand:{title:I,url:$,image:N||(I?null:void 0),target:B},code:kT({colors:t==="dark"?MT:NT,mono:d}),addonActionsTheme:{...t==="dark"?FT:IT,BASE_FONT_FAMILY:d,BASE_FONT_SIZE:Lt.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:f,ARROW_COLOR:u_(.2,s),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:d,TREENODE_FONT_SIZE:Lt.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}};const{logger:jT}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var HT=e=>Object.keys(e).length===0,rs=e=>e!=null&&typeof e=="object",UT=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),zT=()=>Object.create(null),Sy=(e,t)=>e===t||!rs(e)||!rs(t)?{}:Object.keys(e).reduce((r,n)=>{if(UT(t,n)){let o=Sy(e[n],t[n]);return rs(o)&&HT(o)||(r[n]=o),r}return r[n]=void 0,r},zT()),KT=Sy,xy=e=>{if(!e)return Ei(dc);let t=KT(dc,e);return Object.keys(t).length&&jT.warn($t` - Your theme is missing properties, you should update your theme! - - theme-data missing: - `,t),Ei(e)},vi="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";const GT=Object.freeze(Object.defineProperty({__proto__:null,ThemeProvider:Ld,background:cr,color:Q,convert:Ei,create:ny,createCache:py,createReset:Ey,css:nl,ensure:xy,getPreferredColorScheme:Od,ignoreSsrWarning:vi,isPropValid:ol,get jsx(){return gc},keyframes:je,lighten:Ad,srOnlyStyles:yy,styled:L,themes:Zr,tokens:cc,typography:Lt,useTheme:rl},Symbol.toStringTag,{value:"Module"}));var WT=L.div(({theme:e,$flexLayout:t=!1})=>[{background:e.background.content},t?{display:"inline-flex",marginInlineStart:"auto",alignSelf:"flex-end"}:{position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",zIndex:1}]),$y=L.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none","@media (forced-colors: active)":{outline:"1px solid highlight"}}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});$y.displayName="ActionButton";var VT=({actionItems:e,flexLayout:t=!1,...r})=>h.createElement(WT,{...r,$flexLayout:t},e.map(({title:n,className:o,onClick:a,disabled:i},l)=>h.createElement($y,{key:l,className:o,onClick:a,disabled:!!i},n)));function qT(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function wy(...e){return t=>e.forEach(r=>qT(r,t))}function cn(...e){return p.useCallback(wy(...e),e)}var Cy=p.forwardRef((e,t)=>{let{children:r,...n}=e,o=p.Children.toArray(r),a=o.find(XT);if(a){let i=a.props.children,l=o.map(s=>s===a?p.Children.count(i)>1?p.Children.only(null):p.isValidElement(i)?i.props.children:null:s);return le.jsx(mc,{...n,ref:t,children:p.isValidElement(i)?p.cloneElement(i,void 0,l):null})}return le.jsx(mc,{...n,ref:t,children:r})});Cy.displayName="Slot";var mc=p.forwardRef((e,t)=>{let{children:r,...n}=e;if(p.isValidElement(r)){let o=ZT(r);return p.cloneElement(r,{...JT(n,r.props),ref:t?wy(t,o):o})}return p.Children.count(r)>1?p.Children.only(null):null});mc.displayName="SlotClone";var YT=({children:e})=>le.jsx(le.Fragment,{children:e});function XT(e){return p.isValidElement(e)&&e.type===YT}function JT(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{a(...i),o(...i)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ZT(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var QT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],oa=QT.reduce((e,t)=>{let r=p.forwardRef((n,o)=>{let{asChild:a,...i}=n,l=a?Cy:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),le.jsx(l,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),bc=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{};function eA(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var aa=e=>{let{present:t,children:r}=e,n=tA(t),o=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),a=cn(n.ref,rA(o));return typeof r=="function"||n.isPresent?p.cloneElement(o,{ref:a}):null};aa.displayName="Presence";function tA(e){let[t,r]=p.useState(),n=p.useRef({}),o=p.useRef(e),a=p.useRef("none"),i=e?"mounted":"unmounted",[l,s]=eA(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{let u=xa(n.current);a.current=l==="mounted"?u:"none"},[l]),bc(()=>{let u=n.current,c=o.current;if(c!==e){let d=a.current,f=xa(u);e?s("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&d!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),bc(()=>{if(t){let u=d=>{let f=xa(n.current).includes(d.animationName);d.target===t&&f&&qi.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(a.current=xa(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function xa(e){return(e==null?void 0:e.animationName)||"none"}function rA(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function nA(e,t=[]){let r=[];function n(a,i){let l=p.createContext(i),s=r.length;r=[...r,i];function u(d){let{scope:f,children:g,...b}=d,y=(f==null?void 0:f[e][s])||l,v=p.useMemo(()=>b,Object.values(b));return le.jsx(y.Provider,{value:v,children:g})}function c(d,f){let g=(f==null?void 0:f[e][s])||l,b=p.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,c]}let o=()=>{let a=r.map(i=>p.createContext(i));return function(i){let l=(i==null?void 0:i[e])||a;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,oA(o,...t)]}function oA(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){let a=n.reduce((i,{useScope:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return{...i,...u}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function qr(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var aA=p.createContext(void 0);function iA(e){let t=p.useContext(aA);return e||t||"ltr"}function lA(e,[t,r]){return Math.min(r,Math.max(t,e))}function Qr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function sA(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var Nd="ScrollArea",[_y]=nA(Nd),[uA,_t]=_y(Nd),Ty=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=e,[l,s]=p.useState(null),[u,c]=p.useState(null),[d,f]=p.useState(null),[g,b]=p.useState(null),[y,v]=p.useState(null),[m,E]=p.useState(0),[S,x]=p.useState(0),[_,T]=p.useState(!1),[C,A]=p.useState(!1),D=cn(t,$=>s($)),I=iA(o);return le.jsx(uA,{scope:r,type:n,dir:I,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:_,onScrollbarXEnabledChange:T,scrollbarY:y,onScrollbarYChange:v,scrollbarYEnabled:C,onScrollbarYEnabledChange:A,onCornerWidthChange:E,onCornerHeightChange:x,children:le.jsx(oa.div,{dir:I,...i,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":m+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});Ty.displayName=Nd;var Ay="ScrollAreaViewport",Oy=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:a,...i}=e,l=_t(Ay,r),s=p.useRef(null),u=cn(t,s,l.onViewportChange);return le.jsxs(le.Fragment,{children:[le.jsx("style",{dangerouslySetInnerHTML:{__html:` -[data-radix-scroll-area-viewport] { - scrollbar-width: none; - -ms-overflow-style: none; - -webkit-overflow-scrolling: touch; -} -[data-radix-scroll-area-viewport]::-webkit-scrollbar { - display: none; -} -:where([data-radix-scroll-area-viewport]) { - display: flex; - flex-direction: column; - align-items: stretch; -} -:where([data-radix-scroll-area-content]) { - flex-grow: 1; -} -`},nonce:a}),le.jsx(oa.div,{"data-radix-scroll-area-viewport":"",...i,asChild:o,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:EA({asChild:o,children:n},c=>le.jsx("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:c}))})]})});Oy.displayName=Ay;var er="ScrollAreaScrollbar",Ry=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=_t(er,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,l=e.orientation==="horizontal";return p.useEffect(()=>(l?a(!0):i(!0),()=>{l?a(!1):i(!1)}),[l,a,i]),o.type==="hover"?le.jsx(cA,{...n,ref:t,forceMount:r}):o.type==="scroll"?le.jsx(dA,{...n,ref:t,forceMount:r}):o.type==="auto"?le.jsx(Dy,{...n,ref:t,forceMount:r}):o.type==="always"?le.jsx(Md,{...n,ref:t}):null});Ry.displayName=er;var cA=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=_t(er,e.__scopeScrollArea),[a,i]=p.useState(!1);return p.useEffect(()=>{let l=o.scrollArea,s=0;if(l){let u=()=>{window.clearTimeout(s),i(!0)},c=()=>{s=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),le.jsx(aa,{present:r||a,children:le.jsx(Dy,{"data-state":a?"visible":"hidden",...n,ref:t})})}),dA=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=_t(er,e.__scopeScrollArea),a=e.orientation==="horizontal",i=il(()=>s("SCROLL_END"),100),[l,s]=sA("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return p.useEffect(()=>{if(l==="idle"){let u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,s]),p.useEffect(()=>{let u=o.viewport,c=a?"scrollLeft":"scrollTop";if(u){let d=u[c],f=()=>{let g=u[c];d!==g&&(s("SCROLL"),i()),d=g};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,a,s,i]),le.jsx(aa,{present:r||l!=="hidden",children:le.jsx(Md,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:Qr(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:Qr(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),Dy=p.forwardRef((e,t)=>{let r=_t(er,e.__scopeScrollArea),{forceMount:n,...o}=e,[a,i]=p.useState(!1),l=e.orientation==="horizontal",s=il(()=>{if(r.viewport){let u=r.viewport.offsetWidth{let{orientation:r="vertical",...n}=e,o=_t(er,e.__scopeScrollArea),a=p.useRef(null),i=p.useRef(0),[l,s]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ky(l.viewport,l.content),c={...n,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function d(f,g){return bA(f,i.current,l,g)}return r==="horizontal"?le.jsx(fA,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let f=o.viewport.scrollLeft,g=Vp(f,l,o.dir);a.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=d(f,o.dir))}}):r==="vertical"?le.jsx(pA,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let f=o.viewport.scrollTop,g=Vp(f,l);a.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=d(f))}}):null}),fA=p.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,a=_t(er,e.__scopeScrollArea),[i,l]=p.useState(),s=p.useRef(null),u=cn(t,s,a.onScrollbarXChange);return p.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),le.jsx(Fy,{"data-orientation":"horizontal",...o,ref:u,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":al(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(a.viewport){let f=a.viewport.scrollLeft+c.deltaX;e.onWheelScroll(f),My(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:xi(i.paddingLeft),paddingEnd:xi(i.paddingRight)}})}})}),pA=p.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,a=_t(er,e.__scopeScrollArea),[i,l]=p.useState(),s=p.useRef(null),u=cn(t,s,a.onScrollbarYChange);return p.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),le.jsx(Fy,{"data-orientation":"vertical",...o,ref:u,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":al(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(a.viewport){let f=a.viewport.scrollTop+c.deltaY;e.onWheelScroll(f),My(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:xi(i.paddingTop),paddingEnd:xi(i.paddingBottom)}})}})}),[hA,Py]=_y(er),Fy=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,g=_t(er,r),[b,y]=p.useState(null),v=cn(t,D=>y(D)),m=p.useRef(null),E=p.useRef(""),S=g.viewport,x=n.content-n.viewport,_=qr(c),T=qr(s),C=il(d,10);function A(D){if(m.current){let I=D.clientX-m.current.left,$=D.clientY-m.current.top;u({x:I,y:$})}}return p.useEffect(()=>{let D=I=>{let $=I.target;b!=null&&b.contains($)&&_(I,x)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[S,b,x,_]),p.useEffect(T,[n,T]),kn(b,C),kn(g.content,C),le.jsx(hA,{scope:r,scrollbar:b,hasThumb:o,onThumbChange:qr(a),onThumbPointerUp:qr(i),onThumbPositionChange:T,onThumbPointerDown:qr(l),children:le.jsx(oa.div,{...f,ref:v,style:{position:"absolute",...f.style},onPointerDown:Qr(e.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),m.current=b.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),A(D))}),onPointerMove:Qr(e.onPointerMove,A),onPointerUp:Qr(e.onPointerUp,D=>{let I=D.target;I.hasPointerCapture(D.pointerId)&&I.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=E.current,g.viewport&&(g.viewport.style.scrollBehavior=""),m.current=null})})})}),Si="ScrollAreaThumb",Iy=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Py(Si,e.__scopeScrollArea);return le.jsx(aa,{present:r||o.hasThumb,children:le.jsx(gA,{ref:t,...n})})}),gA=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,a=_t(Si,r),i=Py(Si,r),{onThumbPositionChange:l}=i,s=cn(t,d=>i.onThumbChange(d)),u=p.useRef(),c=il(()=>{u.current&&(u.current(),u.current=void 0)},100);return p.useEffect(()=>{let d=a.viewport;if(d){let f=()=>{if(c(),!u.current){let g=yA(d,l);u.current=g,l()}};return l(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,c,l]),le.jsx(oa.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Qr(e.onPointerDownCapture,d=>{let f=d.target.getBoundingClientRect(),g=d.clientX-f.left,b=d.clientY-f.top;i.onThumbPointerDown({x:g,y:b})}),onPointerUp:Qr(e.onPointerUp,i.onThumbPointerUp)})});Iy.displayName=Si;var Bd="ScrollAreaCorner",Ly=p.forwardRef((e,t)=>{let r=_t(Bd,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?le.jsx(mA,{...e,ref:t}):null});Ly.displayName=Bd;var mA=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=_t(Bd,r),[a,i]=p.useState(0),[l,s]=p.useState(0),u=!!(a&&l);return kn(o.scrollbarX,()=>{var d;let c=((d=o.scrollbarX)==null?void 0:d.offsetHeight)||0;o.onCornerHeightChange(c),s(c)}),kn(o.scrollbarY,()=>{var d;let c=((d=o.scrollbarY)==null?void 0:d.offsetWidth)||0;o.onCornerWidthChange(c),i(c)}),u?le.jsx(oa.div,{...n,ref:t,style:{width:a,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function xi(e){return e?parseInt(e,10):0}function ky(e,t){let r=e/t;return isNaN(r)?0:r}function al(e){let t=ky(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function bA(e,t,r,n="ltr"){let o=al(r),a=o/2,i=t||a,l=o-i,s=r.scrollbar.paddingStart+i,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,c=r.content-r.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return Ny([s,u],d)(e)}function Vp(e,t,r="ltr"){let n=al(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,l=a-n,s=r==="ltr"?[0,i]:[i*-1,0],u=lA(e,s);return Ny([0,i],[0,l])(u)}function Ny(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function My(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function o(){let a={left:e.scrollLeft,top:e.scrollTop},i=r.left!==a.left,l=r.top!==a.top;(i||l)&&t(),r=a,n=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(n)};function il(e,t){let r=qr(e),n=p.useRef(0);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),p.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function kn(e,t){let r=qr(t);bc(()=>{let n=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function EA(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let o=p.Children.only(n);return p.cloneElement(o,{children:typeof t=="function"?t(o.props.children):t})}var vA=Ty,SA=Oy,xA=Ry,$A=Iy,wA=Ly,CA=L(vA)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),_A=L(SA)(({focusable:e,theme:t})=>({width:"100%",height:"100%","&:focus":e?{outline:`2px solid ${t.color.secondary}`,outlineOffset:-2}:{}})),qp=L(xA)(({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",zIndex:1,'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:t==="true"&&r==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&r==="true"?0:e}})),Yp=L($A)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out",zIndex:1,"&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),jd=p.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,scrollPadding:a=0,className:i,focusable:l=!1},s)=>h.createElement(CA,{scrollbarsize:o,offset:n,className:i},h.createElement(_A,{ref:s,style:{scrollPadding:a},tabIndex:l?0:void 0,focusable:l},e),t&&h.createElement(qp,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},h.createElement(Yp,null)),r&&h.createElement(qp,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},h.createElement(Yp,null)),t&&r&&h.createElement(wA,null)));jd.displayName="ScrollArea";const{global:TA}=__STORYBOOK_MODULE_GLOBAL__;var{document:ho,window:yc}=TA;async function AA(e){var t;try{await((t=yc.top)==null?void 0:t.navigator.clipboard.writeText(e))}catch{await yc.navigator.clipboard.writeText(e)}}async function OA(e){let t=ho.createElement("TEXTAREA"),r=ho.activeElement;t.value=e,ho.body.appendChild(t),t.select(),ho.execCommand("copy"),ho.body.removeChild(t),r.focus()}function RA(){var e;return(e=yc.navigator)!=null&&e.clipboard?AA:OA}function DA(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function PA(){var e,t,r;try{return!!globalThis.__vitest_browser__||!!((r=(t=(e=globalThis.window)==null?void 0:e.navigator)==null?void 0:t.userAgent)!=null&&r.match(/StorybookTestRunner/))}catch{return!1}}var FA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),IA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),LA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),kA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),Ec=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),NA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z",fill:e}))),Xp=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),MA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z",fill:e}))),By=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:e}))),BA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),jA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),HA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),UA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}))),zA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),p.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),KA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",fill:e}),p.createElement("path",{d:"M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z",fill:e}))),GA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),jy=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),WA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),Hy=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),VA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z",fill:e}))),qA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z",fill:e}))),YA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e}))),XA=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z",fill:e}))),Jp=new Map,JA="UNIVERSAL_STORE:",Et={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Gr=class te{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=()=>(this.debug("getState",{state:this.state}),this.state),this.subscribe=(n,o)=>{let a=typeof n=="function",i=a?"*":n,l=a?n:o;if(this.debug("subscribe",{eventType:i,listener:l}),!l)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(i)||this.listeners.set(i,new Set),this.listeners.get(i).add(l),()=>{var s;this.debug("unsubscribe",{eventType:i,listener:l}),this.listeners.has(i)&&(this.listeners.get(i).delete(l),((s=this.listeners.get(i))==null?void 0:s.size)===0&&this.listeners.delete(i))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==te.Status.READY)throw new TypeError($t`Cannot send event before store is ready. You can get the current status with store.status, - or await store.readyPromise to wait for the store to be ready before sending events. - ${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},this.debugging=t.debug??!1,!te.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(te.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?te.ActorType.LEADER:te.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${JA}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===te.ActorType.LEADER)this.syncing={state:Et.RESOLVED,promise:Promise.resolve()};else{let n,o,a=new Promise((i,l)=>{n=()=>{this.syncing.state===Et.PENDING&&(this.syncing.state=Et.RESOLVED,i())},o=s=>{this.syncing.state===Et.PENDING&&(this.syncing.state=Et.REJECTED,l(s))}});this.syncing={state:Et.PENDING,promise:a,resolve:n,reject:o}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=(r==null?void 0:r.channel)??te.preparation.channel,this.environment=(r==null?void 0:r.environment)??te.preparation.environment,this.channel&&this.environment?(te.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):te.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,a)=>{t=i=>{o(i)},r=(...i)=>{a(i)}});te.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??te.Environment.UNKNOWN})}get status(){var t;if(!this.channel||!this.environment)return te.Status.UNPREPARED;switch((t=this.syncing)==null?void 0:t.state){case Et.PENDING:case void 0:return te.Status.SYNCING;case Et.REJECTED:return te.Status.ERROR;case Et.RESOLVED:default:return te.Status.READY}}untilReady(){var t;return Promise.all([te.preparation.promise,(t=this.syncing)==null?void 0:t.promise])}static create(t){if(!t||typeof(t==null?void 0:t.id)!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug($t`[UniversalStore] - create`,{options:t});let r=Jp.get(t.id);if(r)return console.warn($t`UniversalStore with id "${t.id}" already exists in this environment, re-using existing. - You should reuse the existing instance instead of trying to create a new one.`),r;te.isInternalConstructing=!0;let n=new te(t);return Jp.set(t.id,n),n}static __prepare(t,r){te.preparation.channel=t,te.preparation.environment=r,te.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==te.Status.READY)throw new TypeError($t`Cannot set state before store is ready. You can get the current status with store.status, - or await store.readyPromise to wait for the store to be ready before sending events. - ${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:te.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(te.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){var n;this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),(n=this.channel)==null||n.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:!!t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===te.ActorType.LEADER?this.emitToChannel({type:te.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:te.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:te.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let n=this.listeners.get(t.type),o=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:o}),[...n??[],...o??[]].forEach(a=>a(t,r))}handleChannelEvents(t){var o,a,i,l,s;let{event:r,eventInfo:n}=t;if([n.actor.id,(o=n.forwardingActor)==null?void 0:o.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(((a=this.syncing)==null?void 0:a.state)===Et.PENDING&&r.type!==te.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===te.ActorType.LEADER){let u=!0;switch(r.type){case te.InternalEventType.EXISTING_STATE_REQUEST:u=!1;let c={type:te.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:c}),this.emitToChannel(c,{actor:this.actor}),this.emitToListeners(c,{actor:this.actor});break;case te.InternalEventType.LEADER_CREATED:u=!1,this.syncing.state=Et.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error($t`Detected multiple UniversalStore leaders created with the same id "${this.id}". - Only one leader can exists at a time, your stores are now in an invalid state. - Leaders detected: - this: ${JSON.stringify(this.actor,null,2)} - other: ${JSON.stringify(n.actor,null,2)}`);break}u&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===te.ActorType.FOLLOWER)switch(r.type){case te.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),((i=this.syncing)==null?void 0:i.state)!==Et.PENDING)break;(s=(l=this.syncing).resolve)==null||s.call(l);let u={type:te.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(u,n);break}switch(r.type){case te.InternalEventType.SET_STATE:this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state;break}this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug($t`[UniversalStore::${this.id}::${this.environment??te.Environment.UNKNOWN}] - ${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){te.preparation.reject(new Error("reset")),te.setupPreparationPromise(),te.isInternalConstructing=!1}};Gr.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},Gr.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},Gr.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},Gr.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},Gr.isInternalConstructing=!1,Gr.setupPreparationPromise();var Hd=Gr,ZA=Object.create,Uy=Object.defineProperty,QA=Object.getOwnPropertyDescriptor,zy=Object.getOwnPropertyNames,e5=Object.getPrototypeOf,t5=Object.prototype.hasOwnProperty,ae=(e,t)=>function(){return t||(0,e[zy(e)[0]])((t={exports:{}}).exports,t),t.exports},r5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of zy(t))!t5.call(e,o)&&o!==r&&Uy(e,o,{get:()=>t[o],enumerable:!(n=QA(t,o))||n.enumerable});return e},Ud=(e,t,r)=>(r=e!=null?ZA(e5(e)):{},r5(!e||!e.__esModule?Uy(r,"default",{value:e,enumerable:!0}):r,e)),n5=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],o5=["detail"];function a5(e){let t=n5.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of o5.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var Ky=ae({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),i5=ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),l5=ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),s5=ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),u5=ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),c5=ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),zd=ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),d5=ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),f5=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),p5=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),h5=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),g5=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),m5=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),b5=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),y5=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),E5=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=y5();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),v5=ae({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Kd=ae({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=v5();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),S5=ae({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),Gy=ae({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0}}}),Wy=ae({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Gy();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),Vy=ae({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),qy=ae({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=Ky();t.exports=r.getPrototypeOf||null}}),x5=ae({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,a="[object Function]",i=function(u,c){for(var d=[],f=0;f"u"||!D?r:D(Uint8Array),w={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":A&&D?D([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":E,"%GeneratorFunction%":P,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&D?D(D([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!D?r:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!D?r:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&D?D(""[Symbol.iterator]()):r,"%Symbol%":A?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":k,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":B,"%Function.prototype.apply%":N,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":I,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":b,"%Math.pow%":y,"%Math.round%":v,"%Math.sign%":m,"%Reflect.getPrototypeOf%":$};if(D)try{null.error}catch(J){O=D(D(J)),w["%Error.prototype%"]=O}var O,F=function J(V){var z;if(V==="%AsyncFunction%")z=S("async function () {}");else if(V==="%GeneratorFunction%")z=S("function* () {}");else if(V==="%AsyncGeneratorFunction%")z=S("async function* () {}");else if(V==="%AsyncGenerator%"){var G=J("%AsyncGeneratorFunction%");G&&(z=G.prototype)}else if(V==="%AsyncIteratorPrototype%"){var re=J("%AsyncGenerator%");re&&D&&(z=D(re.prototype))}return w[V]=z,z},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=ll(),j=Jy(),U=R.call(B,Array.prototype.concat),K=R.call(N,Array.prototype.splice),q=R.call(B,String.prototype.replace),H=R.call(B,String.prototype.slice),W=R.call(B,RegExp.prototype.exec),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ee=/\\(\\)?/g,X=function(J){var V=H(J,0,1),z=H(J,-1);if(V==="%"&&z!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(z==="%"&&V!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var G=[];return q(J,Y,function(re,$e,Z,et){G[G.length]=Z?q(et,ee,"$1"):$e||re}),G},me=function(J,V){var z=J,G;if(j(M,z)&&(G=M[z],z="%"+G[0]+"%"),j(w,z)){var re=w[z];if(re===P&&(re=F(z)),typeof re>"u"&&!V)throw new u("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:G,name:z,value:re}}throw new s("intrinsic "+J+" does not exist!")};t.exports=function(J,V){if(typeof J!="string"||J.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof V!="boolean")throw new u('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,J)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var z=X(J),G=z.length>0?z[0]:"",re=me("%"+G+"%",V),$e=re.name,Z=re.value,et=!1,At=re.alias;At&&(G=At[0],K(z,U([0,1],At)));for(var ft=1,Ot=!0;ft=z.length){var nr=x(Z,Fe);Ot=!!nr,Ot&&"get"in nr&&!("originalValue"in nr.get)?Z=nr.get:Z=Z[Fe]}else Ot=j(Z,Fe),Z=Z[Fe];Ot&&!et&&(w[$e]=Z)}}return Z}}}),Wd=ae({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=T5(),n=Xy(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(a,i){var l=r(a,!!i);return typeof l=="function"&&o(a,".prototype.")>-1?n([l]):l}}}),A5=ae({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=Gy();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),Zy=ae({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Wd(),n=A5()(),o=Jy(),a=Kd(),i;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),i=function(g){if(!g||typeof g!="object")return!1;var b=a(g,"lastIndex"),y=b&&o(b,"value");if(!y)return!1;try{l(g,c)}catch(v){return v===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",i=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:d(g)===f});var l,s,u,c,d,f;t.exports=i}}),O5=ae({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),R5=ae({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Wd(),n=Zy(),o=r("RegExp.prototype.exec"),a=zd();t.exports=function(i){if(!n(i))throw new a("`regex` must be a RegExp");return function(l){return o(i,l)!==null}}}}),D5=ae({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Wd(),n=r("Object.prototype.toString"),o=Wy()(),a=R5();o?(i=r("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,l,s}}),P5=Ud(Zy()),F5=Ud(O5()),I5=Ud(D5());function L5(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var k5=typeof global=="object"&&global&&global.Object===Object&&global,N5=k5,M5=typeof self=="object"&&self&&self.Object===Object&&self,B5=N5||M5||Function("return this")(),Vd=B5,j5=Vd.Symbol,Nn=j5,Qy=Object.prototype,H5=Qy.hasOwnProperty,U5=Qy.toString,go=Nn?Nn.toStringTag:void 0;function z5(e){var t=H5.call(e,go),r=e[go];try{e[go]=void 0;var n=!0}catch{}var o=U5.call(e);return n&&(t?e[go]=r:delete e[go]),o}var K5=z5,G5=Object.prototype,W5=G5.toString;function V5(e){return W5.call(e)}var q5=V5,Y5="[object Null]",X5="[object Undefined]",Zp=Nn?Nn.toStringTag:void 0;function J5(e){return e==null?e===void 0?X5:Y5:Zp&&Zp in Object(e)?K5(e):q5(e)}var e1=J5;function Z5(e){return e!=null&&typeof e=="object"}var Q5=Z5,eO="[object Symbol]";function tO(e){return typeof e=="symbol"||Q5(e)&&e1(e)==eO}var qd=tO;function rO(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r-1}var dR=cR;function fR(e,t){var r=this.__data__,n=sl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var pR=fR;function eo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++te.match(/^[\[\{\"\}].*[\]\}\"]$/);function a1(e){if(!Jd(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=a5(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var JR=function(e){let t,r,n,o;return function(a,i){var l;try{if(a==="")return o=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),o.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return YR.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,P5.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,F5.default)(i))return;if((0,I5.default)(i)){if(!e.allowSymbol)return;let c=Symbol.keyFor(i);return c!==void 0?`_gsymbol_${c}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(o)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if((l=i==null?void 0:i.constructor)!=null&&l.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let c=t.get(i);if(!c){let d={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((f,g)=>{try{f[g]=i[g]}catch{}return f},{})};return o.push(a),n.unshift(d),t.set(i,JSON.stringify(o)),i!==d&&r.set(i,d),d}return`_duplicate_${c}`}let u=t.get(i);if(!u){let c=Array.isArray(i)?i:a1(i);return o.push(a),n.unshift(c),t.set(i,JSON.stringify(o)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}catch{return}}},ZR=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:a,container:i,replacement:l})=>{let s=XR(l)?JSON.parse(l):l.split(".");s.length===0?i[a]=r:i[a]=qR(r,s)})),n==="_constructor-name_")return o;if(Jd(o)&&o.__isConvertedError__){let{message:a,...i}=o.errorProperties,l=new Error(a);return Object.assign(l,i),l}if(typeof o=="string"&&o.startsWith("_regexp_")&&e.allowRegExp){let[,a,i]=o.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(i,a)}return typeof o=="string"&&o.startsWith("_date_")&&e.allowDate?new Date(o.replace("_date_","")):typeof o=="string"&&o.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:o.replace(/^_duplicate_/,"")}),null):typeof o=="string"&&o.startsWith("_symbol_")&&e.allowSymbol?Symbol(o.replace("_symbol_","")):typeof o=="string"&&o.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(o.replace("_gsymbol_","")):typeof o=="string"&&o==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof o=="string"&&o==="_Infinity_"?Number.POSITIVE_INFINITY:typeof o=="string"&&o==="_NaN_"?Number.NaN:typeof o=="string"&&o.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(o.replace("_bigint_","")):o}},i1={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},QR=(e,t={})=>{let r={...i1,...t};return JSON.stringify(a1(e),JR(r),t.space)},eD=()=>{let e=new Map;return function t(r){Jd(r)&&Object.entries(r).forEach(([n,o])=>{o==="_undefined_"?r[n]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((n,o)=>{n==="_undefined_"?(e.set(n,!0),r[o]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},tD=(e,t={})=>{let r={...i1,...t},n=JSON.parse(e,ZR(r));return eD()(n),n};function nh({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function oh(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set("ref","error"),t.toString()}catch{return e}}var Zd=class l1 extends Error{constructor(t){super(l1.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return nh({code:this.code,category:this.category})}get name(){let t=this._name||this.constructor.name;return`${this.fullErrorCode} (${t})`}set name(t){this._name=t}static getFullMessage({documentation:t,code:r,category:n,message:o}){let a;return t===!0?a=`https://storybook.js.org/error/${nh({code:r,category:n})}?ref=error`:typeof t=="string"?a=oh(t):Array.isArray(t)&&(a=` -${t.map(i=>` - ${oh(i)}`).join(` -`)}`),`${o}${a!=null?` - -More info: ${a} -`:""}`}},rD=class extends Zd{constructor(t){super({name:"StatusTypeIdMismatchError",category:"MANAGER_API",code:1,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}},nD=class extends Zd{constructor(e){super({name:"StatusTypeIdMismatchError",category:"PREVIEW_API",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},ah=Object.prototype.hasOwnProperty;function ih(e,t,r){for(r of e.keys())if(Yt(r,t))return r}function Yt(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Yt(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=ih(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=ih(t,o),!o)||!Yt(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(ah.call(e,r)&&++n&&!ah.call(t,r)||!(r in t)||!Yt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function lh(e,t){let r=[],n=[];for(let o=0;ot?e.type!=="docs":e.type==="docs",_play:(e,t)=>{var r,n;return t?e.type!=="story"||!((r=e.tags)!=null&&r.includes(On.PLAY_FN)):e.type==="story"&&!!((n=e.tags)!=null&&n.includes(On.PLAY_FN))},_test:(e,t)=>t?e.type!=="story"||e.subtype!=="test":e.type==="story"&&e.subtype==="test"},iD=e=>(t,r)=>{var n,o;return r?!((n=t.tags)!=null&&n.includes(e)):!!((o=t.tags)!=null&&o.includes(e))},s1=Je({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,a)=>"%"+((a<16?"0":"")+a.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let a=o.length;if(a===0)return"";let i="",l=0,s=0;e:for(;s>6]+t[128|u&63];continue}if(u<55296||u>=57344){l=s+1,i+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++s,s>=a)throw new Error("URI malformed");let c=o.charCodeAt(s)&1023;l=s+1,u=65536+((u&1023)<<10|c),i+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return l===0?o:l{switch(typeof a){case"string":return(0,t.encodeString)(a);case"bigint":case"boolean":return""+a;case"number":if(Number.isFinite(a))return a<1e21?""+a:(0,t.encodeString)(""+a);break}return a instanceof Date?(0,t.encodeString)(a.toISOString()):""};e.defaultValueSerializer=r;var n=a=>a instanceof Date;e.defaultShouldSerializeObject=n;var o=a=>a;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}}),u1=Je({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=c;var t=Qd(),r=s1();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}function o(d,f,g,b,y){if(n(f))return d;let v=d[f];return typeof v=="object"&&v!==null?v:!b&&(y||typeof g=="number"||typeof g=="string"&&g*0===0&&g.indexOf(".")===-1)?d[f]=[]:d[f]={}}var a=20,i="[]",l="[",s="]",u=".";function c(d,f,g=0,b,y){let{nestingSyntax:v=t.defaultOptions.nestingSyntax,arrayRepeat:m=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:E=t.defaultOptions.arrayRepeatSyntax,nesting:S=t.defaultOptions.nesting,delimiter:x=t.defaultOptions.delimiter,valueSerializer:_=t.defaultOptions.valueSerializer,shouldSerializeObject:T=t.defaultOptions.shouldSerializeObject}=f,C=typeof x=="number"?String.fromCharCode(x):x,A=y===!0&&m,D=v==="dot"||v==="js"&&!y;if(g>a)return"";let I="",$=!0,N=!1;for(let B in d){let P=d[B];if(P===void 0)continue;let k;b?(k=b,A?E==="bracket"&&(k+=i):D?(k+=u,k+=B):(k+=l,k+=B,k+=s)):k=B,$||(I+=C),typeof P=="object"&&P!==null&&!T(P)?(N=P.pop!==void 0,(S||m&&N)&&(I+=c(P,f,g+1,k,N))):(I+=(0,r.encodeString)(k),I+="=",I+=_(P,B)),$&&($=!1)}return I}}}),lD=Je({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=o;var t=12,r=0,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function o(l){let s=l.indexOf("%");if(s===-1)return l;let u=l.length,c="",d=0,f=0,g=s,b=t;for(;s>-1&&s>10),56320+(f&1023)),f=0,d=s+3,s=g=l.indexOf("%",d);else{if(b===r)return null;if(s+=3,s{let d=Number(c);return Number.isNaN(d)?c:d};e.numberKeyDeserializer=o;var a=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberValueDeserializer=a;var i=/\+/g,l=function(){};l.prototype=Object.create(null);function s(c,d,f,g,b){let y=c.substring(d,f);return g&&(y=y.replace(i," ")),b&&(y=(0,n.decodeURIComponent)(y)||y),y}function u(c,d){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:g=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:b=r.defaultOptions.arrayRepeatSyntax,nesting:y=r.defaultOptions.nesting,arrayRepeat:v=r.defaultOptions.arrayRepeat,nestingSyntax:m=r.defaultOptions.nestingSyntax,delimiter:E=r.defaultOptions.delimiter}=d??{},S=typeof E=="string"?E.charCodeAt(0):E,x=m==="js",_=new l;if(typeof c!="string")return _;let T=c.length,C="",A=-1,D=-1,I=-1,$=_,N,B="",P="",k=!1,w=!1,O=!1,F=!1,M=!1,R=!1,j=0,U=-1,K=-1,q=-1;for(let H=0;HA,R||(D=H),I!==D-1&&(P=s(c,I+1,U>-1?U:D,O,k),B=g(P),N!==void 0&&($=(0,t.getDeepObject)($,N,B,x&&M,void 0))),R||B!==""){R&&(C=c.slice(D+1,H),F&&(C=C.replace(i," ")),w&&(C=(0,n.decodeURIComponent)(C)||C));let W=f(C,B);if(v){let Y=$[B];Y===void 0?U>-1?$[B]=[W]:$[B]=W:Y.pop?Y.push(W):$[B]=[Y,W]}else $[B]=W}C="",A=H,D=H,k=!1,w=!1,O=!1,F=!1,M=!1,U=-1,I=H,$=_,N=void 0,B=""}else j===93?(v&&b==="bracket"&&q===91&&(U=K),y&&(m==="index"||x)&&D<=A&&(I!==K&&(P=s(c,I+1,H,O,k),B=g(P),N!==void 0&&($=(0,t.getDeepObject)($,N,B,void 0,void 0)),N=B,O=!1,k=!1),I=H,M=!1)):j===46?y&&(m==="dot"||x)&&D<=A&&(I!==K&&(P=s(c,I+1,H,O,k),B=g(P),N!==void 0&&($=(0,t.getDeepObject)($,N,B,x)),N=B,O=!1,k=!1),M=!0,I=H):j===91?y&&(m==="index"||x)&&D<=A&&(I!==K&&(P=s(c,I+1,H,O,k),B=g(P),x&&N!==void 0&&($=(0,t.getDeepObject)($,N,B,x)),N=B,O=!1,k=!1,M=!1),I=H):j===61?D<=A?D=H:w=!0:j===43?D>A?F=!0:O=!0:j===37&&(D>A?w=!0:k=!0);K=H,q=j}return _}}}),uD=Je({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=u1();function r(n,o){if(n===null||typeof n!="object")return"";let a=o??{};return(0,t.stringifyObject)(n,a)}}}),c1=Je({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(a,i,l,s){s===void 0&&(s=l);var u=Object.getOwnPropertyDescriptor(i,l);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[l]}}),Object.defineProperty(a,s,u)}):(function(a,i,l,s){s===void 0&&(s=l),a[s]=i[l]})),r=e&&e.__exportStar||function(a,i){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(i,l)&&t(i,a,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=sD();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=uD();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r(Qd(),e)}}),uh="backgrounds",cD="outline",dD={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},ch="Invariant failed";function vc(e,t){if(!e){var r=typeof t=="function"?t():t,n=r?"".concat(ch,": ").concat(r):ch;throw new Error(n)}}var cl="storybook/highlight",fD=`${cl}/add`,pD=`${cl}/remove`,hD=`${cl}/reset`,gD=`${cl}/scroll-into-view`,dh=2147483647,$r=28,mD="storybook/actions",bD=`${mD}/action-event`,yD={depth:10,clearOnStoryChange:!0,limit:50};const{ImplicitActionsDuringRendering:ED}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:fh}=__STORYBOOK_MODULE_GLOBAL__,{addons:vD}=__STORYBOOK_MODULE_PREVIEW_API__;var d1=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:d1(r,t)},SD=e=>!!(typeof e=="object"&&e&&d1(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),xD=e=>{if(SD(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r==null?void 0:r.value;return typeof n=="object"&&(n==null?void 0:n.constructor.name)==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e};function ef(e,t={}){let r={...yD,...t},n=function(...o){var d,f;if(t.implicit){let g=(d="__STORYBOOK_PREVIEW__"in fh?fh.__STORYBOOK_PREVIEW__:void 0)==null?void 0:d.storyRenders.find(b=>b.phase==="playing"||b.phase==="rendering");if(g){let b=!((f=globalThis==null?void 0:globalThis.FEATURES)!=null&&f.disallowImplicitActionsInRenderV8),y=new ED({phase:g.phase,name:e,deprecated:b});if(b)console.warn(y);else throw y}}let a=vD.getChannel(),i=Date.now().toString(36)+Math.random().toString(36).substring(2),l=5,s=o.map(xD),u=o.length>1?s:s[0],c={id:i,count:0,data:{name:e,args:u},options:{...r,maxDepth:l+(r.depth||3)}};a.emit(bD,c)};return n.isAction=!0,n.implicit=t.implicit,n}var or={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},$D={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},f1=Object.entries($D);function dl(e){return String(e)}dl.open="";dl.close="";f1.reduce((e,[t])=>(e[t]=dl,e),{isColorSupported:!1});function wD(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},n=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function CD(e=!1){let t=wD(e),r=(i,l,s,u)=>{let c="",d=0;do c+=i.substring(d,u)+s,d=u+l.length,u=i.indexOf(l,d);while(~u);return c+i.substring(d)},n=(i,l,s=i)=>{let u=c=>{let d=String(c),f=d.indexOf(l,i.length);return~f?i+r(d,l,s,f)+l:i+d+l};return u.open=i,u.close=l,u},o={isColorSupported:t},a=i=>`\x1B[${i}m`;for(let[i,l]of f1)o[i]=t?n(a(l[0]),a(l[1]),l[2]):dl;return o}var dr=CD();function p1(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function _D(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function ia(e,t,r,n,o,a,i=": "){let l="",s=0,u=e.next();if(!u.done){l+=t.spacingOuter;let c=r+t.indent;for(;!u.done;){if(l+=c,s++===t.maxWidth){l+="…";break}let d=a(u.value[0],t,c,n,o),f=a(u.value[1],t,c,n,o);l+=d+i+f,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}function tf(e,t,r,n,o,a){let i="",l=0,s=e.next();if(!s.done){i+=t.spacingOuter;let u=r+t.indent;for(;!s.done;){if(i+=u,l++===t.maxWidth){i+="…";break}i+=a(s.value,t,u,n,o),s=e.next(),s.done?t.min||(i+=","):i+=`,${t.spacingInner}`}i+=t.spacingOuter+r}return i}function $i(e,t,r,n,o,a){let i="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=u=>u instanceof DataView,s=l(e)?e.byteLength:e.length;if(s>0){i+=t.spacingOuter;let u=r+t.indent;for(let c=0;c0){i+=t.spacingOuter;let s=r+t.indent;for(let u=0;u{let i=e.toString();if(i==="ArrayContaining"||i==="ArrayNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+os}[${$i(e.sample,t,r,n,o,a)}]`;if(i==="ObjectContaining"||i==="ObjectNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+os}{${rf(e.sample,t,r,n,o,a)}}`;if(i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining")return i+os+a(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},OD=e=>e&&e.$$typeof===TD,RD={serialize:AD,test:OD},DD=" ",h1=new Set(["DOMStringMap","NamedNodeMap"]),PD=/^(?:HTML\w*Collection|NodeList)$/;function FD(e){return h1.has(e)||PD.test(e)}var ID=e=>e&&e.constructor&&!!e.constructor.name&&FD(e.constructor.name);function LD(e){return e.constructor.name==="NamedNodeMap"}var kD=(e,t,r,n,o,a)=>{let i=e.constructor.name;return++n>t.maxDepth?`[${i}]`:(t.min?"":i+DD)+(h1.has(i)?`{${rf(LD(e)?[...e].reduce((l,s)=>(l[s.name]=s.value,l),{}):{...e},t,r,n,o,a)}}`:`[${$i([...e],t,r,n,o,a)}]`)},ND={serialize:kD,test:ID};function g1(e){return e.replaceAll("<","<").replaceAll(">",">")}function nf(e,t,r,n,o,a,i){let l=n+r.indent,s=r.colors;return e.map(u=>{let c=t[u],d=i(c,r,l,o,a);return typeof c!="string"&&(d.includes(` -`)&&(d=r.spacingOuter+l+d+r.spacingOuter+n),d=`{${d}}`),`${r.spacingInner+n+s.prop.open+u+s.prop.close}=${s.value.open}${d}${s.value.close}`}).join("")}function of(e,t,r,n,o,a){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?m1(i,t):a(i,t,r,n,o))).join("")}function m1(e,t){let r=t.colors.content;return r.open+g1(e)+r.close}function MD(e,t){let r=t.colors.comment;return`${r.open}${r.close}`}function af(e,t,r,n,o){let a=n.colors.tag;return`${a.open}<${e}${t&&a.close+t+n.spacingOuter+o+a.open}${r?`>${a.close}${r}${n.spacingOuter}${o}${a.open}${a.close}`}function lf(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var BD=1,b1=3,y1=8,E1=11,jD=/^(?:(?:HTML|SVG)\w*)?Element$/;function HD(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function UD(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||HD(e);return r===BD&&(jD.test(t)||o)||r===b1&&t==="Text"||r===y1&&t==="Comment"||r===E1&&t==="DocumentFragment"}var zD=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&UD(e)};function KD(e){return e.nodeType===b1}function GD(e){return e.nodeType===y1}function as(e){return e.nodeType===E1}var WD=(e,t,r,n,o,a)=>{if(KD(e))return m1(e.data,t);if(GD(e))return MD(e.data,t);let i=as(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?lf(i,t):af(i,nf(as(e)?[]:Array.from(e.attributes,l=>l.name).sort(),as(e)?{}:[...e.attributes].reduce((l,s)=>(l[s.name]=s.value,l),{}),t,r+t.indent,n,o,a),of(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,a),t,r)},VD={serialize:WD,test:zD},qD="@@__IMMUTABLE_ITERABLE__@@",YD="@@__IMMUTABLE_LIST__@@",XD="@@__IMMUTABLE_KEYED__@@",JD="@@__IMMUTABLE_MAP__@@",ph="@@__IMMUTABLE_ORDERED__@@",ZD="@@__IMMUTABLE_RECORD__@@",QD="@@__IMMUTABLE_SEQ__@@",e2="@@__IMMUTABLE_SET__@@",t2="@@__IMMUTABLE_STACK__@@",Mn=e=>`Immutable.${e}`,fl=e=>`[${e}]`,zo=" ",hh="…";function r2(e,t,r,n,o,a,i){return++n>t.maxDepth?fl(Mn(i)):`${Mn(i)+zo}{${ia(e.entries(),t,r,n,o,a)}}`}function n2(e){let t=0;return{next(){if(tt.maxDepth?fl(i):`${i+zo}{${ia(n2(e),t,r,n,o,a)}}`}function a2(e,t,r,n,o,a){let i=Mn("Seq");return++n>t.maxDepth?fl(i):e[XD]?`${i+zo}{${e._iter||e._object?ia(e.entries(),t,r,n,o,a):hh}}`:`${i+zo}[${e._iter||e._array||e._collection||e._iterable?tf(e.values(),t,r,n,o,a):hh}]`}function is(e,t,r,n,o,a,i){return++n>t.maxDepth?fl(Mn(i)):`${Mn(i)+zo}[${tf(e.values(),t,r,n,o,a)}]`}var i2=(e,t,r,n,o,a)=>e[JD]?r2(e,t,r,n,o,a,e[ph]?"OrderedMap":"Map"):e[YD]?is(e,t,r,n,o,a,"List"):e[e2]?is(e,t,r,n,o,a,e[ph]?"OrderedSet":"Set"):e[t2]?is(e,t,r,n,o,a,"Stack"):e[QD]?a2(e,t,r,n,o,a):o2(e,t,r,n,o,a),l2=e=>e&&(e[qD]===!0||e[ZD]===!0),s2={serialize:i2,test:l2};function v1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gh={exports:{}},be={},mh;function u2(){return mh||(mh=1,(function(){function e(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case t:switch(y=y.type,y){case n:case a:case o:case u:case c:case g:return y;default:switch(y=y&&y.$$typeof,y){case l:case s:case f:case d:return y;case i:return y;default:return v}}case r:return v}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");be.ContextConsumer=i,be.ContextProvider=l,be.Element=t,be.ForwardRef=s,be.Fragment=n,be.Lazy=f,be.Memo=d,be.Portal=r,be.Profiler=a,be.StrictMode=o,be.Suspense=u,be.SuspenseList=c,be.isContextConsumer=function(y){return e(y)===i},be.isContextProvider=function(y){return e(y)===l},be.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},be.isForwardRef=function(y){return e(y)===s},be.isFragment=function(y){return e(y)===n},be.isLazy=function(y){return e(y)===f},be.isMemo=function(y){return e(y)===d},be.isPortal=function(y){return e(y)===r},be.isProfiler=function(y){return e(y)===a},be.isStrictMode=function(y){return e(y)===o},be.isSuspense=function(y){return e(y)===u},be.isSuspenseList=function(y){return e(y)===c},be.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===a||y===o||y===u||y===c||typeof y=="object"&&y!==null&&(y.$$typeof===f||y.$$typeof===d||y.$$typeof===l||y.$$typeof===i||y.$$typeof===s||y.$$typeof===b||y.getModuleId!==void 0)},be.typeOf=e})()),be}var bh;function c2(){return bh||(bh=1,gh.exports=u2()),gh.exports}var S1=c2(),d2=v1(S1),f2=p1({__proto__:null,default:d2},[S1]),yh={exports:{}},ge={},Eh;function p2(){return Eh||(Eh=1,(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=!1,y=!1,v=!1,m=!1,E=!1,S;S=Symbol.for("react.module.reference");function x(G){return!!(typeof G=="string"||typeof G=="function"||G===r||G===o||E||G===n||G===u||G===c||m||G===g||b||y||v||typeof G=="object"&&G!==null&&(G.$$typeof===f||G.$$typeof===d||G.$$typeof===a||G.$$typeof===i||G.$$typeof===s||G.$$typeof===S||G.getModuleId!==void 0))}function _(G){if(typeof G=="object"&&G!==null){var re=G.$$typeof;switch(re){case e:var $e=G.type;switch($e){case r:case o:case n:case u:case c:return $e;default:var Z=$e&&$e.$$typeof;switch(Z){case l:case i:case s:case f:case d:case a:return Z;default:return re}}case t:return re}}}var T=i,C=a,A=e,D=s,I=r,$=f,N=d,B=t,P=o,k=n,w=u,O=c,F=!1,M=!1;function R(G){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(G){return M||(M=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(G){return _(G)===i}function K(G){return _(G)===a}function q(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function H(G){return _(G)===s}function W(G){return _(G)===r}function Y(G){return _(G)===f}function ee(G){return _(G)===d}function X(G){return _(G)===t}function me(G){return _(G)===o}function J(G){return _(G)===n}function V(G){return _(G)===u}function z(G){return _(G)===c}ge.ContextConsumer=T,ge.ContextProvider=C,ge.Element=A,ge.ForwardRef=D,ge.Fragment=I,ge.Lazy=$,ge.Memo=N,ge.Portal=B,ge.Profiler=P,ge.StrictMode=k,ge.Suspense=w,ge.SuspenseList=O,ge.isAsyncMode=R,ge.isConcurrentMode=j,ge.isContextConsumer=U,ge.isContextProvider=K,ge.isElement=q,ge.isForwardRef=H,ge.isFragment=W,ge.isLazy=Y,ge.isMemo=ee,ge.isPortal=X,ge.isProfiler=me,ge.isStrictMode=J,ge.isSuspense=V,ge.isSuspenseList=z,ge.isValidElementType=x,ge.typeOf=_})()),ge}var vh;function h2(){return vh||(vh=1,yh.exports=p2()),yh.exports}var x1=h2(),g2=v1(x1),m2=p1({__proto__:null,default:g2},[x1]),b2=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],Wr=Object.fromEntries(b2.map(e=>[e,t=>m2[e](t)||f2[e](t)]));function $1(e,t=[]){if(Array.isArray(e))for(let r of e)$1(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Sh(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Wr.isFragment(e))return"React.Fragment";if(Wr.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Wr.isContextProvider(e))return"Context.Provider";if(Wr.isContextConsumer(e))return"Context.Consumer";if(Wr.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Wr.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function y2(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var E2=(e,t,r,n,o,a)=>++n>t.maxDepth?lf(Sh(e),t):af(Sh(e),nf(y2(e),e.props,t,r+t.indent,n,o,a),of($1(e.props.children),t,r+t.indent,n,o,a),t,r),v2=e=>e!=null&&Wr.isElement(e),S2={serialize:E2,test:v2},x2=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function $2(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var w2=(e,t,r,n,o,a)=>++n>t.maxDepth?lf(e.type,t):af(e.type,e.props?nf($2(e),e.props,t,r+t.indent,n,o,a):"",e.children?of(e.children,t,r+t.indent,n,o,a):"",t,r),C2=e=>e&&e.$$typeof===x2,_2={serialize:w2,test:C2},w1=Object.prototype.toString,T2=Date.prototype.toISOString,A2=Error.prototype.toString,xh=RegExp.prototype.toString;function ti(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function O2(e){return typeof window<"u"&&e===window}var R2=/^Symbol\((.*)\)(.*)$/,D2=/\n/g,C1=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function P2(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function F2(e){return Object.is(e,-0)?"-0":String(e)}function I2(e){return`${e}n`}function $h(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function wh(e){return String(e).replace(R2,"Symbol($1)")}function Ch(e){return`[${A2.call(e)}]`}function _1(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return F2(e);if(o==="bigint")return I2(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return $h(e,t);if(o==="symbol")return wh(e);let a=w1.call(e);return a==="[object WeakMap]"?"WeakMap {}":a==="[object WeakSet]"?"WeakSet {}":a==="[object Function]"||a==="[object GeneratorFunction]"?$h(e,t):a==="[object Symbol]"?wh(e):a==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":T2.call(e):a==="[object Error]"?Ch(e):a==="[object RegExp]"?r?xh.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):xh.call(e):e instanceof Error?Ch(e):null}function T1(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let i=++n>t.maxDepth,l=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!a)return wr(e.toJSON(),t,r,n,o,!0);let s=w1.call(e);return s==="[object Arguments]"?i?"[Arguments]":`${l?"":"Arguments "}[${$i(e,t,r,n,o,wr)}]`:P2(s)?i?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${$i(e,t,r,n,o,wr)}]`:s==="[object Map]"?i?"[Map]":`Map {${ia(e.entries(),t,r,n,o,wr," => ")}}`:s==="[object Set]"?i?"[Set]":`Set {${tf(e.values(),t,r,n,o,wr)}}`:i||O2(e)?`[${ti(e)}]`:`${l||!t.printBasicPrototype&&ti(e)==="Object"?"":`${ti(e)} `}{${rf(e,t,r,n,o,wr)}}`}var L2={test:e=>e&&e instanceof Error,serialize(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o,e];let i=++n>t.maxDepth,{message:l,cause:s,...u}=e,c={message:l,...typeof s<"u"?{cause:s}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},d=e.name!=="Error"?e.name:ti(e);return i?`[${d}]`:`${d} {${ia(Object.entries(c).values(),t,r,n,o,a)}}`}};function k2(e){return e.serialize!=null}function A1(e,t,r,n,o,a){let i;try{i=k2(e)?e.serialize(t,r,n,o,a,wr):e.print(t,l=>wr(l,r,n,o,a),l=>{let s=n+r.indent;return s+l.replaceAll(D2,` -${s}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new C1(l.message,l.stack)}if(typeof i!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}function O1(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new C1(n.message,n.stack)}return null}function wr(e,t,r,n,o,a){let i=O1(t.plugins,e);if(i!==null)return A1(i,e,t,r,n,o);let l=_1(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:T1(e,t,r,n,o,a)}var sf={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},R1=Object.keys(sf),Dt={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:sf};function N2(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Dt,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function M2(){return R1.reduce((e,t)=>{let r=sf[t],n=r&&dr[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function B2(){return R1.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function D1(e){return(e==null?void 0:e.printFunctionName)??Dt.printFunctionName}function P1(e){return(e==null?void 0:e.escapeRegex)??Dt.escapeRegex}function F1(e){return(e==null?void 0:e.escapeString)??Dt.escapeString}function _h(e){return{callToJSON:(e==null?void 0:e.callToJSON)??Dt.callToJSON,colors:e!=null&&e.highlight?M2():B2(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:Dt.compareKeys,escapeRegex:P1(e),escapeString:F1(e),indent:e!=null&&e.min?"":j2((e==null?void 0:e.indent)??Dt.indent),maxDepth:(e==null?void 0:e.maxDepth)??Dt.maxDepth,maxWidth:(e==null?void 0:e.maxWidth)??Dt.maxWidth,min:(e==null?void 0:e.min)??Dt.min,plugins:(e==null?void 0:e.plugins)??Dt.plugins,printBasicPrototype:(e==null?void 0:e.printBasicPrototype)??!0,printFunctionName:D1(e),spacingInner:e!=null&&e.min?" ":` -`,spacingOuter:e!=null&&e.min?"":` -`}}function j2(e){return Array.from({length:e+1}).join(" ")}function Xt(e,t){if(t&&(N2(t),t.plugins)){let n=O1(t.plugins,e);if(n!==null)return A1(n,e,_h(t),"",0,[])}let r=_1(e,D1(t),P1(t),F1(t));return r!==null?r:T1(e,_h(t),"",0,[])}var uf={AsymmetricMatcher:RD,DOMCollection:ND,DOMElement:VD,Immutable:s2,ReactElement:S2,ReactTestComponent:_2,Error:L2},Th={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},H2={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Bn="…";function U2(e,t){let r=Th[H2[t]]||Th[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function z2({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:a=1/0,breakLength:i=1/0,seen:l=[],truncate:s=1/0,stylize:u=String}={},c){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(a),breakLength:Number(i),truncate:Number(s),seen:l,inspect:c,stylize:u};return d.colors&&(d.stylize=U2),d}function K2(e){return e>="\uD800"&&e<="\uDBFF"}function Fr(e,t,r=Bn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let a=t-n;return a>0&&K2(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}function kt(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let a=t.truncate,i="",l="",s="";for(let u=0;ua&&i.length+s.length<=a||!c&&!d&&y>a||(l=c?"":r(e[u+1],t)+(d?"":n),!c&&d&&y>a&&b+l.length>a))break;if(i+=g,!c&&!d&&b+l.length>=a){s=`${Bn}(${e.length-u-1})`;break}s=""}return`${i}${s}`}function G2(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Ko([e,t],r){return r.truncate-=2,typeof e=="string"?e=G2(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function W2(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=kt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=kt(r.map(a=>[a,e[a]]),t,Ko)),`[ ${n}${o?`, ${o}`:""} ]`}var V2=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function ar(e,t){let r=V2(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let i=0;i[i,e[i]]),t,Ko)),`${r}[ ${o}${a?`, ${a}`:""} ]`}function q2(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${Fr(n[1],t.truncate-o.length-1)}`,"date")}function Ah(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Fr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function Y2([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function X2(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function J2(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${kt(X2(e),t,Y2)} }`)}var Z2=Number.isNaN||(e=>e!==e);function Oh(e,t){return Z2(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Fr(String(e),t.truncate),"number")}function Rh(e,t){let r=Fr(e.toString(),t.truncate-1);return r!==Bn&&(r+="n"),t.stylize(r,"bigint")}function Q2(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Fr(o,n)}/${r}`,"regexp")}function eP(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function tP(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${kt(eP(e),t)} }`)}var Dh=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),rP={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},nP=16;function oP(e){return rP[e]||`\\u${`0000${e.charCodeAt(0).toString(nP)}`.slice(-4)}`}function Ph(e,t){return Dh.test(e)&&(e=e.replace(Dh,oP)),t.stylize(`'${Fr(e,t.truncate-2)}'`,"string")}function Fh(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var I1=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(I1=(n,o)=>{let[a,i]=e(n);return a===t?"Promise{}":`Promise${a===r?"!":""}{${o.inspect(i,o)}}`})}catch{}var aP=I1;function ri(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=kt(r.map(l=>[l,e[l]]),t,Ko),a=kt(n.map(l=>[l,e[l]]),t,Ko);t.seen.pop();let i="";return o&&a&&(i=", "),`{ ${o}${i}${a} }`}var ls=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function iP(e,t){let r="";return ls&&ls in e&&(r=e[ls]),r=r||e.constructor.name,(!r||r==="_class")&&(r=""),t.truncate-=r.length,`${r}${ri(e,t)}`}function lP(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${kt(e,t)} ]`)}var sP=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function uP(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>sP.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Fr(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let a=kt(r.map(i=>[i,e[i]]),t,Ko);return`${n}${o}${a?` { ${a} }`:""}`}function cP([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Sc(e,t){return kt(e,t,dP,` -`)}function dP(e,t){switch(e.nodeType){case 1:return L1(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function L1(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),i=t.stylize(``,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=kt(r.map(c=>[c,e.getAttribute(c)]),t,cP," ")),t.truncate-=l.length;let s=t.truncate,u=Sc(e.children,t);return u&&u.length>s&&(u=`${Bn}(${e.children.length})`),`${o}${l}${a}${u}${i}`}var fP=typeof Symbol=="function"&&typeof Symbol.for=="function",ss=fP?Symbol.for("chai/inspect"):"@@chai/inspect",us=Symbol.for("nodejs.util.inspect.custom"),Ih=new WeakMap,Lh={},kh={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Oh,Number:Oh,bigint:Rh,BigInt:Rh,string:Ph,String:Ph,function:Ah,Function:Ah,symbol:Fh,Symbol:Fh,Array:W2,Date:q2,Map:J2,Set:tP,RegExp:Q2,Promise:aP,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:lP,Int8Array:ar,Uint8Array:ar,Uint8ClampedArray:ar,Int16Array:ar,Uint16Array:ar,Int32Array:ar,Uint32Array:ar,Float32Array:ar,Float64Array:ar,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:uP,HTMLCollection:Sc,NodeList:Sc},pP=(e,t,r)=>ss in e&&typeof e[ss]=="function"?e[ss](t):us in e&&typeof e[us]=="function"?e[us](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Ih.has(e.constructor)?Ih.get(e.constructor)(e,t):Lh[r]?Lh[r](e,t):"",hP=Object.prototype.toString;function xc(e,t={}){let r=z2(t,xc),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=hP.call(e).slice(8,-1)),o in kh)return kh[o](e,r);if(n&&e){let i=pP(e,r,o);if(i)return typeof i=="string"?i:xc(i,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?ri(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?L1(e,r):"constructor"in e?e.constructor!==Object?iP(e,r):ri(e,r):e===Object(e)?ri(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:gP,DOMCollection:mP,DOMElement:bP,Immutable:yP,ReactElement:EP,ReactTestComponent:vP}=uf,Nh=[vP,EP,bP,mP,yP,gP];function Go(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,a;try{a=Xt(e,{maxDepth:t,escapeString:!1,plugins:Nh,...n})}catch{a=Xt(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Nh,...n})}return a.length>=o&&t>1?Go(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):a}var SP=/%[sdjifoOc%]/g;function xP(...e){if(typeof e[0]!="string"){let a=[];for(let i=0;i{if(a==="%%")return"%";if(r>=t)return a;switch(a){case"%s":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:typeof i=="number"&&i===0&&1/i<0?"-0":typeof i=="object"&&i!==null?typeof i.toString=="function"&&i.toString!==Object.prototype.toString?i.toString():mo(i,{depth:0,colors:!1}):String(i)}case"%d":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number(i).toString()}case"%i":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number.parseInt(String(i)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return mo(e[r++],{showHidden:!0,showProxy:!0});case"%O":return mo(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(i){let l=i.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw i}default:return a}});for(let a=e[r];rt.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function k1(e){let t=new Set;return wP(e)?[]:(CP(e,t),Array.from(t))}var N1={forceWritable:!1};function Mh(e,t=N1){return wc(e,new WeakMap,t)}function wc(e,t,r=N1){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=wc(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let a=k1(e);for(let i of a){let l=Object.getOwnPropertyDescriptor(e,i);if(!l)continue;let s=wc(e[i],t,r);r.forceWritable?Object.defineProperty(o,i,{enumerable:l.enumerable,configurable:!0,writable:!0,value:s}):"get"in l?Object.defineProperty(o,i,{...l,get(){return s}}):Object.defineProperty(o,i,{...l,value:s})}return o}return e}var Xe=-1,ze=1,Te=0,we=class{constructor(e,t){Ht(this,0);Ht(this,1);this[0]=e,this[1]=t}};function _P(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,a=0;for(;rn?e=e.substring(r-n):r0?r[n-1]:-1,i=0,l=0,s=0,u=0,o=null,t=!0)),a++;for(t&&B1(e),RP(e),a=1;a=g?(f>=c.length/2||f>=d.length/2)&&(e.splice(a,0,new we(Te,d.substring(0,f))),e[a-1][1]=c.substring(0,c.length-f),e[a+1][1]=d.substring(f),a++):(g>=c.length/2||g>=d.length/2)&&(e.splice(a,0,new we(Te,c.substring(0,g))),e[a-1][0]=ze,e[a-1][1]=d.substring(0,d.length-g),e[a+1][0]=Xe,e[a+1][1]=c.substring(g),a++),a++}a++}}var jh=/[^a-z0-9]/i,Hh=/\s/,Uh=/[\r\n]/,AP=/\n\r?\n$/,OP=/^\r?\n\r?\n/;function RP(e){let t=1;for(;t=u&&(u=c,i=r,l=n,s=o)}e[t-1][1]!==i&&(i?e[t-1][1]=i:(e.splice(t-1,1),t--),e[t][1]=l,s?e[t+1][1]=s:(e.splice(t+1,1),t--))}t++}}function B1(e){e.push(new we(Te,""));let t=0,r=0,n=0,o="",a="",i;for(;t1?(r!==0&&n!==0&&(i=_P(a,o),i!==0&&(t-r-n>0&&e[t-r-n-1][0]===Te?e[t-r-n-1][1]+=a.substring(0,i):(e.splice(0,0,new we(Te,a.substring(0,i))),t++),a=a.substring(i),o=o.substring(i)),i=M1(a,o),i!==0&&(e[t][1]=a.substring(a.length-i)+e[t][1],a=a.substring(0,a.length-i),o=o.substring(0,o.length-i))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new we(Xe,o)),t++),a.length&&(e.splice(t,0,new we(ze,a)),t++),t++):t!==0&&e[t-1][0]===Te?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",a="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t{let E=0;for(;g{let E=0;for(;g<=b&&y<=v&&m(b,v);)b-=1,v-=1,E+=1;return E},o=(g,b,y,v,m,E,S)=>{let x=0,_=-g,T=E[x],C=T;E[x]+=r(T+1,b,v+T-_+1,y,m);let A=g{let x=0,_=g,T=E[x],C=T;E[x]-=n(b,T-1,y,v+T-_-1,m);let A=g{let A=v-b,D=y-b,I=m-v-D,$=-I-(g-1),N=-I+(g-1),B=t,P=g{let A=m-y,D=y-b,I=m-v-D,$=I-g,N=I+g,B=t,P=g{let T=v-b,C=m-y,A=y-b,D=m-v,I=D-A,$=A,N=A;if(S[0]=b-1,x[0]=y,I%2===0){let B=(g||I)/2,P=(A+D)/2;for(let k=1;k<=P;k+=1)if($=o(k,y,m,T,E,S,$),k{if(m-v{K(H,Y,W)},isCommon:(H,W)=>q(W,H)}}let j=b,U=y;b=v,y=m,v=j,m=U}let{foundSubsequence:C,isCommon:A}=S[E?1:0];s(g,b,y,v,m,A,x,_,T);let{nChangePreceding:D,aEndPreceding:I,bEndPreceding:$,nCommonPreceding:N,aCommonPreceding:B,bCommonPreceding:P,nCommonFollowing:k,aCommonFollowing:w,bCommonFollowing:O,nChangeFollowing:F,aStartFollowing:M,bStartFollowing:R}=T;b{if(typeof b!="number")throw new TypeError(`${e}: ${g} typeof ${typeof b} is not a number`);if(!Number.isSafeInteger(b))throw new RangeError(`${e}: ${g} value ${b} is not a safe integer`);if(b<0)throw new RangeError(`${e}: ${g} value ${b} is a negative integer`)},d=(g,b)=>{let y=typeof b;if(y!=="function")throw new TypeError(`${e}: ${g} typeof ${y} is not a function`)};function f(g,b,y,v){c("aLength",g),c("bLength",b),d("isCommon",y),d("foundSubsequence",v);let m=r(0,g,0,b,y);if(m!==0&&v(m,0,0),g!==m||b!==m){let E=m,S=m,x=n(E,g-1,S,b-1,y),_=g-x,T=b-x,C=m+x;g!==C&&b!==C&&u(0,E,_,S,T,!1,[{foundSubsequence:v,isCommon:y}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),x!==0&&v(x,_,T)}}return wa}var FP=PP(),H1=$P(FP);function IP(e,t){return e.replace(/\s+$/,r=>t(r))}function cf(e,t,r,n,o,a){return e.length!==0?r(`${n} ${IP(e,o)}`):n!==" "?r(n):t&&a.length!==0?r(`${n} ${a}`):""}function U1(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return cf(e,t,r,n,o,a)}function z1(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return cf(e,t,r,n,o,a)}function K1(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return cf(e,t,r,n,o,a)}function Kh(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function LP(e,t){let r=e.length,n=t.contextLines,o=n+n,a=r,i=!1,l=0,s=0;for(;s!==r;){let x=s;for(;s!==r&&e[s][0]===Te;)s+=1;if(x!==s)if(x===0)s>n&&(a-=s-n,i=!0);else if(s===r){let _=s-x;_>n&&(a-=_-n,i=!0)}else{let _=s-x;_>o&&(a-=_-o,l+=1)}for(;s!==r&&e[s][0]!==Te;)s+=1}let u=l!==0||i;l!==0?a+=l+1:i&&(a+=1);let c=a-1,d=[],f=0;u&&d.push("");let g=0,b=0,y=0,v=0,m=x=>{let _=d.length;d.push(K1(x,_===0||_===c,t)),y+=1,v+=1},E=x=>{let _=d.length;d.push(U1(x,_===0||_===c,t)),y+=1},S=x=>{let _=d.length;d.push(z1(x,_===0||_===c,t)),v+=1};for(s=0;s!==r;){let x=s;for(;s!==r&&e[s][0]===Te;)s+=1;if(x!==s)if(x===0){s>n&&(x=s-n,g=x,b=x,y=g,v=b);for(let _=x;_!==s;_+=1)m(e[_][1])}else if(s===r){let _=s-x>n?x+n:s;for(let T=x;T!==_;T+=1)m(e[T][1])}else{let _=s-x;if(_>o){let T=x+n;for(let A=x;A!==T;A+=1)m(e[A][1]);d[f]=Kh(g,y,b,v,t),f=d.length,d.push("");let C=_-o;g=y+C,b=v+C,y=g,v=b;for(let A=s-n;A!==s;A+=1)m(e[A][1])}else for(let T=x;T!==s;T+=1)m(e[T][1])}for(;s!==r&&e[s][0]===Xe;)E(e[s][1]),s+=1;for(;s!==r&&e[s][0]===ze;)S(e[s][1]),s+=1}return u&&(d[f]=Kh(g,y,b,v,t)),d.join(` -`)}function kP(e,t){return e.map((r,n,o)=>{let a=r[1],i=n===0||n===o.length-1;switch(r[0]){case Xe:return U1(a,i,t);case ze:return z1(a,i,t);default:return K1(a,i,t)}}).join(` -`)}var cs=e=>e,G1=5,NP=0;function MP(){return{aAnnotation:"Expected",aColor:dr.green,aIndicator:"-",bAnnotation:"Received",bColor:dr.red,bIndicator:"+",changeColor:dr.inverse,changeLineTrailingSpaceColor:cs,commonColor:dr.dim,commonIndicator:" ",commonLineTrailingSpaceColor:cs,compareKeys:void 0,contextLines:G1,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:dr.yellow,printBasicPrototype:!1,truncateThreshold:NP,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:cs}}function BP(e){return e&&typeof e=="function"?e:void 0}function jP(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:G1}function dn(e={}){return{...MP(),...e,compareKeys:BP(e.compareKeys),contextLines:jP(e.contextLines)}}function wn(e){return e.length===1&&e[0].length===0}function HP(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Xe:t+=1;break;case ze:r+=1;break}}),{a:t,b:r}}function UP({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:a,includeChangeCounts:i,omitAnnotationLines:l},s){if(l)return"";let u="",c="";if(i){let g=String(s.a),b=String(s.b),y=n.length-e.length,v=" ".repeat(Math.max(0,y)),m=" ".repeat(Math.max(0,-y)),E=b.length-g.length,S=" ".repeat(Math.max(0,E)),x=" ".repeat(Math.max(0,-E));u=`${v} ${r} ${S}${g}`,c=`${m} ${a} ${x}${b}`}let d=`${r} ${e}${u}`,f=`${a} ${n}${c}`;return`${t(d)} -${o(f)} - -`}function df(e,t,r){return UP(r,HP(e))+(r.expand?kP(e,r):LP(e,r))+(t?r.truncateAnnotationColor(` -${r.truncateAnnotation}`):"")}function pl(e,t,r){let n=dn(r),[o,a]=W1(wn(e)?[]:e,wn(t)?[]:t,n);return df(o,a,n)}function zP(e,t,r,n,o){if(wn(e)&&wn(r)&&(e=[],r=[]),wn(t)&&wn(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return pl(e,t,o);let[a,i]=W1(r,n,o),l=0,s=0;return a.forEach(u=>{switch(u[0]){case Xe:u[1]=e[l],l+=1;break;case ze:u[1]=t[s],s+=1;break;default:u[1]=t[s],l+=1,s+=1}}),df(a,i,dn(o))}function W1(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,o=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),a=n?Math.min(e.length,o):e.length,i=n?Math.min(t.length,o):t.length,l=a!==e.length||i!==t.length,s=(f,g)=>e[f]===t[g],u=[],c=0,d=0;for(H1(a,i,s,(f,g,b)=>{for(;c!==g;c+=1)u.push(new we(Xe,e[c]));for(;d!==b;d+=1)u.push(new we(ze,t[d]));for(;f!==0;f-=1,c+=1,d+=1)u.push(new we(Te,t[d]))});c!==a;c+=1)u.push(new we(Xe,e[c]));for(;d!==i;d+=1)u.push(new we(ze,t[d]));return[u,l]}function Gh(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}function Wh(e){return e.includes(`\r -`)?`\r -`:` -`}function KP(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,o=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),a=e.length,i=t.length;if(n){let f=e.includes(` -`),g=t.includes(` -`),b=Wh(e),y=Wh(t),v=f?`${e.split(b,o).join(b)} -`:e,m=g?`${t.split(y,o).join(y)} -`:t;a=v.length,i=m.length}let l=a!==e.length||i!==t.length,s=(f,g)=>e[f]===t[g],u=0,c=0,d=[];return H1(a,i,s,(f,g,b)=>{u!==g&&d.push(new we(Xe,e.slice(u,g))),c!==b&&d.push(new we(ze,t.slice(c,b))),u=g+f,c=b+f,d.push(new we(Te,t.slice(b,c)))}),u!==a&&d.push(new we(Xe,e.slice(u))),c!==i&&d.push(new we(ze,t.slice(c))),[d,l]}function GP(e,t,r){return t.reduce((n,o)=>n+(o[0]===Te?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Vh=class{constructor(e,t){Ht(this,"op");Ht(this,"line");Ht(this,"lines");Ht(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new we(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new we(this.op,GP(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new we(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(` -`)){let r=t.split(` -`),n=r.length-1;r.forEach((o,a)=>{a{if(i===0){let l=new we(t,a);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else i{switch(a[0]){case Xe:r.align(a);break;case ze:n.align(a);break;default:o.align(a)}}),o.getLines()}function qP(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Te&&(o!==r||n[1]!==` -`))}return e.some(r=>r[0]===Te)}function YP(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(` -`)||t.includes(` -`),[o,a]=V1(n?`${e} -`:e,n?`${t} -`:t,!0,r);if(qP(o,n)){let i=dn(r),l=VP(o,i.changeColor);return df(l,a,i)}}return pl(e.split(` -`),t.split(` -`),r)}function V1(e,t,r,n){let[o,a]=KP(e,t,n);return TP(o),[o,a]}function Cc(e,t){let{commonColor:r}=dn(t);return r(e)}var{AsymmetricMatcher:XP,DOMCollection:JP,DOMElement:ZP,Immutable:QP,ReactElement:e3,ReactTestComponent:t3}=uf,q1=[t3,e3,ZP,JP,QP,XP,uf.Error],_c={maxDepth:20,plugins:q1},Y1={callToJSON:!1,maxDepth:8,plugins:q1};function r3(e,t,r){if(Object.is(e,t))return"";let n=Gh(e),o=n,a=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),a=o==="string"}if(o!==Gh(t)){let i=function(S){return S.length<=v?S:`${S.slice(0,v)}...`},{aAnnotation:l,aColor:s,aIndicator:u,bAnnotation:c,bColor:d,bIndicator:f}=dn(r),g=Tc(Y1,r),b=Xt(e,g),y=Xt(t,g),v=1e5;b=i(b),y=i(y);let m=`${s(`${u} ${l}:`)} -${b}`,E=`${d(`${f} ${c}:`)} -${y}`;return`${m} - -${E}`}if(!a)switch(n){case"string":return pl(e.split(` -`),t.split(` -`),r);case"boolean":case"number":return n3(e,t,r);case"map":return ds(qh(e),qh(t),r);case"set":return ds(Yh(e),Yh(t),r);default:return ds(e,t,r)}}function n3(e,t,r){let n=Xt(e,_c),o=Xt(t,_c);return n===o?"":pl(n.split(` -`),o.split(` -`),r)}function qh(e){return new Map(Array.from(e.entries()).sort())}function Yh(e){return new Set(Array.from(e.values()).sort())}function ds(e,t,r){let n,o=!1;try{let i=Tc(_c,r);n=Xh(e,t,i,r)}catch{o=!0}let a=Cc(j1,r);if(n===void 0||n===a){let i=Tc(Y1,r);n=Xh(e,t,i,r),n!==a&&!o&&(n=`${Cc(DP,r)} - -${n}`)}return n}function Tc(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=dn(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}function Xh(e,t,r,n){let o={...r,indent:0},a=Xt(e,o),i=Xt(t,o);if(a===i)return Cc(j1,n);{let l=Xt(e,r),s=Xt(t,r);return zP(l.split(` -`),s.split(` -`),a.split(` -`),i.split(` -`),n)}}var Jh=2e4;function Zh(e){return $c(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Qh(e,t){let r=$c(e),n=$c(t);return r===n&&(r==="Object"||r==="Array")}function o3(e,t,r){let{aAnnotation:n,bAnnotation:o}=dn(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=Jh&&e.length<=Jh&&t!==e){if(t.includes(` -`)||e.includes(` -`))return YP(t,e,r);let[u]=V1(t,e),c=u.some(b=>b[0]===Te),d=a3(n,o),f=d(n)+s3(eg(u,Xe,c)),g=d(o)+l3(eg(u,ze,c));return`${f} -${g}`}let a=Mh(t,{forceWritable:!0}),i=Mh(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:s}=X1(i,a);return r3(l,s,r)}function X1(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Qh(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),k1(t).forEach(o=>{let a=t[o],i=e[o];if(Zh(a))a.asymmetricMatch(i)&&(e[o]=a);else if(Zh(i))i.asymmetricMatch(a)&&(t[o]=i);else if(Qh(i,a)){let l=X1(i,a,r,n);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function a3(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var i3="·";function J1(e){return e.replace(/\s+$/gm,t=>i3.repeat(t.length))}function l3(e){return dr.red(J1(Go(e)))}function s3(e){return dr.green(J1(Go(e)))}function eg(e,t,r){return e.reduce((n,o)=>n+(o[0]===Te?o[1]:o[0]===t?r?dr.inverse(o[1]):o[1]:""),"")}var u3="@@__IMMUTABLE_RECORD__@@",c3="@@__IMMUTABLE_ITERABLE__@@";function d3(e){return e&&(e[c3]||e[u3])}var f3=Object.getPrototypeOf({});function tg(e){return e instanceof Error?`: ${e.message}`:typeof e=="string"?`: ${e}`:""}function Cr(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&Ca(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&Ca(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&Ca(()=>r.name??(r.name=e.name)),e.cause!=null&&Ca(()=>r.cause??(r.cause=Cr(e.cause,t)))),Cr(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return``;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return``;if(d3(e))return Cr(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${xP(e.sample)}`;if(typeof e.toJSON=="function")return Cr(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=Cr(n,t)}catch(a){r[o]=tg(a)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==f3;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=Cr(e[o],t)}catch(a){delete r[o],r[o]=tg(a)}}),n=Object.getPrototypeOf(n);return r}}function Ca(e){try{return e()}catch{}}function p3(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function Z1(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=o3(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Go(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Go(n.actual,10));try{typeof n.message=="string"&&(n.message=p3(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Z1(n.cause,t,r))}catch{}try{return Cr(n)}catch(o){return Cr(new Error(`Failed to fully serialize error: ${o==null?void 0:o.message} -Inner error message: ${n==null?void 0:n.message}`))}}const{once:h3}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:rg,SET_CURRENT_STORY:g3,STORY_RENDER_PHASE_CHANGED:m3}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:xt}=__STORYBOOK_MODULE_GLOBAL__;var fs=globalThis.__STORYBOOK_ADDONS_PREVIEW,b3=new Error("This function ran after the play function completed. Did you forget to `await` it?"),ng=e=>Object.prototype.toString.call(e)==="[object Object]",y3=e=>Object.prototype.toString.call(e)==="[object Module]",E3=e=>{if(!ng(e)&&!y3(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!ng(t)},v3=e=>{try{return new e.constructor}catch{return{}}},ps=()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),og=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},S3=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{var l,s;try{this.state=((s=(l=xt.window)==null?void 0:l.parent)==null?void 0:s.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__)||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{xt.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:l,renderPhase:s,isPlaying:u=!0,isDebugging:c=!1})=>{let d=this.getState(l);this.setState(l,{...ps(),...og(d,c),renderPhase:s||d.renderPhase,shadowCalls:c?d.shadowCalls:[],chainedCallIds:c?d.chainedCallIds:new Set,playUntil:c?d.playUntil:void 0,isPlaying:u,isDebugging:c}),this.sync(l)},t=l=>({storyId:s,playUntil:u})=>{this.getState(s).isDebugging||this.setState(s,({calls:d})=>({calls:[],shadowCalls:d.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let c=this.getLog(s);this.setState(s,({shadowCalls:d})=>{var g;if(u||!c.length)return{playUntil:u};let f=d.findIndex(b=>b.id===c[0].callId);return{playUntil:(g=d.slice(0,f).filter(b=>{var y;return b.interceptable&&!((y=b.ancestors)!=null&&y.length)}).slice(-1)[0])==null?void 0:g.id}}),l.emit(rg,{storyId:s,isDebugging:!0})},r=l=>({storyId:s})=>{var d;let u=this.getLog(s).filter(f=>{var g;return!((g=f.ancestors)!=null&&g.length)}),c=u.reduceRight((f,g,b)=>f>=0||g.status==="waiting"?f:b,-1);t(l)({storyId:s,playUntil:(d=u[c-1])==null?void 0:d.callId})},n=l=>({storyId:s,callId:u})=>{var y;let{calls:c,shadowCalls:d,resolvers:f}=this.getState(s),g=c.find(({id:v})=>v===u),b=d.find(({id:v})=>v===u);if(!g&&b&&Object.values(f).length>0){let v=(y=this.getLog(s).find(m=>m.status==="waiting"))==null?void 0:y.callId;b.id!==v&&this.setState(s,{playUntil:b.id}),Object.values(f).forEach(m=>m())}else t(l)({storyId:s,playUntil:u})},o=l=>({storyId:s})=>{var c;let{resolvers:u}=this.getState(s);if(Object.values(u).length>0)Object.values(u).forEach(d=>d());else{let d=(c=this.getLog(s).find(f=>f.status==="waiting"))==null?void 0:c.callId;d?t(l)({storyId:s,playUntil:d}):a({storyId:s})}},a=({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(s=>s())},i=({storyId:l,newPhase:s})=>{let{isDebugging:u}=this.getState(l);if(s==="preparing"&&u)return e({storyId:l,renderPhase:s,isDebugging:u});if(s==="playing")return e({storyId:l,renderPhase:s,isDebugging:u});s==="played"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1,isDebugging:!1}):s==="errored"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1}):s==="aborted"?this.setState(l,{renderPhase:s,isLocked:!0,isPlaying:!1}):this.setState(l,{renderPhase:s}),this.sync(l)};fs&&fs.ready().then(()=>{this.channel=fs.getChannel(),this.channel.on(rg,e),this.channel.on(m3,i),this.channel.on(g3,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(or.START,t(this.channel)),this.channel.on(or.BACK,r(this.channel)),this.channel.on(or.GOTO,n(this.channel)),this.channel.on(or.NEXT,o(this.channel)),this.channel.on(or.END,a)})}getState(e){return this.state[e]||ps()}setState(e,t){if(e){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},this.updateParentWindowState()}}cleanup(){var t;this.state=Object.entries(this.state).reduce((r,[n,o])=>{let a=og(o);return a&&(r[n]=Object.assign(ps(),a)),r},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};(t=this.channel)==null||t.emit(or.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((a,i)=>{n[i]=a});let o=new Set;return n.reduceRight((a,i)=>(i.args.forEach(l=>{l!=null&&l.__callId__&&o.add(l.__callId__)}),i.path.forEach(l=>{l.__callId__&&o.add(l.__callId__)}),(i.interceptable||i.exception)&&!o.has(i.id)&&(a.unshift({callId:i.id,status:i.status,ancestors:i.ancestors}),o.add(i.id)),a),[])}instrument(e,t,r=0){if(!E3(e))return e;let{mutate:n=!1,path:o=[]}=t,a=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,a.reduce((i,l)=>{let s=$3(e,l);if(typeof(s==null?void 0:s.get)=="function"){if(s.configurable){let c=()=>{var d,f;return(f=(d=s==null?void 0:s.get)==null?void 0:d.bind(e))==null?void 0:f()};Object.defineProperty(i,l,{get:()=>this.instrument(c(),{...t,path:o.concat(l)},r)})}return i}let u=e[l];return typeof u!="function"?(i[l]=this.instrument(u,{...t,path:o.concat(l)},r),i):"__originalFn__"in u&&typeof u.__originalFn__=="function"?(i[l]=u,i):(i[l]=(...c)=>this.track(l,u,e,c,t),i[l].__originalFn__=u,Object.defineProperty(i[l],"name",{value:l,writable:!1}),Object.keys(u).length>0&&Object.assign(i[l],this.instrument({...u},{...t,path:o.concat(l)},r)),i)},n?e:v3(e))}track(e,t,r,n,o){var y,v,m,E;let a=((y=n==null?void 0:n[0])==null?void 0:y.__storyId__)||((E=(m=(v=xt.__STORYBOOK_PREVIEW__)==null?void 0:v.selectionStore)==null?void 0:m.selection)==null?void 0:E.storyId),{cursor:i,ancestors:l}=this.getState(a);this.setState(a,{cursor:i+1});let s=`${l.slice(-1)[0]||a} [${i}] ${e}`,{path:u=[],intercept:c=!1,retain:d=!1}=o,f=typeof c=="function"?c(e,u):c,g={id:s,cursor:i,storyId:a,ancestors:l,path:u,method:e,args:n,interceptable:f,retain:d},b=(f&&!l.length?this.intercept:this.invoke).call(this,t,r,g,o);return this.instrument(b,{...o,mutate:!0,path:[{__callId__:g.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:a,playUntil:i}=this.getState(r.storyId),l=o.has(r.id);return!a||l||i?(i===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(s=>{this.setState(r.storyId,({resolvers:u})=>({isLocked:!1,resolvers:{...u,[r.id]:s}}))}).then(()=>(this.setState(r.storyId,s=>{let{[r.id]:u,...c}=s.resolvers;return{isLocked:!0,resolvers:c}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:a}=this.getState(r.storyId),i=25,l=(c,d,f)=>{var g,b,y;if(f.includes(c))return"[Circular]";if(f=[...f,c],d>i)return"...";if(o.has(c))return o.get(c);if(c instanceof Array)return c.map(v=>l(v,++d,f));if(c instanceof Date)return{__date__:{value:c.toISOString()}};if(c instanceof Error){let{name:v,message:m,stack:E}=c;return{__error__:{name:v,message:m,stack:E}}}if(c instanceof RegExp){let{flags:v,source:m}=c;return{__regexp__:{flags:v,source:m}}}if(c instanceof((g=xt.window)==null?void 0:g.HTMLElement)){let{prefix:v,localName:m,id:E,classList:S,innerText:x}=c,_=Array.from(S);return{__element__:{prefix:v,localName:m,id:E,classNames:_,innerText:x}}}return typeof c=="function"?{__function__:{name:"getMockName"in c?c.getMockName():c.name}}:typeof c=="symbol"?{__symbol__:{description:c.description}}:typeof c=="object"&&((b=c==null?void 0:c.constructor)!=null&&b.name)&&((y=c==null?void 0:c.constructor)==null?void 0:y.name)!=="Object"?{__class__:{name:c.constructor.name}}:Object.prototype.toString.call(c)==="[object Object]"?Object.fromEntries(Object.entries(c).map(([v,m])=>[v,l(m,++d,f)])):c},s={...r,args:r.args.map(c=>l(c,0,[]))};r.path.forEach(c=>{c!=null&&c.__callId__&&this.setState(r.storyId,({chainedCallIds:d})=>({chainedCallIds:new Set(Array.from(d).concat(c.__callId__))}))});let u=c=>{var d;if(c instanceof Error){let{name:f,message:g,stack:b,callId:y=r.id}=c,{showDiff:v=void 0,diff:m=void 0,actual:E=void 0,expected:S=void 0}=c.name==="AssertionError"?Z1(c):c,x={name:f,message:g,stack:b,callId:y,showDiff:v,diff:m,actual:E,expected:S};if(this.update({...s,status:"error",exception:x}),this.setState(r.storyId,_=>({callRefsByResult:new Map([...Array.from(_.callRefsByResult.entries()),[c,{__callId__:r.id,retain:r.retain}]])})),(d=r.ancestors)==null?void 0:d.length)throw Object.prototype.hasOwnProperty.call(c,"callId")||Object.defineProperty(c,"callId",{value:r.id}),c}throw c};try{if(a==="played"&&!r.retain)throw b3;let c=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||w3(f)||Object.keys(f).length?f:(...g)=>{let{cursor:b,ancestors:y}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...y,r.id]});let v=()=>this.setState(r.storyId,{cursor:b,ancestors:y}),m=!1;try{let E=f(...g);return E instanceof Promise?(m=!0,E.finally(v)):E}finally{m||v()}}),d=e.apply(t,c);return d&&["object","function","symbol"].includes(typeof d)&&this.setState(r.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),this.update({...s,status:d instanceof Promise?"active":"done"}),d instanceof Promise?d.then(f=>(this.update({...s,status:"done"}),f),u):d}catch(c){return u(c)}}update(e){var t;(t=this.channel)==null||t.emit(or.CALL,e),this.setState(e.storyId,({calls:r})=>{let n=r.concat(e).reduce((o,a)=>Object.assign(o,{[a.id]:a}),{});return{calls:Object.values(n).sort((o,a)=>o.id.localeCompare(a.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{var u,c,d;let{isLocked:r,isPlaying:n}=this.getState(e),o=this.getLog(e),a=(u=o.filter(({ancestors:f})=>!f.length).find(f=>f.status==="waiting"))==null?void 0:u.callId,i=o.some(f=>f.status==="active");if(this.detached||r||i||o.length===0){let f={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};(c=this.channel)==null||c.emit(or.SYNC,f);return}let l=o.some(f=>f.status==="done"||f.status==="error"),s={controlStates:{detached:this.detached,start:l,back:l,goto:!0,next:n,end:n},logItems:o,pausedAt:a};(d=this.channel)==null||d.emit(or.SYNC,s)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function x3(e,t={}){var r,n,o,a,i,l,s,u;try{let c=!1,d=!1;return(o=(n=(r=xt.window)==null?void 0:r.location)==null?void 0:n.search)!=null&&o.includes("instrument=true")?c=!0:(l=(i=(a=xt.window)==null?void 0:a.location)==null?void 0:i.search)!=null&&l.includes("instrument=false")&&(d=!0),((s=xt.window)==null?void 0:s.parent)===xt.window&&!c||d?e:(xt.window&&!xt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(xt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new S3),((u=xt.window)==null?void 0:u.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(c){return h3.warn(c),e}}function $3(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function w3(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var C3=Je({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return(function i(l,s,u){var c,d,f,g=t.call(l),b=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(u.indexOf(l)>-1&&u.indexOf(s)>-1)return!0;if(u.push(l,s),g!=b||(c=n(l),d=n(s),c.length!=d.length||c.some(function(y){return!i(l[y],s[y],u)})))return!1;switch(g.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":c=l.entries(),d=s.entries();do if(!i((f=c.next()).value,d.next().value,u))return!1;while(!f.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=s.length)return!1;for(f=0;fe.map(t=>typeof t<"u").filter(Boolean).length,_3=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(Q1([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,ag.isEqual)(t,n);if(typeof o<"u")return!(0,ag.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},T3=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(Q1([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return _3(e.if,a)},A3={};We(A3,{argsEnhancers:()=>D3});var eE=(e,t)=>typeof t[e]>"u"&&!(e in t),O3=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let a=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([i])=>!!a.test(i)).reduce((i,[l,s])=>(eE(l,t)&&(i[l]=ef(l,{implicit:!0,id:n})),i),{})},R3=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n!=null&&n.disable||!r?{}:Object.entries(r).filter(([o,a])=>!!a.action).reduce((o,[a,i])=>(eE(a,t)&&(o[a]=ef(typeof i.action=="string"?i.action:a)),o),{})},D3=[R3,O3],P3={};We(P3,{loaders:()=>L3});const{onMockCall:F3}=__STORYBOOK_MODULE_TEST__;var ig=!1,I3=e=>{var r;let{parameters:t}=e;(r=t==null?void 0:t.actions)!=null&&r.disable||ig||(F3((n,o)=>{let a=n.getMockName();a!=="spy"&&a!=="vi.fn()"&&(!/^next\/.*::/.test(a)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(i=>a.startsWith(i)))&&ef(a)(o)}),ig=!0)},L3=[I3];const{useEffect:lg}=__STORYBOOK_MODULE_PREVIEW_API__;var{document:It}=globalThis,k3=()=>{var e;return globalThis!=null&&globalThis.matchMedia?!!((e=globalThis.matchMedia("(prefers-reduced-motion: reduce)"))!=null&&e.matches):!1},sg=e=>{(Array.isArray(e)?e:[e]).forEach(N3)},N3=e=>{if(!It)return;let t=It.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},M3=(e,t)=>{if(!It)return;let r=It.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=It.createElement("style");n.setAttribute("id",e),n.innerHTML=t,It.head.appendChild(n)}},B3=(e,t,r)=>{var o;if(!It)return;let n=It.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let a=It.createElement("style");a.setAttribute("id",e),a.innerHTML=t;let i=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,l=It.getElementById(i);l?(o=l.parentElement)==null||o.insertBefore(a,l):It.head.appendChild(a)}},j3={cellSize:100,cellAmount:10,opacity:.8},ug="addon-backgrounds",cg="addon-backgrounds-grid",H3=k3()?"":"transition: background-color 0.3s;",U3=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:a}=t,{options:i=dD,disable:l,grid:s=j3}=n[uh]||{},u=r[uh]||{},c=typeof u=="string"?u:u==null?void 0:u.value,d=c?i[c]:void 0,f=typeof d=="string"?d:(d==null?void 0:d.value)||"transparent",g=typeof u=="string"?!1:u.grid||!1,b=!!d&&!l,y=o==="docs"?`#anchor--${a} .docs-story, #anchor--primary--${a} .docs-story`:".sb-show-main",v=o==="docs"?`#anchor--${a} .docs-story, #anchor--primary--${a} .docs-story`:".sb-show-main",m=n.layout===void 0||n.layout==="padded",E=o==="docs"?20:m?16:0,{cellAmount:S,cellSize:x,opacity:_,offsetX:T=E,offsetY:C=E}=s,A=o==="docs"?`${ug}-docs-${a}`:`${ug}-color`,D=o==="docs"?a:null;lg(()=>{let $=` - ${y} { - background: ${f} !important; - ${H3} - }`;if(!b){sg(A);return}B3(A,$,D)},[y,A,D,b,f]);let I=o==="docs"?`${cg}-docs-${a}`:`${cg}`;return lg(()=>{if(!g){sg(I);return}let $=[`${x*S}px ${x*S}px`,`${x*S}px ${x*S}px`,`${x}px ${x}px`,`${x}px ${x}px`].join(", "),N=` - ${v} { - background-size: ${$} !important; - background-position: ${T}px ${C}px, ${T}px ${C}px, ${T}px ${C}px, ${T}px ${C}px !important; - background-blend-mode: difference !important; - background-image: linear-gradient(rgba(130, 130, 130, ${_}) 1px, transparent 1px), - linear-gradient(90deg, rgba(130, 130, 130, ${_}) 1px, transparent 1px), - linear-gradient(rgba(130, 130, 130, ${_/2}) 1px, transparent 1px), - linear-gradient(90deg, rgba(130, 130, 130, ${_/2}) 1px, transparent 1px) !important; - } - `;M3(I,N)},[S,x,v,I,g,T,C,_]),e()},qb;(qb=globalThis.FEATURES)!=null&&qb.backgrounds;var{step:SY}=x3({step:async(e,t,r)=>t(r)},{intercept:!0});const{addons:_a}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:z3}=__STORYBOOK_MODULE_CORE_EVENTS__;var dg={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},K3="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),ke=(e,t={},r)=>{let n=K3.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,a])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",a),n.addEventListener("keydown",i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),a())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",a),o==="onMouseLeave"&&n.addEventListener("mouseleave",a)):n.setAttribute(o,a)}),r==null||r.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},Ta=e=>dg[e]&&ke("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},dg[e].map(t=>ke("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),G3=e=>{if("elements"in e){let{elements:n,color:o,style:a}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${a} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},W3=e=>e instanceof Function,bo=new Map,Nr=new Map,Aa=new Map,ir=e=>{let t=Symbol();return Nr.set(t,[]),bo.set(t,e),{get:()=>bo.get(t),set:r=>{var a;let n=bo.get(t),o=W3(r)?r(n):r;o!==n&&(bo.set(t,o),(a=Nr.get(t))==null||a.forEach(i=>{var l;(l=Aa.get(i))==null||l(),Aa.set(i,i(o))}))},subscribe:r=>{var n;return(n=Nr.get(t))==null||n.push(r),()=>{let o=Nr.get(t);o&&Nr.set(t,o.filter(a=>a!==r))}},teardown:()=>{var r;(r=Nr.get(t))==null||r.forEach(n=>{var o;(o=Aa.get(n))==null||o(),Aa.delete(n)}),Nr.delete(t),bo.delete(t)}}},fg=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let a of n.selectors){let i=[...document.querySelectorAll(`:is(${a}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...(t==null?void 0:t.querySelectorAll(a))||[]];for(let l of i){let s=r.get(l);(!s||s.priority<=o)&&r.set(l,{...n,priority:o,selectors:Array.from(new Set(((s==null?void 0:s.selectors)||[]).concat(a)))})}}}return r},V3=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i}])=>{let{top:l,left:s,width:u,height:c}=t.getBoundingClientRect(),{position:d}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i,top:d==="fixed"?l:l+window.scrollY,left:d==="fixed"?s:s+window.scrollX,width:u,height:c}}).sort((t,r)=>r.width*r.height-t.width*t.height),pg=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return(r==null?void 0:r.top)&&(r==null?void 0:r.left)&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},hg=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:a,height:i}=e;i<$r&&(o=o-Math.round(($r-i)/2),i=$r),a<$r&&(n=n-Math.round(($r-a)/2),a=$r),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:l,y:s}=r;return l>=n&&l<=n+a&&s>=o&&s<=o+i},q3=(e,t,r={})=>{let{x:n,y:o}=t,{margin:a=5,topOffset:i=0,centered:l=!1}=r,{scrollX:s,scrollY:u,innerHeight:c,innerWidth:d}=window,f=Math.min(e.style.position==="fixed"?o-u:o,c-e.clientHeight-a-i+u),g=l?e.clientWidth/2:0,b=e.style.position==="fixed"?Math.max(Math.min(n-s,d-g-a),g+a):Math.max(Math.min(n,d-g-a+s),g+a+s);Object.assign(e.style,{...b!==n&&{left:`${b}px`},...f!==o&&{top:`${f}px`}})},gg=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},Y3=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},X3=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),Ee="storybook-highlights-menu",mg="storybook-highlights-root",J3="storybook-root",Z3=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=ir([]),n=ir(new Map),o=ir([]),a=ir(),i=ir(),l=ir([]),s=ir([]),u=ir(),c=ir(),d=t.getElementById(mg);r.subscribe(()=>{d||(d=ke("div",{id:mg}),t.body.appendChild(d))}),r.subscribe(C=>{let A=t.getElementById(J3);if(!A)return;n.set(fg(C));let D=new MutationObserver(()=>n.set(fg(C)));return D.observe(A,{subtree:!0,childList:!0}),()=>{D.disconnect()}}),n.subscribe(C=>{let A=()=>requestAnimationFrame(()=>o.set(V3(C))),D=new ResizeObserver(A);D.observe(t.body),Array.from(C.keys()).forEach($=>D.observe($));let I=Array.from(t.body.querySelectorAll("*")).filter($=>{let{overflow:N,overflowX:B,overflowY:P}=window.getComputedStyle($);return["auto","scroll"].some(k=>[N,B,P].includes(k))});return I.forEach($=>$.addEventListener("scroll",A)),()=>{D.disconnect(),I.forEach($=>$.removeEventListener("scroll",A))}}),n.subscribe(C=>{let A=Array.from(C.keys()).filter(({style:I})=>I.position==="sticky"),D=()=>requestAnimationFrame(()=>{o.set(I=>I.map($=>{if(A.includes($.element)){let{top:N,left:B}=$.element.getBoundingClientRect();return{...$,top:N+window.scrollY,left:B+window.scrollX}}return $}))});return t.addEventListener("scroll",D),()=>t.removeEventListener("scroll",D)}),n.subscribe(C=>{l.set(A=>A.filter(({element:D})=>C.has(D)))}),l.subscribe(C=>{C.length?(c.set(A=>C.some(D=>D.element===(A==null?void 0:A.element))?A:void 0),u.set(A=>C.some(D=>D.element===(A==null?void 0:A.element))?A:void 0)):(c.set(void 0),u.set(void 0),a.set(void 0))});let f=new Map(new Map);r.subscribe(C=>{C.forEach(({keyframes:A})=>{if(A){let D=f.get(A);D||(D=t.createElement("style"),D.setAttribute("data-highlight","keyframes"),f.set(A,D),t.head.appendChild(D)),D.innerHTML=A}}),f.forEach((A,D)=>{C.some(I=>I.keyframes===D)||(A.remove(),f.delete(D))})});let g=new Map(new Map);o.subscribe(C=>{C.forEach(A=>{let D=g.get(A.element);if(d&&!D){let I={popover:"manual","data-highlight-dimensions":`w${A.width.toFixed(0)}h${A.height.toFixed(0)}`,"data-highlight-coordinates":`x${A.left.toFixed(0)}y${A.top.toFixed(0)}`};D=d.appendChild(ke("div",I,[ke("div")])),g.set(A.element,D)}}),g.forEach((A,D)=>{C.some(({element:I})=>I===D)||(A.remove(),g.delete(D))})}),o.subscribe(C=>{let A=C.filter(I=>I.menu);if(!A.length)return;let D=I=>{requestAnimationFrame(()=>{let $=t.getElementById(Ee),N={x:I.pageX,y:I.pageY};if($&&!pg($,N)){let B=A.filter(P=>{let k=g.get(P.element);return hg(P,k,N)});a.set(B.length?N:void 0),l.set(B)}})};return t.addEventListener("click",D),()=>t.removeEventListener("click",D)});let b=()=>{let C=t.getElementById(Ee),A=i.get();!A||C&&pg(C,A)||s.set(D=>{let I=o.get().filter(P=>{let k=g.get(P.element);return hg(P,k,A)}),$=D.filter(P=>I.includes(P)),N=I.filter(P=>!D.includes(P)),B=D.length-$.length;return N.length||B?[...$,...N]:D})};i.subscribe(b),o.subscribe(b);let y=()=>{let C=c.get(),A=C?[C]:l.get(),D=A.length===1?A[0]:u.get(),I=a.get()!==void 0;o.get().forEach($=>{var B;let N=g.get($.element);if(N){let P=D===$,k=I?D?P:A.includes($):(B=s.get())==null?void 0:B.includes($);Object.assign(N.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...$.styles,...k?$.hoverStyles:{},...P?$.focusStyles:{},position:getComputedStyle($.element).position==="fixed"?"fixed":"absolute",zIndex:dh-10,top:`${$.top}px`,left:`${$.left}px`,width:`${$.width}px`,height:`${$.height}px`,margin:0,padding:0,cursor:$.menu&&k?"pointer":"default",pointerEvents:$.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(N.children[0].style,{width:"100%",height:"100%",minHeight:`${$r}px`,minWidth:`${$r}px`,boxSizing:"content-box",padding:N.style.outlineWidth||"0px"}),gg(N)}})};o.subscribe(y),l.subscribe(y),s.subscribe(y),u.subscribe(y),c.subscribe(y);let v=()=>{var $;if(!d)return;let C=t.getElementById(Ee);if(C)C.innerHTML="";else{let N={id:Ee,popover:"manual"};C=d.appendChild(ke("div",N)),d.appendChild(ke("style",{},[` - #${Ee} { - position: absolute; - z-index: ${dh}; - width: 300px; - padding: 0px; - margin: 15px 0 0 0; - transform: translateX(-50%); - font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 12px; - background: white; - border: none; - border-radius: 6px; - box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1); - color: #2E3438; - } - #${Ee} ul { - list-style: none; - margin: 0; - padding: 0; - } - #${Ee} > ul { - max-height: 300px; - overflow-y: auto; - padding: 4px 0; - } - #${Ee} li { - padding: 0 4px; - margin: 0; - } - #${Ee} li > :not(ul) { - display: flex; - padding: 8px; - margin: 0; - align-items: center; - gap: 8px; - border-radius: 4px; - } - #${Ee} button { - width: 100%; - border: 0; - background: transparent; - color: inherit; - text-align: left; - font-family: inherit; - font-size: inherit; - } - #${Ee} button:focus-visible { - outline-color: #029CFD; - } - #${Ee} button:hover { - background: rgba(2, 156, 253, 0.07); - color: #029CFD; - cursor: pointer; - } - #${Ee} li code { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - line-height: 16px; - font-size: 11px; - } - #${Ee} li svg { - flex-shrink: 0; - margin: 1px; - color: #73828C; - } - #${Ee} li > button:hover svg, #${Ee} li > button:focus-visible svg { - color: #029CFD; - } - #${Ee} .element-list li svg { - display: none; - } - #${Ee} li.selectable svg, #${Ee} li.selected svg { - display: block; - } - #${Ee} .menu-list { - border-top: 1px solid rgba(38, 85, 115, 0.15); - } - #${Ee} .menu-list > li:not(:last-child) { - padding-bottom: 4px; - margin-bottom: 4px; - border-bottom: 1px solid rgba(38, 85, 115, 0.15); - } - #${Ee} .menu-items, #${Ee} .menu-items li { - padding: 0; - } - #${Ee} .menu-item { - display: flex; - } - #${Ee} .menu-item-content { - display: flex; - flex-direction: column; - flex-grow: 1; - } - `]))}let A=c.get(),D=A?[A]:l.get();if(D.length&&(C.style.position=getComputedStyle(D[0].element).position==="fixed"?"fixed":"absolute",C.appendChild(ke("ul",{class:"element-list"},D.map(N=>{var w;let B=D.length>1&&!!((w=N.menu)!=null&&w.some(O=>O.some(F=>!F.selectors||F.selectors.some(M=>N.selectors.includes(M))))),P=B?{class:"selectable",onClick:()=>c.set(N),onMouseEnter:()=>u.set(N),onMouseLeave:()=>u.set(void 0)}:A?{class:"selected",onClick:()=>c.set(void 0)}:{},k=B||A;return ke("li",P,[ke(k?"button":"div",k?{type:"button"}:{},[A?Ta("chevronLeft"):null,ke("code",{},[N.element.outerHTML]),B?Ta("chevronRight"):null])])})))),c.get()||l.get().length===1){let N=c.get()||l.get()[0],B=($=N.menu)==null?void 0:$.filter(P=>P.some(k=>!k.selectors||k.selectors.some(w=>N.selectors.includes(w))));B!=null&&B.length&&C.appendChild(ke("ul",{class:"menu-list"},B.map(P=>ke("li",{},[ke("ul",{class:"menu-items"},P.map(({id:k,title:w,description:O,iconLeft:F,iconRight:M,clickEvent:R})=>{let j=R&&(()=>e.emit(R,k,X3(N)));return ke("li",{},[ke(j?"button":"div",j?{class:"menu-item",type:"button",onClick:j}:{class:"menu-item"},[F?Ta(F):null,ke("div",{class:"menu-item-content"},[ke(O?"strong":"span",{},[w]),O&&ke("span",{},[O])]),M?Ta(M):null])])}))]))))}let I=a.get();I?(Object.assign(C.style,{display:"block",left:`${C.style.position==="fixed"?I.x-window.scrollX:I.x}px`,top:`${C.style.position==="fixed"?I.y-window.scrollY:I.y}px`}),gg(C),requestAnimationFrame(()=>q3(C,I,{topOffset:15,centered:!0}))):(Y3(C),Object.assign(C.style,{display:"none"}))};l.subscribe(v),c.subscribe(v);let m=C=>{let A=G3(C);r.set(D=>{var $;let I=A.id?D.filter(N=>N.id!==A.id):D;return($=A.selectors)!=null&&$.length?[...I,A]:I})},E=C=>{C&&r.set(A=>A.filter(D=>D.id!==C))},S=()=>{r.set([]),n.set(new Map),o.set([]),a.set(void 0),i.set(void 0),l.set([]),s.set([]),u.set(void 0),c.set(void 0)},x,_=(C,A)=>{let D="scrollIntoView-highlight";clearTimeout(x),E(D);let I=t.querySelector(C);if(!I){console.warn(`Cannot scroll into view: ${C} not found`);return}I.scrollIntoView({behavior:"smooth",block:"center",...A});let $=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(N=>[...N,{id:D,priority:1e3,selectors:[C],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${$} 3s linear forwards`},keyframes:`@keyframes ${$} { - 0% { outline: 2px solid #1EA7FD; } - 20% { outline: 2px solid #1EA7FD00; } - 40% { outline: 2px solid #1EA7FD; } - 60% { outline: 2px solid #1EA7FD00; } - 80% { outline: 2px solid #1EA7FD; } - 100% { outline: 2px solid #1EA7FD00; } - }`}]),x=setTimeout(()=>E(D),3500)},T=C=>{requestAnimationFrame(()=>i.set({x:C.pageX,y:C.pageY}))};t.body.addEventListener("mousemove",T),e.on(fD,m),e.on(pD,E),e.on(hD,S),e.on(gD,_),e.on(z3,({newPhase:C})=>{C==="loading"&&S()})},Yb;(Yb=globalThis==null?void 0:globalThis.FEATURES)!=null&&Yb.highlight&&(_a!=null&&_a.ready)&&_a.ready().then(Z3);const{useEffect:bg}=__STORYBOOK_MODULE_PREVIEW_API__,{global:wi}=__STORYBOOK_MODULE_GLOBAL__;function tE(){let e=wi.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function Q3(){let e=wi.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");vc(t!=null);let{width:r,height:n}=tE();return Ac(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",wi.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function Ac(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=wi.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var Ne={};function eF(){Ne.canvas||(Ne=Q3())}function rE(){Ne.context&&Ne.context.clearRect(0,0,Ne.width??0,Ne.height??0)}function tF(e){rE(),e(Ne.context)}function rF(){vc(Ne.canvas,"Canvas should exist in the state."),vc(Ne.context,"Context should exist in the state."),Ac(Ne.canvas,Ne.context,{width:0,height:0});let{width:e,height:t}=tE();Ac(Ne.canvas,Ne.context,{width:e,height:t}),Ne.width=e,Ne.height=t}function nF(){var e;Ne.canvas&&(rE(),(e=Ne.canvas.parentNode)==null||e.removeChild(Ne.canvas),Ne={})}const{global:Ft}=__STORYBOOK_MODULE_GLOBAL__;var bn={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},fr=6;function yg(e,{x:t,y:r,w:n,h:o,r:a}){t=t-n/2,r=r-o/2,n<2*a&&(a=n/2),o<2*a&&(a=o/2),e.beginPath(),e.moveTo(t+a,r),e.arcTo(t+n,r,t+n,r+o,a),e.arcTo(t+n,r+o,t,r+o,a),e.arcTo(t,r+o,t,r,a),e.arcTo(t,r,t+n,r,a),e.closePath()}function oF(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom,u=i+r.left+t.left,c=a+r.top+t.top;return e==="top"?u+=l/2:e==="right"?(u+=l,c+=s/2):e==="bottom"?(u+=l/2,c+=s):e==="left"?c+=s/2:e==="center"&&(u+=l/2,c+=s/2),{x:u,y:c}}function aF(e,t,{margin:r,border:n,padding:o},a,i){let l=f=>0,s=0,u=0,c=i?1:.5,d=i?a*2:0;return e==="padding"?l=f=>o[f]*c+d:e==="border"?l=f=>o[f]+n[f]*c+d:e==="margin"&&(l=f=>o[f]+n[f]+r[f]*c+d),t==="top"?u=-l("top"):t==="right"?s=l("right"):t==="bottom"?u=l("bottom"):t==="left"&&(s=-l("left")),{offsetX:s,offsetY:u}}function iF(e,t){return Math.abs(e.x-t.x){let l=n&&a.position==="center"?cF(e,t,a):sF(e,t,a,o[i-1],n);o[i]=l})}function dF(e,t,r,n){let o=r.reduce((a,i)=>{var l;return Object.prototype.hasOwnProperty.call(a,i.position)||(a[i.position]=[]),(l=a[i.position])==null||l.push(i),a},{});o.top&&yo(e,t,o.top,n),o.right&&yo(e,t,o.right,n),o.bottom&&yo(e,t,o.bottom,n),o.left&&yo(e,t,o.left,n),o.center&&yo(e,t,o.center,n)}var hl={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},Eg=30;function vt(e){return parseInt(e.replace("px",""),10)}function Cn(e){return Number.isInteger(e)?e:e.toFixed(2)}function ff(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function fF(e){let t={top:Ft.window.scrollY,bottom:Ft.window.scrollY+Ft.window.innerHeight,left:Ft.window.scrollX,right:Ft.window.scrollX+Ft.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}function pF(e){let t=Ft.getComputedStyle(e),{top:r,left:n,right:o,bottom:a,width:i,height:l}=e.getBoundingClientRect(),{marginTop:s,marginBottom:u,marginLeft:c,marginRight:d,paddingTop:f,paddingBottom:g,paddingLeft:b,paddingRight:y,borderBottomWidth:v,borderTopWidth:m,borderLeftWidth:E,borderRightWidth:S}=t;r=r+Ft.window.scrollY,n=n+Ft.window.scrollX,a=a+Ft.window.scrollY,o=o+Ft.window.scrollX;let x={top:vt(s),bottom:vt(u),left:vt(c),right:vt(d)},_={top:vt(f),bottom:vt(g),left:vt(b),right:vt(y)},T={top:vt(m),bottom:vt(v),left:vt(E),right:vt(S)},C={top:r-x.top,bottom:a+x.bottom,left:n-x.left,right:o+x.right};return{margin:x,padding:_,border:T,top:r,left:n,bottom:a,right:o,width:i,height:l,extremities:C,floatingAlignment:fF(C)}}function hF(e,{margin:t,width:r,height:n,top:o,left:a,bottom:i,right:l}){let s=n+t.bottom+t.top;e.fillStyle=hl.margin,e.fillRect(a,o-t.top,r,t.top),e.fillRect(l,o-t.top,t.right,s),e.fillRect(a,i,r,t.bottom),e.fillRect(a-t.left,o-t.top,t.left,s);let u=[{type:"margin",text:Cn(t.top),position:"top"},{type:"margin",text:Cn(t.right),position:"right"},{type:"margin",text:Cn(t.bottom),position:"bottom"},{type:"margin",text:Cn(t.left),position:"left"}];return ff(u)}function gF(e,{padding:t,border:r,width:n,height:o,top:a,left:i,bottom:l,right:s}){let u=n-r.left-r.right,c=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=hl.padding,e.fillRect(i+r.left,a+r.top,u,t.top),e.fillRect(s-t.right-r.right,a+t.top+r.top,t.right,c),e.fillRect(i+r.left,l-t.bottom-r.bottom,u,t.bottom),e.fillRect(i+r.left,a+t.top+r.top,t.left,c);let d=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return ff(d)}function mF(e,{border:t,width:r,height:n,top:o,left:a,bottom:i,right:l}){let s=n-t.top-t.bottom;e.fillStyle=hl.border,e.fillRect(a,o,r,t.top),e.fillRect(a,i-t.bottom,r,t.bottom),e.fillRect(a,o+t.top,t.left,s),e.fillRect(l-t.right,o+t.top,t.right,s);let u=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return ff(u)}function bF(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=hl.content,e.fillRect(i+r.left+t.left,a+r.top+t.top,l,s),[{type:"content",position:"center",text:`${Cn(l)} x ${Cn(s)}`}]}function yF(e){return t=>{if(e&&t){let r=pF(e),n=hF(t,r),o=gF(t,r),a=mF(t,r),i=bF(t,r),l=r.width<=Eg*3||r.height<=Eg;dF(t,r,[...i,...o,...a,...n],l)}}}function EF(e){tF(yF(e))}const{global:vF}=__STORYBOOK_MODULE_GLOBAL__;var SF=(e,t)=>{let r=vF.document.elementFromPoint(e,t),n=o=>{if(o&&o.shadowRoot){let a=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(a)?o:a.shadowRoot?n(a):a}return o};return n(r)||r},vg,Oa={x:0,y:0};function Sg(e,t){vg=SF(e,t),EF(vg)}var xF=(e,t)=>{let{measureEnabled:r}=t.globals||{};return bg(()=>{if(typeof globalThis.document>"u")return;let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),Oa.x=o.clientX,Oa.y=o.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),bg(()=>{let n=a=>{window.requestAnimationFrame(()=>{a.stopPropagation(),Sg(a.clientX,a.clientY)})},o=()=>{window.requestAnimationFrame(()=>{rF()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),eF(),globalThis.window.addEventListener("resize",o),Sg(Oa.x,Oa.y)),()=>{globalThis.window.removeEventListener("resize",o),nF()}},[r,t.viewMode]),e()},Xb;(Xb=globalThis.FEATURES)!=null&&Xb.measure;const{useEffect:$F,useMemo:wF}=__STORYBOOK_MODULE_PREVIEW_API__,{global:ni}=__STORYBOOK_MODULE_GLOBAL__;var xg=e=>{(Array.isArray(e)?e:[e]).forEach(CF)},CF=e=>{let t=typeof e=="string"?e:e.join(""),r=ni.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},_F=(e,t)=>{let r=ni.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=ni.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,ni.document.head.appendChild(n)}};function TF(e){return $t` - ${e} body { - outline: 1px solid #2980b9 !important; - } - - ${e} article { - outline: 1px solid #3498db !important; - } - - ${e} nav { - outline: 1px solid #0088c3 !important; - } - - ${e} aside { - outline: 1px solid #33a0ce !important; - } - - ${e} section { - outline: 1px solid #66b8da !important; - } - - ${e} header { - outline: 1px solid #99cfe7 !important; - } - - ${e} footer { - outline: 1px solid #cce7f3 !important; - } - - ${e} h1 { - outline: 1px solid #162544 !important; - } - - ${e} h2 { - outline: 1px solid #314e6e !important; - } - - ${e} h3 { - outline: 1px solid #3e5e85 !important; - } - - ${e} h4 { - outline: 1px solid #449baf !important; - } - - ${e} h5 { - outline: 1px solid #c7d1cb !important; - } - - ${e} h6 { - outline: 1px solid #4371d0 !important; - } - - ${e} main { - outline: 1px solid #2f4f90 !important; - } - - ${e} address { - outline: 1px solid #1a2c51 !important; - } - - ${e} div { - outline: 1px solid #036cdb !important; - } - - ${e} p { - outline: 1px solid #ac050b !important; - } - - ${e} hr { - outline: 1px solid #ff063f !important; - } - - ${e} pre { - outline: 1px solid #850440 !important; - } - - ${e} blockquote { - outline: 1px solid #f1b8e7 !important; - } - - ${e} ol { - outline: 1px solid #ff050c !important; - } - - ${e} ul { - outline: 1px solid #d90416 !important; - } - - ${e} li { - outline: 1px solid #d90416 !important; - } - - ${e} dl { - outline: 1px solid #fd3427 !important; - } - - ${e} dt { - outline: 1px solid #ff0043 !important; - } - - ${e} dd { - outline: 1px solid #e80174 !important; - } - - ${e} figure { - outline: 1px solid #ff00bb !important; - } - - ${e} figcaption { - outline: 1px solid #bf0032 !important; - } - - ${e} table { - outline: 1px solid #00cc99 !important; - } - - ${e} caption { - outline: 1px solid #37ffc4 !important; - } - - ${e} thead { - outline: 1px solid #98daca !important; - } - - ${e} tbody { - outline: 1px solid #64a7a0 !important; - } - - ${e} tfoot { - outline: 1px solid #22746b !important; - } - - ${e} tr { - outline: 1px solid #86c0b2 !important; - } - - ${e} th { - outline: 1px solid #a1e7d6 !important; - } - - ${e} td { - outline: 1px solid #3f5a54 !important; - } - - ${e} col { - outline: 1px solid #6c9a8f !important; - } - - ${e} colgroup { - outline: 1px solid #6c9a9d !important; - } - - ${e} button { - outline: 1px solid #da8301 !important; - } - - ${e} datalist { - outline: 1px solid #c06000 !important; - } - - ${e} fieldset { - outline: 1px solid #d95100 !important; - } - - ${e} form { - outline: 1px solid #d23600 !important; - } - - ${e} input { - outline: 1px solid #fca600 !important; - } - - ${e} keygen { - outline: 1px solid #b31e00 !important; - } - - ${e} label { - outline: 1px solid #ee8900 !important; - } - - ${e} legend { - outline: 1px solid #de6d00 !important; - } - - ${e} meter { - outline: 1px solid #e8630c !important; - } - - ${e} optgroup { - outline: 1px solid #b33600 !important; - } - - ${e} option { - outline: 1px solid #ff8a00 !important; - } - - ${e} output { - outline: 1px solid #ff9619 !important; - } - - ${e} progress { - outline: 1px solid #e57c00 !important; - } - - ${e} select { - outline: 1px solid #e26e0f !important; - } - - ${e} textarea { - outline: 1px solid #cc5400 !important; - } - - ${e} details { - outline: 1px solid #33848f !important; - } - - ${e} summary { - outline: 1px solid #60a1a6 !important; - } - - ${e} command { - outline: 1px solid #438da1 !important; - } - - ${e} menu { - outline: 1px solid #449da6 !important; - } - - ${e} del { - outline: 1px solid #bf0000 !important; - } - - ${e} ins { - outline: 1px solid #400000 !important; - } - - ${e} img { - outline: 1px solid #22746b !important; - } - - ${e} iframe { - outline: 1px solid #64a7a0 !important; - } - - ${e} embed { - outline: 1px solid #98daca !important; - } - - ${e} object { - outline: 1px solid #00cc99 !important; - } - - ${e} param { - outline: 1px solid #37ffc4 !important; - } - - ${e} video { - outline: 1px solid #6ee866 !important; - } - - ${e} audio { - outline: 1px solid #027353 !important; - } - - ${e} source { - outline: 1px solid #012426 !important; - } - - ${e} canvas { - outline: 1px solid #a2f570 !important; - } - - ${e} track { - outline: 1px solid #59a600 !important; - } - - ${e} map { - outline: 1px solid #7be500 !important; - } - - ${e} area { - outline: 1px solid #305900 !important; - } - - ${e} a { - outline: 1px solid #ff62ab !important; - } - - ${e} em { - outline: 1px solid #800b41 !important; - } - - ${e} strong { - outline: 1px solid #ff1583 !important; - } - - ${e} i { - outline: 1px solid #803156 !important; - } - - ${e} b { - outline: 1px solid #cc1169 !important; - } - - ${e} u { - outline: 1px solid #ff0430 !important; - } - - ${e} s { - outline: 1px solid #f805e3 !important; - } - - ${e} small { - outline: 1px solid #d107b2 !important; - } - - ${e} abbr { - outline: 1px solid #4a0263 !important; - } - - ${e} q { - outline: 1px solid #240018 !important; - } - - ${e} cite { - outline: 1px solid #64003c !important; - } - - ${e} dfn { - outline: 1px solid #b4005a !important; - } - - ${e} sub { - outline: 1px solid #dba0c8 !important; - } - - ${e} sup { - outline: 1px solid #cc0256 !important; - } - - ${e} time { - outline: 1px solid #d6606d !important; - } - - ${e} code { - outline: 1px solid #e04251 !important; - } - - ${e} kbd { - outline: 1px solid #5e001f !important; - } - - ${e} samp { - outline: 1px solid #9c0033 !important; - } - - ${e} var { - outline: 1px solid #d90047 !important; - } - - ${e} mark { - outline: 1px solid #ff0053 !important; - } - - ${e} bdi { - outline: 1px solid #bf3668 !important; - } - - ${e} bdo { - outline: 1px solid #6f1400 !important; - } - - ${e} ruby { - outline: 1px solid #ff7b93 !important; - } - - ${e} rt { - outline: 1px solid #ff2f54 !important; - } - - ${e} rp { - outline: 1px solid #803e49 !important; - } - - ${e} span { - outline: 1px solid #cc2643 !important; - } - - ${e} br { - outline: 1px solid #db687d !important; - } - - ${e} wbr { - outline: 1px solid #db175b !important; - }`}var AF=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[cD]),o=t.viewMode==="docs",a=wF(()=>TF(o?'[data-story-block="true"]':".sb-show-main"),[t]);return $F(()=>{let i=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?_F(i,a):xg(i),()=>{xg(i)}},[n,a,t]),e()},Jb;(Jb=globalThis.FEATURES)!=null&&Jb.outline;const{clearAllMocks:xY,fn:$Y,isMockFunction:wY,resetAllMocks:CY,restoreAllMocks:_Y,uninstrumentedUserEvent:TY,within:AY}=__STORYBOOK_MODULE_TEST__;var jn=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),$g=(e,t)=>{let r=jn(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},Ra=(e,t)=>`${$g(e,"kind")}${t?`--${$g(t,"name")}`:""}`;const{once:OF}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var pf=nt(un(),1),aE=nt(c1(),1),RF=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/;(0,pf.default)(1e3)(e=>{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,r,n,o]=e.toLowerCase().match(RF)||[];r&&Object.assign(t,{viewMode:r,storyId:o,refId:n})}return t});var oi=Symbol("Deeply equal"),Oc=(e,t)=>{if(typeof e!=typeof t)return t;if(Vt(e,t))return oi;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,a)=>{let i=Oc(e[a],o);return i!==oi&&(n[a]=i),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Fn(e)&&Fn(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=Oc(e==null?void 0:e[n],t==null?void 0:t[n]);return o===oi?r:Object.assign(r,{[n]:o})},{}):t},wg=/^[a-zA-Z0-9 _-]*$/,DF=/^-?[0-9]+(\.[0-9]+)?$/,iE=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,lE=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Rc=(e="",t)=>e===null||e===""||!wg.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?wg.test(t)||DF.test(t)||iE.test(t)||lE.test(t):Array.isArray(t)?t.every(r=>Rc(e,r)):Fn(t)?Object.entries(t).every(([r,n])=>Rc(r,n)):!1,Dc=e=>e===void 0?"!undefined":e===null?"!null":typeof e=="string"?iE.test(e)?`!hex(${e.slice(1)})`:lE.test(e)?`!${e.replace(/[\s%]/g,"")}`:e:typeof e=="boolean"?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(Dc):Fn(e)?Object.entries(e).reduce((t,[r,n])=>Object.assign(t,{[r]:Dc(n)}),{}):e,PF=e=>{switch(e){case"%20":return"+";case"%5B":return"[";case"%5D":return"]";case"%2C":return",";case"%3A":return":"}return e},FF=/%[0-9A-F]{2}/g,Cg=(e,t)=>{let r=Oc(e,t);if(!r||r===oi)return"";let n=Object.entries(r).reduce((o,[a,i])=>Rc(a,i)?Object.assign(o,{[a]:i}):(OF.warn($t` - Omitted potentially unsafe URL args. - - More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url - `),o),{});return(0,aE.stringify)(Dc(n),{delimiter:";",nesting:!0,nestingSyntax:"js"}).replace(FF,PF).split(";").map(o=>o.replace("=",":")).join(";")},IF=(0,pf.default)(1e3)(e=>e!==void 0?(0,aE.parse)(e):{}),LF=e=>IF(e.search?e.search.slice(1):"");(0,pf.default)(1e3)((e,t,r=!0)=>{if(r){if(typeof t!="string")throw new Error("startsWith only works with string targets");return e&&e.startsWith(t)?{path:e}:null}let n=typeof t=="string"&&e===t,o=e&&t&&e.match(t);return n||o?{path:e}:null});const{global:kF}=__STORYBOOK_MODULE_GLOBAL__;function Pc(){return Pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function gl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Fc(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function sE(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var Tg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Tg||(Tg={}));function Ic(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function NF(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?sE(e):e;return{pathname:r?r.startsWith("/")?r:MF(r,t):t,search:BF(n),hash:jF(o)}}function MF(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function hs(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function uE(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function cE(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=sE(e):(o=Pc({},e),wt(!o.pathname||!o.pathname.includes("?"),hs("?","pathname","search",o)),wt(!o.pathname||!o.pathname.includes("#"),hs("#","pathname","hash",o)),wt(!o.search||!o.search.includes("#"),hs("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(n||i==null)l=r;else{let d=t.length-1;if(i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}l=d>=0?t[d]:"/"}let s=NF(o,l),u=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var hf=e=>e.join("/").replace(/\/\/+/g,"/"),BF=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function HF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var dE=["post","put","patch","delete"];new Set(dE);var UF=["get",...dE];new Set(UF);function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t component.");let{basename:n,navigator:o}=p.useContext(Ir),{hash:a,pathname:i,search:l}=bl(e,{relative:r}),s=i;return n!=="/"&&(s=i==="/"?n:hf([n,i])),o.createHref({pathname:s,search:l,hash:a})}function bf(){return p.useContext(mf)!=null}function la(){return bf()||wt(!1,"useLocation() may be used only in the context of a component."),p.useContext(mf).location}var pE="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function hE(e){p.useContext(Ir).static||p.useLayoutEffect(e)}function GF(){let{isDataRoute:e}=p.useContext(ro);return e?QF():WF()}function WF(){bf()||wt(!1,"useNavigate() may be used only in the context of a component.");let e=p.useContext(ml),{basename:t,navigator:r}=p.useContext(Ir),{matches:n}=p.useContext(ro),{pathname:o}=la(),a=JSON.stringify(uE(n).map(l=>l.pathnameBase)),i=p.useRef(!1);return hE(()=>{i.current=!0}),p.useCallback(function(l,s){if(s===void 0&&(s={}),gl(i.current,pE),!i.current)return;if(typeof l=="number"){r.go(l);return}let u=cE(l,JSON.parse(a),o,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:hf([t,u.pathname])),(s.replace?r.replace:r.push)(u,s.state,s)},[t,r,a,o,e])}p.createContext(null);function bl(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=p.useContext(ro),{pathname:o}=la(),a=JSON.stringify(uE(n).map(i=>i.pathnameBase));return p.useMemo(()=>cE(e,JSON.parse(a),o,r==="path"),[e,a,o,r])}function VF(){let e=ZF(),t=HF(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:a},"ErrorBoundary")," or"," ",p.createElement("code",{style:a},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:o},r):null,i)}p.createElement(VF,null);var gE=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(gE||{}),Wo=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Wo||{});function yf(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function qF(e){let t=p.useContext(ml);return t||wt(!1,yf(e)),t}function YF(e){let t=p.useContext(gf);return t||wt(!1,yf(e)),t}function XF(e){let t=p.useContext(ro);return t||wt(!1,yf(e)),t}function Ef(e){let t=XF(e),r=t.matches[t.matches.length-1];return r.route.id||wt(!1,e+' can only be used on routes that contain a unique "id"'),r.route.id}function JF(){return Ef(Wo.UseRouteId)}function ZF(){var e;let t=p.useContext(fE),r=YF(Wo.UseRouteError),n=Ef(Wo.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function QF(){let{router:e}=qF(gE.UseNavigateStable),t=Ef(Wo.UseNavigateStable),r=p.useRef(!1);return hE(()=>{r.current=!0}),p.useCallback(function(n,o){o===void 0&&(o={}),gl(r.current,pE),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,Lc({fromRouteId:t},o)))},[e,t])}var e4=(function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e})(e4||{});new Promise(()=>{});function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var ai="get",ii="application/x-www-form-urlencoded";function yl(e){return e!=null&&typeof e.tagName=="string"}function t4(e){return yl(e)&&e.tagName.toLowerCase()==="button"}function r4(e){return yl(e)&&e.tagName.toLowerCase()==="form"}function n4(e){return yl(e)&&e.tagName.toLowerCase()==="input"}function o4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function a4(e,t){return e.button===0&&(!t||t==="_self")&&!o4(e)}var Da=null;function i4(){if(Da===null)try{new FormData(document.createElement("form"),0),Da=!1}catch{Da=!0}return Da}var l4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gs(e){return e!=null&&!l4.has(e)?(gl(!1,'"'+e+'" is not a valid `encType` for `
`/`` '+('and will default to "'+ii+'"')),null):e}function s4(e,t){let r,n,o,a,i;if(r4(e)){let l=e.getAttribute("action");n=l?Ic(l,t):null,r=e.getAttribute("method")||ai,o=gs(e.getAttribute("enctype"))||ii,a=new FormData(e)}else if(t4(e)||n4(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a