@atomic-ui/ui 0.12.0 → 0.12.1

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.
@@ -1,7 +1,7 @@
1
- /* @atomic-ui/ui version 0.12.0, standalone. */
1
+ /* @atomic-ui/ui version 0.12.1, standalone. */
2
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
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,Ti=n=>n?._$litType$?.h!=null;var Si=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(Ti(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=Si(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 Te=globalThis,Se=Te.ShadowRoot&&(Te.ShadyCSS===void 0||Te.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(Se&&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(Se)n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(let i of e){let a=document.createElement("style"),o=Te.litNonce;o!==void 0&&a.setAttribute("nonce",o),a.textContent=i.cssText,n.appendChild(a)}},Jt=Se?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`
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
5
  :host([space-above='sm']) { margin-block-start: ${r(2)}; }
6
6
  :host([space-above='md']) { margin-block-start: ${r(4)}; }
7
7
  :host([space-above='lg']) { margin-block-start: ${r(6)}; }
@@ -22,7 +22,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
22
22
  `,z=h`
23
23
  min-block-size: ${t.targetMin};
24
24
  min-inline-size: ${t.targetMin};
25
- `,S=h`
25
+ `,T=h`
26
26
  position: absolute;
27
27
  inline-size: 1px;
28
28
  block-size: 1px;
@@ -61,7 +61,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
61
61
  `,A=n=>C(`@media (pointer: coarse) { :host :is(${n}) { min-block-size: 44px; min-inline-size: 44px; } }`),Bi=h`
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 T(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=T(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 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`
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}; }
@@ -228,7 +228,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
228
228
  :host([size='lg']) .icon-only { inline-size: 56px; min-inline-size: 56px; block-size: 56px; min-block-size: 56px; padding: 0; }
229
229
 
230
230
  .sr-only {
231
- ${S}
231
+ ${T}
232
232
  }
233
233
 
234
234
  /* Windows High Contrast Mode drops background and border colours, so a
@@ -346,7 +346,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
346
346
  display: none;
347
347
  }
348
348
  .visually-hidden {
349
- ${S}
349
+ ${T}
350
350
  }
351
351
  /*
352
352
  * Only the control is dimmed. Dimming the whole host took the question,
@@ -429,9 +429,33 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
429
429
  aria-invalid=${this.error?"true":l}
430
430
  @input=${e=>this.setFormValue(e.target.value)}
431
431
  />
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}}}constructor(){super(),this.width="full",this.options=[],this.placeholder="Choose an option",this.hideLabel=!1}static{this.styles=[...x.styles,N,Q("select"),h`
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`
433
433
  :host([hide-label]) .label {
434
- ${S}
434
+ ${T}
435
+ }
436
+ /* A compact box sits inline, in a toolbar, so it has none of a form field's spacing under it. */
437
+ :host([size='sm']) {
438
+ margin-block-end: 0;
439
+ }
440
+ /* A compact box is as wide as its longest option, as a filter in a toolbar is. */
441
+ :host([size='sm']) .box {
442
+ inline-size: max-content;
443
+ max-inline-size: 100%;
444
+ }
445
+ :host([size='sm']) select {
446
+ inline-size: auto;
447
+ min-block-size: 32px;
448
+ padding-block: 4px;
449
+ padding-inline-start: 10px;
450
+ font-size: 14px;
451
+ }
452
+ /* Nothing under a compact box until there is an error to show, so it lines up with the chips beside it. */
453
+ :host([size='sm']) .error:empty {
454
+ margin: 0;
455
+ }
456
+ :host([size='sm']) .caret {
457
+ inset-inline-end: 10px;
458
+ font-size: 12px;
435
459
  }
436
460
  /* The browser's own arrow is replaced by a small "▾", drawn beside the box's end and hidden from screen readers. */
437
461
  .box { position: relative; display: block; inline-size: min(100%, var(--impakt-field-width)); }
@@ -798,7 +822,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
798
822
  :host([tone='plain']) time { background: ${t.surfaceInset}; color: ${t.text}; }
799
823
  .month { font-size: 10px; font-weight: ${m("medium")}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; }
800
824
  .day { margin-block-start: ${r(1)}; font-size: 20px; font-weight: ${m("medium")}; font-variant-numeric: tabular-nums; }
801
- .sr-only { ${S} }
825
+ .sr-only { ${T} }
802
826
  @media (forced-colors: active) { time { border: 1px solid CanvasText; } }
803
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">
804
828
  <span class="month" aria-hidden="true">${e.month}</span>
@@ -832,7 +856,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
832
856
  <div class="start ${this.filled.start?"":"empty"}"><slot name="start" @slotchange=${this.onSlot}></slot></div>
833
857
  <div class="text">${i}${this.meta?s`<span class="meta" part="meta">${this.meta}</span>`:l}</div>
834
858
  <div class="end ${this.filled.end?"":"empty"}"><slot name="end" @slotchange=${this.onSlot}></slot></div>
835
- ${this.href?s`<span class="chevron" aria-hidden="true">${M("chevron-right","20px")}</span>`:l}
859
+ ${this.href&&!this.selected?s`<span class="chevron" aria-hidden="true">${M("chevron-right","20px")}</span>`:l}
836
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`
837
861
  :host { display: inline-block; }
838
862
  /* The containing block for the words kept for screen readers, so a control scrolled out of a row cannot widen the page. */
@@ -859,7 +883,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
859
883
  button:disabled { cursor: not-allowed; opacity: 0.5; }
860
884
  .count { font-variant-numeric: tabular-nums; color: ${t.textMuted}; }
861
885
  button[aria-pressed='true'] .count { color: inherit; opacity: 0.8; }
862
- .sr-only { ${S} }
886
+ .sr-only { ${T} }
863
887
  @media (forced-colors: active) { button[aria-pressed='true'] { border: 2px solid Highlight; } }
864
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}>
865
889
  <span>${this.label}</span>
@@ -879,7 +903,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
879
903
  justify-content: flex-start;
880
904
  }
881
905
  :host([hide-label]) .text {
882
- ${S}
906
+ ${T}
883
907
  }
884
908
  .control {
885
909
  position: relative;
@@ -976,7 +1000,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
976
1000
  padding: 0;
977
1001
  }
978
1002
  :host([hide-label]) legend {
979
- ${S}
1003
+ ${T}
980
1004
  }
981
1005
  .segments {
982
1006
  display: inline-flex;
@@ -1244,7 +1268,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1244
1268
  border-inline-start-width: 4px;
1245
1269
  }
1246
1270
  }
1247
- `]}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||T("Check");return s`
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`
1248
1272
  <div class="alert" part="alert" role="status">
