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

gymnast

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gymnast - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

dist/withResolution/withResolution.logic.spec.js.flow

2

dist/gymnast.min.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],e):"object"==typeof exports?exports.gymnast=e(require("react"),require("prop-types")):t.gymnast=e(t.react,t["prop-types"])}("undefined"!=typeof self?self:this,function(t,e){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=24)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t){return!0}function a(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments[1];if(!e||!e.length)return{};var n=[];switch(e.length){case 1:n=[e[0],e[0],e[0],e[0]];break;case 2:n=[e[0],e[1],e[0],e[1]];break;case 3:n=[e[0],e[1],e[2],e[1]];break;case 4:n=e;break;default:M.default.error(A.default.TOOMANYSPACEVAL,'"'+JSON.stringify(e)+'" used'),n=e}return t={},i(t,r+"Top",n[0]),i(t,r+"Right",n[1]),i(t,r+"Bottom",n[2]),i(t,r+"Left",n[3]),t}function c(t,e,r){var n="number"==typeof e?e:parseFloat(e||0);return void 0===e?{}:t.includes("padding")?i({},t,n*r):i({},t.replace("margin","border")+"Width",n*r)}function f(t,e){if(void 0!==t){if("number"==typeof t)return[t];var r=void 0;if(t instanceof Array?r=t:"string"==typeof t&&(r=t.split(k)),r)return l(r,e).map(parseFloat);M.default.error(A.default.INVALIDSPACING,'"'+(void 0===t?"undefined":O(t))+'" used')}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P.default.spacingAliases;return e&&"string"==typeof t&&t in e?e[t]:t}function l(t,e){return t.map(function(t){return s(t,e)})}function p(t,e){return Object.keys(t).reduce(function(r,n){return _({},r,i({},n,s(t[n],e)))},{})}function d(t){var e=t.spacingProps,r=t.base,n=t.spacingAliases,i=e.margin,s=e.padding,l=o(e,["margin","padding"]),d=f(i,n),y=f(s,n);if(!u(_({marginArray:d,paddingArray:y},l)))return{};var v=_({},p(l,n),a(d,"margin"),a(y,"padding"));return Object.keys(v).reduce(function(t,e){return _({},t,c(e,v[e],r))},{})}function y(t){var e={};return Object.keys(t).forEach(function(r){e[r]=(0,j.default)(t[r])}),e}function v(t,e,r){return[r,(0,m.default)(t,'gymnast["'+e+'"]'),P.default[e]].find(L)}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,m.default)(t,"gymnast",{});return _({},P.default,r,e)}function g(t){return function(e,r){return t.forEach(function(t){e[t]=Object.assign(e[t],r[t])}),e}}Object.defineProperty(e,"__esModule",{value:!0}),e.times=e.noop=e.splitPattern=void 0;var b=r(29),m=n(b),_=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.validateSpacingProps=u,e.getCSS=c,e.parseSpacing=f,e.replaceSpacingAliases=l,e.combineSpacing=d,e.toCXS=y,e.getValue=v,e.getValues=h,e.accumulateOver=g;var x=r(3),j=n(x),w=r(19),P=n(w),S=r(7),M=n(S),C=r(8),A=n(C),L=function(t){return void 0!==t},k=e.splitPattern=/(?:(?:\s+)?,(?:\s+)?|\s+)/;e.noop=function(){return null},e.times=function(t){return new Array(t).fill(void 0).map(function(t,e){return e})}},function(e,r){e.exports=t},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(14),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=(0,o.default)("div")},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(27),o=function(t){return t&&t.__esModule?t:{default:t}}(n);o.default.prefix("xnr_"),e.default=o.default},function(t,e,r){"use strict";var n=r(17),o=n(Object,"create");t.exports=o},function(t,e,r){"use strict";function n(t,e){for(var r=t.length;r--;)if(o(t[r][0],e))return r;return-1}var o=r(57);t.exports=n},function(t,e,r){"use strict";function n(t,e){var r=t.__data__;return o(e)?r["string"==typeof e?"string":"hash"]:r.map}var o=r(63);t.exports=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(8),o=function(t){return t&&t.__esModule?t:{default:t}}(n),i=["info","warn","error"],u=0,a=console,c={};i.forEach(function(t,e){c[t]=function(){if(e>=u){var r;(r=a)[t].apply(r,arguments)}}}),c.setLevel=function(t){var e=i.indexOf(t);e>=0?u=e:c.error(o.default.INVALIDLOGLEVEL,t)},c.setLogger=function(t){a=t},e.default=c},function(t,e,r){"use strict";t.exports={}},function(t,e,r){"use strict";var n=Array.isArray;t.exports=n},function(t,e,r){"use strict";function n(t){return"symbol"==(void 0===t?"undefined":o(t))||u(t)&&i(t)==a}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(16),u=r(36),a="[object Symbol]";t.exports=n},function(t,e,r){"use strict";var n=r(12),o=n.Symbol;t.exports=o},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=r(33),i="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,u=o||i||Function("return this")();t.exports=u},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigContextPropTypes=void 0;var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},f=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(s),p=r(71),d=n(p),y=r(19),v=n(y),h=e.ConfigContextPropTypes={gymnast:d.default.shape({base:d.default.number,columns:d.default.number,displayAliases:d.default.shape({}),gutter:d.default.number,maxPageWidth:d.default.number,minPageWidth:d.default.number,pageMargin:d.default.shape({}),spacingAliases:d.default.shape({}),verticalGutter:d.default.number})},g=function(t){function e(){return i(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),f(e,[{key:"getChildContext",value:function(){var t=this.props,e=t.gutter,r=void 0===e?v.default.gutter:e,n=t.verticalGutter,i=void 0===n?r:n,u=(t.children,o(t,["gutter","verticalGutter","children"]));return{gymnast:c({gutter:r,verticalGutter:i},u)}}},{key:"render",value:function(){return this.props.children||null}}]),e}(l.Component);g.contextTypes=h,g.childContextTypes=h,e.default=g},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function i(t){function e(e,r){var n=e.align,i=e.className,u=e.justify,f=e.size,d=e.innerRef,y=o(e,["align","className","justify","size","innerRef"]),v=(0,a.default)([l.styles.grid,(0,l.getCol)(f,(0,p.getValue)(r,"columns")),i,n&&l.styles[n+"Align"],u&&l.styles[u+"Justify"]]);return s.createElement(t,c({},y,{ref:d,className:v.join(" ")}))}return(0,y.default)(e,v)}Object.defineProperty(e,"__esModule",{value:!0});var u=r(15),a=n(u),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=i;var f=r(1),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(f),l=r(26),p=r(0),d=r(20),y=n(d),v=["align","justify","size"]},function(t,e,r){"use strict";function n(t){for(var e=-1,r=null==t?0:t.length,n=0,o=[];++e<r;){var i=t[e];i&&(o[n++]=i)}return o}t.exports=n},function(t,e,r){"use strict";function n(t){return null==t?void 0===t?c:a:f&&f in Object(t)?i(t):u(t)}var o=r(11),i=r(34),u=r(35),a="[object Null]",c="[object Undefined]",f=o?o.toStringTag:void 0;t.exports=n},function(t,e,r){"use strict";function n(t,e){var r=i(t,e);return o(r)?r:void 0}var o=r(44),i=r(49);t.exports=n},function(t,e,r){"use strict";function n(t){var e=void 0===t?"undefined":o(t);return null!=t&&("object"==e||"function"==e)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={base:8,columns:12,displayAliases:{small:{maxWidth:"599px"},medium:{minWidth:"600px",maxWidth:"899px"},large:{minWidth:"900px"}},gutter:3,maxPageWidth:153,minPageWidth:50,pageMargin:{small:1,medium:6,large:6},spacingAliases:{XS:.5,"S/2":.5,S:1,"M/2":1,M:2,"L/2":1.5,L:3,"XL/2":2,XL:4,"2XL/2":3,"2XL":6},verticalGutter:3}},function(t,e,r){"use strict";function n(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function o(t,e){function r(e,r){var o=e.base,u=e.margin,c=e.marginBottom,f=e.marginLeft,l=e.marginRight,p=e.marginTop,d=e.padding,y=e.paddingBottom,v=e.paddingLeft,h=e.paddingRight,g=e.paddingTop,b=e.style,m=void 0===b?{}:b,_=n(e,["base","margin","marginBottom","marginLeft","marginRight","marginTop","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","style"]),O=i({},m,(0,s.combineSpacing)({spacingProps:{margin:u,padding:d,marginTop:p,marginRight:l,marginBottom:c,marginLeft:f,paddingTop:g,paddingRight:h,paddingBottom:y,paddingLeft:v},base:(0,s.getValue)(r,"base",o),spacingAliases:(0,s.getValue)(r,"spacingAliases")}));return a.createElement(t,i({},_,{style:O}))}return r.contextTypes=l.ConfigContextPropTypes,(0,f.default)(r,p.concat(e))}Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=o;var u=r(1),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(u),c=r(21),f=function(t){return t&&t.__esModule?t:{default:t}}(c),s=r(0),l=r(13),p=["margin","marginBottom","marginLeft","marginRight","marginTop","padding","paddingBottom","paddingLeft","paddingRight","paddingTop"]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function c(t,e){var r,n;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.supportsMatchMedia)?(n=r=function(r){function n(){var t,r,a,c;i(this,n);for(var s=arguments.length,l=Array(s),p=0;p<s;p++)l[p]=arguments[p];return r=a=u(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(l))),a.state={shouldShow:void 0},a.onMediaQueryChange=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],r=a.state.shouldShow||{};r[e]!==t.matches&&a.setState({shouldShow:f({},r,o({},e,t.matches))})},a.getQueries=function(t){var e=(0,v.getValue)(a.context,"displayAliases"),r=t;return!t&&a.anyPropsUseResolutionFormat()&&(r=Object.keys(e)),(0,_.getMediaQueries)(r,e)},a.anyPropsUseResolutionFormat=function(){return e.some(function(t){return(0,_.isObject)(a.props[t])})},a.removeMediaQueryListener=function(t){var e=a.getQueries(t);Object.keys(e).forEach(function(t){(0,m.unregister)(e[t],a.onMediaQueryChange)})},a.addMediaQueryListener=function(t){var e=a.getQueries(t);Object.keys(e).forEach(function(t){(0,m.register)(e[t],t,a.onMediaQueryChange)})},c=r,u(a,c)}return a(n,r),s(n,[{key:"componentDidMount",value:function(){this.addMediaQueryListener(this.props.show)}},{key:"componentWillReceiveProps",value:function(t){var e=t.show;e!==this.props.show&&(this.removeMediaQueryListener(this.props.show),this.addMediaQueryListener(e))}},{key:"componentWillUnmount",value:function(){this.removeMediaQueryListener(this.props.show)}},{key:"render",value:function(){if(this.props.show&&this.state.shouldShow&&!(0,_.hasTrueValues)(this.state.shouldShow))return null;var r=(0,_.getSingleResolutionProps)(this.props,this.state.shouldShow,e);return p.createElement(t,r)}}]),n}(p.Component),r.contextTypes=b.ConfigContextPropTypes,n):(y.default.warn(g.default.NOMATCHMEDIA),t)}Object.defineProperty(e,"__esModule",{value:!0});var f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();e.default=c;var l=r(1),p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(l),d=r(7),y=n(d),v=r(0),h=r(8),g=n(h),b=r(13),m=r(72),_=r(22)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function u(t){return function(e){return!0===t[e]}}function a(t){return Object.keys(t).find(u(t))}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a(e);return r&&r in t?t[r]:t.default}function f(t){return"[object Object]"===Object.prototype.toString.call(t)}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).some(u(t))}function l(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=i(t,[]);return delete n.show,Object.keys(n).forEach(function(t){var o=n[t];f(o)&&r.includes(t)&&(n[t]=c(o,e))}),n}function p(t,e){var r=[];return Object.keys(e[t]).forEach(function(n){if(n in O){var o=e[t][n];r.push("("+O[n]+": "+o+")")}else b.default.error(_.default.INVALIDMEDIAKEY,'"'+n+'" used')}),r.join(" and ")}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];return(t instanceof Array?t:t.split(h.splitPattern)).filter(function(t){return t in e}).map(function(t){return[t,p(t,e)]}).reduce(function(t,e){var r=v(e,2),n=r[0],i=r[1];return i?y({},t,o({},n,i)):t},{})}Object.defineProperty(e,"__esModule",{value:!0});var y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},v=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var u,a=t[Symbol.iterator]();!(n=(u=a.next()).done)&&(r.push(u.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.isObject=f,e.hasTrueValues=s,e.getSingleResolutionProps=l,e.getMediaQuery=p,e.getMediaQueries=d;var h=r(0),g=r(7),b=n(g),m=r(8),_=n(m),O={minWidth:"min-width",maxWidth:"max-width",minHeight:"min-height",maxHeight:"max-height",aspectRatio:"aspect-ratio",orientation:"orientation"}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function i(t){function e(e,r){var n=e.className,i=e.fixed,u=e.height,f=e.overflow,l=e.innerRef,d=o(e,["className","fixed","height","overflow","innerRef"]),y=(0,p.default)((0,v.getValues)(r,d)),h=(0,a.default)([n,i&&y[i+"Fixed"],u?y[u+"Height"]:y.fitHeight,f&&y.overflow,y.layout]);return s.createElement(t,c({ref:l},d,{className:h.join(" ")}))}return(0,y.default)(e,h)}Object.defineProperty(e,"__esModule",{value:!0});var u=r(15),a=n(u),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=i;var f=r(1),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(f),l=r(74),p=n(l),d=r(20),y=n(d),v=r(0),h=["fixed","height","overflow"]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=e.Dev=e.utils=e.withResolution=e.asLayout=e.asGrid=e.Root=e.Offset=e.Layout=e.Grid=e.ConfigProvider=e.Col=void 0;var o=r(25);Object.defineProperty(e,"Col",{enumerable:!0,get:function(){return n(o).default}});var i=r(13);Object.defineProperty(e,"ConfigProvider",{enumerable:!0,get:function(){return n(i).default}});var u=r(2);Object.defineProperty(e,"Grid",{enumerable:!0,get:function(){return n(u).default}});var a=r(73);Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return n(a).default}});var c=r(75);Object.defineProperty(e,"Offset",{enumerable:!0,get:function(){return n(c).default}});var f=r(76);Object.defineProperty(e,"Root",{enumerable:!0,get:function(){return n(f).default}});var s=r(14);Object.defineProperty(e,"asGrid",{enumerable:!0,get:function(){return n(s).default}});var l=r(23);Object.defineProperty(e,"asLayout",{enumerable:!0,get:function(){return n(l).default}});var p=r(21);Object.defineProperty(e,"withResolution",{enumerable:!0,get:function(){return n(p).default}});var d=r(78);Object.defineProperty(e,"Dev",{enumerable:!0,get:function(){return n(d).default}});var y=r(7);Object.defineProperty(e,"log",{enumerable:!0,get:function(){return n(y).default}}),r(3);var v=r(0),h=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(v);e.utils=h},function(t,e,r){"use strict";function n(t,e){if(void 0!==t.margin)return u.createElement(c.default,t);var r=(0,f.getValues)(e,t),n=r.gutter,i=r.verticalGutter;return u.createElement(c.default,o({marginTop:0,marginRight:n/2,marginBottom:i,marginLeft:n/2},t))}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=n;var i=r(1),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(i),a=r(2),c=function(t){return t&&t.__esModule?t:{default:t}}(a),f=r(0)},function(t,e,r){"use strict";function n(t,e){return"auto"===t?a.colAuto:"fit"===t?a.colFit:void 0===t||0===t?a.fraction:(0,i.default)({flexBasis:parseInt(t,10)/e*100+"%",maxWidth:parseInt(t,10)/e*100+"%"})}Object.defineProperty(e,"__esModule",{value:!0}),e.styles=void 0,e.getCol=n;var o=r(3),i=function(t){return t&&t.__esModule?t:{default:t}}(o),u=r(0),a=e.styles=(0,u.toCXS)({grid:{border:"0 transparent solid",boxSizing:"border-box",display:"flex",flexFlow:"row wrap",width:"100%"},fraction:{flexGrow:1},leftJustify:{justifyContent:"flex-start",marginRight:"auto"},centerJustify:{justifyContent:"center",marginLeft:"auto",marginRight:"auto"},rightJustify:{justifyContent:"flex-end",marginLeft:"auto"},topAlign:{alignContent:"flex-start",alignItems:"flex-start"},centerAlign:{alignContent:"center",alignItems:"center"},bottomAlign:{alignContent:"flex-end",alignItems:"flex-end"},colAuto:{flexGrow:1,flexShrink:1,flexBasis:"0%"},colFit:{flexGrow:0,flexShrink:0,width:"auto",whiteSpace:"nowrap"}})},function(t,e,r){"use strict";t.exports=r(28)},function(t,e,r){"use strict";var n={},o="_cxs",i=[],u=function(t){return i.push(t)},a=function(t){return t.replace(/[A-Z]|^ms/g,"-$&").toLowerCase()},c=function(t,e){return e?e+"{"+t+"}":t},f=function(t){return t.replace(/&/g,"")},s=function(t,e){return a(t)+":"+e},l=function(t){var e=t.className,r=t.child,n=t.media,o=t.declarations;return c("."+(e+r)+"{"+o.join(";")+"}",n)},p=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2],o=[],i=[];for(var u in e){var a=e[u];if(null!==a)if("object"!=typeof a){var c=s(u,a);i.push(c)}else{var l=/^@/.test(u)?u:null,p=l?r:r+f(u);t(a,p,l).forEach(function(t){return o.push(t)})}}return o.unshift({media:n,child:r,declarations:i}),o},d=function(t){var e=p(t),r=[];return e.forEach(function(t){var e=JSON.stringify(t);if(n[e])return void r.push(n[e]);var a=o+i.length.toString(36);r.push(a);var c=l(Object.assign(t,{className:a}));u(c),n[e]=a}),r.join(" ")};if(t.exports=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.map(function(t){return d(t)}).join(" ").trim()},t.exports.css=function(){return i.sort().join("")},t.exports.reset=function(){for(n={};i.length;)i.pop()},t.exports.prefix=function(t){return o=t},"undefined"!=typeof document){var y=document.createElement("style");window&&(y.nonce=window.__webpack_nonce__);var v=document.head.appendChild(y),h=v.sheet;v.id="_cxs_",u=function(t){i.push(t),h.insertRule(t,h.cssRules.length)}}},function(t,e,r){"use strict";function n(t,e,r){var n=null==t?void 0:o(t,e);return void 0===n?r:n}var o=r(30);t.exports=n},function(t,e,r){"use strict";function n(t,e){e=o(e,t);for(var r=0,n=e.length;null!=t&&r<n;)t=t[i(e[r++])];return r&&r==n?t:void 0}var o=r(31),i=r(70);t.exports=n},function(t,e,r){"use strict";function n(t,e){return o(t)?t:i(t,e)?[t]:u(a(t))}var o=r(9),i=r(32),u=r(37),a=r(67);t.exports=n},function(t,e,r){"use strict";function n(t,e){if(i(t))return!1;var r=void 0===t?"undefined":o(t);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!u(t))||c.test(t)||!a.test(t)||null!=e&&t in Object(e)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(9),u=r(10),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;t.exports=n},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o="object"==("undefined"==typeof global?"undefined":n(global))&&global&&global.Object===Object&&global;t.exports=o},function(t,e,r){"use strict";function n(t){var e=u.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}var o=r(11),i=Object.prototype,u=i.hasOwnProperty,a=i.toString,c=o?o.toStringTag:void 0;t.exports=n},function(t,e,r){"use strict";function n(t){return i.call(t)}var o=Object.prototype,i=o.toString;t.exports=n},function(t,e,r){"use strict";function n(t){return null!=t&&"object"==(void 0===t?"undefined":o(t))}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=n},function(t,e,r){"use strict";var n=r(38),o=/^\./,i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,a=n(function(t){var e=[];return o.test(t)&&e.push(""),t.replace(i,function(t,r,n,o){e.push(n?o.replace(u,"$1"):r||t)}),e});t.exports=a},function(t,e,r){"use strict";function n(t){var e=o(t,function(t){return r.size===i&&r.clear(),t}),r=e.cache;return e}var o=r(39),i=500;t.exports=n},function(t,e,r){"use strict";function n(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var r=function r(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u)||i,u};return r.cache=new(n.Cache||o),r}var o=r(40),i="Expected a function";n.Cache=o,t.exports=n},function(t,e,r){"use strict";function n(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(41),i=r(62),u=r(64),a=r(65),c=r(66);n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=u,n.prototype.has=a,n.prototype.set=c,t.exports=n},function(t,e,r){"use strict";function n(){this.size=0,this.__data__={hash:new o,map:new(u||i),string:new o}}var o=r(42),i=r(54),u=r(61);t.exports=n},function(t,e,r){"use strict";function n(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(43),i=r(50),u=r(51),a=r(52),c=r(53);n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=u,n.prototype.has=a,n.prototype.set=c,t.exports=n},function(t,e,r){"use strict";function n(){this.__data__=o?o(null):{},this.size=0}var o=r(4);t.exports=n},function(t,e,r){"use strict";function n(t){return!(!u(t)||i(t))&&(o(t)?y:f).test(a(t))}var o=r(45),i=r(46),u=r(18),a=r(48),c=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,p=s.toString,d=l.hasOwnProperty,y=RegExp("^"+p.call(d).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=n},function(t,e,r){"use strict";function n(t){if(!i(t))return!1;var e=o(t);return e==a||e==c||e==u||e==f}var o=r(16),i=r(18),u="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",f="[object Proxy]";t.exports=n},function(t,e,r){"use strict";function n(t){return!!i&&i in t}var o=r(47),i=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=n},function(t,e,r){"use strict";var n=r(12),o=n["__core-js_shared__"];t.exports=o},function(t,e,r){"use strict";function n(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var o=Function.prototype,i=o.toString;t.exports=n},function(t,e,r){"use strict";function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e,r){"use strict";function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},function(t,e,r){"use strict";function n(t){var e=this.__data__;if(o){var r=e[t];return r===i?void 0:r}return a.call(e,t)?e[t]:void 0}var o=r(4),i="__lodash_hash_undefined__",u=Object.prototype,a=u.hasOwnProperty;t.exports=n},function(t,e,r){"use strict";function n(t){var e=this.__data__;return o?void 0!==e[t]:u.call(e,t)}var o=r(4),i=Object.prototype,u=i.hasOwnProperty;t.exports=n},function(t,e,r){"use strict";function n(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=o&&void 0===e?i:e,this}var o=r(4),i="__lodash_hash_undefined__";t.exports=n},function(t,e,r){"use strict";function n(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(55),i=r(56),u=r(58),a=r(59),c=r(60);n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=u,n.prototype.has=a,n.prototype.set=c,t.exports=n},function(t,e,r){"use strict";function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,r){"use strict";function n(t){var e=this.__data__,r=o(e,t);return!(r<0||(r==e.length-1?e.pop():u.call(e,r,1),--this.size,0))}var o=r(5),i=Array.prototype,u=i.splice;t.exports=n},function(t,e,r){"use strict";function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,r){"use strict";function n(t){var e=this.__data__,r=o(e,t);return r<0?void 0:e[r][1]}var o=r(5);t.exports=n},function(t,e,r){"use strict";function n(t){return o(this.__data__,t)>-1}var o=r(5);t.exports=n},function(t,e,r){"use strict";function n(t,e){var r=this.__data__,n=o(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var o=r(5);t.exports=n},function(t,e,r){"use strict";var n=r(17),o=r(12),i=n(o,"Map");t.exports=i},function(t,e,r){"use strict";function n(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}var o=r(6);t.exports=n},function(t,e,r){"use strict";function n(t){var e=void 0===t?"undefined":o(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=n},function(t,e,r){"use strict";function n(t){return o(this,t).get(t)}var o=r(6);t.exports=n},function(t,e,r){"use strict";function n(t){return o(this,t).has(t)}var o=r(6);t.exports=n},function(t,e,r){"use strict";function n(t,e){var r=o(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var o=r(6);t.exports=n},function(t,e,r){"use strict";function n(t){return null==t?"":o(t)}var o=r(68);t.exports=n},function(t,e,r){"use strict";function n(t){if("string"==typeof t)return t;if(u(t))return i(t,n)+"";if(a(t))return s?s.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}var o=r(11),i=r(69),u=r(9),a=r(10),c=1/0,f=o?o.prototype:void 0,s=f?f.toString:void 0;t.exports=n},function(t,e,r){"use strict";function n(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}t.exports=n},function(t,e,r){"use strict";function n(t){if("string"==typeof t||o(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}var o=r(10),i=1/0;t.exports=n},function(t,r){t.exports=e},function(t,e,r){"use strict";function n(t){return function(){u[t].forEach(function(e){var r=e.callback,n=e.alias;return r(a[t].mediaQuery,n)})}}function o(t,e,r){if(t&&c){if(i(t,r),t in u)u[t].push({callback:r,alias:e});else{var o=window.matchMedia(t),f=n(t);a[t]={mediaQuery:o,allCallbacks:f},u[t]=[{callback:r,alias:e}],o.addListener(f)}r(a[t].mediaQuery,e)}}function i(t,e){c&&t&&t in u&&(u[t]=u[t].filter(function(t){var r=t.callback;return e!==r}),0===u[t].length&&(a[t].mediaQuery.removeListener(a[t].allCallbacks),delete a[t],delete u[t]))}Object.defineProperty(e,"__esModule",{value:!0}),e.register=o,e.unregister=i;var u={},a={},c=e.supportsMatchMedia=!(!window||!window.matchMedia)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(23),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=(0,o.default)("div")},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){var e=t.maxPageWidth,r=t.minPageWidth,o=t.base,u={layout:{alignItems:"center",alignSelf:"flex-start",border:"0 transparent solid",boxSizing:"border-box",display:"flex",flexFlow:"column",minWidth:r*o+"px",padding:0,width:"100%"},parentHeight:{flexGrow:1,height:"100%"},overflow:{overflowY:"auto",overflowX:"hidden"},fitHeight:{flexGrow:0,flexShrink:0},autoHeight:{flexShrink:0,flexGrow:1},topFixed:i({},f,{top:0}),bottomFixed:i({},f,{bottom:0})},s=(0,a.default)(i({},u.layout,n({}," > :not(."+c+")",{maxWidth:e*o+"px"}))),l={};return Object.keys(u).forEach(function(t){l[t]=(0,a.default)(u[t])}),l.layout=c+" "+s,l}Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=o;var u=r(3),a=function(t){return t&&t.__esModule?t:{default:t}}(u),c="xnr_layout",f={position:"fixed",left:"50%",transform:"translateX(-50%)"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(n),i=r(2),u=function(t){return t&&t.__esModule?t:{default:t}}(i),a=function(t){var e=t.size;return o.createElement(u.default,{size:e})};e.default=a},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function i(t,e){var r=t.children,n=t.justify,i=o(t,["children","justify"]),a=(0,p.default)((0,d.getValues)(e,i));return c.createElement(s.default,u({},i,{className:a.root,justify:"center"}),c.createElement(s.default,{justify:n,className:a.child},r))}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=i;var a=r(1),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(a),f=r(2),s=n(f),l=r(77),p=n(l),d=r(0)},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){return{root:n({},"@media screen and "+t,{paddingLeft:e,paddingRight:e}),child:{}}}function i(t,e){return{root:n({},"@media screen and "+t,s),child:n({},"@media screen and "+t,{flexShrink:0,width:"calc(100% + "+e+"px)"})}}function u(t){var e=t.gutter,r=t.pageMargin,n=t.base,u=t.displayAliases,s=Object.keys(u).map(function(t){var a=(0,c.getMediaQuery)(t,u),f=r[t]-e/2;return f>0?o(a,f*n+"px"):i(a,(e/2-r[t])*n*2)}).reduce(f,{root:{},child:{}});return(0,a.toCXS)(s)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var a=r(0),c=r(22),f=(0,a.accumulateOver)(["root","child"]),s={overflow:"hidden",paddingLeft:0,paddingRight:0}},function(t,e,r){"use strict";t.exports=r(0).noop}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],e):"object"==typeof exports?exports.gymnast=e(require("react"),require("prop-types")):t.gymnast=e(t.react,t["prop-types"])}("undefined"!=typeof self?self:this,function(t,e){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=24)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t){return!0}function a(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments[1];if(!e||!e.length)return{};var n=[];switch(e.length){case 1:n=[e[0],e[0],e[0],e[0]];break;case 2:n=[e[0],e[1],e[0],e[1]];break;case 3:n=[e[0],e[1],e[2],e[1]];break;case 4:n=e;break;default:M.default.error(C.default.TOOMANYSPACEVAL,'"'+JSON.stringify(e)+'" used'),n=e}return t={},i(t,r+"Top",n[0]),i(t,r+"Right",n[1]),i(t,r+"Bottom",n[2]),i(t,r+"Left",n[3]),t}function c(t,e,r){var n="number"==typeof e?e:parseFloat(e||0);return void 0===e?{}:t.includes("padding")?i({},t,n*r):i({},t.replace("margin","border")+"Width",n*r)}function s(t,e){if(void 0!==t){if("number"==typeof t)return[t];var r=void 0;if(t instanceof Array?r=t:"string"==typeof t&&(r=t.split(L)),r)return l(r,e).map(parseFloat);M.default.error(C.default.INVALIDSPACING,'"'+(void 0===t?"undefined":O(t))+'" used')}}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P.default.spacingAliases;return e&&"string"==typeof t&&t in e?e[t]:t}function l(t,e){return t.map(function(t){return f(t,e)})}function p(t,e){return Object.keys(t).reduce(function(r,n){return _({},r,i({},n,f(t[n],e)))},{})}function d(t){var e=t.spacingProps,r=t.base,n=t.spacingAliases,i=e.margin,f=e.padding,l=o(e,["margin","padding"]),d=s(i,n),y=s(f,n);if(!u(_({marginArray:d,paddingArray:y},l)))return{};var v=_({},p(l,n),a(d,"margin"),a(y,"padding"));return Object.keys(v).reduce(function(t,e){return _({},t,c(e,v[e],r))},{})}function y(t){var e={};return Object.keys(t).forEach(function(r){e[r]=(0,j.default)(t[r])}),e}function v(t,e,r){return[r,(0,m.default)(t,'gymnast["'+e+'"]'),P.default[e]].find(A)}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,m.default)(t,"gymnast",{});return _({},P.default,r,e)}function g(t){return function(e,r){return t.forEach(function(t){e[t]=Object.assign(e[t],r[t])}),e}}Object.defineProperty(e,"__esModule",{value:!0}),e.times=e.noop=e.splitPattern=void 0;var b=r(29),m=n(b),_=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.validateSpacingProps=u,e.getCSS=c,e.parseSpacing=s,e.replaceSpacingAliases=l,e.combineSpacing=d,e.toCXS=y,e.getValue=v,e.getValues=h,e.accumulateOver=g;var x=r(3),j=n(x),w=r(13),P=n(w),S=r(7),M=n(S),k=r(8),C=n(k),A=function(t){return void 0!==t},L=e.splitPattern=/(?:(?:\s+)?,(?:\s+)?|\s+)/;e.noop=function(){return null},e.times=function(t){return new Array(t).fill(void 0).map(function(t,e){return e})}},function(e,r){e.exports=t},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(15),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=(0,o.default)("div")},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(27),o=function(t){return t&&t.__esModule?t:{default:t}}(n);o.default.prefix("xnr_"),e.default=o.default},function(t,e,r){"use strict";var n=r(18),o=n(Object,"create");t.exports=o},function(t,e,r){"use strict";function n(t,e){for(var r=t.length;r--;)if(o(t[r][0],e))return r;return-1}var o=r(57);t.exports=n},function(t,e,r){"use strict";function n(t,e){var r=t.__data__;return o(e)?r["string"==typeof e?"string":"hash"]:r.map}var o=r(63);t.exports=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(8),o=function(t){return t&&t.__esModule?t:{default:t}}(n),i=["info","warn","error"],u=0,a=console,c={};i.forEach(function(t,e){c[t]=function(){if(e>=u){var r;(r=a)[t].apply(r,arguments)}}}),c.setLevel=function(t){var e=i.indexOf(t);e>=0?u=e:c.error(o.default.INVALIDLOGLEVEL,t)},c.setLogger=function(t){a=t},e.default=c},function(t,e,r){"use strict";t.exports={}},function(t,e,r){"use strict";var n=Array.isArray;t.exports=n},function(t,e,r){"use strict";function n(t){return"symbol"==(void 0===t?"undefined":o(t))||u(t)&&i(t)==a}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(17),u=r(36),a="[object Symbol]";t.exports=n},function(t,e,r){"use strict";var n=r(12),o=n.Symbol;t.exports=o},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=r(33),i="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,u=o||i||Function("return this")();t.exports=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={base:8,columns:12,displayAliases:{small:{maxWidth:"599px"},medium:{minWidth:"600px",maxWidth:"899px"},large:{minWidth:"900px"}},fallbackDisplayKey:"default",gutter:3,maxPageWidth:153,minPageWidth:50,pageMargin:{small:1,medium:6,large:6},spacingAliases:{XS:.5,"S/2":.5,S:1,"M/2":1,M:2,"L/2":1.5,L:3,"XL/2":2,XL:4,"2XL/2":3,"2XL":6},verticalGutter:3}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigContextPropTypes=void 0;var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),f=r(1),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(f),p=r(71),d=n(p),y=r(13),v=n(y),h=e.ConfigContextPropTypes={gymnast:d.default.shape({base:d.default.number,columns:d.default.number,displayAliases:d.default.shape({}),fallbackDisplayKey:d.default.string,gutter:d.default.number,maxPageWidth:d.default.number,minPageWidth:d.default.number,pageMargin:d.default.shape({}),spacingAliases:d.default.shape({}),verticalGutter:d.default.number})},g=function(t){function e(){return i(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"getChildContext",value:function(){var t=this.props,e=t.gutter,r=void 0===e?v.default.gutter:e,n=t.verticalGutter,i=void 0===n?r:n,u=(t.children,o(t,["gutter","verticalGutter","children"]));return{gymnast:c({gutter:r,verticalGutter:i},u)}}},{key:"render",value:function(){return this.props.children||null}}]),e}(l.Component);g.contextTypes=h,g.childContextTypes=h,e.default=g},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function i(t){function e(e,r){var n=e.align,i=e.className,u=e.justify,s=e.size,d=e.innerRef,y=o(e,["align","className","justify","size","innerRef"]),v=(0,a.default)([l.styles.grid,(0,l.getCol)(s,(0,p.getValue)(r,"columns")),i,n&&l.styles[n+"Align"],u&&l.styles[u+"Justify"]]);return f.createElement(t,c({},y,{ref:d,className:v.join(" ")}))}return(0,y.default)(e,v)}Object.defineProperty(e,"__esModule",{value:!0});var u=r(16),a=n(u),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=i;var s=r(1),f=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(s),l=r(26),p=r(0),d=r(20),y=n(d),v=["align","justify","size"]},function(t,e,r){"use strict";function n(t){for(var e=-1,r=null==t?0:t.length,n=0,o=[];++e<r;){var i=t[e];i&&(o[n++]=i)}return o}t.exports=n},function(t,e,r){"use strict";function n(t){return null==t?void 0===t?c:a:s&&s in Object(t)?i(t):u(t)}var o=r(11),i=r(34),u=r(35),a="[object Null]",c="[object Undefined]",s=o?o.toStringTag:void 0;t.exports=n},function(t,e,r){"use strict";function n(t,e){var r=i(t,e);return o(r)?r:void 0}var o=r(44),i=r(49);t.exports=n},function(t,e,r){"use strict";function n(t){var e=void 0===t?"undefined":o(t);return null!=t&&("object"==e||"function"==e)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=n},function(t,e,r){"use strict";function n(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function o(t,e){function r(e,r){var o=e.base,u=e.margin,c=e.marginBottom,s=e.marginLeft,l=e.marginRight,p=e.marginTop,d=e.padding,y=e.paddingBottom,v=e.paddingLeft,h=e.paddingRight,g=e.paddingTop,b=e.style,m=void 0===b?{}:b,_=n(e,["base","margin","marginBottom","marginLeft","marginRight","marginTop","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","style"]),O=i({},m,(0,f.combineSpacing)({spacingProps:{margin:u,padding:d,marginTop:p,marginRight:l,marginBottom:c,marginLeft:s,paddingTop:g,paddingRight:h,paddingBottom:y,paddingLeft:v},base:(0,f.getValue)(r,"base",o),spacingAliases:(0,f.getValue)(r,"spacingAliases")}));return a.createElement(t,i({},_,{style:O}))}return r.contextTypes=l.ConfigContextPropTypes,(0,s.default)(r,p.concat(e))}Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=o;var u=r(1),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(u),c=r(21),s=function(t){return t&&t.__esModule?t:{default:t}}(c),f=r(0),l=r(14),p=["margin","marginBottom","marginLeft","marginRight","marginTop","padding","paddingBottom","paddingLeft","paddingRight","paddingTop"]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function c(t,e){var r,n;return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.supportsMatchMedia)?(n=r=function(r){function n(){var t,r,a,c;i(this,n);for(var f=arguments.length,l=Array(f),p=0;p<f;p++)l[p]=arguments[p];return r=a=u(this,(t=n.__proto__||Object.getPrototypeOf(n)).call.apply(t,[this].concat(l))),a.state={shouldShow:void 0},a.onMediaQueryChange=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],r=a.state.shouldShow||{};r[e]!==t.matches&&a.setState({shouldShow:s({},r,o({},e,t.matches))})},a.getQueries=function(t){var e=(0,v.getValue)(a.context,"displayAliases"),r=t;return!t&&a.anyPropsUseResolutionFormat()&&(r=Object.keys(e)),(0,_.getMediaQueries)(r,e)},a.anyPropsUseResolutionFormat=function(){return e.some(function(t){return(0,_.isObject)(a.props[t])})},a.removeMediaQueryListener=function(t){var e=a.getQueries(t);Object.keys(e).forEach(function(t){(0,m.unregister)(e[t],a.onMediaQueryChange)})},a.addMediaQueryListener=function(t){var e=a.getQueries(t);Object.keys(e).forEach(function(t){(0,m.register)(e[t],t,a.onMediaQueryChange)})},c=r,u(a,c)}return a(n,r),f(n,[{key:"componentDidMount",value:function(){this.addMediaQueryListener(this.props.show)}},{key:"componentWillReceiveProps",value:function(t){var e=t.show;e!==this.props.show&&(this.removeMediaQueryListener(this.props.show),this.addMediaQueryListener(e))}},{key:"componentWillUnmount",value:function(){this.removeMediaQueryListener(this.props.show)}},{key:"render",value:function(){if(this.props.show&&this.state.shouldShow&&!(0,_.hasTrueValues)(this.state.shouldShow))return null;var r=(0,_.getSingleResolutionProps)({props:this.props,shouldShow:this.state.shouldShow,resolutionKeys:e,fallbackDisplayKey:(0,v.getValue)(this.context,"fallbackDisplayKey")});return p.createElement(t,r)}}]),n}(p.Component),r.contextTypes=b.ConfigContextPropTypes,n):(y.default.warn(g.default.NOMATCHMEDIA),t)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},f=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();e.default=c;var l=r(1),p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(l),d=r(7),y=n(d),v=r(0),h=r(8),g=n(h),b=r(14),m=r(72),_=r(22)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function u(t){return function(e){return!0===t[e]}}function a(t){return Object.keys(t).find(u(t))}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],n=a(e);return n&&n in t?t[n]:t[r]}function s(t){return"[object Object]"===Object.prototype.toString.call(t)}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).some(u(t))}function l(t){var e=t.props,r=t.shouldShow,n=t.resolutionKeys,o=void 0===n?[]:n,u=t.fallbackDisplayKey,a=void 0===u?x.default.fallbackDisplayKey:u,f=i(e,[]);return delete f.show,Object.keys(f).forEach(function(t){var e=f[t];s(e)&&o.includes(t)&&(f[t]=c(e,r,a))}),f}function p(t,e){var r=[];return Object.keys(e[t]).forEach(function(n){if(n in j){var o=e[t][n];r.push("("+j[n]+": "+o+")")}else b.default.error(_.default.INVALIDMEDIAKEY,'"'+n+'" used')}),r.join(" and ")}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1];return(t instanceof Array?t:t.split(h.splitPattern)).filter(function(t){return t in e}).map(function(t){return[t,p(t,e)]}).reduce(function(t,e){var r=v(e,2),n=r[0],i=r[1];return i?y({},t,o({},n,i)):t},{})}Object.defineProperty(e,"__esModule",{value:!0});var y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},v=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var u,a=t[Symbol.iterator]();!(n=(u=a.next()).done)&&(r.push(u.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.isObject=s,e.hasTrueValues=f,e.getSingleResolutionProps=l,e.getMediaQuery=p,e.getMediaQueries=d;var h=r(0),g=r(7),b=n(g),m=r(8),_=n(m),O=r(13),x=n(O),j={minWidth:"min-width",maxWidth:"max-width",minHeight:"min-height",maxHeight:"max-height",aspectRatio:"aspect-ratio",orientation:"orientation"}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function i(t){function e(e,r){var n=e.className,i=e.fixed,u=e.height,s=e.overflow,l=e.innerRef,d=o(e,["className","fixed","height","overflow","innerRef"]),y=(0,p.default)((0,v.getValues)(r,d)),h=(0,a.default)([n,i&&y[i+"Fixed"],u?y[u+"Height"]:y.fitHeight,s&&y.overflow,y.layout]);return f.createElement(t,c({ref:l},d,{className:h.join(" ")}))}return(0,y.default)(e,h)}Object.defineProperty(e,"__esModule",{value:!0});var u=r(16),a=n(u),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=i;var s=r(1),f=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(s),l=r(74),p=n(l),d=r(20),y=n(d),v=r(0),h=["fixed","height","overflow"]},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=e.Dev=e.utils=e.withResolution=e.asLayout=e.asGrid=e.Root=e.Offset=e.Layout=e.Grid=e.ConfigProvider=e.Col=void 0;var o=r(25);Object.defineProperty(e,"Col",{enumerable:!0,get:function(){return n(o).default}});var i=r(14);Object.defineProperty(e,"ConfigProvider",{enumerable:!0,get:function(){return n(i).default}});var u=r(2);Object.defineProperty(e,"Grid",{enumerable:!0,get:function(){return n(u).default}});var a=r(73);Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return n(a).default}});var c=r(75);Object.defineProperty(e,"Offset",{enumerable:!0,get:function(){return n(c).default}});var s=r(76);Object.defineProperty(e,"Root",{enumerable:!0,get:function(){return n(s).default}});var f=r(15);Object.defineProperty(e,"asGrid",{enumerable:!0,get:function(){return n(f).default}});var l=r(23);Object.defineProperty(e,"asLayout",{enumerable:!0,get:function(){return n(l).default}});var p=r(21);Object.defineProperty(e,"withResolution",{enumerable:!0,get:function(){return n(p).default}});var d=r(78);Object.defineProperty(e,"Dev",{enumerable:!0,get:function(){return n(d).default}});var y=r(7);Object.defineProperty(e,"log",{enumerable:!0,get:function(){return n(y).default}}),r(3);var v=r(0),h=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(v);e.utils=h},function(t,e,r){"use strict";function n(t,e){if(void 0!==t.margin)return u.createElement(c.default,t);var r=(0,s.getValues)(e,t),n=r.gutter,i=r.verticalGutter;return u.createElement(c.default,o({marginTop:0,marginRight:n/2,marginBottom:i,marginLeft:n/2},t))}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=n;var i=r(1),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(i),a=r(2),c=function(t){return t&&t.__esModule?t:{default:t}}(a),s=r(0)},function(t,e,r){"use strict";function n(t,e){return"auto"===t?a.colAuto:"fit"===t?a.colFit:void 0===t||0===t?a.fraction:(0,i.default)({flexBasis:parseInt(t,10)/e*100+"%",maxWidth:parseInt(t,10)/e*100+"%"})}Object.defineProperty(e,"__esModule",{value:!0}),e.styles=void 0,e.getCol=n;var o=r(3),i=function(t){return t&&t.__esModule?t:{default:t}}(o),u=r(0),a=e.styles=(0,u.toCXS)({grid:{border:"0 transparent solid",boxSizing:"border-box",display:"flex",flexFlow:"row wrap",width:"100%"},fraction:{flexGrow:1},leftJustify:{justifyContent:"flex-start",marginRight:"auto"},centerJustify:{justifyContent:"center",marginLeft:"auto",marginRight:"auto"},rightJustify:{justifyContent:"flex-end",marginLeft:"auto"},topAlign:{alignContent:"flex-start",alignItems:"flex-start"},centerAlign:{alignContent:"center",alignItems:"center"},bottomAlign:{alignContent:"flex-end",alignItems:"flex-end"},colAuto:{flexGrow:1,flexShrink:1,flexBasis:"0%"},colFit:{flexGrow:0,flexShrink:0,width:"auto",whiteSpace:"nowrap"}})},function(t,e,r){"use strict";t.exports=r(28)},function(t,e,r){"use strict";var n={},o="_cxs",i=[],u=function(t){return i.push(t)},a=function(t){return t.replace(/[A-Z]|^ms/g,"-$&").toLowerCase()},c=function(t,e){return e?e+"{"+t+"}":t},s=function(t){return t.replace(/&/g,"")},f=function(t,e){return a(t)+":"+e},l=function(t){var e=t.className,r=t.child,n=t.media,o=t.declarations;return c("."+(e+r)+"{"+o.join(";")+"}",n)},p=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2],o=[],i=[];for(var u in e){var a=e[u];if(null!==a)if("object"!=typeof a){var c=f(u,a);i.push(c)}else{var l=/^@/.test(u)?u:null,p=l?r:r+s(u);t(a,p,l).forEach(function(t){return o.push(t)})}}return o.unshift({media:n,child:r,declarations:i}),o},d=function(t){var e=p(t),r=[];return e.forEach(function(t){var e=JSON.stringify(t);if(n[e])return void r.push(n[e]);var a=o+i.length.toString(36);r.push(a);var c=l(Object.assign(t,{className:a}));u(c),n[e]=a}),r.join(" ")};if(t.exports=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.map(function(t){return d(t)}).join(" ").trim()},t.exports.css=function(){return i.sort().join("")},t.exports.reset=function(){for(n={};i.length;)i.pop()},t.exports.prefix=function(t){return o=t},"undefined"!=typeof document){var y=document.createElement("style");window&&(y.nonce=window.__webpack_nonce__);var v=document.head.appendChild(y),h=v.sheet;v.id="_cxs_",u=function(t){i.push(t),h.insertRule(t,h.cssRules.length)}}},function(t,e,r){"use strict";function n(t,e,r){var n=null==t?void 0:o(t,e);return void 0===n?r:n}var o=r(30);t.exports=n},function(t,e,r){"use strict";function n(t,e){e=o(e,t);for(var r=0,n=e.length;null!=t&&r<n;)t=t[i(e[r++])];return r&&r==n?t:void 0}var o=r(31),i=r(70);t.exports=n},function(t,e,r){"use strict";function n(t,e){return o(t)?t:i(t,e)?[t]:u(a(t))}var o=r(9),i=r(32),u=r(37),a=r(67);t.exports=n},function(t,e,r){"use strict";function n(t,e){if(i(t))return!1;var r=void 0===t?"undefined":o(t);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!u(t))||c.test(t)||!a.test(t)||null!=e&&t in Object(e)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(9),u=r(10),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;t.exports=n},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o="object"==("undefined"==typeof global?"undefined":n(global))&&global&&global.Object===Object&&global;t.exports=o},function(t,e,r){"use strict";function n(t){var e=u.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}var o=r(11),i=Object.prototype,u=i.hasOwnProperty,a=i.toString,c=o?o.toStringTag:void 0;t.exports=n},function(t,e,r){"use strict";function n(t){return i.call(t)}var o=Object.prototype,i=o.toString;t.exports=n},function(t,e,r){"use strict";function n(t){return null!=t&&"object"==(void 0===t?"undefined":o(t))}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=n},function(t,e,r){"use strict";var n=r(38),o=/^\./,i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,a=n(function(t){var e=[];return o.test(t)&&e.push(""),t.replace(i,function(t,r,n,o){e.push(n?o.replace(u,"$1"):r||t)}),e});t.exports=a},function(t,e,r){"use strict";function n(t){var e=o(t,function(t){return r.size===i&&r.clear(),t}),r=e.cache;return e}var o=r(39),i=500;t.exports=n},function(t,e,r){"use strict";function n(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var r=function r(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u)||i,u};return r.cache=new(n.Cache||o),r}var o=r(40),i="Expected a function";n.Cache=o,t.exports=n},function(t,e,r){"use strict";function n(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(41),i=r(62),u=r(64),a=r(65),c=r(66);n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=u,n.prototype.has=a,n.prototype.set=c,t.exports=n},function(t,e,r){"use strict";function n(){this.size=0,this.__data__={hash:new o,map:new(u||i),string:new o}}var o=r(42),i=r(54),u=r(61);t.exports=n},function(t,e,r){"use strict";function n(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(43),i=r(50),u=r(51),a=r(52),c=r(53);n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=u,n.prototype.has=a,n.prototype.set=c,t.exports=n},function(t,e,r){"use strict";function n(){this.__data__=o?o(null):{},this.size=0}var o=r(4);t.exports=n},function(t,e,r){"use strict";function n(t){return!(!u(t)||i(t))&&(o(t)?y:s).test(a(t))}var o=r(45),i=r(46),u=r(19),a=r(48),c=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,f=Function.prototype,l=Object.prototype,p=f.toString,d=l.hasOwnProperty,y=RegExp("^"+p.call(d).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=n},function(t,e,r){"use strict";function n(t){if(!i(t))return!1;var e=o(t);return e==a||e==c||e==u||e==s}var o=r(17),i=r(19),u="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",s="[object Proxy]";t.exports=n},function(t,e,r){"use strict";function n(t){return!!i&&i in t}var o=r(47),i=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=n},function(t,e,r){"use strict";var n=r(12),o=n["__core-js_shared__"];t.exports=o},function(t,e,r){"use strict";function n(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var o=Function.prototype,i=o.toString;t.exports=n},function(t,e,r){"use strict";function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e,r){"use strict";function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},function(t,e,r){"use strict";function n(t){var e=this.__data__;if(o){var r=e[t];return r===i?void 0:r}return a.call(e,t)?e[t]:void 0}var o=r(4),i="__lodash_hash_undefined__",u=Object.prototype,a=u.hasOwnProperty;t.exports=n},function(t,e,r){"use strict";function n(t){var e=this.__data__;return o?void 0!==e[t]:u.call(e,t)}var o=r(4),i=Object.prototype,u=i.hasOwnProperty;t.exports=n},function(t,e,r){"use strict";function n(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=o&&void 0===e?i:e,this}var o=r(4),i="__lodash_hash_undefined__";t.exports=n},function(t,e,r){"use strict";function n(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(55),i=r(56),u=r(58),a=r(59),c=r(60);n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=u,n.prototype.has=a,n.prototype.set=c,t.exports=n},function(t,e,r){"use strict";function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,r){"use strict";function n(t){var e=this.__data__,r=o(e,t);return!(r<0||(r==e.length-1?e.pop():u.call(e,r,1),--this.size,0))}var o=r(5),i=Array.prototype,u=i.splice;t.exports=n},function(t,e,r){"use strict";function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,r){"use strict";function n(t){var e=this.__data__,r=o(e,t);return r<0?void 0:e[r][1]}var o=r(5);t.exports=n},function(t,e,r){"use strict";function n(t){return o(this.__data__,t)>-1}var o=r(5);t.exports=n},function(t,e,r){"use strict";function n(t,e){var r=this.__data__,n=o(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var o=r(5);t.exports=n},function(t,e,r){"use strict";var n=r(18),o=r(12),i=n(o,"Map");t.exports=i},function(t,e,r){"use strict";function n(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}var o=r(6);t.exports=n},function(t,e,r){"use strict";function n(t){var e=void 0===t?"undefined":o(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=n},function(t,e,r){"use strict";function n(t){return o(this,t).get(t)}var o=r(6);t.exports=n},function(t,e,r){"use strict";function n(t){return o(this,t).has(t)}var o=r(6);t.exports=n},function(t,e,r){"use strict";function n(t,e){var r=o(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var o=r(6);t.exports=n},function(t,e,r){"use strict";function n(t){return null==t?"":o(t)}var o=r(68);t.exports=n},function(t,e,r){"use strict";function n(t){if("string"==typeof t)return t;if(u(t))return i(t,n)+"";if(a(t))return f?f.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}var o=r(11),i=r(69),u=r(9),a=r(10),c=1/0,s=o?o.prototype:void 0,f=s?s.toString:void 0;t.exports=n},function(t,e,r){"use strict";function n(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}t.exports=n},function(t,e,r){"use strict";function n(t){if("string"==typeof t||o(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}var o=r(10),i=1/0;t.exports=n},function(t,r){t.exports=e},function(t,e,r){"use strict";function n(t){return function(){u[t].forEach(function(e){var r=e.callback,n=e.alias;return r(a[t].mediaQuery,n)})}}function o(t,e,r){if(t&&c){if(i(t,r),t in u)u[t].push({callback:r,alias:e});else{var o=window.matchMedia(t),s=n(t);a[t]={mediaQuery:o,allCallbacks:s},u[t]=[{callback:r,alias:e}],o.addListener(s)}r(a[t].mediaQuery,e)}}function i(t,e){c&&t&&t in u&&(u[t]=u[t].filter(function(t){var r=t.callback;return e!==r}),0===u[t].length&&(a[t].mediaQuery.removeListener(a[t].allCallbacks),delete a[t],delete u[t]))}Object.defineProperty(e,"__esModule",{value:!0}),e.register=o,e.unregister=i;var u={},a={},c=e.supportsMatchMedia=!(!window||!window.matchMedia)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(23),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=(0,o.default)("div")},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){var e=t.maxPageWidth,r=t.minPageWidth,o=t.base,u={layout:{alignItems:"center",alignSelf:"flex-start",border:"0 transparent solid",boxSizing:"border-box",display:"flex",flexFlow:"column",minWidth:r*o+"px",padding:0,width:"100%"},parentHeight:{flexGrow:1,height:"100%"},overflow:{overflowY:"auto",overflowX:"hidden"},fitHeight:{flexGrow:0,flexShrink:0},autoHeight:{flexShrink:0,flexGrow:1},topFixed:i({},s,{top:0}),bottomFixed:i({},s,{bottom:0})},f=(0,a.default)(i({},u.layout,n({}," > :not(."+c+")",{maxWidth:e*o+"px"}))),l={};return Object.keys(u).forEach(function(t){l[t]=(0,a.default)(u[t])}),l.layout=c+" "+f,l}Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=o;var u=r(3),a=function(t){return t&&t.__esModule?t:{default:t}}(u),c="xnr_layout",s={position:"fixed",left:"50%",transform:"translateX(-50%)"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(n),i=r(2),u=function(t){return t&&t.__esModule?t:{default:t}}(i),a=function(t){var e=t.size;return o.createElement(u.default,{size:e})};e.default=a},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function i(t,e){var r=t.children,n=t.justify,i=o(t,["children","justify"]),a=(0,p.default)((0,d.getValues)(e,i));return c.createElement(f.default,u({},i,{className:a.root,justify:"center"}),c.createElement(f.default,{justify:n,className:a.child},r))}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=i;var a=r(1),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(a),s=r(2),f=n(s),l=r(77),p=n(l),d=r(0)},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){return{root:n({},"@media screen and "+t,{paddingLeft:e,paddingRight:e}),child:{}}}function i(t,e){return{root:n({},"@media screen and "+t,f),child:n({},"@media screen and "+t,{flexShrink:0,width:"calc(100% + "+e+"px)"})}}function u(t){var e=t.gutter,r=t.pageMargin,n=t.base,u=t.displayAliases,f=Object.keys(u).map(function(t){var a=(0,c.getMediaQuery)(t,u),s=r[t]-e/2;return s>0?o(a,s*n+"px"):i(a,(e/2-r[t])*n*2)}).reduce(s,{root:{},child:{}});return(0,a.toCXS)(f)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var a=r(0),c=r(22),s=(0,a.accumulateOver)(["root","child"]),f={overflow:"hidden",paddingLeft:0,paddingRight:0}},function(t,e,r){"use strict";t.exports=r(0).noop}])});
//# sourceMappingURL=gymnast.min.js.map
{
"name": "gymnast",
"version": "0.2.1",
"version": "0.3.0",
"description": "Configurable grid and layout engine for React",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -16,2 +16,3 @@ // @flow

displayAliases?: DisplayAliases,
fallbackDisplayKey?: string,
gutter?: number,

@@ -32,2 +33,3 @@ maxPageWidth?: number,

displayAliases: PropTypes.shape({}),
fallbackDisplayKey: PropTypes.string,
gutter: PropTypes.number,

@@ -34,0 +36,0 @@ maxPageWidth: PropTypes.number,

// @flow
export default {
base: 8,
columns: 12,
base: 8, // multiplier (in pixels) that all other size units use
columns: 12, // number of columns used in the layout
displayAliases: {
// aliases used for the different display breakpoints:
small: {
// - "small" alias used when width is less than 600px
maxWidth: '599px',
},
medium: {
// - "medium" alias used when width is between 600px and 900px
minWidth: '600px',

@@ -15,9 +18,12 @@ maxWidth: '899px',

large: {
// - "large" alias used when width is equal or greater than 900px
minWidth: '900px',
},
},
gutter: 3,
maxPageWidth: 153, // 153 * base (8px) = 1224px
minPageWidth: 50, // 50 * base (8px) = 400px
fallbackDisplayKey: 'default', // key to use when a display alias is omitted or non matching
gutter: 3, // value (in base units) that separates columns horizontally
maxPageWidth: 153, // maximum page width (in base units) 153 * base (8px) = 1224px
minPageWidth: 50, // minimum page width (in base units) 50 * base (8px) = 400px
pageMargin: {
// page margins (in base units) for each display breakpoint
small: 1,

@@ -28,3 +34,4 @@ medium: 6,

spacingAliases: {
XS: 0.5,
// aliases used to indicate spacing values (margin/padding) in base
XS: 0.5, // units.
'S/2': 0.5,

@@ -41,3 +48,3 @@ S: 1,

},
verticalGutter: 3,
verticalGutter: 3, // value (in base units) that separates columns vertically
}

@@ -62,2 +62,3 @@ // @flow

+displayAliases?: DisplayAliases,
+fallbackDisplayKey?: string,
+gutter?: number,

@@ -64,0 +65,0 @@ +maxPageWidth?: number,

@@ -109,7 +109,8 @@ // @flow

const props = getSingleResolutionProps(
this.props,
this.state.shouldShow,
resolutionKeys
)
const props = getSingleResolutionProps({
props: this.props,
shouldShow: this.state.shouldShow,
resolutionKeys,
fallbackDisplayKey: getValue(this.context, 'fallbackDisplayKey'),
})

@@ -116,0 +117,0 @@ return <Component {...props} />

@@ -6,2 +6,3 @@ // @flow

import errors from '../errors'
import defaults from '../defaults'

@@ -18,6 +19,10 @@ export type ShouldShow = { [string]: boolean }

function extractObjectValue(value: any, shouldShow?: ShouldShow = {}) {
function extractObjectValue(
value: any,
shouldShow?: ShouldShow = {},
fallbackKey: string
) {
const active = getActiveResolutionName(shouldShow)
return active && active in value ? value[active] : value.default
return active && active in value ? value[active] : value[fallbackKey]
}

@@ -33,7 +38,13 @@

export function getSingleResolutionProps(
props: { show?: DisplayValues },
shouldShow?: ShouldShow,
resolutionKeys: Array<string> = []
) {
export function getSingleResolutionProps({
props,
shouldShow,
resolutionKeys = [],
fallbackDisplayKey = defaults.fallbackDisplayKey,
}: {|
+props: { show?: DisplayValues },
+shouldShow?: ShouldShow,
+resolutionKeys: Array<string>,
+fallbackDisplayKey: string,
|}) {
const { ...propsCopy } = props

@@ -47,3 +58,3 @@

if (isObject(value) && resolutionKeys.includes(key)) {
propsCopy[key] = extractObjectValue(value, shouldShow)
propsCopy[key] = extractObjectValue(value, shouldShow, fallbackDisplayKey)
}

@@ -50,0 +61,0 @@ })

@@ -5,3 +5,2 @@ import React from 'react'

import withResolution from './index'
import { getMediaQueries } from './withResolution.logic'

@@ -132,44 +131,1 @@ jest.mock('./mediaQuery')

})
describe('getMediaQueries', () => {
it('should return a max and min value base on the available aliases', () => {
const out = getMediaQueries('test', {
test: {
minWidth: '1px',
maxWidth: '2px',
},
})
expect(out).toEqual({ test: '(min-width: 1px) and (max-width: 2px)' })
})
it('should return a max value only when no min value is provided', () => {
const out = getMediaQueries('test', {
test: {
maxWidth: '2px',
},
})
expect(out).toEqual({ test: '(max-width: 2px)' })
})
it('should return a min value only when no max value is provided', () => {
const out = getMediaQueries('test', {
test: {
minWidth: '1px',
},
})
expect(out).toEqual({ test: '(min-width: 1px)' })
})
it('should return an empty string if an invalid value is passed', () => {
const out = getMediaQueries('test2', {
test: {
invalidValue: 'meow',
},
})
expect(out).toEqual({})
})
})

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 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

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