@monospaced/set-core 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/logo/logo.d.ts +3 -1
- package/dist/components/logo/logo.d.ts.map +1 -1
- package/dist/components/logo/logos-animated.d.ts +6 -0
- package/dist/components/logo/logos-animated.d.ts.map +1 -0
- package/dist/core.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +571 -496
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ht=new Set(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"]);function ke(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function kt(e){return Object.entries(e).flatMap(([n,t])=>t===!1||t==null?[]:t===!0?[n]:[`${n}="${ke(String(t))}"`]).join(" ")}function h(e){if(e.kind==="text")return ke(e.value);if(e.kind==="raw")return e.html;const n=kt(e.attrs),t=n?`<${e.tag} ${n}>`:`<${e.tag}>`;if(ht.has(e.tag))return t;const i=e.children.map(h).join("");return`${t}${i}</${e.tag}>`}function M(e){return/^[A-Za-z][\w:-]*$/.test(e)}function g(e){if(e===void 0)return;const n=e.trim();if(n){if(!M(n))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");return n}}function D(e){return e==null?void 0:e.trim().replace(/\s+/g," ")||void 0}const me={adjustment:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21 5L10 5M10 5C10 6.10457 9.10457 7 8 7C6.89543 7 6 6.10457 6 5M10 5C10 3.89543 9.10457 3 8 3C6.89543 3 6 3.89543 6 5M6 5L3 5M21 19H10M10 19C10 20.1046 9.10457 21 8 21C6.89543 21 6 20.1046 6 19M10 19C10 17.8954 9.10457 17 8 17C6.89543 17 6 17.8954 6 19M3 12H14M14 12C14 13.1046 14.8954 14 16 14C17.1046 14 18 13.1046 18 12M14 12C14 10.8954 14.8954 10 16 10C17.1046 10 18 10.8954 18 12M6 19H3M18 12H21","stroke-linecap":"square"}}]}],"arrow-down":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 13.6L12 19.1L6.5 13.6M12 17.85V4.85","stroke-linecap":"square"}}]}],"arrow-left":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M11 6.5L5.5 12L11 17.5M6.75 12H19.75","stroke-linecap":"square"}}]}],"arrow-left-right-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M15.5 4L19 7.5L15.5 11M17.75 7.5H5.5M8.5 20L5 16.5L8.5 13M6.25 16.5H18.5","stroke-linecap":"square"}}]}],"arrow-right":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M13 17.5L18.5 12L13 6.5M17.25 12L4.25 12","stroke-linecap":"square"}}]}],"arrow-up":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 10.5L12 5L6.5 10.5M12 6.25V19.25","stroke-linecap":"square"}}]}],"arrow-up-down-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M7.5 6.25V18.5M13 15.5L16.5 19L20 15.5M16.5 17.75V5.50001M11 8.5L7.5 5L4 8.5","stroke-linecap":"square"}}]}],check:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5708 7.37842L10.3785 16.5708L5.42871 11.6211","stroke-linecap":"square"}}]}],"check-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M16.5 9L10.5 15L7.5 12","stroke-linecap":"square"}}]}],"chevron-down":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 9.5L12 15L6.5 9.5","stroke-linecap":"square"}}]}],"chevron-right":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9.5 17.5L15 12L9.5 6.5","stroke-linecap":"square"}}]}],circle:[{tag:"g",attrs:{},children:[{tag:"circle",attrs:{cx:"12",cy:"12",r:"10","stroke-linecap":"square"}}]}],"city-6":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M12 21V16M7 21H2V9H7V21ZM22 7V21H17V7H22Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M17 3H7V21H17V3Z","stroke-linecap":"square"}}]}],close:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16.9503 7.05029L12.0005 12M12.0005 12L7.05078 16.9498M12.0005 12L16.9503 16.9498M12.0005 12L7.05078 7.05029","stroke-linecap":"square"}}]}],copy:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M10 10H21V21H10V10Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M14 6.5V3L3 3L3 14H6.5","stroke-linecap":"square"}}]}],download:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16.5 10.5L12 15L7.5 10.5M12 13.75V4","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M20.5 15V20H3.5V15","stroke-linecap":"square"}}]}],enter:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M5.75 16H16C17.6569 16 19 14.6569 19 13L19 5M8 12.5L4.5 16L8 19.5","stroke-linecap":"square"}}]}],"error-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 7.5V13M12 16.5H12.0039V16.5039H12V16.5Z","stroke-linecap":"square"}}]}],"error-triangle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M12.0003 3L22.2194 20.7H1.78125L12.0003 3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 10.5V14M12 17.5H12.0039V17.5039H12V17.5Z","stroke-linecap":"square"}}]}],horizontal:[{tag:"g",attrs:{},children:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 11H21V21H3V11Z"}},{tag:"path",attrs:{d:"M3 3H21V7H3V3Z"}}]}]}],image:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 16V3H21V21H20M3 16V21H20M3 16L9 10L20 21"}},{tag:"circle",attrs:{cx:"15.75",cy:"8.25",r:"2"}}]}],"info-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 16.5L12 11M12 7.5L11.9961 7.5L11.9961 7.49609L12 7.49609L12 7.5Z","stroke-linecap":"square"}}]}],jump:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9 4L4 4L4 20L20 20L20 15","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M19.25 4.75L12 12M14 4H20L20 10","stroke-linecap":"square"}}]}],layers:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M4.5 6.125L12 3L19.5 6.125L12 9.25L4.5 6.125Z"}},{tag:"path",attrs:{d:"M3 11.5005L12 15.3771L21 11.5005M21 17.5005L12 21.3771L3 17.5005"}}]}],link:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M11.6762 6.99023L13.9998 4.6666C15.4726 3.19382 17.8604 3.19382 19.3332 4.6666C20.806 6.13938 20.806 8.52723 19.3332 10L17.0096 12.3236M6.98974 11.6766L4.66611 14.0003C3.19333 15.4731 3.19333 17.8609 4.66611 19.3337C6.13889 20.8065 8.52675 20.8065 9.99953 19.3337L12.3232 17.0101M13.9985 9.99989L9.99847 14","stroke-linecap":"square"}}]}],member:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16 20V19C16 16.7909 14.2091 15 12 15H5C2.79086 15 1 16.7909 1 19V20M12.5 7C12.5 9.20914 10.7091 11 8.5 11C6.29086 11 4.5 9.20914 4.5 7C4.5 4.79086 6.29086 3 8.5 3C10.7091 3 12.5 4.79086 12.5 7Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M15.5 11C17.7091 11 19.5 9.20914 19.5 7C19.5 4.79086 17.7091 3 15.5 3M23 20V19C23 16.7909 21.2091 15 19 15","stroke-linecap":"square"}}]}],moon:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M20.5387 14.8522C20.0408 14.9492 19.5263 15 19 15C14.5817 15 11 11.4183 11 7C11 5.54296 11.3194 4.17663 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C15.9737 21 19.3459 18.4248 20.5387 14.8522Z"}}]}],"panel-left":[{tag:"path",attrs:{d:"M3 3H21V21H3V3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M9 3V21","stroke-linecap":"square"}}],pantone:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3.35389 10.3333L20.8245 10.3333L19.0009 5L3.35389 10.3333ZM3.35389 10.3333L17.1433 5.63318L14.1465 1.43164L2.99942 10.3359M3.35389 10.3333L2.99942 10.3359M2.99942 10.3359H2.5"}},{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M6.28516 15.1641H6.28906V15.168H6.28516V15.1641Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M22 10.333V19.9997L2 19.9997L2 10.333L22 10.333Z","stroke-linecap":"square"}}]}]}],play:[{tag:"path",attrs:{fill:"currentColor",d:"M18.25 11.9998L8.5 17.6289L8.5 6.37061L18.25 11.9998Z"}}],rectangle:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 3H21V21H3z","stroke-linecap":"square"}}]}],refresh:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21.448 13C20.9483 17.7767 16.909 21.5 12 21.5C8.18227 21.5 4.89052 19.248 3.38065 16M2.5 20.5V15.5H5.5M2.55176 11C3.05145 6.22334 7.09079 2.5 11.9998 2.5C15.8175 2.5 19.1092 4.75197 20.6191 8M21.4998 3.5V8.5H18.4998","stroke-linecap":"square"}}]}],"robot-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5 21V19.5C19.5 17.2909 17.7091 15.5 15.5 15.5H8.5C6.29086 15.5 4.5 17.2909 4.5 19.5V21M12 4V2M10 12H14C16.2091 12 18 10.2091 18 8C18 5.79086 16.2091 4 14 4H10C7.79086 4 6 5.79086 6 8C6 10.2091 7.79086 12 10 12ZM10.25 8C10.25 8.13807 10.1381 8.25 10 8.25C9.86193 8.25 9.75 8.13807 9.75 8C9.75 7.86193 9.86193 7.75 10 7.75C10.1381 7.75 10.25 7.86193 10.25 8ZM14 8.25C13.8619 8.25 13.75 8.13807 13.75 8C13.75 7.86193 13.8619 7.75 14 7.75C14.1381 7.75 14.25 7.86193 14.25 8C14.25 8.13807 14.1381 8.25 14 8.25Z","stroke-linecap":"square"}}]}],search:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M15.8027 15.8037L21.106 21.107","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033Z","stroke-linecap":"square"}}]}],"setting-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9.40811 4.95996L10.0001 2H14.0001L14.5921 4.95996C15.4027 5.25851 16.1475 5.69306 16.7989 6.23595L19.6604 5.26796L21.6604 8.73206L19.3922 10.7254C19.4632 11.1396 19.5001 11.5655 19.5001 12C19.5001 12.4345 19.4632 12.8604 19.3922 13.2747L21.6604 15.268L19.6604 18.7321L16.7989 17.7641C16.1475 18.3069 15.4027 18.7415 14.5921 19.04L14.0001 22H10.0001L9.40811 19.04C8.5975 18.7415 7.85268 18.3069 7.20131 17.7641L4.33984 18.7321L2.33984 15.268L4.60798 13.2747C4.53705 12.8604 4.5001 12.4345 4.5001 12C4.5001 11.5655 4.53705 11.1396 4.60797 10.7254L2.33984 8.73206L4.33984 5.26796L7.20129 6.23595C7.85266 5.69306 8.59749 5.25851 9.40811 4.95996Z","fill-rule":"evenodd","stroke-linecap":"square","clip-rule":"evenodd"}},{tag:"path",attrs:{d:"M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z","stroke-linecap":"square"}}]}],"sticky-note":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M20 14H14V20M3 3H21V14L14 21H3V3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M7 9H17M7 13H10","stroke-linecap":"square"}}]}],sunny:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z"}},{tag:"path",attrs:{d:"M12 21V22M12 2V3M3 12H2M22 12H21M5.63603 18.3635L4.92892 19.0706M19.0711 4.92848L18.364 5.63559M5.63601 5.63563L4.9289 4.92852M19.071 19.0707L18.3639 18.3636","stroke-linecap":"square"}}]}],swap:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21 14.5H4L9 19.5M3 9.5L20 9.5L15 4.5","stroke-linecap":"square"}}]}],"user-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5 20V19C19.5 16.7909 17.7091 15 15.5 15H8.5C6.29086 15 4.5 16.7909 4.5 19V20M16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3C14.2091 3 16 4.79086 16 7Z","stroke-linecap":"square"}}]}],"view-list":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 5H21M3 12H21M3 19H21","stroke-linecap":"square"}}]}]},mt=Object.keys(me);function ge(e){return e.map(n=>({kind:"element",tag:n.tag,attrs:n.attrs,children:n.children?ge(n.children):[]}))}function A({ariaHidden:e=!0,id:n,mirrored:t,name:i,size:r="md",title:a}){const d=me[i];if(!d)throw new Error(`Unknown icon name: ${i}`);const o=g(n),l=a?.trim();if(!e&&!l)throw new Error("title must be non-empty when ariaHidden is false.");if(!e&&!o)throw new Error("id must be provided when ariaHidden is false.");const s=e?void 0:`${o}-title`,p=[];return e||p.push({kind:"element",tag:"title",attrs:{id:s},children:[{kind:"text",value:l}]}),p.push(...ge(d)),{kind:"element",tag:"svg",attrs:{"aria-hidden":e?"true":void 0,"aria-labelledby":s,class:"set-icon","data-mirrored":t,"data-size":r,fill:"none",height:"24",id:o,role:e?void 0:"img",stroke:"currentColor","stroke-width":"1.75",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},children:p}}function be(e){return h(A(e))}const gt={name:"icon",description:"Use `icon` to render a Set icon.",output:{element:"svg",class:"set-icon"},content:{kind:"none"},props:{ariaHidden:{default:!0,description:"Hides the icon from assistive technology. Decorative by default; set to false for a labelled icon (then `title` and `id` are required).",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`ariaHidden` is false",type:{kind:"string"}},mirrored:{description:"Mirrors the icon horizontally.",type:{kind:"enum",values:["always","rtl"]}},name:{description:"Set icon name.",required:!0,type:{kind:"iconName"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["2xs","xs","sm","md","lg","fill"]}},title:{description:"Accessible title announced by assistive technology.",requiredWhen:"`ariaHidden` is false",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"aria-hidden",condition:{kind:"when-truthy",prop:"ariaHidden"},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"data-mirrored",condition:{kind:"when-provided",prop:"mirrored"},value:{kind:"prop",prop:"mirrored"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"fill",condition:{kind:"always"},value:{kind:"literal",text:"none"}},{target:{on:"host"},attribute:"height",condition:{kind:"always"},value:{kind:"literal",text:"24"}},{target:{on:"host"},attribute:"role",condition:{kind:"not",of:{kind:"when-truthy",prop:"ariaHidden"}},value:{kind:"literal",text:"img"}},{target:{on:"host"},attribute:"stroke",condition:{kind:"always"},value:{kind:"literal",text:"currentColor"}},{target:{on:"host"},attribute:"stroke-width",condition:{kind:"always"},value:{kind:"literal",text:"1.75"}},{target:{on:"host"},attribute:"viewBox",condition:{kind:"always"},value:{kind:"literal",text:"0 0 24 24"}},{target:{on:"host"},attribute:"xmlns",condition:{kind:"always"},value:{kind:"literal",text:"http://www.w3.org/2000/svg"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function X(e){const{appearance:n="outline",controls:t,disabled:i,disclosure:r,form:a,haspopup:d,id:o,icon:l,iconMirrored:s,iconPlacement:p="start",label:c,labelVisibility:u="visible",name:m,size:b="md",tone:k="default",type:f,value:x}=e,S=l||void 0,v=!!S;if(u!=="visible"&&!v)throw new Error("labelVisibility requires icon when label is not visible.");const y=v&&S?{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[{kind:"raw",html:be({ariaHidden:!0,mirrored:s,name:S,size:"fill"})}]}:null,w={kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:c}]};return{kind:"element",tag:"button",attrs:{"aria-controls":r&&t||void 0,"aria-expanded":r?"false":void 0,"aria-haspopup":d||void 0,class:"set-button","data-appearance":n,"data-label-visibility":u==="visible"?void 0:u,"data-size":b,"data-tone":k==="neutral"?"neutral":void 0,disabled:!!i,form:a||void 0,id:o||void 0,name:m||void 0,type:f||"button",value:x||void 0},children:y?p==="end"?[w,y]:[y,w]:[w]}}function Q(e){return h(X(e))}const bt={name:"button",description:"Use `button` to let users trigger actions.",output:{element:"button",class:"set-button"},content:{kind:"text",prop:"label"},props:{appearance:{default:"outline",description:"Visual appearance.",type:{kind:"enum",values:["outline","solid","text"]}},controls:{description:"`id` of the element this button controls.",ignoredWhen:"`disclosure` is false",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},disclosure:{default:!1,description:"Marks the button as a disclosure toggle for another element.",type:{kind:"boolean"}},form:{description:"`id` of the form this button belongs to.",type:{kind:"string"}},haspopup:{description:"Signals that activating the button opens a popup of this type.",type:{kind:"enum",values:["menu"]}},icon:{description:"Icon shown alongside the label.",requiredWhen:"`labelVisibility` is hidden or hiddenBelowTablet",type:{kind:"iconName"}},iconMirrored:{description:"Mirrors the icon horizontally.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["always","rtl"]}},iconPlacement:{default:"start",description:"Where the icon sits relative to the label.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["start","end"]}},id:{description:"`id` for the button.",type:{kind:"string"}},label:{description:"Accessible label.",required:!0,type:{kind:"text"}},labelVisibility:{default:"visible",description:"How the label is shown. Hidden values require an icon.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}},name:{description:"Name submitted with the form.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},type:{default:"button",description:"Native button type.",type:{kind:"enum",values:["button","submit"]}},value:{description:"Value submitted with the form.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}},{target:{on:"host"},attribute:"data-appearance",condition:{kind:"always"},value:{kind:"prop",prop:"appearance"}},{target:{on:"host"},attribute:"data-label-visibility",condition:{kind:"when-in",prop:"labelVisibility",values:["hidden","hiddenBelowTablet"]},value:{kind:"prop",prop:"labelVisibility"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-expanded",condition:{kind:"when-truthy",prop:"disclosure"},value:{kind:"literal",text:"false"}},{target:{on:"host"},attribute:"aria-controls",condition:{kind:"all",of:[{kind:"when-truthy",prop:"disclosure"},{kind:"when-non-empty",prop:"controls"}]},value:{kind:"prop",prop:"controls"}},{target:{on:"host"},attribute:"aria-haspopup",condition:{kind:"when-provided",prop:"haspopup"},value:{kind:"prop",prop:"haspopup"}},{target:{on:"host"},attribute:"form",condition:{kind:"when-non-empty",prop:"form"},value:{kind:"prop",prop:"form"}},{target:{on:"host"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"host"},attribute:"type",condition:{kind:"always"},value:{kind:"prop",prop:"type"}},{target:{on:"host"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}}]}},P="set-alert",ie="set-alert-before-dismiss",ne="set-alert-dismiss",H="Dismiss alert";function vt(e,n){const t=n.createElement("div");return t.setAttribute("data-part","close"),t.innerHTML=Q({appearance:"text",icon:"close",label:e,labelVisibility:"hidden",size:"sm",tone:"neutral"}),t}function ft(e){switch(e){case"success":return"check-circle";case"warning":return"error-triangle";case"error":return"error-circle";case"info":return"info-circle";default:return"sticky-note"}}function yt(e){return e==="warning"||e==="error"?"alert":"status"}function ve({dismissible:e,dismissibleLabel:n=H,id:t,inlineSize:i="full",message:r,size:a="md",tone:d,title:o}){const l=g(t),s=n.trim()===""?H:n,p=[];return o&&p.push({kind:"element",tag:"p",attrs:{class:"title"},children:[{kind:"text",value:o}]}),p.push({kind:"element",tag:"p",attrs:{class:"message"},children:[{kind:"text",value:r}]}),{kind:"element",tag:P,attrs:{class:"set-alert","data-dismissible":e,"data-dismissible-label":e?s:void 0,"data-inline-size":i==="fit"?"fit":void 0,"data-size":a,"data-tone":d||void 0,id:l,role:yt(d)},children:[{kind:"element",tag:"div",attrs:{class:"icon-wrapper"},children:[A({ariaHidden:!0,name:ft(d),size:a})]},{kind:"element",tag:"div",attrs:{class:"content"},children:p}]}}function wt(e){return h(ve(e))}function fe(){if(customElements.get(P))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="close"]'))return;const r=new CustomEvent(ie,{bubbles:!0,cancelable:!0});this.dispatchEvent(r)&&(this.dispatchEvent(new CustomEvent(ne,{bubbles:!0})),this.remove())};connectedCallback(){this.removeEventListener("click",this.#e),this.hasAttribute("data-dismissible")&&(this.#t(),this.addEventListener("click",this.#e))}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){this.querySelector('[data-part="close"]')||this.append(vt(this.getAttribute("data-dismissible-label")??H,this.ownerDocument))}}customElements.define(P,e)}const St={name:"alert",description:"Use `alert` to surface short, important messages.",output:{element:P,class:"set-alert"},content:{kind:"slots",slots:[{prop:"title",kind:"text"},{prop:"message",kind:"text"}]},props:{dismissible:{default:!1,description:"Shows a dismiss control that removes the alert.",type:{kind:"boolean"}},dismissibleLabel:{default:H,description:"Accessible label for the dismiss control.",ignoredWhen:"`dismissible` is false",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the alert fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}},message:{description:"Body text of the alert.",required:!0,type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},title:{description:"Bold text above the message.",type:{kind:"text"}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["info","success","warning","error"]}}},events:{[ie]:{bubbles:!0,cancelable:!0,description:"Fired before the alert is removed by a dismiss action. Call `preventDefault()` to keep the alert mounted."},[ne]:{bubbles:!0,description:"Fired after the alert has been removed by an allowed dismiss action."}},rules:{attributes:[{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"role",condition:{kind:"when-in",prop:"tone",values:["warning","error"]},value:{kind:"literal",text:"alert"}},{target:{on:"host"},attribute:"role",condition:{kind:"not",of:{kind:"when-in",prop:"tone",values:["warning","error"]}},value:{kind:"literal",text:"status"}},{target:{on:"host"},attribute:"data-dismissible",condition:{kind:"when-truthy",prop:"dismissible"}},{target:{on:"host"},attribute:"data-dismissible-label",condition:{kind:"all",of:[{kind:"when-truthy",prop:"dismissible"},{kind:"when-non-empty",prop:"dismissibleLabel"}]},value:{kind:"prop",prop:"dismissibleLabel"}},{target:{on:"host"},attribute:"data-dismissible-label",condition:{kind:"all",of:[{kind:"when-truthy",prop:"dismissible"},{kind:"not",of:{kind:"when-non-empty",prop:"dismissibleLabel"}}]},value:{kind:"literal",text:H}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Et(e){if(e)return e===!0?!0:e}function re(e){const{appearance:n="text",current:t,download:i,href:r,id:a,icon:d,iconPlacement:o="start",label:l,labelVisibility:s="visible",rel:p,size:c="md",target:u,tone:m="default",underline:b}=e,k=g(a),f=d?.trim()||void 0;if(s!=="visible"&&!!!f)throw new Error("labelVisibility requires icon when label is not visible.");const S=Et(i),v=f?{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[{kind:"raw",html:f}]}:null,y={kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:l}]};return{kind:"element",tag:"a",attrs:{"aria-current":t,class:"set-link","data-appearance":n==="text"?void 0:n,"data-label-visibility":s==="visible"?void 0:s,"data-size":c,"data-tone":m==="neutral"?"neutral":void 0,"data-underline":b&&n==="text"?!0:void 0,download:S,href:r,id:k,rel:S?void 0:p||void 0,target:S?void 0:u||void 0},children:v?o==="end"?[y,v]:[v,y]:[y]}}function xt(e){return h(re(e))}const Ct={name:"link",description:"Use `link` to navigate to another page or resource.",output:{element:"a",class:"set-link"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"icon",kind:"html"}]},props:{appearance:{default:"text",description:"Visual appearance. `text` is a standard link; `outline` and `solid` give button-styled treatments. ",type:{kind:"enum",values:["outline","solid","text"]}},current:{description:"Marks the link as the current item in its set; emits `aria-current` with this value.",type:{kind:"enum",values:["page"]}},download:{description:"Saves the target instead of navigating. Pass a filename or `true`.",type:{kind:"union",variants:[{kind:"boolean"},{kind:"string"}]}},href:{description:"Link destination.",required:!0,type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},icon:{description:"Icon markup shown alongside the label. Set icon component, or SVG markup from https://simpleicons.org/ for third-party logos.",requiredWhen:"`labelVisibility` is hidden or hiddenBelowTablet",type:{kind:"html"}},iconPlacement:{default:"start",description:"Where the icon sits relative to the label.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["start","end"]}},label:{description:"Accessible label.",required:!0,type:{kind:"text"}},labelVisibility:{default:"visible",description:"How the label is shown. Hidden values require an icon.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}},rel:{description:"Explicit `rel` attribute.",ignoredWhen:"`download` is set",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}},target:{description:"Where to open the link.",ignoredWhen:"`download` is set",type:{kind:"enum",values:["_blank","_parent","_self","_top"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},underline:{default:!1,description:"Underlines the link.",ignoredWhen:"`appearance` is not `text`",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"href",condition:{kind:"always"},value:{kind:"prop",prop:"href"}},{target:{on:"host"},attribute:"aria-current",condition:{kind:"when-provided",prop:"current"},value:{kind:"prop",prop:"current"}},{target:{on:"host"},attribute:"download",condition:{kind:"when-truthy",prop:"download"},value:{kind:"prop",prop:"download"}},{target:{on:"host"},attribute:"rel",condition:{kind:"all",of:[{kind:"when-non-empty",prop:"rel"},{kind:"not",of:{kind:"when-truthy",prop:"download"}}]},value:{kind:"prop",prop:"rel"}},{target:{on:"host"},attribute:"target",condition:{kind:"all",of:[{kind:"when-provided",prop:"target"},{kind:"not",of:{kind:"when-truthy",prop:"download"}}]},value:{kind:"prop",prop:"target"}},{target:{on:"host"},attribute:"data-appearance",condition:{kind:"when-in",prop:"appearance",values:["outline","solid"]},value:{kind:"prop",prop:"appearance"}},{target:{on:"host"},attribute:"data-label-visibility",condition:{kind:"when-in",prop:"labelVisibility",values:["hidden","hiddenBelowTablet"]},value:{kind:"prop",prop:"labelVisibility"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"data-underline",condition:{kind:"all",of:[{kind:"when-truthy",prop:"underline"},{kind:"when-equals",prop:"appearance",to:"text"}]}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},V="set-banner",ae="set-banner-before-dismiss",oe="set-banner-dismiss",K="Dismiss banner";function zt(e,n){const t=n.createElement("div");return t.setAttribute("data-part","close"),t.innerHTML=Q({appearance:"text",icon:"close",label:e,labelVisibility:"hidden",size:"sm",tone:"neutral"}),t}function ye({actionHref:e,actionLabel:n,dismissible:t=!0,dismissibleLabel:i=K,id:r,message:a,tone:d}){if(!!e!=!!n)throw new Error("actionHref and actionLabel must be provided together.");const o=g(r),l=i.trim()===""?K:i,s=[{kind:"text",value:a}];return e&&n&&(s.push({kind:"text",value:" "}),s.push(re({href:e,label:n,underline:!0}))),{kind:"element",tag:V,attrs:{class:"set-banner","data-set-content-theme":"dark","data-set-surface":"default","data-dismissible":t,"data-dismissible-label":t?l:void 0,"data-tone":d||void 0,id:o},children:[{kind:"element",tag:"p",attrs:{class:"message"},children:s}]}}function Tt(e){return h(ye(e))}function we(){if(customElements.get(V))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="close"]'))return;const r=new CustomEvent(ae,{bubbles:!0,cancelable:!0});this.dispatchEvent(r)&&(this.dispatchEvent(new CustomEvent(oe,{bubbles:!0})),this.remove())};connectedCallback(){this.removeEventListener("click",this.#e),this.hasAttribute("data-dismissible")&&(this.#t(),this.addEventListener("click",this.#e))}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){this.querySelector('[data-part="close"]')||this.append(zt(this.getAttribute("data-dismissible-label")??K,this.ownerDocument))}}customElements.define(V,e)}const _t={name:"banner",description:"Use `banner` to display a prominent site-wide message.",output:{element:V,class:"set-banner"},content:{kind:"text",prop:"message"},props:{actionHref:{description:"URL for an inline link action rendered after the `message`.",requiredWhen:"`actionLabel` is provided",type:{kind:"string"}},actionLabel:{description:"Text label for an inline link action rendered after the `message`.",requiredWhen:"`actionHref` is provided",type:{kind:"text"}},dismissible:{default:!0,description:"Shows a dismiss control that removes the banner.",type:{kind:"boolean"}},dismissibleLabel:{default:K,description:"Accessible label for the dismiss control.",ignoredWhen:"`dismissible` is false",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},message:{description:"Body text of the banner.",required:!0,type:{kind:"text"}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["info","warning","error"]}}},events:{[ae]:{bubbles:!0,cancelable:!0,description:"Fired before the banner is removed by a dismiss action. Call `preventDefault()` to keep the banner mounted."},[oe]:{bubbles:!0,description:"Fired after the banner has been removed by an allowed dismiss action."}},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"always"},value:{kind:"literal",text:"dark"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"always"},value:{kind:"literal",text:"default"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"data-dismissible",condition:{kind:"when-truthy",prop:"dismissible"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},O="set-lightswitch",de="set-lightswitch-change",j="set-theme",Y="Switch to dark theme",J="Switch to light theme";function Lt(e){return e==="dark"?"light":"dark"}function Mt(e){return e==="dark"?"moon":"sunny"}function ce(e,n){return{kind:"element",tag:"span",attrs:{class:"option","data-option":e},children:[{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[A({ariaHidden:!0,name:Mt(e),size:"fill"})]},{kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:n}]}]}}function Se({appearance:e="text",id:n,labelDark:t=Y,labelLight:i=J,size:r="md"}){const a=g(n),d=t.trim()===""?Y:t,o=i.trim()===""?J:i;return{kind:"element",tag:O,attrs:{class:"set-lightswitch",id:a},children:[{kind:"element",tag:"button",attrs:{class:"toggle","data-appearance":e,"data-size":r,type:"button"},children:[ce("dark",d),ce("light",o)]}]}}function It(e){return h(Se(e))}function Ee(){if(customElements.get(O))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest("button"))return;const r=Lt(this.#u());r===this.#r()?this.#d():this.#n(r),this.#a(),this.dispatchEvent(new CustomEvent(de,{bubbles:!0,detail:{stored:!!this.#i(),theme:r}}))};connectedCallback(){this.removeEventListener("click",this.#e),this.addEventListener("click",this.#e),this.#i()&&this.#a()}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){try{return this.ownerDocument.defaultView?.localStorage}catch{return}}#i(){try{const t=this.#t()?.getItem(j);return t==="light"||t==="dark"?t:void 0}catch{return}}#n(t){try{this.#t()?.setItem(j,t)}catch{}}#d(){try{this.#t()?.removeItem(j)}catch{}}#r(){const t=this.ownerDocument.defaultView;return!t||typeof t.matchMedia!="function"?"light":t.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}#c(){return this.closest(".set")}#s(){const t=this.#c()?.getAttribute("data-set-theme");return t==="light"||t==="dark"?t:void 0}#u(){return this.#i()??this.#s()??this.#r()}#a(){const t=this.#c();if(!t)return;const i=this.#i();i?t.setAttribute("data-set-theme",i):t.removeAttribute("data-set-theme")}}customElements.define(O,e)}const At={name:"lightswitch",description:"Use `lightswitch` to let users toggle between light and dark themes.",output:{element:O,class:"set-lightswitch"},content:{kind:"none"},props:{appearance:{default:"text",description:"Visual appearance of the toggle button.",type:{kind:"enum",values:["outline","solid","text"]}},id:{description:"DOM id.",type:{kind:"string"}},labelDark:{default:Y,description:"Accessible label of the switch-to-dark action.",type:{kind:"string"}},labelLight:{default:J,description:"Accessible label of the switch-to-light action.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}}},events:{[de]:{bubbles:!0,description:"Fired after activation applies a theme. `detail.theme` is the theme switched to; `detail.stored` is false when the change cleared the override to follow the system preference again."}},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}},{target:{on:"descendant",selector:"button"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"toggle"}},{target:{on:"descendant",selector:"button"},attribute:"data-appearance",condition:{kind:"always"},value:{kind:"prop",prop:"appearance"}},{target:{on:"descendant",selector:"button"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"button"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"button"}}]}},B="set-menu",se="set-menu-choose";function xe({align:e="start",id:n,items:t,size:i="md",triggerIcon:r,triggerIconMirrored:a,triggerIconPlacement:d,triggerLabel:o,triggerLabelVisibility:l}){const s=n.trim();if(!s)throw new Error("id must be a non-empty string.");if(!M(s))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!Array.isArray(t))throw new Error("items must be an array.");const p=`${s}-button`,c=`${s}-popup`,u=t.map(m=>({kind:"element",tag:"button",attrs:{"aria-disabled":m.disabled?"true":void 0,"data-item-id":m.id||void 0,role:"menuitem",tabindex:"-1",type:"button"},children:[{kind:"text",value:m.label}]}));return{kind:"element",tag:B,attrs:{class:"set-menu","data-align":e==="start"?void 0:e,"data-size":i,id:s},children:[{kind:"element",tag:"div",attrs:{"data-part":"trigger"},children:[X({appearance:"outline",controls:c,disclosure:!0,haspopup:"menu",icon:r,iconMirrored:a,iconPlacement:d,id:p,label:o,labelVisibility:l,size:i,tone:"neutral",type:"button"})]},{kind:"element",tag:"div",attrs:{"aria-labelledby":p,class:"popup",hidden:!0,id:c,role:"menu"},children:u}]}}function qt(e){return h(xe(e))}function Ce(){if(customElements.get(B))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#p(),this.#o(!1),this.#m()}disconnectedCallback(){this.#p()}#d(){return this.querySelector('[data-part="trigger"] .set-button')}#r(){return this.querySelector('[role="menu"]')}#c(){return Array.from(this.querySelectorAll('[role="menuitem"]'))}#s(t){return t.getAttribute("aria-disabled")==="true"}#u(){return this.hasAttribute("data-open")}#a(t){const i=this.#c();if(i.length===0)return;const r=(t%i.length+i.length)%i.length;i[r]?.focus()}#l(t=0){const i=this.#r(),r=this.#d();!i||!r||(i.hidden=!1,this.setAttribute("data-open",""),r.setAttribute("aria-expanded","true"),this.#a(t))}#o(t=!1){const i=this.#r(),r=this.#d();!i||!r||(i.hidden=!0,this.removeAttribute("data-open"),r.setAttribute("aria-expanded","false"),t&&r.focus())}#h(t){const r=Array.from(this.querySelectorAll('[role="menuitem"]')).indexOf(t);this.dispatchEvent(new CustomEvent(se,{bubbles:!0,detail:{id:t.getAttribute("data-item-id")||void 0,index:r,label:t.textContent||""}}))}#m(){this.#e=t=>{const i=t.target;if(!(i instanceof Element))return;if(i.closest('[data-part="trigger"] .set-button')){if(this.#u()){this.#o();return}this.#l(0);return}const r=i.closest('[role="menuitem"]');if(r&&this.contains(r)){this.#s(r)||(this.#h(r),this.#o(!0));return}},this.#t=t=>{const i=t.target;i instanceof Node&&this.#u()&&!this.contains(i)&&this.#o()},this.#n=t=>{const i=this.#d(),r=this.#r();if(!i||!r)return;if((t.key==="Escape"||t.key==="Esc")&&this.#u()){t.preventDefault(),this.#o(!0);return}const a=this.ownerDocument.activeElement,d=this.#c(),o=d.indexOf(a);if(a===i){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.#l(0)),t.key==="ArrowDown"&&(t.preventDefault(),this.#l(0)),t.key==="ArrowUp"&&(t.preventDefault(),this.#l(d.length-1));return}if(r.contains(a)){if(a instanceof HTMLButtonElement&&(t.key==="Enter"||t.key===" ")){t.preventDefault(),this.#s(a)||(this.#h(a),this.#o(!0));return}t.key==="ArrowDown"&&(t.preventDefault(),this.#a(o+1)),t.key==="ArrowUp"&&(t.preventDefault(),this.#a(o-1)),t.key==="Home"&&(t.preventDefault(),this.#a(0)),t.key==="End"&&(t.preventDefault(),this.#a(d.length-1)),t.key==="Tab"&&this.#o(!1)}},this.#i=t=>{const i=t.relatedTarget;if(!(i instanceof Node)){this.#o();return}this.contains(i)||this.#o()},this.addEventListener("click",this.#e),this.addEventListener("keydown",this.#n),this.addEventListener("focusout",this.#i),this.ownerDocument.addEventListener("click",this.#t)}#p(){this.#e&&this.removeEventListener("click",this.#e),this.#t&&this.ownerDocument.removeEventListener("click",this.#t),this.#n&&this.removeEventListener("keydown",this.#n),this.#i&&this.removeEventListener("focusout",this.#i),this.#e=void 0,this.#t=void 0,this.#i=void 0,this.#n=void 0}}customElements.define(B,e)}const Nt={name:"menu",description:"Use `menu` to show a list of actions from a trigger button.",output:{element:B,class:"set-menu"},content:{kind:"structured",prop:"items"},props:{align:{default:"start",description:"Popup alignment relative to the trigger.",type:{kind:"enum",values:["start","end"]}},id:{description:"DOM id applied to the host. Trigger and popup ids are derived as `${id}-button` and `${id}-popup`.",required:!0,type:{kind:"string"}},items:{description:"Action items listed inside the popup.",required:!0,type:{kind:"array",itemShape:{disabled:{default:!1,description:"Disables selection for this item.",type:{kind:"boolean"}},id:{description:"Optional authored identifier surfaced in the choose event payload.",type:{kind:"string"}},label:{description:"Visible item label text.",required:!0,type:{kind:"text"}}}}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},triggerIcon:{description:"Icon name for the trigger button.",type:{kind:"iconName"}},triggerIconMirrored:{description:"Icon mirroring mode for the trigger button icon.",type:{kind:"enum",values:["always","rtl"]}},triggerIconPlacement:{default:"start",description:"Icon placement within the trigger button.",type:{kind:"enum",values:["start","end"]}},triggerLabel:{description:"Accessible and visible trigger label text.",required:!0,type:{kind:"text"}},triggerLabelVisibility:{default:"visible",description:"Trigger label visibility treatment.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}}},events:{[se]:{bubbles:!0,description:"Fired when a menu item is activated.",detail:"{ id?: string; index: number; label: string }"}},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-align",condition:{kind:"when-equals",prop:"align",to:"end"},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:'div[data-part="trigger"] button'},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-button"}},{target:{on:"descendant",selector:"div.popup"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-popup"}},{target:{on:"descendant",selector:"div.popup"},attribute:"aria-labelledby",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-button"}},{target:{on:"descendant",selector:"div.popup"},attribute:"role",condition:{kind:"always"},value:{kind:"literal",text:"menu"}},{target:{on:"descendant",selector:"div.popup"},attribute:"hidden",condition:{kind:"always"}}]}},ee="Menu";function ze({controlsId:e,expanded:n,id:t,label:i=ee,size:r="md"}={}){const a=g(t),d=i.trim()===""?ee:i;return{kind:"element",tag:"button",attrs:{"aria-controls":e||void 0,"aria-expanded":n?"true":"false",class:"set-expander","data-size":r,id:a,type:"button"},children:[{kind:"element",tag:"span",attrs:{class:"expander-box"},children:[{kind:"element",tag:"span",attrs:{class:"expander-inner"},children:[]},{kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:d}]}]}]}}function Te(e={}){return h(ze(e))}const Dt={name:"expander",description:"Use `expander` as a toggle for disclosure regions such as menus.",output:{element:"button",class:"set-expander"},content:{kind:"text",prop:"label"},props:{controlsId:{description:"`id` of the element this toggle controls.",type:{kind:"string"}},expanded:{default:!1,description:"Whether the controlled region is expanded.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{default:ee,description:"Accessible label.",type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"button"}},{target:{on:"host"},attribute:"aria-expanded",condition:{kind:"always"},value:{kind:"template",pattern:"{expanded}"}},{target:{on:"host"},attribute:"aria-controls",condition:{kind:"when-non-empty",prop:"controlsId"},value:{kind:"prop",prop:"controlsId"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},R="set-nav",ue="data-set-scroll-locked";function _e({collapsible:e,contentId:n,expanderLabel:t,expanderPosition:i="start",id:r,items:a,label:d,size:o="md"}){const l=g(r),s=t?.trim()||void 0,p=n?.trim();if(e&&!p)throw new Error("contentId must be a non-empty string when collapsible is set.");if(p&&!M(p))throw new Error("contentId must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const c=a.map(u=>({kind:"element",tag:"li",attrs:{},children:[{kind:"element",tag:"a",attrs:{"aria-current":u.current?"page":void 0,class:"item",href:u.href},children:[{kind:"text",value:u.label}]}]}));return{kind:"element",tag:R,attrs:{class:"set-nav","data-collapsible":e,"data-expander-label":e&&s?s:void 0,"data-expander-position":e?i:void 0,"data-size":o,id:l},children:[{kind:"element",tag:"nav",attrs:{"aria-label":d||void 0,class:"nav"},children:[{kind:"element",tag:"div",attrs:{class:"content",id:p},children:[{kind:"element",tag:"ul",attrs:{class:"list"},children:c}]}]}]}}function Pt(e){return h(_e(e))}function Le(){if(customElements.get(R))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#o(),this.#h(),this.#c(),this.#u(),this.#a()}disconnectedCallback(){this.#s(!1),this.#o(),this.#h()}#d(){return this.hasAttribute("data-collapsible")?this.querySelector(".nav"):null}#r(){return this.querySelector('[data-part="expander"] .set-expander')}#c(){const t=this.#d();if(!t||t.querySelector('[data-part="expander"]'))return;const i=t.querySelector(".content");i&&t.insertAdjacentHTML("afterbegin",`<div data-part="expander">${Te({controlsId:i.id||void 0,label:this.getAttribute("data-expander-label")||void 0,size:this.getAttribute("data-size")==="sm"?"md":"lg"})}</div>`)}#s(t){const i=this.#r();!i||i.getAttribute("aria-expanded")==="true"===t||(i.setAttribute("aria-expanded",t?"true":"false"),this.#l(t))}#u(){this.#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="expander"] .set-expander'))return;const r=this.#r();r&&this.#s(r.getAttribute("aria-expanded")!=="true")},this.addEventListener("click",this.#e)}#a(){const t=this.#d(),i=this.ownerDocument.defaultView;if(!t||!i||(this.#i=a=>{a.key!=="Escape"&&a.key!=="Esc"||this.#s(!1)},i.addEventListener("keydown",this.#i),this.getAttribute("data-collapsible")!=="belowTablet")||typeof i.matchMedia!="function")return;const r=i.matchMedia("(min-width: 48em)");this.#t=r,this.#n=a=>{a.matches&&this.#s(!1)},r.addEventListener("change",this.#n)}#l(t){const i=this.ownerDocument.documentElement;if(i){if(t){i.setAttribute(ue,"");return}i.removeAttribute(ue)}}#o(){this.#e&&(this.removeEventListener("click",this.#e),this.#e=void 0)}#h(){const t=this.ownerDocument.defaultView;this.#i&&t&&t.removeEventListener("keydown",this.#i),this.#t&&this.#n&&this.#t.removeEventListener("change",this.#n),this.#i=void 0,this.#n=void 0,this.#t=void 0}}customElements.define(R,e)}const Ht={name:"nav",description:"Use `nav` to render a primary navigation list.",output:{element:R,class:"set-nav"},content:{kind:"structured",prop:"items"},props:{items:{description:"Nav links shown in the list.",required:!0,type:{kind:"array",itemShape:{current:{default:!1,description:'Emits `aria-current="page"` when true.',type:{kind:"boolean"}},href:{description:"Link destination.",required:!0,type:{kind:"string"}},label:{description:"Link label.",required:!0,type:{kind:"text"}}}}},label:{description:"Accessible label for the nav landmark.",type:{kind:"string"}},expanderLabel:{description:"Accessible label for the collapsible expander button.",type:{kind:"string"}},expanderPosition:{default:"start",description:"Where the expander sits within the composition.",type:{kind:"enum",values:["start","end"]}},id:{description:"DOM id.",type:{kind:"string"}},collapsible:{description:"When to collapse the nav behind an expander.",type:{kind:"enum",values:["always","belowTablet"]}},contentId:{description:"`id` for the collapsible content region.",requiredWhen:"`collapsible` is provided",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-collapsible",condition:{kind:"when-provided",prop:"collapsible"},value:{kind:"prop",prop:"collapsible"}},{target:{on:"host"},attribute:"data-expander-position",condition:{kind:"when-provided",prop:"collapsible"},value:{kind:"prop",prop:"expanderPosition"}},{target:{on:"host"},attribute:"data-expander-label",condition:{kind:"all",of:[{kind:"when-provided",prop:"collapsible"},{kind:"when-non-empty",prop:"expanderLabel"}]},value:{kind:"prop",prop:"expanderLabel"}},{target:{on:"descendant",selector:"nav"},attribute:"aria-label",condition:{kind:"when-non-empty",prop:"label"},value:{kind:"prop",prop:"label"}},{target:{on:"descendant",selector:"div.content"},attribute:"id",condition:{kind:"when-provided",prop:"contentId"},value:{kind:"prop",prop:"contentId"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},U="set-range";function Me({description:e,disabled:n,id:t,inlineSize:i="full",label:r,max:a,min:d,name:o,size:l="md",step:s,value:p}){const c=t.trim(),u=e?.trim(),m=o?.trim();if(!c)throw new Error("id must be a non-empty string.");if(!M(c))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const b=u?`${c}-description`:void 0,k=[{kind:"element",tag:"div",attrs:{class:"label-wrapper"},children:[{kind:"element",tag:"label",attrs:{class:"label",for:c},children:[{kind:"text",value:r}]},{kind:"element",tag:"output",attrs:{class:"output",for:c},children:p!=null?[{kind:"text",value:String(p)}]:[]}]},{kind:"element",tag:"input",attrs:{"aria-describedby":b,class:"range",disabled:!!n,id:c,max:a!=null?String(a):void 0,min:d!=null?String(d):void 0,name:m||void 0,step:s!=null?String(s):void 0,type:"range",value:p!=null?String(p):void 0},children:[]}];return u&&k.push({kind:"element",tag:"p",attrs:{class:"description",id:b},children:[{kind:"text",value:u}]}),{kind:"element",tag:U,attrs:{class:"set-range","data-inline-size":i==="fit"?"fit":void 0,"data-size":l},children:k}}function Vt(e){return h(Me(e))}function Ie(){if(customElements.get(U))return;class e extends HTMLElement{#e;#t=t=>{const i=t.target;i instanceof HTMLInputElement&&i.matches(".range")&&this.#i()};connectedCallback(){this.removeEventListener("input",this.#t),this.#d(),this.#i(),this.addEventListener("input",this.#t)}disconnectedCallback(){this.removeEventListener("input",this.#t),this.#r()}#i(){const t=this.querySelector(".range"),i=this.querySelector(".output");!t||!i||this.#n(i,t.value)}#n(t,i){const r=t.firstChild;if(r?.nodeType===Node.TEXT_NODE&&t.childNodes.length===1){r.nodeValue!==i&&(r.nodeValue=i);return}t.textContent!==i&&(t.textContent=i)}#d(){const t=this.querySelector(".range");if(!t||t===this.#e)return;this.#r();const i=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");if(!i?.get||!i.set)return;const r=i.get,a=i.set,d=()=>this.#i();Object.defineProperty(t,"value",{configurable:!0,enumerable:i.enumerable,get(){return r.call(this)},set(o){a.call(this,o),d()}}),this.#e=t}#r(){this.#e&&(delete this.#e.value,this.#e=void 0)}}customElements.define(U,e)}const Ot={name:"range",description:"Use `range` to let users pick a numeric value along a scale.",output:{element:U,class:"set-range"},content:{kind:"text",prop:"label"},props:{description:{description:"Helper text shown below the range.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the range.",type:{kind:"boolean"}},id:{description:"`id` used to associate the input with its label.",required:!0,type:{kind:"string"}},inlineSize:{default:"full",description:"How the range fills its container.",type:{kind:"enum",values:["full","fit"]}},label:{description:"Label text.",required:!0,type:{kind:"text"}},max:{description:"Maximum value.",type:{kind:"number"}},min:{description:"Minimum value.",type:{kind:"number"}},name:{description:"Form field name.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},step:{description:"Granularity of value changes.",type:{kind:"number"}},value:{description:"Current value.",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"range"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"range"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"min",condition:{kind:"when-provided",prop:"min"},value:{kind:"template",pattern:"{min}"}},{target:{on:"descendant",selector:"input"},attribute:"max",condition:{kind:"when-provided",prop:"max"},value:{kind:"template",pattern:"{max}"}},{target:{on:"descendant",selector:"input"},attribute:"step",condition:{kind:"when-provided",prop:"step"},value:{kind:"template",pattern:"{step}"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-provided",prop:"value"},value:{kind:"template",pattern:"{value}"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"template",pattern:"{name}"}}]}},W="set-sidebar",Bt="(min-width: 68em)",N="Collapse sidebar",te="Open sidebar";function Rt(e,n){return`<div data-part="close">${Q({appearance:"text",icon:"panel-left",iconMirrored:"rtl",label:e,labelVisibility:"hidden",size:n,tone:"neutral",type:"button"})}</div>`}function Ae({aboveNotebook:e="persistent",buttonSize:n="md",children:t,collapseLabel:i=N,footer:r,header:a,id:d,surface:o,triggerLabel:l=te}){const s=d.trim(),p=i.trim()||N,c=l.trim()||te;if(!s)throw new Error("id must be a non-empty string.");if(!M(s))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const u=[{kind:"element",tag:"div",attrs:{class:"header"},children:a?[{kind:"raw",html:a}]:[]},{kind:"element",tag:"div",attrs:{class:"content"},children:t?[{kind:"raw",html:t}]:[]}];r&&u.push({kind:"element",tag:"div",attrs:{class:"footer"},children:[{kind:"raw",html:r}]});const m=`${s}-panel`;return{kind:"element",tag:W,attrs:{class:"set-sidebar","data-above-notebook":e,"data-collapse-label":p!==N?p:void 0,"data-button-size":n,id:s},children:[{kind:"element",tag:"div",attrs:{"data-part":"trigger"},children:[X({appearance:"text",controls:m,disclosure:!0,icon:"panel-left",iconMirrored:"rtl",label:c,labelVisibility:"hidden",size:n,tone:"neutral",type:"button"})]},{kind:"element",tag:"div",attrs:{class:"sidebar","data-set-surface":o,id:m,tabindex:"-1"},children:u},{kind:"element",tag:"div",attrs:{"data-part":"backdrop"},children:[]}]}}function Ut(e){return h(Ae(e))}function qe(){if(customElements.get(W))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#v(),this.#l(),this.#g(),this.#f()}disconnectedCallback(){this.close(),this.#v()}open(){this.#b(!0)}close(){this.#b(!1)}#d(){return this.querySelector(".sidebar")}#r(){return this.querySelector('[data-part="close"] .set-button')}#c(){return this.querySelector('[data-part="trigger"] .set-button')}#s(){return this.hasAttribute("data-open")}#u(){return this.hasAttribute("data-collapsed")}#a(){const t=this.getAttribute("data-above-notebook");return t==="collapsible"||t==="overlay"?t:"persistent"}#l(){const t=this.#d();if(!t||t.querySelector('[data-part="close"]'))return;const i=t.querySelector(".header"),r=this.getAttribute("data-collapse-label")||N,a=this.getAttribute("data-button-size")??"md";i?.insertAdjacentHTML("beforeend",Rt(r,a))}#o(){this.querySelector('[data-part="close"]')?.remove()}#h(){const t=this.#r();if(t){t.focus();return}this.#d()?.focus()}#m(){return this.#e?.matches??!1}#p({collapsed:t,open:i}){const r=this.#c();this.toggleAttribute("data-open",i),this.toggleAttribute("data-collapsed",t),r?.setAttribute("aria-expanded",i?"true":"false")}#g(){const t=this.#a();if(this.#m()){if(t==="overlay"){this.#l(),this.#p({collapsed:!1,open:!1}),this.#k(!1);return}if(t==="collapsible"){this.#l(),this.#p({collapsed:this.#u(),open:!0}),this.#k(!1);return}this.#o(),this.#p({collapsed:!1,open:!0}),this.#k(!1);return}this.#l(),this.#p({collapsed:!1,open:!1}),this.#k(!1)}#b(t){const i=this.#a();if(this.#m()){if(i==="persistent"){this.#p({collapsed:!1,open:!0}),this.#k(!1);return}if(i==="collapsible"){this.#p({collapsed:!t,open:!0}),this.#k(!1),t&&this.#h();return}}if(this.#s()!==t){if(t){this.#p({collapsed:!1,open:!0}),this.#k(!0),this.#h();return}this.#p({collapsed:!1,open:!1}),this.#k(!1),this.#c()?.focus()}}#k(t){const i=this.ownerDocument.documentElement;if(i){if(t){i.setAttribute("data-set-scroll-locked","");return}i.removeAttribute("data-set-scroll-locked")}}#f(){const t=this.ownerDocument.defaultView;t&&(typeof t.matchMedia=="function"&&(this.#e=t.matchMedia(Bt),this.#n=()=>{this.#g()},this.#e.addEventListener("change",this.#n),this.#g()),this.#t=i=>{const r=i.target;if(r instanceof Element){if(r.closest('[data-part="trigger"] .set-button')){this.open();return}if(r.closest('[data-part="close"] .set-button')){if(this.#m()&&this.#a()==="collapsible"){this.#b(this.#u());return}this.close();return}r.closest('[data-part="backdrop"]')&&this.close()}},this.#i=i=>{i.key!=="Escape"&&i.key!=="Esc"||this.close()},this.addEventListener("click",this.#t),this.addEventListener("keydown",this.#i))}#v(){this.#t&&this.removeEventListener("click",this.#t),this.#i&&this.removeEventListener("keydown",this.#i),this.#e&&this.#n&&this.#e.removeEventListener("change",this.#n),this.#t=void 0,this.#i=void 0,this.#e=void 0,this.#n=void 0}}customElements.define(W,e)}const Wt={name:"sidebar",description:"Use `sidebar` for a side panel alongside main content.",output:{element:W,class:"set-sidebar"},content:{kind:"slots",slots:[{prop:"header",kind:"html"},{prop:"children",kind:"html"},{prop:"footer",kind:"html"}]},props:{aboveNotebook:{default:"persistent",description:"Layout behaviour on wider screens.",type:{kind:"enum",values:["persistent","collapsible","overlay"]}},buttonSize:{default:"md",description:"Size of the trigger and collapse buttons.",type:{kind:"enum",values:["sm","md","lg"]}},children:{description:"Sidebar body content.",type:{kind:"html"}},collapseLabel:{default:N,description:"Accessible label for the collapse button.",type:{kind:"string"}},footer:{description:"Content rendered in the sidebar footer.",type:{kind:"html"}},header:{description:"Content rendered in the sidebar header.",type:{kind:"html"}},id:{description:"DOM id applied to the host. The inner panel id is derived as `${id}-panel` and wired to the trigger via `aria-controls`.",required:!0,type:{kind:"string"}},surface:{description:"Surface context. Applied to the inner panel.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}},triggerLabel:{default:te,description:"Accessible label for the open button.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-above-notebook",condition:{kind:"always"},value:{kind:"prop",prop:"aboveNotebook"}},{target:{on:"host"},attribute:"data-button-size",condition:{kind:"always"},value:{kind:"prop",prop:"buttonSize"}},{target:{on:"host"},attribute:"data-collapse-label",condition:{kind:"all",of:[{kind:"when-non-empty",prop:"collapseLabel"},{kind:"not",of:{kind:"when-equals",prop:"collapseLabel",to:N}}]},value:{kind:"prop",prop:"collapseLabel"}},{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-panel"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"tabindex",condition:{kind:"always"},value:{kind:"literal",text:"-1"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}}]}},G="set-video";function Ne({autoPlay:e,controls:n,fit:t="intrinsic",height:i,id:r,loop:a,muted:d,playsInline:o,poster:l,preload:s,src:p,width:c}){const u=g(r),m=p.trim(),b=l?.trim();if(!m)throw new Error("src must be a non-empty string.");const k={kind:"element",tag:"video",attrs:{autoplay:!!e,class:"video",controls:!!n,height:i?String(i):void 0,loop:!!a,muted:!!d,playsinline:!!o,poster:b||void 0,preload:s,src:m,width:c?String(c):void 0},children:[]};return{kind:"element",tag:G,attrs:{class:"set-video","data-fluid":t==="fluid",id:u},children:[k]}}function Gt(e){return h(Ne(e))}const $t="(prefers-reduced-motion: reduce)";function De(){if(customElements.get(G))return;class e extends HTMLElement{#e=!1;#t;#i;connectedCallback(){const t=this.querySelector("video");if(!t||(this.#e||=t.hasAttribute("autoplay"),!this.#e))return;const i=this.ownerDocument.defaultView;!i||typeof i.matchMedia!="function"||(this.#t=i.matchMedia($t),this.#i=()=>{this.#n()},this.#t.addEventListener("change",this.#i),this.#n())}disconnectedCallback(){this.#t&&this.#i&&this.#t.removeEventListener("change",this.#i),this.#t=void 0,this.#i=void 0}#n(){const t=this.querySelector("video");!t||!this.#t||(this.#t.matches?(t.removeAttribute("autoplay"),t.pause()):(t.setAttribute("autoplay",""),t.paused&&t.play()?.catch?.(()=>{})))}}customElements.define(G,e)}const Ft={name:"video",description:"Use `video` to render a video with intrinsic or fluid fit and native playback behavior.",output:{element:G,class:"set-video"},content:{kind:"none"},props:{autoPlay:{default:!1,description:"Starts playback automatically. Browsers only honor this when `muted` is also set. Suspended when the user prefers reduced motion.",type:{kind:"boolean"}},controls:{default:!1,description:"Shows the browser's native playback controls.",type:{kind:"boolean"}},fit:{default:"intrinsic",description:"Layout mode. `intrinsic` renders at the video's own dimensions, `fluid` scales to the container's full inline size at the video's aspect ratio.",type:{kind:"enum",values:["intrinsic","fluid"]}},height:{description:"Intrinsic height in pixels. With `width`, reserves the correctly shaped box before the media loads; rendered height always follows the aspect ratio.",type:{kind:"number"}},id:{description:"DOM id.",type:{kind:"string"}},loop:{default:!1,description:"Restarts playback when the video ends.",type:{kind:"boolean"}},muted:{default:!1,description:"Starts playback silent. Required for `autoPlay` to take effect in most browsers.",type:{kind:"boolean"}},playsInline:{default:!1,description:"Plays inline instead of fullscreen on iOS. Required for `autoPlay` on iOS.",type:{kind:"boolean"}},poster:{description:"Image URL shown before playback begins.",type:{kind:"string"}},preload:{description:"Preload hint. Omitted by default, deferring to the browser.",type:{kind:"enum",values:["auto","metadata","none"]}},src:{description:"Video source URL.",required:!0,type:{kind:"string"}},width:{description:"Intrinsic width in pixels. Sets the rendered width, capped at the container; under `fluid`, an aspect-ratio hint only.",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-fluid",condition:{kind:"when-equals",prop:"fit",to:"fluid"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}},{target:{on:"descendant",selector:"video"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"video"}},{target:{on:"descendant",selector:"video"},attribute:"src",condition:{kind:"always"},value:{kind:"template",pattern:"{src}"}},{target:{on:"descendant",selector:"video"},attribute:"autoplay",condition:{kind:"when-truthy",prop:"autoPlay"}},{target:{on:"descendant",selector:"video"},attribute:"controls",condition:{kind:"when-truthy",prop:"controls"}},{target:{on:"descendant",selector:"video"},attribute:"loop",condition:{kind:"when-truthy",prop:"loop"}},{target:{on:"descendant",selector:"video"},attribute:"muted",condition:{kind:"when-truthy",prop:"muted"}},{target:{on:"descendant",selector:"video"},attribute:"playsinline",condition:{kind:"when-truthy",prop:"playsInline"}},{target:{on:"descendant",selector:"video"},attribute:"poster",condition:{kind:"when-non-empty",prop:"poster"},value:{kind:"prop",prop:"poster"}},{target:{on:"descendant",selector:"video"},attribute:"preload",condition:{kind:"when-provided",prop:"preload"},value:{kind:"prop",prop:"preload"}}]}};function Zt(e){return e?/[A-Za-z]/.test(e):!1}function jt(e){return/^[a-z]/.test(e)}function I(e){const n=e.charAt(0);return Zt(n)?n:void 0}function Pe(e){const n=D(e);if(!n)return;const t=n.split(" "),i=I(t[0]);if(!i)return;const r=[i.toUpperCase()];if(t.length===1)return r[0];const a=t.slice(1).find(jt);if(a){const o=I(a);return o?`${r[0]}${o}`:void 0}if(t.length===2){const o=I(t[1]);if(!o)return;r.push(o);const l=t[1].split("-").filter(Boolean);if(l.length===2){const s=I(l[1]);s&&r.push(s)}return r.slice(0,3).join("")}if(t.length===3){const o=I(t[1]),l=I(t[2]);return!o||!l?void 0:(r.push(o,l),r.slice(0,3).join(""))}const d=I(t.at(-1)||"");if(d)return r.push(d),r.slice(0,3).join("")}const Kt={bot:"robot-1",organization:"city-6",person:"user-1",team:"member"},he=["01","02","03","04","05","06","07","08","09"];function Xt(e){let n=5381;for(const t of e)n=n*33^t.charCodeAt(0);return n>>>0}function Qt(e){if(e==null)return;const n=D(e);if(n){if(n.length>3)throw new Error("initials must normalize to 3 characters or fewer.");if(!/^[A-Za-z]{1,3}$/.test(n))throw new Error("initials must contain only alphabetic characters.");return n}}function Yt({alt:e,ariaHidden:n,name:t}){if(!n)return D(e)||D(t)||"Avatar"}function Jt({color:e,name:n}){if(e)return e;if(n){const t=Xt(n)%he.length;return he[t]}return"neutral"}function He({alt:e,ariaHidden:n,color:t,entity:i="person",id:r,initials:a,name:d,size:o="md",src:l}){const s=g(r),p=Qt(a),c=D(d),u=D(l),m=Yt({alt:e,ariaHidden:n,name:c}),b=p||Pe(c),k=!!u,f=Jt({color:t,name:c}),x={"aria-hidden":n?"true":void 0,"aria-label":!n&&!k?m:void 0,class:"set-avatar","data-color":f==="neutral"?void 0:f,"data-entity":i==="person"?void 0:i,"data-size":o,id:s,role:!n&&!k?"img":void 0};let S;return k?S={kind:"element",tag:"img",attrs:{alt:n?"":m||"",class:"img",src:u},children:[]}:b?S={kind:"element",tag:"span",attrs:{class:"initials"},children:[{kind:"text",value:b}]}:S={kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[A({ariaHidden:!0,name:Kt[i],size:"fill"})]},{kind:"element",tag:"span",attrs:x,children:[S]}}function ei(e){return h(He(e))}const ti={name:"avatar",description:"Use `avatar` to visually represent a person, team, or entity.",output:{element:"span",class:"set-avatar"},content:{kind:"none"},props:{alt:{description:"Accessible label for the avatar, overrides name.",type:{kind:"string"}},ariaHidden:{default:!1,description:"Hides the avatar from assistive technology.",type:{kind:"boolean"}},entity:{default:"person",description:"Type of subject the avatar represents.",type:{kind:"enum",values:["bot","organization","person","team"]}},color:{description:"Background color swatch. Derived from name when omitted.",type:{kind:"enum",values:["neutral","01","02","03","04","05","06","07","08","09"]}},id:{description:"DOM id.",type:{kind:"string"}},initials:{description:"Initials to display. 1–3 alphabetic characters. Overrides name-derived initials.",type:{kind:"string"}},name:{description:"Full name. Used for the label and to derive initials.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl"]}},src:{description:"Image source URL.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-entity",condition:{kind:"when-in",prop:"entity",values:["bot","organization","team"]},value:{kind:"prop",prop:"entity"}},{target:{on:"host"},attribute:"data-color",condition:{kind:"when-in",prop:"color",values:["01","02","03","04","05","06","07","08","09"]},value:{kind:"prop",prop:"color"}},{target:{on:"host"},attribute:"aria-hidden",condition:{kind:"when-truthy",prop:"ariaHidden"},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ve({floating:e,id:n,label:t,size:i="md",tone:r}){const a=g(n);return{kind:"element",tag:"span",attrs:{class:"set-badge","data-floating":e,"data-size":i,"data-tone":r||void 0,id:a},children:[{kind:"text",value:t}]}}function ii(e){return h(Ve(e))}const ni={name:"badge",description:"Use `badge` to annotate content with a short label.",output:{element:"span",class:"set-badge"},content:{kind:"text",prop:"label"},props:{floating:{default:!1,description:"Positions the badge as a floating overlay.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Badge text.",required:!0,type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["notification","live","pending","success","warning","error"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-floating",condition:{kind:"when-truthy",prop:"floating"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function $({align:e,as:n,children:t,id:i,linkVisited:r=!0,measured:a,monospaced:d,responsive:o,size:l="md",tone:s="default"}){const p=g(i),c=n==="p"?"p":"span",u=c==="p",m=u?e??"start":void 0;return{kind:"element",tag:c,attrs:{class:"set-text","data-align":m&&m!=="start"?m:void 0,"data-link-visited":r?void 0:"off","data-measured":u?a??!0:void 0,"data-monospaced":d,"data-responsive":o,"data-size":l,"data-tone":s==="muted"?"muted":void 0,id:p},children:[{kind:"raw",html:t}]}}function ri(e){return h($(e))}const ai={name:"text",description:"Use `text` for inline or paragraph body copy.",output:{element:{kind:"switch",prop:"as",cases:{p:"p",span:"span"}},class:"set-text"},content:{kind:"html",prop:"children"},props:{as:{default:"span",description:"HTML element used for the text.",type:{kind:"enum",values:["p","span"]}},children:{description:"Text content. Supports inline markup such as `<em>`, `<strong>`, `<a>`, `<code>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},linkVisited:{default:!0,description:"Styles visited links inside the text.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales text across breakpoints.",type:{kind:"boolean"}},align:{default:"start",description:"Text alignment.",ignoredWhen:"`as` is span",type:{kind:"enum",values:["start","center","end"]}},measured:{default:!0,description:"Caps line length for comfortable reading.",ignoredWhen:"`as` is span",type:{kind:"boolean"}},monospaced:{default:!1,description:"Applies monospaced word spacing throughout.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","muted"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"all",of:[{kind:"when-equals",prop:"as",to:"p"},{kind:"when-in",prop:"align",values:["center","end"]}]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-link-visited",condition:{kind:"when-equals",prop:"linkVisited",to:!1},value:{kind:"literal",text:"off"}},{target:{on:"host"},attribute:"data-measured",condition:{kind:"all",of:[{kind:"when-equals",prop:"as",to:"p"},{kind:"when-truthy",prop:"measured"}]}},{target:{on:"host"},attribute:"data-monospaced",condition:{kind:"when-truthy",prop:"monospaced"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"muted"},value:{kind:"literal",text:"muted"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Oe({align:e="start",attribution:n,id:t,measured:i=!0,quote:r,responsive:a=!1,size:d="md"}){const o=g(t);return{kind:"element",tag:"figure",attrs:{class:"set-blockquote","data-align":e==="start"?void 0:e,id:o},children:[{kind:"element",tag:"blockquote",attrs:{class:"quote"},children:[$({align:e,as:"p",children:r,measured:i,responsive:a,size:d})]},{kind:"element",tag:"figcaption",attrs:{class:"attribution"},children:[$({as:"span",children:n,responsive:a,size:"sm"})]}]}}function oi(e){return h(Oe(e))}const di={name:"blockquote",description:"Use `blockquote` to display a quote with attribution.",output:{element:"figure",class:"set-blockquote"},content:{kind:"slots",slots:[{prop:"quote",kind:"html"},{prop:"attribution",kind:"html"}]},props:{align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},attribution:{description:"Attribution shown beneath the quote. Supports inline markup such as `<a>`, `<cite>`, `<em>`, etc.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},measured:{default:!0,description:"Caps line length for comfortable reading.",type:{kind:"boolean"}},quote:{description:"Quote content. Supports inline markup such as `<em>`, `<strong>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},responsive:{default:!1,description:"Scales type across breakpoints.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant for the quote.",type:{kind:"enum",values:["md","lg"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Be({background:e="default",border:n,children:t,id:i,paddingBlock:r="md",paddingInline:a="md",radius:d,responsive:o,surface:l}){const s=g(i);return{kind:"element",tag:"div",attrs:{class:"set-box","data-background":e==="default"?void 0:e,"data-border":n,"data-set-surface":l,"data-padding-block":r,"data-padding-inline":a,"data-radius":d,"data-responsive":o,id:s},children:t?[{kind:"raw",html:t}]:[]}}function si(e){return h(Be(e))}const li={name:"box",description:"Use `box` to inset content.",output:{element:"div",class:"set-box"},content:{kind:"html",prop:"children"},props:{background:{default:"default",description:"Background treatment.",type:{kind:"enum",values:["default","panel","transparent"]}},border:{default:!1,description:"Shows a subtle border around the box.",type:{kind:"boolean"}},children:{description:"Content rendered inside the box.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},paddingBlock:{default:"md",description:"Vertical padding.",type:{kind:"enum",values:["none","2xs","xs","sm","md","lg","xl","2xl"]}},paddingInline:{default:"md",description:"Horizontal padding.",type:{kind:"enum",values:["none","2xs","xs","sm","md","lg","xl","2xl"]}},radius:{description:"Corner radius.",type:{kind:"enum",values:["sm","md"]}},responsive:{default:!1,description:"Scales vertical padding across breakpoints.",type:{kind:"boolean"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-background",condition:{kind:"when-in",prop:"background",values:["panel","transparent"]},value:{kind:"prop",prop:"background"}},{target:{on:"host"},attribute:"data-border",condition:{kind:"when-truthy",prop:"border"}},{target:{on:"host"},attribute:"data-padding-block",condition:{kind:"always"},value:{kind:"prop",prop:"paddingBlock"}},{target:{on:"host"},attribute:"data-padding-inline",condition:{kind:"always"},value:{kind:"prop",prop:"paddingInline"}},{target:{on:"host"},attribute:"data-radius",condition:{kind:"when-provided",prop:"radius"},value:{kind:"prop",prop:"radius"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Re({description:e,headingLevel:n,href:t,id:i,note:r,surface:a,title:d}){const o=g(i),l=n?`h${n}`:"div",s=t?[{kind:"element",tag:"a",attrs:{href:t},children:[{kind:"text",value:d}]}]:[{kind:"text",value:d}],p=r?[{kind:"raw",html:r}]:[];r&&t&&p.push({kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[A({ariaHidden:!0,mirrored:"rtl",name:"arrow-right",size:"xs"})]});const c=[{kind:"element",tag:"span",attrs:{class:"dots"},children:[{kind:"element",tag:"span",attrs:{},children:[]}]},{kind:"element",tag:l,attrs:{class:"title"},children:s},{kind:"element",tag:"p",attrs:{class:"description"},children:[{kind:"raw",html:e}]}];return r&&c.push({kind:"element",tag:"p",attrs:{class:"note"},children:p}),{kind:"element",tag:"div",attrs:{class:"set-card","data-set-surface":a,id:o},children:c}}function pi(e){return h(Re(e))}const ci={name:"card",description:"Use `card` to display a summary for a single topic.",output:{element:"div",class:"set-card"},content:{kind:"slots",slots:[{prop:"title",kind:"text"},{prop:"description",kind:"html"},{prop:"note",kind:"html"}]},props:{description:{description:"Supporting description shown below the `title`.",required:!0,type:{kind:"html"}},headingLevel:{description:"Semantic heading level for the title. Renders a `<div>` when omitted.",type:{kind:"enum",values:[1,2,3,4,5,6]}},href:{description:"Link destination for the `title`.",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},note:{description:"Short note shown beneath the `description`.",type:{kind:"html"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}},title:{description:"Card title.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ue({checked:e,description:n,disabled:t,id:i,invalid:r,label:a,name:d,required:o,size:l="md",value:s}){const p=g(i),c=n?.trim();if(c&&!p)throw new Error("id must be provided when description is provided.");const u=c?`${p}-description`:void 0,m=!!t,k=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":u,"aria-invalid":!m&&!!r?"true":void 0,checked:!!e,class:"checkbox",disabled:m,id:p,name:d||void 0,required:!!o,type:"checkbox",value:s||void 0},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:a}]}]}];return c&&k.push({kind:"element",tag:"p",attrs:{class:"description",id:u},children:[{kind:"text",value:c}]}),{kind:"element",tag:"div",attrs:{class:"set-checkbox","data-size":l},children:k}}function ui(e){return h(Ue(e))}const hi={name:"checkbox",description:"Use `checkbox` to let users toggle a single option on or off.",output:{element:"div",class:"set-checkbox"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{checked:{default:!1,description:"Whether the checkbox is checked.",type:{kind:"boolean"}},description:{description:"Helper text shown below the label.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`description` is provided",type:{kind:"string"}},invalid:{default:!1,description:"Marks the checkbox as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},label:{description:"Label shown next to the checkbox.",required:!0,type:{kind:"text"}},name:{description:"Name submitted with the form.",type:{kind:"string"}},required:{default:!1,description:"Marks the checkbox as required.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Value submitted with the form.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"checked",condition:{kind:"when-truthy",prop:"checked"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function We({children:e,gutter:n="default",id:t,maxInlineSize:i="default"}){const r=g(t);return{kind:"element",tag:"div",attrs:{class:"set-container","data-gutter":n==="default"?void 0:n,"data-max-inline-size":i==="default"?void 0:i,id:r},children:e?[{kind:"raw",html:e}]:[]}}function ki(e){return h(We(e))}const mi={name:"container",description:"Use `container` to wrap page-level content.",output:{element:"div",class:"set-container"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the container.",type:{kind:"html"}},gutter:{default:"default",description:"Horizontal gutter width.",type:{kind:"enum",values:["default","narrow","none"]}},id:{description:"DOM id.",type:{kind:"string"}},maxInlineSize:{default:"default",description:"Maximum content width. Effect is only visible in wider viewports.",type:{kind:"enum",values:["default","wide","none"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-max-inline-size",condition:{kind:"when-in",prop:"maxInlineSize",values:["wide","none"]},value:{kind:"prop",prop:"maxInlineSize"}},{target:{on:"host"},attribute:"data-gutter",condition:{kind:"when-in",prop:"gutter",values:["narrow","none"]},value:{kind:"prop",prop:"gutter"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ge({children:e,id:n,open:t,summary:i,inlineSize:r="full"}){const a=g(n);return{kind:"element",tag:"details",attrs:{class:"set-details",open:t,"data-inline-size":r==="fit"?"fit":void 0,id:a},children:[{kind:"element",tag:"summary",attrs:{class:"summary"},children:[{kind:"element",tag:"span",attrs:{class:"marker"},children:[A({ariaHidden:!0,name:"chevron-right",size:"sm"})]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:i}]}]},{kind:"element",tag:"div",attrs:{class:"content"},children:e?[{kind:"raw",html:e}]:[]}]}}function gi(e){return h(Ge(e))}const bi={name:"details",description:"Use `details` to let users expand and collapse a section of content.",output:{element:"details",class:"set-details"},content:{kind:"slots",slots:[{prop:"summary",kind:"text"},{prop:"children",kind:"html"}]},props:{children:{description:"Content revealed when the details is open.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the details fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}},open:{default:!1,description:"Opens the details by default.",type:{kind:"boolean"}},summary:{description:"Summary shown in the toggle.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"open",condition:{kind:"when-truthy",prop:"open"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function $e({id:e,orientation:n="horizontal",tone:t="default"}={}){const i=g(e);return{kind:"element",tag:n==="horizontal"?"hr":"span",attrs:{"aria-orientation":n==="vertical"?"vertical":void 0,class:"set-divider","data-tone":t==="subtle"||t==="brand"?t:void 0,id:i,role:n==="vertical"?"separator":void 0},children:[]}}function vi(e={}){return h($e(e))}const fi={name:"divider",description:"Use `divider` to separate sections with a rule.",output:{element:{kind:"switch",prop:"orientation",cases:{horizontal:"hr",vertical:"span"}},class:"set-divider"},content:{kind:"none"},props:{id:{description:"DOM id.",type:{kind:"string"}},orientation:{default:"horizontal",description:"Divider orientation.",type:{kind:"enum",values:["horizontal","vertical"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","subtle","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"role",condition:{kind:"when-equals",prop:"orientation",to:"vertical"},value:{kind:"literal",text:"separator"}},{target:{on:"host"},attribute:"aria-orientation",condition:{kind:"when-equals",prop:"orientation",to:"vertical"},value:{kind:"literal",text:"vertical"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-in",prop:"tone",values:["subtle","brand"]},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function le({children:e,description:n,disabled:t,id:i,invalid:r,legend:a,inlineSize:d="full"}){const o=n?.trim(),l=i.trim();if(!l)throw new Error("id must be a non-empty string.");if(!M(l))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const s=o?`${l}-description`:void 0,p=!!t,c=!p&&!!r,u=[{kind:"element",tag:"legend",attrs:{class:"legend"},children:[{kind:"text",value:a}]}];return o&&u.push({kind:"element",tag:"p",attrs:{class:"description",id:s},children:[{kind:"text",value:o}]}),e&&u.push({kind:"raw",html:e}),{kind:"element",tag:"fieldset",attrs:{"aria-describedby":o?s:void 0,"aria-invalid":c?"true":void 0,class:"set-fieldset","data-inline-size":d==="fit"?"fit":void 0,disabled:p,id:l},children:u}}function yi(e){return h(le(e))}const wi={name:"fieldset",description:"Use `fieldset` to group related form controls under a legend.",output:{element:"fieldset",class:"set-fieldset"},content:{kind:"slots",slots:[{prop:"legend",kind:"text"},{prop:"children",kind:"html"}]},props:{children:{description:"Form controls grouped inside the fieldset.",type:{kind:"html"}},description:{description:"Description shown below the legend; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction with controls in the group.",type:{kind:"boolean"}},id:{description:"`id` for the fieldset.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the group as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},legend:{description:"Legend shown above the group.",required:!0,type:{kind:"text"}},inlineSize:{default:"full",description:"Whether the fieldset fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}}]}};function Fe({align:e="start",caption:n,children:t,id:i,responsive:r=!1}){const a=g(i);return{kind:"element",tag:"figure",attrs:{class:"set-figure","data-align":e==="start"?void 0:e,id:a},children:[{kind:"raw",html:t},{kind:"element",tag:"figcaption",attrs:{class:"figcaption"},children:[$({as:"span",children:n,responsive:r,size:"sm"})]}]}}function Si(e){return h(Fe(e))}const Ei={name:"figure",description:"Use `figure` to present media with a caption.",output:{element:"figure",class:"set-figure"},content:{kind:"slots",slots:[{prop:"children",kind:"html"},{prop:"caption",kind:"html"}]},props:{align:{default:"start",description:"Alignment within available space.",type:{kind:"enum",values:["start","center","end"]}},caption:{description:"Caption shown below the media. Supports inline markup such as `<em>`, `<strong>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},children:{description:"Media rendered inside the figure.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},responsive:{default:!1,description:"Scales the caption across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},T=e=>{if(e!==void 0)return String(e)};function Ze({children:e,gap:n="default",id:t}){const i=g(t);return{kind:"element",tag:"div",attrs:{class:"set-grid","data-gap":n==="default"?void 0:n,id:i},children:[{kind:"element",tag:"div",attrs:{class:"grid"},children:e?[{kind:"raw",html:e}]:[]}]}}function xi(e){return h(Ze(e))}function je({align:e,children:n,colSpan:t,colSpanNarrow:i,colSpanWide:r,colStart:a,colStartNarrow:d,colStartWide:o,id:l,justify:s,rowSpan:p,rowSpanNarrow:c,rowSpanWide:u,rowStart:m,rowStartNarrow:b,rowStartWide:k}){const f=g(l);return{kind:"element",tag:"div",attrs:{class:"set-grid-item","data-align":e,"data-justify":s,"data-col-span-narrow":T(i),"data-col-start-narrow":T(d),"data-col-span":T(t),"data-col-start":T(a),"data-col-span-wide":T(r),"data-col-start-wide":T(o),"data-row-span-narrow":T(c),"data-row-start-narrow":T(b),"data-row-span":T(p),"data-row-start":T(m),"data-row-span-wide":T(u),"data-row-start-wide":T(k),id:f},children:n?[{kind:"raw",html:n}]:[]}}function Ci(e){return h(je(e))}const zi={name:"grid",description:"Use `grid` to lay out content in a 12-column responsive grid.",output:{element:"div",class:"set-grid"},content:{kind:"html",prop:"children"},props:{children:{description:"`grid-item` components rendered inside the grid.",type:{kind:"html"}},gap:{default:"default",description:"Space between the `grid-item` components.",type:{kind:"enum",values:["default","expanded","none"]}},id:{description:"DOM id.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-gap",condition:{kind:"when-in",prop:"gap",values:["expanded","none"]},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},_={kind:"number",min:1,max:12,integer:!0},Ti={name:"grid-item",description:"Use `grid-item` to place content within a `grid` layout.",output:{element:"div",class:"set-grid-item"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the grid item.",type:{kind:"html"}},align:{description:"Block-axis alignment within the grid cell.",type:{kind:"enum",values:["start","center","end"]}},justify:{description:"Inline-axis alignment within the grid cell.",type:{kind:"enum",values:["start","center","end"]}},colSpan:{description:"Columns spanned at the default breakpoint.",type:_},colStart:{description:"Starting column at the default breakpoint.",type:_},id:{description:"DOM id.",type:{kind:"string"}},rowSpan:{description:"Rows spanned at the default breakpoint.",type:_},rowSpanNarrow:{description:"Rows spanned at the narrow breakpoint.",type:_},rowSpanWide:{description:"Rows spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:_},rowStart:{description:"Starting row at the default breakpoint.",type:_},rowStartNarrow:{description:"Starting row at the narrow breakpoint.",type:_},rowStartWide:{description:"Starting row at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:_},colSpanNarrow:{description:"Columns spanned at the narrow breakpoint.",type:_},colStartNarrow:{description:"Starting column at the narrow breakpoint.",type:_},colSpanWide:{description:"Columns spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:_},colStartWide:{description:"Starting column at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:_}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-provided",prop:"align"},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-justify",condition:{kind:"when-provided",prop:"justify"},value:{kind:"prop",prop:"justify"}},{target:{on:"host"},attribute:"data-col-span",condition:{kind:"when-provided",prop:"colSpan"},value:{kind:"prop",prop:"colSpan"}},{target:{on:"host"},attribute:"data-col-start",condition:{kind:"when-provided",prop:"colStart"},value:{kind:"prop",prop:"colStart"}},{target:{on:"host"},attribute:"data-col-span-narrow",condition:{kind:"when-provided",prop:"colSpanNarrow"},value:{kind:"prop",prop:"colSpanNarrow"}},{target:{on:"host"},attribute:"data-col-start-narrow",condition:{kind:"when-provided",prop:"colStartNarrow"},value:{kind:"prop",prop:"colStartNarrow"}},{target:{on:"host"},attribute:"data-col-span-wide",condition:{kind:"when-provided",prop:"colSpanWide"},value:{kind:"prop",prop:"colSpanWide"}},{target:{on:"host"},attribute:"data-col-start-wide",condition:{kind:"when-provided",prop:"colStartWide"},value:{kind:"prop",prop:"colStartWide"}},{target:{on:"host"},attribute:"data-row-span",condition:{kind:"when-provided",prop:"rowSpan"},value:{kind:"prop",prop:"rowSpan"}},{target:{on:"host"},attribute:"data-row-start",condition:{kind:"when-provided",prop:"rowStart"},value:{kind:"prop",prop:"rowStart"}},{target:{on:"host"},attribute:"data-row-span-narrow",condition:{kind:"when-provided",prop:"rowSpanNarrow"},value:{kind:"prop",prop:"rowSpanNarrow"}},{target:{on:"host"},attribute:"data-row-start-narrow",condition:{kind:"when-provided",prop:"rowStartNarrow"},value:{kind:"prop",prop:"rowStartNarrow"}},{target:{on:"host"},attribute:"data-row-span-wide",condition:{kind:"when-provided",prop:"rowSpanWide"},value:{kind:"prop",prop:"rowSpanWide"}},{target:{on:"host"},attribute:"data-row-start-wide",condition:{kind:"when-provided",prop:"rowStartWide"},value:{kind:"prop",prop:"rowStartWide"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ke({align:e="start",id:n,level:t,opticalAlign:i,responsive:r,size:a="md",text:d}){const o=g(n);return{kind:"element",tag:t?`h${t}`:"span",attrs:{class:"set-heading","data-align":e==="start"?void 0:e,"data-optical-align":i,"data-responsive":r,"data-size":a,id:o},children:[{kind:"text",value:d}]}}function _i(e){return h(Ke(e))}const Li={name:"heading",description:"Use `heading` to render heading text with consistent type.",output:{element:{kind:"switch",prop:"level",cases:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"}},class:"set-heading"},content:{kind:"text",prop:"text"},props:{align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},id:{description:"DOM id.",type:{kind:"string"}},level:{description:"Semantic heading level. Renders a `<span>` when omitted.",type:{kind:"enum",values:[1,2,3,4,5,6]}},opticalAlign:{default:!1,description:"Optically aligns left sidebearing-heavy glyphs with the content edge.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales type across breakpoints.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl","2xl","3xl","4xl","5xl"]}},text:{description:"Heading text.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-optical-align",condition:{kind:"when-truthy",prop:"opticalAlign"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Xe({alt:e="",aspectRatio:n,fit:t="intrinsic",gravity:i="C",height:r,id:a,lazy:d,priority:o,radius:l,shadow:s,sizes:p,sources:c,src:u,srcSet:m,width:b}){const k=t==="cover",f=g(a),x=u.trim(),S=m?.trim(),v=p?.trim(),y=c?.map((C,z)=>{const q=C.srcSet.trim(),F=C.media?.trim(),pe=C.type?.trim(),Z=C.sizes?.trim();if(!q)throw new Error(`sources[${z}].srcSet must be non-empty.`);return{height:C.height,media:F||void 0,sizes:Z||void 0,srcSet:q,type:pe||void 0,width:C.width}})||[];if(!x)throw new Error("src must be a non-empty string.");const w={kind:"element",tag:"img",attrs:{alt:e,class:"img",fetchpriority:o?"high":void 0,height:k?void 0:r?String(r):void 0,loading:d&&!o?"lazy":void 0,sizes:y.length>0?void 0:v||void 0,src:x,srcset:S||void 0,width:k?void 0:b?String(b):void 0},children:[]};let E;if(y.length>0){const C=y.map(z=>({kind:"element",tag:"source",attrs:{height:z.height?String(z.height):void 0,media:z.media,sizes:z.sizes,srcset:z.srcSet,type:z.type,width:z.width?String(z.width):void 0},children:[]}));E={kind:"element",tag:"picture",attrs:{},children:[...C,w]}}else E=w;const L=[];return r&&L.push(`--set-image-block-size: ${r/16}rem`),b&&L.push(`--set-image-inline-size: ${b/16}rem`),{kind:"element",tag:"div",attrs:{class:"set-image","data-aspect-ratio":k&&!r?n:void 0,"data-fluid":t==="fluid","data-gravity":k&&i!=="C"?i:void 0,"data-shadow":!!s,"data-object-fit":k?"cover":void 0,"data-radius":!!l,id:f,style:L.length>0?L.join("; "):void 0},children:[E]}}function Qe(e){return h(Xe(e))}const Mi={name:"image",description:"Use `image` to render a responsive image with intrinsic, fluid, or cover fit, and optional art-directed `sources`.",output:{element:"div",class:"set-image"},content:{kind:"none"},props:{alt:{default:"",description:"Alternative text. Leave empty for decorative images.",type:{kind:"string"}},gravity:{default:"C",description:"Focal point used when cropping.",ignoredWhen:'`fit` is not `"cover"`',type:{kind:"enum",values:["N","NE","E","SE","S","SW","W","NW","C"]}},radius:{default:!1,description:"Applies the default corner radius.",type:{kind:"boolean"}},aspectRatio:{description:"Aspect ratio applied to the wrapper.",ignoredWhen:'`fit` is not `"cover"`, or `height` is set',type:{kind:"enum",values:["1:1","4:5","3:2","16:9","21:9"]}},fit:{default:"intrinsic",description:"Layout mode. `intrinsic` renders at the image's own dimensions, `fluid` scales to the container's full inline size at the active source's aspect ratio, `cover` renders a cropped fill (`object-fit: cover`) sized by the wrapper. For `fluid`, provide candidates sized for large viewports via `srcSet`/`sources` so upscaled rendering stays sharp.",type:{kind:"enum",values:["intrinsic","fluid","cover"]}},shadow:{default:!1,description:"Applies a drop shadow to the image.",type:{kind:"boolean"}},height:{description:"Height in pixels. Under `intrinsic` and `fluid`, an aspect-ratio hint — with `width`, reserves the correctly shaped box before load; rendered height follows the aspect ratio. Under `cover`, the wrapper's block size, overriding `aspectRatio`.",type:{kind:"number"}},id:{description:"DOM id.",type:{kind:"string"}},lazy:{default:!1,description:"Defers loading until the image is near the viewport.",type:{kind:"boolean"}},priority:{default:!1,description:"Marks the image as high priority for fetch.",type:{kind:"boolean"}},sizes:{description:"`sizes` attribute used with `srcSet`.",ignoredWhen:"`sources` are provided",type:{kind:"string"}},sources:{description:"Responsive sources rendered inside a `<picture>`.",type:{kind:"array",itemShape:{height:{description:"Intrinsic height in pixels.",type:{kind:"number"}},media:{description:"`media` condition evaluated for the source.",type:{kind:"string"}},sizes:{description:"`sizes` attribute for the source.",type:{kind:"string"}},srcSet:{description:"Candidate sources for this media entry.",required:!0,type:{kind:"string"}},type:{description:"MIME type for the source resources.",type:{kind:"string"}},width:{description:"Intrinsic width in pixels.",type:{kind:"number"}}}}},srcSet:{description:"Candidate sources for the fallback image.",type:{kind:"string"}},src:{description:"Image source URL.",required:!0,type:{kind:"string"}},width:{description:"Width in pixels. Under `intrinsic`, the rendered width, capped at the container; under `fluid`, an aspect-ratio hint; under `cover`, the wrapper's inline size (`aspectRatio` still derives the block size while `height` is unset).",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-object-fit",condition:{kind:"when-equals",prop:"fit",to:"cover"},value:{kind:"literal",text:"cover"}},{target:{on:"host"},attribute:"data-shadow",condition:{kind:"when-truthy",prop:"shadow"}},{target:{on:"host"},attribute:"data-radius",condition:{kind:"when-truthy",prop:"radius"}},{target:{on:"host"},attribute:"data-fluid",condition:{kind:"when-equals",prop:"fit",to:"fluid"}},{target:{on:"descendant",selector:"img"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"img"}},{target:{on:"descendant",selector:"img"},attribute:"alt",condition:{kind:"always"},value:{kind:"prop",prop:"alt"}},{target:{on:"descendant",selector:"img"},attribute:"src",condition:{kind:"always"},value:{kind:"template",pattern:"{src}"}},{target:{on:"descendant",selector:"img"},attribute:"srcset",condition:{kind:"when-non-empty",prop:"srcSet"},value:{kind:"prop",prop:"srcSet"}},{target:{on:"descendant",selector:"img"},attribute:"fetchpriority",condition:{kind:"when-truthy",prop:"priority"},value:{kind:"literal",text:"high"}},{target:{on:"descendant",selector:"img"},attribute:"loading",condition:{kind:"all",of:[{kind:"when-truthy",prop:"lazy"},{kind:"not",of:{kind:"when-truthy",prop:"priority"}}]},value:{kind:"literal",text:"lazy"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ye({align:e="center",as:n="div",children:t,gap:i="md",id:r,justify:a="start",nowrap:d}){const o=g(r);return{kind:"element",tag:n,attrs:{class:"set-inline","data-align":e==="center"?void 0:e,"data-gap":i,"data-justify":a==="start"?void 0:a,"data-nowrap":d,id:o},children:t?[{kind:"raw",html:t}]:[]}}function Ii(e){return h(Ye(e))}const Ai={name:"inline",description:"Use `inline` to lay out content in a horizontal row.",output:{element:{kind:"switch",prop:"as",cases:{div:"div",ul:"ul"}},class:"set-inline"},content:{kind:"html",prop:"children"},props:{as:{default:"div",description:"Element tag to render. `ul` children must be `<li>`.",type:{kind:"enum",values:["div","ul"]}},align:{default:"center",description:"Aligns items on the cross axis.",type:{kind:"enum",values:["start","center","end"]}},children:{description:"Items laid out in a row.",type:{kind:"html"}},gap:{default:"md",description:"Space between children.",type:{kind:"enum",values:["2xs","xs","sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},justify:{default:"start",description:"Distributes items along the main axis.",type:{kind:"enum",values:["start","center","end","between"]}},nowrap:{description:"Prevents items from wrapping onto new lines.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["start","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-gap",condition:{kind:"always"},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"data-justify",condition:{kind:"when-in",prop:"justify",values:["center","end","between"]},value:{kind:"prop",prop:"justify"}},{target:{on:"host"},attribute:"data-nowrap",condition:{kind:"when-truthy",prop:"nowrap"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Je({autocomplete:e,description:n,disabled:t,id:i,invalid:r,label:a,name:d,pattern:o,readOnly:l,required:s,size:p="md",spellcheck:c,type:u="text",value:m,inlineSize:b="full"}){const k=i.trim(),f=n?.trim(),x=e===!1?!1:e?.trim(),S=d?.trim(),v=o?.trim(),y=m;if(!k)throw new Error("id must be a non-empty string.");if(!M(k))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const w=f?`${k}-description`:void 0,E=u==="numeric",L=E?"text":u,C=v||(E?"^[0-9]*$":void 0),z=c===void 0&&E?!1:c,q=!!t,F=!q&&!!l,Z=[{kind:"element",tag:"label",attrs:{class:"label",for:k},children:[{kind:"text",value:a}]},{kind:"element",tag:"input",attrs:{"aria-describedby":w,"aria-invalid":!q&&!F&&!!r?"true":void 0,autocomplete:x===!1?"off":x||void 0,class:"input",disabled:q,id:k,inputmode:E?"numeric":void 0,name:S||void 0,pattern:C,readonly:F,required:!!s,spellcheck:z===void 0?void 0:String(z),type:L,value:y},children:[]}];return f&&Z.push({kind:"element",tag:"p",attrs:{class:"description",id:w},children:[{kind:"text",value:f}]}),{kind:"element",tag:"div",attrs:{class:"set-input","data-size":p,"data-inline-size":b==="fit"?"fit":void 0},children:Z}}function qi(e){return h(Je(e))}const Ni={name:"input",description:"Use `input` to collect a single line of text from users.",output:{element:"div",class:"set-input"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{autocomplete:{description:"Autocomplete hint. Pass `false` to disable autocomplete.",type:{kind:"union",variants:[{kind:"string"},{kind:"boolean"}]}},description:{description:"Helper text shown below the input; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},id:{description:"`id` linking the label to the input.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the input as invalid.",ignoredWhen:"`disabled` is true or `readOnly` is true",type:{kind:"boolean"}},label:{description:"Label shown above the input.",required:!0,type:{kind:"text"}},name:{description:"Name submitted with the form.",type:{kind:"string"}},pattern:{description:"Regex pattern the value must match.",type:{kind:"string"}},readOnly:{default:!1,description:"Makes the input read-only.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},required:{default:!1,description:"Marks the input as required.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},spellcheck:{description:"Enables browser spellchecking.",type:{kind:"boolean"}},type:{default:"text",description:"Input type.",type:{kind:"enum",values:["text","email","password","tel","url","numeric"]}},value:{description:"Current value.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the field fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"descendant",selector:"label"},attribute:"for",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"input"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-provided",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"input"},attribute:"readonly",condition:{kind:"all",of:[{kind:"when-truthy",prop:"readOnly"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]}},{target:{on:"descendant",selector:"input"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}},{kind:"not",of:{kind:"when-truthy",prop:"readOnly"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"input"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"input"},attribute:"inputmode",condition:{kind:"when-equals",prop:"type",to:"numeric"},value:{kind:"literal",text:"numeric"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"when-equals",prop:"type",to:"numeric"},value:{kind:"literal",text:"text"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"when-not-in",prop:"type",values:["numeric"]},value:{kind:"prop",prop:"type"}}]}};function et({id:e,label:n,size:t="md",tone:i="default",variant:r="primary"}){const a=g(e);return{kind:"element",tag:"div",attrs:{class:"set-logo","data-size":t,"data-tone":i==="neutral"?"neutral":void 0,"data-variant":r==="primary"?void 0:r,id:a},children:[{kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:n}]}]}}function Di(e){return h(et(e))}const Pi={name:"logo",description:"Use `logo` to display the brand mark.",output:{element:"div",class:"set-logo"},content:{kind:"text",prop:"label"},props:{id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Accessible label.",required:!0,type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg","xl","fill"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},variant:{default:"primary",description:"Logo variant.",type:{kind:"enum",values:["primary","secondary","typographic","graphic"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"data-variant",condition:{kind:"when-in",prop:"variant",values:["secondary","typographic","graphic"]},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function tt({banner:e,centerMain:n,children:t,footer:i,header:r,headerBorder:a,headerSize:d="md",id:o,stickyHeader:l}){const s=g(o),p=[];return e&&p.push({kind:"raw",html:e}),p.push({kind:"element",tag:"header",attrs:{class:"header"},children:[{kind:"raw",html:r}]}),p.push({kind:"element",tag:"main",attrs:{class:"main"},children:t?[{kind:"raw",html:t}]:[]}),p.push({kind:"element",tag:"footer",attrs:{class:"footer"},children:[{kind:"raw",html:i}]}),{kind:"element",tag:"div",attrs:{class:"set-page","data-center-main":n,"data-header-border":a,"data-header-size":d,"data-sticky-header":l,id:s},children:p}}function Hi(e){return h(tt(e))}const Vi={name:"page",description:"Use `page` as the primary layout for header, main, and footer regions.",output:{element:"div",class:"set-page"},content:{kind:"slots",slots:[{prop:"banner",kind:"html"},{prop:"header",kind:"html"},{prop:"children",kind:"html"},{prop:"footer",kind:"html"}]},props:{banner:{description:"Banner rendered above the header.",type:{kind:"html"}},children:{description:"Main content of the page.",type:{kind:"html"}},centerMain:{default:!1,description:"Centers the main region within the page shell.",type:{kind:"boolean"}},header:{description:"Header content.",required:!0,type:{kind:"html"}},headerBorder:{description:"Bottom border on the header. `'always'` is persistent; `'scroll'` fades in only when a sticky header is stuck (browsers without `container-type: scroll-state` fall back to always-on).",type:{kind:"enum",values:["always","scroll"]}},headerSize:{default:"md",description:"Reserves a minimum block size on the header. `--set-page-header-block-size` is exposed to descendants so persistent panels can open below the header band.",type:{kind:"enum",values:["sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},stickyHeader:{description:"When the header stays stuck to the top of the viewport.",type:{kind:"enum",values:["always","belowNotebook"]}},footer:{description:"Footer content.",required:!0,type:{kind:"html"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-center-main",condition:{kind:"when-truthy",prop:"centerMain"}},{target:{on:"host"},attribute:"data-header-border",condition:{kind:"when-provided",prop:"headerBorder"},value:{kind:"prop",prop:"headerBorder"}},{target:{on:"host"},attribute:"data-header-size",condition:{kind:"always"},value:{kind:"prop",prop:"headerSize"}},{target:{on:"host"},attribute:"data-sticky-header",condition:{kind:"when-provided",prop:"stickyHeader"},value:{kind:"prop",prop:"stickyHeader"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function it({children:e,id:n,padding:t="md",surface:i}){const r=g(n);return{kind:"element",tag:"div",attrs:{class:"set-panel","data-padding":t,"data-set-surface":i,id:r},children:e?[{kind:"raw",html:e}]:[]}}function Oi(e){return h(it(e))}const Bi={name:"panel",description:"Use `panel` to group related content in a contained region.",output:{element:"div",class:"set-panel"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the panel.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},padding:{default:"md",description:"Inner spacing scale.",type:{kind:"enum",values:["xs","sm","md","lg","xl"]}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-padding",condition:{kind:"always"},value:{kind:"prop",prop:"padding"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function nt({children:e,id:n,size:t="md",tone:i="default",variant:r="tile"}={}){const a=g(n);return{kind:"element",tag:"div",attrs:{class:"set-pattern","data-size":t,"data-tone":i==="default"?void 0:i,"data-variant":r,id:a},children:e?[{kind:"raw",html:e}]:[]}}function Ri(e={}){return h(nt(e))}const Ui={name:"pattern",description:"Use `pattern` to render repeated visual language components behind content.",output:{element:"div",class:"set-pattern"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered above the pattern.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","subtle","support"]}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl","fill"]}},variant:{default:"tile",description:"Shape used for the pattern tile.",type:{kind:"enum",values:["tile","tileLight","tileDark"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-variant",condition:{kind:"always"},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-in",prop:"tone",values:["subtle","support"]},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Wi(e){return Qe({...e,alt:"",fit:"cover",priority:!0})}function rt({children:e,contentTheme:n,id:t,media:i,surface:r}){const a=g(t),d=n?r??"default":r,o=[{kind:"element",tag:"div",attrs:{class:"image-wrapper"},children:[{kind:"raw",html:i}]}];return e&&o.push({kind:"element",tag:"div",attrs:{class:"content"},children:[{kind:"raw",html:e}]}),{kind:"element",tag:"div",attrs:{class:"set-poster","data-set-content-theme":n,"data-set-surface":d,id:a},children:o}}function Gi(e){return h(rt(e))}const $i={name:"poster",description:"Use `poster` to layer content over background media.",output:{element:"div",class:"set-poster"},content:{kind:"slots",slots:[{prop:"media",kind:"html"},{prop:"children",kind:"html"}]},props:{children:{description:"Foreground content rendered over the media.",type:{kind:"html"}},contentTheme:{description:"Absolute theme lock for foreground content over non-themeable media.",type:{kind:"enum",values:["light","dark"]}},id:{description:"DOM id.",type:{kind:"string"}},media:{description:"Background media markup. Build with `renderSetPosterImage`.",required:!0,type:{kind:"html"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"when-provided",prop:"contentTheme"},value:{kind:"prop",prop:"contentTheme"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"all",of:[{kind:"when-provided",prop:"contentTheme"},{kind:"not",of:{kind:"when-provided",prop:"surface"}}]},value:{kind:"literal",text:"default"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function at({align:e="start",children:n,hangingPunctuation:t,id:i,linkVisited:r=!0,measured:a=!0,monospaced:d,responsive:o}){const l=g(i);return{kind:"element",tag:"div",attrs:{class:"set-prose","data-align":e!=="start"?e:void 0,"data-hanging-punctuation":t,"data-link-visited":r?void 0:"off","data-measured":a,"data-monospaced":d,"data-responsive":o,id:l},children:[{kind:"raw",html:n}]}}function Fi(e){return h(at(e))}const Zi={name:"prose",description:"Use `prose` to style rich-text markup.",output:{element:"div",class:"set-prose"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the prose wrapper.",required:!0,type:{kind:"html"}},align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},hangingPunctuation:{description:"Position list markers and leading quote marks in the margin, with text aligned.",type:{kind:"enum",values:["always","notebook"]}},id:{description:"DOM id.",type:{kind:"string"}},linkVisited:{default:!0,description:"Styles visited links inside the prose.",type:{kind:"boolean"}},measured:{default:!0,description:"Caps line length for comfortable reading.",type:{kind:"boolean"}},monospaced:{default:!1,description:"Applies monospaced word spacing throughout.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales body text across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-hanging-punctuation",condition:{kind:"when-provided",prop:"hangingPunctuation"},value:{kind:"prop",prop:"hangingPunctuation"}},{target:{on:"host"},attribute:"data-link-visited",condition:{kind:"when-equals",prop:"linkVisited",to:!1},value:{kind:"literal",text:"off"}},{target:{on:"host"},attribute:"data-measured",condition:{kind:"when-truthy",prop:"measured"}},{target:{on:"host"},attribute:"data-monospaced",condition:{kind:"when-truthy",prop:"monospaced"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ot({description:e,disabled:n,id:t,invalid:i,radios:r,legend:a,name:d,orientation:o="vertical",required:l,size:s="md",value:p}){const c=t.trim(),u=d.trim(),m=p?.trim();if(!c)throw new Error("id must be a non-empty string.");if(!M(c))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!u)throw new Error("name must be a non-empty string.");if(r.length<2)throw new Error("radios must include at least 2 options.");const b=r.map((v,y)=>{const w=v.value.trim(),E=v.label.trim(),L=v.description?.trim();if(!w)throw new Error(`radios[${y}].value must be non-empty.`);if(!E)throw new Error(`radios[${y}].label must be non-empty.`);return{description:L,disabled:!!v.disabled,label:E,value:w}});if(new Set(b.map(v=>v.value)).size!==b.length)throw new Error("radios values must be unique.");const f=!!n,x=b.map(v=>{const y=!!v.disabled,w=v.description?`${c}-${v.value}-description`:void 0,E=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":w,checked:m===v.value,class:"radio",disabled:y,name:u,required:!!l&&!f&&!y,type:"radio",value:v.value},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:v.label}]}]}];return v.description&&E.push({kind:"element",tag:"p",attrs:{class:"radio-description",id:w},children:[{kind:"text",value:v.description}]}),{kind:"element",tag:"div",attrs:{class:"radio-field"},children:E}});return le({children:h({kind:"element",tag:"div",attrs:{class:"set-radios","data-orientation":o,"data-size":s},children:x}),description:e,disabled:f,id:c,invalid:i,legend:a})}function ji(e){return h(ot(e))}const Ki={name:"radios",description:"Use `radios` to let users select one option from a short list.",output:{element:"fieldset",class:"set-fieldset"},content:{kind:"structured",prop:"radios"},props:{description:{description:"Helper text shown below the legend.",type:{kind:"string"}},disabled:{default:!1,description:"Disables every option in the group.",type:{kind:"boolean"}},id:{description:"Unique id used to associate the group with its descriptions.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the group as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},radios:{description:"Options shown in the group.",required:!0,type:{kind:"array",itemShape:{description:{description:"Optional per-item helper text.",type:{kind:"string"}},disabled:{default:!1,description:"Optional per-item disabled override.",type:{kind:"boolean"}},label:{description:"Radio option label.",required:!0,type:{kind:"text"}},value:{description:"Submitted value and selection key.",required:!0,type:{kind:"string"}}}}},legend:{description:"Group label.",required:!0,type:{kind:"text"}},name:{description:"Form field name shared by all options.",required:!0,type:{kind:"string"}},orientation:{default:"vertical",description:"Layout direction.",type:{kind:"enum",values:["vertical","horizontal"]}},required:{default:!1,description:"Requires a selection before submission.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Currently selected value.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"div.set-radios"},attribute:"data-orientation",condition:{kind:"always"},value:{kind:"prop",prop:"orientation"}},{target:{on:"descendant",selector:"div.set-radios"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"radio"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"radio"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"always"},value:{kind:"prop",prop:"name"}}]}};function dt({appOverscrollBehavior:e,appRoot:n,brand:t="mnsp",children:i,dir:r,id:a,lang:d,theme:o}){const l=g(a);return{kind:"element",tag:"div",attrs:{class:"set","data-app-root":n,"data-app-overscroll-behavior":e==="none"?"none":void 0,"data-set-brand":t,"data-set-theme":o,id:l,lang:d===""?void 0:d,dir:r},children:i?[{kind:"raw",html:i}]:[]}}function Xi(e){return h(dt(e))}const Qi={name:"root",description:"Mandatory top-level `root` wrapper for the Set system.",output:{element:"div",class:"set"},content:{kind:"html",prop:"children"},props:{appOverscrollBehavior:{description:"Disables overscroll bounce for app-shell integrations.",type:{kind:"enum",values:["none"]}},appRoot:{default:!1,description:"Marks this wrapper as the app root.",type:{kind:"boolean"}},brand:{default:"mnsp",description:"Brand identity applied to the wrapper.",type:{kind:"enum",values:["mnsp","wrfr"]}},children:{description:"Content rendered inside the root.",required:!0,type:{kind:"html"}},dir:{description:"Text direction.",type:{kind:"enum",values:["ltr","rtl"]}},id:{description:"DOM id.",type:{kind:"string"}},lang:{description:"BCP47 language tag (e.g. `en-GB`).",type:{kind:"string"}},theme:{description:"Colour theme.",type:{kind:"enum",values:["light","dark"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-app-overscroll-behavior",condition:{kind:"when-equals",prop:"appOverscrollBehavior",to:"none"},value:{kind:"literal",text:"none"}},{target:{on:"host"},attribute:"data-app-root",condition:{kind:"when-truthy",prop:"appRoot"}},{target:{on:"host"},attribute:"data-set-brand",condition:{kind:"always"},value:{kind:"prop",prop:"brand"}},{target:{on:"host"},attribute:"data-set-theme",condition:{kind:"when-provided",prop:"theme"},value:{kind:"prop",prop:"theme"}},{target:{on:"host"},attribute:"dir",condition:{kind:"when-provided",prop:"dir"},value:{kind:"prop",prop:"dir"}},{target:{on:"host"},attribute:"lang",condition:{kind:"when-non-empty",prop:"lang"},value:{kind:"prop",prop:"lang"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function st({id:e,label:n,size:t="md",tone:i="default"}={}){const r=g(e),d=[{kind:"element",tag:"svg",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 1200",fill:"currentColor"},children:[[60,60],[60,360],[60,660],[60,960],[360,960],[360,660],[360,360],[360,60]].map(([o,l])=>({kind:"element",tag:"rect",attrs:{class:"cell",x:String(o),y:String(l),width:"180",height:"180"},children:[]}))}];return n&&d.push({kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:n}]}),{kind:"element",tag:"span",attrs:{class:"set-spinner","data-size":t,"data-tone":i==="brand"?"brand":void 0,id:r,role:n?"status":void 0},children:d}}function Yi(e={}){return h(st(e))}const Ji={name:"spinner",description:"Use `spinner` to indicate loading or in-progress state.",output:{element:"span",class:"set-spinner"},content:{kind:"text",prop:"label"},props:{id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Accessible status label announced to assistive tech.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["2xs","xs","sm","md","lg","xl","2xl","fill"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"brand"},value:{kind:"literal",text:"brand"}},{target:{on:"host"},attribute:"role",condition:{kind:"when-non-empty",prop:"label"},value:{kind:"literal",text:"status"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function lt({align:e="stretch",as:n="div",children:t,gap:i="md",id:r,responsive:a}){const d=g(r);return{kind:"element",tag:n,attrs:{class:"set-stack","data-align":e==="stretch"?void 0:e,"data-gap":i,"data-responsive":a,id:d},children:t?[{kind:"raw",html:t}]:[]}}function en(e){return h(lt(e))}const tn={name:"stack",description:"Use `stack` to lay out content in a vertical column.",output:{element:{kind:"switch",prop:"as",cases:{div:"div",ul:"ul"}},class:"set-stack"},content:{kind:"html",prop:"children"},props:{align:{default:"stretch",description:"Aligns items on the cross axis.",type:{kind:"enum",values:["stretch","start","center","end"]}},as:{default:"div",description:"Element tag to render. `ul` children must be `<li>`.",type:{kind:"enum",values:["div","ul"]}},children:{description:"Items laid out in a column.",type:{kind:"html"}},gap:{default:"md",description:"Space between children.",type:{kind:"enum",values:["none","xs","sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},responsive:{default:!1,description:"Scales spacing across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["start","center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-gap",condition:{kind:"always"},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function pt({children:e,contentTheme:n,id:t,variant:i="default"}){const r=g(t);return{kind:"element",tag:"div",attrs:{class:"set-surface","data-set-content-theme":n,"data-set-surface":i,id:r},children:[{kind:"raw",html:e}]}}function nn(e){return h(pt(e))}const rn={name:"surface",description:"Use `surface` to set a colour context for nested content.",output:{element:"div",class:"set-surface"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the surface.",required:!0,type:{kind:"html"}},contentTheme:{description:"Absolute theme lock for content rendered inside the surface.",type:{kind:"enum",values:["light","dark"]}},id:{description:"DOM id.",type:{kind:"string"}},variant:{default:"default",description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"when-provided",prop:"contentTheme"},value:{kind:"prop",prop:"contentTheme"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"always"},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ct({checked:e,description:n,disabled:t,id:i,label:r,name:a,size:d="md",value:o}){const l=g(i),s=n?.trim();if(s&&!l)throw new Error("id must be provided when description is provided.");const p=s?`${l}-description`:void 0,c=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":p,checked:!!e,class:"switch",disabled:!!t,id:l,name:a||void 0,role:"switch",type:"checkbox",value:o||void 0},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:r}]}]}];return s&&c.push({kind:"element",tag:"p",attrs:{class:"description",id:p},children:[{kind:"text",value:s}]}),{kind:"element",tag:"div",attrs:{class:"set-switch","data-size":d},children:c}}function an(e){return h(ct(e))}const on={name:"switch",description:"Use `switch` to let users instantly toggle a setting on or off.",output:{element:"div",class:"set-switch"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{checked:{default:!1,description:"Whether the switch is on.",type:{kind:"boolean"}},description:{description:"Helper text shown below the label.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the switch.",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`description` is provided",type:{kind:"string"}},label:{description:"Label text.",required:!0,type:{kind:"text"}},name:{description:"Form field name.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Submitted value when checked.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"switch"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"role",condition:{kind:"always"},value:{kind:"literal",text:"switch"}},{target:{on:"descendant",selector:"input"},attribute:"checked",condition:{kind:"when-truthy",prop:"checked"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ut({autocomplete:e,description:n,disabled:t,id:i,invalid:r,label:a,name:d,readOnly:o,required:l,resize:s="vertical",rows:p=2,size:c="md",spellcheck:u,value:m,inlineSize:b="full"}){const k=i.trim(),f=n?.trim(),x=e===!1?!1:e?.trim(),S=d?.trim(),v=m;if(!k)throw new Error("id must be a non-empty string.");if(!M(k))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!Number.isInteger(p)||p<2)throw new Error("rows must be an integer greater than or equal to 2.");const y=f?`${k}-description`:void 0,w=!!t,E=!w&&!!o,C=[{kind:"element",tag:"label",attrs:{class:"label",for:k},children:[{kind:"text",value:a}]},{kind:"element",tag:"textarea",attrs:{"aria-describedby":y,"aria-invalid":!w&&!E&&!!r?"true":void 0,autocomplete:x===!1?"off":x||void 0,class:"textarea",disabled:w,id:k,name:S||void 0,readonly:E,required:!!l,rows:String(p),spellcheck:u===void 0?void 0:String(u)},children:[{kind:"text",value:v||""}]}];return f&&C.push({kind:"element",tag:"p",attrs:{class:"description",id:y},children:[{kind:"text",value:f}]}),{kind:"element",tag:"div",attrs:{class:"set-textarea","data-resize":s==="none"?"none":void 0,"data-size":c,"data-inline-size":b==="fit"?"fit":void 0},children:C}}function dn(e){return h(ut(e))}const sn={name:"textarea",description:"Use `textarea` to collect multiple lines of text from users.",output:{element:"div",class:"set-textarea"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"value",kind:"text"},{prop:"description",kind:"text"}]},props:{autocomplete:{description:"Browser autocomplete hint. Pass `false` to disable.",type:{kind:"union",variants:[{kind:"string"},{kind:"boolean"}]}},description:{description:"Helper text shown below the textarea; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the textarea.",type:{kind:"boolean"}},id:{description:"`id` used to associate the textarea with its label.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the textarea as invalid.",ignoredWhen:"`disabled` is true or `readOnly` is true",type:{kind:"boolean"}},label:{description:"Label text.",required:!0,type:{kind:"text"}},name:{description:"Form field name.",type:{kind:"string"}},readOnly:{default:!1,description:"Prevents editing while keeping the value visible.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},required:{default:!1,description:"Requires a value before submission.",type:{kind:"boolean"}},resize:{default:"vertical",description:"How the user can resize the textarea.",type:{kind:"enum",values:["vertical","none"]}},rows:{default:2,description:"Number of visible rows.",type:{kind:"number",min:2,max:10,integer:!0}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},spellcheck:{description:"Whether the browser checks spelling.",type:{kind:"boolean"}},value:{description:"Current value.",type:{kind:"string"}},inlineSize:{default:"full",description:"How the textarea fills its container.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"data-resize",condition:{kind:"when-equals",prop:"resize",to:"none"},value:{kind:"literal",text:"none"}},{target:{on:"descendant",selector:"label"},attribute:"for",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"textarea"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"textarea"}},{target:{on:"descendant",selector:"textarea"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"textarea"},attribute:"rows",condition:{kind:"always"},value:{kind:"prop",prop:"rows"}},{target:{on:"descendant",selector:"textarea"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"textarea"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"textarea"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"textarea"},attribute:"readonly",condition:{kind:"all",of:[{kind:"when-truthy",prop:"readOnly"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]}},{target:{on:"descendant",selector:"textarea"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}},{kind:"not",of:{kind:"when-truthy",prop:"readOnly"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"textarea"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"textarea"},attribute:"spellcheck",condition:{kind:"when-provided",prop:"spellcheck"},value:{kind:"prop",prop:"spellcheck"}}]}};function ln(){fe(),we(),Ee(),Ce(),Le(),Ie(),qe(),De()}exports.SET_ALERT_EVENT_BEFORE_DISMISS=ie;exports.SET_ALERT_EVENT_DISMISS=ne;exports.SET_ALERT_SPEC=St;exports.SET_ALERT_TAG_NAME=P;exports.SET_AVATAR_SPEC=ti;exports.SET_BADGE_SPEC=ni;exports.SET_BANNER_EVENT_BEFORE_DISMISS=ae;exports.SET_BANNER_EVENT_DISMISS=oe;exports.SET_BANNER_SPEC=_t;exports.SET_BANNER_TAG_NAME=V;exports.SET_BLOCKQUOTE_SPEC=di;exports.SET_BOX_SPEC=li;exports.SET_BUTTON_SPEC=bt;exports.SET_CARD_SPEC=ci;exports.SET_CHECKBOX_SPEC=hi;exports.SET_CONTAINER_SPEC=mi;exports.SET_DETAILS_SPEC=bi;exports.SET_DIVIDER_SPEC=fi;exports.SET_EXPANDER_SPEC=Dt;exports.SET_FIELDSET_SPEC=wi;exports.SET_FIGURE_SPEC=Ei;exports.SET_GRID_ITEM_SPEC=Ti;exports.SET_GRID_SPEC=zi;exports.SET_HEADING_SPEC=Li;exports.SET_ICON_NAMES=mt;exports.SET_ICON_SPEC=gt;exports.SET_IMAGE_SPEC=Mi;exports.SET_INLINE_SPEC=Ai;exports.SET_INPUT_SPEC=Ni;exports.SET_LIGHTSWITCH_EVENT_CHANGE=de;exports.SET_LIGHTSWITCH_SPEC=At;exports.SET_LIGHTSWITCH_STORAGE_KEY=j;exports.SET_LIGHTSWITCH_TAG_NAME=O;exports.SET_LINK_SPEC=Ct;exports.SET_LOGO_SPEC=Pi;exports.SET_MENU_EVENT_CHOOSE=se;exports.SET_MENU_SPEC=Nt;exports.SET_MENU_TAG_NAME=B;exports.SET_NAV_SPEC=Ht;exports.SET_NAV_TAG_NAME=R;exports.SET_PAGE_SPEC=Vi;exports.SET_PANEL_SPEC=Bi;exports.SET_PATTERN_SPEC=Ui;exports.SET_POSTER_SPEC=$i;exports.SET_PROSE_SPEC=Zi;exports.SET_RADIOS_SPEC=Ki;exports.SET_RANGE_SPEC=Ot;exports.SET_RANGE_TAG_NAME=U;exports.SET_ROOT_SPEC=Qi;exports.SET_SIDEBAR_SPEC=Wt;exports.SET_SIDEBAR_TAG_NAME=W;exports.SET_SPINNER_SPEC=Ji;exports.SET_STACK_SPEC=tn;exports.SET_SURFACE_SPEC=rn;exports.SET_SWITCH_SPEC=on;exports.SET_TEXTAREA_SPEC=sn;exports.SET_TEXT_SPEC=ai;exports.SET_VIDEO_SPEC=Ft;exports.SET_VIDEO_TAG_NAME=G;exports.buildSetAlert=ve;exports.buildSetAvatar=He;exports.buildSetBadge=Ve;exports.buildSetBanner=ye;exports.buildSetBlockquote=Oe;exports.buildSetBox=Be;exports.buildSetButton=X;exports.buildSetCard=Re;exports.buildSetCheckbox=Ue;exports.buildSetContainer=We;exports.buildSetDetails=Ge;exports.buildSetDivider=$e;exports.buildSetExpander=ze;exports.buildSetFieldset=le;exports.buildSetFigure=Fe;exports.buildSetGrid=Ze;exports.buildSetGridItem=je;exports.buildSetHeading=Ke;exports.buildSetIcon=A;exports.buildSetImage=Xe;exports.buildSetInline=Ye;exports.buildSetInput=Je;exports.buildSetLightswitch=Se;exports.buildSetLink=re;exports.buildSetLogo=et;exports.buildSetMenu=xe;exports.buildSetNav=_e;exports.buildSetPage=tt;exports.buildSetPanel=it;exports.buildSetPattern=nt;exports.buildSetPoster=rt;exports.buildSetProse=at;exports.buildSetRadios=ot;exports.buildSetRange=Me;exports.buildSetRoot=dt;exports.buildSetSidebar=Ae;exports.buildSetSpinner=st;exports.buildSetStack=lt;exports.buildSetSurface=pt;exports.buildSetSwitch=ct;exports.buildSetText=$;exports.buildSetTextarea=ut;exports.buildSetVideo=Ne;exports.defineSetAlert=fe;exports.defineSetBanner=we;exports.defineSetComponents=ln;exports.defineSetLightswitch=Ee;exports.defineSetMenu=Ce;exports.defineSetNav=Le;exports.defineSetRange=Ie;exports.defineSetSidebar=qe;exports.defineSetVideo=De;exports.getSetInitials=Pe;exports.renderSetAlert=wt;exports.renderSetAvatar=ei;exports.renderSetBadge=ii;exports.renderSetBanner=Tt;exports.renderSetBlockquote=oi;exports.renderSetBox=si;exports.renderSetButton=Q;exports.renderSetCard=pi;exports.renderSetCheckbox=ui;exports.renderSetContainer=ki;exports.renderSetDetails=gi;exports.renderSetDivider=vi;exports.renderSetExpander=Te;exports.renderSetFieldset=yi;exports.renderSetFigure=Si;exports.renderSetGrid=xi;exports.renderSetGridItem=Ci;exports.renderSetHeading=_i;exports.renderSetIcon=be;exports.renderSetImage=Qe;exports.renderSetInline=Ii;exports.renderSetInput=qi;exports.renderSetLightswitch=It;exports.renderSetLink=xt;exports.renderSetLogo=Di;exports.renderSetMenu=qt;exports.renderSetNav=Pt;exports.renderSetPage=Hi;exports.renderSetPanel=Oi;exports.renderSetPattern=Ri;exports.renderSetPoster=Gi;exports.renderSetPosterImage=Wi;exports.renderSetProse=Fi;exports.renderSetRadios=ji;exports.renderSetRange=Vt;exports.renderSetRoot=Xi;exports.renderSetSidebar=Ut;exports.renderSetSpinner=Yi;exports.renderSetStack=en;exports.renderSetSurface=nn;exports.renderSetSwitch=an;exports.renderSetText=ri;exports.renderSetTextarea=dn;exports.renderSetVideo=Gt;exports.serializeSetNode=h;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const kt=new Set(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"]);function me(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function gt(e){return Object.entries(e).flatMap(([n,t])=>t===!1||t==null?[]:t===!0?[n]:[`${n}="${me(String(t))}"`]).join(" ")}function h(e){if(e.kind==="text")return me(e.value);if(e.kind==="raw")return e.html;const n=gt(e.attrs),t=n?`<${e.tag} ${n}>`:`<${e.tag}>`;if(kt.has(e.tag))return t;const i=e.children.map(h).join("");return`${t}${i}</${e.tag}>`}function M(e){return/^[A-Za-z][\w:-]*$/.test(e)}function g(e){if(e===void 0)return;const n=e.trim();if(n){if(!M(n))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");return n}}function N(e){return e==null?void 0:e.trim().replace(/\s+/g," ")||void 0}const ke={adjustment:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21 5L10 5M10 5C10 6.10457 9.10457 7 8 7C6.89543 7 6 6.10457 6 5M10 5C10 3.89543 9.10457 3 8 3C6.89543 3 6 3.89543 6 5M6 5L3 5M21 19H10M10 19C10 20.1046 9.10457 21 8 21C6.89543 21 6 20.1046 6 19M10 19C10 17.8954 9.10457 17 8 17C6.89543 17 6 17.8954 6 19M3 12H14M14 12C14 13.1046 14.8954 14 16 14C17.1046 14 18 13.1046 18 12M14 12C14 10.8954 14.8954 10 16 10C17.1046 10 18 10.8954 18 12M6 19H3M18 12H21","stroke-linecap":"square"}}]}],"arrow-down":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 13.6L12 19.1L6.5 13.6M12 17.85V4.85","stroke-linecap":"square"}}]}],"arrow-left":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M11 6.5L5.5 12L11 17.5M6.75 12H19.75","stroke-linecap":"square"}}]}],"arrow-left-right-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M15.5 4L19 7.5L15.5 11M17.75 7.5H5.5M8.5 20L5 16.5L8.5 13M6.25 16.5H18.5","stroke-linecap":"square"}}]}],"arrow-right":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M13 17.5L18.5 12L13 6.5M17.25 12L4.25 12","stroke-linecap":"square"}}]}],"arrow-up":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 10.5L12 5L6.5 10.5M12 6.25V19.25","stroke-linecap":"square"}}]}],"arrow-up-down-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M7.5 6.25V18.5M13 15.5L16.5 19L20 15.5M16.5 17.75V5.50001M11 8.5L7.5 5L4 8.5","stroke-linecap":"square"}}]}],check:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5708 7.37842L10.3785 16.5708L5.42871 11.6211","stroke-linecap":"square"}}]}],"check-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M16.5 9L10.5 15L7.5 12","stroke-linecap":"square"}}]}],"chevron-down":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 9.5L12 15L6.5 9.5","stroke-linecap":"square"}}]}],"chevron-right":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9.5 17.5L15 12L9.5 6.5","stroke-linecap":"square"}}]}],circle:[{tag:"g",attrs:{},children:[{tag:"circle",attrs:{cx:"12",cy:"12",r:"10","stroke-linecap":"square"}}]}],"city-6":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M12 21V16M7 21H2V9H7V21ZM22 7V21H17V7H22Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M17 3H7V21H17V3Z","stroke-linecap":"square"}}]}],close:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16.9503 7.05029L12.0005 12M12.0005 12L7.05078 16.9498M12.0005 12L16.9503 16.9498M12.0005 12L7.05078 7.05029","stroke-linecap":"square"}}]}],copy:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M10 10H21V21H10V10Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M14 6.5V3L3 3L3 14H6.5","stroke-linecap":"square"}}]}],download:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16.5 10.5L12 15L7.5 10.5M12 13.75V4","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M20.5 15V20H3.5V15","stroke-linecap":"square"}}]}],enter:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M5.75 16H16C17.6569 16 19 14.6569 19 13L19 5M8 12.5L4.5 16L8 19.5","stroke-linecap":"square"}}]}],"error-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 7.5V13M12 16.5H12.0039V16.5039H12V16.5Z","stroke-linecap":"square"}}]}],"error-triangle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M12.0003 3L22.2194 20.7H1.78125L12.0003 3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 10.5V14M12 17.5H12.0039V17.5039H12V17.5Z","stroke-linecap":"square"}}]}],horizontal:[{tag:"g",attrs:{},children:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 11H21V21H3V11Z"}},{tag:"path",attrs:{d:"M3 3H21V7H3V3Z"}}]}]}],image:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 16V3H21V21H20M3 16V21H20M3 16L9 10L20 21"}},{tag:"circle",attrs:{cx:"15.75",cy:"8.25",r:"2"}}]}],"info-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 16.5L12 11M12 7.5L11.9961 7.5L11.9961 7.49609L12 7.49609L12 7.5Z","stroke-linecap":"square"}}]}],jump:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9 4L4 4L4 20L20 20L20 15","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M19.25 4.75L12 12M14 4H20L20 10","stroke-linecap":"square"}}]}],layers:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M4.5 6.125L12 3L19.5 6.125L12 9.25L4.5 6.125Z"}},{tag:"path",attrs:{d:"M3 11.5005L12 15.3771L21 11.5005M21 17.5005L12 21.3771L3 17.5005"}}]}],link:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M11.6762 6.99023L13.9998 4.6666C15.4726 3.19382 17.8604 3.19382 19.3332 4.6666C20.806 6.13938 20.806 8.52723 19.3332 10L17.0096 12.3236M6.98974 11.6766L4.66611 14.0003C3.19333 15.4731 3.19333 17.8609 4.66611 19.3337C6.13889 20.8065 8.52675 20.8065 9.99953 19.3337L12.3232 17.0101M13.9985 9.99989L9.99847 14","stroke-linecap":"square"}}]}],member:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16 20V19C16 16.7909 14.2091 15 12 15H5C2.79086 15 1 16.7909 1 19V20M12.5 7C12.5 9.20914 10.7091 11 8.5 11C6.29086 11 4.5 9.20914 4.5 7C4.5 4.79086 6.29086 3 8.5 3C10.7091 3 12.5 4.79086 12.5 7Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M15.5 11C17.7091 11 19.5 9.20914 19.5 7C19.5 4.79086 17.7091 3 15.5 3M23 20V19C23 16.7909 21.2091 15 19 15","stroke-linecap":"square"}}]}],moon:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M20.5387 14.8522C20.0408 14.9492 19.5263 15 19 15C14.5817 15 11 11.4183 11 7C11 5.54296 11.3194 4.17663 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C15.9737 21 19.3459 18.4248 20.5387 14.8522Z"}}]}],"panel-left":[{tag:"path",attrs:{d:"M3 3H21V21H3V3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M9 3V21","stroke-linecap":"square"}}],pantone:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3.35389 10.3333L20.8245 10.3333L19.0009 5L3.35389 10.3333ZM3.35389 10.3333L17.1433 5.63318L14.1465 1.43164L2.99942 10.3359M3.35389 10.3333L2.99942 10.3359M2.99942 10.3359H2.5"}},{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M6.28516 15.1641H6.28906V15.168H6.28516V15.1641Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M22 10.333V19.9997L2 19.9997L2 10.333L22 10.333Z","stroke-linecap":"square"}}]}]}],play:[{tag:"path",attrs:{fill:"currentColor",d:"M18.25 11.9998L8.5 17.6289L8.5 6.37061L18.25 11.9998Z"}}],rectangle:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 3H21V21H3z","stroke-linecap":"square"}}]}],refresh:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21.448 13C20.9483 17.7767 16.909 21.5 12 21.5C8.18227 21.5 4.89052 19.248 3.38065 16M2.5 20.5V15.5H5.5M2.55176 11C3.05145 6.22334 7.09079 2.5 11.9998 2.5C15.8175 2.5 19.1092 4.75197 20.6191 8M21.4998 3.5V8.5H18.4998","stroke-linecap":"square"}}]}],"robot-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5 21V19.5C19.5 17.2909 17.7091 15.5 15.5 15.5H8.5C6.29086 15.5 4.5 17.2909 4.5 19.5V21M12 4V2M10 12H14C16.2091 12 18 10.2091 18 8C18 5.79086 16.2091 4 14 4H10C7.79086 4 6 5.79086 6 8C6 10.2091 7.79086 12 10 12ZM10.25 8C10.25 8.13807 10.1381 8.25 10 8.25C9.86193 8.25 9.75 8.13807 9.75 8C9.75 7.86193 9.86193 7.75 10 7.75C10.1381 7.75 10.25 7.86193 10.25 8ZM14 8.25C13.8619 8.25 13.75 8.13807 13.75 8C13.75 7.86193 13.8619 7.75 14 7.75C14.1381 7.75 14.25 7.86193 14.25 8C14.25 8.13807 14.1381 8.25 14 8.25Z","stroke-linecap":"square"}}]}],search:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M15.8027 15.8037L21.106 21.107","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033Z","stroke-linecap":"square"}}]}],"setting-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9.40811 4.95996L10.0001 2H14.0001L14.5921 4.95996C15.4027 5.25851 16.1475 5.69306 16.7989 6.23595L19.6604 5.26796L21.6604 8.73206L19.3922 10.7254C19.4632 11.1396 19.5001 11.5655 19.5001 12C19.5001 12.4345 19.4632 12.8604 19.3922 13.2747L21.6604 15.268L19.6604 18.7321L16.7989 17.7641C16.1475 18.3069 15.4027 18.7415 14.5921 19.04L14.0001 22H10.0001L9.40811 19.04C8.5975 18.7415 7.85268 18.3069 7.20131 17.7641L4.33984 18.7321L2.33984 15.268L4.60798 13.2747C4.53705 12.8604 4.5001 12.4345 4.5001 12C4.5001 11.5655 4.53705 11.1396 4.60797 10.7254L2.33984 8.73206L4.33984 5.26796L7.20129 6.23595C7.85266 5.69306 8.59749 5.25851 9.40811 4.95996Z","fill-rule":"evenodd","stroke-linecap":"square","clip-rule":"evenodd"}},{tag:"path",attrs:{d:"M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z","stroke-linecap":"square"}}]}],"sticky-note":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M20 14H14V20M3 3H21V14L14 21H3V3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M7 9H17M7 13H10","stroke-linecap":"square"}}]}],sunny:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z"}},{tag:"path",attrs:{d:"M12 21V22M12 2V3M3 12H2M22 12H21M5.63603 18.3635L4.92892 19.0706M19.0711 4.92848L18.364 5.63559M5.63601 5.63563L4.9289 4.92852M19.071 19.0707L18.3639 18.3636","stroke-linecap":"square"}}]}],swap:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21 14.5H4L9 19.5M3 9.5L20 9.5L15 4.5","stroke-linecap":"square"}}]}],"user-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5 20V19C19.5 16.7909 17.7091 15 15.5 15H8.5C6.29086 15 4.5 16.7909 4.5 19V20M16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3C14.2091 3 16 4.79086 16 7Z","stroke-linecap":"square"}}]}],"view-list":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 5H21M3 12H21M3 19H21","stroke-linecap":"square"}}]}]},bt=Object.keys(ke);function ge(e){return e.map(n=>({kind:"element",tag:n.tag,attrs:n.attrs,children:n.children?ge(n.children):[]}))}function A({ariaHidden:e=!0,id:n,mirrored:t,name:i,size:r="md",title:a}){const d=ke[i];if(!d)throw new Error(`Unknown icon name: ${i}`);const o=g(n),s=a?.trim();if(!e&&!s)throw new Error("title must be non-empty when ariaHidden is false.");if(!e&&!o)throw new Error("id must be provided when ariaHidden is false.");const l=e?void 0:`${o}-title`,p=[];return e||p.push({kind:"element",tag:"title",attrs:{id:l},children:[{kind:"text",value:s}]}),p.push(...ge(d)),{kind:"element",tag:"svg",attrs:{"aria-hidden":e?"true":void 0,"aria-labelledby":l,class:"set-icon","data-mirrored":t,"data-size":r,fill:"none",height:"24",id:o,role:e?void 0:"img",stroke:"currentColor","stroke-width":"1.75",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},children:p}}function be(e){return h(A(e))}const vt={name:"icon",description:"Use `icon` to render a Set icon.",output:{element:"svg",class:"set-icon"},content:{kind:"none"},props:{ariaHidden:{default:!0,description:"Hides the icon from assistive technology. Decorative by default; set to false for a labelled icon (then `title` and `id` are required).",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`ariaHidden` is false",type:{kind:"string"}},mirrored:{description:"Mirrors the icon horizontally.",type:{kind:"enum",values:["always","rtl"]}},name:{description:"Set icon name.",required:!0,type:{kind:"iconName"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["2xs","xs","sm","md","lg","fill"]}},title:{description:"Accessible title announced by assistive technology.",requiredWhen:"`ariaHidden` is false",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"aria-hidden",condition:{kind:"when-truthy",prop:"ariaHidden"},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"data-mirrored",condition:{kind:"when-provided",prop:"mirrored"},value:{kind:"prop",prop:"mirrored"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"fill",condition:{kind:"always"},value:{kind:"literal",text:"none"}},{target:{on:"host"},attribute:"height",condition:{kind:"always"},value:{kind:"literal",text:"24"}},{target:{on:"host"},attribute:"role",condition:{kind:"not",of:{kind:"when-truthy",prop:"ariaHidden"}},value:{kind:"literal",text:"img"}},{target:{on:"host"},attribute:"stroke",condition:{kind:"always"},value:{kind:"literal",text:"currentColor"}},{target:{on:"host"},attribute:"stroke-width",condition:{kind:"always"},value:{kind:"literal",text:"1.75"}},{target:{on:"host"},attribute:"viewBox",condition:{kind:"always"},value:{kind:"literal",text:"0 0 24 24"}},{target:{on:"host"},attribute:"xmlns",condition:{kind:"always"},value:{kind:"literal",text:"http://www.w3.org/2000/svg"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function X(e){const{appearance:n="outline",controls:t,disabled:i,disclosure:r,form:a,haspopup:d,id:o,icon:s,iconMirrored:l,iconPlacement:p="start",label:c,labelVisibility:u="visible",name:k,size:b="md",tone:m="default",type:f,value:x}=e,S=s||void 0,v=!!S;if(u!=="visible"&&!v)throw new Error("labelVisibility requires icon when label is not visible.");const y=v&&S?{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[{kind:"raw",html:be({ariaHidden:!0,mirrored:l,name:S,size:"fill"})}]}:null,w={kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:c}]};return{kind:"element",tag:"button",attrs:{"aria-controls":r&&t||void 0,"aria-expanded":r?"false":void 0,"aria-haspopup":d||void 0,class:"set-button","data-appearance":n,"data-label-visibility":u==="visible"?void 0:u,"data-size":b,"data-tone":m==="neutral"?"neutral":void 0,disabled:!!i,form:a||void 0,id:o||void 0,name:k||void 0,type:f||"button",value:x||void 0},children:y?p==="end"?[w,y]:[y,w]:[w]}}function Q(e){return h(X(e))}const ft={name:"button",description:"Use `button` to let users trigger actions.",output:{element:"button",class:"set-button"},content:{kind:"text",prop:"label"},props:{appearance:{default:"outline",description:"Visual appearance.",type:{kind:"enum",values:["outline","solid","text"]}},controls:{description:"`id` of the element this button controls.",ignoredWhen:"`disclosure` is false",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},disclosure:{default:!1,description:"Marks the button as a disclosure toggle for another element.",type:{kind:"boolean"}},form:{description:"`id` of the form this button belongs to.",type:{kind:"string"}},haspopup:{description:"Signals that activating the button opens a popup of this type.",type:{kind:"enum",values:["menu"]}},icon:{description:"Icon shown alongside the label.",requiredWhen:"`labelVisibility` is hidden or hiddenBelowTablet",type:{kind:"iconName"}},iconMirrored:{description:"Mirrors the icon horizontally.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["always","rtl"]}},iconPlacement:{default:"start",description:"Where the icon sits relative to the label.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["start","end"]}},id:{description:"`id` for the button.",type:{kind:"string"}},label:{description:"Accessible label.",required:!0,type:{kind:"text"}},labelVisibility:{default:"visible",description:"How the label is shown. Hidden values require an icon.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}},name:{description:"Name submitted with the form.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},type:{default:"button",description:"Native button type.",type:{kind:"enum",values:["button","submit"]}},value:{description:"Value submitted with the form.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}},{target:{on:"host"},attribute:"data-appearance",condition:{kind:"always"},value:{kind:"prop",prop:"appearance"}},{target:{on:"host"},attribute:"data-label-visibility",condition:{kind:"when-in",prop:"labelVisibility",values:["hidden","hiddenBelowTablet"]},value:{kind:"prop",prop:"labelVisibility"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-expanded",condition:{kind:"when-truthy",prop:"disclosure"},value:{kind:"literal",text:"false"}},{target:{on:"host"},attribute:"aria-controls",condition:{kind:"all",of:[{kind:"when-truthy",prop:"disclosure"},{kind:"when-non-empty",prop:"controls"}]},value:{kind:"prop",prop:"controls"}},{target:{on:"host"},attribute:"aria-haspopup",condition:{kind:"when-provided",prop:"haspopup"},value:{kind:"prop",prop:"haspopup"}},{target:{on:"host"},attribute:"form",condition:{kind:"when-non-empty",prop:"form"},value:{kind:"prop",prop:"form"}},{target:{on:"host"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"host"},attribute:"type",condition:{kind:"always"},value:{kind:"prop",prop:"type"}},{target:{on:"host"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}}]}},D="set-alert",ie="set-alert-before-dismiss",ne="set-alert-dismiss",H="Dismiss alert";function yt(e,n){const t=n.createElement("div");return t.setAttribute("data-part","close"),t.innerHTML=Q({appearance:"text",icon:"close",label:e,labelVisibility:"hidden",size:"sm",tone:"neutral"}),t}function wt(e){switch(e){case"success":return"check-circle";case"warning":return"error-triangle";case"error":return"error-circle";case"info":return"info-circle";default:return"sticky-note"}}function St(e){return e==="warning"||e==="error"?"alert":"status"}function ve({dismissible:e,dismissibleLabel:n=H,id:t,inlineSize:i="full",message:r,size:a="md",tone:d,title:o}){const s=g(t),l=n.trim()===""?H:n,p=[];return o&&p.push({kind:"element",tag:"p",attrs:{class:"title"},children:[{kind:"text",value:o}]}),p.push({kind:"element",tag:"p",attrs:{class:"message"},children:[{kind:"text",value:r}]}),{kind:"element",tag:D,attrs:{class:"set-alert","data-dismissible":e,"data-dismissible-label":e?l:void 0,"data-inline-size":i==="fit"?"fit":void 0,"data-size":a,"data-tone":d||void 0,id:s,role:St(d)},children:[{kind:"element",tag:"div",attrs:{class:"icon-wrapper"},children:[A({ariaHidden:!0,name:wt(d),size:a})]},{kind:"element",tag:"div",attrs:{class:"content"},children:p}]}}function Et(e){return h(ve(e))}function fe(){if(customElements.get(D))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="close"]'))return;const r=new CustomEvent(ie,{bubbles:!0,cancelable:!0});this.dispatchEvent(r)&&(this.dispatchEvent(new CustomEvent(ne,{bubbles:!0})),this.remove())};connectedCallback(){this.removeEventListener("click",this.#e),this.hasAttribute("data-dismissible")&&(this.#t(),this.addEventListener("click",this.#e))}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){this.querySelector('[data-part="close"]')||this.append(yt(this.getAttribute("data-dismissible-label")??H,this.ownerDocument))}}customElements.define(D,e)}const xt={name:"alert",description:"Use `alert` to surface short, important messages.",output:{element:D,class:"set-alert"},content:{kind:"slots",slots:[{prop:"title",kind:"text"},{prop:"message",kind:"text"}]},props:{dismissible:{default:!1,description:"Shows a dismiss control that removes the alert.",type:{kind:"boolean"}},dismissibleLabel:{default:H,description:"Accessible label for the dismiss control.",ignoredWhen:"`dismissible` is false",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the alert fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}},message:{description:"Body text of the alert.",required:!0,type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},title:{description:"Bold text above the message.",type:{kind:"text"}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["info","success","warning","error"]}}},events:{[ie]:{bubbles:!0,cancelable:!0,description:"Fired before the alert is removed by a dismiss action. Call `preventDefault()` to keep the alert mounted."},[ne]:{bubbles:!0,description:"Fired after the alert has been removed by an allowed dismiss action."}},rules:{attributes:[{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"role",condition:{kind:"when-in",prop:"tone",values:["warning","error"]},value:{kind:"literal",text:"alert"}},{target:{on:"host"},attribute:"role",condition:{kind:"not",of:{kind:"when-in",prop:"tone",values:["warning","error"]}},value:{kind:"literal",text:"status"}},{target:{on:"host"},attribute:"data-dismissible",condition:{kind:"when-truthy",prop:"dismissible"}},{target:{on:"host"},attribute:"data-dismissible-label",condition:{kind:"all",of:[{kind:"when-truthy",prop:"dismissible"},{kind:"when-non-empty",prop:"dismissibleLabel"}]},value:{kind:"prop",prop:"dismissibleLabel"}},{target:{on:"host"},attribute:"data-dismissible-label",condition:{kind:"all",of:[{kind:"when-truthy",prop:"dismissible"},{kind:"not",of:{kind:"when-non-empty",prop:"dismissibleLabel"}}]},value:{kind:"literal",text:H}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ct(e){if(e)return e===!0?!0:e}function re(e){const{appearance:n="text",current:t,download:i,href:r,id:a,icon:d,iconPlacement:o="start",label:s,labelVisibility:l="visible",rel:p,size:c="md",target:u,tone:k="default",underline:b}=e,m=g(a),f=d?.trim()||void 0;if(l!=="visible"&&!!!f)throw new Error("labelVisibility requires icon when label is not visible.");const S=Ct(i),v=f?{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[{kind:"raw",html:f}]}:null,y={kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:s}]};return{kind:"element",tag:"a",attrs:{"aria-current":t,class:"set-link","data-appearance":n==="text"?void 0:n,"data-label-visibility":l==="visible"?void 0:l,"data-size":c,"data-tone":k==="neutral"?"neutral":void 0,"data-underline":b&&n==="text"?!0:void 0,download:S,href:r,id:m,rel:S?void 0:p||void 0,target:S?void 0:u||void 0},children:v?o==="end"?[y,v]:[v,y]:[y]}}function zt(e){return h(re(e))}const Tt={name:"link",description:"Use `link` to navigate to another page or resource.",output:{element:"a",class:"set-link"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"icon",kind:"html"}]},props:{appearance:{default:"text",description:"Visual appearance. `text` is a standard link; `outline` and `solid` give button-styled treatments. ",type:{kind:"enum",values:["outline","solid","text"]}},current:{description:"Marks the link as the current item in its set; emits `aria-current` with this value.",type:{kind:"enum",values:["page"]}},download:{description:"Saves the target instead of navigating. Pass a filename or `true`.",type:{kind:"union",variants:[{kind:"boolean"},{kind:"string"}]}},href:{description:"Link destination.",required:!0,type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},icon:{description:"Icon markup shown alongside the label. Set icon component, or SVG markup from https://simpleicons.org/ for third-party logos.",requiredWhen:"`labelVisibility` is hidden or hiddenBelowTablet",type:{kind:"html"}},iconPlacement:{default:"start",description:"Where the icon sits relative to the label.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["start","end"]}},label:{description:"Accessible label.",required:!0,type:{kind:"text"}},labelVisibility:{default:"visible",description:"How the label is shown. Hidden values require an icon.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}},rel:{description:"Explicit `rel` attribute.",ignoredWhen:"`download` is set",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}},target:{description:"Where to open the link.",ignoredWhen:"`download` is set",type:{kind:"enum",values:["_blank","_parent","_self","_top"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},underline:{default:!1,description:"Underlines the link.",ignoredWhen:"`appearance` is not `text`",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"href",condition:{kind:"always"},value:{kind:"prop",prop:"href"}},{target:{on:"host"},attribute:"aria-current",condition:{kind:"when-provided",prop:"current"},value:{kind:"prop",prop:"current"}},{target:{on:"host"},attribute:"download",condition:{kind:"when-truthy",prop:"download"},value:{kind:"prop",prop:"download"}},{target:{on:"host"},attribute:"rel",condition:{kind:"all",of:[{kind:"when-non-empty",prop:"rel"},{kind:"not",of:{kind:"when-truthy",prop:"download"}}]},value:{kind:"prop",prop:"rel"}},{target:{on:"host"},attribute:"target",condition:{kind:"all",of:[{kind:"when-provided",prop:"target"},{kind:"not",of:{kind:"when-truthy",prop:"download"}}]},value:{kind:"prop",prop:"target"}},{target:{on:"host"},attribute:"data-appearance",condition:{kind:"when-in",prop:"appearance",values:["outline","solid"]},value:{kind:"prop",prop:"appearance"}},{target:{on:"host"},attribute:"data-label-visibility",condition:{kind:"when-in",prop:"labelVisibility",values:["hidden","hiddenBelowTablet"]},value:{kind:"prop",prop:"labelVisibility"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"data-underline",condition:{kind:"all",of:[{kind:"when-truthy",prop:"underline"},{kind:"when-equals",prop:"appearance",to:"text"}]}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},V="set-banner",ae="set-banner-before-dismiss",oe="set-banner-dismiss",K="Dismiss banner";function _t(e,n){const t=n.createElement("div");return t.setAttribute("data-part","close"),t.innerHTML=Q({appearance:"text",icon:"close",label:e,labelVisibility:"hidden",size:"sm",tone:"neutral"}),t}function ye({actionHref:e,actionLabel:n,dismissible:t=!0,dismissibleLabel:i=K,id:r,message:a,tone:d}){if(!!e!=!!n)throw new Error("actionHref and actionLabel must be provided together.");const o=g(r),s=i.trim()===""?K:i,l=[{kind:"text",value:a}];return e&&n&&(l.push({kind:"text",value:" "}),l.push(re({href:e,label:n,underline:!0}))),{kind:"element",tag:V,attrs:{class:"set-banner","data-set-content-theme":"dark","data-set-surface":"default","data-dismissible":t,"data-dismissible-label":t?s:void 0,"data-tone":d||void 0,id:o},children:[{kind:"element",tag:"p",attrs:{class:"message"},children:l}]}}function Lt(e){return h(ye(e))}function we(){if(customElements.get(V))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="close"]'))return;const r=new CustomEvent(ae,{bubbles:!0,cancelable:!0});this.dispatchEvent(r)&&(this.dispatchEvent(new CustomEvent(oe,{bubbles:!0})),this.remove())};connectedCallback(){this.removeEventListener("click",this.#e),this.hasAttribute("data-dismissible")&&(this.#t(),this.addEventListener("click",this.#e))}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){this.querySelector('[data-part="close"]')||this.append(_t(this.getAttribute("data-dismissible-label")??K,this.ownerDocument))}}customElements.define(V,e)}const Mt={name:"banner",description:"Use `banner` to display a prominent site-wide message.",output:{element:V,class:"set-banner"},content:{kind:"text",prop:"message"},props:{actionHref:{description:"URL for an inline link action rendered after the `message`.",requiredWhen:"`actionLabel` is provided",type:{kind:"string"}},actionLabel:{description:"Text label for an inline link action rendered after the `message`.",requiredWhen:"`actionHref` is provided",type:{kind:"text"}},dismissible:{default:!0,description:"Shows a dismiss control that removes the banner.",type:{kind:"boolean"}},dismissibleLabel:{default:K,description:"Accessible label for the dismiss control.",ignoredWhen:"`dismissible` is false",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},message:{description:"Body text of the banner.",required:!0,type:{kind:"text"}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["info","warning","error"]}}},events:{[ae]:{bubbles:!0,cancelable:!0,description:"Fired before the banner is removed by a dismiss action. Call `preventDefault()` to keep the banner mounted."},[oe]:{bubbles:!0,description:"Fired after the banner has been removed by an allowed dismiss action."}},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"always"},value:{kind:"literal",text:"dark"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"always"},value:{kind:"literal",text:"default"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"data-dismissible",condition:{kind:"when-truthy",prop:"dismissible"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},O="set-lightswitch",de="set-lightswitch-change",j="set-theme",Y="Switch to dark theme",J="Switch to light theme";function It(e){return e==="dark"?"light":"dark"}function At(e){return e==="dark"?"moon":"sunny"}function ce(e,n){return{kind:"element",tag:"span",attrs:{class:"option","data-option":e},children:[{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[A({ariaHidden:!0,name:At(e),size:"fill"})]},{kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:n}]}]}}function Se({appearance:e="text",id:n,labelDark:t=Y,labelLight:i=J,size:r="md"}){const a=g(n),d=t.trim()===""?Y:t,o=i.trim()===""?J:i;return{kind:"element",tag:O,attrs:{class:"set-lightswitch",id:a},children:[{kind:"element",tag:"button",attrs:{class:"toggle","data-appearance":e,"data-size":r,type:"button"},children:[ce("dark",d),ce("light",o)]}]}}function qt(e){return h(Se(e))}function Ee(){if(customElements.get(O))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest("button"))return;const r=It(this.#u());r===this.#r()?this.#d():this.#n(r),this.#a(),this.dispatchEvent(new CustomEvent(de,{bubbles:!0,detail:{stored:!!this.#i(),theme:r}}))};connectedCallback(){this.removeEventListener("click",this.#e),this.addEventListener("click",this.#e),this.#i()&&this.#a()}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){try{return this.ownerDocument.defaultView?.localStorage}catch{return}}#i(){try{const t=this.#t()?.getItem(j);return t==="light"||t==="dark"?t:void 0}catch{return}}#n(t){try{this.#t()?.setItem(j,t)}catch{}}#d(){try{this.#t()?.removeItem(j)}catch{}}#r(){const t=this.ownerDocument.defaultView;return!t||typeof t.matchMedia!="function"?"light":t.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}#c(){return this.closest(".set")}#s(){const t=this.#c()?.getAttribute("data-set-theme");return t==="light"||t==="dark"?t:void 0}#u(){return this.#i()??this.#s()??this.#r()}#a(){const t=this.#c();if(!t)return;const i=this.#i();i?t.setAttribute("data-set-theme",i):t.removeAttribute("data-set-theme")}}customElements.define(O,e)}const Pt={name:"lightswitch",description:"Use `lightswitch` to let users toggle between light and dark themes.",output:{element:O,class:"set-lightswitch"},content:{kind:"none"},props:{appearance:{default:"text",description:"Visual appearance of the toggle button.",type:{kind:"enum",values:["outline","solid","text"]}},id:{description:"DOM id.",type:{kind:"string"}},labelDark:{default:Y,description:"Accessible label of the switch-to-dark action.",type:{kind:"string"}},labelLight:{default:J,description:"Accessible label of the switch-to-light action.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}}},events:{[de]:{bubbles:!0,description:"Fired after activation applies a theme. `detail.theme` is the theme switched to; `detail.stored` is false when the change cleared the override to follow the system preference again."}},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}},{target:{on:"descendant",selector:"button"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"toggle"}},{target:{on:"descendant",selector:"button"},attribute:"data-appearance",condition:{kind:"always"},value:{kind:"prop",prop:"appearance"}},{target:{on:"descendant",selector:"button"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"button"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"button"}}]}},B="set-menu",se="set-menu-choose";function xe({align:e="start",id:n,items:t,size:i="md",triggerIcon:r,triggerIconMirrored:a,triggerIconPlacement:d,triggerLabel:o,triggerLabelVisibility:s}){const l=n.trim();if(!l)throw new Error("id must be a non-empty string.");if(!M(l))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!Array.isArray(t))throw new Error("items must be an array.");const p=`${l}-button`,c=`${l}-popup`,u=t.map(k=>({kind:"element",tag:"button",attrs:{"aria-disabled":k.disabled?"true":void 0,"data-item-id":k.id||void 0,role:"menuitem",tabindex:"-1",type:"button"},children:[{kind:"text",value:k.label}]}));return{kind:"element",tag:B,attrs:{class:"set-menu","data-align":e==="start"?void 0:e,"data-size":i,id:l},children:[{kind:"element",tag:"div",attrs:{"data-part":"trigger"},children:[X({appearance:"outline",controls:c,disclosure:!0,haspopup:"menu",icon:r,iconMirrored:a,iconPlacement:d,id:p,label:o,labelVisibility:s,size:i,tone:"neutral",type:"button"})]},{kind:"element",tag:"div",attrs:{"aria-labelledby":p,class:"popup",hidden:!0,id:c,role:"menu"},children:u}]}}function Nt(e){return h(xe(e))}function Ce(){if(customElements.get(B))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#p(),this.#o(!1),this.#k()}disconnectedCallback(){this.#p()}#d(){return this.querySelector('[data-part="trigger"] .set-button')}#r(){return this.querySelector('[role="menu"]')}#c(){return Array.from(this.querySelectorAll('[role="menuitem"]'))}#s(t){return t.getAttribute("aria-disabled")==="true"}#u(){return this.hasAttribute("data-open")}#a(t){const i=this.#c();if(i.length===0)return;const r=(t%i.length+i.length)%i.length;i[r]?.focus()}#l(t=0){const i=this.#r(),r=this.#d();!i||!r||(i.hidden=!1,this.setAttribute("data-open",""),r.setAttribute("aria-expanded","true"),this.#a(t))}#o(t=!1){const i=this.#r(),r=this.#d();!i||!r||(i.hidden=!0,this.removeAttribute("data-open"),r.setAttribute("aria-expanded","false"),t&&r.focus())}#h(t){const r=Array.from(this.querySelectorAll('[role="menuitem"]')).indexOf(t);this.dispatchEvent(new CustomEvent(se,{bubbles:!0,detail:{id:t.getAttribute("data-item-id")||void 0,index:r,label:t.textContent||""}}))}#k(){this.#e=t=>{const i=t.target;if(!(i instanceof Element))return;if(i.closest('[data-part="trigger"] .set-button')){if(this.#u()){this.#o();return}this.#l(0);return}const r=i.closest('[role="menuitem"]');if(r&&this.contains(r)){this.#s(r)||(this.#h(r),this.#o(!0));return}},this.#t=t=>{const i=t.target;i instanceof Node&&this.#u()&&!this.contains(i)&&this.#o()},this.#n=t=>{const i=this.#d(),r=this.#r();if(!i||!r)return;if((t.key==="Escape"||t.key==="Esc")&&this.#u()){t.preventDefault(),this.#o(!0);return}const a=this.ownerDocument.activeElement,d=this.#c(),o=d.indexOf(a);if(a===i){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.#l(0)),t.key==="ArrowDown"&&(t.preventDefault(),this.#l(0)),t.key==="ArrowUp"&&(t.preventDefault(),this.#l(d.length-1));return}if(r.contains(a)){if(a instanceof HTMLButtonElement&&(t.key==="Enter"||t.key===" ")){t.preventDefault(),this.#s(a)||(this.#h(a),this.#o(!0));return}t.key==="ArrowDown"&&(t.preventDefault(),this.#a(o+1)),t.key==="ArrowUp"&&(t.preventDefault(),this.#a(o-1)),t.key==="Home"&&(t.preventDefault(),this.#a(0)),t.key==="End"&&(t.preventDefault(),this.#a(d.length-1)),t.key==="Tab"&&this.#o(!1)}},this.#i=t=>{const i=t.relatedTarget;if(!(i instanceof Node)){this.#o();return}this.contains(i)||this.#o()},this.addEventListener("click",this.#e),this.addEventListener("keydown",this.#n),this.addEventListener("focusout",this.#i),this.ownerDocument.addEventListener("click",this.#t)}#p(){this.#e&&this.removeEventListener("click",this.#e),this.#t&&this.ownerDocument.removeEventListener("click",this.#t),this.#n&&this.removeEventListener("keydown",this.#n),this.#i&&this.removeEventListener("focusout",this.#i),this.#e=void 0,this.#t=void 0,this.#i=void 0,this.#n=void 0}}customElements.define(B,e)}const Dt={name:"menu",description:"Use `menu` to show a list of actions from a trigger button.",output:{element:B,class:"set-menu"},content:{kind:"structured",prop:"items"},props:{align:{default:"start",description:"Popup alignment relative to the trigger.",type:{kind:"enum",values:["start","end"]}},id:{description:"DOM id applied to the host. Trigger and popup ids are derived as `${id}-button` and `${id}-popup`.",required:!0,type:{kind:"string"}},items:{description:"Action items listed inside the popup.",required:!0,type:{kind:"array",itemShape:{disabled:{default:!1,description:"Disables selection for this item.",type:{kind:"boolean"}},id:{description:"Optional authored identifier surfaced in the choose event payload.",type:{kind:"string"}},label:{description:"Visible item label text.",required:!0,type:{kind:"text"}}}}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},triggerIcon:{description:"Icon name for the trigger button.",type:{kind:"iconName"}},triggerIconMirrored:{description:"Icon mirroring mode for the trigger button icon.",type:{kind:"enum",values:["always","rtl"]}},triggerIconPlacement:{default:"start",description:"Icon placement within the trigger button.",type:{kind:"enum",values:["start","end"]}},triggerLabel:{description:"Accessible and visible trigger label text.",required:!0,type:{kind:"text"}},triggerLabelVisibility:{default:"visible",description:"Trigger label visibility treatment.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}}},events:{[se]:{bubbles:!0,description:"Fired when a menu item is activated.",detail:"{ id?: string; index: number; label: string }"}},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-align",condition:{kind:"when-equals",prop:"align",to:"end"},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:'div[data-part="trigger"] button'},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-button"}},{target:{on:"descendant",selector:"div.popup"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-popup"}},{target:{on:"descendant",selector:"div.popup"},attribute:"aria-labelledby",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-button"}},{target:{on:"descendant",selector:"div.popup"},attribute:"role",condition:{kind:"always"},value:{kind:"literal",text:"menu"}},{target:{on:"descendant",selector:"div.popup"},attribute:"hidden",condition:{kind:"always"}}]}},ee="Menu";function ze({controlsId:e,expanded:n,id:t,label:i=ee,size:r="md"}={}){const a=g(t),d=i.trim()===""?ee:i;return{kind:"element",tag:"button",attrs:{"aria-controls":e||void 0,"aria-expanded":n?"true":"false",class:"set-expander","data-size":r,id:a,type:"button"},children:[{kind:"element",tag:"span",attrs:{class:"expander-box"},children:[{kind:"element",tag:"span",attrs:{class:"expander-inner"},children:[]},{kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:d}]}]}]}}function Te(e={}){return h(ze(e))}const Ht={name:"expander",description:"Use `expander` as a toggle for disclosure regions such as menus.",output:{element:"button",class:"set-expander"},content:{kind:"text",prop:"label"},props:{controlsId:{description:"`id` of the element this toggle controls.",type:{kind:"string"}},expanded:{default:!1,description:"Whether the controlled region is expanded.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{default:ee,description:"Accessible label.",type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"button"}},{target:{on:"host"},attribute:"aria-expanded",condition:{kind:"always"},value:{kind:"template",pattern:"{expanded}"}},{target:{on:"host"},attribute:"aria-controls",condition:{kind:"when-non-empty",prop:"controlsId"},value:{kind:"prop",prop:"controlsId"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},R="set-nav",ue="data-set-scroll-locked";function _e({collapsible:e,contentId:n,expanderLabel:t,expanderPosition:i="start",id:r,items:a,label:d,size:o="md"}){const s=g(r),l=t?.trim()||void 0,p=n?.trim();if(e&&!p)throw new Error("contentId must be a non-empty string when collapsible is set.");if(p&&!M(p))throw new Error("contentId must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const c=a.map(u=>({kind:"element",tag:"li",attrs:{},children:[{kind:"element",tag:"a",attrs:{"aria-current":u.current?"page":void 0,class:"item",href:u.href},children:[{kind:"text",value:u.label}]}]}));return{kind:"element",tag:R,attrs:{class:"set-nav","data-collapsible":e,"data-expander-label":e&&l?l:void 0,"data-expander-position":e?i:void 0,"data-size":o,id:s},children:[{kind:"element",tag:"nav",attrs:{"aria-label":d||void 0,class:"nav"},children:[{kind:"element",tag:"div",attrs:{class:"content",id:p},children:[{kind:"element",tag:"ul",attrs:{class:"list"},children:c}]}]}]}}function Vt(e){return h(_e(e))}function Le(){if(customElements.get(R))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#o(),this.#h(),this.#c(),this.#u(),this.#a()}disconnectedCallback(){this.#s(!1),this.#o(),this.#h()}#d(){return this.hasAttribute("data-collapsible")?this.querySelector(".nav"):null}#r(){return this.querySelector('[data-part="expander"] .set-expander')}#c(){const t=this.#d();if(!t||t.querySelector('[data-part="expander"]'))return;const i=t.querySelector(".content");i&&t.insertAdjacentHTML("afterbegin",`<div data-part="expander">${Te({controlsId:i.id||void 0,label:this.getAttribute("data-expander-label")||void 0,size:this.getAttribute("data-size")==="sm"?"md":"lg"})}</div>`)}#s(t){const i=this.#r();!i||i.getAttribute("aria-expanded")==="true"===t||(i.setAttribute("aria-expanded",t?"true":"false"),this.#l(t))}#u(){this.#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="expander"] .set-expander'))return;const r=this.#r();r&&this.#s(r.getAttribute("aria-expanded")!=="true")},this.addEventListener("click",this.#e)}#a(){const t=this.#d(),i=this.ownerDocument.defaultView;if(!t||!i||(this.#i=a=>{a.key!=="Escape"&&a.key!=="Esc"||this.#s(!1)},i.addEventListener("keydown",this.#i),this.getAttribute("data-collapsible")!=="belowTablet")||typeof i.matchMedia!="function")return;const r=i.matchMedia("(min-width: 48em)");this.#t=r,this.#n=a=>{a.matches&&this.#s(!1)},r.addEventListener("change",this.#n)}#l(t){const i=this.ownerDocument.documentElement;if(i){if(t){i.setAttribute(ue,"");return}i.removeAttribute(ue)}}#o(){this.#e&&(this.removeEventListener("click",this.#e),this.#e=void 0)}#h(){const t=this.ownerDocument.defaultView;this.#i&&t&&t.removeEventListener("keydown",this.#i),this.#t&&this.#n&&this.#t.removeEventListener("change",this.#n),this.#i=void 0,this.#n=void 0,this.#t=void 0}}customElements.define(R,e)}const Ot={name:"nav",description:"Use `nav` to render a primary navigation list.",output:{element:R,class:"set-nav"},content:{kind:"structured",prop:"items"},props:{items:{description:"Nav links shown in the list.",required:!0,type:{kind:"array",itemShape:{current:{default:!1,description:'Emits `aria-current="page"` when true.',type:{kind:"boolean"}},href:{description:"Link destination.",required:!0,type:{kind:"string"}},label:{description:"Link label.",required:!0,type:{kind:"text"}}}}},label:{description:"Accessible label for the nav landmark.",type:{kind:"string"}},expanderLabel:{description:"Accessible label for the collapsible expander button.",type:{kind:"string"}},expanderPosition:{default:"start",description:"Where the expander sits within the composition.",type:{kind:"enum",values:["start","end"]}},id:{description:"DOM id.",type:{kind:"string"}},collapsible:{description:"When to collapse the nav behind an expander.",type:{kind:"enum",values:["always","belowTablet"]}},contentId:{description:"`id` for the collapsible content region.",requiredWhen:"`collapsible` is provided",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-collapsible",condition:{kind:"when-provided",prop:"collapsible"},value:{kind:"prop",prop:"collapsible"}},{target:{on:"host"},attribute:"data-expander-position",condition:{kind:"when-provided",prop:"collapsible"},value:{kind:"prop",prop:"expanderPosition"}},{target:{on:"host"},attribute:"data-expander-label",condition:{kind:"all",of:[{kind:"when-provided",prop:"collapsible"},{kind:"when-non-empty",prop:"expanderLabel"}]},value:{kind:"prop",prop:"expanderLabel"}},{target:{on:"descendant",selector:"nav"},attribute:"aria-label",condition:{kind:"when-non-empty",prop:"label"},value:{kind:"prop",prop:"label"}},{target:{on:"descendant",selector:"div.content"},attribute:"id",condition:{kind:"when-provided",prop:"contentId"},value:{kind:"prop",prop:"contentId"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},W="set-range";function Me({description:e,disabled:n,id:t,inlineSize:i="full",label:r,max:a,min:d,name:o,size:s="md",step:l,value:p}){const c=t.trim(),u=e?.trim(),k=o?.trim();if(!c)throw new Error("id must be a non-empty string.");if(!M(c))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const b=u?`${c}-description`:void 0,m=[{kind:"element",tag:"div",attrs:{class:"label-wrapper"},children:[{kind:"element",tag:"label",attrs:{class:"label",for:c},children:[{kind:"text",value:r}]},{kind:"element",tag:"output",attrs:{class:"output",for:c},children:p!=null?[{kind:"text",value:String(p)}]:[]}]},{kind:"element",tag:"input",attrs:{"aria-describedby":b,class:"range",disabled:!!n,id:c,max:a!=null?String(a):void 0,min:d!=null?String(d):void 0,name:k||void 0,step:l!=null?String(l):void 0,type:"range",value:p!=null?String(p):void 0},children:[]}];return u&&m.push({kind:"element",tag:"p",attrs:{class:"description",id:b},children:[{kind:"text",value:u}]}),{kind:"element",tag:W,attrs:{class:"set-range","data-inline-size":i==="fit"?"fit":void 0,"data-size":s},children:m}}function Bt(e){return h(Me(e))}function Ie(){if(customElements.get(W))return;class e extends HTMLElement{#e;#t=t=>{const i=t.target;i instanceof HTMLInputElement&&i.matches(".range")&&this.#i()};connectedCallback(){this.removeEventListener("input",this.#t),this.#d(),this.#i(),this.addEventListener("input",this.#t)}disconnectedCallback(){this.removeEventListener("input",this.#t),this.#r()}#i(){const t=this.querySelector(".range"),i=this.querySelector(".output");!t||!i||this.#n(i,t.value)}#n(t,i){const r=t.firstChild;if(r?.nodeType===Node.TEXT_NODE&&t.childNodes.length===1){r.nodeValue!==i&&(r.nodeValue=i);return}t.textContent!==i&&(t.textContent=i)}#d(){const t=this.querySelector(".range");if(!t||t===this.#e)return;this.#r();const i=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");if(!i?.get||!i.set)return;const r=i.get,a=i.set,d=()=>this.#i();Object.defineProperty(t,"value",{configurable:!0,enumerable:i.enumerable,get(){return r.call(this)},set(o){a.call(this,o),d()}}),this.#e=t}#r(){this.#e&&(delete this.#e.value,this.#e=void 0)}}customElements.define(W,e)}const Rt={name:"range",description:"Use `range` to let users pick a numeric value along a scale.",output:{element:W,class:"set-range"},content:{kind:"text",prop:"label"},props:{description:{description:"Helper text shown below the range.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the range.",type:{kind:"boolean"}},id:{description:"`id` used to associate the input with its label.",required:!0,type:{kind:"string"}},inlineSize:{default:"full",description:"How the range fills its container.",type:{kind:"enum",values:["full","fit"]}},label:{description:"Label text.",required:!0,type:{kind:"text"}},max:{description:"Maximum value.",type:{kind:"number"}},min:{description:"Minimum value.",type:{kind:"number"}},name:{description:"Form field name.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},step:{description:"Granularity of value changes.",type:{kind:"number"}},value:{description:"Current value.",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"range"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"range"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"min",condition:{kind:"when-provided",prop:"min"},value:{kind:"template",pattern:"{min}"}},{target:{on:"descendant",selector:"input"},attribute:"max",condition:{kind:"when-provided",prop:"max"},value:{kind:"template",pattern:"{max}"}},{target:{on:"descendant",selector:"input"},attribute:"step",condition:{kind:"when-provided",prop:"step"},value:{kind:"template",pattern:"{step}"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-provided",prop:"value"},value:{kind:"template",pattern:"{value}"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"template",pattern:"{name}"}}]}},U="set-sidebar",Wt="(min-width: 68em)",P="Collapse sidebar",te="Open sidebar";function Ut(e,n){return`<div data-part="close">${Q({appearance:"text",icon:"panel-left",iconMirrored:"rtl",label:e,labelVisibility:"hidden",size:n,tone:"neutral",type:"button"})}</div>`}function Ae({aboveNotebook:e="persistent",buttonSize:n="md",children:t,collapseLabel:i=P,footer:r,header:a,id:d,surface:o,triggerLabel:s=te}){const l=d.trim(),p=i.trim()||P,c=s.trim()||te;if(!l)throw new Error("id must be a non-empty string.");if(!M(l))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const u=[{kind:"element",tag:"div",attrs:{class:"header"},children:a?[{kind:"raw",html:a}]:[]},{kind:"element",tag:"div",attrs:{class:"content"},children:t?[{kind:"raw",html:t}]:[]}];r&&u.push({kind:"element",tag:"div",attrs:{class:"footer"},children:[{kind:"raw",html:r}]});const k=`${l}-panel`;return{kind:"element",tag:U,attrs:{class:"set-sidebar","data-above-notebook":e,"data-collapse-label":p!==P?p:void 0,"data-button-size":n,id:l},children:[{kind:"element",tag:"div",attrs:{"data-part":"trigger"},children:[X({appearance:"text",controls:k,disclosure:!0,icon:"panel-left",iconMirrored:"rtl",label:c,labelVisibility:"hidden",size:n,tone:"neutral",type:"button"})]},{kind:"element",tag:"div",attrs:{class:"sidebar","data-set-surface":o,id:k,tabindex:"-1"},children:u},{kind:"element",tag:"div",attrs:{"data-part":"backdrop"},children:[]}]}}function Gt(e){return h(Ae(e))}function qe(){if(customElements.get(U))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#v(),this.#l(),this.#g(),this.#f()}disconnectedCallback(){this.close(),this.#v()}open(){this.#b(!0)}close(){this.#b(!1)}#d(){return this.querySelector(".sidebar")}#r(){return this.querySelector('[data-part="close"] .set-button')}#c(){return this.querySelector('[data-part="trigger"] .set-button')}#s(){return this.hasAttribute("data-open")}#u(){return this.hasAttribute("data-collapsed")}#a(){const t=this.getAttribute("data-above-notebook");return t==="collapsible"||t==="overlay"?t:"persistent"}#l(){const t=this.#d();if(!t||t.querySelector('[data-part="close"]'))return;const i=t.querySelector(".header"),r=this.getAttribute("data-collapse-label")||P,a=this.getAttribute("data-button-size")??"md";i?.insertAdjacentHTML("beforeend",Ut(r,a))}#o(){this.querySelector('[data-part="close"]')?.remove()}#h(){const t=this.#r();if(t){t.focus();return}this.#d()?.focus()}#k(){return this.#e?.matches??!1}#p({collapsed:t,open:i}){const r=this.#c();this.toggleAttribute("data-open",i),this.toggleAttribute("data-collapsed",t),r?.setAttribute("aria-expanded",i?"true":"false")}#g(){const t=this.#a();if(this.#k()){if(t==="overlay"){this.#l(),this.#p({collapsed:!1,open:!1}),this.#m(!1);return}if(t==="collapsible"){this.#l(),this.#p({collapsed:this.#u(),open:!0}),this.#m(!1);return}this.#o(),this.#p({collapsed:!1,open:!0}),this.#m(!1);return}this.#l(),this.#p({collapsed:!1,open:!1}),this.#m(!1)}#b(t){const i=this.#a();if(this.#k()){if(i==="persistent"){this.#p({collapsed:!1,open:!0}),this.#m(!1);return}if(i==="collapsible"){this.#p({collapsed:!t,open:!0}),this.#m(!1),t&&this.#h();return}}if(this.#s()!==t){if(t){this.#p({collapsed:!1,open:!0}),this.#m(!0),this.#h();return}this.#p({collapsed:!1,open:!1}),this.#m(!1),this.#c()?.focus()}}#m(t){const i=this.ownerDocument.documentElement;if(i){if(t){i.setAttribute("data-set-scroll-locked","");return}i.removeAttribute("data-set-scroll-locked")}}#f(){const t=this.ownerDocument.defaultView;t&&(typeof t.matchMedia=="function"&&(this.#e=t.matchMedia(Wt),this.#n=()=>{this.#g()},this.#e.addEventListener("change",this.#n),this.#g()),this.#t=i=>{const r=i.target;if(r instanceof Element){if(r.closest('[data-part="trigger"] .set-button')){this.open();return}if(r.closest('[data-part="close"] .set-button')){if(this.#k()&&this.#a()==="collapsible"){this.#b(this.#u());return}this.close();return}r.closest('[data-part="backdrop"]')&&this.close()}},this.#i=i=>{i.key!=="Escape"&&i.key!=="Esc"||this.close()},this.addEventListener("click",this.#t),this.addEventListener("keydown",this.#i))}#v(){this.#t&&this.removeEventListener("click",this.#t),this.#i&&this.removeEventListener("keydown",this.#i),this.#e&&this.#n&&this.#e.removeEventListener("change",this.#n),this.#t=void 0,this.#i=void 0,this.#e=void 0,this.#n=void 0}}customElements.define(U,e)}const $t={name:"sidebar",description:"Use `sidebar` for a side panel alongside main content.",output:{element:U,class:"set-sidebar"},content:{kind:"slots",slots:[{prop:"header",kind:"html"},{prop:"children",kind:"html"},{prop:"footer",kind:"html"}]},props:{aboveNotebook:{default:"persistent",description:"Layout behaviour on wider screens.",type:{kind:"enum",values:["persistent","collapsible","overlay"]}},buttonSize:{default:"md",description:"Size of the trigger and collapse buttons.",type:{kind:"enum",values:["sm","md","lg"]}},children:{description:"Sidebar body content.",type:{kind:"html"}},collapseLabel:{default:P,description:"Accessible label for the collapse button.",type:{kind:"string"}},footer:{description:"Content rendered in the sidebar footer.",type:{kind:"html"}},header:{description:"Content rendered in the sidebar header.",type:{kind:"html"}},id:{description:"DOM id applied to the host. The inner panel id is derived as `${id}-panel` and wired to the trigger via `aria-controls`.",required:!0,type:{kind:"string"}},surface:{description:"Surface context. Applied to the inner panel.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}},triggerLabel:{default:te,description:"Accessible label for the open button.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-above-notebook",condition:{kind:"always"},value:{kind:"prop",prop:"aboveNotebook"}},{target:{on:"host"},attribute:"data-button-size",condition:{kind:"always"},value:{kind:"prop",prop:"buttonSize"}},{target:{on:"host"},attribute:"data-collapse-label",condition:{kind:"all",of:[{kind:"when-non-empty",prop:"collapseLabel"},{kind:"not",of:{kind:"when-equals",prop:"collapseLabel",to:P}}]},value:{kind:"prop",prop:"collapseLabel"}},{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-panel"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"tabindex",condition:{kind:"always"},value:{kind:"literal",text:"-1"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}}]}},G="set-video";function Pe({autoPlay:e,controls:n,fit:t="intrinsic",height:i,id:r,loop:a,muted:d,playsInline:o,poster:s,preload:l,src:p,width:c}){const u=g(r),k=p.trim(),b=s?.trim();if(!k)throw new Error("src must be a non-empty string.");const m={kind:"element",tag:"video",attrs:{autoplay:!!e,class:"video",controls:!!n,height:i?String(i):void 0,loop:!!a,muted:!!d,playsinline:!!o,poster:b||void 0,preload:l,src:k,width:c?String(c):void 0},children:[]};return{kind:"element",tag:G,attrs:{class:"set-video","data-fluid":t==="fluid",id:u},children:[m]}}function Ft(e){return h(Pe(e))}const Zt="(prefers-reduced-motion: reduce)";function Ne(){if(customElements.get(G))return;class e extends HTMLElement{#e=!1;#t;#i;connectedCallback(){const t=this.querySelector("video");if(!t||(this.#e||=t.hasAttribute("autoplay"),!this.#e))return;const i=this.ownerDocument.defaultView;!i||typeof i.matchMedia!="function"||(this.#t=i.matchMedia(Zt),this.#i=()=>{this.#n()},this.#t.addEventListener("change",this.#i),this.#n())}disconnectedCallback(){this.#t&&this.#i&&this.#t.removeEventListener("change",this.#i),this.#t=void 0,this.#i=void 0}#n(){const t=this.querySelector("video");!t||!this.#t||(this.#t.matches?(t.removeAttribute("autoplay"),t.pause()):(t.setAttribute("autoplay",""),t.paused&&t.play()?.catch?.(()=>{})))}}customElements.define(G,e)}const jt={name:"video",description:"Use `video` to render a video with intrinsic or fluid fit and native playback behavior.",output:{element:G,class:"set-video"},content:{kind:"none"},props:{autoPlay:{default:!1,description:"Starts playback automatically. Browsers only honor this when `muted` is also set. Suspended when the user prefers reduced motion.",type:{kind:"boolean"}},controls:{default:!1,description:"Shows the browser's native playback controls.",type:{kind:"boolean"}},fit:{default:"intrinsic",description:"Layout mode. `intrinsic` renders at the video's own dimensions, `fluid` scales to the container's full inline size at the video's aspect ratio.",type:{kind:"enum",values:["intrinsic","fluid"]}},height:{description:"Intrinsic height in pixels. With `width`, reserves the correctly shaped box before the media loads; rendered height always follows the aspect ratio.",type:{kind:"number"}},id:{description:"DOM id.",type:{kind:"string"}},loop:{default:!1,description:"Restarts playback when the video ends.",type:{kind:"boolean"}},muted:{default:!1,description:"Starts playback silent. Required for `autoPlay` to take effect in most browsers.",type:{kind:"boolean"}},playsInline:{default:!1,description:"Plays inline instead of fullscreen on iOS. Required for `autoPlay` on iOS.",type:{kind:"boolean"}},poster:{description:"Image URL shown before playback begins.",type:{kind:"string"}},preload:{description:"Preload hint. Omitted by default, deferring to the browser.",type:{kind:"enum",values:["auto","metadata","none"]}},src:{description:"Video source URL.",required:!0,type:{kind:"string"}},width:{description:"Intrinsic width in pixels. Sets the rendered width, capped at the container; under `fluid`, an aspect-ratio hint only.",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-fluid",condition:{kind:"when-equals",prop:"fit",to:"fluid"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}},{target:{on:"descendant",selector:"video"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"video"}},{target:{on:"descendant",selector:"video"},attribute:"src",condition:{kind:"always"},value:{kind:"template",pattern:"{src}"}},{target:{on:"descendant",selector:"video"},attribute:"autoplay",condition:{kind:"when-truthy",prop:"autoPlay"}},{target:{on:"descendant",selector:"video"},attribute:"controls",condition:{kind:"when-truthy",prop:"controls"}},{target:{on:"descendant",selector:"video"},attribute:"loop",condition:{kind:"when-truthy",prop:"loop"}},{target:{on:"descendant",selector:"video"},attribute:"muted",condition:{kind:"when-truthy",prop:"muted"}},{target:{on:"descendant",selector:"video"},attribute:"playsinline",condition:{kind:"when-truthy",prop:"playsInline"}},{target:{on:"descendant",selector:"video"},attribute:"poster",condition:{kind:"when-non-empty",prop:"poster"},value:{kind:"prop",prop:"poster"}},{target:{on:"descendant",selector:"video"},attribute:"preload",condition:{kind:"when-provided",prop:"preload"},value:{kind:"prop",prop:"preload"}}]}};function Kt(e){return e?/[A-Za-z]/.test(e):!1}function Xt(e){return/^[a-z]/.test(e)}function I(e){const n=e.charAt(0);return Kt(n)?n:void 0}function De(e){const n=N(e);if(!n)return;const t=n.split(" "),i=I(t[0]);if(!i)return;const r=[i.toUpperCase()];if(t.length===1)return r[0];const a=t.slice(1).find(Xt);if(a){const o=I(a);return o?`${r[0]}${o}`:void 0}if(t.length===2){const o=I(t[1]);if(!o)return;r.push(o);const s=t[1].split("-").filter(Boolean);if(s.length===2){const l=I(s[1]);l&&r.push(l)}return r.slice(0,3).join("")}if(t.length===3){const o=I(t[1]),s=I(t[2]);return!o||!s?void 0:(r.push(o,s),r.slice(0,3).join(""))}const d=I(t.at(-1)||"");if(d)return r.push(d),r.slice(0,3).join("")}const Qt={bot:"robot-1",organization:"city-6",person:"user-1",team:"member"},he=["01","02","03","04","05","06","07","08","09"];function Yt(e){let n=5381;for(const t of e)n=n*33^t.charCodeAt(0);return n>>>0}function Jt(e){if(e==null)return;const n=N(e);if(n){if(n.length>3)throw new Error("initials must normalize to 3 characters or fewer.");if(!/^[A-Za-z]{1,3}$/.test(n))throw new Error("initials must contain only alphabetic characters.");return n}}function ei({alt:e,ariaHidden:n,name:t}){if(!n)return N(e)||N(t)||"Avatar"}function ti({color:e,name:n}){if(e)return e;if(n){const t=Yt(n)%he.length;return he[t]}return"neutral"}function He({alt:e,ariaHidden:n,color:t,entity:i="person",id:r,initials:a,name:d,size:o="md",src:s}){const l=g(r),p=Jt(a),c=N(d),u=N(s),k=ei({alt:e,ariaHidden:n,name:c}),b=p||De(c),m=!!u,f=ti({color:t,name:c}),x={"aria-hidden":n?"true":void 0,"aria-label":!n&&!m?k:void 0,class:"set-avatar","data-color":f==="neutral"?void 0:f,"data-entity":i==="person"?void 0:i,"data-size":o,id:l,role:!n&&!m?"img":void 0};let S;return m?S={kind:"element",tag:"img",attrs:{alt:n?"":k||"",class:"img",src:u},children:[]}:b?S={kind:"element",tag:"span",attrs:{class:"initials"},children:[{kind:"text",value:b}]}:S={kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[A({ariaHidden:!0,name:Qt[i],size:"fill"})]},{kind:"element",tag:"span",attrs:x,children:[S]}}function ii(e){return h(He(e))}const ni={name:"avatar",description:"Use `avatar` to visually represent a person, team, or entity.",output:{element:"span",class:"set-avatar"},content:{kind:"none"},props:{alt:{description:"Accessible label for the avatar, overrides name.",type:{kind:"string"}},ariaHidden:{default:!1,description:"Hides the avatar from assistive technology.",type:{kind:"boolean"}},entity:{default:"person",description:"Type of subject the avatar represents.",type:{kind:"enum",values:["bot","organization","person","team"]}},color:{description:"Background color swatch. Derived from name when omitted.",type:{kind:"enum",values:["neutral","01","02","03","04","05","06","07","08","09"]}},id:{description:"DOM id.",type:{kind:"string"}},initials:{description:"Initials to display. 1–3 alphabetic characters. Overrides name-derived initials.",type:{kind:"string"}},name:{description:"Full name. Used for the label and to derive initials.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl"]}},src:{description:"Image source URL.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-entity",condition:{kind:"when-in",prop:"entity",values:["bot","organization","team"]},value:{kind:"prop",prop:"entity"}},{target:{on:"host"},attribute:"data-color",condition:{kind:"when-in",prop:"color",values:["01","02","03","04","05","06","07","08","09"]},value:{kind:"prop",prop:"color"}},{target:{on:"host"},attribute:"aria-hidden",condition:{kind:"when-truthy",prop:"ariaHidden"},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ve({floating:e,id:n,label:t,size:i="md",tone:r}){const a=g(n);return{kind:"element",tag:"span",attrs:{class:"set-badge","data-floating":e,"data-size":i,"data-tone":r||void 0,id:a},children:[{kind:"text",value:t}]}}function ri(e){return h(Ve(e))}const ai={name:"badge",description:"Use `badge` to annotate content with a short label.",output:{element:"span",class:"set-badge"},content:{kind:"text",prop:"label"},props:{floating:{default:!1,description:"Positions the badge as a floating overlay.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Badge text.",required:!0,type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["notification","live","pending","success","warning","error"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-floating",condition:{kind:"when-truthy",prop:"floating"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function $({align:e,as:n,children:t,id:i,linkVisited:r=!0,measured:a,monospaced:d,responsive:o,size:s="md",tone:l="default"}){const p=g(i),c=n==="p"?"p":"span",u=c==="p",k=u?e??"start":void 0;return{kind:"element",tag:c,attrs:{class:"set-text","data-align":k&&k!=="start"?k:void 0,"data-link-visited":r?void 0:"off","data-measured":u?a??!0:void 0,"data-monospaced":d,"data-responsive":o,"data-size":s,"data-tone":l==="muted"?"muted":void 0,id:p},children:[{kind:"raw",html:t}]}}function oi(e){return h($(e))}const di={name:"text",description:"Use `text` for inline or paragraph body copy.",output:{element:{kind:"switch",prop:"as",cases:{p:"p",span:"span"}},class:"set-text"},content:{kind:"html",prop:"children"},props:{as:{default:"span",description:"HTML element used for the text.",type:{kind:"enum",values:["p","span"]}},children:{description:"Text content. Supports inline markup such as `<em>`, `<strong>`, `<a>`, `<code>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},linkVisited:{default:!0,description:"Styles visited links inside the text.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales text across breakpoints.",type:{kind:"boolean"}},align:{default:"start",description:"Text alignment.",ignoredWhen:"`as` is span",type:{kind:"enum",values:["start","center","end"]}},measured:{default:!0,description:"Caps line length for comfortable reading.",ignoredWhen:"`as` is span",type:{kind:"boolean"}},monospaced:{default:!1,description:"Applies monospaced word spacing throughout.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","muted"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"all",of:[{kind:"when-equals",prop:"as",to:"p"},{kind:"when-in",prop:"align",values:["center","end"]}]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-link-visited",condition:{kind:"when-equals",prop:"linkVisited",to:!1},value:{kind:"literal",text:"off"}},{target:{on:"host"},attribute:"data-measured",condition:{kind:"all",of:[{kind:"when-equals",prop:"as",to:"p"},{kind:"when-truthy",prop:"measured"}]}},{target:{on:"host"},attribute:"data-monospaced",condition:{kind:"when-truthy",prop:"monospaced"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"muted"},value:{kind:"literal",text:"muted"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Oe({align:e="start",attribution:n,id:t,measured:i=!0,quote:r,responsive:a=!1,size:d="md"}){const o=g(t);return{kind:"element",tag:"figure",attrs:{class:"set-blockquote","data-align":e==="start"?void 0:e,id:o},children:[{kind:"element",tag:"blockquote",attrs:{class:"quote"},children:[$({align:e,as:"p",children:r,measured:i,responsive:a,size:d})]},{kind:"element",tag:"figcaption",attrs:{class:"attribution"},children:[$({as:"span",children:n,responsive:a,size:"sm"})]}]}}function si(e){return h(Oe(e))}const li={name:"blockquote",description:"Use `blockquote` to display a quote with attribution.",output:{element:"figure",class:"set-blockquote"},content:{kind:"slots",slots:[{prop:"quote",kind:"html"},{prop:"attribution",kind:"html"}]},props:{align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},attribution:{description:"Attribution shown beneath the quote. Supports inline markup such as `<a>`, `<cite>`, `<em>`, etc.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},measured:{default:!0,description:"Caps line length for comfortable reading.",type:{kind:"boolean"}},quote:{description:"Quote content. Supports inline markup such as `<em>`, `<strong>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},responsive:{default:!1,description:"Scales type across breakpoints.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant for the quote.",type:{kind:"enum",values:["md","lg"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Be({background:e="default",border:n,children:t,id:i,paddingBlock:r="md",paddingInline:a="md",radius:d,responsive:o,surface:s}){const l=g(i);return{kind:"element",tag:"div",attrs:{class:"set-box","data-background":e==="default"?void 0:e,"data-border":n,"data-set-surface":s,"data-padding-block":r,"data-padding-inline":a,"data-radius":d,"data-responsive":o,id:l},children:t?[{kind:"raw",html:t}]:[]}}function pi(e){return h(Be(e))}const ci={name:"box",description:"Use `box` to inset content.",output:{element:"div",class:"set-box"},content:{kind:"html",prop:"children"},props:{background:{default:"default",description:"Background treatment.",type:{kind:"enum",values:["default","panel","transparent"]}},border:{default:!1,description:"Shows a subtle border around the box.",type:{kind:"boolean"}},children:{description:"Content rendered inside the box.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},paddingBlock:{default:"md",description:"Vertical padding.",type:{kind:"enum",values:["none","2xs","xs","sm","md","lg","xl","2xl"]}},paddingInline:{default:"md",description:"Horizontal padding.",type:{kind:"enum",values:["none","2xs","xs","sm","md","lg","xl","2xl"]}},radius:{description:"Corner radius.",type:{kind:"enum",values:["sm","md"]}},responsive:{default:!1,description:"Scales vertical padding across breakpoints.",type:{kind:"boolean"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-background",condition:{kind:"when-in",prop:"background",values:["panel","transparent"]},value:{kind:"prop",prop:"background"}},{target:{on:"host"},attribute:"data-border",condition:{kind:"when-truthy",prop:"border"}},{target:{on:"host"},attribute:"data-padding-block",condition:{kind:"always"},value:{kind:"prop",prop:"paddingBlock"}},{target:{on:"host"},attribute:"data-padding-inline",condition:{kind:"always"},value:{kind:"prop",prop:"paddingInline"}},{target:{on:"host"},attribute:"data-radius",condition:{kind:"when-provided",prop:"radius"},value:{kind:"prop",prop:"radius"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Re({description:e,headingLevel:n,href:t,id:i,note:r,surface:a,title:d}){const o=g(i),s=n?`h${n}`:"div",l=t?[{kind:"element",tag:"a",attrs:{href:t},children:[{kind:"text",value:d}]}]:[{kind:"text",value:d}],p=r?[{kind:"raw",html:r}]:[];r&&t&&p.push({kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[A({ariaHidden:!0,mirrored:"rtl",name:"arrow-right",size:"xs"})]});const c=[{kind:"element",tag:"span",attrs:{class:"dots"},children:[{kind:"element",tag:"span",attrs:{},children:[]}]},{kind:"element",tag:s,attrs:{class:"title"},children:l},{kind:"element",tag:"p",attrs:{class:"description"},children:[{kind:"raw",html:e}]}];return r&&c.push({kind:"element",tag:"p",attrs:{class:"note"},children:p}),{kind:"element",tag:"div",attrs:{class:"set-card","data-set-surface":a,id:o},children:c}}function ui(e){return h(Re(e))}const hi={name:"card",description:"Use `card` to display a summary for a single topic.",output:{element:"div",class:"set-card"},content:{kind:"slots",slots:[{prop:"title",kind:"text"},{prop:"description",kind:"html"},{prop:"note",kind:"html"}]},props:{description:{description:"Supporting description shown below the `title`.",required:!0,type:{kind:"html"}},headingLevel:{description:"Semantic heading level for the title. Renders a `<div>` when omitted.",type:{kind:"enum",values:[1,2,3,4,5,6]}},href:{description:"Link destination for the `title`.",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},note:{description:"Short note shown beneath the `description`.",type:{kind:"html"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}},title:{description:"Card title.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function We({checked:e,description:n,disabled:t,id:i,invalid:r,label:a,name:d,required:o,size:s="md",value:l}){const p=g(i),c=n?.trim();if(c&&!p)throw new Error("id must be provided when description is provided.");const u=c?`${p}-description`:void 0,k=!!t,m=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":u,"aria-invalid":!k&&!!r?"true":void 0,checked:!!e,class:"checkbox",disabled:k,id:p,name:d||void 0,required:!!o,type:"checkbox",value:l||void 0},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:a}]}]}];return c&&m.push({kind:"element",tag:"p",attrs:{class:"description",id:u},children:[{kind:"text",value:c}]}),{kind:"element",tag:"div",attrs:{class:"set-checkbox","data-size":s},children:m}}function mi(e){return h(We(e))}const ki={name:"checkbox",description:"Use `checkbox` to let users toggle a single option on or off.",output:{element:"div",class:"set-checkbox"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{checked:{default:!1,description:"Whether the checkbox is checked.",type:{kind:"boolean"}},description:{description:"Helper text shown below the label.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`description` is provided",type:{kind:"string"}},invalid:{default:!1,description:"Marks the checkbox as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},label:{description:"Label shown next to the checkbox.",required:!0,type:{kind:"text"}},name:{description:"Name submitted with the form.",type:{kind:"string"}},required:{default:!1,description:"Marks the checkbox as required.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Value submitted with the form.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"checked",condition:{kind:"when-truthy",prop:"checked"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ue({children:e,gutter:n="default",id:t,maxInlineSize:i="default"}){const r=g(t);return{kind:"element",tag:"div",attrs:{class:"set-container","data-gutter":n==="default"?void 0:n,"data-max-inline-size":i==="default"?void 0:i,id:r},children:e?[{kind:"raw",html:e}]:[]}}function gi(e){return h(Ue(e))}const bi={name:"container",description:"Use `container` to wrap page-level content.",output:{element:"div",class:"set-container"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the container.",type:{kind:"html"}},gutter:{default:"default",description:"Horizontal gutter width.",type:{kind:"enum",values:["default","narrow","none"]}},id:{description:"DOM id.",type:{kind:"string"}},maxInlineSize:{default:"default",description:"Maximum content width. Effect is only visible in wider viewports.",type:{kind:"enum",values:["default","wide","none"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-max-inline-size",condition:{kind:"when-in",prop:"maxInlineSize",values:["wide","none"]},value:{kind:"prop",prop:"maxInlineSize"}},{target:{on:"host"},attribute:"data-gutter",condition:{kind:"when-in",prop:"gutter",values:["narrow","none"]},value:{kind:"prop",prop:"gutter"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ge({children:e,id:n,open:t,summary:i,inlineSize:r="full"}){const a=g(n);return{kind:"element",tag:"details",attrs:{class:"set-details",open:t,"data-inline-size":r==="fit"?"fit":void 0,id:a},children:[{kind:"element",tag:"summary",attrs:{class:"summary"},children:[{kind:"element",tag:"span",attrs:{class:"marker"},children:[A({ariaHidden:!0,name:"chevron-right",size:"sm"})]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:i}]}]},{kind:"element",tag:"div",attrs:{class:"content"},children:e?[{kind:"raw",html:e}]:[]}]}}function vi(e){return h(Ge(e))}const fi={name:"details",description:"Use `details` to let users expand and collapse a section of content.",output:{element:"details",class:"set-details"},content:{kind:"slots",slots:[{prop:"summary",kind:"text"},{prop:"children",kind:"html"}]},props:{children:{description:"Content revealed when the details is open.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the details fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}},open:{default:!1,description:"Opens the details by default.",type:{kind:"boolean"}},summary:{description:"Summary shown in the toggle.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"open",condition:{kind:"when-truthy",prop:"open"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function $e({id:e,orientation:n="horizontal",tone:t="default"}={}){const i=g(e);return{kind:"element",tag:n==="horizontal"?"hr":"span",attrs:{"aria-orientation":n==="vertical"?"vertical":void 0,class:"set-divider","data-tone":t==="subtle"||t==="brand"?t:void 0,id:i,role:n==="vertical"?"separator":void 0},children:[]}}function yi(e={}){return h($e(e))}const wi={name:"divider",description:"Use `divider` to separate sections with a rule.",output:{element:{kind:"switch",prop:"orientation",cases:{horizontal:"hr",vertical:"span"}},class:"set-divider"},content:{kind:"none"},props:{id:{description:"DOM id.",type:{kind:"string"}},orientation:{default:"horizontal",description:"Divider orientation.",type:{kind:"enum",values:["horizontal","vertical"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","subtle","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"role",condition:{kind:"when-equals",prop:"orientation",to:"vertical"},value:{kind:"literal",text:"separator"}},{target:{on:"host"},attribute:"aria-orientation",condition:{kind:"when-equals",prop:"orientation",to:"vertical"},value:{kind:"literal",text:"vertical"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-in",prop:"tone",values:["subtle","brand"]},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function le({children:e,description:n,disabled:t,id:i,invalid:r,legend:a,inlineSize:d="full"}){const o=n?.trim(),s=i.trim();if(!s)throw new Error("id must be a non-empty string.");if(!M(s))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const l=o?`${s}-description`:void 0,p=!!t,c=!p&&!!r,u=[{kind:"element",tag:"legend",attrs:{class:"legend"},children:[{kind:"text",value:a}]}];return o&&u.push({kind:"element",tag:"p",attrs:{class:"description",id:l},children:[{kind:"text",value:o}]}),e&&u.push({kind:"raw",html:e}),{kind:"element",tag:"fieldset",attrs:{"aria-describedby":o?l:void 0,"aria-invalid":c?"true":void 0,class:"set-fieldset","data-inline-size":d==="fit"?"fit":void 0,disabled:p,id:s},children:u}}function Si(e){return h(le(e))}const Ei={name:"fieldset",description:"Use `fieldset` to group related form controls under a legend.",output:{element:"fieldset",class:"set-fieldset"},content:{kind:"slots",slots:[{prop:"legend",kind:"text"},{prop:"children",kind:"html"}]},props:{children:{description:"Form controls grouped inside the fieldset.",type:{kind:"html"}},description:{description:"Description shown below the legend; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction with controls in the group.",type:{kind:"boolean"}},id:{description:"`id` for the fieldset.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the group as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},legend:{description:"Legend shown above the group.",required:!0,type:{kind:"text"}},inlineSize:{default:"full",description:"Whether the fieldset fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}}]}};function Fe({align:e="start",caption:n,children:t,id:i,responsive:r=!1}){const a=g(i);return{kind:"element",tag:"figure",attrs:{class:"set-figure","data-align":e==="start"?void 0:e,id:a},children:[{kind:"raw",html:t},{kind:"element",tag:"figcaption",attrs:{class:"figcaption"},children:[$({as:"span",children:n,responsive:r,size:"sm"})]}]}}function xi(e){return h(Fe(e))}const Ci={name:"figure",description:"Use `figure` to present media with a caption.",output:{element:"figure",class:"set-figure"},content:{kind:"slots",slots:[{prop:"children",kind:"html"},{prop:"caption",kind:"html"}]},props:{align:{default:"start",description:"Alignment within available space.",type:{kind:"enum",values:["start","center","end"]}},caption:{description:"Caption shown below the media. Supports inline markup such as `<em>`, `<strong>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},children:{description:"Media rendered inside the figure.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},responsive:{default:!1,description:"Scales the caption across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},T=e=>{if(e!==void 0)return String(e)};function Ze({children:e,gap:n="default",id:t}){const i=g(t);return{kind:"element",tag:"div",attrs:{class:"set-grid","data-gap":n==="default"?void 0:n,id:i},children:[{kind:"element",tag:"div",attrs:{class:"grid"},children:e?[{kind:"raw",html:e}]:[]}]}}function zi(e){return h(Ze(e))}function je({align:e,children:n,colSpan:t,colSpanNarrow:i,colSpanWide:r,colStart:a,colStartNarrow:d,colStartWide:o,id:s,justify:l,rowSpan:p,rowSpanNarrow:c,rowSpanWide:u,rowStart:k,rowStartNarrow:b,rowStartWide:m}){const f=g(s);return{kind:"element",tag:"div",attrs:{class:"set-grid-item","data-align":e,"data-justify":l,"data-col-span-narrow":T(i),"data-col-start-narrow":T(d),"data-col-span":T(t),"data-col-start":T(a),"data-col-span-wide":T(r),"data-col-start-wide":T(o),"data-row-span-narrow":T(c),"data-row-start-narrow":T(b),"data-row-span":T(p),"data-row-start":T(k),"data-row-span-wide":T(u),"data-row-start-wide":T(m),id:f},children:n?[{kind:"raw",html:n}]:[]}}function Ti(e){return h(je(e))}const _i={name:"grid",description:"Use `grid` to lay out content in a 12-column responsive grid.",output:{element:"div",class:"set-grid"},content:{kind:"html",prop:"children"},props:{children:{description:"`grid-item` components rendered inside the grid.",type:{kind:"html"}},gap:{default:"default",description:"Space between the `grid-item` components.",type:{kind:"enum",values:["default","expanded","none"]}},id:{description:"DOM id.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-gap",condition:{kind:"when-in",prop:"gap",values:["expanded","none"]},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},_={kind:"number",min:1,max:12,integer:!0},Li={name:"grid-item",description:"Use `grid-item` to place content within a `grid` layout.",output:{element:"div",class:"set-grid-item"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the grid item.",type:{kind:"html"}},align:{description:"Block-axis alignment within the grid cell.",type:{kind:"enum",values:["start","center","end"]}},justify:{description:"Inline-axis alignment within the grid cell.",type:{kind:"enum",values:["start","center","end"]}},colSpan:{description:"Columns spanned at the default breakpoint.",type:_},colStart:{description:"Starting column at the default breakpoint.",type:_},id:{description:"DOM id.",type:{kind:"string"}},rowSpan:{description:"Rows spanned at the default breakpoint.",type:_},rowSpanNarrow:{description:"Rows spanned at the narrow breakpoint.",type:_},rowSpanWide:{description:"Rows spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:_},rowStart:{description:"Starting row at the default breakpoint.",type:_},rowStartNarrow:{description:"Starting row at the narrow breakpoint.",type:_},rowStartWide:{description:"Starting row at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:_},colSpanNarrow:{description:"Columns spanned at the narrow breakpoint.",type:_},colStartNarrow:{description:"Starting column at the narrow breakpoint.",type:_},colSpanWide:{description:"Columns spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:_},colStartWide:{description:"Starting column at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:_}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-provided",prop:"align"},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-justify",condition:{kind:"when-provided",prop:"justify"},value:{kind:"prop",prop:"justify"}},{target:{on:"host"},attribute:"data-col-span",condition:{kind:"when-provided",prop:"colSpan"},value:{kind:"prop",prop:"colSpan"}},{target:{on:"host"},attribute:"data-col-start",condition:{kind:"when-provided",prop:"colStart"},value:{kind:"prop",prop:"colStart"}},{target:{on:"host"},attribute:"data-col-span-narrow",condition:{kind:"when-provided",prop:"colSpanNarrow"},value:{kind:"prop",prop:"colSpanNarrow"}},{target:{on:"host"},attribute:"data-col-start-narrow",condition:{kind:"when-provided",prop:"colStartNarrow"},value:{kind:"prop",prop:"colStartNarrow"}},{target:{on:"host"},attribute:"data-col-span-wide",condition:{kind:"when-provided",prop:"colSpanWide"},value:{kind:"prop",prop:"colSpanWide"}},{target:{on:"host"},attribute:"data-col-start-wide",condition:{kind:"when-provided",prop:"colStartWide"},value:{kind:"prop",prop:"colStartWide"}},{target:{on:"host"},attribute:"data-row-span",condition:{kind:"when-provided",prop:"rowSpan"},value:{kind:"prop",prop:"rowSpan"}},{target:{on:"host"},attribute:"data-row-start",condition:{kind:"when-provided",prop:"rowStart"},value:{kind:"prop",prop:"rowStart"}},{target:{on:"host"},attribute:"data-row-span-narrow",condition:{kind:"when-provided",prop:"rowSpanNarrow"},value:{kind:"prop",prop:"rowSpanNarrow"}},{target:{on:"host"},attribute:"data-row-start-narrow",condition:{kind:"when-provided",prop:"rowStartNarrow"},value:{kind:"prop",prop:"rowStartNarrow"}},{target:{on:"host"},attribute:"data-row-span-wide",condition:{kind:"when-provided",prop:"rowSpanWide"},value:{kind:"prop",prop:"rowSpanWide"}},{target:{on:"host"},attribute:"data-row-start-wide",condition:{kind:"when-provided",prop:"rowStartWide"},value:{kind:"prop",prop:"rowStartWide"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ke({align:e="start",id:n,level:t,opticalAlign:i,responsive:r,size:a="md",text:d}){const o=g(n);return{kind:"element",tag:t?`h${t}`:"span",attrs:{class:"set-heading","data-align":e==="start"?void 0:e,"data-optical-align":i,"data-responsive":r,"data-size":a,id:o},children:[{kind:"text",value:d}]}}function Mi(e){return h(Ke(e))}const Ii={name:"heading",description:"Use `heading` to render heading text with consistent type.",output:{element:{kind:"switch",prop:"level",cases:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"}},class:"set-heading"},content:{kind:"text",prop:"text"},props:{align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},id:{description:"DOM id.",type:{kind:"string"}},level:{description:"Semantic heading level. Renders a `<span>` when omitted.",type:{kind:"enum",values:[1,2,3,4,5,6]}},opticalAlign:{default:!1,description:"Optically aligns left sidebearing-heavy glyphs with the content edge.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales type across breakpoints.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl","2xl","3xl","4xl","5xl"]}},text:{description:"Heading text.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-optical-align",condition:{kind:"when-truthy",prop:"opticalAlign"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Xe({alt:e="",aspectRatio:n,fit:t="intrinsic",gravity:i="C",height:r,id:a,lazy:d,priority:o,radius:s,shadow:l,sizes:p,sources:c,src:u,srcSet:k,width:b}){const m=t==="cover",f=g(a),x=u.trim(),S=k?.trim(),v=p?.trim(),y=c?.map((C,z)=>{const q=C.srcSet.trim(),F=C.media?.trim(),pe=C.type?.trim(),Z=C.sizes?.trim();if(!q)throw new Error(`sources[${z}].srcSet must be non-empty.`);return{height:C.height,media:F||void 0,sizes:Z||void 0,srcSet:q,type:pe||void 0,width:C.width}})||[];if(!x)throw new Error("src must be a non-empty string.");const w={kind:"element",tag:"img",attrs:{alt:e,class:"img",fetchpriority:o?"high":void 0,height:m?void 0:r?String(r):void 0,loading:d&&!o?"lazy":void 0,sizes:y.length>0?void 0:v||void 0,src:x,srcset:S||void 0,width:m?void 0:b?String(b):void 0},children:[]};let E;if(y.length>0){const C=y.map(z=>({kind:"element",tag:"source",attrs:{height:z.height?String(z.height):void 0,media:z.media,sizes:z.sizes,srcset:z.srcSet,type:z.type,width:z.width?String(z.width):void 0},children:[]}));E={kind:"element",tag:"picture",attrs:{},children:[...C,w]}}else E=w;const L=[];return r&&L.push(`--set-image-block-size: ${r/16}rem`),b&&L.push(`--set-image-inline-size: ${b/16}rem`),{kind:"element",tag:"div",attrs:{class:"set-image","data-aspect-ratio":m&&!r?n:void 0,"data-fluid":t==="fluid","data-gravity":m&&i!=="C"?i:void 0,"data-shadow":!!l,"data-object-fit":m?"cover":void 0,"data-radius":!!s,id:f,style:L.length>0?L.join("; "):void 0},children:[E]}}function Qe(e){return h(Xe(e))}const Ai={name:"image",description:"Use `image` to render a responsive image with intrinsic, fluid, or cover fit, and optional art-directed `sources`.",output:{element:"div",class:"set-image"},content:{kind:"none"},props:{alt:{default:"",description:"Alternative text. Leave empty for decorative images.",type:{kind:"string"}},gravity:{default:"C",description:"Focal point used when cropping.",ignoredWhen:'`fit` is not `"cover"`',type:{kind:"enum",values:["N","NE","E","SE","S","SW","W","NW","C"]}},radius:{default:!1,description:"Applies the default corner radius.",type:{kind:"boolean"}},aspectRatio:{description:"Aspect ratio applied to the wrapper.",ignoredWhen:'`fit` is not `"cover"`, or `height` is set',type:{kind:"enum",values:["1:1","4:5","3:2","16:9","21:9"]}},fit:{default:"intrinsic",description:"Layout mode. `intrinsic` renders at the image's own dimensions, `fluid` scales to the container's full inline size at the active source's aspect ratio, `cover` renders a cropped fill (`object-fit: cover`) sized by the wrapper. For `fluid`, provide candidates sized for large viewports via `srcSet`/`sources` so upscaled rendering stays sharp.",type:{kind:"enum",values:["intrinsic","fluid","cover"]}},shadow:{default:!1,description:"Applies a drop shadow to the image.",type:{kind:"boolean"}},height:{description:"Height in pixels. Under `intrinsic` and `fluid`, an aspect-ratio hint — with `width`, reserves the correctly shaped box before load; rendered height follows the aspect ratio. Under `cover`, the wrapper's block size, overriding `aspectRatio`.",type:{kind:"number"}},id:{description:"DOM id.",type:{kind:"string"}},lazy:{default:!1,description:"Defers loading until the image is near the viewport.",type:{kind:"boolean"}},priority:{default:!1,description:"Marks the image as high priority for fetch.",type:{kind:"boolean"}},sizes:{description:"`sizes` attribute used with `srcSet`.",ignoredWhen:"`sources` are provided",type:{kind:"string"}},sources:{description:"Responsive sources rendered inside a `<picture>`.",type:{kind:"array",itemShape:{height:{description:"Intrinsic height in pixels.",type:{kind:"number"}},media:{description:"`media` condition evaluated for the source.",type:{kind:"string"}},sizes:{description:"`sizes` attribute for the source.",type:{kind:"string"}},srcSet:{description:"Candidate sources for this media entry.",required:!0,type:{kind:"string"}},type:{description:"MIME type for the source resources.",type:{kind:"string"}},width:{description:"Intrinsic width in pixels.",type:{kind:"number"}}}}},srcSet:{description:"Candidate sources for the fallback image.",type:{kind:"string"}},src:{description:"Image source URL.",required:!0,type:{kind:"string"}},width:{description:"Width in pixels. Under `intrinsic`, the rendered width, capped at the container; under `fluid`, an aspect-ratio hint; under `cover`, the wrapper's inline size (`aspectRatio` still derives the block size while `height` is unset).",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-object-fit",condition:{kind:"when-equals",prop:"fit",to:"cover"},value:{kind:"literal",text:"cover"}},{target:{on:"host"},attribute:"data-shadow",condition:{kind:"when-truthy",prop:"shadow"}},{target:{on:"host"},attribute:"data-radius",condition:{kind:"when-truthy",prop:"radius"}},{target:{on:"host"},attribute:"data-fluid",condition:{kind:"when-equals",prop:"fit",to:"fluid"}},{target:{on:"descendant",selector:"img"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"img"}},{target:{on:"descendant",selector:"img"},attribute:"alt",condition:{kind:"always"},value:{kind:"prop",prop:"alt"}},{target:{on:"descendant",selector:"img"},attribute:"src",condition:{kind:"always"},value:{kind:"template",pattern:"{src}"}},{target:{on:"descendant",selector:"img"},attribute:"srcset",condition:{kind:"when-non-empty",prop:"srcSet"},value:{kind:"prop",prop:"srcSet"}},{target:{on:"descendant",selector:"img"},attribute:"fetchpriority",condition:{kind:"when-truthy",prop:"priority"},value:{kind:"literal",text:"high"}},{target:{on:"descendant",selector:"img"},attribute:"loading",condition:{kind:"all",of:[{kind:"when-truthy",prop:"lazy"},{kind:"not",of:{kind:"when-truthy",prop:"priority"}}]},value:{kind:"literal",text:"lazy"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ye({align:e="center",as:n="div",children:t,gap:i="md",id:r,justify:a="start",nowrap:d}){const o=g(r);return{kind:"element",tag:n,attrs:{class:"set-inline","data-align":e==="center"?void 0:e,"data-gap":i,"data-justify":a==="start"?void 0:a,"data-nowrap":d,id:o},children:t?[{kind:"raw",html:t}]:[]}}function qi(e){return h(Ye(e))}const Pi={name:"inline",description:"Use `inline` to lay out content in a horizontal row.",output:{element:{kind:"switch",prop:"as",cases:{div:"div",ul:"ul"}},class:"set-inline"},content:{kind:"html",prop:"children"},props:{as:{default:"div",description:"Element tag to render. `ul` children must be `<li>`.",type:{kind:"enum",values:["div","ul"]}},align:{default:"center",description:"Aligns items on the cross axis.",type:{kind:"enum",values:["start","center","end"]}},children:{description:"Items laid out in a row.",type:{kind:"html"}},gap:{default:"md",description:"Space between children.",type:{kind:"enum",values:["2xs","xs","sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},justify:{default:"start",description:"Distributes items along the main axis.",type:{kind:"enum",values:["start","center","end","between"]}},nowrap:{description:"Prevents items from wrapping onto new lines.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["start","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-gap",condition:{kind:"always"},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"data-justify",condition:{kind:"when-in",prop:"justify",values:["center","end","between"]},value:{kind:"prop",prop:"justify"}},{target:{on:"host"},attribute:"data-nowrap",condition:{kind:"when-truthy",prop:"nowrap"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Je({autocomplete:e,description:n,disabled:t,id:i,invalid:r,label:a,name:d,pattern:o,readOnly:s,required:l,size:p="md",spellcheck:c,type:u="text",value:k,inlineSize:b="full"}){const m=i.trim(),f=n?.trim(),x=e===!1?!1:e?.trim(),S=d?.trim(),v=o?.trim(),y=k;if(!m)throw new Error("id must be a non-empty string.");if(!M(m))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const w=f?`${m}-description`:void 0,E=u==="numeric",L=E?"text":u,C=v||(E?"^[0-9]*$":void 0),z=c===void 0&&E?!1:c,q=!!t,F=!q&&!!s,Z=[{kind:"element",tag:"label",attrs:{class:"label",for:m},children:[{kind:"text",value:a}]},{kind:"element",tag:"input",attrs:{"aria-describedby":w,"aria-invalid":!q&&!F&&!!r?"true":void 0,autocomplete:x===!1?"off":x||void 0,class:"input",disabled:q,id:m,inputmode:E?"numeric":void 0,name:S||void 0,pattern:C,readonly:F,required:!!l,spellcheck:z===void 0?void 0:String(z),type:L,value:y},children:[]}];return f&&Z.push({kind:"element",tag:"p",attrs:{class:"description",id:w},children:[{kind:"text",value:f}]}),{kind:"element",tag:"div",attrs:{class:"set-input","data-size":p,"data-inline-size":b==="fit"?"fit":void 0},children:Z}}function Ni(e){return h(Je(e))}const Di={name:"input",description:"Use `input` to collect a single line of text from users.",output:{element:"div",class:"set-input"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{autocomplete:{description:"Autocomplete hint. Pass `false` to disable autocomplete.",type:{kind:"union",variants:[{kind:"string"},{kind:"boolean"}]}},description:{description:"Helper text shown below the input; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},id:{description:"`id` linking the label to the input.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the input as invalid.",ignoredWhen:"`disabled` is true or `readOnly` is true",type:{kind:"boolean"}},label:{description:"Label shown above the input.",required:!0,type:{kind:"text"}},name:{description:"Name submitted with the form.",type:{kind:"string"}},pattern:{description:"Regex pattern the value must match.",type:{kind:"string"}},readOnly:{default:!1,description:"Makes the input read-only.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},required:{default:!1,description:"Marks the input as required.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},spellcheck:{description:"Enables browser spellchecking.",type:{kind:"boolean"}},type:{default:"text",description:"Input type.",type:{kind:"enum",values:["text","email","password","tel","url","numeric"]}},value:{description:"Current value.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the field fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"descendant",selector:"label"},attribute:"for",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"input"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-provided",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"input"},attribute:"readonly",condition:{kind:"all",of:[{kind:"when-truthy",prop:"readOnly"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]}},{target:{on:"descendant",selector:"input"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}},{kind:"not",of:{kind:"when-truthy",prop:"readOnly"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"input"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"input"},attribute:"inputmode",condition:{kind:"when-equals",prop:"type",to:"numeric"},value:{kind:"literal",text:"numeric"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"when-equals",prop:"type",to:"numeric"},value:{kind:"literal",text:"text"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"when-not-in",prop:"type",values:["numeric"]},value:{kind:"prop",prop:"type"}}]}},Hi="0 0 6714.6 1200",Vi="0 0 600 1200",Oi=[{x:0,y:0},{x:300,y:0},{x:150,y:300},{x:450,y:300},{x:0,y:600},{x:300,y:600},{x:150,y:900},{x:450,y:900}],Bi="M0 956h98V571L87 391h2l124 320h89l123-320h3l-11 180v385h98V276H384L260 608h-5L131 276H0zm879.94 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m361.44 83h103V686c0-141 20-169 112-169 73 0 88 18 88 107v332h103V624c0-167-28-202-163-202-95 0-120 16-147 92h-5v-82h-91zm769.16 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m363.25-65c-4 132 30 158 202 158 173 0 208-25 208-150 0-118-33-146-191-170-94-14-114-26-114-74 0-50 18-60 103-60 76 0 92 9 96 52h97c-3-118-36-142-194-142-166 0-201 25-201 146 0 114 31 141 182 162 101 13 122 28 122 82 0 53-18 64-103 64-88 0-107-11-110-68zm558.97 363h102V902h5c20 54 41 64 123 64 160 0 193-45 193-270 0-227-34-274-198-274-83 0-105 11-123 65h-4v-55h-98zm209-298c-93 0-112-30-112-179 0-148 19-178 112-178s113 30 113 179c0 148-20 178-113 178m656.46 83h88V610c0-156-34-187-197-187-150 0-181 27-179 157h97c1-61 15-74 85-74 82 0 99 18 99 105v24h-72c-187 0-226 30-226 179 0 126 28 152 162 152 92 0 116-13 138-74h5zm-8-243c-1 135-22 163-119 163-65 0-79-13-79-75 0-74 18-88 107-88zm551.75 95c-10 56-26 67-89 67-100 0-121-31-121-181s20-181 117-181c65 0 81 14 91 79h101c-4-141-37-170-188-170-185 0-224 46-224 272s39 272 226 272c147 0 179-26 186-158zm547.03 9c-15 48-31 58-96 58-96 0-117-23-123-136h324c5-263-32-317-214-317-172 0-207 46-207 271 0 227 38 273 223 273 139 0 172-25 190-149zm-218-160c4-122 24-146 114-146 88 0 108 24 112 146zm787.56 299h93l-1-734h-102l1 266h-5c-19-54-40-65-120-65-162 0-196 46-196 272s35 271 200 271c84 0 105-11 125-65h5zm-115-82c-94 0-114-30-114-180s20-180 114-180c93 0 112 30 112 180s-19 180-112 180",Ri=1163,et=()=>({kind:"element",tag:"g",attrs:{class:"mark"},children:Oi.map(({x:e,y:n})=>({kind:"element",tag:"rect",attrs:{height:"300",width:"150",x:String(e),y:String(n)},children:[]}))}),Wi=()=>({kind:"element",tag:"g",attrs:{class:"word",transform:`translate(${Ri} 0)`},children:[{kind:"element",tag:"path",attrs:{d:Bi},children:[]}]}),tt=(e,n)=>({kind:"element",tag:"svg",attrs:{"aria-hidden":"true",viewBox:e,xmlns:"http://www.w3.org/2000/svg"},children:n});function Ui(){return tt(Hi,[et(),Wi()])}function Gi(){return tt(Vi,[et()])}function it({animated:e,id:n,label:t,size:i="md",tone:r="default",variant:a="primary"}){const d=g(n),o=!!e&&(a==="primary"||a==="graphic"),s=[{kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:t}]}];return o&&s.push(a==="graphic"?Gi():Ui()),{kind:"element",tag:"div",attrs:{class:"set-logo","data-animated":o,"data-size":i,"data-tone":r==="neutral"?"neutral":void 0,"data-variant":a==="primary"?void 0:a,id:d},children:s}}function $i(e){return h(it(e))}const Fi={name:"logo",description:"Use `logo` to display the brand mark.",output:{element:"div",class:"set-logo"},content:{kind:"text",prop:"label"},props:{animated:{default:!1,description:"Plays the logo's boot animation once on render. Animates the `primary` and `graphic` variants; others render static.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Accessible label.",required:!0,type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg","xl","fill"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},variant:{default:"primary",description:"Logo variant.",type:{kind:"enum",values:["primary","secondary","typographic","graphic"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-animated",condition:{kind:"all",of:[{kind:"when-truthy",prop:"animated"},{kind:"when-in",prop:"variant",values:["primary","graphic"]}]}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"data-variant",condition:{kind:"when-in",prop:"variant",values:["secondary","typographic","graphic"]},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function nt({banner:e,centerMain:n,children:t,footer:i,header:r,headerBorder:a,headerSize:d="md",id:o,stickyHeader:s}){const l=g(o),p=[];return e&&p.push({kind:"raw",html:e}),p.push({kind:"element",tag:"header",attrs:{class:"header"},children:[{kind:"raw",html:r}]}),p.push({kind:"element",tag:"main",attrs:{class:"main"},children:t?[{kind:"raw",html:t}]:[]}),p.push({kind:"element",tag:"footer",attrs:{class:"footer"},children:[{kind:"raw",html:i}]}),{kind:"element",tag:"div",attrs:{class:"set-page","data-center-main":n,"data-header-border":a,"data-header-size":d,"data-sticky-header":s,id:l},children:p}}function Zi(e){return h(nt(e))}const ji={name:"page",description:"Use `page` as the primary layout for header, main, and footer regions.",output:{element:"div",class:"set-page"},content:{kind:"slots",slots:[{prop:"banner",kind:"html"},{prop:"header",kind:"html"},{prop:"children",kind:"html"},{prop:"footer",kind:"html"}]},props:{banner:{description:"Banner rendered above the header.",type:{kind:"html"}},children:{description:"Main content of the page.",type:{kind:"html"}},centerMain:{default:!1,description:"Centers the main region within the page shell.",type:{kind:"boolean"}},header:{description:"Header content.",required:!0,type:{kind:"html"}},headerBorder:{description:"Bottom border on the header. `'always'` is persistent; `'scroll'` fades in only when a sticky header is stuck (browsers without `container-type: scroll-state` fall back to always-on).",type:{kind:"enum",values:["always","scroll"]}},headerSize:{default:"md",description:"Reserves a minimum block size on the header. `--set-page-header-block-size` is exposed to descendants so persistent panels can open below the header band.",type:{kind:"enum",values:["sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},stickyHeader:{description:"When the header stays stuck to the top of the viewport.",type:{kind:"enum",values:["always","belowNotebook"]}},footer:{description:"Footer content.",required:!0,type:{kind:"html"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-center-main",condition:{kind:"when-truthy",prop:"centerMain"}},{target:{on:"host"},attribute:"data-header-border",condition:{kind:"when-provided",prop:"headerBorder"},value:{kind:"prop",prop:"headerBorder"}},{target:{on:"host"},attribute:"data-header-size",condition:{kind:"always"},value:{kind:"prop",prop:"headerSize"}},{target:{on:"host"},attribute:"data-sticky-header",condition:{kind:"when-provided",prop:"stickyHeader"},value:{kind:"prop",prop:"stickyHeader"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function rt({children:e,id:n,padding:t="md",surface:i}){const r=g(n);return{kind:"element",tag:"div",attrs:{class:"set-panel","data-padding":t,"data-set-surface":i,id:r},children:e?[{kind:"raw",html:e}]:[]}}function Ki(e){return h(rt(e))}const Xi={name:"panel",description:"Use `panel` to group related content in a contained region.",output:{element:"div",class:"set-panel"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the panel.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},padding:{default:"md",description:"Inner spacing scale.",type:{kind:"enum",values:["xs","sm","md","lg","xl"]}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-padding",condition:{kind:"always"},value:{kind:"prop",prop:"padding"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function at({children:e,id:n,size:t="md",tone:i="default",variant:r="tile"}={}){const a=g(n);return{kind:"element",tag:"div",attrs:{class:"set-pattern","data-size":t,"data-tone":i==="default"?void 0:i,"data-variant":r,id:a},children:e?[{kind:"raw",html:e}]:[]}}function Qi(e={}){return h(at(e))}const Yi={name:"pattern",description:"Use `pattern` to render repeated visual language components behind content.",output:{element:"div",class:"set-pattern"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered above the pattern.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","subtle","support"]}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl","fill"]}},variant:{default:"tile",description:"Shape used for the pattern tile.",type:{kind:"enum",values:["tile","tileLight","tileDark"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-variant",condition:{kind:"always"},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-in",prop:"tone",values:["subtle","support"]},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ji(e){return Qe({...e,alt:"",fit:"cover",priority:!0})}function ot({children:e,contentTheme:n,id:t,media:i,surface:r}){const a=g(t),d=n?r??"default":r,o=[{kind:"element",tag:"div",attrs:{class:"image-wrapper"},children:[{kind:"raw",html:i}]}];return e&&o.push({kind:"element",tag:"div",attrs:{class:"content"},children:[{kind:"raw",html:e}]}),{kind:"element",tag:"div",attrs:{class:"set-poster","data-set-content-theme":n,"data-set-surface":d,id:a},children:o}}function en(e){return h(ot(e))}const tn={name:"poster",description:"Use `poster` to layer content over background media.",output:{element:"div",class:"set-poster"},content:{kind:"slots",slots:[{prop:"media",kind:"html"},{prop:"children",kind:"html"}]},props:{children:{description:"Foreground content rendered over the media.",type:{kind:"html"}},contentTheme:{description:"Absolute theme lock for foreground content over non-themeable media.",type:{kind:"enum",values:["light","dark"]}},id:{description:"DOM id.",type:{kind:"string"}},media:{description:"Background media markup. Build with `renderSetPosterImage`.",required:!0,type:{kind:"html"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"when-provided",prop:"contentTheme"},value:{kind:"prop",prop:"contentTheme"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"all",of:[{kind:"when-provided",prop:"contentTheme"},{kind:"not",of:{kind:"when-provided",prop:"surface"}}]},value:{kind:"literal",text:"default"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function dt({align:e="start",children:n,hangingPunctuation:t,id:i,linkVisited:r=!0,measured:a=!0,monospaced:d,responsive:o}){const s=g(i);return{kind:"element",tag:"div",attrs:{class:"set-prose","data-align":e!=="start"?e:void 0,"data-hanging-punctuation":t,"data-link-visited":r?void 0:"off","data-measured":a,"data-monospaced":d,"data-responsive":o,id:s},children:[{kind:"raw",html:n}]}}function nn(e){return h(dt(e))}const rn={name:"prose",description:"Use `prose` to style rich-text markup.",output:{element:"div",class:"set-prose"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the prose wrapper.",required:!0,type:{kind:"html"}},align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},hangingPunctuation:{description:"Position list markers and leading quote marks in the margin, with text aligned.",type:{kind:"enum",values:["always","notebook"]}},id:{description:"DOM id.",type:{kind:"string"}},linkVisited:{default:!0,description:"Styles visited links inside the prose.",type:{kind:"boolean"}},measured:{default:!0,description:"Caps line length for comfortable reading.",type:{kind:"boolean"}},monospaced:{default:!1,description:"Applies monospaced word spacing throughout.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales body text across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-hanging-punctuation",condition:{kind:"when-provided",prop:"hangingPunctuation"},value:{kind:"prop",prop:"hangingPunctuation"}},{target:{on:"host"},attribute:"data-link-visited",condition:{kind:"when-equals",prop:"linkVisited",to:!1},value:{kind:"literal",text:"off"}},{target:{on:"host"},attribute:"data-measured",condition:{kind:"when-truthy",prop:"measured"}},{target:{on:"host"},attribute:"data-monospaced",condition:{kind:"when-truthy",prop:"monospaced"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function st({description:e,disabled:n,id:t,invalid:i,radios:r,legend:a,name:d,orientation:o="vertical",required:s,size:l="md",value:p}){const c=t.trim(),u=d.trim(),k=p?.trim();if(!c)throw new Error("id must be a non-empty string.");if(!M(c))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!u)throw new Error("name must be a non-empty string.");if(r.length<2)throw new Error("radios must include at least 2 options.");const b=r.map((v,y)=>{const w=v.value.trim(),E=v.label.trim(),L=v.description?.trim();if(!w)throw new Error(`radios[${y}].value must be non-empty.`);if(!E)throw new Error(`radios[${y}].label must be non-empty.`);return{description:L,disabled:!!v.disabled,label:E,value:w}});if(new Set(b.map(v=>v.value)).size!==b.length)throw new Error("radios values must be unique.");const f=!!n,x=b.map(v=>{const y=!!v.disabled,w=v.description?`${c}-${v.value}-description`:void 0,E=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":w,checked:k===v.value,class:"radio",disabled:y,name:u,required:!!s&&!f&&!y,type:"radio",value:v.value},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:v.label}]}]}];return v.description&&E.push({kind:"element",tag:"p",attrs:{class:"radio-description",id:w},children:[{kind:"text",value:v.description}]}),{kind:"element",tag:"div",attrs:{class:"radio-field"},children:E}});return le({children:h({kind:"element",tag:"div",attrs:{class:"set-radios","data-orientation":o,"data-size":l},children:x}),description:e,disabled:f,id:c,invalid:i,legend:a})}function an(e){return h(st(e))}const on={name:"radios",description:"Use `radios` to let users select one option from a short list.",output:{element:"fieldset",class:"set-fieldset"},content:{kind:"structured",prop:"radios"},props:{description:{description:"Helper text shown below the legend.",type:{kind:"string"}},disabled:{default:!1,description:"Disables every option in the group.",type:{kind:"boolean"}},id:{description:"Unique id used to associate the group with its descriptions.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the group as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},radios:{description:"Options shown in the group.",required:!0,type:{kind:"array",itemShape:{description:{description:"Optional per-item helper text.",type:{kind:"string"}},disabled:{default:!1,description:"Optional per-item disabled override.",type:{kind:"boolean"}},label:{description:"Radio option label.",required:!0,type:{kind:"text"}},value:{description:"Submitted value and selection key.",required:!0,type:{kind:"string"}}}}},legend:{description:"Group label.",required:!0,type:{kind:"text"}},name:{description:"Form field name shared by all options.",required:!0,type:{kind:"string"}},orientation:{default:"vertical",description:"Layout direction.",type:{kind:"enum",values:["vertical","horizontal"]}},required:{default:!1,description:"Requires a selection before submission.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Currently selected value.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"div.set-radios"},attribute:"data-orientation",condition:{kind:"always"},value:{kind:"prop",prop:"orientation"}},{target:{on:"descendant",selector:"div.set-radios"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"radio"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"radio"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"always"},value:{kind:"prop",prop:"name"}}]}};function lt({appOverscrollBehavior:e,appRoot:n,brand:t="mnsp",children:i,dir:r,id:a,lang:d,theme:o}){const s=g(a);return{kind:"element",tag:"div",attrs:{class:"set","data-app-root":n,"data-app-overscroll-behavior":e==="none"?"none":void 0,"data-set-brand":t,"data-set-theme":o,id:s,lang:d===""?void 0:d,dir:r},children:i?[{kind:"raw",html:i}]:[]}}function dn(e){return h(lt(e))}const sn={name:"root",description:"Mandatory top-level `root` wrapper for the Set system.",output:{element:"div",class:"set"},content:{kind:"html",prop:"children"},props:{appOverscrollBehavior:{description:"Disables overscroll bounce for app-shell integrations.",type:{kind:"enum",values:["none"]}},appRoot:{default:!1,description:"Marks this wrapper as the app root.",type:{kind:"boolean"}},brand:{default:"mnsp",description:"Brand identity applied to the wrapper.",type:{kind:"enum",values:["mnsp","wrfr"]}},children:{description:"Content rendered inside the root.",required:!0,type:{kind:"html"}},dir:{description:"Text direction.",type:{kind:"enum",values:["ltr","rtl"]}},id:{description:"DOM id.",type:{kind:"string"}},lang:{description:"BCP47 language tag (e.g. `en-GB`).",type:{kind:"string"}},theme:{description:"Colour theme.",type:{kind:"enum",values:["light","dark"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-app-overscroll-behavior",condition:{kind:"when-equals",prop:"appOverscrollBehavior",to:"none"},value:{kind:"literal",text:"none"}},{target:{on:"host"},attribute:"data-app-root",condition:{kind:"when-truthy",prop:"appRoot"}},{target:{on:"host"},attribute:"data-set-brand",condition:{kind:"always"},value:{kind:"prop",prop:"brand"}},{target:{on:"host"},attribute:"data-set-theme",condition:{kind:"when-provided",prop:"theme"},value:{kind:"prop",prop:"theme"}},{target:{on:"host"},attribute:"dir",condition:{kind:"when-provided",prop:"dir"},value:{kind:"prop",prop:"dir"}},{target:{on:"host"},attribute:"lang",condition:{kind:"when-non-empty",prop:"lang"},value:{kind:"prop",prop:"lang"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function pt({id:e,label:n,size:t="md",tone:i="default"}={}){const r=g(e),d=[{kind:"element",tag:"svg",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 1200",fill:"currentColor"},children:[[60,60],[60,360],[60,660],[60,960],[360,960],[360,660],[360,360],[360,60]].map(([o,s])=>({kind:"element",tag:"rect",attrs:{class:"cell",x:String(o),y:String(s),width:"180",height:"180"},children:[]}))}];return n&&d.push({kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:n}]}),{kind:"element",tag:"span",attrs:{class:"set-spinner","data-size":t,"data-tone":i==="brand"?"brand":void 0,id:r,role:n?"status":void 0},children:d}}function ln(e={}){return h(pt(e))}const pn={name:"spinner",description:"Use `spinner` to indicate loading or in-progress state.",output:{element:"span",class:"set-spinner"},content:{kind:"text",prop:"label"},props:{id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Accessible status label announced to assistive tech.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["2xs","xs","sm","md","lg","xl","2xl","fill"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"brand"},value:{kind:"literal",text:"brand"}},{target:{on:"host"},attribute:"role",condition:{kind:"when-non-empty",prop:"label"},value:{kind:"literal",text:"status"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ct({align:e="stretch",as:n="div",children:t,gap:i="md",id:r,responsive:a}){const d=g(r);return{kind:"element",tag:n,attrs:{class:"set-stack","data-align":e==="stretch"?void 0:e,"data-gap":i,"data-responsive":a,id:d},children:t?[{kind:"raw",html:t}]:[]}}function cn(e){return h(ct(e))}const un={name:"stack",description:"Use `stack` to lay out content in a vertical column.",output:{element:{kind:"switch",prop:"as",cases:{div:"div",ul:"ul"}},class:"set-stack"},content:{kind:"html",prop:"children"},props:{align:{default:"stretch",description:"Aligns items on the cross axis.",type:{kind:"enum",values:["stretch","start","center","end"]}},as:{default:"div",description:"Element tag to render. `ul` children must be `<li>`.",type:{kind:"enum",values:["div","ul"]}},children:{description:"Items laid out in a column.",type:{kind:"html"}},gap:{default:"md",description:"Space between children.",type:{kind:"enum",values:["none","xs","sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},responsive:{default:!1,description:"Scales spacing across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["start","center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-gap",condition:{kind:"always"},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ut({children:e,contentTheme:n,id:t,variant:i="default"}){const r=g(t);return{kind:"element",tag:"div",attrs:{class:"set-surface","data-set-content-theme":n,"data-set-surface":i,id:r},children:[{kind:"raw",html:e}]}}function hn(e){return h(ut(e))}const mn={name:"surface",description:"Use `surface` to set a colour context for nested content.",output:{element:"div",class:"set-surface"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the surface.",required:!0,type:{kind:"html"}},contentTheme:{description:"Absolute theme lock for content rendered inside the surface.",type:{kind:"enum",values:["light","dark"]}},id:{description:"DOM id.",type:{kind:"string"}},variant:{default:"default",description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"when-provided",prop:"contentTheme"},value:{kind:"prop",prop:"contentTheme"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"always"},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ht({checked:e,description:n,disabled:t,id:i,label:r,name:a,size:d="md",value:o}){const s=g(i),l=n?.trim();if(l&&!s)throw new Error("id must be provided when description is provided.");const p=l?`${s}-description`:void 0,c=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":p,checked:!!e,class:"switch",disabled:!!t,id:s,name:a||void 0,role:"switch",type:"checkbox",value:o||void 0},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:r}]}]}];return l&&c.push({kind:"element",tag:"p",attrs:{class:"description",id:p},children:[{kind:"text",value:l}]}),{kind:"element",tag:"div",attrs:{class:"set-switch","data-size":d},children:c}}function kn(e){return h(ht(e))}const gn={name:"switch",description:"Use `switch` to let users instantly toggle a setting on or off.",output:{element:"div",class:"set-switch"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{checked:{default:!1,description:"Whether the switch is on.",type:{kind:"boolean"}},description:{description:"Helper text shown below the label.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the switch.",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`description` is provided",type:{kind:"string"}},label:{description:"Label text.",required:!0,type:{kind:"text"}},name:{description:"Form field name.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Submitted value when checked.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"switch"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"role",condition:{kind:"always"},value:{kind:"literal",text:"switch"}},{target:{on:"descendant",selector:"input"},attribute:"checked",condition:{kind:"when-truthy",prop:"checked"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function mt({autocomplete:e,description:n,disabled:t,id:i,invalid:r,label:a,name:d,readOnly:o,required:s,resize:l="vertical",rows:p=2,size:c="md",spellcheck:u,value:k,inlineSize:b="full"}){const m=i.trim(),f=n?.trim(),x=e===!1?!1:e?.trim(),S=d?.trim(),v=k;if(!m)throw new Error("id must be a non-empty string.");if(!M(m))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!Number.isInteger(p)||p<2)throw new Error("rows must be an integer greater than or equal to 2.");const y=f?`${m}-description`:void 0,w=!!t,E=!w&&!!o,C=[{kind:"element",tag:"label",attrs:{class:"label",for:m},children:[{kind:"text",value:a}]},{kind:"element",tag:"textarea",attrs:{"aria-describedby":y,"aria-invalid":!w&&!E&&!!r?"true":void 0,autocomplete:x===!1?"off":x||void 0,class:"textarea",disabled:w,id:m,name:S||void 0,readonly:E,required:!!s,rows:String(p),spellcheck:u===void 0?void 0:String(u)},children:[{kind:"text",value:v||""}]}];return f&&C.push({kind:"element",tag:"p",attrs:{class:"description",id:y},children:[{kind:"text",value:f}]}),{kind:"element",tag:"div",attrs:{class:"set-textarea","data-resize":l==="none"?"none":void 0,"data-size":c,"data-inline-size":b==="fit"?"fit":void 0},children:C}}function bn(e){return h(mt(e))}const vn={name:"textarea",description:"Use `textarea` to collect multiple lines of text from users.",output:{element:"div",class:"set-textarea"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"value",kind:"text"},{prop:"description",kind:"text"}]},props:{autocomplete:{description:"Browser autocomplete hint. Pass `false` to disable.",type:{kind:"union",variants:[{kind:"string"},{kind:"boolean"}]}},description:{description:"Helper text shown below the textarea; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the textarea.",type:{kind:"boolean"}},id:{description:"`id` used to associate the textarea with its label.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the textarea as invalid.",ignoredWhen:"`disabled` is true or `readOnly` is true",type:{kind:"boolean"}},label:{description:"Label text.",required:!0,type:{kind:"text"}},name:{description:"Form field name.",type:{kind:"string"}},readOnly:{default:!1,description:"Prevents editing while keeping the value visible.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},required:{default:!1,description:"Requires a value before submission.",type:{kind:"boolean"}},resize:{default:"vertical",description:"How the user can resize the textarea.",type:{kind:"enum",values:["vertical","none"]}},rows:{default:2,description:"Number of visible rows.",type:{kind:"number",min:2,max:10,integer:!0}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},spellcheck:{description:"Whether the browser checks spelling.",type:{kind:"boolean"}},value:{description:"Current value.",type:{kind:"string"}},inlineSize:{default:"full",description:"How the textarea fills its container.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"data-resize",condition:{kind:"when-equals",prop:"resize",to:"none"},value:{kind:"literal",text:"none"}},{target:{on:"descendant",selector:"label"},attribute:"for",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"textarea"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"textarea"}},{target:{on:"descendant",selector:"textarea"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"textarea"},attribute:"rows",condition:{kind:"always"},value:{kind:"prop",prop:"rows"}},{target:{on:"descendant",selector:"textarea"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"textarea"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"textarea"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"textarea"},attribute:"readonly",condition:{kind:"all",of:[{kind:"when-truthy",prop:"readOnly"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]}},{target:{on:"descendant",selector:"textarea"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}},{kind:"not",of:{kind:"when-truthy",prop:"readOnly"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"textarea"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"textarea"},attribute:"spellcheck",condition:{kind:"when-provided",prop:"spellcheck"},value:{kind:"prop",prop:"spellcheck"}}]}};function fn(){fe(),we(),Ee(),Ce(),Le(),Ie(),qe(),Ne()}exports.SET_ALERT_EVENT_BEFORE_DISMISS=ie;exports.SET_ALERT_EVENT_DISMISS=ne;exports.SET_ALERT_SPEC=xt;exports.SET_ALERT_TAG_NAME=D;exports.SET_AVATAR_SPEC=ni;exports.SET_BADGE_SPEC=ai;exports.SET_BANNER_EVENT_BEFORE_DISMISS=ae;exports.SET_BANNER_EVENT_DISMISS=oe;exports.SET_BANNER_SPEC=Mt;exports.SET_BANNER_TAG_NAME=V;exports.SET_BLOCKQUOTE_SPEC=li;exports.SET_BOX_SPEC=ci;exports.SET_BUTTON_SPEC=ft;exports.SET_CARD_SPEC=hi;exports.SET_CHECKBOX_SPEC=ki;exports.SET_CONTAINER_SPEC=bi;exports.SET_DETAILS_SPEC=fi;exports.SET_DIVIDER_SPEC=wi;exports.SET_EXPANDER_SPEC=Ht;exports.SET_FIELDSET_SPEC=Ei;exports.SET_FIGURE_SPEC=Ci;exports.SET_GRID_ITEM_SPEC=Li;exports.SET_GRID_SPEC=_i;exports.SET_HEADING_SPEC=Ii;exports.SET_ICON_NAMES=bt;exports.SET_ICON_SPEC=vt;exports.SET_IMAGE_SPEC=Ai;exports.SET_INLINE_SPEC=Pi;exports.SET_INPUT_SPEC=Di;exports.SET_LIGHTSWITCH_EVENT_CHANGE=de;exports.SET_LIGHTSWITCH_SPEC=Pt;exports.SET_LIGHTSWITCH_STORAGE_KEY=j;exports.SET_LIGHTSWITCH_TAG_NAME=O;exports.SET_LINK_SPEC=Tt;exports.SET_LOGO_SPEC=Fi;exports.SET_MENU_EVENT_CHOOSE=se;exports.SET_MENU_SPEC=Dt;exports.SET_MENU_TAG_NAME=B;exports.SET_NAV_SPEC=Ot;exports.SET_NAV_TAG_NAME=R;exports.SET_PAGE_SPEC=ji;exports.SET_PANEL_SPEC=Xi;exports.SET_PATTERN_SPEC=Yi;exports.SET_POSTER_SPEC=tn;exports.SET_PROSE_SPEC=rn;exports.SET_RADIOS_SPEC=on;exports.SET_RANGE_SPEC=Rt;exports.SET_RANGE_TAG_NAME=W;exports.SET_ROOT_SPEC=sn;exports.SET_SIDEBAR_SPEC=$t;exports.SET_SIDEBAR_TAG_NAME=U;exports.SET_SPINNER_SPEC=pn;exports.SET_STACK_SPEC=un;exports.SET_SURFACE_SPEC=mn;exports.SET_SWITCH_SPEC=gn;exports.SET_TEXTAREA_SPEC=vn;exports.SET_TEXT_SPEC=di;exports.SET_VIDEO_SPEC=jt;exports.SET_VIDEO_TAG_NAME=G;exports.buildSetAlert=ve;exports.buildSetAvatar=He;exports.buildSetBadge=Ve;exports.buildSetBanner=ye;exports.buildSetBlockquote=Oe;exports.buildSetBox=Be;exports.buildSetButton=X;exports.buildSetCard=Re;exports.buildSetCheckbox=We;exports.buildSetContainer=Ue;exports.buildSetDetails=Ge;exports.buildSetDivider=$e;exports.buildSetExpander=ze;exports.buildSetFieldset=le;exports.buildSetFigure=Fe;exports.buildSetGrid=Ze;exports.buildSetGridItem=je;exports.buildSetHeading=Ke;exports.buildSetIcon=A;exports.buildSetImage=Xe;exports.buildSetInline=Ye;exports.buildSetInput=Je;exports.buildSetLightswitch=Se;exports.buildSetLink=re;exports.buildSetLogo=it;exports.buildSetMenu=xe;exports.buildSetNav=_e;exports.buildSetPage=nt;exports.buildSetPanel=rt;exports.buildSetPattern=at;exports.buildSetPoster=ot;exports.buildSetProse=dt;exports.buildSetRadios=st;exports.buildSetRange=Me;exports.buildSetRoot=lt;exports.buildSetSidebar=Ae;exports.buildSetSpinner=pt;exports.buildSetStack=ct;exports.buildSetSurface=ut;exports.buildSetSwitch=ht;exports.buildSetText=$;exports.buildSetTextarea=mt;exports.buildSetVideo=Pe;exports.defineSetAlert=fe;exports.defineSetBanner=we;exports.defineSetComponents=fn;exports.defineSetLightswitch=Ee;exports.defineSetMenu=Ce;exports.defineSetNav=Le;exports.defineSetRange=Ie;exports.defineSetSidebar=qe;exports.defineSetVideo=Ne;exports.getSetInitials=De;exports.renderSetAlert=Et;exports.renderSetAvatar=ii;exports.renderSetBadge=ri;exports.renderSetBanner=Lt;exports.renderSetBlockquote=si;exports.renderSetBox=pi;exports.renderSetButton=Q;exports.renderSetCard=ui;exports.renderSetCheckbox=mi;exports.renderSetContainer=gi;exports.renderSetDetails=vi;exports.renderSetDivider=yi;exports.renderSetExpander=Te;exports.renderSetFieldset=Si;exports.renderSetFigure=xi;exports.renderSetGrid=zi;exports.renderSetGridItem=Ti;exports.renderSetHeading=Mi;exports.renderSetIcon=be;exports.renderSetImage=Qe;exports.renderSetInline=qi;exports.renderSetInput=Ni;exports.renderSetLightswitch=qt;exports.renderSetLink=zt;exports.renderSetLogo=$i;exports.renderSetMenu=Nt;exports.renderSetNav=Vt;exports.renderSetPage=Zi;exports.renderSetPanel=Ki;exports.renderSetPattern=Qi;exports.renderSetPoster=en;exports.renderSetPosterImage=Ji;exports.renderSetProse=nn;exports.renderSetRadios=an;exports.renderSetRange=Bt;exports.renderSetRoot=dn;exports.renderSetSidebar=Gt;exports.renderSetSpinner=ln;exports.renderSetStack=cn;exports.renderSetSurface=hn;exports.renderSetSwitch=kn;exports.renderSetText=oi;exports.renderSetTextarea=bn;exports.renderSetVideo=Ft;exports.serializeSetNode=h;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|