import{j as r,k as a,l as t,m as o,n,o as s,p as e,q as i,h as f,r as u,B as c,C as d,f as b,s as p}from"./p-b9386dd0.js";import{B as l}from"./p-ed45b3b6.js";import{L as m}from"./p-6e1ab235.js";import{R as $}from"./p-fc7ab79d.js";import{a as v}from"./p-d884c644.js";import{S as j,a as g,b as k}from"./p-2b5cf2b3.js";import{B as h}from"./p-d4ea8e22.js";const w=new class{format(a,t){switch(t){case"backgroundColor":return r.format(a);case"borderColor":return k.format(a);case"shadow":return g.format(a);case"border":return j.format(a);default:throw new Error(`Invalid flag ${t} passed into StateFormatFacade`)}}};function O(r,a,t){m.warn(`The ${r} value ${a} is invalid, it must be a value of: `,t)}function x(r,a){let t="";return a.includes("dark")&&(t+=` dark:v-dark-${r}`),t}function B(r){if(a(r))return`v-p-${r}`;O("padding",r,Object.keys(f))}function C(r){if(u(r))return`v-border-${r}`;O("border-style",r,h)}function F(r){if(t(r))return`v-${r}`;O("border-radius",r,Object.keys(c))}function S(r){if(o(r))return`v-${r}`;O("border-color",r,d.filter((()=>/^border-color-.+$/.test)))}function q(r,a=[]){if(n(r))return`v-${r}`+x(r,a);O("background-color",r,d.filter((()=>/^bg-.+$/.test)))}function y(r,a=[]){if(s(r))return`v-${r}`+x(r,a);O("text-color",r,d.filter((()=>/^text-.+$/.test)))}function E(r){if(e(r))return`vega-flex-${r}`;O("breakpoint",r,Object.keys(l))}function I(r){if(e(r))return l[r];O("breakpoint",r,Object.keys(l))}function L(r){if(a(r))return`v-gap-${r}`;O("gap",r,Object.keys(f))}function R(r,a=[]){if(i(r))return`v-${r}`+x(r,a);O("shadows",r,b)}function T(r,a){if(null!=r)return $.format(r,a)}function z(r){if(p(r))return`v-${r}`;O("font",r,v)}function A(r,a){if(null!=r)return w.format(r,a)}export{L as a,R as b,I as c,q as d,S as e,T as f,F as g,B as h,y as i,A as j,C as k,E as l,z as m}