1249
1273
  ${this.noLabel?l:s`<span class="tag" part="label">${a}</span>`}
1250
1274
  <div class="words" part="body">
@@ -1253,7 +1277,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1253
1277
  </div>
1254
1278
  <div class="actions ${this.hasActions?"":"empty"}" part="actions"><slot name="actions" @slotchange=${this.onActions}></slot></div>
1255
1279
  </div>
1256
- `}let i=this.toneLabel||T(n.TONE_WORDS[this.tone]);return s`
1280
+ `}let i=this.toneLabel||S(n.TONE_WORDS[this.tone]);return s`
1257
1281
  <div
1258
1282
  class="alert"
1259
1283
  part="alert"
@@ -1342,8 +1366,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1342
1366
  }
1343
1367
  :host([align='center']) { text-align: center; }
1344
1368
  /* Only the words go: an eyebrow over a heading drawn as a picture still shows. */
1345
- :host([screen-reader-only]) .words { ${S} }
1346
- :host([screen-reader-only]:not([eyebrow])) { ${S} }
1369
+ :host([screen-reader-only]) .words { ${T} }
1370
+ :host([screen-reader-only]:not([eyebrow])) { ${T} }
1347
1371
  .eyebrow {
1348
1372
  display: block;
1349
1373
  margin-block-end: ${r(2)};
@@ -1396,7 +1420,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1396
1420
  :host([variant='standalone']) a:hover .icon { transform: translateX(2px); }
1397
1421
  .icon { flex: none; transition: transform 120ms ease-in-out; }
1398
1422
  .sr-only {
1399
- ${S}
1423
+ ${T}
1400
1424
  }
1401
1425
  `]}render(){return s`
1402
1426
  <a
@@ -1717,7 +1741,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
1717
1741
  display: none;
1718
1742
  }
