Comparing version 10.0.0-alpha.21 to 10.0.0-alpha.22
@@ -1898,2 +1898,3 @@ (function (global, factory) { | ||
function prefixTransitionCallback(match, p1, p2) { | ||
if (p1 === 'var') return 'var'; | ||
if (p1 === 'all') return 'all'; | ||
@@ -1900,0 +1901,0 @@ if (p2 === 'all') return ', all'; |
@@ -1,1 +0,1 @@ | ||
!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jss")):"function"==typeof define&&define.amd?define(["exports","jss"],e):e((r=r||self).cssJss={},r.jss)}(this,function(r,e){"use strict";var t=Date.now(),n="fnValues"+t,o="fnStyle"+ ++t;var i="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};var l=function(r){var e,t=r.Symbol;return"function"==typeof t?t.observable?e=t.observable:(e=t("observable"),t.observable=e):e="@@observable",e}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof module?module:Function("return this")()),s=function(r){return r&&r[l]&&r===r[l]()};var a=/;\n/,u=function(r){"string"==typeof r.style&&(r.style=function(r){for(var e={},t=r.split(a),n=0;n<t.length;n++){var o=(t[n]||"").trim();if(o){var i=o.indexOf(":");if(-1!==i){var l=o.substr(0,i).trim(),s=o.substr(i+1).trim();e[l]=s}}}return e}(r.style))};function f(){return(f=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var d="@global",c="@global ",p=function(){function r(r,t,n){for(var o in this.type="global",this.at=d,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=r,this.options=n,this.rules=new e.RuleList(f({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=r.prototype;return t.getRule=function(r){return this.rules.get(r)},t.addRule=function(r,e,t){var n=this.rules.add(r,e,t);return this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(r){return this.rules.indexOf(r)},t.toString=function(){return this.rules.toString()},r}(),g=function(){function r(r,e,t){this.type="global",this.at=d,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=r,this.options=t;var n=r.substr(c.length);this.rule=t.jss.createRule(n,e,f({},t,{parent:this}))}return r.prototype.toString=function(r){return this.rule?this.rule.toString(r):""},r}(),y=/\s*,\s*/g;function b(r,e){for(var t=r.split(y),n="",o=0;o<t.length;o++)n+=e+" "+t[o].trim(),t[o+1]&&(n+=", ");return n}function m(){return{onCreateRule:function(r,e,t){if(!r)return null;if(r===d)return new p(r,e,t);if("@"===r[0]&&r.substr(0,c.length)===c)return new g(r,e,t);var n=t.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(t.scoped=!1),!1===t.scoped&&(t.selector=r),null},onProcessRule:function(r){"style"===r.type&&(function(r){var e=r.options,t=r.style,n=t?t[d]:null;if(n){for(var o in n)e.sheet.addRule(o,n[o],f({},e,{selector:b(o,r.selector)}));delete t[d]}}(r),function(r){var e=r.options,t=r.style;for(var n in t)if("@"===n[0]&&n.substr(0,d.length)===d){var o=b(n.substr(d.length),r.selector);e.sheet.addRule(o,t[n],f({},e,{selector:o})),delete t[n]}}(r))}}}var h=function(r){return r&&"object"==typeof r&&!Array.isArray(r)},v="extendCurrValue"+Date.now();function w(r,e,t,n){return void 0===n&&(n={}),function(r,e,t,n){if("string"!=typeof r.extend)if(Array.isArray(r.extend))for(var o=0;o<r.extend.length;o++)w(r.extend[o],e,t,n);else for(var i in r.extend)"extend"!==i?h(r.extend[i])?(i in n||(n[i]={}),w(r.extend[i],e,t,n[i])):n[i]=r.extend[i]:w(r.extend.extend,e,t,n);else{if(!t)return;var l=t.getRule(r.extend);if(!l)return;if(l===e)return;var s=l.options.parent;s&&w(s.rules.raw[r.extend],e,t,n)}}(r,e,t,n),function(r,e,t,n){for(var o in r)"extend"!==o&&(h(n[o])&&h(r[o])?w(r[o],e,t,n[o]):h(r[o])?n[o]=w(r[o],e,t):n[o]=r[o])}(r,e,t,n),n}function x(){return{onProcessStyle:function(r,e,t){return"extend"in r?w(r,e,t):r},onChangeValue:function(r,e,t){if("extend"!==e)return r;if(null==r||!1===r){for(var n in t[v])t.prop(n,null);return t[v]=null,null}if("object"==typeof r){for(var o in r)t.prop(o,r[o]);t[v]=r}return null}}}var k=/\s*,\s*/g,j=/&/g,S=/\$([\w-]+)/g;function P(){function r(r,e){return function(t,n){var o=r.getRule(n)||e&&e.getRule(n);return o?(o=o).selector:n}}function e(r,e){for(var t=e.split(k),n=r.split(k),o="",i=0;i<t.length;i++)for(var l=t[i],s=0;s<n.length;s++){var a=n[s];o&&(o+=", "),o+=-1!==a.indexOf("&")?a.replace(j,l):l+" "+a}return o}function t(r,e,t){if(t)return f({},t,{index:t.index+1});var n=r.options.nestingLevel;return n=void 0===n?1:n+1,f({},r.options,{nestingLevel:n,index:e.indexOf(r)+1})}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var l,s,a=o,u=a.options.parent;for(var d in n){var c=-1!==d.indexOf("&"),p="@"===d[0];if(c||p){if(l=t(a,u,l),c){var g=e(d,a.selector);s||(s=r(u,i)),g=g.replace(S,s),u.addRule(g,n[d],f({},l,{selector:g}))}else p&&u.addRule(d,{},l).addRule(a.key,n[d],{selector:a.selector});delete n[d]}}return n}}}function A(){return{onProcessStyle:function(r,e){return"composes"in r?(function r(e,t){if(!t)return!0;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(!r(e,t[n]))return!1;return!0}if(t.indexOf(" ")>-1)return r(e,t.split(" "));var o=e.options.parent;if("$"===t[0]){var i=o.getRule(t.substr(1));return!!i&&i!==e&&(o.classes[e.key]+=" "+o.classes[i.key],!0)}return o.classes[e.key]+=" "+t,!0}(e,r.composes),delete r.composes,r):r}}}var O=/[A-Z]/g,R=/^ms-/,C={};function z(r){return"-"+r.toLowerCase()}function W(r){if(C.hasOwnProperty(r))return C[r];var e=r.replace(O,z);return C[r]=R.test(e)?"-"+e:e}function E(r){var e={};for(var t in r){e[0===t.indexOf("--")?t:W(t)]=r[t]}return r.fallbacks&&(Array.isArray(r.fallbacks)?e.fallbacks=r.fallbacks.map(E):e.fallbacks=E(r.fallbacks)),e}function M(){return{onProcessStyle:function(r){if(Array.isArray(r)){for(var e=0;e<r.length;e++)r[e]=E(r[e]);return r}return E(r)},onChangeValue:function(r,e,t){if(0===e.indexOf("--"))return r;var n=W(e);return e===n?r:(t.prop(n,r),null)}}}var T=e.hasCSSTOMSupport?window.CSS.px:"px",V=e.hasCSSTOMSupport?window.CSS.ms:"ms",N=e.hasCSSTOMSupport?window.CSS.percent:"%";function F(r){var e=/(-[a-z])/g,t=function(r){return r[1].toUpperCase()},n={};for(var o in r)n[o]=r[o],n[o.replace(e,t)]=r[o];return n}var L=F({"animation-delay":V,"animation-duration":V,"background-position":T,"background-position-x":T,"background-position-y":T,"background-size":T,border:T,"border-bottom":T,"border-bottom-left-radius":T,"border-bottom-right-radius":T,"border-bottom-width":T,"border-left":T,"border-left-width":T,"border-radius":T,"border-right":T,"border-right-width":T,"border-top":T,"border-top-left-radius":T,"border-top-right-radius":T,"border-top-width":T,"border-width":T,margin:T,"margin-bottom":T,"margin-left":T,"margin-right":T,"margin-top":T,padding:T,"padding-bottom":T,"padding-left":T,"padding-right":T,"padding-top":T,"mask-position-x":T,"mask-position-y":T,"mask-size":T,height:T,width:T,"min-height":T,"max-height":T,"min-width":T,"max-width":T,bottom:T,left:T,top:T,right:T,"box-shadow":T,"text-shadow":T,"column-gap":T,"column-rule":T,"column-rule-width":T,"column-width":T,"font-size":T,"font-size-delta":T,"letter-spacing":T,"text-indent":T,"text-stroke":T,"text-stroke-width":T,"word-spacing":T,motion:T,"motion-offset":T,outline:T,"outline-offset":T,"outline-width":T,perspective:T,"perspective-origin-x":N,"perspective-origin-y":N,"transform-origin":N,"transform-origin-x":N,"transform-origin-y":N,"transform-origin-z":N,"transition-delay":V,"transition-duration":V,"vertical-align":T,"flex-basis":T,"shape-margin":T,size:T,grid:T,"grid-gap":T,"grid-row-gap":T,"grid-column-gap":T,"grid-template-rows":T,"grid-template-columns":T,"grid-auto-rows":T,"grid-auto-columns":T,"box-shadow-x":T,"box-shadow-y":T,"box-shadow-blur":T,"box-shadow-spread":T,"font-line-height":T,"text-shadow-x":T,"text-shadow-y":T,"text-shadow-blur":T});function U(r,e,t){if(!e)return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)e[n]=U(r,e[n],t);else if("object"==typeof e)if("fallbacks"===r)for(var o in e)e[o]=U(o,e[o],t);else for(var i in e)e[i]=U(r+"-"+i,e[i],t);else if("number"==typeof e)return t[r]?""+e+t[r]:L[r]?"function"==typeof L[r]?L[r](e).toString():""+e+L[r]:e.toString();return e}function D(r){void 0===r&&(r={});var e=F(r);return{onProcessStyle:function(r,t){if("style"!==t.type)return r;for(var n in r)r[n]=U(n,r[n],e);return r},onChangeValue:function(r,t){return U(t,r,e)}}}var G={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},H={position:!0,size:!0},I={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},J={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function $(r,e,t,n){return null==t[e]?r:0===r.length?[]:Array.isArray(r[0])?$(r[0],e,t,n):"object"==typeof r[0]?function(r,e,t){return r.map(function(r){return _(r,e,t,!1,!0)})}(r,e,n):[r]}function _(r,e,t,n,o){if(!I[e]&&!J[e])return[];var i=[];if(J[e]&&(r=function(r,e,t,n){for(var o in t){var i=t[o];if(void 0!==r[o]&&(n||!e.prop(i))){var l,s=q((l={},l[i]=r[o],l),e)[i];n?e.style.fallbacks[i]=s:e.style[i]=s}delete r[o]}return r}(r,t,J[e],n)),Object.keys(r).length)for(var l in I[e])r[l]?Array.isArray(r[l])?i.push(null===H[l]?r[l]:r[l].join(" ")):i.push(r[l]):null!=I[e][l]&&i.push(I[e][l]);return!i.length||o?i:[i]}function q(r,e,t){for(var n in r){var o=r[n];if(Array.isArray(o)){if(!Array.isArray(o[0])){if("fallbacks"===n){for(var i=0;i<r.fallbacks.length;i++)r.fallbacks[i]=q(r.fallbacks[i],e,!0);continue}r[n]=$(o,n,G,e),r[n].length||delete r[n]}}else if("object"==typeof o){if("fallbacks"===n){r.fallbacks=q(r.fallbacks,e,!0);continue}r[n]=_(o,n,e,t),r[n].length||delete r[n]}else""===r[n]&&delete r[n]}return r}function Z(){return{onProcessStyle:function(r,e){if(!r||"style"!==e.type)return r;if(Array.isArray(r)){for(var t=0;t<r.length;t++)r[t]=q(r[t],e);return r}return q(r,e)}}}var B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},K="object"===("undefined"==typeof window?"undefined":B(window))&&"object"===("undefined"==typeof document?"undefined":B(document))&&9===document.nodeType;function Q(r){return function(r){if(Array.isArray(r)){for(var e=0,t=new Array(r.length);e<r.length;e++)t[e]=r[e];return t}}(r)||function(r){if(Symbol.iterator in Object(r)||"[object Arguments]"===Object.prototype.toString.call(r))return Array.from(r)}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var X="",Y="",rr="",er="",tr=K&&"ontouchstart"in document.documentElement;if(K){var nr={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},or=document.createElement("p").style;for(var ir in nr)if(ir+"Transform"in or){X=ir,Y=nr[ir];break}"Webkit"===X&&"msHyphens"in or&&(X="ms",Y=nr.ms,er="edge"),"Webkit"===X&&"-apple-trailing-word"in or&&(rr="apple")}var lr={js:X,css:Y,vendor:rr,browser:er,isTouch:tr};var sr={noPrefill:["appearance"],supportedProperty:function(r){return"appearance"===r&&("ms"===lr.js?"-webkit-"+r:lr.css+r)}},ar=/[-\s]+(.)?/g;function ur(r,e){return e?e.toUpperCase():""}function fr(r){return r.replace(ar,ur)}function dr(r){return fr("-"+r)}var cr,pr={supportedProperty:function(r,e){return!!/^break-/.test(r)&&("Webkit"===lr.js?"WebkitColumn"+dr(r)in e&&lr.css+"column-"+r:"Moz"===lr.js&&("page"+dr(r)in e&&"page-"+r))}},gr={noPrefill:["color-adjust"],supportedProperty:function(r){return"color-adjust"===r&&("Webkit"===lr.js?lr.css+"print-"+r:r)}},yr={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},br=Object.keys(yr),mr=function(r){return lr.css+r},hr={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},vr=[sr,gr,{noPrefill:["mask"],supportedProperty:function(r,e){if(!/^mask/.test(r))return!1;if("Webkit"===lr.js){if(fr("mask-image")in e)return r;if(lr.js+dr("mask-image")in e)return lr.css+r}return r}},{noPrefill:["text-orientation"],supportedProperty:function(r){return"text-orientation"===r&&("apple"!==lr.vendor||lr.isTouch?r:lr.css+r)}},{noPrefill:["transform"],supportedProperty:function(r,e,t){return"transform"===r&&(t.transform?r:lr.css+r)}},{noPrefill:["transition"],supportedProperty:function(r,e,t){return"transition"===r&&(t.transition?r:lr.css+r)}},{noPrefill:["writing-mode"],supportedProperty:function(r){return"writing-mode"===r&&("Webkit"===lr.js||"ms"===lr.js?lr.css+r:r)}},pr,{supportedProperty:function(r,e){if(!/^(border|margin|padding)-inline/.test(r))return!1;if("Moz"===lr.js)return r;var t=r.replace("-inline","");return lr.js+dr(t)in e&&lr.css+t}},{supportedProperty:function(r,e){return fr(r)in e&&r}},{supportedProperty:function(r,e){var t=dr(r);return"-"===r[0]?r:"-"===r[0]&&"-"===r[1]?r:lr.js+t in e?lr.css+r:"Webkit"!==lr.js&&"Webkit"+t in e&&"-webkit-"+r}},{supportedProperty:function(r){return"scroll-snap"===r.substring(0,11)&&("ms"===lr.js?""+lr.css+r:r)}},{supportedProperty:function(r){return"overscroll-behavior"===r&&("ms"===lr.js?lr.css+"scroll-chaining":r)}},{supportedProperty:function(r,e){var t=hr[r];return!!t&&(lr.js+dr(t)in e&&lr.css+t)}},{supportedProperty:function(r,e,t){var n=t.multiple;if(br.indexOf(r)>-1){var o=yr[r];if(!Array.isArray(o))return lr.js+dr(o)in e&&lr.css+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(lr.js+dr(o[0])in e))return!1;return o.map(mr)}return!1}}],wr=vr.filter(function(r){return r.supportedProperty}).map(function(r){return r.supportedProperty}),xr=vr.filter(function(r){return r.noPrefill}).reduce(function(r,e){return r.push.apply(r,Q(e.noPrefill)),r},[]),kr={};if(K){cr=document.createElement("p");var jr=window.getComputedStyle(document.documentElement,"");for(var Sr in jr)isNaN(Sr)||(kr[jr[Sr]]=jr[Sr]);xr.forEach(function(r){return delete kr[r]})}function Pr(r,e){if(void 0===e&&(e={}),!cr)return r;if(null!=kr[r])return kr[r];"transition"!==r&&"transform"!==r||(e[r]=r in cr.style);for(var t=0;t<wr.length&&(kr[r]=wr[t](r,cr.style,e),!kr[r]);t++);try{cr.style[r]=""}catch(r){return!1}return kr[r]}var Ar,Or={},Rr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Cr=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function zr(r,e,t){return"all"===e?"all":"all"===t?", all":e?Pr(e):", "+Pr(t)}function Wr(r,e){var t=e;if(!Ar)return e;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=r+t;if(null!=Or[n])return Or[n];try{Ar.style[r]=t}catch(r){return Or[n]=!1,!1}if(Rr[r])t=t.replace(Cr,zr);else if(""===Ar.style[r]&&("-ms-flex"===(t=lr.css+t)&&(Ar.style[r]="-ms-flexbox"),Ar.style[r]=t,""===Ar.style[r]))return Or[n]=!1,!1;return Ar.style[r]="",Or[n]=t,Or[n]}function Er(){return{onProcessRule:function(r){if("keyframes"===r.type){var e=r;e.at="-"===(t=e.at)[1]?t:"ms"===lr.js?t:"@"+lr.css+"keyframes"+t.substr(10)}var t},onProcessStyle:function(r,t){if("style"!==t.type)return r;for(var n in r){var o=r[n],i=!1,l=Pr(n);l&&l!==n&&(i=!0);var s=!1,a=Wr(l,e.toCssValue(o));a&&a!==o&&(s=!0),(i||s)&&(i&&delete r[n],r[l||n]=a||o)}return r},onChangeValue:function(r,t){return Wr(t,e.toCssValue(r))||r}}}K&&(Ar=document.createElement("p"));var Mr,Tr,Vr,Nr=e.create((void 0===Mr&&(Mr={}),{plugins:[{onCreateRule:function(r,t,n){if("function"!=typeof t)return null;var i=e.createRule(r,{},n);return i[o]=t,i},onProcessStyle:function(r,e){if(n in e||o in e)return r;var t={};for(var i in r){var l=r[i];"function"==typeof l&&(delete r[i],t[i]=l)}return e[n]=t,r},onUpdate:function(r,e,t,i){var l=e,s=l[o];s&&(l.style=s(r));var a=l[n];if(a)for(var u in a)l.prop(u,a[u](r),i)}},(Vr=Mr.observable,{onCreateRule:function(r,t,n){if(!s(t))return null;var o=t,i=e.createRule(r,{},n);return o.subscribe(function(r){for(var e in r)i.prop(e,r[e],Vr)}),i},onProcessRule:function(r){if(!r||"style"===r.type){var e=r,t=e.style,n=function(r){var n=t[r];if(!s(n))return"continue";delete t[r],n.subscribe({next:function(t){e.prop(r,t,Vr)}})};for(var o in t)n(o)}}}),{onProcessRule:u},m(),x(),P(),A(),M(),D(Mr.defaultUnit),Z(),Er(),(Tr=function(r,e){return r.length===e.length?r>e?1:-1:r.length-e.length},{onProcessStyle:function(r,e){if("style"!==e.type)return r;for(var t={},n=Object.keys(r).sort(Tr),o=0;o<n.length;o++)t[n[o]]=r[n[o]];return t}})]})),Fr=function(r){void 0===r&&(r=Nr);var e,t=new Map,n=0,o=function(){return(!e||e.rules.index.length>1e4)&&(e=r.createStyleSheet().attach()),e};function i(){var r=arguments,e=JSON.stringify(r),i=t.get(e);if(i)return i.className;var l=[];for(var s in r){var a=r[s];if(Array.isArray(a))for(var u=0;u<a.length;u++)l.push(a[u]);else l.push(a)}for(var f={},d=[],c=0;c<l.length;c++){var p=l[c];if(p){if("string"==typeof p){var g=t.get(p);g&&(g.labels.length&&d.push.apply(d,g.labels),p=g.style)}p.label&&-1===d.indexOf(p.label)&&d.push(p.label),Object.assign(f,p)}}delete f.label;var y=(0===d.length?"css":d.join("-"))+"-"+n++;o().addRule(y,f);var b=o().classes[y],m={style:f,labels:d,className:b};return t.set(e,m),t.set(b,m),b}return i.getSheet=o,i},Lr=Fr();r.create=Fr,r.default=Lr,Object.defineProperty(r,"__esModule",{value:!0})}); | ||
!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jss")):"function"==typeof define&&define.amd?define(["exports","jss"],e):e((r=r||self).cssJss={},r.jss)}(this,function(r,e){"use strict";var t=Date.now(),n="fnValues"+t,o="fnStyle"+ ++t;var i="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};var l=function(r){var e,t=r.Symbol;return"function"==typeof t?t.observable?e=t.observable:(e=t("observable"),t.observable=e):e="@@observable",e}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof module?module:Function("return this")()),s=function(r){return r&&r[l]&&r===r[l]()};var a=/;\n/,u=function(r){"string"==typeof r.style&&(r.style=function(r){for(var e={},t=r.split(a),n=0;n<t.length;n++){var o=(t[n]||"").trim();if(o){var i=o.indexOf(":");if(-1!==i){var l=o.substr(0,i).trim(),s=o.substr(i+1).trim();e[l]=s}}}return e}(r.style))};function f(){return(f=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var d="@global",c="@global ",p=function(){function r(r,t,n){for(var o in this.type="global",this.at=d,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=r,this.options=n,this.rules=new e.RuleList(f({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=r.prototype;return t.getRule=function(r){return this.rules.get(r)},t.addRule=function(r,e,t){var n=this.rules.add(r,e,t);return this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(r){return this.rules.indexOf(r)},t.toString=function(){return this.rules.toString()},r}(),g=function(){function r(r,e,t){this.type="global",this.at=d,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=r,this.options=t;var n=r.substr(c.length);this.rule=t.jss.createRule(n,e,f({},t,{parent:this}))}return r.prototype.toString=function(r){return this.rule?this.rule.toString(r):""},r}(),y=/\s*,\s*/g;function b(r,e){for(var t=r.split(y),n="",o=0;o<t.length;o++)n+=e+" "+t[o].trim(),t[o+1]&&(n+=", ");return n}function m(){return{onCreateRule:function(r,e,t){if(!r)return null;if(r===d)return new p(r,e,t);if("@"===r[0]&&r.substr(0,c.length)===c)return new g(r,e,t);var n=t.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(t.scoped=!1),!1===t.scoped&&(t.selector=r),null},onProcessRule:function(r){"style"===r.type&&(function(r){var e=r.options,t=r.style,n=t?t[d]:null;if(n){for(var o in n)e.sheet.addRule(o,n[o],f({},e,{selector:b(o,r.selector)}));delete t[d]}}(r),function(r){var e=r.options,t=r.style;for(var n in t)if("@"===n[0]&&n.substr(0,d.length)===d){var o=b(n.substr(d.length),r.selector);e.sheet.addRule(o,t[n],f({},e,{selector:o})),delete t[n]}}(r))}}}var h=function(r){return r&&"object"==typeof r&&!Array.isArray(r)},v="extendCurrValue"+Date.now();function w(r,e,t,n){return void 0===n&&(n={}),function(r,e,t,n){if("string"!=typeof r.extend)if(Array.isArray(r.extend))for(var o=0;o<r.extend.length;o++)w(r.extend[o],e,t,n);else for(var i in r.extend)"extend"!==i?h(r.extend[i])?(i in n||(n[i]={}),w(r.extend[i],e,t,n[i])):n[i]=r.extend[i]:w(r.extend.extend,e,t,n);else{if(!t)return;var l=t.getRule(r.extend);if(!l)return;if(l===e)return;var s=l.options.parent;s&&w(s.rules.raw[r.extend],e,t,n)}}(r,e,t,n),function(r,e,t,n){for(var o in r)"extend"!==o&&(h(n[o])&&h(r[o])?w(r[o],e,t,n[o]):h(r[o])?n[o]=w(r[o],e,t):n[o]=r[o])}(r,e,t,n),n}function x(){return{onProcessStyle:function(r,e,t){return"extend"in r?w(r,e,t):r},onChangeValue:function(r,e,t){if("extend"!==e)return r;if(null==r||!1===r){for(var n in t[v])t.prop(n,null);return t[v]=null,null}if("object"==typeof r){for(var o in r)t.prop(o,r[o]);t[v]=r}return null}}}var k=/\s*,\s*/g,j=/&/g,S=/\$([\w-]+)/g;function P(){function r(r,e){return function(t,n){var o=r.getRule(n)||e&&e.getRule(n);return o?(o=o).selector:n}}function e(r,e){for(var t=e.split(k),n=r.split(k),o="",i=0;i<t.length;i++)for(var l=t[i],s=0;s<n.length;s++){var a=n[s];o&&(o+=", "),o+=-1!==a.indexOf("&")?a.replace(j,l):l+" "+a}return o}function t(r,e,t){if(t)return f({},t,{index:t.index+1});var n=r.options.nestingLevel;return n=void 0===n?1:n+1,f({},r.options,{nestingLevel:n,index:e.indexOf(r)+1})}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var l,s,a=o,u=a.options.parent;for(var d in n){var c=-1!==d.indexOf("&"),p="@"===d[0];if(c||p){if(l=t(a,u,l),c){var g=e(d,a.selector);s||(s=r(u,i)),g=g.replace(S,s),u.addRule(g,n[d],f({},l,{selector:g}))}else p&&u.addRule(d,{},l).addRule(a.key,n[d],{selector:a.selector});delete n[d]}}return n}}}function A(){return{onProcessStyle:function(r,e){return"composes"in r?(function r(e,t){if(!t)return!0;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(!r(e,t[n]))return!1;return!0}if(t.indexOf(" ")>-1)return r(e,t.split(" "));var o=e.options.parent;if("$"===t[0]){var i=o.getRule(t.substr(1));return!!i&&i!==e&&(o.classes[e.key]+=" "+o.classes[i.key],!0)}return o.classes[e.key]+=" "+t,!0}(e,r.composes),delete r.composes,r):r}}}var O=/[A-Z]/g,R=/^ms-/,C={};function z(r){return"-"+r.toLowerCase()}function W(r){if(C.hasOwnProperty(r))return C[r];var e=r.replace(O,z);return C[r]=R.test(e)?"-"+e:e}function E(r){var e={};for(var t in r){e[0===t.indexOf("--")?t:W(t)]=r[t]}return r.fallbacks&&(Array.isArray(r.fallbacks)?e.fallbacks=r.fallbacks.map(E):e.fallbacks=E(r.fallbacks)),e}function M(){return{onProcessStyle:function(r){if(Array.isArray(r)){for(var e=0;e<r.length;e++)r[e]=E(r[e]);return r}return E(r)},onChangeValue:function(r,e,t){if(0===e.indexOf("--"))return r;var n=W(e);return e===n?r:(t.prop(n,r),null)}}}var T=e.hasCSSTOMSupport?window.CSS.px:"px",V=e.hasCSSTOMSupport?window.CSS.ms:"ms",N=e.hasCSSTOMSupport?window.CSS.percent:"%";function F(r){var e=/(-[a-z])/g,t=function(r){return r[1].toUpperCase()},n={};for(var o in r)n[o]=r[o],n[o.replace(e,t)]=r[o];return n}var L=F({"animation-delay":V,"animation-duration":V,"background-position":T,"background-position-x":T,"background-position-y":T,"background-size":T,border:T,"border-bottom":T,"border-bottom-left-radius":T,"border-bottom-right-radius":T,"border-bottom-width":T,"border-left":T,"border-left-width":T,"border-radius":T,"border-right":T,"border-right-width":T,"border-top":T,"border-top-left-radius":T,"border-top-right-radius":T,"border-top-width":T,"border-width":T,margin:T,"margin-bottom":T,"margin-left":T,"margin-right":T,"margin-top":T,padding:T,"padding-bottom":T,"padding-left":T,"padding-right":T,"padding-top":T,"mask-position-x":T,"mask-position-y":T,"mask-size":T,height:T,width:T,"min-height":T,"max-height":T,"min-width":T,"max-width":T,bottom:T,left:T,top:T,right:T,"box-shadow":T,"text-shadow":T,"column-gap":T,"column-rule":T,"column-rule-width":T,"column-width":T,"font-size":T,"font-size-delta":T,"letter-spacing":T,"text-indent":T,"text-stroke":T,"text-stroke-width":T,"word-spacing":T,motion:T,"motion-offset":T,outline:T,"outline-offset":T,"outline-width":T,perspective:T,"perspective-origin-x":N,"perspective-origin-y":N,"transform-origin":N,"transform-origin-x":N,"transform-origin-y":N,"transform-origin-z":N,"transition-delay":V,"transition-duration":V,"vertical-align":T,"flex-basis":T,"shape-margin":T,size:T,grid:T,"grid-gap":T,"grid-row-gap":T,"grid-column-gap":T,"grid-template-rows":T,"grid-template-columns":T,"grid-auto-rows":T,"grid-auto-columns":T,"box-shadow-x":T,"box-shadow-y":T,"box-shadow-blur":T,"box-shadow-spread":T,"font-line-height":T,"text-shadow-x":T,"text-shadow-y":T,"text-shadow-blur":T});function U(r,e,t){if(!e)return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)e[n]=U(r,e[n],t);else if("object"==typeof e)if("fallbacks"===r)for(var o in e)e[o]=U(o,e[o],t);else for(var i in e)e[i]=U(r+"-"+i,e[i],t);else if("number"==typeof e)return t[r]?""+e+t[r]:L[r]?"function"==typeof L[r]?L[r](e).toString():""+e+L[r]:e.toString();return e}function D(r){void 0===r&&(r={});var e=F(r);return{onProcessStyle:function(r,t){if("style"!==t.type)return r;for(var n in r)r[n]=U(n,r[n],e);return r},onChangeValue:function(r,t){return U(t,r,e)}}}var G={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},H={position:!0,size:!0},I={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},J={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function $(r,e,t,n){return null==t[e]?r:0===r.length?[]:Array.isArray(r[0])?$(r[0],e,t,n):"object"==typeof r[0]?function(r,e,t){return r.map(function(r){return _(r,e,t,!1,!0)})}(r,e,n):[r]}function _(r,e,t,n,o){if(!I[e]&&!J[e])return[];var i=[];if(J[e]&&(r=function(r,e,t,n){for(var o in t){var i=t[o];if(void 0!==r[o]&&(n||!e.prop(i))){var l,s=q((l={},l[i]=r[o],l),e)[i];n?e.style.fallbacks[i]=s:e.style[i]=s}delete r[o]}return r}(r,t,J[e],n)),Object.keys(r).length)for(var l in I[e])r[l]?Array.isArray(r[l])?i.push(null===H[l]?r[l]:r[l].join(" ")):i.push(r[l]):null!=I[e][l]&&i.push(I[e][l]);return!i.length||o?i:[i]}function q(r,e,t){for(var n in r){var o=r[n];if(Array.isArray(o)){if(!Array.isArray(o[0])){if("fallbacks"===n){for(var i=0;i<r.fallbacks.length;i++)r.fallbacks[i]=q(r.fallbacks[i],e,!0);continue}r[n]=$(o,n,G,e),r[n].length||delete r[n]}}else if("object"==typeof o){if("fallbacks"===n){r.fallbacks=q(r.fallbacks,e,!0);continue}r[n]=_(o,n,e,t),r[n].length||delete r[n]}else""===r[n]&&delete r[n]}return r}function Z(){return{onProcessStyle:function(r,e){if(!r||"style"!==e.type)return r;if(Array.isArray(r)){for(var t=0;t<r.length;t++)r[t]=q(r[t],e);return r}return q(r,e)}}}var B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},K="object"===("undefined"==typeof window?"undefined":B(window))&&"object"===("undefined"==typeof document?"undefined":B(document))&&9===document.nodeType;function Q(r){return function(r){if(Array.isArray(r)){for(var e=0,t=new Array(r.length);e<r.length;e++)t[e]=r[e];return t}}(r)||function(r){if(Symbol.iterator in Object(r)||"[object Arguments]"===Object.prototype.toString.call(r))return Array.from(r)}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var X="",Y="",rr="",er="",tr=K&&"ontouchstart"in document.documentElement;if(K){var nr={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},or=document.createElement("p").style;for(var ir in nr)if(ir+"Transform"in or){X=ir,Y=nr[ir];break}"Webkit"===X&&"msHyphens"in or&&(X="ms",Y=nr.ms,er="edge"),"Webkit"===X&&"-apple-trailing-word"in or&&(rr="apple")}var lr={js:X,css:Y,vendor:rr,browser:er,isTouch:tr};var sr={noPrefill:["appearance"],supportedProperty:function(r){return"appearance"===r&&("ms"===lr.js?"-webkit-"+r:lr.css+r)}},ar=/[-\s]+(.)?/g;function ur(r,e){return e?e.toUpperCase():""}function fr(r){return r.replace(ar,ur)}function dr(r){return fr("-"+r)}var cr,pr={supportedProperty:function(r,e){return!!/^break-/.test(r)&&("Webkit"===lr.js?"WebkitColumn"+dr(r)in e&&lr.css+"column-"+r:"Moz"===lr.js&&("page"+dr(r)in e&&"page-"+r))}},gr={noPrefill:["color-adjust"],supportedProperty:function(r){return"color-adjust"===r&&("Webkit"===lr.js?lr.css+"print-"+r:r)}},yr={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},br=Object.keys(yr),mr=function(r){return lr.css+r},hr={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},vr=[sr,gr,{noPrefill:["mask"],supportedProperty:function(r,e){if(!/^mask/.test(r))return!1;if("Webkit"===lr.js){if(fr("mask-image")in e)return r;if(lr.js+dr("mask-image")in e)return lr.css+r}return r}},{noPrefill:["text-orientation"],supportedProperty:function(r){return"text-orientation"===r&&("apple"!==lr.vendor||lr.isTouch?r:lr.css+r)}},{noPrefill:["transform"],supportedProperty:function(r,e,t){return"transform"===r&&(t.transform?r:lr.css+r)}},{noPrefill:["transition"],supportedProperty:function(r,e,t){return"transition"===r&&(t.transition?r:lr.css+r)}},{noPrefill:["writing-mode"],supportedProperty:function(r){return"writing-mode"===r&&("Webkit"===lr.js||"ms"===lr.js?lr.css+r:r)}},pr,{supportedProperty:function(r,e){if(!/^(border|margin|padding)-inline/.test(r))return!1;if("Moz"===lr.js)return r;var t=r.replace("-inline","");return lr.js+dr(t)in e&&lr.css+t}},{supportedProperty:function(r,e){return fr(r)in e&&r}},{supportedProperty:function(r,e){var t=dr(r);return"-"===r[0]?r:"-"===r[0]&&"-"===r[1]?r:lr.js+t in e?lr.css+r:"Webkit"!==lr.js&&"Webkit"+t in e&&"-webkit-"+r}},{supportedProperty:function(r){return"scroll-snap"===r.substring(0,11)&&("ms"===lr.js?""+lr.css+r:r)}},{supportedProperty:function(r){return"overscroll-behavior"===r&&("ms"===lr.js?lr.css+"scroll-chaining":r)}},{supportedProperty:function(r,e){var t=hr[r];return!!t&&(lr.js+dr(t)in e&&lr.css+t)}},{supportedProperty:function(r,e,t){var n=t.multiple;if(br.indexOf(r)>-1){var o=yr[r];if(!Array.isArray(o))return lr.js+dr(o)in e&&lr.css+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(lr.js+dr(o[0])in e))return!1;return o.map(mr)}return!1}}],wr=vr.filter(function(r){return r.supportedProperty}).map(function(r){return r.supportedProperty}),xr=vr.filter(function(r){return r.noPrefill}).reduce(function(r,e){return r.push.apply(r,Q(e.noPrefill)),r},[]),kr={};if(K){cr=document.createElement("p");var jr=window.getComputedStyle(document.documentElement,"");for(var Sr in jr)isNaN(Sr)||(kr[jr[Sr]]=jr[Sr]);xr.forEach(function(r){return delete kr[r]})}function Pr(r,e){if(void 0===e&&(e={}),!cr)return r;if(null!=kr[r])return kr[r];"transition"!==r&&"transform"!==r||(e[r]=r in cr.style);for(var t=0;t<wr.length&&(kr[r]=wr[t](r,cr.style,e),!kr[r]);t++);try{cr.style[r]=""}catch(r){return!1}return kr[r]}var Ar,Or={},Rr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Cr=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function zr(r,e,t){return"var"===e?"var":"all"===e?"all":"all"===t?", all":e?Pr(e):", "+Pr(t)}function Wr(r,e){var t=e;if(!Ar)return e;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=r+t;if(null!=Or[n])return Or[n];try{Ar.style[r]=t}catch(r){return Or[n]=!1,!1}if(Rr[r])t=t.replace(Cr,zr);else if(""===Ar.style[r]&&("-ms-flex"===(t=lr.css+t)&&(Ar.style[r]="-ms-flexbox"),Ar.style[r]=t,""===Ar.style[r]))return Or[n]=!1,!1;return Ar.style[r]="",Or[n]=t,Or[n]}function Er(){return{onProcessRule:function(r){if("keyframes"===r.type){var e=r;e.at="-"===(t=e.at)[1]?t:"ms"===lr.js?t:"@"+lr.css+"keyframes"+t.substr(10)}var t},onProcessStyle:function(r,t){if("style"!==t.type)return r;for(var n in r){var o=r[n],i=!1,l=Pr(n);l&&l!==n&&(i=!0);var s=!1,a=Wr(l,e.toCssValue(o));a&&a!==o&&(s=!0),(i||s)&&(i&&delete r[n],r[l||n]=a||o)}return r},onChangeValue:function(r,t){return Wr(t,e.toCssValue(r))||r}}}K&&(Ar=document.createElement("p"));var Mr,Tr,Vr,Nr=e.create((void 0===Mr&&(Mr={}),{plugins:[{onCreateRule:function(r,t,n){if("function"!=typeof t)return null;var i=e.createRule(r,{},n);return i[o]=t,i},onProcessStyle:function(r,e){if(n in e||o in e)return r;var t={};for(var i in r){var l=r[i];"function"==typeof l&&(delete r[i],t[i]=l)}return e[n]=t,r},onUpdate:function(r,e,t,i){var l=e,s=l[o];s&&(l.style=s(r));var a=l[n];if(a)for(var u in a)l.prop(u,a[u](r),i)}},(Vr=Mr.observable,{onCreateRule:function(r,t,n){if(!s(t))return null;var o=t,i=e.createRule(r,{},n);return o.subscribe(function(r){for(var e in r)i.prop(e,r[e],Vr)}),i},onProcessRule:function(r){if(!r||"style"===r.type){var e=r,t=e.style,n=function(r){var n=t[r];if(!s(n))return"continue";delete t[r],n.subscribe({next:function(t){e.prop(r,t,Vr)}})};for(var o in t)n(o)}}}),{onProcessRule:u},m(),x(),P(),A(),M(),D(Mr.defaultUnit),Z(),Er(),(Tr=function(r,e){return r.length===e.length?r>e?1:-1:r.length-e.length},{onProcessStyle:function(r,e){if("style"!==e.type)return r;for(var t={},n=Object.keys(r).sort(Tr),o=0;o<n.length;o++)t[n[o]]=r[n[o]];return t}})]})),Fr=function(r){void 0===r&&(r=Nr);var e,t=new Map,n=0,o=function(){return(!e||e.rules.index.length>1e4)&&(e=r.createStyleSheet().attach()),e};function i(){var r=arguments,e=JSON.stringify(r),i=t.get(e);if(i)return i.className;var l=[];for(var s in r){var a=r[s];if(Array.isArray(a))for(var u=0;u<a.length;u++)l.push(a[u]);else l.push(a)}for(var f={},d=[],c=0;c<l.length;c++){var p=l[c];if(p){if("string"==typeof p){var g=t.get(p);g&&(g.labels.length&&d.push.apply(d,g.labels),p=g.style)}p.label&&-1===d.indexOf(p.label)&&d.push(p.label),Object.assign(f,p)}}delete f.label;var y=(0===d.length?"css":d.join("-"))+"-"+n++;o().addRule(y,f);var b=o().classes[y],m={style:f,labels:d,className:b};return t.set(e,m),t.set(b,m),b}return i.getSheet=o,i},Lr=Fr();r.create=Fr,r.default=Lr,Object.defineProperty(r,"__esModule",{value:!0})}); |
{ | ||
"name": "css-jss", | ||
"description": "Implements css() interface on top of JSS", | ||
"version": "10.0.0-alpha.21", | ||
"version": "10.0.0-alpha.22", | ||
"license": "MIT", | ||
@@ -41,6 +41,6 @@ "homepage": "https://cssinjs.org/", | ||
"@babel/runtime": "^7.3.1", | ||
"jss": "10.0.0-alpha.21", | ||
"jss-preset-default": "10.0.0-alpha.21" | ||
"jss": "10.0.0-alpha.22", | ||
"jss-preset-default": "10.0.0-alpha.22" | ||
}, | ||
"gitHead": "329a8bcf7d5524f69af8ad37147d5ea7531b6a9f" | ||
"gitHead": "9427ea592d80acc5e1db33af11950da20ca34c08" | ||
} |
@@ -12,3 +12,3 @@ # css-jss | ||
See our website [css-jss](https://cssinjs.org/css-jss?v=v10.0.0-alpha.21) for more information. | ||
See our website [css-jss](https://cssinjs.org/css-jss?v=v10.0.0-alpha.22) for more information. | ||
@@ -15,0 +15,0 @@ ## Install |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
320088
5817
+ Addedjss@10.0.0-alpha.22(transitive)
+ Addedjss-plugin-camel-case@10.0.0-alpha.22(transitive)
+ Addedjss-plugin-compose@10.0.0-alpha.22(transitive)
+ Addedjss-plugin-default-unit@10.0.0-alpha.22(transitive)
+ Addedjss-plugin-expand@10.0.0-alpha.22(transitive)
+ Addedjss-plugin-extend@10.0.0-alpha.22(transitive)
+ Addedjss-plugin-global@10.0.0-alpha.22(transitive)
+ Addedjss-plugin-nested@10.0.0-alpha.22(transitive)
+ Addedjss-plugin-props-sort@10.0.0-alpha.22(transitive)
+ Addedjss-plugin-rule-value-function@10.0.0-alpha.22(transitive)
+ Addedjss-plugin-rule-value-observable@10.0.0-alpha.22(transitive)
+ Addedjss-plugin-template@10.0.0-alpha.22(transitive)
+ Addedjss-plugin-vendor-prefixer@10.0.0-alpha.22(transitive)
+ Addedjss-preset-default@10.0.0-alpha.22(transitive)
- Removedjss@10.0.0-alpha.21(transitive)
- Removedjss-plugin-camel-case@10.0.0-alpha.21(transitive)
- Removedjss-plugin-compose@10.0.0-alpha.21(transitive)
- Removedjss-plugin-default-unit@10.0.0-alpha.21(transitive)
- Removedjss-plugin-expand@10.0.0-alpha.21(transitive)
- Removedjss-plugin-extend@10.0.0-alpha.21(transitive)
- Removedjss-plugin-global@10.0.0-alpha.21(transitive)
- Removedjss-plugin-nested@10.0.0-alpha.21(transitive)
- Removedjss-plugin-props-sort@10.0.0-alpha.21(transitive)
- Removedjss-plugin-rule-value-function@10.0.0-alpha.21(transitive)
- Removedjss-plugin-rule-value-observable@10.0.0-alpha.21(transitive)
- Removedjss-plugin-template@10.0.0-alpha.21(transitive)
- Removedjss-plugin-vendor-prefixer@10.0.0-alpha.21(transitive)
- Removedjss-preset-default@10.0.0-alpha.21(transitive)
Updatedjss@10.0.0-alpha.22