// Ported from js-yaml v3.13.1:
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

import { Type } from "../type.ts";
import type { Any } from "../_utils.ts";

export const map = new Type("tag:yaml.org,2002:map", {
  construct(data): Any {
    return data !== null ? data : {};
  },
  kind: "mapping",
});

// denoCacheMetadata={"headers":{"cross-origin-resource-policy":"cross-origin","etag":"\"7f035267ca90faa8374f032b92e7106a\"","access-control-allow-origin":"*","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=KBZENZPPtLqwfw0L6b%2FsMhngzdhdFnL6vasx49dF%2BgThUHNlrYYm6Topb7L2ZtAmxwHMopgsK3UrNMOlau3EAi5kZnzg4MqX2gTgheIzBlVcNeZ2%2Bq6Q5kY%3D\"}]}","accept-ranges":"bytes","vary":"Origin","date":"Tue, 28 Jul 2026 12:31:15 GMT","x-content-type-options":"nosniff","content-type":"text/typescript","set-cookie":"__cf_bm=PKOzNFtxgi0wIEjWHNCmWOGPmUXohyBuvzQMS313IPI-1785241875.2985308-1.0.1.1-RwkUwppYCEjaX0PkI7ccJFjXFoFNpRVviJujIDqdNG1YcvVVV2_rAu2xeZNEv5Cwg65fDS3hbtAGZjeOR5se17nFSchBT9CpzlYRK2zAsuGZoPsPbp2hW01852sFG_X_; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","x-jsr-backend":"modules","x-robots-tag":"noindex","cf-cache-status":"HIT","age":"1699996","server":"cloudflare","content-length":"491","access-control-expose-headers":"*","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","alt-svc":"h3=\":443\"; ma=86400","cf-ray":"a223e6589ce97db6-LAX","cache-control":"public, max-age=31536000, immutable"},"url":"https://jsr.io/@std/yaml/0.224.3/_type/map.ts","time":1785241875}