Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

polished

Package Overview
Dependencies
Maintainers
3
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polished - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

2

dist/polished.min.js

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

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.polished={})}(this,function(e){"use strict";function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}var l=["Top","Right","Bottom","Left"];function p(e,r){if(!e)return r.toLowerCase();var t=e.split("-");if(1<t.length)return t.splice(1,0,r),t.reduce(function(e,r){return""+e+o(r)});var n=e.replace(/([a-z])([A-Z])/g,"$1"+r+"$2");return e===n?""+e+r:n}function a(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var a=t[0],o=t[1],i=void 0===o?a:o,u=t[2],s=void 0===u?a:u,f=t[3];return function(e,r){for(var t={},n=0;n<r.length;n+=1)(r[n]||0===r[n])&&(t[p(e,l[n])]=r[n]);return t}(e,[a,i,s,void 0===f?i:f])}function i(e,r){return e.substr(-r.length)===r}function u(e){var r=parseFloat(e);return isNaN(r)?e:r}var r=function(a){return function(e,r){void 0===r&&(r="16px");var t=e,n=r;if("string"==typeof e){if(!i(e,"px"))throw new Error('Expected a string ending in "px" or a number passed as the first argument to '+a+'(), got "'+e+'" instead.');t=u(e)}if("string"==typeof r){if(!i(r,"px"))throw new Error('Expected a string ending in "px" or a number passed as the second argument to '+a+'(), got "'+r+'" instead.');n=u(r)}if("string"==typeof t)throw new Error('Passed invalid pixel value ("'+e+'") to '+a+'(), please pass a value like "12px" or 12.');if("string"==typeof n)throw new Error('Passed invalid base value ("'+r+'") to '+a+'(), please pass a value like "12px" or 12.');return""+t/n+a}},t=r("em"),n=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function m(e){if("string"!=typeof e)return[e,""];var r=e.match(n);return r?[parseFloat(e),r[2]]:[e,void 0]}var s={minorSecond:1.067,majorSecond:1.125,minorThird:1.2,majorThird:1.25,perfectFourth:1.333,augFourth:1.414,perfectFifth:1.5,minorSixth:1.6,goldenSection:1.618,majorSixth:1.667,minorSeventh:1.778,majorSeventh:1.875,octave:2,majorTenth:2.5,majorEleventh:2.667,majorTwelfth:3,doubleOctave:4};var f=r("rem");function h(e,r,t,n){void 0===t&&(t="320px"),void 0===n&&(n="1200px");var a=m(e),o=a[0],i=a[1],u=m(r),s=u[0],f=u[1],l=m(t),p=l[0],d=l[1],c=m(n),b=c[0],h=c[1];if("number"!=typeof p||"number"!=typeof b||!d||!h||d!==h)throw new Error("minScreen and maxScreen must be provided as stringified numbers with the same units.");if("number"!=typeof o||"number"!=typeof s||!i||!f||i!==f)throw new Error("fromSize and toSize must be provided as stringified numbers with the same units.");var g=(o-s)/(p-b);return"calc("+(s-g*b).toFixed(2)+i+" + "+(100*g).toFixed(2)+"vw)"}function g(){return(g=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function d(e){return void 0===e&&(e=1.3),"\n @media only screen and (-webkit-min-device-pixel-ratio: "+e+"),\n only screen and (min--moz-device-pixel-ratio: "+e+"),\n only screen and (-o-min-device-pixel-ratio: "+e+"/1),\n only screen and (min-resolution: "+Math.round(96*e)+"dpi),\n only screen and (min-resolution: "+e+"dppx)\n "}function c(){var e,r,t=(e=["radial-gradient(","","","",")"],r||(r=e.slice(0)),e.raw=r,e);return c=function(){return t},t}var b={easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};function v(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderColor"].concat(r))}var y=["bottom","left","top","right"];function w(e){return Math.round(255*e)}function x(e,r,t){return w(e)+","+w(r)+","+w(t)}function k(e,r,t,n){if(void 0===n&&(n=x),0===r)return n(t,t,t);var a=e%360/60,o=(1-Math.abs(2*t-1))*r,i=o*(1-Math.abs(a%2-1)),u=0,s=0,f=0;0<=a&&a<1?(u=o,s=i):1<=a&&a<2?(u=i,s=o):2<=a&&a<3?(s=o,f=i):3<=a&&a<4?(s=i,f=o):4<=a&&a<5?(u=i,f=o):5<=a&&a<6&&(u=o,f=i);var l=t-o/2;return n(u+l,s+l,f+l)}var S={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"};var z=/^#[a-fA-F0-9]{6}$/,I=/^#[a-fA-F0-9]{8}$/,F=/^#[a-fA-F0-9]{3}$/,A=/^#[a-fA-F0-9]{4}$/,E=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,j=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,O=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,C=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function P(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var r=function(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return S[r]?"#"+S[r]:e}(e);if(r.match(z))return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16)};if(r.match(I)){var t=parseFloat((parseInt(""+r[7]+r[8],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16),alpha:t}}if(r.match(F))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};if(r.match(A)){var n=parseFloat((parseInt(""+r[4]+r[4],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16),alpha:n}}var a=E.exec(r);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=j.exec(r);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])};var i=O.exec(r);if(i){var u="rgb("+k(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",s=E.exec(u);if(!s)throw new Error("Couldn't generate valid rgb string from "+r+", it returned "+u+".");return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var f=C.exec(r);if(f){var l="rgb("+k(parseInt(""+f[1],10),parseInt(""+f[2],10)/100,parseInt(""+f[3],10)/100)+")",p=E.exec(l);if(!p)throw new Error("Couldn't generate valid rgb string from "+r+", it returned "+l+".");return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+f[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function W(e){return function(e){var r,t=e.red/255,n=e.green/255,a=e.blue/255,o=Math.max(t,n,a),i=Math.min(t,n,a),u=(o+i)/2;if(o===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var s=o-i,f=.5<u?s/(2-o-i):s/(o+i);switch(o){case t:r=(n-a)/s+(n<a?6:0);break;case n:r=(a-t)/s+2;break;default:r=(t-n)/s+4}return r*=60,void 0!==e.alpha?{hue:r,saturation:f,lightness:u,alpha:e.alpha}:{hue:r,saturation:f,lightness:u}}(P(e))}var R=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function T(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function M(e){return T(Math.round(255*e))}function $(e,r,t){return R("#"+M(e)+M(r)+M(t))}function q(e,r,t){return k(e,r,t,$)}function B(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return q(e,r,t);if("object"==typeof e&&void 0===r&&void 0===t)return q(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}function Q(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?q(e,r,t):"rgba("+k(e,r,t)+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?q(e.hue,e.saturation,e.lightness):"rgba("+k(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}function H(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return R("#"+T(e)+T(r)+T(t));if("object"==typeof e&&void 0===r&&void 0===t)return R("#"+T(e.red)+T(e.green)+T(e.blue));throw new Error("Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).")}function N(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var a=P(e);return"rgba("+a.red+","+a.green+","+a.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?H(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?H(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}var D=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},L=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},V=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},U=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha},_="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function G(e){if("object"!=typeof e)throw new Error(_);if(L(e))return N(e);if(D(e))return H(e);if(U(e))return Q(e);if(V(e))return B(e);throw new Error(_)}function J(e){return function r(t,n,a){return function(){var e=a.concat(Array.prototype.slice.call(arguments));return e.length>=n?t.apply(this,e):r(t,n,e)}}(e,e.length,[])}function Y(e,r){var t=W(r);return G(g({},t,{hue:(t.hue+parseFloat(e))%360}))}var Z=J(Y);function K(e,r,t){return Math.max(e,Math.min(r,t))}function X(e,r){var t=W(r);return G(g({},t,{lightness:K(0,1,t.lightness-parseFloat(e))}))}var ee=J(X);function re(e,r){var t=W(r);return G(g({},t,{saturation:K(0,1,t.saturation-parseFloat(e))}))}var te=J(re);function ne(e){var t=P(e),r=Object.keys(t).map(function(e){var r=t[e]/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),n=r[0],a=r[1],o=r[2];return parseFloat((.2126*n+.7152*a+.0722*o).toFixed(3))}function ae(e,r){var t=W(r);return G(g({},t,{lightness:K(0,1,t.lightness+parseFloat(e))}))}var oe=J(ae);function ie(e,r,t){var n=P(r),a=g({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),o=P(t),i=g({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),u=a.alpha-i.alpha,s=2*parseFloat(e)-1,f=((s*u==-1?s:s+u)/(1+s*u)+1)/2,l=1-f;return N({red:Math.floor(a.red*f+i.red*l),green:Math.floor(a.green*f+i.green*l),blue:Math.floor(a.blue*f+i.blue*l),alpha:a.alpha+(i.alpha-a.alpha)*(parseFloat(e)/1)})}var ue=J(ie);function se(e,r){var t=P(r);return N(g({},t,{alpha:K(0,1,(100*("number"==typeof t.alpha?t.alpha:1)+100*parseFloat(e))/100)}))}var fe=J(se);function le(e){return.179<ne(e)?"#000":"#fff"}var pe=J(le);function de(e,r){var t=W(r);return G(g({},t,{saturation:K(0,1,t.saturation+parseFloat(e))}))}var ce=J(de);function be(e,r){return G(g({},W(r),{hue:parseFloat(e)}))}var he=J(be);function ge(e,r){return G(g({},W(r),{lightness:parseFloat(e)}))}var me=J(ge);function ve(e,r){return G(g({},W(r),{saturation:parseFloat(e)}))}var ye=J(ve);function we(e,r){return ue(parseFloat(e),"rgb(0, 0, 0)",r)}var xe=J(we);function ke(e,r){return ue(parseFloat(e),"rgb(255, 255, 255)",r)}var Se=J(ke);function ze(e,r){var t=P(r);return N(g({},t,{alpha:K(0,1,(100*("number"==typeof t.alpha?t.alpha:1)-100*parseFloat(e))/100)}))}var Ie=J(ze);var Fe=["top","right","bottom","left"];function Ae(e,r){return e(r?":"+r:"")}function Ee(e,r,t){if(!r)throw new Error("You must provide a template to this method.");if(0===e.length)return Ae(r,null);for(var n=[],a=0;a<e.length;a+=1){if(t&&t.indexOf(e[a])<0)throw new Error("You passed an unsupported selector state to this method.");n.push(Ae(r,e[a]))}return n=n.join(",")}var je=[void 0,null,"active","focus","hover"];function Oe(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}var Ce=["absolute","fixed","relative","static","sticky"];var Pe=[void 0,null,"active","focus","hover"];function We(e){return'input[type="color"]'+e+',\n input[type="date"]'+e+',\n input[type="datetime"]'+e+',\n input[type="datetime-local"]'+e+',\n input[type="email"]'+e+',\n input[type="month"]'+e+',\n input[type="number"]'+e+',\n input[type="password"]'+e+',\n input[type="search"]'+e+',\n input[type="tel"]'+e+',\n input[type="text"]'+e+',\n input[type="time"]'+e+',\n input[type="url"]'+e+',\n input[type="week"]'+e+",\n input:not([type])"+e+",\n textarea"+e}e.adjustHue=Z,e.animation=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Array.isArray(r[0]);if(!n&&8<r.length)throw new Error("The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation");return{animation:r.map(function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new Error("To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')");if(Array.isArray(e)&&8<e.length)throw new Error("The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation");return Array.isArray(e)?e.join(" "):e}).join(", ")}},e.backgroundImages=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}},e.backgrounds=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}},e.between=h,e.border=function(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var a;return"string"==typeof e&&0<=Fe.indexOf(e)?((a={})["border"+o(e)+"Width"]=t[0],a["border"+o(e)+"Style"]=t[1],a["border"+o(e)+"Color"]=t[2],a):(t.unshift(e),{borderWidth:t[0],borderStyle:t[1],borderColor:t[2]})},e.borderColor=v,e.borderRadius=function(e,r){var t,n,a=o(e);if(!r&&0!==r)throw new Error("borderRadius expects a radius value as a string or number as the second argument.");if("Top"===a||"Bottom"===a)return(t={})["border"+a+"RightRadius"]=r,t["border"+a+"LeftRadius"]=r,t;if("Left"===a||"Right"===a)return(n={})["borderTop"+a+"Radius"]=r,n["borderBottom"+a+"Radius"]=r,n;throw new Error('borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.')},e.borderStyle=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderStyle"].concat(r))},e.borderWidth=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderWidth"].concat(r))},e.buttons=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return Ee(r,Oe,je)},e.clearFix=function(e){var r;return void 0===e&&(e="&"),(r={})[e+"::after"]={clear:"both",content:'""',display:"table"},r},e.complement=function(e){var r=W(e);return G(g({},r,{hue:(r.hue+180)%360}))},e.cover=function(e){return void 0===e&&(e=0),{position:"absolute",top:e,right:e,bottom:e,left:e}},e.darken=ee,e.desaturate=te,e.directionalProperty=a,e.ellipsis=function(e){return void 0===e&&(e="100%"),{display:"inline-block",maxWidth:e,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}},e.em=t,e.fluidRange=function(e,r,t){if(void 0===r&&(r="320px"),void 0===t&&(t="1200px"),!Array.isArray(e)&&"object"!=typeof e||null===e)throw new Error("expects either an array of objects or a single object with the properties prop, fromSize, and toSize.");if(Array.isArray(e)){var n={},a={},o=e,i=Array.isArray(o),u=0;for(o=i?o:o[Symbol.iterator]();;){var s,f,l;if(i){if(u>=o.length)break;l=o[u++]}else{if((u=o.next()).done)break;l=u.value}var p=l;if(!p.prop||!p.fromSize||!p.toSize)throw new Error("expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.");a[p.prop]=p.fromSize,n["@media (min-width: "+r+")"]=g({},n["@media (min-width: "+r+")"],((s={})[p.prop]=h(p.fromSize,p.toSize,r,t),s)),n["@media (min-width: "+t+")"]=g({},n["@media (min-width: "+t+")"],((f={})[p.prop]=p.toSize,f))}return g({},a,n)}var d,c,b;if(!e.prop||!e.fromSize||!e.toSize)throw new Error("expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.");return(b={})[e.prop]=e.fromSize,b["@media (min-width: "+r+")"]=((d={})[e.prop]=h(e.fromSize,e.toSize,r,t),d),b["@media (min-width: "+t+")"]=((c={})[e.prop]=e.toSize,c),b},e.fontFace=function(e){var r=e.fontFamily,t=e.fontFilePath,n=e.fontStretch,a=e.fontStyle,o=e.fontVariant,i=e.fontWeight,u=e.fileFormats,s=void 0===u?["eot","woff2","woff","ttf","svg"]:u,f=e.localFonts,l=e.unicodeRange,p=e.fontDisplay,d=e.fontVariationSettings,c=e.fontFeatureSettings;if(!r)throw new Error("fontFace expects a name of a font-family.");if(!t&&!f)throw new Error("fontFace expects either the path to the font file(s) or a name of a local copy.");if(f&&!Array.isArray(f))throw new Error("fontFace expects localFonts to be an array.");if(!Array.isArray(s))throw new Error("fontFace expects fileFormats to be an array.");var b,h,g,m,v,y={"@font-face":{fontFamily:r,src:(b=t,h=f,g=s,v=[],h&&v.push(h.map(function(e){return'local("'+e+'")'}).join(", ")),b&&v.push((m=b,g.map(function(e){return'url("'+m+"."+e+'")'}).join(", "))),v.join(", ")),unicodeRange:l,fontStretch:n,fontStyle:a,fontVariant:o,fontWeight:i,fontDisplay:p,fontVariationSettings:d,fontFeatureSettings:c}};return JSON.parse(JSON.stringify(y))},e.getLuminance=ne,e.getValueAndUnit=m,e.grayscale=function(e){return G(g({},W(e),{saturation:0}))},e.invert=function(e){var r=P(e);return G(g({},r,{red:255-r.red,green:255-r.green,blue:255-r.blue}))},e.hideText=function(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}},e.hideVisually=function(){return{border:"0",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e.hiDPI=d,e.hsl=B,e.hsla=Q,e.lighten=oe,e.margin=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["margin"].concat(r))},e.mix=ue,e.modularScale=function(e,r,t){if(void 0===r&&(r="1em"),void 0===t&&(t="perfectFourth"),"number"!=typeof e)throw new Error("Please provide a number of steps to the modularScale helper.");if("string"==typeof t&&!s[t])throw new Error("Please pass a number or one of the predefined scales to the modularScale helper as the ratio.");var n="string"==typeof r?u(r):r,a="string"==typeof t?s[t]:t;if("string"==typeof n)throw new Error('Invalid value passed as base to modularScale, expected number or em string but got "'+r+'"');return n*Math.pow(a,e)+"em"},e.normalize=function(){var e;return[(e={html:{lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:"0"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{"background-color":"transparent"},"abbr[title]":{borderBottom:"none",textDecoration:"underline"}},e["b,\n strong"]={fontWeight:"bolder"},e["code,\n kbd,\n samp"]={fontFamily:"monospace, monospace",fontSize:"1em"},e.small={fontSize:"80%"},e["sub,\n sup"]={fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},e.sub={bottom:"-0.25em"},e.sup={top:"-0.5em"},e.img={borderStyle:"none"},e["button,\n input,\n optgroup,\n select,\n textarea"]={fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},e["button,\n input"]={overflow:"visible"},e["button,\n select"]={textTransform:"none"},e['button,\n html [type="button"],\n [type="reset"],\n [type="submit"]']={WebkitAppearance:"button"},e['button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner']={borderStyle:"none",padding:"0"},e['button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring']={outline:"1px dotted ButtonText"},e.fieldset={padding:"0.35em 0.625em 0.75em"},e.legend={boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},e.progress={verticalAlign:"baseline"},e.textarea={overflow:"auto"},e['[type="checkbox"],\n [type="radio"]']={boxSizing:"border-box",padding:"0"},e['[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button']={height:"auto"},e['[type="search"]']={WebkitAppearance:"textfield",outlineOffset:"-2px"},e['[type="search"]::-webkit-search-decoration']={WebkitAppearance:"none"},e["::-webkit-file-upload-button"]={WebkitAppearance:"button",font:"inherit"},e.details={display:"block"},e.summary={display:"list-item"},e.template={display:"none"},e["[hidden]"]={display:"none"},e),{"abbr[title]":{textDecoration:"underline dotted"}}]},e.opacify=fe,e.padding=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["padding"].concat(r))},e.parseToHsl=W,e.parseToRgb=P,e.placeholder=function(e,r){var t;return void 0===r&&(r="&"),(t={})[r+"::-webkit-input-placeholder"]=g({},e),t[r+":-moz-placeholder"]=g({},e),t[r+"::-moz-placeholder"]=g({},e),t[r+":-ms-input-placeholder"]=g({},e),t},e.position=function(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return 0<=Ce.indexOf(e)?g({position:e},a.apply(void 0,[""].concat(t))):a.apply(void 0,["",e].concat(t))},e.radialGradient=function(e){var r,t=e.colorStops,n=e.extent,a=e.fallback,o=e.position,i=e.shape;if(!t||t.length<2)throw new Error("radialGradient requries at least 2 color-stops to properly render.");return{backgroundColor:a||(r=t,r[0].split(" ")[0]),backgroundImage:function(e){for(var r="",t=0;t<e.length;t+=1)r+=e[t],3===t&&(t+1<1||arguments.length<=t+1?void 0:arguments[t+1])&&((arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3]))?(r=r.slice(0,-1),r+=", "+(t+1<1||arguments.length<=t+1?void 0:arguments[t+1])):3!==t||t+1<1||arguments.length<=t+1||!arguments[t+1]||(arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3])?(t+1<1||arguments.length<=t+1?void 0:arguments[t+1])&&(r+=(t+1<1||arguments.length<=t+1?void 0:arguments[t+1])+" "):r+=""+(t+1<1||arguments.length<=t+1?void 0:arguments[t+1]);return r.trim()}(c(),o,i,n,t.join(", "))}},e.readableColor=pe,e.rem=f,e.retinaImage=function(e,r,t,n,a){var o;if(void 0===t&&(t="png"),void 0===a&&(a="_2x"),!e)throw new Error("Please supply a filename to retinaImage() as the first argument.");var i=t.replace(/^\./,""),u=n?n+"."+i:""+e+a+"."+i;return(o={backgroundImage:"url("+e+"."+i+")"})[d()]=g({backgroundImage:"url("+u+")"},r?{backgroundSize:r}:{}),o},e.rgb=H,e.rgba=N,e.saturate=ce,e.selection=function(e,r){var t;return void 0===r&&(r=""),(t={})[r+"::-moz-selection"]=g({},e),t[r+"::selection"]=g({},e),t},e.setHue=he,e.setLightness=me,e.setSaturation=ye,e.shade=xe,e.size=function(e,r){return void 0===r&&(r=e),{height:e,width:r}},e.stripUnit=u,e.textInputs=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return Ee(r,We,Pe)},e.timingFunctions=function(e){return b[e]},e.tint=Se,e.toColorString=G,e.transitions=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(Array.isArray(r[0])&&2===r.length){var n=r[1];if("string"!=typeof n)throw new Error("Property must be a string value.");return{transition:r[0].map(function(e){return e+" "+n}).join(", ")}}return{transition:r.join(", ")}},e.transparentize=Ie,e.triangle=function(e){var r=e.pointingDirection,t=e.height,n=e.width,a=e.foregroundColor,o=e.backgroundColor,i=void 0===o?"transparent":o,u=[parseFloat(n),String(n).replace(/\d+/g,"")||"px"],s=[parseFloat(t),String(t).replace(/\d+/g,"")||"px"];if(isNaN(s[0])||isNaN(u[0]))throw new Error("Passed an invalid value to `height` or `width`. Please provide a pixel based unit");var f=y.indexOf(r);return g({width:"0",height:"0",borderWidth:function(e,r,t){switch(e){case"top":return"0 "+t[0]/2+t[1]+" "+r[0]+r[1]+" "+t[0]/2+t[1];case"left":return""+r[0]/2+r[1]+" "+t[0]+t[1]+" "+r[0]/2+r[1]+" 0";case"bottom":return""+r[0]+r[1]+" "+t[0]/2+t[1]+" 0 "+t[0]/2+t[1];case"right":return""+r[0]/2+r[1]+" 0 "+r[0]/2+r[1]+" "+t[0]+t[1];default:throw new Error("Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.")}}(r,s,u),borderStyle:"solid"},v.apply(void 0,Array.from({length:4}).map(function(e,r){return r===f?a:i})))},e.wordWrap=function(e){return void 0===e&&(e="break-word"),{overflowWrap:e,wordWrap:e,wordBreak:"break-word"===e?"break-all":e}},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.polished={})}(this,function(e){"use strict";function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}var l=["Top","Right","Bottom","Left"];function p(e,r){if(!e)return r.toLowerCase();var t=e.split("-");if(1<t.length)return t.splice(1,0,r),t.reduce(function(e,r){return""+e+o(r)});var n=e.replace(/([a-z])([A-Z])/g,"$1"+r+"$2");return e===n?""+e+r:n}function a(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var a=t[0],o=t[1],i=void 0===o?a:o,u=t[2],s=void 0===u?a:u,f=t[3];return function(e,r){for(var t={},n=0;n<r.length;n+=1)(r[n]||0===r[n])&&(t[p(e,l[n])]=r[n]);return t}(e,[a,i,s,void 0===f?i:f])}function i(e,r){return e.substr(-r.length)===r}function u(e){var r=parseFloat(e);return isNaN(r)?e:r}var r=function(a){return function(e,r){void 0===r&&(r="16px");var t=e,n=r;if("string"==typeof e){if(!i(e,"px"))throw new Error('Expected a string ending in "px" or a number passed as the first argument to '+a+'(), got "'+e+'" instead.');t=u(e)}if("string"==typeof r){if(!i(r,"px"))throw new Error('Expected a string ending in "px" or a number passed as the second argument to '+a+'(), got "'+r+'" instead.');n=u(r)}if("string"==typeof t)throw new Error('Passed invalid pixel value ("'+e+'") to '+a+'(), please pass a value like "12px" or 12.');if("string"==typeof n)throw new Error('Passed invalid base value ("'+r+'") to '+a+'(), please pass a value like "12px" or 12.');return""+t/n+a}},t=r("em"),n=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function m(e){if("string"!=typeof e)return[e,""];var r=e.match(n);return r?[parseFloat(e),r[2]]:[e,void 0]}var s={minorSecond:1.067,majorSecond:1.125,minorThird:1.2,majorThird:1.25,perfectFourth:1.333,augFourth:1.414,perfectFifth:1.5,minorSixth:1.6,goldenSection:1.618,majorSixth:1.667,minorSeventh:1.778,majorSeventh:1.875,octave:2,majorTenth:2.5,majorEleventh:2.667,majorTwelfth:3,doubleOctave:4};var f=r("rem");function h(e,r,t,n){void 0===t&&(t="320px"),void 0===n&&(n="1200px");var a=m(e),o=a[0],i=a[1],u=m(r),s=u[0],f=u[1],l=m(t),p=l[0],d=l[1],c=m(n),b=c[0],h=c[1];if("number"!=typeof p||"number"!=typeof b||!d||!h||d!==h)throw new Error("minScreen and maxScreen must be provided as stringified numbers with the same units.");if("number"!=typeof o||"number"!=typeof s||!i||!f||i!==f)throw new Error("fromSize and toSize must be provided as stringified numbers with the same units.");var g=(o-s)/(p-b);return"calc("+(s-g*b).toFixed(2)+i+" + "+(100*g).toFixed(2)+"vw)"}function g(){return(g=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function d(e){return void 0===e&&(e=1.3),"\n @media only screen and (-webkit-min-device-pixel-ratio: "+e+"),\n only screen and (min--moz-device-pixel-ratio: "+e+"),\n only screen and (-o-min-device-pixel-ratio: "+e+"/1),\n only screen and (min-resolution: "+Math.round(96*e)+"dpi),\n only screen and (min-resolution: "+e+"dppx)\n "}function c(){var e,r,t=(e=["radial-gradient(","","","",")"],r||(r=e.slice(0)),e.raw=r,e);return c=function(){return t},t}var b={easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};function v(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderColor"].concat(r))}var y=["bottom","left","top","right"],w=/(\d*\.?\d*)/;function x(e){return Math.round(255*e)}function k(e,r,t){return x(e)+","+x(r)+","+x(t)}function S(e,r,t,n){if(void 0===n&&(n=k),0===r)return n(t,t,t);var a=e%360/60,o=(1-Math.abs(2*t-1))*r,i=o*(1-Math.abs(a%2-1)),u=0,s=0,f=0;0<=a&&a<1?(u=o,s=i):1<=a&&a<2?(u=i,s=o):2<=a&&a<3?(s=o,f=i):3<=a&&a<4?(s=i,f=o):4<=a&&a<5?(u=i,f=o):5<=a&&a<6&&(u=o,f=i);var l=t-o/2;return n(u+l,s+l,f+l)}var z={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"};var I=/^#[a-fA-F0-9]{6}$/,F=/^#[a-fA-F0-9]{8}$/,A=/^#[a-fA-F0-9]{3}$/,E=/^#[a-fA-F0-9]{4}$/,j=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,O=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,C=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,P=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function W(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var r=function(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return z[r]?"#"+z[r]:e}(e);if(r.match(I))return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16)};if(r.match(F)){var t=parseFloat((parseInt(""+r[7]+r[8],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16),alpha:t}}if(r.match(A))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};if(r.match(E)){var n=parseFloat((parseInt(""+r[4]+r[4],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16),alpha:n}}var a=j.exec(r);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=O.exec(r);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])};var i=C.exec(r);if(i){var u="rgb("+S(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",s=j.exec(u);if(!s)throw new Error("Couldn't generate valid rgb string from "+r+", it returned "+u+".");return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var f=P.exec(r);if(f){var l="rgb("+S(parseInt(""+f[1],10),parseInt(""+f[2],10)/100,parseInt(""+f[3],10)/100)+")",p=j.exec(l);if(!p)throw new Error("Couldn't generate valid rgb string from "+r+", it returned "+l+".");return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+f[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function R(e){return function(e){var r,t=e.red/255,n=e.green/255,a=e.blue/255,o=Math.max(t,n,a),i=Math.min(t,n,a),u=(o+i)/2;if(o===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var s=o-i,f=.5<u?s/(2-o-i):s/(o+i);switch(o){case t:r=(n-a)/s+(n<a?6:0);break;case n:r=(a-t)/s+2;break;default:r=(t-n)/s+4}return r*=60,void 0!==e.alpha?{hue:r,saturation:f,lightness:u,alpha:e.alpha}:{hue:r,saturation:f,lightness:u}}(W(e))}var T=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function M(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function $(e){return M(Math.round(255*e))}function q(e,r,t){return T("#"+$(e)+$(r)+$(t))}function B(e,r,t){return S(e,r,t,q)}function Q(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return B(e,r,t);if("object"==typeof e&&void 0===r&&void 0===t)return B(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}function H(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?B(e,r,t):"rgba("+S(e,r,t)+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?B(e.hue,e.saturation,e.lightness):"rgba("+S(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}function N(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return T("#"+M(e)+M(r)+M(t));if("object"==typeof e&&void 0===r&&void 0===t)return T("#"+M(e.red)+M(e.green)+M(e.blue));throw new Error("Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).")}function D(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var a=W(e);return"rgba("+a.red+","+a.green+","+a.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?N(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?N(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}var L=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},V=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},U=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},_=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha},G="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function J(e){if("object"!=typeof e)throw new Error(G);if(V(e))return D(e);if(L(e))return N(e);if(_(e))return H(e);if(U(e))return Q(e);throw new Error(G)}function Y(e){return function r(t,n,a){return function(){var e=a.concat(Array.prototype.slice.call(arguments));return e.length>=n?t.apply(this,e):r(t,n,e)}}(e,e.length,[])}function Z(e,r){var t=R(r);return J(g({},t,{hue:(t.hue+parseFloat(e))%360}))}var K=Y(Z);function X(e,r,t){return Math.max(e,Math.min(r,t))}function ee(e,r){var t=R(r);return J(g({},t,{lightness:X(0,1,t.lightness-parseFloat(e))}))}var re=Y(ee);function te(e,r){var t=R(r);return J(g({},t,{saturation:X(0,1,t.saturation-parseFloat(e))}))}var ne=Y(te);function ae(e){var t=W(e),r=Object.keys(t).map(function(e){var r=t[e]/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),n=r[0],a=r[1],o=r[2];return parseFloat((.2126*n+.7152*a+.0722*o).toFixed(3))}function oe(e,r){var t=R(r);return J(g({},t,{lightness:X(0,1,t.lightness+parseFloat(e))}))}var ie=Y(oe);function ue(e,r,t){var n=W(r),a=g({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),o=W(t),i=g({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),u=a.alpha-i.alpha,s=2*parseFloat(e)-1,f=((s*u==-1?s:s+u)/(1+s*u)+1)/2,l=1-f;return D({red:Math.floor(a.red*f+i.red*l),green:Math.floor(a.green*f+i.green*l),blue:Math.floor(a.blue*f+i.blue*l),alpha:a.alpha+(i.alpha-a.alpha)*(parseFloat(e)/1)})}var se=Y(ue);function fe(e,r){var t=W(r);return D(g({},t,{alpha:X(0,1,(100*("number"==typeof t.alpha?t.alpha:1)+100*parseFloat(e))/100)}))}var le=Y(fe);function pe(e){return.179<ae(e)?"#000":"#fff"}var de=Y(pe);function ce(e,r){var t=R(r);return J(g({},t,{saturation:X(0,1,t.saturation+parseFloat(e))}))}var be=Y(ce);function he(e,r){return J(g({},R(r),{hue:parseFloat(e)}))}var ge=Y(he);function me(e,r){return J(g({},R(r),{lightness:parseFloat(e)}))}var ve=Y(me);function ye(e,r){return J(g({},R(r),{saturation:parseFloat(e)}))}var we=Y(ye);function xe(e,r){return se(parseFloat(e),"rgb(0, 0, 0)",r)}var ke=Y(xe);function Se(e,r){return se(parseFloat(e),"rgb(255, 255, 255)",r)}var ze=Y(Se);function Ie(e,r){var t=W(r);return D(g({},t,{alpha:X(0,1,(100*("number"==typeof t.alpha?t.alpha:1)-100*parseFloat(e))/100)}))}var Fe=Y(Ie);var Ae=["top","right","bottom","left"];function Ee(e,r){return e(r?":"+r:"")}function je(e,r,t){if(!r)throw new Error("You must provide a template to this method.");if(0===e.length)return Ee(r,null);for(var n=[],a=0;a<e.length;a+=1){if(t&&t.indexOf(e[a])<0)throw new Error("You passed an unsupported selector state to this method.");n.push(Ee(r,e[a]))}return n=n.join(",")}var Oe=[void 0,null,"active","focus","hover"];function Ce(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}var Pe=["absolute","fixed","relative","static","sticky"];var We=[void 0,null,"active","focus","hover"];function Re(e){return'input[type="color"]'+e+',\n input[type="date"]'+e+',\n input[type="datetime"]'+e+',\n input[type="datetime-local"]'+e+',\n input[type="email"]'+e+',\n input[type="month"]'+e+',\n input[type="number"]'+e+',\n input[type="password"]'+e+',\n input[type="search"]'+e+',\n input[type="tel"]'+e+',\n input[type="text"]'+e+',\n input[type="time"]'+e+',\n input[type="url"]'+e+',\n input[type="week"]'+e+",\n input:not([type])"+e+",\n textarea"+e}e.adjustHue=K,e.animation=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Array.isArray(r[0]);if(!n&&8<r.length)throw new Error("The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation");return{animation:r.map(function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new Error("To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')");if(Array.isArray(e)&&8<e.length)throw new Error("The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation");return Array.isArray(e)?e.join(" "):e}).join(", ")}},e.backgroundImages=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}},e.backgrounds=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}},e.between=h,e.border=function(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var a;return"string"==typeof e&&0<=Ae.indexOf(e)?((a={})["border"+o(e)+"Width"]=t[0],a["border"+o(e)+"Style"]=t[1],a["border"+o(e)+"Color"]=t[2],a):(t.unshift(e),{borderWidth:t[0],borderStyle:t[1],borderColor:t[2]})},e.borderColor=v,e.borderRadius=function(e,r){var t,n,a=o(e);if(!r&&0!==r)throw new Error("borderRadius expects a radius value as a string or number as the second argument.");if("Top"===a||"Bottom"===a)return(t={})["border"+a+"RightRadius"]=r,t["border"+a+"LeftRadius"]=r,t;if("Left"===a||"Right"===a)return(n={})["borderTop"+a+"Radius"]=r,n["borderBottom"+a+"Radius"]=r,n;throw new Error('borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.')},e.borderStyle=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderStyle"].concat(r))},e.borderWidth=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderWidth"].concat(r))},e.buttons=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return je(r,Ce,Oe)},e.clearFix=function(e){var r;return void 0===e&&(e="&"),(r={})[e+"::after"]={clear:"both",content:'""',display:"table"},r},e.complement=function(e){var r=R(e);return J(g({},r,{hue:(r.hue+180)%360}))},e.cover=function(e){return void 0===e&&(e=0),{position:"absolute",top:e,right:e,bottom:e,left:e}},e.darken=re,e.desaturate=ne,e.directionalProperty=a,e.ellipsis=function(e){return void 0===e&&(e="100%"),{display:"inline-block",maxWidth:e,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}},e.em=t,e.fluidRange=function(e,r,t){if(void 0===r&&(r="320px"),void 0===t&&(t="1200px"),!Array.isArray(e)&&"object"!=typeof e||null===e)throw new Error("expects either an array of objects or a single object with the properties prop, fromSize, and toSize.");if(Array.isArray(e)){var n={},a={},o=e,i=Array.isArray(o),u=0;for(o=i?o:o[Symbol.iterator]();;){var s,f,l;if(i){if(u>=o.length)break;l=o[u++]}else{if((u=o.next()).done)break;l=u.value}var p=l;if(!p.prop||!p.fromSize||!p.toSize)throw new Error("expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.");a[p.prop]=p.fromSize,n["@media (min-width: "+r+")"]=g({},n["@media (min-width: "+r+")"],((s={})[p.prop]=h(p.fromSize,p.toSize,r,t),s)),n["@media (min-width: "+t+")"]=g({},n["@media (min-width: "+t+")"],((f={})[p.prop]=p.toSize,f))}return g({},a,n)}var d,c,b;if(!e.prop||!e.fromSize||!e.toSize)throw new Error("expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.");return(b={})[e.prop]=e.fromSize,b["@media (min-width: "+r+")"]=((d={})[e.prop]=h(e.fromSize,e.toSize,r,t),d),b["@media (min-width: "+t+")"]=((c={})[e.prop]=e.toSize,c),b},e.fontFace=function(e){var r=e.fontFamily,t=e.fontFilePath,n=e.fontStretch,a=e.fontStyle,o=e.fontVariant,i=e.fontWeight,u=e.fileFormats,s=void 0===u?["eot","woff2","woff","ttf","svg"]:u,f=e.localFonts,l=e.unicodeRange,p=e.fontDisplay,d=e.fontVariationSettings,c=e.fontFeatureSettings;if(!r)throw new Error("fontFace expects a name of a font-family.");if(!t&&!f)throw new Error("fontFace expects either the path to the font file(s) or a name of a local copy.");if(f&&!Array.isArray(f))throw new Error("fontFace expects localFonts to be an array.");if(!Array.isArray(s))throw new Error("fontFace expects fileFormats to be an array.");var b,h,g,m,v,y={"@font-face":{fontFamily:r,src:(b=t,h=f,g=s,v=[],h&&v.push(h.map(function(e){return'local("'+e+'")'}).join(", ")),b&&v.push((m=b,g.map(function(e){return'url("'+m+"."+e+'")'}).join(", "))),v.join(", ")),unicodeRange:l,fontStretch:n,fontStyle:a,fontVariant:o,fontWeight:i,fontDisplay:p,fontVariationSettings:d,fontFeatureSettings:c}};return JSON.parse(JSON.stringify(y))},e.getLuminance=ae,e.getValueAndUnit=m,e.grayscale=function(e){return J(g({},R(e),{saturation:0}))},e.invert=function(e){var r=W(e);return J(g({},r,{red:255-r.red,green:255-r.green,blue:255-r.blue}))},e.hideText=function(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}},e.hideVisually=function(){return{border:"0",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e.hiDPI=d,e.hsl=Q,e.hsla=H,e.lighten=ie,e.margin=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["margin"].concat(r))},e.mix=se,e.modularScale=function(e,r,t){if(void 0===r&&(r="1em"),void 0===t&&(t="perfectFourth"),"number"!=typeof e)throw new Error("Please provide a number of steps to the modularScale helper.");if("string"==typeof t&&!s[t])throw new Error("Please pass a number or one of the predefined scales to the modularScale helper as the ratio.");var n="string"==typeof r?u(r):r,a="string"==typeof t?s[t]:t;if("string"==typeof n)throw new Error('Invalid value passed as base to modularScale, expected number or em string but got "'+r+'"');return n*Math.pow(a,e)+"em"},e.normalize=function(){var e;return[(e={html:{lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:"0"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{"background-color":"transparent"},"abbr[title]":{borderBottom:"none",textDecoration:"underline"}},e["b,\n strong"]={fontWeight:"bolder"},e["code,\n kbd,\n samp"]={fontFamily:"monospace, monospace",fontSize:"1em"},e.small={fontSize:"80%"},e["sub,\n sup"]={fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},e.sub={bottom:"-0.25em"},e.sup={top:"-0.5em"},e.img={borderStyle:"none"},e["button,\n input,\n optgroup,\n select,\n textarea"]={fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},e["button,\n input"]={overflow:"visible"},e["button,\n select"]={textTransform:"none"},e['button,\n html [type="button"],\n [type="reset"],\n [type="submit"]']={WebkitAppearance:"button"},e['button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner']={borderStyle:"none",padding:"0"},e['button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring']={outline:"1px dotted ButtonText"},e.fieldset={padding:"0.35em 0.625em 0.75em"},e.legend={boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},e.progress={verticalAlign:"baseline"},e.textarea={overflow:"auto"},e['[type="checkbox"],\n [type="radio"]']={boxSizing:"border-box",padding:"0"},e['[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button']={height:"auto"},e['[type="search"]']={WebkitAppearance:"textfield",outlineOffset:"-2px"},e['[type="search"]::-webkit-search-decoration']={WebkitAppearance:"none"},e["::-webkit-file-upload-button"]={WebkitAppearance:"button",font:"inherit"},e.details={display:"block"},e.summary={display:"list-item"},e.template={display:"none"},e["[hidden]"]={display:"none"},e),{"abbr[title]":{textDecoration:"underline dotted"}}]},e.opacify=le,e.padding=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["padding"].concat(r))},e.parseToHsl=R,e.parseToRgb=W,e.placeholder=function(e,r){var t;return void 0===r&&(r="&"),(t={})[r+"::-webkit-input-placeholder"]=g({},e),t[r+":-moz-placeholder"]=g({},e),t[r+"::-moz-placeholder"]=g({},e),t[r+":-ms-input-placeholder"]=g({},e),t},e.position=function(e){for(var r=arguments.length,t=new Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return 0<=Pe.indexOf(e)?g({position:e},a.apply(void 0,[""].concat(t))):a.apply(void 0,["",e].concat(t))},e.radialGradient=function(e){var r,t=e.colorStops,n=e.extent,a=e.fallback,o=e.position,i=e.shape;if(!t||t.length<2)throw new Error("radialGradient requries at least 2 color-stops to properly render.");return{backgroundColor:a||(r=t,r[0].split(" ")[0]),backgroundImage:function(e){for(var r="",t=0;t<e.length;t+=1)r+=e[t],3===t&&(t+1<1||arguments.length<=t+1?void 0:arguments[t+1])&&((arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3]))?(r=r.slice(0,-1),r+=", "+(t+1<1||arguments.length<=t+1?void 0:arguments[t+1])):3!==t||t+1<1||arguments.length<=t+1||!arguments[t+1]||(arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3])?(t+1<1||arguments.length<=t+1?void 0:arguments[t+1])&&(r+=(t+1<1||arguments.length<=t+1?void 0:arguments[t+1])+" "):r+=""+(t+1<1||arguments.length<=t+1?void 0:arguments[t+1]);return r.trim()}(c(),o,i,n,t.join(", "))}},e.readableColor=de,e.rem=f,e.retinaImage=function(e,r,t,n,a){var o;if(void 0===t&&(t="png"),void 0===a&&(a="_2x"),!e)throw new Error("Please supply a filename to retinaImage() as the first argument.");var i=t.replace(/^\./,""),u=n?n+"."+i:""+e+a+"."+i;return(o={backgroundImage:"url("+e+"."+i+")"})[d()]=g({backgroundImage:"url("+u+")"},r?{backgroundSize:r}:{}),o},e.rgb=N,e.rgba=D,e.saturate=be,e.selection=function(e,r){var t;return void 0===r&&(r=""),(t={})[r+"::-moz-selection"]=g({},e),t[r+"::selection"]=g({},e),t},e.setHue=ge,e.setLightness=ve,e.setSaturation=we,e.shade=ke,e.size=function(e,r){return void 0===r&&(r=e),{height:e,width:r}},e.stripUnit=u,e.textInputs=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return je(r,Re,We)},e.timingFunctions=function(e){return b[e]},e.tint=ze,e.toColorString=J,e.transitions=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(Array.isArray(r[0])&&2===r.length){var n=r[1];if("string"!=typeof n)throw new Error("Property must be a string value.");return{transition:r[0].map(function(e){return e+" "+n}).join(", ")}}return{transition:r.join(", ")}},e.transparentize=Fe,e.triangle=function(e){var r=e.pointingDirection,t=e.height,n=e.width,a=e.foregroundColor,o=e.backgroundColor,i=void 0===o?"transparent":o,u=[parseFloat(n),String(n).replace(w,"")||"px"],s=[parseFloat(t),String(t).replace(w,"")||"px"];if(isNaN(s[0])||isNaN(u[0]))throw new Error("Passed an invalid value to `height` or `width`. Please provide a pixel based unit");var f=y.indexOf(r);return g({width:"0",height:"0",borderWidth:function(e,r,t){switch(e){case"top":return"0 "+t[0]/2+t[1]+" "+r[0]+r[1]+" "+t[0]/2+t[1];case"left":return""+r[0]/2+r[1]+" "+t[0]+t[1]+" "+r[0]/2+r[1]+" 0";case"bottom":return""+r[0]+r[1]+" "+t[0]/2+t[1]+" 0 "+t[0]/2+t[1];case"right":return""+r[0]/2+r[1]+" 0 "+r[0]/2+r[1]+" "+t[0]+t[1];default:throw new Error("Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.")}}(r,s,u),borderStyle:"solid"},v.apply(void 0,Array.from({length:4}).map(function(e,r){return r===f?a:i})))},e.wordWrap=function(e){return void 0===e&&(e="break-word"),{overflowWrap:e,wordWrap:e,wordBreak:"break-word"===e?"break-all":e}},Object.defineProperty(e,"__esModule",{value:!0})});

@@ -43,3 +43,3 @@ "use strict";

* // styled-components basic usage
* injectGlobal`${
* const GlobalStyle = createGlobalStyle`${
* fontFace({

@@ -46,0 +46,0 @@ * 'fontFamily': 'Sans-Pro',

@@ -16,3 +16,3 @@ "use strict";

* // styled-components usage
* injectGlobal`${normalize()}`
* const GlobalStyle = createGlobalStyle`${normalize()}`
*

@@ -19,0 +19,0 @@ * // CSS as JS Output

@@ -37,2 +37,3 @@ "use strict";

var reverseDirection = ['bottom', 'left', 'top', 'right'];
var NUMBER_AND_FLOAT = /(\d*\.?\d*)/;
/**

@@ -73,4 +74,4 @@ * CSS to represent triangle with any pointing direction with an optional background color. Accepts number or px values for height and width.

backgroundColor = _ref$backgroundColor === void 0 ? 'transparent' : _ref$backgroundColor;
var widthAndUnit = [parseFloat(width), String(width).replace(/\d+/g, '') || 'px'];
var heightAndUnit = [parseFloat(height), String(height).replace(/\d+/g, '') || 'px'];
var widthAndUnit = [parseFloat(width), String(width).replace(NUMBER_AND_FLOAT, '') || 'px'];
var heightAndUnit = [parseFloat(height), String(height).replace(NUMBER_AND_FLOAT, '') || 'px'];

@@ -77,0 +78,0 @@ if (isNaN(heightAndUnit[0]) || isNaN(widthAndUnit[0])) {

@@ -7,3 +7,3 @@ {

"types": "lib/index.d.ts",
"version": "2.2.0",
"version": "2.3.0",
"scripts": {

@@ -10,0 +10,0 @@ "build": "yarn build:lib && yarn build:dist && yarn build:flow && yarn build:docs && yarn build:typescript",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc