vue-emotion
Advanced tools
Comparing version 0.4.1 to 0.4.2
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
@@ -148,2 +150,3 @@ | ||
module.exports = index; | ||
Object.keys(emotion).forEach(function (key) { exports[key] = emotion[key]; }); | ||
exports.default = index; |
import { css, getRegisteredStyles } from 'emotion'; | ||
export * from 'emotion'; | ||
import assign from 'nano-assign'; | ||
@@ -3,0 +4,0 @@ import { STYLES_KEY } from 'emotion-utils'; |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global.emotionVue = factory()); | ||
}(this, (function () { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(factory((global.emotionVue = {}))); | ||
}(this, (function (exports) { 'use strict'; | ||
@@ -1331,3 +1331,3 @@ function _typeof(obj) { | ||
} | ||
console.log(interpolation); | ||
switch (typeof interpolation) { | ||
@@ -1713,4 +1713,16 @@ case 'boolean': | ||
return index$1; | ||
exports.default = index$1; | ||
exports.flush = flush; | ||
exports.hydrate = hydrate; | ||
exports.cx = cx; | ||
exports.merge = merge; | ||
exports.getRegisteredStyles = getRegisteredStyles; | ||
exports.injectGlobal = injectGlobal; | ||
exports.keyframes = keyframes; | ||
exports.css = css; | ||
exports.sheet = sheet; | ||
exports.caches = caches; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
}))); |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.emotionVue=t()}(this,function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t=function e(t){function a(e,t,a){var c=t.trim().split(v);t=c;var s=c.length,i=e.length;switch(i){case 0:case 1:var n=0;for(e=0===i?"":e[0]+" ";n<s;++n)t[n]=r(e,t[n],a,i).trim();break;default:var o=n=0;for(t=[];n<s;++n)for(var l=0;l<i;++l)t[o++]=r(e[l]+" ",c[n],a,i).trim()}return t}function r(e,t,a,r){var c=t.charCodeAt(0);switch(33>c&&(c=(t=t.trim()).charCodeAt(0)),c){case 38:switch(P+r){case 0:case 1:if(0===e.trim().length)break;default:return t.replace(m,"$1"+e.trim())}break;case 58:switch(t.charCodeAt(1)){case 103:if(0<B&&0<P)return t.replace(w,"$1").replace(m,"$1"+Y);break;default:return e.trim()+t.replace(m,"$1"+e.trim())}default:if(0<a*P&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function c(e,t,a,r){var i=e+";",n=2*t+3*a+4*r;if(944===n){e=i.length;var o=i.indexOf(":",9)+1;switch(t=i.substring(0,o).trim(),a=i.substring(o,e-1).trim(),i.charCodeAt(9)*Q){case 0:break;case 45:if(110!==i.charCodeAt(10))break;default:for(o=r=0,e=(i=a.split((a="",p))).length;r<e;o=0,++r){for(var l=(n=i[r]).split(g);n=l[o];){var f=n.charCodeAt(0);if(1===Q&&(64<f&&90>f||96<f&&123>f||95===f||45===f&&45!==n.charCodeAt(1)))switch(isNaN(parseFloat(n))+(-1!==n.indexOf("("))){case 1:switch(n){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:n+=U}}l[o++]=n}a+=(0===r?"":",")+l.join(" ")}}return a=t+a+";",1===F||2===F&&s(a,1)?"-webkit-"+a+a:a}if(0===F||2===F&&!s(i,1))return i;switch(n){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:return 45===i.charCodeAt(8)?"-webkit-"+i+i:i;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(o=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+o+i;case 1005:return d.test(i)?i.replace(h,":-webkit-")+i.replace(h,":-moz-")+i:i;case 1e3:switch(t=(o=i.substring(13).trim()).indexOf("-")+1,o.charCodeAt(0)+o.charCodeAt(t)){case 226:o=i.replace($,"tb");break;case 232:o=i.replace($,"tb-rl");break;case 220:o=i.replace($,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+o+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,n=(o=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|o.charCodeAt(7))){case 203:if(111>o.charCodeAt(8))break;case 115:i=i.replace(o,"-webkit-"+o)+";"+i;break;case 207:case 102:i=i.replace(o,"-webkit-"+(102<n?"inline-":"")+"box")+";"+i.replace(o,"-webkit-"+o)+";"+i.replace(o,"-ms-"+o+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return"-webkit-"+i+"-webkit-box-"+(o=i.replace("-items",""))+"-ms-flex-"+o+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(R,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(R,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===T.test(e))return 115===(o=e.substring(e.indexOf(":")+1)).charCodeAt(0)?c(e.replace("stretch","fill-available"),t,a,r).replace(":fill-available",":stretch"):i.replace(o,"-webkit-"+o)+i.replace(o,"-moz-"+o.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===a+r&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(b,"$1-webkit-$2")+i}return i}function s(e,t){var a=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?a:10);return a=e.substring(a+1,e.length-1),J(2!==t?r:r.replace(I,"$1"),a,t)}function i(e,t){var a=c(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return a!==t+";"?a.replace(z," or ($1)").substring(4):"("+t+")"}function n(e,t,a,r,c,s,i,n,o,f){for(var u,h=0,d=t;h<Z;++h)switch(u=V[h].call(l,e,d,a,r,c,s,i,n,o,f)){case void 0:case!1:case!0:case null:break;default:d=u}switch(d){case void 0:case!1:case!0:case null:case t:break;default:return d}}function o(e){for(var t in e){var a=e[t];switch(t){case"keyframe":Q=0|a;break;case"global":B=0|a;break;case"cascade":P=0|a;break;case"compress":D=0|a;break;case"semicolon":L=0|a;break;case"preserve":q=0|a;break;case"prefix":J=null,a?"function"!=typeof a?F=1:(F=2,J=a):F=0}}return o}function l(t,r){if(void 0!==this&&this.constructor===l)return e(t);var o=t,h=o.charCodeAt(0);if(33>h&&(h=(o=o.trim()).charCodeAt(0)),0<Q&&(U=o.replace(y,91===h?"":"-")),h=1,1===P?Y=o:X=o,o=[Y],0<Z){var d=n(-1,r,o,o,G,W,0,0,0,0);void 0!==d&&"string"==typeof d&&(r=d)}var b=function e(t,r,o,l,h){for(var d,b,p,g,v=0,m=0,w=0,y=0,S=0,_=0,O=0,j=0,$=0,z=0,R=0,I=0,T=b=0,D=0,V=0,J=o.length,ee=J-1,te="",ae="",re="",ce="";I<J;){if(p=o.charCodeAt(I),I===ee&&0!==m+y+w+v&&(0!==m&&(p=47===m?10:47),y=w=v=0,J++,ee++),0===m+y+w+v){if(I===ee&&(0<b&&(te=te.replace(u,"")),0<te.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:te+=o.charAt(I)}p=59}if(1===T)switch(p){case 123:case 125:case 59:case 34:case 39:case 40:case 41:case 44:T=0;case 9:case 13:case 10:case 32:break;default:for(T=0,V=I,d=p,I--,p=59;V<J;)switch(o.charCodeAt(V++)){case 10:case 13:case 59:++I,p=d,V=J;break;case 58:0<b&&(++I,p=d);case 123:V=J}}switch(p){case 123:for(d=(te=te.trim()).charCodeAt(0),j=1,V=++I;I<J;){switch(p=o.charCodeAt(I)){case 123:j++;break;case 125:j--}if(0===j)break;I++}switch(z=o.substring(V,I),0===d&&(d=(te=te.replace(f,"").trim()).charCodeAt(0)),d){case 64:switch(0<b&&(te=te.replace(u,"")),b=te.charCodeAt(1)){case 100:case 109:case 115:case 45:d=r;break;default:d=H}if(V=(z=e(r,d,z,b,h+1)).length,0<q&&0===V&&(V=te.length),0<Z&&(g=n(3,z,d=a(H,te,D),r,G,W,V,b,h,l),te=d.join(""),void 0!==g&&0===(V=(z=g.trim()).length)&&(b=0,z="")),0<V)switch(b){case 115:te=te.replace(N,i);case 100:case 109:case 45:z=te+"{"+z+"}";break;case 107:z=(te=te.replace(A,"$1 $2"+(0<Q?U:"")))+"{"+z+"}",z=1===F||2===F&&s("@"+z,3)?"@-webkit-"+z+"@"+z:"@"+z;break;default:z=te+z,112===l&&(ae+=z,z="")}else z="";break;default:z=e(r,a(r,te,D),z,l,h+1)}re+=z,z=D=b=R=T=$=0,te="",p=o.charCodeAt(++I);break;case 125:case 59:if(1<(V=(te=(0<b?te.replace(u,""):te).trim()).length))switch(0===R&&(d=te.charCodeAt(0),45===d||96<d&&123>d)&&(V=(te=te.replace(" ",":")).length),0<Z&&void 0!==(g=n(1,te,r,t,G,W,ae.length,l,h,l))&&0===(V=(te=g.trim()).length)&&(te="\0\0"),d=te.charCodeAt(0),b=te.charCodeAt(1),d+b){case 0:break;case 169:case 163:ce+=te+o.charAt(I);break;default:58!==te.charCodeAt(V-1)&&(ae+=c(te,d,b,te.charCodeAt(2)))}D=b=R=T=$=0,te="",p=o.charCodeAt(++I)}}switch(p){case 13:case 10:if(0===m+y+w+v+L)switch(O){case 41:case 39:case 34:case 64:case 126:case 62:case 42:case 43:case 47:case 45:case 58:case 44:case 59:case 123:case 125:break;default:0<R&&(T=1)}47===m?m=0:0===P+$&&(b=1,te+="\0"),0<Z*K&&n(0,te,r,t,G,W,ae.length,l,h,l),W=1,G++;break;case 59:case 125:if(0===m+y+w+v){W++;break}default:switch(W++,d=o.charAt(I),p){case 9:case 32:if(0===y+v+m)switch(S){case 44:case 58:case 9:case 32:d="";break;default:32!==p&&(d=" ")}break;case 0:d="\\0";break;case 12:d="\\f";break;case 11:d="\\v";break;case 38:0===y+m+v&&0<P&&(b=D=1,d="\f"+d);break;case 108:if(0===y+m+v+M&&0<R)switch(I-R){case 2:112===S&&58===o.charCodeAt(I-3)&&(M=S);case 8:111===_&&(M=_)}break;case 58:0===y+m+v&&(R=I);break;case 44:0===m+w+y+v&&(b=1,d+="\r");break;case 34:case 39:0===m&&(y=y===p?0:0===y?p:y);break;case 91:0===y+m+w&&v++;break;case 93:0===y+m+w&&v--;break;case 41:0===y+m+v&&w--;break;case 40:if(0===y+m+v){if(0===$)switch(2*S+3*_){case 533:break;default:j=0,$=1}w++}break;case 64:0===m+w+y+v+R+z&&(z=1);break;case 42:case 47:if(!(0<y+v+w))switch(m){case 0:switch(2*p+3*o.charCodeAt(I+1)){case 235:m=47;break;case 220:V=I,m=42}break;case 42:47===p&&42===S&&(33===o.charCodeAt(V+2)&&(ae+=o.substring(V,I+1)),d="",m=0)}}if(0===m){if(0===P+y+v+z&&107!==l&&59!==p)switch(p){case 44:case 126:case 62:case 43:case 41:case 40:if(0===$){switch(S){case 9:case 32:case 10:case 13:d+="\0";break;default:d="\0"+d+(44===p?"":"\0")}b=1}else switch(p){case 40:$=++j;break;case 41:0==($=--j)&&(b=1,d+="\0")}break;case 9:case 32:switch(S){case 0:case 123:case 125:case 59:case 44:case 12:case 9:case 32:case 10:case 13:break;default:0===$&&(b=1,d+="\0")}}te+=d,32!==p&&9!==p&&(O=p)}}_=S,S=p,I++}if(V=ae.length,0<q&&0===V&&0===re.length&&0===r[0].length==0&&(109!==l||1===r.length&&(0<P?X:Y)===r[0])&&(V=r.join(",").length+2),0<V){if(0===P&&107!==l){for(o=0,v=r.length,m=Array(v);o<v;++o){for(_="",O=0,J=(S=r[o].split(k)).length;O<J;++O)if(!(0===(j=(y=S[O]).length)&&1<J)){if(I=_.charCodeAt(_.length-1),D=y.charCodeAt(0),w="",0!==O)switch(I){case 42:case 126:case 62:case 43:case 32:case 40:break;default:w=" "}switch(D){case 38:y=w+X;case 126:case 62:case 43:case 32:case 41:case 40:break;case 91:y=w+y+X;break;case 58:switch(2*y.charCodeAt(1)+3*y.charCodeAt(2)){case 530:if(0<B){y=w+y.substring(8,j-1);break}default:(1>O||1>S[O-1].length)&&(y=w+X+y)}break;case 44:w="";default:y=1<j&&0<y.indexOf(":")?w+y.replace(E,"$1"+X+"$2"):w+y+X}_+=y}m[o]=_.replace(u,"").trim()}r=m}if(d=r,0<Z&&void 0!==(g=n(2,ae,d,t,G,W,V,l,h,l))&&0===(ae=g).length)return ce+ae+re;if(ae=d.join(",")+"{"+ae+"}",0!=F*M){switch(2!==F||s(ae,2)||(M=0),M){case 111:ae=ae.replace(x,":-moz-$1")+ae;break;case 112:ae=ae.replace(C,"::-webkit-input-$1")+ae.replace(C,"::-moz-$1")+ae.replace(C,":-ms-input-$1")+ae}M=0}}return ce+ae+re}(H,o,r,0,0);return 0<Z&&(void 0!==(d=n(-2,b,o,o,G,W,b.length,0,0,0))&&"string"!=typeof(b=d)&&(h=0)),X=Y=U="",M=0,W=G=1,0==D*h?b:b.replace(u,"").replace(S,"").replace(_,"$1").replace(O,"$1").replace(j," ")}var f=/^\0+/g,u=/[\0\r\f]/g,h=/: */g,d=/zoo|gra/,b=/([,: ])(transform)/g,p=/,+\s*(?![^(]*[)])/g,g=/ +\s*(?![^(]*[)])/g,k=/ *[\0] */g,v=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,w=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,y=/\W+/g,A=/@(k\w+)\s*(\S*)\s*/,C=/::(place)/g,x=/:(read-only)/g,S=/\s+(?=[{\];=:>])/g,_=/([[}=:>])\s+/g,O=/(\{[^{]+?);(?=\})/g,j=/\s{2,}/g,E=/([^\(])(:+) */g,$=/[svh]\w+-[tblr]{2}/,N=/\(\s*(.*)\s*\)/g,z=/([\s\S]*?);/g,R=/-self|flex-/g,I=/[^]*?(:[rp][el]a[\w-]+)[^]*/,T=/stretch|:\s*\w+\-(?:conte|avail)/,W=1,G=1,M=0,P=1,F=1,B=1,D=0,L=0,q=0,H=[],V=[],Z=0,J=null,K=0,Q=1,U="",X="",Y="";return l.use=function e(t){switch(t){case void 0:case null:Z=V.length=0;break;default:switch(t.constructor){case Array:for(var a=0,r=t.length;a<r;++a)e(t[a]);break;case Function:V[Z++]=t;break;case Boolean:K=0|!!t}}return e},l.set=o,void 0!==t&&o(t),l},a="__emotion_styles",r={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var c,s=(function(e,t){e.exports=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(a,r,c,s,i,n,o,l,f,u){switch(a){case 1:if(0===f&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(c[0]+r),"";default:return r+(0===u?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}}(c={exports:{}},c.exports),c.exports),i=/[A-Z]|^ms/g,n=function(e){var t={};return function(a){return void 0===t[a]&&(t[a]=e(a)),t[a]}}(function(e){return e.replace(i,"-$&").toLowerCase()}),o=function(e,t){return null==t||"boolean"==typeof t?"":1===r[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},l=function e(t){for(var a=t.length,r=0,c="";r<a;r++){var s=t[r];if(null!=s){var i=void 0;switch(typeof s){case"boolean":break;case"function":i=e([s()]);break;case"object":if(Array.isArray(s))i=e(s);else for(var n in i="",s)s[n]&&n&&(i&&(i+=" "),i+=n);break;default:i=s}i&&(c&&(c+=" "),c+=i)}}return c},f="undefined"!=typeof document;function u(e){var t=document.createElement("style");return t.type="text/css",t.setAttribute("data-emotion",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),(void 0!==e.container?e.container:document.head).appendChild(t),t}function h(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}function d(){if(this.injected)throw new Error("already injected!");this.tags[0]=u(this.opts),this.injected=!0}function b(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e}function p(e,t){if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(this.tags[this.tags.length-1]);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else{var r=u(this.opts);this.tags.push(r),r.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(u(this.opts))}function g(e){return e.parentNode.removeChild(e)}function k(){this.tags.forEach(g),this.tags=[],this.ctr=0,this.injected=!1}var v=function(){var e=h.prototype;return e.inject=d,e.speedy=b,e.insert=p,e.flush=k,h}();var m=function(e,r){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===r&&(r={});var c,i=r.key||"css",u=s(function(e){c+=e,f&&b.insert(e,g)}),h={keyframe:!1,global:!1,prefix:void 0===r.prefix||r.prefix,semicolon:!0},d={registered:{},inserted:{},nonce:r.nonce,key:i},b=new v(r);f&&b.inject();var p=new t(h);p.use(r.stylisPlugins)(u);var g="";function k(e,t){if(null==e)return"";switch(console.log(e),typeof e){case"boolean":return"";case"function":if(void 0!==e[a]){var r=e.toString();return r}return k.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return function(e){if(w.has(e))return w.get(e);var t="";return Array.isArray(e)?e.forEach(function(e){t+=k.call(this,e,!1)},this):Object.keys(e).forEach(function(a){"object"!=typeof e[a]?void 0!==d.registered[e[a]]?t+=a+"{"+d.registered[e[a]]+"}":t+=n(a)+":"+o(a,e[a])+";":t+=a+"{"+k.call(this,e[a],!1)+"}"},this),w.set(e,t),t}.call(this,e);default:var c=d.registered[e];return!1===t&&void 0!==c?c:e}}var m,w=new WeakMap,y=/label:\s*([^\s;\n{]+)\s*;/g,A=function(e){var t,a=!0,r="",c="";null==e||void 0===e.raw?(a=!1,r+=k.call(this,e,!1)):r+=e[0];for(var s=arguments.length,i=new Array(s>1?s-1:0),n=1;n<s;n++)i[n-1]=arguments[n];return i.forEach(function(t,c){r+=k.call(this,t,46===r.charCodeAt(r.length-1)),!0===a&&void 0!==e[c+1]&&(r+=e[c+1])},this),r=r.replace(y,function(e,t){return c+="-"+t,""}),m=function(e,t){for(var a,r=e.length,c=t^r,s=0;r>=4;)a=1540483477*(65535&(a=255&e.charCodeAt(s)|(255&e.charCodeAt(++s))<<8|(255&e.charCodeAt(++s))<<16|(255&e.charCodeAt(++s))<<24))+((1540483477*(a>>>16)&65535)<<16),c=1540483477*(65535&c)+((1540483477*(c>>>16)&65535)<<16)^(a=1540483477*(65535&(a^=a>>>24))+((1540483477*(a>>>16)&65535)<<16)),r-=4,++s;switch(r){case 3:c^=(255&e.charCodeAt(s+2))<<16;case 2:c^=(255&e.charCodeAt(s+1))<<8;case 1:c=1540483477*(65535&(c^=255&e.charCodeAt(s)))+((1540483477*(c>>>16)&65535)<<16)}return c=1540483477*(65535&(c^=c>>>13))+((1540483477*(c>>>16)&65535)<<16),(c^=c>>>15)>>>0}(t=r+c,t.length).toString(36)+c,r};function C(e,t){void 0===d.inserted[m]&&(c="",p(e,t),d.inserted[m]=c)}var x=function(){var e=A.apply(this,arguments),t=i+"-"+m;return void 0===d.registered[t]&&(d.registered[t]=e),C("."+t,e),t};function S(e,t){var a="";return t.split(" ").forEach(function(t){void 0!==d.registered[t]?e.push(t):a+=t+" "}),a}function _(e,t){var a=[],r=S(a,e);return a.length<2?e:r+x(a,t)}function O(e){d.inserted[e]=!0}if(f){var j=document.querySelectorAll("[data-emotion-"+i+"]");Array.prototype.forEach.call(j,function(e){b.tags[0].parentNode.insertBefore(e,b.tags[0]),e.getAttribute("data-emotion-"+i).split(" ").forEach(O)})}var E={flush:function(){f&&(b.flush(),b.inject()),d.inserted={},d.registered={}},hydrate:function(e){e.forEach(O)},cx:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return _(l(t))},merge:_,getRegisteredStyles:S,injectGlobal:function(){C("",A.apply(this,arguments))},keyframes:function(){var e=A.apply(this,arguments),t="animation-"+m;return C("","@keyframes "+t+"{"+e+"}"),t},css:x,sheet:b,caches:d};return e.__SECRET_EMOTION__=E,E}("undefined"!=typeof global?global:{}),w=(m.flush,m.hydrate,m.cx,m.merge,m.getRegisteredStyles),y=(m.injectGlobal,m.keyframes,m.css),A=(m.sheet,m.caches,function(e){for(var t=arguments,a=1;a<arguments.length;a++)for(var r in arguments[a])e[r]=t[a][r];return e});return function(t,r){var c,s,i,n;void 0!==r&&(c=r.e,s=r.label,i=r.target,n=r.props);var o=t.__emotion_real===t,l=void 0===c&&o&&t.__emotion_base||t;return function(){var r=o&&void 0!==t[a]?t[a].slice(0):[];if(void 0!==s&&r.push("label:".concat(s,";")),void 0===c){for(var f=arguments.length,u=new Array(f),h=0;h<f;h++)u[h]=arguments[h];if(null===u[0]||void 0===u[0].raw)r.push.apply(r,u);else{r.push(u[0][0]);for(var d=u.length,b=1;b<d;b++)r.push(u[b],u[0][b])}}var p={name:"Styled".concat(t.name||s||"Component"),functional:!0,inject:{theme:{default:null}},props:n,render:function(a,s){var n,o=s.data,l=s.children,f=s.props,u=s.injections,h="",d=[],b=(n=o.class,Array.isArray(n)?n.join(" "):"object"===e(n)?Object.keys(n).filter(function(e){return Boolean(n[e])}).join(" "):n),p={};for(var g in o.attrs)"$"!==g[0]&&(p[g]=o.attrs[g]);if(b&&(h+=void 0===c?w(d,b):"".concat(b," ")),void 0===c){var k={mergedProps:A({theme:u.theme},f)};h+=y.apply(k,r.concat(d))}else h+=c;return void 0!==i&&(h+=" ".concat(i)),a(t,A({},o,{attrs:p,class:h}),l)}};return p[a]=r,p.__emotion_base=l,p.__emotion_real=p,Object.defineProperty(p,"toString",{enumerable:!1,value:function(){return".".concat(i)}}),p}}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.emotionVue={})}(this,function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=function e(t){function a(e,t,a){var c=t.trim().split(v);t=c;var s=c.length,i=e.length;switch(i){case 0:case 1:var n=0;for(e=0===i?"":e[0]+" ";n<s;++n)t[n]=r(e,t[n],a,i).trim();break;default:var o=n=0;for(t=[];n<s;++n)for(var l=0;l<i;++l)t[o++]=r(e[l]+" ",c[n],a,i).trim()}return t}function r(e,t,a,r){var c=t.charCodeAt(0);switch(33>c&&(c=(t=t.trim()).charCodeAt(0)),c){case 38:switch(W+r){case 0:case 1:if(0===e.trim().length)break;default:return t.replace(m,"$1"+e.trim())}break;case 58:switch(t.charCodeAt(1)){case 103:if(0<B&&0<W)return t.replace(w,"$1").replace(m,"$1"+Y);break;default:return e.trim()+t.replace(m,"$1"+e.trim())}default:if(0<a*W&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function c(e,t,a,r){var i=e+";",n=2*t+3*a+4*r;if(944===n){e=i.length;var o=i.indexOf(":",9)+1;switch(t=i.substring(0,o).trim(),a=i.substring(o,e-1).trim(),i.charCodeAt(9)*Q){case 0:break;case 45:if(110!==i.charCodeAt(10))break;default:for(o=r=0,e=(i=a.split((a="",p))).length;r<e;o=0,++r){for(var l=(n=i[r]).split(g);n=l[o];){var f=n.charCodeAt(0);if(1===Q&&(64<f&&90>f||96<f&&123>f||95===f||45===f&&45!==n.charCodeAt(1)))switch(isNaN(parseFloat(n))+(-1!==n.indexOf("("))){case 1:switch(n){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:n+=U}}l[o++]=n}a+=(0===r?"":",")+l.join(" ")}}return a=t+a+";",1===F||2===F&&s(a,1)?"-webkit-"+a+a:a}if(0===F||2===F&&!s(i,1))return i;switch(n){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:return 45===i.charCodeAt(8)?"-webkit-"+i+i:i;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(o=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+o+i;case 1005:return d.test(i)?i.replace(h,":-webkit-")+i.replace(h,":-moz-")+i:i;case 1e3:switch(t=(o=i.substring(13).trim()).indexOf("-")+1,o.charCodeAt(0)+o.charCodeAt(t)){case 226:o=i.replace($,"tb");break;case 232:o=i.replace($,"tb-rl");break;case 220:o=i.replace($,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+o+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,n=(o=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|o.charCodeAt(7))){case 203:if(111>o.charCodeAt(8))break;case 115:i=i.replace(o,"-webkit-"+o)+";"+i;break;case 207:case 102:i=i.replace(o,"-webkit-"+(102<n?"inline-":"")+"box")+";"+i.replace(o,"-webkit-"+o)+";"+i.replace(o,"-ms-"+o+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return"-webkit-"+i+"-webkit-box-"+(o=i.replace("-items",""))+"-ms-flex-"+o+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(z,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(z,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===T.test(e))return 115===(o=e.substring(e.indexOf(":")+1)).charCodeAt(0)?c(e.replace("stretch","fill-available"),t,a,r).replace(":fill-available",":stretch"):i.replace(o,"-webkit-"+o)+i.replace(o,"-moz-"+o.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===a+r&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(b,"$1-webkit-$2")+i}return i}function s(e,t){var a=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?a:10);return a=e.substring(a+1,e.length-1),J(2!==t?r:r.replace(I,"$1"),a,t)}function i(e,t){var a=c(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return a!==t+";"?a.replace(R," or ($1)").substring(4):"("+t+")"}function n(e,t,a,r,c,s,i,n,o,f){for(var u,h=0,d=t;h<Z;++h)switch(u=V[h].call(l,e,d,a,r,c,s,i,n,o,f)){case void 0:case!1:case!0:case null:break;default:d=u}switch(d){case void 0:case!1:case!0:case null:case t:break;default:return d}}function o(e){for(var t in e){var a=e[t];switch(t){case"keyframe":Q=0|a;break;case"global":B=0|a;break;case"cascade":W=0|a;break;case"compress":D=0|a;break;case"semicolon":L=0|a;break;case"preserve":q=0|a;break;case"prefix":J=null,a?"function"!=typeof a?F=1:(F=2,J=a):F=0}}return o}function l(t,r){if(void 0!==this&&this.constructor===l)return e(t);var o=t,h=o.charCodeAt(0);if(33>h&&(h=(o=o.trim()).charCodeAt(0)),0<Q&&(U=o.replace(y,91===h?"":"-")),h=1,1===W?Y=o:X=o,o=[Y],0<Z){var d=n(-1,r,o,o,M,G,0,0,0,0);void 0!==d&&"string"==typeof d&&(r=d)}var b=function e(t,r,o,l,h){for(var d,b,p,g,v=0,m=0,w=0,y=0,_=0,S=0,O=0,j=0,$=0,R=0,z=0,I=0,T=b=0,D=0,V=0,J=o.length,ee=J-1,te="",ae="",re="",ce="";I<J;){if(p=o.charCodeAt(I),I===ee&&0!==m+y+w+v&&(0!==m&&(p=47===m?10:47),y=w=v=0,J++,ee++),0===m+y+w+v){if(I===ee&&(0<b&&(te=te.replace(u,"")),0<te.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:te+=o.charAt(I)}p=59}if(1===T)switch(p){case 123:case 125:case 59:case 34:case 39:case 40:case 41:case 44:T=0;case 9:case 13:case 10:case 32:break;default:for(T=0,V=I,d=p,I--,p=59;V<J;)switch(o.charCodeAt(V++)){case 10:case 13:case 59:++I,p=d,V=J;break;case 58:0<b&&(++I,p=d);case 123:V=J}}switch(p){case 123:for(d=(te=te.trim()).charCodeAt(0),j=1,V=++I;I<J;){switch(p=o.charCodeAt(I)){case 123:j++;break;case 125:j--}if(0===j)break;I++}switch(R=o.substring(V,I),0===d&&(d=(te=te.replace(f,"").trim()).charCodeAt(0)),d){case 64:switch(0<b&&(te=te.replace(u,"")),b=te.charCodeAt(1)){case 100:case 109:case 115:case 45:d=r;break;default:d=H}if(V=(R=e(r,d,R,b,h+1)).length,0<q&&0===V&&(V=te.length),0<Z&&(g=n(3,R,d=a(H,te,D),r,M,G,V,b,h,l),te=d.join(""),void 0!==g&&0===(V=(R=g.trim()).length)&&(b=0,R="")),0<V)switch(b){case 115:te=te.replace(N,i);case 100:case 109:case 45:R=te+"{"+R+"}";break;case 107:R=(te=te.replace(A,"$1 $2"+(0<Q?U:"")))+"{"+R+"}",R=1===F||2===F&&s("@"+R,3)?"@-webkit-"+R+"@"+R:"@"+R;break;default:R=te+R,112===l&&(ae+=R,R="")}else R="";break;default:R=e(r,a(r,te,D),R,l,h+1)}re+=R,R=D=b=z=T=$=0,te="",p=o.charCodeAt(++I);break;case 125:case 59:if(1<(V=(te=(0<b?te.replace(u,""):te).trim()).length))switch(0===z&&(d=te.charCodeAt(0),45===d||96<d&&123>d)&&(V=(te=te.replace(" ",":")).length),0<Z&&void 0!==(g=n(1,te,r,t,M,G,ae.length,l,h,l))&&0===(V=(te=g.trim()).length)&&(te="\0\0"),d=te.charCodeAt(0),b=te.charCodeAt(1),d+b){case 0:break;case 169:case 163:ce+=te+o.charAt(I);break;default:58!==te.charCodeAt(V-1)&&(ae+=c(te,d,b,te.charCodeAt(2)))}D=b=z=T=$=0,te="",p=o.charCodeAt(++I)}}switch(p){case 13:case 10:if(0===m+y+w+v+L)switch(O){case 41:case 39:case 34:case 64:case 126:case 62:case 42:case 43:case 47:case 45:case 58:case 44:case 59:case 123:case 125:break;default:0<z&&(T=1)}47===m?m=0:0===W+$&&(b=1,te+="\0"),0<Z*K&&n(0,te,r,t,M,G,ae.length,l,h,l),G=1,M++;break;case 59:case 125:if(0===m+y+w+v){G++;break}default:switch(G++,d=o.charAt(I),p){case 9:case 32:if(0===y+v+m)switch(_){case 44:case 58:case 9:case 32:d="";break;default:32!==p&&(d=" ")}break;case 0:d="\\0";break;case 12:d="\\f";break;case 11:d="\\v";break;case 38:0===y+m+v&&0<W&&(b=D=1,d="\f"+d);break;case 108:if(0===y+m+v+P&&0<z)switch(I-z){case 2:112===_&&58===o.charCodeAt(I-3)&&(P=_);case 8:111===S&&(P=S)}break;case 58:0===y+m+v&&(z=I);break;case 44:0===m+w+y+v&&(b=1,d+="\r");break;case 34:case 39:0===m&&(y=y===p?0:0===y?p:y);break;case 91:0===y+m+w&&v++;break;case 93:0===y+m+w&&v--;break;case 41:0===y+m+v&&w--;break;case 40:if(0===y+m+v){if(0===$)switch(2*_+3*S){case 533:break;default:j=0,$=1}w++}break;case 64:0===m+w+y+v+z+R&&(R=1);break;case 42:case 47:if(!(0<y+v+w))switch(m){case 0:switch(2*p+3*o.charCodeAt(I+1)){case 235:m=47;break;case 220:V=I,m=42}break;case 42:47===p&&42===_&&(33===o.charCodeAt(V+2)&&(ae+=o.substring(V,I+1)),d="",m=0)}}if(0===m){if(0===W+y+v+R&&107!==l&&59!==p)switch(p){case 44:case 126:case 62:case 43:case 41:case 40:if(0===$){switch(_){case 9:case 32:case 10:case 13:d+="\0";break;default:d="\0"+d+(44===p?"":"\0")}b=1}else switch(p){case 40:$=++j;break;case 41:0==($=--j)&&(b=1,d+="\0")}break;case 9:case 32:switch(_){case 0:case 123:case 125:case 59:case 44:case 12:case 9:case 32:case 10:case 13:break;default:0===$&&(b=1,d+="\0")}}te+=d,32!==p&&9!==p&&(O=p)}}S=_,_=p,I++}if(V=ae.length,0<q&&0===V&&0===re.length&&0===r[0].length==0&&(109!==l||1===r.length&&(0<W?X:Y)===r[0])&&(V=r.join(",").length+2),0<V){if(0===W&&107!==l){for(o=0,v=r.length,m=Array(v);o<v;++o){for(S="",O=0,J=(_=r[o].split(k)).length;O<J;++O)if(!(0===(j=(y=_[O]).length)&&1<J)){if(I=S.charCodeAt(S.length-1),D=y.charCodeAt(0),w="",0!==O)switch(I){case 42:case 126:case 62:case 43:case 32:case 40:break;default:w=" "}switch(D){case 38:y=w+X;case 126:case 62:case 43:case 32:case 41:case 40:break;case 91:y=w+y+X;break;case 58:switch(2*y.charCodeAt(1)+3*y.charCodeAt(2)){case 530:if(0<B){y=w+y.substring(8,j-1);break}default:(1>O||1>_[O-1].length)&&(y=w+X+y)}break;case 44:w="";default:y=1<j&&0<y.indexOf(":")?w+y.replace(E,"$1"+X+"$2"):w+y+X}S+=y}m[o]=S.replace(u,"").trim()}r=m}if(d=r,0<Z&&void 0!==(g=n(2,ae,d,t,M,G,V,l,h,l))&&0===(ae=g).length)return ce+ae+re;if(ae=d.join(",")+"{"+ae+"}",0!=F*P){switch(2!==F||s(ae,2)||(P=0),P){case 111:ae=ae.replace(x,":-moz-$1")+ae;break;case 112:ae=ae.replace(C,"::-webkit-input-$1")+ae.replace(C,"::-moz-$1")+ae.replace(C,":-ms-input-$1")+ae}P=0}}return ce+ae+re}(H,o,r,0,0);return 0<Z&&(void 0!==(d=n(-2,b,o,o,M,G,b.length,0,0,0))&&"string"!=typeof(b=d)&&(h=0)),X=Y=U="",P=0,G=M=1,0==D*h?b:b.replace(u,"").replace(_,"").replace(S,"$1").replace(O,"$1").replace(j," ")}var f=/^\0+/g,u=/[\0\r\f]/g,h=/: */g,d=/zoo|gra/,b=/([,: ])(transform)/g,p=/,+\s*(?![^(]*[)])/g,g=/ +\s*(?![^(]*[)])/g,k=/ *[\0] */g,v=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,w=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,y=/\W+/g,A=/@(k\w+)\s*(\S*)\s*/,C=/::(place)/g,x=/:(read-only)/g,_=/\s+(?=[{\];=:>])/g,S=/([[}=:>])\s+/g,O=/(\{[^{]+?);(?=\})/g,j=/\s{2,}/g,E=/([^\(])(:+) */g,$=/[svh]\w+-[tblr]{2}/,N=/\(\s*(.*)\s*\)/g,R=/([\s\S]*?);/g,z=/-self|flex-/g,I=/[^]*?(:[rp][el]a[\w-]+)[^]*/,T=/stretch|:\s*\w+\-(?:conte|avail)/,G=1,M=1,P=0,W=1,F=1,B=1,D=0,L=0,q=0,H=[],V=[],Z=0,J=null,K=0,Q=1,U="",X="",Y="";return l.use=function e(t){switch(t){case void 0:case null:Z=V.length=0;break;default:switch(t.constructor){case Array:for(var a=0,r=t.length;a<r;++a)e(t[a]);break;case Function:V[Z++]=t;break;case Boolean:K=0|!!t}}return e},l.set=o,void 0!==t&&o(t),l},r="__emotion_styles",c={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var s,i=(function(e,t){e.exports=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(a,r,c,s,i,n,o,l,f,u){switch(a){case 1:if(0===f&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(c[0]+r),"";default:return r+(0===u?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}}(s={exports:{}},s.exports),s.exports),n=/[A-Z]|^ms/g,o=function(e){var t={};return function(a){return void 0===t[a]&&(t[a]=e(a)),t[a]}}(function(e){return e.replace(n,"-$&").toLowerCase()}),l=function(e,t){return null==t||"boolean"==typeof t?"":1===c[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},f=function e(t){for(var a=t.length,r=0,c="";r<a;r++){var s=t[r];if(null!=s){var i=void 0;switch(typeof s){case"boolean":break;case"function":i=e([s()]);break;case"object":if(Array.isArray(s))i=e(s);else for(var n in i="",s)s[n]&&n&&(i&&(i+=" "),i+=n);break;default:i=s}i&&(c&&(c+=" "),c+=i)}}return c},u="undefined"!=typeof document;function h(e){var t=document.createElement("style");return t.type="text/css",t.setAttribute("data-emotion",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),(void 0!==e.container?e.container:document.head).appendChild(t),t}function d(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}function b(){if(this.injected)throw new Error("already injected!");this.tags[0]=h(this.opts),this.injected=!0}function p(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e}function g(e,t){if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(this.tags[this.tags.length-1]);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else{var r=h(this.opts);this.tags.push(r),r.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(h(this.opts))}function k(e){return e.parentNode.removeChild(e)}function v(){this.tags.forEach(k),this.tags=[],this.ctr=0,this.injected=!1}var m=function(){var e=d.prototype;return e.inject=b,e.speedy=p,e.insert=g,e.flush=v,d}();var w=function(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var c,s=t.key||"css",n=i(function(e){c+=e,u&&b.insert(e,g)}),h={keyframe:!1,global:!1,prefix:void 0===t.prefix||t.prefix,semicolon:!0},d={registered:{},inserted:{},nonce:t.nonce,key:s},b=new m(t);u&&b.inject();var p=new a(h);p.use(t.stylisPlugins)(n);var g="";function k(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e[r]){var a=e.toString();return a}return k.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return function(e){if(w.has(e))return w.get(e);var t="";return Array.isArray(e)?e.forEach(function(e){t+=k.call(this,e,!1)},this):Object.keys(e).forEach(function(a){"object"!=typeof e[a]?void 0!==d.registered[e[a]]?t+=a+"{"+d.registered[e[a]]+"}":t+=o(a)+":"+l(a,e[a])+";":t+=a+"{"+k.call(this,e[a],!1)+"}"},this),w.set(e,t),t}.call(this,e);default:var c=d.registered[e];return!1===t&&void 0!==c?c:e}}var v,w=new WeakMap,y=/label:\s*([^\s;\n{]+)\s*;/g,A=function(e){var t,a=!0,r="",c="";null==e||void 0===e.raw?(a=!1,r+=k.call(this,e,!1)):r+=e[0];for(var s=arguments.length,i=new Array(s>1?s-1:0),n=1;n<s;n++)i[n-1]=arguments[n];return i.forEach(function(t,c){r+=k.call(this,t,46===r.charCodeAt(r.length-1)),!0===a&&void 0!==e[c+1]&&(r+=e[c+1])},this),r=r.replace(y,function(e,t){return c+="-"+t,""}),v=function(e,t){for(var a,r=e.length,c=t^r,s=0;r>=4;)a=1540483477*(65535&(a=255&e.charCodeAt(s)|(255&e.charCodeAt(++s))<<8|(255&e.charCodeAt(++s))<<16|(255&e.charCodeAt(++s))<<24))+((1540483477*(a>>>16)&65535)<<16),c=1540483477*(65535&c)+((1540483477*(c>>>16)&65535)<<16)^(a=1540483477*(65535&(a^=a>>>24))+((1540483477*(a>>>16)&65535)<<16)),r-=4,++s;switch(r){case 3:c^=(255&e.charCodeAt(s+2))<<16;case 2:c^=(255&e.charCodeAt(s+1))<<8;case 1:c=1540483477*(65535&(c^=255&e.charCodeAt(s)))+((1540483477*(c>>>16)&65535)<<16)}return c=1540483477*(65535&(c^=c>>>13))+((1540483477*(c>>>16)&65535)<<16),(c^=c>>>15)>>>0}(t=r+c,t.length).toString(36)+c,r};function C(e,t){void 0===d.inserted[v]&&(c="",p(e,t),d.inserted[v]=c)}var x=function(){var e=A.apply(this,arguments),t=s+"-"+v;return void 0===d.registered[t]&&(d.registered[t]=e),C("."+t,e),t};function _(e,t){var a="";return t.split(" ").forEach(function(t){void 0!==d.registered[t]?e.push(t):a+=t+" "}),a}function S(e,t){var a=[],r=_(a,e);return a.length<2?e:r+x(a,t)}function O(e){d.inserted[e]=!0}if(u){var j=document.querySelectorAll("[data-emotion-"+s+"]");Array.prototype.forEach.call(j,function(e){b.tags[0].parentNode.insertBefore(e,b.tags[0]),e.getAttribute("data-emotion-"+s).split(" ").forEach(O)})}var E={flush:function(){u&&(b.flush(),b.inject()),d.inserted={},d.registered={}},hydrate:function(e){e.forEach(O)},cx:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return S(f(t))},merge:S,getRegisteredStyles:_,injectGlobal:function(){C("",A.apply(this,arguments))},keyframes:function(){var e=A.apply(this,arguments),t="animation-"+v;return C("","@keyframes "+t+"{"+e+"}"),t},css:x,sheet:b,caches:d};return e.__SECRET_EMOTION__=E,E}("undefined"!=typeof global?global:{}),y=w.flush,A=w.hydrate,C=w.cx,x=w.merge,_=w.getRegisteredStyles,S=w.injectGlobal,O=w.keyframes,j=w.css,E=w.sheet,$=w.caches,N=function(e){for(var t=arguments,a=1;a<arguments.length;a++)for(var r in arguments[a])e[r]=t[a][r];return e};e.default=function(e,a){var c,s,i,n;void 0!==a&&(c=a.e,s=a.label,i=a.target,n=a.props);var o=e.__emotion_real===e,l=void 0===c&&o&&e.__emotion_base||e;return function(){var a=o&&void 0!==e[r]?e[r].slice(0):[];if(void 0!==s&&a.push("label:".concat(s,";")),void 0===c){for(var f=arguments.length,u=new Array(f),h=0;h<f;h++)u[h]=arguments[h];if(null===u[0]||void 0===u[0].raw)a.push.apply(a,u);else{a.push(u[0][0]);for(var d=u.length,b=1;b<d;b++)a.push(u[b],u[0][b])}}var p={name:"Styled".concat(e.name||s||"Component"),functional:!0,inject:{theme:{default:null}},props:n,render:function(r,s){var n,o=s.data,l=s.children,f=s.props,u=s.injections,h="",d=[],b=(n=o.class,Array.isArray(n)?n.join(" "):"object"===t(n)?Object.keys(n).filter(function(e){return Boolean(n[e])}).join(" "):n),p={};for(var g in o.attrs)"$"!==g[0]&&(p[g]=o.attrs[g]);if(b&&(h+=void 0===c?_(d,b):"".concat(b," ")),void 0===c){var k={mergedProps:N({theme:u.theme},f)};h+=j.apply(k,a.concat(d))}else h+=c;return void 0!==i&&(h+=" ".concat(i)),r(e,N({},o,{attrs:p,class:h}),l)}};return p[r]=a,p.__emotion_base=l,p.__emotion_real=p,Object.defineProperty(p,"toString",{enumerable:!1,value:function(){return".".concat(i)}}),p}},e.flush=y,e.hydrate=A,e.cx=C,e.merge=x,e.getRegisteredStyles=_,e.injectGlobal=S,e.keyframes=O,e.css=j,e.sheet=E,e.caches=$,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=vue-emotion.min.js.map |
{ | ||
"name": "vue-emotion", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Seamlessly use emotion (CSS-in-JS) with Vue.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149912
1742
1