/opt/canhelp/node_modules/next/dist/compiled/@next/font/dist/google
NameSizeModeActions
fetch-css-from-google-fonts.d.ts4820644editdlrm
fetch-css-from-google-fonts.js13470644editdlrm
fetch-font-file.d.ts2260644editdlrm
fetch-font-file.js9570644editdlrm
fetch-resource.d.ts2930644editdlrm
fetch-resource.js19940644editdlrm
find-font-files-in-css.d.ts4130644editdlrm
find-font-files-in-css.js15280644editdlrm
font-data.json4496130644editdlrm
get-fallback-font-override-metrics.d.ts5180644editdlrm
get-fallback-font-override-metrics.js24840644editdlrm
get-font-axes.d.ts3140644editdlrm
get-font-axes.js31050644editdlrm
get-google-fonts-url.d.ts2900644editdlrm
get-google-fonts-url.js22480644editdlrm
get-proxy-agent.d.ts1800644editdlrm
get-proxy-agent.js9140644editdlrm
google-fonts-metadata.d.ts3650644editdlrm
google-fonts-metadata.js3810644editdlrm
index.d.ts8272310644editdlrm
index.js770644editdlrm
loader.d.ts1380644editdlrm
loader.js85470644editdlrm
retry.d.ts1550644editdlrm
retry.js6740644editdlrm
sort-fonts-variant-values.d.ts2310644editdlrm
sort-fonts-variant-values.js11480644editdlrm
validate-google-font-function-call.d.ts5040644editdlrm
validate-google-font-function-call.js50740644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/compiled/@next/font/dist/google/sort-fonts-variant-values.js (1148B)
"use strict"; /** * Callback function for sorting font variant values. * Used as a parameter in `Array.prototype.sort` function to ensure correct sorting. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.sortFontsVariantValues = sortFontsVariantValues; function sortFontsVariantValues(valA, valB) { // If both values contain commas, it indicates they are in "ital,wght" format if (valA.includes(',') && valB.includes(',')) { // Split the values into prefix and suffix const [aPrefix, aSuffix] = valA.split(',', 2); const [bPrefix, bSuffix] = valB.split(',', 2); // Compare the prefixes (ital values) if (aPrefix === bPrefix) { // If prefixes are equal, then compare the suffixes (wght values) return parseInt(aSuffix) - parseInt(bSuffix); } else { // If prefixes are different, then compare the prefixes directly return parseInt(aPrefix) - parseInt(bPrefix); } } // If values are not in "ital,wght" format, then directly compare them as integers return parseInt(valA) - parseInt(valB); }