1import{a as e,b as t,o as n,v as r,y as i}from"./Cn2q6m4l.js";import{A as a,I as o,N as s,S as c,Y as l,_ as u,dt as d,et as f,ht as p,l as m,mt as h,o as g,r as _,w as v,x as y,y as b}from"./BMIGZYuk.js";import{i as x}from"./KZdyyB0C.js";import{C as S,i as C,v as ee}from"./LbkZt_EP.js";import{t as te}from"./BZDmgGXn.js";import"./X4d0j6nN.js";import"./uBIymjUX.js";import{t as w}from"./55bpmhGx.js";var T={trailing:!0};function E(e,t=25,n={}){if(n={...T,...n},!Number.isFinite(t))throw TypeError("Expected `wait` to be a finite number");let r,i,a=[],o,s,c=(t,r)=>(o=D(e,t,r),o.finally(()=>{if(o=null,n.trailing&&s&&!i){let e=c(t,s);return s=null,e}}),o),l=function(...e){return n.trailing&&(s=e),o||new Promise(o=>{let l=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;let t=n.leading?r:c(this,e);s=null;for(let e of a)e(t);a=[]},t),l?(r=c(this,e),o(r)):a.push(o)})},u=e=>{e&&(clearTimeout(e),i=null)};return l.isPending=()=>!!i,l.cancel=()=>{u(i),a=[],s=null},l.flush=()=>{if(u(i),!s||o)return;let e=s;return s=null,c(this,e)},l}async function D(e,t,n){return await e.apply(t,n)}var O=t({docsBase:r,reporters:i});function k(e){return typeof e==`string`?`'${e}'`:new N().serialize(e)}var A=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,j=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[A.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function M(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&j[n]?j[n]:n+128,s=a<128&&j[a]?j[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var N=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?M(e,t):n===`number`&&r===`number`?e-t:M(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(M),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}
1)(),P=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],F=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],I=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,L=[],R=class{_data=new z;_hash=new z([...P]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)L[n]=e[t+n]|0;else{let e=L[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=L[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;L[n]=t+L[n-7]+i+L[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+F[n]+L[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=z.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new z(t,i)}},z=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(I.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function B(e){return new R().finalize(e).toBase64()}function V(e){return B(k(e))}function H(e){if(!e)return{};let t={};for(let n in e)n.startsWith(`data-v-`)||(t[n]=e[n]);return t}function U(e){return JSON.stringify(H(e))}function W(e){let t=typeof e.props==`string`?G(e.props):e.props??{};return V([e.name,t,e.context??{},e.source]).replace(/[-_]/g,``)}function G(e){try{return JSON.parse(e)}catch{return e}}var K=`_islandPromises`,q=/data-island-uid="([^"]*)"/,J=/data-island-uid(="")?(?!="[^"])/g,ne=/data-island-slot="([^"]*)"/g,re=/ data-island-slot="([^"]*)"[^>]*>/g,ie=/^<[^> ]*/,Y=1,ae=()=>(Y++).toString(),X=y({name:`NuxtIsland`,inheritAttrs:!1,props:{name:{type:String,required:!0},lazy:Boolean,props:{type:Object,default:()=>void 0},context:{type:Object,default:()=>({})},scopeId:{type:String,default:()=>void 0},source:{type:String,default:()=>void 0},dangerouslyLoadClientComponents:{type:Boolean,default:!1}},emits:[`error`],async setup(t,{slots:r,expose:i,emit:y}){let T=!1,D=h(0),k=h(0),A=m(()=>!1),j=d(null),M=n(),N=e(),P=m(()=>U(t.props)),F=m(()=>W({name:t.name,props:P.value,context:t.context,source:t.source})),I=c();w();let L,R=globalThis.fetch,z=h(!1);o(()=>{z.value=!0,D.value++}),s(()=>{L&&L.dispose()});function B(e,n){let r={};n.props&&(r.props=n.props),n.slots&&(r.slots=n.slots),n.components&&(r.components=n.components),n.head&&(r.head=n.head),N.payload.data[e]={__nuxt_island:{key:e,params:{...t.context,props:t.props?P.value:void 0},result:r},...n}}let V={};if(I.vnode.el){let e=p(N.payload.data[`${t.name}_${F.value}`])?.slots;e&&(V.slots=e)}let H=d(``);if(I.vnode?.el){H.value=x(I.vnode.el,!0)?.join(``)||``;let e=`${t.name}_${F.value}`;N.payload.data[e]||={},N.payload.data[e].html=H.value.replaceAll(RegExp(`data-island-uid="${H.value.match(q)?.[1]||``}"`,`g`),`data-island-uid=""`)}let G=d(H.value.match(q)?.[1]||ae()),Y=new Set(Object.keys(r)),X=m(()=>new Set([...H.value.matchAll(ne)].map(e=>e[1]))),Z=m(()=>{let e=H.value;if(t.scopeId&&(e=e.replace(ie,e=>e+` `+t.scopeId)),!A.value)for(let[t,n]of Object.entries(V.components||{}))e=e.replace(RegExp(` data-island-uid="${G.value}" data-island-component="${t}"[^>]*>`),e=>e+n.html);return V.slots?e.replaceAll(re,(e,t)=>Y.has(t)?e:e+(V.slots?.[t]?.fallback||``)):e}),Q=te();async function oe(e=!1){let n=`${t.name}_${F.value}`;if(!e&&N.payload.data[n]?.html)return N.payload.data[n];let r=`/__nuxt_island/${n}.json`,i=await R(S(t.source?r:ee(M.app.baseURL??``,r),{...t.context,props:t.props?P.value:void 0}));if(!i.ok)throw C({status:i.status,statusText:i.statusText});try{let e=await i.json();return B(n,e),e}catch(e){throw i.status===200?e:O.NUXT_E4012({name:t.name,status:i.status,detail:e.message,cause:e})}}async function $(e=!1){N[K]||={},N[K][G.value]||=oe(e).finally(()=>{delete N[K][G.value]});try{let e=await N[K][G.value];H.value=e.html.replaceAll(J,`data-island-uid="${G.value}"`),k.value++,j.value=null,V.slots=e.slots||{},V.components=e.components||{},e?.head&&(L?L.patch(e.head):L=Q.push(e.head)),a(()=>{T=!0,D.value++})}catch(e){j.value=e,y(`error`,e)}}if(i({refresh:()=>$(!0)}),l(t,E(()=>$(),100),{deep:!0}),I.vnode.el){let e=p(N.payload.data[`${t.name}_${F.value}`])?.head;e&&(L=Q.push(e))}return!I.vnode.el&&t.lazy?$():(!I.vnode.el||!N.payload.serverRendered)&&await $(),(e,n)=>!Z.value||j.value?[r.fallback?.({error:j.value})??b(`div`)]:[f([k.value],()=>b(_,{key:k.value},[v(u(Z.value||`<div></div>`,1))]),n,0),f([D.value],()=>{let e=[],n=D.value===0||!(!D.value||D.value%2);if(G.value&&Z.value&&(t.lazy?T:z.value||I.vnode?.el))for(let t in r)X.value.has(t)&&e.push(b(g,{to:`${n?`div`:``}[data-island-uid="${G.value}"][data-island-slot="${t}"]`},{default:()=>(V.slots?.[t]?.props?.length?V.slots[t].props:[{}]).map(e=>r[t]?.(e))}));return v(_,e)},n,1)]}}),Z=e=>y({name:e,inheritAttrs:!1,props:{lazy:Boolean},emits:[`error`],setup(t,{attrs:n,slots:r,expose:i,emit:a}){let o=c(),s=d(null);return i({refresh:()=>s.value?.refresh()}),()=>v(X,{name:e,lazy:t.lazy,props:n,scopeId:o?.vnode.scopeId,ref:s,onError:e=>{a(`error`,e)}},r)}});export{Z as t};
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.