1719
1743
  .visually-hidden {
1720
- ${S}
1744
+ ${T}
1721
1745
  }
1722
1746
  /* Stacked: each row a card, each value under its column's name. */
1723
1747
  @container (max-width: 36rem) {
@@ -2115,7 +2139,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2115
2139
  border-block-start-color: ${t.brand};
2116
2140
  }
2117
2141
  .sr-only {
2118
- ${S}
2142
+ ${T}
2119
2143
  }
2120
2144
  :host([look='bars']) {
2121
2145
  margin-block-end: 0;
@@ -2153,7 +2177,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2153
2177
  :host([look='bars']) li[data-state='done']::before, :host([look='bars']) li[data-state='current']::before { background: CanvasText; }
2154
2178
  }
2155
2179
  :host([hide-labels]) .name {
2156
- ${S}
2180
+ ${T}
2157
2181
  }
2158
2182
  /* Stages: numbered names on a soft rule, the current one underlined in the ink. */
2159
2183
  :host([look='stages']) nav {
@@ -2210,10 +2234,10 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2210
2234
  step's name. */
2211
2235
  @media (max-width: 30rem) {
2212
2236
  :host(:not([look='stages'])) li:not([data-state='current']) .name {
2213
- ${S}
2237
+ ${T}
2214
2238
  }
2215
2239
  }
2216
- `]}renderStages(e){let i=this.doneText||T("done"),a=this.steps.some(o=>o.href);return s`
2240
+ `]}renderStages(e){let i=this.doneText||S("done"),a=this.steps.some(o=>o.href);return s`
2217
2241
  <nav part="nav" aria-label=${this.label} tabindex=${a?l:"0"}>
2218
2242
  <ol part="list">
2219
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>
@@ -2229,7 +2253,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2229
2253
  <ol part="list">
2230
2254
  ${this.steps.map((i,a)=>{let o=a<e?"done":a===e?"current":"todo";return s`
2231
2255
  <li part="step step-${o}" data-state=${o} aria-current=${o==="current"?"step":l}>
2232
- ${o==="current"?s`<span class="sr-only">${T("Step {step} of {steps}:",{step:a+1,steps:this.steps.length})} </span>`:l}
2256
+ ${o==="current"?s`<span class="sr-only">${S("Step {step} of {steps}:",{step:a+1,steps:this.steps.length})} </span>`:l}
2233
2257
  <span class="name" part="step-label">${i.label}</span>
2234
2258
  </li>
2235
2259
  `})}
@@ -2422,9 +2446,9 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2422
2446
  </div>
2423
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`
2424
2448
  <div class="parts" part="parts">
2425
- ${this.datePart("day",T("Day"),2,"day")}
2426
- ${this.datePart("month",T("Month"),2,"month")}
2427
- ${this.datePart("year",T("Year"),4,"year")}
2449
+ ${this.datePart("day",S("Day"),2,"day")}
2450
+ ${this.datePart("month",S("Month"),2,"month")}
2451
+ ${this.datePart("year",S("Year"),4,"year")}
2428
2452
  </div>
2429
2453
  `}render(){return s`
2430
2454
  <fieldset part="fieldset" aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
@@ -2735,7 +2759,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2735
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">
2736
2760
  <button class="toggle" type="button" popovertarget=${i}>${M(this.menuLook==="icon"?"menu-two":"menu")}<span class="words">${this.menuText}</span></button>
2737
2761
  <div id=${i} class="panel" popover="auto" part="panel">
2738
- <button class="close" type="button" popovertarget=${i} popovertargetaction="hide">${M("close")}<span>${T("Close")}</span></button>
2762
+ <button class="close" type="button" popovertarget=${i} popovertargetaction="hide">${M("close")}<span>${S("Close")}</span></button>
2739
2763
  <ul part="list">
2740
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>`})}
2741
2765
  </ul>
@@ -2760,7 +2784,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2760
2784
  :host([look='mono']) a:hover { color: ${t.text}; text-decoration: underline; text-decoration-thickness: 1px; }
2761
2785
  :host([look='mono']) [aria-current] { color: ${t.text}; }
2762
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}; }
2763
- .sr-only { ${S} }
2787
+ .sr-only { ${T} }
2764
2788
  `]}render(){let e=this.items??[];return s`<nav aria-label=${this.label} part="nav"><ol>
2765
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>`)}
2766
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`
@@ -2776,7 +2800,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2776
2800
  :host([size='lg']) { block-size: ${r(8)}; }
2777
2801
  :host([size='xl']) { block-size: ${r(12)}; }
2778
2802
  :host([size='2xl']) { block-size: ${r(16)}; }
2779
- `]}render(){return s``}},yt=class extends p{static{this.styles=[...p.styles,h`:host { ${S} }`]}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`
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`
2780
2804
  /* Only the two-row layout needs a size container. Making every tab set one
2781
2805
  would take its width from its parent alone, so in a flex row, with no
2782
2806
  width given, it would shrink to nothing. In a row it may still shrink
@@ -2798,7 +2822,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2798
2822
  }
2799
2823
  @media (forced-colors: active) { [role='tab'][aria-selected='true'] { border-block-end-color: Highlight; } }
2800
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; }
2801
- .sr-only { ${S} }
2825
+ .sr-only { ${T} }
2802
2826
  /* Links drawn as tabs. */
2803
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}; }
2804
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; }
@@ -2860,7 +2884,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2860
2884
  </div>
2861
2885
  <div class="body" part="body"><slot></slot></div>
2862
2886
  <div class="foot" part="footer" ?hidden=${!this.hasFooter}><slot name="footer" @slotchange=${this.footerChanged}></slot></div>
2863
- </dialog>`}},xr={neutral:"info",success:"check",warning:"warning",danger:"warning"},Tt=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`
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`
2864
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; }
2865
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)); } }
2866
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); }
@@ -2882,7 +2906,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2882
2906
  ${this.actionText?s`<button class="action" type="button" @click=${this.action}>${this.actionText}</button>`:l}
2883
2907
  <button class="close" type="button" aria-label=${this.closeLabel} @click=${this.close}>${M("close","16px")}</button>
2884
2908
  </div>`:l}
2885
- </div>`}},yr=C("var(--impakt-color-line-soft, #dcdcd8)"),St=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`
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`
2886
2910
  :host { position: relative; display: inline-block; }
2887
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; }
2888
2912
  :host([trigger-look='text']) .trigger { padding: ${r(1)} ${r(1)}; font-size: 1rem; line-height: 1.25; background: transparent; border-color: transparent; }
@@ -2911,7 +2935,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2911
2935
  @media (forced-colors: active) { .panel { border-color: CanvasText; } .item[aria-current] { outline: 2px solid Highlight; outline-offset: -2px; } .item[aria-disabled='true'] { color: GrayText; } }
2912
2936
  .item.danger { color: ${t.dangerText}; }
2913
2937
  .item svg { flex: none; }
