import e from"../../../../@babel/runtime/helpers/esm/extends.js";import t from"../../../../@babel/runtime/helpers/esm/objectWithoutProperties.js";import o from"../../../utils/esm/deepmerge.js";function i(e){return Math.round(1e5*e)/1e5}var n={textTransform:"uppercase"};function r(r,a){var l="function"==typeof a?a(r):a,f=l.fontFamily,m=void 0===f?'"Roboto", "Helvetica", "Arial", sans-serif':f,u=l.fontSize,h=void 0===u?14:u,s=l.fontWeightLight,d=void 0===s?300:s,g=l.fontWeightRegular,c=void 0===g?400:g,p=l.fontWeightMedium,b=void 0===p?500:p,v=l.fontWeightBold,W=void 0===v?700:v,S=l.htmlFontSize,y=void 0===S?16:S,z=l.allVariants,F=l.pxToRem,R=t(l,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);"production"!==process.env.NODE_ENV&&("number"!=typeof h&&console.error("Material-UI: `fontSize` is required to be a number."),"number"!=typeof y&&console.error("Material-UI: `htmlFontSize` is required to be a number."));var x=h/14,M=F||function(e){return"".concat(e/y*x,"rem")},j=function(t,o,n,r,a){return e({fontFamily:m,fontWeight:t,fontSize:M(o),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===m?{letterSpacing:"".concat(i(r/o),"em")}:{},a,z)},T={h1:j(d,96,1.167,-1.5),h2:j(d,60,1.2,-.5),h3:j(c,48,1.167,0),h4:j(c,34,1.235,.25),h5:j(c,24,1.334,0),h6:j(b,20,1.6,.15),subtitle1:j(c,16,1.75,.15),subtitle2:j(b,14,1.57,.1),body1:j(c,16,1.5,.15),body2:j(c,14,1.43,.15),button:j(b,14,1.75,.4,n),caption:j(c,12,1.66,.4),overline:j(c,12,2.66,1,n)};return o(e({htmlFontSize:y,pxToRem:M,round:i,fontFamily:m,fontSize:h,fontWeightLight:d,fontWeightRegular:c,fontWeightMedium:b,fontWeightBold:W},T),R,{clone:!1})}export default r;
//# sourceMappingURL=createTypography.js.map
