"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./units-CDpdlN1W.cjs");function a(e,i){if(i!==void 0&&i===1)return e;const o={"(quiz)$":"$1zes","^(ox)$":"$1en","([m|l])ouse$":"$1ice","(matr|vert|ind)ix|ex$":"$1ices","(x|ch|ss|sh)$":"$1es","([^aeiouy]|qu)y$":"$1ies","(hive)$":"$1s","(?:([^f])fe|([lr])f)$":"$1$2ves","(shea|lea|loa|thie)f$":"$1ves",sis$:"ses","([ti])um$":"$1a","(tomat|potat|ech|her|vet)o$":"$1oes","(bu)s$":"$1ses","(alias)$":"$1es","(octop)us$":"$1i","(ax|test)is$":"$1es","(us)$":"$1es","([^s]+)$":"$1s"},n={move:"moves",foot:"feet",goose:"geese",sex:"sexes",child:"children",man:"men",tooth:"teeth",person:"people"};if(["sheep","fish","deer","moose","series","species","money","rice","information","equipment","bison","cod","offspring","pike","salmon","shrimp","swine","trout","aircraft","hovercraft","spacecraft","sugar","tuna","you","wood"].includes(e.toLowerCase()))return e;for(const s in n){const t=new RegExp(`${s}$`,"i"),$=n[s];if(t.test(e))return e.replace(t,$)}for(const s in o){const t=new RegExp(s,"i");if(t.test(e))return e.replace(t,o[s])}return e}exports.convertByteUnits=r.convertByteUnits;exports.formatTimeDifference=r.formatTimeDifference;exports.plural=a;
