@govtechsg/sgds-web-component 3.26.1-rc.2 → 3.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/components/Breadcrumb/index.umd.min.js +25 -25
  2. package/components/Breadcrumb/index.umd.min.js.map +1 -1
  3. package/components/Checkbox/index.umd.min.js +233 -233
  4. package/components/Checkbox/index.umd.min.js.map +1 -1
  5. package/components/Checkbox/sgds-checkbox.d.ts +0 -1
  6. package/components/Checkbox/sgds-checkbox.js +1 -6
  7. package/components/Checkbox/sgds-checkbox.js.map +1 -1
  8. package/components/ComboBox/index.umd.min.js +241 -241
  9. package/components/ComboBox/index.umd.min.js.map +1 -1
  10. package/components/Datepicker/index.umd.min.js +86 -86
  11. package/components/Datepicker/index.umd.min.js.map +1 -1
  12. package/components/Dropdown/dropdown-item.js +1 -1
  13. package/components/Dropdown/index.umd.min.js +4 -4
  14. package/components/Dropdown/index.umd.min.js.map +1 -1
  15. package/components/Dropdown/sgds-dropdown-item.d.ts +0 -2
  16. package/components/Dropdown/sgds-dropdown-item.js +2 -8
  17. package/components/Dropdown/sgds-dropdown-item.js.map +1 -1
  18. package/components/Input/index.umd.min.js +2 -2
  19. package/components/Input/index.umd.min.js.map +1 -1
  20. package/components/Input/input.js +1 -1
  21. package/components/Mainnav/index.d.ts +0 -2
  22. package/components/Mainnav/index.js +0 -2
  23. package/components/Mainnav/index.js.map +1 -1
  24. package/components/Mainnav/index.umd.min.js +286 -327
  25. package/components/Mainnav/index.umd.min.js.map +1 -1
  26. package/components/Mainnav/mainnav-dropdown.js +1 -1
  27. package/components/Mainnav/mainnav-item.js +1 -1
  28. package/components/Mainnav/mainnav.js +1 -1
  29. package/components/Mainnav/sgds-mainnav.d.ts +16 -14
  30. package/components/Mainnav/sgds-mainnav.js +21 -59
  31. package/components/Mainnav/sgds-mainnav.js.map +1 -1
  32. package/components/OverflowMenu/index.umd.min.js +4 -4
  33. package/components/OverflowMenu/index.umd.min.js.map +1 -1
  34. package/components/QuantityToggle/index.umd.min.js +40 -40
  35. package/components/QuantityToggle/index.umd.min.js.map +1 -1
  36. package/components/QuantityToggle/sgds-quantity-toggle.d.ts +1 -2
  37. package/components/QuantityToggle/sgds-quantity-toggle.js +9 -18
  38. package/components/QuantityToggle/sgds-quantity-toggle.js.map +1 -1
  39. package/components/Select/index.umd.min.js +1 -1
  40. package/components/Tab/index.umd.min.js +1 -1
  41. package/components/Tab/index.umd.min.js.map +1 -1
  42. package/components/Tab/tab-panel.js +1 -1
  43. package/components/Textarea/index.umd.min.js +1 -1
  44. package/components/Textarea/index.umd.min.js.map +1 -1
  45. package/components/Textarea/textarea.js +1 -1
  46. package/components/index.d.ts +0 -5
  47. package/components/index.js +0 -5
  48. package/components/index.js.map +1 -1
  49. package/components/index.umd.min.js +498 -633
  50. package/components/index.umd.min.js.map +1 -1
  51. package/css/fouc.css +2 -7
  52. package/custom-elements.json +10277 -11992
  53. package/index.d.ts +0 -1
  54. package/index.js +0 -1
  55. package/index.js.map +1 -1
  56. package/index.umd.min.js +361 -496
  57. package/index.umd.min.js.map +1 -1
  58. package/package.json +1 -1
  59. package/react/components/Checkbox/sgds-checkbox.cjs.js +1 -6
  60. package/react/components/Checkbox/sgds-checkbox.cjs.js.map +1 -1
  61. package/react/components/Checkbox/sgds-checkbox.js +1 -6
  62. package/react/components/Checkbox/sgds-checkbox.js.map +1 -1
  63. package/react/components/Dropdown/dropdown-item.cjs.js +1 -1
  64. package/react/components/Dropdown/dropdown-item.js +1 -1
  65. package/react/components/Dropdown/sgds-dropdown-item.cjs.js +2 -8
  66. package/react/components/Dropdown/sgds-dropdown-item.cjs.js.map +1 -1
  67. package/react/components/Dropdown/sgds-dropdown-item.js +2 -8
  68. package/react/components/Dropdown/sgds-dropdown-item.js.map +1 -1
  69. package/react/components/Input/input.cjs.js +1 -1
  70. package/react/components/Input/input.js +1 -1
  71. package/react/components/Mainnav/mainnav-dropdown.cjs.js +1 -1
  72. package/react/components/Mainnav/mainnav-dropdown.js +1 -1
  73. package/react/components/Mainnav/mainnav-item.cjs.js +1 -1
  74. package/react/components/Mainnav/mainnav-item.js +1 -1
  75. package/react/components/Mainnav/mainnav.cjs.js +1 -1
  76. package/react/components/Mainnav/mainnav.js +1 -1
  77. package/react/components/Mainnav/sgds-mainnav.cjs.js +20 -58
  78. package/react/components/Mainnav/sgds-mainnav.cjs.js.map +1 -1
  79. package/react/components/Mainnav/sgds-mainnav.js +21 -59
  80. package/react/components/Mainnav/sgds-mainnav.js.map +1 -1
  81. package/react/components/QuantityToggle/sgds-quantity-toggle.cjs.js +9 -18
  82. package/react/components/QuantityToggle/sgds-quantity-toggle.cjs.js.map +1 -1
  83. package/react/components/QuantityToggle/sgds-quantity-toggle.js +9 -18
  84. package/react/components/QuantityToggle/sgds-quantity-toggle.js.map +1 -1
  85. package/react/components/Tab/tab-panel.cjs.js +1 -1
  86. package/react/components/Tab/tab-panel.js +1 -1
  87. package/react/components/Textarea/textarea.cjs.js +1 -1
  88. package/react/components/Textarea/textarea.js +1 -1
  89. package/react/index.cjs.js +118 -128
  90. package/react/index.cjs.js.map +1 -1
  91. package/react/index.d.ts +2 -7
  92. package/react/index.js +2 -7
  93. package/react/index.js.map +1 -1
  94. package/react/styles/form-text-control.cjs.js +1 -1
  95. package/react/styles/form-text-control.js +1 -1
  96. package/styles/form-text-control.js +1 -1
  97. package/themes/blue.css +11 -11
  98. package/themes/cyan.css +10 -10
  99. package/themes/gt/blue.css +11 -11
  100. package/themes/gt/cyan.css +10 -10
  101. package/themes/gt/magenta.css +11 -11
  102. package/themes/gt/pink.css +11 -11
  103. package/themes/gt/purple.css +11 -11
  104. package/themes/gt/red.css +11 -11
  105. package/themes/magenta.css +11 -11
  106. package/themes/pink.css +11 -11
  107. package/themes/purple.css +11 -11
  108. package/themes/red.css +11 -11
  109. package/themes/root.css +0 -5
  110. package/types/react.d.ts +51 -164
  111. package/components/DataTable/data-table.js +0 -6
  112. package/components/DataTable/data-table.js.map +0 -1
  113. package/components/DataTable/index.d.ts +0 -12
  114. package/components/DataTable/index.js +0 -11
  115. package/components/DataTable/index.js.map +0 -1
  116. package/components/DataTable/index.umd.min.js +0 -2634
  117. package/components/DataTable/index.umd.min.js.map +0 -1
  118. package/components/DataTable/sgds-data-table-cell.d.ts +0 -15
  119. package/components/DataTable/sgds-data-table-cell.js +0 -32
  120. package/components/DataTable/sgds-data-table-cell.js.map +0 -1
  121. package/components/DataTable/sgds-data-table-head.d.ts +0 -28
  122. package/components/DataTable/sgds-data-table-head.js +0 -69
  123. package/components/DataTable/sgds-data-table-head.js.map +0 -1
  124. package/components/DataTable/sgds-data-table-row.d.ts +0 -76
  125. package/components/DataTable/sgds-data-table-row.js +0 -333
  126. package/components/DataTable/sgds-data-table-row.js.map +0 -1
  127. package/components/DataTable/sgds-data-table.d.ts +0 -82
  128. package/components/DataTable/sgds-data-table.js +0 -405
  129. package/components/DataTable/sgds-data-table.js.map +0 -1
  130. package/components/Mainnav/mainnav-profile.js +0 -6
  131. package/components/Mainnav/mainnav-profile.js.map +0 -1
  132. package/components/Mainnav/sgds-mainnav-profile.d.ts +0 -41
  133. package/components/Mainnav/sgds-mainnav-profile.js +0 -136
  134. package/components/Mainnav/sgds-mainnav-profile.js.map +0 -1
  135. package/react/components/DataTable/data-table.cjs.js +0 -11
  136. package/react/components/DataTable/data-table.cjs.js.map +0 -1
  137. package/react/components/DataTable/data-table.js +0 -7
  138. package/react/components/DataTable/data-table.js.map +0 -1
  139. package/react/components/DataTable/sgds-data-table-cell.cjs.js +0 -38
  140. package/react/components/DataTable/sgds-data-table-cell.cjs.js.map +0 -1
  141. package/react/components/DataTable/sgds-data-table-cell.js +0 -33
  142. package/react/components/DataTable/sgds-data-table-cell.js.map +0 -1
  143. package/react/components/DataTable/sgds-data-table-head.cjs.js +0 -75
  144. package/react/components/DataTable/sgds-data-table-head.cjs.js.map +0 -1
  145. package/react/components/DataTable/sgds-data-table-head.js +0 -70
  146. package/react/components/DataTable/sgds-data-table-head.js.map +0 -1
  147. package/react/components/DataTable/sgds-data-table-row.cjs.js +0 -339
  148. package/react/components/DataTable/sgds-data-table-row.cjs.js.map +0 -1
  149. package/react/components/DataTable/sgds-data-table-row.js +0 -334
  150. package/react/components/DataTable/sgds-data-table-row.js.map +0 -1
  151. package/react/components/DataTable/sgds-data-table.cjs.js +0 -411
  152. package/react/components/DataTable/sgds-data-table.cjs.js.map +0 -1
  153. package/react/components/DataTable/sgds-data-table.js +0 -406
  154. package/react/components/DataTable/sgds-data-table.js.map +0 -1
  155. package/react/components/Mainnav/mainnav-profile.cjs.js +0 -11
  156. package/react/components/Mainnav/mainnav-profile.cjs.js.map +0 -1
  157. package/react/components/Mainnav/mainnav-profile.js +0 -7
  158. package/react/components/Mainnav/mainnav-profile.js.map +0 -1
  159. package/react/components/Mainnav/sgds-mainnav-profile.cjs.js +0 -142
  160. package/react/components/Mainnav/sgds-mainnav-profile.cjs.js.map +0 -1
  161. package/react/components/Mainnav/sgds-mainnav-profile.js +0 -137
  162. package/react/components/Mainnav/sgds-mainnav-profile.js.map +0 -1
  163. package/react/data-table/index.cjs.js +0 -44
  164. package/react/data-table/index.cjs.js.map +0 -1
  165. package/react/data-table/index.d.ts +0 -4
  166. package/react/data-table/index.js +0 -20
  167. package/react/data-table/index.js.map +0 -1
  168. package/react/data-table-cell/index.cjs.js +0 -40
  169. package/react/data-table-cell/index.cjs.js.map +0 -1
  170. package/react/data-table-cell/index.d.ts +0 -4
  171. package/react/data-table-cell/index.js +0 -16
  172. package/react/data-table-cell/index.js.map +0 -1
  173. package/react/data-table-head/index.cjs.js +0 -40
  174. package/react/data-table-head/index.cjs.js.map +0 -1
  175. package/react/data-table-head/index.d.ts +0 -4
  176. package/react/data-table-head/index.js +0 -16
  177. package/react/data-table-head/index.js.map +0 -1
  178. package/react/data-table-row/index.cjs.js +0 -45
  179. package/react/data-table-row/index.cjs.js.map +0 -1
  180. package/react/data-table-row/index.d.ts +0 -4
  181. package/react/data-table-row/index.js +0 -21
  182. package/react/data-table-row/index.js.map +0 -1
  183. package/react/mainnav-profile/index.cjs.js +0 -40
  184. package/react/mainnav-profile/index.cjs.js.map +0 -1
  185. package/react/mainnav-profile/index.d.ts +0 -4
  186. package/react/mainnav-profile/index.js +0 -16
  187. package/react/mainnav-profile/index.js.map +0 -1