2914
- `]}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?T("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")}
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")}
2915
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>
2916
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}>
2917
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))}
@@ -2928,8 +2952,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2928
2952
  @container (max-width: 34rem) { ul { display: none; } .count { display: block; } }
2929
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">
2930
2954
  ${this.step(e-1,this.previousText,"arrow-left",e<=1)}
2931
- <ul>${kr(e,this.pages).map(i=>s`<li>${i==="gap"?s`<span class="gap" aria-hidden="true">…</span>`:this.link(i,"n",i,T("Page {page}",{page:i}),i===e)}</li>`)}</ul>
2932
- <span class="count">${T("Page {page} of {pages}",{page:e,pages:this.pages})}</span>
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>
2956
+ <span class="count">${S("Page {page} of {pages}",{page:e,pages:this.pages})}</span>
2933
2957
  ${this.step(e+1,this.nextText,"arrow-right",e>=this.pages)}
2934
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`
2935
2959
  :host { --size: 40px; display: inline-block; inline-size: var(--size); block-size: var(--size); vertical-align: middle; }
@@ -2939,7 +2963,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2939
2963
  :host([size='xl']) { --size: 80px; }
2940
2964
  .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")}; }
2941
2965
  img { inline-size: 100%; block-size: 100%; object-fit: cover; }
2942
- `]}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||T("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`
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`
2943
2967
  ul { display: flex; margin: 0; padding: 0; list-style: none; }
2944
2968
  li { margin-inline-start: -${r(2.5)}; border-radius: 50%; box-shadow: 0 0 0 2px ${t.surfaceCard}; line-height: 0; }
2945
2969
  li:first-child { margin-inline-start: 0; }
@@ -2949,7 +2973,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2949
2973
  :host([size='xs']) li:first-child { margin-inline-start: 0; }
2950
2974
  :host([size='xs']) .more { inline-size: 22px; block-size: 22px; font-size: 10px; }
2951
2975
  :host([size='lg']) .more { inline-size: 56px; block-size: 56px; }
2952
- .sr { ${S} }
2976
+ .sr { ${T} }
2953
2977
  `]}render(){let e=this.items.slice(0,this.max),i=this.items.length-e.length;return s`<ul part="list">
2954
2978
  ${e.map(a=>s`<li><impakt-avatar full-name=${a.name} src=${a.src??""} size=${this.size}></impakt-avatar></li>`)}
2955
2979
  ${i>0?s`<li><span class="more"><span aria-hidden="true">+${i}</span><span class="sr">${i} ${this.moreLabel}</span></span></li>`:l}
@@ -2965,7 +2989,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2965
2989
  ${this.heading?s`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:l}
2966
2990
  ${this.lead?s`<p>${this.lead}</p>`:l}
2967
2991
  <div class="actions"><slot name="actions"></slot></div>
2968
- </div>`}},wr=n=>String(n?.times??"").split(",").map(e=>e.trim()).filter(Boolean);function Tr(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`
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`
2969
2993
  fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
2970
2994
  legend { padding: 0; }
2971
2995
  .row-label { ${w("sm")} color: ${t.textMuted}; margin-block: ${r(2)}; }
@@ -2985,7 +3009,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2985
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`
2986
3010
  <div class="row-label" id=${this.id_("days")}>${this.dayLabel}</div>
2987
3011
  <div class="days" part="days" role="radiogroup" aria-labelledby=${this.id_("days")}>
2988
- ${this.days.map(a=>{let o=Tr(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)} />
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)} />
2989
3013
  <span class="weekday">${o.weekday}</span><span class="num">${o.day}</span><span class="month">${o.month}</span></label>`})}
2990
3014
  </div>
2991
3015
  <div class="row-label" id=${this.id_("times")}>${this.timeLabel}</div>
@@ -2996,7 +3020,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
2996
3020
  ${this.description?s`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
2997
3021
  ${this.renderControl()}
2998
3022
  <div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
2999
- </fieldset>`}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-drawer",wt);customElements.define("impakt-toast",Tt);customElements.define("impakt-menu",St);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`
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`
3000
3024
  input, select {
3001
3025
  box-sizing: border-box;
3002
3026
  inline-size: min(100%, var(--impakt-field-width));
@@ -3025,7 +3049,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3025
3049
  }
3026
3050
  .btn:hover { background: ${t.brandHover}; }
3027
3051
  .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; }
3028
- .visually-hidden { ${S} }
3052
+ .visually-hidden { ${T} }
3029
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`
3030
3054
  .row { display: flex; flex-wrap: wrap; gap: ${r(2)}; align-items: flex-end; }
