@govtechsg/sgds-web-component 3.19.0 → 3.20.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/base/select-element.d.ts +2 -0
  2. package/base/select-element.js +12 -0
  3. package/base/select-element.js.map +1 -1
  4. package/components/Alert/alert.js +1 -1
  5. package/components/Alert/index.umd.min.js +1 -1
  6. package/components/Alert/index.umd.min.js.map +1 -1
  7. package/components/ComboBox/index.umd.min.js +4 -4
  8. package/components/ComboBox/index.umd.min.js.map +1 -1
  9. package/components/ComboBox/sgds-combo-box.d.ts +4 -0
  10. package/components/ComboBox/sgds-combo-box.js +9 -0
  11. package/components/ComboBox/sgds-combo-box.js.map +1 -1
  12. package/components/Select/index.umd.min.js +15 -15
  13. package/components/Select/index.umd.min.js.map +1 -1
  14. package/components/Stepper/index.d.ts +2 -0
  15. package/components/Stepper/index.js +2 -0
  16. package/components/Stepper/index.js.map +1 -1
  17. package/components/Stepper/index.umd.min.js +61 -39
  18. package/components/Stepper/index.umd.min.js.map +1 -1
  19. package/components/Stepper/sgds-step.d.ts +42 -0
  20. package/components/Stepper/sgds-step.js +123 -0
  21. package/components/Stepper/sgds-step.js.map +1 -0
  22. package/components/Stepper/sgds-stepper.d.ts +33 -2
  23. package/components/Stepper/sgds-stepper.js +132 -36
  24. package/components/Stepper/sgds-stepper.js.map +1 -1
  25. package/components/Stepper/step.js +6 -0
  26. package/components/Stepper/step.js.map +1 -0
  27. package/components/Stepper/stepper.js +1 -1
  28. package/components/Stepper/types.d.ts +1 -0
  29. package/components/Textarea/index.umd.min.js.map +1 -1
  30. package/components/Textarea/sgds-textarea.d.ts +2 -0
  31. package/components/Textarea/sgds-textarea.js +2 -0
  32. package/components/Textarea/sgds-textarea.js.map +1 -1
  33. package/components/index.d.ts +1 -0
  34. package/components/index.js +1 -0
  35. package/components/index.js.map +1 -1
  36. package/components/index.umd.min.js +90 -68
  37. package/components/index.umd.min.js.map +1 -1
  38. package/css/fouc.css +1 -0
  39. package/custom-elements.json +301 -5
  40. package/index.umd.min.js +187 -165
  41. package/index.umd.min.js.map +1 -1
  42. package/package.json +1 -1
  43. package/react/base/select-element.cjs.js +12 -0
  44. package/react/base/select-element.cjs.js.map +1 -1
  45. package/react/base/select-element.js +12 -0
  46. package/react/base/select-element.js.map +1 -1
  47. package/react/combo-box/index.cjs.js +2 -0
  48. package/react/combo-box/index.cjs.js.map +1 -1
  49. package/react/combo-box/index.js +2 -0
  50. package/react/combo-box/index.js.map +1 -1
  51. package/react/components/Alert/alert.cjs.js +1 -1
  52. package/react/components/Alert/alert.js +1 -1
  53. package/react/components/ComboBox/sgds-combo-box.cjs.js +9 -0
  54. package/react/components/ComboBox/sgds-combo-box.cjs.js.map +1 -1
  55. package/react/components/ComboBox/sgds-combo-box.js +9 -0
  56. package/react/components/ComboBox/sgds-combo-box.js.map +1 -1
  57. package/react/components/Stepper/sgds-step.cjs.js +129 -0
  58. package/react/components/Stepper/sgds-step.cjs.js.map +1 -0
  59. package/react/components/Stepper/sgds-step.js +124 -0
  60. package/react/components/Stepper/sgds-step.js.map +1 -0
  61. package/react/components/Stepper/sgds-stepper.cjs.js +130 -34
  62. package/react/components/Stepper/sgds-stepper.cjs.js.map +1 -1
  63. package/react/components/Stepper/sgds-stepper.js +132 -36
  64. package/react/components/Stepper/sgds-stepper.js.map +1 -1
  65. package/react/components/Stepper/step.cjs.js +11 -0
  66. package/react/components/Stepper/step.cjs.js.map +1 -0
  67. package/react/components/Stepper/step.js +7 -0
  68. package/react/components/Stepper/step.js.map +1 -0
  69. package/react/components/Stepper/stepper.cjs.js +1 -1
  70. package/react/components/Stepper/stepper.js +1 -1
  71. package/react/components/Textarea/sgds-textarea.cjs.js +2 -0
  72. package/react/components/Textarea/sgds-textarea.cjs.js.map +1 -1
  73. package/react/components/Textarea/sgds-textarea.js +2 -0
  74. package/react/components/Textarea/sgds-textarea.js.map +1 -1
  75. package/react/index.cjs.js +40 -38
  76. package/react/index.cjs.js.map +1 -1
  77. package/react/index.d.ts +1 -0
  78. package/react/index.js +1 -0
  79. package/react/index.js.map +1 -1
  80. package/react/step/index.cjs.js +40 -0
  81. package/react/step/index.cjs.js.map +1 -0
  82. package/react/step/index.d.ts +4 -0
  83. package/react/step/index.js +16 -0
  84. package/react/step/index.js.map +1 -0
  85. package/react/textarea/index.cjs.js +3 -1
  86. package/react/textarea/index.cjs.js.map +1 -1
  87. package/react/textarea/index.js +3 -1
  88. package/react/textarea/index.js.map +1 -1
  89. package/types/react.d.ts +23 -2
@@ -10,7 +10,7 @@ const l=globalThis,i=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow
10
10
  * Copyright 2017 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const V=globalThis,H=e=>{V.emitLitDebugLogEvents&&V.dispatchEvent(new CustomEvent("lit-debug",{detail:e}))};let $,S=0;V.litIssuedWarnings??=new Set,$=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",V.litIssuedWarnings.has(t)||V.litIssuedWarnings.has(e)||(console.warn(t),V.litIssuedWarnings.add(t))},queueMicrotask(()=>{$("dev-mode","Lit is in dev mode. Not recommended for production!")});const B=V.ShadyDOM?.inUse&&!0===V.ShadyDOM?.noPatch?V.ShadyDOM.wrap:e=>e,k=V.trustedTypes,A=k?k.createPolicy("lit-html",{createHTML:e=>e}):void 0,L=e=>e,E=(e,t,l)=>L,P=e=>{if(ne!==E)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");ne=e},I=()=>{ne=E},T=(e,t,l)=>ne(e,t,l),R="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,z="?"+O,D=`<${z}>`,N=document,U=()=>N.createComment(""),F=e=>null===e||"object"!=typeof e&&"function"!=typeof e,W=Array.isArray,q="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,J=/>/g,G=new RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,X=/"/g,Q=/^(?:script|style|textarea|title)$/i,ee=(te=1,(e,...t)=>(e.some(e=>void 0===e)&&console.warn("Some template strings are undefined.\nThis is probably caused by illegal octal escape sequences."),t.some(e=>e?._$litStatic$)&&$("","Static values 'literal' or 'unsafeStatic' cannot be used as values to non-static templates.\nPlease use the static 'html' tag function. See https://lit.dev/docs/templates/expressions/#static-expressions"),{_$litType$:te,strings:e,values:t}));var te;const le=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),ae=new WeakMap,oe=N.createTreeWalker(N,129);let ne=E;function re(e,t){if(!W(e)||!e.hasOwnProperty("raw")){let e="invalid template strings array";throw e="\n Internal Error: expected template strings to be an array\n with a 'raw' field. Faking a template strings array by\n calling html or svg like an ordinary function is effectively\n the same as calling unsafeHtml and can lead to major security\n issues, e.g. opening your code up to XSS attacks.\n If you're using the html or svg tagged template functions normally\n and still seeing this error, please file a bug at\n https://github.com/lit/lit/issues/new?template=bug_report.md\n and include information about your build tooling, if any.\n ".trim().replace(/\n */g,"\n"),new Error(e)}return void 0!==A?A.createHTML(t):t}class se{constructor({strings:e,_$litType$:t},l){let i;this.parts=[];let a=0,o=0;const n=e.length-1,r=this.parts,[s,c]=((e,t)=>{const l=e.length-1,i=[];let a,o=2===t?"<svg>":3===t?"<math>":"",n=j;for(let t=0;t<l;t++){const l=e[t];let r,s,c=-1,d=0;for(;d<l.length&&(n.lastIndex=d,s=n.exec(l),null!==s);)if(d=n.lastIndex,n===j){if("!--"===s[1])n=K;else if(void 0!==s[1])n=J;else if(void 0!==s[2])Q.test(s[2])&&(a=new RegExp(`</${s[2]}`,"g")),n=G;else if(void 0!==s[3])throw new Error("Bindings in tag names are not supported. Please use static templates instead. See https://lit.dev/docs/templates/expressions/#static-expressions")}else n===G?">"===s[0]?(n=a??j,c=-1):void 0===s[1]?c=-2:(c=n.lastIndex-s[2].length,r=s[1],n=void 0===s[3]?G:'"'===s[3]?X:Y):n===X||n===Y?n=G:n===K||n===J?n=j:(n=G,a=void 0);console.assert(-1===c||n===G||n===Y||n===X,"unexpected parse state B");const h=n===G&&e[t+1].startsWith("/>")?" ":"";o+=n===j?l+D:c>=0?(i.push(r),l.slice(0,c)+R+l.slice(c)+O+h):l+O+(-2===c?t:h)}return[re(e,o+(e[l]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]})(e,t);if(this.el=se.createElement(s,l),oe.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=oe.nextNode())&&r.length<n;){if(1===i.nodeType){{const e=i.localName;if(/^(?:textarea|template)$/i.test(e)&&i.innerHTML.includes(O)){const t=`Expressions are not supported inside \`${e}\` elements. See https://lit.dev/msg/expression-in-${e} for more information.`;if("template"===e)throw new Error(t);$("",t)}}if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(R)){const t=c[o++],l=i.getAttribute(e).split(O),n=/([.?@])?(.*)/.exec(t);r.push({type:1,index:a,name:n[2],strings:l,ctor:"."===n[1]?ue:"?"===n[1]?pe:"@"===n[1]?ge:ve}),i.removeAttribute(e)}else e.startsWith(O)&&(r.push({type:6,index:a}),i.removeAttribute(e));if(Q.test(i.tagName)){const e=i.textContent.split(O),t=e.length-1;if(t>0){i.textContent=k?k.emptyScript:"";for(let l=0;l<t;l++)i.append(e[l],U()),oe.nextNode(),r.push({type:2,index:++a});i.append(e[t],U())}}}else if(8===i.nodeType){if(i.data===z)r.push({type:2,index:a});else{let e=-1;for(;-1!==(e=i.data.indexOf(O,e+1));)r.push({type:7,index:a}),e+=O.length-1}}a++}if(c.length!==o)throw new Error('Detected duplicate attribute bindings. This occurs if your template has duplicate attributes on an element tag. For example "<input ?disabled=${true} ?disabled=${false}>" contains a duplicate "disabled" attribute. The error was detected in the following template: \n`'+e.join("${...}")+"`");H&&H({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:e})}static createElement(e,t){const l=N.createElement("template");return l.innerHTML=e,l}}function ce(e,t,l=e,i){if(t===le)return t;let a=void 0!==i?l.__directives?.[i]:l.__directive;const o=F(t)?void 0:t._$litDirective$;return a?.constructor!==o&&(a?._$notifyDirectiveConnectionChanged?.(!1),void 0===o?a=void 0:(a=new o(e),a._$initialize(e,l,i)),void 0!==i?(l.__directives??=[])[i]=a:l.__directive=a),void 0!==a&&(t=ce(e,a._$resolve(e,t.values),a,i)),t}class de{constructor(e,t){this._$parts=[],this._$disconnectableChildren=void 0,this._$template=e,this._$parent=t}get parentNode(){return this._$parent.parentNode}get _$isConnected(){return this._$parent._$isConnected}_clone(e){const{el:{content:t},parts:l}=this._$template,i=(e?.creationScope??N).importNode(t,!0);oe.currentNode=i;let a=oe.nextNode(),o=0,n=0,r=l[0];for(;void 0!==r;){if(o===r.index){let t;2===r.type?t=new he(a,a.nextSibling,this,e):1===r.type?t=new r.ctor(a,r.name,r.strings,this,e):6===r.type&&(t=new we(a,this,e)),this._$parts.push(t),r=l[++n]}o!==r?.index&&(a=oe.nextNode(),o++)}return oe.currentNode=N,i}_update(e){let t=0;for(const l of this._$parts)void 0!==l&&(H&&H({kind:"set part",part:l,value:e[t],valueIndex:t,values:e,templateInstance:this}),void 0!==l.strings?(l._$setValue(e,l,t),t+=l.strings.length-2):l._$setValue(e[t])),t++}}class he{get _$isConnected(){return this._$parent?._$isConnected??this.__isConnected}constructor(e,t,l,i){this.type=2,this._$committedValue=ie,this._$disconnectableChildren=void 0,this._$startNode=e,this._$endNode=t,this._$parent=l,this.options=i,this.__isConnected=i?.isConnected??!0,this._textSanitizer=void 0}get parentNode(){let e=B(this._$startNode).parentNode;const t=this._$parent;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$startNode}get endNode(){return this._$endNode}_$setValue(e,t=this){if(null===this.parentNode)throw new Error("This `ChildPart` has no `parentNode` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's `innerHTML` or `textContent` can do this.");if(e=ce(this,e,t),F(e))e===ie||null==e||""===e?(this._$committedValue!==ie&&(H&&H({kind:"commit nothing to child",start:this._$startNode,end:this._$endNode,parent:this._$parent,options:this.options}),this._$clear()),this._$committedValue=ie):e!==this._$committedValue&&e!==le&&this._commitText(e);else if(void 0!==e._$litType$)this._commitTemplateResult(e);else if(void 0!==e.nodeType){if(this.options?.host===e)return this._commitText("[probable mistake: rendered a template's host in itself (commonly caused by writing ${this} in a template]"),void console.warn("Attempted to render the template host",e,"inside itself. This is almost always a mistake, and in dev mode ","we render some warning text. In production however, we'll ","render it, which will usually result in an error, and sometimes ","in the element disappearing from the DOM.");this._commitNode(e)}else(e=>W(e)||"function"==typeof e?.[Symbol.iterator])(e)?this._commitIterable(e):this._commitText(e)}_insert(e){return B(B(this._$startNode).parentNode).insertBefore(e,this._$endNode)}_commitNode(e){if(this._$committedValue!==e){if(this._$clear(),ne!==E){const e=this._$startNode.parentNode?.nodeName;if("STYLE"===e||"SCRIPT"===e){let t="Forbidden";throw t="STYLE"===e?"Lit does not support binding inside style nodes. This is a security risk, as style injection attacks can exfiltrate data and spoof UIs. Consider instead using css`...` literals to compose styles, and do dynamic styling with css custom properties, ::parts, <slot>s, and by mutating the DOM rather than stylesheets.":"Lit does not support binding inside script nodes. This is a security risk, as it could allow arbitrary code execution.",new Error(t)}}H&&H({kind:"commit node",start:this._$startNode,parent:this._$parent,value:e,options:this.options}),this._$committedValue=this._insert(e)}}_commitText(e){if(this._$committedValue!==ie&&F(this._$committedValue)){const t=B(this._$startNode).nextSibling;void 0===this._textSanitizer&&(this._textSanitizer=T(t,"data","property")),e=this._textSanitizer(e),H&&H({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}else{const t=N.createTextNode("");this._commitNode(t),void 0===this._textSanitizer&&(this._textSanitizer=T(t,"data","property")),e=this._textSanitizer(e),H&&H({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}this._$committedValue=e}_commitTemplateResult(e){const{values:t,_$litType$:l}=e,i="number"==typeof l?this._$getTemplate(e):(void 0===l.el&&(l.el=se.createElement(re(l.h,l.h[0]),this.options)),l);if(this._$committedValue?._$template===i)H&&H({kind:"template updating",template:i,instance:this._$committedValue,parts:this._$committedValue._$parts,options:this.options,values:t}),this._$committedValue._update(t);else{const e=new de(i,this),l=e._clone(this.options);H&&H({kind:"template instantiated",template:i,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),e._update(t),H&&H({kind:"template instantiated and updated",template:i,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),this._commitNode(l),this._$committedValue=e}}_$getTemplate(e){let t=ae.get(e.strings);return void 0===t&&ae.set(e.strings,t=new se(e)),t}_commitIterable(e){W(this._$committedValue)||(this._$committedValue=[],this._$clear());const t=this._$committedValue;let l,i=0;for(const a of e)i===t.length?t.push(l=new he(this._insert(U()),this._insert(U()),this,this.options)):l=t[i],l._$setValue(a),i++;i<t.length&&(this._$clear(l&&B(l._$endNode).nextSibling,i),t.length=i)}_$clear(e=B(this._$startNode).nextSibling,t){for(this._$notifyConnectionChanged?.(!1,!0,t);e!==this._$endNode;){const t=B(e).nextSibling;B(e).remove(),e=t}}setConnected(e){if(void 0!==this._$parent)throw new Error("part.setConnected() may only be called on a RootPart returned from render().");this.__isConnected=e,this._$notifyConnectionChanged?.(e)}}class ve{get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}constructor(e,t,l,i,a){this.type=1,this._$committedValue=ie,this._$disconnectableChildren=void 0,this.element=e,this.name=t,this._$parent=i,this.options=a,l.length>2||""!==l[0]||""!==l[1]?(this._$committedValue=new Array(l.length-1).fill(new String),this.strings=l):this._$committedValue=ie,this._sanitizer=void 0}_$setValue(e,t=this,l,i){const a=this.strings;let o=!1;if(void 0===a)e=ce(this,e,t,0),o=!F(e)||e!==this._$committedValue&&e!==le,o&&(this._$committedValue=e);else{const i=e;let n,r;for(e=a[0],n=0;n<a.length-1;n++)r=ce(this,i[l+n],t,n),r===le&&(r=this._$committedValue[n]),o||=!F(r)||r!==this._$committedValue[n],r===ie?e=ie:e!==ie&&(e+=(r??"")+a[n+1]),this._$committedValue[n]=r}o&&!i&&this._commitValue(e)}_commitValue(e){e===ie?B(this.element).removeAttribute(this.name):(void 0===this._sanitizer&&(this._sanitizer=ne(this.element,this.name,"attribute")),e=this._sanitizer(e??""),H&&H({kind:"commit attribute",element:this.element,name:this.name,value:e,options:this.options}),B(this.element).setAttribute(this.name,e??""))}}class ue extends ve{constructor(){super(...arguments),this.type=3}_commitValue(e){void 0===this._sanitizer&&(this._sanitizer=ne(this.element,this.name,"property")),e=this._sanitizer(e),H&&H({kind:"commit property",element:this.element,name:this.name,value:e,options:this.options}),this.element[this.name]=e===ie?void 0:e}}class pe extends ve{constructor(){super(...arguments),this.type=4}_commitValue(e){H&&H({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!e||e===ie),options:this.options}),B(this.element).toggleAttribute(this.name,!!e&&e!==ie)}}class ge extends ve{constructor(e,t,l,i,a){if(super(e,t,l,i,a),this.type=5,void 0!==this.strings)throw new Error(`A \`<${e.localName}>\` has a \`@${t}=...\` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.`)}_$setValue(e,t=this){if((e=ce(this,e,t,0)??ie)===le)return;const l=this._$committedValue,i=e===ie&&l!==ie||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,a=e!==ie&&(l===ie||i);H&&H({kind:"commit event listener",element:this.element,name:this.name,value:e,options:this.options,removeListener:i,addListener:a,oldListener:l}),i&&this.element.removeEventListener(this.name,this,l),a&&this.element.addEventListener(this.name,this,e),this._$committedValue=e}handleEvent(e){"function"==typeof this._$committedValue?this._$committedValue.call(this.options?.host??this.element,e):this._$committedValue.handleEvent(e)}}class we{constructor(e,t,l){this.element=e,this.type=6,this._$disconnectableChildren=void 0,this._$parent=t,this.options=l}get _$isConnected(){return this._$parent._$isConnected}_$setValue(e){H&&H({kind:"commit to element binding",element:this.element,value:e,options:this.options}),ce(this,e)}}const fe=V.litHtmlPolyfillSupportDevMode;fe?.(se,he),(V.litHtmlVersions??=[]).push("3.3.2"),V.litHtmlVersions.length>1&&queueMicrotask(()=>{$("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});const me=(e,t,l)=>{if(null==t)throw new TypeError(`The container to render into may not be ${t}`);const i=S++,a=l?.renderBefore??t;let o=a._$litPart$;if(H&&H({kind:"begin render",id:i,value:e,container:t,options:l,part:o}),void 0===o){const e=l?.renderBefore??null;a._$litPart$=o=new he(t.insertBefore(U(),e),e,void 0,l??{})}return o._$setValue(e),H&&H({kind:"end render",id:i,value:e,container:t,options:l,part:o}),o};me.setSanitizer=P,me.createSanitizer=T,me._testOnlyClearSanitizerFactoryDoNotCallOrElse=I;
