Rocky_Mountain_Vending/.pnpm-store/v10/files/53/09ddbea0b6bc38b96a6250d1600286e46bbd502107491c54341f533d844740074814c8af6dafabc9680715d075196319bad9752ca99fb0ad45fa49d657f204
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

33 lines
816 B
Text

export class MIMEType {
__unenv__ = true;
params = new MIMEParams();
type;
subtype;
constructor(input) {
const [essence = "", ...params] = String(input).split(";");
const [type = "", subtype = ""] = essence.split("/");
this.type = type;
this.subtype = subtype;
this.params = new MIMEParams();
for (const param of params) {
const [name, value] = param.split("=");
this.params.set(name, value);
}
}
get essence() {
return this.type + "/" + this.subtype;
}
toString() {
const paramsStr = this.params.toString();
return this.essence + (paramsStr ? `;${paramsStr}` : "");
}
}
export class MIMEParams extends Map {
__unenv__ = true;
get(name) {
return super.get(name) || null;
}
toString() {
return [...this.entries()].map(([name, value]) => `${name}=${value}`).join("&");
}
}