// GENERATED from dc-runtime/src/*.ts - do not edit. Rebuild with `bun build.ts` (see the package README for the source-only recipe).
"use strict";(()=>{var Rt=Object.defineProperty,Mt=(t,n,e)=>n in t?Rt(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,T=(t,n,e)=>Mt(t,typeof n!="symbol"?n+"":n,e);function L(){const t=window.React;if(!t)throw new Error("dc-runtime: window.React is not available yet");return t}function Tt(){const t=window.ReactDOM;if(!t)throw new Error("dc-runtime: window.ReactDOM is not available yet");return t}var A=((...t)=>L().createElement(...t));function Lt(t){const n=t.querySelector("x-dc");if(!n)return null;const e=t.querySelector("script[data-dc-script]"),{props:r,preview:o}=B(e?.getAttribute("data-props")??null);return{template:n.innerHTML,js:e&&e.textContent||"",props:r,preview:o}}function tt(t){const n=/]*)?>/.exec(t);if(!n)return null;const e=t.lastIndexOf("");if(e===-1||e .sc-host { height: auto; }
*, *::before, *::after {
print-color-adjust: exact; -webkit-print-color-adjust: exact;
backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
animation-delay: -99s !important; animation-duration: .001s !important;
animation-iteration-count: 1 !important; animation-fill-mode: both !important;
animation-play-state: running !important; transition-duration: 0s !important;
}
}
`,Ot="html,body{height:100%;margin:0}#dc-root,#dc-root>.sc-host{height:100%}";function jt(t,n){let e=n.pathname||"";if(!/\.dc\.html?$/i.test(It(e)))try{e=new URL(t.baseURI||"/").pathname}catch{}return Pt(e)}function It(t){try{return decodeURIComponent(t)}catch{return t}}function zt(t,n=document){const e=Lt(n);if(!e)return null;const r=L(),o=jt(n,location);t.markFetched(o),t.setRootName(o),t.adoptParsed(o,e),window.__resources||fetch(location.href).then(_=>_.ok?_.text():"").then(_=>{const u=_?tt(_):null;u?.template&&t.updateHtml(o,u.template)}).catch(()=>{});const s=n.querySelector("x-dc"),i=n.createElement("div");if(i.id="dc-root",s.replaceWith(i),!e.preview){const _=n.createElement("style");_.textContent=Ot,n.head.appendChild(_)}const l=t.getDC(o),c=t.registry.get(o);function a(){const[,_]=r.useState(0);r.useEffect(()=>{const d=()=>_(g=>g+1);return c.subs.add(d),()=>{c.subs.delete(d)}},[]);const u=r.useMemo(()=>{const d={};for(const g in c.propsMeta||{}){const m=c.propsMeta?.[g]?.default;m!==void 0&&(d[g]=m)}return d},[c.propsMeta]);return A(l,{...u,...c.propOverrides||{}})}const f=Tt();return f.createRoot?f.createRoot(i).render(A(a)):f.render(A(a),i),o}var et=/^[A-Za-z_$][A-Za-z0-9_$]*/,Ut=/^-?\d+(\.\d+)?$/;function D(t,n){const e=String(n).trim();if(!e)return;if(e[0]==="("&&e[e.length-1]===")"&&Gt(e))return D(t,e.slice(1,-1));const r=Ft(e);if(r){const o=D(t,e.slice(0,r.index)),s=D(t,e.slice(r.index+r.op.length));switch(r.op){case"===":return o===s;case"!==":return o!==s;case"==":return o==s;default:return o!=s}}if(e[0]==="!")return!D(t,e.slice(1));if(e==="true")return!0;if(e==="false")return!1;if(e==="null")return null;if(e!=="undefined")return Ut.test(e)?Number(e):e.length>=2&&(e[0]==='"'||e[0]==="'")&&e[e.length-1]===e[0]?e.slice(1,-1):Bt(t,e)}function Gt(t){let n=0;for(let e=0;e0&&(t[e-1]==="="||t[e-1]==="!")||!t.slice(0,e).trim())continue;const o=t[e+2]==="="?r+"==":r+"=";return{index:e,op:o}}}return null}function Bt(t,n){const e=n.match(et);if(!e)return;let r=t?.[e[0]],o=e[0].length;for(;o0;){if(n[i]==="[")s++;else if(n[i]==="]"&&(s--,s===0))break;i++}if(s!==0)return;const l=D(t,n.slice(o+1,i));r=r?.[l],o=i+1}else return;return r}var W="sc-camel-",Wt=new Set("a abbr b bdi bdo br cite code del dfn em i ins kbd mark q s samp small span strike strong sub sup u var wbr".split(" ")),nt={select:"sc-raw-select",table:"sc-raw-table",tbody:"sc-raw-tbody",thead:"sc-raw-thead",tfoot:"sc-raw-tfoot",tr:"sc-raw-tr",td:"sc-raw-td",th:"sc-raw-th",caption:"sc-raw-caption"},rt=Object.fromEntries(Object.entries(nt).map(([t,n])=>[n,t])),$t=new Set("allowFullScreen async autoFocus autoPlay checked controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden itemScope loop multiple muted noModule noValidate open playsInline readOnly required reversed scoped seamless selected".split(" ")),qt={onclick:"onClick",onchange:"onChange",oninput:"onInput",onsubmit:"onSubmit",onkeydown:"onKeyDown",onkeyup:"onKeyUp",onkeypress:"onKeyPress",onmousedown:"onMouseDown",onmouseup:"onMouseUp",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onfocus:"onFocus",onblur:"onBlur",ondoubleclick:"onDoubleClick",oncontextmenu:"onContextMenu",onmousemove:"onMouseMove",onmouseover:"onMouseOver",onmouseout:"onMouseOut",onpointerdown:"onPointerDown",onpointerup:"onPointerUp",onpointermove:"onPointerMove",onpointerenter:"onPointerEnter",onpointerleave:"onPointerLeave",onpointercancel:"onPointerCancel",onpointerover:"onPointerOver",onpointerout:"onPointerOut",ongotpointercapture:"onGotPointerCapture",onlostpointercapture:"onLostPointerCapture",ontouchstart:"onTouchStart",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchcancel:"onTouchCancel",ondragstart:"onDragStart",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragleave:"onDragLeave",ondragover:"onDragOver",onanimationstart:"onAnimationStart",onanimationend:"onAnimationEnd",onanimationiteration:"onAnimationIteration",ontransitionend:"onTransitionEnd"},Vt=`(?:[^>"']|"[^"]*"|'[^']*')*`,Ht=new RegExp("<(x-import|dc-import)("+Vt+")/>","gi"),ot=`(?:=\\s*"[^"]*"|=\\s*'[^']*'|=(?!\\s*["'])|[^>=])*`,Kt=new RegExp("(