@mgdis/mg-components 6.6.0 → 6.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/cjs/{index-019dd5c0.js → index-b7923724.js} +3 -3
  2. package/dist/cjs/{index-019dd5c0.js.map → index-b7923724.js.map} +1 -1
  3. package/dist/cjs/mg-action-more_36.cjs.entry.js +47 -9
  4. package/dist/cjs/mg-action-more_36.cjs.entry.js.map +1 -1
  5. package/dist/cjs/mg-alert.cjs.entry.js +1 -1
  6. package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +1 -1
  7. package/dist/cjs/mg-loader.cjs.entry.js +1 -1
  8. package/dist/collection/assets/icons/index.js +1 -1
  9. package/dist/collection/assets/icons/index.js.map +1 -1
  10. package/dist/collection/components/atoms/mg-icon/mg-icon.js +1 -1
  11. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +1 -1
  12. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +1 -1
  13. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +1 -1
  14. package/dist/collection/components/molecules/mg-popover/mg-popover.js +41 -5
  15. package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
  16. package/dist/collection/locales/en/messages.json +1 -1
  17. package/dist/collection/locales/fr/messages.json +1 -1
  18. package/dist/collection/utils/floating-ui.utils.js +2 -0
  19. package/dist/collection/utils/floating-ui.utils.js.map +1 -1
  20. package/dist/components/floating-ui.utils.js +5 -3
  21. package/dist/components/floating-ui.utils.js.map +1 -1
  22. package/dist/components/index2.js +2 -2
  23. package/dist/components/mg-icon2.js +1 -1
  24. package/dist/components/mg-icon2.js.map +1 -1
  25. package/dist/components/mg-modal.js +1 -1
  26. package/dist/components/mg-modal.js.map +1 -1
  27. package/dist/components/mg-popover2.js +41 -5
  28. package/dist/components/mg-popover2.js.map +1 -1
  29. package/dist/components/mg-tooltip2.js +1 -1
  30. package/dist/esm/{index-6b7bdd63.js → index-a58f8b91.js} +3 -3
  31. package/dist/esm/{index-6b7bdd63.js.map → index-a58f8b91.js.map} +1 -1
  32. package/dist/esm/mg-action-more_36.entry.js +47 -9
  33. package/dist/esm/mg-action-more_36.entry.js.map +1 -1
  34. package/dist/esm/mg-alert.entry.js +1 -1
  35. package/dist/esm/mg-input-rich-text-editor.entry.js +1 -1
  36. package/dist/esm/mg-loader.entry.js +1 -1
  37. package/dist/mg-components/locales/en/messages.json +1 -1
  38. package/dist/mg-components/locales/fr/messages.json +1 -1
  39. package/dist/mg-components/mg-components.esm.js +1 -1
  40. package/dist/mg-components/{p-0ae49cc4.entry.js → p-2a633b29.entry.js} +2 -2
  41. package/dist/mg-components/p-3afebdab.entry.js +2 -0
  42. package/dist/mg-components/p-3afebdab.entry.js.map +1 -0
  43. package/dist/mg-components/p-ac8a5083.js +2 -0
  44. package/dist/mg-components/{p-4049bd40.js.map → p-ac8a5083.js.map} +1 -1
  45. package/dist/mg-components/{p-c4f37d1f.entry.js → p-bc6ec847.entry.js} +2 -2
  46. package/dist/mg-components/{p-17f0b7eb.entry.js → p-f2e6e7ae.entry.js} +2 -2
  47. package/dist/types/assets/icons/index.d.ts +4 -0
  48. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +14 -0
  49. package/dist/types/utils/floating-ui.utils.d.ts +1 -0
  50. package/ide/intellij/web-types.json +11 -11
  51. package/ide/vscode/html-custom-data.json +27 -3
  52. package/package.json +22 -20
  53. package/dist/mg-components/p-1c126a81.entry.js +0 -2
  54. package/dist/mg-components/p-1c126a81.entry.js.map +0 -1
  55. package/dist/mg-components/p-4049bd40.js +0 -2
  56. /package/dist/mg-components/{p-0ae49cc4.entry.js.map → p-2a633b29.entry.js.map} +0 -0
  57. /package/dist/mg-components/{p-c4f37d1f.entry.js.map → p-bc6ec847.entry.js.map} +0 -0
  58. /package/dist/mg-components/{p-17f0b7eb.entry.js.map → p-f2e6e7ae.entry.js.map} +0 -0
@@ -1,2 +0,0 @@
1
- import{r as t,h as e,H as i,g as n,c as o}from"./p-e39791fa.js";import{G as a,V as s,Z as r,m as l,s as c,X as h,K as g,t as m,w as d,z as u,$ as p,f as v,d as f,p as b,g as w,u as _,J as x,Y as z,Q as y}from"./p-3c6710be.js";import{i as k}from"./p-4049bd40.js";import{t as H,c as M,a as C,b as V,d as L,w as D}from"./p-2884f369.js";const B={VISIBLE:"visible",HIDDEN:"hidden",DISABLED:"disabled",ACTIVE:"active"};const $=["_blank","_self","_parent","_top"];const A={VERTICAL:"vertical",HORIZONTAL:"horizontal"};const E=["medium","large","xlarge"];const q=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}:host{--mg-c-popover-padding-vertical:var(--mg-b-size-8);--mg-c-popover-padding-horizontal:0;--mg-c-popover-max-width:unset}.mg-c-action-more__divider{--mg-c-divider-spacing-vertical:var(--mg-b-size-4)}.mg-c-action-more__chevron{transition:200ms}.mg-c-action-more__chevron--rotate.mg-c-action-more__chevron{transform:rotate(180deg)}";const P=q;const I=t=>{const e=t;return typeof e==="object"&&e.every((t=>typeof t==="object"&&typeof t.label==="string"&&typeof t.mouseEventHandler==="function"||T(t)))};const T=t=>typeof t==="object"&&t.isDivider;const S=t=>{const e=t;return typeof e==="object"&&typeof e.variant==="string"&&typeof e.isIcon==="boolean"};const O=t=>{const e=t;return typeof e==="object"&&typeof e.icon==="string"};const j=class{constructor(e){t(this,e);this.name="mg-action-more";this.classBase="mg-c-action-more";this.mgPopoverIdentifier=a(this.name);this.button={variant:"flat",isIcon:true};this.expanded=false;this.toggleExpanded=()=>{this.expanded=!this.expanded};this.handleDisplayChange=t=>{this.expanded=t.detail};this.handleButton=()=>{this.toggleExpanded()};this.handleItemClick=(t,e)=>{this.expanded=false;e(t)}}validateItems(t){if(!I(t)){throw new Error(`<${this.name}> prop "items" is required and all values must be the same type, MgActionMoreItemType or MgActionMoreDividerType. Passed value: ${s(t)}.`)}else if(I(t)&&t.length>0&&(T(t[0])||T(t[t.length-1]))){throw new Error(`<${this.name}> prop "items" can’t have a divider at the beginning or the end of the array. Passed value: ${s(t)}.`)}}validateIcon(t){if(t&&!O(t)){throw new Error(`<${this.name}> prop "icon" must match MgActionMoreIconType. Passed value: ${s(t)}.`)}else if((t===null||t===void 0?void 0:t.icon)===undefined&&Boolean(this.button.isIcon)){this.icon={icon:"ellipsis"}}}validateButton(t){if(t&&!S(t)){throw new Error(`<${this.name}> prop "button" must match MgActionMoreButtonType. Passed value: ${s(t)}.`)}}validateDisplayChevron(t){if(t&&this.button.isIcon===true){throw new Error(`<${this.name}> prop "displayChevron" can't be used with a 'button" prop "isIcon" attribute.`)}}componentWillLoad(){this.messages=k(this.element).messages.actionMore;this.validateItems(this.items);this.validateButton(this.button);this.validateIcon(this.icon);this.validateDisplayChevron(this.displayChevron)}render(){const t=this.button.label||this.messages.label;const n=[t];if(!this.button.isIcon&&this.displayChevron){n.push(e("span",{class:{[`${this.classBase}__chevron`]:true,[`${this.classBase}__chevron--rotate`]:this.expanded===true}},e("mg-icon",{icon:"chevron-down"})))}return e(i,{key:"2bb195242da00b4235d1c7e208d1f7ca72189a94","data-mg-popover-guard":this.mgPopoverIdentifier},e("span",{key:"e9b1e0d8996886aef957f95e5c4276c584f80525",class:this.classBase},e("mg-popover",{key:"8700af5584bb46e3b04b887b3d42d1660c0ef140",identifier:this.mgPopoverIdentifier,display:this.expanded,"onDisplay-change":this.handleDisplayChange},e("mg-button",{key:"70442ce629cc40ea412ce3b6c93f8aab3abfa567",variant:this.button.variant,isIcon:this.button.isIcon,disabled:this.button.disabled,type:"button",label:t,onClick:this.handleButton},this.icon&&e("mg-icon",Object.assign({key:"85de555a598ac2097fb6586bbfab4ccda47721d1"},this.icon)),!this.button.isIcon&&n),e("div",{key:"3881ef2f2453a7f6bb8a16f56fd58899d4a44ab3",slot:"content"},e("mg-menu",{key:"ad3fb64141e696c4dfdf19743b035347ea212a39",direction:A.VERTICAL,label:this.messages.label},this.items.map((t=>{var i,n;return T(t)?e("mg-divider",{class:"mg-c-action-more__divider",key:"divider"}):e("mg-menu-item",{key:t.label,status:t.status||B.VISIBLE,target:t.target,href:t.href,onClick:e=>this.handleItemClick(e,t.mouseEventHandler)},((i=t.icon)===null||i===void 0?void 0:i.icon)&&e("mg-icon",{icon:t.icon.icon,variant:t.icon.variant,variantStyle:t.icon.variantStyle,slot:"image"}),e("span",{slot:"label"},t.label),((n=t.badge)===null||n===void 0?void 0:n.label)&&e("mg-badge",{label:t.badge.label,value:t.badge.value,slot:"information",variant:"text-color"}))})))))))}get element(){return n(this)}static get watchers(){return{items:["validateItems"],icon:["validateIcon"],button:["validateButton"],displayChevron:["validateDisplayChevron"]}}};j.style=P;const R=["info","primary","secondary","success","warning","danger","text-color"];const W=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-badge-size: Defines the height and minimum width of the badge. The default value is `--mg-b-size-16`.\n * @prop --mg-c-badge-font-size: Defines the font size of the badge. The default value is `--mg-b-font-size-small`.\n * @prop --mg-c-badge-color-text: Defines the font color of the badge when used with the `text-color` variant and without `outline`. The default value is `--mg-b-color-light`.\n */.mg-c-badge{min-width:var(--mg-c-badge-size);height:var(--mg-c-badge-size);box-sizing:border-box;padding:0 var(--mg-b-size-4);border:var(--mg-b-size-border) solid;border-radius:calc(var(--mg-c-badge-size)/2);font-size:var(--mg-c-badge-font-size);font-weight:600;line-height:var(--mg-c-badge-size);text-align:center}.mg-c-badge.mg-c-badge--primary{border-color:var(--mg-b-color-primary);background-color:var(--mg-b-color-primary);color:var(--mg-b-color-text-on-primary)}.mg-c-badge.mg-c-badge--primary.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-primary)}.mg-c-badge.mg-c-badge--secondary{border-color:var(--mg-b-color-secondary);background-color:var(--mg-b-color-secondary);color:var(--mg-b-color-text-on-secondary)}.mg-c-badge.mg-c-badge--secondary.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-secondary)}.mg-c-badge.mg-c-badge--danger{border-color:var(--mg-b-color-danger);background-color:var(--mg-b-color-danger);color:var(--mg-b-color-text-on-danger)}.mg-c-badge.mg-c-badge--danger.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-danger)}.mg-c-badge.mg-c-badge--info{border-color:var(--mg-b-color-info);background-color:var(--mg-b-color-info);color:var(--mg-b-color-text-on-info)}.mg-c-badge.mg-c-badge--info.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-info)}.mg-c-badge.mg-c-badge--success{border-color:var(--mg-b-color-success);background-color:var(--mg-b-color-success);color:var(--mg-b-color-text-on-success)}.mg-c-badge.mg-c-badge--success.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-success)}.mg-c-badge.mg-c-badge--warning{border-color:var(--mg-b-color-warning);background-color:var(--mg-b-color-warning);color:var(--mg-b-color-text-on-warning)}.mg-c-badge.mg-c-badge--warning.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-warning)}.mg-c-badge.mg-c-badge--text-color{border-color:currentcolor;background-color:currentcolor}.mg-c-badge.mg-c-badge--text-color .mg-c-badge__value{color:var(--mg-c-badge-color-text, var(--mg-b-color-light))}.mg-c-badge.mg-c-badge--text-color.mg-c-badge--outline{background-color:rgba(0,0,0,0)}.mg-c-badge.mg-c-badge--text-color.mg-c-badge--outline .mg-c-badge__value{color:currentcolor}.mg-c-badge,mg-badge{display:inline-flex;align-items:center;justify-content:center}";const N=W;const U=class{constructor(e){t(this,e);this.classOutline=`mg-c-badge--outline`;this.variant=R[0];this.classCollection=new r(["mg-c-badge"])}validateValue(t){if(/^[^A-Z]+$/i.exec(`${t}`)===null){throw new Error(`<mg-badge> prop "value" is required and must be integer and/or special character. Passed value: ${s(t)}.`)}}validateLabel(t){if(!l(t)){throw new Error(`<mg-badge> prop "label" is required and must be a string. Passed value: ${s(t)}.`)}}validateVariant(t,e){if(!R.includes(t)){throw new Error(`<mg-badge> prop "variant" must be one of: ${R.join(", ")}. Passed value: ${s(t)}.`)}else{if(e!==undefined){this.classCollection.delete(`mg-c-badge--${e}`)}this.classCollection.add(`mg-c-badge--${t}`)}}validateOutline(t){if(t)this.classCollection.add(this.classOutline);else this.classCollection.delete(this.classOutline)}componentWillLoad(){this.validateValue(this.value);this.validateLabel(this.label);this.validateVariant(this.variant);this.validateOutline(this.outline)}render(){return e("span",{key:"db20118c3cfbc79ca65bcbbda1029857211615b2",class:this.classCollection.join()},e("span",{key:"1898f1b56935c4acdab79f8c794025009f2d943c",class:"mg-c-badge__value"},this.value),e("span",{key:"2ca8814b685441f11c8a1804c1e98d3e58f26d84",class:"mg-u-visually-hidden"},this.label))}static get watchers(){return{value:["validateValue"],label:["validateLabel"],variant:["validateVariant"],outline:["validateOutline"]}}};U.style=N;const F=["medium","large"];const G=["primary","secondary","danger","danger-alt","info","flat","success","link"];const K="/*!\n * @prop --mg-c-button-border-radius: Defines the border radius of the button. The default value is `--mg-b-size-radius`.\n * @prop --mg-c-button-border-top-width: Defines the top border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-right-width: Defines the right border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-bottom-width: Defines the bottom border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-left-width: Defines the left border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-radius-top-left: Defines the top left border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-top-right: Defines the top right border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-bottom-right: Defines the bottom right border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-bottom-left: Defines the bottom left border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-font-weight: Defines the font weight of the button. Unset by default, fallback on `normal`.\n * @prop --mg-c-button-icon-border-radius: Defines the border radius of the button in icon mode. The default value is `--mg-b-size-min-height`.\n */:host{display:inline-block;max-width:100%;vertical-align:middle}:host(:hover) .mg-c-button--flat:not(.mg-c-button--disabled){background:color-mix(in srgb, var(--mg-b-color-dark), transparent 90%)}:host([full-width]){display:block}:host([disabled]),:host([aria-disabled=true]){pointer-events:none}.mg-c-button.mg-c-button--primary{/*!\n * @prop --mg-c-button-color-background-primary: Defines the background color for the primary variant button.\n * @prop --mg-c-button-color-border-primary: Defines the border color for the primary variant button.\n * @prop --mg-c-button-color-gradient-primary: Defines the gradient color for the primary variant button.\n * @prop --mg-c-button-color-text-primary: Defines the font color for the primary variant button.\n */border-color:var(--mg-c-button-color-border-primary);background:linear-gradient(to bottom, var(--mg-c-button-color-background-primary), var(--mg-c-button-color-gradient-primary));color:var(--mg-c-button-color-text-primary)}:host(:hover) .mg-c-button.mg-c-button--primary:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-primary)}.mg-c-button.mg-c-button--secondary{/*!\n * @prop --mg-c-button-color-background-secondary: Defines the background color for the secondary variant button.\n * @prop --mg-c-button-color-border-secondary: Defines the border color for the secondary variant button.\n * @prop --mg-c-button-color-gradient-secondary: Defines the gradient color for the secondary variant button.\n * @prop --mg-c-button-color-text-secondary: Defines the font color for the secondary variant button.\n */border-color:var(--mg-c-button-color-border-secondary);background:linear-gradient(to bottom, var(--mg-c-button-color-background-secondary), var(--mg-c-button-color-gradient-secondary));color:var(--mg-c-button-color-text-secondary)}:host(:hover) .mg-c-button.mg-c-button--secondary:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-secondary)}.mg-c-button.mg-c-button--danger{/*!\n * @prop --mg-c-button-color-background-danger: Defines the background color for the danger variant button.\n * @prop --mg-c-button-color-border-danger: Defines the border color for the danger variant button.\n * @prop --mg-c-button-color-gradient-danger: Defines the gradient color for the danger variant button.\n * @prop --mg-c-button-color-text-danger: Defines the font color for the danger variant button.\n */border-color:var(--mg-c-button-color-border-danger);background:linear-gradient(to bottom, var(--mg-c-button-color-background-danger), var(--mg-c-button-color-gradient-danger));color:var(--mg-c-button-color-text-danger)}:host(:hover) .mg-c-button.mg-c-button--danger:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-danger)}.mg-c-button.mg-c-button--info{/*!\n * @prop --mg-c-button-color-background-info: Defines the background color for the info variant button.\n * @prop --mg-c-button-color-border-info: Defines the border color for the info variant button.\n * @prop --mg-c-button-color-gradient-info: Defines the gradient color for the info variant button.\n * @prop --mg-c-button-color-text-info: Defines the font color for the info variant button.\n */border-color:var(--mg-c-button-color-border-info);background:linear-gradient(to bottom, var(--mg-c-button-color-background-info), var(--mg-c-button-color-gradient-info));color:var(--mg-c-button-color-text-info)}:host(:hover) .mg-c-button.mg-c-button--info:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-info)}.mg-c-button.mg-c-button--success{/*!\n * @prop --mg-c-button-color-background-success: Defines the background color for the success variant button.\n * @prop --mg-c-button-color-border-success: Defines the border color for the success variant button.\n * @prop --mg-c-button-color-gradient-success: Defines the gradient color for the success variant button.\n * @prop --mg-c-button-color-text-success: Defines the font color for the success variant button.\n */border-color:var(--mg-c-button-color-border-success);background:linear-gradient(to bottom, var(--mg-c-button-color-background-success), var(--mg-c-button-color-gradient-success));color:var(--mg-c-button-color-text-success)}:host(:hover) .mg-c-button.mg-c-button--success:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-success)}.mg-c-button.mg-c-button--warning{/*!\n * @prop --mg-c-button-color-background-warning: Defines the background color for the warning variant button.\n * @prop --mg-c-button-color-border-warning: Defines the border color for the warning variant button.\n * @prop --mg-c-button-color-gradient-warning: Defines the gradient color for the warning variant button.\n * @prop --mg-c-button-color-text-warning: Defines the font color for the warning variant button.\n */border-color:var(--mg-c-button-color-border-warning);background:linear-gradient(to bottom, var(--mg-c-button-color-background-warning), var(--mg-c-button-color-gradient-warning));color:var(--mg-c-button-color-text-warning)}:host(:hover) .mg-c-button.mg-c-button--warning:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-warning)}.mg-c-button.mg-c-button--danger-alt{/*!\n * @prop --mg-c-button-color-background-danger-alt: Defines the background color for the danger-alt variant button.\n * @prop --mg-c-button-color-border-danger-alt: Defines the border color for the danger-alt variant button.\n * @prop --mg-c-button-color-gradient-danger-alt: Defines the gradient color for the danger-alt variant button.\n * @prop --mg-c-button-color-text-danger-alt: Defines the font color for the danger-alt variant button.\n */border-color:var(--mg-c-button-color-border-danger-alt);background:linear-gradient(to bottom, var(--mg-c-button-color-background-danger-alt), var(--mg-c-button-color-gradient-danger-alt));color:var(--mg-c-button-color-text-danger-alt)}:host(:hover) .mg-c-button.mg-c-button--danger-alt:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-danger-alt)}.mg-c-button{position:relative;display:inline-flex;min-height:var(--mg-b-size-min-height);box-sizing:border-box;align-items:center;padding:calc((var(--mg-b-size-min-height) - 2*var(--mg-b-size-border) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-12);border-width:var(--mg-c-button-border-top-width, var(--mg-b-size-border)) var(--mg-c-button-border-right-width, var(--mg-b-size-border)) var(--mg-c-button-border-bottom-width, var(--mg-b-size-border)) var(--mg-c-button-border-left-width, var(--mg-b-size-border));border-style:solid;border-radius:var(--mg-c-button-border-radius-top-left, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-top-right, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-bottom-right, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-bottom-left, var(--mg-c-button-border-radius));background-image:none;column-gap:var(--mg-b-size-8);cursor:pointer;touch-action:manipulation;font-family:inherit;font-size:var(--mg-b-font-size);font-weight:var(--mg-c-button-font-weight, normal);text-align:left;text-decoration:none}.mg-c-button slot,.mg-c-button ::slotted(*:not(mg-icon)){font-family:inherit;font-size:var(--mg-b-font-size);font-weight:var(--mg-c-button-font-weight, normal);text-align:left;text-decoration:none;display:flex;align-items:center;column-gap:var(--mg-b-size-8)}.mg-c-button mg-icon:only-child,.mg-c-button ::slotted(mg-icon){display:inline-flex;flex-shrink:0;margin:auto 0;line-height:1}.mg-c-button.mg-c-button--disabled{cursor:default;opacity:var(--mg-b-opacity-element-disabled)}.mg-c-button.mg-c-button--flat{border:none;background:none}.mg-c-button.mg-c-button--link{min-height:unset;padding:unset;border:unset;border-radius:unset;background:unset;text-decoration:underline}.mg-c-button.mg-c-button--link slot{font-weight:600}.mg-c-button.mg-c-button--link:hover{text-decoration:none}.mg-c-button.mg-c-button--large{padding:calc(var(--mg-b-size-12) - var(--mg-b-size-border)) calc(var(--mg-b-size-24) - var(--mg-b-size-border))}.mg-c-button.mg-c-button--large:not(.mg-c-button--icon){line-height:var(--mg-b-size-24)}.mg-c-button.mg-c-button--large:not(.mg-c-button--icon) slot,.mg-c-button.mg-c-button--large:not(.mg-c-button--icon) ::slotted(*){font-size:var(--mg-b-size-16)}.mg-c-button.mg-c-button--icon{width:var(--mg-b-size-min-height);height:var(--mg-b-size-min-height);justify-content:center;padding:0;border-radius:var(--mg-c-button-border-radius-top-left, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-top-right, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-bottom-right, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-bottom-left, var(--mg-c-button-icon-border-radius));font-size:var(--mg-b-font-size);line-height:var(--mg-b-font-size)}.mg-c-button.mg-c-button--icon.mg-c-button--large{width:unset;height:unset;padding:calc(var(--mg-b-size-12) - var(--mg-b-size-border))}.mg-c-button.mg-c-button--icon.mg-c-button--large ::slotted(*){min-width:var(--mg-b-size-24);min-height:var(--mg-b-size-24);align-items:center;justify-content:center}.mg-c-button.mg-c-button--full-width{display:flex;justify-content:center}.mg-c-button.mg-c-button--loading>mg-icon:first-of-type{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mg-c-button.mg-c-button--loading .mg-c-button__content{opacity:0}:host(:focus-visible){outline:0}:host(:focus-visible) .mg-c-button{outline-color:-webkit-focus-ring-color;outline-style:auto;outline-width:.2rem}";const Y=K;const J=class{constructor(e){t(this,e);this.disabledChange=o(this,"disabled-change",7);this.onClickElementFn=null;this.classDisabled="mg-c-button--disabled";this.classLoading="mg-c-button--loading";this.classFullWidth="mg-c-button--full-width";this.variant=G[0];this.size=F[0];this.fullWidth=false;this.isIcon=false;this.disableOnClick=false;this.loading=false;this.classCollection=new r(["mg-c-button"]);this.handleClick=t=>{if(this.disabled)t.stopPropagation();else if(this.disableOnClick){this.loading=true;this.disabled=true}};this.handleKeydown=t=>{if(!this.disabled&&t.key===" "){t.preventDefault()}else if(!this.disabled&&["Enter","NumpadEnter","Space"].includes(t.key)){t.preventDefault();this.element.dispatchEvent(new MouseEvent("click",{bubbles:true}))}};this.handleKeyup=t=>{if(!this.disabled&&t.key===" "){t.preventDefault();this.element.dispatchEvent(new MouseEvent("click",{bubbles:true}))}};this.setIconSize=()=>{var t,e;if(this.size==="medium"){(t=this.element.querySelector("mg-icon"))===null||t===void 0?void 0:t.removeAttribute("size")}else if(this.isIcon){(e=this.element.querySelector("mg-icon"))===null||e===void 0?void 0:e.setAttribute("size",this.size)}}}validateVariant(t,e){if(!G.includes(t)){if(t===""){this.variant=G[0];return}throw new Error(`<mg-button> prop "variant" must be one of: ${G.join(", ")}. Passed value: ${s(t)}.`)}else{if(e!==undefined){this.classCollection.delete(`mg-c-button--${e}`)}this.classCollection.add(`mg-c-button--${t}`)}}validateSize(t,e){if(!F.includes(t)){throw new Error(`<mg-button> prop "size" must be one of: ${F.join(", ")}. Passed value: ${s(t)}.`)}else{if(e!==undefined){this.classCollection.delete(`mg-c-button--${e}`)}this.classCollection.add(`mg-c-button--${t}`);this.setIconSize()}}validateFullWidth(t){if(t&&this.isIcon){throw new Error('<mg-button> prop "fullWidth" cannot be used with prop "isIcon".')}else if(t){this.classCollection.add(this.classFullWidth)}else{this.classCollection.delete(this.classFullWidth)}}disabledHandler(t){if(!t&&this.disableOnClick){this.loading=false}this.element.onclick=t?undefined:this.onClickElementFn;if(t){this.classCollection.add(this.classDisabled)}else{this.classCollection.delete(this.classDisabled)}this.disabledChange.emit(t)}watchIsIcon(){this.setIconSize()}loadingHandler(t){if(t){this.classCollection.add(this.classLoading)}else{this.classCollection.delete(this.classLoading)}}componentWillLoad(){this.validateVariant(this.variant);this.validateFullWidth(this.fullWidth);this.validateSize(this.size);this.watchIsIcon();if(this.isIcon){this.classCollection.add(`mg-c-button--icon`);if(!l(this.label)){throw new Error(`<mg-button> prop "label" is mandatory when prop "isIcon" is set to true.`)}}this.onClickElementFn=this.element.onclick;this.disabledHandler(this.disabled)}componentDidLoad(){c((()=>{var t;const e=this.element.closest("form")||((t=this.element.closest("mg-form"))===null||t===void 0?void 0:t.shadowRoot.querySelector("form"));if(e&&["submit",undefined].includes(this.type)){this.element.addEventListener("click",(()=>{e.dispatchEvent(new SubmitEvent("submit",{bubbles:true,cancelable:true}))}))}}))}render(){var t;return e(i,{key:"a56efb7c3e49a4aadf6751b10bacb39f20c260df",role:"button",tabIndex:0,type:this.type,form:this.form,"full-width":this.fullWidth,"aria-label":this.label,"aria-disabled":(t=this.disabled)===null||t===void 0?void 0:t.toString(),onClick:this.handleClick,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},e("div",{key:"2d47d068d188161b603b26117256d0e828393348",class:this.classCollection.join()},this.loading&&e("mg-icon",{key:"ba84820c70834f1e345af506265222340659f8ec",icon:"loader",spin:true}),e("div",{key:"db6c3437d5de7f828cca7df9d83670de9d3a8ed6",class:"mg-c-button__content"},e("slot",{key:"b00f76d92e1e2f9e4dd834bf41419c68c2635d1a"}))))}get element(){return n(this)}static get watchers(){return{variant:["validateVariant"],size:["validateSize"],fullWidth:["validateFullWidth"],disabled:["disabledHandler"],isIcon:["watchIsIcon"],loading:["loadingHandler"]}}};J.style=Y;const Z="/*!\n * @prop --mg-c-card-overflow: Defines the overflow property for the card. Unset by default, fallback on `--mg-c-card-overflow-default`.\n * @prop --mg-c-card-overflow-default: Defines the default overflow property for the card. Unset by default.\n * @prop --mg-c-card-min-width: Defines the min-width property for the card. Unset by default.\n * @prop --mg-c-card-max-width: Defines the max-width property for the card. Unset by default.\n * @prop --mg-c-card-spacing: Defines the padding property for the card. Unset by default, fallback on `--mg-c-card-spacing-default`.\n * @prop --mg-c-card-spacing-default: Defines the default padding property for the card. Default value: `--mg-b-size-16`.\n * @prop --mg-c-card-border: Defines the border property for the card. Unset by default, fallback on `--mg-c-card-border-default`.\n * @prop --mg-c-card-border-default: Defines the default border property for the card. Default value: `var(--mg-b-size-border) solid color-mix(in srgb, var(--mg-b-color-dark), transparent 95%)`.\n * @prop --mg-c-card-border-radius: Defines the border radius property for the card. Unset by default, fallback on `--mg-c-card-border-radius-default`.\n * @prop --mg-c-card-border-radius-default: Defines the default border radius property for the card. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-card-color-background: Defines the background property for the card. Unset by default, fallback on `--mg-c-card-color-background-default`.\n * @prop --mg-c-card-color-background-default: Defines the default background property for the card. Default value: `--mg-b-color-light`.\n * @prop --mg-c-card-box-shadow: Defines the box shadow property for the card. Unset by default, fallback on `--mg-c-card-box-shadow-default`.\n * @prop --mg-c-card-box-shadow-default: Defines the default box shadow property for the card. Default value: `--mg-b-box-shadow`.\n */.mg-c-card{position:relative;z-index:inherit;overflow:var(--mg-c-card-overflow, var(--mg-c-card-overflow-default));width:100%;min-width:var(--mg-c-card-min-width);max-width:var(--mg-c-card-max-width);box-sizing:border-box;padding:var(--mg-c-card-spacing, var(--mg-c-card-spacing-default));border:var(--mg-c-card-border, var(--mg-c-card-border-default));border-radius:var(--mg-c-card-border-radius, var(--mg-c-card-border-radius-default));background:var(--mg-c-card-color-background, var(--mg-c-card-color-background-default));box-shadow:var(--mg-c-card-box-shadow, var(--mg-c-card-box-shadow-default))}.mg-c-card ::slotted(*:not(mg-panel,mg-message,mg-modal)){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}";const X=Z;const Q=class{constructor(e){t(this,e)}render(){return e("div",{key:"e59cabb09dbc28c148770b57de98f130c4479b75",class:"mg-c-card"},e("slot",{key:"b6e679317bddd23e73443c601992b7b344d6dc72"}))}};Q.style=X;const tt=".mg-u-visually-hidden.sc-mg-character-left{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*.sc-mg-character-left:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*.sc-mg-character-left{animation:none !important;transition:none !important}}mg-character-left.sc-mg-character-left{display:block}";const et=tt;const it=class{constructor(e){t(this,e);this.characters=""}watchIdentifier(t){if(t!==undefined&&!h(t)){console.error(`<mg-character-left> prop "identifier" value is invalid. Passed value: ${s(t)}.`)}}validateMaxlength(t){if(typeof t!=="number"){throw new Error(`<mg-character-left> prop "maxlength" is required and must be a number. Passed value: ${s(t)}.`)}}componentWillLoad(){this.watchIdentifier(this.identifier);this.validateMaxlength(this.maxlength);this.messages=k(this.element).messages}render(){return e("span",{key:"38d0a5617735f7f451d8f07f7e4840ccc2539d6b",id:this.identifier,"aria-live":"polite"},e("span",{key:"382dc20170c5285afdc0c73a76f5797703ffdf9a","aria-hidden":"true"},this.maxlength-this.characters.length,"/",this.maxlength),e("span",{key:"8f57b75c08c3da4353f194dc174dff4a3f7e06e4",class:"mg-u-visually-hidden"},this.messages.nbCharLeft.replace("{counter}",this.maxlength-this.characters.length)))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],maxlength:["validateMaxlength"]}}};it.style=et;const nt=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-details-spacing: Defines the spacing between the summary and the details. Default value: `--mg-b-size-8`.\n */.mg-c-details summary{display:flex;align-items:baseline;cursor:pointer;gap:var(--mg-b-size-16)}.mg-c-details summary::-webkit-details-marker{display:none}.mg-c-details__toggle{display:flex;min-height:calc(var(--mg-b-font-size)*var(--mg-b-line-height));flex-shrink:0;align-items:center;align-self:flex-start;gap:var(--mg-b-size-4)}.mg-c-details__toggle-icon.mg-c-details__toggle-icon--reverse{transform:rotate(180deg)}.mg-c-details__details{margin-top:var(--mg-c-details-spacing)}@media (width < 43.75rem){.mg-c-details__toggle>span{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}}";const ot=nt;const at=class{constructor(e){t(this,e);this.expandedChange=o(this,"expanded-change",7);this.hideSummary=false;this.expanded=false;this.handleToggle=()=>{this.expanded=this.details.open}}validateTitles(t){if(!l(t)){throw new Error(`<mg-details> prop "toggleClosed" and "toggleOpened" is required and must be a valid string. Passed value: "toggleClosed='${this.toggleClosed}'" and "toggleOpened='${this.toggleOpened}'".`)}}handleExpanded(t){this.expandedChange.emit(t)}componentWillLoad(){this.validateTitles(this.toggleClosed);this.validateTitles(this.toggleOpened);this.element.addEventListener("click",(t=>{if(t.target.closest('[slot="summary"] mg-button, mg-button[slot="summary"]'))t.preventDefault()}))}render(){return e("details",{key:"941fc56c10cd54a7975dc9b8adf5b7e24dfe89ce",class:"mg-c-details",onToggle:this.handleToggle,open:this.expanded,ref:t=>this.details=t},e("summary",{key:"8e0a1107069245a5920d28dced132ab73b25dcf1"},e("slot",{key:"9530891ab1e8e60a1725aa146146bbd846bb7869",name:"summary"}),e("span",{key:"60163fa52f9c96bc15d60a016a2f17c3327f2b2f",class:"mg-c-details__toggle"},e("mg-icon",{key:"69c033059e73b5ab336dfe5aeac122b78c65adbf",icon:"chevron-up",class:{"mg-c-details__toggle-icon":true,"mg-c-details__toggle-icon--reverse":!this.expanded}}),e("span",{key:"341d8915d9327cf811c21e4021446ff77b471029",class:{"mg-u-visually-hidden":this.hideSummary}},this.expanded?this.toggleOpened:this.toggleClosed))),e("div",{key:"6681fe531a0076a8c016b55c6223492ac5613da4",class:"mg-c-details__details"},e("slot",{key:"a09d6f88af12ee0756c9f86d0adcbf01903461c5",name:"details"})))}get element(){return n(this)}static get watchers(){return{toggleClosed:["validateTitles"],toggleOpened:["validateTitles"],expanded:["handleExpanded"]}}};at.style=ot;const st="/*!\n * @prop --mg-c-divider-color-background: Defines the background color of the divider. The default value is `color-mix(in srgb, var(--mg-b-color-dark), transparent 85%)`.\n * @prop --mg-c-divider-thickness: Defines the thickness of the divider. The default value is `--mg-b-size-border`.\n * @prop --mg-c-divider-spacing-vertical: Defines the vertical spacing of the divider. The default value is `--mg-b-size-40`.\n */.mg-c-divider{width:var(--mg-b-size-120);height:var(--mg-c-divider-thickness);margin:var(--mg-c-divider-spacing-vertical) auto;background-color:var(--mg-c-divider-color-background)}.mg-c-divider.mg-c-divider--full-width{width:100%}";const rt=st;const lt=class{constructor(e){t(this,e);this.fullWidth=false}render(){return e("div",{key:"60b987cb329c6db14c2cc4a665e7f32b2696a3ee",class:{"mg-c-divider":true,"mg-c-divider--full-width":this.fullWidth}})}};lt.style=rt;const ct=["form","search","none","presentation"];const ht=["default","hide"];const gt=".mg-u-form-legacy{--mg-c-form-inputs-title-width:calc(100% / 3 - 20px)}.mg-u-is-asterisk{color:var(--mg-b-color-danger)}/*!\n * @prop --mg-c-form-inputs-title-width: Defines the width of the input title. Fallback on `calc(28 * var(--mg-b-size-8))`.\n */.mg-c-form{--mg-c-input-title-width:var(--mg-c-form-inputs-title-width, calc(28 * var(--mg-b-size-8)));--mg-c-input-margin-bottom:var(--mg-b-size-16);--mg-c-input-title-horizontal-space:var(--mg-b-size-32)}.mg-c-form.mg-c-form--all-required{--mg-c-input-title-display:none}.mg-c-form.mg-c-form--label-on-top{--mg-c-input-margin-bottom:var(--mg-b-size-24)}.mg-c-form>p{font-size:var(--mg-b-font-size-small)}";const mt=gt;const dt=class{constructor(e){t(this,e);this.formValid=o(this,"form-valid",7);this.formSubmit=o(this,"form-submit",7);this.classAllRequired="mg-c-form--all-required";this.classLabelOnTop="mg-c-form--label-on-top";this.identifier=a("mg-form");this.name=this.identifier;this.readonly=false;this.disabled=false;this.classCollection=new r(["mg-c-form"]);this.setRequiredMessage=()=>{this.requiredMessageText=null;this.classCollection.delete(this.classAllRequired);if(this.requiredMessage==="hide")return;else if(this.requiredMessage==="default"){this.requiredMessageText=this.messages.form.required;return}const t=t=>!(t.disabled||t.readonly);const e=t=>t.nodeName==="MG-INPUT-TOGGLE";if(!this.disabled&&!this.readonly&&this.mgInputs.some((i=>t(i)&&!e(i)))){const i=this.mgInputs.filter(t);const n=i.filter((t=>!e(t)&&t.required));if([n.length,i.length].every((t=>t===1))||n.length>1&&n.length===i.filter((t=>!e(t))).length){this.requiredMessageText=this.getRequiredMessageBasedOnCount(n,"allRequiredSingle","allRequired");this.classCollection.add(this.classAllRequired)}else if(n.length>0){this.requiredMessageText=this.getRequiredMessageBasedOnCount(n,"requiredSingle","required")}}};this.getRequiredMessageBasedOnCount=(t,e,i)=>this.messages.form[t.length===1?e:i];this.checkValidity=()=>{this.setRequiredMessage();this.valid=!this.mgInputs.some((t=>t.invalid));this.invalid=!this.valid;this.formValid.emit(this.valid)};this.handleFormSubmit=t=>{t.preventDefault();this.formSubmit.emit()};this.setMgInputs=()=>{this.mgInputs=Array.from(this.element.querySelectorAll("*")).filter((t=>t.nodeName.startsWith("MG-INPUT")));this.mgInputs.forEach((t=>{if(this.labelOnTop){t.labelOnTop=true}if(this.readonly){t.readonly=true}else if(this.disabled){t.disabled=true}else{t.addEventListener("input-valid",this.checkValidity)}}))}}watchIdentifier(t){if(!h(t)){console.error(`<mg-form> prop "identifier" value is invalid. Passed value: ${s(t)}.`)}}validateRequiredMessage(t){if(t&&!ht.includes(t)){throw new Error(`<mg-form> prop "requiredMessage" must be one of: ${ht.join(", ")}. Passed value: ${s(t)}.`)}}validateAriaRole(t){if(t&&!ct.includes(t)){throw new Error(`<mg-form> prop "ariaRole" must be one of: ${ct.join(", ")}. Passed value: ${s(t)}.`)}}handlelabelOnTop(t){if(t){this.classCollection.add(this.classLabelOnTop)}else{this.classCollection.delete(this.classLabelOnTop)}}handleAttributeChange(){this.setMgInputs();this.setRequiredMessage()}async displayError(){if(!this.readonly){this.mgInputs.forEach((t=>{var e;(e=t.displayError)===null||e===void 0?void 0:e.call(t)}));this.checkValidity()}}async reset(){if(!this.readonly){await Promise.all(this.mgInputs.map((async t=>{if(t.reset!==undefined){await t.reset()}})))}}componentWillLoad(){this.messages=k(this.element).messages;this.watchIdentifier(this.identifier);this.validateAriaRole(this.ariaRole);this.validateRequiredMessage(this.requiredMessage);this.handlelabelOnTop(this.labelOnTop);this.mgButtons=Array.from(this.element.querySelectorAll("mg-button"));this.mgButtons.forEach((t=>{t.setAttribute("form",this.identifier)}));this.setMgInputs();Promise.all(this.mgInputs.map((async t=>{try{await t.componentOnReady()}catch(t){}}))).then((()=>{this.checkValidity()}))}componentDidLoad(){const t={childList:true,subtree:true};new MutationObserver((e=>{if(e.some((e=>Object.keys(t).includes(e.type)))){this.setMgInputs();this.checkValidity()}})).observe(this.element,t)}render(){return e("form",{key:"a592ab555ddc0a5132fdf99b3de102d95ef8cc30",class:this.classCollection.join(),id:this.identifier,name:this.name,onSubmit:this.handleFormSubmit,role:this.ariaRole},this.requiredMessageText&&e("p",{key:"c7a0b19f51394d16bb80de4e0995e22213a6dc17",innerHTML:this.requiredMessageText}),e("slot",{key:"d6b6c2f15b3a0f1ca93c46506b892bf4bab8f095"}),!this.readonly&&!this.disabled&&e("slot",{key:"b758ae4e77d9534b44673494b536134526596651",name:"actions"}))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],requiredMessage:["validateRequiredMessage","handleAttributeChange"],ariaRole:["validateAriaRole"],labelOnTop:["handlelabelOnTop"],readonly:["handleAttributeChange"],disabled:["handleAttributeChange"]}}};dt.style=mt;const ut=["small","medium","large","xlarge","xxlarge"];const pt=["success","warning","danger","info","app"];const vt=["icon","background","full"];const ft={"address-card":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm11 3h-3v1h3zm-3 2h3v1h-3zM8 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-5 5.4A2.4 2.4 0 0 1 5.4 9h1.2A2.4 2.4 0 0 1 9 11.4a.6.6 0 0 1-.6.6H3.6a.6.6 0 0 1-.6-.6" clip-rule="evenodd"/></svg>',"address-card-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 6.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0" clip-rule="evenodd"/><path fill="currentColor" d="M13 5h-3v1h3zm-3 2h3v1h-3z"/><path fill="currentColor" fill-rule="evenodd" d="M5.4 9A2.4 2.4 0 0 0 3 11.4a.6.6 0 0 0 .6.6h4.8a.6.6 0 0 0 .6-.6A2.4 2.4 0 0 0 6.6 9zm0 1a1.4 1.4 0 0 0-1.342 1h3.884A1.4 1.4 0 0 0 6.6 10z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M2 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm12 1H2v10h12z" clip-rule="evenodd"/></svg>',"align-center":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 3h8v1H4zm-2 9h12v1H2zm12-6H2v1h12zM4 9h8v1H4z"/></svg>',"align-justify":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 3h12v1H2zm0 9h12v1H2zm12-6H2v1h12zM2 9h12v1H2z"/></svg>',"align-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 3h8v1H2zm0 9h12v1H2zm12-6H2v1h12zM2 9h8v1H2z"/></svg>',"align-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6 3h8v1H6zm-4 9h12v1H2zm12-6H2v1h12zM6 9h8v1H6z"/></svg>',api:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.44 11.47h-.02l-.66-.1-.02-.08c-.03-.11-.08-.21-.13-.31l-.04-.07.4-.54v-.02l-.52-.52h-.02l-.54.41-.07-.04c-.1-.05-.2-.09-.31-.13l-.08-.02-.1-.67v-.01h-.73v.02l-.1.66-.08.02c-.11.03-.21.08-.31.13l-.07.04-.55-.41-.52.52v.02l.41.54-.04.07c-.05.1-.09.2-.13.31l-.02.08-.67.1h-.01v.73h.02l.66.1.02.08c.03.1.08.21.13.3l.04.07-.41.55.52.52h.02l.54-.41.07.04c.1.05.2.09.31.13l.08.02.1.67v.01h.73v-.02l.1-.66.08-.02c.11-.03.21-.08.31-.13l.07-.04.55.41.52-.52v-.02l-.4-.54.04-.07c.05-.1.09-.2.13-.31l.02-.08.67-.1h.01v-.73zm-2.46 1.38c-.56 0-1.01-.45-1.01-1.01s.45-1.01 1.01-1.01 1.01.45 1.01 1.01-.45 1.01-1.01 1.01M8.51 5.81c-.11-.09-.27-.14-.5-.14h-.38v1.17h.27c.26 0 .45-.05.58-.15s.19-.25.19-.44-.05-.34-.16-.43zm1.57 5.13-.3-.4c-.1-.1-.09-.27 0-.37l.52-.52c.1-.1.26-.1.37 0l.4.29c.06-.03.13-.06.2-.08l.07-.49c0-.14.12-.25.26-.25h.45a5.44 5.44 0 1 0-10.5-1.99 5.44 5.44 0 0 0 5.44 5.44c.78 0 1.54-.17 2.25-.49v-.6c0-.14.11-.26.26-.26l.49-.07c.02-.07.05-.13.08-.2zm.18-5.96h.84v3.94h-.84zM5.4 8.92l-.29-.94H3.67l-.29.94h-.9l1.39-3.96h1.02l1.4 3.96h-.9zm3.72-1.74c-.26.23-.64.34-1.13.34h-.36v1.4h-.84V4.98h1.26c.48 0 .84.1 1.09.31s.37.51.37.92c0 .42-.13.75-.4.97zM4.4 5.57q-.09.345-.51 1.71h1.03q-.39-1.275-.45-1.44c-.03-.11-.06-.2-.07-.26z"/></svg>',archive:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3 6v6.96c0 .57.46 1.04 1.04 1.04H12c.55 0 1-.45 1-1V6zm7 2H6V7h4zm3-3H3c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h10c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1"/></svg>',"archive-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13 2H3c-.55 0-1 .45-1 1v2c0 .55.45 1 1 1v6.96c0 .57.46 1.04 1.04 1.04H12c.55 0 1-.45 1-1V6c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m-1 11H4.04S4 12.98 4 12.96V6h8zm1-8H3V3h10zm-3 3H6V7h4z"/></svg>',"arrow-clock":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m3.025 3.82-.002-.001.083-.09.063-.066.009-.01q.132-.15.273-.292a4 4 0 0 1 .215-.196q.136-.124.279-.24.108-.086.22-.166l.024-.018q.143-.105.293-.203a7 7 0 0 1 1.198-.607l.029-.01q.126-.05.257-.094a6 6 0 0 1 .375-.108l.067-.019q.105-.029.21-.053c.146-.032.294-.054.442-.075l.092-.015q.072-.013.146-.022A6.47 6.47 0 0 1 13 3.847V1.996h1v4h-4v-1h2.594a5.48 5.48 0 0 0-5.189-2.467l-.124.019-.077.012q-.188.025-.373.064a3 3 0 0 0-.173.044l-.063.017a6 6 0 0 0-.317.09 6 6 0 0 0-.227.084l-.016.006a6 6 0 0 0-.523.232 5.4 5.4 0 0 0-.736.452l-.028.021q-.092.065-.18.135-.12.098-.235.204l-.05.044q-.068.06-.133.122-.117.117-.226.241l-.013.014A5.496 5.496 0 1 0 13.5 7.996h1A6.5 6.5 0 1 1 3.025 3.82"/><path fill="currentColor" d="M9.795 11.746 7 8.95V4.246h1v4.29l2.5 2.505z"/></svg>',"arrow-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13 10.1h-2.77c-.16 0-.3-.12-.32-.28V.94c0-.17-.14-.3-.31-.29H6.37A.325.325 0 0 0 6 .92v8.89c0 .16-.13.29-.29.29H3c-.17 0-.3.12-.31.29 0 .08.02.16.08.22l5.06 4.58c.13.11.33.11.46 0l5-4.58c.12-.11.12-.29.01-.41h-.01c-.07-.1-.17-.1-.29-.1"/></svg>',"arrow-down-a-z":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.53 10.9-1.41 1.41-.71.71-2.12-2.12.71-.71.88.88V3.02h1v8.12l.95-.95.71.71zM12.29 6H10.5l-.36 1H9.08l1.79-5h1.05l1.79 5h-1.06zm-.36-1.02-.53-1.49-.53 1.49zm1.79 5.18V9H9.09v1h3.29l-3.29 2.84V14h4.63v-1h-3.29z"/></svg>',"arrow-down-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.999 12.292V3.999h1v10h-10v-1h8.292L2 2.707 2.707 2z"/></svg>',"arrow-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.88 12.93v-2.75c-.01-.17.11-.31.28-.32H15c.17-.01.3-.16.29-.33V6.32A.31.31 0 0 0 15 6H6.17c-.16-.02-.29-.15-.29-.31V2.93a.295.295 0 0 0-.28-.32c-.09 0-.17.03-.23.09L.79 7.76c-.11.13-.11.33 0 .46l4.58 5c.12.12.31.12.43 0 .06-.08.09-.19.08-.29"/></svg>',"arrow-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10.12 2.99v2.75c.01.17-.11.31-.28.32H1c-.17.01-.3.16-.29.33V9.6c0 .17.12.31.29.32h8.83c.16.02.29.15.29.31v2.76c-.01.17.11.31.28.32.09 0 .17-.03.23-.09l4.58-5.06c.11-.13.11-.33 0-.46l-4.58-5a.3.3 0 0 0-.43 0c-.06.08-.09.19-.08.29"/></svg>',"arrow-rotate":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m3.025 3.82-.002-.001c.046-.055.098-.103.146-.156q.137-.155.282-.302c.069-.068.142-.13.215-.195q.136-.124.279-.241.12-.095.244-.184.143-.105.293-.203a7 7 0 0 1 1.198-.607q.142-.055.286-.104a6 6 0 0 1 .375-.108c.092-.025.184-.052.278-.072a6 6 0 0 1 .441-.075c.08-.012.157-.028.238-.037A6.47 6.47 0 0 1 13 3.847V1.996h1v4h-4v-1h2.594a5.48 5.48 0 0 0-5.188-2.467q-.102.014-.202.031-.188.025-.373.064c-.08.017-.157.04-.236.06a6 6 0 0 0-.317.092q-.122.042-.243.089a6 6 0 0 0-.523.232 5.4 5.4 0 0 0-.736.452q-.106.076-.208.156-.12.098-.235.204-.093.08-.183.166c-.083.081-.16.169-.239.255A5.496 5.496 0 1 0 13.5 7.996h1A6.5 6.5 0 1 1 3.025 3.82"/></svg>',"arrow-rotate-backward":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.975 3.82.002-.001c-.046-.055-.098-.103-.146-.156-.092-.103-.183-.205-.282-.302-.069-.068-.142-.13-.215-.195q-.135-.124-.279-.241-.12-.095-.244-.184a7 7 0 0 0-.293-.203 7 7 0 0 0-.859-.467 7 7 0 0 0-.339-.14q-.142-.055-.286-.104a6 6 0 0 0-.375-.108c-.092-.025-.184-.052-.278-.072a6 6 0 0 0-.441-.075c-.08-.012-.157-.028-.238-.037A6.47 6.47 0 0 0 3 3.847V1.996H2v4h4v-1H3.406a5.48 5.48 0 0 1 5.189-2.467q.101.014.2.031.19.025.374.064c.08.017.157.04.236.06q.16.042.317.092.122.042.243.089a6 6 0 0 1 .523.232 5.3 5.3 0 0 1 .736.452q.105.076.208.156.12.098.235.204.093.08.183.166c.083.081.16.169.239.255A5.496 5.496 0 1 1 2.5 7.996h-1A6.5 6.5 0 1 0 12.975 3.82"/></svg>',"arrow-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.06 5.82h2.75c.16 0 .3.12.32.28V15c.01.17.16.3.33.29h3.21c.16.02.31-.1.33-.27V6.11c0-.17.14-.3.31-.29h2.75c.17 0 .31-.12.32-.28 0-.08-.03-.17-.09-.23L8.23.73a.36.36 0 0 0-.46 0l-5 4.58a.29.29 0 0 0 0 .42c.05.1.15.09.29.09"/></svg>',"arrow-up-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.292 3H3.999V2h10v10h-1V3.707L2.707 14 2 13.29z"/></svg>',"arrow-up-right-square":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.33 3v10c0 .73-.6 1.32-1.33 1.33H3c-.73 0-1.32-.6-1.33-1.33V3c0-.73.6-1.32 1.33-1.33h10c.73 0 1.32.6 1.33 1.33m-2.48.46H8.68c-.37 0-.67.29-.68.66v.04c0 .18.07.35.2.47l.91.91-5.53 5.53c-.13.13-.14.33-.01.47h.01l.87.88c.13.13.33.14.47.01h.01l5.53-5.53.91.9c.26.28.7.29.98.02l.02-.02c.12-.13.19-.3.19-.48V4.15c0-.37-.3-.67-.67-.67z"/></svg>',"arrow-up-z-a":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m5.82 5.85-.94-.94v8.11h-1V4.96l-.89.89-.71-.71 1.41-1.41.71-.71.71.71 1.41 1.41-.71.71zM12.29 13H10.5l-.36 1H9.08l1.79-5h1.05l1.79 5h-1.06zm-.36-1.02-.53-1.49-.53 1.49zm1.79-8.82V2H9.09v1h3.29L9.09 5.84V7h4.63V6h-3.29z"/></svg>',"arrows-compare":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11.705 8.295 9.915 6.5H15v-1H9.915l1.79-1.795L11 3 8 6l3 3zM8 10 5 7l-.705.705L6.085 9.5H1v1h5.085l-1.79 1.795L5 13z"/></svg>',"arrows-right-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.085 4.499-1.79-1.795.705-.705 3 3-3 3-.705-.705 1.79-1.795H9v-1zM8 6.514h.003v5.572l1.795-1.79.705.705-3 3-3-3 .705-.705 1.795 1.79V5.499H2v-1h6z"/></svg>',"arrows-right-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m11 2 3 3-3 3-.705-.705 1.79-1.795H2v-1h10.085l-1.79-1.795zm-7.085 9.5 1.79 1.795L5 14l-3-3 3-3 .705.705-1.79 1.795H14v1z" clip-rule="evenodd"/></svg>',"arrows-rotate":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10 4.997h2.61a5.5 5.5 0 0 0-6.175-2.271A5.5 5.5 0 0 0 2.5 7.993h-1a6.49 6.49 0 0 1 4.289-6.112A6.51 6.51 0 0 1 13 3.838V2h1v3.996h-4zM6 10.99H3.39a5.5 5.5 0 0 0 6.175 2.271A5.5 5.5 0 0 0 13.5 7.993h1a6.49 6.49 0 0 1-4.289 6.113A6.51 6.51 0 0 1 3 12.15v1.838H2V9.991h4z"/></svg>',"arrows-rotate-backward":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6 4.997H3.39a5.5 5.5 0 0 1 6.175-2.271A5.5 5.5 0 0 1 13.5 7.993h1a6.49 6.49 0 0 0-4.289-6.112A6.51 6.51 0 0 0 3 3.838V2H2v3.996h4zm4 5.993h2.61a5.5 5.5 0 0 1-6.175 2.271A5.5 5.5 0 0 1 2.5 7.993h-1a6.49 6.49 0 0 0 4.289 6.113A6.51 6.51 0 0 0 13 12.15v1.838h1V9.991h-4z"/></svg>',ban:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.126 4.582a6 6 0 0 1-8.456-8.456zm.707-.708L4.127 3.418a6 6 0 0 1 8.456 8.456" clip-rule="evenodd"/></svg>',bell:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.97 6a4 4 0 0 1 8 0v2.3l1.507.822c.91.496.558 1.878-.478 1.878H3.002c-1.027 0-1.387-1.362-.494-1.87l1.461-.83zm2.027 6a2 2 0 1 0 4 0z"/></svg>',"bell-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" d="m11.47 8.597 1.768.964c.455.248.28.939-.239.939H3.002c-.514 0-.694-.681-.247-.935l1.714-.974V6a3.5 3.5 0 0 1 7 0zM7.996 13.5a1.5 1.5 0 0 1-1.415-1h2.83a1.5 1.5 0 0 1-1.415 1Z"/></svg>',book:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-2H1.5a.5.5 0 0 1 0-1H3V9H1.5a.5.5 0 0 1 0-1H3V7H1.5a.5.5 0 0 1 0-1H3zm8 0H9v4h2z" clip-rule="evenodd"/></svg>',"book-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M4 2a1 1 0 0 0-1 1v3H1.5a.5.5 0 0 0 0 1H3v1H1.5a.5.5 0 0 0 0 1H3v1H1.5a.5.5 0 0 0 0 1H3v2a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm5 1H4v3h.5a.5.5 0 0 1 0 1H4v1h.5a.5.5 0 0 1 0 1H4v1h.5a.5.5 0 0 1 0 1H4v2h8V3h-1v4H9z" clip-rule="evenodd"/></svg>',briefcase:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 4v1H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-3V4a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1m5 1V4H6v1z" clip-rule="evenodd"/></svg>',"briefcase-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 5V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1h3a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1-1h4v1H6zM2 6v7h12V6z" clip-rule="evenodd"/></svg>',"building-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M4 2h8v12H9v-1a1 1 0 1 0-2 0v1H4zm4 13h4a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1zM7 4H5v2h2zm2 0h2v2H9zm2 4H9v2h2zM5 8h2v2H5z" clip-rule="evenodd"/></svg>',calculator:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm2 1h8v3H4zm2 5H4v2h2zm1 0h2v2H7zm5 0h-2v5h2zm-8 3h2v2H4zm5 0H7v2h2z" clip-rule="evenodd"/></svg>',"calculator-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 3h8v3H4zm2 5H4v2h2zm3 0H7v2h2zm3 0h-2v5h2zm-6 3H4v2h2zm3 0H7v2h2z"/><path fill="currentColor" fill-rule="evenodd" d="M2 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm1 0h10v12H3z" clip-rule="evenodd"/></svg>',calendar:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 1h1v1h4V1h1v1h2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h2zm8 5H3v7h10z" clip-rule="evenodd"/></svg>',"calendar-euro":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 2.5h1c.6 0 1 .4 1 1v10c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1v-10c0-.6.4-1 1-1h1v-1h1v1h6v-1h1zm-9 3v8h10v-8zm7.5 6.24-.71-.71c-.35.3-.8.49-1.29.49-.74 0-1.4-.41-1.74-1.02h1.77v-.75H6.51c-.01-.07-.01-.15-.01-.23 0-.09.01-.18.02-.27h2.01V8.5H6.78c.35-.59.99-.98 1.72-.98.49 0 .94.19 1.29.49l.71-.71a2.974 2.974 0 0 0-4.81 1.2H4.5v.75h1.02c-.02.09-.02.18-.02.27 0 .08 0 .16.02.23H4.5v.75h1.17c.4 1.17 1.52 2.02 2.83 2.02.77 0 1.47-.3 2-.78" clip-rule="evenodd"/></svg>',"calendar-euro-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m9.79 11.02.71.71a2.976 2.976 0 0 1-4.83-1.24H4.5v-.75h1.01c-.01-.08-.01-.15-.01-.23 0-.09 0-.18.02-.27H4.5v-.75h1.19a2.974 2.974 0 0 1 4.81-1.2L9.79 8c-.35-.3-.8-.49-1.29-.49-.73 0-1.37.39-1.72.98h1.75v.75H6.52c-.01.09-.02.18-.02.27 0 .08 0 .16.01.23h2.02v.75H6.76c.34.61 1 1.02 1.74 1.02.49 0 .94-.19 1.29-.49M13 3.5v1H3v-1zm-1-2h-1v1H5v-1H4v1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1v-10c0-.55-.45-1-1-1h-1zm-9 12v-8h10v8z"/></svg>',"calendar-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13 2h-2V1h-1v1H6V1H5v1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m0 11H3V6h10zm0-8H3V3h2v1h1V3h4v1h1V3h2z"/></svg>',check:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.77 12.113 15 3.883l-.707-.707-8.23 8.23-4.355-4.355L1 7.76l4.355 4.355-.004.004.707.706.004-.004.003.004.708-.707z"/></svg>',"check-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m-1 9.795-2.5-2.5.795-.795L7 9.205 10.705 5.5l.798.793z"/></svg>',"check-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m4.5 8.207 2.5 2.5 4.5-4.5-.707-.707L7 9.293 5.207 7.5z"/><path fill="currentColor" fill-rule="evenodd" d="M4.111 2.18a7 7 0 1 1 7.778 11.64A7 7 0 0 1 4.111 2.18m.556 10.809a6 6 0 1 0 6.666-9.978 6 6 0 0 0-6.666 9.978" clip-rule="evenodd"/></svg>',"chevron-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m8 11.708 6-6L13.293 5 8 10.293 2.708 5 2 5.708z"/></svg>',"chevron-down-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M3.706 6 8 10.294 12.294 6l.706.706-5 5-5-5z" clip-rule="evenodd"/></svg>',"chevron-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m4 8 6 6 .708-.708L5.415 8l5.293-5.292L10 2z"/></svg>',"chevron-left-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m9-4.294L5.706 8 10 12.294 9.294 13l-5-5 5-5z" clip-rule="evenodd"/></svg>',"chevron-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m11.708 8-6-6L5 2.708 10.293 8 5 13.293l.708.707z"/></svg>',"chevron-right-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15 8A7 7 0 1 0 1 8a7 7 0 0 0 14 0m-9 4.294L10.294 8 6 3.706 6.706 3l5 5-5 5z" clip-rule="evenodd"/></svg>',"chevron-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m8 4.5-6 6 .708.707L8 5.916l5.293 5.293L14 10.5z"/></svg>',"chevron-up-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m4.294 9L8 5.706 3.706 10 3 9.294l5-5 5 5z" clip-rule="evenodd"/></svg>',circle:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8"/></svg>',clock:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m-.5-6.795L10.295 11l.705-.705L8.5 7.79V3.5h-1z" clip-rule="evenodd"/></svg>',"clock-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m10.95 10.04-.71.71L7.5 8.01v-4h1V7.6l2.45 2.45zM8 2C4.69 2 2 4.69 2 8s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m0-1c3.87 0 7 3.13 7 7s-3.13 7-7 7-7-3.13-7-7 3.13-7 7-7"/></svg>',"code-square-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.32 10.28.73-.73L5.5 8l1.53-1.53-.73-.73-2.27 2.27 2.28 2.28zm3.37 0L11.97 8 9.69 5.72l-.73.73L10.51 8 8.96 9.55zM3.01 14c-.27 0-.5-.1-.7-.3s-.3-.43-.3-.7V3c0-.27.1-.5.3-.7s.43-.3.7-.3h10c.27 0 .5.1.7.3s.3.43.3.7v10c0 .27-.1.5-.3.7s-.43.3-.7.3H3zm0-1h10V3H3v10z"/></svg>',cog:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M6.062 2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1.416c.345.15.67.34.97.56l1.226-.708a1 1 0 0 1 1.366.366l1 1.732a1 1 0 0 1-.366 1.366l-1.227.709a5 5 0 0 1 0 1.119l1.227.708a1 1 0 0 1 .366 1.366l-1 1.732a1 1 0 0 1-1.366.366l-1.227-.708c-.3.22-.624.41-.969.56V14a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-1.416a5 5 0 0 1-.969-.56l-1.227.708a1 1 0 0 1-1.366-.366l-1-1.732a1 1 0 0 1 .366-1.366l1.227-.709a5 5 0 0 1 0-1.118l-1.227-.709A1 1 0 0 1 1.5 5.366l1-1.732a1 1 0 0 1 1.366-.366l1.227.709q.45-.334.97-.561zm2 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4" clip-rule="evenodd"/></svg>',"cog-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.438 8a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0m2.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M10 3.416V2a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v1.416c-.345.15-.67.34-.969.56l-1.227-.708a1 1 0 0 0-1.366.366l-1 1.732a1 1 0 0 0 .366 1.366l1.227.709a5 5 0 0 0 0 1.118l-1.227.709a1 1 0 0 0-.366 1.366l1 1.732a1 1 0 0 0 1.366.366l1.227-.708a5 5 0 0 0 .969.56V14a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-1.416c.345-.15.67-.34.969-.56l1.227.708a1 1 0 0 0 1.366-.366l1-1.732a1 1 0 0 0-.366-1.366l-1.227-.709a5 5 0 0 0 0-1.118l1.227-.709a1 1 0 0 0 .366-1.366l-1-1.732a1 1 0 0 0-1.366-.366l-1.227.708c-.3-.22-.624-.41-.97-.56M7 4.07l-.6.262q-.414.182-.775.449l-.527.39-1.794-1.037-1 1.732 1.793 1.035-.072.65a4 4 0 0 0 0 .898l.072.65-1.793 1.035 1 1.732 1.794-1.036.527.39q.361.265.775.448l.6.262V14h2v-2.07l.6-.262q.414-.182.774-.449l.527-.39 1.795 1.037 1-1.732-1.793-1.035.072-.65a4 4 0 0 0 0-.898l-.072-.65 1.793-1.035-1-1.732-1.795 1.036-.527-.39q-.36-.265-.774-.448L9 4.07V2H7z" clip-rule="evenodd"/></svg>',comment:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.5 2A5.5 5.5 0 0 0 4 11.743V14l3.5-1h1a5.5 5.5 0 1 0 0-11zM5 6h6v1H5zm3 2H5v1h3z" clip-rule="evenodd"/></svg>',"comment-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5 6h6v1H5zm0 2h3v1H5z"/><path fill="currentColor" fill-rule="evenodd" d="m4 14 3.5-1h1a5.5 5.5 0 1 0 0-11h-1A5.5 5.5 0 0 0 4 11.743zm1-2.728-.363-.3A4.5 4.5 0 0 1 7.5 3h1a4.5 4.5 0 1 1 0 9H7.36L5 12.674z" clip-rule="evenodd"/></svg>',"comment-sms":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 2.67c-3.37 0-6.1 2.21-6.1 4.95.02 1.18.51 2.3 1.36 3.11-.26.85-.71 1.62-1.3 2.28a.2.2 0 0 0-.04.21c.03.07.1.11.17.11 1.22-.02 2.4-.45 3.34-1.22.82.31 1.68.46 2.56.46 3.37 0 6.1-2.22 6.1-4.95S11.37 2.67 8 2.67M4.95 8.39a.76.76 0 1 1 0-1.52.76.76 0 0 1 0 1.52m3.05 0a.76.76 0 1 1 0-1.52.76.76 0 0 1 0 1.52m3.05 0a.76.76 0 1 1-.02-1.52c.42 0 .77.33.77.75v.01c0 .42-.34.76-.76.76"/></svg>',conversation:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1.01 6.51c0-1.93 2.23-3.5 4.99-3.5s4.99 1.57 4.99 3.5-2.23 3.5-4.99 3.5c-.36 0-.71-.03-1.05-.08l-2.26 1.05c-.06.03-.11.03-.17.03-.27 0-.5-.21-.5-.5V8.6c-.62-.58-1.01-1.3-1.01-2.09m10.48-.01c0-.5-.13-.97-.36-1.41h.01c2.22.36 3.88 1.75 3.88 3.41 0 .79-.39 1.5-1.02 2.09v1.91a.5.5 0 0 1-.67.47l-2.26-1.05c-.34.05-.69.08-1.05.08-1.69 0-3.19-.59-4.09-1.5h.12c3.03 0 5.44-1.81 5.44-4" clip-rule="evenodd"/></svg>',"conversation-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 6.5C10 5.14 8.17 4 6 4l-.01.01c-2.17 0-4 1.14-4 2.5 0 .59.38 1.06.7 1.36l.32.3v1.55l1.51-.7.27-.13.3.04c.31.05.62.07.91.07 2.17 0 4-1.14 4-2.5m-9.01.01c0-1.929 2.237-3.498 4.995-3.5 2.758.002 4.995 1.571 4.995 3.5s-2.24 3.5-5 3.5c-.36 0-.71-.03-1.05-.08l-2.26 1.05c-.06.03-.11.03-.17.03-.26 0-.5-.21-.5-.5V8.6C1.38 8.02.99 7.3.99 6.51m4.995-3.5h.005-.01zm8.005 7.58c.62-.58 1.01-1.3 1.01-2.09q0-.18-.03-.36c-.01-.11-.04-.22-.07-.33a2.3 2.3 0 0 0-.17-.45 3.55 3.55 0 0 0-1.1-1.26c-.1-.07-.19-.13-.3-.2a5 5 0 0 0-.65-.35c-.23-.1-.48-.19-.73-.27a4 4 0 0 1-.19-.06c.14.36.22.74.23 1.13C13.18 6.78 14 7.59 14 8.5c0 .59-.38 1.07-.7 1.36l-.31.3-.01.43v1.12l-1.5-.7-.28-.12-.29.04c-.31.05-.62.07-.91.07-.67 0-1.3-.1-1.86-.29-.51.15-1.06.24-1.64.27.06.05.12.09.18.13l.42.24c.36.18.76.33 1.18.43.15.04.3.08.46.1.02.01.03.01.05.01.17.04.34.07.52.07.22.03.46.04.69.04.36 0 .71-.03 1.05-.08l2.26 1.05q.09.03.18.03c.26 0 .49-.21.5-.5z" clip-rule="evenodd"/></svg>',copy:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 2h6V1H4a1 1 0 0 0-1 1v9h1z"/><path fill="currentColor" d="M5 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z"/></svg>',"copy-file":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 2h6V1H4a1 1 0 0 0-1 1v9h1z"/><path fill="currentColor" d="M6 3h3v4h4v7a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"/><path fill="currentColor" d="m13 6-3-3v3z"/></svg>',"copy-file-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m10 3 3 3v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm0 1.414V6h1.586zM12 7H9V4H6v10h6z" clip-rule="evenodd"/><path fill="currentColor" d="M4 2h6V1H4a1 1 0 0 0-1 1v9h1z"/></svg>',"copy-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10 2H4v9H3V2a1 1 0 0 1 1-1h6z"/><path fill="currentColor" fill-rule="evenodd" d="M5 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1zm1 0h6v10H6z" clip-rule="evenodd"/></svg>',"credit-card":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3 9h3v2H3z"/><path fill="currentColor" fill-rule="evenodd" d="M2 13a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1zm0-9h12v1H2zm12 3v5H2V7z" clip-rule="evenodd"/></svg>',cross:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 2.707 2.707 2l11.29 11.289-.708.707z"/><path fill="currentColor" d="M2.707 14 2 13.293 13.293 2l.707.708z"/></svg>',"cross-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 1C4.1 1 1 4.1 1 8s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7m2.7 10.5L8 8.8l-2.7 2.7-.8-.8L7.2 8 4.5 5.3l.8-.8L8 7.2l2.7-2.7.8.8L8.8 8l2.7 2.7z"/></svg>',"cross-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 8c0-3.9 3.1-7 7-7s7 3.1 7 7-3.1 7-7 7-7-3.1-7-7m1 0c0 3.3 2.7 6 6 6s6-2.7 6-6-2.7-6-6-6-6 2.7-6 6m6 .8 2.7 2.7.8-.8L8.8 8l2.7-2.7-.8-.8L8 7.2 5.3 4.5l-.8.8L7.2 8l-2.7 2.7.8.8z" clip-rule="evenodd"/></svg>',dashboard:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 2h6v7H2zm0 8h6v4H2zm7-8h5v4H9zm0 5h5v7H9z"/></svg>',"dashboard-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 2H2v7h6zM7 3H3v5h4zm1 7H2v4h6zm-1 1H3v2h4zm2-9v4h5V2zm4 1h-3v2h3zm1 4H9v7h5zm-1 1h-3v5h3z" clip-rule="evenodd"/></svg>',download:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12.295 6.295 13 7l-5 5-5-5 .705-.705 3.795 3.79V1h1v9.085zM13 14v-2h1v2a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-2h1v2z" clip-rule="evenodd"/></svg>',earth:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m-1.224-2.553-.63 1.261A6.003 6.003 0 0 1 4.501 3.126l1.6.4a1 1 0 0 1 .742 1.14L6.41 7.19a1 1 0 0 1-.986.83H4.47a1 1 0 0 0-.77.362l-.185.223A1 1 0 0 0 3.5 9.862l.273.348a1 1 0 0 0 .59.362l1.658.332a1 1 0 0 1 .699.533l.057.116a1 1 0 0 1 0 .894m3.543-9.983V4.53a1 1 0 0 0 1 1h1.234a1 1 0 0 0 .664-.252l.09-.08a6.02 6.02 0 0 0-2.988-2.733m3.612 4.622-.012-.075h-3.05a1 1 0 0 0-.884.535l-.773 1.469a1 1 0 0 0-.115.465v.964a1 1 0 0 0 .408.806l.353.259a1 1 0 0 1 .408.806v1.242a6 6 0 0 0 3.665-6.47" clip-rule="evenodd"/></svg>',"earth-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m0-1a6 6 0 0 0 1.766-.264v-1.421a.5.5 0 0 0-.204-.403l-.353-.26a1.5 1.5 0 0 1-.612-1.208V9.48c0-.243.06-.483.173-.698l.772-1.469a1.5 1.5 0 0 1 1.328-.802h2.944a6 6 0 0 0-.284-.844 1.5 1.5 0 0 1-.977.362h-1.235a1.5 1.5 0 0 1-1.5-1.5V2.28A6 6 0 0 0 8 2a6 6 0 0 0-2.918.756l1.14.286A1.5 1.5 0 0 1 7.336 4.75l-.433 2.525a1.5 1.5 0 0 1-1.479 1.247H4.47a.5.5 0 0 0-.385.18l-.185.223a.5.5 0 0 0-.008.628l.273.348a.5.5 0 0 0 .295.181l1.658.332a1.5 1.5 0 0 1 1.048.8l.058.115a1.5 1.5 0 0 1 0 1.342l-.587 1.174A6 6 0 0 0 8 14m6-6q0-.247-.02-.489h-3.11a.5.5 0 0 0-.443.268l-.772 1.468a.5.5 0 0 0-.058.233v.964a.5.5 0 0 0 .204.403l.353.259a1.5 1.5 0 0 1 .612 1.209v1.01A6 6 0 0 0 14 8m-8.402 5.5h.093l.638-1.276a.5.5 0 0 0 0-.448l-.057-.115a.5.5 0 0 0-.35-.267l-1.658-.331a1.5 1.5 0 0 1-.885-.545l-.273-.347a1.5 1.5 0 0 1 .025-1.884l.184-.223a1.5 1.5 0 0 1 1.155-.542h.954a.5.5 0 0 0 .493-.416l.433-2.525a.5.5 0 0 0-.37-.57l-1.95-.487-.046.018A6.002 6.002 0 0 0 5.598 13.5m7.287-8.597.164-.146a6 6 0 0 0-1.458-1.564 6 6 0 0 0-.772-.457V4.53a.5.5 0 0 0 .5.5h1.234a.5.5 0 0 0 .332-.126" clip-rule="evenodd"/></svg>',ellipsis:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3 8a1 1 0 1 1 2 0 1 1 0 0 1-2 0m4 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0m4 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0"/></svg>',"ellipsis-vertical":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0 4a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0 4a1 1 0 1 1 0 2 1 1 0 0 1 0-2"/></svg>',euro:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.08 11.02 1.42 1.42a5.95 5.95 0 0 1-4 1.56c-2.6 0-4.8-1.64-5.62-3.94H1.5v-1.5h2.04C3.5 8.38 3.5 8.18 3.5 8c0-.16 0-.34.04-.5H1.5V6h2.36c.8-2.34 3.02-4 5.64-4 1.54 0 2.94.6 4 1.56l-1.42 1.42c-.7-.6-1.6-.98-2.58-.98-1.48 0-2.76.8-3.46 2h3.52v1.5H5.54c-.02.16-.04.32-.04.5 0 .2.02.38.04.56h4.02v1.5H6.08C6.78 11.22 8.06 12 9.5 12c.98 0 1.88-.38 2.58-.98"/></svg>',"euro-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" d="M8 .67C3.95.67.67 3.95.67 8S3.95 15.33 8 15.33s7.33-3.28 7.33-7.33S12.05.67 8 .67m2.27 11.4c-.38.09-.76.14-1.15.14a4.04 4.04 0 0 1-3.99-2.92h-.58c-.12 0-.23-.09-.23-.22v-.54c0-.12.11-.22.23-.22h.41a5 5 0 0 1 0-.8h-.41c-.12 0-.23-.09-.23-.22v-.58c0-.12.1-.22.23-.22h.63c.6-1.65 2.18-2.74 3.94-2.71.34 0 .68.03 1.02.1.12.03.19.16.16.28l-.23.84c-.03.12-.15.19-.27.17-.24-.05-.48-.08-.73-.08A2.42 2.42 0 0 0 6.81 6.5h2.71c.12.03.2.15.17.27l-.13.58c-.02.1-.11.18-.22.18H6.52c-.03.27-.03.53 0 .8h2.63c.12.03.2.15.17.27l-.11.52c-.03.1-.12.17-.22.18H6.8c.36.96 1.28 1.6 2.31 1.61.3 0 .59-.04.88-.1.12-.02.24.06.27.18l.17.84c.02.12-.05.24-.17.27v-.03z"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>',"exclamation-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8m7.75-4v5h-1.5V4zm0 8v-1.5h-1.5V12z" clip-rule="evenodd"/></svg>',"exclamation-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.75 4v5h-1.5V4zm0 8v-1.5h-1.5V12z"/><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1M2 8a6 6 0 1 0 12 0A6 6 0 0 0 2 8" clip-rule="evenodd"/></svg>',"exclamation-stamp":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m15 8-1.55-1.86.22-2.46-2.3-.55L10.17 1 8 1.98 5.84 1 4.63 3.13l-2.29.54.22 2.46L1.01 8l1.55 1.86-.22 2.47 2.3.55 1.2 2.13L8 14.03l2.17.98 1.2-2.13 2.3-.55-.22-2.46L15 8.01zm-6.36 3.35H7.36v-1.34h1.28zm0-2.67H7.36V4.67h1.28z"/></svg>',"exclamation-triangle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m8 2 7 12H1zm-.75 4.5h1.5V10h-1.5zm1.5 6V11h-1.5v1.5z" clip-rule="evenodd"/></svg>',"exclamation-triangle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.75 6.5V10h-1.5V6.5zm0 6V11h-1.5v1.5z"/><path fill="currentColor" fill-rule="evenodd" d="M8 2 1 14h14zm0 1.985L2.741 13h10.518z" clip-rule="evenodd"/></svg>',eye:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4"/><path fill="currentColor" fill-rule="evenodd" d="M15 8s-3.134 5-7 5-7-5-7-5 3.134-5 7-5 7 5 7 5m-7 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6" clip-rule="evenodd"/></svg>',"eye-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6m0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M1 8s3.134 5 7 5 7-5 7-5-3.134-5-7-5-7 5-7 5m1.215 0 .133.178a15 15 0 0 0 1.405 1.61C4.974 10.994 6.478 12 8 12s3.026-1.006 4.247-2.212A15 15 0 0 0 13.785 8l-.133-.178a15 15 0 0 0-1.405-1.61C11.026 5.006 9.522 4 8 4S4.974 5.006 3.753 6.212A15 15 0 0 0 2.215 8" clip-rule="evenodd"/></svg>',"eye-slash":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m1 1.7.7-.7L15 14.302l-.7.7-3.084-3.085c-.963.63-2.057 1.08-3.216 1.08-3.866 0-7-5-7-5S2.174 6.124 3.97 4.67zm4.556 4.557A3 3 0 0 0 9.74 10.44l-.722-.722a2 2 0 0 1-2.74-2.74z" clip-rule="evenodd"/><path fill="currentColor" d="m5.67 3.572 1.532 1.532a3.003 3.003 0 0 1 3.69 3.691l1.877 1.877C14.142 9.366 15 7.997 15 7.997s-3.134-5-7-5c-.817 0-1.6.223-2.33.575"/><path fill="currentColor" d="M9.998 7.9 8.097 6a2 2 0 0 1 1.9 1.901"/></svg>',"eye-slash-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m1 1.7.7-.7L15 14.302l-.7.7-3.084-3.085c-.963.63-2.057 1.08-3.216 1.08-3.866 0-7-5-7-5S2.174 6.124 3.97 4.67zm3.682 3.683c-.324.256-.635.535-.93.826a15 15 0 0 0-1.537 1.788l.133.178c.334.442.815 1.028 1.405 1.61C4.974 10.99 6.478 11.997 8 11.997c.852 0 1.698-.315 2.492-.804l-.752-.752a3 3 0 0 1-4.184-4.184zm1.596 1.596a2 2 0 0 0 2.74 2.74z" clip-rule="evenodd"/><path fill="currentColor" d="m5.67 3.572.757.757A4.2 4.2 0 0 1 8 3.997c1.522 0 3.026 1.006 4.247 2.212a15 15 0 0 1 1.538 1.788q-.061.085-.133.178a15 15 0 0 1-1.531 1.733l-.06.057.708.707C14.142 9.366 15 7.997 15 7.997s-3.134-5-7-5c-.817 0-1.6.223-2.33.575"/><path fill="currentColor" d="m8.097 6-.895-.896a3.003 3.003 0 0 1 3.69 3.691L9.999 7.9A2 2 0 0 0 8.097 6"/></svg>',fax:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13 14H6V2h7v3a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1M7 3h5v2H7zm0 4h5v1H7zm1 2H7v1h1zm-1 2h1v1H7zm3-2H9v1h1zm-1 2h1v1H9zm3-2h-1v1h1zm-1 2h1v1h-1z" clip-rule="evenodd"/><path fill="currentColor" d="M2 5a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z"/></svg>',"fax-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 3H7v2h5zM6 3v2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1V2H6zm6 3h1v7H6V6zM3 5h2v8H3zm9 2H7v1h5zM7 9h1v1H7zm1 2H7v1h1zm1-2h1v1H9zm1 2H9v1h1zm1-2h1v1h-1zm1 2h-1v1h1z" clip-rule="evenodd"/></svg>',file:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zm1-1V1l3 3z" clip-rule="evenodd"/></svg>',"file-cog":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 10.06c-.03.53-.47.94-1 .94-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1zm.55-4.81h3.76v9.4a.68.68 0 0 1-.66.66h-9.3c-.37 0-.67-.31-.66-.68V1.33c.01-.36.3-.65.66-.66h5.54v3.89c-.01.37.28.68.65.69zM10 8l-.51.29c-.21-.18-.46-.32-.72-.41v-.57c0-.06-.05-.12-.11-.14-.43-.09-.87-.09-1.3 0a.14.14 0 0 0-.12.14v.59q-.405.135-.72.42L6 8a.135.135 0 0 0-.17 0c-.3.32-.52.71-.65 1.13-.02.06 0 .13.06.16l.51.29q-.075.42 0 .84l-.51.29c-.05.03-.08.1-.06.16.13.42.35.81.65 1.13.05.04.12.04.17 0l.51-.29c.22.18.46.32.73.41v.59c0 .07.04.13.11.14.43.09.87.09 1.3 0 .07-.01.12-.07.11-.14v-.51c.27-.09.51-.23.73-.41l.51.29c.05.04.12.04.17 0 .3-.32.52-.71.65-1.13.02-.06 0-.13-.06-.16l-.5-.3c.05-.27.05-.56 0-.83l.5-.3c.06-.03.09-.1.07-.16a2.9 2.9 0 0 0-.65-1.13A.16.16 0 0 0 10 8m3.12-4.33L10.41.87a.63.63 0 0 0-.47-.2h-.17v3.66h3.54v-.17c0-.18-.06-.36-.19-.49"/></svg>',"file-download":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m10.41.87 2.71 2.8a.7.7 0 0 1 .19.49v.17H9.77V.67h.17a.63.63 0 0 1 .47.2m2.9 4.38v9.42a.67.67 0 0 1-.66.66h-9.3a.67.67 0 0 1-.66-.68V1.33a.67.67 0 0 1 .66-.66h5.54v3.9a.67.67 0 0 0 .66.68zm-5.45 7.69 2.54-2.53a.19.19 0 0 0 .01-.27.16.16 0 0 0-.14-.06H8.93a.2.2 0 0 1-.2-.2v-2.6a.18.18 0 0 0-.18-.19H6.92a.19.19 0 0 0-.19.18v2.61a.2.2 0 0 1-.2.2H5.19a.18.18 0 0 0-.19.18.2.2 0 0 0 .06.15l2.54 2.53a.18.18 0 0 0 .26 0" clip-rule="evenodd"/></svg>',"file-excel":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zm-.018 7h1.335L8.776 9.48l1.5-2.48H9.02l-.795 1.485a5 5 0 0 0-.157.436h-.014a2.6 2.6 0 0 0-.15-.422L7.19 7H5.82l1.457 2.5L5.683 12h1.342l.865-1.614q.09-.234.115-.349h.014q.053.244.101.335z" clip-rule="evenodd"/><path fill="currentColor" d="M10 4V1l3 3z"/></svg>',"file-excel-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.982 12h1.335L8.776 9.48l1.5-2.48H9.02l-.795 1.485a5 5 0 0 0-.157.436h-.014a2.6 2.6 0 0 0-.15-.422L7.19 7H5.82l1.457 2.5L5.683 12h1.342l.865-1.614q.09-.234.115-.349h.014q.053.244.101.335z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4l-3-3zm6 3V2.537L11.254 4zm2 1v9H4V2h5v3z" clip-rule="evenodd"/></svg>',"file-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m10 1 3 3v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 1.415V4h1.585zM12 5H9V2H4v12h8z" clip-rule="evenodd"/></svg>',"file-pdf":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.464 11.274a4 4 0 0 0-.393.207c-.223.137-.37.27-.444.387-.072.11-.073.19-.03.273l.019.034.027-.01c.103-.042.268-.177.48-.433q.18-.22.34-.458m1.243-1.007q.378-.09.764-.146a9 9 0 0 1-.386-.65 16 16 0 0 1-.378.796m1.873.363a3 3 0 0 0 .341.314c.164.123.28.165.344.168a.1.1 0 0 0 .053-.012.23.23 0 0 0 .07-.094.3.3 0 0 0 .045-.152.07.07 0 0 0-.02-.047c-.039-.047-.15-.116-.391-.159a3 3 0 0 0-.463-.04zM8.051 7.952q.096-.308.151-.626.035-.213.029-.352a.5.5 0 0 0-.024-.15.4.4 0 0 0-.11.03c-.066.027-.12.08-.148.215l-.01.057q-.029.213.044.565.027.126.068.26"/><path fill="currentColor" fill-rule="evenodd" d="M9 1v4h4v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM5.42 12.713a.6.6 0 0 1-.332-.318c-.147-.294-.098-.588.06-.834.15-.233.4-.43.68-.596a6 6 0 0 1 1.122-.489q.454-.817.804-1.686a5.6 5.6 0 0 1-.326-.98c-.065-.303-.09-.603-.034-.86.056-.268.207-.509.492-.623l.055-.02a.75.75 0 0 1 .4-.038.53.53 0 0 1 .362.276c.066.124.09.27.096.407.005.142-.01.3-.036.465-.063.386-.204.859-.394 1.358q.316.672.742 1.277a4.5 4.5 0 0 1 1.01.038c.276.049.556.147.727.352a.64.64 0 0 1 .151.392.9.9 0 0 1-.104.426.8.8 0 0 1-.312.341.65.65 0 0 1-.342.078c-.25-.01-.495-.148-.706-.315l-.095-.081a4.3 4.3 0 0 1-.595-.638 9 9 0 0 0-1.512.307 8.6 8.6 0 0 1-.773 1.143c-.22.265-.46.496-.701.596a.6.6 0 0 1-.44.022" clip-rule="evenodd"/><path fill="currentColor" d="M10 1v3h3z"/></svg>',"file-pdf-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.42 12.713a.6.6 0 0 1-.332-.318c-.147-.294-.098-.588.06-.834.15-.233.4-.43.68-.596a6 6 0 0 1 1.122-.489q.454-.817.804-1.686a5.5 5.5 0 0 1-.326-.98c-.065-.303-.09-.603-.034-.86.056-.268.207-.509.492-.623.145-.058.303-.09.455-.058a.53.53 0 0 1 .362.276c.066.124.09.27.096.407.005.142-.01.3-.036.465-.063.386-.204.859-.394 1.358q.316.672.742 1.277a4.4 4.4 0 0 1 1.01.038c.276.049.556.147.727.352a.64.64 0 0 1 .151.392.9.9 0 0 1-.104.426.8.8 0 0 1-.268.315.65.65 0 0 1-.386.104c-.25-.01-.495-.148-.706-.315a4.3 4.3 0 0 1-.69-.72 9 9 0 0 0-1.512.308 8.6 8.6 0 0 1-.773 1.143c-.22.265-.46.496-.701.596a.6.6 0 0 1-.44.022m1.044-1.44a4 4 0 0 0-.348.18c-.248.148-.41.29-.49.415-.07.11-.072.19-.03.273l.02.034.027-.01c.103-.042.268-.177.48-.433q.18-.22.34-.458m1.242-1.006q.378-.09.764-.146a9 9 0 0 1-.386-.65 16 16 0 0 1-.378.796m2.18.65a3 3 0 0 1-.328-.309q.233.002.463.04c.24.043.352.112.392.159q.019.02.02.047a.3.3 0 0 1-.045.152.23.23 0 0 1-.071.094.1.1 0 0 1-.053.012c-.07-.003-.196-.05-.377-.194m-1.684-3.59q-.056.316-.15.625a3 3 0 0 1-.069-.26c-.057-.268-.065-.478-.034-.623.028-.134.082-.188.148-.214a.4.4 0 0 1 .11-.03.5.5 0 0 1 .024.15q.006.138-.029.351" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 1 1-1h6l3 3v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm7 .537V4h1.254zM12 14V5H9V2H4v12z" clip-rule="evenodd"/></svg>',"file-text":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zm2 2H5v1h6zM5 9h6v1H5zm6 2H5v1h6z" clip-rule="evenodd"/><path fill="currentColor" d="M10 4V1l3 3z"/></svg>',"file-text-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11 7H5v1h6zM5 9h6v1H5zm6 2H5v1h6z"/><path fill="currentColor" fill-rule="evenodd" d="m13 4-3-3H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1zm-3 0V2.415L11.585 4zM9 5h3v9H4V2h5z" clip-rule="evenodd"/></svg>',"file-upload":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.12 3.67 10.41.87a.63.63 0 0 0-.47-.2h-.17v3.66h3.54v-.17c0-.18-.06-.36-.19-.49m.19 11V5.25H9.55c-.37 0-.67-.31-.66-.68V.67H3.35a.68.68 0 0 0-.66.66v13.32c0 .37.29.67.66.68h9.3c.36-.01.65-.3.66-.66m-3-4.64H8.93c-.1 0-.19.07-.2.18v2.61c0 .1-.09.18-.19.18H6.91a.18.18 0 0 1-.18-.18V10.2c0-.1-.07-.19-.18-.2H5.19s-.09.01-.14 0a.19.19 0 0 1 0-.27L7.6 7.14c.07-.07.19-.07.26 0l2.54 2.54s.06.09.06.14c0 .1-.09.18-.19.18z"/></svg>',"file-word":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zM5 7l1.091 5h1.002L8 8.262 8.91 12h.98L11 7h-.93l-.701 3.492L8.568 7H7.47l-.836 3.435L5.944 7z" clip-rule="evenodd"/><path fill="currentColor" d="M10 4V1l3 3z"/></svg>',"file-word-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m5 7 1.091 5h1.002L8 8.262 8.91 12h.98L11 7h-.93l-.701 3.492L8.568 7H7.47l-.836 3.435L5.944 7z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4l-3-3zm6 3V2.537L11.254 4zm2 1v9H4V2h5v3z" clip-rule="evenodd"/></svg>',filter:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 0-1 1v1.586a1 1 0 0 0 .293.707L6 9v2.5a1 1 0 0 0 .4.8l2 1.5A1 1 0 0 0 10 13V9l3.707-3.707A1 1 0 0 0 14 4.586V3a1 1 0 0 0-1-1z" clip-rule="evenodd"/></svg>',"filter-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 3h10v1.586l-4 4V13l-2-1.5V8.586l-4-4zm3 7V9L2.293 5.293A1 1 0 0 1 2 4.586V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1.586a1 1 0 0 1-.293.707L10 9v4a1 1 0 0 1-1.6.8l-2-1.5a1 1 0 0 1-.4-.8z" clip-rule="evenodd"/></svg>',"floppy-disk":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 3a1 1 0 0 1 1-1h7.586a1 1 0 0 1 .707.293l2.414 2.414a1 1 0 0 1 .293.707V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm2 0h6v3H4zm4 5a2 2 0 1 0 0 4 2 2 0 0 0 0-4" clip-rule="evenodd"/></svg>',"floppy-disk-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M6 10a2 2 0 1 1 4 0 2 2 0 0 1-4 0m2 1a1 1 0 1 1 0-2 1 1 0 0 1 0 2" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M10.586 2a1 1 0 0 1 .707.293l2.414 2.414a1 1 0 0 1 .293.707V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zM3 3v10h10V5.414L10.586 3H10v3H4V3zm2 0h4v2H5z" clip-rule="evenodd"/></svg>',folder:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7 4h7c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h4z"/></svg>',"folder-check":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M14 4H7L6 3H2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1M5.705 8.185 7 9.48l3.295-3.295.705.705-4 4-2-2z" clip-rule="evenodd"/></svg>',"folder-check-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.705 8.185 7 9.48l3.295-3.295.705.705-4 4-2-2z"/><path fill="currentColor" fill-rule="evenodd" d="m6 3 1 1.001h7c.55 0 1 .45 1 1.001v6.997c0 .55-.45 1.001-1 1.001H2c-.55 0-1-.45-1-1.001V4.001C1 3.451 1.45 3 2 3zm-.41 1.001H2v8.008h12V5.002H6.59z" clip-rule="evenodd"/></svg>',"folder-lines":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4H7L6 3H2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1m-5 6H4V9h5zm3-2H4V7h8z"/></svg>',"folder-lines-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12 8.005H4V7.004h8zM9 9.006H4v1.001h5zM5.59 4.001H2v8.008h12V5.002H6.59l-.29-.29zM6 3l1 1.001h7c.55 0 1 .45 1 1.001v6.997c0 .55-.45 1.001-1 1.001H2c-.55 0-1-.45-1-1.001V4.001C1 3.451 1.45 3 2 3z"/></svg>',"folder-link":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4.44H8.46L6.62 2.67H2C1.27 2.67.68 3.27.67 4v8c0 .73.6 1.32 1.33 1.33h12c.73 0 1.32-.6 1.33-1.33V5.78c0-.73-.6-1.33-1.33-1.34m-6.82 6.88H5.65c-1.34 0-2.42-1.08-2.42-2.42s1.08-2.42 2.42-2.42h.84c.14 0 .25.11.25.25 0 .06-.02.13-.06.17-.2.21-.36.45-.49.71-.04.07-.11.13-.19.14h-.33c-.62-.15-1.24.22-1.39.84s.22 1.24.84 1.39c.15.04.31.04.47.02h1.58c.62 0 1.12-.48 1.15-1.1v-.22c-.02-.08 0-.16.06-.22.12-.13.29-.2.47-.2h.45c.12 0 .23.09.25.21.02.14.02.29 0 .43 0 1.32-1.05 2.39-2.37 2.42m3.17 0h-.84c-.06 0-.13-.02-.17-.07-.1-.1-.1-.25 0-.35.2-.21.36-.45.49-.71.02-.09.08-.16.17-.19h.36c.63.04 1.18-.43 1.23-1.07.04-.63-.43-1.18-1.07-1.23H8.83c-.64 0-1.15.51-1.15 1.15v.25c.02.08 0 .16-.06.22-.12.13-.29.21-.47.21H6.7c-.13 0-.24-.09-.26-.22-.01-.14-.01-.27 0-.41a2.41 2.41 0 0 1 2.38-2.43h1.52c1.34 0 2.42 1.07 2.43 2.41 0 1.34-1.09 2.42-2.42 2.43z"/></svg>',"folder-link-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.22 3.67 1.55 1.49.29.28h5.93c.19 0 .34.16.34.34v6.21c0 .18-.15.34-.33.34H2.01c-.18 0-.34-.15-.34-.33V4.01c0-.18.15-.34.33-.34zm.4-1H2C1.27 2.67.68 3.27.67 4v8c0 .73.6 1.32 1.33 1.33h12c.73 0 1.32-.6 1.33-1.33V5.78c0-.73-.6-1.33-1.33-1.34H8.46z"/><path fill="currentColor" d="M9.555 8.848a2.37 2.37 0 0 1-2.372 2.372l-1.486.006a2.366 2.366 0 0 1-2.37-2.37 2.38 2.38 0 0 1 2.376-2.377h.82c.135 0 .25.106.25.249q-.001.094-.062.17a3 3 0 0 0-.474.687.26.26 0 0 1-.223.143h-.286a1.13 1.13 0 0 0-1.165 1.086 1.123 1.123 0 0 0 1.082 1.163c.023.005.045 0 .063 0l1.481-.002A1.123 1.123 0 0 0 8.292 8.64a.25.25 0 0 1 .063-.214.62.62 0 0 1 .46-.201l.464-.001c.125 0 .223.089.245.21q.034.206.035.419zm3.11.001a2.365 2.365 0 0 0-2.371-2.37l-1.481.001a2.387 2.387 0 0 0-2.337 2.8c.022.12.125.205.245.21l.464-.001a.6.6 0 0 0 .46-.201.24.24 0 0 0 .063-.214 1.123 1.123 0 0 1 1.104-1.335l1.48-.002a1.12 1.12 0 0 1 1.15 1.096 1.13 1.13 0 0 1-1.099 1.152c-.022.004-.045 0-.062 0h-.286a.25.25 0 0 0-.223.143c-.125.25-.286.482-.474.688a.244.244 0 0 0 .013.352.24.24 0 0 0 .17.063l.82-.001a2.38 2.38 0 0 0 2.377-2.376z"/></svg>',"folder-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7 4.001 6 3H2c-.55 0-1 .45-1 1.001v7.998C1 12.549 1.45 13 2 13h12c.55 0 1-.45 1-1.001V5.002c0-.55-.45-1.001-1-1.001zm-5 0h3.59l1 1.001H14v7.007H2z" clip-rule="evenodd"/></svg>',"folder-star":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4.44H8.46L6.62 2.67H2A1.35 1.35 0 0 0 .67 4v8A1.35 1.35 0 0 0 2 13.33h12A1.35 1.35 0 0 0 15.33 12V5.78A1.36 1.36 0 0 0 14 4.44m-.2 3.89L12 9.66l.69 2a.22.22 0 0 1-.08.27.26.26 0 0 1-.13.06.4.4 0 0 1-.15-.06l-1.77-1.26L8.75 12a.34.34 0 0 1-.15 0 .3.3 0 0 1-.13 0 .23.23 0 0 1-.08-.27l.69-2-1.81-1.35a.23.23 0 0 1-.1-.17.24.24 0 0 1 .24-.24h2.21l.67-2a.26.26 0 0 1 .243-.156.24.24 0 0 1 .217.156l.67 2h2.2a.26.26 0 0 1 .26.24.3.3 0 0 1-.08.12"/></svg>',folders:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 3h4c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1h-1V8a2 2 0 0 0-2-2H6.414l-1-1H5V3c0-.55.45-1 1-1h2z"/><path fill="currentColor" d="M10 7a1 1 0 0 1 1 1v5c0 .55-.45 1-1 1H3c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1h2l1 1z"/></svg>',"folders-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 3 8 2H6c-.55 0-1 .45-1 1v2h1V3h1.59l1 1H13v5.01h-1V10h1c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z"/><path fill="currentColor" fill-rule="evenodd" d="m5 6 1 1h4c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1H3c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1zm-.41 1H3v6.01h7V8H5.59z" clip-rule="evenodd"/></svg>',gavel:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.908 5.012a.59.59 0 0 0 .59 1.02l.138-.08.59 1.02-5.892 3.402a.59.59 0 0 0 .589 1.02l5.892-3.4.589 1.02-.14.08a.59.59 0 0 0 .59 1.02l3.31-1.91a.59.59 0 0 0-.59-1.02l-.139.08-1.768-3.062.14-.08a.59.59 0 0 0-.59-1.021zm3.631 7.01a.5.5 0 1 0 0 1h5a.5.5 0 0 0 0-1z"/></svg>',"gavel-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.869 4.99a.59.59 0 0 0 .59 1.02l.138-.08.59 1.02-5.892 3.402a.59.59 0 1 0 .589 1.02l5.892-3.4.59 1.02-.14.08a.59.59 0 0 0 .589 1.02l3.31-1.91a.59.59 0 0 0-.59-1.02l-.139.08L9.628 4.18l.14-.08a.59.59 0 0 0-.59-1.021zm1.594.44 1.3-.75 1.767 3.062-1.299.75z" clip-rule="evenodd"/><path fill="currentColor" d="M9.5 12a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1z"/></svg>',"graduation-cap":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m1 6 7-3 7 3v5h-1V6.429L8 9z"/><path fill="currentColor" d="M3 7.945V11l5 2 5-2V7.945l-5 2.143z"/></svg>',"graduation-cap-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m1 6 2 .857V11l5 2 5-2V6.857l1-.428V11h1V6L8 3zm3 4.323V7.286L8 9l4-1.714v3.037l-4 1.6zM3.539 6 8 7.912 12.461 6 8 4.088z" clip-rule="evenodd"/></svg>',"hand-euro":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.91 7.11c-.581.55-1.362.89-2.213.89h-.01c-1.357 0-2.527-.86-3.043-2.09H8v-1h1.385a4 4 0 0 1-.02-.554l.002-.043q.005-.113.017-.223H8v-1h1.642C10.156 1.86 11.322 1 12.687 1c.901 0 1.712.37 2.313.98l-.711.71c-.42-.43-.991-.69-1.602-.69-.774 0-1.492.422-1.92 1.09h1.239v1h-1.612a2.7 2.7 0 0 0 0 .82h1.612v1h-1.241C11.19 6.578 11.907 7 12.687 7c.57 0 1.101-.22 1.512-.6zM3 7H1v7h2zm9.81 4.5h-2.06c-.09.18-.2.34-.35.49-.37.37-.87.58-1.39.58s-1.02-.2-1.39-.58l-1.04-1.04c-.2-.2-.2-.51 0-.71s.51-.2.71 0l1.04 1.04c.36.36 1 .37 1.36 0 .18-.18.28-.42.28-.68s-.1-.5-.28-.68L8.44 8.67c-.2-.2-.44-.36-.71-.48-.3-.12-.62-.18-.94-.18h-2.8v4.8h.02l.29-.02 1.94 1.63c.45.38 1.02.58 1.6.58h5.81c.74 0 1.33-.6 1.33-1.33 0-1.2-.97-2.17-2.17-2.17"/></svg>',"hand-euro-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.91 7.11c-.581.55-1.362.89-2.213.89h-.01c-1.357 0-2.527-.86-3.043-2.09H8v-1h1.385a3.7 3.7 0 0 1 0-.82H8v-1h1.642C10.156 1.86 11.322 1 12.687 1c.901 0 1.712.37 2.313.98l-.711.71c-.42-.43-.991-.69-1.602-.69-.774 0-1.492.422-1.92 1.09h1.239v1h-1.612a2.7 2.7 0 0 0 0 .82h1.612v1h-1.241C11.19 6.578 11.907 7 12.687 7c.57 0 1.101-.22 1.512-.6z"/><path fill="currentColor" fill-rule="evenodd" d="M1 7h3v1h2.798a2.5 2.5 0 0 1 1.77.731L9.73 9.896a1.56 1.56 0 0 1 .376 1.603h2.726c1.197 0 2.167.971 2.167 2.167 0 .737-.599 1.333-1.334 1.333H7.852a2.5 2.5 0 0 1-1.599-.578L4 12.566V14H1zm1 1h1v5H2zm2 1v2.27l2.892 2.382c.27.224.61.347.96.347h5.814c.185 0 .334-.15.334-.333 0-.644-.522-1.167-1.167-1.167h-3.77a1.56 1.56 0 0 1-1.539-.395l-.75-.75a.5.5 0 1 1 .707-.707l.75.75a.56.56 0 0 0 .397.164h.021a.56.56 0 0 0 .375-.957L7.861 9.439A1.5 1.5 0 0 0 6.799 9z" clip-rule="evenodd"/></svg>',"hand-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.75 3.5c-.41 0-.75.34-.75.75v3.5c0 .14-.11.25-.25.25s-.25-.11-.25-.25v-4c0-.41-.34-.75-.75-.75s-.75.34-.75.75v4c0 .14-.11.25-.25.25s-.25-.11-.25-.25v-5c0-.41-.34-.75-.75-.75S8 2.34 8 2.75v5c0 .14-.11.25-.25.25s-.25-.11-.25-.25v-4c0-.41-.34-.75-.75-.75S6 3.34 6 3.75V11L3.97 9.54a.845.845 0 0 0-1.21 0c-.33.34-.34.88 0 1.21l2.22 2.22c.66.66 1.55 1.03 2.47 1.03H11a2.5 2.5 0 0 0 2.5-2.5V4.25c0-.41-.34-.75-.75-.75"/></svg>',history:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.975 3.82.002-.001-.083-.09-.063-.066-.009-.01-.001-.002a6 6 0 0 0-.272-.29q-.076-.074-.157-.144l-.058-.052-.004-.003a6 6 0 0 0-.275-.237 6 6 0 0 0-.22-.166l-.024-.018a7 7 0 0 0-.293-.203 7 7 0 0 0-.859-.467 7 7 0 0 0-.339-.14l-.03-.011a6 6 0 0 0-.255-.093 7 7 0 0 0-.376-.108L9.592 1.7a4 4 0 0 0-.652-.128l-.092-.015q-.072-.013-.146-.022A6.47 6.47 0 0 0 3 3.847V1.996H2v4h4v-1H3.406a5.48 5.48 0 0 1 5.189-2.467q.061.008.124.019l.077.012q.188.025.373.064.088.02.173.044l.063.017q.16.041.317.09.115.04.227.084l.016.006a6 6 0 0 1 .523.232 5.4 5.4 0 0 1 .736.452l.03.022q.09.066.178.134.12.098.235.204l.05.044a4 4 0 0 1 .36.364l.012.013A5.496 5.496 0 1 1 2.5 7.996h-1A6.5 6.5 0 1 0 12.975 3.82"/><path fill="currentColor" d="M10.088 11.746 7.293 8.95V4.246h1v4.29l2.5 2.505z"/></svg>',home:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m13.55 5.5-5-3.33C8.38 2.06 8.19 2 7.99 2s-.39.06-.56.17L2.45 5.5c-.28.19-.45.5-.45.83v6.66c0 .55.45 1 1 1h4V12c0-.56.45-1.01 1-1.01s1 .45 1 1.01v1.99h4c.55 0 1-.45 1-1V6.33c0-.33-.17-.65-.45-.83"/></svg>',"home-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m13.55 5.5-5-3.33C8.38 2.06 8.19 2 7.99 2s-.39.06-.56.17L2.45 5.5c-.28.19-.45.5-.45.83v6.66c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V6.33c0-.33-.17-.65-.45-.83m-.56 7.5h-4v-1c0-.55-.45-1-1-1s-1 .45-1 1v1H3V6.33L8 3l5 3.33V13z"/></svg>',"info-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-7.75 4V7h1.5v5zm0-8v1.5h1.5V4z" clip-rule="evenodd"/></svg>',"info-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.25 12V7h1.5v5zm0-8v1.5h1.5V4z"/><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m6-7A6 6 0 1 0 2 8a6 6 0 0 0 12 0" clip-rule="evenodd"/></svg>',"interrogation-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15.039 8.146a7 7 0 1 1-14 0 7 7 0 0 1 14 0m-6.974-.5a1 1 0 1 0-.942-1.335l-1.43-.458A2.501 2.501 0 1 1 8.79 9.04v.606h-1.5v-2zm-.026 3a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5" clip-rule="evenodd"/></svg>',"interrogation-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.824 7.646a1 1 0 1 0-.943-1.335l-1.429-.458A2.501 2.501 0 1 1 8.548 9.04v.606h-1.5v-2zm-.776 3.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0"/><path fill="currentColor" fill-rule="evenodd" d="M7.798 15.146a7 7 0 1 0 0-14 7 7 0 0 0 0 14m0-1a6 6 0 1 0 0-12 6 6 0 0 0 0 12" clip-rule="evenodd"/></svg>',key:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.44 6.67a3.994 3.994 0 0 0-5.1-2.44A3.986 3.986 0 0 0 .9 9.33 3.994 3.994 0 0 0 6 11.77c1.14-.4 2.04-1.3 2.44-2.44h2.89V12H14V9.33h1.33V6.67zM4.67 9.33c-.73 0-1.33-.6-1.33-1.33s.6-1.33 1.33-1.33S6 7.27 6 8s-.58 1.32-1.31 1.33z"/></svg>',laptop:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.5 5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z"/><path fill="currentColor" fill-rule="evenodd" d="M3 3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1H1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1h-2a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm10 1H3v7h10z" clip-rule="evenodd"/></svg>',layers:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.763 8.94a.5.5 0 0 0 .474 0l6.5-3.5a.5.5 0 0 0 0-.88l-6.5-3.5a.5.5 0 0 0-.474 0l-6.5 3.5a.5.5 0 0 0 0 .88zM8 7.932 2.555 5 8 2.068 13.445 5zM8 12a.5.5 0 0 1-.237-.06l-6.5-3.5.474-.88L8 10.932l6.263-3.372.474.88-6.5 3.5A.5.5 0 0 1 8 12m0 3a.5.5 0 0 1-.237-.06l-6.5-3.5.474-.88L8 13.932l6.263-3.372.474.88-6.5 3.5A.5.5 0 0 1 8 15" clip-rule="evenodd"/></svg>',"life-ring":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15a6.97 6.97 0 0 0 4.192-1.394 7 7 0 0 0 1.315-1.284A6.97 6.97 0 0 0 15 8a6.97 6.97 0 0 0-1.394-4.192 7 7 0 0 0-1.414-1.414A6.97 6.97 0 0 0 8 1a6.97 6.97 0 0 0-4.192 1.394 7 7 0 0 0-1.414 1.414A6.97 6.97 0 0 0 1 8a6.97 6.97 0 0 0 1.394 4.192c.368.493.8.935 1.284 1.315A6.97 6.97 0 0 0 8 15m3.446-4.968 1.445 1.444a6 6 0 0 1-1.415 1.415l-1.444-1.445a4 4 0 0 0 1.414-1.414m-6.892 0a4 4 0 0 0 1.414 1.414l-1.445 1.445a6 6 0 0 1-1.414-1.415zm1.414-5.478a4 4 0 0 0-1.414 1.414L3.109 4.523A6 6 0 0 1 4.523 3.11zm5.509-1.445-1.445 1.445a4 4 0 0 1 1.414 1.414l1.445-1.445a6 6 0 0 0-1.415-1.414M8 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6" clip-rule="evenodd"/></svg>',"lines-rectangle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm2 4h6v1H5zm4 3H5v1h4z" clip-rule="evenodd"/></svg>',"lines-rectangle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5 6h6v1H5zm4 3H5v1h4z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm8 1H4v12h8z" clip-rule="evenodd"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13.65 2.727a3 3 0 0 1 .975.653 3 3 0 0 1 .01 4.24l-4 4a3 3 0 0 1-2.135.88 3 3 0 0 1-2.125-.865 3 3 0 0 1 0-4.25l.71-.71.705.71-.705.71a2.003 2.003 0 1 0 2.835 2.83l4-4a2.006 2.006 0 0 0-.65-3.27 2.005 2.005 0 0 0-2.185.435l-.71-.71a3 3 0 0 1 3.275-.653M1.66 11.76a2 2 0 0 0 .435.65 2 2 0 0 0 2.835 0l.71.71A3.04 3.04 0 0 1 3.5 14a3 3 0 0 1-2.13-.85 3 3 0 0 1 0-4.255l4-4A3.009 3.009 0 0 1 9.625 9.15l-1.06 1.06-.71-.71 1.06-1.075A2 2 0 0 0 9.5 7a1.97 1.97 0 0 0-1.22-1.86 2 2 0 0 0-2.185.435l-4 4a2 2 0 0 0-.436 2.185" clip-rule="evenodd"/></svg>',list:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 3h9v1H5zm0 9h9v1H5zm9-4.5H5v1h9zm-12 0h1v1H2zM3 3H2v1h1zm-1 9h1v1H2z" clip-rule="evenodd"/></svg>',loader:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-opacity=".2" d="M13.657 8A5.657 5.657 0 1 1 2.343 8a5.657 5.657 0 0 1 11.314 0M3.475 8a4.526 4.526 0 1 0 9.05 0 4.526 4.526 0 0 0-9.05 0"/><path fill="currentColor" d="M2.343 8A5.657 5.657 0 0 1 8 2.343v1.132A4.525 4.525 0 0 0 3.475 8z"/></svg>',location:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 14.997c2.5-2.5 5-6.236 5-8.997A5 5 0 0 0 3 6c0 2.761 2.5 6.496 5 8.997m0-7.499a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" clip-rule="evenodd"/></svg>',"location-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 6.002a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M13 6.002c0 2.506-2.06 5.814-4.309 8.273q-.344.376-.691.723a23 23 0 0 1-.691-.723C5.059 11.816 3 8.508 3 6.002a5 5 0 0 1 10 0m-1 0c0 1.116-.52 2.554-1.424 4.088A21.5 21.5 0 0 1 8 13.55a21.5 21.5 0 0 1-2.576-3.459C4.52 8.556 4 7.118 4 6.002a4 4 0 1 1 8 0" clip-rule="evenodd"/></svg>',lock:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 4v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-6 0m5 3V4a2 2 0 1 0-4 0v3zm-2 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2" clip-rule="evenodd"/></svg>',"lock-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 10a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path fill="currentColor" fill-rule="evenodd" d="M5 4v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-6 0m5 3V4a2 2 0 1 0-4 0v3zm2 1v6H4V8z" clip-rule="evenodd"/></svg>',"log-in":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 13v1h5a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H8v1h5v10z"/><path fill="currentColor" d="m9.086 8.5-1.793 1.793L8 11l3-3-3-3-.707.707L9.086 7.5H2v1z"/></svg>',"log-out":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.086 8.5-1.793 1.793L11 11l3-3-3-3-.707.707L12.086 7.5H5v1z"/><path fill="currentColor" d="M8 3V2H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h5v-1H3V3z"/></svg>',"magnifying-glass":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 7a5 5 0 1 1 8.872 3.164l3.127 3.128-.707.707-3.128-3.128A5 5 0 0 1 2 7m5 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8" clip-rule="evenodd"/></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M1.007 4.002v8.011a1 1 0 0 0 1 1h11.997a1 1 0 0 0 1-1V4l-7 5z"/><path fill="currentColor" d="m1.52 3.14 6.484 4.63 6.485-4.632a1 1 0 0 0-.486-.126H2.008a1 1 0 0 0-.487.127"/></svg>',"mail-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 3.999v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-8A1 1 0 0 0 14.001 3H2a1 1 0 0 0-1 .999m13 .713-6 4.28-6-4.28V12h12zM2.724 4 8 7.764 13.276 4z" clip-rule="evenodd"/></svg>',"messages-square":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 10v1.017a1 1 0 0 1-1.006 1L8 12l-4 2v-1.978H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1zm1-6H5v1h6a1 1 0 0 1 1 1v3h1zm-3 3H4v1h6zM4 9h3v1H4z" clip-rule="evenodd"/></svg>',"messages-square-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 7h6v1H4zm0 2h3v1H4z"/><path fill="currentColor" fill-rule="evenodd" d="M12 10v1.017a1 1 0 0 1-1.006 1L8 12l-4 2v-1.978H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1zm1-6H5v1h6a1 1 0 0 1 1 1v3h1zm-5.233 6.999L5 12.382v-1.36H3V6h8v5.017z" clip-rule="evenodd"/></svg>',mobile:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm4 10a1 1 0 1 1 2 0 1 1 0 0 1-2 0M6 3.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5" clip-rule="evenodd"/></svg>',"mobile-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0M6 3.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm8 1H4v12h8z" clip-rule="evenodd"/></svg>',notes:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13 4h-1V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h1v1a1 1 0 0 0 1 1h5v-4h4V5a1 1 0 0 0-1-1M3 3h8v1H5a1 1 0 0 0-1 1v6H3zm9 4H6v1h6zM6 9h3v1H6z" clip-rule="evenodd"/><path fill="currentColor" d="m11 14 3-3h-3z"/></svg>',"notes-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12 7H6v1h6zM9 9H6v1h3z"/><path fill="currentColor" fill-rule="evenodd" d="M13 4h-1V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h1v1a1 1 0 0 0 1 1h6l3-3V5a1 1 0 0 0-1-1M3 3h8v1H5a1 1 0 0 0-1 1v6H3zm10 2H5v8h5v-3h3zm-.414 6L11 12.586V11z" clip-rule="evenodd"/></svg>',"paper-plane":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.855 2.145a.5.5 0 0 0-.525-.115l-11 4a.5.5 0 0 0 0 .935L6.625 8.68l3.17-3.18.705.705L7.315 9.39l1.72 4.295A.5.5 0 0 0 9.5 14a.5.5 0 0 0 .46-.33l4-11a.5.5 0 0 0-.105-.525"/></svg>',"paper-plane-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.855 2.145a.5.5 0 0 0-.525-.115l-11 4a.5.5 0 0 0 0 .935l4.8 1.92 1.92 4.8A.5.5 0 0 0 9.5 14a.5.5 0 0 0 .46-.33l4-11a.5.5 0 0 0-.105-.525M9.5 12.1 8.105 8.6 10.5 6.205 9.795 5.5 7.38 7.915 3.9 6.5l8.765-3.165z"/></svg>',"paper-plane-slash":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1.705 1 15 14.295l-.7.705-4-4-1.34 3.67a.5.5 0 0 1-.46.33.5.5 0 0 1-.465-.315l-1.72-4.295L8 8.705 7.295 8l-1.67 1.68L1.33 7.965a.5.5 0 0 1 0-.935L5 5.705l-4-4zM12.97 3.67l-1.725 4.745-3.66-3.66L12.33 3.03a.5.5 0 0 1 .64.64" clip-rule="evenodd"/></svg>',"paper-plane-slash-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1.705 1 15 14.295l-.7.705-4-4-1.34 3.67a.5.5 0 0 1-.46.33.5.5 0 0 1-.45-.315l-1.92-4.8-4.8-1.92a.5.5 0 0 1 0-.935L5 5.705l-4-4zM5.77 6.5l-2.87 1 3.48 1.415L7.295 8zm1.335 3.1L8.5 13.1l1-2.87L8 8.705zm4.56-5.265-3.82 1.39-.78-.78L12.33 3.03a.5.5 0 0 1 .64.64l-1.915 5.265-.78-.78z" clip-rule="evenodd"/></svg>',paperclip:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.57 12.358 6.09-6.09a1.035 1.035 0 1 0-1.465-1.463l-5.32 5.32-.733-.731 5.321-5.321A2.07 2.07 0 1 1 13.391 7l-5.339 5.34-.006.006-.744.744A3.106 3.106 0 0 1 2.91 8.698L9.608 2l.732.732L3.642 9.43a2.07 2.07 0 1 0 2.928 2.928"/></svg>',pen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10.88 2.293a1 1 0 0 1 1.415 0l1.414 1.414a1 1 0 0 1 0 1.414l-1.414 1.415-2.828-2.829zm.705 4.953L8.756 4.417 2 11.174l.003 2.825 2.825.003z"/></svg>',"pen-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m-3.692-3.307v-1.54l4.538-4.539 1.54 1.54-4.538 4.539zm7.268-6.312a.42.42 0 0 1 0 .583l-.753.753-1.54-1.54.747-.753a.42.42 0 0 1 .583 0z" clip-rule="evenodd"/></svg>',"pen-fancy":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.63 8.65c-.24.07-.43.26-.5.5l-1.46 4.37.11.12 2.3-2.3v-.19c0-.44.35-.8.79-.81.44 0 .8.35.81.79 0 .44-.35.8-.79.81h-.21l-2.3 2.3.12.11 4.37-1.46c.24-.07.43-.26.5-.5l.82-2.08L5.7 7.83zm7.17-6.3L6.27 7.28 8.69 9.7l4.94-4.52c2.1-1.86-.99-4.92-2.83-2.83"/></svg>',"pen-fancy-files-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 2H6v10h6V8.946l.023-.058.085-.078.892-.813V12a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v.112a2.3 2.3 0 0 0-.974.66L12 2.8zm1 4.643-1 .913-.566.515-1.528-1.524L12 4.275l.767-.832q.113-.127.233-.215c1.167-.857 2.797.9 1.555 1.997zM4 3H3v11.5a.5.5 0 0 0 .5.5H11v-1H4zm4.238 4.41a.47.47 0 0 0-.316.315L7 10.477l.07.076 1.452-1.449v-.12a.51.51 0 0 1 .5-.51.51.51 0 0 1 .511.498.51.51 0 0 1-.499.51h-.133L7.45 10.931l.075.069 2.76-.92a.47.47 0 0 0 .317-.314l.518-1.31-1.573-1.562z" clip-rule="evenodd"/></svg>',"pen-fancy-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.24 1.67c-.49 0-1 .21-1.44.7L6.27 7.3l2.42 2.42 4.94-4.52c1.6-1.42.19-3.53-1.39-3.53M8.72 8.34 7.66 7.28l3.9-4.24c.22-.24.44-.36.69-.36.41 0 .87.34 1.03.78.14.37.04.7-.32 1.02L8.73 8.36zM5.7 7.86l-2.08.82c-.24.08-.42.26-.5.5l-1.46 4.37.12.12.56.56.12.12 4.37-1.46c.24-.08.42-.26.5-.5l.81-2.08L5.7 7.87zm-2.57 4.46L4 9.72c.03-.08.09-.15.17-.18l1.29-.51 1.52 1.52-.5 1.29c-.03.08-.1.15-.19.18l-2.6.87.95-.95c.06.02.12.04.19.04.44 0 .79-.35.79-.79s-.35-.79-.79-.79-.79.35-.79.79c0 .07.02.13.04.19l-.95.95z"/></svg>',"pen-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.295 2.293a1 1 0 0 0-1.414 0L9.467 3.707l2.828 2.829 1.414-1.415a1 1 0 0 0 0-1.414z"/><path fill="currentColor" fill-rule="evenodd" d="m2.003 13.999 2.825.003 6.757-6.756-2.829-2.829L2 11.174zM3 11.587l5.756-5.755 1.414 1.414-5.755 5.756L3.002 13z" clip-rule="evenodd"/></svg>',phone:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m10 10.53 1.034-1.035a1.01 1.01 0 0 1 1.08-.221l1.259.503A1.01 1.01 0 0 1 14 10.7v2.308a1 1 0 0 1-1.052.992C4.124 13.45 2.343 5.974 2.006 3.112A1.002 1.002 0 0 1 3.007 2h2.228a1 1 0 0 1 .923.628l.503 1.26a1 1 0 0 1-.217 1.08L5.41 6.002s.595 4.029 4.59 4.527"/></svg>',"phone-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.62 14h-.079C3.472 13.479 2.184 5.826 2.004 3.49A1.384 1.384 0 0 1 3.278 2h2.543a.92.92 0 0 1 .859.582l.701 1.726a.92.92 0 0 1-.203.997l-.983.992a4.325 4.325 0 0 0 3.499 3.508l1.001-.993a.92.92 0 0 1 1.002-.189l1.74.697a.92.92 0 0 1 .567.858v2.437A1.385 1.385 0 0 1 12.62 14M3.389 2.923a.46.46 0 0 0-.462.462v.037c.213 2.732 1.574 9.193 9.665 9.655a.46.46 0 0 0 .49-.434v-2.465l-1.74-.696-1.325 1.315-.222-.028c-4.015-.503-4.56-4.518-4.56-4.56l-.028-.221 1.311-1.325-.692-1.74z"/></svg>',picture:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M14 3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1zM4 5a1 1 0 1 0 2 0 1 1 0 0 0-2 0m7.134 2.514L13 10.023V13H3v-2.494l.896-1.064c.203-.242.305-.362.425-.408a.5.5 0 0 1 .358 0c.12.046.222.166.425.408l1.767 2.098 2.995-4.026c.21-.282.316-.423.444-.476a.5.5 0 0 1 .38 0c.129.053.234.194.444.476" clip-rule="evenodd"/></svg>',"picture-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2"/><path fill="currentColor" fill-rule="evenodd" d="M14 13a1 1 0 0 1-1 1H2h.994A1 1 0 0 1 2 13V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1zM3 3h10v5.315l-1.069-1.43a6 6 0 0 0-.29-.368 1.5 1.5 0 0 0-.555-.41 1.5 1.5 0 0 0-1.14-.001c-.27.11-.448.288-.556.408-.098.11-.2.246-.291.366L6.822 9.911l-.974-1.14a5 5 0 0 0-.283-.314 1.5 1.5 0 0 0-.53-.353 1.5 1.5 0 0 0-1.064 0c-.248.094-.42.245-.529.352a5 5 0 0 0-.283.314L3 8.956zm0 10v-2.506l.903-1.055c.202-.237.303-.355.423-.4a.5.5 0 0 1 .355 0c.12.045.22.164.422.4l1.769 2.07 3.01-4.006c.21-.28.315-.42.443-.472a.5.5 0 0 1 .38 0c.127.053.232.193.441.474L13 9.985V13z" clip-rule="evenodd"/></svg>',"play-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m3.724 7.447-6 3A.5.5 0 0 1 5 11V5a.5.5 0 0 1 .724-.447l6 3a.5.5 0 0 1 0 .894"/></svg>',plus:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 2H7v5H2v2h5v5h2V9h5V7H9z"/></svg>',"plus-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M7 7V4h2v3h3v2H9v3H7V9H4V7z" clip-rule="evenodd"/></svg>',share:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4.5a2.5 2.5 0 0 1-4.467 1.543L6.915 7.35a2.5 2.5 0 0 1 0 1.298l2.618 1.308a2.5 2.5 0 1 1-.448.894L6.467 9.544a2.5 2.5 0 1 1 0-3.085l2.618-1.31A2.503 2.503 0 0 1 11.5 2 2.5 2.5 0 0 1 14 4.5"/></svg>',"share-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m1 0a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0M6 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m.623 1.32a2.5 2.5 0 1 1-.156-2.863L9.085 5.15c.088.33.243.633.448.894L6.915 7.35a2.5 2.5 0 0 1 0 1.298l2.618 1.308a2.5 2.5 0 1 1-.448.894L6.467 9.544q.084-.107.156-.223M11.5 13a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" clip-rule="evenodd"/></svg>',shuffle:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m11.295 9.705 1.79 1.795h-3.31L7.59 8l2.185-3.5h3.31l-1.79 1.795L12 7l3-3-3-3-.705.705 1.79 1.795h-3.31a1 1 0 0 0-.845.47L7 7.055 5.07 3.97a1 1 0 0 0-.845-.47H1v1h3.225L6.41 8l-2.185 3.5H1v1h3.225a1 1 0 0 0 .845-.47L7 8.945l1.93 3.085a1 1 0 0 0 .845.47h3.31l-1.79 1.795L12 15l3-3-3-3z"/></svg>',sitemap:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.33 10h-2c-.37 0-.66.3-.66.67v2c0 .36.3.65.66.66h2c.37 0 .66-.29.67-.66v-2c0-.37-.3-.67-.67-.67m-.5-1.67H7.5v1h1v-1h4.67v1h1v-1.2c0-.44-.36-.8-.8-.8H8.5V6h.83c.37 0 .67-.3.67-.67v-2c0-.37-.3-.66-.67-.66H6.67c-.37 0-.66.29-.67.66v2c0 .37.3.67.67.67h.83v1.33H2.63c-.44 0-.8.36-.8.8v1.2h1zM9 10H7c-.37 0-.67.3-.67.67v2c0 .37.3.66.67.66h2c.37 0 .66-.29.67-.66v-2c0-.37-.3-.67-.67-.67m5.67 0h-2c-.37 0-.67.3-.67.67v2c0 .37.3.66.67.66h2c.36 0 .65-.3.66-.66v-2c0-.37-.29-.66-.66-.67"/></svg>',sliders:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.95 4H15v1h-2.05v.002a2.5 2.5 0 0 1-2.672 1.988A2.52 2.52 0 0 1 8.05 5.002V5H1V4h7.05v-.002a2.5 2.5 0 0 1 2.672-1.988 2.52 2.52 0 0 1 2.228 1.988zm-9.9 8H1v-1h2.05v-.002A2.52 2.52 0 0 1 5.5 9a2.5 2.5 0 0 1 2.45 1.999V11H15v1H7.95v.002A2.52 2.52 0 0 1 5.5 14a2.5 2.5 0 0 1-2.45-1.998z"/></svg>',"sliders-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12.95 4H15v1h-2.05c-.25 1.15-1.25 2-2.45 2s-2.2-.85-2.45-2H1V4h7.05C8.3 2.85 9.3 2 10.5 2s2.2.85 2.45 2M9 4.5c0 .85.65 1.5 1.5 1.5S12 5.35 12 4.5 11.35 3 10.5 3 9 3.65 9 4.5M3.05 12H1v-1h2.05C3.3 9.85 4.3 9 5.5 9s2.2.85 2.45 2H15v1H7.95c-.25 1.15-1.25 2-2.45 2s-2.2-.85-2.45-2M7 11.5c0-.85-.65-1.5-1.5-1.5S4 10.65 4 11.5 4.65 13 5.5 13 7 12.35 7 11.5" clip-rule="evenodd"/></svg>',squares:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 3a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm7 0a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1zm0 7a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1zm-7 0a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z"/></svg>',star:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" stroke="currentColor" d="m8 2.472 1.715 3.475.116.235.26.038 3.835.557-2.775 2.705-.188.183.044.26.655 3.818-3.43-1.803L8 11.818l-.233.122-3.43 1.803.656-3.818.044-.26-.188-.183-2.775-2.705L5.91 6.22l.26-.038.116-.235z"/></svg>',"star-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" d="m8 2.472 1.715 3.475.116.235.26.038 3.835.557-2.775 2.705-.188.183.044.26.655 3.818-3.43-1.803L8 11.818l-.233.122-3.43 1.803.656-3.818.044-.26-.188-.183-2.775-2.705L5.91 6.22l.26-.038.116-.235z"/></svg>',table:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 13a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1zm1-3v3h3v-3zm4 0v3h6v-3zm6-1H7V6h6zM6 9H3V6h3zM3 5V3h10v2z" clip-rule="evenodd"/></svg>',tag:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 7.43c0 .275.11.538.303.732l5.535 5.535c.404.404 1.06.404 1.464 0l4.395-4.395a1.036 1.036 0 0 0 0-1.464L8.162 2.303A1.04 1.04 0 0 0 7.43 2H3.036C2.464 2 2 2.464 2 3.036zM5.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" clip-rule="evenodd"/></svg>',"tag-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M2 7.43c0 .275.11.538.303.732l5.535 5.535c.404.404 1.06.404 1.464 0l4.395-4.395a1.036 1.036 0 0 0 0-1.464L8.162 2.303A1.04 1.04 0 0 0 7.43 2H3.036C2.464 2 2 2.464 2 3.036zm1 0q0 .016.01.025l5.535 5.534a.036.036 0 0 0 .05 0l4.394-4.394a.036.036 0 0 0 0-.05L7.456 3.01A.04.04 0 0 0 7.43 3H3.036A.036.036 0 0 0 3 3.036z" clip-rule="evenodd"/></svg>',tags:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.855 6.645 8.5 1.295A1 1 0 0 0 7.795 1H4a1 1 0 0 0-1 1v1h1V2h3.795l5 5-.65.645.71.71 1-1a.5.5 0 0 0 0-.71"/><path fill="currentColor" fill-rule="evenodd" d="M2 8.978c0 .251.1.493.278.67l5.073 5.074a.95.95 0 0 0 1.343 0l4.028-4.028a.95.95 0 0 0 0-1.343L7.649 4.278A.95.95 0 0 0 6.978 4H2.949A.95.95 0 0 0 2 4.95zM5.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" clip-rule="evenodd"/></svg>',"tags-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m8.5 1.295 5.355 5.35a.5.5 0 0 1 0 .71l-1 1-.71-.71.65-.645-5-5H4v1H3V2a1 1 0 0 1 1-1h3.795a1 1 0 0 1 .705.295"/><path fill="currentColor" fill-rule="evenodd" d="M5.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M2.278 9.649A.95.95 0 0 1 2 8.978V4.949A.95.95 0 0 1 2.95 4h4.028c.251 0 .493.1.67.278l5.074 5.073a.95.95 0 0 1 0 1.343l-4.028 4.028a.95.95 0 0 1-1.343 0zm5.744 4.33L3 8.957V5h3.957l5.022 5.022z" clip-rule="evenodd"/></svg>',"thumb-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11.202 11.934a1.506 1.506 0 0 1-2.438 1.651L5.5 10.461v-8.46h4.922c1.081 0 2.058.714 2.484 1.817l.944 3.394c.51 1.32-.362 2.788-1.656 2.788h-1.772zM4.5 10H2V2h2.5z"/></svg>',"thumb-down-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M11.204 11.934 10.424 10h1.772c1.294 0 2.166-1.468 1.656-2.788l-.944-3.394C12.484 2.715 11.507 2 10.426 2H5v.003H2v8h3.023l3.744 3.582a1.506 1.506 0 0 0 2.437-1.651m.755-7.797C11.657 3.4 11.033 3 10.425 3H6.002l.017 6.572 3.439 3.29a.506.506 0 0 0 .819-.554L8.943 9h3.253c.24 0 .48-.131.645-.41.167-.28.218-.657.079-1.018l-.018-.045zM3 9.003h2v-6H3z" clip-rule="evenodd"/></svg>',"thumb-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11.202 4.069a1.506 1.506 0 0 0-2.438-1.651L5.5 5.542v8.46h4.922c1.081 0 2.058-.714 2.484-1.817l.944-3.394c.51-1.32-.362-2.788-1.656-2.788h-1.772zM4.5 6.003H2v8h2.5z"/></svg>',"thumb-up-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m11.204 4.069-.78 1.934h1.772c1.294 0 2.166 1.468 1.656 2.788l-.944 3.394c-.425 1.103-1.402 1.818-2.483 1.818H5V14H2V6h3.023l3.744-3.582a1.506 1.506 0 0 1 2.437 1.65m.755 7.797c-.302.738-.926 1.137-1.534 1.137H6.002L6.02 6.43l3.439-3.29a.506.506 0 0 1 .819.554L8.943 7.003h3.253c.24 0 .48.13.645.41.167.28.218.657.079 1.018l-.018.045zM3 7h2v6H3z" clip-rule="evenodd"/></svg>',thumbtack:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m8.91 2-1.2 3.594L2.364 7.09 5.274 10l-.707.706-1.687 1.687-.264.264-.09.09-.209.498L2 14l.755-.317.498-.21.09-.089.264-.264 1.687-1.687.706-.706 2.91 2.908 1.496-5.347L14 7.09z" clip-rule="evenodd"/></svg>',"thumbtack-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m5.273 10-2.91 2.91L2 14l1.09-.364L6 10.727l2.91 2.91 1.496-5.348L14 7.09 8.91 2l-1.2 3.594L2.364 7.09zm3.241-3.563-4.18 1.17 4.059 4.059 1.17-4.18 2.533-.845-2.737-2.737z" clip-rule="evenodd"/></svg>',trash:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M11 2v1h3v1h-1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4H2V3h3V2a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1M6 3V2h4v1zm1 3H6v6h1zm2 0h1v6H9z" clip-rule="evenodd"/></svg>',"trash-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7 6H6v6h1zm2 0h1v6H9z"/><path fill="currentColor" fill-rule="evenodd" d="M11 3V2a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v1H2v1h1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4h1V3zM6 2v1h4V2zm6 2v10H4V4z" clip-rule="evenodd"/></svg>',"universal-access":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.5-1V6h-7v1H7v1.367l-1.934 3.385.868.496L7.79 9h.42l1.856 3.248.868-.496L9 8.367V7zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0" clip-rule="evenodd"/></svg>',"universal-access-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M4.111 13.82A7 7 0 0 0 8 15a7.01 7.01 0 0 0 7-7 7 7 0 1 0-10.889 5.82m.556-10.809A6 6 0 0 1 8 2a6.007 6.007 0 0 1 6 6 6 6 0 1 1-9.333-4.989M8 5.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2M11.5 7V6h-7v1H7v1.367l-1.934 3.385.868.496L7.79 9h.42l1.856 3.248.868-.496L9 8.367V7z" clip-rule="evenodd"/></svg>',unlink:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.5 1h-1v2h1zM1.792 2.501l.707-.707L4.207 3.5l-.707.707zm9.998 9.995.708-.707 1.707 1.708-.707.707zM1 5.5h2v1H1zm14 4h-2v1h2zM9.5 13h1v2h-1zm-1.21-2.465-1.855 1.86a2.002 2.002 0 0 1-2.83-2.83l1.86-1.86L4.755 7 2.9 8.86a3 3 0 0 0-.03 4.27A3 3 0 0 0 5 14a3.04 3.04 0 0 0 2.16-.9L9 11.245zm1.275-6.93-1.86 1.86L7 4.755 8.84 2.9A3.04 3.04 0 0 1 11 2a3 3 0 0 1 2.13.87 3 3 0 0 1-.03 4.27L11.245 9l-.71-.705 1.86-1.86a2.002 2.002 0 0 0-2.83-2.83"/></svg>',unlock:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 7V4a2 2 0 1 0-4 0v1H5V4a3 3 0 0 1 6 0v3h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm-3 4a1 1 0 1 1 2 0 1 1 0 0 1-2 0" clip-rule="evenodd"/></svg>',"unlock-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 10a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path fill="currentColor" fill-rule="evenodd" d="M10 4v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-6 0v1h1V4a2 2 0 1 1 4 0m2 4v6H4V8z" clip-rule="evenodd"/></svg>',upload:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3.706 6.703 3 6l5-5 5 5-.704.702L8.5 2.912V12h-1V2.913zM13 14v-2h1v2a1 1 0 0 1-1 1H3a1 1 0 0 1-.996-1.002L2 14v-2h1v2z" clip-rule="evenodd"/></svg>',user:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6M6 9a4 4 0 0 0-4 4 1 1 0 0 0 1 1h10a1 1 0 0 0 1-1 4 4 0 0 0-4-4z" clip-rule="evenodd"/></svg>',"user-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.01 1C4.146.99 1.01 4.128 1 7.99c0 3.863 3.128 7 6.99 7.01 3.853 0 6.99-3.109 7.01-6.962C15.019 4.176 11.9 1.02 8.038 1zm0 .715a6.28 6.28 0 0 1 6.275 6.295v.028a6.2 6.2 0 0 1-1.135 3.586 2.59 2.59 0 0 0-2.537-2.26H9.478a3.44 3.44 0 0 1-2.937 0H5.415a2.573 2.573 0 0 0-2.546 2.26 6.2 6.2 0 0 1-1.135-3.586 6.284 6.284 0 0 1 6.247-6.323zM5.147 5.778a2.914 2.914 0 0 1 2.91-2.909 2.914 2.914 0 0 1 2.908 2.909 2.914 2.914 0 0 1-2.909 2.909H8.01a2.917 2.917 0 0 1-2.86-2.91"/></svg>',"user-group":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.95 4.066a1.42 1.42 0 0 0-1.426 1.406c0 .789.626 1.415 1.406 1.425s1.415-.626 1.425-1.406a1.42 1.42 0 0 0-1.406-1.425m-9.668.01a1.415 1.415 0 0 0-1.521 1.53 1.415 1.415 0 0 0 2.821 0 1.43 1.43 0 0 0-1.3-1.53m7.087.375a2.38 2.38 0 0 0-1.647-1.685 2.496 2.496 0 0 0-3.1 1.656 2.53 2.53 0 0 0 .135 1.781A2.39 2.39 0 0 0 7.99 7.6a2.47 2.47 0 0 0 2.379-3.148m-.684 3.851h-.183a3.39 3.39 0 0 1-3.014 0h-.183a2.54 2.54 0 0 0-2.542 2.542v2.59A6.96 6.96 0 0 0 7.99 14.85c1.59 0 3.053-.53 4.237-1.425v-2.58a2.54 2.54 0 0 0-2.542-2.543M15 8.543a7 7 0 0 1-1.589 3.765 3 3 0 0 1-.24.27c-.077.086-.164.173-.241.26v-.53h.029v-.693s.01-.068 0-.097v-.635a3.25 3.25 0 0 0-1.695-2.889c.26-.25.607-.395.963-.395h1.454c.607.01 1.126.395 1.319.944M3.041 10.844v1.464h.01v.53l-.27-.3c-.077-.076-.144-.153-.212-.23A6.97 6.97 0 0 1 1 8.63 1.38 1.38 0 0 1 2.348 7.6h1.415a1.4 1.4 0 0 1 .973.356 3.25 3.25 0 0 0-1.695 2.888"/></svg>',"user-lock":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.5 7a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5M5 8a4 4 0 0 0-4 4 1 1 0 0 0 1 1h7v-1.5a1.5 1.5 0 0 1 1.036-1.427c.109-.63.452-1.178.938-1.553A4 4 0 0 0 9 8z"/><path fill="currentColor" fill-rule="evenodd" d="M10.5 11h.5v-.5a1.5 1.5 0 0 1 3 0v.5h.5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5m2.75-.5v.5h-1.5v-.5a.75.75 0 0 1 1.5 0" clip-rule="evenodd"/></svg>',"user-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M11 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0m-1 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-8 8a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4 1 1 0 0 1-1 1H3a1 1 0 0 1-1-1m1 0a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3z" clip-rule="evenodd"/></svg>',"user-pen-fancy-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.5 7a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5m0-4C6.67 3 6 3.67 6 4.5S6.67 6 7.5 6 9 5.33 9 4.5 8.33 3 7.5 3m3.62 8.46-.22.54-.3.77s-.04.09-.06.13c-.03.04-.06.07-.1.1-.05.04-.1.07-.16.08L7.52 14l-.07-.07 1.45-1.45h.13c.15 0 .27-.06.36-.16a.6.6 0 0 0 .1-.15c.01-.02.02-.04.03-.07v-.02s.01-.05.01-.08v-.03c0-.28-.23-.5-.51-.5-.28.01-.5.24-.5.51v.14l-.76.75-.14.13-.55.55-.07-.07.16-.48.1-.29.24-.71.42-1.27c.05-.16.17-.28.32-.32l1.31-.52zm3.44-3.24-2.05 1.87-.7.64-.06.05-.32.29-1.52-1.52.28-.31.06-.06.64-.7 1.88-2.04c1.16-1.31 3.11.61 1.79 1.78"/><path fill="currentColor" fill-rule="evenodd" d="M9 8H6c-2.21 0-4 1.79-4 4 0 .55.45 1 1 1h3.11l.33-1H3c0-1.66 1.34-3 3-3h3.05l.83-.9C9.6 8.03 9.3 8 9 8" clip-rule="evenodd"/></svg>',"user-plus":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 3.33h-1.35V2c-.02-.18-.17-.33-.35-.33h-.65c-.18 0-.33.15-.35.33v1.33H10c-.18 0-.33.16-.33.34v.66c0 .18.15.33.33.34h1.3V6c.02.18.17.32.35.33h.65c.18 0 .33-.15.35-.33V4.67H14a.34.34 0 0 0 .32-.34v-.66a.34.34 0 0 0-.32-.34M9.28 9.77h-.2c-1.25.51-2.66.51-3.91 0H5a3.006 3.006 0 0 0-3.3 2.67v.74c.06.67.63 1.17 1.3 1.15h8.25c.69.06 1.3-.45 1.36-1.14v-.68a3 3 0 0 0-3.23-2.75h-.1zM7.13 3.7c1.46 0 2.64 1.17 2.65 2.63 0 1.46-1.17 2.64-2.63 2.65-1.46 0-2.64-1.17-2.65-2.63A2.65 2.65 0 0 1 7.13 3.7"/></svg>',"user-question-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.23 11.14c.86-.66 1.01-1.9.35-2.75s-1.9-1.01-2.75-.35a1.96 1.96 0 0 0 0 3.1c-.72.42-1.16 1.2-1.16 2.03v.8c0 .2.17.37.37.37h3.98c.2 0 .37-.17.37-.37v-.8c0-.83-.44-1.61-1.16-2.03M2.81 9.59c0-.67.55-1.22 1.22-1.22s1.22.55 1.22 1.22-.55 1.22-1.22 1.22-1.22-.55-1.22-1.22m2.83 4H2.41v-.42c0-.89.72-1.62 1.62-1.62s1.62.72 1.62 1.62v.42zm7.13-11.93H8c-.86 0-1.56.7-1.56 1.56v7.16c0 .21.17.37.37.37.08 0 .16-.03.22-.07l1.49-1.12h4.25c.86 0 1.56-.7 1.56-1.56V3.22c0-.86-.7-1.56-1.56-1.56m.82 6.33c0 .45-.37.82-.82.82H8.4a.4.4 0 0 0-.22.07l-1 .75V3.22c0-.45.37-.82.82-.82h4.77c.45 0 .82.37.82.82zm-2.8-.42c0 .23-.18.41-.41.41s-.41-.18-.41-.41.18-.41.41-.41.41.18.41.41m-.41-4.34c-.83 0-1.5.67-1.5 1.5 0 .23.18.41.41.41s.41-.18.41-.41c0-.38.31-.68.69-.68s.68.31.68.69-.31.68-.68.68c-.23 0-.41.18-.41.41v.44c0 .23.18.41.41.41s.41-.18.41-.41v-.09c.8-.23 1.26-1.06 1.04-1.85-.18-.65-.77-1.09-1.44-1.09z"/></svg>',"user-shield":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2.676 2.768A1 1 0 0 0 2 3.714v4.799a3 3 0 0 0 .154.949l.06.177A7 7 0 0 0 5.1 13.334l2.373 1.508a1 1 0 0 0 1.074-.001l2.361-1.507a7 7 0 0 0 2.875-3.687l.062-.185c.102-.306.154-.627.154-.949V3.714a1 1 0 0 0-.676-.946l-5-1.712a1 1 0 0 0-.648 0zM8 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4m-4.22 2.627a6 6 0 0 0 1.857 1.863l2.373 1.508 2.361-1.507a6 6 0 0 0 1.85-1.862A4 4 0 0 0 9 8.999H7c-1.32 0-2.492.641-3.22 1.628" clip-rule="evenodd"/></svg>',"user-shield-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 5.998a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M2 3.712a1 1 0 0 1 .676-.946l5-1.712a1 1 0 0 1 .648 0l5 1.712a1 1 0 0 1 .676.946v4.799c0 .322-.052.643-.154.949l-.062.185a7 7 0 0 1-2.875 3.687l-2.36 1.507a1 1 0 0 1-1.075 0l-2.373-1.507a7 7 0 0 1-2.888-3.695l-.06-.177A3 3 0 0 1 2 8.51zm11 0v4.799q0 .324-.103.632l-.061.186a6 6 0 0 1-.614 1.298A4 4 0 0 0 9 8.997H7c-1.32 0-2.492.64-3.22 1.628a6 6 0 0 1-.618-1.304l-.06-.178A2 2 0 0 1 3 8.511V3.712L8 2zM9 9.998a3 3 0 0 1 2.582 1.47c-.355.39-.76.734-1.21 1.021L8.01 13.996l-2.373-1.508a6 6 0 0 1-1.217-1.022A3 3 0 0 1 7 9.998z" clip-rule="evenodd"/></svg>',users:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.25 3.335a2.5 2.5 0 1 0 0 4.33A3.5 3.5 0 0 1 6.5 5.5c0-.818.28-1.57.75-2.165M10 3a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m-5 9.2A3.2 3.2 0 0 1 8.2 9h3.6a3.2 3.2 0 0 1 3.2 3.2.8.8 0 0 1-.8.8H5.8a.8.8 0 0 1-.8-.8M5.48 9H4.2A3.2 3.2 0 0 0 1 12.2a.8.8 0 0 0 .8.8h2.387A1.8 1.8 0 0 1 4 12.2 4.19 4.19 0 0 1 5.48 9"/></svg>',"users-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.5 5.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0M10 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3" clip-rule="evenodd"/><path fill="currentColor" d="M4.2 9h1.28a4.2 4.2 0 0 0-.858 1H4.2a2.2 2.2 0 0 0-2.191 2h1.996a4 4 0 0 0-.005.2c0 .287.067.559.187.8H1.8a.8.8 0 0 1-.8-.8A3.2 3.2 0 0 1 4.2 9"/><path fill="currentColor" fill-rule="evenodd" d="M5 12.2A3.2 3.2 0 0 1 8.2 9h3.6a3.2 3.2 0 0 1 3.2 3.2.8.8 0 0 1-.8.8H5.8a.8.8 0 0 1-.8-.8m6.8-2.2a2.2 2.2 0 0 1 2.191 2H6.009A2.2 2.2 0 0 1 8.2 10z" clip-rule="evenodd"/><path fill="currentColor" d="M6 3c.455 0 .882.122 1.25.335a3.5 3.5 0 0 0-.5.865 1.5 1.5 0 1 0 0 2.6c.125.313.294.604.5.865A2.5 2.5 0 1 1 6 3"/></svg>',wallet:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1zm1 0h11v1H2zm9 5a1 1 0 1 1 2 0 1 1 0 0 1-2 0" clip-rule="evenodd"/></svg>',"wallet-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11 9a1 1 0 1 1 2 0 1 1 0 0 1-2 0"/><path fill="currentColor" fill-rule="evenodd" d="M2 13a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1zm0-9h11v1H2zm12 2H2v6h12z" clip-rule="evenodd"/></svg>'};const bt=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-icon-border-radius: Defines the border radius of icons. Default value is `50%`.\n */:host{display:inline-flex;vertical-align:middle}.mg-c-icon{color:currentcolor}.mg-c-icon[size=small],.mg-c-icon.mg-c-icon--size-small{width:var(--mg-b-size-12);height:var(--mg-b-size-12)}.mg-c-icon[size=small][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-small[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-16) - var(--mg-b-size-12))/2)}.mg-c-icon[size=medium],.mg-c-icon.mg-c-icon--size-medium{width:var(--mg-b-size-16);height:var(--mg-b-size-16)}.mg-c-icon[size=medium][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-medium[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-24) - var(--mg-b-size-16))/2)}.mg-c-icon[size=large],.mg-c-icon.mg-c-icon--size-large{width:var(--mg-b-size-20);height:var(--mg-b-size-20)}.mg-c-icon[size=large][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-large[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-32) - var(--mg-b-size-20))/2)}.mg-c-icon[size=xlarge],.mg-c-icon.mg-c-icon--size-xlarge{width:var(--mg-b-size-24);height:var(--mg-b-size-24)}.mg-c-icon[size=xlarge][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-xlarge[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-40) - var(--mg-b-size-24))/2)}.mg-c-icon[size=xxlarge],.mg-c-icon.mg-c-icon--size-xxlarge{width:var(--mg-b-size-32);height:var(--mg-b-size-32)}.mg-c-icon[size=xxlarge][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-xxlarge[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-48) - var(--mg-b-size-32))/2)}.mg-c-icon.mg-c-icon--variant-app.mg-c-icon--variant-style-icon{color:var(--mg-b-color-app)}.mg-c-icon.mg-c-icon--variant-blue.mg-c-icon--variant-style-icon{color:var(--mg-b-color-blue)}.mg-c-icon.mg-c-icon--variant-80.mg-c-icon--variant-style-icon{color:var(--mg-b-color-80)}.mg-c-icon.mg-c-icon--variant-danger.mg-c-icon--variant-style-icon{color:var(--mg-b-color-danger)}.mg-c-icon.mg-c-icon--variant-info.mg-c-icon--variant-style-icon{color:var(--mg-b-color-info)}.mg-c-icon.mg-c-icon--variant-success.mg-c-icon--variant-style-icon{color:var(--mg-b-color-success)}.mg-c-icon.mg-c-icon--variant-warning.mg-c-icon--variant-style-icon{color:var(--mg-b-color-warning)}.mg-c-icon.mg-c-icon--variant-app.mg-c-icon--variant-style-background{background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-app), white 80%))}.mg-c-icon.mg-c-icon--variant-blue.mg-c-icon--variant-style-background{background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-blue), white 80%))}.mg-c-icon.mg-c-icon--variant-80.mg-c-icon--variant-style-background{background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-80), white 80%))}.mg-c-icon.mg-c-icon--variant-danger.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-red-20, color-mix(in srgb, var(--mg-b-color-danger), white 80%))}.mg-c-icon.mg-c-icon--variant-info.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-blue-20, color-mix(in srgb, var(--mg-b-color-info), white 80%))}.mg-c-icon.mg-c-icon--variant-success.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-green-20, color-mix(in srgb, var(--mg-b-color-success), white 80%))}.mg-c-icon.mg-c-icon--variant-warning.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-yellow-20, color-mix(in srgb, var(--mg-b-color-warning), white 80%))}.mg-c-icon.mg-c-icon--variant-app.mg-c-icon--variant-style-full{color:var(--mg-b-color-app);background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-app), white 80%))}.mg-c-icon.mg-c-icon--variant-blue.mg-c-icon--variant-style-full{color:var(--mg-b-color-blue);background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-blue), white 80%))}.mg-c-icon.mg-c-icon--variant-80.mg-c-icon--variant-style-full{color:var(--mg-b-color-80);background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-80), white 80%))}.mg-c-icon.mg-c-icon--variant-danger.mg-c-icon--variant-style-full{color:var(--mg-b-color-danger);background-color:var(--mg-b-color-red-20, color-mix(in srgb, var(--mg-b-color-danger), white 80%))}.mg-c-icon.mg-c-icon--variant-info.mg-c-icon--variant-style-full{color:var(--mg-b-color-info);background-color:var(--mg-b-color-blue-20, color-mix(in srgb, var(--mg-b-color-info), white 80%))}.mg-c-icon.mg-c-icon--variant-success.mg-c-icon--variant-style-full{color:var(--mg-b-color-success);background-color:var(--mg-b-color-green-20, color-mix(in srgb, var(--mg-b-color-success), white 80%))}.mg-c-icon.mg-c-icon--variant-warning.mg-c-icon--variant-style-full{color:var(--mg-b-color-warning);background-color:var(--mg-b-color-yellow-20, color-mix(in srgb, var(--mg-b-color-warning), white 80%))}.mg-c-icon[class*=mg-c-icon--variant-]{overflow:visible;border-radius:var(--mg-c-icon-border-radius)}.mg-c-icon--spin{animation-duration:.75s;animation-iteration-count:infinite;animation-name:rotate}@keyframes rotate{to{transform:rotate(360deg)}}";const wt=bt;const _t=class{constructor(e){t(this,e);this.size="medium";this.spin=false;this.classCollection=new r(["mg-c-icon"]);this.setDefaultVariantStyle=()=>{if(this.variantStyle===undefined)this.variantStyle="background"};this.renderIcon=t=>{this.element.shadowRoot.innerHTML=ft[t];this.svg=this.element.shadowRoot.querySelector("svg");this.svg.setAttribute("aria-hidden","true");this.svg.setAttribute("focusable","false");this.svg.setAttribute("class",this.classCollection.join())}}validateIcon(t,e){if(!Object.keys(ft).includes(t))throw new Error(`<mg-icon> prop "icon" must be one of: ${Object.keys(ft).join(", ")}. Passed value: ${s(t)}.`);else{if(e!==undefined)this.classCollection.delete(`mg-c-icon--${e}`);this.classCollection.add(`mg-c-icon--${t}`);this.renderIcon(t)}}validateSize(t,e){if(!ut.includes(t))throw new Error(`<mg-icon> prop "size" must be one of: ${ut.join(", ")}. Passed value: ${s(t)}.`);else{if(e!==undefined)this.classCollection.delete(`mg-c-icon--size-${e}`);this.classCollection.add(`mg-c-icon--size-${t}`)}}validateVariant(t,e){if(t!==undefined){if(!pt.includes(t))throw new Error(`<mg-icon> prop "variant" must be one of: ${pt.join(", ")}. Passed value: ${s(t)}.`);else{this.setDefaultVariantStyle();if(e!==undefined)this.classCollection.delete(`mg-c-icon--variant-${e}`);this.classCollection.add(`mg-c-icon--variant-${t}`)}}}validateVariantStyle(t,e){if(t!==undefined){if(!vt.includes(t))throw new Error(`<mg-icon> prop "variantStyle" must be one of: ${vt.join(", ")}. Passed value: ${s(t)}.`);else{if(e!==undefined)this.classCollection.delete(`mg-c-icon--variant-style-${e}`);this.classCollection.add(`mg-c-icon--variant-style-${t}`)}}}handleSpin(t){if(t){this.classCollection.add("mg-c-icon--spin")}else{this.classCollection.delete("mg-c-icon--spin")}}componentWillLoad(){this.validateIcon(this.icon);this.validateSize(this.size);this.validateVariant(this.variant);this.validateVariantStyle(this.variantStyle);this.handleSpin(this.spin);this.renderIcon(this.icon)}componentWillUpdate(){this.svg.setAttribute("class",this.classCollection.join())}get element(){return n(this)}static get watchers(){return{icon:["validateIcon"],size:["validateSize"],variant:["validateVariant"],variantStyle:["validateVariantStyle"],spin:["handleSpin"]}}};_t.style=wt;const xt=["small","medium","large"];const zt=["vertical","horizontal"];const yt="/*!\n * @prop --mg-c-illustrated-message-spacing-vertical: Defines the vertical padding of the illustrated message. Default value: `--mg-b-size-40`.\n */.mg-c-illustrated-message{display:flex;max-width:calc(60*var(--mg-b-size-8));box-sizing:border-box;flex-direction:column;justify-content:center;padding:var(--mg-c-illustrated-message-spacing-vertical) var(--mg-b-size-16);margin:auto;gap:var(--mg-b-size-16) var(--mg-b-size-64);text-align:center}.mg-c-illustrated-message__illustration{max-height:calc(15*var(--mg-b-size-8))}.mg-c-illustrated-message__illustration ::slotted([slot=illustration]){width:100%;max-width:100%;height:auto;max-height:calc(15*var(--mg-b-size-8))}.mg-c-illustrated-message__slots{display:flex;flex-direction:column;gap:var(--mg-b-size-16)}.mg-c-illustrated-message__slots ::slotted([slot=title]){margin:0;font-family:var(--mg-b-font-family) !important;font-size:var(--mg-b-font-size-h2) !important;font-weight:400 !important}.mg-c-illustrated-message__slots ::slotted([slot=details]){margin:0}.mg-c-illustrated-message.mg-c-illustrated-message--size-small .mg-c-illustrated-message__illustration{max-height:var(--mg-b-size-64)}.mg-c-illustrated-message.mg-c-illustrated-message--size-small .mg-c-illustrated-message__illustration ::slotted([slot=illustration]){max-height:var(--mg-b-size-64)}.mg-c-illustrated-message.mg-c-illustrated-message--size-large .mg-c-illustrated-message__illustration{max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message.mg-c-illustrated-message--size-large .mg-c-illustrated-message__illustration ::slotted([slot=illustration]){max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message.mg-c-illustrated-message--direction-horizontal{max-width:unset;flex-flow:row wrap;align-items:center}.mg-c-illustrated-message.mg-c-illustrated-message--direction-horizontal .mg-c-illustrated-message__slots,.mg-c-illustrated-message.mg-c-illustrated-message--direction-horizontal .mg-c-illustrated-message__illustration{max-width:calc(60*var(--mg-b-size-8))}";const kt=yt;const Ht=class{constructor(e){t(this,e);this.size="medium";this.direction="vertical";this.classCollection=new r(["mg-c-illustrated-message"])}watchSize(t,e){if(!xt.includes(t)){throw new Error(`<mg-illustrated-message> prop "size" must be one of: ${xt.join(", ")}. Passed value: ${s(t)}.`)}else{if(e!==undefined){this.classCollection.delete(`mg-c-illustrated-message--size-${e}`)}this.classCollection.add(`mg-c-illustrated-message--size-${t}`)}}watchDirection(t,e){if(t!==undefined&&!zt.includes(t)){throw new Error(`<mg-illustrated-message> prop "direction" must be one of: ${zt.join(", ")}. Passed value: ${s(t)}.`)}else if(t==="horizontal"){this.classCollection.add("mg-c-illustrated-message--direction-horizontal")}else if(e==="horizontal"){this.classCollection.delete("mg-c-illustrated-message--direction-horizontal")}}validateSlots(){const t=["h1","h2","h3","h4","h5","h6"];const e=this.element.querySelector('[slot="title"]');const i=this.element.querySelectorAll('[slot="illustration"]');const n=this.element.querySelectorAll('[slot="details"]');if(n.length===0&&e===null){throw new Error('<mg-illustrated-message> Slot "title" or "details" must be present.')}else if(e!==null&&!g(e,t)){throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${t.join(", ")}.`)}else if(i.length!==1){throw new Error("<mg-illustrated-message> Slotted illustration must be present and unique.")}i[0].setAttribute("aria-hidden","true")}componentWillLoad(){this.watchDirection(this.direction);this.watchSize(this.size);this.validateSlots()}render(){return e("div",{key:"2149de3930476c30fa95c8b117076751fff95029",class:this.classCollection.join()},e("div",{key:"2795cb4895296c33b0aaf2ff8b2dcda464ce7f60",class:"mg-c-illustrated-message__illustration"},e("slot",{key:"fd9f3c1fbcd10bf220d6dd527bf5a8485c505078",name:"illustration"})),e("div",{key:"1acf58c99a54bc100b98ca4bf37ef4fd32242a5f",class:"mg-c-illustrated-message__slots"},e("slot",{key:"a1945bb8898198066958f06082e27c6fe3c26153",name:"title"}),e("slot",{key:"97b69594078389495397985e8ccb1e5e0dd4bc3f",name:"details"})))}get element(){return n(this)}static get watchers(){return{size:["watchSize"],direction:["watchDirection"]}}};Ht.style=kt;const Mt=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-input-border-width: Defines the width of the input border. Default value is `--mg-b-size-border`.\n * @prop --mg-c-input-border-radius: Defines the border radius of the input. Default value is `--mg-b-size-radius`.\n * @prop --mg-c-input-color-border: Defines the color of the input border. Default value is `rgb(181, 194, 201)`.\n * @prop --mg-c-input-placeholder-color-text: Defines the color of the placeholder text. Default value is `rgb(181, 194, 201)`.\n * @prop --mg-c-input-color-box-shadow-focus: Defines the shadow color of the input when focused. Default value is `rgba(0, 221, 255, 0.5)`.\n * @prop --mg-c-input-error-color-background: Defines the background color of the input error message. Default value is `color-mix(in srgb, var(--mg-b-color-danger), white 95%)`.\n * @prop --mg-c-input-toggle-border-radius-ratio: Defines the border radius ratio of the input toggle. Default value is `2`.\n * @prop --mg-c-input-check-size: Defines the size of the input check. Default value is `--mg-b-size-16`.\n */:host{display:block}.mg-c-input__input mg-icon,.mg-c-input__error mg-icon{display:flex}.mg-c-input{display:flex;min-height:var(--mg-b-size-min-height);align-items:flex-start}.mg-c-input__input-container{width:100%;min-height:var(--mg-b-size-min-height)}.mg-c-input__input-container mg-tooltip{display:inline-flex;width:var(--mg-b-size-16);height:var(--mg-b-size-16);margin-left:var(--mg-b-size-8)}@media print{.mg-c-input__input-container mg-tooltip{display:none}}.mg-c-input__input{display:flex;min-height:var(--mg-b-size-min-height);align-items:center;justify-content:start}.mg-c-input__input mg-tooltip{align-self:baseline;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__input ::slotted(.mg-c-input__button-toggle:disabled){opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input__title{display:flex;width:var(--mg-c-input-title-width, auto);flex-shrink:0;align-items:baseline;justify-content:flex-end;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);margin-right:var(--mg-c-input-title-horizontal-space, var(--mg-b-size-8));text-align:right}.mg-c-input__title slot[name=label]+mg-tooltip{margin-left:var(--mg-b-size-4)}.mg-c-input__title mg-icon{display:inline-flex;vertical-align:text-bottom}.mg-c-input__error{display:inline-block;padding:var(--mg-b-size-4) var(--mg-b-size-8);border-radius:var(--mg-b-size-radius);background:var(--mg-c-input-error-color-background);color:var(--mg-b-color-danger)}.mg-c-input__error ::slotted(*),.mg-c-input__help-text ::slotted(*){font-size:var(--mg-b-font-size-small);text-align:start}:host(:not(.mg-c-input--textarea)) .mg-c-input__input+.mg-c-input__error,:host(:not(.mg-c-input--textarea)) .mg-c-input__input+.mg-c-input__help-text{margin-top:var(--mg-b-size-4)}:host(.mg-c-input.mg-c-input--readonly) .mg-c-input__input mg-tooltip{margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2)}:host(.mg-c-input){display:flex;margin-bottom:var(--mg-c-input-margin-bottom, 0)}:host(.mg-c-input.mg-c-input--checkbox) .mg-c-input__input,:host(.mg-c-input.mg-c-input--radio) .mg-c-input__input{min-height:unset;align-items:flex-start}:host(.mg-c-input.mg-c-input--checkbox,.mg-c-input.mg-c-input--radio) .mg-c-input__input{min-height:unset}:host(.mg-c-input.mg-c-input--fieldset:not(.mg-c-input--checkbox-multi,.mg-c-input--readonly)) .mg-c-input__input-container mg-tooltip{margin-left:var(--mg-b-size-32)}:host(.mg-c-input.mg-c-input--label-on-top){flex-direction:column}:host(.mg-c-input.mg-c-input--label-on-top) .mg-c-input__title{width:100%;flex:0;justify-content:flex-start;margin-top:0;margin-right:0;margin-bottom:var(--mg-b-size-4);text-align:left}:host(.mg-c-input.mg-c-input--label-on-top) .mg-c-input__title ::slotted(mg-input-title){flex-shrink:1}@media screen and (max-width: 767px){:host(.mg-c-input){flex-direction:column}:host(.mg-c-input) .mg-c-input__title{width:100%;flex:0;justify-content:flex-start;margin-top:0;margin-right:0;margin-bottom:var(--mg-b-size-4);text-align:left}:host(.mg-c-input) .mg-c-input__title ::slotted(mg-input-title){flex-shrink:1}}";const Ct=Mt;const Vt=class{constructor(i){t(this,i);this.slotLabel="label";this.slotError="error";this.slotHelpText="help-text";this.classInput="mg-c-input";this.classHasError="mg-c-input--has-error";this.classLabelOnTop="mg-c-input--label-on-top";this.labelHide=false;this.tooltipPosition="input";this.required=false;this.isFieldset=false;this.isReadonly=false;this.isDisabled=false;this.isVerticalList=false;this.renderTooltip=()=>e("mg-tooltip",{identifier:`${this.identifier}-tooltip`,message:this.tooltip},e("mg-icon",{icon:"info-circle"}))}watchIdentifier(t){if(!l(t)){throw new Error(`<mg-input> prop "identifier" is required and must be a string. Passed value: ${s(t)}.`)}else if(!h(t)){console.error(`<mg-input> prop "identifier" value is invalid. Passed value: ${s(t)}.`)}else{this.helpTextId=`${this.identifier}-help-text`;this.helpTextErrorId=`${this.identifier}-error`}}watchLabelOnTop(t){if(t){this.element.classList.add(this.classLabelOnTop)}else{this.element.classList.remove(this.classLabelOnTop)}}watchLabelConfig(){if(this.labelHide&&this.labelOnTop){throw new Error('<mg-input> prop "labelOnTop" must not be paired with the prop "labelHide".')}}watchTooltipPosition(t){if(!H.includes(t)){throw new Error(`<mg-input> prop "tooltipPosition" must be one of: ${H.join(", ")}. Passed value: ${s(t)}.`)}}watchErrorMessage(t){var e;if(t!==undefined){this.element.classList.add(this.classHasError);this.renderErrorMessage()}else{this.element.classList.remove(this.classHasError);(e=this.errorMessageSlotElement)===null||e===void 0?void 0:e.remove();this.errorMessageSlotElement=undefined}}watchHelpText(t){var e;if(t&&!this.isReadonly){this.renderHelpText()}else{(e=this.helptextMessageSlotElement)===null||e===void 0?void 0:e.remove();this.helptextMessageSlotElement=undefined}}watchAriaDescribedbyIDs(){if(this.isReadonly)return;const t=new Set(this.ariaDescribedbyIDs);if(this.helpText!==undefined){this.renderHelpText();if(!t.has(this.helpTextId))t.add(this.helpTextId)}if(this.errorMessage!==undefined){this.renderErrorMessage();if(!t.has(this.helpTextErrorId))t.add(this.helpTextErrorId)}this.element.querySelectorAll('input,select,textarea,[role="switch"]').forEach((e=>{if(t.size)e.setAttribute("aria-describedby",Array.from(t).join(" "));else e.removeAttribute("aria-describedby")}))}watchClass(){if(!this.element.classList.contains(this.classInput)){this.element.classList.add(this.classInput)}this.isFieldset=this.element.classList.contains(M);this.isReadonly=this.element.classList.contains(C);this.isDisabled=this.element.classList.contains(V);this.isVerticalList=this.element.classList.contains(L)}watchLabel(){if(!l(this.label)){throw new Error(`<mg-input> prop "label" is required and must be a string. Passed value: ${s(this.label)}.`)}else{this.watchAriaDescribedbyIDs();this.renderLabel()}}renderLabel(){let t=this.element.querySelector(`[slot=${this.slotLabel}]`);t===null||t===void 0?void 0:t.remove();t=document.createElement("mg-input-title");[["slot",this.slotLabel],["identifier",this.identifier],["readonly",this.isReadonly.toString()],["required",(this.required&&!this.isDisabled||false).toString()],["is-legend",this.isFieldset.toString()]].forEach((([e,i])=>{t.setAttribute(e,i)}));const e=document.createElement("span");e.classList.add("mg-c-input-title__text");e.textContent=this.label;t.appendChild(e);this.element.appendChild(t)}renderErrorMessage(){this.errorMessageSlotElement=this.element.querySelector(`[slot=${this.slotError}]`);if(this.errorMessageSlotElement===null){this.errorMessageSlotElement=document.createElement("div");this.errorMessageSlotElement.setAttribute("slot",this.slotError);this.element.appendChild(this.errorMessageSlotElement)}this.errorMessageSlotElement.setAttribute("id",this.helpTextErrorId);this.errorMessageSlotElement.innerHTML=this.errorMessage}renderHelpText(){this.helptextMessageSlotElement=this.element.querySelector(`[slot=${this.slotHelpText}]`);if(this.helptextMessageSlotElement===null){this.helptextMessageSlotElement=document.createElement("div");this.helptextMessageSlotElement.setAttribute("slot",this.slotHelpText);this.element.appendChild(this.helptextMessageSlotElement)}this.helptextMessageSlotElement.setAttribute("id",this.helpTextId);this.helptextMessageSlotElement.innerHTML=this.helpText}componentWillLoad(){this.watchIdentifier(this.identifier);this.watchLabel();this.watchClass();this.watchLabelOnTop(this.labelOnTop);this.watchLabelConfig();this.watchTooltipPosition(this.tooltipPosition);this.watchHelpText(this.helpText);this.watchErrorMessage(this.errorMessage)}componentDidLoad(){this.watchAriaDescribedbyIDs();if(!this.isReadonly&&!this.isFieldset&&this.element.querySelector(`#${this.identifier}`)===null){throw new Error(`<mg-input> "identifier" prop has no target for id: ${this.identifier}. Add an id to the targeted input.`)}}render(){const t=this.isFieldset&&!this.isReadonly;return e(i,{key:"77264d2ab6e11c17aa41084e1a92a1f73ca0dfdb",class:this.element.classList.toString(),role:t?"group":undefined,"aria-labelledby":t?`${this.identifier}-title`:undefined},e("div",{key:"4ad77f1659c1b89fd162a9a5c12cdedaaa6be803",class:{"mg-c-input__title":true,"mg-u-visually-hidden":this.labelHide}},e("slot",{key:"b542d2b90f48a2cc40cde20f1ee17e69770f13c6",name:this.slotLabel}),this.tooltip&&(this.tooltipPosition==="label"||this.labelOnTop)&&!this.labelHide&&this.renderTooltip()),e("div",{key:"ef262dc7bfef3b06bc261b2755c317e5c8d8c710",class:"mg-c-input__input-container"},e("div",{key:"4ec59056ceebad738164f242dd272a5bdb89aaa0",class:"mg-c-input__input"},e("slot",{key:"1cefe1817b4c33cac440fe6cde1cb780bde52c05"}),this.tooltip&&!this.labelOnTop&&(this.tooltipPosition==="input"||this.labelHide)&&this.renderTooltip()),this.helptextMessageSlotElement&&e("div",{key:"568732b397b397195f123376ef1a958a8043dc28",class:"mg-c-input__help-text"},e("slot",{key:"98092704188057b00b24815ab03d874b96d46b4c",name:this.slotHelpText})),!this.isDisabled&&this.errorMessage&&e("div",{key:"d72f798a577b626b8b7d0de4094b68c4fd105535",class:"mg-c-input__error","aria-live":"assertive"},e("slot",{key:"d258365216d2a3f1810776b06f603aa392e12808",name:this.slotError}))))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier","watchAriaDescribedbyIDs"],labelOnTop:["watchLabelOnTop","watchLabelConfig"],labelHide:["watchLabelConfig"],tooltipPosition:["watchTooltipPosition"],errorMessage:["watchErrorMessage","watchAriaDescribedbyIDs"],helpText:["watchHelpText","watchAriaDescribedbyIDs"],ariaDescribedbyIDs:["watchAriaDescribedbyIDs"],class:["watchClass","watchLabel"],label:["watchLabel"],required:["watchLabel"],isReadonly:["watchLabel"],isFieldset:["watchLabel"]}}};Vt.style=Ct;const Lt=["checkbox","multi"];const Dt={SELECTED:"selected",NOT_SELECTED:"not-selected"};const Bt=t=>e("ul",{class:"mg-c-input__input-group-container",role:"list","aria-describedby":t.displaySearchInput?"search-results":undefined,"aria-label":t.displaySearchInput?t.messages.searchResults:undefined,"aria-live":t.displaySearchInput?"polite":undefined,id:t.id},t.checkboxes.map((i=>{var n,o;return e("li",{key:i._id,class:{"mg-c-input__input-group":true,"mg-c-input__input-group--disabled":t.disabled||i.disabled}},e("input",{type:"checkbox",id:i._id,name:t.name,value:(n=i.value)===null||n===void 0?void 0:n.toString(),checked:Boolean(i.value),required:i.required,"aria-invalid":((o=t.invalid)===null||o===void 0?void 0:o.toString())||"false",disabled:t.disabled||i.disabled,indeterminate:i.value===null,onInput:i._handleInput,onBlur:i._handleBlur,onKeyDown:i._handleKeydown}),e("label",{htmlFor:i._id},i.title))})));const $t=".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input.mg-c-input--fieldset{padding:0;border:0;margin-right:0;margin-left:0}.mg-c-input.mg-c-input--fieldset input[type=radio],.mg-c-input.mg-c-input--fieldset input[type=checkbox]{width:var(--mg-c-input-check-size);height:var(--mg-c-input-check-size);flex-shrink:0;margin:calc((var(--mg-b-font-size)*var(--mg-b-line-height) - var(--mg-c-input-check-size))/2) var(--mg-b-size-8) 0 0}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group{display:flex;align-items:start}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group-container{display:flex;flex-wrap:wrap;padding:0;margin:0;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);gap:var(--mg-b-size-12) var(--mg-b-size-24);list-style:none}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group.mg-c-input__input-group--disabled label{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--fieldset.mg-c-input--vertical-list .mg-c-input__input-group-container,.mg-c-input.mg-c-input--fieldset.mg-c-input--checkbox-multi .mg-c-input__input-group-container{flex-direction:column}.mg-c-input.mg-c-input--fieldset.mg-c-input--label-on-top .mg-c-input__input-group-container{margin-top:var(--mg-b-size-8)}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-group-container{padding:var(--mg-b-size-4) var(--mg-b-size-8);margin:0}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-container{display:flex;width:unset;flex:unset;flex-wrap:wrap;column-gap:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-container-list{display:flex;flex-flow:row wrap;padding:0;margin:0;gap:var(--mg-b-size-4);list-style:none}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__sections{max-height:100%;padding-right:var(--mg-b-size-8);overflow-y:auto}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header{display:flex;min-height:var(--mg-b-size-min-height);flex-wrap:wrap;flex-wrap:nowrap;align-items:center;gap:var(--mg-b-size-8);text-wrap:nowrap}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-tootlip{display:inline-block;width:auto;height:auto;margin:0}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title{display:inline;margin:0;color:var(--mg-b-color-neutral-80)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title-label{font-size:var(--mg-b-font-size)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title--static.mg-c-input__section-header-title{margin:0 var(--mg-b-size-12)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-value{display:inline-flex;min-width:var(--mg-b-size-min-height);min-height:var(--mg-b-size-min-height);box-sizing:border-box;align-items:center;justify-content:center;padding:calc((var(--mg-b-size-min-height) - 2*var(--mg-b-size-border) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-12);border-radius:var(--mg-b-size-4);background-color:var(--mg-b-color-neutral-20);font-size:var(--mg-b-font-size)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-no-result{text-align:center}.mg-c-input.mg-c-input--checkbox-multi b{margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--disabled .mg-c-input__input-container b{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--with-values .mg-c-input__input-container{gap:var(--mg-b-size-4)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--search-mode .mg-c-input__content{display:flex;width:calc(var(--mg-b-size-floating-element-max-width) - var(--mg-b-size-16));height:calc(50*var(--mg-b-size-8));max-height:calc(100vh - var(--mg-b-size-32));flex-direction:column;gap:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi:not(.mg-c-input--label-on-top) mg-tooltip:not(.mg-c-input__section-header-tootlip){margin-left:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi mg-popover{--mg-c-card-spacing:var(--mg-b-size-8)}.mg-c-input.mg-c-input--readonly ul{display:flex;min-height:var(--mg-b-font-size);flex-flow:column wrap;padding:0;margin:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) 0 0;list-style:none;row-gap:var(--mg-b-size-8)}";const At=$t;const Et=t=>Array.isArray(t)&&t.every((t=>typeof t==="object"&&typeof t.title==="string"&&(t.value===null||typeof t.value==="boolean")&&t.value!==undefined));const qt=class{constructor(i){t(this,i);this.valueChange=o(this,"value-change",7);this.inputValid=o(this,"input-valid",7);this.hasDisplayedError=false;this.mode="custom";this.baseClassName="mg-c-input--checkbox";this.classTypeMulti="mg-c-input--checkbox-multi";this.classWithValues="mg-c-input--with-values";this.classSearchMode="mg-c-input--search-mode";this.multiStart=5;this.searchStart=10;this.hasOpenedPopover=false;this.name=this.identifier;this.labelHide=false;this.inputVerticalList=false;this.required=false;this.readonly=false;this.disabled=false;this.tooltipPosition="input";this.classCollection=new r([this.baseClassName,M]);this.checkboxItems=[];this.searchValue="";this.searchResults=[];this.selectValuesButtonKey="editButton";this.handleInput=t=>{this.updateCheckboxItems("value",Boolean(t.target.checked),(e=>e._id===t.target.id));this.updateValues();this.checkValidity();this.setErrorMessage()};this.handleKeydown=t=>{var e;if(t.key==="Tab"&&((e=this.mgPopover)===null||e===void 0?void 0:e.display)){if(Boolean(this.searchInput)&&t.shiftKey&&this.searchInput.id===t.target.id){this.mgPopover.display=false;return}const e=Array.from(this.element.shadowRoot.querySelectorAll("input")).filter((t=>!t.hasAttribute("disabled"))).map((({id:t})=>t));const i=e.findIndex((e=>e===t.target.id));if(i+1>=e.length&&!t.shiftKey||i===0&&t.shiftKey&&this.searchInput===undefined)this.mgPopover.display=false}};this.handleBlur=()=>{this.checkValidity();this.setErrorMessage()};this.handleSearchChange=t=>{this.searchValue=t.detail;t.stopPropagation()};this.handleMgPopoverDisplayChange=t=>{this.hasOpenedPopover=t.detail;this.setButtonTextKey();if(!t.detail){this.searchValue="";Array.from(this.element.shadowRoot.querySelectorAll("mg-input-checkbox-paginated")).forEach((t=>{t.currentPage=1}));this.checkValidity()}};this.handleMassAction=t=>{const e=this.getDisplayItems();e.forEach((e=>{e.value=t.detail!==Dt.SELECTED}));this.updateValues()};this.updateValues=()=>{this.value=this.checkboxItems.map((t=>{delete t._handleBlur;delete t._handleInput;delete t._handleKeydown;delete t._id;return t}))};this.hasInvalidInput=()=>Array.from(this.element.shadowRoot.querySelectorAll('input[type="checkbox"]')).some((t=>!t.disabled&&!t.checkValidity()));this.updateSearchResults=()=>{this.searchResults=this.checkboxItems.filter((t=>m(t.title).includes(m(this.searchValue))))};this.validateRequired=()=>!this.required||this.checkboxItems.some((({value:t})=>t));this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||!this.hasInvalidInput()&&this.validateRequired())};this.setButtonTextKey=()=>{if(this.hasOpenedPopover)return;let t="editButton";if(this.disabled)t="showButton";else if(this.getSelectedItems().length<1)t="selectButton";this.selectValuesButtonKey=t};this.getSelectValuesButtonMessage=()=>{if(this.selectValuesButtonKey==="editButton"&&l(this.editButtonMessage)){return this.editButtonMessage}else if(this.selectValuesButtonKey==="showButton"&&l(this.showButtonMessage)){return this.showButtonMessage}else if(this.selectValuesButtonKey==="selectButton"&&l(this.selectButtonMessage)){return this.selectButtonMessage}else{return this.messages.input.checkbox[this.selectValuesButtonKey]}};this.setErrorMessage=(t=true,e)=>{this.errorMessage=undefined;if(t&&!this.valid){if(e!==undefined)this.errorMessage=e;else if(!this.validateRequired())this.errorMessage=this.messages.errors.required}};this.getMgPopoverIdentifier=()=>`${this.identifier}-input-mg-popover`;this.getDisplayItems=()=>this.searchValue.length>0?this.searchResults:this.checkboxItems;this.getSelectedItems=()=>this.checkboxItems.filter((({value:t})=>t));this.renderReadonly=t=>this.inputVerticalList?e("ul",{class:"mg-c-input__readonly-value"},t.map((t=>e("li",{key:t},e("b",null,t))))):e("b",{class:"mg-c-input__readonly-value"},t.join(", "));this.renderMgInputCheckboxList=()=>e(Bt,{checkboxes:this.checkboxItems,displaySearchInput:this.displaySearchInput,messages:this.messages.input.checkbox,id:"checkboxes-list",disabled:this.disabled,name:this.name,invalid:this.invalid})}validateValue(t){if(Et(t)){this.checkboxItems=t.map(((t,e)=>Object.assign(Object.assign({},t),{_id:`${this.identifier}_${e}`,_handleInput:this.handleInput.bind(this),_handleBlur:this.handleBlur.bind(this),_handleKeydown:this.handleKeydown.bind(this)})));this.valueChange.emit(t)}else{throw new Error(`<mg-input-checkbox> prop "value" is required and all values must be the same type, CheckboxItem. Passed value: ${s(t)}.`)}}validateType(t){if(t!==undefined&&!Lt.includes(t)){throw new Error(`<mg-input-checkbox> prop "type" must be a CheckboxType. Passed value: ${s(t)}.`)}else if(t===undefined){this.mode="auto";this.type=Lt[0]}else if(t==="multi"){this.classCollection.add(this.classTypeMulti);this.element.dataset.mgPopoverGuard=this.getMgPopoverIdentifier()}else{this.classCollection.delete(this.classTypeMulti)}}watchInputVerticalList(t){if(t)this.classCollection.add(L);else this.classCollection.delete(L)}watchReadonly(t){if(t)this.classCollection.add(C);else this.classCollection.delete(C)}watchDisplaySelectedValues(t){if(t)this.classCollection.add(this.classWithValues);else this.classCollection.delete(this.classWithValues)}handleValidityChange(t,e,i){if(i!=="readonly")this.updateCheckboxItems(i,t);this.checkValidity();if(this.hasDisplayedError){this.hasDisplayedError=i!=="required";this.setErrorMessage(this.hasDisplayedError)}this.setButtonTextKey()}validateDisabled(t){if(t)this.classCollection.add(V);else this.classCollection.delete(V)}validateCheckboxItems(t){if(this.mode==="auto")this.type=t.length>this.multiStart?"multi":"checkbox";this.displaySearchInput=this.type==="multi"&&t.length>this.searchStart;if(this.displaySearchInput)this.updateSearchResults();this.setButtonTextKey()}watchDisplaySearchInput(t){if(t)this.classCollection.add(this.classSearchMode);else this.classCollection.delete(this.classSearchMode)}validateSearchValue(){this.updateSearchResults()}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-checkbox> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-checkbox> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(undefined,t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value=this.value.map((t=>Object.assign(Object.assign({},t),{value:false})));this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.valid!==e)this.inputValid.emit(this.valid)}updateCheckboxItems(t,e,i){this.checkboxItems=this.checkboxItems.map((n=>{if(typeof i==="function"&&i(n)||i===undefined)n[t]=e;return n}))}componentWillLoad(){this.messages=k(this.element).messages;this.validateType(this.type);this.validateValue(this.value);this.validateDisabled(this.disabled);this.watchReadonly(this.readonly);this.watchInputVerticalList(this.inputVerticalList);this.watchDisplaySelectedValues(this.displaySelectedValues);this.watchDisplaySearchInput(this.displaySearchInput);return setTimeout((()=>{this.checkValidity()}),0)}componentDidLoad(){var t,e;if(!this.readonly){this.searchInput=(t=this.element.shadowRoot.querySelector("mg-input-text"))===null||t===void 0?void 0:t.shadowRoot.querySelector("input");(e=this.searchInput)===null||e===void 0?void 0:e.addEventListener("keydown",this.handleKeydown)}}renderCheckboxBySection(t){const[i,n]=t.reduce(((t,e)=>{t[e.value?0:1].push(e);return t}),[[],[]]);const o={readonly:this.readonly,disabled:this.disabled,identifier:this.identifier};const a=[Object.assign(Object.assign({},o),{checkboxes:i,messages:this.messages.input.checkbox.sections.selected}),Object.assign(Object.assign({},o),{checkboxes:n,messages:this.messages.input.checkbox.sections.notSelected})];return a.filter((t=>t.checkboxes.length)).map((t=>e("mg-input-checkbox-paginated",Object.assign({},t,{"onMass-action":this.handleMassAction,key:t.messages}))))}renderCheckboxMulti(){const t=this.getSelectedItems().length;const i=this.getDisplayItems();return e("div",{class:"mg-c-input__input-container"},e("mg-popover",{arrowHide:true,identifier:this.getMgPopoverIdentifier(),display:this.hasOpenedPopover,"onDisplay-change":this.handleMgPopoverDisplayChange,ref:t=>{if(t!==null)this.mgPopover=t}},e("mg-button",{variant:"secondary","aria-describedby":`${this.identifier}-title`},e("mg-icon",{icon:"list"}),this.getSelectValuesButtonMessage()),e("div",{slot:"content",class:"mg-c-input__content"},this.displaySearchInput?[e("mg-input-text",{key:"input-search",identifier:`${this.identifier}-input-search`,icon:"magnifying-glass",type:"search",placeholder:this.messages.input.checkbox.label,label:this.messages.input.checkbox.label,mgWidth:"full",value:this.searchValue,labelHide:true,characterLeftHide:true,name:"q","onValue-change":this.handleSearchChange,"aria-controls":"search-results items-list"}),e("p",{key:"search-results",role:"status",class:"mg-u-visually-hidden",id:"search-results"},`${i.length} ${this.messages.input.checkbox[i.length>0?"results":"result"]}`),e("div",{key:"sections-container",class:"mg-c-input__sections"},this.renderCheckboxBySection(i))]:e(Bt,{checkboxes:i,displaySearchInput:this.displaySearchInput,messages:this.messages.input.checkbox,id:"checkboxes-list",disabled:this.disabled,name:this.name,invalid:this.invalid}),this.displaySearchInput&&i.length===0&&e("p",{class:"mg-c-input__input-no-result"},this.messages.input.checkbox.noResult))),this.displaySelectedValues?t>0&&e("ul",{role:"list",class:"mg-c-input__input-container-list"},this.getSelectedItems().map((({title:t})=>e("li",{class:"mg-c-input__input-value",key:t},t)))):e("b",null,this.messages.input.checkbox[t>1?"selectedValues":"selectedValue"].replace("{nb}",t)))}render(){let t;const i=this.value.filter((({value:t})=>t)).map((({title:t})=>t));if(this.readonly){t=this.renderReadonly(i)}else if(this.type==="checkbox"){t=this.renderMgInputCheckboxList()}else{t=this.renderCheckboxMulti()}return e("mg-input",{key:"29c4a52d2f3a0e3d3b2a6f55ce3374aa818cf4eb",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:!this.readonly?this.required:undefined,tooltip:this.tooltip,tooltipPosition:this.readonly&&i.length===0?"label":this.tooltipPosition,helpText:!this.readonly?this.helpText:undefined,errorMessage:!this.readonly?this.errorMessage:undefined},t)}get element(){return n(this)}static get watchers(){return{value:["validateValue"],type:["validateType"],inputVerticalList:["watchInputVerticalList"],readonly:["watchReadonly","handleValidityChange"],displaySelectedValues:["watchDisplaySelectedValues"],required:["handleValidityChange"],disabled:["handleValidityChange","validateDisabled"],checkboxItems:["validateCheckboxItems"],displaySearchInput:["watchDisplaySearchInput"],searchValue:["validateSearchValue"]}}};qt.style=At;const Pt=class{constructor(e){t(this,e);this.massAction=o(this,"mass-action",7);this.offset=10;this.currentPage=1;this.checkboxes=[];this.expanded=true;this.massActionHandler=()=>{this.massAction.emit(this.sectionKind)};this.handleToggleClick=()=>{this.expanded=!this.expanded};this.getArrayRange=(t,e,i)=>t.slice(e,i);this.getPageCount=t=>(t===null||t===void 0?void 0:t.length)>0?Math.ceil(t.length/this.offset):0;this.handleCurrentPageChange=t=>{this.currentPage=Number(t.detail)}}watchCheckboxes(t,e){const i=this.getPageCount(t);const n=this.getPageCount(e);if(i===1||i!==0&&this.currentPage===0){this.currentPage=1}else if(n===this.currentPage&&i<this.currentPage){this.currentPage--}this.sectionKind=t[0].value?Dt.SELECTED:Dt.NOT_SELECTED}getFromToIndexes(){const t=this.currentPage===1;const e=t?0:(this.currentPage-1)*this.offset;const i=t?this.offset:this.currentPage*this.offset;return[e,i]}componentWillLoad(){this.watchCheckboxes(this.checkboxes)}render(){const t=t=>e("em",{key:"8f20e5be81047106e04cd101385b9c6555c0c38d",class:"mg-c-input__section-header-title-label"},`${this.messages[t.length>1?"titlePlurial":"title"]} (${t.length})`);const[n,o]=this.getFromToIndexes();const a=`items-${this.sectionKind}-container`;return e(i,{key:"39d0fc41abe4b537b240bdc14e80fc42cb41033d",hidden:this.checkboxes.length<1},e("div",{key:"fec430cfffc005a217694f9a4ba68412a6a08c7b",class:"mg-c-input__section-header"},this.sectionKind===Dt.SELECTED?e("mg-button",{variant:"flat",onClick:this.handleToggleClick,"aria-controls":a,"aria-expanded":this.expanded.toString()},e("mg-icon",{icon:this.expanded?"chevron-up":"chevron-down"}),e("span",{class:"mg-c-input__section-header-title"},t(this.checkboxes))):e("p",{class:"mg-c-input__section-header-title mg-c-input__section-header-title--static"},t(this.checkboxes)),(this.sectionKind===Dt.SELECTED&&this.expanded||this.sectionKind===Dt.NOT_SELECTED)&&e("mg-tooltip",{key:"e1b38d93875962af3024ac27e1892c040dbf9bdb",class:"mg-c-input__section-header-tootlip",message:this.messages.tooltip},e("mg-button",{key:"f593b3d5ca5bd8b3080253842a5c513709f16e3a",variant:"link",onClick:this.massActionHandler},this.messages.action)),this.expanded&&this.getPageCount(this.checkboxes)>1&&e("mg-pagination",{key:"search-pagination",totalPages:this.getPageCount(this.checkboxes),currentPage:this.currentPage,"onCurrent-page-change":this.handleCurrentPageChange,hideNavigationLabels:true,hidePageCount:true,identifier:`input-checkbox-pagination-${this.sectionKind}`})),e("div",{key:"74c18984938188e2861cd79b56d919a94f32064f",hidden:!this.expanded,id:a,class:"mg-c-input__section-content"},e(Bt,{key:"15c2f6fe98d772ce5b0a0d4ec448986e91592107",checkboxes:this.getArrayRange(this.checkboxes,n,o),displaySearchInput:true,messages:this.messages,id:`items-${this.sectionKind}`,disabled:this.disabled,name:this.name,invalid:this.invalid})))}static get watchers(){return{checkboxes:["watchCheckboxes"]}}};const It=".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}";const Tt=It;const St=class{constructor(e){t(this,e);this.valueChange=o(this,"value-change",7);this.inputValid=o(this,"input-valid",7);this.hasDisplayedError=false;this.name=this.identifier;this.labelHide=false;this.required=false;this.readonly=false;this.max="9999-12-31";this.disabled=false;this.tooltipPosition="input";this.classCollection=new r(["mg-c-input--date"]);this.isValidPattern=t=>l(t)&&d.test(t);this.formatHelpText=t=>{const e="{defaultHelpText}";let i=l(t)?t:this.messages.input.date.helpText;if(i.includes(e))i=i.replace(e,this.formatHelpText(this.messages.input.date.helpText));return i.replace("{pattern}",this.renderPattern()).replace("{date}",u(p(new Date("2023-12-24")),this.systemLocale))};this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleBlur=()=>{this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.handleKeyDown=t=>{if(["Delete","Backspace"].includes(t.key)){t.preventDefault();this.value=null;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}}};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity()&&(this.value===null||this.isValidPattern(this.value)))};this.getInputError=()=>{var t;let e=null;if(this.input.validity.badInput||this.value&&!this.isValidPattern(this.value)){e="badInput"}else if(this.input.validity.valueMissing){e="required"}else if((this.input.validity.rangeUnderflow||this.input.validity.rangeOverflow)&&((t=this.min)===null||t===void 0?void 0:t.length)>0&&this.max!=="9999-12-31"){e="minMax"}else if(this.input.validity.rangeUnderflow){e="min"}else if(this.input.validity.rangeOverflow){e="max"}return e};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){const e=this.getInputError();if(t!==undefined){this.errorMessage=t}else if(e==="required"){this.errorMessage=this.messages.errors[e]}else if(["min","max","minMax"].includes(e)){this.errorMessage=this.messages.errors.date[e].replace("{min}",u(this.min,this.systemLocale)).replace("{max}",u(this.max,this.systemLocale))}else{this.errorMessage=this.messages.errors.date.badInput.replace("{pattern}",this.renderPattern())}}};this.renderPattern=()=>{let t=v(this.systemLocale);for(const e in this.messages.input.date.pattern){t=t.replace(e,this.messages.input.date.pattern[e])}return`<span aria-hidden="true">${t}</span><span class="mg-u-visually-hidden">${[...t].join(" ")}</span>`}}validateValue(t){if(["",undefined].includes(t)){this.value=null}else if(t&&!l(t)){throw new Error(`<mg-input-date> props 'value' must be a valid string. Passed value: ${s(t)}.`)}else if(t===null||this.isValidPattern(t)){this.valueChange.emit(t)}else{console.error("<mg-input-date> props 'value' doesn't match pattern: 'yyyy-mm-dd'.")}}watchReadonly(t){if(t)this.classCollection.add(C);else this.classCollection.delete(C)}validateMinMax(t){if(t&&!this.isValidPattern(t)){throw new Error(`<mg-input-date> props 'min/max' doesn't match pattern: 'yyyy-mm-dd'. Passed value: ${s(t)}.`)}}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(V);else this.classCollection.delete(V)}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-date> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-date> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value=null;this.checkValidity();this.invalid=false;this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){const t=k(this.element);this.locale=t.locale;this.messages=t.messages;this.systemLocale=Intl.DateTimeFormat().resolvedOptions().locale;this.validateValue(this.value);this.validateMinMax(this.min);this.validateMinMax(this.max);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"78d4b2b8adb5aa39757e9e077a3d597d72b5c61b",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===null?"label":this.tooltipPosition,helpText:this.formatHelpText(this.helpText),errorMessage:this.errorMessage},this.readonly?this.value&&e("b",{class:"mg-c-input__readonly-value"},u(this.value,this.locale)):e("input",{type:"date",class:"mg-c-input__box",min:this.min,max:this.max,value:this.value,id:this.identifier,name:this.name,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>{if(t!==null)this.input=t}}))}get element(){return n(this)}static get watchers(){return{value:["validateValue"],readonly:["watchReadonly","handleValidityChange"],min:["validateMinMax","handleValidityChange"],max:["validateMinMax","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"]}}};St.style=Tt;const Ot=["decimal","integer"];const jt=["none","number","currency","percent","unit"];const Rt=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{width:max-content}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:has(textarea){flex-grow:inherit}.mg-c-input.mg-c-input--width-2 .mg-c-input__box{width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-48) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-4 .mg-c-input__box{width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-72) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-16 .mg-c-input__box{width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(calc(26 * var(--mg-b-size-8)) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input .mg-c-input__box{width:auto;text-align:var(--mg-c-input-text-align, right)}";const Wt=Rt;const Nt=class{constructor(i){t(this,i);this.valueChange=o(this,"value-change",7);this.inputValid=o(this,"input-valid",7);this.hasDisplayedError=false;this.name=this.identifier;this.labelHide=false;this.required=false;this.readonly=false;this.disabled=false;this.tooltipPosition="input";this.type="decimal";this.format="number";this.currency="EUR";this.unitDisplay="short";this.integerLength=13;this.decimalLength=2;this.classCollection=new r(["mg-c-input--numeric"]);this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleFocus=()=>{this.hasFocus=true};this.handleBlur=()=>{if(this.value==="-")this.value="";this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined;this.hasFocus=false}))};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.getInputError()===null)};this.formatErrorValue=t=>f(t,this.locale,!Number.isInteger(t)&&this.type==="decimal"?this.decimalLength:0);this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){const e=this.getInputError();if(t!==undefined){this.errorMessage=t}else if(e==="required"){this.errorMessage=this.messages.errors[e]}else{const t=this.formatErrorValue(this.min);const i=this.formatErrorValue(this.max);this.errorMessage=this.messages.errors.numeric[e].replace("{min}",t).replace("{max}",i)}}};this.getInputError=()=>{let t=null;const e=t=>!t.some((t=>[null,undefined].includes(t)));if(!this.input.checkValidity()&&this.input.validity.valueMissing){t="required"}else if(e([this.min,this.numericValue])&&this.numericValue<this.min&&this.max===undefined){t="min"}else if(e([this.max,this.numericValue])&&this.numericValue>this.max&&this.min===undefined){t="max"}else if(e([this.min,this.max,this.numericValue])&&(this.numericValue<this.min||this.numericValue>this.max)){t="minMax"}return t};this.formatValue=t=>{switch(this.format){case"number":return f(t,this.locale,this.type==="decimal"?this.decimalLength:undefined);case"currency":return _(t,this.locale,this.currency);case"percent":return w(t/100,this.locale,this.type==="decimal"?this.decimalLength:undefined);case"unit":return b(t,this.locale,this.unit,this.unitDisplay,this.type==="decimal"?this.decimalLength:undefined);case"none":return t.toString()}};this.validateAppendSlot=()=>{const t=this.element.querySelector('[slot="append-input"]');if(t!==null){if(t.nodeName==="MG-BUTTON"){this.classCollection.add("mg-c-input--is-input-group-append")}else{this.classCollection.add("mg-c-input--is-append-input-slot-content");this.slotContent=t.textContent}}};this.renderReadonly=()=>this.slotContent!==undefined?e("span",{class:"mg-c-input__readonly-value"},e("b",null,this.readonlyValue),this.slotContent):e("b",{class:"mg-c-input__readonly-value"},this.readonlyValue)}validateValue(t){if(typeof t==="string"){const[e,i=""]=t.replace("-","").split(/[.,]/);const n=this.type==="integer"?/^-?\d+$/:/^-?\d+(?:[.,]\d*)?$/;if(this.isValidValue(t,n,e,i)){this.storedValue=t}else{t=this.handleInvalidValue()}this.updateValues(t)}}watchReadonly(t){if(t)this.classCollection.add(C);else this.classCollection.delete(C)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(V);else this.classCollection.delete(V)}watchMgWidth(t){D.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}validateType(t){if(!Ot.includes(t)){throw new Error(`<mg-input-numeric> prop "type" must be one of: ${Ot.join(", ")}. Passed value: ${s(t)}.`)}}watchFormat(t){if(!jt.includes(t)){throw new Error(`<mg-input-numeric> prop "format" must be one of: ${jt.join(", ")}. Passed value: ${s(t)}.`)}}validateIntegerLength(t){if(t<1){throw new Error(`<mg-input-numeric> prop "integer-length" must be a positive number. Passed value: ${s(t)}.`)}}validateDecimalLength(t){if(t<1){throw new Error(`<mg-input-numeric> prop "decimal-length" must be a positive number, consider using prop "type" to "integer" instead. Passed value: ${s(t)}.`)}}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-numeric> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-numeric> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value="";this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}isValidValue(t,e,i,n){return["","-"].includes(t)||e.exec(t)!==null&&i.length<=this.integerLength&&n.length<=(this.type==="integer"?0:this.decimalLength)}handleInvalidValue(){var t;return(t=this.storedValue)!==null&&t!==void 0?t:null}updateValues(t){this.value=t;if(this.input!==undefined)this.input.value=this.value;this.numericValue=!["",null].includes(this.value)?parseFloat(this.value.replace(",",".")):null;this.valueChange.emit(this.numericValue);this.readonlyValue=this.numericValue!==null?this.formatValue(this.numericValue):""}displayValue(){return this.hasFocus?this.value:this.readonlyValue}componentWillLoad(){const t=k(this.element);this.locale=t.locale;this.messages=t.messages;this.watchFormat(this.format);this.validateType(this.type);this.validateIntegerLength(this.integerLength);this.validateDecimalLength(this.decimalLength);this.validateValue(this.value);this.validateAppendSlot();this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);this.watchMgWidth(this.mgWidth);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"1607a9811037ae2e3a5c1f444f6ec05da38b990b",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.readonlyValue&&this.renderReadonly():[e("input",{key:"input",type:"text",class:"mg-c-input__box mg-c-input__box--width",value:this.displayValue(),id:this.identifier,name:this.name,placeholder:this.placeholder,title:this.placeholder,disabled:this.disabled,required:this.required,autocomplete:"off","aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),e("slot",{key:"slot",name:"append-input"})])}get element(){return n(this)}static get watchers(){return{value:["validateValue"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],min:["handleValidityChange"],max:["handleValidityChange"],mgWidth:["watchMgWidth"],type:["validateType"],format:["watchFormat"],integerLength:["validateIntegerLength"],decimalLength:["validateDecimalLength"]}}};Nt.style=Wt;const Ut=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{width:max-content}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:has(textarea){flex-grow:inherit}.mg-c-input.mg-c-input--width-2 .mg-c-input__box{width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-48) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-4 .mg-c-input__box{width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-72) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-16 .mg-c-input__box{width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(calc(26 * var(--mg-b-size-8)) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input.mg-c-input--password .mg-c-input__input-icon{color:var(--mg-b-color-dark)}.mg-c-input.mg-c-input--password .mg-c-input__input-group{position:relative;flex-grow:1}.mg-c-input.mg-c-input--password .mg-c-input__append-button{position:absolute;right:0}.mg-c-input.mg-c-input--password .mg-c-input__box{padding-right:calc(var(--mg-b-size-min-height) + var(--mg-b-size-8))}.mg-c-input.mg-c-input--password .mg-c-input__box::-ms-reveal{display:none}";const Ft=Ut;const Gt=class{constructor(e){t(this,e);this.valueChange=o(this,"value-change",7);this.inputValid=o(this,"input-valid",7);this.hasDisplayedError=false;this.name=this.identifier;this.labelHide=false;this.required=false;this.readonly=false;this.disabled=false;this.mgWidth="full";this.tooltipPosition="input";this.classCollection=new r(["mg-c-input--password"]);this.displayPassword=false;this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleBlur=()=>{this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.toggleDisplayPassword=()=>{this.displayPassword=!this.displayPassword};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity())};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}}}}handleValue(t){this.valueChange.emit(t)}watchReadonly(t){if(t)this.classCollection.add(C);else this.classCollection.delete(C)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(V);else this.classCollection.delete(V)}watchMgWidth(t){D.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-password> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-password> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value="";this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);this.watchMgWidth(this.mgWidth);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"041b674ecb4d2750c5f404d7862756bb56dbd8f7",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.value!==undefined&&e("b",{class:"mg-c-input__readonly-value"},"•".repeat(this.value.length)):e("span",{class:"mg-c-input__input-group"},e("input",{type:this.displayPassword?"text":"password",class:"mg-c-input__box mg-c-input__box--width",value:this.value,id:this.identifier,name:this.name,placeholder:this.placeholder,title:this.placeholder,disabled:this.disabled,required:this.required,maxlength:this.maxlength,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),e("mg-button",{label:this.messages.input.password[this.displayPassword?"hide":"display"],disabled:this.disabled,variant:"flat",class:"mg-c-input__append-button","is-icon":true,onClick:this.toggleDisplayPassword,"aria-controls":this.identifier},e("mg-icon",{class:"mg-c-input__input-icon",icon:this.displayPassword?"eye-slash":"eye"}))))}get element(){return n(this)}static get watchers(){return{value:["handleValue"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],mgWidth:["watchMgWidth"]}}};Gt.style=Ft;const Kt=".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input.mg-c-input--fieldset{padding:0;border:0;margin-right:0;margin-left:0}.mg-c-input.mg-c-input--fieldset input[type=radio],.mg-c-input.mg-c-input--fieldset input[type=checkbox]{width:var(--mg-c-input-check-size);height:var(--mg-c-input-check-size);flex-shrink:0;margin:calc((var(--mg-b-font-size)*var(--mg-b-line-height) - var(--mg-c-input-check-size))/2) var(--mg-b-size-8) 0 0}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group{display:flex;align-items:start}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group-container{display:flex;flex-wrap:wrap;padding:0;margin:0;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);gap:var(--mg-b-size-12) var(--mg-b-size-24);list-style:none}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group.mg-c-input__input-group--disabled label{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--fieldset.mg-c-input--vertical-list .mg-c-input__input-group-container,.mg-c-input.mg-c-input--fieldset.mg-c-input--checkbox-multi .mg-c-input__input-group-container{flex-direction:column}.mg-c-input.mg-c-input--fieldset.mg-c-input--label-on-top .mg-c-input__input-group-container{margin-top:var(--mg-b-size-8)}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}";const Yt=Kt;const Jt=t=>typeof t==="object"&&typeof t.title==="string"&&t.value!==undefined;const Zt=class{constructor(e){t(this,e);this.valueChange=o(this,"value-change",7);this.inputValid=o(this,"input-valid",7);this.inputs=[];this.classVerticalList="mg-c-input--vertical-list";this.hasDisplayedError=false;this.name=this.identifier;this.labelOnTop=false;this.labelHide=false;this.inputVerticalList=false;this.required=false;this.readonly=false;this.disabled=false;this.tooltipPosition="input";this.classCollection=new r(["mg-c-input--radio",M]);this.handleInput=t=>{this.checkValidity();this.value=this.options[t.target.value].value};this.handleBlur=()=>{this.handlerInProgress="blur";this.checkValidity();this.setErrorMessage();this.handlerInProgress=undefined};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.getInvalidElement()===undefined)};this.setErrorMessage=t=>{const e=this.getInvalidElement();this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(e.validity.valueMissing){this.errorMessage=this.messages.errors.required}}};this.getInvalidElement=()=>this.inputs.find((t=>!t.disabled&&!t.readOnly&&!t.checkValidity()))}watchValue(t){var e;if(x(this.items)&&typeof t==="string"){this.readonlyValue=t}else if(Array.isArray(this.items)&&this.items.every(Jt)){this.readonlyValue=(e=this.items.find((e=>e.value===t)))===null||e===void 0?void 0:e.title}else{this.readonlyValue=null}this.valueChange.emit(t)}validateItems(t){if(typeof t==="object"&&t.length<2){throw new Error(`<mg-input-radio> prop "items" require at least 2 items. Passed value: ${s(t)}.`)}else if(x(t)){this.options=t.map((t=>({title:t,value:t,disabled:this.disabled})))}else if(t&&t.every((t=>Jt(t)))){this.options=t}else{throw new Error(`<mg-input-radio> prop "items" is required and all items must be the same type, string or RadioOption. Passed value: ${s(t)}.`)}}watchInputVerticalList(t){if(t)this.classCollection.add(this.classVerticalList);else this.classCollection.delete(this.classVerticalList)}watchReadonly(t){if(t)this.classCollection.add(C);else this.classCollection.delete(C)}handleValidityChange(t,e,i){this.inputs.forEach((e=>{e[i]=t}));this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}watchDisabled(t){if(t)this.classCollection.add(V);else this.classCollection.delete(V)}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-radio> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-radio> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value=undefined;this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.validateItems(this.items);this.watchInputVerticalList(this.inputVerticalList);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);this.watchValue(this.value);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"d03651917d40124900adbcfd6d5e8bdb44ba340d",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&!this.value?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.readonlyValue&&e("b",{class:"mg-c-input__readonly-value"},this.readonlyValue):e("ul",{class:"mg-c-input__input-group-container",role:"list"},this.options.map(((t,i)=>e("li",{key:t.title,class:{"mg-c-input__input-group":true,"mg-c-input__input-group--disabled":this.disabled||t.disabled}},e("input",{type:"radio",id:this.identifier+"_"+i,name:this.identifier,value:i,checked:JSON.stringify(this.value)===JSON.stringify(this.options[i].value),disabled:this.disabled||t.disabled,required:this.required,onBlur:this.handleBlur,onInput:this.handleInput,ref:t=>{if(t!==null)this.inputs[i]=t}}),e("label",{htmlFor:this.identifier+"_"+i},t.title))))))}get element(){return n(this)}static get watchers(){return{value:["watchValue"],items:["validateItems"],inputVerticalList:["watchInputVerticalList"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"]}}};Zt.style=Yt;const Xt=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{width:max-content}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:has(textarea){flex-grow:inherit}.mg-c-input.mg-c-input--width-2 .mg-c-input__box{width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-48) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-4 .mg-c-input__box{width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-72) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-16 .mg-c-input__box{width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(calc(26 * var(--mg-b-size-8)) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input__box{padding-top:0;padding-right:var(--mg-b-size-8);padding-bottom:0}@media screen and (max-width: 767px){.mg-c-input__box{width:100%}}";const Qt=Xt;const te=t=>typeof t==="object"&&typeof t.title==="string";const ee=t=>Array.isArray(t)&&t.every((t=>te(t)));const ie=t=>typeof t==="object"&&typeof t.group==="string"&&ee(t.options);const ne=(t,{group:e,title:i,value:n,disabled:o})=>{if(e!==undefined){const a=t.find((t=>t.group===e));if(a!==undefined){a.options.push({title:i,value:n,disabled:o})}else{t.push({group:e,options:[{title:i,value:n,disabled:o}]})}}else{t.push({title:i,value:n,disabled:o})}return t};const oe=class{constructor(i){t(this,i);this.valueChange=o(this,"value-change",7);this.inputValid=o(this,"input-valid",7);this.hasDisplayedError=false;this.name=this.identifier;this.labelHide=false;this.placeholderHide=false;this.placeholderDisabled=false;this.required=false;this.readonly=false;this.disabled=false;this.tooltipPosition="input";this.classCollection=new r(["mg-c-input--select"]);this.handleInput=()=>{this.updateValue();if(this.hasDisplayedError)this.setErrorMessage()};this.isInputValue=t=>{var e;return t.title===((e=this.input)===null||e===void 0?void 0:e.value)};this.setValue=t=>{this.checkValidity();this.value=t};this.updateValue=()=>{if(this.input.value===""){this.setValue(null)}else if(x(this.items)&&this.items.includes(this.input.value)){this.setValue(this.input.value)}else if(ee(this.items)&&typeof this.input.value==="string"&&this.items.some(this.isInputValue)){this.setValue(this.items.find(this.isInputValue).value)}else{this.options.push({title:this.input.value,value:this.input.value,disabled:true});this.setValue(this.input.value)}};this.handleBlur=()=>{this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.isDisabledValue=()=>{var t;return ee(this.options)&&((t=this.options.find(this.isInputValue))===null||t===void 0?void 0:t.disabled)===true};this.checkValidity=()=>{this.setValidity(!this.isDisabledValue()&&(this.readonly||this.disabled||this.input.checkValidity()))};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}}};this.renderOption=t=>e("option",{key:t.title,value:t.title,selected:JSON.stringify(this.value)===JSON.stringify(t.value),disabled:t.disabled},t.title)}validateValue(t){var e,i;if(x(this.items)&&typeof t==="string"){this.readonlyValue=((e=this.input)===null||e===void 0?void 0:e.value)!==undefined?this.input.value:t}else if(ee(this.items)){this.readonlyValue=(i=this.items.find((e=>e.value===t)))===null||i===void 0?void 0:i.title}else{this.readonlyValue=null}this.valueChange.emit(t)}validateItems(t){if(t.length===0){this.options=[]}else if(x(t)){if(typeof this.value==="string")this.valueExist=t.includes(this.value);this.options=t.map((t=>({title:t,value:t})))}else if(ee(t)){this.valueExist=t.map((t=>t.value)).includes(this.value);if(t.some((t=>Boolean(t.group)))){this.options=t.reduce(ne,[])}else{this.options=t}}else{throw new Error(`<mg-input-select> prop "items" is required, can be an empty Array or all items must be the same type: string or Option. Passed value: ${s(t)}.`)}}watchReadonly(t){if(t)this.classCollection.add(C);else this.classCollection.delete(C)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(V);else this.classCollection.delete(V)}watchMgWidth(t){D.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-select> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-select> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value=null;this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.validateItems(this.items);this.validateValue(this.value);this.watchMgWidth(this.mgWidth);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);if(this.placeholder===undefined||this.placeholder===""){this.placeholder=this.messages.input.select.placeholder}return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"ac2d857a179ea42d762dee655df5c6d073c920f0",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.readonlyValue===null?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.readonlyValue&&e("b",{class:"mg-c-input__readonly-value"},this.readonlyValue):e("select",{class:"mg-c-input__box",id:this.identifier,name:this.name,title:this.placeholder,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}},(!this.placeholderHide||!this.valueExist)&&e("option",{value:"",disabled:this.placeholderDisabled&&this.valueExist},this.placeholder),this.options.map((t=>ie(t)?e("optgroup",{label:t.group,key:t.group},t.options.map(this.renderOption)):te(t)&&this.renderOption(t)))))}get element(){return n(this)}static get watchers(){return{value:["validateValue"],items:["validateItems"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],mgWidth:["watchMgWidth"]}}};oe.style=Qt;const ae=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{width:max-content}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:has(textarea){flex-grow:inherit}.mg-c-input.mg-c-input--width-2 .mg-c-input__box{width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-48) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-4 .mg-c-input__box{width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-72) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-16 .mg-c-input__box{width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(calc(26 * var(--mg-b-size-8)) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input.mg-c-input--display-character-left mg-character-left{font-size:var(--mg-b-font-size-small);opacity:.6}.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__help-text ::slotted(*),.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__error ::slotted(*){margin-top:0}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input__with-character-left{position:relative;width:100%}.mg-c-input.mg-u-is-focused .mg-c-input__with-character-left .mg-c-input__box{padding-right:max(var(--mg-c-character-left-message-length)*(.35ch + .3rem) + var(--mg-b-size-16)*clamp(0,var(--mg-c-character-left-message-length),1),var(--mg-b-size-8))}.mg-c-input__with-character-left mg-character-left{position:absolute;top:50%;right:var(--mg-b-size-8);display:none;font-size:var(--mg-b-font-size-small);opacity:.6;transform:translateY(-50%)}.mg-c-input.mg-u-is-focused .mg-c-input__with-character-left mg-character-left{display:block}.mg-c-input.mg-c-input--readonly b{min-height:var(--mg-b-font-size);margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2)}.mg-c-input.mg-c-input--has-icon .mg-c-input__with-character-left>mg-icon{position:absolute;top:50%;left:var(--mg-b-size-8);color:var(--mg-c-input-color-icon);transform:translateY(-50%)}.mg-c-input.mg-c-input--has-icon .mg-c-input__with-character-left .mg-c-input__box{padding-left:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2)}";const se=ae;const re=t=>typeof t==="object"&&typeof t.title==="string"&&t.value!==undefined;const le=t=>x(t)||Array.isArray(t)&&t.every(re);const ce=class{constructor(i){t(this,i);this.valueChange=o(this,"value-change",7);this.inputValid=o(this,"input-valid",7);this.classFocus="mg-u-is-focused";this.classIsInputGroupAppend="mg-c-input--is-input-group-append";this.classHasIcon="mg-c-input--has-icon";this.classHasButtonsGroupAppend="mg-c-input--has-buttons-group-append";this.classIsAppendInputSlotContent="mg-c-input--is-append-input-slot-content";this.hasDisplayedError=false;this.name=this.identifier;this.type="text";this.labelHide=false;this.maxlength=400;this.required=false;this.readonly=false;this.disabled=false;this.mgWidth="full";this.tooltipPosition="input";this.characterLeftHide=false;this.classCollection=new r(["mg-c-input--text"]);this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleFocus=()=>{this.classCollection.add(this.classFocus);this.classCollection=new r(this.classCollection.classes)};this.handleBlur=()=>{this.classCollection.delete(this.classFocus);this.classCollection=new r(this.classCollection.classes);this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity())};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid&&t!==undefined){this.errorMessage=t}else if(!this.valid&&this.input.validity.patternMismatch){this.errorMessage=this.patternErrorMessage}else if(!this.valid&&this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}};this.validateAppendSlot=()=>{const t=Array.from(this.element.querySelectorAll('[slot="append-input"]'));if(t.length===1){if(t[0].nodeName==="MG-BUTTON"){this.classCollection.add(this.classIsInputGroupAppend)}else{this.classCollection.add(this.classIsAppendInputSlotContent);this.slotContent=t[0].textContent}}else if(t.filter((t=>t.nodeName==="MG-BUTTON")).length>1){this.classCollection.add(this.classIsInputGroupAppend);this.classCollection.add(this.classHasButtonsGroupAppend)}};this.hasDatalist=()=>le(this.datalistoptions)&&this.datalistoptions.length>0;this.renderReadonly=()=>this.slotContent!==undefined?e("span",{class:"mg-c-input__readonly-value"},e("b",null,this.value),this.slotContent):e("b",{class:"mg-c-input__readonly-value"},this.value)}handleValue(t){var e,i;if((e=this.datalistoptions)===null||e===void 0?void 0:e.every(re)){this.valueChange.emit(((i=this.datalistoptions.find((e=>e.title===t)))===null||i===void 0?void 0:i.value)||t)}else{this.valueChange.emit(t)}}validateIcon(t){if(t!==undefined){this.classCollection.add(this.classHasIcon)}else{this.classCollection.delete(this.classHasIcon)}}validateDatalistoptions(t){if(Boolean(t)&&!le(t)){throw new Error(`<mg-input-text> prop "datalistoptions" values must be the same type, string or OptionType. Passed value: ${s(t)}.`)}}watchReadonly(t){if(t)this.classCollection.add(C);else this.classCollection.delete(C)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(V);else this.classCollection.delete(V)}watchMgWidth(t){D.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}validatePattern(t){if(t!==undefined&&!(l(this.pattern)&&l(this.patternErrorMessage))){throw new Error(`<mg-input-text> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${s(this.pattern)}'" and "patternErrorMessage='${s(this.patternErrorMessage)}'".`)}}async setFocus(){this.input.focus()}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-text> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-text> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value="";this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.characterLeftId=`${this.identifier}-character-left`;this.datalistId=`${this.identifier}-datalist`;this.validateIcon(this.icon);this.validateDatalistoptions(this.datalistoptions);this.validatePattern(this.pattern);this.validatePattern(this.patternErrorMessage);this.validateAppendSlot();this.watchMgWidth(this.mgWidth);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"3677b48b65765727f36e9379af1282d5a8f3762c",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[this.characterLeftId],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.value&&this.renderReadonly():[e("div",{key:"input",class:"mg-c-input__with-character-left",style:{"--mg-c-character-left-message-length":(!this.characterLeftHide?this.maxlength.toString().length*2+1:0).toString()}},this.icon!==undefined&&e("mg-icon",{icon:this.icon}),e("input",{type:this.type,class:"mg-c-input__box mg-c-input__box--width",value:this.value,id:this.identifier,list:this.hasDatalist()?this.datalistId:undefined,autocomplete:this.hasDatalist()?"off":undefined,name:this.name,placeholder:this.placeholder,title:this.placeholder,maxlength:this.maxlength,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),pattern:this.pattern,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),this.hasDatalist()&&e("datalist",{id:this.datalistId},this.datalistoptions.map((t=>e("option",{value:re(t)?t.title:t,key:t})))),!this.characterLeftHide&&this.maxlength>0&&e("mg-character-left",{identifier:this.characterLeftId,characters:this.value,maxlength:this.maxlength})),e("slot",{key:"slot",name:"append-input"})])}get element(){return n(this)}static get watchers(){return{value:["handleValue"],icon:["validateIcon"],datalistoptions:["validateDatalistoptions"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],mgWidth:["watchMgWidth"],pattern:["validatePattern"],patternErrorMessage:["validatePattern"]}}};ce.style=se;const he=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{width:max-content}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:has(textarea){flex-grow:inherit}.mg-c-input.mg-c-input--width-2 .mg-c-input__box{width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-48) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-4 .mg-c-input__box{width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-72) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-16 .mg-c-input__box{width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(calc(26 * var(--mg-b-size-8)) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-c-input.mg-c-input--display-character-left mg-character-left{font-size:var(--mg-b-font-size-small);opacity:.6}.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__help-text ::slotted(*),.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__error ::slotted(*){margin-top:0}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input__input{align-items:start}.mg-c-input__box{display:block;height:auto;resize:none}.mg-c-input__box.mg-c-input__box--resizable{resize:both}.mg-c-input__box.mg-c-input__box--resizable-horizontal{resize:horizontal}.mg-c-input__box.mg-c-input__box--resizable-vertical{resize:vertical}.mg-c-input__readonly-value{white-space:pre-line}.mg-c-input__with-character-left{flex-grow:1}.mg-c-input__with-character-left mg-character-left{display:block;text-align:end;visibility:hidden}.mg-c-input.mg-u-is-focused .mg-c-input__with-character-left mg-character-left{visibility:visible}@-moz-document url-prefix(){.mg-c-input__box{overflow-x:hidden}}";const ge=he;const me=class{constructor(e){t(this,e);this.valueChange=o(this,"value-change",7);this.inputValid=o(this,"input-valid",7);this.classFocus="mg-u-is-focused";this.classDisplayCharacterLeft="mg-c-input--display-character-left";this.hasDisplayedError=false;this.name=this.identifier;this.labelHide=false;this.maxlength=4e3;this.required=false;this.readonly=false;this.disabled=false;this.mgWidth="full";this.rows=3;this.tooltipPosition="input";this.characterLeftHide=false;this.resizable="none";this.classCollection=new r(["mg-c-input--textarea"]);this.handleInput=()=>{if(this.hasDisplayedError){this.checkValidity();this.setErrorMessage()}this.value=this.input.value};this.handleFocus=()=>{this.classCollection.add(this.classFocus);this.classCollection=new r(this.classCollection.classes)};this.handleBlur=()=>{this.classCollection.delete(this.classFocus);this.classCollection=new r(this.classCollection.classes);this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.getPatternValidity=()=>this.pattern===undefined||new RegExp(`^${this.pattern}$`,"u").test(this.value);this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity()&&this.getPatternValidity())};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(!this.getPatternValidity()){this.errorMessage=this.patternErrorMessage}else if(this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}}}}handleValue(t){this.checkValidity();this.valueChange.emit(t)}watchReadonly(t){if(t)this.classCollection.add(C);else this.classCollection.delete(C)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}validateDisabled(t){if(t)this.classCollection.add(V);else this.classCollection.delete(V)}watchMgWidth(t){D.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}validatePattern(t){if(t!==undefined&&!(l(this.pattern)&&l(this.patternErrorMessage))){throw new Error(`<mg-input-textarea> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${s(this.pattern)}'" and "patternErrorMessage='${s(this.patternErrorMessage)}'".`)}}validatecharacterLeftHide(t){if(t){this.classCollection.delete(this.classDisplayCharacterLeft)}else{this.classCollection.add(this.classDisplayCharacterLeft)}}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid;t()}))}))}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-textarea> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-textarea> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value="";this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.characterLeftId=`${this.identifier}-character-left`;this.validatecharacterLeftHide(this.characterLeftHide);this.validatePattern(this.pattern);this.validatePattern(this.patternErrorMessage);this.watchMgWidth(this.mgWidth);this.watchReadonly(this.readonly);this.validateDisabled(this.disabled);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"02f06e7eb60af078d6ddba8d998cd57132cbf7f0",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[this.characterLeftId],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.value&&e("b",{class:"mg-c-input__readonly-value"},this.value):e("div",{class:"mg-c-input__with-character-left"},e("textarea",{class:{"mg-c-input__box":true,"mg-c-input__box--width":true,"mg-c-input__box--resizable":this.resizable==="both","mg-c-input__box--resizable-horizontal":this.resizable==="horizontal","mg-c-input__box--resizable-vertical":this.resizable==="vertical"},value:this.value,id:this.identifier,name:this.name,placeholder:this.placeholder,title:this.placeholder,rows:this.rows,maxlength:this.maxlength,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),!this.characterLeftHide&&this.maxlength>0&&e("mg-character-left",{identifier:this.characterLeftId,characters:this.value,maxlength:this.maxlength})))}get element(){return n(this)}static get watchers(){return{value:["handleValue"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","validateDisabled"],mgWidth:["watchMgWidth"],pattern:["validatePattern"],patternErrorMessage:["validatePattern"],characterLeftHide:["validatecharacterLeftHide"]}}};me.style=ge;const de=".mg-u-form-legacy.sc-mg-input-title{--mg-c-form-inputs-title-width:calc(100% / 3 - 20px)}.mg-u-is-asterisk.sc-mg-input-title{color:var(--mg-b-color-danger)}legend.mg-c-input-title.sc-mg-input-title{padding-right:0;padding-left:0}.mg-c-input-title__required.sc-mg-input-title{display:var(--mg-c-input-title-display, unset)}";const ue=de;const pe=class{constructor(e){t(this,e);this.isLegend=false;this.tagName="label"}validateIdentifier(t){if(!l(t)){throw new Error('<mg-input-title> prop "identifier" is required.')}else if(!h(t)){console.error(`<mg-input-title> prop "identifier" value is invalid. Passed value: ${s(t)}.`)}}validateIsLegend(t){this.tagName=t?"legend":"label"}componentWillLoad(){this.validateIdentifier(this.identifier);this.validateIsLegend(this.isLegend)}render(){const t=this.readonly?"span":this.tagName;return e(t,{key:"f8f8baaeb87e7c2cc77e71781f4d33ea5a63f760",class:"mg-c-input-title",htmlFor:!this.isLegend&&this.identifier,id:this.isLegend?`${this.identifier}-title`:undefined},e("slot",{key:"7f6c0f451dfe789d924e9f608813e03bc72ad88a"}),this.required&&!this.readonly&&e("span",{key:"a78c5191995399e3e2ad346fec8546277581ca9d",class:"mg-c-input-title__required"}," ",e("span",{key:"ae8df5f13d54a1b8419d0d01048ff91dda601ab6",class:"mg-u-is-asterisk"},"*")))}static get watchers(){return{identifier:["validateIdentifier"],isLegend:["validateIsLegend"]}}};pe.style=ue;const ve=".mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);word-break:break-word}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-input__toggle-item-container{overflow:hidden;box-sizing:border-box;padding:var(--mg-b-size-4) var(--mg-b-size-8);border:0;border-radius:calc((var(--mg-b-font-size)*var(--mg-b-line-height) + 2*var(--mg-b-size-4))/var(--mg-c-input-toggle-border-radius-ratio));background-color:unset;color:var(--mg-b-color-dark);font-weight:unset;text-overflow:ellipsis;white-space:nowrap}.mg-c-input__toggle-item-container:first-of-type{background-color:color-mix(in srgb, var(--mg-b-color-app), white 80%);color:var(--mg-b-color-app);font-weight:600}.mg-c-input__button-toggle{display:flex;min-width:0;padding:var(--mg-b-size-4);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:calc((var(--mg-b-font-size)*var(--mg-b-line-height) + 2*(var(--mg-b-size-4) + var(--mg-b-size-4) + var(--mg-c-input-border-width)))/var(--mg-c-input-toggle-border-radius-ratio));background-color:var(--mg-b-color-light);cursor:pointer;font-family:var(--mg-b-font-family);font-size:inherit;line-height:inherit}.mg-c-input__button-toggle:disabled{cursor:default}.mg-c-input.mg-c-input--toggle .mg-c-input__input-container{min-width:0;flex:auto}.mg-c-input.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:first-of-type{background-color:unset;color:var(--mg-b-color-dark);font-weight:unset}.mg-c-input.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:last-of-type{background-color:color-mix(in srgb, var(--mg-b-color-app), white 80%);color:var(--mg-b-color-info);font-weight:600}.mg-c-input.mg-c-input--toggle-icon .mg-c-input__toggle-item-container{display:flex;width:calc(var(--mg-b-font-size)*var(--mg-b-line-height) + 2*var(--mg-b-size-4));height:calc(var(--mg-b-font-size)*var(--mg-b-line-height) + 2*var(--mg-b-size-4));align-items:center;justify-content:center;padding:0;visibility:hidden}.mg-c-input.mg-c-input--toggle-icon .mg-c-input__toggle-item-container:first-of-type{visibility:visible}.mg-c-input.mg-c-input--toggle-icon .mg-c-input__toggle-item-container ::slotted(mg-icon){display:flex}.mg-c-input.mg-c-input--toggle-icon.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:first-of-type{visibility:hidden}.mg-c-input.mg-c-input--toggle-icon.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:last-of-type{visibility:visible}.mg-c-input.mg-c-input--toggle-on-off .mg-c-input__toggle-item-container:first-of-type{background-color:var(--mg-b-color-neutral-30);color:var(--mg-b-color-dark);font-weight:600}.mg-c-input.mg-c-input--toggle-on-off.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:first-of-type{background-color:unset;color:var(--mg-b-color-dark);font-weight:unset}";const fe=ve;const be=t=>typeof t==="object"&&typeof t.title==="string"&&t.value!==undefined;const we=class{constructor(e){t(this,e);this.valueChange=o(this,"value-change",7);this.inputValid=o(this,"input-valid",7);this.classIsActive="mg-c-input--toggle-is-active";this.classOnOff="mg-c-input--toggle-on-off";this.classIcon="mg-c-input--toggle-icon";this.name=this.identifier;this.labelHide=false;this.isOnOff=false;this.isIcon=false;this.readonly=false;this.disabled=false;this.tooltipPosition="input";this.classCollection=new r(["mg-c-input--toggle"]);this.checked=false;this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid&&t!==undefined){this.errorMessage=t}};this.toggleChecked=()=>{this.checked=!this.checked};this.validateSlots=()=>{const t=Array.from(this.element.children);if(t.length!==2){throw new Error("<mg-input-toggle> 2 slots are required.")}else if(!this.isIcon){t.forEach((t=>t.setAttribute("title",t.textContent)))}};this.getCheckedItem=t=>{var e;if(((e=this.options)===null||e===void 0?void 0:e.length)===2){return this.options[t?1:0]}else{return null}}}handleValue(t){this.setChecked();this.valueChange.emit(t)}validateItems(t){if(typeof t==="object"&&this.items.length!==2){throw new Error(`<mg-input-toggle> prop "items" require 2 items. Passed value: ${s(t)}.`)}else if(x(t)){this.options=t.map((t=>({title:t,value:t})))}else if(Array.isArray(t)&&t.every(be)){this.options=t}else{throw new Error(`<mg-input-toggle> prop "items" is required and all items must be the same type: ToggleValue. Passed value: ${s(t)}.`)}}watchIsOnOff(t){if(t)this.classCollection.add(this.classOnOff);else this.classCollection.delete(this.classOnOff)}watchIsIcon(t){if(t)this.classCollection.add(this.classIcon);else this.classCollection.delete(this.classIcon)}watchReadonly(t){if(t)this.classCollection.add(C);else this.classCollection.delete(C)}watchDisabled(t){if(t)this.classCollection.add(V);else this.classCollection.delete(V)}handleChecked(t){if(t)this.classCollection.add(this.classIsActive);else this.classCollection.delete(this.classIsActive);this.value=this.getCheckedItem(t).value}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-toggle> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-toggle> method "setError()" param "errorMessage" must be a string.')}else{this.valid=t;this.inputValid.emit(t);this.setErrorMessage(t?undefined:e)}}async reset(){if(!this.readonly){this.value=this.options[0].value;this.errorMessage=undefined;this.valid=undefined;this.setChecked()}}setChecked(){const t=this.options.map((t=>t.value)).findIndex((t=>t===true));if([0,1].includes(t)){if(["","true"].includes(this.value)&&this.options.find((t=>t.value))!==undefined){this.value=true}const e=this.value===this.options[t].value;this.checked=t===0?!e:e}else{this.checked=this.value===this.options[1].value}}componentWillLoad(){this.validateItems(this.items);this.validateSlots();this.setChecked();this.watchIsIcon(this.isIcon);this.watchIsOnOff(this.isOnOff);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled)}render(){const t=this.getCheckedItem(this.checked);return e("mg-input",{key:"cb5b7d47c6c0550d4c413894fda26e3e1dfd360a",label:this.label,helpText:this.helpText,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:undefined,tooltip:this.tooltip,tooltipPosition:this.tooltipPosition,errorMessage:this.errorMessage},this.readonly?t&&e("b",{class:"mg-c-input__readonly-value"},t.title):e("button",{type:"button",role:"switch","aria-checked":this.checked.toString(),"aria-readonly":this.disabled||this.readonly,id:this.identifier,class:"mg-c-input__button-toggle",disabled:this.disabled||this.readonly,onClick:this.toggleChecked},e("span",{"aria-hidden":"true",class:"mg-c-input__toggle-item-container"},e("slot",{name:"item-1"})),e("span",{"aria-hidden":"true",class:"mg-c-input__toggle-item-container"},e("slot",{name:"item-2"}))))}get element(){return n(this)}static get watchers(){return{value:["handleValue"],items:["validateItems"],isOnOff:["watchIsOnOff"],isIcon:["watchIsIcon"],readonly:["watchReadonly"],disabled:["watchDisabled"],checked:["handleChecked"]}}};we.style=fe;class _e{constructor(t,e,i){this.parentElement=t;this.itemMoreElement=e;this.itemMoreContainerElement=i;this.disconnect=()=>{this._resizeObserver.disconnect()};this.isMoreElement=t=>t===this.itemMoreElement;this.isOverflowElement=(t,e)=>{const i=this.itemMoreContainerElement.children.length>0;if(!this.isMoreElement(e)){if(e.nextElementSibling.nodeName!=="MG-ITEM-MORE"&&!i)return t+this.itemMoreElement.offsetWidth>this._availableWidth;else return t>this._availableWidth}else return!i};this.toggleItem=(t,e)=>{if(this.isMoreElement(t)&&e)t.setAttribute("hidden","");else if(this.isMoreElement(t)&&!e)t.removeAttribute("hidden");else if(!this.isMoreElement(t)&&e)this.itemMoreContainerElement.appendChild(t);else if(!this.isMoreElement(t)&&t.parentElement!==this.parentElement)this.parentElement.insertBefore(t,this.itemMoreElement)};if(!this.parentElement||!this.itemMoreElement||!this.itemMoreContainerElement){throw new Error("OverflowBehavior - all construtor params are required")}const n=Array.from(this.parentElement.children);this._resizeObserver=new ResizeObserver((t=>{this._availableWidth=t.map((t=>t.contentRect.width)).sort(((t,e)=>t-e)).shift();n.forEach((t=>this.toggleItem(t,false)));let e=0;n.forEach(((t,i)=>{e+=t.offsetWidth;if(i)this.toggleItem(t,this.isOverflowElement(e,t))}))}));this._resizeObserver.observe(this.parentElement)}}const xe=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}:host:not([hidden]){display:flex}";const ze=xe;const ye=class{constructor(e){t(this,e);this.name="mg-item-more";this.icon={icon:"ellipsis-vertical"};this.slotlabel={display:false}}validateIcon(t){if(typeof t!=="object"||typeof t==="object"&&typeof t.icon!=="string")throw new Error(`<${this.name}> prop "icon" must match MgItemMore['icon'] type. Passed value: ${s(t)}.`)}validateSlotLabel(t){if(typeof t!=="object"||typeof t==="object"&&typeof t.display!=="boolean")throw new Error(`<${this.name}> prop "slotlabel" must match MgItemMore['slotlabel'] type. Passed value: ${s(t)}.`);else if(typeof t.label!=="string")this.slotlabel.label=this.messages.menuLabel}validateSize(t){if(t&&!E.includes(t))throw new Error(`<${this.name}> prop "size" must match MgItemMore['size'] type. Passed value: ${s(t)}.`)}componentWillLoad(){this.messages=k(this.element).messages.itemMore;this.validateIcon(this.icon);this.validateSlotLabel(this.slotlabel);this.validateSize(this.size)}componentDidLoad(){return setTimeout((()=>{this.parentMenu=this.element.closest("mg-menu")}))}componentDidUpdate(){if(this.parentMenu&&this.overflowBehavior===undefined){this.overflowBehavior=new _e(this.parentMenu,this.element,this.itemMoreContainer)}}disconnectedCallback(){var t;(t=this.overflowBehavior)===null||t===void 0?void 0:t.disconnect()}render(){const t="mg-item-more";return e(i,{key:"e6f29a59e69c25c27a8425b528e041b2dd11fb61",role:"listitem","data-mg-popover-guard":`${t}-popover`},this.parentMenu&&e("mg-menu-item",{key:"b3d6550e2f99f95ae61551acfc63ee3c3a84c384","data-overflow-more":true,"data-size":this.parentMenu.size,"data-style-direction":A.HORIZONTAL,identifier:t},e("mg-icon",{key:"a4e720eb9c2c330f3df51cd2ace470c60e567cef",icon:this.icon.icon,size:this.size,slot:"image"}),e("span",{key:"d5e59b95acea1676289fe54dc9382bedccb3d1ff",class:{"mg-u-visually-hidden":!this.slotlabel.display},slot:"label"},this.slotlabel.label),e("mg-menu",{key:"8424b294a7570b99b6e044e7080c34896384bf14",direction:A.VERTICAL,label:this.messages.menuLabel,size:this.size,ref:t=>{if(t!==null)this.itemMoreContainer=t}})))}get element(){return n(this)}static get watchers(){return{icon:["validateIcon"],slotlabel:["validateSlotLabel"],size:["validateSize"]}}};ye.style=ze;const ke=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-menu-color-background: Defines the background color of the menu. Unset by default, fallback on `--mg-b-color-light`.\n */:host{display:inline-flex;width:100%;min-width:0;background-color:var(--mg-c-menu-color-background, var(--mg-b-color-light))}:host([direction=vertical]){display:flex;height:100%;flex-direction:column;overflow-y:auto}";const He=ke;const Me=class{constructor(e){t(this,e);this.name="mg-menu";this.direction=A.HORIZONTAL;this.size="medium";this.isChildMenu=()=>this.element.closest("mg-menu-item")!==null;this.getMenuItems=(t=this.element)=>{var e,i;const n=Array.from(t.children).filter((t=>t.nodeName==="MG-MENU-ITEM"));const o=(i=(e=t.querySelector("mg-item-more"))===null||e===void 0?void 0:e.shadowRoot)===null||i===void 0?void 0:i.querySelector("mg-menu-item");if(o){n.push(o)}return n};this.updateMenuItems=()=>{this.getMenuItems().forEach((t=>{t.dataset.styleDirection=this.direction}));this.renderMgItemMore()};this.renderMgItemMore=()=>{var t;if(this.direction===A.VERTICAL||this.direction===A.HORIZONTAL&&this.isChildMenu()||this.element.children.length<=1){return}let e=this.element.querySelector("mg-item-more");if(e===null){e=document.createElement("mg-item-more");this.element.appendChild(e)}for(const t in this.itemmore){e[t]=this.itemmore[t]}if(((t=this.itemmore)===null||t===void 0?void 0:t.size)===undefined)e.size=this.size}}validateLabel(t){if(t===undefined&&!this.element.hasAttribute("aria-label")){throw new Error(`<${this.name}> prop "label" is required. Passed value: ${s(t)}.`)}}validateDirection(t){if(![A.VERTICAL,A.HORIZONTAL].includes(t)){throw new Error(`<${this.name}> prop "direction" must be one of: ${A.HORIZONTAL}, ${A.VERTICAL}. Passed value: ${s(t)}.`)}else{this.updateMenuItems()}}validateItemMore(t){if(t!==undefined&&this.direction!==A.HORIZONTAL){throw new Error(`<${this.name}> prop "itemmore" must be paired with direction ${A.HORIZONTAL}.`)}else if(t!==undefined){this.renderMgItemMore()}}validateSize(t){if(!E.includes(t)){throw new Error(`<${this.name}> prop "size" must be one of: ${E.join(", ")}. Passed value: ${s(t)}.`)}}updateItemListener(t){const e=t.target.nodeName==="MG-ITEM-MORE"?t.target.shadowRoot.querySelector("mg-menu-item"):t.target;["click","focus"].forEach((i=>{e.addEventListener(i,(()=>{const i=t.target.closest("mg-menu").querySelector("[data-has-focus]");if(i===e)return;if(i)i.removeAttribute("data-has-focus");e.setAttribute("data-has-focus","true")}))}))}componentWillLoad(){this.validateDirection(this.direction);this.validateLabel(this.label);this.validateItemMore(this.itemmore);this.validateSize(this.size)}componentDidLoad(){this.updateMenuItems();if(!this.isChildMenu()&&this.direction===A.HORIZONTAL){document.addEventListener("focusin",(t=>{const e=t=>{if(t===this.element)return true;else if(!t.parentElement)return false;else return e(t.parentElement)};if(!t.target.closest("mg-menu")||!e(t.target)){const t=this.element.querySelector("[data-has-focus]");if(t)t.removeAttribute("data-has-focus")}}))}new MutationObserver(this.updateMenuItems).observe(this.element,{childList:true})}render(){return e(i,{key:"90442ca5c29abf5c94004374d20558f8b4752e6e",role:"list","aria-label":this.label},e("slot",{key:"cfef557986ef4f545eca4542f7ee6e984052a198"}))}get element(){return n(this)}static get watchers(){return{label:["validateLabel"],direction:["validateDirection"],itemmore:["validateItemMore"],size:["validateSize"]}}};Me.style=He;const Ce='.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}/*!\n * @prop --mg-c-menu-item-color: Defines menu item global color, used for bottom line and active tabs. Default value: `--mg-b-color-app`.\n * @prop --mg-c-menu-item-color-text: Defines the color of the menu item. Unset by default, fallback on `--mg-b-color-dark`.\n * @prop --mg-c-menu-item-navigation-button-max-width: Defines the max-width property for the navigation button. Unset by default.\n */.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{height:var(--mg-b-size-40);padding:var(--mg-b-size-12) var(--mg-b-size-16)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium ::slotted([slot=metadata]){font-size:var(--mg-b-font-size)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium.mg-c-menu-item__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium.mg-c-menu-item__navigation-button--vertical{padding-left:var(--mg-b-size-16)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{height:var(--mg-b-size-48);padding:var(--mg-b-size-12) var(--mg-b-size-32)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large ::slotted([slot=metadata]){font-size:var(--mg-b-font-size-h4)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large.mg-c-menu-item__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large.mg-c-menu-item__navigation-button--vertical{padding-left:var(--mg-b-size-32)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{height:var(--mg-b-size-72);padding:var(--mg-b-size-12) var(--mg-b-size-40)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge ::slotted([slot=metadata]){font-size:var(--mg-b-font-size-h4)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge.mg-c-menu-item__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge.mg-c-menu-item__navigation-button--vertical{padding-left:var(--mg-b-size-40)}.mg-c-menu-item__navigation-button{display:flex;box-sizing:border-box;align-items:center;border:none;background-color:unset;color:var(--mg-c-menu-item-color-text, var(--mg-b-color-dark));column-gap:var(--mg-c-menu-item-navigation-button-column-gap, var(--mg-b-size-8));cursor:pointer;font-family:var(--mg-b-font-family);font-weight:400;line-height:var(--mg-b-line-height);text-decoration:none;white-space:nowrap}.mg-c-menu-item__navigation-button:disabled,.mg-c-menu-item__navigation-button--disabled{cursor:default;opacity:var(--mg-b-opacity-element-disabled)}.mg-c-menu-item__navigation-button:focus-visible{z-index:10}.mg-c-menu-item__navigation-button:hover:not(.mg-c-menu-item__navigation-button--disabled),.mg-c-menu-item__navigation-button:focus-visible:not(.mg-c-menu-item__navigation-button--disabled){background-color:color-mix(in srgb, var(--mg-c-menu-item-color), transparent 90%)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active{color:var(--mg-c-menu-item-color);font-weight:600}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active.mg-c-menu-item__navigation-button--horizontal{box-shadow:inset 0 calc(-1*var(--mg-b-size-4)) var(--mg-c-menu-item-color)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active.mg-c-menu-item__navigation-button--vertical{box-shadow:inset var(--mg-b-size-4) 0 var(--mg-c-menu-item-color)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--hidden{display:none}:host([data-style-direction=vertical][data-level="1"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(1*var(--mg-b-size-16))}:host([data-level="1"]) .mg-c-menu-item__collapse-container{z-index:10}:host([data-style-direction=vertical][data-level="2"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(2*var(--mg-b-size-16))}:host([data-level="2"]) .mg-c-menu-item__collapse-container{z-index:20}:host([data-style-direction=vertical][data-level="3"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(3*var(--mg-b-size-16))}:host([data-level="3"]) .mg-c-menu-item__collapse-container{z-index:30}:host([data-style-direction=vertical][data-level="4"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(4*var(--mg-b-size-16))}:host([data-level="4"]) .mg-c-menu-item__collapse-container{z-index:40}:host([data-style-direction=vertical][data-level="5"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(5*var(--mg-b-size-16))}:host([data-level="5"]) .mg-c-menu-item__collapse-container{z-index:50}:host([data-style-direction=vertical][data-level="6"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(6*var(--mg-b-size-16))}:host([data-level="6"]) .mg-c-menu-item__collapse-container{z-index:60}:host([data-style-direction=vertical][data-level="1"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(1*var(--mg-b-size-32))}:host([data-level="1"]) .mg-c-menu-item__collapse-container{z-index:10}:host([data-style-direction=vertical][data-level="2"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(2*var(--mg-b-size-32))}:host([data-level="2"]) .mg-c-menu-item__collapse-container{z-index:20}:host([data-style-direction=vertical][data-level="3"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(3*var(--mg-b-size-32))}:host([data-level="3"]) .mg-c-menu-item__collapse-container{z-index:30}:host([data-style-direction=vertical][data-level="4"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(4*var(--mg-b-size-32))}:host([data-level="4"]) .mg-c-menu-item__collapse-container{z-index:40}:host([data-style-direction=vertical][data-level="5"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(5*var(--mg-b-size-32))}:host([data-level="5"]) .mg-c-menu-item__collapse-container{z-index:50}:host([data-style-direction=vertical][data-level="6"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(6*var(--mg-b-size-32))}:host([data-level="6"]) .mg-c-menu-item__collapse-container{z-index:60}:host([data-style-direction=vertical][data-level="1"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(1*var(--mg-b-size-40))}:host([data-level="1"]) .mg-c-menu-item__collapse-container{z-index:10}:host([data-style-direction=vertical][data-level="2"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(2*var(--mg-b-size-40))}:host([data-level="2"]) .mg-c-menu-item__collapse-container{z-index:20}:host([data-style-direction=vertical][data-level="3"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(3*var(--mg-b-size-40))}:host([data-level="3"]) .mg-c-menu-item__collapse-container{z-index:30}:host([data-style-direction=vertical][data-level="4"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(4*var(--mg-b-size-40))}:host([data-level="4"]) .mg-c-menu-item__collapse-container{z-index:40}:host([data-style-direction=vertical][data-level="5"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(5*var(--mg-b-size-40))}:host([data-level="5"]) .mg-c-menu-item__collapse-container{z-index:50}:host([data-style-direction=vertical][data-level="6"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(6*var(--mg-b-size-40))}:host([data-level="6"]) .mg-c-menu-item__collapse-container{z-index:60}.mg-c-menu-item{max-width:var(--mg-c-menu-item-navigation-button-max-width)}.mg-c-menu-item__collapse-container{z-index:10;width:max-content}.mg-c-menu-item__navigation-button-center{min-width:0}.mg-c-menu-item__navigation-button-text-content{display:flex;width:100%;align-items:center}.mg-c-menu-item__navigation-button-text-content-notification,.mg-c-menu-item__navigation-button-text-content ::slotted([slot=information]){margin-left:var(--mg-b-size-8);font-size:var(--mg-b-font-size)}.mg-c-menu-item__navigation-button-new-tab{margin-left:var(--mg-b-size-4)}.mg-c-menu-item__navigation-button-chevron{display:var(--mg-c-menu-item-chevron-display);margin-left:auto;transition:200ms}.mg-c-menu-item__navigation-button-chevron--rotate.mg-c-menu-item__navigation-button-chevron{transform:rotate(180deg)}:host{position:relative;display:flex;--mg-c-popover-padding-vertical:0;--mg-c-popover-padding-horizontal:0;--mg-c-popover-max-width:unset}:host([data-style-direction=vertical]){flex-direction:column}:host([data-style-direction=vertical]) .mg-c-menu-item__navigation-button{width:100%}:host([data-style-direction=vertical]) .mg-c-menu-item__collapse-container{position:unset;top:unset;left:unset;width:unset}:host([data-style-direction=vertical]) .mg-c-menu-item-chevron{margin-left:auto}:host([data-overflow-more]){--mg-c-menu-item-navigation-button-column-gap:0}:host([data-overflow-more]) .mg-c-menu-item__navigation-button-chevron{--mg-c-menu-item-chevron-display:none}:host([data-overflow-more]) .mg-c-menu-item__navigation-button-text-content ::slotted([slot=information]){margin-left:0}:host([data-overflow-more]) ::slotted(mg-menu){--mg-c-menu-item-navigation-button-column-gap:var(--mg-b-size-8)}:host([data-style-direction=horizontal]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level,:host([data-overflow-more]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level{background-color:var(--mg-b-color-light)}:host([data-style-direction=horizontal]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level ::slotted(mg-menu),:host([data-overflow-more]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level ::slotted(mg-menu){padding:var(--mg-b-size-8) 0}::slotted([slot=label]),::slotted([slot=metadata]){display:block;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}::slotted(*){display:flex;flex-direction:column}:host([status=disabled]){pointer-events:none}:host([hidden]){display:none}';const Ve=Ce;const Le=class{constructor(i){t(this,i);this.itemLoaded=o(this,"item-loaded",7);this.itemUpdated=o(this,"item-updated",7);this.name="mg-menu-item";this.navigationButton="mg-c-menu-item__navigation-button";this.identifier=a("mg-menu-item");this.status=B.VISIBLE;this.expanded=false;this.size="medium";this.navigationButtonClassList=new r([this.navigationButton]);this.hasChildren=false;this.getParentMenu=()=>this.element.closest("mg-menu");this.hasStatus=(t,e)=>t.status===e;this.hasPopover=()=>this.isDirection(A.HORIZONTAL)&&(this.isInMainMenu()&&Array.from(this.element.children).some((t=>!t.querySelector("[slot]")))||this.isItemMore)&&this.href===undefined;this.hasActiveChild=()=>{var t;return Array.from(((t=this.element.querySelector("mg-menu"))===null||t===void 0?void 0:t.children)||[]).some((t=>t.nodeName==="MG-MENU-ITEM"&&this.hasStatus(t,B.ACTIVE)&&!t.hasAttribute("hidden")))};this.isInteractiveItem=()=>this.hasChildren||!l(this.href);this.isDirection=(t,e=this.direction)=>t===e;this.isInMainMenu=()=>this.getParentMenu()!==null&&this.element.parentElement.closest("mg-menu-item")===null;this.updateDisplayNotificationBadge=()=>{const t=this.element.querySelector("mg-menu");this.displayNotificationBadge=t!==null&&Array.from(t.children).some((t=>t.querySelector("mg-badge")!==null&&!t.hasAttribute("hidden")))};this.updateExpanded=t=>{if(this.isInteractiveItem()){this.expanded=this.isDirection(A.VERTICAL)&&this.hasActiveChild()||t}};this.updateStatus=(t=[])=>{if(![B.HIDDEN,B.DISABLED,...t].includes(this.status)){this.status=this.hasActiveChild()?B.ACTIVE:B.VISIBLE}};this.updateSlot=(t=false)=>{if(Array.from(this.element.children).find((t=>t.getAttribute("slot")==="label"))===undefined){throw new Error(`<${this.name}> slot "label" is required.`)}["label","metadata"].forEach((e=>{Array.from(this.element.querySelectorAll(`[slot="${e}"]`)).forEach((i=>{if(!l(i.textContent))throw new Error(`<${this.name}> slot "${e}" must have text content.`);if(t&&!i.hasAttribute("title")||!t)i.setAttribute("title",i.textContent)}))}))};this.updateItem=t=>{const e=this.getParentMenu();if((e===null||e===void 0?void 0:e.size)!==undefined&&!this.isItemMore)this.size=e.size;else if(this.isItemMore)this.size=this.element.dataset.size;this.updateExpanded(this.expanded);this.updateStatus(t);this.updatePopoverGuard();this.updateDisplayNotificationBadge()};this.handleElementCLick=t=>{if(this.status===B.DISABLED){t.preventDefault();t.stopPropagation()}this.updateExpanded(!this.expanded);if(!this.isInteractiveItem()){const t=e=>{if(!e)return;else if(e!==this.element&&e.expanded&&e.shadowRoot.querySelector("mg-popover")!==null){e.expanded=false}else{t(e.parentElement.closest("mg-menu-item"))}};t(this.element)}};this.handlePopoverDisplay=t=>{this.updateExpanded(t.detail)};this.renderSlot=()=>e("slot",null)}watchIdentifier(t){if(!h(t)){console.error(`<mg-menu-item> prop "identifier" value is invalid. Passed value: ${s(t)}.`)}else{this.popoverIdentifier=`${this.identifier}-popover`}}watchTarget(t){if(t&&!$.includes(t)){throw new Error(`<mg-link> prop "target" must be one of: ${$.join(", ")}. Passed value: ${s(t)}.`)}}watchStatus(t,e){if(e!==undefined)this.navigationButtonClassList.delete(`${this.navigationButton}--${e}`);this.navigationButtonClassList.add(`${this.navigationButton}--${t}`)}watchExpanded(t){if(typeof t!=="boolean"){throw new Error(`<${this.name}> prop "expanded" must be a boolean. Passed value: ${s(t)}.`)}else{this.updateExpanded(t);Array.from(this.element.querySelectorAll("mg-menu-item")).forEach((e=>{if(e!==this.element)e.expanded=t?this.hasStatus(e,B.ACTIVE):false}))}}watchSize(t,e){if(e!==undefined)this.navigationButtonClassList.delete(`${this.navigationButton}--size-${e}`);this.navigationButtonClassList.add(`${this.navigationButton}--size-${t}`)}validateDirection(t,e){if(e!==undefined)this.navigationButtonClassList.delete(`${this.navigationButton}--${e}`);this.navigationButtonClassList.add(`${this.navigationButton}--${t}`);Array.from(this.element.querySelectorAll("mg-menu-item")).forEach((e=>{if(this.isDirection(A.VERTICAL,t)){e.dataset.level=`${(Number(e.dataset.level)||1)+1}`}else{delete e.dataset.level}}))}validateHasChildren(t){if(t&&this.element.href!==undefined){throw new Error(`<${this.name}> prop "href" is unauthorizied when element is a parent.`)}}watchDataStyleDirection(t){this.direction=t}watchDataHasFocus(t){if(!t)this.updateExpanded(Boolean(t))}updatePopoverGuard(){const t=this.element.querySelector("*:not([slot])");if(!t)return;if(this.hasPopover())t.dataset.mgPopoverGuard=this.popoverIdentifier;else delete t.dataset.mgPopoverGuard}componentWillLoad(){this.hasChildren=Array.from(this.element.children).some((t=>!["image","information","label","metadata"].includes(t.getAttribute("slot"))));this.messages=k(this.element).messages.menuItem;this.isItemMore=this.element.dataset.overflowMore!==undefined;this.watchStatus(this.status);this.watchExpanded(this.expanded);this.watchTarget(this.target);this.watchIdentifier(this.identifier);this.watchSize(this.size)}componentDidLoad(){this.updateSlot(true);return setTimeout((()=>{this.watchDataStyleDirection(this.element.dataset.styleDirection);this.watchDataHasFocus(this.element.dataset.hasFocus);this.updateItem([B.ACTIVE]);this.itemLoaded.emit();new MutationObserver((t=>{if(t.some((t=>["hidden","status"].includes(t.attributeName))))this.updateStatus(this.hasChildren?undefined:[B.ACTIVE]);if(t.some((t=>t.type==="characterData")))this.updateSlot();if(t.some((t=>t.type==="childList")))this.updateItem();this.itemUpdated.emit()})).observe(this.element,{attributes:true,childList:true,characterData:true,subtree:true})}),0)}componentShouldUpdate(){return c((()=>{this.itemUpdated.emit()}))}renderInteractiveElement(){const t=this.href!==undefined?"a":"button";return e(t,{href:this.href,class:this.navigationButtonClassList.join(),tabindex:[B.DISABLED,B.HIDDEN].includes(this.status)?-1:undefined,disabled:this.status===B.DISABLED,hidden:this.status===B.HIDDEN,target:this.href!==undefined&&this.target!==undefined?this.target:undefined,"aria-expanded":this.hasChildren&&this.expanded.toString(),"aria-current":this.status===B.ACTIVE&&"page",onClick:this.handleElementCLick},e("slot",{name:"image"}),e("div",{class:`${this.navigationButton}-center`},e("div",{class:`${this.navigationButton}-text-content`},e("slot",{name:"label"}),!this.displayNotificationBadge&&e("slot",{name:"information"}),this.displayNotificationBadge&&e("span",{class:`${this.navigationButton}-text-content-notification`},e("mg-badge",{label:this.messages.badgeLabel,value:"!",variant:"text-color",slot:"information"})),this.target==="_blank"&&[e("mg-icon",{key:"icon-new-tab",class:`${this.navigationButton}-new-tab`,icon:"arrow-up-right-square"}),e("span",{key:"a11y-new-tab",class:"mg-u-visually-hidden"},this.messages.openNewTab)]),this.size!=="medium"&&e("slot",{name:"metadata"})),this.hasChildren&&this.href===undefined&&e("span",{class:{[`${this.navigationButton}-chevron`]:true,[`${this.navigationButton}-chevron--rotate`]:this.expanded===true}},e("mg-icon",{icon:"chevron-down"})))}render(){const t=()=>({["mg-c-menu-item__collapse-container"]:true,["mg-c-menu-item__collapse-container--first-level"]:(this.isInMainMenu()||this.isItemMore)&&this.isDirection(A.HORIZONTAL)});return e(i,{key:"cea7dac5e51bf47c5a9a1ae060f634ef455ac1b3",role:this.isItemMore?"presentation":"listitem"},this.hasPopover()?e("mg-popover",{display:this.expanded,placement:"bottom-start",arrowHide:true,"onDisplay-change":this.handlePopoverDisplay,identifier:this.popoverIdentifier,"data-fallback-placement":"bottom-end"},this.renderInteractiveElement(),e("div",{class:t(),slot:"content"},this.renderSlot())):[this.renderInteractiveElement(),e("div",{key:"vertical-container",class:t(),hidden:!this.expanded},this.renderSlot())])}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],target:["watchTarget"],status:["watchStatus"],expanded:["watchExpanded"],size:["watchSize"],direction:["validateDirection"],hasChildren:["validateHasChildren"],"data-style-direction":["watchDataStyleDirection"],"data-has-focus":["watchDataHasFocus"]}}};Le.style=Ve;const De=["info","warning","success","danger"];const Be=["bar-left","background"];const $e="/*!\n * @prop --mg-c-message-border-radius: Defines the border radius of the message. Default value: `--mg-b-size-radius`.\n */:host{--mg-c-card-spacing:0;--mg-c-card-border-radius:var(--mg-c-message-border-radius);--mg-c-card-border:none;--mg-c-card-overflow:hidden}.mg-c-message{display:inline-block;min-height:var(--mg-b-size-min-height)}.mg-c-message.mg-c-message--danger .mg-c-message__icon{color:var(--mg-b-color-danger)}.mg-c-message.mg-c-message--danger.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-danger)}.mg-c-message.mg-c-message--danger.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-red-20, color-mix(in srgb, var(--mg-b-color-danger), white 80%))}.mg-c-message.mg-c-message--info .mg-c-message__icon{color:var(--mg-b-color-info)}.mg-c-message.mg-c-message--info.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-info)}.mg-c-message.mg-c-message--info.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-blue-20, color-mix(in srgb, var(--mg-b-color-info), white 80%))}.mg-c-message.mg-c-message--success .mg-c-message__icon{color:var(--mg-b-color-success)}.mg-c-message.mg-c-message--success.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-success)}.mg-c-message.mg-c-message--success.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-green-20, color-mix(in srgb, var(--mg-b-color-success), white 80%))}.mg-c-message.mg-c-message--warning .mg-c-message__icon{color:var(--mg-b-color-warning)}.mg-c-message.mg-c-message--warning.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-warning)}.mg-c-message.mg-c-message--warning.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-yellow-20, color-mix(in srgb, var(--mg-b-color-warning), white 80%))}.mg-c-message ::slotted(*){padding:0;margin:0}.mg-c-message__icon{position:absolute;top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2);left:calc(var(--mg-b-size-4) + var(--mg-b-size-8));line-height:1}.mg-c-message__content{display:flex;flex-wrap:wrap;padding:0 var(--mg-b-size-8) 0 calc(var(--mg-b-size-4) + var(--mg-b-size-8) + var(--mg-b-size-16) + var(--mg-b-size-8));place-content:stretch flex-end}.mg-c-message__content-slot{flex-grow:1;margin:var(--mg-b-size-8) 0}.mg-c-message__content-separator{display:inline-block;width:var(--mg-b-size-40);height:0}.mg-c-message__content-actions-slot{padding:var(--mg-b-size-8) 0;text-align:right}.mg-c-message__bar{position:absolute;top:0;left:0;width:var(--mg-b-size-4);height:100%}.mg-c-message ::slotted(*:not(mg-panel,mg-message,mg-modal)){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}.mg-c-message,.mg-c-message mg-message{max-width:100%}";const Ae=$e;const Ee=class{constructor(e){t(this,e);this.classBase="mg-c-message";this.variant="info";this.variantStyle="bar-left";this.classCollection=new r(["mg-c-message"]);this.hasActions=false;this.getIcon=()=>{switch(this.variant){case"info":return"info-circle";case"warning":return"exclamation-triangle";case"success":return"check-circle";case"danger":return"exclamation-circle"}}}watchVariant(t,e){if(!De.includes(t)){throw new Error(`<mg-message> prop "variant" must be one of: ${De.join(", ")}. Passed value: ${s(t)}.`)}else{if(t!==undefined)this.classCollection.add(`${this.classBase}--${t}`);if(e!==undefined)this.classCollection.delete(`${this.classBase}--${e}`)}}watchVariantStyle(t,e){if(!Be.includes(t)){throw new Error(`<mg-message> prop "variantStyle" must be one of: ${Be.join(", ")}. Passed value: ${s(t)}.`)}else{if(t!==undefined)this.classCollection.add(`${this.classBase}--${t}`);if(e!==undefined)this.classCollection.delete(`${this.classBase}--${e}`)}}componentWillLoad(){this.watchVariant(this.variant);this.watchVariantStyle(this.variantStyle);this.hasActions=this.element.querySelector('[slot="actions"]')!==null}render(){return e("div",{key:"d0a2c215951c0ef62588b5c1d13879a1ff9f8d1f",class:this.classCollection.join()},e("mg-card",{key:"171d1c0452561a4a2729aea0a32d47e6831b1f50"},this.variantStyle==="bar-left"&&e("span",{key:"482d2e6c2f51aafa1b434b24aab0fe9c3cb8141e",class:"mg-c-message__bar"}),e("span",{key:"d6ec954a4eb499458bbdd0c7ba5fb5686c3afc0b",class:"mg-c-message__icon"},e("mg-icon",{key:"32daba88c0c32cea0012ee6e80b97445aed3533c",icon:this.getIcon()})),e("div",{key:"fc77d6745f2ae8d0c8de393598dad8d4c3b7f074",class:"mg-c-message__content"},e("span",{key:"e73d7327e259c457c66b2faf2ff26b3ca07bf24d",class:"mg-c-message__content-slot"},e("slot",{key:"c15d52b9cf7b4f974f0d92c7eceaeecba7708f37"})),this.hasActions&&[e("span",{class:"mg-c-message__content-separator",key:"content-separator"}),e("span",{class:"mg-c-message__content-actions-slot",key:"content-actions-slot"},e("slot",{key:"0ebf36c9be1bed739bede04f4cf8352f0580f53f",name:"actions"}))])))}get element(){return n(this)}static get watchers(){return{variant:["watchVariant"],variantStyle:["watchVariantStyle"]}}};Ee.style=Ae;const qe=["dialog","alertdialog"];const Pe="/*!\n * @prop --mg-c-modal-border-radius: Defines the border radius of the modal. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-modal-title-font-size: Defines the font size of the modal title. Default value: `--mg-b-font-size-h3`.\n */:host{--mg-c-card-border-radius:var(--mg-c-modal-border-radius);--mg-c-card-spacing:var(--mg-b-size-16) var(--mg-b-size-24);--mg-c-card-border:none}.mg-c-modal{border:none;background:none}.mg-c-modal[open]{display:flex;padding:var(--mg-b-size-24) var(--mg-b-size-8)}.mg-c-modal::backdrop{background-color:var(--mg-b-color-light);opacity:.85}.mg-c-modal mg-card{display:flex;width:calc(75*var(--mg-b-size-8));max-width:100%;max-height:100%}.mg-c-modal__dialog{position:relative;display:flex;height:fit-content;max-height:100%;flex-direction:column;align-self:center;row-gap:var(--mg-b-size-24)}.mg-c-modal__title{margin:0;font-family:var(--mg-b-font-family-heading);font-size:var(--mg-c-modal-title-font-size);font-weight:600}.mg-c-modal__close-button{height:var(--mg-c-modal-title-font-size);margin-top:calc((var(--mg-b-size-min-height) - var(--mg-c-modal-title-font-size)*var(--mg-b-line-height))/2*-1);margin-right:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2*-1);margin-left:var(--mg-b-size-16);float:right}.mg-c-modal__content{padding:var(--mg-b-size-16);margin:calc(var(--mg-b-size-16)*-1);overflow-y:auto}.mg-c-modal ::slotted(*:not(mg-panel,mg-message,mg-modal)){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}";const Ie=Pe;const Te=class{constructor(e){t(this,e);this.componentShow=o(this,"component-show",7);this.componentHide=o(this,"component-hide",7);this.componentClose=o(this,"component-close",7);this.titleId="";this.identifier=a("mg-modal");this.dialogRole=qe[0];this.closeButton=false;this.open=false;this.hasActions=false;this.classCollection=new r(["mg-c-modal"]);this.handleClose=()=>{this.open=false;this.componentClose.emit()}}watchIdentifier(t){if(!h(t)){throw new Error(`<mg-modal> prop "identifier" value is invalid. Passed value: ${s(t)}.`)}}validateDialogRole(t){if(!qe.includes(t))throw new Error(`<mg-modal> prop "dialogRole" must be one of: ${qe.join(", ")}. Passed value: ${s(t)}.`)}validateModalTitle(t){if(!l(t)){throw new Error(`<mg-modal> prop "modalTitle" is required. Passed value: ${s(t)}.`)}}watchOpen(t){if(t){this.dialog.showModal();this.componentShow.emit();document.body.style.overflow="hidden"}else{this.dialog.close();this.componentHide.emit();document.body.style.overflow=this.bodyOverflow}}componentWillLoad(){this.bodyOverflow=document.body.style.overflow;this.messages=k(this.element).messages;this.hasActions=this.element.querySelector('[slot="actions"]')!==null;this.titleId=`${this.identifier}-title`;this.watchIdentifier(this.identifier);this.validateModalTitle(this.modalTitle);this.validateDialogRole(this.dialogRole)}componentDidLoad(){this.watchOpen(this.open);this.dialog.addEventListener("close",(()=>{this.open=false;this.componentClose.emit()}))}render(){return e("dialog",{key:"d9bc9c48122e4a607122ad62afb1229061860e70",role:this.dialogRole,id:this.identifier,class:this.classCollection.join(),"aria-labelledby":this.titleId,ref:t=>{if(t!==null){this.dialog=t}}},e("mg-card",{key:"fdddd50b0d87d50025eb65297ffdde890db84daa"},e("div",{key:"a168d0ec2be896b381ed6079f2f50f0e06fbef0c",class:"mg-c-modal__dialog"},e("header",{key:"f6c902fb1c424d14a0cf36fbe6904137e1f25a77",class:"mg-c-modal__header"},this.closeButton&&e("span",{key:"3bfd0399c679cd4695b7ec6baf93852f551f500f",class:"mg-c-modal__close-button"},e("mg-button",{key:"65d9a1001c74869bde17c5b10e4d7f6d40927d5c","is-icon":true,variant:"flat",label:this.messages.modal.closeButton,onClick:this.handleClose},e("mg-icon",{key:"4afd89c06bb4667d03dc8f57cafc2de937989539",icon:"cross"}))),e("h1",{key:"0e8714311653249fc9f567072bb83a82f40be657",class:"mg-c-modal__title",id:this.titleId},this.modalTitle)),e("article",{key:"8bea86261d774672f59161b8356d88bb8ce6934f",class:"mg-c-modal__content"},e("slot",{key:"e1be91919ea7c4c6564bdab5fd4637a1f70670af"})),this.hasActions&&e("footer",{key:"ed52ba51f38a5638e8ab525863631304ec32e4f8",class:"mg-c-modal__footer"},e("slot",{key:"2ea047455de5f22876a0fc97e95321360aa55b33",name:"actions"})))))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],dialogRole:["validateDialogRole"],modalTitle:["validateModalTitle"],open:["watchOpen"]}}};Te.style=Ie;const Se={NEXT:"next",PREVIOUS:"previous"};const Oe=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}.mg-c-pagination{display:flex;align-items:center;gap:var(--mg-b-spacing-actions)}.mg-c-pagination__page-count{display:flex;align-items:center;gap:var(--mg-b-size-4)}.mg-c-pagination.mg-c-pagination--hide-page-count{gap:0}";const je=Oe;const Re=(t,e,i=1)=>Array.from(Array(Math.ceil((e+1-t)/i)).keys()).map((e=>t+e*i));const We=class{constructor(e){t(this,e);this.currentPageChange=o(this,"current-page-change",7);this.identifier=a("mg-pagination");this.totalPages=1;this.currentPage=1;this.goToPage=t=>{this.currentPage=t};this.handleSelect=t=>{const e=Number(t.target.value);this.goToPage(e>0?e:1)};this.handleGoToPage=(t,e)=>{!e&&this.goToPage(t===Se.NEXT?this.currentPage+1:this.currentPage-1)}}watchIdentifier(t){if(!h(t)){console.error(`<mg-pagination> prop "identifier" value is invalid. Passed value: ${s(t)}.`)}}validateTotalPages(t){if(t<1){throw new Error(`<mg-pagination> prop "totalPages" must be greater than 0. Passed value: ${s(t)}.`)}}validateCurrentPage(t){if(t<1){throw new Error(`<mg-pagination> prop "currentPage" must be greater than 0. Passed value: ${s(t)}.`)}else if(t>this.totalPages){throw new Error('<mg-pagination> prop "currentPage" can not be greater than total page.')}this.currentPageChange.emit(t)}componentWillLoad(){this.messages=k(this.element).messages;this.watchIdentifier(this.identifier);this.validateTotalPages(this.totalPages);this.validateCurrentPage(this.currentPage);if(this.label===undefined||this.label===""){this.label=this.messages.pagination.label}}render(){const t=(t,i)=>e("mg-button",{key:"adf311f317e6d071e73e6ee11f323f2957a6c7c5",label:this.messages.pagination[`${i}Page`],onClick:()=>this.handleGoToPage(i,t),disabled:t,variant:"flat",isIcon:this.hideNavigationLabels},i===Se.PREVIOUS&&e("mg-icon",{key:"23cd025ff4d5085f60a762ca02bec7ea4d08b47a",icon:"chevron-left"}),!this.hideNavigationLabels&&this.messages.general[i],i===Se.NEXT&&e("mg-icon",{key:"5e178d7571d840b691349999a0dc9986ea9a97d1",icon:"chevron-right"}));return e(i,{key:"549c2a5e08db08ff4db40f283dc941e3c918aa48",hidden:this.totalPages<2},e("nav",{key:"6dad6fcdc86313bd8a89a253bf8b34417b5d7a9b",role:"navigation","aria-label":this.label,id:this.identifier,class:{"mg-c-pagination":true,"mg-c-pagination--hide-page-count":this.hidePageCount}},t(this.currentPage<=1,Se.PREVIOUS),!this.hidePageCount&&e("div",{key:"779c725432c4e35c82a25c9b48619b30d94aa3fd",class:"mg-c-pagination__page-count"},e("mg-input-select",{key:"9ebbb2eb315ceb906b87c1866a2230a07fc456eb",identifier:`${this.identifier}-select`,items:Re(1,this.totalPages).map((t=>t.toString())),label:this.messages.pagination.selectPage,"label-hide":true,"on-value-change":this.handleSelect,value:this.currentPage.toString(),"placeholder-hide":true}),e("span",{key:"562ef9a11ec557bf498ac4d62be095cbc4c71d22",class:"mg-u-visually-hidden"},this.messages.pagination.page," ",this.currentPage),"/ ",this.totalPages," ",this.totalPages>1?this.messages.pagination.pages:this.messages.pagination.page),t(this.currentPage>=this.totalPages,Se.NEXT)))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],totalPages:["validateTotalPages"],currentPage:["validateCurrentPage"]}}};We.style=je;const Ne=["text","icon"];const Ue=["left","right"];const Fe="/*!\n * @prop --mg-c-panel-border-radius: Defines the border radius of the panel. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-panel-color-background: Defines the background of the panel. Default value: `color-mix(in srgb, var(--mg-b-color-info), white 97%)`.\n * @prop --mg-c-panel-box-shadow: Defines the box shadow of the panel. Default value: `--mg-b-box-shadow`.\n * @prop --mg-c-panel-content-spacing: Defines the padding of the panel content. Default value: `--mg-b-size-16`.\n */:host{--mg-c-card-border:none;--mg-c-card-spacing:0;--mg-c-card-border-radius:var(--mg-c-panel-border-radius);--mg-c-card-color-background:var(--mg-c-panel-color-background);--mg-c-card-box-shadow:var(--mg-c-panel-box-shadow)}.mg-c-panel__header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;padding:0 var(--mg-b-size-4)}.mg-c-panel__header-title,.mg-c-panel__header-content{display:flex;margin:var(--mg-b-size-4) 0}.mg-c-panel__header-content{min-height:var(--mg-b-size-min-height);flex:1 auto;align-items:center;padding-left:var(--mg-b-size-4)}.mg-c-panel__header-title mg-input-text{flex-grow:1;margin-left:var(--mg-b-size-4)}.mg-c-panel__header-title mg-button+mg-button:not([slot=append-input]){margin-left:var(--mg-b-size-4)}.mg-c-panel__header-title.mg-c-panel__header-title--full{flex:1 1 auto}.mg-c-panel__collapse-button-content{--mg-b-font-size:var(--mg-b-font-size-h5);--mg-c-button-font-weight:600}.mg-c-panel__collapse-button-icon.mg-c-panel__collapse-button-icon--reverse{transform:rotate(180deg)}.mg-c-panel__content{padding:var(--mg-c-panel-content-spacing)}.mg-c-panel ::slotted([slot=header-right]){display:flex;flex-wrap:wrap;margin-left:auto;gap:var(--mg-b-spacing-actions)}.mg-c-panel ::slotted(*:not(mg-panel,mg-message,mg-modal)){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}";const Ge=Fe;const Ke=class{constructor(i){t(this,i);this.titleChange=o(this,"title-change",7);this.expandedChange=o(this,"expanded-change",7);this.identifier=a("mg-panel");this.titleEditable=false;this.titlePosition=Ue[0];this.expanded=false;this.expandToggleDisplay=Ne[0];this.classCollection=new r(["mg-c-panel"]);this.isEditing=false;this.toggleIsEditing=()=>{this.isEditing=!this.isEditing};this.handleCollapseButton=()=>{if(!this.expandToggleDisabled)this.expanded=!this.expanded};this.handleEditButton=()=>{this.toggleIsEditing()};this.handleUpdateTitle=t=>{this.updatedPanelTitle=t.detail};this.handleCancelEditButton=()=>{this.updatedPanelTitle=undefined;this.toggleIsEditing()};this.handleValidateEditButton=()=>{if(!this.editInputElement.valid)return;if(this.updatedPanelTitle!==undefined)this.panelTitle=this.updatedPanelTitle;this.toggleIsEditing()};this.renderCollapseButton=()=>e("mg-button",{onClick:this.handleCollapseButton,variant:"flat","aria-expanded":this.expanded.toString(),"aria-controls":`${this.identifier}-content`,disabled:this.expandToggleDisabled,isIcon:this.expandToggleDisplay==="icon",label:this.panelTitle},e("span",{class:"mg-c-panel__collapse-button-content"},e("mg-icon",{icon:"chevron-up",class:{"mg-c-panel__collapse-button-icon":true,"mg-c-panel__collapse-button-icon--reverse":!this.expanded}}),!this.isEditing&&this.expandToggleDisplay!=="icon"&&this.panelTitle));this.renderEditButton=()=>e("mg-button",{key:"edit-button","is-icon":true,variant:"flat",label:this.messages.panel.editLabel,onClick:this.handleEditButton},e("mg-icon",{icon:"pen"}));this.renderEditInput=()=>e("mg-input-text",{key:"edition-input",label:this.messages.panel.editLabel,"label-hide":true,value:this.panelTitle,"onValue-change":this.handleUpdateTitle,characterLeftHide:true,pattern:this.titlePattern,"pattern-error-message":this.titlePatternErrorMessage,identifier:`${this.identifier}-edition-input`,ref:t=>this.editInputElement=t},e("mg-button",{slot:"append-input",label:this.messages.general.cancel,"is-icon":true,variant:"secondary",onClick:this.handleCancelEditButton},e("mg-icon",{icon:"cross"})),e("mg-button",{slot:"append-input",label:this.messages.general.confirm,"is-icon":true,variant:"secondary",onClick:this.handleValidateEditButton},e("mg-icon",{icon:"check"})));this.renderTitle=()=>{const t=[this.renderCollapseButton()];if(this.titleEditable){if(!this.isEditing)t.push(this.renderEditButton());else t.push(this.renderEditInput())}return this.titlePosition==="right"?t.reverse():t};this.renderHeaderChildren=()=>{const t=[e("div",{class:{"mg-c-panel__header-title":true,"mg-c-panel__header-title--full":this.isEditing,"mg-c-panel__header-title--reverse":this.titlePosition==="right"},key:this.panelTitle},this.renderTitle()),e("div",{class:"mg-c-panel__header-content",key:"slot-header"},e("slot",{name:"header-right"}))];return this.titlePosition==="right"?t.reverse():t}}watchIdentifier(t){if(!h(t)){console.error(`<mg-panel> prop "identifier" value is invalid. Passed value: ${s(t)}.`)}}validatePanelTitle(t){if(!l(t))throw new Error(`<mg-panel> prop "panelTitle" is required and must be a string. Passed value: ${s(t)}.`);this.titleChange.emit(t)}validateTitlePattern(t){if(t!==undefined&&!this.titleEditable)throw new Error(`<mg-panel> prop "titleEditable" must be set to "true".`)}validateTitlePosition(t){if(!Ue.includes(t))throw new Error(`<mg-panel> prop "titlePosition" must be one of: ${Ue.join(", ")}. Passed value: ${s(t)}.`)}handleExpanded(t){this.expandedChange.emit(t)}validateExpandToggleDisplay(t){if(!Ne.includes(t))throw new Error(`<mg-panel> prop "expandToggleDisplay" must be one of: ${Ne.join(", ")}. Passed value: ${s(t)}.`);if(t==="icon"&&this.titleEditable)this.titleEditable=false}componentWillLoad(){this.messages=k(this.element).messages;this.watchIdentifier(this.identifier);this.validateTitlePattern(this.titlePattern);this.validateTitlePattern(this.titlePatternErrorMessage);this.validatePanelTitle(this.panelTitle);this.validateExpandToggleDisplay(this.expandToggleDisplay);this.validateTitlePosition(this.titlePosition)}componentDidRender(){if(this.isEditing)this.editInputElement.setFocus()}render(){const t=`${this.identifier}-header`;return e("section",{key:"ffe1c2453e1247f8a5a3c439f6f87fc1ceefe06b",class:this.classCollection.join(),id:this.identifier},e("mg-card",{key:"77dfb890d2090af6eca0f332aaff07f737946f50"},e("header",{key:"2c20eab45a175c8f176dd7c003fc336b4f98d058",class:{"mg-c-panel__header":true,"mg-c-panel__header--reverse":this.titlePosition==="right"},id:t},this.renderHeaderChildren()),e("article",{key:"2c359205023c9b25c2b88ae6aad404663330d3a5",class:"mg-c-panel__content",id:`${this.identifier}-content`,"aria-labelledby":t,hidden:!this.expanded},e("slot",{key:"f4c5ce16b3709529d5808a51c1d1f7a0677d82f2"}))))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],panelTitle:["validatePanelTitle"],titlePattern:["validateTitlePattern"],titlePatternErrorMessage:["validateTitlePattern"],titlePosition:["validateTitlePosition"],expanded:["handleExpanded"],expandToggleDisplay:["validateExpandToggleDisplay"]}}};Ke.style=Ge;const Ye=["top","right","bottom","left"];const Je=["start","end"];const Ze=Ye.reduce(((t,e)=>t.concat(e,e+"-"+Je[0],e+"-"+Je[1])),[]);const Xe=Math.min;const Qe=Math.max;const ti=Math.round;const ei=Math.floor;const ii=t=>({x:t,y:t});const ni={left:"right",right:"left",bottom:"top",top:"bottom"};const oi={start:"end",end:"start"};function ai(t,e,i){return Qe(t,Xe(e,i))}function si(t,e){return typeof t==="function"?t(e):t}function ri(t){return t.split("-")[0]}function li(t){return t.split("-")[1]}function ci(t){return t==="x"?"y":"x"}function hi(t){return t==="y"?"height":"width"}function gi(t){return["top","bottom"].includes(ri(t))?"y":"x"}function mi(t){return ci(gi(t))}function di(t,e,i){if(i===void 0){i=false}const n=li(t);const o=mi(t);const a=hi(o);let s=o==="x"?n===(i?"end":"start")?"right":"left":n==="start"?"bottom":"top";if(e.reference[a]>e.floating[a]){s=bi(s)}return[s,bi(s)]}function ui(t){const e=bi(t);return[pi(t),e,pi(e)]}function pi(t){return t.replace(/start|end/g,(t=>oi[t]))}function vi(t,e,i){const n=["left","right"];const o=["right","left"];const a=["top","bottom"];const s=["bottom","top"];switch(t){case"top":case"bottom":if(i)return e?o:n;return e?n:o;case"left":case"right":return e?a:s;default:return[]}}function fi(t,e,i,n){const o=li(t);let a=vi(ri(t),i==="start",n);if(o){a=a.map((t=>t+"-"+o));if(e){a=a.concat(a.map(pi))}}return a}function bi(t){return t.replace(/left|right|bottom|top/g,(t=>ni[t]))}function wi(t){return{top:0,right:0,bottom:0,left:0,...t}}function _i(t){return typeof t!=="number"?wi(t):{top:t,right:t,bottom:t,left:t}}function xi(t){const{x:e,y:i,width:n,height:o}=t;return{width:n,height:o,top:i,left:e,right:e+n,bottom:i+o,x:e,y:i}}function zi(t,e,i){let{reference:n,floating:o}=t;const a=gi(e);const s=mi(e);const r=hi(s);const l=ri(e);const c=a==="y";const h=n.x+n.width/2-o.width/2;const g=n.y+n.height/2-o.height/2;const m=n[r]/2-o[r]/2;let d;switch(l){case"top":d={x:h,y:n.y-o.height};break;case"bottom":d={x:h,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:g};break;case"left":d={x:n.x-o.width,y:g};break;default:d={x:n.x,y:n.y}}switch(li(e)){case"start":d[s]-=m*(i&&c?-1:1);break;case"end":d[s]+=m*(i&&c?-1:1);break}return d}const yi=async(t,e,i)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=i;const r=a.filter(Boolean);const l=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:o});let{x:h,y:g}=zi(c,n,l);let m=n;let d={};let u=0;for(let i=0;i<r.length;i++){const{name:a,fn:p}=r[i];const{x:v,y:f,data:b,reset:w}=await p({x:h,y:g,initialPlacement:n,placement:m,strategy:o,middlewareData:d,rects:c,platform:s,elements:{reference:t,floating:e}});h=v!=null?v:h;g=f!=null?f:g;d={...d,[a]:{...d[a],...b}};if(w&&u<=50){u++;if(typeof w==="object"){if(w.placement){m=w.placement}if(w.rects){c=w.rects===true?await s.getElementRects({reference:t,floating:e,strategy:o}):w.rects}({x:h,y:g}=zi(c,m,l))}i=-1}}return{x:h,y:g,placement:m,strategy:o,middlewareData:d}};async function ki(t,e){var i;if(e===void 0){e={}}const{x:n,y:o,platform:a,rects:s,elements:r,strategy:l}=t;const{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:m=false,padding:d=0}=si(e,t);const u=_i(d);const p=g==="floating"?"reference":"floating";const v=r[m?p:g];const f=xi(await a.getClippingRect({element:((i=await(a.isElement==null?void 0:a.isElement(v)))!=null?i:true)?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(r.floating)),boundary:c,rootBoundary:h,strategy:l}));const b=g==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference;const w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(r.floating));const _=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1};const x=xi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:w,strategy:l}):b);return{top:(f.top-x.top+u.top)/_.y,bottom:(x.bottom-f.bottom+u.bottom)/_.y,left:(f.left-x.left+u.left)/_.x,right:(x.right-f.right+u.right)/_.x}}const Hi=t=>({name:"arrow",options:t,async fn(e){const{x:i,y:n,placement:o,rects:a,platform:s,elements:r,middlewareData:l}=e;const{element:c,padding:h=0}=si(t,e)||{};if(c==null){return{}}const g=_i(h);const m={x:i,y:n};const d=mi(o);const u=hi(d);const p=await s.getDimensions(c);const v=d==="y";const f=v?"top":"left";const b=v?"bottom":"right";const w=v?"clientHeight":"clientWidth";const _=a.reference[u]+a.reference[d]-m[d]-a.floating[u];const x=m[d]-a.reference[d];const z=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let y=z?z[w]:0;if(!y||!await(s.isElement==null?void 0:s.isElement(z))){y=r.floating[w]||a.floating[u]}const k=_/2-x/2;const H=y/2-p[u]/2-1;const M=Xe(g[f],H);const C=Xe(g[b],H);const V=M;const L=y-p[u]-C;const D=y/2-p[u]/2+k;const B=ai(V,D,L);const $=!l.arrow&&li(o)!=null&&D!==B&&a.reference[u]/2-(D<V?M:C)-p[u]/2<0;const A=$?D<V?D-V:D-L:0;return{[d]:m[d]+A,data:{[d]:B,centerOffset:D-B-A,...$&&{alignmentOffset:A}},reset:$}}});function Mi(t,e,i){const n=t?[...i.filter((e=>li(e)===t)),...i.filter((e=>li(e)!==t))]:i.filter((t=>ri(t)===t));return n.filter((i=>{if(t){return li(i)===t||(e?pi(i)!==i:false)}return true}))}const Ci=function(t){if(t===void 0){t={}}return{name:"autoPlacement",options:t,async fn(e){var i,n,o;const{rects:a,middlewareData:s,placement:r,platform:l,elements:c}=e;const{crossAxis:h=false,alignment:g,allowedPlacements:m=Ze,autoAlignment:d=true,...u}=si(t,e);const p=g!==undefined||m===Ze?Mi(g||null,d,m):m;const v=await ki(e,u);const f=((i=s.autoPlacement)==null?void 0:i.index)||0;const b=p[f];if(b==null){return{}}const w=di(b,a,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(r!==b){return{reset:{placement:p[0]}}}const _=[v[ri(b)],v[w[0]],v[w[1]]];const x=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:b,overflows:_}];const z=p[f+1];if(z){return{data:{index:f+1,overflows:x},reset:{placement:z}}}const y=x.map((t=>{const e=li(t.placement);return[t.placement,e&&h?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1]));const k=y.filter((t=>t[2].slice(0,li(t[0])?2:3).every((t=>t<=0))));const H=((o=k[0])==null?void 0:o[0])||y[0][0];if(H!==r){return{data:{index:f+1,overflows:x},reset:{placement:H}}}return{}}}};const Vi=function(t){if(t===void 0){t={}}return{name:"flip",options:t,async fn(e){var i,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:r,platform:l,elements:c}=e;const{mainAxis:h=true,crossAxis:g=true,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:p=true,...v}=si(t,e);if((i=a.arrow)!=null&&i.alignmentOffset){return{}}const f=ri(o);const b=gi(r);const w=ri(r)===r;const _=await(l.isRTL==null?void 0:l.isRTL(c.floating));const x=m||(w||!p?[bi(r)]:ui(r));const z=u!=="none";if(!m&&z){x.push(...fi(r,p,u,_))}const y=[r,...x];const k=await ki(e,v);const H=[];let M=((n=a.flip)==null?void 0:n.overflows)||[];if(h){H.push(k[f])}if(g){const t=di(o,s,_);H.push(k[t[0]],k[t[1]])}M=[...M,{placement:o,overflows:H}];if(!H.every((t=>t<=0))){var C,V;const t=(((C=a.flip)==null?void 0:C.index)||0)+1;const e=y[t];if(e){return{data:{index:t,overflows:M},reset:{placement:e}}}let i=(V=M.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])==null?void 0:V.placement;if(!i){switch(d){case"bestFit":{var L;const t=(L=M.filter((t=>{if(z){const e=gi(t.placement);return e===b||e==="y"}return true})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])==null?void 0:L[0];if(t){i=t}break}case"initialPlacement":i=r;break}}if(o!==i){return{reset:{placement:i}}}}return{}}}};function Li(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Di(t){return Ye.some((e=>t[e]>=0))}const Bi=function(t){if(t===void 0){t={}}return{name:"hide",options:t,async fn(e){const{rects:i}=e;const{strategy:n="referenceHidden",...o}=si(t,e);switch(n){case"referenceHidden":{const t=await ki(e,{...o,elementContext:"reference"});const n=Li(t,i.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:Di(n)}}}case"escaped":{const t=await ki(e,{...o,altBoundary:true});const n=Li(t,i.floating);return{data:{escapedOffsets:n,escaped:Di(n)}}}default:{return{}}}}}};function $i(t){const e=Xe(...t.map((t=>t.left)));const i=Xe(...t.map((t=>t.top)));const n=Qe(...t.map((t=>t.right)));const o=Qe(...t.map((t=>t.bottom)));return{x:e,y:i,width:n-e,height:o-i}}function Ai(t){const e=t.slice().sort(((t,e)=>t.y-e.y));const i=[];let n=null;for(let t=0;t<e.length;t++){const o=e[t];if(!n||o.y-n.y>n.height/2){i.push([o])}else{i[i.length-1].push(o)}n=o}return i.map((t=>xi($i(t))))}const Ei=function(t){if(t===void 0){t={}}return{name:"inline",options:t,async fn(e){const{placement:i,elements:n,rects:o,platform:a,strategy:s}=e;const{padding:r=2,x:l,y:c}=si(t,e);const h=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(n.reference))||[]);const g=Ai(h);const m=xi($i(h));const d=_i(r);function u(){if(g.length===2&&g[0].left>g[1].right&&l!=null&&c!=null){return g.find((t=>l>t.left-d.left&&l<t.right+d.right&&c>t.top-d.top&&c<t.bottom+d.bottom))||m}if(g.length>=2){if(gi(i)==="y"){const t=g[0];const e=g[g.length-1];const n=ri(i)==="top";const o=t.top;const a=e.bottom;const s=n?t.left:e.left;const r=n?t.right:e.right;const l=r-s;const c=a-o;return{top:o,bottom:a,left:s,right:r,width:l,height:c,x:s,y:o}}const t=ri(i)==="left";const e=Qe(...g.map((t=>t.right)));const n=Xe(...g.map((t=>t.left)));const o=g.filter((i=>t?i.left===n:i.right===e));const a=o[0].top;const s=o[o.length-1].bottom;const r=n;const l=e;const c=l-r;const h=s-a;return{top:a,bottom:s,left:r,right:l,width:c,height:h,x:r,y:a}}return m}const p=await a.getElementRects({reference:{getBoundingClientRect:u},floating:n.floating,strategy:s});if(o.reference.x!==p.reference.x||o.reference.y!==p.reference.y||o.reference.width!==p.reference.width||o.reference.height!==p.reference.height){return{reset:{rects:p}}}return{}}}};async function qi(t,e){const{placement:i,platform:n,elements:o}=t;const a=await(n.isRTL==null?void 0:n.isRTL(o.floating));const s=ri(i);const r=li(i);const l=gi(i)==="y";const c=["left","top"].includes(s)?-1:1;const h=a&&l?-1:1;const g=si(e,t);let{mainAxis:m,crossAxis:d,alignmentAxis:u}=typeof g==="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};if(r&&typeof u==="number"){d=r==="end"?u*-1:u}return l?{x:d*h,y:m*c}:{x:m*c,y:d*h}}const Pi=function(t){if(t===void 0){t=0}return{name:"offset",options:t,async fn(e){var i,n;const{x:o,y:a,placement:s,middlewareData:r}=e;const l=await qi(e,t);if(s===((i=r.offset)==null?void 0:i.placement)&&(n=r.arrow)!=null&&n.alignmentOffset){return{}}return{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}};const Ii=function(t){if(t===void 0){t={}}return{name:"shift",options:t,async fn(e){const{x:i,y:n,placement:o}=e;const{mainAxis:a=true,crossAxis:s=false,limiter:r={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=si(t,e);const c={x:i,y:n};const h=await ki(e,l);const g=gi(ri(o));const m=ci(g);let d=c[m];let u=c[g];if(a){const t=m==="y"?"top":"left";const e=m==="y"?"bottom":"right";const i=d+h[t];const n=d-h[e];d=ai(i,d,n)}if(s){const t=g==="y"?"top":"left";const e=g==="y"?"bottom":"right";const i=u+h[t];const n=u-h[e];u=ai(i,u,n)}const p=r.fn({...e,[m]:d,[g]:u});return{...p,data:{x:p.x-i,y:p.y-n,enabled:{[m]:a,[g]:s}}}}}};const Ti=function(t){if(t===void 0){t={}}return{options:t,fn(e){const{x:i,y:n,placement:o,rects:a,middlewareData:s}=e;const{offset:r=0,mainAxis:l=true,crossAxis:c=true}=si(t,e);const h={x:i,y:n};const g=gi(o);const m=ci(g);let d=h[m];let u=h[g];const p=si(r,e);const v=typeof p==="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const t=m==="y"?"height":"width";const e=a.reference[m]-a.floating[t]+v.mainAxis;const i=a.reference[m]+a.reference[t]-v.mainAxis;if(d<e){d=e}else if(d>i){d=i}}if(c){var f,b;const t=m==="y"?"width":"height";const e=["top","left"].includes(ri(o));const i=a.reference[g]-a.floating[t]+(e?((f=s.offset)==null?void 0:f[g])||0:0)+(e?0:v.crossAxis);const n=a.reference[g]+a.reference[t]+(e?0:((b=s.offset)==null?void 0:b[g])||0)-(e?v.crossAxis:0);if(u<i){u=i}else if(u>n){u=n}}return{[m]:d,[g]:u}}}};const Si=function(t){if(t===void 0){t={}}return{name:"size",options:t,async fn(e){var i,n;const{placement:o,rects:a,platform:s,elements:r}=e;const{apply:l=(()=>{}),...c}=si(t,e);const h=await ki(e,c);const g=ri(o);const m=li(o);const d=gi(o)==="y";const{width:u,height:p}=a.floating;let v;let f;if(g==="top"||g==="bottom"){v=g;f=m===(await(s.isRTL==null?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"}else{f=g;v=m==="end"?"top":"bottom"}const b=p-h.top-h.bottom;const w=u-h.left-h.right;const _=Xe(p-h[v],b);const x=Xe(u-h[f],w);const z=!e.middlewareData.shift;let y=_;let k=x;if((i=e.middlewareData.shift)!=null&&i.enabled.x){k=w}if((n=e.middlewareData.shift)!=null&&n.enabled.y){y=b}if(z&&!m){const t=Qe(h.left,0);const e=Qe(h.right,0);const i=Qe(h.top,0);const n=Qe(h.bottom,0);if(d){k=u-2*(t!==0||e!==0?t+e:Qe(h.left,h.right))}else{y=p-2*(i!==0||n!==0?i+n:Qe(h.top,h.bottom))}}await l({...e,availableWidth:k,availableHeight:y});const H=await s.getDimensions(r.floating);if(u!==H.width||p!==H.height){return{reset:{rects:true}}}return{}}}};function Oi(){return typeof window!=="undefined"}function ji(t){if(Ni(t)){return(t.nodeName||"").toLowerCase()}return"#document"}function Ri(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Wi(t){var e;return(e=(Ni(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ni(t){if(!Oi()){return false}return t instanceof Node||t instanceof Ri(t).Node}function Ui(t){if(!Oi()){return false}return t instanceof Element||t instanceof Ri(t).Element}function Fi(t){if(!Oi()){return false}return t instanceof HTMLElement||t instanceof Ri(t).HTMLElement}function Gi(t){if(!Oi()||typeof ShadowRoot==="undefined"){return false}return t instanceof ShadowRoot||t instanceof Ri(t).ShadowRoot}function Ki(t){const{overflow:e,overflowX:i,overflowY:n,display:o}=en(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+i)&&!["inline","contents"].includes(o)}function Yi(t){return["table","td","th"].includes(ji(t))}function Ji(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return false}}))}function Zi(t){const e=Qi();const i=Ui(t)?en(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>i[t]?i[t]!=="none":false))||(i.containerType?i.containerType!=="normal":false)||!e&&(i.backdropFilter?i.backdropFilter!=="none":false)||!e&&(i.filter?i.filter!=="none":false)||["transform","translate","scale","rotate","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function Xi(t){let e=on(t);while(Fi(e)&&!tn(e)){if(Zi(e)){return e}else if(Ji(e)){return null}e=on(e)}return null}function Qi(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}function tn(t){return["html","body","#document"].includes(ji(t))}function en(t){return Ri(t).getComputedStyle(t)}function nn(t){if(Ui(t)){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}return{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function on(t){if(ji(t)==="html"){return t}const e=t.assignedSlot||t.parentNode||Gi(t)&&t.host||Wi(t);return Gi(e)?e.host:e}function an(t){const e=on(t);if(tn(e)){return t.ownerDocument?t.ownerDocument.body:t.body}if(Fi(e)&&Ki(e)){return e}return an(e)}function sn(t,e,i){var n;if(e===void 0){e=[]}if(i===void 0){i=true}const o=an(t);const a=o===((n=t.ownerDocument)==null?void 0:n.body);const s=Ri(o);if(a){const t=rn(s);return e.concat(s,s.visualViewport||[],Ki(o)?o:[],t&&i?sn(t):[])}return e.concat(o,sn(o,[],i))}function rn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ln(t){const e=en(t);let i=parseFloat(e.width)||0;let n=parseFloat(e.height)||0;const o=Fi(t);const a=o?t.offsetWidth:i;const s=o?t.offsetHeight:n;const r=ti(i)!==a||ti(n)!==s;if(r){i=a;n=s}return{width:i,height:n,$:r}}function cn(t){return!Ui(t)?t.contextElement:t}function hn(t){const e=cn(t);if(!Fi(e)){return ii(1)}const i=e.getBoundingClientRect();const{width:n,height:o,$:a}=ln(e);let s=(a?ti(i.width):i.width)/n;let r=(a?ti(i.height):i.height)/o;if(!s||!Number.isFinite(s)){s=1}if(!r||!Number.isFinite(r)){r=1}return{x:s,y:r}}const gn=ii(0);function mn(t){const e=Ri(t);if(!Qi()||!e.visualViewport){return gn}return{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function dn(t,e,i){if(e===void 0){e=false}if(!i||e&&i!==Ri(t)){return false}return e}function un(t,e,i,n){if(e===void 0){e=false}if(i===void 0){i=false}const o=t.getBoundingClientRect();const a=cn(t);let s=ii(1);if(e){if(n){if(Ui(n)){s=hn(n)}}else{s=hn(t)}}const r=dn(a,i,n)?mn(a):ii(0);let l=(o.left+r.x)/s.x;let c=(o.top+r.y)/s.y;let h=o.width/s.x;let g=o.height/s.y;if(a){const t=Ri(a);const e=n&&Ui(n)?Ri(n):n;let i=t;let o=rn(i);while(o&&n&&e!==i){const t=hn(o);const e=o.getBoundingClientRect();const n=en(o);const a=e.left+(o.clientLeft+parseFloat(n.paddingLeft))*t.x;const s=e.top+(o.clientTop+parseFloat(n.paddingTop))*t.y;l*=t.x;c*=t.y;h*=t.x;g*=t.y;l+=a;c+=s;i=Ri(o);o=rn(i)}}return xi({width:h,height:g,x:l,y:c})}function pn(t,e){const i=nn(t).scrollLeft;if(!e){return un(Wi(t)).left+i}return e.left+i}function vn(t,e,i){if(i===void 0){i=false}const n=t.getBoundingClientRect();const o=n.left+e.scrollLeft-(i?0:pn(t,n));const a=n.top+e.scrollTop;return{x:o,y:a}}function fn(t){let{elements:e,rect:i,offsetParent:n,strategy:o}=t;const a=o==="fixed";const s=Wi(n);const r=e?Ji(e.floating):false;if(n===s||r&&a){return i}let l={scrollLeft:0,scrollTop:0};let c=ii(1);const h=ii(0);const g=Fi(n);if(g||!g&&!a){if(ji(n)!=="body"||Ki(s)){l=nn(n)}if(Fi(n)){const t=un(n);c=hn(n);h.x=t.x+n.clientLeft;h.y=t.y+n.clientTop}}const m=s&&!g&&!a?vn(s,l,true):ii(0);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-l.scrollLeft*c.x+h.x+m.x,y:i.y*c.y-l.scrollTop*c.y+h.y+m.y}}function bn(t){return Array.from(t.getClientRects())}function wn(t){const e=Wi(t);const i=nn(t);const n=t.ownerDocument.body;const o=Qe(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth);const a=Qe(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-i.scrollLeft+pn(t);const r=-i.scrollTop;if(en(n).direction==="rtl"){s+=Qe(e.clientWidth,n.clientWidth)-o}return{width:o,height:a,x:s,y:r}}function _n(t,e){const i=Ri(t);const n=Wi(t);const o=i.visualViewport;let a=n.clientWidth;let s=n.clientHeight;let r=0;let l=0;if(o){a=o.width;s=o.height;const t=Qi();if(!t||t&&e==="fixed"){r=o.offsetLeft;l=o.offsetTop}}return{width:a,height:s,x:r,y:l}}function xn(t,e){const i=un(t,true,e==="fixed");const n=i.top+t.clientTop;const o=i.left+t.clientLeft;const a=Fi(t)?hn(t):ii(1);const s=t.clientWidth*a.x;const r=t.clientHeight*a.y;const l=o*a.x;const c=n*a.y;return{width:s,height:r,x:l,y:c}}function zn(t,e,i){let n;if(e==="viewport"){n=_n(t,i)}else if(e==="document"){n=wn(Wi(t))}else if(Ui(e)){n=xn(e,i)}else{const i=mn(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return xi(n)}function yn(t,e){const i=on(t);if(i===e||!Ui(i)||tn(i)){return false}return en(i).position==="fixed"||yn(i,e)}function kn(t,e){const i=e.get(t);if(i){return i}let n=sn(t,[],false).filter((t=>Ui(t)&&ji(t)!=="body"));let o=null;const a=en(t).position==="fixed";let s=a?on(t):t;while(Ui(s)&&!tn(s)){const e=en(s);const i=Zi(s);if(!i&&e.position==="fixed"){o=null}const r=a?!i&&!o:!i&&e.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ki(s)&&!i&&yn(t,s);if(r){n=n.filter((t=>t!==s))}else{o=e}s=on(s)}e.set(t,n);return n}function Hn(t){let{element:e,boundary:i,rootBoundary:n,strategy:o}=t;const a=i==="clippingAncestors"?Ji(e)?[]:kn(e,this._c):[].concat(i);const s=[...a,n];const r=s[0];const l=s.reduce(((t,i)=>{const n=zn(e,i,o);t.top=Qe(n.top,t.top);t.right=Xe(n.right,t.right);t.bottom=Xe(n.bottom,t.bottom);t.left=Qe(n.left,t.left);return t}),zn(e,r,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Mn(t){const{width:e,height:i}=ln(t);return{width:e,height:i}}function Cn(t,e,i){const n=Fi(e);const o=Wi(e);const a=i==="fixed";const s=un(t,true,a,e);let r={scrollLeft:0,scrollTop:0};const l=ii(0);if(n||!n&&!a){if(ji(e)!=="body"||Ki(o)){r=nn(e)}if(n){const t=un(e,true,a,e);l.x=t.x+e.clientLeft;l.y=t.y+e.clientTop}else if(o){l.x=pn(o)}}const c=o&&!n&&!a?vn(o,r):ii(0);const h=s.left+r.scrollLeft-l.x-c.x;const g=s.top+r.scrollTop-l.y-c.y;return{x:h,y:g,width:s.width,height:s.height}}function Vn(t){return en(t).position==="static"}function Ln(t,e){if(!Fi(t)||en(t).position==="fixed"){return null}if(e){return e(t)}let i=t.offsetParent;if(Wi(t)===i){i=i.ownerDocument.body}return i}function Dn(t,e){const i=Ri(t);if(Ji(t)){return i}if(!Fi(t)){let e=on(t);while(e&&!tn(e)){if(Ui(e)&&!Vn(e)){return e}e=on(e)}return i}let n=Ln(t,e);while(n&&Yi(n)&&Vn(n)){n=Ln(n,e)}if(n&&tn(n)&&Vn(n)&&!Zi(n)){return i}return n||Xi(t)||i}const Bn=async function(t){const e=this.getOffsetParent||Dn;const i=this.getDimensions;const n=await i(t.floating);return{reference:Cn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function $n(t){return en(t).direction==="rtl"}const An={convertOffsetParentRelativeRectToViewportRelativeRect:fn,getDocumentElement:Wi,getClippingRect:Hn,getOffsetParent:Dn,getElementRects:Bn,getClientRects:bn,getDimensions:Mn,getScale:hn,isElement:Ui,isRTL:$n};function En(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function qn(t,e){let i=null;let n;const o=Wi(t);function a(){var t;clearTimeout(n);(t=i)==null||t.disconnect();i=null}function s(r,l){if(r===void 0){r=false}if(l===void 0){l=1}a();const c=t.getBoundingClientRect();const{left:h,top:g,width:m,height:d}=c;if(!r){e()}if(!m||!d){return}const u=ei(g);const p=ei(o.clientWidth-(h+m));const v=ei(o.clientHeight-(g+d));const f=ei(h);const b=-u+"px "+-p+"px "+-v+"px "+-f+"px";const w={rootMargin:b,threshold:Qe(0,Xe(1,l))||1};let _=true;function x(e){const i=e[0].intersectionRatio;if(i!==l){if(!_){return s()}if(!i){n=setTimeout((()=>{s(false,1e-7)}),1e3)}else{s(false,i)}}if(i===1&&!En(c,t.getBoundingClientRect())){s()}_=false}try{i=new IntersectionObserver(x,{...w,root:o.ownerDocument})}catch(t){i=new IntersectionObserver(x,w)}i.observe(t)}s(true);return a}function Pn(t,e,i,n){if(n===void 0){n={}}const{ancestorScroll:o=true,ancestorResize:a=true,elementResize:s=typeof ResizeObserver==="function",layoutShift:r=typeof IntersectionObserver==="function",animationFrame:l=false}=n;const c=cn(t);const h=o||a?[...c?sn(c):[],...sn(e)]:[];h.forEach((t=>{o&&t.addEventListener("scroll",i,{passive:true});a&&t.addEventListener("resize",i)}));const g=c&&r?qn(c,i):null;let m=-1;let d=null;if(s){d=new ResizeObserver((t=>{let[n]=t;if(n&&n.target===c&&d){d.unobserve(e);cancelAnimationFrame(m);m=requestAnimationFrame((()=>{var t;(t=d)==null||t.observe(e)}))}i()}));if(c&&!l){d.observe(c)}d.observe(e)}let u;let p=l?un(t):null;if(l){v()}function v(){const e=un(t);if(p&&!En(p,e)){i()}p=e;u=requestAnimationFrame(v)}i();return()=>{var t;h.forEach((t=>{o&&t.removeEventListener("scroll",i);a&&t.removeEventListener("resize",i)}));g==null||g();(t=d)==null||t.disconnect();d=null;if(l){cancelAnimationFrame(u)}}}const In=Pi;Ci;const Tn=Ii;const Sn=Vi;Si;Bi;const On=Hi;Ei;const jn=Ti;const Rn=(t,e,i)=>{const n=new Map;const o={platform:An,...i};const a={...o.platform,_c:n};return yi(t,e,{...o,platform:a})};const Wn=["top","right","bottom","left"];const Nn=[...Wn,"auto","auto-start","auto-end","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"];const Un=t=>Nn.filter((t=>!t.includes("auto"))).includes(t);const Fn="/*!\n * @prop --mg-c-popover-color-background: Defines the background color of the popover. Default value: `--mg-b-color-light`.\n * @prop --mg-c-popover-color-text: Defines the font color of the popover. Default value: `--mg-b-color-font-dark`.\n * @prop --mg-c-popover-title-font-size: Defines the font size of the popover title. Default value: `--mg-b-font-size-h5`.\n * @prop --mg-c-popover-padding-vertical: Defines the vertical padding of the popover. Default value: `unset`, fallback to `--mg-b-size-16`.\n * @prop --mg-c-popover-padding-horizontal: Defines the horizontal padding of the popover. Default value: `unset`, fallback to `--mg-b-size-16`.\n * @prop --mg-c-popover-max-width: Defines the max-width of the popover. Default value: `--mg-b-size-floating-element-max-width`.\n * @prop --mg-c-popover-min-width: Defines the min-width of the popover. Default value: `unset`.\n */:host{--mg-c-card-spacing:var(--mg-c-popover-padding-vertical, var(--mg-b-size-16)) var(--mg-c-popover-padding-horizontal, var(--mg-b-size-16));--mg-c-card-border:none;--mg-c-card-border-radius:var(--mg-b-size-radius);--mg-c-card-color-background:var(--mg-c-popover-color-background);position:relative;display:contents}:host::slotted(*){display:inline-block}";const Gn=Fn;const Kn=class{constructor(e){t(this,e);this.displayChange=o(this,"display-change",7);this.componentClose=o(this,"component-close",7);this.identifier=a("mg-popover");this.placement="bottom";this.arrowHide=false;this.closeButton=false;this.display=false;this.disabled=false;this.clickOutside=t=>{if(!this.disabled&&t.target.closest("mg-popover")!==this.element&&t.target.closest(`[data-mg-popover-guard="${this.identifier}"]`)===null){this.display=false}};this.show=()=>{this.mgPopover.dataset.show="";setTimeout((()=>{this.manageClickOutsideListeners("addEventListener")}))};this.hide=()=>{this.mgPopover.removeAttribute("data-show");this.manageClickOutsideListeners("removeEventListener")};this.manageClickOutsideListeners=t=>{var e,i;const n=Array.from(((i=(e=document.querySelector(`[data-mg-popover-guard="${this.identifier}"]`))===null||e===void 0?void 0:e.shadowRoot)===null||i===void 0?void 0:i.children)||new Set);[...n,...this.windows].forEach((e=>{if(e!==null){e[t]("click",this.clickOutside,false)}}))};this.handleHideContent=()=>{this.display=false;this.componentClose.emit()};this.renderPopoverContent=()=>{const t=this.element.querySelector("mg-popover-content");if(t===null){this.mgPopoverContent=document.createElement("mg-popover-content");this.mgPopoverContent.setAttribute("slot","content");this.mgPopoverContent.setAttribute("id",this.identifier);this.mgPopoverContent.addEventListener("hide-content",this.handleHideContent);const t=document.createElement("div");t.setAttribute("slot","arrow");t.dataset.floatingArrow="";this.mgPopoverContent.appendChild(t);['[slot="title"]','[slot="content"]:not(mg-popover-content)'].forEach((t=>{Array.from(this.element.querySelectorAll(t)).forEach((t=>{this.mgPopoverContent.appendChild(t)}))}));this.element.appendChild(this.mgPopoverContent)}else{t.setAttribute("id",this.identifier)}};this.setFloatingUI=t=>{const e=(this.element.dataset.fallbackPlacement||"").split(",").map((t=>t.trim()));this.floatingUICleanup=Pn(t,this.mgPopover,(()=>{Rn(t,this.mgPopover,{placement:this.placement,strategy:"fixed",middleware:[In(0),Sn({fallbackPlacements:Array.from(new Set([...e,...Wn]).values()).filter(Un)}),Tn({limiter:jn()}),On({element:this.mgPopover.querySelector("[data-floating-arrow]")})]}).then((({x:t,y:e,placement:i,middlewareData:n})=>{Object.assign(this.mgPopover.style,{position:"fixed",top:"0",left:"0",transform:`translate(${Math.round(t)}px, ${Math.round(e)}px)`});const o={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];const a=this.mgPopover.querySelector("[data-floating-arrow]");const{x:s,y:r}=n.arrow;const l=t=>!isNaN(t)?`${t}px`:"";if(a!==null)Object.assign(a.style,{position:"absolute",left:l(s),top:l(r),[o]:"1px"});this.mgPopover.setAttribute("data-placement",i)}))}))}}validateIdentifier(t){if(!h(t)){throw new Error(`<mg-popover> prop "identifier" value is invalid. Passed value: ${s(t)}.`)}this.renderPopoverContent()}watchPlacement(t){if(!Un(t))this.placement="bottom"}validateArrowHide(t){if(t)this.mgPopoverContent.dataset.arrowHide="";else delete this.mgPopoverContent.dataset.arrowHide}validateCloseButton(t){this.mgPopoverContent.closeButton=t}handleDisplay(t){if(t){this.show()}else{this.hide()}this.displayChange.emit(t)}componentDidUpdate(){this.floatingUICleanup()}componentWillLoad(){this.windows=z(window);this.renderPopoverContent();this.validateCloseButton(this.closeButton);this.validateIdentifier(this.identifier);this.validateArrowHide(this.arrowHide);this.watchPlacement(this.placement)}componentDidLoad(){this.mgPopover=this.element.querySelector(`#${this.identifier}`);const t=this.element.querySelector(":not([slot])");t.setAttribute("aria-controls",this.identifier);t.setAttribute("aria-expanded",`${this.display}`);Object.assign(this.mgPopover.style,{position:"fixed"});this.setFloatingUI(t);[t,this.mgPopoverContent].forEach((e=>{new ResizeObserver((()=>{this.floatingUICleanup();this.setFloatingUI(t)})).observe(e)}));t.addEventListener("click",(()=>{if(!this.disabled)this.display=!this.display}));this.element.addEventListener("click",(t=>{const e=t.target.closest("[popovertargetaction]");if(this.display===true&&e!==null&&e.getAttribute("popovertargetaction")==="hide"){this.display=false}}));this.element.addEventListener("keydown",(e=>{if(!this.disabled&&e.code==="Escape"){this.display=false;this.componentClose.emit();t.focus()}}));this.handleDisplay(this.display)}disconnectedCallback(){this.floatingUICleanup()}render(){return e(i,{key:"726e360b49d1148572db27898037c1d2cfd1755f"},e("slot",{key:"4700d3d58fde644274827866ee8f230c077399b7"}),e("slot",{key:"35d20ddd547b3383dd1de655fac2c35e83fb48af",name:"content"}))}get element(){return n(this)}static get watchers(){return{identifier:["validateIdentifier"],placement:["watchPlacement"],arrowHide:["validateArrowHide"],closeButton:["validateCloseButton"],display:["handleDisplay"]}}};Kn.style=Gn;const Yn=':host{position:relative;z-index:2000;display:none;padding:var(--mg-b-size-8);color:var(--mg-c-popover-color-text)}:host([data-show]){display:block}:host([data-placement^=left-start]),:host([data-placement^=left-end]),:host([data-placement^=right-start]),:host([data-placement^=right-end]){padding:0 var(--mg-b-size-8)}.mg-c-popover-content{--mg-c-card-max-width:var(--mg-c-popover-max-width);--mg-c-card-min-width:var(--mg-c-popover-min-width)}.mg-c-popover-content mg-button{margin-top:calc(-1*(var(--mg-b-size-min-height) - var(--mg-c-popover-title-font-size)*var(--mg-b-line-height))/2);margin-right:calc(-1*(var(--mg-b-size-min-height) - var(--mg-b-size-16))/2);margin-left:var(--mg-b-size-32);float:right}.mg-c-popover-content__title ::slotted([slot=title]){margin:0 0 var(--mg-b-size-8) !important;font-size:var(--mg-c-popover-title-font-size) !important;font-weight:600 !important}.mg-c-popover-content ::slotted(*:not(mg-panel,mg-message,mg-modal)){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}:host([data-placement^=top][data-arrow-hide]){padding-bottom:0}:host([data-placement^=bottom][data-arrow-hide]){padding-top:0}:host([data-placement$=end][data-arrow-hide]),:host([data-placement^=left][data-arrow-hide]){padding-right:0}:host([data-placement$=start][data-arrow-hide]),:host([data-placement^=right][data-arrow-hide]){padding-left:0}::slotted([slot=arrow]){position:absolute;width:calc(var(--mg-b-size-24) + 2*var(--mg-c-card-border-radius) + 2*var(--mg-b-size-8));height:calc(var(--mg-b-size-24) + 2*var(--mg-c-card-border-radius) + 2*var(--mg-b-size-8));visibility:hidden}::slotted([slot=arrow])::before{position:absolute;content:"";visibility:visible}:host([data-arrow-hide]) ::slotted([slot=arrow]){display:none}:host([data-placement^=top]) ::slotted([slot=arrow]),:host([data-placement^=bottom]) ::slotted([slot=arrow]){height:var(--mg-b-size-8)}:host([data-placement^=top]) ::slotted([slot=arrow])::before,:host([data-placement^=bottom]) ::slotted([slot=arrow])::before{left:calc(var(--mg-c-card-border-radius) + var(--mg-b-size-8));border-right:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0);border-left:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0)}:host([data-placement^=top]) ::slotted([slot=arrow]){bottom:var(--mg-b-size-border);filter:drop-shadow(0 0.5rem 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-placement^=top]) ::slotted([slot=arrow])::before{border-top:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-placement^=bottom]) ::slotted([slot=arrow]){top:var(--mg-b-size-border);filter:drop-shadow(0 -0.5rem 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-placement^=bottom]) ::slotted([slot=arrow])::before{border-bottom:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-placement^=left]) ::slotted([slot=arrow]),:host([data-placement^=right]) ::slotted([slot=arrow]){width:var(--mg-b-size-8)}:host([data-placement^=left]) ::slotted([slot=arrow])::before,:host([data-placement^=right]) ::slotted([slot=arrow])::before{top:calc(var(--mg-c-card-border-radius) + var(--mg-b-size-8));border-top:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0);border-bottom:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0)}:host([data-placement^=left]) ::slotted([slot=arrow]){right:var(--mg-b-size-border);filter:drop-shadow(0.5rem 0 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-placement^=left]) ::slotted([slot=arrow])::before{border-left:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-placement^=right]) ::slotted([slot=arrow]){left:var(--mg-b-size-border);filter:drop-shadow(-0.5rem 0 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-placement^=right]) ::slotted([slot=arrow])::before{border-right:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-placement^=left-start]) ::slotted([slot=arrow]),:host([data-placement^=left-end]) ::slotted([slot=arrow]),:host([data-placement^=right-start]) ::slotted([slot=arrow]),:host([data-placement^=right-end]) ::slotted([slot=arrow]){height:calc(var(--mg-b-size-24) + 2*var(--mg-c-card-border-radius))}:host([data-placement^=left-start]) ::slotted([slot=arrow])::before,:host([data-placement^=left-end]) ::slotted([slot=arrow])::before,:host([data-placement^=right-start]) ::slotted([slot=arrow])::before,:host([data-placement^=right-end]) ::slotted([slot=arrow])::before{top:var(--mg-c-card-border-radius)}';const Jn=Yn;const Zn=class{constructor(e){t(this,e);this.hideContent=o(this,"hide-content",7);this.closeButton=false;this.classCollection=new r(["mg-c-popover-content"]);this.handleCloseButton=()=>{this.hideContent.emit()}}componentWillLoad(){this.messages=k(this.element).messages}componentDidLoad(){const t=["h1","h2","h3","h4","h5","h6"];const e=this.element.querySelector('[slot="title"]');if(e&&!g(e,t)){throw new Error(`<mg-popover> Slotted title must be a heading: ${t.join(", ")}.`)}}render(){return e(i,{key:"44aa95d34a4c4beeb5c6d1a59e7e7df999393e52"},e("mg-card",{key:"483195ec364eaaf78df768993706129cb0ce268e",class:this.classCollection.join()},this.closeButton&&e("mg-button",{key:"4e2b4f7b563c591120ba208e74c501b0bee7497b","is-icon":true,variant:"flat",label:this.messages.general.close,onClick:this.handleCloseButton},e("mg-icon",{key:"58a678df3947e4dbfb718c588ccdc97e611915b9",icon:"cross"})),e("div",{key:"e7a9debe373ea8947cde108732f635f39b5305a6",class:"mg-c-popover-content__title"},e("slot",{key:"15fb949256a5f31e8776cdbd7465f46a73db4876",name:"title"})),e("slot",{key:"ee914630e089763ec3a059cdd6b4c3eba0c2cfa0",name:"content"})),e("slot",{key:"9c25549d1543a77b3cc459caf8bd8df0b279a036",name:"arrow"}))}get element(){return n(this)}};Zn.style=Jn;const Xn=".mg-c-skip-links{position:absolute;display:flex;min-height:var(--mg-b-size-56);align-items:center;background:var(--mg-b-color-light);opacity:0;transform:translateY(-100%)}.mg-c-skip-links:focus-within{position:relative;opacity:1;transform:translateY(0)}.mg-c-skip-links__list{display:flex;flex-wrap:wrap;align-items:center;padding:0 var(--mg-b-size-16);margin:0;gap:var(--mg-b-spacing-actions);list-style:none}.mg-c-skip-links__link{display:inline-block;padding:var(--mg-b-size-8) var(--mg-b-size-16);color:var(--mg-b-color-dark)}.mg-c-skip-links__link:hover{background:hsl(var(--mg-b-color-dark-h), var(--mg-b-color-dark-s), var(--mg-b-color-dark-l), 10%)}";const Qn=Xn;const to=class{constructor(e){t(this,e);this.goToAnchor=o(this,"go-to-anchor",7);this.handleLinkCLick=t=>{t.currentTarget.blur();this.goToAnchor.emit(t.currentTarget.getAttribute("href"))}}validateLinks(t){if(t===undefined||t.length===0||t.some((t=>!l(t.href)||!t.href.startsWith("#")||!l(t.label)))){throw new Error(`<mg-skip-links> prop "links": Cannot be empty and each link must contains an href starting with a "#" and a non empty label attributes.`)}}componentWillLoad(){this.validateLinks(this.links);this.messages=k(this.element).messages}render(){return e("nav",{key:"4c0d14ec373d8e987c876ed89923e754af312bfb",class:"mg-c-skip-links",role:"navigation","aria-label":this.messages.skipLinks.navLabel},e("ul",{key:"52117cbae84014f7e59fbcebc6489d73f28dd68d",class:"mg-c-skip-links__list",role:"list"},this.links.map((t=>e("li",{key:t.href},e("a",{class:"mg-c-skip-links__link",href:t.href,onClick:this.handleLinkCLick},t.label))))))}get element(){return n(this)}static get watchers(){return{links:["validateLinks"]}}};to.style=Qn;const eo={VISIBLE:"visible",HIDDEN:"hidden",DISABLED:"disabled",ACTIVE:"active"};const io=["medium","large"];const no="/*!\n * @prop --mg-c-tabs-color: Defines tabs global color, used for bottom line and active tabs. Default value: `--mg-b-color-app`.\n * @prop --mg-c-tabs-color-text: Defines tabs text color. Unset by default, fallback on `--mg-b-color-dark`.\n */.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium{padding:var(--mg-b-size-12) var(--mg-b-size-16)}.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button,.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button ::slotted([slot=label]),.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button ::slotted([slot=metadata]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium ::slotted([slot=label]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium ::slotted([slot=metadata]){font-size:var(--mg-b-font-size)}.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--horizontal,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium.mg-c-tabs__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--vertical,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium.mg-c-tabs__navigation-button--vertical{padding-left:var(--mg-b-size-16)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large{padding:var(--mg-b-size-16) var(--mg-b-size-32)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button,.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button ::slotted([slot=label]),.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button ::slotted([slot=metadata]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large ::slotted([slot=label]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large ::slotted([slot=metadata]){font-size:var(--mg-b-font-size-h4)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--horizontal,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large.mg-c-tabs__navigation-button--horizontal{padding-bottom:var(--mg-b-size-16)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--vertical,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large.mg-c-tabs__navigation-button--vertical{padding-left:var(--mg-b-size-32)}.mg-c-tabs__navigation-button{display:flex;box-sizing:border-box;align-items:center;border:none;background-color:unset;color:var(--mg-c-tabs-color-text, var(--mg-b-color-dark));column-gap:var(--mg-c-tabs-navigation-button-column-gap, var(--mg-b-size-8));cursor:pointer;font-family:var(--mg-b-font-family);font-weight:400;line-height:var(--mg-b-line-height);text-decoration:none;white-space:nowrap}.mg-c-tabs__navigation-button:disabled,.mg-c-tabs__navigation-button--disabled{cursor:default;opacity:var(--mg-b-opacity-element-disabled)}.mg-c-tabs__navigation-button:focus-visible{z-index:10}.mg-c-tabs__navigation-button:hover:not(.mg-c-tabs__navigation-button--disabled),.mg-c-tabs__navigation-button:focus-visible:not(.mg-c-tabs__navigation-button--disabled){background-color:color-mix(in srgb, var(--mg-c-tabs-color), transparent 90%)}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--active{color:var(--mg-c-tabs-color);font-weight:600}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--active.mg-c-tabs__navigation-button--horizontal{box-shadow:inset 0 calc(-1*var(--mg-b-size-4)) var(--mg-c-tabs-color)}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--active.mg-c-tabs__navigation-button--vertical{box-shadow:inset var(--mg-b-size-4) 0 var(--mg-c-tabs-color)}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--hidden{display:none}.mg-c-tabs__header{display:flex;flex-flow:row wrap;border-bottom:var(--mg-b-size-border) solid color-mix(in srgb, var(--mg-c-tabs-color), transparent 90%)}.mg-c-tabs__content-container:focus-visible{outline:none}.mg-c-tabs__navigation-button-text{flex:0 0 content}";const oo=no;const ao=t=>typeof t==="object"&&typeof t.label==="string";const so=class{constructor(e){t(this,e);this.activeTabChange=o(this,"active-tab-change",7);this.tabPanel="panel";this.buttonTabBaseClass="mg-c-tabs__navigation-button";this.startIndex=1;this.identifier=a("mg-tabs");this.size="medium";this.tabs=[];this.classCollection=new r(["mg-c-tabs"]);this.isActivableTab=t=>[undefined,eo.ACTIVE,eo.VISIBLE].includes(t.status);this.tabHasStatus=(t,e)=>t.status===e;this.getElementId=(t,e)=>`${t}-${this.getTabItemIndex(e)}`;this.getTabItemIndex=t=>t+this.startIndex;this.handleClick=t=>{const e=t.currentTarget.dataset.index;if(!this.isActivableTab(this.tabs[Number(e)-this.startIndex])){t.preventDefault()}else{this.activeTab=Number(e);this.tabFocus=undefined}};this.getNavigationButtonClass=t=>`${this.buttonTabBaseClass}--${t}`;this.handleKeydown=t=>{const e=t.target.parentElement;if(["ArrowRight","ArrowLeft"].includes(t.key)){this.tabFocus=Number(t.target.dataset.index);e.querySelector(`[data-index="${this.tabFocus}"]`).setAttribute("tabindex","-1");if(t.key==="ArrowRight"){this.tabFocus++;if(this.tabFocus>this.tabs.length)this.tabFocus=this.startIndex}else if(t.key==="ArrowLeft"){this.tabFocus--;if(this.tabFocus<this.startIndex)this.tabFocus=this.tabs.length}const i=e.querySelector(`[data-index="${this.tabFocus}"]`);if(this.tabHasStatus(this.tabs[this.tabFocus-1],eo.HIDDEN)){i.dispatchEvent(new KeyboardEvent("keydown",{key:t.key,bubbles:true}))}else{i.setAttribute("tabindex","0");i.focus()}}else if(t.key==="Tab"){this.resetFocus()}};this.handleDocumentClick=t=>{if(t.target.closest("mg-tabs")!==this.element)this.resetFocus()};this.resetFocus=()=>{c((()=>{this.tabFocus=undefined;Array.from(this.element.shadowRoot.querySelectorAll("[data-index]")).forEach(((t,e)=>{t.setAttribute("tabindex",this.activeTab-this.startIndex!==e?"-1":"0")}))}))};this.validateSlots=()=>{const t=Array.from(this.element.children).filter((t=>{var e;return(e=t.getAttribute("slot"))===null||e===void 0?void 0:e.includes("tab_content-")}));if(t.length!==this.tabs.length)throw new Error("<mg-tabs> Must have slots counts equal to tabs count.")}}watchIdentifier(t){if(!h(t)){console.error(`<mg-tabs> prop "identifier" value is invalid. Passed value: ${s(t)}.`)}}validateLabel(t){if(!l(t)){throw new Error(`<mg-tabs> prop "label" is required and must be a string. Passed value: ${s(t)}.`)}}validateSize(t){if(!io.includes(t)){throw new Error(`<mg-tabs> prop "size" must be one of: ${io.join(", ")}. Passed value: ${s(t)}.`)}this.classCollection.add(`mg-c-tabs--size-${this.size}`)}validateItems(t){if(x(t))this.tabs=t.map((t=>({label:t,status:eo.VISIBLE})));else if(Array.isArray(t)&&t.length>0&&t.every(ao))this.tabs=t;else throw new Error(`<mg-tabs> prop "items" is required and all items must be the same type: TabItem. Passed value: ${s(t)}.`)}validateActiveTab(t){if(t===undefined){this.activeTab=this.tabs.some((t=>this.tabHasStatus(t,eo.ACTIVE)))?this.getTabItemIndex(this.tabs.findIndex((t=>this.tabHasStatus(t,eo.ACTIVE)))):this.startIndex}else if(typeof t==="number"&&t>=this.startIndex&&t<=this.tabs.length&&this.isActivableTab(this.tabs[t-this.startIndex])){this.tabs.forEach(((e,i)=>{const n=i===t-this.startIndex;if(this.tabHasStatus(e,eo.ACTIVE)&&!n)e.status=eo.VISIBLE;else if(this.isActivableTab(e)&&n)e.status=eo.ACTIVE}));this.activeTabChange.emit(t)}else{throw new Error(`<mg-tabs> prop "activeTab" must be a number between ${this.startIndex} and ${this.tabs.length} and new value must be "activable". Passed value: ${s(t)}.`)}}componentWillLoad(){this.watchIdentifier(this.identifier);this.validateLabel(this.label);this.validateItems(this.items);this.validateActiveTab(this.activeTab);this.validateSize(this.size);this.validateSlots()}componentDidLoad(){document.addEventListener("click",this.handleDocumentClick,false)}disconnectedCallback(){document.removeEventListener("keydown",this.handleDocumentClick)}render(){return e("div",{key:"e4b89ce00f76cc556f72acbfd4b08ef90fd50a9c",class:this.classCollection.join()},e("header",{key:"c9c3434335e28103c1128f4bef926602e182cf14",role:"tablist","aria-label":this.label,class:"mg-c-tabs__header"},this.tabs.map(((t,i)=>e("button",{key:t.label,role:"tab",id:this.getElementId(this.identifier,i),class:{[`${this.buttonTabBaseClass}`]:true,[`${this.buttonTabBaseClass}--horizontal`]:true,[`${this.getNavigationButtonClass(eo.ACTIVE)}`]:this.tabHasStatus(t,eo.ACTIVE),[`${this.getNavigationButtonClass(eo.DISABLED)}`]:this.tabHasStatus(t,eo.DISABLED),[`${this.getNavigationButtonClass(eo.HIDDEN)}`]:this.tabHasStatus(t,eo.HIDDEN)},tabindex:this.tabHasStatus(t,eo.ACTIVE)?0:-1,"aria-selected":this.tabHasStatus(t,eo.ACTIVE).toString(),"aria-controls":this.getElementId(this.tabPanel,i),"aria-disabled":this.tabHasStatus(t,eo.DISABLED),onClick:this.handleClick,onKeyDown:this.handleKeydown,"data-index":this.getTabItemIndex(i)},t.icon!==undefined&&e("mg-icon",{icon:t.icon}),t.label,t.badge!==undefined&&e("mg-badge",{variant:"text-color",value:t.badge.value,label:t.badge.label,outline:t.badge.role==="information"}))))),this.tabs.map(((t,i)=>e("article",{key:t.label,role:"tabpanel",id:this.getElementId(this.tabPanel,i),hidden:!this.tabHasStatus(t,eo.ACTIVE),"aria-labelledby":this.getElementId(this.identifier,i),tabindex:this.tabHasStatus(t,eo.ACTIVE)?0:-1,class:"mg-c-tabs__content-container"},e("slot",{name:this.getElementId("tab_content",i)})))))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],label:["validateLabel"],size:["validateSize"],items:["validateItems"],activeTab:["validateActiveTab"]}}};so.style=oo;const ro=["primary","secondary","success","warning","danger","info"];const lo="/*!\n * @prop --mg-c-tag-height: Defines the height of the tag. Default value is `--mg-b-size-24`.\n * @prop --mg-c-tag-border-radius: Defines the border radius of the tag. Default value is `--mg-b-size-radius`.\n * @prop --mg-c-tag-font-size: Defines the font size of the tag. Default value is `--mg-b-font-size-small`.\n */:host{display:inline-block}.mg-c-tag{display:inline-flex;min-height:var(--mg-c-tag-height);box-sizing:border-box;align-items:center;padding:calc((var(--mg-c-tag-height) - 2*var(--mg-b-size-border) - var(--mg-c-tag-font-size)*var(--mg-b-line-height))/2) calc(var(--mg-b-size-8) - var(--mg-b-size-border));border:var(--mg-b-size-border) solid;border-radius:var(--mg-c-tag-border-radius);font-size:var(--mg-c-tag-font-size);font-weight:600;text-align:center;vertical-align:middle}.mg-c-tag.mg-c-tag--primary{border-color:var(--mg-b-color-neutral-110);background-color:var(--mg-b-color-neutral-110);color:var(--mg-b-color-text-on-primary)}.mg-c-tag.mg-c-tag--primary.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-neutral-110)}.mg-c-tag.mg-c-tag--primary.mg-c-tag--soft{border-color:var(--mg-b-color-neutral-20);background-color:var(--mg-b-color-neutral-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--primary.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-neutral-110)}.mg-c-tag.mg-c-tag--secondary{border-color:var(--mg-b-color-neutral-10);background-color:var(--mg-b-color-neutral-10);color:var(--mg-b-color-text-on-secondary)}.mg-c-tag.mg-c-tag--secondary.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-neutral-10)}.mg-c-tag.mg-c-tag--secondary.mg-c-tag--soft{border-color:var(--mg-b-color-neutral-20);background-color:var(--mg-b-color-neutral-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--secondary.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-text-on-secondary)}.mg-c-tag.mg-c-tag--danger{border-color:var(--mg-b-color-danger);background-color:var(--mg-b-color-danger);color:var(--mg-b-color-text-on-danger)}.mg-c-tag.mg-c-tag--danger.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-danger)}.mg-c-tag.mg-c-tag--danger.mg-c-tag--soft{border-color:var(--mg-b-color-red-20);background-color:var(--mg-b-color-red-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--danger.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-danger)}.mg-c-tag.mg-c-tag--info{border-color:var(--mg-b-color-info);background-color:var(--mg-b-color-info);color:var(--mg-b-color-text-on-info)}.mg-c-tag.mg-c-tag--info.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-info)}.mg-c-tag.mg-c-tag--info.mg-c-tag--soft{border-color:var(--mg-b-color-blue-20);background-color:var(--mg-b-color-blue-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--info.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-info)}.mg-c-tag.mg-c-tag--success{border-color:var(--mg-b-color-success);background-color:var(--mg-b-color-success);color:var(--mg-b-color-text-on-success)}.mg-c-tag.mg-c-tag--success.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-success)}.mg-c-tag.mg-c-tag--success.mg-c-tag--soft{border-color:var(--mg-b-color-green-20);background-color:var(--mg-b-color-green-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--success.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-success)}.mg-c-tag.mg-c-tag--warning{border-color:var(--mg-b-color-warning);background-color:var(--mg-b-color-warning);color:var(--mg-b-color-text-on-warning)}.mg-c-tag.mg-c-tag--warning.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-warning)}.mg-c-tag.mg-c-tag--warning.mg-c-tag--soft{border-color:var(--mg-b-color-yellow-20);background-color:var(--mg-b-color-yellow-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--warning.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-warning)}::slotted(mg-icon){margin-right:var(--mg-b-size-4)}slot{display:inline-flex;align-items:center}";const co=lo;const ho=class{constructor(e){t(this,e);this.classOutline="mg-c-tag--outline";this.classSoft="mg-c-tag--soft";this.variant=ro[0];this.classCollection=new r(["mg-c-tag"])}validateVariant(t,e){if(!ro.includes(t)){throw new Error(`<mg-tag> prop "variant" must be one of: ${ro.join(", ")}. Passed value: ${s(t)}.`)}else{if(e!==undefined){this.classCollection.delete(`mg-c-tag--${e}`)}this.classCollection.add(`mg-c-tag--${t}`)}}validateOutline(t){if(t)this.classCollection.add(this.classOutline);else this.classCollection.delete(this.classOutline)}validateSoft(t){if(t&&this.outline)throw new Error('<mg-tag> prop "soft" can NOT be used with prop "outline".');if(t)this.classCollection.add(this.classSoft);else this.classCollection.delete(this.classSoft)}validateTextContent(t){if(!l(t))throw new Error("<mg-tag> slot must contain a text content.")}componentWillLoad(){this.validateVariant(this.variant);this.validateOutline(this.outline);this.validateSoft(this.soft);this.validateTextContent(this.element.textContent)}render(){return e("span",{key:"b3269e3baec3a281bdbe65f8b62636b7ea2fa84c",class:this.classCollection.join()},e("slot",{key:"bcca2d8653dbcd6a96d322055a4e2773d85ca87d"}))}get element(){return n(this)}static get watchers(){return{variant:["validateVariant"],outline:["validateOutline"],soft:["validateSoft"]}}};ho.style=co;const go={FOCUS:"focus",HOVER_TOOLTIP_ELEMENT:"hoverTooltip",HOVER_TOOLTIPED_ELEMENT:"hoverTooltiped",DISABLE_ON_CLICK:"disableOnClick"};const mo="/*!\n * @prop --mg-c-tooltip-border-radius: Defines the border radius of the tooltip. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-tooltip-color-background: Defines the background color of the tooltip. Default value: `--mg-b-color-dark`.\n * @prop --mg-c-tooltip-color-text: Defines the font color of the tooltip. Default value: `--mg-b-color-light`.\n */:host{display:inline-block}";const uo=mo;const po=t=>typeof t==="object"&&["MG-BUTTON","BUTTON"].includes(t.tagName);const vo=class{constructor(e){t(this,e);this.identifier=a("mg-tooltip");this.placement="bottom";this.display=false;this.disabled=false;this.show=()=>{this.mgTooltipContent.dataset.show="";c((()=>{this.windows.forEach((t=>{t.addEventListener("click",this.handleClickOutside,false);t.addEventListener("keydown",this.handlePressEscape,false)}))}))};this.hide=()=>{this.mgTooltipContent.removeAttribute("data-show");this.windows.forEach((t=>{t.removeEventListener("click",this.handleClickOutside,false);t.removeEventListener("keyboard",this.handlePressEscape,false)}))};this.handleClickOutside=t=>{if(t.target.closest("mg-tooltip")!==this.element)this.setDisplay(false)};this.handlePressEscape=t=>{if(t.code==="Escape"){this.setDisplay(false);this.resetGuard()}};this.setDisplay=(t,e=true)=>{if(!this.disabled&&e)this.display=t};this.tooltipMouseListenerAction=(t,e,i)=>{if([go.FOCUS,go.DISABLE_ON_CLICK].includes(this.guard)){return}this.guard=t;if(e!=="mouseenter"){setTimeout((()=>{this.setDisplay(false,this.guard!==i);this.resetGuard()}),100)}else if(this.guard===go.HOVER_TOOLTIPED_ELEMENT){this.setDisplay(true)}};this.resetGuard=()=>{this.guard=undefined};this.setMgButtonWrapper=t=>{const e="mg-c-tooltip__mg-button-wrapper";const i=t.parentElement.classList.contains(e);if(t.disabled&&!i){const i=document.createElement("div");i.classList.add(e);t.parentNode.insertBefore(i,t);i.appendChild(t);this.setTooltipedElement(i)}else if(!t.disabled&&i){this.element.firstElementChild.replaceWith(t);this.setTooltipedElement(t)}};this.setFloatingUI=t=>{Object.assign(this.mgTooltipContent.style,{position:t,top:"0",left:"0",transform:"translate(0, 0)"});this.floatingUICleanup=Pn(this.tooltipedElement,this.mgTooltipContent,(()=>{Rn(this.tooltipedElement,this.mgTooltipContent,{placement:this.placement,strategy:t,middleware:[In(8),Sn(),Tn({limiter:jn()}),On({element:this.mgTooltipContent.querySelector("[data-floating-arrow]")})]}).then((({x:t,y:e,placement:i,middlewareData:n})=>{Object.assign(this.mgTooltipContent.style,{transform:!isNaN(t)&&!isNaN(e)?`translate(${t}px, ${e}px)`:undefined});const{x:o,y:a}=n.arrow;const s={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];const r=this.mgTooltipContent.querySelector("[data-floating-arrow]");const l=t=>!isNaN(t)?`${t}px`:"";Object.assign(r.style,{left:l(o),top:l(a),[s]:"-4px",position:"absolute"});this.mgTooltipContent.setAttribute("data-placement",i)}))}))};this.setTooltipedElement=t=>{this.tooltipedElement=t;this.tooltipedElement.addEventListener("focus",(()=>{this.guard=go.FOCUS;this.setDisplay(true)}));this.tooltipedElement.addEventListener("mouseup",(()=>{this.resetGuard()}));this.tooltipedElement.addEventListener("blur",(()=>{this.resetGuard();this.setDisplay(false)}));this.tooltipedElement.addEventListener("mouseenter",(()=>{this.tooltipMouseListenerAction(go.HOVER_TOOLTIPED_ELEMENT,"mouseenter",go.HOVER_TOOLTIP_ELEMENT)}));this.tooltipedElement.addEventListener("mouseleave",(()=>{this.tooltipMouseListenerAction(go.HOVER_TOOLTIPED_ELEMENT,"mouseleave",go.HOVER_TOOLTIP_ELEMENT)}))};this.setMgButtonMutationObserver=t=>{new MutationObserver((e=>{if(!e.some((t=>["aria-disabled","disabled"].includes(t.attributeName))))return;if(e.some((t=>t.target.disabled&&t.target.disableOnClick))){this.guard=go.DISABLE_ON_CLICK}if(this.guard===go.DISABLE_ON_CLICK)return;this.setMgButtonWrapper(t);this.resetGuard();this.floatingUICleanup();this.setFloatingUI(this.element.closest("mg-popover")!==null?"absolute":"fixed")})).observe(t,{attributes:true})};this.setAriaDescribedby=t=>{if(!t.hasAttribute("aria-describedby")){this.tooltipedElement.setAttribute("aria-describedby",this.identifier)}else{t.setAttribute("aria-describedby",`${[...new Set([...t.getAttribute("aria-describedby").split(" "),this.identifier])].join(" ")}`)}}}watchIdentifier(t){if(!h(t)){throw new Error(`<mg-tooltip> prop "identifier" value is invalid. Passed value: ${s(t)}.`)}this.renderTooltipContent()}watchMessage(t){if(!l(t)){throw new Error(`<mg-tooltip> prop "message" is required and must be a string. Passed value: ${s(t)}.`)}if(this.mgTooltipContent!==undefined)this.mgTooltipContent.message=t}watchPlacement(t){if(!Un(t))this.placement="bottom"}watchDisplay(t){if(t){this.show()}else{this.hide()}}watchDisabled(t){if(this.hasCustomTabIndex){if(t)this.tooltipedElement.removeAttribute("tabindex");else if(!this.tooltipedElement.hasAttribute("tabindex"))this.tooltipedElement.setAttribute("tabindex","0")}}renderTooltipContent(){if(this.mgTooltipContent!==undefined){this.mgTooltipContent.setAttribute("id",this.identifier)}else{this.mgTooltipContent=document.createElement("mg-tooltip-content");this.mgTooltipContent.setAttribute("slot","content");this.mgTooltipContent.setAttribute("id",this.identifier);const t=document.createElement("div");t.setAttribute("slot","arrow");t.dataset.floatingArrow="";this.mgTooltipContent.appendChild(t);this.mgTooltipContent.addEventListener("mouseenter",(()=>{this.tooltipMouseListenerAction(go.HOVER_TOOLTIP_ELEMENT,"mouseenter",go.HOVER_TOOLTIPED_ELEMENT)}));this.mgTooltipContent.addEventListener("mouseleave",(()=>{this.tooltipMouseListenerAction(go.HOVER_TOOLTIP_ELEMENT,"mouseleave",go.HOVER_TOOLTIPED_ELEMENT)}));this.element.appendChild(this.mgTooltipContent)}}componentWillLoad(){this.windows=z(window);this.renderTooltipContent();this.watchPlacement(this.placement);this.watchDisabled(this.disabled);this.watchMessage(this.message);this.watchIdentifier(this.identifier)}componentDidLoad(){var t;const e=this.element.querySelector(`*:not(#${this.identifier})`);const i=e.matches(y)?e:(t=e.shadowRoot)===null||t===void 0?void 0:t.querySelector(y);this.setTooltipedElement(i||e);if(po(e)){this.setMgButtonMutationObserver(e);this.setMgButtonWrapper(e)}if(!this.disabled&&[undefined,null].includes(i)){this.hasCustomTabIndex=true;e.tabIndex=0;e.setAttribute("role","button")}this.setAriaDescribedby(e);this.setFloatingUI(this.element.closest("mg-popover")!==null?"absolute":"fixed");document.addEventListener("keydown",this.handlePressEscape);this.watchDisplay(this.display)}componentDidUpdate(){this.floatingUICleanup();this.setFloatingUI(this.element.closest("mg-popover")!==null?"absolute":"fixed")}disconnectedCallback(){var t;document.removeEventListener("keydown",this.handlePressEscape);(t=this.windows)===null||t===void 0?void 0:t.forEach((t=>{t.removeEventListener("click",this.handleClickOutside,false);t.removeEventListener("keydown",this.handlePressEscape,false)}));this.floatingUICleanup()}render(){return e(i,{key:"38823340f62287af2769d7dee3313dc83405fd87"},e("slot",{key:"598ed57134a1163630f036328139572acb467f41"}),e("slot",{key:"8da7b05b4675b00a4b5e90a3e9b8c0532b1afac1",name:"content"}))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],message:["watchMessage"],placement:["watchPlacement"],display:["watchDisplay"],disabled:["watchDisabled"]}}};vo.style=uo;const fo=':host{z-index:1000;display:none;max-width:var(--mg-b-size-floating-element-max-width);box-sizing:border-box;padding:var(--mg-b-size-4) var(--mg-b-size-8);border-radius:var(--mg-c-tooltip-border-radius);background-color:var(--mg-c-tooltip-color-background);color:var(--mg-c-tooltip-color-text);font-family:var(--mg-b-font-family);font-size:var(--mg-b-font-size);font-weight:400;text-align:start}:host([data-show]){display:block}::slotted([slot=arrow]){visibility:hidden}::slotted([slot=arrow])::before{content:"";transform:rotate(45deg);visibility:visible}::slotted([slot=arrow]),::slotted([slot=arrow])::before{position:absolute;z-index:9999;width:var(--mg-b-size-8);height:var(--mg-b-size-8);background-color:var(--mg-c-tooltip-color-background)}:host([data-placement^=top])>::slotted([slot=arrow]){bottom:calc(-1*var(--mg-b-size-4))}:host([data-placement^=bottom])>::slotted([slot=arrow]){top:calc(-1*var(--mg-b-size-4))}:host([data-placement^=left])>::slotted([slot=arrow]){right:calc(-1*var(--mg-b-size-4))}:host([data-placement^=right])>::slotted([slot=arrow]){left:calc(-1*var(--mg-b-size-4))}';const bo=fo;const wo=class{constructor(e){t(this,e)}render(){return e(i,{key:"2221de3ca0ef7c9d6e46e24b19c69007fababf81",role:"tooltip"},e("span",{key:"9e14f7f5b3f5e5060ed9f42e8d7259b17575168e",innerHTML:this.message,class:"mg-tooltip-content__message"}),e("slot",{key:"bc083567d77e8f4ffccee98b96036ba8ac494fb6",name:"arrow"}))}};wo.style=bo;export{j as mg_action_more,U as mg_badge,J as mg_button,Q as mg_card,it as mg_character_left,at as mg_details,lt as mg_divider,dt as mg_form,_t as mg_icon,Ht as mg_illustrated_message,Vt as mg_input,qt as mg_input_checkbox,Pt as mg_input_checkbox_paginated,St as mg_input_date,Nt as mg_input_numeric,Gt as mg_input_password,Zt as mg_input_radio,oe as mg_input_select,ce as mg_input_text,me as mg_input_textarea,pe as mg_input_title,we as mg_input_toggle,ye as mg_item_more,Me as mg_menu,Le as mg_menu_item,Ee as mg_message,Te as mg_modal,We as mg_pagination,Ke as mg_panel,Kn as mg_popover,Zn as mg_popover_content,to as mg_skip_links,so as mg_tabs,ho as mg_tag,vo as mg_tooltip,wo as mg_tooltip_content};
2
- //# sourceMappingURL=p-1c126a81.entry.js.map