3031
3055
  .row label { display: block; ${w("sm")} font-weight: ${m("semibold")}; margin-block-end: ${r(1)}; }
@@ -3038,11 +3062,11 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3038
3062
  .note { ${w("sm")} color: ${t.textMuted}; margin: ${r(2)} 0 0; }
3039
3063
  .switch { margin-block-start: ${r(3)}; }
3040
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}>
3041
- ${e("line1",T("Building and street"),"address-line1")}
3042
- ${e("line2",T("Second line (optional)"),"address-line2")}
3043
- ${e("town",T("Town or city"),"address-level2")}
3044
- ${e("mpostcode",T("Postcode"),"postal-code")}
3045
- <button class="quiet switch" type="button" @click=${()=>{this.manual=!1}}>${T("Find the address from the postcode")}</button>
3065
+ ${e("line1",S("Building and street"),"address-line1")}
3066
+ ${e("line2",S("Second line (optional)"),"address-line2")}
3067
+ ${e("town",S("Town or city"),"address-level2")}
3068
+ ${e("mpostcode",S("Postcode"),"postal-code")}
3069
+ <button class="quiet switch" type="button" @click=${()=>{this.manual=!1}}>${S("Find the address from the postcode")}</button>
3046
3070
  </div>`}return s`
3047
3071
  <div class="row">
3048
3072
  <div class="postcode"><label for=${this.controlId}>${this.postcodeLabel}</label>
@@ -3067,7 +3091,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3067
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">
3068
3092
  <h2 id=${this.id_("h")}>${this.heading}</h2>
3069
3093
  <ul>${this.items.map(e=>s`<li><a href=${e.href} @click=${i=>this.go(i,e.href)}>${e.text}</a></li>`)}</ul>
