Socket
Socket
Sign inDemoInstall

styled-variants

Package Overview
Dependencies
1
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.1.1

2

dist/index.esm.js

@@ -1,1 +0,1 @@

var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var n=function(t,n){return t(n={exports:{}},n.exports),n.exports}((function(n,r){var e=200,o="__lodash_hash_undefined__",i=800,u=16,c=9007199254740991,a="[object Arguments]",f="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",p="[object Null]",h="[object Object]",v="[object Proxy]",_="[object Undefined]",y=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[a]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[s]=b["[object Map]"]=b["[object Number]"]=b[h]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var g="object"==typeof t&&t&&t.Object===Object&&t,j="object"==typeof self&&self&&self.Object===Object&&self,O=g||j||Function("return this")(),w=r&&!r.nodeType&&r,A=w&&n&&!n.nodeType&&n,m=A&&A.exports===w,z=m&&g.process,x=function(){try{var t=A&&A.require&&A.require("util").types;return t||z&&z.binding&&z.binding("util")}catch(t){}}(),S=x&&x.isTypedArray;function F(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}var T,U,$,P=Array.prototype,E=Function.prototype,I=Object.prototype,k=O["__core-js_shared__"],B=E.toString,M=I.hasOwnProperty,D=(T=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",R=I.toString,V=B.call(Object),q=RegExp("^"+B.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=m?O.Buffer:void 0,G=O.Symbol,L=O.Uint8Array,N=C?C.allocUnsafe:void 0,W=(U=Object.getPrototypeOf,$=Object,function(t){return U($(t))}),H=Object.create,J=I.propertyIsEnumerable,K=P.splice,Q=G?G.toStringTag:void 0,X=function(){try{var t=At(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Y=C?C.isBuffer:void 0,Z=Math.max,tt=Date.now,nt=At(O,"Map"),rt=At(Object,"create"),et=function(){function t(){}return function(n){if(!kt(n))return{};if(H)return H(n);t.prototype=n;var r=new t;return t.prototype=void 0,r}}();function ot(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function it(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function ut(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function ct(t){var n=this.__data__=new it(t);this.size=n.size}function at(t,n){var r=Ut(t),e=!r&&Tt(t),o=!r&&!e&&Pt(t),i=!r&&!e&&!o&&Mt(t),u=r||e||o||i,c=u?function(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}(t.length,String):[],a=c.length;for(var f in t)!n&&!M.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||mt(f,a))||c.push(f);return c}function ft(t,n,r){(void 0===r||Ft(t[n],r))&&(void 0!==r||n in t)||pt(t,n,r)}function st(t,n,r){var e=t[n];M.call(t,n)&&Ft(e,r)&&(void 0!==r||n in t)||pt(t,n,r)}function lt(t,n){for(var r=t.length;r--;)if(Ft(t[r][0],n))return r;return-1}function pt(t,n,r){"__proto__"==n&&X?X(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}ot.prototype.clear=function(){this.__data__=rt?rt(null):{},this.size=0},ot.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},ot.prototype.get=function(t){var n=this.__data__;if(rt){var r=n[t];return r===o?void 0:r}return M.call(n,t)?n[t]:void 0},ot.prototype.has=function(t){var n=this.__data__;return rt?void 0!==n[t]:M.call(n,t)},ot.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=rt&&void 0===n?o:n,this},it.prototype.clear=function(){this.__data__=[],this.size=0},it.prototype.delete=function(t){var n=this.__data__,r=lt(n,t);return!(r<0)&&(r==n.length-1?n.pop():K.call(n,r,1),--this.size,!0)},it.prototype.get=function(t){var n=this.__data__,r=lt(n,t);return r<0?void 0:n[r][1]},it.prototype.has=function(t){return lt(this.__data__,t)>-1},it.prototype.set=function(t,n){var r=this.__data__,e=lt(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this},ut.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(nt||it),string:new ot}},ut.prototype.delete=function(t){var n=wt(this,t).delete(t);return this.size-=n?1:0,n},ut.prototype.get=function(t){return wt(this,t).get(t)},ut.prototype.has=function(t){return wt(this,t).has(t)},ut.prototype.set=function(t,n){var r=wt(this,t),e=r.size;return r.set(t,n),this.size+=r.size==e?0:1,this},ct.prototype.clear=function(){this.__data__=new it,this.size=0},ct.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},ct.prototype.get=function(t){return this.__data__.get(t)},ct.prototype.has=function(t){return this.__data__.has(t)},ct.prototype.set=function(t,n){var r=this.__data__;if(r instanceof it){var o=r.__data__;if(!nt||o.length<e-1)return o.push([t,n]),this.size=++r.size,this;r=this.__data__=new ut(o)}return r.set(t,n),this.size=r.size,this};var ht,vt=function(t,n,r){for(var e=-1,o=Object(t),i=r(t),u=i.length;u--;){var c=i[ht?u:++e];if(!1===n(o[c],c,o))break}return t};function _t(t){return null==t?void 0===t?_:p:Q&&Q in Object(t)?function(t){var n=M.call(t,Q),r=t[Q];try{t[Q]=void 0;var e=!0}catch(t){}var o=R.call(t);e&&(n?t[Q]=r:delete t[Q]);return o}(t):function(t){return R.call(t)}(t)}function yt(t){return Bt(t)&&_t(t)==a}function dt(t){return!(!kt(t)||function(t){return!!D&&D in t}(t))&&(Et(t)?q:y).test(function(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function bt(t){if(!kt(t))return function(t){var n=[];if(null!=t)for(var r in Object(t))n.push(r);return n}(t);var n=zt(t),r=[];for(var e in t)("constructor"!=e||!n&&M.call(t,e))&&r.push(e);return r}function gt(t,n,r,e,o){t!==n&&vt(n,(function(i,u){if(o||(o=new ct),kt(i))!function(t,n,r,e,o,i,u){var c=xt(t,r),a=xt(n,r),f=u.get(a);if(f)return void ft(t,r,f);var s=i?i(c,a,r+"",t,n,u):void 0,l=void 0===s;if(l){var p=Ut(a),v=!p&&Pt(a),_=!p&&!v&&Mt(a);s=a,p||v||_?Ut(c)?s=c:Bt(j=c)&&$t(j)?s=function(t,n){var r=-1,e=t.length;n||(n=Array(e));for(;++r<e;)n[r]=t[r];return n}(c):v?(l=!1,s=function(t,n){if(n)return t.slice();var r=t.length,e=N?N(r):new t.constructor(r);return t.copy(e),e}(a,!0)):_?(l=!1,y=a,d=!0?(b=y.buffer,g=new b.constructor(b.byteLength),new L(g).set(new L(b)),g):y.buffer,s=new y.constructor(d,y.byteOffset,y.length)):s=[]:function(t){if(!Bt(t)||_t(t)!=h)return!1;var n=W(t);if(null===n)return!0;var r=M.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&B.call(r)==V}(a)||Tt(a)?(s=c,Tt(c)?s=function(t){return function(t,n,r,e){var o=!r;r||(r={});var i=-1,u=n.length;for(;++i<u;){var c=n[i],a=e?e(r[c],t[c],c,r,t):void 0;void 0===a&&(a=t[c]),o?pt(r,c,a):st(r,c,a)}return r}(t,Rt(t))}(c):kt(c)&&!Et(c)||(s=function(t){return"function"!=typeof t.constructor||zt(t)?{}:et(W(t))}(a))):l=!1}var y,d,b,g;var j;l&&(u.set(a,s),o(s,a,e,i,u),u.delete(a));ft(t,r,s)}(t,n,u,r,gt,e,o);else{var c=e?e(xt(t,u),i,u+"",t,n,o):void 0;void 0===c&&(c=i),ft(t,u,c)}}),Rt)}function jt(t,n){return St(function(t,n,r){return n=Z(void 0===n?t.length-1:n,0),function(){for(var e=arguments,o=-1,i=Z(e.length-n,0),u=Array(i);++o<i;)u[o]=e[n+o];o=-1;for(var c=Array(n+1);++o<n;)c[o]=e[o];return c[n]=r(u),F(t,this,c)}}(t,n,Ct),t+"")}function Ot(t,n,r,e,o,i){return kt(t)&&kt(n)&&(i.set(n,t),gt(t,n,void 0,Ot,i),i.delete(n)),t}function wt(t,n){var r,e,o=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof n?"string":"hash"]:o.map}function At(t,n){var r=function(t,n){return null==t?void 0:t[n]}(t,n);return dt(r)?r:void 0}function mt(t,n){var r=typeof t;return!!(n=null==n?c:n)&&("number"==r||"symbol"!=r&&d.test(t))&&t>-1&&t%1==0&&t<n}function zt(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||I)}function xt(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var St=function(t){var n=0,r=0;return function(){var e=tt(),o=u-(e-r);if(r=e,o>0){if(++n>=i)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(X?function(t,n){return X(t,"toString",{configurable:!0,enumerable:!1,value:(r=n,function(){return r}),writable:!0});var r}:Ct);function Ft(t,n){return t===n||t!=t&&n!=n}var Tt=yt(function(){return arguments}())?yt:function(t){return Bt(t)&&M.call(t,"callee")&&!J.call(t,"callee")},Ut=Array.isArray;function $t(t){return null!=t&&It(t.length)&&!Et(t)}var Pt=Y||function(){return!1};function Et(t){if(!kt(t))return!1;var n=_t(t);return n==s||n==l||n==f||n==v}function It(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function kt(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Bt(t){return null!=t&&"object"==typeof t}var Mt=S?function(t){return function(n){return t(n)}}(S):function(t){return Bt(t)&&It(t.length)&&!!b[_t(t)]};var Dt=jt((function(t){return t.push(void 0,Ot),F(qt,void 0,t)}));function Rt(t){return $t(t)?at(t,!0):bt(t)}var Vt,qt=(Vt=function(t,n,r,e){gt(t,n,r,e)},jt((function(t,n){var r=-1,e=n.length,o=e>1?n[e-1]:void 0,i=e>2?n[2]:void 0;for(o=Vt.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(t,n,r){if(!kt(r))return!1;var e=typeof n;return!!("number"==e?$t(r)&&mt(n,r.length):"string"==e&&n in r)&&Ft(r[n],t)}(n[0],n[1],i)&&(o=e<3?void 0:o,e=1),t=Object(t);++r<e;){var u=n[r];u&&Vt(t,u,r,o)}return t})));function Ct(t){return t}n.exports=Dt}));function r(t){return null!=t&&"object"==typeof t}function e(t){return null!=t&&"function"==typeof t}function o(t){return t.includes(":")}function i(t,e){let u={...e};for(let[e,c]of Object.entries(u))r(c)&&!o(e)&&(t[e]&&u[e]&&(u=n(i(t,u[e]),u)),delete u[e]);return u}function u(t,r,u){const c=u&&r[u]||{};let a=i(t,n({...c},r));for(let[n,r]of Object.entries(a))if(e(r))a[n]=r(t);else if(o(n)){let r={};for(let[o,i]of Object.entries(a[n]))r[o]=e(i)?i(t):i;a[n]=r}return a}export default function(t,r={}){function e(o){const c=i(o,o.theme[t])||{},a=u(o,r);return n(...e.styles.map(t=>t(o)),a,c)}return e.styles=[],e.addVariant=function(t,n){return this.styles.push((function(r){const e=r[t];return u(r,n,e)})),this},e.addGlobalVariant=function(t,n){return this.styles.push((function(r){const e=r.theme[t];return u(r,n,e)})),this},e}
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var n=function(t,n){return t(n={exports:{}},n.exports),n.exports}((function(n,r){var e=200,o="__lodash_hash_undefined__",i=800,u=16,c=9007199254740991,a="[object Arguments]",f="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",p="[object Null]",h="[object Object]",v="[object Proxy]",_="[object Undefined]",y=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[a]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[s]=b["[object Map]"]=b["[object Number]"]=b[h]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var g="object"==typeof t&&t&&t.Object===Object&&t,j="object"==typeof self&&self&&self.Object===Object&&self,O=g||j||Function("return this")(),w=r&&!r.nodeType&&r,A=w&&n&&!n.nodeType&&n,m=A&&A.exports===w,z=m&&g.process,x=function(){try{var t=A&&A.require&&A.require("util").types;return t||z&&z.binding&&z.binding("util")}catch(t){}}(),S=x&&x.isTypedArray;function F(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}var T,U,$,P=Array.prototype,E=Function.prototype,I=Object.prototype,k=O["__core-js_shared__"],B=E.toString,M=I.hasOwnProperty,D=(T=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",R=I.toString,V=B.call(Object),q=RegExp("^"+B.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=m?O.Buffer:void 0,G=O.Symbol,L=O.Uint8Array,N=C?C.allocUnsafe:void 0,W=(U=Object.getPrototypeOf,$=Object,function(t){return U($(t))}),H=Object.create,J=I.propertyIsEnumerable,K=P.splice,Q=G?G.toStringTag:void 0,X=function(){try{var t=At(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Y=C?C.isBuffer:void 0,Z=Math.max,tt=Date.now,nt=At(O,"Map"),rt=At(Object,"create"),et=function(){function t(){}return function(n){if(!kt(n))return{};if(H)return H(n);t.prototype=n;var r=new t;return t.prototype=void 0,r}}();function ot(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function it(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function ut(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}function ct(t){var n=this.__data__=new it(t);this.size=n.size}function at(t,n){var r=Ut(t),e=!r&&Tt(t),o=!r&&!e&&Pt(t),i=!r&&!e&&!o&&Mt(t),u=r||e||o||i,c=u?function(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}(t.length,String):[],a=c.length;for(var f in t)!n&&!M.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||mt(f,a))||c.push(f);return c}function ft(t,n,r){(void 0===r||Ft(t[n],r))&&(void 0!==r||n in t)||pt(t,n,r)}function st(t,n,r){var e=t[n];M.call(t,n)&&Ft(e,r)&&(void 0!==r||n in t)||pt(t,n,r)}function lt(t,n){for(var r=t.length;r--;)if(Ft(t[r][0],n))return r;return-1}function pt(t,n,r){"__proto__"==n&&X?X(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}ot.prototype.clear=function(){this.__data__=rt?rt(null):{},this.size=0},ot.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},ot.prototype.get=function(t){var n=this.__data__;if(rt){var r=n[t];return r===o?void 0:r}return M.call(n,t)?n[t]:void 0},ot.prototype.has=function(t){var n=this.__data__;return rt?void 0!==n[t]:M.call(n,t)},ot.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=rt&&void 0===n?o:n,this},it.prototype.clear=function(){this.__data__=[],this.size=0},it.prototype.delete=function(t){var n=this.__data__,r=lt(n,t);return!(r<0)&&(r==n.length-1?n.pop():K.call(n,r,1),--this.size,!0)},it.prototype.get=function(t){var n=this.__data__,r=lt(n,t);return r<0?void 0:n[r][1]},it.prototype.has=function(t){return lt(this.__data__,t)>-1},it.prototype.set=function(t,n){var r=this.__data__,e=lt(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this},ut.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(nt||it),string:new ot}},ut.prototype.delete=function(t){var n=wt(this,t).delete(t);return this.size-=n?1:0,n},ut.prototype.get=function(t){return wt(this,t).get(t)},ut.prototype.has=function(t){return wt(this,t).has(t)},ut.prototype.set=function(t,n){var r=wt(this,t),e=r.size;return r.set(t,n),this.size+=r.size==e?0:1,this},ct.prototype.clear=function(){this.__data__=new it,this.size=0},ct.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},ct.prototype.get=function(t){return this.__data__.get(t)},ct.prototype.has=function(t){return this.__data__.has(t)},ct.prototype.set=function(t,n){var r=this.__data__;if(r instanceof it){var o=r.__data__;if(!nt||o.length<e-1)return o.push([t,n]),this.size=++r.size,this;r=this.__data__=new ut(o)}return r.set(t,n),this.size=r.size,this};var ht,vt=function(t,n,r){for(var e=-1,o=Object(t),i=r(t),u=i.length;u--;){var c=i[ht?u:++e];if(!1===n(o[c],c,o))break}return t};function _t(t){return null==t?void 0===t?_:p:Q&&Q in Object(t)?function(t){var n=M.call(t,Q),r=t[Q];try{t[Q]=void 0;var e=!0}catch(t){}var o=R.call(t);e&&(n?t[Q]=r:delete t[Q]);return o}(t):function(t){return R.call(t)}(t)}function yt(t){return Bt(t)&&_t(t)==a}function dt(t){return!(!kt(t)||function(t){return!!D&&D in t}(t))&&(Et(t)?q:y).test(function(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function bt(t){if(!kt(t))return function(t){var n=[];if(null!=t)for(var r in Object(t))n.push(r);return n}(t);var n=zt(t),r=[];for(var e in t)("constructor"!=e||!n&&M.call(t,e))&&r.push(e);return r}function gt(t,n,r,e,o){t!==n&&vt(n,(function(i,u){if(o||(o=new ct),kt(i))!function(t,n,r,e,o,i,u){var c=xt(t,r),a=xt(n,r),f=u.get(a);if(f)return void ft(t,r,f);var s=i?i(c,a,r+"",t,n,u):void 0,l=void 0===s;if(l){var p=Ut(a),v=!p&&Pt(a),_=!p&&!v&&Mt(a);s=a,p||v||_?Ut(c)?s=c:Bt(j=c)&&$t(j)?s=function(t,n){var r=-1,e=t.length;n||(n=Array(e));for(;++r<e;)n[r]=t[r];return n}(c):v?(l=!1,s=function(t,n){if(n)return t.slice();var r=t.length,e=N?N(r):new t.constructor(r);return t.copy(e),e}(a,!0)):_?(l=!1,y=a,d=!0?(b=y.buffer,g=new b.constructor(b.byteLength),new L(g).set(new L(b)),g):y.buffer,s=new y.constructor(d,y.byteOffset,y.length)):s=[]:function(t){if(!Bt(t)||_t(t)!=h)return!1;var n=W(t);if(null===n)return!0;var r=M.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&B.call(r)==V}(a)||Tt(a)?(s=c,Tt(c)?s=function(t){return function(t,n,r,e){var o=!r;r||(r={});var i=-1,u=n.length;for(;++i<u;){var c=n[i],a=e?e(r[c],t[c],c,r,t):void 0;void 0===a&&(a=t[c]),o?pt(r,c,a):st(r,c,a)}return r}(t,Rt(t))}(c):kt(c)&&!Et(c)||(s=function(t){return"function"!=typeof t.constructor||zt(t)?{}:et(W(t))}(a))):l=!1}var y,d,b,g;var j;l&&(u.set(a,s),o(s,a,e,i,u),u.delete(a));ft(t,r,s)}(t,n,u,r,gt,e,o);else{var c=e?e(xt(t,u),i,u+"",t,n,o):void 0;void 0===c&&(c=i),ft(t,u,c)}}),Rt)}function jt(t,n){return St(function(t,n,r){return n=Z(void 0===n?t.length-1:n,0),function(){for(var e=arguments,o=-1,i=Z(e.length-n,0),u=Array(i);++o<i;)u[o]=e[n+o];o=-1;for(var c=Array(n+1);++o<n;)c[o]=e[o];return c[n]=r(u),F(t,this,c)}}(t,n,Ct),t+"")}function Ot(t,n,r,e,o,i){return kt(t)&&kt(n)&&(i.set(n,t),gt(t,n,void 0,Ot,i),i.delete(n)),t}function wt(t,n){var r,e,o=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof n?"string":"hash"]:o.map}function At(t,n){var r=function(t,n){return null==t?void 0:t[n]}(t,n);return dt(r)?r:void 0}function mt(t,n){var r=typeof t;return!!(n=null==n?c:n)&&("number"==r||"symbol"!=r&&d.test(t))&&t>-1&&t%1==0&&t<n}function zt(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||I)}function xt(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var St=function(t){var n=0,r=0;return function(){var e=tt(),o=u-(e-r);if(r=e,o>0){if(++n>=i)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(X?function(t,n){return X(t,"toString",{configurable:!0,enumerable:!1,value:(r=n,function(){return r}),writable:!0});var r}:Ct);function Ft(t,n){return t===n||t!=t&&n!=n}var Tt=yt(function(){return arguments}())?yt:function(t){return Bt(t)&&M.call(t,"callee")&&!J.call(t,"callee")},Ut=Array.isArray;function $t(t){return null!=t&&It(t.length)&&!Et(t)}var Pt=Y||function(){return!1};function Et(t){if(!kt(t))return!1;var n=_t(t);return n==s||n==l||n==f||n==v}function It(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function kt(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Bt(t){return null!=t&&"object"==typeof t}var Mt=S?function(t){return function(n){return t(n)}}(S):function(t){return Bt(t)&&It(t.length)&&!!b[_t(t)]};var Dt=jt((function(t){return t.push(void 0,Ot),F(qt,void 0,t)}));function Rt(t){return $t(t)?at(t,!0):bt(t)}var Vt,qt=(Vt=function(t,n,r,e){gt(t,n,r,e)},jt((function(t,n){var r=-1,e=n.length,o=e>1?n[e-1]:void 0,i=e>2?n[2]:void 0;for(o=Vt.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(t,n,r){if(!kt(r))return!1;var e=typeof n;return!!("number"==e?$t(r)&&mt(n,r.length):"string"==e&&n in r)&&Ft(r[n],t)}(n[0],n[1],i)&&(o=e<3?void 0:o,e=1),t=Object(t);++r<e;){var u=n[r];u&&Vt(t,u,r,o)}return t})));function Ct(t){return t}n.exports=Dt}));function r(t){return null!=t&&"object"==typeof t}function e(t){return null!=t&&"function"==typeof t}function o(t){return t.includes(":")}function i(t){return"!"===t.charAt(0)}function u(t,e){let c={...e};for(let[e,a]of Object.entries(c)){const f=i(e);let s=e;if(f&&(s=e.substring(1)),r(a)&&!o(e)){(f?!t[s]:!!t[s])&&(c=n(u(t,c[e]),c)),delete c[e]}}return c}function c(t,r,i){const c=i&&r[i]||{};let a=u(t,n({...c},r));for(let[n,r]of Object.entries(a))if(e(r))a[n]=r(t);else if(o(n)){let r={};for(let[o,i]of Object.entries(a[n]))r[o]=e(i)?i(t):i;a[n]=r}return a}export default function(t,r={}){function e(o){const i=u(o,o.theme[t])||{},a=c(o,r);return n(...e.styles.map(t=>t(o)),a,i)}return e.styles=[],e.addVariant=function(t,n){return this.styles.push((function(r){const e=r[t];return c(r,n,e)})),this},e.addGlobalVariant=function(t,n){return this.styles.push((function(r){const e=r.theme[t];return c(r,n,e)})),this},e}

@@ -1,1 +0,1 @@

"use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e){return t(e={exports:{}},e.exports),e.exports}var lodash_defaultsdeep=createCommonjsModule((function(t,e){var n=200,r="__lodash_hash_undefined__",o=800,i=16,u=9007199254740991,a="[object Arguments]",c="[object AsyncFunction]",s="[object Function]",f="[object GeneratorFunction]",l="[object Null]",p="[object Object]",h="[object Proxy]",_="[object Undefined]",d=/^\[object .+?Constructor\]$/,v=/^(?:0|[1-9]\d*)$/,y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y[a]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y[s]=y["[object Map]"]=y["[object Number]"]=y[p]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1;var b="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,j="object"==typeof self&&self&&self.Object===Object&&self,g=b||j||Function("return this")(),m=e&&!e.nodeType&&e,O=m&&t&&!t.nodeType&&t,w=O&&O.exports===m,z=w&&b.process,A=function(){try{var t=O&&O.require&&O.require("util").types;return t||z&&z.binding&&z.binding("util")}catch(t){}}(),F=A&&A.isTypedArray;function S(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var x,P,B,C=Array.prototype,G=Function.prototype,T=Object.prototype,U=g["__core-js_shared__"],V=G.toString,$=T.hasOwnProperty,M=(x=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",E=T.toString,I=V.call(Object),k=RegExp("^"+V.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=w?g.Buffer:void 0,R=g.Symbol,q=g.Uint8Array,L=D?D.allocUnsafe:void 0,N=(P=Object.getPrototypeOf,B=Object,function(t){return P(B(t))}),W=Object.create,H=T.propertyIsEnumerable,J=C.splice,K=R?R.toStringTag:void 0,Q=function(){try{var t=Ot(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),X=D?D.isBuffer:void 0,Y=Math.max,Z=Date.now,tt=Ot(g,"Map"),et=Ot(Object,"create"),nt=function(){function t(){}return function(e){if(!Ut(e))return{};if(W)return W(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function rt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function it(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ut(t){var e=this.__data__=new ot(t);this.size=e.size}function at(t,e){var n=Pt(t),r=!n&&xt(t),o=!n&&!r&&Ct(t),i=!n&&!r&&!o&&$t(t),u=n||r||o||i,a=u?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var s in t)!e&&!$.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||wt(s,c))||a.push(s);return a}function ct(t,e,n){(void 0===n||St(t[e],n))&&(void 0!==n||e in t)||lt(t,e,n)}function st(t,e,n){var r=t[e];$.call(t,e)&&St(r,n)&&(void 0!==n||e in t)||lt(t,e,n)}function ft(t,e){for(var n=t.length;n--;)if(St(t[n][0],e))return n;return-1}function lt(t,e,n){"__proto__"==e&&Q?Q(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}rt.prototype.clear=function(){this.__data__=et?et(null):{},this.size=0},rt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},rt.prototype.get=function(t){var e=this.__data__;if(et){var n=e[t];return n===r?void 0:n}return $.call(e,t)?e[t]:void 0},rt.prototype.has=function(t){var e=this.__data__;return et?void 0!==e[t]:$.call(e,t)},rt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=et&&void 0===e?r:e,this},ot.prototype.clear=function(){this.__data__=[],this.size=0},ot.prototype.delete=function(t){var e=this.__data__,n=ft(e,t);return!(n<0)&&(n==e.length-1?e.pop():J.call(e,n,1),--this.size,!0)},ot.prototype.get=function(t){var e=this.__data__,n=ft(e,t);return n<0?void 0:e[n][1]},ot.prototype.has=function(t){return ft(this.__data__,t)>-1},ot.prototype.set=function(t,e){var n=this.__data__,r=ft(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},it.prototype.clear=function(){this.size=0,this.__data__={hash:new rt,map:new(tt||ot),string:new rt}},it.prototype.delete=function(t){var e=mt(this,t).delete(t);return this.size-=e?1:0,e},it.prototype.get=function(t){return mt(this,t).get(t)},it.prototype.has=function(t){return mt(this,t).has(t)},it.prototype.set=function(t,e){var n=mt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},ut.prototype.clear=function(){this.__data__=new ot,this.size=0},ut.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},ut.prototype.get=function(t){return this.__data__.get(t)},ut.prototype.has=function(t){return this.__data__.has(t)},ut.prototype.set=function(t,e){var r=this.__data__;if(r instanceof ot){var o=r.__data__;if(!tt||o.length<n-1)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new it(o)}return r.set(t,e),this.size=r.size,this};var pt,ht=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),u=i.length;u--;){var a=i[pt?u:++r];if(!1===e(o[a],a,o))break}return t};function _t(t){return null==t?void 0===t?_:l:K&&K in Object(t)?function(t){var e=$.call(t,K),n=t[K];try{t[K]=void 0;var r=!0}catch(t){}var o=E.call(t);r&&(e?t[K]=n:delete t[K]);return o}(t):function(t){return E.call(t)}(t)}function dt(t){return Vt(t)&&_t(t)==a}function vt(t){return!(!Ut(t)||function(t){return!!M&&M in t}(t))&&(Gt(t)?k:d).test(function(t){if(null!=t){try{return V.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function yt(t){if(!Ut(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=zt(t),n=[];for(var r in t)("constructor"!=r||!e&&$.call(t,r))&&n.push(r);return n}function bt(t,e,n,r,o){t!==e&&ht(e,(function(i,u){if(o||(o=new ut),Ut(i))!function(t,e,n,r,o,i,u){var a=At(t,n),c=At(e,n),s=u.get(c);if(s)return void ct(t,n,s);var f=i?i(a,c,n+"",t,e,u):void 0,l=void 0===f;if(l){var h=Pt(c),_=!h&&Ct(c),d=!h&&!_&&$t(c);f=c,h||_||d?Pt(a)?f=a:Vt(g=a)&&Bt(g)?f=function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(a):_?(l=!1,f=function(t,e){if(e)return t.slice();var n=t.length,r=L?L(n):new t.constructor(n);return t.copy(r),r}(c,!0)):d?(l=!1,v=c,y=!0?(b=v.buffer,j=new b.constructor(b.byteLength),new q(j).set(new q(b)),j):v.buffer,f=new v.constructor(y,v.byteOffset,v.length)):f=[]:function(t){if(!Vt(t)||_t(t)!=p)return!1;var e=N(t);if(null===e)return!0;var n=$.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&V.call(n)==I}(c)||xt(c)?(f=a,xt(a)?f=function(t){return function(t,e,n,r){var o=!n;n||(n={});var i=-1,u=e.length;for(;++i<u;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?lt(n,a,c):st(n,a,c)}return n}(t,Et(t))}(a):Ut(a)&&!Gt(a)||(f=function(t){return"function"!=typeof t.constructor||zt(t)?{}:nt(N(t))}(c))):l=!1}var v,y,b,j;var g;l&&(u.set(c,f),o(f,c,r,i,u),u.delete(c));ct(t,n,f)}(t,e,u,n,bt,r,o);else{var a=r?r(At(t,u),i,u+"",t,e,o):void 0;void 0===a&&(a=i),ct(t,u,a)}}),Et)}function jt(t,e){return Ft(function(t,e,n){return e=Y(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Y(r.length-e,0),u=Array(i);++o<i;)u[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(u),S(t,this,a)}}(t,e,Dt),t+"")}function gt(t,e,n,r,o,i){return Ut(t)&&Ut(e)&&(i.set(e,t),bt(t,e,void 0,gt,i),i.delete(e)),t}function mt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Ot(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return vt(n)?n:void 0}function wt(t,e){var n=typeof t;return!!(e=null==e?u:e)&&("number"==n||"symbol"!=n&&v.test(t))&&t>-1&&t%1==0&&t<e}function zt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||T)}function At(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ft=function(t){var e=0,n=0;return function(){var r=Z(),u=i-(r-n);if(n=r,u>0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Q?function(t,e){return Q(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:Dt);function St(t,e){return t===e||t!=t&&e!=e}var xt=dt(function(){return arguments}())?dt:function(t){return Vt(t)&&$.call(t,"callee")&&!H.call(t,"callee")},Pt=Array.isArray;function Bt(t){return null!=t&&Tt(t.length)&&!Gt(t)}var Ct=X||function(){return!1};function Gt(t){if(!Ut(t))return!1;var e=_t(t);return e==s||e==f||e==c||e==h}function Tt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function Ut(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Vt(t){return null!=t&&"object"==typeof t}var $t=F?function(t){return function(e){return t(e)}}(F):function(t){return Vt(t)&&Tt(t.length)&&!!y[_t(t)]};var Mt=jt((function(t){return t.push(void 0,gt),S(kt,void 0,t)}));function Et(t){return Bt(t)?at(t,!0):yt(t)}var It,kt=(It=function(t,e,n,r){bt(t,e,n,r)},jt((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=It.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!Ut(n))return!1;var r=typeof e;return!!("number"==r?Bt(n)&&wt(e,n.length):"string"==r&&e in n)&&St(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var u=e[n];u&&It(t,u,n,o)}return t})));function Dt(t){return t}t.exports=Mt}));function _isObject(t){return null!=t&&"object"==typeof t}function _isFunction(t){return null!=t&&"function"==typeof t}function _isPseudoClass(t){return t.includes(":")}function parseForBooleanVariants(t,e){let n={...e};for(let[e,r]of Object.entries(n))_isObject(r)&&!_isPseudoClass(e)&&(t[e]&&n[e]&&(n=lodash_defaultsdeep(parseForBooleanVariants(t,n[e]),n)),delete n[e]);return n}function normalizeStylesheet(t,e,n){const r=n&&e[n]||{};let o=parseForBooleanVariants(t,lodash_defaultsdeep({...r},e));for(let[e,n]of Object.entries(o))if(_isFunction(n))o[e]=n(t);else if(_isPseudoClass(e)){let n={};for(let[r,i]of Object.entries(o[e]))n[r]=_isFunction(i)?i(t):i;o[e]=n}return o}function theme(t,e={}){function n(r){const o=parseForBooleanVariants(r,r.theme[t])||{},i=normalizeStylesheet(r,e);return lodash_defaultsdeep(...n.styles.map(t=>t(r)),i,o)}return n.styles=[],n.addVariant=function(t,e){return this.styles.push((function(n){const r=n[t];return normalizeStylesheet(n,e,r)})),this},n.addGlobalVariant=function(t,e){return this.styles.push((function(n){const r=n.theme[t];return normalizeStylesheet(n,e,r)})),this},n}module.exports=theme;
"use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e){return t(e={exports:{}},e.exports),e.exports}var lodash_defaultsdeep=createCommonjsModule((function(t,e){var n=200,r="__lodash_hash_undefined__",o=800,i=16,u=9007199254740991,a="[object Arguments]",c="[object AsyncFunction]",s="[object Function]",f="[object GeneratorFunction]",l="[object Null]",p="[object Object]",h="[object Proxy]",_="[object Undefined]",d=/^\[object .+?Constructor\]$/,v=/^(?:0|[1-9]\d*)$/,y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y[a]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y[s]=y["[object Map]"]=y["[object Number]"]=y[p]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1;var b="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,j="object"==typeof self&&self&&self.Object===Object&&self,g=b||j||Function("return this")(),m=e&&!e.nodeType&&e,O=m&&t&&!t.nodeType&&t,w=O&&O.exports===m,z=w&&b.process,A=function(){try{var t=O&&O.require&&O.require("util").types;return t||z&&z.binding&&z.binding("util")}catch(t){}}(),F=A&&A.isTypedArray;function S(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var x,P,B,C=Array.prototype,G=Function.prototype,T=Object.prototype,U=g["__core-js_shared__"],V=G.toString,$=T.hasOwnProperty,M=(x=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",E=T.toString,I=V.call(Object),k=RegExp("^"+V.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=w?g.Buffer:void 0,D=g.Symbol,R=g.Uint8Array,q=N?N.allocUnsafe:void 0,L=(P=Object.getPrototypeOf,B=Object,function(t){return P(B(t))}),W=Object.create,H=T.propertyIsEnumerable,J=C.splice,K=D?D.toStringTag:void 0,Q=function(){try{var t=Ot(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),X=N?N.isBuffer:void 0,Y=Math.max,Z=Date.now,tt=Ot(g,"Map"),et=Ot(Object,"create"),nt=function(){function t(){}return function(e){if(!Ut(e))return{};if(W)return W(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function rt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function it(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ut(t){var e=this.__data__=new ot(t);this.size=e.size}function at(t,e){var n=Pt(t),r=!n&&xt(t),o=!n&&!r&&Ct(t),i=!n&&!r&&!o&&$t(t),u=n||r||o||i,a=u?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var s in t)!e&&!$.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||wt(s,c))||a.push(s);return a}function ct(t,e,n){(void 0===n||St(t[e],n))&&(void 0!==n||e in t)||lt(t,e,n)}function st(t,e,n){var r=t[e];$.call(t,e)&&St(r,n)&&(void 0!==n||e in t)||lt(t,e,n)}function ft(t,e){for(var n=t.length;n--;)if(St(t[n][0],e))return n;return-1}function lt(t,e,n){"__proto__"==e&&Q?Q(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}rt.prototype.clear=function(){this.__data__=et?et(null):{},this.size=0},rt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},rt.prototype.get=function(t){var e=this.__data__;if(et){var n=e[t];return n===r?void 0:n}return $.call(e,t)?e[t]:void 0},rt.prototype.has=function(t){var e=this.__data__;return et?void 0!==e[t]:$.call(e,t)},rt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=et&&void 0===e?r:e,this},ot.prototype.clear=function(){this.__data__=[],this.size=0},ot.prototype.delete=function(t){var e=this.__data__,n=ft(e,t);return!(n<0)&&(n==e.length-1?e.pop():J.call(e,n,1),--this.size,!0)},ot.prototype.get=function(t){var e=this.__data__,n=ft(e,t);return n<0?void 0:e[n][1]},ot.prototype.has=function(t){return ft(this.__data__,t)>-1},ot.prototype.set=function(t,e){var n=this.__data__,r=ft(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},it.prototype.clear=function(){this.size=0,this.__data__={hash:new rt,map:new(tt||ot),string:new rt}},it.prototype.delete=function(t){var e=mt(this,t).delete(t);return this.size-=e?1:0,e},it.prototype.get=function(t){return mt(this,t).get(t)},it.prototype.has=function(t){return mt(this,t).has(t)},it.prototype.set=function(t,e){var n=mt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},ut.prototype.clear=function(){this.__data__=new ot,this.size=0},ut.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},ut.prototype.get=function(t){return this.__data__.get(t)},ut.prototype.has=function(t){return this.__data__.has(t)},ut.prototype.set=function(t,e){var r=this.__data__;if(r instanceof ot){var o=r.__data__;if(!tt||o.length<n-1)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new it(o)}return r.set(t,e),this.size=r.size,this};var pt,ht=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),u=i.length;u--;){var a=i[pt?u:++r];if(!1===e(o[a],a,o))break}return t};function _t(t){return null==t?void 0===t?_:l:K&&K in Object(t)?function(t){var e=$.call(t,K),n=t[K];try{t[K]=void 0;var r=!0}catch(t){}var o=E.call(t);r&&(e?t[K]=n:delete t[K]);return o}(t):function(t){return E.call(t)}(t)}function dt(t){return Vt(t)&&_t(t)==a}function vt(t){return!(!Ut(t)||function(t){return!!M&&M in t}(t))&&(Gt(t)?k:d).test(function(t){if(null!=t){try{return V.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function yt(t){if(!Ut(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=zt(t),n=[];for(var r in t)("constructor"!=r||!e&&$.call(t,r))&&n.push(r);return n}function bt(t,e,n,r,o){t!==e&&ht(e,(function(i,u){if(o||(o=new ut),Ut(i))!function(t,e,n,r,o,i,u){var a=At(t,n),c=At(e,n),s=u.get(c);if(s)return void ct(t,n,s);var f=i?i(a,c,n+"",t,e,u):void 0,l=void 0===f;if(l){var h=Pt(c),_=!h&&Ct(c),d=!h&&!_&&$t(c);f=c,h||_||d?Pt(a)?f=a:Vt(g=a)&&Bt(g)?f=function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(a):_?(l=!1,f=function(t,e){if(e)return t.slice();var n=t.length,r=q?q(n):new t.constructor(n);return t.copy(r),r}(c,!0)):d?(l=!1,v=c,y=!0?(b=v.buffer,j=new b.constructor(b.byteLength),new R(j).set(new R(b)),j):v.buffer,f=new v.constructor(y,v.byteOffset,v.length)):f=[]:function(t){if(!Vt(t)||_t(t)!=p)return!1;var e=L(t);if(null===e)return!0;var n=$.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&V.call(n)==I}(c)||xt(c)?(f=a,xt(a)?f=function(t){return function(t,e,n,r){var o=!n;n||(n={});var i=-1,u=e.length;for(;++i<u;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?lt(n,a,c):st(n,a,c)}return n}(t,Et(t))}(a):Ut(a)&&!Gt(a)||(f=function(t){return"function"!=typeof t.constructor||zt(t)?{}:nt(L(t))}(c))):l=!1}var v,y,b,j;var g;l&&(u.set(c,f),o(f,c,r,i,u),u.delete(c));ct(t,n,f)}(t,e,u,n,bt,r,o);else{var a=r?r(At(t,u),i,u+"",t,e,o):void 0;void 0===a&&(a=i),ct(t,u,a)}}),Et)}function jt(t,e){return Ft(function(t,e,n){return e=Y(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Y(r.length-e,0),u=Array(i);++o<i;)u[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(u),S(t,this,a)}}(t,e,Nt),t+"")}function gt(t,e,n,r,o,i){return Ut(t)&&Ut(e)&&(i.set(e,t),bt(t,e,void 0,gt,i),i.delete(e)),t}function mt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Ot(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return vt(n)?n:void 0}function wt(t,e){var n=typeof t;return!!(e=null==e?u:e)&&("number"==n||"symbol"!=n&&v.test(t))&&t>-1&&t%1==0&&t<e}function zt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||T)}function At(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ft=function(t){var e=0,n=0;return function(){var r=Z(),u=i-(r-n);if(n=r,u>0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Q?function(t,e){return Q(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:Nt);function St(t,e){return t===e||t!=t&&e!=e}var xt=dt(function(){return arguments}())?dt:function(t){return Vt(t)&&$.call(t,"callee")&&!H.call(t,"callee")},Pt=Array.isArray;function Bt(t){return null!=t&&Tt(t.length)&&!Gt(t)}var Ct=X||function(){return!1};function Gt(t){if(!Ut(t))return!1;var e=_t(t);return e==s||e==f||e==c||e==h}function Tt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function Ut(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Vt(t){return null!=t&&"object"==typeof t}var $t=F?function(t){return function(e){return t(e)}}(F):function(t){return Vt(t)&&Tt(t.length)&&!!y[_t(t)]};var Mt=jt((function(t){return t.push(void 0,gt),S(kt,void 0,t)}));function Et(t){return Bt(t)?at(t,!0):yt(t)}var It,kt=(It=function(t,e,n,r){bt(t,e,n,r)},jt((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=It.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!Ut(n))return!1;var r=typeof e;return!!("number"==r?Bt(n)&&wt(e,n.length):"string"==r&&e in n)&&St(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var u=e[n];u&&It(t,u,n,o)}return t})));function Nt(t){return t}t.exports=Mt}));function _isObject(t){return null!=t&&"object"==typeof t}function _isFunction(t){return null!=t&&"function"==typeof t}function _isPseudoClass(t){return t.includes(":")}function _isNegation(t){return"!"===t.charAt(0)}function parseForBooleanVariants(t,e){let n={...e};for(let[e,r]of Object.entries(n)){const o=_isNegation(e);let i=e;if(o&&(i=e.substring(1)),_isObject(r)&&!_isPseudoClass(e)){(o?!t[i]:!!t[i])&&(n=lodash_defaultsdeep(parseForBooleanVariants(t,n[e]),n)),delete n[e]}}return n}function normalizeStylesheet(t,e,n){const r=n&&e[n]||{};let o=parseForBooleanVariants(t,lodash_defaultsdeep({...r},e));for(let[e,n]of Object.entries(o))if(_isFunction(n))o[e]=n(t);else if(_isPseudoClass(e)){let n={};for(let[r,i]of Object.entries(o[e]))n[r]=_isFunction(i)?i(t):i;o[e]=n}return o}function theme(t,e={}){function n(r){const o=parseForBooleanVariants(r,r.theme[t])||{},i=normalizeStylesheet(r,e);return lodash_defaultsdeep(...n.styles.map(t=>t(r)),i,o)}return n.styles=[],n.addVariant=function(t,e){return this.styles.push((function(n){const r=n[t];return normalizeStylesheet(n,e,r)})),this},n.addGlobalVariant=function(t,e){return this.styles.push((function(n){const r=n.theme[t];return normalizeStylesheet(n,e,r)})),this},n}module.exports=theme;

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self)["styled-variants"]=n()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var n=function(t,n){return t(n={exports:{}},n.exports),n.exports}((function(n,e){var r=200,o="__lodash_hash_undefined__",i=800,u=16,c=9007199254740991,a="[object Arguments]",f="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",p="[object Null]",h="[object Object]",v="[object Proxy]",_="[object Undefined]",y=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[a]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[s]=b["[object Map]"]=b["[object Number]"]=b[h]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var g="object"==typeof t&&t&&t.Object===Object&&t,j="object"==typeof self&&self&&self.Object===Object&&self,O=g||j||Function("return this")(),w=e&&!e.nodeType&&e,m=w&&n&&!n.nodeType&&n,A=m&&m.exports===w,z=A&&g.process,x=function(){try{var t=m&&m.require&&m.require("util").types;return t||z&&z.binding&&z.binding("util")}catch(t){}}(),S=x&&x.isTypedArray;function F(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}var T,U,$,P=Array.prototype,E=Function.prototype,I=Object.prototype,k=O["__core-js_shared__"],B=E.toString,M=I.hasOwnProperty,D=(T=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",R=I.toString,V=B.call(Object),q=RegExp("^"+B.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=A?O.Buffer:void 0,G=O.Symbol,L=O.Uint8Array,N=C?C.allocUnsafe:void 0,W=(U=Object.getPrototypeOf,$=Object,function(t){return U($(t))}),H=Object.create,J=I.propertyIsEnumerable,K=P.splice,Q=G?G.toStringTag:void 0,X=function(){try{var t=mt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Y=C?C.isBuffer:void 0,Z=Math.max,tt=Date.now,nt=mt(O,"Map"),et=mt(Object,"create"),rt=function(){function t(){}return function(n){if(!kt(n))return{};if(H)return H(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();function ot(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function it(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function ut(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function ct(t){var n=this.__data__=new it(t);this.size=n.size}function at(t,n){var e=Ut(t),r=!e&&Tt(t),o=!e&&!r&&Pt(t),i=!e&&!r&&!o&&Mt(t),u=e||r||o||i,c=u?function(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}(t.length,String):[],a=c.length;for(var f in t)!n&&!M.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||At(f,a))||c.push(f);return c}function ft(t,n,e){(void 0===e||Ft(t[n],e))&&(void 0!==e||n in t)||pt(t,n,e)}function st(t,n,e){var r=t[n];M.call(t,n)&&Ft(r,e)&&(void 0!==e||n in t)||pt(t,n,e)}function lt(t,n){for(var e=t.length;e--;)if(Ft(t[e][0],n))return e;return-1}function pt(t,n,e){"__proto__"==n&&X?X(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}ot.prototype.clear=function(){this.__data__=et?et(null):{},this.size=0},ot.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},ot.prototype.get=function(t){var n=this.__data__;if(et){var e=n[t];return e===o?void 0:e}return M.call(n,t)?n[t]:void 0},ot.prototype.has=function(t){var n=this.__data__;return et?void 0!==n[t]:M.call(n,t)},ot.prototype.set=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=et&&void 0===n?o:n,this},it.prototype.clear=function(){this.__data__=[],this.size=0},it.prototype.delete=function(t){var n=this.__data__,e=lt(n,t);return!(e<0)&&(e==n.length-1?n.pop():K.call(n,e,1),--this.size,!0)},it.prototype.get=function(t){var n=this.__data__,e=lt(n,t);return e<0?void 0:n[e][1]},it.prototype.has=function(t){return lt(this.__data__,t)>-1},it.prototype.set=function(t,n){var e=this.__data__,r=lt(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},ut.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(nt||it),string:new ot}},ut.prototype.delete=function(t){var n=wt(this,t).delete(t);return this.size-=n?1:0,n},ut.prototype.get=function(t){return wt(this,t).get(t)},ut.prototype.has=function(t){return wt(this,t).has(t)},ut.prototype.set=function(t,n){var e=wt(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},ct.prototype.clear=function(){this.__data__=new it,this.size=0},ct.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},ct.prototype.get=function(t){return this.__data__.get(t)},ct.prototype.has=function(t){return this.__data__.has(t)},ct.prototype.set=function(t,n){var e=this.__data__;if(e instanceof it){var o=e.__data__;if(!nt||o.length<r-1)return o.push([t,n]),this.size=++e.size,this;e=this.__data__=new ut(o)}return e.set(t,n),this.size=e.size,this};var ht,vt=function(t,n,e){for(var r=-1,o=Object(t),i=e(t),u=i.length;u--;){var c=i[ht?u:++r];if(!1===n(o[c],c,o))break}return t};function _t(t){return null==t?void 0===t?_:p:Q&&Q in Object(t)?function(t){var n=M.call(t,Q),e=t[Q];try{t[Q]=void 0;var r=!0}catch(t){}var o=R.call(t);r&&(n?t[Q]=e:delete t[Q]);return o}(t):function(t){return R.call(t)}(t)}function yt(t){return Bt(t)&&_t(t)==a}function dt(t){return!(!kt(t)||function(t){return!!D&&D in t}(t))&&(Et(t)?q:y).test(function(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function bt(t){if(!kt(t))return function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}(t);var n=zt(t),e=[];for(var r in t)("constructor"!=r||!n&&M.call(t,r))&&e.push(r);return e}function gt(t,n,e,r,o){t!==n&&vt(n,(function(i,u){if(o||(o=new ct),kt(i))!function(t,n,e,r,o,i,u){var c=xt(t,e),a=xt(n,e),f=u.get(a);if(f)return void ft(t,e,f);var s=i?i(c,a,e+"",t,n,u):void 0,l=void 0===s;if(l){var p=Ut(a),v=!p&&Pt(a),_=!p&&!v&&Mt(a);s=a,p||v||_?Ut(c)?s=c:Bt(j=c)&&$t(j)?s=function(t,n){var e=-1,r=t.length;n||(n=Array(r));for(;++e<r;)n[e]=t[e];return n}(c):v?(l=!1,s=function(t,n){if(n)return t.slice();var e=t.length,r=N?N(e):new t.constructor(e);return t.copy(r),r}(a,!0)):_?(l=!1,y=a,d=!0?(b=y.buffer,g=new b.constructor(b.byteLength),new L(g).set(new L(b)),g):y.buffer,s=new y.constructor(d,y.byteOffset,y.length)):s=[]:function(t){if(!Bt(t)||_t(t)!=h)return!1;var n=W(t);if(null===n)return!0;var e=M.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&B.call(e)==V}(a)||Tt(a)?(s=c,Tt(c)?s=function(t){return function(t,n,e,r){var o=!e;e||(e={});var i=-1,u=n.length;for(;++i<u;){var c=n[i],a=r?r(e[c],t[c],c,e,t):void 0;void 0===a&&(a=t[c]),o?pt(e,c,a):st(e,c,a)}return e}(t,Rt(t))}(c):kt(c)&&!Et(c)||(s=function(t){return"function"!=typeof t.constructor||zt(t)?{}:rt(W(t))}(a))):l=!1}var y,d,b,g;var j;l&&(u.set(a,s),o(s,a,r,i,u),u.delete(a));ft(t,e,s)}(t,n,u,e,gt,r,o);else{var c=r?r(xt(t,u),i,u+"",t,n,o):void 0;void 0===c&&(c=i),ft(t,u,c)}}),Rt)}function jt(t,n){return St(function(t,n,e){return n=Z(void 0===n?t.length-1:n,0),function(){for(var r=arguments,o=-1,i=Z(r.length-n,0),u=Array(i);++o<i;)u[o]=r[n+o];o=-1;for(var c=Array(n+1);++o<n;)c[o]=r[o];return c[n]=e(u),F(t,this,c)}}(t,n,Ct),t+"")}function Ot(t,n,e,r,o,i){return kt(t)&&kt(n)&&(i.set(n,t),gt(t,n,void 0,Ot,i),i.delete(n)),t}function wt(t,n){var e,r,o=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?o["string"==typeof n?"string":"hash"]:o.map}function mt(t,n){var e=function(t,n){return null==t?void 0:t[n]}(t,n);return dt(e)?e:void 0}function At(t,n){var e=typeof t;return!!(n=null==n?c:n)&&("number"==e||"symbol"!=e&&d.test(t))&&t>-1&&t%1==0&&t<n}function zt(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||I)}function xt(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var St=function(t){var n=0,e=0;return function(){var r=tt(),o=u-(r-e);if(e=r,o>0){if(++n>=i)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(X?function(t,n){return X(t,"toString",{configurable:!0,enumerable:!1,value:(e=n,function(){return e}),writable:!0});var e}:Ct);function Ft(t,n){return t===n||t!=t&&n!=n}var Tt=yt(function(){return arguments}())?yt:function(t){return Bt(t)&&M.call(t,"callee")&&!J.call(t,"callee")},Ut=Array.isArray;function $t(t){return null!=t&&It(t.length)&&!Et(t)}var Pt=Y||function(){return!1};function Et(t){if(!kt(t))return!1;var n=_t(t);return n==s||n==l||n==f||n==v}function It(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function kt(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Bt(t){return null!=t&&"object"==typeof t}var Mt=S?function(t){return function(n){return t(n)}}(S):function(t){return Bt(t)&&It(t.length)&&!!b[_t(t)]};var Dt=jt((function(t){return t.push(void 0,Ot),F(qt,void 0,t)}));function Rt(t){return $t(t)?at(t,!0):bt(t)}var Vt,qt=(Vt=function(t,n,e,r){gt(t,n,e,r)},jt((function(t,n){var e=-1,r=n.length,o=r>1?n[r-1]:void 0,i=r>2?n[2]:void 0;for(o=Vt.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,n,e){if(!kt(e))return!1;var r=typeof n;return!!("number"==r?$t(e)&&At(n,e.length):"string"==r&&n in e)&&Ft(e[n],t)}(n[0],n[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++e<r;){var u=n[e];u&&Vt(t,u,e,o)}return t})));function Ct(t){return t}n.exports=Dt}));function e(t){return null!=t&&"object"==typeof t}function r(t){return null!=t&&"function"==typeof t}function o(t){return t.includes(":")}function i(t,r){let u={...r};for(let[r,c]of Object.entries(u))e(c)&&!o(r)&&(t[r]&&u[r]&&(u=n(i(t,u[r]),u)),delete u[r]);return u}function u(t,e,u){const c=u&&e[u]||{};let a=i(t,n({...c},e));for(let[n,e]of Object.entries(a))if(r(e))a[n]=e(t);else if(o(n)){let e={};for(let[o,i]of Object.entries(a[n]))e[o]=r(i)?i(t):i;a[n]=e}return a}return function(t,e={}){function r(o){const c=i(o,o.theme[t])||{},a=u(o,e);return n(...r.styles.map(t=>t(o)),a,c)}return r.styles=[],r.addVariant=function(t,n){return this.styles.push((function(e){const r=e[t];return u(e,n,r)})),this},r.addGlobalVariant=function(t,n){return this.styles.push((function(e){const r=e.theme[t];return u(e,n,r)})),this},r}}));
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self)["styled-variants"]=n()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var n=function(t,n){return t(n={exports:{}},n.exports),n.exports}((function(n,e){var r=200,o="__lodash_hash_undefined__",i=800,u=16,c=9007199254740991,a="[object Arguments]",f="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",p="[object Null]",h="[object Object]",v="[object Proxy]",_="[object Undefined]",y=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[a]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[s]=b["[object Map]"]=b["[object Number]"]=b[h]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var g="object"==typeof t&&t&&t.Object===Object&&t,j="object"==typeof self&&self&&self.Object===Object&&self,O=g||j||Function("return this")(),w=e&&!e.nodeType&&e,m=w&&n&&!n.nodeType&&n,A=m&&m.exports===w,z=A&&g.process,x=function(){try{var t=m&&m.require&&m.require("util").types;return t||z&&z.binding&&z.binding("util")}catch(t){}}(),S=x&&x.isTypedArray;function F(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}var T,U,$,P=Array.prototype,E=Function.prototype,I=Object.prototype,k=O["__core-js_shared__"],B=E.toString,M=I.hasOwnProperty,D=(T=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",R=I.toString,V=B.call(Object),q=RegExp("^"+B.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=A?O.Buffer:void 0,G=O.Symbol,L=O.Uint8Array,N=C?C.allocUnsafe:void 0,W=(U=Object.getPrototypeOf,$=Object,function(t){return U($(t))}),H=Object.create,J=I.propertyIsEnumerable,K=P.splice,Q=G?G.toStringTag:void 0,X=function(){try{var t=mt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Y=C?C.isBuffer:void 0,Z=Math.max,tt=Date.now,nt=mt(O,"Map"),et=mt(Object,"create"),rt=function(){function t(){}return function(n){if(!kt(n))return{};if(H)return H(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();function ot(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function it(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function ut(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function ct(t){var n=this.__data__=new it(t);this.size=n.size}function at(t,n){var e=Ut(t),r=!e&&Tt(t),o=!e&&!r&&Pt(t),i=!e&&!r&&!o&&Mt(t),u=e||r||o||i,c=u?function(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}(t.length,String):[],a=c.length;for(var f in t)!n&&!M.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||At(f,a))||c.push(f);return c}function ft(t,n,e){(void 0===e||Ft(t[n],e))&&(void 0!==e||n in t)||pt(t,n,e)}function st(t,n,e){var r=t[n];M.call(t,n)&&Ft(r,e)&&(void 0!==e||n in t)||pt(t,n,e)}function lt(t,n){for(var e=t.length;e--;)if(Ft(t[e][0],n))return e;return-1}function pt(t,n,e){"__proto__"==n&&X?X(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}ot.prototype.clear=function(){this.__data__=et?et(null):{},this.size=0},ot.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},ot.prototype.get=function(t){var n=this.__data__;if(et){var e=n[t];return e===o?void 0:e}return M.call(n,t)?n[t]:void 0},ot.prototype.has=function(t){var n=this.__data__;return et?void 0!==n[t]:M.call(n,t)},ot.prototype.set=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=et&&void 0===n?o:n,this},it.prototype.clear=function(){this.__data__=[],this.size=0},it.prototype.delete=function(t){var n=this.__data__,e=lt(n,t);return!(e<0)&&(e==n.length-1?n.pop():K.call(n,e,1),--this.size,!0)},it.prototype.get=function(t){var n=this.__data__,e=lt(n,t);return e<0?void 0:n[e][1]},it.prototype.has=function(t){return lt(this.__data__,t)>-1},it.prototype.set=function(t,n){var e=this.__data__,r=lt(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},ut.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(nt||it),string:new ot}},ut.prototype.delete=function(t){var n=wt(this,t).delete(t);return this.size-=n?1:0,n},ut.prototype.get=function(t){return wt(this,t).get(t)},ut.prototype.has=function(t){return wt(this,t).has(t)},ut.prototype.set=function(t,n){var e=wt(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},ct.prototype.clear=function(){this.__data__=new it,this.size=0},ct.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},ct.prototype.get=function(t){return this.__data__.get(t)},ct.prototype.has=function(t){return this.__data__.has(t)},ct.prototype.set=function(t,n){var e=this.__data__;if(e instanceof it){var o=e.__data__;if(!nt||o.length<r-1)return o.push([t,n]),this.size=++e.size,this;e=this.__data__=new ut(o)}return e.set(t,n),this.size=e.size,this};var ht,vt=function(t,n,e){for(var r=-1,o=Object(t),i=e(t),u=i.length;u--;){var c=i[ht?u:++r];if(!1===n(o[c],c,o))break}return t};function _t(t){return null==t?void 0===t?_:p:Q&&Q in Object(t)?function(t){var n=M.call(t,Q),e=t[Q];try{t[Q]=void 0;var r=!0}catch(t){}var o=R.call(t);r&&(n?t[Q]=e:delete t[Q]);return o}(t):function(t){return R.call(t)}(t)}function yt(t){return Bt(t)&&_t(t)==a}function dt(t){return!(!kt(t)||function(t){return!!D&&D in t}(t))&&(Et(t)?q:y).test(function(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function bt(t){if(!kt(t))return function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}(t);var n=zt(t),e=[];for(var r in t)("constructor"!=r||!n&&M.call(t,r))&&e.push(r);return e}function gt(t,n,e,r,o){t!==n&&vt(n,(function(i,u){if(o||(o=new ct),kt(i))!function(t,n,e,r,o,i,u){var c=xt(t,e),a=xt(n,e),f=u.get(a);if(f)return void ft(t,e,f);var s=i?i(c,a,e+"",t,n,u):void 0,l=void 0===s;if(l){var p=Ut(a),v=!p&&Pt(a),_=!p&&!v&&Mt(a);s=a,p||v||_?Ut(c)?s=c:Bt(j=c)&&$t(j)?s=function(t,n){var e=-1,r=t.length;n||(n=Array(r));for(;++e<r;)n[e]=t[e];return n}(c):v?(l=!1,s=function(t,n){if(n)return t.slice();var e=t.length,r=N?N(e):new t.constructor(e);return t.copy(r),r}(a,!0)):_?(l=!1,y=a,d=!0?(b=y.buffer,g=new b.constructor(b.byteLength),new L(g).set(new L(b)),g):y.buffer,s=new y.constructor(d,y.byteOffset,y.length)):s=[]:function(t){if(!Bt(t)||_t(t)!=h)return!1;var n=W(t);if(null===n)return!0;var e=M.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&B.call(e)==V}(a)||Tt(a)?(s=c,Tt(c)?s=function(t){return function(t,n,e,r){var o=!e;e||(e={});var i=-1,u=n.length;for(;++i<u;){var c=n[i],a=r?r(e[c],t[c],c,e,t):void 0;void 0===a&&(a=t[c]),o?pt(e,c,a):st(e,c,a)}return e}(t,Rt(t))}(c):kt(c)&&!Et(c)||(s=function(t){return"function"!=typeof t.constructor||zt(t)?{}:rt(W(t))}(a))):l=!1}var y,d,b,g;var j;l&&(u.set(a,s),o(s,a,r,i,u),u.delete(a));ft(t,e,s)}(t,n,u,e,gt,r,o);else{var c=r?r(xt(t,u),i,u+"",t,n,o):void 0;void 0===c&&(c=i),ft(t,u,c)}}),Rt)}function jt(t,n){return St(function(t,n,e){return n=Z(void 0===n?t.length-1:n,0),function(){for(var r=arguments,o=-1,i=Z(r.length-n,0),u=Array(i);++o<i;)u[o]=r[n+o];o=-1;for(var c=Array(n+1);++o<n;)c[o]=r[o];return c[n]=e(u),F(t,this,c)}}(t,n,Ct),t+"")}function Ot(t,n,e,r,o,i){return kt(t)&&kt(n)&&(i.set(n,t),gt(t,n,void 0,Ot,i),i.delete(n)),t}function wt(t,n){var e,r,o=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?o["string"==typeof n?"string":"hash"]:o.map}function mt(t,n){var e=function(t,n){return null==t?void 0:t[n]}(t,n);return dt(e)?e:void 0}function At(t,n){var e=typeof t;return!!(n=null==n?c:n)&&("number"==e||"symbol"!=e&&d.test(t))&&t>-1&&t%1==0&&t<n}function zt(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||I)}function xt(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var St=function(t){var n=0,e=0;return function(){var r=tt(),o=u-(r-e);if(e=r,o>0){if(++n>=i)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(X?function(t,n){return X(t,"toString",{configurable:!0,enumerable:!1,value:(e=n,function(){return e}),writable:!0});var e}:Ct);function Ft(t,n){return t===n||t!=t&&n!=n}var Tt=yt(function(){return arguments}())?yt:function(t){return Bt(t)&&M.call(t,"callee")&&!J.call(t,"callee")},Ut=Array.isArray;function $t(t){return null!=t&&It(t.length)&&!Et(t)}var Pt=Y||function(){return!1};function Et(t){if(!kt(t))return!1;var n=_t(t);return n==s||n==l||n==f||n==v}function It(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function kt(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Bt(t){return null!=t&&"object"==typeof t}var Mt=S?function(t){return function(n){return t(n)}}(S):function(t){return Bt(t)&&It(t.length)&&!!b[_t(t)]};var Dt=jt((function(t){return t.push(void 0,Ot),F(qt,void 0,t)}));function Rt(t){return $t(t)?at(t,!0):bt(t)}var Vt,qt=(Vt=function(t,n,e,r){gt(t,n,e,r)},jt((function(t,n){var e=-1,r=n.length,o=r>1?n[r-1]:void 0,i=r>2?n[2]:void 0;for(o=Vt.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,n,e){if(!kt(e))return!1;var r=typeof n;return!!("number"==r?$t(e)&&At(n,e.length):"string"==r&&n in e)&&Ft(e[n],t)}(n[0],n[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++e<r;){var u=n[e];u&&Vt(t,u,e,o)}return t})));function Ct(t){return t}n.exports=Dt}));function e(t){return null!=t&&"object"==typeof t}function r(t){return null!=t&&"function"==typeof t}function o(t){return t.includes(":")}function i(t){return"!"===t.charAt(0)}function u(t,r){let c={...r};for(let[r,a]of Object.entries(c)){const f=i(r);let s=r;if(f&&(s=r.substring(1)),e(a)&&!o(r)){(f?!t[s]:!!t[s])&&(c=n(u(t,c[r]),c)),delete c[r]}}return c}function c(t,e,i){const c=i&&e[i]||{};let a=u(t,n({...c},e));for(let[n,e]of Object.entries(a))if(r(e))a[n]=e(t);else if(o(n)){let e={};for(let[o,i]of Object.entries(a[n]))e[o]=r(i)?i(t):i;a[n]=e}return a}return function(t,e={}){function r(o){const i=u(o,o.theme[t])||{},a=c(o,e);return n(...r.styles.map(t=>t(o)),a,i)}return r.styles=[],r.addVariant=function(t,n){return this.styles.push((function(e){const r=e[t];return c(e,n,r)})),this},r.addGlobalVariant=function(t,n){return this.styles.push((function(e){const r=e.theme[t];return c(e,n,r)})),this},r}}));
{
"name": "styled-variants",
"version": "2.0.1",
"version": "2.1.1",
"description": "A scalable styled-component theming system that fully leverages JavaScript as a language for styles authoring and theming.",

@@ -5,0 +5,0 @@ "author": "Justin Conner <justindconner2@gmail.com> (https://justinconner.dev/)",

@@ -23,5 +23,4 @@ <h1 align="center" text-align="center">

## Table Of Contents
<h2>Table Of Contents</h2>
- [Table Of Contents](#table-of-contents)
- [Why Another Theming Library?](#why-another-theming-library)

@@ -32,2 +31,3 @@ - [Install](#install)

- [Boolean Variants](#boolean-variants)
- [Boolean Variant Negation](#boolean-variant-negation)
- [Access to Props](#access-to-props)

@@ -40,3 +40,3 @@ - [Multiple Variants](#multiple-variants)

- [FAQ](#faq)
- [How do I override pseudo classes?](#how-do-i-override-pseudo-classes)
- [Does this package work with `styled-system`?](#does-this-package-work-with-styled-system)
- [I have a super complex variant that I need to add, will this library support it?](#i-have-a-super-complex-variant-that-i-need-to-add-will-this-library-support-it)

@@ -52,11 +52,11 @@ - [Contributing](#contributing)

What this library is looking to empower and contain:
This goals of this library are:
1. Scalable theming
2. Both local variant (passed via props) and global variant (passed via ThemeProvider) support
3. Multiple variants support
4. Remove redundant code (by taking advantage of the first-class object functionality stated above)
5. Small distribution size
2. Support local (passed via props) and global (passed via ThemeProvider) variants
3. Support multiple variants
4. Eliminate redundant code (by taking advantage of the first-class object functionality stated above)
5. Minimal distribution size
All while encouraging clean, human-readable code.
We want to do this while encouraging and enabling clean, human-readable code.

@@ -124,3 +124,3 @@ ## Install

This is not only difficult to read, but it also does not scale well.
This fails to meet our objectives on two fronts: it is difficult to read and does not scale well.

@@ -169,3 +169,3 @@ **_Imagine_** what it would look like if we had even more size options or if "size" affected more css attributes!

.addVariant("size", size)
.addGlobalVariant("type", type);
.addGlobalVariant("mode", mode);

@@ -179,4 +179,6 @@ export const ThemedButton = styled.button(ButtonTheme);

Another issues with most theming libraries is that they do not support multiple variants very well. If we have separate states (e.g. isDisabled, isActive, isOpen, etc) for each variant, we can easily incorporate those too:
Another pain point with most theming libraries is the lack of support for multiple variants.
If we have separate states (e.g. isDisabled, isActive, isOpen, etc) for each variant, we can easily incorporate those too:
```js

@@ -224,2 +226,26 @@ const typeVariant = ButtonTheme.addVariant("type", {

### Boolean Variant Negation
Most actionable elements (e.g. inputs, buttons, etc) will accept a `disabled` or `isDisabled` prop that removes hover/focus visual states. We can easily apply that logic by prefixing the boolean variant name with a `!` just like in JavaScript:
```js
const typeVariant = ButtonTheme.addVariant("type", {
isDisabled: {
opacity: 0.5,
cursor: "default",
pointerEvents: "none",
},
secondary: {
backgroundColor: "cyan",
"!isDisabled": {
"&:hover, &:focus": {
backgroundColor: "blue",
},
},
},
});
```
---
### Access to Props

@@ -290,4 +316,6 @@

The higher the index of the function call, the higher the precedence. In this case, if there were conflicting styles between the variants, the `size` styles would overwrite the conflicting value of the `type`.
Precedence is set based on the order of the function calls. The later the function is called, the greater the precedence.
In this case, if there were conflicting styles between the variants, the `size` styles would overwrite the conflicting value of the `type`.
---

@@ -315,3 +343,3 @@

Again, the higher the index of the parameter, the higher the precedence. In this case, if there were conflicting styles between the themes, the `ShapedButtonTheme` styles would overwrite the conflicting value of the `BaseButtonTheme`.
Again, precedence is set based on the function call order. In this case, if there were conflicting styles between the themes, the `ShapedButtonTheme` styles would overwrite the conflicting value of the `BaseButtonTheme`.

@@ -336,3 +364,3 @@ ---

color: "black",
"&:focus": {
"&:hover, &:focus": {
color: "purple",

@@ -373,3 +401,3 @@ },

then make sure we pass the "mode" `globalVariant` via the `ThemeProvider`:
Then, to make use of the "mode", we pass the "mode" `globalVariant` via the `ThemeProvider`:

@@ -408,6 +436,4 @@ ```js

so at the root of our app, if we'd like to globally style all of our buttons, we can do that by adding a `Button` key and the values we want to the `ThemeProvider`:
If we'd like to globally style all of our buttons, we can do that by adding a `Button` key and the values we want to the `ThemeProvider` in our app's root:
> Note: this does **NOT** support basic variants, but does support boolean variants
```js

@@ -432,2 +458,4 @@ const MyApp = () => {

> Note: We do **NOT** currently support basic variants, but do have support for boolean variants.
---

@@ -437,42 +465,25 @@

### How do I override pseudo classes?
### Does this package work with `styled-system`?
The best example of a need to override pseudo classes is the need for a `disabled` state that would still allow pointer events (probably to allow for a tooltip on hover to explain why the component is disabled). When something is `disabled`, we normally want to remove some functionality. We can easily do that by setting the attributes back to the base values, which can be easily done if we set out base values as their own variable:
`styled-system` should be mainly used for rapid proto-typing, and `styled-variants` for consistent, long-term theming. Adding `styled-system` capabilities would really only lower performance and add complexity without adding too much gain, **BUT** the packages can be used side-by-side:
```js
const isDisabled = {
opacity: 0.5,
cursor: "default",
outline: "none",
};
import { space, typography } from "styled-system";
import createTheme from "styled-variants";
import styled from "styled-components";
const primaryBaseStyles = {
color: "white",
borderColor: "purple",
borderRadius: "5px",
};
const size = /* previous example's size variant code */;
const variant = {
isDisabled,
primary: {
...primaryBaseStyles,
"&:focus": {
color: "green",
cursor: "pointer",
},
isDisabled: {
"&:focus": {
...primaryBaseStyles,
cursor: "initial",
},
},
},
};
const ButtonTheme = createTheme("Button").addVariant("size", size);
export const ButtonTheme = createTheme("Button").addVariant("variant", variant);
const ThemedButton = styled.button(ButtonTheme, space, typography);
<ThemedButton size="large" m={[2,4]} textAlign="center" />
```
> Note: Following the `styled-components` documentation, you're going to want `ButtonTheme` to be the first parameter so your `styled-system` props override any of the theme styles.
### I have a super complex variant that I need to add, will this library support it?
It honestly depends on the amount of complexity, but if your variants are super complex with a lot of pseudo classes and nested dynamic selectors, odds are that it will make less sense to use this library in this case. You can very easily combine both basic styled-component styles and styled-variant styles:
It honestly depends on the amount of complexity, but if your variants are super complex with a lot of pseudo classes and nested dynamic selectors, odds are that it will make less sense to use this library in this case. You can very easily combine both basic `styled-component` styles and `styled-variant` styles:

@@ -503,3 +514,3 @@ ```js

To see you changes as you make them, an example app has been created. You can run it with:
To see changes as you make them, an example app has been created. You can run it with:

@@ -506,0 +517,0 @@ ```bash

@@ -15,7 +15,20 @@ import defaultsDeep from "lodash.defaultsdeep";

function _isNegation(value) {
return value.charAt(0) === "!";
}
function parseForBooleanVariants(props, sheet) {
let variantSheet = { ...sheet };
for (let [key, value] of Object.entries(variantSheet)) {
const shouldNegate = _isNegation(key);
let sanitizedKey = key;
if (shouldNegate) sanitizedKey = key.substring(1);
if (_isObject(value) && !_isPseudoClass(key)) {
if (!!props[key] && variantSheet[key]) {
const shouldApplyVariant = shouldNegate
? !props[sanitizedKey]
: !!props[sanitizedKey];
if (shouldApplyVariant) {
// * The more nested the values, the higher the precedence

@@ -22,0 +35,0 @@ variantSheet = defaultsDeep(

@@ -5,2 +5,3 @@ - Add TypeScript types

- Fix publish script? Tries to publish twice
- Theme provider variable (i.e. app/mode) with local variants implementation
- Add a gif as an example
- Add caching (see styled-system)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc