Socket
Socket
Sign inDemoInstall

react-loading-skeleton

Package Overview
Dependencies
86
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.1 to 1.0.0

2

dist/bundle.js

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

!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.Skeleton=t(require("react")):e.Skeleton=t(e._)}(window,function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skeletonClass=t.skeletonKeyframes=t.defaultHighlightColor=t.defaultBaseColor=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=u(["\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n"],["\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n"]),i=u(["\n background-color: ",";\n background-image: linear-gradient(\n 90deg,\n ",",\n ",",\n ","\n );\n background-size: 200px 100%;\n background-repeat: no-repeat;\n border-radius: 4px;\n display: inline-block;\n line-height: 1;\n width: 100%;\n"],["\n background-color: ",";\n background-image: linear-gradient(\n 90deg,\n ",",\n ",",\n ","\n );\n background-size: 200px 100%;\n background-repeat: no-repeat;\n border-radius: 4px;\n display: inline-block;\n line-height: 1;\n width: 100%;\n"]),o=r(1),c=function(e){return e&&e.__esModule?e:{default:e}}(o),s=r(2);function u(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var l=t.defaultBaseColor="#eee",f=t.defaultHighlightColor="#f5f5f5",d=t.skeletonKeyframes=(0,s.keyframes)(a),h=t.skeletonClass=(0,s.css)(i,l,l,f,l),p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,o.Component),n(t,[{key:"render",value:function(){for(var e=[],t=0;t<this.props.count;t++){var r={animation:d+" "+String(this.props.duration)+"s ease-in-out infinite"};null!=this.props.width&&(r.width=this.props.width),e.push(c.default.createElement("span",{key:t,className:h,style:r},"‌"))}var n=this.props.wrapper;return c.default.createElement("span",null,n?e.map(function(e,t){return c.default.createElement(n,{key:t},e,"‌")}):e)}}]),t}();p.defaultProps={count:1,duration:1.2,width:null,wrapper:null},t.default=p},function(t,r){t.exports=e},function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"flush",function(){return o}),r.d(t,"hydrate",function(){return c}),r.d(t,"cx",function(){return s}),r.d(t,"merge",function(){return u}),r.d(t,"getRegisteredStyles",function(){return l}),r.d(t,"injectGlobal",function(){return f}),r.d(t,"keyframes",function(){return d}),r.d(t,"css",function(){return h}),r.d(t,"sheet",function(){return p}),r.d(t,"caches",function(){return b});var n=r(4),a=void 0!==e?e:{},i=Object(n.a)(a),o=i.flush,c=i.hydrate,s=i.cx,u=i.merge,l=i.getRegisteredStyles,f=i.injectGlobal,d=i.keyframes,h=i.css,p=i.sheet,b=i.caches}.call(this,r(7))},function(e,t,r){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,a,i,o,c,s,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(a[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}}()},function(e,t,r){"use strict";var n=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}},a={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 i=function(e){for(var t,r=e.length,n=r^r,a=0;r>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++a;switch(r){case 3:n^=(255&e.charCodeAt(a+2))<<16;case 2:n^=(255&e.charCodeAt(a+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(a)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),((n^=n>>>15)>>>0).toString(36)},o=function e(t){function r(e,t,r){var a=t.trim().split(b);t=a;var i=a.length,o=e.length;switch(o){case 0:case 1:var c=0;for(e=0===o?"":e[0]+" ";c<i;++c)t[c]=n(e,t[c],r).trim();break;default:var s=c=0;for(t=[];c<i;++c)for(var u=0;u<o;++u)t[s++]=n(e[u]+" ",a[c],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,r,n){var o=e+";",c=2*t+3*r+4*n;if(944===c){e=o.indexOf(":",9)+1;var s=o.substring(e,o.length-1).trim();return s=o.substring(0,e).trim()+s+";",1===P||2===P&&i(s,1)?"-webkit-"+s+s:s}if(0===P||2===P&&!i(o,1))return o;switch(c){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(_,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(s=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+s+o;case 1005:return h.test(o)?o.replace(d,":-webkit-")+o.replace(d,":-moz-")+o:o;case 1e3:switch(t=(s=o.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=o.replace(y,"tb");break;case 232:s=o.replace(y,"tb-rl");break;case 220:s=o.replace(y,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+s+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,c=(s=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:o=o.replace(s,"-webkit-"+s)+";"+o;break;case 207:case 102:o=o.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+o.replace(s,"-webkit-"+s)+";"+o.replace(s,"-ms-"+s+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return"-webkit-"+o+"-webkit-box-"+(s=o.replace("-items",""))+"-ms-flex-"+s+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(A,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(A,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):o.replace(s,"-webkit-"+s)+o.replace(s,"-moz-"+s.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===r+n&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+o}return o}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),T(2!==t?n:n.replace(x,"$1"),r,t)}function o(e,t){var r=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(C," or ($1)").substring(4):"("+t+")"}function c(e,t,r,n,a,i,o,c,s,l){for(var f,d=0,h=t;d<M;++d)switch(f=$[d].call(u,e,h,r,n,a,i,o,c,s,l)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?P=1:(P=2,T=e):P=0),s}function u(t,n){if(void 0!==this&&this.constructor===u)return e(t);var s=t;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<M){var d=c(-1,n,s,s,S,j,0,0,0,0);void 0!==d&&"string"==typeof d&&(n=d)}var h=function e(t,n,s,u,d){for(var h,p,b,g,y,C=0,A=0,x=0,O=0,_=0,$=0,T=b=h=0,N=0,I=0,G=0,B=0,W=s.length,F=W-1,H="",q="",D="",K="";N<W;){if(p=s.charCodeAt(N),N===F&&0!==A+O+x+C&&(0!==A&&(p=47===A?10:47),O=x=C=0,W++,F++),0===A+O+x+C){if(N===F&&(0<I&&(H=H.replace(f,"")),0<H.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:H+=s.charAt(N)}p=59}switch(p){case 123:for(h=(H=H.trim()).charCodeAt(0),b=1,B=++N;N<W;){switch(p=s.charCodeAt(N)){case 123:b++;break;case 125:b--;break;case 47:switch(p=s.charCodeAt(N+1)){case 42:case 47:e:{for(T=N+1;T<F;++T)switch(s.charCodeAt(T)){case 47:if(42===p&&42===s.charCodeAt(T-1)&&N+2!==T){N=T+1;break e}break;case 10:if(47===p){N=T+1;break e}}N=T}}break;case 91:p++;case 40:p++;case 34:case 39:for(;N++<F&&s.charCodeAt(N)!==p;);}if(0===b)break;N++}switch(b=s.substring(B,N),0===h&&(h=(H=H.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<I&&(H=H.replace(f,"")),p=H.charCodeAt(1)){case 100:case 109:case 115:case 45:I=n;break;default:I=z}if(B=(b=e(n,I,b,p,d+1)).length,0<M&&(y=c(3,b,I=r(z,H,G),n,S,j,B,p,d,u),H=I.join(""),void 0!==y&&0===(B=(b=y.trim()).length)&&(p=0,b="")),0<B)switch(p){case 115:H=H.replace(m,o);case 100:case 109:case 45:b=H+"{"+b+"}";break;case 107:b=(H=H.replace(k,"$1 $2"))+"{"+b+"}",b=1===P||2===P&&i("@"+b,3)?"@-webkit-"+b+"@"+b:"@"+b;break;default:b=H+b,112===u&&(q+=b,b="")}else b="";break;default:b=e(n,r(n,H,G),b,u,d+1)}D+=b,b=G=I=T=h=0,H="",p=s.charCodeAt(++N);break;case 125:case 59:if(1<(B=(H=(0<I?H.replace(f,""):H).trim()).length))switch(0===T&&(h=H.charCodeAt(0),45===h||96<h&&123>h)&&(B=(H=H.replace(" ",":")).length),0<M&&void 0!==(y=c(1,H,n,t,S,j,q.length,u,d,u))&&0===(B=(H=y.trim()).length)&&(H="\0\0"),h=H.charCodeAt(0),p=H.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){K+=H+s.charAt(N);break}default:58!==H.charCodeAt(B-1)&&(q+=a(H,h,p,H.charCodeAt(2)))}G=I=T=h=0,H="",p=s.charCodeAt(++N)}}switch(p){case 13:case 10:47===A?A=0:0===1+h&&107!==u&&0<H.length&&(I=1,H+="\0"),0<M*R&&c(0,H,n,t,S,j,q.length,u,d,u),j=1,S++;break;case 59:case 125:if(0===A+O+x+C){j++;break}default:switch(j++,g=s.charAt(N),p){case 9:case 32:if(0===O+C+A)switch(_){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===O+A+C&&(I=G=1,g="\f"+g);break;case 108:if(0===O+A+C+E&&0<T)switch(N-T){case 2:112===_&&58===s.charCodeAt(N-3)&&(E=_);case 8:111===$&&(E=$)}break;case 58:0===O+A+C&&(T=N);break;case 44:0===A+x+O+C&&(I=1,g+="\r");break;case 34:case 39:0===A&&(O=O===p?0:0===O?p:O);break;case 91:0===O+A+x&&C++;break;case 93:0===O+A+x&&C--;break;case 41:0===O+A+C&&x--;break;case 40:if(0===O+A+C){if(0===h)switch(2*_+3*$){case 533:break;default:h=1}x++}break;case 64:0===A+x+O+C+T+b&&(b=1);break;case 42:case 47:if(!(0<O+C+x))switch(A){case 0:switch(2*p+3*s.charCodeAt(N+1)){case 235:A=47;break;case 220:B=N,A=42}break;case 42:47===p&&42===_&&B+2!==N&&(33===s.charCodeAt(B+2)&&(q+=s.substring(B,N+1)),g="",A=0)}}0===A&&(H+=g)}$=_,_=p,N++}if(0<(B=q.length)){if(I=n,0<M&&void 0!==(y=c(2,q,I,t,S,j,B,u,d,u))&&0===(q=y).length)return K+q+D;if(q=I.join(",")+"{"+q+"}",0!=P*E){switch(2!==P||i(q,2)||(E=0),E){case 111:q=q.replace(w,":-moz-$1")+q;break;case 112:q=q.replace(v,"::-webkit-input-$1")+q.replace(v,"::-moz-$1")+q.replace(v,":-ms-input-$1")+q}E=0}}return K+q+D}(z,s,n,0,0);return 0<M&&void 0!==(d=c(-2,h,s,s,S,j,h.length,0,0,0))&&(h=d),E=0,j=S=1,h}var l=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,b=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,k=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,w=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,m=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,A=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,j=1,S=1,E=0,P=1,z=[],$=[],M=0,T=null,R=0;return u.use=function e(t){switch(t){case void 0:case null:M=$.length=0;break;default:switch(t.constructor){case Array:for(var r=0,n=t.length;r<n;++r)e(t[r]);break;case Function:$[M++]=t;break;case Boolean:R=0|!!t}}return e},u.set=s,void 0!==t&&s(t),u},c=r(3),s=r.n(c),u=/[A-Z]|^ms/g,l=n(function(e){return e.replace(u,"-$&").toLowerCase()}),f=function(e,t){return null==t||"boolean"==typeof t?"":1===a[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},d=function e(t){for(var r=t.length,n=0,a="";n<r;n++){var i=t[n];if(null!=i){var o=void 0;switch(typeof i){case"boolean":break;case"function":0,o=e([i()]);break;case"object":if(Array.isArray(i))o=e(i);else for(var c in o="",i)i[c]&&c&&(o&&(o+=" "),o+=c);break;default:o=i}o&&(a&&(a+=" "),a+=o)}}return a},h="undefined"!=typeof document;function p(e){var t=document.createElement("style");return 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}var b=function(){function e(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}var t=e.prototype;return t.inject=function(){if(this.injected)throw new Error("already injected!");this.tags[0]=p(this.opts),this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){if(this.isSpeedy){var r=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{r.insertRule(e,r.cssRules.length)}catch(e){0}}else{var n=p(this.opts);this.tags.push(n),n.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(p(this.opts))},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,this.injected=!1},e}();t.a=function(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var r,n,a=t.key||"css",c=s()(function(e){r+=e,h&&p.insert(e,k)});void 0!==t.prefix&&(n={prefix:t.prefix});var u={registered:{},inserted:{},nonce:t.nonce,key:a},p=new b(t);h&&p.inject();var g=new o(n);g.use(t.stylisPlugins)(c);var k="";function v(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e.__emotion_styles){var r=e.toString();return r}return v.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return function(e){if(m.has(e))return m.get(e);var t="";return Array.isArray(e)?e.forEach(function(e){t+=v.call(this,e,!1)},this):Object.keys(e).forEach(function(r){"object"!=typeof e[r]?void 0!==u.registered[e[r]]?t+=r+"{"+u.registered[e[r]]+"}":t+=l(r)+":"+f(r,e[r])+";":Array.isArray(e[r])&&"string"==typeof e[r][0]&&void 0===u.registered[e[r][0]]?e[r].forEach(function(e){t+=l(r)+":"+f(r,e)+";"}):t+=r+"{"+v.call(this,e[r],!1)+"}"},this),m.set(e,t),t}.call(this,e);default:var n=u.registered[e];return!1===t&&void 0!==n?n:e}}var w,y,m=new WeakMap,C=/label:\s*([^\s;\n{]+)\s*;/g,A=function(e){var t=!0,r="",n="";null==e||void 0===e.raw?(t=!1,r+=v.call(this,e,!1)):r+=e[0];for(var a=arguments.length,o=new Array(a>1?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];return o.forEach(function(n,a){r+=v.call(this,n,46===r.charCodeAt(r.length-1)),!0===t&&void 0!==e[a+1]&&(r+=e[a+1])},this),y=r,r=r.replace(C,function(e,t){return n+="-"+t,""}),w=function(e,t){return i(e+t)+t}(r,n),r};function x(e,t){void 0===u.inserted[w]&&(r="",g(e,t),u.inserted[w]=r)}var O=function(){var e=A.apply(this,arguments),t=a+"-"+w;return void 0===u.registered[t]&&(u.registered[t]=y),x("."+t,e),t};function _(e,t){var r="";return t.split(" ").forEach(function(t){void 0!==u.registered[t]?e.push(t):r+=t+" "}),r}function j(e,t){var r=[],n=_(r,e);return r.length<2?e:n+O(r,t)}function S(e){u.inserted[e]=!0}if(h){var E=document.querySelectorAll("[data-emotion-"+a+"]");Array.prototype.forEach.call(E,function(e){p.tags[0].parentNode.insertBefore(e,p.tags[0]),e.getAttribute("data-emotion-"+a).split(" ").forEach(S)})}var P={flush:function(){h&&(p.flush(),p.inject()),u.inserted={},u.registered={}},hydrate:function(e){e.forEach(S)},cx:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return j(d(t))},merge:j,getRegisteredStyles:_,injectGlobal:function(){x("",A.apply(this,arguments))},keyframes:function(){var e=A.apply(this,arguments),t="animation-"+w;return x("","@keyframes "+t+"{"+e+"}"),t},css:O,sheet:p,caches:u};return e.__SECRET_EMOTION__=P,P}},function(e,t,r){e.exports=r(6)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i(n).default}});var a=r(8);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"SkeletonTheme",{enumerable:!0,get:function(){return i(a).default}})},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n ."," {\n background-color: ",";\n background-image: linear-gradient(\n 90deg,\n ",",\n ",",\n ","\n );\n }\n "],["\n ."," {\n background-color: ",";\n background-image: linear-gradient(\n 90deg,\n ",",\n ",",\n ","\n );\n }\n "]),i=r(1),o=function(e){return e&&e.__esModule?e:{default:e}}(i),c=r(2),s=r(0);var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.themeClass=(0,c.css)(a,s.skeletonClass,e.color,e.color,e.highlightColor,e.color),r}return function(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)}(t,i.Component),n(t,[{key:"render",value:function(){return o.default.createElement("div",{className:this.themeClass},this.props.children)}}]),t}();u.defaultProps={color:s.defaultBaseColor,highlightColor:s.defaultHighlightColor},t.default=u}])});
!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.Skeleton=t(require("react")):e.Skeleton=t(e._)}(window,function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skeletonClass=t.skeletonKeyframes=t.defaultHighlightColor=t.defaultBaseColor=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=u(["\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n"],["\n 0% {\n background-position: -200px 0;\n }\n 100% {\n background-position: calc(200px + 100%) 0;\n }\n"]),i=u(["\n background-color: ",";\n background-image: linear-gradient(\n 90deg,\n ",",\n ",",\n ","\n );\n background-size: 200px 100%;\n background-repeat: no-repeat;\n border-radius: 4px;\n display: inline-block;\n line-height: 1;\n width: 100%;\n"],["\n background-color: ",";\n background-image: linear-gradient(\n 90deg,\n ",",\n ",",\n ","\n );\n background-size: 200px 100%;\n background-repeat: no-repeat;\n border-radius: 4px;\n display: inline-block;\n line-height: 1;\n width: 100%;\n"]),o=r(1),c=function(e){return e&&e.__esModule?e:{default:e}}(o),s=r(2);function u(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var l=t.defaultBaseColor="#eee",f=t.defaultHighlightColor="#f5f5f5",d=t.skeletonKeyframes=(0,s.keyframes)(a),h=t.skeletonClass=(0,s.css)(i,l,l,f,l),p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,o.Component),n(t,[{key:"render",value:function(){for(var e=[],t=0;t<this.props.count;t++){var r={animation:d+" "+String(this.props.duration)+"s ease-in-out infinite"};null!=this.props.width&&(r.width=this.props.width),null!=this.props.height&&(r.height=this.props.height),null!==this.props.width&&null!==this.props.height&&this.props.circle&&(r.borderRadius="50%"),e.push(c.default.createElement("span",{key:t,className:h,style:r},"‌"))}var n=this.props.wrapper;return c.default.createElement("span",null,n?e.map(function(e,t){return c.default.createElement(n,{key:t},e,"‌")}):e)}}]),t}();p.defaultProps={count:1,duration:1.2,width:null,wrapper:null,height:null,circle:!1},t.default=p},function(t,r){t.exports=e},function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"flush",function(){return o}),r.d(t,"hydrate",function(){return c}),r.d(t,"cx",function(){return s}),r.d(t,"merge",function(){return u}),r.d(t,"getRegisteredStyles",function(){return l}),r.d(t,"injectGlobal",function(){return f}),r.d(t,"keyframes",function(){return d}),r.d(t,"css",function(){return h}),r.d(t,"sheet",function(){return p}),r.d(t,"caches",function(){return b});var n=r(4),a=void 0!==e?e:{},i=Object(n.a)(a),o=i.flush,c=i.hydrate,s=i.cx,u=i.merge,l=i.getRegisteredStyles,f=i.injectGlobal,d=i.keyframes,h=i.css,p=i.sheet,b=i.caches}.call(this,r(7))},function(e,t,r){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,a,i,o,c,s,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(a[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}}()},function(e,t,r){"use strict";var n=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}},a={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 i=function(e){for(var t,r=e.length,n=r^r,a=0;r>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++a;switch(r){case 3:n^=(255&e.charCodeAt(a+2))<<16;case 2:n^=(255&e.charCodeAt(a+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(a)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),((n^=n>>>15)>>>0).toString(36)},o=function e(t){function r(e,t,r){var a=t.trim().split(b);t=a;var i=a.length,o=e.length;switch(o){case 0:case 1:var c=0;for(e=0===o?"":e[0]+" ";c<i;++c)t[c]=n(e,t[c],r).trim();break;default:var s=c=0;for(t=[];c<i;++c)for(var u=0;u<o;++u)t[s++]=n(e[u]+" ",a[c],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,r,n){var o=e+";",c=2*t+3*r+4*n;if(944===c){e=o.indexOf(":",9)+1;var s=o.substring(e,o.length-1).trim();return s=o.substring(0,e).trim()+s+";",1===P||2===P&&i(s,1)?"-webkit-"+s+s:s}if(0===P||2===P&&!i(o,1))return o;switch(c){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(_,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(s=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+s+o;case 1005:return h.test(o)?o.replace(d,":-webkit-")+o.replace(d,":-moz-")+o:o;case 1e3:switch(t=(s=o.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=o.replace(y,"tb");break;case 232:s=o.replace(y,"tb-rl");break;case 220:s=o.replace(y,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+s+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,c=(s=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:o=o.replace(s,"-webkit-"+s)+";"+o;break;case 207:case 102:o=o.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+o.replace(s,"-webkit-"+s)+";"+o.replace(s,"-ms-"+s+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return"-webkit-"+o+"-webkit-box-"+(s=o.replace("-items",""))+"-ms-flex-"+s+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(A,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(A,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):o.replace(s,"-webkit-"+s)+o.replace(s,"-moz-"+s.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===r+n&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+o}return o}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),R(2!==t?n:n.replace(x,"$1"),r,t)}function o(e,t){var r=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(C," or ($1)").substring(4):"("+t+")"}function c(e,t,r,n,a,i,o,c,s,l){for(var f,d=0,h=t;d<M;++d)switch(f=$[d].call(u,e,h,r,n,a,i,o,c,s,l)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?P=1:(P=2,R=e):P=0),s}function u(t,n){if(void 0!==this&&this.constructor===u)return e(t);var s=t;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<M){var d=c(-1,n,s,s,S,j,0,0,0,0);void 0!==d&&"string"==typeof d&&(n=d)}var h=function e(t,n,s,u,d){for(var h,p,b,g,y,C=0,A=0,x=0,O=0,_=0,$=0,R=b=h=0,N=0,I=0,G=0,B=0,W=s.length,F=W-1,H="",q="",D="",K="";N<W;){if(p=s.charCodeAt(N),N===F&&0!==A+O+x+C&&(0!==A&&(p=47===A?10:47),O=x=C=0,W++,F++),0===A+O+x+C){if(N===F&&(0<I&&(H=H.replace(f,"")),0<H.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:H+=s.charAt(N)}p=59}switch(p){case 123:for(h=(H=H.trim()).charCodeAt(0),b=1,B=++N;N<W;){switch(p=s.charCodeAt(N)){case 123:b++;break;case 125:b--;break;case 47:switch(p=s.charCodeAt(N+1)){case 42:case 47:e:{for(R=N+1;R<F;++R)switch(s.charCodeAt(R)){case 47:if(42===p&&42===s.charCodeAt(R-1)&&N+2!==R){N=R+1;break e}break;case 10:if(47===p){N=R+1;break e}}N=R}}break;case 91:p++;case 40:p++;case 34:case 39:for(;N++<F&&s.charCodeAt(N)!==p;);}if(0===b)break;N++}switch(b=s.substring(B,N),0===h&&(h=(H=H.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<I&&(H=H.replace(f,"")),p=H.charCodeAt(1)){case 100:case 109:case 115:case 45:I=n;break;default:I=z}if(B=(b=e(n,I,b,p,d+1)).length,0<M&&(y=c(3,b,I=r(z,H,G),n,S,j,B,p,d,u),H=I.join(""),void 0!==y&&0===(B=(b=y.trim()).length)&&(p=0,b="")),0<B)switch(p){case 115:H=H.replace(m,o);case 100:case 109:case 45:b=H+"{"+b+"}";break;case 107:b=(H=H.replace(k,"$1 $2"))+"{"+b+"}",b=1===P||2===P&&i("@"+b,3)?"@-webkit-"+b+"@"+b:"@"+b;break;default:b=H+b,112===u&&(q+=b,b="")}else b="";break;default:b=e(n,r(n,H,G),b,u,d+1)}D+=b,b=G=I=R=h=0,H="",p=s.charCodeAt(++N);break;case 125:case 59:if(1<(B=(H=(0<I?H.replace(f,""):H).trim()).length))switch(0===R&&(h=H.charCodeAt(0),45===h||96<h&&123>h)&&(B=(H=H.replace(" ",":")).length),0<M&&void 0!==(y=c(1,H,n,t,S,j,q.length,u,d,u))&&0===(B=(H=y.trim()).length)&&(H="\0\0"),h=H.charCodeAt(0),p=H.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){K+=H+s.charAt(N);break}default:58!==H.charCodeAt(B-1)&&(q+=a(H,h,p,H.charCodeAt(2)))}G=I=R=h=0,H="",p=s.charCodeAt(++N)}}switch(p){case 13:case 10:47===A?A=0:0===1+h&&107!==u&&0<H.length&&(I=1,H+="\0"),0<M*T&&c(0,H,n,t,S,j,q.length,u,d,u),j=1,S++;break;case 59:case 125:if(0===A+O+x+C){j++;break}default:switch(j++,g=s.charAt(N),p){case 9:case 32:if(0===O+C+A)switch(_){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===O+A+C&&(I=G=1,g="\f"+g);break;case 108:if(0===O+A+C+E&&0<R)switch(N-R){case 2:112===_&&58===s.charCodeAt(N-3)&&(E=_);case 8:111===$&&(E=$)}break;case 58:0===O+A+C&&(R=N);break;case 44:0===A+x+O+C&&(I=1,g+="\r");break;case 34:case 39:0===A&&(O=O===p?0:0===O?p:O);break;case 91:0===O+A+x&&C++;break;case 93:0===O+A+x&&C--;break;case 41:0===O+A+C&&x--;break;case 40:if(0===O+A+C){if(0===h)switch(2*_+3*$){case 533:break;default:h=1}x++}break;case 64:0===A+x+O+C+R+b&&(b=1);break;case 42:case 47:if(!(0<O+C+x))switch(A){case 0:switch(2*p+3*s.charCodeAt(N+1)){case 235:A=47;break;case 220:B=N,A=42}break;case 42:47===p&&42===_&&B+2!==N&&(33===s.charCodeAt(B+2)&&(q+=s.substring(B,N+1)),g="",A=0)}}0===A&&(H+=g)}$=_,_=p,N++}if(0<(B=q.length)){if(I=n,0<M&&void 0!==(y=c(2,q,I,t,S,j,B,u,d,u))&&0===(q=y).length)return K+q+D;if(q=I.join(",")+"{"+q+"}",0!=P*E){switch(2!==P||i(q,2)||(E=0),E){case 111:q=q.replace(w,":-moz-$1")+q;break;case 112:q=q.replace(v,"::-webkit-input-$1")+q.replace(v,"::-moz-$1")+q.replace(v,":-ms-input-$1")+q}E=0}}return K+q+D}(z,s,n,0,0);return 0<M&&void 0!==(d=c(-2,h,s,s,S,j,h.length,0,0,0))&&(h=d),E=0,j=S=1,h}var l=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,b=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,k=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,w=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,m=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,A=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,j=1,S=1,E=0,P=1,z=[],$=[],M=0,R=null,T=0;return u.use=function e(t){switch(t){case void 0:case null:M=$.length=0;break;default:switch(t.constructor){case Array:for(var r=0,n=t.length;r<n;++r)e(t[r]);break;case Function:$[M++]=t;break;case Boolean:T=0|!!t}}return e},u.set=s,void 0!==t&&s(t),u},c=r(3),s=r.n(c),u=/[A-Z]|^ms/g,l=n(function(e){return e.replace(u,"-$&").toLowerCase()}),f=function(e,t){return null==t||"boolean"==typeof t?"":1===a[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},d=function e(t){for(var r=t.length,n=0,a="";n<r;n++){var i=t[n];if(null!=i){var o=void 0;switch(typeof i){case"boolean":break;case"function":0,o=e([i()]);break;case"object":if(Array.isArray(i))o=e(i);else for(var c in o="",i)i[c]&&c&&(o&&(o+=" "),o+=c);break;default:o=i}o&&(a&&(a+=" "),a+=o)}}return a},h="undefined"!=typeof document;function p(e){var t=document.createElement("style");return 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}var b=function(){function e(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}var t=e.prototype;return t.inject=function(){if(this.injected)throw new Error("already injected!");this.tags[0]=p(this.opts),this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){if(this.isSpeedy){var r=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{r.insertRule(e,r.cssRules.length)}catch(e){0}}else{var n=p(this.opts);this.tags.push(n),n.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(p(this.opts))},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,this.injected=!1},e}();t.a=function(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var r,n,a=t.key||"css",c=s()(function(e){r+=e,h&&p.insert(e,k)});void 0!==t.prefix&&(n={prefix:t.prefix});var u={registered:{},inserted:{},nonce:t.nonce,key:a},p=new b(t);h&&p.inject();var g=new o(n);g.use(t.stylisPlugins)(c);var k="";function v(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e.__emotion_styles){var r=e.toString();return r}return v.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return function(e){if(m.has(e))return m.get(e);var t="";return Array.isArray(e)?e.forEach(function(e){t+=v.call(this,e,!1)},this):Object.keys(e).forEach(function(r){"object"!=typeof e[r]?void 0!==u.registered[e[r]]?t+=r+"{"+u.registered[e[r]]+"}":t+=l(r)+":"+f(r,e[r])+";":Array.isArray(e[r])&&"string"==typeof e[r][0]&&void 0===u.registered[e[r][0]]?e[r].forEach(function(e){t+=l(r)+":"+f(r,e)+";"}):t+=r+"{"+v.call(this,e[r],!1)+"}"},this),m.set(e,t),t}.call(this,e);default:var n=u.registered[e];return!1===t&&void 0!==n?n:e}}var w,y,m=new WeakMap,C=/label:\s*([^\s;\n{]+)\s*;/g,A=function(e){var t=!0,r="",n="";null==e||void 0===e.raw?(t=!1,r+=v.call(this,e,!1)):r+=e[0];for(var a=arguments.length,o=new Array(a>1?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];return o.forEach(function(n,a){r+=v.call(this,n,46===r.charCodeAt(r.length-1)),!0===t&&void 0!==e[a+1]&&(r+=e[a+1])},this),y=r,r=r.replace(C,function(e,t){return n+="-"+t,""}),w=function(e,t){return i(e+t)+t}(r,n),r};function x(e,t){void 0===u.inserted[w]&&(r="",g(e,t),u.inserted[w]=r)}var O=function(){var e=A.apply(this,arguments),t=a+"-"+w;return void 0===u.registered[t]&&(u.registered[t]=y),x("."+t,e),t};function _(e,t){var r="";return t.split(" ").forEach(function(t){void 0!==u.registered[t]?e.push(t):r+=t+" "}),r}function j(e,t){var r=[],n=_(r,e);return r.length<2?e:n+O(r,t)}function S(e){u.inserted[e]=!0}if(h){var E=document.querySelectorAll("[data-emotion-"+a+"]");Array.prototype.forEach.call(E,function(e){p.tags[0].parentNode.insertBefore(e,p.tags[0]),e.getAttribute("data-emotion-"+a).split(" ").forEach(S)})}var P={flush:function(){h&&(p.flush(),p.inject()),u.inserted={},u.registered={}},hydrate:function(e){e.forEach(S)},cx:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return j(d(t))},merge:j,getRegisteredStyles:_,injectGlobal:function(){x("",A.apply(this,arguments))},keyframes:function(){var e=A.apply(this,arguments),t="animation-"+w;return x("","@keyframes "+t+"{"+e+"}"),t},css:O,sheet:p,caches:u};return e.__SECRET_EMOTION__=P,P}},function(e,t,r){e.exports=r(6)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i(n).default}});var a=r(8);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"SkeletonTheme",{enumerable:!0,get:function(){return i(a).default}})},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n ."," {\n background-color: ",";\n background-image: linear-gradient(\n 90deg,\n ",",\n ",",\n ","\n );\n }\n "],["\n ."," {\n background-color: ",";\n background-image: linear-gradient(\n 90deg,\n ",",\n ",",\n ","\n );\n }\n "]),i=r(1),o=function(e){return e&&e.__esModule?e:{default:e}}(i),c=r(2),s=r(0);var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.themeClass=(0,c.css)(a,s.skeletonClass,e.color,e.color,e.highlightColor,e.color),r}return function(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)}(t,i.Component),n(t,[{key:"render",value:function(){return o.default.createElement("div",{className:this.themeClass},this.props.children)}}]),t}();u.defaultProps={color:s.defaultBaseColor,highlightColor:s.defaultHighlightColor},t.default=u}])});
{
"name": "react-loading-skeleton",
"version": "0.6.1",
"version": "1.0.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "David Tang",

@@ -93,1 +93,22 @@ # react-loading-skeleton

no width of its own.
## Height
`Height`: Number | String | null, defaults to null
```javascript
<Skeleton height={100} />
```
Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance
a card. Also needed for the prop `circle` (see below).
## Circle
`Circle`: Boolean | false, defaults to false
```javascript
<Skeleton circle={true} height={50} width={50} />
```
Prop for making the skeleton look like a circle, for when you are creating a user card with a profile picture for instance.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc