@atomic-ui/ui 0.12.1 → 0.13.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.
Files changed (74) hide show
  1. package/custom-elements.json +18 -1
  2. package/dist/base/FieldElement.d.ts +20 -2
  3. package/dist/{chunk-2WHOBIOY.js → chunk-2BGOBD6Y.js} +2 -2
  4. package/dist/{chunk-FLAUZU7Y.js → chunk-2RC3QKYA.js} +84 -27
  5. package/dist/chunk-2RC3QKYA.js.map +1 -0
  6. package/dist/{chunk-UYTIJCCW.js → chunk-B2GWXXIW.js} +2 -2
  7. package/dist/{chunk-CFCFKLTN.js → chunk-EA3M6KPB.js} +11 -1
  8. package/dist/chunk-EA3M6KPB.js.map +1 -0
  9. package/dist/{chunk-R6YMSJR7.js → chunk-EFP7PJ6C.js} +68 -25
  10. package/dist/chunk-EFP7PJ6C.js.map +1 -0
  11. package/dist/{chunk-5IGBH4GL.js → chunk-EUOBFMWC.js} +2 -2
  12. package/dist/{chunk-FZWUQC42.js → chunk-F2MFV7RM.js} +2 -2
  13. package/dist/{chunk-3GPGDERO.js → chunk-G7CVRNY5.js} +2 -2
  14. package/dist/{chunk-2TNF7O43.js → chunk-LSEK5MEZ.js} +2 -2
  15. package/dist/{chunk-DXLEYNID.js → chunk-LVBYNQ45.js} +5 -3
  16. package/dist/chunk-LVBYNQ45.js.map +1 -0
  17. package/dist/{chunk-BAYSDP44.js → chunk-MGDX7Z74.js} +49 -17
  18. package/dist/chunk-MGDX7Z74.js.map +1 -0
  19. package/dist/{chunk-5HCWL2YD.js → chunk-P5FAKEFK.js} +2 -2
  20. package/dist/{chunk-HSXLSJVG.js → chunk-PII4SJL5.js} +32 -16
  21. package/dist/chunk-PII4SJL5.js.map +1 -0
  22. package/dist/{chunk-ALFE35FS.js → chunk-QJBRENLI.js} +3 -3
  23. package/dist/{chunk-ALFE35FS.js.map → chunk-QJBRENLI.js.map} +1 -1
  24. package/dist/{chunk-LXVPWTSY.js → chunk-RCZPRFHQ.js} +37 -21
  25. package/dist/chunk-RCZPRFHQ.js.map +1 -0
  26. package/dist/{chunk-3KAFK24X.js → chunk-RNFGIXJ7.js} +2 -2
  27. package/dist/{chunk-SOYKSPPX.js → chunk-SY7NTW3U.js} +2 -2
  28. package/dist/{chunk-4MMRBNW7.js → chunk-WEX5RKVC.js} +10 -6
  29. package/dist/chunk-WEX5RKVC.js.map +1 -0
  30. package/dist/{chunk-CQT3VPYK.js → chunk-WT7MHYJR.js} +2 -2
  31. package/dist/components/accordion.js +1 -1
  32. package/dist/components/app-bar.js +2 -2
  33. package/dist/components/app-ui.js +2 -2
  34. package/dist/components/button.js +1 -1
  35. package/dist/components/checkbox-group.js +2 -2
  36. package/dist/components/checkbox.js +2 -2
  37. package/dist/components/chip-group.js +2 -2
  38. package/dist/components/date-input.js +2 -2
  39. package/dist/components/dialog.js +1 -1
  40. package/dist/components/journey.js +2 -2
  41. package/dist/components/layout.js +1 -1
  42. package/dist/components/navigation.js +1 -1
  43. package/dist/components/page.js +1 -1
  44. package/dist/components/radio-group.js +2 -2
  45. package/dist/components/rows.js +1 -1
  46. package/dist/components/select.js +2 -2
  47. package/dist/components/switch.js +2 -2
  48. package/dist/components/text-input.js +2 -2
  49. package/dist/components/textarea.js +2 -2
  50. package/dist/index.js +19 -19
  51. package/dist/server.d.ts +42 -0
  52. package/dist/server.js +26 -0
  53. package/dist/server.js.map +1 -0
  54. package/dist/standalone/atomic-ui.js +823 -742
  55. package/dist/standalone/atomic-ui.js.map +3 -3
  56. package/package.json +6 -2
  57. package/dist/chunk-4MMRBNW7.js.map +0 -1
  58. package/dist/chunk-BAYSDP44.js.map +0 -1
  59. package/dist/chunk-CFCFKLTN.js.map +0 -1
  60. package/dist/chunk-DXLEYNID.js.map +0 -1
  61. package/dist/chunk-FLAUZU7Y.js.map +0 -1
  62. package/dist/chunk-HSXLSJVG.js.map +0 -1
  63. package/dist/chunk-LXVPWTSY.js.map +0 -1
  64. package/dist/chunk-R6YMSJR7.js.map +0 -1
  65. /package/dist/{chunk-2WHOBIOY.js.map → chunk-2BGOBD6Y.js.map} +0 -0
  66. /package/dist/{chunk-UYTIJCCW.js.map → chunk-B2GWXXIW.js.map} +0 -0
  67. /package/dist/{chunk-5IGBH4GL.js.map → chunk-EUOBFMWC.js.map} +0 -0
  68. /package/dist/{chunk-FZWUQC42.js.map → chunk-F2MFV7RM.js.map} +0 -0
  69. /package/dist/{chunk-3GPGDERO.js.map → chunk-G7CVRNY5.js.map} +0 -0
  70. /package/dist/{chunk-2TNF7O43.js.map → chunk-LSEK5MEZ.js.map} +0 -0
  71. /package/dist/{chunk-5HCWL2YD.js.map → chunk-P5FAKEFK.js.map} +0 -0
  72. /package/dist/{chunk-3KAFK24X.js.map → chunk-RNFGIXJ7.js.map} +0 -0
  73. /package/dist/{chunk-SOYKSPPX.js.map → chunk-SY7NTW3U.js.map} +0 -0
  74. /package/dist/{chunk-CQT3VPYK.js.map → chunk-WT7MHYJR.js.map} +0 -0
@@ -1,28 +1,28 @@
1
- /* @atomic-ui/ui version 0.12.1, standalone. */
2
- var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{createHTML:n=>n}):void 0,Vt="$lit$",P=`lit$${Math.random().toFixed(9).slice(2)}$`,Kt="?"+P,Wi=`<${Kt}>`,V=document,ie=()=>V.createComment(""),re=n=>n===null||typeof n!="object"&&typeof n!="function",Gt=Array.isArray,fi=n=>Gt(n)||typeof n?.[Symbol.iterator]=="function",Ut=`[
3
- \f\r]`,te=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hi=/-->/g,ui=/>/g,U=RegExp(`>|${Ut}(?:([^\\s"'>=/]+)(${Ut}*=${Ut}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),mi=/'/g,gi=/"/g,$i=/^(?:script|style|textarea|title)$/i,Yt=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),s=Yt(1),y=Yt(2),Mr=Yt(3),_=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),bi=new WeakMap,W=V.createTreeWalker(V,129);function xi(n,e){if(!Gt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return pi!==void 0?pi.createHTML(e):e}var yi=(n,e)=>{let i=n.length-1,a=[],o,d=e===2?"<svg>":e===3?"<math>":"",c=te;for(let $=0;$<i;$++){let g=n[$],v,L,E=-1,O=0;for(;O<g.length&&(c.lastIndex=O,L=c.exec(g),L!==null);)O=c.lastIndex,c===te?L[1]==="!--"?c=hi:L[1]!==void 0?c=ui:L[2]!==void 0?($i.test(L[2])&&(o=RegExp("</"+L[2],"g")),c=U):L[3]!==void 0&&(c=U):c===U?L[0]===">"?(c=o??te,E=-1):L[1]===void 0?E=-2:(E=c.lastIndex-L[2].length,v=L[1],c=L[3]===void 0?U:L[3]==='"'?gi:mi):c===gi||c===mi?c=U:c===hi||c===ui?c=te:(c=U,o=void 0);let q=c===U&&n[$+1].startsWith("/>")?" ":"";d+=c===te?g+Wi:E>=0?(a.push(v),g.slice(0,E)+Vt+g.slice(E)+P+q):g+P+(E===-2?$:q)}return[xi(n,d+(n[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),a]},ae=class n{constructor({strings:e,_$litType$:i},a){let o;this.parts=[];let d=0,c=0,$=e.length-1,g=this.parts,[v,L]=yi(e,i);if(this.el=n.createElement(v,a),W.currentNode=this.el.content,i===2||i===3){let E=this.el.content.firstChild;E.replaceWith(...E.childNodes)}for(;(o=W.nextNode())!==null&&g.length<$;){if(o.nodeType===1){if(o.hasAttributes())for(let E of o.getAttributeNames())if(E.endsWith(Vt)){let O=L[c++],q=o.getAttribute(E).split(P),fe=/([.?@])?(.*)/.exec(O);g.push({type:1,index:d,name:fe[2],strings:q,ctor:fe[1]==="."?ye:fe[1]==="?"?ke:fe[1]==="@"?ve:G}),o.removeAttribute(E)}else E.startsWith(P)&&(g.push({type:6,index:d}),o.removeAttribute(E));if($i.test(o.tagName)){let E=o.textContent.split(P),O=E.length-1;if(O>0){o.textContent=$e?$e.emptyScript:"";for(let q=0;q<O;q++)o.append(E[q],ie()),W.nextNode(),g.push({type:2,index:++d});o.append(E[O],ie())}}}else if(o.nodeType===8)if(o.data===Kt)g.push({type:2,index:d});else{let E=-1;for(;(E=o.data.indexOf(P,E+1))!==-1;)g.push({type:7,index:d}),E+=P.length-1}d++}}static createElement(e,i){let a=V.createElement("template");return a.innerHTML=e,a}};function K(n,e,i=n,a){if(e===_)return e;let o=a!==void 0?i._$Co?.[a]:i._$Cl,d=re(e)?void 0:e._$litDirective$;return o?.constructor!==d&&(o?._$AO?.(!1),d===void 0?o=void 0:(o=new d(n),o._$AT(n,i,a)),a!==void 0?(i._$Co??=[])[a]=o:i._$Cl=o),o!==void 0&&(e=K(n,o._$AS(n,e.values),o,a)),e}var xe=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:a}=this._$AD,o=(e?.creationScope??V).importNode(i,!0);W.currentNode=o;let d=W.nextNode(),c=0,$=0,g=a[0];for(;g!==void 0;){if(c===g.index){let v;g.type===2?v=new Z(d,d.nextSibling,this,e):g.type===1?v=new g.ctor(d,g.name,g.strings,this,e):g.type===6&&(v=new we(d,this,e)),this._$AV.push(v),g=a[++$]}c!==g?.index&&(d=W.nextNode(),c++)}return W.currentNode=V,o}p(e){let i=0;for(let a of this._$AV)a!==void 0&&(a.strings!==void 0?(a._$AI(e,a,i),i+=a.strings.length-2):a._$AI(e[i])),i++}},Z=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,a,o){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=a,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=K(this,e,i),re(e)?e===l||e==null||e===""?(this._$AH!==l&&this._$AR(),this._$AH=l):e!==this._$AH&&e!==_&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):fi(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==l&&re(this._$AH)?this._$AA.nextSibling.data=e:this.T(V.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:a}=e,o=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=ae.createElement(xi(a.h,a.h[0]),this.options)),a);if(this._$AH?._$AD===o)this._$AH.p(i);else{let d=new xe(o,this),c=d.u(this.options);d.p(i),this.T(c),this._$AH=d}}_$AC(e){let i=bi.get(e.strings);return i===void 0&&bi.set(e.strings,i=new ae(e)),i}k(e){Gt(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,a,o=0;for(let d of e)o===i.length?i.push(a=new n(this.O(ie()),this.O(ie()),this,this.options)):a=i[o],a._$AI(d),o++;o<i.length&&(this._$AR(a&&a._$AB.nextSibling,o),i.length=o)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let a=ci(e).nextSibling;ci(e).remove(),e=a}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},G=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,a,o,d){this.type=1,this._$AH=l,this._$AN=void 0,this.element=e,this.name=i,this._$AM=o,this.options=d,a.length>2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=l}_$AI(e,i=this,a,o){let d=this.strings,c=!1;if(d===void 0)e=K(this,e,i,0),c=!re(e)||e!==this._$AH&&e!==_,c&&(this._$AH=e);else{let $=e,g,v;for(e=d[0],g=0;g<d.length-1;g++)v=K(this,$[a+g],i,g),v===_&&(v=this._$AH[g]),c||=!re(v)||v!==this._$AH[g],v===l?e=l:e!==l&&(e+=(v??"")+d[g+1]),this._$AH[g]=v}c&&!o&&this.j(e)}j(e){e===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ye=class extends G{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===l?void 0:e}},ke=class extends G{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==l)}},ve=class extends G{constructor(e,i,a,o,d){super(e,i,a,o,d),this.type=5}_$AI(e,i=this){if((e=K(this,e,i,0)??l)===_)return;let a=this._$AH,o=e===l&&a!==l||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,d=e!==l&&(a===l||o);o&&this.element.removeEventListener(this.name,this,a),d&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},we=class{constructor(e,i,a){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(e){K(this,e)}},R={M:Vt,P,A:Kt,C:1,L:yi,R:xe,D:fi,V:K,I:Z,H:G,N:ke,U:ve,B:ye,F:we},Vi=Wt.litHtmlPolyfillSupport;Vi?.(ae,Z),(Wt.litHtmlVersions??=[]).push("3.3.3");var se=(n,e,i)=>{let a=i?.renderBefore??e,o=a._$litPart$;if(o===void 0){let d=i?.renderBefore??null;a._$litPart$=o=new Z(e.insertBefore(ie(),d),d,void 0,i??{})}return o._$AI(n),o};var Xt=null,ki={boundAttributeSuffix:R.M,marker:R.P,markerMatch:R.A,HTML_RESULT:R.C,getTemplateHtml:R.L,overrideDirectiveResolve:(n,e)=>class extends n{_$AS(i,a){return e(this,a)}},patchDirectiveResolve:(n,e)=>{if(n.prototype._$AS.name!==e.name){Xt??=n.prototype._$AS.name;for(let i=n.prototype;i!==Object.prototype;i=Object.getPrototypeOf(i))if(i.hasOwnProperty(Xt))return void(i[Xt]=e);throw Error("Internal error: It is possible that both dev mode and production mode Lit was mixed together during SSR. Please comment on the issue: https://github.com/lit/lit/issues/4527")}},setDirectiveClass(n,e){n._$litDirective$=e},getAttributePartCommittedValue:(n,e,i)=>{let a=_;return n.j=o=>a=o,n._$AI(e,n,i),a},connectedDisconnectable:n=>({...n,_$AU:!0}),resolveDirective:R.V,AttributePart:R.H,PropertyPart:R.B,BooleanAttributePart:R.N,EventPart:R.U,ElementPart:R.F,TemplateInstance:R.R,isIterable:R.D,ChildPart:R.I};var J={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6};var{I:_r}=R;var vi=n=>n===null||typeof n!="object"&&typeof n!="function";var wi=(n,e)=>e===void 0?n?._$litType$!==void 0:n?._$litType$===e,Si=n=>n?._$litType$?.h!=null;var Ti=n=>n.strings===void 0;var{TemplateInstance:Ki,isIterable:Gi,resolveDirective:Mi,ChildPart:oe,ElementPart:Yi}=ki,Ei=(n,e,i={})=>{if(e._$litPart$!==void 0)throw Error("container already contains a live render");let a,o,d,c=[],$=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),g;for(;(g=$.nextNode())!==null;){let v=g.data;if(v.startsWith("lit-part")){if(c.length===0&&a!==void 0)throw Error(`There must be only one root part per container. Found a part marker (${g}) when we already have a root part marker (${o})`);d=Xi(n,g,c,i),a===void 0&&(a=d),o??=g}else if(v.startsWith("lit-node"))Ji(g,c,i);else if(v.startsWith("/lit-part")){if(c.length===1&&d!==a)throw Error("internal error");d=Zi(g,d,c)}}if(a===void 0){let v=e instanceof ShadowRoot?"{container.host.localName}'s shadow root":e instanceof DocumentFragment?"DocumentFragment":e.localName;console.error(`There should be exactly one root part in a render container, but we didn't find any in ${v}.`)}e._$litPart$=a},Xi=(n,e,i,a)=>{let o,d;if(i.length===0)d=new oe(e,null,void 0,a),o=n;else{let c=i[i.length-1];if(c.type==="template-instance")d=new oe(e,null,c.instance,a),c.instance._$AV.push(d),o=c.result.values[c.instancePartIndex++],c.templatePartIndex++;else if(c.type==="iterable"){d=new oe(e,null,c.part,a);let $=c.iterator.next();if($.done)throw o=void 0,c.done=!0,Error("Unhandled shorter than expected iterable");o=$.value,c.part._$AH.push(d)}else d=new oe(e,null,c.part,a)}if(o=Mi(d,o),o===_)i.push({part:d,type:"leaf"});else if(vi(o))i.push({part:d,type:"leaf"}),d._$AH=o;else if(wi(o)){if(Si(o))throw Error("compiled templates are not supported");let c="lit-part "+Qi(o);if(e.data!==c)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{let $=oe.prototype._$AC(o),g=new Ki($,d);i.push({type:"template-instance",instance:g,part:d,templatePartIndex:0,instancePartIndex:0,result:o}),d._$AH=g}}else Gi(o)?(i.push({part:d,type:"iterable",value:o,iterator:o[Symbol.iterator](),done:!1}),d._$AH=[]):(i.push({part:d,type:"leaf"}),d._$AH=o??"");return d},Zi=(n,e,i)=>{if(e===void 0)throw Error("unbalanced part marker");e._$AB=n;let a=i.pop();if(a.type==="iterable"&&!a.iterator.next().done)throw Error("unexpected longer than expected iterable");if(i.length>0)return i[i.length-1].part},Ji=(n,e,i)=>{let a=/lit-node (\d+)/.exec(n.data),o=parseInt(a[1]),d=n.nextElementSibling;if(d===null)throw Error("could not find node for attribute parts");d.removeAttribute("defer-hydration");let c=e[e.length-1];if(c.type!=="template-instance")throw Error("Hydration value mismatch: Primitive found where TemplateResult expected. This usually occurs due to conditional rendering that resulted in a different value or template being rendered between the server and client.");{let $=c.instance;for(;;){let g=$._$AD.parts[c.templatePartIndex];if(g===void 0||g.type!==J.ATTRIBUTE&&g.type!==J.ELEMENT||g.index!==o)break;if(g.type===J.ATTRIBUTE){let v=new g.ctor(d,g.name,g.strings,c.instance,i),L=Ti(v)?c.result.values[c.instancePartIndex]:c.result.values,E=!(v.type===J.EVENT||v.type===J.PROPERTY);v._$AI(L,v,c.instancePartIndex,E),c.instancePartIndex+=g.strings.length-1,$._$AV.push(v)}else{let v=new Yi(d,c.instance,i);Mi(v,c.result.values[c.instancePartIndex++]),$._$AV.push(v)}c.templatePartIndex++}}},zi=new WeakMap,Qi=n=>{let e=zi.get(n.strings);if(e!==void 0)return e;let i=new Uint32Array(2).fill(5381);for(let o of n.strings)for(let d=0;d<o.length;d++)i[d%2]=33*i[d%2]^o.charCodeAt(d);let a=String.fromCharCode(...new Uint8Array(i.buffer));return e=btoa(a),zi.set(n.strings,e),e};globalThis.litElementHydrateSupport=({LitElement:n})=>{let e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),"observedAttributes").get;Object.defineProperty(n,"observedAttributes",{get(){return[...e.call(this),"defer-hydration"]}});let i=n.prototype.attributeChangedCallback;n.prototype.attributeChangedCallback=function(c,$,g){c==="defer-hydration"&&g===null&&a.call(this),i.call(this,c,$,g)};let a=n.prototype.connectedCallback;n.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||a.call(this)};let o=n.prototype.createRenderRoot;n.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):o.call(this)};let d=Object.getPrototypeOf(n.prototype).update;n.prototype.update=function(c){let $=this.render();if(d.call(this,c),this._$AG){this._$AG=!1;for(let g of this.getAttributeNames())if(g.startsWith("hydrate-internals-")){let v=g.slice(18);this.removeAttribute(v),this.removeAttribute(g)}Ei($,this.renderRoot,this.renderOptions)}else se($,this.renderRoot,this.renderOptions)}};var Se=globalThis,Te=Se.ShadowRoot&&(Se.ShadyCSS===void 0||Se.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zt=Symbol(),Ai=new WeakMap,ne=class{constructor(e,i,a){if(this._$cssResult$=!0,a!==Zt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o,i=this.t;if(Te&&e===void 0){let a=i!==void 0&&i.length===1;a&&(e=Ai.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),a&&Ai.set(i,e))}return e}toString(){return this.cssText}},C=n=>new ne(typeof n=="string"?n:n+"",void 0,Zt),h=(n,...e)=>{let i=n.length===1?n[0]:e.reduce((a,o,d)=>a+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[d+1],n[0]);return new ne(i,n,Zt)},Ci=(n,e)=>{if(Te)n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(let i of e){let a=document.createElement("style"),o=Se.litNonce;o!==void 0&&a.setAttribute("nonce",o),a.textContent=i.cssText,n.appendChild(a)}},Jt=Te?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(let a of e.cssRules)i+=a.cssText;return C(i)})(n):n;var{is:er,defineProperty:tr,getOwnPropertyDescriptor:ir,getOwnPropertyNames:rr,getOwnPropertySymbols:ar,getPrototypeOf:sr}=Object,ze=globalThis,Li=ze.trustedTypes,or=Li?Li.emptyScript:"",nr=ze.reactiveElementPolyfillSupport,le=(n,e)=>n,Qt={toAttribute(n,e){switch(e){case Boolean:n=n?or:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},Ii=(n,e)=>!er(n,e),Ri={attribute:!0,type:String,converter:Qt,reflect:!1,useDefault:!1,hasChanged:Ii};Symbol.metadata??=Symbol("metadata"),ze.litPropertyMetadata??=new WeakMap;var D=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=Ri){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){let a=Symbol(),o=this.getPropertyDescriptor(e,a,i);o!==void 0&&tr(this.prototype,e,o)}}static getPropertyDescriptor(e,i,a){let{get:o,set:d}=ir(this.prototype,e)??{get(){return this[i]},set(c){this[i]=c}};return{get:o,set(c){let $=o?.call(this);d?.call(this,c),this.requestUpdate(e,$,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ri}static _$Ei(){if(this.hasOwnProperty(le("elementProperties")))return;let e=sr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(le("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(le("properties"))){let i=this.properties,a=[...rr(i),...ar(i)];for(let o of a)this.createProperty(o,i[o])}let e=this[Symbol.metadata];if(e!==null){let i=litPropertyMetadata.get(e);if(i!==void 0)for(let[a,o]of i)this.elementProperties.set(a,o)}this._$Eh=new Map;for(let[i,a]of this.elementProperties){let o=this._$Eu(i,a);o!==void 0&&this._$Eh.set(o,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let i=[];if(Array.isArray(e)){let a=new Set(e.flat(1/0).reverse());for(let o of a)i.unshift(Jt(o))}else e!==void 0&&i.push(Jt(e));return i}static _$Eu(e,i){let a=i.attribute;return a===!1?void 0:typeof a=="string"?a:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,i=this.constructor.elementProperties;for(let a of i.keys())this.hasOwnProperty(a)&&(e.set(a,this[a]),delete this[a]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ci(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,i,a){this._$AK(e,a)}_$ET(e,i){let a=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,a);if(o!==void 0&&a.reflect===!0){let d=(a.converter?.toAttribute!==void 0?a.converter:Qt).toAttribute(i,a.type);this._$Em=e,d==null?this.removeAttribute(o):this.setAttribute(o,d),this._$Em=null}}_$AK(e,i){let a=this.constructor,o=a._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let d=a.getPropertyOptions(o),c=typeof d.converter=="function"?{fromAttribute:d.converter}:d.converter?.fromAttribute!==void 0?d.converter:Qt;this._$Em=o;let $=c.fromAttribute(i,d.type);this[o]=$??this._$Ej?.get(o)??$,this._$Em=null}}requestUpdate(e,i,a,o=!1,d){if(e!==void 0){let c=this.constructor;if(o===!1&&(d=this[e]),a??=c.getPropertyOptions(e),!((a.hasChanged??Ii)(d,i)||a.useDefault&&a.reflect&&d===this._$Ej?.get(e)&&!this.hasAttribute(c._$Eu(e,a))))return;this.C(e,i,a)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:a,reflect:o,wrapped:d},c){a&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,c??i??this[e]),d!==!0||c!==void 0)||(this._$AL.has(e)||(this.hasUpdated||a||(i=void 0),this._$AL.set(e,i)),o===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,d]of this._$Ep)this[o]=d;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[o,d]of a){let{wrapped:c}=d,$=this[o];c!==!0||this._$AL.has(o)||$===void 0||this.C(o,void 0,d,$)}}let e=!1,i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach(a=>a.hostUpdate?.()),this.update(i)):this._$EM()}catch(a){throw e=!1,this._$EM(),a}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach(i=>i.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(i=>this._$ET(i,this[i])),this._$EM()}updated(e){}firstUpdated(e){}};D.elementStyles=[],D.shadowRootOptions={mode:"open"},D[le("elementProperties")]=new Map,D[le("finalized")]=new Map,nr?.({ReactiveElement:D}),(ze.reactiveElementVersions??=[]).push("2.1.2");var ei=globalThis,F=class extends D{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=se(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return _}};F._$litElement$=!0,F.finalized=!0,ei.litElementHydrateSupport?.({LitElement:F});var lr=ei.litElementPolyfillSupport;lr?.({LitElement:F});(ei.litElementVersions??=[]).push("4.2.2");var u=(n,e)=>C(`var(--impakt-${n.replace(/\./g,"-")}, ${e})`),t={brand:u("color.brand.default","#1f4ed8"),brandHover:u("color.brand.hover","#1b45be"),brandActive:u("color.brand.active","#183ba4"),brandSubtle:u("color.brand.subtle","#e4eafa"),onBrand:u("color.text.on-brand","#ffffff"),surfaceCard:u("color.surface.card","#ffffff"),surfaceInset:u("color.surface.inset","#f4f4f4"),surfaceSubtle:u("color.surface.subtle","#e4eafa"),text:u("color.text.default","#1a1a1a"),textMuted:u("color.text.muted","#717171"),textPlaceholder:u("color.text.placeholder","#767676"),textHeading:u("color.text.heading","#1f4ed8"),link:u("color.text.link","#1f4ed8"),linkHover:u("color.text.link-hover","#193ead"),border:u("color.border.default","#929292"),borderStrong:u("color.border.strong","#818181"),danger:u("color.status.danger.default","#c8102e"),dangerText:u("color.status.danger.text","#c8102e"),dangerSubtle:u("color.status.danger.subtle","#f8e2e6"),warning:u("color.status.warning.default","#b45309"),warningText:u("color.status.warning.text","#b45309"),warningSubtle:u("color.status.warning.subtle","#f6eae1"),success:u("color.status.success.default","#047857"),successText:u("color.status.success.text","#047857"),successSubtle:u("color.status.success.subtle","#e0f0ea"),info:u("color.status.info.default","#1f4ed8"),infoText:u("color.status.info.text","#1f4ed8"),infoSubtle:u("color.status.info.subtle","#e4eafa"),fontBody:u("font.family.body","system-ui, sans-serif"),fontHeading:u("font.family.heading","system-ui, sans-serif"),fontMono:u("font.family.mono","ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"),fontEyebrow:u("font.family.eyebrow","inherit"),focusShadow:u("focus.ring.shadow","0 0 0 2px #ffffff, 0 0 0 4px #1a1a1a"),focusOffset:u("focus.ring.offset","2px"),targetMin:u("target.min","24px"),radiusSm:u("radius.sm","2px"),radius:u("radius.md","4px"),radiusLg:u("radius.lg","8px"),borderThin:u("border.width.thin","1px"),borderThick:u("border.width.thick","2px"),radiusXs:u("radius.xs","2px"),radiusXl:u("radius.xl","12px"),radius2xl:u("radius.2xl","16px"),hairline:C("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 10%, transparent)"),rule:C("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 15%, transparent)"),wash:C("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 5%, transparent)"),brandHalo:C("color-mix(in srgb, var(--impakt-color-brand-default, #1f4ed8) 22%, transparent)"),shadowXs:u("shadow.xs","0 1px 2px 0 rgb(0 0 0 / 0.05)"),shadowSm:u("shadow.sm","0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"),shadowMd:u("shadow.md","0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"),shadowLg:u("shadow.lg","0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"),shadowXl:u("shadow.xl","0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"),trackingTight:u("font.tracking.tight","-0.02em"),trackingWide:u("font.tracking.wide","0.06em")},w=n=>C(`font-size: var(--impakt-font-size-${n}, 1rem); line-height: var(--impakt-font-leading-${n}, 1.5);`),r=n=>u(`space.${String(n).replace(".","-")}`,`${n*4}px`),b=n=>u(`font.size.${n}`,"1rem"),H=n=>u(`font.line-height.${n}`,"1.5"),m=n=>u(`font.weight.${n}`,"400"),I=h`
5
- :host([space-above='sm']) { margin-block-start: ${r(2)}; }
6
- :host([space-above='md']) { margin-block-start: ${r(4)}; }
7
- :host([space-above='lg']) { margin-block-start: ${r(6)}; }
8
- :host([space-above='xl']) { margin-block-start: ${r(8)}; }
9
- :host([space-above='2xl']) { margin-block-start: clamp(${r(14)}, 8vw, ${r(28)}); }
10
- :host([space-below='sm']) { margin-block-end: ${r(2)}; }
11
- :host([space-below='md']) { margin-block-end: ${r(4)}; }
12
- :host([space-below='lg']) { margin-block-end: ${r(6)}; }
13
- :host([space-below='xl']) { margin-block-end: ${r(8)}; }
14
- :host([space-below='2xl']) { margin-block-end: clamp(${r(14)}, 8vw, ${r(28)}); }
15
- `;var k=h`
1
+ /* @atomic-ui/ui version 0.13.0, standalone. */
2
+ var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{createHTML:n=>n}):void 0,Jt="$lit$",j=`lit$${Math.random().toFixed(9).slice(2)}$`,Zt="?"+j,Ji=`<${Zt}>`,J=document,ne=()=>J.createComment(""),le=n=>n===null||typeof n!="object"&&typeof n!="function",Qt=Array.isArray,vi=n=>Qt(n)||typeof n?.[Symbol.iterator]=="function",Xt=`[
3
+ \f\r]`,se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fi=/-->/g,$i=/>/g,X=RegExp(`>|${Xt}(?:([^\\s"'>=/]+)(${Xt}*=${Xt}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),xi=/'/g,yi=/"/g,wi=/^(?:script|style|textarea|title)$/i,ei=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),o=ei(1),y=ei(2),Br=ei(3),O=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),ki=new WeakMap,Y=J.createTreeWalker(J,129);function Si(n,e){if(!Qt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return bi!==void 0?bi.createHTML(e):e}var Ti=(n,e)=>{let i=n.length-1,r=[],s,c=e===2?"<svg>":e===3?"<math>":"",p=se;for(let $=0;$<i;$++){let g=n[$],v,_,A=-1,F=0;for(;F<g.length&&(p.lastIndex=F,_=p.exec(g),_!==null);)F=p.lastIndex,p===se?_[1]==="!--"?p=fi:_[1]!==void 0?p=$i:_[2]!==void 0?(wi.test(_[2])&&(s=RegExp("</"+_[2],"g")),p=X):_[3]!==void 0&&(p=X):p===X?_[0]===">"?(p=s??se,A=-1):_[1]===void 0?A=-2:(A=p.lastIndex-_[2].length,v=_[1],p=_[3]===void 0?X:_[3]==='"'?yi:xi):p===yi||p===xi?p=X:p===fi||p===$i?p=se:(p=X,s=void 0);let K=p===X&&n[$+1].startsWith("/>")?" ":"";c+=p===se?g+Ji:A>=0?(r.push(v),g.slice(0,A)+Jt+g.slice(A)+j+K):g+j+(A===-2?$:K)}return[Si(n,c+(n[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},de=class n{constructor({strings:e,_$litType$:i},r){let s;this.parts=[];let c=0,p=0,$=e.length-1,g=this.parts,[v,_]=Ti(e,i);if(this.el=n.createElement(v,r),Y.currentNode=this.el.content,i===2||i===3){let A=this.el.content.firstChild;A.replaceWith(...A.childNodes)}for(;(s=Y.nextNode())!==null&&g.length<$;){if(s.nodeType===1){if(s.hasAttributes())for(let A of s.getAttributeNames())if(A.endsWith(Jt)){let F=_[p++],K=s.getAttribute(A).split(j),ve=/([.?@])?(.*)/.exec(F);g.push({type:1,index:c,name:ve[2],strings:K,ctor:ve[1]==="."?Te:ve[1]==="?"?ze:ve[1]==="@"?Me:Q}),s.removeAttribute(A)}else A.startsWith(j)&&(g.push({type:6,index:c}),s.removeAttribute(A));if(wi.test(s.tagName)){let A=s.textContent.split(j),F=A.length-1;if(F>0){s.textContent=we?we.emptyScript:"";for(let K=0;K<F;K++)s.append(A[K],ne()),Y.nextNode(),g.push({type:2,index:++c});s.append(A[F],ne())}}}else if(s.nodeType===8)if(s.data===Zt)g.push({type:2,index:c});else{let A=-1;for(;(A=s.data.indexOf(j,A+1))!==-1;)g.push({type:7,index:c}),A+=j.length-1}c++}}static createElement(e,i){let r=J.createElement("template");return r.innerHTML=e,r}};function Z(n,e,i=n,r){if(e===O)return e;let s=r!==void 0?i._$Co?.[r]:i._$Cl,c=le(e)?void 0:e._$litDirective$;return s?.constructor!==c&&(s?._$AO?.(!1),c===void 0?s=void 0:(s=new c(n),s._$AT(n,i,r)),r!==void 0?(i._$Co??=[])[r]=s:i._$Cl=s),s!==void 0&&(e=Z(n,s._$AS(n,e.values),s,r)),e}var Se=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,s=(e?.creationScope??J).importNode(i,!0);Y.currentNode=s;let c=Y.nextNode(),p=0,$=0,g=r[0];for(;g!==void 0;){if(p===g.index){let v;g.type===2?v=new ie(c,c.nextSibling,this,e):g.type===1?v=new g.ctor(c,g.name,g.strings,this,e):g.type===6&&(v=new Ee(c,this,e)),this._$AV.push(v),g=r[++$]}p!==g?.index&&(c=Y.nextNode(),p++)}return Y.currentNode=J,s}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},ie=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,s){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Z(this,e,i),le(e)?e===l||e==null||e===""?(this._$AH!==l&&this._$AR(),this._$AH=l):e!==this._$AH&&e!==O&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):vi(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==l&&le(this._$AH)?this._$AA.nextSibling.data=e:this.T(J.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=de.createElement(Si(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===s)this._$AH.p(i);else{let c=new Se(s,this),p=c.u(this.options);c.p(i),this.T(p),this._$AH=c}}_$AC(e){let i=ki.get(e.strings);return i===void 0&&ki.set(e.strings,i=new de(e)),i}k(e){Qt(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,s=0;for(let c of e)s===i.length?i.push(r=new n(this.O(ne()),this.O(ne()),this,this.options)):r=i[s],r._$AI(c),s++;s<i.length&&(this._$AR(r&&r._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=gi(e).nextSibling;gi(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Q=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,s,c){this.type=1,this._$AH=l,this._$AN=void 0,this.element=e,this.name=i,this._$AM=s,this.options=c,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=l}_$AI(e,i=this,r,s){let c=this.strings,p=!1;if(c===void 0)e=Z(this,e,i,0),p=!le(e)||e!==this._$AH&&e!==O,p&&(this._$AH=e);else{let $=e,g,v;for(e=c[0],g=0;g<c.length-1;g++)v=Z(this,$[r+g],i,g),v===O&&(v=this._$AH[g]),p||=!le(v)||v!==this._$AH[g],v===l?e=l:e!==l&&(e+=(v??"")+c[g+1]),this._$AH[g]=v}p&&!s&&this.j(e)}j(e){e===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Te=class extends Q{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===l?void 0:e}},ze=class extends Q{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==l)}},Me=class extends Q{constructor(e,i,r,s,c){super(e,i,r,s,c),this.type=5}_$AI(e,i=this){if((e=Z(this,e,i,0)??l)===O)return;let r=this._$AH,s=e===l&&r!==l||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,c=e!==l&&(r===l||s);s&&this.element.removeEventListener(this.name,this,r),c&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ee=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Z(this,e)}},B={M:Jt,P:j,A:Zt,C:1,L:Ti,R:Se,D:vi,V:Z,I:ie,H:Q,N:ze,U:Me,B:Te,F:Ee},Zi=Yt.litHtmlPolyfillSupport;Zi?.(de,ie),(Yt.litHtmlVersions??=[]).push("3.3.3");var ce=(n,e,i)=>{let r=i?.renderBefore??e,s=r._$litPart$;if(s===void 0){let c=i?.renderBefore??null;r._$litPart$=s=new ie(e.insertBefore(ne(),c),c,void 0,i??{})}return s._$AI(n),s};var ti=null,zi={boundAttributeSuffix:B.M,marker:B.P,markerMatch:B.A,HTML_RESULT:B.C,getTemplateHtml:B.L,overrideDirectiveResolve:(n,e)=>class extends n{_$AS(i,r){return e(this,r)}},patchDirectiveResolve:(n,e)=>{if(n.prototype._$AS.name!==e.name){ti??=n.prototype._$AS.name;for(let i=n.prototype;i!==Object.prototype;i=Object.getPrototypeOf(i))if(i.hasOwnProperty(ti))return void(i[ti]=e);throw Error("Internal error: It is possible that both dev mode and production mode Lit was mixed together during SSR. Please comment on the issue: https://github.com/lit/lit/issues/4527")}},setDirectiveClass(n,e){n._$litDirective$=e},getAttributePartCommittedValue:(n,e,i)=>{let r=O;return n.j=s=>r=s,n._$AI(e,n,i),r},connectedDisconnectable:n=>({...n,_$AU:!0}),resolveDirective:B.V,AttributePart:B.H,PropertyPart:B.B,BooleanAttributePart:B.N,EventPart:B.U,ElementPart:B.F,TemplateInstance:B.R,isIterable:B.D,ChildPart:B.I};var re={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6};var{I:jr}=B;var Mi=n=>n===null||typeof n!="object"&&typeof n!="function";var Ei=(n,e)=>e===void 0?n?._$litType$!==void 0:n?._$litType$===e,Ai=n=>n?._$litType$?.h!=null;var Ci=n=>n.strings===void 0;var{TemplateInstance:Qi,isIterable:er,resolveDirective:Ii,ChildPart:pe,ElementPart:tr}=zi,Ri=(n,e,i={})=>{if(e._$litPart$!==void 0)throw Error("container already contains a live render");let r,s,c,p=[],$=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),g;for(;(g=$.nextNode())!==null;){let v=g.data;if(v.startsWith("lit-part")){if(p.length===0&&r!==void 0)throw Error(`There must be only one root part per container. Found a part marker (${g}) when we already have a root part marker (${s})`);c=ir(n,g,p,i),r===void 0&&(r=c),s??=g}else if(v.startsWith("lit-node"))ar(g,p,i);else if(v.startsWith("/lit-part")){if(p.length===1&&c!==r)throw Error("internal error");c=rr(g,c,p)}}if(r===void 0){let v=e instanceof ShadowRoot?"{container.host.localName}'s shadow root":e instanceof DocumentFragment?"DocumentFragment":e.localName;console.error(`There should be exactly one root part in a render container, but we didn't find any in ${v}.`)}e._$litPart$=r},ir=(n,e,i,r)=>{let s,c;if(i.length===0)c=new pe(e,null,void 0,r),s=n;else{let p=i[i.length-1];if(p.type==="template-instance")c=new pe(e,null,p.instance,r),p.instance._$AV.push(c),s=p.result.values[p.instancePartIndex++],p.templatePartIndex++;else if(p.type==="iterable"){c=new pe(e,null,p.part,r);let $=p.iterator.next();if($.done)throw s=void 0,p.done=!0,Error("Unhandled shorter than expected iterable");s=$.value,p.part._$AH.push(c)}else c=new pe(e,null,p.part,r)}if(s=Ii(c,s),s===O)i.push({part:c,type:"leaf"});else if(Mi(s))i.push({part:c,type:"leaf"}),c._$AH=s;else if(Ei(s)){if(Ai(s))throw Error("compiled templates are not supported");let p="lit-part "+or(s);if(e.data!==p)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{let $=pe.prototype._$AC(s),g=new Qi($,c);i.push({type:"template-instance",instance:g,part:c,templatePartIndex:0,instancePartIndex:0,result:s}),c._$AH=g}}else er(s)?(i.push({part:c,type:"iterable",value:s,iterator:s[Symbol.iterator](),done:!1}),c._$AH=[]):(i.push({part:c,type:"leaf"}),c._$AH=s??"");return c},rr=(n,e,i)=>{if(e===void 0)throw Error("unbalanced part marker");e._$AB=n;let r=i.pop();if(r.type==="iterable"&&!r.iterator.next().done)throw Error("unexpected longer than expected iterable");if(i.length>0)return i[i.length-1].part},ar=(n,e,i)=>{let r=/lit-node (\d+)/.exec(n.data),s=parseInt(r[1]),c=n.nextElementSibling;if(c===null)throw Error("could not find node for attribute parts");c.removeAttribute("defer-hydration");let p=e[e.length-1];if(p.type!=="template-instance")throw Error("Hydration value mismatch: Primitive found where TemplateResult expected. This usually occurs due to conditional rendering that resulted in a different value or template being rendered between the server and client.");{let $=p.instance;for(;;){let g=$._$AD.parts[p.templatePartIndex];if(g===void 0||g.type!==re.ATTRIBUTE&&g.type!==re.ELEMENT||g.index!==s)break;if(g.type===re.ATTRIBUTE){let v=new g.ctor(c,g.name,g.strings,p.instance,i),_=Ci(v)?p.result.values[p.instancePartIndex]:p.result.values,A=!(v.type===re.EVENT||v.type===re.PROPERTY);v._$AI(_,v,p.instancePartIndex,A),p.instancePartIndex+=g.strings.length-1,$._$AV.push(v)}else{let v=new tr(c,p.instance,i);Ii(v,p.result.values[p.instancePartIndex++]),$._$AV.push(v)}p.templatePartIndex++}}},Li=new WeakMap,or=n=>{let e=Li.get(n.strings);if(e!==void 0)return e;let i=new Uint32Array(2).fill(5381);for(let s of n.strings)for(let c=0;c<s.length;c++)i[c%2]=33*i[c%2]^s.charCodeAt(c);let r=String.fromCharCode(...new Uint8Array(i.buffer));return e=btoa(r),Li.set(n.strings,e),e};globalThis.litElementHydrateSupport=({LitElement:n})=>{let e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),"observedAttributes").get;Object.defineProperty(n,"observedAttributes",{get(){return[...e.call(this),"defer-hydration"]}});let i=n.prototype.attributeChangedCallback;n.prototype.attributeChangedCallback=function(p,$,g){p==="defer-hydration"&&g===null&&r.call(this),i.call(this,p,$,g)};let r=n.prototype.connectedCallback;n.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||r.call(this)};let s=n.prototype.createRenderRoot;n.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):s.call(this)};let c=Object.getPrototypeOf(n.prototype).update;n.prototype.update=function(p){let $=this.render();if(c.call(this,p),this._$AG){this._$AG=!1;for(let g of this.getAttributeNames())if(g.startsWith("hydrate-internals-")){let v=g.slice(18);this.removeAttribute(v),this.removeAttribute(g)}Ri($,this.renderRoot,this.renderOptions)}else ce($,this.renderRoot,this.renderOptions)}};var Ae=globalThis,Ce=Ae.ShadowRoot&&(Ae.ShadyCSS===void 0||Ae.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ii=Symbol(),_i=new WeakMap,he=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==ii)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o,i=this.t;if(Ce&&e===void 0){let r=i!==void 0&&i.length===1;r&&(e=_i.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&_i.set(i,e))}return e}toString(){return this.cssText}},L=n=>new he(typeof n=="string"?n:n+"",void 0,ii),u=(n,...e)=>{let i=n.length===1?n[0]:e.reduce((r,s,c)=>r+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[c+1],n[0]);return new he(i,n,ii)},Hi=(n,e)=>{if(Ce)n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(let i of e){let r=document.createElement("style"),s=Ae.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=i.cssText,n.appendChild(r)}},ri=Ce?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(let r of e.cssRules)i+=r.cssText;return L(i)})(n):n;var{is:sr,defineProperty:nr,getOwnPropertyDescriptor:lr,getOwnPropertyNames:dr,getOwnPropertySymbols:cr,getPrototypeOf:pr}=Object,Le=globalThis,Bi=Le.trustedTypes,hr=Bi?Bi.emptyScript:"",ur=Le.reactiveElementPolyfillSupport,ue=(n,e)=>n,ai={toAttribute(n,e){switch(e){case Boolean:n=n?hr:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},Oi=(n,e)=>!sr(n,e),Ni={attribute:!0,type:String,converter:ai,reflect:!1,useDefault:!1,hasChanged:Oi};Symbol.metadata??=Symbol("metadata"),Le.litPropertyMetadata??=new WeakMap;var U=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=Ni){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(e,r,i);s!==void 0&&nr(this.prototype,e,s)}}static getPropertyDescriptor(e,i,r){let{get:s,set:c}=lr(this.prototype,e)??{get(){return this[i]},set(p){this[i]=p}};return{get:s,set(p){let $=s?.call(this);c?.call(this,p),this.requestUpdate(e,$,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ni}static _$Ei(){if(this.hasOwnProperty(ue("elementProperties")))return;let e=pr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ue("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ue("properties"))){let i=this.properties,r=[...dr(i),...cr(i)];for(let s of r)this.createProperty(s,i[s])}let e=this[Symbol.metadata];if(e!==null){let i=litPropertyMetadata.get(e);if(i!==void 0)for(let[r,s]of i)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[i,r]of this.elementProperties){let s=this._$Eu(i,r);s!==void 0&&this._$Eh.set(s,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let i=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let s of r)i.unshift(ri(s))}else e!==void 0&&i.push(ri(e));return i}static _$Eu(e,i){let r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,i=this.constructor.elementProperties;for(let r of i.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Hi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,i,r){this._$AK(e,r)}_$ET(e,i){let r=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,r);if(s!==void 0&&r.reflect===!0){let c=(r.converter?.toAttribute!==void 0?r.converter:ai).toAttribute(i,r.type);this._$Em=e,c==null?this.removeAttribute(s):this.setAttribute(s,c),this._$Em=null}}_$AK(e,i){let r=this.constructor,s=r._$Eh.get(e);if(s!==void 0&&this._$Em!==s){let c=r.getPropertyOptions(s),p=typeof c.converter=="function"?{fromAttribute:c.converter}:c.converter?.fromAttribute!==void 0?c.converter:ai;this._$Em=s;let $=p.fromAttribute(i,c.type);this[s]=$??this._$Ej?.get(s)??$,this._$Em=null}}requestUpdate(e,i,r,s=!1,c){if(e!==void 0){let p=this.constructor;if(s===!1&&(c=this[e]),r??=p.getPropertyOptions(e),!((r.hasChanged??Oi)(c,i)||r.useDefault&&r.reflect&&c===this._$Ej?.get(e)&&!this.hasAttribute(p._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:s,wrapped:c},p){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,p??i??this[e]),c!==!0||p!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),s===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,c]of this._$Ep)this[s]=c;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[s,c]of r){let{wrapped:p}=c,$=this[s];p!==!0||this._$AL.has(s)||$===void 0||this.C(s,void 0,c,$)}}let e=!1,i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(i)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach(i=>i.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(i=>this._$ET(i,this[i])),this._$EM()}updated(e){}firstUpdated(e){}};U.elementStyles=[],U.shadowRootOptions={mode:"open"},U[ue("elementProperties")]=new Map,U[ue("finalized")]=new Map,ur?.({ReactiveElement:U}),(Le.reactiveElementVersions??=[]).push("2.1.2");var oi=globalThis,W=class extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ce(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return O}};W._$litElement$=!0,W.finalized=!0,oi.litElementHydrateSupport?.({LitElement:W});var mr=oi.litElementPolyfillSupport;mr?.({LitElement:W});(oi.litElementVersions??=[]).push("4.2.2");var d=(n,e)=>L(`var(--impakt-${n.replace(/\./g,"-")}, ${e})`),t={brand:d("color.brand.default","#1f4ed8"),brandHover:d("color.brand.hover","#1b45be"),brandActive:d("color.brand.active","#183ba4"),brandSubtle:d("color.brand.subtle","#e4eafa"),onBrand:d("color.text.on-brand","#ffffff"),surfaceCard:d("color.surface.card","#ffffff"),surfaceInset:d("color.surface.inset","#f4f4f4"),surfaceSubtle:d("color.surface.subtle","#e4eafa"),text:d("color.text.default","#1a1a1a"),textMuted:d("color.text.muted","#717171"),textPlaceholder:d("color.text.placeholder","#767676"),textHeading:d("color.text.heading","#1f4ed8"),link:d("color.text.link","#1f4ed8"),linkHover:d("color.text.link-hover","#193ead"),border:d("color.border.default","#929292"),borderStrong:d("color.border.strong","#818181"),danger:d("color.status.danger.default","#c8102e"),dangerText:d("color.status.danger.text","#c8102e"),dangerSubtle:d("color.status.danger.subtle","#f8e2e6"),warning:d("color.status.warning.default","#b45309"),warningText:d("color.status.warning.text","#b45309"),warningSubtle:d("color.status.warning.subtle","#f6eae1"),success:d("color.status.success.default","#047857"),successText:d("color.status.success.text","#047857"),successSubtle:d("color.status.success.subtle","#e0f0ea"),info:d("color.status.info.default","#1f4ed8"),infoText:d("color.status.info.text","#1f4ed8"),infoSubtle:d("color.status.info.subtle","#e4eafa"),fontBody:d("font.family.body","system-ui, sans-serif"),fontHeading:d("font.family.heading","system-ui, sans-serif"),fontMono:d("font.family.mono","ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"),fontEyebrow:d("font.family.eyebrow","inherit"),focusShadow:d("focus.ring.shadow","0 0 0 2px #ffffff, 0 0 0 4px #1a1a1a"),focusOffset:d("focus.ring.offset","2px"),targetMin:d("target.min","24px"),radiusSm:d("radius.sm","2px"),radius:d("radius.md","4px"),radiusLg:d("radius.lg","8px"),borderThin:d("border.width.thin","1px"),borderThick:d("border.width.thick","2px"),radiusXs:d("radius.xs","2px"),radiusXl:d("radius.xl","12px"),radius2xl:d("radius.2xl","16px"),hairline:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 10%, transparent)"),rule:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 15%, transparent)"),wash:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 5%, transparent)"),brandHalo:L("color-mix(in srgb, var(--impakt-color-brand-default, #1f4ed8) 22%, transparent)"),shadowXs:d("shadow.xs","0 1px 2px 0 rgb(0 0 0 / 0.05)"),shadowSm:d("shadow.sm","0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"),shadowMd:d("shadow.md","0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"),shadowLg:d("shadow.lg","0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"),shadowXl:d("shadow.xl","0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"),trackingTight:d("font.tracking.tight","-0.02em"),trackingWide:d("font.tracking.wide","0.06em")},w=n=>L(`font-size: var(--impakt-font-size-${n}, 1rem); line-height: var(--impakt-font-leading-${n}, 1.5);`),a=n=>d(`space.${String(n).replace(".","-")}`,`${n*4}px`),b=n=>d(`font.size.${n}`,"1rem"),P=n=>d(`font.line-height.${n}`,"1.5"),m=n=>d(`font.weight.${n}`,"400"),N=u`
5
+ :host([space-above='sm']) { margin-block-start: ${a(2)}; }
6
+ :host([space-above='md']) { margin-block-start: ${a(4)}; }
7
+ :host([space-above='lg']) { margin-block-start: ${a(6)}; }
8
+ :host([space-above='xl']) { margin-block-start: ${a(8)}; }
9
+ :host([space-above='2xl']) { margin-block-start: clamp(${a(14)}, 8vw, ${a(28)}); }
10
+ :host([space-below='sm']) { margin-block-end: ${a(2)}; }
11
+ :host([space-below='md']) { margin-block-end: ${a(4)}; }
12
+ :host([space-below='lg']) { margin-block-end: ${a(6)}; }
13
+ :host([space-below='xl']) { margin-block-end: ${a(8)}; }
14
+ :host([space-below='2xl']) { margin-block-end: clamp(${a(14)}, 8vw, ${a(28)}); }
15
+ `;var k=u`
16
16
  :host(:focus-visible),
17
17
  :host(:not([disabled])) :focus-visible {
18
18
  outline: 2px solid transparent;
19
19
  outline-offset: ${t.focusOffset};
20
20
  box-shadow: ${t.focusShadow};
21
21
  }
22
- `,z=h`
22
+ `,z=u`
23
23
  min-block-size: ${t.targetMin};
24
24
  min-inline-size: ${t.targetMin};
25
- `,T=h`
25
+ `,T=u`
26
26
  position: absolute;
27
27
  inline-size: 1px;
28
28
  block-size: 1px;
@@ -32,7 +32,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
32
32
  clip-path: inset(50%);
33
33
  white-space: nowrap;
34
34
  border: 0;
35
- `,_i=h`
35
+ `,Pi=u`
36
36
  @media (prefers-reduced-motion: reduce) {
37
37
  :host,
38
38
  :host *,
@@ -44,7 +44,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
44
44
  scroll-behavior: auto !important;
45
45
  }
46
46
  }
47
- `,Hi=h`
47
+ `,qi=u`
48
48
  :host {
49
49
  box-sizing: border-box;
50
50
  font-family: ${t.fontBody};
@@ -58,15 +58,15 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
58
58
  *::after {
59
59
  box-sizing: inherit;
60
60
  }
61
- `,A=n=>C(`@media (pointer: coarse) { :host :is(${n}) { min-block-size: 44px; min-inline-size: 44px; } }`),Bi=h`
61
+ `,C=n=>L(`@media (pointer: coarse) { :host :is(${n}) { min-block-size: 44px; min-inline-size: 44px; } }`),Di=u`
62
62
  @media (max-width: 40rem) { :host([hide-on='phone']) { display: none !important; } }
63
63
  @media (min-width: 40.0625rem) { :host([hide-on='wide']) { display: none !important; } }
64
- `;var dr=Symbol.for("strata.wording");function S(n,e){let a=globalThis[dr]?.words?.[n],o=typeof a=="string"&&a.trim()?a:n;return e?o.replace(/\{(\w+)\}/g,(d,c)=>c in e?String(e[c]):d):o}var cr=0,p=class extends F{constructor(){super(...arguments);this.uid=`impakt-${cr+=1}`}static{this.styles=[Hi,_i,h``]}id_(i){return`${this.uid}-${i}`}connectedCallback(){super.connectedCallback(),this.sayDefaults()}sayDefaults(){let i=this.constructor.elementProperties,a=this;for(let o of i.keys()){let d=a[o];if(typeof d!="string"||!d)continue;let c=S(d);c!==d&&(a[o]=c)}}};var ti={"arrow-right":y`<path d="M5 12h14M13 6l6 6-6 6"/>`,"arrow-left":y`<path d="M19 12H5M11 6l-6 6 6 6"/>`,"chevron-right":y`<path d="M9 6l6 6-6 6"/>`,"chevron-down":y`<path d="M6 9l6 6 6-6"/>`,check:y`<path d="M5 12.5l4.5 4.5L19 7"/>`,close:y`<path d="M6 6l12 12M18 6L6 18"/>`,menu:y`<path d="M4 7h16M4 12h16M4 17h16"/>`,"menu-two":y`<path d="M5 9.5h14M5 14.5h14"/>`,plus:y`<path d="M12 5v14M5 12h14"/>`,minus:y`<path d="M5 12h14"/>`,search:y`<circle cx="11" cy="11" r="6.5"/><path d="M16 16l4 4"/>`,external:y`<path d="M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"/>`,download:y`<path d="M12 4v11M7 10l5 5 5-5M5 20h14"/>`,home:y`<path d="M4 11l8-7 8 7M6 9.5V20h12V9.5"/><path d="M10 20v-6h4v6"/>`,phone:y`<path d="M7 3.5h3l1.5 4-2 1.5a11 11 0 0 0 5.5 5.5l1.5-2 4 1.5v3a2 2 0 0 1-2 2A16 16 0 0 1 5 5.5a2 2 0 0 1 2-2z"/>`,mail:y`<rect x="3.5" y="5.5" width="17" height="13" rx="1.5"/><path d="M4 7l8 6 8-6"/>`,"map-pin":y`<path d="M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z"/><circle cx="12" cy="10" r="2.5"/>`,calendar:y`<rect x="4" y="5.5" width="16" height="14.5" rx="1.5"/><path d="M4 10h16M8.5 3.5v4M15.5 3.5v4"/>`,clock:y`<circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/>`,user:y`<circle cx="12" cy="8.5" r="3.5"/><path d="M5 20a7 7 0 0 1 14 0"/>`,star:y`<path d="M12 4l2.4 5 5.4.6-4 3.7 1.1 5.4L12 16l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6z"/>`,heart:y`<path d="M12 19.5s-7.5-4.6-7.5-10A4 4 0 0 1 12 7a4 4 0 0 1 7.5 2.5c0 5.4-7.5 10-7.5 10z"/>`,shield:y`<path d="M12 3.5l7 2.5v5.5c0 4.5-3 7.8-7 9-4-1.2-7-4.5-7-9V6z"/><path d="M9 12l2 2 4-4"/>`,leaf:y`<path d="M5 19c0-8 5-13 14-14 0 9-5 14-13 14z"/><path d="M5 19l7-7"/>`,sun:y`<circle cx="12" cy="12" r="3.5"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6L7 7M17 17l1.4 1.4M5.6 18.4L7 17M17 7l1.4-1.4"/>`,bolt:y`<path d="M13 3L5 13.5h6L10 21l8-10.5h-6z"/>`,key:y`<circle cx="8" cy="15" r="3.5"/><path d="M10.5 12.5L19 4M16 7l2.5 2.5M14 9l2 2"/>`,info:y`<circle cx="12" cy="12" r="8.5"/><path d="M12 11v5.5M12 7.5v.5"/>`,warning:y`<path d="M12 4l9 15.5H3z"/><path d="M12 10v4M12 16.5v.5"/>`,document:y`<path d="M6 3.5h8l4 4V20a.5.5 0 0 1-.5.5h-11A.5.5 0 0 1 6 20z"/><path d="M14 3.5V8h4M9 13h6M9 16.5h6"/>`,pound:y`<path d="M16 6.5a3.5 3.5 0 0 0-6.5 1.8V20M7 13h7M7 20h10"/>`,chat:y`<path d="M4.5 5.5h15v10h-9l-4 3.5v-3.5h-2z"/>`,grid:y`<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/>`,clipboard:y`<rect x="8" y="2" width="8" height="4" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2M12 11h4M12 16h4M8 11h.01M8 16h.01"/>`,"map-pinned":y`<path d="M18 8c0 3.6-3.9 7.4-5.4 8.8a1 1 0 0 1-1.2 0C9.9 15.4 6 11.6 6 8a6 6 0 0 1 12 0"/><circle cx="12" cy="8" r="2"/><path d="M8.7 14H5a1 1 0 0 0-.9.7l-2 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .9-1.3l-2-6a1 1 0 0 0-.9-.7h-3.7"/>`,users:y`<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8"/>`,radio:y`<path d="M4.9 19.1C1 15.2 1 8.8 4.9 4.9M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5M19.1 4.9C23 8.8 23 15.1 19.1 19"/><circle cx="12" cy="12" r="2"/>`,settings:y`<path d="M12.2 2h-.4a2 2 0 0 0-2 2v.2a2 2 0 0 1-1 1.7l-.4.3a2 2 0 0 1-2 0l-.2-.1a2 2 0 0 0-2.7.7l-.2.4a2 2 0 0 0 .7 2.7l.2.1a2 2 0 0 1 1 1.7v.5a2 2 0 0 1-1 1.8l-.2.1a2 2 0 0 0-.7 2.7l.2.4a2 2 0 0 0 2.7.7l.2-.1a2 2 0 0 1 2 0l.4.3a2 2 0 0 1 1 1.7v.2a2 2 0 0 0 2 2h.4a2 2 0 0 0 2-2v-.2a2 2 0 0 1 1-1.7l.4-.3a2 2 0 0 1 2 0l.2.1a2 2 0 0 0 2.7-.7l.2-.4a2 2 0 0 0-.7-2.7l-.2-.1a2 2 0 0 1-1-1.8v-.5a2 2 0 0 1 1-1.7l.2-.1a2 2 0 0 0 .7-2.7l-.2-.4a2 2 0 0 0-2.7-.7l-.2.1a2 2 0 0 1-2 0l-.4-.3a2 2 0 0 1-1-1.7V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/>`,"log-out":y`<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9"/>`,"arrow-up-right":y`<path d="M7 7h10v10M7 17L17 7"/>`,more:y`<circle cx="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/>`,upload:y`<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"/>`,image:y`<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="M21 15l-3.1-3.1a2 2 0 0 0-2.8 0L6 21"/>`,lock:y`<rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>`,eye:y`<path d="M2.1 12.3a1 1 0 0 1 0-.7 10.8 10.8 0 0 1 19.8 0 1 1 0 0 1 0 .7 10.8 10.8 0 0 1-19.8 0"/><circle cx="12" cy="12" r="3"/>`,trash:y`<path d="M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2M10 11v6M14 11v6"/>`,pencil:y`<path d="M21.2 6.8a1 1 0 0 0-4-4L3.8 16.2a2 2 0 0 0-.5.8L2 21.4a.5.5 0 0 0 .6.6l4.4-1.3a2 2 0 0 0 .8-.5zM15 5l4 4"/>`,"qr-code":y`<rect x="3" y="3" width="5" height="5" rx="1"/><rect x="16" y="3" width="5" height="5" rx="1"/><rect x="3" y="16" width="5" height="5" rx="1"/><path d="M21 16h-3a2 2 0 0 0-2 2v3M21 21v.01M12 7v3a2 2 0 0 1-2 2H7M3 12h.01M12 3h.01M12 16v.01M16 12h1M21 12v.01M12 21v-1"/>`,battery:y`<rect x="2" y="7" width="16" height="10" rx="2"/><path d="M22 11v2M6 11v2M10 11v2"/>`},pr=Object.keys(ti);function M(n,e="1.25em"){let i=n?ti[n]:void 0;return i?s`<svg class="icon" viewBox="0 0 24 24" width=${e} height=${e} fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${i}</svg>`:l}var Me=class extends p{static{this.properties={name:{type:String,reflect:!0},label:{type:String},size:{type:String,reflect:!0},tone:{type:String,reflect:!0}}}constructor(){super(),this.name="star",this.label="",this.size="md",this.tone="inherit"}static{this.styles=[...p.styles,h`
64
+ `;var gr=Symbol.for("strata.wording");function S(n,e){let r=globalThis[gr]?.words?.[n],s=typeof r=="string"&&r.trim()?r:n;return e?s.replace(/\{(\w+)\}/g,(c,p)=>p in e?String(e[p]):c):s}var br=0,h=class extends W{constructor(){super(...arguments);this.uid=`impakt-${br+=1}`}static{this.styles=[qi,Pi,u``]}id_(i){return`${this.uid}-${i}`}connectedCallback(){super.connectedCallback(),this.sayDefaults()}sayDefaults(){let i=this.constructor.elementProperties,r=this;for(let s of i.keys()){let c=r[s];if(typeof c!="string"||!c)continue;let p=S(c);p!==c&&(r[s]=p)}}};var si={"arrow-right":y`<path d="M5 12h14M13 6l6 6-6 6"/>`,"arrow-left":y`<path d="M19 12H5M11 6l-6 6 6 6"/>`,"chevron-right":y`<path d="M9 6l6 6-6 6"/>`,"chevron-down":y`<path d="M6 9l6 6 6-6"/>`,check:y`<path d="M5 12.5l4.5 4.5L19 7"/>`,close:y`<path d="M6 6l12 12M18 6L6 18"/>`,menu:y`<path d="M4 7h16M4 12h16M4 17h16"/>`,"menu-two":y`<path d="M5 9.5h14M5 14.5h14"/>`,plus:y`<path d="M12 5v14M5 12h14"/>`,minus:y`<path d="M5 12h14"/>`,search:y`<circle cx="11" cy="11" r="6.5"/><path d="M16 16l4 4"/>`,external:y`<path d="M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"/>`,download:y`<path d="M12 4v11M7 10l5 5 5-5M5 20h14"/>`,home:y`<path d="M4 11l8-7 8 7M6 9.5V20h12V9.5"/><path d="M10 20v-6h4v6"/>`,phone:y`<path d="M7 3.5h3l1.5 4-2 1.5a11 11 0 0 0 5.5 5.5l1.5-2 4 1.5v3a2 2 0 0 1-2 2A16 16 0 0 1 5 5.5a2 2 0 0 1 2-2z"/>`,mail:y`<rect x="3.5" y="5.5" width="17" height="13" rx="1.5"/><path d="M4 7l8 6 8-6"/>`,"map-pin":y`<path d="M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z"/><circle cx="12" cy="10" r="2.5"/>`,calendar:y`<rect x="4" y="5.5" width="16" height="14.5" rx="1.5"/><path d="M4 10h16M8.5 3.5v4M15.5 3.5v4"/>`,clock:y`<circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/>`,user:y`<circle cx="12" cy="8.5" r="3.5"/><path d="M5 20a7 7 0 0 1 14 0"/>`,star:y`<path d="M12 4l2.4 5 5.4.6-4 3.7 1.1 5.4L12 16l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6z"/>`,heart:y`<path d="M12 19.5s-7.5-4.6-7.5-10A4 4 0 0 1 12 7a4 4 0 0 1 7.5 2.5c0 5.4-7.5 10-7.5 10z"/>`,shield:y`<path d="M12 3.5l7 2.5v5.5c0 4.5-3 7.8-7 9-4-1.2-7-4.5-7-9V6z"/><path d="M9 12l2 2 4-4"/>`,leaf:y`<path d="M5 19c0-8 5-13 14-14 0 9-5 14-13 14z"/><path d="M5 19l7-7"/>`,sun:y`<circle cx="12" cy="12" r="3.5"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6L7 7M17 17l1.4 1.4M5.6 18.4L7 17M17 7l1.4-1.4"/>`,bolt:y`<path d="M13 3L5 13.5h6L10 21l8-10.5h-6z"/>`,key:y`<circle cx="8" cy="15" r="3.5"/><path d="M10.5 12.5L19 4M16 7l2.5 2.5M14 9l2 2"/>`,info:y`<circle cx="12" cy="12" r="8.5"/><path d="M12 11v5.5M12 7.5v.5"/>`,warning:y`<path d="M12 4l9 15.5H3z"/><path d="M12 10v4M12 16.5v.5"/>`,document:y`<path d="M6 3.5h8l4 4V20a.5.5 0 0 1-.5.5h-11A.5.5 0 0 1 6 20z"/><path d="M14 3.5V8h4M9 13h6M9 16.5h6"/>`,pound:y`<path d="M16 6.5a3.5 3.5 0 0 0-6.5 1.8V20M7 13h7M7 20h10"/>`,chat:y`<path d="M4.5 5.5h15v10h-9l-4 3.5v-3.5h-2z"/>`,grid:y`<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/>`,clipboard:y`<rect x="8" y="2" width="8" height="4" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2M12 11h4M12 16h4M8 11h.01M8 16h.01"/>`,"map-pinned":y`<path d="M18 8c0 3.6-3.9 7.4-5.4 8.8a1 1 0 0 1-1.2 0C9.9 15.4 6 11.6 6 8a6 6 0 0 1 12 0"/><circle cx="12" cy="8" r="2"/><path d="M8.7 14H5a1 1 0 0 0-.9.7l-2 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .9-1.3l-2-6a1 1 0 0 0-.9-.7h-3.7"/>`,users:y`<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8"/>`,radio:y`<path d="M4.9 19.1C1 15.2 1 8.8 4.9 4.9M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5M19.1 4.9C23 8.8 23 15.1 19.1 19"/><circle cx="12" cy="12" r="2"/>`,settings:y`<path d="M12.2 2h-.4a2 2 0 0 0-2 2v.2a2 2 0 0 1-1 1.7l-.4.3a2 2 0 0 1-2 0l-.2-.1a2 2 0 0 0-2.7.7l-.2.4a2 2 0 0 0 .7 2.7l.2.1a2 2 0 0 1 1 1.7v.5a2 2 0 0 1-1 1.8l-.2.1a2 2 0 0 0-.7 2.7l.2.4a2 2 0 0 0 2.7.7l.2-.1a2 2 0 0 1 2 0l.4.3a2 2 0 0 1 1 1.7v.2a2 2 0 0 0 2 2h.4a2 2 0 0 0 2-2v-.2a2 2 0 0 1 1-1.7l.4-.3a2 2 0 0 1 2 0l.2.1a2 2 0 0 0 2.7-.7l.2-.4a2 2 0 0 0-.7-2.7l-.2-.1a2 2 0 0 1-1-1.8v-.5a2 2 0 0 1 1-1.7l.2-.1a2 2 0 0 0 .7-2.7l-.2-.4a2 2 0 0 0-2.7-.7l-.2.1a2 2 0 0 1-2 0l-.4-.3a2 2 0 0 1-1-1.7V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/>`,"log-out":y`<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9"/>`,"arrow-up-right":y`<path d="M7 7h10v10M7 17L17 7"/>`,more:y`<circle cx="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/>`,upload:y`<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"/>`,image:y`<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="M21 15l-3.1-3.1a2 2 0 0 0-2.8 0L6 21"/>`,lock:y`<rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>`,eye:y`<path d="M2.1 12.3a1 1 0 0 1 0-.7 10.8 10.8 0 0 1 19.8 0 1 1 0 0 1 0 .7 10.8 10.8 0 0 1-19.8 0"/><circle cx="12" cy="12" r="3"/>`,trash:y`<path d="M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2M10 11v6M14 11v6"/>`,pencil:y`<path d="M21.2 6.8a1 1 0 0 0-4-4L3.8 16.2a2 2 0 0 0-.5.8L2 21.4a.5.5 0 0 0 .6.6l4.4-1.3a2 2 0 0 0 .8-.5zM15 5l4 4"/>`,"qr-code":y`<rect x="3" y="3" width="5" height="5" rx="1"/><rect x="16" y="3" width="5" height="5" rx="1"/><rect x="3" y="16" width="5" height="5" rx="1"/><path d="M21 16h-3a2 2 0 0 0-2 2v3M21 21v.01M12 7v3a2 2 0 0 1-2 2H7M3 12h.01M12 3h.01M12 16v.01M16 12h1M21 12v.01M12 21v-1"/>`,battery:y`<rect x="2" y="7" width="16" height="10" rx="2"/><path d="M22 11v2M6 11v2M10 11v2"/>`},fr=Object.keys(si);function M(n,e="1.25em"){let i=n?si[n]:void 0;return i?o`<svg class="icon" viewBox="0 0 24 24" width=${e} height=${e} fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${i}</svg>`:l}var Ie=class extends h{static{this.properties={name:{type:String,reflect:!0},label:{type:String},size:{type:String,reflect:!0},tone:{type:String,reflect:!0}}}constructor(){super(),this.name="star",this.label="",this.size="md",this.tone="inherit"}static{this.styles=[...h.styles,u`
65
65
  :host { display: inline-flex; vertical-align: middle; line-height: 0; }
66
66
  :host([tone='brand']) { color: ${t.brand}; }
67
67
  :host([tone='muted']) { color: ${t.textMuted}; }
68
68
  @media (forced-colors: active) { :host { color: CanvasText; } }
69
- `]}render(){let e={sm:"16px",md:"24px",lg:"32px",xl:"48px"}[this.size]??"24px",i=M(this.name,e);return this.label?s`<span role="img" aria-label=${this.label}>${i}</span>`:s`${i}`}};customElements.define("impakt-icon",Me);var ii=u("color.text.inverse","var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))"),Ee=class extends p{constructor(){super();this.internals=null;this.hideOn="never",this.variant="primary",this.type="button",this.disabled=!1,this.busy=!1,this.busyLabel="Working",this.full=!1,this.fullOnPhone=!1,this.size="md",this.iconBefore="none",this.iconAfter="none",this.href="",this.icon="none",this.label="",this.spread=!1,this.centred=!1;try{this.internals=this.attachInternals()}catch{this.internals=null}}static{this.formAssociated=!0}static{this.properties={hideOn:{type:String,reflect:!0,attribute:"hide-on"},variant:{type:String,reflect:!0},type:{type:String},disabled:{type:Boolean,reflect:!0},busy:{type:Boolean,reflect:!0},busyLabel:{type:String,attribute:"busy-label"},full:{type:Boolean,reflect:!0},fullOnPhone:{type:Boolean,attribute:"full-on-phone",reflect:!0},size:{type:String,reflect:!0},iconBefore:{type:String,attribute:"icon-before"},iconAfter:{type:String,attribute:"icon-after"},href:{type:String},icon:{type:String},label:{type:String},spread:{type:Boolean,reflect:!0},centred:{type:Boolean,reflect:!0}}}static{this.styles=[...p.styles,k,A("button, a"),h`
69
+ `]}render(){let e={sm:"16px",md:"24px",lg:"32px",xl:"48px"}[this.size]??"24px",i=M(this.name,e);return this.label?o`<span role="img" aria-label=${this.label}>${i}</span>`:o`${i}`}};customElements.define("impakt-icon",Ie);var ni=d("color.text.inverse","var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))"),E={height:d("button.height","40px"),paddingBlock:d("button.padding-block","8px"),paddingInline:d("button.padding-inline","16px"),gap:d("button.gap","8px"),fontSize:d("button.font-size","0.875rem"),lineHeight:d("button.line-height","1.429"),weight:d("button.weight","600"),smPaddingBlock:d("button.sm.padding-block","4px"),smHeight:d("button.sm.height","32px"),smPaddingInline:d("button.sm.padding-inline","12px"),smFontSize:d("button.sm.font-size","0.875rem"),smLineHeight:d("button.sm.line-height","1.429"),smGap:d("button.sm.gap","6px"),solidEdge:d("button.solid-edge-width","1px"),arrowIcon:d("button.arrow-icon","inline-block"),arrowGlyph:d("button.arrow-glyph","none"),lgHeight:d("button.lg.height","48px"),lgPaddingBlock:d("button.lg.padding-block","12px"),lgFontSize:d("button.lg.font-size","1rem"),lgLineHeight:d("button.lg.line-height","1.5"),iconSize:d("button.icon-size","40px"),lgIconSize:d("button.lg.icon-size","48px"),fullJustify:d("button.full.justify","center"),fullAlign:d("button.full.align","center"),highlight:d("button.highlight","inset 0 1px 0 0 rgb(255 255 255 / 0.12)"),edge:d("button.edge","15%")},$r=y`<svg class="glyph" viewBox="0 0 15 10" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="butt" stroke-linejoin="miter" aria-hidden="true" focusable="false"><path d="M0 5h14" /><path d="M9.75 0.75 14 5l-4.25 4.25" /></svg>`,Re=class extends h{constructor(){super();this.internals=null;this.hideOn="never",this.variant="primary",this.type="button",this.disabled=!1,this.busy=!1,this.busyLabel="Working",this.full=!1,this.fullOnPhone=!1,this.size="md",this.iconBefore="none",this.iconAfter="none",this.href="",this.icon="none",this.label="",this.spread=!1,this.centred=!1;try{this.internals=this.attachInternals()}catch{this.internals=null}}static{this.formAssociated=!0}static{this.properties={hideOn:{type:String,reflect:!0,attribute:"hide-on"},variant:{type:String,reflect:!0},type:{type:String},disabled:{type:Boolean,reflect:!0},busy:{type:Boolean,reflect:!0},busyLabel:{type:String,attribute:"busy-label"},full:{type:Boolean,reflect:!0},fullOnPhone:{type:Boolean,attribute:"full-on-phone",reflect:!0},size:{type:String,reflect:!0},iconBefore:{type:String,attribute:"icon-before"},iconAfter:{type:String,attribute:"icon-after"},href:{type:String},icon:{type:String},label:{type:String},spread:{type:Boolean,reflect:!0},centred:{type:Boolean,reflect:!0}}}static{this.styles=[...h.styles,k,C("button, a"),u`
70
70
  @media (max-width: 40rem) { :host([hide-on='phone']) { display: none; } }
71
71
  :host {
72
72
  display: inline-block;
@@ -82,24 +82,26 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
82
82
  display: inline-flex;
83
83
  align-items: center;
84
84
  justify-content: center;
85
- gap: ${r(3)};
85
+ gap: ${E.gap};
86
86
  inline-size: 100%;
87
- /* G2: Archivo Medium 16, 14 by 20, about 47px tall. */
88
- min-block-size: 44px;
89
- padding: 14px ${r(5)};
87
+ /* The brand's button shape: 40px in the small type in semibold, or under Noire (G2) Archivo Medium 16, 14 by 20, about 47px tall. */
88
+ min-block-size: ${E.height};
89
+ padding: ${E.paddingBlock} ${E.paddingInline};
90
90
  font-family: inherit;
91
- font-size: ${b("md")};
92
- line-height: 1.2;
93
- font-weight: ${m("medium")};
91
+ font-size: ${E.fontSize};
92
+ line-height: ${E.lineHeight};
93
+ font-weight: ${E.weight};
94
94
  border-radius: ${t.radiusLg};
95
95
  border: ${t.borderThin} solid transparent;
96
96
  cursor: pointer;
97
97
  transition: background-color 120ms ease-in-out, border-color 120ms ease-in-out, box-shadow 120ms ease-in-out;
98
98
  }
99
- :host([size='sm']) :is(button, a) { min-block-size: 32px; padding: ${r(1.5)} ${r(3)}; ${w("sm")} gap: ${r(1.5)}; }
100
- :host([size='lg']) :is(button, a) { min-block-size: 56px; padding: ${r(4)} ${r(6)}; ${w("lg")} }
101
- /* Spread: the words at the start, the trailing icon at the far end. A full-width button spreads unless it is centred. */
102
- :host([spread]) :is(button, a), :host([full]:not([centred])) :is(button, a) { justify-content: space-between; text-align: start; }
99
+ :host([size='sm']) :is(button, a) { min-block-size: ${E.smHeight}; padding: ${E.smPaddingBlock} ${E.smPaddingInline}; font-size: ${E.smFontSize}; line-height: ${E.smLineHeight}; gap: ${E.smGap}; }
100
+ :host([size='lg']) :is(button, a) { min-block-size: ${E.lgHeight}; padding: ${E.lgPaddingBlock} ${a(6)}; font-size: ${E.lgFontSize}; line-height: ${E.lgLineHeight}; }
101
+ /* A full-width button keeps its words in the middle, or spreads them where the brand does, as Noire does unless it is centred. */
102
+ :host([full]:not([centred]):not([spread])) :is(button, a) { justify-content: ${E.fullJustify}; text-align: ${E.fullAlign}; }
103
+ /* Spread: the words at the start, the trailing icon at the far end. */
104
+ :host([spread]) :is(button, a) { justify-content: space-between; text-align: start; }
103
105
  .icon { flex: none; inline-size: 1.15em; block-size: 1.15em; }
104
106
  /* The cursor is the only thing that changes while busy. Moving or
105
107
  recolouring a control the moment it is pressed is how a user loses it. */
@@ -115,24 +117,39 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
115
117
  .primary {
116
118
  background: var(--impakt-button-primary, ${t.brand});
117
119
  color: var(--impakt-button-on-primary, ${t.onBrand});
120
+ /* A hairline highlight along the top edge, where the brand draws one. Noire is flat. */
121
+ box-shadow: ${t.shadowXs}, ${E.highlight};
118
122
  }
119
123
  .primary:hover:not([aria-disabled='true']) {
120
124
  background: var(--impakt-button-primary-hover, var(--impakt-color-action-hover, ${t.brandHover}));
121
125
  color: var(--impakt-button-on-primary, var(--impakt-color-action-on-hover, ${t.onBrand}));
122
126
  }
123
127
  /* A brand whose buttons turn on hover lifts the trailing arrow a quarter-turn. */
124
- .after { transition: transform 160ms ease-out; }
128
+ /* The trailing icon sits in a box as tall as the icon, so it never makes the line taller than the label's (#50). */
129
+ .after { display: inline-flex; align-items: center; flex: none; transition: transform 160ms ease-out; }
130
+ .after.arrow .icon { display: ${E.arrowIcon}; }
131
+ /* The "→" of the G2 button, drawn so it does not depend on the font file holding it: as long as the label is high, with a thin stroke and a small head. */
132
+ .after .glyph { display: ${E.arrowGlyph}; inline-size: 0.9375em; block-size: 0.625em; overflow: visible; }
125
133
  :is(button, a):hover:not([aria-disabled='true']) .after { transform: rotate(var(--impakt-motion-button-turn, 0deg)); }
126
134
  @media (prefers-reduced-motion: reduce) { .after { transition: none; } }
127
135
  .primary:active:not([aria-disabled='true']) {
128
136
  background: var(--impakt-button-primary-hover, ${t.brandActive});
129
137
  }
130
138
 
139
+ /*
140
+ * A filled button draws no edge where the brand says so, as Noire does: the G2 button is 14px, the label's 19.2px
141
+ * line and 14px, so 47px tall, and only an outlined one adds its 1px edge, to 49px (#50). Forced colours keep the
142
+ * edge, since there the fill is gone.
143
+ */
144
+ :is(.primary, .dark, .subtle, .accent, .danger, .ghost) { border-width: ${E.solidEdge}; }
145
+ @media (forced-colors: active) { :is(.primary, .dark, .subtle, .accent, .danger, .ghost) { border-width: 1px; } }
146
+
131
147
  /* Outline: the card, a hairline border and the text colour, for the second choice. */
132
148
  .secondary {
133
149
  background: ${t.surfaceCard};
134
150
  color: ${t.text};
135
- border-color: ${t.text};
151
+ border-color: color-mix(in srgb, ${t.text} ${E.edge}, transparent);
152
+ box-shadow: ${t.shadowXs};
136
153
  }
137
154
  .secondary:hover:not([aria-disabled='true']) {
138
155
  background: color-mix(in srgb, ${t.surfaceCard}, ${t.text} 4%);
@@ -157,13 +174,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
157
174
  */
158
175
  .dark {
159
176
  background: ${t.text};
160
- color: ${ii};
177
+ color: ${ni};
161
178
  }
162
179
  .dark:hover:not([aria-disabled='true']) {
163
- background: color-mix(in srgb, ${t.text}, ${ii} 14%);
180
+ background: color-mix(in srgb, ${t.text}, ${ni} 14%);
164
181
  }
165
182
  .dark:active:not([aria-disabled='true']) {
166
- background: color-mix(in srgb, ${t.text}, ${ii} 24%);
183
+ background: color-mix(in srgb, ${t.text}, ${ni} 24%);
167
184
  }
168
185
 
169
186
  /* Outline: transparent, a 1px border and words in the text colour, the design's "Ghost". On an ink band both are the paper. */
@@ -193,14 +210,14 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
193
210
 
194
211
  /* Accent: the brand's second colour as a fill, for the one action a page is built around. The words on it are the colour the tokens measured against it. */
195
212
  .accent {
196
- background: ${u("color.accent.default","#ffd43b")};
197
- color: ${u("color.accent.on","#1a1a1a")};
213
+ background: ${d("color.accent.default","#ffd43b")};
214
+ color: ${d("color.accent.on","#1a1a1a")};
198
215
  }
199
216
  .accent:hover:not([aria-disabled='true']) {
200
- background: ${u("color.accent.hover","#e0bb34")};
217
+ background: ${d("color.accent.hover","#e0bb34")};
201
218
  }
202
219
  .accent:active:not([aria-disabled='true']) {
203
- background: color-mix(in srgb, ${u("color.accent.hover","#e0bb34")}, ${u("color.accent.on","#1a1a1a")} 10%);
220
+ background: color-mix(in srgb, ${d("color.accent.hover","#e0bb34")}, ${d("color.accent.on","#1a1a1a")} 10%);
204
221
  }
205
222
 
206
223
  /* Danger: the danger text colour as a fill, so white words on it keep 4.5:1. */
@@ -217,15 +234,15 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
217
234
 
218
235
  /* Icon only: as tall as it is wide, round where the brand rounds its corners and square under Noire. */
219
236
  .icon-only {
220
- inline-size: 47px;
221
- min-inline-size: 47px;
222
- block-size: 47px;
223
- min-block-size: 47px;
237
+ inline-size: ${E.iconSize};
238
+ min-inline-size: ${E.iconSize};
239
+ block-size: ${E.iconSize};
240
+ min-block-size: ${E.iconSize};
224
241
  padding: 0;
225
242
  border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
226
243
  }
227
244
  :host([size='sm']) .icon-only { inline-size: 32px; min-inline-size: 32px; block-size: 32px; min-block-size: 32px; padding: 0; }
228
- :host([size='lg']) .icon-only { inline-size: 56px; min-inline-size: 56px; block-size: 56px; min-block-size: 56px; padding: 0; }
245
+ :host([size='lg']) .icon-only { inline-size: ${E.lgIconSize}; min-inline-size: ${E.lgIconSize}; block-size: ${E.lgIconSize}; min-block-size: ${E.lgIconSize}; padding: 0; }
229
246
 
230
247
  .sr-only {
231
248
  ${T}
@@ -239,9 +256,9 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
239
256
  border-color: ButtonBorder;
240
257
  }
241
258
  }
242
- `]}onClick(i){if(this.disabled||this.busy){i.preventDefault(),i.stopImmediatePropagation();return}this.type==="submit"&&this.internals?.form?.requestSubmit(),this.type==="reset"&&this.internals?.form?.reset()}render(){let i=!!(this.icon&&this.icon!=="none"&&this.label),a=i?`${this.variant} icon-only`:this.variant;if(i){let d=M(this.icon);return this.href&&!this.disabled?s`<a class=${a} href=${this.href} part="button" aria-label=${this.label}>${d}</a>`:s`
259
+ `]}onClick(i){if(this.disabled||this.busy){i.preventDefault(),i.stopImmediatePropagation();return}this.type==="submit"&&this.internals?.form?.requestSubmit(),this.type==="reset"&&this.internals?.form?.reset()}render(){let i=!!(this.icon&&this.icon!=="none"&&this.label),r=i?`${this.variant} icon-only`:this.variant;if(i){let c=M(this.icon);return this.href&&!this.disabled?o`<a class=${r} href=${this.href} part="button" aria-label=${this.label}>${c}</a>`:o`
243
260
  <button
244
- class=${a}
261
+ class=${r}
245
262
  type="button"
246
263
  part="button"
247
264
  aria-label=${this.label}
@@ -250,10 +267,10 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
250
267
  aria-busy=${this.busy?"true":l}
251
268
  @click=${this.onClick}
252
269
  >
253
- ${d}
254
- ${this.busy?s`<span class="sr-only">${this.busyLabel}</span>`:l}
270
+ ${c}
271
+ ${this.busy?o`<span class="sr-only">${this.busyLabel}</span>`:l}
255
272
  </button>
256
- `}let o=s`${M(this.iconBefore)}<slot></slot>${this.iconAfter&&this.iconAfter!=="none"?s`<span class="after" aria-hidden="true">${M(this.iconAfter)}</span>`:l}`;return this.href&&!this.disabled?s`<a class=${this.variant} href=${this.href} part="button">${o}</a>`:s`
273
+ `}let s=o`${M(this.iconBefore)}<slot></slot>${this.iconAfter&&this.iconAfter!=="none"?o`<span class=${this.iconAfter==="arrow-right"?"after arrow":"after"} aria-hidden="true">${M(this.iconAfter)}${this.iconAfter==="arrow-right"?$r:l}</span>`:l}`;return this.href&&!this.disabled?o`<a class=${this.variant} href=${this.href} part="button">${s}</a>`:o`
257
274
  <button
258
275
  class=${this.variant}
259
276
  type="button"
@@ -263,33 +280,37 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
263
280
  aria-busy=${this.busy?"true":l}
264
281
  @click=${this.onClick}
265
282
  >
266
- ${o}
267
- ${this.busy?s`<span class="sr-only">${this.busyLabel}</span>`:l}
283
+ ${s}
284
+ ${this.busy?o`<span class="sr-only">${this.busyLabel}</span>`:l}
268
285
  </button>
269
- `}};customElements.define("impakt-button",Ee);var N=h`
286
+ `}};customElements.define("impakt-button",Re);var D=u`
270
287
  :host { --impakt-field-width: 100%; }
271
288
  :host([width='xs']) { --impakt-field-width: 8ch; }
272
289
  :host([width='sm']) { --impakt-field-width: 14ch; }
273
290
  :host([width='md']) { --impakt-field-width: 24ch; }
274
291
  :host([width='lg']) { --impakt-field-width: 40ch; }
275
- `,Q=n=>{let e=C(n);return h`
292
+ `,V={height:d("field.height","44px"),paddingBlock:d("field.padding-block","10px"),paddingInline:d("field.padding-inline","12px"),lineHeight:d("field.line-height","normal"),radius:d("field.radius","8px"),edge:d("field.edge","0%"),focusEdge:d("field.focus-edge","0%"),focusHalo:d("field.focus-halo","6px")},ae=n=>{let e=L(n);return u`
276
293
  ${e} {
277
294
  inline-size: min(100%, var(--impakt-field-width));
278
- min-block-size: 50px;
279
- padding: 13px ${r(3.5)};
295
+ min-block-size: ${V.height};
296
+ padding: ${V.paddingBlock} ${V.paddingInline};
280
297
  font-family: inherit;
281
298
  font-size: ${b("md")};
282
- line-height: 1.5;
299
+ line-height: ${V.lineHeight};
283
300
  color: ${t.text};
284
301
  background: var(--impakt-color-field-surface, ${t.surfaceCard});
285
- border: ${t.borderThin} solid var(--impakt-color-field-border, ${t.text});
286
- border-radius: ${t.radius};
287
- box-shadow: var(--impakt-shadow-field, none);
302
+ border: ${t.borderThin} solid var(--impakt-color-field-border, color-mix(in srgb, ${t.text} ${V.edge}, ${t.border}));
303
+ border-radius: ${V.radius};
304
+ box-shadow: var(--impakt-shadow-field, ${t.shadowXs});
288
305
  transition: border-color 120ms ease-in-out, box-shadow 120ms ease-in-out;
289
306
  }
307
+ ${e}:hover:not(:disabled) {
308
+ border-color: var(--impakt-color-field-border, color-mix(in srgb, ${t.text} ${V.edge}, ${t.borderStrong}));
309
+ }
310
+ /* The focus ring, and the brand's halo round it where the brand draws one, so the field being typed in is plain at a glance. */
290
311
  ${e}:focus-visible {
291
- border-color: ${t.text};
292
- box-shadow: ${t.focusShadow};
312
+ border-color: color-mix(in srgb, ${t.text} ${V.focusEdge}, ${t.brand});
313
+ box-shadow: ${t.focusShadow}, 0 0 0 ${V.focusHalo} ${t.brandHalo};
293
314
  }
294
315
  ${e}::placeholder {
295
316
  color: ${t.textPlaceholder};
@@ -303,25 +324,26 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
303
324
  border-color: ${t.danger};
304
325
  border-width: ${t.borderThick};
305
326
  }
306
- `},x=class extends p{constructor(){super();this.internals=null;this.label="",this.name="",this.value="",this.description="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this.requiredText="required";try{this.internals=this.attachInternals()}catch{this.internals=null}}static{this.formAssociated=!0}static{this.properties={label:{type:String},name:{type:String},value:{type:String},description:{type:String},error:{type:String},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},readonly:{type:Boolean,reflect:!0},requiredText:{type:String,attribute:"required-text"}}}static{this.styles=[...p.styles,k,h`
327
+ `},x=class extends h{constructor(){super();this.internals=null;this.label="",this.name="",this.value="",this.description="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this.requiredText="required";try{this.internals=this.attachInternals()}catch{this.internals=null}}static{this.formAssociated=!0}static{this.properties={label:{type:String},name:{type:String},value:{type:String},description:{type:String},error:{type:String},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},readonly:{type:Boolean,reflect:!0},requiredText:{type:String,attribute:"required-text"}}}static{this.styles=[...h.styles,k,u`
307
328
  :host {
308
329
  display: block;
309
- margin-block-end: ${r(4)};
330
+ margin-block-end: ${a(4)};
310
331
  }
311
332
  /*
312
- * The question, in the code face at 14px in the ink (G2). A page can set it
313
- * another way through these properties, such as the site's contact form,
314
- * which sets its labels in capitals at 11px (frame 20:1157).
333
+ * The question, at 14px in the ink: semibold in the body face, or under Noire in the code
334
+ * face (G2). The brand sets the face and weight (field.label.*); a page can set it
335
+ * another way through these properties, such as the site's contact form, which sets its
336
+ * labels in capitals at 11px (frame 20:1157).
315
337
  */
316
338
  .label {
317
339
  display: block;
318
- font-family: var(--impakt-field-label-font, ${t.fontMono});
340
+ font-family: var(--impakt-field-label-font, ${t.fontBody});
319
341
  font-size: var(--impakt-field-label-size, ${b("sm")});
320
- font-weight: var(--impakt-field-label-weight, ${m("regular")});
342
+ font-weight: var(--impakt-field-label-weight, ${m("semibold")});
321
343
  letter-spacing: var(--impakt-field-label-tracking, normal);
322
344
  text-transform: var(--impakt-field-label-transform, none);
323
- line-height: ${H("normal")};
324
- margin-block-end: ${r(2)};
345
+ line-height: ${P("normal")};
346
+ margin-block-end: var(--impakt-field-label-space, ${a(1)});
325
347
  color: ${t.text};
326
348
  }
327
349
  .required {
@@ -330,17 +352,17 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
330
352
  }
331
353
  .description {
332
354
  font-size: ${b("sm")};
333
- line-height: ${H("normal")};
355
+ line-height: ${P("normal")};
334
356
  color: ${t.textMuted};
335
- margin-block-end: ${r(2)};
357
+ margin-block-end: ${a(2)};
336
358
  }
337
359
  .error {
338
360
  font-size: ${b("sm")};
339
- line-height: ${H("normal")};
361
+ line-height: ${P("normal")};
340
362
  color: ${t.dangerText};
341
- margin-block-start: ${r(1)};
363
+ margin-block-start: ${a(1)};
342
364
  display: flex;
343
- gap: ${r(1)};
365
+ gap: ${a(1)};
344
366
  }
345
367
  .error:empty {
346
368
  display: none;
@@ -358,13 +380,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
358
380
  opacity: 0.6;
359
381
  cursor: not-allowed;
360
382
  }
361
- `]}get controlId(){return this.id_("control")}get describedBy(){let i=[this.description?this.id_("description"):"",this.error?this.id_("error"):""].filter(Boolean);return i.length?i.join(" "):l}focus(i){let a=this.renderRoot?.querySelector(`#${this.controlId}`)??this.renderRoot?.querySelector("input, select, textarea, button");a?a.focus(i):super.focus(i)}renderLabel(){return s`
383
+ `]}get controlId(){return this.id_("control")}get describedBy(){let i=[this.description?this.id_("description"):"",this.error?this.id_("error"):""].filter(Boolean);return i.length?i.join(" "):l}focus(i){let r=this.renderRoot?.querySelector(`#${this.controlId}`)??this.renderRoot?.querySelector("input, select, textarea, button");r?r.focus(i):super.focus(i)}renderLabel(){return o`
362
384
  <label class="label" for=${this.controlId} part="label">
363
- ${this.label}${this.required?s`<span class="required"> (${this.requiredText})</span>`:l}
385
+ ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
364
386
  </label>
365
- `}render(){return s`
387
+ `}render(){return o`
366
388
  ${this.renderLabel()}
367
- ${this.description?s`<div class="description" id=${this.id_("description")} part="description">
389
+ ${this.description?o`<div class="description" id=${this.id_("description")} part="description">
368
390
  ${this.description}
369
391
  </div>`:l}
370
392
  ${this.renderControl()}
@@ -383,7 +405,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
383
405
  >
384
406
  ${this.error||l}
385
407
  </div>
386
- `}setFormValue(i){this.value=i,this.internals?.setFormValue(i),this.dispatchEvent(new CustomEvent("impakt-change",{detail:this.changeDetail(i),bubbles:!0,composed:!0}))}changeDetail(i){return{value:i}}};var Ae=class extends x{static{this.properties={...x.properties,width:{type:String,reflect:!0},type:{type:String},placeholder:{type:String},autocomplete:{type:String},inputmode:{type:String},maxlength:{type:Number},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0}}}constructor(){super(),this.width="full",this.type="text",this.placeholder="",this.autocomplete="",this.inputmode="",this.maxlength=void 0,this.hideLabel=!1}static{this.styles=[...x.styles,N,Q("input"),h`
408
+ `}setFormValue(i){this.value=i,this.internals?.setFormValue(i),this.dispatchEvent(new CustomEvent("impakt-change",{detail:this.changeDetail(i),bubbles:!0,composed:!0}))}changeDetail(i){return{value:i}}};var _e=class extends x{static{this.properties={...x.properties,width:{type:String,reflect:!0},type:{type:String},placeholder:{type:String},autocomplete:{type:String},inputmode:{type:String},maxlength:{type:Number},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0}}}constructor(){super(),this.width="full",this.type="text",this.placeholder="",this.autocomplete="",this.inputmode="",this.maxlength=void 0,this.hideLabel=!1}static{this.styles=[...x.styles,D,ae("input"),u`
387
409
  :host([hide-label]) .label {
388
410
  position: absolute;
389
411
  inline-size: 1px;
@@ -399,19 +421,19 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
399
421
  }
400
422
  .search input {
401
423
  inline-size: 100%;
402
- padding-inline-start: ${r(10)};
424
+ padding-inline-start: ${a(10)};
403
425
  /* A pill where the brand rounds its corners, square under Noire. */
404
426
  border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
405
427
  }
406
428
  .search .icon {
407
429
  position: absolute;
408
- inset-inline-start: ${r(3.5)};
430
+ inset-inline-start: ${a(3.5)};
409
431
  inset-block-start: 50%;
410
432
  transform: translateY(-50%);
411
433
  color: ${t.textMuted};
412
434
  pointer-events: none;
413
435
  }
414
- `]}renderControl(){let e=this.renderInput();return this.type==="search"?s`<span class="search" part="search">${M("search","20px")}${e}</span>`:e}renderInput(){return s`
436
+ `]}renderControl(){let e=this.renderInput();return this.type==="search"?o`<span class="search" part="search">${M("search","20px")}${e}</span>`:e}renderInput(){return o`
415
437
  <input
416
438
  id=${this.controlId}
417
439
  part="input"
@@ -429,7 +451,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
429
451
  aria-invalid=${this.error?"true":l}
430
452
  @input=${e=>this.setFormValue(e.target.value)}
431
453
  />
432
- `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-text-input",Ae);var Ce=class extends x{static{this.properties={...x.properties,width:{type:String,reflect:!0},options:{type:Array},placeholder:{type:String},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.width="full",this.options=[],this.placeholder="Choose an option",this.hideLabel=!1,this.size="md"}static{this.styles=[...x.styles,N,Q("select"),h`
454
+ `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-text-input",_e);var He=class extends x{static{this.properties={...x.properties,width:{type:String,reflect:!0},options:{type:Array},placeholder:{type:String},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.width="full",this.options=[],this.placeholder="Choose an option",this.hideLabel=!1,this.size="md"}static{this.styles=[...x.styles,D,ae("select"),u`
433
455
  :host([hide-label]) .label {
434
456
  ${T}
435
457
  }
@@ -457,13 +479,17 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
457
479
  inset-inline-end: 10px;
458
480
  font-size: 12px;
459
481
  }
460
- /* The browser's own arrow is replaced by a small "▾", drawn beside the box's end and hidden from screen readers. */
482
+ /*
483
+ * The marker. Most brands keep the browser's own arrow. Where the brand says so, as Noire does
484
+ * (select.appearance and select.caret), it is replaced by a small "▾", drawn beside the box's
485
+ * end and hidden from screen readers.
486
+ */
461
487
  .box { position: relative; display: block; inline-size: min(100%, var(--impakt-field-width)); }
462
- select { inline-size: 100%; appearance: none; -webkit-appearance: none; padding-inline-end: ${r(9)}; cursor: pointer; }
463
- .caret { position: absolute; inset-inline-end: ${r(3.5)}; inset-block-start: 50%; transform: translateY(-50%); font-size: ${b("sm")}; line-height: 1; color: ${t.text}; pointer-events: none; }
488
+ select { inline-size: 100%; appearance: var(--impakt-select-appearance, auto); -webkit-appearance: var(--impakt-select-appearance, auto); padding-inline-end: var(--impakt-select-padding-end, ${a(3)}); cursor: pointer; }
489
+ .caret { display: var(--impakt-select-caret, none); position: absolute; inset-inline-end: ${a(3.5)}; inset-block-start: 50%; transform: translateY(-50%); font-size: ${b("sm")}; line-height: 1; color: ${t.text}; pointer-events: none; }
464
490
  /* A forced colours mode draws the box in the system colours; the caret takes the text colour. */
465
491
  @media (forced-colors: active) { .caret { color: CanvasText; } }
466
- `]}renderControl(){return s`
492
+ `]}renderControl(){return o`
467
493
  <span class="box" part="box"><select
468
494
  id=${this.controlId}
469
495
  part="select"
@@ -475,13 +501,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
475
501
  @change=${e=>this.setFormValue(e.target.value)}
476
502
  >
477
503
  <option value="" ?selected=${!this.value}>${this.placeholder}</option>
478
- ${this.options.map(e=>s`<option value=${e.value} ?selected=${this.value===e.value}>${e.label}</option>`)}
479
- </select><span class="caret" aria-hidden="true">▾</span></span>
480
- `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-select",Ce);var Le=class extends x{static{this.properties={...x.properties,checked:{type:Boolean,reflect:!0}}}constructor(){super(),this.checked=!1}static{this.styles=[...x.styles,A(".row"),h`
504
+ ${this.options.map(e=>o`<option value=${e.value} ?selected=${this.value===e.value}>${e.label}</option>`)}
505
+ </select><span class="caret" part="caret" aria-hidden="true">▾</span></span>
506
+ `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-select",He);var Be=class extends x{static{this.properties={...x.properties,checked:{type:Boolean,reflect:!0}}}constructor(){super(),this.checked=!1}static{this.styles=[...x.styles,C(".row"),u`
481
507
  .row {
482
508
  display: flex;
483
509
  align-items: flex-start;
484
- gap: ${r(3)};
510
+ gap: ${a(3)};
485
511
  cursor: pointer;
486
512
  }
487
513
  input {
@@ -498,7 +524,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
498
524
  :host([invalid]) .row {
499
525
  color: ${t.dangerText};
500
526
  }
501
- `]}renderControl(){return s`
527
+ `]}renderControl(){return o`
502
528
  <label class="row" part="row" for=${this.controlId}>
503
529
  <input
504
530
  type="checkbox"
@@ -513,20 +539,20 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
513
539
  @change=${e=>{this.checked=e.target.checked,this.setFormValue(this.checked?"on":"")}}
514
540
  />
515
541
  <span class="text">
516
- ${this.label}${this.required?s`<span class="required"> (${this.requiredText})</span>`:l}
542
+ ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
517
543
  </span>
518
544
  </label>
519
- `}renderLabel(){return s`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox",Le);var hr=C("48rem");function Ni(n){if(!n||n.startsWith("#"))return null;try{let e=typeof location>"u"?"http://localhost/":location.href;return new URL(n,e).pathname.replace(/\/$/,"")||"/"}catch{return null}}function ri(n,e){let i=Ni(n);if(!i)return!1;let a=Ni(e||(typeof location>"u"?"":location.pathname));return a?i===a?!0:i!=="/"&&a.startsWith(`${i}/`):!1}function de(n,e,i){if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let a=new CustomEvent("impakt-navigate",{detail:{href:i.href,id:i.id??i.href},bubbles:!0,composed:!0,cancelable:!0});n.dispatchEvent(a)||e.preventDefault()}var Re=class extends p{constructor(){super();this.footerFilled=!1;this.items=[],this.label="Main",this.current=""}static{this.properties={items:{type:Array},label:{type:String},current:{type:String}}}static{this.styles=[...p.styles,k,h`
520
- :host { display: flex; flex-direction: column; gap: ${r(5)}; block-size: 100%; }
521
- .card { padding: ${r(2)}; border-radius: ${t.radiusXl}; background: ${t.surfaceCard}; }
522
- ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${r(.5)}; }
545
+ `}renderLabel(){return o`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox",Be);var xr=L("48rem");function Fi(n){if(!n||n.startsWith("#"))return null;try{let e=typeof location>"u"?"http://localhost/":location.href;return new URL(n,e).pathname.replace(/\/$/,"")||"/"}catch{return null}}function li(n,e){let i=Fi(n);if(!i)return!1;let r=Fi(e||(typeof location>"u"?"":location.pathname));return r?i===r?!0:i!=="/"&&r.startsWith(`${i}/`):!1}function me(n,e,i){if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let r=new CustomEvent("impakt-navigate",{detail:{href:i.href,id:i.id??i.href},bubbles:!0,composed:!0,cancelable:!0});n.dispatchEvent(r)||e.preventDefault()}var Ne=class extends h{constructor(){super();this.footerFilled=!1;this.items=[],this.label="Main",this.current=""}static{this.properties={items:{type:Array},label:{type:String},current:{type:String}}}static{this.styles=[...h.styles,k,u`
546
+ :host { display: flex; flex-direction: column; gap: ${a(5)}; block-size: 100%; }
547
+ .card { padding: ${a(2)}; border-radius: ${t.radiusXl}; background: ${t.surfaceCard}; }
548
+ ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${a(.5)}; }
523
549
  a {
524
550
  ${z}
525
551
  display: flex;
526
552
  align-items: center;
527
- gap: ${r(3)};
553
+ gap: ${a(3)};
528
554
  min-block-size: 44px;
529
- padding: 0 ${r(3.5)};
555
+ padding: 0 ${a(3.5)};
530
556
  border-radius: ${t.radiusLg};
531
557
  color: ${t.text};
532
558
  font-size: ${b("md")};
@@ -541,35 +567,35 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
541
567
  .footer.empty { display: none; }
542
568
  @media (prefers-reduced-motion: reduce) { a { transition: none; } }
543
569
  @media (forced-colors: active) { a[aria-current='page'] { border: 2px solid Highlight; } }
544
- `]}onFooter(i){let a=i.target;this.footerFilled=a.assignedNodes({flatten:!0}).some(o=>o.nodeType===Node.ELEMENT_NODE||(o.textContent??"").trim()!==""),this.requestUpdate()}render(){return s`
570
+ `]}onFooter(i){let r=i.target;this.footerFilled=r.assignedNodes({flatten:!0}).some(s=>s.nodeType===Node.ELEMENT_NODE||(s.textContent??"").trim()!==""),this.requestUpdate()}render(){return o`
545
571
  <nav class="card" aria-label=${this.label} part="nav">
546
572
  <ul part="list">
547
- ${this.items.map(i=>s`
573
+ ${this.items.map(i=>o`
548
574
  <li>
549
575
  <a
550
576
  href=${i.href}
551
577
  part="link"
552
- aria-current=${ri(i.href,this.current)?"page":l}
553
- @click=${a=>de(this,a,i)}
578
+ aria-current=${li(i.href,this.current)?"page":l}
579
+ @click=${r=>me(this,r,i)}
554
580
  >${M(i.icon,"20px")}<span>${i.label}</span></a>
555
581
  </li>
556
582
  `)}
557
583
  </ul>
558
584
  </nav>
559
585
  <div class="card footer ${this.footerFilled?"":"empty"}" part="footer"><slot name="footer" @slotchange=${this.onFooter}></slot></div>
560
- `}},Ie=class extends p{static{this.properties={items:{type:Array},label:{type:String},current:{type:String}}}constructor(){super(),this.items=[],this.label="Main",this.current=""}static{this.styles=[...p.styles,k,h`
586
+ `}},Oe=class extends h{static{this.properties={items:{type:Array},label:{type:String},current:{type:String}}}constructor(){super(),this.items=[],this.label="Main",this.current=""}static{this.styles=[...h.styles,k,u`
561
587
  :host { display: block; }
562
- nav { padding: ${r(1.5)}; border-radius: ${t.radiusXl}; background: ${t.text}; box-shadow: ${t.shadowLg}; }
563
- ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${r(1)}; }
588
+ nav { padding: ${a(1.5)}; border-radius: ${t.radiusXl}; background: ${t.text}; box-shadow: ${t.shadowLg}; }
589
+ ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${a(1)}; }
564
590
  li { flex: 1 1 0; min-inline-size: 0; }
565
591
  a {
566
592
  display: flex;
567
593
  flex-direction: column;
568
594
  align-items: center;
569
595
  justify-content: center;
570
- gap: ${r(1)};
596
+ gap: ${a(1)};
571
597
  min-block-size: 50px;
572
- padding: ${r(1)};
598
+ padding: ${a(1)};
573
599
  border-radius: ${t.radiusLg};
574
600
  /* The resting items are a blend of the card and text colours that keeps 4.5:1 on the bar. */
575
601
  color: color-mix(in srgb, ${t.surfaceCard} 74%, ${t.text});
@@ -583,22 +609,22 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
583
609
  a[aria-current='page'] { background: color-mix(in srgb, ${t.text}, ${t.surfaceCard} 16%); color: ${t.surfaceCard}; }
584
610
  span.word { max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
585
611
  @media (forced-colors: active) { a[aria-current='page'] { border: 2px solid Highlight; } }
586
- `]}render(){return s`
612
+ `]}render(){return o`
587
613
  <nav aria-label=${this.label} part="nav">
588
614
  <ul part="list">
589
- ${this.items.map(e=>s`
615
+ ${this.items.map(e=>o`
590
616
  <li>
591
617
  <a
592
618
  href=${e.href}
593
619
  part="link"
594
- aria-current=${ri(e.href,this.current)?"page":l}
595
- @click=${i=>de(this,i,e)}
620
+ aria-current=${li(e.href,this.current)?"page":l}
621
+ @click=${i=>me(this,i,e)}
596
622
  >${M(e.icon,"22px")}<span class="word">${e.label}</span></a>
597
623
  </li>
598
624
  `)}
599
625
  </ul>
600
626
  </nav>
601
- `}},_e=class extends p{static{this.properties={skipText:{type:String,attribute:"skip-text"},topBarLabel:{type:String,attribute:"top-bar-label"}}}constructor(){super(),this.skipText="Skip to content",this.topBarLabel=""}static{this.styles=[...p.styles,k,h`
627
+ `}},Pe=class extends h{static{this.properties={skipText:{type:String,attribute:"skip-text"},topBarLabel:{type:String,attribute:"top-bar-label"}}}constructor(){super(),this.skipText="Skip to content",this.topBarLabel=""}static{this.styles=[...h.styles,k,u`
602
628
  :host {
603
629
  display: block;
604
630
  min-block-size: 100svh;
@@ -615,30 +641,30 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
615
641
  grid-template-columns: var(--impakt-shell-side, 190px) minmax(0, 1fr);
616
642
  grid-template-rows: auto 1fr;
617
643
  grid-template-areas: 'brand top' 'side main';
618
- gap: ${r(5)};
619
- min-block-size: calc(100svh - 2 * ${r(5)});
620
- margin: ${r(5)};
621
- padding: ${r(5)};
644
+ gap: ${a(5)};
645
+ min-block-size: calc(100svh - 2 * ${a(5)});
646
+ margin: ${a(5)};
647
+ padding: ${a(5)};
622
648
  border-radius: var(--impakt-shell-radius, 36px);
623
- background: ${u("color.surface.page","#f2f5f4")};
649
+ background: ${d("color.surface.page","#f2f5f4")};
624
650
  }
625
651
  .brand { grid-area: brand; display: flex; align-items: center; min-block-size: 52px; }
626
652
  .side { grid-area: side; display: flex; flex-direction: column; min-block-size: 0; }
627
653
  .side ::slotted(*) { flex: 1; }
628
- header { grid-area: top; display: flex; align-items: center; gap: ${r(5)}; min-inline-size: 0; }
654
+ header { grid-area: top; display: flex; align-items: center; gap: ${a(5)}; min-inline-size: 0; }
629
655
  .workspace { flex: none; }
630
656
  .search { flex: 1 1 auto; display: flex; justify-content: center; min-inline-size: 0; }
631
657
  .search ::slotted(*) { inline-size: min(100%, 420px); }
632
- .actions { flex: none; display: flex; align-items: center; gap: ${r(3)}; }
658
+ .actions { flex: none; display: flex; align-items: center; gap: ${a(3)}; }
633
659
  main { grid-area: main; min-inline-size: 0; }
634
660
  main:focus { outline: none; }
635
661
  .phone-header, .tab-bar { display: none; }
636
662
  .skip {
637
663
  position: absolute;
638
- inset-inline-start: ${r(2)};
639
- inset-block-start: ${r(2)};
664
+ inset-inline-start: ${a(2)};
665
+ inset-block-start: ${a(2)};
640
666
  z-index: 20;
641
- padding: ${r(2)} ${r(4)};
667
+ padding: ${a(2)} ${a(4)};
642
668
  background: ${t.surfaceCard};
643
669
  color: ${t.link};
644
670
  border-radius: ${t.radius};
@@ -647,7 +673,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
647
673
  .skip:not(:focus) { clip-path: inset(50%); }
648
674
  .skip:focus { transform: none; }
649
675
 
650
- @media (max-width: ${hr}) {
676
+ @media (max-width: ${xr}) {
651
677
  :host { background: ${t.text}; }
652
678
  .frame {
653
679
  display: flex;
@@ -665,7 +691,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
665
691
  reads light without being told. */
666
692
  .phone-header {
667
693
  display: block;
668
- padding: calc(${r(4)} + env(safe-area-inset-top)) ${r(5)} ${r(10)};
694
+ padding: calc(${a(4)} + env(safe-area-inset-top)) ${a(5)} ${a(10)};
669
695
  color: var(--impakt-shell-paper);
670
696
  --impakt-color-text-default: var(--impakt-shell-paper);
671
697
  --impakt-color-text-heading: var(--impakt-shell-paper);
@@ -675,21 +701,21 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
675
701
  main {
676
702
  position: relative;
677
703
  flex: 1;
678
- margin-block-start: calc(-1 * ${r(6)});
704
+ margin-block-start: calc(-1 * ${a(6)});
679
705
  /* Room for the floating tab bar, so the last of the content can scroll clear of it. */
680
- padding: ${r(4)} ${r(4)} calc(96px + env(safe-area-inset-bottom));
706
+ padding: ${a(4)} ${a(4)} calc(96px + env(safe-area-inset-bottom));
681
707
  border-radius: 28px 28px 0 0;
682
- background: ${u("color.surface.page","#f2f5f4")};
708
+ background: ${d("color.surface.page","#f2f5f4")};
683
709
  }
684
710
  .tab-bar {
685
711
  display: block;
686
712
  position: fixed;
687
713
  z-index: 10;
688
- inset-inline: ${r(4)};
689
- inset-block-end: calc(${r(3)} + env(safe-area-inset-bottom));
714
+ inset-inline: ${a(4)};
715
+ inset-block-end: calc(${a(3)} + env(safe-area-inset-bottom));
690
716
  }
691
717
  }
692
- `]}skip(e){e.preventDefault();let i=this.renderRoot.querySelector("main");i?.focus(),i?.scrollIntoView()}render(){return s`
718
+ `]}skip(e){e.preventDefault();let i=this.renderRoot.querySelector("main");i?.focus(),i?.scrollIntoView()}render(){return o`
693
719
  <div class="frame" part="frame">
694
720
  <a class="skip" href="#content" part="skip" @click=${this.skip}>${this.skipText}</a>
695
721
  <div class="brand" part="brand"><slot name="brand"></slot></div>
@@ -703,7 +729,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
703
729
  <main id="content" tabindex="-1" part="main"><slot></slot></main>
704
730
  <div class="tab-bar" part="tab-bar"><slot name="tab-bar"></slot></div>
705
731
  </div>
706
- `}};customElements.define("impakt-side-nav",Re);customElements.define("impakt-tab-bar",Ie);customElements.define("impakt-app-shell",_e);function B(n){let e=n?.closest?.("[lang]")?.getAttribute("lang"),i=!e&&n?n.getRootNode?.()?.host?.closest?.("[lang]")?.getAttribute("lang")??"":"",a=typeof document<"u"?document.documentElement?.lang??"":"",o=(e||i||a||"").trim();return!o||o.toLowerCase()==="en"?"en-GB":o}var f={lineSoft:u("color.line.soft","light-dark(#CFCCC5, #2E2E2E)"),ok:u("color.status.ok-mark","#137A52"),bad:u("color.status.bad-mark","light-dark(#B23A2E, #F0978F)"),accent:u("color.accent.default","#FFD43B"),onOk:u("color.status.on-ok","#FFFFFF"),codeSurface:u("color.code.surface","#111111"),codeText:u("color.code.text","#FFFFFF"),codeMuted:u("color.code.muted","#A8A8A6"),inverse:t.text,onInverse:t.surfaceCard,small:u("font.size.sm","0.875rem"),tiny:u("font.size.2xs","0.6875rem"),medium:u("font.weight.medium","500"),regular:u("font.weight.regular","400")};var He=class extends p{static{this.properties={tone:{type:String,reflect:!0},label:{type:String},size:{type:String,reflect:!0},live:{type:Boolean,reflect:!0}}}constructor(){super(),this.tone="neutral",this.label="",this.size="tool",this.live=!1}static{this.styles=[...p.styles,h`
732
+ `}};customElements.define("impakt-side-nav",Ne);customElements.define("impakt-tab-bar",Oe);customElements.define("impakt-app-shell",Pe);function q(n){let e=n?.closest?.("[lang]")?.getAttribute("lang"),i=!e&&n?n.getRootNode?.()?.host?.closest?.("[lang]")?.getAttribute("lang")??"":"",r=typeof document<"u"?document.documentElement?.lang??"":"",s=(e||i||r||"").trim();return!s||s.toLowerCase()==="en"?"en-GB":s}var f={lineSoft:d("color.line.soft","light-dark(#CFCCC5, #2E2E2E)"),ok:d("color.status.ok-mark","#137A52"),bad:d("color.status.bad-mark","light-dark(#B23A2E, #F0978F)"),accent:d("color.accent.default","#FFD43B"),onOk:d("color.status.on-ok","#FFFFFF"),codeSurface:d("color.code.surface","#111111"),codeText:d("color.code.text","#FFFFFF"),codeMuted:d("color.code.muted","#A8A8A6"),inverse:t.text,onInverse:t.surfaceCard,small:d("font.size.sm","0.875rem"),tiny:d("font.size.2xs","0.6875rem"),medium:d("font.weight.medium","500"),regular:d("font.weight.regular","400")};var qe=class extends h{static{this.properties={tone:{type:String,reflect:!0},label:{type:String},size:{type:String,reflect:!0},live:{type:Boolean,reflect:!0}}}constructor(){super(),this.tone="neutral",this.label="",this.size="tool",this.live=!1}static{this.styles=[...h.styles,u`
707
733
  /* A short pill stays on one line; a long one wraps inside its border rather than pushing the page sideways at 320 (1.4.10). */
708
734
  :host {
709
735
  display: inline-flex;
@@ -715,8 +741,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
715
741
  .pill {
716
742
  display: inline-flex;
717
743
  align-items: center;
718
- gap: ${r(1.5)};
719
- padding: 3px ${r(2)};
744
+ gap: ${a(1.5)};
745
+ padding: 3px ${a(2)};
720
746
  font-family: ${t.fontMono};
721
747
  font-size: ${f.small};
722
748
  font-weight: ${f.medium};
@@ -763,47 +789,49 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
763
789
  border-color: CanvasText;
764
790
  }
765
791
  }
766
- `]}get hasDot(){return this.tone==="ok"||this.tone==="bad"||this.tone==="warn"||this.tone==="info"}render(){return s`<span class="pill" part="pill" role=${this.live?"status":l}
767
- >${this.hasDot?s`<span class="dot" part="dot" aria-hidden="true"></span>`:l}<span class="text"><slot>${this.label}</slot></span></span
768
- >`}};customElements.define("impakt-status",He);var ur=["ok","bad","warn","info","neutral","solid"],Be=h`
792
+ `]}get hasDot(){return this.tone==="ok"||this.tone==="bad"||this.tone==="warn"||this.tone==="info"}render(){return o`<span class="pill" part="pill" role=${this.live?"status":l}
793
+ >${this.hasDot?o`<span class="dot" part="dot" aria-hidden="true"></span>`:l}<span class="text"><slot>${this.label}</slot></span></span
794
+ >`}};customElements.define("impakt-status",qe);var yr=["ok","bad","warn","info","neutral","solid"],De=u`
769
795
  .status-pill {
770
796
  flex: none;
771
797
  inline-size: fit-content;
772
798
  }
773
- `,ee=(n,e,i="status")=>{if(!n)return l;let a=ur.includes(e)?e:"neutral";return s`<impakt-status class="status-pill" part=${i} tone=${a} label=${n}></impakt-status>`};var ce=u("color.text.inverse","var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))"),mr=u("font.weight.light","300"),Ne=class extends p{static{this.properties={label:{type:String},value:{type:String},caption:{type:String},href:{type:String},tone:{type:String,reflect:!0},size:{type:String,reflect:!0},status:{type:String},statusTone:{type:String,attribute:"status-tone"}}}constructor(){super(),this.label="",this.value="",this.caption="",this.href="",this.tone="plain",this.size="md",this.status="",this.statusTone="neutral"}static{this.styles=[...p.styles,k,Be,h`
799
+ `,oe=(n,e,i="status")=>{if(!n)return l;let r=yr.includes(e)?e:"neutral";return o`<impakt-status class="status-pill" part=${i} tone=${r} label=${n}></impakt-status>`};var ge=d("color.text.inverse","var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))"),I={padding:d("tile.padding","12px 16px"),gap:d("tile.gap","4px"),minHeight:d("tile.min-height","84px"),align:d("tile.align","stretch"),edgeWidth:d("tile.edge-width","0px"),radius:d("tile.radius","8px"),fill:d("tile.fill","0%"),hover:d("tile.hover","5%"),labelFont:d("tile.label.font","var(--impakt-font-family-body, system-ui, sans-serif)"),labelSize:d("tile.label.size","11px"),labelWeight:d("tile.label.weight","500"),labelTracking:d("tile.label.tracking","0.06em"),labelTransform:d("tile.label.transform","uppercase"),valueSize:d("tile.value.size","34px"),valueStat:d("tile.value.stat","0"),valueLineHeight:d("tile.value.line-height","1.1"),valueTracking:d("tile.value.tracking","0em"),valueWeight:d("tile.value.weight","300"),valueSpace:d("tile.value.space","auto"),lgRadius:d("tile.lg.radius","12px"),lgLabelSize:d("tile.lg.label.size","0.875rem"),lgLabelTracking:d("tile.lg.label.tracking","0em"),lgLabelTransform:d("tile.lg.label.transform","none")},kr=L(`calc(var(--impakt-type-stat-size, 3.25rem) * ${I.valueStat} + ${I.valueSize} * (1 - ${I.valueStat}))`),vr=L(`calc(2.5rem * ${I.valueStat} + ${I.valueSize} * (1 - ${I.valueStat}))`),ji=L(`color-mix(in srgb, ${t.surfaceCard} ${I.fill}, ${t.surfaceInset})`),wr=d("font.weight.light","300"),Fe=class extends h{static{this.properties={label:{type:String},value:{type:String},caption:{type:String},href:{type:String},tone:{type:String,reflect:!0},size:{type:String,reflect:!0},status:{type:String},statusTone:{type:String,attribute:"status-tone"}}}constructor(){super(),this.label="",this.value="",this.caption="",this.href="",this.tone="plain",this.size="md",this.status="",this.statusTone="neutral"}static{this.styles=[...h.styles,k,De,u`
774
800
  :host { display: block; }
775
801
  .tile {
776
802
  box-sizing: border-box;
777
803
  display: flex;
778
804
  flex-direction: column;
779
- align-items: flex-start;
780
- gap: ${r(2.5)};
805
+ align-items: ${I.align};
806
+ gap: ${I.gap};
781
807
  block-size: 100%;
782
- padding: ${r(5)};
783
- border: ${t.borderThin} solid ${t.text};
784
- border-radius: ${t.radius};
785
- background: ${t.surfaceCard};
808
+ min-block-size: ${I.minHeight};
809
+ padding: ${I.padding};
810
+ border: ${I.edgeWidth} solid ${t.text};
811
+ border-radius: ${I.radius};
812
+ background: ${ji};
786
813
  color: ${t.text};
787
814
  text-decoration: none;
788
815
  }
789
- a.tile:hover { background: color-mix(in srgb, ${t.surfaceCard}, ${t.text} 4%); }
790
- .label { font-family: ${t.fontMono}; font-size: ${b("sm")}; font-weight: ${m("regular")}; color: ${t.textMuted}; }
791
- /* G2: Archivo SemiBold 52/1.04, -4%. A word fits as well as a number. */
792
- .value { font-size: var(--impakt-type-stat-size, 3.25rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: ${m("semibold")}; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
816
+ a.tile:hover { background: color-mix(in srgb, ${ji}, ${t.text} ${I.hover}); }
817
+ .label { font-family: ${I.labelFont}; font-size: ${I.labelSize}; font-weight: ${I.labelWeight}; letter-spacing: ${I.labelTracking}; text-transform: ${I.labelTransform}; color: ${t.textMuted}; }
818
+ /* The figure: light at 34px where the brand derives it, or under Noire (G2) Archivo SemiBold 52/1.04, -4%. A word fits as well as a number. */
819
+ .value { margin-block-start: ${I.valueSpace}; font-size: ${kr}; line-height: ${I.valueLineHeight}; letter-spacing: ${I.valueTracking}; font-weight: ${I.valueWeight}; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
793
820
  .caption { font-size: ${b("sm")}; line-height: 1.45; color: ${t.textMuted}; }
794
- :host([size='lg']) .tile { min-block-size: 200px; padding: ${r(6)}; }
795
- :host([size='lg']) .value { margin-block-start: auto; font-size: 64px; line-height: 1; font-weight: ${mr}; }
821
+ :host([size='lg']) .tile { min-block-size: 200px; padding: ${a(6)}; border-radius: ${I.lgRadius}; }
822
+ :host([size='lg']) .label { font-size: ${I.lgLabelSize}; letter-spacing: ${I.lgLabelTracking}; text-transform: ${I.lgLabelTransform}; }
823
+ :host([size='lg']) .value { margin-block-start: auto; font-size: 64px; line-height: 1; font-weight: ${wr}; }
796
824
  :host([tone='brand']) .tile { background: ${t.brand}; color: ${t.onBrand}; border-color: ${t.brand}; }
797
825
  :host([tone='brand']) a.tile:hover { background: ${t.brandHover}; }
798
826
  :host([tone='brand']) .label, :host([tone='brand']) .caption { color: ${t.onBrand}; }
799
- @media (max-width: 40rem) { .value { font-size: 2.5rem; } }
827
+ @media (max-width: 40rem) { .value { font-size: ${vr}; } }
800
828
  @media (forced-colors: active) { .tile { border: 1px solid CanvasText; } }
801
- `]}render(){let e=s`
829
+ `]}render(){let e=o`
802
830
  <span class="label" part="label">${this.label}</span>
803
831
  <span class="value" part="value">${this.value}</span>
804
- ${this.caption?s`<span class="caption" part="caption">${this.caption}</span>`:l}
805
- ${ee(this.status,this.statusTone)}
806
- `;return this.href?s`<a class="tile" href=${this.href} part="tile">${e}</a>`:s`<div class="tile" part="tile">${e}</div>`}},Oe=class extends p{static{this.properties={date:{type:String},tone:{type:String,reflect:!0}}}constructor(){super(),this.date="",this.tone="brand"}static{this.styles=[...p.styles,h`
832
+ ${this.caption?o`<span class="caption" part="caption">${this.caption}</span>`:l}
833
+ ${oe(this.status,this.statusTone)}
834
+ `;return this.href?o`<a class="tile" href=${this.href} part="tile">${e}</a>`:o`<div class="tile" part="tile">${e}</div>`}},je=class extends h{static{this.properties={date:{type:String},tone:{type:String,reflect:!0}}}constructor(){super(),this.date="",this.tone="brand"}static{this.styles=[...h.styles,u`
807
835
  :host { display: inline-block; flex: none; }
808
836
  time {
809
837
  position: relative;
@@ -821,18 +849,18 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
821
849
  }
822
850
  :host([tone='plain']) time { background: ${t.surfaceInset}; color: ${t.text}; }
823
851
  .month { font-size: 10px; font-weight: ${m("medium")}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; }
824
- .day { margin-block-start: ${r(1)}; font-size: 20px; font-weight: ${m("medium")}; font-variant-numeric: tabular-nums; }
852
+ .day { margin-block-start: ${a(1)}; font-size: 20px; font-weight: ${m("medium")}; font-variant-numeric: tabular-nums; }
825
853
  .sr-only { ${T} }
826
854
  @media (forced-colors: active) { time { border: 1px solid CanvasText; } }
827
- `]}parts(){let e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(this.date??"");if(!e)return null;let i=new Date(Date.UTC(Number(e[1]),Number(e[2])-1,Number(e[3]),12));if(Number.isNaN(i.getTime()))return null;let a=B(this),o=d=>new Intl.DateTimeFormat(a,{...d,timeZone:"UTC"}).format(i);return{month:o({month:"short"}).replace(".",""),day:o({day:"numeric"}),full:o({day:"numeric",month:"long",year:"numeric"})}}render(){let e=this.parts();return e?s`<time datetime=${this.date} part="tile">
855
+ `]}parts(){let e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(this.date??"");if(!e)return null;let i=new Date(Date.UTC(Number(e[1]),Number(e[2])-1,Number(e[3]),12));if(Number.isNaN(i.getTime()))return null;let r=q(this),s=c=>new Intl.DateTimeFormat(r,{...c,timeZone:"UTC"}).format(i);return{month:s({month:"short"}).replace(".",""),day:s({day:"numeric"}),full:s({day:"numeric",month:"long",year:"numeric"})}}render(){let e=this.parts();return e?o`<time datetime=${this.date} part="tile">
828
856
  <span class="month" aria-hidden="true">${e.month}</span>
829
857
  <span class="day" aria-hidden="true">${e.day}</span>
830
858
  <span class="sr-only">${e.full}</span>
831
- </time>`:s`${l}`}},Pe=class extends p{constructor(){super();this.filled={start:!1,end:!1};this.selected=!1,this.heading="",this.meta="",this.href="",this.divided=!1,this.muted=!1}static{this.properties={heading:{type:String},meta:{type:String},href:{type:String},divided:{type:Boolean,reflect:!0},muted:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0}}}static{this.styles=[...p.styles,k,h`
859
+ </time>`:o`${l}`}},Ue=class extends h{constructor(){super();this.filled={start:!1,end:!1};this.selected=!1,this.heading="",this.meta="",this.href="",this.divided=!1,this.muted=!1}static{this.properties={heading:{type:String},meta:{type:String},href:{type:String},divided:{type:Boolean,reflect:!0},muted:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0}}}static{this.styles=[...h.styles,k,u`
832
860
  :host { display: block; }
833
861
  :host([divided]) .row { border-block-start: ${t.borderThin} solid ${t.hairline}; }
834
- .row { position: relative; display: flex; align-items: center; gap: ${r(3)}; padding-block: ${r(3)}; }
835
- .text { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: ${r(.5)}; }
862
+ .row { position: relative; display: flex; align-items: center; gap: ${a(3)}; padding-block: ${a(3)}; }
863
+ .text { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: ${a(.5)}; }
836
864
  .title { font-size: ${b("md")}; font-weight: ${m("medium")}; color: ${t.text}; }
837
865
  :host([muted]) .title { color: ${t.textMuted}; font-weight: ${m("regular")}; }
838
866
  /* The meta is a label: the code face where the brand sets its labels in one, as G2 does (36:452, 37:646). */
@@ -843,21 +871,21 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
843
871
  a:focus-visible { outline: none; }
844
872
  a:focus-visible::after { box-shadow: ${t.focusShadow}; }
845
873
  .row:has(a):hover .title { text-decoration: underline; text-underline-offset: 0.2em; }
846
- .start, .end { flex: none; display: flex; align-items: center; gap: ${r(2)}; }
874
+ .start, .end { flex: none; display: flex; align-items: center; gap: ${a(2)}; }
847
875
  .start.empty, .end.empty { display: none; }
848
876
  /* Controls at the end stay pressable above the stretched link. */
849
877
  .end { position: relative; z-index: 1; }
850
878
  .chevron { flex: none; color: ${t.textMuted}; }
851
- :host([selected]) .row { padding-inline: ${r(4)}; background: ${t.text}; --impakt-color-text-default: ${ce}; --impakt-color-text-muted: color-mix(in srgb, ${ce} 72%, ${t.text}); --impakt-color-text-inverse: ${t.text}; }
852
- :host([selected]) :is(.title, .meta, .chevron) { color: ${ce}; }
853
- :host([selected]) .meta, :host([selected]) .chevron { color: color-mix(in srgb, ${ce} 72%, ${t.text}); }
879
+ :host([selected]) .row { padding-inline: ${a(4)}; background: ${t.text}; --impakt-color-text-default: ${ge}; --impakt-color-text-muted: color-mix(in srgb, ${ge} 72%, ${t.text}); --impakt-color-text-inverse: ${t.text}; }
880
+ :host([selected]) :is(.title, .meta, .chevron) { color: ${ge}; }
881
+ :host([selected]) .meta, :host([selected]) .chevron { color: color-mix(in srgb, ${ge} 72%, ${t.text}); }
854
882
  @media (forced-colors: active) { :host([selected]) .row { outline: 2px solid Highlight; } }
855
- `]}onSlot(i){let a=i.target,o=a.name;this.filled={...this.filled,[o]:a.assignedNodes({flatten:!0}).some(d=>d.nodeType===Node.ELEMENT_NODE||(d.textContent??"").trim()!=="")},this.requestUpdate()}render(){let i=this.href?s`<a class="title" href=${this.href} part="link">${this.heading}</a>`:s`<span class="title" part="title">${this.heading}</span>`;return s`<div class="row" part="row" aria-current=${this.selected?"true":l}>
883
+ `]}onSlot(i){let r=i.target,s=r.name;this.filled={...this.filled,[s]:r.assignedNodes({flatten:!0}).some(c=>c.nodeType===Node.ELEMENT_NODE||(c.textContent??"").trim()!=="")},this.requestUpdate()}render(){let i=this.href?o`<a class="title" href=${this.href} part="link">${this.heading}</a>`:o`<span class="title" part="title">${this.heading}</span>`;return o`<div class="row" part="row" aria-current=${this.selected?"true":l}>
856
884
  <div class="start ${this.filled.start?"":"empty"}"><slot name="start" @slotchange=${this.onSlot}></slot></div>
857
- <div class="text">${i}${this.meta?s`<span class="meta" part="meta">${this.meta}</span>`:l}</div>
885
+ <div class="text">${i}${this.meta?o`<span class="meta" part="meta">${this.meta}</span>`:l}</div>
858
886
  <div class="end ${this.filled.end?"":"empty"}"><slot name="end" @slotchange=${this.onSlot}></slot></div>
859
- ${this.href&&!this.selected?s`<span class="chevron" aria-hidden="true">${M("chevron-right","20px")}</span>`:l}
860
- </div>`}},De=class extends p{static{this.properties={label:{type:String},count:{type:Number},countLabel:{type:String,attribute:"count-label"},pressed:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}}}constructor(){super(),this.label="",this.count=void 0,this.countLabel="",this.pressed=!1,this.disabled=!1}static{this.styles=[...p.styles,k,A("button"),h`
887
+ ${this.href&&!this.selected?o`<span class="chevron" aria-hidden="true">${M("chevron-right","20px")}</span>`:l}
888
+ </div>`}},We=class extends h{static{this.properties={label:{type:String},count:{type:Number},countLabel:{type:String,attribute:"count-label"},pressed:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}}}constructor(){super(),this.label="",this.count=void 0,this.countLabel="",this.pressed=!1,this.disabled=!1}static{this.styles=[...h.styles,k,C("button"),u`
861
889
  :host { display: inline-block; }
862
890
  /* The containing block for the words kept for screen readers, so a control scrolled out of a row cannot widen the page. */
863
891
  button {
@@ -865,35 +893,36 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
865
893
  position: relative;
866
894
  display: inline-flex;
867
895
  align-items: center;
868
- gap: ${r(2)};
869
- min-block-size: 35px;
870
- padding: 0 ${r(3.5)};
896
+ gap: ${a(2)};
897
+ /* 36px with a hairline edge and medium words, or under Noire 35px with an ink edge (filter-chip.* tokens). */
898
+ min-block-size: ${d("filter-chip.height","36px")};
899
+ padding: 0 ${a(3.5)};
871
900
  font: inherit;
872
901
  font-size: ${b("sm")};
873
- font-weight: ${m("regular")};
902
+ font-weight: ${d("filter-chip.weight","500")};
874
903
  color: ${t.text};
875
904
  background: ${t.surfaceCard};
876
- border: ${t.borderThin} solid ${t.text};
905
+ border: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${d("filter-chip.edge","10%")}, transparent);
877
906
  border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
878
907
  cursor: pointer;
879
908
  white-space: nowrap;
880
909
  }
881
910
  button:hover:not(:disabled) { background: ${t.surfaceInset}; }
882
- button[aria-pressed='true'] { background: ${t.text}; color: ${ce}; border-color: ${t.text}; }
911
+ button[aria-pressed='true'] { background: ${t.text}; color: ${ge}; border-color: ${t.text}; }
883
912
  button:disabled { cursor: not-allowed; opacity: 0.5; }
884
913
  .count { font-variant-numeric: tabular-nums; color: ${t.textMuted}; }
885
914
  button[aria-pressed='true'] .count { color: inherit; opacity: 0.8; }
886
915
  .sr-only { ${T} }
887
916
  @media (forced-colors: active) { button[aria-pressed='true'] { border: 2px solid Highlight; } }
888
- `]}toggle(){this.disabled||(this.pressed=!this.pressed,this.dispatchEvent(new CustomEvent("impakt-change",{detail:{pressed:this.pressed},bubbles:!0,composed:!0})))}render(){let e=typeof this.count=="number"&&!Number.isNaN(this.count);return s`<button type="button" part="button" aria-pressed=${this.pressed?"true":"false"} ?disabled=${this.disabled} @click=${this.toggle}>
917
+ `]}toggle(){this.disabled||(this.pressed=!this.pressed,this.dispatchEvent(new CustomEvent("impakt-change",{detail:{pressed:this.pressed},bubbles:!0,composed:!0})))}render(){let e=typeof this.count=="number"&&!Number.isNaN(this.count);return o`<button type="button" part="button" aria-pressed=${this.pressed?"true":"false"} ?disabled=${this.disabled} @click=${this.toggle}>
889
918
  <span>${this.label}</span>
890
- ${e?this.countLabel?s`<span class="count" aria-hidden="true">${this.count}</span><span class="sr-only">${this.countLabel}</span>`:s`<span class="count">${this.count}</span>`:l}
891
- </button>`}};customElements.define("impakt-stat-tile",Ne);customElements.define("impakt-date-tile",Oe);customElements.define("impakt-row",Pe);customElements.define("impakt-filter-chip",De);var Fe=class extends x{static{this.properties={...x.properties,checked:{type:Boolean,reflect:!0},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0}}}constructor(){super(),this.checked=!1,this.hideLabel=!1}static{this.styles=[...x.styles,A(".row"),h`
919
+ ${e?this.countLabel?o`<span class="count" aria-hidden="true">${this.count}</span><span class="sr-only">${this.countLabel}</span>`:o`<span class="count">${this.count}</span>`:l}
920
+ </button>`}};customElements.define("impakt-stat-tile",Fe);customElements.define("impakt-date-tile",je);customElements.define("impakt-row",Ue);customElements.define("impakt-filter-chip",We);var Ve=class extends x{static{this.properties={...x.properties,checked:{type:Boolean,reflect:!0},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0}}}constructor(){super(),this.checked=!1,this.hideLabel=!1}static{this.styles=[...x.styles,C(".row"),u`
892
921
  .row {
893
922
  display: flex;
894
923
  align-items: center;
895
924
  justify-content: space-between;
896
- gap: ${r(3)};
925
+ gap: ${a(3)};
897
926
  cursor: pointer;
898
927
  }
899
928
  .text {
@@ -966,10 +995,10 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
966
995
  .knob { background: CanvasText; }
967
996
  :host([checked]) .track { background: Highlight; }
968
997
  }
969
- `]}renderControl(){return s`
998
+ `]}renderControl(){return o`
970
999
  <label class="row" part="row" for=${this.controlId}>
971
1000
  <span class="text">
972
- ${this.label}${this.required?s`<span class="required"> (${this.requiredText})</span>`:l}
1001
+ ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
973
1002
  </span>
974
1003
  <span class="control">
975
1004
  <input
@@ -989,7 +1018,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
989
1018
  <span class="track" part="track"><span class="knob" part="knob"></span></span>
990
1019
  </span>
991
1020
  </label>
992
- `}changeDetail(e){return{value:e,checked:this.checked}}renderLabel(){return s`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},qe=class extends x{static{this.properties={...x.properties,options:{type:Array},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0},full:{type:Boolean,reflect:!0}}}constructor(){super(),this.options=[],this.hideLabel=!1,this.full=!1}static{this.styles=[...x.styles,h`
1021
+ `}changeDetail(e){return{value:e,checked:this.checked}}renderLabel(){return o`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Ke=class extends x{static{this.properties={...x.properties,options:{type:Array},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0},full:{type:Boolean,reflect:!0}}}constructor(){super(),this.options=[],this.hideLabel=!1,this.full=!1}static{this.styles=[...x.styles,u`
993
1022
  fieldset {
994
1023
  border: 0;
995
1024
  margin: 0;
@@ -1004,8 +1033,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1004
1033
  }
1005
1034
  .segments {
1006
1035
  display: inline-flex;
1007
- gap: ${r(1)};
1008
- padding: ${r(1)};
1036
+ gap: ${a(1)};
1037
+ padding: ${a(1)};
1009
1038
  border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
1010
1039
  background: ${t.surfaceInset};
1011
1040
  }
@@ -1035,7 +1064,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1035
1064
  justify-content: center;
1036
1065
  inline-size: 100%;
1037
1066
  min-block-size: 32px;
1038
- padding: ${r(1.5)} ${r(4)};
1067
+ padding: ${a(1.5)} ${a(4)};
1039
1068
  border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
1040
1069
  font-size: ${b("sm")};
1041
1070
  font-weight: ${m("medium")};
@@ -1067,15 +1096,15 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1067
1096
  .segments { border: 1px solid CanvasText; }
1068
1097
  input:checked + .face { border: 2px solid Highlight; }
1069
1098
  }
1070
- `]}renderLabel(){return s`<legend class="label" part="label">
1071
- ${this.label}${this.required?s`<span class="required"> (${this.requiredText})</span>`:l}
1072
- </legend>`}renderControl(){return s`
1099
+ `]}renderLabel(){return o`<legend class="label" part="label">
1100
+ ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
1101
+ </legend>`}renderControl(){return o`
1073
1102
  <div class="segments" part="segments">
1074
- ${this.options.map((e,i)=>{let a=this.id_(`seg-${i}`);return s`
1075
- <label class="segment" part="segment" for=${a}>
1103
+ ${this.options.map((e,i)=>{let r=this.id_(`seg-${i}`);return o`
1104
+ <label class="segment" part="segment" for=${r}>
1076
1105
  <input
1077
1106
  type="radio"
1078
- id=${a}
1107
+ id=${r}
1079
1108
  name=${this.uid}
1080
1109
  value=${e.value}
1081
1110
  .checked=${this.value===e.value}
@@ -1087,18 +1116,18 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1087
1116
  </label>
1088
1117
  `})}
1089
1118
  </div>
1090
- `}render(){return s`
1119
+ `}render(){return o`
1091
1120
  <fieldset
1092
1121
  part="fieldset"
1093
1122
  aria-describedby=${this.describedBy}
1094
1123
  aria-invalid=${this.error?"true":l}
1095
1124
  >
1096
1125
  ${this.renderLabel()}
1097
- ${this.description?s`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
1126
+ ${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
1098
1127
  ${this.renderControl()}
1099
1128
  <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
1100
1129
  </fieldset>
1101
- `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-switch",Fe);customElements.define("impakt-segmented-control",qe);var je=class extends x{static{this.properties={...x.properties,options:{type:Array}}}constructor(){super(),this.options=[]}static{this.styles=[...x.styles,h`
1130
+ `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-switch",Ve);customElements.define("impakt-segmented-control",Ke);var Ge=class extends x{static{this.properties={...x.properties,options:{type:Array}}}constructor(){super(),this.options=[]}static{this.styles=[...x.styles,u`
1102
1131
  fieldset {
1103
1132
  border: 0;
1104
1133
  margin: 0;
@@ -1111,11 +1140,11 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1111
1140
  .option {
1112
1141
  display: flex;
1113
1142
  align-items: flex-start;
1114
- gap: ${r(3)};
1115
- padding: ${r(3)};
1143
+ gap: ${a(3)};
1144
+ padding: ${a(3)};
1116
1145
  border: ${t.borderThin} solid ${t.border};
1117
1146
  border-radius: ${t.radius};
1118
- margin-block-end: ${r(2)};
1147
+ margin-block-end: ${a(2)};
1119
1148
  cursor: pointer;
1120
1149
  }
1121
1150
  .option:hover {
@@ -1139,41 +1168,41 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1139
1168
  display: block;
1140
1169
  font-size: ${b("sm")};
1141
1170
  color: ${t.textMuted};
1142
- margin-block-start: ${r(1)};
1171
+ margin-block-start: ${a(1)};
1143
1172
  }
1144
1173
  :host([invalid]) .option {
1145
1174
  border-color: ${t.danger};
1146
1175
  }
1147
- `]}renderLabel(){return s`<legend class="label" part="label">
1148
- ${this.label}${this.required?s`<span class="required"> (${this.requiredText})</span>`:l}
1149
- </legend>`}renderControl(){return s`
1150
- ${this.options.map((e,i)=>{let a=this.id_(`opt-${i}`),o=e.description?this.id_(`opt-${i}-desc`):void 0;return s`
1151
- <label class="option" part="option" for=${a}>
1176
+ `]}renderLabel(){return o`<legend class="label" part="label">
1177
+ ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
1178
+ </legend>`}renderControl(){return o`
1179
+ ${this.options.map((e,i)=>{let r=this.id_(`opt-${i}`),s=e.description?this.id_(`opt-${i}-desc`):void 0;return o`
1180
+ <label class="option" part="option" for=${r}>
1152
1181
  <input
1153
1182
  type="radio"
1154
- id=${a}
1183
+ id=${r}
1155
1184
  name=${this.uid}
1156
1185
  value=${e.value}
1157
1186
  .checked=${this.value===e.value}
1158
1187
  ?disabled=${this.disabled}
1159
1188
  ?required=${this.required&&i===0}
1160
- aria-describedby=${o??l}
1189
+ aria-describedby=${s??l}
1161
1190
  @change=${()=>this.setFormValue(e.value)}
1162
1191
  />
1163
1192
  <span>
1164
1193
  <span class="option-text">${e.label}</span>
1165
- ${e.description?s`<span class="option-description" id=${o}>${e.description}</span>`:l}
1194
+ ${e.description?o`<span class="option-description" id=${s}>${e.description}</span>`:l}
1166
1195
  </span>
1167
1196
  </label>
1168
1197
  `})}
1169
- `}render(){return s`
1198
+ `}render(){return o`
1170
1199
  <fieldset
1171
1200
  part="fieldset"
1172
1201
  aria-describedby=${this.describedBy}
1173
1202
  aria-invalid=${this.error?"true":l}
1174
1203
  >
1175
1204
  ${this.renderLabel()}
1176
- ${this.description?s`<div class="description" id=${this.id_("description")} part="description">
1205
+ ${this.description?o`<div class="description" id=${this.id_("description")} part="description">
1177
1206
  ${this.description}
1178
1207
  </div>`:l}
1179
1208
  ${this.renderControl()}
@@ -1181,13 +1210,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1181
1210
  ${this.error||l}
1182
1211
  </div>
1183
1212
  </fieldset>
1184
- `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-radio-group",je);var Ue=class n extends p{constructor(){super();this.hasActions=!1;this.tone="info",this.heading="",this.toneLabel="",this.label="",this.noLabel=!1}static{this.properties={tone:{type:String,reflect:!0},heading:{type:String},toneLabel:{type:String,attribute:"tone-label"},label:{type:String},noLabel:{type:Boolean,attribute:"no-label"}}}static{this.TONE_WORDS={info:"Information",success:"Success",warning:"Warning",danger:"Error",attention:"Warning"}}static{this.styles=[...p.styles,h`
1213
+ `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-radio-group",Ge);var Xe=class n extends h{constructor(){super();this.hasActions=!1;this.tone="info",this.heading="",this.toneLabel="",this.label="",this.noLabel=!1}static{this.properties={tone:{type:String,reflect:!0},heading:{type:String},toneLabel:{type:String,attribute:"tone-label"},label:{type:String},noLabel:{type:Boolean,attribute:"no-label"}}}static{this.TONE_WORDS={info:"Information",success:"Success",warning:"Warning",danger:"Error",attention:"Warning"}}static{this.styles=[...h.styles,u`
1185
1214
  :host {
1186
1215
  display: block;
1187
- margin-block-end: ${r(4)};
1216
+ margin-block-end: ${a(4)};
1188
1217
  }
1189
1218
  .alert {
1190
- padding: ${r(4)} ${r(5)};
1219
+ padding: ${a(4)} ${a(5)};
1191
1220
  border-radius: ${t.radiusLg};
1192
1221
  border-inline-start: 4px solid;
1193
1222
  box-shadow: inset 0 0 0 1px ${t.hairline};
@@ -1196,7 +1225,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1196
1225
  }
1197
1226
  .heading {
1198
1227
  font-weight: ${m("semibold")};
1199
- margin-block-end: ${r(1)};
1228
+ margin-block-end: ${a(1)};
1200
1229
  }
1201
1230
  :host([tone='info']) .alert {
1202
1231
  background: ${t.infoSubtle};
@@ -1223,27 +1252,27 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1223
1252
  display: flex;
1224
1253
  flex-wrap: wrap;
1225
1254
  align-items: center;
1226
- gap: ${r(3)};
1227
- padding: ${r(3.5)} ${r(4)};
1228
- border: ${t.borderThin} solid ${u("color.accent.on","#111111")};
1255
+ gap: ${a(3)};
1256
+ padding: ${a(3.5)} ${a(4)};
1257
+ border: ${t.borderThin} solid ${d("color.accent.on","#111111")};
1229
1258
  border-radius: ${t.radius};
1230
1259
  box-shadow: none;
1231
- background: ${u("color.accent.default","#ffd43b")};
1232
- color: ${u("color.accent.on","#111111")};
1260
+ background: ${d("color.accent.default","#ffd43b")};
1261
+ color: ${d("color.accent.on","#111111")};
1233
1262
  font-size: ${b("md")};
1234
1263
  line-height: 1.4;
1235
1264
  /* What sits on the yellow is drawn in the ink, whatever the band round it says. */
1236
- --impakt-color-text-default: ${u("color.accent.on","#111111")};
1237
- --impakt-color-text-inverse: ${u("color.accent.default","#ffd43b")};
1265
+ --impakt-color-text-default: ${d("color.accent.on","#111111")};
1266
+ --impakt-color-text-inverse: ${d("color.accent.default","#ffd43b")};
1238
1267
  }
1239
1268
  .tag {
1240
1269
  flex: none;
1241
- padding: 3px ${r(2)};
1270
+ padding: 3px ${a(2)};
1242
1271
  font-family: ${t.fontMono};
1243
1272
  font-size: ${b("sm")};
1244
1273
  line-height: 1.3;
1245
- background: ${u("color.accent.on","#111111")};
1246
- color: ${u("color.accent.default","#ffd43b")};
1274
+ background: ${d("color.accent.on","#111111")};
1275
+ color: ${d("color.accent.default","#ffd43b")};
1247
1276
  }
1248
1277
  .words {
1249
1278
  flex: 1 1 16rem;
@@ -1253,7 +1282,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1253
1282
  flex: none;
1254
1283
  display: flex;
1255
1284
  flex-wrap: wrap;
1256
- gap: ${r(2)};
1285
+ gap: ${a(2)};
1257
1286
  margin-inline-start: auto;
1258
1287
  }
1259
1288
  .actions.empty {
@@ -1268,34 +1297,34 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1268
1297
  border-inline-start-width: 4px;
1269
1298
  }
1270
1299
  }
1271
- `]}onActions(i){let a=i.target;this.hasActions=a.assignedElements({flatten:!0}).length>0,this.requestUpdate()}render(){if(this.tone==="attention"){let a=this.label||S("Check");return s`
1300
+ `]}onActions(i){let r=i.target;this.hasActions=r.assignedElements({flatten:!0}).length>0,this.requestUpdate()}render(){if(this.tone==="attention"){let r=this.label||S("Check");return o`
1272
1301
  <div class="alert" part="alert" role="status">
1273
- ${this.noLabel?l:s`<span class="tag" part="label">${a}</span>`}
1302
+ ${this.noLabel?l:o`<span class="tag" part="label">${r}</span>`}
1274
1303
  <div class="words" part="body">
1275
- ${this.heading?s`<div class="heading" part="heading">${this.heading}</div>`:l}
1304
+ ${this.heading?o`<div class="heading" part="heading">${this.heading}</div>`:l}
1276
1305
  <slot></slot>
1277
1306
  </div>
1278
1307
  <div class="actions ${this.hasActions?"":"empty"}" part="actions"><slot name="actions" @slotchange=${this.onActions}></slot></div>
1279
1308
  </div>
1280
- `}let i=this.toneLabel||S(n.TONE_WORDS[this.tone]);return s`
1309
+ `}let i=this.toneLabel||S(n.TONE_WORDS[this.tone]);return o`
1281
1310
  <div
1282
1311
  class="alert"
1283
1312
  part="alert"
1284
1313
  role=${this.tone==="danger"?"alert":"status"}
1285
1314
  aria-label=${this.heading?l:i}
1286
1315
  >
1287
- ${this.heading?s`<div class="heading" part="heading">
1316
+ ${this.heading?o`<div class="heading" part="heading">
1288
1317
  <span class="tone-word">${i}:</span> ${this.heading}
1289
1318
  </div>`:l}
1290
1319
  <slot></slot>
1291
1320
  </div>
1292
- `}};customElements.define("impakt-alert",Ue);var We=class extends p{static{this.properties={gap:{type:String,reflect:!0},align:{type:String,reflect:!0},direction:{type:String,reflect:!0},justify:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.gap="md",this.align="stretch",this.direction="vertical",this.justify="start",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...p.styles,I,h`
1321
+ `}};customElements.define("impakt-alert",Xe);var Ye=class extends h{static{this.properties={gap:{type:String,reflect:!0},align:{type:String,reflect:!0},direction:{type:String,reflect:!0},justify:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.gap="md",this.align="stretch",this.direction="vertical",this.justify="start",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,u`
1293
1322
  :host {
1294
1323
  display: flex;
1295
1324
  flex-direction: column;
1296
1325
  }
1297
1326
  :host([gap='none']) { gap: 0; }
1298
- :host([gap='xs']) { gap: ${r(1)}; }
1327
+ :host([gap='xs']) { gap: ${a(1)}; }
1299
1328
  :host([align='start']) { align-items: flex-start; }
1300
1329
  :host([align='center']) { align-items: center; text-align: center; }
1301
1330
  :host([align='end']) { align-items: flex-end; }
@@ -1306,18 +1335,19 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1306
1335
  :host([justify='center']) { justify-content: center; }
1307
1336
  :host([justify='end']) { justify-content: flex-end; }
1308
1337
  :host([justify='between']) { justify-content: space-between; }
1309
- :host([gap='sm']) { gap: ${r(2)}; }
1310
- :host([gap='md']) { gap: ${r(4)}; }
1311
- :host([gap='lg']) { gap: ${r(6)}; }
1312
- :host([gap='xl']) { gap: ${r(8)}; }
1313
- `]}render(){return s`<slot></slot>`}},Ve=class extends p{static{this.properties={tone:{type:String,reflect:!0},padding:{type:String,reflect:!0},imageSrc:{type:String,attribute:"image-src"},imageAlt:{type:String,attribute:"image-alt"},ratio:{type:String,reflect:!0},badge:{type:String},raised:{type:Boolean,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.tone="default",this.padding="lg",this.imageSrc="",this.imageAlt="",this.ratio="16:9",this.badge="",this.raised=!1,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...p.styles,I,h`
1338
+ :host([gap='sm']) { gap: ${a(2)}; }
1339
+ :host([gap='md']) { gap: ${a(4)}; }
1340
+ :host([gap='lg']) { gap: ${a(6)}; }
1341
+ :host([gap='xl']) { gap: ${a(8)}; }
1342
+ `]}render(){return o`<slot></slot>`}},Je=class extends h{static{this.properties={tone:{type:String,reflect:!0},padding:{type:String,reflect:!0},imageSrc:{type:String,attribute:"image-src"},imageAlt:{type:String,attribute:"image-alt"},ratio:{type:String,reflect:!0},badge:{type:String},raised:{type:Boolean,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.tone="default",this.padding="lg",this.imageSrc="",this.imageAlt="",this.ratio="16:9",this.badge="",this.raised=!1,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,u`
1314
1343
  :host {
1315
1344
  display: flex;
1316
1345
  flex-direction: column;
1317
1346
  background: ${t.surfaceCard};
1318
- border: ${t.borderThin} solid ${t.text};
1347
+ /* A hairline edge and a soft shadow, or under Noire an ink edge and none (card.edge, shadow.sm). The edge is mixed here, so a band that repaints the text repaints it. */
1348
+ border: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${d("card.edge","10%")}, transparent);
1319
1349
  border-radius: ${t.radiusXl};
1320
- box-shadow: none;
1350
+ box-shadow: ${t.shadowSm};
1321
1351
  overflow: hidden;
1322
1352
  --ratio: 16 / 9;
1323
1353
  }
@@ -1333,22 +1363,22 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1333
1363
  :host([ratio='4:3']) { --ratio: 4 / 3; }
1334
1364
  :host([ratio='3:2']) { --ratio: 3 / 2; }
1335
1365
  :host([ratio='1:1']) { --ratio: 1 / 1; }
1336
- .body { padding: ${r(6)}; flex: 1; display: flex; flex-direction: column; }
1366
+ .body { padding: ${a(6)}; flex: 1; display: flex; flex-direction: column; }
1337
1367
  :host([padding='none']) .body { padding: 0; }
1338
- :host([padding='sm']) .body { padding: ${r(3)}; }
1339
- :host([padding='md']) .body { padding: ${r(4)}; }
1368
+ :host([padding='sm']) .body { padding: ${a(3)}; }
1369
+ :host([padding='md']) .body { padding: ${a(4)}; }
1340
1370
  :host([tone='plain']) .body { padding-inline: 0; }
1341
1371
  img { display: block; inline-size: 100%; aspect-ratio: var(--ratio); object-fit: cover; }
1342
1372
  .picture { position: relative; }
1343
- .tag { position: absolute; inset-block-start: ${r(4)}; inset-inline-start: ${r(4)}; padding: ${r(1.5)} ${r(3)}; font-size: ${b("sm")}; color: ${t.text}; background: ${t.surfaceCard}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); }
1373
+ .tag { position: absolute; inset-block-start: ${a(4)}; inset-inline-start: ${a(4)}; padding: ${a(1.5)} ${a(3)}; font-size: ${b("sm")}; color: ${t.text}; background: ${t.surfaceCard}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); }
1344
1374
  @media (forced-colors: active) { :host { border-color: CanvasText; } }
1345
- `]}render(){return s`${this.imageSrc?s`<div class="picture"><img src=${this.imageSrc} alt=${this.imageAlt} part="image" />${this.badge?s`<span class="tag">${this.badge}</span>`:l}</div>`:l}<div class="body" part="body"><slot></slot></div>`}},Ke=class extends p{static{this.properties={level:{type:Number,reflect:!0},size:{type:String,reflect:!0},eyebrow:{type:String,reflect:!0},align:{type:String,reflect:!0},screenReaderOnly:{type:Boolean,reflect:!0,attribute:"screen-reader-only"}}}constructor(){super(),this.level=2,this.size="xl",this.eyebrow="",this.align="start",this.screenReaderOnly=!1}static{this.styles=[...p.styles,h`
1375
+ `]}render(){return o`${this.imageSrc?o`<div class="picture"><img src=${this.imageSrc} alt=${this.imageAlt} part="image" />${this.badge?o`<span class="tag">${this.badge}</span>`:l}</div>`:l}<div class="body" part="body"><slot></slot></div>`}},Ze=class extends h{static{this.properties={level:{type:Number,reflect:!0},size:{type:String,reflect:!0},eyebrow:{type:String,reflect:!0},align:{type:String,reflect:!0},screenReaderOnly:{type:Boolean,reflect:!0,attribute:"screen-reader-only"}}}constructor(){super(),this.level=2,this.size="xl",this.eyebrow="",this.align="start",this.screenReaderOnly=!1}static{this.styles=[...h.styles,u`
1346
1376
  :host {
1347
1377
  display: block;
1348
1378
  color: ${t.textHeading};
1349
1379
  font-family: ${t.fontHeading};
1350
1380
  font-weight: ${m("bold")};
1351
- line-height: ${H("tight")};
1381
+ line-height: ${P("tight")};
1352
1382
  }
1353
1383
  :host([size='5xl']) { ${w("5xl")} letter-spacing: ${t.trackingTight}; }
1354
1384
  :host([size='4xl']) { ${w("4xl")} letter-spacing: ${t.trackingTight}; }
@@ -1370,7 +1400,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1370
1400
  :host([screen-reader-only]:not([eyebrow])) { ${T} }
1371
1401
  .eyebrow {
1372
1402
  display: block;
1373
- margin-block-end: ${r(2)};
1403
+ margin-block-end: ${a(2)};
1374
1404
  color: var(--impakt-eyebrow, var(--impakt-color-text-eyebrow, ${t.brand}));
1375
1405
  font-family: var(--impakt-font-family-eyebrow, ${t.fontBody});
1376
1406
  font-size: var(--impakt-font-size-eyebrow, ${b("sm")});
@@ -1378,14 +1408,14 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1378
1408
  letter-spacing: 0.06em;
1379
1409
  text-transform: uppercase;
1380
1410
  }
1381
- `]}render(){return s`<div class="h" role="heading" aria-level=${this.level} part="heading">
1382
- ${this.eyebrow?s`<span class="eyebrow" part="eyebrow">${this.eyebrow}<span style="position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)">: </span></span>`:l}<span class="words"><slot></slot></span>
1383
- </div>`}},Ge=class extends p{static{this.properties={size:{type:String,reflect:!0},tone:{type:String,reflect:!0},align:{type:String,reflect:!0},look:{type:String,reflect:!0}}}constructor(){super(),this.size="md",this.tone="default",this.align="start",this.look="prose"}static{this.styles=[...p.styles,h`
1411
+ `]}render(){return o`<div class="h" role="heading" aria-level=${this.level} part="heading">
1412
+ ${this.eyebrow?o`<span class="eyebrow" part="eyebrow">${this.eyebrow}<span style="position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)">: </span></span>`:l}<span class="words"><slot></slot></span>
1413
+ </div>`}},Qe=class extends h{static{this.properties={size:{type:String,reflect:!0},tone:{type:String,reflect:!0},align:{type:String,reflect:!0},look:{type:String,reflect:!0}}}constructor(){super(),this.size="md",this.tone="default",this.align="start",this.look="prose"}static{this.styles=[...h.styles,u`
1384
1414
  :host {
1385
1415
  display: block;
1386
1416
  /* 1.4.8 asks for 1.5 within a paragraph, and it is the default here
1387
1417
  rather than an option, because body text is what it is about. */
1388
- line-height: ${H("normal")};
1418
+ line-height: ${P("normal")};
1389
1419
  /* 1.4.12 Text Spacing: a user stylesheet must be able to widen this
1390
1420
  without clipping, which a max-width in ch units survives and a
1391
1421
  fixed pixel height does not. */
@@ -1398,11 +1428,11 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1398
1428
  p { text-wrap: pretty; }
1399
1429
  :host([tone='muted']) { color: ${t.textMuted}; }
1400
1430
  :host([align='center']) { text-align: center; margin-inline: auto; }
1401
- :host([look='code']) { font-family: ${t.fontMono}; ${w("sm")} padding: ${r(2)} ${r(3)}; border-radius: ${t.radius}; background: color-mix(in srgb, currentColor 6%, transparent); max-inline-size: none; }
1431
+ :host([look='code']) { font-family: ${t.fontMono}; ${w("sm")} padding: ${a(2)} ${a(3)}; border-radius: ${t.radius}; background: color-mix(in srgb, currentColor 6%, transparent); max-inline-size: none; }
1402
1432
  p {
1403
1433
  margin: 0;
1404
1434
  }
1405
- `]}render(){return s`<p part="text"><slot></slot></p>`}};customElements.define("impakt-stack",We);customElements.define("impakt-card",Ve);customElements.define("impakt-heading",Ke);customElements.define("impakt-text",Ge);var Ye=class extends p{static{this.properties={href:{type:String},external:{type:Boolean,reflect:!0},externalText:{type:String,attribute:"external-text"},variant:{type:String,reflect:!0},icon:{type:String}}}constructor(){super(),this.href="",this.external=!1,this.externalText="opens in a new tab",this.variant="inline",this.icon="none"}static{this.styles=[...p.styles,k,h`
1435
+ `]}render(){return o`<p part="text"><slot></slot></p>`}};customElements.define("impakt-stack",Ye);customElements.define("impakt-card",Je);customElements.define("impakt-heading",Ze);customElements.define("impakt-text",Qe);var et=class extends h{static{this.properties={href:{type:String},external:{type:Boolean,reflect:!0},externalText:{type:String,attribute:"external-text"},variant:{type:String,reflect:!0},icon:{type:String}}}constructor(){super(),this.href="",this.external=!1,this.externalText="opens in a new tab",this.variant="inline",this.icon="none"}static{this.styles=[...h.styles,k,u`
1406
1436
  :host {
1407
1437
  display: inline;
1408
1438
  }
@@ -1416,22 +1446,22 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1416
1446
  color: ${t.linkHover};
1417
1447
  }
1418
1448
  :host([variant='standalone']) { display: inline-block; }
1419
- :host([variant='standalone']) a { display: inline-flex; align-items: center; gap: ${r(1)}; font-weight: ${m("semibold")}; text-decoration-thickness: 1px; }
1449
+ :host([variant='standalone']) a { display: inline-flex; align-items: center; gap: ${a(1)}; font-weight: ${m("semibold")}; text-decoration-thickness: 1px; }
1420
1450
  :host([variant='standalone']) a:hover .icon { transform: translateX(2px); }
1421
1451
  .icon { flex: none; transition: transform 120ms ease-in-out; }
1422
1452
  .sr-only {
1423
1453
  ${T}
1424
1454
  }
1425
- `]}render(){return s`
1455
+ `]}render(){return o`
1426
1456
  <a
1427
1457
  part="link"
1428
1458
  href=${this.href||l}
1429
1459
  target=${this.external?"_blank":l}
1430
1460
  rel=${this.external?"noopener noreferrer":l}
1431
1461
  >
1432
- <slot></slot>${M(this.icon!=="none"?this.icon:this.variant==="standalone"?this.external?"external":"arrow-right":void 0,"1em")}${this.external?s`<span class="sr-only"> (${this.externalText})</span>`:l}
1462
+ <slot></slot>${M(this.icon!=="none"?this.icon:this.variant==="standalone"?this.external?"external":"arrow-right":void 0,"1em")}${this.external?o`<span class="sr-only"> (${this.externalText})</span>`:l}
1433
1463
  </a>
1434
- `}};customElements.define("impakt-link",Ye);var Xe=class extends p{static{this.properties={src:{type:String},alt:{type:String},decorative:{type:Boolean,reflect:!0},width:{type:Number},height:{type:Number},focalX:{type:Number,attribute:"focal-x"},focalY:{type:Number,attribute:"focal-y"},loading:{type:String},ratio:{type:String,reflect:!0},rounded:{type:String,reflect:!0},hideOn:{type:String,reflect:!0,attribute:"hide-on"}}}constructor(){super(),this.hideOn="never",this.ratio="natural",this.rounded="none",this.src="",this.alt="",this.decorative=!1,this.width=void 0,this.height=void 0,this.focalX=.5,this.focalY=.5,this.loading="lazy"}static{this.styles=[...p.styles,h`
1464
+ `}};customElements.define("impakt-link",et);var tt=class extends h{static{this.properties={src:{type:String},alt:{type:String},decorative:{type:Boolean,reflect:!0},width:{type:Number},height:{type:Number},focalX:{type:Number,attribute:"focal-x"},focalY:{type:Number,attribute:"focal-y"},loading:{type:String},ratio:{type:String,reflect:!0},rounded:{type:String,reflect:!0},hideOn:{type:String,reflect:!0,attribute:"hide-on"}}}constructor(){super(),this.hideOn="never",this.ratio="natural",this.rounded="none",this.src="",this.alt="",this.decorative=!1,this.width=void 0,this.height=void 0,this.focalX=.5,this.focalY=.5,this.loading="lazy"}static{this.styles=[...h.styles,u`
1435
1465
  @media (max-width: 40rem) { :host([hide-on='phone']) { display: none; } }
1436
1466
  @media (min-width: 40.0625rem) { :host([hide-on='wide']) { display: none; } }
1437
1467
  :host {
@@ -1451,7 +1481,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1451
1481
  :host([rounded='sm']) img { border-radius: ${t.radius}; }
1452
1482
  :host([rounded='lg']) img { border-radius: ${t.radiusLg}; }
1453
1483
  :host([rounded='full']) img { border-radius: 50%; }
1454
- `]}render(){return s`
1484
+ `]}render(){return o`
1455
1485
  <img
1456
1486
  part="image"
1457
1487
  src=${this.src}
@@ -1462,7 +1492,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1462
1492
  loading=${this.loading}
1463
1493
  style="object-position: ${this.focalX*100}% ${this.focalY*100}%"
1464
1494
  />
1465
- `}},Ze=class extends p{static{this.properties={src:{type:String},srcDark:{type:String,attribute:"src-dark"},alt:{type:String},onDark:{type:Boolean,attribute:"on-dark",reflect:!0},height:{type:Number}}}constructor(){super(),this.src="",this.srcDark="",this.alt="",this.onDark=!1,this.height=32}static{this.styles=[...p.styles,h`
1495
+ `}},it=class extends h{static{this.properties={src:{type:String},srcDark:{type:String,attribute:"src-dark"},alt:{type:String},onDark:{type:Boolean,attribute:"on-dark",reflect:!0},height:{type:Number}}}constructor(){super(),this.src="",this.srcDark="",this.alt="",this.onDark=!1,this.height=32}static{this.styles=[...h.styles,u`
1466
1496
  :host {
1467
1497
  display: inline-block;
1468
1498
  }
@@ -1470,7 +1500,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1470
1500
  display: block;
1471
1501
  inline-size: auto;
1472
1502
  }
1473
- `]}render(){let e=this.onDark&&this.srcDark?this.srcDark:this.src;return s`<img part="logo" src=${e} alt=${this.alt} style="height: ${this.height}px" />`}},Je=class extends p{static{this.properties={href:{type:String},label:{type:String},fileType:{type:String,attribute:"file-type"},byteSize:{type:Number,attribute:"byte-size"}}}constructor(){super(),this.href="",this.label="",this.fileType="",this.byteSize=void 0}static{this.styles=[...p.styles,h`
1503
+ `]}render(){let e=this.onDark&&this.srcDark?this.srcDark:this.src;return o`<img part="logo" src=${e} alt=${this.alt} style="height: ${this.height}px" />`}},rt=class extends h{static{this.properties={href:{type:String},label:{type:String},fileType:{type:String,attribute:"file-type"},byteSize:{type:Number,attribute:"byte-size"}}}constructor(){super(),this.href="",this.label="",this.fileType="",this.byteSize=void 0}static{this.styles=[...h.styles,u`
1474
1504
  :host {
1475
1505
  display: block;
1476
1506
  }
@@ -1486,15 +1516,15 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1486
1516
  .meta {
1487
1517
  color: ${t.textMuted};
1488
1518
  }
1489
- `]}get size(){if(!this.byteSize)return"";let e=this.byteSize/1024;return e>=1024?`${(e/1024).toFixed(1)} MB`:`${Math.round(e)} KB`}render(){let e=[this.fileType,this.size].filter(Boolean).join(", ");return s`
1519
+ `]}get size(){if(!this.byteSize)return"";let e=this.byteSize/1024;return e>=1024?`${(e/1024).toFixed(1)} MB`:`${Math.round(e)} KB`}render(){let e=[this.fileType,this.size].filter(Boolean).join(", ");return o`
1490
1520
  <a part="link" href=${this.href||l} download>
1491
- <span>${this.label}</span>${e?s`<span class="meta">(${e})</span>`:l}
1521
+ <span>${this.label}</span>${e?o`<span class="meta">(${e})</span>`:l}
1492
1522
  </a>
1493
- `}};customElements.define("impakt-image",Xe);customElements.define("impakt-logo",Ze);customElements.define("impakt-document-link",Je);var Qe=class extends p{static{this.properties={amount:{type:Number},currency:{type:String},locale:{type:String},prefix:{type:String},period:{type:String},size:{type:String,reflect:!0},pending:{type:String}}}constructor(){super(),this.amount=void 0,this.currency="GBP",this.locale="",this.prefix="",this.period="",this.size="xl",this.pending="\u2014"}static{this.styles=[...p.styles,h`
1523
+ `}};customElements.define("impakt-image",tt);customElements.define("impakt-logo",it);customElements.define("impakt-document-link",rt);var at=class extends h{static{this.properties={amount:{type:Number},currency:{type:String},locale:{type:String},prefix:{type:String},period:{type:String},size:{type:String,reflect:!0},pending:{type:String}}}constructor(){super(),this.amount=void 0,this.currency="GBP",this.locale="",this.prefix="",this.period="",this.size="xl",this.pending="\u2014"}static{this.styles=[...h.styles,u`
1494
1524
  :host {
1495
1525
  display: inline-flex;
1496
1526
  align-items: baseline;
1497
- gap: ${r(1)};
1527
+ gap: ${a(1)};
1498
1528
  color: ${t.text};
1499
1529
  }
1500
1530
  .amount {
@@ -1511,11 +1541,11 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1511
1541
  font-size: ${b("sm")};
1512
1542
  color: ${t.textMuted};
1513
1543
  }
1514
- `]}get formatted(){if(this.amount===void 0||Number.isNaN(this.amount))return this.pending;try{return new Intl.NumberFormat(this.locale||B(this),{style:"currency",currency:this.currency,...this.amount>=1e5&&this.amount%100===0?{minimumFractionDigits:0,maximumFractionDigits:0}:{}}).format(this.amount/100)}catch{return(this.amount/100).toFixed(2)}}render(){return s`
1515
- ${this.prefix?s`<span class="period" part="prefix">${this.prefix}</span>`:l}
1544
+ `]}get formatted(){if(this.amount===void 0||Number.isNaN(this.amount))return this.pending;try{return new Intl.NumberFormat(this.locale||q(this),{style:"currency",currency:this.currency,...this.amount>=1e5&&this.amount%100===0?{minimumFractionDigits:0,maximumFractionDigits:0}:{}}).format(this.amount/100)}catch{return(this.amount/100).toFixed(2)}}render(){return o`
1545
+ ${this.prefix?o`<span class="period" part="prefix">${this.prefix}</span>`:l}
1516
1546
  <span class="amount" part="amount">${this.formatted}</span>
1517
- ${this.period?s`<span class="period" part="period">${this.period}</span>`:l}
1518
- `}};customElements.define("impakt-price",Qe);var et=class extends p{static{this.properties={rows:{type:Array},changeText:{type:String,attribute:"change-text"}}}constructor(){super(),this.rows=[],this.changeText="Change"}static{this.styles=[...p.styles,k,A("dd a"),h`
1547
+ ${this.period?o`<span class="period" part="period">${this.period}</span>`:l}
1548
+ `}};customElements.define("impakt-price",at);var ot=class extends h{static{this.properties={rows:{type:Array},changeText:{type:String,attribute:"change-text"}}}constructor(){super(),this.rows=[],this.changeText="Change"}static{this.styles=[...h.styles,k,C("dd a"),u`
1519
1549
  :host {
1520
1550
  display: block;
1521
1551
  }
@@ -1533,7 +1563,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1533
1563
  }
1534
1564
  dt,
1535
1565
  dd {
1536
- padding: ${r(3)} 0;
1566
+ padding: ${a(3)} 0;
1537
1567
  border-block-end: ${t.borderThin} solid ${t.rule};
1538
1568
  }
1539
1569
  dt {
@@ -1545,7 +1575,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1545
1575
  display: flex;
1546
1576
  align-items: baseline;
1547
1577
  justify-content: space-between;
1548
- gap: ${r(3)};
1578
+ gap: ${a(3)};
1549
1579
  }
1550
1580
  dd a {
1551
1581
  flex: none;
@@ -1580,21 +1610,21 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1580
1610
  padding-block-start: 0;
1581
1611
  }
1582
1612
  }
1583
- `]}render(){return s`
1613
+ `]}render(){return o`
1584
1614
  <dl part="list">
1585
- ${this.rows.map(e=>s`
1615
+ ${this.rows.map(e=>o`
1586
1616
  <div class="row" part="row">
1587
1617
  <dt part="key">${e.key}</dt>
1588
1618
  <dd part="value">
1589
1619
  <span>${e.value}</span>
1590
- ${e.changeHref?s`<a href=${e.changeHref} part="action"
1620
+ ${e.changeHref?o`<a href=${e.changeHref} part="action"
1591
1621
  >${this.changeText}<span class="sr-only"> ${e.key}</span></a
1592
1622
  >`:l}
1593
1623
  </dd>
1594
1624
  </div>
1595
1625
  `)}
1596
1626
  </dl>
1597
- `}};customElements.define("impakt-summary-list",et);var tt=class extends p{static{this.properties={caption:{type:String},captionHidden:{type:Boolean,reflect:!0,attribute:"caption-hidden"},columns:{type:Array},rows:{type:Array},sortKey:{type:String,attribute:"sort-key",reflect:!0},sortDirection:{type:String,attribute:"sort-direction",reflect:!0},manualSort:{type:Boolean,attribute:"manual-sort"},selectable:{type:Boolean,reflect:!0},selected:{type:Array},rowKey:{type:String,attribute:"row-key"},stack:{type:Boolean,reflect:!0},emptyText:{type:String,attribute:"empty-text"},selectAllText:{type:String,attribute:"select-all-text"},selectRowText:{type:String,attribute:"select-row-text"},look:{type:String,reflect:!0}}}constructor(){super(),this.caption="",this.captionHidden=!1,this.columns=[],this.rows=[],this.sortKey="",this.sortDirection="ascending",this.manualSort=!1,this.selectable=!1,this.selected=[],this.rowKey="id",this.stack=!1,this.emptyText="Nothing to show",this.selectAllText="Select all rows",this.selectRowText="Select {row}",this.look="plain"}static{this.styles=[...p.styles,k,A(".sort, .pick label"),h`
1627
+ `}};customElements.define("impakt-summary-list",ot);var st=class extends h{static{this.properties={caption:{type:String},captionHidden:{type:Boolean,reflect:!0,attribute:"caption-hidden"},columns:{type:Array},rows:{type:Array},sortKey:{type:String,attribute:"sort-key",reflect:!0},sortDirection:{type:String,attribute:"sort-direction",reflect:!0},manualSort:{type:Boolean,attribute:"manual-sort"},selectable:{type:Boolean,reflect:!0},selected:{type:Array},rowKey:{type:String,attribute:"row-key"},stack:{type:Boolean,reflect:!0},emptyText:{type:String,attribute:"empty-text"},selectAllText:{type:String,attribute:"select-all-text"},selectRowText:{type:String,attribute:"select-row-text"},look:{type:String,reflect:!0}}}constructor(){super(),this.caption="",this.captionHidden=!1,this.columns=[],this.rows=[],this.sortKey="",this.sortDirection="ascending",this.manualSort=!1,this.selectable=!1,this.selected=[],this.rowKey="id",this.stack=!1,this.emptyText="Nothing to show",this.selectAllText="Select all rows",this.selectRowText="Select {row}",this.look="plain"}static{this.styles=[...h.styles,k,C(".sort, .pick label"),u`
1598
1628
  :host {
1599
1629
  display: block;
1600
1630
  }
@@ -1612,12 +1642,12 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1612
1642
  caption {
1613
1643
  text-align: start;
1614
1644
  font-weight: ${m("semibold")};
1615
- padding-block-end: ${r(2)};
1645
+ padding-block-end: ${a(2)};
1616
1646
  }
1617
1647
  th,
1618
1648
  td {
1619
1649
  text-align: start;
1620
- padding: ${r(3)};
1650
+ padding: ${a(3)};
1621
1651
  border-block-end: ${t.borderThin} solid ${t.rule};
1622
1652
  }
1623
1653
  thead th {
@@ -1633,7 +1663,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1633
1663
  border: ${t.borderThin} solid ${t.text};
1634
1664
  }
1635
1665
  :host([look='boxed']) caption {
1636
- padding: ${r(4)} ${r(4)} ${r(2)};
1666
+ padding: ${a(4)} ${a(4)} ${a(2)};
1637
1667
  }
1638
1668
  /* The caption still names the table for a screen reader when the design shows none. */
1639
1669
  :host([caption-hidden]) caption {
@@ -1661,7 +1691,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1661
1691
  border-block-end-color: ${t.text};
1662
1692
  }
1663
1693
  :host([look='boxed']) :is(th, td) {
1664
- padding-inline: ${r(4)};
1694
+ padding-inline: ${a(4)};
1665
1695
  border-block-end-color: var(--impakt-color-line-soft, #dcdcd8);
1666
1696
  }
1667
1697
  :host([look='boxed']) tbody tr:last-child > * {
@@ -1674,14 +1704,14 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1674
1704
  font-variant-numeric: tabular-nums;
1675
1705
  }
1676
1706
  th.sortable {
1677
- padding: ${r(1)};
1707
+ padding: ${a(1)};
1678
1708
  }
1679
1709
  .sort {
1680
1710
  display: inline-flex;
1681
1711
  align-items: center;
1682
- gap: ${r(1)};
1712
+ gap: ${a(1)};
1683
1713
  min-block-size: ${t.targetMin};
1684
- padding: ${r(2)};
1714
+ padding: ${a(2)};
1685
1715
  font: inherit;
1686
1716
  color: inherit;
1687
1717
  background: none;
@@ -1733,7 +1763,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1733
1763
  background: ${t.brandSubtle};
1734
1764
  }
1735
1765
  .empty {
1736
- padding-block: ${r(6)};
1766
+ padding-block: ${a(6)};
1737
1767
  text-align: center;
1738
1768
  color: ${t.textMuted};
1739
1769
  }
@@ -1752,8 +1782,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1752
1782
  display: flex;
1753
1783
  flex-wrap: wrap;
1754
1784
  align-items: center;
1755
- gap: ${r(1)};
1756
- margin-block-end: ${r(3)};
1785
+ gap: ${a(1)};
1786
+ margin-block-end: ${a(3)};
1757
1787
  }
1758
1788
  thead th {
1759
1789
  display: none;
@@ -1768,13 +1798,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1768
1798
  thead .sort {
1769
1799
  border: ${t.borderThin} solid ${t.rule};
1770
1800
  border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
1771
- padding-inline: ${r(3)};
1801
+ padding-inline: ${a(3)};
1772
1802
  background: ${t.surfaceCard};
1773
1803
  }
1774
1804
  tbody tr {
1775
1805
  position: relative;
1776
- margin-block-end: ${r(3)};
1777
- padding: ${r(3)} ${r(4)};
1806
+ margin-block-end: ${a(3)};
1807
+ padding: ${a(3)} ${a(4)};
1778
1808
  border: ${t.borderThin} solid ${t.rule};
1779
1809
  border-radius: ${t.radiusXl};
1780
1810
  background: ${t.surfaceCard};
@@ -1788,8 +1818,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1788
1818
  tbody th, tbody td {
1789
1819
  display: grid;
1790
1820
  grid-template-columns: minmax(6rem, 38%) minmax(0, 1fr);
1791
- gap: ${r(3)};
1792
- padding: ${r(1.5)} 0;
1821
+ gap: ${a(3)};
1822
+ padding: ${a(1.5)} 0;
1793
1823
  border: 0;
1794
1824
  text-align: start;
1795
1825
  white-space: normal;
@@ -1800,13 +1830,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1800
1830
  tbody .pick {
1801
1831
  display: block;
1802
1832
  position: absolute;
1803
- inset-block-start: ${r(1)};
1804
- inset-inline-end: ${r(1)};
1833
+ inset-block-start: ${a(1)};
1834
+ inset-inline-end: ${a(1)};
1805
1835
  inline-size: auto;
1806
1836
  padding: 0;
1807
1837
  }
1808
1838
  tbody tr:has(.pick) > th {
1809
- padding-inline-end: ${r(10)};
1839
+ padding-inline-end: ${a(10)};
1810
1840
  }
1811
1841
  .label {
1812
1842
  display: block;
@@ -1819,44 +1849,48 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1819
1849
  border: 0;
1820
1850
  }
1821
1851
  }
1822
- `]}keyOf(e,i){let a=e?.[this.rowKey];return a==null||a===""?String(i):String(a)}ordered(){let e=(this.rows??[]).map((c,$)=>({row:c,key:this.keyOf(c,$)})),i=(this.columns??[]).find(c=>c.key===this.sortKey&&c.sortable);if(!i||this.manualSort)return e;let a=this.sortDirection==="descending"?-1:1,o=B(this),d=c=>Number(String(c??"").replace(/[^\d.-]/g,""))||0;return e.sort((c,$)=>{let g=c.row[i.key]??"",v=$.row[i.key]??"";return(i.numeric?d(g)-d(v):String(g).localeCompare(String(v),o,{numeric:!0,sensitivity:"base"}))*a})}sortBy(e){let i=this.sortKey===e&&this.sortDirection==="ascending"?"descending":"ascending";this.sortKey=e,this.sortDirection=i,this.dispatchEvent(new CustomEvent("impakt-sort",{detail:{key:e,direction:i},bubbles:!0,composed:!0}))}choose(e,i){let a=new Set(this.selected??[]);for(let o of e)i?a.add(o):a.delete(o);this.selected=[...a],this.dispatchEvent(new CustomEvent("impakt-selection",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}heading(e){let i=e.sortable&&e.key===this.sortKey,a=[e.numeric?"numeric":"",e.sortable?"sortable":""].filter(Boolean).join(" ");return e.sortable?s`<th scope="col" role="columnheader" class=${a} aria-sort=${i?this.sortDirection:l}>
1852
+ `]}keyOf(e,i){let r=e?.[this.rowKey];return r==null||r===""?String(i):String(r)}ordered(){let e=(this.rows??[]).map((p,$)=>({row:p,key:this.keyOf(p,$)})),i=(this.columns??[]).find(p=>p.key===this.sortKey&&p.sortable);if(!i||this.manualSort)return e;let r=this.sortDirection==="descending"?-1:1,s=q(this),c=p=>Number(String(p??"").replace(/[^\d.-]/g,""))||0;return e.sort((p,$)=>{let g=p.row[i.key]??"",v=$.row[i.key]??"";return(i.numeric?c(g)-c(v):String(g).localeCompare(String(v),s,{numeric:!0,sensitivity:"base"}))*r})}sortBy(e){let i=this.sortKey===e&&this.sortDirection==="ascending"?"descending":"ascending";this.sortKey=e,this.sortDirection=i,this.dispatchEvent(new CustomEvent("impakt-sort",{detail:{key:e,direction:i},bubbles:!0,composed:!0}))}choose(e,i){let r=new Set(this.selected??[]);for(let s of e)i?r.add(s):r.delete(s);this.selected=[...r],this.dispatchEvent(new CustomEvent("impakt-selection",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}heading(e){let i=e.sortable&&e.key===this.sortKey,r=[e.numeric?"numeric":"",e.sortable?"sortable":""].filter(Boolean).join(" ");return e.sortable?o`<th scope="col" role="columnheader" class=${r} aria-sort=${i?this.sortDirection:l}>
1823
1853
  <button class="sort" type="button" part="sort" @click=${()=>this.sortBy(e.key)}>${e.label}<span class="arrow" aria-hidden="true">${M("chevron-down","16px")}</span></button>
1824
- </th>`:s`<th scope="col" role="columnheader" class=${a}>${e.label}</th>`}render(){let e=this.columns??[],i=this.ordered(),a=new Set(this.selected??[]),o=i.length>0&&i.every(c=>a.has(c.key)),d=!o&&i.some(c=>a.has(c.key));return s`
1854
+ </th>`:o`<th scope="col" role="columnheader" class=${r}>${e.label}</th>`}render(){let e=this.columns??[],i=this.ordered(),r=new Set(this.selected??[]),s=i.length>0&&i.every(p=>r.has(p.key)),c=!s&&i.some(p=>r.has(p.key));return o`
1825
1855
  <div class="scroller" part="scroller" tabindex="0" role="region" aria-label=${this.caption||l}>
1826
1856
  <table part="table" role="table">
1827
- ${this.caption?s`<caption part="caption">${this.caption}</caption>`:l}
1857
+ ${this.caption?o`<caption part="caption">${this.caption}</caption>`:l}
1828
1858
  <thead role="rowgroup">
1829
1859
  <tr role="row">
1830
- ${this.selectable?s`<th scope="col" role="columnheader" class="pick"><label><input type="checkbox" aria-label=${this.selectAllText} .checked=${o} .indeterminate=${d} ?disabled=${!i.length}
1831
- @change=${c=>this.choose(i.map($=>$.key),c.target.checked)} /></label></th>`:l}
1832
- ${e.map(c=>this.heading(c))}
1860
+ ${this.selectable?o`<th scope="col" role="columnheader" class="pick"><label><input type="checkbox" aria-label=${this.selectAllText} .checked=${s} .indeterminate=${c} ?disabled=${!i.length}
1861
+ @change=${p=>this.choose(i.map($=>$.key),p.target.checked)} /></label></th>`:l}
1862
+ ${e.map(p=>this.heading(p))}
1833
1863
  </tr>
1834
1864
  </thead>
1835
1865
  <tbody role="rowgroup">
1836
- ${i.length?i.map(({row:c,key:$},g)=>s`
1837
- <tr role="row" class=${a.has($)?"chosen":""} part="row">
1838
- ${this.selectable?s`<td role="cell" class="pick"><label><input type="checkbox" aria-label=${this.selectRowText.replace("{row}",String(c[e[0]?.key??""]??$))} .checked=${a.has($)}
1866
+ ${i.length?i.map(({row:p,key:$},g)=>o`
1867
+ <tr role="row" class=${r.has($)?"chosen":""} part="row">
1868
+ ${this.selectable?o`<td role="cell" class="pick"><label><input type="checkbox" aria-label=${this.selectRowText.replace("{row}",String(p[e[0]?.key??""]??$))} .checked=${r.has($)}
1839
1869
  @change=${v=>this.choose([$],v.target.checked)} /></label></td>`:l}
1840
- ${e.map((v,L)=>{let E=s`<span class="label" aria-hidden="true">${v.label}</span><span class="value"><slot name=${`cell:${$}:${v.key}`}>${c[v.key]??""}</slot></span>`;return L===0?s`<th scope="row" role="rowheader" class=${v.mono?"mono":""} id=${`${this.uid}-r${g}`}>${E}</th>`:s`<td role="cell" class=${[v.numeric?"numeric":"",v.mono?"mono":""].join(" ").trim()}>${E}</td>`})}
1870
+ ${e.map((v,_)=>{let A=o`<span class="label" aria-hidden="true">${v.label}</span><span class="value"><slot name=${`cell:${$}:${v.key}`}>${p[v.key]??""}</slot></span>`;return _===0?o`<th scope="row" role="rowheader" class=${v.mono?"mono":""} id=${`${this.uid}-r${g}`}>${A}</th>`:o`<td role="cell" class=${[v.numeric?"numeric":"",v.mono?"mono":""].join(" ").trim()}>${A}</td>`})}
1841
1871
  </tr>
1842
- `):s`<tr role="row"><td role="cell" class="empty" colspan=${e.length+(this.selectable?1:0)||1}><slot name="empty">${this.emptyText}</slot></td></tr>`}
1872
+ `):o`<tr role="row"><td role="cell" class="empty" colspan=${e.length+(this.selectable?1:0)||1}><slot name="empty">${this.emptyText}</slot></td></tr>`}
1843
1873
  </tbody>
1844
1874
  </table>
1845
1875
  </div>
1846
- `}};customElements.define("impakt-table",tt);var it=typeof HTMLElement>"u"||!("children"in HTMLElement.prototype);var Oi=C("var(--impakt-color-line-soft, #dcdcd8)"),rt=class extends p{static{this.properties={items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},open:{type:Array},multiple:{type:Boolean},look:{type:String,reflect:!0},enhanced:{state:!0}}}constructor(){super(),this.items=[],this.headingLevel=3,this.open=[],this.multiple=!0,this.look="plain",this.enhanced=!1}connectedCallback(){!it&&!this.shadowRoot&&(this.enhanced=!0),super.connectedCallback()}firstUpdated(){this.enhanced=!0}static{this.styles=[...p.styles,k,Be,h`
1876
+ `}};customElements.define("impakt-table",st);var nt=typeof HTMLElement>"u"||!("children"in HTMLElement.prototype);var R={edge:d("accordion.edge","15%"),topEdgeWidth:d("accordion.top-edge-width","0px"),questionSize:d("accordion.question.size","1rem"),questionLineHeight:d("accordion.question.line-height","1.5"),questionTracking:d("accordion.question.tracking","0em"),questionPadding:d("accordion.question.padding","12px"),hoverInk:d("accordion.hover-ink","0%"),hoverLine:d("accordion.hover-line","none"),plus:d("accordion.plus","none"),chevron:d("accordion.chevron","inline-block"),markerSize:d("accordion.marker.size","18px"),markerStroke:d("accordion.marker.stroke","2px"),answerSpace:d("accordion.answer.space","16px"),answerPull:d("accordion.answer.pull","0px"),answerInk:d("accordion.answer.ink","100%"),answerLineHeight:d("accordion.answer.line-height","1.5"),answerWidth:d("accordion.answer.width","none")},Ui=L("var(--impakt-color-line-soft, #dcdcd8)"),lt=class extends h{static{this.properties={items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},open:{type:Array},multiple:{type:Boolean},look:{type:String,reflect:!0},enhanced:{state:!0}}}constructor(){super(),this.items=[],this.headingLevel=3,this.open=[],this.multiple=!0,this.look="plain",this.enhanced=!1}connectedCallback(){!nt&&!this.shadowRoot&&(this.enhanced=!0),super.connectedCallback()}firstUpdated(){this.enhanced=!0}static{this.styles=[...h.styles,k,De,u`
1847
1877
  :host {
1848
1878
  display: block;
1849
- border-block-start: ${t.borderThin} solid ${t.text};
1879
+ border-block-start: ${R.topEdgeWidth} solid ${t.text};
1850
1880
  }
1881
+ /* Rows with a faint rule, or under Noire an ink one (accordion.edge), mixed here so a band that repaints the text repaints it. */
1851
1882
  .item {
1852
- border-block-end: ${t.borderThin} solid ${t.text};
1883
+ border-block-end: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${R.edge}, transparent);
1853
1884
  }
1854
1885
  /* The heading row. The button is stretched over it, so the whole row opens the panel, the status included. */
1855
1886
  .head {
1887
+ /* The question's padding and size, read by the button and by the marker beside it, so the marker sits on the question's first line. */
1888
+ --q-pad: ${R.questionPadding};
1889
+ --q-size: ${R.questionSize};
1856
1890
  position: relative;
1857
1891
  display: flex;
1858
1892
  align-items: center;
1859
- gap: ${r(4)};
1893
+ gap: ${a(4)};
1860
1894
  }
1861
1895
  .h {
1862
1896
  flex: 1;
@@ -1868,17 +1902,17 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1868
1902
  display: flex;
1869
1903
  align-items: baseline;
1870
1904
  flex-wrap: wrap;
1871
- column-gap: ${r(4)};
1872
- row-gap: ${r(1)};
1905
+ column-gap: ${a(4)};
1906
+ row-gap: ${a(1)};
1873
1907
  inline-size: 100%;
1874
- padding: ${r(8)} 0;
1908
+ padding: var(--q-pad) 0;
1875
1909
  background: none;
1876
1910
  border: 0;
1877
1911
  font: inherit;
1878
- /* G2 heading S: 24/1.15, -2.5%, semibold. */
1879
- font-size: var(--impakt-type-heading-s-size, 1.5rem);
1880
- line-height: 1.15;
1881
- letter-spacing: -0.025em;
1912
+ /* The question in body type, or under Noire (G2) heading S: 24/1.15, -2.5%, semibold. */
1913
+ font-size: var(--q-size);
1914
+ line-height: ${R.questionLineHeight};
1915
+ letter-spacing: ${R.questionTracking};
1882
1916
  font-weight: ${m("semibold")};
1883
1917
  color: ${t.text};
1884
1918
  text-align: start;
@@ -1895,8 +1929,11 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1895
1929
  button:focus-visible::after {
1896
1930
  box-shadow: ${t.focusShadow};
1897
1931
  }
1932
+ button:hover {
1933
+ color: color-mix(in srgb, ${t.text} ${R.hoverInk}, ${t.link});
1934
+ }
1898
1935
  button:hover .q {
1899
- text-decoration: underline;
1936
+ text-decoration-line: ${R.hoverLine};
1900
1937
  text-decoration-thickness: 1px;
1901
1938
  text-underline-offset: 0.15em;
1902
1939
  }
@@ -1914,18 +1951,25 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1914
1951
  display: flex;
1915
1952
  flex-wrap: wrap;
1916
1953
  justify-content: flex-end;
1917
- gap: ${r(2)};
1954
+ gap: ${a(2)};
1918
1955
  max-inline-size: 50%;
1919
1956
  }
1920
1957
  /* A plus that turns to a minus: two bars, the upright one hidden when open. Drawn, not typed, so it is the same in every face. */
1921
1958
  .marker {
1922
1959
  position: relative;
1923
1960
  flex: none;
1924
- inline-size: 18px;
1925
- block-size: 18px;
1926
- /* Centred on the question's first line, not sat on its baseline. */
1961
+ inline-size: ${R.markerSize};
1962
+ block-size: ${R.markerSize};
1963
+ /* Centred on the question's first line (#51): below the button's padding, in the middle of the question's line box. */
1964
+ font-size: var(--q-size);
1965
+ line-height: ${R.questionLineHeight};
1927
1966
  align-self: flex-start;
1928
- margin-block-start: calc((1lh - 18px) / 2);
1967
+ margin-block-start: calc(var(--q-pad) + (1lh - ${R.markerSize}) / 2);
1968
+ }
1969
+ /* In the issues look the marker is inside the button, on the button's own line. */
1970
+ :host([look='issues']) .marker {
1971
+ align-self: center;
1972
+ margin-block-start: 0;
1929
1973
  }
1930
1974
  .marker::before,
1931
1975
  .marker::after {
@@ -1935,18 +1979,41 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1935
1979
  }
1936
1980
  .marker::before {
1937
1981
  inset-inline: 0;
1938
- inset-block-start: calc(50% - 1px);
1939
- block-size: 2px;
1982
+ inset-block-start: calc(50% - ${R.markerStroke} / 2);
1983
+ block-size: ${R.markerStroke};
1940
1984
  }
1941
1985
  .marker::after {
1942
1986
  inset-block: 0;
1943
- inset-inline-start: calc(50% - 1px);
1944
- inline-size: 2px;
1987
+ inset-inline-start: calc(50% - ${R.markerStroke} / 2);
1988
+ inline-size: ${R.markerStroke};
1945
1989
  transition: transform 120ms ease-in-out;
1946
1990
  }
1947
1991
  .item.open .marker::after {
1948
1992
  transform: scaleY(0);
1949
1993
  }
1994
+ /* The brand's marker: a "+" (accordion.plus) or a chevron that turns to point down when open (accordion.chevron). */
1995
+ .marker::before,
1996
+ .marker::after {
1997
+ display: ${R.plus};
1998
+ }
1999
+ .chev {
2000
+ display: ${R.chevron};
2001
+ position: absolute;
2002
+ inset: 0;
2003
+ line-height: 18px;
2004
+ text-align: center;
2005
+ transition: transform 120ms ease-in-out;
2006
+ }
2007
+ .item.open .chev {
2008
+ transform: rotate(90deg);
2009
+ }
2010
+ :host([look='issues']) .marker::before,
2011
+ :host([look='issues']) .marker::after {
2012
+ display: block;
2013
+ }
2014
+ :host([look='issues']) .chev {
2015
+ display: none;
2016
+ }
1950
2017
  @media (forced-colors: active) {
1951
2018
  .marker::before,
1952
2019
  .marker::after {
@@ -1962,12 +2029,12 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1962
2029
  display: none;
1963
2030
  }
1964
2031
  .panel {
1965
- max-inline-size: 48rem;
1966
- margin-block-start: calc(-1 * ${r(4)});
1967
- padding-block-end: ${r(8)};
2032
+ max-inline-size: ${R.answerWidth};
2033
+ margin-block-start: ${R.answerPull};
2034
+ padding-block-end: ${R.answerSpace};
1968
2035
  font-size: ${b("md")};
1969
- line-height: 1.6;
1970
- color: ${t.textMuted};
2036
+ line-height: ${R.answerLineHeight};
2037
+ color: color-mix(in srgb, ${t.text} ${R.answerInk}, ${t.textMuted});
1971
2038
  }
1972
2039
  /*
1973
2040
  * Issues (frames 36:716, 36:430): rows divided by soft rules, each a code, a small "+" and the finding in
@@ -1978,12 +2045,12 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1978
2045
  border-block-start: 0;
1979
2046
  }
1980
2047
  :host([look='issues']) .item {
1981
- border-block-end: ${t.borderThin} solid ${Oi};
2048
+ border-block-end: ${t.borderThin} solid ${Ui};
1982
2049
  }
1983
2050
  /* The finding keeps at least 16rem; on a narrow screen the status wraps under it, at the end, rather than squeezing it. */
1984
2051
  :host([look='issues']) .head {
1985
2052
  flex-wrap: wrap;
1986
- gap: ${r(2)} ${r(4)};
2053
+ gap: ${a(2)} ${a(4)};
1987
2054
  }
1988
2055
  :host([look='issues']) .h {
1989
2056
  flex: 1 1 16rem;
@@ -1993,15 +2060,15 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1993
2060
  }
1994
2061
  :host([look='issues']) button {
1995
2062
  align-items: center;
1996
- column-gap: ${r(3)};
1997
- padding-block: ${r(5)};
2063
+ column-gap: ${a(3)};
2064
+ padding-block: ${a(5)};
1998
2065
  font-size: 1.25rem;
1999
2066
  line-height: 1.2;
2000
2067
  letter-spacing: -0.01em;
2001
2068
  font-weight: ${m("regular")};
2002
2069
  }
2003
2070
  :host([look='issues']) .meta {
2004
- margin-inline-end: ${r(1)};
2071
+ margin-inline-end: ${a(1)};
2005
2072
  }
2006
2073
  :host([look='issues']) .marker {
2007
2074
  inline-size: 12px;
@@ -2016,8 +2083,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2016
2083
  inline-size: 1.5px;
2017
2084
  }
2018
2085
  :host([look='issues']) .item.open {
2019
- margin-block: ${r(4)};
2020
- padding: ${r(6)};
2086
+ margin-block: ${a(4)};
2087
+ padding: ${a(6)};
2021
2088
  background: ${t.surfaceSubtle};
2022
2089
  border: ${t.borderThin} solid ${t.text};
2023
2090
  }
@@ -2027,7 +2094,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2027
2094
  :host([look='issues']) .item.open button {
2028
2095
  flex-direction: column;
2029
2096
  align-items: flex-start;
2030
- row-gap: ${r(2)};
2097
+ row-gap: ${a(2)};
2031
2098
  padding-block: 0;
2032
2099
  font-size: var(--impakt-type-heading-s-size, 1.5rem);
2033
2100
  line-height: 1.15;
@@ -2043,7 +2110,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2043
2110
  }
2044
2111
  :host([look='issues']) .panel {
2045
2112
  max-inline-size: none;
2046
- margin: ${r(4)} 0 0;
2113
+ margin: ${a(4)} 0 0;
2047
2114
  padding: 0;
2048
2115
  color: ${t.text};
2049
2116
  }
@@ -2053,71 +2120,71 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2053
2120
  /* Without script every finding is open and has no marker; it reads as a list, not as boxes. */
2054
2121
  :host([look='issues']:not(:defined)) .item.open {
2055
2122
  margin: 0;
2056
- padding: ${r(5)} 0;
2123
+ padding: ${a(5)} 0;
2057
2124
  background: none;
2058
2125
  border: 0;
2059
- border-block-end: ${t.borderThin} solid ${Oi};
2126
+ border-block-end: ${t.borderThin} solid ${Ui};
2060
2127
  }
2061
2128
  @media (max-width: 40rem) {
2062
- button {
2063
- padding-block: ${r(6)};
2064
- font-size: 1.25rem;
2129
+ .head {
2130
+ --q-pad: min(${R.questionPadding}, ${a(6)});
2131
+ --q-size: min(${R.questionSize}, 1.25rem);
2065
2132
  }
2066
2133
  :host([look='issues']) button {
2067
- padding-block: ${r(4)};
2134
+ padding-block: ${a(4)};
2068
2135
  font-size: 1.125rem;
2069
2136
  }
2070
2137
  :host([look='issues']) .item.open {
2071
- padding: ${r(4)};
2138
+ padding: ${a(4)};
2072
2139
  }
2073
2140
  :host([look='issues']) .item.open button {
2074
2141
  padding-block: 0;
2075
2142
  font-size: 1.25rem;
2076
2143
  }
2077
2144
  }
2078
- `]}toggle(e){this.open.includes(e)?this.open=this.open.filter(a=>a!==e):this.open=this.multiple?[...this.open,e]:[e]}render(){let e=this.look==="issues";return s`
2079
- ${this.items.map(i=>{let a=!this.enhanced||this.open.includes(i.id),o=this.id_(`panel-${i.id}`),d=this.id_(`button-${i.id}`);return s`
2080
- <div class="item ${a?"open":""}" part="item">
2145
+ `]}toggle(e){this.open.includes(e)?this.open=this.open.filter(r=>r!==e):this.open=this.multiple?[...this.open,e]:[e]}render(){let e=this.look==="issues";return o`
2146
+ ${this.items.map(i=>{let r=!this.enhanced||this.open.includes(i.id),s=this.id_(`panel-${i.id}`),c=this.id_(`button-${i.id}`);return o`
2147
+ <div class="item ${r?"open":""}" part="item">
2081
2148
  <div class="head" part="head">
2082
2149
  <div class="h" role="heading" aria-level=${this.headingLevel}>
2083
2150
  <button
2084
- id=${d}
2151
+ id=${c}
2085
2152
  part="header"
2086
2153
  type="button"
2087
- aria-expanded=${a?"true":"false"}
2088
- aria-controls=${o}
2154
+ aria-expanded=${r?"true":"false"}
2155
+ aria-controls=${s}
2089
2156
  @click=${()=>this.toggle(i.id)}
2090
2157
  >
2091
- ${i.meta?s`<span class="meta" part="meta">${i.meta}</span>`:l}
2092
- ${e?s`<span class="marker" aria-hidden="true"></span>`:l}
2158
+ ${i.meta?o`<span class="meta" part="meta">${i.meta}</span>`:l}
2159
+ ${e?o`<span class="marker" aria-hidden="true"></span>`:l}
2093
2160
  <span class="q">${i.heading}</span>
2094
2161
  </button>
2095
2162
  </div>
2096
- ${i.tags?.length?s`<span class="pills" part="pills">
2097
- ${ee(i.status,i.statusTone)}${i.tags.map(c=>ee(c.label,c.tone??"neutral","tag"))}
2098
- </span>`:ee(i.status,i.statusTone)}
2099
- ${e?l:s`<span class="marker" aria-hidden="true"></span>`}
2163
+ ${i.tags?.length?o`<span class="pills" part="pills">
2164
+ ${oe(i.status,i.statusTone)}${i.tags.map(p=>oe(p.label,p.tone??"neutral","tag"))}
2165
+ </span>`:oe(i.status,i.statusTone)}
2166
+ ${e?l:o`<span class="marker" aria-hidden="true"><span class="chev">›</span></span>`}
2100
2167
  </div>
2101
2168
  <div
2102
- id=${o}
2169
+ id=${s}
2103
2170
  class="panel"
2104
2171
  part="panel"
2105
2172
  role="region"
2106
- aria-labelledby=${d}
2107
- ?hidden=${!a}
2173
+ aria-labelledby=${c}
2174
+ ?hidden=${!r}
2108
2175
  >
2109
2176
  <slot name=${`panel-${i.id}`}>${i.body}</slot>
2110
2177
  </div>
2111
2178
  </div>
2112
2179
  `})}
2113
- `}};customElements.define("impakt-accordion",rt);var gr=C("var(--impakt-color-line-soft, #dcdcd8)"),at=class extends p{static{this.properties={steps:{type:Array},current:{type:String},label:{type:String},look:{type:String,reflect:!0},hideLabels:{type:Boolean,attribute:"hide-labels",reflect:!0},doneText:{type:String,attribute:"done-text"}}}constructor(){super(),this.steps=[],this.current="",this.label="Progress",this.look="steps",this.hideLabels=!1,this.doneText=""}static{this.styles=[...p.styles,k,h`
2180
+ `}};customElements.define("impakt-accordion",lt);var Sr=L("var(--impakt-color-line-soft, #dcdcd8)"),dt=class extends h{static{this.properties={steps:{type:Array},current:{type:String},label:{type:String},look:{type:String,reflect:!0},hideLabels:{type:Boolean,attribute:"hide-labels",reflect:!0},doneText:{type:String,attribute:"done-text"}}}constructor(){super(),this.steps=[],this.current="",this.label="Progress",this.look="steps",this.hideLabels=!1,this.doneText=""}static{this.styles=[...h.styles,k,u`
2114
2181
  :host {
2115
2182
  display: block;
2116
- margin-block-end: ${r(5)};
2183
+ margin-block-end: ${a(5)};
2117
2184
  }
2118
2185
  ol {
2119
2186
  display: flex;
2120
- gap: ${r(2)};
2187
+ gap: ${a(2)};
2121
2188
  list-style: none;
2122
2189
  margin: 0;
2123
2190
  padding: 0;
@@ -2126,7 +2193,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2126
2193
  flex: 1;
2127
2194
  font-size: ${b("sm")};
2128
2195
  color: ${t.textMuted};
2129
- padding-block-start: ${r(2)};
2196
+ padding-block-start: ${a(2)};
2130
2197
  border-block-start: 4px solid ${t.border};
2131
2198
  }
2132
2199
  li[data-state='done'] {
@@ -2145,11 +2212,11 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2145
2212
  margin-block-end: 0;
2146
2213
  }
2147
2214
  :host([look='bars']) ol {
2148
- gap: ${r(1.5)};
2215
+ gap: ${a(1.5)};
2149
2216
  }
2150
2217
  :host([look='bars']) li {
2151
2218
  position: relative;
2152
- padding-block-start: ${r(3)};
2219
+ padding-block-start: ${a(3)};
2153
2220
  border: 0;
2154
2221
  font-size: 12px;
2155
2222
  min-inline-size: 0;
@@ -2185,10 +2252,10 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2185
2252
  scrollbar-width: thin;
2186
2253
  }
2187
2254
  :host([look='stages']) ol {
2188
- gap: ${r(8)};
2255
+ gap: ${a(8)};
2189
2256
  inline-size: max-content;
2190
2257
  min-inline-size: 100%;
2191
- box-shadow: inset 0 -1px 0 ${gr};
2258
+ box-shadow: inset 0 -1px 0 ${Sr};
2192
2259
  }
2193
2260
  :host([look='stages']) li {
2194
2261
  flex: none;
@@ -2202,9 +2269,9 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2202
2269
  :host([look='stages']) .stage {
2203
2270
  display: inline-flex;
2204
2271
  align-items: baseline;
2205
- gap: ${r(2)};
2272
+ gap: ${a(2)};
2206
2273
  min-block-size: 24px;
2207
- padding-block: ${r(3)};
2274
+ padding-block: ${a(3)};
2208
2275
  border-block-end: 3px solid transparent;
2209
2276
  color: inherit;
2210
2277
  text-decoration: none;
@@ -2237,49 +2304,49 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2237
2304
  ${T}
2238
2305
  }
2239
2306
  }
2240
- `]}renderStages(e){let i=this.doneText||S("done"),a=this.steps.some(o=>o.href);return s`
2241
- <nav part="nav" aria-label=${this.label} tabindex=${a?l:"0"}>
2307
+ `]}renderStages(e){let i=this.doneText||S("done"),r=this.steps.some(s=>s.href);return o`
2308
+ <nav part="nav" aria-label=${this.label} tabindex=${r?l:"0"}>
2242
2309
  <ol part="list">
2243
- ${this.steps.map((o,d)=>{let c=d<e?"done":d===e?"current":"todo",$=String(d+1).padStart(2,"0"),g=s`<span class="num" part="step-number">${c==="done"?s`<span aria-hidden="true">✓ </span>`:l}${$}</span>
2244
- <span class="name" part="step-label">${o.label}</span>${c==="done"?s`<span class="sr-only">, ${i}</span>`:l}`;return s`
2245
- <li part="step step-${c}" data-state=${c}>
2246
- ${o.href?s`<a class="stage" href=${o.href} aria-current=${c==="current"?"step":l}>${g}</a>`:s`<span class="stage" aria-current=${c==="current"?"step":l}>${g}</span>`}
2310
+ ${this.steps.map((s,c)=>{let p=c<e?"done":c===e?"current":"todo",$=String(c+1).padStart(2,"0"),g=o`<span class="num" part="step-number">${p==="done"?o`<span aria-hidden="true">✓ </span>`:l}${$}</span>
2311
+ <span class="name" part="step-label">${s.label}</span>${p==="done"?o`<span class="sr-only">, ${i}</span>`:l}`;return o`
2312
+ <li part="step step-${p}" data-state=${p}>
2313
+ ${s.href?o`<a class="stage" href=${s.href} aria-current=${p==="current"?"step":l}>${g}</a>`:o`<span class="stage" aria-current=${p==="current"?"step":l}>${g}</span>`}
2247
2314
  </li>
2248
2315
  `})}
2249
2316
  </ol>
2250
2317
  </nav>
2251
- `}render(){let e=this.steps.findIndex(i=>i.id===this.current);return this.look==="stages"?this.renderStages(e):s`
2318
+ `}render(){let e=this.steps.findIndex(i=>i.id===this.current);return this.look==="stages"?this.renderStages(e):o`
2252
2319
  <nav part="nav" aria-label=${this.label}>
2253
2320
  <ol part="list">
2254
- ${this.steps.map((i,a)=>{let o=a<e?"done":a===e?"current":"todo";return s`
2255
- <li part="step step-${o}" data-state=${o} aria-current=${o==="current"?"step":l}>
2256
- ${o==="current"?s`<span class="sr-only">${S("Step {step} of {steps}:",{step:a+1,steps:this.steps.length})} </span>`:l}
2321
+ ${this.steps.map((i,r)=>{let s=r<e?"done":r===e?"current":"todo";return o`
2322
+ <li part="step step-${s}" data-state=${s} aria-current=${s==="current"?"step":l}>
2323
+ ${s==="current"?o`<span class="sr-only">${S("Step {step} of {steps}:",{step:r+1,steps:this.steps.length})} </span>`:l}
2257
2324
  <span class="name" part="step-label">${i.label}</span>
2258
2325
  </li>
2259
2326
  `})}
2260
2327
  </ol>
2261
2328
  </nav>
2262
- `}};customElements.define("impakt-progress",at);var pe={brand:"var(--impakt-color-brand-default, #1f4ed8)",accent:"var(--impakt-color-accent-default, #c8a15a)",info:"var(--impakt-color-status-info-default, #1f4ed8)",success:"var(--impakt-color-status-success-default, #047857)",warning:"var(--impakt-color-status-warning-default, #b45309)",danger:"var(--impakt-color-status-danger-default, #c8102e)"},he=["success","info","warning","accent","danger","brand"],ai=(n,e)=>typeof n=="number"?`var(--impakt-color-chart-${n}, ${pe[he[(n-1)%he.length]]})`:n&&n in pe?pe[n]:`var(--impakt-color-chart-${e%5+1}, ${pe[he[e%he.length]]})`;var Pi=t.fontMono,st=class extends p{static{this.properties={label:{type:String},meta:{type:String},icon:{type:String,reflect:!0},tone:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0},hideOn:{type:String,reflect:!0,attribute:"hide-on"}}}constructor(){super(),this.label="",this.meta="",this.icon="none",this.tone="success",this.look="filled",this.size="md",this.hideOn="never"}static{this.styles=[...p.styles,Bi,h`
2329
+ `}};customElements.define("impakt-progress",dt);var be={brand:"var(--impakt-color-brand-default, #1f4ed8)",accent:"var(--impakt-color-accent-default, #c8a15a)",info:"var(--impakt-color-status-info-default, #1f4ed8)",success:"var(--impakt-color-status-success-default, #047857)",warning:"var(--impakt-color-status-warning-default, #b45309)",danger:"var(--impakt-color-status-danger-default, #c8102e)"},fe=["success","info","warning","accent","danger","brand"],di=(n,e)=>typeof n=="number"?`var(--impakt-color-chart-${n}, ${be[fe[(n-1)%fe.length]]})`:n&&n in be?be[n]:`var(--impakt-color-chart-${e%5+1}, ${be[fe[e%fe.length]]})`;var Wi=t.fontMono,ct=class extends h{static{this.properties={label:{type:String},meta:{type:String},icon:{type:String,reflect:!0},tone:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0},hideOn:{type:String,reflect:!0,attribute:"hide-on"}}}constructor(){super(),this.label="",this.meta="",this.icon="none",this.tone="success",this.look="filled",this.size="md",this.hideOn="never"}static{this.styles=[...h.styles,Di,u`
2263
2330
  :host { display: inline-flex; flex: none; }
2264
- span.chip { display: inline-flex; align-items: center; gap: ${r(1.5)}; padding: 3px ${r(2.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-family: ${Pi}; font-size: ${b("xs")}; line-height: 1.2; white-space: nowrap; }
2331
+ span.chip { display: inline-flex; align-items: center; gap: ${a(1.5)}; padding: 3px ${a(2.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-family: ${Wi}; font-size: ${b("xs")}; line-height: 1.2; white-space: nowrap; }
2265
2332
  :host([look='filled']) span.chip { border-radius: ${t.radius}; background: color-mix(in srgb, currentColor 7%, transparent); }
2266
2333
  :host([look='outlined']) span.chip { border: ${t.borderThin} solid ${t.text}; background: ${t.surfaceCard}; }
2267
2334
  :host([size='marketing']) span.chip { font-size: 11px; font-weight: ${m("medium")}; text-transform: uppercase; letter-spacing: 0.06em; }
2268
2335
  /* Body: a 35px square box in the body face, for a row of tags such as a stack (G2 case study, 21:1493). */
2269
- :host([size='body']) span.chip { box-sizing: border-box; min-block-size: 35px; padding: ${r(1.5)} ${r(3)}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; font-family: ${t.fontBody}; font-size: 14px; line-height: 1.2; }
2270
- :host([size='lg']) span.chip { box-sizing: border-box; min-block-size: 49px; gap: ${r(3)}; padding: ${r(2)} ${r(4)}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; font-family: ${t.fontBody}; font-size: 20px; line-height: 1.2; }
2271
- :host([size='lg']) .meta { font-family: ${Pi}; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 1; color: ${t.textMuted}; }
2336
+ :host([size='body']) span.chip { box-sizing: border-box; min-block-size: 35px; padding: ${a(1.5)} ${a(3)}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; font-family: ${t.fontBody}; font-size: 14px; line-height: 1.2; }
2337
+ :host([size='lg']) span.chip { box-sizing: border-box; min-block-size: 49px; gap: ${a(3)}; padding: ${a(2)} ${a(4)}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; font-family: ${t.fontBody}; font-size: 20px; line-height: 1.2; }
2338
+ :host([size='lg']) .meta { font-family: ${Wi}; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 1; color: ${t.textMuted}; }
2272
2339
  :host([look='plain']) span.chip { padding: 0; }
2273
2340
  .dot { flex: none; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--tone); }
2274
2341
  /* Yellow means "needs your attention": the accent, with an ink stroke so it shows on white. */
2275
- .dot.warn { background: ${u("color.accent.default","#ffd43b")}; box-shadow: 0 0 0 1px ${t.text}; }
2342
+ .dot.warn { background: ${d("color.accent.default","#ffd43b")}; box-shadow: 0 0 0 1px ${t.text}; }
2276
2343
  @media (forced-colors: active) { .dot, .dot.warn { background: CanvasText; } }
2277
2344
  svg { inline-size: 12px; block-size: 12px; }
2278
2345
  .meta { opacity: 0.72; text-transform: none; }
2279
2346
  :host([look='plain']) .label { opacity: 0.72; }
2280
- `]}render(){let e=this.icon==="dot"?s`<span class="dot ${this.tone==="warning"?"warn":""}" aria-hidden="true"></span>`:this.icon==="branch"?s`<svg viewBox="0 0 14 14" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="3.5" cy="3" r="1.5"/><circle cx="3.5" cy="11" r="1.5"/><circle cx="10.5" cy="4.5" r="1.5"/><path d="M3.5 4.5v5M10.5 6c0 2.5-3 2.5-6 4"/></svg>`:l;return s`<span class="chip" part="chip" style=${`--tone:${ai(this.tone,0)}`}>${e}<span class="label">${this.label}</span>${this.meta?s` <span class="meta">${this.meta}</span>`:l}</span>`}};customElements.define("impakt-chip",st);var ot=class extends p{static{this.properties={tone:{type:String,reflect:!0},icon:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.tone="neutral",this.icon="none",this.look="filled",this.size="md"}static{this.styles=[...p.styles,h`
2347
+ `]}render(){let e=this.icon==="dot"?o`<span class="dot ${this.tone==="warning"?"warn":""}" aria-hidden="true"></span>`:this.icon==="branch"?o`<svg viewBox="0 0 14 14" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="3.5" cy="3" r="1.5"/><circle cx="3.5" cy="11" r="1.5"/><circle cx="10.5" cy="4.5" r="1.5"/><path d="M3.5 4.5v5M10.5 6c0 2.5-3 2.5-6 4"/></svg>`:l;return o`<span class="chip" part="chip" style=${`--tone:${di(this.tone,0)}`}>${e}<span class="label">${this.label}</span>${this.meta?o` <span class="meta">${this.meta}</span>`:l}</span>`}};customElements.define("impakt-chip",ct);var pt=class extends h{static{this.properties={tone:{type:String,reflect:!0},icon:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.tone="neutral",this.icon="none",this.look="filled",this.size="md"}static{this.styles=[...h.styles,u`
2281
2348
  :host { display: inline-flex; }
2282
- span { display: inline-flex; align-items: center; gap: ${r(1)}; padding: ${r(.5)} ${r(2)}; border-radius: ${t.radius}; ${w("sm")} font-weight: ${m("medium")}; background: ${t.surfaceInset}; color: ${t.text}; box-shadow: inset 0 0 0 1px ${t.hairline}; }
2349
+ span { display: inline-flex; align-items: center; gap: ${a(1)}; padding: ${a(.5)} ${a(2)}; border-radius: ${t.radius}; ${w("sm")} font-weight: ${m("medium")}; background: ${t.surfaceInset}; color: ${t.text}; box-shadow: inset 0 0 0 1px ${t.hairline}; }
2283
2350
  :host([tone='brand']) span { background: ${t.brandSubtle}; color: ${t.brand}; }
2284
2351
  :host([tone='success']) span { background: ${t.successSubtle}; color: ${t.successText}; }
2285
2352
  :host([tone='warning']) span { background: ${t.warningSubtle}; color: ${t.warningText}; }
@@ -2288,18 +2355,18 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2288
2355
  :host([tone='inverse']) span { background: ${t.text}; color: ${t.surfaceCard}; box-shadow: none; }
2289
2356
  :host([tone='solid']) span { background: ${t.brand}; color: ${t.onBrand}; box-shadow: none; }
2290
2357
  /* Accent: the yellow with ink words, for the label that needs attention. */
2291
- :host([tone='accent']) span { background: ${u("color.accent.default","#ffd43b")}; color: ${u("color.accent.on","#111111")}; box-shadow: none; }
2358
+ :host([tone='accent']) span { background: ${d("color.accent.default","#ffd43b")}; color: ${d("color.accent.on","#111111")}; box-shadow: none; }
2292
2359
  :host([look='outline']) span { background: transparent; color: ${t.text}; box-shadow: inset 0 0 0 1px ${t.text}; }
2293
- :host([look='outline'][tone='accent']) span { background: ${u("color.accent.default","#ffd43b")}; color: ${u("color.accent.on","#111111")}; box-shadow: inset 0 0 0 1px ${u("color.accent.on","#111111")}; }
2294
- :host([size='marketing']) span { padding: 3px ${r(2)}; font-family: ${t.fontMono}; font-size: 11px; line-height: 1.4; font-weight: ${m("medium")}; letter-spacing: 0.06em; text-transform: uppercase; }
2360
+ :host([look='outline'][tone='accent']) span { background: ${d("color.accent.default","#ffd43b")}; color: ${d("color.accent.on","#111111")}; box-shadow: inset 0 0 0 1px ${d("color.accent.on","#111111")}; }
2361
+ :host([size='marketing']) span { padding: 3px ${a(2)}; font-family: ${t.fontMono}; font-size: 11px; line-height: 1.4; font-weight: ${m("medium")}; letter-spacing: 0.06em; text-transform: uppercase; }
2295
2362
  @media (forced-colors: active) { span { border-color: CanvasText; } }
2296
- `]}render(){return s`<span part="badge">${M(this.icon,"1em")}<slot></slot></span>`}};customElements.define("impakt-badge",ot);var nt=class extends x{constructor(){super();this.filled=!1;this.filledText="";this.width="full",this.rows=4,this.maxlength=void 0,this.fillFrom="none",this.placeholder=""}static{this.properties={...x.properties,width:{type:String,reflect:!0},rows:{type:Number},maxlength:{type:Number},fillFrom:{type:String,attribute:"fill-from"},placeholder:{type:String}}}static{this.styles=[...x.styles,N,Q("textarea"),h`
2363
+ `]}render(){return o`<span part="badge">${M(this.icon,"1em")}<slot></slot></span>`}};customElements.define("impakt-badge",pt);var ht=class extends x{constructor(){super();this.filled=!1;this.filledText="";this.width="full",this.rows=4,this.maxlength=void 0,this.fillFrom="none",this.placeholder=""}static{this.properties={...x.properties,width:{type:String,reflect:!0},rows:{type:Number},maxlength:{type:Number},fillFrom:{type:String,attribute:"fill-from"},placeholder:{type:String}}}static{this.styles=[...x.styles,D,ae("textarea"),u`
2297
2364
  textarea {
2298
2365
  /* Resizing is left on deliberately. 1.4.4 and 1.4.12 both assume text
2299
2366
  can be made bigger, and a fixed box is where that stops working. */
2300
2367
  resize: vertical;
2301
2368
  }
2302
- `]}willUpdate(i){super.willUpdate?.(i),this.filledText&&i.has("value")&&!this.value&&(this.value=this.filledText)}fill(){if(this.filled||this.fillFrom!=="estimate"||(this.filled=!0,this.value))return;let i=null;try{i=sessionStorage.getItem("impakt.estimate")}catch{i=null}i&&(this.filledText=i,this.setFormValue(i))}renderControl(){return s`
2369
+ `]}willUpdate(i){super.willUpdate?.(i),this.filledText&&i.has("value")&&!this.value&&(this.value=this.filledText)}fill(){if(this.filled||this.fillFrom!=="estimate"||(this.filled=!0,this.value))return;let i=null;try{i=sessionStorage.getItem("impakt.estimate")}catch{i=null}i&&(this.filledText=i,this.setFormValue(i))}renderControl(){return o`
2303
2370
  <textarea
2304
2371
  id=${this.controlId}
2305
2372
  part="textarea"
@@ -2315,7 +2382,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2315
2382
  .value=${this.value}
2316
2383
  @input=${i=>{this.filledText="",this.setFormValue(i.target.value)}}
2317
2384
  ></textarea>
2318
- `}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error),this.fill()}};customElements.define("impakt-textarea",nt);var lt=class extends x{static{this.properties={...x.properties,options:{type:Array},values:{type:Array}}}constructor(){super(),this.options=[],this.values=[]}static{this.styles=[...x.styles,h`
2385
+ `}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error),this.fill()}};customElements.define("impakt-textarea",ht);var ut=class extends x{static{this.properties={...x.properties,options:{type:Array},values:{type:Array}}}constructor(){super(),this.options=[],this.values=[]}static{this.styles=[...x.styles,u`
2319
2386
  fieldset {
2320
2387
  border: 0;
2321
2388
  margin: 0;
@@ -2328,11 +2395,11 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2328
2395
  .option {
2329
2396
  display: flex;
2330
2397
  align-items: flex-start;
2331
- gap: ${r(3)};
2332
- padding: ${r(3)};
2398
+ gap: ${a(3)};
2399
+ padding: ${a(3)};
2333
2400
  border: ${t.borderThin} solid ${t.border};
2334
2401
  border-radius: ${t.radius};
2335
- margin-block-end: ${r(2)};
2402
+ margin-block-end: ${a(2)};
2336
2403
  cursor: pointer;
2337
2404
  }
2338
2405
  .option:hover {
@@ -2354,39 +2421,39 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2354
2421
  display: block;
2355
2422
  font-size: ${b("sm")};
2356
2423
  color: ${t.textMuted};
2357
- margin-block-start: ${r(1)};
2424
+ margin-block-start: ${a(1)};
2358
2425
  }
2359
2426
  :host([invalid]) .option {
2360
2427
  border-color: ${t.danger};
2361
2428
  }
2362
- `]}renderLabel(){return s`<legend class="label" part="label">
2363
- ${this.label}${this.required?s`<span class="required"> (${this.requiredText})</span>`:l}
2364
- </legend>`}onToggle(e,i){this.values=i?[...this.values,e]:this.values.filter(a=>a!==e),this.setFormValue(this.options.filter(a=>this.values.includes(a.value)).map(a=>a.value).join(","))}renderControl(){return s`
2365
- ${this.options.map((e,i)=>{let a=this.id_(`opt-${i}`),o=e.description?this.id_(`opt-${i}-desc`):void 0;return s`
2366
- <label class="option" part="option" for=${a}>
2429
+ `]}renderLabel(){return o`<legend class="label" part="label">
2430
+ ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
2431
+ </legend>`}onToggle(e,i){this.values=i?[...this.values,e]:this.values.filter(r=>r!==e),this.setFormValue(this.options.filter(r=>this.values.includes(r.value)).map(r=>r.value).join(","))}renderControl(){return o`
2432
+ ${this.options.map((e,i)=>{let r=this.id_(`opt-${i}`),s=e.description?this.id_(`opt-${i}-desc`):void 0;return o`
2433
+ <label class="option" part="option" for=${r}>
2367
2434
  <input
2368
2435
  type="checkbox"
2369
- id=${a}
2436
+ id=${r}
2370
2437
  value=${e.value}
2371
2438
  .checked=${this.values.includes(e.value)}
2372
2439
  ?disabled=${this.disabled}
2373
- aria-describedby=${o??l}
2374
- @change=${d=>this.onToggle(e.value,d.target.checked)}
2440
+ aria-describedby=${s??l}
2441
+ @change=${c=>this.onToggle(e.value,c.target.checked)}
2375
2442
  />
2376
2443
  <span>
2377
2444
  <span class="option-text">${e.label}</span>
2378
- ${e.description?s`<span class="option-description" id=${o}>${e.description}</span>`:l}
2445
+ ${e.description?o`<span class="option-description" id=${s}>${e.description}</span>`:l}
2379
2446
  </span>
2380
2447
  </label>
2381
2448
  `})}
2382
- `}render(){return s`
2449
+ `}render(){return o`
2383
2450
  <fieldset part="fieldset" aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
2384
2451
  ${this.renderLabel()}
2385
- ${this.description?s`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
2452
+ ${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
2386
2453
  ${this.renderControl()}
2387
2454
  <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
2388
2455
  </fieldset>
2389
- `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox-group",lt);var dt=class extends x{static{this.properties={...x.properties,day:{type:String},month:{type:String},year:{type:String},autocompleteSection:{type:String,attribute:"autocomplete-section"}}}constructor(){super(),this.day="",this.month="",this.year="",this.autocompleteSection="bday"}static{this.styles=[...x.styles,h`
2456
+ `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox-group",ut);var mt=class extends x{static{this.properties={...x.properties,day:{type:String},month:{type:String},year:{type:String},autocompleteSection:{type:String,attribute:"autocomplete-section"}}}constructor(){super(),this.day="",this.month="",this.year="",this.autocompleteSection="bday"}static{this.styles=[...x.styles,u`
2390
2457
  fieldset {
2391
2458
  border: 0;
2392
2459
  margin: 0;
@@ -2398,12 +2465,12 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2398
2465
  }
2399
2466
  .parts {
2400
2467
  display: flex;
2401
- gap: ${r(3)};
2468
+ gap: ${a(3)};
2402
2469
  }
2403
2470
  .part {
2404
2471
  display: flex;
2405
2472
  flex-direction: column;
2406
- gap: ${r(1)};
2473
+ gap: ${a(1)};
2407
2474
  }
2408
2475
  .part label {
2409
2476
  font-size: ${b("sm")};
@@ -2411,7 +2478,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2411
2478
  }
2412
2479
  input {
2413
2480
  min-block-size: 44px;
2414
- padding: ${r(3)};
2481
+ padding: ${a(3)};
2415
2482
  font-family: inherit;
2416
2483
  font-size: ${b("md")};
2417
2484
  color: ${t.text};
@@ -2419,61 +2486,63 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2419
2486
  border: ${t.borderThin} solid ${t.border};
2420
2487
  border-radius: ${t.radius};
2421
2488
  /* Room for the digits plus the padding and border, so the box is never narrower than a finger. */
2422
- inline-size: calc(3ch + ${r(6)} + 2px);
2489
+ inline-size: calc(3ch + ${a(6)} + 2px);
2423
2490
  }
2424
2491
  .year input {
2425
- inline-size: calc(5ch + ${r(6)} + 2px);
2492
+ inline-size: calc(5ch + ${a(6)} + 2px);
2426
2493
  }
2427
2494
  :host([invalid]) input {
2428
2495
  border-color: ${t.danger};
2429
2496
  border-width: ${t.borderThick};
2430
2497
  }
2431
- `]}renderLabel(){return s`<legend class="label" part="label">
2432
- ${this.label}${this.required?s`<span class="required"> (${this.requiredText})</span>`:l}
2433
- </legend>`}datePart(e,i,a,o){let d=this.id_(e);return s`
2498
+ `]}renderLabel(){return o`<legend class="label" part="label">
2499
+ ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
2500
+ </legend>`}datePart(e,i,r,s){let c=this.id_(e);return o`
2434
2501
  <div class="part ${e}">
2435
- <label for=${d}>${i}</label>
2502
+ <label for=${c}>${i}</label>
2436
2503
  <input
2437
- id=${d}
2504
+ id=${c}
2438
2505
  type="text"
2439
2506
  inputmode="numeric"
2440
- maxlength=${a}
2507
+ maxlength=${r}
2441
2508
  .value=${this[e]}
2442
- autocomplete=${this.autocompleteSection?`${this.autocompleteSection}-${o}`:l}
2509
+ autocomplete=${this.autocompleteSection?`${this.autocompleteSection}-${s}`:l}
2443
2510
  ?disabled=${this.disabled}
2444
- @input=${c=>{this[e]=c.target.value,this.emit()}}
2511
+ @input=${p=>{this[e]=p.target.value,this.emit()}}
2445
2512
  />
2446
2513
  </div>
2447
- `}emit(){let i=this.day&&this.month&&this.year.length===4?`${this.year}-${this.month.padStart(2,"0")}-${this.day.padStart(2,"0")}`:"";this.setFormValue(i)}renderControl(){return s`
2514
+ `}emit(){let i=this.day&&this.month&&this.year.length===4?`${this.year}-${this.month.padStart(2,"0")}-${this.day.padStart(2,"0")}`:"";this.setFormValue(i)}renderControl(){return o`
2448
2515
  <div class="parts" part="parts">
2449
2516
  ${this.datePart("day",S("Day"),2,"day")}
2450
2517
  ${this.datePart("month",S("Month"),2,"month")}
2451
2518
  ${this.datePart("year",S("Year"),4,"year")}
2452
2519
  </div>
2453
- `}render(){return s`
2520
+ `}render(){return o`
2454
2521
  <fieldset part="fieldset" aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
2455
2522
  ${this.renderLabel()}
2456
- ${this.description?s`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
2523
+ ${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
2457
2524
  ${this.renderControl()}
2458
2525
  <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
2459
2526
  </fieldset>
2460
- `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-date-input",dt);var me=new Set,ue=null;function ge(n){if(typeof document>"u"||me.has(n)||(me.add(n),me.size>1))return;let e=document.documentElement,i=window.innerWidth-e.clientWidth;ue={overflow:e.style.overflow,paddingRight:e.style.paddingRight},e.style.overflow="hidden",i>0&&(e.style.paddingRight=`${i}px`)}function Y(n){if(typeof document>"u"||!me.delete(n)||me.size>0||!ue)return;let e=document.documentElement;e.style.overflow=ue.overflow,e.style.paddingRight=ue.paddingRight,ue=null}var ct=class extends p{constructor(){super();this.hasFooter=!1;this.open=!1,this.heading="",this.closeLabel="Close",this.dismissible=!0,this.phoneFullScreen=!1,this.size="md",this.eyebrow=""}static{this.properties={open:{type:Boolean,reflect:!0},heading:{type:String},closeLabel:{type:String,attribute:"close-label"},dismissible:{type:Boolean},phoneFullScreen:{type:Boolean,reflect:!0,attribute:"phone-full-screen"},size:{type:String,reflect:!0},eyebrow:{type:String}}}static{this.styles=[...p.styles,k,A(".close"),h`
2527
+ `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-date-input",mt);var xe=new Set,$e=null;function ye(n){if(typeof document>"u"||xe.has(n)||(xe.add(n),xe.size>1))return;let e=document.documentElement,i=window.innerWidth-e.clientWidth;$e={overflow:e.style.overflow,paddingRight:e.style.paddingRight},e.style.overflow="hidden",i>0&&(e.style.paddingRight=`${i}px`)}function ee(n){if(typeof document>"u"||!xe.delete(n)||xe.size>0||!$e)return;let e=document.documentElement;e.style.overflow=$e.overflow,e.style.paddingRight=$e.paddingRight,$e=null}var H={edgeWidth:d("dialog.edge-width","0px"),backdrop:d("dialog.backdrop","color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 30%, transparent)"),backdropBlur:d("dialog.backdrop-blur","2px"),padding:d("dialog.padding","20px"),phonePadding:L(`min(${d("dialog.padding","20px")}, 20px)`),headingSize:d("dialog.heading.size","1.25rem"),headingLineHeight:d("dialog.heading.line-height","normal"),headingTracking:d("dialog.heading.tracking","0em"),headingWeight:d("dialog.heading.weight","700")},gt=class extends h{constructor(){super();this.hasFooter=!1;this.open=!1,this.heading="",this.closeLabel="Close",this.dismissible=!0,this.phoneFullScreen=!1,this.size="md",this.eyebrow=""}static{this.properties={open:{type:Boolean,reflect:!0},heading:{type:String},closeLabel:{type:String,attribute:"close-label"},dismissible:{type:Boolean},phoneFullScreen:{type:Boolean,reflect:!0,attribute:"phone-full-screen"},size:{type:String,reflect:!0},eyebrow:{type:String}}}static{this.styles=[...h.styles,k,C(".close"),u`
2461
2528
  dialog {
2462
2529
  padding: 0;
2463
- border: ${t.borderThin} solid ${t.text};
2530
+ /* No edge and a lifted shadow, or under Noire an ink edge and no shadow (dialog.edge-width, shadow.dialog). */
2531
+ border: ${H.edgeWidth} solid ${t.text};
2464
2532
  border-radius: ${t.radius2xl};
2465
2533
  background: ${t.surfaceCard};
2466
2534
  color: ${t.text};
2467
- box-shadow: var(--impakt-shadow-dialog, none);
2535
+ box-shadow: var(--impakt-shadow-dialog, ${t.shadowXl}, 0 0 0 1px ${t.hairline});
2468
2536
  max-inline-size: min(32rem, calc(100vw - 2rem));
2469
2537
  /* 1.4.10 Reflow: a dialog taller than the viewport must scroll inside
2470
2538
  itself rather than clipping, at 320px and at 400% zoom alike. */
2471
2539
  max-block-size: calc(100vh - 2rem);
2472
2540
  overflow: auto;
2473
2541
  }
2542
+ /* The page behind, dimmed with the text colour and blurred, or under Noire the ink at half strength (dialog.backdrop). */
2474
2543
  dialog::backdrop {
2475
- /* The ink at half strength. The text colour is the paper in dark, so the backdrop is the ink there too. */
2476
- background: rgb(17 17 17 / 0.5);
2544
+ background: ${H.backdrop};
2545
+ backdrop-filter: blur(${H.backdropBlur});
2477
2546
  }
2478
2547
  :host([size='lg']) dialog {
2479
2548
  inline-size: 720px;
@@ -2482,7 +2551,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2482
2551
  .titles {
2483
2552
  display: flex;
2484
2553
  flex-direction: column;
2485
- gap: ${r(2)};
2554
+ gap: ${a(2)};
2486
2555
  min-inline-size: 0;
2487
2556
  }
2488
2557
  .eyebrow {
@@ -2495,8 +2564,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2495
2564
  display: flex;
2496
2565
  flex-wrap: wrap;
2497
2566
  justify-content: flex-end;
2498
- gap: ${r(3)};
2499
- padding: ${r(5)} ${r(6)};
2567
+ gap: ${a(3)};
2500
2568
  border-block-start: ${t.borderThin} solid var(--impakt-color-line-soft, #dcdcd8);
2501
2569
  }
2502
2570
  .foot.empty {
@@ -2506,27 +2574,30 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2506
2574
  display: flex;
2507
2575
  align-items: flex-start;
2508
2576
  justify-content: space-between;
2509
- gap: ${r(3)};
2510
- padding: ${r(6)} ${r(6)} 0;
2577
+ gap: ${a(3)};
2578
+ padding: ${H.padding} ${H.padding} 0;
2511
2579
  }
2512
- /* G2: about 32px, semibold, tight. */
2580
+ /* The heading: bold in the xl size, or under Noire (G2) about 32px, semibold and tight (dialog.heading.*). */
2513
2581
  .heading {
2514
2582
  margin: 0;
2515
2583
  font-family: ${t.fontHeading};
2516
- font-size: var(--impakt-type-heading-m-size, 2rem);
2517
- line-height: 1.1;
2518
- letter-spacing: -0.03em;
2519
- font-weight: ${m("semibold")};
2584
+ font-size: ${H.headingSize};
2585
+ line-height: ${H.headingLineHeight};
2586
+ letter-spacing: ${H.headingTracking};
2587
+ font-weight: ${H.headingWeight};
2520
2588
  color: ${t.textHeading};
2521
2589
  }
2522
2590
  .body {
2523
- padding: ${r(4)} ${r(6)} ${r(6)};
2591
+ padding: ${a(4)} ${H.padding} ${H.padding};
2592
+ }
2593
+ .foot {
2594
+ padding: ${a(5)} ${H.padding};
2524
2595
  }
2525
2596
  @media (max-width: 40rem) {
2526
- .heading { font-size: 1.5rem; }
2527
- .head { padding: ${r(5)} ${r(5)} 0; }
2528
- .body { padding: ${r(4)} ${r(5)} ${r(5)}; }
2529
- .foot { padding: ${r(4)} ${r(5)}; }
2597
+ .heading { font-size: min(${H.headingSize}, 1.5rem); }
2598
+ .head { padding: ${H.phonePadding} ${H.phonePadding} 0; }
2599
+ .body { padding: ${a(4)} ${H.phonePadding} ${H.phonePadding}; }
2600
+ .foot { padding: ${a(4)} ${H.phonePadding}; }
2530
2601
  }
2531
2602
  @media (max-width: 40rem) {
2532
2603
  :host([phone-full-screen]) dialog {
@@ -2552,19 +2623,19 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2552
2623
  color: ${t.text};
2553
2624
  cursor: pointer;
2554
2625
  }
2555
- `]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(i){if(!i.has("open"))return;let a=this.dialog;a&&(this.open?(typeof a.showModal=="function"?a.showModal():a.setAttribute("open",""),ge(this)):(typeof a.close=="function"&&a.open?a.close():a.removeAttribute("open"),Y(this)))}disconnectedCallback(){super.disconnectedCallback(),Y(this)}onFooter(){let a=Array.from(this.renderRoot.querySelectorAll('slot[name="footer"], slot[name="actions"]')).some(o=>o.assignedElements({flatten:!0}).length>0);a!==this.hasFooter&&(this.hasFooter=a,this.requestUpdate())}close(){this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0}))}render(){return s`
2626
+ `]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(i){if(!i.has("open"))return;let r=this.dialog;r&&(this.open?(typeof r.showModal=="function"?r.showModal():r.setAttribute("open",""),ye(this)):(typeof r.close=="function"&&r.open?r.close():r.removeAttribute("open"),ee(this)))}disconnectedCallback(){super.disconnectedCallback(),ee(this)}onFooter(){let r=Array.from(this.renderRoot.querySelectorAll('slot[name="footer"], slot[name="actions"]')).some(s=>s.assignedElements({flatten:!0}).length>0);r!==this.hasFooter&&(this.hasFooter=r,this.requestUpdate())}close(){this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0}))}render(){return o`
2556
2627
  <dialog
2557
2628
  part="dialog"
2558
2629
  aria-labelledby=${this.heading?this.id_("heading"):l}
2559
2630
  @cancel=${i=>{this.dismissible?this.close():i.preventDefault()}}
2560
2631
  @close=${()=>{this.open&&this.close()}}
2561
2632
  >
2562
- <div class="head">
2633
+ <div class="head" part="head">
2563
2634
  <div class="titles">
2564
- ${this.eyebrow?s`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:l}
2565
- ${this.heading?s`<h2 class="heading" id=${this.id_("heading")} part="heading">${this.heading}</h2>`:l}
2635
+ ${this.eyebrow?o`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:l}
2636
+ ${this.heading?o`<h2 class="heading" id=${this.id_("heading")} part="heading">${this.heading}</h2>`:l}
2566
2637
  </div>
2567
- ${this.dismissible?s`<button class="close" part="close" type="button" @click=${this.close}>
2638
+ ${this.dismissible?o`<button class="close" part="close" type="button" @click=${this.close}>
2568
2639
  <span aria-hidden="true">×</span>
2569
2640
  <span class="sr-only" style="position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)">${this.closeLabel}</span>
2570
2641
  </button>`:l}
@@ -2574,23 +2645,23 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2574
2645
  <slot name="footer" @slotchange=${this.onFooter}></slot><slot name="actions" @slotchange=${this.onFooter}></slot>
2575
2646
  </div>
2576
2647
  </dialog>
2577
- `}};customElements.define("impakt-dialog",ct);var pt=class extends p{static{this.properties={items:{type:Array},look:{type:String,reflect:!0},size:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.look="bullet",this.size="md",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...p.styles,I,h`
2648
+ `}};customElements.define("impakt-dialog",gt);var bt=class extends h{static{this.properties={items:{type:Array},look:{type:String,reflect:!0},size:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.look="bullet",this.size="md",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,u`
2578
2649
  :host { display: block; }
2579
- ul, ol { list-style: none; margin: 0; padding: 0; display: grid; gap: ${r(3)}; counter-reset: point; }
2580
- li { position: relative; padding-inline-start: ${r(7)}; ${w("md")} text-wrap: pretty; counter-increment: point; }
2650
+ ul, ol { list-style: none; margin: 0; padding: 0; display: grid; gap: ${a(3)}; counter-reset: point; }
2651
+ li { position: relative; padding-inline-start: ${a(7)}; ${w("md")} text-wrap: pretty; counter-increment: point; }
2581
2652
  :host([size='sm']) li { ${w("sm")} }
2582
2653
  :host([size='lg']) li { ${w("lg")} }
2583
2654
  li::before { content: ''; position: absolute; inset-inline-start: 4px; inset-block-start: 0.6em; inline-size: 7px; block-size: 7px; border-radius: 2px; background: ${t.brand}; }
2584
2655
  :host([look='check']) li::before { content: '✓'; inset-inline-start: 0; inset-block-start: 0; inline-size: auto; block-size: auto; background: none; color: ${t.success}; font-weight: ${m("bold")}; }
2585
2656
  :host([look='number']) li::before { content: counter(point, decimal-leading-zero); inset-inline-start: 0; inset-block-start: 0.2em; inline-size: auto; block-size: auto; background: none; font-family: ${t.fontMono}; font-size: 0.75em; color: ${t.textMuted}; }
2586
2657
  @media (forced-colors: active) { li::before { background: CanvasText; } :host([look='check']) li::before, :host([look='number']) li::before { background: none; color: CanvasText; } }
2587
- `]}render(){let e=(this.items??[]).map(i=>s`<li part="item">${i}</li>`);return this.look==="number"?s`<ol part="list">${e}</ol>`:s`<ul part="list" role="list">${e}</ul>`}};customElements.define("impakt-list",pt);var br={"2:1":"2fr 1fr","1:2":"1fr 2fr","3:1":"3fr 1fr","1:3":"1fr 3fr","1:2:1":"1fr 2fr 1fr","2:1:1":"2fr 1fr 1fr","1:1:2":"1fr 1fr 2fr"},ht=class extends p{static{this.properties={columns:{type:String,reflect:!0},widths:{type:String,reflect:!0},gap:{type:String,reflect:!0},stackOn:{type:String,reflect:!0,attribute:"stack-on"},align:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.columns="two",this.widths="equal",this.gap="md",this.stackOn="phone",this.align="stretch",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...p.styles,I,h`
2658
+ `]}render(){let e=(this.items??[]).map(i=>o`<li part="item">${i}</li>`);return this.look==="number"?o`<ol part="list">${e}</ol>`:o`<ul part="list" role="list">${e}</ul>`}};customElements.define("impakt-list",bt);var Tr={"2:1":"2fr 1fr","1:2":"1fr 2fr","3:1":"3fr 1fr","1:3":"1fr 3fr","1:2:1":"1fr 2fr 1fr","2:1:1":"2fr 1fr 1fr","1:1:2":"1fr 1fr 2fr"},ft=class extends h{static{this.properties={columns:{type:String,reflect:!0},widths:{type:String,reflect:!0},gap:{type:String,reflect:!0},stackOn:{type:String,reflect:!0,attribute:"stack-on"},align:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.columns="two",this.widths="equal",this.gap="md",this.stackOn="phone",this.align="stretch",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,u`
2588
2659
  :host { display: block; min-inline-size: 0; container-type: inline-size; }
2589
- .columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${u("layout.gutter.md","16px")}; align-items: stretch; }
2660
+ .columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${d("layout.gutter.md","16px")}; align-items: stretch; }
2590
2661
  :host([gap='none']) .columns { gap: 0; }
2591
- :host([gap='sm']) .columns { gap: ${u("layout.gutter.sm","8px")}; }
2592
- :host([gap='lg']) .columns { gap: ${u("layout.gutter.lg","32px")}; }
2593
- :host([gap='xl']) .columns { gap: ${u("layout.gutter.xl","48px")}; }
2662
+ :host([gap='sm']) .columns { gap: ${d("layout.gutter.sm","8px")}; }
2663
+ :host([gap='lg']) .columns { gap: ${d("layout.gutter.lg","32px")}; }
2664
+ :host([gap='xl']) .columns { gap: ${d("layout.gutter.xl","48px")}; }
2594
2665
  :host([align='start']) .columns { align-items: start; }
2595
2666
  :host([align='center']) .columns { align-items: center; }
2596
2667
  :host([align='end']) .columns { align-items: end; }
@@ -2603,7 +2674,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2603
2674
  ::slotted(*) { max-inline-size: 100%; }
2604
2675
  @container (max-width: 40rem) { :host(:not([stack-on='never'])) .columns { grid-template-columns: minmax(0, 1fr) !important; } }
2605
2676
  @container (max-width: 64rem) { :host([stack-on='tablet']) .columns { grid-template-columns: minmax(0, 1fr) !important; } }
2606
- `]}render(){let e=this.columns==="one"?1:this.columns==="three"?3:this.columns==="four"?4:2,i=br[this.widths]?.split(" "),a=i&&i.length===e?i.map(o=>`minmax(0, ${o})`).join(" "):"";return s`<div class="columns" part="row" style=${a?`grid-template-columns: ${a}`:""}>${Array.from({length:e},(o,d)=>s`<div class="column" part="column"><slot name=${`column-${d+1}`}></slot></div>`)}</div>`}};customElements.define("impakt-grid",ht);var ut=class extends p{static{this.properties={mechanismId:{type:String,attribute:"mechanism-id"},kind:{type:String,reflect:!0},href:{type:String},label:{type:String},detail:{type:String}}}constructor(){super(),this.kind="link",this.href="",this.label="",this.detail=""}static{this.styles=[...p.styles,k,h`
2677
+ `]}render(){let e=this.columns==="one"?1:this.columns==="three"?3:this.columns==="four"?4:2,i=Tr[this.widths]?.split(" "),r=i&&i.length===e?i.map(s=>`minmax(0, ${s})`).join(" "):"";return o`<div class="columns" part="row" style=${r?`grid-template-columns: ${r}`:""}>${Array.from({length:e},(s,c)=>o`<div class="column" part="column"><slot name=${`column-${c+1}`}></slot></div>`)}</div>`}};customElements.define("impakt-grid",ft);var $t=class extends h{static{this.properties={mechanismId:{type:String,attribute:"mechanism-id"},kind:{type:String,reflect:!0},href:{type:String},label:{type:String},detail:{type:String}}}constructor(){super(),this.kind="link",this.href="",this.label="",this.detail=""}static{this.styles=[...h.styles,k,u`
2607
2678
  :host { display: block; }
2608
2679
  a { display: inline-flex; align-items: center; min-height: ${t.targetMin}; min-width: ${t.targetMin};
2609
2680
  color: ${t.link}; text-decoration: underline; overflow-wrap: anywhere; max-width: 100%; }
@@ -2613,48 +2684,48 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2613
2684
  /* An address is written one line at a time, and opening hours are often one
2614
2685
  day to a line. Long unbroken values still wrap at 320px (1.4.10). */
2615
2686
  .detail { white-space: pre-line; overflow-wrap: anywhere; }
2616
- `]}render(){switch(this.kind){case"phone":case"email":case"address":case"hours":return this.renderContact();default:return this.renderLink()}}renderLink(){return si(this.label)?s`<a part="link" href=${this.href}>${this.label}</a>`:l}renderContact(){let e=si(this.detail);if(!e)return l;let i=si(this.label),a=fr(this.kind,e),o=this.id_("caption"),d=this.id_("detail"),c=i?s`<span class="caption" part="label" id=${o}>${i}</span>`:l,$=a?s`<a part="link" href=${a} aria-labelledby=${i?`${o} ${d}`:l}
2617
- ><span class="detail" part="detail" id=${d}>${e}</span></a>`:s`<span class="detail" part="detail">${e}</span>`;return s`<p class="contact" part="contact">${c}${$}</p>`}};function si(n){return typeof n=="string"?n.trim():""}function fr(n,e){if(n==="phone"){let i=e.replace(/\(0\)/g,"").replace(/[^\d+]/g,"").replace(/(?!^)\+/g,"");return/\d/.test(i)?`tel:${i}`:""}return n==="email"&&/^[^\s@]+@[^\s@]+$/.test(e)?`mailto:${e}`:""}customElements.define("impakt-help",ut);var Di=h`
2618
- :host { --impakt-page-inner: ${u("layout.page-width","1200px")}; }
2687
+ `]}render(){switch(this.kind){case"phone":case"email":case"address":case"hours":return this.renderContact();default:return this.renderLink()}}renderLink(){return ci(this.label)?o`<a part="link" href=${this.href}>${this.label}</a>`:l}renderContact(){let e=ci(this.detail);if(!e)return l;let i=ci(this.label),r=zr(this.kind,e),s=this.id_("caption"),c=this.id_("detail"),p=i?o`<span class="caption" part="label" id=${s}>${i}</span>`:l,$=r?o`<a part="link" href=${r} aria-labelledby=${i?`${s} ${c}`:l}
2688
+ ><span class="detail" part="detail" id=${c}>${e}</span></a>`:o`<span class="detail" part="detail">${e}</span>`;return o`<p class="contact" part="contact">${p}${$}</p>`}};function ci(n){return typeof n=="string"?n.trim():""}function zr(n,e){if(n==="phone"){let i=e.replace(/\(0\)/g,"").replace(/[^\d+]/g,"").replace(/(?!^)\+/g,"");return/\d/.test(i)?`tel:${i}`:""}return n==="email"&&/^[^\s@]+@[^\s@]+$/.test(e)?`mailto:${e}`:""}customElements.define("impakt-help",$t);var Vi=u`
2689
+ :host { --impakt-page-inner: ${d("layout.page-width","1200px")}; }
2619
2690
  :host([width='narrow']) { --impakt-page-inner: 760px; }
2620
2691
  :host([width='wide']) { --impakt-page-inner: 1440px; }
2621
2692
  :host([width='content']) { --impakt-page-inner: 1080px; }
2622
- `,$r=h`
2623
- :host { --impakt-page-margin: ${u("layout.margin.phone","16px")}; }
2624
- @container impakt-page (min-width: 40rem) { .frame { --impakt-page-margin: ${u("layout.margin.tablet","32px")}; } }
2625
- @container impakt-page (min-width: 64rem) { .frame { --impakt-page-margin: ${u("layout.margin.desktop","64px")}; } }
2626
- `,mt=class extends p{constructor(){super();this.place=()=>{let i=this.querySelector('impakt-hero[treatment="cover"]'),a=getComputedStyle(this).getPropertyValue("--impakt-bleed").trim()==="0",o=!!i&&!a&&this.opensOn(i);if(this.toggleAttribute("floating",o),!o)return;let d=this.renderRoot.querySelector(".frame");d&&this.style.setProperty("--impakt-header-top",`${Math.round(i.getBoundingClientRect().top-d.getBoundingClientRect().top)}px`)};this.width="standard",this.stickyHeader=!1,this.skipText="Skip to content",this.noHeader=!1,this.noFooter=!1}static{this.properties={width:{type:String,reflect:!0},stickyHeader:{type:Boolean,reflect:!0,attribute:"sticky-header"},skipText:{type:String,attribute:"skip-text"},noHeader:{type:Boolean,reflect:!0,attribute:"no-header"},noFooter:{type:Boolean,reflect:!0,attribute:"no-footer"}}}static{this.styles=[...p.styles,k,Di,$r,h`
2693
+ `,Mr=u`
2694
+ :host { --impakt-page-margin: ${d("layout.margin.phone","16px")}; }
2695
+ @container impakt-page (min-width: 40rem) { .frame { --impakt-page-margin: ${d("layout.margin.tablet","32px")}; } }
2696
+ @container impakt-page (min-width: 64rem) { .frame { --impakt-page-margin: ${d("layout.margin.desktop","64px")}; } }
2697
+ `,xt=class extends h{constructor(){super();this.place=()=>{let i=this.querySelector('impakt-hero[treatment="cover"]'),r=getComputedStyle(this).getPropertyValue("--impakt-bleed").trim()==="0",s=!!i&&!r&&this.opensOn(i);if(this.toggleAttribute("floating",s),!s)return;let c=this.renderRoot.querySelector(".frame");c&&this.style.setProperty("--impakt-header-top",`${Math.round(i.getBoundingClientRect().top-c.getBoundingClientRect().top)}px`)};this.width="standard",this.stickyHeader=!1,this.skipText="Skip to content",this.noHeader=!1,this.noFooter=!1}static{this.properties={width:{type:String,reflect:!0},stickyHeader:{type:Boolean,reflect:!0,attribute:"sticky-header"},skipText:{type:String,attribute:"skip-text"},noHeader:{type:Boolean,reflect:!0,attribute:"no-header"},noFooter:{type:Boolean,reflect:!0,attribute:"no-footer"}}}static{this.styles=[...h.styles,k,Vi,Mr,u`
2627
2698
  :host { display: block; container: impakt-page / inline-size; }
2628
2699
  .frame { position: relative; display: flex; flex-direction: column; min-block-size: 100%; overflow-x: clip; }
2629
2700
  .inner { box-sizing: border-box; inline-size: 100%; max-inline-size: calc(var(--impakt-page-inner) + 2 * var(--impakt-page-margin)); margin-inline: auto; padding-inline: var(--impakt-page-margin); }
2630
- header { background: ${u("color.surface.header","transparent")}; color: ${u("color.text.on-header","inherit")}; padding-block: ${r(4)}; }
2701
+ header { background: ${d("color.surface.header","transparent")}; color: ${d("color.text.on-header","inherit")}; padding-block: ${a(4)}; }
2631
2702
  /* What sits in the header and footer takes their text colour, so words on a dark footer stay readable. */
2632
- header { --impakt-color-text-default: ${u("color.text.on-header","inherit")}; --impakt-color-text-heading: ${u("color.text.on-header","inherit")}; --impakt-color-text-link: ${u("color.text.on-header","inherit")}; --impakt-color-text-link-hover: ${u("color.text.on-header","inherit")}; }
2633
- footer { --impakt-color-text-default: ${u("color.text.on-footer","inherit")}; --impakt-color-text-heading: ${u("color.text.on-footer","inherit")}; --impakt-color-text-muted: ${u("color.text.on-footer","inherit")}; --impakt-color-text-link: ${u("color.text.on-footer","inherit")}; --impakt-color-text-link-hover: ${u("color.text.on-footer","inherit")}; }
2703
+ header { --impakt-color-text-default: ${d("color.text.on-header","inherit")}; --impakt-color-text-heading: ${d("color.text.on-header","inherit")}; --impakt-color-text-link: ${d("color.text.on-header","inherit")}; --impakt-color-text-link-hover: ${d("color.text.on-header","inherit")}; }
2704
+ footer { --impakt-color-text-default: ${d("color.text.on-footer","inherit")}; --impakt-color-text-heading: ${d("color.text.on-footer","inherit")}; --impakt-color-text-muted: ${d("color.text.on-footer","inherit")}; --impakt-color-text-link: ${d("color.text.on-footer","inherit")}; --impakt-color-text-link-hover: ${d("color.text.on-footer","inherit")}; }
2634
2705
  :host([sticky-header]) header { position: sticky; inset-block-start: 0; z-index: 10; }
2635
- main { flex: 1; padding-block: ${r(6)} ${r(10)}; }
2706
+ main { flex: 1; padding-block: ${a(6)} ${a(10)}; }
2636
2707
  main:focus { outline: none; }
2637
2708
  /* A page that opens on a full-picture hero: the header floats over it as a rounded bar. */
2638
- :host([floating]) header { position: absolute; z-index: 20; inset-inline: 0; inset-block-start: var(--impakt-header-top, 0px); padding-block: ${r(6)} 0; background: transparent; border: 0; }
2639
- :host([floating]) header .inner { inline-size: calc(100% - 2 * var(--impakt-page-margin)); max-inline-size: var(--impakt-page-inner); padding: ${r(3)} ${r(4)} ${r(3)} ${r(6)}; background: ${u("color.surface.header","#fff")}; border-radius: ${t.radius2xl}; box-shadow: ${t.shadowLg}; }
2709
+ :host([floating]) header { position: absolute; z-index: 20; inset-inline: 0; inset-block-start: var(--impakt-header-top, 0px); padding-block: ${a(6)} 0; background: transparent; border: 0; }
2710
+ :host([floating]) header .inner { inline-size: calc(100% - 2 * var(--impakt-page-margin)); max-inline-size: var(--impakt-page-inner); padding: ${a(3)} ${a(4)} ${a(3)} ${a(6)}; background: ${d("color.surface.header","#fff")}; border-radius: ${t.radius2xl}; box-shadow: ${t.shadowLg}; }
2640
2711
  :host([floating]) main { padding-block-start: 0; }
2641
- footer { background: ${u("color.surface.footer","transparent")}; color: ${u("color.text.on-footer","inherit")}; padding-block: ${r(8)}; border-block-start: ${t.borderThin} solid ${u("color.border.subtle","transparent")}; }
2642
- .skip { position: absolute; inset-inline-start: ${r(2)}; inset-block-start: ${r(2)}; z-index: 20; padding: ${r(2)} ${r(4)}; background: ${t.surfaceCard}; color: ${t.link}; border-radius: ${t.radius}; transform: translateY(-200%); }
2712
+ footer { background: ${d("color.surface.footer","transparent")}; color: ${d("color.text.on-footer","inherit")}; padding-block: ${a(8)}; border-block-start: ${t.borderThin} solid ${d("color.border.subtle","transparent")}; }
2713
+ .skip { position: absolute; inset-inline-start: ${a(2)}; inset-block-start: ${a(2)}; z-index: 20; padding: ${a(2)} ${a(4)}; background: ${t.surfaceCard}; color: ${t.link}; border-radius: ${t.radius}; transform: translateY(-200%); }
2643
2714
  .skip:not(:focus) { clip-path: inset(50%); }
2644
2715
  .skip:focus { transform: none; }
2645
2716
  .empty { display: none; }
2646
- `]}hasSlot(i){return(i==="header"?this.noHeader:this.noFooter)?!1:it?!0:Array.from(this.children).some(a=>a.getAttribute("slot")===i)}skip(i){i.preventDefault();let a=this.renderRoot.querySelector("main");a?.focus(),a?.scrollIntoView()}render(){let i=this.hasSlot("header"),a=this.hasSlot("footer");return s`<div class="frame" part="frame">
2717
+ `]}hasSlot(i){return(i==="header"?this.noHeader:this.noFooter)?!1:nt?!0:Array.from(this.children).some(r=>r.getAttribute("slot")===i)}skip(i){i.preventDefault();let r=this.renderRoot.querySelector("main");r?.focus(),r?.scrollIntoView()}render(){let i=this.hasSlot("header"),r=this.hasSlot("footer");return o`<div class="frame" part="frame">
2647
2718
  <a class="skip" href="#content" part="skip" @click=${this.skip}>${this.skipText}</a>
2648
- ${i?s`<header part="header"><div class="inner"><slot name="header"></slot></div></header>`:l}
2719
+ ${i?o`<header part="header"><div class="inner"><slot name="header"></slot></div></header>`:l}
2649
2720
  <main id="content" tabindex="-1" part="main"><div class="inner"><slot></slot></div></main>
2650
- ${a?s`<footer part="footer"><div class="inner"><slot name="footer"></slot></div></footer>`:l}
2651
- </div>`}opensOn(i){for(let a of Array.from(this.querySelectorAll("*"))){if(a===i)return!0;if(!a.closest('[slot="header"],[slot="footer"]')&&a.tagName.startsWith("IMPAKT-")&&!/^IMPAKT-(STACK|SECTION|GRID|ANNOUNCEMENT)$/.test(a.tagName))return!1}return!1}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(()=>this.requestUpdate()),this.observer.observe(this,{childList:!0,attributes:!0,subtree:!1,attributeFilter:["slot"]}),this.watcher=new MutationObserver(this.place),this.watcher.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["treatment"]}),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(this.place),this.resize.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect(),this.watcher?.disconnect(),this.resize?.disconnect()}firstUpdated(){this.place()}},gt=class extends p{static{this.properties={tone:{type:String,reflect:!0},padding:{type:String,reflect:!0},width:{type:String,reflect:!0},bleed:{type:Boolean,reflect:!0},pattern:{type:String,reflect:!0},label:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.tone="none",this.padding="lg",this.width="standard",this.bleed=!0,this.pattern="none",this.label="",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...p.styles,I,Di,h`
2721
+ ${r?o`<footer part="footer"><div class="inner"><slot name="footer"></slot></div></footer>`:l}
2722
+ </div>`}opensOn(i){for(let r of Array.from(this.querySelectorAll("*"))){if(r===i)return!0;if(!r.closest('[slot="header"],[slot="footer"]')&&r.tagName.startsWith("IMPAKT-")&&!/^IMPAKT-(STACK|SECTION|GRID|ANNOUNCEMENT)$/.test(r.tagName))return!1}return!1}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(()=>this.requestUpdate()),this.observer.observe(this,{childList:!0,attributes:!0,subtree:!1,attributeFilter:["slot"]}),this.watcher=new MutationObserver(this.place),this.watcher.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["treatment"]}),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(this.place),this.resize.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect(),this.watcher?.disconnect(),this.resize?.disconnect()}firstUpdated(){this.place()}},yt=class extends h{static{this.properties={tone:{type:String,reflect:!0},padding:{type:String,reflect:!0},width:{type:String,reflect:!0},bleed:{type:Boolean,reflect:!0},pattern:{type:String,reflect:!0},label:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.tone="none",this.padding="lg",this.width="standard",this.bleed=!0,this.pattern="none",this.label="",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,Vi,u`
2652
2723
  :host { display: block; --impakt-page-margin: inherit; }
2653
2724
  /* What a solid card on a brand band goes back to, since the band repaints these for its own text. */
2654
2725
  :host([tone='brand']) { --impakt-solid-card: ${t.surfaceCard}; --impakt-solid-text: ${t.text}; --impakt-solid-heading: var(--impakt-color-text-heading, ${t.text}); --impakt-solid-muted: ${t.textMuted}; }
2655
2726
  .band { box-sizing: border-box; border-radius: ${t.radiusLg}; }
2656
2727
  /* --impakt-bleed is 0 while editing, so a full-width block stays inside the box it is being edited in. */
2657
- :host([bleed]) .band { border-radius: 0; margin-inline: calc(var(--impakt-bleed, 1) * (50% - 50vw)); padding-inline: max(${r(4)}, calc(var(--impakt-bleed, 1) * (50vw - 50%))); }
2728
+ :host([bleed]) .band { border-radius: 0; margin-inline: calc(var(--impakt-bleed, 1) * (50% - 50vw)); padding-inline: max(${d("section.gutter","16px")}, calc(var(--impakt-bleed, 1) * (50vw - 50%))); }
2658
2729
  :host([tone='subtle']) .band { background: ${t.surfaceSubtle}; }
2659
2730
  :host([tone='inset']) .band { background: ${t.surfaceInset}; }
2660
2731
  :host([tone='card']) .band { background: ${t.surfaceCard}; }
@@ -2671,7 +2742,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2671
2742
  :host([tone='brand']) .band { background: ${t.brand}; color: ${t.onBrand}; --impakt-eyebrow: ${t.onBrand}; --impakt-color-surface-card: color-mix(in srgb, ${t.onBrand} 10%, transparent); --impakt-color-text-heading: ${t.onBrand}; --impakt-color-text-default: ${t.onBrand}; --impakt-color-text-muted: ${t.onBrand}; --impakt-color-text-link: ${t.onBrand}; --impakt-color-text-link-hover: ${t.onBrand}; }
2672
2743
  /* Ink and accent bands take their colours from the host, because the band repaints the text colour for what is inside it. */
2673
2744
  :host([tone='ink']) { --impakt-band: ${t.text}; --impakt-band-on: ${t.surfaceCard}; --impakt-band-muted: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); --impakt-solid-card: ${t.surfaceCard}; --impakt-solid-text: ${t.text}; --impakt-solid-heading: var(--impakt-color-text-heading, ${t.text}); --impakt-solid-muted: ${t.textMuted}; }
2674
- :host([tone='accent']) { --impakt-band: ${u("color.accent.default","#ffd43b")}; --impakt-band-on: ${u("color.accent.on","#1a1a1a")}; --impakt-band-muted: ${u("color.accent.on","#1a1a1a")}; --impakt-solid-card: ${t.surfaceCard}; --impakt-solid-text: ${t.text}; --impakt-solid-heading: var(--impakt-color-text-heading, ${t.text}); --impakt-solid-muted: ${t.textMuted}; }
2745
+ :host([tone='accent']) { --impakt-band: ${d("color.accent.default","#ffd43b")}; --impakt-band-on: ${d("color.accent.on","#1a1a1a")}; --impakt-band-muted: ${d("color.accent.on","#1a1a1a")}; --impakt-solid-card: ${t.surfaceCard}; --impakt-solid-text: ${t.text}; --impakt-solid-heading: var(--impakt-color-text-heading, ${t.text}); --impakt-solid-muted: ${t.textMuted}; }
2675
2746
  :host(:is([tone='ink'], [tone='accent'])) .band { background-color: var(--impakt-band); color: var(--impakt-band-on); --impakt-eyebrow: var(--impakt-band-muted); --impakt-color-surface-card: color-mix(in srgb, var(--impakt-band-on) 10%, transparent); --impakt-color-text-heading: var(--impakt-band-on); --impakt-color-text-default: var(--impakt-band-on); --impakt-color-text-muted: var(--impakt-band-muted); --impakt-color-text-link: var(--impakt-band-on); --impakt-color-text-link-hover: var(--impakt-band-on); }
2676
2747
  /* On ink the cards are the raised ink with a darker rule (G2 ink-raised and line-inverse), not a wash. */
2677
2748
  :host([tone='ink']) .band {
@@ -2693,46 +2764,46 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2693
2764
  :host([pattern='columns']) .band { background-image: linear-gradient(to right, var(--impakt-pattern-line) 1px, transparent 1px); background-size: 5.625rem 100%; }
2694
2765
  :host([pattern='ruled']) .band { background-image: linear-gradient(to bottom, var(--impakt-pattern-line) 1px, transparent 1px); background-size: 100% 2.5rem; }
2695
2766
  @media (forced-colors: active) { .band { background-image: none !important; } }
2696
- :host(:not([bleed]):not([tone='none'])) .band { padding-inline: ${r(6)}; }
2697
- :host([padding='sm']) .band { padding-block: ${r(4)}; }
2698
- :host([padding='md']) .band { padding-block: ${r(8)}; }
2699
- :host([padding='lg']) .band { padding-block: ${r(12)}; }
2700
- :host([padding='xl']) .band { padding-block: ${r(16)}; }
2701
- :host([padding='2xl']) .band { padding-block: clamp(${r(14)}, 8vw, ${r(28)}); }
2702
- :host([padding='3xl']) .band { padding-block: clamp(${r(16)}, 10vw, ${r(30)}); }
2767
+ :host(:not([bleed]):not([tone='none'])) .band { padding-inline: ${a(6)}; }
2768
+ :host([padding='sm']) .band { padding-block: ${a(4)}; }
2769
+ :host([padding='md']) .band { padding-block: ${a(8)}; }
2770
+ :host([padding='lg']) .band { padding-block: ${a(12)}; }
2771
+ :host([padding='xl']) .band { padding-block: ${a(16)}; }
2772
+ :host([padding='2xl']) .band { padding-block: ${d("section.padding-2xl","clamp(56px, 8vw, 112px)")}; }
2773
+ :host([padding='3xl']) .band { padding-block: clamp(${a(16)}, 10vw, ${a(30)}); }
2703
2774
  .content { max-inline-size: var(--impakt-page-inner); margin-inline: auto; }
2704
- `]}render(){return s`<section class="band" part="band" aria-label=${this.label||l} role=${this.label?l:"presentation"}><div class="content" part="content"><slot></slot></div></section>`}};customElements.define("impakt-page",mt);customElements.define("impakt-section",gt);function Fi(n){if(typeof location>"u"||!n||n.startsWith("#"))return null;let e;try{let a=new URL(n,location.href);if(a.origin!==location.origin)return null;e=a.pathname.replace(/\/$/,"")||"/"}catch{return null}let i=location.pathname.replace(/\/$/,"")||"/";return e===i?"page":e!=="/"&&i.startsWith(`${e}/`)?"section":null}var bt=class extends p{constructor(){super();this.menuOpen=!1;this.needs=0;this.links=[],this.label="Main",this.menuText="Menu",this.menuLook="button",this.size="md",this.align="end",this.fold="measure",this.actionText="",this.actionHref="",this.look="links",this.current=""}static{this.properties={links:{type:Array},label:{type:String},menuText:{type:String,attribute:"menu-text"},menuLook:{type:String,reflect:!0,attribute:"menu-look"},size:{type:String,reflect:!0},align:{type:String,reflect:!0},fold:{type:String,reflect:!0},actionText:{type:String,attribute:"action-text"},actionHref:{type:String,attribute:"action-href"},look:{type:String,reflect:!0},current:{type:String}}}get open(){return this.menuOpen}set open(i){this.menuOpen=i,this.requestUpdate()}static{this.styles=[...p.styles,k,h`
2775
+ `]}render(){return o`<section class="band" part="band" aria-label=${this.label||l} role=${this.label?l:"presentation"}><div class="content" part="content"><slot></slot></div></section>`}};customElements.define("impakt-page",xt);customElements.define("impakt-section",yt);function Ki(n){if(typeof location>"u"||!n||n.startsWith("#"))return null;let e;try{let r=new URL(n,location.href);if(r.origin!==location.origin)return null;e=r.pathname.replace(/\/$/,"")||"/"}catch{return null}let i=location.pathname.replace(/\/$/,"")||"/";return e===i?"page":e!=="/"&&i.startsWith(`${e}/`)?"section":null}var kt=class extends h{constructor(){super();this.menuOpen=!1;this.needs=0;this.links=[],this.label="Main",this.menuText="Menu",this.menuLook="button",this.size="md",this.align="end",this.fold="measure",this.actionText="",this.actionHref="",this.look="links",this.current=""}static{this.properties={links:{type:Array},label:{type:String},menuText:{type:String,attribute:"menu-text"},menuLook:{type:String,reflect:!0,attribute:"menu-look"},size:{type:String,reflect:!0},align:{type:String,reflect:!0},fold:{type:String,reflect:!0},actionText:{type:String,attribute:"action-text"},actionHref:{type:String,attribute:"action-href"},look:{type:String,reflect:!0},current:{type:String}}}get open(){return this.menuOpen}set open(i){this.menuOpen=i,this.requestUpdate()}static{this.styles=[...h.styles,k,u`
2705
2776
  /* It grows to fill a row it sits in, because it measures itself to decide when to fold. */
2706
2777
  :host { display: block; flex: 1 1 8rem; min-inline-size: 0; }
2707
2778
  nav { display: flex; flex-direction: column; position: relative; }
2708
2779
  li { flex: none; }
2709
- ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${r(1)} ${r(6)}; align-items: center; justify-content: flex-end; }
2780
+ ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${a(1)} ${a(6)}; align-items: center; justify-content: flex-end; }
2710
2781
  :host([align='start']) ul { justify-content: flex-start; }
2711
2782
  :host([align='center']) ul { justify-content: center; }
2712
- a { ${z} display: inline-flex; align-items: center; padding: ${r(2)} ${r(1)}; color: inherit; font-weight: ${m("semibold")}; text-decoration: none; border-radius: ${t.radiusSm}; }
2783
+ a { ${z} display: inline-flex; align-items: center; padding: ${a(2)} ${a(1)}; color: inherit; font-weight: ${m("semibold")}; text-decoration: none; border-radius: ${t.radiusSm}; }
2713
2784
  a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
2714
2785
  a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
2715
- .toggle { display: none; ${z} align-items: center; gap: ${r(2)}; align-self: flex-end; padding: ${r(2)} ${r(3)}; font: inherit; font-weight: ${m("semibold")}; color: inherit; background: transparent; border: ${t.borderThin} solid currentColor; border-radius: ${t.radius}; cursor: pointer; }
2786
+ .toggle { display: none; ${z} align-items: center; gap: ${a(2)}; align-self: flex-end; padding: ${a(2)} ${a(3)}; font: inherit; font-weight: ${m("semibold")}; color: inherit; background: transparent; border: ${t.borderThin} solid currentColor; border-radius: ${t.radius}; cursor: pointer; }
2716
2787
  /* When they do not fit, the links fold behind a Menu button and open as a panel under it. */
2717
2788
  :host([folded]) { flex: 0 0 auto; }
2718
2789
  :host([folded]) .toggle { display: inline-flex; }
2719
2790
  :host([menu-look='icon']) .toggle { inline-size: 44px; block-size: 44px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: ${t.brand}; color: ${t.onBrand}; }
2720
2791
  :host([menu-look='icon']) .toggle .words { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
2721
- :host([size='sm']) ul { column-gap: ${r(6)}; }
2792
+ :host([size='sm']) ul { column-gap: ${a(6)}; }
2722
2793
  :host([size='sm']) a { padding-inline: 0; font-size: ${b("sm")}; font-weight: ${m("medium")}; }
2723
- :host([size='sm'][folded]) a { padding-inline: ${r(3)}; }
2724
- :host([folded]) ul { display: none; position: absolute; inset-block-start: calc(100% + ${r(2)}); inset-inline-end: 0; z-index: 30; flex-direction: column; align-items: stretch; gap: 0; min-inline-size: 14rem; padding: ${r(2)}; background: ${t.surfaceCard}; color: ${t.text}; border: ${t.borderThin} solid ${t.border}; border-radius: ${t.radiusLg}; box-shadow: 0 8px 24px rgb(0 0 0 / 14%); }
2794
+ :host([size='sm'][folded]) a { padding-inline: ${a(3)}; }
2795
+ :host([folded]) ul { display: none; position: absolute; inset-block-start: calc(100% + ${a(2)}); inset-inline-end: 0; z-index: 30; flex-direction: column; align-items: stretch; gap: 0; min-inline-size: 14rem; padding: ${a(2)}; background: ${t.surfaceCard}; color: ${t.text}; border: ${t.borderThin} solid ${t.border}; border-radius: ${t.radiusLg}; box-shadow: 0 8px 24px rgb(0 0 0 / 14%); }
2725
2796
  :host([folded]) ul.open { display: flex; }
2726
2797
  :host([folded]) li { text-align: start; }
2727
- :host([folded]) a { display: flex; padding: ${r(3)} ${r(3)}; }
2798
+ :host([folded]) a { display: flex; padding: ${a(3)} ${a(3)}; }
2728
2799
  /* Tabs: a bordered group on the soft surface; the current tab is white with a dot before it. */
2729
2800
  :host([look='tabs']) ul { gap: 0; padding: 3px; background: ${t.surfaceSubtle}; border: ${t.borderThin} solid var(--impakt-color-line-soft, #dcdcd8); }
2730
- :host([look='tabs']) a { min-block-size: 42px; gap: ${r(2)}; padding: 0 ${r(4)}; font-size: ${b("sm")}; font-weight: ${m("regular")}; border-radius: 0; }
2801
+ :host([look='tabs']) a { min-block-size: 42px; gap: ${a(2)}; padding: 0 ${a(4)}; font-size: ${b("sm")}; font-weight: ${m("regular")}; border-radius: 0; }
2731
2802
  :host([look='tabs']) a:hover { text-decoration: none; background: ${t.wash}; }
2732
2803
  :host([look='tabs']) a[aria-current] { text-decoration: none; background: ${t.surfaceCard}; box-shadow: inset 0 0 0 1px var(--impakt-color-line-soft, #dcdcd8); }
2733
2804
  :host([look='tabs']) a[aria-current]::before { content: ''; flex: none; inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; }
2734
2805
  @media (forced-colors: active) { :host([look='tabs']) a[aria-current] { outline: 1px solid CanvasText; } }
2735
- :host([look='tabs'][folded]) ul { padding: ${r(2)}; }
2806
+ :host([look='tabs'][folded]) ul { padding: ${a(2)}; }
2736
2807
  /* With no script the element is never defined, so it cannot measure itself and fold. The links
2737
2808
  wrap onto more lines instead, so they are never cut off or drawn over what is beside them. */
2738
2809
  :host(:not(:defined)) ul { flex-wrap: wrap; row-gap: 0; }
@@ -2748,33 +2819,43 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2748
2819
  :host([fold='narrow']) { flex: 0 0 auto; }
2749
2820
  :host([fold='narrow']) .toggle { display: inline-flex; }
2750
2821
  :host([fold='narrow']) .panel { display: none; }
2751
- :host([fold='narrow']) .panel:popover-open { display: flex; flex-direction: column; gap: ${r(6)}; position: fixed; inset: 0; box-sizing: border-box; inline-size: 100%; block-size: 100%; max-inline-size: none; max-block-size: none; margin: 0; padding: ${r(3)} ${r(4)} calc(${r(6)} + env(safe-area-inset-bottom)); border: 0; overflow: auto; overscroll-behavior: contain; background: ${t.text}; color: ${t.surfaceCard}; }
2752
- :host([fold='narrow']) .close { display: inline-flex; ${z} align-items: center; gap: ${r(2)}; align-self: flex-end; padding: ${r(2)} ${r(3)}; font: inherit; font-weight: ${m("semibold")}; color: inherit; background: transparent; border: ${t.borderThin} solid currentColor; border-radius: ${t.radius}; cursor: pointer; }
2822
+ :host([fold='narrow']) .panel:popover-open { display: flex; flex-direction: column; gap: ${a(6)}; position: fixed; inset: 0; box-sizing: border-box; inline-size: 100%; block-size: 100%; max-inline-size: none; max-block-size: none; margin: 0; padding: ${a(3)} ${a(4)} calc(${a(6)} + env(safe-area-inset-bottom)); border: 0; overflow: auto; overscroll-behavior: contain; background: ${t.text}; color: ${t.surfaceCard}; }
2823
+ :host([fold='narrow']) .close { display: inline-flex; ${z} align-items: center; gap: ${a(2)}; align-self: flex-end; padding: ${a(2)} ${a(3)}; font: inherit; font-weight: ${m("semibold")}; color: inherit; background: transparent; border: ${t.borderThin} solid currentColor; border-radius: ${t.radius}; cursor: pointer; }
2753
2824
  :host([fold='narrow']) ul { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
2754
2825
  :host([fold='narrow']) li { border-block-end: ${t.borderThin} solid color-mix(in srgb, currentColor 22%, transparent); }
2755
- :host([fold='narrow']) li a { display: flex; padding: ${r(4)} 0; font-family: ${t.fontHeading}; font-size: ${b("2xl")}; font-weight: ${m("semibold")}; letter-spacing: -0.02em; }
2756
- :host([fold='narrow']) .action { display: flex; ${z} align-items: center; justify-content: center; margin-block-start: auto; padding: ${r(3)} ${r(4)}; background: ${t.surfaceCard}; color: ${t.text}; font-weight: ${m("semibold")}; text-decoration: none; border-radius: ${t.radius}; }
2826
+ :host([fold='narrow']) li a { display: flex; padding: ${a(4)} 0; font-family: ${t.fontHeading}; font-size: ${b("2xl")}; font-weight: ${m("semibold")}; letter-spacing: -0.02em; }
2827
+ :host([fold='narrow']) .action { display: flex; ${z} align-items: center; justify-content: center; margin-block-start: auto; padding: ${a(3)} ${a(4)}; background: ${t.surfaceCard}; color: ${t.text}; font-weight: ${m("semibold")}; text-decoration: none; border-radius: ${t.radius}; }
2757
2828
  :host([fold='narrow']) .action:hover { text-decoration: underline; }
2829
+ /*
2830
+ * The tabs look, folded: the whole-screen menu is ink, so the tab track's paper and the current tab's white box
2831
+ * are left off, and the tabs are drawn as the menu's large links. The current page keeps its dot and is
2832
+ * underlined, so it is marked by more than colour (1.4.1).
2833
+ */
2834
+ :host([fold='narrow'][look='tabs']) ul { padding: 0; background: transparent; border: 0; }
2835
+ :host([fold='narrow'][look='tabs']) li a { min-block-size: 0; gap: ${a(3)}; align-items: center; padding: ${a(4)} 0; color: inherit; background: transparent; box-shadow: none; }
2836
+ :host([fold='narrow'][look='tabs']) li a:hover { background: transparent; text-decoration: underline; text-underline-offset: 0.25em; }
2837
+ :host([fold='narrow'][look='tabs']) li a[aria-current] { background: transparent; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
2838
+ :host([fold='narrow'][look='tabs']) li a[aria-current]::before { inline-size: 8px; block-size: 8px; }
2758
2839
  }
2759
- `]}fit(){if(this.fold==="narrow"){this.removeAttribute("folded");return}if(!this.hasUpdated)return;let i=this.getBoundingClientRect().width;if(i<=0)return;if(!this.needs){this.removeAttribute("folded");let o=Array.from(this.renderRoot.querySelectorAll("li")),d=Number.parseFloat(getComputedStyle(this.renderRoot.querySelector("ul")).columnGap)||0;this.needs=o.reduce((c,$)=>c+$.getBoundingClientRect().width,0)+d*Math.max(0,o.length-1)}let a=this.needs>i;this.toggleAttribute("folded",a),!a&&this.menuOpen&&(this.open=!1)}updated(i){(i.has("links")||i.has("fold"))&&(this.needs=0,this.fit())}connectedCallback(){super.connectedCallback(),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(()=>this.fit()),this.resize.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resize?.disconnect()}toggle(){this.open=!this.open}onKey(i){i.key!=="Escape"||!this.open||(this.open=!1,this.renderRoot.querySelector(".toggle")?.focus())}renderNarrow(){let i=this.id_("panel");return s`<nav aria-label=${this.label||l} part="nav">
2840
+ `]}fit(){if(this.fold==="narrow"){this.removeAttribute("folded");return}if(!this.hasUpdated)return;let i=this.getBoundingClientRect().width;if(i<=0)return;if(!this.needs){this.removeAttribute("folded");let s=Array.from(this.renderRoot.querySelectorAll("li")),c=Number.parseFloat(getComputedStyle(this.renderRoot.querySelector("ul")).columnGap)||0;this.needs=s.reduce((p,$)=>p+$.getBoundingClientRect().width,0)+c*Math.max(0,s.length-1)}let r=this.needs>i;this.toggleAttribute("folded",r),!r&&this.menuOpen&&(this.open=!1)}updated(i){(i.has("links")||i.has("fold"))&&(this.needs=0,this.fit())}connectedCallback(){super.connectedCallback(),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(()=>this.fit()),this.resize.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resize?.disconnect()}toggle(){this.open=!this.open}onKey(i){i.key!=="Escape"||!this.open||(this.open=!1,this.renderRoot.querySelector(".toggle")?.focus())}renderNarrow(){let i=this.id_("panel");return o`<nav aria-label=${this.label||l} part="nav">
2760
2841
  <button class="toggle" type="button" popovertarget=${i}>${M(this.menuLook==="icon"?"menu-two":"menu")}<span class="words">${this.menuText}</span></button>
2761
2842
  <div id=${i} class="panel" popover="auto" part="panel">
2762
2843
  <button class="close" type="button" popovertarget=${i} popovertargetaction="hide">${M("close")}<span>${S("Close")}</span></button>
2763
2844
  <ul part="list">
2764
- ${(this.links??[]).map(a=>{let o=this.current?a.href===this.current?"page":null:Fi(a.href);return s`<li><a href=${a.href} aria-current=${o==="page"?"page":o==="section"?"true":l} part="link">${a.label}</a></li>`})}
2845
+ ${(this.links??[]).map(r=>{let s=this.current?r.href===this.current?"page":null:Ki(r.href);return o`<li><a href=${r.href} aria-current=${s==="page"?"page":s==="section"?"true":l} part="link">${r.label}</a></li>`})}
2765
2846
  </ul>
2766
- ${this.actionText?s`<a class="action" href=${this.actionHref||"#"} part="action">${this.actionText}</a>`:l}
2847
+ ${this.actionText?o`<a class="action" href=${this.actionHref||"#"} part="action">${this.actionText}</a>`:l}
2767
2848
  </div>
2768
- </nav>`}render(){if(this.fold==="narrow")return this.renderNarrow();let i=this.id_("links");return s`<nav aria-label=${this.label||l} part="nav" @keydown=${this.onKey}>
2849
+ </nav>`}render(){if(this.fold==="narrow")return this.renderNarrow();let i=this.id_("links");return o`<nav aria-label=${this.label||l} part="nav" @keydown=${this.onKey}>
2769
2850
  <button class="toggle" type="button" aria-expanded=${this.open?"true":"false"} aria-controls=${i} @click=${this.toggle}>${M(this.open?"close":this.menuLook==="icon"?"menu-two":"menu")}<span class="words">${this.menuText}</span></button>
2770
2851
  <ul id=${i} class=${this.open?"open":""} part="list">
2771
- ${(this.links??[]).map(a=>{let o=this.current?a.href===this.current?"page":null:Fi(a.href);return s`<li><a href=${a.href} aria-current=${o==="page"?"page":o==="section"?"true":l} part="link">${a.label}</a></li>`})}
2852
+ ${(this.links??[]).map(r=>{let s=this.current?r.href===this.current?"page":null:Ki(r.href);return o`<li><a href=${r.href} aria-current=${s==="page"?"page":s==="section"?"true":l} part="link">${r.label}</a></li>`})}
2772
2853
  </ul>
2773
- </nav>`}},ft=class extends p{static{this.properties={items:{type:Array},label:{type:String},look:{type:String,reflect:!0}}}constructor(){super(),this.items=[],this.label="Breadcrumb",this.look="default"}static{this.styles=[...p.styles,k,h`
2854
+ </nav>`}},vt=class extends h{static{this.properties={items:{type:Array},label:{type:String},look:{type:String,reflect:!0}}}constructor(){super(),this.items=[],this.label="Breadcrumb",this.look="default"}static{this.styles=[...h.styles,k,u`
2774
2855
  :host { display: block; font-size: ${b("sm")}; }
2775
- ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: ${r(1)}; }
2776
- li { display: inline-flex; align-items: center; gap: ${r(1)}; }
2777
- li + li::before { content: ''; inline-size: 0.45em; block-size: 0.45em; border-block-start: 1.5px solid ${t.textMuted}; border-inline-end: 1.5px solid ${t.textMuted}; transform: rotate(45deg); margin-inline: ${r(1)} ${r(2)}; }
2856
+ ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: ${a(1)}; }
2857
+ li { display: inline-flex; align-items: center; gap: ${a(1)}; }
2858
+ li + li::before { content: ''; inline-size: 0.45em; block-size: 0.45em; border-block-start: 1.5px solid ${t.textMuted}; border-inline-end: 1.5px solid ${t.textMuted}; transform: rotate(45deg); margin-inline: ${a(1)} ${a(2)}; }
2778
2859
  a { color: ${t.link}; text-decoration: underline; text-underline-offset: 0.2em; border-radius: ${t.radiusSm}; }
2779
2860
  a:hover { color: ${t.linkHover}; }
2780
2861
  [aria-current] { color: ${t.textMuted}; }
@@ -2783,79 +2864,79 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2783
2864
  :host([look='mono']) a { color: ${t.textMuted}; text-decoration: none; }
2784
2865
  :host([look='mono']) a:hover { color: ${t.text}; text-decoration: underline; text-decoration-thickness: 1px; }
2785
2866
  :host([look='mono']) [aria-current] { color: ${t.text}; }
2786
- :host([look='mono']) li + li::before { content: '/'; inline-size: auto; block-size: auto; border: 0; transform: none; margin-inline: ${r(1)}; color: ${t.textMuted}; }
2867
+ :host([look='mono']) li + li::before { content: '/'; inline-size: auto; block-size: auto; border: 0; transform: none; margin-inline: ${a(1)}; color: ${t.textMuted}; }
2787
2868
  .sr-only { ${T} }
2788
- `]}render(){let e=this.items??[];return s`<nav aria-label=${this.label} part="nav"><ol>
2789
- ${e.map((i,a)=>s`<li>${a===e.length-1?s`<span aria-current="page">${i.label}</span>`:s`<a href=${i.href} part="link">${i.label}</a>`}</li>`)}
2790
- </ol></nav>`}};customElements.define("impakt-nav",bt);customElements.define("impakt-breadcrumbs",ft);var $t=class extends p{static{this.properties={spacing:{type:String,reflect:!0},tone:{type:String,reflect:!0}}}constructor(){super(),this.spacing="md",this.tone="subtle"}static{this.styles=[...p.styles,h`
2869
+ `]}render(){let e=this.items??[];return o`<nav aria-label=${this.label} part="nav"><ol>
2870
+ ${e.map((i,r)=>o`<li>${r===e.length-1?o`<span aria-current="page">${i.label}</span>`:o`<a href=${i.href} part="link">${i.label}</a>`}</li>`)}
2871
+ </ol></nav>`}};customElements.define("impakt-nav",kt);customElements.define("impakt-breadcrumbs",vt);var wt=class extends h{static{this.properties={spacing:{type:String,reflect:!0},tone:{type:String,reflect:!0}}}constructor(){super(),this.spacing="md",this.tone="subtle"}static{this.styles=[...h.styles,u`
2791
2872
  :host { display: block; }
2792
- hr { margin: ${r(4)} 0; border: 0; border-block-start: ${t.borderThin} solid ${t.border}; opacity: 0.5; }
2873
+ hr { margin: ${a(4)} 0; border: 0; border-block-start: ${t.borderThin} solid ${t.border}; opacity: 0.5; }
2793
2874
  :host([tone='strong']) hr { opacity: 1; border-block-start-width: ${t.borderThick}; }
2794
- :host([spacing='sm']) hr { margin-block: ${r(2)}; }
2795
- :host([spacing='lg']) hr { margin-block: ${r(8)}; }
2796
- :host([spacing='xl']) hr { margin-block: ${r(12)}; }
2797
- `]}render(){return s`<hr aria-hidden="true" part="line" />`}},xt=class extends p{static{this.properties={size:{type:String,reflect:!0}}}constructor(){super(),this.size="md"}static{this.styles=[...p.styles,h`
2798
- :host { display: block; block-size: ${r(4)}; }
2799
- :host([size='sm']) { block-size: ${r(2)}; }
2800
- :host([size='lg']) { block-size: ${r(8)}; }
2801
- :host([size='xl']) { block-size: ${r(12)}; }
2802
- :host([size='2xl']) { block-size: ${r(16)}; }
2803
- `]}render(){return s``}},yt=class extends p{static{this.styles=[...p.styles,h`:host { ${T} }`]}render(){return s`<slot></slot>`}},kt=class extends p{static{this.properties={items:{type:Array},selected:{type:String,reflect:!0},label:{type:String},twoRows:{type:Boolean,reflect:!0,attribute:"two-rows"},look:{type:String,reflect:!0}}}constructor(){super(),this.items=[],this.selected="",this.label="",this.twoRows=!1,this.look="line"}static{this.styles=[...p.styles,k,A("[role='tab']"),h`
2875
+ :host([spacing='sm']) hr { margin-block: ${a(2)}; }
2876
+ :host([spacing='lg']) hr { margin-block: ${a(8)}; }
2877
+ :host([spacing='xl']) hr { margin-block: ${a(12)}; }
2878
+ `]}render(){return o`<hr aria-hidden="true" part="line" />`}},St=class extends h{static{this.properties={size:{type:String,reflect:!0}}}constructor(){super(),this.size="md"}static{this.styles=[...h.styles,u`
2879
+ :host { display: block; block-size: ${a(4)}; }
2880
+ :host([size='sm']) { block-size: ${a(2)}; }
2881
+ :host([size='lg']) { block-size: ${a(8)}; }
2882
+ :host([size='xl']) { block-size: ${a(12)}; }
2883
+ :host([size='2xl']) { block-size: ${a(16)}; }
2884
+ `]}render(){return o``}},Tt=class extends h{static{this.styles=[...h.styles,u`:host { ${T} }`]}render(){return o`<slot></slot>`}},zt=class extends h{static{this.properties={items:{type:Array},selected:{type:String,reflect:!0},label:{type:String},twoRows:{type:Boolean,reflect:!0,attribute:"two-rows"},look:{type:String,reflect:!0}}}constructor(){super(),this.items=[],this.selected="",this.label="",this.twoRows=!1,this.look="line"}static{this.styles=[...h.styles,k,C("[role='tab']"),u`
2804
2885
  /* Only the two-row layout needs a size container. Making every tab set one
2805
2886
  would take its width from its parent alone, so in a flex row, with no
2806
2887
  width given, it would shrink to nothing. In a row it may still shrink
2807
2888
  below its tabs, which then scroll, rather than widen the page. */
2808
2889
  :host { display: block; min-inline-size: 0; }
2809
2890
  :host([two-rows]) { container-type: inline-size; }
2810
- [role='tablist'] { display: flex; gap: ${r(1)}; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; border-block-end: ${t.borderThin} solid ${t.border}; }
2811
- [role='tab'] { ${z} position: relative; flex: none; padding: ${r(3)} ${r(4)}; font: inherit; font-weight: ${m("semibold")}; white-space: nowrap; color: ${t.textMuted}; background: transparent; border: 0; border-block-end: 3px solid transparent; margin-block-end: -1px; cursor: pointer; border-radius: ${t.radius} ${t.radius} 0 0; }
2891
+ [role='tablist'] { display: flex; gap: ${a(1)}; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; border-block-end: ${t.borderThin} solid ${t.border}; }
2892
+ [role='tab'] { ${z} position: relative; flex: none; padding: ${a(3)} ${a(4)}; font: inherit; font-weight: ${m("semibold")}; white-space: nowrap; color: ${t.textMuted}; background: transparent; border: 0; border-block-end: 3px solid transparent; margin-block-end: -1px; cursor: pointer; border-radius: ${t.radius} ${t.radius} 0 0; }
2812
2893
  /* Inside a box that scrolls the ring would be clipped, so it is drawn inside the tab. */
2813
2894
  [role='tab']:focus-visible { box-shadow: inset 0 0 0 2px ${t.text}, inset 0 0 0 4px ${t.surfaceCard}; }
2814
2895
  [role='tab']:hover { color: ${t.text}; background: ${t.surfaceInset}; }
2815
2896
  [role='tab'][aria-selected='true'] { color: ${t.link}; border-block-end-color: currentColor; }
2816
- [role='tabpanel'] { padding-block: ${r(5)}; line-height: ${H("normal")}; }
2897
+ [role='tabpanel'] { padding-block: ${a(5)}; line-height: ${P("normal")}; }
2817
2898
  .body { white-space: pre-line; }
2818
2899
  @container (max-width: 40rem) {
2819
- :host([two-rows]) [role='tablist'].many { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); overflow: visible; border-block-end: 0; gap: ${r(1)}; }
2820
- :host([two-rows]) .many [role='tab'] { white-space: normal; padding-inline: ${r(2)}; margin: 0; border-block-end-width: 3px; border-block-end-color: ${t.rule}; border-radius: ${t.radius}; }
2900
+ :host([two-rows]) [role='tablist'].many { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); overflow: visible; border-block-end: 0; gap: ${a(1)}; }
2901
+ :host([two-rows]) .many [role='tab'] { white-space: normal; padding-inline: ${a(2)}; margin: 0; border-block-end-width: 3px; border-block-end-color: ${t.rule}; border-radius: ${t.radius}; }
2821
2902
  :host([two-rows]) .many [role='tab'][aria-selected='true'] { border-block-end-color: currentColor; background: ${t.brandSubtle}; }
2822
2903
  }
2823
2904
  @media (forced-colors: active) { [role='tab'][aria-selected='true'] { border-block-end-color: Highlight; } }
2824
- .count { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 20px; block-size: 20px; margin-inline-start: ${r(2)}; padding: 0 ${r(1.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-size: 12px; font-weight: ${m("semibold")}; background: ${t.brand}; color: ${t.onBrand}; font-variant-numeric: tabular-nums; }
2905
+ .count { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 20px; block-size: 20px; margin-inline-start: ${a(2)}; padding: 0 ${a(1.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-size: 12px; font-weight: ${m("semibold")}; background: ${t.brand}; color: ${t.onBrand}; font-variant-numeric: tabular-nums; }
2825
2906
  .sr-only { ${T} }
2826
2907
  /* Links drawn as tabs. */
2827
- nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${r(1)}; overflow-x: auto; scrollbar-width: thin; border-block-end: ${t.borderThin} solid ${t.border}; }
2828
- nav a { ${z} position: relative; display: inline-flex; align-items: center; flex: none; padding: ${r(3)} ${r(4)}; font-weight: ${m("semibold")}; white-space: nowrap; color: ${t.textMuted}; text-decoration: none; border-block-end: 3px solid transparent; margin-block-end: -1px; border-radius: ${t.radius} ${t.radius} 0 0; }
2908
+ nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${a(1)}; overflow-x: auto; scrollbar-width: thin; border-block-end: ${t.borderThin} solid ${t.border}; }
2909
+ nav a { ${z} position: relative; display: inline-flex; align-items: center; flex: none; padding: ${a(3)} ${a(4)}; font-weight: ${m("semibold")}; white-space: nowrap; color: ${t.textMuted}; text-decoration: none; border-block-end: 3px solid transparent; margin-block-end: -1px; border-radius: ${t.radius} ${t.radius} 0 0; }
2829
2910
  nav a:hover { color: ${t.text}; background: ${t.surfaceInset}; }
2830
2911
  nav a[aria-current='page'] { color: ${t.link}; border-block-end-color: currentColor; }
2831
2912
  nav a:focus-visible { box-shadow: inset 0 0 0 2px ${t.text}, inset 0 0 0 4px ${t.surfaceCard}; outline: none; }
2832
2913
  /* The pill look, for either kind. Its corners come from the brand's radius, so it is square under Noire. */
2833
- :host([look='pill']) :is([role='tablist'], nav ul) { padding: ${r(1)}; border: 0; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); background: ${t.surfaceCard}; gap: ${r(.5)}; }
2834
- :host([look='pill']) :is([role='tab'], nav a) { padding: ${r(2)} ${r(4)}; margin: 0; border: 0; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-weight: ${m("medium")}; color: ${t.text}; }
2914
+ :host([look='pill']) :is([role='tablist'], nav ul) { padding: ${a(1)}; border: 0; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); background: ${t.surfaceCard}; gap: ${a(.5)}; }
2915
+ :host([look='pill']) :is([role='tab'], nav a) { padding: ${a(2)} ${a(4)}; margin: 0; border: 0; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-weight: ${m("medium")}; color: ${t.text}; }
2835
2916
  :host([look='pill']) :is([role='tab'], nav a):hover { background: ${t.surfaceInset}; }
2836
2917
  :host([look='pill']) :is([role='tab'][aria-selected='true'], nav a[aria-current='page']) { background: ${t.text}; color: var(--impakt-color-text-inverse, var(--impakt-solid-card, ${t.surfaceCard})); }
2837
2918
  @media (forced-colors: active) { :host([look='pill']) :is([role='tab'][aria-selected='true'], nav a[aria-current='page']) { border: 2px solid Highlight; } }
2838
- `]}countOf(e){return typeof e.count!="number"?l:e.countLabel?s`<span class="count" aria-hidden="true">${e.count}</span><span class="sr-only">, ${e.countLabel}</span>`:s`<span class="count">${e.count}</span>`}get linked(){let e=this.items??[];return e.length>0&&e.every(i=>!!i.href)}current(){let e=this.items??[];return e.some(i=>i.id===this.selected)?this.selected:e[0]?.id??""}choose(e,i){e!==this.current()&&(this.selected=e,this.dispatchEvent(new CustomEvent("impakt-change",{detail:{value:e},bubbles:!0,composed:!0})),i&&this.updateComplete.then(()=>this.renderRoot.querySelector(`#${this.id_(`tab-${e}`)}`)?.focus({preventScroll:!0})))}onKey(e){let i=this.items??[],a=i.findIndex(d=>d.id===this.current()),o={ArrowRight:a+1,ArrowLeft:a-1,Home:0,End:i.length-1}[e.key];o===void 0||!i.length||(e.preventDefault(),this.choose(i[(o+i.length)%i.length].id,!0))}reveal(){let e=this.renderRoot.querySelector("[role='tablist']"),i=this.renderRoot.querySelector("[role='tab'][aria-selected='true']");if(!e||!i||e.scrollWidth<=e.clientWidth)return;let a=i.offsetLeft-e.offsetLeft,o=a+i.offsetWidth;a<e.scrollLeft?e.scrollLeft=a-16:o>e.scrollLeft+e.clientWidth&&(e.scrollLeft=o-e.clientWidth+16)}updated(e){(e.has("selected")||e.has("items"))&&this.reveal()}render(){let e=this.items??[],i=this.current();if(this.linked)return s`<nav aria-label=${this.label||l} part="tabs"><ul>
2839
- ${e.map(o=>s`<li><a href=${o.href} part="tab" aria-current=${o.id===i?"page":l} @click=${d=>de(this,d,{href:o.href,id:o.id})}>${o.label}${this.countOf(o)}</a></li>`)}
2840
- </ul></nav>`;let a=e.length>4;return s`<div role="tablist" aria-label=${this.label||l} part="tabs" class=${a?"many":""} style=${a?`--columns:${Math.ceil(e.length/2)}`:l} @keydown=${this.onKey}>
2841
- ${e.map(o=>s`<button role="tab" type="button" id=${this.id_(`tab-${o.id}`)} aria-selected=${o.id===i?"true":"false"} aria-controls=${this.id_(`panel-${o.id}`)} tabindex=${o.id===i?"0":"-1"} @click=${()=>this.choose(o.id,!1)}>${o.label}${this.countOf(o)}</button>`)}
2919
+ `]}countOf(e){return typeof e.count!="number"?l:e.countLabel?o`<span class="count" aria-hidden="true">${e.count}</span><span class="sr-only">, ${e.countLabel}</span>`:o`<span class="count">${e.count}</span>`}get linked(){let e=this.items??[];return e.length>0&&e.every(i=>!!i.href)}current(){let e=this.items??[];return e.some(i=>i.id===this.selected)?this.selected:e[0]?.id??""}choose(e,i){e!==this.current()&&(this.selected=e,this.dispatchEvent(new CustomEvent("impakt-change",{detail:{value:e},bubbles:!0,composed:!0})),i&&this.updateComplete.then(()=>this.renderRoot.querySelector(`#${this.id_(`tab-${e}`)}`)?.focus({preventScroll:!0})))}onKey(e){let i=this.items??[],r=i.findIndex(c=>c.id===this.current()),s={ArrowRight:r+1,ArrowLeft:r-1,Home:0,End:i.length-1}[e.key];s===void 0||!i.length||(e.preventDefault(),this.choose(i[(s+i.length)%i.length].id,!0))}reveal(){let e=this.renderRoot.querySelector("[role='tablist']"),i=this.renderRoot.querySelector("[role='tab'][aria-selected='true']");if(!e||!i||e.scrollWidth<=e.clientWidth)return;let r=i.offsetLeft-e.offsetLeft,s=r+i.offsetWidth;r<e.scrollLeft?e.scrollLeft=r-16:s>e.scrollLeft+e.clientWidth&&(e.scrollLeft=s-e.clientWidth+16)}updated(e){(e.has("selected")||e.has("items"))&&this.reveal()}render(){let e=this.items??[],i=this.current();if(this.linked)return o`<nav aria-label=${this.label||l} part="tabs"><ul>
2920
+ ${e.map(s=>o`<li><a href=${s.href} part="tab" aria-current=${s.id===i?"page":l} @click=${c=>me(this,c,{href:s.href,id:s.id})}>${s.label}${this.countOf(s)}</a></li>`)}
2921
+ </ul></nav>`;let r=e.length>4;return o`<div role="tablist" aria-label=${this.label||l} part="tabs" class=${r?"many":""} style=${r?`--columns:${Math.ceil(e.length/2)}`:l} @keydown=${this.onKey}>
2922
+ ${e.map(s=>o`<button role="tab" type="button" id=${this.id_(`tab-${s.id}`)} aria-selected=${s.id===i?"true":"false"} aria-controls=${this.id_(`panel-${s.id}`)} tabindex=${s.id===i?"0":"-1"} @click=${()=>this.choose(s.id,!1)}>${s.label}${this.countOf(s)}</button>`)}
2842
2923
  </div>
2843
- ${e.map(o=>s`<div role="tabpanel" id=${this.id_(`panel-${o.id}`)} aria-labelledby=${this.id_(`tab-${o.id}`)} tabindex="0" ?hidden=${o.id!==i} part="panel"><slot name=${o.id}><span class="body">${o.body??""}</span></slot></div>`)}`}};customElements.define("impakt-divider",$t);customElements.define("impakt-spacer",xt);customElements.define("impakt-visually-hidden",yt);customElements.define("impakt-tabs",kt);var vt=class extends p{static{this.properties={legend:{type:String},description:{type:String},error:{type:String,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.legend="",this.description="",this.error="",this.size="md"}static{this.styles=[...p.styles,h`
2844
- :host { display: block; margin-block-end: ${r(6)}; }
2924
+ ${e.map(s=>o`<div role="tabpanel" id=${this.id_(`panel-${s.id}`)} aria-labelledby=${this.id_(`tab-${s.id}`)} tabindex="0" ?hidden=${s.id!==i} part="panel"><slot name=${s.id}><span class="body">${s.body??""}</span></slot></div>`)}`}};customElements.define("impakt-divider",wt);customElements.define("impakt-spacer",St);customElements.define("impakt-visually-hidden",Tt);customElements.define("impakt-tabs",zt);var Mt=class extends h{static{this.properties={legend:{type:String},description:{type:String},error:{type:String,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.legend="",this.description="",this.error="",this.size="md"}static{this.styles=[...h.styles,u`
2925
+ :host { display: block; margin-block-end: ${a(6)}; }
2845
2926
  fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
2846
- legend { padding: 0; margin-block-end: ${r(2)}; font-size: ${b("md")}; font-weight: ${m("bold")}; line-height: ${H("tight")}; color: ${t.text}; }
2927
+ legend { padding: 0; margin-block-end: ${a(2)}; font-size: ${b("md")}; font-weight: ${m("bold")}; line-height: ${P("tight")}; color: ${t.text}; }
2847
2928
  :host([size='lg']) legend { font-size: ${b("xl")}; font-family: ${t.fontHeading}; color: ${t.textHeading}; }
2848
2929
  :host([size='xl']) legend { font-size: ${b("2xl")}; font-family: ${t.fontHeading}; color: ${t.textHeading}; }
2849
- .description { margin-block-end: ${r(3)}; font-size: ${b("sm")}; color: ${t.textMuted}; line-height: ${H("normal")}; }
2850
- .error { margin-block-end: ${r(3)}; font-size: ${b("sm")}; color: ${t.dangerText}; font-weight: ${m("semibold")}; }
2930
+ .description { margin-block-end: ${a(3)}; font-size: ${b("sm")}; color: ${t.textMuted}; line-height: ${P("normal")}; }
2931
+ .error { margin-block-end: ${a(3)}; font-size: ${b("sm")}; color: ${t.dangerText}; font-weight: ${m("semibold")}; }
2851
2932
  .error:empty { display: none; }
2852
- :host([error]:not([error=''])) .fields { padding-inline-start: ${r(4)}; border-inline-start: 4px solid ${t.danger}; }
2853
- `]}render(){let e=[this.description?this.id_("description"):"",this.error?this.id_("error"):""].filter(Boolean).join(" ");return s`<fieldset part="fieldset" aria-describedby=${e||l}>
2933
+ :host([error]:not([error=''])) .fields { padding-inline-start: ${a(4)}; border-inline-start: 4px solid ${t.danger}; }
2934
+ `]}render(){let e=[this.description?this.id_("description"):"",this.error?this.id_("error"):""].filter(Boolean).join(" ");return o`<fieldset part="fieldset" aria-describedby=${e||l}>
2854
2935
  <legend part="legend">${this.legend}</legend>
2855
- ${this.description?s`<div class="description" id=${this.id_("description")}>${this.description}</div>`:l}
2936
+ ${this.description?o`<div class="description" id=${this.id_("description")}>${this.description}</div>`:l}
2856
2937
  <div class="error" id=${this.id_("error")} aria-live="polite">${this.error||l}</div>
2857
2938
  <div class="fields" part="fields"><slot></slot></div>
2858
- </fieldset>`}};customElements.define("impakt-fieldset",vt);var wt=class extends p{constructor(){super();this.hasFooter=!1;this.open=!1,this.heading="",this.side="right",this.closeLabel="Close"}static{this.properties={open:{type:Boolean,reflect:!0},heading:{type:String},side:{type:String,reflect:!0},closeLabel:{type:String,attribute:"close-label"}}}static{this.styles=[...p.styles,k,A(".close"),h`
2939
+ </fieldset>`}};customElements.define("impakt-fieldset",Mt);var Et=class extends h{constructor(){super();this.hasFooter=!1;this.open=!1,this.heading="",this.side="right",this.closeLabel="Close"}static{this.properties={open:{type:Boolean,reflect:!0},heading:{type:String},side:{type:String,reflect:!0},closeLabel:{type:String,attribute:"close-label"}}}static{this.styles=[...h.styles,k,C(".close"),u`
2859
2940
  dialog { box-sizing: border-box; display: none; flex-direction: column; inline-size: min(28rem, 100vw); max-inline-size: 100vw; block-size: 100dvh; max-block-size: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; color: ${t.text}; background: ${t.surfaceCard}; box-shadow: ${t.shadowXl}; animation: from-right 240ms cubic-bezier(0.16, 1, 0.3, 1); }
2860
2941
  dialog[open] { display: flex; }
2861
2942
  :host([side='left']) dialog { margin: 0 auto 0 0; animation-name: from-left; }
@@ -2867,66 +2948,66 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2867
2948
  dialog::backdrop { background: color-mix(in srgb, ${t.text} 30%, transparent); backdrop-filter: blur(2px); }
2868
2949
  @keyframes from-right { from { transform: translateX(100%); } }
2869
2950
  @keyframes from-left { from { transform: translateX(-100%); } }
2870
- .head { display: flex; align-items: center; justify-content: space-between; gap: ${r(3)}; padding: ${r(4)} ${r(5)}; box-shadow: 0 1px 0 color-mix(in srgb, ${t.text} 8%, transparent); }
2951
+ .head { display: flex; align-items: center; justify-content: space-between; gap: ${a(3)}; padding: ${a(4)} ${a(5)}; box-shadow: 0 1px 0 color-mix(in srgb, ${t.text} 8%, transparent); }
2871
2952
  h2 { margin: 0; font-family: ${t.fontHeading}; ${w("xl")} font-weight: ${m("bold")}; color: ${t.textHeading}; }
2872
2953
  .close { ${z} display: inline-flex; align-items: center; justify-content: center; padding: 0; color: ${t.text}; background: none; border: 0; border-radius: ${t.radius}; cursor: pointer; }
2873
2954
  .close:hover { background: ${t.surfaceSubtle}; }
2874
- .body { flex: 1; overflow: auto; padding: ${r(5)}; }
2875
- .foot { display: flex; gap: ${r(3)}; justify-content: flex-end; padding: ${r(4)} ${r(5)}; box-shadow: 0 -1px 0 color-mix(in srgb, ${t.text} 8%, transparent); }
2955
+ .body { flex: 1; overflow: auto; padding: ${a(5)}; }
2956
+ .foot { display: flex; gap: ${a(3)}; justify-content: flex-end; padding: ${a(4)} ${a(5)}; box-shadow: 0 -1px 0 color-mix(in srgb, ${t.text} 8%, transparent); }
2876
2957
  .foot[hidden] { display: none; }
2877
- `]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(i){if(!i.has("open"))return;let a=this.dialog;a&&(this.open?(typeof a.showModal=="function"?a.showModal():a.setAttribute("open",""),ge(this)):(typeof a.close=="function"&&a.open?a.close():a.removeAttribute("open"),Y(this)))}disconnectedCallback(){super.disconnectedCallback(),Y(this)}close(){this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0}))}footerChanged(i){this.hasFooter=i.target.assignedNodes().length>0,this.requestUpdate()}render(){return s`<dialog part="dialog" aria-labelledby=${this.heading?this.id_("heading"):l}
2958
+ `]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(i){if(!i.has("open"))return;let r=this.dialog;r&&(this.open?(typeof r.showModal=="function"?r.showModal():r.setAttribute("open",""),ye(this)):(typeof r.close=="function"&&r.open?r.close():r.removeAttribute("open"),ee(this)))}disconnectedCallback(){super.disconnectedCallback(),ee(this)}close(){this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0}))}footerChanged(i){this.hasFooter=i.target.assignedNodes().length>0,this.requestUpdate()}render(){return o`<dialog part="dialog" aria-labelledby=${this.heading?this.id_("heading"):l}
2878
2959
  @cancel=${()=>this.close()}
2879
2960
  @close=${()=>{this.open&&this.close()}}
2880
2961
  @click=${i=>{i.target===this.dialog&&this.close()}}>
2881
2962
  <div class="head">
2882
- ${this.heading?s`<h2 id=${this.id_("heading")}>${this.heading}</h2>`:s`<span></span>`}
2963
+ ${this.heading?o`<h2 id=${this.id_("heading")}>${this.heading}</h2>`:o`<span></span>`}
2883
2964
  <button class="close" type="button" aria-label=${this.closeLabel} @click=${this.close}>${M("close","20px")}</button>
2884
2965
  </div>
2885
2966
  <div class="body" part="body"><slot></slot></div>
2886
2967
  <div class="foot" part="footer" ?hidden=${!this.hasFooter}><slot name="footer" @slotchange=${this.footerChanged}></slot></div>
2887
- </dialog>`}},xr={neutral:"info",success:"check",warning:"warning",danger:"warning"},St=class extends p{static{this.properties={open:{type:Boolean,reflect:!0},message:{type:String},tone:{type:String,reflect:!0},duration:{type:Number},actionText:{type:String,attribute:"action-text"},closeLabel:{type:String,attribute:"close-label"}}}constructor(){super(),this.open=!1,this.message="",this.tone="neutral",this.duration=6,this.actionText="",this.closeLabel="Dismiss"}static{this.styles=[...p.styles,k,h`
2888
- .region { position: fixed; inset-block-end: calc(${r(4)} + env(safe-area-inset-bottom, 0px) + var(--impakt-bottom-bar, 0px)); inset-inline-end: ${r(4)}; z-index: 1000; inline-size: min(24rem, calc(100vw - ${r(8)})); pointer-events: none; }
2889
- @media (max-width: 40rem) { .region { inset-inline: ${r(3)}; inline-size: auto; inset-block-end: calc(${r(3)} + env(safe-area-inset-bottom, 0px) + var(--impakt-bottom-bar, 0px)); } }
2890
- .toast { pointer-events: auto; max-block-size: 40vh; overflow: auto; display: flex; align-items: flex-start; gap: ${r(3)}; padding: ${r(3)} ${r(3)} ${r(3)} ${r(4)}; color: ${t.text}; background: ${t.surfaceCard}; border-radius: ${t.radiusXl}; box-shadow: ${t.shadowXl}, 0 0 0 1px color-mix(in srgb, ${t.text} 8%, transparent); animation: rise 220ms cubic-bezier(0.16, 1, 0.3, 1); }
2968
+ </dialog>`}},Er={neutral:"info",success:"check",warning:"warning",danger:"warning"},At=class extends h{static{this.properties={open:{type:Boolean,reflect:!0},message:{type:String},tone:{type:String,reflect:!0},duration:{type:Number},actionText:{type:String,attribute:"action-text"},closeLabel:{type:String,attribute:"close-label"}}}constructor(){super(),this.open=!1,this.message="",this.tone="neutral",this.duration=6,this.actionText="",this.closeLabel="Dismiss"}static{this.styles=[...h.styles,k,u`
2969
+ .region { position: fixed; inset-block-end: calc(${a(4)} + env(safe-area-inset-bottom, 0px) + var(--impakt-bottom-bar, 0px)); inset-inline-end: ${a(4)}; z-index: 1000; inline-size: min(24rem, calc(100vw - ${a(8)})); pointer-events: none; }
2970
+ @media (max-width: 40rem) { .region { inset-inline: ${a(3)}; inline-size: auto; inset-block-end: calc(${a(3)} + env(safe-area-inset-bottom, 0px) + var(--impakt-bottom-bar, 0px)); } }
2971
+ .toast { pointer-events: auto; max-block-size: 40vh; overflow: auto; display: flex; align-items: flex-start; gap: ${a(3)}; padding: ${a(3)} ${a(3)} ${a(3)} ${a(4)}; color: ${t.text}; background: ${t.surfaceCard}; border-radius: ${t.radiusXl}; box-shadow: ${t.shadowXl}, 0 0 0 1px color-mix(in srgb, ${t.text} 8%, transparent); animation: rise 220ms cubic-bezier(0.16, 1, 0.3, 1); }
2891
2972
  /* It rises without fading in, so its words are at full contrast from the first frame they are read in (1.4.3). */
2892
- @keyframes rise { from { transform: translateY(${r(3)}); } }
2893
- .mark { display: inline-flex; flex: none; margin-block-start: ${r(.5)}; color: ${t.info}; }
2973
+ @keyframes rise { from { transform: translateY(${a(3)}); } }
2974
+ .mark { display: inline-flex; flex: none; margin-block-start: ${a(.5)}; color: ${t.info}; }
2894
2975
  :host([tone='success']) .mark { color: ${t.success}; }
2895
2976
  :host([tone='warning']) .mark { color: ${t.warning}; }
2896
2977
  :host([tone='danger']) .mark { color: ${t.danger}; }
2897
2978
  .message { flex: 1; align-self: center; margin: 0; ${w("sm")} font-weight: ${m("medium")}; }
2898
- .action, .close { ${z} padding: 0 ${r(2)}; font: inherit; ${w("sm")} font-weight: ${m("semibold")}; color: ${t.link}; background: none; border: 0; border-radius: ${t.radius}; cursor: pointer; }
2979
+ .action, .close { ${z} padding: 0 ${a(2)}; font: inherit; ${w("sm")} font-weight: ${m("semibold")}; color: ${t.link}; background: none; border: 0; border-radius: ${t.radius}; cursor: pointer; }
2899
2980
  .close { display: inline-flex; align-items: center; justify-content: center; color: ${t.textMuted}; }
2900
2981
  .action:hover, .close:hover { background: ${t.surfaceSubtle}; }
2901
- `,A(".action, .close")]}disconnectedCallback(){super.disconnectedCallback(),this.stop()}updated(e){(e.has("open")||e.has("duration"))&&(this.stop(),this.open&&this.start())}start(){this.stop(),this.duration>0&&!this.actionText&&(this.timer=setTimeout(()=>this.close(),this.duration*1e3))}stop(){this.timer&&clearTimeout(this.timer),this.timer=void 0}close(){this.stop(),this.open&&(this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0})))}action(){this.dispatchEvent(new CustomEvent("impakt-action",{bubbles:!0,composed:!0})),this.close()}render(){return s`<div class="region" role="status" aria-live="polite">
2902
- ${this.open?s`<div class="toast" part="toast" @mouseenter=${this.stop} @mouseleave=${this.start} @focusin=${this.stop} @focusout=${this.start}
2982
+ `,C(".action, .close")]}disconnectedCallback(){super.disconnectedCallback(),this.stop()}updated(e){(e.has("open")||e.has("duration"))&&(this.stop(),this.open&&this.start())}start(){this.stop(),this.duration>0&&!this.actionText&&(this.timer=setTimeout(()=>this.close(),this.duration*1e3))}stop(){this.timer&&clearTimeout(this.timer),this.timer=void 0}close(){this.stop(),this.open&&(this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0})))}action(){this.dispatchEvent(new CustomEvent("impakt-action",{bubbles:!0,composed:!0})),this.close()}render(){return o`<div class="region" role="status" aria-live="polite">
2983
+ ${this.open?o`<div class="toast" part="toast" @mouseenter=${this.stop} @mouseleave=${this.start} @focusin=${this.stop} @focusout=${this.start}
2903
2984
  @keydown=${e=>{e.key==="Escape"&&(e.preventDefault(),this.close())}}>
2904
- <span class="mark">${M(xr[this.tone]??"info","20px")}</span>
2985
+ <span class="mark">${M(Er[this.tone]??"info","20px")}</span>
2905
2986
  <p class="message">${this.message}</p>
2906
- ${this.actionText?s`<button class="action" type="button" @click=${this.action}>${this.actionText}</button>`:l}
2987
+ ${this.actionText?o`<button class="action" type="button" @click=${this.action}>${this.actionText}</button>`:l}
2907
2988
  <button class="close" type="button" aria-label=${this.closeLabel} @click=${this.close}>${M("close","16px")}</button>
2908
2989
  </div>`:l}
2909
- </div>`}},yr=C("var(--impakt-color-line-soft, #dcdcd8)"),Tt=class extends p{constructor(){super();this.outside=i=>{i.composedPath().includes(this)||this.toggle(!1)};this.label="Menu",this.icon="",this.items=[],this.edge="start",this.open=!1,this.triggerLook="button"}static{this.properties={label:{type:String},icon:{type:String},items:{type:Array},edge:{type:String,reflect:!0},open:{type:Boolean,reflect:!0},triggerLook:{type:String,reflect:!0,attribute:"trigger-look"}}}static{this.styles=[...p.styles,k,A(".trigger, .item"),h`
2990
+ </div>`}},Ar=L("var(--impakt-color-line-soft, #dcdcd8)"),Ct=class extends h{constructor(){super();this.outside=i=>{i.composedPath().includes(this)||this.toggle(!1)};this.label="Menu",this.icon="",this.items=[],this.edge="start",this.open=!1,this.triggerLook="button"}static{this.properties={label:{type:String},icon:{type:String},items:{type:Array},edge:{type:String,reflect:!0},open:{type:Boolean,reflect:!0},triggerLook:{type:String,reflect:!0,attribute:"trigger-look"}}}static{this.styles=[...h.styles,k,C(".trigger, .item"),u`
2910
2991
  :host { position: relative; display: inline-block; }
2911
- .trigger { ${z} display: inline-flex; align-items: center; gap: ${r(2)}; padding: ${r(2)} ${r(3.5)}; font: inherit; ${w("sm")} font-weight: ${m("medium")}; color: ${t.text}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusLg}; cursor: pointer; }
2912
- :host([trigger-look='text']) .trigger { padding: ${r(1)} ${r(1)}; font-size: 1rem; line-height: 1.25; background: transparent; border-color: transparent; }
2992
+ .trigger { ${z} display: inline-flex; align-items: center; gap: ${a(2)}; padding: ${a(2)} ${a(3.5)}; font: inherit; ${w("sm")} font-weight: ${m("medium")}; color: ${t.text}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusLg}; cursor: pointer; }
2993
+ :host([trigger-look='text']) .trigger { padding: ${a(1)} ${a(1)}; font-size: 1rem; line-height: 1.25; background: transparent; border-color: transparent; }
2913
2994
  :host([trigger-look='text']) .trigger:hover { background: transparent; text-decoration: underline; text-underline-offset: 0.2em; }
2914
2995
  .caret { font-size: 0.75em; line-height: 1; }
2915
2996
  .trigger:hover { background: ${t.surfaceSubtle}; }
2916
2997
  .chev { display: inline-flex; color: ${t.textMuted}; transition: transform 120ms ease-in-out; }
2917
2998
  :host([open]) .chev { transform: rotate(180deg); }
2918
2999
  /* G2: a 1px ink border and the one shadow the design allows, the open menu's. */
2919
- .panel { position: absolute; z-index: 100; inset-block-start: calc(100% + ${r(1.5)}); inset-inline-start: 0; box-sizing: border-box; min-inline-size: 13rem; max-inline-size: min(24rem, 90vw); padding: ${r(2)} 0; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusXl}; box-shadow: var(--impakt-shadow-overlay, 0 16px 32px rgb(0 0 0 / 0.2)); animation: pop 120ms ease-out; }
3000
+ .panel { position: absolute; z-index: 100; inset-block-start: calc(100% + ${a(1.5)}); inset-inline-start: 0; box-sizing: border-box; min-inline-size: 13rem; max-inline-size: min(24rem, 90vw); padding: ${a(2)} 0; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusXl}; box-shadow: var(--impakt-shadow-overlay, 0 16px 32px rgb(0 0 0 / 0.2)); animation: pop 120ms ease-out; }
2920
3001
  .list, .group { margin: 0; padding: 0; list-style: none; }
2921
- .grouped + .grouped, .grouped:not(:first-child) { margin-block-start: ${r(2)}; padding-block-start: ${r(2)}; border-block-start: ${t.borderThin} solid ${yr}; }
2922
- .group-label { display: block; padding: ${r(2)} 18px ${r(1)}; font-family: ${t.fontMono}; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }
2923
- .header { padding: ${r(2)} ${r(2.5)} ${r(2.5)}; margin-block-end: ${r(1.5)}; border-block-end: ${t.borderThin} solid ${t.border}; ${w("sm")} color: ${t.textMuted}; overflow-wrap: anywhere; }
3002
+ .grouped + .grouped, .grouped:not(:first-child) { margin-block-start: ${a(2)}; padding-block-start: ${a(2)}; border-block-start: ${t.borderThin} solid ${Ar}; }
3003
+ .group-label { display: block; padding: ${a(2)} 18px ${a(1)}; font-family: ${t.fontMono}; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }
3004
+ .header { padding: ${a(2)} ${a(2.5)} ${a(2.5)}; margin-block-end: ${a(1.5)}; border-block-end: ${t.borderThin} solid ${t.border}; ${w("sm")} color: ${t.textMuted}; overflow-wrap: anywhere; }
2924
3005
  :host([edge='end']) .panel, .panel.flip-end { inset-inline: auto 0; }
2925
3006
  :host([edge='end']) .panel.flip-start { inset-inline: 0 auto; }
2926
- @keyframes pop { from { opacity: 0; transform: translateY(-${r(1)}); } }
2927
- .item { ${z} box-sizing: border-box; display: flex; align-items: center; gap: ${r(2.5)}; inline-size: 100%; padding: ${r(3)} 18px; font: inherit; font-size: 1rem; line-height: 1.25; font-weight: ${m("medium")}; text-align: start; color: ${t.text}; text-decoration: none; background: none; border: 0; border-radius: 0; cursor: pointer; }
3007
+ @keyframes pop { from { opacity: 0; transform: translateY(-${a(1)}); } }
3008
+ .item { ${z} box-sizing: border-box; display: flex; align-items: center; gap: ${a(2.5)}; inline-size: 100%; padding: ${a(3)} 18px; font: inherit; font-size: 1rem; line-height: 1.25; font-weight: ${m("medium")}; text-align: start; color: ${t.text}; text-decoration: none; background: none; border: 0; border-radius: 0; cursor: pointer; }
2928
3009
  .item:hover, .item:focus { background: ${t.surfaceSubtle}; }
2929
- .item .meta { margin-inline-start: auto; padding-inline-start: ${r(4)}; font-family: ${t.fontMono}; font-size: 0.875rem; font-weight: ${m("regular")}; color: ${t.textMuted}; white-space: nowrap; }
3010
+ .item .meta { margin-inline-start: auto; padding-inline-start: ${a(4)}; font-family: ${t.fontMono}; font-size: 0.875rem; font-weight: ${m("regular")}; color: ${t.textMuted}; white-space: nowrap; }
2930
3011
  .item[aria-current] { background: ${t.text}; color: var(--impakt-color-text-inverse, var(--impakt-solid-card, ${t.surfaceCard})); }
2931
3012
  .item[aria-current] .meta { color: color-mix(in srgb, var(--impakt-color-text-inverse, var(--impakt-solid-card, ${t.surfaceCard})) 66%, ${t.text}); }
2932
3013
  .item[aria-disabled='true'] { color: ${t.textMuted}; cursor: not-allowed; }
@@ -2935,27 +3016,27 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2935
3016
  @media (forced-colors: active) { .panel { border-color: CanvasText; } .item[aria-current] { outline: 2px solid Highlight; outline-offset: -2px; } .item[aria-disabled='true'] { color: GrayText; } }
2936
3017
  .item.danger { color: ${t.dangerText}; }
2937
3018
  .item svg { flex: none; }
2938
- `]}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.outside)}get entries(){return Array.from(this.renderRoot.querySelectorAll(".item"))}get trigger(){return this.renderRoot.querySelector(".trigger")}toggle(i,a){this.open=i,i?(document.addEventListener("click",this.outside),this.updateComplete.then(()=>{this.keepOnScreen(),this.entries[a==="last"?this.entries.length-1:0]?.focus()})):document.removeEventListener("click",this.outside)}keepOnScreen(){let i=this.renderRoot.querySelector(".panel");if(!i)return;i.classList.remove("flip-start","flip-end");let a=i.getBoundingClientRect(),o=document.documentElement.clientWidth;a.right>o-8?i.classList.add("flip-end"):a.left<8&&i.classList.add("flip-start")}triggerKey(i){(i.key==="ArrowDown"||i.key==="ArrowUp")&&(i.preventDefault(),this.toggle(!0,i.key==="ArrowUp"?"last":"first"))}listKey(i){let a=this.entries,o=a.indexOf(this.renderRoot.activeElement),d={ArrowDown:(o+1)%a.length,ArrowUp:(o-1+a.length)%a.length,Home:0,End:a.length-1};if(i.key in d)i.preventDefault(),a[d[i.key]]?.focus();else if(i.key.length===1&&/\S/.test(i.key)&&!i.ctrlKey&&!i.metaKey&&!i.altKey){let c=i.key.toLowerCase();[...a.slice(o+1),...a.slice(0,o+1)].find(g=>(g.textContent??"").trim().toLowerCase().startsWith(c))?.focus()}else i.key==="Escape"?(i.preventDefault(),this.toggle(!1),this.trigger?.focus()):i.key==="Tab"&&this.toggle(!1)}choose(i,a){if(i.disabled){a?.preventDefault();return}this.toggle(!1),this.trigger?.focus(),i.href||this.dispatchEvent(new CustomEvent("impakt-select",{detail:{value:i.value??i.text},bubbles:!0,composed:!0}))}renderItem(i){let a=i.meta||(i.current?S("You are here"):""),o=s`${M(i.icon,"18px")}<span class="text">${i.text}</span>${a?s`<span class="meta">${a}</span>`:l}`,d=`item ${i.tone==="danger"?"danger":""}`,c=i.current?"page":l,$=i.disabled?"true":l;return s`<li role="none">${i.href&&!i.disabled?s`<a class=${d} role="menuitem" tabindex="-1" href=${i.href} aria-current=${c} @click=${g=>this.choose(i,g)}>${o}</a>`:s`<button class=${d} role="menuitem" tabindex="-1" type="button" aria-current=${c} aria-disabled=${$} @click=${g=>this.choose(i,g)}>${o}</button>`}</li>`}get runs(){let i=[];for(let a of this.items??[]){let o=a.group??"",d=i[i.length-1],c=o?i.find($=>$.group===o):void 0;c?c.items.push(a):d&&!o&&!d.group?d.items.push(a):i.push({group:o,items:[a]})}return i}render(){let i=this.triggerLook==="text",a=this.runs,o=a.some(d=>d.group);return s`<button class="trigger" part="trigger" type="button" aria-haspopup="menu" aria-expanded=${String(this.open)} aria-controls=${this.id_("list")}
2939
- @click=${()=>this.toggle(!this.open)} @keydown=${this.triggerKey}><slot name="trigger">${M(this.icon,"18px")}${this.label}</slot>${i?s`<span class="caret" part="chevron" aria-hidden="true">${this.open?"\u25B4":"\u25BE"}</span>`:s`<span class="chev" part="chevron">${M("chevron-down","16px")}</span>`}</button>
2940
- ${this.open?s`<div class="panel" part="panel">${this.querySelector?.(':scope > [slot="header"]')?s`<div class="header" part="header"><slot name="header"></slot></div>`:l}<ul class="list" part="list" id=${this.id_("list")} role="menu" aria-label=${this.label} @keydown=${this.listKey}>
2941
- ${o?a.map((d,c)=>{let $=this.id_(`group-${c}`);return s`<li role="none" class="grouped">${d.group?s`<span class="group-label" id=${$} part="group-label">${d.group}</span>`:l}<ul class="group" role="group" aria-labelledby=${d.group?$:l}>${d.items.map(g=>this.renderItem(g))}</ul></li>`}):(this.items??[]).map(d=>this.renderItem(d))}
2942
- </ul></div>`:l}`}};function kr(n,e){let i=[...new Set([1,n-1,n,n+1,e])].filter(a=>a>=1&&a<=e).sort((a,o)=>a-o);return i.flatMap((a,o)=>{let d=i[o-1];return d===void 0||a===d+1?[a]:a===d+2?[d+1,a]:["gap",a]})}var zt=class extends p{static{this.properties={page:{type:Number},pages:{type:Number},hrefPattern:{type:String,attribute:"href-pattern"},label:{type:String},previousText:{type:String,attribute:"previous-text"},nextText:{type:String,attribute:"next-text"}}}constructor(){super(),this.page=1,this.pages=1,this.hrefPattern="",this.label="Pages",this.previousText="Previous",this.nextText="Next"}static{this.styles=[...p.styles,k,A(".n, .step"),h`
3019
+ `]}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.outside)}get entries(){return Array.from(this.renderRoot.querySelectorAll(".item"))}get trigger(){return this.renderRoot.querySelector(".trigger")}toggle(i,r){this.open=i,i?(document.addEventListener("click",this.outside),this.updateComplete.then(()=>{this.keepOnScreen(),this.entries[r==="last"?this.entries.length-1:0]?.focus()})):document.removeEventListener("click",this.outside)}keepOnScreen(){let i=this.renderRoot.querySelector(".panel");if(!i)return;i.classList.remove("flip-start","flip-end");let r=i.getBoundingClientRect(),s=document.documentElement.clientWidth;r.right>s-8?i.classList.add("flip-end"):r.left<8&&i.classList.add("flip-start")}triggerKey(i){(i.key==="ArrowDown"||i.key==="ArrowUp")&&(i.preventDefault(),this.toggle(!0,i.key==="ArrowUp"?"last":"first"))}listKey(i){let r=this.entries,s=r.indexOf(this.renderRoot.activeElement),c={ArrowDown:(s+1)%r.length,ArrowUp:(s-1+r.length)%r.length,Home:0,End:r.length-1};if(i.key in c)i.preventDefault(),r[c[i.key]]?.focus();else if(i.key.length===1&&/\S/.test(i.key)&&!i.ctrlKey&&!i.metaKey&&!i.altKey){let p=i.key.toLowerCase();[...r.slice(s+1),...r.slice(0,s+1)].find(g=>(g.textContent??"").trim().toLowerCase().startsWith(p))?.focus()}else i.key==="Escape"?(i.preventDefault(),this.toggle(!1),this.trigger?.focus()):i.key==="Tab"&&this.toggle(!1)}choose(i,r){if(i.disabled){r?.preventDefault();return}this.toggle(!1),this.trigger?.focus(),i.href||this.dispatchEvent(new CustomEvent("impakt-select",{detail:{value:i.value??i.text},bubbles:!0,composed:!0}))}renderItem(i){let r=i.meta||(i.current?S("You are here"):""),s=o`${M(i.icon,"18px")}<span class="text">${i.text}</span>${r?o`<span class="meta">${r}</span>`:l}`,c=`item ${i.tone==="danger"?"danger":""}`,p=i.current?"page":l,$=i.disabled?"true":l;return o`<li role="none">${i.href&&!i.disabled?o`<a class=${c} role="menuitem" tabindex="-1" href=${i.href} aria-current=${p} @click=${g=>this.choose(i,g)}>${s}</a>`:o`<button class=${c} role="menuitem" tabindex="-1" type="button" aria-current=${p} aria-disabled=${$} @click=${g=>this.choose(i,g)}>${s}</button>`}</li>`}get runs(){let i=[];for(let r of this.items??[]){let s=r.group??"",c=i[i.length-1],p=s?i.find($=>$.group===s):void 0;p?p.items.push(r):c&&!s&&!c.group?c.items.push(r):i.push({group:s,items:[r]})}return i}render(){let i=this.triggerLook==="text",r=this.runs,s=r.some(c=>c.group);return o`<button class="trigger" part="trigger" type="button" aria-haspopup="menu" aria-expanded=${String(this.open)} aria-controls=${this.id_("list")}
3020
+ @click=${()=>this.toggle(!this.open)} @keydown=${this.triggerKey}><slot name="trigger">${M(this.icon,"18px")}${this.label}</slot>${i?o`<span class="caret" part="chevron" aria-hidden="true">${this.open?"\u25B4":"\u25BE"}</span>`:o`<span class="chev" part="chevron">${M("chevron-down","16px")}</span>`}</button>
3021
+ ${this.open?o`<div class="panel" part="panel">${this.querySelector?.(':scope > [slot="header"]')?o`<div class="header" part="header"><slot name="header"></slot></div>`:l}<ul class="list" part="list" id=${this.id_("list")} role="menu" aria-label=${this.label} @keydown=${this.listKey}>
3022
+ ${s?r.map((c,p)=>{let $=this.id_(`group-${p}`);return o`<li role="none" class="grouped">${c.group?o`<span class="group-label" id=${$} part="group-label">${c.group}</span>`:l}<ul class="group" role="group" aria-labelledby=${c.group?$:l}>${c.items.map(g=>this.renderItem(g))}</ul></li>`}):(this.items??[]).map(c=>this.renderItem(c))}
3023
+ </ul></div>`:l}`}};function Cr(n,e){let i=[...new Set([1,n-1,n,n+1,e])].filter(r=>r>=1&&r<=e).sort((r,s)=>r-s);return i.flatMap((r,s)=>{let c=i[s-1];return c===void 0||r===c+1?[r]:r===c+2?[c+1,r]:["gap",r]})}var Lt=class extends h{static{this.properties={page:{type:Number},pages:{type:Number},hrefPattern:{type:String,attribute:"href-pattern"},label:{type:String},previousText:{type:String,attribute:"previous-text"},nextText:{type:String,attribute:"next-text"}}}constructor(){super(),this.page=1,this.pages=1,this.hrefPattern="",this.label="Pages",this.previousText="Previous",this.nextText="Next"}static{this.styles=[...h.styles,k,C(".n, .step"),u`
2943
3024
  :host { display: block; container-type: inline-size; }
2944
- nav { display: flex; align-items: center; justify-content: space-between; gap: ${r(2)}; }
2945
- ul { display: flex; align-items: center; gap: ${r(1)}; margin: 0; padding: 0; list-style: none; }
2946
- .n, .step { ${z} box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: ${r(1.5)}; min-inline-size: 44px; padding: 0 ${r(2.5)}; font: inherit; ${w("sm")} font-weight: ${m("medium")}; color: ${t.text}; text-decoration: none; background: none; border: 0; border-radius: ${t.radiusLg}; cursor: pointer; }
3025
+ nav { display: flex; align-items: center; justify-content: space-between; gap: ${a(2)}; }
3026
+ ul { display: flex; align-items: center; gap: ${a(1)}; margin: 0; padding: 0; list-style: none; }
3027
+ .n, .step { ${z} box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: ${a(1.5)}; min-inline-size: 44px; padding: 0 ${a(2.5)}; font: inherit; ${w("sm")} font-weight: ${m("medium")}; color: ${t.text}; text-decoration: none; background: none; border: 0; border-radius: ${t.radiusLg}; cursor: pointer; }
2947
3028
  .n:hover, .step:hover { background: ${t.surfaceSubtle}; }
2948
3029
  .n[aria-current] { color: ${t.onBrand}; background: ${t.brand}; font-weight: ${m("semibold")}; }
2949
3030
  .step[aria-disabled='true'] { color: ${t.textMuted}; opacity: 0.55; background: none; cursor: not-allowed; }
2950
- .gap { color: ${t.textMuted}; padding: 0 ${r(1)}; }
3031
+ .gap { color: ${t.textMuted}; padding: 0 ${a(1)}; }
2951
3032
  .count { display: none; ${w("sm")} color: ${t.textMuted}; }
2952
3033
  @container (max-width: 34rem) { ul { display: none; } .count { display: block; } }
2953
- `]}go(e,i){this.hrefPattern||(i.preventDefault(),this.page=e,this.dispatchEvent(new CustomEvent("impakt-page",{detail:{page:e},bubbles:!0,composed:!0})))}link(e,i,a,o,d){return this.hrefPattern?s`<a class=${i} href=${this.hrefPattern.replace("{page}",String(e))} aria-label=${o} aria-current=${d?"page":l}>${a}</a>`:s`<button class=${i} type="button" aria-label=${o} aria-current=${d?"page":l} @click=${c=>this.go(e,c)}>${a}</button>`}step(e,i,a,o){let d=a==="arrow-left"?s`${M(a,"16px")}${i}`:s`${i}${M(a,"16px")}`;return o?s`<span class="step" aria-disabled="true">${d}</span>`:this.link(e,"step",d,i,!1)}render(){let e=Math.min(Math.max(this.page,1),Math.max(this.pages,1));return s`<nav aria-label=${this.label} part="nav">
3034
+ `]}go(e,i){this.hrefPattern||(i.preventDefault(),this.page=e,this.dispatchEvent(new CustomEvent("impakt-page",{detail:{page:e},bubbles:!0,composed:!0})))}link(e,i,r,s,c){return this.hrefPattern?o`<a class=${i} href=${this.hrefPattern.replace("{page}",String(e))} aria-label=${s} aria-current=${c?"page":l}>${r}</a>`:o`<button class=${i} type="button" aria-label=${s} aria-current=${c?"page":l} @click=${p=>this.go(e,p)}>${r}</button>`}step(e,i,r,s){let c=r==="arrow-left"?o`${M(r,"16px")}${i}`:o`${i}${M(r,"16px")}`;return s?o`<span class="step" aria-disabled="true">${c}</span>`:this.link(e,"step",c,i,!1)}render(){let e=Math.min(Math.max(this.page,1),Math.max(this.pages,1));return o`<nav aria-label=${this.label} part="nav">
2954
3035
  ${this.step(e-1,this.previousText,"arrow-left",e<=1)}
2955
- <ul>${kr(e,this.pages).map(i=>s`<li>${i==="gap"?s`<span class="gap" aria-hidden="true">…</span>`:this.link(i,"n",i,S("Page {page}",{page:i}),i===e)}</li>`)}</ul>
3036
+ <ul>${Cr(e,this.pages).map(i=>o`<li>${i==="gap"?o`<span class="gap" aria-hidden="true">…</span>`:this.link(i,"n",i,S("Page {page}",{page:i}),i===e)}</li>`)}</ul>
2956
3037
  <span class="count">${S("Page {page} of {pages}",{page:e,pages:this.pages})}</span>
2957
3038
  ${this.step(e+1,this.nextText,"arrow-right",e>=this.pages)}
2958
- </nav>`}},vr=n=>{let e=n.trim().split(/\s+/).filter(Boolean);return((e[0]?.[0]??"")+(e.length>1?e[e.length-1][0]:"")).toUpperCase()},Mt=class extends p{constructor(){super();this.failed=!1;this.fullName="",this.src="",this.size="md"}static{this.properties={fullName:{type:String,attribute:"full-name"},src:{type:String},size:{type:String,reflect:!0}}}static{this.styles=[...p.styles,h`
3039
+ </nav>`}},Lr=n=>{let e=n.trim().split(/\s+/).filter(Boolean);return((e[0]?.[0]??"")+(e.length>1?e[e.length-1][0]:"")).toUpperCase()},It=class extends h{constructor(){super();this.failed=!1;this.fullName="",this.src="",this.size="md"}static{this.properties={fullName:{type:String,attribute:"full-name"},src:{type:String},size:{type:String,reflect:!0}}}static{this.styles=[...h.styles,u`
2959
3040
  :host { --size: 40px; display: inline-block; inline-size: var(--size); block-size: var(--size); vertical-align: middle; }
2960
3041
  :host([size='xs']) { --size: 22px; }
2961
3042
  :host([size='sm']) { --size: 32px; }
@@ -2963,69 +3044,69 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2963
3044
  :host([size='xl']) { --size: 80px; }
2964
3045
  .face { display: flex; align-items: center; justify-content: center; inline-size: 100%; block-size: 100%; overflow: hidden; color: ${t.brand}; background: ${t.brandSubtle}; border-radius: 50%; font-size: calc(var(--size) * 0.38); font-weight: ${m("semibold")}; }
2965
3046
  img { inline-size: 100%; block-size: 100%; object-fit: cover; }
2966
- `]}willUpdate(i){i.has("src")&&(this.failed=!1)}render(){return this.src&&!this.failed?s`<div class="face"><img src=${this.src} alt=${this.fullName} @error=${()=>{this.failed=!0,this.requestUpdate()}} /></div>`:s`<div class="face" role="img" aria-label=${this.fullName||S("Person")}>${vr(this.fullName)||M("user","55%")}</div>`}},Et=class extends p{static{this.properties={items:{type:Array},max:{type:Number},size:{type:String,reflect:!0},moreLabel:{type:String,attribute:"more-label"}}}constructor(){super(),this.items=[],this.max=4,this.size="md",this.moreLabel="more people"}static{this.styles=[...p.styles,h`
3047
+ `]}willUpdate(i){i.has("src")&&(this.failed=!1)}render(){return this.src&&!this.failed?o`<div class="face"><img src=${this.src} alt=${this.fullName} @error=${()=>{this.failed=!0,this.requestUpdate()}} /></div>`:o`<div class="face" role="img" aria-label=${this.fullName||S("Person")}>${Lr(this.fullName)||M("user","55%")}</div>`}},Rt=class extends h{static{this.properties={items:{type:Array},max:{type:Number},size:{type:String,reflect:!0},moreLabel:{type:String,attribute:"more-label"}}}constructor(){super(),this.items=[],this.max=4,this.size="md",this.moreLabel="more people"}static{this.styles=[...h.styles,u`
2967
3048
  ul { display: flex; margin: 0; padding: 0; list-style: none; }
2968
- li { margin-inline-start: -${r(2.5)}; border-radius: 50%; box-shadow: 0 0 0 2px ${t.surfaceCard}; line-height: 0; }
3049
+ li { margin-inline-start: -${a(2.5)}; border-radius: 50%; box-shadow: 0 0 0 2px ${t.surfaceCard}; line-height: 0; }
2969
3050
  li:first-child { margin-inline-start: 0; }
2970
3051
  .more { display: flex; align-items: center; justify-content: center; inline-size: 40px; block-size: 40px; ${w("xs")} line-height: 1; font-weight: ${m("semibold")}; color: ${t.text}; background: ${t.surfaceSubtle}; border-radius: 50%; }
2971
3052
  :host([size='sm']) .more { inline-size: 32px; block-size: 32px; }
2972
- :host([size='xs']) li { margin-inline-start: -${r(1)}; box-shadow: 0 0 0 1px ${t.text}; }
3053
+ :host([size='xs']) li { margin-inline-start: -${a(1)}; box-shadow: 0 0 0 1px ${t.text}; }
2973
3054
  :host([size='xs']) li:first-child { margin-inline-start: 0; }
2974
3055
  :host([size='xs']) .more { inline-size: 22px; block-size: 22px; font-size: 10px; }
2975
3056
  :host([size='lg']) .more { inline-size: 56px; block-size: 56px; }
2976
3057
  .sr { ${T} }
2977
- `]}render(){let e=this.items.slice(0,this.max),i=this.items.length-e.length;return s`<ul part="list">
2978
- ${e.map(a=>s`<li><impakt-avatar full-name=${a.name} src=${a.src??""} size=${this.size}></impakt-avatar></li>`)}
2979
- ${i>0?s`<li><span class="more"><span aria-hidden="true">+${i}</span><span class="sr">${i} ${this.moreLabel}</span></span></li>`:l}
2980
- </ul>`}},At=class extends p{static{this.properties={icon:{type:String},heading:{type:String},lead:{type:String},framed:{type:Boolean,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.icon="search",this.heading="",this.lead="",this.framed=!1,this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...p.styles,I,h`
2981
- .wrap { display: flex; flex-direction: column; align-items: center; gap: ${r(2)}; padding: ${r(12)} ${r(6)}; text-align: center; }
3058
+ `]}render(){let e=this.items.slice(0,this.max),i=this.items.length-e.length;return o`<ul part="list">
3059
+ ${e.map(r=>o`<li><impakt-avatar full-name=${r.name} src=${r.src??""} size=${this.size}></impakt-avatar></li>`)}
3060
+ ${i>0?o`<li><span class="more"><span aria-hidden="true">+${i}</span><span class="sr">${i} ${this.moreLabel}</span></span></li>`:l}
3061
+ </ul>`}},_t=class extends h{static{this.properties={icon:{type:String},heading:{type:String},lead:{type:String},framed:{type:Boolean,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.icon="search",this.heading="",this.lead="",this.framed=!1,this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,N,u`
3062
+ .wrap { display: flex; flex-direction: column; align-items: center; gap: ${a(2)}; padding: ${a(12)} ${a(6)}; text-align: center; }
2982
3063
  :host([framed]) .wrap { border: ${t.borderThin} dashed ${t.border}; border-radius: ${t.radiusXl}; }
2983
- .mark { display: inline-flex; align-items: center; justify-content: center; inline-size: 56px; block-size: 56px; margin-block-end: ${r(2)}; color: ${t.brand}; background: ${t.brandSubtle}; border-radius: 50%; }
3064
+ .mark { display: inline-flex; align-items: center; justify-content: center; inline-size: 56px; block-size: 56px; margin-block-end: ${a(2)}; color: ${t.brand}; background: ${t.brandSubtle}; border-radius: 50%; }
2984
3065
  .h { margin: 0; font-family: ${t.fontHeading}; ${w("xl")} font-weight: ${m("bold")}; color: ${t.textHeading}; }
2985
3066
  p { margin: 0; max-inline-size: 42ch; color: ${t.textMuted}; text-wrap: pretty; }
2986
- .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: ${r(3)}; margin-block-start: ${r(3)}; }
2987
- `]}render(){return s`<div class="wrap" part="wrap">
3067
+ .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: ${a(3)}; margin-block-start: ${a(3)}; }
3068
+ `]}render(){return o`<div class="wrap" part="wrap">
2988
3069
  <span class="mark">${M(this.icon,"26px")}</span>
2989
- ${this.heading?s`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:l}
2990
- ${this.lead?s`<p>${this.lead}</p>`:l}
3070
+ ${this.heading?o`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:l}
3071
+ ${this.lead?o`<p>${this.lead}</p>`:l}
2991
3072
  <div class="actions"><slot name="actions"></slot></div>
2992
- </div>`}},wr=n=>String(n?.times??"").split(",").map(e=>e.trim()).filter(Boolean);function Sr(n){let e=new Date(`${n}T00:00:00Z`);if(Number.isNaN(e.getTime()))return{weekday:"",day:n,month:""};let i=B(),a=o=>new Intl.DateTimeFormat(i,{timeZone:"UTC",...o}).format(e);return{weekday:a({weekday:"short"}),day:a({day:"numeric"}),month:a({month:"short"})}}var Ct=class extends x{constructor(){super();this.day="";this.days=[],this.dayLabel="Day",this.timeLabel="Time",this.emptyText="No times are available at the moment."}static{this.properties={...x.properties,days:{type:Array},dayLabel:{type:String,attribute:"day-label"},timeLabel:{type:String,attribute:"time-label"},emptyText:{type:String,attribute:"empty-text"}}}static{this.styles=[...x.styles,h`
3073
+ </div>`}},Ir=n=>String(n?.times??"").split(",").map(e=>e.trim()).filter(Boolean);function Rr(n){let e=new Date(`${n}T00:00:00Z`);if(Number.isNaN(e.getTime()))return{weekday:"",day:n,month:""};let i=q(),r=s=>new Intl.DateTimeFormat(i,{timeZone:"UTC",...s}).format(e);return{weekday:r({weekday:"short"}),day:r({day:"numeric"}),month:r({month:"short"})}}var Ht=class extends x{constructor(){super();this.day="";this.days=[],this.dayLabel="Day",this.timeLabel="Time",this.emptyText="No times are available at the moment."}static{this.properties={...x.properties,days:{type:Array},dayLabel:{type:String,attribute:"day-label"},timeLabel:{type:String,attribute:"time-label"},emptyText:{type:String,attribute:"empty-text"}}}static{this.styles=[...x.styles,u`
2993
3074
  fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
2994
3075
  legend { padding: 0; }
2995
- .row-label { ${w("sm")} color: ${t.textMuted}; margin-block: ${r(2)}; }
2996
- .days { display: flex; gap: ${r(2)}; overflow-x: auto; padding: ${r(1)}; margin: -${r(1)}; scrollbar-width: thin; }
2997
- .times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: ${r(2)}; }
3076
+ .row-label { ${w("sm")} color: ${t.textMuted}; margin-block: ${a(2)}; }
3077
+ .days { display: flex; gap: ${a(2)}; overflow-x: auto; padding: ${a(1)}; margin: -${a(1)}; scrollbar-width: thin; }
3078
+ .times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: ${a(2)}; }
2998
3079
  label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; min-block-size: 44px; color: ${t.text}; background: ${t.surfaceCard}; border-radius: ${t.radiusLg}; box-shadow: inset 0 0 0 1px ${t.border}; cursor: pointer; transition: background-color 120ms ease-in-out; }
2999
3080
  label:hover { background: ${t.surfaceSubtle}; }
3000
3081
  label:has(input:checked) { color: ${t.onBrand}; background: ${t.brand}; box-shadow: none; }
3001
3082
  label:has(input:focus-visible) { box-shadow: ${t.focusShadow}; }
3002
3083
  input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
3003
- .day { flex: none; inline-size: 4.5rem; padding-block: ${r(2.5)}; }
3084
+ .day { flex: none; inline-size: 4.5rem; padding-block: ${a(2.5)}; }
3004
3085
  .weekday, .month { ${w("xs")} }
3005
3086
  .num { ${w("xl")} font-weight: ${m("semibold")}; }
3006
- .time { padding: ${r(2)}; ${w("sm")} font-weight: ${m("medium")}; }
3087
+ .time { padding: ${a(2)}; ${w("sm")} font-weight: ${m("medium")}; }
3007
3088
  .empty { margin: 0; color: ${t.textMuted}; }
3008
3089
  :host([invalid]) .days label, :host([invalid]) .times label { box-shadow: inset 0 0 0 1px ${t.danger}; }
3009
- `]}get currentDay(){let i=this.day||this.value.split("T")[0];return this.days.find(a=>a.date===i)??this.days[0]}chooseDay(i){this.day=i,this.value&&!this.value.startsWith(`${i}T`)&&this.setFormValue(""),this.requestUpdate()}renderLabel(){return s`<legend class="label" part="label">${this.label}${this.required?s`<span class="required"> (${this.requiredText})</span>`:l}</legend>`}renderControl(){let i=this.currentDay;return i?s`
3090
+ `]}get currentDay(){let i=this.day||this.value.split("T")[0];return this.days.find(r=>r.date===i)??this.days[0]}chooseDay(i){this.day=i,this.value&&!this.value.startsWith(`${i}T`)&&this.setFormValue(""),this.requestUpdate()}renderLabel(){return o`<legend class="label" part="label">${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}</legend>`}renderControl(){let i=this.currentDay;return i?o`
3010
3091
  <div class="row-label" id=${this.id_("days")}>${this.dayLabel}</div>
3011
3092
  <div class="days" part="days" role="radiogroup" aria-labelledby=${this.id_("days")}>
3012
- ${this.days.map(a=>{let o=Sr(a.date);return s`<label class="day"><input type="radio" name=${`${this.uid}-day`} .checked=${a.date===i.date} ?disabled=${this.disabled} @change=${()=>this.chooseDay(a.date)} />
3013
- <span class="weekday">${o.weekday}</span><span class="num">${o.day}</span><span class="month">${o.month}</span></label>`})}
3093
+ ${this.days.map(r=>{let s=Rr(r.date);return o`<label class="day"><input type="radio" name=${`${this.uid}-day`} .checked=${r.date===i.date} ?disabled=${this.disabled} @change=${()=>this.chooseDay(r.date)} />
3094
+ <span class="weekday">${s.weekday}</span><span class="num">${s.day}</span><span class="month">${s.month}</span></label>`})}
3014
3095
  </div>
3015
3096
  <div class="row-label" id=${this.id_("times")}>${this.timeLabel}</div>
3016
3097
  <div class="times" part="times" role="radiogroup" aria-labelledby=${this.id_("times")}>
3017
- ${wr(i).map((a,o)=>{let d=`${i.date}T${a}`;return s`<label class="time"><input type="radio" name=${`${this.uid}-time`} .checked=${this.value===d} ?required=${this.required&&o===0} ?disabled=${this.disabled} @change=${()=>this.setFormValue(d)} />${a}</label>`})}
3018
- </div>`:s`<p class="empty">${this.emptyText}</p>`}render(){return s`<fieldset part="fieldset" ?disabled=${this.disabled} aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
3098
+ ${Ir(i).map((r,s)=>{let c=`${i.date}T${r}`;return o`<label class="time"><input type="radio" name=${`${this.uid}-time`} .checked=${this.value===c} ?required=${this.required&&s===0} ?disabled=${this.disabled} @change=${()=>this.setFormValue(c)} />${r}</label>`})}
3099
+ </div>`:o`<p class="empty">${this.emptyText}</p>`}render(){return o`<fieldset part="fieldset" ?disabled=${this.disabled} aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
3019
3100
  ${this.renderLabel()}
3020
- ${this.description?s`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
3101
+ ${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
3021
3102
  ${this.renderControl()}
3022
3103
  <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
3023
- </fieldset>`}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-drawer",wt);customElements.define("impakt-toast",St);customElements.define("impakt-menu",Tt);customElements.define("impakt-pagination",zt);customElements.define("impakt-avatar",Mt);customElements.define("impakt-avatar-group",Et);customElements.define("impakt-empty-state",At);customElements.define("impakt-slot-picker",Ct);var li=h`
3104
+ </fieldset>`}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-drawer",Et);customElements.define("impakt-toast",At);customElements.define("impakt-menu",Ct);customElements.define("impakt-pagination",Lt);customElements.define("impakt-avatar",It);customElements.define("impakt-avatar-group",Rt);customElements.define("impakt-empty-state",_t);customElements.define("impakt-slot-picker",Ht);var ui=u`
3024
3105
  input, select {
3025
3106
  box-sizing: border-box;
3026
3107
  inline-size: min(100%, var(--impakt-field-width));
3027
3108
  min-block-size: 44px;
3028
- padding: ${r(2.5)} ${r(3)};
3109
+ padding: ${a(2.5)} ${a(3)};
3029
3110
  font: inherit;
3030
3111
  /* 16px whatever the page around it sets, so a phone does not zoom in on focus. */
3031
3112
  font-size: max(${b("md")}, 16px);
@@ -3038,7 +3119,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3038
3119
  :host([invalid]) input, :host([invalid]) select { border-color: ${t.danger}; border-width: ${t.borderThick}; }
3039
3120
  .btn {
3040
3121
  min-block-size: 44px;
3041
- padding: ${r(2.5)} ${r(4)};
3122
+ padding: ${a(2.5)} ${a(4)};
3042
3123
  font: inherit;
3043
3124
  font-weight: ${m("semibold")};
3044
3125
  color: ${t.onBrand};
@@ -3050,24 +3131,24 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3050
3131
  .btn:hover { background: ${t.brandHover}; }
3051
3132
  .quiet { display: inline-flex; align-items: center; min-block-size: ${t.targetMin}; padding: 0; font: inherit; color: ${t.link}; text-decoration: underline; text-underline-offset: 0.2em; background: none; border: 0; cursor: pointer; }
3052
3133
  .visually-hidden { ${T} }
3053
- `,j=class extends x{static{this.properties={...x.properties,postcodeLabel:{type:String,attribute:"postcode-label"},findText:{type:String,attribute:"find-text"},chooseLabel:{type:String,attribute:"choose-label"},manualText:{type:String,attribute:"manual-text"},notFoundText:{type:String,attribute:"not-found-text"},lookupUrl:{type:String,attribute:"lookup-url"},addresses:{type:Array}}}constructor(){super(),this.label="Your address",this.postcodeLabel="Postcode",this.findText="Find address",this.chooseLabel="Choose your address",this.manualText="Enter the address yourself",this.notFoundText="No addresses found for that postcode. Check it, or enter the address yourself.",this.lookupUrl="",this.addresses=[],this.manual=!1,this.postcode="",this.searched=!1,this.busy=!1}static{this.styles=[...x.styles,N,li,h`
3054
- .row { display: flex; flex-wrap: wrap; gap: ${r(2)}; align-items: flex-end; }
3055
- .row label { display: block; ${w("sm")} font-weight: ${m("semibold")}; margin-block-end: ${r(1)}; }
3134
+ `,G=class extends x{static{this.properties={...x.properties,postcodeLabel:{type:String,attribute:"postcode-label"},findText:{type:String,attribute:"find-text"},chooseLabel:{type:String,attribute:"choose-label"},manualText:{type:String,attribute:"manual-text"},notFoundText:{type:String,attribute:"not-found-text"},lookupUrl:{type:String,attribute:"lookup-url"},addresses:{type:Array}}}constructor(){super(),this.label="Your address",this.postcodeLabel="Postcode",this.findText="Find address",this.chooseLabel="Choose your address",this.manualText="Enter the address yourself",this.notFoundText="No addresses found for that postcode. Check it, or enter the address yourself.",this.lookupUrl="",this.addresses=[],this.manual=!1,this.postcode="",this.searched=!1,this.busy=!1}static{this.styles=[...x.styles,D,ui,u`
3135
+ .row { display: flex; flex-wrap: wrap; gap: ${a(2)}; align-items: flex-end; }
3136
+ .row label { display: block; ${w("sm")} font-weight: ${m("semibold")}; margin-block-end: ${a(1)}; }
3056
3137
  .postcode input { inline-size: 12ch; text-transform: uppercase; }
3057
- .choose { margin-block-start: ${r(4)}; }
3138
+ .choose { margin-block-start: ${a(4)}; }
3058
3139
  .choose select { inline-size: 100%; }
3059
- .manual { display: grid; gap: ${r(3)}; margin-block-start: ${r(3)}; }
3060
- .manual label { display: block; ${w("sm")} margin-block-end: ${r(1)}; }
3140
+ .manual { display: grid; gap: ${a(3)}; margin-block-start: ${a(3)}; }
3141
+ .manual label { display: block; ${w("sm")} margin-block-end: ${a(1)}; }
3061
3142
  .manual input { inline-size: 100%; }
3062
- .note { ${w("sm")} color: ${t.textMuted}; margin: ${r(2)} 0 0; }
3063
- .switch { margin-block-start: ${r(3)}; }
3064
- `]}async find(){let e=this.postcode.trim().toUpperCase();if(e){if(this.dispatchEvent(new CustomEvent("impakt-lookup",{detail:{postcode:e},bubbles:!0,composed:!0})),!this.lookupUrl){this.searched=!0;return}this.busy=!0;try{let i=new URL(this.lookupUrl,globalThis.location?.href);i.searchParams.set("postcode",e);let a=await(await fetch(i)).json();this.addresses=Array.isArray(a)?a:[]}catch{this.addresses=[]}finally{this.busy=!1,this.searched=!0}}}manualLine(){return["line1","line2","town","mpostcode"].map(i=>(this.renderRoot.querySelector(`#${this.id_(i)}`)?.value??"").trim()).filter(Boolean).join(", ")}renderControl(){if(this.manual){let e=(i,a,o)=>s`<div><label for=${this.id_(i)}>${a}</label><input id=${this.id_(i)} autocomplete=${o} @input=${()=>this.setFormValue(this.manualLine())} /></div>`;return s`<div class="manual" role="group" aria-label=${this.label}>
3143
+ .note { ${w("sm")} color: ${t.textMuted}; margin: ${a(2)} 0 0; }
3144
+ .switch { margin-block-start: ${a(3)}; }
3145
+ `]}async find(){let e=this.postcode.trim().toUpperCase();if(e){if(this.dispatchEvent(new CustomEvent("impakt-lookup",{detail:{postcode:e},bubbles:!0,composed:!0})),!this.lookupUrl){this.searched=!0;return}this.busy=!0;try{let i=new URL(this.lookupUrl,globalThis.location?.href);i.searchParams.set("postcode",e);let r=await(await fetch(i)).json();this.addresses=Array.isArray(r)?r:[]}catch{this.addresses=[]}finally{this.busy=!1,this.searched=!0}}}manualLine(){return["line1","line2","town","mpostcode"].map(i=>(this.renderRoot.querySelector(`#${this.id_(i)}`)?.value??"").trim()).filter(Boolean).join(", ")}renderControl(){if(this.manual){let e=(i,r,s)=>o`<div><label for=${this.id_(i)}>${r}</label><input id=${this.id_(i)} autocomplete=${s} @input=${()=>this.setFormValue(this.manualLine())} /></div>`;return o`<div class="manual" role="group" aria-label=${this.label}>
3065
3146
  ${e("line1",S("Building and street"),"address-line1")}
3066
3147
  ${e("line2",S("Second line (optional)"),"address-line2")}
3067
3148
  ${e("town",S("Town or city"),"address-level2")}
3068
3149
  ${e("mpostcode",S("Postcode"),"postal-code")}
3069
3150
  <button class="quiet switch" type="button" @click=${()=>{this.manual=!1}}>${S("Find the address from the postcode")}</button>
3070
- </div>`}return s`
3151
+ </div>`}return o`
3071
3152
  <div class="row">
3072
3153
  <div class="postcode"><label for=${this.controlId}>${this.postcodeLabel}</label>
3073
3154
  <input id=${this.controlId} autocomplete="postal-code" .value=${this.postcode} aria-describedby=${this.describedBy}
@@ -3075,24 +3156,24 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3075
3156
  @keydown=${e=>{e.key==="Enter"&&(e.preventDefault(),this.find())}} /></div>
3076
3157
  <button class="btn" type="button" ?disabled=${this.busy} @click=${()=>this.find()}>${this.busy?"Finding\u2026":this.findText}</button>
3077
3158
  </div>
3078
- ${this.addresses.length?s`<div class="choose"><label class="label" for=${this.id_("choose")}>${this.chooseLabel}</label>
3159
+ ${this.addresses.length?o`<div class="choose"><label class="label" for=${this.id_("choose")}>${this.chooseLabel}</label>
3079
3160
  <select id=${this.id_("choose")} @change=${e=>this.setFormValue(e.target.value)}>
3080
3161
  <option value="">${this.addresses.length} ${this.addresses.length===1?"address":"addresses"} found</option>
3081
- ${this.addresses.map(e=>s`<option value=${e.line} ?selected=${e.line===this.value}>${e.line}</option>`)}
3082
- </select></div>`:this.searched&&!this.busy?s`<p class="note" role="status">${this.notFoundText}</p>`:l}
3162
+ ${this.addresses.map(e=>o`<option value=${e.line} ?selected=${e.line===this.value}>${e.line}</option>`)}
3163
+ </select></div>`:this.searched&&!this.busy?o`<p class="note" role="status">${this.notFoundText}</p>`:l}
3083
3164
  <button class="quiet switch" type="button" @click=${()=>{this.manual=!0}}>${this.manualText}</button>
3084
- `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Lt=class extends p{static{this.properties={heading:{type:String},items:{type:Array},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="There is a problem",this.items=[],this.spaceAbove="none",this.spaceBelow="md"}static{this.styles=[...p.styles,k,I,A("a"),h`
3165
+ `}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Bt=class extends h{static{this.properties={heading:{type:String},items:{type:Array},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="There is a problem",this.items=[],this.spaceAbove="none",this.spaceBelow="md"}static{this.styles=[...h.styles,k,N,C("a"),u`
3085
3166
  :host { display: block; }
3086
- .box { padding: ${r(5)}; border: ${t.borderThick} solid ${t.danger}; border-inline-start-width: 6px; border-radius: ${t.radiusLg}; background: ${t.surfaceCard}; }
3167
+ .box { padding: ${a(5)}; border: ${t.borderThick} solid ${t.danger}; border-inline-start-width: 6px; border-radius: ${t.radiusLg}; background: ${t.surfaceCard}; }
3087
3168
  .box:focus { outline: 3px solid ${t.danger}; outline-offset: 2px; }
3088
- h2 { margin: 0 0 ${r(3)}; ${w("lg")} font-weight: ${m("bold")}; color: ${t.text}; }
3089
- ul { margin: 0; padding: 0; list-style: none; display: grid; gap: ${r(2)}; }
3169
+ h2 { margin: 0 0 ${a(3)}; ${w("lg")} font-weight: ${m("bold")}; color: ${t.text}; }
3170
+ ul { margin: 0; padding: 0; list-style: none; display: grid; gap: ${a(2)}; }
3090
3171
  a { display: inline-flex; align-items: center; min-block-size: ${t.targetMin}; color: ${t.dangerText}; font-weight: ${m("semibold")}; text-underline-offset: 0.2em; }
3091
- `]}go(e,i){let a=i.replace(/^#/,""),d=this.getRootNode().querySelector?.(`#${CSS.escape(a)}`)??document.getElementById(a);d&&(e.preventDefault(),d.scrollIntoView({block:"center"}),d.focus())}updated(e){let i=e.get("items");e.has("items")&&this.items.length&&!i?.length&&this.renderRoot.querySelector(".box")?.focus()}render(){return this.items.length?s`<div class="box" role="alert" tabindex="-1" aria-labelledby=${this.id_("h")} part="box">
3172
+ `]}go(e,i){let r=i.replace(/^#/,""),c=this.getRootNode().querySelector?.(`#${CSS.escape(r)}`)??document.getElementById(r);c&&(e.preventDefault(),c.scrollIntoView({block:"center"}),c.focus())}updated(e){let i=e.get("items");e.has("items")&&this.items.length&&!i?.length&&this.renderRoot.querySelector(".box")?.focus()}render(){return this.items.length?o`<div class="box" role="alert" tabindex="-1" aria-labelledby=${this.id_("h")} part="box">
3092
3173
  <h2 id=${this.id_("h")}>${this.heading}</h2>
3093
- <ul>${this.items.map(e=>s`<li><a href=${e.href} @click=${i=>this.go(i,e.href)}>${e.text}</a></li>`)}</ul>
3094
- </div>`:l}},Tr=n=>n>=1048576?S("{size} MB",{size:(n/1048576).toFixed(1)}):S("{size} KB",{size:Math.max(1,Math.round(n/1024))}),X=class extends x{static{this.properties={...x.properties,accept:{type:String},manyFiles:{type:Boolean,attribute:"many-files"},maxSizeMb:{type:Number,attribute:"max-size-mb"},chooseText:{type:String,attribute:"choose-text"},dropText:{type:String,attribute:"drop-text"}}}constructor(){super(),this.label="Upload a file",this.accept=".pdf,.jpg,.jpeg,.png",this.manyFiles=!1,this.maxSizeMb=10,this.chooseText="Choose file",this.dropText="or drop it here",this.files=[],this.over=!1,this.said=""}static{this.styles=[...x.styles,li,z,A("label.btn, .quiet"),h`
3095
- .zone { display: flex; flex-wrap: wrap; align-items: center; gap: ${r(3)}; padding: ${r(5)}; border: 2px dashed ${t.border}; border-radius: ${t.radiusLg}; background: ${t.surfaceCard}; }
3174
+ <ul>${this.items.map(e=>o`<li><a href=${e.href} @click=${i=>this.go(i,e.href)}>${e.text}</a></li>`)}</ul>
3175
+ </div>`:l}},_r=n=>n>=1048576?S("{size} MB",{size:(n/1048576).toFixed(1)}):S("{size} KB",{size:Math.max(1,Math.round(n/1024))}),te=class extends x{static{this.properties={...x.properties,accept:{type:String},manyFiles:{type:Boolean,attribute:"many-files"},maxSizeMb:{type:Number,attribute:"max-size-mb"},chooseText:{type:String,attribute:"choose-text"},dropText:{type:String,attribute:"drop-text"}}}constructor(){super(),this.label="Upload a file",this.accept=".pdf,.jpg,.jpeg,.png",this.manyFiles=!1,this.maxSizeMb=10,this.chooseText="Choose file",this.dropText="or drop it here",this.files=[],this.over=!1,this.said=""}static{this.styles=[...x.styles,ui,z,C("label.btn, .quiet"),u`
3176
+ .zone { display: flex; flex-wrap: wrap; align-items: center; gap: ${a(3)}; padding: ${a(5)}; border: 2px dashed ${t.border}; border-radius: ${t.radiusLg}; background: ${t.surfaceCard}; }
3096
3177
  .zone.over { border-color: ${t.brand}; background: ${t.brandSubtle}; }
3097
3178
  :host([invalid]) .zone { border-color: ${t.danger}; border-style: solid; }
3098
3179
  :host([disabled]) label.btn { cursor: not-allowed; }
@@ -3100,10 +3181,10 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3100
3181
  input[type='file'] { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
3101
3182
  label.btn { display: inline-flex; align-items: center; }
3102
3183
  input[type='file']:focus-visible + label.btn { box-shadow: ${t.focusShadow}; }
3103
- ul { margin: ${r(3)} 0 0; padding: 0; list-style: none; display: grid; gap: ${r(2)}; }
3104
- li { display: flex; justify-content: space-between; gap: ${r(3)}; align-items: center; padding: ${r(2)} ${r(3)}; border-radius: ${t.radius}; background: ${t.surfaceInset}; }
3184
+ ul { margin: ${a(3)} 0 0; padding: 0; list-style: none; display: grid; gap: ${a(2)}; }
3185
+ li { display: flex; justify-content: space-between; gap: ${a(3)}; align-items: center; padding: ${a(2)} ${a(3)}; border-radius: ${t.radius}; background: ${t.surfaceInset}; }
3105
3186
  .size { color: ${t.textMuted}; ${w("sm")} }
3106
- `]}fits(e){if(this.maxSizeMb&&e.size>this.maxSizeMb*1048576)return S("{file} is bigger than {size} MB",{file:e.name,size:this.maxSizeMb});let i=this.accept.split(",").map(a=>a.trim().toLowerCase()).filter(Boolean);return i.length&&!i.some(a=>a.startsWith(".")?e.name.toLowerCase().endsWith(a):e.type===a||a.endsWith("/*")&&e.type.startsWith(a.slice(0,-1)))?S("{file} must be {kinds}",{file:e.name,kinds:i.map(a=>a.replace(".","").toUpperCase()).join(", ")}):null}add(e){let i=Array.from(e),a=i.map(c=>this.fits(c)).filter(c=>!!c),o=i.filter(c=>!this.fits(c)),d=this.manyFiles?o:o.slice(0,1);this.files=this.manyFiles?[...this.files,...o]:d.length?d:this.files,this.error=a.join(". "),this.said=d.map(c=>S("{file} added",{file:c.name})).join(". "),this.sync()}removeFile(e){let i=this.files[e];this.files=this.files.filter((a,o)=>o!==e),this.said=i?S("{file} removed",{file:i.name}):"",this.sync(),this.updateComplete.then(()=>this.renderRoot.querySelector('input[type="file"]')?.focus())}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}sync(){this.setFormValue(this.files.map(e=>e.name).join(", ")),this.dispatchEvent(new CustomEvent("impakt-files",{detail:{files:this.files},bubbles:!0,composed:!0}))}renderControl(){return s`
3187
+ `]}fits(e){if(this.maxSizeMb&&e.size>this.maxSizeMb*1048576)return S("{file} is bigger than {size} MB",{file:e.name,size:this.maxSizeMb});let i=this.accept.split(",").map(r=>r.trim().toLowerCase()).filter(Boolean);return i.length&&!i.some(r=>r.startsWith(".")?e.name.toLowerCase().endsWith(r):e.type===r||r.endsWith("/*")&&e.type.startsWith(r.slice(0,-1)))?S("{file} must be {kinds}",{file:e.name,kinds:i.map(r=>r.replace(".","").toUpperCase()).join(", ")}):null}add(e){let i=Array.from(e),r=i.map(p=>this.fits(p)).filter(p=>!!p),s=i.filter(p=>!this.fits(p)),c=this.manyFiles?s:s.slice(0,1);this.files=this.manyFiles?[...this.files,...s]:c.length?c:this.files,this.error=r.join(". "),this.said=c.map(p=>S("{file} added",{file:p.name})).join(". "),this.sync()}removeFile(e){let i=this.files[e];this.files=this.files.filter((r,s)=>s!==e),this.said=i?S("{file} removed",{file:i.name}):"",this.sync(),this.updateComplete.then(()=>this.renderRoot.querySelector('input[type="file"]')?.focus())}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}sync(){this.setFormValue(this.files.map(e=>e.name).join(", ")),this.dispatchEvent(new CustomEvent("impakt-files",{detail:{files:this.files},bubbles:!0,composed:!0}))}renderControl(){return o`
3107
3188
  <div class="zone ${this.over?"over":""}"
3108
3189
  @dragover=${e=>{e.preventDefault(),this.over=!0}}
3109
3190
  @dragleave=${()=>{this.over=!1}}
@@ -3114,51 +3195,51 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3114
3195
  <span class="drop">${this.dropText}</span>
3115
3196
  </div>
3116
3197
  <p class="visually-hidden" role="status">${this.said}</p>
3117
- ${this.files.length?s`<ul aria-label=${S("Files added")}>${this.files.map((e,i)=>s`<li><span>${e.name} <span class="size">${Tr(e.size)}</span></span><button class="quiet" type="button" @click=${()=>this.removeFile(i)}>${S("Remove")}<span class="visually-hidden"> ${e.name}</span></button></li>`)}</ul>`:l}
3118
- `}};function oi(n){try{return new Intl.NumberFormat(B(),{style:"currency",currency:n,maximumFractionDigits:0}).formatToParts(0).find(e=>e.type==="currency")?.value??""}catch{return""}}function ni(n){let e=n.replace(/[^\d.]/g,"");if(!e)return"";let[i,a]=e.split(".");return`${Number(i).toLocaleString("en-GB")}${a!==void 0?`.${a.slice(0,2)}`:""}`}var be=class extends x{static{this.properties={...x.properties,currency:{type:String},lowest:{type:Number},highest:{type:Number},pence:{type:Boolean},width:{type:String,reflect:!0}}}constructor(){super(),this.currency="GBP",this.lowest=void 0,this.highest=void 0,this.pence=!1,this.width="md",this.shown=""}static{this.styles=[...x.styles,N,li,h`
3198
+ ${this.files.length?o`<ul aria-label=${S("Files added")}>${this.files.map((e,i)=>o`<li><span>${e.name} <span class="size">${_r(e.size)}</span></span><button class="quiet" type="button" @click=${()=>this.removeFile(i)}>${S("Remove")}<span class="visually-hidden"> ${e.name}</span></button></li>`)}</ul>`:l}
3199
+ `}};function pi(n){try{return new Intl.NumberFormat(q(),{style:"currency",currency:n,maximumFractionDigits:0}).formatToParts(0).find(e=>e.type==="currency")?.value??""}catch{return""}}function hi(n){let e=n.replace(/[^\d.]/g,"");if(!e)return"";let[i,r]=e.split(".");return`${Number(i).toLocaleString("en-GB")}${r!==void 0?`.${r.slice(0,2)}`:""}`}var ke=class extends x{static{this.properties={...x.properties,currency:{type:String},lowest:{type:Number},highest:{type:Number},pence:{type:Boolean},width:{type:String,reflect:!0}}}constructor(){super(),this.currency="GBP",this.lowest=void 0,this.highest=void 0,this.pence=!1,this.width="md",this.shown=""}static{this.styles=[...x.styles,D,ui,u`
3119
3200
  .wrap { display: flex; align-items: stretch; inline-size: min(100%, var(--impakt-field-width)); }
3120
- .sign { display: flex; align-items: center; padding: 0 ${r(3)}; font-weight: ${m("semibold")}; background: ${t.surfaceInset}; border: ${t.borderThin} solid ${t.border}; border-inline-end: 0; border-radius: ${t.radiusLg} 0 0 ${t.radiusLg}; }
3201
+ .sign { display: flex; align-items: center; padding: 0 ${a(3)}; font-weight: ${m("semibold")}; background: ${t.surfaceInset}; border: ${t.borderThin} solid ${t.border}; border-inline-end: 0; border-radius: ${t.radiusLg} 0 0 ${t.radiusLg}; }
3121
3202
  .wrap input { inline-size: 100%; border-radius: 0 ${t.radiusLg} ${t.radiusLg} 0; }
3122
- `]}willUpdate(e){e.has("value")&&this.value!==this.shown.replace(/,/g,"")&&(this.shown=ni(this.value))}typed(e){let i=e.replace(/[^\d.]/g,""),a=this.pence?i:i.split(".")[0];this.shown=e,this.setFormValue(a)}check(){this.shown=ni(this.value);let e=Number(this.value);if(!this.value)return;let i=a=>`${oi(this.currency)}${a.toLocaleString("en-GB")}`;this.lowest!==void 0&&e<this.lowest?this.error=S("Enter an amount of {amount} or more",{amount:i(this.lowest)}):this.highest!==void 0&&e>this.highest?this.error=S("Enter an amount of {amount} or less",{amount:i(this.highest)}):(this.error===S("Enter an amount of {amount} or more",{amount:i(this.lowest??0)})||this.error===S("Enter an amount of {amount} or less",{amount:i(this.highest??0)}))&&(this.error="")}get describedBy(){let e=[oi(this.currency)?this.id_("sign"):"",super.describedBy===l?"":String(super.describedBy)].filter(Boolean);return e.length?e.join(" "):l}renderControl(){return s`<div class="wrap">
3123
- <span class="sign" id=${this.id_("sign")}>${oi(this.currency)}</span>
3203
+ `]}willUpdate(e){e.has("value")&&this.value!==this.shown.replace(/,/g,"")&&(this.shown=hi(this.value))}typed(e){let i=e.replace(/[^\d.]/g,""),r=this.pence?i:i.split(".")[0];this.shown=e,this.setFormValue(r)}check(){this.shown=hi(this.value);let e=Number(this.value);if(!this.value)return;let i=r=>`${pi(this.currency)}${r.toLocaleString("en-GB")}`;this.lowest!==void 0&&e<this.lowest?this.error=S("Enter an amount of {amount} or more",{amount:i(this.lowest)}):this.highest!==void 0&&e>this.highest?this.error=S("Enter an amount of {amount} or less",{amount:i(this.highest)}):(this.error===S("Enter an amount of {amount} or more",{amount:i(this.lowest??0)})||this.error===S("Enter an amount of {amount} or less",{amount:i(this.highest??0)}))&&(this.error="")}get describedBy(){let e=[pi(this.currency)?this.id_("sign"):"",super.describedBy===l?"":String(super.describedBy)].filter(Boolean);return e.length?e.join(" "):l}renderControl(){return o`<div class="wrap">
3204
+ <span class="sign" id=${this.id_("sign")}>${pi(this.currency)}</span>
3124
3205
  <input id=${this.controlId} inputmode=${this.pence?"decimal":"numeric"} .value=${this.shown} ?disabled=${this.disabled} ?readonly=${this.readonly} ?required=${this.required}
3125
3206
  aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}
3126
3207
  @input=${e=>this.typed(e.target.value)} @blur=${()=>this.check()} />
3127
- </div>`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Rt=class extends x{static{this.properties={...x.properties,lowest:{type:Number},highest:{type:Number},step:{type:Number},currency:{type:String},unit:{type:String}}}constructor(){super(),this.label="How much",this.lowest=0,this.highest=100,this.step=1,this.currency="",this.unit="",this.value="50"}static{this.styles=[...x.styles,h`
3128
- .top { display: flex; justify-content: space-between; gap: ${r(3)}; }
3208
+ </div>`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Nt=class extends x{static{this.properties={...x.properties,lowest:{type:Number},highest:{type:Number},step:{type:Number},currency:{type:String},unit:{type:String}}}constructor(){super(),this.label="How much",this.lowest=0,this.highest=100,this.step=1,this.currency="",this.unit="",this.value="50"}static{this.styles=[...x.styles,u`
3209
+ .top { display: flex; justify-content: space-between; gap: ${a(3)}; }
3129
3210
  output { font-weight: ${m("semibold")}; color: ${t.text}; }
3130
3211
  input { inline-size: 100%; min-block-size: 32px; margin: 0; accent-color: ${t.brand}; }
3131
3212
  .ends { display: flex; justify-content: space-between; ${w("sm")} color: ${t.textMuted}; }
3132
- `]}shownAs(e){let i=B(this),a=e.toLocaleString(i);if(this.currency)try{a=new Intl.NumberFormat(i,{style:"currency",currency:this.currency,maximumFractionDigits:0}).format(e)}catch{}return this.unit?`${a} ${this.unit}`:a}render(){let e=Number(this.value)||0;return s`
3133
- <div class="top"><label class="label" for=${this.controlId}>${this.label}${this.required?s` <span class="required">(${this.requiredText})</span>`:l}</label>
3213
+ `]}shownAs(e){let i=q(this),r=e.toLocaleString(i);if(this.currency)try{r=new Intl.NumberFormat(i,{style:"currency",currency:this.currency,maximumFractionDigits:0}).format(e)}catch{}return this.unit?`${r} ${this.unit}`:r}render(){let e=Number(this.value)||0;return o`
3214
+ <div class="top"><label class="label" for=${this.controlId}>${this.label}${this.required?o` <span class="required">(${this.requiredText})</span>`:l}</label>
3134
3215
  <output for=${this.controlId}>${this.shownAs(e)}</output></div>
3135
- ${this.description?s`<div class="description" id=${this.id_("description")}>${this.description}</div>`:l}
3216
+ ${this.description?o`<div class="description" id=${this.id_("description")}>${this.description}</div>`:l}
3136
3217
  ${this.renderControl()}
3137
3218
  <div class="ends" aria-hidden="true"><span>${this.shownAs(this.lowest)}</span><span>${this.shownAs(this.highest)}</span></div>
3138
3219
  <div class="error" id=${this.id_("error")} aria-live="polite">${this.error||l}</div>
3139
- `}renderControl(){return s`<input id=${this.controlId} type="range" min=${this.lowest} max=${this.highest} step=${this.step} .value=${this.value} ?disabled=${this.disabled}
3220
+ `}renderControl(){return o`<input id=${this.controlId} type="range" min=${this.lowest} max=${this.highest} step=${this.step} .value=${this.value} ?disabled=${this.disabled}
3140
3221
  aria-valuetext=${this.shownAs(Number(this.value)||0)} aria-describedby=${this.describedBy}
3141
- @input=${e=>this.setFormValue(e.target.value)} />`}},qi={done:"Completed","in-progress":"In progress","not-started":"Not started","cannot-start":"Cannot start yet"},It=class extends p{static{this.properties={heading:{type:String},items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="Your application",this.items=[],this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...p.styles,k,I,A("a"),h`
3222
+ @input=${e=>this.setFormValue(e.target.value)} />`}},Gi={done:"Completed","in-progress":"In progress","not-started":"Not started","cannot-start":"Cannot start yet"},Ot=class extends h{static{this.properties={heading:{type:String},items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="Your application",this.items=[],this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...h.styles,k,N,C("a"),u`
3142
3223
  :host { display: block; }
3143
- .h { margin: 0 0 ${r(2)}; ${w("xl")} font-weight: ${m("bold")}; color: ${t.textHeading}; }
3144
- .count { margin: 0 0 ${r(4)}; color: ${t.textMuted}; }
3224
+ .h { margin: 0 0 ${a(2)}; ${w("xl")} font-weight: ${m("bold")}; color: ${t.textHeading}; }
3225
+ .count { margin: 0 0 ${a(4)}; color: ${t.textMuted}; }
3145
3226
  ul { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid ${t.rule}; }
3146
- li { display: flex; justify-content: space-between; align-items: center; gap: ${r(4)}; padding: ${r(4)} 0; border-block-end: 1px solid ${t.rule}; }
3227
+ li { display: flex; justify-content: space-between; align-items: center; gap: ${a(4)}; padding: ${a(4)} 0; border-block-end: 1px solid ${t.rule}; }
3147
3228
  a { display: inline-flex; align-items: center; min-block-size: ${t.targetMin}; color: ${t.link}; font-weight: ${m("semibold")}; text-underline-offset: 0.2em; }
3148
3229
  .title { font-weight: ${m("semibold")}; }
3149
3230
  .hint { display: block; ${w("sm")} color: ${t.textMuted}; }
3150
- .tag { flex-shrink: 0; padding: ${r(1)} ${r(2.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); ${w("sm")} font-weight: ${m("semibold")}; background: ${t.surfaceInset}; color: ${t.text}; }
3231
+ .tag { flex-shrink: 0; padding: ${a(1)} ${a(2.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); ${w("sm")} font-weight: ${m("semibold")}; background: ${t.surfaceInset}; color: ${t.text}; }
3151
3232
  .tag[data-status='done'] { background: ${t.successSubtle}; color: ${t.successText}; }
3152
3233
  .tag[data-status='in-progress'] { background: ${t.brandSubtle}; color: ${t.link}; }
3153
3234
  .tag[data-status='cannot-start'] { background: transparent; color: ${t.textMuted}; }
3154
- `]}render(){let e=this.items.filter(i=>i.status==="done").length;return s`
3155
- ${this.heading?s`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:l}
3156
- ${this.items.length?s`<p class="count">${S(this.items.length===1?"You have completed {done} of {total} part.":"You have completed {done} of {total} parts.",{done:e,total:this.items.length})}</p>`:l}
3157
- <ul>${this.items.map(i=>s`<li>
3158
- <span>${i.href&&i.status!=="cannot-start"?s`<a href=${i.href} aria-describedby=${this.id_(`s-${i.id}`)}>${i.title}</a>`:s`<span class="title">${i.title}</span>`}
3159
- ${i.hint?s`<span class="hint">${i.hint}</span>`:l}</span>
3160
- <span class="tag" data-status=${i.status} id=${this.id_(`s-${i.id}`)}>${qi[i.status]?S(qi[i.status]):i.status}</span>
3161
- </li>`)}</ul>`}};j.createProperty("manual",{state:!0});j.createProperty("postcode",{state:!0});j.createProperty("searched",{state:!0});j.createProperty("busy",{state:!0});X.createProperty("files",{state:!0});X.createProperty("over",{state:!0});X.createProperty("said",{state:!0});be.createProperty("shown",{state:!0});customElements.define("impakt-address-lookup",j);customElements.define("impakt-error-summary",Lt);customElements.define("impakt-file-upload",X);customElements.define("impakt-money-input",be);customElements.define("impakt-range-input",Rt);customElements.define("impakt-task-list",It);var _t=class extends p{static{this.properties={label:{type:String},description:{type:String},href:{type:String},kind:{type:String,reflect:!0},look:{type:String,reflect:!0}}}constructor(){super(),this.label="",this.description="",this.href="",this.kind="static",this.look="default"}static{this.styles=[...p.styles,k,h`
3235
+ `]}render(){let e=this.items.filter(i=>i.status==="done").length;return o`
3236
+ ${this.heading?o`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:l}
3237
+ ${this.items.length?o`<p class="count">${S(this.items.length===1?"You have completed {done} of {total} part.":"You have completed {done} of {total} parts.",{done:e,total:this.items.length})}</p>`:l}
3238
+ <ul>${this.items.map(i=>o`<li>
3239
+ <span>${i.href&&i.status!=="cannot-start"?o`<a href=${i.href} aria-describedby=${this.id_(`s-${i.id}`)}>${i.title}</a>`:o`<span class="title">${i.title}</span>`}
3240
+ ${i.hint?o`<span class="hint">${i.hint}</span>`:l}</span>
3241
+ <span class="tag" data-status=${i.status} id=${this.id_(`s-${i.id}`)}>${Gi[i.status]?S(Gi[i.status]):i.status}</span>
3242
+ </li>`)}</ul>`}};G.createProperty("manual",{state:!0});G.createProperty("postcode",{state:!0});G.createProperty("searched",{state:!0});G.createProperty("busy",{state:!0});te.createProperty("files",{state:!0});te.createProperty("over",{state:!0});te.createProperty("said",{state:!0});ke.createProperty("shown",{state:!0});customElements.define("impakt-address-lookup",G);customElements.define("impakt-error-summary",Bt);customElements.define("impakt-file-upload",te);customElements.define("impakt-money-input",ke);customElements.define("impakt-range-input",Nt);customElements.define("impakt-task-list",Ot);var Pt=class extends h{static{this.properties={label:{type:String},description:{type:String},href:{type:String},kind:{type:String,reflect:!0},look:{type:String,reflect:!0}}}constructor(){super(),this.label="",this.description="",this.href="",this.kind="static",this.look="default"}static{this.styles=[...h.styles,k,u`
3162
3243
  :host {
3163
3244
  display: inline-flex;
3164
3245
  flex: none;
@@ -3206,7 +3287,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3206
3287
  border-color: CanvasText;
3207
3288
  }
3208
3289
  }
3209
- `]}press(){this.dispatchEvent(new CustomEvent("impakt-source",{detail:{label:this.label,description:this.description},bubbles:!0,composed:!0}))}render(){let e=this.description?this.description.includes(this.label)?this.description:`${this.label}: ${this.description}`:"",i=e||l;return this.href?s`<a class="chip" part="chip" href=${this.href} aria-label=${i}>${this.label}</a>`:this.kind==="button"?s`<button class="chip" part="chip" type="button" aria-label=${i} @click=${this.press}>${this.label}</button>`:e?s`<span class="chip" part="chip"><span aria-hidden="true">${this.label}</span><span class="visually-hidden">${e}</span></span>`:s`<span class="chip" part="chip">${this.label}</span>`}};customElements.define("impakt-source",_t);var Ht=class extends p{static{this.properties={state:{type:String,reflect:!0},label:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0},verifiedText:{type:String,attribute:"verified-text"},unverifiedText:{type:String,attribute:"unverified-text"}}}constructor(){super(),this.state="verified",this.label="",this.look="default",this.size="tool",this.verifiedText="Checked by code",this.unverifiedText="Not verified \xB7 a person must check"}static{this.styles=[...p.styles,h`
3290
+ `]}press(){this.dispatchEvent(new CustomEvent("impakt-source",{detail:{label:this.label,description:this.description},bubbles:!0,composed:!0}))}render(){let e=this.description?this.description.includes(this.label)?this.description:`${this.label}: ${this.description}`:"",i=e||l;return this.href?o`<a class="chip" part="chip" href=${this.href} aria-label=${i}>${this.label}</a>`:this.kind==="button"?o`<button class="chip" part="chip" type="button" aria-label=${i} @click=${this.press}>${this.label}</button>`:e?o`<span class="chip" part="chip"><span aria-hidden="true">${this.label}</span><span class="visually-hidden">${e}</span></span>`:o`<span class="chip" part="chip">${this.label}</span>`}};customElements.define("impakt-source",Pt);var qt=class extends h{static{this.properties={state:{type:String,reflect:!0},label:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0},verifiedText:{type:String,attribute:"verified-text"},unverifiedText:{type:String,attribute:"unverified-text"}}}constructor(){super(),this.state="verified",this.label="",this.look="default",this.size="tool",this.verifiedText="Checked by code",this.unverifiedText="Not verified \xB7 a person must check"}static{this.styles=[...h.styles,u`
3210
3291
  /* It keeps its size in a row, but never grows past its container: at 320 the words wrap inside the mark (1.4.10). */
3211
3292
  :host {
3212
3293
  display: inline-flex;
@@ -3218,7 +3299,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3218
3299
  .label {
3219
3300
  display: inline-flex;
3220
3301
  align-items: center;
3221
- gap: ${r(2)};
3302
+ gap: ${a(2)};
3222
3303
  padding: 3px 8px;
3223
3304
  font-family: ${t.fontMono};
3224
3305
  font-size: ${f.small};
@@ -3283,13 +3364,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3283
3364
  stroke: CanvasText;
3284
3365
  }
3285
3366
  }
3286
- `]}render(){let e=this.state!=="unverified",i=e?s`<svg class="mark" part="mark" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
3367
+ `]}render(){let e=this.state!=="unverified",i=e?o`<svg class="mark" part="mark" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
3287
3368
  <rect class="box" width="14" height="14"></rect>
3288
3369
  <path class="tick" d="M3 7.5 6 10.5 11 3.5" fill="none" stroke-width="1.5"></path>
3289
- </svg>`:s`<svg class="mark" part="mark" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
3370
+ </svg>`:o`<svg class="mark" part="mark" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
3290
3371
  <rect class="box" x="0.5" y="0.5" width="13" height="13" stroke-width="1"></rect>
3291
3372
  <path class="tick" d="M3.5 3.5 10.5 10.5M10.5 3.5 3.5 10.5" fill="none" stroke-width="1.5"></path>
3292
- </svg>`,a=this.label||(e?this.verifiedText:this.unverifiedText);return s`<span class="label" part="label">${i}<span class="text"><slot>${a}</slot></span></span>`}};customElements.define("impakt-checked",Ht);var Bt=class extends p{static{this.properties={tool:{type:String},home:{type:String},brand:{type:String},links:{type:Array},pagesLabel:{type:String,attribute:"pages-label"},switcher:{type:Array},switcherLabel:{type:String,attribute:"switcher-label"},toolsHref:{type:String,attribute:"tools-href"},organisation:{type:String},organisationItems:{type:Array,attribute:"organisation-items"},organisationHref:{type:String,attribute:"organisation-href"},signedOut:{type:Boolean,reflect:!0,attribute:"signed-out"},signInHref:{type:String,attribute:"sign-in-href"},signInText:{type:String,attribute:"sign-in-text"}}}constructor(){super(),this.tool="",this.home="/",this.brand="impakt",this.links=[],this.pagesLabel="Tool pages",this.switcher=[],this.switcherLabel="All tools",this.toolsHref="",this.organisation="Your organisation",this.organisationItems=[],this.organisationHref="",this.signedOut=!1,this.signInHref="/sign-in",this.signInText="Sign in"}static{this.styles=[...p.styles,k,A(".home, .pages a, .sign-in, a.org, .all"),h`
3373
+ </svg>`,r=this.label||(e?this.verifiedText:this.unverifiedText);return o`<span class="label" part="label">${i}<span class="text"><slot>${r}</slot></span></span>`}};customElements.define("impakt-checked",qt);var Dt=class extends h{static{this.properties={tool:{type:String},home:{type:String},brand:{type:String},links:{type:Array},pagesLabel:{type:String,attribute:"pages-label"},switcher:{type:Array},switcherLabel:{type:String,attribute:"switcher-label"},toolsHref:{type:String,attribute:"tools-href"},organisation:{type:String},organisationItems:{type:Array,attribute:"organisation-items"},organisationHref:{type:String,attribute:"organisation-href"},signedOut:{type:Boolean,reflect:!0,attribute:"signed-out"},signInHref:{type:String,attribute:"sign-in-href"},signInText:{type:String,attribute:"sign-in-text"}}}constructor(){super(),this.tool="",this.home="/",this.brand="impakt",this.links=[],this.pagesLabel="Tool pages",this.switcher=[],this.switcherLabel="All tools",this.toolsHref="",this.organisation="Your organisation",this.organisationItems=[],this.organisationHref="",this.signedOut=!1,this.signInHref="/sign-in",this.signInText="Sign in"}static{this.styles=[...h.styles,k,C(".home, .pages a, .sign-in, a.org, .all"),u`
3293
3374
  :host {
3294
3375
  display: block;
3295
3376
  container-type: inline-size;
@@ -3301,24 +3382,24 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3301
3382
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
3302
3383
  grid-template-areas: 'start pages end';
3303
3384
  align-items: center;
3304
- gap: ${r(2)} ${r(4)};
3385
+ gap: ${a(2)} ${a(4)};
3305
3386
  min-block-size: 56px;
3306
- padding: ${r(2)} ${r(4)};
3387
+ padding: ${a(2)} ${a(4)};
3307
3388
  color: ${t.text};
3308
3389
  background: ${t.surfaceCard};
3309
- border-block-end: 1px solid ${u("color.line.grid","light-dark(#DCDCD8, #1F1F1F)")};
3390
+ border-block-end: 1px solid ${d("color.line.grid","light-dark(#DCDCD8, #1F1F1F)")};
3310
3391
  }
3311
3392
  .start {
3312
3393
  grid-area: start;
3313
3394
  display: flex;
3314
3395
  align-items: center;
3315
- gap: ${r(2.5)};
3396
+ gap: ${a(2.5)};
3316
3397
  min-inline-size: 0;
3317
3398
  }
3318
3399
  .home {
3319
3400
  display: inline-flex;
3320
3401
  align-items: center;
3321
- gap: ${r(2.5)};
3402
+ gap: ${a(2.5)};
3322
3403
  min-block-size: ${t.targetMin};
3323
3404
  color: inherit;
3324
3405
  text-decoration: none;
@@ -3364,9 +3445,9 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3364
3445
  .pages a {
3365
3446
  display: inline-flex;
3366
3447
  align-items: center;
3367
- gap: ${r(1.5)};
3448
+ gap: ${a(1.5)};
3368
3449
  min-block-size: 28px;
3369
- padding: 0 ${r(2.5)};
3450
+ padding: 0 ${a(2.5)};
3370
3451
  font-weight: ${f.regular};
3371
3452
  color: ${t.textMuted};
3372
3453
  text-decoration: none;
@@ -3393,7 +3474,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3393
3474
  flex-wrap: wrap;
3394
3475
  align-items: center;
3395
3476
  justify-content: flex-end;
3396
- gap: ${r(2)} ${r(3)};
3477
+ gap: ${a(2)} ${a(3)};
3397
3478
  min-inline-size: 0;
3398
3479
  }
3399
3480
  .all {
@@ -3408,7 +3489,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3408
3489
  text-decoration: underline;
3409
3490
  }
3410
3491
  impakt-menu.switcher::part(trigger) {
3411
- padding: ${r(1)} ${r(1)};
3492
+ padding: ${a(1)} ${a(1)};
3412
3493
  font-family: ${t.fontBody};
3413
3494
  font-size: ${f.small};
3414
3495
  font-weight: ${f.regular};
@@ -3426,14 +3507,14 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3426
3507
  }
3427
3508
  /* The switcher's panel is 320 wide (53:960), so "Your account" and its note sit on one line. */
3428
3509
  impakt-menu.switcher::part(panel) {
3429
- min-inline-size: min(20rem, calc(100vw - 2 * ${r(4)}));
3510
+ min-inline-size: min(20rem, calc(100vw - 2 * ${a(4)}));
3430
3511
  }
3431
3512
  impakt-menu.org::part(trigger),
3432
3513
  a.org,
3433
3514
  .sign-in {
3434
3515
  display: inline-flex;
3435
3516
  align-items: center;
3436
- gap: ${r(2)};
3517
+ gap: ${a(2)};
3437
3518
  padding: 9px 14px;
3438
3519
  font-family: ${t.fontBody};
3439
3520
  font-size: ${f.small};
@@ -3454,14 +3535,14 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3454
3535
  .bar {
3455
3536
  grid-template-columns: minmax(0, 1fr) auto;
3456
3537
  grid-template-areas: 'start end' 'pages pages';
3457
- padding-block: ${r(2)};
3538
+ padding-block: ${a(2)};
3458
3539
  }
3459
3540
  }
3460
3541
  @container (max-width: 30rem) {
3461
3542
  .bar {
3462
3543
  grid-template-columns: minmax(0, 1fr);
3463
3544
  grid-template-areas: 'start' 'end' 'pages';
3464
- padding-inline: ${r(4)};
3545
+ padding-inline: ${a(4)};
3465
3546
  }
3466
3547
  .end {
3467
3548
  justify-content: flex-start;
@@ -3475,18 +3556,18 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3475
3556
  border: 1px solid CanvasText;
3476
3557
  }
3477
3558
  }
3478
- `]}renderPages(){return this.links.length?s`<nav class="pages" part="pages" aria-label=${this.pagesLabel}>
3559
+ `]}renderPages(){return this.links.length?o`<nav class="pages" part="pages" aria-label=${this.pagesLabel}>
3479
3560
  <ul>
3480
- ${this.links.map(e=>s`<li>
3561
+ ${this.links.map(e=>o`<li>
3481
3562
  <a href=${e.href} aria-current=${e.current?"page":l}
3482
- >${e.current?s`<span class="dot" aria-hidden="true"></span>`:l}${e.label}</a
3563
+ >${e.current?o`<span class="dot" aria-hidden="true"></span>`:l}${e.label}</a
3483
3564
  >
3484
3565
  </li>`)}
3485
3566
  </ul>
3486
- </nav>`:l}renderSwitcher(){return this.switcher.length?s`<impakt-menu class="switcher" edge="end" trigger-look="text" .label=${this.switcherLabel} .items=${this.switcher}></impakt-menu>`:this.toolsHref?s`<a class="all" href=${this.toolsHref}>${this.switcherLabel}</a>`:l}renderAccount(){return this.signedOut?s`<a class="sign-in" part="sign-in" href=${this.signInHref}>${this.signInText}</a>`:this.organisationItems.length?s`<impakt-menu class="org" edge="end" trigger-look="text" .label=${this.organisation} .items=${this.organisationItems}></impakt-menu>`:this.organisationHref?s`<a class="org" href=${this.organisationHref}>${this.organisation}</a>`:l}render(){return s`<header class="bar" part="bar">
3567
+ </nav>`:l}renderSwitcher(){return this.switcher.length?o`<impakt-menu class="switcher" edge="end" trigger-look="text" .label=${this.switcherLabel} .items=${this.switcher}></impakt-menu>`:this.toolsHref?o`<a class="all" href=${this.toolsHref}>${this.switcherLabel}</a>`:l}renderAccount(){return this.signedOut?o`<a class="sign-in" part="sign-in" href=${this.signInHref}>${this.signInText}</a>`:this.organisationItems.length?o`<impakt-menu class="org" edge="end" trigger-look="text" .label=${this.organisation} .items=${this.organisationItems}></impakt-menu>`:this.organisationHref?o`<a class="org" href=${this.organisationHref}>${this.organisation}</a>`:l}render(){return o`<header class="bar" part="bar">
3487
3568
  <div class="start">
3488
3569
  <a class="home" part="home" href=${this.home}><span class="mark" aria-hidden="true">i</span><span class="word">${this.brand}</span></a>
3489
- ${this.tool?s`<span class="sep" aria-hidden="true">/</span><span class="tool">${this.tool}</span>`:l}
3570
+ ${this.tool?o`<span class="sep" aria-hidden="true">/</span><span class="tool">${this.tool}</span>`:l}
3490
3571
  </div>
3491
3572
  ${this.renderPages()}
3492
3573
  <div class="end">
@@ -3494,13 +3575,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3494
3575
  <slot name="tools">${this.renderSwitcher()}</slot>
3495
3576
  ${this.renderAccount()}
3496
3577
  </div>
3497
- </header>`}};customElements.define("impakt-app-bar",Bt);var zr=[{lang:"en",label:"EN",name:"English",href:"?lang=en"},{lang:"el",label:"EL",name:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",href:"?lang=el"},{lang:"ru",label:"RU",name:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",href:"?lang=ru"}],Nt=class extends p{static{this.properties={items:{type:Array},current:{type:String,reflect:!0},label:{type:String}}}constructor(){super(),this.items=zr,this.current="en",this.label="Language"}static{this.styles=[...p.styles,k,A("a"),h`
3578
+ </header>`}};customElements.define("impakt-app-bar",Dt);var Hr=[{lang:"en",label:"EN",name:"English",href:"?lang=en"},{lang:"el",label:"EL",name:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",href:"?lang=el"},{lang:"ru",label:"RU",name:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",href:"?lang=ru"}],Ft=class extends h{static{this.properties={items:{type:Array},current:{type:String,reflect:!0},label:{type:String}}}constructor(){super(),this.items=Hr,this.current="en",this.label="Language"}static{this.styles=[...h.styles,k,C("a"),u`
3498
3579
  :host {
3499
3580
  display: inline-flex;
3500
3581
  }
3501
3582
  ul {
3502
3583
  display: flex;
3503
- gap: ${r(1)};
3584
+ gap: ${a(1)};
3504
3585
  margin: 0;
3505
3586
  padding: 0;
3506
3587
  list-style: none;
@@ -3513,7 +3594,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3513
3594
  /* 48 by 34, as in the short-let bar (39:468). */
3514
3595
  min-inline-size: 48px;
3515
3596
  min-block-size: 34px;
3516
- padding: 0 ${r(3)};
3597
+ padding: 0 ${a(3)};
3517
3598
  font-family: ${t.fontBody};
3518
3599
  font-size: ${f.small};
3519
3600
  font-weight: ${f.medium};
@@ -3541,20 +3622,20 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3541
3622
  border-width: 3px;
3542
3623
  }
3543
3624
  }
3544
- `]}render(){return s`<nav part="nav" aria-label=${this.label}>
3625
+ `]}render(){return o`<nav part="nav" aria-label=${this.label}>
3545
3626
  <ul>
3546
- ${this.items.map(e=>s`<li>
3627
+ ${this.items.map(e=>o`<li>
3547
3628
  <a
3548
3629
  part="link"
3549
3630
  href=${e.href}
3550
3631
  hreflang=${e.lang}
3551
3632
  lang=${e.lang}
3552
3633
  aria-current=${e.lang===this.current?"true":l}
3553
- >${e.label}${e.name?s`<span class="visually-hidden"> ${e.name}</span>`:l}</a
3634
+ >${e.label}${e.name?o`<span class="visually-hidden"> ${e.name}</span>`:l}</a
3554
3635
  >
3555
3636
  </li>`)}
3556
3637
  </ul>
3557
- </nav>`}};customElements.define("impakt-language-switch",Nt);var di=(n,e,i)=>Math.min(i,Math.max(e,n)),ji=(n,e,i)=>i>e?(di(n,e,i)-e)/(i-e)*100:0,Ui=h`
3638
+ </nav>`}};customElements.define("impakt-language-switch",Ft);var mi=(n,e,i)=>Math.min(i,Math.max(e,n)),Xi=(n,e,i)=>i>e?(mi(n,e,i)-e)/(i-e)*100:0,Yi=u`
3558
3639
  .track {
3559
3640
  position: relative;
3560
3641
  display: block;
@@ -3584,7 +3665,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3584
3665
  forced-color-adjust: none;
3585
3666
  }
3586
3667
  }
3587
- `,Ot=class extends p{static{this.properties={label:{type:String},value:{type:Number},min:{type:Number},max:{type:Number},valueText:{type:String,attribute:"value-text"},showValue:{type:Boolean,attribute:"show-value",reflect:!0}}}constructor(){super(),this.label="",this.value=0,this.min=0,this.max=100,this.valueText="",this.showValue=!1}static{this.styles=[...p.styles,Ui,h`
3668
+ `,jt=class extends h{static{this.properties={label:{type:String},value:{type:Number},min:{type:Number},max:{type:Number},valueText:{type:String,attribute:"value-text"},showValue:{type:Boolean,attribute:"show-value",reflect:!0}}}constructor(){super(),this.label="",this.value=0,this.min=0,this.max=100,this.valueText="",this.showValue=!1}static{this.styles=[...h.styles,Yi,u`
3588
3669
  :host {
3589
3670
  display: block;
3590
3671
  }
@@ -3592,14 +3673,14 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3592
3673
  display: flex;
3593
3674
  flex-wrap: wrap;
3594
3675
  justify-content: space-between;
3595
- gap: ${r(1)} ${r(3)};
3596
- margin-block-end: ${r(2)};
3676
+ gap: ${a(1)} ${a(3)};
3677
+ margin-block-end: ${a(2)};
3597
3678
  font-size: ${f.small};
3598
3679
  }
3599
3680
  .head:empty {
3600
3681
  display: none;
3601
3682
  }
3602
- `]}render(){let e=di(this.value,this.min,this.max);return s`<div class="head">${this.label?s`<span class="label" id=${this.id_("label")}>${this.label}</span>`:l}${this.showValue?s`<span class="figure" aria-hidden="true">${this.valueText||e}</span>`:l}</div><span
3683
+ `]}render(){let e=mi(this.value,this.min,this.max);return o`<div class="head">${this.label?o`<span class="label" id=${this.id_("label")}>${this.label}</span>`:l}${this.showValue?o`<span class="figure" aria-hidden="true">${this.valueText||e}</span>`:l}</div><span
3603
3684
  class="track"
3604
3685
  part="track"
3605
3686
  role="meter"
@@ -3609,8 +3690,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3609
3690
  aria-valuemax=${this.max}
3610
3691
  aria-valuenow=${e}
3611
3692
  aria-valuetext=${this.valueText||l}
3612
- ><span class="fill" part="fill" style=${`inline-size:${ji(e,this.min,this.max)}%`}></span
3613
- ></span>`}},Pt=class extends p{static{this.properties={label:{type:String},items:{type:Array},max:{type:Number}}}constructor(){super(),this.label="Scores",this.items=[],this.max=100}static{this.styles=[...p.styles,Ui,h`
3693
+ ><span class="fill" part="fill" style=${`inline-size:${Xi(e,this.min,this.max)}%`}></span
3694
+ ></span>`}},Ut=class extends h{static{this.properties={label:{type:String},items:{type:Array},max:{type:Number}}}constructor(){super(),this.label="Scores",this.items=[],this.max=100}static{this.styles=[...h.styles,Yi,u`
3614
3695
  :host {
3615
3696
  display: block;
3616
3697
  container-type: inline-size;
@@ -3624,8 +3705,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3624
3705
  display: grid;
3625
3706
  grid-template-columns: minmax(8rem, 12rem) minmax(4rem, 1fr) 3ch minmax(0, 7rem);
3626
3707
  align-items: center;
3627
- gap: ${r(2)} ${r(4)};
3628
- padding-block: ${r(3)};
3708
+ gap: ${a(2)} ${a(4)};
3709
+ padding-block: ${a(3)};
3629
3710
  font-size: ${f.small};
3630
3711
  }
3631
3712
  .figure {
@@ -3642,22 +3723,22 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3642
3723
  grid-column: 1 / -1;
3643
3724
  }
3644
3725
  }
3645
- `]}render(){return s`<ul part="list" role="list" aria-label=${this.label}>
3646
- ${this.items.map((e,i)=>{let a=e.max??this.max,o=di(e.value,0,a),d=this.id_(`score-${i}`);return s`<li part="row">
3647
- <span class="name" id=${d}>${e.label}</span>
3648
- <span class="track" part="track" role="meter" aria-labelledby=${d} aria-valuemin="0" aria-valuemax=${a} aria-valuenow=${o}
3649
- ><span class="fill" part="fill" style=${`inline-size:${ji(o,0,a)}%`}></span
3726
+ `]}render(){return o`<ul part="list" role="list" aria-label=${this.label}>
3727
+ ${this.items.map((e,i)=>{let r=e.max??this.max,s=mi(e.value,0,r),c=this.id_(`score-${i}`);return o`<li part="row">
3728
+ <span class="name" id=${c}>${e.label}</span>
3729
+ <span class="track" part="track" role="meter" aria-labelledby=${c} aria-valuemin="0" aria-valuemax=${r} aria-valuenow=${s}
3730
+ ><span class="fill" part="fill" style=${`inline-size:${Xi(s,0,r)}%`}></span
3650
3731
  ></span>
3651
- <span class="figure" aria-hidden="true">${o}</span>
3652
- <span class="pill">${e.status?s`<impakt-status tone=${e.tone??"warn"}>${e.status}</impakt-status>`:l}</span>
3732
+ <span class="figure" aria-hidden="true">${s}</span>
3733
+ <span class="pill">${e.status?o`<impakt-status tone=${e.tone??"warn"}>${e.status}</impakt-status>`:l}</span>
3653
3734
  </li>`})}
3654
- </ul>`}};customElements.define("impakt-meter",Ot);customElements.define("impakt-score-bars",Pt);var Dt=class extends p{static{this.properties={removed:{type:String},added:{type:String},lines:{type:Array},label:{type:String},removedText:{type:String,attribute:"removed-text"},addedText:{type:String,attribute:"added-text"}}}constructor(){super(),this.removed="",this.added="",this.lines=[],this.label="Code change",this.removedText="Removed",this.addedText="Added"}static{this.styles=[...p.styles,k,h`
3735
+ </ul>`}};customElements.define("impakt-meter",jt);customElements.define("impakt-score-bars",Ut);var Wt=class extends h{static{this.properties={removed:{type:String},added:{type:String},lines:{type:Array},label:{type:String},removedText:{type:String,attribute:"removed-text"},addedText:{type:String,attribute:"added-text"}}}constructor(){super(),this.removed="",this.added="",this.lines=[],this.label="Code change",this.removedText="Removed",this.addedText="Added"}static{this.styles=[...h.styles,k,u`
3655
3736
  :host {
3656
3737
  display: block;
3657
3738
  }
3658
3739
  .block {
3659
3740
  overflow-x: auto;
3660
- padding: ${r(4)} ${r(4)};
3741
+ padding: ${a(4)} ${a(4)};
3661
3742
  color: ${f.codeText};
3662
3743
  background: ${f.codeSurface};
3663
3744
  border-radius: 0;
@@ -3694,8 +3775,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3694
3775
  border: 1px solid CanvasText;
3695
3776
  }
3696
3777
  }
3697
- `]}get allLines(){if(this.lines.length)return this.lines;let e=(i,a)=>i?i.split(`
3698
- `).map(o=>({kind:a,text:o})):[];return[...e(this.removed,"removed"),...e(this.added,"added")]}render(){let e={removed:"\u2212",added:"+",context:" "},i={removed:this.removedText,added:this.addedText,context:""};return s`<div class="block" part="block" role="region" aria-label=${this.label} tabindex="0"><pre part="code"><code>${this.allLines.map(a=>s`<span class="line ${a.kind}"><span class="sign" aria-hidden="true">${e[a.kind]}</span>${i[a.kind]?s`<span class="visually-hidden">${i[a.kind]}: </span>`:l}${a.text}</span>`)}</code></pre></div>`}};customElements.define("impakt-code-diff",Dt);var Ft=class extends x{static{this.properties={...x.properties,options:{type:Array},values:{type:Array},multiple:{type:Boolean,reflect:!0},look:{type:String,reflect:!0},missingText:{type:String,attribute:"missing-text"}}}constructor(){super(),this.options=[],this.values=[],this.multiple=!1,this.look="default",this.missingText="Choose an option"}static{this.styles=[...x.styles,h`
3778
+ `]}get allLines(){if(this.lines.length)return this.lines;let e=(i,r)=>i?i.split(`
3779
+ `).map(s=>({kind:r,text:s})):[];return[...e(this.removed,"removed"),...e(this.added,"added")]}render(){let e={removed:"\u2212",added:"+",context:" "},i={removed:this.removedText,added:this.addedText,context:""};return o`<div class="block" part="block" role="region" aria-label=${this.label} tabindex="0"><pre part="code"><code>${this.allLines.map(r=>o`<span class="line ${r.kind}"><span class="sign" aria-hidden="true">${e[r.kind]}</span>${i[r.kind]?o`<span class="visually-hidden">${i[r.kind]}: </span>`:l}${r.text}</span>`)}</code></pre></div>`}};customElements.define("impakt-code-diff",Wt);var Vt=class extends x{static{this.properties={...x.properties,options:{type:Array},values:{type:Array},multiple:{type:Boolean,reflect:!0},look:{type:String,reflect:!0},missingText:{type:String,attribute:"missing-text"}}}constructor(){super(),this.options=[],this.values=[],this.multiple=!1,this.look="default",this.missingText="Choose an option"}static{this.styles=[...x.styles,u`
3699
3780
  fieldset {
3700
3781
  border: 0;
3701
3782
  margin: 0;
@@ -3711,19 +3792,19 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3711
3792
  font-weight: ${f.medium};
3712
3793
  text-transform: uppercase;
3713
3794
  letter-spacing: 0.06em;
3714
- margin-block-end: ${r(2)};
3795
+ margin-block-end: ${a(2)};
3715
3796
  }
3716
3797
  .chips {
3717
3798
  display: flex;
3718
3799
  flex-wrap: wrap;
3719
- gap: ${r(1.5)};
3800
+ gap: ${a(1.5)};
3720
3801
  }
3721
3802
  .chip {
3722
3803
  position: relative;
3723
3804
  display: inline-flex;
3724
3805
  align-items: center;
3725
3806
  min-block-size: 35px;
3726
- padding: 0 ${r(3)};
3807
+ padding: 0 ${a(3)};
3727
3808
  font-family: ${t.fontBody};
3728
3809
  font-size: ${f.small};
3729
3810
  color: ${t.text};
@@ -3779,29 +3860,29 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3779
3860
  outline-color: Highlight;
3780
3861
  }
3781
3862
  }
3782
- `]}renderLabel(){return s`<legend class="label" part="label">
3783
- ${this.label}${this.required?s`<span class="required"> (${this.requiredText})</span>`:l}
3784
- </legend>`}chosen(e){return this.multiple?this.values.includes(e):this.value===e}choose(e,i){if(this.multiple){let a=i?[...this.values,e]:this.values.filter(o=>o!==e);this.values=this.options.filter(o=>a.includes(o.value)).map(o=>o.value),this.setFormValue(this.values.join(","))}else this.setFormValue(e);this.syncValidity()}syncValidity(){let e=this.multiple?this.values.length===0:!this.value;try{if(this.required&&e){let i=this.renderRoot?.querySelector?.("input")??void 0;this.internals?.setValidity({valueMissing:!0},this.missingText,i)}else this.internals?.setValidity({})}catch{}}renderControl(){let e=this.multiple?"checkbox":"radio";return s`<div class="chips">
3785
- ${this.options.map((i,a)=>{let o=this.chosen(i.value);return s`<label class="chip ${o?"on":""}" part="chip">
3863
+ `]}renderLabel(){return o`<legend class="label" part="label">
3864
+ ${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
3865
+ </legend>`}chosen(e){return this.multiple?this.values.includes(e):this.value===e}choose(e,i){if(this.multiple){let r=i?[...this.values,e]:this.values.filter(s=>s!==e);this.values=this.options.filter(s=>r.includes(s.value)).map(s=>s.value),this.setFormValue(this.values.join(","))}else this.setFormValue(e);this.syncValidity()}syncValidity(){let e=this.multiple?this.values.length===0:!this.value;try{if(this.required&&e){let i=this.renderRoot?.querySelector?.("input")??void 0;this.internals?.setValidity({valueMissing:!0},this.missingText,i)}else this.internals?.setValidity({})}catch{}}renderControl(){let e=this.multiple?"checkbox":"radio";return o`<div class="chips">
3866
+ ${this.options.map((i,r)=>{let s=this.chosen(i.value);return o`<label class="chip ${s?"on":""}" part="chip">
3786
3867
  <input
3787
3868
  type=${e}
3788
- id=${a===0?this.controlId:this.id_(`opt-${a}`)}
3869
+ id=${r===0?this.controlId:this.id_(`opt-${r}`)}
3789
3870
  name=${this.uid}
3790
3871
  value=${i.value}
3791
- .checked=${o}
3872
+ .checked=${s}
3792
3873
  ?disabled=${this.disabled}
3793
- ?required=${!this.multiple&&this.required&&a===0}
3794
- @change=${d=>this.choose(i.value,d.target.checked)}
3874
+ ?required=${!this.multiple&&this.required&&r===0}
3875
+ @change=${c=>this.choose(i.value,c.target.checked)}
3795
3876
  /><span>${i.label}</span>
3796
3877
  </label>`})}
3797
- </div>`}render(){return s`
3878
+ </div>`}render(){return o`
3798
3879
  <fieldset part="fieldset" aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
3799
3880
  ${this.renderLabel()}
3800
- ${this.description?s`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
3881
+ ${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
3801
3882
  ${this.renderControl()}
3802
3883
  <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
3803
3884
  </fieldset>
3804
- `}firstUpdated(){let e=this.multiple?this.values.join(","):this.value;this.internals?.setFormValue(e||null),this.syncValidity()}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error),(e.has("required")||e.has("multiple"))&&this.syncValidity()}formResetCallback(){this.value="",this.values=[],this.internals?.setFormValue(null),this.syncValidity()}};customElements.define("impakt-chip-group",Ft);var qt=class extends p{static{this.properties={label:{type:String},look:{type:String,reflect:!0},redactedText:{type:String,attribute:"redacted-text"}}}constructor(){super(),this.label="",this.look="solid",this.redactedText="Redacted"}static{this.styles=[...p.styles,h`
3885
+ `}firstUpdated(){let e=this.multiple?this.values.join(","):this.value;this.internals?.setFormValue(e||null),this.syncValidity()}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error),(e.has("required")||e.has("multiple"))&&this.syncValidity()}formResetCallback(){this.value="",this.values=[],this.internals?.setFormValue(null),this.syncValidity()}};customElements.define("impakt-chip-group",Vt);var Kt=class extends h{static{this.properties={label:{type:String},look:{type:String,reflect:!0},redactedText:{type:String,attribute:"redacted-text"}}}constructor(){super(),this.label="",this.look="solid",this.redactedText="Redacted"}static{this.styles=[...h.styles,u`
3805
3886
  :host {
3806
3887
  display: inline;
3807
3888
  }
@@ -3833,16 +3914,16 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3833
3914
  border-color: CanvasText;
3834
3915
  }
3835
3916
  }
3836
- `]}render(){return s`<span class="tag" part="tag"><span class="visually-hidden">${this.redactedText}: </span>${this.label}</span>`}};customElements.define("impakt-redaction",qt);var jt=class extends p{static{this.properties={name:{type:String},description:{type:String},status:{type:String},statusTone:{type:String,attribute:"status-tone"},note:{type:String},href:{type:String},actionLabel:{type:String,attribute:"action-label"},owned:{type:Boolean,reflect:!0},state:{type:String,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},comingSoonText:{type:String,attribute:"coming-soon-text"},notOpenText:{type:String,attribute:"not-open-text"}}}constructor(){super(),this.name="",this.description="",this.status="",this.statusTone="ok",this.note="",this.href="",this.actionLabel="",this.owned=!1,this.state="open",this.headingLevel=3,this.comingSoonText="Coming soon",this.notOpenText="Not open yet."}static{this.styles=[...p.styles,k,h`
3917
+ `]}render(){return o`<span class="tag" part="tag"><span class="visually-hidden">${this.redactedText}: </span>${this.label}</span>`}};customElements.define("impakt-redaction",Kt);var Gt=class extends h{static{this.properties={name:{type:String},description:{type:String},status:{type:String},statusTone:{type:String,attribute:"status-tone"},note:{type:String},href:{type:String},actionLabel:{type:String,attribute:"action-label"},owned:{type:Boolean,reflect:!0},state:{type:String,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},comingSoonText:{type:String,attribute:"coming-soon-text"},notOpenText:{type:String,attribute:"not-open-text"}}}constructor(){super(),this.name="",this.description="",this.status="",this.statusTone="ok",this.note="",this.href="",this.actionLabel="",this.owned=!1,this.state="open",this.headingLevel=3,this.comingSoonText="Coming soon",this.notOpenText="Not open yet."}static{this.styles=[...h.styles,k,u`
3837
3918
  :host {
3838
3919
  display: block;
3839
3920
  }
3840
3921
  .card {
3841
3922
  display: flex;
3842
3923
  flex-direction: column;
3843
- gap: ${r(4)};
3924
+ gap: ${a(4)};
3844
3925
  block-size: 100%;
3845
- padding: ${r(6)};
3926
+ padding: ${a(6)};
3846
3927
  background: ${t.surfaceCard};
3847
3928
  border: 1px solid ${t.text};
3848
3929
  border-radius: 0;
@@ -3871,7 +3952,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3871
3952
  display: flex;
3872
3953
  flex-wrap: wrap;
3873
3954
  align-items: center;
3874
- gap: ${r(2)} ${r(2.5)};
3955
+ gap: ${a(2)} ${a(2.5)};
3875
3956
  }
3876
3957
  .note {
3877
3958
  font-family: ${t.fontMono};
@@ -3887,12 +3968,12 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3887
3968
  display: flex;
3888
3969
  align-items: center;
3889
3970
  justify-content: space-between;
3890
- gap: ${r(3)};
3971
+ gap: ${a(3)};
3891
3972
  min-block-size: 46px;
3892
3973
  margin-block-start: auto;
3893
- padding: ${r(2.5)} ${r(5)};
3974
+ padding: ${a(2.5)} ${a(5)};
3894
3975
  font-family: ${t.fontBody};
3895
- font-size: ${u("font.size.md","1rem")};
3976
+ font-size: ${d("font.size.md","1rem")};
3896
3977
  color: ${t.text};
3897
3978
  background: ${t.surfaceCard};
3898
3979
  border: 1px solid ${t.text};
@@ -3919,16 +4000,16 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3919
4000
  border-color: CanvasText;
3920
4001
  }
3921
4002
  }
3922
- `]}renderStatus(){return this.state==="coming-soon"?s`<div class="status"><impakt-status tone="neutral">${this.comingSoonText}</impakt-status></div>
3923
- <p class="muted">${this.notOpenText}</p>`:!this.status&&!this.note?l:s`<div class="status">
3924
- ${this.status?s`<impakt-status tone=${this.statusTone}>${this.status}</impakt-status>`:l}
3925
- ${this.note?s`<span class="note">${this.note}</span>`:l}
3926
- </div>`}render(){let e=Math.min(6,Math.max(2,Number(this.headingLevel)||3)),i=this.actionLabel||`Open ${this.name}`;return s`<article class="card" part="card" aria-labelledby=${this.id_("name")}>
4003
+ `]}renderStatus(){return this.state==="coming-soon"?o`<div class="status"><impakt-status tone="neutral">${this.comingSoonText}</impakt-status></div>
4004
+ <p class="muted">${this.notOpenText}</p>`:!this.status&&!this.note?l:o`<div class="status">
4005
+ ${this.status?o`<impakt-status tone=${this.statusTone}>${this.status}</impakt-status>`:l}
4006
+ ${this.note?o`<span class="note">${this.note}</span>`:l}
4007
+ </div>`}render(){let e=Math.min(6,Math.max(2,Number(this.headingLevel)||3)),i=this.actionLabel||`Open ${this.name}`;return o`<article class="card" part="card" aria-labelledby=${this.id_("name")}>
3927
4008
  <div class="name" role="heading" aria-level=${e} id=${this.id_("name")}>${this.name}</div>
3928
- ${this.description?s`<p class="description">${this.description}</p>`:l}
4009
+ ${this.description?o`<p class="description">${this.description}</p>`:l}
3929
4010
  ${this.renderStatus()}
3930
- ${this.state!=="coming-soon"&&this.href?s`<a class="action" part="action" href=${this.href}><span>${i}</span><span class="arrow" aria-hidden="true">→</span></a>`:l}
3931
- </article>`}};customElements.define("impakt-tool-card",jt);export{he as CYCLE,x as FieldElement,ti as ICONS,pr as ICON_NAMES,rt as ImpaktAccordion,j as ImpaktAddressLookup,Ue as ImpaktAlert,Bt as ImpaktAppBar,_e as ImpaktAppShell,Mt as ImpaktAvatar,Et as ImpaktAvatarGroup,ot as ImpaktBadge,ft as ImpaktBreadcrumbs,Ee as ImpaktButton,Ve as ImpaktCard,Le as ImpaktCheckbox,lt as ImpaktCheckboxGroup,Ht as ImpaktChecked,st as ImpaktChip,Ft as ImpaktChipGroup,Dt as ImpaktCodeDiff,dt as ImpaktDateInput,Oe as ImpaktDateTile,ct as ImpaktDialog,$t as ImpaktDivider,Je as ImpaktDocumentLink,wt as ImpaktDrawer,p as ImpaktElement,At as ImpaktEmptyState,Lt as ImpaktErrorSummary,vt as ImpaktFieldset,X as ImpaktFileUpload,De as ImpaktFilterChip,ht as ImpaktGrid,Ke as ImpaktHeading,ut as ImpaktHelp,Me as ImpaktIcon,Xe as ImpaktImage,Nt as ImpaktLanguageSwitch,Ye as ImpaktLink,pt as ImpaktList,Ze as ImpaktLogo,Tt as ImpaktMenu,Ot as ImpaktMeter,be as ImpaktMoneyInput,bt as ImpaktNav,mt as ImpaktPage,zt as ImpaktPagination,Qe as ImpaktPrice,at as ImpaktProgress,je as ImpaktRadioGroup,Rt as ImpaktRangeInput,qt as ImpaktRedaction,Pe as ImpaktRow,Pt as ImpaktScoreBars,gt as ImpaktSection,qe as ImpaktSegmentedControl,Ce as ImpaktSelect,Re as ImpaktSideNav,Ct as ImpaktSlotPicker,_t as ImpaktSource,xt as ImpaktSpacer,We as ImpaktStack,Ne as ImpaktStatTile,He as ImpaktStatus,et as ImpaktSummaryList,Fe as ImpaktSwitch,Ie as ImpaktTabBar,tt as ImpaktTable,kt as ImpaktTabs,It as ImpaktTaskList,Ge as ImpaktText,Ae as ImpaktTextInput,nt as ImpaktTextarea,St as ImpaktToast,jt as ImpaktToolCard,yt as ImpaktVisuallyHidden,F as LitElement,pe as TONE,de as announceNavigate,Hi as base,h as css,N as fieldWidths,k as focusRing,b as fontSize,m as fontWeight,ni as groupDigits,Bi as hideOn,s as html,M as iconSvg,ri as isCurrent,H as lineHeight,ge as lockScroll,_ as noChange,l as nothing,B as pageLocale,_i as reducedMotion,se as render,S as say,r as space,I as spaceAround,y as svg,t,z as targetSize,u as token,ai as toneOf,A as touchTarget,w as type,Y as unlockScroll,C as unsafeCSS,T as visuallyHidden};
4011
+ ${this.state!=="coming-soon"&&this.href?o`<a class="action" part="action" href=${this.href}><span>${i}</span><span class="arrow" aria-hidden="true">→</span></a>`:l}
4012
+ </article>`}};customElements.define("impakt-tool-card",Gt);export{fe as CYCLE,x as FieldElement,si as ICONS,fr as ICON_NAMES,lt as ImpaktAccordion,G as ImpaktAddressLookup,Xe as ImpaktAlert,Dt as ImpaktAppBar,Pe as ImpaktAppShell,It as ImpaktAvatar,Rt as ImpaktAvatarGroup,pt as ImpaktBadge,vt as ImpaktBreadcrumbs,Re as ImpaktButton,Je as ImpaktCard,Be as ImpaktCheckbox,ut as ImpaktCheckboxGroup,qt as ImpaktChecked,ct as ImpaktChip,Vt as ImpaktChipGroup,Wt as ImpaktCodeDiff,mt as ImpaktDateInput,je as ImpaktDateTile,gt as ImpaktDialog,wt as ImpaktDivider,rt as ImpaktDocumentLink,Et as ImpaktDrawer,h as ImpaktElement,_t as ImpaktEmptyState,Bt as ImpaktErrorSummary,Mt as ImpaktFieldset,te as ImpaktFileUpload,We as ImpaktFilterChip,ft as ImpaktGrid,Ze as ImpaktHeading,$t as ImpaktHelp,Ie as ImpaktIcon,tt as ImpaktImage,Ft as ImpaktLanguageSwitch,et as ImpaktLink,bt as ImpaktList,it as ImpaktLogo,Ct as ImpaktMenu,jt as ImpaktMeter,ke as ImpaktMoneyInput,kt as ImpaktNav,xt as ImpaktPage,Lt as ImpaktPagination,at as ImpaktPrice,dt as ImpaktProgress,Ge as ImpaktRadioGroup,Nt as ImpaktRangeInput,Kt as ImpaktRedaction,Ue as ImpaktRow,Ut as ImpaktScoreBars,yt as ImpaktSection,Ke as ImpaktSegmentedControl,He as ImpaktSelect,Ne as ImpaktSideNav,Ht as ImpaktSlotPicker,Pt as ImpaktSource,St as ImpaktSpacer,Ye as ImpaktStack,Fe as ImpaktStatTile,qe as ImpaktStatus,ot as ImpaktSummaryList,Ve as ImpaktSwitch,Oe as ImpaktTabBar,st as ImpaktTable,zt as ImpaktTabs,Ot as ImpaktTaskList,Qe as ImpaktText,_e as ImpaktTextInput,ht as ImpaktTextarea,At as ImpaktToast,Gt as ImpaktToolCard,Tt as ImpaktVisuallyHidden,W as LitElement,be as TONE,me as announceNavigate,qi as base,u as css,D as fieldWidths,k as focusRing,b as fontSize,m as fontWeight,hi as groupDigits,Di as hideOn,o as html,M as iconSvg,li as isCurrent,P as lineHeight,ye as lockScroll,O as noChange,l as nothing,q as pageLocale,Pi as reducedMotion,ce as render,S as say,a as space,N as spaceAround,y as svg,t,z as targetSize,d as token,di as toneOf,C as touchTarget,w as type,ee as unlockScroll,L as unsafeCSS,T as visuallyHidden};
3932
4013
  /*! Bundled license information:
3933
4014
 
3934
4015
  lit-html/lit-html.js: