1import{a as e,t}from"./rolldown-runtime-Cyuzqnbw.js";import{i as n,n as r,r as i}from"./framework-B5EoxeiQ.js";var a=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: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 o(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 s(e,t){return!(e.protocol!==void 0&&e.protocol.replace(/:$/,``)!==t.protocol.replace(/:$/,``)||e.port!==void 0&&e.port!==t.port||!o(e.hostname,`.`).test(t.hostname)||e.search!==void 0&&e.search!==t.search||!o(e.pathname??`**`,`/`).test(t.pathname))}function c(e,t,n){return e.some(e=>n.hostname===e)||t.some(e=>s(e,n))}function l(e){e.startsWith(`[`)&&e.endsWith(`]`)&&(e=e.slice(1,-1));try{let t=a.default.parse(e);return t instanceof a.default.IPv6&&t.isIPv4MappedAddress()?t.toIPv4Address().range()!==`unicast`:t.range()!==`unicast`}catch{return!1}}var u=e(n(),1);function d(e,t){let n=(0,u.useRef)(null),r=(0,u.useRef)(null);return(0,u.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=f(e,i)),t&&(r.current=f(t,i))},[e,t])}function f(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 p=i(),m=e(r(),1),h=new Set([`style`]),g={srcset:`srcSet`,fetchpriority:`use`in u?`fetchPriority`:`fetchpriority`},_=e=>e.startsWith(`data-`)||e.startsWith(`aria-`)?e:g[e]||e.replace(/-./g,e=>e[1].toUpperCase());function v(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[_(e),h.has(e)&&t&&typeof t!=`string`?v(t):t]))}var y=(e,t)=>{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}},b=e=>e||e===0?`${e}px`:void 0,x=({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`,b(e)]),o.push([`height`,b(t)])),r===`constrained`&&(o.push([`max-width`,b(e)]),o.push([`max-height`,b(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`,b(t)])),Object.fromEntries(o.filter(([,e])=>e))},S=[6016,5120,4480,3840,3200,2560,2048,1920,1668,1280,1080,960,828,750,640],C=24,w=({width:e,layout:t,resolutions:n=S})=>{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)]:[]},T=({src:e,width:t,layout:n=`constrained`,height:r,aspectRatio:i,breakpoints:a,format:o})=>(a||=w({width:t,layout:n}),a.sort((e,t)=>
1e-t).map(t=>{let n;return r&&i&&(n=Math.round(t/i)),{url:e,width:t,height:n,format:o}})),E=e=>{let{src:t,transformer:n,operations:r}=e;return n?T(e).map(({url:i,...a})=>`${n(t,{...r,...a},e.options)?.toString()} ${a.width}w`).join(`, 2`):``};function D({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 O(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}=D(e);if(n&&r===`auto`){let e=l?Math.round(C/l):void 0,i=n(t,{width:C,height:e},f);i&&(r=i.toString())}let m={width:s,height:c,aspectRatio:l,layout:i,objectFit:a,background:r};if(p.sizes||=y(s,i),u||(p.style={...x(m),...p.style}),n){p.srcset=E({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 k(e){return e?e.startsWith(`image/`)?{format:e.slice(6),mimeType:e}:{format:e,mimeType:`image/${e===`jpg`?`jpeg`:e}`}:{}}function A({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}=D(n);if(!i)return{};let{format:g,mimeType:_}=k(t);u||=y(s,a);let v=E({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:v};return e&&(x.media=e),_&&(x.type=_),x}var ee={"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`},j={"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`},M={"/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 N(e){if(!e)return e;let t=Number(e);return isNaN(t)?e:Math.round(t)}var P=e=>{let{pathname:t,search:n}=e;return`${t}${n}`},F=e=>e.hostname===`n`?P(e):e.toString(),I=(e,t)=>typeof e==`string`?new URL(e,t??`http://n/`):e,L=e=>e===` `?`+`:`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`),R=e=>e?.startsWith(`/`)?e.slice(1):e,z=e=>e?.endsWith(`/`)?e.slice(0,-1):e,te=e=>e?.endsWith(`/`)?e:`${e}/`,ne=(e,t)=>{let n=L(e),r=L(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)},B=(e,t)=>e===`=`&&t===`&`?ae: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 V(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 H(e){let t=I(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:F(t)}}function U({keyMap:e={},formatMap:t={},defaults:n={}},r){r.format&&r.format in t&&(r.format=t[r.format]),r.width&&=N(r.width),r.height&&=N(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 re=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[t,e]));
2function ie({keyMap:e={},formatMap:t={},defaults:n={}},r){let i=U({keyMap:re(e),formatMap:re(t),defaults:n},r);i.width&&=N(i.width),i.height&&=N(i.height);let a=Number(i.quality);return isNaN(a)||(i.quality=a),i}var ae=e=>{let t=I(e);return Object.fromEntries(t.searchParams.entries())};function W({kvSeparator:e=`=`,paramSeparator:t=`&`,...n}={}){let r=ne(e,t);return e=>r(U(n,e))}function oe({kvSeparator:e=`=`,paramSeparator:t=`&`,defaults:n,...r}={}){let i=B(e,t);return e=>ie(r,e?i(e):{})}function G(e){return{operationsGenerator:W(e),operationsParser:oe(e)}}function K(e){if(e!=null)try{return!!JSON.parse(e?.toString())}catch{return!!e}}var se=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0));function q(e,t){return((n,r,i)=>{let a=e(n,i);return a?t(a.src,{...a.operations,...se(r)},{...a.options,...i}):t(n,r,i)})}var ce=new Map(Object.entries(ee)),le=Object.entries(j),ue=Object.entries(M);function J(e){return de(e)||Y(e)}function de(e){if(typeof e==`string`&&!e.startsWith(`https://`))return!1;let{hostname:t}=I(e);return ce.get(t)||le.find(([e])=>t.endsWith(e))?.[1]||!1}function Y(e){let{pathname:t}=I(e);return ue.find(([e])=>t.startsWith(e))?.[1]||!1}var fe=`/view?`,pe=`/preview?`,{operationsGenerator:me,operationsParser:he}=G({keyMap:{format:`output`},kvSeparator:`=`,paramSeparator:`&`}),ge=q(e=>{if(Y(e)!==`appwrite`)return null;let t=I(e),n=he(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=I(e.toString().replace(fe,pe)),r=n.searchParams.get(`project`)??``;return n.search=me(t),n.searchParams.append(`project`,r),F(n)}),_e=`/_image`,{operationsParser:ve,operationsGenerator:ye}=G({keyMap:{format:`f`,width:`w`,height:`h`,quality:`q`},defaults:{fit:`cover`}}),be=(e,t,n)=>{let r=I(`${z(n?.baseUrl??``)}${n?.endpoint??_e}`);return r.search=ye(t),r.searchParams.set(`href`,e.toString()),F(r)},xe=e=>{let t=I(e),n=t.searchParams.get(`href`);return n?(t.searchParams.delete(`href`),{src:n,operations:ve(t),options:{baseUrl:t.origin}}):null},Se=(e,t,n={})=>{if(I(e).pathname!==(n?.endpoint??_e))return be(e,t,n);let r=xe(e);return r?(n.baseUrl??=r.options.baseUrl,be(r.src,{...r.operations,...t},n)):be(e,t,n)},Ce=W({defaults:{fit:`cover`,format:`webp`,sharp:!0}}),we=q(H,(e,t)=>{let n=Ce(t),r=I(e);return r.search=n,F(r)}),Te=W({keyMap:{format:`output`}}),Ee=q(H,(e,t)=>{let n=Te(t),r=I(e);return r.search=n,F(r)}),De=(e,t)=>{let{width:n,height:r}=t;return n&&r&&(t.aspect_ratio??=`${Math.round(Number(n))}:${Math.round(Number(r))}`),Ee(e,t)},{operationsGenerator:Oe,operationsParser:ke}=G({keyMap:{format:`f`},defaults:{format:`auto`,fit:`cover`},formatMap:{jpg:`jpeg`},kvSeparator:`=`,paramSeparator:`,`}),Ae=q((e,t)=>{if(Y(e)!==`cloudflare`)return null;let n=I(e),[,,,r,...i]=n.pathname.split(`/`),a=ke(r);return{src:F(I(i.join(`/`))),operations:a,options:{domain:t?.domain??(n.hostname===`n`?void 0:n.hostname)}}},(e,t,n)=>{let r=Oe(t),i=I(n?.domain?`https://${n.domain}`:`/`);return i.pathname=`/cdn-cgi/image/${r}/${R(e.toString())}`,F(i)}),je=/https?:\/\/(?<host>[^\/]+)\/cdn-cgi\/imagedelivery\/(?<accountHash>[^\/]+)\/(?<imageId>[^\/]+)\/*(?<transformations>[^\/]+)*$/g,Me=/https?:\/\/(?<host>imagedelivery.net)\/(?<accountHash>[^\/]+)\/(?<imageId>[^\/]+)\/*(?<transformations>[^\/]+)*$/g,{operationsGenerator:Ne,operationsParser:Pe}=G({keyMap:{width:`w`,height:`h`,format:`f`},defaults:{fit:`cover`},kvSeparator:`=`,paramSeparator:`,`});function Fe(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(Boolean).join(`/`)}var Ie=(e,t,n={})=>F(I(Fe(n,Ne(t)))),Le=e=>{let t=I(e),n=[...t.toString().matchAll(je),...t.toString().matchAll(Me)];if(!n[0]?.groups)return null;let{host:r,accountHash:i,imageId:a,transformations:o}=n[0].groups,s=Pe(o||``),c={host:r,accountHash:i,imageId:a};return{src:Fe(c),operations:s,options:c}},Re=(e,t,n={})=>{let r=Le(e);if(!r)throw Error(`Invalid Cloudflare Images URL`);let i={...r.operations,...t};return Ie(r.src,i,{...r.options,...n})},{operationsGenerator:ze,operationsParser:Be}=G({keyMap:{format:`force_format`,width:`w`,height:`h`,quality:`q`},defaults:{org_if_sml:1}}),Ve=q((e,t={})=>{let n=I(e);if(J(n)!==`cloudimage`)return null;let r=Be(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}={})=>
2{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=ze(t),a=new URL(`https://${n}.cloudimg.io/`);return a.pathname=r,a.search=i,a.toString()}),He=/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]+)?)$/,Ue=/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:We,operationsParser:Ge}=G({keyMap:{width:`w`,height:`h`,format:`f`,quality:`q`},defaults:{format:`auto`,c:`lfill`},kvSeparator:`_`,paramSeparator:`,`});function Ke({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 qe(e){let t=e.toString().match(He);return t?.length||(t=e.toString().match(Ue)),t?.length?t.groups||{}:null}var Je=(e,t)=>
2{let n=qe(e.toString());return n?(n.transformations=We({...Ge(n.transformations||``),...t}),Ke(n)):e.toString()},Ye=W({keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`},defaults:{fit:`fill`}}),Xe=q(H,(e,t)=>{let n=Ye(t),r=new URL(e);return r.search=n,F(r)}),Ze=(e,t)=>{let{width:n,height:r}=V(t,4e3,4e3);return Xe(e,{...t,width:n,height:r})},Qe=W({defaults:{auto:`webp`,disable:`upscale`}}),$e=q(e=>{let{src:t,operations:n}=H(e)??{};if(!n||!t)return null;let{origin:r}=I(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=Qe(t),i=I(e);return i.hostname===`n`&&(i.protocol=`https:`,i.hostname=new URL(n).hostname),i.search=r,F(i)}),et=W({defaults:{withoutEnlargement:!0,fit:`cover`}}),tt=q(e=>{let t=H(e);if(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=et(t),r=I(e);return r.search=n,F(r)}),nt=/https:\/\/(?<region>[a-z0-9-]+)\.graphassets\.com\/(?<envId>[a-zA-Z0-9]+)(?:\/(?<transformations>.*?))?\/(?<handle>[a-zA-Z0-9]+)$/,{operationsGenerator:rt,operationsParser:it}=G({keyMap:{width:`width`,height:`height`,format:`format`},defaults:{format:`auto`,fit:`crop`}}),at=e=>{let t=I(e).toString().match(nt);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}}},ot=q(at,(e,t,n={})=>{let r=at(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}`),F(I(`${`https://${i}.graphassets.com/${a}`}${s.length>0?`/`+s.join(`/`):``}/${o}`))}),{operationsGenerator:st,operationsParser:ct}=G({keyMap:{width:`w`,height:`h`,format:`f`},defaults:{m:`cropbox`},kvSeparator:`_`,paramSeparator:`/`}),lt=q(e=>{let t=I(e),n=t.searchParams.get(`imgeng`);if(!n)return null;let r=ct(n);return t.searchParams.delete(`imgeng`),{src:F(t),operations:r}},(e,t)=>{let n=st(t),r=I(e);return r.searchParams.set(`imgeng`,n),F(r)}),{operationsGenerator:ut,operationsParser:dt}=G({keyMap:{width:`w`,height:`h`,format:`f`,quality:`q`},defaults:{c:`maintain_ratio`,fo:`auto`},kvSeparator:`-`,paramSeparator:`,`}),ft=q(e=>{let t=I(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=dt(n);return{src:F(t),operations:i}},(e,t)=>{let n=ut(t),r=I(e);return r.searchParams.set(`tr`,n),F(r)}),{operationsGenerator:pt,operationsParser:mt}=G({keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`},defaults:{fit:`min`,auto:`format`}}),ht=q(e=>{let t=I(e),n=mt(e);return t.search=``,{src:F(t),operations:n}},(e,t)=>{let n=pt(t),r=I(e);return r.search=n,r.searchParams.has(`fm`)&&r.searchParams.get(`auto`)===`format`&&r.searchParams.delete(`auto`),F(r)}),{operationsGenerator:gt,operationsParser:_t}=G({keyMap:{width:`w`,height:`h`,quality:`q`,format:`f`},defaults:{f:`auto`},kvSeparator:`_`,paramSeparator:`,`}),vt=(e,t,n)=>{t.width&&t.height&&(t.s=`${t.width}x${t.height}`,delete t.width,delete t.height);let r=gt(t),i=I(n?.baseURL??`/_ipx`);return i.pathname=`${z(i.pathname)}
2/${r}/${R(e.toString())}`,F(i)},yt=e=>{let t=I(e),[,n,r,...i]=t.pathname.split(`/`);if(!r||!i.length)return null;let a=_t(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}`}}},bt=(e,t,n)=>{let r=I(e),i=n?.baseURL;if(i&&r.toString().startsWith(i)||r.pathname.startsWith(`/_ipx`)){let n=yt(e);if(n)return vt(n.src,{...n.operations,...t},{baseURL:n.options.baseURL})}return vt(e,t,{baseURL:i})},xt=[`enlarge`,`flip`,`flop`,`negate`,`normalize`,`grayscale`,`removealpha`,`olrepeat`,`progressive`,`adaptive`,`lossless`,`nearlossless`,`metadata`],{operationsGenerator:St,operationsParser:Ct}=G({defaults:{fit:`cover`},formatMap:{jpg:`jpeg`}}),wt=q(e=>{let t=I(e),n=Ct(t);for(let e of xt)n[e]!==void 0&&(n[e]=K(n[e]));return t.search=``,{src:F(t),operations:n}},(e,t)=>{let n=I(e);for(let e of xt)t[e]!==void 0&&(t[e]=+!!t[e]);return n.search=St(t),F(n)}),{operationsGenerator:Tt,operationsParser:Et}=G({formatMap:{jpg:`jpeg`},keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`}}),Dt=q(e=>{let t=I(e),n=Et(t);return n.lossless!==void 0&&(n.lossless=K(n.lossless)),t.search=``,{src:F(t),operations:n}},(e,t)=>{let n=I(e);return t.lossless!==void 0&&(t.lossless=+!!t.lossless),t.width&&t.height&&(t.fit=`crop`),n.search=Tt(t),F(n)}),{operationsGenerator:Ot,operationsParser:kt}=G({defaults:{fit:`cover`},keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`}}),At=q(e=>{if(Y(e)!==`netlify`)return null;let t=I(e),n=kt(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=I(`${n.baseUrl||``}/.netlify/images`);return r.search=Ot(t),r.searchParams.set(`url`,e.toString()),F(r)}),{operationsGenerator:jt,operationsParser:Mt}=G({keyMap:{width:`w`,quality:`q`,height:!1,format:!1},defaults:{q:75}}),Nt=(e,t,n={})=>{let r=I(`${n.baseUrl||``}/${n.prefix||`_vercel`}/image`);return r.search=jt(t),r.searchParams.append(`url`,e.toString()),F(r)},Pt=(e,t={})=>{if(![`vercel`,`nextjs`].includes(Y(e)||``))return null;let n=I(e),r=n.searchParams.get(`url`)||``;n.searchParams.delete(`url`);let i=Mt(n);return n.search=``,{src:r,operations:i,options:{baseUrl:t.baseUrl??n.origin}}},Ft=q(Pt,Nt),It=q((e,t)=>Pt(e,t),(e,t,n={})=>Nt(e,t,{...n,prefix:`_next`})),{operationsGenerator:Lt,operationsParser:Rt}=G({keyMap:{width:`wid`,height:`hei`,quality:`qlt`,format:`fmt`},defaults:{fit:`crop,0`}}),zt=`https://s7d1.scene7.com/is/image/`,Bt=q(e=>{if(J(e)!==`scene7`)return null;let t=new URL(e,zt),n=Rt(t);return t.search=``,{src:t.toString(),operations:n}},(e,t)=>{let n=new URL(e,zt);return n.search=Lt(t),F(n)}),Vt=/(.+?)(?:_(?:(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}=G({keyMap:{format:!1}}),Wt=q(e=>{let t=I(e),n=Vt.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(Vt,`$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=I(e);return n.pathname=n.pathname.replace(Vt,`$1$6`),n.search=Ht(t),F(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=q(e=>{let t=I(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=I(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(`/`),F(n)}),X=`/storage/v1/object/public/`,Z=`/storage/v1/render/image/public/`,Zt=e=>e.pathname.startsWith(Z),{operationsGenerator:Qt,operationsParser:$t}=G({}),en=q(e=>{let t=I(e),n=$t(t),r=Zt(t),i=t.pathname.replace(Z,``).replace(X,``);return r?{src:`${t.origin}${X}${i}`,operations:n}:{src:F(t),operations:n}},(e,t)=>{let n=I(e);return n.pathname=n.pathname.replace(Z,X),t.format&&t.format!==`origin`&&delete t.format,n.search=Qt(t),F(n).replace(X,Z)}),tn=/^https?:\/\/(?<host>[^\/]+)\/(?<uuid>[^\/]+)(?:\/(?<filename>[^\/]+)?)?/,{operationsGenerator:nn,operationsParser:rn}=G({keyMap:{width:!1,height:!1},defaults:{format:`auto`},kvSeparator:`/`,paramSeparator:`/-/`}),an=q(e=>{let t=I(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=I(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=te(nn(t));return r.hostname=i,r.pathname=z(r.pathname)+(o?`/-/${o}`:``)+(a?.groups?.filename??``),F(r)}),{operationsGenerator:on,operationsParser:sn}=G({keyMap:{width:`w`,height:`h`},defaults:{crop:`1`}}),cn=q(e=>{let t=I(e),n=sn(t);return n.crop!==void 0&&(n.crop=n.crop===`1`),t.search=``,{src:F(t),operations:n}},(e,t)=>{let n=I(e),{crop:r}=t;return r!==void 0&&r!==`0`&&(t.crop=r?`1`:`0`),n.search=on(t),F(n)}),{operationsGenerator:ln,operationsParser:un}=G({keyMap:{width:`w`,height:`h`,format:`output`,quality:`q`},defaults:{fit:`cover`}}),dn={appwrite:ge,astro:Se,"builder.io":we,bunny:De,cloudflare:Ae,cloudflare_images:Re,cloudimage:Ve,cloudinary:Je,contentful:Ze,contentstack:$e,directus:tt,hygraph:ot,imageengine:lt,imagekit:ft,imgix:ht,ipx:bt,ke
2ycdn:wt,"kontent.ai":Dt,netlify:At,nextjs:It,scene7:Bt,shopify:Wt,storyblok:Xt,supabase:en,uploadcare:an,vercel:Ft,wordpress:cn,wsrv:q(e=>{let t=I(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 F(n)})};function fn(e){if(e)return dn[e]}function pn({cdn:e,fallback:t,operations:n={},options:r,...i}){if(e??=J(i.src)||t,!e)return i;let a=fn(e);return a?O({...i,operations:n?.[e],options:r?.[e],transformer:a}):i}function mn({cdn:e,fallback:t,operations:n,options:r,...i}){if(e??=J(i.src)||t,!e)return i;let a=fn(e);return a?A({...i,operations:n?.[e],options:r?.[e],transformer:a}):i}var hn=u.forwardRef(function(e,t){return(0,p.jsx)(`img`,{...v(pn(e)),ref:t})});u.forwardRef(function(e,t){return(0,p.jsx)(`source`,{...v(mn(e)),ref:t})});var gn=(()=>{try{return JSON.parse(`[{"protocol":"https","hostname":"picsum.photos"},{"protocol":"https","hostname":"fastly.picsum.photos"}]`)}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 l(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||c(_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`?u.useEffect:u.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 Cn(e){if(e.startsWith(`data:image/`)&&!/[)(}{\\'"\n\r]/.test(e))return e}function Q(e){return e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`//`)}function wn(e,t){return{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:`cover`,...t,...e}}function Tn(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 En=yn;function $(e,t,n=75){return`/_vinext/image?url=${encodeURIComponent(e)}&w=${t}&q=${n}`}function Dn(e){e.shouldPreload&&typeof m.preload==`function`&&m.preload(e.src,{as:`image`,imageSrcSet:e.srcSet,imageSizes:e.sizes,fetchPriority:e.fetchPriority})}function On(e,t,n=75){let r=En.filter(e=>e<=t*2);return r.length===0?`${$(e,t,n)} ${t}w`:r.map(t=>`${$(e,t,n)} ${t}w`).join(`, `)}var kn=(0,u.forwardRef)(function({src:e,alt:t,width:n,height:r,fill:i,preload:a,priority:o,quality:s,placeholder:c,blurDataURL:l,loader:f,sizes:m,className:h,style:g,onLoad:_,onLoadingComplete:v,onError:y,unoptimized:b,overrideSrc:x,loading:S,...C},w){let T=(0,u.useRef)(void 0),E=(0,u.useRef)(void 0),D=(0,u.useRef)(!1),O=(0,u.useRef)(null),k=d(w,O),A=(0,u.useRef)(_);(0,u.useEffect)(()=>{A.current=_},[_]);let ee=(0,u.useRef)(y);(0,u.useEffect)(()=>{ee.current=y},[y]);let j=(0,u.useRef)(v);(0,u.useEffect)(()=>{j.current=v},[v]);let{src:M,width:N,height:P,blurDataURL:F}=Tn({src:e,width:n,height:r,blurDataURL:l}),I=a===!0||o===!0,L=o?`high`:void 0,R=o?`eager`:I?S:S??`lazy`,[z,te]=(0,u.useState)(void 0),ne=z===M,B=()=>{c===`blur`&&te(e=>e===M?e:M)};xn(()=>
2{if(!D.current&&O.current!==null){let e=O.current;if(ee.current&&(e.src=e.src),e.complete&&e.naturalWidth>0){B();let t=A.current,n=j.current;if((t||n)&&T.current!==M){T.current=M;let r=Sn(e);t?.(r),n?.(e)}}D.current=!0}},[c,m,b]);let V=v?e=>{T.current!==M&&(T.current=M,B(),_?.(e),v(e.currentTarget))}:_?e=>{T.current!==M&&(T.current=M,B(),_(e))}:c===`blur`?()=>{T.current!==M&&(T.current=M,B())}:void 0,H=y?e=>{E.current!==M&&(E.current=M,B(),y(e))}:c===`blur`?()=>{E.current!==M&&(E.current=M,B())}:void 0;if(f){let e=f({src:M,width:N??0,quality:s??75});return Dn({shouldPreload:I,src:e,sizes:m,fetchPriority:L}),(0,p.jsx)(`img`,{ref:k,src:e,alt:t,width:i?void 0:N,height:i?void 0:P,loading:R,decoding:`async`,sizes:m,className:h,onLoad:V,onError:H,style:i?wn(g):g,...C})}if(Q(M)){let e=bn(M);if(!e.allowed)return console.error(`[next/image] ${e.reason}`),null;let n=F?Cn(F):void 0,r=!ne&&c===`blur`&&n,a=r?{backgroundImage:`url(${n})`,backgroundSize:`cover`,backgroundRepeat:`no-repeat`,backgroundPosition:`center`}:void 0,o=r?`url(${n})`:void 0;if(i){let e=m??`100vw`;return Dn({shouldPreload:I,src:M,sizes:e,fetchPriority:L}),(0,p.jsx)(`img`,{ref:k,src:M,alt:t,loading:R,fetchPriority:L,decoding:`async`,sizes:e,className:h,"data-nimg":`fill`,onLoad:V,onError:H,style:wn(g,a),...C})}if(N&&P){let e={style:g};return Dn({shouldPreload:I,src:M,sizes:m,fetchPriority:L}),(0,p.jsx)(hn,{src:M,alt:t,width:N,height:P,layout:`constrained`,loading:R,fetchPriority:L,sizes:m,className:h,...e,background:o,onLoad:V,onError:H,ref:k})}}let U=s??75,re=M.endsWith(`.svg`),ie=b===!0||re&&!0,ae=N&&!i&&!ie?On(M,N,U):N&&!i?En.filter(e=>e<=N*2).map(e=>`${M} ${e}w`).join(`, `)||`${M} ${N}w`:void 0,W=ie?M:N?$(M,N,U):$(M,En[0],U),oe=F?Cn(F):void 0,G=!ne&&c===`blur`&&oe?{backgroundImage:`url(${oe})`,backgroundSize:`cover`,backgroundRepeat:`no-repeat`,backgroundPosition:`center`}:void 0,K=m??(i?`100vw`:void 0);return Dn({shouldPreload:I,src:W,srcSet:ae,sizes:K,fetchPriority:L}),(0,p.jsx)(`img`,{ref:k,src:W,alt:t,width:i?void 0:N,height:i?void 0:P,loading:R,fetchPriority:L,decoding:`async`,srcSet:ae,sizes:K,className:h,"data-nimg":i?`fill`:`1`,onLoad:V,onError:H,style:i?wn(g,G):{...G,...g},...C})});function An(e){let{src:t,alt:n,width:r,height:i,fill:a,preload:o,priority:s,quality:c,placeholder:l,blurDataURL:u,loader:d,sizes:f,className:p,style:m,onLoad:h,onLoadingComplete:g,unoptimized:_,overrideSrc:v,loading:y,...b}=e,{src:x,width:S,height:C,blurDataURL:w}=Tn({src:t,width:r,height:i,blurDataURL:u}),T=o===!0||s===!0,E=!1;if(Q(x)){let e=bn(x);e.allowed||(console.error(`[next/image] ${e.reason}`),E=!0)}let D=c??75,O=E?``:d?d({src:x,width:S??0,quality:D}):x,k=O.endsWith(`.svg`),A=_===!0||k&&!0||E||!!d||Q(O),ee=A?O:S?$(O,S,D):$(O,En[0],D),j=S&&!a&&!Q(O)&&!d&&!A?On(O,S,D):void 0,M=w?Cn(w):void 0,N=l===`blur`&&M?{backgroundImage:`url(${M})`,backgroundSize:`cover`,backgroundRepeat:`no-repeat`,backgroundPosition:`center`}:void 0;return{props:{src:ee,alt:n,width:a?void 0:S,height:a?void 0:C,loading:s?`eager`:T?y:y??`lazy`,fetchPriority:s?`high`:void 0,decoding:`async`,srcSet:j,sizes:f??(a?`100vw`:void 0),className:p,"data-nimg":a?`fill`:`1`,style:a?wn(m,N):{...N,...m},...b}}}export{kn as default,An 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.