PageSourceSearch

https://lakegeorge.ai/assets/BlogPost-SL0RHh2p.js

js lakegeorge.ai collected 2026-10-05 13:33:54 UTC 52,406 bytes, 18 lines download raw bytes

1import{a8 as _e,a9 as Qe,aa as I,ab as M,ac as K,ad as $,ae as Je,af as Ze,ag as De,ah as X,ai as O,aj as _,ak as Ke,al as F,am as Xe,an as q,ao as Ye,ap as se,aq as P,ar as T,as as et,a3 as tt,a as nt,b as ue,s as ce,j as f,t as W,a6 as rt,M as fe,B as he,o as R,H as it,w as H,U as me,D as pe,Q as ge,v as xe,at as lt}from"./index-PtGACUVf.js";import{p as de}from"./purify.es-D9RiKzGB.js";import{A as U}from"./arrow-left-QiRMPYSA.js";function at(e){if(!e)return"";let n=e;if(/<(h[1-6]|p|ul|ol|li|div|article|section|strong|em|a\s)/i.test(n))return n=n.replace(/<h2>\s*<strong>(.*?)<\/strong>\s*<\/h2>/gi,"<h2>$1</h2>"),n=n.replace(/<h3>\s*<strong>(.*?)<\/strong>\s*<\/h3>/gi,"<h3>$1</h3>"),de.sanitize(n);n=n.replace(/^#### (.+)$/gm,"<h4>$1</h4>"),n=n.replace(/^### (.+)$/gm,"<h3>$1</h3>"),n=n.replace(/^## (.+)$/gm,"<h2>$1</h2>"),n=n.replace(/^# (.+)$/gm,"<h1>$1</h1>"),n=n.replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>"),n=n.replace(new RegExp("(?<!\\*)\\*([^*]+)\\*(?!\\*)","g"),"<em>$1</em>"),n=n.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2">$1</a>');const r=n.split(`
2`),a=[];let l=!1,i=[];for(let u=0;u<r.length;u++){const s=r[u].trim();if(!s){l&&i.length>0&&(a.push("<ul>"),a.push(...i.map(d=>`  <li>${d}</li>`)),a.push("</ul>"),i=[],l=!1);continue}const m=s.match(/^[\*\-]\s+(.+)$/);if(m){l=!0,i.push(m[1]);continue}if(l&&i.length>0&&(a.push("<ul>"),a.push(...i.map(d=>`  <li>${d}</li>`)),a.push("</ul>"),i=[],l=!1),s.startsWith("<")){a.push(s);continue}const c=s.length<80&&!s.endsWith(".")&&!s.endsWith(",")&&!s.endsWith(":")&&!s.includes("<")&&/^[A-Z]/.test(s);let g=!1;for(let d=u+1;d<r.length;d++){const p=r[d].trim();if(p){g=!p.match(/^[\*\-]\s/)&&p.length>50;break}}c&&(g||s.includes("Tips")||s.includes("Experience")||s.includes("Details"))?a.push(`<h2>${s}</h2>`):a.push(`<p>${s}</p>`)}return i.length>0&&(a.push("<ul>"),a.push(...i.map(u=>`  <li>${u}</li>`)),a.push("</ul>")),n=a.join(`
3`),n=n.replace(/<p><p>/g,"<p>"),n=n.replace(/<\/p><\/p>/g,"</p>"),n=n.replace(/<p>\s*<\/p>/g,""),de.sanitize(n)}function be(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,a=t.indexOf(n);for(;a!==-1;)r++,a=t.indexOf(n,a+n.length);return r}function ot(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function st(e,n,t){const a=_e((t||{}).ignore||[]),l=ut(n);let i=-1;for(;++i<l.length;)Qe(e,"text",u);function u(s,m){let c=-1,g;for(;++c<m.length;){const d=m[c],p=g?g.children:void 0;if(a(d,p?p.indexOf(d):void 0,g))return;g=d}if(g)return o(s,m)}function o(s,m){const c=m[m.length-1],g=l[i][0],d=l[i][1];let p=0;const w=c.children.indexOf(s);let b=!1,y=[];g.lastIndex=0;let v=g.exec(s.value);for(;v;){const j=v.index,D={index:v.index,input:v.input,stack:[...m,s]};let C=d(...v,D);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C===!1)g.lastIndex=j+1;else{if(p!==j&&x({type:"text",value:s.value.slice(p,j)}),Array.isArray(C))for(const S of C)x(S);else C&&x(C);p=j+v[0].length,b=!0}if(!g.global)break;v=g.exec(s.value)}return b?(p<s.value.length&&x({type:"text",value:s.value.slice(p)}),c.children.splice(w,1,...y)):y=[s],w+y.length;function x(j){const D=y[y.length-1];D&&D.type==="text"&&j.type==="text"?D.value+=j.value:y.push(j)}}}function ut(e){if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=[],t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const a=t[r];n.push([ct(a[0]),ft(a[1])])}return n}function ct(e){return typeof e=="string"?new RegExp(ot(e),"g"):e}function ft(e){return typeof e=="function"?e:function(){return e}}const V="phrasing",G=["autolink","link","image","label"];function ht(){return{transforms:[kt],enter:{literalAutolink:pt,literalAutolinkEmail:Q,literalAutolinkHttp:Q,literalAutolinkWww:Q},exit:{literalAutolink:bt,literalAutolinkEmail:dt,literalAutolinkHttp:gt,literalAutolinkWww:xt}}}function mt(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:V,notInConstruct:G},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:V,notInConstruct:G},{character:":",before:"[ps]",after:"\\/",inConstruct:V,notInConstruct:G}]}}function pt(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Q(e){this.config.enter.autolinkProtocol.call(this,e)}function gt(e){this.config.exit.autolinkProtocol.call(this,e)}function xt(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];I(n.type==="link"),n.url="http://"+this.sliceSerialize(e)}function dt(e){this.config.exit.autolinkEmail.call(this,e)}function bt(e){this.exit(e)}function kt(e){st(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,wt],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S}
3)([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),yt]],{ignore:["link","linkReference"]})}function wt(e,n,t,r,a){let l="";if(!Ae(a)||(/^w/i.test(n)&&(t=n+t,n="",l="http://"),!vt(t)))return!1;const i=jt(t+r);if(!i[0])return!1;const u={type:"link",title:null,url:l+n+i[0],children:[{type:"text",value:n+i[0]}]};return i[1]?[u,{type:"text",value:i[1]}]:u}function yt(e,n,t,r){return!Ae(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function vt(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function jt(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const a=be(e,"(");let l=be(e,")");for(;r!==-1&&a>l;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),l++;return[e,t]}function Ae(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||M(t)||K(t))&&(!n||t!==47)}Le.peek=Tt;function Ct(){this.buffer()}function _t(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Dt(){this.buffer()}function At(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Lt(e){const n=this.resume(),t=this.stack[this.stack.length-1];I(t.type==="footnoteReference"),t.identifier=$(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Ft(e){this.exit(e)}function Nt(e){const n=this.resume(),t=this.stack[this.stack.length-1];I(t.type==="footnoteDefinition"),t.identifier=$(this.sliceSerialize(e)).toLowerCase(),t.label=n}function St(e){this.exit(e)}function Tt(){return"["}function Le(e,n,t,r){const a=t.createTracker(r);let l=a.move("[^");const i=t.enter("footnoteReference"),u=t.enter("reference");return l+=a.move(t.safe(t.associationId(e),{after:"]",before:l})),u(),i(),l+=a.move("]"),l}function zt(){return{enter:{gfmFootnoteCallString:Ct,gfmFootnoteCall:_t,gfmFootnoteDefinitionLabelString:Dt,gfmFootnoteDefinition:At},exit:{gfmFootnoteCallString:Lt,gfmFootnoteCall:Ft,gfmFootnoteDefinitionLabelString:Nt,gfmFootnoteDefinition:St}}}function Mt(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:Le},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,a,l,i){const u=l.createTracker(i);let o=u.move("[^");const s=l.enter("footnoteDefinition"),m=l.enter("label");return o+=u.move(l.safe(l.associationId(r),{before:o,after:"]"})),m(),o+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),o+=u.move((n?`
4`:" ")+l.indentLines(l.containerFlow(r,u.current()),n?Fe:It))),s(),o}}function It(e,n,t){return n===0?e:Fe(e,n,t)}function Fe(e,n,t){return(t?"":"    ")+e}const Et=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Y.attention=Bt;Y.peek=qt;function Rt(){return{canContainEols:["delete"],enter:{strikethrough:Ot},exit:{strikethrough:$t}}}function Pt(){return{handlers:{delete:Y},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Et}]}}function Ot(e){this.enter({type:"delete",children:[],position:void 0},e)}function $t(e){this.exit(e)}function Y(e,n,t,r){const a=t.createTracker(r),l=t.stack.includes("strikethrough")?"~":"~~",i=t.enter("strikethrough");let u=a.move(l);return u+=t.containerPhrasing(e,{...a.current(),before:u,after:"~"}),u+=a.move(l),i(),u}function Bt(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}}function qt(){return"~"}function Wt(e){return e.length}function Ht(e,n){const t=n||{},r=(t.align||[]).concat(),a=t.stringLength||Wt,l=[],i=[],u=[],o=[];let s=0,m=-1;for(;++m<e.length;){const k=[],w=[];let b=-1;for(e[m].length>s&&(s=e[m].length);++b<e[m].length;){const y=Ut(e[m][b]);if(t.alignDelimiters!==!1){const v=a(y);w[b]=v,(o[b]===void 0||v>o[b])&&(o[b]=v)}k.push(y)}i[m]=k,u[m]=w}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)l[c]=ke(r[c]);
vendor: 6,599 bytes, lines 4-16
4else{const k=ke(r);for(;++c<s;)l[c]=k}c=-1;const g=[],d=[];for(;++c<s;){const k=l[c];let w="",b="";k===99?(w=":",b=":"):k===108?w=":":k===114&&(b=":");let y=t.alignDelimiters===!1?1:Math.max(1,o[c]-w.length-b.length);const v=w+"-".repeat(y)+b;t.alignDelimiters!==!1&&(y=w.length+y+b.length,y>o[c]&&(o[c]=y),d[c]=y),g[c]=v}i.splice(1,0,g),u.splice(1,0,d),m=-1;const p=[];for(;++m<i.length;){const k=i[m],w=u[m];c=-1;const b=[];for(;++c<s;){const y=k[c]||"";let v="",x="";if(t.alignDelimiters!==!1){const j=o[c]-(w[c]||0),D=l[c];D===114?v=" ".repeat(j):D===99?j%2?(v=" ".repeat(j/2+.5),x=" ".repeat(j/2-.5)):(v=" ".repeat(j/2),x=v):x=" ".repeat(j)}t.delimiterStart!==!1&&!c&&b.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&y==="")&&(t.delimiterStart!==!1||c)&&b.push(" "),t.alignDelimiters!==!1&&b.push(v),b.push(y),t.alignDelimiters!==!1&&b.push(x),t.padding!==!1&&b.push(" "),(t.delimiterEnd!==!1||c!==s-1)&&b.push("|")}p.push(t.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return p.join(`
5`)}function Ut(e){return e==null?"":String(e)}function ke(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}const Vt=_e(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Gt(e,n,t,r){const a=t.enter("blockquote"),l=t.createTracker(r);l.move("> "),l.shift(2);const i=t.indentLines(t.containerFlow(e,l.current()),Qt);return a(),i}function Qt(e,n,t){return">"+(t?"":" ")+e}function Jt(e,n){return we(e,n.inConstruct,!0)&&!we(e,n.notInConstruct,!1)}function we(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function ye(e,n,t,r){let a=-1;for(;++a<t.unsafe.length;){const l=t.unsafe[a];if(l.character===`
6`&&!l.before&&!l.after&&Jt(t.stack,l))return/[\t ]/.test(r.before)?"":" "}return`\\
7`}function Zt(e,n){const t=String(e);let r=t.indexOf(n),a=r,l=0,i=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++l>i&&(i=l):l=1,a=r+n.length,r=t.indexOf(n,a);return i}function Kt(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^\n\r ]/.test(e.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function Xt(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Yt(e,n,t,r){const a=Xt(t),l=e.value||"";if(Kt(e,t)){const c=t.enter("codeIndented"),g=t.indentLines(l,en);return c(),g}const i=t.createTracker(r),u=a.repeat(Math.max(Zt(l,a)+1,3)),o=t.enter("codeFenced"),s=a==="`"?"GraveAccent":"Tilde";let m=i.move(u);if(e.lang){const c=t.enter(`codeFencedLang${s}`);m+=i.move(t.safe(e.lang,{before:m,after:" ",encode:["`"],...i.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${s}`);m+=i.move(" "),m+=i.move(t.safe(e.meta,{before:m,after:`
8`,encode:["`"],...i.current()})),c()}return m+=i.move(`
9`),l&&(m+=i.move(l+`
10`)),m+=i.move(u),o(),m}function en(e,n,t){return(t?"":"    ")+e}function ee(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function tn(e,n,t,r){const a=ee(t),l=a==='"'?"Quote":"Apostrophe",i=t.enter("definition");let u=t.enter("label");const o=t.createTracker(r);let s=o.move("[");return s+=o.move(t.safe(t.associationId(e),{before:s,after:"]",...o.current()})),s+=o.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=o.move("<"),s+=o.move(t.safe(e.url,{before:s,after:">",...o.current()})),s+=o.move(">")):(u=t.enter("destinationRaw"),s+=o.move(t.safe(e.url,{before:s,after:e.title?" ":`
11`,...o.current()}))),u(),e.title&&(u=t.enter(`title${l}`),s+=o.move(" "+a),s+=o.move(t.safe(e.title,{before:s,after:a,...o.current()})),s+=o.move(a),u()),i(),s}function nn(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}te.attention=rn;te.peek=ln;function te(e,n,t,r){const a=t.enter("phrasing"),l=t.containerPhrasing({type:"root",children:[e]},r);return a(),l}function rn(e,n){return{construct:"emphasis",markers:nn(n)==="*"?["*","_"]:["_","*"],sizes:[1]}}function ln(e,n,t){return t.options.emphasis||"*"}function an(e){return"&#x"+e.toString(16).toUpperCase()+";"}function on(e,n){let t=!1;return Je(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,Ze}),!!((!e.depth||e.depth<3)&&De(e)&&(n.options.setext||t))}function sn(e,n,t,r){const a=Math.max(Math.min(6,e.depth||1),1),l=t.createTracker(r);if(on(e,t)){const c=t.enter("headingSetext"),g=t.enter("phrasing"),d=t.containerPhrasing(e,{...l.current(),before:`
12`,after:`
13`});return g(),c(),d+`
14`+(a===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
15`))+1))}const i="#".repeat(a),u=t.enter("headingAtx"),o=t.enter("phrasing");l.move(i+" ");let s=t.containerPhrasing(e,{before:"# ",after:`
16`,...l.current()});const m=s.charCodeAt(0);return(m===9||m===32)&&(s=an(m)+s.slice(1)),s=s?i+" "+s:i,t.options.closeAtx&&(s+=" "+i),o(),u(),s}Ne.peek=un;function Ne(e){return e.value||""}function un(){return"<"}Se.peek=cn;function Se(e,n,t,r){const a=ee(t),l=a==='"'?"Quote":"Apostrophe",i=t.enter("image");let u=t.enter("label");const o=t.createTracker(r);let s=o.move("![");return s+=o.move(t.safe(e.alt,{before:s,after:"]",...o.current()})),s+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=o.move("<"),s+=o.move(t.safe(e.url,{before:s,after:">",...o.current()})),s+=o.move(">")):(u=t.enter("destinationRaw"),s+=o.move(t.safe(e.url,{before:s,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=t.enter(`title${l}`),s+=o.move(" "+a),s+=o.move(t.safe(e.title,{before:s,after:a,...o.current()})),s+=o.move(a),u()),s+=o.move(")"),i(),s}function cn(){return"!"}Te.peek=fn;function Te(e,n,t,r){const a=e.referenceType,l=t.enter("imageReference");let i=t.enter("label");const u=t.createTracker(r);let o=u.move("![");const s=t.safe(e.alt,{before:o,after:"]",...u.current()});o+=u.move(s+"]["),i();const m=t.stack;t.stack=m.filter(function(g){return g!=="phrasing"}),i=t.enter("reference");const c=t.safe(t.associationId(e),{before:o,after:"]",...u.current()});return i(),t.stack=m,l(),a==="full"||!s||s!==c?o+=u.move(c+"]"):a==="shortcut"?o=o.slice(0,-1):o+=u.move("]"),o}
vendor: 4,328 bytes, line 16
16function fn(){return"!"}ze.peek=hn;function ze(e,n,t){let r=e.value||"",a="`",l=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<t.unsafe.length;){const i=t.unsafe[l],u=t.compilePattern(i);if(!i.atBreak)continue;let o;for(;o=u.exec(r);){let s=o.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(o.index+1)}}return a+r+a}function hn(){return"`"}function Me(e,n){const t=De(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][+\-.a-z]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ie.peek=mn;function Ie(e,n,t,r){const a=ee(t),l=a==='"'?"Quote":"Apostrophe",i=t.createTracker(r);if(Me(e,t)){const m=t.stack;t.stack=m.filter(function(d){return d!=="phrasing"});const c=t.enter("autolink");let g=i.move("<");return g+=i.move(t.containerPhrasing(e,{before:g,after:">",...i.current()})),g+=i.move(">"),c(),t.stack=m,g}const u=t.enter("link");let o=t.enter("label"),s=i.move("[");return s+=i.move(t.containerPhrasing(e,{before:s,after:"](",...i.current()})),s+=i.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),s+=i.move("<"),s+=i.move(t.safe(e.url,{before:s,after:">",...i.current()})),s+=i.move(">")):(o=t.enter("destinationRaw"),s+=i.move(t.safe(e.url,{before:s,after:e.title?" ":")",...i.current()}))),o(),e.title&&(o=t.enter(`title${l}`),s+=i.move(" "+a),s+=i.move(t.safe(e.title,{before:s,after:a,...i.current()})),s+=i.move(a),o()),s+=i.move(")"),u(),s}function mn(e,n,t){return Me(e,t)?"<":"["}Ee.peek=pn;function Ee(e,n,t,r){const a=e.referenceType,l=t.enter("linkReference");let i=t.enter("label");const u=t.createTracker(r);let o=u.move("[");const s=t.containerPhrasing(e,{before:o,after:"]",...u.current()});o+=u.move(s+"]["),i();const m=t.stack;t.stack=m.filter(function(g){return g!=="phrasing"}),i=t.enter("reference");const c=t.safe(t.associationId(e),{before:o,after:"]",...u.current()});return i(),t.stack=m,l(),a==="full"||!s||s!==c?o+=u.move(c+"]"):a==="shortcut"?o=o.slice(0,-1):o+=u.move("]"),o}function pn(){return"["}function ne(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function gn(e){const n=ne(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function xn(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Re(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function dn(e,n,t,r){const a=t.enter("list"),l=t.bulletCurrent;let i=e.ordered?xn(t):ne(t);const u=e.ordered?i==="."?")":".":gn(t);let o=n&&t.bulletLastUsed?i===t.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((i==="*"||i==="-")&&m&&(!m.children||!m.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(o=!0),Re(t)===i&&m){let c=-1;for(;++c<e.children.length;){const g=e.children[c];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.children[0].type==="thematicBreak"){o=!0;break}}}}o&&(i=u),t.bulletCurrent=i;const s=t.containerFlow(e,r);return t.bulletLastUsed=i,t.bulletCurrent=l,a(),s}function bn(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function kn(e,n,t,r){const a=bn(t);let l=t.bulletCurrent||ne(t);n&&n.type==="list"&&n.ordered&&(l=(typeof n.start=="number"&&n.start>
vendor: 7,925 bytes, lines 16-18
16-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let i=l.length+1;(a==="tab"||a==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(i=Math.ceil(i/4)*4);const u=t.createTracker(r);u.move(l+" ".repeat(i-l.length)),u.shift(i);const o=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,u.current()),m);return o(),s;function m(c,g,d){return g?(d?"":" ".repeat(i))+c:(d?l:l+" ".repeat(i-l.length))+c}}function wn(e,n,t,r){const a=t.enter("paragraph"),l=t.enter("phrasing"),i=t.containerPhrasing(e,r);return l(),a(),i}function yn(e,n,t,r){if(!e.children.some(function(u){return Vt(u)}))return t.containerFlow(e,r);const l=t.enter("phrasing"),i=t.containerPhrasing(e,r);return l(),i}function vn(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}re.attention=jn;re.peek=Cn;function re(e,n,t,r){const a=t.enter("phrasing"),l=t.containerPhrasing({type:"root",children:[e]},r);return a(),l}function jn(e,n){return{construct:"strong",markers:vn(n)==="*"?["*","_"]:["_","*"],sizes:[2]}}function Cn(e,n,t){return t.options.strong||"*"}function _n(e,n,t,r){const a=n?n.children:[],l=a.indexOf(e);return t.safe(e.value,{...r,afterNode:a[l+1],beforeNode:a[l-1]})}function Dn(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function An(e,n,t){const r=(Re(t)+(t.options.ruleSpaces?" ":"")).repeat(Dn(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Pe={blockquote:Gt,break:ye,code:Yt,definition:tn,emphasis:te,hardBreak:ye,heading:sn,html:Ne,image:Se,imageReference:Te,inlineCode:ze,link:Ie,linkReference:Ee,list:dn,listItem:kn,paragraph:wn,root:yn,strong:re,text:_n,thematicBreak:An};function Ln(){return{enter:{table:Fn,tableData:ve,tableHeader:ve,tableRow:Sn},exit:{codeText:Tn,table:Nn,tableData:J,tableHeader:J,tableRow:J}}}function Fn(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Nn(e){this.exit(e),this.data.inTable=void 0}function Sn(e){this.enter({type:"tableRow",children:[]},e)}function J(e){this.exit(e)}function ve(e){this.enter({type:"tableCell",children:[]},e)}function Tn(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,zn));const t=this.stack[this.stack.length-1];I(t.type==="inlineCode"),t.value=n,this.exit(e)}function zn(e,n){return n==="|"?n:e}function Mn(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,a=n.stringLength,l=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
17`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:g,table:i,tableCell:o,tableRow:u}};function i(d,p,k,w){return s(m(d,k,w),d.align)}function u(d,p,k,w){const b=c(d,k,w),y=s([b]);return y.slice(0,y.indexOf(`
18`))}function o(d,p,k,w){const b=k.enter("tableCell"),y=k.enter("phrasing"),v=k.containerPhrasing(d,{...w,before:l,after:l});return y(),b(),v}function s(d,p){return Ht(d,{align:p,alignDelimiters:r,padding:t,stringLength:a})}function m(d,p,k){const w=d.children;let b=-1;const y=[],v=p.enter("table");for(;++b<w.length;)y[b]=c(w[b],p,k);return v(),y}function c(d,p,k){const w=d.children;let b=-1;const y=[],v=p.enter("tableRow");for(;++b<w.length;)y[b]=o(w[b],d,p,k);return v(),y}function g(d,p,k){let w=Pe.inlineCode(d,p,k);return k.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function In(){return{exit:{taskListCheckValueChecked:je,taskListCheckValueUnchecked:je,paragraph:Rn}}}function En(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Pn}}}function je(e){const n=this.stack[this.stack.length-2];I(n.type==="listItem"),n.checked=e.type==="taskListCheckValueChecked"}function Rn(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];I(t.type==="paragraph");const r=t.children[0];if(r&&r.type==="text"){const a=n.children;let l=-1,i;for(;++l<a.length;){const u=a[l];if(u.type==="paragraph"){i=u;break}}i===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Pn(e,n,t,r){const a=e.children[0],l=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",u=t.createTracker(r);l&&u.move(i);let o=Pe.listItem(e,n,t,{...r,...u.current()});return l&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),o;function s(m){return m+i}}function On(){return[ht(),zt(),Rt(),Ln(),In()]}function $n(e){return{extensions:[mt(),Mt(e),Pt(),Mn(e),En()]}}const Bn={tokenize:Gn,partial:!0},Oe={tokenize:Qn,partial:!0},$e={tokenize:Jn,partial:!0},Be={tokenize:Zn,partial:!0},qn={tokenize:Kn,partial:!0},qe={name:"wwwAutolink",tokenize:Un,previous:He},We={name:"protocolAutolink",tokenize:Vn,previous:Ue},L={name:"emailAutolink",tokenize:Hn,previous:Ve},A={};function Wn(){return{text:A}}let N=48;for(;N<123;)A[N]=L,N++,N===58?N=65:N===91&&(N=97);A[43]=L;A[45]=L;A[46]=L;A[95]=L;A[72]=[L,We];A[104]=[L,We];A[87]=[L,qe];A[119]=[L,qe];function Hn(e,n,t){const r=this;let a,l;return i;function i(c){return!Z(c)||!Ve.call(r,r.previous)||ie(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(c))}function u(c){return Z(c)?(e.consume(c),u):c===64?(e.consume(c),o):t(c)}function o(c){return c===46?e.check(qn,m,s)(c):c===45||c===95||X(c)?(l=!0,e.consume(c),o):m(c)}function s(c){return e.consume(c),a=!0,o}function m(c){return l&&a&&O(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Un(e,n,t){const r=this;return a;function a(i){return i!==87&&i!==119||!He.call(r,r.previous)||ie(r.events)?t(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Bn,e.attempt(Oe,e.attempt($e,l),t),t)(i))}function l(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(i)}}function Vn(e,n,t){const r=this;let a="",l=!1;return i;function i(c){return(c===72||c===104)&&Ue.call(r,r.previous)&&!ie(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(c),e.consume(c),u):t(c)}function u(c){if(O(c)&&a.length<5)return a+=String.fromCodePoint(c),e.consume(c),u;if(c===58){const g=a.toLowerCase();if(g==="http"||g==="https")return e.consume(c),o}return t(c)}function o(c){return c===47?(e.consume(c),l?s:(l=!0,o)):t(c)}function s(c){return c===null||Ke(c)||_(c)||M(c)||K(c)?t(c):e.attempt(Oe,e.attempt($e,m),t)(c)}function m(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Gn(e,n,t){let r=0;return a;function a(i){return(i===87||i===119)&&r<3?(r++,e.consume(i),a):i===46&&r===3?(e.consume(i),l):t(i)}function l(i){return i===null?t(i):n(i)}}function Qn(e,n,t){let r,a,l;return i;function i(s){return s===46||s===95?e.check(Be,o,u)(s):s===null||_(s)||M(s)||s!==45&&K(s)?o(s):(l=!0,e.consume(s),i)}function u(s){return s===95?r=!0:(a=r,r=void 0),e.consume(s),i}function o(s){return a||r||!l?t(s):n(s)}}function Jn(e,n){let t=0,r=0;return a;function a(i){return i===40?(t++,e.consume(i),a):i===41&&r<t?l(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(Be,n,l)(i):i===null||_(i)||M(i)?n(i):(e.consume(i),a)}function l(i){return i===41&&r++,e.consume(i),a}}function Zn(e,n,t){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),l):u===93?(e.consume(u),a):u===60||u===null||_(u)||M(u)?
vendor: 10,873 bytes, line 18
18n(u):t(u)}function a(u){return u===null||u===40||u===91||_(u)||M(u)?n(u):r(u)}function l(u){return O(u)?i(u):t(u)}function i(u){return u===59?(e.consume(u),r):O(u)?(e.consume(u),i):t(u)}}function Kn(e,n,t){return r;function r(l){return e.consume(l),a}function a(l){return X(l)?t(l):n(l)}}function He(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||_(e)}function Ue(e){return!O(e)}function Ve(e){return!(e===47||Z(e))}function Z(e){return e===43||e===45||e===46||e===95||X(e)}function ie(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Xn={tokenize:ar,partial:!0};function Yn(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:rr,continuation:{tokenize:ir},exit:lr}},text:{91:{name:"gfmFootnoteCall",tokenize:nr},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:er,resolveTo:tr}}}}function er(e,n,t){const r=this;let a=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;a--;){const o=r.events[a][1];if(o.type==="labelImage"){i=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return u;function u(o){if(!i||!i._balanced)return t(o);const s=$(r.sliceSerialize({start:i.end,end:r.now()}));return s.codePointAt(0)!==94||!l.includes(s.slice(1))?t(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),n(o))}}function tr(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},u=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",a,n],["exit",a,n],["enter",l,n],["enter",i,n],["exit",i,n],["exit",l,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...u),e}function nr(e,n,t){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,i;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),o}function o(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(l>999||c===93&&!i||c===null||c===91||_(c))return t(c);if(c===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return a.includes($(r.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return _(c)||(i=!0),l++,e.consume(c),c===92?m:s}function m(c){return c===91||c===92||c===93?(e.consume(c),l++,s):s(c)}}function rr(e,n,t){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,i=0,u;return o;function o(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):t(p)}function m(p){if(i>999||p===93&&!u||p===null||p===91||_(p))return t(p);if(p===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return l=$(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return _(p)||(u=!0),i++,e.consume(p),p===92?c:m}function c(p){return p===91||p===92||p===93?(e.consume(p),i++,m):m(p)}function g(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a.includes(l)||a.push(l),F(e,d,"gfmFootnoteDefinitionWhitespace")):t(p)}function d(p){return n(p)}}function ir(e,n,t){return e.check(Xe,n,e.attempt(Xn,n,t))}function lr(e){e.exit("gfmFootnoteDefinition")}function ar(e,n,t){const r=this;return F(e,a,"gfmFootnoteDefinitionIndent",5);function a(l){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?n(l):t(l)}}function or(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:a};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(i,u){let o=-1;for(;++o<i.length;)if(i[o][0]==="enter"&&i[o][1].type==="strikethroughSequenceTemporary"&&i[o][1]._close){let s=o;for(;s--;)if(i[s][0]==="exit"&&i[s][1].type==="strikethroughSequenceTemporary"&&i[s][1]._open&&i[o][1].end.offset-i[o][1].start.offset===i[s][1].end.offset-i[s][1].start.offset){i[o][1].type="strikethroughSequence",i[s][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},i[s][1].start),end:Object.assign({},i[o][1].end)},c={type:"strikethroughText",start:Object.assign({},i[s][1].end),end:Object.assign({},i[o][1].start)},g=[["enter",m,u],["enter",i[s][1],u],["exit",i[s][1],u],["enter",c,u]],d=u.parser.constructs.insideSpan.null;d&&q(g,g.length,0,Ye(d,i.slice(s+1,o),u)),q(g,g.length,0,[["exit",c,u],["enter",i[o][1],u],["exit",i[o][1],u],["exit",m,u]]),q(i,s-1,o-s+3,g),o=s+g.length-2;break}}for(o=-1;++o<i.length;)i[o][1].type==="strikethroughSequenceTemporary"&&(i[o][1].type="data");return i}function l(i,u,o){const s=this.previous,m=this.events;let c=0;return g;function g(p){return s===126&&m[m.length-1][1].type!=="characterEscape"?o(p):(i.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const k=se(s);if(p===126)return c>1?o(p):(i.consume(p),c++,d);if(c<2&&!t)return o(p);const w=i.exit("strikethroughSequenceTemporary"),b=se(p);return w._open=!b||b===2&&!!k,w._close=!k||k===2&&!!b,u(p)}}}class sr{constructor(){this.map=[],this.index=new Map}add(n,t,r){ur(this,n,t,r)}consume(n){if(this.map.sort(function(l,i){return l[0]-i[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let a=r.pop();for(;a;){for(const l of a)n.push(l);a=r.pop()}this.map.length=0,this.index.clear()}}function ur(e,n,t,r){if(t===0&&r.length===0)return;const a=e.index.get(n);if(a){a[1]+=t,a[2].push(...r);return}const l=[n,t,r];e.map.push(l),e.index.set(n,l)}function cr(e,n){let t=!1;const r=[];for(;n<e.length;){const a=e[n];if(t){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function fr(){return{flow:{null:{name:"table",tokenize:hr,resolveAll:mr}}}}function hr(e,n,t){const r=this;let a=0,l=0,i;return u;function u(h){let E=r.events.length-1;for(;E>-1;){const{type:oe}=r.events[E][1];if(oe==="lineEnding"||oe==="linePrefix")E--;else break}const le=E>-1?r.events[E][1].type:null,ae=le==="tableHead"||le==="tableRow"?D:o;return ae===D&&r.parser.lazy[r.now().line]?t(h):ae(h)}function o(h){return e.enter("tableHead"),e.enter("tableRow"),s(h)}function s(h){return h===124||(i=!0,l+=1),m(h)}function m(h){return h===null?t(h):P(h)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):t(h):T(h)?F(e,m,"whitespace")(h):(l+=1,i&&(i=!1,a+=1),h===124?(e.enter("tableCellDivider"),e.consume(h),e.exit("tableCellDivider"),i=!0,m):(e.enter("data"),c(h)))}function c(h){return h===null||h===124||_(h)?(e.exit("data"),m(h)):(e.consume(h),h===92?g:c)}function g(h){return h===92||h===124?(e.consume(h),c):c(h)}function d(h){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(h):(e.enter("tableDelimiterRow"),i=!1,T(h)?F(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):p(h))}function p(h){return h===45||h===58?w(h):h===124?(i=!0,e.enter("tableCellDivider"),e.consume(h),e.exit("tableCellDivider"),k):j(h)}function k(h){return T(h)?F(e,w,"whitespace")(h):w(h)}function w(h){return h===58?(l+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(h),e.exit("tableDelimiterMarker"),b):h===45?(l+=1,b(h)):h===null||P(h)?x(h):j(h)}function b(h){return h===45?(e.enter("tableDelimiterFiller"),y(h)):j(h)}function y(h){return h===45?(e.consume(h),y):h===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(h),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(h))}function v(h){return T(h)?F(e,x,"whitespace")(h):x(h)}function x(h){return h===124?p(h):h===null||P(h)?!i||a!==l?j(h):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(h)):j(h)}function j(h){return t(h)}function D(h){return e.enter("tableRow"),C(h)}function C(h){return h===124?(e.enter("tableCellDivider"),e.consume(h),e.exit("tableCellDivider"),C):h===null||P(h)?(e.exit("tableRow"),n(h)):T(h)?F(e,C,"whitespace")(h):(e.enter("data"),S(h))}function S(h){return h===null||h===124||_(h)?(e.exit("data"),C(h)):(e.consume(h),h===92?Ge:S)}function Ge(h){return h===92||h===124?(e.consume(h),S):S(h)}}function mr(e,n){let t=-1,r=!0,a=0,l=[0,0,0,0],i=[0,0,0,0],u=!1,o=0,s,m,c;const g=new sr;for(;++t<e.length;){const d=e[t],p=d[1];d[0]==="enter"?p.type==="tableHead"?(u=!1,o!==0&&(Ce(g,n,o,s,m),m=void 0,o=0),s={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},g.add(t,0,[["enter",s,n]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],i=[0,t+1,0,0],u&&(u=!1,m={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},g.add(t,0,[["enter",m,n]])),a=p.type==="tableDelimiterRow"?2:m?3:1):a&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(r=!1,i[2]===0&&(l[1]!==0&&(i[0]=i[1],c=B(g,n,l,a,void 0,c),l=[0,0,0,0]),i[2]=t)):p.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(i[0]=i[1],c=B(g,n,l,a,void 0,c)),l=i,i=[l[1],t,0,0])):p.type==="tableHead"?(u=!0,o=t):p.type==="tableRow"||p.type==="tableDelimiterRow"?(o=t,l[1]!==0?(i[0]=i[1],c=B(g,n,l,a,t,c)):i[1]!==0&&(c=B(g,n,i,a,t,c)),a=0):a&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.t
18ype==="tableDelimiterFiller")&&(i[3]=t)}for(o!==0&&Ce(g,n,o,s,m),g.consume(n.events),t=-1;++t<n.events.length;){const d=n.events[t];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=cr(n.events,t))}return e}function B(e,n,t,r,a,l){const i=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";t[0]!==0&&(l.end=Object.assign({},z(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const o=z(n.events,t[1]);if(l={type:i,start:Object.assign({},o),end:Object.assign({},o)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const s=z(n.events,t[2]),m=z(n.events,t[3]),c={type:u,start:Object.assign({},s),end:Object.assign({},m)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const g=n.events[t[2]],d=n.events[t[3]];if(g[1].end=Object.assign({},d[1].end),g[1].type="chunkText",g[1].contentType="text",t[3]>t[2]+1){const p=t[2]+1,k=t[3]-t[2]-1;e.add(p,k,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return a!==void 0&&(l.end=Object.assign({},z(n.events,a)),e.add(a,0,[["exit",l,n]]),l=void 0),l}function Ce(e,n,t,r,a){const l=[],i=z(n.events,t);a&&(a.end=Object.assign({},i),l.push(["exit",a,n])),r.end=Object.assign({},i),l.push(["exit",r,n]),e.add(t+1,0,l)}function z(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const pr={name:"tasklistCheck",tokenize:xr};function gr(){return{text:{91:pr}}}function xr(e,n,t){const r=this;return a;function a(o){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(o):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),l)}function l(o){return _(o)?(e.enter("taskListCheckValueUnchecked"),e.consume(o),e.exit("taskListCheckValueUnchecked"),i):o===88||o===120?(e.enter("taskListCheckValueChecked"),e.consume(o),e.exit("taskListCheckValueChecked"),i):t(o)}function i(o){return o===93?(e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):t(o)}function u(o){return P(o)?n(o):T(o)?e.check({tokenize:dr},n,t)(o):t(o)}}function dr(e,n,t){return F(e,r,"whitespace");function r(a){return a===null?t(a):n(a)}}function br(e){return et([Wn(),Yn(),or(e),fr(),gr()])}const kr={};function wr(e){const n=this,t=e||kr,r=n.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(br(t)),l.push(On()),i.push($n(t))}function yr(e){const t=e.replace(/<[^>]*>/g,"").split(/\s+/).length;return Math.max(1,Math.ceil(t/200))}function _r(){var v;const{slug:e}=tt(),{city:n,isLoading:t}=nt(),{data:r,isLoading:a}=ue({queryKey:["blog-post",e],queryFn:async()=>{if(!e)return null;const{data:x,error:j}=await ce.from("blog_posts").select("*").eq("slug",e).eq("is_published",!0).maybeSingle();if(j)throw j;return x},enabled:!!e}),l=r==null?void 0:r.city_id,{data:i}=ue({queryKey:["related-posts",l,r==null?void 0:r.id],queryFn:async()=>{if(!l||!(r!=null&&r.id))return[];const{data:x,error:j}=await ce.from("blog_posts").select("id, title, slug, featured_image_url, excerpt, published_at").eq("city_id",l).eq("is_published",!0).neq("id",r.id).order("published_at",{ascending:!1}).limit(3);if(j)throw j;return x},enabled:!!l&&!!(r!=null&&r.id)});if(a||t)return f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(W,{}),f.jsx("div",{className:"container mx-auto px-4 py-12",children:f.jsxs("div",{className:"max-w-3xl mx-auto space-y-8",children:[f.jsx("div",{className:"h-8 w-32 bg-muted animate-pulse rounded"}),f.jsx("div",{className:"h-12 w-full bg-muted animate-pulse rounded"}),f.jsx("div",{className:"h-64 w-full bg-muted animate-pulse rounded-xl"}),f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-4 w-full bg-muted animate-pulse rounded"}),f.jsx("div",{className:"h-4 w-3/4 bg-muted animate-pulse rounded"})]})]})})]});if(!r)return f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(rt,{}),f.jsx("div",{className:"fixed inset-0 -z-10 overflow-hidden",children:f.jsx("div",{className:"absolute top-0 left-1/4 w-96 h-96 bg-primary/5 rounded-full blur-3xl"})}),f.jsx(W,{}),f.jsx("div",{className:"container mx-auto px-4 py-24",children:f.jsxs("div",{className:"max-w-md mx-auto text-center",children:[f.jsx("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-muted flex items-center justify-center",children:f.jsx(fe,{className:"w-10 h-10 text-muted-foreground"})}),f.jsx("h1",{className:"text-2xl font-bold mb-3",children:"Post not found"}),f.jsx("p",{className:"text-muted-foreground mb-6",children:"The blog post you're looking for doesn't exist or has been removed."}),f.jsx(he,{asChild:!0,children:f.jsxs(R,{to:"/blog",children:[f.jsx(U,{className:"mr-2 h-4 w-4"}),"Back to Blog"]})})]})})]});const u=yr(r.body),o=r.author_name||(n?`${n.name} Local`:"Local Guide"),s=r.show_date===!0,m=(n==null?void 0:n.name)||"",c=(n==null?void 0:n.domain)||window.location.host,g=(n==null?void 0:n.state)||(n==null?void 0:n.country)||"",d=r.meta_title||`${r.title}${m?` | ${m}, ${g} Blog`:""}`,p=r.meta_description||r.excerpt||r.title,k=`https://${c}/blog/${r.slug}`,w=r.featured_image_url||`https://${c}
18/og-image.png`,b={"@context":"https://schema.org","@type":"Article",headline:r.title,description:p,image:w,datePublished:r.published_at||r.created_at,dateModified:r.updated_at||r.published_at||r.created_at,author:{"@type":"Person",name:o},publisher:{"@type":"Organization",name:`${m||"Local"} Directory`,logo:{"@type":"ImageObject",url:`https://${c}/favicon.png`}},mainEntityOfPage:{"@type":"WebPage","@id":k}},y={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`https://${c}`},{"@type":"ListItem",position:2,name:"Blog",item:`https://${c}/blog`},{"@type":"ListItem",position:3,name:r.title,item:k}]};return f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsxs(it,{children:[f.jsx("title",{children:d}),f.jsx("meta",{name:"description",content:p}),f.jsx("link",{rel:"canonical",href:k}),f.jsx("meta",{property:"og:title",content:d}),f.jsx("meta",{property:"og:description",content:p}),f.jsx("meta",{property:"og:url",content:k}),f.jsx("meta",{property:"og:type",content:"article"}),f.jsx("meta",{property:"og:image",content:w}),f.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),f.jsx("meta",{name:"twitter:title",content:d}),f.jsx("meta",{name:"twitter:description",content:p}),f.jsx("meta",{name:"twitter:image",content:w}),r.updated_at&&f.jsx("meta",{property:"article:modified_time",content:r.updated_at}),f.jsx("meta",{property:"article:published_time",content:r.published_at||r.created_at||""}),f.jsx("meta",{property:"article:author",content:o}),r.category&&f.jsx("meta",{property:"article:section",content:r.category}),(v=r.tags)==null?void 0:v.map((x,j)=>f.jsx("meta",{property:"article:tag",content:x},j)),f.jsx("script",{type:"application/ld+json",children:JSON.stringify(b)}),f.jsx("script",{type:"application/ld+json",children:JSON.stringify(y)})]}),f.jsx(W,{}),f.jsxs("main",{children:[r.featured_image_url?f.jsxs("div",{className:"relative h-[50vh] min-h-[400px] max-h-[600px] w-full",children:[f.jsx("img",{src:r.featured_image_url,alt:r.title,className:"absolute inset-0 w-full h-full object-cover"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-black/20"}),f.jsx("div",{className:"absolute inset-0 flex items-end",children:f.jsxs("div",{className:"container mx-auto px-4 pb-12",children:[f.jsxs(R,{to:"/blog",className:"inline-flex items-center text-white/80 hover:text-white mb-4 transition-colors",children:[f.jsx(U,{className:"mr-2 h-4 w-4"}),"Back to Blog"]}),r.category&&f.jsx(H,{className:"mb-4 bg-primary text-primary-foreground",children:r.category}),f.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-white max-w-4xl leading-tight mb-6",children:r.title}),f.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-white/80 text-sm",children:[f.jsxs("span",{className:"flex items-center gap-1.5",children:[f.jsx(me,{className:"h-4 w-4"}),o]}),s&&f.jsxs("span",{className:"flex items-center gap-1.5",children:[f.jsx(pe,{className:"h-4 w-4"}),ge(new Date(r.published_at||r.created_at),"MMMM d, yyyy")]}),f.jsxs("span",{className:"flex items-center gap-1.5",children:[f.jsx(xe,{className:"h-4 w-4"}),u," min read"]})]})]})}),r.image_attribution&&(()=>{if(typeof r.image_attribution=="string")return f.jsx("p",{className:"absolute bottom-2 right-4 text-xs text-white/60",children:r.image_attribution});const x=r.image_attribution;return!x.source&&!x.photographer?null:f.jsxs("p",{className:"absolute bottom-2 right-4 text-xs text-white/60",children:[x.photographer&&f.jsxs(f.Fragment,{children:["Photo by"," ",x.photographerUrl?f.jsx("a",{href:x.photographerUrl,target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-white/80",children:x.photographer}):x.photographer]}),x.source&&f.jsxs(f.Fragment,{children:[" on ",x.source.charAt(0).toUpperCase()+x.source.slice(1)]})]})})()]}):f.jsx("div",{className:"bg-gradient-to-b from-muted/50 to-background pt-8 pb-12",children:f.jsxs("div",{className:"container mx-auto px-4",children:[f.jsxs(R,{to:"/blog",className:"inline-flex items-center text-muted-foreground hover:text-foreground mb-4 transition-colors",children:[f.jsx(U,{className:"mr-2 h-4 w-4"}),"Back to Blog"]}),r.category&&f.jsx(H,{className:"mb-4 bg-primary text-primary-foreground",children:r.category}),f.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground max-w-4xl leading-tight mb-6",children:r.title}),f.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-muted-foreground text-sm",children:[f.jsxs("span",{className:"flex items-center gap-1.5",children:[f.jsx(me,{className:"h-4 w-4"}),o]}),s&&f.jsxs("span",{className:"flex items-center gap-1.5",children:[f.jsx(pe,{className:"h-4 w-4"}),ge(new Date(r.published_at||r.created_at),"MMMM d, yyyy")]}),f.jsxs("span",{className:"flex items-center gap-1.5",children:[f.jsx(xe,{className:"h-4 w-4"}),u," min read"]})]})]})}),f.jsxs("article",{className:"container mx-auto px-4 py-12",children:[r.subtitle&&f.jsx("p",{className:"max-w-3xl mx-auto text-xl text-muted-foreground mb-8 font-medium",children:r.subtitle}),r.content_format==="markdown"?f.jsx("div",{className:"max-w-3xl mx-auto",children:f.jsx(lt,{remarkPlugins:[wr],components:{h1:({children:x})=>f.jsx("h1",{className:"text-4xl font-bold text-foreground mt-10 mb-6",children:x}),h2:({children:x})=>f.jsx("h2",{className:"text-3xl font-bold text-foreground mt-10 mb-4 pb-3 border-b border-border",children:x}),h3:({children:x})=>f.jsx("h3",{className:"text-xl font-semibold text-foreground mt-8 mb-3",children:x}),p:({children:x})=>
18f.jsx("p",{className:"text-foreground/90 leading-relaxed mb-4",children:x}),a:({href:x,children:j})=>f.jsx("a",{href:x,target:x!=null&&x.startsWith("http")?"_blank":void 0,rel:x!=null&&x.startsWith("http")?"noopener noreferrer":void 0,className:"text-primary underline hover:text-primary/80",children:j}),ul:({children:x})=>f.jsx("ul",{className:"list-disc pl-6 my-4 space-y-1 text-foreground/90",children:x}),ol:({children:x})=>f.jsx("ol",{className:"list-decimal pl-6 my-4 space-y-1 text-foreground/90",children:x}),li:({children:x})=>f.jsx("li",{className:"leading-relaxed",children:x}),strong:({children:x})=>f.jsx("strong",{className:"font-semibold text-foreground",children:x}),blockquote:({children:x})=>f.jsx("blockquote",{className:"border-l-4 border-primary/30 pl-4 italic text-muted-foreground my-4",children:x})},children:r.body})}):f.jsx("div",{className:"blog-content prose prose-lg max-w-3xl mx-auto prose-headings:font-display prose-headings:text-foreground prose-p:text-foreground/90 prose-a:text-primary prose-a:no-underline hover:prose-a:underline prose-strong:text-foreground prose-h2:border-b prose-h2:border-border prose-h2:pb-3 prose-h2:mb-6",dangerouslySetInnerHTML:{__html:at(r.body)}}),r.tags&&r.tags.length>0&&f.jsx("div",{className:"max-w-3xl mx-auto mt-12 pt-8 border-t border-border",children:f.jsx("div",{className:"flex flex-wrap gap-2",children:r.tags.map(x=>f.jsx(H,{variant:"secondary",className:"text-sm",children:x},x))})})]}),f.jsx("div",{className:"bg-primary/5 border-y border-primary/10 py-12",children:f.jsx("div",{className:"container mx-auto px-4",children:f.jsxs("div",{className:"max-w-3xl mx-auto flex flex-col md:flex-row items-center justify-between gap-6 text-center md:text-left",children:[f.jsxs("div",{children:[f.jsxs("h2",{className:"text-2xl font-bold text-foreground mb-2",children:["Own a business",m?` in ${m}`:"","?"]}),f.jsx("p",{className:"text-muted-foreground",children:"Claim your listing and get discovered by locals and visitors."})]}),f.jsx(he,{asChild:!0,size:"lg",className:"shrink-0",children:f.jsx(R,{to:"/claim",children:"Claim Your Listing"})})]})})}),i&&i.length>0&&f.jsxs("section",{className:"container mx-auto px-4 py-16",children:[f.jsxs("h2",{className:"text-2xl font-bold mb-8",children:["More",m?` from ${m}`:""]}),f.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:i.map(x=>f.jsxs(R,{to:`/blog/${x.slug}`,className:"group block bg-card rounded-xl overflow-hidden border border-border shadow-sm hover:shadow-md transition-all duration-300 hover:-translate-y-1",children:[x.featured_image_url?f.jsx("div",{className:"aspect-[16/9] overflow-hidden",children:f.jsx("img",{src:x.featured_image_url,alt:x.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}):f.jsx("div",{className:"aspect-[16/9] bg-muted flex items-center justify-center",children:f.jsx(fe,{className:"w-8 h-8 text-muted-foreground"})}),f.jsxs("div",{className:"p-5",children:[f.jsx("h3",{className:"font-semibold text-foreground group-hover:text-primary transition-colors line-clamp-2 mb-2",children:x.title}),x.excerpt&&f.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:x.excerpt})]})]},x.id))})]})]})]})}export{_r 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.