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(884702),o=e.i(573707);e.s(["ChevronLeft",()=>o.default],570172);var o=o,a=e.i(866273),s=e.i(795551),l=e.i(526683),u=e.i(511398);let c=e=>{let n,i,o,a,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?(o=(0,l.cn)("mx-auto flex w-full",n),s[3]=n,s[4]=o):o=s[4],s[5]!==i||s[6]!==o?(a=(0,t.jsx)("nav",{role:"navigation","aria-label":"pagination",className:o,...i}),s[5]=i,s[6]=o,s[7]=a):a=s[7],a};c.displayName="Pagination";let d=i.forwardRef((e,n)=>{let i,o,a,s,u=(0,r.c)(9);return u[0]!==e?({className:i,...o}=e,u[0]=e,u[1]=i,u[2]=o):(i=u[1],o=u[2]),u[3]!==i?(a=(0,l.cn)("flex flex-row items-center gap-1",i),u[3]=i,u[4]=a):a=u[4],u[5]!==o||u[6]!==n||u[7]!==a?(s=(0,t.jsx)("ul",{ref:n,className:a,...o}),u[5]=o,u[6]=n,u[7]=a,u[8]=s):s=u[8],s});d.displayName="PaginationContent";let p=i.forwardRef((e,n)=>{let i,o,a,s,u=(0,r.c)(9);return u[0]!==e?({className:i,...o}=e,u[0]=e,u[1]=i,u[2]=o):(i=u[1],o=u[2]),u[3]!==i?(a=(0,l.cn)("",i),u[3]=i,u[4]=a):a=u[4],u[5]!==o||u[6]!==n||u[7]!==a?(s=(0,t.jsx)("li",{ref:n,className:a,...o}),u[5]=o,u[6]=n,u[7]=a,u[8]=s):s=u[8],s});p.displayName="PaginationItem";let h=e=>{let n,i,o,a,s,c,d=(0,r.c)(13);d[0]!==e?({className:n,isActive:i,size:a,...o}=e,d[0]=e,d[1]=n,d[2]=i,d[3]=o,d[4]=a):(n=d[1],i=d[2],o=d[3],a=d[4]);let p=void 0===a?"icon":a,h=i?"page":void 0;return d[5]!==n||d[6]!==i||d[7]!==p?(s=(0,l.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]!==o||d[10]!==h||d[11]!==s?(c=(0,t.jsx)("a",{"aria-current":h,className:s,...o}),d[9]=o,d[10]=h,d[11]=s,d[12]=c):c=d[12],c};h.displayName="PaginationLink";let f=e=>{let n,i,a,s,u,c=(0,r.c)(9);return c[0]!==e?({className:n,...i}=e,c[0]=e,c[1]=n,c[2]=i):(n=c[1],i=c[2]),c[3]!==n?(a=(0,l.cn)("gap-1 pl-2.5",n),c[3]=n,c[4]=a):a=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(o.default,{className:"h-4 w-4"}),c[5]=s):s=c[5],c[6]!==i||c[7]!==a?(u=(0,t.jsx)(h,{"aria-label":"Go to previous page",size:"default",className:a,...i,children:s}),c[6]=i,c[7]=a,c[8]=u):u=c[8],u};f.displayName="PaginationPrevious";let m=e=>{let n,i,o,s,u,c=(0,r.c)(9);return c[0]!==e?({className:n,...i}=e,c[0]=e,c[1]=n,c[2]=i):(n=c[1],i=c[2]),c[3]!==n?(o=(0,l.cn)("gap-1 pr-2.5",n),c[3]=n,c[4]=o):o=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(a.ChevronRight,{className:"h-4 w-4"}),c[5]=s):s=c[5],c[6]!==i||c[7]!==o?(u=(0,t.jsx)(h,{"aria-label":"Go to next page",size:"default",className:o,...i,children:s}),c[6]=i,c[7]=o,c[8]=u):u=c[8],u};m.displayName="PaginationNext";let g=e=>{let n,i,o,a,u,c,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?(o=(0,l.cn)("flex h-9 w-9 items-center justify-center",n),d[3]=n,d[4]=o):o=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(s.MoreHorizontal,{className:"h-4 w-4"}),u=(0,t.jsx)("span",{className:"sr-only",children:"More pages"}),d[5]=a,d[6]=u):(a=d[5],u=d[6]),d[7]!==i||d[8]!==o?(c=(0,t.jsxs)("span",{"aria-hidden":!0,className:o,...i,children:[a,u]}),d[7]=i,d[8]=o,d[9]=c):c=d[9],c};function v(e){let n,i,o,a,s,l,u,h=(0,r.c)(27),{total:g,currentPage:v,totalPages:b,onPageChange:x,showPreviousNext:w,className:k}=e;return h[0]!==v||h[1]!==g||h[2]!==b?(n=(0,t.jsxs)("div",{className:"text-muted-foreground text-sm",children:["Total: ",g,", Page: ",v," / ",b]}),h[0]=v,h[1]=g,h[2]=b,h[3]=n):n=h[3],h[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("div",{className:"flex-1"}),h[4]=i):i=h[4],h[5]!==v||h[6]!==x||h[7]!==w||h[8]!==b?(o=w&&b&&v-1>=1?(0,t.jsx)(p,{className:"cursor-pointer",children:(0,t.jsx)(f,{onClick:()=>{v-1>=1&&x(v-1)},className:"cursor-pointer"})},"prev"):null,h[5]=v,h[6]=x,h[7]=w,h[8]=b,h[9]=o):o=h[9],h[10]!==v||h[11]!==x||h[12]!==b?(a=y(v,b,x),h[10]=v,h[11]=x,h[12]=b,h[13]=a):a=h[13],h[14]!==v||h[15]!==x||h[16]!==w||h[17]!==b?(s=w&&b&&v+1<=b?(0,t.jsx)(p,{className:"cursor-pointer",children:(0,t.jsx)(m,{onClick:()=>{v+1<=b&&x(v+1)}})},"next"):null,h[14]=v,h[15]=x,h[16]=w,h[17]=b,h[18]=s):s=h[18],h[19]!==n||h[20]!==o||h[21]!==a||h[22]!==s?(l=(0,t.jsxs)(d,{className:"flex w-full justify-center",children:[n,i,o,a,s]}),h[19]=n,h[20]=o,h[21]=a,h[22]=s,h[23]=l):l=h[23],h[24]!==k||h[25]!==l?(u=(0,t.jsx)(c,{className:k,children:l}),h[24]=k,h[25]=l,h[26]=u):u=h[26],u}g.displayName="PaginationEllipsis";let y=(e,r,n)=>{let i=[];if(r<=6)for(let o=1;o<=r;o++)i.push((0,t.jsx)(p,{className:"cursor-pointer",children:(0,t.jsx)(h,{onClick:()=>o!==e&&n(o),isActive:o==e,className:"cursor-pointer",children:o})},`page-${o}`));else{for(let r=1;r<=2;r++)i.push((0,t.jsx)(p,{children:(0,t.jsx)(h,{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)(g,{},"ellipsis-1")),i.push((0,t.jsx)(p,{children:(0,t.jsx)(h,{onClick:()=>n(e),isActive:!0,className:"cursor-pointer",children:e})},"page-current"))),i.push((0,t.jsx)(g,{},"ellipsis-2"));for(let o=r-1;o<=r;o++)i.push((0,t.jsx)(p,{children:(0,t.jsx)(h,{onClick:()=>o!==e&&n(o),isActive:o===e,className:"cursor-pointer",children:o})},`page-${o}`))}return i};function b(e){let i,o,a=(0,r.c)(11),{total:s,limit:l,page:u,className:c}=e;l<=0&&(l=30);
1let d=Math.ceil(s/l),p=(0,n.usePathname)(),h=(0,n.useSearchParams)(),f=(0,n.useRouter)();a[0]!==p||a[1]!==f||a[2]!==h?(i=e=>{let t=new URLSearchParams(h);t.set("page",e.toString()),f.push(`${p}?${t.toString()}`)},a[0]=p,a[1]=f,a[2]=h,a[3]=i):i=a[3];let m=i;if(d<=1)return null;let g=Number(s),y=Number(l),b=Number(void 0===u?1:u),x=Number(d);return a[4]!==c||a[5]!==m||a[6]!==g||a[7]!==y||a[8]!==b||a[9]!==x?(o=(0,t.jsx)(v,{total:g,perPage:y,currentPage:b,totalPages:x,onPageChange:m,showPreviousNext:!0,className:c}),a[4]=c,a[5]=m,a[6]=g,a[7]=y,a[8]=b,a[9]=x,a[10]=o):o=a[10],o}e.s(["Pagination",()=>b],612486)},371571,401762,e=>{"use strict";let t=()=>Date.parse(new Date().toUTCString())/1e3;e.s(["getTimestamp",0,t],401762);e.s(["cacheGet",0,e=>{let r=localStorage.getItem(e);if(!r)return null;let n=r.split(":");if(!n||n.length<2)return r;let i=Number(n[0]),o=t();if(i>0&&i<o){var a;return a=e,localStorage.removeItem(a),null}let s=n[0]+":";return r.replace(s,"")},"cacheSet",0,(e,t,r=0)=>{r?localStorage.setItem(e,r+":"+t):localStorage.setItem(e,t)}],371571)},662721,e=>{"use strict";var t=e.i(466471),r=e.i(884702),n=e.i(79864),i=e.i(653668),o=e.i(623099),a=e.i(247835),s=e.i(199978),l=e.i(551956),u=e.i(851239),c=e.i(511398),d=e.i(371571),p=e.i(401762);let h="locale-suggestion-dismissed",f="locale";function m(){if("true"!==l.envConfigs.locale_detect_enabled)return null;let e=(0,a.useTranslations)("common.locale_detector"),m=(0,o.useLocale)(),g=(0,s.useRouter)(),v=(0,s.usePathname)(),y=(0,n.useSearchParams)(),[b,x]=(0,r.useState)(!1),[w,k]=(0,r.useState)(null),[_,C]=(0,r.useState)(0),E=(0,r.useRef)(null),D=(0,r.useRef)(!1),S=(0,r.useCallback)(e=>{let t=y?.toString?.()??"",r=t?`${v}?${t}`:v;g.replace(r,{locale:e}),(0,d.cacheSet)(f,e),x(!1)},[g,v,y]);(0,r.useEffect)(()=>{if(D.current)return;D.current=!0;let e=(()=>{let e=(navigator.language||navigator.userLanguage).trim().toLowerCase(),t=u.locales.find(t=>t.toLowerCase()===e);if(t)return t;let r=e.split("-")[0];return u.locales.includes(r)?r:null})();k(e);let t=!!(0,d.cacheGet)(h),r=(0,d.cacheGet)(f);r&&r!==m&&u.locales.includes(r)?S(r):!e||e===m||t||r||x(!0)},[m,S]),(0,r.useEffect)(()=>{if(b&&E.current){let e=E.current.offsetHeight;C(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 C(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||!E.current)return;let e=()=>{E.current&&C(E.current.offsetHeight)};e();let t=new ResizeObserver(e);return t.observe(E.current),window.addEventListener("resize",e),()=>{t.disconnect(),window.removeEventListener("resize",e)}},[b]);let j=u.localeNames[w]||w;return b&&w?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:E,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:e("title",{locale:j})})}),(0,t.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-2",children:[(0,t.jsx)(c.Button,{onClick:()=>{w&&S(w)},variant:"secondary",size:"sm",className:"bg-background text-xs",children:e("switch_to",{locale:j})}),(0,t.jsx)("button",{onClick:()=>{let e;e=(0,p.getTimestamp)()+86400,(0,d.cacheSet)(h,"true",e),x(!1),C(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"]');
1n&&(n.style.paddingTop="0px")},className:"bg-primary/10 flex-shrink-0 rounded p-1 transition-colors","aria-label":"Close",children:(0,t.jsx)(i.X,{className:"h-4 w-4"})})]})]})})}),(0,t.jsx)("div",{"aria-hidden":"true",style:{height:_},className:"pointer-events-none"})]}):null}e.s(["LocaleDetector",()=>m])},534417,41880,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=e.i(291967),o=e.i(188625),a=e.i(352162),s=e.i(575301),l=e.i(6140),u=e.i(408896),c=e.i(950074),d=e.i(415839),p=e.i(636457),h=e.i(387539),f=e.i(987438),m=e.i(214274),g=e.i(216906),v=e.i(775827),y=e.i(82838),b=e.i(819232),x=e.i(935125),w=e.i(73772),k=e.i(221821),_=["Enter"," "],C=["ArrowUp","PageDown","End"],E=["ArrowDown","PageUp","Home",...C],D={ltr:[..._,"ArrowRight"],rtl:[..._,"ArrowLeft"]},S={ltr:["ArrowLeft"],rtl:["ArrowRight"]},j="Menu",[A,L,F]=(0,u.createCollection)(j),[T,P]=(0,a.createContextScope)(j,[F,m.createPopperScope,y.createRovingFocusGroupScope]),M=(0,m.createPopperScope)(),N=(0,y.createRovingFocusGroupScope)(),[R,O]=T(j),[I,z]=T(j),$=e=>{let{__scopeMenu:r,open:i=!1,children:o,dir:a,onOpenChange:s,modal:l=!0}=e,u=M(r),[d,p]=n.useState(null),h=n.useRef(!1),f=(0,x.useCallbackRef)(s),g=(0,c.useDirection)(a);return n.useEffect(()=>{let e=()=>{h.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>h.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,t.jsx)(m.Root,{...u,children:(0,t.jsx)(R,{scope:r,open:i,onOpenChange:f,content:d,onContentChange:p,children:(0,t.jsx)(I,{scope:r,onClose:n.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:h,dir:g,modal:l,children:o})})})};$.displayName=j;var B=n.forwardRef((e,r)=>{let{__scopeMenu:n,...i}=e,o=M(n);return(0,t.jsx)(m.Anchor,{...o,...i,ref:r})});B.displayName="MenuAnchor";var q="MenuPortal",[H,U]=T(q,{forceMount:void 0}),V=e=>{let{__scopeMenu:r,forceMount:n,children:i,container:o}=e,a=O(q,r);return(0,t.jsx)(H,{scope:r,forceMount:n,children:(0,t.jsx)(v.Presence,{present:n||a.open,children:(0,t.jsx)(g.Portal,{asChild:!0,container:o,children:i})})})};V.displayName=q;var W="MenuContent",[Z,G]=T(W),K=n.forwardRef((e,r)=>{let n=U(W,e.__scopeMenu),{forceMount:i=n.forceMount,...o}=e,a=O(W,e.__scopeMenu),s=z(W,e.__scopeMenu);return(0,t.jsx)(A.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(v.Presence,{present:i||a.open,children:(0,t.jsx)(A.Slot,{scope:e.__scopeMenu,children:s.modal?(0,t.jsx)(X,{...o,ref:r}):(0,t.jsx)(Y,{...o,ref:r})})})})}),X=n.forwardRef((e,r)=>{let a=O(W,e.__scopeMenu),s=n.useRef(null),l=(0,o.useComposedRefs)(r,s);return n.useEffect(()=>{let e=s.current;if(e)return(0,w.hideOthers)(e)},[]),(0,t.jsx)(J,{...e,ref:l,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:(0,i.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})}),Y=n.forwardRef((e,r)=>{let n=O(W,e.__scopeMenu);return(0,t.jsx)(J,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Q=(0,b.createSlot)("MenuContent.ScrollLock"),J=n.forwardRef((e,r)=>{let{__scopeMenu:a,loop:s=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:c,disableOutsidePointerEvents:f,onEntryFocus:g,onEscapeKeyDown:v,onPointerDownOutside:b,onFocusOutside:x,onInteractOutside:w,onDismiss:_,disableOutsideScroll:D,...S}=e,j=O(W,a),A=z(W,a),F=M(a),T=N(a),P=L(a),[R,I]=n.useState(null),$=n.useRef(null),B=(0,o.useComposedRefs)(r,$,j.onContentChange),q=n.useRef(0),H=n.useRef(""),U=n.useRef(0),V=n.useRef(null),G=n.useRef("right"),K=n.useRef(0),X=D?k.RemoveScroll:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(q.current),[]),(0,p.useFocusGuards)();let Y=n.useCallback(e=>{var t,r;return G.current===V.current?.side&&(t=e,!!(r=V.current?.area)&&function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e],s=t[o],l=a.x,u=a.y,c=s.x,d=s.y;u>n!=d>n&&r<(c-l)*(n-u)/(d-u)+l&&(i=!i)}return i}({x:t.clientX,y:t.clientY},r))},[]);return(0,t.jsx)(Z,{scope:a,searchRef:H,onItemEnter:n.useCallback(e=>{Y(e)&&e.preventDefault()},[Y]),onItemLeave:n.useCallback(e=>{Y(e)||($.current?.focus(),I(null))},[Y]),onTriggerLeave:n.useCallback(e=>{Y(e)&&e.preventDefault()},[Y]),pointerGraceTimerRef:U,onPointerGraceIntentChange:n.useCallback(e=>{V.current=e},[]),children:(0,t.jsx)(X,{...D?{as:Q,allowPinchZoom:!0}:void 0,children:(0,t.jsx)(h.FocusScope,{asChild:!0,trapped:l,onMountAutoFocus:(0,i.composeEventHandlers)(u,e=>{e.preventDefault(),$.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,t.jsx)(d.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:v,onPointerDownOutside:b,onFocusOutside:x,onInteractOutside:w,onDismiss:_,children:(0,t.jsx)(y.Root,{asChild:!0,...T,dir:A.dir,orientation:"vertical",loop:s,currentTabStopId:R,onCurrentTabStopIdChange:I,onEntryFocus:(0,i.composeEventHandlers)(g,e=>{A.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,t.jsx)(m.Content,{role:"menu","aria-orientation":"vertical","data-state":eE(j.open),"data-radix-menu-content":"",dir:A.dir,...F,...S,ref:B,style:{outline:"none",...S.style},onKeyDown:(0,i.composeEventHandlers)(S.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.ke
1y.length;if(t){var i;let t,o,a,s,l,u;"Tab"===e.key&&e.preventDefault(),!r&&n&&(i=e.key,t=H.current+i,o=P().filter(e=>!e.disabled),a=document.activeElement,s=o.find(e=>e.ref.current===a)?.textValue,l=function(e,t,r){var n;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1,a=(n=Math.max(o,0),e.map((t,r)=>e[(n+r)%e.length]));1===i.length&&(a=a.filter(e=>e!==r));let s=a.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return s!==r?s:void 0}(o.map(e=>e.textValue),t,s),u=o.find(e=>e.textValue===l)?.ref.current,function e(t){H.current=t,window.clearTimeout(q.current),""!==t&&(q.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>u.focus()))}let o=$.current;if(e.target!==o||!E.includes(e.key))return;e.preventDefault();let a=P().filter(e=>!e.disabled).map(e=>e.ref.current);C.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,i.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(q.current),H.current="")}),onPointerMove:(0,i.composeEventHandlers)(e.onPointerMove,ej(e=>{let t=e.target,r=K.current!==e.clientX;e.currentTarget.contains(t)&&r&&(G.current=e.clientX>K.current?"right":"left",K.current=e.clientX)}))})})})})})})});K.displayName=W;var ee=n.forwardRef((e,r)=>{let{__scopeMenu:n,...i}=e;return(0,t.jsx)(l.Primitive.div,{role:"group",...i,ref:r})});ee.displayName="MenuGroup";var et=n.forwardRef((e,r)=>{let{__scopeMenu:n,...i}=e;return(0,t.jsx)(l.Primitive.div,{...i,ref:r})});et.displayName="MenuLabel";var er="MenuItem",en="menu.itemSelect",ei=n.forwardRef((e,r)=>{let{disabled:a=!1,onSelect:s,...u}=e,c=n.useRef(null),d=z(er,e.__scopeMenu),p=G(er,e.__scopeMenu),h=(0,o.useComposedRefs)(r,c),f=n.useRef(!1);return(0,t.jsx)(eo,{...u,ref:h,disabled:a,onClick:(0,i.composeEventHandlers)(e.onClick,()=>{let e=c.current;if(!a&&e){let t=new CustomEvent(en,{bubbles:!0,cancelable:!0});e.addEventListener(en,e=>s?.(e),{once:!0}),(0,l.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?f.current=!1:d.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:(0,i.composeEventHandlers)(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==p.searchRef.current;a||t&&" "===e.key||_.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ei.displayName=er;var eo=n.forwardRef((e,r)=>{let{__scopeMenu:a,disabled:s=!1,textValue:u,...c}=e,d=G(er,a),p=N(a),h=n.useRef(null),f=(0,o.useComposedRefs)(r,h),[m,g]=n.useState(!1),[v,b]=n.useState("");return n.useEffect(()=>{let e=h.current;e&&b((e.textContent??"").trim())},[c.children]),(0,t.jsx)(A.ItemSlot,{scope:a,disabled:s,textValue:u??v,children:(0,t.jsx)(y.Item,{asChild:!0,...p,focusable:!s,children:(0,t.jsx)(l.Primitive.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...c,ref:f,onPointerMove:(0,i.composeEventHandlers)(e.onPointerMove,ej(e=>{s?d.onItemLeave(e):(d.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.composeEventHandlers)(e.onPointerLeave,ej(e=>d.onItemLeave(e))),onFocus:(0,i.composeEventHandlers)(e.onFocus,()=>g(!0)),onBlur:(0,i.composeEventHandlers)(e.onBlur,()=>g(!1))})})})}),ea=n.forwardRef((e,r)=>{let{checked:n=!1,onCheckedChange:o,...a}=e;return(0,t.jsx)(ef,{scope:e.__scopeMenu,checked:n,children:(0,t.jsx)(ei,{role:"menuitemcheckbox","aria-checked":eD(n)?"mixed":n,...a,ref:r,"data-state":eS(n),onSelect:(0,i.composeEventHandlers)(a.onSelect,()=>o?.(!!eD(n)||!n),{checkForDefaultPrevented:!1})})})});ea.displayName="MenuCheckboxItem";var es="MenuRadioGroup",[el,eu]=T(es,{value:void 0,onValueChange:()=>{}}),ec=n.forwardRef((e,r)=>{let{value:n,onValueChange:i,...o}=e,a=(0,x.useCallbackRef)(i);return(0,t.jsx)(el,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,t.jsx)(ee,{...o,ref:r})})});ec.displayName=es;var ed="MenuRadioItem",ep=n.forwardRef((e,r)=>{let{value:n,...o}=e,a=eu(ed,e.__scopeMenu),s=n===a.value;return(0,t.jsx)(ef,{scope:e.__scopeMenu,checked:s,children:(0,t.jsx)(ei,{role:"menuitemradio","aria-checked":s,...o,ref:r,"data-state":eS(s),onSelect:(0,i.composeEventHandlers)(o.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ep.displayName=ed;var eh="MenuItemIndicator",[ef,em]=T(eh,{checked:!1}
1),eg=n.forwardRef((e,r)=>{let{__scopeMenu:n,forceMount:i,...o}=e,a=em(eh,n);return(0,t.jsx)(v.Presence,{present:i||eD(a.checked)||!0===a.checked,children:(0,t.jsx)(l.Primitive.span,{...o,ref:r,"data-state":eS(a.checked)})})});eg.displayName=eh;var ev=n.forwardRef((e,r)=>{let{__scopeMenu:n,...i}=e;return(0,t.jsx)(l.Primitive.div,{role:"separator","aria-orientation":"horizontal",...i,ref:r})});ev.displayName="MenuSeparator";var ey=n.forwardRef((e,r)=>{let{__scopeMenu:n,...i}=e,o=M(n);return(0,t.jsx)(m.Arrow,{...o,...i,ref:r})});ey.displayName="MenuArrow";var[eb,ex]=T("MenuSub"),ew="MenuSubTrigger",ek=n.forwardRef((e,r)=>{let a=O(ew,e.__scopeMenu),s=z(ew,e.__scopeMenu),l=ex(ew,e.__scopeMenu),u=G(ew,e.__scopeMenu),c=n.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:p}=u,h={__scopeMenu:e.__scopeMenu},f=n.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return n.useEffect(()=>f,[f]),n.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),p(null)}},[d,p]),(0,t.jsx)(B,{asChild:!0,...h,children:(0,t.jsx)(eo,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":l.contentId,"data-state":eE(a.open),...e,ref:(0,o.composeRefs)(r,l.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:(0,i.composeEventHandlers)(e.onPointerMove,ej(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||a.open||c.current||(u.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{a.onOpenChange(!0),f()},100)))})),onPointerLeave:(0,i.composeEventHandlers)(e.onPointerLeave,ej(e=>{f();let t=a.content?.getBoundingClientRect();if(t){let r=a.content?.dataset.side,n="right"===r,i=t[n?"left":"right"],o=t[n?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(n?-5:5),y:e.clientY},{x:i,y:t.top},{x:o,y:t.top},{x:o,y:t.bottom},{x:i,y:t.bottom}],side:r}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,t=>{let r=""!==u.searchRef.current;e.disabled||r&&" "===t.key||D[s.dir].includes(t.key)&&(a.onOpenChange(!0),a.content?.focus(),t.preventDefault())})})})});ek.displayName=ew;var e_="MenuSubContent",eC=n.forwardRef((e,r)=>{let a=U(W,e.__scopeMenu),{forceMount:s=a.forceMount,...l}=e,u=O(W,e.__scopeMenu),c=z(W,e.__scopeMenu),d=ex(e_,e.__scopeMenu),p=n.useRef(null),h=(0,o.useComposedRefs)(r,p);return(0,t.jsx)(A.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(v.Presence,{present:s||u.open,children:(0,t.jsx)(A.Slot,{scope:e.__scopeMenu,children:(0,t.jsx)(J,{id:d.contentId,"aria-labelledby":d.triggerId,...l,ref:h,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{c.isUsingKeyboardRef.current&&p.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==d.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,i.composeEventHandlers)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=S[c.dir].includes(e.key);t&&r&&(u.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())})})})})})});function eE(e){return e?"open":"closed"}function eD(e){return"indeterminate"===e}function eS(e){return eD(e)?"indeterminate":e?"checked":"unchecked"}function ej(e){return t=>"mouse"===t.pointerType?e(t):void 0}eC.displayName=e_;var eA="DropdownMenu",[eL,eF]=(0,a.createContextScope)(eA,[P]),eT=P(),[eP,eM]=eL(eA),eN=e=>{let{__scopeDropdownMenu:r,children:i,dir:o,open:a,defaultOpen:l,onOpenChange:u,modal:c=!0}=e,d=eT(r),p=n.useRef(null),[h,m]=(0,s.useControllableState)({prop:a,defaultProp:l??!1,onChange:u,caller:eA});return(0,t.jsx)(eP,{scope:r,triggerId:(0,f.useId)(),triggerRef:p,contentId:(0,f.useId)(),open:h,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),modal:c,children:(0,t.jsx)($,{...d,open:h,onOpenChange:m,dir:o,modal:c,children:i})})};eN.displayName=eA;var eR="DropdownMenuTrigger",eO=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,disabled:a=!1,...s}=e,u=eM(eR,n),c=eT(n);return(0,t.jsx)(B,{asChild:!0,...c,children:(0,t.jsx)(l.Primitive.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...s,ref:(0,o.composeRefs)(r,u.triggerRef),onPointerDown:(0,i.composeEventHandlers)(e.onPointerDown,e=>{!a&&0===e.button&&!1===e.ctrlKey&&(u.onOpenToggle(),u.open||e.preventDefault())}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>
1{!a&&(["Enter"," "].includes(e.key)&&u.onOpenToggle(),"ArrowDown"===e.key&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eO.displayName=eR;var eI=e=>{let{__scopeDropdownMenu:r,...n}=e,i=eT(r);return(0,t.jsx)(V,{...i,...n})};eI.displayName="DropdownMenuPortal";var ez="DropdownMenuContent",e$=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:o,...a}=e,s=eM(ez,o),l=eT(o),u=n.useRef(!1);return(0,t.jsx)(K,{id:s.contentId,"aria-labelledby":s.triggerId,...l,...a,ref:r,onCloseAutoFocus:(0,i.composeEventHandlers)(e.onCloseAutoFocus,e=>{u.current||s.triggerRef.current?.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,i.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!s.modal||n)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e$.displayName=ez;var eB=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...i}=e,o=eT(n);return(0,t.jsx)(ee,{...o,...i,ref:r})});eB.displayName="DropdownMenuGroup";var eq=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...i}=e,o=eT(n);return(0,t.jsx)(et,{...o,...i,ref:r})});eq.displayName="DropdownMenuLabel";var eH=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...i}=e,o=eT(n);return(0,t.jsx)(ei,{...o,...i,ref:r})});eH.displayName="DropdownMenuItem",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...i}=e,o=eT(n);return(0,t.jsx)(ea,{...o,...i,ref:r})}).displayName="DropdownMenuCheckboxItem",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...i}=e,o=eT(n);return(0,t.jsx)(ec,{...o,...i,ref:r})}).displayName="DropdownMenuRadioGroup",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...i}=e,o=eT(n);return(0,t.jsx)(ep,{...o,...i,ref:r})}).displayName="DropdownMenuRadioItem",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...i}=e,o=eT(n);return(0,t.jsx)(eg,{...o,...i,ref:r})}).displayName="DropdownMenuItemIndicator";var eU=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...i}=e,o=eT(n);return(0,t.jsx)(ev,{...o,...i,ref:r})});eU.displayName="DropdownMenuSeparator",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...i}=e,o=eT(n);return(0,t.jsx)(ey,{...o,...i,ref:r})}).displayName="DropdownMenuArrow",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...i}=e,o=eT(n);return(0,t.jsx)(ek,{...o,...i,ref:r})}).displayName="DropdownMenuSubTrigger",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...i}=e,o=eT(n);return(0,t.jsx)(eC,{...o,...i,ref:r,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent",e.i(708154);var eV=e.i(361330);e.s(["ChevronRightIcon",()=>eV.default],41880);var eV=eV,eW=(e.i(347628),e.i(526683));function eZ(e){let n,i,o=(0,r.c)(4);return o[0]!==e?({...n}=e,o[0]=e,o[1]=n):n=o[1],o[2]!==n?(i=(0,t.jsx)(eN,{"data-slot":"dropdown-menu",...n}),o[2]=n,o[3]=i):i=o[3],i}function eG(e){let n,i,o=(0,r.c)(4);return o[0]!==e?({...n}=e,o[0]=e,o[1]=n):n=o[1],o[2]!==n?(i=(0,t.jsx)(eO,{"data-slot":"dropdown-menu-trigger",...n}),o[2]=n,o[3]=i):i=o[3],i}function eK(e){let n,i,o,a,s,l=(0,r.c)(10);l[0]!==e?({className:n,sideOffset:o,...i}=e,l[0]=e,l[1]=n,l[2]=i,l[3]=o):(n=l[1],i=l[2],o=l[3]);let u=void 0===o?4:o;return l[4]!==n?(a=(0,eW.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",n),l[4]=n,l[5]=a):a=l[5],l[6]!==i||l[7]!==u||l[8]!==a?(s=(0,t.jsx)(eI,{children:(0,t.jsx)(e$,{"data-slot":"dropdown-menu-content",sideOffset:u,className:a,...i})}),l[6]=i,l[7]=u,l[8]=a,l[9]=s):s=l[9],s}function eX(e){let n,i,o=(0,r.c)(4);return o[0]!==e?({...n}=e,o[0]=e,o[1]=n):n=o[1],o[2]!==n?(i=(0,t.jsx)(eB,{"data-slot":"dropdown-menu-group",...n}),o[2]=n,o[3]=i):i=o[3],i}function eY(e){let n,i,o,a,s,l,u=(0,r.c)(12);u[0]!==e?({className:n,inset:i,variant:a,...o}=e,u[0]=e,u[1]=n,u[2]=i,u[3]=o,u[4]=a):(n=u[1],i=u[2],o=u[3],a=u[4]);let c=void 0===a?"default":a;return u[5]!==n?(s=(0,eW.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),u[5]=n,u[6]=s):s=u[6],u[7]!==i||u[8]!==o||u[9]!==s||u[10]!==c?(l=(0,t.jsx)(eH,{"data-slot":"dropdown-menu-item","data-inset":i,"data-variant":c,className:s,...o}),u[7]=i,u[8]=o,u[9]=s,u[10]=c,u[11]=l):l=u[11],l}function eQ(e){let n,i,o,a,s,l=(0,r.c)(10);return l[0]!==e?({className:n,inset:i,...o}=e,l[0]=e,l[1]=n,l[2]=i,l[3]=o):(n=l[1],i=l[2],o=l[3]),l[4]!==n?(a=(0,eW.cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",n),l[4]=n,l[5]=a):a=l[5],l[6]!==i||l[7]!==o||l[8]!==a?(s=(0,t.jsx)(eq,{"data-slot":"dropdown-menu-label","data-inset":i,className:a,...o}),l[6]=i,l[7]=o,l[8]=a,l[9]=s):s=l[9],s}function eJ(e){let n,i,o,a,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?(o=(0,eW.cn)("bg-border -mx-1 my-1 h-px",n),s[3]=n,s[4]=o):o=s[4],s[5]!==i||s[6]!==o?(a=(0,t.jsx)(eU,{"data-slot":"dropdown-menu-separator",className:o,...i}),s[5]=i,s[6]=o,s[7]=a):a=s[7],a}e.s(["DropdownMenu",()=>eZ,"DropdownMenuContent",()=>eK,"DropdownMenuGroup",()=>eX,"DropdownMenuItem",()=>eY,"DropdownMenuLabel",()=>eQ,"DropdownMenuSeparator",()=>eJ,"DropdownMenuTrigger",()=>eG],534417)},538630,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=e.i(636680),o=e.i(973941),o=o,a=e.i(502258),a=a,s=e.i(623099),l=e.i(79864),u=e.i(199978),c=e.i(851239),d=e.i(511398),p=e.i(534417),h=e.i(371571);function f(e){let f,m,g,v,y,b,x,w=(0,r.c)(25),{type:k}=e,_=void 0===k?"icon":k,C=(0,s.useLocale)(),E=(0,u.useRouter)(),D=(0,u.usePathname)(),S=(0,l.useSearchParams)(),[j,A]=(0,n.use
1State)(!1);w[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{A(!0)},m=[],w[0]=f,w[1]=m):(f=w[0],m=w[1]),(0,n.useEffect)(f,m),w[2]!==C||w[3]!==D||w[4]!==E||w[5]!==S?(g=e=>{if(e!==C){(0,h.cacheSet)("locale",e);let t=S?.toString?.()??"",r=t?`${D}?${t}`:D;E.push(r,{locale:e})}},w[2]=C,w[3]=D,w[4]=E,w[5]=S,w[6]=g):g=w[6];let L=g;if(!j){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)(a.default,{size:18}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.default,{size:16}),c.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)(a.default,{size:18})}):(0,t.jsxs)(d.Button,{variant:"outline",size:"sm",className:"hover:bg-primary/10",children:[(0,t.jsx)(o.default,{size:16}),c.localeNames[C]]})}),w[15]=C,w[16]=_,w[17]=v):v=w[17],w[18]===Symbol.for("react.memo_cache_sentinel")?(y=Object.keys(c.localeNames),w[18]=y):y=w[18],w[19]!==C||w[20]!==L?(b=(0,t.jsx)(p.DropdownMenuContent,{children:y.map(e=>(0,t.jsxs)(p.DropdownMenuItem,{onClick:()=>L(e),children:[(0,t.jsx)("span",{children:c.localeNames[e]}),e===C&&(0,t.jsx)(i.Check,{size:16,className:"text-primary"})]},e))}),w[19]=C,w[20]=L,w[21]=b):b=w[21],w[22]!==v||w[23]!==b?(x=(0,t.jsxs)(p.DropdownMenu,{children:[v,b]}),w[22]=v,w[23]=b,w[24]=x):x=w[24],x}e.s(["LocaleSelector",()=>f],538630)},290976,e=>{"use strict";var t=e.i(466471),r=e.i(884702),n=e.i(653668),i=e.i(199978),o=e.i(511398),a=e.i(371571),s=e.i(401762),l=e.i(526683);function u({enabled:e=!0,id:u="default",text:c,buttonText:d,href:p,target:h="_self",closable:f=!0,rememberDismiss:m=!0,dismissedExpiryDays:g=7,className:v,onAction:y}){let b=(0,r.useMemo)(()=>`top-banner-dismissed:${u}`,[u]),[x,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||m&&(0,a.cacheGet)(b)||w(!0))},[e]),(0,r.useEffect)(()=>{if(x&&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")}},[x]),(0,r.useEffect)(()=>{if(!x||!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)}},[x]),!e||!x)return null;let D=!!d&&(!!p||!!y);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:"mx-auto flex w-full max-w-[1400px] px-4 py-2.5",children:(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-4",children:[(0,t.jsx)("div",{className:"flex min-w-0 flex-1 items-center justify-center gap-3",children:(0,t.jsx)("div",{className:"max-w-[920px] text-center text-sm leading-5 font-medium",dangerouslySetInnerHTML:{__html:String(c??"")}})}),(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)(o.Button,{asChild:!0,variant:"secondary",size:"sm",className:"bg-background h-8 rounded-sm px-3 text-xs tracking-normal normal-case",children:(0,t.jsx)("a",{href:p,target:h,rel:"_blank"===h?"noreferrer noopener":void 0,children:d})}):(0,t.jsx)(o.Button,{asChild:!0,variant:"secondary",size:"sm",className:"bg-background h-8 rounded-sm px-3 text-xs tracking-normal normal-case",children:(0,t.jsx)(i.Link,{href:p,children:d})}):(0,t.jsx)(o.Button,{onClick:y,variant:"secondary",size:"sm",className:"bg-background h-8 rounded-sm px-3 text-xs tracking-normal normal-case",children:d}):null,f?(0,t.jsx)("button",{onClick:()=>{(()=>{if(!m)return;let e=(0,s.getTimestamp)()+24*g*3600;(0,a.cacheSet)(b,"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",()=>u])},600195,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=e.i(47506),i=i,o=e.i(212174),o=o,a=e.i(749936),a=a,s=e.i(408430),o=o,a=a,l=e.i(847257),u=e.i(526683);let c=e=>{let i,c,d,p,h,f,m=(0,r.c)(15),{className:g}=e,{resolvedTheme:v,setTheme:y}
1=(0,s.useTheme)(),[b,x]=(0,n.useState)(!1),[w,k]=(0,n.useState)(!1);m[0]!==v?(i=()=>{k(!0),x("dark"===v)},c=[v],m[0]=v,m[1]=i,m[2]=c):(i=m[1],c=m[2]),(0,n.useEffect)(i,c);let _=(0,n.useRef)(null);m[3]!==v||m[4]!==y?(d=async()=>{if(!_.current)return;let e="dark"===v?"light":"dark";if(!document.startViewTransition){y(e),x("dark"===e);return}await document.startViewTransition(()=>{(0,l.flushSync)(()=>{y(e),x("dark"===e)})}).ready;let{top:t,left:r,width:n,height:i}=_.current.getBoundingClientRect(),o=t+i/2,a=r+n/2,s=window.innerWidth-r,u=window.innerHeight-t,c=Math.hypot(Math.max(r,s),Math.max(t,u));document.documentElement.animate({clipPath:[`circle(0px at ${a}px ${o}px)`,`circle(${c}px at ${a}px ${o}px)`]},{duration:700,easing:"ease-in-out",pseudoElement:"::view-transition-new(root)"})},m[3]=v,m[4]=y,m[5]=d):d=m[5];let C=d;if(!w)return null;m[6]!==g?(p=(0,u.cn)(g),m[6]=g,m[7]=p):p=m[7];let E=b?"Switch to light mode":"Switch to dark mode";return m[8]!==b?(h=b?(0,t.jsx)(a.default,{}):(0,t.jsx)(o.default,{}),m[8]=b,m[9]=h):h=m[9],m[10]!==C||m[11]!==p||m[12]!==E||m[13]!==h?(f=(0,t.jsx)("button",{ref:_,onClick:C,className:p,"aria-label":E,children:h}),m[10]=C,m[11]=p,m[12]=E,m[13]=h,m[14]=f):f=m[14],f};var d=e.i(511398),p=e.i(352162),h=e.i(6140),f=e.i(82838),m=e.i(291967),g=e.i(575301),v="Toggle",y=n.forwardRef((e,r)=>
1{let{pressed:n,defaultPressed:i,onPressedChange:o,...a}=e,[s,l]=(0,g.useControllableState)({prop:n,onChange:o,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,...a,ref:r,onClick:(0,m.composeEventHandlers)(e.onClick,()=>{e.disabled||l(!s)})})});y.displayName=v;var b=e.i(950074),x="ToggleGroup",[w,k]=(0,p.createContextScope)(x,[f.createRovingFocusGroupScope]),_=(0,f.createRovingFocusGroupScope)(),C=n.default.forwardRef((e,r)=>{let{type:n,...i}=e;if("single"===n)return(0,t.jsx)(S,{...i,ref:r});if("multiple"===n)return(0,t.jsx)(j,{...i,ref:r});throw Error(`Missing prop \`type\` expected on \`${x}\``)});C.displayName=x;var[E,D]=w(x),S=n.default.forwardRef((e,r)=>{let{value:i,defaultValue:o,onValueChange:a=()=>{},...s}=e,[l,u]=(0,g.useControllableState)({prop:i,defaultProp:o??"",onChange:a,caller:x});return(0,t.jsx)(E,{scope:e.__scopeToggleGroup,type:"single",value:n.default.useMemo(()=>l?[l]:[],[l]),onItemActivate:u,onItemDeactivate:n.default.useCallback(()=>u(""),[u]),children:(0,t.jsx)(F,{...s,ref:r})})}),j=n.default.forwardRef((e,r)=>{let{value:i,defaultValue:o,onValueChange:a=()=>{},...s}=e,[l,u]=(0,g.useControllableState)({prop:i,defaultProp:o??[],onChange:a,caller:x}),c=n.default.useCallback(e=>u((t=[])=>[...t,e]),[u]),d=n.default.useCallback(e=>u((t=[])=>t.filter(t=>t!==e)),[u]);return(0,t.jsx)(E,{scope:e.__scopeToggleGroup,type:"multiple",value:l,onItemActivate:c,onItemDeactivate:d,children:(0,t.jsx)(F,{...s,ref:r})})});C.displayName=x;var[A,L]=w(x),F=n.default.forwardRef((e,r)=>{let{__scopeToggleGroup:n,disabled:i=!1,rovingFocus:o=!0,orientation:a,dir:s,loop:l=!0,...u}=e,c=_(n),d=(0,b.useDirection)(s),p={role:"group",dir:d,...u};return(0,t.jsx)(A,{scope:n,rovingFocus:o,disabled:i,children:o?(0,t.jsx)(f.Root,{asChild:!0,...c,orientation:a,dir:d,loop:l,children:(0,t.jsx)(h.Primitive.div,{...p,ref:r})}):(0,t.jsx)(h.Primitive.div,{...p,ref:r})})}),T="ToggleGroupItem",P=n.default.forwardRef((e,r)=>{let i=D(T,e.__scopeToggleGroup),o=L(T,e.__scopeToggleGroup),a=_(e.__scopeToggleGroup),s=i.value.includes(e.value),l=o.disabled||e.disabled,u={...e,pressed:s,disabled:l},c=n.default.useRef(null);return o.rovingFocus?(0,t.jsx)(f.Item,{asChild:!0,...a,focusable:!l,active:s,ref:c,children:(0,t.jsx)(M,{...u,ref:r})}):(0,t.jsx)(M,{...u,ref:r})});P.displayName=T;var M=n.default.forwardRef((e,r)=>{let{__scopeToggleGroup:n,value:i,...o}=e,a=D(T,n),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l="single"===a.type?s:void 0;return(0,t.jsx)(y,{...l,...o,ref:r,onPressedChange:e=>{e?a.onItemActivate(i):a.onItemDeactivate(i)}})});let N=(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"}}),R=n.createContext({size:"default",variant:"default"});function O(e){let n,i,o,a,s,l,c,d,p,h=(0,r.c)(20);return h[0]!==e?({className:i,variant:s,size:a,children:n,...o}=e,h[0]=e,h[1]=n,h[2]=i,h[3]=o,h[4]=a,h[5]=s):(n=h[1],i=h[2],o=h[3],a=h[4],s=h[5]),h[6]!==i?(l=(0,u.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]!==a||h[9]!==s?(c={variant:s,size:a},h[8]=a,h[9]=s,h[10]=c):c=h[10],h[11]!==n||h[12]!==c?(d=(0,t.jsx)(R.Provider,{value:c,children:n}),h[11]=n,h[12]=c,h[13]=d):d=h[13],h[14]!==o||h[15]!==a||h[16]!==l||h[17]!==d||h[18]!==s?(p=(0,t.jsx)(C,{"data-slot":"toggle-group","data-variant":s,"data-size":a,className:l,...o,children:d}),h[14]=o,h[15]=a,h[16]=l,h[17]=d,h[18]=s,h[19]=p):p=h[19],p}function I(e){let i,o,a,s,l,c,d,p=(0,r.c)(18);p[0]!==e?({className:o,children:i,variant:l,size:s,...a}=e,p[0]=e,p[1]=i,p[2]=o,p[3]=a,p[4]=s,p[5]=l):(i=p[1],o=p[2],a=p[3],s=p[4],l=p[5]);let h=n.useContext(R),f=h.variant||l,m=h.size||s;return p[6]!==o||p[7]!==h.size||p[8]!==h.variant||p[9]!==s||p[10]!==l?(c=(0,u.cn)(N({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",o),p[6]=o,p[7]=h.size,p[8]=h.variant,p[9]=s,p[10]=l,p[11]=c):c=p[11],p[12]!==i||p[13]!==a||p[14]!==f||p[15]!==m||p[16]!==c?(d=(0,t.jsx)(P,{"data-slot":"toggle-group-item","data-variant":f,"data-size":m,className:c,...a,children:i}),p[12]=i,p[13]=a,p[14]=f,p[15]=m,p[16]=c,p[17]=d):d=p[17],d}function z(e){let l,u,p,h,f=(0,r.c)(29),{type:m,className:g}=e,v=void 0===m?"icon":m,{theme:y,setTheme:b}
1=(0,s.useTheme)(),[x,w]=(0,n.useState)(!1);f[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{w(!0)},u=[],f[0]=l,f[1]=u):(l=f[0],u=f[1]),(0,n.useEffect)(l,u),f[2]!==b?(p=e=>{b(e)},f[2]=b,f[3]=p):p=f[3];let k=p;if(!x)return null;if("button"===v){let e;return f[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)(a.default,{})}),f[4]=e):e=f[4],e}if("toggle"===v){let e,r,n,s,l,u,c,d,p,h,m=` ${g}`;return f[5]!==b?(e=()=>b("light"),f[5]=b,f[6]=e):e=f[6],f[7]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(a.default,{}),f[7]=r):r=f[7],f[8]!==e?(n=(0,t.jsx)(I,{value:"light",onClick:e,"aria-label":"Switch to light mode",children:r}),f[8]=e,f[9]=n):n=f[9],f[10]!==b?(s=()=>b("dark"),f[10]=b,f[11]=s):s=f[11],f[12]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(o.default,{}),f[12]=l):l=f[12],f[13]!==s?(u=(0,t.jsx)(I,{value:"dark",onClick:s,"aria-label":"Switch to dark mode",children:l}),f[13]=s,f[14]=u):u=f[14],f[15]!==b?(c=()=>b("system"),f[15]=b,f[16]=c):c=f[16],f[17]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(i.default,{}),f[17]=d):d=f[17],f[18]!==c?(p=(0,t.jsx)(I,{value:"system",onClick:c,"aria-label":"Switch to system mode",children:d}),f[18]=c,f[19]=p):p=f[19],f[20]!==k||f[21]!==u||f[22]!==p||f[23]!==m||f[24]!==n||f[25]!==y?(h=(0,t.jsxs)(O,{type:"single",className:m,value:y,onValueChange:k,variant:"outline",children:[n,u,p]}),f[20]=k,f[21]=u,f[22]=p,f[23]=m,f[24]=n,f[25]=y,f[26]=h):h=f[26],h}return f[27]!==g?(h=(0,t.jsx)(c,{className:g}),f[27]=g,f[28]=h):h=f[28],h}e.s(["ThemeToggler",()=>z],600195)},998559,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=e.i(551956);function o(e){let o,a,s,l,u=(0,r.c)(9),{brand:c}=e,[d,p]=(0,n.useState)(null);u[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{p(new Date().getFullYear())},a=[],u[0]=o,u[1]=a):(o=u[0],a=u[1]),(0,n.useEffect)(o,a);let h=d||2024,f=c?.url||i.envConfigs.app_url,m=c?.target||"",g=c?.title||i.envConfigs.app_name;return u[2]!==f||u[3]!==m||u[4]!==g?(s=(0,t.jsx)("a",{href:f,target:m,className:"text-primary hover:text-primary/80 cursor-pointer",children:g}),u[2]=f,u[3]=m,u[4]=g,u[5]=s):s=u[5],u[6]!==h||u[7]!==s?(l=(0,t.jsxs)("div",{className:"text-muted-foreground text-sm",children:["© ",h," ",s,", All rights reserved"]}),u[6]=h,u[7]=s,u[8]=l):l=u[8],l}e.s(["Copyright",()=>o])},85543,(e,t,r)=>{var n={296:(e,t,r)=>{var n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,f=function(){return c.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==d.call(t))return NaN;if(m(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=m(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var l=o.test(e);return l||a.test(e)?s(e.slice(2),l?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,r){var n,i,o,a,s,l,u=0,c=!1,d=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var r=n,o=i;return n=i=void 0,u=t,a=e.apply(o,r)}function b(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-u>=o}function x(){var e,r=f();if(b(r))return w(r);s=setTimeout(x,(e=t-(r-l),d?h(e,o-(r-u)):e))}function w(e){return s=void 0,v&&n?y(e):(n=i=void 0,a)}function k(){var e,r=f(),o=b(r);if(n=arguments,i=this,l=r,o){if(void 0===s)return u=e=l,s=setTimeout(x,t),c?y(e):a;if(d)return s=setTimeout(x,t),y(l)}return void 0===s&&(s=setTimeout(x,t)),a}return t=g(t)||0,m(r)&&(c=!!r.leading,o=(d="maxWait"in r)?p(g(r.maxWait)||0,t):o,v="trailing"in r?!!r.trailing:v),k.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=l=i=s=void 0},k.flush=function(){return void 0===s?a:w(f())},k}},96:(e,t,r)=>{var n="Expected a function",i=NaN,o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,d="object"==typeof self&&self&&self.Object===Object&&self,p=c||d||Function("return this")(),h=Object.prototype.toString,f=Math.max,m=Math.min,g=function(){return p.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==h.call(t))return i;if(v(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=v(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?i:+e}e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw TypeError(n);return v(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),function(e,t,r){var i,o,a,s,l,u,c=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw TypeError(n);function b(t){var r=i,n=o;return i=o=void 0,c=t,s=e.apply(n,r)}function x(e){var r=e-u;return void 0===u||r>=t||r<0||p&&e-c>=a}function w(){var e,r=g();if(x(r))return k(r);l=setTimeout(w,(e=t-(r-u),p?m(e,a-(r-c)):e))}function k(e){return l=void 0,h&&i?b(e):(i=o=void 0,s)}function _(){var e,r=g(),n=x(r);if(i=arguments,o=this,u=r,n){if(void 0===l)return c=e=u,l=setTimeout(w,t),d?b(e):s;if(p)return l=setTimeout(w,t),b(u)}return void 0===l&&(l=setTimeout(w,t)),s}return t=y(t)||0,v(r)&&(d=!!r.leading,a=(p="maxWait"in r)?f(y(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),_.cancel=function(){void 0!==l&&clearTimeout(l),c=0,i=u=o=l=void 0},_.flush=function(){return void 0===l?s:k(g())},_}(e,t,{leading:i,maxWait:t,trailing:o})}},703:(e,t,r)=>{"use strict";var n=r(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
1:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},697:(e,t,r)=>{e.exports=r(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return n[e](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";o.r(a),o.d(a,{LazyLoadComponent:()=>$,LazyLoadImage:()=>X,trackWindowScroll:()=>L});let t=e.r(884702);var r=o.n(t),n=o(697);function i(){return"undefined"!=typeof window&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==s(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){e.forEach(function(e){e.isIntersecting&&e.target.onVisible()})},h={},f=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),e&&c(a,e);var t,n,o=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=d(a);e=n?Reflect.construct(t,arguments,d(this).constructor):t.apply(this,arguments);if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function a(e){var t,r;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).supportsObserver=!e.scrollPosition&&e.useIntersectionObserver&&i(),t.supportsObserver&&(h[r=e.threshold]=h[r]||new IntersectionObserver(p,{rootMargin:r+"px"}),t.observer=h[r]),t}return t=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollPosition,t=this.placeholder.getBoundingClientRect(),r=this.placeholder.style,n=parseInt(r.getPropertyValue("margin-left"),10)||0,i=parseInt(r.getPropertyValue("margin-top"),10)||0;return{bottom:e.y+t.bottom+i,left:e.x+t.left+n,right:e.x+t.right+n,top:e.y+t.to
1p+i}}},{key:"isPlaceholderInViewport",value:function(){if("undefined"==typeof window||!this.placeholder)return!1;var e=this.props,t=e.scrollPosition,r=e.threshold,n=this.getPlaceholderBoundingBox(t),i=t.y+window.innerHeight,o=t.x,a=t.x+window.innerWidth;return!!(t.y-r<=n.bottom&&i+r>=n.top&&o-r<=n.right&&a+r>=n.left)}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,i=t.height,o=t.placeholder,a=t.style,s=t.width;if(o&&"function"!=typeof o.type)return r().cloneElement(o,{ref:function(t){return e.placeholder=t}});var c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=u(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({display:"inline-block"},a);return void 0!==s&&(c.width=s),void 0!==i&&(c.height=i),r().createElement("span",{className:n,ref:function(t){return e.placeholder=t},style:c},o)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}(a.prototype,t),Object.defineProperty(a,"prototype",{writable:!1}),a}(r().Component);f.propTypes={onVisible:n.PropTypes.func.isRequired,className:n.PropTypes.string,height:n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]),placeholder:n.PropTypes.element,threshold:n.PropTypes.number,useIntersectionObserver:n.PropTypes.bool,scrollPosition:n.PropTypes.shape({x:n.PropTypes.number.isRequired,y:n.PropTypes.number.isRequired}),width:n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string])},f.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};var m=o(296),g=o.n(m),v=o(96),y=o.n(v),b=function(e){var t=getComputedStyle(e,null);return t.getPropertyValue("overflow")+t.getPropertyValue("overflow-y")+t.getPropertyValue("overflow-x")};let x=function(e){if(!(e instanceof HTMLElement))return window;for(var t=e;t&&t instanceof HTMLElement;){if(/(scroll|auto)/.test(b(t)))return t;t=t.parentNode}return window};function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var k=["delayMethod","delayTime"];function _(){return(_=Object.assign.bind()).apply(this,arguments)}function C(e,t){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return D(e)}function D(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(){return"undefined"==typeof window?0:window.scrollX||window.pageXOffset},A=function(){return"undefined"==typeof window?0:window.scrollY||window.pageYOffset};let L=function(e){var t=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");s.prototype=Object.create(t&&t.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),t&&C(s,t);var n,o,a=(o=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=S(s);return e=o?Reflect.construct(t,arguments,S(this).constructor):t.apply(this,arguments),E(this,e)});function s(e){if(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).useIntersectionObserver=e.useIntersectionObserver&&i(),t.useIntersectionObserver)return E(t);var t,n=t.onChangeScroll.bind(D(t));return"debounce"===e.delayMethod?t.delayedScroll=g()(n,e.delayTime):"throttle"===e.delayMethod&&(t.delayedScroll=y()(n,e.delayTime)),t.state={scrollPosition:{x:j(),y:A()}},t.baseComponentRef=r().createRef(),t}return n=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){"undefined"==typeof window||this.useIntersectionObserver||x(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){"undefined"==typeof window||this.useIntersectionObserver||(this.scrollElement=x(this.baseComponentRef.current),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){"undefined"==typeof window||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:j(),y:A()}})}},{key:"render",value:function(){var t=this.props,n=(t.delayMethod,t.delayTime,function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,k)),i=this.useIntersectionObserver?null:this.state.scrollPosition;return r().createElement(e,_({forwardRef:this.baseComponentRef,scrollPosition:i},n))}}],function(e,t){for(var r,n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(r=function(e,t){if("object"!==w(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==w(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===w(r)?r:String(r)),i)}}(s.prototype,n),Object.defineProperty(s,"prototype",{writable:!1}),s}(r().Component);return t.propTypes={delayMethod:n.PropTypes.oneOf(["debounce","throttle"]),delayTime:n.PropTypes.number,useIntersectionObserver:n.PropTypes.bool},t.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},t};function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){return(T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}let M=L(function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&T(o,e);var t,n,i=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=P(o);e=n?Reflect.construct(t,arguments,P(this).constructor):t.apply(this,arguments);if(e&&("object"===F(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function o(e){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),i.call(this,e)}return t=[{key:"render",value:function(){return r().createElement(f,this.props)}}],function(e,t){for(var r,n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(r=function(e,t){if("object"!==F(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==F(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===F(r)?r:String(r)),i)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(r().Component));function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1function R(e,t){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function O(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),e&&R(a,e);var t,n,o=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=I(a);e=n?Reflect.construct(t,arguments,I(this).constructor):t.apply(this,arguments);if(e&&("object"===N(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return O(this)});function a(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),t=o.call(this,e);var t,r=e.afterLoad,n=e.beforeLoad,i=e.scrollPosition,s=e.visibleByDefault;return t.state={visible:s},s&&(n(),r()),t.onVisible=t.onVisible.bind(O(t)),t.isScrollTracked=!!(i&&Number.isFinite(i.x)&&i.x>=0&&Number.isFinite(i.y)&&i.y>=0),t}return t=[{key:"componentDidUpdate",value:function(e,t){t.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var e=this.props,t=e.className,n=e.delayMethod,o=e.delayTime,a=e.height,s=e.placeholder,l=e.scrollPosition,u=e.style,c=e.threshold,d=e.useIntersectionObserver,p=e.width;return this.isScrollTracked||d&&i()?r().createElement(f,{className:t,height:a,onVisible:this.onVisible,placeholder:s,scrollPosition:l,style:u,threshold:c,useIntersectionObserver:d,width:p}):r().createElement(M,{className:t,delayMethod:n,delayTime:o,height:a,onVisible:this.onVisible,placeholder:s,style:u,threshold:c,width:p})}}],function(e,t){for(var r,n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(r=function(e,t){if("object"!==N(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==N(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===N(r)?r:String(r)),i)}}(a.prototype,t),Object.defineProperty(a,"prototype",{writable:!1}),a}(r().Component);z.propTypes={afterLoad:n.PropTypes.func,beforeLoad:n.PropTypes.func,useIntersectionObserver:n.PropTypes.bool,visibleByDefault:n.PropTypes.bool},z.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};let $=z;function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var q=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=W(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function V(){return(V=Object.assign.bind()).apply(this,arguments)}function W(e){var t=function(e,t){if("object"!==B(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==B(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===B(t)?t:String(t)}function Z(e,t){return(Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var K=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&Z(o,e);var t,n,i=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=G(o);e=n?Reflect.construct(t,arguments,G(this).constructor):t.apply(this,arguments);if(e&&("object"===B(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function o(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).state={loaded:!1},t}return t=[{key:"onImageLoad",value:function(){var e=this;return this.state.loaded?null:function(t){e.props.onLoad(t),e.props.afterLoad(),e.setState({loaded:!0})}}},{key:"getImg",value:function(){var e=this.props,t=(e.afterLoad,e.beforeLoad,e.delayMethod,e.delayTime,e.effect,e.placeholder,e.placeholderSrc,e.scrollPosition,e.threshold,e.useIntersectionObserver,e.visibleByDefault,e.wrapperClassName,e.wrapperProps,function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,q));return r().createElement("img",V({},t,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var e=this.props,t=e.beforeLoad,n=e.className,i=e.delayMethod,o=e.delayTime,a=e.height,s=e.placeholder,l=e.scrollPosition,u=e.style,c=e.threshold,d=e.useIntersectionObserver,p=e.visibleByDefault,h=e.width;return r().createElement($,{beforeLoad:t,className:n,delayMethod:i,delayTime:o,height:a,placeholder:s,scrollPosition:l,style:u,threshold:c,useIntersectionObserver:d,visibleByDefault:p,width:h},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(e){var t=this.props,n=t.effect,i=t.height,o=t.placeholderSrc,a=t.width,s=t.wrapperClassName,l=t.wrapperProps,u=this.state.loaded;return r().createElement("span",V({className:s+" lazy-load-image-background "+n+(u?" lazy-load-image-loaded":""),style:U(U({},u||!o?{}:{backgroundImage:"url(".concat(o,")"),backgroundSize:"100% 100%"}),{},{color:"transparent",display:"inline-block",height:i,width:a})},l),e)}},{key:"render",value:function(){var e=this.props,t=e.effect,r=e.placeholderSrc,n=e.visibleByDefault,i=e.wrapperClassName,o=e.wrapperProps,a=this.getLazyLoadImage();return(t||r)&&!n||i||o?this.getWrappedLazyLoadImage(a):a}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,W(n.key),n)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(r().Component);K.propTypes={onLoad:n.PropTypes.func,afterLoad:n.PropTypes.func,beforeLoad:n.PropTypes.func,delayMethod:n.PropTypes.string,delayTime:n.PropTypes.number,effect:n.PropTypes.string,placeholderSrc:n.PropTypes.string,threshold:n.PropTypes.number,useIntersectionObserver:n.PropTypes.bool,visibleByDefault:n.PropTypes.bool,wrapperClassName:n.PropTypes.string,wrapperProps:n.PropTypes.object},K.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};let X=K})(),t.exports=a},24963,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(85543);function i(e){let i,o=(0,r.c)(7),{src:a,alt:s,className:l,width:u,height:c,placeholderSrc:d}=e;return o[0]!==s||o[1]!==l||o[2]!==c||o[3]!==d||o[4]!==a||o[5]!==u?(i=(0,t.jsx)(n.LazyLoadImage,{src:a,alt:s,width:u,height:c,effect:"blur",placeholderSrc:d,className:l}),o[0]=s,o[1]=l,o[2]=c,o[3]=d,o[4]=a,o[5]=u,o[6]=i):i=o[6],i}e.s(["LazyImage",()=>i])},835454,577945,812162,266337,e=>{"use strict";var t=e.i(884702),r={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:"
1currentColor",stroke:"none"}};let n=(e,n,i,o)=>{let a=(0,t.forwardRef)(({color:i="currentColor",size:a=24,stroke:s=2,title:l,className:u,children:c,...d},p)=>(0,t.createElement)("svg",{ref:p,...r[e],width:a,height:a,className:["tabler-icon",`tabler-icon-${n}`,u].join(" "),..."filled"===e?{fill:i}:{strokeWidth:s,stroke:i},...d},[l&&(0,t.createElement)("title",{key:"svg-title"},l),...o.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(c)?c:[c]]));return a.displayName=`${i}`,a};e.s(["default",()=>n],577945);let i=n("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"}]]);e.s(["IconRefresh",()=>i],835454);let o=n("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"}]]);e.s(["IconUpload",()=>o],812162);let a=n("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);e.s(["IconX",()=>a],266337)},169543,e=>{"use strict";var t=e.i(154381);e.s(["ImageIcon",()=>t.default])},561444,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=e.i(835454),o=e.i(812162),a=e.i(266337),s=e.i(169543),l=e.i(779342),u=e.i(511398),c=e.i(526683);let d=async e=>{let t=new FormData;t.append("files",e);let r=await fetch("/api/storage/upload-image",{method:"POST",body:t});if(!r.ok)throw Error(`Upload failed with status ${r.status}`);let n=await r.json();if(0!==n.code||!n.data?.urls?.length)throw Error(n.message||"Upload failed");return n.data.urls[0]};function p(e){let p,C,E,D,S,j,A,L,F,T,P,M,N,R,O,I,z,$,B,q,H=(0,r.c)(41),{allowMultiple:U,maxImages:V,maxSizeMB:W,title:Z,emptyHint:G,className:K,defaultPreviews:X,onChange:Y}=e,Q=void 0!==U&&U,J=void 0===W?10:W,ee=(0,n.useRef)(null),et=(0,n.useRef)(!1),er=(0,n.useRef)(Y),en=(0,n.useRef)(!1),ei=(0,n.useRef)(null),eo=(0,n.useRef)(0),[ea,es]=(0,n.useState)(!1);H[0]!==X?(p=()=>X?.length?X.map(_):[],H[0]=X,H[1]=p):p=H[1];
1let[el,eu]=(0,n.useState)(p),ec=Q?void 0===V?1:V:1,ed=1024*J*1024;H[2]!==Y?(C=()=>{er.current=Y},E=[Y],H[2]=Y,H[3]=C,H[4]=E):(C=H[3],E=H[4]),(0,n.useEffect)(C,E),H[5]!==X?(D=()=>{if(!et.current)return;if(en.current){en.current=!1;return}let e=X||[];eu(t=>{let r=t.filter(k).map(w);return e.length===r.length&&e.every((e,t)=>e===r[t])?t:e.map(x)})},S=[X],H[5]=X,H[6]=D,H[7]=S):(D=H[6],S=H[7]),(0,n.useEffect)(D,S),H[8]!==el?(A=()=>()=>{el.forEach(b)},j=[el],H[8]=el,H[9]=j,H[10]=A):(j=H[9],A=H[10]),(0,n.useEffect)(A,j),H[11]!==el?(L=()=>{if(!et.current){et.current=!0;return}en.current=!0,er.current?.(el.map(y))},F=[el],H[11]=el,H[12]=L,H[13]=F):(L=H[12],F=H[13]),(0,n.useEffect)(L,F);let ep=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}))),d(r).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=>{console.error("Upload failed:",e),l.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(()=>{ee.current&&(ee.current.value="")}
1)})},eh=e=>{let t=ei.current;if(t){ei.current=null;let r=e[0];if(!r)return;if(!r.type?.startsWith("image/")){l.toast.error("Only image files are supported"),ee.current&&(ee.current.value="");return}if(r.size>ed){l.toast.error(`"${r.name}" exceeds the ${J}MB limit`),ee.current&&(ee.current.value="");return}ep([{id:t,file:r}]);return}let r=ec-el.length,n=e.filter(e=>e.type?.startsWith("image/")?!(e.size>ed)||(l.toast.error(`"${e.name}" exceeds the ${J}MB limit`),!1):(l.toast.error(`"${e.name}" is not an image`),!1)).slice(0,Math.max(r,0));if(!n.length){if(el.length){let t=e.filter(v);if(!t.length)return;let r=Math.min(t.length,el.length),n=el.slice(-r),i=[];for(let e=0;e<r;e+=1){let r=n[n.length-1-e]?.id,o=t[e];r&&o&&i.push({id:r,file:o})}i.length&&ep(i)}ee.current&&(ee.current.value="");return}r<e.length&&l.toast.message(`Only the first ${n.length} image(s) will be added`);let i=n.map(g);eu(e=>[...e,...i]),Promise.all(i.map(async e=>{try{let t=await d(e.file);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){console.error("Upload failed:",t),l.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"}))}})),ee.current&&(ee.current.value="")};H[14]===Symbol.for("react.memo_cache_sentinel")?(T=e=>{e.preventDefault(),e.stopPropagation(),eo.current=eo.current+1,es(!0)},H[14]=T):T=H[14];let ef=T;H[15]!==ea?(P=e=>{e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="copy",ea||es(!0)},H[15]=ea,H[16]=P):P=H[16];let em=P;H[17]===Symbol.for("react.memo_cache_sentinel")?(M=e=>{e.preventDefault(),e.stopPropagation(),eo.current=eo.current-1,eo.current<=0&&(eo.current=0,es(!1))},H[17]=M):M=H[17];let eg=M;H[18]===Symbol.for("react.memo_cache_sentinel")?(N=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})},H[18]=N):N=H[18];let ev=N,ey=()=>{ee.current?.click()},eb=`${el.length}/${ec}`,ex=ea&&"ring-primary/70 ring-offset-background ring-2 ring-offset-2";H[19]!==K||H[20]!==ex?(R=(0,c.cn)("relative focus:outline-none",ex,K),H[19]=K,H[20]=ex,H[21]=R):R=H[21],H[22]!==ea?(O=ea&&(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"})}),H[22]=ea,H[23]=O):O=H[23],H[24]!==eb||H[25]!==Z?(I=Z&&(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)(s.ImageIcon,{className:"text-primary h-4 w-4"}),(0,t.jsx)("span",{children:Z}),(0,t.jsxs)("span",{className:"text-primary text-xs",children:["(",eb,")"]})]})}),H[24]=eb,H[25]=Z,H[26]=I):I=H[26];let ew=Q?"flex-wrap":"flex-nowrap";H[27]!==ew?(z=(0,c.cn)("flex flex-wrap gap-4",ew),H[27]=ew,H[28]=z):z=H[28];let ek=el.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)(u.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:()=>{ei.current=e.id,ey()},"aria-label":"Upload a new image to replace",children:(0,t.jsx)(i.IconRefresh,{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)(u.Button,{size:"icon",variant:"destructive",className:"absolute top-2 right-2 z-20 h-7 w-7",onClick:()=>ev(e.id),"aria-label":"Remove image",children:(0,t.jsx)(a.IconX,{className:"h-4 w-4"})})]})},e.id));return H[29]!==el.length||H[30]!==ec||H[31]!==J||H[32]!==ey?($=el.length<ec&&(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)(o.IconUpload,{
1className:"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 ",J,"MB"]})]})})}),H[29]=el.length,H[30]=ec,H[31]=J,H[32]=ey,H[33]=$):$=H[33],H[34]!==z||H[35]!==ek||H[36]!==$?(B=(0,t.jsxs)("div",{className:z,children:[ek,$]}),H[34]=z,H[35]=ek,H[36]=$,H[37]=B):B=H[37],H[38]!==G||H[39]!==Z?(q=!Z&&(0,t.jsx)("div",{className:"text-muted-foreground text-xs",children:G}),H[38]=G,H[39]=Z,H[40]=q):q=H[40],(0,t.jsxs)("div",{className:R,tabIndex:0,onPaste:e=>{let t=Array.from(e.clipboardData?.items||[]).filter(m).map(f).filter(Boolean);t.length&&(e.preventDefault(),eh(t))},onDragEnter:ef,onDragOver:em,onDragLeave:eg,onDrop:e=>{e.preventDefault(),e.stopPropagation(),eo.current=0,es(!1);let t=Array.from(e.dataTransfer?.files||[]).filter(h);t.length&&eh(t)},children:[O,(0,t.jsx)("input",{ref:ee,type:"file",accept:"image/*",multiple:Q,onChange:e=>{let t=Array.from(e.target.files||[]);t.length&&eh(t)},className:"hidden"}),I,B,q]})}function h(e){return e.type?.startsWith("image/")}function f(e){return e.getAsFile()}function m(e){return"file"===e.kind&&e.type.startsWith("image/")}function g(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 v(e){return e.type?.startsWith("image/")}function y(e){let{id:t,preview:r,url:n,status:i,size:o}=e;return{id:t,preview:r,url:n,status:i,size:o}}function b(e){e.preview.startsWith("blob:")&&URL.revokeObjectURL(e.preview)}function x(e,t){return{id:`preset-${e}-${t}`,preview:e,url:e,status:"uploaded"}}function w(e){return e.url}function k(e){return"uploaded"===e.status&&e.url}function _(e,t){return{id:`preset-${e}-${t}`,preview:e,url:e,status:"uploaded"}}e.s(["ImageUploader",()=>p])},111643,793143,352103,e=>{"use strict";var t,r,n,i,o,a,s,l,u,c,d,p,h,f=e.i(466471),m=e.i(536355);let g={};function v(e,t){"string"!=typeof t&&(t=v.defaultChars);let r=function(e){let t=g[e];if(t)return t;t=g[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 o=parseInt(e.slice(n+1,n+3),16);if(o<128){t+=r[o];continue}if((224&o)==192&&n+3<i){let r=parseInt(e.slice(n+4,n+6),16);if((192&r)==128){let e=o<<6&1984|63&r;e<128?t+="��":t+=String.fromCharCode(e),n+=3;continue}}if((240&o)==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=o<<12&61440|r<<6&4032|63&i;e<2048||e>=55296&&e<=57343?t+="���":t+=String.fromCharCode(e),n+=6;continue}}if((248&o)==240&&n+9<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16),a=parseInt(e.slice(n+10,n+12),16);if((192&r)==128&&(192&i)==128&&(192&a)==128){let e=o<<18&1835008|r<<12&258048|i<<6&4032|63&a;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),n+=9;continue}}t+="�"}return t})}v.defaultChars=";/?:@&=+$,#",v.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,o=e.length;t<o;t++){let a=e.charCodeAt(t);if(r&&37===a&&t+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(a<128){i+=n[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&t+1<o){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 x(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 w(){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="-_.!~*'()";
1let k=/^([a-z0-9.+-]+:)/i,_=/:[0-9]*$/,C=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,E=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "]))),D=["/","?","#"],S=/^[+a-z0-9A-Z_-]{0,63}$/,j=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,A={javascript:!0,"javascript:":!0},L={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};w.prototype.parse=function(e,t){let r,n,i,o=e;if(o=o.trim(),!t&&1===e.split("#").length){let e=C.exec(o);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let a=k.exec(o);if(a&&(r=(a=a[0]).toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===o.substr(0,2))&&!(a&&A[a])&&(o=o.substr(2),this.slashes=!0),!A[a]&&(i||a&&!L[a])){let e,t,r=-1;for(let e=0;e<D.length;e++)-1!==(n=o.indexOf(D[e]))&&(-1===r||n<r)&&(r=n);-1!==(t=-1===r?o.lastIndexOf("@"):o.lastIndexOf("@",r))&&(e=o.slice(0,t),o=o.slice(t+1),this.auth=e),r=-1;for(let e=0;e<E.length;e++)-1!==(n=o.indexOf(E[e]))&&(-1===r||n<r)&&(r=n);-1===r&&(r=o.length),":"===o[r-1]&&r--;let i=o.slice(0,r);o=o.slice(r),this.parseHost(i),this.hostname=this.hostname||"";let a="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!a){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),a=r.match(j);a&&(n.push(a[1]),i.unshift(a[2])),i.length&&(o=i.join(".")+o),this.hostname=n.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),a&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=o.indexOf("#");-1!==s&&(this.hash=o.substr(s),o=o.slice(0,s));let l=o.indexOf("?");return -1!==l&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),L[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},w.prototype.parseHost=function(e){let t=_.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};let F=function(e,t){if(e&&e instanceof w)return e;let r=new w;return r.parse(e,t),r};e.s([],729435),e.i(729435),e.s(["decode",0,v,"encode",0,b,"format",()=>x,"parse",0,F],954489);var T=e.i(954489);let P=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,M=/[\0-\x1F\x7F-\x9F]/,N=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,R=/[\$\+<->
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]/,O=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;e.s([],57177),e.i(57177),e.s(["Any",0,P,"Cc",0,M,"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,N,"S",0,R,"Z",0,O],107206);var I=e.i(107206);let z=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))),$=new Uint16Array("Èaglq \x15\x18\x1bÉ\x0f\0\0\x12p;ä¦os;ä§t;ä¾t;ä¼uot;ä¢".split("").map(e=>e.charCodeAt(0))),B=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]]),q=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 H(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=u||(u={}))[r.VALUE_LENGTH=49152]="VALUE_LENGTH",r[r.BRANCH_LENGTH=16256]="BRANCH_LENGTH",r[r.JUMP_TABLE=127]="JUMP_TABLE",(n=c||(c={}))[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 U{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=c.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=d.Strict}startEntity(e){this.decodeMode=e,this.state=c.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case c.EntityStart:if(e.charCodeAt(t)===l.NUM)return this.state=c.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=c.NamedEntity,this.stateNamedEntity(e,t);case c.NumericStart:return this.stateNumericStart(e,t);case c.NumericDecimal:return this.stateNumericDecimal(e,t);case c.NumericHex:return this.stateNumericHex(e,t);case c.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===l.LOWER_X?(this.state=c.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=c.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(!H(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(!H(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=B.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&u.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let o=e.charCodeAt(t);if(this.treeIndex=function(e,t,r,n){let i=(t&u.BRANCH_LENGTH)>>7,o=t&u.JUMP_TABLE;if(0===i)return 0!==o&&n===o?r:-1;if(o){let t=n-o;return t<0||t>=i?-1:e[r+t]-1}let a=r,s=a+i-1;for(;a<=s;){let t=a+s>>>1,r=e[t];if(r<n)a=t+1;else{if(!(r>n))return e[t+i];s=t-1}}return -1}(r,n,this.treeIndex+Math.max(1,i),o),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||H(t)}(o))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((n=r[this.treeIndex])&u.VALUE_LENGTH)>>14)){if(o===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]&u.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]&~u.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case c.NamedEntity:return 0!==this.result&&(this.decodeMode!==d.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case c.NumericDecimal:return this.emitNumericEntity(0,2);case c.NumericHex:return this.emitNumericEntity(0,3);case c.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case c.EntityStart:return 0}}}function V(e){let t="",r=new U(e,e=>t+=q(e));return function(e,n){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),r.startEntity(n);let a=r.write(e,o+1);if(a<0){i=o+r.end();break}i=o+a,o=0===a?i+1:i}let a=t+e.slice(i);return t="",a}}let W=V(z);function Z(e,t=d.Legacy){return W(e,t)}V($);let G=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function K(e,t){return function(r){let n,i=0,o="";for(;n=e.exec(r);)i!==n.index&&(o+=r.substring(i,n.index)),o+=t.get(n[0].charCodeAt(0)),i=n.index+1;return o+r.substring(i)}}function X(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)),K(/[&<>'"]/g,G),K(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),K(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),(o=p||(p={}))[o.XML=0]="XML",o[o.HTML=1]="HTML",(a=h||(h={}))[a.UTF8=0]="UTF8",a[a.ASCII=1]="ASCII",a[a.Extensive=2]="Extensive",a[a.Attribute=3]="Attribute",a[a.Text=4]="Text";let Y=Object.prototype.hasOwnProperty;function Q(e,t){return Y.call(e,t)}function J(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 ee(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function et(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 er(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}let en=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ei=RegExp(en.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),eo=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ea(e){return 0>e.indexOf("\\")?e:e.replace(en,"$1")}function es(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(ei,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 et(t)?er(t):e}let n=Z(e);return n!==e?n:e})}let el=/[&<>"]/,eu=/[&<>"]/g,ec={"&":"&","<":"<",">":">",'"':"""};function ed(e){return ec[e]}function ep(e){return el.test(e)?e.replace(eu,ed):e}let eh=/[.?*+^$[\]\\(){}|-]/g;function ef(e){return e.replace(eh,"\\$&")}function em(e){switch(e){case 9:case 32:return!0}return!1}function eg(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 ev(e){return N.test(e)||R.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 ex={mdurl:T,ucmicro:I};e.s(["arrayReplaceAt",()=>ee,"assign",()=>J,"escapeHtml",()=>ep,"escapeRE",()=>ef,"fromCodePoint",()=>er,"has",()=>Q,"isMdAsciiPunct",()=>ey,"isPunctChar",()=>ev,"isSpace",()=>em,"isString",()=>X,"isValidEntityCode",()=>et,"isWhiteSpace",()=>eg,"lib",()=>ex,"normalizeReference",()=>eb,"unescapeAll",()=>es,"unescapeMd",()=>ea],503809);var ew=e.i(503809);function ek(e,t,r){let n,i,o,a,s=e.posMax,l=e.pos;for(e.pos=t+1,n=1;e.pos<s;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--n){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o){if(a===e.pos-1)n++;else if(r)return e.pos=l,-1}}let u=-1;return i&&(u=e.pos),e.pos=l,u}function e_(e,t,r){let n,i=t,o={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<r&&10!==(n=e.charCodeAt(i))&&60!==n;){if(62===n){o.pos=i+1,o.str=es(e.slice(t+1,i)),o.ok=!0;break}if(92===n&&i+1<r){i+=2;continue}i++}return o}let a=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&&++a>32)return o;if(41===n){if(0===a)break;a--}i++}return t===i||0!==a||(o.str=es(e.slice(t,i)),o.pos=i,o.ok=!0),o}function eC(e,t,r,n){let i,o=t,a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)a.str=n.str,a.marker=n.marker;else{if(o>=r)return a;let n=e.charCodeAt(o);if(34!==n&&39!==n&&40!==n)return a;t++,o++,40===n&&(n=41),a.marker=n}for(;o<r;){if((i=e.charCodeAt(o))===a.marker)return a.pos=o+1,a.str+=es(e.slice(t,o)),a.ok=!0,a;if(40===i&&41===a.marker)return a;92===i&&o+1<r&&o++,o++}return a.can_continue=!0,a.str+=es(e.slice(t,o)),a}e.s([],313224),e.i(313224),e.s(["parseLinkDestination",()=>e_,"parseLinkLabel",()=>ek,"parseLinkTitle",()=>eC],876139);var eE=e.i(876139);let eD={};function eS(){this.rules=J({},eD)}function ej(){this.__rules__=[],this.__cache__=null}function eA(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 eL(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}eD.code_inline=function(e,t,r,n,i){let o=e[t];return"<code"+i.renderAttrs(o)+">"+ep(o.content)+"</code>"},eD.code_block=function(e,t,r,n,i){let o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+ep(e[t].content)+"</code></pre>\n"},eD.fence=function(e,t,r,n,i){let o,a=e[t],s=a.info?es(a.info).trim():"",l="",u="";if(s){let e=s.split(/(\s+)/g);l=e[0],u=e.slice(2).join("")}if(0===(o=r.highlight&&r.highlight(a.content,l,u)||ep(a.content)).indexOf("<pre"))return o+"\n";if(s){let e=a.attrIndex("class"),t=a.attrs?a.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})}>${o}</code></pre> 2`}return`<pre><code${i.renderAttrs(a)}>${o}</code></pre> 3`},eD.image=function(e,t,r,n,i){let o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,r,n),i.renderToken(e,t,r)},eD.hardbreak=function(e,t,r){return r.xhtmlOut?"<br />\n":"<br>\n"},eD.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},eD.text=function(e,t){return ep(e[t].content)},eD.html_block=function(e,t){return e[t].content},eD.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+=" "+ep(e.attrs[t][0])+'="'+ep(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 o=!1;if(n.block&&(o=!0,1===n.nesting&&t+1<e.length)){let r=e[t+1];"inline"===r.type||r.hidden?o=!1:-1===r.nesting&&r.tag===n.tag&&(o=!1)}return i+(o?">\n":">")},eS.prototype.renderInline=function(e,t,r){let n="",i=this.rules;for(let o=0,a=e.length;o<a;o++){let a=e[o].type;void 0!==i[a]?n+=i[a](e,o,t,r,this):n+=this.renderToken(e,o,t)}return n},eS.prototype.renderInlineAsText=function(e,t,r){let n="";for(let i=0,o=e.length;i<o;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 o=0,a=e.length;o<a;o++){let a=e[o].type;"inline"===a?n+=this.renderInline(e[o].children,t,r):void 0!==i[a]?n+=i[a](e,o,t,r,this):n+=this.renderToken(e,o,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);
3if(-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);if(-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]||[]},eA.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},eA.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},eA.prototype.attrSet=function(e,t){let r=this.attrIndex(e),n=[e,t];r<0?this.attrPush(n):this.attrs[r]=n},eA.prototype.attrGet=function(e){let t=this.attrIndex(e),r=null;return t>=0&&(r=this.attrs[t][1]),r},eA.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},eL.prototype.Token=eA;let eF=/\r\n?|\n/g,eT=/\0/g,eP=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,eM=/\((c|tm|r)\)/i,eN=/\((c|tm|r)\)/ig,eR={c:"©",r:"®",tm:"â¢"};function eO(e,t){return eR[t.toLowerCase()]}let eI=/['"]/,ez=/['"]/g;function e$(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}let eB=[["normalize",function(e){let t;t=(t=e.src.replace(eF,"\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,o=t.length;i<o;i++){if("inline"!==t[i].type||!e.md.linkify.pretest(t[i].content))continue;let o=t[i].children,a=0;for(let s=o.length-1;s>=0;s--){let l=o[s];if("link_close"===l.type){for(s--;o[s].level!==l.level&&"link_open"!==o[s].type;)s--;continue}if("html_inline"===l.type){var r,n;r=l.content,/^<a[>\s]/i.test(r)&&a>0&&a--,n=l.content,/^<\/a\s*>/i.test(n)&&a++}if(!(a>0)&&"text"===l.type&&e.md.linkify.test(l.content)){let r=l.content,n=e.md.linkify.match(r),a=[],u=l.level,c=0;n.length>0&&0===n[0].index&&s>0&&"text_special"===o[s-1].type&&(n=n.slice(1));for(let t=0;t<n.length;t++){let i=n[t].url,o=e.md.normalizeLink(i);if(!e.md.validateLink(o))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>c){let t=new e.Token("text","",0);t.content=r.slice(c,l),t.level=u,a.push(t)}let d=new e.Token("link_open","a",1);d.attrs=[["href",o]],d.level=u++,d.markup="linkify",d.info="auto",a.push(d);let p=new e.Token("text","",0);p.content=s,p.level=u,a.push(p);let h=new e.Token("link_close","a",-1);h.level=--u,h.markup="linkify",h.info="auto",a.push(h),c=n[t].lastIndex}if(c<r.length){let t=new e.Token("text","",0);t.content=r.slice(c),t.level=u,a.push(t)}t[i].children=o=ee(o,s,a)}}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(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||(n.content=n.content.replace(eN,eO)),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}(e.tokens[t].children),eP.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&&eP.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&&eI.test(e.tokens[t].content)&&function(e,t){let r,n=[];for(let i=0;i<e.length;i++){let o=e[i],a=e[i].level;for(r=n.length-1;r>=0&&!(n[r].level<=a);r--);if(n.length=r+1,"text"!==o.type)continue;let s=o.content,l=0,u=s.length;e:for(;l<u;){ez.lastIndex=l;let c=ez.exec(s);if(!c)break;let d=!0,p=!0;l=c.index+1;let h="'"===c[0],f=32;if(c.index-1>=0)f=s.charCodeAt(c.index-1);else for(r=i-1;r>=0&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r--)if(e[r].content){f=e[r].content.charCodeAt(e[r].content.length-1);break}let m=32;if(l<u)m=s.charCodeAt(l);else for(r=i+1;r<e.length&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r++)if(e[r].content){m=e[r].content.charCodeAt(0);break}let g=ey(f)||ev(String.fromCharCode(f)),v=ey(m)||ev(String.fromCharCode(m)),y=eg(f),b=eg(m);if(b?d=!1:v&&!(y||g)&&(d=!1),y?p=!1:g&&!(b||v)&&(p=!1),34===m&&'"'===c[0]&&f>=48&&f<=57&&(p=d=!1),d&&p&&(d=g,p=v),!d&&!p){h&&(o.content=e$(o.content,c.index,"â"));continue}if(p)for(r=n.length-1;r>=0;r--){let d=n[r];if(n[r].level<a)break;if(d.single===h&&n[r].level===a){let a,p;d=n[r],h?(a=t.md.options.quotes[2],p=t.md.options.quotes[3]):(a=t.md.options.quotes[0],p=t.md.options.quotes[1]),o.content=e$(o.content,c.index,p),e[d.token].content=e$(e[d.token].content,d.pos,a),l
3+=p.length-1,d.token===i&&(l+=a.length-1),u=(s=o.content).length,n.length=r;continue e}}d?n.push({token:i,pos:c.index,single:h,level:a}):p&&h&&(o.content=e$(o.content,c.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,o=i.length;for(t=0;t<o;t++)"text_special"===i[t].type&&(i[t].type="text");for(t=r=0;t<o;t++)"text"===i[t].type&&t+1<o&&"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 eq(){this.ruler=new ej;for(let e=0;e<eB.length;e++)this.ruler.push(eB[e][0],eB[e][1])}function eH(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,o=i.length,a=!1;t<o;t++){let s=i.charCodeAt(t);if(!a)if(em(s)){r++,9===s?n+=4-n%4:n++;continue}else a=!0;(10===s||t===o-1)&&(10!==s&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(r),this.sCount.push(n),this.bsCount.push(0),a=!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 eU(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function eV(e){let t=[],r=e.length,n=0,i=e.charCodeAt(n),o=!1,a=0,s="";for(;n<r;)124===i&&(o?(s+=e.substring(a,n-1),a=n):(t.push(s+e.substring(a,n)),s="",a=n+1)),o=92===i,n++,i=e.charCodeAt(n);return t.push(s+e.substring(a)),t}function eW(e,t){let r=e.eMarks[t],n=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(n++);return 42!==i&&45!==i&&43!==i||n<r&&!em(e.src.charCodeAt(n))?-1:n}function eZ(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t],i=r;if(i+1>=n)return -1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return -1;for(;;){if(i>=n)return -1;if((o=e.src.charCodeAt(i++))>=48&&o<=57){if(i-r>=10)return -1;continue}if(41===o||46===o)break;return -1}return i<n&&!em(o=e.src.charCodeAt(i))?-1:i}eq.prototype.process=function(e){let t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)},eq.prototype.State=eL,eH.prototype.push=function(e,t,r){let n=new eA(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},eH.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},eH.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},eH.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&em(this.src.charCodeAt(e));e++);return e},eH.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!em(this.src.charCodeAt(--e)))return e+1;return e},eH.prototype.skipChars=function(e,t){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===t;e++);return e},eH.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},eH.prototype.getLines=function(e,t,r,n){if(e>=t)return"";let i=Array(t-e);for(let o=0,a=e;a<t;a++,o++){let e,s=0,l=this.bMarks[a],u=l;for(e=a+1<t||n?this.eMarks[a]+1:this.eMarks[a];u<e&&s<r;){let e=this.src.charCodeAt(u);if(em(e))9===e?s+=4-(s+this.bsCount[a])%4:s++;else if(u-l<this.tShift[a])s++;else break;u++}s>r?i[o]=Array(s-r+1).join(" ")+this.src.slice(u,e):i[o]=this.src.slice(u,e)}return i.join("")},eH.prototype.Token=eA;let eG="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",eK="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",eX=RegExp("^(?:"+eG+"|"+eK+"|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),eY=RegExp("^(?:"+eG+"|"+eK+")"),eQ=[[/^<(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(eY.source+"\\s*$"),/^$/,!1]],eJ=[["table",function(e,t,r,n){let i;if(t+2>r)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let a=e.bMarks[o]+e.tShift[o];if(a>=e.eMarks[o])return!1;
3let s=e.src.charCodeAt(a++);if(124!==s&&45!==s&&58!==s||a>=e.eMarks[o])return!1;let l=e.src.charCodeAt(a++);if(124!==l&&45!==l&&58!==l&&!em(l)||45===s&&em(l))return!1;for(;a<e.eMarks[o];){let t=e.src.charCodeAt(a);if(124!==t&&45!==t&&58!==t&&!em(t))return!1;a++}let u=eU(e,t+1),c=u.split("|"),d=[];for(let e=0;e<c.length;e++){let t=c[e].trim();if(!t)if(0===e||e===c.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===(u=eU(e,t).trim()).indexOf("|")||e.sCount[t]-e.blkIndent>=4)return!1;(c=eV(u)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();let p=c.length;if(0===p||p!==d.length)return!1;if(n)return!0;let h=e.parentType;e.parentType="table";let f=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),g=[t,0];m.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<c.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=c[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(o=t+2;o<r&&!(e.sCount[o]<e.blkIndent);o++){let n=!1;for(let t=0,i=f.length;t<i;t++)if(f[t](e,o,r,!0)){n=!0;break}if(n||!(u=eU(e,o).trim())||e.sCount[o]-e.blkIndent>=4||((c=eV(u)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),(v+=p-c.length)>65536))break;o===t+2&&(e.push("tbody_open","tbody",1).map=i=[t+2,0]),e.push("tr_open","tr",1).map=[o,o+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=c[t]?c[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]=o),e.push("table_close","table",-1),g[1]=o,e.parentType=h,e.line=o,!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 o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>o)return!1;let a=e.src.charCodeAt(i);if(126!==a&&96!==a)return!1;let s=i,l=(i=e.skipChars(i,a))-s;if(l<3)return!1;let u=e.src.slice(s,i),c=e.src.slice(i,o);if(96===a&&c.indexOf(String.fromCharCode(a))>=0)return!1;if(n)return!0;let d=t,p=!1;for(;!(++d>=r)&&(!((i=s=e.bMarks[d]+e.tShift[d])<(o=e.eMarks[d]))||!(e.sCount[d]<e.blkIndent));){;if(!(e.src.charCodeAt(i)!==a||e.sCount[d]-e.blkIndent>=4||(i=e.skipChars(i,a))-s<l)&&!((i=e.skipSpaces(i))<o)){p=!0;break}}l=e.sCount[t],e.line=d+ +!!p;let h=e.push("fence","code",0);return h.info=c,h.content=e.getLines(t+1,d,l,!0),h.markup=u,h.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,r,n){let i,o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(o))return!1;if(n)return!0;let l=[],u=[],c=[],d=[],p=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let f=!1;for(i=t;i<r;i++){let t=e.sCount[i]<e.blkIndent;if((o=e.bMarks[i]+e.tShift[i])>=(a=e.eMarks[i]))break;if(62===e.src.charCodeAt(o++)&&!t){let t,r,n=e.sCount[i]+1;32===e.src.charCodeAt(o)?(o++,n++,r=!1,t=!0):9===e.src.charCodeAt(o)?(t=!0,(e.bsCount[i]+n)%4==3?(o++,n++,r=!1):r=!0):t=!1;let s=n;for(l.push(e.bMarks[i]),e.bMarks[i]=o;o<a;){let t=e.src.charCodeAt(o);if(em(t))9===t?s+=4-(s+e.bsCount[i]+ +!!r)%4:s++;else break;o++}f=o>=a,u.push(e.bsCount[i]),e.bsCount[i]=e.sCount[i]+1+ +!!t,c.push(e.sCount[i]),e.sCount[i]=s-n,d.push(e.tShift[i]),e.tShift[i]=o-e.bMarks[i];continue}if(f)break;let n=!1;for(let t=0,o=p.length;t<o;t++)if(p[t](e,i,r,!0)){n=!0;break}if(n){e.lineMax=i,0!==e.blkIndent&&(l.push(e.bMarks[i]),u.push(e.bsCount[i]),d.push(e.tShift[i]),c.push(e.sCount[i]),e.sCount[i]-=e.blkIndent);break}l.push(e.bMarks[i]),u.push(e.bsCount[i]),d.push(e.tShift[i]),c.push(e.sCount[i]),e.sCount[i]=-1}let m=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]=c[r],e.bsCount[r+t]=u[r];return e.blkIndent=m,!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;
3let o=e.bMarks[t]+e.tShift[t],a=e.src.charCodeAt(o++);if(42!==a&&45!==a&&95!==a)return!1;let s=1;for(;o<i;){let t=e.src.charCodeAt(o++);if(t!==a&&!em(t))return!1;t===a&&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(a)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,r,n){let i,o,a,s,l,u,c,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),(c=eZ(e,d))>=0){if(l=!0,a=e.bMarks[d]+e.tShift[d],u=Number(e.src.slice(a,c-1)),h&&1!==u)return!1}else{if(!((c=eW(e,d))>=0))return!1;l=!1}if(h&&e.skipSpaces(c)>=e.eMarks[d])return!1;if(n)return!0;let f=e.src.charCodeAt(c-1),m=e.tokens.length;l?(s=e.push("ordered_list_open","ol",1),1!==u&&(s.attrs=[["start",u]])):s=e.push("bullet_list_open","ul",1);let g=[d,0];s.map=g,s.markup=String.fromCharCode(f);let v=!1,y=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";d<r;){let t;o=c,i=e.eMarks[d];let n=e.sCount[d]+c-(e.bMarks[d]+e.tShift[d]),u=n;for(;o<i;){let t=e.src.charCodeAt(o);if(9===t)u+=4-(u+e.bsCount[d])%4;else if(32===t)u++;else break;o++}let h=o;(t=h>=i?1:u-n)>4&&(t=1);let m=n+t;(s=e.push("list_item_open","li",1)).markup=String.fromCharCode(f);let g=[d,0];s.map=g,l&&(s.info=e.src.slice(a,c-1));let b=e.tight,x=e.tShift[d],w=e.sCount[d],k=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[d]=h-e.bMarks[d],e.sCount[d]=u,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]=x,e.sCount[d]=w,e.tight=b,(s=e.push("list_item_close","li",-1)).markup=String.fromCharCode(f),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=y.length;t<n;t++)if(y[t](e,d,r,!0)){_=!0;break}if(_)break;if(l){if((c=eZ(e,d))<0)break;a=e.bMarks[d]+e.tShift[d]}else if((c=eW(e,d))<0)break;if(f!==e.src.charCodeAt(c-1))break}return(s=l?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(f),g[1]=d,e.line=d,e.parentType=b,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,m),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,r,n){let i,o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(o))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 o=!1;for(let i=0,a=n.length;i<a;i++)if(n[i](e,t,r,!0)){o=!0;break}if(e.parentType=i,o)return null}let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return e.src.slice(i,o+1)}let u=e.src.slice(o,a+1);a=u.length;let c=-1;for(o=1;o<a;o++){let e=u.charCodeAt(o);if(91===e)return!1;if(93===e){c=o;break}if(10===e){let e=l(s);null!==e&&(u+=e,a=u.length,s++)}else if(92===e&&++o<a&&10===u.charCodeAt(o)){let e=l(s);null!==e&&(u+=e,a=u.length,s++)}}if(c<0||58!==u.charCodeAt(c+1))return!1;for(o=c+2;o<a;o++){let e=u.charCodeAt(o);if(10===e){let e=l(s);null!==e&&(u+=e,a=u.length,s++)}else if(em(e));else break}let d=e.md.helpers.parseLinkDestination(u,o,a);if(!d.ok)return!1;let p=e.md.normalizeLink(d.str);if(!e.md.validateLink(p))return!1;let h=o=d.pos,f=s,m=o;for(;o<a;o++){let e=u.charCodeAt(o);if(10===e){let e=l(s);null!==e&&(u+=e,a=u.length,s++)}else if(em(e));else break}let g=e.md.helpers.parseLinkTitle(u,o,a);for(;g.can_continue;){let t=l(s);if(null===t)break;u+=t,o=a,a=u.length,s++,g=e.md.helpers.parseLinkTitle(u,o,a,g)}for(o<a&&m!==o&&g.ok?(i=g.str,o=g.pos):(i="",o=h,s=f);o<a&&em(u.charCodeAt(o));)o++;if(o<a&&10!==u.charCodeAt(o)&&i)for(i="",o=h,s=f;o<a&&em(u.charCodeAt(o));)o++;if(o<a&&10!==u.charCodeAt(o))return!1;let v=eb(u.slice(1,c));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],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>
3=4||!e.md.options.html||60!==e.src.charCodeAt(i))return!1;let a=e.src.slice(i,o),s=0;for(;s<eQ.length&&!eQ[s][0].test(a);s++);if(s===eQ.length)return!1;if(n)return eQ[s][2];let l=t+1;if(!eQ[s][1].test(a)){for(;l<r&&!(e.sCount[l]<e.blkIndent);l++)if(i=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],a=e.src.slice(i,o),eQ[s][1].test(a)){0!==a.length&&l++;break}}e.line=l;let u=e.push("html_block","",0);return u.map=[t,l],u.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],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(i);if(35!==a||i>=o)return!1;let s=1;for(a=e.src.charCodeAt(++i);35===a&&i<o&&s<=6;)s++,a=e.src.charCodeAt(++i);if(s>6||i<o&&!em(a))return!1;if(n)return!0;o=e.skipSpacesBack(o,i);let l=e.skipCharsBack(o,35,i);l>i&&em(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;let u=e.push("heading_open","h"+String(s),1);u.markup="########".slice(0,s),u.map=[t,e.line];let c=e.push("inline","",0);return c.content=e.src.slice(i,o).trim(),c.map=[t,e.line],c.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 o=e.parentType;e.parentType="paragraph";let a=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)){a=61===n?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let n=0,o=i.length;n<o;n++)if(i[n](e,s,r,!0)){t=!0;break}if(t)break}if(!a)return!1;let l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;let u=e.push("heading_open","h"+String(a),1);u.markup=String.fromCharCode(n),u.map=[t,e.line];let c=e.push("inline","",0);return c.content=l,c.map=[t,e.line-1],c.children=[],e.push("heading_close","h"+String(a),-1).markup=String.fromCharCode(n),e.parentType=o,!0}],["paragraph",function(e,t,r){let n=e.md.block.ruler.getRules("paragraph"),i=e.parentType,o=t+1;for(e.parentType="paragraph";o<r&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let t=!1;for(let i=0,a=n.length;i<a;i++)if(n[i](e,o,r,!0)){t=!0;break}if(t)break}let a=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o,e.push("paragraph_open","p",1).map=[t,e.line];let s=e.push("inline","",0);return s.content=a,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function e0(){this.ruler=new ej;for(let e=0;e<eJ.length;e++)this.ruler.push(eJ[e][0],eJ[e][1],{alt:(eJ[e][2]||[]).slice()})}function e1(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}e0.prototype.tokenize=function(e,t,r){let n=this.ruler.getRules(""),i=n.length,o=e.md.options.maxNesting,a=t,s=!1;for(;a<r&&(e.line=a=e.skipEmptyLines(a),!(a>=r)&&!(e.sCount[a]<e.blkIndent));){if(e.level>=o){e.line=r;break}let t=e.line,l=!1;for(let o=0;o<i;o++)if(l=n[o](e,a,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),(a=e.line)<r&&e.isEmpty(a)&&(s=!0,e.line=++a)}},e0.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)},e0.prototype.State=eH,e1.prototype.pushPending=function(){let e=new eA("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},e1.prototype.push=function(e,t,r){this.pending&&this.pushPending();let n=new eA(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},e1.prototype.scanDelims=function(e,t){let r=this.posMax,n=this.src.charCo
3deAt(e),i=e>0?this.src.charCodeAt(e-1):32,o=e;for(;o<r&&this.src.charCodeAt(o)===n;)o++;let a=o-e,s=o<r?this.src.charCodeAt(o):32,l=ey(i)||ev(String.fromCharCode(i)),u=ey(s)||ev(String.fromCharCode(s)),c=eg(i),d=eg(s),p=!d&&(!u||c||l),h=!c&&(!l||d||u);return{can_open:p&&(t||!h||l),can_close:h&&(t||!p||u),length:a}},e1.prototype.Token=eA;let e2=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,e3=[];for(let e=0;e<256;e++)e3.push(0);function e5(e,t){let r,n=[],i=t.length;for(let o=0;o<i;o++){let i=t[o];if(126!==i.marker||-1===i.end)continue;let a=t[i.end];(r=e.tokens[i.token]).type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",(r=e.tokens[a.token]).type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===e.tokens[a.token-1].type&&"~"===e.tokens[a.token-1].content&&n.push(a.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){e3[e.charCodeAt(0)]=1});function e4(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],o=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,a=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=o?"strong_open":"em_open",s.tag=o?"strong":"em",s.nesting=1,s.markup=o?a+a:a,s.content="";let l=e.tokens[i.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?a+a:a,l.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}let e8=/^([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])?)*)$/,e6=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,e9=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,e7=/^&([a-z][a-z0-9]{1,31});/i;function te(e){let t={},r=e.length;if(!r)return;let n=0,i=-2,o=[];for(let a=0;a<r;a++){let r=e[a];if(o.push(0),(e[n].marker!==r.marker||i!==r.token-1)&&(n=a),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-o[n]-1,u=l;for(;l>s;l-=o[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?o[l-1]+1:0;o[a]=a-l+n,o[l]=n,r.open=!1,t.end=a,t.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[r.marker][3*!!r.open+(r.length||0)%3]=u)}}let tt=[["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>e.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(e2);if(!n)return!1;let i=n[1],o=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!o)return!1;let a=o.url;if(a.length<=i.length)return!1;a=a.replace(/\*+$/,"");let s=e.md.normalizeLink(a);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(a);let r=e.push("link_close","a",-1);r.markup="linkify",r.info="auto"}return e.pos+=a.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++;
3r<i&&em(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&&em(i=e.src.charCodeAt(r));)r++;return e.pos=r,!0}let o=e.src[r];if(i>=55296&&i<=56319&&r+1<n){let t=e.src.charCodeAt(r+1);t>=56320&&t<=57343&&(o+=e.src[r+1],r++)}let a="\\"+o;if(!t){let t=e.push("text_special","",0);i<256&&0!==e3[i]?t.content=o:t.content=a,t.markup=a,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 o=e.posMax;for(;n<o&&96===e.src.charCodeAt(n);)n++;let a=e.src.slice(i,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=i)return t||(e.pending+=a),e.pos+=s,!0;let l=n;for(;-1!==(r=e.src.indexOf("`",l));){for(l=r+1;l<o&&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=a,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+=a),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),o=i.length,a=String.fromCharCode(n);if(o<2)return!1;o%2&&(e.push("text","",0).content=a,o--);for(let t=0;t<o;t+=2)e.push("text","",0).content=a+a,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,o,a="",s="",l=e.pos,u=!0;if(91!==e.src.charCodeAt(e.pos))return!1;let c=e.pos,d=e.posMax,p=e.pos+1,h=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(h<0)return!1;let f=h+1;if(f<d&&40===e.src.charCodeAt(f)){for(u=!1,f++;f<d&&(em(r=e.src.charCodeAt(f))||10===r);f++);if(f>=d)return!1;if(l=f,(i=e.md.helpers.parseLinkDestination(e.src,f,e.posMax)).ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?f=i.pos:a="",l=f;f<d&&(em(r=e.src.charCodeAt(f))||10===r);f++);if(i=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<d&&l!==f&&i.ok)for(s=i.str,f=i.pos;f<d&&(em(r=e.src.charCodeAt(f))||10===r);f++);}(f>=d||41!==e.src.charCodeAt(f))&&(u=!0),f++}if(u){if(void 0===e.env.references)return!1;if(f<d&&91===e.src.charCodeAt(f)?(l=f+1,(f=e.md.helpers.parseLinkLabel(e,f))>=0?n=e.src.slice(l,f++):f=h+1):f=h+1,n||(n=e.src.slice(p,h)),!(o=e.env.references[eb(n)]))return e.pos=c,!1;a=o.href,s=o.title}if(!t){e.pos=p,e.posMax=h;let t=e.push("link_open","a",1),r=[["href",a]];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=f,e.posMax=d,!0}],["image",function(e,t){let r,n,i,o,a,s,l,u,c="",d=e.pos,p=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let h=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(f<0)return!1;if((o=f+1)<p&&40===e.src.charCodeAt(o)){for(o++;o<p&&(em(r=e.src.charCodeAt(o))||10===r);o++);if(o>=p)return!1;for(u=o,(s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax)).ok&&(c=e.md.normalizeLink(s.str),e.md.validateLink(c)?o=s.pos:c=""),u=o;o<p&&(em(r=e.src.charCodeAt(o))||10===r);o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<p&&u!==o&&s.ok)for(l=s.str,o=s.pos;o<p&&(em(r=e.src.charCodeAt(o))||10===r);o++);else l="";if(o>=p||41!==e.src.charCodeAt(o))return e.pos=d,!1;o++}else{if(void 0===e.env.references)return!1;if(o<p&&91===e.src.charCodeAt(o)?(u=o+1,(o=e.md.helpers.parseLinkLabel(e,o))>=0?i=e.src.slice(u,o++):o=f+1):o=f+1,i||(i=e.src.slice(h,f)),!(a=e.env.references[eb(i)]))return e.pos=d,!1;c=a.href,l=a.title}if(!t){n=e.src.slice(h,f);let t=[];e.md.inline.parse(n,e.md,e.env,t);let r=e.push("image","img",0),i=[["src",c],["alt",""]];r.attrs=i,r.children=t,r.content=n,l&&i.push(["title",l])}return e.pos=o,e.posMax=p,!0}],["autolink",function(e,t){let r=e.pos;
3if(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 o=e.src.slice(n+1,r);if(e6.test(o)){let r=e.md.normalizeLink(o);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(o);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=o.length+2,!0}if(e8.test(o)){let r=e.md.normalizeLink("mailto:"+o);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(o);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=o.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 o=e.src.charCodeAt(i+1);if(33!==o&&63!==o&&47!==o&&(!((r=32|o)>=97)||!(r<=122)))return!1;let a=e.src.slice(i).match(eX);if(!a)return!1;if(!t){var s,l;let t=e.push("html_inline","",0);t.content=a[0],s=t.content,/^<a[>\s]/i.test(s)&&e.linkLevel++,l=t.content,/^<\/a\s*>/i.test(l)&&e.linkLevel--}return e.pos+=a[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(e9);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=et(t)?er(t):er(65533),r.markup=n[0],r.info="entity"}return e.pos+=n[0].length,!0}}else{let n=e.src.slice(r).match(e7);if(n){let r=Z(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}]],tr=[["balance_pairs",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;te(e.delimiters);for(let e=0;e<r;e++)t[e]&&t[e].delimiters&&te(t[e].delimiters)}],["strikethrough",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;e5(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&e5(e,t[n].delimiters)}],["emphasis",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)}],["fragments_join",function(e){let t,r,n=0,i=e.tokens,o=e.tokens.length;for(t=r=0;t<o;t++)i[t].nesting<0&&n--,i[t].level=n,i[t].nesting>0&&n++,"text"===i[t].type&&t+1<o&&"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 tn(){this.ruler=new ej;for(let e=0;e<tt.length;e++)this.ruler.push(tt[e][0],tt[e][1]);this.ruler2=new ej;for(let e=0;e<tr.length;e++)this.ruler2.push(tr[e][0],tr[e][1])}function ti(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 ta(e){return"[object Function]"===to(e)}function ts(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}tn.prototype.skipToken=function(e){let t=e.pos,r=this.ruler.getRules(""),n=r.length,i=e.md.options.maxNesting,o=e.cache;if(void 0!==o[t]){e.pos=o[t];return}let a=!1;if(e.level<i){for(let i=0;i<n;i++)if(e.level++,a=r[i](e,!0),e.level--,a){if(t>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;!a&&e.pos++,o[t]=e.pos},tn.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 o=e.pos,a=!1;if(e.level<i){for(let n=0;n<r;n++)if(a=t[n](e,!1)){if(o>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},tn.prototype.parse=function(e,t,r,n){let i=new this.State(e,t,r,n);this.tokenize(i);let o=this.ruler2.getRules(""),a=o.length;for(let e=0;e<a;e++)o[e](i)},tn.prototype.State=e1;let tl={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}}},tc="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|ÑÑ".split("|");function td(){return function(e,t){t.normalize(e)}}function tp(e){var t;let r,n,i=(t=e.__opts__,t=t||{},(r={}).src_Any=P.source,r.src_Cc=M.source,r.src_Z=O.source,r.src_P=N.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),o=e.__tlds__.slice();function a(e){return e.replace("%TLDS%",i.src_tlds)}e.onCompile(),e.__tlds_replaced__||o.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]"),o.push(i.src_xn),i.src_tlds=o.join("|"),i.email_fuzzy=RegExp(a(i.tpl_email_fuzzy),"i"),i.link_fuzzy=RegExp(a(i.tpl_link_fuzzy),"i"),i.link_no_ip_fuzzy=RegExp(a(i.tpl_link_no_ip_fuzzy),"i"),i.host_fuzzy_test=RegExp(a(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 ta(r.validate)?n.validate=r.validate:l(t,r);ta(r.normalize)?n.normalize=r.normalize:r.normalize?l(t,r):n.normalize=td();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:td()};let u=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(ts).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><ï½]|"+i.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><ï½]|"+i.src_ZPCc+"))("+u+")","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 th(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 th(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function tm(e,t){if(!(this instanceof tm))return new tm(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||tl.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=ti({},tl,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ti({},tu,e),this.__compiled__={},this.__tlds__=tc,this.__tlds_replaced__=!1,this.re={},tp(this)}tm.prototype.add=function(e,t){return this.__schemas__[e]=t,tp(this),this},tm.prototype.set=function(e){return this.__opts__=ti(this.__opts__,e),this},tm.prototype.test=function(e){let t,r,n,i,o,a,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))&&(o=r.index+r[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,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))&&(o=n.index+n[1].length,a=n.index+n[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},tm.prototype.pretest=function(e){return this.re.pretest.test(e)},tm.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},tm.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},tm.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},tm.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),tp(this),this},tm.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},tm.prototype.onCompile=function(){};let tg=/^xn--/,tv=/[^\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"},tx=Math.floor,tw=String.fromCharCode;function tk(e){throw RangeError(tb[e])}function t_(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 tC=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},tE=function(e,t,r){let n=0;for(e=r?tx(e/700):e>>1,e+=tx(e/t);e>455;n+=36)e=tx(e/35);return tx(n+36*e/(e+38))},tD=function(e){let t=[],r=e.length,n=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let r=0;r<a;++r)e.charCodeAt(r)>=128&&tk("not-basic"),t.push(e.charCodeAt(r));for(let l=a>0?a+1:0;l<r;){let a=n;for(let t=1,i=36;;i+=36){var s;l>=r&&tk("invalid-input");let a=(s=e.charCodeAt(l++))>=48&&s<58?26+(s-48):s>=65&&s<91?s-65:s>=97&&s<123?s-97:36;a>=36&&tk("invalid-input"),a>tx((0x7fffffff-n)/t)&&tk("overflow"),n+=a*t;let u=i<=o?1:i>=o+26?26:i-o;if(a<u)break;let c=36-u;t>tx(0x7fffffff/c)&&tk("overflow"),t*=c}let u=t.length+1;o=tE(n-a,u,0==a),tx(n/u)>0x7fffffff-i&&tk("overflow"),i+=tx(n/u),n%=u,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,o=72;for(let r of e)r<128&&t.push(tw(r));let a=t.length,s=a;
3for(a&&t.push("-");s<r;){let r=0x7fffffff;for(let t of e)t>=n&&t<r&&(r=t);let l=s+1;for(let u of(r-n>tx((0x7fffffff-i)/l)&&tk("overflow"),i+=(r-n)*l,n=r,e))if(u<n&&++i>0x7fffffff&&tk("overflow"),u===n){let e=i;for(let r=36;;r+=36){let n=r<=o?1:r>=o+26?26:r-o;if(e<n)break;let i=e-n,a=36-n;t.push(tw(tC(n+i%a,0))),e=tx(i/a)}t.push(tw(tC(e,0))),o=tE(i,l,s===a),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"]}}}},tA=/^(vbscript|javascript|file|data):/,tL=/^data:image\/(gif|png|jpeg|webp);/;function tF(e){let t=e.trim().toLowerCase();return!tA.test(t)||tL.test(t)}let tT=["http:","https:","mailto:"];function tP(e){let t=F(e,!0);if(t.hostname&&(!t.protocol||tT.indexOf(t.protocol)>=0))try{var r;r=t.hostname,t.hostname=t_(r,function(e){return tv.test(e)?"xn--"+tS(e):e})}catch(e){}return b(x(t))}function tM(e){let t=F(e,!0);if(t.hostname&&(!t.protocol||tT.indexOf(t.protocol)>=0))try{var r;r=t.hostname,t.hostname=t_(r,function(e){return tg.test(e)?tD(e.slice(4).toLowerCase()):e})}catch(e){}return v(x(t),v.defaultChars+"%")}function tN(e,t){if(!(this instanceof tN))return new tN(e,t);t||ew.isString(e)||(t=e||{},e="default"),this.inline=new tn,this.block=new e0,this.core=new eq,this.renderer=new eS,this.linkify=new tm,this.validateLink=tF,this.normalizeLink=tP,this.normalizeLinkText=tM,this.utils=ew,this.helpers=ew.assign({},eE),this.options={},this.configure(e),t&&this.set(t)}function tR(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}tN.prototype.set=function(e){return ew.assign(this.options,e),this},tN.prototype.configure=function(e){let t=this;if(ew.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).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableO
3nly(e.components[r].rules2)}),this},tN.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},tN.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},tN.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},tN.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},tN.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)}
3,tN.prototype.parseInline=function(e,t){let r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},tN.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.s(["default",0,tN],793143),e.s([],352103);let tO=new tN({html:!0,linkify:!0,breaks:!0});function tI(e){let t,r,n=(0,m.c)(4),{content:i}=e;n[0]!==i?(t=i?tO.render(i):"",n[0]=i,n[1]=t):t=n[1];let o=t;return n[2]!==o?(r=(0,f.jsx)("div",{className:"markdown-body",dangerouslySetInnerHTML:{__html:o}}),n[2]=o,n[3]=r):r=n[3],r}tO.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}>`},tO.renderer.rules.link_open=function(e,t,r,n,i){let o=e[t];if(o.attrIndex("href")>=0){let e=o.attrGet("href");o.attrSet("rel","nofollow"),e&&(e.startsWith("http://")||e.startsWith("https://"))&&o.attrSet("target","_blank")}return i.renderToken(e,t,r)},e.s(["MarkdownPreview",()=>tI,"getTocItems",()=>tR],111643)},403732,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=Object.defineProperty,o=(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},a=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>')}static 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,o=e,a=[],s=/\[([^\]]+)\]\(([^)]+)\)/g;for(;null!==(t=s.exec(e));){let e=t.index+t[0].indexOf("](")+2,r=e+t[2].length;a.push({start:e,end:r})}let l=RegExp("(?<!`)(`+)(?!`)((?:(?!\\1).)+?)(\\1)(?!`)","g"),u=[];for(;null!==(r=l.exec(e));){let e=r.index,t=r.index+r[0].length;a.some(r=>e>=r.start&&t<=r.end)||u.push({match:r[0],index:r.index,openTicks:r[1],content:r[2],closeTicks:r[3]})}return u.sort((e,t)=>
3t.index-e.index),u.forEach(e=>{let t=`\uE000${i++}\uE001`;n.set(t,{type:"code",original:e.match,openTicks:e.openTicks,content:e.content,closeTicks:e.closeTicks}),o=o.substring(0,e.index)+t+o.substring(e.index+e.match.length)}),{protectedText:o=o.replace(/\[([^\]]+)\]\(([^)]+)\)/g,(e,t,r)=>{let o=`\uE000${i++}\uE001`;return n.set(o,{type:"link",original:e,linkText:t,url:r}),o}),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>`;else 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++}`,o=this.sanitizeUrl(i.url);n=`<a href="${o}" 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,o=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(o)}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,o=!1,a=Array.from(t.children);for(let e=0;e<a.length;e++){let s=a[e];if(!s.parentNode)continue;let l=s.querySelector(".code-fence");if(l){let e=l.textContent;if(e.startsWith("```"))if(o){o=!1,i=null;continue}else{o=!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(o&&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 u=null;if("DIV"===s.tagName&&(u=s.querySelector("li")),u){let e=u.classList.contains("bullet-list"),i=u.classList.contains("ordered-list");if(!e&&!i){r=null,n=null;continue}let o=e?"ul":"ol";r&&n===o||(r=document.createElement(o),t.insertBefore(r,s),n=o);let a=[];for(let e of s.childNodes)if(3===e.nodeType&&e.textContent.match(/^\u00A0+$/))a.push(e.cloneNode(!0));else if(e===u)break;a.forEach(e=>{u.insertBefore(e,u.firstChild)}),r.appendChild(u),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]:""}
3).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"),o=t.slice(3).trim(),a=o?` class="language-${o}"`:"",s=`<div><span class="code-fence">${t}</span></div>`;return s+`<pre class="code-block"><code${a}>${i}</code></pre><div><span class="code-fence">${n}</span></div>`})}static getListContext(e,t){let r=e.split("\n"),n=0,i=0,o=0;for(let e=0;e<r.length;e++){let a=r[e].length;if(n+a>=t){i=e,o=n;break}n+=a+1}let a=r[i],s=o+a.length,l=a.match(this.LIST_PATTERNS.checkbox);if(l)return{inList:!0,listType:"checkbox",indent:l[1],marker:"-",checked:"x"===l[2],content:l[3],lineStart:o,lineEnd:s,markerEndPos:o+l[1].length+l[2].length+5};let u=a.match(this.LIST_PATTERNS.bullet);if(u)return{inList:!0,listType:"bullet",indent:u[1],marker:u[2],content:u[3],lineStart:o,lineEnd:s,markerEndPos:o+u[1].length+u[2].length+1};let c=a.match(this.LIST_PATTERNS.numbered);return c?{inList:!0,listType:"numbered",indent:c[1],marker:parseInt(c[2]),content:c[3],lineStart:o,lineEnd:s,markerEndPos:o+c[1].length+c[2].length+2}:{inList:!1,listType:null,indent:"",marker:null,content:a,lineStart:o,lineEnd:s,markerEndPos:o}}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,o=t[3];n||r.clear();let a=(r.get(i)||0)+1;for(let[e]of(r.set(i,a),r))e>i&&r.delete(e);return n=!0,`${e}${a}. ${o}`}}).join("\n")}};o(a,"linkIndex",0),o(a,"LIST_PATTERNS",{bullet:/^(\s*)([-*+])\s+(.*)$/,numbered:/^(\s*)(\d+)\.\s+(.*)$/,checkbox:/^(\s*)-\s+\[([ x])\]\s+(.*)$/});var s=Object.defineProperty,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=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={}))u.call(t,r)&&d(e,r,t[r]);if(l)for(var r of l(t))c.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:"###### "}};function f(e){return p(p({},{prefix:"",suffix:"",blockPrefix:"",blockSuffix:"",multiline:!1,replaceNext:"",prefixSpace:!1,scanFor:"",surroundWithNewlines:!1,orderedList:!1,unorderedList:!1,trimFirst:!1}),e)}function m(e,t,r){}function g(e,t){}function v(e){}var y=null;function b(e,{text:t,selectionStart:r,selectionEnd:n}){e.focus();let i=e.selectionStart,o=e.selectionEnd,a=e.value.slice(0,i),s=e.value.slice(o),l=e.value;if(null===y||!0===y){e.contentEditable="true";try{y=document.execCommand("insertText",!1,t)}catch(e){y=!1}e.contentEditable="false"}if(y&&e.value,!y&&e.value===l){try{document.execCommand("ms-beginUndoUnit")}catch(e){}e.value=a+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 x(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*/),o=n?n[0].length:0,a=i?i[
30].length:0,s="",l="";return t.match(/\S/)&&o<2&&(s="\n".repeat(2-o)),r.match(/\S/)&&a<2&&(l="\n".repeat(2-a)),{newlinesToAppend:s,newlinesToPrepend:l}}function _(e,t,r={}){let n=e.selectionStart,i=e.selectionEnd,o=n===i,a=e.value,s=n;for(;s>0&&"\n"!==a[s-1];)s--;if(o){let t=n;for(;t<a.length&&"\n"!==a[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),o=r.adjustSelection(t,n,i,s);l.selectionStart=o.start,l.selectionEnd=o.end}else if(r.prefix){let t=e.value.slice(e.selectionStart,e.selectionEnd).startsWith(r.prefix);o?(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:o,blockPrefix:a,blockSuffix:s,replaceNext:l,prefixSpace:u,scanFor:c,surroundWithNewlines:d,trimFirst:p}=t,h=e.selectionStart,f=e.selectionEnd,m=e.value.slice(e.selectionStart,e.selectionEnd),g=x(m)&&a&&a.length>0?`${a} 4`:i,v=x(m)&&s&&s.length>0?` 5${s}`:o;if(u){let t=e.value[e.selectionStart-1];0===e.selectionStart||null==t||t.match(/\s/)||(g=` ${g}`)}m=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,o=e.value.slice(n,e.selectionStart)===t,a=e.value.slice(e.selectionEnd,i)===r;o&&a&&(e.selectionStart=n,e.selectionEnd=i)}return e.value.slice(e.selectionStart,e.selectionEnd)}(e,g,v,t.multiline);let y=e.selectionStart,b=e.selectionEnd,w=l&&l.length>0&&v.indexOf(l)>-1&&m.length>0;if(d){let t=k(e);r=t.newlinesToAppend,n=t.newlinesToPrepend,g=r+i,v+=n}if(m.startsWith(g)&&m.endsWith(v)){let e=m.slice(g.length,m.length-v.length);if(h===f){let t=h-g.length;y=b=t=Math.min(t=Math.max(t,y),y+e.length)}else b=y+e.length;return{text:e,selectionStart:y,selectionEnd:b}}if(w)if(c&&c.length>0&&m.match(c))return{text:g+(v=v.replace(l,m)),selectionStart:y=b=y+g.length,selectionEnd:b};else{let e=g+m+v;return b=(y=y+g.length+m.length+v.indexOf(l))+l.length,{text:e,selectionStart:y,selectionEnd:b}}{let e=g+m+v;y=h+g.length,b=f+g.length;let t=m.match(/^\s*|\s*$/g);if(p&&t){let r=t[0]||"",n=t[1]||"";e=r+g+m.trim()+v+n,y+=r.length,b-=n.length}return{text:e,selectionStart:y,selectionEnd:b}}}function E(e,t){let{prefix:r,suffix:n,surroundWithNewlines:i}=t,o=e.value.slice(e.selectionStart,e.selectionEnd),a=e.selectionStart,s=e.selectionEnd,l=o.split("\n");if(l.every(e=>e.startsWith(r)&&(!n||e.endsWith(n))))s=a+(o=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(o=l.map(e=>r+e+(n||"")).join("\n"),i){let{newlinesToAppend:t,newlinesToPrepend:r}=k(e);a+=t.length,s=a+o.length,o=t+o+r}return{text:o,selectionStart:a,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 S(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 j(e,t){return t?"- ":`${e+1}. `}function A(e,t){let r=_(e,e=>(function(e,t){let r,n,i,o=e.selectionStart===e.selectionEnd,a=e.selectionStart,s=e.selectionEnd;w(e);let l=e.value.slice(e.selectionStart,e.selectionEnd),[u,c,d]=(i=t.orderedList?(n=S((r=D(l)).text)).text:(n=D((r=S(l)).text)).text,[r,n,i]),p=d.split("\n").map((e,r)=>`${j(r,t.unorderedList)}${e}`),h=p.reduce((e,r,n)=>e+j(n,t.unorderedList).length,0),f=p.reduce((e,r,n)=>e+j(n,!t.unorderedList).length,0);if(u.processed)return o?s=a=Math.max(a-j(0,t.unorderedList).length,0):(a=e.selectionStart,s=e.selectionEnd-h),{text:d,selectionStart:a,selectionEnd:s};let{newlinesToAppend:m,newlinesToPrepend:g}=k(e),v=m+p.join("\n")+g;return o?s=a=Math.max(a+j(0,t.unorderedList).length+m.length,0):c.processed?(a=Math.max(e.selectionStart+m.length,0),s=e.selectionEnd+m.length+h-f):(a=Math.max(e.selectionStart+m.length,0),s=e.selectionEnd+m.length+h),{text:v,selectionStart:a,selectionEnd:s}})(e,t),{adjustSelection:(r,n,i,o)=>{let a=e.value.slice(o,e.selectionEnd),s=/^\d+\.\s+/,l=/^- /,u=s.test(a),c=l.test(a),d=t.orderedList&&u||t.unorderedList&&c;if(n===i)if(d){let e=a.match(t.orderedList?s:l),r=e?e[0].length:0;return{start:Math.max(n-r,o),end:Math.max(n-r,o)}}else if(u||c){let e=a.match(u?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=a.match(t.orderedList?s:l),r=e?e[0].length:0;return{start:Math.max(n-r,o),end:Math.max(i-r,o)}}if(u||c){let e=a.match(u?s:l),r=e?e[0].length:0,o=(t.unorderedList?2:3)-r;return{start:n+o,end:i+o}}{let e=t.unorderedList?2:3;return{start:n+e,end:i+e}}}});b(e,r)}function L(e){if(!e||e.disabled||e.readOnly)return;m("toggleBold","Starting"),g(e,"Before");let t=C(e,f(h.bold));v(t),b(e,t),g(e,"After")}function F(e){if(!e||e.disabled||e.readOnly)return;let t=C(e,f(h.italic));b(e,t)}function T(e,t={}){if(!e||e.disabled||e.readOnly)return;let r=e.value.slice(e.selectionStart,e.selectionEnd),n=f(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;
5e.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);b(e,i)}function P(e){!e||e.disabled||e.readOnly||A(e,f(h.bulletList))}function M(e){!e||e.disabled||e.readOnly||A(e,f(h.numberedList))}function N(e,t=1,r=!1){if(!e||e.disabled||e.readOnly)return;(t<1||t>6)&&(t=1),m("insertHeader","============ START ============"),m("insertHeader",`Level: ${t}, Toggle: ${r}`),m("insertHeader",`Initial cursor: ${e.selectionStart}-${e.selectionEnd}`);let n=f(h[`header${1===t?"1":t}`]||h.header1);m("insertHeader",`Style prefix: "${n.prefix}"`);let i=e.value,o=e.selectionStart,a=e.selectionEnd,s=o;for(;s>0&&"\n"!==i[s-1];)s--;let l=a;for(;l<i.length&&"\n"!==i[l];)l++;let u=i.slice(s,l);m("insertHeader",`Current line (before): "${u}"`);let c=u.match(/^(#{1,6})\s*/),d=c?c[1].length:0,p=c?c[0].length:0;m("insertHeader","Existing header check:"),m("insertHeader",` - Match: ${c?`"${c[0]}"`:"none"}`),m("insertHeader",` - Existing level: ${d}`),m("insertHeader",` - Existing prefix length: ${p}`),m("insertHeader",` - Target level: ${t}`);let g=r&&d===t;m("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);m("insertHeader",`Line in operation: "${i}"`);let o=i.replace(/^#{1,6}\s*/,"");return m("insertHeader",`Cleaned line: "${o}"`),g?(m("insertHeader","ACTION: Toggling OFF - removing header"),r=o):(d>0?m("insertHeader",`ACTION: Replacing H${d} with H${t}`):m("insertHeader","ACTION: Adding new header"),r=n.prefix+o),m("insertHeader",`New line: "${r}"`),{text:r,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}},{prefix:n.prefix,adjustSelection:(e,t,r,i)=>{if(m("insertHeader","Adjusting selection:"),m("insertHeader",` - isRemoving param: ${e}`),m("insertHeader",` - shouldToggleOff: ${g}`),m("insertHeader",` - selStart: ${t}, selEnd: ${r}`),m("insertHeader",` - lineStartPos: ${i}`),g){let e=Math.max(t-p,i);return m("insertHeader",` - Removing header, adjusting by -${p}`),{start:e,end:t===r?e:Math.max(r-p,i)}}if(!(p>0))return m("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 m("insertHeader",` - Replacing header, adjusting by ${e}`),{start:t+e,end:r+e}}}});m("insertHeader",`Final result: text="${v.text}", cursor=${v.selectionStart}-${v.selectionEnd}`),m("insertHeader","============ END ============"),b(e,v)}var R=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":L(t);break;case"toggleItalic":F(t);break;case"insertLink":T(t);break;case"toggleBulletList":P(t);break;case"toggleNumberedList":M(t)}t.dispatchEvent(new Event("input",{bubbles:!0}))}catch(e){console.error("Error in markdown action:",e)}}}destroy(){}},O={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"}},I={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"}},z={solar:O,cave:I,light:O,dark:I};function $(e){return"string"==typeof e?{...z[e]||z.solar,name:e}:e}function B(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 q=`<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>`,H=`<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:q,title:"Bold (Ctrl+B)",action:"toggleBold"},{name:"italic",icon:H,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":L(r);break;case"toggleItalic":F(r);break;case"insertH1":N(r,1,!0);break;case"insertH2":N(r,2,!0);break;case"insertH3":N(r,3,!0);break;case"insertLink":T(r);break;case"toggleCode":!function(e){if(!e||e.disabled||e.readOnly)return;let t=C(e,f(h.code));b(e,t)}(r);break;case"toggleBulletList":P(r);break;case"toggleNumberedList":M(r);break;case"toggleQuote":!function(e){if(!e||e.disabled||e.readOnly)return;m("toggleQuote","Starting"),g(e,"Initial");let t=f(h.quote),r=_(e,e=>E(e,t),{prefix:t.prefix});v(r),b(e,r),g(e,"Final")}(r);break;case"toggleTaskList":!function(e){if(!e||e.disabled||e.readOnly)return;let t=f(h.taskList),r=_(e,e=>E(e,t),{prefix:t.prefix});b(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,o=i.split("\n"),a=0,s="";for(let e of o){if(r>=a&&r<=a+e.length){s=e;break}a+=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),u=Math.min(i.length,n+10),c=i.slice(l,u);if(c.includes("**")){let e=i.slice(Math.max(0,r-100),r),o=i.slice(n,Math.min(i.length,n+100)),a=e.lastIndexOf("**"),s=o.indexOf("**");-1!==a&&-1!==s&&t.push("bold")}if(c.includes("_")){let e=i.slice(Math.max(0,r-100),r),o=i.slice(n,Math.min(i.length,n+100)),a=e.lastIndexOf("_"),s=o.indexOf("_");-1!==a&&-1!==s&&t.push("italic")}if(c.includes("`")){let e=i.slice(Math.max(0,r-100),r),o=i.slice(n,Math.min(i.length,n+100));e.includes("`")&&o.includes("`")&&t.push("code")}if(c.includes("[")&&c.includes("]")){let e=i.slice(Math.max(0,r-100),r),o=i.slice(n,Math.min(i.length,n+100)),a=e.lastIndexOf("["),s=o.indexOf("]");-1!==a&&-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 o=document.createElement("span");o.textContent=t.label,n.appendChild(i),n.appendChild(o),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 R(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||O,n="string"==typeof t?t:t.name;if(n&&this.container.setAttribute("data-theme",n),this.instanceTheme){let e="string"==typeof this.instanceTheme?$(this.instanceTheme):this.instanceTheme;if(e&&e.colors){let t=B(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||O,r="string"==typeof t?t:t.name;if(r&&this.container.setAttribute("data-theme",r),this.instanceTheme){let e="string"==typeof this.instanceTheme?$(this.instanceTheme):this.instanceTheme;if(e&&e.colors){let t=B(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=a.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,o=n.parentElement;i&&o&&(r.style.display="block",n.style.display="block",i.classList.add("code-block-line"),o.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),o=n.substring(r),a=i.split("\n").map(e=>e.replace(/^ /,"")).join("\n");document.execCommand?(this.textarea.setSelectionRange(t,r),document.execCommand("insertText",!1,a)):(this.textarea.value=e+a+o,this.textarea.selectionStart=t,this.textarea.selectionEnd=t+a.length)}else if(t!==r){let e=n.substring(0,t),i=n.substring(t,r),o=n.substring(r),a=i.split("\n").map(e=>" "+e).join("\n");document.execCommand?(this.textarea.setSelectionRange(t,r),document.execCommand("insertText",!1,a)):(this.textarea.value=e+a+o,this.textarea.selectionStart=t,this.textarea.selectionEnd=t+a.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=a.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=a.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=a.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=a.renumberLists(e);if(r!==e){let n=0,i=e.split("\n"),o=r.split("\n"),a=0;for(let e=0;e<i.length&&a<t;e++){if(i[e]!==o[e]){let r=o[e].length-i[e].length;a+i[e].length<t&&(n+=r)}a+=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=a.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,o=e.substring(0,i).split("\n"),a=o.length,s=o[o.length-1].length+1;this.options.statsFormatter?this.statsBar.innerHTML=this.options.statsFormatter({chars:r,words:n,lines:t.length,line:a,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 ${a}, 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 o=e.scrollHeight;this.options.minHeight&&(o=Math.max(o,parseInt(this.options.minHeight)));let a="hidden";if(this.options.maxHeight){let e=parseInt(this.options.maxHeight);o>e&&(o=e,a="auto")}let s=o+"px";e.style.setProperty("height",s,"important"),e.style.setProperty("overflow-y",a,"important"),t.style.setProperty("height",s,"important"),t.style.setProperty("overflow-y",a,"important"),r.style.setProperty("height",s,"important"),e.scrollTop=i,t.scrollTop=i,this.previousHeight!==o&&(this.previousHeight=o)}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:o=null,mobile:a={}}=e,s=Object.keys(a).length>0?` 100 @media (max-width: 640px) { 101 .overtype-wrapper .overtype-input, 102 .overtype-wrapper .overtype-preview { 103 ${Object.entries(a).map(([e,t])=>{let r=e.replace(/([A-Z])/g,"-$1").toLowerCase();return`${r}: ${t} !important;`}).join("\n ")} 104 } 105 } 106 `:"",l=o&&o.colors?B(o.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||O}),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?$(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,o,a,s,l,u=(0,r.c)(11),{value:c,onChange:d,placeholder:p,minHeight:h,showToolbar:f}=e,m=void 0===h?400:h,g=(0,n.useRef)(null),v=(0,n.useRef)(null);return u[0]!==m||u[1]!==d||u[2]!==p||u[3]!==f||u[4]!==c?(i=()=>{let[e]=er.init(g.current,{value:c,onChange:d,placeholder:p,minHeight:m,showToolbar:f});return v.current=e,()=>v.current?.destroy()},u[0]=m,u[1]=d,u[2]=p,u[3]=f,u[4]=c,u[5]=i):i=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(o=[],u[6]=o):o=u[6],(0,n.useEffect)(i,o),u[7]!==c?(a=()=>{v.current&&c!==v.current.getValue()&&v.current.setValue(c)},s=[c],u[7]=c,u[8]=a,u[9]=s):(a=u[8],s=u[9]),(0,n.useEffect)(a,s),u[10]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("div",{className:"overflow-hidden rounded-md border",ref:g,style:{height:"400px"}}
880),u[10]=l):l=u[10],l}o(er,"instances",new WeakMap),o(er,"stylesInjected",!1),o(er,"globalListenersInitialized",!1),o(er,"instanceCount",0),er.MarkdownParser=a,er.ShortcutsManager=R,er.themes={solar:O,cave:$("cave")},er.getTheme=$,er.currentTheme=O,e.s(["MarkdownEditor",()=>en],403732)},394673,864071,e=>{"use strict";var t=e.i(476683);e.s(["Coins",()=>t.default],394673);var r=e.i(889412);e.s(["LayoutDashboard",()=>r.default],864071)},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])},642616,422812,581682,34058,e=>{"use strict";let t;var r=e.i(466471),n=e.i(884702),i=e.i(394673),o=e.i(864071),a=e.i(462297),s=e.i(148551),l=e.i(39973),u=e.i(247835),c=e.i(400969),d=e.i(199978),p=e.i(890210),h=e.i(511398),f=e.i(534417),m=e.i(960568),g=e.i(526683),v=e.i(331597),y=e.i(536355),b=e.i(122913),x=e.i(545532);let w=n.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}),k=()=>{let e=n.default.useContext(w);if(!e)throw Error("useDrawerContext must be used within a Drawer.Root");return e};function _(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function C(){return E(/^iPhone/)||E(/^iPad/)||E(/^Mac/)&&navigator.maxTouchPoints>1}function E(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?n.useLayoutEffect:n.useEffect;function S(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}let j="undefined"!=typeof document&&window.visualViewport;function A(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function L(e){for(A(e)&&(e=e.parentElement);e&&!A(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}let F=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),T=0;function P(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function M(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=L(e);if(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 N(e){return e instanceof HTMLInputElement&&!F.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function R(...e){return n.useCallback(function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(...e),e)}let O=new WeakMap;function I(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||O.set(e,n)}let z=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function $(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(", ")[z(t)?13:12]):(i=n.match(/^matrix\((.+)\)$/))?parseFloat(i[1].split(", ")[z(t)?5:4]):null}function B(e,t){if(!e)return()=>{};let r=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=r}}let q=[.32,.72,0,1],H="vaul-dragging";function U(e){let t=n.default.useRef(e);return n.default.useEffect(()=>{t.current=e}),n.default.useMemo(()=>(...e)=>null==t.current?void 0:t.current.call(t,...e),[])}function V({prop:e,defaultProp:t,onChange:r=()=>{}}){let[i,o]=function({defaultProp:e,onChange:t}){let r=n.default.useState(e),[i]=r,o=n.default.useRef(i),a=U(t);return n.default.useEffect(()=>{o.current!==i&&(a(i),o.current=i)},[i,o,a]),r}({defaultProp:t,onChange:r}),a=void 0!==e,s=a?e:i,l=U(r);return[s,n.default.useCallback(t=>{if(a){let r="function"==typeof t?t(e):t;r!==e&&l(r)}else o(t)},[a,e,o,l])]}let W=()=>()=>{},Z=null;function G({open:e,onOpenChange:r,children:i,onDrag:o,onRelease:a,snapPoints:s,shouldScaleBackgroun
880d:l=!1,setBackgroundColorOnScale:u=!0,closeThreshold:c=.25,scrollLockTimeout:d=100,dismissible:p=!0,handleOnly:h=!1,fadeFromIndex:f=s&&s.length-1,activeSnapPoint:m,setActiveSnapPoint:g,fixed:v,modal:y=!0,onClose:b,nested:k,noBodyStyles:E=!1,direction:A="bottom",defaultOpen:F=!1,disablePreventScroll:R=!0,snapToSequentialPoint:B=!1,preventScrollRestoration:U=!1,repositionInputs:W=!0,onAnimationEnd:G,container:K,autoFocus:X=!1}){var Y,Q;let[J=!1,ee]=V({defaultProp:F,prop:e,onChange:e=>{null==r||r(e),e||k||eF(),setTimeout(()=>{null==G||G(e)},500),e&&!y&&"undefined"!=typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),e||(document.body.style.pointerEvents="auto")}}),[et,er]=n.default.useState(!1),[en,ei]=n.default.useState(!1),[eo,ea]=n.default.useState(!1),es=n.default.useRef(null),el=n.default.useRef(null),eu=n.default.useRef(null),ec=n.default.useRef(null),ed=n.default.useRef(null),ep=n.default.useRef(!1),eh=n.default.useRef(null),ef=n.default.useRef(0),em=n.default.useRef(!1),eg=n.default.useRef(!F),ev=n.default.useRef(0),ey=n.default.useRef(null),eb=n.default.useRef((null==(Y=ey.current)?void 0:Y.getBoundingClientRect().height)||0),ex=n.default.useRef((null==(Q=ey.current)?void 0:Q.getBoundingClientRect().width)||0),ew=n.default.useRef(0),ek=n.default.useCallback(e=>{s&&e===eS.length-1&&(el.current=new Date)},[]),{activeSnapPoint:e_,activeSnapPointIndex:eC,setActiveSnapPoint:eE,onRelease:eD,snapPointsOffset:eS,onDrag:ej,shouldFade:eA,getPercentageDragged:eL}=function({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:r,drawerRef:i,overlayRef:o,fadeFromIndex:a,onSnapPointChange:s,direction:l="bottom",container:u,snapToSequentialPoint:c}){let[d,p]=V({prop:e,defaultProp:null==r?void 0:r[0],onChange:t}),[h,f]=n.default.useState("undefined"!=typeof window?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);n.default.useEffect(()=>{function e(){f({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let m=n.default.useMemo(()=>d===(null==r?void 0:r[r.length-1])||null,[r,d]),g=n.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&&(a||0===a)&&!Number.isNaN(a)&&r[a]===d||!r,y=n.default.useMemo(()=>{var e;let t=u?{width:u.getBoundingClientRect().width,height:u.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)),z(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,u]),b=n.default.useMemo(()=>null!==g?null==y?void 0:y[g]:null,[y,g]),x=n.default.useCallback(e=>{var t;let n=null!=(t=null==y?void 0:y.findIndex(t=>t===e))?t:null;s(n),I(i.current,{transition:`transform 0.5s cubic-bezier(${q.join(",")})`,transform:z(l)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),y&&n!==y.length-1&&void 0!==a&&n!==a&&n<a?I(o.current,{transition:`opacity 0.5s cubic-bezier(${q.join(",")})`,opacity:"0"}):I(o.current,{transition:`opacity 0.5s cubic-bezier(${q.join(",")})`,opacity:"1"}),p(null==r?void 0:r[Math.max(n,0)])},[i.current,r,y,a,o,p]);return n.default.useEffect(()=>{if(d||e){var t;let n=null!=(t=null==r?void 0:r.findIndex(t=>t===e||t===d))?t:-1;y&&-1!==n&&"number"==typeof y[n]&&x(y[n])}},[d,e,r,y,x]),{isLastSnapPoint:m,activeSnapPoint:d,shouldFade:v,getPercentageDragged:function(e,t){if(!r||"number"!=typeof g||!y||void 0===a)return null;let n=g===a-1;if(g>=a&&t)return 0;if(n&&!t)return 1;if(!v&&!n)return null;let i=n?g+1:g-1,o=e/Math.abs(n?y[i]-y[i-1]:y[i+1]-y[i]);return n?1-o:o},setActiveSnapPoint:p,activeSnapPointIndex:g,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:n,dismissible:i}){if(void 0===a)return;let s="bottom"===l||"right"===l?(null!=b?b:0)-e:(null!=b?b:0)+e,u=g===a-1,d=0===g,p=e>0;if(u&&I(o.current,{transition:`opacity 0.5s cubic-bezier(${q.join(",")})`}),!c&&n>2&&!p)return void(i?t():x(y[0]));if(!c&&n>2&&p&&y&&r)return void x(y[r.length-1]);let h=null==y?void 0:y.reduce((e,t)=>
880"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-s)<Math.abs(e-s)?t:e),f=z(l)?window.innerHeight:window.innerWidth;if(n>.4&&Math.abs(e)<.4*f){let e=p?1:-1;return e>0&&m&&r?void x(y[r.length-1]):void(d&&e<0&&i&&t(),null===g||x(y[g+e]))}x(h)},onDrag:function({draggedDistance:e}){if(null===b)return;let t="bottom"===l||"right"===l?b-e:b+e;("bottom"===l||"right"===l)&&t<y[y.length-1]||("top"===l||"left"===l)&&t>y[y.length-1]||I(i.current,{transform:z(l)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:y}}({snapPoints:s,activeSnapPointProp:m,setActiveSnapPointProp:g,drawerRef:ey,fadeFromIndex:f,overlayRef:es,onSnapPointChange:ek,direction:A,container:K,snapToSequentialPoint:B});!function(e={}){let{isDisabled:r}=e;D(()=>{if(!r){var e,n,i;let r,o,a,s,l,u,c;return 1==++T&&C()&&(a=0,s=window.pageXOffset,l=window.pageYOffset,u=S((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),c=S(P(document,"touchstart",e=>{((o=L(e.target))!==document.documentElement||o!==document.body)&&(a=e.changedTouches[0].pageY)},{passive:!1,capture:!0}),P(document,"touchmove",e=>{if(!o||o===document.documentElement||o===document.body)return void e.preventDefault();let t=e.changedTouches[0].pageY,r=o.scrollTop,n=o.scrollHeight-o.clientHeight;0!==n&&((r<=0&&t>a||r>=n&&t<a)&&e.preventDefault(),a=t)},{passive:!1,capture:!0}),P(document,"touchend",e=>{let t=e.target;N(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame(()=>{t.style.transform=""}))},{passive:!1,capture:!0}),P(document,"focus",e=>{let t=e.target;N(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",j&&(j.height<window.innerHeight?requestAnimationFrame(()=>{M(t)}):j.addEventListener("resize",()=>M(t),{once:!0}))}))},!0),P(window,"scroll",()=>{window.scrollTo(0,0)})),t=()=>{u(),c(),window.scrollTo(s,l)}),()=>{0==--T&&(null==t||t())}}},[r])}({isDisabled:!J||en||!y||eo||!et||!W||!R});let{restorePositionSetting:eF}=function({isOpen:e,modal:t,nested:r,hasBeenOpened:i,preventScrollRestoration:o,noBodyStyles:a}){let[s,l]=n.default.useState(()=>"undefined"!=typeof window?window.location.href:""),u=n.default.useRef(0),c=n.default.useCallback(()=>{if(_()&&null===Z&&e&&!a){Z={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]),d=n.default.useCallback(()=>{if(_()&&null!==Z&&!a){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Z),window.requestAnimationFrame(()=>{o&&s!==window.location.href?l(window.location.href):window.scrollTo(t,e)}),Z=null}},[s]);return n.default.useEffect(()=>{function e(){u.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),n.default.useEffect(()=>{if(t)return()=>{"undefined"==typeof document||document.querySelector("[data-vaul-drawer]")||d()}},[t,d]),n.default.useEffect(()=>{!r&&i&&(e?(window.matchMedia("(display-mode: standalone)").matches||c(),t||window.setTimeout(()=>{d()},500)):d())},[e,i,s,t,r,c,d]),{restorePositionSetting:d}}({isOpen:J,modal:y,nested:null!=k&&k,hasBeenOpened:et,preventScrollRestoration:U,noBodyStyles:E});function eT(){return(window.innerWidth-26)/window.innerWidth}function eP(e,t){var r;let n=e,i=null==(r=window.getSelection())?void 0:r.toString(),o=ey.current?$(ey.current,A):null,a=new Date;if("SELECT"===n.tagName||n.hasAttribute("data-vaul-no-drag")||n.closest("[data-vaul-no-drag]"))return!1;if("right"===A||"left"===A)return!0;
880if(el.current&&a.getTime()-el.current.getTime()<500)return!1;if(null!==o&&("bottom"===A?o>0:o<0))return!0;if(i&&i.length>0)return!1;if(ed.current&&a.getTime()-ed.current.getTime()<d&&0===o||t)return ed.current=a,!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&&ey.current&&(ey.current.classList.remove(H),ep.current=!1,ei(!1),ec.current=new Date),null==b||b(),e||ee(!1),setTimeout(()=>{s&&eE(s[0])},500)}function eN(){if(!ey.current)return;let e=document.querySelector("[data-vaul-drawer-wrapper]"),t=$(ey.current,A);I(ey.current,{transform:"translate3d(0, 0, 0)",transition:`transform 0.5s cubic-bezier(${q.join(",")})`}),I(es.current,{transition:`opacity 0.5s cubic-bezier(${q.join(",")})`,opacity:"1"}),l&&t&&t>0&&J&&I(e,{borderRadius:"8px",overflow:"hidden",...z(A)?{transform:`scale(${eT()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${eT()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:"0.5s",transitionTimingFunction:`cubic-bezier(${q.join(",")})`},!0)}return n.default.useEffect(()=>{window.requestAnimationFrame(()=>{eg.current=!0})},[]),n.default.useEffect(()=>{var e;function t(){if(ey.current&&W&&(N(document.activeElement)||em.current)){var e;let t=(null==(e=window.visualViewport)?void 0:e.height)||0,r=window.innerHeight,n=r-t,i=ey.current.getBoundingClientRect().height||0;ew.current||(ew.current=i);let o=ey.current.getBoundingClientRect().top;if(Math.abs(ev.current-n)>60&&(em.current=!em.current),s&&s.length>0&&eS&&eC&&(n+=eS[eC]||0),ev.current=n,i>t||em.current){let e=ey.current.getBoundingClientRect().height,a=e;e>t&&(a=t-(i>.8*r?o:26)),v?ey.current.style.height=`${e-Math.max(n,0)}px`:ey.current.style.height=`${Math.max(a,t-o)}px`}else{let e;e=navigator.userAgent,"undefined"!=typeof window&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))||(ey.current.style.height=`${ew.current}px`)}s&&s.length>0&&!em.current?ey.current.style.bottom="0px":ey.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,s,eS]),n.default.useEffect(()=>(J&&(I(document.documentElement,{scrollBehavior:"auto"}),el.current=new Date),()=>{!function(e,t){if(!e||!(e instanceof HTMLElement))return;let r=O.get(e);r&&(e.style[t]=r[t])}(document.documentElement,"scrollBehavior")}),[J]),n.default.useEffect(()=>{y||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[y]),n.default.createElement(x.Root,{defaultOpen:F,onOpenChange:e=>{(p||e)&&(e?er(!0):eM(!0),ee(e))},open:J},n.default.createElement(w.Provider,{value:{activeSnapPoint:e_,snapPoints:s,setActiveSnapPoint:eE,drawerRef:ey,overlayRef:es,onOpenChange:r,onPress:function(e){var t,r;!p&&!s||(!ey.current||ey.current.contains(e.target))&&(eb.current=(null==(t=ey.current)?void 0:t.getBoundingClientRect().height)||0,ex.current=(null==(r=ey.current)?void 0:r.getBoundingClientRect().width)||0,ei(!0),eu.current=new Date,C()&&window.addEventListener("touchend",()=>ep.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),ef.current=z(A)?e.pageY:e.pageX)},onRelease:function(e){var t,r;if(!en||!ey.current)return;ey.current.classList.remove(H),ep.current=!1,ei(!1),ec.current=new Date;let n=$(ey.current,A);
880if(!e||!eP(e.target,!1)||!n||Number.isNaN(n)||null===eu.current)return;let i=ec.current.getTime()-eu.current.getTime(),o=ef.current-(z(A)?e.pageY:e.pageX),l=Math.abs(o)/i;if(l>.05&&(ea(!0),setTimeout(()=>{ea(!1)},200)),s){eD({draggedDistance:o*("bottom"===A||"right"===A?1:-1),closeDrawer:eM,velocity:l,dismissible:p}),null==a||a(e,!0);return}if("bottom"===A||"right"===A?o>0:o<0){eN(),null==a||a(e,!0);return}if(l>.4){eM(),null==a||a(e,!1);return}let u=Math.min(null!=(t=ey.current.getBoundingClientRect().height)?t:0,window.innerHeight),d=Math.min(null!=(r=ey.current.getBoundingClientRect().width)?r:0,window.innerWidth);if(Math.abs(n)>=("left"===A||"right"===A?d:u)*c){eM(),null==a||a(e,!1);return}null==a||a(e,!0),eN()},onDrag:function(e){if(ey.current&&en){let t="bottom"===A||"right"===A?1:-1,r=(ef.current-(z(A)?e.pageY:e.pageX))*t,n=r>0,i=s&&!p&&!n;if(i&&0===eC)return;let a=Math.abs(r),u=document.querySelector("[data-vaul-drawer-wrapper]"),c=a/("bottom"===A||"top"===A?eb.current:ex.current),d=eL(a,n);if(null!==d&&(c=d),i&&c>=1||!ep.current&&!eP(e.target,n))return;if(ey.current.classList.add(H),ep.current=!0,I(ey.current,{transition:"none"}),I(es.current,{transition:"none"}),s&&ej({draggedDistance:r}),n&&!s){let e=Math.min(-(8*(Math.log(r+1)-2)*1),0)*t;I(ey.current,{transform:z(A)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`});return}let h=1-c;if((eA||f&&eC===f-1)&&(null==o||o(e,c),I(es.current,{opacity:`${h}`,transition:"none"},!0)),u&&es.current&&l){let e=Math.min(eT()+c*(1-eT()),1),t=8-8*c,r=Math.max(0,14-14*c);I(u,{borderRadius:`${t}px`,transform:z(A)?`scale(${e}) translate3d(0, ${r}px, 0)`:`scale(${e}) translate3d(${r}px, 0, 0)`,transition:"none"},!0)}if(!s){let e=a*t;I(ey.current,{transform:z(A)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:p,shouldAnimate:eg,handleOnly:h,isOpen:J,isDragging:en,shouldFade:eA,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;I(ey.current,{transform:z(A)?`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),I(ey.current,{transition:`transform 0.5s cubic-bezier(${q.join(",")})`,transform:z(A)?`scale(${t}) translate3d(0, ${r}px, 0)`:`scale(${t}) translate3d(${r}px, 0, 0)`}),!e&&ey.current&&(eh.current=setTimeout(()=>{let e=$(ey.current,A);I(ey.current,{transition:"none",transform:z(A)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))},onNestedRelease:function(e,t){let r=z(A)?window.innerHeight:window.innerWidth,n=t?(r-16)/r:1,i=t?-16:0;t&&I(ey.current,{transition:`transform 0.5s cubic-bezier(${q.join(",")})`,transform:z(A)?`scale(${n}) translate3d(0, ${i}px, 0)`:`scale(${n}) translate3d(${i}px, 0, 0)`})},keyboardIsOpen:em,modal:y,snapPointsOffset:eS,activeSnapPointIndex:eC,direction:A,shouldScaleBackground:l,setBackgroundColorOnScale:u,noBodyStyles:E,container:K,autoFocus:X}},i))}let K=n.default.forwardRef(function({...e},t){let{overlayRef:r,snapPoints:i,onRelease:o,shouldFade:a,isOpen:s,modal:l,shouldAnimate:u}=k(),c=R(t,r),d=i&&i.length>0;if(!l)return null;let p=n.default.useCallback(e=>o(e),[o]);return n.default.createElement(x.Overlay,{onMouseUp:p,ref:c,"data-vaul-overlay":"","data-vaul-snap-points":s&&d?"true":"false","data-vaul-snap-points-overlay":s&&a?"true":"false","data-vaul-animate":(null==u?void 0:u.current)?"true":"false",...e})});K.displayName="Drawer.Overlay";let X=n.default.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:r,...i},o){let{drawerRef:a,onPress:s,onRelease:l,onDrag:u,keyboardIsOpen:c,snapPointsOffset:d,activeSnapPointIndex:p,modal:h,isOpen:f,direction:m,snapPoints:g,container:v,handleOnly:y,shouldAnimate:b,autoFocus:w}=k(),[_,C]=n.default.useState(!1),E=R(o,a),D=n.default.useRef(null),S=n.default.useRef(null),j=n.default.useRef(!1),A=g&&g.length>0;function L(e){D.current=null,j.current=!1,l(e)}
880return!function(){let{direction:e,isOpen:t,shouldScaleBackground:r,setBackgroundColorOnScale:i,noBodyStyles:o}=k(),a=n.default.useRef(null),s=(0,n.useMemo)(()=>document.body.style.backgroundColor,[]);function l(){return(window.innerWidth-26)/window.innerWidth}n.default.useEffect(()=>{if(t&&r){a.current&&clearTimeout(a.current);let t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;!function(...e){}(i&&!o?B(document.body,{background:"black"}):W,B(t,{transformOrigin:z(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:"0.5s",transitionTimingFunction:`cubic-bezier(${q.join(",")})`}));let r=B(t,{borderRadius:"8px",overflow:"hidden",...z(e)?{transform:`scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{r(),a.current=window.setTimeout(()=>{s?document.body.style.background=s:document.body.style.removeProperty("background")},500)}}},[t,r,s])}(),n.default.useEffect(()=>{A&&window.requestAnimationFrame(()=>{C(!0)})},[]),n.default.createElement(x.Content,{"data-vaul-drawer-direction":m,"data-vaul-drawer":"","data-vaul-delayed-snap-points":_?"true":"false","data-vaul-snap-points":f&&A?"true":"false","data-vaul-custom-container":v?"true":"false","data-vaul-animate":(null==b?void 0:b.current)?"true":"false",...i,ref:E,style:d&&d.length>0?{"--snap-point-height":`${d[null!=p?p:0]}px`,...t}:t,onPointerDown:e=>{y||(null==i.onPointerDown||i.onPointerDown.call(i,e),D.current={x:e.pageX,y:e.pageY},s(e))},onOpenAutoFocus:e=>{null==r||r(e),w||e.preventDefault()},onPointerDownOutside:t=>{(null==e||e(t),!h||t.defaultPrevented)?t.preventDefault():c.current&&(c.current=!1)},onFocusOutside:e=>{if(!h)return void e.preventDefault()},onPointerMove:e=>{if(S.current=e,y||(null==i.onPointerMove||i.onPointerMove.call(i,e),!D.current))return;let t=e.pageY-D.current.y,r=e.pageX-D.current.x,n="touch"===e.pointerType?10:2;((e,t,r=0)=>{if(j.current)return!0;let n=Math.abs(e.y),i=Math.abs(e.x),o=i>n,a=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*a<0)&&i>=0&&i<=r)return o}else if(!(e.y*a<0)&&n>=0&&n<=r)return!o;return j.current=!0,!0})({x:r,y:t},m,n)?u(e):(Math.abs(r)>n||Math.abs(t)>n)&&(D.current=null)},onPointerUp:e=>{null==i.onPointerUp||i.onPointerUp.call(i,e),D.current=null,j.current=!1,l(e)},onPointerOut:e=>{null==i.onPointerOut||i.onPointerOut.call(i,e),L(S.current)},onContextMenu:e=>{null==i.onContextMenu||i.onContextMenu.call(i,e),S.current&&L(S.current)}})});X.displayName="Drawer.Content";let Y=n.default.forwardRef(function({preventCycle:e=!1,children:t,...r},i){let{closeDrawer:o,isDragging:a,snapPoints:s,activeSnapPoint:l,setActiveSnapPoint:u,dismissible:c,handleOnly:d,isOpen:p,onPress:h,onDrag:f}=k(),m=n.default.useRef(null),g=n.default.useRef(!1);function v(){m.current&&window.clearTimeout(m.current),g.current=!1}return n.default.createElement("div",{onClick:function(){g.current?v():window.setTimeout(()=>{!function(){if(a||e||g.current)return v();if(v(),!s||0===s.length){c||o();return}if(l===s[s.length-1]&&c)return o();let t=s.findIndex(e=>e===l);-1===t||u(s[t+1])}()},120)},onPointerCancel:v,onPointerDown:e=>{d&&h(e),m.current=window.setTimeout(()=>{g.current=!0},250)},onPointerMove:e=>{d&&f(e)},ref:i,"data-vaul-drawer-visible":p?"true":"false","data-vaul-handle":"","aria-hidden":"true",...r},n.default.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});Y.displayName="Drawer.Handle";let Q={Root:G,NestedRoot:function({onDrag:e,onOpenChange:t,open:r,...i}){let{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:s}=k();if(!o)throw Error("Drawer.NestedRoot must be placed in another drawer");return n.default.createElement(G,{nested:!0,open:r,onClose:()=>{a(!1)},onDrag:(t,r)=>{o(t,r),null==e||e(t,r)},onOpenChange:e=>{e&&a(e),null==t||t(e)},onRelease:s,...i})},Content:X,Overlay:K,Trigger:x.Trigger,Portal:function(e){let t=k(),{container:r=t.container,...i}=e;return n.default.createElement(x.Portal,{container:r,...i})},Handle:Y,Close:x.Close,Title:x.Title,Description:x.Description};function J(e){let t,n,i=(0,y.c)(4);return i[0]!==e?({...t}=e,i[0]=e,i[1]=t):t=i[1],i[2]!==t?(n=(0,r.jsx)(Q.Root,{"data-slot":"drawer",...t}),i[2]=t,i[3]=n):n=i[3],n}function ee(e){let t,n,i=(0,y.c)(4);return i[0]!==e?({...t}=e,i[0]=e,i[1]=t):t=i[1],i[2]!==t?(n=(0,r.jsx)(Q.Portal,{"data-slot":"drawer-portal",...t}),i[2]=t,i[3]=n):n=i[3],n}function et(e){let t,n,i=(0,y.c)(4);return i[0]!==e?({...t}=e,i[0]=e,i[1]=t):t=i[1],i[2]!==t?(n=(0,r.jsx)(Q.Close,{"data-slot":"drawer-close",...t}),i[2]=t,i[3]=n):n=i[3],n}function er(e){let t,n,i,o,a=(0,y.c)(8);return a[0]!==e?({className:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=(0,g.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),a[3]=t,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(o=(0,r.jsx)(Q.Overlay,{"data-slot":"drawer-overlay",className:i,...n}),a[5]=n,a[6]=i,a[7]=o):o=a[7],o}function en(e){let t,n,i,o,a,s,l,u=(0,y.c)(12);return u[0]!==e?({className:n,children:t,...i}=e,u[0]=e,u[1]=t,u[2]=n,u[3]=i):(t=u[1],n=u[2],i=u[3]),u[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)(er,{}),u[4]=o):o=u[4],u[5]!==n?(a=(0,g.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",n),u[5]=n,u[6]=a):a=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(s=(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]=s):s=u[7],u[8]!==t||u[9]!==i||u[10]!==a?(l=(0,r.jsxs)(ee,{"data-slot":"drawer-portal",children:[o,(0,r.jsxs)(Q.Content,{"data-slot":"drawer-content",className:a,...i,children:[s,t]})]}),u[8]=t,u[9]=i,u[10]=a,u[11]=l):l=u[11],l}function ei(e){let t,n,i,o,a=(0,y.c)(8);return a[0]!==e?({className:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=(0,g.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),a[3]=t,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(o=(0,r.jsx)("div",{"data-slot":"drawer-header",className:i,...n}),a[5]=n,a[6]=i,a[7]=o):o=a[7],o}function eo(e){let t,n,i,o,a=(0,y.c)(8);return a[0]!==e?({className:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=(0,g.cn)("mt-auto flex flex-col gap-2 p-4",t),a[3]=t,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(o=(0,r.jsx)("div",{"data-slot":"drawer-footer",className:i,...n}),a[5]=n,a[6]=i,a[7]=o):o=a[7],o}function ea(e){let t,n,i,o,a=(0,y.c)(8);return a[0]!==e?({className:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=(0,g.cn)("text-foreground font-semibold",t),a[3]=t,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(o=(0,r.jsx)(Q.Title,{"data-slot":"drawer-title",className:i,...n}),a[5]=n,a[6]=i,a[7]=o):o=a[7],o}function es(e){let t,n,i,o,a=(0,y.c)(8);return a[0]!==e?({className:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=(0,g.cn)("text-muted-foreground text-sm",t),a[3]=t,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(o=(0,r.jsx)(Q.Description,{"data-slot":"drawer-description",className:i,...n}),a[5]=n,a[6]=i,a[7]=o):o=a[7],o}
880function el(e){let t,r,i=(0,y.c)(3),[o,a]=(0,n.useState)(!1);return i[0]!==e?(t=()=>{let t=window.matchMedia(e);a(t.matches);let r=e=>{a(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,n.useEffect)(t,r),o}e.s(["Drawer",()=>J,"DrawerClose",()=>et,"DrawerContent",()=>en,"DrawerDescription",()=>es,"DrawerFooter",()=>eo,"DrawerHeader",()=>ei,"DrawerTitle",()=>ea],422812),e.s(["useMediaQuery",()=>el],581682);var eu=e.i(623099),ec=e.i(779342),ed=e.i(851239),ep=e.i(118621),eh=e.i(273792),ef=e.i(838608);function em({callbackUrl:e="/",className:t,onSwitchToSignUp:i}){let o=(0,u.useTranslations)("common.sign"),s=(0,d.useRouter)(),l=(0,eu.useLocale)(),[p,f]=(0,n.useState)(""),[g,v]=(0,n.useState)(""),[y,b]=(0,n.useState)(!1),{configs:x,setIsShowSignModal:w,setUser:k,fetchUserInfo:_}=(0,m.useAppContext)(),C="true"===x.google_auth_enabled,E="true"===x.github_auth_enabled,D="false"!==x.email_auth_enabled||!C&&!E;e&&l!==ed.defaultLocale&&e.startsWith("/")&&!e.startsWith(`/${l}`)&&(e=`/${l}${e}`);let S=l!==ed.defaultLocale?`/${l}`:"",j=async()=>{if(!y){if(!p||!g)return void ec.toast.error("email and password are required");b(!0);try{await c.signIn.email({email:p,password:g,callbackURL:e},{onRequest:e=>{},onResponse:e=>{},onSuccess:async()=>{try{let e=await c.authClient.getSession(),t=e?.data?.user??e?.user??null;t&&(k(t),_())}catch{}w(!1),b(!1),s.refresh()},onError:t=>{let r=t?.error?.status;if(403===r){var n;let t=(n=e,n?.startsWith("/")?l===ed.defaultLocale?n:n===`/${l}`?"/":n.startsWith(`/${l}/`)?n.slice(l.length+1)||"/":n:"/"),r=`/verify-email?sent=1&email=${encodeURIComponent(p)}&callbackUrl=${encodeURIComponent(t)}`;c.authClient.sendVerificationEmail({email:p,callbackURL:`${S}${r}`}),s.push(r);return}ec.toast.error(t?.error?.message||"sign in failed"),b(!1)}})}catch(e){ec.toast.error(e?.message||"sign in failed"),b(!1)}}};return(0,r.jsxs)("div",{className:`w-full md:max-w-md ${t}`,children:[(0,r.jsxs)("div",{className:"grid gap-4",children:[D&&(0,r.jsxs)("form",{className:"grid gap-4",onSubmit:e=>{e.preventDefault(),j()},children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)(eh.Label,{htmlFor:"email",children:o("email_title")}),(0,r.jsx)(ep.Input,{id:"email",type:"email",placeholder:o("email_placeholder"),required:!0,onChange:e=>{f(e.target.value)},value:p})]}),(0,r.jsx)("div",{className:"grid gap-2",children:(0,r.jsx)(ep.Input,{id:"password",type:"password",placeholder:o("password_placeholder"),autoComplete:"password",value:g,onChange:e=>v(e.target.value),required:!0})}),(0,r.jsx)(h.Button,{type:"submit",className:"w-full",disabled:y,children:y?(0,r.jsx)(a.Loader2,{size:16,className:"animate-spin"}):(0,r.jsxs)("p",{children:[" ",o("sign_in_title")," "]})})]}),(0,r.jsx)(ef.SocialProviders,{configs:x,callbackUrl:e||"/",loading:y,setLoading:b})]}),D&&(0,r.jsx)("div",{className:"flex w-full justify-center border-t py-4",children:(0,r.jsxs)("p",{className:"text-center text-xs text-neutral-500",children:[o("no_account"),i?(0,r.jsx)("span",{className:"cursor-pointer underline dark:text-white/70",onClick:i,children:o("sign_up_title")}):(0,r.jsx)(d.Link,{href:"/sign-up",className:"underline",children:(0,r.jsx)("span",{className:"cursor-pointer dark:text-white/70",children:o("sign_up_title")})})]})})]})}var eg=e.i(79864);function ev({callbackUrl:e="/",className:t,onSwitchToSignIn:i}){let o=(0,u.useTranslations)("common.sign"),s=(0,eg.useRouter)(),l=(0,eu.useLocale)(),[d,p]=(0,n.useState)(""),[f,g]=(0,n.useState)(""),[v,y]=(0,n.useState)(""),[b,x]=(0,n.useState)(!1),{configs:w,setIsShowSignModal:k,setUser:_,fetchUserInfo:C}=(0,m.useAppContext)(),E="true"===w.google_auth_enabled,D="true"===w.github_auth_enabled,S="false"!==w.email_auth_enabled||!E&&!D,j="true"===w.email_verification_enabled;e&&l!==ed.defaultLocale&&e.startsWith("/")&&!e.startsWith(`/${l}`)&&(e=`/${l}${e}`);let A=l!==ed.defaultLocale?`/${l}`:"",L=async()=>{if(!b){if(!f||!v||!d)return void ec.toast.error("email, password and name are required");x(!0);try{await c.signUp.email({email:f,password:v,name:d},{onRequest:()=>{},onResponse:()=>{},onSuccess:async()=>
880{if((({userEmail:e,stripeCustomerId:t})=>{if(!w)return;let r=window;"true"===w.affonso_enabled&&r.Affonso&&r.Affonso.signup(e),"true"===w.promotekit_enabled&&r.promotekit&&r.promotekit.refer(e,t)})({userEmail:f}),j){var t;let r=(t=e,t?.startsWith("/")?l===ed.defaultLocale?t:t===`/${l}`?"/":t.startsWith(`/${l}/`)?t.slice(l.length+1)||"/":t:"/"),n=`/verify-email?sent=1&email=${encodeURIComponent(f)}&callbackUrl=${encodeURIComponent(r)}`;c.authClient.sendVerificationEmail({email:f,callbackURL:`${A}${r||"/"}`}),k(!1),s.push(`${A}${n}`);return}try{let e=await c.authClient.getSession(),t=e?.data?.user??e?.user??null;t&&(_(t),C())}catch{}k(!1),x(!1),s.refresh()},onError:e=>{ec.toast.error(e?.error?.message||"sign up failed"),x(!1)}})}catch(e){ec.toast.error(e?.message||"sign up failed"),x(!1)}}};return(0,r.jsxs)("div",{className:`w-full md:max-w-md ${t}`,children:[(0,r.jsxs)("div",{className:"grid gap-4",children:[S&&(0,r.jsxs)("form",{className:"grid gap-4",onSubmit:e=>{e.preventDefault(),L()},children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)(eh.Label,{htmlFor:"signup-name",children:o("name_title")}),(0,r.jsx)(ep.Input,{id:"signup-name",type:"text",placeholder:o("name_placeholder"),required:!0,onChange:e=>{p(e.target.value)},value:d})]}),(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)(eh.Label,{htmlFor:"signup-email",children:o("email_title")}),(0,r.jsx)(ep.Input,{id:"signup-email",type:"email",placeholder:o("email_placeholder"),required:!0,onChange:e=>{g(e.target.value)},value:f}),j&&(0,r.jsx)("p",{className:"text-amber-600 text-xs",children:o("email_verification_hint")})]}),(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)(eh.Label,{htmlFor:"signup-password",children:o("password_title")}),(0,r.jsx)(ep.Input,{id:"signup-password",type:"password",placeholder:o("password_placeholder"),autoComplete:"password",value:v,onChange:e=>y(e.target.value)})]}),(0,r.jsx)(h.Button,{type:"submit",className:"w-full",disabled:b,children:b?(0,r.jsx)(a.Loader2,{size:16,className:"animate-spin"}):(0,r.jsx)("p",{children:o("sign_up_title")})})]}),(0,r.jsx)(ef.SocialProviders,{configs:w,callbackUrl:e||"/",loading:b,setLoading:x})]}),S&&(0,r.jsx)("div",{className:"flex w-full justify-center border-t py-4",children:(0,r.jsxs)("p",{className:"text-center text-xs text-neutral-500",children:[o("already_have_account"),(0,r.jsx)("span",{className:"cursor-pointer underline dark:text-white/70",onClick:i,children:o("sign_in_title")})]})})]})}function ey(e){let t,i,o,a,s,l,c,d,p,f,g,v,x=(0,y.c)(47),{callbackUrl:w}=e,k=void 0===w?"/":w,_=(0,u.useTranslations)("common.sign"),{isShowSignModal:C,setIsShowSignModal:E}=(0,m.useAppContext)(),[D,S]=(0,n.useState)("sign-in"),j=el("(min-width: 768px)");x[0]!==E?(t=e=>{E(e),e||S("sign-in")},x[0]=E,x[1]=t):t=x[1];let A=t;x[2]!==D||x[3]!==_?(i=_("sign-in"===D?"sign_in_title":"sign_up_title"),x[2]=D,x[3]=_,x[4]=i):i=x[4];let L=i;x[5]!==D||x[6]!==_?(o=_("sign-in"===D?"sign_in_description":"sign_up_description"),x[5]=D,x[6]=_,x[7]=o):o=x[7];let F=o;x[8]!==k||x[9]!==D?(a="sign-in"===D?(0,r.jsx)(em,{callbackUrl:k,onSwitchToSignUp:()=>S("sign-up")}):(0,r.jsx)(ev,{callbackUrl:k,onSwitchToSignIn:()=>S("sign-in")}),x[8]=k,x[9]=D,x[10]=a):a=x[10];let T=a;if(j){let e,t,n,i,o;return x[11]!==L?(e=(0,r.jsx)(b.DialogTitle,{children:L}),x[11]=L,x[12]=e):e=x[12],x[13]!==F?(t=(0,r.jsx)(b.DialogDescription,{children:F}),x[13]=F,x[14]=t):t=x[14],x[15]!==e||x[16]!==t?(n=(0,r.jsxs)(b.DialogHeader,{children:[e,t]}),x[15]=e,x[16]=t,x[17]=n):n=x[17],x[18]!==T||x[19]!==n?(i=(0,r.jsxs)(b.DialogContent,{className:"sm:max-w-[425px]",children:[n,T]}),x[18]=T,x[19]=n,x[20]=i):i=x[20],x[21]!==A||x[22]!==C||x[23]!==i?(o=(0,r.jsx)(b.Dialog,{open:C,onOpenChange:A,children:i}),x[21]=A,x[22]=C,x[23]=i,x[24]=o):o=x[24],o}return x[25]!==L?(s=(0,r.jsx)(ea,{children:L}),x[25]=L,x[26]=s):s=x[26],x[27]!==F?(l=(0,r.jsx)(es,{children:F}),x[27]=F,x[28]=l):l=x[28],x[29]!==s||x[30]!==l?(c=(0,r.jsxs)(ei,{className:"text-left",children:[s,l]}),x[29]=s,x[30]=l,x[31]=c):c=x[31],x[32]!==k||x[33]!==D?(d="sign-in"===D?(0,r.jsx)(em,{callbackUrl:k,className:"mt-8 px-4",onSwitchToSignUp:()=>S("sign-up")}):(0,r.jsx)(ev,{callbackUrl:k,className:"mt-8 px-4",onSwitchToSignIn:()=>S("sign-in")}),x[32]=k,x[33]=D,x[34]=d):d=x[34],x[35]!==_?(p=_("cancel_title"),x[35]=_,x[36]=p):p=x[36],x[37]!==p?(f=(0,r.jsx)(eo,{className:"pt-4",children:(0,r.jsx)(et,{asChild:!0,children:(0,r.jsx)(h.Button,{variant:"outline",children:p})})}),x[37]=p,x[38]=f):f=x[38],x[39]!==f||x[40]!==c||x[41]!==d?(g=(0,r.jsxs)(en,{children:[c,d,f]}),x[39]=f,x[40]=c,x[41]=d,x[42]=g):g=x[42],x[43]!==A||x[44]!==C||x[45]!==g?(v=(0,r.jsx)(J,{open:C,onOpenChange:A,children:g}),x[43]=A,x[44]=C,x[45]=g,x[46]=v):v=x[46],v}function eb(e){let t=e?.user??e?.data?.user??null;return t&&"object"==typeof t?t:null}function ex({isScrolled:e,signButtonSize:t="sm",userNav:y}){let b=(0,u.useTranslations)("common.sign"),x=(0,d.useRouter)(),[w,k]=(0,n.use
880State)(!1);(0,n.useEffect)(()=>{k(!0)},[]);let{configs:_,fetchConfigs:C,setIsShowSignModal:E,isCheckSign:D,setIsCheckSign:S,user:j,setUser:A,fetchUserInfo:L,showOneTap:F}=(0,m.useAppContext)(),{data:T,isPending:P}=(0,c.useSession)(),M=eb(T),N=j??M,R=(0,n.useRef)(!1),O=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{C()},[]),(0,n.useEffect)(()=>{S(P)},[P]),(0,n.useEffect)(()=>{!_||!_.google_client_id||"true"!==_.google_one_tap_enabled||T||P||O.current||(O.current=!0,F(_))},[_,T,P]),(0,n.useEffect)(()=>{let e=j?.id,t=M?.id;M&&t!==e?(A(M),L()):M||!e||P||A(null)},[M?.id,M?.email,j?.id,P]),(0,n.useEffect)(()=>{R.current||P||M||j||(R.current=!0,(async()=>{try{let e=await c.authClient.getSession(),t=eb(e?.data??e);t?.id&&(A(t),L())}catch{}})())},[P,M,j?.id]),(0,r.jsx)(r.Fragment,{children:D||!w?(0,r.jsx)("div",{children:(0,r.jsx)(a.Loader2,{className:"size-4 animate-spin"})}):N?(0,r.jsxs)(f.DropdownMenu,{children:[(0,r.jsx)(f.DropdownMenuTrigger,{asChild:!0,children:(0,r.jsx)(h.Button,{variant:"ghost",className:"relative h-10 w-10 rounded-full p-0",children:(0,r.jsxs)(p.Avatar,{children:[(0,r.jsx)(p.AvatarImage,{src:N.image||"",alt:N.name||""}),(0,r.jsx)(p.AvatarFallback,{children:N.name.charAt(0)})]})})}),(0,r.jsxs)(f.DropdownMenuContent,{children:[y?.show_name&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.DropdownMenuItem,{asChild:!0,children:(0,r.jsxs)(d.Link,{className:"w-full cursor-pointer",href:"/settings/profile",children:[(0,r.jsx)(l.User,{}),N.name]})}),(0,r.jsx)(f.DropdownMenuSeparator,{})]}),y?.show_credits&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.DropdownMenuItem,{asChild:!0,children:(0,r.jsxs)(d.Link,{className:"w-full cursor-pointer",href:"/settings/credits",children:[(0,r.jsx)(i.Coins,{}),b("credits_title",{credits:N.credits?.remainingCredits||0})]})}),(0,r.jsx)(f.DropdownMenuSeparator,{})]}),y?.items?.map((e,t)=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.DropdownMenuItem,{asChild:!0,children:(0,r.jsxs)(d.Link,{className:"w-full cursor-pointer",href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,r.jsx)(v.SmartIcon,{name:e.icon,className:"h-4 w-4"}),e.title]})}),(0,r.jsx)(f.DropdownMenuSeparator,{})]},t)),N.isAdmin&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.DropdownMenuItem,{asChild:!0,children:(0,r.jsxs)(d.Link,{className:"w-full cursor-pointer",href:"/admin",children:[(0,r.jsx)(o.LayoutDashboard,{}),b("admin_title")]})}),(0,r.jsx)(f.DropdownMenuSeparator,{})]}),y?.show_sign_out&&(0,r.jsxs)(f.DropdownMenuItem,{className:"w-full cursor-pointer",onClick:()=>(0,c.signOut)({fetchOptions:{onSuccess:()=>{x.push("/")}}}),children:[(0,r.jsx)(s.LogOut,{}),(0,r.jsx)("span",{children:b("sign_out_title")})]})]})]}):(0,r.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,r.jsx)(h.Button,{asChild:!0,size:t,className:(0,g.cn)("border-foreground
880/10 ml-4 cursor-pointer ring-0",e&&"lg:hidden"),onClick:()=>E(!0),children:(0,r.jsx)("span",{children:b("sign_in_title")})}),(0,r.jsx)(ey,{})]})})}e.s(["SignModal",()=>ey],34058),e.s(["SignUser",()=>ex],642616)},55871,283422,e=>{"use strict";var t=e.i(955313);e.s(["Pause",()=>t.default],55871);var r=e.i(386816);e.s(["Play",()=>r.default],283422)},599198,e=>{"use strict";var t=e.i(466471),r=e.i(536355),n=e.i(884702),i=e.i(55871),o=e.i(283422),a=e.i(526683);function s(e){let s,u,c,d,p,h,f,m,g,v,y,b,x,w,k,_=(0,r.c)(36),{src:C,title:E,className:D}=e,S=(0,n.useRef)(null),[j,A]=(0,n.useState)(!1),[L,F]=(0,n.useState)(0),[T,P]=(0,n.useState)(0);(0,n.useState)(1),(0,n.useState)(!1),_[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{let e=S.current;if(!e)return;let t=()=>F(e.currentTime),r=()=>P(e.duration),n=()=>A(!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)}},u=[],_[0]=s,_[1]=u):(s=_[0],u=_[1]),(0,n.useEffect)(s,u),_[2]!==j?(c=()=>{let e=S.current;e&&(j?e.pause():e.play(),A(!j))},_[2]=j,_[3]=c):c=_[3];let M=c;_[4]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{let t=S.current;if(!t)return;let r=parseFloat(e.target.value);t.currentTime=r,F(r)},_[4]=d):d=_[4];let N=d,R=l;_[5]!==D?(p=(0,a.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:S,src:C,preload:"metadata"}),_[7]=C,_[8]=h):h=_[8];let O=j?"Pause":"Play";_[9]!==j?(f=j?(0,t.jsx)(i.Pause,{className:"h-5 w-5"}):(0,t.jsx)(o.Play,{className:"ml-0.5 h-5 w-5"}),_[9]=j,_[10]=f):f=_[10],_[11]!==O||_[12]!==f||_[13]!==M?(m=(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":O,children:f}),_[11]=O,_[12]=f,_[13]=M,_[14]=m):m=_[14],_[15]!==E?(g=E&&(0,t.jsx)("div",{className:"truncate text-sm font-medium",children:E}),_[15]=E,_[16]=g):g=_[16];let I=R(L);_[17]!==I?(v=(0,t.jsx)("span",{className:"text-muted-foreground w-10 text-right text-xs",children:I}),_[17]=I,_[18]=v):v=_[18];let z=T||0;_[19]!==L||_[20]!==z?(y=(0,t.jsx)("input",{type:"range",min:0,max:z,value:L,onChange:N,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]=L,_[20]=z,_[21]=y):y=_[21];let $=R(T);return _[22]!==$?(b=(0,t.jsx)("span",{className:"text-muted-foreground w-10 text-xs",children:$}),_[22]=$,_[23]=b):b=_[23],_[24]!==v||_[25]!==y||_[26]!==b?(x=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[v,y,b]}),_[24]=v,_[25]=y,_[26]=b,_[27]=x):x=_[27],_[28]!==g||_[29]!==x?(w=(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[g,x]}),_[28]=g,_[29]=x,_[30]=w):w=_[30],_[31]!==w||_[32]!==p||_[33]!==h||_[34]!==m?(k=(0,t.jsxs)("div",{className:p,children:[h,m,w]}),_[31]=w,_[32]=p,_[33]=h,_[34]=m,_[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])},455463,e=>{"use strict";var t=e.i(466471),r=e.i(884702),n=e.i(103979),i=e.i(319609),o=e.i(551956),a=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){console.error("Uncaught error:",e,t)}render(){return(console.log("ErrorBoundary render",this.state),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:o.envConfigs.app_logo,alt:o.envConfigs.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)(a.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.