1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,866273,e=>{"use strict";var t=e.i(361330);e.s(["ChevronRight",()=>t.default])},795551,e=>{"use strict";var t=e.i(769660);e.s(["MoreHorizontal",()=>t.default])},612486,570172,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(79864),i=e.i(199978),a=e.i(884702),o=e.i(573707);e.s(["ChevronLeft",()=>o.default],570172);var o=o,s=e.i(866273),l=e.i(795551),c=e.i(526683),u=e.i(511398);let d=e=>{let n,i,a,o,s=(0,r.c)(8);return s[0]!==e?({className:n,...i}=e,s[0]=e,s[1]=n,s[2]=i):(n=s[1],i=s[2]),s[3]!==n?(a=(0,c.cn)("mx-auto flex w-full",n),s[3]=n,s[4]=a):a=s[4],s[5]!==i||s[6]!==a?(o=(0,t.jsx)("nav",{role:"navigation","aria-label":"pagination",className:a,...i}),s[5]=i,s[6]=a,s[7]=o):o=s[7],o};d.displayName="Pagination";let p=a.forwardRef((e,n)=>{let i,a,o,s,l=(0,r.c)(9);return l[0]!==e?({className:i,...a}=e,l[0]=e,l[1]=i,l[2]=a):(i=l[1],a=l[2]),l[3]!==i?(o=(0,c.cn)("flex flex-row items-center gap-1",i),l[3]=i,l[4]=o):o=l[4],l[5]!==a||l[6]!==n||l[7]!==o?(s=(0,t.jsx)("ul",{ref:n,className:o,...a}),l[5]=a,l[6]=n,l[7]=o,l[8]=s):s=l[8],s});p.displayName="PaginationContent";let h=a.forwardRef((e,n)=>{let i,a,o,s,l=(0,r.c)(9);return l[0]!==e?({className:i,...a}=e,l[0]=e,l[1]=i,l[2]=a):(i=l[1],a=l[2]),l[3]!==i?(o=(0,c.cn)("",i),l[3]=i,l[4]=o):o=l[4],l[5]!==a||l[6]!==n||l[7]!==o?(s=(0,t.jsx)("li",{ref:n,className:o,...a}),l[5]=a,l[6]=n,l[7]=o,l[8]=s):s=l[8],s});h.displayName="PaginationItem";let m=e=>{let n,i,a,o,s,l,d=(0,r.c)(13);d[0]!==e?({className:n,isActive:i,size:o,...a}=e,d[0]=e,d[1]=n,d[2]=i,d[3]=a,d[4]=o):(n=d[1],i=d[2],a=d[3],o=d[4]);let p=void 0===o?"icon":o,h=i?"page":void 0;return d[5]!==n||d[6]!==i||d[7]!==p?(s=(0,c.cn)((0,u.buttonVariants)({variant:i?"outline":"ghost",size:p}),n),d[5]=n,d[6]=i,d[7]=p,d[8]=s):s=d[8],d[9]!==a||d[10]!==h||d[11]!==s?(l=(0,t.jsx)("a",{"aria-current":h,className:s,...a}),d[9]=a,d[10]=h,d[11]=s,d[12]=l):l=d[12],l};m.displayName="PaginationLink";let f=e=>{let n,i,a,s,l,u=(0,r.c)(9);return u[0]!==e?({className:n,...i}=e,u[0]=e,u[1]=n,u[2]=i):(n=u[1],i=u[2]),u[3]!==n?(a=(0,c.cn)("gap-1 pl-2.5",n),u[3]=n,u[4]=a):a=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(o.default,{className:"h-4 w-4"}),u[5]=s):s=u[5],u[6]!==i||u[7]!==a?(l=(0,t.jsx)(m,{"aria-label":"Go to previous page",size:"default",className:a,...i,children:s}),u[6]=i,u[7]=a,u[8]=l):l=u[8],l};f.displayName="PaginationPrevious";let g=e=>{let n,i,a,o,l,u=(0,r.c)(9);return u[0]!==e?({className:n,...i}=e,u[0]=e,u[1]=n,u[2]=i):(n=u[1],i=u[2]),u[3]!==n?(a=(0,c.cn)("gap-1 pr-2.5",n),u[3]=n,u[4]=a):a=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(s.ChevronRight,{className:"h-4 w-4"}),u[5]=o):o=u[5],u[6]!==i||u[7]!==a?(l=(0,t.jsx)(m,{"aria-label":"Go to next page",size:"default",className:a,...i,children:o}),u[6]=i,u[7]=a,u[8]=l):l=u[8],l};g.displayName="PaginationNext";let v=e=>{let n,i,a,o,s,u,d=(0,r.c)(10);return d[0]!==e?({className:n,...i}=e,d[0]=e,d[1]=n,d[2]=i):(n=d[1],i=d[2]),d[3]!==n?(a=(0,c.cn)("flex h-9 w-9 items-center justify-center",n),d[3]=n,d[4]=a):a=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(l.MoreHorizontal,{className:"h-4 w-4"}),s=(0,t.jsx)("span",{className:"sr-only",children:"More pages"}),d[5]=o,d[6]=s):(o=d[5],s=d[6]),d[7]!==i||d[8]!==a?(u=(0,t.jsxs)("span",{"aria-hidden":!0,className:a,...i,children:[o,s]}),d[7]=i,d[8]=a,d[9]=u):u=d[9],u};function x(e){let n,i,a,o,s,l,c,u=(0,r.c)(27),{total:m,currentPage:v,totalPages:x,onPageChange:b,showPreviousNext:w,className:k}=e;return u[0]!==v||u[1]!==m||u[2]!==x?(n=(0,t.jsxs)("div",{className:"text-muted-foreground text-sm",children:["Total: ",m,", Page: ",v," / ",x]}),u[0]=v,u[1]=m,u[2]=x,u[3]=n):n=u[3],u[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("div",{className:"flex-1"}),u[4]=i):i=u[4],u[5]!==v||u[6]!==b||u[7]!==w||u[8]!==x?(a=w&&x&&v-1>=1?(0,t.jsx)(h,{className:"cursor-pointer",children:(0,t.jsx)(f,{onClick:()=>{v-1>=1&&b(v-1)},className:"cursor-pointer"})},"prev"):null,u[5]=v,u[6]=b,u[7]=w,u[8]=x,u[9]=a):a=u[9],u[10]!==v||u[11]!==b||u[12]!==x?(o=y(v,x,b),u[10]=v,u[11]=b,u[12]=x,u[13]=o):o=u[13],u[14]!==v||u[15]!==b||u[16]!==w||u[17]!==x?(s=w&&x&&v+1<=x?(0,t.jsx)(h,{className:"cursor-pointer",children:(0,t.jsx)(g,{onClick:()=>{v+1<=x&&b(v+1)}})},"next"):null,u[14]=v,u[15]=b,u[16]=w,u[17]=x,u[18]=s):s=u[18],u[19]!==n||u[20]!==a||u[21]!==o||u[22]!==s?(l=(0,t.jsxs)(p,{className:"flex w-full justify-center",children:[n,i,a,o,s]}),u[19]=n,u[20]=a,u[21]=o,u[22]=s,u[23]=l):l=u[23],u[24]!==k||u[25]!==l?(c=(0,t.jsx)(d,{className:k,children:l}),u[24]=k,u[25]=l,u[26]=c):c=u[26],c}v.displayName="PaginationEllipsis";let y=(e,r,n)=>{let i=[];if(r<=6)for(let a=1;a<=r;a++)i.push((0,t.jsx)(h,{className:"cursor-pointer",children:(0,t.jsx)(m,{onClick:()=>a!==e&&n(a),isActive:a==e,className:"cursor-pointer",children:a})},`page-${a}`));else{for(let r=1;r<=2;r++)i.push((0,t.jsx)(h,{children:(0,t.jsx)(m,{onClick:()=>r!==e&&n(r),isActive:r===e,className:"cursor-pointer",children:r})},`page-${r}`));2<e&&e<r-1&&(i.push((0,t.jsx)(v,{},"ellipsis-1")),i.push((0,t.jsx)(h,{children:(0,t.jsx)(m,{onClick:()=>n(e),isActive:!0,className:"cursor-pointer",children:e})},"page-current"))),i.push((0,t.jsx)(v,{},"ellipsis-2"));for(let a=r-1;a<=r;a++)i.push((0,t.jsx)(h,{children:(0,t.jsx)(m,{onClick:()=>a!==e&&n(a),isActive:a===e,className:"cursor-pointer",children:a})},`page-${a}`))}return i};function b(e){let a,o,s=(0,r.c)(11),{total:l,limit:c,page:u,className:d}=e;c<=0&&(c=30);
1let p=Math.ceil(l/c),h=(0,i.usePathname)(),m=(0,n.useSearchParams)(),f=(0,i.useRouter)();s[0]!==h||s[1]!==f||s[2]!==m?(a=e=>{let t=new URLSearchParams(m);t.set("page",e.toString()),f.push(`${h}?${t.toString()}`)},s[0]=h,s[1]=f,s[2]=m,s[3]=a):a=s[3];let g=a;if(p<=1)return null;let v=Number(l),y=Number(c),b=Number(void 0===u?1:u),w=Number(p);return s[4]!==d||s[5]!==g||s[6]!==v||s[7]!==y||s[8]!==b||s[9]!==w?(o=(0,t.jsx)(x,{total:v,perPage:y,currentPage:b,totalPages:w,onPageChange:g,showPreviousNext:!0,className:d}),s[4]=d,s[5]=g,s[6]=v,s[7]=y,s[8]=b,s[9]=w,s[10]=o):o=s[10],o}e.s(["Pagination",()=>b],612486)},653668,e=>{"use strict";var t=e.i(501964);e.s(["X",()=>t.default])},662721,e=>{"use strict";var t=e.i(466471),r=e.i(884702),n=e.i(653668),i=e.i(623099),a=e.i(79864),o=e.i(199978),s=e.i(791768),l=e.i(851239),c=e.i(511398),u=e.i(371571),d=e.i(401762);let p="locale-suggestion-dismissed",h="locale";function m(){if("true"!==s.env.NEXT_PUBLIC_LOCALE_DETECT_ENABLED)return null;let e=(0,i.useLocale)(),m=(0,o.useRouter)(),f=(0,o.usePathname)(),g=(0,a.useSearchParams)(),[v,x]=(0,r.useState)(!1),[y,b]=(0,r.useState)(null),[w,k]=(0,r.useState)(0),_=(0,r.useRef)(null),C=(0,r.useRef)(!1),E=(0,r.useCallback)(e=>{let t=g?.toString?.()??"",r=t?`${f}?${t}`:f;m.replace(r,{locale:e}),(0,u.cacheSet)(h,e),x(!1)},[m,f,g]);(0,r.useEffect)(()=>{let t;if(C.current)return;C.current=!0;let r=(t=(navigator.language||navigator.userLanguage).split("-")[0].toLowerCase(),l.locales.includes(t)?t:null);b(r);let n=!!(0,u.cacheGet)(p),i=(0,u.cacheGet)(h);i&&i!==e&&l.locales.includes(i)?E(i):!r||r===e||n||i||x(!0)},[e,E]),(0,r.useEffect)(()=>{if(v&&_.current){let e=_.current.offsetHeight;k(e);let t=document.querySelector("header");t&&(t.style.top=`${e}px`);let r=document.querySelector('[data-slot="sidebar-container"]');r&&(r.style.top=`${e}px`,r.style.height=`calc(100vh - ${e}px)`);let n=document.querySelector('[data-slot="sidebar-wrapper"]');n&&(n.style.paddingTop=`${e}px`)}else k(0);return()=>{let e=document.querySelector("header");e&&(e.style.top="0px");let t=document.querySelector('[data-slot="sidebar-container"]');t&&(t.style.top="0px",t.style.height="100vh");let r=document.querySelector('[data-slot="sidebar-wrapper"]');r&&(r.style.paddingTop="0px")}},[v]),(0,r.useEffect)(()=>{if(!v||!_.current)return;let e=()=>{_.current&&k(_.current.offsetHeight)};e();let t=new ResizeObserver(e);return t.observe(_.current),window.addEventListener("resize",e),()=>{t.disconnect(),window.removeEventListener("resize",e)}},[v]);let D=l.localeNames[y]||y;return v&&y?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:_,className:"from-primary to-primary/80 text-primary-foreground fixed top-0 right-0 left-0 z-[51] hidden bg-gradient-to-r shadow-lg md:block",children:(0,t.jsx)("div",{className:"container py-2.5",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("div",{className:"flex flex-1 items-center gap-3",children:(0,t.jsx)("span",{className:"text-sm",children:"zh"===y?`æ£æµå°æµè§å¨è¯è¨æ¯: ${D}ï¼æ¯å¦åæ¢ï¼`:`We detected your browser language is ${D}. Switch to it?`})}),(0,t.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-2",children:[(0,t.jsx)(c.Button,{onClick:()=>{y&&E(y)},variant:"secondary",size:"sm",className:"bg-background text-xs",children:"zh"===y?"忢å°ä¸æ":"Switch"}),(0,t.jsx)("button",{onClick:()=>{let e;e=(0,d.getTimestamp)()+86400,(0,u.cacheSet)(p,"true",e),x(!1),k(0);let t=document.querySelector("header");t&&(t.style.top="0px");let r=document.querySelector('[data-slot="sidebar-container"]');r&&(r.style.top="0px",r.style.height="100vh");let n=document.querySelector('[data-slot="sidebar-wrapper"]');n&&(n.style.paddingTop="0px")},className:"bg-primary/10 flex-shrink-0 rounded p-1 transition-colors","aria-label":"Close",children:(0,t.jsx)(n.X,{className:"h-4 w-4"})})]})]})})}),(0,t.jsx)("div",{"aria-hidden":"true",style:{height:w},className:"pointer-events-none"})]}):null}e.s(["LocaleDetector",()=>m])},538630,636680,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=e.i(208643);e.s(["Check",()=>i.default],636680);var i=i,a=e.i(973941),a=a,o=e.i(502258),o=o,s=e.i(623099),l=e.i(79864),c=e.i(199978),u=e.i(851239),d=e.i(511398),p=e.i(534417),h=e.i(371571);function m(e){let m,f,g,v,x,y,b,w=(0,r.c)(25),{type:k}=e,_=void 0===k?"icon":k,C=(0,s.useLocale)(),E=(0,c.useRouter)(),D=(0,c.usePathname)(),A=(0,l.useSearchParams)(),[S,j]=(0,n.use
1State)(!1);w[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{j(!0)},f=[],w[0]=m,w[1]=f):(m=w[0],f=w[1]),(0,n.useEffect)(m,f),w[2]!==C||w[3]!==D||w[4]!==E||w[5]!==A?(g=e=>{if(e!==C){(0,h.cacheSet)("locale",e);let t=A?.toString?.()??"",r=t?`${D}?${t}`:D;E.push(r,{locale:e})}},w[2]=C,w[3]=D,w[4]=E,w[5]=A,w[6]=g):g=w[6];let F=g;if(!S){let e,r,n="icon"===_?"ghost":"outline",i="icon"===_?"icon":"sm",s="icon"===_?"h-auto w-auto p-0":"hover:bg-primary/10";return w[7]!==C||w[8]!==_?(e="icon"===_?(0,t.jsx)(o.default,{size:18}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{size:16}),u.localeNames[C]]}),w[7]=C,w[8]=_,w[9]=e):e=w[9],w[10]!==n||w[11]!==i||w[12]!==s||w[13]!==e?(r=(0,t.jsx)(d.Button,{variant:n,size:i,className:s,disabled:!0,children:e}),w[10]=n,w[11]=i,w[12]=s,w[13]=e,w[14]=r):r=w[14],r}return w[15]!==C||w[16]!==_?(v=(0,t.jsx)(p.DropdownMenuTrigger,{asChild:!0,children:"icon"===_?(0,t.jsx)(d.Button,{variant:"ghost",size:"icon",className:"h-auto w-auto p-0",children:(0,t.jsx)(o.default,{size:18})}):(0,t.jsxs)(d.Button,{variant:"outline",size:"sm",className:"hover:bg-primary/10",children:[(0,t.jsx)(a.default,{size:16}),u.localeNames[C]]})}),w[15]=C,w[16]=_,w[17]=v):v=w[17],w[18]===Symbol.for("react.memo_cache_sentinel")?(x=Object.keys(u.localeNames),w[18]=x):x=w[18],w[19]!==C||w[20]!==F?(y=(0,t.jsx)(p.DropdownMenuContent,{children:x.map(e=>(0,t.jsxs)(p.DropdownMenuItem,{onClick:()=>F(e),children:[(0,t.jsx)("span",{children:u.localeNames[e]}),e===C&&(0,t.jsx)(i.default,{size:16,className:"text-primary"})]},e))}),w[19]=C,w[20]=F,w[21]=y):y=w[21],w[22]!==v||w[23]!==y?(b=(0,t.jsxs)(p.DropdownMenu,{children:[v,y]}),w[22]=v,w[23]=y,w[24]=b):b=w[24],b}e.s(["LocaleSelector",()=>m],538630)},290976,e=>{"use strict";var t=e.i(466471),r=e.i(884702),n=e.i(653668),i=e.i(199978),a=e.i(511398),o=e.i(371571),s=e.i(401762),l=e.i(526683);function c({enabled:e=!0,id:c="default",text:u,buttonText:d,href:p,target:h="_self",closable:m=!0,rememberDismiss:f=!0,dismissedExpiryDays:g=7,className:v,onAction:x}){let y=(0,r.useMemo)(()=>`top-banner-dismissed:${c}`,[c]),[b,w]=(0,r.useState)(!1),[k,_]=(0,r.useState)(0),C=(0,r.useRef)(null),E=(0,r.useRef)(!1);if((0,r.useEffect)(()=>{E.current||(E.current=!0,!e||f&&(0,o.cacheGet)(y)||w(!0))},[e]),(0,r.useEffect)(()=>{if(b&&C.current){let e=C.current.offsetHeight;_(e);let t=document.querySelector("header");t&&(t.style.top=`${e}px`);let r=document.querySelector('[data-slot="sidebar-container"]');r&&(r.style.top=`${e}px`,r.style.height=`calc(100vh - ${e}px)`);let n=document.querySelector('[data-slot="sidebar-wrapper"]');n&&(n.style.paddingTop=`${e}px`)}else _(0);return()=>{let e=document.querySelector("header");e&&(e.style.top="0px");let t=document.querySelector('[data-slot="sidebar-container"]');t&&(t.style.top="0px",t.style.height="100vh");let r=document.querySelector('[data-slot="sidebar-wrapper"]');r&&(r.style.paddingTop="0px")}},[b]),(0,r.useEffect)(()=>{if(!b||!C.current)return;let e=()=>{C.current&&_(C.current.offsetHeight)};e();let t=new ResizeObserver(e);return t.observe(C.current),window.addEventListener("resize",e),()=>{t.disconnect(),window.removeEventListener("resize",e)}},[b]),!e||!b)return null;let D=!!d&&(!!p||!!x);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:C,className:(0,l.cn)("from-primary to-primary text-primary-foreground fixed top-0 right-0 left-0 z-[51] hidden min-h-12 bg-gradient-to-r py-1 shadow-lg md:block",v),children:(0,t.jsx)("div",{className:"container py-2.5",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("div",{className:"flex flex-1 items-center justify-center gap-3",children:(0,t.jsx)("div",{className:"text-sm",dangerouslySetInnerHTML:{__html:String(u??"")}})}),(0,t.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-2",children:[D?p?/^https?:\/\//i.test(p)||/^mailto:/i.test(p)||/^tel:/i.test(p)?(0,t.jsx)(a.Button,{asChild:!0,variant:"secondary",size:"sm",className:"bg-background text-xs",children:(0,t.jsx)("a",{href:p,target:h,rel:"_blank"===h?"noreferrer noopener":void 0,children:d})}):(0,t.jsx)(a.Button,{asChild:!0,variant:"secondary",size:"sm",className:"bg-background text-xs",children:(0,t.jsx)(i.Link,{href:p,children:d})}):(0,t.jsx)(a.Button,{onClick:x,variant:"secondary",size:"sm",className:"bg-background text-xs",children:d}):null,m?(0,t.jsx)("button",{onClick:()=>{(()=>{if(!f)return;let e=(0,s.getTimestamp)()+24*g*3600;(0,o.cacheSet)(y,"true",e)})(),w(!1),_(0);let e=document.querySelector("header");e&&(e.style.top="0px");let t=document.querySelector('[data-slot="sidebar-container"]');t&&(t.style.top="0px",t.style.height="100vh");let r=document.querySelector('[data-slot="sidebar-wrapper"]');r&&(r.style.paddingTop="0px")},className:"bg-primary/10 flex-shrink-0 rounded p-1 transition-colors","aria-label":"Close",children:(0,t.jsx)(n.X,{className:"h-4 w-4"})}):null]})]})})}),(0,t.jsx)("div",{"aria-hidden":"true",style:{height:k},className:"pointer-events-none"})]})}e.s(["TopBanner",()=>c])},600195,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=e.i(47506),i=i,a=e.i(212174),a=a,o=e.i(749936),o=o,s=e.i(408430),a=a,o=o,l=e.i(847257),c=e.i(526683);let u=e=>{let i,u,d,p,h,m,f=(0,r.c)(14),{className:g}=e,{theme:v,setTheme:x}
1=(0,s.useTheme)(),[y,b]=(0,n.useState)(!1),[w,k]=(0,n.useState)(!1);f[0]!==v?(i=()=>{k(!0),b("dark"===v)},u=[v],f[0]=v,f[1]=i,f[2]=u):(i=f[1],u=f[2]),(0,n.useEffect)(i,u);let _=(0,n.useRef)(null);f[3]!==x?(d=async()=>{if(!_.current)return;await document.startViewTransition(()=>{(0,l.flushSync)(()=>{let e=document.documentElement.classList.toggle("dark");x(e?"dark":"light"),b(e)})}).ready;let{top:e,left:t,width:r,height:n}=_.current.getBoundingClientRect(),i=e+n/2,a=t+r/2,o=window.innerWidth-t,s=window.innerHeight-e,c=Math.hypot(Math.max(t,o),Math.max(e,s));document.documentElement.animate({clipPath:[`circle(0px at ${a}px ${i}px)`,`circle(${c}px at ${a}px ${i}px)`]},{duration:700,easing:"ease-in-out",pseudoElement:"::view-transition-new(root)"})},f[3]=x,f[4]=d):d=f[4];let C=d;if(!w)return null;f[5]!==g?(p=(0,c.cn)(g),f[5]=g,f[6]=p):p=f[6];let E=y?"Switch to light mode":"Switch to dark mode";return f[7]!==y?(h=y?(0,t.jsx)(o.default,{}):(0,t.jsx)(a.default,{}),f[7]=y,f[8]=h):h=f[8],f[9]!==C||f[10]!==p||f[11]!==E||f[12]!==h?(m=(0,t.jsx)("button",{ref:_,onClick:C,className:p,"aria-label":E,children:h}),f[9]=C,f[10]=p,f[11]=E,f[12]=h,f[13]=m):m=f[13],m};var d=e.i(511398),p=e.i(352162),h=e.i(6140),m=e.i(82838),f=e.i(291967),g=e.i(575301),v="Toggle",x=n.forwardRef((e,r)=>
1{let{pressed:n,defaultPressed:i,onPressedChange:a,...o}=e,[s,l]=(0,g.useControllableState)({prop:n,onChange:a,defaultProp:i??!1,caller:v});return(0,t.jsx)(h.Primitive.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:r,onClick:(0,f.composeEventHandlers)(e.onClick,()=>{e.disabled||l(!s)})})});x.displayName=v;var y=e.i(950074),b="ToggleGroup",[w,k]=(0,p.createContextScope)(b,[m.createRovingFocusGroupScope]),_=(0,m.createRovingFocusGroupScope)(),C=n.default.forwardRef((e,r)=>{let{type:n,...i}=e;if("single"===n)return(0,t.jsx)(A,{...i,ref:r});if("multiple"===n)return(0,t.jsx)(S,{...i,ref:r});throw Error(`Missing prop \`type\` expected on \`${b}\``)});C.displayName=b;var[E,D]=w(b),A=n.default.forwardRef((e,r)=>{let{value:i,defaultValue:a,onValueChange:o=()=>{},...s}=e,[l,c]=(0,g.useControllableState)({prop:i,defaultProp:a??"",onChange:o,caller:b});return(0,t.jsx)(E,{scope:e.__scopeToggleGroup,type:"single",value:n.default.useMemo(()=>l?[l]:[],[l]),onItemActivate:c,onItemDeactivate:n.default.useCallback(()=>c(""),[c]),children:(0,t.jsx)(N,{...s,ref:r})})}),S=n.default.forwardRef((e,r)=>{let{value:i,defaultValue:a,onValueChange:o=()=>{},...s}=e,[l,c]=(0,g.useControllableState)({prop:i,defaultProp:a??[],onChange:o,caller:b}),u=n.default.useCallback(e=>c((t=[])=>[...t,e]),[c]),d=n.default.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(E,{scope:e.__scopeToggleGroup,type:"multiple",value:l,onItemActivate:u,onItemDeactivate:d,children:(0,t.jsx)(N,{...s,ref:r})})});C.displayName=b;var[j,F]=w(b),N=n.default.forwardRef((e,r)=>{let{__scopeToggleGroup:n,disabled:i=!1,rovingFocus:a=!0,orientation:o,dir:s,loop:l=!0,...c}=e,u=_(n),d=(0,y.useDirection)(s),p={role:"group",dir:d,...c};return(0,t.jsx)(j,{scope:n,rovingFocus:a,disabled:i,children:a?(0,t.jsx)(m.Root,{asChild:!0,...u,orientation:o,dir:d,loop:l,children:(0,t.jsx)(h.Primitive.div,{...p,ref:r})}):(0,t.jsx)(h.Primitive.div,{...p,ref:r})})}),L="ToggleGroupItem",T=n.default.forwardRef((e,r)=>{let i=D(L,e.__scopeToggleGroup),a=F(L,e.__scopeToggleGroup),o=_(e.__scopeToggleGroup),s=i.value.includes(e.value),l=a.disabled||e.disabled,c={...e,pressed:s,disabled:l},u=n.default.useRef(null);return a.rovingFocus?(0,t.jsx)(m.Item,{asChild:!0,...o,focusable:!l,active:s,ref:u,children:(0,t.jsx)(M,{...c,ref:r})}):(0,t.jsx)(M,{...c,ref:r})});T.displayName=L;var M=n.default.forwardRef((e,r)=>{let{__scopeToggleGroup:n,value:i,...a}=e,o=D(L,n),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l="single"===o.type?s:void 0;return(0,t.jsx)(x,{...l,...a,ref:r,onPressedChange:e=>{e?o.onItemActivate(i):o.onItemDeactivate(i)}})});let z=(0,e.i(294237).cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),B=n.createContext({size:"default",variant:"default"});function $(e){let n,i,a,o,s,l,u,d,p,h=(0,r.c)(20);return h[0]!==e?({className:i,variant:s,size:o,children:n,...a}=e,h[0]=e,h[1]=n,h[2]=i,h[3]=a,h[4]=o,h[5]=s):(n=h[1],i=h[2],a=h[3],o=h[4],s=h[5]),h[6]!==i?(l=(0,c.cn)("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",i),h[6]=i,h[7]=l):l=h[7],h[8]!==o||h[9]!==s?(u={variant:s,size:o},h[8]=o,h[9]=s,h[10]=u):u=h[10],h[11]!==n||h[12]!==u?(d=(0,t.jsx)(B.Provider,{value:u,children:n}),h[11]=n,h[12]=u,h[13]=d):d=h[13],h[14]!==a||h[15]!==o||h[16]!==l||h[17]!==d||h[18]!==s?(p=(0,t.jsx)(C,{"data-slot":"toggle-group","data-variant":s,"data-size":o,className:l,...a,children:d}),h[14]=a,h[15]=o,h[16]=l,h[17]=d,h[18]=s,h[19]=p):p=h[19],p}function R(e){let i,a,o,s,l,u,d,p=(0,r.c)(18);p[0]!==e?({className:a,children:i,variant:l,size:s,...o}=e,p[0]=e,p[1]=i,p[2]=a,p[3]=o,p[4]=s,p[5]=l):(i=p[1],a=p[2],o=p[3],s=p[4],l=p[5]);let h=n.useContext(B),m=h.variant||l,f=h.size||s;return p[6]!==a||p[7]!==h.size||p[8]!==h.variant||p[9]!==s||p[10]!==l?(u=(0,c.cn)(z({variant:h.variant||l,size:h.size||s}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",a),p[6]=a,p[7]=h.size,p[8]=h.variant,p[9]=s,p[10]=l,p[11]=u):u=p[11],p[12]!==i||p[13]!==o||p[14]!==m||p[15]!==f||p[16]!==u?(d=(0,t.jsx)(T,{"data-slot":"toggle-group-item","data-variant":m,"data-size":f,className:u,...o,children:i}),p[12]=i,p[13]=o,p[14]=m,p[15]=f,p[16]=u,p[17]=d):d=p[17],d}function P(e){let l,c,p,h,m=(0,r.c)(29),{type:f,className:g}=e,v=void 0===f?"icon":f,{theme:x,setTheme:y}
1=(0,s.useTheme)(),[b,w]=(0,n.useState)(!1);m[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{w(!0)},c=[],m[0]=l,m[1]=c):(l=m[0],c=m[1]),(0,n.useEffect)(l,c),m[2]!==y?(p=e=>{y(e)},m[2]=y,m[3]=p):p=m[3];let k=p;if(!b)return null;if("button"===v){let e;return m[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(d.Button,{variant:"outline",size:"sm",className:"hover:bg-primary/10",children:(0,t.jsx)(o.default,{})}),m[4]=e):e=m[4],e}if("toggle"===v){let e,r,n,s,l,c,u,d,p,h,f=` ${g}`;return m[5]!==y?(e=()=>y("light"),m[5]=y,m[6]=e):e=m[6],m[7]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(o.default,{}),m[7]=r):r=m[7],m[8]!==e?(n=(0,t.jsx)(R,{value:"light",onClick:e,"aria-label":"Switch to light mode",children:r}),m[8]=e,m[9]=n):n=m[9],m[10]!==y?(s=()=>y("dark"),m[10]=y,m[11]=s):s=m[11],m[12]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(a.default,{}),m[12]=l):l=m[12],m[13]!==s?(c=(0,t.jsx)(R,{value:"dark",onClick:s,"aria-label":"Switch to dark mode",children:l}),m[13]=s,m[14]=c):c=m[14],m[15]!==y?(u=()=>y("system"),m[15]=y,m[16]=u):u=m[16],m[17]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(i.default,{}),m[17]=d):d=m[17],m[18]!==u?(p=(0,t.jsx)(R,{value:"system",onClick:u,"aria-label":"Switch to system mode",children:d}),m[18]=u,m[19]=p):p=m[19],m[20]!==k||m[21]!==c||m[22]!==p||m[23]!==f||m[24]!==n||m[25]!==x?(h=(0,t.jsxs)($,{type:"single",className:f,value:x,onValueChange:k,variant:"outline",children:[n,c,p]}),m[20]=k,m[21]=c,m[22]=p,m[23]=f,m[24]=n,m[25]=x,m[26]=h):h=m[26],h}return m[27]!==g?(h=(0,t.jsx)(u,{className:g}),m[27]=g,m[28]=h):h=m[28],h}e.s(["ThemeToggler",()=>P],600195)},998559,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=e.i(791768);function a(e){let a,o,s,l,c=(0,r.c)(10),{brand:u}=e,[d,p]=(0,n.useState)(null);c[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{p(new Date().getFullYear())},o=[],c[0]=a,c[1]=o):(a=c[0],o=c[1]),(0,n.useEffect)(a,o);let h=d||2024,m=u?.url||i.env.NEXT_PUBLIC_APP_URL,f=u?.target||"",g=u?.target==="_blank"?"noopener noreferrer":void 0,v=u?.title||i.env.NEXT_PUBLIC_APP_NAME;return c[2]!==m||c[3]!==f||c[4]!==g||c[5]!==v?(s=(0,t.jsx)("a",{href:m,target:f,rel:g,className:"text-primary hover:text-primary/80 cursor-pointer",children:v}),c[2]=m,c[3]=f,c[4]=g,c[5]=v,c[6]=s):s=c[6],c[7]!==h||c[8]!==s?(l=(0,t.jsxs)("div",{className:"text-muted-foreground text-sm",children:["© ",h," ",s,", All rights reserved"]}),c[7]=h,c[8]=s,c[9]=l):l=c[9],l}e.s(["Copyright",()=>a])},24963,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(103979);function i(e){let i,a=(0,r.c)(16),{src:o,alt:s,className:l,width:c,height:u,title:d,fill:p,priority:h,sizes:m}=e;if(p){let e,r=m||"100vw",i=h?"eager":"lazy";return a[0]!==s||a[1]!==l||a[2]!==o||a[3]!==r||a[4]!==i||a[5]!==d?(e=(0,t.jsx)(n.default,{src:o,alt:s,fill:!0,title:d,sizes:r,loading:i,className:l,quality:75}),a[0]=s,a[1]=l,a[2]=o,a[3]=r,a[4]=i,a[5]=d,a[6]=e):e=a[6],e}let f=c||0,g=u||0,v=m||"(max-width: 768px) 100vw, 50vw",x=h?"eager":"lazy";return a[7]!==s||a[8]!==l||a[9]!==o||a[10]!==f||a[11]!==g||a[12]!==v||a[13]!==x||a[14]!==d?(i=(0,t.jsx)(n.default,{src:o,alt:s,width:f,height:g,title:d,sizes:v,loading:x,className:l,quality:75}),a[7]=s,a[8]=l,a[9]=o,a[10]=f,a[11]=g,a[12]=v,a[13]=x,a[14]=d,a[15]=i):i=a[15],i}e.s(["LazyImage",()=>i])},561444,577945,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};let a=(e,t,r,a)=>{let o=(0,n.forwardRef)(({color:r="currentColor",size:o=24,stroke:s=2,title:l,className:c,children:u,...d},p)=>(0,n.createElement)("svg",{ref:p,...i[e],width:o,height:o,className:["tabler-icon",`tabler-icon-${t}`,c].join(" "),..."filled"===e?{fill:r}:{strokeWidth:s,stroke:r},...d},[l&&(0,n.createElement)("title",{key:"svg-title"},l),...a.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(u)?u:[u]]));return o.displayName=`${r}`,o};e.s(["default",()=>a],577945);let o=a("outline","refresh","Refresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]]),s=a("outline","upload","Upload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}
1]]),l=a("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);var c=e.i(169543),u=e.i(779342),d=e.i(511398),p=e.i(526683);let h=async(e,t)=>{let r=new FormData;r.append("files",e),t&&r.append("storagePath",t);let n=await fetch("/api/storage/upload-image",{method:"POST",body:r});if(!n.ok)throw Error(`Upload failed with status ${n.status}`);let i=await n.json();if(0!==i.code||!i.data?.urls?.length)throw Error(i.message||"Upload failed");return i.data.urls[0]};function m(e){let i,a,m,D,A,S,j,F,N,L,T,M,z,B,$,R,P,I,q,H,O=(0,r.c)(41),{allowMultiple:U,maxImages:V,maxSizeMB:W,storagePath:Z,title:G,emptyHint:K,className:X,defaultPreviews:Y,onChange:Q}=e,J=void 0!==U&&U,ee=void 0===W?10:W,et=(0,n.useRef)(null),er=(0,n.useRef)(!1),en=(0,n.useRef)(Q),ei=(0,n.useRef)(!1),ea=(0,n.useRef)(null),eo=(0,n.useRef)(0),[es,el]=(0,n.useState)(!1);O[0]!==Y?(i=()=>Y?.length?Y.map(E):[],O[0]=Y,O[1]=i):i=O[1];let[ec,eu]=(0,n.useState)(i),ed=J?void 0===V?1:V:1,ep=1024*ee*1024;O[2]!==Q?(a=()=>{en.current=Q},m=[Q],O[2]=Q,O[3]=a,O[4]=m):(a=O[3],m=O[4]),(0,n.useEffect)(a,m),O[5]!==Y?(D=()=>{if(!er.current)return;if(ei.current){ei.current=!1;return}let e=Y||[];eu(t=>{let r=t.filter(C).map(_);return e.length===r.length&&e.every((e,t)=>e===r[t])?t:e.map(k)})},A=[Y],O[5]=Y,O[6]=D,O[7]=A):(D=O[6],A=O[7]),(0,n.useEffect)(D,A),O[8]!==ec?(j=()=>()=>{ec.forEach(w)},S=[ec],O[8]=ec,O[9]=S,O[10]=j):(S=O[9],j=O[10]),(0,n.useEffect)(j,S),O[11]!==ec?(F=()=>{if(!er.current){er.current=!0;return}ei.current=!0,en.current?.(ec.map(b))},N=[ec],O[11]=ec,O[12]=F,O[13]=N):(F=O[12],N=O[13]),(0,n.useEffect)(F,N);let eh=e=>{e.forEach(e=>{let{id:t,file:r}=e,n=`${Date.now()}-${Math.random()}`,i=URL.createObjectURL(r);eu(e=>e.map(e=>e.id!==t?e:(e.preview.startsWith("blob:")&&URL.revokeObjectURL(e.preview),{...e,preview:i,file:r,size:r.size,url:void 0,status:"uploading",uploadKey:n}))),h(r,Z).then(e=>{eu(r=>r.map(r=>r.id!==t||r.uploadKey!==n?r:(r.preview.startsWith("blob:")&&URL.revokeObjectURL(r.preview),{...r,preview:e,url:e,status:"uploaded",file:void 0})))}).catch(e=>{u.toast.error(e?.message?`Upload failed: ${e.message}`:"Upload failed"),eu(e=>e.map(e=>e.id!==t||e.uploadKey!==n?e:{...e,status:"error"}))}).finally(()=>{et.current&&(et.current.value="")}
1)})},em=e=>{let t=ea.current;if(t){ea.current=null;let r=e[0];if(!r)return;if(!r.type?.startsWith("image/")){u.toast.error("Only image files are supported"),et.current&&(et.current.value="");return}if(r.size>ep){u.toast.error(`"${r.name}" exceeds the ${ee}MB limit`),et.current&&(et.current.value="");return}eh([{id:t,file:r}]);return}let r=ed-ec.length,n=e.filter(e=>e.type?.startsWith("image/")?!(e.size>ep)||(u.toast.error(`"${e.name}" exceeds the ${ee}MB limit`),!1):(u.toast.error(`"${e.name}" is not an image`),!1)).slice(0,Math.max(r,0));if(!n.length){if(ec.length){let t=e.filter(y);if(!t.length)return;let r=Math.min(t.length,ec.length),n=ec.slice(-r),i=[];for(let e=0;e<r;e+=1){let r=n[n.length-1-e]?.id,a=t[e];r&&a&&i.push({id:r,file:a})}i.length&&eh(i)}et.current&&(et.current.value="");return}r<e.length&&u.toast.message(`Only the first ${n.length} image(s) will be added`);let i=n.map(x);eu(e=>[...e,...i]),Promise.all(i.map(async e=>{try{let t=await h(e.file,Z);eu(r=>r.map(r=>r.id===e.id?r.uploadKey&&e.uploadKey&&r.uploadKey!==e.uploadKey?r:(r.preview.startsWith("blob:")&&URL.revokeObjectURL(r.preview),{...r,preview:t,url:t,status:"uploaded",file:void 0}):r))}catch(t){u.toast.error(t?.message?`Upload failed: ${t.message}`:"Upload failed"),eu(t=>t.map(t=>t.id!==e.id||t.uploadKey&&t.uploadKey!==e.uploadKey?t:{...t,status:"error"}))}})),et.current&&(et.current.value="")};O[14]===Symbol.for("react.memo_cache_sentinel")?(L=e=>{e.preventDefault(),e.stopPropagation(),eo.current=eo.current+1,el(!0)},O[14]=L):L=O[14];let ef=L;O[15]!==es?(T=e=>{e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="copy",es||el(!0)},O[15]=es,O[16]=T):T=O[16];let eg=T;O[17]===Symbol.for("react.memo_cache_sentinel")?(M=e=>{e.preventDefault(),e.stopPropagation(),eo.current=eo.current-1,eo.current<=0&&(eo.current=0,el(!1))},O[17]=M):M=O[17];let ev=M;O[18]===Symbol.for("react.memo_cache_sentinel")?(z=e=>{eu(t=>{let r=t.filter(t=>t.id!==e),n=t.find(t=>t.id===e);return n?.preview.startsWith("blob:")&&URL.revokeObjectURL(n.preview),r})},O[18]=z):z=O[18];let ex=z,ey=()=>{et.current?.click()},eb=`${ec.length}/${ed}`,ew=es&&"ring-primary/70 ring-offset-background ring-2 ring-offset-2";O[19]!==X||O[20]!==ew?(B=(0,p.cn)("relative focus:outline-none",ew,X),O[19]=X,O[20]=ew,O[21]=B):B=O[21],O[22]!==es?($=es&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 z-30 flex items-center justify-center bg-black/10 backdrop-blur-sm",children:(0,t.jsx)("div",{className:"bg-background/80 text-foreground rounded-full px-4 py-2 text-sm font-medium shadow-sm",children:"Drop to upload"})}),O[22]=es,O[23]=$):$=O[23],O[24]!==eb||O[25]!==G?(R=G&&(0,t.jsx)("div",{className:"text-foreground flex items-center justify-between text-sm font-medium",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(c.ImageIcon,{className:"text-primary h-4 w-4"}),(0,t.jsx)("span",{children:G}),(0,t.jsxs)("span",{className:"text-primary text-xs",children:["(",eb,")"]})]})}),O[24]=eb,O[25]=G,O[26]=R):R=O[26];let ek=J?"flex-wrap":"flex-nowrap";O[27]!==ek?(P=(0,p.cn)("flex flex-wrap gap-4",ek),O[27]=ek,O[28]=P):P=O[28];let e_=ec.map(e=>(0,t.jsx)("div",{className:"group border-border bg-muted/50 hover:border-border hover:bg-muted relative overflow-hidden rounded-xl border p-1 shadow-sm transition",children:(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-lg",children:[(0,t.jsx)("img",{src:e.preview,alt:"Reference",className:"h-32 w-32 rounded-lg object-cover"}),e.size&&(0,t.jsx)("span",{className:"bg-background text-muted-foreground absolute bottom-2 left-2 rounded-md px-2 py-1 text-[10px] font-medium",children:(e=>{if(!e)return"";if(e<1024)return`${e} B`;let t=e/1024;if(t<1024)return`${t.toFixed(2)} KB`;let r=t/1024;return`${r.toFixed(2)} MB`})(e.size)}),"uploading"!==e.status&&(0,t.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-black/35 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100",children:(0,t.jsx)(d.Button,{type:"button",size:"icon",variant:"secondary",className:"bg-background/50 text-foreground hover:bg-background/50 h-10 w-10 rounded-full shadow-sm backdrop-blur focus-visible:ring-2 focus-visible:ring-white/70",onClick:()=>{ea.current=e.id,ey()},"aria-label":"Upload a new image to replace",children:(0,t.jsx)(o,{className:"h-5 w-5"})})}),"uploading"===e.status&&(0,t.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-black/60 text-xs font-medium text-white",children:"Uploading..."}),"error"===e.status&&(0,t.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-red-500/70 text-xs font-medium text-white",children:"Failed"}),(0,t.jsx)(d.Button,{size:"icon",variant:"destructive",className:"absolute top-2 right-2 z-20 h-7 w-7",onClick:()=>ex(e.id),"aria-label":"Remove image",children:(0,t.jsx)(l,{className:"h-4 w-4"})})]})},e.id));return O[29]!==ec.length||O[30]!==ed||O[31]!==ee||O[32]!==ey?(I=ec.length<ed&&(0,t.jsx)("div",{className:"group border-border bg-muted/50 hover:border-border hover:bg-muted relative overflow-hidden rounded-xl border border-dashed p-1 shadow-sm transition",children:(0,t.jsx)("div",{className:"relative overflow-hidden rounded-lg",children:(0,t.jsxs)("button",{type:"button",className:"flex h-32 w-32 flex-col items-center justify-center gap-2",onClick:ey,children:[(0,t.jsx)("div",{className:"border-border flex h-10 w-10 items-center justify-center rounded-full border border-dashed",children:(0,t.jsx)(s,{className:"h-5 w-5"})}),(0,t.jsx)("span",{className:"text-xs font-medium",children:"Upload"}),(0,t.jsxs)("span",{className:"text-primary text-xs",children:["Max ",ee,"MB"]})]})})}),O[29]=ec.length,O[30]=ed,O[31]=ee,O[32]=ey,O[33]=I):I=O[33],O[34]!==P||O[35]!==e_||O[36]!==I?(q=(0,t.jsxs)("div",{className:P,children:[e_,I]}),O[34]=P,O[35]=e_,O[36]=I,O[37]=q):q=O[37],O[38]!==K||O[39]!==G?(H=!G&&(0,t.jsx)("div",{className:"text-muted-foreground text-xs",children:K}),O[38]=K,O[39]=G,O[40]=H):H=O[40],(0,t.jsxs)("div",{className:B,tabIndex:0,onPaste:e=>{let t=Array.from(e.clipboardData?.items||[]).filter(v).map(g).filter(
1Boolean);t.length&&(e.preventDefault(),em(t))},onDragEnter:ef,onDragOver:eg,onDragLeave:ev,onDrop:e=>{e.preventDefault(),e.stopPropagation(),eo.current=0,el(!1);let t=Array.from(e.dataTransfer?.files||[]).filter(f);t.length&&em(t)},children:[$,(0,t.jsx)("input",{ref:et,type:"file",accept:"image/*",multiple:J,onChange:e=>{let t=Array.from(e.target.files||[]);t.length&&em(t)},className:"hidden"}),R,q,H]})}function f(e){return e.type?.startsWith("image/")}function g(e){return e.getAsFile()}function v(e){return"file"===e.kind&&e.type.startsWith("image/")}function x(e){return{id:`${e.name}-${e.lastModified}-${Math.random()}`,preview:URL.createObjectURL(e),file:e,size:e.size,status:"uploading",uploadKey:`${Date.now()}-${Math.random()}`}}function y(e){return e.type?.startsWith("image/")}function b(e){let{id:t,preview:r,url:n,status:i,size:a}=e;return{id:t,preview:r,url:n,status:i,size:a}}function w(e){e.preview.startsWith("blob:")&&URL.revokeObjectURL(e.preview)}function k(e,t){return{id:`preset-${e}-${t}`,preview:e,url:e,status:"uploaded"}}function _(e){return e.url}function C(e){return"uploaded"===e.status&&e.url}function E(e,t){return{id:`preset-${e}-${t}`,preview:e,url:e,status:"uploaded"}}e.s(["ImageUploader",()=>m],561444)},111643,793143,352103,e=>{"use strict";e.i(90985);var t,r,n,i,a,o,s,l,c,u,d,p,h,m=e.i(466471),f=e.i(536355),g=e.i(525518);let v={};function x(e,t){"string"!=typeof t&&(t=x.defaultChars);let r=function(e){let t=v[e];if(t)return t;t=v[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);t.push(r)}for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let n=0,i=e.length;n<i;n+=3){let a=parseInt(e.slice(n+1,n+3),16);if(a<128){t+=r[a];continue}if((224&a)==192&&n+3<i){let r=parseInt(e.slice(n+4,n+6),16);if((192&r)==128){let e=a<<6&1984|63&r;e<128?t+="��":t+=String.fromCharCode(e),n+=3;continue}}if((240&a)==224&&n+6<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16);if((192&r)==128&&(192&i)==128){let e=a<<12&61440|r<<6&4032|63&i;e<2048||e>=55296&&e<=57343?t+="���":t+=String.fromCharCode(e),n+=6;continue}}if((248&a)==240&&n+9<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16),o=parseInt(e.slice(n+10,n+12),16);if((192&r)==128&&(192&i)==128&&(192&o)==128){let e=a<<18&1835008|r<<12&258048|i<<6&4032|63&o;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),n+=9;continue}}t+="�"}return t})}x.defaultChars=";/?:@&=+$,#",x.componentChars="";let y={};function b(e,t,r){"string"!=typeof t&&(r=t,t=b.defaultChars),void 0===r&&(r=!0);let n=function(e){let t=y[e];if(t)return t;t=y[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}(t),i="";for(let t=0,a=e.length;t<a;t++){let o=e.charCodeAt(t);if(r&&37===o&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(o<128){i+=n[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<a){let r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[t])}return i}function w(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}function k(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}b.defaultChars=";/?:@&=+$,-_.!~*'()#",b.componentChars="-_.!~*'()";let _=/^([a-z0-9.+-]+:)/i,C=/:[0-9]*$/,E=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,D=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "]))),A=["/","?","#"],S=/^[+a-z0-9A-Z_-]{0,63}$/,j=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,F={javascript:!0,"javascript:":!0},N={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};k.prototype.parse=function(e,t){let r,n,i,a=e;if(a=a.trim(),!t&&1===e.split("#").length){let e=E.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=_.exec(a);if(o&&(r=(o=o[0]).toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===a.substr(0,2))&&!(o&&F[o])&&(a=a.substr(2),this.slashes=!0),!F[o]&&(i||o&&!N[o])){let e,t,r=-1;for(let e=0;e<A.length;e++)-1!==(n=a.indexOf(A[e]))&&(-1===r||n<r)&&(r=n);-1!==(t=-1===r?a.lastIndexOf("@"):a.lastIndexOf("@",r))&&(e=a.slice(0,t),a=a.slice(t+1),this.auth=e),r=-1;for(let e=0;e<D.length;e++)-1!==(n=a.indexOf(D[e]))&&(-1===r||n<r)&&(r=n);-1===r&&(r=a.length),":"===a[r-1]&&r--;let i=a.slice(0,r);a=a.slice(r),this.parseHost(i),this.hostname=this.hostname||"";let o="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!o){let e=this.hostname.split(/\./);for(let t=0,r=e.length;t<r;t++){let r=e[t];if(r&&!r.match(S)){let n="";for(let e=0,t=r.length;e<t;e++)r.charCodeAt(e)>127?n+="x":n+=r[e];if(!n.match(S)){let n=e.slice(0,t),i=e.slice(t+1),o=r.match(j);o&&(n.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(".")+a),this.hostname=n.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf("#");-1!==s&&(this.hash=a.substr(s),a=a.slice(0,s));let l=a.indexOf("?");return -1!==l&&(this.search=a.substr(l),a=a.slice(0,l)),a&&(this.pathname=a),N[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},k.prototype.parseHost=function(e){let t=C.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};let L=function(e,t){if(e&&e instanceof k)return e;let r=new k;return r.parse(e,t),r};e.s([],729435),e.i(729435),e.s(["decode",0,x,"encode",0,b,"format",()=>w,"parse",0,L],954489);var T=e.i(954489);let M=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z=/[\0-\x1F\x7F-\x9F]/,B=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,$=/[\$\+<->
1\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,R=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;e.s([],57177),e.i(57177),e.s(["Any",0,M,"Cc",0,z,"Cf",0,/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,"P",0,B,"S",0,$,"Z",0,R],107206);var P=e.i(107206);let I=new Uint16Array('áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ì\ud835\udd04raveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ì\ud835\udd38plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ì\ud835\udc9cign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ì\ud835\udd05pf;ì\ud835\udd39eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ì\ud835\udc9epÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ì\ud835\udd07Äaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ì\ud835\udd3bÆ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ì\ud835\udc9frok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ì\ud835\udd08raveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ì\ud835\udd3csilon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ì\ud835\udd09lledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ì\ud835\udd3dAll;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ì\ud835\udd0a;æpf;ì\ud835\udd3eeaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ì\ud835\udca2;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ì\ud835\udd40a;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ì\ud835\udd0dpf;ì\ud835\udd41Ç£ß\0ßr;ì\ud835\udca5rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ì\ud835\udd0epf;ì\ud835\udd42cr;ì\ud835\udca6ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ì\ud835\udd0fÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ì\ud835\udd43erÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ì\ud835\udd10nusPlus;æpf;
1ì\ud835\udd44cò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ì\ud835\udd11ÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ì\ud835\udca9ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ì\ud835\udd12raveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ì\ud835\udd46enCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ì\ud835\udcaaashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ì\ud835\udd13i;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ì\ud835\udcab;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ì\ud835\udd14pf;æcr;ì\ud835\udcacØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ì\ud835\udd16ortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ì\ud835\udd4aɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ì\ud835\udcaear;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ì\ud835\udd17Äeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ì\ud835\udd4bipleDot;æÄctáár;ì\ud835\udcafrok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ì\ud835\udd18raveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ì\ud835\udd4cÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ì\ud835\udcb0ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ì\ud835\udd19pf;ì\ud835\udd4dcr;ì\ud835\udcb1dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ì\ud835\udd1apf;ì\ud835\udd4ecr;ì\ud835\udcb2Èfiosáááár;ì\ud835\udd1b;äpf;ì\ud835\udd4fcr;ì\ud835\udcb3ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ì\ud835\udd1cpf;ì\ud835\udd50cr;ì\ud835\udcb4ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ì\ud835\udcb5௡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ì\ud835\udd1eraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ì\ud835\udd52Î;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ì\ud835\udcb6;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ì\ud835\udd1fgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ì\ud835\udd53Ä;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ì\ud835\udcb7mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ì\ud835\udd20Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ì\ud835\udd54oäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ì\ud835\udcb8ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ì\ud835\udd21arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ì\ud835\udd55Ê;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ì\ud835\udcb9;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ì\ud835\udd22Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ì\ud835\udd56Æalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á
1¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ì\ud835\udd23lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ì\ud835\udd57ÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ì\ud835\udcbbà¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ì\ud835\udd24Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ì\ud835\udd58Äciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ì\ud835\udd25sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ì\ud835\udd59bar;æÆcltâ¯â´â¸r;ì\ud835\udcbdasèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ì\ud835\udd26raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ì\ud835\udd5aa;ä¹uestè»Â¿ä¿Äciââr;ì\ud835\udcbenÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ì\ud835\udd27ath;ä·pf;ì\ud835\udd5bÇ£â¬\0â±r;ì\ud835\udcbfrcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ì\ud835\udd28reen;ä¸cy;ä
cy;äpf;ì\ud835\udd5ccr;ì\ud835\udcc0à®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
1ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ì\ud835\udd29Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ì\ud835\udd5dus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ì\ud835\udcc1mÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ì\ud835\udd2ao;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ì\ud835\udd5eÄct⣸⣽r;ì\ud835\udcc2pos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»Â ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ì\ud835\udd2bÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ì\ud835\udd5fè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ì\ud835\udcc3ortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ì\ud835\udd2cͯ⵹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ì\ud835\udd60Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
1astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ì\ud835\udd2dÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ì\ud835\udd61ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ì\ud835\udcc5;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ì\ud835\udd2epf;ì\ud835\udd62rime;æcr;ì\ud835\udcc6Æaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ì\ud835\udd2fÄaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ì\ud835\udd63us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ì\ud835\udcc7Äbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âì\ud835\udd30Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ì\ud835\udd64aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ì\ud835\udcc8tmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ì\ud835\udd31Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;
1aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ì\ud835\udd65rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ì\ud835\udcc9;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ì\ud835\udd32raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ì\ud835\udd66Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ì\ud835\udccaÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ì\ud835\udd33tré㦮suÄbp㧯㧱»à´Â»àµpf;ì\ud835\udd67roð໻tré㦴Äcuã¨ã¨r;ì\ud835\udccbÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ì\ud835\udd34pf;ì\ud835\udd68Ä;eá¹ã©¦atèá¹cr;ì\ud835\udcccà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ì\ud835\udd35ÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ì\ud835\udd69imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ì\ud835\udccdÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ì\ud835\udd36cy;äpf;ì\ud835\udd6acr;ì\ud835\udcceÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ì\ud835\udd37cy;ä¶grarr;æpf;ì\ud835\udd6bcr;ì\ud835\udccfÄjnã®
ã®;æj;æ'.split("").map(e=>e.charCodeAt(0))),q=new Uint16Array("Èaglq \x15\x18\x1bÉ\x0f\0\0\x12p;ä¦os;ä§t;ä¾t;ä¼uot;ä¢".split("").map(e=>e.charCodeAt(0))),H=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),O=null!=(s=String.fromCodePoint)?s:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function U(e){return e>=l.ZERO&&e<=l.NINE}(t=l||(l={}))[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z",(r=c||(c={}))[r.VALUE_LENGTH=49152]="VALUE_LENGTH",r[r.BRANCH_LENGTH=16256]="BRANCH_LENGTH",r[r.JUMP_TABLE=127]="JUMP_TABLE",(n=u||(u={}))[n.EntityStart=0]="EntityStart",n[n.NumericStart=1]="NumericStart",n[n.NumericDecimal=2]="NumericDecimal",n[n.NumericHex=3]="NumericHex",n[n.NamedEntity=4]="NamedEntity",(i=d||(d={}))[i.Legacy=0]="Legacy",i[i.Strict=1]="Strict",i[i.Attribute=2]="Attribute";class V{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=u.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=d.Strict}startEntity(e){this.decodeMode=e,this.state=u.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case u.EntityStart:if(e.charCodeAt(t)===l.NUM)return this.state=u.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=u.NamedEntity,this.stateNamedEntity(e,t);case u.NumericStart:return this.stateNumericStart(e,t);case u.NumericDecimal:return this.stateNumericDecimal(e,t);case u.NumericHex:return this.stateNumericHex(e,t);case u.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===l.LOWER_X?(this.state=u.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=u.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let i=r-t;
1this.result=this.result*Math.pow(n,i)+parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){let r=t;for(;t<e.length;){var n;let i=e.charCodeAt(t);if(!U(i)&&(!((n=i)>=l.UPPER_A)||!(n<=l.UPPER_F))&&(!(n>=l.LOWER_A)||!(n<=l.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!U(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r,n,i;if(this.consumed<=t)return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===l.SEMI)this.consumed+=1;else if(this.decodeMode===d.Strict)return 0;return this.emitCodePoint((n=this.result)>=55296&&n<=57343||n>1114111?65533:null!=(i=H.get(n))?i:n,this.consumed),this.errors&&(e!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],i=(n&c.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=function(e,t,r,n){let i=(t&c.BRANCH_LENGTH)>>7,a=t&c.JUMP_TABLE;if(0===i)return 0!==a&&n===a?r:-1;if(a){let t=n-a;return t<0||t>=i?-1:e[r+t]-1}let o=r,s=o+i-1;for(;o<=s;){let t=o+s>>>1,r=e[t];if(r<n)o=t+1;else{if(!(r>n))return e[t+i];s=t-1}}return -1}(r,n,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===d.Attribute&&(0===i||function(e){var t;return e===l.EQUALS||(t=e)>=l.UPPER_A&&t<=l.UPPER_Z||t>=l.LOWER_A&&t<=l.LOWER_Z||U(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((n=r[this.treeIndex])&c.VALUE_LENGTH)>>14)){if(a===l.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==d.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&c.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~c.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case u.NamedEntity:return 0!==this.result&&(this.decodeMode!==d.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case u.NumericDecimal:return this.emitNumericEntity(0,2);case u.NumericHex:return this.emitNumericEntity(0,3);case u.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case u.EntityStart:return 0}}}function W(e){let t="",r=new V(e,e=>t+=O(e));return function(e,n){let i=0,a=0;for(;(a=e.indexOf("&",a))>=0;){t+=e.slice(i,a),r.startEntity(n);let o=r.write(e,a+1);if(o<0){i=a+r.end();break}i=a+o,a=0===o?i+1:i}let o=t+e.slice(i);return t="",o}}let Z=W(I);function G(e,t=d.Legacy){return Z(e,t)}W(q);let K=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function X(e,t){return function(r){let n,i=0,a="";for(;n=e.exec(r);)i!==n.index&&(a+=r.substring(i,n.index)),a+=t.get(n[0].charCodeAt(0)),i=n.index+1;return a+r.substring(i)}}function Y(e){return"[object String]"===Object.prototype.toString.call(e)}null!=String.prototype.codePointAt||((e,t)=>(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)),X(/[&<>'"]/g,K),X(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),X(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),(a=p||(p={}))[a.XML=0]="XML",a[a.HTML=1]="HTML",(o=h||(h={}))[o.UTF8=0]="UTF8",o[o.ASCII=1]="ASCII",o[o.Extensive=2]="Extensive",o[o.Attribute=3]="Attribute",o[o.Text=4]="Text";let Q=Object.prototype.hasOwnProperty;function J(e,t){return Q.call(e,t)}function ee(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw TypeError(t+"must be object");Object.keys(t).forEach(function(r){e[r]=t[r]})}}),e}function et(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function er(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)&&!0}function en(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}let ei=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ea=RegExp(ei.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),eo=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function es(e){return 0>e.indexOf("\\")?e:e.replace(ei,"$1")}function el(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(ea,function(e,t,r){if(t)return t;if(35===r.charCodeAt(0)&&eo.test(r)){let t="x"===r[1].toLowerCase()?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return er(t)?en(t):e}let n=G(e);return n!==e?n:e})}let ec=/[&<>"]/,eu=/[&<>"]/g,ed={"&":"&","<":"<",">":">",'"':"""};function ep(e){return ed[e]}function eh(e){return ec.test(e)?e.replace(eu,ep):e}let em=/[.?*+^$[\]\\(){}|-]/g;function ef(e){return e.replace(em,"\\$&")}function eg(e){switch(e){case 9:case 32:return!0}return!1}function ev(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function ex(e){return B.test(e)||$.test(e)}function ey(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case
161:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function eb(e){return(e=e.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}let ew={mdurl:T,ucmicro:P};e.s(["arrayReplaceAt",()=>et,"assign",()=>ee,"escapeHtml",()=>eh,"escapeRE",()=>ef,"fromCodePoint",()=>en,"has",()=>J,"isMdAsciiPunct",()=>ey,"isPunctChar",()=>ex,"isSpace",()=>eg,"isString",()=>Y,"isValidEntityCode",()=>er,"isWhiteSpace",()=>ev,"lib",()=>ew,"normalizeReference",()=>eb,"unescapeAll",()=>el,"unescapeMd",()=>es],503809);var ek=e.i(503809);function e_(e,t,r){let n,i,a,o,s=e.posMax,l=e.pos;for(e.pos=t+1,n=1;e.pos<s;){if(93===(a=e.src.charCodeAt(e.pos))&&0==--n){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===a){if(o===e.pos-1)n++;else if(r)return e.pos=l,-1}}let c=-1;return i&&(c=e.pos),e.pos=l,c}function eC(e,t,r){let n,i=t,a={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<r&&10!==(n=e.charCodeAt(i))&&60!==n;){if(62===n){a.pos=i+1,a.str=el(e.slice(t+1,i)),a.ok=!0;break}if(92===n&&i+1<r){i+=2;continue}i++}return a}let o=0;for(;i<r&&32!==(n=e.charCodeAt(i))&&!(n<32)&&127!==n;){if(92===n&&i+1<r){if(32===e.charCodeAt(i+1))break;i+=2;continue}if(40===n&&++o>32)return a;
1if(41===n){if(0===o)break;o--}i++}return t===i||0!==o||(a.str=el(e.slice(t,i)),a.pos=i,a.ok=!0),a}function eE(e,t,r,n){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(a>=r)return o;let n=e.charCodeAt(a);if(34!==n&&39!==n&&40!==n)return o;t++,a++,40===n&&(n=41),o.marker=n}for(;a<r;){if((i=e.charCodeAt(a))===o.marker)return o.pos=a+1,o.str+=el(e.slice(t,a)),o.ok=!0,o;if(40===i&&41===o.marker)return o;92===i&&a+1<r&&a++,a++}return o.can_continue=!0,o.str+=el(e.slice(t,a)),o}e.s([],313224),e.i(313224),e.s(["parseLinkDestination",()=>eC,"parseLinkLabel",()=>e_,"parseLinkTitle",()=>eE],876139);var eD=e.i(876139);let eA={};function eS(){this.rules=ee({},eA)}function ej(){this.__rules__=[],this.__cache__=null}function eF(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}function eN(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}eA.code_inline=function(e,t,r,n,i){let a=e[t];return"<code"+i.renderAttrs(a)+">"+eh(a.content)+"</code>"},eA.code_block=function(e,t,r,n,i){let a=e[t];return"<pre"+i.renderAttrs(a)+"><code>"+eh(e[t].content)+"</code></pre>\n"},eA.fence=function(e,t,r,n,i){let a,o=e[t],s=o.info?el(o.info).trim():"",l="",c="";if(s){let e=s.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(0===(a=r.highlight&&r.highlight(o.content,l,c)||eh(o.content)).indexOf("<pre"))return a+"\n";if(s){let e=o.attrIndex("class"),t=o.attrs?o.attrs.slice():[];return e<0?t.push(["class",r.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+r.langPrefix+l),`<pre><code${i.renderAttrs({attrs:t})}>${a}</code></pre> 2`}return`<pre><code${i.renderAttrs(o)}>${a}</code></pre> 3`},eA.image=function(e,t,r,n,i){let a=e[t];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,r,n),i.renderToken(e,t,r)},eA.hardbreak=function(e,t,r){return r.xhtmlOut?"<br />\n":"<br>\n"},eA.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},eA.text=function(e,t){return eh(e[t].content)},eA.html_block=function(e,t){return e[t].content},eA.html_inline=function(e,t){return e[t].content},eS.prototype.renderAttrs=function(e){let t,r,n;if(!e.attrs)return"";for(t=0,n="",r=e.attrs.length;t<r;t++)n+=" "+eh(e.attrs[t][0])+'="'+eh(e.attrs[t][1])+'"';return n},eS.prototype.renderToken=function(e,t,r){let n=e[t],i="";if(n.hidden)return"";n.block&&-1!==n.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===n.nesting?"</":"<")+n.tag,i+=this.renderAttrs(n),0===n.nesting&&r.xhtmlOut&&(i+=" /");let a=!1;if(n.block&&(a=!0,1===n.nesting&&t+1<e.length)){let r=e[t+1];"inline"===r.type||r.hidden?a=!1:-1===r.nesting&&r.tag===n.tag&&(a=!1)}return i+(a?">\n":">")},eS.prototype.renderInline=function(e,t,r){let n="",i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;void 0!==i[o]?n+=i[o](e,a,t,r,this):n+=this.renderToken(e,a,t)}return n},eS.prototype.renderInlineAsText=function(e,t,r){let n="";for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case"text":case"html_inline":case"html_block":n+=e[i].content;break;case"image":n+=this.renderInlineAsText(e[i].children,t,r);break;case"softbreak":case"hardbreak":n+="\n"}return n},eS.prototype.render=function(e,t,r){let n="",i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;"inline"===o?n+=this.renderInline(e[a].children,t,r):void 0!==i[o]?n+=i[o](e,a,t,r,this):n+=this.renderToken(e,a,t,r)}return n},ej.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return -1},ej.prototype.__compile__=function(){let e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){0>t.indexOf(e)&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(r){!r.enabled||t&&0>r.alt.indexOf(t)||e.__cache__[t].push(r.fn)})})},ej.prototype.at=function(e,t,r){let n=this.__find__(e);if(-1===n)throw Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=(r||{}).alt||[],this.__cache__=null},ej.prototype.before=function(e,t,r,n){let i=this.__find__(e);
3if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:(n||{}).alt||[]}),this.__cache__=null},ej.prototype.after=function(e,t,r,n){let i=this.__find__(e);if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:(n||{}).alt||[]}),this.__cache__=null},ej.prototype.push=function(e,t,r){this.__rules__.push({name:e,enabled:!0,fn:t,alt:(r||{}).alt||[]}),this.__cache__=null},ej.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(function(e){let n=this.__find__(e);if(n<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!0,r.push(e)},this),this.__cache__=null,r},ej.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},ej.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(function(e){let n=this.__find__(e);if(n<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!1,r.push(e)},this),this.__cache__=null,r},ej.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},eF.prototype.attrIndex=function(e){if(!this.attrs)return -1;let t=this.attrs;for(let r=0,n=t.length;r<n;r++)if(t[r][0]===e)return r;return -1},eF.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},eF.prototype.attrSet=function(e,t){let r=this.attrIndex(e),n=[e,t];r<0?this.attrPush(n):this.attrs[r]=n},eF.prototype.attrGet=function(e){let t=this.attrIndex(e),r=null;return t>=0&&(r=this.attrs[t][1]),r},eF.prototype.attrJoin=function(e,t){let r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t},eN.prototype.Token=eF;let eL=/\r\n?|\n/g,eT=/\0/g,eM=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,ez=/\((c|tm|r)\)/i,eB=/\((c|tm|r)\)/ig,e$={c:"©",r:"®",tm:"â¢"};function eR(e,t){return e$[t.toLowerCase()]}let eP=/['"]/,eI=/['"]/g;function eq(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}let eH=[["normalize",function(e){let t;t=(t=e.src.replace(eL,"\n")).replace(eT,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){let t=e.tokens;for(let r=0,n=t.length;r<n;r++){let n=t[r];"inline"===n.type&&e.md.inline.parse(n.content,e.md,e.env,n.children)}}],["linkify",function(e){let t=e.tokens;if(e.md.options.linkify)for(let i=0,a=t.length;i<a;i++){if("inline"!==t[i].type||!e.md.linkify.pretest(t[i].content))continue;let a=t[i].children,o=0;for(let s=a.length-1;s>=0;s--){let l=a[s];if("link_close"===l.type){for(s--;a[s].level!==l.level&&"link_open"!==a[s].type;)s--;continue}if("html_inline"===l.type){var r,n;r=l.content,/^<a[>\s]/i.test(r)&&o>0&&o--,n=l.content,/^<\/a\s*>/i.test(n)&&o++}if(!(o>0)&&"text"===l.type&&e.md.linkify.test(l.content)){let r=l.content,n=e.md.linkify.match(r),o=[],c=l.level,u=0;n.length>0&&0===n[0].index&&s>0&&"text_special"===a[s-1].type&&(n=n.slice(1));for(let t=0;t<n.length;t++){let i=n[t].url,a=e.md.normalizeLink(i);if(!e.md.validateLink(a))continue;let s=n[t].text;s=n[t].schema?"mailto:"!==n[t].schema||/^mailto:/i.test(s)?e.md.normalizeLinkText(s):e.md.normalizeLinkText("mailto:"+s).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+s).replace(/^http:\/\//,"");let l=n[t].index;if(l>u){let t=new e.Token("text","",0);t.content=r.slice(u,l),t.level=c,o.push(t)}let d=new e.Token("link_open","a",1);d.attrs=[["href",a]],d.level=c++,d.markup="linkify",d.info="auto",o.push(d);let p=new e.Token("text","",0);p.content=s,p.level=c,o.push(p);let h=new e.Token("link_close","a",-1);h.level=--c,h.markup="linkify",h.info="auto",o.push(h),u=n[t].lastIndex}if(u<r.length){let t=new e.Token("text","",0);t.content=r.slice(u),t.level=c,o.push(t)}t[i].children=a=et(a,s,o)}}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(ez.test(e.tokens[t].content)&&function(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];"text"!==n.type||t||(n.content=n.content.replace(eB,eR)),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}(e.tokens[t].children),eM.test(e.tokens[t].content)&&function(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];"text"===n.type&&!t&&eM.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"â¦").replace(/([?!])â¦/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1â").replace(/(^|\s)--(?=\s|$)/mg,"$1â").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1â")),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&eP.test(e.tokens[t].content)&&function(e,t){let r,n=[];for(let i=0;i<e.length;i++){let a=e[i],o=e[i].level;for(r=n.length-1;r>=0&&!(n[r].level<=o);r--);if(n.length=r+1,"text"!==a.type)continue;let s=a.content,l=0,c=s.length;e:for(;l<c;){eI.lastIndex=l;let u=eI.exec(s);if(!u)break;let d=!0,p=!0;l=u.index+1;let h="'"===u[0],m=32;if(u.index-1>=0)m=s.charCodeAt(u.index-1);else for(r=i-1;r>=0&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r--)if(e[r].content){m=e[r].content.charCodeAt(e[r].content.length-1);break}let f=32;if(l<c)f=s.charCodeAt(l);else for(r=i+1;r<e.length&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r++)if(e[r].content){f=e[r].content.charCodeAt(0);break}let g=ey(m)||ex(String.fromCharCode(m)),v=ey(f)||ex(String.fromCharCode(f)),x=ev(m),y=ev(f);if(y?d=!1:v&&!(x||g)&&(d=!1),x?p=!1:g&&!(y||v)&&(p=!1),34===f&&'"'===u[0]&&m>=48&&m<=57&&(p=d=!1),d&&p&&(d=g,p=v),!d&&!p){h&&(a.content=eq(a.content,u.index,"â"));continue}if(p)for(r=n.length-1;r>=0;r--){let d=n[r];if(n[r].level<o)break;if(d.single===h&&n[r].level===o){let o,p;d=n[r],h?(o=t.md.options.quotes[2],p=t.md.options.quotes[3]):(o=t.md.options.quotes[0],p=t.md.options.quotes[1]),a.content=eq(a.content,u.index,p),e[d.token].content=eq(e[d.token].content,d.pos,o),l+=p.length-1,d.token===i&&(l+=o.length-1),c=(s=a.content).length,n.length=r;continue e}}d?n.push({token:i,pos:u.index,single:h,level:o}):p&&h&&(a.content=eq(a.content,u.index,"â"))}}}(e.tokens[t].children,e)}],["text_join",function(e){let t,r,n=e.tokens,i=n.length;for(let e=0;e<i;e++){if("inline"!==n[e].type)continue;let i=n[e].children,a=i.length;for(t=0;t<a;t++)"text_special"===i[t].type&&(i[t].type="text");for(t=r=0;t<a;t++)"text"===i[t].type&&t+1<a&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}}]];function eO(){this.ruler=new ej;for(let e=0;e<eH.length;e++)this.ruler.push(eH[e][0],eH[e][1])}function eU(e,t,r,n){this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let i=this.src;for(let e=0,t=0,r=0,n=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o)if(eg(s)){r++,9===s?n+=4-n%4:n++;continue}else o=!0;(10===s||t===a-1)&&(10!==s&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(r),this.sCount.push(n),this.bsCount.push(0),o=!1,r=0,n=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}function eV(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function eW(e){let t=[],r=e.length,n=0,i=e.charCodeAt(n),a=!1,o=0,s="";for(;n<r;)124===i&&(a?(s+=e.substring(o,n-1),o=n):(t.push(s+e.substring(o,n)),s="",o=n+1)),a=92===i,n++,i=e.charCodeAt(n);return t.push(s+e.substring(o)),t}function eZ(e,t){let r=e.eMarks[t],n=e.bMarks[t]+e.tShift[t],i=e.src.charCo
3deAt(n++);return 42!==i&&45!==i&&43!==i||n<r&&!eg(e.src.charCodeAt(n))?-1:n}function eG(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t],i=r;if(i+1>=n)return -1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return -1;for(;;){if(i>=n)return -1;if((a=e.src.charCodeAt(i++))>=48&&a<=57){if(i-r>=10)return -1;continue}if(41===a||46===a)break;return -1}return i<n&&!eg(a=e.src.charCodeAt(i))?-1:i}eO.prototype.process=function(e){let t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)},eO.prototype.State=eN,eU.prototype.push=function(e,t,r){let n=new eF(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},eU.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},eU.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},eU.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&eg(this.src.charCodeAt(e));e++);return e},eU.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!eg(this.src.charCodeAt(--e)))return e+1;return e},eU.prototype.skipChars=function(e,t){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===t;e++);return e},eU.prototype.skipCharsBack=function(e,t,r){if(e<=r)return e;for(;e>r;)if(t!==this.src.charCodeAt(--e))return e+1;return e},eU.prototype.getLines=function(e,t,r,n){if(e>=t)return"";let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e,s=0,l=this.bMarks[o],c=l;for(e=o+1<t||n?this.eMarks[o]+1:this.eMarks[o];c<e&&s<r;){let e=this.src.charCodeAt(c);if(eg(e))9===e?s+=4-(s+this.bsCount[o])%4:s++;else if(c-l<this.tShift[o])s++;else break;c++}s>r?i[a]=Array(s-r+1).join(" ")+this.src.slice(c,e):i[a]=this.src.slice(c,e)}return i.join("")},eU.prototype.Token=eF;let eK="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",eX="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",eY=RegExp("^(?:"+eK+"|"+eX+"|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),eQ=RegExp("^(?:"+eK+"|"+eX+")"),eJ=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp("^</?(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|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?=(\\s|/?>|$))","i"),/^$/,!0],[RegExp(eQ.source+"\\s*$"),/^$/,!1]],e0=[["table",function(e,t,r,n){let i;if(t+2>r)return!1;let a=t+1;if(e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)return!1;let o=e.bMarks[a]+e.tShift[a];if(o>=e.eMarks[a])return!1;let s=e.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s||o>=e.eMarks[a])return!1;let l=e.src.charCodeAt(o++);if(124!==l&&45!==l&&58!==l&&!eg(l)||45===s&&eg(l))return!1;for(;o<e.eMarks[a];){let t=e.src.charCodeAt(o);if(124!==t&&45!==t&&58!==t&&!eg(t))return!1;o++}let c=eV(e,t+1),u=c.split("|"),d=[];for(let e=0;e<u.length;e++){let t=u[e].trim();if(!t)if(0===e||e===u.length-1)continue;else return!1;if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?d.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?d.push("left"):d.push("")}if(-1===(c=eV(e,t).trim()).indexOf("|")||e.sCount[t]-e.blkIndent>=4)return!1;(u=eW(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();let p=u.length;if(0===p||p!==d.length)return!1;if(n)return!0;let h=e.parentType;e.parentType="table";let m=e.md.block.ruler.getRules("blockquote"),f=e.push("table_open","table",1),g=[t,0];f.map=g,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<u.length;t++){let r=e.push("th_open","th",1);d[t]&&(r.attrs=[["style","text-align:"+d[t]]]);let n=e.push("inline","",0);n.content=u[t].trim(),n.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let v=0;for(a=t+2;a<r&&!(e.sCount[a]<e.blkIndent);a++){let n=!1;for(let t=0,i=m.length;t<i;t++)if(m[t](e,a,r,!0)){n=!0;break}if(n||!(c=eV(e,a).trim())||e.sCount[a]-e.blkIndent>=4||((u=eW(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),(v+=p-u.length)>65536))break;a===t+2&&(e.push("tbody_open","tbody",1).map=i=[t+2,0]),e.push("tr_open","tr",1).map=[a,a+1];for(let t=0;t<p;t++){let r=e.push("td_open","td",1);d[t]&&(r.attrs=[["style","text-align:"+d[t]]]);let n=e.push("inline","",0);n.content=u[t]?u[t].trim():"",n.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return i&&(e.push("tbody_close","tbody",-1),i[1]=a),e.push("table_close","table",-1),g[1]=a,e.parentType=h,e.line=a,!0},["paragraph","reference"]],["code",function(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,i=n;for(;n<r;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){i=++n;continue}break}e.line=i;let a=e.push("code_block","code",0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",a.map=[t,e.line],!0}],["fence",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;
3let o=e.src.charCodeAt(i);if(126!==o&&96!==o)return!1;let s=i,l=(i=e.skipChars(i,o))-s;if(l<3)return!1;let c=e.src.slice(s,i),u=e.src.slice(i,a);if(96===o&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let d=t,p=!1;for(;!(++d>=r)&&(!((i=s=e.bMarks[d]+e.tShift[d])<(a=e.eMarks[d]))||!(e.sCount[d]<e.blkIndent));){;if(!(e.src.charCodeAt(i)!==o||e.sCount[d]-e.blkIndent>=4||(i=e.skipChars(i,o))-s<l)&&!((i=e.skipSpaces(i))<a)){p=!0;break}}l=e.sCount[t],e.line=d+ +!!p;let h=e.push("fence","code",0);return h.info=u,h.content=e.getLines(t+1,d,l,!0),h.markup=c,h.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,r,n){let i,a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(a))return!1;if(n)return!0;let l=[],c=[],u=[],d=[],p=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let m=!1;for(i=t;i<r;i++){let t=e.sCount[i]<e.blkIndent;if((a=e.bMarks[i]+e.tShift[i])>=(o=e.eMarks[i]))break;if(62===e.src.charCodeAt(a++)&&!t){let t,r,n=e.sCount[i]+1;32===e.src.charCodeAt(a)?(a++,n++,r=!1,t=!0):9===e.src.charCodeAt(a)?(t=!0,(e.bsCount[i]+n)%4==3?(a++,n++,r=!1):r=!0):t=!1;let s=n;for(l.push(e.bMarks[i]),e.bMarks[i]=a;a<o;){let t=e.src.charCodeAt(a);if(eg(t))9===t?s+=4-(s+e.bsCount[i]+ +!!r)%4:s++;else break;a++}m=a>=o,c.push(e.bsCount[i]),e.bsCount[i]=e.sCount[i]+1+ +!!t,u.push(e.sCount[i]),e.sCount[i]=s-n,d.push(e.tShift[i]),e.tShift[i]=a-e.bMarks[i];continue}if(m)break;let n=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,r,!0)){n=!0;break}if(n){e.lineMax=i,0!==e.blkIndent&&(l.push(e.bMarks[i]),c.push(e.bsCount[i]),d.push(e.tShift[i]),u.push(e.sCount[i]),e.sCount[i]-=e.blkIndent);break}l.push(e.bMarks[i]),c.push(e.bsCount[i]),d.push(e.tShift[i]),u.push(e.sCount[i]),e.sCount[i]=-1}let f=e.blkIndent;e.blkIndent=0;let g=e.push("blockquote_open","blockquote",1);g.markup=">";let v=[t,0];g.map=v,e.md.block.tokenize(e,t,i),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=s,e.parentType=h,v[1]=e.line;for(let r=0;r<d.length;r++)e.bMarks[r+t]=l[r],e.tShift[r+t]=d[r],e.sCount[r+t]=u[r],e.bsCount[r+t]=c[r];return e.blkIndent=f,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,r,n){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(42!==o&&45!==o&&95!==o)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!eg(t))return!1;t===o&&s++}if(s<3)return!1;if(n)return!0;e.line=t+1;let l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(o)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,r,n){let i,a,o,s,l,c,u,d=t,p=!0;if(e.sCount[d]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[d]-e.listIndent>=4&&e.sCount[d]<e.blkIndent)return!1;let h=!1;if(n&&"paragraph"===e.parentType&&e.sCount[d]>=e.blkIndent&&(h=!0),(u=eG(e,d))>=0){if(l=!0,o=e.bMarks[d]+e.tShift[d],c=Number(e.src.slice(o,u-1)),h&&1!==c)return!1}else{if(!((u=eZ(e,d))>=0))return!1;l=!1}if(h&&e.skipSpaces(u)>=e.eMarks[d])return!1;if(n)return!0;let m=e.src.charCodeAt(u-1),f=e.tokens.length;l?(s=e.push("ordered_list_open","ol",1),1!==c&&(s.attrs=[["start",c]])):s=e.push("bullet_list_open","ul",1);let g=[d,0];s.map=g,s.markup=String.fromCharCode(m);let v=!1,x=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";d<r;){let t;a=u,i=e.eMarks[d];let n=e.sCount[d]+u-(e.bMarks[d]+e.tShift[d]),c=n;for(;a<i;){let t=e.src.charCodeAt(a);if(9===t)c+=4-(c+e.bsCount[d])%4;else if(32===t)c++;else break;a++}let h=a;(t=h>=i?1:c-n)>4&&(t=1);let f=n+t;(s=e.push("list_item_open","li",1)).markup=String.fromCharCode(m);let g=[d,0];s.map=g,l&&(s.info=e.src.slice(o,u-1));let y=e.tight,b=e.tShift[d],w=e.sCount[d],k=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=f,e.tight=!0,e.tShift[d]=h-e.bMarks[d],e.sCount[d]=c,h>=i&&e.isEmpty(d+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,d,r,!0),(!e.tight||v)&&(p=!1),v=e.line-d>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[d]=b,e.sCount[d]=w,e.tight=y,(s=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),d=e.line,g[1]=d,d>=r||e.sCount[d]<e.blkIndent||e.sCount[d]-e.blkIndent>=4)break;let _=!1;for(let t=0,n=x.length;t<n;t++)if(x[t](e,d,r,!0)){_=!0;break}if(_)break;if(l){if((u=eG(e,d))<0)break;o=e.bMarks[d]+e.tShift[d]}else if((u=eZ(e,d))<0)break;
3if(m!==e.src.charCodeAt(u-1))break}return(s=l?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(m),g[1]=d,e.line=d,e.parentType=y,p&&function(e,t){let r=e.level+2;for(let n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,f),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,r,n){let i,a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(a))return!1;function l(t){let r=e.lineMax;if(t>=r||e.isEmpty(t))return null;let n=!1;if(e.sCount[t]-e.blkIndent>3&&(n=!0),e.sCount[t]<0&&(n=!0),!n){let n=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let a=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](e,t,r,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(a,o+1);o=c.length;let u=-1;for(a=1;a<o;a++){let e=c.charCodeAt(a);if(91===e)return!1;if(93===e){u=a;break}if(10===e){let e=l(s);null!==e&&(c+=e,o=c.length,s++)}else if(92===e&&++a<o&&10===c.charCodeAt(a)){let e=l(s);null!==e&&(c+=e,o=c.length,s++)}}if(u<0||58!==c.charCodeAt(u+1))return!1;for(a=u+2;a<o;a++){let e=c.charCodeAt(a);if(10===e){let e=l(s);null!==e&&(c+=e,o=c.length,s++)}else if(eg(e));else break}let d=e.md.helpers.parseLinkDestination(c,a,o);if(!d.ok)return!1;let p=e.md.normalizeLink(d.str);if(!e.md.validateLink(p))return!1;let h=a=d.pos,m=s,f=a;for(;a<o;a++){let e=c.charCodeAt(a);if(10===e){let e=l(s);null!==e&&(c+=e,o=c.length,s++)}else if(eg(e));else break}let g=e.md.helpers.parseLinkTitle(c,a,o);for(;g.can_continue;){let t=l(s);if(null===t)break;c+=t,a=o,o=c.length,s++,g=e.md.helpers.parseLinkTitle(c,a,o,g)}for(a<o&&f!==a&&g.ok?(i=g.str,a=g.pos):(i="",a=h,s=m);a<o&&eg(c.charCodeAt(a));)a++;if(a<o&&10!==c.charCodeAt(a)&&i)for(i="",a=h,s=m;a<o&&eg(c.charCodeAt(a));)a++;if(a<o&&10!==c.charCodeAt(a))return!1;let v=eb(c.slice(1,u));return!!v&&(!!n||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[v]&&(e.env.references[v]={title:i,href:p}),e.line=s,!0))}],["html_block",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||60!==e.src.charCodeAt(i))return!1;let o=e.src.slice(i,a),s=0;for(;s<eJ.length&&!eJ[s][0].test(o);s++);if(s===eJ.length)return!1;if(n)return eJ[s][2];let l=t+1;if(!eJ[s][1].test(o)){for(;l<r&&!(e.sCount[l]<e.blkIndent);l++)if(i=e.bMarks[l]+e.tShift[l],a=e.eMarks[l],o=e.src.slice(i,a),eJ[s][1].test(o)){0!==o.length&&l++;break}}e.line=l;let c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(35!==o||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);35===o&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!eg(o))return!1;if(n)return!0;a=e.skipSpacesBack(a,i);let l=e.skipCharsBack(a,35,i);l>i&&eg(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;let c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[t,e.line];let u=e.push("inline","",0);return u.content=e.src.slice(i,a).trim(),u.map=[t,e.line],u.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,r){let n,i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.parentType;e.parentType="paragraph";let o=0,s=t+1;for(;s<r&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],r=e.eMarks[s];if(t<r&&(45===(n=e.src.charCodeAt(t))||61===n)&&(t=e.skipChars(t,n),(t=e.skipSpaces(t))>=r)){o=61===n?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let n=0,a=i.length;n<a;n++)if(i[n](e,s,r,!0)){t=!0;break}if(t)break}if(!o)return!1;let l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;let c=e.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(n),c.map=[t,e.line];let u=e.push("inline","",0);return u.content=l,u.map=[t,e.line-1],u.children=[],e.push("heading_close","h"+String(o),-1).markup=String.fromCharCode(n),e.parentType=a,!0}],["paragraph",function(e,t,r){let n=e.md.block.ruler.getRules("paragraph"),i=e.parentType,a=t+1;for(e.parentType="paragraph";a<r&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](e,a,r,!0)){t=!0;break}if(t)break}let o=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a,e.push("paragraph_open","p",1).map=[t,e.line];let s=e.push("inline","",0);return s.content=o,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function e1(){this.ruler=new ej;for(let e=0;e<e0.length;e++)this.ruler.push(e0[e][0],e0[e][1],{alt:(e0[e][2]||[]).slice()})}function e2(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}e1.prototype.tokenize=function(e,t,r){let n=this.ruler.getRules(""),i=n.length,a=e.md.options.maxNesting,o=t,
3s=!1;for(;o<r&&(e.line=o=e.skipEmptyLines(o),!(o>=r)&&!(e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=r;break}let t=e.line,l=!1;for(let a=0;a<i;a++)if(l=n[a](e,o,r,!1)){if(t>=e.line)throw Error("block rule didn't increment state.line");break}if(!l)throw Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(o=e.line)<r&&e.isEmpty(o)&&(s=!0,e.line=++o)}},e1.prototype.parse=function(e,t,r,n){if(!e)return;let i=new this.State(e,t,r,n);this.tokenize(i,i.line,i.lineMax)},e1.prototype.State=eU,e2.prototype.pushPending=function(){let e=new eF("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},e2.prototype.push=function(e,t,r){this.pending&&this.pushPending();let n=new eF(e,t,r),i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n},e2.prototype.scanDelims=function(e,t){let r=this.posMax,n=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32,a=e;for(;a<r&&this.src.charCodeAt(a)===n;)a++;let o=a-e,s=a<r?this.src.charCodeAt(a):32,l=ey(i)||ex(String.fromCharCode(i)),c=ey(s)||ex(String.fromCharCode(s)),u=ev(i),d=ev(s),p=!d&&(!c||u||l),h=!u&&(!l||d||c);return{can_open:p&&(t||!h||l),can_close:h&&(t||!p||c),length:o}},e2.prototype.Token=eF;let e3=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,e5=[];for(let e=0;e<256;e++)e5.push(0);function e4(e,t){let r,n=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(126!==i.marker||-1===i.end)continue;let o=t[i.end];(r=e.tokens[i.token]).type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",(r=e.tokens[o.token]).type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&n.push(o.token-1)}for(;n.length;){let t=n.pop(),i=t+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;t!==--i&&(r=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=r)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){e5[e.charCodeAt(0)]=1});function e8(e,t){let r=t.length;for(let n=r-1;n>=0;n--){let r=t[n];if(95!==r.marker&&42!==r.marker||-1===r.end)continue;let i=t[r.end],a=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?o+o:o,s.content="";let l=e.tokens[i.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?o+o:o,l.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}let e6=/^([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])?)*)$/,e9=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,e7=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,te=/^&([a-z][a-z0-9]{1,31});/i;function tt(e){let t={},r=e.length;if(!r)return;let n=0,i=-2,a=[];for(let o=0;o<r;o++){let r=e[o];if(a.push(0),(e[n].marker!==r.marker||i!==r.token-1)&&(n=o),i=r.token,r.length=r.length||0,!r.close)continue;t.hasOwnProperty(r.marker)||(t[r.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[r.marker][3*!!r.open+r.length%3],l=n-a[n]-1,c=l;for(;l>s;l-=a[l]+1){let t=e[l];if(t.marker===r.marker&&t.open&&t.end<0){let n=!1;if((t.close||r.open)&&(t.length+r.length)%3==0&&(t.length%3!=0||r.length%3!=0)&&(n=!0),!n){let n=l>0&&!e[l-1].open?a[l-1]+1:0;a[o]=o-l+n,a[l]=n,r.open=!1,t.end=o,t.close=!1,c=-1,i=-2;break}}}-1!==c&&(t[r.marker][3*!!r.open+(r.length||0)%3]=c)}}let tr=[["text",function(e,t){let r=e.pos;for(;r<e.posMax&&!function(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}(e.src.charCodeAt(r));)r++;return r!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}],["linkify",function(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let r=e.pos;if(r+3>
3e.posMax||58!==e.src.charCodeAt(r)||47!==e.src.charCodeAt(r+1)||47!==e.src.charCodeAt(r+2))return!1;let n=e.pending.match(e3);if(!n)return!1;let i=n[1],a=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!a)return!1;let o=a.url;if(o.length<=i.length)return!1;o=o.replace(/\*+$/,"");let s=e.md.normalizeLink(o);if(!e.md.validateLink(s))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);let t=e.push("link_open","a",1);t.attrs=[["href",s]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);let r=e.push("link_close","a",-1);r.markup="linkify",r.info="auto"}return e.pos+=o.length-i.length,!0}],["newline",function(e,t){let r=e.pos;if(10!==e.src.charCodeAt(r))return!1;let n=e.pending.length-1,i=e.posMax;if(!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){let t=n-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<i&&eg(e.src.charCodeAt(r));)r++;return e.pos=r,!0}],["escape",function(e,t){let r=e.pos,n=e.posMax;if(92!==e.src.charCodeAt(r)||++r>=n)return!1;let i=e.src.charCodeAt(r);if(10===i){for(t||e.push("hardbreak","br",0),r++;r<n&&eg(i=e.src.charCodeAt(r));)r++;return e.pos=r,!0}let a=e.src[r];if(i>=55296&&i<=56319&&r+1<n){let t=e.src.charCodeAt(r+1);t>=56320&&t<=57343&&(a+=e.src[r+1],r++)}let o="\\"+a;if(!t){let t=e.push("text_special","",0);i<256&&0!==e5[i]?t.content=a:t.content=o,t.markup=o,t.info="escape"}return e.pos=r+1,!0}],["backticks",function(e,t){let r,n=e.pos;if(96!==e.src.charCodeAt(n))return!1;let i=n;n++;let a=e.posMax;for(;n<a&&96===e.src.charCodeAt(n);)n++;let o=e.src.slice(i,n),s=o.length;if(e.backticksScanned&&(e.backticks[s]||0)<=i)return t||(e.pending+=o),e.pos+=s,!0;let l=n;for(;-1!==(r=e.src.indexOf("`",l));){for(l=r+1;l<a&&96===e.src.charCodeAt(l);)l++;let i=l-r;if(i===s){if(!t){let t=e.push("code_inline","code",0);t.markup=o,t.content=e.src.slice(n,r).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[i]=r}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=s,!0}],["strikethrough",function(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||126!==n)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(n);if(a<2)return!1;a%2&&(e.push("text","",0).content=o,a--);for(let t=0;t<a;t+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}],["emphasis",function(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||95!==n&&42!==n)return!1;let i=e.scanDelims(e.pos,42===n);for(let t=0;t<i.length;t++)e.push("text","",0).content=String.fromCharCode(n),e.delimiters.push({marker:n,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}],["link",function(e,t){let r,n,i,a,o="",s="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;let u=e.pos,d=e.posMax,p=e.pos+1,h=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(h<0)return!1;let m=h+1;if(m<d&&40===e.src.charCodeAt(m)){for(c=!1,m++;m<d&&(eg(r=e.src.charCodeAt(m))||10===r);m++);if(m>=d)return!1;if(l=m,(i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax)).ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o="",l=m;m<d&&(eg(r=e.src.charCodeAt(m))||10===r);m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&l!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(eg(r=e.src.charCodeAt(m))||10===r);m++);}(m>=d||41!==e.src.charCodeAt(m))&&(c=!0),m++}if(c){if(void 0===e.env.references)return!1;if(m<d&&91===e.src.charCodeAt(m)?(l=m+1,(m=e.md.helpers.parseLinkLabel(e,m))>=0?n=e.src.slice(l,m++):m=h+1):m=h+1,n||(n=e.src.slice(p,h)),!(a=e.env.references[eb(n)]))return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=p,e.posMax=h;let t=e.push("link_open","a",1),r=[["href",o]];t.attrs=r,s&&r.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=d,!0}],["image",function(e,t){let r,n,i,a,o,s,l,c,u="",d=e.pos,p=e.posMax;
3if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let h=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if((a=m+1)<p&&40===e.src.charCodeAt(a)){for(a++;a<p&&(eg(r=e.src.charCodeAt(a))||10===r);a++);if(a>=p)return!1;for(c=a,(s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax)).ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=""),c=a;a<p&&(eg(r=e.src.charCodeAt(a))||10===r);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<p&&c!==a&&s.ok)for(l=s.str,a=s.pos;a<p&&(eg(r=e.src.charCodeAt(a))||10===r);a++);else l="";if(a>=p||41!==e.src.charCodeAt(a))return e.pos=d,!1;a++}else{if(void 0===e.env.references)return!1;if(a<p&&91===e.src.charCodeAt(a)?(c=a+1,(a=e.md.helpers.parseLinkLabel(e,a))>=0?i=e.src.slice(c,a++):a=m+1):a=m+1,i||(i=e.src.slice(h,m)),!(o=e.env.references[eb(i)]))return e.pos=d,!1;u=o.href,l=o.title}if(!t){n=e.src.slice(h,m);let t=[];e.md.inline.parse(n,e.md,e.env,t);let r=e.push("image","img",0),i=[["src",u],["alt",""]];r.attrs=i,r.children=t,r.content=n,l&&i.push(["title",l])}return e.pos=a,e.posMax=p,!0}],["autolink",function(e,t){let r=e.pos;if(60!==e.src.charCodeAt(r))return!1;let n=e.pos,i=e.posMax;for(;;){if(++r>=i)return!1;let t=e.src.charCodeAt(r);if(60===t)return!1;if(62===t)break}let a=e.src.slice(n+1,r);if(e9.test(a)){let r=e.md.normalizeLink(a);if(!e.md.validateLink(r))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=a.length+2,!0}if(e6.test(a)){let r=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(r))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=a.length+2,!0}return!1}],["html_inline",function(e,t){let r;if(!e.md.options.html)return!1;let n=e.posMax,i=e.pos;if(60!==e.src.charCodeAt(i)||i+2>=n)return!1;let a=e.src.charCodeAt(i+1);if(33!==a&&63!==a&&47!==a&&(!((r=32|a)>=97)||!(r<=122)))return!1;let o=e.src.slice(i).match(eY);if(!o)return!1;if(!t){var s,l;let t=e.push("html_inline","",0);t.content=o[0],s=t.content,/^<a[>\s]/i.test(s)&&e.linkLevel++,l=t.content,/^<\/a\s*>/i.test(l)&&e.linkLevel--}return e.pos+=o[0].length,!0}],["entity",function(e,t){let r=e.pos,n=e.posMax;if(38!==e.src.charCodeAt(r)||r+1>=n)return!1;if(35===e.src.charCodeAt(r+1)){let n=e.src.slice(r).match(e7);if(n){if(!t){let t="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),r=e.push("text_special","",0);r.content=er(t)?en(t):en(65533),r.markup=n[0],r.info="entity"}return e.pos+=n[0].length,!0}}else{let n=e.src.slice(r).match(te);if(n){let r=G(n[0]);if(r!==n[0]){if(!t){let t=e.push("text_special","",0);t.content=r,t.markup=n[0],t.info="entity"}return e.pos+=n[0].length,!0}}}return!1}]],tn=[["balance_pairs",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;tt(e.delimiters);for(let e=0;e<r;e++)t[e]&&t[e].delimiters&&tt(t[e].delimiters)}],["strikethrough",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;e4(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&e4(e,t[n].delimiters)}],["emphasis",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;e8(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&e8(e,t[n].delimiters)}],["fragments_join",function(e){let t,r,n=0,i=e.tokens,a=e.tokens.length;for(t=r=0;t<a;t++)i[t].nesting<0&&n--,i[t].level=n,i[t].nesting>0&&n++,"text"===i[t].type&&t+1<a&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}]];function ti(){this.ruler=new ej;for(let e=0;e<tr.length;e++)this.ruler.push(tr[e][0],tr[e][1]);this.ruler2=new ej;for(let e=0;e<tn.length;e++)this.ruler2.push(tn[e][0],tn[e][1])}function ta(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function to(e){return Object.prototype.toString.call(e)}function ts(e){return"[object Function]"===to(e)}function tl(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}ti.prototype.skipToken=function(e){let t=e.pos,r=this.ruler.getRules(""),n=r.length,i=e.md.options.maxNesting,a=e.cache;if(void 0!==a[t]){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<n;i++)if(e.level++,o=r[i](e,!0),e.level--,o){if(t>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;!o&&e.pos++,a[t]=e.pos},ti.prototype.tokenize=function(e){let t=this.ruler.getRules(""),r=t.length,n=e.posMax,i=e.md.options.maxNesting;for(;e.pos<n;){let a=e.pos,o=!1;if(e.level<i){for(let n=0;n<r;n++)if(o=t[n](e,!1)){if(a>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},ti.prototype.parse=function(e,t,r,n){let i=new this.State(e,t,r,n);this.tokenize(i);let a=this.ruler2.getRules(""),o=a.length;for(let e=0;e<o;e++)a[e](i)},ti.prototype.State=e2;let tc={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},tu={"http:":{validate:function(e,t,r){let n=e.slice(t);return(r.re.http||(r.re.http=RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n))?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){let n=e.slice(t);return(r.re.no_http||(r.re.no_http=RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){let n=e.slice(t);return(r.re.mailto||(r.re.mailto=RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n))?n.match(r.re.mailto)[0].length:0}}},td="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|ÑÑ".split("|");function tp(){return function(e,t){t.normalize(e)}}function th(e){var t;let r,n,i=(t=e.__opts__,t=t||{},(r={}).src_Any=M.source,r.src_Cc=z.source,r.src_Z=R.source,r.src_P=B.source,r.src_ZPCc=[r.src_Z,r.src_P,r.src_Cc].join("|"),r.src_ZCc=[r.src_Z,r.src_Cc].join("|"),r.src_pseudo_letter="(?:(?!"+(n="[><ï½]")+"|"+r.src_ZPCc+")"+r.src_Any+")",r.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",r.src_auth="(?:(?:(?!"+r.src_ZCc+"|[@/\\[\\]()]).)+@)?",r.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",r.src_host_terminator="(?=$|"+n+"|"+r.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+r.src_ZPCc+"))",r.src_path="(?:[/?#](?:(?!"+r.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+r.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+r.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+r.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+r.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+r.src_ZCc+"|[']).)+\\'|\\'(?="+r.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+r.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+r.src_ZCc+"|$)|;(?!"+r.src_ZCc+"|$)|\\!+(?!"+r.src_ZCc+"|[!]|$)|\\?(?!"+r.src_ZCc+"|[?]|$))+|\\/)?",r.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',r.src_xn="xn--[a-z0-9\\-]{1,59}",r.src_domain_root="(?:"+r.src_xn+"|"+r.src_pseudo_letter+"{1,63})",r.src_domain="(?:"+r.src_xn+"|(?:"+r.src_pseudo_letter+")|(?:"+r.src_pseudo_letter+"(?:-|"+r.src_pseudo_letter+"){0,61}
3"+r.src_pseudo_letter+"))",r.src_host="(?:(?:(?:(?:"+r.src_domain+")\\.)*"+r.src_domain+"))",r.tpl_host_fuzzy="(?:"+r.src_ip4+"|(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%)))",r.tpl_host_no_ip_fuzzy="(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%))",r.src_host_strict=r.src_host+r.src_host_terminator,r.tpl_host_fuzzy_strict=r.tpl_host_fuzzy+r.src_host_terminator,r.src_host_port_strict=r.src_host+r.src_port+r.src_host_terminator,r.tpl_host_port_fuzzy_strict=r.tpl_host_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_port_no_ip_fuzzy_strict=r.tpl_host_no_ip_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+r.src_ZPCc+"|>|$))",r.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+r.src_ZCc+")("+r.src_email_name+"@"+r.tpl_host_fuzzy_strict+")",r.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|ï½]|"+r.src_ZPCc+"))((?![$+<=>^`|ï½])"+r.tpl_host_port_fuzzy_strict+r.src_path+")",r.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|ï½]|"+r.src_ZPCc+"))((?![$+<=>^`|ï½])"+r.tpl_host_port_no_ip_fuzzy_strict+r.src_path+")",e.re=r),a=e.__tlds__.slice();function o(e){return e.replace("%TLDS%",i.src_tlds)}e.onCompile(),e.__tlds_replaced__||a.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),a.push(i.src_xn),i.src_tlds=a.join("|"),i.email_fuzzy=RegExp(o(i.tpl_email_fuzzy),"i"),i.link_fuzzy=RegExp(o(i.tpl_link_fuzzy),"i"),i.link_no_ip_fuzzy=RegExp(o(i.tpl_link_no_ip_fuzzy),"i"),i.host_fuzzy_test=RegExp(o(i.tpl_host_fuzzy_test),"i");let s=[];function l(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){let r=e.__schemas__[t];if(null===r)return;let n={validate:null,link:null};if(e.__compiled__[t]=n,"[object Object]"===to(r)){if("[object RegExp]"===to(r.validate)){var i;i=r.validate,n.validate=function(e,t){let r=e.slice(t);return i.test(r)?r.match(i)[0].length:0}}else ts(r.validate)?n.validate=r.validate:l(t,r);ts(r.normalize)?n.normalize=r.normalize:r.normalize?l(t,r):n.normalize=tp();return}"[object String]"===to(r)?s.push(t):l(t,r)}),s.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:tp()};let c=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(tl).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><ï½]|"+i.src_ZPCc+"))("+c+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><ï½]|"+i.src_ZPCc+"))("+c+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),e.__index__=-1,e.__text_cache__=""}function tm(e,t){let r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=i,this.text=i,this.url=i}function tf(e,t){let r=new tm(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function tg(e,t){if(!(this instanceof tg))return new tg(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||tc.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=ta({},tc,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ta({},tu,e),this.__compiled__={},this.__tlds__=td,this.__tlds_replaced__=!1,this.re={},th(this)}tg.prototype.add=function(e,t){return this.__schemas__[e]=t,th(this),this},tg.prototype.set=function(e){return this.__opts__=ta(this.__opts__,e),this},tg.prototype.test=function(e){let t,r,n,i,a,o,s,l;if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;if(this.re.schema_test.test(e)){for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(a=r.index+r[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=r.index+r[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(n=e.match(this.re.email_fuzzy))&&(a=n.index+n[1].length,o=n.index+n[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=o)),this.__index__>=0},tg.prototype.pretest=function(e){return this.re.pretest.test(e)},tg.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},tg.prototype.match=function(e){let t=[],r=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(tf(this,r)),r=this.__last_index__);let n=r?e.slice(r):e;for(;this.test(n);)t.push(tf(this,r)),n=n.slice(this.__last_index__),r+=this.__last_index__;return t.length?t:null},tg.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,tf(this,0)):null},tg.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,r){return e!==r[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),th(this),this},tg.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},tg.prototype.onCompile=function(){};let tv=/^xn--/,tx=/[^\0-\x7F]/,ty=/[\x2E\u3002\uFF0E\uFF61]/g,tb={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >
3= 0x80 (not a basic code point)","invalid-input":"Invalid input"},tw=Math.floor,tk=String.fromCharCode;function t_(e){throw RangeError(tb[e])}function tC(e,t){let r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+(function(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r})((e=e.replace(ty,".")).split("."),t).join(".")}let tE=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},tD=function(e,t,r){let n=0;for(e=r?tw(e/700):e>>1,e+=tw(e/t);e>455;n+=36)e=tw(e/35);return tw(n+36*e/(e+38))},tA=function(e){let t=[],r=e.length,n=0,i=128,a=72,o=e.lastIndexOf("-");o<0&&(o=0);for(let r=0;r<o;++r)e.charCodeAt(r)>=128&&t_("not-basic"),t.push(e.charCodeAt(r));for(let l=o>0?o+1:0;l<r;){let o=n;for(let t=1,i=36;;i+=36){var s;l>=r&&t_("invalid-input");let o=(s=e.charCodeAt(l++))>=48&&s<58?26+(s-48):s>=65&&s<91?s-65:s>=97&&s<123?s-97:36;o>=36&&t_("invalid-input"),o>tw((0x7fffffff-n)/t)&&t_("overflow"),n+=o*t;let c=i<=a?1:i>=a+26?26:i-a;if(o<c)break;let u=36-c;t>tw(0x7fffffff/u)&&t_("overflow"),t*=u}let c=t.length+1;a=tD(n-o,c,0==o),tw(n/c)>0x7fffffff-i&&t_("overflow"),i+=tw(n/c),n%=c,t.splice(n++,0,i)}return String.fromCodePoint(...t)},tS=function(e){let t=[],r=(e=function(e){let t=[],r=0,n=e.length;for(;r<n;){let i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){let n=e.charCodeAt(r++);(64512&n)==56320?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}(e)).length,n=128,i=0,a=72;for(let r of e)r<128&&t.push(tk(r));let o=t.length,s=o;for(o&&t.push("-");s<r;){let r=0x7fffffff;for(let t of e)t>=n&&t<r&&(r=t);let l=s+1;for(let c of(r-n>tw((0x7fffffff-i)/l)&&t_("overflow"),i+=(r-n)*l,n=r,e))if(c<n&&++i>0x7fffffff&&t_("overflow"),c===n){let e=i;for(let r=36;;r+=36){let n=r<=a?1:r>=a+26?26:r-a;if(e<n)break;let i=e-n,o=36-n;t.push(tk(tE(n+i%o,0))),e=tw(i/o)}t.push(tk(tE(e,0))),a=tD(i,l,s===o),i=0,++s}++i,++n}return t.join("")},tj={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"ââââ",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"ââââ",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"ââââ",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},tF=/^(vbscript|javascript|file|data):/,tN=/^data:image\/(gif|png|jpeg|webp);/;function tL(e){let t=e.trim().toLowerCase();return!tF.test(t)||tN.test(t)}let tT=["http:","https:","mailto:"];function tM(e){let t=L(e,!0);if(t.hostname&&(!t.protocol||tT.indexOf(t.protocol)>=0))try{var r;r=t.hostname,t.hostname=tC(r,function(e){return tx.test(e)?"xn--"+tS(e):e})}catch(e){}return b(w(t))}function tz(e){let t=L(e,!0);if(t.hostname&&(!t.protocol||tT.indexOf(t.protocol)>=0))try{var r;r=t.hostname,t.hostname=tC(r,function(e){return tv.test(e)?tA(e.slice(4).toLowerCase()):e})}catch(e){}return x(w(t),x.defaultChars+"%")}function tB(e,t){if(!(this instanceof tB))return new tB(e,t);t||ek.isString(e)||(t=e||{},e="default"),this.inline=new ti,this.block=new e1,this.core=new eO,this.renderer=new eS,this.linkify=new tg,this.validateLink=tL,this.normalizeLink=tM,this.normalizeLinkText=tz,this.utils=ek,this.helpers=ek.assign({},eD),this.options={},this.configure(e),t&&this.set(t)}function t$(e){let t;if(!e)return[];let r=/^(#{1,6})\s+(.+)$/gm,n=[];for(;null!==(t=r.exec(e));){let e=t[1].length,r=t[2].trim(),i=r.toLowerCase().replace(/[^a-z0-9\u4e00-\u9fff]+/g,"-").replace(/(^-|-$)/g,"");n.push({id:i,text:r,level:e})}return n}tB.prototype.set=function(e){return ek.assign(this.options,e),this},tB.prototype.configure=function(e){let t=this;if(ek.isString(e)){let t=e;if(!(e=tj[t]))throw Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEac
3h(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this},tB.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));let n=e.filter(function(e){return 0>r.indexOf(e)});if(n.length&&!t)throw Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},tB.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));let n=e.filter(function(e){return 0>r.indexOf(e)});if(n.length&&!t)throw Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},tB.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},tB.prototype.parse=function(e,t){if("string"!=typeof e)throw Error("Input data should be a String");let r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},tB.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},tB.prototype.parseInline=function(e,t){let r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},tB.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.s(["default",0,tB],793143),e.s([],352103);let tR=(()=>{try{return new URL("https://generatemusic.net").hostname}catch{return""}})();function tP(e){try{return new URL(e).hostname!==tR}catch{return!1}}let tI=new tB({html:!0,linkify:!1,breaks:!0});function tq(e){let t,r,n=(0,f.c)(4),{content:i}=e;t:{let e;if(!i){t="";break t}if(n[0]!==i){let t=tI.render(i),r=g.default.sanitize(t,{ADD_ATTR:["target","rel"]});(e=new DOMParser().parseFromString(r,"text/html")).querySelectorAll("a[href]").forEach(tH),n[0]=i,n[1]=e}else e=n[1];t=e.body.innerHTML}let a=t;return n[2]!==a?(r=(0,m.jsx)("div",{className:"markdown-body",dangerouslySetInnerHTML:{__html:a}}),n[2]=a,n[3]=r):r=n[3],r}function tH(e){tP(e.getAttribute("href")||"")&&(e.setAttribute("rel","nofollow noopener noreferrer"),e.setAttribute("target","_blank"))}tI.renderer.rules.heading_open=function(e,t){let r=e[t].markup.length,n=e[t+1];if(n&&"inline"===n.type){let e=n.content.toLowerCase().replace(/[^a-z0-9\u4e00-\u9fff]+/g,"-").replace(/(^-|-$)/g,"");return`<h${r} id="${e}">`}return`<h${r}>`},tI.renderer.rules.link_open=function(e,t,r,n,i){let a=e[t];return tP(a.attrGet("href")||"")&&(a.attrSet("rel","nofollow noopener noreferrer"),a.attrSet("target","_blank")),i.renderToken(e,t,r)},e.s(["MarkdownPreview",()=>tq,"getTocItems",()=>t$],111643)},403732,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=Object.defineProperty,a=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?i(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r},o=class{static resetLinkIndex(){this.linkIndex=0}static escapeHtml(e){let t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,e=>t[e])}static preserveIndentation(e,t){let r=t.match(/^(\s*)/)[1].replace(/ /g," ");return e.replace(/^\s*/,r)}static parseHeader(e){return e.replace(/^(#{1,3})\s(.+)$/,(e,t,r)=>{let n=t.length;return`<h${n}><span class="syntax-marker">${t} </span>${r}</h${n}>`})}static parseHorizontalRule(e){return e.match(/^(-{3,}|\*{3,}|_{3,})$/)?`<div><span class="hr-marker">${e}</span></div>`:null}static parseBlockquote(e){return e.replace(/^> (.+)$/,(e,t)=>`<span class="blockquote"><span class="syntax-marker">></span> ${t}</span>`)}static parseBulletList(e){return e.replace(/^((?: )*)([-*])\s(.+)$/,(e,t,r,n)=>`${t}<li class="bullet-list"><span class="syntax-marker">${r} </span>${n}</li>`)}static parseNumberedList(e){return e.replace(/^((?: )*)(\d+\.)\s(.+)$/,(e,t,r,n)=>`${t}<li class="ordered-list"><span class="syntax-marker">${r} </span>${n}</li>`)}static parseCodeBlock(e){return/^`{3}[^`]*$/.test(e)?`<div><span class="code-fence">${e}</span></div>`:null}static parseBold(e){return e=(e=e.replace(/\*\*(.+?)\*\*/g,'<strong><span class="syntax-marker">**</span>$1<span class="syntax-marker">**</span></strong>')).replace(/__(.+?)__/g,'<strong><span class="syntax-marker">__</span>$1<span class="syntax-marker">__</span></strong>')}static parseItalic(e){return e=(e=e.replace(RegExp("(?<!\\*)\\*(?!\\*)(.+?)(?<!\\*)\\*(?!\\*)","g"),'<em><span class="syntax-marker">*</span>$1<span class="syntax-marker">*</span></em>')).replace(RegExp("(?<=^|\\s)_(?!_)(.+?)(?<!_)_(?!_)(?=\\s|$)","g"),'<em><span class="syntax-marker">_</span>$1<span class="syntax-marker">_</span></em>')}static parseStrikethrough(e){return e=(e=e.replace(RegExp("(?<!~)~~(?!~)(.+?)(?<!~)~~(?!~)","g"),'<del><span class="syntax-marker">~~</span>$1<span class="syntax-marker">~~</span></del>')).replace(RegExp("(?<!~)~(?!~)(.+?)(?<!~)~(?!~)","g"),'<del><span class="syntax-marker">~</span>$1<span class="syntax-marker">~</span></del>')}static parseInlineCode(e){return e.replace(RegExp("(?<!`)(`+)(?!`)((?:(?!\\1).)+?)(\\1)(?!`)","g"),'<code><span class="syntax-marker">$1</span>$2<span class="syntax-marker">$3</span></code>')}
3static sanitizeUrl(e){let t=e.trim(),r=t.toLowerCase(),n=["http://","https://","mailto:","ftp://","ftps://"].some(e=>r.startsWith(e)),i=t.startsWith("/")||t.startsWith("#")||t.startsWith("?")||t.startsWith(".")||!t.includes(":")&&!t.includes("//");return n||i?e:"#"}static parseLinks(e){return e.replace(/\[(.+?)\]\((.+?)\)/g,(e,t,r)=>{let n=`--link-${this.linkIndex++}`,i=this.sanitizeUrl(r);return`<a href="${i}" style="anchor-name: ${n}"><span class="syntax-marker">[</span>${t}<span class="syntax-marker url-part">](${r})</span></a>`})}static identifyAndProtectSanctuaries(e){let t,r,n=new Map,i=0,a=e,o=[],s=/\[([^\]]+)\]\(([^)]+)\)/g;for(;null!==(t=s.exec(e));){let e=t.index+t[0].indexOf("](")+2,r=e+t[2].length;o.push({start:e,end:r})}let l=RegExp("(?<!`)(`+)(?!`)((?:(?!\\1).)+?)(\\1)(?!`)","g"),c=[];for(;null!==(r=l.exec(e));){let e=r.index,t=r.index+r[0].length;o.some(r=>e>=r.start&&t<=r.end)||c.push({match:r[0],index:r.index,openTicks:r[1],content:r[2],closeTicks:r[3]})}return c.sort((e,t)=>t.index-e.index),c.forEach(e=>{let t=`\uE000${i++}\uE001`;n.set(t,{type:"code",original:e.match,openTicks:e.openTicks,content:e.content,closeTicks:e.closeTicks}),a=a.substring(0,e.index)+t+a.substring(e.index+e.match.length)}),{protectedText:a=a.replace(/\[([^\]]+)\]\(([^)]+)\)/g,(e,t,r)=>{let a=`\uE000${i++}\uE001`;return n.set(a,{type:"link",original:e,linkText:t,url:r}),a}),sanctuaries:n}}static restoreAndTransformSanctuaries(e,t){return Array.from(t.keys()).sort((t,r)=>e.indexOf(t)-e.indexOf(r)).forEach(r=>{let n,i=t.get(r);if("code"===i.type)n=`<code><span class="syntax-marker">${i.openTicks}</span>${this.escapeHtml(i.content)}<span class="syntax-marker">${i.closeTicks}</span></code>`;
3else if("link"===i.type){let e=i.linkText;t.forEach((t,r)=>{if(e.includes(r)&&"code"===t.type){let n=`<code><span class="syntax-marker">${t.openTicks}</span>${this.escapeHtml(t.content)}<span class="syntax-marker">${t.closeTicks}</span></code>`;e=e.replace(r,n)}}),e=this.parseStrikethrough(e),e=this.parseBold(e),e=this.parseItalic(e);let r=`--link-${this.linkIndex++}`,a=this.sanitizeUrl(i.url);n=`<a href="${a}" style="anchor-name: ${r}"><span class="syntax-marker">[</span>${e}<span class="syntax-marker url-part">](${this.escapeHtml(i.url)})</span></a>`}e=e.replace(r,n)}),e}static parseInlineElements(e){let{protectedText:t,sanctuaries:r}=this.identifyAndProtectSanctuaries(e),n=t;return n=this.parseStrikethrough(n),n=this.parseBold(n),n=this.parseItalic(n),n=this.restoreAndTransformSanctuaries(n,r)}static parseLine(e){let t=this.escapeHtml(e);t=this.preserveIndentation(t,e);let r=this.parseHorizontalRule(t);if(r)return r;let n=this.parseCodeBlock(t);return n||((t=this.parseHeader(t),t=this.parseBlockquote(t),t=this.parseBulletList(t),t=this.parseNumberedList(t),""===(t=this.parseInlineElements(t)).trim())?"<div> </div>":`<div>${t}</div>`)}static parse(e,t=-1,r=!1){this.resetLinkIndex();let n=e.split("\n"),i=!1,a=n.map((e,n)=>{if(r&&n===t){let t=this.escapeHtml(e)||" ";return`<div class="raw-line">${t}</div>`}if(/^```[^`]*$/.test(e))return i=!i,this.parseLine(e);if(i){let t=this.escapeHtml(e),r=this.preserveIndentation(t,e);return`<div>${r||" "}</div>`}return this.parseLine(e)}).join("");return this.postProcessHTML(a)}static postProcessHTML(e){if("undefined"==typeof document||!document)return this.postProcessHTMLManual(e);let t=document.createElement("div");t.innerHTML=e;let r=null,n=null,i=null,a=!1,o=Array.from(t.children);for(let e=0;e<o.length;e++){let s=o[e];if(!s.parentNode)continue;let l=s.querySelector(".code-fence");if(l){let e=l.textContent;if(e.startsWith("```"))if(a){a=!1,i=null;continue}else{a=!0,i=document.createElement("pre");let r=document.createElement("code");i.appendChild(r),i.className="code-block";let n=e.slice(3).trim();n&&(r.className=`language-${n}`),t.insertBefore(i,s.nextSibling),i._codeElement=r;continue}}if(a&&i&&"DIV"===s.tagName&&!s.querySelector(".code-fence")){let e=i._codeElement||i.querySelector("code");e.textContent.length>0&&(e.textContent+="\n");let t=s.textContent.replace(/\u00A0/g," ");e.textContent+=t,s.remove();continue}let c=null;
3if("DIV"===s.tagName&&(c=s.querySelector("li")),c){let e=c.classList.contains("bullet-list"),i=c.classList.contains("ordered-list");if(!e&&!i){r=null,n=null;continue}let a=e?"ul":"ol";r&&n===a||(r=document.createElement(a),t.insertBefore(r,s),n=a);let o=[];for(let e of s.childNodes)if(3===e.nodeType&&e.textContent.match(/^\u00A0+$/))o.push(e.cloneNode(!0));else if(e===c)break;o.forEach(e=>{c.insertBefore(e,c.firstChild)}),r.appendChild(c),s.remove()}else r=null,n=null}return t.innerHTML}static postProcessHTMLManual(e){let t=e;return(t=(t=t.replace(/((?:<div>(?: )*<li class="bullet-list">.*?<\/li><\/div>\s*)+)/gs,e=>{let t=e.match(/<div>(?: )*<li class="bullet-list">.*?<\/li><\/div>/gs)||[];return t.length>0?"<ul>"+t.map(e=>{let t=e.match(/<div>((?: )*)<li/),r=e.match(/<li class="bullet-list">.*?<\/li>/);if(t&&r){let e=t[1];return r[0].replace(/<li class="bullet-list">/,`<li class="bullet-list">${e}`)}return r?r[0]:""}).filter(Boolean).join("")+"</ul>":e})).replace(/((?:<div>(?: )*<li class="ordered-list">.*?<\/li><\/div>\s*)+)/gs,e=>{let t=e.match(/<div>(?: )*<li class="ordered-list">.*?<\/li><\/div>/gs)||[];return t.length>0?"<ol>"+t.map(e=>{let t=e.match(/<div>((?: )*)<li/),r=e.match(/<li class="ordered-list">.*?<\/li>/);if(t&&r){let e=t[1];return r[0].replace(/<li class="ordered-list">/,`<li class="ordered-list">${e}`)}return r?r[0]:""}).filter(Boolean).join("")+"</ol>":e})).replace(/<div><span class="code-fence">(```[^<]*)<\/span><\/div>(.*?)<div><span class="code-fence">(```)<\/span><\/div>/gs,(e,t,r,n)=>{let i=(r.match(/<div>(.*?)<\/div>/gs)||[]).map(e=>e.replace(/<div>(.*?)<\/div>/s,"$1").replace(/ /g," ")).join("\n"),a=t.slice(3).trim(),o=a?` class="language-${a}"`:"",s=`<div><span class="code-fence">${t}</span></div>`;return s+`<pre class="code-block"><code${o}>${i}</code></pre><div><span class="code-fence">${n}</span></div>`})}static getListContext(e,t){let r=e.split("\n"),n=0,i=0,a=0;for(let e=0;e<r.length;e++){let o=r[e].length;if(n+o>=t){i=e,a=n;break}n+=o+1}let o=r[i],s=a+o.length,l=o.match(this.LIST_PATTERNS.checkbox);if(l)return{inList:!0,listType:"checkbox",indent:l[1],marker:"-",checked:"x"===l[2],content:l[3],lineStart:a,lineEnd:s,markerEndPos:a+l[1].length+l[2].length+5};let c=o.match(this.LIST_PATTERNS.bullet);if(c)return{inList:!0,listType:"bullet",indent:c[1],marker:c[2],content:c[3],lineStart:a,lineEnd:s,markerEndPos:a+c[1].length+c[2].length+1};let u=o.match(this.LIST_PATTERNS.numbered);return u?{inList:!0,listType:"numbered",indent:u[1],marker:parseInt(u[2]),content:u[3],lineStart:a,lineEnd:s,markerEndPos:a+u[1].length+u[2].length+2}:{inList:!1,listType:null,indent:"",marker:null,content:o,lineStart:a,lineEnd:s,markerEndPos:a}}static createNewListItem(e){switch(e.listType){case"bullet":return`${e.indent}${e.marker} `;case"numbered":return`${e.indent}${e.marker+1}. `;case"checkbox":return`${e.indent}- [ ] `;default:return""}}static renumberLists(e){let t=e.split("\n"),r=new Map,n=!1;return t.map(e=>{let t=e.match(this.LIST_PATTERNS.numbered);if(!t)return""!==e.trim()&&e.match(/^\s/)||(n=!1,r.clear()),e;{let e=t[1],i=e.length,a=t[3];n||r.clear();let o=(r.get(i)||0)+1;for(let[e]of(r.set(i,o),r))e>i&&r.delete(e);return n=!0,`${e}${o}. ${a}`}}).join("\n")}};a(o,"linkIndex",0),a(o,"LIST_PATTERNS",{bullet:/^(\s*)([-*+])\s+(.*)$/,numbered:/^(\s*)(\d+)\.\s+(.*)$/,checkbox:/^(\s*)-\s+\[([ x])\]\s+(.*)$/});var s=Object.defineProperty,l=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&d(e,r,t[r]);if(l)for(var r of l(t))u.call(t,r)&&d(e,r,t[r]);return e},h={bold:{prefix:"**",suffix:"**",trimFirst:!0},italic:{prefix:"_",suffix:"_",trimFirst:!0},code:{prefix:"`",suffix:"`",blockPrefix:"```",blockSuffix:"```"},link:{prefix:"[",suffix:"](url)",replaceNext:"url",scanFor:"https?://"},bulletList:{prefix:"- ",multiline:!0,unorderedList:!0},numberedList:{prefix:"1. ",multiline:!0,orderedList:!0},quote:{prefix:"> ",multiline:!0,surroundWithNewlines:!0},taskList:{prefix:"- [ ] ",multiline:!0,surroundWithNewlines:!0},header1:{prefix:"# "},header2:{prefix:"## "},header3:{prefix:"### "},header4:{prefix:"#### "},header5:{prefix:"##### "},header6:{prefix:"###### "}}
3;function m(e){return p(p({},{prefix:"",suffix:"",blockPrefix:"",blockSuffix:"",multiline:!1,replaceNext:"",prefixSpace:!1,scanFor:"",surroundWithNewlines:!1,orderedList:!1,unorderedList:!1,trimFirst:!1}),e)}function f(e,t,r){}function g(e,t){}function v(e){}var x=null;function y(e,{text:t,selectionStart:r,selectionEnd:n}){e.focus();let i=e.selectionStart,a=e.selectionEnd,o=e.value.slice(0,i),s=e.value.slice(a),l=e.value;if(null===x||!0===x){e.contentEditable="true";try{x=document.execCommand("insertText",!1,t)}catch(e){x=!1}e.contentEditable="false"}if(x&&e.value,!x&&e.value===l){try{document.execCommand("ms-beginUndoUnit")}catch(e){}e.value=o+t+s;try{document.execCommand("ms-endUndoUnit")}catch(e){}e.dispatchEvent(new CustomEvent("input",{bubbles:!0,cancelable:!0}))}null!=r&&null!=n?e.setSelectionRange(r,n):e.setSelectionRange(i,e.selectionEnd)}function b(e){return e.trim().split("\n").length>1}function w(e){let t=e.value.split("\n"),r=0;for(let n=0;n<t.length;n++){let i=t[n].length+1;e.selectionStart>=r&&e.selectionStart<r+i&&(e.selectionStart=r),e.selectionEnd>=r&&e.selectionEnd<r+i&&(n===t.length-1?e.selectionEnd=Math.min(r+t[n].length,e.value.length):e.selectionEnd=r+i-1),r+=i}}function k(e){let t=e.value.slice(0,e.selectionStart),r=e.value.slice(e.selectionEnd),n=t.match(/\n*$/),i=r.match(/^\n*/),a=n?n[0].length:0,o=i?i[0].length:0,s="",l="";return t.match(/\S/)&&a<2&&(s="\n".repeat(2-a)),r.match(/\S/)&&o<2&&(l="\n".repeat(2-o)),{newlinesToAppend:s,newlinesToPrepend:l}}function _(e,t,r={}){let n=e.selectionStart,i=e.selectionEnd,a=n===i,o=e.value,s=n;for(;s>0&&"\n"!==o[s-1];)s--;if(a){let t=n;for(;t<o.length&&"\n"!==o[t];)t++;e.selectionStart=s,e.selectionEnd=t}else w(e);let l=t(e);if(r.adjustSelection){let t=e.value.slice(e.selectionStart,e.selectionEnd).startsWith(r.prefix),a=r.adjustSelection(t,n,i,s);l.selectionStart=a.start,l.selectionEnd=a.end}else if(r.prefix){let t=e.value.slice(e.selectionStart,e.selectionEnd).startsWith(r.prefix);a?(t?l.selectionStart=Math.max(n-r.prefix.length,s):l.selectionStart=n+r.prefix.length,l.selectionEnd=l.selectionStart):t?(l.selectionStart=Math.max(n-r.prefix.length,s),l.selectionEnd=Math.max(i-r.prefix.length,s)):(l.selectionStart=n+r.prefix.length,l.selectionEnd=i+r.prefix.length)}return l}function C(e,t){let r,n,{prefix:i,suffix:a,blockPrefix:o,blockSuffix:s,replaceNext:l,prefixSpace:c,scanFor:u,surroundWithNewlines:d,trimFirst:p}=t,h=e.selectionStart,m=e.selectionEnd,f=e.value.slice(e.selectionStart,e.selectionEnd),g=b(f)&&o&&o.length>0?`${o} 4`:i,v=b(f)&&s&&s.length>0?` 5${s}`:a;if(c){let t=e.value[e.selectionStart-1];0===e.selectionStart||null==t||t.match(/\s/)||(g=` ${g}`)}f=function(e,t,r,n=!1){if(e.selectionStart===e.selectionEnd)e.selectionStart=function(e,t){let r=t;for(;e[r]&&null!=e[r-1]&&!e[r-1].match(/\s/);)r--;return r}(e.value,e.selectionStart),e.selectionEnd=function(e,t,r){let n=t,i=r?/\n/:/\s/;for(;e[n]&&!e[n].match(i);)n++;return n}(e.value,e.selectionEnd,n);else{let n=e.selectionStart-t.length,i=e.selectionEnd+r.length,a=e.value.slice(n,e.selectionStart)===t,o=e.value.slice(e.selectionEnd,i)===r;a&&o&&(e.selectionStart=n,e.selectionEnd=i)}return e.value.slice(e.selectionStart,e.selectionEnd)}(e,g,v,t.multiline);let x=e.selectionStart,y=e.selectionEnd,w=l&&l.length>0&&v.indexOf(l)>-1&&f.length>0;if(d){let t=k(e);r=t.newlinesToAppend,n=t.newlinesToPrepend,g=r+i,v+=n}if(f.startsWith(g)&&f.endsWith(v)){let e=f.slice(g.length,f.length-v.length);if(h===m){let t=h-g.length;x=y=t=Math.min(t=Math.max(t,x),x+e.length)}else y=x+e.length;return{text:e,selectionStart:x,selectionEnd:y}}if(w)if(u&&u.length>0&&f.match(u))return{text:g+(v=v.replace(l,f)),selectionStart:x=y=x+g.length,selectionEnd:y};else{let e=g+f+v;return y=(x=x+g.length+f.length+v.indexOf(l))+l.length,{text:e,selectionStart:x,selectionEnd:y}}{let e=g+f+v;x=h+g.length,y=m+g.length;let t=f.match(/^\s*|\s*$/g);if(p&&t){let r=t[0]||"",n=t[1]||"";e=r+g+f.trim()+v+n,x+=r.length,y-=n.length}return{text:e,selectionStart:x,selectionEnd:y}}}function E(e,t){let{prefix:r,suffix:n,surroundWithNewlines:i}=t,a=e.value.slice(e.selectionStart,e.selectionEnd),o=e.selectionStart,s=e.selectionEnd,l=a.split("\n");if(l.every(e=>
5e.startsWith(r)&&(!n||e.endsWith(n))))s=o+(a=l.map(e=>{let t=e.slice(r.length);return n&&(t=t.slice(0,t.length-n.length)),t}).join("\n")).length;else if(a=l.map(e=>r+e+(n||"")).join("\n"),i){let{newlinesToAppend:t,newlinesToPrepend:r}=k(e);o+=t.length,s=o+a.length,a=t+a+r}return{text:a,selectionStart:o,selectionEnd:s}}function D(e){let t=e.split("\n"),r=/^\d+\.\s+/,n=t.every(e=>r.test(e)),i=t;return n&&(i=t.map(e=>e.replace(r,""))),{text:i.join("\n"),processed:n}}function A(e){let t=e.split("\n"),r=t.every(e=>e.startsWith("- ")),n=t;return r&&(n=t.map(e=>e.slice(2))),{text:n.join("\n"),processed:r}}function S(e,t){return t?"- ":`${e+1}. `}function j(e,t){let r=_(e,e=>(function(e,t){let r,n,i,a=e.selectionStart===e.selectionEnd,o=e.selectionStart,s=e.selectionEnd;w(e);let l=e.value.slice(e.selectionStart,e.selectionEnd),[c,u,d]=(i=t.orderedList?(n=A((r=D(l)).text)).text:(n=D((r=A(l)).text)).text,[r,n,i]),p=d.split("\n").map((e,r)=>`${S(r,t.unorderedList)}${e}`),h=p.reduce((e,r,n)=>e+S(n,t.unorderedList).length,0),m=p.reduce((e,r,n)=>e+S(n,!t.unorderedList).length,0);if(c.processed)return a?s=o=Math.max(o-S(0,t.unorderedList).length,0):(o=e.selectionStart,s=e.selectionEnd-h),{text:d,selectionStart:o,selectionEnd:s};let{newlinesToAppend:f,newlinesToPrepend:g}=k(e),v=f+p.join("\n")+g;return a?s=o=Math.max(o+S(0,t.unorderedList).length+f.length,0):u.processed?(o=Math.max(e.selectionStart+f.length,0),s=e.selectionEnd+f.length+h-m):(o=Math.max(e.selectionStart+f.length,0),s=e.selectionEnd+f.length+h),{text:v,selectionStart:o,selectionEnd:s}})(e,t),{adjustSelection:(r,n,i,a)=>{let o=e.value.slice(a,e.selectionEnd),s=/^\d+\.\s+/,l=/^- /,c=s.test(o),u=l.test(o),d=t.orderedList&&c||t.unorderedList&&u;if(n===i)if(d){let e=o.match(t.orderedList?s:l),r=e?e[0].length:0;return{start:Math.max(n-r,a),end:Math.max(n-r,a)}}else if(c||u){let e=o.match(c?s:l),r=e?e[0].length:0,i=(t.unorderedList?2:3)-r;return{start:n+i,end:n+i}}else{let e=t.unorderedList?2:3;return{start:n+e,end:n+e}}if(d){let e=o.match(t.orderedList?s:l),r=e?e[0].length:0;return{start:Math.max(n-r,a),end:Math.max(i-r,a)}}if(c||u){let e=o.match(c?s:l),r=e?e[0].length:0,a=(t.unorderedList?2:3)-r;return{start:n+a,end:i+a}}{let e=t.unorderedList?2:3;return{start:n+e,end:i+e}}}});y(e,r)}function F(e){if(!e||e.disabled||e.readOnly)return;f("toggleBold","Starting"),g(e,"Before");let t=C(e,m(h.bold));v(t),y(e,t),g(e,"After")}function N(e){if(!e||e.disabled||e.readOnly)return;let t=C(e,m(h.italic));y(e,t)}function L(e,t={}){if(!e||e.disabled||e.readOnly)return;let r=e.value.slice(e.selectionStart,e.selectionEnd),n=m(h.link);if(r&&r.match(/^https?:\/\//)&&!t.url?(n.suffix=`](${r})`,n.replaceNext=""):t.url&&(n.suffix=`](${t.url})`,n.replaceNext=""),t.text&&!r){let r=e.selectionStart;e.value=e.value.slice(0,r)+t.text+e.value.slice(r),e.selectionStart=r,e.selectionEnd=r+t.text.length}let i=C(e,n);y(e,i)}function T(e){!e||e.disabled||e.readOnly||j(e,m(h.bulletList))}function M(e){!e||e.disabled||e.readOnly||j(e,m(h.numberedList))}function z(e,t=1,r=!1){if(!e||e.disabled||e.readOnly)return;(t<1||t>6)&&(t=1),f("insertHeader","============ START ============"),f("insertHeader",`Level: ${t}, Toggle: ${r}`),f("insertHeader",`Initial cursor: ${e.selectionStart}-${e.selectionEnd}`);let n=m(h[`header${1===t?"1":t}`]||h.header1);f("insertHeader",`Style prefix: "${n.prefix}"`);let i=e.value,a=e.selectionStart,o=e.selectionEnd,s=a;for(;s>0&&"\n"!==i[s-1];)s--;let l=o;for(;l<i.length&&"\n"!==i[l];)l++;let c=i.slice(s,l);f("insertHeader",`Current line (before): "${c}"`);let u=c.match(/^(#{1,6})\s*/),d=u?u[1].length:0,p=u?u[0].length:0;f("insertHeader","Existing header check:"),f("insertHeader",` - Match: ${u?`"${u[0]}"`:"none"}`),f("insertHeader",` - Existing level: ${d}`),f("insertHeader",` - Existing prefix length: ${p}`),f("insertHeader",` - Target level: ${t}`);let g=r&&d===t;f("insertHeader",`Should toggle OFF: ${g} (toggle=${r}, existingLevel=${d}, level=${t})`);let v=_(e,e=>{let r,i=e.value.slice(e.selectionStart,e.selectionEnd);f("insertHeader",`Line in operation: "${i}"`);let a=i.replace(/^#{1,6}\s*/,"");return f("insertHeader",`Cleaned line: "${a}"`),g?(f("insertHeader","ACTION: Toggling OFF - removing header"),r=a):(d>0?f("insertHeader",`ACTION: Replacing H${d} with H${t}`):f("insertHeader","ACTION: Adding new header"),r=n.prefix+a),f("insertHeader",`New line: "${r}"`),{text:r,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}
5,{prefix:n.prefix,adjustSelection:(e,t,r,i)=>{if(f("insertHeader","Adjusting selection:"),f("insertHeader",` - isRemoving param: ${e}`),f("insertHeader",` - shouldToggleOff: ${g}`),f("insertHeader",` - selStart: ${t}, selEnd: ${r}`),f("insertHeader",` - lineStartPos: ${i}`),g){let e=Math.max(t-p,i);return f("insertHeader",` - Removing header, adjusting by -${p}`),{start:e,end:t===r?e:Math.max(r-p,i)}}if(!(p>0))return f("insertHeader",` - Adding header, adjusting by +${n.prefix.length}`),{start:t+n.prefix.length,end:r+n.prefix.length};{let e=n.prefix.length-p;return f("insertHeader",` - Replacing header, adjusting by ${e}`),{start:t+e,end:r+e}}}});f("insertHeader",`Final result: text="${v.text}", cursor=${v.selectionStart}-${v.selectionEnd}`),f("insertHeader","============ END ============"),y(e,v)}var B=class{constructor(e){this.editor=e,this.textarea=e.textarea}handleKeydown(e){if(!(navigator.platform.toLowerCase().includes("mac")?e.metaKey:e.ctrlKey))return!1;let t=null;switch(e.key.toLowerCase()){case"b":e.shiftKey||(t="toggleBold");break;case"i":e.shiftKey||(t="toggleItalic");break;case"k":e.shiftKey||(t="insertLink");break;case"7":e.shiftKey&&(t="toggleNumberedList");break;case"8":e.shiftKey&&(t="toggleBulletList")}return!!t&&(e.preventDefault(),this.editor.toolbar?this.editor.toolbar.handleAction(t):this.handleAction(t),!0)}async handleAction(e){let t=this.textarea;if(t){t.focus();try{switch(e){case"toggleBold":F(t);break;case"toggleItalic":N(t);break;case"insertLink":L(t);break;case"toggleBulletList":T(t);break;case"toggleNumberedList":M(t)}t.dispatchEvent(new Event("input",{bubbles:!0}))}catch(e){console.error("Error in markdown action:",e)}}}destroy(){}},$={name:"solar",colors:{bgPrimary:"#faf0ca",bgSecondary:"#ffffff",text:"#0d3b66",h1:"#f95738",h2:"#ee964b",h3:"#3d8a51",strong:"#ee964b",em:"#f95738",link:"#0d3b66",code:"#0d3b66",codeBg:"rgba(244, 211, 94, 0.4)",blockquote:"#5a7a9b",hr:"#5a7a9b",syntaxMarker:"rgba(13, 59, 102, 0.52)",cursor:"#f95738",selection:"rgba(244, 211, 94, 0.4)",listMarker:"#ee964b",toolbarBg:"#ffffff",toolbarBorder:"rgba(13, 59, 102, 0.15)",toolbarIcon:"#0d3b66",toolbarHover:"#f5f5f5",toolbarActive:"#faf0ca"}},R={name:"cave",colors:{bgPrimary:"#141E26",bgSecondary:"#1D2D3E",text:"#c5dde8",h1:"#d4a5ff",h2:"#f6ae2d",h3:"#9fcfec",strong:"#f6ae2d",em:"#9fcfec",link:"#9fcfec",code:"#c5dde8",codeBg:"#1a232b",blockquote:"#9fcfec",hr:"#c5dde8",syntaxMarker:"rgba(159, 207, 236, 0.73)",cursor:"#f26419",selection:"rgba(51, 101, 138, 0.4)",listMarker:"#f6ae2d",toolbarBg:"#1D2D3E",toolbarBorder:"rgba(197, 221, 232, 0.1)",toolbarIcon:"#c5dde8",toolbarHover:"#243546",toolbarActive:"#2a3f52"}},P={solar:$,cave:R,light:$,dark:R};function I(e){return"string"==typeof e?{...P[e]||P.solar,name:e}:e}function q(e){let t=[];for(let[r,n]of Object.entries(e)){let e=r.replace(/([A-Z])/g,"-$1").toLowerCase();t.push(`--${e}: ${n};`)}return t.join("\n")}var H=`<svg viewBox="0 0 18 18"> 6 <path stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"></path> 7 <path stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"></path> 8</svg>`,O=`<svg viewBox="0 0 18 18"> 9 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="7" x2="13" y1="4" y2="4"></line> 10 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="5" x2="11" y1="14" y2="14"></line> 11 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="8" x2="10" y1="14" y2="4"></line> 12</svg>`,U=`<svg viewBox="0 0 18 18"> 13 <path fill="currentColor" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"></path> 14</svg>`,V=`<svg viewBox="0 0 18 18">
15 <path fill="currentColor" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"></path> 16</svg>`,W=`<svg viewBox="0 0 18 18"> 17 <path fill="currentColor" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"></path> 18</svg>`,Z=`<svg viewBox="0 0 18 18"> 19 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="7" x2="11" y1="7" y2="11"></line> 20 <path stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"></path> 21 <path stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"></path> 22</svg>`,G=`<svg viewBox="0 0 18 18"> 23 <polyline stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" points="5 7 3 9 5 11"></polyline> 24 <polyline stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" points="13 7 15 9 13 11"></polyline> 25 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="10" x2="8" y1="5" y2="13"></line> 26</svg>`,K=`<svg viewBox="0 0 18 18"> 27 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="6" x2="15" y1="4" y2="4"></line> 28 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="6" x2="15" y1="9" y2="9"></line> 29 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="6" x2="15" y1="14" y2="14"></line> 30 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="3" x2="3" y1="4" y2="4"></line> 31 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="3" x2="3" y1="9" y2="9"></line> 32 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="3" x2="3" y1="14" y2="14"></line> 33</svg>`,X=`<svg viewBox="0 0 18 18"> 34 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="7" x2="15" y1="4" y2="4"></line> 35 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="7" x2="15" y1="9" y2="9"></line> 36 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="7" x2="15" y1="14" y2="14"></line> 37 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" x1="2.5" x2="4.5" y1="5.5" y2="5.5"></line>
38 <path fill="currentColor" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"></path> 39 <path stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"></path> 40 <path stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"></path> 41</svg>`,Y=`<svg viewBox="2 2 20 20"> 42 <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 10.8182L9 10.8182C8.80222 10.8182 8.60888 10.7649 8.44443 10.665C8.27998 10.5651 8.15181 10.4231 8.07612 10.257C8.00043 10.0909 7.98063 9.90808 8.01922 9.73174C8.0578 9.55539 8.15304 9.39341 8.29289 9.26627C8.43275 9.13913 8.61093 9.05255 8.80491 9.01747C8.99889 8.98239 9.19996 9.00039 9.38268 9.0692C9.56541 9.13801 9.72159 9.25453 9.83147 9.40403C9.94135 9.55353 10 9.72929 10 9.90909L10 12.1818C10 12.664 9.78929 13.1265 9.41421 13.4675C9.03914 13.8084 8.53043 14 8 14"></path> 43 <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 10.8182L15 10.8182C14.8022 10.8182 14.6089 10.7649 14.4444 10.665C14.28 10.5651 14.1518 10.4231 14.0761 10.257C14.0004 10.0909 13.9806 9.90808 14.0192 9.73174C14.0578 9.55539 14.153 9.39341 14.2929 9.26627C14.4327 9.13913 14.6109 9.05255 14.8049 9.01747C14.9989 8.98239 15.2 9.00039 15.3827 9.0692C15.5654 9.13801 15.7216 9.25453 15.8315 9.40403C15.9414 9.55353 16 9.72929 16 9.90909L16 12.1818C16 12.664 15.7893 13.1265 15.4142 13.4675C15.0391 13.8084 14.5304 14 14 14"></path> 44</svg>`,Q=`<svg viewBox="0 0 18 18"> 45 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="8" x2="16" y1="4" y2="4"></line> 46 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="8" x2="16" y1="9" y2="9"></line> 47 <line stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="8" x2="16" y1="14" y2="14"></line> 48 <rect stroke="currentColor" fill="none" stroke-width="1.5" x="2" y="3" width="3" height="3" rx="0.5"></rect> 49 <rect stroke="currentColor" fill="none" stroke-width="1.5" x="2" y="13" width="3" height="3" rx="0.5"></rect> 50 <polyline stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" points="2.65 9.5 3.5 10.5 5 8.5"></polyline> 51</svg>`,J=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 52 <path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" fill="none"></path> 53 <circle cx="12" cy="12" r="3" fill="none"></circle> 54</svg>`,ee=class{constructor(e,t=null){this.editor=e,this.container=null,this.buttons={},this.buttonConfig=t}create(){var e;this.container=document.createElement("div"),this.container.className="overtype-toolbar",this.container.setAttribute("role","toolbar"),this.container.setAttribute("aria-label","Text formatting"),(null!=(e=this.buttonConfig)?e:[{name:"bold",icon:H,title:"Bold (Ctrl+B)",action:"toggleBold"},{name:"italic",icon:O,title:"Italic (Ctrl+I)",action:"toggleItalic"},{separator:!0},{name:"h1",icon:U,title:"Heading 1",action:"insertH1"},{name:"h2",icon:V,title:"Heading 2",action:"insertH2"},{name:"h3",icon:W,title:"Heading 3",action:"insertH3"},{separator:!0},{name:"link",icon:Z,title:"Insert Link (Ctrl+K)",action:"insertLink"},{name:"code",icon:G,title:"Code (Ctrl+`)",action:"toggleCode"},{separator:!0},{name:"quote",icon:Y,title:"Quote",action:"toggleQuote"},{separator:!0},{name:"bulletList",icon:K,title:"Bullet List",action:"toggleBulletList"},{name:"orderedList",icon:X,title:"Numbered List",action:"toggleNumberedList"},{name:"taskList",icon:Q,title:"Task List",action:"toggleTaskList"},{separator:!0},{name:"viewMode",icon:J,title:"View mode",action:"toggle-view-menu",hasDropdown:!0}
54]).forEach(e=>{if(e.separator){let e=document.createElement("div");e.className="overtype-toolbar-separator",e.setAttribute("role","separator"),this.container.appendChild(e)}else{let t=this.createButton(e);this.buttons[e.name]=t,this.container.appendChild(t)}});let t=this.editor.element.querySelector(".overtype-container"),r=this.editor.element.querySelector(".overtype-wrapper");return t&&r&&t.insertBefore(this.container,r),this.container}createButton(e){let t=document.createElement("button");return t.className="overtype-toolbar-button",t.type="button",t.title=e.title,t.setAttribute("aria-label",e.title),t.setAttribute("data-action",e.action),t.innerHTML=e.icon,e.hasDropdown&&(t.classList.add("has-dropdown"),"viewMode"===e.name&&(this.viewModeButton=t)),t.addEventListener("click",r=>{r.preventDefault(),this.handleAction(e.action,t)}),t}async handleAction(e,t){let r=this.editor.textarea;if(r){if("toggle-view-menu"===e)return void this.toggleViewDropdown(t);r.focus();try{switch(e){case"toggleBold":F(r);break;case"toggleItalic":N(r);break;case"insertH1":z(r,1,!0);break;case"insertH2":z(r,2,!0);break;case"insertH3":z(r,3,!0);break;case"insertLink":L(r);break;case"toggleCode":!function(e){if(!e||e.disabled||e.readOnly)return;let t=C(e,m(h.code));y(e,t)}(r);break;case"toggleBulletList":T(r);break;case"toggleNumberedList":M(r);break;case"toggleQuote":!function(e){if(!e||e.disabled||e.readOnly)return;f("toggleQuote","Starting"),g(e,"Initial");let t=m(h.quote),r=_(e,e=>E(e,t),{prefix:t.prefix});v(r),y(e,r),g(e,"Final")}(r);break;case"toggleTaskList":!function(e){if(!e||e.disabled||e.readOnly)return;let t=m(h.taskList),r=_(e,e=>E(e,t),{prefix:t.prefix});y(e,r)}(r);break;case"toggle-plain":let t=this.editor.container.classList.contains("plain-mode");this.editor.showPlainTextarea(!t)}r.dispatchEvent(new Event("input",{bubbles:!0}))}catch(e){console.error("Error loading markdown-actions:",e)}}}async updateButtonStates(){let e=this.editor.textarea;if(e)try{let t=function(e){if(!e)return[];let t=[],{selectionStart:r,selectionEnd:n,value:i}=e,a=i.split("\n"),o=0,s="";for(let e of a){if(r>=o&&r<=o+e.length){s=e;break}o+=e.length+1}s.startsWith("- ")&&(s.startsWith("- [ ] ")||s.startsWith("- [x] ")?t.push("task-list"):t.push("bullet-list")),/^\d+\.\s/.test(s)&&t.push("numbered-list"),s.startsWith("> ")&&t.push("quote"),s.startsWith("# ")&&t.push("header"),s.startsWith("## ")&&t.push("header-2"),s.startsWith("### ")&&t.push("header-3");let l=Math.max(0,r-10),c=Math.min(i.length,n+10),u=i.slice(l,c);if(u.includes("**")){let e=i.slice(Math.max(0,r-100),r),a=i.slice(n,Math.min(i.length,n+100)),o=e.lastIndexOf("**"),s=a.indexOf("**");-1!==o&&-1!==s&&t.push("bold")}if(u.includes("_")){let e=i.slice(Math.max(0,r-100),r),a=i.slice(n,Math.min(i.length,n+100)),o=e.lastIndexOf("_"),s=a.indexOf("_");-1!==o&&-1!==s&&t.push("italic")}if(u.includes("`")){let e=i.slice(Math.max(0,r-100),r),a=i.slice(n,Math.min(i.length,n+100));e.includes("`")&&a.includes("`")&&t.push("code")}if(u.includes("[")&&u.includes("]")){let e=i.slice(Math.max(0,r-100),r),a=i.slice(n,Math.min(i.length,n+100)),o=e.lastIndexOf("["),s=a.indexOf("]");-1!==o&&-1!==s&&i.slice(n+s+1,n+s+10).startsWith("(")&&t.push("link")}return t}(e);Object.entries(this.buttons).forEach(([e,r])=>{let n=!1;switch(e){case"bold":n=t.includes("bold");break;case"italic":n=t.includes("italic");break;case"code":n=!1;break;case"bulletList":n=t.includes("bullet-list");break;case"orderedList":n=t.includes("numbered-list");break;case"quote":n=t.includes("quote");break;case"taskList":n=t.includes("task-list");break;case"h1":n=t.includes("header");break;case"h2":n=t.includes("header-2");break;case"h3":n=t.includes("header-3");break;case"togglePlain":n=!this.editor.container.classList.contains("plain-mode")}r.classList.toggle("active",n),r.setAttribute("aria-pressed",n.toString())})}catch(e){}}toggleViewDropdown(e){let t=document.querySelector(".overtype-dropdown-menu");if(t){t.remove(),e.classList.remove("dropdown-active"),document.removeEventListener("click",this.handleDocumentClick);return}let r=this.createViewDropdown(),n=e.getBoundingClientRect();r.style.top=`${n.bottom+4}px`,r.style.left=`${n.left}px`,document.body.appendChild(r),e.classList.add("dropdown-active"),this.handleDocumentClick=t=>{e.contains(t.target)||r.contains(t.target)||(r.remove(),e.classList.remove("dropdown-active"),document.removeEventListener("click",this.handleDocumentClick))},setTimeout(()=>{document.addEventListener("click",this.handleDocumentClick)},0)}createViewDropdown(){let e=document.createElement("div");e.className="overtype-dropdown-menu";let t=this.editor.container.classList.contains("plain-mode"),r=this.editor.container.classList.contains("preview-mode")?"preview":t?"plain":"normal";return[{id:"normal",label:"Normal Edit",icon:"â"},{id:"plain",label:"Plain Textarea",icon:"â"},{id:"preview",label:"Preview Mode",icon:"â"}
54].forEach(t=>{let n=document.createElement("button");n.className="overtype-dropdown-item",n.type="button";let i=document.createElement("span");i.className="overtype-dropdown-check",i.textContent=r===t.id?t.icon:"";let a=document.createElement("span");a.textContent=t.label,n.appendChild(i),n.appendChild(a),r===t.id&&n.classList.add("active"),n.addEventListener("click",r=>{r.stopPropagation(),this.setViewMode(t.id),e.remove(),this.viewModeButton.classList.remove("dropdown-active"),document.removeEventListener("click",this.handleDocumentClick)}),e.appendChild(n)}),e}setViewMode(e){switch(this.editor.container.classList.remove("plain-mode","preview-mode"),e){case"plain":this.editor.showPlainTextarea(!0);break;case"preview":this.editor.showPreviewMode(!0);break;default:this.editor.showPlainTextarea(!1),"function"==typeof this.editor.showPreviewMode&&this.editor.showPreviewMode(!1)}}destroy(){this.container&&(this.handleDocumentClick&&document.removeEventListener("click",this.handleDocumentClick),this.container.remove(),this.container=null,this.buttons={})}},et=class{constructor(e){this.editor=e,this.tooltip=null,this.currentLink=null,this.hideTimeout=null,this.init()}init(){CSS.supports("position-anchor: --x")&&CSS.supports("position-area: center")&&(this.createTooltip(),this.editor.textarea.addEventListener("selectionchange",()=>this.checkCursorPosition()),this.editor.textarea.addEventListener("keyup",e=>{(e.key.includes("Arrow")||"Home"===e.key||"End"===e.key)&&this.checkCursorPosition()}),this.editor.textarea.addEventListener("input",()=>this.hide()),this.editor.textarea.addEventListener("scroll",()=>this.hide()),this.tooltip.addEventListener("mouseenter",()=>this.cancelHide()),this.tooltip.addEventListener("mouseleave",()=>this.scheduleHide()))}createTooltip(){this.tooltip=document.createElement("div"),this.tooltip.className="overtype-link-tooltip";let e=document.createElement("style");e.textContent=` 55 @supports (position-anchor: --x) and (position-area: center) { 56 .overtype-link-tooltip { 57 position: absolute; 58 position-anchor: var(--target-anchor, --link-0); 59 position-area: block-end center; 60 margin-top: 8px !important; 61 62 background: #333 !important; 63 color: white !important; 64 padding: 6px 10px !important; 65 border-radius: 16px !important; 66 font-size: 12px !important; 67 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important; 68 display: none !important; 69 z-index: 10000 !important; 70 cursor: pointer !important; 71 box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important; 72 max-width: 300px !important; 73 white-space: nowrap !important; 74 overflow: hidden !important; 75 text-overflow: ellipsis !important; 76 77 position-try: most-width block-end inline-end, flip-inline, block-start center; 78 position-visibility: anchors-visible; 79 } 80 81 .overtype-link-tooltip.visible { 82 display: flex !important; 83 } 84 } 85 `,document.head.appendChild(e),this.tooltip.innerHTML=` 86 <span style="display: flex; align-items: center; gap: 6px;"> 87 <svg width="12" height="12" viewBox="0 0 20 20" fill="currentColor" style="flex-shrink: 0;"> 88 <path d="M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"></path> 89 <path d="M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"></path> 90 </svg> 91 <span class="overtype-link-tooltip-url"></span> 92 </span> 93 `,this.tooltip.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this.currentLink&&(window.open(this.currentLink.url,"_blank"),this.hide())}),this.editor.container.appendChild(this.tooltip)}checkCursorPosition(){let e=this.editor.textarea.selectionStart,t=this.editor.textarea.value,r=this.findLinkAtPosition(t,e);r?this.currentLink&&this.currentLink.url===r.url&&this.currentLink.index===r.index||this.show(r):this.scheduleHide()}findLinkAtPosition(e,t){let r,n=/\[([^\]]+)\]\(([^)]+)\)/g,i=0;for(;null!==(r=n.exec(e));){let e=r.index,n=r.index+r[0].length;if(t>=e&&t<=n)return{text:r[1],url:r[2],index:i,start:e,end:n};i++}return null}show(e){this.currentLink=e,this.cancelHide(),this.tooltip.querySelector(".overtype-link-tooltip-url").textContent=e.url,this.tooltip.style.setProperty("--target-anchor",`--link-${e.index}`),this.tooltip.classList.add("visible")}hide(){this.tooltip.classList.remove("visible"),this.currentLink=null}scheduleHide(){this.cancelHide(),this.hideTimeout=setTimeout(()=>this.hide(),300)}cancelHide(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}destroy(){this.cancelHide(),this.tooltip&&this.tooltip.parentNode&&this.tooltip.parentNode.removeChild(this.tooltip),this.tooltip=null,this.currentLink=null}},er=class e{constructor(t,r={}){let n;if("string"==typeof t){if(0===(n=document.querySelectorAll(t)).length)throw Error(`No elements found for selector: ${t}`);n=Array.from(n)}else if(t instanceof Element)n=[t];else if(t instanceof NodeList)n=Array.from(t);else if(Array.isArray(t))n=t;else throw Error("Invalid target: must be selector string, Element, NodeList, or Array");return n.map(t=>{if(t.overTypeInstance)return t.overTypeInstance.reinit(r),t.overTypeInstance;let n=Object.create(e.prototype);return n._init(t,r),t.overTypeInstance=n,e.instances.set(t,n),n})}_init(t,r={}){this.element=t,this.instanceTheme=r.theme||null,this.options=this._mergeOptions(r),this.instanceId=++e.instanceCount,this.initialized=!1,e.injectStyles(),e.initGlobalListeners();let n=t.querySelector(".overtype-container"),i=t.querySelector(".overtype-wrapper");if(n||i?this._recoverFromDOM(n,i):this._buildFromScratch(),this.shortcuts=new B(this),this.linkTooltip=new et(this),this.options.toolbar){let e="object"==typeof this.options.toolbar?this.options.toolbar.buttons:null;
93this.toolbar=new ee(this,e),this.toolbar.create(),this.textarea.addEventListener("selectionchange",()=>{this.toolbar.updateButtonStates()}),this.textarea.addEventListener("input",()=>{this.toolbar.updateButtonStates()})}this.initialized=!0,this.options.onChange&&this.options.onChange(this.getValue(),this)}_mergeOptions(e){let{theme:t,colors:r,...n}=e;return{fontSize:"14px",lineHeight:1.6,fontFamily:'"SF Mono", SFMono-Regular, Menlo, Monaco, "Cascadia Code", Consolas, "Roboto Mono", "Noto Sans Mono", "Droid Sans Mono", "Ubuntu Mono", "DejaVu Sans Mono", "Liberation Mono", "Courier New", Courier, monospace',padding:"16px",mobile:{fontSize:"16px",padding:"12px",lineHeight:1.5},textareaProps:{},autofocus:!1,autoResize:!1,minHeight:"100px",maxHeight:null,placeholder:"Start typing...",value:"",onChange:null,onKeydown:null,showActiveLineRaw:!1,showStats:!1,toolbar:!1,statsFormatter:null,smartLists:!0,...n}}_recoverFromDOM(t,r){if(t&&t.classList.contains("overtype-container"))this.container=t,this.wrapper=t.querySelector(".overtype-wrapper");else if(r){this.wrapper=r,this.container=document.createElement("div"),this.container.className="overtype-container";let t=this.instanceTheme||e.currentTheme||$,n="string"==typeof t?t:t.name;if(n&&this.container.setAttribute("data-theme",n),this.instanceTheme){let e="string"==typeof this.instanceTheme?I(this.instanceTheme):this.instanceTheme;if(e&&e.colors){let t=q(e.colors);this.container.style.cssText+=t}}r.parentNode.insertBefore(this.container,r),this.container.appendChild(r)}if(!this.wrapper){t&&t.remove(),r&&r.remove(),this._buildFromScratch();return}if(this.textarea=this.wrapper.querySelector(".overtype-input"),this.preview=this.wrapper.querySelector(".overtype-preview"),!this.textarea||!this.preview){this.container.remove(),this._buildFromScratch();return}this.wrapper._instance=this,this.options.fontSize&&this.wrapper.style.setProperty("--instance-font-size",this.options.fontSize),this.options.lineHeight&&this.wrapper.style.setProperty("--instance-line-height",String(this.options.lineHeight)),this.options.padding&&this.wrapper.style.setProperty("--instance-padding",this.options.padding),this._configureTextarea(),this._applyOptions()}_buildFromScratch(){let e=this._extractContent();this.element.innerHTML="",this._createDOM(),(e||this.options.value)&&this.setValue(e||this.options.value),this._applyOptions()}_extractContent(){let e=this.element.querySelector(".overtype-input");return e?e.value:this.element.textContent||""}_createDOM(){this.container=document.createElement("div"),this.container.className="overtype-container";let t=this.instanceTheme||e.currentTheme||$,r="string"==typeof t?t:t.name;if(r&&this.container.setAttribute("data-theme",r),this.instanceTheme){let e="string"==typeof this.instanceTheme?I(this.instanceTheme):this.instanceTheme;if(e&&e.colors){let t=q(e.colors);this.container.style.cssText+=t}}this.wrapper=document.createElement("div"),this.wrapper.className="overtype-wrapper",this.options.fontSize&&this.wrapper.style.setProperty("--instance-font-size",this.options.fontSize),this.options.lineHeight&&this.wrapper.style.setProperty("--instance-line-height",String(this.options.lineHeight)),this.options.padding&&this.wrapper.style.setProperty("--instance-padding",this.options.padding),this.wrapper._instance=this,this.textarea=document.createElement("textarea"),this.textarea.className="overtype-input",this.textarea.placeholder=this.options.placeholder,this._configureTextarea(),this.options.textareaProps&&Object.entries(this.options.textareaProps).forEach(([e,t])=>{"className"===e||"class"===e?this.textarea.className+=" "+t:"style"===e&&"object"==typeof t?Object.assign(this.textarea.style,t):this.textarea.setAttribute(e,t)}),this.preview=document.createElement("div"),this.preview.className="overtype-preview",this.preview.setAttribute("aria-hidden","true"),this.wrapper.appendChild(this.textarea),this.wrapper.appendChild(this.preview),this.container.appendChild(this.wrapper),this.options.showStats&&(this.statsBar=document.createElement("div"),this.statsBar.className="overtype-stats",this.container.appendChild(this.statsBar),this._updateStats()),this.element.appendChild(this.container),window.location.pathname.includes("demo.html")&&console.log("_createDOM completed:",{elementId:this.element.i
93d,autoResize:this.options.autoResize,containerClasses:this.container.className,hasStats:!!this.statsBar,hasToolbar:this.options.toolbar}),this.options.autoResize?this._setupAutoResize():(this.container.classList.remove("overtype-auto-resize"),window.location.pathname.includes("demo.html")&&console.log("Removed auto-resize class from:",this.element.id))}_configureTextarea(){this.textarea.setAttribute("autocomplete","off"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.setAttribute("data-gramm","false"),this.textarea.setAttribute("data-gramm_editor","false"),this.textarea.setAttribute("data-enable-grammarly","false")}_applyOptions(){this.options.autofocus&&this.textarea.focus(),this.options.autoResize?this.container.classList.contains("overtype-auto-resize")||this._setupAutoResize():this.container.classList.remove("overtype-auto-resize"),this.updatePreview()}updatePreview(){let e=this.textarea.value,t=this.textarea.selectionStart,r=this._getCurrentLine(e,t),n=o.parse(e,r,this.options.showActiveLineRaw);this.preview.innerHTML=n||'<span style="color: #808080;">Start typing...</span>',this._applyCodeBlockBackgrounds(),this.options.showStats&&this.statsBar&&this._updateStats(),this.options.onChange&&this.initialized&&this.options.onChange(e,this)}_applyCodeBlockBackgrounds(){let e=this.preview.querySelectorAll(".code-fence");for(let t=0;t<e.length-1;t+=2){let r=e[t],n=e[t+1],i=r.parentElement,a=n.parentElement;i&&a&&(r.style.display="block",n.style.display="block",i.classList.add("code-block-line"),a.classList.add("code-block-line"))}}_getCurrentLine(e,t){return e.substring(0,t).split("\n").length-1}handleInput(e){this.updatePreview()}handleKeydown(e){if("Tab"===e.key){e.preventDefault();let t=this.textarea.selectionStart,r=this.textarea.selectionEnd,n=this.textarea.value;if(t!==r&&e.shiftKey){let e=n.substring(0,t),i=n.substring(t,r),a=n.substring(r),o=i.split("\n").map(e=>e.replace(/^ /,"")).join("\n");document.execCommand?(this.textarea.setSelectionRange(t,r),document.execCommand("insertText",!1,o)):(this.textarea.value=e+o+a,this.textarea.selectionStart=t,this.textarea.selectionEnd=t+o.length)}else if(t!==r){let e=n.substring(0,t),i=n.substring(t,r),a=n.substring(r),o=i.split("\n").map(e=>" "+e).join("\n");document.execCommand?(this.textarea.setSelectionRange(t,r),document.execCommand("insertText",!1,o)):(this.textarea.value=e+o+a,this.textarea.selectionStart=t,this.textarea.selectionEnd=t+o.length)}else document.execCommand?document.execCommand("insertText",!1," "):(this.textarea.value=n.substring(0,t)+" "+n.substring(r),this.textarea.selectionStart=this.textarea.selectionEnd=t+2);this.textarea.dispatchEvent(new Event("input",{bubbles:!0}));return}"Enter"===e.key&&!e.shiftKey&&!e.metaKey&&!e.ctrlKey&&this.options.smartLists&&this.handleSmartListContinuation()?e.preventDefault():!this.shortcuts.handleKeydown(e)&&this.options.onKeydown&&this.options.onKeydown(e,this)}handleSmartListContinuation(){let e=this.textarea,t=e.selectionStart,r=o.getListContext(e.value,t);return!!r&&!!r.inList&&(""===r.content.trim()&&t>=r.markerEndPos?this.deleteListMarker(r):(t>r.markerEndPos&&t<r.lineEnd?this.splitListItem(r,t):this.insertNewListItem(r),"numbered"===r.listType&&this.scheduleNumberedListUpdate()),!0)}deleteListMarker(e){this.textarea.setSelectionRange(e.lineStart,e.markerEndPos),document.execCommand("delete"),this.textarea.dispatchEvent(new Event("input",{bubbles:!0}))}insertNewListItem(e){let t=o.createNewListItem(e);document.execCommand("insertText",!1,"\n"+t),this.textarea.dispatchEvent(new Event("input",{bubbles:!0}))}splitListItem(e,t){let r=e.content.substring(t-e.markerEndPos);this.textarea.setSelectionRange(t,e.lineEnd),document.execCommand("delete");let n=o.createNewListItem(e);document.execCommand("insertText",!1,"\n"+n+r);let i=this.textarea.selectionStart-r.length;this.textarea.setSelectionRange(i,i),this.textarea.dispatchEvent(new Event("input",{bubbles:!0}))}scheduleNumberedListUpdate(){this.numberUpdateTimeout&&clearTimeout(this.numberUpdateTimeout),this.numberUpdateTimeout=setTimeout(()=>{this.updateNumberedLists()},10)}updateNumberedLists(){let e=this.textarea.value,t=this.textarea.selectionStart,r=o.renumberLists(e);if(r!==e){let n=0,i=e.split("\n"),a=r.split("\n"),o=0;for(let e=0;e<i.length&&o<t;e++){if(i[e]!==a[e]){let r=a[e].length-i[e].length;o+i[e].length<t&&(n+=r)}o+=i[e].length+1}this.textarea.value=r;let s=t+n;this.textarea.setSelectionRange(s,s),this.textarea.dispatchEvent(new Event("input",{bubbles:!0}))}}handleScroll(e){this.preview.scrollTop=this.textarea.scrollTop,this.preview.scrollLeft=this.textarea.scrollLeft}getValue(){return this.textarea.value}setValue(e){this.textarea.value=e,this.updatePreview(),this.options.autoResize&&this._updateAutoHeight()}getRenderedHTML(e={}){let t=this.getValue(),r=o.parse(t);return e.cleanHTML&&(r=(r=(r=r.replace(/<span class="syntax-marker[^"]*">.*?<\/span>/g,"")).replace(/\sclass="(bullet-list|ordered-list|code-fence|hr-marker|blockquote|url-part)"/g,"")).replace(/\sclass=""/g,"")),r}getPreviewHTML(){return this.preview.innerHTML}getCleanHTML(){return this.getRenderedHTML({cleanHTML:!0})}focus(){this.textarea.focus()}blur(){this.textarea.blur()}isInitialized(){return this.initialized}reinit(e={}){this.options=this._mergeOptions({...this.options,...e}),this._applyOptions(),this.updatePreview()}_updateStats(){if(!this.statsBar)return;let e=this.textarea.value,t=e.split("\n"),r=e.length,n=e.split(/\s+/).filter(e=>e.length>0).length,i=this.textarea.selectionStart,a=e.substring(0,i).split("\n"),o=a.length,s=a[a.length-1].length+1;this.options.statsFormatter?this.statsBar.innerHTML=this.options.statsFormatter({chars:r,words:n,lines:t.length,line:o,column:s}):this.statsBar.innerHTML=` 94 <div class="overtype-stat">
95 <span class="live-dot"></span> 96 <span>${r} chars, ${n} words, ${t.length} lines</span> 97 </div> 98 <div class="overtype-stat">Line ${o}, Col ${s}</div> 99 `}_setupAutoResize(){this.container.classList.add("overtype-auto-resize"),this.previousHeight=null,this._updateAutoHeight(),this.textarea.addEventListener("input",()=>this._updateAutoHeight()),window.addEventListener("resize",()=>this._updateAutoHeight())}_updateAutoHeight(){if(!this.options.autoResize)return;let e=this.textarea,t=this.preview,r=this.wrapper,n=window.getComputedStyle(e);parseFloat(n.paddingTop),parseFloat(n.paddingBottom);let i=e.scrollTop;e.style.setProperty("height","auto","important");let a=e.scrollHeight;this.options.minHeight&&(a=Math.max(a,parseInt(this.options.minHeight)));let o="hidden";if(this.options.maxHeight){let e=parseInt(this.options.maxHeight);a>e&&(a=e,o="auto")}let s=a+"px";e.style.setProperty("height",s,"important"),e.style.setProperty("overflow-y",o,"important"),t.style.setProperty("height",s,"important"),t.style.setProperty("overflow-y",o,"important"),r.style.setProperty("height",s,"important"),e.scrollTop=i,t.scrollTop=i,this.previousHeight!==a&&(this.previousHeight=a)}showStats(e){this.options.showStats=e,e&&!this.statsBar?(this.statsBar=document.createElement("div"),this.statsBar.className="overtype-stats",this.container.appendChild(this.statsBar),this._updateStats()):!e&&this.statsBar&&(this.statsBar.remove(),this.statsBar=null)}showPlainTextarea(e){if(e?this.container.classList.add("plain-mode"):this.container.classList.remove("plain-mode"),this.toolbar){let t=this.container.querySelector('[data-action="toggle-plain"]');t&&(t.classList.toggle("active",!e),t.title=e?"Show markdown preview":"Show plain textarea")}return e}showPreviewMode(e){return e?this.container.classList.add("preview-mode"):this.container.classList.remove("preview-mode"),e}destroy(){if(this.element.overTypeInstance=null,e.instances.delete(this.element),this.shortcuts&&this.shortcuts.destroy(),this.wrapper){let e=this.getValue();this.wrapper.remove(),this.element.textContent=e}this.initialized=!1}static init(t,r={}){return new e(t,r)}static getInstance(t){return t.overTypeInstance||e.instances.get(t)||null}static destroyAll(){document.querySelectorAll("[data-overtype-instance]").forEach(t=>{let r=e.getInstance(t);r&&r.destroy()})}static injectStyles(t=!1){if(e.stylesInjected&&!t)return;let r=document.querySelector("style.overtype-styles");r&&r.remove();let n=function(e={}){let{fontSize:t="14px",lineHeight:r=1.6,fontFamily:n='"SF Mono", SFMono-Regular, Menlo, Monaco, "Cascadia Code", Consolas, "Roboto Mono", "Noto Sans Mono", "Droid Sans Mono", "Ubuntu Mono", "DejaVu Sans Mono", "Liberation Mono", "Courier New", Courier, monospace',padding:i="20px",theme:a=null,mobile:o={}}=e,s=Object.keys(o).length>0?` 100 @media (max-width: 640px) { 101 .overtype-wrapper .overtype-input, 102 .overtype-wrapper .overtype-preview { 103 ${Object.entries(o).map(([e,t])=>{let r=e.replace(/([A-Z])/g,"-$1").toLowerCase();return`${r}: ${t} !important;`}).join("\n ")} 104 } 105 } 106 `:"",l=a&&a.colors?q(a.colors):"";return` 107 /* OverType Editor Styles */ 108 109 /* Middle-ground CSS Reset - Prevent parent styles from leaking in */ 110 .overtype-container * { 111 /* Box model - these commonly leak */ 112 margin: 0 !important; 113 padding: 0 !important; 114 border: 0 !important; 115 116 /* Layout - these can break our layout */ 117 /* Don't reset position - it breaks dropdowns */ 118 float: none !important; 119 clear: none !important; 120 121 /* Typography - only reset decorative aspects */ 122 text-decoration: none !important; 123 text-transform: none !important; 124 letter-spacing: normal !important; 125 126 /* Visual effects that can interfere */ 127 box-shadow: none !important; 128 text-shadow: none !important; 129 130 /* Ensure box-sizing is consistent */ 131 box-sizing: border-box !important; 132 133 /* Keep inheritance for these */ 134 /* font-family, color, line-height, font-size - inherit */ 135 } 136 137 /* Container base styles after reset */ 138 .overtype-container { 139 display: grid !important; 140 grid-template-rows: auto 1fr auto !important; 141 width: 100% !important; 142 height: 100% !important; 143 position: relative !important; /* Override reset - needed for absolute children */ 144 overflow: visible !important; /* Allow dropdown to overflow container */ 145 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; 146 text-align: left !important; 147 ${l?` 148 /* Theme Variables */ 149 ${l}`:""} 150 } 151 152 /* Force left alignment for all elements in the editor */ 153 .overtype-container .overtype-wrapper * { 154 text-align: left !important; 155 } 156 157 /* Auto-resize mode styles */ 158 .overtype-container.overtype-auto-resize { 159 height: auto !important; 160 grid-template-rows: auto auto auto !important; 161 } 162 163 .overtype-container.overtype-auto-resize .overtype-wrapper { 164 height: auto !important; 165 min-height: 60px !important; 166 overflow: visible !important; 167 } 168 169 .overtype-wrapper { 170 position: relative !important; /* Override reset - needed for absolute children */ 171 width: 100% !important; 172 height: 100% !important; /* Take full height of grid cell */ 173 min-height: 60px !important; /* Minimum usable height */ 174 overflow: hidden !important; 175 background: var(--bg-secondary, #ffffff) !important;
176 grid-row: 2 !important; /* Always second row in grid */ 177 z-index: 1; /* Below toolbar and dropdown */ 178 } 179 180 /* Critical alignment styles - must be identical for both layers */ 181 .overtype-wrapper .overtype-input, 182 .overtype-wrapper .overtype-preview { 183 /* Positioning - must be identical */ 184 position: absolute !important; /* Override reset - required for overlay */ 185 top: 0 !important; 186 left: 0 !important; 187 width: 100% !important; 188 height: 100% !important; 189 190 /* Font properties - any difference breaks alignment */ 191 font-family: ${n} !important; 192 font-variant-ligatures: none !important; /* keep metrics stable for code */ 193 font-size: var(--instance-font-size, ${t}) !important; 194 line-height: var(--instance-line-height, ${r}) !important; 195 font-weight: normal !important; 196 font-style: normal !important; 197 font-variant: normal !important; 198 font-stretch: normal !important; 199 font-kerning: none !important; 200 font-feature-settings: normal !important; 201 202 /* Box model - must match exactly */ 203 padding: var(--instance-padding, ${i}) !important; 204 margin: 0 !important; 205 border: none !important; 206 outline: none !important; 207 box-sizing: border-box !important; 208 209 /* Text layout - critical for character positioning */ 210 white-space: pre-wrap !important; 211 word-wrap: break-word !important; 212 word-break: normal !important; 213 overflow-wrap: break-word !important; 214 tab-size: 2 !important; 215 -moz-tab-size: 2 !important; 216 text-align: left !important; 217 text-indent: 0 !important; 218 letter-spacing: normal !important; 219 word-spacing: normal !important; 220 221 /* Text rendering */ 222 text-transform: none !important; 223 text-rendering: auto !important; 224 -webkit-font-smoothing: auto !important; 225 -webkit-text-size-adjust: 100% !important; 226 227 /* Direction and writing */ 228 direction: ltr !important; 229 writing-mode: horizontal-tb !important; 230 unicode-bidi: normal !important; 231 text-orientation: mixed !important; 232 233 /* Visual effects that could shift perception */ 234 text-shadow: none !important; 235 filter: none !important; 236 transform: none !important; 237 zoom: 1 !important; 238 239 /* Vertical alignment */ 240 vertical-align: baseline !important; 241 242 /* Size constraints */ 243 min-width: 0 !important; 244 min-height: 0 !important; 245 max-width: none !important; 246 max-height: none !important; 247 248 /* Overflow */ 249 overflow-y: auto !important; 250 overflow-x: auto !important; 251 /* overscroll-behavior removed to allow scroll-through to parent */ 252 scrollbar-width: auto !important; 253 scrollbar-gutter: auto !important; 254 255 /* Animation/transition - disabled to prevent movement */ 256 animation: none !important; 257 transition: none !important; 258 } 259 260 /* Input layer styles */ 261 .overtype-wrapper .overtype-input { 262 /* Layer positioning */ 263 z-index: 1 !important; 264 265 /* Text visibility */ 266 color: transparent !important; 267 caret-color: var(--cursor, #f95738) !important; 268 background-color: transparent !important; 269 270 /* Textarea-specific */ 271 resize: none !important; 272 appearance: none !important; 273 -webkit-appearance: none !important; 274 -moz-appearance: none !important; 275 276 /* Prevent mobile zoom on focus */ 277 touch-action: manipulation !important; 278 279 /* Disable autofill and spellcheck */ 280 autocomplete: off !important; 281 autocorrect: off !important; 282 autocapitalize: off !important; 283 spellcheck: false !important; 284 } 285 286 .overtype-wrapper .overtype-input::selection { 287 background-color: var(--selection, rgba(244, 211, 94, 0.4)); 288 } 289 290 /* Preview layer styles */ 291 .overtype-wrapper .overtype-preview { 292 /* Layer positioning */ 293 z-index: 0 !important; 294 pointer-events: none !important; 295 color: var(--text, #0d3b66) !important; 296 background-color: transparent !important; 297 298 /* Prevent text selection */ 299 user-select: none !important; 300 -webkit-user-select: none !important; 301 -moz-user-select: none !important;
302 -ms-user-select: none !important; 303 } 304 305 /* Defensive styles for preview child divs */ 306 .overtype-wrapper .overtype-preview div { 307 /* Reset any inherited styles */ 308 margin: 0 !important; 309 padding: 0 !important; 310 border: none !important; 311 text-align: left !important; 312 text-indent: 0 !important; 313 display: block !important; 314 position: static !important; 315 transform: none !important; 316 min-height: 0 !important; 317 max-height: none !important; 318 line-height: inherit !important; 319 font-size: inherit !important; 320 font-family: inherit !important; 321 } 322 323 /* Markdown element styling - NO SIZE CHANGES */ 324 .overtype-wrapper .overtype-preview .header { 325 font-weight: bold !important; 326 } 327 328 /* Header colors */ 329 .overtype-wrapper .overtype-preview .h1 { 330 color: var(--h1, #f95738) !important; 331 } 332 .overtype-wrapper .overtype-preview .h2 { 333 color: var(--h2, #ee964b) !important; 334 } 335 .overtype-wrapper .overtype-preview .h3 { 336 color: var(--h3, #3d8a51) !important; 337 } 338 339 /* Semantic headers - flatten in edit mode */ 340 .overtype-wrapper .overtype-preview h1, 341 .overtype-wrapper .overtype-preview h2, 342 .overtype-wrapper .overtype-preview h3 { 343 font-size: inherit !important; 344 font-weight: bold !important; 345 margin: 0 !important; 346 padding: 0 !important; 347 display: inline !important; 348 line-height: inherit !important; 349 } 350 351 /* Header colors for semantic headers */ 352 .overtype-wrapper .overtype-preview h1 { 353 color: var(--h1, #f95738) !important; 354 } 355 .overtype-wrapper .overtype-preview h2 { 356 color: var(--h2, #ee964b) !important; 357 } 358 .overtype-wrapper .overtype-preview h3 { 359 color: var(--h3, #3d8a51) !important; 360 } 361 362 /* Lists - remove styling in edit mode */ 363 .overtype-wrapper .overtype-preview ul, 364 .overtype-wrapper .overtype-preview ol { 365 list-style: none !important; 366 margin: 0 !important; 367 padding: 0 !important; 368 display: block !important; /* Lists need to be block for line breaks */ 369 } 370 371 .overtype-wrapper .overtype-preview li { 372 display: block !important; /* Each item on its own line */ 373 margin: 0 !important; 374 padding: 0 !important; 375 /* Don't set list-style here - let ul/ol control it */ 376 } 377 378 /* Bold text */ 379 .overtype-wrapper .overtype-preview strong { 380 color: var(--strong, #ee964b) !important; 381 font-weight: bold !important; 382 } 383 384 /* Italic text */ 385 .overtype-wrapper .overtype-preview em { 386 color: var(--em, #f95738) !important; 387 text-decoration-color: var(--em, #f95738) !important; 388 text-decoration-thickness: 1px !important; 389 font-style: italic !important; 390 } 391 392 /* Strikethrough text */ 393 .overtype-wrapper .overtype-preview del { 394 color: var(--del, #ee964b) !important; 395 text-decoration: line-through !important; 396 text-decoration-color: var(--del, #ee964b) !important; 397 text-decoration-thickness: 1px !important; 398 } 399 400 /* Inline code */ 401 .overtype-wrapper .overtype-preview code { 402 background: var(--code-bg, rgba(244, 211, 94, 0.4)) !important; 403 color: var(--code, #0d3b66) !important; 404 padding: 0 !important; 405 border-radius: 2px !important; 406 font-family: inherit !important; 407 font-size: inherit !important; 408 line-height: inherit !important; 409 font-weight: normal !important; 410 } 411 412 /* Code blocks - consolidated pre blocks */ 413 .overtype-wrapper .overtype-preview pre { 414 padding: 0 !important; 415 margin: 0 !important; 416 border-radius: 4px !important; 417 overflow-x: auto !important; 418 } 419 420 /* Code block styling in normal mode - yellow background */ 421 .overtype-wrapper .overtype-preview pre.code-block { 422 background: var(--code-bg, rgba(244, 211, 94, 0.4)) !important; 423 } 424 425 /* Code inside pre blocks - remove background */ 426 .overtype-wrapper .overtype-preview pre code { 427 background: transparent !important; 428 color: var(--code, #0d3b66) !important; 429 } 430 431 /* Blockquotes */ 432 .overtype-wrapper .overtype-preview .blockquote { 433 color: var(--blockquote, #5a7a9b) !important; 434 padding: 0 !important; 435 margin: 0 !important; 436 border: none !important; 437 } 438 439 /* Links */ 440 .overtype-wrapper .overtype-preview a { 441 color: var(--link, #0d3b66) !important; 442 text-decoration: underline !important; 443 font-weight: normal !important; 444 } 445 446 .overtype-wrapper .overtype-preview a:hover { 447 text-decoration: underline !important; 448 color: var(--link, #0d3b66) !important; 449 } 450 451 /* Lists - no list styling */ 452 .overtype-wrapper .overtype-preview ul, 453 .overtype-wrapper .overtype-preview ol { 454 list-style: none !important; 455 margin: 0 !important; 456 padding: 0 !important; 457 } 458 459 460 /* Horizontal rules */ 461 .overtype-wrapper .overtype-preview hr { 462 border: none !important; 463 color: var(--hr, #5a7a9b) !important; 464 margin: 0 !important; 465 padding: 0 !important; 466 } 467 468 .overtype-wrapper .overtype-preview .hr-marker { 469 color: var(--hr, #5a7a9b) !important; 470 opacity: 0.6 !important; 471 } 472 473 /* Code fence markers - with background when not in code block */ 474 .overtype-wrapper .overtype-preview .code-fence { 475 color: var(--code, #0d3b66) !important; 476 background: var(--code-bg, rgba(244, 211, 94, 0.4)) !important; 477 } 478 479 /* Code block lines - background for entire code block */ 480 .overtype-wrapper .overtype-preview .code-block-line { 481 background: var(--code-bg, rgba(244, 211, 94, 0.4)) !important; 482 } 483 484 /* Remove background from code fence when inside code block line */ 485 .overtype-wrapper .overtype-preview .code-block-line .code-fence { 486 background: transparent !important; 487 } 488 489 /* Raw markdown line */ 490 .overtype-wrapper .overtype-preview .raw-line { 491 color: var(--raw-line, #5a7a9b) !important; 492 font-style: normal !important; 493 font-weight: normal !important; 494 } 495 496 /* Syntax markers */ 497 .overtype-wrapper .overtype-preview .syntax-marker { 498 color: var(--syntax-marker, rgba(13, 59, 102, 0.52)) !important; 499 opacity: 0.7 !important; 500 } 501 502 /* List markers */ 503 .overtype-wrapper .overtype-preview .list-marker { 504 color: var(--list-marker, #ee964b) !important; 505 } 506 507 /* Stats bar */ 508 509 /* Stats bar - positioned by grid, not absolute */ 510 .overtype-stats { 511 height: 40px !important; 512 padding: 0 20px !important; 513 background: #f8f9fa !important; 514 border-top: 1px solid #e0e0e0 !important; 515 display: flex !important; 516 justify-content: space-between !important; 517 align-items: center !important; 518 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; 519 font-size: 0.85rem !important; 520 color: #666 !important; 521 grid-row: 3 !important; /* Always third row in grid */ 522 } 523 524 /* Dark theme stats bar */ 525 .overtype-container[data-theme="cave"] .overtype-stats { 526 background: var(--bg-secondary, #1D2D3E) !important; 527 border-top: 1px solid rgba(197, 221, 232, 0.1) !important; 528 color: var(--text, #c5dde8) !important; 529 } 530 531 .overtype-stats .overtype-stat { 532 display: flex !important; 533 align-items: center !important; 534 gap: 5px !important; 535 white-space: nowrap !important; 536 } 537 538 .overtype-stats .live-dot { 539 width: 8px !important; 540 height: 8px !important; 541 background: #4caf50 !important; 542 border-radius: 50% !important; 543 animation: overtype-pulse 2s infinite !important; 544 } 545 546 @keyframes overtype-pulse { 547 0%, 100% { opacity: 1; transform: scale(1); } 548 50% { opacity: 0.6; transform: scale(1.2); } 549 } 550 551 552 /* Toolbar Styles */ 553 .overtype-toolbar { 554 display: flex !important; 555 align-items: center !important; 556 gap: 4px !important; 557 padding: 8px !important; /* Override reset */ 558 background: var(--toolbar-bg, var(--bg-primary, #f8f9fa)) !important; /* Override reset */ 559 overflow-x: auto !important; /* Allow horizontal scrolling */ 560 overflow-y: hidden !important; /* Hide vertical overflow */ 561 -webkit-overflow-scrolling: touch !important; 562 flex-shrink: 0 !important; 563 height: auto !important; 564 grid-row: 1 !important; /* Always first row in grid */ 565 position: relative !important; /* Override reset */ 566 z-index: 100 !important; /* Ensure toolbar is above wrapper */ 567 scrollbar-width: thin; /* Thin scrollbar on Firefox */ 568 } 569 570 /* Thin scrollbar styling */ 571 .overtype-toolbar::-webkit-scrollbar {
572 height: 4px; 573 } 574 575 .overtype-toolbar::-webkit-scrollbar-track { 576 background: transparent; 577 } 578 579 .overtype-toolbar::-webkit-scrollbar-thumb { 580 background: rgba(0, 0, 0, 0.2); 581 border-radius: 2px; 582 } 583 584 .overtype-toolbar-button { 585 display: flex; 586 align-items: center; 587 justify-content: center; 588 width: 32px; 589 height: 32px; 590 padding: 0; 591 border: none; 592 border-radius: 6px; 593 background: transparent; 594 color: var(--toolbar-icon, var(--text-secondary, #666)); 595 cursor: pointer; 596 transition: all 0.2s ease; 597 flex-shrink: 0; 598 } 599 600 .overtype-toolbar-button svg { 601 width: 20px; 602 height: 20px; 603 fill: currentColor; 604 } 605 606 .overtype-toolbar-button:hover { 607 background: var(--toolbar-hover, var(--bg-secondary, #e9ecef)); 608 color: var(--toolbar-icon, var(--text-primary, #333)); 609 } 610 611 .overtype-toolbar-button:active { 612 transform: scale(0.95); 613 } 614 615 .overtype-toolbar-button.active { 616 background: var(--toolbar-active, var(--primary, #007bff)); 617 color: var(--toolbar-icon, var(--text-primary, #333)); 618 } 619 620 .overtype-toolbar-button:disabled { 621 opacity: 0.5; 622 cursor: not-allowed; 623 } 624 625 .overtype-toolbar-separator { 626 width: 1px; 627 height: 24px; 628 background: var(--border, #e0e0e0); 629 margin: 0 4px; 630 flex-shrink: 0; 631 } 632 633 /* Adjust wrapper when toolbar is present */ 634 .overtype-container .overtype-toolbar + .overtype-wrapper { 635 } 636 637 /* Mobile toolbar adjustments */ 638 @media (max-width: 640px) { 639 .overtype-toolbar { 640 padding: 6px; 641 gap: 2px; 642 } 643 644 .overtype-toolbar-button { 645 width: 36px; 646 height: 36px; 647 } 648 649 .overtype-toolbar-separator { 650 margin: 0 2px; 651 } 652 } 653 654 /* Plain mode - hide preview and show textarea text */ 655 .overtype-container.plain-mode .overtype-preview { 656 display: none !important; 657 } 658 659 .overtype-container.plain-mode .overtype-input { 660 color: var(--text, #0d3b66) !important; 661 /* Use system font stack for better plain text readability */ 662 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 663 "Helvetica Neue", Arial, sans-serif !important; 664 } 665 666 /* Ensure textarea remains transparent in overlay mode */ 667 .overtype-container:not(.plain-mode) .overtype-input { 668 color: transparent !important; 669 } 670 671 /* Dropdown menu styles */ 672 .overtype-toolbar-button { 673 position: relative !important; /* Override reset - needed for dropdown */ 674 } 675 676 .overtype-toolbar-button.dropdown-active { 677 background: var(--toolbar-active, var(--hover-bg, #f0f0f0)); 678 } 679 680 .overtype-dropdown-menu { 681 position: fixed !important; /* Fixed positioning relative to viewport */ 682 background: var(--bg-secondary, white) !important; /* Override reset */ 683 border: 1px solid var(--border, #e0e0e0) !important; /* Override reset */ 684 border-radius: 6px; 685 box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important; /* Override reset */ 686 z-index: 10000; /* Very high z-index to ensure visibility */ 687 min-width: 150px; 688 padding: 4px 0 !important; /* Override reset */ 689 /* Position will be set via JavaScript based on button position */ 690 } 691 692 .overtype-dropdown-item { 693 display: flex; 694 align-items: center; 695 width: 100%; 696 padding: 8px 12px; 697 border: none; 698 background: none; 699 text-align: left; 700 cursor: pointer; 701 font-size: 14px; 702 color: var(--text, #333); 703 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 704 } 705 706 .overtype-dropdown-item:hover { 707 background: var(--hover-bg, #f0f0f0); 708 } 709 710 .overtype-dropdown-item.active { 711 font-weight: 600; 712 } 713 714 .overtype-dropdown-check { 715 width: 16px; 716 margin-right: 8px; 717 color: var(--h1, #007bff); 718 } 719 720 /* Preview mode styles */ 721 .overtype-container.preview-mode .overtype-input { 722 display: none !important; 723 } 724 725 .overtype-container.preview-mode .overtype-preview { 726 pointer-events: auto !important; 727 user-select: text !important; 728 cursor: text !important; 729 } 730 731 /* Hide syntax markers in preview mode */ 732 .overtype-container.preview-mode .syntax-marker { 733 display: none !important; 734 } 735 736 /* Hide URL part of links in preview mode - extra specificity */ 737 .overtype-container.preview-mode .syntax-marker.url-part, 738 .overtype-container.preview-mode .url-part { 739 display: none !important; 740 } 741 742 /* Hide all syntax markers inside links too */ 743 .overtype-container.preview-mode a .syntax-marker { 744 display: none !important; 745 } 746 747 /* Headers - restore proper sizing in preview mode */ 748 .overtype-container.preview-mode .overtype-wrapper .overtype-preview h1, 749 .overtype-container.preview-mode .overtype-wrapper .overtype-preview h2, 750 .overtype-container.preview-mode .overtype-wrapper .overtype-preview h3 { 751 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; 752 font-weight: 600 !important; 753 margin: 0 !important; 754 display: block !important; 755 color: inherit !important; /* Use parent text color */ 756 line-height: 1 !important; /* Tight line height for headings */ 757 } 758 759 .overtype-container.preview-mode .overtype-wrapper .overtype-preview h1 { 760 font-size: 2em !important; 761 } 762 763 .overtype-container.preview-mode .overtype-wrapper .overtype-preview h2 { 764 font-size: 1.5em !important; 765 } 766 767 .overtype-container.preview-mode .overtype-wrapper .overtype-preview h3 { 768 font-size: 1.17em !important; 769 } 770 771 /* Lists - restore list styling in preview mode */ 772 .overtype-container.preview-mode .overtype-wrapper .overtype-preview ul { 773 display: block !important; 774 list-style: disc !important; 775 padding-left: 2em !important; 776 margin: 1em 0 !important; 777 } 778 779 .overtype-container.preview-mode .overtype-wrapper .overtype-preview ol { 780 display: block !important; 781 list-style: decimal !important; 782 padding-left: 2em !important; 783 margin: 1em 0 !important; 784 } 785 786 .overtype-container.preview-mode .overtype-wrapper .overtype-preview li { 787 display: list-item !important; 788 margin: 0 !important; 789 padding: 0 !important; 790 } 791 792 /* Links - make clickable in preview mode */ 793 .overtype-container.preview-mode .overtype-wrapper .overtype-preview a { 794 pointer-events: auto !important; 795 cursor: pointer !important; 796 color: var(--link, #0066cc) !important; 797 text-decoration: underline !important; 798 } 799 800 /* Code blocks - proper pre/code styling in preview mode */ 801 .overtype-container.preview-mode .overtype-wrapper .overtype-preview pre.code-block { 802 background: #2d2d2d !important; 803 color: #f8f8f2 !important; 804 padding: 1.2em !important; 805 border-radius: 3px !important; 806 overflow-x: auto !important; 807 margin: 0 !important; 808 display: block !important; 809 } 810 811 /* Cave theme code block background in preview mode */ 812 .overtype-container[data-theme="cave"].preview-mode .overtype-wrapper .overtype-preview pre.code-block { 813 background: #11171F !important; 814 } 815 816 .overtype-container.preview-mode .overtype-wrapper .overtype-preview pre.code-block code { 817 background: transparent !important; 818 color: inherit !important; 819 padding: 0 !important; 820 font-family: ${n} !important; 821 font-size: 0.9em !important; 822 line-height: 1.4 !important; 823 } 824 825 /* Hide old code block lines and fences in preview mode */ 826 .overtype-container.preview-mode .overtype-wrapper .overtype-preview .code-block-line { 827 display: none !important; 828 } 829 830 .overtype-container.preview-mode .overtype-wrapper .overtype-preview .code-fence { 831 display: none !important; 832 } 833
834 /* Blockquotes - enhanced styling in preview mode */ 835 .overtype-container.preview-mode .overtype-wrapper .overtype-preview .blockquote { 836 display: block !important; 837 border-left: 4px solid var(--blockquote, #ddd) !important; 838 padding-left: 1em !important; 839 margin: 1em 0 !important; 840 font-style: italic !important; 841 } 842 843 /* Typography improvements in preview mode */ 844 .overtype-container.preview-mode .overtype-wrapper .overtype-preview { 845 font-family: Georgia, 'Times New Roman', serif !important; 846 font-size: 16px !important; 847 line-height: 1.8 !important; 848 color: var(--text, #333) !important; /* Consistent text color */ 849 } 850 851 /* Inline code in preview mode - keep monospace */ 852 .overtype-container.preview-mode .overtype-wrapper .overtype-preview code { 853 font-family: ${n} !important; 854 font-size: 0.9em !important; 855 background: rgba(135, 131, 120, 0.15) !important; 856 padding: 0.2em 0.4em !important; 857 border-radius: 3px !important; 858 } 859 860 /* Strong and em elements in preview mode */ 861 .overtype-container.preview-mode .overtype-wrapper .overtype-preview strong { 862 font-weight: 700 !important; 863 color: inherit !important; /* Use parent text color */ 864 } 865 866 .overtype-container.preview-mode .overtype-wrapper .overtype-preview em { 867 font-style: italic !important; 868 color: inherit !important; /* Use parent text color */ 869 } 870 871 /* HR in preview mode */ 872 .overtype-container.preview-mode .overtype-wrapper .overtype-preview .hr-marker { 873 display: block !important; 874 border-top: 2px solid var(--hr, #ddd) !important; 875 text-indent: -9999px !important; 876 height: 2px !important; 877 } 878 879 ${s} 880 `}({theme:e.currentTheme||$}),i=document.createElement("style");i.className="overtype-styles",i.textContent=n,document.head.appendChild(i),e.stylesInjected=!0}static setTheme(t,r=null){let n="string"==typeof t?I(t):t;r&&(n=function(e,t={}){return{...e,colors:{...e.colors,...t}}}(n,r)),e.currentTheme=n,e.injectStyles(!0),document.querySelectorAll(".overtype-container").forEach(e=>{let t="string"==typeof n?n:n.name;t&&e.setAttribute("data-theme",t)}),document.querySelectorAll(".overtype-wrapper").forEach(e=>{if(!e.closest(".overtype-container")){let t="string"==typeof n?n:n.name;t&&e.setAttribute("data-theme",t)}let t=e._instance;t&&t.updatePreview()})}static initGlobalListeners(){e.globalListenersInitialized||(document.addEventListener("input",e=>{if(e.target&&e.target.classList&&e.target.classList.contains("overtype-input")){let t=e.target.closest(".overtype-wrapper"),r=null==t?void 0:t._instance;r&&r.handleInput(e)}}),document.addEventListener("keydown",e=>{if(e.target&&e.target.classList&&e.target.classList.contains("overtype-input")){let t=e.target.closest(".overtype-wrapper"),r=null==t?void 0:t._instance;r&&r.handleKeydown(e)}}),document.addEventListener("scroll",e=>{if(e.target&&e.target.classList&&e.target.classList.contains("overtype-input")){let t=e.target.closest(".overtype-wrapper"),r=null==t?void 0:t._instance;r&&r.handleScroll(e)}},!0),document.addEventListener("selectionchange",e=>{let t=document.activeElement;if(t&&t.classList.contains("overtype-input")){let e=t.closest(".overtype-wrapper"),r=null==e?void 0:e._instance;r&&(r.options.showStats&&r.statsBar&&r._updateStats(),clearTimeout(r._selectionTimeout),r._selectionTimeout=setTimeout(()=>{r.updatePreview()},50))}}),e.globalListenersInitialized=!0)}};function en(e){let i,a,o,s,l,c=(0,r.c)(11),{value:u,onChange:d,placeholder:p,minHeight:h,showToolbar:m}=e,f=void 0===h?400:h,g=(0,n.useRef)(null),v=(0,n.useRef)(null);return c[0]!==f||c[1]!==d||c[2]!==p||c[3]!==m||c[4]!==u?(i=()=>{let[e]=er.init(g.current,{value:u,onChange:d,placeholder:p,minHeight:f,showToolbar:m});return v.current=e,()=>v.current?.destroy()},c[0]=f,c[1]=d,c[2]=p,c[3]=m,c[4]=u,c[5]=i):i=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(a=[],c[6]=a):a=c[6],(0,n.useEffect)(i,a),c[7]!==u?(o=()=>{v.current&&u!==v.current.getValue()&&v.current.setValue(u)},s=[u],c[7]=u,c[8]=o,c[9]=s):(o=c[8],s=c[9]),(0,n.useEffect)(o,s),c[10]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("div",{className:"overflow-hidden rounded-md border",ref:g,style:{height:"400px"}}),c[10]=l):l=c[10],l}a(er,"instances",new WeakMap),a(er,"stylesInjected",!1),a(er,"globalListenersInitialized",!1),a(er,"instanceCount",0),er.MarkdownParser=o,er.ShortcutsM
880anager=B,er.themes={solar:$,cave:I("cave")},er.getTheme=I,er.currentTheme=$,e.s(["MarkdownEditor",()=>en],403732)},394673,e=>{"use strict";var t=e.i(476683);e.s(["Coins",()=>t.default])},864071,e=>{"use strict";var t=e.i(889412);e.s(["LayoutDashboard",()=>t.default])},148551,e=>{"use strict";var t=e.i(578767);e.s(["LogOut",()=>t.default])},39973,e=>{"use strict";var t=e.i(524666);e.s(["User",()=>t.default])},422812,581682,e=>{"use strict";let t;var r=e.i(466471),n=e.i(536355),i=e.i(545532),a=e.i(884702);let o=a.default.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),s=()=>{let e=a.default.useContext(o);if(!e)throw Error("useDrawerContext must be used within a Drawer.Root");return e};function l(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function c(){return u(/^iPhone/)||u(/^iPad/)||u(/^Mac/)&&navigator.maxTouchPoints>1}function u(e){return"undefined"!=typeof window&&null!=window.navigator?e.test(window.navigator.platform):void 0}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}
880[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}");let d="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;function p(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}let h="undefined"!=typeof document&&window.visualViewport;function m(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function f(e){for(m(e)&&(e=e.parentElement);e&&!m(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}let g=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),v=0;function x(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function y(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=f(e);
880if(t!==document.documentElement&&t!==document.body&&t!==e){let r=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=n-r)}e=t.parentElement}}function b(e){return e instanceof HTMLInputElement&&!g.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function w(...e){return a.useCallback(function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(...e),e)}let k=new WeakMap;function _(e,t,r=!1){if(!e||!(e instanceof HTMLElement))return;let n={};Object.entries(t).forEach(([t,r])=>{t.startsWith("--")?e.style.setProperty(t,r):(n[t]=e.style[t],e.style[t]=r)}),r||k.set(e,n)}let C=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function E(e,t){if(!e)return null;let r=window.getComputedStyle(e),n=r.transform||r.webkitTransform||r.mozTransform,i=n.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(", ")[C(t)?13:12]):(i=n.match(/^matrix\((.+)\)$/))?parseFloat(i[1].split(", ")[C(t)?5:4]):null}function D(e,t){if(!e)return()=>{};let r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}let A=[.32,.72,0,1],S="vaul-dragging";function j(e){let t=a.default.useRef(e);return a.default.useEffect(()=>{t.current=e}),a.default.useMemo(()=>(...e)=>null==t.current?void 0:t.current.call(t,...e),[])}function F({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=function({defaultProp:e,onChange:t}){let r=a.default.useState(e),[n]=r,i=a.default.useRef(n),o=j(t);return a.default.useEffect(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,s=o?e:n,l=j(r);return[s,a.default.useCallback(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&l(r)}else i(t)},[o,e,i,l])]}let N=()=>()=>{},L=null;function T({open:e,onOpenChange:r,children:n,onDrag:s,onRelease:u,snapPoints:m,shouldScaleBackground:g=!1,setBackgroundColorOnScale:w=!0,closeThreshold:D=.25,scrollLockTimeout:j=100,dismissible:N=!0,handleOnly:T=!1,fadeFromIndex:M=m&&m.length-1,activeSnapPoint:z,setActiveSnapPoint:B,fixed:$,modal:R=!0,onClose:P,nested:I,noBodyStyles:q=!1,direction:H="bottom",defaultOpen:O=!1,disablePreventScroll:U=!0,snapToSequentialPoint:V=!1,preventScrollRestoration:W=!1,repositionInputs:Z=!0,onAnimationEnd:G,container:K,autoFocus:X=!1}){var Y,Q;let[J=!1,ee]=F({defaultProp:O,prop:e,onChange:e=>{null==r||r(e),e||I||eN(),setTimeout(()=>{null==G||G(e)},500),e&&!R&&"undefined"!=typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),e||(document.body.style.pointerEvents="auto")}}),[et,er]=a.default.useState(!1),[en,ei]=a.default.useState(!1),[ea,eo]=a.default.useState(!1),es=a.default.useRef(null),el=a.default.useRef(null),ec=a.default.useRef(null),eu=a.default.useRef(null),ed=a.default.useRef(null),ep=a.default.useRef(!1),eh=a.default.useRef(null),em=a.default.useRef(0),ef=a.default.useRef(!1),eg=a.default.useRef(!O),ev=a.default.useRef(0),ex=a.default.useRef(null),ey=a.default.useRef((null==(Y=ex.current)?void 0:Y.getBoundingClientRect().height)||0),eb=a.default.useRef((null==(Q=ex.current)?void 0:Q.getBoundingClientRect().width)||0),ew=a.default.useRef(0),ek=a.default.useCallback(e=>{m&&e===eA.length-1&&(el.current=new Date)},[]),{activeSnapPoint:e_,activeSnapPointIndex:eC,setActiveSnapPoint:eE,onRelease:eD,snapPointsOffset:eA,onDrag:eS,shouldFade:ej,getPercentageDragged:eF}=function({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:r,drawerRef:n,overlayRef:i,fadeFromIndex:o,onSnapPointChange:s,direction:l="bottom",container:c,snapToSequentialPoint:u}){let[d,p]=F({prop:e,defaultProp:null==r?void 0:r[0],onChange:t}),[h,m]=a.default.useState("undefined"!=typeof window?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);a.default.useEffect(()=>{function e(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let f=a.default.useMemo(()=>d===(null==r?void 0:r[r.length-1])||null,[r,d]),g=a.default.useMemo(()=>{var e;return null!=(e=null==r?void 0:r.findIndex(e=>e===d))?e:null},[r,d]),v=r&&r.length>0&&(o||0===o)&&!Number.isNaN(o)&&r[o]===d||!r,x=a.default.useMemo(()=>{var e;let t=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:"undefined"!=typeof window?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return null!=(e=null==r?void 0:r.map(e=>{let r="string"==typeof e,n=0;if(r&&(n=parseInt(e,10)),C(l)){let i=r?n:h?e*t.height:0;return h?"bottom"===l?t.height-i:-t.height+i:i}let i=r?n:h?e*t.width:0;return h?"right"===l?t.width-i:-t.width+i:i}))?e:[]},[r,h,c]),y=a.default.useMemo(()=>null!==g?null==x?void 0:x[g]:null,[x,g]),b=a.default.useCallback(e=>{var t;let a=null!=(t=null==x?void 0:x.findIndex(t=>t===e))?t:null;s(a),_(n.current,{transition:`transform 0.5s cubic-bezier(${A.join(",")})`,transform:C(l)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),x&&a!==x.length-1&&void 0!==o&&a!==o&&a<o?_(i.current,{transition:`opacity 0.5s cubic-bezier(${A.join(",")})`,opacity:"0"}):_(i.current,{transition:`opacity 0.5s cubic-bezier(${A.join(",")})`,opacity:"1"}),p(null==r?void 0:r[Math.max(a,0)])},[n.current,r,x,o,i,p]);return a.default.useEffect(()=>{if(d||e){var t;let n=null!=(t=null==r?void 0:r.findIndex(t=>t===e||t===d))?t:-1;x&&-1!==n&&"number"==typeof x[n]&&b(x[n])}},[d,e,r,x,b]),{isLastSnapPoint:f,activeSnapPoint:d,shouldFade:v,getPercentageDragged:function(e,t){if(!r||"number"!=typeof g||!x||void 0===o)return null;let n=g===o-1;if(g>=o&&t)return 0;if(n&&!t)return 1;if(!v&&!n)return null;let i=n?g+1:g-1,a=e/Math.abs(n?x[i]-x[i-1]:x[i+1]-x[i]);return n?1-a:a}
880,setActiveSnapPoint:p,activeSnapPointIndex:g,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:n,dismissible:a}){if(void 0===o)return;let s="bottom"===l||"right"===l?(null!=y?y:0)-e:(null!=y?y:0)+e,c=g===o-1,d=0===g,p=e>0;if(c&&_(i.current,{transition:`opacity 0.5s cubic-bezier(${A.join(",")})`}),!u&&n>2&&!p)return void(a?t():b(x[0]));if(!u&&n>2&&p&&x&&r)return void b(x[r.length-1]);let h=null==x?void 0:x.reduce((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-s)<Math.abs(e-s)?t:e),m=C(l)?window.innerHeight:window.innerWidth;if(n>.4&&Math.abs(e)<.4*m){let e=p?1:-1;return e>0&&f&&r?void b(x[r.length-1]):void(d&&e<0&&a&&t(),null===g||b(x[g+e]))}b(h)},onDrag:function({draggedDistance:e}){if(null===y)return;let t="bottom"===l||"right"===l?y-e:y+e;("bottom"===l||"right"===l)&&t<x[x.length-1]||("top"===l||"left"===l)&&t>x[x.length-1]||_(n.current,{transform:C(l)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:x}}({snapPoints:m,activeSnapPointProp:z,setActiveSnapPointProp:B,drawerRef:ex,fadeFromIndex:M,overlayRef:es,onSnapPointChange:ek,direction:H,container:K,snapToSequentialPoint:V});!function(e={}){let{isDisabled:r}=e;d(()=>{if(!r){var e,n,i;let r,a,o,s,l,u,d;return 1==++v&&c()&&(o=0,s=window.pageXOffset,l=window.pageYOffset,u=p((e=document.documentElement,n="paddingRight",i=`${window.innerWidth-document.documentElement.clientWidth}px`,r=e.style[n],e.style[n]=i,()=>{e.style[n]=r})),window.scrollTo(0,0),d=p(x(document,"touchstart",e=>{((a=f(e.target))!==document.documentElement||a!==document.body)&&(o=e.changedTouches[0].pageY)},{passive:!1,capture:!0}),x(document,"touchmove",e=>{if(!a||a===document.documentElement||a===document.body)return void e.preventDefault();let t=e.changedTouches[0].pageY,r=a.scrollTop,n=a.scrollHeight-a.clientHeight;0!==n&&((r<=0&&t>o||r>=n&&t<o)&&e.preventDefault(),o=t)},{passive:!1,capture:!0}),x(document,"touchend",e=>{let t=e.target;b(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame(()=>{t.style.transform=""}))},{passive:!1,capture:!0}),x(document,"focus",e=>{let t=e.target;b(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",h&&(h.height<window.innerHeight?requestAnimationFrame(()=>{y(t)}):h.addEventListener("resize",()=>y(t),{once:!0}))}))},!0),x(window,"scroll",()=>{window.scrollTo(0,0)})),t=()=>{u(),d(),window.scrollTo(s,l)}),()=>{0==--v&&(null==t||t())}}},[r])}({isDisabled:!J||en||!R||ea||!et||!Z||!U});let{restorePositionSetting:eN}=function({isOpen:e,modal:t,nested:r,hasBeenOpened:n,preventScrollRestoration:i,noBodyStyles:o}){let[s,c]=a.default.useState(()=>"undefined"!=typeof window?window.location.href:""),u=a.default.useRef(0),d=a.default.useCallback(()=>{if(l()&&null===L&&e&&!o){L={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-u.current}px`,left:`${-e}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&u.current>=t&&(document.body.style.top=`${-(u.current+e)}px`)}),300)}},[e]),p=a.default.useCallback(()=>{if(l()&&null!==L&&!o){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,L),window.requestAnimationFrame(()=>{i&&s!==window.location.href?c(window.location.href):window.scrollTo(t,e)}),L=null}},[s]);return a.default.useEffect(()=>{function e(){u.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),a.default.useEffect(()=>{if(t)return()=>{"undefined"==typeof document||document.querySelector("[data-vaul-drawer]")||p()}},[t,p]),a.default.useEffect(()=>{!r&&n&&(e?(window.matchMedia("(display-mode: standalone)").matches||d(),t||window.setTimeout(()=>{p()},500)):p())},[e,n,s,t,r,d,p]),{restorePositionSetting:p}}({isOpen:J,modal:R,nested:null!=I&&I,hasBeenOpened:et,preventScrollRestoration:W,noBodyStyles:q});function eL(){return(window.innerWidth-26)/window.innerWidth}function eT(e,t){var r;let n=e,i=null==(r=window.getSelection())?void 0:r.toString(),a=ex.current?E(ex.current,H):null,o=new Date;if("SELECT"===n.tagName||n.hasAttribute("data-vaul-no-drag")||n.closest("[data-vaul-no-drag]"))return!1;
880if("right"===H||"left"===H)return!0;if(el.current&&o.getTime()-el.current.getTime()<500)return!1;if(null!==a&&("bottom"===H?a>0:a<0))return!0;if(i&&i.length>0)return!1;if(ed.current&&o.getTime()-ed.current.getTime()<j&&0===a||t)return ed.current=o,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(0!==n.scrollTop)return ed.current=new Date,!1;if("dialog"===n.getAttribute("role"))break}n=n.parentNode}return!0}function eM(e){en&&ex.current&&(ex.current.classList.remove(S),ep.current=!1,ei(!1),eu.current=new Date),null==P||P(),e||ee(!1),setTimeout(()=>{m&&eE(m[0])},500)}function ez(){if(!ex.current)return;let e=document.querySelector("[data-vaul-drawer-wrapper]"),t=E(ex.current,H);_(ex.current,{transform:"translate3d(0, 0, 0)",transition:`transform 0.5s cubic-bezier(${A.join(",")})`}),_(es.current,{transition:`opacity 0.5s cubic-bezier(${A.join(",")})`,opacity:"1"}),g&&t&&t>0&&J&&_(e,{borderRadius:"8px",overflow:"hidden",...C(H)?{transform:`scale(${eL()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${eL()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:"0.5s",transitionTimingFunction:`cubic-bezier(${A.join(",")})`},!0)}return a.default.useEffect(()=>{window.requestAnimationFrame(()=>{eg.current=!0})},[]),a.default.useEffect(()=>{var e;function t(){if(ex.current&&Z&&(b(document.activeElement)||ef.current)){var e;let t=(null==(e=window.visualViewport)?void 0:e.height)||0,r=window.innerHeight,n=r-t,i=ex.current.getBoundingClientRect().height||0;ew.current||(ew.current=i);let a=ex.current.getBoundingClientRect().top;if(Math.abs(ev.current-n)>60&&(ef.current=!ef.current),m&&m.length>0&&eA&&eC&&(n+=eA[eC]||0),ev.current=n,i>t||ef.current){let e=ex.current.getBoundingClientRect().height,o=e;e>t&&(o=t-(i>.8*r?a:26)),$?ex.current.style.height=`${e-Math.max(n,0)}px`:ex.current.style.height=`${Math.max(o,t-a)}px`}else{let e;e=navigator.userAgent,"undefined"!=typeof window&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))||(ex.current.style.height=`${ew.current}px`)}m&&m.length>0&&!ef.current?ex.current.style.bottom="0px":ex.current.style.bottom=`${Math.max(n,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}},[eC,m,eA]),a.default.useEffect(()=>(J&&(_(document.documentElement,{scrollBehavior:"auto"}),el.current=new Date),()=>{!function(e,t){if(!e||!(e instanceof HTMLElement))return;let r=k.get(e);r&&(e.style[t]=r[t])}(document.documentElement,"scrollBehavior")}),[J]),a.default.useEffect(()=>{R||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[R]),a.default.createElement(i.Root,{defaultOpen:O,onOpenChange:e=>{(N||e)&&(e?er(!0):eM(!0),ee(e))},open:J},a.default.createElement(o.Provider,{value:{activeSnapPoint:e_,snapPoints:m,setActiveSnapPoint:eE,drawerRef:ex,overlayRef:es,onOpenChange:r,onPress:function(e){var t,r;!N&&!m||(!ex.current||ex.current.contains(e.target))&&(ey.current=(null==(t=ex.current)?void 0:t.getBoundingClientRect().height)||0,eb.current=(null==(r=ex.current)?void 0:r.getBoundingClientRect().width)||0,ei(!0),ec.current=new Date,c()&&window.addEventListener("touchend",()=>ep.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),em.current=C(H)?e.pageY:e.pageX)},onRelease:function(e){var t,r;if(!en||!ex.current)return;ex.current.classList.remove(S),ep.current=!1,ei(!1),eu.current=new Date;let n=E(ex.current,H);
880if(!e||!eT(e.target,!1)||!n||Number.isNaN(n)||null===ec.current)return;let i=eu.current.getTime()-ec.current.getTime(),a=em.current-(C(H)?e.pageY:e.pageX),o=Math.abs(a)/i;if(o>.05&&(eo(!0),setTimeout(()=>{eo(!1)},200)),m){eD({draggedDistance:a*("bottom"===H||"right"===H?1:-1),closeDrawer:eM,velocity:o,dismissible:N}),null==u||u(e,!0);return}if("bottom"===H||"right"===H?a>0:a<0){ez(),null==u||u(e,!0);return}if(o>.4){eM(),null==u||u(e,!1);return}let s=Math.min(null!=(t=ex.current.getBoundingClientRect().height)?t:0,window.innerHeight),l=Math.min(null!=(r=ex.current.getBoundingClientRect().width)?r:0,window.innerWidth);if(Math.abs(n)>=("left"===H||"right"===H?l:s)*D){eM(),null==u||u(e,!1);return}null==u||u(e,!0),ez()},onDrag:function(e){if(ex.current&&en){let t="bottom"===H||"right"===H?1:-1,r=(em.current-(C(H)?e.pageY:e.pageX))*t,n=r>0,i=m&&!N&&!n;if(i&&0===eC)return;let a=Math.abs(r),o=document.querySelector("[data-vaul-drawer-wrapper]"),l=a/("bottom"===H||"top"===H?ey.current:eb.current),c=eF(a,n);if(null!==c&&(l=c),i&&l>=1||!ep.current&&!eT(e.target,n))return;if(ex.current.classList.add(S),ep.current=!0,_(ex.current,{transition:"none"}),_(es.current,{transition:"none"}),m&&eS({draggedDistance:r}),n&&!m){let e=Math.min(-(8*(Math.log(r+1)-2)*1),0)*t;_(ex.current,{transform:C(H)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`});return}let u=1-l;if((ej||M&&eC===M-1)&&(null==s||s(e,l),_(es.current,{opacity:`${u}`,transition:"none"},!0)),o&&es.current&&g){let e=Math.min(eL()+l*(1-eL()),1),t=8-8*l,r=Math.max(0,14-14*l);_(o,{borderRadius:`${t}px`,transform:C(H)?`scale(${e}) translate3d(0, ${r}px, 0)`:`scale(${e}) translate3d(${r}px, 0, 0)`,transition:"none"},!0)}if(!m){let e=a*t;_(ex.current,{transform:C(H)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:N,shouldAnimate:eg,handleOnly:T,isOpen:J,isDragging:en,shouldFade:ej,closeDrawer:eM,onNestedDrag:function(e,t){if(t<0)return;let r=(window.innerWidth-16)/window.innerWidth,n=r+t*(1-r),i=-16+16*t;_(ex.current,{transform:C(H)?`scale(${n}) translate3d(0, ${i}px, 0)`:`scale(${n}) translate3d(${i}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){let t=e?(window.innerWidth-16)/window.innerWidth:1,r=e?-16:0;eh.current&&window.clearTimeout(eh.current),_(ex.current,{transition:`transform 0.5s cubic-bezier(${A.join(",")})`,transform:C(H)?`scale(${t}) translate3d(0, ${r}px, 0)`:`scale(${t}) translate3d(${r}px, 0, 0)`}),!e&&ex.current&&(eh.current=setTimeout(()=>{let e=E(ex.current,H);_(ex.current,{transition:"none",transform:C(H)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))},onNestedRelease:function(e,t){let r=C(H)?window.innerHeight:window.innerWidth,n=t?(r-16)/r:1,i=t?-16:0;t&&_(ex.current,{transition:`transform 0.5s cubic-bezier(${A.join(",")})`,transform:C(H)?`scale(${n}) translate3d(0, ${i}px, 0)`:`scale(${n}) translate3d(${i}px, 0, 0)`})},keyboardIsOpen:ef,modal:R,snapPointsOffset:eA,activeSnapPointIndex:eC,direction:H,shouldScaleBackground:g,setBackgroundColorOnScale:w,noBodyStyles:q,container:K,autoFocus:X}},n))}let M=a.default.forwardRef(function({...e},t){let{overlayRef:r,snapPoints:n,onRelease:o,shouldFade:l,isOpen:c,modal:u,shouldAnimate:d}=s(),p=w(t,r),h=n&&n.length>0;if(!u)return null;let m=a.default.useCallback(e=>o(e),[o]);return a.default.createElement(i.Overlay,{onMouseUp:m,ref:p,"data-vaul-overlay":"","data-vaul-snap-points":c&&h?"true":"false","data-vaul-snap-points-overlay":c&&l?"true":"false","data-vaul-animate":(null==d?void 0:d.current)?"true":"false",...e})});M.displayName="Drawer.Overlay";let z=a.default.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:r,...n},o){let{drawerRef:l,onPress:c,onRelease:u,onDrag:d,keyboardIsOpen:p,snapPointsOffset:h,activeSnapPointIndex:m,modal:f,isOpen:g,direction:v,snapPoints:x,container:y,handleOnly:b,shouldAnimate:k,autoFocus:_}=s(),[E,S]=a.default.useState(!1),j=w(o,l),F=a.default.useRef(null),L=a.default.useRef(null),T=a.default.useRef(!1),M=x&&x.length>0;function z(e){F.current=null,T.current=!1,u(e)}
880return!function(){let{direction:e,isOpen:t,shouldScaleBackground:r,setBackgroundColorOnScale:n,noBodyStyles:i}=s(),o=a.default.useRef(null),l=(0,a.useMemo)(()=>document.body.style.backgroundColor,[]);function c(){return(window.innerWidth-26)/window.innerWidth}a.default.useEffect(()=>{if(t&&r){o.current&&clearTimeout(o.current);let t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;!function(...e){}(n&&!i?D(document.body,{background:"black"}):N,D(t,{transformOrigin:C(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:"0.5s",transitionTimingFunction:`cubic-bezier(${A.join(",")})`}));let r=D(t,{borderRadius:"8px",overflow:"hidden",...C(e)?{transform:`scale(${c()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${c()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{r(),o.current=window.setTimeout(()=>{l?document.body.style.background=l:document.body.style.removeProperty("background")},500)}}},[t,r,l])}(),a.default.useEffect(()=>{M&&window.requestAnimationFrame(()=>{S(!0)})},[]),a.default.createElement(i.Content,{"data-vaul-drawer-direction":v,"data-vaul-drawer":"","data-vaul-delayed-snap-points":E?"true":"false","data-vaul-snap-points":g&&M?"true":"false","data-vaul-custom-container":y?"true":"false","data-vaul-animate":(null==k?void 0:k.current)?"true":"false",...n,ref:j,style:h&&h.length>0?{"--snap-point-height":`${h[null!=m?m:0]}px`,...t}:t,onPointerDown:e=>{b||(null==n.onPointerDown||n.onPointerDown.call(n,e),F.current={x:e.pageX,y:e.pageY},c(e))},onOpenAutoFocus:e=>{null==r||r(e),_||e.preventDefault()},onPointerDownOutside:t=>{(null==e||e(t),!f||t.defaultPrevented)?t.preventDefault():p.current&&(p.current=!1)},onFocusOutside:e=>{if(!f)return void e.preventDefault()},onPointerMove:e=>{if(L.current=e,b||(null==n.onPointerMove||n.onPointerMove.call(n,e),!F.current))return;let t=e.pageY-F.current.y,r=e.pageX-F.current.x,i="touch"===e.pointerType?10:2;((e,t,r=0)=>{if(T.current)return!0;let n=Math.abs(e.y),i=Math.abs(e.x),a=i>n,o=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*o<0)&&i>=0&&i<=r)return a}else if(!(e.y*o<0)&&n>=0&&n<=r)return!a;return T.current=!0,!0})({x:r,y:t},v,i)?d(e):(Math.abs(r)>i||Math.abs(t)>i)&&(F.current=null)},onPointerUp:e=>{null==n.onPointerUp||n.onPointerUp.call(n,e),F.current=null,T.current=!1,u(e)},onPointerOut:e=>{null==n.onPointerOut||n.onPointerOut.call(n,e),z(L.current)},onContextMenu:e=>{null==n.onContextMenu||n.onContextMenu.call(n,e),L.current&&z(L.current)}})});z.displayName="Drawer.Content";let B=a.default.forwardRef(function({preventCycle:e=!1,children:t,...r},n){let{closeDrawer:i,isDragging:o,snapPoints:l,activeSnapPoint:c,setActiveSnapPoint:u,dismissible:d,handleOnly:p,isOpen:h,onPress:m,onDrag:f}=s(),g=a.default.useRef(null),v=a.default.useRef(!1);function x(){g.current&&window.clearTimeout(g.current),v.current=!1}return a.default.createElement("div",{onClick:function(){v.current?x():window.setTimeout(()=>{!function(){if(o||e||v.current)return x();if(x(),!l||0===l.length){d||i();return}if(c===l[l.length-1]&&d)return i();let t=l.findIndex(e=>e===c);-1===t||u(l[t+1])}()},120)},onPointerCancel:x,onPointerDown:e=>{p&&m(e),g.current=window.setTimeout(()=>{v.current=!0},250)},onPointerMove:e=>{p&&f(e)},ref:n,"data-vaul-drawer-visible":h?"true":"false","data-vaul-handle":"","aria-hidden":"true",...r},a.default.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});B.displayName="Drawer.Handle";let $={Root:T,NestedRoot:function({onDrag:e,onOpenChange:t,open:r,...n}){let{onNestedDrag:i,onNestedOpenChange:o,onNestedRelease:l}=s();if(!i)throw Error("Drawer.NestedRoot must be placed in another drawer");return a.default.createElement(T,{nested:!0,open:r,onClose:()=>{o(!1)},onDrag:(t,r)=>{i(t,r),null==e||e(t,r)},onOpenChange:e=>{e&&o(e),null==t||t(e)},onRelease:l,...n})},Content:z,Overlay:M,Trigger:i.Trigger,Portal:function(e){let t=s(),{container:r=t.container,...n}=e;return a.default.createElement(i.Portal,{container:r,...n})},Handle:B,Close:i.Close,Title:i.Title,Description:i.Description};var R=e.i(526683);function P(e){let t,i,a=(0,n.c)(4);return a[0]!==e?({...t}=e,a[0]=e,a[1]=t):t=a[1],a[2]!==t?(i=(0,r.jsx)($.Root,{"data-slot":"drawer",...t}),a[2]=t,a[3]=i):i=a[3],i}function I(e){let t,i,a=(0,n.c)(4);return a[0]!==e?({...t}=e,a[0]=e,a[1]=t):t=a[1],a[2]!==t?(i=(0,r.jsx)($.Portal,{"data-slot":"drawer-portal",...t}),a[2]=t,a[3]=i):i=a[3],i}function q(e){let t,i,a=(0,n.c)(4);return a[0]!==e?({...t}=e,a[0]=e,a[1]=t):t=a[1],a[2]!==t?(i=(0,r.jsx)($.Close,{"data-slot":"drawer-close",...t}),a[2]=t,a[3]=i):i=a[3],i}function H(e){let t,i,a,o,s=(0,n.c)(8);return s[0]!==e?({className:t,...i}=e,s[0]=e,s[1]=t,s[2]=i):(t=s[1],i=s[2]),s[3]!==t?(a=(0,R.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),s[3]=t,s[4]=a):a=s[4],s[5]!==i||s[6]!==a?(o=(0,r.jsx)($.Overlay,{"data-slot":"drawer-overlay",className:a,...i}),s[5]=i,s[6]=a,s[7]=o):o=s[7],o}function O(e){let t,i,a,o,s,l,c,u=(0,n.c)(12);return u[0]!==e?({className:i,children:t,...a}=e,u[0]=e,u[1]=t,u[2]=i,u[3]=a):(t=u[1],i=u[2],a=u[3]),u[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)(H,{}),u[4]=o):o=u[4],u[5]!==i?(s=(0,R.cn)("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",i),u[5]=i,u[6]=s):s=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(l=(0,r.jsx)("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),u[7]=l):l=u[7],u[8]!==t||u[9]!==a||u[10]!==s?(c=(0,r.jsxs)(I,{"data-slot":"drawer-portal",children:[o,(0,r.jsxs)($.Content,{"data-slot":"drawer-content",className:s,...a,children:[l,t]})]}),u[8]=t,u[9]=a,u[10]=s,u[11]=c):c=u[11],c}function U(e){let t,i,a,o,s=(0,n.c)(8);return s[0]!==e?({className:t,...i}=e,s[0]=e,s[1]=t,s[2]=i):(t=s[1],i=s[2]),s[3]!==t?(a=(0,R.cn)("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",t),s[3]=t,s[4]=a):a=s[4],s[5]!==i||s[6]!==a?(o=(0,r.jsx)("div",{"data-slot":"drawer-header",className:a,...i}),s[5]=i,s[6]=a,s[7]=o):o=s[7],o}function V(e){let t,i,a,o,s=(0,n.c)(8);return s[0]!==e?({className:t,...i}=e,s[0]=e,s[1]=t,s[2]=i):(t=s[1],i=s[2]),s[3]!==t?(a=(0,R.cn)("mt-auto flex flex-col gap-2 p-4",t),s[3]=t,s[4]=a):a=s[4],s[5]!==i||s[6]!==a?(o=(0,r.jsx)("div",{"data-slot":"drawer-footer",className:a,...i}),s[5]=i,s[6]=a,s[7]=o):o=s[7],o}function W(e){let t,i,a,o,s=(0,n.c)(8);return s[0]!==e?({className:t,...i}=e,s[0]=e,s[1]=t,s[2]=i):(t=s[1],i=s[2]),s[3]!==t?(a=(0,R.cn)("text-foreground font-semibold",t),s[3]=t,s[4]=a):a=s[4],s[5]!==i||s[6]!==a?(o=(0,r.jsx)($.Title,{"data-slot":"drawer-title",className:a,...i}),s[5]=i,s[6]=a,s[7]=o):o=s[7],o}function Z(e){let t,i,a,o,s=(0,n.c)(8);return s[0]!==e?({className:t,...i}=e,s[0]=e,s[1]=t,s[2]=i):(t=s[1],i=s[2]),s[3]!==t?(a=(0,R.cn)("text-muted-foreground text-sm",t),s[3]=t,s[4]=a):a=s[4],s[5]!==i||s[6]!==a?(o=(0,r.jsx)($.Description,{"data-slot":"drawer-description",className:a,...i}),s[5]=i,s[6]=a,s[7]=o):o=s[7],o}function G(e){let t,r,i=(0,n.c)(3),[o,s]=(0,a.useState)(!1);return i[0]!==e?(t=()=>{let t=window.matchMedia(e);s(t.matches);let r=e=>{s(e.matches)};return t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},r=[e],i[0]=e,i[1]=t,i[2]=r):(t=i[1],r=i[2]),(0,a.useEffect)(t,r),o}e.s(["Drawer",()=>P,"DrawerClose",()=>q,"DrawerContent",()=>O,"DrawerDescription",()=>Z,"DrawerFooter",()=>V,"DrawerHeader",()=>U,"DrawerTitle",()=>
880W],422812),e.s(["useMediaQuery",()=>G],581682)},642616,34058,e=>{"use strict";var t=e.i(466471),r=e.i(884702),n=e.i(394673),i=e.i(864071),a=e.i(462297),o=e.i(148551),s=e.i(39973),l=e.i(247835),c=e.i(400969),u=e.i(199978),d=e.i(791768),p=e.i(890210),h=e.i(511398),m=e.i(534417),f=e.i(960568),g=e.i(526683),v=e.i(331597),x=e.i(536355),y=e.i(122913),b=e.i(422812),w=e.i(581682),k=e.i(623099),_=e.i(779342),C=e.i(851239),E=e.i(118621),D=e.i(273792),A=e.i(722370),S=e.i(838608);function j(e){let n,i,o,s,p,m,f,g=(0,x.c)(32),{callbackUrl:v,className:y}=e,b=void 0===v?"/":v,w=(0,l.useTranslations)("common.sign"),j=(0,u.useRouter)(),T=(0,k.useLocale)(),[M,z]=(0,r.useState)(""),[B,$]=(0,r.useState)(""),[R,P]=(0,r.useState)(!1),I="true"===d.env.NEXT_PUBLIC_GOOGLE_AUTH_ENABLED,q="true"===d.env.NEXT_PUBLIC_GITHUB_AUTH_ENABLED,H=!A.isProduction||"false"!==d.env.NEXT_PUBLIC_EMAIL_AUTH_ENABLED||!I&&!q;b&&T!==C.defaultLocale&&b.startsWith("/")&&!b.startsWith(`/${T}`)&&(b=`/${T}${b}`);let O=T!==C.defaultLocale?`/${T}`:"";g[0]!==T?(n=e=>e?.startsWith("/")?T===C.defaultLocale?e:e===`/${T}`?"/":e.startsWith(`/${T}/`)?e.slice(T.length+1)||"/":e:"/",g[0]=T,g[1]=n):n=g[1];let U=n;g[2]!==O||g[3]!==b||g[4]!==M||g[5]!==R||g[6]!==B||g[7]!==j||g[8]!==P||g[9]!==U?(i=async()=>{if(!R){if(!M||!B)return void _.toast.error("email and password are required");P(!0);try{await c.signIn.email({email:M,password:B,callbackURL:b},{onRequest:L,onResponse:N,onSuccess:F,onError:e=>{let t=e?.error?.status;if(403===t){let e=U(b),t=`/verify-email?sent=1&email=${encodeURIComponent(M)}&callbackUrl=${encodeURIComponent(e)}`;c.authClient.sendVerificationEmail({email:M,callbackURL:`${O}${t}`}),j.push(t);return}_.toast.error(e?.error?.message||"sign in failed"),P(!1)}})}catch(e){_.toast.error(e?.message||"sign in failed"),P(!1)}}},g[2]=O,g[3]=b,g[4]=M,g[5]=R,g[6]=B,g[7]=j,g[8]=P,g[9]=U,g[10]=i):i=g[10];let V=i,W=`w-full md:max-w-md ${y}`;g[11]!==M||g[12]!==V||g[13]!==R||g[14]!==B||g[15]!==z||g[16]!==$||g[17]!==w?(o=H&&(0,t.jsxs)("form",{className:"grid gap-4",onSubmit:e=>{e.preventDefault(),V()},children:[(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)(D.Label,{htmlFor:"email",children:w("email_title")}),(0,t.jsx)(E.Input,{id:"email",type:"email",placeholder:w("email_placeholder"),required:!0,onChange:e=>{z(e.target.value)},value:M})]}),(0,t.jsx)("div",{className:"grid gap-2",children:(0,t.jsx)(E.Input,{id:"password",type:"password",placeholder:w("password_placeholder"),autoComplete:"password",value:B,onChange:e=>$(e.target.value),required:!0})}),(0,t.jsx)(h.Button,{type:"submit",className:"w-full",disabled:R,children:R?(0,t.jsx)(a.Loader2,{size:16,className:"animate-spin"}):(0,t.jsxs)("p",{children:[" ",w("sign_in_title")," "]})})]}),g[11]=M,g[12]=V,g[13]=R,g[14]=B,g[15]=z,g[16]=$,g[17]=w,g[18]=o):o=g[18];let Z=b||"/";return g[19]!==R||g[20]!==P||g[21]!==Z?(s=(0,t.jsx)(S.SocialProviders,{callbackUrl:Z,loading:R,setLoading:P}),g[19]=R,g[20]=P,g[21]=Z,g[22]=s):s=g[22],g[23]!==o||g[24]!==s?(p=(0,t.jsxs)("div",{className:"grid gap-4",children:[o,s]}),g[23]=o,g[24]=s,g[25]=p):p=g[25],g[26]!==w?(m=H&&(0,t.jsx)("div",{className:"flex w-full justify-center border-t py-4",children:(0,t.jsxs)("p",{className:"text-center text-xs text-neutral-500",children:[w("no_account"),(0,t.jsx)(u.Link,{href:"/sign-up",className:"underline",children:(0,t.jsx)("span",{className:"cursor-pointer dark:text-white/70",children:w("sign_up_title")})})]})}),g[26]=w,g[27]=m):m=g[27],g[28]!==W||g[29]!==p||g[30]!==m?(f=(0,t.jsxs)("div",{className:W,children:[p,m]}),g[28]=W,g[29]=p,g[30]=m,g[31]=f):f=g[31],f}function F(e){}function N(e){}function L(e){}function T(e){let r,n,i,a,o,s,c,u,d,p,m=(0,x.c)(45),{callbackUrl:g}=e,v=void 0===g?"/":g,k=(0,l.useTranslations)("common.sign"),{isShowSignModal:_,setIsShowSignModal:C}=(0,f.useAppContext)();if((0,w.useMediaQuery)("(min-width: 768px)")){let e,r,n,i,a,o,s,l;return m[0]!==k?(e=k("sign_in_title"),m[0]=k,m[1]=e):e=m[1],m[2]!==e?(r=(0,t.jsx)(y.DialogTitle,{children:e}),m[2]=e,m[3]=r):r=m[3],m[4]!==k?(n=k("sign_in_description"),m[4]=k,m[5]=n):n=m[5],m[6]!==n?(i=(0,t.jsx)(y.DialogDescription,{children:n}),m[6]=n,m[7]=i):i=m[7],m[8]!==r||m[9]!==i?(a=(0,t.jsxs)(y.DialogHeader,{children:[r,i]}),m[8]=r,m[9]=i,m[10]=a):a=m[10],m[11]!==v?(o=(0,t.jsx)(j,{callbackUrl:v}),m[11]=v,m[12]=o):o=m[12],m[13]!==a||m[14]!==o?(s=(0,t.jsxs)(y.DialogContent,{className:"sm:max-w-[425px]",children:[a,o]}),m[13]=a,m[14]=o,m[15]=s):s=m[15],m[16]!==_||m[17]!==C||m[18]!==s?(l=(0,t.jsx)(y.Dialog,{open:_,onOpenChange:C,children:s}),m[16]=_,m[17]=C,m[18]=s,m[19]=l):l=m[19],l}return m[20]!==k?(r=k("sign_in_title"),m[20]=k,m[21]=r):r=m[21],m[22]!==r?(n=(0,t.jsx)(b.DrawerTitle,{children:r}),m[22]=r,m[23]=n):n=m[23],m[24]!==k?(i=k("sign_in_description"),m[24]=k,m[25]=i):i=m[25],m[26]!==i?(a=(0,t.jsx)(b.DrawerDescription,{children:i}),m[26]=i,m[27]=a):a=m[27],m[28]!==n||m[29]!==a?(o=(0,t.jsxs)(b.DrawerHeader,{className:"text-left",children:[n,a]}),m[28]=n,m[29]=a,m[30]=o):o=m[30],m[31]!==v?(s=(0,t.jsx)(j,{callbackUrl:v,className:"mt-8 px-4"}),m[31]=v,m[32]=s):s=m[32],m[33]!==k?(c=k("cancel_title"),m[33]=k,m[34]=c):c=m[34],m[35]!==c?(u=(0,t.jsx)(b.DrawerFooter,{className:"pt-4",children:(0,t.jsx)(b.DrawerClose,{asChild:!0,children:(0,t.jsx)(h.Button,{variant:"outline",children:c})})}),m[35]=c,m[36]=u):u=m[36],m[37]!==o||m[38]!==s||m[39]!==u?(d=(0,t.jsxs)(b.DrawerContent,{children:[o,s,u]}),m[37]=o,m[38]=s,m[39]=u,m[40]=d):d=m[40],m[41]!==_||m[42]!==C||m[43]!==d?(p=(0,t.jsx)(b.Drawer,{open:_,onOpenChange:C,children:d}),m[41]=_,m[42]=C,m[43]=d,m[44]=p):p=m[44],p}function M(e){let t=e?.user??e?.data?.user??null;return t&&"object"==typeof t?t:null}function z({isScrolled:e,signButtonSize:x="sm",userNav:y,showName:b}){let w=(0,l.useTranslations)("common.sign"),k=(0,u.useRouter)(),[_,C]=(0,r.useState)(!1);(0,r.useEffect)(()=>{C(!0)},[]);let{setIsShowSignModal:E,isCheckSign:D,setIsCheckSign:A,user:S,setUser:j,fetchUserInfo:F,showOneTap:N}=(0,f.useAppContext)(),{data:L,isPending:z}=(0,c.useSession)(),B=M(L),$=S??B,R=(0,r.useRef)(!1),P=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{A(z)},[z]),(0,r.useEffect)(()=>{!d.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"true"!==d.env.NEXT_PUBLIC_GOOGLE_ONE_TAP_ENABLED||L||z||P.current||(P.current=!0,N())},[L,z,N]),(0,r.useEffect)(()=>{let e=S?.id,t=B?.id;B&&t!==e?(j(B),F()):!B&&e&&j(null)},[B?.id,B?.email,S?.id]),(0,r.useEffect)(()=>{R.current||z||B||S||(R.current=!0,(async()=>{try{let e=await c.authClient.getSession(),t=M(e?.data??e);t?.id&&(j(t),F())}catch{}})())},[z,B,S?.id]),(0,t.jsx)(t.Fragment,{children:D||!_?(0,t.jsx)("div",{children:(0,t.jsx)(a.Loader2,{className:"size-4 animate-spin"})}):$?(0,t.jsxs)(m.DropdownMenu,{children:[(0,t.jsx)(m.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(h.Button,{variant:"ghost",className:(0,g.cn)("relative p-0",b?"flex h-auto w-full items-center justify-start gap-2.5 rounded-lg px-2 py-1.5":"h-10 w-10 rounded-full"),children:[(0,t.jsxs)(p.Avatar,{className:"h-8 w-8 shrink-0",children:[(0,t.jsx)(p.AvatarImage,{src:$.image||"",alt:$.name||""}),(0,t.jsx)(p.AvatarFallback,{children:$.name.charAt(0)})]}),b&&(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:$.name})]})}),(0,t.jsxs)(m.DropdownMenuContent,{children:[y?.show_name&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(u.Link,{className:"w-full cursor-pointer",href:"/user-center/profile",children:[(0,t.jsx)(s.User,{}),$.name]})}),(0,t.jsx)(m.DropdownMenuSeparator,{})]}),y?.show_credits&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(u.Link,{className:"w-full cursor-pointer",href:"/user-center/credits",children:[(0,t.jsx)(n.Coins,{}),w("credits_title",{credits:$.credits?.remainingCredits||0})]})}),(0,t.jsx)(m.DropdownMenuSeparator,{})]}),y?.items?.map((e,r)=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(u.Link,{className:"w-full cursor-pointer",href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,t.jsx)(v.SmartIcon,{name:e.icon,className:"h-4 w-4"}),e.title]})}),(0,t.jsx)(m.DropdownMenuSeparator,{})]},r)),$.isAdmin&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(u.Link,{className:"w-full cursor-pointer",href:"/admin",children:[(0,t.jsx)(i.LayoutDashboard,{}),w("admin_title")]})}),(0,t.jsx)(m.DropdownMenuSeparator,{})]}),y?.show_sign_out&&(0,t.jsxs)(m.DropdownMenuItem,{className:"w-full cursor-pointer",onClick:()=>(0,c.signOut)({fetchOptions:{onSuccess:()=>{k.push("/")}}}),children:[(0,t.jsx)(o.LogOut,{}),(0,t.jsx)("span",{children:w("sign_out_title")})]})]})]}):(0,t.jsxs)("div",{className:"flex w-full flex-col space-y-3 sm:flex-row sm:gap-3 sm:space-y-0 md:w-fit",children:[(0,t.jsx)(h.Button,{asChild:!0,size:x,className:(0,g.cn)("border-foreground
880/10 ml-4 cursor-pointer ring-0",e&&"lg:hidden"),onClick:()=>E(!0),children:(0,t.jsx)("span",{children:w("sign_in_title")})}),(0,t.jsx)(T,{})]})})}e.s(["SignModal",()=>T],34058),e.s(["SignUser",()=>z],642616)},599198,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=e.i(55871),a=e.i(283422),o=e.i(526683);function s(e){let s,c,u,d,p,h,m,f,g,v,x,y,b,w,k,_=(0,r.c)(36),{src:C,title:E,className:D}=e,A=(0,n.useRef)(null),[S,j]=(0,n.useState)(!1),[F,N]=(0,n.useState)(0),[L,T]=(0,n.useState)(0);(0,n.useState)(1),(0,n.useState)(!1),_[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{let e=A.current;if(!e)return;let t=()=>N(e.currentTime),r=()=>T(e.duration),n=()=>j(!1);return e.addEventListener("timeupdate",t),e.addEventListener("loadedmetadata",r),e.addEventListener("ended",n),()=>{e.removeEventListener("timeupdate",t),e.removeEventListener("loadedmetadata",r),e.removeEventListener("ended",n)}},c=[],_[0]=s,_[1]=c):(s=_[0],c=_[1]),(0,n.useEffect)(s,c),_[2]!==S?(u=()=>{let e=A.current;e&&(S?e.pause():e.play(),j(!S))},_[2]=S,_[3]=u):u=_[3];let M=u;_[4]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{let t=A.current;if(!t)return;let r=parseFloat(e.target.value);t.currentTime=r,N(r)},_[4]=d):d=_[4];let z=d,B=l;_[5]!==D?(p=(0,o.cn)("bg-card text-card-foreground flex items-center gap-3 rounded-lg border p-3 shadow-sm",D),_[5]=D,_[6]=p):p=_[6],_[7]!==C?(h=(0,t.jsx)("audio",{ref:A,src:C,preload:"metadata"}),_[7]=C,_[8]=h):h=_[8];let $=S?"Pause":"Play";_[9]!==S?(m=S?(0,t.jsx)(i.Pause,{className:"h-5 w-5"}):(0,t.jsx)(a.Play,{className:"ml-0.5 h-5 w-5"}),_[9]=S,_[10]=m):m=_[10],_[11]!==$||_[12]!==m||_[13]!==M?(f=(0,t.jsx)("button",{onClick:M,className:"bg-primary text-primary-foreground hover:bg-primary/90 flex h-10 w-10 items-center justify-center rounded-full transition-colors","aria-label":$,children:m}),_[11]=$,_[12]=m,_[13]=M,_[14]=f):f=_[14],_[15]!==E?(g=E&&(0,t.jsx)("div",{className:"truncate text-sm font-medium",children:E}),_[15]=E,_[16]=g):g=_[16];let R=B(F);_[17]!==R?(v=(0,t.jsx)("span",{className:"text-muted-foreground w-10 text-right text-xs",children:R}),_[17]=R,_[18]=v):v=_[18];let P=L||0;_[19]!==F||_[20]!==P?(x=(0,t.jsx)("input",{type:"range",min:0,max:P,value:F,onChange:z,className:"bg-secondary [&::-webkit-slider-thumb]:bg-primary [&::-moz-range-thumb]:bg-primary h-1 flex-1 cursor-pointer appearance-none rounded-lg [&::-moz-range-thumb]:h-3 [&::-moz-range-thumb]:w-3 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-0 [&::-webkit-slider-thumb]:h-3 [&::-webkit-slider-thumb]:w-3 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full"}),_[19]=F,_[20]=P,_[21]=x):x=_[21];let I=B(L);return _[22]!==I?(y=(0,t.jsx)("span",{className:"text-muted-foreground w-10 text-xs",children:I}),_[22]=I,_[23]=y):y=_[23],_[24]!==v||_[25]!==x||_[26]!==y?(b=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[v,x,y]}),_[24]=v,_[25]=x,_[26]=y,_[27]=b):b=_[27],_[28]!==g||_[29]!==b?(w=(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[g,b]}),_[28]=g,_[29]=b,_[30]=w):w=_[30],_[31]!==w||_[32]!==p||_[33]!==h||_[34]!==f?(k=(0,t.jsxs)("div",{className:p,children:[h,f,w]}),_[31]=w,_[32]=p,_[33]=h,_[34]=f,_[35]=k):k=_[35],k}function l(e){if(isNaN(e))return"0:00";let t=Math.floor(e/60),r=Math.floor(e%60);return`${t}:${r.toString().padStart(2,"0")}`}e.s(["AudioPlayer",()=>s])},194939,616758,586978,137566,924780,e=>{"use strict";var t=e.i(450392);e.s(["SkipBack",()=>t.default],194939);var r=e.i(427671);e.s(["SkipForward",()=>r.default],616758);var n=e.i(410575);e.s(["Volume2",()=>n.default],586978);var i=e.i(436180);e.s(["VolumeX",()=>i.default],137566);var a=e.i(466471),o=e.i(884702),s=e.i(527069),l=e.i(291967),c=e.i(188625),u=e.i(352162),d=e.i(575301),p=e.i(950074),h=e.i(898175),m=e.i(607825),f=e.i(6140),g=e.i(408896),v=["PageUp","PageDown"],x=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},b="Slider",[w,k,_]=(0,g.createCollection)(b),[C,E]=(0,u.createContextScope)(b,[_]),[D,A]=C(b),S=o.forwardRef((e,t)=>
880{let{name:r,min:n=0,max:i=100,step:c=1,orientation:u="horizontal",disabled:p=!1,minStepsBetweenThumbs:h=0,defaultValue:m=[n],value:f,onValueChange:g=()=>{},onValueCommit:y=()=>{},inverted:b=!1,form:k,..._}=e,C=o.useRef(new Set),E=o.useRef(0),A="horizontal"===u,[S=[],j]=(0,d.useControllableState)({prop:f,defaultProp:m,onChange:e=>{let t=[...C.current];t[E.current]?.focus(),g(e)}}),F=o.useRef(S);function T(e,t,{commit:r}={commit:!1}){let a,o=(String(c).split(".")[1]||"").length,l=Math.round((Math.round((e-n)/c)*c+n)*(a=Math.pow(10,o)))/a,u=(0,s.clamp)(l,[n,i]);j((e=[])=>{let n=function(e=[],t,r){let n=[...e];return n[r]=t,n.sort((e,t)=>e-t)}(e,u,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,r)=>e[r+1]-t))>=t;return!0}(n,h*c))return e;{E.current=n.indexOf(u);let t=String(n)!==String(e);return t&&r&&y(n),t?n:e}})}return(0,a.jsx)(D,{scope:e.__scopeSlider,name:r,disabled:p,min:n,max:i,valueIndexToChangeRef:E,thumbs:C.current,values:S,orientation:u,form:k,children:(0,a.jsx)(w.Provider,{scope:e.__scopeSlider,children:(0,a.jsx)(w.Slot,{scope:e.__scopeSlider,children:(0,a.jsx)(A?N:L,{"aria-disabled":p,"data-disabled":p?"":void 0,..._,ref:t,onPointerDown:(0,l.composeEventHandlers)(_.onPointerDown,()=>{p||(F.current=S)}),min:n,max:i,inverted:b,onSlideStart:p?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t)),n=Math.min(...r);return r.indexOf(n)}(S,e);T(e,t)},onSlideMove:p?void 0:function(e){T(e,E.current)},onSlideEnd:p?void 0:function(){let e=F.current[E.current];S[E.current]!==e&&y(S)},onHomeKeyDown:()=>!p&&T(n,0,{commit:!0}),onEndKeyDown:()=>!p&&T(i,S.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!p){let r=v.includes(e.key)||e.shiftKey&&x.includes(e.key),n=E.current;T(S[n]+c*(r?10:1)*t,n,{commit:!0})}}})})})})});S.displayName=b;var[j,F]=C(b,{startEdge:"left",endEdge:"right",size:"width",direction:1}),N=o.forwardRef((e,t)=>{let{min:r,max:n,dir:i,inverted:s,onSlideStart:l,onSlideMove:u,onSlideEnd:d,onStepKeyDown:h,...m}=e,[f,g]=o.useState(null),v=(0,c.useComposedRefs)(t,e=>g(e)),x=o.useRef(void 0),b=(0,p.useDirection)(i),w="ltr"===b,k=w&&!s||!w&&s;function _(e){let t=x.current||f.getBoundingClientRect(),i=O([0,t.width],k?[r,n]:[n,r]);return x.current=t,i(e-t.left)}return(0,a.jsx)(j,{scope:e.__scopeSlider,startEdge:k?"left":"right",endEdge:k?"right":"left",direction:k?1:-1,size:"width",children:(0,a.jsx)(T,{dir:b,"data-orientation":"horizontal",...m,ref:v,style:{...m.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=_(e.clientX);l?.(t)},onSlideMove:e=>{let t=_(e.clientX);u?.(t)},onSlideEnd:()=>{x.current=void 0,d?.()},onStepKeyDown:e=>{let t=y[k?"from-left":"from-right"].includes(e.key);h?.({event:e,direction:t?-1:1})}})})}),L=o.forwardRef((e,t)=>{let{min:r,max:n,inverted:i,onSlideStart:s,onSlideMove:l,onSlideEnd:u,onStepKeyDown:d,...p}=e,h=o.useRef(null),m=(0,c.useComposedRefs)(t,h),f=o.useRef(void 0),g=!i;function v(e){let t=f.current||h.current.getBoundingClientRect(),i=O([0,t.height],g?[n,r]:[r,n]);return f.current=t,i(e-t.top)}return(0,a.jsx)(j,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1,children:(0,a.jsx)(T,{"data-orientation":"vertical",...p,ref:m,style:{...p.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=v(e.clientY);s?.(t)},onSlideMove:e=>{let t=v(e.clientY);l?.(t)},onSlideEnd:()=>{f.current=void 0,u?.()},onStepKeyDown:e=>{let t=y[g?"from-bottom":"from-top"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})}),T=o.forwardRef((e,t)=>{let{__scopeSlider:r,onSlideStart:n,onSlideMove:i,onSlideEnd:o,onHomeKeyDown:s,onEndKeyDown:c,onStepKeyDown:u,...d}=e,p=A(b,r);return(0,a.jsx)(f.Primitive.span,{...d,ref:t,onKeyDown:(0,l.composeEventHandlers)(e.onKeyDown,e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(c(e),e.preventDefault()):v.concat(x).includes(e.key)&&(u(e),e.preventDefault())}),onPointerDown:(0,l.composeEventHandlers)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),p.thumbs.has(t)?t.focus():n(e)}),onPointerMove:(0,l.composeEventHandlers)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:(0,l.composeEventHandlers)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),o(e))})})}),M="SliderTrack",z=o.forwardRef((e,t)=>
880{let{__scopeSlider:r,...n}=e,i=A(M,r);return(0,a.jsx)(f.Primitive.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...n,ref:t})});z.displayName=M;var B="SliderRange",$=o.forwardRef((e,t)=>{let{__scopeSlider:r,...n}=e,i=A(B,r),s=F(B,r),l=o.useRef(null),u=(0,c.useComposedRefs)(t,l),d=i.values.length,p=i.values.map(e=>H(e,i.min,i.max)),h=d>1?Math.min(...p):0,m=100-Math.max(...p);return(0,a.jsx)(f.Primitive.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...n,ref:u,style:{...e.style,[s.startEdge]:h+"%",[s.endEdge]:m+"%"}})});$.displayName=B;var R="SliderThumb",P=o.forwardRef((e,t)=>{let r=k(e.__scopeSlider),[n,i]=o.useState(null),s=(0,c.useComposedRefs)(t,e=>i(e)),l=o.useMemo(()=>n?r().findIndex(e=>e.ref.current===n):-1,[r,n]);return(0,a.jsx)(I,{...e,ref:s,index:l})}),I=o.forwardRef((e,t)=>{var r,n,i,s,u;let d,p,{__scopeSlider:h,index:g,name:v,...x}=e,y=A(R,h),b=F(R,h),[k,_]=o.useState(null),C=(0,c.useComposedRefs)(t,e=>_(e)),E=!k||y.form||!!k.closest("form"),D=(0,m.useSize)(k),S=y.values[g],j=void 0===S?0:H(S,y.min,y.max),N=(r=g,(n=y.values.length)>2?`Value ${r+1} of ${n}`:2===n?["Minimum","Maximum"][r]:void 0),L=D?.[b.size],T=L?(i=L,s=j,u=b.direction,p=O([0,50],[0,d=i/2]),(d-p(s)*u)*u):0;return o.useEffect(()=>{if(k)return y.thumbs.add(k),()=>{y.thumbs.delete(k)}},[k,y.thumbs]),(0,a.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[b.startEdge]:`calc(${j}% + ${T}px)`},children:[(0,a.jsx)(w.ItemSlot,{scope:e.__scopeSlider,children:(0,a.jsx)(f.Primitive.span,{role:"slider","aria-label":e["aria-label"]||N,"aria-valuemin":y.min,"aria-valuenow":S,"aria-valuemax":y.max,"aria-orientation":y.orientation,"data-orientation":y.orientation,"data-disabled":y.disabled?"":void 0,tabIndex:y.disabled?void 0:0,...x,ref:C,style:void 0===S?{display:"none"}:e.style,onFocus:(0,l.composeEventHandlers)(e.onFocus,()=>{y.valueIndexToChangeRef.current=g})})}),E&&(0,a.jsx)(q,{name:v??(y.name?y.name+(y.values.length>1?"[]":""):void 0),form:y.form,value:S},g)]})});P.displayName=R;var q=o.forwardRef(({__scopeSlider:e,value:t,...r},n)=>{let i=o.useRef(null),s=(0,c.useComposedRefs)(i,n),l=(0,h.usePrevious)(t);return o.useEffect(()=>{let e=i.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(l!==t&&r){let n=new Event("input",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[l,t]),(0,a.jsx)(f.Primitive.input,{style:{display:"none"},...r,ref:s,defaultValue:t})});function H(e,t,r){return(0,s.clamp)(100/(r-t)*(e-t),[0,100])}function O(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}q.displayName="RadioBubbleInput";var U=e.i(526683);let V=o.forwardRef(({className:e,...t},r)=>(0,a.jsxs)(S,{ref:r,className:(0,U.cn)("relative flex w-full touch-none select-none items-center",e),...t,children:[(0,a.jsx)(z,{className:"bg-primary/20 relative h-1.5 w-full grow overflow-hidden rounded-full",children:(0,a.jsx)($,{className:"bg-primary absolute h-full"})}),(0,a.jsx)(P,{className:"border-primary/50 bg-background ring-ring block h-4 w-4 rounded-full border shadow transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50"})]}));V.displayName=S.displayName,e.s(["Slider",()=>V],924780)},132750,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=e.i(103979),a=e.i(151580),a=a,o=e.i(55871),s=e.i(283422),l=e.i(194939),c=e.i(616758),u=e.i(586978),d=e.i(137566),p=e.i(653668),h=e.i(511398),m=e.i(924780),f=e.i(528144);function g(){let e,g,x,y,b,w,k,_,C,E,D,A,S,j,F,N,L,T,M,z,B,$,R,P,I,q,H,O,U,V,W,Z,G,K,X,Y,Q,J,ee,et,er,en,ei,ea,eo,es,el,ec,eu,ed,ep,eh,em,ef,eg,ev,ex,ey,eb=(0,r.c)(145),{currentTrack:ew,isPlaying:ek,currentTime:e_,duration:eC,volume:eE,isPlayerVisible:eD,togglePlay:eA,nextTrack:eS,prevTrack:ej,seek:eF,setVolume:eN,closePlayer:eL,toggleFullscreen:eT}=(0,f.useMusicPlayer)(),[eM,ez]=(0,n.useState)(.7),eB=v;eb[0]!==eM||eb[1]!==eN||eb[2]!==eE?(e=()=>{eE>0?(ez(eE),eN(0)):eN(eM||.7)},eb[0]=eM,eb[1]=eN,eb[2]=eE,eb[3]=e):e=eb[3];let e$=e;eb[4]!==eN?(g=e=>{eN(e[0])},eb[4]=eN,eb[5]=g):g=eb[5];let eR=g;if(!eD||!ew)return null;eb[6]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsx)("div",{className:"h-[72px] sm:h-[72px]"}),eb[6]=x):x=eb[6],eb[7]!==ew.imageUrl||eb[8]!==ew.title?(y=(0,t.jsx)(i.default,{src:ew.imageUrl,alt:ew.title,fill:!0,className:"object-cover",sizes:"40px"}),eb[7]=ew.imageUrl,eb[8]=ew.title,eb[9]=y):y=eb[9],eb[10]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(a.default,{className:"h-4 w-4 text-white"}),eb[10]=b):b=eb[10],eb[11]!==eT?(w=(0,t.jsx)("button",{onClick:eT,className:"absolute inset-0 flex items-center justify-center bg-black/40 opacity-0 transition-opacity active:opacity-100",children:b}),eb[11]=eT,eb[12]=w):w=eb[12],eb[13]!==y||eb[14]!==w?(k=(0,t.jsxs)("div",{className:"group relative h-10 w-10 shrink-0 overflow-hidden rounded-lg",children:[y,w]}),eb[13]=y,eb[14]=w,eb[15]=k):k=eb[15],eb[16]!==ew.title?(_=(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)("h4",{className:"truncate text-sm font-medium",children:ew.title})}),eb[16]=ew.title,eb[17]=_):_=eb[17],eb[18]===Symbol.for("react.memo_cache_sentinel")?(C=(0,t.jsx)(l.SkipBack,{className:"h-4 w-4"}),eb[18]=C):C=eb[18],eb[19]!==ej?(E=(0,t.jsx)(h.Button,{size:"icon",variant:"ghost",onClick:ej,className:"h-8 w-8",children:C}),eb[19]=ej,eb[20]=E):E=eb[20],eb[21]!==ek?(D=ek?(0,t.jsx)(o.Pause,{className:"h-4 w-4"}):(0,t.jsx)(s.Play,{className:"ml-0.5 h-4 w-4"}),eb[21]=ek,eb[22]=D):D=eb[22],eb[23]!==D||eb[24]!==eA?(A=(0,t.jsx)(h.Button,{size:"icon",onClick:eA,className:"bg-primary text-primary-foreground hover:bg-primary/90 h-9 w-9 rounded-full",children:D}),eb[23]=D,eb[24]=eA,eb[25]=A):A=eb[25],eb[26]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsx)(c.SkipForward,{className:"h-4 w-4"}),eb[26]=S):S=eb[26],eb[27]!==eS?(j=(0,t.jsx)(h.Button,{size:"icon",variant:"ghost",onClick:eS,className:"h-8 w-8",children:S}),eb[27]=eS,eb[28]=j):j=eb[28],eb[29]!==A||eb[30]!==j||eb[31]!==E?(F=(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[E,A,j]}
880),eb[29]=A,eb[30]=j,eb[31]=E,eb[32]=F):F=eb[32],eb[33]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)(p.X,{className:"h-4 w-4"}),eb[33]=N):N=eb[33],eb[34]!==eL?(L=(0,t.jsx)(h.Button,{size:"icon",variant:"ghost",onClick:eL,className:"h-8 w-8 shrink-0",children:N}),eb[34]=eL,eb[35]=L):L=eb[35],eb[36]!==F||eb[37]!==L||eb[38]!==k||eb[39]!==_?(T=(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[k,_,F,L]}),eb[36]=F,eb[37]=L,eb[38]=k,eb[39]=_,eb[40]=T):T=eb[40];let eP=eB(e_);eb[41]!==eP?(M=(0,t.jsx)("span",{className:"text-muted-foreground w-10 text-right text-xs",children:eP}),eb[41]=eP,eb[42]=M):M=eb[42],eb[43]!==e_?(z=[e_],eb[43]=e_,eb[44]=z):z=eb[44];let eI=eC||100;eb[45]!==eF?(B=e=>eF(e[0]),eb[45]=eF,eb[46]=B):B=eb[46],eb[47]!==z||eb[48]!==eI||eb[49]!==B?($=(0,t.jsx)(m.Slider,{value:z,max:eI,step:.1,onValueChange:B,className:"flex-1"}),eb[47]=z,eb[48]=eI,eb[49]=B,eb[50]=$):$=eb[50];let eq=eB(eC);if(eb[51]!==eq?(R=(0,t.jsx)("span",{className:"text-muted-foreground w-10 text-xs",children:eq}),eb[51]=eq,eb[52]=R):R=eb[52],eb[53]!==eE?(P=0===eE?(0,t.jsx)(d.VolumeX,{className:"h-3.5 w-3.5"}):(0,t.jsx)(u.Volume2,{className:"h-3.5 w-3.5"}),eb[53]=eE,eb[54]=P):P=eb[54],eb[55]!==e$||eb[56]!==P?(I=(0,t.jsx)(h.Button,{size:"icon",variant:"ghost",onClick:e$,className:"h-7 w-7",children:P}),eb[55]=e$,eb[56]=P,eb[57]=I):I=eb[57],eb[58]!==M||eb[59]!==$||eb[60]!==R||eb[61]!==I?(q=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[M,$,R,I]}),eb[58]=M,eb[59]=$,eb[60]=R,eb[61]=I,eb[62]=q):q=eb[62],eb[63]!==T||eb[64]!==q?(H=(0,t.jsxs)("div",{className:"flex flex-col gap-2 p-3 sm:hidden",children:[T,q]}),eb[63]=T,eb[64]=q,eb[65]=H):H=eb[65],eb[66]!==ew.imageUrl||eb[67]!==ew.title?(O=(0,t.jsx)(i.default,{src:ew.imageUrl,alt:ew.title,fill:!0,className:"object-cover",sizes:"48px"}),eb[66]=ew.imageUrl,eb[67]=ew.title,eb[68]=O):O=eb[68],eb[69]===Symbol.for("react.memo_cache_sentinel")?(U=(0,t.jsx)(a.default,{className:"h-5 w-5 text-white"}),eb[69]=U):U=eb[69],eb[70]!==eT?(V=(0,t.jsx)("button",{onClick:eT,className:"absolute inset-0 flex items-center justify-center bg-black/40 opacity-0 transition-opacity group-hover:opacity-100",children:U}),eb[70]=eT,eb[71]=V):V=eb[71],eb[72]!==O||eb[73]!==V?(W=(0,t.jsxs)("div",{className:"group relative h-12 w-12 shrink-0 overflow-hidden rounded-lg",children:[O,V]}),eb[72]=O,eb[73]=V,eb[74]=W):W=eb[74],eb[75]!==ew.title?(Z=(0,t.jsx)("h4",{className:"truncate text-sm font-medium",children:ew.title}),eb[75]=ew.title,eb[76]=Z):Z=eb[76],eb[77]!==ew.tags){let e;eb[79]!==ew.tags.length?(e=(e,r)=>(0,t.jsxs)("span",{className:"text-muted-foreground text-xs",children:[e,r<Math.min(ew.tags.length,3)-1&&", "]},r),eb[79]=ew.tags.length,eb[80]=e):e=eb[80],G=ew.tags.slice(0,3).map(e),eb[77]=ew.tags,eb[78]=G}else G=eb[78];eb[81]!==G?(K=(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:G}),eb[81]=G,eb[82]=K):K=eb[82],eb[83]!==Z||eb[84]!==K?(X=(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[Z,K]}),eb[83]=Z,eb[84]=K,eb[85]=X):X=eb[85],eb[86]!==W||eb[87]!==X?(Y=(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[W,X]}),eb[86]=W,eb[87]=X,eb[88]=Y):Y=eb[88],eb[89]===Symbol.for("react.memo_cache_sentinel")?(Q=(0,t.jsx)(l.SkipBack,{className:"h-4 w-4"}),eb[89]=Q):Q=eb[89],eb[90]!==ej?(J=(0,t.jsx)(h.Button,{size:"icon",variant:"ghost",onClick:ej,className:"h-8 w-8",children:Q}),eb[90]=ej,eb[91]=J):J=eb[91],eb[92]!==ek?(ee=ek?(0,t.jsx)(o.Pause,{className:"h-5 w-5"}):(0,t.jsx)(s.Play,{className:"ml-0.5 h-5 w-5"}),eb[92]=ek,eb[93]=ee):ee=eb[93],eb[94]!==ee||eb[95]!==eA?(et=(0,t.jsx)(h.Button,{size:"icon",onClick:eA,className:"bg-primary text-primary-foreground hover:bg-primary/90 h-10 w-10 rounded-full",children:ee}),eb[94]=ee,eb[95]=eA,eb[96]=et):et=eb[96],eb[97]===Symbol.for("react.memo_cache_sentinel")?(er=(0,t.jsx)(c.SkipForward,{className:"h-4 w-4"}),eb[97]=er):er=eb[97],eb[98]!==eS?(en=(0,t.jsx)(h.Button,{size:"icon",variant:"ghost",onClick:eS,className:"h-8 w-8",children:er}),eb[98]=eS,eb[99]=en):en=eb[99],eb[100]!==J||eb[101]!==et||eb[102]!==en?(ei=(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[J,et,en]}),eb[100]=J,eb[101]=et,eb[102]=en,eb[103]=ei):ei=eb[103];let eH=eB(e_);eb[104]!==eH?(ea=(0,t.jsx)("span",{className:"text-muted-foreground w-12 text-right text-xs",children:eH}),eb[104]=eH,eb[105]=ea):ea=eb[105],eb[106]!==e_?(eo=[e_],eb[106]=e_,eb[107]=eo):eo=eb[107];let eO=eC||100;eb[108]!==eF?(es=e=>eF(e[0]),eb[108]=eF,eb[109]=es):es=eb[109],eb[110]!==eo||eb[111]!==eO||eb[112]!==es?(el=(0,t.jsx)(m.Slider,{value:eo,max:eO,step:.1,onValueChange:es,className:"flex-1"}),eb[110]=eo,eb[111]=eO,eb[112]=es,eb[113]=el):el=eb[113];let eU=eB(eC);return eb[114]!==eU?(ec=(0,t.jsx)("span",{className:"text-muted-foreground w-12 text-xs",children:eU}),eb[114]=eU,eb[115]=ec):ec=eb[115],eb[116]!==eE?(eu=0===eE?(0,t.jsx)(d.VolumeX,{className:"h-4 w-4"}):(0,t.jsx)(u.Volume2,{className:"h-4 w-4"}),eb[116]=eE,eb[117]=eu):eu=eb[117],eb[118]!==e$||eb[119]!==eu?(ed=(0,t.jsx)(h.Button,{size:"icon",variant:"ghost",onClick:e$,className:"h-8 w-8 shrink-0",children:eu}),eb[118]=e$,eb[119]=eu,eb[120]=ed):ed=eb[120],eb[121]!==eE?(ep=[eE],eb[121]=eE,eb[122]=ep):ep=eb[122],eb[123]!==eR||eb[124]!==ep?(eh=(0,t.jsx)(m.Slider,{value:ep,max:1,step:.
88001,onValueChange:eR,className:"w-20"}),eb[123]=eR,eb[124]=ep,eb[125]=eh):eh=eb[125],eb[126]!==ed||eb[127]!==eh?(em=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[ed,eh]}),eb[126]=ed,eb[127]=eh,eb[128]=em):em=eb[128],eb[129]===Symbol.for("react.memo_cache_sentinel")?(ef=(0,t.jsx)(p.X,{className:"h-4 w-4"}),eb[129]=ef):ef=eb[129],eb[130]!==eL?(eg=(0,t.jsx)(h.Button,{size:"icon",variant:"ghost",onClick:eL,className:"h-8 w-8 shrink-0",children:ef}),eb[130]=eL,eb[131]=eg):eg=eb[131],eb[132]!==ea||eb[133]!==el||eb[134]!==ec||eb[135]!==em||eb[136]!==eg?(ev=(0,t.jsxs)("div",{className:"flex flex-1 items-center gap-3",children:[ea,el,ec,em,eg]}),eb[132]=ea,eb[133]=el,eb[134]=ec,eb[135]=em,eb[136]=eg,eb[137]=ev):ev=eb[137],eb[138]!==Y||eb[139]!==ei||eb[140]!==ev?(ex=(0,t.jsxs)("div",{className:"hidden items-center gap-4 px-4 py-3 sm:flex",children:[Y,ei,ev]}),eb[138]=Y,eb[139]=ei,eb[140]=ev,eb[141]=ex):ex=eb[141],eb[142]!==H||eb[143]!==ex?(ey=(0,t.jsxs)(t.Fragment,{children:[x,(0,t.jsxs)("div",{className:"border-border bg-background/95 supports-[backdrop-filter]:bg-background/80 fixed right-0 bottom-0 left-0 z-50 border-t backdrop-blur",children:[H,ex]})]}),eb[142]=H,eb[143]=ex,eb[144]=ey):ey=eb[144],ey}function v(e){if(isNaN(e))return"00:00";let t=Math.floor(e/60),r=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`}e.s(["GlobalMusicPlayer",()=>g],132750)},888466,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=e.i(103979),a=e.i(768410),a=a,o=e.i(55871),s=e.i(283422),l=e.i(194939),c=e.i(616758),u=e.i(586978),d=e.i(137566),p=e.i(653668),h=e.i(615978),m=e.i(511398),f=e.i(924780),g=e.i(528144);function v(){let e,h,v,b,w,k,_,C,E,D,A,S,j,F,N,L,T,M,z,B,$,R,P,I,q,H,O,U,V,W,Z,G,K,X,Y,Q,J,ee,et,er,en,ei,ea,eo,es,el,ec,eu,ed,ep,eh,em,ef,eg,ev,ex,ey,eb,ew,ek,e_,eC,eE,eD,eA,eS=(0,r.c)(166),{currentTrack:ej,isPlaying:eF,currentTime:eN,duration:eL,volume:eT,isFullscreen:eM,togglePlay:ez,nextTrack:eB,prevTrack:e$,seek:eR,setVolume:eP,toggleFullscreen:eI}=(0,g.useMusicPlayer)(),[eq,eH]=(0,n.useState)(.7),eO=y;eS[0]!==eq||eS[1]!==eP||eS[2]!==eT?(e=()=>{eT>0?(eH(eT),eP(0)):eP(eq||.7)},eS[0]=eq,eS[1]=eP,eS[2]=eT,eS[3]=e):e=eS[3];let eU=e;eS[4]!==eP?(h=e=>{eP(e[0])},eS[4]=eP,eS[5]=h):h=eS[5];let eV=h;if(!eM||!ej)return null;eS[6]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(a.default,{className:"h-4 w-4 sm:h-5 sm:w-5"}),eS[6]=v):v=eS[6],eS[7]!==eI?(b=(0,t.jsx)(m.Button,{size:"icon",variant:"ghost",onClick:eI,className:"h-8 w-8 sm:h-10 sm:w-10",children:v}),eS[7]=eI,eS[8]=b):b=eS[8],eS[9]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsx)(p.X,{className:"h-4 w-4 sm:h-5 sm:w-5"}),eS[9]=w):w=eS[9],eS[10]!==eI?(k=(0,t.jsx)(m.Button,{size:"icon",variant:"ghost",onClick:eI,className:"h-8 w-8 sm:h-10 sm:w-10",children:w}),eS[10]=eI,eS[11]=k):k=eS[11],eS[12]!==b||eS[13]!==k?(_=(0,t.jsxs)("div",{className:"absolute top-2 right-2 z-10 flex gap-1 sm:top-4 sm:right-4 sm:gap-2",children:[b,k]}),eS[12]=b,eS[13]=k,eS[14]=_):_=eS[14];let eW=`url('${ej.imageUrl}')`;eS[15]!==eW?(C=(0,t.jsx)("div",{className:"absolute inset-0 bg-cover bg-center opacity-10 blur-3xl",style:{backgroundImage:eW}}),eS[15]=eW,eS[16]=C):C=eS[16],eS[17]!==ej.imageUrl||eS[18]!==ej.title?(E=(0,t.jsx)("div",{className:"relative h-48 w-48 shrink-0 overflow-hidden rounded-2xl shadow-2xl sm:h-64 sm:w-64 md:h-72 md:w-72",children:(0,t.jsx)(i.default,{src:ej.imageUrl,alt:ej.title,fill:!0,className:"object-cover",sizes:"(max-width: 640px) 192px, (max-width: 768px) 256px, 288px",priority:!0})}),eS[17]=ej.imageUrl,eS[18]=ej.title,eS[19]=E):E=eS[19],eS[20]!==ej.title?(D=(0,t.jsx)("h2",{className:"mb-2 text-lg font-bold sm:text-2xl md:text-3xl",children:ej.title}),eS[20]=ej.title,eS[21]=D):D=eS[21],eS[22]!==ej.tags?(A=ej.tags.map(x),eS[22]=ej.tags,eS[23]=A):A=eS[23],eS[24]!==A?(S=(0,t.jsx)("div",{className:"flex flex-wrap justify-center gap-1.5 sm:gap-2",children:A}),eS[24]=A,eS[25]=S):S=eS[25],eS[26]!==D||eS[27]!==S?(j=(0,t.jsxs)("div",{className:"max-w-2xl shrink-0 px-4 text-center",children:[D,S]}),eS[26]=D,eS[27]=S,eS[28]=j):j=eS[28],eS[29]!==ej.lyrics?(F=(0,t.jsx)("div",{className:"w-full max-w-2xl px-4 text-center",children:ej.lyrics?(0,t.jsx)("div",{className:"bg-muted/30 rounded-lg p-4 sm:p-6",children:(0,t.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed whitespace-pre-line sm:text-base",children:ej.lyrics})}):(0,t.jsx)("p",{className:"text-muted-foreground hidden sm:block",children:"No lyrics available for this track, just enjoy the music."})}),eS[29]=ej.lyrics,eS[30]=F):F=eS[30],eS[31]!==j||eS[32]!==F||eS[33]!==E?(N=(0,t.jsxs)("div",{className:"relative flex flex-1 flex-col items-center gap-4 overflow-y-auto p-4 pt-16 pb-4 sm:gap-6 sm:p-8 sm:pt-16 sm:pb-6",children:[E,j,F]}),eS[31]=j,eS[32]=F,eS[33]=E,eS[34]=N):N=eS[34],eS[35]!==ej.imageUrl||eS[36]!==ej.title?(L=(0,t.jsx)("div",{className:"relative h-10 w-10 shrink-0 overflow-hidden rounded-lg",children:(0,t.jsx)(i.default,{src:ej.imageUrl,alt:ej.title,fill:!0,className:"object-cover",sizes:"40px"})}),eS[35]=ej.imageUrl,eS[36]=ej.title,eS[37]=L):L=eS[37],eS[38]!==e
880j.title?(T=(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)("h4",{className:"truncate text-sm font-medium",children:ej.title})}),eS[38]=ej.title,eS[39]=T):T=eS[39],eS[40]===Symbol.for("react.memo_cache_sentinel")?(M=(0,t.jsx)(l.SkipBack,{className:"h-4 w-4"}),eS[40]=M):M=eS[40],eS[41]!==e$?(z=(0,t.jsx)(m.Button,{size:"icon",variant:"ghost",onClick:e$,className:"h-8 w-8",children:M}),eS[41]=e$,eS[42]=z):z=eS[42],eS[43]!==eF?(B=eF?(0,t.jsx)(o.Pause,{className:"h-4 w-4"}):(0,t.jsx)(s.Play,{className:"ml-0.5 h-4 w-4"}),eS[43]=eF,eS[44]=B):B=eS[44],eS[45]!==B||eS[46]!==ez?($=(0,t.jsx)(m.Button,{size:"icon",onClick:ez,className:"bg-primary text-primary-foreground hover:bg-primary/90 h-9 w-9 rounded-full",children:B}),eS[45]=B,eS[46]=ez,eS[47]=$):$=eS[47],eS[48]===Symbol.for("react.memo_cache_sentinel")?(R=(0,t.jsx)(c.SkipForward,{className:"h-4 w-4"}),eS[48]=R):R=eS[48],eS[49]!==eB?(P=(0,t.jsx)(m.Button,{size:"icon",variant:"ghost",onClick:eB,className:"h-8 w-8",children:R}),eS[49]=eB,eS[50]=P):P=eS[50],eS[51]!==z||eS[52]!==$||eS[53]!==P?(I=(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[z,$,P]}),eS[51]=z,eS[52]=$,eS[53]=P,eS[54]=I):I=eS[54],eS[55]===Symbol.for("react.memo_cache_sentinel")?(q=(0,t.jsx)(a.default,{className:"h-4 w-4"}),eS[55]=q):q=eS[55],eS[56]!==eI?(H=(0,t.jsx)(m.Button,{size:"icon",variant:"ghost",onClick:eI,className:"h-8 w-8 shrink-0",children:q}),eS[56]=eI,eS[57]=H):H=eS[57],eS[58]!==L||eS[59]!==T||eS[60]!==I||eS[61]!==H?(O=(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[L,T,I,H]}),eS[58]=L,eS[59]=T,eS[60]=I,eS[61]=H,eS[62]=O):O=eS[62];let eZ=eO(eN);eS[63]!==eZ?(U=(0,t.jsx)("span",{className:"text-muted-foreground w-10 text-right text-xs",children:eZ}),eS[63]=eZ,eS[64]=U):U=eS[64],eS[65]!==eN?(V=[eN],eS[65]=eN,eS[66]=V):V=eS[66];let eG=eL||100;eS[67]!==eR?(W=e=>eR(e[0]),eS[67]=eR,eS[68]=W):W=eS[68],eS[69]!==V||eS[70]!==eG||eS[71]!==W?(Z=(0,t.jsx)(f.Slider,{value:V,max:eG,step:.1,onValueChange:W,className:"flex-1"}),eS[69]=V,eS[70]=eG,eS[71]=W,eS[72]=Z):Z=eS[72];let eK=eO(eL);if(eS[73]!==eK?(G=(0,t.jsx)("span",{className:"text-muted-foreground w-10 text-xs",children:eK}),eS[73]=eK,eS[74]=G):G=eS[74],eS[75]!==eT?(K=0===eT?(0,t.jsx)(d.VolumeX,{className:"h-3.5 w-3.5"}):(0,t.jsx)(u.Volume2,{className:"h-3.5 w-3.5"}),eS[75]=eT,eS[76]=K):K=eS[76],eS[77]!==eU||eS[78]!==K?(X=(0,t.jsx)(m.Button,{size:"icon",variant:"ghost",onClick:eU,className:"h-7 w-7",children:K}),eS[77]=eU,eS[78]=K,eS[79]=X):X=eS[79],eS[80]!==U||eS[81]!==Z||eS[82]!==G||eS[83]!==X?(Y=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[U,Z,G,X]}),eS[80]=U,eS[81]=Z,eS[82]=G,eS[83]=X,eS[84]=Y):Y=eS[84],eS[85]!==O||eS[86]!==Y?(Q=(0,t.jsxs)("div",{className:"flex flex-col gap-2 p-3 sm:hidden",children:[O,Y]}),eS[85]=O,eS[86]=Y,eS[87]=Q):Q=eS[87],eS[88]!==ej.imageUrl||eS[89]!==ej.title?(J=(0,t.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden rounded-lg",children:(0,t.jsx)(i.default,{src:ej.imageUrl,alt:ej.title,fill:!0,className:"object-cover",sizes:"48px"})}),eS[88]=ej.imageUrl,eS[89]=ej.title,eS[90]=J):J=eS[90],eS[91]!==ej.title?(ee=(0,t.jsx)("h4",{className:"truncate text-sm font-medium",children:ej.title}),eS[91]=ej.title,eS[92]=ee):ee=eS[92],eS[93]!==ej.tags){let e;eS[95]!==ej.tags.length?(e=(e,r)=>(0,t.jsxs)("span",{className:"text-muted-foreground text-xs",children:[e,r<Math.min(ej.tags.length,3)-1&&", "]},r),eS[95]=ej.tags.length,eS[96]=e):e=eS[96],et=ej.tags.slice(0,3).map(e),eS[93]=ej.tags,eS[94]=et}else et=eS[94];eS[97]!==et?(er=(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:et}),eS[97]=et,eS[98]=er):er=eS[98],eS[99]!==ee||eS[100]!==er?(en=(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[ee,er]}),eS[99]=ee,eS[100]=er,eS[101]=en):en=eS[101],eS[102]!==J||eS[103]!==en?(ei=(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[J,en]}),eS[102]=J,eS[103]=en,eS[104]=ei):ei=eS[104],eS[105]===Symbol.for("react.memo_cache_sentinel")?(ea=(0,t.jsx)(l.SkipBack,{className:"h-4 w-4"}),eS[105]=ea):ea=eS[105],eS[106]!==e$?(eo=(0,t.jsx)(m.Button,{size:"icon",variant:"ghost",onClick:e$,className:"h-8 w-8",children:ea}),eS[106]=e$,eS[107]=eo):eo=eS[107],eS[108]!==eF?(es=eF?(0,t.jsx)(o.Pause,{className:"h-5 w-5"}):(0,t.jsx)(s.Play,{className:"ml-0.5 h-5 w-5"}),eS[108]=eF,eS[109]=es):es=eS[109],eS[110]!==es||eS[111]!==ez?(el=(0,t.jsx)(m.Button,{size:"icon",onClick:ez,className:"bg-primary text-primary-foreground hover:bg-primary/90 h-10 w-10 rounded-full",children:es}),eS[110]=es,eS[111]=ez,eS[112]=el):el=eS[112],eS[113]===Symbol.for("react.memo_cache_sentinel")?(ec=(0,t.jsx)(c.SkipForward,{className:"h-4 w-4"}),eS[113]=ec):ec=eS[113],eS[114]!==eB?(eu=(0,t.jsx)(m.Button,{size:"icon",variant:"ghost",onClick:eB,className:"h-8 w-8",children:ec}),eS[114]=eB,eS[115]=eu):eu=eS[115],eS[116]!==eo||eS[117]!==el||eS[118]!==eu?(ed=(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[eo,el,eu]}),eS[116]=eo,eS[117]=el,eS[118]=eu,eS[119]=ed):ed=eS[119];let eX=eO(eN);eS[120]!==eX?(ep=(0,t.jsx)("span",{className:"text-muted-foreground w-12 text-right text-xs",children:eX}
880),eS[120]=eX,eS[121]=ep):ep=eS[121],eS[122]!==eN?(eh=[eN],eS[122]=eN,eS[123]=eh):eh=eS[123];let eY=eL||100;eS[124]!==eR?(em=e=>eR(e[0]),eS[124]=eR,eS[125]=em):em=eS[125],eS[126]!==eh||eS[127]!==eY||eS[128]!==em?(ef=(0,t.jsx)(f.Slider,{value:eh,max:eY,step:.1,onValueChange:em,className:"flex-1"}),eS[126]=eh,eS[127]=eY,eS[128]=em,eS[129]=ef):ef=eS[129];let eQ=eO(eL);return eS[130]!==eQ?(eg=(0,t.jsx)("span",{className:"text-muted-foreground w-12 text-xs",children:eQ}),eS[130]=eQ,eS[131]=eg):eg=eS[131],eS[132]!==eT?(ev=0===eT?(0,t.jsx)(d.VolumeX,{className:"h-4 w-4"}):(0,t.jsx)(u.Volume2,{className:"h-4 w-4"}),eS[132]=eT,eS[133]=ev):ev=eS[133],eS[134]!==eU||eS[135]!==ev?(ex=(0,t.jsx)(m.Button,{size:"icon",variant:"ghost",onClick:eU,className:"h-8 w-8 shrink-0",children:ev}),eS[134]=eU,eS[135]=ev,eS[136]=ex):ex=eS[136],eS[137]!==eT?(ey=[eT],eS[137]=eT,eS[138]=ey):ey=eS[138],eS[139]!==eV||eS[140]!==ey?(eb=(0,t.jsx)(f.Slider,{value:ey,max:1,step:.01,onValueChange:eV,className:"w-20"}),eS[139]=eV,eS[140]=ey,eS[141]=eb):eb=eS[141],eS[142]!==ex||eS[143]!==eb?(ew=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[ex,eb]}),eS[142]=ex,eS[143]=eb,eS[144]=ew):ew=eS[144],eS[145]===Symbol.for("react.memo_cache_sentinel")?(ek=(0,t.jsx)(a.default,{className:"h-4 w-4"}),eS[145]=ek):ek=eS[145],eS[146]!==eI?(e_=(0,t.jsx)(m.Button,{size:"icon",variant:"ghost",onClick:eI,className:"h-8 w-8 shrink-0",children:ek}),eS[146]=eI,eS[147]=e_):e_=eS[147],eS[148]!==ep||eS[149]!==ef||eS[150]!==eg||eS[151]!==ew||eS[152]!==e_?(eC=(0,t.jsxs)("div",{className:"flex flex-1 items-center gap-3",children:[ep,ef,eg,ew,e_]}),eS[148]=ep,eS[149]=ef,eS[150]=eg,eS[151]=ew,eS[152]=e_,eS[153]=eC):eC=eS[153],eS[154]!==ei||eS[155]!==ed||eS[156]!==eC?(eE=(0,t.jsxs)("div",{className:"hidden items-center gap-4 px-4 py-3 sm:flex",children:[ei,ed,eC]}),eS[154]=ei,eS[155]=ed,eS[156]=eC,eS[157]=eE):eE=eS[157],eS[158]!==Q||eS[159]!==eE?(eD=(0,t.jsxs)("div",{className:"border-border bg-background/95 supports-[backdrop-filter]:bg-background/80 relative shrink-0 border-t backdrop-blur",children:[Q,eE]}),eS[158]=Q,eS[159]=eE,eS[160]=eD):eD=eS[160],eS[161]!==N||eS[162]!==_||eS[163]!==eD||eS[164]!==C?(eA=(0,t.jsxs)("div",{className:"bg-background fixed inset-0 z-[100] flex flex-col",children:[_,C,N,eD]}),eS[161]=N,eS[162]=_,eS[163]=eD,eS[164]=C,eS[165]=eA):eA=eS[165],eA}function x(e,r){return(0,t.jsx)(h.Badge,{variant:"secondary",className:"text-xs sm:text-sm",children:e},r)}function y(e){if(isNaN(e))return"00:00";let t=Math.floor(e/60),r=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`}e.s(["FullscreenPlayer",()=>v],888466)},455463,e=>{"use strict";var t=e.i(466471),r=e.i(884702),n=e.i(103979),i=e.i(319609),a=e.i(791768),o=e.i(511398),s=e.i(331597);class l extends r.Component{state={hasError:!1};static getDerivedStateFromError(e){return"NEXT_NOT_FOUND"===e.digest?{hasError:!1}:{hasError:!0}}componentDidCatch(e,t){}render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,t.jsxs)("div",{className:"flex h-screen flex-col items-center justify-center gap-4",children:[(0,t.jsx)(n.default,{src:a.env.NEXT_PUBLIC_APP_LOGO,alt:a.env.NEXT_PUBLIC_APP_NAME,width:80,height:80}),(0,t.jsx)("h1",{className:"text-2xl font-normal",children:"Something went wrong"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"Please try refreshing the page or contact support if the problem persists."}),(0,t.jsx)(o.Button,{asChild:!0,children:(0,t.jsxs)(i.default,{href:"/",className:"mt-4",children:[(0,t.jsx)(s.SmartIcon,{name:"ArrowLeft"}),(0,t.jsx)("span",{children:"Back to Home"})]})})]}):this.props.children}}e.s(["ErrorBoundary",()=>l])}]);
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.