You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
33 KiB
2 lines
33 KiB
3 years ago
|
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@babel/runtime/helpers/esm/extends"),require("@babel/runtime/helpers/esm/assertThisInitialized"),require("@babel/runtime/helpers/esm/inheritsLoose"),require("@babel/runtime/helpers/esm/wrapNativeSuper"),require("@babel/runtime/helpers/esm/taggedTemplateLiteralLoose")):"function"==typeof define&&define.amd?define(["exports","@babel/runtime/helpers/esm/extends","@babel/runtime/helpers/esm/assertThisInitialized","@babel/runtime/helpers/esm/inheritsLoose","@babel/runtime/helpers/esm/wrapNativeSuper","@babel/runtime/helpers/esm/taggedTemplateLiteralLoose"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).polished={},e.extends,e.assertThisInitialized,e.inheritsLoose,e.wrapNativeSuper,e.taggedTemplateLiteralLoose)}(this,(function(e,r,t,n,o,a){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=i(r),f=i(t),l=i(n),s=i(o),p=i(a);function c(){var e;return(e=arguments.length-1)<0||arguments.length<=e?void 0:arguments[e]}var d={symbols:{"!":{postfix:{symbol:"!",f:function e(r){return r%1||!(+r>=0)?NaN:r>170?1/0:0===r?1:r*e(r-1)},notation:"postfix",precedence:6,rightToLeft:0,argCount:1},symbol:"!",regSymbol:"!"},"^":{infix:{symbol:"^",f:function(e,r){return Math.pow(e,r)},notation:"infix",precedence:5,rightToLeft:1,argCount:2},symbol:"^",regSymbol:"\\^"},"*":{infix:{symbol:"*",f:function(e,r){return e*r},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"*",regSymbol:"\\*"},"/":{infix:{symbol:"/",f:function(e,r){return e/r},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"/",regSymbol:"/"},"+":{infix:{symbol:"+",f:function(e,r){return e+r},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"+",f:c,notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"+",regSymbol:"\\+"},"-":{infix:{symbol:"-",f:function(e,r){return e-r},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"-",f:function(e){return-e},notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"-",regSymbol:"-"},",":{infix:{symbol:",",f:function(){return Array.of.apply(Array,arguments)},notation:"infix",precedence:1,rightToLeft:0,argCount:2},symbol:",",regSymbol:","},"(":{prefix:{symbol:"(",f:c,notation:"prefix",precedence:0,rightToLeft:0,argCount:1},symbol:"(",regSymbol:"\\("},")":{postfix:{symbol:")",f:void 0,notation:"postfix",precedence:0,rightToLeft:0,argCount:1},symbol:")",regSymbol:"\\)"},min:{func:{symbol:"min",f:function(){return Math.min.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"min",regSymbol:"min\\b"},max:{func:{symbol:"max",f:function(){return Math.max.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"max",regSymbol:"max\\b"},sqrt:{func:{symbol:"sqrt",f:function(e){return Math.sqrt(e)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"sqrt",regSymbol:"sqrt\\b"}}},b=function(e){function r(r){var t;return t=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,f.default(t)}return l.default(r,e),r}(s.default(Error)),h=/((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g;function m(e,r){var t,n=e.pop();return r.push(n.f.apply(n,(t=[]).concat.apply(t,r.splice(-n.argCount)))),n.precedence}function g(e,r){var t,n=function(e){var r={};return r.symbols=e?u.default({},d.symbols,e.symbols):u.default({},d.symbols),r}(r),o=[n.symbols["("].prefix],a=[],i=new RegExp("\\d+(?:\\.\\d+)?|"+Object.keys(n.symbols).map((function(e){return n.symbols[e]})).sort((function(e,r){return r.symbol.length-e.symbol.length})).map((function(e){return e.regSymbol})).join("|")+"|(\\S)","g");i.lastIndex=0;var f=!1;do{var l=(t=i.exec(e))||[")",void 0],s=l[0],p=l[1],c=n.symbols[s],h=c&&!c.prefix&&!c.func,g=!c||!c.postfix&&!c.infix;if(p||(f?g:h))throw new b(37,t?t.index:e.length,e);if(f){var y=c.postfix||c.infix;do{var v=o[o.lengt
|