import{ap as H,z as I,A as M,o as ,ドルaq as W,N as G,e as J,D as F,aj as X,c as S,a as Z,ar as C,m as U,as as Q,at as b,r as Y,au as x,J as k,X as K,h as A,av as ee,Z as ae,aw as te,ag as se,b as N,ax as ne,ay as re}from"#entry";const ie=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],oe=[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],ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",P=[];class le{_data=new E;_hash=new E([...ie]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);const s=this._nDataBytes*8,a=this._data.sigBytes*8;return this._data.words[a>>>5]|=128<<24-a%32,this._data.words[(a+64>>>9<<4)+14]=math.floor(s/4294967296),this._data.words[(a+64>>>9<<4)+15]=s,this._data.sigbytes=this._data.words.length*4,this._process(),this._hash}_doprocessblock(e,s){const a=this._hash.words;let n=a[0],i=a[1],r=a[2],u=a[3],o=a[4],m=a[5],c=a[6],f=a[7];for(let l=0;l<64;l++){if(l<16)p[l]=e[s+l]|0;else{const d=P[l-15],_=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,p=P[l-2],B=(p<<15|p>>>17)^(p<<13|p>>>19)^p>>>10;P[l]=_+P[l-7]+B+P[l-16]}const y=o&m^~o&c,h=n&i^n&r^i&r,g=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),v=(o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25),D=f+v+y+oe[l]+P[l],w=g+h;f=c,c=m,m=o,o=u+D|0,u=r,r=i,i=n,n=D+w|0}a[0]=a[0]+n|0,a[1]=a[1]+i|0,a[2]=a[2]+r|0,a[3]=a[3]+u|0,a[4]=a[4]+o|0,a[5]=a[5]+m|0,a[6]=a[6]+c|0,a[7]=a[7]+f|0}_append(e){typeof e=="string"&&(e=E.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let s,a=this._data.sigBytes/64;e?a=Math.ceil(a):a=Math.max((a|0)-this._minBufferSize,0);const n=a*16,i=Math.min(n*4,this._data.sigBytes);if(n){for(let r=0;r>>2]|=(s.charCodeAt(i)&255)<<24-i%4*8;return new E(n,a)}toBase64(){const e=[];for(let s=0;s>>2]>>>24-s%4*8&255,n=this.words[s+1>>>2]>>>24-(s+1)%4*8&255,i=this.words[s+2>>>2]>>>24-(s+2)%4*8&255,r=a<<16|n<<8|i;for(let u=0;u<4&&s*8+u*6>>6*(3-u)&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 s=0;s>>2]>>>24-s%4*8&255;this.words[this.sigBytes+s>>>2]|=a<<24-(this.sigbytes+s)%4*8}else for(let s=0;s>>2]=e.words[s>>>2];this.sigBytes+=e.sigBytes}}function ue(t){return new le().finalize(t).toBase64()}function T(t){return ue(H(t))}const fe={trailing:!0};function de(t,e=25,s={}){if(s={...fe,...s},!Number.isFinite(e))throw new TypeError("Expected `wait` to be a finite number");let a,n,i=[],r,u;const o=(f,l)=>(r=he(t,f,l),r.finally(()=>{if(r=null,s.trailing&&u&&!n){const y=o(f,u);return u=null,y}}),r),m=function(...f){return s.trailing&&(u=f),r||new Promise(l=>{const y=!n&&s.leading;clearTimeout(n),n=setTimeout(()=>{n=null;const h=s.leading?a:o(this,f);u=null;for(const g of i)g(h);i=[]},e),y?(a=o(this,f),l(a)):i.push(l)})},c=f=>{f&&(clearTimeout(f),n=null)};return m.isPending=()=>!!n,m.cancel=()=>{c(n),i=[],u=null},m.flush=()=>{if(c(n),!u||r)return;const f=u;return u=null,o(this,f)},m}async function he(t,e,s){return await t.apply(e,s)}const V=Symbol.for("nuxt:client-only"),we=I({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(t,{slots:e,attrs:s}){const a=M(!1);$(()=>{a.value=!0});const n=F();return n&&(n._nuxtClientOnly=!0),X(V,!0),()=>{if(a.value){const o=e.default?.();return o&&o.length===1?[W(o[0],s)]:o}const i=e.fallback||e.placeholder;if(i)return G(i);const r=t.fallback||t.placeholder||"",u=t.fallbackTag||t.placeholderTag||"span";return J(u,s,r)}}}),_e=t=>t==="defer"||t===!1;function ye(...t){const e=typeof t[t.length-1]=="string"?t.pop():void 0;me(t[0],t[1])&&t.unshift(e);let[s,a,n={}]=t;const i=S(()=>b(s));if(typeof i.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof a!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const r=Z();n.server??=!0,n.default??=De,n.getCachedData??=L,n.lazy??=!1,n.immediate??=!0,n.deep??=C.deep,n.dedupe??="cancel",n._functionName,r._asyncData[i.value];const u={cause:"initial",dedupe:n.dedupe};r._asyncData[i.value]?._init||(u.cachedData=n.getCachedData(i.value,r,{cause:"initial"}),r._asyncData[i.value]=z(r,i.value,a,n,u.cachedData));const o=r._asyncData[i.value];o._deps++;const m=()=>r._asyncData[i.value].execute(u),c=n.server!==!1&&r.payload.serverRendered;{let y=function(d){const _=r._asyncData[d];_?._deps&&(_._deps--,_._deps===0&&_?._off())};const h=F();if(h&&c&&n.immediate&&!h.sp&&(h.sp=[]),h&&!h._nuxtOnBeforeMountCbs){h._nuxtOnBeforeMountCbs=[];const d=h._nuxtOnBeforeMountCbs;ae(()=>{d.forEach(_=>{_()}),d.splice(0,d.length)}),te(()=>d.splice(0,d.length))}const g=h&&(h._nuxtClientOnly||se(V,!1));c&&r.isHydrating&&(o.error.value||o.data.value!=null)?(o.pending.value=!1,o.status.value=o.error.value?"error":"success"):h&&(!g&&r.payload.serverRendered&&r.isHydrating||n.lazy)&&n.immediate?h._nuxtOnBeforeMountCbs.push(m):n.immediate&&m();const v=ee(),D=U(i,(d,_)=>{if((d||_)&&d!==_){const p=r._asyncData[_]?.data.value!==C.value,B=r._asyncDataPromises[_]!==void 0;_&&y(_);const O={cause:"initial",dedupe:n.dedupe};if(!r._asyncData[d]?._init){let R;_&&p?R=r._asyncData[_]?.data.value:(R=n.getCachedData(d,r,{cause:"initial"}),O.cachedData=R),r._asyncData[d]=z(r,d,a,n,R)}r._asyncData[d]._deps++,(n.immediate||p||B)&&r._asyncData[d].execute(O)}},{flush:"sync"}),w=n.watch?U(n.watch,()=>{o._execute({cause:"watch",dedupe:n.dedupe})}):()=>{};v&&Q(()=>{D(),w(),y(i.value)})}const f={data:j(()=>r._asyncData[i.value]?.data),pending:j(()=>r._asyncData[i.value]?.pending),status:j(()=>r._asyncData[i.value]?.status),error:j(()=>r._asyncData[i.value]?.error),refresh:(...y)=>r._asyncData[i.value].execute(...y),execute:(...y)=>r._asyncData[i.value].execute(...y),clear:()=>q(r,i.value)},l=Promise.resolve(r._asyncDataPromises[i.value]).then(()=>f);return Object.assign(l,f),l}function j(t){return S({get(){return t()?.value},set(e){const s=t();s&&(s.value=e)}})}function me(t,e){return!(typeof t=="string"||typeof t=="object"&&t!==null||typeof t=="function"&&typeof e=="function")}function q(t,e){e in t.payload.data&&(t.payload.data[e]=void 0),e in t.payload._errors&&(t.payload._errors[e]=C.errorValue),t._asyncData[e]&&(t._asyncData[e].data.value=void 0,t._asyncData[e].error.value=C.errorValue,t._asyncData[e].pending.value=!1,t._asyncData[e].status.value="idle"),e in t._asyncDataPromises&&(t._asyncDataPromises[e]&&(t._asyncDataPromises[e].cancelled=!0),t._asyncDataPromises[e]=void 0)}function ve(t,e){const s={};for(const a of e)s[a]=t[a];return s}function z(t,e,s,a,n){t.payload._errors[e]??=C.errorValue;const i=a.getCachedData!==L,r=s,u=a.deep?Y:M,o=n!=null,m=t.hook("app:data:refresh",async f=>{(!f||f.includes(e))&&await c.execute({cause:"refresh:hook"})}),c={data:u(o?n:a.default()),pending:M(!o),error:x(t.payload._errors,e),status:M("idle"),execute:(...f)=>{const[l,y=void 0]=f,h=l&&y===void 0&&typeof l=="object"?l:{};if(t._asyncDataPromises[e]){if(_e(h.dedupe??a.dedupe))return t._asyncDataPromises[e];t._asyncDataPromises[e].cancelled=!0}if(h.cause==="initial"||t.isHydrating){const v="cachedData"in h?h.cachedData:a.getCachedData(e,t,{cause:h.cause??"refresh:manual"});if(v!=null)return t.payload.data[e]=c.data.value=v,c.error.value=C.errorValue,c.status.value="success",Promise.resolve(v)}c.pending.value=!0,c.status.value="pending";const g=new Promise((v,D)=>{try{v(r(t))}catch(w){D(w)}}).then(async v=>{if(g.cancelled)return t._asyncDataPromises[e];let D=v;a.transform&&(D=await a.transform(v)),a.pick&&(D=ve(D,a.pick)),t.payload.data[e]=D,c.data.value=D,c.error.value=C.errorValue,c.status.value="success"}).catch(v=>{if(g.cancelled)return t._asyncDataPromises[e];c.error.value=K(v),c.data.value=A(a.default()),c.status.value="error"}).finally(()=>{g.cancelled||(c.pending.value=!1,delete t._asyncDataPromises[e])});return t._asyncDataPromises[e]=g,t._asyncDataPromises[e]},_execute:de((...f)=>c.execute(...f),0,{leading:!0}),_default:a.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{m(),t._asyncData[e]?._init&&(t._asyncData[e]._init=!1),i||k(()=>{t._asyncData[e]?._init||(q(t,e),c.execute=()=>Promise.resolve(),c.data.value=C.value)})}};return c}const De=()=>C.value,L=(t,e,s)=>{if(e.isHydrating)return e.payload.data[t];if(s.cause!=="refresh:manual"&&s.cause!=="refresh:hook")return e.static.data[t]};function pe(t,e,s){const[a={},n]=typeof e=="string"?[{},e]:[e,s],i=S(()=>b(t)),r=S(()=>b(a.key)||"$f"+T([n,typeof i.value=="string"?i.value:"",...ge(a)]));if(!a.baseURL&&typeof i.value=="string"&&i.value[0]==="/"&&i.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:u,lazy:o,default:m,transform:c,pick:f,watch:l,immediate:y,getCachedData:h,deep:g,dedupe:v,...D}=a,w=N({...ne,...D,cache:typeof a.cache=="boolean"?void 0:a.cache}),d={server:u,lazy:o,default:m,transform:c,pick:f,immediate:y,getCachedData:h,deep:g,dedupe:v,watch:l===!1?[]:[...l||[],w]};if(!y){let B=function(){d.immediate=!0};U(r,B,{flush:"sync",once:!0}),U([...l||[],w],B,{flush:"sync",once:!0})}let _;return ye(l===!1?r.value:r,()=>{_?.abort?.(new DOMException("Request aborted as another request to the same endpoint was initiated.","AbortError")),_=typeof AbortController<"u"?new AbortController:{};const B=b(a.timeout);let O;return B&&(O=setTimeout(()=>_.abort(new DOMException("Request aborted due to timeout.","AbortError")),B),_.signal.onabort=()=>clearTimeout(O)),(a.$fetch||globalThis.$fetch)(i.value,{signal:_.signal,...w}).finally(()=>{clearTimeout(O)})},d)}function ge(t){const e=[b(t.method)?.toUpperCase()||"GET",b(t.baseURL)];for(const s of[t.params||t.query]){const a=b(s);if(!a)continue;const n={};for(const[i,r]of Object.entries(a))n[b(i)]=b(r);e.push(n)}if(t.body){const s=b(t.body);if(!s)e.push(T(s));else if(s instanceof ArrayBuffer)e.push(T(Object.fromEntries([...new Uint8Array(s).entries()].map(([a,n])=>[a,n.toString()]))));else if(s instanceof FormData){const a={};for(const n of s.entries()){const[i,r]=n;a[i]=r instanceof File?r.name:r}e.push(T(a))}else if(re(s))e.push(T(N(s)));else try{e.push(T(s))}catch{console.warn("[useFetch] Failed to hash body",s)}}return e}export{we as _,ye as a,de as d,T as h,pe as u};

AltStyle によって変換されたページ (->オリジナル) /