@@ -1,15 +1,15 @@
1
- !function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";function e(e,t,i,l){var n,r=arguments.length,a=r<3?t:null===l?l=Object.getOwnPropertyDescriptor(t,i):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,l);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(r<3?n(a):r>3?n(t,i,a):n(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a}function t(e,t){const i=e.getDate(),l=e.getMonth()+1,n=e.getFullYear(),r=i<10?"0"+i:String(i),a=l<10?"0"+l:String(l),o=String(n);switch(t){case"dd/MM/yyyy":default:return`${r}/${a}/${o}`;case"MM/dd/yyyy":return`${a}/${r}/${o}`;case"yyyy/MM/dd":return`${o}/${a}/${r}`;case"PPPP":{const t=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(e),i=new Intl.DateTimeFormat("en-US",{month:"long"}).format(e),l=function(e){if(e>=11&&e<=13)return e+"th";switch(e%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd";default:return e+"th"}}(e.getDate());return`${t}, ${i} ${l}, ${e.getFullYear()}`}}}function i(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function l(e,t){return e.getTime()>t.getTime()}function n(e,t){return e.getTime()<t.getTime()}function r(e,t){return e.getTime()===t.getTime()}function a(e){return e.getDate()===i(e)}function o(e){return e instanceof Date&&!isNaN(e.getTime())}function s(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function c(e,t){const i=e.split("/");let l,n,r;switch(t){case"dd/MM/yyyy":l=parseInt(i[0],10),n=parseInt(i[1],10)-1,r=parseInt(i[2],10);break;case"MM/dd/yyyy":n=parseInt(i[0],10)-1,l=parseInt(i[1],10),r=parseInt(i[2],10);break;case"yyyy/MM/dd":r=parseInt(i[0],10),n=parseInt(i[1],10)-1,l=parseInt(i[2],10);break;default:return new Date(NaN)}if(isNaN(l)||isNaN(n)||isNaN(r))return new Date(NaN);const a=new Date(r,n,l,12,0,0,0);return a.getFullYear()!==r||a.getMonth()!==n||a.getDate()!==l?new Date(NaN):a}
1
+ !function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";function e(e,t,i,l){var n,a=arguments.length,r=a<3?t:null===l?l=Object.getOwnPropertyDescriptor(t,i):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,l);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r}function t(e,t){const i=e.getDate(),l=e.getMonth()+1,n=e.getFullYear(),a=i<10?"0"+i:String(i),r=l<10?"0"+l:String(l),o=String(n);switch(t){case"dd/MM/yyyy":default:return`${a}/${r}/${o}`;case"MM/dd/yyyy":return`${r}/${a}/${o}`;case"yyyy/MM/dd":return`${o}/${r}/${a}`;case"PPPP":{const t=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(e),i=new Intl.DateTimeFormat("en-US",{month:"long"}).format(e),l=function(e){if(e>=11&&e<=13)return e+"th";switch(e%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd";default:return e+"th"}}(e.getDate());return`${t}, ${i} ${l}, ${e.getFullYear()}`}}}function i(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function l(e,t){return e.getTime()>t.getTime()}function n(e,t){return e.getTime()<t.getTime()}function a(e,t){return e.getTime()===t.getTime()}function r(e){return e.getDate()===i(e)}function o(e){return e instanceof Date&&!isNaN(e.getTime())}function s(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function c(e,t){const i=e.split("/");let l,n,a;switch(t){case"dd/MM/yyyy":l=parseInt(i[0],10),n=parseInt(i[1],10)-1,a=parseInt(i[2],10);break;case"MM/dd/yyyy":n=parseInt(i[0],10)-1,l=parseInt(i[1],10),a=parseInt(i[2],10);break;case"yyyy/MM/dd":a=parseInt(i[0],10),n=parseInt(i[1],10)-1,l=parseInt(i[2],10);break;default:return new Date(NaN)}if(isNaN(l)||isNaN(n)||isNaN(a))return new Date(NaN);const r=new Date(a,n,l,12,0,0,0);return r.getFullYear()!==a||r.getMonth()!==n||r.getDate()!==l?new Date(NaN):r}
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
- */"function"==typeof SuppressedError&&SuppressedError;const d=globalThis,h=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),v=new WeakMap;class p{constructor(e,t,i){if(this._$cssResult$=!0,i!==u)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this._strings=t}get styleSheet(){let e=this._styleSheet;const t=this._strings;if(h&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=v.get(t)),void 0===e&&((this._styleSheet=e=new CSSStyleSheet).replaceSync(this.cssText),i&&v.set(t,e))}return e}toString(){return this.cssText}}const f=(e,...t)=>{const i=1===e.length?e[0]:t.reduce((t,i,l)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(i)+e[l+1],e[0]);return new p(i,e,u)},g=e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return new p("string"==typeof(i=t)?i:String(i),void 0,u);var i},m=h?e=>e:e=>e instanceof CSSStyleSheet?g(e):e,{is:w,defineProperty:_,getOwnPropertyDescriptor:b,getOwnPropertyNames:y,getOwnPropertySymbols:x,getPrototypeOf:C}=Object,Z=globalThis;let M;const V=Z.trustedTypes,$=V?V.emptyScript:"",k=Z.reactiveElementPolyfillSupportDevMode;Z.litIssuedWarnings??=new Set,M=(e,t)=>{t+=` See https://lit.dev/msg/${e} for more information.`,Z.litIssuedWarnings.has(t)||Z.litIssuedWarnings.has(e)||(console.warn(t),Z.litIssuedWarnings.add(t))},queueMicrotask(()=>{M("dev-mode","Lit is in dev mode. Not recommended for production!"),Z.ShadyDOM?.inUse&&void 0===k&&M("polyfill-support-missing","Shadow DOM is being polyfilled via `ShadyDOM` but the `polyfill-support` module has not been loaded.")});const H=(e,t)=>e,P={toAttribute(e,t){switch(t){case Boolean:e=e?$:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},S=(e,t)=>!w(e,t),D={attribute:!0,type:String,converter:P,reflect:!1,useDefault:!1,hasChanged:S};Symbol.metadata??=Symbol("metadata"),Z.litPropertyMetadata??=new WeakMap;class O extends HTMLElement{static addInitializer(e){this.__prepare(),(this._initializers??=[]).push(e)}static get observedAttributes(){return this.finalize(),this.__attributeToPropertyMap&&[...this.__attributeToPropertyMap.keys()]}static createProperty(e,t=D){if(t.state&&(t.attribute=!1),this.__prepare(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol.for(`${String(e)} (@property() cache)`),l=this.getPropertyDescriptor(e,i,t);void 0!==l&&_(this.prototype,e,l)}}static getPropertyDescriptor(e,t,i){const{get:l,set:n}=b(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};if(null==l){if("value"in(b(this.prototype,e)??{}))throw new Error(`Field ${JSON.stringify(String(e))} on ${this.name} was declared as a reactive property but it's actually declared as a value on the prototype. Usually this is due to using @property or @state on a method.`);M("reactive-property-without-getter",`Field ${JSON.stringify(String(e))} on ${this.name} was declared as a reactive property but it does not have a getter. This will be an error in a future version of Lit.`)}return{get:l,set(t){const r=l?.call(this);n?.call(this,t),this.requestUpdate(e,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??D}static __prepare(){if(this.hasOwnProperty(H("elementProperties")))return;const e=C(this);e.finalize(),void 0!==e._initializers&&(this._initializers=[...e._initializers]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(H("finalized")))return;if(this.finalized=!0,this.__prepare(),this.hasOwnProperty(H("properties"))){const e=this.properties,t=[...y(e),...x(e)];for(const i of t)this.createProperty(i,e[i])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,i]of t)this.elementProperties.set(e,i)}this.__attributeToPropertyMap=new Map;for(const[e,t]of this.elementProperties){const i=this.__attributeNameForProperty(e,t);void 0!==i&&this.__attributeToPropertyMap.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles),this.hasOwnProperty("createProperty")&&M("no-override-create-property","Overriding ReactiveElement.createProperty() is deprecated. The override will not be called with standard decorators"),this.hasOwnProperty("getPropertyDescriptor")&&M("no-override-get-property-descriptor","Overriding ReactiveElement.getPropertyDescriptor() is deprecated. The override will not be called with standard decorators")}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(m(e))}else void 0!==e&&t.push(m(e));return t}static __attributeNameForProperty(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this.__instanceProperties=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this.__reflectingProperty=null,this.__initialize()}__initialize(){this.__updatePromise=new Promise(e=>this.enableUpdating=e),this._$changedProperties=new Map,this.__saveInstanceProperties(),this.requestUpdate(),this.constructor._initializers?.forEach(e=>e(this))}addController(e){(this.__controllers??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this.__controllers?.delete(e)}__saveInstanceProperties(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this.__instanceProperties=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(h)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const i of t){const t=document.createElement("style"),l=d.litNonce;void 0!==l&&t.setAttribute("nonce",l),t.textContent=i.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this.__controllers?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this.__controllers?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$attributeToProperty(e,i)}__propertyToAttribute(e,t){const i=this.constructor.elementProperties.get(e),l=this.constructor.__attributeNameForProperty(e,i);if(void 0!==l&&!0===i.reflect){const n=(void 0!==i.converter?.toAttribute?i.converter:P).toAttribute(t,i.type);this.constructor.enabledWarnings.includes("migration")&&void 0===n&&M("undefined-attribute-value",`The attribute value for the ${e} property is undefined on element ${this.localName}. The attribute will be removed, but in the previous version of \`ReactiveElement\`, the attribute would not have changed.`),this.__reflectingProperty=e,null==n?this.removeAttribute(l):this.setAttribute(l,n),this.__reflectingProperty=null}}_$attributeToProperty(e,t){const i=this.constructor,l=i.__attributeToPropertyMap.get(e);if(void 0!==l&&this.__reflectingProperty!==l){const e=i.getPropertyOptions(l),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:P;this.__reflectingProperty=l;const r=n.fromAttribute(t,e.type);this[l]=r??this.__defaultValues?.get(l)??r,this.__reflectingProperty=null}}requestUpdate(e,t,i,l=!1,n){if(void 0!==e){e instanceof Event&&M("","The requestUpdate() method was called with an Event as the property name. This is probably a mistake caused by binding this.requestUpdate as an event listener. Instead bind a function that will call it with no arguments: () => this.requestUpdate()");const r=this.constructor;!1===l&&(n=this[e]),i??=r.getPropertyOptions(e);if(!((i.hasChanged??S)(n,t)||i.useDefault&&i.reflect&&n===this.__defaultValues?.get(e)&&!this.hasAttribute(r.__attributeNameForProperty(e,i))))return;this._$changeProperty(e,t,i)}!1===this.isUpdatePending&&(this.__updatePromise=this.__enqueueUpdate())}_$changeProperty(e,t,{useDefault:i,reflect:l,wrapped:n},r){i&&!(this.__defaultValues??=new Map).has(e)&&(this.__defaultValues.set(e,r??t??this[e]),!0!==n||void 0!==r)||(this._$changedProperties.has(e)||(this.hasUpdated||i||(t=void 0),this._$changedProperties.set(e,t)),!0===l&&this.__reflectingProperty!==e&&(this.__reflectingProperties??=new Set).add(e))}async __enqueueUpdate(){this.isUpdatePending=!0;try{await this.__updatePromise}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){const e=this.performUpdate();return this.constructor.enabledWarnings.includes("async-perform-update")&&"function"==typeof e?.then&&M("async-perform-update",`Element ${this.localName} returned a Promise from performUpdate(). This behavior is deprecated and will be removed in a future version of ReactiveElement.`),e}performUpdate(){if(!this.isUpdatePending)return;var e;if(e={kind:"update"},Z.emitLitDebugLogEvents&&Z.dispatchEvent(new CustomEvent("lit-debug",{detail:e})),!this.hasUpdated){this.renderRoot??=this.createRenderRoot();{const e=[...this.constructor.elementProperties.keys()].filter(e=>this.hasOwnProperty(e)&&e in C(this));if(e.length)throw new Error(`The following properties on element ${this.localName} will not trigger updates as expected because they are set using class fields: ${e.join(", ")}. Native class fields and some compiled output will overwrite accessors used for detecting changes. See https://lit.dev/msg/class-field-shadowing for more information.`)}if(this.__instanceProperties){for(const[e,t]of this.__instanceProperties)this[e]=t;this.__instanceProperties=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,i]of e){const{wrapped:e}=i,l=this[t];!0!==e||this._$changedProperties.has(t)||void 0===l||this._$changeProperty(t,void 0,i,l)}}let t=!1;const i=this._$changedProperties;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),this.__controllers?.forEach(e=>e.hostUpdate?.()),this.update(i)):this.__markUpdated()}catch(e){throw t=!1,this.__markUpdated(),e}t&&this._$didUpdate(i)}willUpdate(e){}_$didUpdate(e){this.__controllers?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e),this.isUpdatePending&&this.constructor.enabledWarnings.includes("change-in-update")&&M("change-in-update",`Element ${this.localName} scheduled an update (generally because a property was set) after an update completed, causing a new update to be scheduled. This is inefficient and should be avoided unless the next update can only be scheduled as a side effect of the previous update.`)}__markUpdated(){this._$changedProperties=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this.__updatePromise}shouldUpdate(e){return!0}update(e){this.__reflectingProperties&&=this.__reflectingProperties.forEach(e=>this.__propertyToAttribute(e,this[e])),this.__markUpdated()}updated(e){}firstUpdated(e){}}O.elementStyles=[],O.shadowRootOptions={mode:"open"},O[H("elementProperties")]=new Map,O[H("finalized")]=new Map,k?.({ReactiveElement:O});{O.enabledWarnings=["change-in-update","async-perform-update"];const e=function(e){e.hasOwnProperty(H("enabledWarnings"))||(e.enabledWarnings=e.enabledWarnings.slice())};O.enableWarning=function(t){e(this),this.enabledWarnings.includes(t)||this.enabledWarnings.push(t)},O.disableWarning=function(t){e(this);const i=this.enabledWarnings.indexOf(t);i>=0&&this.enabledWarnings.splice(i,1)}}(Z.reactiveElementVersions??=[]).push("2.1.2"),Z.reactiveElementVersions.length>1&&queueMicrotask(()=>{M("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});
6
+ */"function"==typeof SuppressedError&&SuppressedError;const d=globalThis,h=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),v=new WeakMap;class p{constructor(e,t,i){if(this._$cssResult$=!0,i!==u)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this._strings=t}get styleSheet(){let e=this._styleSheet;const t=this._strings;if(h&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=v.get(t)),void 0===e&&((this._styleSheet=e=new CSSStyleSheet).replaceSync(this.cssText),i&&v.set(t,e))}return e}toString(){return this.cssText}}const f=(e,...t)=>{const i=1===e.length?e[0]:t.reduce((t,i,l)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(i)+e[l+1],e[0]);return new p(i,e,u)},g=e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return new p("string"==typeof(i=t)?i:String(i),void 0,u);var i},m=h?e=>e:e=>e instanceof CSSStyleSheet?g(e):e,{is:w,defineProperty:_,getOwnPropertyDescriptor:b,getOwnPropertyNames:y,getOwnPropertySymbols:x,getPrototypeOf:C}=Object,Z=globalThis;let M;const V=Z.trustedTypes,$=V?V.emptyScript:"",k=Z.reactiveElementPolyfillSupportDevMode;Z.litIssuedWarnings??=new Set,M=(e,t)=>{t+=` See https://lit.dev/msg/${e} for more information.`,Z.litIssuedWarnings.has(t)||Z.litIssuedWarnings.has(e)||(console.warn(t),Z.litIssuedWarnings.add(t))},queueMicrotask(()=>{M("dev-mode","Lit is in dev mode. Not recommended for production!"),Z.ShadyDOM?.inUse&&void 0===k&&M("polyfill-support-missing","Shadow DOM is being polyfilled via `ShadyDOM` but the `polyfill-support` module has not been loaded.")});const H=(e,t)=>e,P={toAttribute(e,t){switch(t){case Boolean:e=e?$:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},S=(e,t)=>!w(e,t),D={attribute:!0,type:String,converter:P,reflect:!1,useDefault:!1,hasChanged:S};Symbol.metadata??=Symbol("metadata"),Z.litPropertyMetadata??=new WeakMap;class O extends HTMLElement{static addInitializer(e){this.__prepare(),(this._initializers??=[]).push(e)}static get observedAttributes(){return this.finalize(),this.__attributeToPropertyMap&&[...this.__attributeToPropertyMap.keys()]}static createProperty(e,t=D){if(t.state&&(t.attribute=!1),this.__prepare(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol.for(`${String(e)} (@property() cache)`),l=this.getPropertyDescriptor(e,i,t);void 0!==l&&_(this.prototype,e,l)}}static getPropertyDescriptor(e,t,i){const{get:l,set:n}=b(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};if(null==l){if("value"in(b(this.prototype,e)??{}))throw new Error(`Field ${JSON.stringify(String(e))} on ${this.name} was declared as a reactive property but it's actually declared as a value on the prototype. Usually this is due to using @property or @state on a method.`);M("reactive-property-without-getter",`Field ${JSON.stringify(String(e))} on ${this.name} was declared as a reactive property but it does not have a getter. This will be an error in a future version of Lit.`)}return{get:l,set(t){const a=l?.call(this);n?.call(this,t),this.requestUpdate(e,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??D}static __prepare(){if(this.hasOwnProperty(H("elementProperties")))return;const e=C(this);e.finalize(),void 0!==e._initializers&&(this._initializers=[...e._initializers]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(H("finalized")))return;if(this.finalized=!0,this.__prepare(),this.hasOwnProperty(H("properties"))){const e=this.properties,t=[...y(e),...x(e)];for(const i of t)this.createProperty(i,e[i])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,i]of t)this.elementProperties.set(e,i)}this.__attributeToPropertyMap=new Map;for(const[e,t]of this.elementProperties){const i=this.__attributeNameForProperty(e,t);void 0!==i&&this.__attributeToPropertyMap.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles),this.hasOwnProperty("createProperty")&&M("no-override-create-property","Overriding ReactiveElement.createProperty() is deprecated. The override will not be called with standard decorators"),this.hasOwnProperty("getPropertyDescriptor")&&M("no-override-get-property-descriptor","Overriding ReactiveElement.getPropertyDescriptor() is deprecated. The override will not be called with standard decorators")}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(m(e))}else void 0!==e&&t.push(m(e));return t}static __attributeNameForProperty(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this.__instanceProperties=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this.__reflectingProperty=null,this.__initialize()}__initialize(){this.__updatePromise=new Promise(e=>this.enableUpdating=e),this._$changedProperties=new Map,this.__saveInstanceProperties(),this.requestUpdate(),this.constructor._initializers?.forEach(e=>e(this))}addController(e){(this.__controllers??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this.__controllers?.delete(e)}__saveInstanceProperties(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this.__instanceProperties=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(h)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const i of t){const t=document.createElement("style"),l=d.litNonce;void 0!==l&&t.setAttribute("nonce",l),t.textContent=i.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this.__controllers?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this.__controllers?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$attributeToProperty(e,i)}__propertyToAttribute(e,t){const i=this.constructor.elementProperties.get(e),l=this.constructor.__attributeNameForProperty(e,i);if(void 0!==l&&!0===i.reflect){const n=(void 0!==i.converter?.toAttribute?i.converter:P).toAttribute(t,i.type);this.constructor.enabledWarnings.includes("migration")&&void 0===n&&M("undefined-attribute-value",`The attribute value for the ${e} property is undefined on element ${this.localName}. The attribute will be removed, but in the previous version of \`ReactiveElement\`, the attribute would not have changed.`),this.__reflectingProperty=e,null==n?this.removeAttribute(l):this.setAttribute(l,n),this.__reflectingProperty=null}}_$attributeToProperty(e,t){const i=this.constructor,l=i.__attributeToPropertyMap.get(e);if(void 0!==l&&this.__reflectingProperty!==l){const e=i.getPropertyOptions(l),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:P;this.__reflectingProperty=l;const a=n.fromAttribute(t,e.type);this[l]=a??this.__defaultValues?.get(l)??a,this.__reflectingProperty=null}}requestUpdate(e,t,i,l=!1,n){if(void 0!==e){e instanceof Event&&M("","The requestUpdate() method was called with an Event as the property name. This is probably a mistake caused by binding this.requestUpdate as an event listener. Instead bind a function that will call it with no arguments: () => this.requestUpdate()");const a=this.constructor;!1===l&&(n=this[e]),i??=a.getPropertyOptions(e);if(!((i.hasChanged??S)(n,t)||i.useDefault&&i.reflect&&n===this.__defaultValues?.get(e)&&!this.hasAttribute(a.__attributeNameForProperty(e,i))))return;this._$changeProperty(e,t,i)}!1===this.isUpdatePending&&(this.__updatePromise=this.__enqueueUpdate())}_$changeProperty(e,t,{useDefault:i,reflect:l,wrapped:n},a){i&&!(this.__defaultValues??=new Map).has(e)&&(this.__defaultValues.set(e,a??t??this[e]),!0!==n||void 0!==a)||(this._$changedProperties.has(e)||(this.hasUpdated||i||(t=void 0),this._$changedProperties.set(e,t)),!0===l&&this.__reflectingProperty!==e&&(this.__reflectingProperties??=new Set).add(e))}async __enqueueUpdate(){this.isUpdatePending=!0;try{await this.__updatePromise}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){const e=this.performUpdate();return this.constructor.enabledWarnings.includes("async-perform-update")&&"function"==typeof e?.then&&M("async-perform-update",`Element ${this.localName} returned a Promise from performUpdate(). This behavior is deprecated and will be removed in a future version of ReactiveElement.`),e}performUpdate(){if(!this.isUpdatePending)return;var e;if(e={kind:"update"},Z.emitLitDebugLogEvents&&Z.dispatchEvent(new CustomEvent("lit-debug",{detail:e})),!this.hasUpdated){this.renderRoot??=this.createRenderRoot();{const e=[...this.constructor.elementProperties.keys()].filter(e=>this.hasOwnProperty(e)&&e in C(this));if(e.length)throw new Error(`The following properties on element ${this.localName} will not trigger updates as expected because they are set using class fields: ${e.join(", ")}. Native class fields and some compiled output will overwrite accessors used for detecting changes. See https://lit.dev/msg/class-field-shadowing for more information.`)}if(this.__instanceProperties){for(const[e,t]of this.__instanceProperties)this[e]=t;this.__instanceProperties=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,i]of e){const{wrapped:e}=i,l=this[t];!0!==e||this._$changedProperties.has(t)||void 0===l||this._$changeProperty(t,void 0,i,l)}}let t=!1;const i=this._$changedProperties;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),this.__controllers?.forEach(e=>e.hostUpdate?.()),this.update(i)):this.__markUpdated()}catch(e){throw t=!1,this.__markUpdated(),e}t&&this._$didUpdate(i)}willUpdate(e){}_$didUpdate(e){this.__controllers?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e),this.isUpdatePending&&this.constructor.enabledWarnings.includes("change-in-update")&&M("change-in-update",`Element ${this.localName} scheduled an update (generally because a property was set) after an update completed, causing a new update to be scheduled. This is inefficient and should be avoided unless the next update can only be scheduled as a side effect of the previous update.`)}__markUpdated(){this._$changedProperties=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this.__updatePromise}shouldUpdate(e){return!0}update(e){this.__reflectingProperties&&=this.__reflectingProperties.forEach(e=>this.__propertyToAttribute(e,this[e])),this.__markUpdated()}updated(e){}firstUpdated(e){}}O.elementStyles=[],O.shadowRootOptions={mode:"open"},O[H("elementProperties")]=new Map,O[H("finalized")]=new Map,k?.({ReactiveElement:O});{O.enabledWarnings=["change-in-update","async-perform-update"];const e=function(e){e.hasOwnProperty(H("enabledWarnings"))||(e.enabledWarnings=e.enabledWarnings.slice())};O.enableWarning=function(t){e(this),this.enabledWarnings.includes(t)||this.enabledWarnings.push(t)},O.disableWarning=function(t){e(this);const i=this.enabledWarnings.indexOf(t);i>=0&&this.enabledWarnings.splice(i,1)}}(Z.reactiveElementVersions??=[]).push("2.1.2"),Z.reactiveElementVersions.length>1&&queueMicrotask(()=>{M("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});
7
7
  /**
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
10
10
  * SPDX-License-Identifier: BSD-3-Clause
11
11
  */
12
- const z=globalThis,B=e=>{z.emitLitDebugLogEvents&&z.dispatchEvent(new CustomEvent("lit-debug",{detail:e}))};let L,A=0;z.litIssuedWarnings??=new Set,L=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",z.litIssuedWarnings.has(t)||z.litIssuedWarnings.has(e)||(console.warn(t),z.litIssuedWarnings.add(t))},queueMicrotask(()=>{L("dev-mode","Lit is in dev mode. Not recommended for production!")});const j=z.ShadyDOM?.inUse&&!0===z.ShadyDOM?.noPatch?z.ShadyDOM.wrap:e=>e,I=z.trustedTypes,E=I?I.createPolicy("lit-html",{createHTML:e=>e}):void 0,T=e=>e,F=(e,t,i)=>T,R=e=>{if(pe!==F)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");pe=e},Y=()=>{pe=F},N=(e,t,i)=>pe(e,t,i),U="$lit$",W=`lit$${Math.random().toFixed(9).slice(2)}$`,q="?"+W,K=`<${q}>`,J=document,G=()=>J.createComment(""),X=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Q=Array.isArray,ee="[ \t\n\f\r]",te=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ie=/-->/g,le=/>/g,ne=new RegExp(`>|${ee}(?:([^\\s"'>=/]+)(${ee}*=${ee}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),re=/'/g,ae=/"/g,oe=/^(?:script|style|textarea|title)$/i,se=(ce=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$)&&L("","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$:ce,strings:e,values:t}));var ce;const de=Symbol.for("lit-noChange"),he=Symbol.for("lit-nothing"),ue=new WeakMap,ve=J.createTreeWalker(J,129);let pe=F;function fe(e,t){if(!Q(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!==E?E.createHTML(t):t}class ge{constructor({strings:e,_$litType$:t},i){let l;this.parts=[];let n=0,r=0;const a=e.length-1,o=this.parts,[s,c]=((e,t)=>{const i=e.length-1,l=[];let n,r=2===t?"<svg>":3===t?"<math>":"",a=te;for(let t=0;t<i;t++){const i=e[t];let o,s,c=-1,d=0;for(;d<i.length&&(a.lastIndex=d,s=a.exec(i),null!==s);)if(d=a.lastIndex,a===te){if("!--"===s[1])a=ie;else if(void 0!==s[1])a=le;else if(void 0!==s[2])oe.test(s[2])&&(n=new RegExp(`</${s[2]}`,"g")),a=ne;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 a===ne?">"===s[0]?(a=n??te,c=-1):void 0===s[1]?c=-2:(c=a.lastIndex-s[2].length,o=s[1],a=void 0===s[3]?ne:'"'===s[3]?ae:re):a===ae||a===re?a=ne:a===ie||a===le?a=te:(a=ne,n=void 0);console.assert(-1===c||a===ne||a===re||a===ae,"unexpected parse state B");const h=a===ne&&e[t+1].startsWith("/>")?" ":"";r+=a===te?i+K:c>=0?(l.push(o),i.slice(0,c)+U+i.slice(c)+W+h):i+W+(-2===c?t:h)}return[fe(e,r+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),l]})(e,t);if(this.el=ge.createElement(s,i),ve.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(l=ve.nextNode())&&o.length<a;){if(1===l.nodeType){{const e=l.localName;if(/^(?:textarea|template)$/i.test(e)&&l.innerHTML.includes(W)){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);L("",t)}}if(l.hasAttributes())for(const e of l.getAttributeNames())if(e.endsWith(U)){const t=c[r++],i=l.getAttribute(e).split(W),a=/([.?@])?(.*)/.exec(t);o.push({type:1,index:n,name:a[2],strings:i,ctor:"."===a[1]?ye:"?"===a[1]?xe:"@"===a[1]?Ce:be}),l.removeAttribute(e)}else e.startsWith(W)&&(o.push({type:6,index:n}),l.removeAttribute(e));if(oe.test(l.tagName)){const e=l.textContent.split(W),t=e.length-1;if(t>0){l.textContent=I?I.emptyScript:"";for(let i=0;i<t;i++)l.append(e[i],G()),ve.nextNode(),o.push({type:2,index:++n});l.append(e[t],G())}}}else if(8===l.nodeType){if(l.data===q)o.push({type:2,index:n});else{let e=-1;for(;-1!==(e=l.data.indexOf(W,e+1));)o.push({type:7,index:n}),e+=W.length-1}}n++}if(c.length!==r)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("${...}")+"`");B&&B({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:e})}static createElement(e,t){const i=J.createElement("template");return i.innerHTML=e,i}}function me(e,t,i=e,l){if(t===de)return t;let n=void 0!==l?i.__directives?.[l]:i.__directive;const r=X(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$notifyDirectiveConnectionChanged?.(!1),void 0===r?n=void 0:(n=new r(e),n._$initialize(e,i,l)),void 0!==l?(i.__directives??=[])[l]=n:i.__directive=n),void 0!==n&&(t=me(e,n._$resolve(e,t.values),n,l)),t}class we{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:i}=this._$template,l=(e?.creationScope??J).importNode(t,!0);ve.currentNode=l;let n=ve.nextNode(),r=0,a=0,o=i[0];for(;void 0!==o;){if(r===o.index){let t;2===o.type?t=new _e(n,n.nextSibling,this,e):1===o.type?t=new o.ctor(n,o.name,o.strings,this,e):6===o.type&&(t=new Ze(n,this,e)),this._$parts.push(t),o=i[++a]}r!==o?.index&&(n=ve.nextNode(),r++)}return ve.currentNode=J,l}_update(e){let t=0;for(const i of this._$parts)void 0!==i&&(B&&B({kind:"set part",part:i,value:e[t],valueIndex:t,values:e,templateInstance:this}),void 0!==i.strings?(i._$setValue(e,i,t),t+=i.strings.length-2):i._$setValue(e[t])),t++}}class _e{get _$isConnected(){return this._$parent?._$isConnected??this.__isConnected}constructor(e,t,i,l){this.type=2,this._$committedValue=he,this._$disconnectableChildren=void 0,this._$startNode=e,this._$endNode=t,this._$parent=i,this.options=l,this.__isConnected=l?.isConnected??!0,this._textSanitizer=void 0}get parentNode(){let e=j(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=me(this,e,t),X(e))e===he||null==e||""===e?(this._$committedValue!==he&&(B&&B({kind:"commit nothing to child",start:this._$startNode,end:this._$endNode,parent:this._$parent,options:this.options}),this._$clear()),this._$committedValue=he):e!==this._$committedValue&&e!==de&&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=>Q(e)||"function"==typeof e?.[Symbol.iterator])(e)?this._commitIterable(e):this._commitText(e)}_insert(e){return j(j(this._$startNode).parentNode).insertBefore(e,this._$endNode)}_commitNode(e){if(this._$committedValue!==e){if(this._$clear(),pe!==F){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)}}B&&B({kind:"commit node",start:this._$startNode,parent:this._$parent,value:e,options:this.options}),this._$committedValue=this._insert(e)}}_commitText(e){if(this._$committedValue!==he&&X(this._$committedValue)){const t=j(this._$startNode).nextSibling;void 0===this._textSanitizer&&(this._textSanitizer=N(t,"data","property")),e=this._textSanitizer(e),B&&B({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}else{const t=J.createTextNode("");this._commitNode(t),void 0===this._textSanitizer&&(this._textSanitizer=N(t,"data","property")),e=this._textSanitizer(e),B&&B({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}this._$committedValue=e}_commitTemplateResult(e){const{values:t,_$litType$:i}=e,l="number"==typeof i?this._$getTemplate(e):(void 0===i.el&&(i.el=ge.createElement(fe(i.h,i.h[0]),this.options)),i);if(this._$committedValue?._$template===l)B&&B({kind:"template updating",template:l,instance:this._$committedValue,parts:this._$committedValue._$parts,options:this.options,values:t}),this._$committedValue._update(t);else{const e=new we(l,this),i=e._clone(this.options);B&&B({kind:"template instantiated",template:l,instance:e,parts:e._$parts,options:this.options,fragment:i,values:t}),e._update(t),B&&B({kind:"template instantiated and updated",template:l,instance:e,parts:e._$parts,options:this.options,fragment:i,values:t}),this._commitNode(i),this._$committedValue=e}}_$getTemplate(e){let t=ue.get(e.strings);return void 0===t&&ue.set(e.strings,t=new ge(e)),t}_commitIterable(e){Q(this._$committedValue)||(this._$committedValue=[],this._$clear());const t=this._$committedValue;let i,l=0;for(const n of e)l===t.length?t.push(i=new _e(this._insert(G()),this._insert(G()),this,this.options)):i=t[l],i._$setValue(n),l++;l<t.length&&(this._$clear(i&&j(i._$endNode).nextSibling,l),t.length=l)}_$clear(e=j(this._$startNode).nextSibling,t){for(this._$notifyConnectionChanged?.(!1,!0,t);e!==this._$endNode;){const t=j(e).nextSibling;j(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 be{get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}constructor(e,t,i,l,n){this.type=1,this._$committedValue=he,this._$disconnectableChildren=void 0,this.element=e,this.name=t,this._$parent=l,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$committedValue=new Array(i.length-1).fill(new String),this.strings=i):this._$committedValue=he,this._sanitizer=void 0}_$setValue(e,t=this,i,l){const n=this.strings;let r=!1;if(void 0===n)e=me(this,e,t,0),r=!X(e)||e!==this._$committedValue&&e!==de,r&&(this._$committedValue=e);else{const l=e;let a,o;for(e=n[0],a=0;a<n.length-1;a++)o=me(this,l[i+a],t,a),o===de&&(o=this._$committedValue[a]),r||=!X(o)||o!==this._$committedValue[a],o===he?e=he:e!==he&&(e+=(o??"")+n[a+1]),this._$committedValue[a]=o}r&&!l&&this._commitValue(e)}_commitValue(e){e===he?j(this.element).removeAttribute(this.name):(void 0===this._sanitizer&&(this._sanitizer=pe(this.element,this.name,"attribute")),e=this._sanitizer(e??""),B&&B({kind:"commit attribute",element:this.element,name:this.name,value:e,options:this.options}),j(this.element).setAttribute(this.name,e??""))}}class ye extends be{constructor(){super(...arguments),this.type=3}_commitValue(e){void 0===this._sanitizer&&(this._sanitizer=pe(this.element,this.name,"property")),e=this._sanitizer(e),B&&B({kind:"commit property",element:this.element,name:this.name,value:e,options:this.options}),this.element[this.name]=e===he?void 0:e}}class xe extends be{constructor(){super(...arguments),this.type=4}_commitValue(e){B&&B({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!e||e===he),options:this.options}),j(this.element).toggleAttribute(this.name,!!e&&e!==he)}}class Ce extends be{constructor(e,t,i,l,n){if(super(e,t,i,l,n),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=me(this,e,t,0)??he)===de)return;const i=this._$committedValue,l=e===he&&i!==he||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==he&&(i===he||l);B&&B({kind:"commit event listener",element:this.element,name:this.name,value:e,options:this.options,removeListener:l,addListener:n,oldListener:i}),l&&this.element.removeEventListener(this.name,this,i),n&&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 Ze{constructor(e,t,i){this.element=e,this.type=6,this._$disconnectableChildren=void 0,this._$parent=t,this.options=i}get _$isConnected(){return this._$parent._$isConnected}_$setValue(e){B&&B({kind:"commit to element binding",element:this.element,value:e,options:this.options}),me(this,e)}}const Me=z.litHtmlPolyfillSupportDevMode;Me?.(ge,_e),(z.litHtmlVersions??=[]).push("3.3.2"),z.litHtmlVersions.length>1&&queueMicrotask(()=>{L("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});const Ve=(e,t,i)=>{if(null==t)throw new TypeError(`The container to render into may not be ${t}`);const l=A++,n=i?.renderBefore??t;let r=n._$litPart$;if(B&&B({kind:"begin render",id:l,value:e,container:t,options:i,part:r}),void 0===r){const e=i?.renderBefore??null;n._$litPart$=r=new _e(t.insertBefore(G(),e),e,void 0,i??{})}return r._$setValue(e),B&&B({kind:"end render",id:l,value:e,container:t,options:i,part:r}),r};Ve.setSanitizer=R,Ve.createSanitizer=N,Ve._testOnlyClearSanitizerFactoryDoNotCallOrElse=Y;
12
+ const z=globalThis,B=e=>{z.emitLitDebugLogEvents&&z.dispatchEvent(new CustomEvent("lit-debug",{detail:e}))};let L,A=0;z.litIssuedWarnings??=new Set,L=(e,t)=>{t+=e?` See https://lit.dev/msg/${e} for more information.`:"",z.litIssuedWarnings.has(t)||z.litIssuedWarnings.has(e)||(console.warn(t),z.litIssuedWarnings.add(t))},queueMicrotask(()=>{L("dev-mode","Lit is in dev mode. Not recommended for production!")});const j=z.ShadyDOM?.inUse&&!0===z.ShadyDOM?.noPatch?z.ShadyDOM.wrap:e=>e,I=z.trustedTypes,E=I?I.createPolicy("lit-html",{createHTML:e=>e}):void 0,T=e=>e,F=(e,t,i)=>T,R=e=>{if(pe!==F)throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");pe=e},Y=()=>{pe=F},N=(e,t,i)=>pe(e,t,i),U="$lit$",W=`lit$${Math.random().toFixed(9).slice(2)}$`,q="?"+W,K=`<${q}>`,J=document,G=()=>J.createComment(""),X=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Q=Array.isArray,ee="[ \t\n\f\r]",te=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ie=/-->/g,le=/>/g,ne=new RegExp(`>|${ee}(?:([^\\s"'>=/]+)(${ee}*=${ee}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ae=/'/g,re=/"/g,oe=/^(?:script|style|textarea|title)$/i,se=(ce=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$)&&L("","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$:ce,strings:e,values:t}));var ce;const de=Symbol.for("lit-noChange"),he=Symbol.for("lit-nothing"),ue=new WeakMap,ve=J.createTreeWalker(J,129);let pe=F;function fe(e,t){if(!Q(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!==E?E.createHTML(t):t}class ge{constructor({strings:e,_$litType$:t},i){let l;this.parts=[];let n=0,a=0;const r=e.length-1,o=this.parts,[s,c]=((e,t)=>{const i=e.length-1,l=[];let n,a=2===t?"<svg>":3===t?"<math>":"",r=te;for(let t=0;t<i;t++){const i=e[t];let o,s,c=-1,d=0;for(;d<i.length&&(r.lastIndex=d,s=r.exec(i),null!==s);)if(d=r.lastIndex,r===te){if("!--"===s[1])r=ie;else if(void 0!==s[1])r=le;else if(void 0!==s[2])oe.test(s[2])&&(n=new RegExp(`</${s[2]}`,"g")),r=ne;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 r===ne?">"===s[0]?(r=n??te,c=-1):void 0===s[1]?c=-2:(c=r.lastIndex-s[2].length,o=s[1],r=void 0===s[3]?ne:'"'===s[3]?re:ae):r===re||r===ae?r=ne:r===ie||r===le?r=te:(r=ne,n=void 0);console.assert(-1===c||r===ne||r===ae||r===re,"unexpected parse state B");const h=r===ne&&e[t+1].startsWith("/>")?" ":"";a+=r===te?i+K:c>=0?(l.push(o),i.slice(0,c)+U+i.slice(c)+W+h):i+W+(-2===c?t:h)}return[fe(e,a+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),l]})(e,t);if(this.el=ge.createElement(s,i),ve.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(l=ve.nextNode())&&o.length<r;){if(1===l.nodeType){{const e=l.localName;if(/^(?:textarea|template)$/i.test(e)&&l.innerHTML.includes(W)){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);L("",t)}}if(l.hasAttributes())for(const e of l.getAttributeNames())if(e.endsWith(U)){const t=c[a++],i=l.getAttribute(e).split(W),r=/([.?@])?(.*)/.exec(t);o.push({type:1,index:n,name:r[2],strings:i,ctor:"."===r[1]?ye:"?"===r[1]?xe:"@"===r[1]?Ce:be}),l.removeAttribute(e)}else e.startsWith(W)&&(o.push({type:6,index:n}),l.removeAttribute(e));if(oe.test(l.tagName)){const e=l.textContent.split(W),t=e.length-1;if(t>0){l.textContent=I?I.emptyScript:"";for(let i=0;i<t;i++)l.append(e[i],G()),ve.nextNode(),o.push({type:2,index:++n});l.append(e[t],G())}}}else if(8===l.nodeType){if(l.data===q)o.push({type:2,index:n});else{let e=-1;for(;-1!==(e=l.data.indexOf(W,e+1));)o.push({type:7,index:n}),e+=W.length-1}}n++}if(c.length!==a)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("${...}")+"`");B&&B({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:e})}static createElement(e,t){const i=J.createElement("template");return i.innerHTML=e,i}}function me(e,t,i=e,l){if(t===de)return t;let n=void 0!==l?i.__directives?.[l]:i.__directive;const a=X(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$notifyDirectiveConnectionChanged?.(!1),void 0===a?n=void 0:(n=new a(e),n._$initialize(e,i,l)),void 0!==l?(i.__directives??=[])[l]=n:i.__directive=n),void 0!==n&&(t=me(e,n._$resolve(e,t.values),n,l)),t}class we{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:i}=this._$template,l=(e?.creationScope??J).importNode(t,!0);ve.currentNode=l;let n=ve.nextNode(),a=0,r=0,o=i[0];for(;void 0!==o;){if(a===o.index){let t;2===o.type?t=new _e(n,n.nextSibling,this,e):1===o.type?t=new o.ctor(n,o.name,o.strings,this,e):6===o.type&&(t=new Ze(n,this,e)),this._$parts.push(t),o=i[++r]}a!==o?.index&&(n=ve.nextNode(),a++)}return ve.currentNode=J,l}_update(e){let t=0;for(const i of this._$parts)void 0!==i&&(B&&B({kind:"set part",part:i,value:e[t],valueIndex:t,values:e,templateInstance:this}),void 0!==i.strings?(i._$setValue(e,i,t),t+=i.strings.length-2):i._$setValue(e[t])),t++}}class _e{get _$isConnected(){return this._$parent?._$isConnected??this.__isConnected}constructor(e,t,i,l){this.type=2,this._$committedValue=he,this._$disconnectableChildren=void 0,this._$startNode=e,this._$endNode=t,this._$parent=i,this.options=l,this.__isConnected=l?.isConnected??!0,this._textSanitizer=void 0}get parentNode(){let e=j(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=me(this,e,t),X(e))e===he||null==e||""===e?(this._$committedValue!==he&&(B&&B({kind:"commit nothing to child",start:this._$startNode,end:this._$endNode,parent:this._$parent,options:this.options}),this._$clear()),this._$committedValue=he):e!==this._$committedValue&&e!==de&&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=>Q(e)||"function"==typeof e?.[Symbol.iterator])(e)?this._commitIterable(e):this._commitText(e)}_insert(e){return j(j(this._$startNode).parentNode).insertBefore(e,this._$endNode)}_commitNode(e){if(this._$committedValue!==e){if(this._$clear(),pe!==F){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)}}B&&B({kind:"commit node",start:this._$startNode,parent:this._$parent,value:e,options:this.options}),this._$committedValue=this._insert(e)}}_commitText(e){if(this._$committedValue!==he&&X(this._$committedValue)){const t=j(this._$startNode).nextSibling;void 0===this._textSanitizer&&(this._textSanitizer=N(t,"data","property")),e=this._textSanitizer(e),B&&B({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}else{const t=J.createTextNode("");this._commitNode(t),void 0===this._textSanitizer&&(this._textSanitizer=N(t,"data","property")),e=this._textSanitizer(e),B&&B({kind:"commit text",node:t,value:e,options:this.options}),t.data=e}this._$committedValue=e}_commitTemplateResult(e){const{values:t,_$litType$:i}=e,l="number"==typeof i?this._$getTemplate(e):(void 0===i.el&&(i.el=ge.createElement(fe(i.h,i.h[0]),this.options)),i);if(this._$committedValue?._$template===l)B&&B({kind:"template updating",template:l,instance:this._$committedValue,parts:this._$committedValue._$parts,options:this.options,values:t}),this._$committedValue._update(t);else{const e=new we(l,this),i=e._clone(this.options);B&&B({kind:"template instantiated",template:l,instance:e,parts:e._$parts,options:this.options,fragment:i,values:t}),e._update(t),B&&B({kind:"template instantiated and updated",template:l,instance:e,parts:e._$parts,options:this.options,fragment:i,values:t}),this._commitNode(i),this._$committedValue=e}}_$getTemplate(e){let t=ue.get(e.strings);return void 0===t&&ue.set(e.strings,t=new ge(e)),t}_commitIterable(e){Q(this._$committedValue)||(this._$committedValue=[],this._$clear());const t=this._$committedValue;let i,l=0;for(const n of e)l===t.length?t.push(i=new _e(this._insert(G()),this._insert(G()),this,this.options)):i=t[l],i._$setValue(n),l++;l<t.length&&(this._$clear(i&&j(i._$endNode).nextSibling,l),t.length=l)}_$clear(e=j(this._$startNode).nextSibling,t){for(this._$notifyConnectionChanged?.(!1,!0,t);e!==this._$endNode;){const t=j(e).nextSibling;j(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 be{get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}constructor(e,t,i,l,n){this.type=1,this._$committedValue=he,this._$disconnectableChildren=void 0,this.element=e,this.name=t,this._$parent=l,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$committedValue=new Array(i.length-1).fill(new String),this.strings=i):this._$committedValue=he,this._sanitizer=void 0}_$setValue(e,t=this,i,l){const n=this.strings;let a=!1;if(void 0===n)e=me(this,e,t,0),a=!X(e)||e!==this._$committedValue&&e!==de,a&&(this._$committedValue=e);else{const l=e;let r,o;for(e=n[0],r=0;r<n.length-1;r++)o=me(this,l[i+r],t,r),o===de&&(o=this._$committedValue[r]),a||=!X(o)||o!==this._$committedValue[r],o===he?e=he:e!==he&&(e+=(o??"")+n[r+1]),this._$committedValue[r]=o}a&&!l&&this._commitValue(e)}_commitValue(e){e===he?j(this.element).removeAttribute(this.name):(void 0===this._sanitizer&&(this._sanitizer=pe(this.element,this.name,"attribute")),e=this._sanitizer(e??""),B&&B({kind:"commit attribute",element:this.element,name:this.name,value:e,options:this.options}),j(this.element).setAttribute(this.name,e??""))}}class ye extends be{constructor(){super(...arguments),this.type=3}_commitValue(e){void 0===this._sanitizer&&(this._sanitizer=pe(this.element,this.name,"property")),e=this._sanitizer(e),B&&B({kind:"commit property",element:this.element,name:this.name,value:e,options:this.options}),this.element[this.name]=e===he?void 0:e}}class xe extends be{constructor(){super(...arguments),this.type=4}_commitValue(e){B&&B({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!e||e===he),options:this.options}),j(this.element).toggleAttribute(this.name,!!e&&e!==he)}}class Ce extends be{constructor(e,t,i,l,n){if(super(e,t,i,l,n),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=me(this,e,t,0)??he)===de)return;const i=this._$committedValue,l=e===he&&i!==he||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==he&&(i===he||l);B&&B({kind:"commit event listener",element:this.element,name:this.name,value:e,options:this.options,removeListener:l,addListener:n,oldListener:i}),l&&this.element.removeEventListener(this.name,this,i),n&&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 Ze{constructor(e,t,i){this.element=e,this.type=6,this._$disconnectableChildren=void 0,this._$parent=t,this.options=i}get _$isConnected(){return this._$parent._$isConnected}_$setValue(e){B&&B({kind:"commit to element binding",element:this.element,value:e,options:this.options}),me(this,e)}}const Me=z.litHtmlPolyfillSupportDevMode;Me?.(ge,_e),(z.litHtmlVersions??=[]).push("3.3.2"),z.litHtmlVersions.length>1&&queueMicrotask(()=>{L("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")});const Ve=(e,t,i)=>{if(null==t)throw new TypeError(`The container to render into may not be ${t}`);const l=A++,n=i?.renderBefore??t;let a=n._$litPart$;if(B&&B({kind:"begin render",id:l,value:e,container:t,options:i,part:a}),void 0===a){const e=i?.renderBefore??null;n._$litPart$=a=new _e(t.insertBefore(G(),e),e,void 0,i??{})}return a._$setValue(e),B&&B({kind:"end render",id:l,value:e,container:t,options:i,part:a}),a};Ve.setSanitizer=R,Ve.createSanitizer=N,Ve._testOnlyClearSanitizerFactoryDoNotCallOrElse=Y;
13
13
  /**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
@@ -21,7 +21,7 @@ const $e=globalThis;let ke;$e.litIssuedWarnings??=new Set,ke=(e,t)=>{t+=` See ht
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
23
  */
24
- let De;Se?.({LitElement:He}),($e.litElementVersions??=[]).push("4.2.2"),$e.litElementVersions.length>1&&queueMicrotask(()=>{ke("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")}),globalThis.litIssuedWarnings??=new Set,De=(e,t)=>{t+=` See https://lit.dev/msg/${e} for more information.`,globalThis.litIssuedWarnings.has(t)||globalThis.litIssuedWarnings.has(e)||(console.warn(t),globalThis.litIssuedWarnings.add(t))};const Oe={attribute:!0,type:String,converter:P,reflect:!1,hasChanged:S},ze=(e=Oe,t,i)=>{const{kind:l,metadata:n}=i;null==n&&De("missing-class-metadata",`The class ${t} is missing decorator metadata. This could mean that you're using a compiler that supports decorators but doesn't support decorator metadata, such as TypeScript 5.1. Please update your compiler.`);let r=globalThis.litPropertyMetadata.get(n);if(void 0===r&&globalThis.litPropertyMetadata.set(n,r=new Map),"setter"===l&&((e=Object.create(e)).wrapped=!0),r.set(i.name,e),"accessor"===l){const{name:l}=i;return{set(i){const n=t.get.call(this);t.set.call(this,i),this.requestUpdate(l,n,e,!0,i)},init(t){return void 0!==t&&this._$changeProperty(l,void 0,e,t),t}}}if("setter"===l){const{name:l}=i;return function(i){const n=this[l];t.call(this,i),this.requestUpdate(l,n,e,!0,i)}}throw new Error(`Unsupported decorator location: ${l}`)};function Be(e){return(t,i)=>"object"==typeof i?ze(e,t,i):((e,t,i)=>{const l=t.hasOwnProperty(i);return t.constructor.createProperty(i,e),l?Object.getOwnPropertyDescriptor(t,i):void 0})(e,t,i)}
24
+ let De;Se?.({LitElement:He}),($e.litElementVersions??=[]).push("4.2.2"),$e.litElementVersions.length>1&&queueMicrotask(()=>{ke("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")}),globalThis.litIssuedWarnings??=new Set,De=(e,t)=>{t+=` See https://lit.dev/msg/${e} for more information.`,globalThis.litIssuedWarnings.has(t)||globalThis.litIssuedWarnings.has(e)||(console.warn(t),globalThis.litIssuedWarnings.add(t))};const Oe={attribute:!0,type:String,converter:P,reflect:!1,hasChanged:S},ze=(e=Oe,t,i)=>{const{kind:l,metadata:n}=i;null==n&&De("missing-class-metadata",`The class ${t} is missing decorator metadata. This could mean that you're using a compiler that supports decorators but doesn't support decorator metadata, such as TypeScript 5.1. Please update your compiler.`);let a=globalThis.litPropertyMetadata.get(n);if(void 0===a&&globalThis.litPropertyMetadata.set(n,a=new Map),"setter"===l&&((e=Object.create(e)).wrapped=!0),a.set(i.name,e),"accessor"===l){const{name:l}=i;return{set(i){const n=t.get.call(this);t.set.call(this,i),this.requestUpdate(l,n,e,!0,i)},init(t){return void 0!==t&&this._$changeProperty(l,void 0,e,t),t}}}if("setter"===l){const{name:l}=i;return function(i){const n=this[l];t.call(this,i),this.requestUpdate(l,n,e,!0,i)}}throw new Error(`Unsupported decorator location: ${l}`)};function Be(e){return(t,i)=>"object"==typeof i?ze(e,t,i):((e,t,i)=>{const l=t.hasOwnProperty(i);return t.constructor.createProperty(i,e),l?Object.getOwnPropertyDescriptor(t,i):void 0})(e,t,i)}
25
25
  /**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
@@ -36,7 +36,7 @@ let De;Se?.({LitElement:He}),($e.litElementVersions??=[]).push("4.2.2"),$e.litEl
36
36
  * @license
37
37
  * Copyright 2017 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */let je;function Ie(e,t){return(i,l,n)=>{const r=i=>{const n=i.renderRoot?.querySelector(e)??null;if(null===n&&t&&!i.hasUpdated){const t="object"==typeof l?l.name:l;je("",`@query'd field ${JSON.stringify(String(t))} with the 'cache' flag set for selector '${e}' 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 n};if(t){const{get:e,set:t}="object"==typeof l?i:n??(()=>{const e=Symbol(`${String(l)} (@query() cache)`);return{get(){return this[e]},set(t){this[e]=t}}})();return Ae(i,l,{get(){let i=e.call(this);return void 0===i&&(i=r(this),(null!==i||this.hasUpdated)&&t.call(this,i)),i}})}return Ae(i,l,{get(){return r(this)}})}}
39
+ */let je;function Ie(e,t){return(i,l,n)=>{const a=i=>{const n=i.renderRoot?.querySelector(e)??null;if(null===n&&t&&!i.hasUpdated){const t="object"==typeof l?l.name:l;je("",`@query'd field ${JSON.stringify(String(t))} with the 'cache' flag set for selector '${e}' 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 n};if(t){const{get:e,set:t}="object"==typeof l?i:n??(()=>{const e=Symbol(`${String(l)} (@query() cache)`);return{get(){return this[e]},set(t){this[e]=t}}})();return Ae(i,l,{get(){let i=e.call(this);return void 0===i&&(i=a(this),(null!==i||this.hasUpdated)&&t.call(this,i)),i}})}return Ae(i,l,{get(){return a(this)}})}}
40
40
  /**
41
41
  * @license
42
42
  * Copyright 2017 Google LLC
@@ -67,17 +67,17 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
67
67
  * @license
68
68
  * Copyright 2020 Google LLC
69
69
  * SPDX-License-Identifier: BSD-3-Clause
70
- */const lt=()=>new nt;class nt{}const rt=new WeakMap;const at=Ne(class extends it{render(e){return he}update(e,[t]){const i=t!==this._ref;return i&&void 0!==this._ref&&this._updateRefValue(void 0),(i||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=e.options?.host,this._updateRefValue(this._element=e.element)),he}_updateRefValue(e){if(this.isConnected||(e=void 0),"function"==typeof this._ref){const t=this._context??globalThis;let i=rt.get(t);void 0===i&&(i=new WeakMap,rt.set(t,i)),void 0!==i.get(this._ref)&&this._ref.call(this._context,void 0),i.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?rt.get(this._context??globalThis)?.get(this._ref):this._ref?.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}}),ot=Math.min,st=Math.max,ct=Math.round,dt=Math.floor,ht=e=>({x:e,y:e}),ut={left:"right",right:"left",bottom:"top",top:"bottom"},vt={start:"end",end:"start"};function pt(e,t,i){return st(e,ot(t,i))}function ft(e,t){return"function"==typeof e?e(t):e}function gt(e){return e.split("-")[0]}function mt(e){return e.split("-")[1]}function wt(e){return"x"===e?"y":"x"}function _t(e){return"y"===e?"height":"width"}const bt=new Set(["top","bottom"]);function yt(e){return bt.has(gt(e))?"y":"x"}function xt(e){return wt(yt(e))}function Ct(e,t,i){void 0===i&&(i=!1);const l=mt(e),n=xt(e),r=_t(n);let a="x"===n?l===(i?"end":"start")?"right":"left":"start"===l?"bottom":"top";return t.reference[r]>t.floating[r]&&(a=Pt(a)),[a,Pt(a)]}function Zt(e){return e.replace(/start|end/g,e=>vt[e])}const Mt=["left","right"],Vt=["right","left"],$t=["top","bottom"],kt=["bottom","top"];function Ht(e,t,i,l){const n=mt(e);let r=function(e,t,i){switch(e){case"top":case"bottom":return i?t?Vt:Mt:t?Mt:Vt;case"left":case"right":return t?$t:kt;default:return[]}}(gt(e),"start"===i,l);return n&&(r=r.map(e=>e+"-"+n),t&&(r=r.concat(r.map(Zt)))),r}function Pt(e){return e.replace(/left|right|bottom|top/g,e=>ut[e])}function St(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 Dt(e){const{x:t,y:i,width:l,height:n}=e;return{width:l,height:n,top:i,left:t,right:t+l,bottom:i+n,x:t,y:i}}function Ot(e,t,i){let{reference:l,floating:n}=e;const r=yt(t),a=xt(t),o=_t(a),s=gt(t),c="y"===r,d=l.x+l.width/2-n.width/2,h=l.y+l.height/2-n.height/2,u=l[o]/2-n[o]/2;let v;switch(s){case"top":v={x:d,y:l.y-n.height};break;case"bottom":v={x:d,y:l.y+l.height};break;case"right":v={x:l.x+l.width,y:h};break;case"left":v={x:l.x-n.width,y:h};break;default:v={x:l.x,y:l.y}}switch(mt(t)){case"start":v[a]-=u*(i&&c?-1:1);break;case"end":v[a]+=u*(i&&c?-1:1)}return v}async function zt(e,t){var i;void 0===t&&(t={});const{x:l,y:n,platform:r,rects:a,elements:o,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:u=!1,padding:v=0}=ft(t,e),p=St(v),f=o[u?"floating"===h?"reference":"floating":h],g=Dt(await r.getClippingRect({element:null==(i=await(null==r.isElement?void 0:r.isElement(f)))||i?f:f.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(o.floating)),boundary:c,rootBoundary:d,strategy:s})),m="floating"===h?{x:l,y:n,width:a.floating.width,height:a.floating.height}:a.reference,w=await(null==r.getOffsetParent?void 0:r.getOffsetParent(o.floating)),_=await(null==r.isElement?void 0:r.isElement(w))&&await(null==r.getScale?void 0:r.getScale(w))||{x:1,y:1},b=Dt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:m,offsetParent:w,strategy:s}):m);return{top:(g.top-b.top+p.top)/_.y,bottom:(b.bottom-g.bottom+p.bottom)/_.y,left:(g.left-b.left+p.left)/_.x,right:(b.right-g.right+p.right)/_.x}}const Bt=new Set(["left","top"]);function Lt(){return"undefined"!=typeof window}function At(e){return Et(e)?(e.nodeName||"").toLowerCase():"#document"}function jt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function It(e){var t;return null==(t=(Et(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Et(e){return!!Lt()&&(e instanceof Node||e instanceof jt(e).Node)}function Tt(e){return!!Lt()&&(e instanceof Element||e instanceof jt(e).Element)}function Ft(e){return!!Lt()&&(e instanceof HTMLElement||e instanceof jt(e).HTMLElement)}function Rt(e){return!(!Lt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof jt(e).ShadowRoot)}const Yt=new Set(["inline","contents"]);function Nt(e){const{overflow:t,overflowX:i,overflowY:l,display:n}=li(e);return/auto|scroll|overlay|hidden|clip/.test(t+l+i)&&!Yt.has(n)}const Ut=new Set(["table","td","th"]);function Wt(e){return Ut.has(At(e))}const qt=[":popover-open",":modal"];function Kt(e){return qt.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Jt=["transform","translate","scale","rotate","perspective"],Gt=["transform","translate","scale","rotate","perspective","filter"],Xt=["paint","layout","strict","content"];function Qt(e){const t=ei(),i=Tt(e)?li(e):e;return Jt.some(e=>!!i[e]&&"none"!==i[e])||!!i.containerType&&"normal"!==i.containerType||!t&&!!i.backdropFilter&&"none"!==i.backdropFilter||!t&&!!i.filter&&"none"!==i.filter||Gt.some(e=>(i.willChange||"").includes(e))||Xt.some(e=>(i.contain||"").includes(e))}function ei(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ti=new Set(["html","body","#document"]);function ii(e){return ti.has(At(e))}function li(e){return jt(e).getComputedStyle(e)}function ni(e){return Tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ri(e){if("html"===At(e))return e;const t=e.assignedSlot||e.parentNode||Rt(e)&&e.host||It(e);return Rt(t)?t.host:t}function ai(e){const t=ri(e);return ii(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ft(t)&&Nt(t)?t:ai(t)}function oi(e,t,i){var l;void 0===t&&(t=[]),void 0===i&&(i=!0);const n=ai(e),r=n===(null==(l=e.ownerDocument)?void 0:l.body),a=jt(n);if(r){const e=si(a);return t.concat(a,a.visualViewport||[],Nt(n)?n:[],e&&i?oi(e):[])}return t.concat(n,oi(n,[],i))}function si(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ci(e){const t=li(e);let i=parseFloat(t.width)||0,l=parseFloat(t.height)||0;const n=Ft(e),r=n?e.offsetWidth:i,a=n?e.offsetHeight:l,o=ct(i)!==r||ct(l)!==a;return o&&(i=r,l=a),{width:i,height:l,$:o}}function di(e){return Tt(e)?e:e.contextElement}function hi(e){const t=di(e);if(!Ft(t))return ht(1);const i=t.getBoundingClientRect(),{width:l,height:n,$:r}=ci(t);let a=(r?ct(i.width):i.width)/l,o=(r?ct(i.height):i.height)/n;return a&&Number.isFinite(a)||(a=1),o&&Number.isFinite(o)||(o=1),{x:a,y:o}}const ui=ht(0);function vi(e){const t=jt(e);return ei()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ui}function pi(e,t,i,l){void 0===t&&(t=!1),void 0===i&&(i=!1);const n=e.getBoundingClientRect(),r=di(e);let a=ht(1);t&&(l?Tt(l)&&(a=hi(l)):a=hi(e));const o=function(e,t,i){return void 0===t&&(t=!1),!(!i||t&&i!==jt(e))&&t}(r,i,l)?vi(r):ht(0);let s=(n.left+o.x)/a.x,c=(n.top+o.y)/a.y,d=n.width/a.x,h=n.height/a.y;if(r){const e=jt(r),t=l&&Tt(l)?jt(l):l;let i=e,n=si(i);for(;n&&l&&t!==i;){const e=hi(n),t=n.getBoundingClientRect(),l=li(n),r=t.left+(n.clientLeft+parseFloat(l.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(l.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,h*=e.y,s+=r,c+=a,i=jt(n),n=si(i)}}return Dt({width:d,height:h,x:s,y:c})}function fi(e,t){const i=ni(e).scrollLeft;return t?t.left+i:pi(It(e)).left+i}function gi(e,t){const i=e.getBoundingClientRect();return{x:i.left+t.scrollLeft-fi(e,i),y:i.top+t.scrollTop}}const mi=new Set(["absolute","fixed"]);function wi(e,t,i){let l;if("viewport"===t)l=function(e,t){const i=jt(e),l=It(e),n=i.visualViewport;let r=l.clientWidth,a=l.clientHeight,o=0,s=0;if(n){r=n.width,a=n.height;const e=ei();(!e||e&&"fixed"===t)&&(o=n.offsetLeft,s=n.offsetTop)}const c=fi(l);if(c<=0){const e=l.ownerDocument,t=e.body,i=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(i.marginLeft)+parseFloat(i.marginRight)||0,a=Math.abs(l.clientWidth-t.clientWidth-n);a<=25&&(r-=a)}else c<=25&&(r+=c);return{width:r,height:a,x:o,y:s}}(e,i);else if("document"===t)l=function(e){const t=It(e),i=ni(e),l=e.ownerDocument.body,n=st(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),r=st(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight);let a=-i.scrollLeft+fi(e);const o=-i.scrollTop;return"rtl"===li(l).direction&&(a+=st(t.clientWidth,l.clientWidth)-n),{width:n,height:r,x:a,y:o}}(It(e));else if(Tt(t))l=function(e,t){const i=pi(e,!0,"fixed"===t),l=i.top+e.clientTop,n=i.left+e.clientLeft,r=Ft(e)?hi(e):ht(1);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:n*r.x,y:l*r.y}}(t,i);else{const i=vi(e);l={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Dt(l)}function _i(e,t){const i=ri(e);return!(i===t||!Tt(i)||ii(i))&&("fixed"===li(i).position||_i(i,t))}function bi(e,t,i){const l=Ft(t),n=It(t),r="fixed"===i,a=pi(e,!0,r,t);let o={scrollLeft:0,scrollTop:0};const s=ht(0);function c(){s.x=fi(n)}if(l||!l&&!r)if(("body"!==At(t)||Nt(n))&&(o=ni(t)),l){const e=pi(t,!0,r,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else n&&c();r&&!l&&n&&c();const d=!n||l||r?ht(0):gi(n,o);return{x:a.left+o.scrollLeft-s.x-d.x,y:a.top+o.scrollTop-s.y-d.y,width:a.width,height:a.height}}function yi(e){return"static"===li(e).position}function xi(e,t){if(!Ft(e)||"fixed"===li(e).position)return null;if(t)return t(e);let i=e.offsetParent;return It(e)===i&&(i=i.ownerDocument.body),i}function Ci(e,t){const i=jt(e);if(Kt(e))return i;if(!Ft(e)){let t=ri(e);for(;t&&!ii(t);){if(Tt(t)&&!yi(t))return t;t=ri(t)}return i}let l=xi(e,t);for(;l&&Wt(l)&&yi(l);)l=xi(l,t);return l&&ii(l)&&yi(l)&&!Qt(l)?i:l||function(e){let t=ri(e);for(;Ft(t)&&!ii(t);){if(Qt(t))return t;if(Kt(t))return null;t=ri(t)}return null}(e)||i}const Zi={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:i,offsetParent:l,strategy:n}=e;const r="fixed"===n,a=It(l),o=!!t&&Kt(t.floating);if(l===a||o&&r)return i;let s={scrollLeft:0,scrollTop:0},c=ht(1);const d=ht(0),h=Ft(l);if((h||!h&&!r)&&(("body"!==At(l)||Nt(a))&&(s=ni(l)),Ft(l))){const e=pi(l);c=hi(l),d.x=e.x+l.clientLeft,d.y=e.y+l.clientTop}const u=!a||h||r?ht(0):gi(a,s);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-s.scrollLeft*c.x+d.x+u.x,y:i.y*c.y-s.scrollTop*c.y+d.y+u.y}},getDocumentElement:It,getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:l,strategy:n}=e;const r=[..."clippingAncestors"===i?Kt(t)?[]:function(e,t){const i=t.get(e);if(i)return i;let l=oi(e,[],!1).filter(e=>Tt(e)&&"body"!==At(e)),n=null;const r="fixed"===li(e).position;let a=r?ri(e):e;for(;Tt(a)&&!ii(a);){const t=li(a),i=Qt(a);i||"fixed"!==t.position||(n=null),(r?!i&&!n:!i&&"static"===t.position&&n&&mi.has(n.position)||Nt(a)&&!i&&_i(e,a))?l=l.filter(e=>e!==a):n=t,a=ri(a)}return t.set(e,l),l}(t,this._c):[].concat(i),l],a=r[0],o=r.reduce((e,i)=>{const l=wi(t,i,n);return e.top=st(l.top,e.top),e.right=ot(l.right,e.right),e.bottom=ot(l.bottom,e.bottom),e.left=st(l.left,e.left),e},wi(t,a,n));return{width:o.right-o.left,height:o.bottom-o.top,x:o.left,y:o.top}},getOffsetParent:Ci,getElementRects:async function(e){const t=this.getOffsetParent||Ci,i=this.getDimensions,l=await i(e.floating);return{reference:bi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:i}=ci(e);return{width:t,height:i}},getScale:hi,isElement:Tt,isRTL:function(e){return"rtl"===li(e).direction}};function Mi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vi(e,t,i,l){void 0===l&&(l={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:o="function"==typeof IntersectionObserver,animationFrame:s=!1}=l,c=di(e),d=n||r?[...c?oi(c):[],...oi(t)]:[];d.forEach(e=>{n&&e.addEventListener("scroll",i,{passive:!0}),r&&e.addEventListener("resize",i)});const h=c&&o?function(e,t){let i,l=null;const n=It(e);function r(){var e;clearTimeout(i),null==(e=l)||e.disconnect(),l=null}return function a(o,s){void 0===o&&(o=!1),void 0===s&&(s=1),r();const c=e.getBoundingClientRect(),{left:d,top:h,width:u,height:v}=c;if(o||t(),!u||!v)return;const p={rootMargin:-dt(h)+"px "+-dt(n.clientWidth-(d+u))+"px "+-dt(n.clientHeight-(h+v))+"px "+-dt(d)+"px",threshold:st(0,ot(1,s))||1};let f=!0;function g(t){const l=t[0].intersectionRatio;if(l!==s){if(!f)return a();l?a(!1,l):i=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==l||Mi(c,e.getBoundingClientRect())||a(),f=!1}try{l=new IntersectionObserver(g,{...p,root:n.ownerDocument})}catch(e){l=new IntersectionObserver(g,p)}l.observe(e)}(!0),r}(c,i):null;let u,v=-1,p=null;a&&(p=new ResizeObserver(e=>{let[l]=e;l&&l.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),i()}),c&&!s&&p.observe(c),p.observe(t));let f=s?pi(e):null;return s&&function t(){const l=pi(e);f&&!Mi(f,l)&&i();f=l,u=requestAnimationFrame(t)}(),i(),()=>{var e;d.forEach(e=>{n&&e.removeEventListener("scroll",i),r&&e.removeEventListener("resize",i)}),null==h||h(),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(u)}}const $i=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var i,l;const{x:n,y:r,placement:a,middlewareData:o}=t,s=await async function(e,t){const{placement:i,platform:l,elements:n}=e,r=await(null==l.isRTL?void 0:l.isRTL(n.floating)),a=gt(i),o=mt(i),s="y"===yt(i),c=Bt.has(a)?-1:1,d=r&&s?-1:1,h=ft(t,e);let{mainAxis:u,crossAxis:v,alignmentAxis:p}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return o&&"number"==typeof p&&(v="end"===o?-1*p:p),s?{x:v*d,y:u*c}:{x:u*c,y:v*d}}(t,e);return a===(null==(i=o.offset)?void 0:i.placement)&&null!=(l=o.arrow)&&l.alignmentOffset?{}:{x:n+s.x,y:r+s.y,data:{...s,placement:a}}}}},ki=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:l,placement:n}=t,{mainAxis:r=!0,crossAxis:a=!1,limiter:o={fn:e=>{let{x:t,y:i}=e;return{x:t,y:i}}},...s}=ft(e,t),c={x:i,y:l},d=await zt(t,s),h=yt(gt(n)),u=wt(h);let v=c[u],p=c[h];if(r){const e="y"===u?"bottom":"right";v=pt(v+d["y"===u?"top":"left"],v,v-d[e])}if(a){const e="y"===h?"bottom":"right";p=pt(p+d["y"===h?"top":"left"],p,p-d[e])}const f=o.fn({...t,[u]:v,[h]:p});return{...f,data:{x:f.x-i,y:f.y-l,enabled:{[u]:r,[h]:a}}}}}},Hi=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var i,l;const{placement:n,middlewareData:r,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:f=!0,...g}=ft(e,t);if(null!=(i=r.arrow)&&i.alignmentOffset)return{};const m=gt(n),w=yt(o),_=gt(o)===o,b=await(null==s.isRTL?void 0:s.isRTL(c.floating)),y=u||(_||!f?[Pt(o)]:function(e){const t=Pt(e);return[Zt(e),t,Zt(t)]}(o)),x="none"!==p;!u&&x&&y.push(...Ht(o,f,p,b));const C=[o,...y],Z=await zt(t,g),M=[];let V=(null==(l=r.flip)?void 0:l.overflows)||[];if(d&&M.push(Z[m]),h){const e=Ct(n,a,b);M.push(Z[e[0]],Z[e[1]])}if(V=[...V,{placement:n,overflows:M}],!M.every(e=>e<=0)){var $,k;const e=((null==($=r.flip)?void 0:$.index)||0)+1,t=C[e];if(t){if(!("alignment"===h&&w!==yt(t))||V.every(e=>yt(e.placement)!==w||e.overflows[0]>0))return{data:{index:e,overflows:V},reset:{placement:t}}}let i=null==(k=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:k.placement;if(!i)switch(v){case"bestFit":{var H;const e=null==(H=V.filter(e=>{if(x){const t=yt(e.placement);return t===w||"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:H[0];e&&(i=e);break}case"initialPlacement":i=o}if(n!==i)return{reset:{placement:i}}}return{}}}},Pi=(e,t,i)=>{const l=new Map,n={platform:Zi,...i},r={...n.platform,_c:l};return(async(e,t,i)=>{const{placement:l="bottom",strategy:n="absolute",middleware:r=[],platform:a}=i,o=r.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:h}=Ot(c,l,s),u=l,v={},p=0;for(let i=0;i<o.length;i++){const{name:r,fn:f}=o[i],{x:g,y:m,data:w,reset:_}=await f({x:d,y:h,initialPlacement:l,placement:u,strategy:n,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=g?g:d,h=null!=m?m:h,v={...v,[r]:{...v[r],...w}},_&&p<=50&&(p++,"object"==typeof _&&(_.placement&&(u=_.placement),_.rects&&(c=!0===_.rects?await a.getElementRects({reference:e,floating:t,strategy:n}):_.rects),({x:d,y:h}=Ot(c,u,s))),i=-1)}return{x:d,y:h,placement:u,strategy:n,middlewareData:v}})(e,t,{...n,platform:r})};var Si=f`: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}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.1ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}::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 Di extends He{emit(e,t){const i=new CustomEvent(e,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(i),i}static define(e,t=this,i={}){if(customElements.get(e));else try{customElements.define(e,t,i)}catch(l){customElements.define(e,class extends t{},i)}}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}))}))}}function Oi(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}function zi(e,t,i){return new Promise(l=>{if((null==i?void 0:i.duration)===1/0)throw new Error("Promise-based animations must be finite.");const n=e.animate(t,Object.assign(Object.assign({},i),{duration:Bi()?0:null==i?void 0:i.duration}));n.addEventListener("cancel",l,{once:!0}),n.addEventListener("finish",l,{once:!0})})}function Bi(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}Di.styles=[Si],Di.dependencies={},e([Be({type:Boolean,reflect:!0})],Di.prototype,"ssr",void 0);const Li=new Map,Ai=new WeakMap;function ji(e,t){const i=Ai.get(e);if(null==i?void 0:i[t])return i[t];const l=Li.get(t);return l||{keyframes:[],options:{duration:0}}}function Ii(e,t){Li.set(e,function(e){return null!=e?e:{keyframes:[],options:{duration:0}}}(t))}class Ei extends Di{constructor(){super(...arguments),this.myDropdown=lt(),this.dropdownMenuId=Oi("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=lt(),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(){if(!this.disabled&&!this.menuIsOpen){if(this.menuIsOpen=!0,this.emit("sgds-show"),await this.updateFloatingPosition(),this._startAutoUpdate(),this.menuRef.value){const e=(this.menuRef.value.getAttribute("data-placement")||"").startsWith("top")?"4px":"-4px",{options:t}=ji(this,"dropdown.show");await zi(this.menuRef.value,[{opacity:0,transform:`translateY(${e})`},{opacity:1,transform:"translateY(0)"}],t)}this.emit("sgds-after-show")}}_startAutoUpdate(){this.myDropdown.value&&this.menuRef.value&&(this._cleanupAutoUpdate=Vi(this.myDropdown.value,this.menuRef.value,()=>this.updateFloatingPosition()))}async hideMenu(e){if(this.menuIsOpen){if(this.emit("sgds-hide",{detail:{isOutside:e}}),this.menuRef.value){const e=(this.menuRef.value.getAttribute("data-placement")||"").startsWith("top")?"4px":"-4px",{options:t}=ji(this,"dropdown.hide");await zi(this.menuRef.value,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:`translateY(${e})`}],t)}this.menuIsOpen=!1,this.emit("sgds-after-hide"),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 i=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)},l=t.map(i),n=e.map(e=>{const n=i(e),r=l.indexOf(n);return-1!==r?t[r]:e}).concat(t.filter(t=>!e.some(e=>i(e)===i(t))));return n}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=[$i(8),this.noFlip?void 0:Hi(),ki()].filter(Boolean);let i=t;Array.isArray(this.floatingOpts.middleware)&&this.floatingOpts.middleware.length>0&&(i=this.mergeMiddleware(t,this.floatingOpts.middleware.filter(Boolean)));const l=Object.assign(Object.assign({strategy:"fixed",placement:e},this.floatingOpts),{middleware:i}),{x:n,y:r,strategy:a,placement:o}=await Pi(this.myDropdown.value,this.menuRef.value,l);this.menuRef.value.setAttribute("data-placement",o),Object.assign(this.menuRef.value.style,{position:a,left:`${n}px`,top:`${r}px`})}}e([Be({type:Boolean,state:!0})],Ei.prototype,"noFlip",void 0),e([Be({type:Boolean,reflect:!0,state:!0})],Ei.prototype,"menuAlignRight",void 0),e([Be({type:String,reflect:!0,state:!0})],Ei.prototype,"drop",void 0),e([Be({type:Object})],Ei.prototype,"floatingOpts",void 0),e([Be({type:Boolean,reflect:!0})],Ei.prototype,"menuIsOpen",void 0),e([Be({type:Boolean,reflect:!0})],Ei.prototype,"disabled",void 0),e([Be({type:Boolean,reflect:!0})],Ei.prototype,"readonly",void 0),Ii("dropdown.show",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.1, 0, 0.5, 0)"}}),Ii("dropdown.hide",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.15, 0.6, 0.6, 1)"}});const Ti={"DD/MM/YYYY":{imPattern:"`dd{/}`mm{/}`yyyy",imRangePattern:"`dd{/}`mm{/}`yyyy - `DD{/}`MM{/}`YYYY",fnsPattern:"dd/MM/yyyy"},"MM/DD/YYYY":{imPattern:"`mm{/}`dd{/}`yyyy",imRangePattern:"`mm{/}`dd{/}`yyyy - `MM{/}`DD{/}`YYYY",fnsPattern:"MM/dd/yyyy"},"YYYY/MM/DD":{imPattern:"`yyyy{/}`mm{/}`dd",imRangePattern:"`yyyy{/}`mm{/}`dd - `YYYY{/}`MM{/}`DD",fnsPattern:"yyyy/MM/dd"}},Fi=e=>{const t=e.getMonth(),l=e.getFullYear(),n=e.getDate(),r=new Date(l,t+1),o=i(r);return a(e)&&o<n?s(r):new Date(l,t+1,n)},Ri=e=>{const t=e.getMonth(),l=e.getFullYear(),n=e.getDate(),r=new Date(l,t-1),o=i(r);return a(e)&&o<n?s(r):new Date(l,t-1,n)},Yi=e=>{const t=new Date(e);return t.setHours(12),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),t};function Ni(e,t){const i=Object.assign({waitUntilFirstUpdate:!1},t);return(t,l)=>{const{update:n}=t;if(e in t){const r=e;t.update=function(e){if(e.has(r)){const t=e.get(r),n=this[r];t!==n&&(i.waitUntilFirstUpdate&&!this.hasUpdated||this[l](t,n))}n.call(this,e)}}}}
70
+ */const lt=()=>new nt;class nt{}const at=new WeakMap;const rt=Ne(class extends it{render(e){return he}update(e,[t]){const i=t!==this._ref;return i&&void 0!==this._ref&&this._updateRefValue(void 0),(i||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=e.options?.host,this._updateRefValue(this._element=e.element)),he}_updateRefValue(e){if(this.isConnected||(e=void 0),"function"==typeof this._ref){const t=this._context??globalThis;let i=at.get(t);void 0===i&&(i=new WeakMap,at.set(t,i)),void 0!==i.get(this._ref)&&this._ref.call(this._context,void 0),i.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?at.get(this._context??globalThis)?.get(this._ref):this._ref?.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}}),ot=Math.min,st=Math.max,ct=Math.round,dt=Math.floor,ht=e=>({x:e,y:e}),ut={left:"right",right:"left",bottom:"top",top:"bottom"},vt={start:"end",end:"start"};function pt(e,t,i){return st(e,ot(t,i))}function ft(e,t){return"function"==typeof e?e(t):e}function gt(e){return e.split("-")[0]}function mt(e){return e.split("-")[1]}function wt(e){return"x"===e?"y":"x"}function _t(e){return"y"===e?"height":"width"}const bt=new Set(["top","bottom"]);function yt(e){return bt.has(gt(e))?"y":"x"}function xt(e){return wt(yt(e))}function Ct(e,t,i){void 0===i&&(i=!1);const l=mt(e),n=xt(e),a=_t(n);let r="x"===n?l===(i?"end":"start")?"right":"left":"start"===l?"bottom":"top";return t.reference[a]>t.floating[a]&&(r=Pt(r)),[r,Pt(r)]}function Zt(e){return e.replace(/start|end/g,e=>vt[e])}const Mt=["left","right"],Vt=["right","left"],$t=["top","bottom"],kt=["bottom","top"];function Ht(e,t,i,l){const n=mt(e);let a=function(e,t,i){switch(e){case"top":case"bottom":return i?t?Vt:Mt:t?Mt:Vt;case"left":case"right":return t?$t:kt;default:return[]}}(gt(e),"start"===i,l);return n&&(a=a.map(e=>e+"-"+n),t&&(a=a.concat(a.map(Zt)))),a}function Pt(e){return e.replace(/left|right|bottom|top/g,e=>ut[e])}function St(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 Dt(e){const{x:t,y:i,width:l,height:n}=e;return{width:l,height:n,top:i,left:t,right:t+l,bottom:i+n,x:t,y:i}}function Ot(e,t,i){let{reference:l,floating:n}=e;const a=yt(t),r=xt(t),o=_t(r),s=gt(t),c="y"===a,d=l.x+l.width/2-n.width/2,h=l.y+l.height/2-n.height/2,u=l[o]/2-n[o]/2;let v;switch(s){case"top":v={x:d,y:l.y-n.height};break;case"bottom":v={x:d,y:l.y+l.height};break;case"right":v={x:l.x+l.width,y:h};break;case"left":v={x:l.x-n.width,y:h};break;default:v={x:l.x,y:l.y}}switch(mt(t)){case"start":v[r]-=u*(i&&c?-1:1);break;case"end":v[r]+=u*(i&&c?-1:1)}return v}async function zt(e,t){var i;void 0===t&&(t={});const{x:l,y:n,platform:a,rects:r,elements:o,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:u=!1,padding:v=0}=ft(t,e),p=St(v),f=o[u?"floating"===h?"reference":"floating":h],g=Dt(await a.getClippingRect({element:null==(i=await(null==a.isElement?void 0:a.isElement(f)))||i?f:f.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(o.floating)),boundary:c,rootBoundary:d,strategy:s})),m="floating"===h?{x:l,y:n,width:r.floating.width,height:r.floating.height}:r.reference,w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(o.floating)),_=await(null==a.isElement?void 0:a.isElement(w))&&await(null==a.getScale?void 0:a.getScale(w))||{x:1,y:1},b=Dt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:m,offsetParent:w,strategy:s}):m);return{top:(g.top-b.top+p.top)/_.y,bottom:(b.bottom-g.bottom+p.bottom)/_.y,left:(g.left-b.left+p.left)/_.x,right:(b.right-g.right+p.right)/_.x}}const Bt=new Set(["left","top"]);function Lt(){return"undefined"!=typeof window}function At(e){return Et(e)?(e.nodeName||"").toLowerCase():"#document"}function jt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function It(e){var t;return null==(t=(Et(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Et(e){return!!Lt()&&(e instanceof Node||e instanceof jt(e).Node)}function Tt(e){return!!Lt()&&(e instanceof Element||e instanceof jt(e).Element)}function Ft(e){return!!Lt()&&(e instanceof HTMLElement||e instanceof jt(e).HTMLElement)}function Rt(e){return!(!Lt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof jt(e).ShadowRoot)}const Yt=new Set(["inline","contents"]);function Nt(e){const{overflow:t,overflowX:i,overflowY:l,display:n}=li(e);return/auto|scroll|overlay|hidden|clip/.test(t+l+i)&&!Yt.has(n)}const Ut=new Set(["table","td","th"]);function Wt(e){return Ut.has(At(e))}const qt=[":popover-open",":modal"];function Kt(e){return qt.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Jt=["transform","translate","scale","rotate","perspective"],Gt=["transform","translate","scale","rotate","perspective","filter"],Xt=["paint","layout","strict","content"];function Qt(e){const t=ei(),i=Tt(e)?li(e):e;return Jt.some(e=>!!i[e]&&"none"!==i[e])||!!i.containerType&&"normal"!==i.containerType||!t&&!!i.backdropFilter&&"none"!==i.backdropFilter||!t&&!!i.filter&&"none"!==i.filter||Gt.some(e=>(i.willChange||"").includes(e))||Xt.some(e=>(i.contain||"").includes(e))}function ei(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ti=new Set(["html","body","#document"]);function ii(e){return ti.has(At(e))}function li(e){return jt(e).getComputedStyle(e)}function ni(e){return Tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ai(e){if("html"===At(e))return e;const t=e.assignedSlot||e.parentNode||Rt(e)&&e.host||It(e);return Rt(t)?t.host:t}function ri(e){const t=ai(e);return ii(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ft(t)&&Nt(t)?t:ri(t)}function oi(e,t,i){var l;void 0===t&&(t=[]),void 0===i&&(i=!0);const n=ri(e),a=n===(null==(l=e.ownerDocument)?void 0:l.body),r=jt(n);if(a){const e=si(r);return t.concat(r,r.visualViewport||[],Nt(n)?n:[],e&&i?oi(e):[])}return t.concat(n,oi(n,[],i))}function si(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ci(e){const t=li(e);let i=parseFloat(t.width)||0,l=parseFloat(t.height)||0;const n=Ft(e),a=n?e.offsetWidth:i,r=n?e.offsetHeight:l,o=ct(i)!==a||ct(l)!==r;return o&&(i=a,l=r),{width:i,height:l,$:o}}function di(e){return Tt(e)?e:e.contextElement}function hi(e){const t=di(e);if(!Ft(t))return ht(1);const i=t.getBoundingClientRect(),{width:l,height:n,$:a}=ci(t);let r=(a?ct(i.width):i.width)/l,o=(a?ct(i.height):i.height)/n;return r&&Number.isFinite(r)||(r=1),o&&Number.isFinite(o)||(o=1),{x:r,y:o}}const ui=ht(0);function vi(e){const t=jt(e);return ei()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ui}function pi(e,t,i,l){void 0===t&&(t=!1),void 0===i&&(i=!1);const n=e.getBoundingClientRect(),a=di(e);let r=ht(1);t&&(l?Tt(l)&&(r=hi(l)):r=hi(e));const o=function(e,t,i){return void 0===t&&(t=!1),!(!i||t&&i!==jt(e))&&t}(a,i,l)?vi(a):ht(0);let s=(n.left+o.x)/r.x,c=(n.top+o.y)/r.y,d=n.width/r.x,h=n.height/r.y;if(a){const e=jt(a),t=l&&Tt(l)?jt(l):l;let i=e,n=si(i);for(;n&&l&&t!==i;){const e=hi(n),t=n.getBoundingClientRect(),l=li(n),a=t.left+(n.clientLeft+parseFloat(l.paddingLeft))*e.x,r=t.top+(n.clientTop+parseFloat(l.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,h*=e.y,s+=a,c+=r,i=jt(n),n=si(i)}}return Dt({width:d,height:h,x:s,y:c})}function fi(e,t){const i=ni(e).scrollLeft;return t?t.left+i:pi(It(e)).left+i}function gi(e,t){const i=e.getBoundingClientRect();return{x:i.left+t.scrollLeft-fi(e,i),y:i.top+t.scrollTop}}const mi=new Set(["absolute","fixed"]);function wi(e,t,i){let l;if("viewport"===t)l=function(e,t){const i=jt(e),l=It(e),n=i.visualViewport;let a=l.clientWidth,r=l.clientHeight,o=0,s=0;if(n){a=n.width,r=n.height;const e=ei();(!e||e&&"fixed"===t)&&(o=n.offsetLeft,s=n.offsetTop)}const c=fi(l);if(c<=0){const e=l.ownerDocument,t=e.body,i=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(i.marginLeft)+parseFloat(i.marginRight)||0,r=Math.abs(l.clientWidth-t.clientWidth-n);r<=25&&(a-=r)}else c<=25&&(a+=c);return{width:a,height:r,x:o,y:s}}(e,i);else if("document"===t)l=function(e){const t=It(e),i=ni(e),l=e.ownerDocument.body,n=st(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),a=st(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight);let r=-i.scrollLeft+fi(e);const o=-i.scrollTop;return"rtl"===li(l).direction&&(r+=st(t.clientWidth,l.clientWidth)-n),{width:n,height:a,x:r,y:o}}(It(e));else if(Tt(t))l=function(e,t){const i=pi(e,!0,"fixed"===t),l=i.top+e.clientTop,n=i.left+e.clientLeft,a=Ft(e)?hi(e):ht(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:n*a.x,y:l*a.y}}(t,i);else{const i=vi(e);l={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Dt(l)}function _i(e,t){const i=ai(e);return!(i===t||!Tt(i)||ii(i))&&("fixed"===li(i).position||_i(i,t))}function bi(e,t,i){const l=Ft(t),n=It(t),a="fixed"===i,r=pi(e,!0,a,t);let o={scrollLeft:0,scrollTop:0};const s=ht(0);function c(){s.x=fi(n)}if(l||!l&&!a)if(("body"!==At(t)||Nt(n))&&(o=ni(t)),l){const e=pi(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else n&&c();a&&!l&&n&&c();const d=!n||l||a?ht(0):gi(n,o);return{x:r.left+o.scrollLeft-s.x-d.x,y:r.top+o.scrollTop-s.y-d.y,width:r.width,height:r.height}}function yi(e){return"static"===li(e).position}function xi(e,t){if(!Ft(e)||"fixed"===li(e).position)return null;if(t)return t(e);let i=e.offsetParent;return It(e)===i&&(i=i.ownerDocument.body),i}function Ci(e,t){const i=jt(e);if(Kt(e))return i;if(!Ft(e)){let t=ai(e);for(;t&&!ii(t);){if(Tt(t)&&!yi(t))return t;t=ai(t)}return i}let l=xi(e,t);for(;l&&Wt(l)&&yi(l);)l=xi(l,t);return l&&ii(l)&&yi(l)&&!Qt(l)?i:l||function(e){let t=ai(e);for(;Ft(t)&&!ii(t);){if(Qt(t))return t;if(Kt(t))return null;t=ai(t)}return null}(e)||i}const Zi={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:i,offsetParent:l,strategy:n}=e;const a="fixed"===n,r=It(l),o=!!t&&Kt(t.floating);if(l===r||o&&a)return i;let s={scrollLeft:0,scrollTop:0},c=ht(1);const d=ht(0),h=Ft(l);if((h||!h&&!a)&&(("body"!==At(l)||Nt(r))&&(s=ni(l)),Ft(l))){const e=pi(l);c=hi(l),d.x=e.x+l.clientLeft,d.y=e.y+l.clientTop}const u=!r||h||a?ht(0):gi(r,s);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-s.scrollLeft*c.x+d.x+u.x,y:i.y*c.y-s.scrollTop*c.y+d.y+u.y}},getDocumentElement:It,getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:l,strategy:n}=e;const a=[..."clippingAncestors"===i?Kt(t)?[]:function(e,t){const i=t.get(e);if(i)return i;let l=oi(e,[],!1).filter(e=>Tt(e)&&"body"!==At(e)),n=null;const a="fixed"===li(e).position;let r=a?ai(e):e;for(;Tt(r)&&!ii(r);){const t=li(r),i=Qt(r);i||"fixed"!==t.position||(n=null),(a?!i&&!n:!i&&"static"===t.position&&n&&mi.has(n.position)||Nt(r)&&!i&&_i(e,r))?l=l.filter(e=>e!==r):n=t,r=ai(r)}return t.set(e,l),l}(t,this._c):[].concat(i),l],r=a[0],o=a.reduce((e,i)=>{const l=wi(t,i,n);return e.top=st(l.top,e.top),e.right=ot(l.right,e.right),e.bottom=ot(l.bottom,e.bottom),e.left=st(l.left,e.left),e},wi(t,r,n));return{width:o.right-o.left,height:o.bottom-o.top,x:o.left,y:o.top}},getOffsetParent:Ci,getElementRects:async function(e){const t=this.getOffsetParent||Ci,i=this.getDimensions,l=await i(e.floating);return{reference:bi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:i}=ci(e);return{width:t,height:i}},getScale:hi,isElement:Tt,isRTL:function(e){return"rtl"===li(e).direction}};function Mi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vi(e,t,i,l){void 0===l&&(l={});const{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:o="function"==typeof IntersectionObserver,animationFrame:s=!1}=l,c=di(e),d=n||a?[...c?oi(c):[],...oi(t)]:[];d.forEach(e=>{n&&e.addEventListener("scroll",i,{passive:!0}),a&&e.addEventListener("resize",i)});const h=c&&o?function(e,t){let i,l=null;const n=It(e);function a(){var e;clearTimeout(i),null==(e=l)||e.disconnect(),l=null}return function r(o,s){void 0===o&&(o=!1),void 0===s&&(s=1),a();const c=e.getBoundingClientRect(),{left:d,top:h,width:u,height:v}=c;if(o||t(),!u||!v)return;const p={rootMargin:-dt(h)+"px "+-dt(n.clientWidth-(d+u))+"px "+-dt(n.clientHeight-(h+v))+"px "+-dt(d)+"px",threshold:st(0,ot(1,s))||1};let f=!0;function g(t){const l=t[0].intersectionRatio;if(l!==s){if(!f)return r();l?r(!1,l):i=setTimeout(()=>{r(!1,1e-7)},1e3)}1!==l||Mi(c,e.getBoundingClientRect())||r(),f=!1}try{l=new IntersectionObserver(g,{...p,root:n.ownerDocument})}catch(e){l=new IntersectionObserver(g,p)}l.observe(e)}(!0),a}(c,i):null;let u,v=-1,p=null;r&&(p=new ResizeObserver(e=>{let[l]=e;l&&l.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),i()}),c&&!s&&p.observe(c),p.observe(t));let f=s?pi(e):null;return s&&function t(){const l=pi(e);f&&!Mi(f,l)&&i();f=l,u=requestAnimationFrame(t)}(),i(),()=>{var e;d.forEach(e=>{n&&e.removeEventListener("scroll",i),a&&e.removeEventListener("resize",i)}),null==h||h(),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(u)}}const $i=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var i,l;const{x:n,y:a,placement:r,middlewareData:o}=t,s=await async function(e,t){const{placement:i,platform:l,elements:n}=e,a=await(null==l.isRTL?void 0:l.isRTL(n.floating)),r=gt(i),o=mt(i),s="y"===yt(i),c=Bt.has(r)?-1:1,d=a&&s?-1:1,h=ft(t,e);let{mainAxis:u,crossAxis:v,alignmentAxis:p}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return o&&"number"==typeof p&&(v="end"===o?-1*p:p),s?{x:v*d,y:u*c}:{x:u*c,y:v*d}}(t,e);return r===(null==(i=o.offset)?void 0:i.placement)&&null!=(l=o.arrow)&&l.alignmentOffset?{}:{x:n+s.x,y:a+s.y,data:{...s,placement:r}}}}},ki=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:l,placement:n}=t,{mainAxis:a=!0,crossAxis:r=!1,limiter:o={fn:e=>{let{x:t,y:i}=e;return{x:t,y:i}}},...s}=ft(e,t),c={x:i,y:l},d=await zt(t,s),h=yt(gt(n)),u=wt(h);let v=c[u],p=c[h];if(a){const e="y"===u?"bottom":"right";v=pt(v+d["y"===u?"top":"left"],v,v-d[e])}if(r){const e="y"===h?"bottom":"right";p=pt(p+d["y"===h?"top":"left"],p,p-d[e])}const f=o.fn({...t,[u]:v,[h]:p});return{...f,data:{x:f.x-i,y:f.y-l,enabled:{[u]:a,[h]:r}}}}}},Hi=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var i,l;const{placement:n,middlewareData:a,rects:r,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:f=!0,...g}=ft(e,t);if(null!=(i=a.arrow)&&i.alignmentOffset)return{};const m=gt(n),w=yt(o),_=gt(o)===o,b=await(null==s.isRTL?void 0:s.isRTL(c.floating)),y=u||(_||!f?[Pt(o)]:function(e){const t=Pt(e);return[Zt(e),t,Zt(t)]}(o)),x="none"!==p;!u&&x&&y.push(...Ht(o,f,p,b));const C=[o,...y],Z=await zt(t,g),M=[];let V=(null==(l=a.flip)?void 0:l.overflows)||[];if(d&&M.push(Z[m]),h){const e=Ct(n,r,b);M.push(Z[e[0]],Z[e[1]])}if(V=[...V,{placement:n,overflows:M}],!M.every(e=>e<=0)){var $,k;const e=((null==($=a.flip)?void 0:$.index)||0)+1,t=C[e];if(t){if(!("alignment"===h&&w!==yt(t))||V.every(e=>yt(e.placement)!==w||e.overflows[0]>0))return{data:{index:e,overflows:V},reset:{placement:t}}}let i=null==(k=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:k.placement;if(!i)switch(v){case"bestFit":{var H;const e=null==(H=V.filter(e=>{if(x){const t=yt(e.placement);return t===w||"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:H[0];e&&(i=e);break}case"initialPlacement":i=o}if(n!==i)return{reset:{placement:i}}}return{}}}},Pi=(e,t,i)=>{const l=new Map,n={platform:Zi,...i},a={...n.platform,_c:l};return(async(e,t,i)=>{const{placement:l="bottom",strategy:n="absolute",middleware:a=[],platform:r}=i,o=a.filter(Boolean),s=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:h}=Ot(c,l,s),u=l,v={},p=0;for(let i=0;i<o.length;i++){const{name:a,fn:f}=o[i],{x:g,y:m,data:w,reset:_}=await f({x:d,y:h,initialPlacement:l,placement:u,strategy:n,middlewareData:v,rects:c,platform:r,elements:{reference:e,floating:t}});d=null!=g?g:d,h=null!=m?m:h,v={...v,[a]:{...v[a],...w}},_&&p<=50&&(p++,"object"==typeof _&&(_.placement&&(u=_.placement),_.rects&&(c=!0===_.rects?await r.getElementRects({reference:e,floating:t,strategy:n}):_.rects),({x:d,y:h}=Ot(c,u,s))),i=-1)}return{x:d,y:h,placement:u,strategy:n,middlewareData:v}})(e,t,{...n,platform:a})};var Si=f`: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}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.1ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}::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 Di extends He{emit(e,t){const i=new CustomEvent(e,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(i),i}static define(e,t=this,i={}){if(customElements.get(e));else try{customElements.define(e,t,i)}catch(l){customElements.define(e,class extends t{},i)}}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}))}))}}function Oi(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}function zi(e,t,i){return new Promise(l=>{if((null==i?void 0:i.duration)===1/0)throw new Error("Promise-based animations must be finite.");const n=e.animate(t,Object.assign(Object.assign({},i),{duration:Bi()?0:null==i?void 0:i.duration}));n.addEventListener("cancel",l,{once:!0}),n.addEventListener("finish",l,{once:!0})})}function Bi(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}Di.styles=[Si],Di.dependencies={},e([Be({type:Boolean,reflect:!0})],Di.prototype,"ssr",void 0);const Li=new Map,Ai=new WeakMap;function ji(e,t){const i=Ai.get(e);if(null==i?void 0:i[t])return i[t];const l=Li.get(t);return l||{keyframes:[],options:{duration:0}}}function Ii(e,t){Li.set(e,function(e){return null!=e?e:{keyframes:[],options:{duration:0}}}(t))}class Ei extends Di{constructor(){super(...arguments),this.myDropdown=lt(),this.dropdownMenuId=Oi("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=lt(),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(){if(!this.disabled&&!this.menuIsOpen){if(this.menuIsOpen=!0,this.emit("sgds-show"),await this.updateFloatingPosition(),this._startAutoUpdate(),this.menuRef.value){const e=(this.menuRef.value.getAttribute("data-placement")||"").startsWith("top")?"4px":"-4px",{options:t}=ji(this,"dropdown.show");await zi(this.menuRef.value,[{opacity:0,transform:`translateY(${e})`},{opacity:1,transform:"translateY(0)"}],t)}this.emit("sgds-after-show")}}_startAutoUpdate(){this.myDropdown.value&&this.menuRef.value&&(this._cleanupAutoUpdate=Vi(this.myDropdown.value,this.menuRef.value,()=>this.updateFloatingPosition()))}async hideMenu(e){if(this.menuIsOpen){if(this.emit("sgds-hide",{detail:{isOutside:e}}),this.menuRef.value){const e=(this.menuRef.value.getAttribute("data-placement")||"").startsWith("top")?"4px":"-4px",{options:t}=ji(this,"dropdown.hide");await zi(this.menuRef.value,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:`translateY(${e})`}],t)}this.menuIsOpen=!1,this.emit("sgds-after-hide"),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 i=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)},l=t.map(i),n=e.map(e=>{const n=i(e),a=l.indexOf(n);return-1!==a?t[a]:e}).concat(t.filter(t=>!e.some(e=>i(e)===i(t))));return n}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=[$i(8),this.noFlip?void 0:Hi(),ki()].filter(Boolean);let i=t;Array.isArray(this.floatingOpts.middleware)&&this.floatingOpts.middleware.length>0&&(i=this.mergeMiddleware(t,this.floatingOpts.middleware.filter(Boolean)));const l=Object.assign(Object.assign({strategy:"fixed",placement:e},this.floatingOpts),{middleware:i}),{x:n,y:a,strategy:r,placement:o}=await Pi(this.myDropdown.value,this.menuRef.value,l);this.menuRef.value.setAttribute("data-placement",o),Object.assign(this.menuRef.value.style,{position:r,left:`${n}px`,top:`${a}px`})}}e([Be({type:Boolean,state:!0})],Ei.prototype,"noFlip",void 0),e([Be({type:Boolean,reflect:!0,state:!0})],Ei.prototype,"menuAlignRight",void 0),e([Be({type:String,reflect:!0,state:!0})],Ei.prototype,"drop",void 0),e([Be({type:Object})],Ei.prototype,"floatingOpts",void 0),e([Be({type:Boolean,reflect:!0})],Ei.prototype,"menuIsOpen",void 0),e([Be({type:Boolean,reflect:!0})],Ei.prototype,"disabled",void 0),e([Be({type:Boolean,reflect:!0})],Ei.prototype,"readonly",void 0),Ii("dropdown.show",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.1, 0, 0.5, 0)"}}),Ii("dropdown.hide",{keyframes:[],options:{duration:200,easing:"cubic-bezier(0.15, 0.6, 0.6, 1)"}});const Ti={"DD/MM/YYYY":{imPattern:"`dd{/}`mm{/}`yyyy",imRangePattern:"`dd{/}`mm{/}`yyyy - `DD{/}`MM{/}`YYYY",fnsPattern:"dd/MM/yyyy"},"MM/DD/YYYY":{imPattern:"`mm{/}`dd{/}`yyyy",imRangePattern:"`mm{/}`dd{/}`yyyy - `MM{/}`DD{/}`YYYY",fnsPattern:"MM/dd/yyyy"},"YYYY/MM/DD":{imPattern:"`yyyy{/}`mm{/}`dd",imRangePattern:"`yyyy{/}`mm{/}`dd - `YYYY{/}`MM{/}`DD",fnsPattern:"yyyy/MM/dd"}},Fi=e=>{const t=e.getMonth(),l=e.getFullYear(),n=e.getDate(),a=new Date(l,t+1),o=i(a);return r(e)&&o<n?s(a):new Date(l,t+1,n)},Ri=e=>{const t=e.getMonth(),l=e.getFullYear(),n=e.getDate(),a=new Date(l,t-1),o=i(a);return r(e)&&o<n?s(a):new Date(l,t-1,n)},Yi=e=>{const t=new Date(e);return t.setHours(12),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),t};function Ni(e,t){const i=Object.assign({waitUntilFirstUpdate:!1},t);return(t,l)=>{const{update:n}=t;if(e in t){const a=e;t.update=function(e){if(e.has(a)){const t=e.get(a),n=this[a];t!==n&&(i.waitUntilFirstUpdate&&!this.hasUpdated||this[l](t,n))}n.call(this,e)}}}}
71
71
  /**
72
72
  * @license
73
73
  * Copyright 2018 Google LLC
74
74
  * SPDX-License-Identifier: BSD-3-Clause
75
- */const Ui=Ne(class extends Ue{constructor(e){if(super(e),e.type!==Te||"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 i=e.element.classList;for(const e of this._previousClasses)e in t||(i.remove(e),this._previousClasses.delete(e));for(const e in t){const l=!!t[e];l===this._previousClasses.has(e)||this._staticClasses?.has(e)||(l?(i.add(e),this._previousClasses.add(e)):(i.remove(e),this._previousClasses.delete(e)))}return de}}),Wi=e=>e??he,qi=Symbol.for(""),Ki=e=>{if(e?.r===qi)return e?._$litStatic$},Ji=(e,...t)=>({_$litStatic$:t.reduce((t,i,l)=>t+(e=>{if(void 0!==e._$litStatic$)return e._$litStatic$;throw new Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(i)+e[l+1],e[0]),r:qi}),Gi=new Map,Xi=(Qi=se,(e,...t)=>{const i=t.length;let l,n;const r=[],a=[];let o,s=0,c=!1;for(;s<i;){for(o=e[s];s<i&&void 0!==(n=t[s],l=Ki(n));)o+=l+e[++s],c=!0;s!==i&&a.push(n),r.push(o),s++}if(s===i&&r.push(e[i]),c){const i=r.join("$$lit$$");void 0===(e=Gi.get(i))&&(r.raw=r,Gi.set(i,e=r)),t=a}return Qi(e,...t)});
75
+ */const Ui=Ne(class extends Ue{constructor(e){if(super(e),e.type!==Te||"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 i=e.element.classList;for(const e of this._previousClasses)e in t||(i.remove(e),this._previousClasses.delete(e));for(const e in t){const l=!!t[e];l===this._previousClasses.has(e)||this._staticClasses?.has(e)||(l?(i.add(e),this._previousClasses.add(e)):(i.remove(e),this._previousClasses.delete(e)))}return de}}),Wi=e=>e??he,qi=Symbol.for(""),Ki=e=>{if(e?.r===qi)return e?._$litStatic$},Ji=(e,...t)=>({_$litStatic$:t.reduce((t,i,l)=>t+(e=>{if(void 0!==e._$litStatic$)return e._$litStatic$;throw new Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(i)+e[l+1],e[0]),r:qi}),Gi=new Map,Xi=(Qi=se,(e,...t)=>{const i=t.length;let l,n;const a=[],r=[];let o,s=0,c=!1;for(;s<i;){for(o=e[s];s<i&&void 0!==(n=t[s],l=Ki(n));)o+=l+e[++s],c=!0;s!==i&&r.push(n),a.push(o),s++}if(s===i&&a.push(e[i]),c){const i=a.join("$$lit$$");void 0===(e=Gi.get(i))&&(a.raw=a,Gi.set(i,e=a)),t=r}return Qi(e,...t)});
76
76
  /**
77
77
  * @license
78
78
  * Copyright 2018 Google LLC
79
79
  * SPDX-License-Identifier: BSD-3-Clause
80
- */var Qi,el=f`:host{--btn-font-weight:var(--sgds-font-weight-regular);--btn-color:var(--sgds-color-fixed-light);--btn-bg:var(--sgds-primary-surface-default);--btn-hover-bg:var(--sgds-primary-surface-emphasis);--btn-border-radius:var(--sgds-border-radius-md);--btn-opacity:var(--sgds-opacity-100,1)}:host([variant=danger]){--btn-bg:var(--sgds-danger-surface-default);--btn-hover-bg:var(--sgds-danger-surface-emphasis);--btn-color:var(--sgds-color-fixed-light)}:host([variant=primary][tone=brand]){--btn-bg:var(--sgds-primary-surface-default);--btn-color:var(--sgds-color-fixed-light)}:host([variant=outline]){--btn-border-width:var(--sgds-border-width-1)}:host([variant=outline][tone=brand]){--btn-border-color:var(--sgds-primary-border-color-default);--btn-bg:var(--sgds-bg-transparent);--btn-color:var(--sgds-primary-color-default);--btn-hover-bg:var(--sgds-primary-bg-translucent)}:host([variant=ghost][tone=brand]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-primary-surface-translucent);--btn-color:var(--sgds-primary-color-default)}:host([variant=primary][tone=danger]){--btn-bg:var(--sgds-danger-surface-default);--btn-hover-bg:var(--sgds-danger-surface-emphasis);--btn-color:var(--sgds-color-fixed-light)}:host([variant=outline][tone=danger]){--btn-border-color:var(--sgds-danger-border-color-default);--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-danger-surface-translucent);--btn-color:var(--sgds-danger-color-default)}:host([variant=ghost][tone=danger]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-danger-surface-translucent);--btn-color:var(--sgds-danger-color-default)}:host([variant=primary][tone=fixed-light]){--btn-bg:var(--sgds-surface-fixed-light);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-fixed-dark,hsla(0,0%,5%,.2)) 0%,var(--sgds-bg-translucent-fixed-dark,hsla(0,0%,5%,.2)) 100%),var(--sgds-surface-fixed-light,#fff);--btn-color:var(--sgds-color-fixed-dark)}:host([variant=outline][tone=fixed-light]){--btn-border-color:var(--sgds-border-color-fixed-light);--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-fixed-dark) 0%,var(--sgds-bg-translucent-fixed-dark) 100%),var(--sgds-bg-transparent);--btn-color:var(--sgds-color-fixed-light)}:host([variant=ghost][tone=fixed-light]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-fixed-dark) 0%,var(--sgds-bg-translucent-fixed-dark) 100%),var(--sgds-bg-transparent);--btn-color:var(--sgds-color-fixed-light)}:host([variant=primary][tone=neutral]){--btn-bg:var(--sgds-surface-inverse);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-inverse) 0%,var(--sgds-bg-translucent-inverse) 100%),var(--sgds-surface-inverse);--btn-color:var(--sgds-color-inverse)}:host([variant=outline][tone=neutral]){--btn-border-color:var(--sgds-border-color-emphasis);--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-inverse) 0%,var(--sgds-bg-translucent-inverse) 100%),var(--sgds-bg-translucent-subtle);--btn-color:var(--sgds-color-default)}:host([variant=ghost][tone=neutral]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-bg-translucent-subtle);--btn-color:var(--sgds-color-default)}:host([variant=ghost]) .btn,:host([variant=outline]) .btn,:host([variant=primary]) .btn{color:var(--btn-color)}:host([variant=outline]) .btn{border:var(--btn-border-width) solid var(--btn-border-color)}:host([size=lg]) .btn{font-size:var(--sgds-font-size-label-lg);height:var(--sgds-dimension-56);line-height:var(--sgds-line-height-md);min-width:var(--sgds-dimension-112);padding:var(--sgds-padding-none) var(--sgds-padding-xl)}:host([size=sm]) .btn{font-size:var(--sgds-font-size-label-sm);height:var(--sgds-dimension-40);line-height:var(--sgds-line-height-2-xs);min-width:var(--sgds-dimension-80);padding:var(--sgds-padding-none) var(--sgds-padding-md)}:host([size=xs]) .btn{font-size:var(--sgds-font-size-label-xs);height:var(--sgds-dimension-32);line-height:var(--sgds-line-height-3-xs);min-width:var(--sgds-dimension-64);padding:var(--sgds-padding-none) var(--sgds-padding-sm)}.btn{align-items:center;background-color:var(--btn-bg);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--btn-border-radius);color:var(--sgds-color-fixed-light);cursor:pointer;display:inline-flex;font-size:var(--sgds-font-size-label-md);font-weight:var(--btn-font-weight);gap:var(--sgds-gap-2-xs);height:var(--sgds-dimension-48);justify-content:center;line-height:var(--sgds-line-height-xs);min-width:var(--sgds-dimension-96);opacity:var(--btn-opacity);padding:var(--sgds-padding-none) var(--sgds-padding-lg);text-align:center;text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;user-select:none;vertical-align:middle;white-space:nowrap;width:inherit}.btn.active,.btn:hover{background:var(--btn-hover-bg)}.btn:focus-visible{background:var(--btn-hover-bg);border-color:transparent;outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.btn.disabled,.btn:disabled{color:var(--btn-color);cursor:not-allowed;opacity:var(--sgds-opacity-40)}.btn.loading{cursor:default}.btn slot::slotted(*){color:var(--btn-color)}`;class tl extends Di{constructor(){super(...arguments),this.variant="primary",this.tone="brand",this.size="md",this.active=!1,this.disabled=!1,this.target="_self"}focus(e){this.button.focus(e)}click(){this.button.click()}blur(){this.button.blur()}_handleBlur(){this.emit("sgds-blur")}_handleFocus(){this.emit("sgds-focus")}_handleClick(e){if(this.disabled||this.loading)return e.preventDefault(),void e.stopPropagation()}_handleKeydown(e){if("Enter"===e.key&&this.loading)return e.preventDefault(),void e.stopPropagation()}_assignSpinnerSize(e){return"xs"===e||"sm"===e?"xs":"md"===e||"lg"===e?"sm":void 0}_assignSpinnerTone(e,t){return"fixed-light"===e&&"primary"===t?"fixed-dark":"neutral"===e&&"primary"===t?"inverse":"fixed-light"===e||"primary"===t?"fixed-light":"neutral"!==e||"outline"!==t&&"ghost"!==t?"brand":"neutral"}}tl.styles=[...Di.styles,el],e([Ie(".btn")],tl.prototype,"button",void 0),e([Be({reflect:!0})],tl.prototype,"variant",void 0),e([Be({reflect:!0})],tl.prototype,"tone",void 0),e([Be({reflect:!0})],tl.prototype,"size",void 0),e([Be({type:Boolean,reflect:!0})],tl.prototype,"active",void 0),e([Be({type:Boolean,reflect:!0})],tl.prototype,"disabled",void 0),e([Be({type:String,reflect:!0})],tl.prototype,"href",void 0),e([Be({type:String,reflect:!0})],tl.prototype,"target",void 0),e([Be({type:String,reflect:!0})],tl.prototype,"download",void 0),e([Be({type:String})],tl.prototype,"ariaLabel",void 0),e([Be({type:Boolean})],tl.prototype,"loading",void 0);class il{constructor(e,...t){this.slotNames=[],(this.host=e).addController(this),this.slotNames=t,this.handleSlotChange=this.handleSlotChange.bind(this)}hasDefaultSlot(){return[...this.host.childNodes].some(e=>{var t;if(e.nodeType===e.TEXT_NODE&&""!==(null===(t=e.textContent)||void 0===t?void 0:t.trim()))return!0;if(e.nodeType===e.ELEMENT_NODE){const t=e;if("sl-visually-hidden"===t.tagName.toLowerCase())return!1;if(!t.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(e){return null!==this.host.querySelector(`:scope > [slot="${e}"]`)}test(e){return"[default]"===e?this.hasDefaultSlot():this.hasNamedSlot(e)}hostConnected(){var e;null===(e=this.host.shadowRoot)||void 0===e||e.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){var e;null===(e=this.host.shadowRoot)||void 0===e||e.removeEventListener("slotchange",this.handleSlotChange)}handleSlotChange(e){const t=e.target;(this.slotNames.includes("[default]")&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()}}class ll{constructor(e,t){(this.host=e).addController(this),this.options=Object.assign({form:e=>e.closest("form")},t)}hostConnected(){this.form=this.options.form(this.host)}hostDisconnected(){this.form&&(this.form=void 0)}doAction(e,t){if(this.form){const i=document.createElement("button");i.type=e,i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.clipPath="inset(50%)",i.style.overflow="hidden",i.style.whiteSpace="nowrap",t&&(["formaction","formmethod","formnovalidate","formtarget"].forEach(e=>{t.hasAttribute(e)&&i.setAttribute(e,t.getAttribute(e))}),"submit"===e&&t.hasAttribute("name")&&(i.name=t.getAttribute("name"),i.value=t.getAttribute("value")||"")),this.form.append(i),i.click(),i.remove()}}reset(e){this.doAction("reset",e)}submit(e){this.doAction("submit",e)}}var nl=f`::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}`,rl=f`:host{display:inline-block}:host([fullWidth]),:host([fullWidth]) .btn{width:100%}:host([fullWidth]) .btn.has-left-icon{justify-content:flex-start}:host([fullWidth]) .btn.has-right-icon{justify-content:space-between}:host([fullWidth]) .btn.has-left-icon.has-right-icon{justify-content:center}.btn span{padding:0 var(--sgds-padding-2-xs)}.btn.no-icon{gap:var(--sgds-gap-none)}.loading{cursor:default}`;class al extends tl{constructor(){super(...arguments),this.formSubmitController=new ll(this,{form:e=>{if(e.hasAttribute("form")){const t=e.getRootNode(),i=e.getAttribute("form");return t.getElementById(i)}return e.closest("form")}}),this.type="button",this.fullWidth=!1,this.hasLeftIconSlot=!1,this.hasRightIconSlot=!1,this.hasSlotController=new il(this,"leftIcon","rightIcon"),this._clickHandler=()=>{"submit"===this.type&&this.formSubmitController.submit(this),"reset"===this.type&&this.formSubmitController.reset(this)}}updated(){this.hasLeftIconSlot||(this.hasLeftIconSlot=this.hasSlotController.test("leftIcon")),this.hasRightIconSlot||(this.hasRightIconSlot=this.hasSlotController.test("rightIcon"))}_handleClick(e){if(this.disabled||this.loading)return e.preventDefault(),void e.stopPropagation();this.removeEventListener("click",this._clickHandler),this.addEventListener("click",this._clickHandler)}render(){const e=this.href,t=e?Ji`a`:Ji`button`,i=!this.hasLeftIconSlot&&!this.hasRightIconSlot;return Xi`
80
+ */var Qi,el=f`:host{--btn-font-weight:var(--sgds-font-weight-regular);--btn-color:var(--sgds-color-fixed-light);--btn-bg:var(--sgds-primary-surface-default);--btn-hover-bg:var(--sgds-primary-surface-emphasis);--btn-border-radius:var(--sgds-border-radius-md);--btn-opacity:var(--sgds-opacity-100,1)}:host([variant=danger]){--btn-bg:var(--sgds-danger-surface-default);--btn-hover-bg:var(--sgds-danger-surface-emphasis);--btn-color:var(--sgds-color-fixed-light)}:host([variant=primary][tone=brand]){--btn-bg:var(--sgds-primary-surface-default);--btn-color:var(--sgds-color-fixed-light)}:host([variant=outline]){--btn-border-width:var(--sgds-border-width-1)}:host([variant=outline][tone=brand]){--btn-border-color:var(--sgds-primary-border-color-default);--btn-bg:var(--sgds-bg-transparent);--btn-color:var(--sgds-primary-color-default);--btn-hover-bg:var(--sgds-primary-bg-translucent)}:host([variant=ghost][tone=brand]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-primary-surface-translucent);--btn-color:var(--sgds-primary-color-default)}:host([variant=primary][tone=danger]){--btn-bg:var(--sgds-danger-surface-default);--btn-hover-bg:var(--sgds-danger-surface-emphasis);--btn-color:var(--sgds-color-fixed-light)}:host([variant=outline][tone=danger]){--btn-border-color:var(--sgds-danger-border-color-default);--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-danger-surface-translucent);--btn-color:var(--sgds-danger-color-default)}:host([variant=ghost][tone=danger]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-danger-surface-translucent);--btn-color:var(--sgds-danger-color-default)}:host([variant=primary][tone=fixed-light]){--btn-bg:var(--sgds-surface-fixed-light);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-fixed-dark,hsla(0,0%,5%,.2)) 0%,var(--sgds-bg-translucent-fixed-dark,hsla(0,0%,5%,.2)) 100%),var(--sgds-surface-fixed-light,#fff);--btn-color:var(--sgds-color-fixed-dark)}:host([variant=outline][tone=fixed-light]){--btn-border-color:var(--sgds-border-color-fixed-light);--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-fixed-dark) 0%,var(--sgds-bg-translucent-fixed-dark) 100%),var(--sgds-bg-transparent);--btn-color:var(--sgds-color-fixed-light)}:host([variant=ghost][tone=fixed-light]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-fixed-dark) 0%,var(--sgds-bg-translucent-fixed-dark) 100%),var(--sgds-bg-transparent);--btn-color:var(--sgds-color-fixed-light)}:host([variant=primary][tone=neutral]){--btn-bg:var(--sgds-surface-inverse);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-inverse) 0%,var(--sgds-bg-translucent-inverse) 100%),var(--sgds-surface-inverse);--btn-color:var(--sgds-color-inverse)}:host([variant=outline][tone=neutral]){--btn-border-color:var(--sgds-border-color-emphasis);--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:linear-gradient(0deg,var(--sgds-bg-translucent-inverse) 0%,var(--sgds-bg-translucent-inverse) 100%),var(--sgds-bg-translucent-subtle);--btn-color:var(--sgds-color-default)}:host([variant=ghost][tone=neutral]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-bg-translucent-subtle);--btn-color:var(--sgds-color-default)}:host([variant=ghost]) .btn,:host([variant=outline]) .btn,:host([variant=primary]) .btn{color:var(--btn-color)}:host([variant=outline]) .btn{border:var(--btn-border-width) solid var(--btn-border-color)}:host([size=lg]) .btn{font-size:var(--sgds-font-size-label-lg);height:var(--sgds-dimension-56);line-height:var(--sgds-line-height-md);min-width:var(--sgds-dimension-112);padding:var(--sgds-padding-none) var(--sgds-padding-xl)}:host([size=sm]) .btn{font-size:var(--sgds-font-size-label-sm);height:var(--sgds-dimension-40);line-height:var(--sgds-line-height-2-xs);min-width:var(--sgds-dimension-80);padding:var(--sgds-padding-none) var(--sgds-padding-md)}:host([size=xs]) .btn{font-size:var(--sgds-font-size-label-xs);height:var(--sgds-dimension-32);line-height:var(--sgds-line-height-3-xs);min-width:var(--sgds-dimension-64);padding:var(--sgds-padding-none) var(--sgds-padding-sm)}.btn{align-items:center;background-color:var(--btn-bg);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--btn-border-radius);color:var(--sgds-color-fixed-light);cursor:pointer;display:inline-flex;font-size:var(--sgds-font-size-label-md);font-weight:var(--btn-font-weight);gap:var(--sgds-gap-2-xs);height:var(--sgds-dimension-48);justify-content:center;line-height:var(--sgds-line-height-xs);min-width:var(--sgds-dimension-96);opacity:var(--btn-opacity);padding:var(--sgds-padding-none) var(--sgds-padding-lg);text-align:center;text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;user-select:none;vertical-align:middle;white-space:nowrap;width:inherit}.btn.active,.btn:hover{background:var(--btn-hover-bg)}.btn:focus-visible{background:var(--btn-hover-bg);border-color:transparent;outline:var(--sgds-outline-focus);outline-offset:var(--sgds-outline-offset-focus)}.btn.disabled,.btn:disabled{color:var(--btn-color);cursor:not-allowed;opacity:var(--sgds-opacity-40)}.btn.loading{cursor:default}.btn slot::slotted(*){color:var(--btn-color)}`;class tl extends Di{constructor(){super(...arguments),this.variant="primary",this.tone="brand",this.size="md",this.active=!1,this.disabled=!1,this.target="_self"}focus(e){this.button.focus(e)}click(){this.button.click()}blur(){this.button.blur()}_handleBlur(){this.emit("sgds-blur")}_handleFocus(){this.emit("sgds-focus")}_handleClick(e){if(this.disabled||this.loading)return e.preventDefault(),void e.stopPropagation()}_handleKeydown(e){if("Enter"===e.key&&this.loading)return e.preventDefault(),void e.stopPropagation()}_assignSpinnerSize(e){return"xs"===e||"sm"===e?"xs":"md"===e||"lg"===e?"sm":void 0}_assignSpinnerTone(e,t){return"fixed-light"===e&&"primary"===t?"fixed-dark":"neutral"===e&&"primary"===t?"inverse":"fixed-light"===e||"primary"===t?"fixed-light":"neutral"!==e||"outline"!==t&&"ghost"!==t?"brand":"neutral"}}tl.styles=[...Di.styles,el],e([Ie(".btn")],tl.prototype,"button",void 0),e([Be({reflect:!0})],tl.prototype,"variant",void 0),e([Be({reflect:!0})],tl.prototype,"tone",void 0),e([Be({reflect:!0})],tl.prototype,"size",void 0),e([Be({type:Boolean,reflect:!0})],tl.prototype,"active",void 0),e([Be({type:Boolean,reflect:!0})],tl.prototype,"disabled",void 0),e([Be({type:String,reflect:!0})],tl.prototype,"href",void 0),e([Be({type:String,reflect:!0})],tl.prototype,"target",void 0),e([Be({type:String,reflect:!0})],tl.prototype,"download",void 0),e([Be({type:String})],tl.prototype,"ariaLabel",void 0),e([Be({type:Boolean})],tl.prototype,"loading",void 0);class il{constructor(e,...t){this.slotNames=[],(this.host=e).addController(this),this.slotNames=t,this.handleSlotChange=this.handleSlotChange.bind(this)}hasDefaultSlot(){return[...this.host.childNodes].some(e=>{var t;if(e.nodeType===e.TEXT_NODE&&""!==(null===(t=e.textContent)||void 0===t?void 0:t.trim()))return!0;if(e.nodeType===e.ELEMENT_NODE){const t=e;if("sl-visually-hidden"===t.tagName.toLowerCase())return!1;if(!t.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(e){return null!==this.host.querySelector(`:scope > [slot="${e}"]`)}test(e){return"[default]"===e?this.hasDefaultSlot():this.hasNamedSlot(e)}hostConnected(){var e;null===(e=this.host.shadowRoot)||void 0===e||e.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){var e;null===(e=this.host.shadowRoot)||void 0===e||e.removeEventListener("slotchange",this.handleSlotChange)}handleSlotChange(e){const t=e.target;(this.slotNames.includes("[default]")&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()}}class ll{constructor(e,t){(this.host=e).addController(this),this.options=Object.assign({form:e=>e.closest("form")},t)}hostConnected(){this.form=this.options.form(this.host)}hostDisconnected(){this.form&&(this.form=void 0)}doAction(e,t){if(this.form){const i=document.createElement("button");i.type=e,i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.clipPath="inset(50%)",i.style.overflow="hidden",i.style.whiteSpace="nowrap",t&&(["formaction","formmethod","formnovalidate","formtarget"].forEach(e=>{t.hasAttribute(e)&&i.setAttribute(e,t.getAttribute(e))}),"submit"===e&&t.hasAttribute("name")&&(i.name=t.getAttribute("name"),i.value=t.getAttribute("value")||"")),this.form.append(i),i.click(),i.remove()}}reset(e){this.doAction("reset",e)}submit(e){this.doAction("submit",e)}}var nl=f`::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}`,al=f`:host{display:inline-block}:host([fullWidth]),:host([fullWidth]) .btn{width:100%}:host([fullWidth]) .btn.has-left-icon{justify-content:flex-start}:host([fullWidth]) .btn.has-right-icon{justify-content:space-between}:host([fullWidth]) .btn.has-left-icon.has-right-icon{justify-content:center}.btn span{padding:0 var(--sgds-padding-2-xs)}.btn.no-icon{gap:var(--sgds-gap-none)}.loading{cursor:default}`;class rl extends tl{constructor(){super(...arguments),this.formSubmitController=new ll(this,{form:e=>{if(e.hasAttribute("form")){const t=e.getRootNode(),i=e.getAttribute("form");return t.getElementById(i)}return e.closest("form")}}),this.type="button",this.fullWidth=!1,this.hasLeftIconSlot=!1,this.hasRightIconSlot=!1,this.hasSlotController=new il(this,"leftIcon","rightIcon"),this._clickHandler=()=>{"submit"===this.type&&this.formSubmitController.submit(this),"reset"===this.type&&this.formSubmitController.reset(this)}}updated(){this.hasLeftIconSlot||(this.hasLeftIconSlot=this.hasSlotController.test("leftIcon")),this.hasRightIconSlot||(this.hasRightIconSlot=this.hasSlotController.test("rightIcon"))}_handleClick(e){if(this.disabled||this.loading)return e.preventDefault(),void e.stopPropagation();this.removeEventListener("click",this._clickHandler),this.addEventListener("click",this._clickHandler)}render(){const e=this.href,t=e?Ji`a`:Ji`button`,i=!this.hasLeftIconSlot&&!this.hasRightIconSlot;return Xi`
81
81
  <${t}
82
82
  class="btn ${Ui({disabled:this.disabled,active:this.active,"has-left-icon":this.hasLeftIconSlot,"has-right-icon":this.hasRightIconSlot,"no-icon":i,loading:this.loading})}"
83
83
  ?disabled=${Wi(e?void 0:this.disabled)}
@@ -105,7 +105,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
105
105
  <slot name="rightIcon"></slot>`}
106
106
 
107
107
  </${t}>
108
- `}}al.styles=[...tl.styles,nl,rl],e([Be({type:String,reflect:!0})],al.prototype,"name",void 0),e([Be({type:String,reflect:!0})],al.prototype,"value",void 0),e([Be({type:String,reflect:!0})],al.prototype,"type",void 0),e([Be({type:String,reflect:!0})],al.prototype,"form",void 0),e([Be({type:String,reflect:!0,attribute:"formaction"})],al.prototype,"formAction",void 0),e([Be({type:String,reflect:!0,attribute:"formmethod"})],al.prototype,"formMethod",void 0),e([Be({attribute:"formnovalidate",type:Boolean,reflect:!0})],al.prototype,"formNoValidate",void 0),e([Be({type:String,reflect:!0,attribute:"formtarget"})],al.prototype,"formTarget",void 0),e([Be({type:Boolean,reflect:!0})],al.prototype,"fullWidth",void 0),e([Be({type:Boolean})],al.prototype,"hasLeftIconSlot",void 0),e([Be({type:Boolean})],al.prototype,"hasRightIconSlot",void 0);var ol=f`: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%}`,sl=f`.datepicker-body{color:var(--sgds-form-color-default);display:flex;justify-content:center}table{border-collapse:collapse;text-align:center}.monthpicker,.yearpicker{display:grid;grid-template-columns:repeat(3,6rem);grid-template-rows:repeat(4,2.5rem)}.monthpicker [role=row],.yearpicker [role=row]{display:contents}button.month,button.year{background-color:transparent;border:0;border-radius:var(--sgds-form-border-radius-sm);font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs);padding:0;position:relative}button.month.active:not(.selected-ends),button.year.active:not(.selected-ends),td[data-day].active:not(.selected-ends){background-color:var(--sgds-primary-surface-translucent);border-radius:0;cursor:pointer}button.month:hover:not(.active),button.year:hover:not(.active),td[data-day]:hover:not(.disabled):not(.selected-ends):not(.active){background-color:var(--sgds-bg-translucent-subtle);cursor:pointer}button.month:focus:not(.active),button.year:focus:not(.active),td[data-day]:focus:not(.disabled):not(.selected-ends):not(.active){background-color:var(--sgds-bg-translucent-subtle)}button.month:focus-visible,button.year:focus-visible,td[data-day]:focus-visible{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}button.month.active:not(.selected-ends):focus,button.year.active:not(.selected-ends):focus,td[data-day].active:not(.selected-ends):focus{border-radius:var(--sgds-form-border-radius-sm)}button.year.active{background-color:var(--sgds-primary-surface-translucent);cursor:pointer}td,th{border-radius:var(--sgds-form-border-radius-sm);font-size:var(--sgds-font-size-label-sm);height:var(--sgds-form-height-lg);line-height:var(--sgds-line-height-2-xs);padding:0;position:relative;width:var(--sgds-form-width-md)}th{font-weight:var(--sgds-font-weight-semibold)}td[data-day]{cursor:pointer}button.month.active.selected-ends,button.year.active.selected-ends,td[data-day].active.selected-ends{background-color:var(--sgds-form-primary-surface-default);color:var(--sgds-form-color-fixed-light)}button.month.active.selected-ends:focus,button.month.active.selected-ends:hover,button.year.active.selected-ends:focus,button.year.active.selected-ends:hover,td[data-day].active.selected-ends:focus,td[data-day].active.selected-ends:hover{background-color:var(--sgds-form-primary-surface-emphasis)}td[data-day].disabled{cursor:not-allowed;opacity:var(--sgds-opacity-40)}.today{align-items:center;display:flex;flex-direction:column;justify-content:center}.today:after{background-color:var(--sgds-form-primary-surface-default);bottom:6px;content:".";line-height:4px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' fill='none'%3E%3Ccircle cx='2' cy='2' r='2' fill='%235A42C0'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' fill='none'%3E%3Ccircle cx='2' cy='2' r='2' fill='%235A42C0'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;position:absolute;width:4px}.today.active.selected-ends:after{background-color:var(--sgds-form-color-inverse)}`;const cl=new Date,dl={ArrowUp:{days:-7,months:-3,years:-3},ArrowDown:{days:7,months:3,years:3},ArrowRight:{days:1,months:1,years:1},ArrowLeft:{days:-1,months:-1,years:-1}};class hl extends Di{constructor(){super(...arguments),this.selectedDate=[],this.mode="single"}focusOnCalendar(e){e.blur(),this._focusOnCalendarCell()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeyPress),this.addEventListener("blur",e=>e.stopPropagation())}updated(){3===this.focusedTabIndex&&this._focusOnCalendarCell()}_updateFocusedDate(){this.focusedDate=Yi(this.displayDate),this.focusedDate.getFullYear()<1900&&this.focusedDate.setFullYear(1900)}_setFocusedDate(e){const t=this.focusedDate.getDate(),i=this.focusedDate.getMonth(),n=this.focusedDate.getFullYear();switch(this.view){case"days":{const a=Yi(new Date(n,i,t+e));(l(a,new Date(0,0,1,12))||r(a,new Date(0,0,1,12)))&&(this.focusedDate=a);break}case"months":{const a=Yi(new Date(n,i+e,t));(l(a,new Date(0,0,1,12))||r(a,new Date(0,0,1,12)))&&(this.focusedDate=a);break}case"years":{const l=Yi(new Date(n+e,i,t));l.getFullYear()>=1900&&(this.focusedDate=l);break}}}_handleEnterDateKeyboard(e){const t=e.composedPath()[0];if(!t.classList.contains("disabled"))switch(this.view){case"days":this._onClickDay(e);break;case"months":{const{month:e}=t.dataset;this._onClickMonth(parseInt(e));break}case"years":{const{year:e}=t.dataset;this._onClickYear(parseInt(e))}}}_handleKeyPress(e){if("Enter"===e.key)return e.preventDefault(),void this._handleEnterDateKeyboard(e);if("Tab"===e.key){const e=this._getFocusedTarget();return void(3!==this.focusedTabIndex&&e.blur())}if(e.key.includes("Arrow")){e.preventDefault(),this._blurCalendarCell();const t=dl[e.key][this.view];this._setFocusedDate(t),this._focusOnCalendarCell()}}_generateIncrementDates(){const e=Yi(this.selectedDate[0]);if(this.selectedDate.length<2)return[e];const t=Yi(this.selectedDate[1]),i=[];if(e.getTime()<t.getTime())for(let l=e;l<=t;l.setDate(l.getDate()+1))i.push(new Date(l));else for(let l=t;l<=e;l.setDate(l.getDate()+1))i.push(new Date(l));return i}_onClickDay(e){const{day:t,date:i}=e.composedPath()[0].dataset,l=new Date(this.displayDate);if(l.setDate(parseInt(t)),"click"===e.type&&(this.focusedDate=Yi(new Date(i))),"single"===this.mode)this.selectedDate=[l],this.emit("sgds-selectdates",{detail:this.selectedDate});else if("range"===this.mode){const e=[...this.selectedDate];0!==e.length&&2!==e.length||(e.length=0),e.push(l),this.selectedDate=e,this.emit("sgds-selectdates",{detail:this.selectedDate})}const n=this.minDate?Yi(new Date(this.minDate)):null,r=this.maxDate?Yi(new Date(this.maxDate)):null,a=Yi(l);(n&&a<n||r&&a>r)&&(e.stopPropagation(),e.preventDefault())}_onClickMonth(e,t=this.focusedDate.getFullYear()){const i=new Date(this.displayDate);this.view="days",i.setMonth(e),i.setFullYear(t),this.displayDate=i,this.emit("sgds-view",{detail:this.view}),this.emit("sgds-selectmonth",{detail:this.displayDate})}_onClickYear(e){const t=new Date(this.displayDate);t.setFullYear(e),this.displayDate=t,this.view="months",this.emit("sgds-view",{detail:this.view}),this.emit("sgds-selectyear",{detail:this.displayDate})}_getFocusedTarget(){const e={days:`td[data-date="${this.focusedDate.toISOString()}"]`,months:`button[data-month="${this.focusedDate.getMonth()}"][data-year="${this.focusedDate.getFullYear()}"]`,years:`button[data-year="${this.focusedDate.getFullYear()}"]`}[this.view];return this.shadowRoot.querySelector(`${e}`)}_blurCalendarCell(){const e=this._getFocusedTarget();e.setAttribute("tabindex","-1"),e.blur()}_focusOnCalendarCell(){const e=this._getFocusedTarget();e?(e.setAttribute("tabindex","0"),e.focus(),this.emit("sgds-update-focus",{detail:this.focusedDate})):this.emit("sgds-change-calendar",{detail:this.focusedDate})}_generateDays(){const e=this.selectedDate.map(e=>Yi(e)),i=this._generateIncrementDates(),l=this.minDate?Yi(new Date(this.minDate)):null,n=this.maxDate?Yi(new Date(this.maxDate)):null,r=this.displayDate.getFullYear(),a=this.displayDate.getMonth(),o=new Date(r,a,1).getDay();let s=hl.daysInMonth[a];1===a&&(r%4==0&&r%100!=0||r%400==0)&&(s=29);const c=[];let d=1;for(let h=0;h<9;h++){const u=[];for(let c=0;c<=6;c++)if(d<=s&&(h>0||c>=o)){const o=new Date(r,a,d,12,0,0,0),s=o.toISOString(),h=l&&Date.parse(s)<Date.parse(l.toISOString()),v=n&&Date.parse(s)>Date.parse(n.toISOString()),p=h||v?void 0:this._onClickDay,f=cl.getMonth()===this.displayDate.getMonth(),g=cl.getFullYear()===this.displayDate.getFullYear(),m=cl.getDate()===d,w=e.length>0&&i.some(e=>Date.parse(s)===Date.parse(e.toISOString())),_=e.length>0&&i[0].toISOString()===s,b=e.length>1&&i[i.length-1].toISOString()===s,y=""+(m&&f&&g?"Today's date, ":"")+t(o,"PPPP");u.push(se`<td
108
+ `}}rl.styles=[...tl.styles,nl,al],e([Be({type:String,reflect:!0})],rl.prototype,"name",void 0),e([Be({type:String,reflect:!0})],rl.prototype,"value",void 0),e([Be({type:String,reflect:!0})],rl.prototype,"type",void 0),e([Be({type:String,reflect:!0})],rl.prototype,"form",void 0),e([Be({type:String,reflect:!0,attribute:"formaction"})],rl.prototype,"formAction",void 0),e([Be({type:String,reflect:!0,attribute:"formmethod"})],rl.prototype,"formMethod",void 0),e([Be({attribute:"formnovalidate",type:Boolean,reflect:!0})],rl.prototype,"formNoValidate",void 0),e([Be({type:String,reflect:!0,attribute:"formtarget"})],rl.prototype,"formTarget",void 0),e([Be({type:Boolean,reflect:!0})],rl.prototype,"fullWidth",void 0),e([Be({type:Boolean})],rl.prototype,"hasLeftIconSlot",void 0),e([Be({type:Boolean})],rl.prototype,"hasRightIconSlot",void 0);var ol=f`: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%}`,sl=f`.datepicker-body{color:var(--sgds-form-color-default);display:flex;justify-content:center}table{border-collapse:collapse;text-align:center}.monthpicker,.yearpicker{display:grid;grid-template-columns:repeat(3,6rem);grid-template-rows:repeat(4,2.5rem)}.monthpicker [role=row],.yearpicker [role=row]{display:contents}button.month,button.year{background-color:transparent;border:0;border-radius:var(--sgds-form-border-radius-sm);font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs);padding:0;position:relative}button.month.active:not(.selected-ends),button.year.active:not(.selected-ends),td[data-day].active:not(.selected-ends){background-color:var(--sgds-primary-surface-translucent);border-radius:0;cursor:pointer}button.month:hover:not(.active),button.year:hover:not(.active),td[data-day]:hover:not(.disabled):not(.selected-ends):not(.active){background-color:var(--sgds-bg-translucent-subtle);cursor:pointer}button.month:focus:not(.active),button.year:focus:not(.active),td[data-day]:focus:not(.disabled):not(.selected-ends):not(.active){background-color:var(--sgds-bg-translucent-subtle)}button.month:focus-visible,button.year:focus-visible,td[data-day]:focus-visible{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}button.month.active:not(.selected-ends):focus,button.year.active:not(.selected-ends):focus,td[data-day].active:not(.selected-ends):focus{border-radius:var(--sgds-form-border-radius-sm)}button.year.active{background-color:var(--sgds-primary-surface-translucent);cursor:pointer}td,th{border-radius:var(--sgds-form-border-radius-sm);font-size:var(--sgds-font-size-label-sm);height:var(--sgds-form-height-lg);line-height:var(--sgds-line-height-2-xs);padding:0;position:relative;width:var(--sgds-form-width-md)}th{font-weight:var(--sgds-font-weight-semibold)}td[data-day]{cursor:pointer}button.month.active.selected-ends,button.year.active.selected-ends,td[data-day].active.selected-ends{background-color:var(--sgds-form-primary-surface-default);color:var(--sgds-form-color-fixed-light)}button.month.active.selected-ends:focus,button.month.active.selected-ends:hover,button.year.active.selected-ends:focus,button.year.active.selected-ends:hover,td[data-day].active.selected-ends:focus,td[data-day].active.selected-ends:hover{background-color:var(--sgds-form-primary-surface-emphasis)}td[data-day].disabled{cursor:not-allowed;opacity:var(--sgds-opacity-40)}.today{align-items:center;display:flex;flex-direction:column;justify-content:center}.today:after{background-color:var(--sgds-form-primary-surface-default);bottom:6px;content:".";line-height:4px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' fill='none'%3E%3Ccircle cx='2' cy='2' r='2' fill='%235A42C0'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' fill='none'%3E%3Ccircle cx='2' cy='2' r='2' fill='%235A42C0'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;position:absolute;width:4px}.today.active.selected-ends:after{background-color:var(--sgds-form-color-inverse)}`;const cl=new Date,dl={ArrowUp:{days:-7,months:-3,years:-3},ArrowDown:{days:7,months:3,years:3},ArrowRight:{days:1,months:1,years:1},ArrowLeft:{days:-1,months:-1,years:-1}};class hl extends Di{constructor(){super(...arguments),this.selectedDate=[],this.mode="single"}focusOnCalendar(e){e.blur(),this._focusOnCalendarCell()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeyPress),this.addEventListener("blur",e=>e.stopPropagation())}updated(){3===this.focusedTabIndex&&this._focusOnCalendarCell()}_updateFocusedDate(){this.focusedDate=Yi(this.displayDate),this.focusedDate.getFullYear()<1900&&this.focusedDate.setFullYear(1900)}_setFocusedDate(e){const t=this.focusedDate.getDate(),i=this.focusedDate.getMonth(),n=this.focusedDate.getFullYear();switch(this.view){case"days":{const r=Yi(new Date(n,i,t+e));(l(r,new Date(0,0,1,12))||a(r,new Date(0,0,1,12)))&&(this.focusedDate=r);break}case"months":{const r=Yi(new Date(n,i+e,t));(l(r,new Date(0,0,1,12))||a(r,new Date(0,0,1,12)))&&(this.focusedDate=r);break}case"years":{const l=Yi(new Date(n+e,i,t));l.getFullYear()>=1900&&(this.focusedDate=l);break}}}_handleEnterDateKeyboard(e){const t=e.composedPath()[0];if(!t.classList.contains("disabled"))switch(this.view){case"days":this._onClickDay(e);break;case"months":{const{month:e}=t.dataset;this._onClickMonth(parseInt(e));break}case"years":{const{year:e}=t.dataset;this._onClickYear(parseInt(e))}}}_handleKeyPress(e){if("Enter"===e.key)return e.preventDefault(),void this._handleEnterDateKeyboard(e);if("Tab"===e.key){const e=this._getFocusedTarget();return void(3!==this.focusedTabIndex&&e.blur())}if(e.key.includes("Arrow")){e.preventDefault(),this._blurCalendarCell();const t=dl[e.key][this.view];this._setFocusedDate(t),this._focusOnCalendarCell()}}_generateIncrementDates(){const e=Yi(this.selectedDate[0]);if(this.selectedDate.length<2)return[e];const t=Yi(this.selectedDate[1]),i=[];if(e.getTime()<t.getTime())for(let l=e;l<=t;l.setDate(l.getDate()+1))i.push(new Date(l));else for(let l=t;l<=e;l.setDate(l.getDate()+1))i.push(new Date(l));return i}_onClickDay(e){const{day:t,date:i}=e.composedPath()[0].dataset,l=new Date(this.displayDate);if(l.setDate(parseInt(t)),"click"===e.type&&(this.focusedDate=Yi(new Date(i))),"single"===this.mode)this.selectedDate=[l],this.emit("sgds-selectdates",{detail:this.selectedDate});else if("range"===this.mode){const e=[...this.selectedDate];0!==e.length&&2!==e.length||(e.length=0),e.push(l),this.selectedDate=e,this.emit("sgds-selectdates",{detail:this.selectedDate})}const n=this.minDate?Yi(new Date(this.minDate)):null,a=this.maxDate?Yi(new Date(this.maxDate)):null,r=Yi(l);(n&&r<n||a&&r>a)&&(e.stopPropagation(),e.preventDefault())}_onClickMonth(e,t=this.focusedDate.getFullYear()){const i=new Date(this.displayDate);this.view="days",i.setMonth(e),i.setFullYear(t),this.displayDate=i,this.emit("sgds-view",{detail:this.view}),this.emit("sgds-selectmonth",{detail:this.displayDate})}_onClickYear(e){const t=new Date(this.displayDate);t.setFullYear(e),this.displayDate=t,this.view="months",this.emit("sgds-view",{detail:this.view}),this.emit("sgds-selectyear",{detail:this.displayDate})}_getFocusedTarget(){const e={days:`td[data-date="${this.focusedDate.toISOString()}"]`,months:`button[data-month="${this.focusedDate.getMonth()}"][data-year="${this.focusedDate.getFullYear()}"]`,years:`button[data-year="${this.focusedDate.getFullYear()}"]`}[this.view];return this.shadowRoot.querySelector(`${e}`)}_blurCalendarCell(){const e=this._getFocusedTarget();e.setAttribute("tabindex","-1"),e.blur()}_focusOnCalendarCell(){const e=this._getFocusedTarget();e?(e.setAttribute("tabindex","0"),e.focus(),this.emit("sgds-update-focus",{detail:this.focusedDate})):this.emit("sgds-change-calendar",{detail:this.focusedDate})}_generateDays(){const e=this.selectedDate.map(e=>Yi(e)),i=this._generateIncrementDates(),l=this.minDate?Yi(new Date(this.minDate)):null,n=this.maxDate?Yi(new Date(this.maxDate)):null,a=this.displayDate.getFullYear(),r=this.displayDate.getMonth(),o=new Date(a,r,1).getDay();let s=hl.daysInMonth[r];1===r&&(a%4==0&&a%100!=0||a%400==0)&&(s=29);const c=[];let d=1;for(let h=0;h<9;h++){const u=[];for(let c=0;c<=6;c++)if(d<=s&&(h>0||c>=o)){const o=new Date(a,r,d,12,0,0,0),s=o.toISOString(),h=l&&Date.parse(s)<Date.parse(l.toISOString()),v=n&&Date.parse(s)>Date.parse(n.toISOString()),p=h||v?void 0:this._onClickDay,f=cl.getMonth()===this.displayDate.getMonth(),g=cl.getFullYear()===this.displayDate.getFullYear(),m=cl.getDate()===d,w=e.length>0&&i.some(e=>Date.parse(s)===Date.parse(e.toISOString())),_=e.length>0&&i[0].toISOString()===s,b=e.length>1&&i[i.length-1].toISOString()===s,y=""+(m&&f&&g?"Today's date, ":"")+t(o,"PPPP");u.push(se`<td
109
109
  key=${c}
110
110
  data-date=${s}
111
111
  data-day=${d}
@@ -137,11 +137,11 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
137
137
  <div class="monthpicker" role="grid">
138
138
  ${[0,1,2,3].map(l=>se`
139
139
  <div role="row">
140
- ${hl.MONTHVIEW_LABELS.slice(3*l,3*l+3).map((n,r)=>{const a=3*l+r,o=a===cl.getMonth()&&i===cl.getFullYear(),s=Yi(new Date(i,a)).getTime(),c=e[0].getMonth()===a,d=e[0].getFullYear()===i,h=e[e.length-1].getMonth()===a,u=e[e.length-1].getFullYear()===i,v=o?`Current month ${n} ${i}`:`${n} ${i}`;return se` <button
140
+ ${hl.MONTHVIEW_LABELS.slice(3*l,3*l+3).map((n,a)=>{const r=3*l+a,o=r===cl.getMonth()&&i===cl.getFullYear(),s=Yi(new Date(i,r)).getTime(),c=e[0].getMonth()===r,d=e[0].getFullYear()===i,h=e[e.length-1].getMonth()===r,u=e[e.length-1].getFullYear()===i,v=o?`Current month ${n} ${i}`:`${n} ${i}`;return se` <button
141
141
  role="gridcell"
142
142
  class=${Ui({active:t.includes(s),today:o,month:!0,"selected-ends":c&&d||h&&u})}
143
- @click=${()=>this._onClickMonth(a)}
144
- data-month=${a}
143
+ @click=${()=>this._onClickMonth(r)}
144
+ data-month=${r}
145
145
  data-year=${i}
146
146
  tabindex="0"
147
147
  aria-selected=${t.includes(s)?"true":"false"}
@@ -152,7 +152,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
152
152
  </div>
153
153
  `)}
154
154
  </div>
155
- `}_generateYears(){const e=this._generateIncrementDates().map(e=>e.getFullYear()),t=cl.getFullYear(),i=((e,t)=>{const i=e.getFullYear(),l=(i-t)%12,n=l<0?12+l:l,r=[],a=i-n+12-1;for(let e=i-n;e<a+1;e++)r.push(e);return r})(this.displayDate,t);return se`
155
+ `}_generateYears(){const e=this._generateIncrementDates().map(e=>e.getFullYear()),t=cl.getFullYear(),i=((e,t)=>{const i=e.getFullYear(),l=(i-t)%12,n=l<0?12+l:l,a=[],r=i-n+12-1;for(let e=i-n;e<r+1;e++)a.push(e);return a})(this.displayDate,t);return se`
156
156
  <div class="sgds yearpicker" role="grid">
157
157
  ${[0,1,2,3].map(l=>se`
158
158
  <div role="row">
@@ -173,7 +173,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
173
173
  </div>
174
174
  `)}
175
175
  </div>
176
- `}render(){let e;switch(this.view){case"days":default:e=se` ${this._generateDays()} `;break;case"months":e=se` ${this._generateMonths()} `;break;case"years":e=se` ${this._generateYears()} `}return se` <div class="datepicker-body">${e}</div> `}}hl.styles=[sl],hl.DAY_LABELS=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],hl.daysInMonth=[31,28,31,30,31,30,31,31,30,31,30,31],hl.MONTHVIEW_LABELS=["January","February","March","April","May","June","July","August","September","October","November","December"],e([Be({type:Array})],hl.prototype,"selectedDate",void 0),e([Be({attribute:!1})],hl.prototype,"displayDate",void 0),e([Be({type:String})],hl.prototype,"minDate",void 0),e([Be({type:String})],hl.prototype,"maxDate",void 0),e([Be({type:String,reflect:!0})],hl.prototype,"mode",void 0),e([Be()],hl.prototype,"view",void 0),e([Be({type:Boolean})],hl.prototype,"show",void 0),e([Be()],hl.prototype,"focusedTabIndex",void 0),e([Ni("displayDate")],hl.prototype,"_updateFocusedDate",null);const ul={announcement:()=>Promise.resolve().then(function(){return Rl}),archive:()=>Promise.resolve().then(function(){return Nl}),"arrow-bar-down":()=>Promise.resolve().then(function(){return Wl}),"arrow-bar-left":()=>Promise.resolve().then(function(){return Kl}),"arrow-bar-right":()=>Promise.resolve().then(function(){return Gl}),"arrow-bar-up":()=>Promise.resolve().then(function(){return Ql}),"arrow-circle-down":()=>Promise.resolve().then(function(){return tn}),"arrow-circle-left":()=>Promise.resolve().then(function(){return nn}),"arrow-circle-right":()=>Promise.resolve().then(function(){return an}),"arrow-circle-up":()=>Promise.resolve().then(function(){return sn}),"arrow-clockwise":()=>Promise.resolve().then(function(){return dn}),"arrow-down":()=>Promise.resolve().then(function(){return un}),"arrow-left":()=>Promise.resolve().then(function(){return pn}),"arrow-repeat":()=>Promise.resolve().then(function(){return gn}),"arrow-right":()=>Promise.resolve().then(function(){return wn}),"arrow-square-down":()=>Promise.resolve().then(function(){return bn}),"arrow-square-left":()=>Promise.resolve().then(function(){return xn}),"arrow-square-right":()=>Promise.resolve().then(function(){return Zn}),"arrow-square-up":()=>Promise.resolve().then(function(){return Vn}),"arrow-up":()=>Promise.resolve().then(function(){return kn}),"bank-fill":()=>Promise.resolve().then(function(){return Pn}),"bell-slash":()=>Promise.resolve().then(function(){return Dn}),bell:()=>Promise.resolve().then(function(){return zn}),"bi-funnel":()=>Promise.resolve().then(function(){return Ln}),"bookmark-fill":()=>Promise.resolve().then(function(){return jn}),bookmark:()=>Promise.resolve().then(function(){return En}),"box-arrow-up-right":()=>Promise.resolve().then(function(){return Fn}),"box-seam":()=>Promise.resolve().then(function(){return Yn}),building:()=>Promise.resolve().then(function(){return Un}),bus:()=>Promise.resolve().then(function(){return qn}),calculator:()=>Promise.resolve().then(function(){return Jn}),"calendar-check":()=>Promise.resolve().then(function(){return Xn}),"calendar-heart":()=>Promise.resolve().then(function(){return er}),"calendar-x":()=>Promise.resolve().then(function(){return ir}),calendar:()=>Promise.resolve().then(function(){return nr}),camera:()=>Promise.resolve().then(function(){return ar}),car:()=>Promise.resolve().then(function(){return sr}),"chat-dots":()=>Promise.resolve().then(function(){return dr}),"chat-left-text":()=>Promise.resolve().then(function(){return ur}),chat:()=>Promise.resolve().then(function(){return pr}),"check-circle-fill":()=>Promise.resolve().then(function(){return gr}),"check-circle":()=>Promise.resolve().then(function(){return wr}),check:()=>Promise.resolve().then(function(){return br}),"chevron-down":()=>Promise.resolve().then(function(){return xr}),"chevron-left":()=>Promise.resolve().then(function(){return Zr}),"chevron-right":()=>Promise.resolve().then(function(){return Vr}),"chevron-selector-vertical":()=>Promise.resolve().then(function(){return kr}),"chevron-up":()=>Promise.resolve().then(function(){return Pr}),clock:()=>Promise.resolve().then(function(){return Dr}),"cloud-check":()=>Promise.resolve().then(function(){return zr}),"cloud-download":()=>Promise.resolve().then(function(){return Lr}),"cloud-upload":()=>Promise.resolve().then(function(){return jr}),cloud:()=>Promise.resolve().then(function(){return Er}),"code-square":()=>Promise.resolve().then(function(){return Fr}),"coins-hand":()=>Promise.resolve().then(function(){return Yr}),compass:()=>Promise.resolve().then(function(){return Ur}),copy:()=>Promise.resolve().then(function(){return qr}),"cpu-chip-ai":()=>Promise.resolve().then(function(){return Jr}),cross:()=>Promise.resolve().then(function(){return Xr}),"cursor-fill":()=>Promise.resolve().then(function(){return ea}),cursor:()=>Promise.resolve().then(function(){return ia}),"dash-circle":()=>Promise.resolve().then(function(){return na}),"dash-square":()=>Promise.resolve().then(function(){return aa}),dash:()=>Promise.resolve().then(function(){return sa}),database:()=>Promise.resolve().then(function(){return da}),dataflow:()=>Promise.resolve().then(function(){return ua}),download:()=>Promise.resolve().then(function(){return pa}),edit:()=>Promise.resolve().then(function(){return ga}),"exclamation-circle-fill":()=>Promise.resolve().then(function(){return wa}),"exclamation-circle":()=>Promise.resolve().then(function(){return ba}),"exclamation-triangle-fill":()=>Promise.resolve().then(function(){return xa}),"exclamation-triangle":()=>Promise.resolve().then(function(){return Za}),exclamation:()=>Promise.resolve().then(function(){return Va}),"eye-fill":()=>Promise.resolve().then(function(){return ka}),"eye-slash-fill":()=>Promise.resolve().then(function(){return Pa}),"eye-slash":()=>Promise.resolve().then(function(){return Da}),eye:()=>Promise.resolve().then(function(){return za}),"face-smile-fill":()=>Promise.resolve().then(function(){return La}),"face-smile":()=>Promise.resolve().then(function(){return ja}),facebook:()=>Promise.resolve().then(function(){return Ea}),"file-earmark-text":()=>Promise.resolve().then(function(){return Fa}),"file-pdf":()=>Promise.resolve().then(function(){return Ya}),"file-plus":()=>Promise.resolve().then(function(){return Ua}),"file-text":()=>Promise.resolve().then(function(){return qa}),file:()=>Promise.resolve().then(function(){return Ja}),files:()=>Promise.resolve().then(function(){return Xa}),fingerprint:()=>Promise.resolve().then(function(){return eo}),flash:()=>Promise.resolve().then(function(){return io}),"folder-check":()=>Promise.resolve().then(function(){return no}),"folder-minus":()=>Promise.resolve().then(function(){return ao}),"folder-plus":()=>Promise.resolve().then(function(){return so}),folder:()=>Promise.resolve().then(function(){return ho}),gear:()=>Promise.resolve().then(function(){return vo}),"geo-alt":()=>Promise.resolve().then(function(){return fo}),"geo-fill":()=>Promise.resolve().then(function(){return mo}),geo:()=>Promise.resolve().then(function(){return _o}),"globe-alt":()=>Promise.resolve().then(function(){return yo}),globe:()=>Promise.resolve().then(function(){return Co}),google:()=>Promise.resolve().then(function(){return Mo}),"grid-alt":()=>Promise.resolve().then(function(){return $o}),"grid-fill":()=>Promise.resolve().then(function(){return Ho}),"hand-thumbs-down":()=>Promise.resolve().then(function(){return So}),"hand-thumbs-up":()=>Promise.resolve().then(function(){return Oo}),"hard-drive":()=>Promise.resolve().then(function(){return Bo}),heart:()=>Promise.resolve().then(function(){return Ao}),"house-door":()=>Promise.resolve().then(function(){return Io}),house:()=>Promise.resolve().then(function(){return To}),image:()=>Promise.resolve().then(function(){return Ro}),"in-box":()=>Promise.resolve().then(function(){return No}),"info-circle-fill":()=>Promise.resolve().then(function(){return Wo}),"info-circle":()=>Promise.resolve().then(function(){return Ko}),instagram:()=>Promise.resolve().then(function(){return Go}),key:()=>Promise.resolve().then(function(){return Qo}),"laptop-gear":()=>Promise.resolve().then(function(){return ts}),laptop:()=>Promise.resolve().then(function(){return ls}),layers:()=>Promise.resolve().then(function(){return rs}),"layout-text-window-reverse":()=>Promise.resolve().then(function(){return os}),"layout-text-window":()=>Promise.resolve().then(function(){return cs}),layout:()=>Promise.resolve().then(function(){return hs}),"life-buoy":()=>Promise.resolve().then(function(){return vs}),lightbulb:()=>Promise.resolve().then(function(){return fs}),link:()=>Promise.resolve().then(function(){return ms}),linkedin:()=>Promise.resolve().then(function(){return _s}),list:()=>Promise.resolve().then(function(){return ys}),"lock-fill":()=>Promise.resolve().then(function(){return Cs}),lock:()=>Promise.resolve().then(function(){return Ms}),login:()=>Promise.resolve().then(function(){return $s}),logout:()=>Promise.resolve().then(function(){return Hs}),luggage:()=>Promise.resolve().then(function(){return Ss}),"mail-open":()=>Promise.resolve().then(function(){return Os}),mail:()=>Promise.resolve().then(function(){return Bs}),map:()=>Promise.resolve().then(function(){return As}),meetup:()=>Promise.resolve().then(function(){return Is}),menu:()=>Promise.resolve().then(function(){return Ts}),microphone:()=>Promise.resolve().then(function(){return Rs}),monitor:()=>Promise.resolve().then(function(){return Ns}),moon:()=>Promise.resolve().then(function(){return Ws}),move:()=>Promise.resolve().then(function(){return Ks}),paperclip:()=>Promise.resolve().then(function(){return Gs}),passcode:()=>Promise.resolve().then(function(){return Qs}),passport:()=>Promise.resolve().then(function(){return tc}),pause:()=>Promise.resolve().then(function(){return lc}),pencil:()=>Promise.resolve().then(function(){return rc}),"pending-circle":()=>Promise.resolve().then(function(){return oc}),"person-dash":()=>Promise.resolve().then(function(){return cc}),"person-plus":()=>Promise.resolve().then(function(){return hc}),"person-x":()=>Promise.resolve().then(function(){return vc}),person:()=>Promise.resolve().then(function(){return fc}),phone:()=>Promise.resolve().then(function(){return mc}),"pin-map-fill":()=>Promise.resolve().then(function(){return _c}),pin:()=>Promise.resolve().then(function(){return yc}),placeholder:()=>Promise.resolve().then(function(){return Cc}),plane:()=>Promise.resolve().then(function(){return Mc}),play:()=>Promise.resolve().then(function(){return $c}),"plus-circle":()=>Promise.resolve().then(function(){return Hc}),"plus-square":()=>Promise.resolve().then(function(){return Sc}),plus:()=>Promise.resolve().then(function(){return Oc}),printer:()=>Promise.resolve().then(function(){return Bc}),"question-circle":()=>Promise.resolve().then(function(){return Ac}),rocket:()=>Promise.resolve().then(function(){return Ic}),save:()=>Promise.resolve().then(function(){return Tc}),search:()=>Promise.resolve().then(function(){return Rc}),send:()=>Promise.resolve().then(function(){return Nc}),"sg-crest":()=>Promise.resolve().then(function(){return Wc}),share:()=>Promise.resolve().then(function(){return Kc}),"shield-tick":()=>Promise.resolve().then(function(){return Gc}),"sidebar-collapse":()=>Promise.resolve().then(function(){return Qc}),"sidebar-expand":()=>Promise.resolve().then(function(){return td}),"slash-circle":()=>Promise.resolve().then(function(){return ld}),"slash-divider":()=>Promise.resolve().then(function(){return rd}),sliders:()=>Promise.resolve().then(function(){return od}),"sort-ascending":()=>Promise.resolve().then(function(){return cd}),"sort-descending":()=>Promise.resolve().then(function(){return hd}),speedometer:()=>Promise.resolve().then(function(){return vd}),"star-ai":()=>Promise.resolve().then(function(){return fd}),"star-fill":()=>Promise.resolve().then(function(){return md}),star:()=>Promise.resolve().then(function(){return _d}),stoplights:()=>Promise.resolve().then(function(){return yd}),sun:()=>Promise.resolve().then(function(){return Cd}),"switch-horizontal":()=>Promise.resolve().then(function(){return Md}),"switch-vertical":()=>Promise.resolve().then(function(){return $d}),tablet:()=>Promise.resolve().then(function(){return Hd}),telegram:()=>Promise.resolve().then(function(){return Sd}),telephone:()=>Promise.resolve().then(function(){return Od}),"three-dots-vertical":()=>Promise.resolve().then(function(){return Bd}),"three-dots":()=>Promise.resolve().then(function(){return Ad}),ticket:()=>Promise.resolve().then(function(){return Id}),"toggle-off":()=>Promise.resolve().then(function(){return Td}),"toggle-on":()=>Promise.resolve().then(function(){return Rd}),train:()=>Promise.resolve().then(function(){return Nd}),translate:()=>Promise.resolve().then(function(){return Wd}),trash:()=>Promise.resolve().then(function(){return Kd}),"trend-down":()=>Promise.resolve().then(function(){return Gd}),"trend-up":()=>Promise.resolve().then(function(){return Qd}),truck:()=>Promise.resolve().then(function(){return th}),"twitter-x":()=>Promise.resolve().then(function(){return lh}),unlock:()=>Promise.resolve().then(function(){return rh}),upload:()=>Promise.resolve().then(function(){return oh}),"user-check":()=>Promise.resolve().then(function(){return ch}),"user-circle":()=>Promise.resolve().then(function(){return hh}),"user-pause":()=>Promise.resolve().then(function(){return vh}),"user-square":()=>Promise.resolve().then(function(){return fh}),users:()=>Promise.resolve().then(function(){return mh}),"video-recorder":()=>Promise.resolve().then(function(){return _h}),"volume-max":()=>Promise.resolve().then(function(){return yh}),"volume-x":()=>Promise.resolve().then(function(){return Ch}),"window-dash":()=>Promise.resolve().then(function(){return Mh}),"window-desktop":()=>Promise.resolve().then(function(){return $h}),"window-dock":()=>Promise.resolve().then(function(){return Hh}),"window-fullscreen":()=>Promise.resolve().then(function(){return Sh}),"window-plus":()=>Promise.resolve().then(function(){return Oh}),"window-sidebar":()=>Promise.resolve().then(function(){return Bh}),"window-split":()=>Promise.resolve().then(function(){return Ah}),"window-stack":()=>Promise.resolve().then(function(){return Ih}),"window-x":()=>Promise.resolve().then(function(){return Th}),window:()=>Promise.resolve().then(function(){return Rh}),"xcircle-fill":()=>Promise.resolve().then(function(){return Nh}),xcircle:()=>Promise.resolve().then(function(){return Wh}),youtube:()=>Promise.resolve().then(function(){return Kh}),"zoom-in":()=>Promise.resolve().then(function(){return Gh}),"zoom-out":()=>Promise.resolve().then(function(){return Qh})};var vl=f`: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)}`;const pl=new Map;class fl extends Di{constructor(){super(...arguments),this.size="lg"}willUpdate(e){e.has("name")&&this._loadIcon(this.name)}async _loadIcon(e){if(!e)return void(this._icon=void 0);if(pl.has(e))return void(this._icon=pl.get(e));const t=ul[e];if(!t)return console.warn(`Icon not found: ${e}`),void(this._icon=void 0);try{const i=await t();pl.set(e,i.default),this._icon=i.default}catch(t){console.warn(`Failed to load icon: ${e}`),this._icon=void 0}}updated(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("svg");t&&(this.ariaLabel?(t.removeAttribute("aria-hidden"),t.setAttribute("aria-label",this.ariaLabel)):(t.removeAttribute("aria-label"),t.setAttribute("aria-hidden","true")))}render(){var e;return null!==(e=this._icon)&&void 0!==e?e:he}}fl.styles=[...Di.styles,vl],e([Be({type:String,reflect:!0})],fl.prototype,"name",void 0),e([Be({type:String,reflect:!0})],fl.prototype,"size",void 0),e([Be({type:String})],fl.prototype,"ariaLabel",void 0),e([Le()],fl.prototype,"_icon",void 0);var gl=f`:host{--sgds-spinner-bg:var(--sgds-primary-surface-default);display:inline-flex}:host([variant=neutral]){--sgds-spinner-bg:var(--sgds-neutral-surface-default)}:host([tone=neutral]){--sgds-spinner-bg:var(--sgds-surface-inverse)}:host([tone=inverse]){--sgds-spinner-bg:var(--sgds-surface-default)}:host([tone=fixed-light]){--sgds-spinner-bg:var(--sgds-surface-fixed-light)}:host([tone=fixed-dark]){--sgds-spinner-bg:var(--sgds-surface-fixed-dark)}.spinner-wrapper{align-items:center;display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs)}.spinner-wrapper.horizontal{flex-direction:row}.spinner{--border-thickness:4px;animation:spinner .75s linear infinite;border:var(--border-thickness) solid var(--sgds-bg-translucent);border-radius:50%;border-right:var(--border-thickness) solid var(--sgds-spinner-bg);color:var(--sgds-spinner-color);display:inline-flex;height:var(--sgds-dimension-32);width:var(--sgds-dimension-32)}.spinner-xs{--border-thickness:2px;height:var(--sgds-dimension-16);width:var(--sgds-dimension-16)}.spinner-sm{--border-thickness:3px;height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}.spinner-lg{--border-thickness:6px;height:var(--sgds-dimension-48);width:var(--sgds-dimension-48)}.spinner-xl{--border-thickness:8px;height:var(--sgds-dimension-64);width:var(--sgds-dimension-64)}.spinner-label{color:var(--sgds-neutral-color-default);font-size:var(--sgds-font-size-label-sm)}
176
+ `}render(){let e;switch(this.view){case"days":default:e=se` ${this._generateDays()} `;break;case"months":e=se` ${this._generateMonths()} `;break;case"years":e=se` ${this._generateYears()} `}return se` <div class="datepicker-body">${e}</div> `}}hl.styles=[sl],hl.DAY_LABELS=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],hl.daysInMonth=[31,28,31,30,31,30,31,31,30,31,30,31],hl.MONTHVIEW_LABELS=["January","February","March","April","May","June","July","August","September","October","November","December"],e([Be({type:Array})],hl.prototype,"selectedDate",void 0),e([Be({attribute:!1})],hl.prototype,"displayDate",void 0),e([Be({type:String})],hl.prototype,"minDate",void 0),e([Be({type:String})],hl.prototype,"maxDate",void 0),e([Be({type:String,reflect:!0})],hl.prototype,"mode",void 0),e([Be()],hl.prototype,"view",void 0),e([Be({type:Boolean})],hl.prototype,"show",void 0),e([Be()],hl.prototype,"focusedTabIndex",void 0),e([Ni("displayDate")],hl.prototype,"_updateFocusedDate",null);const ul={announcement:()=>Promise.resolve().then(function(){return Rl}),archive:()=>Promise.resolve().then(function(){return Nl}),"arrow-bar-down":()=>Promise.resolve().then(function(){return Wl}),"arrow-bar-left":()=>Promise.resolve().then(function(){return Kl}),"arrow-bar-right":()=>Promise.resolve().then(function(){return Gl}),"arrow-bar-up":()=>Promise.resolve().then(function(){return Ql}),"arrow-circle-down":()=>Promise.resolve().then(function(){return tn}),"arrow-circle-left":()=>Promise.resolve().then(function(){return nn}),"arrow-circle-right":()=>Promise.resolve().then(function(){return rn}),"arrow-circle-up":()=>Promise.resolve().then(function(){return sn}),"arrow-clockwise":()=>Promise.resolve().then(function(){return dn}),"arrow-down":()=>Promise.resolve().then(function(){return un}),"arrow-left":()=>Promise.resolve().then(function(){return pn}),"arrow-repeat":()=>Promise.resolve().then(function(){return gn}),"arrow-right":()=>Promise.resolve().then(function(){return wn}),"arrow-square-down":()=>Promise.resolve().then(function(){return bn}),"arrow-square-left":()=>Promise.resolve().then(function(){return xn}),"arrow-square-right":()=>Promise.resolve().then(function(){return Zn}),"arrow-square-up":()=>Promise.resolve().then(function(){return Vn}),"arrow-up":()=>Promise.resolve().then(function(){return kn}),"bank-fill":()=>Promise.resolve().then(function(){return Pn}),"bell-slash":()=>Promise.resolve().then(function(){return Dn}),bell:()=>Promise.resolve().then(function(){return zn}),"bi-funnel":()=>Promise.resolve().then(function(){return Ln}),"bookmark-fill":()=>Promise.resolve().then(function(){return jn}),bookmark:()=>Promise.resolve().then(function(){return En}),"box-arrow-up-right":()=>Promise.resolve().then(function(){return Fn}),"box-seam":()=>Promise.resolve().then(function(){return Yn}),building:()=>Promise.resolve().then(function(){return Un}),bus:()=>Promise.resolve().then(function(){return qn}),calculator:()=>Promise.resolve().then(function(){return Jn}),"calendar-check":()=>Promise.resolve().then(function(){return Xn}),"calendar-heart":()=>Promise.resolve().then(function(){return ea}),"calendar-x":()=>Promise.resolve().then(function(){return ia}),calendar:()=>Promise.resolve().then(function(){return na}),camera:()=>Promise.resolve().then(function(){return ra}),car:()=>Promise.resolve().then(function(){return sa}),"chat-dots":()=>Promise.resolve().then(function(){return da}),"chat-left-text":()=>Promise.resolve().then(function(){return ua}),chat:()=>Promise.resolve().then(function(){return pa}),"check-circle-fill":()=>Promise.resolve().then(function(){return ga}),"check-circle":()=>Promise.resolve().then(function(){return wa}),check:()=>Promise.resolve().then(function(){return ba}),"chevron-down":()=>Promise.resolve().then(function(){return xa}),"chevron-left":()=>Promise.resolve().then(function(){return Za}),"chevron-right":()=>Promise.resolve().then(function(){return Va}),"chevron-selector-vertical":()=>Promise.resolve().then(function(){return ka}),"chevron-up":()=>Promise.resolve().then(function(){return Pa}),clock:()=>Promise.resolve().then(function(){return Da}),"cloud-check":()=>Promise.resolve().then(function(){return za}),"cloud-download":()=>Promise.resolve().then(function(){return La}),"cloud-upload":()=>Promise.resolve().then(function(){return ja}),cloud:()=>Promise.resolve().then(function(){return Ea}),"code-square":()=>Promise.resolve().then(function(){return Fa}),"coins-hand":()=>Promise.resolve().then(function(){return Ya}),compass:()=>Promise.resolve().then(function(){return Ua}),copy:()=>Promise.resolve().then(function(){return qa}),"cpu-chip-ai":()=>Promise.resolve().then(function(){return Ja}),cross:()=>Promise.resolve().then(function(){return Xa}),"cursor-fill":()=>Promise.resolve().then(function(){return er}),cursor:()=>Promise.resolve().then(function(){return ir}),"dash-circle":()=>Promise.resolve().then(function(){return nr}),"dash-square":()=>Promise.resolve().then(function(){return rr}),dash:()=>Promise.resolve().then(function(){return sr}),database:()=>Promise.resolve().then(function(){return dr}),dataflow:()=>Promise.resolve().then(function(){return ur}),download:()=>Promise.resolve().then(function(){return pr}),edit:()=>Promise.resolve().then(function(){return gr}),"exclamation-circle-fill":()=>Promise.resolve().then(function(){return wr}),"exclamation-circle":()=>Promise.resolve().then(function(){return br}),"exclamation-triangle-fill":()=>Promise.resolve().then(function(){return xr}),"exclamation-triangle":()=>Promise.resolve().then(function(){return Zr}),exclamation:()=>Promise.resolve().then(function(){return Vr}),"eye-fill":()=>Promise.resolve().then(function(){return kr}),"eye-slash-fill":()=>Promise.resolve().then(function(){return Pr}),"eye-slash":()=>Promise.resolve().then(function(){return Dr}),eye:()=>Promise.resolve().then(function(){return zr}),"face-smile-fill":()=>Promise.resolve().then(function(){return Lr}),"face-smile":()=>Promise.resolve().then(function(){return jr}),facebook:()=>Promise.resolve().then(function(){return Er}),"file-earmark-text":()=>Promise.resolve().then(function(){return Fr}),"file-pdf":()=>Promise.resolve().then(function(){return Yr}),"file-plus":()=>Promise.resolve().then(function(){return Ur}),"file-text":()=>Promise.resolve().then(function(){return qr}),file:()=>Promise.resolve().then(function(){return Jr}),files:()=>Promise.resolve().then(function(){return Xr}),fingerprint:()=>Promise.resolve().then(function(){return eo}),flash:()=>Promise.resolve().then(function(){return io}),"folder-check":()=>Promise.resolve().then(function(){return no}),"folder-minus":()=>Promise.resolve().then(function(){return ro}),"folder-plus":()=>Promise.resolve().then(function(){return so}),folder:()=>Promise.resolve().then(function(){return ho}),gear:()=>Promise.resolve().then(function(){return vo}),"geo-alt":()=>Promise.resolve().then(function(){return fo}),"geo-fill":()=>Promise.resolve().then(function(){return mo}),geo:()=>Promise.resolve().then(function(){return _o}),"globe-alt":()=>Promise.resolve().then(function(){return yo}),globe:()=>Promise.resolve().then(function(){return Co}),google:()=>Promise.resolve().then(function(){return Mo}),"grid-alt":()=>Promise.resolve().then(function(){return $o}),"grid-fill":()=>Promise.resolve().then(function(){return Ho}),"hand-thumbs-down":()=>Promise.resolve().then(function(){return So}),"hand-thumbs-up":()=>Promise.resolve().then(function(){return Oo}),"hard-drive":()=>Promise.resolve().then(function(){return Bo}),heart:()=>Promise.resolve().then(function(){return Ao}),"house-door":()=>Promise.resolve().then(function(){return Io}),house:()=>Promise.resolve().then(function(){return To}),image:()=>Promise.resolve().then(function(){return Ro}),"in-box":()=>Promise.resolve().then(function(){return No}),"info-circle-fill":()=>Promise.resolve().then(function(){return Wo}),"info-circle":()=>Promise.resolve().then(function(){return Ko}),instagram:()=>Promise.resolve().then(function(){return Go}),key:()=>Promise.resolve().then(function(){return Qo}),"laptop-gear":()=>Promise.resolve().then(function(){return ts}),laptop:()=>Promise.resolve().then(function(){return ls}),layers:()=>Promise.resolve().then(function(){return as}),"layout-text-window-reverse":()=>Promise.resolve().then(function(){return os}),"layout-text-window":()=>Promise.resolve().then(function(){return cs}),layout:()=>Promise.resolve().then(function(){return hs}),"life-buoy":()=>Promise.resolve().then(function(){return vs}),lightbulb:()=>Promise.resolve().then(function(){return fs}),link:()=>Promise.resolve().then(function(){return ms}),linkedin:()=>Promise.resolve().then(function(){return _s}),list:()=>Promise.resolve().then(function(){return ys}),"lock-fill":()=>Promise.resolve().then(function(){return Cs}),lock:()=>Promise.resolve().then(function(){return Ms}),login:()=>Promise.resolve().then(function(){return $s}),logout:()=>Promise.resolve().then(function(){return Hs}),luggage:()=>Promise.resolve().then(function(){return Ss}),"mail-open":()=>Promise.resolve().then(function(){return Os}),mail:()=>Promise.resolve().then(function(){return Bs}),map:()=>Promise.resolve().then(function(){return As}),meetup:()=>Promise.resolve().then(function(){return Is}),menu:()=>Promise.resolve().then(function(){return Ts}),microphone:()=>Promise.resolve().then(function(){return Rs}),monitor:()=>Promise.resolve().then(function(){return Ns}),moon:()=>Promise.resolve().then(function(){return Ws}),move:()=>Promise.resolve().then(function(){return Ks}),paperclip:()=>Promise.resolve().then(function(){return Gs}),passcode:()=>Promise.resolve().then(function(){return Qs}),passport:()=>Promise.resolve().then(function(){return tc}),pause:()=>Promise.resolve().then(function(){return lc}),pencil:()=>Promise.resolve().then(function(){return ac}),"pending-circle":()=>Promise.resolve().then(function(){return oc}),"person-dash":()=>Promise.resolve().then(function(){return cc}),"person-plus":()=>Promise.resolve().then(function(){return hc}),"person-x":()=>Promise.resolve().then(function(){return vc}),person:()=>Promise.resolve().then(function(){return fc}),phone:()=>Promise.resolve().then(function(){return mc}),"pin-map-fill":()=>Promise.resolve().then(function(){return _c}),pin:()=>Promise.resolve().then(function(){return yc}),placeholder:()=>Promise.resolve().then(function(){return Cc}),plane:()=>Promise.resolve().then(function(){return Mc}),play:()=>Promise.resolve().then(function(){return $c}),"plus-circle":()=>Promise.resolve().then(function(){return Hc}),"plus-square":()=>Promise.resolve().then(function(){return Sc}),plus:()=>Promise.resolve().then(function(){return Oc}),printer:()=>Promise.resolve().then(function(){return Bc}),"question-circle":()=>Promise.resolve().then(function(){return Ac}),rocket:()=>Promise.resolve().then(function(){return Ic}),save:()=>Promise.resolve().then(function(){return Tc}),search:()=>Promise.resolve().then(function(){return Rc}),send:()=>Promise.resolve().then(function(){return Nc}),"sg-crest":()=>Promise.resolve().then(function(){return Wc}),share:()=>Promise.resolve().then(function(){return Kc}),"shield-tick":()=>Promise.resolve().then(function(){return Gc}),"sidebar-collapse":()=>Promise.resolve().then(function(){return Qc}),"sidebar-expand":()=>Promise.resolve().then(function(){return td}),"slash-circle":()=>Promise.resolve().then(function(){return ld}),"slash-divider":()=>Promise.resolve().then(function(){return ad}),sliders:()=>Promise.resolve().then(function(){return od}),"sort-ascending":()=>Promise.resolve().then(function(){return cd}),"sort-descending":()=>Promise.resolve().then(function(){return hd}),speedometer:()=>Promise.resolve().then(function(){return vd}),"star-ai":()=>Promise.resolve().then(function(){return fd}),"star-fill":()=>Promise.resolve().then(function(){return md}),star:()=>Promise.resolve().then(function(){return _d}),stoplights:()=>Promise.resolve().then(function(){return yd}),sun:()=>Promise.resolve().then(function(){return Cd}),"switch-horizontal":()=>Promise.resolve().then(function(){return Md}),"switch-vertical":()=>Promise.resolve().then(function(){return $d}),tablet:()=>Promise.resolve().then(function(){return Hd}),telegram:()=>Promise.resolve().then(function(){return Sd}),telephone:()=>Promise.resolve().then(function(){return Od}),"three-dots-vertical":()=>Promise.resolve().then(function(){return Bd}),"three-dots":()=>Promise.resolve().then(function(){return Ad}),ticket:()=>Promise.resolve().then(function(){return Id}),"toggle-off":()=>Promise.resolve().then(function(){return Td}),"toggle-on":()=>Promise.resolve().then(function(){return Rd}),train:()=>Promise.resolve().then(function(){return Nd}),translate:()=>Promise.resolve().then(function(){return Wd}),trash:()=>Promise.resolve().then(function(){return Kd}),"trend-down":()=>Promise.resolve().then(function(){return Gd}),"trend-up":()=>Promise.resolve().then(function(){return Qd}),truck:()=>Promise.resolve().then(function(){return th}),"twitter-x":()=>Promise.resolve().then(function(){return lh}),unlock:()=>Promise.resolve().then(function(){return ah}),upload:()=>Promise.resolve().then(function(){return oh}),"user-check":()=>Promise.resolve().then(function(){return ch}),"user-circle":()=>Promise.resolve().then(function(){return hh}),"user-pause":()=>Promise.resolve().then(function(){return vh}),"user-square":()=>Promise.resolve().then(function(){return fh}),users:()=>Promise.resolve().then(function(){return mh}),"video-recorder":()=>Promise.resolve().then(function(){return _h}),"volume-max":()=>Promise.resolve().then(function(){return yh}),"volume-x":()=>Promise.resolve().then(function(){return Ch}),"window-dash":()=>Promise.resolve().then(function(){return Mh}),"window-desktop":()=>Promise.resolve().then(function(){return $h}),"window-dock":()=>Promise.resolve().then(function(){return Hh}),"window-fullscreen":()=>Promise.resolve().then(function(){return Sh}),"window-plus":()=>Promise.resolve().then(function(){return Oh}),"window-sidebar":()=>Promise.resolve().then(function(){return Bh}),"window-split":()=>Promise.resolve().then(function(){return Ah}),"window-stack":()=>Promise.resolve().then(function(){return Ih}),"window-x":()=>Promise.resolve().then(function(){return Th}),window:()=>Promise.resolve().then(function(){return Rh}),"xcircle-fill":()=>Promise.resolve().then(function(){return Nh}),xcircle:()=>Promise.resolve().then(function(){return Wh}),youtube:()=>Promise.resolve().then(function(){return Kh}),"zoom-in":()=>Promise.resolve().then(function(){return Gh}),"zoom-out":()=>Promise.resolve().then(function(){return Qh})};var vl=f`: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)}`;const pl=new Map;class fl extends Di{constructor(){super(...arguments),this.size="lg"}willUpdate(e){e.has("name")&&this._loadIcon(this.name)}async _loadIcon(e){if(!e)return void(this._icon=void 0);if(pl.has(e))return void(this._icon=pl.get(e));const t=ul[e];if(!t)return console.warn(`Icon not found: ${e}`),void(this._icon=void 0);try{const i=await t();pl.set(e,i.default),this._icon=i.default}catch(t){console.warn(`Failed to load icon: ${e}`),this._icon=void 0}}updated(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("svg");t&&(this.ariaLabel?(t.removeAttribute("aria-hidden"),t.setAttribute("aria-label",this.ariaLabel)):(t.removeAttribute("aria-label"),t.setAttribute("aria-hidden","true")))}render(){var e;return null!==(e=this._icon)&&void 0!==e?e:he}}fl.styles=[...Di.styles,vl],e([Be({type:String,reflect:!0})],fl.prototype,"name",void 0),e([Be({type:String,reflect:!0})],fl.prototype,"size",void 0),e([Be({type:String})],fl.prototype,"ariaLabel",void 0),e([Le()],fl.prototype,"_icon",void 0);var gl=f`:host{--sgds-spinner-bg:var(--sgds-primary-surface-default);display:inline-flex}:host([variant=neutral]){--sgds-spinner-bg:var(--sgds-neutral-surface-default)}:host([tone=neutral]){--sgds-spinner-bg:var(--sgds-surface-inverse)}:host([tone=inverse]){--sgds-spinner-bg:var(--sgds-surface-default)}:host([tone=fixed-light]){--sgds-spinner-bg:var(--sgds-surface-fixed-light)}:host([tone=fixed-dark]){--sgds-spinner-bg:var(--sgds-surface-fixed-dark)}.spinner-wrapper{align-items:center;display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs)}.spinner-wrapper.horizontal{flex-direction:row}.spinner{--border-thickness:4px;animation:spinner .75s linear infinite;border:var(--border-thickness) solid var(--sgds-bg-translucent);border-radius:50%;border-right:var(--border-thickness) solid var(--sgds-spinner-bg);color:var(--sgds-spinner-color);display:inline-flex;height:var(--sgds-dimension-32);width:var(--sgds-dimension-32)}.spinner-xs{--border-thickness:2px;height:var(--sgds-dimension-16);width:var(--sgds-dimension-16)}.spinner-sm{--border-thickness:3px;height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}.spinner-lg{--border-thickness:6px;height:var(--sgds-dimension-48);width:var(--sgds-dimension-48)}.spinner-xl{--border-thickness:8px;height:var(--sgds-dimension-64);width:var(--sgds-dimension-64)}.spinner-label{color:var(--sgds-neutral-color-default);font-size:var(--sgds-font-size-label-sm)}
177
177
 
178
178
 
179
179
  /*! 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}`,ml=f`.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 wl extends Di{constructor(){super(...arguments),this.variant="primary",this.tone="brand",this.size="md",this.orientation="vertical"}render(){return Xi`
@@ -214,7 +214,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
214
214
  size=${Wi(this._assignIconSize(this.size))}
215
215
  ></sgds-icon>`}
216
216
  </${t}>
217
- `}}bl.styles=[...tl.styles,_l],bl.dependencies={"sgds-icon":fl,"sgds-spinner":wl},e([Be({type:String,reflect:!0})],bl.prototype,"name",void 0);var yl=f`.datepicker-header{display:flex;gap:var(--sgds-form-gap-md)}sgds-button{--btn-font-weight:var(--sgds-font-weight-semibold)}`;class xl extends Di{constructor(){super(...arguments),this.selectedDate=[]}_handleFocusedTabIndexChange(){let e;switch(this.focusedTabIndex){case 0:e=this.shadowRoot.querySelector("sgds-icon-button[name='arrow-left']");break;case 1:e=this.shadowRoot.querySelector("sgds-button");break;case 2:e=this.shadowRoot.querySelector("sgds-icon-button[name='arrow-right']");break;default:return}e.focus()}_changeView(){switch(this.view){case"days":this.view="months";break;case"months":this.view="years"}this.emit("sgds-view",{detail:this.view})}renderHeader(e=this.displayDate,t=this.view){if("months"===t)return e.getFullYear();if("years"===t){const t=(new Date).getFullYear(),i=e.getFullYear(),l=(i-t)%12,n=l<0?12+l:l;return`${i-n} - ${i-n+12-1}`}return`${Cl[e.getMonth()]} ${e.getFullYear()}`}_renderHeaderTemplate(){return se`${this.renderHeader()}`}handleClickPrevious(){const{view:e,displayDate:t,focusedDate:i}=this;let l=new Date(t);"months"===e?l.setFullYear(l.getFullYear()-1):"years"===this.view?l.setFullYear(l.getFullYear()-12):l=i.getDate()!==t.getDate()?Ri(i):Ri(l),this.displayDate=l,this.emit("sgds-change-calendar",{detail:this.displayDate})}_handleClickNext(){const{view:e,displayDate:t,focusedDate:i}=this;let l=new Date(t);"months"===e?l.setFullYear(l.getFullYear()+1):"years"===this.view?l.setFullYear(l.getFullYear()+12):l=i.getDate()!==t.getDate()?Fi(i):Fi(l),this.displayDate=l,this.emit("sgds-change-calendar",{detail:this.displayDate})}_removeCaret(){const e=this.displayDate.getFullYear(),t=this.displayDate.getMonth(),i=new Date(e,t);return"months"===this.view?e<=1900:"years"===this.view?e<1904:r(i,new Date(0,0,1))||n(i,new Date(0,0,1))}_ariaLabelForNextBtn(){return{days:"Show next month",months:"Show next year",years:"Show next 12 years"}[this.view]}_ariaLabelForPrevBtn(){return{days:"Show previous month",months:"Show previous year",years:"Show previous 12 years"}[this.view]}_ariaLabelForHeaderBtn(){const e={days:`Current view is days, click to show months in ${this.displayDate.getFullYear()}`,months:`Current view is months, click to show years between ${this.renderHeader(this.displayDate,"years")}`,years:"Current view is years"};return`${this.renderHeader()}. ${e[this.view]}`}render(){return se`
217
+ `}}bl.styles=[...tl.styles,_l],bl.dependencies={"sgds-icon":fl,"sgds-spinner":wl},e([Be({type:String,reflect:!0})],bl.prototype,"name",void 0);var yl=f`.datepicker-header{display:flex;gap:var(--sgds-form-gap-md)}sgds-button{--btn-font-weight:var(--sgds-font-weight-semibold)}`;class xl extends Di{constructor(){super(...arguments),this.selectedDate=[]}_handleFocusedTabIndexChange(){let e;switch(this.focusedTabIndex){case 0:e=this.shadowRoot.querySelector("sgds-icon-button[name='arrow-left']");break;case 1:e=this.shadowRoot.querySelector("sgds-button");break;case 2:e=this.shadowRoot.querySelector("sgds-icon-button[name='arrow-right']");break;default:return}e.focus()}_changeView(){switch(this.view){case"days":this.view="months";break;case"months":this.view="years"}this.emit("sgds-view",{detail:this.view})}renderHeader(e=this.displayDate,t=this.view){if("months"===t)return e.getFullYear();if("years"===t){const t=(new Date).getFullYear(),i=e.getFullYear(),l=(i-t)%12,n=l<0?12+l:l;return`${i-n} - ${i-n+12-1}`}return`${Cl[e.getMonth()]} ${e.getFullYear()}`}_renderHeaderTemplate(){return se`${this.renderHeader()}`}handleClickPrevious(){const{view:e,displayDate:t,focusedDate:i}=this;let l=new Date(t);"months"===e?l.setFullYear(l.getFullYear()-1):"years"===this.view?l.setFullYear(l.getFullYear()-12):l=i.getDate()!==t.getDate()?Ri(i):Ri(l),this.displayDate=l,this.emit("sgds-change-calendar",{detail:this.displayDate})}_handleClickNext(){const{view:e,displayDate:t,focusedDate:i}=this;let l=new Date(t);"months"===e?l.setFullYear(l.getFullYear()+1):"years"===this.view?l.setFullYear(l.getFullYear()+12):l=i.getDate()!==t.getDate()?Fi(i):Fi(l),this.displayDate=l,this.emit("sgds-change-calendar",{detail:this.displayDate})}_removeCaret(){const e=this.displayDate.getFullYear(),t=this.displayDate.getMonth(),i=new Date(e,t);return"months"===this.view?e<=1900:"years"===this.view?e<1904:a(i,new Date(0,0,1))||n(i,new Date(0,0,1))}_ariaLabelForNextBtn(){return{days:"Show next month",months:"Show next year",years:"Show next 12 years"}[this.view]}_ariaLabelForPrevBtn(){return{days:"Show previous month",months:"Show previous year",years:"Show previous 12 years"}[this.view]}_ariaLabelForHeaderBtn(){const e={days:`Current view is days, click to show months in ${this.displayDate.getFullYear()}`,months:`Current view is months, click to show years between ${this.renderHeader(this.displayDate,"years")}`,years:"Current view is years"};return`${this.renderHeader()}. ${e[this.view]}`}render(){return se`
218
218
  <div class="datepicker-header dropdown-header">
219
219
  <sgds-icon-button
220
220
  name="arrow-left"
@@ -246,7 +246,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
246
246
  >
247
247
  </sgds-icon-button>
248
248
  </div>
249
- `}}xl.styles=[yl],xl.dependencies={"sgds-icon":fl,"sgds-icon-button":bl,"sgds-button":al},e([Be({attribute:!1})],xl.prototype,"displayDate",void 0),e([Be({attribute:!1})],xl.prototype,"focusedDate",void 0),e([Be({attribute:!1})],xl.prototype,"selectedDate",void 0),e([Be()],xl.prototype,"view",void 0),e([Be()],xl.prototype,"focusedTabIndex",void 0),e([Ni("focusedTabIndex",{waitUntilFirstUpdate:!0})],xl.prototype,"_handleFocusedTabIndexChange",null);const Cl=["January","February","March","April","May","June","July","August","September","October","November","December"];class Zl{constructor(e,t){this.listeners=new Map,this.input=e,this.placeholderStr=this._buildPlaceholder(t.pattern),this._state=this.placeholderStr,this.listeners.set("accept",[]),this.listeners.set("complete",[]);const i={value:"",isComplete:!1};Object.defineProperties(i,{value:{get:()=>this._state,enumerable:!0},isComplete:{get:()=>this._state.length>0&&!/[DMY]/.test(this._state),enumerable:!0}}),this.masked=i,this.input.value&&this.input.value.length===this._state.length&&!/[DMY]/.test(this.input.value)?this._state=this.input.value:this.input.value=this._state,this._boundHandleBeforeInput=this._handleBeforeInput.bind(this),this._boundHandleInput=this._handleInput.bind(this),this._boundHandleKeydown=this._handleKeydown.bind(this),this._boundHandleFocus=this._handleFocus.bind(this),this._boundHandleBlur=this._handleBlur.bind(this),this._valueAtFocus=this._state,this.input.addEventListener("beforeinput",this._boundHandleBeforeInput),this.input.addEventListener("input",this._boundHandleInput),this.input.addEventListener("keydown",this._boundHandleKeydown),this.input.addEventListener("focus",this._boundHandleFocus),this.input.addEventListener("blur",this._boundHandleBlur)}get value(){return this._state}set value(e){this._state=e&&""!==e?e:this.placeholderStr,this.input.value=this._state,this._emit("accept")}on(e,t){var i;null===(i=this.listeners.get(e))||void 0===i||i.push(t)}updateValue(){this._state=this.input.value}destroy(){this.input.removeEventListener("beforeinput",this._boundHandleBeforeInput),this.input.removeEventListener("input",this._boundHandleInput),this.input.removeEventListener("keydown",this._boundHandleKeydown),this.input.removeEventListener("focus",this._boundHandleFocus),this.input.removeEventListener("blur",this._boundHandleBlur),this.listeners.clear()}_handleFocus(){this._valueAtFocus=this._state}_handleBlur(){this._state!==this._valueAtFocus&&this.input.dispatchEvent(new Event("change",{bubbles:!0}))}_buildPlaceholder(e){return e.replace(/`/g,"").replace(/\{(\/)\}/g,"$1").replace(/d/g,"D").replace(/m/g,"M").replace(/y/g,"Y")}_getDigitPositions(){const e=[];for(let t=0;t<this.placeholderStr.length;t++){const i=this.placeholderStr[t];"D"!==i&&"M"!==i&&"Y"!==i||e.push(t)}return e}_handleBeforeInput(e){e.preventDefault()}_handleInput(){this.input.value!==this._state&&(this.input.value=this._state)}_handleKeydown(e){"Backspace"===e.key?(e.preventDefault(),this._backspace()):"Delete"===e.key?(e.preventDefault(),this._deleteForward()):1===e.key.length&&/\d/.test(e.key)&&(e.preventDefault(),this._insertDigit(e.key))}_insertDigit(e){const t=this._getDigitPositions(),i=this._state.split("");let l=-1;for(const e of t)if(/[DMY]/.test(i[e])){l=e;break}if(-1===l)return;i[l]=e,this._state=i.join(""),this.input.value=this._state;const n=this._findNextInputPos(l);this.input.setSelectionRange(n,n),this._emit("accept"),this.masked.isComplete&&this._emit("complete")}_backspace(){var e;const t=null!==(e=this.input.selectionStart)&&void 0!==e?e:this._state.length,i=this._state.split("");let l=t-1;for(;l>=0&&!/\d/.test(i[l]);)l--;l>=0&&(i[l]=this.placeholderStr[l],this._state=i.join(""),this.input.value=this._state,this.input.setSelectionRange(l,l),this._emit("accept"))}_deleteForward(){var e;const t=null!==(e=this.input.selectionStart)&&void 0!==e?e:0,i=this._state.split("");let l=t;for(;l<i.length&&!/\d/.test(i[l]);)l++;l<i.length&&(i[l]=this.placeholderStr[l],this._state=i.join(""),this.input.value=this._state,this.input.setSelectionRange(t,t),this._emit("accept"))}_findNextInputPos(e){for(let t=e+1;t<this._state.length;t++)if(/[DMY]/.test(this._state[t]))return t;return this._state.length}_emit(e){const t=this.listeners.get(e);if(t)for(const e of t)e()}}var Ml=f`.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-label-sm);font-weight:var(--sgds-font-weight-regular)}.valid-icon{color:var(--sgds-form-success-color-default)}`,Vl=f`.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)}`,$l=f`.form-label{color:var(--sgds-form-color-default);font-weight:var(--sgds-font-weight-semibold);margin-bottom:0}.form-label.disabled{opacity:var(--sgds-opacity-40)}.form-check-label{color:var(--sgds-form-color-default)}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:not-allowed}`,kl=f`.form-control::placeholder{color:var(--sgds-form-color-subtle);font-family:var(--sgds-font-family-brand);font-weight:var(--sgds-font-weight-light);line-height:var(--sgds-line-height-24)}`;class Hl extends Di{constructor(){super(...arguments),this.label="",this.hintText="",this.disabled=!1,this.invalid=!1,this._controlId=Oi("input"),this._labelId=Oi("label")}setInvalid(e){this.invalid=e,e?this.emit("sgds-invalid"):this.emit("sgds-valid")}}Hl.styles=[...Di.styles,Ml,Vl,$l,kl],e([Be({reflect:!0})],Hl.prototype,"label",void 0),e([Be({reflect:!0})],Hl.prototype,"hintText",void 0),e([Be({reflect:!0})],Hl.prototype,"name",void 0),e([Be({type:Boolean,reflect:!0})],Hl.prototype,"disabled",void 0),e([Be({type:Boolean,reflect:!0})],Hl.prototype,"invalid",void 0);var Pl=f`.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);font-weight:var(--sgds-font-weight-semibold)}.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-xl);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-family:var(--sgds-font-family-brand);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}.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)}`;const Sl=(e="value")=>(t,i)=>{const l=t.constructor,n=l.prototype.attributeChangedCallback;l.prototype.attributeChangedCallback=function(t,r,a){var o;const s=l.getPropertyOptions(e);if(t===("string"==typeof s.attribute?s.attribute:e).toLowerCase()){const t=s.converter||P,l=("function"==typeof t?t:null!==(o=null==t?void 0:t.fromAttribute)&&void 0!==o?o:P.fromAttribute)(a,s.type);this[e]!==l&&(this[i]=l)}n.call(this,t,r,a)}};class Dl{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,i){return this._internals.setValidity(e,t,i)}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 i in t)t[i]&&(this.validationError=i.toString(),this._internals.setValidity({[this.validationError]:!0},e.validationMessage,e))}}const Ol=t=>{class i extends t{constructor(...e){super(...e),this._isTouched=!1,this._internals=this.attachInternals()}connectedCallback(){var e;super.connectedCallback(),null!==(e=this.inputValidationController)&&void 0!==e||(this.inputValidationController=new Dl(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.inputValidationController.resetValidity(),this.inputValidationController.updateInvalidState(),this._isTouched&&(this._isTouched=!1),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.validateInput(e)}_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,i){if(!this._mixinShouldSkipSgdsValidation())return this.inputValidationController.setValidity(e,t,i)}_mixinShouldSkipSgdsValidation(){const e=this.closest("form");return(null==e?void 0:e.noValidate)||this.noValidate}}return i.formAssociated=!0,e([Ee("sgds-input")],i.prototype,"sgdsInput",void 0),e([Ee("sgds-datepicker-input")],i.prototype,"sgdsDatepickerInput",void 0),i};var zl=f`:host{--input-border-radius:var(--sgds-form-border-radius-md);--input-min-width:var(--sgds-dimension-160)}.form-control-container{min-width:var(--input-min-width)}:host(.quantity-toggle) input::-webkit-inner-spin-button{appearance:none;margin:0}:host(.quantity-toggle) input{text-align:center}.form-control-prefix,.form-control-suffix{align-items:center;color:var(--sgds-form-color-subtle);display:flex;flex-shrink:0;font-weight:var(--sgds-font-weight-semibold);gap:var(--sgds-gap-xs);height:100%;justify-content:center}.form-control-prefix{border-right:var(--sgds-form-border-width-default) solid var(--sgds-border-color-muted);padding-right:var(--sgds-form-padding-x)}.form-control-suffix{border-left:var(--sgds-form-border-width-default) solid var(--sgds-border-color-muted);padding-left:var(--sgds-form-padding-x)}.form-control-group.quantity-toggle{padding:0}sgds-icon[role=button]{cursor:pointer}sgds-icon[role=button]:focus,sgds-icon[role=button]:focus-visible{outline:var(--sgds-form-outline-focus)}.form-control-row{align-items:center;display:flex;gap:var(--sgds-gap-sm)}`;class Bl extends(Ol(Hl)){constructor(){super(...arguments),this.type="text",this.placeholder="placeholder",this.autofocus=!1,this.readonly=!1,this.autocomplete="on",this.defaultValue="",this.valid=!1,this.loading=!1,this.required=!1,this.noValidate=!1,this.value="",this._isTouched=!1,this._showPassword=!1}focus(e){this.input.focus(e)}blur(){this.input.blur()}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}setValidity(e,t,i){return this._mixinSetValidity(e,t,i)}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}_handleFocus(){this.emit("sgds-focus")}_handleBlur(){const e=this.emit("sgds-blur",{cancelable:!0});this._mixinShouldSkipSgdsValidation()||e.defaultPrevented||(this.setInvalid(!this._mixinCheckValidity()),this._isTouched=!0)}_handleClick(){this.focus()}_handleChange(e){this.value=this.input.value;this.emit("sgds-change",{cancelable:!0}).defaultPrevented||super._mixinHandleChange(e)}_handleInputChange(e){this.value=this.input.value;this.emit("sgds-input",{cancelable:!0}).defaultPrevented||super._mixinHandleInputChange(e)}_handleIsTouched(){this._mixinShouldSkipSgdsValidation()||this._isTouched&&this.setInvalid(!this._mixinCheckValidity())}_handleDisabledChange(){this.setInvalid(!1)}_renderInput(){const e="both"===this.hasFeedback||"style"===this.hasFeedback,t="both"===this.hasFeedback||"text"===this.hasFeedback,i=[this.hintText?`${this._controlId}Help`:"",this.invalid&&t?`${this._controlId}-invalid`:""].filter(Boolean).join(" ")||void 0;return Xi`
249
+ `}}xl.styles=[yl],xl.dependencies={"sgds-icon":fl,"sgds-icon-button":bl,"sgds-button":rl},e([Be({attribute:!1})],xl.prototype,"displayDate",void 0),e([Be({attribute:!1})],xl.prototype,"focusedDate",void 0),e([Be({attribute:!1})],xl.prototype,"selectedDate",void 0),e([Be()],xl.prototype,"view",void 0),e([Be()],xl.prototype,"focusedTabIndex",void 0),e([Ni("focusedTabIndex",{waitUntilFirstUpdate:!0})],xl.prototype,"_handleFocusedTabIndexChange",null);const Cl=["January","February","March","April","May","June","July","August","September","October","November","December"];class Zl{constructor(e,t){this.listeners=new Map,this.input=e,this.placeholderStr=this._buildPlaceholder(t.pattern),this._state=this.placeholderStr,this.listeners.set("accept",[]),this.listeners.set("complete",[]);const i={value:"",isComplete:!1};Object.defineProperties(i,{value:{get:()=>this._state,enumerable:!0},isComplete:{get:()=>this._state.length>0&&!/[DMY]/.test(this._state),enumerable:!0}}),this.masked=i,this.input.value&&this.input.value.length===this._state.length&&!/[DMY]/.test(this.input.value)?this._state=this.input.value:this.input.value=this._state,this._boundHandleBeforeInput=this._handleBeforeInput.bind(this),this._boundHandleInput=this._handleInput.bind(this),this._boundHandleKeydown=this._handleKeydown.bind(this),this._boundHandleFocus=this._handleFocus.bind(this),this._boundHandleBlur=this._handleBlur.bind(this),this._valueAtFocus=this._state,this.input.addEventListener("beforeinput",this._boundHandleBeforeInput),this.input.addEventListener("input",this._boundHandleInput),this.input.addEventListener("keydown",this._boundHandleKeydown),this.input.addEventListener("focus",this._boundHandleFocus),this.input.addEventListener("blur",this._boundHandleBlur)}get value(){return this._state}set value(e){this._state=e&&""!==e?e:this.placeholderStr,this.input.value=this._state,this._emit("accept")}on(e,t){var i;null===(i=this.listeners.get(e))||void 0===i||i.push(t)}updateValue(){this._state=this.input.value}destroy(){this.input.removeEventListener("beforeinput",this._boundHandleBeforeInput),this.input.removeEventListener("input",this._boundHandleInput),this.input.removeEventListener("keydown",this._boundHandleKeydown),this.input.removeEventListener("focus",this._boundHandleFocus),this.input.removeEventListener("blur",this._boundHandleBlur),this.listeners.clear()}_handleFocus(){this._valueAtFocus=this._state}_handleBlur(){this._state!==this._valueAtFocus&&this.input.dispatchEvent(new Event("change",{bubbles:!0}))}_buildPlaceholder(e){return e.replace(/`/g,"").replace(/\{(\/)\}/g,"$1").replace(/d/g,"D").replace(/m/g,"M").replace(/y/g,"Y")}_getDigitPositions(){const e=[];for(let t=0;t<this.placeholderStr.length;t++){const i=this.placeholderStr[t];"D"!==i&&"M"!==i&&"Y"!==i||e.push(t)}return e}_handleBeforeInput(e){e.preventDefault()}_handleInput(){this.input.value!==this._state&&(this.input.value=this._state)}_handleKeydown(e){"Backspace"===e.key?(e.preventDefault(),this._backspace()):"Delete"===e.key?(e.preventDefault(),this._deleteForward()):1===e.key.length&&/\d/.test(e.key)&&(e.preventDefault(),this._insertDigit(e.key))}_insertDigit(e){const t=this._getDigitPositions(),i=this._state.split("");let l=-1;for(const e of t)if(/[DMY]/.test(i[e])){l=e;break}if(-1===l)return;i[l]=e,this._state=i.join(""),this.input.value=this._state;const n=this._findNextInputPos(l);this.input.setSelectionRange(n,n),this._emit("accept"),this.masked.isComplete&&this._emit("complete")}_backspace(){var e;const t=null!==(e=this.input.selectionStart)&&void 0!==e?e:this._state.length,i=this._state.split("");let l=t-1;for(;l>=0&&!/\d/.test(i[l]);)l--;l>=0&&(i[l]=this.placeholderStr[l],this._state=i.join(""),this.input.value=this._state,this.input.setSelectionRange(l,l),this._emit("accept"))}_deleteForward(){var e;const t=null!==(e=this.input.selectionStart)&&void 0!==e?e:0,i=this._state.split("");let l=t;for(;l<i.length&&!/\d/.test(i[l]);)l++;l<i.length&&(i[l]=this.placeholderStr[l],this._state=i.join(""),this.input.value=this._state,this.input.setSelectionRange(t,t),this._emit("accept"))}_findNextInputPos(e){for(let t=e+1;t<this._state.length;t++)if(/[DMY]/.test(this._state[t]))return t;return this._state.length}_emit(e){const t=this.listeners.get(e);if(t)for(const e of t)e()}}var Ml=f`.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-label-sm);font-weight:var(--sgds-font-weight-regular)}.valid-icon{color:var(--sgds-form-success-color-default)}`,Vl=f`.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)}`,$l=f`.form-label{color:var(--sgds-form-color-default);font-weight:var(--sgds-font-weight-semibold);margin-bottom:0}.form-label.disabled{opacity:var(--sgds-opacity-40)}.form-check-label{color:var(--sgds-form-color-default)}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:not-allowed}`,kl=f`.form-control::placeholder{color:var(--sgds-form-color-subtle);font-family:var(--sgds-font-family-brand);font-weight:var(--sgds-font-weight-light);line-height:var(--sgds-line-height-24)}`;class Hl extends Di{constructor(){super(...arguments),this.label="",this.hintText="",this.disabled=!1,this.invalid=!1,this._controlId=Oi("input"),this._labelId=Oi("label")}setInvalid(e){this.invalid=e,e?this.emit("sgds-invalid"):this.emit("sgds-valid")}}Hl.styles=[...Di.styles,Ml,Vl,$l,kl],e([Be({reflect:!0})],Hl.prototype,"label",void 0),e([Be({reflect:!0})],Hl.prototype,"hintText",void 0),e([Be({reflect:!0})],Hl.prototype,"name",void 0),e([Be({type:Boolean,reflect:!0})],Hl.prototype,"disabled",void 0),e([Be({type:Boolean,reflect:!0})],Hl.prototype,"invalid",void 0);var Pl=f`.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);font-weight:var(--sgds-font-weight-semibold)}.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-family:var(--sgds-font-family-brand);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}.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)}`;const Sl=(e="value")=>(t,i)=>{const l=t.constructor,n=l.prototype.attributeChangedCallback;l.prototype.attributeChangedCallback=function(t,a,r){var o;const s=l.getPropertyOptions(e);if(t===("string"==typeof s.attribute?s.attribute:e).toLowerCase()){const t=s.converter||P,l=("function"==typeof t?t:null!==(o=null==t?void 0:t.fromAttribute)&&void 0!==o?o:P.fromAttribute)(r,s.type);this[e]!==l&&(this[i]=l)}n.call(this,t,a,r)}};class Dl{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,i){return this._internals.setValidity(e,t,i)}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 i in t)t[i]&&(this.validationError=i.toString(),this._internals.setValidity({[this.validationError]:!0},e.validationMessage,e))}}const Ol=t=>{class i extends t{constructor(...e){super(...e),this._isTouched=!1,this._internals=this.attachInternals()}connectedCallback(){var e;super.connectedCallback(),null!==(e=this.inputValidationController)&&void 0!==e||(this.inputValidationController=new Dl(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.inputValidationController.resetValidity(),this.inputValidationController.updateInvalidState(),this._isTouched&&(this._isTouched=!1),this._mixinShouldSkipSgdsValidation()||this.inputValidationController.validateInput(e)}_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,i){if(!this._mixinShouldSkipSgdsValidation())return this.inputValidationController.setValidity(e,t,i)}_mixinShouldSkipSgdsValidation(){const e=this.closest("form");return(null==e?void 0:e.noValidate)||this.noValidate}}return i.formAssociated=!0,e([Ee("sgds-input")],i.prototype,"sgdsInput",void 0),e([Ee("sgds-datepicker-input")],i.prototype,"sgdsDatepickerInput",void 0),i};var zl=f`:host{--input-border-radius:var(--sgds-form-border-radius-md);--input-min-width:var(--sgds-dimension-160)}.form-control-container{min-width:var(--input-min-width)}:host(.quantity-toggle) input::-webkit-inner-spin-button{appearance:none;margin:0}:host(.quantity-toggle) input{text-align:center}.form-control-prefix,.form-control-suffix{color:var(--sgds-form-color-subtle);display:flex;flex-shrink:0;font-weight:var(--sgds-font-weight-semibold);gap:var(--sgds-gap-xs)}.form-control-group.quantity-toggle{padding:0}sgds-icon[role=button]{cursor:pointer}sgds-icon[role=button]:focus,sgds-icon[role=button]:focus-visible{outline:var(--sgds-form-outline-focus)}.form-control-row{align-items:center;display:flex;gap:var(--sgds-gap-sm)}`;class Bl extends(Ol(Hl)){constructor(){super(...arguments),this.type="text",this.placeholder="placeholder",this.autofocus=!1,this.readonly=!1,this.autocomplete="on",this.defaultValue="",this.valid=!1,this.loading=!1,this.required=!1,this.noValidate=!1,this.value="",this._isTouched=!1,this._showPassword=!1}focus(e){this.input.focus(e)}blur(){this.input.blur()}reportValidity(){return this._mixinReportValidity()}checkValidity(){return this._mixinCheckValidity()}setValidity(e,t,i){return this._mixinSetValidity(e,t,i)}get validity(){return this._mixinGetValidity()}get validationMessage(){return this._mixinGetValidationMessage()}_handleFocus(){this.emit("sgds-focus")}_handleBlur(){const e=this.emit("sgds-blur",{cancelable:!0});this._mixinShouldSkipSgdsValidation()||e.defaultPrevented||(this.setInvalid(!this._mixinCheckValidity()),this._isTouched=!0)}_handleClick(){this.focus()}_handleChange(e){this.value=this.input.value;this.emit("sgds-change",{cancelable:!0}).defaultPrevented||super._mixinHandleChange(e)}_handleInputChange(e){this.value=this.input.value;this.emit("sgds-input",{cancelable:!0}).defaultPrevented||super._mixinHandleInputChange(e)}_handleIsTouched(){this._mixinShouldSkipSgdsValidation()||this._isTouched&&this.setInvalid(!this._mixinCheckValidity())}_handleDisabledChange(){this.setInvalid(!1)}_renderInput(){const e="both"===this.hasFeedback||"style"===this.hasFeedback,t="both"===this.hasFeedback||"text"===this.hasFeedback,i=[this.hintText?`${this._controlId}Help`:"",this.invalid&&t?`${this._controlId}-invalid`:""].filter(Boolean).join(" ")||void 0;return Xi`
250
250
  <div
251
251
  class="form-control-group ${Ui({disabled:this.disabled,readonly:this.readonly,"is-invalid":this.invalid&&e})}"
252
252
  @click=${this._handleClick}
@@ -347,7 +347,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
347
347
  >
348
348
  <sgds-icon-button
349
349
  slot="calendar-btn"
350
- ${at(this.myDropdown)}
350
+ ${rt(this.myDropdown)}
351
351
  tone="neutral"
352
352
  class=${Ui({"calendar-btn":!0,"with-hint-text":this.hintText||this.invalid,"with-label":this.label})}
353
353
  aria-expanded="${this.menuIsOpen}"
@@ -368,7 +368,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
368
368
  role="dialog"
369
369
  aria-label=${this._dialogAriaLabels[this.view]}
370
370
  @click=${e=>e.stopPropagation()}
371
- ${at(this.menuRef)}
371
+ ${rt(this.menuRef)}
372
372
  >
373
373
  <sgds-datepicker-header
374
374
  .view=${this.view}
@@ -389,7 +389,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
389
389
  ></sgds-datepicker-calendar>
390
390
  </div>
391
391
  </div>
392
- `}}Tl.styles=[...Ei.styles,ol,El],Tl.dependencies={"sgds-datepicker-input":Al,"sgds-datepicker-calendar":hl,"sgds-datepicker-header":xl,"sgds-button":al,"sgds-icon-button":bl},e([Be({type:Boolean,reflect:!0})],Tl.prototype,"required",void 0),e([Be({reflect:!0})],Tl.prototype,"name",void 0),e([Be({type:Boolean,reflect:!0})],Tl.prototype,"disabled",void 0),e([Be({type:Boolean,reflect:!0})],Tl.prototype,"noValidate",void 0),e([Be({type:String,reflect:!0})],Tl.prototype,"value",void 0),e([Be({type:Array,reflect:!0})],Tl.prototype,"initialValue",void 0),e([Be({type:String})],Tl.prototype,"minDate",void 0),e([Be({type:String})],Tl.prototype,"maxDate",void 0),e([Be({type:String,reflect:!0})],Tl.prototype,"mode",void 0),e([Be({type:String,reflect:!0})],Tl.prototype,"invalidFeedback",void 0),e([Be({type:Boolean,reflect:!0})],Tl.prototype,"hasFeedback",void 0),e([Be({reflect:!0})],Tl.prototype,"label",void 0),e([Be({reflect:!0})],Tl.prototype,"hintText",void 0),e([Be({type:Boolean,reflect:!0,state:!1})],Tl.prototype,"noFlip",void 0),e([Be({type:String,reflect:!0,state:!1})],Tl.prototype,"drop",void 0),e([Be({attribute:!1})],Tl.prototype,"displayDate",void 0),e([Sl()],Tl.prototype,"defaultValue",void 0),e([Be({type:Boolean,reflect:!0})],Tl.prototype,"invalid",void 0),e([Le()],Tl.prototype,"view",void 0),e([Le()],Tl.prototype,"selectedDateRange",void 0),e([Le()],Tl.prototype,"focusedDate",void 0),e([Le()],Tl.prototype,"focusedTabIndex",void 0),e([Ee("sgds-datepicker-calendar")],Tl.prototype,"calendar",void 0),e([Ee("sgds-datepicker-input")],Tl.prototype,"datepickerInputAsync",void 0),e([Ie("sgds-datepicker-input")],Tl.prototype,"datepickerInput",void 0),e([Ni("value",{waitUntilFirstUpdate:!0})],Tl.prototype,"_handleValueChange",null),jl="sgds-datepicker",Il=Tl,customElements.get(jl)||customElements.define(jl,Il);var Fl=se`
392
+ `}}Tl.styles=[...Ei.styles,ol,El],Tl.dependencies={"sgds-datepicker-input":Al,"sgds-datepicker-calendar":hl,"sgds-datepicker-header":xl,"sgds-button":rl,"sgds-icon-button":bl},e([Be({type:Boolean,reflect:!0})],Tl.prototype,"required",void 0),e([Be({reflect:!0})],Tl.prototype,"name",void 0),e([Be({type:Boolean,reflect:!0})],Tl.prototype,"disabled",void 0),e([Be({type:Boolean,reflect:!0})],Tl.prototype,"noValidate",void 0),e([Be({type:String,reflect:!0})],Tl.prototype,"value",void 0),e([Be({type:Array,reflect:!0})],Tl.prototype,"initialValue",void 0),e([Be({type:String})],Tl.prototype,"minDate",void 0),e([Be({type:String})],Tl.prototype,"maxDate",void 0),e([Be({type:String,reflect:!0})],Tl.prototype,"mode",void 0),e([Be({type:String,reflect:!0})],Tl.prototype,"invalidFeedback",void 0),e([Be({type:Boolean,reflect:!0})],Tl.prototype,"hasFeedback",void 0),e([Be({reflect:!0})],Tl.prototype,"label",void 0),e([Be({reflect:!0})],Tl.prototype,"hintText",void 0),e([Be({type:Boolean,reflect:!0,state:!1})],Tl.prototype,"noFlip",void 0),e([Be({type:String,reflect:!0,state:!1})],Tl.prototype,"drop",void 0),e([Be({attribute:!1})],Tl.prototype,"displayDate",void 0),e([Sl()],Tl.prototype,"defaultValue",void 0),e([Be({type:Boolean,reflect:!0})],Tl.prototype,"invalid",void 0),e([Le()],Tl.prototype,"view",void 0),e([Le()],Tl.prototype,"selectedDateRange",void 0),e([Le()],Tl.prototype,"focusedDate",void 0),e([Le()],Tl.prototype,"focusedTabIndex",void 0),e([Ee("sgds-datepicker-calendar")],Tl.prototype,"calendar",void 0),e([Ee("sgds-datepicker-input")],Tl.prototype,"datepickerInputAsync",void 0),e([Ie("sgds-datepicker-input")],Tl.prototype,"datepickerInput",void 0),e([Ni("value",{waitUntilFirstUpdate:!0})],Tl.prototype,"_handleValueChange",null),jl="sgds-datepicker",Il=Tl,customElements.get(jl)||customElements.define(jl,Il);var Fl=se`
393
393
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
394
394
  <path
395
395
  fill="currentColor"
@@ -463,7 +463,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
463
463
  clip-rule="evenodd"
464
464
  />
465
465
  </svg>
466
- `,nn=Object.freeze({__proto__:null,default:ln}),rn=se`
466
+ `,nn=Object.freeze({__proto__:null,default:ln}),an=se`
467
467
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
468
468
  <path
469
469
  fill="currentColor"
@@ -476,7 +476,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
476
476
  clip-rule="evenodd"
477
477
  />
478
478
  </svg>
479
- `,an=Object.freeze({__proto__:null,default:rn}),on=se`
479
+ `,rn=Object.freeze({__proto__:null,default:an}),on=se`
480
480
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
481
481
  <path
482
482
  fill="currentColor"
@@ -726,7 +726,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
726
726
  clip-rule="evenodd"
727
727
  />
728
728
  </svg>
729
- `,er=Object.freeze({__proto__:null,default:Qn}),tr=se`
729
+ `,ea=Object.freeze({__proto__:null,default:Qn}),ta=se`
730
730
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
731
731
  <path
732
732
  fill="currentColor"
@@ -739,7 +739,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
739
739
  clip-rule="evenodd"
740
740
  />
741
741
  </svg>
742
- `,ir=Object.freeze({__proto__:null,default:tr}),lr=se`
742
+ `,ia=Object.freeze({__proto__:null,default:ta}),la=se`
743
743
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
744
744
  <path
745
745
  fill="currentColor"
@@ -748,7 +748,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
748
748
  clip-rule="evenodd"
749
749
  />
750
750
  </svg>
751
- `,nr=Object.freeze({__proto__:null,default:lr}),rr=se`
751
+ `,na=Object.freeze({__proto__:null,default:la}),aa=se`
752
752
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
753
753
  <path
754
754
  fill="currentColor"
@@ -757,7 +757,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
757
757
  clip-rule="evenodd"
758
758
  />
759
759
  </svg>
760
- `,ar=Object.freeze({__proto__:null,default:rr}),or=se`
760
+ `,ra=Object.freeze({__proto__:null,default:aa}),oa=se`
761
761
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
762
762
  <path
763
763
  fill="currentColor"
@@ -770,7 +770,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
770
770
  clip-rule="evenodd"
771
771
  />
772
772
  </svg>
773
- `,sr=Object.freeze({__proto__:null,default:or}),cr=se`
773
+ `,sa=Object.freeze({__proto__:null,default:oa}),ca=se`
774
774
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
775
775
  <path
776
776
  fill="currentColor"
@@ -783,7 +783,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
783
783
  clip-rule="evenodd"
784
784
  />
785
785
  </svg>
786
- `,dr=Object.freeze({__proto__:null,default:cr}),hr=se`
786
+ `,da=Object.freeze({__proto__:null,default:ca}),ha=se`
787
787
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
788
788
  <path
789
789
  fill="currentColor"
@@ -796,7 +796,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
796
796
  clip-rule="evenodd"
797
797
  />
798
798
  </svg>
799
- `,ur=Object.freeze({__proto__:null,default:hr}),vr=se`
799
+ `,ua=Object.freeze({__proto__:null,default:ha}),va=se`
800
800
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
801
801
  <path
802
802
  fill="currentColor"
@@ -805,7 +805,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
805
805
  clip-rule="evenodd"
806
806
  />
807
807
  </svg>
808
- `,pr=Object.freeze({__proto__:null,default:vr}),fr=se`
808
+ `,pa=Object.freeze({__proto__:null,default:va}),fa=se`
809
809
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
810
810
  <path
811
811
  fill="currentColor"
@@ -814,7 +814,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
814
814
  clip-rule="evenodd"
815
815
  />
816
816
  </svg>
817
- `,gr=Object.freeze({__proto__:null,default:fr}),mr=se`
817
+ `,ga=Object.freeze({__proto__:null,default:fa}),ma=se`
818
818
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
819
819
  <path
820
820
  fill="currentColor"
@@ -823,7 +823,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
823
823
  clip-rule="evenodd"
824
824
  />
825
825
  </svg>
826
- `,wr=Object.freeze({__proto__:null,default:mr}),_r=se`
826
+ `,wa=Object.freeze({__proto__:null,default:ma}),_a=se`
827
827
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
828
828
  <path
829
829
  fill="currentColor"
@@ -832,7 +832,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
832
832
  clip-rule="evenodd"
833
833
  />
834
834
  </svg>
835
- `,br=Object.freeze({__proto__:null,default:_r}),yr=se`
835
+ `,ba=Object.freeze({__proto__:null,default:_a}),ya=se`
836
836
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
837
837
  <path
838
838
  fill="currentColor"
@@ -841,7 +841,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
841
841
  clip-rule="evenodd"
842
842
  />
843
843
  </svg>
844
- `,xr=Object.freeze({__proto__:null,default:yr}),Cr=se`
844
+ `,xa=Object.freeze({__proto__:null,default:ya}),Ca=se`
845
845
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
846
846
  <path
847
847
  fill="currentColor"
@@ -850,7 +850,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
850
850
  clip-rule="evenodd"
851
851
  />
852
852
  </svg>
853
- `,Zr=Object.freeze({__proto__:null,default:Cr}),Mr=se`
853
+ `,Za=Object.freeze({__proto__:null,default:Ca}),Ma=se`
854
854
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
855
855
  <path
856
856
  fill="currentColor"
@@ -859,14 +859,14 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
859
859
  clip-rule="evenodd"
860
860
  />
861
861
  </svg>
862
- `,Vr=Object.freeze({__proto__:null,default:Mr}),$r=se`
862
+ `,Va=Object.freeze({__proto__:null,default:Ma}),$a=se`
863
863
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
864
864
  <path
865
865
  fill="currentColor"
866
866
  d="M11.558 3.558a.625.625 0 0 1 .884 0l5 5a.625.625 0 1 1-.884.884L12 4.884 7.442 9.442a.625.625 0 1 1-.884-.884l5-5Zm-5 11a.625.625 0 0 1 .884 0L12 19.116l4.558-4.558a.625.625 0 1 1 .884.884l-5 5a.625.625 0 0 1-.884 0l-5-5a.625.625 0 0 1 0-.884Z"
867
867
  />
868
868
  </svg>
869
- `,kr=Object.freeze({__proto__:null,default:$r}),Hr=se`
869
+ `,ka=Object.freeze({__proto__:null,default:$a}),Ha=se`
870
870
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
871
871
  <path
872
872
  fill="currentColor"
@@ -875,7 +875,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
875
875
  clip-rule="evenodd"
876
876
  />
877
877
  </svg>
878
- `,Pr=Object.freeze({__proto__:null,default:Hr}),Sr=se`
878
+ `,Pa=Object.freeze({__proto__:null,default:Ha}),Sa=se`
879
879
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
880
880
  <path
881
881
  fill="currentColor"
@@ -888,7 +888,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
888
888
  clip-rule="evenodd"
889
889
  />
890
890
  </svg>
891
- `,Dr=Object.freeze({__proto__:null,default:Sr}),Or=se`
891
+ `,Da=Object.freeze({__proto__:null,default:Sa}),Oa=se`
892
892
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
893
893
  <path
894
894
  fill="currentColor"
@@ -901,7 +901,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
901
901
  clip-rule="evenodd"
902
902
  />
903
903
  </svg>
904
- `,zr=Object.freeze({__proto__:null,default:Or}),Br=se`
904
+ `,za=Object.freeze({__proto__:null,default:Oa}),Ba=se`
905
905
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
906
906
  <path
907
907
  fill="currentColor"
@@ -910,7 +910,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
910
910
  clip-rule="evenodd"
911
911
  />
912
912
  </svg>
913
- `,Lr=Object.freeze({__proto__:null,default:Br}),Ar=se`
913
+ `,La=Object.freeze({__proto__:null,default:Ba}),Aa=se`
914
914
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
915
915
  <path
916
916
  fill="currentColor"
@@ -919,7 +919,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
919
919
  clip-rule="evenodd"
920
920
  />
921
921
  </svg>
922
- `,jr=Object.freeze({__proto__:null,default:Ar}),Ir=se`
922
+ `,ja=Object.freeze({__proto__:null,default:Aa}),Ia=se`
923
923
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
924
924
  <path
925
925
  fill="currentColor"
@@ -928,7 +928,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
928
928
  clip-rule="evenodd"
929
929
  />
930
930
  </svg>
931
- `,Er=Object.freeze({__proto__:null,default:Ir}),Tr=se`
931
+ `,Ea=Object.freeze({__proto__:null,default:Ia}),Ta=se`
932
932
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
933
933
  <path
934
934
  fill="currentColor"
@@ -941,14 +941,14 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
941
941
  clip-rule="evenodd"
942
942
  />
943
943
  </svg>
944
- `,Fr=Object.freeze({__proto__:null,default:Tr}),Rr=se`
944
+ `,Fa=Object.freeze({__proto__:null,default:Ta}),Ra=se`
945
945
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
946
946
  <path
947
947
  fill="currentColor"
948
948
  d="M15.783 15.209a.908.908 0 0 0-.561-.828l-.156-.052-2.385-.58a4.403 4.403 0 0 0-1.037-.124c-.362 0-.947.162-1.507.362-.266.095-.504.191-.676.263a6.794 6.794 0 0 0-.253.11l-.013.006-.003.001-.02.008-2.547 1.065v4.022H8.61c.39 0 .778.047 1.158.14l2.756.67c.51.124 1.044.136 1.56.036l3.05-.593a3.579 3.579 0 0 0 1.81-.942l2.159-2.1.063-.068a.877.877 0 0 0-.064-1.204.985.985 0 0 0-1.256-.086L17.33 17.15a2.741 2.741 0 0 1-1.617.526h-2.429a.625.625 0 0 1 0-1.25h1.546c.542 0 .952-.423.952-.91v-.306ZM19.375 6.5a2.875 2.875 0 1 0-5.75 0 2.875 2.875 0 0 0 5.75 0Zm-2.342 9.016c0 .11-.012.217-.028.323l2.103-1.533a2.236 2.236 0 0 1 2.866.199 2.128 2.128 0 0 1 0 3.065h-.001l-2.157 2.099a4.83 4.83 0 0 1-2.444 1.272l-3.049.594a4.908 4.908 0 0 1-2.095-.049l-2.756-.67H9.47a3.606 3.606 0 0 0-.86-.104H6.623a5.716 5.716 0 0 1-.014.395c-.016.206-.054.42-.16.63a1.628 1.628 0 0 1-.712.711c-.21.107-.424.145-.63.161-.198.016-.437.016-.707.016h-.8c-.27 0-.51 0-.707-.016a1.653 1.653 0 0 1-.63-.16 1.628 1.628 0 0 1-.711-.712 1.652 1.652 0 0 1-.161-.63c-.017-.197-.016-.437-.016-.707v-5.8c0-.27 0-.51.016-.707.016-.206.054-.42.16-.63.157-.306.406-.555.712-.711.21-.107.424-.145.63-.161.198-.017.437-.016.707-.016h.8c.27 0 .51 0 .707.016.206.016.42.054.63.16.306.157.555.406.711.712.107.21.145.424.161.63.005.061.006.127.008.196l2.06-.862.08-.035.222-.094c.185-.078.444-.182.736-.287.554-.198 1.325-.436 1.929-.436.449 0 .895.053 1.332.16l2.385.58a2.167 2.167 0 0 1 1.672 2.094v.307ZM2.625 20.4c0 .29 0 .47.012.606.01.126.027.159.029.164.036.07.094.128.164.164a.483.483 0 0 0 .164.03c.135.01.316.011.606.011h.8c.29 0 .47 0 .606-.012a.482.482 0 0 0 .164-.029.376.376 0 0 0 .164-.164.482.482 0 0 0 .03-.164c.01-.136.011-.316.011-.606v-5.8c0-.29 0-.47-.012-.606a.482.482 0 0 0-.029-.164.376.376 0 0 0-.164-.164.483.483 0 0 0-.164-.03 8.422 8.422 0 0 0-.606-.011h-.8c-.29 0-.47 0-.606.012a.483.483 0 0 0-.164.029.376.376 0 0 0-.164.164.482.482 0 0 0-.03.164 8.39 8.39 0 0 0-.011.606v5.8Zm18-13.9a4.125 4.125 0 0 1-7.26 2.68 4.125 4.125 0 1 1 1.27-6.358 4.125 4.125 0 0 1 5.99 3.679Zm-12-1a2.875 2.875 0 0 0 4.076 2.61 4.112 4.112 0 0 1-.326-1.61c0-1.155.474-2.2 1.24-2.948A2.875 2.875 0 0 0 8.624 5.5Z"
949
949
  />
950
950
  </svg>
951
- `,Yr=Object.freeze({__proto__:null,default:Rr}),Nr=se`
951
+ `,Ya=Object.freeze({__proto__:null,default:Ra}),Na=se`
952
952
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
953
953
  <path
954
954
  fill="currentColor"
@@ -963,14 +963,14 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
963
963
  clip-rule="evenodd"
964
964
  />
965
965
  </svg>
966
- `,Ur=Object.freeze({__proto__:null,default:Nr}),Wr=se`
966
+ `,Ua=Object.freeze({__proto__:null,default:Na}),Wa=se`
967
967
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
968
968
  <path
969
969
  fill="currentColor"
970
970
  d="M19.375 12.2c0-.57 0-.96-.025-1.262-.024-.295-.068-.45-.124-.562a1.378 1.378 0 0 0-.602-.602c-.111-.056-.267-.1-.561-.124a17.248 17.248 0 0 0-1.263-.025h-4.6c-.57 0-.96 0-1.262.025-.295.024-.45.068-.562.124-.259.132-.47.343-.602.602-.056.111-.1.267-.124.562-.024.302-.025.692-.025 1.262v4.6c0 .57 0 .96.025 1.262.024.295.068.45.124.562.132.259.343.47.602.602.111.056.267.1.562.124.302.024.692.025 1.262.025h4.6c.57 0 .96 0 1.262-.025.295-.024.45-.068.562-.124.259-.132.47-.343.602-.602.056-.111.1-.267.124-.561.024-.303.025-.693.025-1.263v-4.6Zm-16-.2V7.2c0-.55 0-1 .03-1.364.03-.372.095-.71.256-1.027A2.626 2.626 0 0 1 4.81 3.66c.316-.161.655-.226 1.027-.257.365-.03.815-.029 1.364-.029H12c.457 0 .832 0 1.137.02.31.022.595.067.868.18a2.625 2.625 0 0 1 1.42 1.42c.125.302.167.62.185.973a.625.625 0 0 1-1.248.064c-.015-.301-.047-.452-.091-.558a1.375 1.375 0 0 0-.745-.745c-.095-.039-.227-.07-.474-.086A17.177 17.177 0 0 0 12 4.625H7.2c-.57 0-.96 0-1.263.025-.294.024-.45.068-.561.124-.259.132-.47.343-.602.602-.056.111-.1.267-.124.561A17.25 17.25 0 0 0 4.625 7.2V12c0 .475 0 .8.018 1.052.016.247.047.38.086.474.14.337.408.605.745.745.106.043.257.076.558.091a.625.625 0 0 1-.064 1.248c-.353-.018-.671-.06-.973-.185a2.625 2.625 0 0 1-1.42-1.42 2.703 2.703 0 0 1-.18-.868c-.02-.305-.02-.68-.02-1.137Zm17.25 4.8c0 .55 0 1-.03 1.364-.03.372-.095.71-.256 1.027a2.627 2.627 0 0 1-1.148 1.148c-.316.161-.655.226-1.027.257-.365.03-.815.029-1.364.029h-4.6c-.55 0-1 0-1.364-.03-.372-.03-.71-.095-1.027-.256A2.627 2.627 0 0 1 8.66 19.19c-.161-.316-.226-.655-.257-1.027-.03-.365-.029-.815-.029-1.364v-4.6c0-.55 0-1 .03-1.364.03-.372.095-.71.256-1.027A2.626 2.626 0 0 1 9.81 8.66c.316-.161.655-.226 1.027-.257.365-.03.815-.029 1.364-.029h4.6c.55 0 1 0 1.364.03.372.03.71.095 1.027.256.494.252.896.654 1.148 1.148.161.316.226.655.257 1.027.03.365.029.815.029 1.364v4.6Z"
971
971
  />
972
972
  </svg>
973
- `,qr=Object.freeze({__proto__:null,default:Wr}),Kr=se`
973
+ `,qa=Object.freeze({__proto__:null,default:Wa}),Ka=se`
974
974
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
975
975
  <path
976
976
  fill="currentColor"
@@ -989,7 +989,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
989
989
  clip-rule="evenodd"
990
990
  />
991
991
  </svg>
992
- `,Jr=Object.freeze({__proto__:null,default:Kr}),Gr=se`
992
+ `,Ja=Object.freeze({__proto__:null,default:Ka}),Ga=se`
993
993
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
994
994
  <path
995
995
  fill="currentColor"
@@ -998,7 +998,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
998
998
  clip-rule="evenodd"
999
999
  />
1000
1000
  </svg>
1001
- `,Xr=Object.freeze({__proto__:null,default:Gr}),Qr=se`
1001
+ `,Xa=Object.freeze({__proto__:null,default:Ga}),Qa=se`
1002
1002
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1003
1003
  <path
1004
1004
  fill="currentColor"
@@ -1007,7 +1007,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1007
1007
  clip-rule="evenodd"
1008
1008
  />
1009
1009
  </svg>
1010
- `,ea=Object.freeze({__proto__:null,default:Qr}),ta=se`
1010
+ `,er=Object.freeze({__proto__:null,default:Qa}),tr=se`
1011
1011
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1012
1012
  <path
1013
1013
  fill="currentColor"
@@ -1016,7 +1016,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1016
1016
  clip-rule="evenodd"
1017
1017
  />
1018
1018
  </svg>
1019
- `,ia=Object.freeze({__proto__:null,default:ta}),la=se`
1019
+ `,ir=Object.freeze({__proto__:null,default:tr}),lr=se`
1020
1020
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1021
1021
  <path
1022
1022
  fill="currentColor"
@@ -1025,7 +1025,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1025
1025
  clip-rule="evenodd"
1026
1026
  />
1027
1027
  </svg>
1028
- `,na=Object.freeze({__proto__:null,default:la}),ra=se`
1028
+ `,nr=Object.freeze({__proto__:null,default:lr}),ar=se`
1029
1029
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1030
1030
  <path
1031
1031
  fill="currentColor"
@@ -1034,7 +1034,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1034
1034
  clip-rule="evenodd"
1035
1035
  />
1036
1036
  </svg>
1037
- `,aa=Object.freeze({__proto__:null,default:ra}),oa=se`
1037
+ `,rr=Object.freeze({__proto__:null,default:ar}),or=se`
1038
1038
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1039
1039
  <path
1040
1040
  fill="currentColor"
@@ -1043,7 +1043,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1043
1043
  clip-rule="evenodd"
1044
1044
  />
1045
1045
  </svg>
1046
- `,sa=Object.freeze({__proto__:null,default:oa}),ca=se`
1046
+ `,sr=Object.freeze({__proto__:null,default:or}),cr=se`
1047
1047
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1048
1048
  <path
1049
1049
  fill="currentColor"
@@ -1052,7 +1052,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1052
1052
  clip-rule="evenodd"
1053
1053
  />
1054
1054
  </svg>
1055
- `,da=Object.freeze({__proto__:null,default:ca}),ha=se`
1055
+ `,dr=Object.freeze({__proto__:null,default:cr}),hr=se`
1056
1056
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1057
1057
  <path
1058
1058
  fill="currentColor"
@@ -1081,7 +1081,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1081
1081
  clip-rule="evenodd"
1082
1082
  />
1083
1083
  </svg>
1084
- `,ua=Object.freeze({__proto__:null,default:ha}),va=se`
1084
+ `,ur=Object.freeze({__proto__:null,default:hr}),vr=se`
1085
1085
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1086
1086
  <path
1087
1087
  fill="currentColor"
@@ -1090,7 +1090,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1090
1090
  clip-rule="evenodd"
1091
1091
  />
1092
1092
  </svg>
1093
- `,pa=Object.freeze({__proto__:null,default:va}),fa=se`
1093
+ `,pr=Object.freeze({__proto__:null,default:vr}),fr=se`
1094
1094
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1095
1095
  <path
1096
1096
  fill="currentColor"
@@ -1103,7 +1103,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1103
1103
  d="M7.273 3.875H10.5a.625.625 0 1 1 0 1.25H7.3c-.85 0-1.45 0-1.92.039-.461.038-.74.109-.958.22-.447.228-.81.59-1.038 1.038-.111.218-.182.497-.22.958-.039.47-.039 1.07-.039 1.92v7.4c0 .85 0 1.45.039 1.92.038.461.109.74.22.958.228.447.59.81 1.038 1.038.218.111.497.183.958.22.47.039 1.07.039 1.92.039h7.4c.85 0 1.45 0 1.92-.039.461-.037.74-.109.958-.22.447-.228.81-.59 1.038-1.038.111-.218.183-.497.22-.959.039-.468.039-1.069.039-1.919v-3.2a.625.625 0 1 1 1.25 0v3.227c0 .817 0 1.468-.043 1.994-.044.54-.136 1.001-.352 1.425a3.625 3.625 0 0 1-1.584 1.584c-.424.216-.886.308-1.425.352-.526.043-1.177.043-1.994.043H7.273c-.817 0-1.469 0-1.994-.043-.54-.044-1.001-.136-1.425-.352a3.625 3.625 0 0 1-1.584-1.584c-.216-.424-.308-.886-.352-1.425-.043-.526-.043-1.177-.043-1.994V9.273c0-.817 0-1.469.043-1.994.044-.54.136-1.001.352-1.425A3.625 3.625 0 0 1 3.854 4.27c.424-.216.886-.308 1.425-.352.525-.043 1.177-.043 1.994-.043Z"
1104
1104
  />
1105
1105
  </svg>
1106
- `,ga=Object.freeze({__proto__:null,default:fa}),ma=se`
1106
+ `,gr=Object.freeze({__proto__:null,default:fr}),mr=se`
1107
1107
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1108
1108
  <path
1109
1109
  fill="currentColor"
@@ -1112,7 +1112,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1112
1112
  clip-rule="evenodd"
1113
1113
  />
1114
1114
  </svg>
1115
- `,wa=Object.freeze({__proto__:null,default:ma}),_a=se`
1115
+ `,wr=Object.freeze({__proto__:null,default:mr}),_r=se`
1116
1116
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1117
1117
  <path
1118
1118
  fill="currentColor"
@@ -1125,7 +1125,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1125
1125
  clip-rule="evenodd"
1126
1126
  />
1127
1127
  </svg>
1128
- `,ba=Object.freeze({__proto__:null,default:_a}),ya=se`
1128
+ `,br=Object.freeze({__proto__:null,default:_r}),yr=se`
1129
1129
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1130
1130
  <path
1131
1131
  fill="currentColor"
@@ -1134,7 +1134,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1134
1134
  clip-rule="evenodd"
1135
1135
  />
1136
1136
  </svg>
1137
- `,xa=Object.freeze({__proto__:null,default:ya}),Ca=se`
1137
+ `,xr=Object.freeze({__proto__:null,default:yr}),Cr=se`
1138
1138
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1139
1139
  <path
1140
1140
  fill="currentColor"
@@ -1147,7 +1147,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1147
1147
  clip-rule="evenodd"
1148
1148
  />
1149
1149
  </svg>
1150
- `,Za=Object.freeze({__proto__:null,default:Ca}),Ma=se`
1150
+ `,Zr=Object.freeze({__proto__:null,default:Cr}),Mr=se`
1151
1151
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1152
1152
  <path
1153
1153
  fill="currentColor"
@@ -1160,7 +1160,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1160
1160
  clip-rule="evenodd"
1161
1161
  />
1162
1162
  </svg>
1163
- `,Va=Object.freeze({__proto__:null,default:Ma}),$a=se`
1163
+ `,Vr=Object.freeze({__proto__:null,default:Mr}),$r=se`
1164
1164
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1165
1165
  <path
1166
1166
  fill="currentColor"
@@ -1169,7 +1169,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1169
1169
  clip-rule="evenodd"
1170
1170
  />
1171
1171
  </svg>
1172
- `,ka=Object.freeze({__proto__:null,default:$a}),Ha=se`
1172
+ `,kr=Object.freeze({__proto__:null,default:$r}),Hr=se`
1173
1173
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1174
1174
  <path
1175
1175
  fill="currentColor"
@@ -1182,7 +1182,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1182
1182
  d="M12.08 8.4a3.6 3.6 0 0 1 3.52 3.52l4.108 4.108a17.903 17.903 0 0 0 2.38-2.994l.02-.032c.12-.19.238-.377.3-.645a1.76 1.76 0 0 0 0-.714c-.062-.268-.18-.456-.3-.645l-.02-.032c-.58-.92-1.739-2.548-3.42-3.952C16.983 5.61 14.737 4.4 12 4.4c-1.2 0-2.304.232-3.309.611l3.39 3.39Z"
1183
1183
  />
1184
1184
  </svg>
1185
- `,Pa=Object.freeze({__proto__:null,default:Ha}),Sa=se`
1185
+ `,Pr=Object.freeze({__proto__:null,default:Hr}),Sr=se`
1186
1186
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1187
1187
  <path
1188
1188
  fill="currentColor"
@@ -1191,7 +1191,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1191
1191
  clip-rule="evenodd"
1192
1192
  />
1193
1193
  </svg>
1194
- `,Da=Object.freeze({__proto__:null,default:Sa}),Oa=se`
1194
+ `,Dr=Object.freeze({__proto__:null,default:Sr}),Or=se`
1195
1195
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1196
1196
  <path
1197
1197
  fill="currentColor"
@@ -1200,7 +1200,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1200
1200
  clip-rule="evenodd"
1201
1201
  />
1202
1202
  </svg>
1203
- `,za=Object.freeze({__proto__:null,default:Oa}),Ba=se`
1203
+ `,zr=Object.freeze({__proto__:null,default:Or}),Br=se`
1204
1204
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1205
1205
  <path
1206
1206
  fill="currentColor"
@@ -1209,7 +1209,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1209
1209
  clip-rule="evenodd"
1210
1210
  />
1211
1211
  </svg>
1212
- `,La=Object.freeze({__proto__:null,default:Ba}),Aa=se`
1212
+ `,Lr=Object.freeze({__proto__:null,default:Br}),Ar=se`
1213
1213
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1214
1214
  <path
1215
1215
  fill="currentColor"
@@ -1222,14 +1222,14 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1222
1222
  clip-rule="evenodd"
1223
1223
  />
1224
1224
  </svg>
1225
- `,ja=Object.freeze({__proto__:null,default:Aa}),Ia=se`
1225
+ `,jr=Object.freeze({__proto__:null,default:Ar}),Ir=se`
1226
1226
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1227
1227
  <path
1228
1228
  fill="currentColor"
1229
1229
  d="M21 12.055C21 7.054 16.97 3 12.001 3 7.03 3.001 3 7.054 3 12.056c0 4.519 3.291 8.265 7.593 8.944v-6.327H8.309v-2.617h2.286V10.06c0-2.27 1.344-3.522 3.4-3.522.985 0 2.014.176 2.014.176v2.228h-1.135c-1.117 0-1.466.698-1.466 1.415v1.698h2.495l-.398 2.617h-2.098v6.327C17.71 20.319 21 16.574 21 12.055Z"
1230
1230
  />
1231
1231
  </svg>
1232
- `,Ea=Object.freeze({__proto__:null,default:Ia}),Ta=se`
1232
+ `,Er=Object.freeze({__proto__:null,default:Ir}),Tr=se`
1233
1233
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1234
1234
  <path
1235
1235
  fill="currentColor"
@@ -1238,7 +1238,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1238
1238
  clip-rule="evenodd"
1239
1239
  />
1240
1240
  </svg>
1241
- `,Fa=Object.freeze({__proto__:null,default:Ta}),Ra=se`
1241
+ `,Fr=Object.freeze({__proto__:null,default:Tr}),Rr=se`
1242
1242
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1243
1243
  <path
1244
1244
  fill="currentColor"
@@ -1253,7 +1253,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1253
1253
  clip-rule="evenodd"
1254
1254
  />
1255
1255
  </svg>
1256
- `,Ya=Object.freeze({__proto__:null,default:Ra}),Na=se`
1256
+ `,Yr=Object.freeze({__proto__:null,default:Rr}),Nr=se`
1257
1257
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1258
1258
  <path
1259
1259
  fill="currentColor"
@@ -1264,7 +1264,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1264
1264
  d="M18.6 15a.6.6 0 0 0-1.2 0v2.4H15a.6.6 0 0 0 0 1.2h2.4V21a.6.6 0 1 0 1.2 0v-2.4H21a.6.6 0 1 0 0-1.2h-2.4V15Z"
1265
1265
  />
1266
1266
  </svg>
1267
- `,Ua=Object.freeze({__proto__:null,default:Na}),Wa=se`
1267
+ `,Ur=Object.freeze({__proto__:null,default:Nr}),Wr=se`
1268
1268
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1269
1269
  <path
1270
1270
  fill="currentColor"
@@ -1273,7 +1273,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1273
1273
  clip-rule="evenodd"
1274
1274
  />
1275
1275
  </svg>
1276
- `,qa=Object.freeze({__proto__:null,default:Wa}),Ka=se`
1276
+ `,qr=Object.freeze({__proto__:null,default:Wr}),Kr=se`
1277
1277
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1278
1278
  <path
1279
1279
  fill="currentColor"
@@ -1282,7 +1282,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1282
1282
  clip-rule="evenodd"
1283
1283
  />
1284
1284
  </svg>
1285
- `,Ja=Object.freeze({__proto__:null,default:Ka}),Ga=se`
1285
+ `,Jr=Object.freeze({__proto__:null,default:Kr}),Gr=se`
1286
1286
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1287
1287
  <path
1288
1288
  fill="currentColor"
@@ -1295,7 +1295,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1295
1295
  clip-rule="evenodd"
1296
1296
  />
1297
1297
  </svg>
1298
- `,Xa=Object.freeze({__proto__:null,default:Ga}),Qa=se`
1298
+ `,Xr=Object.freeze({__proto__:null,default:Gr}),Qr=se`
1299
1299
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1300
1300
  <path
1301
1301
  fill="currentColor"
@@ -1310,7 +1310,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1310
1310
  d="M12 2.375A8.625 8.625 0 0 1 20.623 11a26.64 26.64 0 0 1-1.014 7.303.625.625 0 1 1-1.203-.342A25.39 25.39 0 0 0 19.374 11 7.375 7.375 0 0 0 8.312 4.611a.625.625 0 0 1-.625-1.082 8.59 8.59 0 0 1 4.312-1.154ZM4.529 6.688a.625.625 0 0 1 1.082.625A7.34 7.34 0 0 0 4.624 11a10.59 10.59 0 0 1-1.062 4.638.626.626 0 0 1-1.125-.547A9.34 9.34 0 0 0 3.374 11c0-1.57.42-3.043 1.155-4.313Z"
1311
1311
  />
1312
1312
  </svg>
1313
- `,eo=Object.freeze({__proto__:null,default:Qa}),to=se`
1313
+ `,eo=Object.freeze({__proto__:null,default:Qr}),to=se`
1314
1314
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1315
1315
  <path
1316
1316
  fill="currentColor"
@@ -1330,7 +1330,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1330
1330
  clip-rule="evenodd"
1331
1331
  />
1332
1332
  </svg>
1333
- `,no=Object.freeze({__proto__:null,default:lo}),ro=se`
1333
+ `,no=Object.freeze({__proto__:null,default:lo}),ao=se`
1334
1334
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1335
1335
  <path fill="currentColor" d="M9 13.4h6a.6.6 0 0 1 0 1.2H9a.6.6 0 1 1 0-1.2Z" />
1336
1336
  <path
@@ -1340,7 +1340,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1340
1340
  clip-rule="evenodd"
1341
1341
  />
1342
1342
  </svg>
1343
- `,ao=Object.freeze({__proto__:null,default:ro}),oo=se`
1343
+ `,ro=Object.freeze({__proto__:null,default:ao}),oo=se`
1344
1344
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1345
1345
  <path
1346
1346
  fill="currentColor"
@@ -1596,7 +1596,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1596
1596
  clip-rule="evenodd"
1597
1597
  />
1598
1598
  </svg>
1599
- `,rs=Object.freeze({__proto__:null,default:ns}),as=se`
1599
+ `,as=Object.freeze({__proto__:null,default:ns}),rs=se`
1600
1600
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1601
1601
  <path
1602
1602
  fill="currentColor"
@@ -1605,7 +1605,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1605
1605
  clip-rule="evenodd"
1606
1606
  />
1607
1607
  </svg>
1608
- `,os=Object.freeze({__proto__:null,default:as}),ss=se`
1608
+ `,os=Object.freeze({__proto__:null,default:rs}),ss=se`
1609
1609
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1610
1610
  <path
1611
1611
  fill="currentColor"
@@ -1861,7 +1861,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1861
1861
  clip-rule="evenodd"
1862
1862
  />
1863
1863
  </svg>
1864
- `,rc=Object.freeze({__proto__:null,default:nc}),ac=se`
1864
+ `,ac=Object.freeze({__proto__:null,default:nc}),rc=se`
1865
1865
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1866
1866
  <path
1867
1867
  fill="currentColor"
@@ -1870,7 +1870,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
1870
1870
  clip-rule="evenodd"
1871
1871
  />
1872
1872
  </svg>
1873
- `,oc=Object.freeze({__proto__:null,default:ac}),sc=se`
1873
+ `,oc=Object.freeze({__proto__:null,default:rc}),sc=se`
1874
1874
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
1875
1875
  <path
1876
1876
  fill="currentColor"
@@ -2135,7 +2135,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
2135
2135
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2136
2136
  <path fill="currentColor" d="M16.441 1.72a.624.624 0 1 1 1.118.56l-10 20a.624.624 0 1 1-1.118-.56l10-20Z" />
2137
2137
  </svg>
2138
- `,rd=Object.freeze({__proto__:null,default:nd}),ad=se`
2138
+ `,ad=Object.freeze({__proto__:null,default:nd}),rd=se`
2139
2139
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2140
2140
  <path
2141
2141
  fill="currentColor"
@@ -2162,7 +2162,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
2162
2162
  d="M12 13.875c.345 0 .625.28.625.625v6a.625.625 0 1 1-1.25 0v-6c0-.345.28-.625.625-.625Z"
2163
2163
  />
2164
2164
  </svg>
2165
- `,od=Object.freeze({__proto__:null,default:ad}),sd=se`
2165
+ `,od=Object.freeze({__proto__:null,default:rd}),sd=se`
2166
2166
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2167
2167
  <path
2168
2168
  fill="currentColor"
@@ -2401,7 +2401,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
2401
2401
  clip-rule="evenodd"
2402
2402
  />
2403
2403
  </svg>
2404
- `,rh=Object.freeze({__proto__:null,default:nh}),ah=se`
2404
+ `,ah=Object.freeze({__proto__:null,default:nh}),rh=se`
2405
2405
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2406
2406
  <path
2407
2407
  fill="currentColor"
@@ -2410,7 +2410,7 @@ class extends Ue{constructor(e){if(super(e),e.type!==Re&&e.type!==Te&&e.type!==Y
2410
2410
  clip-rule="evenodd"
2411
2411
  />
2412
2412
  </svg>
2413
- `,oh=Object.freeze({__proto__:null,default:ah}),sh=se`
2413
+ `,oh=Object.freeze({__proto__:null,default:rh}),sh=se`
2414
2414
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2415
2415
  <path
2416
2416
  fill="currentColor"