PageSourceSearch

https://www.quizie.com/_next/static/immutable/chunks/3rw5_mmq4njnf.js

js quizie.com collected 2026-10-07 16:09:24 UTC 195,692 bytes, 76 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="8b0625c9-e5ad-bce8-a1b4-13778eecc62c")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,770130,e=>{"use strict";var t=e.i(655691),r=e.i(864706),n=e.i(318261);function a(){let e,r,a,i,s,o=(0,t.c)(12);o[0]===Symbol.for("react.memo_cache_sentinel")?(e={fallbackData:null},o[0]=e):e=o[0];let{data:l,mutate:c}=(0,n.default)("container-pane",null,e);o[1]===Symbol.for("react.memo_cache_sentinel")?(r={fallbackData:"files"},o[1]=r):r=o[1];let{data:u,mutate:h}=(0,n.default)("container-pane-last",null,r),d=l??null;o[2]!==c||o[3]!==h?(a=e=>{c(e,!1),e&&"file"!==e&&h(e,!1)},o[2]=c,o[3]=h,o[4]=a):a=o[4];let p=a,f=u??"files";o[5]!==c?(i=e=>{c(t=>t===e?null:e,!1)},o[5]=c,o[6]=i):i=o[6];let m=i;return o[7]!==f||o[8]!==d||o[9]!==p||o[10]!==m?(s={pane:d,setPane:p,togglePane:m,lastPane:f},o[7]=f,o[8]=d,o[9]=p,o[10]=m,o[11]=s):s=o[11],s}let i=new Set(["files","tasks","launch"]),s="openserve:container-pane-width";function o(e){return Math.min(.75,Math.max(.25,e))}let l=["peek","half","full"];e.s(["PANE_DETENTS",0,l,"PANE_PEEK_PX",0,56,"PANE_WIDTH_DEFAULT",0,.6,"PANE_WIDTH_MAX",0,.75,"PANE_WIDTH_MIN",0,.25,"clampPaneWidth",0,o,"nearestDetent",0,function(e,t){let r="half",n=1/0;for(let a of l){let i=Math.abs(("peek"===a?56:"half"===a?.5*t:t)-e);i<n&&(n=i,r=a)}return r},"useCitedReferences",0,function(){let e,r,a,i,s=(0,t.c)(8);s[0]===Symbol.for("react.memo_cache_sentinel")?(e={fallbackData:[]},s[0]=e):e=s[0];let{data:o,mutate:l}=(0,n.default)("container-pane-references",null,e);s[1]!==l?(r=e=>{l(e,!1)},s[1]=l,s[2]=r):r=s[2];let c=r;return s[3]!==o?(a=o??[],s[3]=o,s[4]=a):a=s[4],s[5]!==c||s[6]!==a?(i={references:a,setReferences:c},s[5]=c,s[6]=a,s[7]=i):i=s[7],i},"useFilePane",0,function(){let e,r,i,s=(0,t.c)(7);s[0]===Symbol.for("react.memo_cache_sentinel")?(e={fallbackData:null},s[0]=e):e=s[0];let{data:o,mutate:l}=(0,n.default)("container-pane-file",null,e),{setPane:c}=a();s[1]!==l||s[2]!==c?(r=e=>{l(e,!1),c("file")},s[1]=l,s[2]=c,s[3]=r):r=s[3];let u=r,h=o??null;return s[4]!==u||s[5]!==h?(i={file:h,openFile:u},s[4]=u,s[5]=h,s[6]=i):i=s[6],i},"usePane",0,a,"usePaneDetent",0,function(){let e,r,a,i=(0,t.c)(6);i[0]===Symbol.for("react.memo_cache_sentinel")?(e={fallbackData:"half"},i[0]=e):e=i[0];let{data:s,mutate:o}=(0,n.default)("container-pane-detent",null,e),l=s??"half";i[1]!==o?(r=e=>{o(e,!1)},i[1]=o,i[2]=r):r=i[2];let c=r;return i[3]!==l||i[4]!==c?(a={detent:l,setDetent:c},i[3]=l,i[4]=c,i[5]=a):a=i[5],a},"usePaneDoor",0,function(e){let n,s,o=(0,t.c)(5),{setPane:l}=a();o[0]!==e||o[1]!==l?(n=()=>{if(!e)return;let t=new URL(window.location.href),r=t.searchParams.get("pane"),n="build"===r?"files":r;n&&i.has(n)&&(l(n),t.searchParams.delete("pane"),window.history.replaceState({},"",t))},o[0]=e,o[1]=l,o[2]=n):n=o[2],o[3]!==e?(s=[e],o[3]=e,o[4]=s):s=o[4],(0,r.useEffect)(n,s)},"usePaneHost",0,function(){let e,r,a,i=(0,t.c)(6);i[0]===Symbol.for("react.memo_cache_sentinel")?(e={fallbackData:!1},i[0]=e):e=i[0];let{data:s,mutate:o}=(0,n.default)("container-pane-host",null,e);i[1]!==o?(r=e=>{o(e,!1)},i[1]=o,i[2]=r):r=i[2];let l=r,c=s??!1;return i[3]!==l||i[4]!==c?(a={hosted:c,setHosted:l},i[3]=l,i[4]=c,i[5]=a):a=i[5],a},"usePaneWidth",0,function(){let e,a,i,l,c,u,h,d=(0,t.c)(17);d[0]===Symbol.for("react.memo_cache_sentinel")?(e={fallbackData:{fraction:.6,dragging:!1}},d[0]=e):e=d[0];let{data:p,mutate:f}=(0,n.default)("container-pane-width",null,e),m=p?.fraction??.6,g=p?.dragging??!1,y=p?.full??!1;d[1]!==f?(a=e=>{f(t=>({fraction:t?.fraction??.6,dragging:!1,full:e}),!1)},d[1]=f,d[2]=a):a=d[2];let x=a;d[3]!==f?(i=()=>{let e=function(){try{let e=window.localStorage.getItem(s),t=null===e?NaN:Number(e);return Number.isFinite(t)?o(t):.6}catch{return .6}}();.6!==e&&f(t=>({...t??{dragging:!1},fraction:e}),!1)},l=[f],d[3]=f,d[4]=i,d[5]=l):(i=d[4],l=d[5]),(0,r.useEffect)(i,l),d[6]!==f?(c=(e,t)=>{let r=o(e);if(f(e=>({fraction:r,dragging:t?.dragging??e?.dragging??!1,full:e?.full??!1}),!1),!t?.dragging)try{window.localStorage.setItem(s,String(r))}catch{}},d[6]=f,d[7]=c):c=d[7];let b=c;d[8]!==f?(u=e=>{f(t=>({fraction:t?.fraction??.6,dragging:e,full:t?.full??!1}),!1)},d[8]=f,d[9]=u):u=d[9];let k=u;return d[10]!==g||d[11]!==m||d[12]!==y||d[13]!==k||d[14]!==b||d[15]!==x?(h={fraction:m,dragging:g,full:y,setFraction:b,setDragging:k,setFull:x},d[10]=g,d[11]=m,d[12]=y,d[13]=k,d[14]=b,d[15]=x,d[16]=h):h=d[16],h},"useReferencePane",0,function(){let e,r,i,s,o=(0,t.c)(10);o[0]===Symbol.for("react.memo_cache_sentinel")?(e={fallbackData:null}
2,o[0]=e):e=o[0];let{data:l,mutate:c}=(0,n.default)("container-pane-reference",null,e),{setPane:u}=a();o[1]!==c?(r=e=>{c(e,!1)},o[1]=c,o[2]=r):r=o[2];let h=r;o[3]!==c||o[4]!==u?(i=e=>{c(e,!1),u("references")},o[3]=c,o[4]=u,o[5]=i):i=o[5];let d=i,p=l??null;return o[6]!==d||o[7]!==h||o[8]!==p?(s={selected:p,selectReference:h,openReference:d},o[6]=d,o[7]=h,o[8]=p,o[9]=s):s=o[9],s},"useTasksQuickAdd",0,function(){let e,r,a,i,s=(0,t.c)(9);s[0]===Symbol.for("react.memo_cache_sentinel")?(e={fallbackData:!1},s[0]=e):e=s[0];let{data:o,mutate:l}=(0,n.default)("tasks-quick-add",null,e);s[1]!==l?(r=()=>l(!0,!1),s[1]=l,s[2]=r):r=s[2];let c=r;s[3]!==l?(a=()=>l(!1,!1),s[3]=l,s[4]=a):a=s[4];let u=a,h=o??!1;return s[5]!==u||s[6]!==c||s[7]!==h?(i={requested:h,request:c,clear:u},s[5]=u,s[6]=c,s[7]=h,s[8]=i):i=s[8],i}])},42027,e=>{"use strict";var t=e.i(549111),r=e.i(655691),n=e.i(942666),a=e.i(864706),i=e.i(59377),s=e.i(7877),o=e.i(855397),l=e.i(647163),c=e.i(463221);let u={left:"var(--bias-left)",center:"var(--bias-center)",right:"var(--bias-right)",unknown:"var(--border)"};function h(e){let n,a,i,s,o,c=(0,r.c)(11),{sources:u,total:h}=e;if(c[0]!==u||c[1]!==h){let e=u.slice(0,3);n=Math.max(0,(h??u.length)-e.length),a="flex shrink-0 items-center",i=e.map((r,n)=>(0,t.jsx)("span",{className:(0,l.cn)("relative",n>0&&"-ml-1.5"),style:{zIndex:e.length-n},children:(0,t.jsx)(d,{source:r})},r.domain)),c[0]=u,c[1]=h,c[2]=n,c[3]=a,c[4]=i}else n=c[2],a=c[3],i=c[4];return c[5]!==n?(s=n>0?(0,t.jsxs)("span",{className:"-ml-1.5 flex h-[18px] min-w-[18px] items-center justify-center rounded-full border border-border bg-muted px-0.5 font-semibold text-[8px] text-muted-foreground tabular-nums",children:["+",n]}):null,c[5]=n,c[6]=s):s=c[6],c[7]!==a||c[8]!==i||c[9]!==s?(o=(0,t.jsxs)("span",{className:a,children:[i,s]}),c[7]=a,c[8]=i,c[9]=s,c[10]=o):o=c[10],o}function d(e){let n,i,s,l=(0,r.c)(15),{source:c}=e,[h,d]=(0,a.useState)(!1),p=u[(0,o.foldBias)(c.bias)]??u.unknown;if(h){let e,r,n;l[0]!==p?(e={borderColor:p},l[0]=p,l[1]=e):e=l[1];let a=c.sourceName,i=c.sourceName||c.domain;return l[2]!==i?(r=i.charAt(0),l[2]=i,l[3]=r):r=l[3],l[4]!==c.sourceName||l[5]!==e||l[6]!==r?(n=(0,t.jsx)("span",{className:"flex size-[18px] items-center justify-center rounded-full border-[1.5px] bg-muted font-semibold text-[8px] uppercase",style:e,title:a,children:r}),l[4]=c.sourceName,l[5]=e,l[6]=r,l[7]=n):n=l[7],n}l[8]===Symbol.for("react.memo_cache_sentinel")?(n=()=>d(!0),l[8]=n):n=l[8];let f=`https://www.google.com/s2/favicons?domain=${c.domain}&sz=64`;return l[9]!==p?(i={borderColor:p},l[9]=p,l[10]=i):i=l[10],l[11]!==c.sourceName||l[12]!==f||l[13]!==i?(s=(0,t.jsx)("img",{alt:c.sourceName,className:"size-[18px] rounded-full border-[1.5px] bg-background object-cover",loading:"lazy",onError:n,src:f,style:i,title:c.sourceName}),l[11]=c.sourceName,l[12]=f,l[13]=i,l[14]=s):s=l[14],s}function p(){}function f(e){let n,i,c=(0,r.c)(2),{counts:u,pct:h,total:d,title:f,storyId:g}=e,y=void 0===f?"Who's covering this story":f,x=(0,o.biasSegments)(h,u),b=u.left+u.center+u.right,k=d??b+u.unknown,w=b>0&&(void 0===d||b+u.unknown<=d),v=function(e){let t,n,i,l=(0,r.c)(5),[c,u]=(0,a.useState)(null);if(l[0]!==e?(t=()=>{if(!e)return;let t=!0;return fetch(s.apiRoutes.discover.sources(e)).then(async e=>{e.ok&&t&&u((await e.json()).sources)}).catch(p),()=>{t=!1}},n=[e],l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),(0,a.useEffect)(t,n),null===c)return null;if(l[3]!==c){for(let e of(i={left:[],center:[],right:[],unknown:[]},c))i[(0,o.foldBias)(e.bias)].push(e);l[3]=c,l[4]=i}else i=l[4];return i}(g);return c[0]!==y?(n=(0,t.jsx)("p",{className:"mb-2 font-semibold text-foreground text-ui",children:y}),c[0]=y,c[1]=n):n=c[1],(0,t.jsxs)(t.Fragment,{children:[n,(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 text-muted-foreground text-ui",children:[(0,t.jsx)("ul",{className:"flex flex-col gap-1.5",children:o.BIAS_SIDES.map(e=>{let r=x.find(t=>t.side===e)?.value??0,n=v?.[e]??[];return(0,t.jsxs)("li",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:(0,l.cn)("size-2.5 shrink-0 rounded-[3px] border border-border",o.SIDE_META[e].dot)}),(0,t.jsx)("span",{className:"w-14 shrink-0 font-medium text-foreground",children:o.SIDE_META[e].label}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 items-center",children:[n.slice(0,5).map(m),n.length>5?(0,t.jsxs)("span",{className:"-ml-1.5 flex h-[18px] min-w-[18px] items-center justify-center rounded-full border border-border bg-muted px-0.5 font-semibold text-[8px] text-muted-foreground tabular-nums",children:["+",n.length-5]}):null]}),(0,t.jsx)("span",{className:"shrink-0 text-foreground tabular-nums",children:w?`${u[e]} \xb7 ${r}%`:`${r}%`})]},e)})}),k>0?(0,t.jsxs)("p",{className:"border-border/60 border-t pt-1.5 text-meta",children:[k," ",1===k?"outlet":"outlets",
2w&&u.unknown>0?` \xb7 ${u.unknown} unrated`:""," ","· ",(i=[...x].sort((e,t)=>t.value-e.value)[0])&&!(i.value<70)?"center"===i.side?"mostly center coverage":`mostly ${i.side}-leaning coverage`:"mixed coverage"]}):null]})]})}function m(e,r){return(0,t.jsx)("a",{className:(0,l.cn)("relative",r>0&&"-ml-1.5"),href:e.url,rel:"noopener",style:{zIndex:5-r},target:"_blank",title:`${e.sourceName||e.domain} — ${e.title}`,children:(0,t.jsx)(d,{source:e})},e.domain)}function g(){let e,t,n,i,s,o,l,c,u=(0,r.c)(9),[h,d]=(0,a.useState)(!1),p=(0,a.useRef)(null),f=(0,a.useRef)(null);u[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{null!==f.current&&(window.clearTimeout(f.current),f.current=null)},u[0]=e):e=u[0];let m=e;u[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{m(),f.current=window.setTimeout(()=>d(!1),150)},u[1]=t):t=u[1];let g=t,k=b;return u[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>()=>{null!==f.current&&window.clearTimeout(f.current)},i=[],u[2]=n,u[3]=i):(n=u[2],i=u[3]),(0,a.useEffect)(n,i),u[4]===Symbol.for("react.memo_cache_sentinel")?(s={onClick:e=>{e.preventDefault(),e.stopPropagation(),d(x)},onMouseEnter:()=>{k()&&(m(),d(!0))},onMouseLeave:()=>{k()&&g()},ref:p},u[4]=s):s=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{k()&&g()},u[5]=o):o=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(l={onMouseEnter:m,onMouseLeave:o,onOpenAutoFocus:y,onPointerDownOutside:e=>{(p.current?.contains(e.target)||e.target===p.current)&&e.preventDefault()}},u[6]=l):l=u[6],u[7]!==h?(c={open:h,setOpen:d,triggerRef:p,triggerProps:s,contentProps:l},u[7]=h,u[8]=c):c=u[8],c}function y(e){e.preventDefault()}function x(e){return!e}function b(){return window.matchMedia("(hover: hover)").matches}function k(e){return`${e.value}% ${o.SIDE_META[e.side].label.toLowerCase()}`}function w(e){return e.value>0}e.s(["CoverageLegendBar",0,function(e){let a,s,u,d,p,m,y,x,b,v,_,S,j=(0,r.c)(55),{counts:T,pct:$,total:E,title:M,size:L,className:N,barClassName:C,sources:I,storyId:A}=e,P=void 0===L?"sm":L,{open:R,setOpen:z,triggerProps:O,contentProps:B}=g();if(j[0]!==C||j[1]!==N||j[2]!==T||j[3]!==$||j[4]!==P){s=Symbol.for("react.early_return_sentinel");e:{let e=(0,o.biasSegments)($,T);if(!e.some(w)){let e,r,n;j[7]!==N?(e=(0,l.cn)("block w-full",N),j[7]=N,j[8]=e):e=j[8],j[9]!==C||j[10]!==T||j[11]!==$||j[12]!==P?(r=(0,t.jsx)(c.BiasBar,{className:C,counts:T,pct:$,size:P}
2),j[9]=C,j[10]=T,j[11]=$,j[12]=P,j[13]=r):r=j[13],j[14]!==e||j[15]!==r?(n=(0,t.jsx)("span",{className:e,children:r}),j[14]=e,j[15]=r,j[16]=n):n=j[16],s=n;break e}a=e.map(k).join(", ")}j[0]=C,j[1]=N,j[2]=T,j[3]=$,j[4]=P,j[5]=a,j[6]=s}else a=j[5],s=j[6];if(s!==Symbol.for("react.early_return_sentinel"))return s;let D=a,H=`Coverage: ${D}. Show the breakdown.`,U=R&&"border-border bg-card shadow-sm";j[17]!==N||j[18]!==U?(u=(0,l.cn)("flex w-full cursor-pointer items-center gap-1.5 rounded-full border border-transparent px-1.5 py-1 transition-colors hover:border-border hover:bg-card",U,N),j[17]=N,j[18]=U,j[19]=u):u=j[19],j[20]!==I||j[21]!==E?(d=I&&I.length>0?(0,t.jsx)(h,{sources:I,total:E}):null,j[20]=I,j[21]=E,j[22]=d):d=j[22],j[23]!==C?(p=(0,l.cn)("min-w-0 flex-1",C),j[23]=C,j[24]=p):p=j[24],j[25]!==T||j[26]!==$||j[27]!==P||j[28]!==p?(m=(0,t.jsx)(c.BiasBar,{className:p,counts:T,pct:$,size:P}),j[25]=T,j[26]=$,j[27]=P,j[28]=p,j[29]=m):m=j[29];let W=R&&"rotate-180";return j[30]!==W?(y=(0,l.cn)("size-3 shrink-0 text-muted-foreground transition-transform",W),j[30]=W,j[31]=y):y=j[31],j[32]!==y?(x=(0,t.jsx)(n.ChevronDownIcon,{"aria-hidden":"true",className:y}),j[32]=y,j[33]=x):x=j[33],j[34]!==x||j[35]!==H||j[36]!==u||j[37]!==d||j[38]!==m||j[39]!==O?(b=(0,t.jsx)(i.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)("button",{"aria-label":H,className:u,title:"Coverage breakdown",type:"button",...O,children:[d,m,x]})}),j[34]=x,j[35]=H,j[36]=u,j[37]=d,j[38]=m,j[39]=O,j[40]=b):b=j[40],j[41]!==T||j[42]!==$||j[43]!==A||j[44]!==M||j[45]!==E?(v=(0,t.jsx)(f,{counts:T,pct:$,storyId:A,title:M,total:E}),j[41]=T,j[42]=$,j[43]=A,j[44]=M,j[45]=E,j[46]=v):v=j[46],j[47]!==B||j[48]!==v?(_=(0,t.jsx)(i.PopoverContent,{align:"center",className:"w-72",side:"bottom",...B,children:v}),j[47]=B,j[48]=v,j[49]=_):_=j[49],j[50]!==R||j[51]!==z||j[52]!==b||j[53]!==_?(S=(0,t.jsxs)(i.Popover,{onOpenChange:z,open:R,children:[b,_]}),j[50]=R,j[51]=z,j[52]=b,j[53]=_,j[54]=S):S=j[54],S},"CoverageLegendContent",0,f,"useLegendHover",0,g])},988721,e=>{"use strict";e.i(549111),e.i(655691);let t={Person:"#E03E3E",Organization:"#3B82F6",Place:"#10B981",Location:"#10B981",Topic:"#F59F00",Event:"#8B5CF6",CreativeWork:"#6C5CE7",Product:"#E64980",Journal:"#0EA5E9",Author:"#D97706"},r={Person:"👤",Organization:"🏢",Place:"📍",Location:"📍",Topic:"🏷️",Event:"📅",CreativeWork:"📄",Product:"📦",Journal:"📰",Author:"✍️"};e.s(["entityColor",0,function(e){return e&&t[e]||"#6B7280"},"entityEmoji",0,function(e){return e&&r[e]||"🔗"}])},783781,e=>{"use strict";var t=e.i(549111),r=e.i(281364),n=e.i(710540),a=e.i(864706),i=e.i(719078),s=e.i(803399),o=e.i(744864),l=e.i(167881),c=e.i(7877),u=e.i(360386),h=e.i(647163);function d(e){if(null==e)return"";let t=String(e);return/[",\n]/.test(t)?`"${t.replaceAll('"','""')}"`:t}function p(e,t){return[e,...t].map(e=>e.map(d).join(",")).join("\n")}e.s(["ExportToSheetButton",0,function({title:e,columns:d,rows:f,getRows:m,getGrid:g,authed:y,source:x,className:b,iconOnly:k=!1}){let[w,v]=(0,a.useState)(!1),[_,S]=(0,a.useState)(null),j=(0,o.useGuestGate)(),T=async()=>{if(!y)return void j({source:x,subject:`Export “${e}” to a sheet`});v(!0);try{let t=g?await g():{columns:d??[],rows:m?await m():f??[]};if(0===t.rows.length)return void i.toast.error("Nothing to export yet.");let r=(0,h.generateUUID)();if(!(await fetch(c.apiRoutes.documents.byId(r),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:e,kind:"sheet",content:p(t.columns,t.rows)})})).ok)throw Error("create failed");i.toast.success("Exported — opening your sheet."),S(r),window.open((0,u.openUrl)(`/drive/sheet/${r}`),"_blank","noopener")}catch{i.toast.error("Couldn't export that — try again.")}finally{v(!1)}},$=w||!(m||g)&&0===(f??[]).length;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.Button,{"aria-label":k?"Edit":void 0,className:(0,h.cn)(k?"size-auto p-1 text-muted-foreground hover:text-foreground":"h-auto gap-1.5 rounded-full border-border px-3 py-1.5 font-medium text-meta text-muted-foreground hover:text-foreground",b),disabled:$,onClick:T,size:k?"icon-sm":"sm",title:k?"Edit":"Open this grid as a live sheet",type:"button",variant:k?"ghost":"outline",children:[k?(0,t.jsx)(r.PencilIcon,{className:"size-3.5"}):(0,t.jsx)(n.SheetIcon,{className:"size-3.5"}),k?null:w?"Opening…":"Edit in Sheets"]}),_?(0,t.jsx)(s.ShareButton,{href:(0,u.openUrl)(`/drive/sheet/${_}`),title:e,variant:k?"icon":"card"}):null]})},"toCsv",0,p])},372709,497964,832159,e=>{"use strict";var t=e.i(549111),r=e.i(655691),n=e.i(222817),a=e.i(628069),i=e.i(909971),s=e.i(208945);function o(e){let n,a,i=(0,r.c)(13),{metrics:s,price:o}=e,u=s.returnMtdPct;if(i[0]!==s.return13WeekPct||i[1]!==s.return26WeekPct||i[2]!==s.return52WeekPct||i[3]!==s.returnMtdPct||i[4]!==s.returnYtdPct||i[5]!==s.week52High||i[6]!==s.week52Low||i[7]!==o){a=Symbol.for("react.early_return_sentinel");
2e:{let e,r,h=[["MTD",u],["3M",s.return13WeekPct],["6M",s.return26WeekPct],["YTD",s.returnYtdPct],["1Y",s.return52WeekPct]].flatMap(c);if(0===h.length){a=null;break e}let d=h.map(l),p=Math.min(0,...d),f=Math.max(0,...d)-p||1,m=(0-p)/f*100,g=s.week52Low,y=s.week52High,x=null!==g&&null!==y&&y>g?{low:g,high:y,pct:Math.min(100,Math.max(0,(o-g)/(y-g)*100))}:null;i[10]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("p",{className:"mb-1.5 text-caption text-muted-foreground uppercase tracking-wide",children:"Performance"}),i[10]=e):e=i[10];let b=h.map(e=>{var r;let n=e.value>=0,a=Math.abs(e.value)/f*100;return(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"w-7 text-caption text-muted-foreground tabular-nums",children:e.label}),(0,t.jsxs)("div",{className:"relative h-2.5 flex-1",children:[(0,t.jsx)("div",{className:"absolute inset-y-0 w-px bg-border",style:{left:`${m}%`}}),(0,t.jsx)("div",{className:`absolute inset-y-0 ${n?"rounded-r-[4px] bg-emerald-500 dark:bg-emerald-600":"rounded-l-[4px] bg-red-500"}`,style:n?{left:`${m}%`,width:`${a}%`}:{right:`${100-m}%`,width:`${a}%`}})]}),(0,t.jsx)("span",{className:`w-14 text-right text-caption tabular-nums ${n?"text-emerald-600":"text-red-600"}`,children:(r=e.value,`${r>=0?"+":""}${r.toFixed(1)}%`)})]},e.label)});i[11]!==b?(r=(0,t.jsx)("div",{className:"space-y-1",children:b}),i[11]=b,i[12]=r):r=i[12],n=(0,t.jsxs)("div",{className:"mt-2.5 border-border/60 border-t pt-2.5",children:[e,r,x&&(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"w-7 text-caption text-muted-foreground",children:"52wk"}),(0,t.jsx)("div",{className:"relative h-1 flex-1 rounded-full bg-muted",children:(0,t.jsx)("div",{className:"-translate-x-1/2 -translate-y-1/2 absolute top-1/2 size-2 rounded-full border border-background bg-foreground",style:{left:`${x.pct}%`}})}),(0,t.jsx)("span",{className:"w-14"})]}),(0,t.jsxs)("div",{className:"flex justify-between pr-16 pl-9 text-caption text-muted-foreground tabular-nums",children:[(0,t.jsx)("span",{children:x.low.toFixed(2)}),(0,t.jsx)("span",{children:x.high.toFixed(2)})]})]})]})}i[0]=s.return13WeekPct,i[1]=s.return26WeekPct,i[2]=s.return52WeekPct,i[3]=s.returnMtdPct,i[4]=s.returnYtdPct,i[5]=s.week52High,i[6]=s.week52Low,i[7]=o,i[8]=n,i[9]=a}else n=i[8],a=i[9];return a!==Symbol.for("react.early_return_sentinel")?a:n}function l(e){return e.value}function c(e){let[t,r]=e;return"number"==typeof r?[{label:t,value:r}]:[]}e.s(["PerformanceChart",0,o],497964);var u=e.i(864706);let h=[[8,"1W"],[32,"1M"],[95,"3M"],[190,"6M"]];function d(e,t){return new Intl.NumberFormat("en-US",{style:"currency",currency:t||"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}function p(e){let n,a,i,s,o,l,c,p,m,g,y,x,b,k,w,v,_,S,j,T,$,E,M,L,N,C=(0,r.c)(85),{series:I,history:A,prevClose:P,currency:R}=e,z=I.length>=2,O=A.length>=2,[B,D]=(0,u.useState)(z?"day":"history"),H=(0,u.useRef)(null),[U,W]=(0,u.useState)(null),q="day"===B?z:!O;e:{let e;if(q){let e,t=I[0]?.t??0,r=(I.at(-1)?.t??t)-t||1;if(C[0]!==I||C[1]!==t||C[2]!==r){let n;C[4]!==t||C[5]!==r?(n=e=>({x:(e.t-t)/r,label:new Date(1e3*e.t).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"}),value:e.c}),C[4]=t,C[5]=r,C[6]=n):n=C[6],e=I.map(n),C[0]=I,C[1]=t,C[2]=r,C[3]=e}else e=C[3];n=e;break e}let t=A.length-1||1;if(C[7]!==A||C[8]!==t){let r;C[10]!==t?(r=(e,r)=>{var n;return{x:r/t,label:(n=e.d,new Date(`${n}T12:00:00Z`).toLocaleDateString("en-US",{month:"short",day:"numeric",timeZone:"UTC"})),value:e.c}},C[10]=t,C[11]=r):r=C[11],e=A.map(r),C[7]=A,C[8]=t,C[9]=e}else e=C[9];n=e}let F=n;if(F.length<2)return null;if(C[12]!==q||C[13]!==F||C[14]!==P){let e=F.map(f),t=null===(a=q?P:null)?e:[...e,a];i=Math.min(...t),s=Math.max(...t),C[12]=q,C[13]=F,C[14]=P,C[15]=a,C[16]=i,C[17]=s}else a=C[15],i=C[16],s=C[17];let Z=s,Y=.06*(Z-i||.01*i||1),J=i-Y,G=Z+Y-J;C[18]!==J||C[19]!==G?(o=e=>1-(e-J)/G,C[18]=J,C[19]=G,C[20]=o):o=C[20];let X=o,Q=F[0];C[21]!==Q||C[22]!==F?(l=F.at(-1)??Q,C[21]=Q,C[22]=F,C[23]=l):l=C[23];let V=l,K=a??Q.value,ee=V.value>=K,et=ee?"stroke-emerald-500 dark:stroke-emerald-600":"stroke-red-500",er=ee?"fill-emerald-500/10 dark:fill-emerald-600/15":"fill-red-500/10 dark:fill-red-500/15",en=ee?"bg-emerald-500 dark:bg-emerald-600":"bg-red-500";if(C[24]!==F||C[25]!==X){let e;C[27]!==X?(e=(e,t)=>`${0===t?"M":"L"}${(100*e.x).toFixed(2)},${(100*X(e.value)).toFixed(2)}`,C[27]=X,C[28]=e):e=C[28],c=F.map(e).join(" "),C[24]=F,C[25]=X,C[26]=c}
2else c=C[26];let ea=c,ei=`${ea} L100,100 L0,100 Z`,es=null===U?null:F[U];C[29]!==F?(p=e=>{let t=H.current?.getBoundingClientRect();if(!t||0===t.width)return;let r=(e-t.left)/t.width,n=0;for(let e=1;e<F.length;e++)Math.abs(F[e].x-r)<Math.abs(F[n].x-r)&&(n=e);W(n)},C[29]=F,C[30]=p):p=C[30];let eo=p;C[31]!==O||C[32]!==z||C[33]!==A||C[34]!==B?(m=z&&O&&(0,t.jsx)("div",{className:"mb-1 flex justify-end gap-1",children:[["day","1D"],["history",function(e){let t=e.at(0),r=e.at(-1);if(!(t&&r))return"ALL";let n=(new Date(r.d).getTime()-new Date(t.d).getTime())/864e5;return h.find(([e])=>n<e)?.[1]??"1Y"}(A)]].map(e=>{let[r,n]=e;return(0,t.jsx)("button",{className:`rounded px-1.5 py-0.5 text-caption tabular-nums transition-colors ${B===r?"bg-muted font-medium text-foreground":"text-muted-foreground hover:text-foreground"}`,onClick:()=>{D(r),W(null)},type:"button",children:n},r)})}),C[31]=O,C[32]=z,C[33]=A,C[34]=B,C[35]=m):m=C[35],C[36]===Symbol.for("react.memo_cache_sentinel")?(g=()=>W(null),C[36]=g):g=C[36],C[37]!==eo?(y=e=>eo(e.clientX),C[37]=eo,C[38]=y):y=C[38];let el=q?"Intraday price chart":"Daily price history chart";return C[39]!==ei||C[40]!==er?(x=(0,t.jsx)("path",{className:er,d:ei,stroke:"none"}),C[39]=ei,C[40]=er,C[41]=x):x=C[41],C[42]!==a||C[43]!==X?(b=null!==a&&(0,t.jsx)("line",{className:"stroke-muted-foreground/40",strokeDasharray:"2 3",strokeWidth:1,vectorEffect:"non-scaling-stroke",x1:0,x2:100,y1:100*X(a),y2:100*X(a)}),C[42]=a,C[43]=X,C[44]=b):b=C[44],C[45]!==ea||C[46]!==et?(k=(0,t.jsx)("path",{className:et,d:ea,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,vectorEffect:"non-scaling-stroke"}),C[45]=ea,C[46]=et,C[47]=k):k=C[47],C[48]!==el||C[49]!==x||C[50]!==b||C[51]!==k?(w=(0,t.jsxs)("svg",{"aria-label":el,className:"size-full",preserveAspectRatio:"none",role:"img",viewBox:"0 0 100 100",children:[x,b,k]}),C[48]=el,C[49]=x,C[50]=b,C[51]=k,C[52]=w):w=C[52],C[53]!==R||C[54]!==Z?(v=d(Z,R),C[53]=R,C[54]=Z,C[55]=v):v=C[55],C[56]!==v?(_=(0,t.jsx)("span",{className:"pointer-events-none absolute top-0 right-0 text-caption text-muted-foreground tabular-nums",children:v}),C[56]=v,C[57]=_):_=C[57],C[58]!==R||C[59]!==i?(S=d(i,R),C[58]=R,C[59]=i,C[60]=S):S=C[60],C[61]!==S?(j=(0,t.jsx)("span",{className:"pointer-events-none absolute right-0 bottom-0 text-caption text-muted-foreground tabular-nums",children:S}),C[61]=S,C[62]=j):j=C[62],C[63]!==R||C[64]!==en||C[65]!==es||C[66]!==X?(T=es&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 w-px bg-muted-foreground/40",style:{left:`${100*es.x}%`}}),(0,t.jsx)("div",{className:`pointer-events-none absolute size-2 -translate-x-1/2 -translate-y-1/2 rounded-full ${en}`,style:{left:`${100*es.x}%`,top:`${100*X(es.value)}%`}}),(0,t.jsxs)("div",{className:`pointer-events-none absolute z-10 whitespace-nowrap rounded-md border border-border/60 bg-popover px-2 py-1 shadow-sm ${es.x>.5?"-translate-x-full":""}`,style:{left:`${100*es.x}%`,top:"-4px"},children:[(0,t.jsx)("p",{className:"font-medium text-caption tabular-nums",children:d(es.value,R)}),(0,t.jsx)("p",{className:"text-caption text-muted-foreground",children:es.label})]})]}),C[63]=R,C[64]=en,C[65]=es,C[66]=X,C[67]=T):T=C[67],C[68]!==w||C[69]!==_||C[70]!==j||C[71]!==T||C[72]!==y?($=(0,t.jsxs)("div",{className:"relative h-24 w-full cursor-crosshair touch-none",onPointerLeave:g,onPointerMove:y,ref:H,children:[w,_,j,T]}),C[68]=w,C[69]=_,C[70]=j,C[71]=T,C[72]=y,C[73]=$):$=C[73],C[74]!==Q.label?(E=(0,t.jsx)("span",{children:Q.label}),C[74]=Q.label,C[75]=E):E=C[75],C[76]!==V.label?(M=(0,t.jsx)("span",{children:V.label}),C[76]=V.label,C[77]=M):M=C[77],C[78]!==E||C[79]!==M?(L=(0,t.jsxs)("div",{className:"mt-0.5 flex justify-between text-caption text-muted-foreground",children:[E,M]}),C[78]=E,C[79]=M,C[80]=L):L=C[80],C[81]!==$||C[82]!==L||C[83]!==m?(N=(0,t.jsxs)("div",{children:[m,$,L]}),C[81]=$,C[82]=L,C[83]=m,C[84]=N):N=C[84],N}function f(e){return e.value}function m(e){return e>=1e12?`${(e/1e12).toFixed(2)}T`:e>=1e9?`${(e/1e9).toFixed(1)}B`:`${(e/1e6).toFixed(0)}M`}function g(e){let t=new Date(e);return Number.isNaN(t.getTime())?"":new Intl.DateTimeFormat("en-US",{timeZone:"America/Ne
2w_York",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(t)}function y(e,t){return new Intl.NumberFormat("en-US",{style:"currency",currency:t||"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}function x(e){let n,a,i,s=(0,r.c)(7),{label:o,value:l}=e;return s[0]!==o?(n=(0,t.jsx)("p",{className:"text-caption text-muted-foreground uppercase tracking-wide",children:o}),s[0]=o,s[1]=n):n=s[1],s[2]!==l?(a=(0,t.jsx)("p",{className:"truncate text-ui tabular-nums",children:l}),s[2]=l,s[3]=a):a=s[3],s[4]!==n||s[5]!==a?(i=(0,t.jsxs)("div",{className:"min-w-0",children:[n,a]}),s[4]=n,s[5]=a,s[6]=i):i=s[6],i}function b(e){return(0,t.jsx)(x,{label:e.label,value:e.value},e.label)}function k(e){return(0,t.jsx)(x,{label:e.label,value:e.value},e.label)}function w(e){return!!e}function v(e){return!!e}e.s(["PriceChart",0,p],832159),e.s(["Stat",0,x,"StockQuoteCard",0,function(e){let l,c,u,h,d,f,x,_,S,j,T,$,E,M,L,N,C,I,A,P,R,z,O,B,D=(0,r.c)(75),{quote:H,action:U,href:W}=e,q=void 0===U?null:U,F=void 0===W?null:W,Z=(H.change??0)>=0,Y=Z?a.TrendingUpIcon:n.TrendingDownIcon,J=Z?"text-emerald-600":"text-red-600";D[0]!==H.currency||D[1]!==H.open?(l=null!==H.open&&{label:"Open",value:y(H.open,H.currency)},D[0]=H.currency,D[1]=H.open,D[2]=l):l=D[2],D[3]!==H.dayHigh||D[4]!==H.dayLow?(c=null!==H.dayLow&&null!==H.dayHigh&&{label:"Day range",value:`${H.dayLow.toFixed(2)}–${H.dayHigh.toFixed(2)}`},D[3]=H.dayHigh,D[4]=H.dayLow,D[5]=c):c=D[5],D[6]!==H.currency||D[7]!==H.prevClose?(u=null!==H.prevClose&&{label:"Prev close",value:y(H.prevClose,H.currency)},D[6]=H.currency,D[7]=H.prevClose,D[8]=u):u=D[8],D[9]!==H.marketCapUsd?(h=null!==H.marketCapUsd&&{label:"Mkt cap",value:m(H.marketCapUsd)},D[9]=H.marketCapUsd,D[10]=h):h=D[10],D[11]!==l||D[12]!==c||D[13]!==u||D[14]!==h?(d=[l,c,u,h].filter(v),D[11]=l,D[12]=c,D[13]=u,D[14]=h,D[15]=d):d=D[15];let G=d,X=H.metrics;D[16]!==X?(f=X?[null!==X.week52Low&&null!==X.week52High&&{label:"52wk range",value:`${X.week52Low.toFixed(2)}–${X.week52High.toFixed(2)}`},null!==X.peTtm&&{label:"P/E",value:X.peTtm.toFixed(1)},null!==X.epsTtm&&{label:"EPS",value:X.epsTtm.toFixed(2)},null!==X.dividendYield&&{label:"Div yield",value:`${X.dividendYield.toFixed(2)}%`}].filter(w):[],D[16]=X,D[17]=f):f=D[17];let Q=f,V=H.name??H.symbol;D[18]!==V?(x=(0,t.jsx)("p",{className:"truncate font-medium text-ui",children:V}),D[18]=V,D[19]=x):x=D[19];let K=H.exchange?` \xb7 ${H.exchange}`:"";return D[20]!==H.symbol||D[21]!==K?(_=(0,t.jsxs)("p",{className:"text-caption text-muted-foreground",children:[H.symbol,K]}),D[20]=H.symbol,D[21]=K,D[22]=_):_=D[22],D[23]!==x||D[24]!==_?(S=(0,t.jsxs)("div",{className:"min-w-0",children:[x,_]}),D[23]=x,D[24]=_,D[25]=S):S=D[25],D[26]!==H.currency||D[27]!==H.price?(j=y(H.price,H.currency),D[26]=H.currency,D[27]=H.price,D[28]=j):j=D[28],D[29]!==j?(T=(0,t.jsx)("p",{className:"font-bold text-lg tabular-nums",children:j}),D[29]=j,D[30]=T):T=D[30],D[31]!==Y||D[32]!==H.change||D[33]!==H.changePct||D[34]!==J||D[35]!==Z?($=null!==H.change&&null!==H.changePct&&(0,t.jsxs)("p",{className:`flex items-center justify-end gap-1 text-caption tabular-nums ${J}`,children:[(0,t.jsx)(Y,{className:"size-3"}),Z?"+":"",H.change.toFixed(2)," (",Z?"+":"",H.changePct.toFixed(2),"%)"]}),D[31]=Y,D[32]=H.change,D[33]=H.changePct,D[34]=J,D[35]=Z,D[36]=$):$=D[36],D[37]!==T||D[38]!==$?(E=(0,t.jsxs)("div",{className:"text-right",children:[T,$]}),D[37]=T,D[38]=$,D[39]=E):E=D[39],D[40]!==S||D[41]!==E?(M=(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[S,E]}),D[40]=S,D[41]=E,D[42]=M):M=D[42],D[43]!==H.currency||D[44]!==H.history||D[45]!==H.prevClose||D[46]!==H.series?(L=((H.series?.length??0)>1||(H.history?.length??0)>1)&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(p,{currency:H.currency,history:H.history??[],prevClose:H.prevClose,series:H.series??[]})}),D[43]=H.currency,D[44]=H.history,D[45]=H.prevClose,D[46]=H.series,D[47]=L):L=D[47],D[48]!==X||D[49]!==H.focus||D[50]!==H.price?(N="performance"===H.focus&&X&&(0,t.jsx)(o,{metrics:X,price:H.price}),D[48]=X,D[49]=H.focus,D[50]=H.price,D[51]=N):N=D[51],D[52]!==G?(C=G.length>0&&(0,t.jsx)("div",{className:"mt-2.5 grid grid-cols-2 gap-2 border-border/60 border-t pt-2.5 sm:grid-cols-4",children:G.map(k)}),D[52]=G,D[53]=C):C=D[53],D[54]!==Q?(I=Q.length>0&&(0,t.jsx)("div",{className:"mt-2 grid grid-cols-2 gap-2 sm:grid-cols-4",children:Q.map(b)}),D[54]=Q,D[55]=I):I=D[55],D[56]!==H.asOf?(A=g(H.asOf)&&(0,t.jsxs)(t.Fragment,{children:["As of ",g(H.asOf)," · "]}),D[56]=H.asOf,D[57]=A):A=D[57],D[58]!==A?(P=(0,t.jsxs)("p",{className:"text-caption text-muted-foreground",children:[A,"May be delayed · Not investment advice"]}),D[58]=A,D[59]=P):P=D[59],D[60]!==F?(R=F&&(0,t.jsx)(i.default,{className:"shrink-0 text-caption text-muted-foreground transition-colors hover:text-foreground",href:F,children:"Markets page →"}),D[60]=F,D[61]=R):R=D[61],D[62]!==q||D[63]!==R?(z=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[R,q]}),D[62]=q,D[63]=R,D[64]=z):z=D[64],D[65]!==P||D[66]!==z?(O=(0,t.jsxs)("div",{className:"mt-2 flex items-center justify-between gap-2",children:[P,z]}),D[65]=P,D[66]=z,D[67]=O):O=D[67],D[68]!==M||D[69]!==L||D[70]!==N||D[71]!==C||D[72]!==I||D[73]!==O?(B=(0,t.jsxs)("div",{className:`${s.CARD_CLASS} my-2 max-w-md px-3.5 py-3`,children:[M,L,N,C,I,O]}),D[68]=M,D[69]=L,D[70]=N,D[71]=C,D[72]=I,D[73]=O,D[74]=B):B=D[74],B},"formatMarketCap",0,m,"formatPrice",0,y,"formatQuoteTime",0,g],372709)},582281,e=>{"use strict";var t=e.i(549111),r=e.i(244245),n=e.i(662337),a=e.i(864706),i=e.i(466071);
2e.s(["WatchButton",0,function({symbol:e,initialWatched:s}){let o=(0,n.useRouter)(),[l,c]=(0,a.useState)(s),[u,h]=(0,a.useState)(!1),d=async()=>{if(u)return;h(!0);let t=!l;c(t);try{(await fetch("/api/v1/finance/watchlist",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({symbol:e,watch:t})})).ok?(await (0,i.mutate)("/api/v1/finance/watchlist"),o.refresh()):c(!t)}catch{c(!t)}finally{h(!1)}};return(0,t.jsx)("button",{"aria-label":l?`Unwatch ${e}`:`Watch ${e}`,"aria-pressed":l,className:"rounded-md p-1.5 transition-colors hover:bg-muted/60",onClick:d,type:"button",children:(0,t.jsx)(r.StarIcon,{className:`size-4 ${l?"fill-amber-400 text-amber-400":"text-muted-foreground"}`})})}])},422942,749466,220368,e=>{"use strict";var t=e.i(549111),r=e.i(655691),n=e.i(942666),a=e.i(522440),i=e.i(901120),s=e.i(188556),o=e.i(549334),l=e.i(422979);let c=(0,e.i(758277).default)("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);e.s(["NetworkIcon",0,c],749466);var u=e.i(902194),h=e.i(147237),d=e.i(806730),p=e.i(355470),f=e.i(36337),m=e.i(323457),g=e.i(92593),y=e.i(909971),x=e.i(662337),b=e.i(864706),k=e.i(318261),w=e.i(42027),v=e.i(251424),_=e.i(332921),S=e.i(7877),j=e.i(855397),T=e.i(348294);let $=/(https?:\/\/[^\s<>"')\]]+|\/(?:discover|watch|share|drive|mindmaps|lists)\/[\w.-]+(?:\/[\w.-]+)?)/g;function E(e){let t=new Set;for(let r of e.match($)??[]){let e=r.replace(/[.,;:!?]+$/,"");if(t.has(e)||t.add(e),t.size>=3)break}return[...t]}function M(e){return e.split(RegExp($.source,"g"))}let L=/^(https?:\/\/|\/(?:discover|watch|share|drive|mindmaps|lists)\/)/;new RegExp(/(?:https?:\/\/[^\s<>"')\]]+)?\/(?:share|drive|mindmaps|lists)\/[\w.-]+(?:\/[\w.-]+)?/g.source);let N="#--linkchip",C=/(?:https?:\/\/(?:www\.|m\.)?(?:youtube\.com|youtu\.be)\/[^\s<>"')\]]+|(?:https?:\/\/[^\s<>"')\]]+?)?\/(?:share|drive|mindmaps|lists)\/[\w.-]+(?:\/[\w.-]+)?)/g;function I(e){let t=e.replace(/^https?:\/\/[^/]+/i,"").split("/").filter(Boolean);return"mindmaps"===t[0]?"mindmap":"lists"===t[0]?"list":"drive"===t[0]?"whiteboard"===t[1]?"whiteboard":"doc":"mindmap"===t[1]?"mindmap":"board"===t[1]?"board":"doc"===t[1]?"doc":"trip"===t[1]?"trip":"worldview"===t[1]?"worldview":"chat"}e.s(["LINK_CHIP_HASH",0,N,"URL_SEGMENT_RE",0,L,"extractUrls",0,E,"familyFromPath",0,I,"injectProductLinkChips",0,function(e){return e.replace(C,(t,r)=>{let n=r>0?e[r-1]:"";if(/[\w([/\]]/.test(n))return t;let a=t.replace(/[.,;:!?]+$/,""),i=t.slice(a.length);return`[${a}](${a}${N})${i}`})},"messageUrlParts",0,M],220368);var A=e.i(647163),P=e.i(163585);function R(e){let t,n,a=(0,r.c)(3);a[0]!==e?(t=e?S.apiRoutes.preview(e):null,a[0]=e,a[1]=t):t=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(n={revalidateOnFocus:!1,shouldRetryOnError:!1},a[2]=n):n=a[2];let{data:i}=(0,k.default)(t,A.fetcher,n);return i?.preview??null}function z(e){return`/api/v1/preview/image?url=${encodeURIComponent(e)}`}function O(e){return z(`https://www.google.com/s2/favicons?domain=${e}&sz=32`)}let B="flex w-full max-w-md gap-3 overflow-hidden rounded-xl border border-border/60 bg-card p-2.5 text-left transition-colors hover:border-border",D={mindmap:{Icon:c,tint:"text-violet-500"},doc:{Icon:a.FileTextIcon,tint:"text-sky-500"},whiteboard:{Icon:u.PenToolIcon,tint:"text-amber-500"},sheet:{Icon:f.TableIcon,tint:"text-emerald-500"},slides:{Icon:d.PresentationIcon,tint:"text-rose-500"},board:{Icon:o.ListTodoIcon,tint:"text-cyan-600"},chat:{Icon:l.MessagesSquareIcon,tint:"text-primary"},trip:{Icon:h.PlaneIcon,tint:"text-sky-600"},worldview:{Icon:i.GlobeIcon,tint:"text-emerald-600"},list:{Icon:s.ListOrderedIcon,tint:"text-amber-600"}};function H(e){let a,i,s,o,l,c,u,h,d,f=(0,r.c)(26),{journey:m,url:g}=e,k=(0,x.useRouter)(),[w,v]=(0,b.useState)(!1);f[0]!==k||f[1]!==g?(a=function(e){e.preventDefault(),e.stopPropagation();try{window.localStorage.setItem("input",JSON.stringify({text:`Let's pick up this shared conversation: ${g}
3
4Here's where I want to take it: `,src:"journey-card"}))}catch{}k.push("/chat")},f[0]=k,f[1]=g,f[2]=a):a=f[2];let _=a;f[3]!==m||f[4]!==w?(i=w?m:m.slice(0,2),f[3]=m,f[4]=w,f[5]=i):i=f[5];let S=i;if(f[6]!==w||f[7]!==S){let e;f[9]!==w?(e=(e,r)=>(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)("span",{className:(0,A.cn)("mt-0.5 shrink-0 rounded px-1 py-px font-medium text-[9px] uppercase tracking-wide","user"===e.role?"bg-primary/10 text-primary":"bg-muted text-muted-foreground"),children:"user"===e.role?"Asked":"AI"}),(0,t.jsx)("span",{className:(0,A.cn)("min-w-0 text-caption text-muted-foreground leading-snug",w?"":"line-clamp-2"),children:e.text})]},`${e.role}-${r}`),f[9]=w,f[10]=e):e=f[10],s=S.map(e),f[6]=w,f[7]=S,f[8]=s}else s=f[8];return f[11]!==m.length||f[12]!==w?(o=m.length>2?(0,t.jsxs)("button",{className:"-mx-1 inline-flex min-h-8 items-center gap-0.5 whitespace-nowrap px-1 text-caption text-muted-foreground hover:text-foreground",onClick:e=>{e.preventDefault(),e.stopPropagation(),v(W)},type:"button",children:[(0,t.jsx)(n.ChevronDownIcon,{className:(0,A.cn)("size-3 transition-transform",w&&"rotate-180")}
4),w?"Collapse journey":`Full journey (${m.length})`]}):null,f[11]=m.length,f[12]=w,f[13]=o):o=f[13],f[14]!==g?(l=(0,t.jsx)(y.default,{className:"-mx-1 inline-flex min-h-8 items-center whitespace-nowrap px-1 text-caption text-primary hover:underline",href:g,onClick:U,children:"Open the conversation →"}),f[14]=g,f[15]=l):l=f[15],f[16]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(p.SparklesIcon,{className:"size-3"}),f[16]=c):c=f[16],f[17]!==_?(u=(0,t.jsxs)("button",{className:"-mx-1 inline-flex min-h-8 items-center gap-1 whitespace-nowrap px-1 text-caption text-primary hover:underline",onClick:_,type:"button",children:[c,"Continue here"]}),f[17]=_,f[18]=u):u=f[18],f[19]!==o||f[20]!==l||f[21]!==u?(h=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-0.5",children:[o,l,u]}),f[19]=o,f[20]=l,f[21]=u,f[22]=h):h=f[22],f[23]!==s||f[24]!==h?(d=(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 border-border/50 border-t pt-2",children:[s,h]}),f[23]=s,f[24]=h,f[25]=d):d=f[25],d}function U(e){return e.stopPropagation()}function W(e){return!e}function q(e){let n,a,i,s,o,l,c,u,h,d,p=(0,r.c)(26),{url:f,product:m}=e,{Icon:g,tint:x}=D[m.family];return p[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,A.cn)(B,"flex-col gap-2"),p[0]=n):n=p[0],p[1]!==x?(a=(0,A.cn)("size-4.5",x),p[1]=x,p[2]=a):a=p[2],p[3]!==g||p[4]!==a?(i=(0,t.jsx)("span",{className:"mt-0.5 flex size-9 shrink-0 items-center justify-center rounded-lg bg-muted",children:(0,t.jsx)(g,{className:a})}),p[3]=g,p[4]=a,p[5]=i):i=p[5],p[6]!==m.title?(s=(0,t.jsx)("span",{className:"line-clamp-2 font-medium text-foreground text-ui leading-snug",children:m.title}),p[6]=m.title,p[7]=s):s=p[7],p[8]!==m.meta?(o=(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:m.meta}),p[8]=m.meta,p[9]=o):o=p[9],p[10]!==m.snippet?(l=m.snippet?(0,t.jsx)("span",{className:"line-clamp-2 text-caption text-muted-foreground leading-snug",children:m.snippet}):null,p[10]=m.snippet,p[11]=l):l=p[11],p[12]!==s||p[13]!==o||p[14]!==l?(c=(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[s,o,l]}),p[12]=s,p[13]=o,p[14]=l,p[15]=c):c=p[15],p[16]!==i||p[17]!==c||p[18]!==f?(u=(0,t.jsxs)(y.default,{className:"flex min-w-0 items-start gap-3",href:f,children:[i,c]}),p[16]=i,p[17]=c,p[18]=f,p[19]=u):u=p[19],p[20]!==m.journey||p[21]!==f?(h=m.journey?(0,t.jsx)(H,{journey:m.journey,url:f}):null,p[20]=m.journey,p[21]=f,p[22]=h):h=p[22],p[23]!==u||p[24]!==h?(d=(0,t.jsxs)("div",{className:n,children:[u,h]}),p[23]=u,p[24]=h,p[25]=d):d=p[25],d}function F(e){let n,a,i,s,o,l,c,u,h,d=(0,r.c)(78),{preview:p}=e;if("product"===p.kind){let e;return d[0]!==p.product||d[1]!==p.url?(e=(0,t.jsx)(q,{product:p.product,url:p.url}),d[0]=p.product,d[1]=p.url,d[2]=e):e=d[2],e}if("story"===p.kind){let e,r,n,a,i,s,o,{story:l}=p;d[3]!==l.id||d[4]!==l.slug?(e=(0,T.storyHref)(l.slug,l.id),d[3]=l.id,d[4]=l.slug,d[5]=e):e=d[5],d[6]!==l.focal||d[7]!==l.imageUrl?(r=l.imageUrl?(0,t.jsx)("img",{alt:"",className:"h-16 w-24 shrink-0 rounded-lg bg-muted object-cover",loading:"lazy",src:l.imageUrl,style:{objectPosition:(0,j.focalPosition)(l.focal)}}):null,d[6]=l.focal,d[7]=l.imageUrl,d[8]=r):r=d[8],d[9]!==l.name?(n=(0,t.jsx)("span",{className:"line-clamp-2 font-medium text-ui text-foreground leading-snug",children:l.name}),d[9]=l.name,d[10]=n):n=d[10];let c=1===l.uniqueCount?"source":"sources";return d[11]!==l.uniqueCount||d[12]!==c?(a=(0,t.jsxs)("span",{className:"text-caption text-muted-foreground",children:["IJR News · ",l.uniqueCount," ",c]}),d[11]=l.uniqueCount,d[12]=c,d[13]=a):a=d[13],d[14]!==l.bias||d[15]!==l.pct||d[16]!==l.uniqueCount?(i=(0,t.jsx)(w.CoverageLegendBar,{className:"mt-auto",counts:l.bias,pct:l.pct,total:l.uniqueCount}),d[14]=l.bias,d[15]=l.pct,d[16]=l.uniqueCount,d[17]=i):i=d[17],d[18]!==n||d[19]!==a||d[20]!==i?(s=(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[n,a,i]}),d[18]=n,d[19]=a,d[20]=i,d[21]=s):s=d[21],d[22]!==e||d[23]!==r||d[24]!==s?(o=(0,t.jsxs)(y.default,{className:B,href:e,children:[r,s]}),d[22]=e,d[23]=r,d[24]=s,d[25]=o):o=d[25],o}if("video"===p.kind){let e,r,n,a,i,s,o,l,c,u,{video:h}=p;d[26]!==h.durationSeconds?(e=(0,P.formatDuration)(h.durationSeconds),d[26]=h.durationSeconds,d[27]=e):e
4=d[27];let f=e;return d[28]!==h.id||d[29]!==h.slug?(r=(0,P.videoHref)(h.slug,h.id),d[28]=h.id,d[29]=h.slug,d[30]=r):r=d[30],d[31]!==h.thumbnailUrl?(n=h.thumbnailUrl?(0,t.jsx)("img",{alt:"",className:"h-16 w-24 rounded-lg bg-muted object-cover",loading:"lazy",src:h.thumbnailUrl}):(0,t.jsx)("span",{className:"block h-16 w-24 rounded-lg bg-muted"}),d[31]=h.thumbnailUrl,d[32]=n):n=d[32],d[33]!==f?(a=f?(0,t.jsx)("span",{className:"absolute right-1 bottom-1 rounded bg-black/80 px-1 py-0.5 text-[9px] text-white tabular-nums",children:f}):null,d[33]=f,d[34]=a):a=d[34],d[35]!==n||d[36]!==a?(i=(0,t.jsxs)("span",{className:"relative shrink-0",children:[n,a]}),d[35]=n,d[36]=a,d[37]=i):i=d[37],d[38]!==h.title?(s=(0,t.jsx)("span",{className:"line-clamp-2 font-medium text-ui text-foreground leading-snug",children:h.title}),d[38]=h.title,d[39]=s):s=d[39],d[40]!==h.channelName?(o=(0,t.jsx)("span",{className:"truncate text-caption text-muted-foreground",children:h.channelName}),d[40]=h.channelName,d[41]=o):o=d[41],d[42]!==h.platform?(l=(0,t.jsx)(_.PlatformBadge,{className:"mt-auto self-start",platform:h.platform}),d[42]=h.platform,d[43]=l):l=d[43],d[44]!==s||d[45]!==o||d[46]!==l?(c=(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[s,o,l]}),d[44]=s,d[45]=o,d[46]=l,d[47]=c):c=d[47],d[48]!==r||d[49]!==i||d[50]!==c?(u=(0,t.jsxs)(y.default,{className:B,href:r,children:[i,c]}),d[48]=r,d[49]=i,d[50]=c,d[51]=u):u=d[51],u}if(p.youtubeId){let e,r=`https://www.youtube-nocookie.com/embed/${p.youtubeId}`;return d[52]!==p.title||d[53]!==r?(e=(0,t.jsx)("span",{className:"block w-full max-w-md overflow-hidden rounded-xl border border-border/60",children:(0,t.jsx)("iframe",{allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"aspect-video w-full",loading:"lazy",src:r,title:p.title})}),d[52]=p.title,d[53]=r,d[54]=e):e=d[54],e}let f=p.url;d[55]!==p.domain?(n=O(p.domain),d[55]=p.domain,d[56]=n):n=d[56],d[57]!==n?(a=(0,t.jsx)("img",{alt:"",className:"size-3.5",src:n}),d[57]=n,d[58]=a):a=d[58];let m=p.siteName??p.domain;return d[59]!==m?(i=(0,t.jsx)("span",{className:"truncate",children:m}),d[59]=m,d[60]=i):i=d[60],d[61]!==a||d[62]!==i?(s=(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-caption text-muted-foreground",children:[a,i]}),d[61]=a,d[62]=i,d[63]=s):s=d[63],d[64]!==p.title?(o=(0,t.jsx)("span",{className:"line-clamp-2 font-medium text-ui text-foreground leading-snug",children:p.title}),d[64]=p.title,d[65]=o):o=d[65],d[66]!==p.description?(l=p.description?(0,t.jsx)("span",{className:"line-clamp-2 text-caption text-muted-foreground leading-snug",children:p.description}):null,d[66]=p.description,d[67]=l):l=d[67],d[68]!==s||d[69]!==o||d[70]!==l?(c=(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[s,o,l]}),d[68]=s,d[69]=o,d[70]=l,d[71]=c):c=d[71],d[72]!==p.imageUrl?(u=p.imageUrl?(0,t.jsx)("img",{alt:"",className:"h-16 w-24 shrink-0 rounded-lg bg-muted object-cover",loading:"lazy",src:z(p.imageUrl)}):null,d[72]=p.imageUrl,d[73]=u):u=d[73],d[74]!==p.url||d[75]!==u||d[76]!==c?(h=(0,t.jsxs)("a",{className:B,href:f,rel:"noopener noreferrer",target:"_blank",children:[c,u]}),d[74]=p.url,d[75]=u,d[76]=c,d[77]=h):h=d[77],h}function Z(e){let n,a=(0,r.c)(2),{url:i}=e,s=R(i);return s?(a[0]!==s?(n=(0,t.jsx)(F,{preview:s}),a[0]=s,a[1]=n):n=a[1],n):null}let Y={mindmap:"Mind map",doc:"Document",whiteboard:"Whiteboard",sheet:"Spreadsheet",slides:"Slides",board:"Project board",chat:"Shared chat",trip:"Trip",worldview:"Worldview",list:"Ranked list"},J=/^https?:\/\/(www\.|m\.)?(youtube\.com|youtu\.be)\//i,G="inline-flex max-w-full items-center gap-1 rounded-md border border-border/60 bg-background/80 px-1.5 py-0.5 align-middle font-medium text-[0.92em] text-foreground no-underline transition-colors hover:border-border hover:bg-background active:bg-muted",X=/(^|\.)((youtube|youtube-nocookie)\.com|youtu\.be)$/;function Q(e){let n,a,i,s,o,l,c,u=(0,r.c)(23),{url:h,onHide:d}=e,p=R(h);if(!p)return null;u[0]!==p.domain||u[1]!==p.kind||u[2]!==p.product||u[3]!==p.siteName||u[4]!==p.story||u[5]!==p.title||u[6]!==p.video||u[7]!==
4p.youtubeId?(n="product"===p.kind?[p.product.title,p.product.meta,(()=>{let{Icon:e,tint:r}=D[p.product.family];return(0,t.jsx)(e,{className:(0,A.cn)("size-4 shrink-0",r)})})()]:"story"===p.kind?[p.story.name,"IJR News",null]:"video"===p.kind?[p.video.title,p.video.channelName,null]:[p.title,p.siteName??p.domain,p.youtubeId?(0,t.jsx)(g.YoutubeIcon,{className:"size-4 shrink-0 text-red-500"},"yt"):(0,t.jsx)("img",{alt:"",className:"size-4 shrink-0",src:O(p.domain)},"favicon")],u[0]=p.domain,u[1]=p.kind,u[2]=p.product,u[3]=p.siteName,u[4]=p.story,u[5]=p.title,u[6]=p.video,u[7]=p.youtubeId,u[8]=n):n=u[8];let[f,y,x]=n;return u[9]!==f?(a=(0,t.jsx)("span",{className:"block truncate font-medium text-foreground text-ui",children:f}),u[9]=f,u[10]=a):a=u[10],u[11]!==y?(i=(0,t.jsx)("span",{className:"block truncate text-caption text-muted-foreground",children:y}),u[11]=y,u[12]=i):i=u[12],u[13]!==a||u[14]!==i?(s=(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[a,i]}),u[13]=a,u[14]=i,u[15]=s):s=u[15],u[16]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(m.XIcon,{className:"size-3.5"}),u[16]=o):o=u[16],u[17]!==d?(l=(0,t.jsx)("button",{"aria-label":"Hide link preview",className:"flex size-6 shrink-0 items-center justify-center rounded text-muted-foreground hover:bg-muted hover:text-foreground",onClick:d,type:"button",children:o}),u[17]=d,u[18]=l):l=u[18],u[19]!==x||u[20]!==s||u[21]!==l?(c=(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2 rounded-lg border border-border/60 bg-card px-2.5 py-1.5",children:[x,s,l]}),u[19]=x,u[20]=s,u[21]=l,u[22]=c):c=u[22],c}function V(e){return(0,t.jsx)(Z,{url:e},e)}let K=/[.*+?^${}()|[\]\\]/g,ee=/(`[^`\n]+`|\*(?!\s)[^*\n]*[^*\s\n]\*|_(?!\s)[^_\n]*[^_\s\n]_)/g;function et({text:e,mine:r}){return e.split(ee).map((e,n)=>{if(n%2==0)return e;let a=e.slice(1,-1);return e.startsWith("`")?(0,t.jsx)("code",{className:(0,A.cn)("rounded px-1 py-0.5 font-mono text-[0.9em]",r?"bg-primary-foreground/20":"bg-muted"),children:a},`${e}-${n}`):e.startsWith("*")?(0,t.jsx)("strong",{children:a},`${e}-${n}`):(0,t.jsx)("em",{children:a},`${e}-${n}`)})}function er(e){let n,a,i=(0,r.c)(8),{handle:s,mine:o}=e;if("@ai"===s.toLowerCase()){let e,r;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(p.SparklesIcon,{className:"size-3"}),i[0]=e):e=i[0],i[1]!==s?(r=(0,t.jsxs)("span",{className:"inline-flex items-center gap-0.5 rounded bg-accent/12 px-1 font-semibold text-[var(--color-accent)] ring-1 ring-accent/25 ring-inset",children:[e,s]}),i[1]=s,i[2]=r):r=i[2],r}let l=o?"bg-primary-foreground/20":"bg-primary/10 text-[var(--color-accent)]";return i[3]!==l?(n=(0,A.cn)("rounded px-0.5 font-semibold",l),i[3]=l,i[4]=n):n=i[4],i[5]!==s||i[6]!==n?(a=(0,t.jsx)("span",{className:n,children:s}),i[5]=s,i[6]=n,i[7]=a):a=i[7],a}function en(e){let n,a=(0,r.c)(9),{text:i,regex:s,mine:o}=e;if(!s){let e;return a[0]!==o||a[1]!==i?(e=(0,t.jsx)(et,{mine:o,text:i}),a[0]=o,a[1]=i,a[2]=e):e=a[2],e}if(a[3]!==o||a[4]!==s||a[5]!==i){let e;a[7]!==o?(e=(e,r)=>r%2==1?(0,t.jsx)(er,{handle:e,mine:o},`${e}-${r}`):(0,t.jsx)(et,{mine:o,text:e},`${e}-${r}`),a[7]=o,a[8]=e):e=a[8],n=i.split(s).map(e),a[3]=o,a[4]=s,a[5]=i,a[6]=n}else n=a[6];return n}function ea(e){return(0,t.jsx)(Z,{url:e},e)}e.s(["ComposerLinkPreviews",0,function(e){let n,a,i,s,o,l=(0,r.c)(12),{text:c}=e;l[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],l[0]=n):n=l[0];let[u,h]=(0,b.useState)(n);if(l[1]!==u||l[2]!==c){s=Symbol.for("react.early_return_sentinel");e:{let e,r;l[6]!==u?(e=e=>
4!u.includes(e),l[6]=u,l[7]=e):e=l[7];let n=E(c).filter(e).slice(0,2);if(0===n.length){s=null;break e}a="flex w-full flex-col gap-1.5 self-start px-3 pt-3",l[8]===Symbol.for("react.memo_cache_sentinel")?(r=e=>(0,t.jsx)(Q,{onHide:()=>h(t=>[...t,e]),url:e},e),l[8]=r):r=l[8],i=n.map(r)}l[1]=u,l[2]=c,l[3]=a,l[4]=i,l[5]=s}else a=l[3],i=l[4],s=l[5];return s!==Symbol.for("react.early_return_sentinel")?s:(l[9]!==a||l[10]!==i?(o=(0,t.jsx)("div",{className:a,children:i}),l[9]=a,l[10]=i,l[11]=o):o=l[11],o)},"LinkWithHoverPreview",0,function(e){let n,a,i,s=(0,r.c)(10),{href:o,children:l}=e,[c,u]=(0,b.useState)(!1),h=R(c?o:null),d=o.startsWith("/"),p=d?void 0:"noopener noreferrer",f=d?void 0:"_blank";return s[0]!==l||s[1]!==o||s[2]!==p||s[3]!==f?(n=(0,t.jsx)(v.HoverCardTrigger,{asChild:!0,children:(0,t.jsx)("a",{href:o,rel:p,target:f,children:l})}),s[0]=l,s[1]=o,s[2]=p,s[3]=f,s[4]=n):n=s[4],s[5]!==h?(a=h?(0,t.jsx)(v.HoverCardContent,{className:"w-auto max-w-md border-none bg-transparent p-0 shadow-none",children:(0,t.jsx)(F,{preview:h})}):null,s[5]=h,s[6]=a):a=s[6],s[7]!==n||s[8]!==a?(i=(0,t.jsxs)(v.HoverCard,{closeDelay:120,onOpenChange:u,openDelay:120,children:[n,a]}),s[7]=n,s[8]=a,s[9]=i):i=s[9],i},"MessageLinkEmbeds",0,function(e){let n,a,i,s,o=(0,r.c)(10),{text:l,scope:c}=e,u=void 0===c?"all":c;if(o[0]!==u||o[1]!==l){i=Symbol.for("react.early_return_sentinel");e:{let e;o[5]!==u?(e=e=>(function(e,t){if("all"===t||!/^https?:\/\//i.test(e))return!0;try{let t=new URL(e);if(t.host===window.location.host)return!0;return X.test(t.hostname)}catch{return!1}})(e,u),o[5]=u,o[6]=e):e=o[6];let t=E(l).filter(e);if(0===t.length){i=null;break e}n="mt-2 flex min-w-0 flex-col gap-2",a=t.map(V)}o[0]=u,o[1]=l,o[2]=n,o[3]=a,o[4]=i}else n=o[2],a=o[3],i=o[4];return i!==Symbol.for("react.early_return_sentinel")?i:(o[7]!==n||o[8]!==a?(s=(0,t.jsx)("span",{className:n,children:a}),o[7]=n,o[8]=a,o[9]=s):s=o[9],s)},"ProductLinkChip",0,function(e){let n,a,i,s,o,l,c=(0,r.c)(17),{href:u}=e,h=R(u);c[0]!==u?(n=J.test(u),c[0]=u,c[1]=n):n=c[1];let d=n;c[2]!==u||c[3]!==h?(a=h?.kind==="product"?h.product.family:I(u),c[2]=u,c[3]=h,c[4]=a):a=c[4];let p=a;if(c[5]!==p||c[6]!==u||c[7]!==d||c[8]!==h){let{Icon:e,tint:r}=d?{Icon:g.YoutubeIcon,tint:"text-red-500"}:D[p],n=h?.kind==="product"?h.product.title:h?.kind==="external"?h.title:d?"YouTube video":Y[p];i=d?(0,t.jsxs)("a",{className:G,href:u,rel:"noopener noreferrer",target:"_blank",title:n,children:[(0,t.jsx)(e,{className:(0,A.cn)("size-3.5 shrink-0",r)}),(0,t.jsx)("span",{className:"truncate",children:n})]}):(0,t.jsxs)(y.default,{className:G,href:u,title:n,children:[(0,t.jsx)(e,{className:(0,A.cn)("size-3.5 shrink-0",r)}),(0,t.jsx)("span",{className:"truncate",children:n})]}),c[5]=p,c[6]=u,c[7]=d,c[8]=h,c[9]=i}else i=c[9];let f=i;return h?(c[10]!==f?(s=(0,t.jsx)(v.HoverCardTrigger,{asChild:!0,children:f}),c[10]=f,c[11]=s):s=c[11],c[12]!==h?(o=(0,t.jsx)(v.HoverCardContent,{className:"w-auto max-w-md border-none bg-transparent p-0 shadow-none",children:(0,t.jsx)(F,{preview:h})}),c[12]=h,c[13]=o):o=c[13],c[14]!==s||c[15]!==o?(l=(0,t.jsxs)(v.HoverCard,{closeDelay:120,openDelay:150,children:[s,o]}),c[14]=s,c[15]=o,c[16]=l):l=c[16],l):f},"RichMessageBody",0,function(e){let n,a=(0,r.c)(12),{body:i,mine:s,mentionNames:o}=e,l=void 0!==s&&s;if(a[0]!==i||a[1]!==o||a[2]!==l){let e,r,s,c=E(i),u=M(i);if(a[4]!==o){let t;e=0===(t=(o??[]).filter(Boolean).sort((e,t)=>t.length-e.length).map(e=>e.replace(K,"\\$&"))).length?null:RegExp(`(@(?:${t.join("|")}))`,"g"),a[4]=o,a[5]=e}else e=a[5];let h=e,d="whitespace-pre-wrap break-words";a[6]!==h||a[7]!==l?(r=(e,r)=>L.test(e)?(0,t.jsx)("a",{className:(0,A.cn)("underline underline-offset-2",l?"text-primary-foreground":"text-[var(--color-accent)]"),href:e,rel:"noopener noreferrer",target:e.startsWith("http")?"_blank":void 0,children:e},`${e}-${r}`):(0,t.jsx)(en,{mine:l,regex:h,text:e},`${e}-${r}`),a[6]=h,a[7]=l,a[8]=r):r=a[8];let p=u.map(r);a[9]!==d||a[10]!==p?(s=(0,t.jsx)("span",{className:d,children:p}),a[9]=d,a[10]=p,a[11]=s):s=a[11],n=(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-2",children:[s,c.map(ea)]}),a[0]=i,a[1]=o,a[2]=l,a[3]=n}else n=a[3];return n}],422942)},994179,e=>{"use strict";var t=e.i(549111),r=e.i(655691),n=e.i(294237),a=e.i(656285),i=e.i(647163);let s=(0,n.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,background-color,border-color,box-shadow] duration-(--dur-quick) ease-(--ease-out) focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border bg-input/30 text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function(e){let n,o,l,c,u,h,d=(0,r.c)(13);d[0]!==e?({className:n,variant:l,asChild:c,...o}=e,d[0]=e,d[1]=n,d[2]=o,d[3]=l,d[4]=c):(n=d[1],o=d[2],l=d[3],c=d[4]);let p=void 0===l?"default":l,f=void 0!==c&&c?a.Slot.Root:"span";return d[5]!==n||d[6]!==p?(u=(0,i.cn)(s({variant:p}
4),n),d[5]=n,d[6]=p,d[7]=u):u=d[7],d[8]!==f||d[9]!==o||d[10]!==u||d[11]!==p?(h=(0,t.jsx)(f,{"data-slot":"badge","data-variant":p,className:u,...o}),d[8]=f,d[9]=o,d[10]=u,d[11]=p,d[12]=h):h=d[12],h}])},251424,e=>{"use strict";var t,r=e.i(549111),n=e.i(655691),a=e.i(864706),i=e.i(291967),s=e.i(877550),o=e.i(467500),l=e.i(597637),c=e.i(670501),u=e.i(895071),h=e.i(541614),d=e.i(824076),p=e.i(602159),f="HoverCard",[m,g]=(0,s.createContextScope)(f,[c.createPopperScope]),y=(0,c.createPopperScope)(),[x,b]=m(f),k=e=>{let{__scopeHoverCard:t,children:n,open:i,defaultOpen:s,onOpenChange:l,openDelay:u=700,closeDelay:h=300}=e,d=y(t),p=a.useRef(0),m=a.useRef(0),g=a.useRef(!1),b=a.useRef(!1),[k,w]=(0,o.useControllableState)({prop:i,defaultProp:s??!1,onChange:l,caller:f}),v=a.useCallback(()=>{clearTimeout(m.current),p.current=window.setTimeout(()=>w(!0),u)},[u,w]),_=a.useCallback(()=>{clearTimeout(p.current),g.current||b.current||(m.current=window.setTimeout(()=>w(!1),h))},[h,w]),S=a.useCallback(()=>w(!1),[w]);return a.useEffect(()=>()=>{clearTimeout(p.current),clearTimeout(m.current)},[]),(0,r.jsx)(x,{scope:t,open:k,onOpenChange:w,onOpen:v,onClose:_,onDismiss:S,hasSelectionRef:g,isPointerDownOnContentRef:b,children:(0,r.jsx)(c.Root,{...d,children:n})})};k.displayName=f;var w="HoverCardTrigger",v=a.forwardRef((e,t)=>{let{__scopeHoverCard:n,...a}=e,s=b(w,n),o=y(n);return(0,r.jsx)(c.Anchor,{asChild:!0,...o,children:(0,r.jsx)(d.Primitive.a,{"data-state":s.open?"open":"closed",...a,ref:t,onPointerEnter:(0,i.composeEventHandlers)(e.onPointerEnter,N(s.onOpen)),onPointerLeave:(0,i.composeEventHandlers)(e.onPointerLeave,N(s.onClose)),onFocus:(0,i.composeEventHandlers)(e.onFocus,s.onOpen),onBlur:(0,i.composeEventHandlers)(e.onBlur,s.onClose),onTouchStart:(0,i.composeEventHandlers)(e.onTouchStart,e=>e.preventDefault())})})});v.displayName=w;var _="HoverCardPortal",[S,j]=m(_,{forceMount:void 0}),T=e=>{let{__scopeHoverCard:t,forceMount:n,children:a,container:i}=e,s=b(_,t);return(0,r.jsx)(S,{scope:t,forceMount:n,children:(0,r.jsx)(h.Presence,{present:n||s.open,children:(0,r.jsx)(u.Portal,{asChild:!0,container:i,children:a})})})};T.displayName=_;var $="HoverCardContent",E=a.forwardRef((e,t)=>{let n=j($,e.__scopeHoverCard),{forceMount:a=n.forceMount,...s}=e,o=b($,e.__scopeHoverCard);return(0,r.jsx)(h.Presence,{present:a||o.open,children:(0,r.jsx)(M,{"data-state":o.open?"open":"closed",...s,onPointerEnter:(0,i.composeEventHandlers)(e.onPointerEnter,N(o.onOpen)),onPointerLeave:(0,i.composeEventHandlers)(e.onPointerLeave,N(o.onClose)),ref:t})})});E.displayName=$;var M=a.forwardRef((e,n)=>{let{__scopeHoverCard:s,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:h,onInteractOutside:d,...f}=e,m=b($,s),g=y(s),x=a.useRef(null),k=(0,l.useComposedRefs)(n,x),[w,v]=a.useState(!1);return a.useEffect(()=>{if(w){let e=document.body;return t=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=t,e.style.webkitUserSelect=t}}},[w]),a.useEffect(()=>{if(x.current){let e=()=>{v(!1),m.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(m.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!1}}},[m.isPointerDownOnContentRef,m.hasSelectionRef]),a.useEffect(()=>{x.current&&(function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t})(x.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,r.jsx)(p.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:d,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:(0,i.composeEventHandlers)(h,e=>{e.preventDefault()}),onDismiss:m.onDismiss,children:(0,r.jsx)(c.Content,{...g,...f,onPointerDown:(0,i.composeEventHandlers)(f.onPointerDown,e=>{e.currentTarget.contains(e.target)&&v(!0),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!0}),ref:k,style:{...f.style,userSelect:w?"text":void 0,WebkitUserSelect:w?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),L=a.forwardRef((e,t)=>
4{let{__scopeHoverCard:n,...a}=e,i=y(n);return(0,r.jsx)(c.Arrow,{...i,...a,ref:t})});function N(e){return t=>"touch"===t.pointerType?void 0:e()}L.displayName="HoverCardArrow",e.s(["Arrow",0,L,"Content",0,E,"HoverCard",0,k,"HoverCardArrow",0,L,"HoverCardContent",0,E,"HoverCardPortal",0,T,"HoverCardTrigger",0,v,"Portal",0,T,"Root",0,k,"Trigger",0,v,"createHoverCardScope",0,g],659404);var C=e.i(659404),C=C,I=e.i(647163);e.s(["HoverCard",0,function(e){let t,a,i=(0,n.c)(4);return i[0]!==e?({...t}=e,i[0]=e,i[1]=t):t=i[1],i[2]!==t?(a=(0,r.jsx)(C.Root,{"data-slot":"hover-card",...t}),i[2]=t,i[3]=a):a=i[3],a},"HoverCardContent",0,function(e){let t,a,i,s,o,l,c=(0,n.c)(12);c[0]!==e?({className:t,align:i,sideOffset:s,...a}=e,c[0]=e,c[1]=t,c[2]=a,c[3]=i,c[4]=s):(t=c[1],a=c[2],i=c[3],s=c[4]);let u=void 0===i?"center":i,h=void 0===s?4:s;return c[5]!==t?(o=(0,I.cn)("z-50 w-72 origin-(--radix-hover-card-content-transform-origin) rounded-2xl bg-popover p-4 text-sm text-popover-foreground shadow-2xl ring-1 ring-foreground/5 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),c[5]=t,c[6]=o):o=c[6],c[7]!==u||c[8]!==a||c[9]!==h||c[10]!==o?(l=(0,r.jsx)(C.Portal,{"data-slot":"hover-card-portal",children:(0,r.jsx)(C.Content,{"data-slot":"hover-card-content",align:u,sideOffset:h,className:o,...a})}),c[7]=u,c[8]=a,c[9]=h,c[10]=o,c[11]=l):l=c[11],l},"HoverCardTrigger",0,function(e){let t,a,i=(0,n.c)(4);return i[0]!==e?({...t}=e,i[0]=e,i[1]=t):t=i[1],i[2]!==t?(a=(0,r.jsx)(C.Trigger,{"data-slot":"hover-card-trigger",...t}),i[2]=t,i[3]=a):a=i[3],a}],251424)},332921,e=>{"use strict";var t=e.i(549111),r=e.i(655691),n=e.i(994179),a=e.i(647163),i=e.i(163585);e.s(["PlatformBadge",0,function(e){let s,o,l=(0,r.c)(5),{platform:c,className:u}=e;l[0]!==u?(s=(0,a.cn)("text-caption text-muted-foreground uppercase tracking-wide",u),l[0]=u,l[1]=s):s=l[1];let h=i.PLATFORM_META[c];return l[2]!==s||l[3]!==h.label?(o=(0,t.jsx)(n.Badge,{className:s,variant:"secondary",children:h.label}),l[2]=s,l[3]=h.label,l[4]=o):o=l[4],o}])},563796,e=>{"use strict";var t=e.i(762361),r=e.i(655691),n=e.i(864706);let a="ijr_guest_searches",i="ijr_guest_pending_query",s=Math.max(1,Number(t.default.env.NEXT_PUBLIC_GUEST_SEARCH_LIMIT??10));function o(){return new Date().toISOString().slice(0,10)}function l(e){let t=e+1;return window.localStorage.setItem(a,JSON.stringify({d:o(),n:t})),t}e.s(["GUEST_TURNS_PER_CHAT",0,4,"useGuestQuota",0,function(){let e,t,c,u,h,d,p=(0,r.c)(10),[f,m]=(0,n.useState)(0),[g,y]=(0,n.useState)(null),[x,b]=(0,n.useState)(!1);p[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{m(function(){let e=window.localStorage.getItem(a);if(!e)return 0;try{let t=JSON.parse(e);if(t&&"number"==typeof t.n&&t.d===o())return t.n}catch{}return 0}()),y(window.localStorage.getItem(i)),b(!0)},t=[],p[0]=e,p[1]=t):(e=p[0],t=p[1]),(0,n.useEffect)(e,t),p[2]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{m(l)},p[2]=c):c=p[2];let k=c;p[3]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{window.localStorage.setItem(i,e),y(e)},p[3]=u):u=p[3];let w=u;p[4]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{window.localStorage.removeItem(i),y(null)},p[4]=h):h=p[4];let v=h,_=f>=s;return p[5]!==x||p[6]!==g||p[7]!==_||p[8]!==f?(d={used:f,exhausted:_,hydrated:x,increment:k,pendingQuery:g,stashPendingQuery:w,clearPendingQuery:v},p[5]=x,p[6]=g,p[7]=_,p[8]=f,p[9]=d):d=p[9],d}])},71829,e=>{"use strict";var t=e.i(762361);t.default.env.PLAYWRIGHT_TEST_BASE_URL||t.default.env.PLAYWRIGHT||t.default.env.CI_PLAYWRIGHT;let r=[{id:"news",label:"Today's news",prompts:[{label:"What's the news today?",prompt:"What's the biggest news today?"},{label:"Catch me up",prompt:"Catch me up on what I've missed this week."},{label:"What's the latest on…",prompt:"What's the latest on a story I'm following? Ask me which one."},{label:"How is this being covered?",prompt:"How are different outlets covering the biggest story right now?"}]},{id:"learn",label:"Understand",prompts:[{label:"Break down a story",prompt:"Break down a news story for me. Ask me which one, then give me the context and what's at stake."},{label:"Explain a concept",prompt:"Explain a concept I'm stuck on."},{label:"Compare two sides",prompt:"Compare two sides of a debate, honestly."}]},{id:"research",label:"Dig deeper",prompts:[{label:"Fact-check a claim",prompt:"Help me fact-check a claim. I'll give it to you; you find the primary sources and tell me how solid it is."},{label:"Find sources I'm missing",prompt:"Find sources I'm missing on a topic I'll name."},{label:"Who benefits?",prompt:"Who actually benefits from a policy I'll name?"}]}],n=r.slice(0,4).map(e=>({label:e.prompts[0]?.label??e.label,prompt:e.prompts[0]?.prompt??e.label}));[...n],e.s(["ADVISOR_IDEAS",0,[{question:"Find the best price for …",tag:"Best price",groupId:"decide"},{question:"Is … worth buying?",tag:"Quality check",groupId:"research"},{question:"Compare … — which should I get?",tag:"Compare",groupId:"decide"},{question:"Should I buy … locally or online?",tag:"Local vs web",groupId:"decide"},{question:"What's a fair rate for …?",tag:"Services",groupId:"research"},{question:"Plan a trip to …",tag:"Travel",groupId:"plan"}],"CONTENT_FILTER_TOAST_VARIANTS",0,["This message was blocked by our safety check. Try rephrasing it.","Our safety check stopped this one. A quick reword usually does the trick.","That message got caught in our safety net. Mind phrasing it differently?","We couldn't process that message. Try saying it another way.","Our safety check flagged this one. Rephrase and give it another shot.","That one didn't make it past our safety check. A reworded version should.","Hmm, our safety check wasn't sure about that. Try a different wording.","This message hit our safety limits. Rephrasing usually clears it up.","Our safety check held this one back. Tweak the wording and resend.","That message tripped our safety check. Try again with different phrasing."],"GUEST_INPUT_CHIPS",0,n,"MODERATION_BLOCKED_MESSAGE",0,"This message was flagged by our content filter and can't be processed.","advisorSuggestionCategories",0,[{id:"prices",label:"Best price",prompts:[{label:"Find the best price for…",prompt:"Find the best current price for …"},{label:"Buy now, or wait?",prompt:"Is now a good time to buy …, or should I wait for the price to drop?"},{label:"Who delivers fastest?",prompt:"Who can deliver … fastest at a fair price?"},{label:"Local shops or online?",prompt:"Should I buy … from a local shop or online? Weigh price, returns, and having it today."}]},{id:"picks",label:"Help me pick",prompts:[{label:"Which one should I buy?",prompt:"Help me pick between … — compare reviews, known issues, and value."},{label:"Is it worth buying?",prompt:"Is … actually worth buying? Check what reviews really say."},{label:"Best one under my budget",prompt:"What's the best … under $…?"},{label:"What do owners complain about?",prompt:"What do owners actually complain about with …?"}]},{id:"services",label:"Hire a service",prompts:[{label:"What's a fair rate for…",prompt:"What's a fair rate for …?"},{label:"Compare providers",prompt:"Help me compare providers for … — what separates a good one from a bad one?"},{label:"What to ask before hiring",prompt:"What should I ask before hiring someone to …?"}]},{id:"travel",label:"Plan a trip",prompts:[{label:"Inspire me",prompt:"Inspire me with a few trip ideas."},{label:"Plan a weekend escape",prompt:"Plan a weekend escape."},{label:"Somewhere warm in March",prompt:"Suggest somewhere warm to travel in March."},{label:"Build an itinerary",prompt:"Help me build an itinerary for a trip to …"}]}],"suggestionCategories",0,r])},990390,e=>{"use strict";let t=new Set(["H1","H2","H3","H4","H5","H6","P","STRONG","B","EM","I","U","S","UL","OL","LI","TABLE","THEAD","TBODY","TR","TD","TH","BLOCKQUOTE","CODE","PRE","DIV","SPAN","LABEL","INPUT","BR","HR","IMG"]);e.s(["sanitizePreviewHtml",0,function(e){let r=new DOMParser().parseFromString(e,"text/html");return!function e(r){for(let a of[...r.children]){var n;if(!t.has(a.tagName)){a.replaceWith(...a.childNodes),e(r);return}if("INPUT"===a.tagName&&"checkbox"!==a.getAttribute("type")||"IMG"===a.tagName&&!((n=a.getAttribute("src")??"").startsWith("data:image/")||n.startsWith("https://")||n.startsWith("/")&&!n.startsWith("//"))){a.remove();continue}for(let e of[...a.attributes])e.name.startsWith("data-")||"INPUT"===a.tagName&&("type"===e.name||"checked"===e.name)||"IMG"===a.tagName&&("src"===e.name||"alt"===e.name)||a.removeAttribute(e.name);"INPUT"===a.tagName&&a.setAttribute("disabled",""),e(a)}}(r.body),r.body.innerHTML}])},617533,689025,e=>{"use strict";let t={"the acts of the apostles":"Acts","the book of daniel":"Daniel","the book of esther":"Esther","the book of job":"Job","the book of joshua":"Joshua","the book of judges":"Judges","the book of nehemiah":"Nehemiah","the book of psalms":"Psalms","the book of ruth":"Ruth","the book of the prophet ezekiel":"Ezekiel","the book of the prophet isaiah":"Isaiah","the book of the prophet jeremiah":"Jeremiah","the epistle of paul the apostle to philemon":"Philemon","the epistle of paul the apostle to titus":"Titus","the epistle of paul the apostle to the colossians":"Colossians","the epistle of paul the apostle to the ephesians":"Ephesians","the epistle of paul the apostle to the galatians":"Galatians","the epistle of paul the apostle to the hebrews":"Hebrews","the epistle of paul the apostle to the philippians":"Philippians","the epistle of paul the apostle to the romans":"Romans","the fifth book of moses: called deuteronomy":"Deuteronomy","the first book of moses: called genesis":"Genesis","the second book of moses: called exodus":"Exodus","the third book of moses: called leviticus":"Leviticus","the fourth book of moses: called numbers":"Numbers","the first book of the chronicles":"1 Chronicles","the second book of the chronicles":"2 Chronicles","the first book of the kings":"1 Samuel","the second book of the kings":"2 Samuel","the third book of the kings":"1 Kings","the fourth book of the kings":"2 Kings","the first epistle general of john":"1 John","the second epistle general of john":"2 John","the third epistle general of john":"3 John","the first epistle general of peter":"1 Peter","the second general epistle of peter":"2 Peter","the first epistle of paul the apostle to timothy":"1 Timothy","the second epistle of paul the apostle to timothy":"2 Timothy","the first epistle of paul the apostle to the corinthians":"1 Corinthians","the second epistle of paul the apostle to the corinthians":"2 Corinthians","the first epistle of paul the apostle to the thessalonians":"1 Thessalonians","the second epistle of paul the apostle to the thessalonians":"2 Thessalonians","the general epistle of james":"James","the general epistle of jude":"Jude","the gospel according to saint john":"John","the gospel according to saint luke":"Luke","the gospel according to saint mark":"Mark","the gospel according to saint matthew":"Matthew","the lamentations of jeremiah":"Lamentations","the preacher":"Ecclesiastes","the proverbs":"Proverbs","the revelation of saint john the divine":"Revelation","the song of solomon":"Song of Solomon"},r={psalm:"Psalms","song of songs":"Song of Solomon",canticles:"Song of Solomon",qoheleth:"Ecclesiastes",revelations:"Revelation","acts of the apostles":"Acts"}
4,n={gen:"Genesis",gn:"Genesis",ex:"Exodus",exod:"Exodus",lev:"Leviticus",lv:"Leviticus",num:"Numbers",nm:"Numbers",nb:"Numbers",deut:"Deuteronomy",dt:"Deuteronomy",josh:"Joshua",jos:"Joshua",judg:"Judges",jdg:"Judges",jgs:"Judges",ru:"Ruth",rth:"Ruth",sam:"Samuel",sm:"Samuel",kgs:"Kings",ki:"Kings",kin:"Kings",chr:"Chronicles",chron:"Chronicles",ezr:"Ezra",neh:"Nehemiah",ne:"Nehemiah",est:"Esther",esth:"Esther",jb:"Job",ps:"Psalms",psa:"Psalms",pss:"Psalms",prov:"Proverbs",pr:"Proverbs",prv:"Proverbs",eccl:"Ecclesiastes",ecc:"Ecclesiastes",qoh:"Ecclesiastes",song:"Song of Solomon",sos:"Song of Solomon",cant:"Song of Solomon",isa:"Isaiah",is:"Isaiah",jer:"Jeremiah",lam:"Lamentations",ezek:"Ezekiel",eze:"Ezekiel",ezk:"Ezekiel",dan:"Daniel",dn:"Daniel",hos:"Hosea",jl:"Joel",am:"Amos",ob:"Obadiah",obad:"Obadiah",jon:"Jonah",mic:"Micah",mi:"Micah",nah:"Nahum",na:"Nahum",hab:"Habakkuk",hb:"Habakkuk",zeph:"Zephaniah",zep:"Zephaniah",hag:"Haggai",hg:"Haggai",zech:"Zechariah",zec:"Zechariah",mal:"Malachi",matt:"Matthew",mt:"Matthew",mk:"Mark",mrk:"Mark",lk:"Luke",luk:"Luke",jn:"John",jhn:"John",ac:"Acts",rom:"Romans",ro:"Romans",rm:"Romans",cor:"Corinthians",co:"Corinthians",gal:"Galatians",ga:"Galatians",eph:"Ephesians",phil:"Philippians",php:"Philippians",col:"Colossians",thess:"Thessalonians",thes:"Thessalonians",th:"Thessalonians",tim:"Timothy",ti:"Timothy",tit:"Titus",phlm:"Philemon",phm:"Philemon",heb:"Hebrews",jas:"James",jam:"James",pet:"Peter",pt:"Peter",rev:"Revelation",re:"Revelation",rv:"Revelation"},a=/^(?:(1|2|3)|(i{1,3})|(first|second|third))\s+(?=[a-z])/i,i={first:"1",second:"2",third:"3"};function s(e){return e.toLowerCase().replace(/[.]/g,"").replace(/\s+/g," ").trim()}function o(e){let o=s(e),l=t[o];if(l)return l;let u=o.match(a),h="";u&&(h=u[1]??(u[2]?String(u[2].length):i[u[3]]),o=o.slice(u[0].length));let d=r[o]??n[o];d&&(o=s(d));let p=h?`${h} ${o}`:o;return c.get(p)??null}function l(e){return s(e).replace(a,"")in n}let c=new Map([...new Set([...Object.values(t),"Amos","Ezra","Habakkuk","Haggai","Hosea","Joel","Jonah","Malachi","Micah","Nahum","Obadiah","Zechariah","Zephaniah"])].map(e=>[s(e),e]));[...c.values()];let u=/\b((?:(?:[1-3]|I{1,3}|First|Second|Third)\s+)?[A-Z][A-Za-z]+\.?(?:\s+of\s+[A-Z][A-Za-z]+)?)\s+(\d{1,3}):(\d{1,3})(?:\s*[-–]\s*\d{1,3})?(?:,\s*\d{1,3}(?!\s+[A-Z][A-Za-z]*\s+\d{1,3}:)(?:\s*[-–]\s*\d{1,3})?)*\b/g;function h(e){let t=[];u.lastIndex=0;let r=u.exec(e);for(;null!==r;){let n=o(r[1]);if(n){let e=r[0].replace(/\s+/g," ").trim();t.push({book:n,chapter:Number(r[2]),verse:Number(r[3]),text:e,label:l(r[1])?`${n} ${e.slice(r[1].replace(/\s+/g," ").length).trim()}`:e})}r=u.exec(e)}return t}let d=/\b((?:(?:[1-3]|I{1,3}|First|Second|Third)\s+)?[A-Z][A-Za-z]+(?:\s+of\s+[A-Z][A-Za-z]+)?)\s+(\d{1,3})(?:\s*[-–]\s*(\d{1,3}))?(?![\d%]|\s*:\s*\d)\b/g,p=new Set(["Acts","James","Job","John","Judges","Mark","Numbers"]),f="the-holy-bible-various",m="the-holy-bible",g={[m]:f},y={"Darby Translation":"DBY","Douay-Rheims":"DRA","Geneva Bible":"GNV","Webster’s Revision":"WBS","Hebrew Bible (Westminster Leningrad Codex)":"WLC","Septuagint (Greek Old Testament)":"LXX","Greek New Testament (Textus Receptus)":"TR","Greek New Testament (Text-Critical)":"TCGNT","Vulgata Clementina (Latin)":"VUL"},x=[["Genesis",50],["Exodus",40],["Leviticus",27],["Numbers",36],["Deuteronomy",34],["Joshua",24],["Judges",21],["Ruth",4],["1 Samuel",31],["2 Samuel",24],["1 Kings",22],["2 Kings",25],["1 Chronicles",29],["2 Chronicles",36],["Ezra",10],["Nehemiah",13],["Esther",10],["Job",42],["Psalms",150],["Proverbs",31],["Ecclesiastes",12],["Song of Solomon",8],["Isaiah",66
4],["Jeremiah",52],["Lamentations",5],["Ezekiel",48],["Daniel",12],["Hosea",14],["Joel",3],["Amos",9],["Obadiah",1],["Jonah",4],["Micah",7],["Nahum",3],["Habakkuk",3],["Zephaniah",3],["Haggai",2],["Zechariah",14],["Malachi",4],["Matthew",28],["Mark",16],["Luke",24],["John",21],["Acts",28],["Romans",16],["1 Corinthians",16],["2 Corinthians",13],["Galatians",6],["Ephesians",6],["Philippians",4],["Colossians",4],["1 Thessalonians",5],["2 Thessalonians",3],["1 Timothy",6],["2 Timothy",4],["Titus",3],["Philemon",1],["Hebrews",13],["James",5],["1 Peter",5],["2 Peter",3],["1 John",5],["2 John",1],["3 John",1],["Jude",1],["Revelation",22]],b=x.map(([e])=>e),k=new Map;{let e=0;for(let[t,r]of x)k.set(t,{start:e,chapters:r}),e+=r}let w=/[\u0590-\u05FF]/,v=/[\u0370-\u03FF\u1F00-\u1FFF]/;function _(e){return w.test(e)?"hebrew":v.test(e)?"greek":"latin"}e.s(["BIBLE_READ_SLUG",0,m,"BIBLE_SLUG",0,f,"canonicalBibleBook",0,o,"editionAbbreviation",0,function(e,t){if(t)return t;let r=e&&y[e];if(r)return r;let n=(e??"").split(/\s+/).filter(e=>/^[A-Z]/.test(e)).map(e=>e[0]).join("");return n.length>=2?n.slice(0,4):e??"Version"},"findChapterReferences",0,function(e){let t=[];d.lastIndex=0;let r=d.exec(e);for(;null!==r;){let n=o(r[1]),a=n?function(e){return x.find(([t])=>t===e)?.[1]??null}(n):null,i=Number(r[2]),s=r[3]?Number(r[3]):null;n&&a&&!l(r[1])&&i>=1&&i<=a&&(null===s||s>i&&s<=a)&&t.push({book:n,chapter:i,endChapter:s,text:r[0].replace(/\s+/g," ").trim(),landing:`${n} ${i}:1`}),r=d.exec(e)}return t.some(e=>!p.has(e.book))||h(e).length>0?t:t.filter(e=>!p.has(e.book))},"findVerseReferences",0,h,"isRightToLeftLanguage",0,function(e){return/^(he|hbo)(-|$)/i.test(e??"")},"kjvBookOrder",0,function(e){let t=b.indexOf(e);return t<0?null:t+1},"librarySlugFor",0,function(e){return g[e]??e},"readerSlugFor",0,function(e){for(let[t,r]of Object.entries(g))if(r===e)return t;return e},"scriptLang",0,function(e){let t=_(e);return"hebrew"===t?"he":"greek"===t?"grc":null},"scriptOf",0,_,"splitVerseLines",0,function(e){let t=[];for(let r of e.split("\n")){let e=r.match(/^(\d{1,3}):(\d{1,3}) (.*)$/);e&&t.push({chapter:Number(e[1]),verse:Number(e[2]),text:e[3].trim()})}return t},"verseAtOffset",0,function(e,t){let r=e.slice(0,Math.max(0,Math.min(t,e.length))).lastIndexOf("\n")+1,n=e.slice(r,e.indexOf("\n",r)+1||e.length).match(/^(\d{1,3}):(\d{1,3})\s/);return n?{chapter:Number(n[1]),verse:Number(n[2])}:null},"verseOffsets",0,function(e,t,r){let n=`${t}:${r} `,a=e.startsWith(n)?0:e.indexOf(`
5${n}`)+1||-1;if(a<0)return null;let i=a+n.length,s=e.indexOf("\n",i);return{start:i,end:s<0?e.length:s}}],689025),e.s(["CONCORDANCE_NASB",0,{slug:"yv-100",label:"NASB"},"kjvReaderHref",0,function(e){return`/read/${m}?v=${encodeURIComponent(e)}`}],617533)},494211,e=>{"use strict";var t=e.i(219513);let r=t.z.object({id:t.z.string().min(1).max(64),text:t.z.string().max(400),parentId:t.z.string().nullable(),children:t.z.array(t.z.string()),color:t.z.string().max(32).nullish(),note:t.z.string().max(4e3).nullish(),link:t.z.string().max(2e3).nullish(),emoji:t.z.string().max(8).nullish(),image:t.z.string().max(2e3).nullish(),collapsed:t.z.boolean().nullish(),side:t.z.enum(["left","right"]).nullish(),done:t.z.boolean().nullish(),due:t.z.string().max(10).nullish(),assignee:t.z.string().max(60).nullish(),floating:t.z.boolean().nullish(),fontSize:t.z.number().min(11).max(24).nullish()}),n=t.z.object({id:t.z.string().min(1).max(64),from:t.z.string(),to:t.z.string(),label:t.z.string().max(80).nullish()}),a=t.z.object({version:t.z.literal(1),rootId:t.z.string(),nodes:t.z.record(t.z.string(),r),connections:t.z.array(n).optional()});function i(){return crypto.randomUUID().slice(0,13)}function s(e){let t=a.safeParse(e);if(!t.success)return null;let r=t.data,n=r.nodes[r.rootId];if(!n||null!==n.parentId)return null;let i={},s=[r.rootId];for(;s.length>0;){let e=s.pop(),t=r.nodes[e];if(!t||i[e])continue;let n=t.children.filter(t=>r.nodes[t]?.parentId===e);i[e]={...t,children:n},s.push(...n)}if(Object.keys(i).length>2e3)return null;let o=new Set,l=(r.connections??[]).filter(e=>{if(e.from===e.to||!(i[e.from]&&i[e.to]))return!1;let t=[e.from,e.to].sort().join(":");return!o.has(t)&&(o.add(t),!0)}).slice(0,200);return{version:1,rootId:r.rootId,nodes:i,connections:l}}function o(e){return Object.keys(e.nodes).length}function l(e,t){let r=[],n=[t];for(;n.length>0;){let t=n.pop(),a=e.nodes[t];a&&(r.push(t),n.push(...a.children))}return r}function c(e,t){switch(t.type){case"replace":return s(t.doc)??e;case"add":{let r=e.nodes[t.parentId];if(!r||e.nodes[t.node.id]||o(e)>=2e3)return e;let n={...t.node,parentId:t.parentId,children:[]},a=Math.max(0,Math.min(t.index,r.children.length)),i=[...r.children.slice(0,a),n.id,...r.children.slice(a)];
5return{...e,nodes:{...e.nodes,[t.parentId]:{...r,children:i},[n.id]:n}}}case"update":{let r=e.nodes[t.id];if(!r)return e;let n=void 0===t.patch.text?r.text:t.patch.text.slice(0,400);return{...e,nodes:{...e.nodes,[t.id]:{...r,...t.patch,text:n}}}}case"delete":{let r=e.nodes[t.id];if(!r?.parentId)return e;let n=e.nodes[r.parentId],a=new Set(l(e,t.id)),i={};for(let[t,r]of Object.entries(e.nodes))a.has(t)||(i[t]=r);n&&(i[n.id]={...n,children:n.children.filter(e=>e!==t.id)});let s=(e.connections??[]).filter(e=>!(a.has(e.from)||a.has(e.to)));return{...e,nodes:i,connections:s}}case"connect":{let{connection:r}=t,n=e.connections??[];if(r.from===r.to||!(e.nodes[r.from]&&e.nodes[r.to])||n.length>=200||n.some(e=>e.from===r.from&&e.to===r.to||e.from===r.to&&e.to===r.from))return e;return{...e,connections:[...n,r]}}case"disconnect":{let r=e.connections??[],n=r.filter(e=>e.id!==t.id);if(n.length===r.length)return e;return{...e,connections:n}}case"move":{let r=e.nodes[t.id],n=e.nodes[t.parentId];if(!(r&&n)||!r.parentId||t.id===t.parentId||function(e,t,r){let n=e.nodes[r];for(;n?.parentId;){if(n.parentId===t)return!0;n=e.nodes[n.parentId]}return!1}(e,t.id,t.parentId))return e;let a=e.nodes[r.parentId];if(!a)return e;let i=a.children.filter(e=>e!==t.id),s=n.id===a.id?i:[...n.children],o=Math.max(0,Math.min(t.index,s.length));s.splice(o,0,t.id);let l={...e.nodes};return l[a.id]={...a,children:i},l[n.id]={...l[n.id],children:s},l[t.id]={...r,parentId:t.parentId},{...e,nodes:l}}default:return e}}e.s(["applyOp",0,c,"branchRootOf",0,function(e,t){let r=e.nodes[t];for(;r?.parentId;){if(r.parentId===e.rootId)return r.id;r=e.nodes[r.parentId]}return null},"docFromFlat",0,function(e,t){var r;let n,a=(r=e.slice(0,400)||"Untitled map",{version:1,rootId:n=i(),nodes:{[n]:{id:n,text:r,parentId:null,children:[]}},connections:[]}),s=[];return t.slice(0,1999).forEach((e,t)=>{let r=e.parent,n=null===r||r>=t?a.rootId:s[r]??a.rootId,o=i();s[t]=o;let l=a.nodes[n];a=c(a,{type:"add",parentId:n,index:l?.children.length??0,node:{id:o,text:e.text.slice(0,400),parentId:n,children:[]}})}),a},"docToMarkdown",0,function(e){let t=[`# ${e.nodes[e.rootId]?.text??"Mind map"}`],r=(n,a)=>{let i=e.nodes[n];if(i)for(let n of i.children){let i=e.nodes[n];i&&(t.push(`${"  ".repeat(a)}- ${i.text}`),i.note&&t.push(`${"  ".repeat(a+1)}> ${i.note.split("\n")[0]}`),r(n,a+1))}};return r(e.rootId,0),t.join("\n")},"duplicateOps",0,function(e,t){let r=e.nodes[t];if(!r?.parentId)return[];let n=e.nodes[r.parentId];if(!n||o(e)+l(e,t).length>2e3)return[];let a=[],s=(t,r,n)=>{let o=e.nodes[t];if(!o)return;let l=i();for(let[e,t]of(a.push({type:"add",parentId:r,index:n,node:{...o,id:l,parentId:r,children:[],collapsed:o.collapsed}}),o.children.entries()))s(t,l,e)};return s(t,n.id,n.children.indexOf(t)+1),a},"mindmapDocSchema",0,a,"newNodeId",0,i,"normalizeDoc",0,s,"subtreeIds",0,l])},360386,e=>{"use strict";let t="https://ijr.com",r=new URL(t).hostname;e.s(["OPEN_APEX",0,r,"OPEN_BASE",0,t,"openUrl",0,function(e){return`${t}${e}`}])},124069,e=>{"use strict";let t="-apple-system, BlinkMacSystemFont, 'DM Sans', 'Segoe UI', sans-serif";function r(e,t,r,n){let a=[];for(let i of t.split("\n")){let t="";for(let n of i.split(/\s+/).filter(Boolean)){let i=t?`${t} ${n}`:n;e.measureText(i).width<=r||!t?t=i:(a.push(t),t=n)}if(a.push(t),a.length>=n)break}let i=a.slice(0,n);if(a.length>n||t.length>2e3){let e=i.at(-1)??"";i[i.length-1]=`${e.replace(/[.,;:\s]+$/,"")}…`}return i.filter(e=>e.length>0||1===i.length)}async function n(e){let n=document.createElement("canvas").getContext("2d");if(!n)return null;n.font=`700 56px ${t}`;let a=e.title?r(n,e.title,912,3):[];n.font=`400 38px ${t}`;let i=r(n,e.body,912,14),s=Math.max(620,158+(a.length?68*a.length+28:0)+56*i.length+96+84),o=document.createElement("canvas");o.width=2160,o.height=2*s;let l=o.getContext("2d");if(!l)return null;l.scale(2,2);let c=l.createLinearGradient(0,0,1080,s);c.addColorStop(0,"#0b0b14"),c.addColorStop(1,"#171526"),l.fillStyle=c,l.fillRect(0,0,1080,s);let u=84;if(l.fillStyle=e.accent,l.beginPath(),l.roundRect(84,u+4,46,6,3),l.fill(),l.font=`700 26px ${t}`,l.fillText(e.eyebrow.toUpperCase(),146,u+14),u+=74,a.length){for(let e of(l.fillStyle="#f4f3fa",l.font=`700 56px ${t}`,a))l.fillText(e,84,u+56-10),u+=68;u+=28}for(let e of(l.fillStyle=a.length?"#b9b5cc":"#e6e4f2",l.font=`400 38px ${t}`,i))l.fillText(e,84,u+38-8),u+=56;let h=s-84+10;l.font=`400 26px ${t}`,l.fillStyle="#8d89a3",l.fillText(e.tagline,84,h),l.font=`700 30px ${t}`,l.fillStyle="#f4f3fa";let d=l.measureText(e.wordmark).width;return l.fillText(e.wordmark,996-d,h),await new Promise(e=>
5o.toBlob(e,"image/png"))}async function a(e,t){let r=new File([e],t.filename,{type:"image/png"});if(navigator.canShare?.({files:[r]}))try{return await navigator.share({files:[r],title:t.title,...t.text?{text:t.text}:{}}),"shared"}catch{return"failed"}try{return await navigator.clipboard.write([new ClipboardItem({"image/png":e})]),"copied"}catch{try{let r=URL.createObjectURL(e),n=document.createElement("a");return n.href=r,n.download=t.filename,n.click(),URL.revokeObjectURL(r),"downloaded"}catch{return"failed"}}}e.s(["renderAnswerCard",0,n,"shareCardBlob",0,a])},251934,e=>{"use strict";Array.prototype.slice,e.s(["default",0,function(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}])},459683,199518,e=>{"use strict";e.s(["default",0,function(e){return function(){return e}}],459683);let t=Math.PI,r=2*t,n=r-1e-6;function a(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class i{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?a:function(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return a;let r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,a,i){this._append`C${+e},${+t},${+r},${+n},${this._x1=+a},${this._y1=+i}`}arcTo(e,r,n,a,i){if(e*=1,r*=1,n*=1,a*=1,(i*=1)<0)throw Error(`negative radius: ${i}`);let s=this._x1,o=this._y1,l=n-e,c=a-r,u=s-e,h=o-r,d=u*u+h*h;if(null===this._x1)this._append`M${this._x1=e},${this._y1=r}`;else if(d>1e-6)if(Math.abs(h*l-c*u)>1e-6&&i){let p=n-s,f=a-o,m=l*l+c*c,g=Math.sqrt(m),y=Math.sqrt(d),x=i*Math.tan((t-Math.acos((m+d-(p*p+f*f))/(2*g*y)))/2),b=x/y,k=x/g;Math.abs(b-1)>1e-6&&this._append`L${e+b*u},${r+b*h}`,this._append`A${i},${i},0,0,${+(h*p>u*f)},${this._x1=e+k*l},${this._y1=r+k*c}`}else this._append`L${this._x1=e},${this._y1=r}`}arc(e,a,i,s,o,l){if(e*=1,a*=1,i*=1,l=!!l,i<0)throw Error(`negative radius: ${i}`);let c=i*Math.cos(s),u=i*Math.sin(s),h=e+c,d=a+u,p=1^l,f=l?s-o:o-s;null===this._x1?this._append`M${h},${d}`:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-d)>1e-6)&&this._append`L${h},${d}`,i&&(f<0&&(f=f%r+r),f>n?this._append`A${i},${i},0,1,${p},${e-c},${a-u}A${i},${i},0,1,${p},${this._x1=h},${this._y1=d}`:f>1e-6&&this._append`A${i},${i},0,${+(f>=t)},${p},${this._x1=e+i*Math.cos(o)},${this._y1=a+i*Math.sin(o)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}i.prototype,e.s(["withPath",0,function(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{let e=Math.floor(r);if(!(e>=0))throw RangeError(`invalid digits: ${r}`);t=e}return e},()=>new i(t)}],199518)},358424,e=>{"use strict";var t=e.i(251934),r=e.i(459683),n=e.i(566635),a=e.i(199518);function i(e){return e[0]}function s(e){return e[1]}e.s(["line",0,function(e,o){var l=(0,r.default)(!0),c=null,u=n.default,h=null,d=(0,a.withPath)(p);function p(r){var n,a,i,s=(r=(0,t.default)(r)).length,p=!1;for(null==c&&(h=u(i=d())),n=0;n<=s;++n)!(n<s&&l(a=r[n],n,r))===p&&((p=!p)?h.lineStart():h.lineEnd()),p&&h.point(+e(a,n,r),+o(a,n,r));if(i)return h=null,i+""||null}return e="function"==typeof e?e:void 0===e?i:(0,r.default)(e),o="function"==typeof o?o:void 0===o?s:(0,r.default)(o),p.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.default)(+t),p):e},p.y=function(e){return arguments.length?(o="function"==typeof e?e:(0,r.default)(+e),p):o},p.defined=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.default)(!!e),p):l},p.curve=function(e){return arguments.length?(u=e,null!=c&&(h=u(c)),p):u},p.context=function(e){return arguments.length?(null==e?c=h=null:h=u(c=e),p):c},p}],358424)},481282,731316,657587,385745,e=>{"use strict";var t=e.i(127677),r=(0,e.i(995292).default)(Object.keys,Object),n=Object.prototype.hasOwnProperty;let a=function(e){if(!(0,t.default)(e))return r(e);var a=[];for(var i in Object(e))n.call(e,i)&&"constructor"!=i&&a.push(i);return a};e.s(["default",0,a],731316);
5var i=e.i(130636),s=e.i(659173),o=(0,i.default)(s.default,"DataView"),l=e.i(121200),c=(0,i.default)(s.default,"Promise"),u=(0,i.default)(s.default,"Set");e.s(["default",0,u],657587);var h=(0,i.default)(s.default,"WeakMap"),d=e.i(706462),p=e.i(882148),f="[object Map]",m="[object Promise]",g="[object Set]",y="[object WeakMap]",x="[object DataView]",b=(0,p.default)(o),k=(0,p.default)(l.default),w=(0,p.default)(c),v=(0,p.default)(u),_=(0,p.default)(h),S=d.default;(o&&S(new o(new ArrayBuffer(1)))!=x||l.default&&S(new l.default)!=f||c&&S(c.resolve())!=m||u&&S(new u)!=g||h&&S(new h)!=y)&&(S=function(e){var t=(0,d.default)(e),r="[object Object]"==t?e.constructor:void 0,n=r?(0,p.default)(r):"";if(n)switch(n){case b:return x;case k:return f;case w:return m;case v:return g;case _:return y}return t});let j=S;e.s(["default",0,j],385745);var T=e.i(530194),$=e.i(764843),E=e.i(750244),M=e.i(330772),L=e.i(400745),N=Object.prototype.hasOwnProperty;e.s(["default",0,function(e){if(null==e)return!0;if((0,E.default)(e)&&((0,$.default)(e)||"string"==typeof e||"function"==typeof e.splice||(0,M.default)(e)||(0,L.default)(e)||(0,T.default)(e)))return!e.length;var r=j(e);if("[object Map]"==r||"[object Set]"==r)return!e.size;if((0,t.default)(e))return!a(e).length;for(var n in e)if(N.call(e,n))return!1;return!0}],481282)},450166,e=>{"use strict";let t=(0,e.i(758277).default)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeftIcon",0,t],450166)},872854,e=>{"use strict";let t=(0,e.i(758277).default)("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);e.s(["BookOpenIcon",0,t],872854)},264711,e=>{"use strict";let t=(0,e.i(758277).default)("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);e.s(["BookmarkIcon",0,t],264711)},347174,e=>{"use strict";let t=(0,e.i(758277).default)("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);e.s(["BrainIcon",0,t],347174)},703056,e=>{"use strict";let t=(0,e.i(758277).default)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeftIcon",0,t],703056)},616285,e=>{"use strict";let t=(0,e.i(758277).default)("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);e.s(["default",0,t])},950483,e=>{"use strict";let t=(0,e.i(758277).default)("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["default",0,t])},445571,e=>{"use strict";var t=e.i(950483);e.s(["CompassIcon",()=>t.default])},192556,532545,e=>{"use strict";let t=(0,e.i(758277).default)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);e.s(["default",0,t],532545),e.s(["DownloadIcon",0,t],192556)},523120,e=>{"use strict";let t=(0,e.i(758277).default)("HardDriveDownload",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]]);e.s(["HardDriveDownloadIcon",0,t],523120)},188556,e=>{"use strict";
5let t=(0,e.i(758277).default)("ListOrdered",[["line",{x1:"10",x2:"21",y1:"6",y2:"6",key:"76qw6h"}],["line",{x1:"10",x2:"21",y1:"12",y2:"12",key:"16nom4"}],["line",{x1:"10",x2:"21",y1:"18",y2:"18",key:"u3jurt"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);e.s(["ListOrderedIcon",0,t],188556)},549334,e=>{"use strict";let t=(0,e.i(758277).default)("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);e.s(["ListTodoIcon",0,t],549334)},23665,e=>{"use strict";let t=(0,e.i(758277).default)("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);e.s(["default",0,t])},873749,e=>{"use strict";var t=e.i(23665);e.s(["MapIcon",()=>t.default])},503318,e=>{"use strict";let t=(0,e.i(758277).default)("MessageSquareQuote",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M8 12a2 2 0 0 0 2-2V8H8",key:"1jfesj"}],["path",{d:"M14 12a2 2 0 0 0 2-2V8h-2",key:"1dq9mh"}]]);e.s(["default",0,t])},727598,e=>{"use strict";var t=e.i(503318);e.s(["MessageSquareQuoteIcon",()=>t.default])},160029,e=>{"use strict";let t=(0,e.i(758277).default)("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);e.s(["default",0,t])},524513,e=>{"use strict";var t=e.i(160029);e.s(["PaletteIcon",()=>t.default])},501122,e=>{"use strict";let t=(0,e.i(758277).default)("PanelRightOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]]);e.s(["PanelRightOpenIcon",0,t],501122)},902194,e=>{"use strict";let t=(0,e.i(758277).default)("PenTool",[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]);e.s(["PenToolIcon",0,t],902194)},598610,e=>{"use strict";let t=(0,e.i(758277).default)("PencilLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]]);e.s(["PencilLineIcon",0,t],598610)},147237,e=>{"use strict";let t=(0,e.i(758277).default)("Plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]);e.s(["PlaneIcon",0,t],147237)},354921,e=>{"use strict";let t=(0,e.i(758277).default)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);e.s(["PlayIcon",0,t],354921)},895494,e=>{"use strict";let t=(0,e.i(758277).default)("Presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]);e.s(["default",0,t])},806730,e=>{"use strict";var t=e.i(895494);e.s(["PresentationIcon",()=>t.default])},810194,e=>{"use strict";
5let t=(0,e.i(758277).default)("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);e.s(["default",0,t])},951397,e=>{"use strict";var t=e.i(810194);e.s(["ScaleIcon",()=>t.default])},635284,e=>{"use strict";let t=(0,e.i(758277).default)("Shapes",[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]]);e.s(["ShapesIcon",0,t],635284)},710540,e=>{"use strict";let t=(0,e.i(758277).default)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]);e.s(["SheetIcon",0,t],710540)},244245,e=>{"use strict";let t=(0,e.i(758277).default)("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);e.s(["StarIcon",0,t],244245)},36337,e=>{"use strict";let t=(0,e.i(758277).default)("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);e.s(["TableIcon",0,t],36337)},999357,e=>{"use strict";let t=(0,e.i(758277).default)("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);e.s(["ThumbsDownIcon",0,t],999357)},283911,e=>{"use strict";let t=(0,e.i(758277).default)("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);e.s(["ThumbsUpIcon",0,t],283911)},222817,e=>{"use strict";let t=(0,e.i(758277).default)("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);e.s(["TrendingDownIcon",0,t],222817)},628069,e=>{"use strict";let t=(0,e.i(758277).default)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);e.s(["TrendingUpIcon",0,t],628069)},134075,e=>{"use strict";let t=(0,e.i(758277).default)("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);e.s(["Volume2Icon",0,t],134075)},201835,e=>{"use strict";let t=(0,e.i(758277).default)("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);e.s(["default",0,t])},952881,e=>{"use strict";var t=e.i(201835);e.s(["WrenchIcon",()=>t.default])},363900,e=>{"use strict";function t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var r=t(),n={exec:()=>null};function a(e){let t=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=t[n];return a||(a=e(n),t[n]=a),a}}function i(e,t=""){let r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let a="string"==typeof t?t:t.source;return a=a.replace(o.caret,"$1"),r=r.replace(e,a),n},getRegex:()=>new RegExp(r,t)};return n}var s=((e="")=>{try{return!!RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),o={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine
vendor: 4,163 bytes, line 5
5:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:a(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`)),hrRegex:a(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:a(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:a(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:a(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:a(e=>RegExp(`^ {0,${e}}>`))},l=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,c=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,u=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,h=i(u).replace(/bull/g,c).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),d=i(u).replace(/bull/g,c).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),p=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,f=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,m=i(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",f).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),g=i(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,c).getRegex(),y="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",x=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,b=i("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n+|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n+|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n+|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",x).replace("tag",y).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),k=e=>i(p).replace("hr",l).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),w=k(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),v=k(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/),_={blockquote:i(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",v).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:m,fences:/^ {0,3}(`{3,}
vendor: 9,393 bytes, lines 5-18
5(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:l,html:b,lheading:h,list:g,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:w,table:n,text:/^[^\n]+/},S=i("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",l).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),j={..._,lheading:d,table:S,paragraph:i(p).replace("hr",l).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",S).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex()},T={..._,html:i("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",x).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:n,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:i(p).replace("hr",l).replace("heading",` *#{1,6} *[^
6]`).replace("lheading",h).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},$=/^( {2,}|\\)\n(?!\s*$)/,E=/[\p{P}\p{S}]/u,M=/[\s\p{P}\p{S}]/u,L=/[^\s\p{P}\p{S}]/u,N=i(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,M).getRegex(),C=/(?!~)[\p{P}\p{S}]/u,I=i(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",s?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),A=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,P=i(A,"u").replace(/punct/g,E).getRegex(),R=i(A,"u").replace(/punct/g,C).getRegex(),z="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",O=i(z,"gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,M).replace(/punct/g,E).getRegex(),B=i(z,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,C).getRegex(),D=i("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,M).replace(/punct/g,E).getRegex(),H=i(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,E).getRegex(),U=i("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,M).replace(/punct/g,E).getRegex(),W=i(/\\(punct)/,"gu").replace(/punct/g,E).getRegex(),q=i(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),F=i(x).replace("(?:-->|$)","-->").getRegex(),Z=i("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",F).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Y=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,J=i(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Y).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),G=i(/^!?\[(label)\]\[(ref)\]/).replace("label",Y).replace("ref",f).getRegex(),X=i(/^!?\[(ref)\](?:\[\])?/).replace("ref",f).getRegex(),Q=i("reflink|nolink(?!\\()","g").replace("reflink",G).replace("nolink",X).getRegex(),V=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,K={_backpedal:n,anyPunctuation:W,autolink:q,blockSkip:I,br:$,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:n,delLDelim:n,delRDelim:n,emStrongLDelim:P,emStrongRDelimAst:O,emStrongRDelimUnd:D,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:J,nolink:X,punctuation:N,reflink:G,reflinkSearch:Q,tag:Z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:n},ee={...K,link:i(/^!?\[(label)\]\((.*?)\)/).replace("label",Y).getRegex(),reflink:i(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Y).getRegex()},et={...K,emStrongRDelimAst:B,emStrongLDelim:R,delLDelim:H,delRDelim:U,url:i(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",V).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:i(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",V).getRegex()},er={...et,br:i($).replace("{2,}","*").getRegex(),text:i(et.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},en={normal:_,gfm:j,pedantic:T},ea={normal:K,gfm:et,breaks:er,pedantic:ee},ei={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},es=e=>ei[e];function eo(e,t){if(t){if(o.escapeTest.test(e))return e.replace(o.escapeReplace,es)}else if(o.escapeTestNoEncode.test(e))return e.replace(o.escapeReplaceNoEncode,es);return e}function el(e){try{e=encodeURI(e).replace(o.percentDecode,"%")}catch{return null}return e}function ec(e,t){let r=e.replace(o.findPipe,(e,t,r)=>{let n=!1,a=t;for(;--a>=0&&"\\"===r[a];)n=!n;return n?"|":" |"}).split(o.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(o.slashPipe,"|");return r}function eu(e,t,r){let n=e.length;if(0===n)return"";let a=0;for(;a<n;){let i=e.charAt(n-a-1);if(i!==t||r)if(i!==t&&r)a++;else break;else a++}return e.slice(0,n-a)}function eh(e){let t=e.split(`
7`),r=t.length-1;for(;r>=0&&o.blankLine.test(t[r]);)r--;return t.length-r<=2?e:t.slice(0,r+1).join(`
8`)}function ed(e,t,r,n,a){let i=t.href,s=t.title||null,o=e[1].replace(a.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:i,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}var ep=class{options;rules;lexer;constructor(e){this.options=e||r}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:eh(t[0]),r=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:r}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(null===n)return t;let a=n[1];return t.split(`
9`).map(e=>{let t=e.match(r.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=a.length?e.slice(a.length):e}).join(`
10`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=eu(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:eu(t[0],`
11`),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:eu(t[0],`
12`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=eu(t[0],`
13`).split(`
14`),r="",n="",a=[];for(;e.length>0;){let t=!1,i=[],s;for(s=0;s<e.length;s++)if(this.rules.other.blockquoteStart.test(e[s]))i.push(e[s]),t=!0;else if(t)break;else i.push(e[s]);e=e.slice(s);let o=i.join(`
15`),l=o.replace(this.rules.other.blockquoteSetextReplace,`
16    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
17${o}`:o,n=n?`${n}
18${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,a,!0),this.lexer.state.top=c,
180===e.length)break;let u=a.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let t=u.raw+`
19`+e.join(`
20`),i=this.blockquote(t);a[a.length-1]=i,r=r.substring(0,r.length-u.raw.length)+i.raw,n=n.substring(0,n.length-u.text.length)+i.text;break}if(u?.type==="list"){let t=u.raw+`
21`+e.join(`
22`),i=this.list(t);a[a.length-1]=i,r=r.substring(0,r.length-u.raw.length)+i.raw,n=n.substring(0,n.length-u.raw.length)+i.raw,e=t.substring(a.at(-1).raw.length).split(`
23`);continue}}return{type:"blockquote",raw:r,tokens:a,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,a={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let i=this.rules.other.listItemRegex(r),s=!1;for(;e;){let r=!1,n="",o="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let l=function(e,t=0){let r=t,n="";for(let t of e)if("	"===t){let e=4-r%4;n+=" ".repeat(e),r+=e}else n+=t,r++;return n}(t[2].split(`
24`,1)[0],t[1].length),c=e.split(`
25`,1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,o=l.trimStart()):u?h=t[1].length+1:(h=(h=l.search(this.rules.other.nonSpaceChar))>4?1:h,o=l.slice(h),h+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(n+=c+`
26`,e=e.substring(c.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(h),r=this.rules.other.hrRegex(h),a=this.rules.other.fencesBeginRegex(h),i=this.rules.other.headingBeginRegex(h),s=this.rules.other.htmlBeginRegex(h),d=this.rules.other.blockquoteBeginRegex(h);for(;e;){let p=e.split(`
27`,1)[0],f;if(c=p,f=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting,"  "):c.replace(this.rules.other.tabCharGlobal,"    "),a.test(c)||i.test(c)||s.test(c)||d.test(c)||t.test(c)||r.test(c))break;if(f.search(this.rules.other.nonSpaceChar)>=h||!c.trim())o+=`
28`+f.slice(h);else{if(u||l.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||a.test(l)||i.test(l)||r.test(l))break;o+=`
29`+c}u=!c.trim(),n+=p+`
30`,e=e.substring(p.length+1),l=f.slice(h)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(s=!0)),a.items.push({type:"list_item",raw:n,task:!!this.options.gfm&&this.rules.other.listIsTask.test(o),loose:!1,text:o,tokens:[]}),a.raw+=n}let o=a.items.at(-1);if(!o)return;for(let e of(o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),a.raw=a.raw.trimEnd(),a.items)){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(e.task&&(t?.type==="text"||t?.type==="paragraph")){e.text=e.text.replace(this.rules.other.listReplaceTask,""),t.raw=t.raw.replace(this.rules.other.listReplaceTask,""),t.text=t.text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}let r=this.rules.other.listTaskCheckbox.exec(e.raw);if(r){let t={type:"checkbox",raw:r[0]+" ",checked:"[ ]"!==r[0]};e.checked=t.checked,a.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:"paragraph",raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&(e.task=!1);if(!a.loose){let t=e.tokens.filter(e=>"space"===e.type);a.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(a.loose)for(let e of a.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return a}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=eh(t[0]);return{type:"html",block:!0,raw:e,pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:eu(t[0],`
31`),href:r,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=ec(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
32`):[],i={type:"table",raw:eu(t[0],`
33`),header:[],align:[],rows:[]};if(r.length===n.length){for(let e of n)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<r.length;e++)i.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:i.align[e]});for(let e of a)i.rows.push(ec(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:eu(t[0],`
34`),depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
35`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=eu(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])t++;else if(")"===e[r]&&--t<0)return r;return t>0?-2:-1}(t[2]);if(-2===e)return;if(e>-1){let r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?r.slice(1):r.slice(1,-1)),ed(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return ed(r,e,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!r||this.rules.inline.punctuation.exec(r))){let r=[...n[0]].length-1,a,i,s=r,o=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+r);null!==(n=l.exec(t));){if(!(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6]))continue;if(i=[...a].length,n[3]||n[4]){s+=i;continue}if((n[5]||n[6])&&r%3&&!((r+i)%3)){o+=i;continue}if((s-=i)>0)continue;i=Math.min(i,i+s+o);let t=[...n[0]][0].length,l=e.slice(0,r+n.index+t+i);if(Math.min(r,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return r&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,r=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let r=[...n[0]].length-1,a,i,s=r,o=this.rules.inline.delRDelim;for(o.lastIndex=0,t=t.slice(-1*e.length+r);null!==(n=o.exec(t));){if(!(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])||(i=[...a].length)!==r)continue;if(n[3]||n[4]){s+=i;continue}if((s-=i)>0)continue;i=Math.min(i,i+s);let t=[...n[0]][0].length,o=e.slice(0,r+n.index+t+i),l=o.slice(r,-r);return{type:"del",raw:o,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,r;return r="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,r;if("@"===t[2])r="mailto:"+(e=t[0]);else{let n;do n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(n!==t[0])e=t[0],r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},ef=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||r,this.options.tokenizer=this.options.tokenizer||new ep,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:o,block:en.normal,inline:ea.normal};this.options.pedantic?(t.block=en.pedantic,t.inline=ea.pedantic):this.options.gfm&&(t.block=en.gfm,this.options.breaks?t.inline=ea.breaks:t.inline=ea.gfm),this.tokenizer.rules=t}static get rules(){return{block:en,inline:ea}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(e){e=e.replace(o.carriageReturn,`
36`),this.blockTokens(e,this.tokens);for(let e=0;
36e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(o.tabCharGlobal,"    ").replace(o.spaceLine,""));let n=1/0;for(;e;){let a;if(e.length<n)n=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}if(this.options.extensions?.block?.some(r=>!!(a=r.call({lexer:this},e,t))&&(e=e.substring(a.raw.length),t.push(a),!0)))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);let r=t.at(-1);1===a.raw.length&&void 0!==r?r.raw+=`
37`:t.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);let r=t.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
38`)?"":`
39`)+a.raw,r.text+=`
40`+a.text,this.inlineQueue.at(-1).src=r.text):t.push(a);continue}if((a=this.tokenizer.fences(e))||(a=this.tokenizer.heading(e))||(a=this.tokenizer.hr(e))||(a=this.tokenizer.blockquote(e))||(a=this.tokenizer.list(e))||(a=this.tokenizer.html(e))){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length);let r=t.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
41`)?"":`
42`)+a.raw,r.text+=`
43`+a.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},t.push(a));continue}if((a=this.tokenizer.table(e))||(a=this.tokenizer.lheading(e))){e=e.substring(a.raw.length),t.push(a);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,r=e.slice(1),n;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(a=this.tokenizer.paragraph(i))){let n=t.at(-1);r&&n?.type==="paragraph"?(n.raw+=(n.raw.endsWith(`
44`)?"":`
45`)+a.raw,n.text+=`
46`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(a),r=i.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length);let r=t.at(-1);r?.type==="text"?(r.raw+=(r.raw.endsWith(`
47`)?"":`
48`)+a.raw,r.text+=`
49`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(a);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r;this.tokenizer.lexer=this;let n=e,a=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!==(a=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!==(a=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,a.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!==(a=this.tokenizer.rules.inline.blockSkip.exec(n));)r=a[2]?a[2].length:0,n=n.slice(0,a.index+r)+"["+"a".repeat(a[0].length-r-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let i=!1,s="",o=1/0;for(;e;){let r;if(e.length<o)o=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}if(i||(s=""),i=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if((r=this.tokenizer.escape(e))||(r=this.tokenizer.tag(e))||(r=this.tokenizer.link(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===r.type&&n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if((r=this.tokenizer.emStrong(e,n,s))||(r=this.tokenizer.codespan(e))||(r=this.tokenizer.br(e))||(r=this.tokenizer.del(e,n,s))||(r=this.tokenizer.autolink(e))||!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let a=e;if(this.options.extensions?.startInline){let t=1/0,r=e.slice(1),n;
vendor: 6,522 bytes, lines 49-67
49this.options.extensions.startInline.forEach(e=>{"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(a)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),i=!0;let n=t.at(-1);n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw Error(t)}},em=class{options;parser;constructor(e){this.options=e||r}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(o.notSpaceStart)?.[0],a=e.replace(o.endingNewline,"")+`
50`;return n?'<pre><code class="language-'+eo(n)+'">'+(r?a:eo(a,!0))+`</code></pre>
51`:"<pre><code>"+(r?a:eo(a,!0))+`</code></pre>
52`}blockquote({tokens:e}){return`<blockquote>
53${this.parser.parse(e)}</blockquote>
54`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
55`}hr(e){return`<hr>
56`}list(e){let t=e.ordered,r=e.start,n="";for(let t=0;t<e.items.length;t++){let r=e.items[t];n+=this.listitem(r)}let a=t?"ol":"ul";return"<"+a+(t&&1!==r?' start="'+r+'"':"")+`>
57`+n+"</"+a+`>
58`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
59`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
60`}table(e){let t="",r="";for(let t=0;t<e.header.length;t++)r+=this.tablecell(e.header[t]);t+=this.tablerow({text:r});let n="";for(let t=0;t<e.rows.length;t++){let a=e.rows[t];r="";for(let e=0;e<a.length;e++)r+=this.tablecell(a[e]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
61<thead>
62`+t+`</thead>
63`+n+`</table>
64`}tablerow({text:e}){return`<tr>
65${e}</tr>
66`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
67`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${eo(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),a=el(e);if(null===a)return n;let i='<a href="'+(e=a)+'"';return t&&(i+=' title="'+eo(t)+'"'),i+=">"+n+"</a>"}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let a=el(e);if(null===a)return eo(r);e=a;let i=`<img src="${e}" alt="${eo(r)}"`;return t&&(i+=` title="${eo(t)}"`),i+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:eo(e.text)}},eg=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ey=class e{options;renderer;textRenderer;constructor(e){this.options=e||r,this.options.renderer=this.options.renderer||new em,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new eg}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let r=0;r<e.length;r++){let n=e[r];if(this.options.extensions?.renderers?.[n.type]){let e=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(n.type)){t+=e||"";continue}}switch(n.type){case"space":t+=this.renderer.space(n);break;case"hr":t+=this.renderer.hr(n);break;case"heading":t+=this.renderer.heading(n);break;case"code":t+=this.renderer.code(n);break;case"table":t+=this.renderer.table(n);break;case"blockquote":t+=this.renderer.blockquote(n);break;case"list":t+=this.renderer.list(n);break;case"checkbox":t+=this.renderer.checkbox(n);break;case"html":t+=this.renderer.html(n);break;case"def":t+=this.renderer.def(n);break;case"paragraph":t+=this.renderer.paragraph(n);break;case"text":t+=this.renderer.text(n);break;default:{let e='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let r="";for(let n=0;n<e.length;n++){let a=e[n];if(this.options.extensions?.renderers?.[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=e||"";continue}}switch(a.type){case"escape":case"text":r+=t.text(a);break;case"html":r+=t.html(a);break;case"link":r+=t.link(a);break;case"image":r+=t.image(a);break;case"checkbox":r+=t.checkbox(a);break;case"strong":r+=t.strong(a);break;case"em":r+=t.em(a);break;case"codespan":r+=t.codespan(a);break;case"br":r+=t.br(a);break;case"del":r+=t.del(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return r}},ex=class{options;block;constructor(e){this.options=e||r}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?ef.lex:ef.lexInline}provideParser(e=this.block){return e?ey.parse:ey.parseInline}},eb=new class{defaults=t();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ey;Renderer=em;TextRenderer=eg;Lexer=ef;Tokenizer=ep;Hooks=ex;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":for(let e of n.header)r=r.concat(this.walkTokens(e.tokens,t));for(let e of n.rows)for(let n of e)r=r.concat(this.walkTokens(n.tokens,t));break;case"list":r=r.concat(this.walkTokens(n.items,t));break;default:{let e=n;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(n=>{let a=e[n].flat(1/0);r=r.concat(this.walkTokens(a,t))}):e.tokens&&(r=r.concat(this.walkTokens(e.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};
67return e.forEach(e=>{let r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let r=t.renderers[e.name];r?t.renderers[e.name]=function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),r.extensions=t),e.renderer){let t=this.defaults.renderer||new em(this.defaults);for(let r in e.renderer){if(!(r in t))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=e.renderer[r],a=t[r];t[r]=(...e)=>{let r=n.apply(t,e);return!1===r&&(r=a.apply(t,e)),r||""}}r.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ep(this.defaults);for(let r in e.tokenizer){if(!(r in t))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let r=n.apply(t,e);return!1===r&&(r=a.apply(t,e)),r}}r.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new ex;for(let r in e.hooks){if(!(r in t))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=e.hooks[r],a=t[r];ex.passThroughHooks.has(r)?t[r]=e=>{if(this.defaults.async&&ex.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await n.call(t,e);return a.call(t,r)})();let i=n.call(t,e);return a.call(t,i)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let r=await n.apply(t,e);return!1===r&&(r=await a.apply(t,e)),r})();let r=n.apply(t,e);return!1===r&&(r=a.apply(t,e)),r}}r.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;r.walkTokens=function(e){let r=[];return r.push(n.call(this,e)),t&&(r=r.concat(t.call(this,e))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ef.lex(e,t??this.defaults)}parser(e,t){return ey.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},a={...this.defaults,...n},i=this.onError(!!a.silent,!!a.async);if(!0===this.defaults.async&&!1===n.async)return i(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return i(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let r=a.hooks?await a.hooks.preprocess(t):t,n=await (a.hooks?await a.hooks.provideLexer(e):e?ef.lex:ef.lexInline)(r,a),i=a.hooks?await a.hooks.processAllTokens(n):n;a.walkTokens&&await Promise.all(this.walkTokens(i,a.walkTokens));let s=await (a.hooks?await a.hooks.provideParser(e):e?ey.parse:ey.parseInline)(i,a);return a.hooks?await a.hooks.postprocess(s):s})().catch(i);try{a.hooks&&(t=a.hooks.preprocess(t));let r=(a.hooks?a.hooks.provideLexer(e):e?ef.lex:ef.lexInline)(t,a);a.hooks&&(r=a.hooks.processAllTokens(r)),a.walkTokens&&this.walkTokens(r,a.walkTokens);let n=(a.hooks?a.hooks.provideParser(e):e?ey.parse:ey.parseInline)(r,a);return a.hooks&&(n=a.hooks.postprocess(n)),n}catch(e){return i(e)}}}onError(e,t){return r=>{if(r.message+=`
68Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+eo(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function ek(e,t){return eb.parse(e,t)}ek.options=ek.setOptions=function(e){return eb.setOptions(e),ek.defaults=eb.defaults,r=ek.defaults,ek},ek.getDefaults=t,ek.defaults=r,ek.use=function(...e){return eb.use(...e),ek.defaults=eb.defaults,r
68=ek.defaults,ek},ek.walkTokens=function(e,t){return eb.walkTokens(e,t)},ek.parseInline=eb.parseInline,ek.Parser=ey,ek.parser=ey.parse,ek.Renderer=em,ek.TextRenderer=eg,ek.Lexer=ef,ek.lexer=ef.lex,ek.Tokenizer=ep,ek.Hooks=ex,ek.parse=ek,ek.options,ek.setOptions,ek.use,ek.walkTokens,ek.parseInline,ey.parse,ef.lex,e.s(["marked",0,ek])},659654,e=>{"use strict";var t=e.i(139467),r=e.i(931195),n=(0,r.__name)(e=>{let{handDrawnSeed:r}=(0,t.getConfig2)();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:r}},"solidStateFill"),a=(0,r.__name)(e=>{let t=i([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),i=(0,r.__name)(e=>{let t=new Map;return e.forEach(e=>{let[r,n]=e.split(":");t.set(r.trim(),n?.trim())}),t},"styles2Map"),s=(0,r.__name)(e=>"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e,"isLabelStyle"),o=(0,r.__name)(e=>{let{stylesArray:t}=a(e),r=[],n=[],i=[],o=[];return t.forEach(e=>{let t=e[0];s(t)?r.push(e.join(":")+" !important"):(n.push(e.join(":")+" !important"),t.includes("stroke")&&i.push(e.join(":")+" !important"),"fill"===t&&o.push(e.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:o}},"styles2String"),l=(0,r.__name)((e,r)=>{let{themeVariables:n,handDrawnSeed:i}=(0,t.getConfig2)(),{nodeBorder:s,mainBkg:o}=n,{stylesMap:l}=a(e);return Object.assign({roughness:.7,fill:l.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||s,seed:i,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:c(l.get("stroke-dasharray"))},r)},"userNodeOverrides"),c=(0,r.__name)(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(1===t.length){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},"getStrokeDashArray");e.s(["compileStyles",0,a,"isLabelStyle",0,s,"solidStateFill",0,n,"styles2String",0,o,"userNodeOverrides",0,l])},544522,e=>{"use strict";var t=(0,e.i(931195).__name)(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,r=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:t+r}},"getSubGraphTitleMargins");e.s(["getSubGraphTitleMargins",0,t])},93377,e=>{"use strict";e.s(["package_default",0,{name:"mermaid",version:"11.12.3",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.23",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}])},257518,e=>{"use strict";var t=e.i(139467),r=e.i(931195);e.i(991577);var n=e.i(692423),a=(0,r.__name)(e=>{let{securityLevel:r}=(0,t.getConfig2)(),a=(0,n.select)("body");if("sandbox"===r){let t=(0,n.select)(`#i${e}`),r=t.node()?.contentDocument??document;a=(0,n.select)(r.body)}return a.select(`#${e}`)},"selectSvgElement");
68e.s(["selectSvgElement",0,a])},21463,e=>{"use strict";var t=e.i(931195),r={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4};function n(e,t){if(void 0===e||void 0===t)return{angle:0,deltaX:0,deltaY:0};e=a(e),t=a(t);let[r,n]=[e.x,e.y],[i,s]=[t.x,t.y],o=i-r,l=s-n;return{angle:Math.atan(l/o),deltaX:o,deltaY:l}}(0,t.__name)(n,"calculateDeltaAndAngle");var a=(0,t.__name)(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),i=(0,t.__name)(e=>({x:(0,t.__name)(function(t,i,s){let o=0,l=a(s[0]).x<a(s[s.length-1]).x?"left":"right";if(0===i&&Object.hasOwn(r,e.arrowTypeStart)){let{angle:t,deltaX:a}=n(s[0],s[1]);o=r[e.arrowTypeStart]*Math.cos(t)*(a>=0?1:-1)}else if(i===s.length-1&&Object.hasOwn(r,e.arrowTypeEnd)){let{angle:t,deltaX:a}=n(s[s.length-1],s[s.length-2]);o=r[e.arrowTypeEnd]*Math.cos(t)*(a>=0?1:-1)}let c=Math.abs(a(t).x-a(s[s.length-1]).x),u=Math.abs(a(t).y-a(s[s.length-1]).y),h=Math.abs(a(t).x-a(s[0]).x),d=Math.abs(a(t).y-a(s[0]).y),p=r[e.arrowTypeStart],f=r[e.arrowTypeEnd];if(c<f&&c>0&&u<f){let e=f+1-c;e*="right"===l?-1:1,o-=e}if(h<p&&h>0&&d<p){let e=p+1-h;e*="right"===l?-1:1,o+=e}return a(t).x+o},"x"),y:(0,t.__name)(function(t,i,s){let o=0,l=a(s[0]).y<a(s[s.length-1]).y?"down":"up";if(0===i&&Object.hasOwn(r,e.arrowTypeStart)){let{angle:t,deltaY:a}=n(s[0],s[1]);o=r[e.arrowTypeStart]*Math.abs(Math.sin(t))*(a>=0?1:-1)}else if(i===s.length-1&&Object.hasOwn(r,e.arrowTypeEnd)){let{angle:t,deltaY:a}=n(s[s.length-1],s[s.length-2]);o=r[e.arrowTypeEnd]*Math.abs(Math.sin(t))*(a>=0?1:-1)}let c=Math.abs(a(t).y-a(s[s.length-1]).y),u=Math.abs(a(t).x-a(s[s.length-1]).x),h=Math.abs(a(t).y-a(s[0]).y),d=Math.abs(a(t).x-a(s[0]).x),p=r[e.arrowTypeStart],f=r[e.arrowTypeEnd];if(c<f&&c>0&&u<f){let e=f+1-c;e*="up"===l?-1:1,o-=e}if(h<p&&h>0&&d<p){let e=p+1-h;e*="up"===l?-1:1,o+=e}return a(t).y+o},"y")}),"getLineFunctionsWithOffset");e.s(["getLineFunctionsWithOffset",0,i,"markerOffsets",0,r,"markerOffsets2",0,{arrow_point:9,arrow_cross:12.5,arrow_circle:12.5}])},215258,e=>{"use strict";var t=e.i(109436),r=e.i(357631),n=e.i(900285),a=e.i(139467),i=e.i(931195),s={common:a.common_default,getConfig:a.getConfig,insertCluster:r.insertCluster,insertEdge:t.insertEdge,insertEdgeLabel:t.insertEdgeLabel,insertMarkers:t.markers_default,insertNode:r.insertNode,interpolateToCurve:n.interpolateToCurve,labelHelper:r.labelHelper,log:i.log,positionEdgeLabel:t.positionEdgeLabel},o={},l=(0,i.__name)(e=>{for(let t of e)o[t.name]=t},"registerLayoutLoaders");(0,i.__name)(()=>{l([{name:"dagre",loader:(0,i.__name)(async()=>await e.A(780112),"loader")},{name:"cose-bilkent",loader:(0,i.__name)(async()=>await e.A(197448),"loader")}])},"registerDefaultLayoutLoaders")();var c=(0,i.__name)(async(e,t)=>{if(!(e.layoutAlgorithm in o))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);let r=o[e.layoutAlgorithm];return(await r.loader()).render(e,t,s,{algorithm:r.algorithm})},"render"),u=(0,i.__name)((e="",{fallback:t="dagre"}={})=>{if(e in o)return e;if(t in o)return i.log.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm");e.s(["getRegisteredLayoutAlgorithm",0,u,"registerLayoutLoaders",0,l,"render",0,c])},109436,e=>{"use strict";var t=e.i(21463),r=e.i(357631),n=e.i(544522),a=e.i(659654),i=e.i(211351),s=e.i(900285),o=e.i(139467),l=e.i(931195);e.i(991577);var c=e.i(352195),u=e.i(460605),h=e.i(488446),d=e.i(219412),p=e.i(334236),f=e.i(187580),m=e.i(114605),g=e.i(211986),y=e.i(12669),x=e.i(373593),b=e.i(814826),k=e.i(472737),w=e.i(358424),v=e.i(692423),_=e.i(570126),S=(0,l.__name)((e,t,r,n,a,i)=>{t.arrowTypeStart&&T(e,"start",t.arrowTypeStart,r,n,a,i),t.arrowTypeEnd&&T(e,"end",t.arrowTypeEnd,r,n,a,i)},"addEdgeMarkers"),j={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1}
68,one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},T=(0,l.__name)((e,t,r,n,a,i,s)=>{let o=j[r];if(!o)return void l.log.warn(`Unknown arrow type: ${r}`);let c=o.type,u=`${a}_${i}-${c}${"start"===t?"Start":"End"}`;if(s&&""!==s.trim()){let r=s.replace(/[^\dA-Za-z]/g,"_"),a=`${u}_${r}`;if(!document.getElementById(a)){let e=document.getElementById(u);if(e){let t=e.cloneNode(!0);t.id=a,t.querySelectorAll("path, circle, line").forEach(e=>{e.setAttribute("stroke",s),o.fill&&e.setAttribute("fill",s)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${n}#${a})`)}else e.attr(`marker-${t}`,`url(${n}#${u})`)},"addEdgeMarker"),$=new Map,E=new Map,M=(0,l.__name)(()=>{$.clear(),E.clear()},"clear"),L=(0,l.__name)(e=>e?e.reduce((e,t)=>e+";"+t,""):"","getLabelStyles"),N=(0,l.__name)(async(e,t)=>{let n,s=(0,o.evaluate)((0,o.getConfig2)().flowchart.htmlLabels),{labelStyles:c}=(0,a.styles2String)(t);t.labelStyle=c;let u=await (0,i.createText)(e,t.label,{style:t.labelStyle,useHtmlLabels:s,addSvgBackground:!0,isNode:!1});l.log.info("abc82",t,t.labelType);let h=e.insert("g").attr("class","edgeLabel"),d=h.insert("g").attr("class","label").attr("data-id",t.id);d.node().appendChild(u);let p=u.getBBox();if(s){let e=u.children[0],t=(0,v.select)(u);p=e.getBoundingClientRect(),t.attr("width",p.width),t.attr("height",p.height)}if(d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),$.set(t.id,h),t.width=p.width,t.height=p.height,t.startLabelLeft){let a=await (0,r.createLabel_default)(t.startLabelLeft,L(t.labelStyle)),i=e.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner");n=s.node().appendChild(a);let o=a.getBBox();s.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),E.get(t.id)||E.set(t.id,{}),E.get(t.id).startLeft=i,C(n,t.startLabelLeft)}if(t.startLabelRight){let a=await (0,r.createLabel_default)(t.startLabelRight,L(t.labelStyle)),i=e.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner");n=i.node().appendChild(a),s.node().appendChild(a);let o=a.getBBox();s.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),E.get(t.id)||E.set(t.id,{}),E.get(t.id).startRight=i,C(n,t.startLabelRight)}if(t.endLabelLeft){let a=await (0,r.createLabel_default)(t.endLabelLeft,L(t.labelStyle)),i=e.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner");n=s.node().appendChild(a);let o=a.getBBox();s.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),i.node().appendChild(a),E.get(t.id)||E.set(t.id,{}),E.get(t.id).endLeft=i,C(n,t.endLabelLeft)}if(t.endLabelRight){let a=await (0,r.createLabel_default)(t.endLabelRight,L(t.labelStyle)),i=e.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner");n=s.node().appendChild(a);let o=a.getBBox();s.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),i.node().appendChild(a),E.get(t.id)||E.set(t.id,{}),E.get(t.id).endRight=i,C(n,t.endLabelRight)}return u},"insertEdgeLabel");function C(e,t){(0,o.getConfig2)().flowchart.htmlLabels&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}(0,l.__name)(C,"setTerminalWidth");var I=(0,l.__name)((e,t)=>{l.log.debug("Moving label abc88 ",e.id,e.label,$.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath,a=(0,o.getConfig2)(),{subGraphTitleTotalMargin:i}=(0,n.getSubGraphTitleMargins)(a);if(e.label){let n=$.get(e.id),a=e.x,o=e.y;if(r){let n=s.utils_default.calcLabelPosition(r);l.log.debug("Moving label "+e.label+" from (",a,",",o,") to (",n.x,",",n.y,") abc88"),t.updatedPath&&(a=n.x,o=n.y)}n.attr("transform",`translate(${a}, ${o+i/2})`)}if(e.startLabelLeft){let t=E.get(e.id).startLeft,n=e.x,a=e.y;if(r){let t=s.utils_default.calcTerminalLabelPosition(10*!!e.arrowTypeStart,"start_left",r);n=t.x,a=t.y}t.attr("transform",`translate(${n}, ${a})`)}if(e.startLabelRight){let t=E.get(e.id).startRight,n=e.x,a=e.y;if(r){let t=s.utils_default.calcTerminalLabelPosition(10*!!e.arrowTypeStart,"start_right",r);n=t.x,a=t.y}t.attr("transform",`translate(${n}, ${a})`)}
68if(e.endLabelLeft){let t=E.get(e.id).endLeft,n=e.x,a=e.y;if(r){let t=s.utils_default.calcTerminalLabelPosition(10*!!e.arrowTypeEnd,"end_left",r);n=t.x,a=t.y}t.attr("transform",`translate(${n}, ${a})`)}if(e.endLabelRight){let t=E.get(e.id).endRight,n=e.x,a=e.y;if(r){let t=s.utils_default.calcTerminalLabelPosition(10*!!e.arrowTypeEnd,"end_right",r);n=t.x,a=t.y}t.attr("transform",`translate(${n}, ${a})`)}},"positionEdgeLabel"),A=(0,l.__name)((e,t)=>{let r=e.x,n=e.y,a=Math.abs(t.x-r),i=Math.abs(t.y-n),s=e.width/2,o=e.height/2;return a>=s||i>=o},"outsideNode"),P=(0,l.__name)((e,t,r)=>{l.log.debug(`intersection calc abc89:
69  outsidePoint: ${JSON.stringify(t)}
70  insidePoint : ${JSON.stringify(r)}
71  node        : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let n=e.x,a=e.y,i=Math.abs(n-r.x),s=e.width/2,o=r.x<t.x?s-i:s+i,c=e.height/2,u=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(a-t.y)*s>Math.abs(n-t.x)*c){let e=r.y<t.y?t.y-c-a:a-c-t.y;o=h*e/u;let n={x:r.x<t.x?r.x+o:r.x-h+o,y:r.y<t.y?r.y+u-e:r.y-u+e};return 0===o&&(n.x=t.x,n.y=t.y),0===h&&(n.x=t.x),0===u&&(n.y=t.y),l.log.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${h}, r ${o}`,n),n}{let e=u*(o=r.x<t.x?t.x-s-n:n-s-t.x)/h,a=r.x<t.x?r.x+h-o:r.x-h+o,i=r.y<t.y?r.y+e:r.y-e;return l.log.debug(`sides calc abc89, Q ${u}, q ${e}, R ${h}, r ${o}`,{_x:a,_y:i}),0===o&&(a=t.x,i=t.y),0===h&&(a=t.x),0===u&&(i=t.y),{x:a,y:i}}},"intersection"),R=(0,l.__name)((e,t)=>{l.log.warn("abc88 cutPathAtIntersect",e,t);let r=[],n=e[0],a=!1;return e.forEach(e=>{if(l.log.info("abc88 checking point",e,t),A(t,e)||a)l.log.warn("abc88 outside",e,n),n=e,a||r.push(e);else{let i=P(t,n,e);l.log.debug("abc88 inside",e,n,i),l.log.debug("abc88 intersection",i,t);let s=!1;r.forEach(e=>{s=s||e.x===i.x&&e.y===i.y}),r.some(e=>e.x===i.x&&e.y===i.y)?l.log.warn("abc88 no intersect",i,r):r.push(i),a=!0}}),l.log.debug("returning points",r),r},"cutPathAtIntersect");function z(e){let t=[],r=[];for(let n=1;n<e.length-1;n++){let a=e[n-1],i=e[n],s=e[n+1];a.x===i.x&&i.y===s.y&&Math.abs(i.x-s.x)>5&&Math.abs(i.y-a.y)>5?(t.push(i),r.push(n)):a.y===i.y&&i.x===s.x&&Math.abs(i.x-a.x)>5&&Math.abs(i.y-s.y)>5&&(t.push(i),r.push(n))}return{cornerPoints:t,cornerPointPositions:r}}(0,l.__name)(z,"extractCornerPoints");var O=(0,l.__name)(function(e,t,r){let n=t.x-e.x,a=t.y-e.y,i=r/Math.sqrt(n*n+a*a);return{x:t.x-i*n,y:t.y-i*a}},"findAdjacentPoint"),B=(0,l.__name)(function(e){let{cornerPointPositions:t}=z(e),r=[];for(let n=0;n<e.length;n++)if(t.includes(n)){let t=e[n-1],a=e[n+1],i=e[n],s=O(t,i,5),o=O(a,i,5),c=o.x-s.x,u=o.y-s.y;r.push(s);let h=2*Math.sqrt(2),d={x:i.x,y:i.y};Math.abs(a.x-t.x)>10&&Math.abs(a.y-t.y)>=10?(l.log.debug("Corner point fixing",Math.abs(a.x-t.x),Math.abs(a.y-t.y)),d=i.x===s.x?{x:c<0?s.x-5+h:s.x+5-h,y:u<0?s.y-h:s.y+h}:{x:c<0?s.x-h:s.x+h,y:u<0?s.y-5+h:s.y+5-h}):l.log.debug("Corner point skipping fixing",Math.abs(a.x-t.x),Math.abs(a.y-t.y)),r.push(d,o)}else r.push(e[n]);return r},"fixCorners"),D=(0,l.__name)((e,t,r)=>{let n=Array(Math.floor((e-t-r)/4)).fill("2 2").join(" ");return`0 ${t} ${n} ${r}`},"generateDashArray"),H=(0,l.__name)(function(e,r,n,i,j,T,$,E=!1){let M,L,{handDrawnSeed:N}=(0,o.getConfig2)(),C=r.points,I=!1,A=[];for(let e in r.cssCompiledStyles)(0,a.isLabelStyle)(e)||A.push(r.cssCompiledStyles[e]);l.log.debug("UIO intersect check",r.points,T.x,j.x),T.intersect&&j.intersect&&!E&&((C=C.slice(1,r.points.length-1)).unshift(j.intersect(C[0])),l.log.debug("Last point UIO",r.start,"-->",r.end,C[C.length-1],T,T.intersect(C[C.length-1])),C.push(T.intersect(C[C.length-1])));let P=btoa(JSON.stringify(C));r.toCluster&&(l.log.info("to cluster abc88",n.get(r.toCluster)),C=R(r.points,n.get(r.toCluster).node),I=!0),r.fromCluster&&(l.log.debug("from cluster abc88",n.get(r.fromCluster),JSON.stringify(C,null,2)),C=R(C.reverse(),n.get(r.fromCluster).node).reverse(),I=!0);let z=C.filter(e=>!Number.isNaN(e.y));z=B(z);let O=c.curveBasis;switch(O=u.curveLinear,r.curve){case"linear":O=u.curveLinear;break;case"basis":default:O=c.curveBasis;break;case"cardinal":O=h.curveCardinal;break;case"bumpX":O=d.curveBumpX;break;case"bumpY":O=p.curveBumpY;break;case"catmullRom":O=f.curveCatmullRom;break;case"monotoneX":O=m.curveMonotoneX;break;case"monotoneY":O=g.curveMonotoneY;break;case"natural":O=y.curveNatural;break;
71case"step":O=x.curveStep;break;case"stepAfter":O=b.curveStepAfter;break;case"stepBefore":O=k.curveStepBefore}let{x:H,y:W}=(0,t.getLineFunctionsWithOffset)(r),F=(0,w.line)().x(H).y(W).curve(O);switch(r.thickness){case"normal":default:M="edge-thickness-normal";break;case"thick":M="edge-thickness-thick";break;case"invisible":M="edge-thickness-invisible"}switch(r.pattern){case"solid":default:M+=" edge-pattern-solid";break;case"dotted":M+=" edge-pattern-dotted";break;case"dashed":M+=" edge-pattern-dashed"}let Z="rounded"===r.curve?U(q(z,r),5):F(z),Y=Array.isArray(r.style)?r.style:[r.style],J=Y.find(e=>e?.startsWith("stroke:")),G=!1;if("handDrawn"===r.look){let t=_.default.svg(e);Object.assign([],z);let n=t.path(Z,{roughness:.3,seed:N});M+=" transition";let a=(L=(0,v.select)(n).select("path").attr("id",r.id).attr("class"," "+M+(r.classes?" "+r.classes:"")).attr("style",Y?Y.reduce((e,t)=>e+";"+t,""):"")).attr("d");L.attr("d",a),e.node().appendChild(L.node())}else{let n=A.join(";"),a=Y?Y.reduce((e,t)=>e+t+";",""):"",i="";r.animate&&(i=" edge-animation-fast"),r.animation&&(i=" edge-animation-"+r.animation);let s=(n?n+";"+a+";":a)+";"+(Y?Y.reduce((e,t)=>e+";"+t,""):"");L=e.append("path").attr("d",Z).attr("id",r.id).attr("class"," "+M+(r.classes?" "+r.classes:"")+(i??"")).attr("style",s),J=s.match(/stroke:([^;]+)/)?.[1],G=!0===r.animate||!!r.animation||n.includes("animation");let o=L.node(),l="function"==typeof o.getTotalLength?o.getTotalLength():0,c=t.markerOffsets2[r.arrowTypeStart]||0,u=t.markerOffsets2[r.arrowTypeEnd]||0;if("neo"===r.look&&!G){let e="dotted"===r.pattern||"dashed"===r.pattern?D(l,c,u):`0 ${c} ${l-c-u} ${u}`,t=`stroke-dasharray: ${e}; stroke-dashoffset: 0;`;L.attr("style",t+L.attr("style"))}}L.attr("data-edge",!0),L.attr("data-et","edge"),L.attr("data-id",r.id),L.attr("data-points",P),r.showPoints&&z.forEach(t=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",t.x).attr("cy",t.y)});let X="";((0,o.getConfig2)().flowchart.arrowMarkerAbsolute||(0,o.getConfig2)().state.arrowMarkerAbsolute)&&(X=(X=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),l.log.info("arrowTypeStart",r.arrowTypeStart),l.log.info("arrowTypeEnd",r.arrowTypeEnd),S(L,r,X,$,i,J);let Q=Math.floor(C.length/2),V=C[Q];s.utils_default.isLabelCoordinateInPath(V,L.attr("d"))||(I=!0);let K={};return I&&(K.updatedPath=C),K.originalPath=r.points,K},"insertEdge");function U(e,t){if(e.length<2)return"";let r="",n=e.length;for(let a=0;a<n;a++){let i=e[a],s=e[a-1],o=e[a+1];if(0===a)r+=`M${i.x},${i.y}`;else if(a===n-1)r+=`L${i.x},${i.y}`;else{let e=i.x-s.x,n=i.y-s.y,a=o.x-i.x,l=o.y-i.y,c=Math.hypot(e,n),u=Math.hypot(a,l);if(c<1e-5||u<1e-5){r+=`L${i.x},${i.y}`;continue}let h=e/c,d=n/c,p=a/u,f=l/u,m=Math.acos(Math.max(-1,Math.min(1,h*p+d*f)));if(m<1e-5||1e-5>Math.abs(Math.PI-m)){r+=`L${i.x},${i.y}`;continue}let g=Math.min(t/Math.sin(m/2),c/2,u/2),y=i.x-h*g,x=i.y-d*g,b=i.x+p*g,k=i.y+f*g;r+=`L${y},${x}Q${i.x},${i.y} ${b},${k}`}}return r}function W(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let r=t.x-e.x,n=t.y-e.y;return{angle:Math.atan2(n,r),deltaX:r,deltaY:n}}function q(e,r){let n=e.map(e=>({...e}));if(e.length>=2&&t.markerOffsets[r.arrowTypeStart]){let a=t.markerOffsets[r.arrowTypeStart],i=e[0],{angle:s}=W(i,e[1]),o=a*Math.cos(s),l=a*Math.sin(s);n[0].x=i.x+o,n[0].y=i.y+l}let a=e.length;if(a>=2&&t.markerOffsets[r.arrowTypeEnd]){let i=t.markerOffsets[r.arrowTypeEnd],s=e[a-1],{angle:o}=W(e[a-2],s),l=i*Math.cos(o),c=i*Math.sin(o);n[a-1].x=s.x-l,n[a-1].y=s.y-c}return n}(0,l.__name)(U,"generateRoundedPath"),(0,l.__name)(W,"calculateDeltaAndAngle"),(0,l.__name)(q,"applyMarkerOffsetsToPoints");var F=(0,l.__name)((e,t,r,n)=>{t.forEach(t=>{ei[t](e,r,n)})},"insertMarkers"),Z=(0,l.__name)((e,t,r)=>{l.log.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),Y=(0,l.__name)((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),J=(0,l.__name)((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),G=(0,l.__name)((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),X=(0,l.__name)((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),Q=(0,l.__name)((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),V=(0,l.__name)((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),K=(0,l.__name)((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),ee=(0,l.__name)((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),et=(0,l.__name)((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),er=(0,l.__name)((e,t,r)=>{let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");let a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),a.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),en=(0,l.__name)((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),ea=(0,l.__name)((e,t,r)=>{let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),a.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),ei={extension:Z,composition:Y,aggregation:J,depen
71dency:G,lollipop:X,point:Q,circle:V,cross:K,barb:ee,only_one:et,zero_or_one:er,one_or_more:en,zero_or_more:ea,requirement_arrow:(0,l.__name)((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
72      L20,10
73      M20,10
74      L0,20`)},"requirement_arrow"),requirement_contains:(0,l.__name)((e,t,r)=>{let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains")};e.s(["clear",0,M,"insertEdge",0,H,"insertEdgeLabel",0,N,"markers_default",0,F,"positionEdgeLabel",0,I])},640227,(e,t,r)=>{var n={872:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=l(e),s=i[0],o=i[1],c=new a((s+o)*3/4-o),u=0,h=o>0?s-4:s;for(r=0;r<h;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===o&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===o&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,a=n%3,i=[],s=0,o=n-a;s<o;s+=16383)i.push(function(e,t,n){for(var a,i=[],s=t;s<n;s+=3)a=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(r[a>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return i.join("")}(e,s,s+16383>o?o:s+16383));return 1===a?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===a&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],a="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=i.length;s<o;++s)r[s]=i[s],n[i.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},230:function(e,t,r){"use strict";var n=r(872),a=r(321),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var n=e,a=t;if(("string"!=typeof a||""===a)&&(a="utf8"),!o.isEncoding(a))throw TypeError("Unknown encoding: "+a);var i=0|p(n,a),l=s(i),c=l.write(n,a);return c!==i&&(l=l.slice(0,c)),l}if(ArrayBuffer.isView(e))return h(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),o.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return o.from(u,t,r);var f=function(e){if(o.isBuffer(e)){var t=0|d(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(f)return f;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 16,509 bytes, line 74
74if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),s(e<0?0:0|d(e))}function h(e){for(var t=e.length<0?0:0|d(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!o.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(c(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},o.allocUnsafe=function(e){return u(e)},o.allocUnsafeSlow=function(e){return u(e)};function d(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(e).length;default:if(a)return n?-1:j(e).length;t=(""+t).toLowerCase(),a=!0}}function f(e,t,r){var a,i,s,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var a="",i=t;i<r;++i)a+=L[e[i]];return a}(this,t,r);case"utf8":case"utf-8":return x(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(127&e[a]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}(this,t,r);case"base64":return a=this,i=t,s=r,0===i&&s===a.length?n.fromByteArray(a):n.fromByteArray(a.slice(i,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),a="",i=0;i<n.length;i+=2)a+=String.fromCharCode(n[i]+256*n[i+1]);return a}(this,t,r);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,a){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(a)return -1;else r=e.length-1;else if(r<0)if(!a)return -1;else r=0;if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,a);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(a)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return y(e,[t],r,n,a)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,a){var i,s=1,o=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,o/=2,l/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(a){var u=-1;for(i=r;i<o;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*s}else -1!==u&&(i-=i-u),u=-1}else for(r+l>o&&(r=o-l),i=r;i>=0;i--){for(var h=!0,d=0;d<l;d++)if(c(e,i+d)!==c(t,d)){h=!1;break}if(h)return i}return -1}o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(M(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Math.min(r,n);a<i;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:+(n<r)},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=o.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var i=e[r];if(M(i,Uint8Array)&&(i=o.from(i)),!o.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,a),a+=i.length}return n},o.byteLength=p,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?x(this,0,e):f.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(o.prototype[i]=o.prototype.inspect),o.prototype.compare=function(e,t,r,n,a){if(M(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,a>>>=0,this===e)return 0;for(var i=a-n,s=r-t,l=Math.min(i,s),c=this.slice(n,a),u=e.slice(t,r),h=0;h<l;++h)if(c[h]!==u[h]){i=c[h],s=u[h];break}return i<s?-1:+(s<i)},o.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)};function x(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a<r;){var i,s,o,l,c=e[a],u=null,h=c>239?4:c>223?3:c>191?2:1;if(a+h<=r)switch(h){case 1:c<128&&(u=c);break;case 2:(192&(i=e[a+1]))==128&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[a+1],s=e[a+2],(192&i)==128&&(192&s)==128&&(l=(15&c)<<12|(63&i)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[a+1],s=e[a+2],o=e[a+3],(192&i)==128&&(192&s)==128&&(192&o)==128&&(l=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),a+=h}var d=n,p=d.length;if(p<=4096)return String.fromCharCode.apply(String,d);for(var f="",m=0;m<p;)f+=String.fromCharCode.apply(String,d.slice(m,m+=4096));return f}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function k(e,t,r,n,a,i){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function w(e,t,r,n,a,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function v(e,t,r,n,i){return t*=1,r>>>=0,i||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,r,n,23,4),r+4}function _(e,t,r,n,i){return t*=1,r>>>=0,i||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,r,n,52,8),r+8}o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a,i,s,o,l,c,u,h,d=this.length-t;if((void 0===r||r>d)&&(r=d),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;var i=t.length;n>i/2&&(n=i/2);for(var s=0;s<n;++s){var o,l=parseInt(t.substr(2*s,2),16);if((o=l)!=o)break;e[r+s]=l}return s}(this,e,t,r);case"utf8":case"utf-8":return a=t,i=r,E(j(e,this.length-a),this,a,i);case"ascii":return s=t,o=r,E(T(e),this,s,o);case"latin1":case"binary":return function(e,t,r,n){return E(T(t),e,r,n)}(this,e,t,r);case"base64":return l=t,c=r,E($(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,h=r,E(function(e,t){for(var r,n,a=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,a.push(r%256),a.push(n);return a}(e,this.length-u),this,u,h);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,o.prototype),n},o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],a=1,i=0;++i<t&&(a*=256);)n+=this[e+i]*a;return n},o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},o.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],a=1,i=0;++i<t&&(a*=256);)n+=this[e+i]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,a=1,i=this[e+--n];n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),a.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),a.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),a.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),a.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var a=Math.pow(2,8*r)-1;k(this,e,t,r,a,0)}var i=1,s=0;for(this[t]=255&e;++s<r&&(i*=256);)this[t+s]=e/i&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var a=Math.pow(2,8*r)-1;k(this,e,t,r,a,0)}var i=r-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var a=Math.pow(2,8*r-1);k(this,e,t,r,a-1,-a)}var i=0,s=1,o=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/s|0)-o&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var a=Math.pow(2,8*r-1);k(this,e,t,r,a-1,-a)}var i=r-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s|0)-o&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||k(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,r){return v(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return v(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return _(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return _(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var a=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var i=a-1;i>=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return a},o.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var a,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var s=o.isBuffer(e)?e:o.from(e,n),l=s.length;
74if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=s[a%l]}return this};var S=/[^+/0-9A-Za-z-_]/g;function j(e,t){t=t||1/0;for(var r,n=e.length,a=null,i=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!a){if(r>56319||s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function T(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function $(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function E(e,t,r,n){for(var a=0;a<n&&!(a+r>=t.length)&&!(a>=e.length);++a)t[a+r]=e[a];return a}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var L=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,a=0;a<16;++a)t[n+a]=e[r]+e[a];return t}()},321:function(e,t){t.read=function(e,t,r,n,a){var i,s,o=8*a-n-1,l=(1<<o)-1,c=l>>1,u=-7,h=r?a-1:0,d=r?-1:1,p=e[t+h];for(h+=d,i=p&(1<<-u)-1,p>>=-u,u+=o;u>0;i=256*i+e[t+h],h+=d,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=n;u>0;s=256*s+e[t+h],h+=d,u-=8);if(0===i)i=1-c;else{if(i===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=c}return(p?-1:1)*s*Math.pow(2,i-n)},t.write=function(e,t,r,n,a,i){var s,o,l,c=8*i-a-1,u=(1<<c)-1,h=u>>1,d=5960464477539062e-23*(23===a),p=n?0:i-1,f=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?t+=d/l:t+=d*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=u?(o=0,s=u):s+h>=1?(o=(t*l-1)*Math.pow(2,a),s+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,a),s=0));a>=8;e[r+p]=255&o,p+=f,o/=256,a-=8);for(s=s<<a|o,c+=a;c>0;e[r+p]=255&s,p+=f,s/=256,c-=8);e[r+p-f]|=128*m}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}},s=!0;try{n[e](r,r.exports,i),s=!1}finally{s&&delete a[e]}return r.exports}i.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_@types+_7956375d4ed6061bfa25e769f87b8c29/node_modules/next/dist/compiled/buffer/",t.exports=i(230)},561030,(e,t,r)=>{t.exports=function(e,t){let r;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n=0;return function(...a){clearTimeout(r);let i=Date.now(),s=t-(i-n);s<=0?(n=i,e.apply(this,a)):r=setTimeout(()=>{n=Date.now(),e.apply(this,a)},s)}}}]);
75
76//# debugId=8b0625c9-e5ad-bce8-a1b4-13778eecc62c

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.