13
+ const V=globalThis,H=e=>{V.emitLitDebugLogEvents&&V.dispatchEvent(new CustomEvent("lit-debug",{detail:e}))};let $,S=0;V.litIssuedWarnings??=new Set,$=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",V.litIssuedWarnings.has(t)||V.litIssuedWarnings.has(e)||(console.warn(t),V.litIssuedWarnings.add(t))},queueMicrotask(()=>{$("dev-mode","Lit is in dev mode. Not recommended for production!")});const B=V.ShadyDOM?.inUse&&!0===V.ShadyDOM?.noPatch?V.ShadyDOM.wrap:e=>e,k=V.trustedTypes,A=k?k.createPolicy("lit-html",{createHTML:e=>e}):void 0,L=e=>e,E=(e,t,l)=>L,I=e=>{if(ne!==E)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");ne=e},P=()=>{ne=E},T=(e,t,l)=>ne(e,t,l),R="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,z="?"+O,D=`<${z}>`,N=document,U=()=>N.createComment(""),F=e=>null===e||"object"!=typeof e&&"function"!=typeof e,W=Array.isArray,q="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,J=/>/g,G=new RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,X=/"/g,Q=/^(?:script|style|textarea|title)$/i,ee=(te=1,(e,...t)=>(e.some(e=>void 0===e)&&console.warn("Some template strings are undefined.\nThis is probably caused by illegal octal escape sequences."),t.some(e=>e?._$litStatic$)&&$("","Static values 'literal' or 'unsafeStatic' cannot be used as values to non-static templates.\nPlease use the static 'html' tag function. See https://lit.dev/docs/templates/expressions/#static-expressions"),{_$litType$:te,strings:e,values:t}));var te;const le=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),ae=new WeakMap,oe=N.createTreeWalker(N,129);let ne=E;function re(e,t){if(!W(e)||!e.hasOwnProperty("raw")){let e="invalid template strings array";throw e="\n Internal Error: expected template strings to be an array\n with a 'raw' field. Faking a template strings array by\n calling html or svg like an ordinary function is effectively\n the same as calling unsafeHtml and can lead to major security\n issues, e.g. opening your code up to XSS attacks.\n If you're using the html or svg tagged template functions normally\n and still seeing this error, please file a bug at\n https://github.com/lit/lit/issues/new?template=bug_report.md\n and include information about your build tooling, if any.\n ".trim().replace(/\n */g,"\n"),new Error(e)}return void 0!==A?A.createHTML(t):t}class se{constructor({strings:e,_$litType$:t},l){let i;this.parts=[];let a=0,o=0;const n=e.length-1,r=this.parts,[s,c]=((e,t)=>{const l=e.length-1,i=[];let a,o=2===t?"<svg>":3===t?"<math>":"",n=j;for(let t=0;t<l;t++){const l=e[t];let r,s,c=-1,d=0;for(;d<l.length&&(n.lastIndex=d,s=n.exec(l),null!==s);)if(d=n.lastIndex,n===j){if("!--"===s[1])n=K;else if(void 0!==s[1])n=J;else if(void 0!==s[2])Q.test(s[2])&&(a=new RegExp(`</${s[2]}`,"g")),n=G;else if(void 0!==s[3])throw new Error("Bindings in tag names are not supported. Please use static templates instead. See https://lit.dev/docs/templates/expressions/#static-expressions")}else n===G?">"===s[0]?(n=a??j,c=-1):void 0===s[1]?c=-2:(c=n.lastIndex-s[2].length,r=s[1],n=void 0===s[3]?G:'"'===s[3]?X:Y):n===X||n===Y?n=G:n===K||n===J?n=j:(n=G,a=void 0);console.assert(-1===c||n===G||n===Y||n===X,"unexpected parse state B");const h=n===G&&e[t+1].startsWith("/>")?" ":"";o+=n===j?l+D:c>=0?(i.push(r),l.slice(0,c)+R+l.slice(c)+O+h):l+O+(-2===c?t:h)}return[re(e,o+(e[l]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]})(e,t);if(this.el=se.createElement(s,l),oe.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=oe.nextNode())&&r.length<n;){if(1===i.nodeType){{const e=i.localName;if(/^(?:textarea|template)$/i.test(e)&&i.innerHTML.includes(O)){const t=`Expressions are not supported inside \`${e}\` elements. See https://lit.dev/msg/expression-in-${e} for more information.`;if("template"===e)throw new Error(t);$("",t)}}if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(R)){const t=c[o++],l=i.getAttribute(e).split(O),n=/([.?@])?(.*)/.exec(t);r.push({type:1,index:a,name:n[2],strings:l,ctor:"."===n[1]?ue:"?"===n[1]?pe:"@"===n[1]?ge:ve}),i.removeAttribute(e)}else e.startsWith(O)&&(r.push({type:6,index:a}),i.removeAttribute(e));if(Q.test(i.tagName)){const e=i.textContent.split(O),t=e.length-1;if(t>0){i.textContent=k?k.emptyScript:"";for(let l=0;l<t;l++)i.append(e[l],U()),oe.nextNode(),r.push({type:2,index:++a});i.append(e[t],U())}}}else if(8===i.nodeType){if(i.data===z)r.push({type:2,index:a});else{let e=-1;for(;-1!==(e=i.data.indexOf(O,e+1));)r.push({type:7,index:a}),e+=O.length-1}}a++}if(c.length!==o)throw new Error('Detected duplicate attribute bindings. This occurs if your template has duplicate attributes on an element tag. For example "<input ?disabled=${true} ?disabled=${false}>" contains a duplicate "disabled" attribute. The error was detected in the following template: \n`'+e.join("${...}")+"`");H&&H({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:e})}static createElement(e,t){const l=N.createElement("template");return l.innerHTML=e,l}}function ce(e,t,l=e,i){if(t===le)return t;let a=void 0!==i?l.__directives?.[i]:l.__directive;const o=F(t)?void 0:t._$litDirective$;return a?.constructor!==o&&(a?._$notifyDirectiveConnectionChanged?.(!1),void 0===o?a=void 0:(a=new o(e),a._$initialize(e,l,i)),void 0!==i?(l.__directives??=[])[i]=a:l.__directive=a),void 0!==a&&(t=ce(e,a._$resolve(e,t.values),a,i)),t}class de{constructor(e,t){this._$parts=[],this._$disconnectableChildren=void 0,this._$template=e,this._$parent=t}get parentNode(){return this._$parent.parentNode}get _$isConnected(){return this._$parent._$isConnected}_clone(e){const{el:{content:t},parts:l}=this._$template,i=(e?.creationScope??N).importNode(t,!0);oe.currentNode=i;let a=oe.nextNode(),o=0,n=0,r=l[0];for(;void 0!==r;){if(o===r.index){let t;2===r.type?t=new he(a,a.nextSibling,this,e):1===r.type?t=new r.ctor(a,r.name,r.strings,this,e):6===r.type&&(t=new we(a,this,e)),this._$parts.push(t),r=l[++n]}o!==r?.index&&(a=oe.nextNode(),o++)}return oe.currentNode=N,i}_update(e){let t=0;for(const l of this._$parts)void 0!==l&&(H&&H({kind:"set part",part:l,value:e[t],valueIndex:t,values:e,templateInstance:this}),void 0!==l.strings?(l._$setValue(e,l,t),t+=l.strings.length-2):l._$setValue(e[t])),t++}}class he{get _$isConnected(){return this._$parent?._$isConnected??this.__isConnected}constructor(e,t,l,i){this.type=2,this._$committedValue=ie,this._$disconnectableChildren=void 0,this._$startNode=e,this._$endNode=t,this._$parent=l,this.options=i,this.__isConnected=i?.isConnected??!0,this._textSanitizer=void 0}get parentNode(){let e=B(this._$startNode).parentNode;const t=this._$parent;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$startNode}get endNode(){return this._$endNode}_$setValue(e,t=this){if(null===this.parentNode)throw new Error("This `ChildPart` has no `parentNode` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's `innerHTML` or `textContent` can do this.");if(e=ce(this,e,t),F(e))e===ie||null==e||""===e?(this._$committedValue!==ie&&(H&&H({kind:"commit nothing to child",start:this._$startNode,end:this._$endNode,parent:this._$parent,options:this.options}),this._$clear()),this._$committedValue=ie):e!==this._$committedValue&&e!==le&&this._commitText(e);else if(void 0!==e._$litType$)this._commitTemplateResult(e);else if(void 0!==e.nodeType){if(this.options?.host===e)return this._commitText("[probable mistake: rendered a template's host in itself (commonly caused by writing ${this} in a template]"),void console.warn("Attempted to render the template host",e,"inside itself. This is almost always a mistake, and in dev mode ","we render some warning text. In production however, we'll ","render it, which will usually result in an error, and sometimes ","in the element disappearing from the DOM.");this._commitNode(e)}else(e=>W(e)||"function"==typeof e?.[Symbol.iterator])(e)?this._commitIterable(e):this._commitText(e)}_insert(e){return B(B(this._$startNode).parentNode).insertBefore(e,this._$endNode)}_commitNode(e){if(this._$committedValue!==e){if(this._$clear(),ne!==E){const e=this._$startNode.parentNode?.nodeName;if("STYLE"===e||"SCRIPT"===e){let t="Forbidden";throw t="STYLE"===e?"Lit does not support binding inside style nodes. This is a security risk, as style injection attacks can exfiltrate data and spoof UIs. Consider instead using css`...` literals to compose styles, and do dynamic styling with css custom properties, ::parts, <slot>s, and by mutating the DOM rather than stylesheets.":"Lit does not support binding inside script nodes. This is a security risk, as it could allow arbitrary code execution.",new Error(t)}}H&&H({kind:"commit node",start:this._$startNode,parent:this._$parent,value:e,options:this.options}),this._$committedValue=this._insert(e)}}_commitText(e){if(this._$committedValue!==ie&&F(this._$committedValue)){const t=B(this._$startNode).nextSibling;void 0===this._textSanitizer&&(this._textSanitizer=T(t,"data","property")),e=this._textSanitizer(e),H&&H({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}else{const t=N.createTextNode("");this._commitNode(t),void 0===this._textSanitizer&&(this._textSanitizer=T(t,"data","property")),e=this._textSanitizer(e),H&&H({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}this._$committedValue=e}_commitTemplateResult(e){const{values:t,_$litType$:l}=e,i="number"==typeof l?this._$getTemplate(e):(void 0===l.el&&(l.el=se.createElement(re(l.h,l.h[0]),this.options)),l);if(this._$committedValue?._$template===i)H&&H({kind:"template updating",template:i,instance:this._$committedValue,parts:this._$committedValue._$parts,options:this.options,values:t}),this._$committedValue._update(t);else{const e=new de(i,this),l=e._clone(this.options);H&&H({kind:"template instantiated",template:i,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),e._update(t),H&&H({kind:"template instantiated and updated",template:i,instance:e,parts:e._$parts,options:this.options,fragment:l,values:t}),this._commitNode(l),this._$committedValue=e}}_$getTemplate(e){let t=ae.get(e.strings);return void 0===t&&ae.set(e.strings,t=new se(e)),t}_commitIterable(e){W(this._$committedValue)||(this._$committedValue=[],this._$clear());const t=this._$committedValue;let l,i=0;for(const a of e)i===t.length?t.push(l=new he(this._insert(U()),this._insert(U()),this,this.options)):l=t[i],l._$setValue(a),i++;i<t.length&&(this._$clear(l&&B(l._$endNode).nextSibling,i),t.length=i)}_$clear(e=B(this._$startNode).nextSibling,t){for(this._$notifyConnectionChanged?.(!1,!0,t);e!==this._$endNode;){const t=B(e).nextSibling;B(e).remove(),e=t}}setConnected(e){if(void 0!==this._$parent)throw new Error("part.setConnected() may only be called on a RootPart returned from render().");this.__isConnected=e,this._$notifyConnectionChanged?.(e)}}class ve{get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}constructor(e,t,l,i,a){this.type=1,this._$committedValue=ie,this._$disconnectableChildren=void 0,this.element=e,this.name=t,this._$parent=i,this.options=a,l.length>2||""!==l[0]||""!==l[1]?(this._$committedValue=new Array(l.length-1).fill(new String),this.strings=l):this._$committedValue=ie,this._sanitizer=void 0}_$setValue(e,t=this,l,i){const a=this.strings;let o=!1;if(void 0===a)e=ce(this,e,t,0),o=!F(e)||e!==this._$committedValue&&e!==le,o&&(this._$committedValue=e);else{const i=e;let n,r;for(e=a[0],n=0;n<a.length-1;n++)r=ce(this,i[l+n],t,n),r===le&&(r=this._$committedValue[n]),o||=!F(r)||r!==this._$committedValue[n],r===ie?e=ie:e!==ie&&(e+=(r??"")+a[n+1]),this._$committedValue[n]=r}o&&!i&&this._commitValue(e)}_commitValue(e){e===ie?B(this.element).removeAttribute(this.name):(void 0===this._sanitizer&&(this._sanitizer=ne(this.element,this.name,"attribute")),e=this._sanitizer(e??""),H&&H({kind:"commit attribute",element:this.element,name:this.name,value:e,options:this.options}),B(this.element).setAttribute(this.name,e??""))}}class ue extends ve{constructor(){super(...arguments),this.type=3}_commitValue(e){void 0===this._sanitizer&&(this._sanitizer=ne(this.element,this.name,"property")),e=this._sanitizer(e),H&&H({kind:"commit property",element:this.element,name:this.name,value:e,options:this.options}),this.element[this.name]=e===ie?void 0:e}}class pe extends ve{constructor(){super(...arguments),this.type=4}_commitValue(e){H&&H({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!e||e===ie),options:this.options}),B(this.element).toggleAttribute(this.name,!!e&&e!==ie)}}class ge extends ve{constructor(e,t,l,i,a){if(super(e,t,l,i,a),this.type=5,void 0!==this.strings)throw new Error(`A \`<${e.localName}>\` has a \`@${t}=...\` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.`)}_$setValue(e,t=this){if((e=ce(this,e,t,0)??ie)===le)return;const l=this._$committedValue,i=e===ie&&l!==ie||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,a=e!==ie&&(l===ie||i);H&&H({kind:"commit event listener",element:this.element,name:this.name,value:e,options:this.options,removeListener:i,addListener:a,oldListener:l}),i&&this.element.removeEventListener(this.name,this,l),a&&this.element.addEventListener(this.name,this,e),this._$committedValue=e}handleEvent(e){"function"==typeof this._$committedValue?this._$committedValue.call(this.options?.host??this.element,e):this._$committedValue.handleEvent(e)}}class we{constructor(e,t,l){this.element=e,this.type=6,this._$disconnectableChildren=void 0,this._$parent=t,this.options=l}get _$isConnected(){return this._$parent._$isConnected}_$setValue(e){H&&H({kind:"commit to element binding",element:this.element,value:e,options:this.options}),ce(this,e)}}const fe=V.litHtmlPolyfillSupportDevMode;fe?.(se,he),(V.litHtmlVersions??=[]).push("3.3.2"),V.litHtmlVersions.length>1&&queueMicrotask(()=>{$("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});const me=(e,t,l)=>{if(null==t)throw new TypeError(`The container to render into may not be ${t}`);const i=S++,a=l?.renderBefore??t;let o=a._$litPart$;if(H&&H({kind:"begin render",id:i,value:e,container:t,options:l,part:o}),void 0===o){const e=l?.renderBefore??null;a._$litPart$=o=new he(t.insertBefore(U(),e),e,void 0,l??{})}return o._$setValue(e),H&&H({kind:"end render",id:i,value:e,container:t,options:l,part:o}),o};me.setSanitizer=I,me.createSanitizer=T,me._testOnlyClearSanitizerFactoryDoNotCallOrElse=P;
14
14
  /**
15
15
  * @license
16
16
  * Copyright 2017 Google LLC
@@ -54,12 +54,12 @@ function ke(e){return(t,l)=>Se(t,l,{async get(){return await this.updateComplete
54
54
  * Copyright 2017 Google LLC
55
55
  * SPDX-License-Identifier: BSD-3-Clause
56
56
  */
