{"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;AAWM,SAAS,0CAAa,GAAW,EAAE,GAAc;IACtD,IAAI,cAAc,CAAA,GAAA,wCAAa,EAAE;IACjC,IAAI,gBAAgB,CAAA,GAAA,0CAAe,EAAE;IAErC,IAAI,iBAAiB,QAAQ,eAAe,MAC1C;IAGF,IAAI,UAA8B;IAClC,IAAI,WAAW,CAAC,WAAW,EAAE,IAAI,MAAM,CAAC,KAAK,mBAAmB,EAAE,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;IACrF,IAAI,OAAO,cAAc,aAAa,CAAC;IAEvC,IAAI,QAAQ,gBAAgB,YAAY,eAAe,EAAE;QACvD,IAAI,QAAQ,eAAe,KAAK,KAAK,EACnC,YAAY,KAAK,KAAK,IAAI;QAG5B,IAAI,KAAK,OAAO,EACd,YAAY,KAAK,OAAO,IAAI;IAEhC;IAEA,IAAI,QAAQ,aACV,YAAY,YAAY,iBAAiB,IAAI,WAAW,iBAAiB,IAAI;IAG/E,OAAO;AACT","sources":["packages/react-aria/src/utils/getMetaValue.ts"],"sourcesContent":["/*\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {getOwnerDocument, getOwnerWindow} from './domHelpers';\n\ndeclare global {\n  interface Window {\n    __webpack_nonce__?: string;\n  }\n  var __webpack_nonce__: string | undefined;\n}\n\nexport function getMetaValue(key: string, doc?: Document): string | undefined {\n  let ownerWindow = getOwnerWindow(doc);\n  let ownerDocument = getOwnerDocument(doc);\n\n  if (ownerDocument == null || ownerWindow == null) {\n    return;\n  }\n\n  let content: string | undefined = undefined;\n  let selector = `meta[name=\"${CSS.escape(key)}\"], meta[property=\"${CSS.escape(key)}\"]`;\n  let meta = ownerDocument.querySelector(selector);\n\n  if (meta && meta instanceof ownerWindow.HTMLMetaElement) {\n    if (key === 'csp-nonce' && meta.nonce) {\n      content ??= meta.nonce || undefined;\n    }\n\n    if (meta.content) {\n      content ??= meta.content || undefined;\n    }\n  }\n\n  if (key === 'csp-nonce') {\n    content ??= ownerWindow.__webpack_nonce__ || globalThis.__webpack_nonce__ || undefined;\n  }\n\n  return content;\n}\n"],"names":[],"version":3,"file":"getMetaValue.cjs.map"}