1import{u as R,a as T,_ as I,f as N,b as P}from"./C7L7OAmE.js";import{l as E,m as H,j as M,g as U,p as w,q,o as C,c as S,a as u,t as L,d as V,s as J,h as G,v as K,i as W,b as x,u as h,w as D,x as Z,k as Q,y as X,e as Y,F as tt,r as et,f as st}from"./egg-GS-S.js";import{_ as rt}from"./Boribfmh.js";import{s as nt}from"./rj0uiJ7U.js";import"./DlAUqK2U.js";function ot(a){return typeof a=="string"?`'${a}'`:new it().serialize(a)}const it=(function(){class a{#t=new Map;compare(t,e){const s=typeof t,n=typeof e;return s==="string"&&n==="string"?t.localeCompare(e):s==="number"&&n==="number"?t-e:String.prototype.localeCompare.call(this.serialize(t,!0),this.serialize(e,!0))}serialize(t,e){if(t===null)return"null";switch(typeof t){case"string":return e?t:`'${t}'`;case"bigint":return`${t}n`;case"object":return this.$object(t);case"function":return this.$function(t)}return String(t)}serializeObject(t){const e=Object.prototype.toString.call(t);if(e!=="[object Object]")return this.serializeBuiltInType(e.length<10?`unknown:${e}`:e.slice(8,-1),t);const s=t.constructor,n=s===Object||s===void 0?"":s.name;if(n!==""&&globalThis[n]===s)return this.serializeBuiltInType(n,t);if(typeof t.toJSON=="function"){const i=t.toJSON();return n+(i!==null&&typeof i=="object"?this.$object(i):`(${this.serialize(i)})`)}return this.serializeObjectEntries(n,Object.entries(t))}serializeBuiltInType(t,e){const s=this["$"+t];if(s)return s.call(this,e);if(typeof e?.entries=="function")return this.serializeObjectEntries(t,e.entries());throw new Error(`Cannot serialize ${t}`)}serializeObjectEntries(t,e){const s=Array.from(e).sort((i,o)=>this.compare(i[0],o[0]));let n=`${t}{`;for(let i=0;i<s.length;i++){const[o,l]=s[i];n+=`${this.serialize(o,!0)}:${this.serialize(l)}`,i<s.length-1&&(n+=",")}return n+"}"}$object(t){let e=this.#t.get(t);return e===void 0&&(this.#t.set(t,`#${this.#t.size}`),e=this.serializeObject(t),this.#t.set(t,e)),e}$function(t){const e=Function.prototype.toString.call(t);return e.slice(-15)==="[native code] }"?`${t.name||""}()[native]`:`${t.name}(${t.length})${e.replace(/\s*\n\s*/g,"")}`}$Array(t){let e="[";for(let s=0;s<t.length;s++)e+=this.serialize(t[s]),s<t.length-1&&(e+=",");return e+"]"}$Date(t){try{return`Date(${t.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(t){return`ArrayBuffer[${new Uint8Array(t).join(",")}]`}$Set(t){return`Set${this.$Array(Array.from(t).sort((e,s)=>this.compare(e,s)))}`}$Map(t){return this.serializeObjectEntries("Map",t.entries())}}for(const r of["Error","RegExp","URL"])a.prototype["$"+r]=function(t){return`${r}(${t})`};for(const r of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])a.prototype["$"+r]=function(t){return`${r}[${t.join(",")}]`};for(const r of["BigInt64Array","BigUint64Array"])a.prototype["$"+r]=function(t){return`${r}[${t.join("n,")}${t.length>0?"n":""}]`};return a})(),at=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],ct=[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],lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",$=[];class ut{_data=new j;_hash=new j([...at]);_nDataBytes=0;_minBufferSize=0;finalize(r){r&&this._append(r);const t=this._nDataBytes*8,e=this._data.sigBytes*8;return this._data.words[e>>>5]|=128<<24-e%32,this._data.words[(e+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(e+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(r,t){const e=this._hash.words;let s=e[0],n=e[1],i=e[2],o=e[3],l=e[4],p=e[5],m=e[6],g=e[7];for(let c=0;c<64;
1c++){if(c<16)$[c]=r[t+c]|0;else{const f=$[c-15],v=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,d=$[c-2],O=(d<<15|d>>>17)^(d<<13|d>>>19)^d>>>10;$[c]=v+$[c-7]+O+$[c-16]}const y=l&p^~l&m,_=s&n^s&i^n&i,z=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),A=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),b=g+A+y+ct[c]+$[c],k=z+_;g=m,m=p,p=l,l=o+b|0,o=i,i=n,n=s,s=b+k|0}e[0]=e[0]+s|0,e[1]=e[1]+n|0,e[2]=e[2]+i|0,e[3]=e[3]+o|0,e[4]=e[4]+l|0,e[5]=e[5]+p|0,e[6]=e[6]+m|0,e[7]=e[7]+g|0}_append(r){typeof r=="string"&&(r=j.fromUtf8(r)),this._data.concat(r),this._nDataBytes+=r.sigBytes}_process(r){let t,e=this._data.sigBytes/64;r?e=Math.ceil(e):e=Math.max((e|0)-this._minBufferSize,0);const s=e*16,n=Math.min(s*4,this._data.sigBytes);if(s){for(let i=0;i<s;i+=16)this._doProcessBlock(this._data.words,i);t=this._data.words.splice(0,s),this._data.sigBytes-=n}return new j(t,n)}}class j{words;sigBytes;constructor(r,t){r=this.words=r||[],this.sigBytes=t===void 0?r.length*4:t}static fromUtf8(r){const t=unescape(encodeURIComponent(r)),e=t.length,s=[];for(let n=0;n<e;n++)s[n>>>2]|=(t.charCodeAt(n)&255)<<24-n%4*8;return new j(s,e)}toBase64(){const r=[];for(let t=0;t<this.sigBytes;t+=3){const e=this.words[t>>>2]>>>24-t%4*8&255,s=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,n=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,i=e<<16|s<<8|n;for(let o=0;o<4&&t*8+o*6<this.sigBytes*8;o++)r.push(lt.charAt(i>>>6*(3-o)&63))}return r.join("")}concat(r){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<r.sigBytes;t++){const e=r.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=e<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<r.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=r.words[t>>>2];this.sigBytes+=r.sigBytes}}function ht(a){return new ut().finalize(a).toBase64()}function B(a){return ht(ot(a))}function pt(a,r,t){const[e={},s]=[{},r],n=U(()=>w(a)),i=U(()=>w(e.key)||"$f"+B([s,typeof n.value=="string"?n.value:"",...ft(e)]));if(!e.baseURL&&typeof n.value=="string"&&n.value[0]==="/"&&n.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:o,lazy:l,default:p,transform:m,pick:g,watch:c,immediate:y,getCachedData:_,deep:z,dedupe:A,timeout:b,...k}=e,f=E({...H,...k,cache:typeof e.cache=="boolean"?void 0:e.cache}),v={server:o,lazy:l,default:p,transform:m,pick:g,immediate:y,getCachedData:_,deep:z,dedupe:A,timeout:b,watch:c===!1?[]:[...c||[],f]};if(!y){let O=function(){v.immediate=!0};M(i,O,{flush:"sync",once:!0}),M([...c||[],f],O,{flush:"sync",once:!0})}return R(c===!1?i.value:i,(O,{signal:F})=>(e.$fetch||globalThis.$fetch)(n.value,{signal:F,...f}),v)}function ft(a){const r=[w(a.method)?.toUpperCase()||"GET",w(a.baseURL)];for(const t of[a.query||a.params]){const e=w(t);if(!e)continue;const s={};for(const[n,i]of Object.entries(e))s[w(n)]=w(i);r.push(s)}if(a.body){const t=w(a.body);if(!t)r.push(B(t));else if(t instanceof ArrayBuffer)r.push(B(Object.fromEntries([...new Uint8Array(t).entries()].map(([e,s])=>[e,s.toString()]))));else if(t instanceof FormData){const e={};for(const s of t.entries()){const[n,i]=s;e[n]=i instanceof File?i.name:i}r.push(B(e))}else if(q(t))r.push(B(E(t)));else try{r.push(B(t))}catch{console.warn("[useFetch] Failed to hash body",t)}}return r}const dt={class:"flex items-center gap-2"},mt=["src","alt"],gt={class:""},yt={class:"font-medium text-sm text-gray-900"},_t={__name:"Author",props:{author:{type:Object,required:!0}},setup(a){return(r,t)=>(C(),S("div",dt,[u("img",{class:"size-8 flex-none object-cover rounded-full",src:a.author?.profile_image||"https://picsum.photos/id/14/32?blur=2",alt:a.author?.name},null,8,mt),u("div",gt,[u("p",yt,L(a.author?.name),1)])]))}},wt={class:"min-h-screen"},bt={key:0,class:"pt-12 my-14"},$t={class:"space-y-6"},vt={class:"mt-3 text-4xl md:text-5xl font-semibold text-gray-900 md:leading-15 -tracking-snug mx-auto max-w-[720px]"},xt={class:"flex items-center justify-between"},Bt={class:"text-[13px] text-center text-gray-600"},jt={class:"flex items-center mt-4 prose prose-sm lg:prose-base"},zt=["innerHTML"],At={class:"pt-6 md:flex items-center justify-between"},kt={class:"flex items-center gap-3 mt-8 md:justify-center md:mt-0"},Ot=["innerHTML"],Et={__name:"[slug]",async setup(a){let r,t;const e=V(),s=J(),n=Q(),{data:i}=([r,t]=G(()=>pt(`/api/blog-post/${e.params.slug}`,"$Gskxw08DAP")),r=await r,t(),r),o=K(i.value.post),l=U(()=>nt.filter(y=>y.network!=="instagram")),p=o?.value?.title,m=o?.value?.excerpt||"",g=m.length>160?m.substring(0,157)+"...":m,c=`${n.public.appURL}/blog/${e.params.slug}`;return W({title:p,meta:[{name:"description",content:g},{property:"og:title",content:p},{property:"og:description",content:g},{hid:"og:type",property:"og:type",content:"article"},{property:"og:url",content:c},{hid:"og:image",property:"og:image",content:o.value.feature_image},{hid:"og:image:secure_url",property:"og:image:secure_url",content:o.value.feature_image},{hid:"twitter:image",property:"twitter:image",content:o.value.feature_image},{name:"twitter:title",content:p},{name:"twitter:description",content:g},{property:"article:published_time",content:o.value.published_at},{property:"article:modified_time",content:o.value.updated_at},{property:"article:author",content:o.value.authors?.[0]?.name}],script:[{src:"/blog/js/ghost.js",body:!0},{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"BlogPosting",headline:p,description:g,image:o.value.feature_image,datePublished:o.value.published_at,dateModified:o.value.updated_at,author:{"@type":"Person",name:o.value.authors?.[0]?.name},publisher:{"@type":"Organization",name:"Cadana",url:"https://cadanapay.com"},mainEntityOfPage:{"@type":"WebPage","@id":c}})}]}),(y,_)=>{const z=T,A=I,b=_t,k=X("ShareNetwork"),f=P,v=rt;return C(),S("div",wt,[u("header",null,[x(z)]),h(o)?(C(),S("article",bt,[x(v,{class:"max-w-[720px] mx-auto"},{default:D(()=>[u("header",$t,[u("button",{onClick:_[0]||(_[0]=d=>h(s).back()),class:"flex items-center gap-2 text-sm font-medium text-gray-600 hover:text-gray-800 transition duration-200"},[..._[1]||(_[1]=[u("svg",{class:"size-3",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}
1,[u("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.08934 0.410749C7.41477 0.736186 7.41477 1.26382 7.08934 1.58926L2.67859 6L7.08934 10.4107C7.41477 10.7362 7.41477 11.2638 7.08934 11.5893C6.7639 11.9147 6.23626 11.9147 5.91083 11.5893L0.910826 6.58926C0.585389 6.26382 0.585389 5.73619 0.910826 5.41075L5.91083 0.410749C6.23626 0.0853125 6.7639 0.0853125 7.08934 0.410749Z",fill:"currentColor"})],-1),Y(" Blog ",-1)])]),u("h1",vt,L(h(o).title),1),u("figure",null,[x(A,{format:"webp",src:h(o).feature_image,class:"w-full object-cover rounded-xl aspect-[720/357.5]",alt:h(o).title},null,8,["src","alt"])]),u("div",xt,[x(b,{author:h(o).authors[0]},null,8,["author"]),u("p",Bt,L(("formatDate"in y?y.formatDate:h(N))(h(o).published_at)),1)])]),u("section",jt,[u("div",{innerHTML:h(o).html},null,8,zt)]),u("section",At,[x(b,{author:h(o).authors[0]},null,8,["author"]),u("div",kt,[x(f,null,{default:D(()=>[(C(!0),S(tt,null,et(h(l),d=>(C(),st(k,{class:"hover:text-gray-700 transition-colors duration-200",key:d.id,network:d.network,url:`${h(n).public.appURL}${h(e).fullPath}`,title:h(o).title,description:h(o).excerpt},{default:D(()=>[u("div",{innerHTML:d.icon},null,8,Ot)]),_:2},1032,["network","url","title","description"]))),128))]),_:1})])])]),_:1})])):Z("",!0)])}}};export{Et as default};
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.