1import{r as e,t}from"./rolldown-runtime-S-ySWqyJ.js";import{i as n,r}from"./framework-CXnKph_e.js";var i=e(t(((e,t)=>{(function(e){let n=`(0?\\d+|0x[a-f0-9]+)`,r={fourOctet:RegExp(`^${n}\\.${n}\\.${n}\\.${n}$`,`i`),threeOctet:RegExp(`^${n}\\.${n}\\.${n}$`,`i`),twoOctet:RegExp(`^${n}\\.${n}$`,`i`),longValue:RegExp(`^${n}$`,`i`)},i=RegExp(`^0[0-7]+$`,`i`),a=RegExp(`^0x[a-f0-9]+$`,`i`),o=`%[0-9a-z]{1,}`,s=`(?:[0-9a-f]+::?)+`,c={zoneIndex:new RegExp(o,`i`),native:RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${o})?$`,`i`),deprecatedTransitional:RegExp(`^(?:::)(${n}\\.${n}\\.${n}\\.${n}(${o})?)$`,`i`),transitional:RegExp(`^((?:${s})|(?:::)(?:${s})?)${n}\\.${n}\\.${n}\\.${n}(${o})?$`,`i`)};function l(e,t){if(e.indexOf(`::`)!==e.lastIndexOf(`::`))return null;let n=0,r=-1,i=(e.match(c.zoneIndex)||[])[0],a,o;for(i&&(i=i.substring(1),e=e.replace(/%.+$/,``));(r=e.indexOf(`:`,r+1))>=0;)n++;if(e.substr(0,2)===`::`&&n--,e.substr(-2,2)===`::`&&n--,n>t)return null;for(o=t-n,a=`:`;o--;)a+=`0:`;return e=e.replace(`::`,a),e[0]===`:`&&(e=e.slice(1)),e[e.length-1]===`:`&&(e=e.slice(0,-1)),t=(function(){let t=e.split(`:`),n=[];for(let e=0;e<t.length;e++)n.push(parseInt(t[e],16));return n})(),{parts:t,zoneId:i}}function u(e,t,n,r){if(e.length!==t.length)throw Error(`ipaddr: cannot match CIDR for objects with different lengths`);let i=0,a;for(;r>0;){if(a=n-r,a<0&&(a=0),e[i]>>a!==t[i]>>a)return!1;r-=n,i+=1}return!0}function d(e){if(a.test(e))return parseInt(e,16);if(e[0]===`0`&&!isNaN(parseInt(e[1],10))){if(i.test(e))return parseInt(e,8);throw Error(`ipaddr: cannot parse ${e} as octal`)}return parseInt(e,10)}function f(e,t){for(;e.length<t;)e=`0${e}`;return e}let p={};p.IPv4=(function(){function e(e){if(e.length!==4)throw Error(`ipaddr: ipv4 octet count should be 4`);let t,n;for(t=0;t<e.length;t++)if(n=e[t],!(0<=n&&n<=255))throw Error(`ipaddr: ipv4 octet should fit in 8 bits`);this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,18,0,0]),15],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]],as112:[[new e([192,175,48,0]),24],[new e([192,31,196,0]),24]],amt:[[new e([192,52,193,0]),24]]},e.prototype.kind=function(){return`ipv4`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv4`)throw Error(`ipaddr: cannot match ipv4 address with non-ipv4 one`);return u(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},r,i,a;for(r=3;r>=0;--r)if(i=this.octets[r],i in n){if(a=n[i],t&&a!==0)return null;a!==8&&(t=!0),e+=a}else return null;return 32-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return p.IPv6.parse(`::ffff:${this.toString()}`)},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(`.`)},e})(),p.IPv4.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<4;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch{throw Error(`ipaddr: the address does not have IPv4 CIDR format`)}},p.IPv4.isIPv4=function(e){return this.parser(e)!==null},p.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch{return!1}},p.IPv4.isValidCIDR=function(e){try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv4.isValidFourPartDecimal=function(e){return!!(p.IPv4.isValid(e)&&e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},p.IPv4.isValidCIDRFourPartDecimal=function(e){let t=e.match(/^(.+)\/(\d+)$/);return!p.IPv4.isValidCIDR(e)||!t?!1:p.IPv4.isValidFourPartDecimal(t[1])},p.IPv4.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch{throw Error(`ipaddr: the address does not have IPv4 CIDR format`)}},p.IPv4.parse=function(e){let t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like an IPv4 Address`);return new this(t)},p.IPv4.parseCIDR=function(e){let t;if(t=e.match(/^(.+)\/(\d+)$/)){let e=parseInt(t[2]);if(e>=0&&e<=32){let n=[this.parse(t[1]),e];return Object.defineProperty(n,`toString`,{value:function(){return this.join(`/`)}}),n}}throw Error(`ipaddr: string is not formatted like an IPv4 CIDR range`)},p.IPv4.parser=function(e){let t,n,i;if(t=e.match(r.fourOctet))return(function(){let e=t.slice(1,6),r=[];for(let t=0;t<e.length;t++)n=e[t],r.push(d(n));return r})();if(t=e.match(r.longValue)){if(i=d(t[1]),i>4294967295||i<0)throw Error(`ipaddr: address outside defined range`);return(function(){let e=[],t;for(t=0;t<=24;t+=8)e.push(i>>t&255);return e})().reverse()}else if(t=e.match(r.twoOctet))return(function(){let e=t.slice(1,4),n=[];if(i=d(e[1]),i>16777215||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(i>
1>16&255),n.push(i>>8&255),n.push(i&255),n})();else if(t=e.match(r.threeOctet))return(function(){let e=t.slice(1,5),n=[];if(i=d(e[2]),i>65535||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(d(e[1])),n.push(i>>8&255),n.push(i&255),n})();else return null},p.IPv4.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),e<0||e>32)throw Error(`ipaddr: invalid IPv4 prefix length`);let t=[0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<4&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.IPv6=(function(){function e(e,t){let n,r;if(e.length===16)for(this.parts=[],n=0;n<=14;n+=2)this.parts.push(e[n]<<8|e[n+1]);else if(e.length===8)this.parts=e;else throw Error(`ipaddr: ipv6 part count should be 8 or 16`);for(n=0;n<this.parts.length;n++)if(r=this.parts[n],!(0<=r&&r<=65535))throw Error(`ipaddr: ipv6 part should fit in 16 bits`);t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],deprecatedSiteLocal:[new e([65216,0,0,0,0,0,0,0]),10],discard:[new e([256,0,0,0,0,0,0,0]),64],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[[new e([100,65435,0,0,0,0,0,0]),96],[new e([100,65435,1,0,0,0,0,0]),48]],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],benchmarking:[new e([8193,2,0,0,0,0,0,0]),48],amt:[new e([8193,3,0,0,0,0,0,0]),32],as112v6:[[new e([8193,4,274,0,0,0,0,0]),48],[new e([9760,79,32768,0,0,0,0,0]),48]],deprecatedOrchid:[new e([8193,16,0,0,0,0,0,0]),28],orchid2:[new e([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new e([8193,48,0,0,0,0,0,0]),28],segmentRouting:[new e([24320,0,0,0,0,0,0,0]),16],reserved:[[new e([8193,0,0,0,0,0,0,0]),23],[new e([8193,3512,0,0,0,0,0,0]),32],[new e([16383,0,0,0,0,0,0,0]),20]]},e.prototype.isIPv4MappedAddress=function(){return this.range()===`ipv4Mapped`},e.prototype.kind=function(){return`ipv6`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv6`)throw Error(`ipaddr: cannot match ipv6 address with non-ipv6 one`);return u(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},r,i;for(let a=7;a>=0;--a)if(r=this.parts[a],r in n){if(i=n[r],t&&i!==0)return null;i!==16&&(t=!0),e+=i}else return null;return 128-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){let e,t=[],n=this.parts;for(let r=0;r<n.length;r++)e=n[r],t.push(e>>8),t.push(e&255);return t},e.prototype.toFixedLengthString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(f(this.parts[t].toString(16),4));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw Error(`ipaddr: trying to convert a generic ipv6 address to ipv4`);let e=this.parts.slice(-2),t=e[0],n=e[1];return new p.IPv4([t>>8,t&255,n>>8,n&255])},e.prototype.toNormalizedString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(this.parts[t].toString(16));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toRFC5952String=function(){let e=/((^|:)(0(:|$)){2,})/g,t=this.toNormalizedString(),n=0,r=-1,i;for(;i=e.exec(t);)i[0].length>r&&(n=i.index,r=i[0].length);return r<0?t:`${t.substring(0,n)}::${t.substring(n+r)}`},e.prototype.toString=function(){return this.toRFC5952String()},e})(),p.IPv6.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<16;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format (${e})`)}},p.IPv6.isIPv6=function(e){return this.parser(e)!==null},p.IPv6.isValid=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{let t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch{return!1}},p.IPv6.isValidCIDR=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv6.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<16;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format (${e})`)}},p.IPv6.parse=function(e){let t=this.parser(e);if(t.parts===null)throw Error(`ipaddr: string is not formatted like an IPv6 Address`);return new this(t.parts,t.zoneId)},p.IPv6.parseCIDR=function(e){let t,n,r;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=128))return r=[this.parse(n[1]),t],Object.defineProperty(r,`toString`,{value:function(){return this.join(`/`)}}),r;throw Error(`ipaddr: string is not formatted like an IPv6 CIDR range`)},p.IPv6.parser=function(e){let t,n,r,i,a,o;if(r=e.match(c.deprecatedTransitional))return this.parser(`::ffff:${r[1]}`);if(c.native.test(e))return l(e,8);if((r=e.match(c.transitional))&&(o=r[6]||``,t=r[1],r[1].endsWith(`::`)||(t=t.
1slice(0,-1)),t=l(t+o,6),t.parts)){for(a=[parseInt(r[2]),parseInt(r[3]),parseInt(r[4]),parseInt(r[5])],n=0;n<a.length;n++)if(i=a[n],!(0<=i&&i<=255))return null;return t.parts.push(a[0]<<8|a[1]),t.parts.push(a[2]<<8|a[3]),{parts:t.parts,zoneId:t.zoneId}}return null},p.IPv6.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),e<0||e>128)throw Error(`ipaddr: invalid IPv6 prefix length`);let t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<16&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.fromByteArray=function(e){let t=e.length;if(t===4)return new p.IPv4(e);if(t===16)return new p.IPv6(e);throw Error(`ipaddr: the binary input is neither an IPv6 nor IPv4 address`)},p.isValid=function(e){return p.IPv6.isValid(e)||p.IPv4.isValid(e)},p.isValidCIDR=function(e){return p.IPv6.isValidCIDR(e)||p.IPv4.isValidCIDR(e)},p.parse=function(e){if(p.IPv6.isValid(e))return p.IPv6.parse(e);if(p.IPv4.isValid(e))return p.IPv4.parse(e);throw Error(`ipaddr: the address has neither IPv6 nor IPv4 format`)},p.parseCIDR=function(e){try{return p.IPv6.parseCIDR(e)}catch{try{return p.IPv4.parseCIDR(e)}catch{throw Error(`ipaddr: the address has neither IPv6 nor IPv4 CIDR format`)}}},p.process=function(e){let t=this.parse(e);return t.kind()===`ipv6`&&t.isIPv4MappedAddress()?t.toIPv4Address():t},p.subnetMatch=function(e,t,n){let r,i,a,o;for(i in n??=`unicast`,t)if(Object.prototype.hasOwnProperty.call(t,i)){for(a=t[i],a[0]&&!(a[0]instanceof Array)&&(a=[a]),r=0;r<a.length;r++)if(o=a[r],e.kind()===o[0].kind()&&e.match.apply(e,o))return i}return n},t!==void 0&&t.exports?t.exports=p:e.ipaddr=p})(e)}))(),1);function a(e,t){let n=`^`,r=t===`.`?`.+`:`.*`,i=t===`.`?`[^.]+`:`[^/]+`,a=e.split(`**`);for(let e=0;e<a.length;e++){e>0&&(n+=r);let t=a[e].split(`*`);for(let e=0;e<t.length;e++)e>0&&(n+=i),n+=t[e].replace(/[.+?^${}()|[\]\\]/g,`\\$&`)}return n+=`$`,new RegExp(n)}function o(e,t){return!(e.protocol!==void 0&&e.protocol.replace(/:$/,``)!==t.protocol.replace(/:$/,``)||e.port!==void 0&&e.port!==t.port||!a(e.hostname,`.`).test(t.hostname)||e.search!==void 0&&e.search!==t.search||!a(e.pathname??`**`,`/`).test(t.pathname))}function s(e,t,n){return e.some(e=>n.hostname===e)||t.some(e=>o(e,n))}function c(e){e.startsWith(`[`)&&e.endsWith(`]`)&&(e=e.slice(1,-1));try{let t=i.default.parse(e);return t instanceof i.default.IPv6&&t.isIPv4MappedAddress()?t.toIPv4Address().range()!==`unicast`:t.range()!==`unicast`}catch{return!1}}var l=e(n(),1);function u(e,t){let n=(0,l.useRef)(null),r=(0,l.useRef)(null);return(0,l.useCallback)(i=>{if(i===null){let e=n.current;e&&(n.current=null,e());let t=r.current;t&&(r.current=null,t())}else e&&(n.current=d(e,i)),t&&(r.current=d(t,i))},[e,t])}function d(e,t){if(typeof e==`function`){let n=e(t);return typeof n==`function`?n:()=>e(null)}else return e.current=t,()=>{e.current=null}}var f=r(),p=new Set([`style`]),m={srcset:`srcSet`,fetchpriority:`use`in l?`fetchPriority`:`fetchpriority`},h=e=>e.startsWith(`data-`)||e.startsWith(`aria-`)?e:m[e]||e.replace(/-./g,e=>e[1].toUpperCase());function g(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[h(e),p.has(e)&&t&&typeof t!=`string`?g(t):t]))}var _=(e,t)=>
1{if(!(!e||!t))switch(t){case`constrained`:return`(min-width: ${e}px) ${e}px, 100vw`;case`fixed`:return`${e}px`;case`fullWidth`:return`100vw`;default:return}},v=e=>e||e===0?`${e}px`:void 0,y=({width:e,height:t,aspectRatio:n,layout:r,objectFit:i=`cover`,background:a})=>{let o=[[`object-fit`,i]];return a?.startsWith(`https:`)||a?.startsWith(`http:`)||a?.startsWith(`data:`)||a?.startsWith(`/`)?(o.push([`background-image`,`url(${a})`]),o.push([`background-size`,`cover`]),o.push([`background-repeat`,`no-repeat`])):o.push([`background`,a]),r===`fixed`&&(o.push([`width`,v(e)]),o.push([`height`,v(t)])),r===`constrained`&&(o.push([`max-width`,v(e)]),o.push([`max-height`,v(t)]),o.push([`aspect-ratio`,n?`${n}`:void 0]),o.push([`width`,`100%`])),r===`fullWidth`&&(o.push([`width`,`100%`]),o.push([`aspect-ratio`,n?`${n}`:void 0]),o.push([`height`,v(t)])),Object.fromEntries(o.filter(([,e])=>e))},b=[6016,5120,4480,3840,3200,2560,2048,1920,1668,1280,1080,960,828,750,640],x=24,S=({width:e,layout:t,resolutions:n=b})=>{if(t===`fullWidth`)return n;if(!e)return[];let r=e*2;return t===`fixed`?[e,r]:t===`constrained`?[e,r,...n.filter(e=>e<r)]:[]},C=({src:e,width:t,layout:n=`constrained`,height:r,aspectRatio:i,breakpoints:a,format:o})=>(a||=S({width:t,layout:n}),a.sort((e,t)=>e-t).map(t=>{let n;return r&&i&&(n=Math.round(t/i)),{url:e,width:t,height:n,format:o}})),w=e=>{let{src:t,transformer:n,operations:r}=e;return n?C(e).map(({url:i,...a})=>`${n(t,{...r,...a},e.options)?.toString()} ${a.width}w`).join(`, 2`):``};function T({width:e,height:t,priority:n,layout:r=`constrained`,aspectRatio:i,...a}){return e=e&&Number(e)||void 0,t=t&&Number(t)||void 0,n?(a.loading||=`eager`,a.fetchpriority||=`high`):(a.loading||=`lazy`,a.decoding||=`async`),a.alt===``&&(a.role||=`presentation`),i?e?t||=Math.round(e/i):t&&(e=Math.round(t*i)):e&&t&&(i=e/t),{width:e,height:t,aspectRatio:i,layout:r,...a}}function E(e){let{src:t,transformer:n,background:r,layout:i,objectFit:a,breakpoints:o,width:s,height:c,aspectRatio:l,unstyled:u,operations:d,options:f,...p}=T(e);if(n&&r===`auto`){let e=l?Math.round(x/l):void 0,i=n(t,{width:x,height:e},f);i&&(r=i.toString())}let m={width:s,height:c,aspectRatio:l,layout:i,objectFit:a,background:r};if(p.sizes||=_(s,i),u||(p.style={...y(m),...p.style}),n){p.srcset=w({src:t,width:s,height:c,aspectRatio:l,layout:i,breakpoints:o,transformer:n,operations:d,options:f});let e=n(t,{...d,width:s,height:c},f);e&&(t=e),(i===`fullWidth`||i===`constrained`)&&(s=void 0,c=void 0)}return{...p,src:t?.toString(),width:s,height:c}}function D(e){return e?e.startsWith(`image/`)?{format:e.slice(6),mimeType:e}:{format:e,mimeType:`image/${e===`jpg`?`jpeg`:e}`}:{}}function O({media:e,type:t,...n}){let{src:r,transformer:i,layout:a,breakpoints:o,width:s,height:c,aspectRatio:l,sizes:u,loading:d,decoding:f,operations:p,options:m,...h}=T(n);if(!i)return{};let{format:g,mimeType:v}=D(t);u||=_(s,a);let y=w({src:r,width:s,height:c,aspectRatio:l,layout:a,breakpoints:o,transformer:i,format:g,operations:p,options:m}),b=i(r,{...p,width:s,height:c},m);b&&(r=b);let x={...h,sizes:u,srcset:y};return e&&(x.media=e),v&&(x.type=v),x}var k={"images.ctfassets.net":`contentful`,"cdn.builder.io":`builder.io`,"images.prismic.io":`imgix`,"www.datocms-assets.com":`imgix`,"cdn.sanity.io":`imgix`,"images.unsplash.com":`imgix`,"cdn.shopify.com":`shopify`,"s7d1.scene7.com":`scene7`,"ip.keycdn.com":`keycdn`,"assets.caisy.io":`bunny`,"images.contentstack.io":`contentstack`,"ucarecdn.com":`uploadcare`,"imagedelivery.net":`cloudflare_images`,"wsrv.nl":`wsrv`},A={"imgix.net":`imgix`,"wp.com":`wordpress`,"files.wordpress.com":`wordpress`,"b-cdn.net":`bunny`,"storyblok.com":`storyblok`,"kc-usercontent.com":`kontent.ai`,"cloudinary.com":`cloudinary`,"kxcdn.com":`keycdn`,"imgeng.in":`imageengine`,"imagekit.io":`imagekit`,"cloudimg.io":`cloudimage`,"ucarecdn.com":`uploadcare`,"supabase.co":`supabase`,"graphassets.com":`hygraph`},j={"/cdn-cgi/image/":`cloudflare`,"/cdn-cgi/imagedelivery/":`cloudflare_images`,"/_next/image":`nextjs`,"/_vercel/image":`vercel`,"/is/image":`scene7`,"/_ipx/":`ipx`,"/_image":`astro`,"/.netlify/images":`netlify`,"/storage/v1/object/public/":`supabase`,"/storage/v1/render/image/public/":`supabase`,"/v1/storage/buckets/":`appwrite`};function M(e){if(!e)return e;let t=Number(e);return isNaN(t)?e:Math.round(t)}var N=e=>{let{pathname:t,search:n}=e;return`${t}${n}`},P=e=>e.hostname===`n`?N(e):e.toString(),F=(e,t)=>typeof e==`string`?new URL(e,t??`http://n/`):e,I=e=>e===` `?`+`:`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`),L=e=>e?.startsWith(`/`)?e.slice(1):e,R=e=>e?.endsWith(`/`)?e.slice(0,-1):e,ee=e=>e?.endsWith(`/`)?e:`${e}/`,te=(e,t)=>
2{let n=I(e),r=I(t);function i(i){return encodeURIComponent(i).replaceAll(e,n).replaceAll(t,r)}function a(t,n){return`${i(t)}${e}${i(String(n))}`}return e=>(Array.isArray(e)?e:Object.entries(e)).flatMap(([e,t])=>t==null?[]:Array.isArray(t)?t.map(t=>a(e,t)):a(e,t)).join(t)},ne=(e,t)=>e===`=`&&t===`&`?oe:n=>{let r=n.toString();return Object.fromEntries(r.split(t).map(t=>{let[n,r]=t.split(e);return[decodeURI(n),decodeURI(r)]}))};function re(e,t=4e3,n=4e3){let{width:r,height:i}=e;return r=Number(r)||void 0,i=Number(i)||void 0,r&&r>t&&(i&&=Math.round(i*t/r),r=t),i&&i>n&&(r&&=Math.round(r*n/i),i=n),{width:r,height:i}}function z(e){let t=F(e),n=Object.fromEntries(t.searchParams.entries());for(let e in[`width`,`height`,`quality`]){let t=n[e];if(t){let r=Number(t);isNaN(r)||(n[e]=r)}}return t.search=``,{operations:n,src:P(t)}}function B({keyMap:e={},formatMap:t={},defaults:n={}},r){r.format&&r.format in t&&(r.format=t[r.format]),r.width&&=M(r.width),r.height&&=M(r.height);for(let t in e){if(!Object.prototype.hasOwnProperty.call(e,t))continue;let n=t;if(e[n]===!1){delete r[n];continue}e[n]&&r[n]&&(r[e[n]]=r[n],delete r[n])}for(let t in n){if(!Object.prototype.hasOwnProperty.call(n,t))continue;let i=t,a=n[i];if(!r[i]&&a!==void 0){if(e[i]===!1)continue;let t=e[i]??i;if(t in r)continue;r[t]=a}}return r}var ie=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[t,e]));function ae({keyMap:e={},formatMap:t={},defaults:n={}},r){let i=B({keyMap:ie(e),formatMap:ie(t),defaults:n},r);i.width&&=M(i.width),i.height&&=M(i.height);let a=Number(i.quality);return isNaN(a)||(i.quality=a),i}var oe=e=>{let t=F(e);return Object.fromEntries(t.searchParams.entries())};function V({kvSeparator:e=`=`,paramSeparator:t=`&`,...n}={}){let r=te(e,t);return e=>r(B(n,e))}function se({kvSeparator:e=`=`,paramSeparator:t=`&`,defaults:n,...r}={}){let i=ne(e,t);return e=>ae(r,e?i(e):{})}function H(e){return{operationsGenerator:V(e),operationsParser:se(e)}}function ce(e){if(e!=null)try{return!!JSON.parse(e?.toString())}catch{return!!e}}var le=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0));function U(e,t){return((n,r,i)=>{let a=e(n,i);return a?t(a.src,{...a.operations,...le(r)},{...a.options,...i}):t(n,r,i)})}var ue=new Map(Object.entries(k)),de=Object.entries(A),fe=Object.entries(j);function W(e){return pe(e)||G(e)}function pe(e){if(typeof e==`string`&&!e.startsWith(`https://`))return!1;let{hostname:t}=F(e);return ue.get(t)||de.find(([e])=>t.endsWith(e))?.[1]||!1}function G(e){let{pathname:t}=F(e);return fe.find(([e])=>t.startsWith(e))?.[1]||!1}var me=`/view?`,he=`/preview?`,{operationsGenerator:ge,operationsParser:_e}=H({keyMap:{format:`output`},kvSeparator:`=`,paramSeparator:`&`}),ve=U(e=>{if(G(e)!==`appwrite`)return null;let t=F(e),n=_e(t);delete n.project;let r=t.searchParams.get(`project`)??``;return t.search=``,t.searchParams.append(`project`,r),{src:t.href,operations:n}},(e,t)=>{let n=F(e.toString().replace(me,he)),r=n.searchParams.get(`project`)??``;return n.search=ge(t),n.searchParams.append(`project`,r),P(n)}),ye=`/_image`,{operationsParser:be,operationsGenerator:xe}=H({keyMap:{format:`f`,width:`w`,height:`h`,quality:`q`},defaults:{fit:`cover`}}),K=(e,t,n)=>{let r=F(`${R(n?.baseUrl??``)}${n?.endpoint??ye}`);return r.search=xe(t),r.searchParams.set(`href`,e.toString()),P(r)},Se=e=>{let t=F(e),n=t.searchParams.get(`href`);return n?(t.searchParams.delete(`href`),{src:n,operations:be(t),options:{baseUrl:t.origin}}):null},Ce=(e,t,n={})=>{if(F(e).pathname!==(n?.endpoint??ye))return K(e,t,n);let r=Se(e);return r?(n.baseUrl??=r.options.baseUrl,K(r.src,{...r.operations,...t},n)):K(e,t,n)},we=V({defaults:{fit:`cover`,format:`webp`,sharp:!0}}),Te=U(z,(e,t)=>{let n=we(t),r=F(e);return r.search=n,P(r)}),Ee=V({keyMap:{format:`output`}}),De=U(z,(e,t)=>{let n=Ee(t),r=F(e);return r.search=n,P(r)}),Oe=(e,t)=>{let{width:n,height:r}=t;return n&&r&&(t.aspect_ratio??=`${Math.round(Number(n))}:${Math.round(Number(r))}`),De(e,t)},{operationsGenerator:ke,operationsParser:Ae}=H({keyMap:{format:`f`},defaults:{format:`auto`,fit:`cover`},formatMap:{jpg:`jpeg`},kvSeparator:`=`,paramSeparator:`,`}),je=U((e,t)=>{if(G(e)!==`cloudflare`)return null;let n=F(e),[,,,r,...i]=n.pathname.split(`/`),a=Ae(r);return{src:P(F(i.join(`/`))),operations:a,options:{domain:t?.domain??(n.hostname===`n`?void 0:n.hostname)}}},(e,t,n)=>{let r=ke(t),i=F(n?.domain?`https://${n.domain}`:`/`);return i.pathname=`/cdn-cgi/image/${r}/${L(e.toString())}`,P(i)}),Me=/https?:\/\/(?<host>[^\/]+)\/cdn-cgi\/imagedelivery\/(?<accountHash>[^\/]+)\/(?<imageId>[^\/]+)\/*(?<transformations>[^\/]+)*$/g,Ne=/https?:\/\/(?<host>imagedelivery.net)\/(?<accountHash>[^\/]+)\/(?<imageId>[^\/]+)\/*(?<transformations>[^\/]+)*$/g,{operationsGenerator:Pe,operationsParser:Fe}=H({keyMap:{width:`w`,height:`h`,format:`f`},defaults:{fit:`cover`},kvSeparator:`=`,paramSeparator:`,`});function Ie(e,t){let{host:n,accountHash:r,imageId:i}=e;if(!n||!r||!i)throw Error(`Missing required Cloudflare Images options`);return[`https:/`,...n===`imagedelivery.net`?[n]:[n,`cdn-cgi`,`imagedelivery`],r,i,t].filter(
2Boolean).join(`/`)}var Le=(e,t,n={})=>P(F(Ie(n,Pe(t)))),Re=e=>{let t=F(e),n=[...t.toString().matchAll(Me),...t.toString().matchAll(Ne)];if(!n[0]?.groups)return null;let{host:r,accountHash:i,imageId:a,transformations:o}=n[0].groups,s=Fe(o||``),c={host:r,accountHash:i,imageId:a};return{src:Ie(c),operations:s,options:c}},ze=(e,t,n={})=>{let r=Re(e);if(!r)throw Error(`Invalid Cloudflare Images URL`);let i={...r.operations,...t};return Le(r.src,i,{...r.options,...n})},{operationsGenerator:Be,operationsParser:Ve}=H({keyMap:{format:`force_format`,width:`w`,height:`h`,quality:`q`},defaults:{org_if_sml:1}}),He=U((e,t={})=>{let n=F(e);if(W(n)!==`cloudimage`)return null;let r=Ve(n),i=n.pathname;return r.ci_url_encoded&&(i=decodeURIComponent(i),delete r.ci_url_encoded),t.token??=n.hostname.replace(`.cloudimg.io`,``),{src:`${n.protocol}/${i}`,operations:r,options:t}},(e,t={},{token:n}={})=>{if(!n)throw Error(`Token is required for Cloudimage URLs`+e);let r=e.toString();r=r.replace(/^https?:\/\//,``),r.includes(`?`)&&(t.ci_url_encoded=1,r=encodeURIComponent(r));let i=Be(t),a=new URL(`https://${n}.cloudimg.io/`);return a.pathname=r,a.search=i,a.toString()}),Ue=/https?:\/\/(?<host>res\.cloudinary\.com)\/(?<cloudName>[a-zA-Z0-9-]+)\/(?<assetType>image|video|raw)\/(?<deliveryType>upload|fetch|private|authenticated|sprite|facebook|twitter|youtube|vimeo)\/?(?<signature>s\-\-[a-zA-Z0-9]+\-\-)?\/?(?<transformations>(?:[^_\/]+_[^,\/]+,?)*)?\/(?:(?<version>v\d+)\/)?(?<id>(?:[^\s\/]+\/)*[^\s\/]+(?:\.[a-zA-Z0-9]+)?)$/,We=/https?:\/\/(?<host>(?<cloudName>[a-zA-Z0-9-]+)-res\.cloudinary\.com|[a-zA-Z0-9.-]+)\/(?<assetType>image|video|raw)\/(?<deliveryType>upload|fetch|private|authenticated|sprite|facebook|twitter|youtube|vimeo)\/?(?<signature>s\-\-[a-zA-Z0-9]+\-\-)?\/?(?<transformations>(?:[^_\/]+_[^,\/]+,?)*)?\/(?:(?<version>v\d+)\/)?(?<id>(?:[^\s\/]+\/)*[^\s\/]+(?:\.[a-zA-Z0-9]+)?)$/,{operationsGenerator:Ge,operationsParser:Ke}=H({keyMap:{width:`w`,height:`h`,format:`f`,quality:`q`},defaults:{format:`auto`,c:`lfill`},kvSeparator:`_`,paramSeparator:`,`});function qe({host:e,cloudName:t,assetType:n,deliveryType:r,signature:i,transformations:a,version:o,id:s}){return[`https:/`,e,e===`res.cloudinary.com`?t:void 0,n,r,i,a,o,s].filter(Boolean).join(`/`)}function Je(e){let t=e.toString().match(Ue);return t?.length||(t=e.toString().match(We)),t?.length?t.groups||{}:null}var Ye=(e,t)=>{let n=Je(e.toString());return n?(n.transformations=Ge({...Ke(n.transformations||``),...t}),qe(n)):e.toString()},Xe=V({keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`},defaults:{fit:`fill`}}),Ze=U(z,(e,t)=>{let n=Xe(t),r=new URL(e);return r.search=n,P(r)}),Qe=(e,t)=>{let{width:n,height:r}=re(t,4e3,4e3);return Ze(e,{...t,width:n,height:r})},$e=V({defaults:{auto:`webp`,disable:`upscale`}}),et=U(e=>{let{src:t,operations:n}=z(e)??{};if(!n||!t)return null;let{origin:r}=F(e);return{src:t,operations:n,options:{baseURL:r}}},(e,t,{baseURL:n=`https://images.contentstack.io/`}={})=>{t.width&&t.height&&(t.fit??=`crop`);let r=$e(t),i=F(e);return i.hostname===`n`&&(i.protocol=`https:`,i.hostname=new URL(n).hostname),i.search=r,P(i)}),tt=V({defaults:{withoutEnlargement:!0,fit:`cover`}}),nt=U(e=>{let t=z(e);
2if(t?.operations?.transforms&&typeof t.operations.transforms==`string`)try{t.operations.transforms=JSON.parse(t.operations.transforms)}catch{return null}return t},(e,t)=>{Array.isArray(t.transforms)&&(t.transforms=JSON.stringify(t.transforms));let n=tt(t),r=F(e);return r.search=n,P(r)}),rt=/https:\/\/(?<region>[a-z0-9-]+)\.graphassets\.com\/(?<envId>[a-zA-Z0-9]+)(?:\/(?<transformations>.*?))?\/(?<handle>[a-zA-Z0-9]+)$/,{operationsGenerator:it,operationsParser:at}=H({keyMap:{width:`width`,height:`height`,format:`format`},defaults:{format:`auto`,fit:`crop`}}),ot=e=>{let t=F(e).toString().match(rt);if(!t?.groups)return null;let{region:n,envId:r,handle:i,transformations:a}=t.groups,o={};return a&&a.split(`/`).forEach(e=>{let[t,n]=e.split(`=`);t===`resize`&&n?n.split(`,`).forEach(e=>{let[t,n]=e.split(`:`);t===`width`||t===`height`?o[t]=Number(n):t===`fit`&&(o.fit=n)}):t===`output`&&n?n.split(`,`).forEach(e=>{let[t,n]=e.split(`:`);t===`format`&&(o.format=n)}):t===`auto_image`&&(o.format=`auto`)}),{src:`https://${n}.graphassets.com/${r}/${i}`,operations:o,options:{region:n,envId:r,handle:i}}},st=U(ot,(e,t,n={})=>{let r=ot(e);if(!r)throw Error(`Invalid Hygraph URL`);let{region:i,envId:a,handle:o}={...r.options,...n},s=[];if(t.width||t.height){let e=[];t.width&&t.height?e.push(`fit:crop`):t.fit&&e.push(`fit:${t.fit}`),t.width&&e.push(`width:${t.width}`),t.height&&e.push(`height:${t.height}`),e.length&&s.push(`resize=${e.join(`,`)}`)}return t.format===`auto`||!t.format&&!r.operations.format?s.push(`auto_image`):t.format&&s.push(`output=format:${t.format}`),P(F(`${`https://${i}.graphassets.com/${a}`}${s.length>0?`/`+s.join(`/`):``}/${o}`))}),{operationsGenerator:ct,operationsParser:lt}=H({keyMap:{width:`w`,height:`h`,format:`f`},defaults:{m:`cropbox`},kvSeparator:`_`,paramSeparator:`/`}),ut=U(e=>{let t=F(e),n=t.searchParams.get(`imgeng`);if(!n)return null;let r=lt(n);return t.searchParams.delete(`imgeng`),{src:P(t),operations:r}},(e,t)=>{let n=ct(t),r=F(e);return r.searchParams.set(`imgeng`,n),P(r)}),{operationsGenerator:dt,operationsParser:ft}=H({keyMap:{width:`w`,height:`h`,format:`f`,quality:`q`},defaults:{c:`maintain_ratio`,fo:`auto`},kvSeparator:`-`,paramSeparator:`,`}),pt=U(e=>{let t=F(e),n=null,r=t.pathname;if(t.searchParams.has(`tr`))n=t.searchParams.get(`tr`),t.searchParams.delete(`tr`);else{let e=t.pathname.split(`/`),i=e.findIndex(e=>e.startsWith(`tr:`));i!==-1&&(n=e[i].slice(3),r=e.slice(0,i).concat(e.slice(i+1)).join(`/`))}if(!n)return null;t.pathname=r;let i=ft(n);return{src:P(t),operations:i}},(e,t)=>{let n=dt(t),r=F(e);return r.searchParams.set(`tr`,n),P(r)}),{operationsGenerator:mt,operationsParser:ht}=H({keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`},defaults:{fit:`min`,auto:`format`}}),gt=U(e=>{let t=F(e),n=ht(e);return t.search=``,{src:P(t),operations:n}},(e,t)=>{let n=mt(t),r=F(e);return r.search=n,r.searchParams.has(`fm`)&&r.searchParams.get(`auto`)===`format`&&r.searchParams.delete(`auto`),P(r)}),{operationsGenerator:_t,operationsParser:vt}=H({keyMap:{width:`w`,height:`h`,quality:`q`,format:`f`},defaults:{f:`auto`},kvSeparator:`_`,paramSeparator:`,`}
2),yt=(e,t,n)=>{t.width&&t.height&&(t.s=`${t.width}x${t.height}`,delete t.width,delete t.height);let r=_t(t),i=F(n?.baseURL??`/_ipx`);return i.pathname=`${R(i.pathname)}/${r}/${L(e.toString())}`,P(i)},bt=e=>{let t=F(e),[,n,r,...i]=t.pathname.split(`/`);if(!r||!i.length)return null;let a=vt(r);if(a.s){let[e,t]=a.s.split(`x`).map(Number);a.width=e,a.height=t,delete a.s}return{src:`/`+i.join(`/`),operations:a,options:{baseURL:`${t.origin}/${n}`}}},xt=(e,t,n)=>{let r=F(e),i=n?.baseURL;if(i&&r.toString().startsWith(i)||r.pathname.startsWith(`/_ipx`)){let n=bt(e);if(n)return yt(n.src,{...n.operations,...t},{baseURL:n.options.baseURL})}return yt(e,t,{baseURL:i})},St=[`enlarge`,`flip`,`flop`,`negate`,`normalize`,`grayscale`,`removealpha`,`olrepeat`,`progressive`,`adaptive`,`lossless`,`nearlossless`,`metadata`],{operationsGenerator:Ct,operationsParser:wt}=H({defaults:{fit:`cover`},formatMap:{jpg:`jpeg`}}),Tt=U(e=>{let t=F(e),n=wt(t);for(let e of St)n[e]!==void 0&&(n[e]=ce(n[e]));return t.search=``,{src:P(t),operations:n}},(e,t)=>{let n=F(e);for(let e of St)t[e]!==void 0&&(t[e]=+!!t[e]);return n.search=Ct(t),P(n)}),{operationsGenerator:Et,operationsParser:Dt}=H({formatMap:{jpg:`jpeg`},keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`}}),Ot=U(e=>{let t=F(e),n=Dt(t);return n.lossless!==void 0&&(n.lossless=ce(n.lossless)),t.search=``,{src:P(t),operations:n}},(e,t)=>{let n=F(e);return t.lossless!==void 0&&(t.lossless=+!!t.lossless),t.width&&t.height&&(t.fit=`crop`),n.search=Et(t),P(n)}),{operationsGenerator:kt,operationsParser:At}=H({defaults:{fit:`cover`},keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`}}),jt=U(e=>{if(G(e)!==`netlify`)return null;let t=F(e),n=At(t);delete n.url;let r=t.searchParams.get(`url`)||``;return t.search=``,{src:r,operations:n,options:{baseUrl:t.hostname===`n`?void 0:t.origin}}},(e,t,n={})=>{let r=F(`${n.baseUrl||``}/.netlify/images`);return r.search=kt(t),r.searchParams.set(`url`,e.toString()),P(r)}),{operationsGenerator:Mt,operationsParser:Nt}=H({keyMap:{width:`w`,quality:`q`,height:!1,format:!1},defaults:{q:75}}),Pt=(e,t,n={})=>{let r=F(`${n.baseUrl||``}/${n.prefix||`_vercel`}/image`);return r.search=Mt(t),r.searchParams.append(`url`,e.toString()),P(r)},Ft=(e,t={})=>{if(![`vercel`,`nextjs`].includes(G(e)||``))return null;let n=F(e),r=n.searchParams.get(`url`)||``;n.searchParams.delete(`url`);let i=Nt(n);return n.search=``,{src:r,operations:i,options:{baseUrl:t.baseUrl??n.origin}}},It=U(Ft,Pt),Lt=U((e,t)=>Ft(e,t),(e,t,n={})=>Pt(e,t,{...n,prefix:`_next`})),{operationsGenerator:Rt,operationsParser:zt}=H({keyMap:{width:`wid`,height:`hei`,quality:`qlt`,format:`fmt`},defaults:{fit:`crop,0`}}),Bt=`https://s7d1.scene7.com/is/image/`,Vt=U(e=>{if(W(e)!==`scene7`)return null;let t=new URL(e,Bt),n=zt(t);return t.search=``,{src:t.toString(),operations:n}},(e,t)=>{let n=new URL(e,Bt);return n.search=Rt(t),P(n)}),q=/(.+?)(?:_(?:(pico|icon|thumb|small|compact|medium|large|grande|original|master)|(\d*)x(\d*)))?(?:_crop_([a-z]+))?(\.[a-zA-Z]+)(\.png|\.jpg|\.webp|\.avif)?$/,{operationsGenerator:Ht,operationsParser:Ut}=H({keyMap:{format:!1}}),Wt=U(e=>{let t=F(e),n=q.exec(t.pathname),r=Ut(t);if(n){let[,,,e,t,i]=n;e&&t&&!r.width&&!r.height&&(r.width=parseInt(e,10),r.height=parseInt(t,10)),i&&(r.crop??=i)}t.pathname=t.pathname.replace(q,`$1$6`);for(let e of[`width`,`height`,`crop`,`pad_color`,`format`])t.searchParams.delete(e);return{src:t.toString(),operations:r}},(e,t)=>{let n=F(e);return n.pathname=n.pathname.replace(q,`$1$6`),n.search=Ht(t),P(n)}),Gt=/(?<id>\/f\/\d+\/\d+x\d+\/\w+\/[^\/]+)\/?(?<modifiers>m\/?(?<crop>\d+x\d+:\d+x\d+)?\/?(?<resize>(?<flipx>\-)?(?<width>\d+)x(?<flipy>\-)?(?<height>\d+))?\/?(filters\:(?<filters>[^\/]+))?)?$/,Kt=/^(?<modifiers>\/(?<crop>\d+x\d+:\d+x\d+)?\/?(?<resize>(?<flipx>\-)?(?<width>\d+)x(?<flipy>\-)?(?<height>\d+))?\/?(filters\:(?<filters>[^\/]+))?\/?)?(?<id>\/f\/.+)$/,qt=/:(?![^(]*\))/,Jt=e=>e?Object.fromEntries(e.split(qt).map(e=>{if(!e)return[];let[t,n]=e.split(`(`);return[t,n.replace(`)`,``)]})):{},Yt=e=>{if(!e)return;let t=Object.entries(e).map(([e,t])=>`${e}(${t??``})`);if(t.length!==0)return`filters:${t.join(`:`)}`},Xt=U(e=>{let t=F(e),n=(t.hostname===`img2.storyblok.com`?Kt:Gt).exec(t.pathname);if(!n||!n.groups)return null;let{id:r,crop:i,width:a,height:o,filters:s,flipx:c,flipy:l}=n.groups,{format:u,...d}=Jt(s??``);t.hostname===`img2.storyblok.com`&&(t.hostname=`a.storyblok.com`);let f=Object.fromEntries([[`width`,Number(a)||void 0],[`height`,Number(o)||void 0],[`format`,u],[`crop`,i],[`filters`,d],[`flipx`,c],[`flipy`,l]].filter(([e,t])=>t!==void 0));return{src:`${t.origin}${r}`,operations:f}},(e,t)=>{let n=F(e),{width:r=0,height:i=0,format:a,crop:o,filters:s={},flipx:c=``,flipy:l=``}=t,u=`${c}${r}x${l}${i}`;return a&&(s.format=a),n.pathname=[n.pathname,`m`,o,u,Yt(s)].filter(
2Boolean).join(`/`),P(n)}),J=`/storage/v1/object/public/`,Y=`/storage/v1/render/image/public/`,Zt=e=>e.pathname.startsWith(Y),{operationsGenerator:Qt,operationsParser:$t}=H({}),en=U(e=>{let t=F(e),n=$t(t),r=Zt(t),i=t.pathname.replace(Y,``).replace(J,``);return r?{src:`${t.origin}${J}${i}`,operations:n}:{src:P(t),operations:n}},(e,t)=>{let n=F(e);return n.pathname=n.pathname.replace(Y,J),t.format&&t.format!==`origin`&&delete t.format,n.search=Qt(t),P(n).replace(J,Y)}),tn=/^https?:\/\/(?<host>[^\/]+)\/(?<uuid>[^\/]+)(?:\/(?<filename>[^\/]+)?)?/,{operationsGenerator:nn,operationsParser:rn}=H({keyMap:{width:!1,height:!1},defaults:{format:`auto`},kvSeparator:`/`,paramSeparator:`/-/`}),an=U(e=>{let t=F(e),n=tn.exec(t.toString());if(!n||!n.groups)return null;let{host:r,uuid:i}=n.groups,[,...a]=t.pathname.split(`/-/`),o=rn(a.join(`/-/`)||``);if(o.resize){let[e,t]=o.resize.split(`x`);e&&(o.width=parseInt(e)),t&&(o.height=parseInt(t)),delete o.resize}return{src:`https://${r}/${i}/`,operations:o,options:{host:r}}},(e,t,n={})=>{let r=F(e),i=n.host||r.hostname,a=tn.exec(r.toString());a?.groups&&(r.pathname=`/${a.groups.uuid}/`),t.resize=t.resize||`${t.width??``}x${t.height??``}`,delete t.width,delete t.height;let o=ee(nn(t));return r.hostname=i,r.pathname=R(r.pathname)+(o?`/-/${o}`:``)+(a?.groups?.filename??``),P(r)}),{operationsGenerator:on,operationsParser:sn}=H({keyMap:{width:`w`,height:`h`},defaults:{crop:`1`}}),cn=U(e=>{let t=F(e),n=sn(t);return n.crop!==void 0&&(n.crop=n.crop===`1`),t.search=``,{src:P(t),operations:n}},(e,t)=>{let n=F(e),{crop:r}=t;return r!==void 0&&r!==`0`&&(t.crop=r?`1`:`0`),n.search=on(t),P(n)}),{operationsGenerator:ln,operationsParser:un}=H({keyMap:{width:`w`,height:`h`,format:`output`,quality:`q`},defaults:{fit:`cover`}}),dn={appwrite:ve,astro:Ce,"builder.io":Te,bunny:Oe,cloudflare:je,cloudflare_images:ze,cloudimage:He,cloudinary:Ye,contentful:Qe,contentstack:et,directus:nt,hygraph:st,imageengine:ut,imagekit:pt,imgix:gt,ipx:xt,keycdn:Tt,"kontent.ai":Ot,netlify:jt,nextjs:Lt,scene7:Vt,shopify:Wt,storyblok:Xt,supabase:en,uploadcare:an,vercel:It,wordpress:cn,wsrv:U(e=>{let t=F(e),n=t.searchParams.get(`url`);if(!n)return null;let r=n;!r.startsWith(`http://`)&&!r.startsWith(`https://`)&&(r=`https://`+r),t.searchParams.delete(`url`);let i=un(t);return{src:r,operations:i}},(e,t)=>{let n=new URL(`https://wsrv.nl/`),r=(typeof e==`string`?e:e.toString()).replace(/^https?:\/\//,``);n.searchParams.set(`url`,r);let i=ln(t),a=new URLSearchParams(i);for(let[e,t]of a)e!==`url`&&n.searchParams.set(e,t);return P(n)})};function fn(e){if(e)return dn[e]}function pn({cdn:e,fallback:t,operations:n={},options:r,...i}){if(e??=W(i.src)||t,!e)return i;let a=fn(e);return a?E({...i,operations:n?.[e],options:r?.[e],transformer:a}):i}function mn({cdn:e,fallback:t,operations:n,options:r,...i}){if(e??=W(i.src)||t,!e)return i;let a=fn(e);return a?O({...i,operations:n?.[e],options:r?.[e],transformer:a}):i}var hn=l.forwardRef(function(e,t){return(0,f.jsx)(`img`,{...g(pn(e)),ref:t})});l.forwardRef(function(e,t){return(0,f.jsx)(`source`,{...g(mn(e)),ref:t})});var gn=(()=>{try{return JSON.parse(`[]`)}catch{return[]}})(),_n=(()=>{try{return JSON.parse(`[]`)}catch{return[]}})(),vn=gn.length>0||_n.length>0,yn=(()=>{try{return JSON.parse(`[640,750,828,1080,1200,1920,2048,3840]`)}catch{return[640,750,828,1080,1200,1920,2048,3840]}})();function bn(e){let t;try{t=new URL(e,`http://n`)}catch{return{allowed:!1,reason:`Invalid URL: ${e}`}}return c(t.hostname)?{allowed:!1,reason:`Image URL "${e}" resolved to private IP. If this is expected and you understand SSRF risk, use images.dangerouslyAllowLocalIP = true to continue.`}:!vn||s(_n,gn,t)?{allowed:!0}:{allowed:!1,reason:`Image URL "${e}" is not configured in images.remotePatterns or images.domains in next.config.js. See: https://nextjs.org/docs/messages/next-image-unconfigured-host`}}var xn=typeof window>`u`?l.useEffect:l.useLayoutEffect;function Sn(e){let t=new Event(`load`);Object.defineProperty(t,`target`,{writable:!1,value:e});let n=!1,r=!1;return{bubbles:t.bubbles,cancelable:t.cancelable,currentTarget:e,defaultPrevented:!1,eventPhase:t.eventPhase,isTrusted:!1,nativeEvent:t,target:e,timeStamp:t.timeStamp,type:`load`,isDefaultPrevented:()=>n,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{r=!0,t.stopPropagation()}}}function X(e){if(e.startsWith(`data:image/`)&&!/[)(}{\\'"\n\r]/.test(e))return e}function Z(e){return e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`//`)}function Cn(e){return{src:typeof e.src==`string`?e.src:e.src.src,width:e.width??(typeof e.src==`object`?e.src.width:void 0),height:e.height??(typeof e.src==`object`?e.src.height:void 0),blurDataURL:e.blurDataURL??(typeof e.src==`object`?e.src.blurDataURL:void 0)}}var Q=yn;function $(e,t,n=75){return`/_vinext/image?url=${encodeURIComponent(e)}&w=${t}&q=${n}`}function wn(e,t,n=75){let r=Q.filter(e=>e<=t*2);return r.length===0?`${$(e,t,n)} ${t}w`:r.map(t=>`${$(e,t,n)} ${t}w`).join(`, `)}var Tn=(0,l.forwardRef)(function({src:e,alt:t,width:n,height:r,fill:i,priority:a,quality:o,placeholder:s,blurDataURL:c,loader:d,sizes:p,className:m,style:h,onLoad:g,onLoadingComplete:_,onError:v,unoptimized:y,overrideSrc:b,loading:x,...S},C){let w=(0,l.useRef)(void 0),T=(0,l.useRef)(void 0),E=(0,l.useRef)(!1),D=(0,l.useRef)(null),O=u(C,D),k=(0,l.useRef)(g);(0,l.useEffect)(()=>{k.current=g},[g]);let A=(0,l.useRef)(v);(0,l.useEffect)(()=>{A.current=v},[v]);let j=(0,l.useRef)(_);(0,l.useEffect)(()=>{j.current=_},[_]);let{src:M,width:N,height:P,blurDataURL:F}=Cn({src:e,width:n,height:r,blurDataURL:c});xn(()=>
2{if(!E.current&&D.current!==null){let e=D.current;if(A.current&&(e.src=e.src),e.complete&&e.naturalWidth>0){let t=k.current,n=j.current;if((t||n)&&w.current!==M){w.current=M;let r=Sn(e);t?.(r),n?.(e)}}E.current=!0}},[s,p,y]);let I=_?e=>{w.current!==M&&(w.current=M,g?.(e),_(e.currentTarget))}:g?e=>{w.current!==M&&(w.current=M,g(e))}:void 0,L=v?e=>{T.current!==M&&(T.current=M,v(e))}:void 0;if(d)return(0,f.jsx)(`img`,{ref:O,src:d({src:M,width:N??0,quality:o??75}),alt:t,width:i?void 0:N,height:i?void 0:P,loading:a?`eager`:x??`lazy`,decoding:`async`,sizes:p,className:m,onLoad:I,onError:L,style:i?{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:`cover`,...h}:h,...S});if(Z(M)){let e=bn(M);if(!e.allowed)return console.error(`[next/image] ${e.reason}`),null;let n=F?X(F):void 0,r=s===`blur`&&n?`url(${n})`:void 0;if(i)return(0,f.jsx)(hn,{src:M,alt:t,layout:`fullWidth`,loading:a?`eager`:x??`lazy`,fetchPriority:a?`high`:void 0,sizes:p,className:m,background:r,onLoad:I,onError:L,ref:O});if(N&&P)return(0,f.jsx)(hn,{src:M,alt:t,width:N,height:P,layout:`constrained`,loading:a?`eager`:x??`lazy`,fetchPriority:a?`high`:void 0,sizes:p,className:m,background:r,onLoad:I,onError:L,ref:O})}let R=o??75,ee=M.endsWith(`.svg`),te=y===!0||ee&&!0,ne=N&&!i&&!te?wn(M,N,R):N&&!i?Q.filter(e=>e<=N*2).map(e=>`${M} ${e}w`).join(`, `)||`${M} ${N}w`:void 0,re=te?M:N?$(M,N,R):$(M,Q[0],R),z=F?X(F):void 0,B=s===`blur`&&z?{backgroundImage:`url(${z})`,backgroundSize:`cover`,backgroundRepeat:`no-repeat`,backgroundPosition:`center`}:void 0;return(0,f.jsx)(`img`,{ref:O,src:re,alt:t,width:i?void 0:N,height:i?void 0:P,loading:a?`eager`:x??`lazy`,fetchPriority:a?`high`:void 0,decoding:`async`,srcSet:ne,sizes:p??(i?`100vw`:void 0),className:m,"data-nimg":i?`fill`:`1`,onLoad:I,onError:L,style:i?{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:`cover`,...B,...h}:{...B,...h},...S})});function En(e){let{src:t,alt:n,width:r,height:i,fill:a,priority:o,quality:s,placeholder:c,blurDataURL:l,loader:u,sizes:d,className:f,style:p,onLoad:m,onLoadingComplete:h,unoptimized:g,overrideSrc:_,loading:v,...y}=e,{src:b,width:x,height:S,blurDataURL:C}=Cn({src:t,width:r,height:i,blurDataURL:l}),w=!1;if(Z(b)){let e=bn(b);e.allowed||(console.error(`[next/image] ${e.reason}`),w=!0)}let T=s??75,E=w?``:u?u({src:b,width:x??0,quality:T}):b,D=E.endsWith(`.svg`),O=g===!0||D&&!0||w||!!u||Z(E),k=O?E:x?$(E,x,T):$(E,Q[0],T),A=x&&!a&&!Z(E)&&!u&&!O?wn(E,x,T):void 0,j=C?X(C):void 0,M=c===`blur`&&j?{backgroundImage:`url(${j})`,backgroundSize:`cover`,backgroundRepeat:`no-repeat`,backgroundPosition:`center`}:void 0;return{props:{src:k,alt:n,width:a?void 0:x,height:a?void 0:S,loading:o?`eager`:v??`lazy`,fetchPriority:o?`high`:void 0,decoding:`async`,srcSet:A,sizes:d??(a?`100vw`:void 0),className:f,"data-nimg":a?`fill`:`1`,style:a?{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:`cover`,...M,...p}:{...M,...p},...y}}}export{Tn as default,En as getImageProps,$ as imageOptimizationUrl};
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.