PageSourceSearch

https://kommandoergaardmuseum.dk/_nuxt/CPFLOHOG.js

js kommandoergaardmuseum.dk collected 2026-10-08 03:42:31 UTC 15,598 bytes, 1 lines download raw bytes

1import{a$ as R,bq as D,X as $,Y as k,br as L,b8 as T,bs as U,bt as Y,bu as P,bv as X,u as C,f as G,W as x,N as O,ay as Q,P as q,Q as Z,a6 as J,aB as V,a7 as B,au as M,af as S,ad as K,ah as ee,S as te}from"./_FahQo6q.js";async function re(t,e){return await ie(e).catch(i=>(console.error("Failed to get image meta for "+e,i+""),{width:0,height:0,ratio:0}))}async function ie(t){if(typeof Image>"u")throw new TypeError("Image not supported");return new Promise((e,r)=>{const i=new Image;i.onload=()=>{const o={width:i.width,height:i.height,ratio:i.width/i.height};e(o)},i.onerror=o=>r(o),i.src=t})}function W(t){return e=>e?t[e]||e:t.missingValue}function z({formatter:t,keyMap:e,joinWith:r="/",valueMap:i}={}){t||(t=(n,a)=>`${n}=${a}`),e&&typeof e!="function"&&(e=W(e));const o=i||{};return Object.keys(o).forEach(n=>{typeof o[n]!="function"&&(o[n]=W(o[n]))}),(n={})=>Object.entries(n).filter(([l,s])=>typeof s<"u").map(([l,s])=>{const d=o[l];return typeof d=="function"&&(s=d(n[l])),l=typeof e=="function"?e(l):l,t(l,s)}).join(r)}function w(t=""){if(typeof t=="number")return t;if(typeof t=="string"&&t.replace("px","").match(/^\d+$/g))return Number.parseInt(t,10)}function oe(t=""){if(t===void 0||!t.length)return[];const e=new Set;for(const r of t.split(" ")){const i=Number.parseInt(r.replace("x",""));i&&e.add(i)}return Array.from(e)}function ne(t){if(t.length===0)throw new Error("`densities` must not be empty, configure to `1` to render regular size only (DPR 1.0)")}function ae(t){const e={};if(typeof t=="string")for(const r of t.split(/[\s,]+/).filter(i=>i)){const i=r.split(":");i.length!==2?e["1px"]=i[0].trim():e[i[0].trim()]=i[1].trim()}else Object.assign(e,t);return e}function se(t){const e={options:t},r=(o,n={})=>N(e,o,n),i=(o,n={},a={})=>r(o,{...a,modifiers:R(n,a.modifiers||{})}).url;for(const o in t.presets)i[o]=(n,a,l)=>i(n,a,{...t.presets[o],...l});return i.options=t,i.getImage=r,i.getMeta=(o,n)=>le(e,o,n),i.getSizes=(o,n)=>ue(e,o,n),e.$img=i,i}async function le(t,e,r){const i=N(t,e,{...r});return typeof i.getMeta=="function"?await i.getMeta():await re(t,i.url)}function N(t,e,r){var d,u;if(e&&typeof e!="string")throw new TypeError(`input must be a string (received ${typeof e}: ${JSON.stringify(e)})`);if(!e||e.startsWith("data:"))return{url:e};const{provider:i,defaults:o}=ce(t,r.provider||t.options.provider),n=de(t,r.preset);if(e=$(e)?e:D(e),!i.supportsAlias){for(const m in t.options.alias)if(e.startsWith(m)){const g=t.options.alias[m];g&&(e=k(g,e.slice(m.length)))}}if(i.validateDomains&&$(e)){const m=L(e).host;if(!t.options.domains.find(g=>g===m))return{url:e}}const a=R(r,n,o);a.modifiers={...a.modifiers};const l=a.modifiers.format;(d=a.modifiers)!=null&&d.width&&(a.modifiers.width=w(a.modifiers.width)),(u=a.modifiers)!=null&&u.height&&(a.modifiers.height=w(a.modifiers.height));const s=i.getImage(e,a,t);return s.format=s.format||l||"",s}function ce(t,e){const r=t.options.providers[e];if(!r)throw new Error("Unknown provider: "+e);return r}function de(t,e){if(!e)return{};if(!t.options.presets[e])throw new Error("Unknown preset: "+e);return t.options.presets[e]}function ue(t,e,r){var y,j,_,c,p;const i=w((y=r.modifiers)==null?void 0:y.width),o=w((j=r.modifiers)==null?void 0:j.height),n=ae(r.sizes),a=(_=r.densities)!=null&&_.trim()?oe(r.densities.trim()):t.options.densities;ne(a);const l=i&&o?o/i:0,s=[],d=[];if(Object.keys(n).length>=1){for(const f in n){const b=I(f,String(n[f]),o,l,t);if(b!==void 0){s.push({size:b.size,screenMaxWidth:b.screenMaxWidth,media:`(max-width: ${b.screenMaxWidth}px)`});for(const v of a)d.push({width:b._cWidth*v,src:A(t,e,r,b,v)})}}me(s)}else for(const f of a){const b=Object.keys(n)[0];let v=b?I(b,String(n[b]),o,l,t):void 0;v===void 0&&(v={size:"",screenMaxWidth:0,_cWidth:(c=r.modifiers)==null?void 0:c.width,_cHeight:(p=r.modifiers)==null?void 0:p.height}),d.push({width:f,src:A(t,e,r,v,f)})}ge(d);const u=d[d.length-1],m=s.length?s.map(f=>`${f.media?f.media+" ":""}${f.size}`).join(", "):void 0,g=m?"w":"x",h=d.map(f=>`${f.src} ${f.width}${g}`).join(", ");return{sizes:m,srcset:h,src:u==null?void 0:u.src}}function I(t,e,r,i,o){const n=o.options.screens&&o.options.screens[t]||Number.parseInt(t),a=e.endsWith("vw");if(!a&&/^\d+$/.test(e)&&(e=e+"px"),!a&&!e.endsWith("px"))return;let l=Number.parseInt(e);if(!n||!l)return;a&&(l=Math.round(l/100*n));const s=i?Math.round(l*i):r;return{size:e,screenMaxWidth:n,_cWidth:l,_cHeight:s}}function A(t,e,r,i,o){return t.$img(e,{...r.modifiers,width:i._cWidth?i._cWidth*o:void 0,height:i._cHeight?i._cHeight*o:void 0},r)}function me(t){var r;t.sort((i,o)=>i.screenMaxWidth-o.screenMaxWidth);let e=null;for(let i=t.length-1;i>=0;i--){const o=t[i];o.media===e&&t.splice(i,1),e=o.media}for(let i=0;i<t.length;i++)t[i].media=((r=t[i+1])==null?void 0:r.media)||""}function ge(t){t.sort((r,i)=>r.width-i.width);let e=null;for(let r=t.length-1;r>=0;r--){const i=t[r];
1i.width===e&&t.splice(r,1),e=i.width}}const he="https://cdn.sanity.io/images",pe=z({keyMap:{format:"fm",height:"h",quality:"q",width:"w",background:"bg",download:"dl",dpr:"dpr",sharpen:"sharp",orientation:"or","min-height":"min-h","max-height":"max-h","min-width":"min-w","max-width":"max-w",minHeight:"min-h",maxHeight:"max-h",minWidth:"min-w",maxWidth:"max-w",saturation:"sat"},valueMap:{format:{jpeg:"jpg"},fit:{cover:"crop",contain:"fill",fill:"scale",inside:"min",outside:"max"}},joinWith:"&",formatter:(t,e)=>String(e)==="true"?t:`${t}=${e}`}),fe=t=>{const e=t.match(/-(?<width>\d*)x(?<height>\d*)-(?<format>.*)$/);if(!e||!e.groups)return{width:void 0,height:void 0,format:void 0};const r=Number(e.groups.width),i=Number(e.groups.height);return{width:r,height:i,format:e.groups.format}},be=(t,{modifiers:e={},projectId:r,dataset:i="production"}={})=>{const{height:o,width:n}=fe(t);if(e.crop&&typeof e.crop!="string"&&n&&o){const u=e.crop.left*n,m=e.crop.top*o,g=n-e.crop.right*n,h=o-e.crop.bottom*o;e.rect=[u,m,g-u,h-m].map(y=>y.toFixed(0)).join(","),delete e.crop}e.hotspot&&typeof e.hotspot!="string"&&(e["fp-x"]=e.hotspot.x,e["fp-y"]=e.hotspot.y,delete e.hotspot),(!e.format||e.format==="auto")&&(e.format==="auto"&&delete e.format,e.auto="format"),e.fit==="contain"&&!e.bg&&(e.bg="ffffff");const a=pe(e),l=t.split("-").slice(1),s=l.pop(),d=l.join("-")+"."+s+(a?"?"+a:"");return{url:k(he,r,i,d)}},we=Object.freeze(Object.defineProperty({__proto__:null,getImage:be},Symbol.toStringTag,{value:"Module"})),xe=z({keyMap:{width:"w",height:"h",format:"fm",quality:"q",backgroundColor:"bg",rotate:"rot",mask:"mask",auto:"auto",crop:"crop",brightness:"bri",contrast:"con",exposure:"exp",gamma:"gam",highlight:"high",hueShift:"hue",invert:"invert",saturation:"sat",shadow:"shad",sharpen:"sharp",unsharpMask:"usm",unsharpMaskRadius:"usmrad",vibrance:"vib",blend:"blend",blendAlign:"blend-align",blendAlpha:"blend-alpha",blendColor:"blend-color",blendCrop:"blend-crop",blendFit:"blend-fit",blendHeight:"blend-h",blendMode:"blend-mode",blendPadding:"blend-pad",blendSize:"blend-size",blendWidth:"blend-w",blendXPosition:"blend-x",blendYPosition:"blend-y",padding:"pad",borderBottom:"border-bottom",borderLeft:"border-left",innerBorderRadius:"border-radius-inner",outerBorderRadius:"border-radius",borderRight:"border-right",borderTop:"border-top",borderSizeColor:"border",paddingBottom:"pad-bottom",paddingLeft:"pad-left",paddingRight:"pad-right",paddingTop:"pad-top",paletteColorCount:"colors",colorPaletteExtraction:"palette",cssPrefix:"prefix",expirationTimestamp:"expires",faceIndex:"faceindex",facePadding:"facepad",jsonFaceData:"faces",fillMode:"fill",fillColor:"fill-color",gridColors:"grid-colors",gridSize:"grid-size",transparency:"transparency",focalPointDebug:"fp-debug",focalPointXPosition:"fp-x",focalPointYPosition:"fp-y",focalPointZoom:"fp-z",clientHints:"ch",chromaSubsampling:"chromasub",colorQuantization:"colorquant",colorSpace:"cs",download:"dl",dotsPerInch:"dpi",losslessCompression:"lossless",maskBackgroundColor:"mask-bg",maskCornerRadius:"corner-radius",noiseReductionSharp:"nrs",noiseReductionBound:"nr",pdfPageNumber:"page",pdfAnnotation:"pdf-annotation",pixelDensity:"dpr",orientation:"orient",flipAxis:"flip",aspectRatio:"ar",maximumHeight:"max-h",maximumWidth:"max-w",minimumHeight:"min-h",minimumWidth:"min-w",sourceRectangleRegion:"rect",gaussianBlur:"blur",duotoneAlpha:"duotone-alpha",duotone:"duotone",halftone:"htn",monochrome:"monochrome",pixellate:"px",sepiaTone:"sepia",textAlign:"txt-align",textClippingMode:"txt-clip",textColor:"txt-color",textFitMode:"txt-fit",textFont:"txt-font",textLigatures:"txt-lig",textOutlineColor:"txt-line-color",textOutline:"txt-line",textPadding:"txt-pad",textShadow:"txt-shad",textFontSize:"txt-size",textWidth:"txt-width",textString:"txt",trimColor:"trim-color",trimMeanDifference:"trim-md",trimStandardDeviation:"trim-sd",trimTolerance:"trim-tol",trimImage:"trim",textLeading:"txt-lead",textTracking:"txt-track",typesettingEndpoint:"~text",watermarkAlignment:"mark-align",watermarkAlpha:"mark-alpha",watermarkBaseURL:"mark-base",watermarkFitMode:"mark-fit",watermarkHeight:"mark-h",watermarkPadding:"mark-pad",watermarkRotation:"mark-rot",watermarkScale:"mark-sclae",watermarkTile:"mark-tile",watermarkWidth:"mark-w",watermarkXPosition:"mark-x",watermarkYPosition:"mark-y",watermarkImageURL:"mark"},valueMap:{fit:{fill:"scale",inside:"max",outside:"min",cover:"crop",contain:"fill",clamp:"clamp",clip:"clip",facearea:"facearea",fillMax:"fillmax"},format:{gif:"gif",jp2:"jp2",jpg:"jpg",json:"json",jxr:"jxr",pjpg:"pjpg",mp4:"mp4",png:"png",png8:"png8",png32:"png32",webm:"webm",webp:"webp",blurhash:"blurhash"}},joinWith:"&",formatter:(t,e)=>`${t}=${e}`}),E="https://images.unsplash.com/",ye=(t,{modifiers:e={},baseURL:r=E}={})=>{const i=xe(e);return{url:T(Y(t,r),U("?"+i))}},ve=Object.freeze(Object.defineProperty({__proto__:null,getImage:ye,unsplashCDN:E},Symbol.toStringTag,{value:"Module"})),_e=z({keyMap:{format:"f",fit:"fit",width:"w",height:"h",resize:"s",quality:"q",background:"b"},joinWith:"&",formatter:(t,e)=>P(t)+"_"+P(e)}),Se=(t,{modifiers:e={},baseURL:r}={},i)=>{e.width&&e.height&&(e.resize=`${e.width}x${e.height}`,delete e.width,delete e.height);const o=_e(e)||"_";return r||(r=k(i.options.nuxt.baseURL,"/_ipx")),{url:k(r,o,X(t))}},ke=!0,je=!0,qe=Object.freeze(Object.defineProperty({__proto__:null,getImage:Se,supportsAlias:je,validateDomains:ke},Symbol.toStringTag,{value:"Module"}
1)),H={screens:{xs:320,sm:640,md:768,lg:1024,xl:1280,xxl:1536,"2xl":1536},presets:{},provider:"ipx",domains:[],alias:{},densities:[1,2],format:["webp"]};H.providers={sanity:{provider:we,defaults:{projectId:"0njcd2ww",dataset:"production"}},unsplash:{provider:ve,defaults:{}},ipx:{provider:qe,defaults:{}}};const F=()=>{const t=G(),e=C();return e.$img||e._img||(e._img=se({...H,nuxt:{baseURL:t.app.baseURL},runtimeConfig:t}))};function ze(t){var e;(e=performance==null?void 0:performance.mark)==null||e.call(performance,"mark_feature_usage",{detail:{feature:t}})}const $e={src:{type:String,required:!1},format:{type:String,required:!1},quality:{type:[Number,String],required:!1},background:{type:String,required:!1},fit:{type:String,required:!1},modifiers:{type:Object,required:!1},preset:{type:String,required:!1},provider:{type:String,required:!1},sizes:{type:[Object,String],required:!1},densities:{type:String,required:!1},preload:{type:[Boolean,Object],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},alt:{type:String,required:!1},referrerpolicy:{type:String,required:!1},usemap:{type:String,required:!1},longdesc:{type:String,required:!1},ismap:{type:Boolean,required:!1},loading:{type:String,required:!1,validator:t=>["lazy","eager"].includes(t)},crossorigin:{type:[Boolean,String],required:!1,validator:t=>["anonymous","use-credentials","",!0,!1].includes(t)},decoding:{type:String,required:!1,validator:t=>["async","auto","sync"].includes(t)},nonce:{type:[String],required:!1}},Pe=t=>{const e=x(()=>({provider:t.provider,preset:t.preset})),r=x(()=>({width:w(t.width),height:w(t.height),alt:t.alt,referrerpolicy:t.referrerpolicy,usemap:t.usemap,longdesc:t.longdesc,ismap:t.
1ismap,crossorigin:t.crossorigin===!0?"anonymous":t.crossorigin||void 0,loading:t.loading,decoding:t.decoding,nonce:t.nonce})),i=F(),o=x(()=>({...t.modifiers,width:w(t.width),height:w(t.height),format:t.format,quality:t.quality||i.options.quality,background:t.background,fit:t.fit}));return{options:e,attrs:r,modifiers:o}},Me={...$e,placeholder:{type:[Boolean,String,Number,Array],required:!1},placeholderClass:{type:String,required:!1},custom:{type:Boolean,required:!1}},We=["src"],Ie=O({__name:"NuxtImg",props:Me,emits:["load","error"],setup(t,{emit:e}){const r=t,i=Q(),o=e,n=!1,a=F(),l=Pe(r),s=q(!1),d=q(),u=x(()=>a.getSizes(r.src,{...l.options.value,sizes:r.sizes,densities:r.densities,modifiers:{...l.modifiers.value,width:w(r.width),height:w(r.height)}})),m=x(()=>{const c={...l.attrs.value,"data-nuxt-img":""};return(!r.placeholder||s.value)&&(c.sizes=u.value.sizes,c.srcset=u.value.srcset),c}),g=x(()=>{let c=r.placeholder;if(c===""&&(c=!0),!c||s.value)return!1;if(typeof c=="string")return c;const p=Array.isArray(c)?c:typeof c=="number"?[c,c]:[10,10];return a(r.src,{...l.modifiers.value,width:p[0],height:p[1],quality:p[2]||50,blur:p[3]||3},l.options.value)}),h=x(()=>r.sizes?u.value.src:a(r.src,l.modifiers.value,l.options.value)),y=x(()=>g.value?g.value:h.value),_=C().isHydrating;return Z(()=>{if(g.value||r.custom){const c=new Image;h.value&&(c.src=h.value),r.sizes&&(c.sizes=u.value.sizes||"",c.srcset=u.value.srcset),c.onload=p=>{s.value=!0,o("load",p)},c.onerror=p=>{o("error",p)},ze("nuxt-image");return}d.value&&(d.value.complete&&_&&(d.value.getAttribute("data-error")?o("error",new Event("error")):o("load",new Event("load"))),d.value.onload=c=>{o("load",c)},d.value.onerror=c=>{o("error",c)})}),(c,p)=>c.custom?V(c.$slots,"default",K(M({key:1},{...S(n)?{onerror:"this.setAttribute('data-error', 1)"}:{},imgAttrs:{...m.value,...S(i)},isLoaded:s.value,src:y.value}))):(B(),J("img",M({key:0,ref_key:"imgEl",ref:d,class:g.value&&!s.value?c.placeholderClass:void 0},{...S(n)?{onerror:"this.setAttribute('data-error', 1)"}:{},...m.value,...S(i)},{src:y.value}),null,16,We))}}),Ae=Object.assign(Ie,{__name:"NuxtImg"}),Re=(t,e)=>{const r=t.top,i=1-t.bottom,o=t.left,a=1-t.right-o,l=i-r;if(a<=0||l<=0)return"50% 50%";const s=(e.x-o)/a,d=(e.y-r)/l,u=Math.min(Math.max(s,0),1),m=Math.min(Math.max(d,0),1),g=u*100,h=m*100;return`${g.toFixed(2)}% ${h.toFixed(2)}%`},Ce=O({__name:"Image",props:{src:{},alt:{},crop:{},hotspot:{},sizes:{},preset:{},densities:{},modifiers:{},loading:{},preload:{type:Boolean},quality:{},width:{},height:{}},setup(t,{expose:e}){const r=t,i=typeof r.src=="string"?r.src.includes("unsplash")?"unsplash":void 0:"sanity",o=q();e({$img:o});const n=x(()=>{var u,m,g,h;const s=r.hotspot;if((s==null?void 0:s.x)==null||(s==null?void 0:s.y)==null)return;const d={top:((u=r.crop)==null?void 0:u.top)??0,bottom:((m=r.crop)==null?void 0:m.bottom)??0,left:((g=r.crop)==null?void 0:g.left)??0,right:((h=r.crop)==null?void 0:h.right)??0};return Re(d,{x:s.x,y:s.y})}),a={...r,style:n.value?{"object-position":n.value}:void 0,modifiers:{...r.modifiers||{},crop:r.crop,hotspot:r.hotspot},quality:r.quality||80,loading:(r==null?void 0:r.loading)||"lazy",provider:i,src:i=="sanity"&&typeof r.src!="string"?r.src._ref:r.src,alt:r.alt??"",type:void 0,width:r.width,height:r.height,ref:s=>{o.value=s},sizes:r.sizes==="100vw"?"xs:100vw sm:100vw md:100vw lg:100vw xl:100vw 2xl:100vw":r.sizes},l=()=>te(Ae,a);return(s,d)=>(B(),ee(l))}}),Be=Object.assign(Ce,{__name:"ResolversImage"});export{Be as _,F as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.