site-panzai/node_modules/@nuxt/devtools/dist/client/_nuxt/head-hqcgxe55.js

1 line
9.7 KiB
JavaScript
Raw Permalink Normal View History

2026-11-13 13:57:04 +01:00
import{_ as e,a as t,g as n,v as r}from"./nuxt-l2zm4y7d.js";import{A as i,At as a,Ct as o,E as s,I as c,R as l,bt as u,gt as d,j as f,lt as p,vt as m,z as h}from"./vendor/json-editor-vue-9tyg6b65.js";var g=new Set([`link`,`style`,`script`,`noscript`]),_=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),v=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),y=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),ee=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),b=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),x=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),S=new Set([`theme-color`,`google-site-verification`,`author`,`og:locale:alternate`,`og:image`,`og:video`,`og:audio`,`article:author`,`article:tag`,`book:author`,`book:tag`,`twitter:image`]),C={critical:-8,high:-1,low:2},w=e=>typeof e==`number`?Number.isFinite(e):e;function T(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function E(e,t,n,r){for(let i=n;i<e.length;i+=1)try{let n=r?r.run(()=>e[i](...t)):e[i](...t);if(n&&typeof n.then==`function`)return Promise.resolve(n).then(()=>E(e,t,i+1,r))}catch(e){return Promise.reject(e)}}var D=class{_hooks;constructor(){this._hooks={}}hook(e,t){return!e||typeof t!=`function`?()=>{}:(this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)})}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}callHook(e,...t){let n=this._hooks[e];if(n&&n.length!==0)return E(n,t,0)}};function O(e){let t=new D;for(let n in e||{})t.hook(n,e[n]);return t}function k(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}var A=/^(?:viewport|description|keywords|robots)$/,j=[`name`,`property`,`http-equiv`];function M(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.slice(t+1);return S.has(n)||n.startsWith(`og:image:`)||n.startsWith(`og:video:`)||n.startsWith(`og:audio:`)||n.startsWith(`twitter:image:`)}function N(e){let{props:t,tag:n,key:r}=e;if(ee.has(n))return n;if(n===`link`){if(t.rel===`canonical`)return`canonical`;if(t.rel===`alternate`&&t.hreflang)return`alternate:${t.hreflang}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of j){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!A.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel&&t.href?`link:${t.rel}:${t.href}`:_.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function P(e){let t=e._h||e._d||e.textContent||e.innerHTML;if(t)return String(t);let n=Object.keys(e.props).sort(),r=`${e.tag}:`,i=``;for(let t of n)r+=`${i}${t}:${String(e.props[t])}`,i=`,`;return r}function F(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r)){let e;for(let n=0;n<r.length;n++){let i=F(r[n],t);e?e[n]=i:i!==r[n]&&(e=r.slice(0,n),e[n]=i)}return e||r}if(r?.constructor===Object){let e;for(let n in r){let i=T(n),a=i?void 0:F(r[n],t,n);if(!e&&(i||a!==r[n])){e={};for(let t in r){if(t===n)break;e[t]=r[t]}}e&&!i&&(e[n]=a)}return e||r}return r}var I=/[\s"'<>/=\x00-\x1F\x7F]/;function L(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e){if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}else e.split(` `).forEach(e=>e&&r.add(e))}};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function R(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=v.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(T(r))continue;let i=r.startsWith(`data-`),a=n&&!b.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||I.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`clas