react-fela
Advanced tools
Comparing version 12.0.2 to 12.1.0
@@ -1,5 +0,3 @@ | ||
import { createContext } from 'react'; // $FlowFixMe | ||
export var RendererContext = createContext(); // $FlowFixMe | ||
import { createContext } from 'react'; | ||
export var RendererContext = createContext(); | ||
export var ThemeContext = createContext(); |
@@ -1,43 +0,4 @@ | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
import { useContext } from 'react'; | ||
import { combineRules } from 'fela'; | ||
import { RendererContext, ThemeContext } from './context'; | ||
function getPropsWithTheme(props, theme) { | ||
if (props) { | ||
return _objectSpread(_objectSpread({}, props), {}, { | ||
theme: theme | ||
}); | ||
} | ||
return { | ||
theme: theme | ||
}; | ||
} | ||
export default function useFela(props) { | ||
var renderer = useContext(RendererContext); | ||
var theme = useContext(ThemeContext) || {}; | ||
if (!renderer) { | ||
throw new Error('The "useFela" hook can only be used inside a "RendererProvider"'); | ||
} // we add the theme to props so that it can be used within styles | ||
var propsWithTheme = getPropsWithTheme(props, theme); | ||
function css() { | ||
return renderer.renderRule(combineRules.apply(void 0, arguments), propsWithTheme); | ||
} | ||
return { | ||
renderer: renderer, | ||
theme: theme, | ||
css: css | ||
}; | ||
} | ||
import { useFelaFactory } from 'fela-bindings'; | ||
import { ThemeContext, RendererContext } from './context'; | ||
export default useFelaFactory(RendererContext, ThemeContext, useContext); |
@@ -10,7 +10,5 @@ "use strict"; | ||
// $FlowFixMe | ||
var RendererContext = (0, _react.createContext)(); // $FlowFixMe | ||
var RendererContext = (0, _react.createContext)(); | ||
exports.RendererContext = RendererContext; | ||
var ThemeContext = (0, _react.createContext)(); | ||
exports.ThemeContext = ThemeContext; |
@@ -6,48 +6,12 @@ "use strict"; | ||
}); | ||
exports["default"] = useFela; | ||
exports["default"] = void 0; | ||
var _react = require("react"); | ||
var _fela = require("fela"); | ||
var _felaBindings = require("fela-bindings"); | ||
var _context = require("./context"); | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
var _default = (0, _felaBindings.useFelaFactory)(_context.RendererContext, _context.ThemeContext, _react.useContext); | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function getPropsWithTheme(props, theme) { | ||
if (props) { | ||
return _objectSpread(_objectSpread({}, props), {}, { | ||
theme: theme | ||
}); | ||
} | ||
return { | ||
theme: theme | ||
}; | ||
} | ||
function useFela(props) { | ||
var renderer = (0, _react.useContext)(_context.RendererContext); | ||
var theme = (0, _react.useContext)(_context.ThemeContext) || {}; | ||
if (!renderer) { | ||
throw new Error('The "useFela" hook can only be used inside a "RendererProvider"'); | ||
} // we add the theme to props so that it can be used within styles | ||
var propsWithTheme = getPropsWithTheme(props, theme); | ||
function css() { | ||
return renderer.renderRule(_fela.combineRules.apply(void 0, arguments), propsWithTheme); | ||
} | ||
return { | ||
renderer: renderer, | ||
theme: theme, | ||
css: css | ||
}; | ||
} | ||
exports["default"] = _default; |
{ | ||
"name": "react-fela", | ||
"version": "12.0.2", | ||
"version": "12.1.0", | ||
"description": "React bindings for Fela", | ||
@@ -41,8 +41,8 @@ "typings": "index.d.ts", | ||
"peerDependencies": { | ||
"fela": ">= 11.3.1", | ||
"fela": ">=11.3", | ||
"react": "*" | ||
}, | ||
"dependencies": { | ||
"fela-bindings": "^12.0.2", | ||
"fela-dom": "^12.0.2", | ||
"fela-bindings": "^12.1.0", | ||
"fela-dom": "^12.1.0", | ||
"prop-types": "^15.5.8" | ||
@@ -61,3 +61,3 @@ }, | ||
"cross-env": "^6.0.3", | ||
"fela": "^12.0.2", | ||
"fela": "^12.1.0", | ||
"react": "^17.0.2", | ||
@@ -68,3 +68,3 @@ "rimraf": "^3.0.0", | ||
}, | ||
"gitHead": "fde211052bb266f62eafd5b0bd5d66ddca8dc972" | ||
"gitHead": "720e0a72f913ea0543e5cc5c836e00428af8a810" | ||
} |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("Fela")):"function"==typeof define&&define.amd?define("ReactFela",["React","Fela"],t):"object"==typeof exports?exports.ReactFela=t(require("React"),require("Fela")):e.ReactFela=t(e.React,e.Fela)}(window,(function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=11)}([function(t,r){t.exports=e},,,function(e,r){e.exports=t},,function(e,t,r){e.exports=r(9)()},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function i(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var u=0;u<r.length;u++)if(!n.call(t,r[u])||!o(e[r[u]],t[r[u]]))return!1;return!0}e.exports=function(e,t,r){return!i(e.props,t)||!i(e.state,r)}},,,function(e,t,r){"use strict";var n=r(10);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,u){if(u!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){"use strict";r.r(t),r.d(t,"connect",(function(){return B})),r.d(t,"createComponent",(function(){return ie})),r.d(t,"createComponentWithProxy",(function(){return ue})),r.d(t,"FelaComponent",(function(){return pe})),r.d(t,"FelaRenderer",(function(){return Kt})),r.d(t,"FelaTheme",(function(){return oe})),r.d(t,"RendererContext",(function(){return z})),r.d(t,"RendererProvider",(function(){return ct})),r.d(t,"ThemeContext",(function(){return Y})),r.d(t,"ThemeProvider",(function(){return st})),r.d(t,"renderToNodeList",(function(){return Ut})),r.d(t,"useFela",(function(){return dt})),r.d(t,"withTheme",(function(){return gt})),r.d(t,"fe",(function(){return Bt}));var n=r(0);function o(e,t,r){for(var n in e)r=t(r,e[n],n,e);return r}function i(e,t,r){for(var n=0,o=e.length;n<o;++n)r=t(r,e[n],n,o,e);return r}var u=r(3);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return"function"==typeof e?e:function(){return e}}function s(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){return i(t,(function(t,n){return a(a({},t),o(l(n)(e,r),(function(e,r,n){return a(a({},e),{},f({},n,t[n]?Object(u.combineRules)(t[n],l(r)):l(r)))}),{}))}),{})}}var p=r(6),y=r.n(p);function b(e){var t=e.displayName||e.name;return t?"Fela".concat(t):"ConnectedFelaComponent"}function d(e,t){for(var r=0,n=e.length;r<n;++r)t(e[r],r,n,e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},g=["contextTypes","defaultProps"],j={childContextTypes:!0,propTypes:!0,getDerivedStateFromProps:!0,contextType:!0};function w(e,t){return"string"==typeof t||(d(Object.getOwnPropertyNames(t).filter((function(e){return!h[e]})),(function(r){if(!e.hasOwnProperty(r)&&!j[r])try{var n=Object.getOwnPropertyDescriptor(t,r);n&&Object.defineProperty(e,r,n)}catch(e){}})),d(g,(function(r){if(t[r]){var n=e[r]||{};e[r]=m(m({},t[r]),n)}}))),e}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var S=["extend","_felaRules"];function R(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(e,t,r){return t&&E(e.prototype,t),r&&E(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function C(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=k(e);if(t){var o=k(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return D(this,r)}}function D(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var M={pure:!0};var U,L,q,$,z=Object(n.createContext)(),Y=Object(n.createContext)(),B=(U=n.Component,L=n.createElement,q=z,$=Y,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=F(F({},M),t);return function(t){var n=function(n){C(u,n);var i=_(u);function u(){return A(this,u),i.apply(this,arguments)}return x(u,[{key:"shouldComponentUpdate",value:function(e,t){return!r.pure||y()(this,e,t)}},{key:"render",value:function(){var r=this.props,n=r.extend,i=r._felaRules,u=R(r,S),c=[e];i&&c.push(i),n&&c.push(n);var a=s.apply(void 0,c);return L(q.Consumer,void 0,(function(e){return L($.Consumer,void 0,(function(r){var n=a(F(F({},u),{},{theme:r}),e);if(t._isFelaComponent)return L(t,F({_felaRules:a},u));var i=o(n,(function(t,n,o){return t[o]=e.renderRule(n,F(F({},u),{},{theme:r})),t}),{}),c=o(n,(function(t,n,o){return t[o]=function(t){return n(F({theme:r},t),e)},t}),{});return L(t,F(F({},u),{},{styles:i,theme:r,rules:c}))}))}))}}]),u}(U);return N(n,"displayName",b(t)),N(n,"_isFelaComponent",!0),w(n,t)}});function K(e,t){return i(e,(function(e,r){return t.hasOwnProperty(r)&&(e[r]=t[r]),e}),{})}function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];if("undefined"==typeof Proxy)return r;var n=function(e){return{get:function(t,r){return"object"===W(t[r])&&t[r],e.push(r),t[r]}}},o=new Proxy({theme:t},n(r));try{return e(o),r}catch(e){return[]}}function Q(e,t){return"function"==typeof e?e(t):e}function V(e,t){return o(t,(function(t,r,n){return-1===e.indexOf(n)&&"innerRef"!==n&&"is"!==n&&t.push(n),t}),[])}var G=["children","_felaRule","extend","innerRef","id","style","as","className","passThrough"];function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J(Object(r),!0).forEach((function(t){Z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ee(e){return function(e){if(Array.isArray(e))return te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return te(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function re(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ne(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return function(i){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=i.name?i.name:"FelaComponent",l=function(f){var l=f.children,s=f._felaRule,p=f.extend,y=f.innerRef,b=f.id,d=f.style,v=f.as,m=f.className,O=f.passThrough,h=void 0===O?[]:O,g=re(f,G);return e(t.Consumer,void 0,(function(t){return e(r,void 0,(function(r){if(!t)throw new Error("createComponent() can't render styles without the renderer in the context. Missing react-fela's <Provider /> at the app root?");var f=n?H(i,r):[],O=[i];s&&O.push(s),p&&("function"==typeof p?O.push(p):O.push((function(){return p})));var j=u.combineRules.apply(void 0,O),w=[].concat(ee(o),ee(Q(a,g)),ee(Q(h,g)),ee(n?V(f,g):[])),P=X(X({},g),{},{theme:r,as:v,id:b});if(c._isFelaComponent)return e(c,X({_felaRule:j,passThrough:w,innerRef:y,style:d,className:m,as:v,id:b},g),l);var S=K(w,g);if(t.isNativeRenderer){var R=t.renderRule(j,P);S.style=d?[d,R]:R}else{d&&(S.style=d);var A=m?"".concat(m," "):"";S.className=A+t.renderRule(j,P)}return b&&(S.id=b),y&&(S.ref=y),e(v||c,S,l)}))}))};return l.displayName=f,l._isFelaComponent=!0,w(l,c)}}var oe=function(e,t){return function(r){var n=r.children;return e(t.Consumer,void 0,n)}}(n.createElement,Y),ie=ne(n.createElement,z,oe),ue=ne(n.createElement,z,oe,!0),ce=["children","as","style"];function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(r),!0).forEach((function(t){le(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function se(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var pe=function(e,t,r){return function(n){var o=n.children,i=n.as,c=void 0===i?"div":i,a=n.style,f=se(n,ce);return e(t.Consumer,void 0,(function(t){return t.devMode&&null==a&&console.warn('"FelaComponent" is being rendered without a style prop\nIf all you need is access to theme, try using "FelaTheme" or the "useFela" hook instead'),e(r,void 0,(function(r){var n=t.renderRule(Object(u.combineRules)(a),fe(fe({},f),{},{theme:r}));return o instanceof Function?o({className:!t.isNativeRenderer&&n,style:t.isNativeRenderer&&n,theme:r,as:c}):e(c,{className:!t.isNativeRenderer&&n,style:t.isNativeRenderer&&n},o)}))}))}}(n.createElement,z,oe);function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return 0===e.length||0===t.length?0:e.indexOf(e.find((function(e){return null!==t.match(e)})))+1}function be(e){return e.split("{")[0].slice(9).trim()}function de(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return o+n+r+e+t}var ve=/-([a-z])/g,me=/^Ms/g,Oe={};function he(e){return e[1].toUpperCase()}function ge(e){if(Oe.hasOwnProperty(e))return Oe[e];var t=e.replace(ve,he).replace(me,"ms");return Oe[e]=t,t}function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=".".concat(e).repeat(n);return"".concat(r).concat(o).concat(t)}function we(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"",a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;return{type:e,className:t,selector:je(t,o,c,a),declaration:r+":"+n,pseudo:o,media:i,support:u}}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],u=!0,c=!1;try{for(r=r.call(e);!(u=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{u||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Se(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Se(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Re={};function Ae(e){return Re[e]||(Re[e]=new RegExp("".concat(e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),"[.]([0-9a-z_-]+)(([.][0-9a-z_-]+){0,})([^{]+)?{([^:]+):([^}]+)}"),"gi")),Re[e]}function Ee(e,t){if(e){var r=new RegExp("(([.]".concat(t,")+)?(.*)?"),""),n=Pe(e.match(r),4),o=(n[0],n[1]),i=n[2],u=n[3];return[void 0===u?"":u,o?o.length/i.length+1:1]}return["",1]}function xe(e){for(var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",u=Ae(i);t=u.exec(e);){var c=t,a=Pe(c,7),f=(a[0],a[1]),l=a[2],s=(a[3],a[4]),p=void 0===s?"":s,y=a[5],b=a[6],d=Ee(l,f),v=Pe(d,2),m=v[0],O=v[1],h=de(0===y.indexOf("--")?y:ge(y),b,m+p,r,n);o[h]=we("RULE",f,y,b,m+p,r,n,i,O)}return o}function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],u=!0,c=!1;try{for(r=r.call(e);!(u=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{u||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Te(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _e=/@supports[^{]+\{([\s\S]+?})\s*}/gi;function De(e){for(var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";t=_e.exec(e);){var i=t,u=Ce(i,2),c=u[0],a=u[1],f=be(c);xe(a,r,f,n,o)}return n}function ke(e,t){for(var r in e)t(e[r],r,e)}function Ie(e,t){return"".concat(e,"{").concat(t,"}")}function Fe(e){var t=e.type,r=e.media,n=e.support,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,i=r?'[media="'.concat(r,'"]'):":not([media])",u=n?'[data-fela-support="true"]':':not([data-fela-support="true"])';return o.querySelector('[data-fela-type="'.concat(t,'"]').concat(u).concat(i))}function Ne(e){return function(e){if(Array.isArray(e))return Me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Me(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Me(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ue(e,t,r){var n=t.type,o=t.media,i=t.support;switch(n){case"FONT":case"STATIC":case"KEYFRAME":return e[0];case"RULE":var u=e.map((function(e){return e.media})).filter((function(e){return 0!==e.length}));if(o){var c=[].concat(Ne(u),[o]).sort(r),a=c.indexOf(o)+1,f=c[a];if(f)return f===o&&i?e.find((function(e){return e.media===c[c.indexOf(o)+2]})):e.find((function(e){return e.media===f}))}else{var l=u.sort(r)[0];if(!i){var s=e.find((function(e){return void 0!==e.getAttribute("data-fela-support")&&""===e.media&&"RULE"===e.getAttribute("data-fela-type")}));if(s)return s}if(l)return e.find((function(e){return e.media===l}))}}}function Le(e){return function(e){if(Array.isArray(e))return qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=t.head||{},i=e.type,u=e.media,c=e.support,a=t.createElement("style");for(var f in a.setAttribute("data-fela-type",i),a.type="text/css",c&&a.setAttribute("data-fela-support","true"),u&&(a.media=u),n)a.setAttribute(f,n[f]);if(void 0!==("undefined"==typeof window?"undefined":$e(window))&&window.FelaConfig)for(var l in window.FelaConfig.styleNodeAttributes)a.setAttribute(l,window.FelaConfig.styleNodeAttributes[l]);var s=o.querySelectorAll("[data-fela-type]"),p=Ue(Le(s),e,r);return p?o.insertBefore(a,p):o.appendChild(a),a}function Ye(e){var t=e.type,r=e.media,n=void 0===r?"":r,o=e.support;return t+n+(void 0===o?"":o)}function Be(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,n=Ye(e);if(!t.nodes[n]){var o=Fe(e,r)||ze(e,r,t.sortMediaQuery,t.styleNodeAttributes);t.nodes[n]=o}return t.nodes[n]}function Ke(e,t){return"@supports ".concat(e,"{").concat(t,"}")}function We(e,t,r){var n=e.selector,o=e.declaration,i=e.support,u=e.media,c=e.pseudo,a=u+i;try{var f=ye(t.ruleOrder,c),l=r.sheet.cssRules,s=l.length;if(0===f)s=void 0===t.scoreIndex[a]?0:t.scoreIndex[a]+1;else for(var p=t.scoreIndex[a]||0,y=l.length;p<y;++p)if(l[p].score>f){s=p;break}var b=Ie(n,o);if(i.length>0){var d=Ke(i,b);r.sheet.insertRule(d,s)}else r.sheet.insertRule(b,s);0===f&&(t.scoreIndex[a]=s),l[s].score=f}catch(e){}}function He(e,t){e.updateSubscription||(e.scoreIndex={},e.nodes={},e.updateSubscription=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return function(r){if("CLEAR"===r.type)return ke(e.nodes,(function(e){return e.parentNode.removeChild(e)})),e.nodes={},void(e.scoreIndex={});var n=Be(r,e,t);switch(r.type){case"KEYFRAME":-1===n.textContent.indexOf(r.keyframe)&&(n.textContent+=r.keyframe);break;case"FONT":-1===n.textContent.indexOf(r.fontFace)&&(n.textContent+=r.fontFace);break;case"STATIC":var o=r.selector?Ie(r.selector,r.css):r.css;-1===n.textContent.indexOf(o)&&(n.textContent+=o);break;case"RULE":We(r,e,n)}}}(e,t),e.subscribe(e.updateSubscription),ke(e.cache,e._emitChange))}function Qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],u=!0,c=!1;try{for(r=r.call(e);!(u=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{u||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ve(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ve(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ge=/@(-webkit-|-moz-)?keyframes ([a-z_][a-z0-9-_]*)(\{.*?(?=}})}})/gi;function Je(e){for(var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Ge.exec(e);){var n=t,o=Qe(n,4),i=o[0],u=(o[1],o[2]),c=o[3];r[c]?r[c].keyframe+=i:r[c]={type:"KEYFRAME",keyframe:i,name:u}}return r}var Xe=/[.][a-z0-9_-]*/gi;function Ze(e){return(Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ot(e);if(t){var o=ot(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return nt(this,r)}}function nt(e,t){if(t&&("object"===Ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ot(e){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var it=r(5),ut=r.n(it),ct=function(e,t,r,n,o){var i=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tt(e,t)}(a,e);var o,i,u,c=rt(a);function a(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(r=c.call(this,e,t))._renderStyle(),r}return o=a,(i=[{key:"componentDidUpdate",value:function(e){e.renderer!==this.props.renderer&&this._renderStyle()}},{key:"_renderStyle",value:function(){var e=this.props,t=e.renderer,r=e.rehydrate,n=e.targetDocument;(function(e,t){if("undefined"==typeof document)return!1;var r=t||document;return e&&!e.isNativeRenderer&&r&&r.createElement})(t,n)&&(r&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.querySelectorAll("[data-fela-type]").length>0}(n)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;He(e,t),d(t.querySelectorAll("[data-fela-type]"),(function(t){var r=t.getAttribute("data-fela-rehydration")||-1,n=e.uniqueRuleIdentifier||parseInt(r,10);if(-1!==n){var o=t.getAttribute("data-fela-type")||"",i=t.getAttribute("media")||"",u=t.getAttribute("data-fela-support")||"",c=t.textContent;e.uniqueRuleIdentifier=n;var a=o+i+u;if(e.nodes[a]=t,"RULE"===o){if(u?De(c,i,e.cache,e.specificityPrefix):xe(c,i,"",e.cache,e.specificityPrefix),t.sheet&&t.sheet.cssRules){var f=i+u;d(t.sheet.cssRules,(function(t,r){var n=t.conditionText?t.cssRules[0].selectorText:t.selectorText,o=ye(e.ruleOrder,n.split(Xe)[1]);0===o&&(e.scoreIndex[f]=r),t.score=o}))}}else"KEYFRAME"===o&&Je(c,e.cache)}}))}(t,n):He(t,n))}},{key:"render",value:function(){return r(t.Provider,{value:this.props.renderer},n(this.props.children))}}])&&et(o.prototype,i),u&&et(o,u),Object.defineProperty(o,"prototype",{writable:!1}),a}(e);return o&&ke(o,(function(e,t){i[t]=e})),i}(n.Component,z,n.createElement,(function(e){return e}),{propTypes:{renderer:ut.a.object.isRequired,rehydrate:ut.a.bool.isRequired},defaultProps:{rehydrate:!0}});function at(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?at(Object(r),!0).forEach((function(t){lt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function lt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var st=function(e,t,r){return function(n){var o=n.theme,i=void 0===o?{}:o,u=n.overwrite,c=void 0!==u&&u,a=n.children;return t(e.Consumer,null,(function(n){return t(e.Provider,{value:!c&&n?ft(ft({},n),i):i},r(a))}))}}(Y,n.createElement,(function(e){return e}));function pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(r),!0).forEach((function(t){bt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dt(e){var t=Object(n.useContext)(z),r=Object(n.useContext)(Y)||{};if(!t)throw new Error('The "useFela" hook can only be used inside a "RendererProvider"');var o=function(e,t){return e?yt(yt({},e),{},{theme:t}):{theme:t}}(e,r);return{renderer:t,theme:r,css:function(){return t.renderRule(u.combineRules.apply(void 0,arguments),o)}}}function vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(r),!0).forEach((function(t){Ot(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ht,gt=function(e,t){return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"theme",o=function(o){return e(t,void 0,(function(t){return e(r,mt(mt({},o),{},Ot({},n,t)))}))};return w(o,r)}}(n.createElement,oe);function jt(e){return function(e){if(Array.isArray(e))return wt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return wt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pt(e){return function(e){if(Array.isArray(e))return St(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return St(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return St(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Rt(e,t){return i(o(e,(function(r,n,o){var i=function(e,t){for(var r=-1,n=0;n<e.length;n++)if(t(e[n])){r=n;break}return r}(r,(function(r){return t(e[r],r)>t(n,o)}));return-1!==i?function(e,t,r){return[].concat(jt(e.slice(0,r)),[t],jt(e.slice(r,e.length)))}(r,o,i):[].concat(Pt(r),[o])}),[]),(function(t,r){return t[r]=e[r],t}),{})}function At(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Et=(At(ht={},"RULE",(function(e,t){var r=t.selector,n=t.declaration,o=t.support,i=t.media,u=Ie(r,n);o?i?(e.supportMediaRules[i]||(e.supportMediaRules[i]={}),e.supportMediaRules[i][o]||(e.supportMediaRules[i][o]=""),e.supportMediaRules[i][o]+=u):(e.supportRules[o]||(e.supportRules[o]=""),e.supportRules[o]+=u):i?(e.mediaRules[i]||(e.mediaRules[i]=""),e.mediaRules[i]+=u):e.rules+=u})),At(ht,"FONT",(function(e,t){var r=t.fontFace;e.fontFaces+=r})),At(ht,"KEYFRAME",(function(e,t){var r=t.keyframe;e.keyframes+=r})),At(ht,"STATIC",(function(e,t){var r=t.css,n=t.selector;e.statics+=n?Ie(n,r):r})),ht);var xt={fontFaces:"FONT",statics:"STATIC",keyframes:"KEYFRAME",rules:"RULE"};function Ct(e){return o(e,(function(e,t,r){return t.length>0&&(e+=Ke(r,t)),e}),"")}var Tt=/^[a-z0-9_-]*$/gi;function _t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(r),!0).forEach((function(t){kt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function kt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function It(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Rt(e,(function(e){return ye(t,e.pseudo)}));return o(r,(function(e,t){var r=Et[t.type];return r&&r(e,t),e}),{mediaRules:{},supportRules:{},supportMediaRules:{},fontFaces:"",statics:"",keyframes:"",rules:""})}(e.cache,e.ruleOrder),r=function(e){return 0===e.selectorPrefix.length||null!==e.selectorPrefix.match(Tt)?e.uniqueRuleIdentifier:-1}(e),n=o(xt,(function(n,o,i){return t[i].length>0&&n.push({css:t[i],rehydration:r,attributes:e.styleNodeAttributes,type:o}),n}),[]),u=Ct(t.supportRules);return u&&n.push({css:u,type:"RULE",rehydration:r,attributes:e.styleNodeAttributes,support:!0}),i(Object.keys(Dt(Dt({},t.supportMediaRules),t.mediaRules)).sort(e.sortMediaQuery),(function(n,o){if(t.mediaRules[o]&&t.mediaRules[o].length>0&&n.push({css:t.mediaRules[o],type:"RULE",rehydration:r,attributes:e.styleNodeAttributes,media:o}),t.supportMediaRules[o]){var i=Ct(t.supportMediaRules[o]);i.length>0&&n.push({css:i,type:"RULE",rehydration:r,attributes:e.styleNodeAttributes,support:!0,media:o})}return n}),n)}function Ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(r),!0).forEach((function(t){Mt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ft(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ut=function(e){return function(t){return It(t).map((function(r){var n=r.type,o=r.media,i=r.rehydration,u=r.support,c=r.css;return e("style",Nt(Nt({key:n+o},t.styleNodeAttributes),{},{media:o,"data-fela-rehydration":i,"data-fela-type":n,"data-fela-support":u,dangerouslySetInnerHTML:{__html:c}}))}))}}(n.createElement),Lt=["css","key","ref","className"];function qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(r),!0).forEach((function(t){zt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Bt=function(e,t){return function(r){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length,i=new Array(o>2?o-2:0),u=2;u<o;u++)i[u-2]=arguments[u];if(n){var c=n.css,a=n.key,f=n.ref,l=n.className,s=Yt(n,Lt);if(c)return e(t,{style:c,key:a,ref:f},(function(t){return e.apply(void 0,[r,$t($t({},s),{},{className:l?l+" "+t.className:t.className})].concat(i))}))}return e.apply(void 0,[r,n].concat(i))}}(n.createElement,pe),Kt=z.Consumer}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("Fela")):"function"==typeof define&&define.amd?define("ReactFela",["React","Fela"],t):"object"==typeof exports?exports.ReactFela=t(require("React"),require("Fela")):e.ReactFela=t(e.React,e.Fela)}(window,(function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=11)}([function(t,r){t.exports=e},,,function(e,r){e.exports=t},,function(e,t,r){e.exports=r(9)()},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function i(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var u=0;u<r.length;u++)if(!n.call(t,r[u])||!o(e[r[u]],t[r[u]]))return!1;return!0}e.exports=function(e,t,r){return!i(e.props,t)||!i(e.state,r)}},,,function(e,t,r){"use strict";var n=r(10);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,u){if(u!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){"use strict";r.r(t),r.d(t,"connect",(function(){return B})),r.d(t,"createComponent",(function(){return ie})),r.d(t,"createComponentWithProxy",(function(){return ue})),r.d(t,"FelaComponent",(function(){return pe})),r.d(t,"FelaRenderer",(function(){return Kt})),r.d(t,"FelaTheme",(function(){return oe})),r.d(t,"RendererContext",(function(){return z})),r.d(t,"RendererProvider",(function(){return ct})),r.d(t,"ThemeContext",(function(){return Y})),r.d(t,"ThemeProvider",(function(){return st})),r.d(t,"renderToNodeList",(function(){return Ut})),r.d(t,"useFela",(function(){return bt})),r.d(t,"withTheme",(function(){return gt})),r.d(t,"fe",(function(){return Bt}));var n=r(0);function o(e,t,r){for(var n in e)r=t(r,e[n],n,e);return r}function i(e,t,r){for(var n=0,o=e.length;n<o;++n)r=t(r,e[n],n,o,e);return r}var u=r(3);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return"function"==typeof e?e:function(){return e}}function s(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){return i(t,(function(t,n){return a(a({},t),o(l(n)(e,r),(function(e,r,n){return a(a({},e),{},f({},n,t[n]?Object(u.combineRules)(t[n],l(r)):l(r)))}),{}))}),{})}}var p=r(6),y=r.n(p);function d(e){var t=e.displayName||e.name;return t?"Fela".concat(t):"ConnectedFelaComponent"}function b(e,t){for(var r=0,n=e.length;r<n;++r)t(e[r],r,n,e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},g=["contextTypes","defaultProps"],j={childContextTypes:!0,propTypes:!0,getDerivedStateFromProps:!0,contextType:!0};function w(e,t){return"string"==typeof t||(b(Object.getOwnPropertyNames(t).filter((function(e){return!h[e]})),(function(r){if(!e.hasOwnProperty(r)&&!j[r])try{var n=Object.getOwnPropertyDescriptor(t,r);n&&Object.defineProperty(e,r,n)}catch(e){}})),b(g,(function(r){if(t[r]){var n=e[r]||{};e[r]=m(m({},t[r]),n)}}))),e}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var S=["extend","_felaRules"];function R(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(e,t,r){return t&&E(e.prototype,t),r&&E(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function C(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=k(e);if(t){var o=k(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return D(this,r)}}function D(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var M={pure:!0};var U,L,q,$,z=Object(n.createContext)(),Y=Object(n.createContext)(),B=(U=n.Component,L=n.createElement,q=z,$=Y,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=F(F({},M),t);return function(t){var n=function(n){C(u,n);var i=_(u);function u(){return A(this,u),i.apply(this,arguments)}return x(u,[{key:"shouldComponentUpdate",value:function(e,t){return!r.pure||y()(this,e,t)}},{key:"render",value:function(){var r=this.props,n=r.extend,i=r._felaRules,u=R(r,S),c=[e];i&&c.push(i),n&&c.push(n);var a=s.apply(void 0,c);return L(q.Consumer,void 0,(function(e){return L($.Consumer,void 0,(function(r){var n=a(F(F({},u),{},{theme:r}),e);if(t._isFelaComponent)return L(t,F({_felaRules:a},u));var i=o(n,(function(t,n,o){return t[o]=e.renderRule(n,F(F({},u),{},{theme:r})),t}),{}),c=o(n,(function(t,n,o){return t[o]=function(t){return n(F({theme:r},t),e)},t}),{});return L(t,F(F({},u),{},{styles:i,theme:r,rules:c}))}))}))}}]),u}(U);return N(n,"displayName",d(t)),N(n,"_isFelaComponent",!0),w(n,t)}});function K(e,t){return i(e,(function(e,r){return t.hasOwnProperty(r)&&(e[r]=t[r]),e}),{})}function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];if("undefined"==typeof Proxy)return r;var n=function(e){return{get:function(t,r){return"object"===W(t[r])&&t[r],e.push(r),t[r]}}},o=new Proxy({theme:t},n(r));try{return e(o),r}catch(e){return[]}}function Q(e,t){return"function"==typeof e?e(t):e}function V(e,t){return o(t,(function(t,r,n){return-1===e.indexOf(n)&&"innerRef"!==n&&"is"!==n&&t.push(n),t}),[])}var G=["children","_felaRule","extend","innerRef","id","style","as","className","passThrough"];function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J(Object(r),!0).forEach((function(t){Z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ee(e){return function(e){if(Array.isArray(e))return te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return te(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function re(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ne(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return function(i){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=i.name?i.name:"FelaComponent",l=function(f){var l=f.children,s=f._felaRule,p=f.extend,y=f.innerRef,d=f.id,b=f.style,v=f.as,m=f.className,O=f.passThrough,h=void 0===O?[]:O,g=re(f,G);return e(t.Consumer,void 0,(function(t){return e(r,void 0,(function(r){if(!t)throw new Error("createComponent() can't render styles without the renderer in the context. Missing react-fela's <Provider /> at the app root?");var f=n?H(i,r):[],O=[i];s&&O.push(s),p&&("function"==typeof p?O.push(p):O.push((function(){return p})));var j=u.combineRules.apply(void 0,O),w=[].concat(ee(o),ee(Q(a,g)),ee(Q(h,g)),ee(n?V(f,g):[])),P=X(X({},g),{},{theme:r,as:v,id:d});if(c._isFelaComponent)return e(c,X({_felaRule:j,passThrough:w,innerRef:y,style:b,className:m,as:v,id:d},g),l);var S=K(w,g);if(t.isNativeRenderer){var R=t.renderRule(j,P);S.style=b?[b,R]:R}else{b&&(S.style=b);var A=m?"".concat(m," "):"";S.className=A+t.renderRule(j,P)}return d&&(S.id=d),y&&(S.ref=y),e(v||c,S,l)}))}))};return l.displayName=f,l._isFelaComponent=!0,w(l,c)}}var oe=function(e,t){return function(r){var n=r.children;return e(t.Consumer,void 0,n)}}(n.createElement,Y),ie=ne(n.createElement,z,oe),ue=ne(n.createElement,z,oe,!0),ce=["children","as","style"];function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(r),!0).forEach((function(t){le(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function se(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var pe=function(e,t,r){return function(n){var o=n.children,i=n.as,c=void 0===i?"div":i,a=n.style,f=se(n,ce);return e(t.Consumer,void 0,(function(t){return t.devMode&&null==a&&console.warn('"FelaComponent" is being rendered without a style prop\nIf all you need is access to theme, try using "FelaTheme" or the "useFela" hook instead'),e(r,void 0,(function(r){var n=t.renderRule(Object(u.combineRules)(a),fe(fe({},f),{},{theme:r}));return o instanceof Function?o({className:!t.isNativeRenderer&&n,style:t.isNativeRenderer&&n,theme:r,as:c}):e(c,{className:!t.isNativeRenderer&&n,style:t.isNativeRenderer&&n},o)}))}))}}(n.createElement,z,oe);function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return 0===e.length||0===t.length?0:e.indexOf(e.find((function(e){return null!==t.match(e)})))+1}function de(e){return e.split("{")[0].slice(9).trim()}function be(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return o+n+r+e+t}var ve=/-([a-z])/g,me=/^Ms/g,Oe={};function he(e){return e[1].toUpperCase()}function ge(e){if(Oe.hasOwnProperty(e))return Oe[e];var t=e.replace(ve,he).replace(me,"ms");return Oe[e]=t,t}function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=".".concat(e).repeat(n);return"".concat(r).concat(o).concat(t)}function we(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"",a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;return{type:e,className:t,selector:je(t,o,c,a),declaration:r+":"+n,pseudo:o,media:i,support:u}}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],u=!0,c=!1;try{for(r=r.call(e);!(u=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{u||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Se(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Se(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Re={};function Ae(e){return Re[e]||(Re[e]=new RegExp("".concat(e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),"[.]([0-9a-z_-]+)(([.][0-9a-z_-]+){0,})([^{]+)?{([^:]+):([^}]+)}"),"gi")),Re[e]}function Ee(e,t){if(e){var r=new RegExp("(([.]".concat(t,")+)?(.*)?"),""),n=Pe(e.match(r),4),o=(n[0],n[1]),i=n[2],u=n[3];return[void 0===u?"":u,o?o.length/i.length+1:1]}return["",1]}function xe(e){for(var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",u=Ae(i);t=u.exec(e);){var c=t,a=Pe(c,7),f=(a[0],a[1]),l=a[2],s=(a[3],a[4]),p=void 0===s?"":s,y=a[5],d=a[6],b=Ee(l,f),v=Pe(b,2),m=v[0],O=v[1],h=be(0===y.indexOf("--")?y:ge(y),d,m+p,r,n);o[h]=we("RULE",f,y,d,m+p,r,n,i,O)}return o}function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],u=!0,c=!1;try{for(r=r.call(e);!(u=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{u||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Te(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _e=/@supports[^{]+\{([\s\S]+?})\s*}/gi;function De(e){for(var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";t=_e.exec(e);){var i=t,u=Ce(i,2),c=u[0],a=u[1],f=de(c);xe(a,r,f,n,o)}return n}function ke(e,t){for(var r in e)t(e[r],r,e)}function Ie(e,t){return"".concat(e,"{").concat(t,"}")}function Fe(e){var t=e.type,r=e.media,n=e.support,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,i=r?'[media="'.concat(r,'"]'):":not([media])",u=n?'[data-fela-support="true"]':':not([data-fela-support="true"])';return o.querySelector('[data-fela-type="'.concat(t,'"]').concat(u).concat(i))}function Ne(e){return function(e){if(Array.isArray(e))return Me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Me(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Me(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ue(e,t,r){var n=t.type,o=t.media,i=t.support;switch(n){case"FONT":case"STATIC":case"KEYFRAME":return e[0];case"RULE":var u=e.map((function(e){return e.media})).filter((function(e){return 0!==e.length}));if(o){var c=[].concat(Ne(u),[o]).sort(r),a=c.indexOf(o)+1,f=c[a];if(f)return f===o&&i?e.find((function(e){return e.media===c[c.indexOf(o)+2]})):e.find((function(e){return e.media===f}))}else{var l=u.sort(r)[0];if(!i){var s=e.find((function(e){return void 0!==e.getAttribute("data-fela-support")&&""===e.media&&"RULE"===e.getAttribute("data-fela-type")}));if(s)return s}if(l)return e.find((function(e){return e.media===l}))}}}function Le(e){return function(e){if(Array.isArray(e))return qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=t.head||{},i=e.type,u=e.media,c=e.support,a=t.createElement("style");for(var f in a.setAttribute("data-fela-type",i),a.type="text/css",c&&a.setAttribute("data-fela-support","true"),u&&(a.media=u),n)a.setAttribute(f,n[f]);if(void 0!==("undefined"==typeof window?"undefined":$e(window))&&window.FelaConfig)for(var l in window.FelaConfig.styleNodeAttributes)a.setAttribute(l,window.FelaConfig.styleNodeAttributes[l]);var s=o.querySelectorAll("[data-fela-type]"),p=Ue(Le(s),e,r);return p?o.insertBefore(a,p):o.appendChild(a),a}function Ye(e){var t=e.type,r=e.media,n=void 0===r?"":r,o=e.support;return t+n+(void 0===o?"":o)}function Be(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,n=Ye(e);if(!t.nodes[n]){var o=Fe(e,r)||ze(e,r,t.sortMediaQuery,t.styleNodeAttributes);t.nodes[n]=o}return t.nodes[n]}function Ke(e,t){return"@supports ".concat(e,"{").concat(t,"}")}function We(e,t,r){var n=e.selector,o=e.declaration,i=e.support,u=e.media,c=e.pseudo,a=u+i;try{var f=ye(t.ruleOrder,c),l=r.sheet.cssRules,s=l.length;if(0===f)s=void 0===t.scoreIndex[a]?0:t.scoreIndex[a]+1;else for(var p=t.scoreIndex[a]||0,y=l.length;p<y;++p)if(l[p].score>f){s=p;break}var d=Ie(n,o);if(i.length>0){var b=Ke(i,d);r.sheet.insertRule(b,s)}else r.sheet.insertRule(d,s);0===f&&(t.scoreIndex[a]=s),l[s].score=f}catch(e){}}function He(e,t){e.updateSubscription||(e.scoreIndex={},e.nodes={},e.updateSubscription=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return function(r){if("CLEAR"===r.type)return ke(e.nodes,(function(e){return e.parentNode.removeChild(e)})),e.nodes={},void(e.scoreIndex={});var n=Be(r,e,t);switch(r.type){case"KEYFRAME":-1===n.textContent.indexOf(r.keyframe)&&(n.textContent+=r.keyframe);break;case"FONT":-1===n.textContent.indexOf(r.fontFace)&&(n.textContent+=r.fontFace);break;case"STATIC":var o=r.selector?Ie(r.selector,r.css):r.css;-1===n.textContent.indexOf(o)&&(n.textContent+=o);break;case"RULE":We(r,e,n)}}}(e,t),e.subscribe(e.updateSubscription),ke(e.cache,e._emitChange))}function Qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],u=!0,c=!1;try{for(r=r.call(e);!(u=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{u||null==r.return||r.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ve(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ve(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ge=/@(-webkit-|-moz-)?keyframes ([a-z_][a-z0-9-_]*)(\{.*?(?=}})}})/gi;function Je(e){for(var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Ge.exec(e);){var n=t,o=Qe(n,4),i=o[0],u=(o[1],o[2]),c=o[3];r[c]?r[c].keyframe+=i:r[c]={type:"KEYFRAME",keyframe:i,name:u}}return r}var Xe=/[.][a-z0-9_-]*/gi;function Ze(e){return(Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ot(e);if(t){var o=ot(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return nt(this,r)}}function nt(e,t){if(t&&("object"===Ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ot(e){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var it=r(5),ut=r.n(it),ct=function(e,t,r,n,o){var i=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tt(e,t)}(a,e);var o,i,u,c=rt(a);function a(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(r=c.call(this,e,t))._renderStyle(),r}return o=a,(i=[{key:"componentDidUpdate",value:function(e){e.renderer!==this.props.renderer&&this._renderStyle()}},{key:"_renderStyle",value:function(){var e=this.props,t=e.renderer,r=e.rehydrate,n=e.targetDocument;(function(e,t){if("undefined"==typeof document)return!1;var r=t||document;return e&&!e.isNativeRenderer&&r&&r.createElement})(t,n)&&(r&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.querySelectorAll("[data-fela-type]").length>0}(n)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;He(e,t),b(t.querySelectorAll("[data-fela-type]"),(function(t){var r=t.getAttribute("data-fela-rehydration")||-1,n=e.uniqueRuleIdentifier||parseInt(r,10);if(-1!==n){var o=t.getAttribute("data-fela-type")||"",i=t.getAttribute("media")||"",u=t.getAttribute("data-fela-support")||"",c=t.textContent;e.uniqueRuleIdentifier=n;var a=o+i+u;if(e.nodes[a]=t,"RULE"===o){if(u?De(c,i,e.cache,e.specificityPrefix):xe(c,i,"",e.cache,e.specificityPrefix),t.sheet&&t.sheet.cssRules){var f=i+u;b(t.sheet.cssRules,(function(t,r){var n=t.conditionText?t.cssRules[0].selectorText:t.selectorText,o=ye(e.ruleOrder,n.split(Xe)[1]);0===o&&(e.scoreIndex[f]=r),t.score=o}))}}else"KEYFRAME"===o&&Je(c,e.cache)}}))}(t,n):He(t,n))}},{key:"render",value:function(){return r(t.Provider,{value:this.props.renderer},n(this.props.children))}}])&&et(o.prototype,i),u&&et(o,u),Object.defineProperty(o,"prototype",{writable:!1}),a}(e);return o&&ke(o,(function(e,t){i[t]=e})),i}(n.Component,z,n.createElement,(function(e){return e}),{propTypes:{renderer:ut.a.object.isRequired,rehydrate:ut.a.bool.isRequired},defaultProps:{rehydrate:!0}});function at(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?at(Object(r),!0).forEach((function(t){lt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function lt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var st=function(e,t,r){return function(n){var o=n.theme,i=void 0===o?{}:o,u=n.overwrite,c=void 0!==u&&u,a=n.children;return t(e.Consumer,null,(function(n){return t(e.Provider,{value:!c&&n?ft(ft({},n),i):i},r(a))}))}}(Y,n.createElement,(function(e){return e}));function pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(r),!0).forEach((function(t){dt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bt=function(e,t,r){return function(n){var o=r(e),i=r(t)||{};if(!o)throw new Error('The "useFela" hook can only be used inside a "RendererProvider"');var c=function(e,t){return e?yt(yt({},e),{},{theme:t}):{theme:t}}(n,i);return{renderer:o,theme:i,css:function(){return o.renderRule(u.combineRules.apply(void 0,arguments),c)},staticStyle:function(e,t){return o.renderStatic(e,t,c)}}}}(z,Y,n.useContext);function vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(r),!0).forEach((function(t){Ot(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ht,gt=function(e,t){return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"theme",o=function(o){return e(t,void 0,(function(t){return e(r,mt(mt({},o),{},Ot({},n,t)))}))};return w(o,r)}}(n.createElement,oe);function jt(e){return function(e){if(Array.isArray(e))return wt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return wt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pt(e){return function(e){if(Array.isArray(e))return St(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return St(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return St(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Rt(e,t){return i(o(e,(function(r,n,o){var i=function(e,t){for(var r=-1,n=0;n<e.length;n++)if(t(e[n])){r=n;break}return r}(r,(function(r){return t(e[r],r)>t(n,o)}));return-1!==i?function(e,t,r){return[].concat(jt(e.slice(0,r)),[t],jt(e.slice(r,e.length)))}(r,o,i):[].concat(Pt(r),[o])}),[]),(function(t,r){return t[r]=e[r],t}),{})}function At(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Et=(At(ht={},"RULE",(function(e,t){var r=t.selector,n=t.declaration,o=t.support,i=t.media,u=Ie(r,n);o?i?(e.supportMediaRules[i]||(e.supportMediaRules[i]={}),e.supportMediaRules[i][o]||(e.supportMediaRules[i][o]=""),e.supportMediaRules[i][o]+=u):(e.supportRules[o]||(e.supportRules[o]=""),e.supportRules[o]+=u):i?(e.mediaRules[i]||(e.mediaRules[i]=""),e.mediaRules[i]+=u):e.rules+=u})),At(ht,"FONT",(function(e,t){var r=t.fontFace;e.fontFaces+=r})),At(ht,"KEYFRAME",(function(e,t){var r=t.keyframe;e.keyframes+=r})),At(ht,"STATIC",(function(e,t){var r=t.css,n=t.selector;e.statics+=n?Ie(n,r):r})),ht);var xt={fontFaces:"FONT",statics:"STATIC",keyframes:"KEYFRAME",rules:"RULE"};function Ct(e){return o(e,(function(e,t,r){return t.length>0&&(e+=Ke(r,t)),e}),"")}var Tt=/^[a-z0-9_-]*$/gi;function _t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(r),!0).forEach((function(t){kt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function kt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function It(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Rt(e,(function(e){return ye(t,e.pseudo)}));return o(r,(function(e,t){var r=Et[t.type];return r&&r(e,t),e}),{mediaRules:{},supportRules:{},supportMediaRules:{},fontFaces:"",statics:"",keyframes:"",rules:""})}(e.cache,e.ruleOrder),r=function(e){return 0===e.selectorPrefix.length||null!==e.selectorPrefix.match(Tt)?e.uniqueRuleIdentifier:-1}(e),n=o(xt,(function(n,o,i){return t[i].length>0&&n.push({css:t[i],rehydration:r,attributes:e.styleNodeAttributes,type:o}),n}),[]),u=Ct(t.supportRules);return u&&n.push({css:u,type:"RULE",rehydration:r,attributes:e.styleNodeAttributes,support:!0}),i(Object.keys(Dt(Dt({},t.supportMediaRules),t.mediaRules)).sort(e.sortMediaQuery),(function(n,o){if(t.mediaRules[o]&&t.mediaRules[o].length>0&&n.push({css:t.mediaRules[o],type:"RULE",rehydration:r,attributes:e.styleNodeAttributes,media:o}),t.supportMediaRules[o]){var i=Ct(t.supportMediaRules[o]);i.length>0&&n.push({css:i,type:"RULE",rehydration:r,attributes:e.styleNodeAttributes,support:!0,media:o})}return n}),n)}function Ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(r),!0).forEach((function(t){Mt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ft(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ut=function(e){return function(t){return It(t).map((function(r){var n=r.type,o=r.media,i=r.rehydration,u=r.support,c=r.css;return e("style",Nt(Nt({key:n+o},t.styleNodeAttributes),{},{media:o,"data-fela-rehydration":i,"data-fela-type":n,"data-fela-support":u,dangerouslySetInnerHTML:{__html:c}}))}))}}(n.createElement),Lt=["css","key","ref","className"];function qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(r),!0).forEach((function(t){zt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Bt=function(e,t){return function(r){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length,i=new Array(o>2?o-2:0),u=2;u<o;u++)i[u-2]=arguments[u];if(n){var c=n.css,a=n.key,f=n.ref,l=n.className,s=Yt(n,Lt);if(c)return e(t,{style:c,key:a,ref:f},(function(t){return e.apply(void 0,[r,$t($t({},s),{},{className:l?l+" "+t.className:t.className})].concat(i))}))}return e.apply(void 0,[r,n].concat(i))}}(n.createElement,pe),Kt=z.Consumer}])})); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129854
854
Updatedfela-bindings@^12.1.0
Updatedfela-dom@^12.1.0