57
- const Ae=1,Le=2,Ee=e=>(...t)=>({_$litDirective$:e,values:t});class Pe{constructor(e){}get _$isConnected(){return this._$parent._$isConnected}_$initialize(e,t,l){this.__part=e,this._$parent=t,this.__attributeIndex=l}_$resolve(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}
57
+ const Ae=1,Le=2,Ee=e=>(...t)=>({_$litDirective$:e,values:t});class Ie{constructor(e){}get _$isConnected(){return this._$parent._$isConnected}_$initialize(e,t,l){this.__part=e,this._$parent=t,this.__attributeIndex=l}_$resolve(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}
58
58
  /**
59
59
  * @license
60
60
  * Copyright 2018 Google LLC
61
61
  * SPDX-License-Identifier: BSD-3-Clause
62
- */const Ie=Ee(class extends Pe{constructor(e){if(super(e),e.type!==Ae||"class"!==e.name||e.strings?.length>2)throw new Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this._previousClasses){this._previousClasses=new Set,void 0!==e.strings&&(this._staticClasses=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e)));for(const e in t)t[e]&&!this._staticClasses?.has(e)&&this._previousClasses.add(e);return this.render(t)}const l=e.element.classList;for(const e of this._previousClasses)e in t||(l.remove(e),this._previousClasses.delete(e));for(const e in t){const i=!!t[e];i===this._previousClasses.has(e)||this._staticClasses?.has(e)||(i?(l.add(e),this._previousClasses.add(e)):(l.remove(e),this._previousClasses.delete(e)))}return le}}),Te=e=>e??ie;
62
+ */const Pe=Ee(class extends Ie{constructor(e){if(super(e),e.type!==Ae||"class"!==e.name||e.strings?.length>2)throw new Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this._previousClasses){this._previousClasses=new Set,void 0!==e.strings&&(this._staticClasses=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e)));for(const e in t)t[e]&&!this._staticClasses?.has(e)&&this._previousClasses.add(e);return this.render(t)}const l=e.element.classList;for(const e of this._previousClasses)e in t||(l.remove(e),this._previousClasses.delete(e));for(const e in t){const i=!!t[e];i===this._previousClasses.has(e)||this._staticClasses?.has(e)||(i?(l.add(e),this._previousClasses.add(e)):(l.remove(e),this._previousClasses.delete(e)))}return le}}),Te=e=>e??ie;
63
63
  /**
64
64
  * @license
65
65
  * Copyright 2018 Google LLC
@@ -75,12 +75,12 @@ window.ShadyDOM?.inUse&&!0===window.ShadyDOM?.noPatch&&window.ShadyDOM.wrap;cons
75
75
  * @license
76
76
  * Copyright 2017 Google LLC
77
77
  * SPDX-License-Identifier: BSD-3-Clause
78
- */function De(e){void 0!==this._$disconnectableChildren?(Oe(this),this._$parent=e,ze(this)):this._$parent=e}function Ne(e,t=!1,l=0){const i=this._$committedValue,a=this._$disconnectableChildren;if(void 0!==a&&0!==a.size)if(t)if(Array.isArray(i))for(let e=l;e<i.length;e++)Re(i[e],!1),Oe(i[e]);else null!=i&&(Re(i,!1),Oe(i));else Re(this,e)}const Ue=e=>{e.type==Le&&(e._$notifyConnectionChanged??=Ne,e._$reparentDisconnectables??=De)};class Fe extends Pe{constructor(){super(...arguments),this._$disconnectableChildren=void 0}_$initialize(e,t,l){super._$initialize(e,t,l),ze(this),this.isConnected=e._$isConnected}_$notifyDirectiveConnectionChanged(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Re(this,e),Oe(this))}setValue(e){if(void 0===this.__part.strings)this.__part._$setValue(e,this);else{if(void 0===this.__attributeIndex)throw new Error("Expected this.__attributeIndex to be a number");const t=[...this.__part._$committedValue];t[this.__attributeIndex]=e,this.__part._$setValue(t,this,0)}}disconnected(){}reconnected(){}}
78
+ */function De(e){void 0!==this._$disconnectableChildren?(Oe(this),this._$parent=e,ze(this)):this._$parent=e}function Ne(e,t=!1,l=0){const i=this._$committedValue,a=this._$disconnectableChildren;if(void 0!==a&&0!==a.size)if(t)if(Array.isArray(i))for(let e=l;e<i.length;e++)Re(i[e],!1),Oe(i[e]);else null!=i&&(Re(i,!1),Oe(i));else Re(this,e)}const Ue=e=>{e.type==Le&&(e._$notifyConnectionChanged??=Ne,e._$reparentDisconnectables??=De)};class Fe extends Ie{constructor(){super(...arguments),this._$disconnectableChildren=void 0}_$initialize(e,t,l){super._$initialize(e,t,l),ze(this),this.isConnected=e._$isConnected}_$notifyDirectiveConnectionChanged(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Re(this,e),Oe(this))}setValue(e){if(void 0===this.__part.strings)this.__part._$setValue(e,this);else{if(void 0===this.__attributeIndex)throw new Error("Expected this.__attributeIndex to be a number");const t=[...this.__part._$committedValue];t[this.__attributeIndex]=e,this.__part._$setValue(t,this,0)}}disconnected(){}reconnected(){}}
79
79
  /**
80
80
  * @license
81
81
  * Copyright 2020 Google LLC
82
82
  * SPDX-License-Identifier: BSD-3-Clause
83
- */const We=()=>new qe;class qe{}const je=new WeakMap;const Ke=Ee(class extends Fe{render(e){return ie}update(e,[t]){const l=t!==this._ref;return l&&void 0!==this._ref&&this._updateRefValue(void 0),(l||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=e.options?.host,this._updateRefValue(this._element=e.element)),ie}_updateRefValue(e){if(this.isConnected||(e=void 0),"function"==typeof this._ref){const t=this._context??globalThis;let l=je.get(t);void 0===l&&(l=new WeakMap,je.set(t,l)),void 0!==l.get(this._ref)&&this._ref.call(this._context,void 0),l.set(this._ref,e),void 0!==e&&this._ref.call(this._context,e)}else this._ref.value=e}get _lastElementForRef(){return"function"==typeof this._ref?je.get(this._context??globalThis)?.get(this._ref):this._ref?.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}}),Je=Math.min,Ge=Math.max,Ye=Math.round,Xe=Math.floor,Qe=e=>({x:e,y:e}),et={left:"right",right:"left",bottom:"top",top:"bottom"},tt={start:"end",end:"start"};function lt(e,t,l){return Ge(e,Je(t,l))}function it(e,t){return"function"==typeof e?e(t):e}function at(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function nt(e){return"x"===e?"y":"x"}function rt(e){return"y"===e?"height":"width"}const st=new Set(["top","bottom"]);function ct(e){return st.has(at(e))?"y":"x"}function dt(e){return nt(ct(e))}function ht(e,t,l){void 0===l&&(l=!1);const i=ot(e),a=dt(e),o=rt(a);let n="x"===a?i===(l?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[o]>t.floating[o]&&(n=mt(n)),[n,mt(n)]}function vt(e){return e.replace(/start|end/g,e=>tt[e])}const ut=["left","right"],pt=["right","left"],gt=["top","bottom"],wt=["bottom","top"];function ft(e,t,l,i){const a=ot(e);let o=function(e,t,l){switch(e){case"top":case"bottom":return l?t?pt:ut:t?ut:pt;case"left":case"right":return t?gt:wt;default:return[]}}(at(e),"start"===l,i);return a&&(o=o.map(e=>e+"-"+a),t&&(o=o.concat(o.map(vt)))),o}function mt(e){return e.replace(/left|right|bottom|top/g,e=>et[e])}function xt(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Zt(e){const{x:t,y:l,width:i,height:a}=e;return{width:i,height:a,top:l,left:t,right:t+i,bottom:l+a,x:t,y:l}}function Ct(e,t,l){let{reference:i,floating:a}=e;const o=ct(t),n=dt(t),r=rt(n),s=at(t),c="y"===o,d=i.x+i.width/2-a.width/2,h=i.y+i.height/2-a.height/2,v=i[r]/2-a[r]/2;let u;switch(s){case"top":u={x:d,y:i.y-a.height};break;case"bottom":u={x:d,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:h};break;case"left":u={x:i.x-a.width,y:h};break;default:u={x:i.x,y:i.y}}switch(ot(t)){case"start":u[n]-=v*(l&&c?-1:1);break;case"end":u[n]+=v*(l&&c?-1:1)}return u}async function yt(e,t){var l;void 0===t&&(t={});const{x:i,y:a,platform:o,rects:n,elements:r,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:v=!1,padding:u=0}=it(t,e),p=xt(u),g=r[v?"floating"===h?"reference":"floating":h],w=Zt(await o.getClippingRect({element:null==(l=await(null==o.isElement?void 0:o.isElement(g)))||l?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(r.floating)),boundary:c,rootBoundary:d,strategy:s})),f="floating"===h?{x:i,y:a,width:n.floating.width,height:n.floating.height}:n.reference,m=await(null==o.getOffsetParent?void 0:o.getOffsetParent(r.floating)),x=await(null==o.isElement?void 0:o.isElement(m))&&await(null==o.getScale?void 0:o.getScale(m))||{x:1,y:1},Z=Zt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:f,offsetParent:m,strategy:s}):f);return{top:(w.top-Z.top+p.top)/x.y,bottom:(Z.bottom-w.bottom+p.bottom)/x.y,left:(w.left-Z.left+p.left)/x.x,right:(Z.right-w.right+p.right)/x.x}}const bt=new Set(["left","top"]);function Mt(){return"undefined"!=typeof window}function _t(e){return $t(e)?(e.nodeName||"").toLowerCase():"#document"}function Vt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ht(e){var t;return null==(t=($t(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $t(e){return!!Mt()&&(e instanceof Node||e instanceof Vt(e).Node)}function St(e){return!!Mt()&&(e instanceof Element||e instanceof Vt(e).Element)}function Bt(e){return!!Mt()&&(e instanceof HTMLElement||e instanceof Vt(e).HTMLElement)}function kt(e){return!(!Mt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Vt(e).ShadowRoot)}const At=new Set(["inline","contents"]);function Lt(e){const{overflow:t,overflowX:l,overflowY:i,display:a}=Wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+l)&&!At.has(a)}const Et=new Set(["table","td","th"]);function Pt(e){return Et.has(_t(e))}const It=[":popover-open",":modal"];function Tt(e){return It.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Rt=["transform","translate","scale","rotate","perspective"],Ot=["transform","translate","scale","rotate","perspective","filter"],zt=["paint","layout","strict","content"];function Dt(e){const t=Nt(),l=St(e)?Wt(e):e;return Rt.some(e=>!!l[e]&&"none"!==l[e])||!!l.containerType&&"normal"!==l.containerType||!t&&!!l.backdropFilter&&"none"!==l.backdropFilter||!t&&!!l.filter&&"none"!==l.filter||Ot.some(e=>(l.willChange||"").includes(e))||zt.some(e=>(l.contain||"").includes(e))}function Nt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Ut=new Set(["html","body","#document"]);function Ft(e){return Ut.has(_t(e))}function Wt(e){return Vt(e).getComputedStyle(e)}function qt(e){return St(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jt(e){if("html"===_t(e))return e;const t=e.assignedSlot||e.parentNode||kt(e)&&e.host||Ht(e);return kt(t)?t.host:t}function Kt(e){const t=jt(e);return Ft(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bt(t)&&Lt(t)?t:Kt(t)}function Jt(e,t,l){var i;void 0===t&&(t=[]),void 0===l&&(l=!0);const a=Kt(e),o=a===(null==(i=e.ownerDocument)?void 0:i.body),n=Vt(a);if(o){const e=Gt(n);return t.concat(n,n.visualViewport||[],Lt(a)?a:[],e&&l?Jt(e):[])}return t.concat(a,Jt(a,[],l))}function Gt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yt(e){const t=Wt(e);let l=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=Bt(e),o=a?e.offsetWidth:l,n=a?e.offsetHeight:i,r=Ye(l)!==o||Ye(i)!==n;return r&&(l=o,i=n),{width:l,height:i,$:r}}function Xt(e){return St(e)?e:e.contextElement}function Qt(e){const t=Xt(e);if(!Bt(t))return Qe(1);const l=t.getBoundingClientRect(),{width:i,height:a,$:o}=Yt(t);let n=(o?Ye(l.width):l.width)/i,r=(o?Ye(l.height):l.height)/a;return n&&Number.isFinite(n)||(n=1),r&&Number.isFinite(r)||(r=1),{x:n,y:r}}const el=Qe(0);function tl(e){const t=Vt(e);return Nt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function ll(e,t,l,i){void 0===t&&(t=!1),void 0===l&&(l=!1);const a=e.getBoundingClientRect(),o=Xt(e);let n=Qe(1);t&&(i?St(i)&&(n=Qt(i)):n=Qt(e));const r=function(e,t,l){return void 0===t&&(t=!1),!(!l||t&&l!==Vt(e))&&t}(o,l,i)?tl(o):Qe(0);let s=(a.left+r.x)/n.x,c=(a.top+r.y)/n.y,d=a.width/n.x,h=a.height/n.y;if(o){const e=Vt(o),t=i&&St(i)?Vt(i):i;let l=e,a=Gt(l);for(;a&&i&&t!==l;){const e=Qt(a),t=a.getBoundingClientRect(),i=Wt(a),o=t.left+(a.clientLeft+parseFloat(i.paddingLeft))*e.x,n=t.top+(a.clientTop+parseFloat(i.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,h*=e.y,s+=o,c+=n,l=Vt(a),a=Gt(l)}}return Zt({width:d,height:h,x:s,y:c})}function il(e,t){const l=qt(e).scrollLeft;return t?t.left+l:ll(Ht(e)).left+l}function al(e,t){const l=e.getBoundingClientRect();return{x:l.left+t.scrollLeft-il(e,l),y:l.top+t.scrollTop}}const ol=new Set(["absolute","fixed"]);function nl(e,t,l){let i;if("viewport"===t)i=function(e,t){const l=Vt(e),i=Ht(e),a=l.visualViewport;let o=i.clientWidth,n=i.clientHeight,r=0,s=0;if(a){o=a.width,n=a.height;const e=Nt();(!e||e&&"fixed"===t)&&(r=a.offsetLeft,s=a.offsetTop)}const c=il(i);if(c<=0){const e=i.ownerDocument,t=e.body,l=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(l.marginLeft)+parseFloat(l.marginRight)||0,n=Math.abs(i.clientWidth-t.clientWidth-a);n<=25&&(o-=n)}else c<=25&&(o+=c);return{width:o,height:n,x:r,y:s}}(e,l);else if("document"===t)i=function(e){const t=Ht(e),l=qt(e),i=e.ownerDocument.body,a=Ge(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=Ge(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let n=-l.scrollLeft+il(e);const r=-l.scrollTop;return"rtl"===Wt(i).direction&&(n+=Ge(t.clientWidth,i.clientWidth)-a),{width:a,height:o,x:n,y:r}}(Ht(e));else if(St(t))i=function(e,t){const l=ll(e,!0,"fixed"===t),i=l.top+e.clientTop,a=l.left+e.clientLeft,o=Bt(e)?Qt(e):Qe(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:i*o.y}}(t,l);else{const l=tl(e);i={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return Zt(i)}function rl(e,t){const l=jt(e);return!(l===t||!St(l)||Ft(l))&&("fixed"===Wt(l).position||rl(l,t))}function sl(e,t,l){const i=Bt(t),a=Ht(t),o="fixed"===l,n=ll(e,!0,o,t);let r={scrollLeft:0,scrollTop:0};const s=Qe(0);function c(){s.x=il(a)}if(i||!i&&!o)if(("body"!==_t(t)||Lt(a))&&(r=qt(t)),i){const e=ll(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&c();o&&!i&&a&&c();const d=!a||i||o?Qe(0):al(a,r);return{x:n.left+r.scrollLeft-s.x-d.x,y:n.top+r.scrollTop-s.y-d.y,width:n.width,height:n.height}}function cl(e){return"static"===Wt(e).position}function dl(e,t){if(!Bt(e)||"fixed"===Wt(e).position)return null;if(t)return t(e);let l=e.offsetParent;return Ht(e)===l&&(l=l.ownerDocument.body),l}function hl(e,t){const l=Vt(e);if(Tt(e))return l;if(!Bt(e)){let t=jt(e);for(;t&&!Ft(t);){if(St(t)&&!cl(t))return t;t=jt(t)}return l}let i=dl(e,t);for(;i&&Pt(i)&&cl(i);)i=dl(i,t);return i&&Ft(i)&&cl(i)&&!Dt(i)?l:i||function(e){let t=jt(e);for(;Bt(t)&&!Ft(t);){if(Dt(t))return t;if(Tt(t))return null;t=jt(t)}return null}(e)||l}const vl={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:l,offsetParent:i,strategy:a}=e;const o="fixed"===a,n=Ht(i),r=!!t&&Tt(t.floating);if(i===n||r&&o)return l;let s={scrollLeft:0,scrollTop:0},c=Qe(1);const d=Qe(0),h=Bt(i);if((h||!h&&!o)&&(("body"!==_t(i)||Lt(n))&&(s=qt(i)),Bt(i))){const e=ll(i);c=Qt(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}const v=!n||h||o?Qe(0):al(n,s);return{width:l.width*c.x,height:l.height*c.y,x:l.x*c.x-s.scrollLeft*c.x+d.x+v.x,y:l.y*c.y-s.scrollTop*c.y+d.y+v.y}},getDocumentElement:Ht,getClippingRect:function(e){let{element:t,boundary:l,rootBoundary:i,strategy:a}=e;const o=[..."clippingAncestors"===l?Tt(t)?[]:function(e,t){const l=t.get(e);if(l)return l;let i=Jt(e,[],!1).filter(e=>St(e)&&"body"!==_t(e)),a=null;const o="fixed"===Wt(e).position;let n=o?jt(e):e;for(;St(n)&&!Ft(n);){const t=Wt(n),l=Dt(n);l||"fixed"!==t.position||(a=null),(o?!l&&!a:!l&&"static"===t.position&&a&&ol.has(a.position)||Lt(n)&&!l&&rl(e,n))?i=i.filter(e=>e!==n):a=t,n=jt(n)}return t.set(e,i),i}(t,this._c):[].concat(l),i],n=o[0],r=o.reduce((e,l)=>{const i=nl(t,l,a);return e.top=Ge(i.top,e.top),e.right=Je(i.right,e.right),e.bottom=Je(i.bottom,e.bottom),e.left=Ge(i.left,e.left),e},nl(t,n,a));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}},getOffsetParent:hl,getElementRects:async function(e){const t=this.getOffsetParent||hl,l=this.getDimensions,i=await l(e.floating);return{reference:sl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:l}=Yt(e);return{width:t,height:l}},getScale:Qt,isElement:St,isRTL:function(e){return"rtl"===Wt(e).direction}};function ul(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pl(e,t,l,i){void 0===i&&(i={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:n="function"==typeof ResizeObserver,layoutShift:r="function"==typeof IntersectionObserver,animationFrame:s=!1}=i,c=Xt(e),d=a||o?[...c?Jt(c):[],...Jt(t)]:[];d.forEach(e=>{a&&e.addEventListener("scroll",l,{passive:!0}),o&&e.addEventListener("resize",l)});const h=c&&r?function(e,t){let l,i=null;const a=Ht(e);function o(){var e;clearTimeout(l),null==(e=i)||e.disconnect(),i=null}return function n(r,s){void 0===r&&(r=!1),void 0===s&&(s=1),o();const c=e.getBoundingClientRect(),{left:d,top:h,width:v,height:u}=c;if(r||t(),!v||!u)return;const p={rootMargin:-Xe(h)+"px "+-Xe(a.clientWidth-(d+v))+"px "+-Xe(a.clientHeight-(h+u))+"px "+-Xe(d)+"px",threshold:Ge(0,Je(1,s))||1};let g=!0;function w(t){const i=t[0].intersectionRatio;if(i!==s){if(!g)return n();i?n(!1,i):l=setTimeout(()=>{n(!1,1e-7)},1e3)}1!==i||ul(c,e.getBoundingClientRect())||n(),g=!1}try{i=new IntersectionObserver(w,{...p,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(w,p)}i.observe(e)}(!0),o}(c,l):null;let v,u=-1,p=null;n&&(p=new ResizeObserver(e=>{let[i]=e;i&&i.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),l()}),c&&!s&&p.observe(c),p.observe(t));let g=s?ll(e):null;return s&&function t(){const i=ll(e);g&&!ul(g,i)&&l();g=i,v=requestAnimationFrame(t)}(),l(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener("scroll",l),o&&e.removeEventListener("resize",l)}),null==h||h(),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(v)}}const gl=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var l,i;const{x:a,y:o,placement:n,middlewareData:r}=t,s=await async function(e,t){const{placement:l,platform:i,elements:a}=e,o=await(null==i.isRTL?void 0:i.isRTL(a.floating)),n=at(l),r=ot(l),s="y"===ct(l),c=bt.has(n)?-1:1,d=o&&s?-1:1,h=it(t,e);let{mainAxis:v,crossAxis:u,alignmentAxis:p}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return r&&"number"==typeof p&&(u="end"===r?-1*p:p),s?{x:u*d,y:v*c}:{x:v*c,y:u*d}}(t,e);return n===(null==(l=r.offset)?void 0:l.placement)&&null!=(i=r.arrow)&&i.alignmentOffset?{}:{x:a+s.x,y:o+s.y,data:{...s,placement:n}}}}},wl=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:l,y:i,placement:a}=t,{mainAxis:o=!0,crossAxis:n=!1,limiter:r={fn:e=>{let{x:t,y:l}=e;return{x:t,y:l}}},...s}=it(e,t),c={x:l,y:i},d=await yt(t,s),h=ct(at(a)),v=nt(h);let u=c[v],p=c[h];if(o){const e="y"===v?"bottom":"right";u=lt(u+d["y"===v?"top":"left"],u,u-d[e])}if(n){const e="y"===h?"bottom":"right";p=lt(p+d["y"===h?"top":"left"],p,p-d[e])}const g=r.fn({...t,[v]:u,[h]:p});return{...g,data:{x:g.x-l,y:g.y-i,enabled:{[v]:o,[h]:n}}}}}},fl=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var l,i;const{placement:a,middlewareData:o,rects:n,initialPlacement:r,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...w}=it(e,t);if(null!=(l=o.arrow)&&l.alignmentOffset)return{};const f=at(a),m=ct(r),x=at(r)===r,Z=await(null==s.isRTL?void 0:s.isRTL(c.floating)),C=v||(x||!g?[mt(r)]:function(e){const t=mt(e);return[vt(e),t,vt(t)]}(r)),y="none"!==p;!v&&y&&C.push(...ft(r,g,p,Z));const b=[r,...C],M=await yt(t,w),_=[];let V=(null==(i=o.flip)?void 0:i.overflows)||[];if(d&&_.push(M[f]),h){const e=ht(a,n,Z);_.push(M[e[0]],M[e[1]])}if(V=[...V,{placement:a,overflows:_}],!_.every(e=>e<=0)){var H,$;const e=((null==(H=o.flip)?void 0:H.index)||0)+1,t=b[e];if(t){if(!("alignment"===h&&m!==ct(t))||V.every(e=>ct(e.placement)!==m||e.overflows[0]>0))return{data:{index:e,overflows:V},reset:{placement:t}}}let l=null==($=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:$.placement;if(!l)switch(u){case"bestFit":{var S;const e=null==(S=V.filter(e=>{if(y){const t=ct(e.placement);return t===m||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:S[0];e&&(l=e);break}case"initialPlacement":l=r}if(a!==l)return{reset:{placement:l}}}return{}}}},ml=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var l,i;const{placement:a,rects:o,platform:n,elements:r}=t,{apply:s=()=>{},...c}=it(e,t),d=await yt(t,c),h=at(a),v=ot(a),u="y"===ct(a),{width:p,height:g}=o.floating;let w,f;"top"===h||"bottom"===h?(w=h,f=v===(await(null==n.isRTL?void 0:n.isRTL(r.floating))?"start":"end")?"left":"right"):(f=h,w="end"===v?"top":"bottom");const m=g-d.top-d.bottom,x=p-d.left-d.right,Z=Je(g-d[w],m),C=Je(p-d[f],x),y=!t.middlewareData.shift;let b=Z,M=C;if(null!=(l=t.middlewareData.shift)&&l.enabled.x&&(M=x),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(b=m),y&&!v){const e=Ge(d.left,0),t=Ge(d.right,0),l=Ge(d.top,0),i=Ge(d.bottom,0);u?M=p-2*(0!==e||0!==t?e+t:Ge(d.left,d.right)):b=g-2*(0!==l||0!==i?l+i:Ge(d.top,d.bottom))}await s({...t,availableWidth:M,availableHeight:b});const _=await n.getDimensions(r.floating);return p!==_.width||g!==_.height?{reset:{rects:!0}}:{}}}},xl=(e,t,l)=>{const i=new Map,a={platform:vl,...l},o={...a.platform,_c:i};return(async(e,t,l)=>{const{placement:i="bottom",strategy:a="absolute",middleware:o=[],platform:n}=l,r=o.filter(Boolean),s=await(null==n.isRTL?void 0:n.isRTL(t));let c=await n.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:h}=Ct(c,i,s),v=i,u={},p=0;for(let l=0;l<r.length;l++){const{name:o,fn:g}=r[l],{x:w,y:f,data:m,reset:x}=await g({x:d,y:h,initialPlacement:i,placement:v,strategy:a,middlewareData:u,rects:c,platform:n,elements:{reference:e,floating:t}});d=null!=w?w:d,h=null!=f?f:h,u={...u,[o]:{...u[o],...m}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(v=x.placement),x.rects&&(c=!0===x.rects?await n.getElementRects({reference:e,floating:t,strategy:a}):x.rects),({x:d,y:h}=Ct(c,v,s))),l=-1)}return{x:d,y:h,placement:v,strategy:a,middlewareData:u}})(e,t,{...a,platform:o})};var Zl=r`:host([menuisopen]:not([disabled]):not([readonly])) .dropdown-menu{display:block}.dropdown-menu{background-clip:padding-box;background-color:var(--sgds-surface-default);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 4px 8px 0 hsla(0,0%,5%,.12);color:var(--sgds-color-default);display:none;list-style:none;margin:0;max-height:var(--sgds-dimension-480);min-width:var(--sgds-dimension-192);overflow-y:auto;padding:var(--sgds-padding-xs) 0;position:absolute;text-align:left;z-index:var(--sgds-z-index-floating)}.nav-tabs .dropdown-menu{border-top-left-radius:0;border-top-right-radius:0;margin-top:calc(var(--sgds-nav-tabs-border-width)*-1)}@media (min-width:512px){.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:768px){.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1024px){.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1280px){.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1440px){.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.sgds.navbar .dropdown-menu.megamenu{left:0;right:0;width:100%}.sgds.combobox>.dropdown-menu{min-width:100%}`,Cl=r`.invalid-feedback-container{display:flex;gap:var(--sgds-form-gap-sm)}.invalid-feedback,.invalid-feedback-container{color:var(--sgds-form-danger-color-default);line-height:var(--sgds-line-height-20)}.invalid-feedback{font-size:var(--sgds-font-size-14);font-weight:var(--sgds-font-weight-regular)}.valid-icon{color:var(--sgds-form-success-color-default)}`,yl=r`.form-text{color:var(--sgds-form-color-subtle);font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs)}.form-text.disabled{opacity:var(--sgds-opacity-40)}`,bl=r`.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.m-width-160{min-width:var(--sgds-dimension-160)}.m-width-256{min-width:var(--sgds-dimension-256)}.form-label{color:var(--sgds-form-color-default);font-size:var(--sgds-font-size-label-md)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--input-border-radius,var(--sgds-form-border-radius-md));display:flex;gap:var(--sgds-form-gap-md);height:var(--sgds-dimension-48);justify-content:center;overflow:hidden;padding:0 var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:block;flex-grow:1;font-size:var(--sgds-font-size-label-md);line-height:var(--sgds-line-height-xs);min-width:0;outline:none;padding:0;width:100%}.form-clearable{color:var(--sgds-color-subtle);cursor:pointer}@media (prefers-reduced-motion:reduce){.form-control-group{transition:none}}.form-control-group:not(.disabled):not(.is-invalid):not(.readonly):not(:focus-within):hover{outline:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);outline-offset:var(--sgds-form-outline-offset-focus)}.form-control-group:not(.disabled):not(.is-invalid):focus-within{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}.form-control-container.disabled{opacity:var(--sgds-opacity-40)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted);cursor:not-allowed}.form-control-group.readonly{background-color:var(--sgds-form-surface-raised)}.form-control-group.is-invalid:not(.disabled){border:var(--sgds-form-border-width-default) solid var(--sgds-form-danger-border-color-default)}.form-control-group:not(.disabled).is-invalid:focus-within{outline:var(--sgds-border-width-2) solid var(--sgds-form-danger-color-default);outline-offset:var(--sgds-form-outline-offset-focus)}`;function Ml(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}class _l{constructor(e,t){(this.host=e).addController(this),this._internals=e._internals||this.host.attachInternals(),this.options=Object.assign({setInvalid:(e,t)=>{e.invalid=t},value:e=>e.value,input:e=>e.input},t)}hostConnected(){this.host.addEventListener("invalid",e=>this.handleInvalid(e))}hostDisconnected(){this.host.removeEventListener("invalid",e=>this.handleInvalid(e))}handleInvalid(e){e.preventDefault(),this.options.setInvalid(this.host,!0)}handleInput(e){const t=e.target;this.options.setInvalid(this.host,!1),this.validateInput(t)}handleChange(e){const t=e.target;this.validateInput(t),this.options.setInvalid(this.host,!this.checkValidity())}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}updateInvalidState(){this.options.setInvalid(this.host,!this.checkValidity())}resetValidity(){return this._internals.setValidity({})}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}setValidity(e,t,l){return this._internals.setValidity(e,t,l)}setFormValue(){const e=this.options.value(this.host);this._internals.setFormValue(e)}validateInput(e){if(this.options.input(this.host).disabled)return this._internals.setValidity({});const t=e.validity;if(t.valid)this._internals.setValidity({});else for(const l in t)t[l]&&(this.validationError=l.toString(),this._internals.setValidity({[this.validationError]:!0},e.validationMessage,e))}}const Vl=e=>{class l extends e{constructor(...e){super(...e),this._isTouched=!1,this._internals=this.attachInternals()}connectedCallback(){var e;super.connectedCallback(),this._mixinShouldSkipSgdsValidation()||null!==(e=this.inputValidationController)&&void 0!==e||(this.inputValidationController=new _l(this))}async firstUpdated(e){super.firstUpdated(e),this.input=this.shadowRoot.querySelector("input")||await this.sgdsInput||this.shadowRoot.querySelector("textarea")||await this.sgdsDatepickerInput,this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this._mixinValidate(this.input)}formResetCallback(){this._mixinResetFormControl?this._mixinResetFormControl():(this.value=this.defaultValue,this._mixinResetValidity(this.input)),this._mixinSetFormValue()}_mixinHandleChange(e){this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.handleChange(e)}_mixinHandleInputChange(e){this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.handleInput(e)}_mixinResetValidity(e){this._mixinShouldSkipSgdsValidation()||(this.inputValidationController.resetValidity(),this.inputValidationController.updateInvalidState(),this.inputValidationController.validateInput(e),this._isTouched&&(this._isTouched=!1))}_mixinValidate(e){this._mixinShouldSkipSgdsValidation()||this.inputValidationController.validateInput(e)}_mixinSetFormValue(){const e=this.value;this._internals.setFormValue(e)}_mixinCheckValidity(){return!!this._mixinShouldSkipSgdsValidation()||this.inputValidationController.checkValidity()}_mixinReportValidity(){return!!this._mixinShouldSkipSgdsValidation()||this.inputValidationController.reportValidity()}_mixinGetValidity(){return this._internals.validity}_mixinGetValidationMessage(){return this._internals.validationMessage}_mixinSetValidity(e,t,l){if(!this._mixinShouldSkipSgdsValidation())return this.inputValidationController.setValidity(e,t,l)}_mixinShouldSkipSgdsValidation(){const e=this.closest("form");return(null==e?void 0:e.noValidate)||this.noValidate}}return l.formAssociated=!0,t([ke("sgds-input")],l.prototype,"sgdsInput",void 0),t([ke("sgds-datepicker-input")],l.prototype,"sgdsDatepickerInput",void 0),l};var Hl=r`:host{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;color:var(--sgds-body-color-default,#1a1a1a);display:block;font-family:var(--sgds-font-family-brand,"Inter",system-ui,sans-serif);font-size:var(--sgds-font-size-body-md,1rem);font-weight:var(--sgds-font-weight-regular,400);line-height:var(--sgds-line-height-xs,24px);margin:0;*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:disabled{cursor:not-allowed}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}::slotted(a[target=_blank]):after,a[target=_blank]:after{background-color:currentColor;content:"/";display:inline-block;height:1em;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;vertical-align:top;width:1em}::slotted(svg){vertical-align:middle}}`;class $l extends Ce{emit(e,t){const l=new CustomEvent(e,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(l),l}static define(e,t=this,l={}){if(customElements.get(e));else try{customElements.define(e,t,l)}catch(i){customElements.define(e,class extends t{},l)}}constructor(){super(),this.ssr=Boolean(this.shadowRoot),Object.entries(this.constructor.dependencies).forEach(([e,t])=>{this.constructor.define(e,t)})}firstUpdated(e){var t;super.firstUpdated(e),this.ssr&&(null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("slot").forEach(e=>{e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}))}}$l.styles=[Hl],$l.dependencies={},t([He({type:Boolean,reflect:!0})],$l.prototype,"ssr",void 0);class Sl extends $l{constructor(){super(...arguments),this.myDropdown=We(),this.dropdownMenuId=Ml("dropdown-menu","div"),this.noFlip=!1,this.menuAlignRight=!1,this.drop="down",this.floatingOpts={},this.menuIsOpen=!1,this.close="default",this.disabled=!1,this.readonly=!1,this.menuRef=We(),this._handleClickOutOfElement=e=>{this.menuIsOpen&&(e.composedPath().includes(this)||this.hideMenu(!0))}}connectedCallback(){super.connectedCallback(),"inside"!==this.close&&document.addEventListener("click",this._handleClickOutOfElement),this.addEventListener("keydown",this._handleKeyboardMenuEvent)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleClickOutOfElement),this.removeEventListener("keydown",this._handleKeyboardMenuEvent),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0)}firstUpdated(e){super.firstUpdated(e),this.menuIsOpen&&requestAnimationFrame(async()=>{await this.updateFloatingPosition(),this._startAutoUpdate()})}async showMenu(){this.disabled||this.menuIsOpen||(this.menuIsOpen=!0,this.emit("sgds-show"),await this.updateFloatingPosition(),this.emit("sgds-after-show"),this._startAutoUpdate())}_startAutoUpdate(){this.myDropdown.value&&this.menuRef.value&&(this._cleanupAutoUpdate=pl(this.myDropdown.value,this.menuRef.value,()=>this.updateFloatingPosition()))}hideMenu(e){this.menuIsOpen&&(this.emit("sgds-hide",{detail:{isOutside:e}}),this.menuIsOpen=!1,setTimeout(()=>this.emit("sgds-after-hide"),0),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0))}toggleMenu(){this.menuIsOpen?this.hideMenu():this.showMenu()}_handleKeyboardMenuEvent(e){if(!this.readonly)switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.menuIsOpen||this.showMenu();break;case"Escape":this.hideMenu()}}mergeMiddleware(e,t){const l=e=>{var t;return(null==e?void 0:e.name)||(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)},i=t.map(l),a=e.map(e=>{const a=l(e),o=i.indexOf(a);return-1!==o?t[o]:e}).concat(t.filter(t=>!e.some(e=>l(e)===l(t))));return a}async updateFloatingPosition(){if(!this.myDropdown.value||!this.menuRef.value)return;let e="bottom-start";switch(this.drop){case"up":e=this.menuAlignRight?"top-end":"top-start";break;case"right":e="right-start";break;case"left":e="left-start";break;case"down":e=this.menuAlignRight?"bottom-end":"bottom-start";break;default:e="bottom-start"}const t=[gl(8),this.noFlip?void 0:fl(),wl()].filter(Boolean);let l=t;Array.isArray(this.floatingOpts.middleware)&&this.floatingOpts.middleware.length>0&&(l=this.mergeMiddleware(t,this.floatingOpts.middleware.filter(Boolean)));const i=Object.assign(Object.assign({strategy:"fixed",placement:e},this.floatingOpts),{middleware:l}),{x:a,y:o,strategy:n,placement:r}=await xl(this.myDropdown.value,this.menuRef.value,i);this.menuRef.value.setAttribute("data-placement",r),Object.assign(this.menuRef.value.style,{position:n,left:`${a}px`,top:`${o}px`})}}t([He({type:Boolean,state:!0})],Sl.prototype,"noFlip",void 0),t([He({type:Boolean,reflect:!0,state:!0})],Sl.prototype,"menuAlignRight",void 0),t([He({type:String,reflect:!0,state:!0})],Sl.prototype,"drop",void 0),t([He({type:Object})],Sl.prototype,"floatingOpts",void 0),t([He({type:Boolean,reflect:!0})],Sl.prototype,"menuIsOpen",void 0),t([He({type:Boolean,reflect:!0})],Sl.prototype,"disabled",void 0),t([He({type:Boolean,reflect:!0})],Sl.prototype,"readonly",void 0);class Bl extends Sl{constructor(){super(...arguments),this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1,this.hidden=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",this._resetMenu)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sgds-hide",this._resetMenu)}firstUpdated(e){super.firstUpdated(e),this.addEventListener("keydown",this._handleKeyboardMenuItemsEvent)}handleSelectSlot(e){const t=this._getActiveMenuItems(),l=t.find(t=>e.composedPath().includes(t));if(!l)return;const i=t.indexOf(l);this.nextDropdownItemNo=i+1,this.prevDropdownItemNo=i<=0?t.length-1:i-1,l.disabled||(this.emit("sgds-select",{detail:{item:l}}),"outside"!==this.close&&this.hideMenu())}_resetMenu(){this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1;this._getMenuItems().forEach(e=>{var t;const l=null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.querySelector(".dropdown-item");l&&l.removeAttribute("tabindex")})}_handleKeyboardMenuItemsEvent(e){if(this.readonly)return;const t=this._getActiveMenuItems();if(0!==t.length)switch(e.key){case"ArrowDown":e.preventDefault(),this._setMenuItem(this.nextDropdownItemNo);break;case"ArrowUp":e.preventDefault(),this._setMenuItem(this.prevDropdownItemNo);break;case"Tab":if(!this.menuIsOpen)return;e.preventDefault(),e.shiftKey?this._setMenuItem(this.prevDropdownItemNo):this._setMenuItem(this.nextDropdownItemNo);break;case"Enter":t.find(t=>e.composedPath().includes(t))&&this.handleSelectSlot(e);break}}_getMenuItems(){var e,t;if(this.shadowRoot.querySelector("slot#default")){return null===(e=this.shadowRoot.querySelector("slot#default"))||void 0===e?void 0:e.assignedElements({flatten:!0}).filter(e=>!e.classList.contains("empty-menu")&&!e.hasAttribute("hidden"))}if(null===(t=this.menu)||void 0===t?void 0:t.hasChildNodes()){return[...Array.from(this.menu.children)]}return[]}_getActiveMenuItems(){return this._getMenuItems().filter(e=>!e.disabled&&!e.hidden)}_setMenuItem(e){const t=this._getActiveMenuItems();if(0===t.length)return;const l=(e%t.length+t.length)%t.length,i=t[l];this.emit("i-sgds-option-focus",{detail:{option:i}}),this.nextDropdownItemNo=(l+1)%t.length,this.prevDropdownItemNo=(l-1+t.length)%t.length,t.forEach(e=>{const t=e.shadowRoot.querySelector(".dropdown-item");t.setAttribute("tabindex",e===i?"0":"-1"),e===i&&t.focus()})}}var kl,Al;Bl.styles=Sl.styles,t([(kl="ul.dropdown-menu",(e,t,l)=>{const i=e=>{const l=e.renderRoot?.querySelector(kl)??null;if(null===l&&Al&&!e.hasUpdated){const e="object"==typeof t?t.name:t;Be("",`@query'd field ${JSON.stringify(String(e))} with the 'cache' flag set for selector '${kl}' has been accessed before the first update and returned null. This is expected if the renderRoot tree has not been provided beforehand (e.g. via Declarative Shadow DOM). Therefore the value hasn't been cached.`)}return l};if(Al){const{get:a,set:o}="object"==typeof t?e:l??(()=>{const e=Symbol(`${String(t)} (@query() cache)`);return{get(){return this[e]},set(t){this[e]=t}}})();return Se(e,t,{get(){let e=a.call(this);return void 0===e&&(e=i(this),(null!==e||this.hasUpdated)&&o.call(this,e)),e}})}return Se(e,t,{get(){return i(this)}})})],Bl.prototype,"menu",void 0),t([$e()],Bl.prototype,"nextDropdownItemNo",void 0),t([$e()],Bl.prototype,"prevDropdownItemNo",void 0),t([He({type:Boolean,reflect:!0})],Bl.prototype,"hidden",void 0);var Ll=r`.empty-menu,.loading-menu{padding:var(--sgds-padding-sm) var(--sgds-padding-lg,20px);pointer-events:none}.loading-menu{align-items:center;display:flex;gap:var(--sgds-gap-xs)}`;class El extends(Vl(Bl)){constructor(){super(),this.label="",this.hintText="",this.autofocus=!1,this.disabled=!1,this.required=!1,this.loading=!1,this.value="",this.displayValue="",this.defaultValue="",this.hasFeedback=!1,this.invalidFeedback="",this.invalid=!1,this.menuList=[],this.selectedItems=[],this.filteredList=[],this._isTouched=!1,this._controlId=Ml("input"),this._labelId=Ml("label"),this.floatingOpts={middleware:[ml({apply({rects:e,elements:t}){t.floating.style.width=`${e.reference.width}px`}})]}}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",async e=>{var t;const l=this.constructor.childName,i=(null===(t=e.relatedTarget)||void 0===t?void 0:t.tagName.toLowerCase())===l;this.invalid=!i&&!this._mixinReportValidity()})}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}_renderFeedback(){return this.invalid&&this.hasFeedback?ee` <div class="invalid-feedback-container">
83
+ */const We=()=>new qe;class qe{}const je=new WeakMap;const Ke=Ee(class extends Fe{render(e){return ie}update(e,[t]){const l=t!==this._ref;return l&&void 0!==this._ref&&this._updateRefValue(void 0),(l||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=e.options?.host,this._updateRefValue(this._element=e.element)),ie}_updateRefValue(e){if(this.isConnected||(e=void 0),"function"==typeof this._ref){const t=this._context??globalThis;let l=je.get(t);void 0===l&&(l=new WeakMap,je.set(t,l)),void 0!==l.get(this._ref)&&this._ref.call(this._context,void 0),l.set(this._ref,e),void 0!==e&&this._ref.call(this._context,e)}else this._ref.value=e}get _lastElementForRef(){return"function"==typeof this._ref?je.get(this._context??globalThis)?.get(this._ref):this._ref?.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}}),Je=Math.min,Ge=Math.max,Ye=Math.round,Xe=Math.floor,Qe=e=>({x:e,y:e}),et={left:"right",right:"left",bottom:"top",top:"bottom"},tt={start:"end",end:"start"};function lt(e,t,l){return Ge(e,Je(t,l))}function it(e,t){return"function"==typeof e?e(t):e}function at(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function nt(e){return"x"===e?"y":"x"}function rt(e){return"y"===e?"height":"width"}const st=new Set(["top","bottom"]);function ct(e){return st.has(at(e))?"y":"x"}function dt(e){return nt(ct(e))}function ht(e,t,l){void 0===l&&(l=!1);const i=ot(e),a=dt(e),o=rt(a);let n="x"===a?i===(l?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[o]>t.floating[o]&&(n=mt(n)),[n,mt(n)]}function vt(e){return e.replace(/start|end/g,e=>tt[e])}const ut=["left","right"],pt=["right","left"],gt=["top","bottom"],wt=["bottom","top"];function ft(e,t,l,i){const a=ot(e);let o=function(e,t,l){switch(e){case"top":case"bottom":return l?t?pt:ut:t?ut:pt;case"left":case"right":return t?gt:wt;default:return[]}}(at(e),"start"===l,i);return a&&(o=o.map(e=>e+"-"+a),t&&(o=o.concat(o.map(vt)))),o}function mt(e){return e.replace(/left|right|bottom|top/g,e=>et[e])}function xt(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Zt(e){const{x:t,y:l,width:i,height:a}=e;return{width:i,height:a,top:l,left:t,right:t+i,bottom:l+a,x:t,y:l}}function Ct(e,t,l){let{reference:i,floating:a}=e;const o=ct(t),n=dt(t),r=rt(n),s=at(t),c="y"===o,d=i.x+i.width/2-a.width/2,h=i.y+i.height/2-a.height/2,v=i[r]/2-a[r]/2;let u;switch(s){case"top":u={x:d,y:i.y-a.height};break;case"bottom":u={x:d,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:h};break;case"left":u={x:i.x-a.width,y:h};break;default:u={x:i.x,y:i.y}}switch(ot(t)){case"start":u[n]-=v*(l&&c?-1:1);break;case"end":u[n]+=v*(l&&c?-1:1)}return u}async function yt(e,t){var l;void 0===t&&(t={});const{x:i,y:a,platform:o,rects:n,elements:r,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:v=!1,padding:u=0}=it(t,e),p=xt(u),g=r[v?"floating"===h?"reference":"floating":h],w=Zt(await o.getClippingRect({element:null==(l=await(null==o.isElement?void 0:o.isElement(g)))||l?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(r.floating)),boundary:c,rootBoundary:d,strategy:s})),f="floating"===h?{x:i,y:a,width:n.floating.width,height:n.floating.height}:n.reference,m=await(null==o.getOffsetParent?void 0:o.getOffsetParent(r.floating)),x=await(null==o.isElement?void 0:o.isElement(m))&&await(null==o.getScale?void 0:o.getScale(m))||{x:1,y:1},Z=Zt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:f,offsetParent:m,strategy:s}):f);return{top:(w.top-Z.top+p.top)/x.y,bottom:(Z.bottom-w.bottom+p.bottom)/x.y,left:(w.left-Z.left+p.left)/x.x,right:(Z.right-w.right+p.right)/x.x}}const bt=new Set(["left","top"]);function Mt(){return"undefined"!=typeof window}function _t(e){return $t(e)?(e.nodeName||"").toLowerCase():"#document"}function Vt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ht(e){var t;return null==(t=($t(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $t(e){return!!Mt()&&(e instanceof Node||e instanceof Vt(e).Node)}function St(e){return!!Mt()&&(e instanceof Element||e instanceof Vt(e).Element)}function Bt(e){return!!Mt()&&(e instanceof HTMLElement||e instanceof Vt(e).HTMLElement)}function kt(e){return!(!Mt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Vt(e).ShadowRoot)}const At=new Set(["inline","contents"]);function Lt(e){const{overflow:t,overflowX:l,overflowY:i,display:a}=Wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+l)&&!At.has(a)}const Et=new Set(["table","td","th"]);function It(e){return Et.has(_t(e))}const Pt=[":popover-open",":modal"];function Tt(e){return Pt.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Rt=["transform","translate","scale","rotate","perspective"],Ot=["transform","translate","scale","rotate","perspective","filter"],zt=["paint","layout","strict","content"];function Dt(e){const t=Nt(),l=St(e)?Wt(e):e;return Rt.some(e=>!!l[e]&&"none"!==l[e])||!!l.containerType&&"normal"!==l.containerType||!t&&!!l.backdropFilter&&"none"!==l.backdropFilter||!t&&!!l.filter&&"none"!==l.filter||Ot.some(e=>(l.willChange||"").includes(e))||zt.some(e=>(l.contain||"").includes(e))}function Nt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Ut=new Set(["html","body","#document"]);function Ft(e){return Ut.has(_t(e))}function Wt(e){return Vt(e).getComputedStyle(e)}function qt(e){return St(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jt(e){if("html"===_t(e))return e;const t=e.assignedSlot||e.parentNode||kt(e)&&e.host||Ht(e);return kt(t)?t.host:t}function Kt(e){const t=jt(e);return Ft(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bt(t)&&Lt(t)?t:Kt(t)}function Jt(e,t,l){var i;void 0===t&&(t=[]),void 0===l&&(l=!0);const a=Kt(e),o=a===(null==(i=e.ownerDocument)?void 0:i.body),n=Vt(a);if(o){const e=Gt(n);return t.concat(n,n.visualViewport||[],Lt(a)?a:[],e&&l?Jt(e):[])}return t.concat(a,Jt(a,[],l))}function Gt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yt(e){const t=Wt(e);let l=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=Bt(e),o=a?e.offsetWidth:l,n=a?e.offsetHeight:i,r=Ye(l)!==o||Ye(i)!==n;return r&&(l=o,i=n),{width:l,height:i,$:r}}function Xt(e){return St(e)?e:e.contextElement}function Qt(e){const t=Xt(e);if(!Bt(t))return Qe(1);const l=t.getBoundingClientRect(),{width:i,height:a,$:o}=Yt(t);let n=(o?Ye(l.width):l.width)/i,r=(o?Ye(l.height):l.height)/a;return n&&Number.isFinite(n)||(n=1),r&&Number.isFinite(r)||(r=1),{x:n,y:r}}const el=Qe(0);function tl(e){const t=Vt(e);return Nt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function ll(e,t,l,i){void 0===t&&(t=!1),void 0===l&&(l=!1);const a=e.getBoundingClientRect(),o=Xt(e);let n=Qe(1);t&&(i?St(i)&&(n=Qt(i)):n=Qt(e));const r=function(e,t,l){return void 0===t&&(t=!1),!(!l||t&&l!==Vt(e))&&t}(o,l,i)?tl(o):Qe(0);let s=(a.left+r.x)/n.x,c=(a.top+r.y)/n.y,d=a.width/n.x,h=a.height/n.y;if(o){const e=Vt(o),t=i&&St(i)?Vt(i):i;let l=e,a=Gt(l);for(;a&&i&&t!==l;){const e=Qt(a),t=a.getBoundingClientRect(),i=Wt(a),o=t.left+(a.clientLeft+parseFloat(i.paddingLeft))*e.x,n=t.top+(a.clientTop+parseFloat(i.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,h*=e.y,s+=o,c+=n,l=Vt(a),a=Gt(l)}}return Zt({width:d,height:h,x:s,y:c})}function il(e,t){const l=qt(e).scrollLeft;return t?t.left+l:ll(Ht(e)).left+l}function al(e,t){const l=e.getBoundingClientRect();return{x:l.left+t.scrollLeft-il(e,l),y:l.top+t.scrollTop}}const ol=new Set(["absolute","fixed"]);function nl(e,t,l){let i;if("viewport"===t)i=function(e,t){const l=Vt(e),i=Ht(e),a=l.visualViewport;let o=i.clientWidth,n=i.clientHeight,r=0,s=0;if(a){o=a.width,n=a.height;const e=Nt();(!e||e&&"fixed"===t)&&(r=a.offsetLeft,s=a.offsetTop)}const c=il(i);if(c<=0){const e=i.ownerDocument,t=e.body,l=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(l.marginLeft)+parseFloat(l.marginRight)||0,n=Math.abs(i.clientWidth-t.clientWidth-a);n<=25&&(o-=n)}else c<=25&&(o+=c);return{width:o,height:n,x:r,y:s}}(e,l);else if("document"===t)i=function(e){const t=Ht(e),l=qt(e),i=e.ownerDocument.body,a=Ge(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=Ge(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let n=-l.scrollLeft+il(e);const r=-l.scrollTop;return"rtl"===Wt(i).direction&&(n+=Ge(t.clientWidth,i.clientWidth)-a),{width:a,height:o,x:n,y:r}}(Ht(e));else if(St(t))i=function(e,t){const l=ll(e,!0,"fixed"===t),i=l.top+e.clientTop,a=l.left+e.clientLeft,o=Bt(e)?Qt(e):Qe(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:i*o.y}}(t,l);else{const l=tl(e);i={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return Zt(i)}function rl(e,t){const l=jt(e);return!(l===t||!St(l)||Ft(l))&&("fixed"===Wt(l).position||rl(l,t))}function sl(e,t,l){const i=Bt(t),a=Ht(t),o="fixed"===l,n=ll(e,!0,o,t);let r={scrollLeft:0,scrollTop:0};const s=Qe(0);function c(){s.x=il(a)}if(i||!i&&!o)if(("body"!==_t(t)||Lt(a))&&(r=qt(t)),i){const e=ll(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&c();o&&!i&&a&&c();const d=!a||i||o?Qe(0):al(a,r);return{x:n.left+r.scrollLeft-s.x-d.x,y:n.top+r.scrollTop-s.y-d.y,width:n.width,height:n.height}}function cl(e){return"static"===Wt(e).position}function dl(e,t){if(!Bt(e)||"fixed"===Wt(e).position)return null;if(t)return t(e);let l=e.offsetParent;return Ht(e)===l&&(l=l.ownerDocument.body),l}function hl(e,t){const l=Vt(e);if(Tt(e))return l;if(!Bt(e)){let t=jt(e);for(;t&&!Ft(t);){if(St(t)&&!cl(t))return t;t=jt(t)}return l}let i=dl(e,t);for(;i&&It(i)&&cl(i);)i=dl(i,t);return i&&Ft(i)&&cl(i)&&!Dt(i)?l:i||function(e){let t=jt(e);for(;Bt(t)&&!Ft(t);){if(Dt(t))return t;if(Tt(t))return null;t=jt(t)}return null}(e)||l}const vl={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:l,offsetParent:i,strategy:a}=e;const o="fixed"===a,n=Ht(i),r=!!t&&Tt(t.floating);if(i===n||r&&o)return l;let s={scrollLeft:0,scrollTop:0},c=Qe(1);const d=Qe(0),h=Bt(i);if((h||!h&&!o)&&(("body"!==_t(i)||Lt(n))&&(s=qt(i)),Bt(i))){const e=ll(i);c=Qt(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}const v=!n||h||o?Qe(0):al(n,s);return{width:l.width*c.x,height:l.height*c.y,x:l.x*c.x-s.scrollLeft*c.x+d.x+v.x,y:l.y*c.y-s.scrollTop*c.y+d.y+v.y}},getDocumentElement:Ht,getClippingRect:function(e){let{element:t,boundary:l,rootBoundary:i,strategy:a}=e;const o=[..."clippingAncestors"===l?Tt(t)?[]:function(e,t){const l=t.get(e);if(l)return l;let i=Jt(e,[],!1).filter(e=>St(e)&&"body"!==_t(e)),a=null;const o="fixed"===Wt(e).position;let n=o?jt(e):e;for(;St(n)&&!Ft(n);){const t=Wt(n),l=Dt(n);l||"fixed"!==t.position||(a=null),(o?!l&&!a:!l&&"static"===t.position&&a&&ol.has(a.position)||Lt(n)&&!l&&rl(e,n))?i=i.filter(e=>e!==n):a=t,n=jt(n)}return t.set(e,i),i}(t,this._c):[].concat(l),i],n=o[0],r=o.reduce((e,l)=>{const i=nl(t,l,a);return e.top=Ge(i.top,e.top),e.right=Je(i.right,e.right),e.bottom=Je(i.bottom,e.bottom),e.left=Ge(i.left,e.left),e},nl(t,n,a));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}},getOffsetParent:hl,getElementRects:async function(e){const t=this.getOffsetParent||hl,l=this.getDimensions,i=await l(e.floating);return{reference:sl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:l}=Yt(e);return{width:t,height:l}},getScale:Qt,isElement:St,isRTL:function(e){return"rtl"===Wt(e).direction}};function ul(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function pl(e,t,l,i){void 0===i&&(i={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:n="function"==typeof ResizeObserver,layoutShift:r="function"==typeof IntersectionObserver,animationFrame:s=!1}=i,c=Xt(e),d=a||o?[...c?Jt(c):[],...Jt(t)]:[];d.forEach(e=>{a&&e.addEventListener("scroll",l,{passive:!0}),o&&e.addEventListener("resize",l)});const h=c&&r?function(e,t){let l,i=null;const a=Ht(e);function o(){var e;clearTimeout(l),null==(e=i)||e.disconnect(),i=null}return function n(r,s){void 0===r&&(r=!1),void 0===s&&(s=1),o();const c=e.getBoundingClientRect(),{left:d,top:h,width:v,height:u}=c;if(r||t(),!v||!u)return;const p={rootMargin:-Xe(h)+"px "+-Xe(a.clientWidth-(d+v))+"px "+-Xe(a.clientHeight-(h+u))+"px "+-Xe(d)+"px",threshold:Ge(0,Je(1,s))||1};let g=!0;function w(t){const i=t[0].intersectionRatio;if(i!==s){if(!g)return n();i?n(!1,i):l=setTimeout(()=>{n(!1,1e-7)},1e3)}1!==i||ul(c,e.getBoundingClientRect())||n(),g=!1}try{i=new IntersectionObserver(w,{...p,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(w,p)}i.observe(e)}(!0),o}(c,l):null;let v,u=-1,p=null;n&&(p=new ResizeObserver(e=>{let[i]=e;i&&i.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),l()}),c&&!s&&p.observe(c),p.observe(t));let g=s?ll(e):null;return s&&function t(){const i=ll(e);g&&!ul(g,i)&&l();g=i,v=requestAnimationFrame(t)}(),l(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener("scroll",l),o&&e.removeEventListener("resize",l)}),null==h||h(),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(v)}}const gl=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var l,i;const{x:a,y:o,placement:n,middlewareData:r}=t,s=await async function(e,t){const{placement:l,platform:i,elements:a}=e,o=await(null==i.isRTL?void 0:i.isRTL(a.floating)),n=at(l),r=ot(l),s="y"===ct(l),c=bt.has(n)?-1:1,d=o&&s?-1:1,h=it(t,e);let{mainAxis:v,crossAxis:u,alignmentAxis:p}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return r&&"number"==typeof p&&(u="end"===r?-1*p:p),s?{x:u*d,y:v*c}:{x:v*c,y:u*d}}(t,e);return n===(null==(l=r.offset)?void 0:l.placement)&&null!=(i=r.arrow)&&i.alignmentOffset?{}:{x:a+s.x,y:o+s.y,data:{...s,placement:n}}}}},wl=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:l,y:i,placement:a}=t,{mainAxis:o=!0,crossAxis:n=!1,limiter:r={fn:e=>{let{x:t,y:l}=e;return{x:t,y:l}}},...s}=it(e,t),c={x:l,y:i},d=await yt(t,s),h=ct(at(a)),v=nt(h);let u=c[v],p=c[h];if(o){const e="y"===v?"bottom":"right";u=lt(u+d["y"===v?"top":"left"],u,u-d[e])}if(n){const e="y"===h?"bottom":"right";p=lt(p+d["y"===h?"top":"left"],p,p-d[e])}const g=r.fn({...t,[v]:u,[h]:p});return{...g,data:{x:g.x-l,y:g.y-i,enabled:{[v]:o,[h]:n}}}}}},fl=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var l,i;const{placement:a,middlewareData:o,rects:n,initialPlacement:r,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...w}=it(e,t);if(null!=(l=o.arrow)&&l.alignmentOffset)return{};const f=at(a),m=ct(r),x=at(r)===r,Z=await(null==s.isRTL?void 0:s.isRTL(c.floating)),C=v||(x||!g?[mt(r)]:function(e){const t=mt(e);return[vt(e),t,vt(t)]}(r)),y="none"!==p;!v&&y&&C.push(...ft(r,g,p,Z));const b=[r,...C],M=await yt(t,w),_=[];let V=(null==(i=o.flip)?void 0:i.overflows)||[];if(d&&_.push(M[f]),h){const e=ht(a,n,Z);_.push(M[e[0]],M[e[1]])}if(V=[...V,{placement:a,overflows:_}],!_.every(e=>e<=0)){var H,$;const e=((null==(H=o.flip)?void 0:H.index)||0)+1,t=b[e];if(t){if(!("alignment"===h&&m!==ct(t))||V.every(e=>ct(e.placement)!==m||e.overflows[0]>0))return{data:{index:e,overflows:V},reset:{placement:t}}}let l=null==($=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:$.placement;if(!l)switch(u){case"bestFit":{var S;const e=null==(S=V.filter(e=>{if(y){const t=ct(e.placement);return t===m||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:S[0];e&&(l=e);break}case"initialPlacement":l=r}if(a!==l)return{reset:{placement:l}}}return{}}}},ml=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var l,i;const{placement:a,rects:o,platform:n,elements:r}=t,{apply:s=()=>{},...c}=it(e,t),d=await yt(t,c),h=at(a),v=ot(a),u="y"===ct(a),{width:p,height:g}=o.floating;let w,f;"top"===h||"bottom"===h?(w=h,f=v===(await(null==n.isRTL?void 0:n.isRTL(r.floating))?"start":"end")?"left":"right"):(f=h,w="end"===v?"top":"bottom");const m=g-d.top-d.bottom,x=p-d.left-d.right,Z=Je(g-d[w],m),C=Je(p-d[f],x),y=!t.middlewareData.shift;let b=Z,M=C;if(null!=(l=t.middlewareData.shift)&&l.enabled.x&&(M=x),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(b=m),y&&!v){const e=Ge(d.left,0),t=Ge(d.right,0),l=Ge(d.top,0),i=Ge(d.bottom,0);u?M=p-2*(0!==e||0!==t?e+t:Ge(d.left,d.right)):b=g-2*(0!==l||0!==i?l+i:Ge(d.top,d.bottom))}await s({...t,availableWidth:M,availableHeight:b});const _=await n.getDimensions(r.floating);return p!==_.width||g!==_.height?{reset:{rects:!0}}:{}}}},xl=(e,t,l)=>{const i=new Map,a={platform:vl,...l},o={...a.platform,_c:i};return(async(e,t,l)=>{const{placement:i="bottom",strategy:a="absolute",middleware:o=[],platform:n}=l,r=o.filter(Boolean),s=await(null==n.isRTL?void 0:n.isRTL(t));let c=await n.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:h}=Ct(c,i,s),v=i,u={},p=0;for(let l=0;l<r.length;l++){const{name:o,fn:g}=r[l],{x:w,y:f,data:m,reset:x}=await g({x:d,y:h,initialPlacement:i,placement:v,strategy:a,middlewareData:u,rects:c,platform:n,elements:{reference:e,floating:t}});d=null!=w?w:d,h=null!=f?f:h,u={...u,[o]:{...u[o],...m}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(v=x.placement),x.rects&&(c=!0===x.rects?await n.getElementRects({reference:e,floating:t,strategy:a}):x.rects),({x:d,y:h}=Ct(c,v,s))),l=-1)}return{x:d,y:h,placement:v,strategy:a,middlewareData:u}})(e,t,{...a,platform:o})};var Zl=r`:host([menuisopen]:not([disabled]):not([readonly])) .dropdown-menu{display:block}.dropdown-menu{background-clip:padding-box;background-color:var(--sgds-surface-default);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 4px 8px 0 hsla(0,0%,5%,.12);color:var(--sgds-color-default);display:none;list-style:none;margin:0;max-height:var(--sgds-dimension-480);min-width:var(--sgds-dimension-192);overflow-y:auto;padding:var(--sgds-padding-xs) 0;position:absolute;text-align:left;z-index:var(--sgds-z-index-floating)}.nav-tabs .dropdown-menu{border-top-left-radius:0;border-top-right-radius:0;margin-top:calc(var(--sgds-nav-tabs-border-width)*-1)}@media (min-width:512px){.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:768px){.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1024px){.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1280px){.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1440px){.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.sgds.navbar .dropdown-menu.megamenu{left:0;right:0;width:100%}.sgds.combobox>.dropdown-menu{min-width:100%}`,Cl=r`.invalid-feedback-container{display:flex;gap:var(--sgds-form-gap-sm)}.invalid-feedback,.invalid-feedback-container{color:var(--sgds-form-danger-color-default);line-height:var(--sgds-line-height-20)}.invalid-feedback{font-size:var(--sgds-font-size-14);font-weight:var(--sgds-font-weight-regular)}.valid-icon{color:var(--sgds-form-success-color-default)}`,yl=r`.form-text{color:var(--sgds-form-color-subtle);font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs)}.form-text.disabled{opacity:var(--sgds-opacity-40)}`,bl=r`.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.m-width-160{min-width:var(--sgds-dimension-160)}.m-width-256{min-width:var(--sgds-dimension-256)}.form-label{color:var(--sgds-form-color-default);font-size:var(--sgds-font-size-label-md)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--input-border-radius,var(--sgds-form-border-radius-md));display:flex;gap:var(--sgds-form-gap-md);height:var(--sgds-dimension-48);justify-content:center;overflow:hidden;padding:0 var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:block;flex-grow:1;font-size:var(--sgds-font-size-label-md);line-height:var(--sgds-line-height-xs);min-width:0;outline:none;padding:0;width:100%}.form-clearable{color:var(--sgds-color-subtle);cursor:pointer}@media (prefers-reduced-motion:reduce){.form-control-group{transition:none}}.form-control-group:not(.disabled):not(.is-invalid):not(.readonly):not(:focus-within):hover{outline:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);outline-offset:var(--sgds-form-outline-offset-focus)}.form-control-group:not(.disabled):not(.is-invalid):focus-within{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}.form-control-container.disabled{opacity:var(--sgds-opacity-40)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted);cursor:not-allowed}.form-control-group.readonly{background-color:var(--sgds-form-surface-raised)}.form-control-group.is-invalid:not(.disabled){border:var(--sgds-form-border-width-default) solid var(--sgds-form-danger-border-color-default)}.form-control-group:not(.disabled).is-invalid:focus-within{outline:var(--sgds-border-width-2) solid var(--sgds-form-danger-color-default);outline-offset:var(--sgds-form-outline-offset-focus)}`;function Ml(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}class _l{constructor(e,t){(this.host=e).addController(this),this._internals=e._internals||this.host.attachInternals(),this.options=Object.assign({setInvalid:(e,t)=>{e.invalid=t},value:e=>e.value,input:e=>e.input},t)}hostConnected(){this.host.addEventListener("invalid",e=>this.handleInvalid(e))}hostDisconnected(){this.host.removeEventListener("invalid",e=>this.handleInvalid(e))}handleInvalid(e){e.preventDefault(),this.options.setInvalid(this.host,!0)}handleInput(e){const t=e.target;this.options.setInvalid(this.host,!1),this.validateInput(t)}handleChange(e){const t=e.target;this.validateInput(t),this.options.setInvalid(this.host,!this.checkValidity())}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}updateInvalidState(){this.options.setInvalid(this.host,!this.checkValidity())}resetValidity(){return this._internals.setValidity({})}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}setValidity(e,t,l){return this._internals.setValidity(e,t,l)}setFormValue(){const e=this.options.value(this.host);this._internals.setFormValue(e)}validateInput(e){if(this.options.input(this.host).disabled)return this._internals.setValidity({});const t=e.validity;if(t.valid)this._internals.setValidity({});else for(const l in t)t[l]&&(this.validationError=l.toString(),this._internals.setValidity({[this.validationError]:!0},e.validationMessage,e))}}const Vl=e=>{class l extends e{constructor(...e){super(...e),this._isTouched=!1,this._internals=this.attachInternals()}connectedCallback(){var e;super.connectedCallback(),this._mixinShouldSkipSgdsValidation()||null!==(e=this.inputValidationController)&&void 0!==e||(this.inputValidationController=new _l(this))}async firstUpdated(e){super.firstUpdated(e),this.input=this.shadowRoot.querySelector("input")||await this.sgdsInput||this.shadowRoot.querySelector("textarea")||await this.sgdsDatepickerInput,this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this._mixinValidate(this.input)}formResetCallback(){this._mixinResetFormControl?this._mixinResetFormControl():(this.value=this.defaultValue,this._mixinResetValidity(this.input)),this._mixinSetFormValue()}_mixinHandleChange(e){this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.handleChange(e)}_mixinHandleInputChange(e){this._mixinSetFormValue(),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.handleInput(e)}_mixinResetValidity(e){this._mixinShouldSkipSgdsValidation()||(this.inputValidationController.resetValidity(),this.inputValidationController.updateInvalidState(),this.inputValidationController.validateInput(e),this._isTouched&&(this._isTouched=!1))}_mixinValidate(e){this._mixinShouldSkipSgdsValidation()||this.inputValidationController.validateInput(e)}_mixinSetFormValue(){const e=this.value;this._internals.setFormValue(e)}_mixinCheckValidity(){return!!this._mixinShouldSkipSgdsValidation()||this.inputValidationController.checkValidity()}_mixinReportValidity(){return!!this._mixinShouldSkipSgdsValidation()||this.inputValidationController.reportValidity()}_mixinGetValidity(){return this._internals.validity}_mixinGetValidationMessage(){return this._internals.validationMessage}_mixinSetValidity(e,t,l){if(!this._mixinShouldSkipSgdsValidation())return this.inputValidationController.setValidity(e,t,l)}_mixinShouldSkipSgdsValidation(){const e=this.closest("form");return(null==e?void 0:e.noValidate)||this.noValidate}}return l.formAssociated=!0,t([ke("sgds-input")],l.prototype,"sgdsInput",void 0),t([ke("sgds-datepicker-input")],l.prototype,"sgdsDatepickerInput",void 0),l};var Hl=r`:host{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;color:var(--sgds-body-color-default,#1a1a1a);display:block;font-family:var(--sgds-font-family-brand,"Inter",system-ui,sans-serif);font-size:var(--sgds-font-size-body-md,1rem);font-weight:var(--sgds-font-weight-regular,400);line-height:var(--sgds-line-height-xs,24px);margin:0;*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:disabled{cursor:not-allowed}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}::slotted(a[target=_blank]):after,a[target=_blank]:after{background-color:currentColor;content:"/";display:inline-block;height:1em;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;vertical-align:top;width:1em}::slotted(svg){vertical-align:middle}}`;class $l extends Ce{emit(e,t){const l=new CustomEvent(e,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(l),l}static define(e,t=this,l={}){if(customElements.get(e));else try{customElements.define(e,t,l)}catch(i){customElements.define(e,class extends t{},l)}}constructor(){super(),this.ssr=Boolean(this.shadowRoot),Object.entries(this.constructor.dependencies).forEach(([e,t])=>{this.constructor.define(e,t)})}firstUpdated(e){var t;super.firstUpdated(e),this.ssr&&(null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("slot").forEach(e=>{e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}))}}$l.styles=[Hl],$l.dependencies={},t([He({type:Boolean,reflect:!0})],$l.prototype,"ssr",void 0);class Sl extends $l{constructor(){super(...arguments),this.myDropdown=We(),this.dropdownMenuId=Ml("dropdown-menu","div"),this.noFlip=!1,this.menuAlignRight=!1,this.drop="down",this.floatingOpts={},this.menuIsOpen=!1,this.close="default",this.disabled=!1,this.readonly=!1,this.menuRef=We(),this._handleClickOutOfElement=e=>{this.menuIsOpen&&(e.composedPath().includes(this)||this.hideMenu(!0))}}connectedCallback(){super.connectedCallback(),"inside"!==this.close&&document.addEventListener("click",this._handleClickOutOfElement),this.addEventListener("keydown",this._handleKeyboardMenuEvent)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleClickOutOfElement),this.removeEventListener("keydown",this._handleKeyboardMenuEvent),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0)}firstUpdated(e){super.firstUpdated(e),this.menuIsOpen&&requestAnimationFrame(async()=>{await this.updateFloatingPosition(),this._startAutoUpdate()})}async showMenu(){this.disabled||this.menuIsOpen||(this.menuIsOpen=!0,this.emit("sgds-show"),await this.updateFloatingPosition(),this.emit("sgds-after-show"),this._startAutoUpdate())}_startAutoUpdate(){this.myDropdown.value&&this.menuRef.value&&(this._cleanupAutoUpdate=pl(this.myDropdown.value,this.menuRef.value,()=>this.updateFloatingPosition()))}hideMenu(e){this.menuIsOpen&&(this.emit("sgds-hide",{detail:{isOutside:e}}),this.menuIsOpen=!1,setTimeout(()=>this.emit("sgds-after-hide"),0),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0))}toggleMenu(){this.menuIsOpen?this.hideMenu():this.showMenu()}_handleKeyboardMenuEvent(e){if(!this.readonly)switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.menuIsOpen||this.showMenu();break;case"Escape":this.hideMenu()}}mergeMiddleware(e,t){const l=e=>{var t;return(null==e?void 0:e.name)||(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)},i=t.map(l),a=e.map(e=>{const a=l(e),o=i.indexOf(a);return-1!==o?t[o]:e}).concat(t.filter(t=>!e.some(e=>l(e)===l(t))));return a}async updateFloatingPosition(){if(!this.myDropdown.value||!this.menuRef.value)return;let e="bottom-start";switch(this.drop){case"up":e=this.menuAlignRight?"top-end":"top-start";break;case"right":e="right-start";break;case"left":e="left-start";break;case"down":e=this.menuAlignRight?"bottom-end":"bottom-start";break;default:e="bottom-start"}const t=[gl(8),this.noFlip?void 0:fl(),wl()].filter(Boolean);let l=t;Array.isArray(this.floatingOpts.middleware)&&this.floatingOpts.middleware.length>0&&(l=this.mergeMiddleware(t,this.floatingOpts.middleware.filter(Boolean)));const i=Object.assign(Object.assign({strategy:"fixed",placement:e},this.floatingOpts),{middleware:l}),{x:a,y:o,strategy:n,placement:r}=await xl(this.myDropdown.value,this.menuRef.value,i);this.menuRef.value.setAttribute("data-placement",r),Object.assign(this.menuRef.value.style,{position:n,left:`${a}px`,top:`${o}px`})}}t([He({type:Boolean,state:!0})],Sl.prototype,"noFlip",void 0),t([He({type:Boolean,reflect:!0,state:!0})],Sl.prototype,"menuAlignRight",void 0),t([He({type:String,reflect:!0,state:!0})],Sl.prototype,"drop",void 0),t([He({type:Object})],Sl.prototype,"floatingOpts",void 0),t([He({type:Boolean,reflect:!0})],Sl.prototype,"menuIsOpen",void 0),t([He({type:Boolean,reflect:!0})],Sl.prototype,"disabled",void 0),t([He({type:Boolean,reflect:!0})],Sl.prototype,"readonly",void 0);class Bl extends Sl{constructor(){super(...arguments),this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1,this.hidden=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",this._resetMenu)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sgds-hide",this._resetMenu)}firstUpdated(e){super.firstUpdated(e),this.addEventListener("keydown",this._handleKeyboardMenuItemsEvent)}handleSelectSlot(e){const t=this._getActiveMenuItems(),l=t.find(t=>e.composedPath().includes(t));if(!l)return;const i=t.indexOf(l);this.nextDropdownItemNo=i+1,this.prevDropdownItemNo=i<=0?t.length-1:i-1,l.disabled||(this.emit("sgds-select",{detail:{item:l}}),"outside"!==this.close&&this.hideMenu())}_resetMenu(){this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1;this._getMenuItems().forEach(e=>{var t;const l=null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.querySelector(".dropdown-item");l&&l.removeAttribute("tabindex")})}_handleKeyboardMenuItemsEvent(e){if(this.readonly)return;const t=this._getActiveMenuItems();if(0!==t.length)switch(e.key){case"ArrowDown":e.preventDefault(),this._setMenuItem(this.nextDropdownItemNo);break;case"ArrowUp":e.preventDefault(),this._setMenuItem(this.prevDropdownItemNo);break;case"Tab":if(!this.menuIsOpen)return;e.preventDefault(),e.shiftKey?this._setMenuItem(this.prevDropdownItemNo):this._setMenuItem(this.nextDropdownItemNo);break;case"Enter":t.find(t=>e.composedPath().includes(t))&&this.handleSelectSlot(e);break}}_getMenuItems(){var e,t;if(this.shadowRoot.querySelector("slot#default")){return null===(e=this.shadowRoot.querySelector("slot#default"))||void 0===e?void 0:e.assignedElements({flatten:!0}).filter(e=>!e.classList.contains("empty-menu")&&!e.hasAttribute("hidden"))}if(null===(t=this.menu)||void 0===t?void 0:t.hasChildNodes()){return[...Array.from(this.menu.children)]}return[]}_getActiveMenuItems(){return this._getMenuItems().filter(e=>!e.disabled&&!e.hidden)}_setMenuItem(e){const t=this._getActiveMenuItems();if(0===t.length)return;const l=(e%t.length+t.length)%t.length,i=t[l];this.emit("i-sgds-option-focus",{detail:{option:i}}),this.nextDropdownItemNo=(l+1)%t.length,this.prevDropdownItemNo=(l-1+t.length)%t.length,t.forEach(e=>{const t=e.shadowRoot.querySelector(".dropdown-item");t.setAttribute("tabindex",e===i?"0":"-1"),e===i&&t.focus()})}}var kl,Al;Bl.styles=Sl.styles,t([(kl="ul.dropdown-menu",(e,t,l)=>{const i=e=>{const l=e.renderRoot?.querySelector(kl)??null;if(null===l&&Al&&!e.hasUpdated){const e="object"==typeof t?t.name:t;Be("",`@query'd field ${JSON.stringify(String(e))} with the 'cache' flag set for selector '${kl}' has been accessed before the first update and returned null. This is expected if the renderRoot tree has not been provided beforehand (e.g. via Declarative Shadow DOM). Therefore the value hasn't been cached.`)}return l};if(Al){const{get:a,set:o}="object"==typeof t?e:l??(()=>{const e=Symbol(`${String(t)} (@query() cache)`);return{get(){return this[e]},set(t){this[e]=t}}})();return Se(e,t,{get(){let e=a.call(this);return void 0===e&&(e=i(this),(null!==e||this.hasUpdated)&&o.call(this,e)),e}})}return Se(e,t,{get(){return i(this)}})})],Bl.prototype,"menu",void 0),t([$e()],Bl.prototype,"nextDropdownItemNo",void 0),t([$e()],Bl.prototype,"prevDropdownItemNo",void 0),t([He({type:Boolean,reflect:!0})],Bl.prototype,"hidden",void 0);var Ll=r`.empty-menu,.loading-menu{padding:var(--sgds-padding-sm) var(--sgds-padding-lg,20px);pointer-events:none}.loading-menu{align-items:center;display:flex;gap:var(--sgds-gap-xs)}`;class El extends(Vl(Bl)){setInvalid(e){this.invalid=e,e?this.emit("sgds-invalid"):this.emit("sgds-valid")}constructor(){super(),this.label="",this.hintText="",this.autofocus=!1,this.disabled=!1,this.required=!1,this.loading=!1,this.value="",this.displayValue="",this.defaultValue="",this.hasFeedback=!1,this.invalidFeedback="",this.invalid=!1,this.menuList=[],this.selectedItems=[],this.filteredList=[],this._isTouched=!1,this._controlId=Ml("input"),this._labelId=Ml("label"),this.floatingOpts={middleware:[ml({apply({rects:e,elements:t}){t.floating.style.width=`${e.reference.width}px`}})]}}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",async e=>{var t;if(this._mixinShouldSkipSgdsValidation())return;const l=this.constructor.childName,i=(null===(t=e.relatedTarget)||void 0===t?void 0:t.tagName.toLowerCase())===l;this.invalid=!i&&!this._mixinReportValidity()})}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}_renderFeedback(){return this.invalid&&this.hasFeedback?ee` <div class="invalid-feedback-container">
84
84
  <slot name="invalidIcon">
85
85
  <sgds-icon name="exclamation-circle-fill" size="md"></sgds-icon>
86
86
  </slot>
@@ -91,17 +91,17 @@ window.ShadyDOM?.inUse&&!0===window.ShadyDOM?.noPatch&&window.ShadyDOM.wrap;cons
91
91
  <label
92
92
  for=${this._controlId}
93
93
  id=${this._labelId}
94
- class=${Ie({"form-label":!0,required:this.required})}
94
+ class=${Pe({"form-label":!0,required:this.required})}
95
95
  >${this.label}</label
96
96
  >
97
- `;return this.label&&e}_handleClick(){if(this.readonly)return null;this.menuIsOpen?this.hideMenu():this.showMenu()}async _getMenuListFromOptions(e){const t=e.map(async e=>(await e.updateComplete,e)),l=await Promise.all(t);return null==l?void 0:l.map(e=>{var t;return{label:e.innerText,value:e.getAttribute("value"),disabled:null!==(t=e.disabled)&&void 0!==t?t:void 0}})}_renderEmptyMenu(){return ee` <div class="empty-menu">No options</div> `}_renderLoadingMenu(){return ee`<div class="loading-menu"><sgds-spinner size="xs" tone="brand"></sgds-spinner>Loading...</div>`}}El.styles=[...Bl.styles,Zl,yl,Cl,bl,Ll],t([He({reflect:!0})],El.prototype,"label",void 0),t([He({reflect:!0})],El.prototype,"hintText",void 0),t([He({reflect:!0})],El.prototype,"name",void 0),t([He({type:String,reflect:!0})],El.prototype,"placeholder",void 0),t([He({type:Boolean,reflect:!0})],El.prototype,"autofocus",void 0),t([He({type:Boolean,reflect:!0})],El.prototype,"disabled",void 0),t([He({type:Boolean,reflect:!0})],El.prototype,"required",void 0),t([He({type:Boolean,reflect:!0})],El.prototype,"loading",void 0),t([He({type:String,reflect:!0})],El.prototype,"value",void 0),t([$e()],El.prototype,"displayValue",void 0),t([((e="value")=>(t,l)=>{const i=t.constructor,a=i.prototype.attributeChangedCallback;i.prototype.attributeChangedCallback=function(t,o,n){var r;const s=i.getPropertyOptions(e);if(t===("string"==typeof s.attribute?s.attribute:e).toLowerCase()){const t=s.converter||y,i=("function"==typeof t?t:null!==(r=null==t?void 0:t.fromAttribute)&&void 0!==r?r:y.fromAttribute)(n,s.type);this[e]!==i&&(this[l]=i)}a.call(this,t,o,n)}})()],El.prototype,"defaultValue",void 0),t([He({type:Boolean,reflect:!0})],El.prototype,"hasFeedback",void 0),t([He({type:String,reflect:!0})],El.prototype,"invalidFeedback",void 0),t([He({type:Boolean,reflect:!0})],El.prototype,"invalid",void 0),t([He({type:Array})],El.prototype,"menuList",void 0),t([$e()],El.prototype,"selectedItems",void 0),t([$e()],El.prototype,"filteredList",void 0),t([ke("input.form-control")],El.prototype,"_input",void 0);var Pl=ee`
97
+ `;return this.label&&e}_handleClick(){if(this.readonly)return null;this.menuIsOpen?this.hideMenu():this.showMenu()}async _getMenuListFromOptions(e){const t=e.map(async e=>(await e.updateComplete,e)),l=await Promise.all(t);return null==l?void 0:l.map(e=>{var t;return{label:e.innerText,value:e.getAttribute("value"),disabled:null!==(t=e.disabled)&&void 0!==t?t:void 0}})}_renderEmptyMenu(){return ee` <div class="empty-menu">No options</div> `}_renderLoadingMenu(){return ee`<div class="loading-menu"><sgds-spinner size="xs" tone="brand"></sgds-spinner>Loading...</div>`}}El.styles=[...Bl.styles,Zl,yl,Cl,bl,Ll],t([He({reflect:!0})],El.prototype,"label",void 0),t([He({reflect:!0})],El.prototype,"hintText",void 0),t([He({reflect:!0})],El.prototype,"name",void 0),t([He({type:String,reflect:!0})],El.prototype,"placeholder",void 0),t([He({type:Boolean,reflect:!0})],El.prototype,"autofocus",void 0),t([He({type:Boolean,reflect:!0})],El.prototype,"disabled",void 0),t([He({type:Boolean,reflect:!0})],El.prototype,"required",void 0),t([He({type:Boolean,reflect:!0})],El.prototype,"loading",void 0),t([He({type:String,reflect:!0})],El.prototype,"value",void 0),t([$e()],El.prototype,"displayValue",void 0),t([((e="value")=>(t,l)=>{const i=t.constructor,a=i.prototype.attributeChangedCallback;i.prototype.attributeChangedCallback=function(t,o,n){var r;const s=i.getPropertyOptions(e);if(t===("string"==typeof s.attribute?s.attribute:e).toLowerCase()){const t=s.converter||y,i=("function"==typeof t?t:null!==(r=null==t?void 0:t.fromAttribute)&&void 0!==r?r:y.fromAttribute)(n,s.type);this[e]!==i&&(this[l]=i)}a.call(this,t,o,n)}})()],El.prototype,"defaultValue",void 0),t([He({type:Boolean,reflect:!0})],El.prototype,"hasFeedback",void 0),t([He({type:String,reflect:!0})],El.prototype,"invalidFeedback",void 0),t([He({type:Boolean,reflect:!0})],El.prototype,"invalid",void 0),t([He({type:Array})],El.prototype,"menuList",void 0),t([$e()],El.prototype,"selectedItems",void 0),t([$e()],El.prototype,"filteredList",void 0),t([ke("input.form-control")],El.prototype,"_input",void 0);var Il=ee`
98
98
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
99
99
  <path
100
100
  fill="currentColor"
101
101
  d="M9.375 15.125H6.5a5.116 5.116 0 0 1-1.643-.27l1.324 5.292c.047.188.062.247.078.294.176.52.644.885 1.19.93.05.004.11.004.305.004.243 0 .32 0 .379-.006a1.375 1.375 0 0 0 1.235-1.237c.006-.058.007-.136.007-.379v-4.628Zm12-5.125c0-1.373-.963-2.52-2.25-2.805v5.61A2.874 2.874 0 0 0 21.375 10Zm-18.75 0A3.875 3.875 0 0 0 6.5 13.875h2.875v-7.75H6.5A3.875 3.875 0 0 0 2.625 10Zm15.25-4.873c0-.534 0-.896-.021-1.159-.023-.28-.063-.324-.05-.305a.326.326 0 0 0-.258-.155c.027.004-.035-.01-.31.115-.257.115-.597.3-1.092.57-1.565.853-3.667 1.801-5.519 1.919v7.774c1.852.118 3.954 1.068 5.519 1.921.495.27.835.455 1.091.57.276.125.338.111.31.115a.326.326 0 0 0 .26-.155c-.013.019.026-.026.049-.305.02-.263.021-.625.021-1.158V5.127Zm1.25.794a4.127 4.127 0 0 1 0 8.157v.796c0 .51 0 .932-.025 1.257-.025.307-.079.654-.279.934a1.57 1.57 0 0 1-1.124.667c-.346.042-.688-.084-.976-.215-.31-.14-.7-.352-1.176-.612-1.535-.837-3.39-1.645-4.92-1.764v4.612c0 .215 0 .366-.013.5a2.625 2.625 0 0 1-2.36 2.36c-.133.013-.284.012-.498.012-.171 0-.293 0-.406-.01a2.625 2.625 0 0 1-2.273-1.773c-.036-.107-.065-.226-.106-.392l-1.575-6.298a.632.632 0 0 1-.014-.087 5.125 5.125 0 0 1 3.12-9.19h3.75c1.594 0 3.632-.873 5.295-1.78.477-.26.866-.472 1.176-.612.288-.13.63-.257.976-.215.47.058.85.283 1.124.667.2.28.254.627.279.935.025.324.025.746.025 1.257v.794Z"
102
102
  />
103
103
  </svg>
104
- `,Il=ee`
104
+ `,Pl=ee`
105
105
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
106
106
  <path
107
107
  fill="currentColor"
@@ -239,7 +239,7 @@ window.ShadyDOM?.inUse&&!0===window.ShadyDOM?.noPatch&&window.ShadyDOM.wrap;cons
239
239
  clip-rule="evenodd"
240
240
  />
241
241
  </svg>
242
- `;const Gl={announcement:Pl,archive:Il,"arrow-bar-down":Tl,"arrow-bar-left":Rl,"arrow-bar-right":Ol,"arrow-bar-up":zl,"arrow-circle-down":Dl,"arrow-circle-left":Nl,"arrow-circle-right":Ul,"arrow-circle-up":Fl,"arrow-clockwise":Wl,"arrow-down":ql,"arrow-left":jl,"arrow-repeat":Kl,"arrow-right":Jl,"arrow-square-down":ee`
242
+ `;const Gl={announcement:Il,archive:Pl,"arrow-bar-down":Tl,"arrow-bar-left":Rl,"arrow-bar-right":Ol,"arrow-bar-up":zl,"arrow-circle-down":Dl,"arrow-circle-left":Nl,"arrow-circle-right":Ul,"arrow-circle-up":Fl,"arrow-clockwise":Wl,"arrow-down":ql,"arrow-left":jl,"arrow-repeat":Kl,"arrow-right":Jl,"arrow-square-down":ee`
243
243
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
244
244
  <path
245
245
  fill="currentColor"
@@ -2311,7 +2311,7 @@ window.ShadyDOM?.inUse&&!0===window.ShadyDOM?.noPatch&&window.ShadyDOM.wrap;cons
2311
2311
  />
2312
2312
  </svg>
2313
2313
  `};var Yl=r`:host{color:inherit;display:inline-flex;vertical-align:bottom}:host(.icon-left){margin-right:.25rem}:host(.icon-right){margin-left:.25rem}:host([size=xs]) svg{height:var(--sgds-icon-size-xs);width:var(--sgds-icon-size-xs)}:host([size=sm]) svg{height:var(--sgds-icon-size-sm);width:var(--sgds-icon-size-sm)}:host([size=md]) svg{height:var(--sgds-icon-size-md);width:var(--sgds-icon-size-md)}:host([size=xl]) svg{height:var(--sgds-icon-size-xl);width:var(--sgds-icon-size-xl)}:host([size="2-xl"]) svg{height:var(--sgds-icon-size-2-xl);width:var(--sgds-icon-size-2-xl)}:host([size="3-xl"]) svg{height:var(--sgds-icon-size-3-xl);width:var(--sgds-icon-size-3-xl)}svg{display:inline-block;height:var(--sgds-icon-size-lg);width:var(--sgds-icon-size-lg)}`;class Xl extends $l{constructor(){super(...arguments),this.size="lg"}_getIconByName(e){if(!e)return;const t=Gl[e];if(t)return t;console.warn(`Icon not found: ${e}`)}render(){const e=this._getIconByName(this.name);return e||ie}}Xl.styles=[...$l.styles,Yl],t([He({type:String,reflect:!0})],Xl.prototype,"name",void 0),t([He({type:String,reflect:!0})],Xl.prototype,"size",void 0);var Ql=r`:host{display:block;position:relative}input.form-control{caret-color:transparent;cursor:default}.dropdown{display:flex;height:100%}.dropdown-menu{box-sizing:border-box;max-height:10rem;overflow-x:hidden;overflow-y:auto}slot[id=default].is-loading,slot[id=default].is-loading::slotted(*){display:none}`,ei=r`:host([active]) .dropdown-item{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item{background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-form-color-default);cursor:pointer;font-size:var(--sgds-font-size-label-md);height:100%;overflow-wrap:anywhere;padding:var(--sgds-padding-sm) var(--sgds-padding-md);text-align:inherit;white-space:normal}.dropdown-item.disabled{opacity:var(--sgds-opacity-40);pointer-events:none}.dropdown-item .normal-item-content{align-items:center;display:flex;justify-content:space-between}:host([active]) .dropdown-item .normal-item-content{color:var(--sgds-form-primary-color-default)}.dropdown-item:hover{background:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus-visible{background:var(--sgds-bg-translucent-subtle);outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}`;class ti extends $l{constructor(){super(...arguments),this.active=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("aria-disabled",`${this.disabled}`)}render(){const e={disabled:this.disabled,active:this.active};return ee`
2314
- <div class="dropdown-item ${Ie(e)}" tabindex=${this.disabled?"-1":"0"}>
2314
+ <div class="dropdown-item ${Pe(e)}" tabindex=${this.disabled?"-1":"0"}>
2315
2315
  ${this._renderItemContent()}
2316
2316
  </div>
2317
2317
  `}}ti.styles=[ei],t([He({type:Boolean,reflect:!0})],ti.prototype,"active",void 0),t([He({type:Boolean,reflect:!0})],ti.prototype,"disabled",void 0),t([He({type:String,reflect:!0})],ti.prototype,"value",void 0);class li extends ti{constructor(){super(...arguments),this._renderItemContent=()=>ee`<div class="normal-item-content">
@@ -2327,10 +2327,10 @@ const ii=Symbol.for(""),ai=e=>{if(e?.r===ii)return e?._$litStatic$},oi=new Map,n
2327
2327
 
2328
2328
  /*! CSS Used keyframes */@keyframes spinner{to{transform:rotate(1turn)}}.sr-only{clip:rect(0,0,0,0);border:0;height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}`,di=r`.text-primary{color:var(--sgds-primary-rgb)!important}.text-secondary{color:var(--sgds-secondary-rgb)!important}.text-success{color:var(--sgds-success-rgb)!important}.text-info{color:var(--sgds-info-rgb)!important}.text-warning{color:var(--sgds-warning-rgb)!important}.text-danger{color:var(--sgds-danger-rgb)!important}.text-light{color:var(--sgds-light-rgb)!important}.text-dark{color:var(--sgds-dark-rgb)!important}.text-muted{color:var(--sgds-secondary-color)!important}`;class hi extends $l{constructor(){super(...arguments),this.variant="primary",this.tone="brand",this.size="md",this.orientation="vertical"}render(){return ni`
2329
2329
  <div
2330
- class="spinner-wrapper ${Ie({horizontal:"horizontal"===this.orientation})}"
2330
+ class="spinner-wrapper ${Pe({horizontal:"horizontal"===this.orientation})}"
2331
2331
  >
2332
2332
  <div
2333
- class="spinner ${Ie({[`spinner-${this.size}`]:this.size})}"
2333
+ class="spinner ${Pe({[`spinner-${this.size}`]:this.size})}"
2334
2334
  role="status"
2335
2335
  >
2336
2336
  ${this.label?ie:ni`<span class="sr-only">Loading...</span>`}
@@ -2350,7 +2350,7 @@ const ii=Symbol.for(""),ai=e=>{if(e?.r===ii)return e?._$litStatic$},oi=new Map,n
2350
2350
  `});return 0===this.menuList.length?this._renderEmptyMenu():e}_renderInput(){const e=this.hasFeedback;return ee`
2351
2351
  <div
2352
2352
  ${Ke(this.myDropdown)}
2353
- class="form-control-group ${Ie({disabled:this.disabled,readonly:this.readonly,"is-invalid":this.invalid&&e})}"
2353
+ class="form-control-group ${Pe({disabled:this.disabled,readonly:this.readonly,"is-invalid":this.invalid&&e})}"
2354
2354
  @click=${this._handleClick}
2355
2355
  >
2356
2356
  <input
@@ -2375,13 +2375,13 @@ const ii=Symbol.for(""),ai=e=>{if(e?.r===ii)return e?._$litStatic$},oi=new Map,n
2375
2375
  </div>
2376
2376
  `}render(){return ee`
2377
2377
  <div
2378
- class=${Ie({disabled:this.disabled,select:!0,"form-control-container":!0,"m-width-160":!0})}
2378
+ class=${Pe({disabled:this.disabled,select:!0,"form-control-container":!0,"m-width-160":!0})}
2379
2379
  >
2380
2380
  ${this._renderLabel()}
2381
2381
  <!-- The input -->
2382
2382
  ${this._renderInput()} ${this._renderFeedback()}
2383
2383
  <ul id=${this.dropdownMenuId} class="dropdown-menu" part="menu" tabindex="-1" ${Ke(this.menuRef)}>
2384
- <slot id="default" class=${Ie({"is-loading":this.loading})} @slotchange=${this._handleSlotChange}
2384
+ <slot id="default" class=${Pe({"is-loading":this.loading})} @slotchange=${this._handleSlotChange}
2385
2385
  >${this._renderMenu()}</slot
2386
2386
  >
2387
2387
  ${this.loading?this._renderLoadingMenu():ie}