3070
- </div>`:l}},Sr=n=>n>=1048576?T("{size} MB",{size:(n/1048576).toFixed(1)}):T("{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`
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`
3071
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}; }
3072
3096
  .zone.over { border-color: ${t.brand}; background: ${t.brandSubtle}; }
3073
3097
  :host([invalid]) .zone { border-color: ${t.danger}; border-style: solid; }
@@ -3079,7 +3103,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3079
3103
  ul { margin: ${r(3)} 0 0; padding: 0; list-style: none; display: grid; gap: ${r(2)}; }
3080
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}; }
3081
3105
  .size { color: ${t.textMuted}; ${w("sm")} }
3082
- `]}fits(e){if(this.maxSizeMb&&e.size>this.maxSizeMb*1048576)return T("{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)))?T("{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=>T("{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?T("{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`
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`
3083
3107
  <div class="zone ${this.over?"over":""}"
3084
3108
  @dragover=${e=>{e.preventDefault(),this.over=!0}}
3085
3109
  @dragleave=${()=>{this.over=!1}}
@@ -3090,12 +3114,12 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3090
3114
  <span class="drop">${this.dropText}</span>
3091
3115
  </div>
3092
3116
  <p class="visually-hidden" role="status">${this.said}</p>
3093
- ${this.files.length?s`<ul aria-label=${T("Files added")}>${this.files.map((e,i)=>s`<li><span>${e.name} <span class="size">${Sr(e.size)}</span></span><button class="quiet" type="button" @click=${()=>this.removeFile(i)}>${T("Remove")}<span class="visually-hidden"> ${e.name}</span></button></li>`)}</ul>`:l}
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}
3094
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`
3095
3119
  .wrap { display: flex; align-items: stretch; inline-size: min(100%, var(--impakt-field-width)); }
3096
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}; }
3097
3121
  .wrap input { inline-size: 100%; border-radius: 0 ${t.radiusLg} ${t.radiusLg} 0; }
3098
- `]}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=T("Enter an amount of {amount} or more",{amount:i(this.lowest)}):this.highest!==void 0&&e>this.highest?this.error=T("Enter an amount of {amount} or less",{amount:i(this.highest)}):(this.error===T("Enter an amount of {amount} or more",{amount:i(this.lowest??0)})||this.error===T("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">
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">
3099
3123
  <span class="sign" id=${this.id_("sign")}>${oi(this.currency)}</span>
3100
3124
  <input id=${this.controlId} inputmode=${this.pence?"decimal":"numeric"} .value=${this.shown} ?disabled=${this.disabled} ?readonly=${this.readonly} ?required=${this.required}
3101
3125
  aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}
@@ -3129,11 +3153,11 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3129
3153
  .tag[data-status='cannot-start'] { background: transparent; color: ${t.textMuted}; }
3130
3154
  `]}render(){let e=this.items.filter(i=>i.status==="done").length;return s`
3131
3155
  ${this.heading?s`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:l}
3132
- ${this.items.length?s`<p class="count">${T(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}
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}
3133
3157
  <ul>${this.items.map(i=>s`<li>
3134
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>`}
3135
3159
  ${i.hint?s`<span class="hint">${i.hint}</span>`:l}</span>
3136
- <span class="tag" data-status=${i.status} id=${this.id_(`s-${i.id}`)}>${qi[i.status]?T(qi[i.status]):i.status}</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>
3137
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`
3138
3162
  :host {
3139
3163
  display: inline-flex;
@@ -3175,7 +3199,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3175
3199
  border-color: #ffffff;
3176
3200
  }
3177
3201
  .visually-hidden {
3178
- ${S}
3202
+ ${T}
3179
3203
  }
3180
3204
  @media (forced-colors: active) {
3181
3205
  .chip {
@@ -3459,7 +3483,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3459
3483
  >
3460
3484
  </li>`)}
3461
3485
  </ul>
3462
- </nav>`:l}renderSwitcher(){return this.switcher.length?s`<impakt-menu class="switcher" edge="end" .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" .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">
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">
3463
3487
  <div class="start">
3464
3488
  <a class="home" part="home" href=${this.home}><span class="mark" aria-hidden="true">i</span><span class="word">${this.brand}</span></a>
3465
3489
  ${this.tool?s`<span class="sep" aria-hidden="true">/</span><span class="tool">${this.tool}</span>`:l}
@@ -3507,7 +3531,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3507
3531
  background: ${f.inverse};
3508
3532
  }
3509
3533
  .visually-hidden {
3510
- ${S}
3534
+ ${T}
3511
3535
  }
3512
3536
  @media (forced-colors: active) {
3513
3537
  a {
@@ -3580,7 +3604,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3580
3604
  part="track"
3581
3605
  role="meter"
3582
3606
  aria-labelledby=${this.label?this.id_("label"):l}
3583
- aria-label=${this.label?l:T("Meter")}
3607
+ aria-label=${this.label?l:S("Meter")}
3584
3608
  aria-valuemin=${this.min}
3585
3609
  aria-valuemax=${this.max}
3586
3610
  aria-valuenow=${e}
@@ -3663,7 +3687,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3663
3687
  color: ${f.codeText};
3664
3688
  }
3665
3689
  .visually-hidden {
3666
- ${S}
3690
+ ${T}
3667
3691
  }
3668
3692
  @media (forced-colors: active) {
3669
3693
  .block {
@@ -3802,7 +3826,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3802
3826
  border-color: ${t.text};
3803
3827
  }
3804
3828
  .visually-hidden {
3805
- ${S}
3829
+ ${T}
3806
3830
  }
3807
3831
  @media (forced-colors: active) {
3808
3832
  .tag {
@@ -3904,7 +3928,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
3904
3928
  ${this.description?s`<p class="description">${this.description}</p>`:l}
3905
3929
  ${this.renderStatus()}
3906
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}
3907
- </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,St 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,Tt 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,T 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,S as visuallyHidden};
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};
3908
3932
  /*! Bundled license information:
3909
3933
 
3910
3934
  lit-html/lit-html.js: