react-jss
Advanced tools
Comparing version 4.1.1 to 4.1.2
@@ -0,1 +1,5 @@ | ||
## 4.1.2 / 2016-10-07 | ||
- Fix refs inconsistency on hot reloading #18 | ||
## 4.1.1 / 2016-09-27 | ||
@@ -2,0 +6,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React")):"function"==typeof define&&define.amd?define(["React"],t):"object"==typeof exports?exports.reactJss=t(require("React")):e.reactJss=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n){function r(){g||(g=e.createStyleSheet(n,y)),g.attach()}function s(){g.detach()}function a(){return 0===m&&r(),m++,g}function p(){m--,0===m&&s()}var h,v,y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},m=0,g=null,b=t.displayName||t.name||"Component";return y.meta||(y.meta=b),v=h=function(e){function n(){return i(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return u(n,e),f(n,[{key:"componentWillMount",value:function(){this.sheet=a()}},{key:"componentWillUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){p(),this.sheet=null}},{key:"render",value:function(){return d["default"].createElement(t,l({},this.props,{sheet:this.sheet}))}}]),n}(c.Component),h.wrapped=t,h.displayName="Jss("+b+")",v}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;return function(t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,i=s(e,r,t,n);return(0,m["default"])(i,r,{wrapped:!0})}}}Object.defineProperty(t,"__esModule",{value:!0}),t.jss=void 0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.create=a;var c=n(1),d=r(c),p=n(2),h=n(21),v=r(h),y=n(35),m=r(y),g=function(e){var t=e.children;return t||null},b=t.jss=(0,p.create)((0,v["default"])());t["default"]=a()},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}/** | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React")):"function"==typeof define&&define.amd?define(["React"],t):"object"==typeof exports?exports.reactJss=t(require("React")):e.reactJss=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n){function r(){g||(g=e.createStyleSheet(n,y)),g.attach()}function s(){g.detach()}function a(){return 0===m&&r(),m++,g}function h(){m--,0===m&&s()}var p,v,y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},m=0,g=null,b=t.displayName||t.name||"Component";return y.meta||(y.meta=b),v=p=function(e){function n(){return i(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return u(n,e),f(n,[{key:"componentWillMount",value:function(){this.sheet=a()}},{key:"componentWillUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){!this.sheet||g||m?h():this.sheet.detach()}},{key:"render",value:function(){return d["default"].createElement(t,l({},this.props,{sheet:this.sheet}))}}]),n}(c.Component),p.wrapped=t,p.displayName="Jss("+b+")",v}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;return function(t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,i=s(e,r,t,n);return(0,m["default"])(i,r,{wrapped:!0})}}}Object.defineProperty(t,"__esModule",{value:!0}),t.jss=void 0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.create=a;var c=n(1),d=r(c),h=n(2),p=n(21),v=r(p),y=n(35),m=r(y),g=function(e){var t=e.children;return t||null},b=t.jss=(0,h.create)((0,v["default"])());t["default"]=a()},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}/** | ||
* A better abstraction over CSS. | ||
@@ -8,3 +8,3 @@ * | ||
*/ | ||
function i(e){return new u["default"](e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Rule=t.StyleSheet=t.Jss=void 0,t.create=i;var o=n(3),u=r(o),s=n(4),a=r(s),l=n(12),f=r(l);t.Jss=u["default"],t.StyleSheet=a["default"],t.Rule=f["default"],t["default"]=i()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(4),l=r(a),f=n(19),c=r(f),d=n(20),p=r(d),h=n(11),v=r(h),y=n(5),m=r(y),g=n(13),b=function(){function e(t){i(this,e),this.sheets=new p["default"],this.plugins=new c["default"],this.version="5.5.5",this.setup(t)}return s(e,[{key:"setup",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return this.generateClassName=t.generateClassName||g.generateClassName,t.plugins&&t.plugins.forEach(function(t){e.use(t)}),this}},{key:"createStyleSheet",value:function(e,t){var n=new l["default"](e,u({},t,{jss:this}));return this.sheets.add(n),n}},{key:"removeStyleSheet",value:function(e){return e.detach(),this.sheets.remove(e),this}},{key:"createRule",value:function(e,t,n){"object"==("undefined"==typeof e?"undefined":o(e))&&(n=t,t=e,e=null);var r=(0,v["default"])(e,t,u({jss:this,Renderer:(0,m["default"])(n)},n));return this.plugins.run(r),r}},{key:"use",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){return e.plugins.use(t)}),this}}]),e}();t["default"]=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(5),a=r(s),l=n(10),f=r(l),c=function(){function e(t,n){i(this,e);var r=null==n.named||n.named,u="number"==typeof n.index?n.index:0,s=(0,a["default"])(n);this.rules=Object.create(null),this.attached=!1,this.deployed=!1,this.linked=!1,this.classes=Object.create(null),this.renderer=new s(n),this.renderer.createElement(),this.options=o({},n,{sheet:this,parent:this,classes:this.classes,renderer:this.renderer,named:r,index:u,Renderer:s}),this.rules=new f["default"](this.options);for(var l in t)this.rules.createAndRegister(l,t[l]);n.jss.plugins.run(this.rules.getIndex())}return u(e,[{key:"attach",value:function(){return this.attached?this:(this.deployed||this.deploy(),this.renderer.attach(),!this.linked&&this.options.link&&this.link(),this.attached=!0,this)}},{key:"detach",value:function(){return this.attached?(this.renderer.detach(),this.attached=!1,this):this}},{key:"addRule",value:function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.create(e,t,n);if(this.attached){if(!this.deployed)return i;if(r)r.push(i);else{var o=this.renderer.insertRule(i);this.options.link&&(i.renderable=o),this.queue&&(this.queue.forEach(this.renderer.insertRule,this.renderer),this.queue=null)}return i}return this.deployed=!1,i}},{key:"addRules",value:function(e,t){var n=[];for(var r in e)n.push(this.addRule(r,e[r],t));return n}},{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"deleteRule",value:function(e){var t=this.rules.get(e);return!!t&&(this.rules.remove(t),!this.attached||this.renderer.deleteRule(t.renderable))}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"toString",value:function(e){return this.rules.toString(e)}},{key:"deploy",value:function(){return this.renderer.deploy(this),this.deployed=!0,this}},{key:"link",value:function(){var e=this.renderer.getRules();for(var t in e){var n=this.rules.get(t);n&&(n.renderable=e[t])}return this.linked=!0,this}}]),e}();t["default"]=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return e.Renderer?e.Renderer:e.virtual||!f["default"]?a["default"]:u["default"]}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var o=n(6),u=r(o),s=n(8),a=r(s),l=n(9),f=r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(7),s=r(u),a=function(){function e(t){i(this,e),this.options=t}return o(e,[{key:"createElement",value:function(){var e=this.options,t=e.media,n=e.meta,r=e.element;this.head=document.head||document.getElementsByTagName("head")[0],this.element=r||document.createElement("style"),this.element.type="text/css",this.element.setAttribute("data-jss",""),t&&this.element.setAttribute("media",t),n&&this.element.setAttribute("data-meta",n)}},{key:"style",value:function(e,t,n){try{if(null==n)return e.style[t];e.style[t]=n}catch(r){return!1}return!0}},{key:"selector",value:function(e,t){return null==t?e.selectorText:(e.selectorText=t,e.selectorText===t)}},{key:"attach",value:function(){if(!this.element.parentNode){var e=null,t=this.options,n=t.index,r=t.jss,i=r.sheets.registry;if(i.length>1){if("number"==typeof n)for(var o=0;o<i.length;o++){var u=i[o];if(u.attached&&"number"==typeof u.options.index&&!(u.options.index<=n)){e=u.renderer.element;break}}if(!e)for(var s=i.length-1;s>=0;s--){var a=i[s];if(a.attached){e=a.renderer.element.nextElementSibling;break}}}if(!e)for(var l=0;l<this.head.childNodes.length;l++){var f=this.head.childNodes[l];if("jss"===f.nodeValue){e=f;break}}this.head.insertBefore(this.element,e)}}},{key:"detach",value:function(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function(e){this.element.textContent="\n"+e.toString()+"\n"}},{key:"insertRule",value:function(e){var t=this.element.sheet,n=t.cssRules,r=n.length;try{t.insertRule(e.toString(),r)}catch(i){(0,s["default"])(!1,"[JSS] Can not insert an unsupported rule \n\r%s",e.toString())}return n[r]}},{key:"deleteRule",value:function(e){for(var t=this.element.sheet,n=t.cssRules,r=0;r<n.length;r++)if(e===n[r])return t.deleteRule(r),!0;return!1}},{key:"getRules",value:function(){for(var e=this.element.sheet.cssRules,t=Object.create(null),n=0;n<e.length;n++){var r=e[n];t[r.selectorText]=r}return t}}]),e}();t["default"]=a},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){n(this,e)}return r(e,[{key:"createElement",value:function(){}},{key:"style",value:function(){}},{key:"selector",value:function(){}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"deploy",value:function(){}},{key:"insertRule",value:function(){}},{key:"deleteRule",value:function(){}},{key:"getRules",value:function(){return{}}}]),e}();t["default"]=i},function(e,t){e.exports=!0},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(11),a=r(s),l=function(){function e(t){i(this,e),this.map=Object.create(null),this.index=[],this.options=t,this.classes=t.classes||{}}return u(e,[{key:"create",value:function(e,t,n){var r=this.createAndRegister(e,t,n);return this.options.jss.plugins.run(r),r}},{key:"remove",value:function(e){this.unregister(e),this.index.splice(this.indexOf(e),1)}},{key:"get",value:function(e){return this.map[e]}},{key:"indexOf",value:function(e){return this.index.indexOf(e)}},{key:"register",value:function(e){return e.name&&(this.map[e.name]=e),e.className&&e.name&&(this.classes[e.name]=e.className),e.selector&&(this.map[e.selector]=e),this}},{key:"unregister",value:function(e){return delete this.map[e.name],delete this.map[e.selector],delete this.classes[e.name],this}},{key:"toString",value:function(e){for(var t="",n=0;n<this.index.length;n++){var r=this.index[n],i=r.toString(e);i&&(t&&(t+="\n"),t+=i)}return t}},{key:"getIndex",value:function(){return this.index.slice(0)}},{key:"createAndRegister",value:function(e,t,n){n=o({},n,{classes:this.classes,parent:this.options.parent,sheet:this.options.sheet,jss:this.options.jss,Renderer:this.options.Renderer}),n.className||(n.className=this.classes[e]),null==n.named&&(n.named=this.options.named);var r=(0,a["default"])(e,t,n);this.register(r);var i=void 0===n.index?this.index.length:n.index;return this.index.splice(i,0,r),r}}]),e}();t["default"]=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];if(e&&"@"===e[0]){var r=y.exec(e)[0],i=v[r];return new i(e,t,n)}return null==n.named&&(n.named=!0),new u["default"](e,t,n)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var o=n(12),u=r(o),s=n(15),a=r(s),l=n(16),f=r(l),c=n(17),d=r(c),p=n(18),h=r(p),v={"@charset":a["default"],"@import":a["default"],"@namespace":a["default"],"@keyframes":f["default"],"@media":d["default"],"@supports":d["default"],"@font-face":h["default"]},y=/^@[^ ]+/},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(13),s=JSON.parse,a=JSON.stringify,l=function(){function e(t,n,i){r(this,e);var o=a(n);this.style=s(o),this.type="regular",this.options=i,this.selectorText=t||"",this.className=i.className||"",this.originalStyle=n,i.named&&(this.name=t,this.className||(this.className=i.jss.generateClassName(o,this)),this.selectorText="."+this.className),this.renderer=i.sheet?i.sheet.renderer:new i.Renderer}return o(e,[{key:"prop",value:function(e,t){return null!=t?(this.style[e]=t,this.renderable&&this.renderer.style(this.renderable,e,t),this):(this.renderable&&null==this.style[e]&&(this.style[e]=this.renderer.style(this.renderable,e)),this.style[e])}},{key:"applyTo",value:function(e){var t=this.toJSON();for(var n in t)this.renderer.style(e,n,t[n]);return this}},{key:"toJSON",value:function(){var e=Object.create(null);for(var t in this.style){var n=this.style[t];"object"!==("undefined"==typeof n?"undefined":i(n))?e[t]=n:Array.isArray(n)&&(e[t]=(0,u.toCssValue)(n))}return e}},{key:"toString",value:function(e){return(0,u.toCss)(this.selector,this.style,e)}},{key:"selector",set:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.sheet;if(t&&t.rules.unregister(this),this.selectorText=e,this.className=(0,u.findClassNames)(e),!this.renderable)return void(t&&t.rules.register(this));var n=this.renderer.selector(this.renderable,e);return n?void t.rules.register(this):(delete this.renderable,t.rules.register(this),void t.deploy().link())},get:function(){return this.renderable?this.renderer.selector(this.renderable):this.selectorText}}]),e}();t["default"]=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n=(0,a["default"])(e);return t.name?t.name+"-"+n:n}function o(e,t){for(var n="",r=0;r<e;r++)n+=" ";return n+t}function u(e,t){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],r=n.indentationLevel||0,i="",u=t.fallbacks;if(n.selector!==!1&&r++,u)if(Array.isArray(u))for(var s=0;s<u.length;s++){var a=u[s];for(var f in a){var c=a[f];null!=c&&(i+="\n"+o(r,f+": "+l(c)+";"))}}else for(var d in u){var p=u[d];null!=p&&(i+="\n"+o(r,d+": "+l(p)+";"))}for(var h in t){var v=t[h];null!=v&&"fallbacks"!==h&&(i+="\n"+o(r,h+": "+l(v)+";"))}return i?(n.selector!==!1&&(r--,i=o(r,e+" {"+i+"\n")+o(r,"}")),i):i}Object.defineProperty(t,"__esModule",{value:!0}),t.findClassNames=t.toCssValue=void 0,t.generateClassName=i,t.toCss=u;var s=n(14),a=r(s),l=t.toCssValue=function(){function e(e){return e.join(" ")}return function t(n){return Array.isArray(n)?Array.isArray(n[0])?t(n.map(e)):n.join(", "):n}}();t.findClassNames=function(){var e=/[.]/g,t=/[.][^ ,]+/g;return function(n){var r=n.match(t);return r?r.join(" ").replace(e,""):""}}()},function(e,t,n){function r(e,t){var n,r,i,o,u,s,a,l;for(n=3&e.length,r=e.length-n,i=t,u=3432918353,s=461845907,l=0;l<r;)a=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,++l,a=(65535&a)*u+(((a>>>16)*u&65535)<<16)&4294967295,a=a<<15|a>>>17,a=(65535&a)*s+(((a>>>16)*s&65535)<<16)&4294967295,i^=a,i=i<<13|i>>>19,o=5*(65535&i)+((5*(i>>>16)&65535)<<16)&4294967295,i=(65535&o)+27492+(((o>>>16)+58964&65535)<<16);switch(a=0,n){case 3:a^=(255&e.charCodeAt(l+2))<<16;case 2:a^=(255&e.charCodeAt(l+1))<<8;case 1:a^=255&e.charCodeAt(l),a=(65535&a)*u+(((a>>>16)*u&65535)<<16)&4294967295,a=a<<15|a>>>17,a=(65535&a)*s+(((a>>>16)*s&65535)<<16)&4294967295,i^=a}return i^=e.length,i^=i>>>16,i=2246822507*(65535&i)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(65535&i)+((3266489909*(i>>>16)&65535)<<16)&4294967295,i^=i>>>16,i>>>0}e.exports=r},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,r,i){n(this,e),this.type="simple",this.name=t,this.value=r,this.options=i}return r(e,[{key:"toString",value:function(){if(Array.isArray(this.value)){for(var e="",t=0;t<this.value.length;t++)e+=this.name+" "+this.value[t]+";",this.value[t+1]&&(e+="\n");return e}return this.name+" "+this.value+";"}}]),e}();t["default"]=i},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,r,i){n(this,e),this.type="keyframe",this.selector=t,this.options=i,this.frames=this.formatFrames(r)}return i(e,[{key:"formatFrames",value:function(e){var t=Object.create(null);for(var n in e){var i=r({},this.options,{named:!1,parent:this});t[n]=this.options.jss.createRule(n,e[n],i)}return t}},{key:"toString",value:function(){var e=this.selector+" {\n",t={indentationLevel:1};for(var n in this.frames)e+=this.frames[n].toString(t)+"\n";return e+="}"}}]),e}();t["default"]=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(10),a=r(s),l=function(){function e(t,n,r){i(this,e),this.type="conditional",this.selector=t,this.options=r,this.rules=new a["default"](o({},r,{parent:this}));for(var u in n)this.createAndRegisterRule(u,n[u]);r.jss.plugins.run(this.rules.getIndex())}return u(e,[{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"addRule",value:function(e,t,n){return this.rules.create(e,t,this.getChildOptions(n))}},{key:"toString",value:function(){var e=this.rules.toString({indentationLevel:1});return e?this.selector+" {\n"+e+"\n}":""}},{key:"getChildOptions",value:function(e){return o({},this.options,{parent:this},e)}},{key:"createAndRegisterRule",value:function(e,t){return this.rules.createAndRegister(e,t,this.getChildOptions())}}]),e}();t["default"]=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(13),u=function(){function e(t,n,i){r(this,e),this.type="font-face",this.options=i,this.selector=t,this.style=n}return i(e,[{key:"toString",value:function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=(0,o.toCss)(this.selector,this.style[n],e),this.style[n+1]&&(t+="\n");return t}return(0,o.toCss)(this.selector,this.style,e)}}]),e}();t["default"]=u},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){n(this,e),this.registry=[]}return r(e,[{key:"use",value:function(e){this.registry.push(e)}},{key:"run",value:function(e){return Array.isArray(e)?void e.forEach(this.runOne,this):void this.runOne(e)}},{key:"runOne",value:function(e){for(var t=0;t<this.registry.length;t++)this.registry[t](e)}}]),e}();t["default"]=i},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){n(this,e),this.registry=[]}return r(e,[{key:"add",value:function(e){var t=this.registry,n=e.options.index;if(!t.length||n>=t[t.length-1].options.index)return void t.push(e);for(var r=0;r<t.length;r++){var i=t[r].options;if(i.index>n)return void t.splice(r,0,e)}}},{key:"remove",value:function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)}},{key:"toString",value:function(e){return this.registry.map(function(t){return t.toString(e)}).join("\n")}}]),e}();t["default"]=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),o=r(i),u=n(23),s=r(u),a=n(24),l=r(a),f=n(25),c=r(f),d=n(27),p=r(d),h=n(33),v=r(h),y=n(34),m=r(y);t["default"]=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return{plugins:[(0,o["default"])(e.extend),(0,s["default"])(e.nested),(0,l["default"])(e.camelCase),(0,c["default"])(e.defaultUnit),(0,p["default"])(e.vendorPrefixer),(0,v["default"])(e.propsSort),(0,m["default"])(e.compose)]}}},function(e,t){"use strict";function n(e,t,i){if("string"==typeof i.extend){if(e.options&&e.options.sheet){var o=e.options.sheet.getRule(i.extend);o&&(o===e?r("A rule tries to extend itself \r\n"+e.toString()):n(e,t,o.originalStyle))}}else if(Array.isArray(i.extend))for(var u=0;u<i.extend.length;u++)n(e,t,i.extend[u]);else for(var s in i.extend)"extend"===s?n(e,t,i.extend.extend):t[s]=i.extend[s];for(var a in i)"extend"!==a&&(t[a]=i[a]);return t}Object.defineProperty(t,"__esModule",{value:!0});var r=console.warn.bind(console);t["default"]=function(){return function(e){e.style&&e.style.extend&&(e.style=n(e,{},e.style))}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){function e(e){return function(t,n){var r=e.getRule(n);return r?r.selector:((0,a["default"])(!1,"[JSS] Could not find the referenced rule %s. \r\n%s",n,r),n)}}function t(e,t,n){var r=n.getRule(e);if(!r)return void n.addRule(e,i({},t.name,t.style[e]));var o=r.getRule(t.name);return o?void(o.style=u({},o.style,t.style[e])):void r.addRule(t.name,t.style[e])}return function(n){if("regular"===n.type){var r=n.options.parent,i=void 0,o=void 0;for(var s in n.style){var c="&"===s[0],d="@"===s[0];if(c||d){if(i)i=u({},i,{index:i.index+1});else{var p=n.options.nestingLevel;p=void 0===p?1:p+1,(0,a["default"])(p<2,"[JSS] Nesting is too deep. \r\n%s",n),i=u({},n.options,{named:!1,nestingLevel:p,index:r.indexOf(n)+1})}if(c){o||(o=e(r));var h=s.replace(l,n.selector).replace(f,o);r.addRule(h,n.style[s],i)}else d&&t(s,n,r);delete n.style[s]}}}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t["default"]=o;var s=n(7),a=r(s),l=/&/g,f=/\$([\w-]+)/g},function(e,t){"use strict";function n(e){return"-"+e.toLowerCase()}function r(e){var t={};for(var r in e){var o=e[r];r=r.replace(i,n),t[r]=o}return t}Object.defineProperty(t,"__esModule",{value:!0});var i=/([A-Z])/g;t["default"]=function(){return function(e){var t=e.style;if(t)if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=r(t[n]);else e.style=r(t)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n){if(!t)return t;var r=t;switch(t.constructor){case Object:for(var u in t)t[u]=i(u,t[u],n);break;case Array:for(var s=0;s<t.length;s++)t[s]=i(e,t[s],n);break;case Number:r=o(e,t,n)}return r}function o(e,t,n){return"number"==typeof t&&0!==t&&(t+=n[e]||a["default"][e]||""),t}function u(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return function(t){var n=t.style,r=t.type;if(n&&"regular"===r)for(var o in n)n[o]=i(o,n[o],e)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=u;var s=n(26),a=r(s)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={"animation-delay":"ms","animation-duration":"ms","background-position-x":"px","background-position-y":"px","background-size":"px",border:"px","border-bottom":"px","border-bottom-left-radius":"px","border-bottom-right-radius":"px","border-bottom-width":"px","border-left":"px","border-left-width":"px","border-radius":"px","border-right":"px","border-right-width":"px","border-spacing":"px","border-top":"px","border-top-left-radius":"px","border-top-right-radius":"px","border-top-width":"px","border-width":"px","border-after-width":"px","border-before-width":"px","border-end-width":"px","border-horizontal-spacing":"px","border-start-width":"px","border-vertical-spacing":"px",bottom:"px","column-gap":"px","column-rule":"px","column-rule-width":"px","column-width":"px","flex-basis":"px","font-size":"px","font-size-delta":"px",height:"px",left:"px","letter-spacing":"px","logical-height":"px","logical-width":"px",margin:"px","margin-after":"px","margin-before":"px","margin-bottom":"px","margin-left":"px","margin-right":"px","margin-top":"px","max-height":"px","max-width":"px","margin-end":"px","margin-start":"px","mask-position-x":"px","mask-position-y":"px","mask-size":"px","max-logical-height":"px","max-logical-width":"px","min-height":"px","min-width":"px","min-logical-height":"px","min-logical-width":"px",motion:"px","motion-offset":"px",outline:"px","outline-offset":"px","outline-width":"px",padding:"px","padding-bottom":"px","padding-left":"px","padding-right":"px","padding-top":"px","padding-after":"px","padding-before":"px","padding-end":"px","padding-start":"px","perspective-origin-x":"%","perspective-origin-y":"%",perspective:"px",right:"px","shape-margin":"px",size:"px","text-indent":"px","text-stroke":"px","text-stroke-width":"px",top:"px","transform-origin":"%","transform-origin-x":"%","transform-origin-y":"%","transform-origin-z":"%","transition-delay":"ms","transition-duration":"ms","vertical-align":"px",width:"px","word-spacing":"px"}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(){return function(e){if("keyframe"===e.type)return void(e.selector="@"+u.prefix.css+e.selector.substr(1));if("regular"===e.type)for(var t in e.style){var n=e.style[t],r=!1,i=u.supportedProperty(t);i&&i!==t&&(r=!0);var o=!1,s=u.supportedValue(i,n);s&&s!==n&&(o=!0),(r||o)&&(r&&delete e.style[t],e.style[i||t]=s||n)}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var o=n(28),u=r(o)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.supportedValue=t.supportedProperty=t.prefix=void 0;var i=n(29),o=r(i),u=n(30),s=r(u),a=n(32),l=r(a);t["default"]={prefix:o["default"],supportedProperty:s["default"],supportedValue:l["default"]},/** | ||
function i(e){return new u["default"](e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Rule=t.StyleSheet=t.Jss=void 0,t.create=i;var o=n(3),u=r(o),s=n(4),a=r(s),l=n(12),f=r(l);t.Jss=u["default"],t.StyleSheet=a["default"],t.Rule=f["default"],t["default"]=i()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(4),l=r(a),f=n(19),c=r(f),d=n(20),h=r(d),p=n(11),v=r(p),y=n(5),m=r(y),g=n(13),b=function(){function e(t){i(this,e),this.sheets=new h["default"],this.plugins=new c["default"],this.version="5.5.5",this.setup(t)}return s(e,[{key:"setup",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return this.generateClassName=t.generateClassName||g.generateClassName,t.plugins&&t.plugins.forEach(function(t){e.use(t)}),this}},{key:"createStyleSheet",value:function(e,t){var n=new l["default"](e,u({},t,{jss:this}));return this.sheets.add(n),n}},{key:"removeStyleSheet",value:function(e){return e.detach(),this.sheets.remove(e),this}},{key:"createRule",value:function(e,t,n){"object"==("undefined"==typeof e?"undefined":o(e))&&(n=t,t=e,e=null);var r=(0,v["default"])(e,t,u({jss:this,Renderer:(0,m["default"])(n)},n));return this.plugins.run(r),r}},{key:"use",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){return e.plugins.use(t)}),this}}]),e}();t["default"]=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(5),a=r(s),l=n(10),f=r(l),c=function(){function e(t,n){i(this,e);var r=null==n.named||n.named,u="number"==typeof n.index?n.index:0,s=(0,a["default"])(n);this.rules=Object.create(null),this.attached=!1,this.deployed=!1,this.linked=!1,this.classes=Object.create(null),this.renderer=new s(n),this.renderer.createElement(),this.options=o({},n,{sheet:this,parent:this,classes:this.classes,renderer:this.renderer,named:r,index:u,Renderer:s}),this.rules=new f["default"](this.options);for(var l in t)this.rules.createAndRegister(l,t[l]);n.jss.plugins.run(this.rules.getIndex())}return u(e,[{key:"attach",value:function(){return this.attached?this:(this.deployed||this.deploy(),this.renderer.attach(),!this.linked&&this.options.link&&this.link(),this.attached=!0,this)}},{key:"detach",value:function(){return this.attached?(this.renderer.detach(),this.attached=!1,this):this}},{key:"addRule",value:function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.create(e,t,n);if(this.attached){if(!this.deployed)return i;if(r)r.push(i);else{var o=this.renderer.insertRule(i);this.options.link&&(i.renderable=o),this.queue&&(this.queue.forEach(this.renderer.insertRule,this.renderer),this.queue=null)}return i}return this.deployed=!1,i}},{key:"addRules",value:function(e,t){var n=[];for(var r in e)n.push(this.addRule(r,e[r],t));return n}},{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"deleteRule",value:function(e){var t=this.rules.get(e);return!!t&&(this.rules.remove(t),!this.attached||this.renderer.deleteRule(t.renderable))}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"toString",value:function(e){return this.rules.toString(e)}},{key:"deploy",value:function(){return this.renderer.deploy(this),this.deployed=!0,this}},{key:"link",value:function(){var e=this.renderer.getRules();for(var t in e){var n=this.rules.get(t);n&&(n.renderable=e[t])}return this.linked=!0,this}}]),e}();t["default"]=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return e.Renderer?e.Renderer:e.virtual||!f["default"]?a["default"]:u["default"]}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var o=n(6),u=r(o),s=n(8),a=r(s),l=n(9),f=r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(7),s=r(u),a=function(){function e(t){i(this,e),this.options=t}return o(e,[{key:"createElement",value:function(){var e=this.options,t=e.media,n=e.meta,r=e.element;this.head=document.head||document.getElementsByTagName("head")[0],this.element=r||document.createElement("style"),this.element.type="text/css",this.element.setAttribute("data-jss",""),t&&this.element.setAttribute("media",t),n&&this.element.setAttribute("data-meta",n)}},{key:"style",value:function(e,t,n){try{if(null==n)return e.style[t];e.style[t]=n}catch(r){return!1}return!0}},{key:"selector",value:function(e,t){return null==t?e.selectorText:(e.selectorText=t,e.selectorText===t)}},{key:"attach",value:function(){if(!this.element.parentNode){var e=null,t=this.options,n=t.index,r=t.jss,i=r.sheets.registry;if(i.length>1){if("number"==typeof n)for(var o=0;o<i.length;o++){var u=i[o];if(u.attached&&"number"==typeof u.options.index&&!(u.options.index<=n)){e=u.renderer.element;break}}if(!e)for(var s=i.length-1;s>=0;s--){var a=i[s];if(a.attached){e=a.renderer.element.nextElementSibling;break}}}if(!e)for(var l=0;l<this.head.childNodes.length;l++){var f=this.head.childNodes[l];if("jss"===f.nodeValue){e=f;break}}this.head.insertBefore(this.element,e)}}},{key:"detach",value:function(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function(e){this.element.textContent="\n"+e.toString()+"\n"}},{key:"insertRule",value:function(e){var t=this.element.sheet,n=t.cssRules,r=n.length;try{t.insertRule(e.toString(),r)}catch(i){(0,s["default"])(!1,"[JSS] Can not insert an unsupported rule \n\r%s",e.toString())}return n[r]}},{key:"deleteRule",value:function(e){for(var t=this.element.sheet,n=t.cssRules,r=0;r<n.length;r++)if(e===n[r])return t.deleteRule(r),!0;return!1}},{key:"getRules",value:function(){for(var e=this.element.sheet.cssRules,t=Object.create(null),n=0;n<e.length;n++){var r=e[n];t[r.selectorText]=r}return t}}]),e}();t["default"]=a},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){n(this,e)}return r(e,[{key:"createElement",value:function(){}},{key:"style",value:function(){}},{key:"selector",value:function(){}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"deploy",value:function(){}},{key:"insertRule",value:function(){}},{key:"deleteRule",value:function(){}},{key:"getRules",value:function(){return{}}}]),e}();t["default"]=i},function(e,t){e.exports=!0},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(11),a=r(s),l=function(){function e(t){i(this,e),this.map=Object.create(null),this.index=[],this.options=t,this.classes=t.classes||{}}return u(e,[{key:"create",value:function(e,t,n){var r=this.createAndRegister(e,t,n);return this.options.jss.plugins.run(r),r}},{key:"remove",value:function(e){this.unregister(e),this.index.splice(this.indexOf(e),1)}},{key:"get",value:function(e){return this.map[e]}},{key:"indexOf",value:function(e){return this.index.indexOf(e)}},{key:"register",value:function(e){return e.name&&(this.map[e.name]=e),e.className&&e.name&&(this.classes[e.name]=e.className),e.selector&&(this.map[e.selector]=e),this}},{key:"unregister",value:function(e){return delete this.map[e.name],delete this.map[e.selector],delete this.classes[e.name],this}},{key:"toString",value:function(e){for(var t="",n=0;n<this.index.length;n++){var r=this.index[n],i=r.toString(e);i&&(t&&(t+="\n"),t+=i)}return t}},{key:"getIndex",value:function(){return this.index.slice(0)}},{key:"createAndRegister",value:function(e,t,n){n=o({},n,{classes:this.classes,parent:this.options.parent,sheet:this.options.sheet,jss:this.options.jss,Renderer:this.options.Renderer}),n.className||(n.className=this.classes[e]),null==n.named&&(n.named=this.options.named);var r=(0,a["default"])(e,t,n);this.register(r);var i=void 0===n.index?this.index.length:n.index;return this.index.splice(i,0,r),r}}]),e}();t["default"]=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];if(e&&"@"===e[0]){var r=y.exec(e)[0],i=v[r];return new i(e,t,n)}return null==n.named&&(n.named=!0),new u["default"](e,t,n)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var o=n(12),u=r(o),s=n(15),a=r(s),l=n(16),f=r(l),c=n(17),d=r(c),h=n(18),p=r(h),v={"@charset":a["default"],"@import":a["default"],"@namespace":a["default"],"@keyframes":f["default"],"@media":d["default"],"@supports":d["default"],"@font-face":p["default"]},y=/^@[^ ]+/},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(13),s=JSON.parse,a=JSON.stringify,l=function(){function e(t,n,i){r(this,e);var o=a(n);this.style=s(o),this.type="regular",this.options=i,this.selectorText=t||"",this.className=i.className||"",this.originalStyle=n,i.named&&(this.name=t,this.className||(this.className=i.jss.generateClassName(o,this)),this.selectorText="."+this.className),this.renderer=i.sheet?i.sheet.renderer:new i.Renderer}return o(e,[{key:"prop",value:function(e,t){return null!=t?(this.style[e]=t,this.renderable&&this.renderer.style(this.renderable,e,t),this):(this.renderable&&null==this.style[e]&&(this.style[e]=this.renderer.style(this.renderable,e)),this.style[e])}},{key:"applyTo",value:function(e){var t=this.toJSON();for(var n in t)this.renderer.style(e,n,t[n]);return this}},{key:"toJSON",value:function(){var e=Object.create(null);for(var t in this.style){var n=this.style[t];"object"!==("undefined"==typeof n?"undefined":i(n))?e[t]=n:Array.isArray(n)&&(e[t]=(0,u.toCssValue)(n))}return e}},{key:"toString",value:function(e){return(0,u.toCss)(this.selector,this.style,e)}},{key:"selector",set:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.sheet;if(t&&t.rules.unregister(this),this.selectorText=e,this.className=(0,u.findClassNames)(e),!this.renderable)return void(t&&t.rules.register(this));var n=this.renderer.selector(this.renderable,e);return n?void t.rules.register(this):(delete this.renderable,t.rules.register(this),void t.deploy().link())},get:function(){return this.renderable?this.renderer.selector(this.renderable):this.selectorText}}]),e}();t["default"]=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n=(0,a["default"])(e);return t.name?t.name+"-"+n:n}function o(e,t){for(var n="",r=0;r<e;r++)n+=" ";return n+t}function u(e,t){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],r=n.indentationLevel||0,i="",u=t.fallbacks;if(n.selector!==!1&&r++,u)if(Array.isArray(u))for(var s=0;s<u.length;s++){var a=u[s];for(var f in a){var c=a[f];null!=c&&(i+="\n"+o(r,f+": "+l(c)+";"))}}else for(var d in u){var h=u[d];null!=h&&(i+="\n"+o(r,d+": "+l(h)+";"))}for(var p in t){var v=t[p];null!=v&&"fallbacks"!==p&&(i+="\n"+o(r,p+": "+l(v)+";"))}return i?(n.selector!==!1&&(r--,i=o(r,e+" {"+i+"\n")+o(r,"}")),i):i}Object.defineProperty(t,"__esModule",{value:!0}),t.findClassNames=t.toCssValue=void 0,t.generateClassName=i,t.toCss=u;var s=n(14),a=r(s),l=t.toCssValue=function(){function e(e){return e.join(" ")}return function t(n){return Array.isArray(n)?Array.isArray(n[0])?t(n.map(e)):n.join(", "):n}}();t.findClassNames=function(){var e=/[.]/g,t=/[.][^ ,]+/g;return function(n){var r=n.match(t);return r?r.join(" ").replace(e,""):""}}()},function(e,t,n){function r(e,t){var n,r,i,o,u,s,a,l;for(n=3&e.length,r=e.length-n,i=t,u=3432918353,s=461845907,l=0;l<r;)a=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,++l,a=(65535&a)*u+(((a>>>16)*u&65535)<<16)&4294967295,a=a<<15|a>>>17,a=(65535&a)*s+(((a>>>16)*s&65535)<<16)&4294967295,i^=a,i=i<<13|i>>>19,o=5*(65535&i)+((5*(i>>>16)&65535)<<16)&4294967295,i=(65535&o)+27492+(((o>>>16)+58964&65535)<<16);switch(a=0,n){case 3:a^=(255&e.charCodeAt(l+2))<<16;case 2:a^=(255&e.charCodeAt(l+1))<<8;case 1:a^=255&e.charCodeAt(l),a=(65535&a)*u+(((a>>>16)*u&65535)<<16)&4294967295,a=a<<15|a>>>17,a=(65535&a)*s+(((a>>>16)*s&65535)<<16)&4294967295,i^=a}return i^=e.length,i^=i>>>16,i=2246822507*(65535&i)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(65535&i)+((3266489909*(i>>>16)&65535)<<16)&4294967295,i^=i>>>16,i>>>0}e.exports=r},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,r,i){n(this,e),this.type="simple",this.name=t,this.value=r,this.options=i}return r(e,[{key:"toString",value:function(){if(Array.isArray(this.value)){for(var e="",t=0;t<this.value.length;t++)e+=this.name+" "+this.value[t]+";",this.value[t+1]&&(e+="\n");return e}return this.name+" "+this.value+";"}}]),e}();t["default"]=i},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,r,i){n(this,e),this.type="keyframe",this.selector=t,this.options=i,this.frames=this.formatFrames(r)}return i(e,[{key:"formatFrames",value:function(e){var t=Object.create(null);for(var n in e){var i=r({},this.options,{named:!1,parent:this});t[n]=this.options.jss.createRule(n,e[n],i)}return t}},{key:"toString",value:function(){var e=this.selector+" {\n",t={indentationLevel:1};for(var n in this.frames)e+=this.frames[n].toString(t)+"\n";return e+="}"}}]),e}();t["default"]=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(10),a=r(s),l=function(){function e(t,n,r){i(this,e),this.type="conditional",this.selector=t,this.options=r,this.rules=new a["default"](o({},r,{parent:this}));for(var u in n)this.createAndRegisterRule(u,n[u]);r.jss.plugins.run(this.rules.getIndex())}return u(e,[{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"addRule",value:function(e,t,n){return this.rules.create(e,t,this.getChildOptions(n))}},{key:"toString",value:function(){var e=this.rules.toString({indentationLevel:1});return e?this.selector+" {\n"+e+"\n}":""}},{key:"getChildOptions",value:function(e){return o({},this.options,{parent:this},e)}},{key:"createAndRegisterRule",value:function(e,t){return this.rules.createAndRegister(e,t,this.getChildOptions())}}]),e}();t["default"]=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(13),u=function(){function e(t,n,i){r(this,e),this.type="font-face",this.options=i,this.selector=t,this.style=n}return i(e,[{key:"toString",value:function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=(0,o.toCss)(this.selector,this.style[n],e),this.style[n+1]&&(t+="\n");return t}return(0,o.toCss)(this.selector,this.style,e)}}]),e}();t["default"]=u},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){n(this,e),this.registry=[]}return r(e,[{key:"use",value:function(e){this.registry.push(e)}},{key:"run",value:function(e){return Array.isArray(e)?void e.forEach(this.runOne,this):void this.runOne(e)}},{key:"runOne",value:function(e){for(var t=0;t<this.registry.length;t++)this.registry[t](e)}}]),e}();t["default"]=i},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){n(this,e),this.registry=[]}return r(e,[{key:"add",value:function(e){var t=this.registry,n=e.options.index;if(!t.length||n>=t[t.length-1].options.index)return void t.push(e);for(var r=0;r<t.length;r++){var i=t[r].options;if(i.index>n)return void t.splice(r,0,e)}}},{key:"remove",value:function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)}},{key:"toString",value:function(e){return this.registry.map(function(t){return t.toString(e)}).join("\n")}}]),e}();t["default"]=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),o=r(i),u=n(23),s=r(u),a=n(24),l=r(a),f=n(25),c=r(f),d=n(27),h=r(d),p=n(33),v=r(p),y=n(34),m=r(y);t["default"]=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return{plugins:[(0,o["default"])(e.extend),(0,s["default"])(e.nested),(0,l["default"])(e.camelCase),(0,c["default"])(e.defaultUnit),(0,h["default"])(e.vendorPrefixer),(0,v["default"])(e.propsSort),(0,m["default"])(e.compose)]}}},function(e,t){"use strict";function n(e,t,i){if("string"==typeof i.extend){if(e.options&&e.options.sheet){var o=e.options.sheet.getRule(i.extend);o&&(o===e?r("A rule tries to extend itself \r\n"+e.toString()):n(e,t,o.originalStyle))}}else if(Array.isArray(i.extend))for(var u=0;u<i.extend.length;u++)n(e,t,i.extend[u]);else for(var s in i.extend)"extend"===s?n(e,t,i.extend.extend):t[s]=i.extend[s];for(var a in i)"extend"!==a&&(t[a]=i[a]);return t}Object.defineProperty(t,"__esModule",{value:!0});var r=console.warn.bind(console);t["default"]=function(){return function(e){e.style&&e.style.extend&&(e.style=n(e,{},e.style))}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){function e(e){return function(t,n){var r=e.getRule(n);return r?r.selector:((0,a["default"])(!1,"[JSS] Could not find the referenced rule %s. \r\n%s",n,r),n)}}function t(e,t,n){var r=n.getRule(e);if(!r)return void n.addRule(e,i({},t.name,t.style[e]));var o=r.getRule(t.name);return o?void(o.style=u({},o.style,t.style[e])):void r.addRule(t.name,t.style[e])}return function(n){if("regular"===n.type){var r=n.options.parent,i=void 0,o=void 0;for(var s in n.style){var c="&"===s[0],d="@"===s[0];if(c||d){if(i)i=u({},i,{index:i.index+1});else{var h=n.options.nestingLevel;h=void 0===h?1:h+1,(0,a["default"])(h<2,"[JSS] Nesting is too deep. \r\n%s",n),i=u({},n.options,{named:!1,nestingLevel:h,index:r.indexOf(n)+1})}if(c){o||(o=e(r));var p=s.replace(l,n.selector).replace(f,o);r.addRule(p,n.style[s],i)}else d&&t(s,n,r);delete n.style[s]}}}}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t["default"]=o;var s=n(7),a=r(s),l=/&/g,f=/\$([\w-]+)/g},function(e,t){"use strict";function n(e){return"-"+e.toLowerCase()}function r(e){var t={};for(var r in e){var o=e[r];r=r.replace(i,n),t[r]=o}return t}Object.defineProperty(t,"__esModule",{value:!0});var i=/([A-Z])/g;t["default"]=function(){return function(e){var t=e.style;if(t)if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=r(t[n]);else e.style=r(t)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n){if(!t)return t;var r=t;switch(t.constructor){case Object:for(var u in t)t[u]=i(u,t[u],n);break;case Array:for(var s=0;s<t.length;s++)t[s]=i(e,t[s],n);break;case Number:r=o(e,t,n)}return r}function o(e,t,n){return"number"==typeof t&&0!==t&&(t+=n[e]||a["default"][e]||""),t}function u(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return function(t){var n=t.style,r=t.type;if(n&&"regular"===r)for(var o in n)n[o]=i(o,n[o],e)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=u;var s=n(26),a=r(s)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={"animation-delay":"ms","animation-duration":"ms","background-position-x":"px","background-position-y":"px","background-size":"px",border:"px","border-bottom":"px","border-bottom-left-radius":"px","border-bottom-right-radius":"px","border-bottom-width":"px","border-left":"px","border-left-width":"px","border-radius":"px","border-right":"px","border-right-width":"px","border-spacing":"px","border-top":"px","border-top-left-radius":"px","border-top-right-radius":"px","border-top-width":"px","border-width":"px","border-after-width":"px","border-before-width":"px","border-end-width":"px","border-horizontal-spacing":"px","border-start-width":"px","border-vertical-spacing":"px",bottom:"px","column-gap":"px","column-rule":"px","column-rule-width":"px","column-width":"px","flex-basis":"px","font-size":"px","font-size-delta":"px",height:"px",left:"px","letter-spacing":"px","logical-height":"px","logical-width":"px",margin:"px","margin-after":"px","margin-before":"px","margin-bottom":"px","margin-left":"px","margin-right":"px","margin-top":"px","max-height":"px","max-width":"px","margin-end":"px","margin-start":"px","mask-position-x":"px","mask-position-y":"px","mask-size":"px","max-logical-height":"px","max-logical-width":"px","min-height":"px","min-width":"px","min-logical-height":"px","min-logical-width":"px",motion:"px","motion-offset":"px",outline:"px","outline-offset":"px","outline-width":"px",padding:"px","padding-bottom":"px","padding-left":"px","padding-right":"px","padding-top":"px","padding-after":"px","padding-before":"px","padding-end":"px","padding-start":"px","perspective-origin-x":"%","perspective-origin-y":"%",perspective:"px",right:"px","shape-margin":"px",size:"px","text-indent":"px","text-stroke":"px","text-stroke-width":"px",top:"px","transform-origin":"%","transform-origin-x":"%","transform-origin-y":"%","transform-origin-z":"%","transition-delay":"ms","transition-duration":"ms","vertical-align":"px",width:"px","word-spacing":"px"}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(){return function(e){if("keyframe"===e.type)return void(e.selector="@"+u.prefix.css+e.selector.substr(1));if("regular"===e.type)for(var t in e.style){var n=e.style[t],r=!1,i=u.supportedProperty(t);i&&i!==t&&(r=!0);var o=!1,s=u.supportedValue(i,n);s&&s!==n&&(o=!0),(r||o)&&(r&&delete e.style[t],e.style[i||t]=s||n)}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var o=n(28),u=r(o)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.supportedValue=t.supportedProperty=t.prefix=void 0;var i=n(29),o=r(i),u=n(30),s=r(u),a=n(32),l=r(a);t["default"]={prefix:o["default"],supportedProperty:s["default"],supportedValue:l["default"]},/** | ||
* CSS Vendor prefix detection and property feature testing. | ||
@@ -16,3 +16,3 @@ * | ||
*/ | ||
t.prefix=o["default"],t.supportedProperty=s["default"],t.supportedValue=l["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),o=r(i),u="",s="";if(o["default"]){var a={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"},l=document.createElement("p").style,f="Transform";for(var c in a)if(c+f in l){u=c,s=a[c];break}}t["default"]={js:u,css:s}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){return c?null!=d[e]?d[e]:((0,f["default"])(e)in c.style?d[e]=e:a["default"].js+(0,f["default"])("-"+e)in c.style?d[e]=a["default"].css+e:d[e]=!1,d[e]):e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var o=n(9),u=r(o),s=n(29),a=r(s),l=n(31),f=r(l),c=void 0,d={};if(u["default"]){c=document.createElement("p");var p=window.getComputedStyle(document.documentElement,"");for(var h in p)d[p[h]]=p[h]}},function(e,t){"use strict";function n(e){return e.replace(i,r)}function r(e,t){return t?t.toUpperCase():""}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var i=/[-\s]+(.)?/g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!f)return t;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=l[n])return l[n];try{f.style[e]=t}catch(r){return l[n]=!1,!1}return f.style[e]===t?l[n]=t:(t=a["default"].css+t,"-ms-flex"===t&&(t="-ms-flexbox"),f.style[e]=t,f.style[e]===t&&(l[n]=t)),l[n]||(l[n]=!1),l[n]}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var o=n(9),u=r(o),s=n(29),a=r(s),l={},f=void 0;u["default"]&&(f=document.createElement("p"))},function(e,t){"use strict";function n(){function e(e,t){return e.length>t.length}return function(t){var n=t.style,r=t.type;if(n&&"regular"===r){var i={},o=Object.keys(n).sort(e);for(var u in o)i[o[u]]=n[o[u]];t.style=i}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if("$"===t[0]){var n=e.options.sheet.getRule(t.substr(1));return n?n===e?((0,s["default"])(!1,"[JSS] Cyclic composition detected. \r\n%s",e),!1):(i(e,n.className),!0):((0,s["default"])(!1,"[JSS] Referenced rule is not defined. \r\n%s",e),!1)}var r=e.options.parent;return e.className+=" "+t,r.classes[e.name]=e.className,!0}function o(){return function(e){var t=e.style;if(t&&t.composes){if(e.options.named)if(Array.isArray(t.composes))for(var n=0;n<t.composes.length;n++)i(e,t.composes[n]);else i(e,t.composes);delete t.composes}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var u=n(7),s=r(u)},function(e,t){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},i="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,o){if("string"!=typeof t){var u=Object.getOwnPropertyNames(t);i&&(u=u.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<u.length;++s)if(!(n[u[s]]||r[u[s]]||o&&o[u[s]]))try{e[u[s]]=t[u[s]]}catch(a){}}return e}}])}); | ||
t.prefix=o["default"],t.supportedProperty=s["default"],t.supportedValue=l["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),o=r(i),u="",s="";if(o["default"]){var a={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"},l=document.createElement("p").style,f="Transform";for(var c in a)if(c+f in l){u=c,s=a[c];break}}t["default"]={js:u,css:s}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){return c?null!=d[e]?d[e]:((0,f["default"])(e)in c.style?d[e]=e:a["default"].js+(0,f["default"])("-"+e)in c.style?d[e]=a["default"].css+e:d[e]=!1,d[e]):e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var o=n(9),u=r(o),s=n(29),a=r(s),l=n(31),f=r(l),c=void 0,d={};if(u["default"]){c=document.createElement("p");var h=window.getComputedStyle(document.documentElement,"");for(var p in h)d[h[p]]=h[p]}},function(e,t){"use strict";function n(e){return e.replace(i,r)}function r(e,t){return t?t.toUpperCase():""}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var i=/[-\s]+(.)?/g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!f)return t;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=l[n])return l[n];try{f.style[e]=t}catch(r){return l[n]=!1,!1}return f.style[e]===t?l[n]=t:(t=a["default"].css+t,"-ms-flex"===t&&(t="-ms-flexbox"),f.style[e]=t,f.style[e]===t&&(l[n]=t)),l[n]||(l[n]=!1),l[n]}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var o=n(9),u=r(o),s=n(29),a=r(s),l={},f=void 0;u["default"]&&(f=document.createElement("p"))},function(e,t){"use strict";function n(){function e(e,t){return e.length>t.length}return function(t){var n=t.style,r=t.type;if(n&&"regular"===r){var i={},o=Object.keys(n).sort(e);for(var u in o)i[o[u]]=n[o[u]];t.style=i}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if("$"===t[0]){var n=e.options.sheet.getRule(t.substr(1));return n?n===e?((0,s["default"])(!1,"[JSS] Cyclic composition detected. \r\n%s",e),!1):(i(e,n.className),!0):((0,s["default"])(!1,"[JSS] Referenced rule is not defined. \r\n%s",e),!1)}var r=e.options.parent;return e.className+=" "+t,r.classes[e.name]=e.className,!0}function o(){return function(e){var t=e.style;if(t&&t.composes){if(e.options.named)if(Array.isArray(t.composes))for(var n=0;n<t.composes.length;n++)i(e,t.composes[n]);else i(e,t.composes);delete t.composes}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var u=n(7),s=r(u)},function(e,t){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},i="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,o){if("string"!=typeof t){var u=Object.getOwnPropertyNames(t);i&&(u=u.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<u.length;++s)if(!(n[u[s]]||r[u[s]]||o&&o[u[s]]))try{e[u[s]]=t[u[s]]}catch(a){}}return e}}])}); | ||
//# sourceMappingURL=jss-compose.min.js.map |
@@ -105,4 +105,5 @@ 'use strict'; | ||
value: function componentWillUnmount() { | ||
deref(); | ||
this.sheet = null; | ||
if (this.sheet && !sheet && !refs) { | ||
this.sheet.detach(); | ||
} else deref(); | ||
} | ||
@@ -109,0 +110,0 @@ }, { |
'use strict'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _expect = require('expect.js'); | ||
@@ -17,2 +21,6 @@ | ||
var _reactDeepForceUpdate = require('react-deep-force-update'); | ||
var _reactDeepForceUpdate2 = _interopRequireDefault(_reactDeepForceUpdate); | ||
var _ = require('./'); | ||
@@ -24,2 +32,8 @@ | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
var node = document.createElement('div'); | ||
@@ -129,2 +143,99 @@ | ||
}); | ||
describe('.injectSheet() hot reloading', function () { | ||
function simulateHotReloading(container, TargetClass, SourceClass) { | ||
// Crude imitation of hot reloading that does the job | ||
Object.getOwnPropertyNames(SourceClass.prototype).filter(function (key) { | ||
return typeof SourceClass.prototype[key] === 'function'; | ||
}).forEach(function (key) { | ||
if (key !== 'render' && key !== 'constructor') { | ||
TargetClass.prototype[key] = SourceClass.prototype[key]; | ||
} | ||
}); | ||
(0, _reactDeepForceUpdate2['default'])(container); | ||
} | ||
var WrappedComponentA = void 0; | ||
var WrappedComponentB = void 0; | ||
var WrappedComponentC = void 0; | ||
beforeEach(function () { | ||
(0, _reactDom.unmountComponentAtNode)(node); | ||
WrappedComponentA = (0, _2['default'])({ | ||
button: { color: 'red' } | ||
})(function () { | ||
return null; | ||
}); | ||
WrappedComponentB = (0, _2['default'])({ | ||
button: { color: 'green' } | ||
})(function () { | ||
return null; | ||
}); | ||
WrappedComponentC = (0, _2['default'])({ | ||
button: { color: 'blue' } | ||
})(function () { | ||
return null; | ||
}); | ||
}); | ||
it('should hot reload component and attach new sheets', function () { | ||
var container = (0, _reactDom.render)(_react2['default'].createElement(WrappedComponentA, null), node); | ||
(0, _expect2['default'])(document.querySelectorAll('style').length).to.be(1); | ||
(0, _expect2['default'])(document.querySelectorAll('style')[0].innerHTML).to.contain('color: red'); | ||
simulateHotReloading(container, WrappedComponentA, WrappedComponentB); | ||
(0, _expect2['default'])(document.querySelectorAll('style').length).to.be(1); | ||
(0, _expect2['default'])(document.querySelectorAll('style')[0].innerHTML).to.contain('color: green'); | ||
simulateHotReloading(container, WrappedComponentA, WrappedComponentC); | ||
(0, _expect2['default'])(document.querySelectorAll('style').length).to.be(1); | ||
(0, _expect2['default'])(document.querySelectorAll('style')[0].innerHTML).to.contain('color: blue'); | ||
}); | ||
it('should properly detach sheets on hot reloaded component', function () { | ||
// eslint-disable-next-line react/prefer-stateless-function | ||
var AppContainer = function (_React$Component) { | ||
_inherits(AppContainer, _React$Component); | ||
function AppContainer() { | ||
_classCallCheck(this, AppContainer); | ||
return _possibleConstructorReturn(this, (AppContainer.__proto__ || Object.getPrototypeOf(AppContainer)).apply(this, arguments)); | ||
} | ||
_createClass(AppContainer, [{ | ||
key: 'render', | ||
value: function render() { | ||
return _react2['default'].createElement(WrappedComponentA, _extends({}, this.props, { | ||
key: Math.random() // Require children to unmount on every render | ||
})); | ||
} | ||
}]); | ||
return AppContainer; | ||
}(_react2['default'].Component); | ||
var container = (0, _reactDom.render)(_react2['default'].createElement(AppContainer, null), node); | ||
(0, _expect2['default'])(document.querySelectorAll('style').length).to.be(1); | ||
(0, _expect2['default'])(document.querySelectorAll('style')[0].innerHTML).to.contain('color: red'); | ||
simulateHotReloading(container, WrappedComponentA, WrappedComponentB); | ||
(0, _expect2['default'])(document.querySelectorAll('style').length).to.be(1); | ||
(0, _expect2['default'])(document.querySelectorAll('style')[0].innerHTML).to.contain('color: green'); | ||
simulateHotReloading(container, WrappedComponentA, WrappedComponentC); | ||
(0, _expect2['default'])(document.querySelectorAll('style').length).to.be(1); | ||
(0, _expect2['default'])(document.querySelectorAll('style')[0].innerHTML).to.contain('color: blue'); | ||
}); | ||
}); | ||
}); |
{ | ||
"name": "react-jss", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "Integration of JSS for react.", | ||
@@ -77,2 +77,3 @@ "main": "lib/index.js", | ||
"react": "^15.3.2", | ||
"react-deep-force-update": "^2.0.1", | ||
"react-dom": "^15.3.2", | ||
@@ -79,0 +80,0 @@ "rimraf": "^2.5.4", |
@@ -105,4 +105,5 @@ 'use strict'; | ||
value: function componentWillUnmount() { | ||
deref(); | ||
this.sheet = null; | ||
if (this.sheet && !sheet && !refs) { | ||
this.sheet.detach(); | ||
} else deref(); | ||
} | ||
@@ -109,0 +110,0 @@ }, { |
'use strict'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _expect = require('expect.js'); | ||
@@ -17,2 +21,6 @@ | ||
var _reactDeepForceUpdate = require('react-deep-force-update'); | ||
var _reactDeepForceUpdate2 = _interopRequireDefault(_reactDeepForceUpdate); | ||
var _ = require('./'); | ||
@@ -24,2 +32,8 @@ | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
var node = document.createElement('div'); | ||
@@ -129,2 +143,99 @@ | ||
}); | ||
describe('.injectSheet() hot reloading', function () { | ||
function simulateHotReloading(container, TargetClass, SourceClass) { | ||
// Crude imitation of hot reloading that does the job | ||
Object.getOwnPropertyNames(SourceClass.prototype).filter(function (key) { | ||
return typeof SourceClass.prototype[key] === 'function'; | ||
}).forEach(function (key) { | ||
if (key !== 'render' && key !== 'constructor') { | ||
TargetClass.prototype[key] = SourceClass.prototype[key]; | ||
} | ||
}); | ||
(0, _reactDeepForceUpdate2['default'])(container); | ||
} | ||
var WrappedComponentA = void 0; | ||
var WrappedComponentB = void 0; | ||
var WrappedComponentC = void 0; | ||
beforeEach(function () { | ||
(0, _reactDom.unmountComponentAtNode)(node); | ||
WrappedComponentA = (0, _2['default'])({ | ||
button: { color: 'red' } | ||
})(function () { | ||
return null; | ||
}); | ||
WrappedComponentB = (0, _2['default'])({ | ||
button: { color: 'green' } | ||
})(function () { | ||
return null; | ||
}); | ||
WrappedComponentC = (0, _2['default'])({ | ||
button: { color: 'blue' } | ||
})(function () { | ||
return null; | ||
}); | ||
}); | ||
it('should hot reload component and attach new sheets', function () { | ||
var container = (0, _reactDom.render)(_react2['default'].createElement(WrappedComponentA, null), node); | ||
(0, _expect2['default'])(document.querySelectorAll('style').length).to.be(1); | ||
(0, _expect2['default'])(document.querySelectorAll('style')[0].innerHTML).to.contain('color: red'); | ||
simulateHotReloading(container, WrappedComponentA, WrappedComponentB); | ||
(0, _expect2['default'])(document.querySelectorAll('style').length).to.be(1); | ||
(0, _expect2['default'])(document.querySelectorAll('style')[0].innerHTML).to.contain('color: green'); | ||
simulateHotReloading(container, WrappedComponentA, WrappedComponentC); | ||
(0, _expect2['default'])(document.querySelectorAll('style').length).to.be(1); | ||
(0, _expect2['default'])(document.querySelectorAll('style')[0].innerHTML).to.contain('color: blue'); | ||
}); | ||
it('should properly detach sheets on hot reloaded component', function () { | ||
// eslint-disable-next-line react/prefer-stateless-function | ||
var AppContainer = function (_React$Component) { | ||
_inherits(AppContainer, _React$Component); | ||
function AppContainer() { | ||
_classCallCheck(this, AppContainer); | ||
return _possibleConstructorReturn(this, (AppContainer.__proto__ || Object.getPrototypeOf(AppContainer)).apply(this, arguments)); | ||
} | ||
_createClass(AppContainer, [{ | ||
key: 'render', | ||
value: function render() { | ||
return _react2['default'].createElement(WrappedComponentA, _extends({}, this.props, { | ||
key: Math.random() // Require children to unmount on every render | ||
})); | ||
} | ||
}]); | ||
return AppContainer; | ||
}(_react2['default'].Component); | ||
var container = (0, _reactDom.render)(_react2['default'].createElement(AppContainer, null), node); | ||
(0, _expect2['default'])(document.querySelectorAll('style').length).to.be(1); | ||
(0, _expect2['default'])(document.querySelectorAll('style')[0].innerHTML).to.contain('color: red'); | ||
simulateHotReloading(container, WrappedComponentA, WrappedComponentB); | ||
(0, _expect2['default'])(document.querySelectorAll('style').length).to.be(1); | ||
(0, _expect2['default'])(document.querySelectorAll('style')[0].innerHTML).to.contain('color: green'); | ||
simulateHotReloading(container, WrappedComponentA, WrappedComponentC); | ||
(0, _expect2['default'])(document.querySelectorAll('style').length).to.be(1); | ||
(0, _expect2['default'])(document.querySelectorAll('style')[0].innerHTML).to.contain('color: blue'); | ||
}); | ||
}); | ||
}); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
524049
3524
0
32