function e(e){const n=e.breakpointValues;if(!function(e){let n=!0;for(const t of e)if(t.value){n=!1;break}return n}(n)){const t=function(e){return e.reduce(((e,n)=>Object.assign(Object.assign({},e),{[n.breakpointName]:n.value})),{})}(function(e){const n=[...e];for(let e=1;e<n.length;e++)n[e].value||(n[e].value=n[e-1].value);return n}(n));return Object.entries(t).map((([n,t])=>`--${e.propName}-${n}:${t}`)).join(";")+";"}}function n(e){return[{breakpointName:"sm",value:e[0]},{breakpointName:"md",value:e[1]},{breakpointName:"lg",value:e[2]},{breakpointName:"xl",value:e[3]},{breakpointName:"xxl",value:e[4]}]}function t(e,t){if(e&&t)return{propName:e,breakpointValues:n(t.split(","))}}export{e as a,t as c}