// 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 { Type } from "../_type.ts";

export const map: Type<"mapping", unknown> = {
  tag: "tag:yaml.org,2002:map",
  resolve() {
    return true;
  },
  construct(data) {
    return data !== null ? data : {};
  },
  kind: "mapping",
};

// denoCacheMetadata={"headers":{"x-jsr-backend":"modules","set-cookie":"__cf_bm=EiX80chpTUl_CQZBGLcQ17s9drfPcJNhrHdsfsqUTcg-1785241875.3709257-1.0.1.1-c6PZ84TFSE7OcVP2_jVwsCXaZrK2Pj1RD.rBfDeOo7CzUhXN2d4ZDLt9L3pvDY4F8YNuqBOA9rIMpztR4jEriaSbR7eHEicD1aXKir75ZGNY9VGyUMt0aI1EaoyoNp4h; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","cross-origin-resource-policy":"cross-origin","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=WCBPdEpu0kkjm1QsHRJUy8GfxMAsXjGnQrxjwv1XOJqgMF1%2FA35Ibtshon5klv1OVZe3NC4ff3bourk9F3TBN2GvIRRcnJgWtL2cx%2FxSYBe7MQJxpGvwFrA%3D\"}]}","age":"956121","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","x-robots-tag":"noindex","alt-svc":"h3=\":443\"; ma=86400","accept-ranges":"bytes","date":"Tue, 28 Jul 2026 12:31:15 GMT","content-length":"510","etag":"\"b56f0c2e07760355723910f4c720c4f3\"","server":"cloudflare","vary":"Origin","cf-cache-status":"HIT","access-control-allow-origin":"*","cache-control":"public, max-age=31536000, immutable","access-control-expose-headers":"*","content-type":"text/typescript","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';","cf-ray":"a223e6590e427db6-LAX","x-content-type-options":"nosniff"},"url":"https://jsr.io/@std/yaml/1.0.5/_type/map.ts","time":1785241875}