@haiilo/catalyst 0.14.3 → 0.15.2

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 (65) hide show
  1. package/dist/catalyst/catalyst.esm.js +1 -1
  2. package/dist/catalyst/catalyst.esm.js.map +1 -1
  3. package/dist/catalyst/index.cdn.js +17 -12
  4. package/dist/catalyst/p-7fff102c.entry.js +12 -0
  5. package/dist/catalyst/p-7fff102c.entry.js.map +1 -0
  6. package/dist/cjs/{cat-alert_22.cjs.entry.js → cat-alert_24.cjs.entry.js} +2234 -19
  7. package/dist/cjs/cat-alert_24.cjs.entry.js.map +1 -0
  8. package/dist/cjs/catalyst.cjs.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/collection/collection-manifest.json +2 -0
  11. package/dist/collection/components/cat-badge/cat-badge.css +5 -5
  12. package/dist/collection/components/cat-button/cat-button.css +4 -0
  13. package/dist/collection/components/cat-checkbox/cat-checkbox.css +1 -0
  14. package/dist/collection/components/cat-input/cat-input.css +1 -0
  15. package/dist/collection/components/cat-scrollable/cat-scrollable.css +0 -1
  16. package/dist/collection/components/cat-select-remote/cat-select-remote.css +210 -0
  17. package/dist/collection/components/cat-select-remote/cat-select-remote.js +818 -0
  18. package/dist/collection/components/cat-select-remote/cat-select-remote.js.map +1 -0
  19. package/dist/collection/components/cat-select-remote-test/cat-select-remote-test.js +1288 -0
  20. package/dist/collection/components/cat-select-remote-test/cat-select-remote-test.js.map +1 -0
  21. package/dist/collection/index.cdn.js +17 -12
  22. package/dist/collection/index.js.map +1 -1
  23. package/dist/components/cat-badge.js +1 -1
  24. package/dist/components/cat-badge.js.map +1 -1
  25. package/dist/components/cat-button2.js +1 -1
  26. package/dist/components/cat-button2.js.map +1 -1
  27. package/dist/components/cat-checkbox.js +1 -115
  28. package/dist/components/cat-checkbox.js.map +1 -1
  29. package/dist/components/cat-checkbox2.js +119 -0
  30. package/dist/components/cat-checkbox2.js.map +1 -0
  31. package/dist/components/cat-input.js +1 -1
  32. package/dist/components/cat-input.js.map +1 -1
  33. package/dist/components/cat-scrollable.js +1 -1355
  34. package/dist/components/cat-scrollable.js.map +1 -1
  35. package/dist/components/cat-scrollable2.js +1359 -0
  36. package/dist/components/cat-scrollable2.js.map +1 -0
  37. package/dist/components/cat-select-remote-test.d.ts +11 -0
  38. package/dist/components/cat-select-remote-test.js +1368 -0
  39. package/dist/components/cat-select-remote-test.js.map +1 -0
  40. package/dist/components/cat-select-remote.d.ts +11 -0
  41. package/dist/components/cat-select-remote.js +8 -0
  42. package/dist/components/cat-select-remote.js.map +1 -0
  43. package/dist/components/cat-select-remote2.js +987 -0
  44. package/dist/components/cat-select-remote2.js.map +1 -0
  45. package/dist/components/cat-skeleton.js +1 -71
  46. package/dist/components/cat-skeleton.js.map +1 -1
  47. package/dist/components/cat-skeleton2.js +75 -0
  48. package/dist/components/cat-skeleton2.js.map +1 -0
  49. package/dist/components/index.d.ts +2 -0
  50. package/dist/components/index.js +2 -0
  51. package/dist/components/index.js.map +1 -1
  52. package/dist/esm/{cat-alert_22.entry.js → cat-alert_24.entry.js} +2233 -20
  53. package/dist/esm/cat-alert_24.entry.js.map +1 -0
  54. package/dist/esm/catalyst.js +1 -1
  55. package/dist/esm/loader.js +1 -1
  56. package/dist/types/components/cat-select-remote/autosize.d.ts +1 -0
  57. package/dist/types/components/cat-select-remote/cat-select-remote.d.ts +164 -0
  58. package/dist/types/components/cat-select-remote-test/cat-select-remote-test.d.ts +6 -0
  59. package/dist/types/components.d.ts +149 -0
  60. package/dist/types/index.d.ts +3 -0
  61. package/package.json +5 -4
  62. package/dist/catalyst/p-45547af1.entry.js +0 -12
  63. package/dist/catalyst/p-45547af1.entry.js.map +0 -1
  64. package/dist/cjs/cat-alert_22.cjs.entry.js.map +0 -1
  65. package/dist/esm/cat-alert_22.entry.js.map +0 -1
@@ -0,0 +1,12 @@
1
+ import{r as t,h as i,H as e,c as n,g as r}from"./p-a255bd64.js";import{l as s,a as o,C as a,c,g as l,N as u}from"./p-933b6a7a.js";const h=":host{display:block;margin-bottom:1rem}:host(:focus-visible){outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}:host([hidden]){display:none}.alert{font:inherit;background-color:rgba(var(--bg), 0.1);border-radius:0.5rem;padding:1.25rem;display:flex;flex-direction:row;gap:0.5rem}.content{align-self:center}::slotted(:last-child){margin-bottom:0 !important}.alert-primary{--bg:var(--cat-primary-bg, 32, 127, 138)}.alert-primary cat-icon{color:#207f8a}.alert-secondary{--bg:105, 118, 135}.alert-secondary cat-icon{color:#697687}.alert-success{--bg:0, 132, 88}.alert-success cat-icon{color:#008458}.alert-warning{--bg:255, 206, 128}.alert-warning cat-icon{color:#ebb663}.alert-danger{--bg:217, 52, 13}.alert-danger cat-icon{color:#d9340d}";const d=class{constructor(i){t(this,i);this.mapIcon=new Map([["primary","star-circle-filled"],["secondary","clock-filled"],["success","check-circle-filled"],["warning","danger-filled"],["danger","cross-circle-filled"]]);this.color="primary";this.noIcon=false}render(){return i(e,{tabindex:"0",role:this.role},i("div",{part:"alert",class:{alert:true,[`alert-${this.color}`]:Boolean(this.color)}},!this.noIcon&&i("cat-icon",{size:"l",icon:this.icon?this.icon:this.mapIcon.get(this.color)}),i("div",{class:"content"},i("slot",null))))}get role(){switch(this.color){case"danger":case"warning":return"alert";default:return"status"}}};d.style=h;const f=t=>new Promise(((i,e)=>{const n=new Image;n.addEventListener("load",i);n.addEventListener("error",e);n.src=t}));const p=":host{display:inline-block;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}.avatar{display:flex;align-items:center;justify-content:center;border-radius:0.25rem;text-decoration:inherit;color:var(--cat-avatar-fill, white);background-color:var(--cat-avatar-bg, #697687);background-size:cover;background-position:center;white-space:nowrap;overflow:hidden}.avatar:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.avatar-round{border-radius:50%}.avatar-xs{width:var(--cat-avatar-size, 1.5rem);height:var(--cat-avatar-size, 1.5rem);line-height:var(--cat-avatar-size, 1.5rem);font-size:var(--cat-avatar-font-size, 0.75rem)}.avatar-s{width:var(--cat-avatar-size, 2rem);height:var(--cat-avatar-size, 2rem);line-height:var(--cat-avatar-size, 2rem);font-size:var(--cat-avatar-font-size, 0.875rem)}.avatar-m{width:var(--cat-avatar-size, 2.5rem);height:var(--cat-avatar-size, 2.5rem);line-height:var(--cat-avatar-size, 2.5rem);font-size:var(--cat-avatar-font-size, 0.9375rem)}.avatar-l{width:var(--cat-avatar-size, 3rem);height:var(--cat-avatar-size, 3rem);line-height:var(--cat-avatar-size, 3rem);font-size:var(--cat-avatar-font-size, 1.125rem)}.avatar-xl{width:var(--cat-avatar-size, 3.5rem);height:var(--cat-avatar-size, 3.5rem);line-height:var(--cat-avatar-size, 3.5rem);font-size:var(--cat-avatar-font-size, 1.25rem)}";const v=class{constructor(i){t(this,i);this.size="m";this.round=false;this.label=""}onSrcChanged(t){if(t){f(t).then((()=>this.backgroundImage=`url(${t})`),(()=>this.backgroundImage=undefined))}else{this.backgroundImage=undefined}}componentWillLoad(){this.onSrcChanged(this.src)}componentWillRender(){if(!this.label){s.warn("[A11y] Missing ARIA label on avatar",this)}}render(){if(this.url){return i("a",{href:this.url,target:this.urlTarget,style:this.cssStyle,class:this.cssClass,"aria-label":this.label},this.content)}else{return i("span",{style:this.cssStyle,class:this.cssClass,"aria-label":this.label},this.content)}}get content(){return!this.backgroundImage?[this.icon?i("cat-icon",{icon:this.icon,size:this.size}):this.getInitials()]:[]}get cssStyle(){return{"background-image":this.backgroundImage}}get cssClass(){return{avatar:true,"avatar-round":this.round,[`avatar-${this.size}`]:Boolean(this.size)}}getInitials(){var t,i;return(t=this.initials)!==null&&t!==void 0?t:((i=this.label)!==null&&i!==void 0?i:"").split(" ").map((t=>t[0])).join("")}static get watchers(){return{src:["onSrcChanged"]}}};v.style=p;const m=":host{display:inline-flex;max-width:100%;vertical-align:baseline}:host([hidden]){display:none}.badge{font:inherit;flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:0.125rem;text-decoration:none;width:100%;box-sizing:border-box;line-height:1;white-space:nowrap}.badge slot{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.badge-round{border-radius:10rem}.badge-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.badge-outlined{background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--border), 0.2);color:rgb(var(--text))}.badge-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 32, 127, 138);--border:var(--cat-primary-text, 32, 127, 138)}.badge-secondary{--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0;--border:105, 118, 135}.badge-success{--bg:0, 132, 88;--fill:255, 255, 255;--text:0, 132, 88;--border:0, 132, 88}.badge-warning{--bg:255, 206, 128;--fill:0, 0, 0;--text:159, 97, 0;--border:159, 97, 0}.badge-danger{--bg:217, 52, 13;--fill:255, 255, 255;--text:217, 52, 13;--border:217, 52, 13}.badge-xs{height:1rem;min-width:1rem;font-size:12px;padding:0 0.25rem}.badge-s{height:1.5rem;min-width:1.5rem;font-size:12px;padding:0 0.5rem}.badge-m{height:2rem;min-width:2rem;font-size:13px;padding:0 0.75rem}.badge-l{height:2.5rem;min-width:2.5rem;font-size:15px;padding:0 1rem}.badge-xl{height:3rem;min-width:3rem;font-size:18px;padding:0 1rem}.badge-pulse.badge-filled{animation:1.5s ease 0s infinite normal none running pulse}.badge-pulse.badge-outlined{animation:1.5s ease 0s infinite normal none running pulse-outlined}@keyframes pulse{0%{box-shadow:0 0 0 0 rgb(var(--bg))}70%{box-shadow:transparent 0 0 0 0.5rem}100%{box-shadow:transparent 0 0 0 0}}@keyframes pulse-outlined{0%{box-shadow:0 0 0 0 rgb(var(--bg)), inset 0 0 0 1px rgba(var(--border), 0.2)}70%{box-shadow:transparent 0 0 0 0.5rem, inset 0 0 0 1px rgba(var(--border), 0.2)}100%{box-shadow:transparent 0 0 0 0, inset 0 0 0 1px rgba(var(--border), 0.2)}}";const b=class{constructor(i){t(this,i);this.variant="filled";this.color="primary";this.size="m";this.round=false;this.pulse=false}render(){return i("span",{part:"badge",class:{badge:true,"badge-round":this.round,"badge-pulse":this.pulse,[`badge-${this.variant}`]:Boolean(this.variant),[`badge-${this.color}`]:Boolean(this.color),[`badge-${this.size}`]:Boolean(this.size)}},i("slot",null))}};b.style=m;const g=["xs","s","m","l","xl"];const y={xs:"(max-width: 539.98px)",s:"(max-width: 767.98px)",m:"(max-width: 991.98px)",l:"(max-width: 1199.98px)",xl:"(max-width: 1399.98px)"};function w(t){return typeof t==="string"&&g.includes(t)}let x;try{x=typeof Intl!=="undefined"&&Intl.v8BreakIterator}catch(t){x=false}class M{constructor(){this.EDGE=/(edge)/i.test(navigator.userAgent);this.TRIDENT=/(msie|trident)/i.test(navigator.userAgent);this.BLINK=!!(window.chrome||x)&&typeof CSS!=="undefined"&&!this.EDGE&&!this.TRIDENT;this.WEBKIT=/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;this.IOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);this.FIREFOX=/(firefox|minefield)/i.test(navigator.userAgent);this.ANDROID=/android/i.test(navigator.userAgent)&&!this.TRIDENT;this.SAFARI=/safari/i.test(navigator.userAgent)&&this.WEBKIT}}const k=new Set;let _;class I{constructor(){this._platform=new M;this._matchMedia=window.matchMedia.bind(window)}matchMedia(t){if(this._platform.WEBKIT||this._platform.BLINK){j(t)}return this._matchMedia(t)}}function j(t){if(k.has(t)){return}try{if(!_){_=document.createElement("style");_.setAttribute("type","text/css");document.head.appendChild(_)}if(_.sheet){_.sheet.insertRule(`@media ${t} {body{ }}`,0);k.add(t)}}catch(t){s.error(t)}}const A=':host{display:inline-block;max-width:100%;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}.cat-button{position:relative;font:inherit;display:flex;align-items:center;justify-content:center;border:none;border-radius:0.25rem;text-decoration:none;width:100%;box-sizing:border-box;cursor:pointer;transition:color 0.13s linear, border-color 0.13s linear, background-color 0.13s linear, box-shadow 0.13s linear}.cat-button:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-button-content{word-wrap:break-word;word-break:break-word}.cat-button-ellipsed .cat-button-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.cat-button-disabled{cursor:not-allowed;opacity:0.65;filter:grayscale(100%)}.cat-button-round{border-radius:10rem}.cat-button-loading{cursor:default}.cat-button-loading cat-spinner{position:absolute}.cat-button-loading>*:not(cat-spinner){visibility:hidden}.cat-button-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.cat-button-outlined{background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--base), 0.2);color:rgb(var(--text))}.cat-button-outlined:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.05)}.cat-button-outlined:active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-text{background-color:transparent;color:rgb(var(--text));text-decoration:none}.cat-button-text:hover:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:none;background-color:rgba(var(--base), 0.05)}.cat-button-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 32, 127, 138);--base:var(--cat-primary-text, 32, 127, 138)}.cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-hover, 28, 112, 122);--fill:var(--cat-primary-fill-hover, 255, 255, 255);--text:var(--cat-primary-text-hover, 28, 112, 122)}.cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-active, 25, 101, 110);--fill:var(--cat-primary-fill-active, 255, 255, 255);--text:var(--cat-primary-text-active, 25, 101, 110)}.cat-button-secondary{--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0;--base:105, 118, 135}.cat-button-secondary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0}.cat-button-secondary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0}.cat-button-success{--bg:0, 132, 88;--fill:255, 255, 255;--text:0, 132, 88;--base:0, 132, 88}.cat-button-success:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:0, 117, 78;--fill:255, 255, 255;--text:0, 117, 78}.cat-button-success:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:0, 105, 70;--fill:255, 255, 255;--text:0, 105, 70}.cat-button-warning{--bg:255, 206, 128;--fill:0, 0, 0;--text:159, 97, 0;--base:159, 97, 0}.cat-button-warning:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:255, 214, 148;--fill:0, 0, 0;--text:159, 97, 0}.cat-button-warning:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:255, 222, 168;--fill:0, 0, 0;--text:159, 97, 0}.cat-button-danger{--bg:217, 52, 13;--fill:255, 255, 255;--text:217, 52, 13;--base:217, 52, 13}.cat-button-danger:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:194, 46, 11;--fill:255, 255, 255;--text:194, 46, 11}.cat-button-danger:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:174, 42, 10;--fill:255, 255, 255;--text:174, 42, 10}:host(.cat-button-pull:not([size])){margin:-0.625rem -0.75rem}:host(.cat-button-pull-h:not([size])){margin-left:-0.75rem;margin-right:-0.75rem}:host(.cat-button-pull-v:not([size])){margin-top:-0.625rem;margin-bottom:-0.625rem}:host(.cat-button-pull-t:not([size])){margin-top:-0.625rem}:host(.cat-button-pull-l:not([size])){margin-left:-0.75rem}:host(.cat-button-pull-b:not([size])){margin-bottom:-0.625rem}:host(.cat-button-pull-r:not([size])){margin-right:-0.75rem}.cat-button-xs{min-width:1.5rem;padding:0.25rem 0.25rem;font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400)}.cat-button-xs .cat-button-prefix{margin-right:0.25rem}.cat-button-xs .cat-button-suffix{margin-left:0.25rem}.cat-button-xs.cat-button-icon{width:1.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-xs{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=xs]){margin:-0.25rem -0.25rem}:host(.cat-button-pull-h[size=xs]){margin-left:-0.25rem;margin-right:-0.25rem}:host(.cat-button-pull-v[size=xs]){margin-top:-0.25rem;margin-bottom:-0.25rem}:host(.cat-button-pull-t[size=xs]){margin-top:-0.25rem}:host(.cat-button-pull-l[size=xs]){margin-left:-0.25rem}:host(.cat-button-pull-b[size=xs]){margin-bottom:-0.25rem}:host(.cat-button-pull-r[size=xs]){margin-right:-0.25rem}.cat-button-s{min-width:2rem;padding:0.375rem 0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400)}.cat-button-s .cat-button-prefix{margin-right:0.25rem}.cat-button-s .cat-button-suffix{margin-left:0.25rem}.cat-button-s cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-s.cat-button-icon{width:2rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-s{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=s]){margin:-0.375rem -0.5rem}:host(.cat-button-pull-h[size=s]){margin-left:-0.5rem;margin-right:-0.5rem}:host(.cat-button-pull-v[size=s]){margin-top:-0.375rem;margin-bottom:-0.375rem}:host(.cat-button-pull-t[size=s]){margin-top:-0.375rem}:host(.cat-button-pull-l[size=s]){margin-left:-0.5rem}:host(.cat-button-pull-b[size=s]){margin-bottom:-0.375rem}:host(.cat-button-pull-r[size=s]){margin-right:-0.5rem}.cat-button-m{min-width:2.5rem;padding:0.625rem 0.75rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400)}.cat-button-m .cat-button-prefix{margin-right:0.25rem}.cat-button-m .cat-button-suffix{margin-left:0.25rem}.cat-button-m cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-m.cat-button-icon{width:2.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-m{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=m]){margin:-0.625rem -0.75rem}:host(.cat-button-pull-h[size=m]){margin-left:-0.75rem;margin-right:-0.75rem}:host(.cat-button-pull-v[size=m]){margin-top:-0.625rem;margin-bottom:-0.625rem}:host(.cat-button-pull-t[size=m]){margin-top:-0.625rem}:host(.cat-button-pull-l[size=m]){margin-left:-0.75rem}:host(.cat-button-pull-b[size=m]){margin-bottom:-0.625rem}:host(.cat-button-pull-r[size=m]){margin-right:-0.75rem}.cat-button-l{min-width:3rem;padding:0.875rem 1rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400)}.cat-button-l .cat-button-prefix{margin-right:0.25rem}.cat-button-l .cat-button-suffix{margin-left:0.25rem}.cat-button-l cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-l.cat-button-icon{width:3rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-l{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=l]){margin:-0.875rem -1rem}:host(.cat-button-pull-h[size=l]){margin-left:-1rem;margin-right:-1rem}:host(.cat-button-pull-v[size=l]){margin-top:-0.875rem;margin-bottom:-0.875rem}:host(.cat-button-pull-t[size=l]){margin-top:-0.875rem}:host(.cat-button-pull-l[size=l]){margin-left:-1rem}:host(.cat-button-pull-b[size=l]){margin-bottom:-0.875rem}:host(.cat-button-pull-r[size=l]){margin-right:-1rem}.cat-button-xl{min-width:3.5rem;padding:1rem 1.25rem;font-size:1.125rem;line-height:1.5rem;font-weight:var(--cat-font-weight-body, 400)}.cat-button-xl .cat-button-prefix{margin-right:0.25rem}.cat-button-xl .cat-button-suffix{margin-left:0.25rem}.cat-button-xl.cat-button-icon{width:3.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-xl{padding-left:1.25rem;padding-right:1.25rem}:host(.cat-button-pull[size=xl]){margin:-1rem -1.25rem}:host(.cat-button-pull-h[size=xl]){margin-left:-1.25rem;margin-right:-1.25rem}:host(.cat-button-pull-v[size=xl]){margin-top:-1rem;margin-bottom:-1rem}:host(.cat-button-pull-t[size=xl]){margin-top:-1rem}:host(.cat-button-pull-l[size=xl]){margin-left:-1.25rem}:host(.cat-button-pull-b[size=xl]){margin-bottom:-1rem}:host(.cat-button-pull-r[size=xl]){margin-right:-1.25rem}.cat-button-active::before{content:"";display:block;position:absolute;top:0;left:0;width:0.25rem;height:100%;background:rgb(var(--base))}:host-context(nav){width:100%}:host-context(nav) .cat-button{box-shadow:none;border-radius:0;justify-content:left}:host-context(nav) .cat-button:focus-visible{outline-offset:-2px}:host(.cat-text-left) .cat-button{justify-content:left}:host(.cat-text-right) .cat-button{justify-content:right}';const z=class{constructor(i){t(this,i);this.catClick=n(this,"catClick",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this._iconOnly=true;this.variant="outlined";this.color="secondary";this.active=false;this.size="m";this.disabled=false;this.loading=false;this.submit=false;this.noEllipsis=false;this.round=false;this.iconOnly=false;this.iconRight=false}onIconOnlyChanged(t){var i,e;(i=this.mediaQueryList)===null||i===void 0?void 0:i.removeEventListener("change",this.mediaQueryListener);this.mediaQueryList=undefined;this.mediaQueryListener=undefined;if(w(t)){(e=this.mediaMatcher)!==null&&e!==void 0?e:this.mediaMatcher=new I;this.mediaQueryList=this.mediaMatcher.matchMedia(y[t]);this.mediaQueryListener=t=>this._iconOnly=t.matches;this.mediaQueryList.addEventListener("change",this.mediaQueryListener);this._iconOnly=this.mediaQueryList.matches}else{this._iconOnly=t}}componentWillLoad(){this.onIconOnlyChanged(this.iconOnly)}componentWillRender(){if(this.isIconButton&&!this.a11yLabel){s.warn("[A11y] Missing ARIA label on icon button",this)}}haltDisabledEvents(t){if(this.disabled||this.loading){t.preventDefault();t.stopImmediatePropagation()}}async setFocus(t){this.button.focus(t)}render(){var t;if(this.url){return i("a",{ref:t=>this.button=t,href:this.disabled?undefined:this.url,target:this.urlTarget,"aria-disabled":this.disabled?"true":null,"aria-label":this.a11yLabel,id:this.buttonId,part:"button",class:{"cat-button":true,"cat-button-icon":this.isIconButton,"cat-button-round":this.round,"cat-button-loading":this.loading,"cat-button-disabled":this.disabled,"cat-button-ellipsed":!this.noEllipsis&&!this.isIconButton,[`cat-button-${this.variant}`]:Boolean(this.variant),[`cat-button-${this.color}`]:Boolean(this.color),[`cat-button-${this.size}`]:Boolean(this.size)},onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)},this.content)}else{return i("button",{ref:t=>this.button=t,type:this.submit?"submit":"button",name:this.name,value:this.value,disabled:this.disabled,"aria-disabled":this.disabled?"true":null,"aria-label":this.a11yLabel,id:this.buttonId,part:"button",class:{"cat-button":true,"cat-button-active":this.active,"cat-button-icon":this.isIconButton,"cat-button-round":(t=this.round)!==null&&t!==void 0?t:this.isIconButton,"cat-button-loading":this.loading,"cat-button-disabled":this.disabled,"cat-button-ellipsed":!this.noEllipsis&&!this.isIconButton,[`cat-button-${this.variant}`]:Boolean(this.variant),[`cat-button-${this.color}`]:Boolean(this.color),[`cat-button-${this.size}`]:Boolean(this.size)},onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)},this.content)}}get iconSize(){switch(this.size){case"xs":return"s";default:return"l"}}get spinnerSize(){switch(this.size){case"xs":return"xs";default:return"m"}}get isIconButton(){return Boolean(this.icon)&&this._iconOnly}get hasPrefixIcon(){return Boolean(this.icon)&&!this._iconOnly&&!this.iconRight}get hasSuffixIcon(){return Boolean(this.icon)&&!this._iconOnly&&this.iconRight}get content(){return[this.hasPrefixIcon?i("cat-icon",{icon:this.icon,size:this.iconSize,class:"cat-button-prefix",part:"prefix"}):null,this.isIconButton?i("cat-icon",{icon:this.icon,size:this.iconSize}):i("span",{class:"cat-button-content",part:"content"},i("slot",null)),this.hasSuffixIcon?i("cat-icon",{icon:this.icon,size:this.iconSize,class:"cat-button-suffix",part:"suffix"}):null,this.loading?i("cat-spinner",{size:this.spinnerSize}):null]}onClick(t){this.catClick.emit(t)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}static get watchers(){return{iconOnly:["onIconOnlyChanged"]}}};z.style=A;const N=":host{display:block;margin-bottom:1rem;border-radius:0.5rem;background-color:white;padding:1.25rem}:host([hidden]){display:none}::slotted(nav){margin:-0.75rem -1.25rem !important}::slotted(:last-child){margin-bottom:0}::slotted(.cat-card-pull){margin:-1.25rem !important;width:calc(100% + 2.5rem) !important;height:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-h){margin-left:-1.25rem !important;margin-right:-1.25rem !important;width:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-v){margin-top:-1.25rem !important;margin-bottom:-1.25rem !important;height:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-t){margin-top:-1.25rem !important}::slotted(.cat-card-pull-l){margin-left:-1.25rem !important}::slotted(.cat-card-pull-r){margin-right:-1.25rem !important}::slotted(.cat-card-pull-b){margin-bottom:-1.25rem !important}";const C=class{constructor(i){t(this,i)}render(){return i(e,null,i("slot",null))}};C.style=N;const O=t=>{const{hint:e,slottedHint:n}=t;return i("div",{class:"hint-section"},[e&&(Array.isArray(e)?e.map((t=>i("p",{class:"input-hint"},t))):i("p",{class:"input-hint"},e)),n])};const S=".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0}:host{display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;position:relative}.label-left{flex-direction:row-reverse}.label-left input{right:1px;left:unset}input{position:absolute;width:1.25rem;height:1.25rem;margin:0;opacity:0;cursor:inherit;left:1px;top:0.5px}.box{flex:0 0 auto;display:flex;position:relative;height:1.25rem;width:1.25rem;background-color:white;border:1px solid #d7dbe0;border-radius:0.125rem;transition:background-color 0.13s ease, border-color 0.13s ease;pointer-events:none}.box svg{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all 0.13s ease;width:70%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0.99)}:checked+.box{background-color:rgb(var(--cat-primary-bg, 32, 127, 138));border-color:rgb(var(--cat-primary-bg, 32, 127, 138));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:checked+.box .check{stroke-dashoffset:0}:indeterminate+.box{background-color:rgb(var(--cat-primary-bg, 32, 127, 138));border-color:rgb(var(--cat-primary-bg, 32, 127, 138));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:indeterminate+.box .dash{stroke-dashoffset:0}:focus-visible+.box{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.label{flex:1 1 auto;min-width:0}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}";let T=0;const D=class{constructor(i){t(this,i);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.id=`cat-checkbox-${T++}`;this.hasSlottedLabel=false;this.checked=false;this.disabled=false;this.indeterminate=false;this.label="";this.labelHidden=false;this.required=false;this.labelLeft=false}componentDidLoad(){if(this.input&&this.indeterminate){this.input.indeterminate=true}}componentWillRender(){this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');if(!this.label&&!this.hasSlottedLabel){s.error("[A11y] Missing ARIA label on checkbox",this)}}async setFocus(t){this.input.focus(t)}render(){return i(e,null,i("label",{htmlFor:this.id,class:{"is-hidden":this.labelHidden,"is-disabled":this.disabled,"label-left":this.labelLeft}},i("input",{ref:t=>this.input=t,id:this.id,type:"checkbox",name:this.name,value:this.value!==undefined?String(this.value):this.value,checked:this.checked,required:this.required,disabled:this.disabled,onInput:this.onInput.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)}),i("span",{class:"box","aria-hidden":"true",part:"checkbox"},i("svg",{class:"check",viewBox:"0 0 12 10"},i("polyline",{points:"1.5 6 4.5 9 10.5 1"})),i("svg",{class:"dash",viewBox:"0 0 12 10"},i("polyline",{points:"1.5 5 10.5 5"}))),i("span",{class:"label",part:"label"},this.hasSlottedLabel&&i("slot",{name:"label"})||this.label)),this.hintSection)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&i(O,{hint:this.hint,slottedHint:t&&i("slot",{name:"hint"})})}onInput(t){this.checked=this.input.checked;if(!this.value||typeof this.value==="boolean"){this.value=this.checked}this.catChange.emit(t)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}get hostElement(){return r(this)}};D.style=S;const E=":host{display:inline-flex;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}span{display:inline-flex}svg{fill:currentColor;stroke:none;transform-origin:center center;height:1em;width:calc(var(--cat-icon-ratio, 1) * 1em)}.icon-xs svg{font-size:0.75rem}.icon-s svg{font-size:1rem}.icon-m svg{font-size:1.25rem}.icon-l svg{font-size:1.5rem}.icon-xl svg{font-size:1.75rem}";const L=class{constructor(i){t(this,i);this.iconRegistry=o.getInstance();this.icon="";this.size="m"}render(){return i("span",{innerHTML:this.iconRegistry.getIcon(this.icon),"aria-label":this.a11yLabel,"aria-hidden":this.a11yLabel?null:"true",part:"icon",class:{icon:true,[`icon-${this.size}`]:this.size!=="inline"}})}};L.style=E;const R=".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0}:host{display:flex;flex-direction:column;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);margin-bottom:1rem}:host([hidden]){display:none}.input-wrapper{display:flex;align-items:stretch;gap:0.75rem;padding:0 0.75rem;height:2.5rem;overflow:hidden;background:white;border-radius:0.25rem;box-shadow:0 0 0 1px #d7dbe0;transition:box-shadow 0.13s linear}.input-wrapper.input-round{border-radius:10rem}.input-wrapper.input-disabled{background:#f8f8fb;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.input-wrapper:not(.input-disabled):hover{box-shadow:0 0 0 2px #d7dbe0}.input-wrapper:not(.input-disabled):focus-within{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255))}label{align-self:flex-start}label.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-optional{margin-left:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.text-prefix,.text-suffix{display:inline-flex;align-items:center;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.text-prefix{border-right:1px solid #d7dbe0;padding-right:0.75rem}.text-suffix{border-left:1px solid #d7dbe0;padding-left:0.75rem}.icon-prefix,.icon-suffix{align-self:center}.input-inner-wrapper{display:flex;align-items:center;position:relative;flex:1 1 auto}input{font:inherit;margin:0;padding:0;width:100%;min-width:0;border:none;outline:none;background:none}.input-disabled input{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}input.has-clearable{padding-right:1.5rem}input::placeholder{color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.clearable{position:absolute;top:calc(50% - 1rem);right:-0.5rem}";let $=0;const P=class{constructor(i){t(this,i);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.i18n=a.getInstance();this.id=`cat-input-${$++}`;this.hasSlottedLabel=false;this.clearable=false;this.disabled=false;this.iconRight=false;this.label="";this.labelHidden=false;this.name="";this.readonly=false;this.required=false;this.round=false;this.type="text"}componentWillRender(){this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');if(!this.label&&!this.hasSlottedLabel){s.error("[A11y] Missing ARIA label on input",this)}}async setFocus(t){this.input.focus(t)}async clear(){this.value=""}render(){return i(e,null,(this.hasSlottedLabel||this.label)&&i("label",{htmlFor:this.id,class:{hidden:this.labelHidden}},i("span",{part:"label"},this.hasSlottedLabel&&i("slot",{name:"label"})||this.label,!this.required&&i("span",{class:"input-optional","aria-hidden":"true"},"(",this.i18n.t("input.optional"),")"))),i("div",{class:{"input-wrapper":true,"input-round":this.round,"input-disabled":this.disabled},onClick:()=>this.input.focus()},this.textPrefix&&i("span",{class:"text-prefix",part:"prefix"},this.textPrefix),this.icon&&!this.iconRight&&i("cat-icon",{icon:this.icon,class:"icon-prefix",size:"l"}),i("div",{class:"input-inner-wrapper"},i("input",{ref:t=>this.input=t,id:this.id,class:{"has-clearable":this.clearable&&!this.disabled},autocomplete:this.autoComplete,disabled:this.disabled,max:this.max,maxlength:this.maxLength,min:this.min,minlength:this.minLength,name:this.name,placeholder:this.placeholder,readonly:this.readonly,required:this.required,type:this.type,value:this.value,onInput:this.onInput.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)}),this.clearable&&!this.disabled&&this.value&&i("cat-button",{class:"clearable",icon:"cross-circle-outlined","icon-only":"true",size:"s",variant:"text","a11y-label":this.i18n.t("input.clear"),onClick:this.clear.bind(this)})),this.icon&&this.iconRight&&i("cat-icon",{icon:this.icon,class:"icon-suffix",size:"l"}),this.textSuffix&&i("span",{class:"text-suffix",part:"suffix"},this.textSuffix)),this.hintSection)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&i(O,{hint:this.hint,slottedHint:t&&i("slot",{name:"hint"})})}onInput(t){this.value=this.input.value;this.catChange.emit(t)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}get hostElement(){return r(this)}};P.style=R;function B(t){return t.split("-")[0]}function F(t){return t.split("-")[1]}function U(t){return["top","bottom"].includes(B(t))?"x":"y"}function Y(t){return t==="y"?"height":"width"}function H(t,i,e){let{reference:n,floating:r}=t;const s=n.x+n.width/2-r.width/2;const o=n.y+n.height/2-r.height/2;const a=U(i);const c=Y(a);const l=n[c]/2-r[c]/2;const u=B(i);const h=a==="x";let d;switch(u){case"top":d={x:s,y:n.y-r.height};break;case"bottom":d={x:s,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:o};break;case"left":d={x:n.x-r.width,y:o};break;default:d={x:n.x,y:n.y}}switch(F(i)){case"start":d[a]-=l*(e&&h?-1:1);break;case"end":d[a]+=l*(e&&h?-1:1);break}return d}const G=async(t,i,e)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:o}=e;const a=await(o.isRTL==null?void 0:o.isRTL(i));let c=await o.getElementRects({reference:t,floating:i,strategy:r});let{x:l,y:u}=H(c,n,a);let h=n;let d={};for(let e=0;e<s.length;e++){const{name:f,fn:p}=s[e];const{x:v,y:m,data:b,reset:g}=await p({x:l,y:u,initialPlacement:n,placement:h,strategy:r,middlewareData:d,rects:c,platform:o,elements:{reference:t,floating:i}});l=v!=null?v:l;u=m!=null?m:u;d={...d,[f]:{...d[f],...b}};if(g){if(typeof g==="object"){if(g.placement){h=g.placement}if(g.rects){c=g.rects===true?await o.getElementRects({reference:t,floating:i,strategy:r}):g.rects}({x:l,y:u}=H(c,h,a))}e=-1;continue}}return{x:l,y:u,placement:h,strategy:r,middlewareData:d}};function V(t){return{top:0,right:0,bottom:0,left:0,...t}}function Q(t){return typeof t!=="number"?V(t):{top:t,right:t,bottom:t,left:t}}function W(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function K(t,i){var e;if(i===void 0){i={}}const{x:n,y:r,platform:s,rects:o,elements:a,strategy:c}=t;const{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=false,padding:f=0}=i;const p=Q(f);const v=h==="floating"?"reference":"floating";const m=a[d?v:h];const b=W(await s.getClippingRect({element:((e=await(s.isElement==null?void 0:s.isElement(m)))!=null?e:true)?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c}));const g=W(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:h==="floating"?{...o.floating,x:n,y:r}:o.reference,offsetParent:await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),strategy:c}):o[h]);return{top:b.top-g.top+p.top,bottom:g.bottom-b.bottom+p.bottom,left:b.left-g.left+p.left,right:g.right-b.right+p.right}}const Z={left:"right",right:"left",bottom:"top",top:"bottom"};function J(t){return t.replace(/left|right|bottom|top/g,(t=>Z[t]))}function q(t,i,e){if(e===void 0){e=false}const n=F(t);const r=U(t);const s=Y(r);let o=r==="x"?n===(e?"end":"start")?"right":"left":n==="start"?"bottom":"top";if(i.reference[s]>i.floating[s]){o=J(o)}return{main:o,cross:J(o)}}const X={start:"end",end:"start"};function tt(t){return t.replace(/start|end/g,(t=>X[t]))}function it(t){const i=J(t);return[tt(t),i,tt(i)]}const et=function(t){if(t===void 0){t={}}return{name:"flip",options:t,async fn(i){var e;const{placement:n,middlewareData:r,rects:s,initialPlacement:o,platform:a,elements:c}=i;const{mainAxis:l=true,crossAxis:u=true,fallbackPlacements:h,fallbackStrategy:d="bestFit",flipAlignment:f=true,...p}=t;const v=B(n);const m=v===o;const b=h||(m||!f?[J(o)]:it(o));const g=[o,...b];const y=await K(i,p);const w=[];let x=((e=r.flip)==null?void 0:e.overflows)||[];if(l){w.push(y[v])}if(u){const{main:t,cross:i}=q(n,s,await(a.isRTL==null?void 0:a.isRTL(c.floating)));w.push(y[t],y[i])}x=[...x,{placement:n,overflows:w}];if(!w.every((t=>t<=0))){var M,k;const t=((M=(k=r.flip)==null?void 0:k.index)!=null?M:0)+1;const i=g[t];if(i){return{data:{index:t,overflows:x},reset:{placement:i}}}let e="bottom";switch(d){case"bestFit":{var _;const t=(_=x.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,i)=>t+i),0)])).sort(((t,i)=>t[1]-i[1]))[0])==null?void 0:_[0].placement;if(t){e=t}break}case"initialPlacement":e=o;break}if(n!==e){return{reset:{placement:e}}}}return{}}}};function nt(t,i,e,n){if(n===void 0){n=false}const r=B(t);const s=F(t);const o=U(t)==="x";const a=["left","top"].includes(r)?-1:1;const c=n&&o?-1:1;const l=typeof e==="function"?e({...i,placement:t}):e;let{mainAxis:u,crossAxis:h,alignmentAxis:d}=typeof l==="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...l};if(s&&typeof d==="number"){h=s==="end"?d*-1:d}return o?{x:h*c,y:u*a}:{x:u*a,y:h*c}}const rt=function(t){if(t===void 0){t=0}return{name:"offset",options:t,async fn(i){const{x:e,y:n,placement:r,rects:s,platform:o,elements:a}=i;const c=nt(r,s,t,await(o.isRTL==null?void 0:o.isRTL(a.floating)));return{x:e+c.x,y:n+c.y,data:c}}}};function st(t){return(t==null?void 0:t.toString())==="[object Window]"}function ot(t){if(t==null){return window}if(!st(t)){const i=t.ownerDocument;return i?i.defaultView||window:window}return t}function at(t){return ot(t).getComputedStyle(t)}function ct(t){return st(t)?"":t?(t.nodeName||"").toLowerCase():""}function lt(t){return t instanceof ot(t).HTMLElement}function ut(t){return t instanceof ot(t).Element}function ht(t){return t instanceof ot(t).Node}function dt(t){const i=ot(t).ShadowRoot;return t instanceof i||t instanceof ShadowRoot}function ft(t){const{overflow:i,overflowX:e,overflowY:n}=at(t);return/auto|scroll|overlay|hidden/.test(i+n+e)}function pt(t){return["table","td","th"].includes(ct(t))}function vt(t){const i=navigator.userAgent.toLowerCase().includes("firefox");const e=at(t);return e.transform!=="none"||e.perspective!=="none"||e.contain==="paint"||["transform","perspective"].includes(e.willChange)||i&&e.willChange==="filter"||i&&(e.filter?e.filter!=="none":false)}function mt(){return!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}const bt=Math.min;const gt=Math.max;const yt=Math.round;function wt(t,i,e){if(i===void 0){i=false}if(e===void 0){e=false}const n=t.getBoundingClientRect();let r=1;let s=1;if(i&&lt(t)){r=t.offsetWidth>0?yt(n.width)/t.offsetWidth||1:1;s=t.offsetHeight>0?yt(n.height)/t.offsetHeight||1:1}const o=ut(t)?ot(t):window;const a=!mt()&&e;const c=(n.left+(a?o.visualViewport.offsetLeft:0))/r;const l=(n.top+(a?o.visualViewport.offsetTop:0))/s;const u=n.width/r;const h=n.height/s;return{width:u,height:h,top:l,right:c+u,bottom:l+h,left:c,x:c,y:l}}function xt(t){return((ht(t)?t.ownerDocument:t.document)||window.document).documentElement}function Mt(t){if(st(t)){return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function kt(t){return wt(xt(t)).left+Mt(t).scrollLeft}function _t(t){const i=wt(t);return yt(i.width)!==t.offsetWidth||yt(i.height)!==t.offsetHeight}function It(t,i,e){const n=lt(i);const r=xt(i);const s=wt(t,n&&_t(i),e==="fixed");let o={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(n||!n&&e!=="fixed"){if(ct(i)!=="body"||ft(r)){o=Mt(i)}if(lt(i)){const t=wt(i,true);a.x=t.x+i.clientLeft;a.y=t.y+i.clientTop}else if(r){a.x=kt(r)}}return{x:s.left+o.scrollLeft-a.x,y:s.top+o.scrollTop-a.y,width:s.width,height:s.height}}function jt(t){if(ct(t)==="html"){return t}return t.assignedSlot||t.parentNode||(dt(t)?t.host:null)||xt(t)}function At(t){if(!lt(t)||getComputedStyle(t).position==="fixed"){return null}return t.offsetParent}function zt(t){let i=jt(t);if(dt(i)){i=i.host}while(lt(i)&&!["html","body"].includes(ct(i))){if(vt(i)){return i}else{i=i.parentNode}}return null}function Nt(t){const i=ot(t);let e=At(t);while(e&&pt(e)&&getComputedStyle(e).position==="static"){e=At(e)}if(e&&(ct(e)==="html"||ct(e)==="body"&&getComputedStyle(e).position==="static"&&!vt(e))){return i}return e||zt(t)||i}function Ct(t){if(lt(t)){return{width:t.offsetWidth,height:t.offsetHeight}}const i=wt(t);return{width:i.width,height:i.height}}function Ot(t){let{rect:i,offsetParent:e,strategy:n}=t;const r=lt(e);const s=xt(e);if(e===s){return i}let o={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed"){if(ct(e)!=="body"||ft(s)){o=Mt(e)}if(lt(e)){const t=wt(e,true);a.x=t.x+e.clientLeft;a.y=t.y+e.clientTop}}return{...i,x:i.x-o.scrollLeft+a.x,y:i.y-o.scrollTop+a.y}}function St(t,i){const e=ot(t);const n=xt(t);const r=e.visualViewport;let s=n.clientWidth;let o=n.clientHeight;let a=0;let c=0;if(r){s=r.width;o=r.height;const t=mt();if(t||!t&&i==="fixed"){a=r.offsetLeft;c=r.offsetTop}}return{width:s,height:o,x:a,y:c}}function Tt(t){var i;const e=xt(t);const n=Mt(t);const r=(i=t.ownerDocument)==null?void 0:i.body;const s=gt(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0);const o=gt(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-n.scrollLeft+kt(t);const c=-n.scrollTop;if(at(r||e).direction==="rtl"){a+=gt(e.clientWidth,r?r.clientWidth:0)-s}return{width:s,height:o,x:a,y:c}}function Dt(t){const i=jt(t);if(["html","body","#document"].includes(ct(i))){return t.ownerDocument.body}if(lt(i)&&ft(i)){return i}return Dt(i)}function Et(t,i){var e;if(i===void 0){i=[]}const n=Dt(t);const r=n===((e=t.ownerDocument)==null?void 0:e.body);const s=ot(n);const o=r?[s].concat(s.visualViewport||[],ft(n)?n:[]):n;const a=i.concat(o);return r?a:a.concat(Et(jt(o)))}function Lt(t,i){const e=i.getRootNode==null?void 0:i.getRootNode();if(t.contains(i)){return true}else if(e&&dt(e)){let e=i;do{if(e&&t===e){return true}e=e.parentNode||e.host}while(e)}return false}function Rt(t,i){const e=wt(t,false,i==="fixed");const n=e.top+t.clientTop;const r=e.left+t.clientLeft;return{top:n,left:r,x:r,y:n,right:r+t.clientWidth,bottom:n+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function $t(t,i,e){if(i==="viewport"){return W(St(t,e))}if(ut(i)){return Rt(i,e)}return W(Tt(xt(t)))}function Pt(t){const i=Et(t);const e=["absolute","fixed"].includes(at(t).position);const n=e&&lt(t)?Nt(t):t;if(!ut(n)){return[]}return i.filter((t=>ut(t)&&Lt(t,n)&&ct(t)!=="body"))}function Bt(t){let{element:i,boundary:e,rootBoundary:n,strategy:r}=t;const s=e==="clippingAncestors"?Pt(i):[].concat(e);const o=[...s,n];const a=o[0];const c=o.reduce(((t,e)=>{const n=$t(i,e,r);t.top=gt(n.top,t.top);t.right=bt(n.right,t.right);t.bottom=bt(n.bottom,t.bottom);t.left=gt(n.left,t.left);return t}),$t(i,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}const Ft={getClippingRect:Bt,convertOffsetParentRelativeRectToViewportRelativeRect:Ot,isElement:ut,getDimensions:Ct,getOffsetParent:Nt,getDocumentElement:xt,getElementRects:t=>{let{reference:i,floating:e,strategy:n}=t;return{reference:It(i,Nt(e),n),floating:{...Ct(e),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>at(t).direction==="rtl"};function Ut(t,i,e,n){if(n===void 0){n={}}const{ancestorScroll:r=true,ancestorResize:s=true,elementResize:o=true,animationFrame:a=false}=n;let c=false;const l=r&&!a;const u=s&&!a;const h=o&&!a;const d=l||u?[...ut(t)?Et(t):[],...Et(i)]:[];d.forEach((t=>{l&&t.addEventListener("scroll",e,{passive:true});u&&t.addEventListener("resize",e)}));let f=null;if(h){f=new ResizeObserver(e);ut(t)&&f.observe(t);f.observe(i)}let p;let v=a?wt(t):null;if(a){m()}function m(){if(c){return}const i=wt(t);if(v&&(i.x!==v.x||i.y!==v.y||i.width!==v.width||i.height!==v.height)){e()}v=i;p=requestAnimationFrame(m)}return()=>{var t;c=true;d.forEach((t=>{l&&t.removeEventListener("scroll",e);u&&t.removeEventListener("resize",e)}));(t=f)==null?void 0:t.disconnect();f=null;if(a){cancelAnimationFrame(p)}}}const Yt=(t,i,e)=>G(t,i,{platform:Ft,...e})
2
+ /*!
3
+ * tabbable 5.3.1
4
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
5
+ */;var Ht=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"];var Gt=Ht.join(",");var Vt=typeof Element==="undefined";var Qt=Vt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;var Wt=!Vt&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument};var Kt=function t(i,e,n){var r=Array.prototype.slice.apply(i.querySelectorAll(Gt));if(e&&Qt.call(i,Gt)){r.unshift(i)}r=r.filter(n);return r};var Zt=function t(i,e,n){var r=[];var s=Array.from(i);while(s.length){var o=s.shift();if(o.tagName==="SLOT"){var a=o.assignedElements();var c=a.length?a:o.children;var l=t(c,true,n);if(n.flatten){r.push.apply(r,l)}else{r.push({scope:o,candidates:l})}}else{var u=Qt.call(o,Gt);if(u&&n.filter(o)&&(e||!i.includes(o))){r.push(o)}var h=o.shadowRoot||typeof n.getShadowRoot==="function"&&n.getShadowRoot(o);if(h){var d=t(h===true?o.children:h.children,true,n);if(n.flatten){r.push.apply(r,d)}else{r.push({scope:o,candidates:d})}}else{s.unshift.apply(s,o.children)}}}return r};var Jt=function t(i,e){if(i.tabIndex<0){if((e||/^(AUDIO|VIDEO|DETAILS)$/.test(i.tagName)||i.isContentEditable)&&isNaN(parseInt(i.getAttribute("tabindex"),10))){return 0}}return i.tabIndex};var qt=function t(i,e){return i.tabIndex===e.tabIndex?i.documentOrder-e.documentOrder:i.tabIndex-e.tabIndex};var Xt=function t(i){return i.tagName==="INPUT"};var ti=function t(i){return Xt(i)&&i.type==="hidden"};var ii=function t(i){var e=i.tagName==="DETAILS"&&Array.prototype.slice.apply(i.children).some((function(t){return t.tagName==="SUMMARY"}));return e};var ei=function t(i,e){for(var n=0;n<i.length;n++){if(i[n].checked&&i[n].form===e){return i[n]}}};var ni=function t(i){if(!i.name){return true}var e=i.form||Wt(i);var n=function t(i){return e.querySelectorAll('input[type="radio"][name="'+i+'"]')};var r;if(typeof window!=="undefined"&&typeof window.CSS!=="undefined"&&typeof window.CSS.escape==="function"){r=n(window.CSS.escape(i.name))}else{try{r=n(i.name)}catch(t){console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message);return false}}var s=ei(r,i.form);return!s||s===i};var ri=function t(i){return Xt(i)&&i.type==="radio"};var si=function t(i){return ri(i)&&!ni(i)};var oi=function t(i){var e=i.getBoundingClientRect(),n=e.width,r=e.height;return n===0&&r===0};var ai=function t(i,e){var n=e.displayCheck,r=e.getShadowRoot;if(getComputedStyle(i).visibility==="hidden"){return true}var s=Qt.call(i,"details>summary:first-of-type");var o=s?i.parentElement:i;if(Qt.call(o,"details:not([open]) *")){return true}if(!n||n==="full"){if(typeof r==="function"){var a=i;while(i){var c=i.parentElement;var l=Wt(i);if(c&&!c.shadowRoot&&r(c)===true){return oi(i)}else if(i.assignedSlot){i=i.assignedSlot}else if(!c&&l!==i.ownerDocument){i=l.host}else{i=c}}i=a}return!i.getClientRects().length}else if(n==="non-zero-area"){return oi(i)}return false};var ci=function t(i){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(i.tagName)){var e=i.parentElement;while(e){if(e.tagName==="FIELDSET"&&e.disabled){for(var n=0;n<e.children.length;n++){var r=e.children.item(n);if(r.tagName==="LEGEND"){return Qt.call(e,"fieldset[disabled] *")?true:!r.contains(i)}}return true}e=e.parentElement}}return false};var li=function t(i,e){if(e.disabled||ti(e)||ai(e,i)||ii(e)||ci(e)){return false}return true};var ui=function t(i,e){if(si(e)||Jt(e)<0||!li(i,e)){return false}return true};var hi=function t(i){var e=[];var n=[];i.forEach((function(i,r){var s=!!i.scope;var o=s?i.scope:i;var a=Jt(o,s);var c=s?t(i.candidates):o;if(a===0){s?e.push.apply(e,c):e.push(o)}else{n.push({documentOrder:r,tabIndex:a,item:i,isScope:s,content:c})}}));return n.sort(qt).reduce((function(t,i){i.isScope?t.push.apply(t,i.content):t.push(i.content);return t}),[]).concat(e)};var di=function t(i,e){e=e||{};var n;if(e.getShadowRoot){n=Zt([i],e.includeContainer,{filter:ui.bind(null,e),flatten:false,getShadowRoot:e.getShadowRoot})}else{n=Kt(i,e.includeContainer,ui.bind(null,e))}return hi(n)};var fi=function t(i,e){e=e||{};var n;if(e.getShadowRoot){n=Zt([i],e.includeContainer,{filter:li.bind(null,e),flatten:true,getShadowRoot:e.getShadowRoot})}else{n=Kt(i,e.includeContainer,li.bind(null,e))}return n};var pi=function t(i,e){e=e||{};if(!i){throw new Error("No node provided")}if(Qt.call(i,Gt)===false){return false}return ui(e,i)};var vi=Ht.concat("iframe").join(",");var mi=function t(i,e){e=e||{};if(!i){throw new Error("No node provided")}if(Qt.call(i,vi)===false){return false}return li(e,i)};
6
+ /*!
7
+ * focus-trap 6.8.1
8
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
9
+ */function bi(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function gi(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?bi(Object(e),!0).forEach((function(i){yi(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):bi(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function yi(t,i,e){if(i in t){Object.defineProperty(t,i,{value:e,enumerable:true,configurable:true,writable:true})}else{t[i]=e}return t}var wi=function(){var t=[];return{activateTrap:function i(e){if(t.length>0){var n=t[t.length-1];if(n!==e){n.pause()}}var r=t.indexOf(e);if(r===-1){t.push(e)}else{t.splice(r,1);t.push(e)}},deactivateTrap:function i(e){var n=t.indexOf(e);if(n!==-1){t.splice(n,1)}if(t.length>0){t[t.length-1].unpause()}}}}();var xi=function t(i){return i.tagName&&i.tagName.toLowerCase()==="input"&&typeof i.select==="function"};var Mi=function t(i){return i.key==="Escape"||i.key==="Esc"||i.keyCode===27};var ki=function t(i){return i.key==="Tab"||i.keyCode===9};var _i=function t(i){return setTimeout(i,0)};var Ii=function t(i,e){var n=-1;i.every((function(t,i){if(e(t)){n=i;return false}return true}));return n};var ji=function t(i){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}return typeof i==="function"?i.apply(void 0,n):i};var Ai=function t(i){return i.target.shadowRoot&&typeof i.composedPath==="function"?i.composedPath()[0]:i.target};var zi=function t(i,e){var n=(e===null||e===void 0?void 0:e.document)||document;var r=gi({returnFocusOnDeactivate:true,escapeDeactivates:true,delayInitialFocus:true},e);var s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:false,paused:false,delayInitialFocusTimer:undefined};var o;var a=function t(i,e,n){return i&&i[e]!==undefined?i[e]:r[n||e]};var c=function t(i){return s.containerGroups.findIndex((function(t){var e=t.container,n=t.tabbableNodes;return e.contains(i)||n.find((function(t){return t===i}))}))};var l=function t(i){var e=r[i];if(typeof e==="function"){for(var s=arguments.length,o=new Array(s>1?s-1:0),a=1;a<s;a++){o[a-1]=arguments[a]}e=e.apply(void 0,o)}if(!e){if(e===undefined||e===false){return e}throw new Error("`".concat(i,"` was specified but was not a node, or did not return a node"))}var c=e;if(typeof e==="string"){c=n.querySelector(e);if(!c){throw new Error("`".concat(i,"` as selector refers to no known node"))}}return c};var u=function t(){var i=l("initialFocus");if(i===false){return false}if(i===undefined){if(c(n.activeElement)>=0){i=n.activeElement}else{var e=s.tabbableGroups[0];var r=e&&e.firstTabbableNode;i=r||l("fallbackFocus")}}if(!i){throw new Error("Your focus-trap needs to have at least one focusable element")}return i};var h=function t(){s.containerGroups=s.containers.map((function(t){var i=di(t,r.tabbableOptions);var e=fi(t,r.tabbableOptions);return{container:t,tabbableNodes:i,focusableNodes:e,firstTabbableNode:i.length>0?i[0]:null,lastTabbableNode:i.length>0?i[i.length-1]:null,nextTabbableNode:function t(i){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var s=e.findIndex((function(t){return t===i}));if(s<0){return undefined}if(n){return e.slice(s+1).find((function(t){return pi(t,r.tabbableOptions)}))}return e.slice(0,s).reverse().find((function(t){return pi(t,r.tabbableOptions)}))}}}));s.tabbableGroups=s.containerGroups.filter((function(t){return t.tabbableNodes.length>0}));if(s.tabbableGroups.length<=0&&!l("fallbackFocus")){throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")}};var d=function t(i){if(i===false){return}if(i===n.activeElement){return}if(!i||!i.focus){t(u());return}i.focus({preventScroll:!!r.preventScroll});s.mostRecentlyFocusedNode=i;if(xi(i)){i.select()}};var f=function t(i){var e=l("setReturnFocus",i);return e?e:e===false?false:i};var p=function t(i){var e=Ai(i);if(c(e)>=0){return}if(ji(r.clickOutsideDeactivates,i)){o.deactivate({returnFocus:r.returnFocusOnDeactivate&&!mi(e,r.tabbableOptions)});return}if(ji(r.allowOutsideClick,i)){return}i.preventDefault()};var v=function t(i){var e=Ai(i);var n=c(e)>=0;if(n||e instanceof Document){if(n){s.mostRecentlyFocusedNode=e}}else{i.stopImmediatePropagation();d(s.mostRecentlyFocusedNode||u())}};var m=function t(i){var e=Ai(i);h();var n=null;if(s.tabbableGroups.length>0){var o=c(e);var a=o>=0?s.containerGroups[o]:undefined;if(o<0){if(i.shiftKey){n=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode}else{n=s.tabbableGroups[0].firstTabbableNode}}else if(i.shiftKey){var u=Ii(s.tabbableGroups,(function(t){var i=t.firstTabbableNode;return e===i}));if(u<0&&(a.container===e||mi(e,r.tabbableOptions)&&!pi(e,r.tabbableOptions)&&!a.nextTabbableNode(e,false))){u=o}if(u>=0){var f=u===0?s.tabbableGroups.length-1:u-1;var p=s.tabbableGroups[f];n=p.lastTabbableNode}}else{var v=Ii(s.tabbableGroups,(function(t){var i=t.lastTabbableNode;return e===i}));if(v<0&&(a.container===e||mi(e,r.tabbableOptions)&&!pi(e,r.tabbableOptions)&&!a.nextTabbableNode(e))){v=o}if(v>=0){var m=v===s.tabbableGroups.length-1?0:v+1;var b=s.tabbableGroups[m];n=b.firstTabbableNode}}}else{n=l("fallbackFocus")}if(n){i.preventDefault();d(n)}};var b=function t(i){if(Mi(i)&&ji(r.escapeDeactivates,i)!==false){i.preventDefault();o.deactivate();return}if(ki(i)){m(i);return}};var g=function t(i){if(ji(r.clickOutsideDeactivates,i)){return}var e=Ai(i);if(c(e)>=0){return}if(ji(r.allowOutsideClick,i)){return}i.preventDefault();i.stopImmediatePropagation()};var y=function t(){if(!s.active){return}wi.activateTrap(o);s.delayInitialFocusTimer=r.delayInitialFocus?_i((function(){d(u())})):d(u());n.addEventListener("focusin",v,true);n.addEventListener("mousedown",p,{capture:true,passive:false});n.addEventListener("touchstart",p,{capture:true,passive:false});n.addEventListener("click",g,{capture:true,passive:false});n.addEventListener("keydown",b,{capture:true,passive:false});return o};var w=function t(){if(!s.active){return}n.removeEventListener("focusin",v,true);n.removeEventListener("mousedown",p,true);n.removeEventListener("touchstart",p,true);n.removeEventListener("click",g,true);n.removeEventListener("keydown",b,true);return o};o={activate:function t(i){if(s.active){return this}var e=a(i,"onActivate");var r=a(i,"onPostActivate");var o=a(i,"checkCanFocusTrap");if(!o){h()}s.active=true;s.paused=false;s.nodeFocusedBeforeActivation=n.activeElement;if(e){e()}var c=function t(){if(o){h()}y();if(r){r()}};if(o){o(s.containers.concat()).then(c,c);return this}c();return this},deactivate:function t(i){if(!s.active){return this}clearTimeout(s.delayInitialFocusTimer);s.delayInitialFocusTimer=undefined;w();s.active=false;s.paused=false;wi.deactivateTrap(o);var e=a(i,"onDeactivate");var n=a(i,"onPostDeactivate");var r=a(i,"checkCanReturnFocus");if(e){e()}var c=a(i,"returnFocus","returnFocusOnDeactivate");var l=function t(){_i((function(){if(c){d(f(s.nodeFocusedBeforeActivation))}if(n){n()}}))};if(c&&r){r(f(s.nodeFocusedBeforeActivation)).then(l,l);return this}l();return this},pause:function t(){if(s.paused||!s.active){return this}s.paused=true;w();return this},unpause:function t(){if(!s.paused||!s.active){return this}s.paused=false;h();y();return this},updateContainerElements:function t(i){var e=[].concat(i).filter(Boolean);s.containers=e.map((function(t){return typeof t==="string"?n.querySelector(t):t}));if(s.active){h()}return this}};o.updateContainerElements(i);return o};const Ni=t=>(t?di(t,{includeContainer:true,getShadowRoot:true}):[]).shift();const Ci=":host{display:contents}:host([hidden]){display:none}.content{padding-top:0.5rem;padding-bottom:0.5rem;position:absolute;background:white;display:none;overflow:auto;-webkit-overflow-scrolling:touch;min-width:8rem;max-width:16rem;min-height:2rem;max-height:calc(100vh - 48px);box-shadow:0 1px 4px 0 rgba(16, 29, 48, 0.2);border-radius:0.25rem;z-index:100}";let Oi=0;const Si=class{constructor(i){t(this,i);this.catOpen=n(this,"catOpen",7);this.catClose=n(this,"catClose",7);this.id=Oi++;this.placement="bottom-start"}clickHandler(t){var i;if(this.content&&t.composedPath().includes(this.content)){(i=this.trap)===null||i===void 0?void 0:i.deactivate();this.hide()}}componentDidLoad(){var t,i,e,n,r;this.trigger=Ni(this.triggerSlot);(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-haspopup","true");(i=this.trigger)===null||i===void 0?void 0:i.setAttribute("aria-expanded","false");(e=this.trigger)===null||e===void 0?void 0:e.setAttribute("aria-controls",this.contentId);(n=this.content)===null||n===void 0?void 0:n.setAttribute("id",this.contentId);if(this.trigger&&this.content){(r=this.trigger)===null||r===void 0?void 0:r.addEventListener("click",(()=>this.show()));Ut(this.trigger,this.content,(()=>this.update()))}this.keyListener=t=>{if(this.content&&["ArrowDown","ArrowUp"].includes(t.key)){const i=di(this.content,{includeContainer:false,getShadowRoot:true});const e=Ni(document.activeElement);const n=e?i.indexOf(e):-1;const r=t.key==="ArrowDown"?1:-1;const s=n<0?0:(n+r+i.length)%i.length;i[s].focus();t.preventDefault()}};document.addEventListener("keydown",this.keyListener)}disconnectedCallback(){if(this.keyListener){document.removeEventListener("keydown",this.keyListener)}}render(){return i(e,null,i("slot",{name:"trigger",ref:t=>this.triggerSlot=t}),i("div",{class:"content",ref:t=>this.content=t},i("slot",{name:"content"})))}get contentId(){return`cat-menu-${this.id}`}show(){var t;if(this.content){this.content.style.display="block";(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-expanded","true");this.catOpen.emit();this.trap=this.trap?this.trap.updateContainerElements(this.content):zi(this.content,{tabbableOptions:{getShadowRoot:true},allowOutsideClick:true,clickOutsideDeactivates:t=>!this.content||!t.composedPath().includes(this.content),onPostDeactivate:()=>this.hide()});this.trap.activate()}}hide(){var t;if(this.content){this.content.style.display="";(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-expanded","false");this.catClose.emit()}}update(){if(this.trigger&&this.content){Yt(this.trigger,this.content,{placement:this.placement,middleware:[rt(Si.OFFSET),et()]}).then((({x:t,y:i})=>{if(this.content){Object.assign(this.content.style,{left:`${t}px`,top:`${i}px`})}}))}}};Si.OFFSET=4;Si.style=Ci;const Ti=":host{display:block}:host([hidden]){display:none}.modal-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.6);z-index:2;display:flex}.modal-wrapper[aria-hidden=true]{display:none}.modal{margin:auto;z-index:2;position:relative;background-color:white;border-radius:0.5rem;max-width:100%;padding:32px}.modal-header{display:flex;justify-content:end;align-self:stretch}.modal-header .close-button::part(button){box-shadow:unset}.modal-content{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;margin:16px 0}.modal-s{width:400px}.modal-m{width:600px}.modal-l{width:800px}";const Di=class{constructor(i){t(this,i);this.isVisible=false;this.size="m"}componentDidLoad(){if(this.modal){this.trap=zi(this.modal,{tabbableOptions:{getShadowRoot:true},initialFocus:Ni(this.closeButton),allowOutsideClick:true,clickOutsideDeactivates:t=>!this.modal||!t.composedPath().includes(this.modal),onDeactivate:()=>this.isVisible=false,setReturnFocus:t=>t instanceof HTMLElement?Ni(t):t})}}componentDidUpdate(){var t;if(this.isVisible)(t=this.trap)===null||t===void 0?void 0:t.activate();this.updateAccessibility(this.hostElement)}async show(){this.isVisible=true}render(){return i("div",{"aria-modal":true,role:"dialog","aria-hidden":!this.isVisible?"true":"false",class:"modal-wrapper"},i("div",{ref:t=>this.modal=t,class:{modal:true,[`modal-${this.size}`]:Boolean(this.size)}},i("div",{class:"modal-header"},i("cat-button",{ref:t=>this.closeButton=t,icon:"cross-outlined",class:"close-button",size:"s",iconOnly:true,a11yLabel:"close",onCatClick:this.onClick.bind(this)})),i("div",{class:"modal-content"},i("slot",null))))}onClick(){var t;(t=this.trap)===null||t===void 0?void 0:t.deactivate()}updateAccessibility(t){if(t.parentElement){Array.from(t.parentElement.children).forEach((i=>{if(i!==t){this.isVisible?i.setAttribute("aria-hidden","true"):i.removeAttribute("aria-hidden")}}));if(t.parentElement!==document.body){this.updateAccessibility(t.parentElement)}}}get hostElement(){return r(this)}};Di.style=Ti;const Ei=".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0}:host{display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem}:host([hidden]){display:none}label{display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);cursor:pointer}.label-left{flex-direction:row-reverse}.radio{display:flex;position:relative;align-self:flex-start}.circle{position:absolute;width:0.75rem;height:0.75rem;background-color:rgb(var(--cat-primary-bg, 32, 127, 138));border-radius:10rem;top:calc(50% - 0.375rem);left:calc(50% - 0.375rem);visibility:hidden;pointer-events:none}input{margin:0;width:1.25rem;height:1.25rem;appearance:none;background-color:white;border:1px solid #d7dbe0;border-radius:10rem;cursor:inherit}input:checked{border-color:rgb(var(--cat-primary-bg, 32, 127, 138))}input:checked+.circle{visibility:visible}input:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.label{flex:1 1 auto}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.is-disabled input{background-color:#f8f8fb}.is-disabled input:checked{border-color:#d7dbe0}.is-disabled .circle{background-color:#d7dbe0}";let Li=0;const Ri=class{constructor(i){t(this,i);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.id=`cat-radio-${++Li}`;this.hasSlottedLabel=false;this.checked=false;this.disabled=false;this.label="";this.labelHidden=false;this.required=false;this.labelLeft=false}componentWillRender(){this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');if(!this.label&&!this.hasSlottedLabel){s.error("[A11y] Missing ARIA label on radio",this)}}async setFocus(t){this.input.focus(t)}render(){return i(e,null,i("label",{htmlFor:this.id,class:{"is-hidden":this.labelHidden,"is-disabled":this.disabled,"label-left":this.labelLeft},role:"radio","aria-checked":this.checked?"true":"false"},i("span",{class:"radio"},i("input",{ref:t=>this.input=t,id:this.id,type:"radio",name:this.name,value:this.value,checked:this.checked,required:this.required,disabled:this.disabled,onInput:this.onChange.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)}),i("span",{class:"circle"})),i("span",{class:"label",part:"label"},this.hasSlottedLabel&&i("slot",{name:"label"})||this.label)),this.hintSection)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&i(O,{hint:this.hint,slottedHint:t&&i("slot",{name:"hint"})})}onChange(t){this.checked=true;this.catChange.emit(t)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}get hostElement(){return r(this)}};Ri.style=Ei;const $i=":host{display:block}:host([hidden]){display:none}";const Pi=class{constructor(i){t(this,i);this.catChange=n(this,"catChange",7);this.catBlur=n(this,"catBlur",7);this.catRadioGroup=[];this.disabled=false;this.labelLeft=false}onNameChanged(t){this.catRadioGroup.forEach((i=>{i.name=t}))}onValueChanged(t){this.catRadioGroup.forEach((i=>{i.checked=i.value===t}));this.updateTabIndex()}onDisabledChanged(t){this.catRadioGroup.forEach((i=>{if(t){i.disabled=t}}))}onLabelLeftChanged(t){this.catRadioGroup.forEach((i=>{if(t){i.labelLeft=t}}))}componentDidLoad(){this.catRadioGroup=Array.from(this.hostElement.querySelectorAll(`cat-radio`));this.onNameChanged(this.name);this.onValueChanged(this.value);this.onDisabledChanged(this.disabled);this.onLabelLeftChanged(this.labelLeft)}onKeydown(t){var i,e;if(["ArrowDown","ArrowUp","ArrowRight","ArrowLeft"].includes(t.key)&&this.catRadioGroup.length){const n=this.catRadioGroup.filter((t=>!t.disabled));const r=document.activeElement;const s=this.catRadioGroup.findIndex((t=>t===r));const o=["ArrowDown","ArrowRight"].includes(t.key)?1:-1;const a=s<0?0:(s+o+n.length)%n.length;n[a].setFocus();(e=(i=n[a].shadowRoot)===null||i===void 0?void 0:i.querySelector("input"))===null||e===void 0?void 0:e.click();this.updateTabIndex();t.preventDefault()}}onInput(t){const i=this.catRadioGroup.find((i=>i===t.target));this.value=i===null||i===void 0?void 0:i.value;this.catChange.emit()}onBlur(t){if(!t.relatedTarget){this.catBlur.emit(t)}}render(){return i("div",{role:"radiogroup","aria-label":this.a11yLabel},i("slot",null))}updateTabIndex(){var t,i;if(this.catRadioGroup.length){this.catRadioGroup.forEach((t=>{var i,e;return(e=(i=t.shadowRoot)===null||i===void 0?void 0:i.querySelector("input"))===null||e===void 0?void 0:e.setAttribute("tabindex","-1")}));const e=this.catRadioGroup.findIndex((t=>t.checked));(i=(t=this.catRadioGroup[e>=0?e:0].shadowRoot)===null||t===void 0?void 0:t.querySelector("input"))===null||i===void 0?void 0:i.setAttribute("tabindex","0")}}get hostElement(){return r(this)}static get watchers(){return{name:["onNameChanged"],value:["onValueChanged"],disabled:["onDisabledChanged"],labelLeft:["onLabelLeftChanged"]}}};Pi.style=$i;function Bi(t){return typeof t==="function"}function Fi(t){const i=t=>{Error.call(t);t.stack=(new Error).stack};const e=t(i);e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}const Ui=Fi((t=>function i(e){t(this);this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map(((t,i)=>`${i+1}) ${t.toString()}`)).join("\n ")}`:"";this.name="UnsubscriptionError";this.errors=e}));function Yi(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class Hi{constructor(t){this.initialTeardown=t;this.closed=false;this._parentage=null;this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=true;const{_parentage:i}=this;if(i){this._parentage=null;if(Array.isArray(i)){for(const t of i){t.remove(this)}}else{i.remove(this)}}const{initialTeardown:e}=this;if(Bi(e)){try{e()}catch(i){t=i instanceof Ui?i.errors:[i]}}const{_finalizers:n}=this;if(n){this._finalizers=null;for(const i of n){try{Qi(i)}catch(i){t=t!==null&&t!==void 0?t:[];if(i instanceof Ui){t=[...t,...i.errors]}else{t.push(i)}}}}if(t){throw new Ui(t)}}}add(t){var i;if(t&&t!==this){if(this.closed){Qi(t)}else{if(t instanceof Hi){if(t.closed||t._hasParent(this)){return}t._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(t)}}}_hasParent(t){const{_parentage:i}=this;return i===t||Array.isArray(i)&&i.includes(t)}_addParent(t){const{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(t),i):i?[i,t]:t}_removeParent(t){const{_parentage:i}=this;if(i===t){this._parentage=null}else if(Array.isArray(i)){Yi(i,t)}}remove(t){const{_finalizers:i}=this;i&&Yi(i,t);if(t instanceof Hi){t._removeParent(this)}}}Hi.EMPTY=(()=>{const t=new Hi;t.closed=true;return t})();const Gi=Hi.EMPTY;function Vi(t){return t instanceof Hi||t&&"closed"in t&&Bi(t.remove)&&Bi(t.add)&&Bi(t.unsubscribe)}function Qi(t){if(Bi(t)){t()}else{t.unsubscribe()}}const Wi={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:false,useDeprecatedNextContext:false};const Ki={setTimeout(t,i,...e){const{delegate:n}=Ki;if(n===null||n===void 0?void 0:n.setTimeout){return n.setTimeout(t,i,...e)}return setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=Ki;return((i===null||i===void 0?void 0:i.clearTimeout)||clearTimeout)(t)},delegate:undefined};function Zi(t){Ki.setTimeout((()=>{const{onUnhandledError:i}=Wi;if(i){i(t)}else{throw t}}))}function Ji(){}const qi=(()=>ie("C",undefined,undefined))();function Xi(t){return ie("E",undefined,t)}function te(t){return ie("N",t,undefined)}function ie(t,i,e){return{kind:t,value:i,error:e}}function ee(t){{t()}}class ne extends Hi{constructor(t){super();this.isStopped=false;if(t){this.destination=t;if(Vi(t)){t.add(this)}}else{this.destination=he}}static create(t,i,e){return new ae(t,i,e)}next(t){if(this.isStopped){ue(te(t),this)}else{this._next(t)}}error(t){if(this.isStopped){ue(Xi(t),this)}else{this.isStopped=true;this._error(t)}}complete(){if(this.isStopped){ue(qi,this)}else{this.isStopped=true;this._complete()}}unsubscribe(){if(!this.closed){this.isStopped=true;super.unsubscribe();this.destination=null}}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const re=Function.prototype.bind;function se(t,i){return re.call(t,i)}class oe{constructor(t){this.partialObserver=t}next(t){const{partialObserver:i}=this;if(i.next){try{i.next(t)}catch(t){ce(t)}}}error(t){const{partialObserver:i}=this;if(i.error){try{i.error(t)}catch(t){ce(t)}}else{ce(t)}}complete(){const{partialObserver:t}=this;if(t.complete){try{t.complete()}catch(t){ce(t)}}}}class ae extends ne{constructor(t,i,e){super();let n;if(Bi(t)||!t){n={next:t!==null&&t!==void 0?t:undefined,error:i!==null&&i!==void 0?i:undefined,complete:e!==null&&e!==void 0?e:undefined}}else{let i;if(this&&Wi.useDeprecatedNextContext){i=Object.create(t);i.unsubscribe=()=>this.unsubscribe();n={next:t.next&&se(t.next,i),error:t.error&&se(t.error,i),complete:t.complete&&se(t.complete,i)}}else{n=t}}this.destination=new oe(n)}}function ce(t){{Zi(t)}}function le(t){throw t}function ue(t,i){const{onStoppedNotification:e}=Wi;e&&Ki.setTimeout((()=>e(t,i)))}const he={closed:true,next:Ji,error:le,complete:Ji};const de=(()=>typeof Symbol==="function"&&Symbol.observable||"@@observable")();function fe(t){return t}function pe(t){if(t.length===0){return fe}if(t.length===1){return t[0]}return function i(e){return t.reduce(((t,i)=>i(t)),e)}}class ve{constructor(t){if(t){this._subscribe=t}}lift(t){const i=new ve;i.source=this;i.operator=t;return i}subscribe(t,i,e){const n=ge(t)?t:new ae(t,i,e);ee((()=>{const{operator:t,source:i}=this;n.add(t?t.call(n,i):i?this._subscribe(n):this._trySubscribe(n))}));return n}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){i=me(i);return new i(((i,e)=>{const n=new ae({next:i=>{try{t(i)}catch(t){e(t);n.unsubscribe()}},error:e,complete:i});this.subscribe(n)}))}_subscribe(t){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(t)}[de](){return this}pipe(...t){return pe(t)(this)}toPromise(t){t=me(t);return new t(((t,i)=>{let e;this.subscribe((t=>e=t),(t=>i(t)),(()=>t(e)))}))}}ve.create=t=>new ve(t);function me(t){var i;return(i=t!==null&&t!==void 0?t:Wi.Promise)!==null&&i!==void 0?i:Promise}function be(t){return t&&Bi(t.next)&&Bi(t.error)&&Bi(t.complete)}function ge(t){return t&&t instanceof ne||be(t)&&Vi(t)}function ye(t){return Bi(t===null||t===void 0?void 0:t.lift)}function we(t){return i=>{if(ye(i)){return i.lift((function(i){try{return t(i,this)}catch(t){this.error(t)}}))}throw new TypeError("Unable to lift unknown Observable type")}}function xe(t,i,e,n,r){return new Me(t,i,e,n,r)}class Me extends ne{constructor(t,i,e,n,r,s){super(t);this.onFinalize=r;this.shouldUnsubscribe=s;this._next=i?function(e){try{i(e)}catch(i){t.error(i)}}:super._next;this._error=n?function(i){try{n(i)}catch(i){t.error(i)}finally{this.unsubscribe()}}:super._error;this._complete=e?function(){try{e()}catch(i){t.error(i)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:i}=this;super.unsubscribe();!i&&((t=this.onFinalize)===null||t===void 0?void 0:t.call(this))}}}const ke=Fi((t=>function i(){t(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}));class _e extends ve{constructor(){super();this.closed=false;this.currentObservers=null;this.observers=[];this.isStopped=false;this.hasError=false;this.thrownError=null}lift(t){const i=new Ie(this,this);i.operator=t;return i}_throwIfClosed(){if(this.closed){throw new ke}}next(t){ee((()=>{this._throwIfClosed();if(!this.isStopped){if(!this.currentObservers){this.currentObservers=Array.from(this.observers)}for(const i of this.currentObservers){i.next(t)}}}))}error(t){ee((()=>{this._throwIfClosed();if(!this.isStopped){this.hasError=this.isStopped=true;this.thrownError=t;const{observers:i}=this;while(i.length){i.shift().error(t)}}}))}complete(){ee((()=>{this._throwIfClosed();if(!this.isStopped){this.isStopped=true;const{observers:t}=this;while(t.length){t.shift().complete()}}}))}unsubscribe(){this.isStopped=this.closed=true;this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){this._throwIfClosed();return super._trySubscribe(t)}_subscribe(t){this._throwIfClosed();this._checkFinalizedStatuses(t);return this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:e,observers:n}=this;if(i||e){return Gi}this.currentObservers=null;n.push(t);return new Hi((()=>{this.currentObservers=null;Yi(n,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:e,isStopped:n}=this;if(i){t.error(e)}else if(n){t.complete()}}asObservable(){const t=new ve;t.source=this;return t}}_e.create=(t,i)=>new Ie(t,i);class Ie extends _e{constructor(t,i){super();this.destination=t;this.source=i}next(t){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.next)===null||e===void 0?void 0:e.call(i,t)}error(t){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.error)===null||e===void 0?void 0:e.call(i,t)}complete(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0?void 0:i.call(t)}_subscribe(t){var i,e;return(e=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&e!==void 0?e:Gi}}const je={now(){return(je.delegate||Date).now()},delegate:undefined};class Ae extends Hi{constructor(t,i){super()}schedule(t,i=0){return this}}const ze={setInterval(t,i,...e){const{delegate:n}=ze;if(n===null||n===void 0?void 0:n.setInterval){return n.setInterval(t,i,...e)}return setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=ze;return((i===null||i===void 0?void 0:i.clearInterval)||clearInterval)(t)},delegate:undefined};class Ne extends Ae{constructor(t,i){super(t,i);this.scheduler=t;this.work=i;this.pending=false}schedule(t,i=0){if(this.closed){return this}this.state=t;const e=this.id;const n=this.scheduler;if(e!=null){this.id=this.recycleAsyncId(n,e,i)}this.pending=true;this.delay=i;this.id=this.id||this.requestAsyncId(n,this.id,i);return this}requestAsyncId(t,i,e=0){return ze.setInterval(t.flush.bind(t,this),e)}recycleAsyncId(t,i,e=0){if(e!=null&&this.delay===e&&this.pending===false){return i}ze.clearInterval(i);return undefined}execute(t,i){if(this.closed){return new Error("executing a cancelled action")}this.pending=false;const e=this._execute(t,i);if(e){return e}else if(this.pending===false&&this.id!=null){this.id=this.recycleAsyncId(this.scheduler,this.id,null)}}_execute(t,i){let e=false;let n;try{this.work(t)}catch(t){e=true;n=t?t:new Error("Scheduled action threw falsy error")}if(e){this.unsubscribe();return n}}unsubscribe(){if(!this.closed){const{id:t,scheduler:i}=this;const{actions:e}=i;this.work=this.state=this.scheduler=null;this.pending=false;Yi(e,this);if(t!=null){this.id=this.recycleAsyncId(i,t,null)}this.delay=null;super.unsubscribe()}}}class Ce{constructor(t,i=Ce.now){this.schedulerActionCtor=t;this.now=i}schedule(t,i=0,e){return new this.schedulerActionCtor(this,t).schedule(e,i)}}Ce.now=je.now;class Oe extends Ce{constructor(t,i=Ce.now){super(t,i);this.actions=[];this._active=false;this._scheduled=undefined}flush(t){const{actions:i}=this;if(this._active){i.push(t);return}let e;this._active=true;do{if(e=t.execute(t.state,t.delay)){break}}while(t=i.shift());this._active=false;if(e){while(t=i.shift()){t.unsubscribe()}throw e}}}const Se=new Oe(Ne);const Te=Se;const De=new ve((t=>t.complete()));function Ee(t){return t&&Bi(t.schedule)}function Le(t){return t[t.length-1]}function Re(t){return Ee(Le(t))?t.pop():undefined}function $e(t,i){return typeof Le(t)==="number"?t.pop():i}function Pe(t,i,e,n){function r(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function o(t){try{c(n.next(t))}catch(t){s(t)}}function a(t){try{c(n["throw"](t))}catch(t){s(t)}}function c(t){t.done?e(t.value):r(t.value).then(o,a)}c((n=n.apply(t,i||[])).next())}))}function Be(t){var i=typeof Symbol==="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fe(t){return this instanceof Fe?(this.v=t,this):new Fe(t)}function Ue(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),r,s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){if(n[t])r[t]=function(i){return new Promise((function(e,n){s.push([t,i,e,n])>1||a(t,i)}))}}function a(t,i){try{c(n[t](i))}catch(t){h(s[0][3],t)}}function c(t){t.value instanceof Fe?Promise.resolve(t.value.v).then(l,u):h(s[0][2],t)}function l(t){a("next",t)}function u(t){a("throw",t)}function h(t,i){if(t(i),s.shift(),s.length)a(s[0][0],s[0][1])}}function Ye(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof Be==="function"?Be(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(e){return new Promise((function(n,s){e=t[i](e),r(n,s,e.done,e.value)}))}}function r(t,i,e,n){Promise.resolve(n).then((function(i){t({value:i,done:e})}),i)}}const He=t=>t&&typeof t.length==="number"&&typeof t!=="function";function Ge(t){return Bi(t===null||t===void 0?void 0:t.then)}function Ve(t){return Bi(t[de])}function Qe(t){return Symbol.asyncIterator&&Bi(t===null||t===void 0?void 0:t[Symbol.asyncIterator])}function We(t){return new TypeError(`You provided ${t!==null&&typeof t==="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Ke(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}const Ze=Ke();function Je(t){return Bi(t===null||t===void 0?void 0:t[Ze])}function qe(t){return Ue(this,arguments,(function*i(){const e=t.getReader();try{while(true){const{value:t,done:i}=yield Fe(e.read());if(i){return yield Fe(void 0)}yield yield Fe(t)}}finally{e.releaseLock()}}))}function Xe(t){return Bi(t===null||t===void 0?void 0:t.getReader)}function tn(t){if(t instanceof ve){return t}if(t!=null){if(Ve(t)){return en(t)}if(He(t)){return nn(t)}if(Ge(t)){return rn(t)}if(Qe(t)){return on(t)}if(Je(t)){return sn(t)}if(Xe(t)){return an(t)}}throw We(t)}function en(t){return new ve((i=>{const e=t[de]();if(Bi(e.subscribe)){return e.subscribe(i)}throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function nn(t){return new ve((i=>{for(let e=0;e<t.length&&!i.closed;e++){i.next(t[e])}i.complete()}))}function rn(t){return new ve((i=>{t.then((t=>{if(!i.closed){i.next(t);i.complete()}}),(t=>i.error(t))).then(null,Zi)}))}function sn(t){return new ve((i=>{for(const e of t){i.next(e);if(i.closed){return}}i.complete()}))}function on(t){return new ve((i=>{cn(t,i).catch((t=>i.error(t)))}))}function an(t){return on(qe(t))}function cn(t,i){var e,n;var r,s;return Pe(this,void 0,void 0,(function*(){try{for(e=Ye(t);n=yield e.next(),!n.done;){const t=n.value;i.next(t);if(i.closed){return}}}catch(t){r={error:t}}finally{try{if(n&&!n.done&&(s=e.return))yield s.call(e)}finally{if(r)throw r.error}}i.complete()}))}function ln(t,i,e,n=0,r=false){const s=i.schedule((function(){e();if(r){t.add(this.schedule(null,n))}else{this.unsubscribe()}}),n);t.add(s);if(!r){return s}}function un(t,i=0){return we(((e,n)=>{e.subscribe(xe(n,(e=>ln(n,t,(()=>n.next(e)),i)),(()=>ln(n,t,(()=>n.complete()),i)),(e=>ln(n,t,(()=>n.error(e)),i))))}))}function hn(t,i=0){return we(((e,n)=>{n.add(t.schedule((()=>e.subscribe(n)),i))}))}function dn(t,i){return tn(t).pipe(hn(i),un(i))}function fn(t,i){return tn(t).pipe(hn(i),un(i))}function pn(t,i){return new ve((e=>{let n=0;return i.schedule((function(){if(n===t.length){e.complete()}else{e.next(t[n++]);if(!e.closed){this.schedule()}}}))}))}function vn(t,i){return new ve((e=>{let n;ln(e,i,(()=>{n=t[Ze]();ln(e,i,(()=>{let t;let i;try{({value:t,done:i}=n.next())}catch(t){e.error(t);return}if(i){e.complete()}else{e.next(t)}}),0,true)}));return()=>Bi(n===null||n===void 0?void 0:n.return)&&n.return()}))}function mn(t,i){if(!t){throw new Error("Iterable cannot be null")}return new ve((e=>{ln(e,i,(()=>{const n=t[Symbol.asyncIterator]();ln(e,i,(()=>{n.next().then((t=>{if(t.done){e.complete()}else{e.next(t.value)}}))}),0,true)}))}))}function bn(t,i){return mn(qe(t),i)}function gn(t,i){if(t!=null){if(Ve(t)){return dn(t,i)}if(He(t)){return pn(t,i)}if(Ge(t)){return fn(t,i)}if(Qe(t)){return mn(t,i)}if(Je(t)){return vn(t,i)}if(Xe(t)){return bn(t,i)}}throw We(t)}function yn(t,i){return i?gn(t,i):tn(t)}function wn(...t){const i=Re(t);return yn(t,i)}const xn=Fi((t=>function i(){t(this);this.name="EmptyError";this.message="no elements in sequence"}));function Mn(t){return t instanceof Date&&!isNaN(t)}function kn(t,i){return we(((e,n)=>{let r=0;e.subscribe(xe(n,(e=>{n.next(t.call(i,e,r++))})))}))}const{isArray:_n}=Array;function In(t,i){return _n(i)?t(...i):t(i)}function jn(t){return kn((i=>In(t,i)))}function An(t,i,e,n,r,s,o,a){const c=[];let l=0;let u=0;let h=false;const d=()=>{if(h&&!c.length&&!l){i.complete()}};const f=t=>l<n?p(t):c.push(t);const p=t=>{s&&i.next(t);l++;let a=false;tn(e(t,u++)).subscribe(xe(i,(t=>{r===null||r===void 0?void 0:r(t);if(s){f(t)}else{i.next(t)}}),(()=>{a=true}),undefined,(()=>{if(a){try{l--;while(c.length&&l<n){const t=c.shift();if(o){ln(i,o,(()=>p(t)))}else{p(t)}}d()}catch(t){i.error(t)}}})))};t.subscribe(xe(i,f,(()=>{h=true;d()})));return()=>{a===null||a===void 0?void 0:a()}}function zn(t,i,e=Infinity){if(Bi(i)){return zn(((e,n)=>kn(((t,r)=>i(e,t,n,r)))(tn(t(e,n)))),e)}else if(typeof i==="number"){e=i}return we(((i,n)=>An(i,n,t,e)))}function Nn(t=Infinity){return zn(fe,t)}function Cn(){return Nn(1)}function On(...t){return Cn()(yn(t,Re(t)))}const Sn=["addListener","removeListener"];const Tn=["addEventListener","removeEventListener"];const Dn=["on","off"];function En(t,i,e,n){if(Bi(e)){n=e;e=undefined}if(n){return En(t,i,e).pipe(jn(n))}const[r,s]=Pn(t)?Tn.map((n=>r=>t[n](i,r,e))):Rn(t)?Sn.map(Ln(t,i)):$n(t)?Dn.map(Ln(t,i)):[];if(!r){if(He(t)){return zn((t=>En(t,i,e)))(tn(t))}}if(!r){throw new TypeError("Invalid event target")}return new ve((t=>{const i=(...i)=>t.next(1<i.length?i:i[0]);r(i);return()=>s(i)}))}function Ln(t,i){return e=>n=>t[e](i,n)}function Rn(t){return Bi(t.addListener)&&Bi(t.removeListener)}function $n(t){return Bi(t.on)&&Bi(t.off)}function Pn(t){return Bi(t.addEventListener)&&Bi(t.removeEventListener)}function Bn(t=0,i,e=Te){let n=-1;if(i!=null){if(Ee(i)){e=i}else{n=i}}return new ve((i=>{let r=Mn(t)?+t-e.now():t;if(r<0){r=0}let s=0;return e.schedule((function(){if(!i.closed){i.next(s++);if(0<=n){this.schedule(undefined,n)}else{i.complete()}}}),r)}))}function Fn(...t){const i=Re(t);const e=$e(t,Infinity);const n=t;return!n.length?De:n.length===1?tn(n[0]):Nn(e)(yn(n,i))}function Un(t,i){return we(((e,n)=>{let r=0;e.subscribe(xe(n,(e=>t.call(i,e,r++)&&n.next(e))))}))}function Yn(t){return we(((i,e)=>{let n=null;let r=false;let s;n=i.subscribe(xe(e,undefined,undefined,(o=>{s=tn(t(o,Yn(t)(i)));if(n){n.unsubscribe();n=null;s.subscribe(e)}else{r=true}})));if(r){n.unsubscribe();n=null;s.subscribe(e)}}))}function Hn(t,i,e,n,r){return(s,o)=>{let a=e;let c=i;let l=0;s.subscribe(xe(o,(i=>{const e=l++;c=a?t(c,i,e):(a=true,i);n&&o.next(c)}),r&&(()=>{a&&o.next(c);o.complete()})))}}function Gn(t){return we(((i,e)=>{let n=false;let r=null;let s=null;const o=()=>{s===null||s===void 0?void 0:s.unsubscribe();s=null;if(n){n=false;const t=r;r=null;e.next(t)}};i.subscribe(xe(e,(i=>{s===null||s===void 0?void 0:s.unsubscribe();n=true;r=i;s=xe(e,o,Ji);tn(t(i)).subscribe(s)}),(()=>{o();e.complete()}),undefined,(()=>{r=s=null})))}))}function Vn(t){return we(((i,e)=>{let n=false;i.subscribe(xe(e,(t=>{n=true;e.next(t)}),(()=>{if(!n){e.next(t)}e.complete()})))}))}function Qn(t){return t<=0?()=>De:we(((i,e)=>{let n=0;i.subscribe(xe(e,(i=>{if(++n<=t){e.next(i);if(t<=n){e.complete()}}})))}))}function Wn(){return we(((t,i)=>{t.subscribe(xe(i,Ji))}))}function Kn(t){return kn((()=>t))}function Zn(t,i){if(i){return e=>On(i.pipe(Qn(1),Wn()),e.pipe(Zn(t)))}return zn(((i,e)=>t(i,e).pipe(Qn(1),Kn(i))))}function Jn(t,i=Se){const e=Bn(t,i);return Zn((()=>e))}function qn(t,i=fe){t=t!==null&&t!==void 0?t:Xn;return we(((e,n)=>{let r;let s=true;e.subscribe(xe(n,(e=>{const o=i(e);if(s||!t(r,o)){s=false;r=o;n.next(e)}})))}))}function Xn(t,i){return t===i}function tr(t=ir){return we(((i,e)=>{let n=false;i.subscribe(xe(e,(t=>{n=true;e.next(t)}),(()=>n?e.complete():e.error(t()))))}))}function ir(){return new xn}function er(t,i){const e=arguments.length>=2;return n=>n.pipe(t?Un(((i,e)=>t(i,e,n))):fe,Qn(1),e?Vn(i):tr((()=>new xn)))}function nr(t,i){return we(Hn(t,i,arguments.length>=2,true))}function rr(...t){const i=Re(t);return we(((e,n)=>{(i?On(t,e,i):On(t,e)).subscribe(n)}))}function sr(t,i){return we(((e,n)=>{let r=null;let s=0;let o=false;const a=()=>o&&!r&&n.complete();e.subscribe(xe(n,(e=>{r===null||r===void 0?void 0:r.unsubscribe();let o=0;const c=s++;tn(t(e,c)).subscribe(r=xe(n,(t=>n.next(i?i(e,t,c,o++):t)),(()=>{r=null;a()})))}),(()=>{o=true;a()})))}))}function or(t){return we(((i,e)=>{tn(t).subscribe(xe(e,(()=>e.complete()),Ji));!e.closed&&i.subscribe(e)}))}function ar(t,i=false){return we(((e,n)=>{let r=0;e.subscribe(xe(n,(e=>{const s=t(e,r++);(s||i)&&n.next(e);!s&&n.complete()})))}))}function cr(t,i,e){const n=Bi(t)||i||e?{next:t,error:i,complete:e}:t;return n?we(((t,i)=>{var e;(e=n.subscribe)===null||e===void 0?void 0:e.call(n);let r=true;t.subscribe(xe(i,(t=>{var e;(e=n.next)===null||e===void 0?void 0:e.call(n,t);i.next(t)}),(()=>{var t;r=false;(t=n.complete)===null||t===void 0?void 0:t.call(n);i.complete()}),(t=>{var e;r=false;(e=n.error)===null||e===void 0?void 0:e.call(n,t);i.error(t)}),(()=>{var t,i;if(r){(t=n.unsubscribe)===null||t===void 0?void 0:t.call(n)}(i=n.finalize)===null||i===void 0?void 0:i.call(n)})))})):fe}const lr=":host{overflow:hidden;position:relative;display:flex}:host([hidden]){display:none}.shadow-bottom,.shadow-right,.shadow-left,.shadow-top{position:absolute;transition:box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)}.shadow-top{z-index:2;width:100%;top:0}.shadow-left{z-index:4;height:100%;left:0}.shadow-right{z-index:4;height:100%;right:0}.shadow-bottom{z-index:2;width:100%;bottom:0}.scrollable-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}.scrollable-wrapper.cat-scrollable-top .shadow-top,.scrollable-wrapper.cat-scrollable-bottom .shadow-bottom,.scrollable-wrapper.cat-scrollable-left .shadow-left,.scrollable-wrapper.cat-scrollable-right .shadow-right{box-shadow:0 0 4px 1px rgba(16, 29, 48, 0.2)}.scrollable-content{width:100%;overflow:hidden}.scrollable-content.scroll-x{overflow-x:auto}.scrollable-content.scroll-y{overflow-y:auto}.scrollable-content.no-overscroll{overscroll-behavior:contain}";const ur=class{constructor(i){t(this,i);this.scrolledTop=n(this,"scrolledTop",7);this.scrolledLeft=n(this,"scrolledLeft",7);this.scrolledRight=n(this,"scrolledRight",7);this.scrolledBottom=n(this,"scrolledBottom",7);this.init=new _e;this.destroyed=new _e;this.noShadowX=false;this.noShadowY=false;this.noOverflowX=false;this.noOverflowY=false;this.noOverscroll=false;this.noScrolledInit=false;this.scrolledBuffer=0}componentDidRender(){if(this.scrollElement){this.scrolled=En(this.scrollElement,"scroll").pipe(or(this.destroyed))}this.attachEmitter("left",this.scrolledLeft,this.scrolledBuffer);this.attachEmitter("right",this.scrolledRight,this.scrolledBuffer);this.attachEmitter("bottom",this.scrolledBottom,this.scrolledBuffer);this.attachEmitter("top",this.scrolledTop,this.scrolledBuffer);Fn(this.init,this.scrolled).pipe(kn((()=>({top:this.getScrollOffset("top")>0,left:this.getScrollOffset("left")>0,right:this.getScrollOffset("right")>0,bottom:this.getScrollOffset("bottom")>0}))),qn(),or(this.destroyed)).subscribe((({top:t,left:i,right:e,bottom:n})=>{this.toggleClass("cat-scrollable-top",t);this.toggleClass("cat-scrollable-left",i);this.toggleClass("cat-scrollable-right",e);this.toggleClass("cat-scrollable-bottom",n)}))}componentDidLoad(){if(!this.noScrolledInit){this.init.next()}}disconnectedCallback(){this.init.complete();this.destroyed.next();this.destroyed.complete()}render(){return[i("div",{class:"scrollable-wrapper",ref:t=>this.scrollWrapperElement=t},!this.noShadowY&&i("div",{class:"shadow-top"}),!this.noShadowX&&i("div",{class:"shadow-left"}),!this.noShadowX&&i("div",{class:"shadow-right"}),!this.noShadowY&&i("div",{class:"shadow-bottom"})),i("div",{ref:t=>this.scrollElement=t,class:{"scrollable-content":true,"scroll-x":!this.noOverflowX,"scroll-y":!this.noOverflowY,"no-overscroll":this.noOverscroll}},i("slot",null))]}attachEmitter(t,i,e){Fn(this.init,this.scrolled).pipe(kn((()=>this.getScrollOffset(t)))).pipe(kn((t=>t<=e))).pipe(qn()).pipe(Un((t=>t))).pipe(or(this.destroyed)).subscribe((()=>i.emit()))}getScrollOffset(t){if(this.scrollElement){switch(t){case"top":return this.scrollElement.scrollTop;case"left":return this.scrollElement.scrollLeft;case"right":return this.scrollElement.scrollWidth-this.scrollElement.clientWidth-this.scrollElement.scrollLeft;case"bottom":return this.scrollElement.scrollHeight-this.scrollElement.clientHeight-this.scrollElement.scrollTop;default:return 0}}return 0}toggleClass(t,i){var e,n;if(i){(e=this.scrollWrapperElement)===null||e===void 0?void 0:e.classList.add(t)}else{(n=this.scrollWrapperElement)===null||n===void 0?void 0:n.classList.remove(t)}}};ur.style=lr;var hr=c((function(t,i){
10
+ /*! choices.js v10.1.0 | © 2022 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
11
+ (function i(e,n){t.exports=n()})(window,(function(){return function(){var t={282:function(t,i,e){Object.defineProperty(i,"__esModule",{value:true});i.clearChoices=i.activateChoices=i.filterChoices=i.addChoice=void 0;var n=e(883);var r=function(t){var i=t.value,e=t.label,r=t.id,s=t.groupId,o=t.disabled,a=t.elementId,c=t.customProperties,l=t.placeholder,u=t.keyCode;return{type:n.ACTION_TYPES.ADD_CHOICE,value:i,label:e,id:r,groupId:s,disabled:o,elementId:a,customProperties:c,placeholder:l,keyCode:u}};i.addChoice=r;var s=function(t){return{type:n.ACTION_TYPES.FILTER_CHOICES,results:t}};i.filterChoices=s;var o=function(t){if(t===void 0){t=true}return{type:n.ACTION_TYPES.ACTIVATE_CHOICES,active:t}};i.activateChoices=o;var a=function(){return{type:n.ACTION_TYPES.CLEAR_CHOICES}};i.clearChoices=a},783:function(t,i,e){Object.defineProperty(i,"__esModule",{value:true});i.addGroup=void 0;var n=e(883);var r=function(t){var i=t.value,e=t.id,r=t.active,s=t.disabled;return{type:n.ACTION_TYPES.ADD_GROUP,value:i,id:e,active:r,disabled:s}};i.addGroup=r},464:function(t,i,e){Object.defineProperty(i,"__esModule",{value:true});i.highlightItem=i.removeItem=i.addItem=void 0;var n=e(883);var r=function(t){var i=t.value,e=t.label,r=t.id,s=t.choiceId,o=t.groupId,a=t.customProperties,c=t.placeholder,l=t.keyCode;return{type:n.ACTION_TYPES.ADD_ITEM,value:i,label:e,id:r,choiceId:s,groupId:o,customProperties:a,placeholder:c,keyCode:l}};i.addItem=r;var s=function(t,i){return{type:n.ACTION_TYPES.REMOVE_ITEM,id:t,choiceId:i}};i.removeItem=s;var o=function(t,i){return{type:n.ACTION_TYPES.HIGHLIGHT_ITEM,id:t,highlighted:i}};i.highlightItem=o},137:function(t,i,e){Object.defineProperty(i,"__esModule",{value:true});i.setIsLoading=i.resetTo=i.clearAll=void 0;var n=e(883);var r=function(){return{type:n.ACTION_TYPES.CLEAR_ALL}};i.clearAll=r;var s=function(t){return{type:n.ACTION_TYPES.RESET_TO,state:t}};i.resetTo=s;var o=function(t){return{type:n.ACTION_TYPES.SET_IS_LOADING,isLoading:t}};i.setIsLoading=o},373:function(t,i,e){var n=this&&this.__spreadArray||function(t,i,e){if(e||arguments.length===2)for(var n=0,r=i.length,s;n<r;n++){if(s||!(n in i)){if(!s)s=Array.prototype.slice.call(i,0,n);s[n]=i[n]}}return t.concat(s||Array.prototype.slice.call(i))};var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:true});var s=r(e(996));var o=r(e(221));var a=e(282);var c=e(783);var l=e(464);var u=e(137);var h=e(520);var d=e(883);var f=e(789);var p=e(799);var v=e(655);var m=r(e(744));var b=r(e(686));var g="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style;var y={};var w=function(){function t(i,e){var r=this;if(i===void 0){i="[data-choice]"}if(e===void 0){e={}}if(e.allowHTML===undefined){console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message.")}this.config=s.default.all([f.DEFAULT_CONFIG,t.defaults.options,e],{arrayMerge:function(t,i){return n([],i,true)}});var o=(0,p.diff)(this.config,f.DEFAULT_CONFIG);if(o.length){console.warn("Unknown config option(s) passed",o.join(", "))}var a=typeof i==="string"?document.querySelector(i):i;if(!(a instanceof HTMLInputElement||a instanceof HTMLSelectElement)){throw TypeError("Expected one of the following types text|select-one|select-multiple")}this._isTextElement=a.type===d.TEXT_TYPE;this._isSelectOneElement=a.type===d.SELECT_ONE_TYPE;this._isSelectMultipleElement=a.type===d.SELECT_MULTIPLE_TYPE;this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement;this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled;if(!["auto","always"].includes("".concat(this.config.renderSelectedChoices))){this.config.renderSelectedChoices="auto"}if(e.addItemFilter&&typeof e.addItemFilter!=="function"){var c=e.addItemFilter instanceof RegExp?e.addItemFilter:new RegExp(e.addItemFilter);this.config.addItemFilter=c.test.bind(c)}if(this._isTextElement){this.passedElement=new h.WrappedInput({element:a,classNames:this.config.classNames,delimiter:this.config.delimiter})}else{this.passedElement=new h.WrappedSelect({element:a,classNames:this.config.classNames,template:function(t){return r._templates.option(t)}})}this.initialised=false;this._store=new m.default;this._initialState=v.defaultState;this._currentState=v.defaultState;this._prevState=v.defaultState;this._currentValue="";this._canSearch=!!this.config.searchEnabled;this._isScrollingOnIe=false;this._highlightPosition=0;this._wasTap=true;this._placeholderValue=this._generatePlaceholderValue();this._baseId=(0,p.generateId)(this.passedElement.element,"choices-");this._direction=this.passedElement.dir;if(!this._direction){var l=window.getComputedStyle(this.passedElement.element).direction;var u=window.getComputedStyle(document.documentElement).direction;if(l!==u){this._direction=l}}this._idNames={itemChoice:"item-choice"};if(this._isSelectElement){this._presetGroups=this.passedElement.optionGroups;this._presetOptions=this.passedElement.options}this._presetChoices=this.config.choices;this._presetItems=this.config.items;if(this.passedElement.value&&this._isTextElement){var b=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(b)}if(this.passedElement.options){this.passedElement.options.forEach((function(t){r._presetChoices.push({value:t.value,label:t.innerHTML,selected:!!t.selected,disabled:t.disabled||t.parentNode.disabled,placeholder:t.value===""||t.hasAttribute("placeholder"),customProperties:t.dataset["custom-properties"]})}))}this._render=this._render.bind(this);this._onFocus=this._onFocus.bind(this);this._onBlur=this._onBlur.bind(this);this._onKeyUp=this._onKeyUp.bind(this);this._onKeyDown=this._onKeyDown.bind(this);this._onClick=this._onClick.bind(this);this._onTouchMove=this._onTouchMove.bind(this);this._onTouchEnd=this._onTouchEnd.bind(this);this._onMouseDown=this._onMouseDown.bind(this);this._onMouseOver=this._onMouseOver.bind(this);this._onFormReset=this._onFormReset.bind(this);this._onSelectKey=this._onSelectKey.bind(this);this._onEnterKey=this._onEnterKey.bind(this);this._onEscapeKey=this._onEscapeKey.bind(this);this._onDirectionKey=this._onDirectionKey.bind(this);this._onDeleteKey=this._onDeleteKey.bind(this);if(this.passedElement.isActive){if(!this.config.silent){console.warn("Trying to initialise Choices on element already initialised",{element:i})}this.initialised=true;return}this.init()}Object.defineProperty(t,"defaults",{get:function(){return Object.preventExtensions({get options(){return y},get templates(){return b.default}})},enumerable:false,configurable:true});t.prototype.init=function(){if(this.initialised){return}this._createTemplates();this._createElements();this._createStructure();this._store.subscribe(this._render);this._render();this._addEventListeners();var t=!this.config.addItems||this.passedElement.element.hasAttribute("disabled");if(t){this.disable()}this.initialised=true;var i=this.config.callbackOnInit;if(i&&typeof i==="function"){i.call(this)}};t.prototype.destroy=function(){if(!this.initialised){return}this._removeEventListeners();this.passedElement.reveal();this.containerOuter.unwrap(this.passedElement.element);this.clearStore();if(this._isSelectElement){this.passedElement.options=this._presetOptions}this._templates=b.default;this.initialised=false};t.prototype.enable=function(){if(this.passedElement.isDisabled){this.passedElement.enable()}if(this.containerOuter.isDisabled){this._addEventListeners();this.input.enable();this.containerOuter.enable()}return this};t.prototype.disable=function(){if(!this.passedElement.isDisabled){this.passedElement.disable()}if(!this.containerOuter.isDisabled){this._removeEventListeners();this.input.disable();this.containerOuter.disable()}return this};t.prototype.highlightItem=function(t,i){if(i===void 0){i=true}if(!t||!t.id){return this}var e=t.id,n=t.groupId,r=n===void 0?-1:n,s=t.value,o=s===void 0?"":s,a=t.label,c=a===void 0?"":a;var u=r>=0?this._store.getGroupById(r):null;this._store.dispatch((0,l.highlightItem)(e,true));if(i){this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:e,value:o,label:c,groupValue:u&&u.value?u.value:null})}return this};t.prototype.unhighlightItem=function(t){if(!t||!t.id){return this}var i=t.id,e=t.groupId,n=e===void 0?-1:e,r=t.value,s=r===void 0?"":r,o=t.label,a=o===void 0?"":o;var c=n>=0?this._store.getGroupById(n):null;this._store.dispatch((0,l.highlightItem)(i,false));this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:i,value:s,label:a,groupValue:c&&c.value?c.value:null});return this};t.prototype.highlightAll=function(){var t=this;this._store.items.forEach((function(i){return t.highlightItem(i)}));return this};t.prototype.unhighlightAll=function(){var t=this;this._store.items.forEach((function(i){return t.unhighlightItem(i)}));return this};t.prototype.removeActiveItemsByValue=function(t){var i=this;this._store.activeItems.filter((function(i){return i.value===t})).forEach((function(t){return i._removeItem(t)}));return this};t.prototype.removeActiveItems=function(t){var i=this;this._store.activeItems.filter((function(i){var e=i.id;return e!==t})).forEach((function(t){return i._removeItem(t)}));return this};t.prototype.removeHighlightedItems=function(t){var i=this;if(t===void 0){t=false}this._store.highlightedActiveItems.forEach((function(e){i._removeItem(e);if(t){i._triggerChange(e.value)}}));return this};t.prototype.showDropdown=function(t){var i=this;if(this.dropdown.isActive){return this}requestAnimationFrame((function(){i.dropdown.show();i.containerOuter.open(i.dropdown.distanceFromTopWindow);if(!t&&i._canSearch){i.input.focus()}i.passedElement.triggerEvent(d.EVENTS.showDropdown,{})}));return this};t.prototype.hideDropdown=function(t){var i=this;if(!this.dropdown.isActive){return this}requestAnimationFrame((function(){i.dropdown.hide();i.containerOuter.close();if(!t&&i._canSearch){i.input.removeActiveDescendant();i.input.blur()}i.passedElement.triggerEvent(d.EVENTS.hideDropdown,{})}));return this};t.prototype.getValue=function(t){if(t===void 0){t=false}var i=this._store.activeItems.reduce((function(i,e){var n=t?e.value:e;i.push(n);return i}),[]);return this._isSelectOneElement?i[0]:i};t.prototype.setValue=function(t){var i=this;if(!this.initialised){return this}t.forEach((function(t){return i._setChoiceOrItem(t)}));return this};t.prototype.setChoiceByValue=function(t){var i=this;if(!this.initialised||this._isTextElement){return this}var e=Array.isArray(t)?t:[t];e.forEach((function(t){return i._findAndSelectChoiceByValue(t)}));return this};t.prototype.setChoices=function(t,i,e,n){var r=this;if(t===void 0){t=[]}if(i===void 0){i="value"}if(e===void 0){e="label"}if(n===void 0){n=false}if(!this.initialised){throw new ReferenceError("setChoices was called on a non-initialized instance of Choices")}if(!this._isSelectElement){throw new TypeError("setChoices can't be used with INPUT based Choices")}if(typeof i!=="string"||!i){throw new TypeError("value parameter must be a name of 'value' field in passed objects")}if(n){this.clearChoices()}if(typeof t==="function"){var s=t(this);if(typeof Promise==="function"&&s instanceof Promise){return new Promise((function(t){return requestAnimationFrame(t)})).then((function(){return r._handleLoadingState(true)})).then((function(){return s})).then((function(t){return r.setChoices(t,i,e,n)})).catch((function(t){if(!r.config.silent){console.error(t)}})).then((function(){return r._handleLoadingState(false)})).then((function(){return r}))}if(!Array.isArray(s)){throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof s))}return this.setChoices(s,i,e,false)}if(!Array.isArray(t)){throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices")}this.containerOuter.removeLoadingState();this._startLoading();t.forEach((function(t){if(t.choices){r._addGroup({id:t.id?parseInt("".concat(t.id),10):null,group:t,valueKey:i,labelKey:e})}else{var n=t;r._addChoice({value:n[i],label:n[e],isSelected:!!n.selected,isDisabled:!!n.disabled,placeholder:!!n.placeholder,customProperties:n.customProperties})}}));this._stopLoading();return this};t.prototype.clearChoices=function(){this._store.dispatch((0,a.clearChoices)());return this};t.prototype.clearStore=function(){this._store.dispatch((0,u.clearAll)());return this};t.prototype.clearInput=function(){var t=!this._isSelectOneElement;this.input.clear(t);if(!this._isTextElement&&this._canSearch){this._isSearching=false;this._store.dispatch((0,a.activateChoices)(true))}return this};t.prototype._render=function(){if(this._store.isLoading()){return}this._currentState=this._store.state;var t=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items;var i=this._isSelectElement;var e=this._currentState.items!==this._prevState.items;if(!t){return}if(i){this._renderChoices()}if(e){this._renderItems()}this._prevState=this._currentState};t.prototype._renderChoices=function(){var t=this;var i=this._store,e=i.activeGroups,n=i.activeChoices;var r=document.createDocumentFragment();this.choiceList.clear();if(this.config.resetScrollPosition){requestAnimationFrame((function(){return t.choiceList.scrollToTop()}))}if(e.length>=1&&!this._isSearching){var s=n.filter((function(t){return t.placeholder===true&&t.groupId===-1}));if(s.length>=1){r=this._createChoicesFragment(s,r)}r=this._createGroupsFragment(e,n,r)}else if(n.length>=1){r=this._createChoicesFragment(n,r)}if(r.childNodes&&r.childNodes.length>0){var o=this._store.activeItems;var a=this._canAddItem(o,this.input.value);if(a.response){this.choiceList.append(r);this._highlightChoice()}else{var c=this._getTemplate("notice",a.notice);this.choiceList.append(c)}}else{var l=void 0;var c=void 0;if(this._isSearching){c=typeof this.config.noResultsText==="function"?this.config.noResultsText():this.config.noResultsText;l=this._getTemplate("notice",c,"no-results")}else{c=typeof this.config.noChoicesText==="function"?this.config.noChoicesText():this.config.noChoicesText;l=this._getTemplate("notice",c,"no-choices")}this.choiceList.append(l)}};t.prototype._renderItems=function(){var t=this._store.activeItems||[];this.itemList.clear();var i=this._createItemsFragment(t);if(i.childNodes){this.itemList.append(i)}};t.prototype._createGroupsFragment=function(t,i,e){var n=this;if(e===void 0){e=document.createDocumentFragment()}var r=function(t){return i.filter((function(i){if(n._isSelectOneElement){return i.groupId===t.id}return i.groupId===t.id&&(n.config.renderSelectedChoices==="always"||!i.selected)}))};if(this.config.shouldSort){t.sort(this.config.sorter)}t.forEach((function(t){var i=r(t);if(i.length>=1){var s=n._getTemplate("choiceGroup",t);e.appendChild(s);n._createChoicesFragment(i,e,true)}}));return e};t.prototype._createChoicesFragment=function(t,i,e){var r=this;if(i===void 0){i=document.createDocumentFragment()}if(e===void 0){e=false}var s=this.config,o=s.renderSelectedChoices,a=s.searchResultLimit,c=s.renderChoiceLimit;var l=this._isSearching?p.sortByScore:this.config.sorter;var u=function(t){var e=o==="auto"?r._isSelectOneElement||!t.selected:true;if(e){var n=r._getTemplate("choice",t,r.config.itemSelectText);i.appendChild(n)}};var h=t;if(o==="auto"&&!this._isSelectOneElement){h=t.filter((function(t){return!t.selected}))}var d=h.reduce((function(t,i){if(i.placeholder){t.placeholderChoices.push(i)}else{t.normalChoices.push(i)}return t}),{placeholderChoices:[],normalChoices:[]}),f=d.placeholderChoices,v=d.normalChoices;if(this.config.shouldSort||this._isSearching){v.sort(l)}var m=h.length;var b=this._isSelectOneElement?n(n([],f,true),v,true):v;if(this._isSearching){m=a}else if(c&&c>0&&!e){m=c}for(var g=0;g<m;g+=1){if(b[g]){u(b[g])}}return i};t.prototype._createItemsFragment=function(t,i){var e=this;if(i===void 0){i=document.createDocumentFragment()}var n=this.config,r=n.shouldSortItems,s=n.sorter,o=n.removeItemButton;if(r&&!this._isSelectOneElement){t.sort(s)}if(this._isTextElement){this.passedElement.value=t.map((function(t){var i=t.value;return i})).join(this.config.delimiter)}else{this.passedElement.options=t}var a=function(t){var n=e._getTemplate("item",t,o);i.appendChild(n)};t.forEach(a);return i};t.prototype._triggerChange=function(t){if(t===undefined||t===null){return}this.passedElement.triggerEvent(d.EVENTS.change,{value:t})};t.prototype._selectPlaceholderChoice=function(t){this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,placeholder:t.placeholder});this._triggerChange(t.value)};t.prototype._handleButtonAction=function(t,i){if(!t||!i||!this.config.removeItems||!this.config.removeItemButton){return}var e=i.parentNode&&i.parentNode.dataset.id;var n=e&&t.find((function(t){return t.id===parseInt(e,10)}));if(!n){return}this._removeItem(n);this._triggerChange(n.value);if(this._isSelectOneElement&&this._store.placeholderChoice){this._selectPlaceholderChoice(this._store.placeholderChoice)}};t.prototype._handleItemAction=function(t,i,e){var n=this;if(e===void 0){e=false}if(!t||!i||!this.config.removeItems||this._isSelectOneElement){return}var r=i.dataset.id;t.forEach((function(t){if(t.id===parseInt("".concat(r),10)&&!t.highlighted){n.highlightItem(t)}else if(!e&&t.highlighted){n.unhighlightItem(t)}}));this.input.focus()};t.prototype._handleChoiceAction=function(t,i){if(!t||!i){return}var e=i.dataset.id;var n=e&&this._store.getChoiceById(e);if(!n){return}var r=t[0]&&t[0].keyCode?t[0].keyCode:undefined;var s=this.dropdown.isActive;n.keyCode=r;this.passedElement.triggerEvent(d.EVENTS.choice,{choice:n});if(!n.selected&&!n.disabled){var o=this._canAddItem(t,n.value);if(o.response){this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode});this._triggerChange(n.value)}}this.clearInput();if(s&&this._isSelectOneElement){this.hideDropdown(true);this.containerOuter.focus()}};t.prototype._handleBackspace=function(t){if(!this.config.removeItems||!t){return}var i=t[t.length-1];var e=t.some((function(t){return t.highlighted}));if(this.config.editItems&&!e&&i){this.input.value=i.value;this.input.setWidth();this._removeItem(i);this._triggerChange(i.value)}else{if(!e){this.highlightItem(i,false)}this.removeHighlightedItems(true)}};t.prototype._startLoading=function(){this._store.dispatch((0,u.setIsLoading)(true))};t.prototype._stopLoading=function(){this._store.dispatch((0,u.setIsLoading)(false))};t.prototype._handleLoadingState=function(t){if(t===void 0){t=true}var i=this.itemList.getChild(".".concat(this.config.classNames.placeholder));if(t){this.disable();this.containerOuter.addLoadingState();if(this._isSelectOneElement){if(!i){i=this._getTemplate("placeholder",this.config.loadingText);if(i){this.itemList.append(i)}}else{i.innerHTML=this.config.loadingText}}else{this.input.placeholder=this.config.loadingText}}else{this.enable();this.containerOuter.removeLoadingState();if(this._isSelectOneElement){if(i){i.innerHTML=this._placeholderValue||""}}else{this.input.placeholder=this._placeholderValue||""}}};t.prototype._handleSearch=function(t){if(!this.input.isFocussed){return}var i=this._store.choices;var e=this.config,n=e.searchFloor,r=e.searchChoices;var s=i.some((function(t){return!t.active}));if(t!==null&&typeof t!=="undefined"&&t.length>=n){var o=r?this._searchChoices(t):0;this.passedElement.triggerEvent(d.EVENTS.search,{value:t,resultCount:o})}else if(s){this._isSearching=false;this._store.dispatch((0,a.activateChoices)(true))}};t.prototype._canAddItem=function(t,i){var e=true;var n=typeof this.config.addItemText==="function"?this.config.addItemText(i):this.config.addItemText;if(!this._isSelectOneElement){var r=(0,p.existsInArray)(t,i);if(this.config.maxItemCount>0&&this.config.maxItemCount<=t.length){e=false;n=typeof this.config.maxItemText==="function"?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText}if(!this.config.duplicateItemsAllowed&&r&&e){e=false;n=typeof this.config.uniqueItemText==="function"?this.config.uniqueItemText(i):this.config.uniqueItemText}if(this._isTextElement&&this.config.addItems&&e&&typeof this.config.addItemFilter==="function"&&!this.config.addItemFilter(i)){e=false;n=typeof this.config.customAddItemText==="function"?this.config.customAddItemText(i):this.config.customAddItemText}}return{response:e,notice:n}};t.prototype._searchChoices=function(t){var i=typeof t==="string"?t.trim():t;var e=typeof this._currentValue==="string"?this._currentValue.trim():this._currentValue;if(i.length<1&&i==="".concat(e," ")){return 0}var r=this._store.searchableChoices;var s=i;var c=Object.assign(this.config.fuseOptions,{keys:n([],this.config.searchFields,true),includeMatches:true});var l=new o.default(r,c);var u=l.search(s);this._currentValue=i;this._highlightPosition=0;this._isSearching=true;this._store.dispatch((0,a.filterChoices)(u));return u.length};t.prototype._addEventListeners=function(){var t=document.documentElement;t.addEventListener("touchend",this._onTouchEnd,true);this.containerOuter.element.addEventListener("keydown",this._onKeyDown,true);this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,true);t.addEventListener("click",this._onClick,{passive:true});t.addEventListener("touchmove",this._onTouchMove,{passive:true});this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:true});if(this._isSelectOneElement){this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:true});this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:true})}this.input.element.addEventListener("keyup",this._onKeyUp,{passive:true});this.input.element.addEventListener("focus",this._onFocus,{passive:true});this.input.element.addEventListener("blur",this._onBlur,{passive:true});if(this.input.element.form){this.input.element.form.addEventListener("reset",this._onFormReset,{passive:true})}this.input.addEventListeners()};t.prototype._removeEventListeners=function(){var t=document.documentElement;t.removeEventListener("touchend",this._onTouchEnd,true);this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,true);this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,true);t.removeEventListener("click",this._onClick);t.removeEventListener("touchmove",this._onTouchMove);this.dropdown.element.removeEventListener("mouseover",this._onMouseOver);if(this._isSelectOneElement){this.containerOuter.element.removeEventListener("focus",this._onFocus);this.containerOuter.element.removeEventListener("blur",this._onBlur)}this.input.element.removeEventListener("keyup",this._onKeyUp);this.input.element.removeEventListener("focus",this._onFocus);this.input.element.removeEventListener("blur",this._onBlur);if(this.input.element.form){this.input.element.form.removeEventListener("reset",this._onFormReset)}this.input.removeEventListeners()};t.prototype._onKeyDown=function(t){var i=t.keyCode;var e=this._store.activeItems;var n=this.input.isFocussed;var r=this.dropdown.isActive;var s=this.itemList.hasChildren();var o=String.fromCharCode(i);var a=/[a-zA-Z0-9-_ ]/.test(o);var c=d.KEY_CODES.BACK_KEY,l=d.KEY_CODES.DELETE_KEY,u=d.KEY_CODES.ENTER_KEY,h=d.KEY_CODES.A_KEY,f=d.KEY_CODES.ESC_KEY,p=d.KEY_CODES.UP_KEY,v=d.KEY_CODES.DOWN_KEY,m=d.KEY_CODES.PAGE_UP_KEY,b=d.KEY_CODES.PAGE_DOWN_KEY;if(!this._isTextElement&&!r&&a){this.showDropdown();if(!this.input.isFocussed){this.input.value+=o.toLowerCase()}}switch(i){case h:return this._onSelectKey(t,s);case u:return this._onEnterKey(t,e,r);case f:return this._onEscapeKey(r);case p:case m:case v:case b:return this._onDirectionKey(t,r);case l:case c:return this._onDeleteKey(t,e,n)}};t.prototype._onKeyUp=function(t){var i=t.target,e=t.keyCode;var n=this.input.value;var r=this._store.activeItems;var s=this._canAddItem(r,n);var o=d.KEY_CODES.BACK_KEY,c=d.KEY_CODES.DELETE_KEY;if(this._isTextElement){var l=s.notice&&n;if(l){var u=this._getTemplate("notice",s.notice);this.dropdown.element.innerHTML=u.outerHTML;this.showDropdown(true)}else{this.hideDropdown(true)}}else{var h=e===o||e===c;var f=h&&i&&!i.value;var p=!this._isTextElement&&this._isSearching;var v=this._canSearch&&s.response;if(f&&p){this._isSearching=false;this._store.dispatch((0,a.activateChoices)(true))}else if(v){this._handleSearch(this.input.rawValue)}}this._canSearch=this.config.searchEnabled};t.prototype._onSelectKey=function(t,i){var e=t.ctrlKey,n=t.metaKey;var r=e||n;if(r&&i){this._canSearch=false;var s=this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement;if(s){this.highlightAll()}}};t.prototype._onEnterKey=function(t,i,e){var n=t.target;var r=d.KEY_CODES.ENTER_KEY;var s=n&&n.hasAttribute("data-button");if(this._isTextElement&&n&&n.value){var o=this.input.value;var a=this._canAddItem(i,o);if(a.response){this.hideDropdown(true);this._addItem({value:o});this._triggerChange(o);this.clearInput()}}if(s){this._handleButtonAction(i,n);t.preventDefault()}if(e){var c=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));if(c){if(i[0]){i[0].keyCode=r}this._handleChoiceAction(i,c)}t.preventDefault()}else if(this._isSelectOneElement){this.showDropdown();t.preventDefault()}};t.prototype._onEscapeKey=function(t){if(t){this.hideDropdown(true);this.containerOuter.focus()}};t.prototype._onDirectionKey=function(t,i){var e=t.keyCode,n=t.metaKey;var r=d.KEY_CODES.DOWN_KEY,s=d.KEY_CODES.PAGE_UP_KEY,o=d.KEY_CODES.PAGE_DOWN_KEY;if(i||this._isSelectOneElement){this.showDropdown();this._canSearch=false;var a=e===r||e===o?1:-1;var c=n||e===o||e===s;var l="[data-choice-selectable]";var u=void 0;if(c){if(a>0){u=this.dropdown.element.querySelector("".concat(l,":last-of-type"))}else{u=this.dropdown.element.querySelector(l)}}else{var h=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));if(h){u=(0,p.getAdjacentEl)(h,l,a)}else{u=this.dropdown.element.querySelector(l)}}if(u){if(!(0,p.isScrolledIntoView)(u,this.choiceList.element,a)){this.choiceList.scrollToChildElement(u,a)}this._highlightChoice(u)}t.preventDefault()}};t.prototype._onDeleteKey=function(t,i,e){var n=t.target;if(!this._isSelectOneElement&&!n.value&&e){this._handleBackspace(i);t.preventDefault()}};t.prototype._onTouchMove=function(){if(this._wasTap){this._wasTap=false}};t.prototype._onTouchEnd=function(t){var i=(t||t.touches[0]).target;var e=this._wasTap&&this.containerOuter.element.contains(i);if(e){var n=i===this.containerOuter.element||i===this.containerInner.element;if(n){if(this._isTextElement){this.input.focus()}else if(this._isSelectMultipleElement){this.showDropdown()}}t.stopPropagation()}this._wasTap=true};t.prototype._onMouseDown=function(t){var i=t.target;if(!(i instanceof HTMLElement)){return}if(g&&this.choiceList.element.contains(i)){var e=this.choiceList.element.firstElementChild;var n=this._direction==="ltr"?t.offsetX>=e.offsetWidth:t.offsetX<e.offsetLeft;this._isScrollingOnIe=n}if(i===this.input.element){return}var r=i.closest("[data-button],[data-item],[data-choice]");if(r instanceof HTMLElement){var s=t.shiftKey;var o=this._store.activeItems;var a=r.dataset;if("button"in a){this._handleButtonAction(o,r)}else if("item"in a){this._handleItemAction(o,r,s)}else if("choice"in a){this._handleChoiceAction(o,r)}}t.preventDefault()};t.prototype._onMouseOver=function(t){var i=t.target;if(i instanceof HTMLElement&&"choice"in i.dataset){this._highlightChoice(i)}};t.prototype._onClick=function(t){var i=t.target;var e=this.containerOuter.element.contains(i);if(e){if(!this.dropdown.isActive&&!this.containerOuter.isDisabled){if(this._isTextElement){if(document.activeElement!==this.input.element){this.input.focus()}}else{this.showDropdown();this.containerOuter.focus()}}else if(this._isSelectOneElement&&i!==this.input.element&&!this.dropdown.element.contains(i)){this.hideDropdown()}}else{var n=this._store.highlightedActiveItems.length>0;if(n){this.unhighlightAll()}this.containerOuter.removeFocusState();this.hideDropdown(true)}};t.prototype._onFocus=function(t){var i;var e=this;var n=t.target;var r=n&&this.containerOuter.element.contains(n);if(!r){return}var s=(i={},i[d.TEXT_TYPE]=function(){if(n===e.input.element){e.containerOuter.addFocusState()}},i[d.SELECT_ONE_TYPE]=function(){e.containerOuter.addFocusState();if(n===e.input.element){e.showDropdown(true)}},i[d.SELECT_MULTIPLE_TYPE]=function(){if(n===e.input.element){e.showDropdown(true);e.containerOuter.addFocusState()}},i);s[this.passedElement.element.type]()};t.prototype._onBlur=function(t){var i;var e=this;var n=t.target;var r=n&&this.containerOuter.element.contains(n);if(r&&!this._isScrollingOnIe){var s=this._store.activeItems;var o=s.some((function(t){return t.highlighted}));var a=(i={},i[d.TEXT_TYPE]=function(){if(n===e.input.element){e.containerOuter.removeFocusState();if(o){e.unhighlightAll()}e.hideDropdown(true)}},i[d.SELECT_ONE_TYPE]=function(){e.containerOuter.removeFocusState();if(n===e.input.element||n===e.containerOuter.element&&!e._canSearch){e.hideDropdown(true)}},i[d.SELECT_MULTIPLE_TYPE]=function(){if(n===e.input.element){e.containerOuter.removeFocusState();e.hideDropdown(true);if(o){e.unhighlightAll()}}},i);a[this.passedElement.element.type]()}else{this._isScrollingOnIe=false;this.input.element.focus()}};t.prototype._onFormReset=function(){this._store.dispatch((0,u.resetTo)(this._initialState))};t.prototype._highlightChoice=function(t){var i=this;if(t===void 0){t=null}var e=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(!e.length){return}var n=t;var r=Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState)));r.forEach((function(t){t.classList.remove(i.config.classNames.highlightedState);t.setAttribute("aria-selected","false")}));if(n){this._highlightPosition=e.indexOf(n)}else{if(e.length>this._highlightPosition){n=e[this._highlightPosition]}else{n=e[e.length-1]}if(!n){n=e[0]}}n.classList.add(this.config.classNames.highlightedState);n.setAttribute("aria-selected","true");this.passedElement.triggerEvent(d.EVENTS.highlightChoice,{el:n});if(this.dropdown.isActive){this.input.setActiveDescendant(n.id);this.containerOuter.setActiveDescendant(n.id)}};t.prototype._addItem=function(t){var i=t.value,e=t.label,n=e===void 0?null:e,r=t.choiceId,s=r===void 0?-1:r,o=t.groupId,a=o===void 0?-1:o,c=t.customProperties,u=c===void 0?{}:c,h=t.placeholder,f=h===void 0?false:h,p=t.keyCode,v=p===void 0?-1:p;var m=typeof i==="string"?i.trim():i;var b=this._store.items;var g=n||m;var y=s||-1;var w=a>=0?this._store.getGroupById(a):null;var x=b?b.length+1:1;if(this.config.prependValue){m=this.config.prependValue+m.toString()}if(this.config.appendValue){m+=this.config.appendValue.toString()}this._store.dispatch((0,l.addItem)({value:m,label:g,id:x,choiceId:y,groupId:a,customProperties:u,placeholder:f,keyCode:v}));if(this._isSelectOneElement){this.removeActiveItems(x)}this.passedElement.triggerEvent(d.EVENTS.addItem,{id:x,value:m,label:g,customProperties:u,groupValue:w&&w.value?w.value:null,keyCode:v})};t.prototype._removeItem=function(t){var i=t.id,e=t.value,n=t.label,r=t.customProperties,s=t.choiceId,o=t.groupId;var a=o&&o>=0?this._store.getGroupById(o):null;if(!i||!s){return}this._store.dispatch((0,l.removeItem)(i,s));this.passedElement.triggerEvent(d.EVENTS.removeItem,{id:i,value:e,label:n,customProperties:r,groupValue:a&&a.value?a.value:null})};t.prototype._addChoice=function(t){var i=t.value,e=t.label,n=e===void 0?null:e,r=t.isSelected,s=r===void 0?false:r,o=t.isDisabled,c=o===void 0?false:o,l=t.groupId,u=l===void 0?-1:l,h=t.customProperties,d=h===void 0?{}:h,f=t.placeholder,p=f===void 0?false:f,v=t.keyCode,m=v===void 0?-1:v;if(typeof i==="undefined"||i===null){return}var b=this._store.choices;var g=n||i;var y=b?b.length+1:1;var w="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(y);this._store.dispatch((0,a.addChoice)({id:y,groupId:u,elementId:w,value:i,label:g,disabled:c,customProperties:d,placeholder:p,keyCode:m}));if(s){this._addItem({value:i,label:g,choiceId:y,customProperties:d,placeholder:p,keyCode:m})}};t.prototype._addGroup=function(t){var i=this;var e=t.group,n=t.id,r=t.valueKey,s=r===void 0?"value":r,o=t.labelKey,a=o===void 0?"label":o;var l=(0,p.isType)("Object",e)?e.choices:Array.from(e.getElementsByTagName("OPTION"));var u=n||Math.floor((new Date).valueOf()*Math.random());var h=e.disabled?e.disabled:false;if(l){this._store.dispatch((0,c.addGroup)({value:e.label,id:u,active:true,disabled:h}));var d=function(t){var e=t.disabled||t.parentNode&&t.parentNode.disabled;i._addChoice({value:t[s],label:(0,p.isType)("Object",t)?t[a]:t.innerHTML,isSelected:t.selected,isDisabled:e,groupId:u,customProperties:t.customProperties,placeholder:t.placeholder})};l.forEach(d)}else{this._store.dispatch((0,c.addGroup)({value:e.label,id:e.id,active:false,disabled:e.disabled}))}};t.prototype._getTemplate=function(t){var i;var e=[];for(var r=1;r<arguments.length;r++){e[r-1]=arguments[r]}return(i=this._templates[t]).call.apply(i,n([this,this.config],e,false))};t.prototype._createTemplates=function(){var t=this.config.callbackOnCreateTemplates;var i={};if(t&&typeof t==="function"){i=t.call(this,p.strToEl)}this._templates=(0,s.default)(b.default,i)};t.prototype._createElements=function(){this.containerOuter=new h.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position});this.containerInner=new h.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position});this.input=new h.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste});this.choiceList=new h.List({element:this._getTemplate("choiceList",this._isSelectOneElement)});this.itemList=new h.List({element:this._getTemplate("itemList",this._isSelectOneElement)});this.dropdown=new h.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})};t.prototype._createStructure=function(){this.passedElement.conceal();this.containerInner.wrap(this.passedElement.element);this.containerOuter.wrap(this.containerInner.element);if(this._isSelectOneElement){this.input.placeholder=this.config.searchPlaceholderValue||""}else if(this._placeholderValue){this.input.placeholder=this._placeholderValue;this.input.setWidth()}this.containerOuter.element.appendChild(this.containerInner.element);this.containerOuter.element.appendChild(this.dropdown.element);this.containerInner.element.appendChild(this.itemList.element);if(!this._isTextElement){this.dropdown.element.appendChild(this.choiceList.element)}if(!this._isSelectOneElement){this.containerInner.element.appendChild(this.input.element)}else if(this.config.searchEnabled){this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild)}if(this._isSelectElement){this._highlightPosition=0;this._isSearching=false;this._startLoading();if(this._presetGroups.length){this._addPredefinedGroups(this._presetGroups)}else{this._addPredefinedChoices(this._presetChoices)}this._stopLoading()}if(this._isTextElement){this._addPredefinedItems(this._presetItems)}};t.prototype._addPredefinedGroups=function(t){var i=this;var e=this.passedElement.placeholderOption;if(e&&e.parentNode&&e.parentNode.tagName==="SELECT"){this._addChoice({value:e.value,label:e.innerHTML,isSelected:e.selected,isDisabled:e.disabled,placeholder:true})}t.forEach((function(t){return i._addGroup({group:t,id:t.id||null})}))};t.prototype._addPredefinedChoices=function(t){var i=this;if(this.config.shouldSort){t.sort(this.config.sorter)}var e=t.some((function(t){return t.selected}));var n=t.findIndex((function(t){return t.disabled===undefined||!t.disabled}));t.forEach((function(t,r){var s=t.value,o=s===void 0?"":s,a=t.label,c=t.customProperties,l=t.placeholder;if(i._isSelectElement){if(t.choices){i._addGroup({group:t,id:t.id||null})}else{var u=i._isSelectOneElement&&!e&&r===n;var h=u?true:t.selected;var d=t.disabled;i._addChoice({value:o,label:a,isSelected:!!h,isDisabled:!!d,placeholder:!!l,customProperties:c})}}else{i._addChoice({value:o,label:a,isSelected:!!t.selected,isDisabled:!!t.disabled,placeholder:!!t.placeholder,customProperties:c})}}))};t.prototype._addPredefinedItems=function(t){var i=this;t.forEach((function(t){if(typeof t==="object"&&t.value){i._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder})}if(typeof t==="string"){i._addItem({value:t})}}))};t.prototype._setChoiceOrItem=function(t){var i=this;var e=(0,p.getType)(t).toLowerCase();var n={object:function(){if(!t.value){return}if(!i._isTextElement){i._addChoice({value:t.value,label:t.label,isSelected:true,isDisabled:false,customProperties:t.customProperties,placeholder:t.placeholder})}else{i._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder})}},string:function(){if(!i._isTextElement){i._addChoice({value:t,label:t,isSelected:true,isDisabled:false})}else{i._addItem({value:t})}}};n[e]()};t.prototype._findAndSelectChoiceByValue=function(t){var i=this;var e=this._store.choices;var n=e.find((function(e){return i.config.valueComparer(e.value,t)}));if(n&&!n.selected){this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode})}};t.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var t=this.passedElement.placeholderOption;return t?t.text:null}var i=this.config,e=i.placeholder,n=i.placeholderValue;var r=this.passedElement.element.dataset;if(e){if(n){return n}if(r.placeholder){return r.placeholder}}return null};return t}();i["default"]=w},613:function(t,i,e){Object.defineProperty(i,"__esModule",{value:true});var n=e(799);var r=e(883);var s=function(){function t(t){var i=t.element,e=t.type,n=t.classNames,r=t.position;this.element=i;this.classNames=n;this.type=e;this.position=r;this.isOpen=false;this.isFlipped=false;this.isFocussed=false;this.isDisabled=false;this.isLoading=false;this._onFocus=this._onFocus.bind(this);this._onBlur=this._onBlur.bind(this)}t.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus);this.element.addEventListener("blur",this._onBlur)};t.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus);this.element.removeEventListener("blur",this._onBlur)};t.prototype.shouldFlip=function(t){if(typeof t!=="number"){return false}var i=false;if(this.position==="auto"){i=!window.matchMedia("(min-height: ".concat(t+1,"px)")).matches}else if(this.position==="top"){i=true}return i};t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)};t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")};t.prototype.open=function(t){this.element.classList.add(this.classNames.openState);this.element.setAttribute("aria-expanded","true");this.isOpen=true;if(this.shouldFlip(t)){this.element.classList.add(this.classNames.flippedState);this.isFlipped=true}};t.prototype.close=function(){this.element.classList.remove(this.classNames.openState);this.element.setAttribute("aria-expanded","false");this.removeActiveDescendant();this.isOpen=false;if(this.isFlipped){this.element.classList.remove(this.classNames.flippedState);this.isFlipped=false}};t.prototype.focus=function(){if(!this.isFocussed){this.element.focus()}};t.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)};t.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)};t.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState);this.element.removeAttribute("aria-disabled");if(this.type===r.SELECT_ONE_TYPE){this.element.setAttribute("tabindex","0")}this.isDisabled=false};t.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState);this.element.setAttribute("aria-disabled","true");if(this.type===r.SELECT_ONE_TYPE){this.element.setAttribute("tabindex","-1")}this.isDisabled=true};t.prototype.wrap=function(t){(0,n.wrap)(t,this.element)};t.prototype.unwrap=function(t){if(this.element.parentNode){this.element.parentNode.insertBefore(t,this.element);this.element.parentNode.removeChild(this.element)}};t.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState);this.element.setAttribute("aria-busy","true");this.isLoading=true};t.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState);this.element.removeAttribute("aria-busy");this.isLoading=false};t.prototype._onFocus=function(){this.isFocussed=true};t.prototype._onBlur=function(){this.isFocussed=false};return t}();i["default"]=s},217:function(t,i){Object.defineProperty(i,"__esModule",{value:true});var e=function(){function t(t){var i=t.element,e=t.type,n=t.classNames;this.element=i;this.classNames=n;this.type=e;this.isActive=false}Object.defineProperty(t.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:false,configurable:true});t.prototype.getChild=function(t){return this.element.querySelector(t)};t.prototype.show=function(){this.element.classList.add(this.classNames.activeState);this.element.setAttribute("aria-expanded","true");this.isActive=true;return this};t.prototype.hide=function(){this.element.classList.remove(this.classNames.activeState);this.element.setAttribute("aria-expanded","false");this.isActive=false;return this};return t}();i["default"]=e},520:function(t,i,e){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:true});i.WrappedSelect=i.WrappedInput=i.List=i.Input=i.Container=i.Dropdown=void 0;var r=n(e(217));i.Dropdown=r.default;var s=n(e(613));i.Container=s.default;var o=n(e(11));i.Input=o.default;var a=n(e(624));i.List=a.default;var c=n(e(541));i.WrappedInput=c.default;var l=n(e(982));i.WrappedSelect=l.default},11:function(t,i,e){Object.defineProperty(i,"__esModule",{value:true});var n=e(799);var r=e(883);var s=function(){function t(t){var i=t.element,e=t.type,n=t.classNames,r=t.preventPaste;this.element=i;this.type=e;this.classNames=n;this.preventPaste=r;this.isFocussed=this.element.isEqualNode(document.activeElement);this.isDisabled=i.disabled;this._onPaste=this._onPaste.bind(this);this._onInput=this._onInput.bind(this);this._onFocus=this._onFocus.bind(this);this._onBlur=this._onBlur.bind(this)}Object.defineProperty(t.prototype,"placeholder",{set:function(t){this.element.placeholder=t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return(0,n.sanitise)(this.element.value)},set:function(t){this.element.value=t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawValue",{get:function(){return this.element.value},enumerable:false,configurable:true});t.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste);this.element.addEventListener("input",this._onInput,{passive:true});this.element.addEventListener("focus",this._onFocus,{passive:true});this.element.addEventListener("blur",this._onBlur,{passive:true})};t.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput);this.element.removeEventListener("paste",this._onPaste);this.element.removeEventListener("focus",this._onFocus);this.element.removeEventListener("blur",this._onBlur)};t.prototype.enable=function(){this.element.removeAttribute("disabled");this.isDisabled=false};t.prototype.disable=function(){this.element.setAttribute("disabled","");this.isDisabled=true};t.prototype.focus=function(){if(!this.isFocussed){this.element.focus()}};t.prototype.blur=function(){if(this.isFocussed){this.element.blur()}};t.prototype.clear=function(t){if(t===void 0){t=true}if(this.element.value){this.element.value=""}if(t){this.setWidth()}return this};t.prototype.setWidth=function(){var t=this.element,i=t.style,e=t.value,n=t.placeholder;i.minWidth="".concat(n.length+1,"ch");i.width="".concat(e.length+1,"ch")};t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)};t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")};t.prototype._onInput=function(){if(this.type!==r.SELECT_ONE_TYPE){this.setWidth()}};t.prototype._onPaste=function(t){if(this.preventPaste){t.preventDefault()}};t.prototype._onFocus=function(){this.isFocussed=true};t.prototype._onBlur=function(){this.isFocussed=false};return t}();i["default"]=s},624:function(t,i,e){Object.defineProperty(i,"__esModule",{value:true});var n=e(883);var r=function(){function t(t){var i=t.element;this.element=i;this.scrollPos=this.element.scrollTop;this.height=this.element.offsetHeight}t.prototype.clear=function(){this.element.innerHTML=""};t.prototype.append=function(t){this.element.appendChild(t)};t.prototype.getChild=function(t){return this.element.querySelector(t)};t.prototype.hasChildren=function(){return this.element.hasChildNodes()};t.prototype.scrollToTop=function(){this.element.scrollTop=0};t.prototype.scrollToChildElement=function(t,i){var e=this;if(!t){return}var n=this.element.offsetHeight;var r=this.element.scrollTop+n;var s=t.offsetHeight;var o=t.offsetTop+s;var a=i>0?this.element.scrollTop+o-r:t.offsetTop;requestAnimationFrame((function(){e._animateScroll(a,i)}))};t.prototype._scrollDown=function(t,i,e){var n=(e-t)/i;var r=n>1?n:1;this.element.scrollTop=t+r};t.prototype._scrollUp=function(t,i,e){var n=(t-e)/i;var r=n>1?n:1;this.element.scrollTop=t-r};t.prototype._animateScroll=function(t,i){var e=this;var r=n.SCROLLING_SPEED;var s=this.element.scrollTop;var o=false;if(i>0){this._scrollDown(s,r,t);if(s<t){o=true}}else{this._scrollUp(s,r,t);if(s>t){o=true}}if(o){requestAnimationFrame((function(){e._animateScroll(t,i)}))}};return t}();i["default"]=r},730:function(t,i,e){Object.defineProperty(i,"__esModule",{value:true});var n=e(799);var r=function(){function t(t){var i=t.element,e=t.classNames;this.element=i;this.classNames=e;if(!(i instanceof HTMLInputElement)&&!(i instanceof HTMLSelectElement)){throw new TypeError("Invalid element passed")}this.isDisabled=false}Object.defineProperty(t.prototype,"isActive",{get:function(){return this.element.dataset.choice==="active"},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"dir",{get:function(){return this.element.dir},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.value=t},enumerable:false,configurable:true});t.prototype.conceal=function(){this.element.classList.add(this.classNames.input);this.element.hidden=true;this.element.tabIndex=-1;var t=this.element.getAttribute("style");if(t){this.element.setAttribute("data-choice-orig-style",t)}this.element.setAttribute("data-choice","active")};t.prototype.reveal=function(){this.element.classList.remove(this.classNames.input);this.element.hidden=false;this.element.removeAttribute("tabindex");var t=this.element.getAttribute("data-choice-orig-style");if(t){this.element.removeAttribute("data-choice-orig-style");this.element.setAttribute("style",t)}else{this.element.removeAttribute("style")}this.element.removeAttribute("data-choice");this.element.value=this.element.value};t.prototype.enable=function(){this.element.removeAttribute("disabled");this.element.disabled=false;this.isDisabled=false};t.prototype.disable=function(){this.element.setAttribute("disabled","");this.element.disabled=true;this.isDisabled=true};t.prototype.triggerEvent=function(t,i){(0,n.dispatchEvent)(this.element,t,i)};return t}();i["default"]=r},541:function(t,i,e){var n=this&&this.__extends||function(){var t=function(i,e){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]};return t(i,e)};return function(i,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:true});var s=r(e(730));var o=function(t){n(i,t);function i(i){var e=i.element,n=i.classNames,r=i.delimiter;var s=t.call(this,{element:e,classNames:n})||this;s.delimiter=r;return s}Object.defineProperty(i.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.setAttribute("value",t);this.element.value=t},enumerable:false,configurable:true});return i}(s.default);i["default"]=o},982:function(t,i,e){var n=this&&this.__extends||function(){var t=function(i,e){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]};return t(i,e)};return function(i,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:true});var s=r(e(730));var o=function(t){n(i,t);function i(i){var e=i.element,n=i.classNames,r=i.template;var s=t.call(this,{element:e,classNames:n})||this;s.template=r;return s}Object.defineProperty(i.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(t){var i=this;var e=document.createDocumentFragment();var n=function(t){var n=i.template(t);e.appendChild(n)};t.forEach((function(t){return n(t)}));this.appendDocFragment(e)},enumerable:false,configurable:true});i.prototype.appendDocFragment=function(t){this.element.innerHTML="";this.element.appendChild(t)};return i}(s.default);i["default"]=o},883:function(t,i){Object.defineProperty(i,"__esModule",{value:true});i.SCROLLING_SPEED=i.SELECT_MULTIPLE_TYPE=i.SELECT_ONE_TYPE=i.TEXT_TYPE=i.KEY_CODES=i.ACTION_TYPES=i.EVENTS=void 0;i.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"};i.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"};i.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34};i.TEXT_TYPE="text";i.SELECT_ONE_TYPE="select-one";i.SELECT_MULTIPLE_TYPE="select-multiple";i.SCROLLING_SPEED=4},789:function(t,i,e){Object.defineProperty(i,"__esModule",{value:true});i.DEFAULT_CONFIG=i.DEFAULT_CLASSNAMES=void 0;var n=e(799);i.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"};i.DEFAULT_CONFIG={items:[],choices:[],silent:false,renderChoiceLimit:-1,maxItemCount:-1,addItems:true,addItemFilter:null,removeItems:true,removeItemButton:false,editItems:false,allowHTML:true,duplicateItemsAllowed:true,delimiter:",",paste:true,searchEnabled:true,searchChoices:true,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:true,shouldSort:true,shouldSortItems:false,sorter:n.sortByAlpha,placeholder:true,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(t){return'Press Enter to add <b>"'.concat((0,n.sanitise)(t),'"</b>')},maxItemText:function(t){return"Only ".concat(t," values can be added")},valueComparer:function(t,i){return t===i},fuseOptions:{includeScore:true},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:i.DEFAULT_CLASSNAMES}},18:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},978:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},948:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},359:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},285:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},533:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},187:function(t,i,e){var n=this&&this.__createBinding||(Object.create?function(t,i,e,n){if(n===undefined)n=e;Object.defineProperty(t,n,{enumerable:true,get:function(){return i[e]}})}:function(t,i,e,n){if(n===undefined)n=e;t[n]=i[e]});var r=this&&this.__exportStar||function(t,i){for(var e in t)if(e!=="default"&&!Object.prototype.hasOwnProperty.call(i,e))n(i,t,e)};Object.defineProperty(i,"__esModule",{value:true});r(e(18),i);r(e(978),i);r(e(948),i);r(e(359),i);r(e(285),i);r(e(533),i);r(e(287),i);r(e(132),i);r(e(837),i);r(e(598),i);r(e(369),i);r(e(37),i);r(e(47),i);r(e(923),i);r(e(876),i)},287:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},132:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},837:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},598:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},37:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},369:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},47:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},923:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},876:function(t,i){Object.defineProperty(i,"__esModule",{value:true})},799:function(t,i){Object.defineProperty(i,"__esModule",{value:true});i.diff=i.cloneObject=i.existsInArray=i.dispatchEvent=i.sortByScore=i.sortByAlpha=i.strToEl=i.sanitise=i.isScrolledIntoView=i.getAdjacentEl=i.wrap=i.isType=i.getType=i.generateId=i.generateChars=i.getRandomNumber=void 0;var e=function(t,i){return Math.floor(Math.random()*(i-t)+t)};i.getRandomNumber=e;var n=function(t){return Array.from({length:t},(function(){return(0,i.getRandomNumber)(0,36).toString(36)})).join("")};i.generateChars=n;var r=function(t,e){var n=t.id||t.name&&"".concat(t.name,"-").concat((0,i.generateChars)(2))||(0,i.generateChars)(4);n=n.replace(/(:|\.|\[|\]|,)/g,"");n="".concat(e,"-").concat(n);return n};i.generateId=r;var s=function(t){return Object.prototype.toString.call(t).slice(8,-1)};i.getType=s;var o=function(t,e){return e!==undefined&&e!==null&&(0,i.getType)(e)===t};i.isType=o;var a=function(t,i){if(i===void 0){i=document.createElement("div")}if(t.parentNode){if(t.nextSibling){t.parentNode.insertBefore(i,t.nextSibling)}else{t.parentNode.appendChild(i)}}return i.appendChild(t)};i.wrap=a;var c=function(t,i,e){if(e===void 0){e=1}var n="".concat(e>0?"next":"previous","ElementSibling");var r=t[n];while(r){if(r.matches(i)){return r}r=r[n]}return r};i.getAdjacentEl=c;var l=function(t,i,e){if(e===void 0){e=1}if(!t){return false}var n;if(e>0){n=i.scrollTop+i.offsetHeight>=t.offsetTop+t.offsetHeight}else{n=t.offsetTop>=i.scrollTop}return n};i.isScrolledIntoView=l;var u=function(t){if(typeof t!=="string"){return t}return t.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")};i.sanitise=u;i.strToEl=function(){var t=document.createElement("div");return function(i){var e=i.trim();t.innerHTML=e;var n=t.children[0];while(t.firstChild){t.removeChild(t.firstChild)}return n}}();var h=function(t,i){var e=t.value,n=t.label,r=n===void 0?e:n;var s=i.value,o=i.label,a=o===void 0?s:o;return r.localeCompare(a,[],{sensitivity:"base",ignorePunctuation:true,numeric:true})};i.sortByAlpha=h;var d=function(t,i){var e=t.score,n=e===void 0?0:e;var r=i.score,s=r===void 0?0:r;return n-s};i.sortByScore=d;var f=function(t,i,e){if(e===void 0){e=null}var n=new CustomEvent(i,{detail:e,bubbles:true,cancelable:true});return t.dispatchEvent(n)};i.dispatchEvent=f;var p=function(t,i,e){if(e===void 0){e="value"}return t.some((function(t){if(typeof i==="string"){return t[e]===i.trim()}return t[e]===i}))};i.existsInArray=p;var v=function(t){return JSON.parse(JSON.stringify(t))};i.cloneObject=v;var m=function(t,i){var e=Object.keys(t).sort();var n=Object.keys(i).sort();return e.filter((function(t){return n.indexOf(t)<0}))};i.diff=m},273:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||arguments.length===2)for(var n=0,r=i.length,s;n<r;n++){if(s||!(n in i)){if(!s)s=Array.prototype.slice.call(i,0,n);s[n]=i[n]}}return t.concat(s||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:true});i.defaultState=void 0;i.defaultState=[];function n(t,n){if(t===void 0){t=i.defaultState}if(n===void 0){n={}}switch(n.type){case"ADD_CHOICE":{var r=n;var s={id:r.id,elementId:r.elementId,groupId:r.groupId,value:r.value,label:r.label||r.value,disabled:r.disabled||false,selected:false,active:true,score:9999,customProperties:r.customProperties,placeholder:r.placeholder||false};return e(e([],t,true),[s],false)}case"ADD_ITEM":{var o=n;if(o.choiceId>-1){return t.map((function(t){var i=t;if(i.id===parseInt("".concat(o.choiceId),10)){i.selected=true}return i}))}return t}case"REMOVE_ITEM":{var a=n;if(a.choiceId&&a.choiceId>-1){return t.map((function(t){var i=t;if(i.id===parseInt("".concat(a.choiceId),10)){i.selected=false}return i}))}return t}case"FILTER_CHOICES":{var c=n;return t.map((function(t){var i=t;i.active=c.results.some((function(t){var e=t.item,n=t.score;if(e.id===i.id){i.score=n;return true}return false}));return i}))}case"ACTIVATE_CHOICES":{var l=n;return t.map((function(t){var i=t;i.active=l.active;return i}))}case"CLEAR_CHOICES":{return i.defaultState}default:{return t}}}i["default"]=n},871:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||arguments.length===2)for(var n=0,r=i.length,s;n<r;n++){if(s||!(n in i)){if(!s)s=Array.prototype.slice.call(i,0,n);s[n]=i[n]}}return t.concat(s||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:true});i.defaultState=void 0;i.defaultState=[];function n(t,n){if(t===void 0){t=i.defaultState}if(n===void 0){n={}}switch(n.type){case"ADD_GROUP":{var r=n;return e(e([],t,true),[{id:r.id,value:r.value,active:r.active,disabled:r.disabled}],false)}case"CLEAR_CHOICES":{return[]}default:{return t}}}i["default"]=n},655:function(t,i,e){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:true});i.defaultState=void 0;var r=e(857);var s=n(e(52));var o=n(e(871));var a=n(e(273));var c=n(e(502));var l=e(799);i.defaultState={groups:[],items:[],choices:[],loading:false};var u=(0,r.combineReducers)({items:s.default,groups:o.default,choices:a.default,loading:c.default});var h=function(t,e){var n=t;if(e.type==="CLEAR_ALL"){n=i.defaultState}else if(e.type==="RESET_TO"){return(0,l.cloneObject)(e.state)}return u(n,e)};i["default"]=h},52:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||arguments.length===2)for(var n=0,r=i.length,s;n<r;n++){if(s||!(n in i)){if(!s)s=Array.prototype.slice.call(i,0,n);s[n]=i[n]}}return t.concat(s||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:true});i.defaultState=void 0;i.defaultState=[];function n(t,n){if(t===void 0){t=i.defaultState}if(n===void 0){n={}}switch(n.type){case"ADD_ITEM":{var r=n;var s=e(e([],t,true),[{id:r.id,choiceId:r.choiceId,groupId:r.groupId,value:r.value,label:r.label,active:true,highlighted:false,customProperties:r.customProperties,placeholder:r.placeholder||false,keyCode:null}],false);return s.map((function(t){var i=t;i.highlighted=false;return i}))}case"REMOVE_ITEM":{return t.map((function(t){var i=t;if(i.id===n.id){i.active=false}return i}))}case"HIGHLIGHT_ITEM":{var o=n;return t.map((function(t){var i=t;if(i.id===o.id){i.highlighted=o.highlighted}return i}))}default:{return t}}}i["default"]=n},502:function(t,i){Object.defineProperty(i,"__esModule",{value:true});i.defaultState=void 0;i.defaultState=false;var e=function(t,e){if(t===void 0){t=i.defaultState}if(e===void 0){e={}}switch(e.type){case"SET_IS_LOADING":{return e.isLoading}default:{return t}}};i["default"]=e},744:function(t,i,e){var n=this&&this.__spreadArray||function(t,i,e){if(e||arguments.length===2)for(var n=0,r=i.length,s;n<r;n++){if(s||!(n in i)){if(!s)s=Array.prototype.slice.call(i,0,n);s[n]=i[n]}}return t.concat(s||Array.prototype.slice.call(i))};var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:true});var s=e(857);var o=r(e(655));var a=function(){function t(){this._store=(0,s.createStore)(o.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}t.prototype.subscribe=function(t){this._store.subscribe(t)};t.prototype.dispatch=function(t){this._store.dispatch(t)};Object.defineProperty(t.prototype,"state",{get:function(){return this._store.getState()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"activeItems",{get:function(){return this.items.filter((function(t){return t.active===true}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(t){return t.active&&t.highlighted}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"choices",{get:function(){return this.state.choices},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choices.filter((function(t){return t.active===true}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"selectableChoices",{get:function(){return this.choices.filter((function(t){return t.disabled!==true}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter((function(t){return t.placeholder!==true}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"placeholderChoice",{get:function(){return n([],this.choices,true).reverse().find((function(t){return t.placeholder===true}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"groups",{get:function(){return this.state.groups},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"activeGroups",{get:function(){var t=this,i=t.groups,e=t.choices;return i.filter((function(t){var i=t.active===true&&t.disabled===false;var n=e.some((function(t){return t.active===true&&t.disabled===false}));return i&&n}),[])},enumerable:false,configurable:true});t.prototype.isLoading=function(){return this.state.loading};t.prototype.getChoiceById=function(t){return this.activeChoices.find((function(i){return i.id===parseInt(t,10)}))};t.prototype.getGroupById=function(t){return this.groups.find((function(i){return i.id===t}))};return t}();i["default"]=a},686:function(t,i){Object.defineProperty(i,"__esModule",{value:true});var e={containerOuter:function(t,i,e,n,r,s,o){var a=t.classNames.containerOuter;var c=Object.assign(document.createElement("div"),{className:a});c.dataset.type=s;if(i){c.dir=i}if(n){c.tabIndex=0}if(e){c.setAttribute("role",r?"combobox":"listbox");if(r){c.setAttribute("aria-autocomplete","list")}}c.setAttribute("aria-haspopup","true");c.setAttribute("aria-expanded","false");if(o){c.setAttribute("aria-labeledby",o)}return c},containerInner:function(t){var i=t.classNames.containerInner;return Object.assign(document.createElement("div"),{className:i})},itemList:function(t,i){var e=t.classNames,n=e.list,r=e.listSingle,s=e.listItems;return Object.assign(document.createElement("div"),{className:"".concat(n," ").concat(i?r:s)})},placeholder:function(t,i){var e;var n=t.allowHTML,r=t.classNames.placeholder;return Object.assign(document.createElement("div"),(e={className:r},e[n?"innerHTML":"innerText"]=i,e))},item:function(t,i,e){var n,r;var s=t.allowHTML,o=t.classNames,a=o.item,c=o.button,l=o.highlightedState,u=o.itemSelectable,h=o.placeholder;var d=i.id,f=i.value,p=i.label,v=i.customProperties,m=i.active,b=i.disabled,g=i.highlighted,y=i.placeholder;var w=Object.assign(document.createElement("div"),(n={className:a},n[s?"innerHTML":"innerText"]=p,n));Object.assign(w.dataset,{item:"",id:d,value:f,customProperties:v});if(m){w.setAttribute("aria-selected","true")}if(b){w.setAttribute("aria-disabled","true")}if(y){w.classList.add(h)}w.classList.add(g?l:u);if(e){if(b){w.classList.remove(u)}w.dataset.deletable="";var x="Remove item";var M=Object.assign(document.createElement("button"),(r={type:"button",className:c},r[s?"innerHTML":"innerText"]=x,r));M.setAttribute("aria-label","".concat(x,": '").concat(f,"'"));M.dataset.button="";w.appendChild(M)}return w},choiceList:function(t,i){var e=t.classNames.list;var n=Object.assign(document.createElement("div"),{className:e});if(!i){n.setAttribute("aria-multiselectable","true")}n.setAttribute("role","listbox");return n},choiceGroup:function(t,i){var e;var n=t.allowHTML,r=t.classNames,s=r.group,o=r.groupHeading,a=r.itemDisabled;var c=i.id,l=i.value,u=i.disabled;var h=Object.assign(document.createElement("div"),{className:"".concat(s," ").concat(u?a:"")});h.setAttribute("role","group");Object.assign(h.dataset,{group:"",id:c,value:l});if(u){h.setAttribute("aria-disabled","true")}h.appendChild(Object.assign(document.createElement("div"),(e={className:o},e[n?"innerHTML":"innerText"]=l,e)));return h},choice:function(t,i,e){var n;var r=t.allowHTML,s=t.classNames,o=s.item,a=s.itemChoice,c=s.itemSelectable,l=s.selectedState,u=s.itemDisabled,h=s.placeholder;var d=i.id,f=i.value,p=i.label,v=i.groupId,m=i.elementId,b=i.disabled,g=i.selected,y=i.placeholder;var w=Object.assign(document.createElement("div"),(n={id:m},n[r?"innerHTML":"innerText"]=p,n.className="".concat(o," ").concat(a),n));if(g){w.classList.add(l)}if(y){w.classList.add(h)}w.setAttribute("role",v&&v>0?"treeitem":"option");Object.assign(w.dataset,{choice:"",id:d,value:f,selectText:e});if(b){w.classList.add(u);w.dataset.choiceDisabled="";w.setAttribute("aria-disabled","true")}else{w.classList.add(c);w.dataset.choiceSelectable=""}return w},input:function(t,i){var e=t.classNames,n=e.input,r=e.inputCloned;var s=Object.assign(document.createElement("input"),{type:"search",name:"search_terms",className:"".concat(n," ").concat(r),autocomplete:"off",autocapitalize:"off",spellcheck:false});s.setAttribute("role","textbox");s.setAttribute("aria-autocomplete","list");s.setAttribute("aria-label",i);return s},dropdown:function(t){var i=t.classNames,e=i.list,n=i.listDropdown;var r=document.createElement("div");r.classList.add(e,n);r.setAttribute("aria-expanded","false");return r},notice:function(t,i,e){var n;var r=t.allowHTML,s=t.classNames,o=s.item,a=s.itemChoice,c=s.noResults,l=s.noChoices;if(e===void 0){e=""}var u=[o,a];if(e==="no-choices"){u.push(l)}else if(e==="no-results"){u.push(c)}return Object.assign(document.createElement("div"),(n={},n[r?"innerHTML":"innerText"]=i,n.className=u.join(" "),n))},option:function(t){var i=t.label,e=t.value,n=t.customProperties,r=t.active,s=t.disabled;var o=new Option(i,e,false,r);if(n){o.dataset.customProperties="".concat(n)}o.disabled=!!s;return o}};i["default"]=e},996:function(t){var i=function t(i){return e(i)&&!n(i)};function e(t){return!!t&&typeof t==="object"}function n(t){var i=Object.prototype.toString.call(t);return i==="[object RegExp]"||i==="[object Date]"||o(t)}var r=typeof Symbol==="function"&&Symbol.for;var s=r?Symbol.for("react.element"):60103;function o(t){return t.$$typeof===s}function a(t){return Array.isArray(t)?[]:{}}function c(t,i){return i.clone!==false&&i.isMergeableObject(t)?m(a(t),t,i):t}function l(t,i,e){return t.concat(i).map((function(t){return c(t,e)}))}function u(t,i){if(!i.customMerge){return m}var e=i.customMerge(t);return typeof e==="function"?e:m}function h(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(i){return t.propertyIsEnumerable(i)})):[]}function d(t){return Object.keys(t).concat(h(t))}function f(t,i){try{return i in t}catch(t){return false}}function p(t,i){return f(t,i)&&!(Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))}function v(t,i,e){var n={};if(e.isMergeableObject(t)){d(t).forEach((function(i){n[i]=c(t[i],e)}))}d(i).forEach((function(r){if(p(t,r)){return}if(f(t,r)&&e.isMergeableObject(i[r])){n[r]=u(r,e)(t[r],i[r],e)}else{n[r]=c(i[r],e)}}));return n}function m(t,e,n){n=n||{};n.arrayMerge=n.arrayMerge||l;n.isMergeableObject=n.isMergeableObject||i;n.cloneUnlessOtherwiseSpecified=c;var r=Array.isArray(e);var s=Array.isArray(t);var o=r===s;if(!o){return c(e,n)}else if(r){return n.arrayMerge(t,e,n)}else{return v(t,e,n)}}m.all=function t(i,e){if(!Array.isArray(i)){throw new Error("first argument should be an array")}return i.reduce((function(t,i){return m(t,i,e)}),{})};var b=m;t.exports=b},221:function(t,i,e){e.r(i);e.d(i,{default:function(){return yt}});function n(t){return!Array.isArray?p(t)==="[object Array]":Array.isArray(t)}const r=1/0;function s(t){if(typeof t=="string"){return t}let i=t+"";return i=="0"&&1/t==-r?"-0":i}function o(t){return t==null?"":s(t)}function a(t){return typeof t==="string"}function c(t){return typeof t==="number"}function l(t){return t===true||t===false||h(t)&&p(t)=="[object Boolean]"}function u(t){return typeof t==="object"}function h(t){return u(t)&&t!==null}function d(t){return t!==undefined&&t!==null}function f(t){return!t.trim().length}function p(t){return t==null?t===undefined?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const v="Incorrect 'index' type";const m=t=>`Invalid value for key ${t}`;const b=t=>`Pattern length exceeds max of ${t}.`;const g=t=>`Missing ${t} property in key`;const y=t=>`Property 'weight' in key '${t}' must be a positive integer`;const w=Object.prototype.hasOwnProperty;class x{constructor(t){this._keys=[];this._keyMap={};let i=0;t.forEach((t=>{let e=M(t);i+=e.weight;this._keys.push(e);this._keyMap[e.id]=e;i+=e.weight}));this._keys.forEach((t=>{t.weight/=i}))}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function M(t){let i=null;let e=null;let r=null;let s=1;if(a(t)||n(t)){r=t;i=k(t);e=_(t)}else{if(!w.call(t,"name")){throw new Error(g("name"))}const n=t.name;r=n;if(w.call(t,"weight")){s=t.weight;if(s<=0){throw new Error(y(n))}}i=k(n);e=_(n)}return{path:i,id:e,weight:s,src:r}}function k(t){return n(t)?t:t.split(".")}function _(t){return n(t)?t.join("."):t}function I(t,i){let e=[];let r=false;const s=(t,i,u)=>{if(!d(t)){return}if(!i[u]){e.push(t)}else{let h=i[u];const f=t[h];if(!d(f)){return}if(u===i.length-1&&(a(f)||c(f)||l(f))){e.push(o(f))}else if(n(f)){r=true;for(let t=0,e=f.length;t<e;t+=1){s(f[t],i,u+1)}}else if(i.length){s(f,i,u+1)}}};s(t,a(i)?i.split("."):i,0);return r?e:e[0]}const j={includeMatches:false,findAllMatches:false,minMatchCharLength:1};const A={isCaseSensitive:false,includeScore:false,keys:[],shouldSort:true,sortFn:(t,i)=>t.score===i.score?t.idx<i.idx?-1:1:t.score<i.score?-1:1};const z={location:0,threshold:.6,distance:100};const N={useExtendedSearch:false,getFn:I,ignoreLocation:false,ignoreFieldNorm:false,fieldNormWeight:1};var C={...A,...j,...z,...N};const O=/[^ ]+/g;function S(t=1,i=3){const e=new Map;const n=Math.pow(10,i);return{get(i){const r=i.match(O).length;if(e.has(r)){return e.get(r)}const s=1/Math.pow(r,.5*t);const o=parseFloat(Math.round(s*n)/n);e.set(r,o);return o},clear(){e.clear()}}}class T{constructor({getFn:t=C.getFn,fieldNormWeight:i=C.fieldNormWeight}={}){this.norm=S(i,3);this.getFn=t;this.isCreated=false;this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t;this._keysMap={};t.forEach(((t,i)=>{this._keysMap[t.id]=i}))}create(){if(this.isCreated||!this.docs.length){return}this.isCreated=true;if(a(this.docs[0])){this.docs.forEach(((t,i)=>{this._addString(t,i)}))}else{this.docs.forEach(((t,i)=>{this._addObject(t,i)}))}this.norm.clear()}add(t){const i=this.size();if(a(t)){this._addString(t,i)}else{this._addObject(t,i)}}removeAt(t){this.records.splice(t,1);for(let i=t,e=this.size();i<e;i+=1){this.records[i].i-=1}}getValueForItemAtKeyId(t,i){return t[this._keysMap[i]]}size(){return this.records.length}_addString(t,i){if(!d(t)||f(t)){return}let e={v:t,i,n:this.norm.get(t)};this.records.push(e)}_addObject(t,i){let e={i,$:{}};this.keys.forEach(((i,r)=>{let s=this.getFn(t,i.path);if(!d(s)){return}if(n(s)){let t=[];const i=[{nestedArrIndex:-1,value:s}];while(i.length){const{nestedArrIndex:e,value:r}=i.pop();if(!d(r)){continue}if(a(r)&&!f(r)){let i={v:r,i:e,n:this.norm.get(r)};t.push(i)}else if(n(r)){r.forEach(((t,e)=>{i.push({nestedArrIndex:e,value:t})}))}else;}e.$[r]=t}else if(!f(s)){let t={v:s,n:this.norm.get(s)};e.$[r]=t}}));this.records.push(e)}toJSON(){return{keys:this.keys,records:this.records}}}function D(t,i,{getFn:e=C.getFn,fieldNormWeight:n=C.fieldNormWeight}={}){const r=new T({getFn:e,fieldNormWeight:n});r.setKeys(t.map(M));r.setSources(i);r.create();return r}function E(t,{getFn:i=C.getFn,fieldNormWeight:e=C.fieldNormWeight}={}){const{keys:n,records:r}=t;const s=new T({getFn:i,fieldNormWeight:e});s.setKeys(n);s.setIndexRecords(r);return s}function L(t,{errors:i=0,currentLocation:e=0,expectedLocation:n=0,distance:r=C.distance,ignoreLocation:s=C.ignoreLocation}={}){const o=i/t.length;if(s){return o}const a=Math.abs(n-e);if(!r){return a?1:o}return o+a/r}function R(t=[],i=C.minMatchCharLength){let e=[];let n=-1;let r=-1;let s=0;for(let o=t.length;s<o;s+=1){let o=t[s];if(o&&n===-1){n=s}else if(!o&&n!==-1){r=s-1;if(r-n+1>=i){e.push([n,r])}n=-1}}if(t[s-1]&&s-n>=i){e.push([n,s-1])}return e}const $=32;function P(t,i,e,{location:n=C.location,distance:r=C.distance,threshold:s=C.threshold,findAllMatches:o=C.findAllMatches,minMatchCharLength:a=C.minMatchCharLength,includeMatches:c=C.includeMatches,ignoreLocation:l=C.ignoreLocation}={}){if(i.length>$){throw new Error(b($))}const u=i.length;const h=t.length;const d=Math.max(0,Math.min(n,h));let f=s;let p=d;const v=a>1||c;const m=v?Array(h):[];let g;while((g=t.indexOf(i,p))>-1){let t=L(i,{currentLocation:g,expectedLocation:d,distance:r,ignoreLocation:l});f=Math.min(t,f);p=g+u;if(v){let t=0;while(t<u){m[g+t]=1;t+=1}}}p=-1;let y=[];let w=1;let x=u+h;const M=1<<u-1;for(let n=0;n<u;n+=1){let s=0;let a=x;while(s<a){const t=L(i,{errors:n,currentLocation:d+a,expectedLocation:d,distance:r,ignoreLocation:l});if(t<=f){s=a}else{x=a}a=Math.floor((x-s)/2+s)}x=a;let c=Math.max(1,d-a+1);let b=o?h:Math.min(d+a,h)+u;let g=Array(b+2);g[b+1]=(1<<n)-1;for(let s=b;s>=c;s-=1){let o=s-1;let a=e[t.charAt(o)];if(v){m[o]=+!!a}g[s]=(g[s+1]<<1|1)&a;if(n){g[s]|=(y[s+1]|y[s])<<1|1|y[s+1]}if(g[s]&M){w=L(i,{errors:n,currentLocation:o,expectedLocation:d,distance:r,ignoreLocation:l});if(w<=f){f=w;p=o;if(p<=d){break}c=Math.max(1,2*d-p)}}}const k=L(i,{errors:n+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:l});if(k>f){break}y=g}const k={isMatch:p>=0,score:Math.max(.001,w)};if(v){const t=R(m,a);if(!t.length){k.isMatch=false}else if(c){k.indices=t}}return k}function B(t){let i={};for(let e=0,n=t.length;e<n;e+=1){const r=t.charAt(e);i[r]=(i[r]||0)|1<<n-e-1}return i}class F{constructor(t,{location:i=C.location,threshold:e=C.threshold,distance:n=C.distance,includeMatches:r=C.includeMatches,findAllMatches:s=C.findAllMatches,minMatchCharLength:o=C.minMatchCharLength,isCaseSensitive:a=C.isCaseSensitive,ignoreLocation:c=C.ignoreLocation}={}){this.options={location:i,threshold:e,distance:n,includeMatches:r,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:c};this.pattern=a?t:t.toLowerCase();this.chunks=[];if(!this.pattern.length){return}const l=(t,i)=>{this.chunks.push({pattern:t,alphabet:B(t),startIndex:i})};const u=this.pattern.length;if(u>$){let t=0;const i=u%$;const e=u-i;while(t<e){l(this.pattern.substr(t,$),t);t+=$}if(i){const t=u-$;l(this.pattern.substr(t),t)}}else{l(this.pattern,0)}}searchIn(t){const{isCaseSensitive:i,includeMatches:e}=this.options;if(!i){t=t.toLowerCase()}if(this.pattern===t){let i={isMatch:true,score:0};if(e){i.indices=[[0,t.length-1]]}return i}const{location:n,distance:r,threshold:s,findAllMatches:o,minMatchCharLength:a,ignoreLocation:c}=this.options;let l=[];let u=0;let h=false;this.chunks.forEach((({pattern:i,alphabet:d,startIndex:f})=>{const{isMatch:p,score:v,indices:m}=P(t,i,d,{location:n+f,distance:r,threshold:s,findAllMatches:o,minMatchCharLength:a,includeMatches:e,ignoreLocation:c});if(p){h=true}u+=v;if(p&&m){l=[...l,...m]}}));let d={isMatch:h,score:h?u/this.chunks.length:1};if(h&&e){d.indices=l}return d}}class U{constructor(t){this.pattern=t}static isMultiMatch(t){return Y(t,this.multiRegex)}static isSingleMatch(t){return Y(t,this.singleRegex)}search(){}}function Y(t,i){const e=t.match(i);return e?e[1]:null}class H extends U{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const i=t===this.pattern;return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}}class G extends U{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const i=t.indexOf(this.pattern);const e=i===-1;return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class V extends U{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const i=t.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}}class Q extends U{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const i=!t.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}}class W extends U{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const i=t.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class K extends U{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const i=!t.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}}class Z extends U{constructor(t,{location:i=C.location,threshold:e=C.threshold,distance:n=C.distance,includeMatches:r=C.includeMatches,findAllMatches:s=C.findAllMatches,minMatchCharLength:o=C.minMatchCharLength,isCaseSensitive:a=C.isCaseSensitive,ignoreLocation:c=C.ignoreLocation}={}){super(t);this._bitapSearch=new F(t,{location:i,threshold:e,distance:n,includeMatches:r,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class J extends U{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let i=0;let e;const n=[];const r=this.pattern.length;while((e=t.indexOf(this.pattern,i))>-1){i=e+r;n.push([e,i-1])}const s=!!n.length;return{isMatch:s,score:s?0:1,indices:n}}}const q=[H,J,V,Q,K,W,G,Z];const X=q.length;const tt=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;const it="|";function et(t,i={}){return t.split(it).map((t=>{let e=t.trim().split(tt).filter((t=>t&&!!t.trim()));let n=[];for(let t=0,r=e.length;t<r;t+=1){const r=e[t];let s=false;let o=-1;while(!s&&++o<X){const t=q[o];let e=t.isMultiMatch(r);if(e){n.push(new t(e,i));s=true}}if(s){continue}o=-1;while(++o<X){const t=q[o];let e=t.isSingleMatch(r);if(e){n.push(new t(e,i));break}}}return n}))}const nt=new Set([Z.type,J.type]);class rt{constructor(t,{isCaseSensitive:i=C.isCaseSensitive,includeMatches:e=C.includeMatches,minMatchCharLength:n=C.minMatchCharLength,ignoreLocation:r=C.ignoreLocation,findAllMatches:s=C.findAllMatches,location:o=C.location,threshold:a=C.threshold,distance:c=C.distance}={}){this.query=null;this.options={isCaseSensitive:i,includeMatches:e,minMatchCharLength:n,findAllMatches:s,ignoreLocation:r,location:o,threshold:a,distance:c};this.pattern=i?t:t.toLowerCase();this.query=et(this.pattern,this.options)}static condition(t,i){return i.useExtendedSearch}searchIn(t){const i=this.query;if(!i){return{isMatch:false,score:1}}const{includeMatches:e,isCaseSensitive:n}=this.options;t=n?t:t.toLowerCase();let r=0;let s=[];let o=0;for(let n=0,a=i.length;n<a;n+=1){const a=i[n];s.length=0;r=0;for(let i=0,n=a.length;i<n;i+=1){const n=a[i];const{isMatch:c,indices:l,score:u}=n.search(t);if(c){r+=1;o+=u;if(e){const t=n.constructor.type;if(nt.has(t)){s=[...s,...l]}else{s.push(l)}}}else{o=0;r=0;s.length=0;break}}if(r){let t={isMatch:true,score:o/r};if(e){t.indices=s}return t}}return{isMatch:false,score:1}}}const st=[];function ot(...t){st.push(...t)}function at(t,i){for(let e=0,n=st.length;e<n;e+=1){let n=st[e];if(n.condition(t,i)){return new n(t,i)}}return new F(t,i)}const ct={AND:"$and",OR:"$or"};const lt={PATH:"$path",PATTERN:"$val"};const ut=t=>!!(t[ct.AND]||t[ct.OR]);const ht=t=>!!t[lt.PATH];const dt=t=>!n(t)&&u(t)&&!ut(t);const ft=t=>({[ct.AND]:Object.keys(t).map((i=>({[i]:t[i]})))});function pt(t,i,{auto:e=true}={}){const r=t=>{let s=Object.keys(t);const o=ht(t);if(!o&&s.length>1&&!ut(t)){return r(ft(t))}if(dt(t)){const n=o?t[lt.PATH]:s[0];const r=o?t[lt.PATTERN]:t[n];if(!a(r)){throw new Error(m(n))}const c={keyId:_(n),pattern:r};if(e){c.searcher=at(r,i)}return c}let c={children:[],operator:s[0]};s.forEach((i=>{const e=t[i];if(n(e)){e.forEach((t=>{c.children.push(r(t))}))}}));return c};if(!ut(t)){t=ft(t)}return r(t)}function vt(t,{ignoreFieldNorm:i=C.ignoreFieldNorm}){t.forEach((t=>{let e=1;t.matches.forEach((({key:t,norm:n,score:r})=>{const s=t?t.weight:null;e*=Math.pow(r===0&&s?Number.EPSILON:r,(s||1)*(i?1:n))}));t.score=e}))}function mt(t,i){const e=t.matches;i.matches=[];if(!d(e)){return}e.forEach((t=>{if(!d(t.indices)||!t.indices.length){return}const{indices:e,value:n}=t;let r={indices:e,value:n};if(t.key){r.key=t.key.src}if(t.idx>-1){r.refIndex=t.idx}i.matches.push(r)}))}function bt(t,i){i.score=t.score}function gt(t,i,{includeMatches:e=C.includeMatches,includeScore:n=C.includeScore}={}){const r=[];if(e)r.push(mt);if(n)r.push(bt);return t.map((t=>{const{idx:e}=t;const n={item:i[e],refIndex:e};if(r.length){r.forEach((i=>{i(t,n)}))}return n}))}class yt{constructor(t,i={},e){this.options={...C,...i};this._keyStore=new x(this.options.keys);this.setCollection(t,e)}setCollection(t,i){this._docs=t;if(i&&!(i instanceof T)){throw new Error(v)}this._myIndex=i||D(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){if(!d(t)){return}this._docs.push(t);this._myIndex.add(t)}remove(t=(()=>false)){const i=[];for(let e=0,n=this._docs.length;e<n;e+=1){const r=this._docs[e];if(t(r,e)){this.removeAt(e);e-=1;n-=1;i.push(r)}}return i}removeAt(t){this._docs.splice(t,1);this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:i=-1}={}){const{includeMatches:e,includeScore:n,shouldSort:r,sortFn:s,ignoreFieldNorm:o}=this.options;let l=a(t)?a(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);vt(l,{ignoreFieldNorm:o});if(r){l.sort(s)}if(c(i)&&i>-1){l=l.slice(0,i)}return gt(l,this._docs,{includeMatches:e,includeScore:n})}_searchStringList(t){const i=at(t,this.options);const{records:e}=this._myIndex;const n=[];e.forEach((({v:t,i:e,n:r})=>{if(!d(t)){return}const{isMatch:s,score:o,indices:a}=i.searchIn(t);if(s){n.push({item:t,idx:e,matches:[{score:o,value:t,norm:r,indices:a}]})}}));return n}_searchLogical(t){const i=pt(t,this.options);const e=(t,i,n)=>{if(!t.children){const{keyId:e,searcher:r}=t;const s=this._findMatches({key:this._keyStore.get(e),value:this._myIndex.getValueForItemAtKeyId(i,e),searcher:r});if(s&&s.length){return[{idx:n,item:i,matches:s}]}return[]}const r=[];for(let s=0,o=t.children.length;s<o;s+=1){const o=t.children[s];const a=e(o,i,n);if(a.length){r.push(...a)}else if(t.operator===ct.AND){return[]}}return r};const n=this._myIndex.records;const r={};const s=[];n.forEach((({$:t,i:n})=>{if(d(t)){let o=e(i,t,n);if(o.length){if(!r[n]){r[n]={idx:n,item:t,matches:[]};s.push(r[n])}o.forEach((({matches:t})=>{r[n].matches.push(...t)}))}}}));return s}_searchObjectList(t){const i=at(t,this.options);const{keys:e,records:n}=this._myIndex;const r=[];n.forEach((({$:t,i:n})=>{if(!d(t)){return}let s=[];e.forEach(((e,n)=>{s.push(...this._findMatches({key:e,value:t[n],searcher:i}))}));if(s.length){r.push({idx:n,item:t,matches:s})}}));return r}_findMatches({key:t,value:i,searcher:e}){if(!d(i)){return[]}let r=[];if(n(i)){i.forEach((({v:i,i:n,n:s})=>{if(!d(i)){return}const{isMatch:o,score:a,indices:c}=e.searchIn(i);if(o){r.push({score:a,key:t,value:i,idx:n,norm:s,indices:c})}}))}else{const{v:n,n:s}=i;const{isMatch:o,score:a,indices:c}=e.searchIn(n);if(o){r.push({score:a,key:t,value:n,norm:s,indices:c})}}return r}}yt.version="6.5.3";yt.createIndex=D;yt.parseIndex=E;yt.config=C;{yt.parseQuery=pt}{ot(rt)}},857:function(t,i,e){e.r(i);e.d(i,{__DO_NOT_USE__ActionTypes:function(){return l},applyMiddleware:function(){return b},bindActionCreators:function(){return v},combineReducers:function(){return f},compose:function(){return m},createStore:function(){return h}});function n(t,i,e){if(i in t){Object.defineProperty(t,i,{value:e,enumerable:true,configurable:true,writable:true})}else{t[i]=e}return t}function r(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function s(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?r(Object(e),!0).forEach((function(i){n(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):r(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function o(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or "+"use the non-minified dev environment for full errors. "}var a=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();var c=function t(){return Math.random().toString(36).substring(7).split("").join(".")};var l={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function t(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function u(t){if(typeof t!=="object"||t===null)return false;var i=t;while(Object.getPrototypeOf(i)!==null){i=Object.getPrototypeOf(i)}return Object.getPrototypeOf(t)===i}function h(t,i,e){var n;if(typeof i==="function"&&typeof e==="function"||typeof e==="function"&&typeof arguments[3]==="function"){throw new Error(o(0))}if(typeof i==="function"&&typeof e==="undefined"){e=i;i=undefined}if(typeof e!=="undefined"){if(typeof e!=="function"){throw new Error(o(1))}return e(h)(t,i)}if(typeof t!=="function"){throw new Error(o(2))}var r=t;var s=i;var c=[];var d=c;var f=false;function p(){if(d===c){d=c.slice()}}function v(){if(f){throw new Error(o(3))}return s}function m(t){if(typeof t!=="function"){throw new Error(o(4))}if(f){throw new Error(o(5))}var i=true;p();d.push(t);return function e(){if(!i){return}if(f){throw new Error(o(6))}i=false;p();var n=d.indexOf(t);d.splice(n,1);c=null}}function b(t){if(!u(t)){throw new Error(o(7))}if(typeof t.type==="undefined"){throw new Error(o(8))}if(f){throw new Error(o(9))}try{f=true;s=r(s,t)}finally{f=false}var i=c=d;for(var e=0;e<i.length;e++){var n=i[e];n()}return t}function g(t){if(typeof t!=="function"){throw new Error(o(10))}r=t;b({type:l.REPLACE})}function y(){var t;var i=m;return t={subscribe:function t(e){if(typeof e!=="object"||e===null){throw new Error(o(11))}function n(){if(e.next){e.next(v())}}n();var r=i(n);return{unsubscribe:r}}},t[a]=function(){return this},t}b({type:l.INIT});return n={dispatch:b,subscribe:m,getState:v,replaceReducer:g},n[a]=y,n}function d(t){Object.keys(t).forEach((function(i){var e=t[i];var n=e(undefined,{type:l.INIT});if(typeof n==="undefined"){throw new Error(o(12))}if(typeof e(undefined,{type:l.PROBE_UNKNOWN_ACTION()})==="undefined"){throw new Error(o(13))}}))}function f(t){var i=Object.keys(t);var e={};for(var n=0;n<i.length;n++){var r=i[n];if(typeof t[r]==="function"){e[r]=t[r]}}var s=Object.keys(e);var a;try{d(e)}catch(t){a=t}return function t(i,n){if(i===void 0){i={}}if(a){throw a}var r=false;var c={};for(var l=0;l<s.length;l++){var u=s[l];var h=e[u];var d=i[u];var f=h(d,n);if(typeof f==="undefined"){throw new Error(o(14))}c[u]=f;r=r||f!==d}r=r||s.length!==Object.keys(i).length;return r?c:i}}function p(t,i){return function(){return i(t.apply(this,arguments))}}function v(t,i){if(typeof t==="function"){return p(t,i)}if(typeof t!=="object"||t===null){throw new Error(o(16))}var e={};for(var n in t){var r=t[n];if(typeof r==="function"){e[n]=p(r,i)}}return e}function m(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++){i[e]=arguments[e]}if(i.length===0){return function(t){return t}}if(i.length===1){return i[0]}return i.reduce((function(t,i){return function(){return t(i.apply(void 0,arguments))}}))}function b(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++){i[e]=arguments[e]}return function(t){return function(){var e=t.apply(void 0,arguments);var n=function t(){throw new Error(o(15))};var r={getState:e.getState,dispatch:function t(){return n.apply(void 0,arguments)}};var a=i.map((function(t){return t(r)}));n=m.apply(void 0,a)(e.dispatch);return s(s({},e),{},{dispatch:n})}}}}};var i={};function e(n){var r=i[n];if(r!==undefined){return r.exports}var s=i[n]={exports:{}};t[n].call(s.exports,s,s.exports,e);return s.exports}!function(){e.n=function(t){var i=t&&t.__esModule?function(){return t["default"]}:function(){return t};e.d(i,{a:i});return i}}();!function(){e.d=function(t,i){for(var n in i){if(e.o(i,n)&&!e.o(t,n)){Object.defineProperty(t,n,{enumerable:true,get:i[n]})}}}}();!function(){e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)}}();!function(){e.r=function(t){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})}}();var n={};!function(){var t=e(373);var i=e.n(t);e(187);e(883);e(789);e(686);n["default"]=i()}();n=n["default"];return n}()}))}));const dr=l(hr);const fr='*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*::before,*::after{box-sizing:border-box}html,body{position:relative;margin:0;width:100%;height:100%}body{font-family:"Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;font-size:16px;line-height:1.4;color:#fff;background-color:#333;overflow-x:hidden}label{display:block;margin-bottom:8px;font-size:14px;font-weight:500;cursor:pointer}p{margin-top:0;margin-bottom:8px}hr{display:block;margin:30px 0;border:0;border-bottom:1px solid #eaeaea;height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:12px;font-weight:400;line-height:1.2}a,a:visited,a:focus{color:#fff;text-decoration:none;font-weight:600}.form-control{display:block;width:100%;background-color:#f9f9f9;padding:12px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;appearance:none;margin-bottom:24px}h1,.h1{font-size:32px}h2,.h2{font-size:24px}h3,.h3{font-size:20px}h4,.h4{font-size:18px}h5,.h5{font-size:16px}h6,.h6{font-size:14px}label+p{margin-top:-4px}.container{display:block;margin:auto;max-width:40em;padding:48px}@media (max-width: 620px){.container{padding:0}}.section{background-color:#fff;padding:24px;color:#333}.section a,.section a:visited,.section a:focus{color:#00bcd4}.logo{display:block;margin-bottom:12px}.logo-img{width:100%;height:auto;display:inline-block;max-width:100%;vertical-align:top;padding:6px 0}.visible-ie{display:none}.push-bottom{margin-bottom:24px}.zero-bottom{margin-bottom:0}.zero-top{margin-top:0}.text-center{text-align:center}[data-test-hook]{margin-bottom:24px}.hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0}:host{display:flex;flex-direction:column;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);margin-bottom:1rem}:host([hidden]){display:none}label{align-self:flex-start;font-size:inherit;font-weight:inherit;margin:0}label.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-optional{margin-left:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.choices{position:relative;overflow:hidden;font-size:16px}.choices.is-focused,.choices:focus{outline:none;box-shadow:0 1px 4px 0 #101d3033}.choices:last-child{margin-bottom:0}.choices.is-open{overflow:visible}.choices.is-disabled .choices__inner,.choices.is-disabled .choices__input{background-color:#eaeaea;cursor:not-allowed;user-select:none}.choices.is-disabled .choices__item{cursor:not-allowed}.choices [hidden]{display:none !important}.choices[data-type*=select-one]{cursor:pointer}.choices[data-type*=select-one] .choices__list--dropdown .choices__list{padding-top:0.5rem}.choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:12px 16px 12px 40px;border-bottom:1px solid #d7dbe0;margin:0;color:#000;background:#fff url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjUgMC4yNUMzLjk0MzY1IDAuMjUgMC4yNSAzLjk0MzY1IDAuMjUgOC41QzAuMjUgMTMuMDU2MyAzLjk0MzY1IDE2Ljc1IDguNSAxNi43NUMxMC41MjU1IDE2Ljc1IDEyLjM4MDUgMTYuMDIwMSAxMy44MTYzIDE0LjgwODlDMTMuODUyNiAxNC44ODkyIDEzLjkwMzcgMTQuOTY0NCAxMy45Njk3IDE1LjAzMDNMMTYuNDY5NyAxNy41MzAzQzE2Ljc2MjYgMTcuODIzMiAxNy4yMzc0IDE3LjgyMzIgMTcuNTMwMyAxNy41MzAzQzE3LjgyMzIgMTcuMjM3NCAxNy44MjMyIDE2Ljc2MjYgMTcuNTMwMyAxNi40Njk3TDE1LjAzMDMgMTMuOTY5N0MxNC45NjQ0IDEzLjkwMzcgMTQuODg5MiAxMy44NTI2IDE0LjgwODkgMTMuODE2M0MxNi4wMjAxIDEyLjM4MDUgMTYuNzUgMTAuNTI1NSAxNi43NSA4LjVDMTYuNzUgMy45NDM2NSAxMy4wNTYzIDAuMjUgOC41IDAuMjVaTTEuNzUgOC41QzEuNzUgNC43NzIwOCA0Ljc3MjA4IDEuNzUgOC41IDEuNzVDMTIuMjI3OSAxLjc1IDE1LjI1IDQuNzcyMDggMTUuMjUgOC41QzE1LjI1IDEyLjIyNzkgMTIuMjI3OSAxNS4yNSA4LjUgMTUuMjVDNC43NzIwOCAxNS4yNSAxLjc1IDEyLjIyNzkgMS43NSA4LjVaIiBmaWxsPSIjNjk3Njg3Ii8+Cjwvc3ZnPgo=") no-repeat left 12px center}.choices[data-type*=select-one] .choices__input::before{content:"abc"}.choices[data-type*=select-one] .choices__button{background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNDY5NjcgNi40Njk2N0M2Ljc2MjU2IDYuMTc2NzggNy4yMzc0NCA2LjE3Njc4IDcuNTMwMzMgNi40Njk2N0wxMCA4LjkzOTM0TDEyLjQ2OTcgNi40Njk2N0MxMi43NjI2IDYuMTc2NzggMTMuMjM3NCA2LjE3Njc4IDEzLjUzMDMgNi40Njk2N0MxMy44MjMyIDYuNzYyNTYgMTMuODIzMiA3LjIzNzQ0IDEzLjUzMDMgNy41MzAzM0wxMS4wNjA3IDEwTDEzLjUzMDMgMTIuNDY5N0MxMy44MjMyIDEyLjc2MjYgMTMuODIzMiAxMy4yMzc0IDEzLjUzMDMgMTMuNTMwM0MxMy4yMzc0IDEzLjgyMzIgMTIuNzYyNiAxMy44MjMyIDEyLjQ2OTcgMTMuNTMwM0wxMCAxMS4wNjA3TDcuNTMwMzMgMTMuNTMwM0M3LjIzNzQ0IDEzLjgyMzIgNi43NjI1NiAxMy44MjMyIDYuNDY5NjcgMTMuNTMwM0M2LjE3Njc4IDEzLjIzNzQgNi4xNzY3OCAxMi43NjI2IDYuNDY5NjcgMTIuNDY5N0w4LjkzOTM0IDEwTDYuNDY5NjcgNy41MzAzM0M2LjE3Njc4IDcuMjM3NDQgNi4xNzY3OCA2Ljc2MjU2IDYuNDY5NjcgNi40Njk2N1oiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTAgMC4yNUM0LjYxNTIyIDAuMjUgMC4yNSA0LjYxNTIyIDAuMjUgMTBDMC4yNSAxNS4zODQ4IDQuNjE1MjIgMTkuNzUgMTAgMTkuNzVDMTUuMzg0OCAxOS43NSAxOS43NSAxNS4zODQ4IDE5Ljc1IDEwQzE5Ljc1IDQuNjE1MjIgMTUuMzg0OCAwLjI1IDEwIDAuMjVaTTEuNzUgMTBDMS43NSA1LjQ0MzY1IDUuNDQzNjUgMS43NSAxMCAxLjc1QzE0LjU1NjMgMS43NSAxOC4yNSA1LjQ0MzY1IDE4LjI1IDEwQzE4LjI1IDE0LjU1NjMgMTQuNTU2MyAxOC4yNSAxMCAxOC4yNUM1LjQ0MzY1IDE4LjI1IDEuNzUgMTQuNTU2MyAxLjc1IDEwWiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==");padding:0;background-size:20px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:35px;height:20px;width:20px}.choices[data-type*=select-one] .choices__button:focus{box-shadow:0 0 0 2px rgba(105, 118, 135, 0.1)}.choices[data-type*=select-one] .choices__item[data-value=""] .choices__button{display:none}.choices[data-type*=select-one] .choices__item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.choices[data-type*=select-one][dir=rtl]::after{left:11.5px;right:auto}.choices[data-type*=select-one][dir=rtl] .choices__button{right:auto;left:0;margin-left:35px;margin-right:0}.choices[data-type*=select-multiple] .choices__inner,.choices[data-type*=text] .choices__inner{cursor:text;display:flex;flex-flow:row wrap;align-items:center;padding:4px 60px 4px 4px;gap:4px}.choices[data-type*=select-multiple] .choices__item cat-checkbox,.choices[data-type*=text] .choices__item cat-checkbox{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.choices[data-type*=select-multiple] .choices__item cat-checkbox::part(label),.choices[data-type*=text] .choices__item cat-checkbox::part(label){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.choices[data-type*=select-multiple] .choices__input,.choices[data-type*=text] .choices__input{min-width:1ch;width:1ch}.choices[data-type*=select-multiple] .choices__button,.choices[data-type*=text] .choices__button{position:relative;display:inline-block;padding-left:24px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuMjc1MzIgMC4zOTEzNzFDMS4wMzEyNCAwLjE0NzI5NCAwLjYzNTUxIDAuMTQ3Mjk0IDAuMzkxNDMyIDAuMzkxMzcxQzAuMTQ3MzU1IDAuNjM1NDQ5IDAuMTQ3MzU1IDEuMDMxMTggMC4zOTE0MzIgMS4yNzUyNUw0LjExNjE2IDQuOTk5OThMMC4zOTE0MzIgOC43MjQ3QzAuMTQ3MzU1IDguOTY4NzggMC4xNDczNTUgOS4zNjQ1MSAwLjM5MTQzMiA5LjYwODU5QzAuNjM1NTEgOS44NTI2NyAxLjAzMTI0IDkuODUyNjcgMS4yNzUzMiA5LjYwODU5TDUuMDAwMDQgNS44ODM4Nkw4LjcyNDc3IDkuNjA4NTlDOC45Njg4NCA5Ljg1MjY3IDkuMzY0NTcgOS44NTI2NyA5LjYwODY1IDkuNjA4NTlDOS44NTI3MyA5LjM2NDUxIDkuODUyNzMgOC45Njg3OCA5LjYwODY1IDguNzI0N0w1Ljg4MzkyIDQuOTk5OThMOS42MDg2NSAxLjI3NTI1QzkuODUyNzMgMS4wMzExOCA5Ljg1MjczIDAuNjM1NDQ5IDkuNjA4NjUgMC4zOTEzNzFDOS4zNjQ1NyAwLjE0NzI5NCA4Ljk2ODg0IDAuMTQ3Mjk0IDguNzI0NzcgMC4zOTEzNzFMNS4wMDAwNCA0LjExNjFMMS4yNzUzMiAwLjM5MTM3MVoiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=");background-size:10px;width:10px;line-height:1;opacity:0.75;border-radius:0}.choices[data-type*=select-multiple] .choices__button:hover,.choices[data-type*=select-multiple] .choices__button:focus,.choices[data-type*=text] .choices__button:hover,.choices[data-type*=text] .choices__button:focus{opacity:1}.choices[data-type*=select-multiple] cat-button,.choices[data-type*=text] cat-button{position:absolute;top:50%;right:0;margin-top:-20px;margin-right:25px}.choices[data-type*=select-multiple] cat-button::part(button),.choices[data-type*=text] cat-button::part(button){box-shadow:unset;background-color:transparent}.choices[data-type*=select-multiple][dir=rtl] .choices__inner,.choices[data-type*=text][dir=rtl] .choices__inner{padding-right:4px;padding-left:60px}.choices[data-type*=select-multiple][dir=rtl] cat-button,.choices[data-type*=text][dir=rtl] cat-button{right:auto;left:0;margin-left:25px;margin-right:0}.choices[data-type*=select-one]::after,.choices[data-type*=select-multiple]::after{content:"";width:12px;height:6.5px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iNyIgdmlld0JveD0iMCAwIDEyIDciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMC40Njk2NyAwLjQ2OTY3QzAuNzYyNTYzIDAuMTc2Nzc3IDEuMjM3NDQgMC4xNzY3NzcgMS41MzAzMyAwLjQ2OTY3TDYgNC45MzkzNEwxMC40Njk3IDAuNDY5NjcxQzEwLjc2MjYgMC4xNzY3NzggMTEuMjM3NCAwLjE3Njc3OCAxMS41MzAzIDAuNDY5NjcxQzExLjgyMzIgMC43NjI1NjQgMTEuODIzMiAxLjIzNzQ0IDExLjUzMDMgMS41MzAzM0w2LjUzMDMzIDYuNTMwMzNDNi4yMzc0NCA2LjgyMzIyIDUuNzYyNTYgNi44MjMyMiA1LjQ2OTY3IDYuNTMwMzNMMC40Njk2NyAxLjUzMDMzQzAuMTc2Nzc3IDEuMjM3NDQgMC4xNzY3NzcgMC43NjI1NjMgMC40Njk2NyAwLjQ2OTY3WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==");position:absolute;right:11.5px;top:50%;margin-top:-2.5px;pointer-events:none;transition:transform 0.25s linear}.choices[data-type*=select-one][dir=rtl]::after,.choices[data-type*=select-multiple][dir=rtl]::after{left:11.5px;right:auto}.choices[data-type*=select-one].is-open::after,.choices[data-type*=select-multiple].is-open::after{transform:rotate(180deg);transition:transform 0.25s linear}.choices__inner{display:inline-block;vertical-align:top;width:100%;background-color:#fff;border:1px solid #d7dbe0;border-radius:4px;font-size:15px;min-height:40px;overflow:hidden}.is-open .choices__inner{border-radius:4px 4px 0 0}.is-flipped.is-open .choices__inner{border-radius:0 0 4px 4px}.choices__list{margin:0;padding-left:0;list-style:none}.choices__list--single{display:flex;padding:9px 50px 9px 12px;width:100%}[dir=rtl] .choices__list--single{padding-right:12px;padding-left:50px}.choices__list--single .choices__item{width:100%}.choices__list--multiple{display:contents}.choices__list--multiple .choices__item{font-size:0.9375rem;line-height:1.25rem;font-weight:600;display:inline-flex;align-items:center;justify-content:space-between;border-radius:2px;padding:5px 8px 5px 4px;background-color:rgba(105, 118, 135, 0.1);color:#000;word-break:break-all;box-sizing:border-box}.choices__list--multiple .choices__item[data-deletable]{padding-right:5px}[dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.choices__list--multiple .choices__item.is-highlighted{background-color:rgba(94, 105, 121, 0.1)}.is-disabled .choices__list--multiple .choices__item{background-color:#aaaaaa}.choices__list--dropdown,.choices__list[aria-expanded]{visibility:hidden;z-index:1;position:absolute;width:100%;background-color:#fff;border:1px solid #d7dbe0;top:100%;margin-top:-1px;overflow:hidden;word-break:break-all;will-change:visibility;box-shadow:0 2px 4px 0 #101d3033;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.is-active.choices__list--dropdown,.is-active.choices__list[aria-expanded]{visibility:visible}.is-flipped .choices__list--dropdown,.is-flipped .choices__list[aria-expanded]{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:0.25rem 0.25rem 0 0}.choices__list--dropdown .choices__list,.choices__list[aria-expanded] .choices__list{position:relative;max-height:300px;padding:8px 0;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.choices__list--dropdown .choices__item,.choices__list[aria-expanded] .choices__item{font-size:0.9375rem;line-height:1.25rem;font-weight:500;position:relative;padding:10px;min-height:40px}[dir=rtl] .choices__list--dropdown .choices__item,[dir=rtl] .choices__list[aria-expanded] .choices__item{text-align:right}@media (min-width: 640px){.choices__list--dropdown .choices__item--selectable[data-select-text]:not([data-select-text=""]),.choices__list[aria-expanded] .choices__item--selectable[data-select-text]:not([data-select-text=""]){padding-right:100px}[dir=rtl] .choices__list--dropdown .choices__item--selectable[data-select-text]:not([data-select-text=""]),[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable[data-select-text]:not([data-select-text=""]){padding-right:10px}.choices__list--dropdown .choices__item--selectable::after,.choices__list[aria-expanded] .choices__item--selectable::after{content:attr(data-select-text);font-size:12px;opacity:0;position:absolute;right:10px;top:50%;transform:translateY(-50%)}[dir=rtl] .choices__list--dropdown .choices__item--selectable,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable{text-align:right;padding-left:100px}[dir=rtl] .choices__list--dropdown .choices__item--selectable::after,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable::after{right:auto;left:10px}}.choices__list--dropdown .choices__item--selectable.is-highlighted,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted{background-color:rgba(105, 118, 135, 0.05)}.choices__list--dropdown .choices__item--selectable.is-highlighted::after,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:0.5}.choices__item{cursor:default;border-left:3px solid transparent;transition:0.25s linear}.choices__item--selectable{cursor:pointer}.choices__item--selected{border-color:rgb(var(--cat-primary-bg, 32, 127, 138))}.choices__item--disabled{cursor:not-allowed;user-select:none;opacity:0.5}.choices__heading{font-weight:600;font-size:12px;padding:10px;border-bottom:1px solid #f4f5f6;color:gray}.choices__button{text-indent:-9999px;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer}.choices__button:focus{outline:none}.choices__input{display:inline-block;vertical-align:baseline;background-color:white;font-size:15px;font-family:var(--cat-font-family-body, "Lato"), system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";border:0;border-radius:0;max-width:100%;padding:7px 0 4px 2px}.choices__input:focus{outline:0}.choices__input::-webkit-search-decoration,.choices__input::-webkit-search-cancel-button,.choices__input::-webkit-search-results-button,.choices__input::-webkit-search-results-decoration{display:none}.choices__input::-ms-clear,.choices__input::-ms-reveal{display:none;width:0;height:0}[dir=rtl] .choices__input{padding-right:2px;padding-left:0}.choices__placeholder{opacity:0.5}.choices__group{padding:8px 16px;height:34px}.choices__group .choices__heading{font-style:normal;font-weight:700;font-size:14px;line-height:18px;padding:unset;border-bottom:0;color:#697687}.choices__group:not(:first-child){border-top:1px solid #f4f5f6;margin-top:8px}.d-flex{display:flex}.align-items-center{align-items:center}.choices-option-icon{width:20px;aspect-ratio:1;border-radius:0.125rem}';let pr=0;const vr=t=>{var i;if((i=t.customProperties)===null||i===void 0?void 0:i.imageUrl){return`\n <div class="d-flex align-items-center">\n <img class="choices-option-icon" src="${t.customProperties.imageUrl}" style="margin-right: 0.5rem" />\n ${t.label}\n </div>\n `}return`<cat-checkbox label="${t.label}" checked="${t.selected}"></cat-checkbox>`};const mr=class{constructor(i){t(this,i);this.catChange=n(this,"catChange",7);this.catSearch=n(this,"catSearch",7);this.catScrolledBottom=n(this,"catScrolledBottom",7);this.catBlur=n(this,"catBlur",7);this.i18n=a.getInstance();this.id=`cat-select-${pr++}`;this.resetItemsOnNextValueChange=true;this.hasSlottedLabel=false;this.label="";this.labelHidden=false;this.required=false;this.items=[];this.disabled=false;this.multiple=false;this.placeholder="";this.position="auto";this.search=false}setChoicesHandler(t){var i,e,n,r;const s=t=>{var i;return(i=this.value)===null||i===void 0?void 0:i.includes(t.value)};const o=t.map((t=>Object.assign(Object.assign({},t),{selected:s(t)})));(i=this.choice)===null||i===void 0?void 0:i.setChoices(o,"value","label",true);const a=((e=this.choice)===null||e===void 0?void 0:e.getValue())||[];const c=Array.isArray(a)?a:[a];const l=this.value||[];const u=[...l];(n=this.choice)===null||n===void 0?void 0:n.unhighlightAll();c.forEach((t=>{var i;const e=u.indexOf(t.value);if(e>-1){u.splice(e,1)}else{t.choiceId=-1;(i=this.choice)===null||i===void 0?void 0:i.highlightItem(t,false)}}));(r=this.choice)===null||r===void 0?void 0:r.removeHighlightedItems(false)}setValueHandler(t){var i,e;if(this.resetItemsOnNextValueChange){(i=this.choice)===null||i===void 0?void 0:i.removeActiveItems(-1)}this.resetItemsOnNextValueChange=true;(e=this.choice)===null||e===void 0?void 0:e.setChoiceByValue(t);this.multiple&&this.updateRemoveItemButtonVisibility()}componentWillRender(){this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');if(!this.label&&!this.hasSlottedLabel){s.error("[A11y] Missing ARIA label on select",this)}}componentDidLoad(){var t,i,e,n,r,s,o,a,c,l,u,h;this.init();const d=(i=(t=this.hostElement).attachInternals)===null||i===void 0?void 0:i.call(t);if(d){const t=d.shadowRoot;this.choicesElement=(t===null||t===void 0?void 0:t.querySelector(".choices"))||undefined;this.choiceInner=(t===null||t===void 0?void 0:t.querySelector(".choices__inner"))||undefined;this.choiceDropdown=((e=t===null||t===void 0?void 0:t.querySelector(".choices__list--dropdown"))===null||e===void 0?void 0:e.firstElementChild)||undefined}(n=this.choicesElement)===null||n===void 0?void 0:n.addEventListener("click",this.resetFocus.bind(this));(r=this.choiceInner)===null||r===void 0?void 0:r.addEventListener("click",this.showDropdownHandler.bind(this));(s=this.selectElement)===null||s===void 0?void 0:s.addEventListener("hideDropdown",this.showMultipleFocus.bind(this));(o=this.selectElement)===null||o===void 0?void 0:o.addEventListener("showDropdown",this.showMultipleFocus.bind(this));(a=this.selectElement)===null||a===void 0?void 0:a.addEventListener("removeItem",this.resetFocus.bind(this));(c=this.selectElement)===null||c===void 0?void 0:c.addEventListener("change",this.onChange.bind(this));(l=this.selectElement)===null||l===void 0?void 0:l.addEventListener("search",this.onSearch.bind(this));(u=this.choiceDropdown)===null||u===void 0?void 0:u.addEventListener("scroll",this.onScrolledBottom.bind(this));if(this.multiple){(h=this.selectElement)===null||h===void 0?void 0:h.addEventListener("choice",this.onChoice.bind(this));this.createRemoveItemButton()}}disconnectedCallback(){var t,i,e,n,r,s,o,a,c,l;(t=this.choice)===null||t===void 0?void 0:t.destroy();this.choice=undefined;(i=this.choicesElement)===null||i===void 0?void 0:i.removeEventListener("click",this.resetFocus.bind(this));(e=this.choiceInner)===null||e===void 0?void 0:e.removeEventListener("click",this.showDropdownHandler.bind(this));(n=this.selectElement)===null||n===void 0?void 0:n.removeEventListener("hideDropdown",this.showMultipleFocus.bind(this));(r=this.selectElement)===null||r===void 0?void 0:r.removeEventListener("showDropdown",this.showMultipleFocus.bind(this));(s=this.selectElement)===null||s===void 0?void 0:s.removeEventListener("removeItem",this.resetFocus.bind(this));(o=this.selectElement)===null||o===void 0?void 0:o.removeEventListener("change",this.onChange.bind(this));(a=this.selectElement)===null||a===void 0?void 0:a.removeEventListener("search",this.onSearch.bind(this));(c=this.choiceDropdown)===null||c===void 0?void 0:c.removeEventListener("scroll",this.onScrolledBottom.bind(this));if(this.multiple){(l=this.removeElement)===null||l===void 0?void 0:l.removeEventListener("choice",this.onChoice.bind(this))}}onBlur(t){this.catBlur.emit(t)}render(){return i(e,null,(this.hasSlottedLabel||this.label)&&i("label",{htmlFor:this.id,class:{hidden:this.labelHidden}},i("span",{part:"label"},this.hasSlottedLabel&&i("slot",{name:"label"})||this.label,!this.required&&i("span",{class:"input-optional","aria-hidden":"true"},"(",this.i18n.t("input.optional"),")"))),i("select",{id:this.id,ref:t=>this.selectElement=t,multiple:this.multiple,disabled:this.disabled}),this.hintSection)}init(){const t=this;const i=t=>this.i18n.t("select.removeItem",{value:t});const e={allowHTML:true,removeItemButton:true,duplicateItemsAllowed:false,delimiter:"",paste:false,searchEnabled:this.search,searchChoices:false,position:this.position,resetScrollPosition:false,placeholder:!!this.placeholder,placeholderValue:this.placeholder||"",searchPlaceholderValue:this.i18n.t("select.searchPlaceholder"),renderSelectedChoices:"always",loadingText:this.i18n.t("select.loading"),noResultsText:this.i18n.t("select.noResults"),noChoicesText:this.i18n.t("select.noChoices"),itemSelectText:this.i18n.t("select.selectItem"),addItemText:t=>this.i18n.t("select.addItem",{value:t}),maxItemText:t=>this.i18n.t("select.maxItem",{maxItemCount:t}),uniqueItemText:this.i18n.t("select.uniqueItem"),customAddItemText:this.i18n.t("select.customAddItem"),callbackOnInit:function(){const i=this;i.setChoices(t.items,"value","label",true);i.setChoiceByValue(t.value)}};const n={callbackOnCreateTemplates:t=>({item:({classNames:e},n)=>{var r;const s=((r=n.customProperties)===null||r===void 0?void 0:r.imageUrl)?`<img class="choices-option-icon" src="${n.customProperties.imageUrl}" style="margin-right: 0.5rem" />`:"";return t(`\n <div class="${e.item} ${n.highlighted?e.highlightedState:e.itemSelectable} ${n.placeholder?e.placeholder:""}" data-item data-id="${n.id}" data-value="${n.value}" ${n.active?'aria-selected="true"':""} ${n.disabled?'aria-disabled="true"':""}>\n <span>${s}</span> ${n.label}\n <button type="button"\n class="${e.button}"\n aria-label="${i(n.label)}"\n data-button>${i(n.label)}</button>\n </div>\n `)}})};const r={callbackOnCreateTemplates:t=>{const n=e.itemSelectText;return{item:({classNames:e},n)=>{var r;const s=((r=n.customProperties)===null||r===void 0?void 0:r.imageUrl)?`<img class="choices-option-icon" src="${n.customProperties.imageUrl}" style="margin-right: 0.5rem;" />`:"";return t(`<div class="\n ${e.item}\n ${n.highlighted?e.highlightedState:e.itemSelectable}\n ${n.placeholder?e.placeholder:""}"\n data-item data-id="${n.id}" data-value="${n.value}"\n ${n.active?'aria-selected="true"':""}\n ${n.disabled?'aria-disabled="true"':""}>\n ${s}\n ${n.label}\n <button type="button"\n class="${e.button}"\n aria-label="${i(n.label)}"\n data-button>${i(n.label)}</button>\n </div>`)},choice:function({classNames:i},e){const r=vr(e);const s=`${String(i.item)} ${String(i.itemChoice)}\n ${String(e.disabled?i.itemDisabled:i.itemSelectable)}\n ${e.selected?"choices__item--selected":""}`;return t(`<div class="${s}"\n data-select-text="${n}"\n data-choice data-id="${String(e.id)}" data-value="${String(e.value)}"\n ${e.disabled?'data-choice-disabled aria-disabled="true"':"data-choice-selectable"}\n ${e.groupId&&e.groupId>0?'role="treeitem"':'role="option"'}>\n ${r}\n </div>`)}}}};const s=this.multiple?Object.assign(Object.assign({},e),r):Object.assign(Object.assign({},e),n);this.choice=new dr(this.selectElement,s)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&i(O,{hint:this.hint,slottedHint:t&&i("slot",{name:"hint"})})}onChange(){var t;this.resetItemsOnNextValueChange=false;this.value=(t=this.choice)===null||t===void 0?void 0:t.getValue(true);this.catChange.emit(this.value)}showMultipleFocus(){var t,i;if(this.multiple&&this.isFocused()&&!((t=this.choicesElement)===null||t===void 0?void 0:t.classList.contains("is-focused"))){(i=this.choicesElement)===null||i===void 0?void 0:i.classList.add("is-focused")}}resetFocus(){var t,i,e;if(!this.isFocused()){if(!((t=this.choicesElement)===null||t===void 0?void 0:t.hasAttribute("tabindex"))){(i=this.choicesElement)===null||i===void 0?void 0:i.setAttribute("tabindex","0")}(e=this.choicesElement)===null||e===void 0?void 0:e.focus()}}isFocused(){return document.activeElement===this.hostElement}onChoice(t){var i;const e=t;const n=e.detail.choice;if(n.selected){(i=this.choice)===null||i===void 0?void 0:i.removeActiveItemsByValue(n.value);this.onChange()}}onSearch(t){const i=t;this.catSearch.emit(i.detail.value)}onScrolledBottom(){var t,i,e;const n=((t=this.choiceDropdown)===null||t===void 0?void 0:t.scrollHeight)===(((i=this.choiceDropdown)===null||i===void 0?void 0:i.scrollTop)||0)+(((e=this.choiceDropdown)===null||e===void 0?void 0:e.clientHeight)||0);if(n){this.catScrolledBottom.emit()}}showDropdownHandler(){var t;!this.disabled&&((t=this.choice)===null||t===void 0?void 0:t.showDropdown())}createRemoveItemButton(){var t;this.removeElement=document.createElement("cat-button");this.removeElement.icon="cross-circle-outlined";this.removeElement.iconOnly=true;this.removeElement.a11yLabel=this.i18n.t("select.removeItem");this.updateRemoveItemButtonVisibility();this.removeElement.addEventListener("click",this.onRemoveItemButtonClick.bind(this));(t=this.choiceInner)===null||t===void 0?void 0:t.appendChild(this.removeElement)}updateRemoveItemButtonVisibility(){var t,i,e;if((t=this.value)===null||t===void 0?void 0:t.length){(i=this.removeElement)===null||i===void 0?void 0:i.removeAttribute("hidden")}else{(e=this.removeElement)===null||e===void 0?void 0:e.setAttribute("hidden","true")}}onRemoveItemButtonClick(t){var i;t.stopPropagation();(i=this.choice)===null||i===void 0?void 0:i.removeActiveItems(-1);this.onChange()}get hostElement(){return r(this)}static get watchers(){return{items:["setChoicesHandler"],value:["setValueHandler"]}}};mr.style=fr;var br="__autosizeInputGhost";var gr={" ":"nbsp","<":"lt",">":"gt"};function yr(t){return"&"+gr[t]+";"}function wr(t){return t.replace(/\s|<|>/g,yr)}function xr(){var t=document.createElement("div");t.id=br;t.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;";document.body.appendChild(t);return t}var Mr=function(t,i){var e=window.getComputedStyle(t);var n="box-sizing:"+e.boxSizing+";border-left:"+e.borderLeftWidth+" solid red"+";border-right:"+e.borderRightWidth+" solid red"+";font-family:"+e.fontFamily+";font-feature-settings:"+e.fontFeatureSettings+";font-kerning:"+e.fontKerning+";font-size:"+e.fontSize+";font-stretch:"+e.fontStretch+";font-style:"+e.fontStyle+";font-variant:"+e.fontVariant+";font-variant-caps:"+e.fontVariantCaps+";font-variant-ligatures:"+e.fontVariantLigatures+";font-variant-numeric:"+e.fontVariantNumeric+";font-weight:"+e.fontWeight+";letter-spacing:"+e.letterSpacing+";margin-left:"+e.marginLeft+";margin-right:"+e.marginRight+";padding-left:"+e.paddingLeft+";padding-right:"+e.paddingRight+";text-indent:"+e.textIndent+";text-transform:"+e.textTransform;function r(){var i=t.value||t.getAttribute("placeholder")||"";var e=document.getElementById(br)||xr();e.style.cssText+=n;e.innerHTML=wr(i);var r=window.getComputedStyle(e).width;t.style.width=r;return r}t.addEventListener("input",r);var s=r();if(i&&i.minWidth&&s!=="0px"){t.style.minWidth=s}return function(){t.removeEventListener("input",r);var i=document.getElementById(br);if(i){i.parentNode.removeChild(i)}}};const kr=".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0}:host{display:flex;flex-direction:column;gap:0.5rem;position:relative;margin-bottom:1rem}:host([hidden]){display:none}label{align-self:flex-start}label.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-optional{margin-left:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.select-wrapper{display:flex;align-items:flex-start;background:white;border-radius:0.25rem;box-shadow:0 0 0 1px #d7dbe0;transition:box-shadow 0.13s linear;padding:4px}.select-wrapper:not(.select-disabled):hover{box-shadow:0 0 0 2px #d7dbe0}.select-wrapper:not(.select-disabled):focus-within{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255))}.select-disabled{background:#f8f8fb;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.select-wrapper-inner{display:flex;flex:1 1 auto;flex-wrap:wrap;align-items:center;gap:4px;min-width:0}.select-input{font:inherit;background:none;border:none;outline:none;padding:6px 8px;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.select-disabled .select-input{cursor:inherit}.select-pills{display:contents}.pill{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;background:#ebecf0;border-radius:0.125rem;white-space:nowrap;min-width:0}.pill>span{overflow:hidden;text-overflow:ellipsis}.pill>cat-button{margin-right:-4px}.select-btn{transition:transform 0.13s linear}.select-btn::part(button){outline:none}cat-spinner{padding:6px}.select-btn-open{transform:rotate(180deg)}.select-dropdown{position:absolute;right:0;background:white;display:none;overflow:auto;box-shadow:0 1px 4px 0 rgba(16, 29, 48, 0.2);border-radius:0.25rem;z-index:100}.select-options-wrapper{max-height:16rem;width:100%}.select-empty{margin:1rem 0;padding:0 1.25rem}.select-options{list-style-type:none;margin:0;padding:0.5rem 0}.select-options cat-checkbox,.select-options .select-option-single{margin:0;padding:0.5rem 1rem}.select-option-single{cursor:pointer}.select-input-transparent-caret{caret-color:transparent}.select-option-empty,.select-option-loading{padding:0.5rem 1rem}.select-option:hover{background-color:rgba(105, 118, 135, 0.05)}.select-option-active{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:-2px}.select-option-label{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}.select-option-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}";const _r={term:"",isOpen:false,isLoading:false,isResolving:false,options:[],selection:[],activeOptionIndex:-1,activeSelectionIndex:-1};let Ir=0;const jr=class{constructor(i){t(this,i);this.catOpen=n(this,"catOpen",7);this.catClose=n(this,"catClose",7);this.catChange=n(this,"catChange",7);this.catBlur=n(this,"catBlur",7);this.i18n=a.getInstance();this.id=`cat-input-${Ir++}`;this.term$=new _e;this.more$=new _e;this.state=_r;this.hasSlottedLabel=false;this.multiple=false;this.debounce=250;this.placement="bottom-start";this.disabled=false;this.label="";this.name="";this.labelHidden=false;this.required=false;this.clearable=false}onConnectorChange(t){this.reset(t);this.resolve()}onStateChange(t,i){var e;const n=e=>t[e]!==i[e];if(n("activeOptionIndex")){if(this.state.activeOptionIndex>=0){const t=(e=this.dropdown)===null||e===void 0?void 0:e.querySelector(`#select-${this.id}-option-${this.state.activeOptionIndex}`);t===null||t===void 0?void 0:t.scrollIntoView({block:"nearest"})}}if(n("selection")){if(!this.multiple&&this.state.selection.length){this.hide()}const t=this.state.selection.map((t=>t.item.id));if(this.multiple){this.value=t}else{this.value=t.length?t[0]:""}this.catChange.emit()}}componentDidLoad(){if(this.input){Mr(this.input)}if(this.trigger&&this.dropdown){Ut(this.trigger,this.dropdown,(()=>this.update()))}}componentWillRender(){this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');if(!this.label&&!this.hasSlottedLabel){s.error("[A11y] Missing ARIA label on select",this)}}onBlur(t){if(!this.multiple&&this.state.activeOptionIndex>=0){this.select(this.state.options[this.state.activeOptionIndex])}this.hide();this.patchState({activeSelectionIndex:-1});this.catBlur.emit(t)}onKeyDown(t){var i,e,n,r,s;const o=((i=this.hostElement.shadowRoot)===null||i===void 0?void 0:i.activeElement)===this.input;if(["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(t.key)){this.onArrowKeyDown(t)}else if(["Enter"," "].includes(t.key)){if(o&&this.state.activeOptionIndex>=0){t.preventDefault();if(this.multiple){this.toggle(this.state.options[this.state.activeOptionIndex])}else{this.select(this.state.options[this.state.activeOptionIndex])}}}else if(t.key==="Escape"){this.hide()}else if(t.key==="Backspace"||t.key==="Delete"){(e=this.input)===null||e===void 0?void 0:e.focus();if(!this.multiple||!this.state.term||((n=this.input)===null||n===void 0?void 0:n.selectionStart)===0&&t.key==="Backspace"){if(this.state.activeSelectionIndex>=0){this.deselect(this.state.selection[this.state.activeSelectionIndex].item.id)}else if(this.state.selection.length){const t=[...this.state.selection];t.pop();this.patchState({selection:t})}}}else if(t.key==="Tab"){(r=this.trigger)===null||r===void 0?void 0:r.setAttribute("tabindex","-1");if(this.multiple){this.patchState({activeSelectionIndex:-1,activeOptionIndex:-1})}else if(this.state.activeOptionIndex>=0){this.select(this.state.options[this.state.activeOptionIndex])}}else if(t.key.length===1){(s=this.input)===null||s===void 0?void 0:s.focus()}}onKeyUp(t){var i,e,n,r,s;if(t.key==="Tab"&&!t.shiftKey){((i=this.hostElement.shadowRoot)===null||i===void 0?void 0:i.activeElement)===this.trigger&&((e=this.input)===null||e===void 0?void 0:e.focus());if(((n=this.hostElement.shadowRoot)===null||n===void 0?void 0:n.activeElement)===this.input){this.show()}}else if(t.key==="Tab"&&t.shiftKey){const t=(r=this.trigger)===null||r===void 0?void 0:r.querySelector(`#select-clear-btn-${this.id}`);if(t){((s=this.hostElement.shadowRoot)===null||s===void 0?void 0:s.activeElement)===t&&this.show()}else{this.show()}}}async connect(t){var i;this.connector=t;let e;(i=this.subscription)===null||i===void 0?void 0:i.unsubscribe();this.subscription=this.term$.asObservable().pipe(Gn((t=>t?Bn(this.debounce):wn(0))),qn(),cr((()=>e=this.more$.pipe(Un((()=>!this.state.isLoading)),nr((t=>t+1),0),rr(0)))),cr((()=>this.patchState({options:[]}))),sr((t=>e.pipe(cr((()=>this.patchState({isLoading:true}))),sr((i=>this.connectorSafe.retrieve(t,i))),cr((t=>this.patchState({isLoading:false,totalElements:t.totalElements}))),ar((t=>!t.last),true),nr(((t,i)=>[...t,...i.content]),[]))))).subscribe((t=>this.patchState({options:t===null||t===void 0?void 0:t.map((t=>({item:t,render:this.connectorSafe.render(t)})))})))}render(){return i(e,null,(this.hasSlottedLabel||this.label)&&i("label",{htmlFor:this.id,class:{hidden:this.labelHidden}},i("span",{part:"label"},this.hasSlottedLabel&&i("slot",{name:"label"})||this.label,!this.required&&i("span",{class:"input-optional","aria-hidden":"true"},"(",this.i18n.t("input.optional"),")"))),i("div",{class:{"select-wrapper":true,"select-disabled":this.disabled},ref:t=>this.trigger=t,id:this.id,role:"combobox","aria-expanded":this.state.isOpen||this.isPillboxActive(),"aria-controls":this.isPillboxActive()?`select-pillbox-${this.id}`:`select-listbox-${this.id}`,"aria-required":this.required,"aria-activedescendant":this.activeDescendant,onClick:t=>this.onClick(t)},i("div",{class:"select-wrapper-inner"},this.multiple&&this.state.selection.length?i("div",{id:`select-pillbox-${this.id}`,role:"listbox","aria-orientation":"horizontal",class:"select-pills"},this.state.selection.map(((t,e)=>i("span",{class:{pill:true,"select-no-open":true,"select-option-active":this.state.activeSelectionIndex===e},role:"option","aria-selected":"true",id:`select-${this.id}-selection-${e}`},i("span",null,t.render.label),!this.disabled&&i("cat-button",{size:"xs",variant:"text",icon:"16-cross",iconOnly:true,a11yLabel:this.i18n.t("select.deselect"),onClick:()=>this.deselect(t.item.id),tabIndex:-1}))))):null,i("input",{class:"select-input",ref:t=>this.input=t,"aria-controls":this.isPillboxActive()?`select-pillbox-${this.id}`:`select-listbox-${this.id}`,"aria-activedescendant":this.activeDescendant,onInput:()=>this.onInput(),value:!this.multiple?this.state.term:undefined,placeholder:this.placeholder,disabled:this.disabled||this.state.isResolving})),this.state.isResolving&&i("cat-spinner",null),(this.state.selection.length||this.state.term.length)&&!this.disabled&&!this.state.isResolving&&this.clearable?i("cat-button",{id:`select-clear-btn-${this.id}`,iconOnly:true,icon:"cross-circle-outlined",variant:"text",size:"s",a11yLabel:this.i18n.t("select.clear"),onClick:()=>this.clear()}):null,!this.state.isResolving&&i("cat-button",{iconOnly:true,icon:"chevron-down-outlined",class:{"select-btn":true,"select-btn-open":this.state.isOpen},variant:"text",size:"s",a11yLabel:this.state.isOpen?this.i18n.t("select.close"):this.i18n.t("select.open"),"aria-controls":`select-listbox-${this.id}`,"aria-expanded":this.state.isOpen,tabIndex:-1,disabled:this.disabled||this.state.isResolving})),this.hintSection,i("div",{class:"select-dropdown",ref:t=>this.dropdown=t,style:{display:this.state.isOpen?"block":undefined}},this.state.isOpen&&i("cat-scrollable",{class:"select-options-wrapper",scrolledBuffer:56,noOverflowX:true,noOverscroll:true,noScrolledInit:true,onScrolledBottom:()=>this.more$.next()},i("ul",{class:"select-options",role:"listbox","aria-multiselectable":this.multiple,"aria-setsize":this.state.totalElements,id:`select-listbox-${this.id}`},this.state.options.map(((t,e)=>i("li",{role:"option",class:"select-option",id:`select-${this.id}-option-${e}`,"aria-selected":this.isSelected(t.item.id)?"true":"false"},this.multiple?i("cat-checkbox",{class:{"select-option-active":this.state.activeOptionIndex===e},checked:this.isSelected(t.item.id),tabIndex:-1,labelLeft:true,onFocus:()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()},onCatChange:i=>{this.toggle(t);i.stopPropagation()}},i("span",{slot:"label",class:"select-option"},i("span",{class:"select-option-label"},t.render.label),i("span",{class:"select-option-description"},t.render.description))):i("div",{class:{"select-option-single":true,"select-option-active":this.state.activeOptionIndex===e},onFocus:()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()},onClick:()=>this.select(t),tabIndex:-1},i("span",{class:"select-option-label"},t.render.label),i("span",{class:"select-option-description"},t.render.description))))),this.state.isLoading?Array.from(Array(jr.SKELETON_COUNT)).map((()=>i("li",{class:"select-option-loading"},i("cat-skeleton",{variant:"body",lines:1}),i("cat-skeleton",{variant:"body",lines:1})))):!this.state.options.length&&i("li",{class:"select-option-empty"},this.i18n.t("select.empty"))))))}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&i(O,{hint:this.hint,slottedHint:t&&i("slot",{name:"hint"})})}get connectorSafe(){if(this.connector){return this.connector}throw new Error("CatSelectRemoteConnector not set")}resolve(){var t;this.patchState({isResolving:true});let i;if(this.multiple){i=this.value}else{i=[this.value]}const e=((t=this.value)===null||t===void 0?void 0:t.length)?this.connectorSafe.resolve(i).pipe(er()):wn([]);e.pipe(Yn((()=>wn([])))).subscribe((t=>this.patchState({isResolving:false,selection:t===null||t===void 0?void 0:t.map((t=>({item:t,render:this.connectorSafe.render(t)}))),term:!this.multiple&&t.length?this.connectorSafe.render(t[0]).label:""})))}show(){var t;if(!this.state.isOpen){this.patchState({isOpen:true});this.catOpen.emit();this.term$.next(this.state.term);(t=this.input)===null||t===void 0?void 0:t.classList.remove("select-input-transparent-caret")}}hide(){if(this.state.isOpen){this.patchState({isOpen:false,activeOptionIndex:-1});this.catClose.emit()}}search(t){this.patchState({term:t,activeOptionIndex:-1,activeSelectionIndex:-1});this.term$.next(t)}isSelected(t){return this.state.selection.findIndex((i=>i.item.id===t))>=0}select(t){var i;if(!this.isSelected(t.item.id)){let i;if(this.multiple){i=[...this.state.selection,t]}else{i=[t];this.search(t.render.label)}this.patchState({selection:i})}if(!this.multiple){this.hide();(i=this.input)===null||i===void 0?void 0:i.classList.add("select-input-transparent-caret")}}deselect(t){if(this.isSelected(t)){this.patchState({selection:this.state.selection.filter((i=>i.item.id!==t)),activeSelectionIndex:-1})}}toggle(t){this.isSelected(t.item.id)?this.deselect(t.item.id):this.select(t)}clear(){if(this.input&&this.state.term){this.patchState({selection:[],options:[],term:"",activeOptionIndex:-1});this.term$.next("");this.input.value=""}else{this.patchState({selection:[]})}}reset(t){var i;this.connector=t!==null&&t!==void 0?t:this.connector;(i=this.subscription)===null||i===void 0?void 0:i.unsubscribe();this.subscription=undefined;this.state=_r}onClick(t){var i,e;const n=t.target;(i=this.trigger)===null||i===void 0?void 0:i.setAttribute("tabindex","0");(e=this.input)===null||e===void 0?void 0:e.focus();if(n===this.trigger||n===this.input||n.classList.contains("select-btn")||n.nodeName==="SPAN"){this.state.isOpen?this.hide():this.show()}}onInput(){var t;this.search(((t=this.input)===null||t===void 0?void 0:t.value)||"");this.show()}update(){if(this.trigger&&this.dropdown){Yt(this.trigger,this.dropdown,{placement:this.placement,middleware:[rt(jr.DROPDOWN_OFFSET)]}).then((({x:t,y:i})=>{if(this.dropdown){Object.assign(this.dropdown.style,{left:`${t}px`,top:`${i}px`})}}))}}patchState(t){this.state=Object.assign(Object.assign({},this.state),t)}isPillboxActive(){return this.state.activeSelectionIndex>=0}get activeDescendant(){let t=undefined;if(this.state.activeOptionIndex>=0){t=`select-${this.id}-option-${this.state.activeOptionIndex}`}else if(this.state.activeSelectionIndex>=0){t=`select-${this.id}-selection-${this.state.activeSelectionIndex}`}return t}onArrowKeyDown(t){var i,e;let n=false;(i=this.input)===null||i===void 0?void 0:i.focus();if(t.key==="ArrowDown"){n=true;this.state.isOpen?this.patchState({activeOptionIndex:Math.min(this.state.activeOptionIndex+1,this.state.options.length-1),activeSelectionIndex:-1}):this.show()}else if(t.key==="ArrowUp"){n=true;this.state.activeOptionIndex>=0?this.patchState({activeOptionIndex:Math.max(this.state.activeOptionIndex-1,-1),activeSelectionIndex:-1}):this.hide()}else if(t.key==="ArrowLeft"){if(((e=this.input)===null||e===void 0?void 0:e.selectionStart)===0){n=true;let t;this.state.activeSelectionIndex>0?t=Math.max(this.state.activeSelectionIndex-1,-1):t=this.state.selection.length-1;this.patchState({activeSelectionIndex:t,activeOptionIndex:-1})}}else if(t.key==="ArrowRight"){if(this.state.activeSelectionIndex>=0){n=true;let t=-1;if(this.state.activeSelectionIndex<this.state.selection.length-1){t=Math.min(this.state.activeSelectionIndex+1,this.state.selection.length-1)}else if(!this.state.term){t=0}this.patchState({activeSelectionIndex:t,activeOptionIndex:-1})}}if(n){t.preventDefault();t.stopPropagation()}}get hostElement(){return r(this)}static get watchers(){return{connector:["onConnectorChange"],state:["onStateChange"]}}};jr.SKELETON_COUNT=4;jr.DROPDOWN_OFFSET=4;jr.style=kr;const Ar=class{constructor(i){t(this,i)}componentDidLoad(){var t,i;(t=this.multipleSelect)===null||t===void 0?void 0:t.connect({resolve:t=>{console.info(`Resolving data... (${t.join(", ")})`);return wn(t.map((t=>({id:t,firstName:"John",lastName:`Doe (${t})`,desc:"resolved"})))).pipe(Jn(500))},retrieve:(t,i)=>{console.info(`Retrieving data... ("${t}", ${i})`);return t==="no"?wn({last:true,content:[],totalElements:0}):wn({last:false,totalElements:1e4,content:Array.from({length:10},((e,n)=>({id:""+(n+i*10),firstName:"John",lastName:`Doe (${n+i*10})`,desc:`"${t}": page ${i}`})))}).pipe(Jn(500))},render:t=>({label:`${t.firstName} ${t.lastName}`,description:t.desc})});(i=this.singleSelect)===null||i===void 0?void 0:i.connect({resolve:t=>{console.info(`Resolving data... (${t.join(", ")})`);return wn(t.map((t=>zr.find((i=>i.id===t))))).pipe(Jn(500))},retrieve:(t,i)=>{console.info(`Retrieving data... ("${t}", ${i})`);const e=zr.filter((i=>{var e;return i.country.toLowerCase().indexOf(t.toLowerCase())===0||((e=i.capital)===null||e===void 0?void 0:e.toLowerCase().indexOf(t.toLowerCase()))===0}));const n=e.slice(i*10,i*10+10);return wn({last:n.length<10,totalElements:e.length,content:n}).pipe(Jn(500))},render:t=>({label:t.country,description:t.capital||"No capital"})})}render(){return i(e,{style:{display:"flex",flexDirection:"column"}},i("cat-select-remote",{label:"Multiple Select",hint:"This is a hint!",ref:t=>this.multipleSelect=t,value:["1"],placeholder:"Hello World",onCatChange:t=>console.log("Multiple",t),onCatBlur:t=>console.log("Multiple blur",t),multiple:true,clearable:true},i("span",{slot:"hint"},'Searching for "no" -',">"," no options are returned!")),i("cat-select-remote",{label:"Single Select",hint:"This is a hint!",ref:t=>this.singleSelect=t,value:"1",placeholder:"Search for a country or capital",onCatChange:t=>console.log("Single",t),onCatBlur:t=>console.log("Single blur",t),clearable:true}))}};const zr=[{id:"0",country:"Afghanistan Extra extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large ",capital:"Kabul"},{id:"1",country:"Albania",capital:"Tirana"},{id:"2",country:"Algeria",capital:"Alger"},{id:"3",country:"American Samoa",capital:"Fagatogo"},{id:"4",country:"Andorra",capital:"Andorra la Vella"},{id:"5",country:"Angola",capital:"Luanda"},{id:"6",country:"Anguilla",capital:"The Valley"},{id:"7",country:"Antarctica"},{id:"8",country:"Antigua and Barbuda",capital:"Saint John's"},{id:"9",country:"Argentina",capital:"Buenos Aires"},{id:"10",country:"Armenia",capital:"Yerevan"},{id:"11",country:"Aruba",capital:"Oranjestad"},{id:"12",country:"Australia",capital:"Canberra"},{id:"13",country:"Austria",capital:"Wien"},{id:"14",country:"Azerbaijan",capital:"Baku"},{id:"15",country:"Bahamas",capital:"Nassau"},{id:"16",country:"Bahrain",capital:"al-Manama"},{id:"17",country:"Bangladesh",capital:"Dhaka"},{id:"18",country:"Barbados",capital:"Bridgetown"},{id:"19",country:"Belarus",capital:"Minsk"},{id:"20",country:"Belgium",capital:"Bruxelles [Brussel]"},{id:"21",country:"Belize",capital:"Belmopan"},{id:"22",country:"Benin",capital:"Porto-Novo"},{id:"23",country:"Bermuda",capital:"Hamilton"},{id:"24",country:"Bhutan",capital:"Thimphu"},{id:"25",country:"Bolivia",capital:"La Paz"},{id:"26",country:"Bosnia and Herzegovina",capital:"Sarajevo"},{id:"27",country:"Botswana",capital:"Gaborone"},{id:"28",country:"Bouvet Island"},{id:"29",country:"Brazil",capital:"Brasília"},{id:"30",country:"British Indian Ocean Territory"},{id:"31",country:"Brunei",capital:"Bandar Seri Begawan"},{id:"32",country:"Bulgaria",capital:"Sofia"},{id:"33",country:"Burkina Faso",capital:"Ouagadougou"},{id:"34",country:"Burundi",capital:"Bujumbura"},{id:"35",country:"Cambodia",capital:"Phnom Penh"},{id:"36",country:"Cameroon",capital:"Yaound"},{id:"37",country:"Canada",capital:"Ottawa"},{id:"38",country:"Cape Verde",capital:"Praia"},{id:"39",country:"Cayman Islands",capital:"George Town"},{id:"40",country:"Central African Republic",capital:"Bangui"},{id:"41",country:"Chad",capital:"N'Djam"},{id:"42",country:"Chile",capital:"Santiago de Chile"},{id:"43",country:"China",capital:"Peking"},{id:"44",country:"Christmas Island",capital:"Flying Fish Cove"},{id:"45",country:"Cocos (Keeling) Islands",capital:"West Island"},{id:"46",country:"Colombia",capital:"Santaf"},{id:"47",country:"Comoros",capital:"Moroni"},{id:"48",country:"Congo",capital:"Brazzaville"},{id:"49",country:"Cook Islands",capital:"Avarua"},{id:"50",country:"Costa Rica",capital:"San José"},{id:"51",country:"Croatia",capital:"Zagreb"},{id:"52",country:"Cuba",capital:"La Habana"},{id:"53",country:"Cyprus",capital:"Nicosia"},{id:"54",country:"Czech Republic",capital:"Praha"},{id:"55",country:"Denmark",capital:"Copenhagen"},{id:"56",country:"Djibouti",capital:"Djibouti"},{id:"57",country:"Dominica",capital:"Roseau"},{id:"58",country:"Dominican Republic",capital:"Santo Domingo de Guzm"},{id:"59",country:"East Timor",capital:"Dili"},{id:"60",country:"Ecuador",capital:"Quito"},{id:"61",country:"Egypt",capital:"Cairo"},{id:"62",country:"El Salvador",capital:"San Salvador"},{id:"63",country:"England",capital:"London"},{id:"64",country:"Equatorial Guinea",capital:"Malabo"},{id:"65",country:"Eritrea",capital:"Asmara"},{id:"66",country:"Estonia",capital:"Tallinn"},{id:"67",country:"Ethiopia",capital:"Addis Abeba"},{id:"68",country:"Falkland Islands",capital:"Stanley"},{id:"69",country:"Faroe Islands",capital:"Tórshavn"},{id:"70",country:"Fiji Islands",capital:"Suva"},{id:"71",country:"Finland",capital:"Helsinki [Helsingfors]"},{id:"72",country:"France",capital:"Paris"},{id:"73",country:"French Guiana",capital:"Cayenne"},{id:"74",country:"French Polynesia",capital:"Papeete"},{id:"75",country:"French Southern territories"},{id:"76",country:"Gabon",capital:"Libreville"},{id:"77",country:"Gambia",capital:"Banjul"},{id:"78",country:"Georgia",capital:"Tbilisi"},{id:"79",country:"Germany",capital:"Berlin"},{id:"80",country:"Ghana",capital:"Accra"},{id:"81",country:"Gibraltar",capital:"Gibraltar"},{id:"82",country:"Greece",capital:"Athenai"},{id:"83",country:"Greenland",capital:"Nuuk"},{id:"84",country:"Grenada",capital:"Saint George's"},{id:"85",country:"Guadeloupe",capital:"Basse-Terre"},{id:"86",country:"Guam",capital:"Aga"},{id:"87",country:"Guatemala",capital:"Ciudad de Guatemala"},{id:"88",country:"Guinea",capital:"Conakry"},{id:"89",country:"Guinea-Bissau",capital:"Bissau"},{id:"90",country:"Guyana",capital:"Georgetown"},{id:"91",country:"Haiti",capital:"Port-au-Prince"},{id:"92",country:"Heard Island and McDonald Islands"},{id:"93",country:"Holy See (Vatican City State)",capital:"Citt"},{id:"94",country:"Honduras",capital:"Tegucigalpa"},{id:"95",country:"Hong Kong",capital:"Victoria"},{id:"96",country:"Hungary",capital:"Budapest"},{id:"97",country:"Iceland",capital:"Reykjavík"},{id:"98",country:"India",capital:"New Delhi"},{id:"99",country:"Indonesia",capital:"Jakarta"},{id:"100",country:"Iran",capital:"Tehran"},{id:"101",country:"Iraq",capital:"Baghdad"},{id:"102",country:"Ireland",capital:"Dublin"},{id:"103",country:"Israel",capital:"Jerusalem"},{id:"104",country:"Italy",capital:"Roma"},{id:"105",country:"Ivory Coast",capital:"Yamoussoukro"},{id:"106",country:"Jamaica",capital:"Kingston"},{id:"107",country:"Japan",capital:"Tokyo"},{id:"108",country:"Jordan",capital:"Amman"},{id:"109",country:"Kazakhstan",capital:"Astana"},{id:"110",country:"Kenya",capital:"Nairobi"},{id:"111",country:"Kiribati",capital:"Bairiki"},{id:"112",country:"Kuwait",capital:"Kuwait"},{id:"113",country:"Kyrgyzstan",capital:"Bishkek"},{id:"114",country:"Laos",capital:"Vientiane"},{id:"115",country:"Latvia",capital:"Riga"},{id:"116",country:"Lebanon",capital:"Beirut"},{id:"117",country:"Lesotho",capital:"Maseru"},{id:"118",country:"Liberia",capital:"Monrovia"},{id:"119",country:"Libyan Arab Jamahiriya",capital:"Tripoli"},{id:"120",country:"Liechtenstein",capital:"Vaduz"},{id:"121",country:"Lithuania",capital:"Vilnius"},{id:"122",country:"Luxembourg",capital:"Luxembourg [Luxemburg/L"},{id:"123",country:"Macao",capital:"Macao"},{id:"124",country:"North Macedonia",capital:"Skopje"},{id:"125",country:"Madagascar",capital:"Antananarivo"},{id:"126",country:"Malawi",capital:"Lilongwe"},{id:"127",country:"Malaysia",capital:"Kuala Lumpur"},{id:"128",country:"Maldives",capital:"Male"},{id:"129",country:"Mali",capital:"Bamako"},{id:"130",country:"Malta",capital:"Valletta"},{id:"131",country:"Marshall Islands",capital:"Dalap-Uliga-Darrit"},{id:"132",country:"Martinique",capital:"Fort-de-France"},{id:"133",country:"Mauritania",capital:"Nouakchott"},{id:"134",country:"Mauritius",capital:"Port-Louis"},{id:"135",country:"Mayotte",capital:"Mamoutzou"},{id:"136",country:"Mexico",capital:"Ciudad de M"},{id:"137",country:"Micronesia, Federated States of",capital:"Palikir"},{id:"138",country:"Moldova",capital:"Chisinau"},{id:"139",country:"Monaco",capital:"Monaco-Ville"},{id:"140",country:"Mongolia",capital:"Ulan Bator"},{id:"141",country:"Montenegro",capital:"Podgorica"},{id:"142",country:"Montserrat",capital:"Plymouth"},{id:"143",country:"Morocco",capital:"Rabat"},{id:"144",country:"Mozambique",capital:"Maputo"},{id:"145",country:"Myanmar",capital:"Rangoon (Yangon)"},{id:"146",country:"Namibia",capital:"Windhoek"},{id:"147",country:"Nauru",capital:"Yaren"},{id:"148",country:"Nepal",capital:"Kathmandu"},{id:"149",country:"Netherlands",capital:"Amsterdam"},{id:"150",country:"Netherlands Antilles",capital:"Willemstad"},{id:"151",country:"New Caledonia",capital:"Noum"},{id:"152",country:"New Zealand",capital:"Wellington"},{id:"153",country:"Nicaragua",capital:"Managua"},{id:"154",country:"Niger",capital:"Niamey"},{id:"155",country:"Nigeria",capital:"Abuja"},{id:"156",country:"Niue",capital:"Alofi"},{id:"157",country:"Norfolk Island",capital:"Kingston"},{id:"158",country:"North Korea",capital:"Pyongyang"},{id:"159",country:"Northern Ireland",capital:"Belfast"},{id:"160",country:"Northern Mariana Islands",capital:"Garapan"},{id:"161",country:"Norway",capital:"Oslo"},{id:"162",country:"Oman",capital:"Masqat"},{id:"163",country:"Pakistan",capital:"Islamabad"},{id:"164",country:"Palau",capital:"Koror"},{id:"165",country:"Palestine",capital:"Gaza"},{id:"166",country:"Panama",capital:"Ciudad de Panamá"},{id:"167",country:"Papua New Guinea",capital:"Port Moresby"},{id:"168",country:"Paraguay",capital:"Asunción"},{id:"169",country:"Peru",capital:"Lima"},{id:"170",country:"Philippines",capital:"Manila"},{id:"171",country:"Pitcairn",capital:"Adamstown"},{id:"172",country:"Poland",capital:"Warszawa"},{id:"173",country:"Portugal",capital:"Lisboa"},{id:"174",country:"Puerto Rico",capital:"San Juan"},{id:"175",country:"Qatar",capital:"Doha"},{id:"176",country:"Reunion",capital:"Saint-Denis"},{id:"177",country:"Romania",capital:"Bucuresti"},{id:"178",country:"Russian Federation",capital:"Moscow"},{id:"179",country:"Rwanda",capital:"Kigali"},{id:"180",country:"Saint Helena",capital:"Jamestown"},{id:"181",country:"Saint Kitts and Nevis",capital:"Basseterre"},{id:"182",country:"Saint Lucia",capital:"Castries"},{id:"183",country:"Saint Pierre and Miquelon",capital:"Saint-Pierre"},{id:"184",country:"Saint Vincent and the Grenadines",capital:"Kingstown"},{id:"185",country:"Samoa",capital:"Apia"},{id:"186",country:"San Marino",capital:"San Marino"},{id:"187",country:"Sao Tome and Principe",capital:"São Tomé"},{id:"188",country:"Saudi Arabia",capital:"Riyadh"},{id:"189",country:"Scotland",capital:"Edinburgh"},{id:"190",country:"Senegal",capital:"Dakar"},{id:"191",country:"Serbia",capital:"Belgrade"},{id:"192",country:"Seychelles",capital:"Victoria"},{id:"193",country:"Sierra Leone",capital:"Freetown"},{id:"194",country:"Singapore",capital:"Singapore"},{id:"195",country:"Slovakia",capital:"Bratislava"},{id:"196",country:"Slovenia",capital:"Ljubljana"},{id:"197",country:"Solomon Islands",capital:"Honiara"},{id:"198",country:"Somalia",capital:"Mogadishu"},{id:"199",country:"South Africa",capital:"Pretoria"},{id:"200",country:"South Georgia and the South Sandwich Islands"},{id:"201",country:"South Korea",capital:"Seoul"},{id:"202",country:"South Sudan",capital:"Juba"},{id:"203",country:"Spain",capital:"Madrid"},{id:"204",country:"Sri Lanka",capital:"Colombo, Sri Jayawardenepura Kotte"},{id:"205",country:"Sudan",capital:"Khartum"},{id:"206",country:"Suriname",capital:"Paramaribo"},{id:"207",country:"Svalbard and Jan Mayen",capital:"Longyearbyen"},{id:"208",country:"Swaziland",capital:"Mbabane"},{id:"209",country:"Sweden",capital:"Stockholm"},{id:"210",country:"Switzerland",capital:"Bern"},{id:"211",country:"Syria",capital:"Damascus"},{id:"212",country:"Tajikistan",capital:"Dushanbe"},{id:"213",country:"Tanzania",capital:"Dodoma"},{id:"214",country:"Thailand",capital:"Bangkok"},{id:"215",country:"The Democratic Republic of Congo",capital:"Kinshasa"},{id:"216",country:"Togo",capital:"Lomé"},{id:"217",country:"Tokelau",capital:"Fakaofo"},{id:"218",country:"Tonga",capital:"Nuku'alofa"},{id:"219",country:"Trinidad and Tobago",capital:"Port-of-Spain"},{id:"220",country:"Tunisia",capital:"Tunis"},{id:"221",country:"Turkey",capital:"Ankara"},{id:"222",country:"Turkmenistan",capital:"Ashgabat"},{id:"223",country:"Turks and Caicos Islands",capital:"Cockburn Town"},{id:"224",country:"Tuvalu",capital:"Funafuti"},{id:"225",country:"Uganda",capital:"Kampala"},{id:"226",country:"Ukraine",capital:"Kyiv"},{id:"227",country:"United Arab Emirates",capital:"Abu Dhabi"},{id:"228",country:"United Kingdom",capital:"London"},{id:"229",country:"United States",capital:"Washington"},{id:"230",country:"United States Minor Outlying Islands"},{id:"231",country:"Uruguay",capital:"Montevideo"},{id:"232",country:"Uzbekistan",capital:"Toskent"},{id:"233",country:"Vanuatu",capital:"Port-Vila"},{id:"234",country:"Venezuela",capital:"Caracas"},{id:"235",country:"Vietnam",capital:"Hanoi"},{id:"236",country:"Virgin Islands, British",capital:"Road Town"},{id:"237",country:"Virgin Islands, U.S.",capital:"Charlotte Amalie"},{id:"238",country:"Wales",capital:"Cardiff"},{id:"239",country:"Wallis and Futuna",capital:"Mata-Utu"},{id:"240",country:"Western Sahara",capital:"El-Aai"},{id:"241",country:"Yemen",capital:"Sanaa"},{id:"242",country:"Zambia",capital:"Lusaka"},{id:"243",country:"Zimbabwe",capital:"Harare"}];const Nr=':host{display:flex;flex-direction:column;position:relative;--background:#ebecf0;--highlight:#d7dbe0;--speed:2s}:host([variant=square]),:host([variant=circle]){display:inline-flex}:host([hidden]){display:none}:host([variant=head]){margin-bottom:0.5rem}:host([variant=body]){margin-bottom:1rem}.skeleton{display:block;border-radius:0.25rem;background:var(--background)}.skeleton-circle{border-radius:10rem}.skeleton-xs.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 1.5rem)}.skeleton-xs.skeleton-square,.skeleton-xs.skeleton-circle{width:var(--width, 1.5rem);height:var(--height, 1.5rem)}.skeleton-xs.skeleton-head,.skeleton-xs.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-xs.skeleton-head{height:calc(0.9375rem - 4px);margin:calc((1.25rem - 0.9375rem + 4px) * 0.5) 0}.skeleton-xs.skeleton-body{height:calc(0.75rem - 4px);margin:calc((1rem - 0.75rem + 4px) * 0.5) 0}.skeleton-s.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 2rem)}.skeleton-s.skeleton-square,.skeleton-s.skeleton-circle{width:var(--width, 2rem);height:var(--height, 2rem)}.skeleton-s.skeleton-head,.skeleton-s.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-s.skeleton-head{height:calc(1.125rem - 4px);margin:calc((1.5rem - 1.125rem + 4px) * 0.5) 0}.skeleton-s.skeleton-body{height:calc(0.875rem - 4px);margin:calc((1rem - 0.875rem + 4px) * 0.5) 0}.skeleton-m.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 2.5rem)}.skeleton-m.skeleton-square,.skeleton-m.skeleton-circle{width:var(--width, 2.5rem);height:var(--height, 2.5rem)}.skeleton-m.skeleton-head,.skeleton-m.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-m.skeleton-head{height:calc(1.25rem - 4px);margin:calc((1.5rem - 1.25rem + 4px) * 0.5) 0}.skeleton-m.skeleton-body{height:calc(0.9375rem - 4px);margin:calc((1.25rem - 0.9375rem + 4px) * 0.5) 0}.skeleton-l.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 3rem)}.skeleton-l.skeleton-square,.skeleton-l.skeleton-circle{width:var(--width, 3rem);height:var(--height, 3rem)}.skeleton-l.skeleton-head,.skeleton-l.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-l.skeleton-head{height:calc(1.5rem - 4px);margin:calc((1.75rem - 1.5rem + 4px) * 0.5) 0}.skeleton-l.skeleton-body{height:calc(1.125rem - 4px);margin:calc((1.5rem - 1.125rem + 4px) * 0.5) 0}.skeleton-xl.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 3.5rem)}.skeleton-xl.skeleton-square,.skeleton-xl.skeleton-circle{width:var(--width, 3.5rem);height:var(--height, 3.5rem)}.skeleton-xl.skeleton-head,.skeleton-xl.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-xl.skeleton-head{height:calc(1.75rem - 4px);margin:calc((2rem - 1.75rem + 4px) * 0.5) 0}.skeleton-xl.skeleton-body{height:calc(1.25rem - 4px);margin:calc((1.5rem - 1.25rem + 4px) * 0.5) 0}.skeleton-sheen{background:linear-gradient(90deg, var(--background) 33%, var(--highlight) 50%, var(--background) 66%) var(--background);background-size:300% 100%;animation:sheen var(--speed) ease-in-out infinite}.skeleton-pulse{position:relative;overflow:hidden}.skeleton-pulse::before{content:"";display:block;position:absolute;width:100%;height:100%;background-color:var(--highlight);animation:var(--speed) ease-in-out 0.5s infinite normal none running pulse;opacity:0}@keyframes sheen{0%{background-position:right}}@keyframes pulse{50%{opacity:1}}';const Cr=class{constructor(i){t(this,i);this.effect="sheen";this.variant="rectangle";this.size="m"}render(){return i(e,null,Array.from(Array(this.count)).map((()=>i("div",{style:this.style,class:{skeleton:true,[`skeleton-${this.effect}`]:Boolean(this.effect),[`skeleton-${this.variant}`]:Boolean(this.variant),[`skeleton-${this.size}`]:Boolean(this.size)}}))))}get count(){switch(this.variant){case"head":return Math.max(1,this.lines||1);case"body":return Math.max(1,this.lines||3);default:return 1}}get style(){return this.variant==="head"||this.variant==="body"?{"--line-width":`${this.random(50,100)}%`}:undefined}random(t,i){return Math.floor(Math.random()*(i-t+1)+t)}};Cr.style=Nr;const Or=":host{display:inline-flex;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host[hidden]{display:none}span{display:inline-flex}svg{fill:none;stroke:currentColor;stroke-dasharray:135px;stroke-dashoffset:95px;stroke-linecap:round;stroke-width:5px;transform-origin:center center;animation:spin 0.75s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite;width:1em;height:1em}.spinner-xs svg{font-size:0.75rem}.spinner-s svg{font-size:1rem}.spinner-m svg{font-size:1.25rem}.spinner-l svg{font-size:1.5rem}.spinner-xl svg{font-size:1.75rem}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";const Sr=class{constructor(i){t(this,i);this.size="m"}render(){return i("span",{"aria-label":this.a11yLabel,"aria-hidden":this.a11yLabel?null:"true",class:{[`spinner-${this.size}`]:this.size!=="inline"}},i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},i("circle",{cx:"24",cy:"24",r:"21.5"})))}};Sr.style=Or;const Tr=":host{display:block}:host([hidden]){display:none}";let Dr=0;const Er=class{constructor(i){t(this,i);this.tabClick=n(this,"tabClick",7);this.label="";this.iconOnly=false;this.iconRight=false;this.deactivated=false}connectedCallback(){if(!this.hostElement.id){this.hostElement.id=`cat-tab-${Dr++}`}}onClick(t){this.tabClick.emit(t)}render(){return i(e,null)}get hostElement(){return r(this)}};Er.style=Tr;const Lr=":host{display:flex;flex-direction:row;box-shadow:inset 0 -1px 0 0 #d7dbe0}:host([hidden]){display:none}:host([tabs-align=center]){justify-content:center}:host([tabs-align=right]){justify-content:end}:host([tabs-align=justify]) cat-button{flex:1 0 auto}.tab{padding:0.5rem}.tab.tab-active{box-shadow:inset 0 -3px 0 0 #207f8a}";const Rr=class{constructor(i){t(this,i);this.buttons=[];this.tabs=[];this.activeTab="";this.tabsAlign="left"}onActiveTabChanged(t){const i=this.tabs.find((i=>i.id===t));i===null||i===void 0?void 0:i.click()}componentWillLoad(){this.syncTabs();if(this.tabs.length){this.activeTabId=this.activeTab}}componentDidLoad(){var t;this.mutationObserver=new MutationObserver((t=>t.some((t=>t.target.nodeName==="CAT-TAB"))&&this.syncTabs()));(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.hostElement,{childList:true,attributes:true,subtree:true})}disconnectedCallback(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect()}onKeydown(t){var i;if(["ArrowDown","ArrowUp","ArrowRight","ArrowLeft"].includes(t.key)){const e=this.buttons.filter((t=>!t.disabled));const n=(i=this.hostElement.shadowRoot)===null||i===void 0?void 0:i.activeElement;const r=n?e.indexOf(n):-1;const s=["ArrowDown","ArrowRight"].includes(t.key)?1:-1;const o=r<0?0:(r+s+e.length)%e.length;e[o].setFocus();t.preventDefault()}}render(){return i(e,null,this.tabs.map((t=>i("cat-button",{ref:t=>t&&this.updateButtonsRef(t),buttonId:t.id,role:"tab",part:"tab",class:{tab:true,"tab-active":Boolean(this.activeTabId&&t.id===this.activeTabId)},color:this.activeTabId&&t.id===this.activeTabId?"primary":"secondary",variant:"text",icon:t.icon,iconOnly:t.iconOnly,iconRight:t.iconRight,url:t.url,disabled:t.deactivated,urlTarget:t.urlTarget,onCatClick:()=>this.activeTabId=t.id},t.label))))}updateButtonsRef(t){const i=this.buttons.indexOf(t);if(i>=0){this.buttons[i]=t}else{this.buttons.push(t)}}syncTabs(){this.tabs=Array.from(this.hostElement.querySelectorAll("cat-tab"))}get hostElement(){return r(this)}static get watchers(){return{activeTabId:["onActiveTabChanged"]}}};Rr.style=Lr;var $r,Pr,Br="function"==typeof Map?new Map:($r=[],Pr=[],{has:function(t){return $r.indexOf(t)>-1},get:function(t){return Pr[$r.indexOf(t)]},set:function(t,i){-1===$r.indexOf(t)&&($r.push(t),Pr.push(i))},delete:function(t){var i=$r.indexOf(t);i>-1&&($r.splice(i,1),Pr.splice(i,1))}}),Fr=function(t){return new Event(t,{bubbles:!0})};try{new Event("test")}catch($r){Fr=function(t){var i=document.createEvent("Event");return i.initEvent(t,!0,!1),i}}function Ur(t){var i=Br.get(t);i&&i.destroy()}function Yr(t){var i=Br.get(t);i&&i.update()}var Hr=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((Hr=function(t){return t}).destroy=function(t){return t},Hr.update=function(t){return t}):((Hr=function(t,i){return t&&Array.prototype.forEach.call(t.length?t:[t],(function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!Br.has(t)){var i,e=null,n=null,r=null,s=function(){t.clientWidth!==n&&l()},o=function(i){window.removeEventListener("resize",s,!1),t.removeEventListener("input",l,!1),t.removeEventListener("keyup",l,!1),t.removeEventListener("autosize:destroy",o,!1),t.removeEventListener("autosize:update",l,!1),Object.keys(i).forEach((function(e){t.style[e]=i[e]})),Br.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",o,!1),"onpropertychange"in t&&"oninput"in t&&t.addEventListener("keyup",l,!1),window.addEventListener("resize",s,!1),t.addEventListener("input",l,!1),t.addEventListener("autosize:update",l,!1),t.style.overflowX="hidden",t.style.wordWrap="break-word",Br.set(t,{destroy:o,update:l}),"vertical"===(i=window.getComputedStyle(t,null)).resize?t.style.resize="none":"both"===i.resize&&(t.style.resize="horizontal"),e="content-box"===i.boxSizing?-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),isNaN(e)&&(e=0),l()}function a(i){var e=t.style.width;t.style.width="0px",t.style.width=e,t.style.overflowY=i}function c(){if(0!==t.scrollHeight){var i=function(t){for(var i=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&i.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;return i}(t),r=document.documentElement&&document.documentElement.scrollTop;t.style.height="",t.style.height=t.scrollHeight+e+"px",n=t.clientWidth,i.forEach((function(t){t.node.scrollTop=t.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function l(){c();var i=Math.round(parseFloat(t.style.height)),e=window.getComputedStyle(t,null),n="content-box"===e.boxSizing?Math.round(parseFloat(e.height)):t.offsetHeight;if(n<i?"hidden"===e.overflowY&&(a("scroll"),c(),n="content-box"===e.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight):"hidden"!==e.overflowY&&(a("hidden"),c(),n="content-box"===e.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight),r!==n){r=n;var s=Fr("autosize:resized");try{t.dispatchEvent(s)}catch(t){}}}}(t)})),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],Ur),t},Hr.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],Yr),t});var Gr=Hr;const Vr=".hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0}:host{display:flex;flex-direction:column;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);margin-bottom:1rem}:host([hidden]){display:none}label{align-self:flex-start}label.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-optional{margin-left:0.25rem;font-size:0.75rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);color:rgb(var(--cat-font-color-muted, 105, 118, 135))}textarea{margin:0;padding:0.625rem 0.75rem;min-height:2.5rem;font:inherit;background:white;border-radius:0.25rem;border:none;box-shadow:0 0 0 1px #d7dbe0;transition:box-shadow 0.13s linear}textarea:disabled{background:#f8f8fb;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135));resize:none}textarea:hover:not(:disabled){box-shadow:0 0 0 2px #d7dbe0}textarea:focus{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255))}textarea::placeholder{color:rgb(var(--cat-font-color-muted, 105, 118, 135))}";let Qr=0;const Wr=class{constructor(i){t(this,i);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.id=`cat-textarea-${Qr++}`;this.hasSlottedLabel=false;this.disabled=false;this.label="";this.labelHidden=false;this.name="";this.readonly=false;this.required=false;this.rows=3}componentWillRender(){this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');if(!this.label&&!this.hasSlottedLabel){s.error("[A11y] Missing ARIA label on textarea",this)}}componentDidLoad(){Gr(this.textarea)}async setFocus(t){this.textarea.focus(t)}render(){return i(e,null,(this.hasSlottedLabel||this.label)&&i("label",{htmlFor:this.id,class:{hidden:this.labelHidden}},i("span",{part:"label"},this.hasSlottedLabel&&i("slot",{name:"label"})||this.label,!this.required&&i("span",{class:"input-optional","aria-hidden":"true"},"(Optional)"))),i("textarea",{ref:t=>this.textarea=t,id:this.id,disabled:this.disabled,maxlength:this.maxLength,minlength:this.minLength,name:this.name,placeholder:this.placeholder,readonly:this.readonly,required:this.required,rows:this.rows,value:this.value,onInput:this.onInput.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)}),this.hintSection)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&i(O,{hint:this.hint,slottedHint:t&&i("slot",{name:"hint"})})}onInput(t){this.value=this.textarea.value;this.catChange.emit(t)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}get hostElement(){return r(this)}};Wr.style=Vr;const Kr=":host{display:block}";const Zr=class{constructor(i){t(this,i)}render(){return i("cat-button",{onClick:this.onClick.bind(this)},"Show Notifications")}onClick(){const t={position:"top-left",type:"info"};const i={position:"top-center",type:"error"};const e={position:"bottom-left",type:"error"};const n={position:"bottom-right",type:"success"};const r=document.createElement("template");r.innerHTML=`<div style="padding: 7px 30px 7px 10px">Custom HTML Node Content</div>`;const s={position:"bottom-right",type:"success",content:r.content.firstChild};const o={position:"bottom-right",type:"primary"};const a={position:"bottom-right",type:"secondary"};u.secondary("Secondary Click","secondary info",a);u.primary("primary Click","secondary info",o);u.error("Default Click");u.error("Long default title, long default title, long default title, long default title");u.info("Info Click","Info message",t);u.success(""," ",s);u.error("Error Title"," ",i);u.error("Error 2 Title","Very long message, Very long message, Very long message, Very long message, Very long message, Very long message, Very long message, Very long message, Very long message, Very long message,Very long message, Very long message, Very long message, Very long message, Very long message, ",e);u.success("Success Title - very long title without message"," ",n)}};Zr.style=Kr;const Jr='.hint-section{display:flex;gap:0.5rem;flex-direction:column}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){font-size:0.875rem;line-height:1rem;font-weight:var(--cat-font-weight-body, 400);margin:0}:host{display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.label-left{flex-direction:row-reverse}input{position:absolute;margin:0;width:2rem;height:1.25rem;opacity:0;cursor:inherit}.toggle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;position:relative;width:2rem;height:1.25rem;border-radius:10rem;background-color:#d7dbe0;transition:background-color 0.13s ease;pointer-events:none}:checked+.toggle{background-color:rgb(var(--cat-primary-bg, 32, 127, 138))}:focus-visible+.toggle{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.toggle::after{content:"";position:absolute;width:1rem;height:1rem;background:#fff;border-radius:10rem;transform:translateX(calc(2px - 0.5rem));transition:transform 0.13s linear;box-shadow:0 1px 4px 0 rgba(16, 29, 48, 0.2)}:checked+.toggle::after{transform:translateX(calc(-2px + 0.5rem))}.label{flex:1 1 auto}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}';let qr=0;const Xr=class{constructor(i){t(this,i);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.id=`cat-toggle-${qr++}`;this.hasSlottedLabel=false;this.checked=false;this.disabled=false;this.label="";this.labelHidden=false;this.required=false;this.labelLeft=false}componentWillRender(){this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');if(!this.label&&!this.hasSlottedLabel){s.error("[A11y] Missing ARIA label on toggle",this)}}async setFocus(t){this.input.focus(t)}render(){return i(e,null,i("label",{htmlFor:this.id,class:{"is-hidden":this.labelHidden,"is-disabled":this.disabled,"label-left":this.labelLeft}},i("input",{ref:t=>this.input=t,id:this.id,type:"checkbox",name:this.name,value:this.value!==undefined?String(this.value):this.value,checked:this.checked,required:this.required,disabled:this.disabled,class:"form-check-input",role:"switch",onInput:this.onInput.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)}),i("span",{class:"toggle",part:"toggle"}),i("span",{class:"label",part:"label"},this.hasSlottedLabel&&i("slot",{name:"label"})||this.label)),this.hintSection)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&i(O,{hint:this.hint,slottedHint:t&&i("slot",{name:"hint"})})}onInput(t){this.checked=this.input.checked;if(!this.value||typeof this.value==="boolean"){this.value=this.checked}this.catChange.emit(t)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}get hostElement(){return r(this)}};Xr.style=Jr;const ts="ontouchstart"in window||navigator.maxTouchPoints>0;const is=":host{display:contents}:host([hidden]){display:none}.tooltip{position:absolute;font-size:0.875rem;line-height:1rem;font-weight:500;padding:0.75rem;background-color:black;border-radius:0.25rem;color:white;transition:opacity 0.25s linear, visibility 0.25s linear;visibility:hidden;opacity:0;box-shadow:rgba(0, 0, 0, 0.08) 0 1px 8px 0;z-index:200;max-width:16rem}.tooltip-show{opacity:1;visibility:visible}.tooltip-trigger{display:inline-block}.tooltip-trigger:focus{outline:none}";let es=0;const ns=class{constructor(i){t(this,i);this.id=`cat-tooltip-${es++}`;this.content="";this.disabled=false;this.placement="top";this.showDelay=500;this.hideDelay=0;this.longTouchDuration=1e3}handleKeyDown({key:t}){t==="Escape"&&this.hideListener()}componentDidLoad(){var t,i,e,n,r,s,o;this.trigger=Ni(this.triggerElement)||this.triggerElement;if(!this.isTabbable){(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("tabindex","0")}if(this.trigger&&this.tooltip){Ut(this.trigger,this.tooltip,(()=>this.update()))}if(ts){window.addEventListener("touchstart",this.windowTouchStartListener.bind(this));(i=this.trigger)===null||i===void 0?void 0:i.addEventListener("touchstart",this.touchStartListener.bind(this));(e=this.trigger)===null||e===void 0?void 0:e.addEventListener("touchend",this.touchEndListener.bind(this))}else{(n=this.trigger)===null||n===void 0?void 0:n.addEventListener("focusin",this.showListener.bind(this));(r=this.trigger)===null||r===void 0?void 0:r.addEventListener("focusout",this.hideListener.bind(this));(s=this.trigger)===null||s===void 0?void 0:s.addEventListener("mouseenter",this.showListener.bind(this));(o=this.trigger)===null||o===void 0?void 0:o.addEventListener("mouseleave",this.hideListener.bind(this))}}disconnectedCallback(){var t,i,e,n,r,s;if(ts){window.removeEventListener("touchstart",this.windowTouchStartListener.bind(this));(t=this.trigger)===null||t===void 0?void 0:t.removeEventListener("touchstart",this.touchStartListener.bind(this));(i=this.trigger)===null||i===void 0?void 0:i.removeEventListener("touchend",this.touchEndListener.bind(this))}else{(e=this.trigger)===null||e===void 0?void 0:e.removeEventListener("mouseenter",this.showListener.bind(this));(n=this.trigger)===null||n===void 0?void 0:n.removeEventListener("mouseleave",this.hideListener.bind(this));(r=this.trigger)===null||r===void 0?void 0:r.removeEventListener("focusin",this.showListener.bind(this));(s=this.trigger)===null||s===void 0?void 0:s.removeEventListener("focusout",this.hideListener.bind(this))}}render(){return i(e,null,i("div",{ref:t=>this.triggerElement=t,"aria-describedby":this.id,class:"tooltip-trigger"},i("slot",null)),this.content&&!this.disabled&&i("div",{ref:t=>this.tooltip=t,id:this.id,class:"tooltip"},this.content))}get isTabbable(){return Ni(this.trigger)}update(){if(this.trigger&&this.tooltip){Yt(this.trigger,this.tooltip,{placement:this.placement,middleware:[rt(ns.OFFSET),et()]}).then((({x:t,y:i})=>{if(this.tooltip){Object.assign(this.tooltip.style,{left:`${Math.max(0,t)}px`,top:`${i}px`})}}))}}showListener(){window.clearTimeout(this.hideTimeout);this.showTimeout=window.setTimeout((()=>{var t;(t=this.tooltip)===null||t===void 0?void 0:t.classList.add("tooltip-show")}),this.showDelay)}hideListener(){window.clearTimeout(this.showTimeout);this.hideTimeout=window.setTimeout((()=>{var t;(t=this.tooltip)===null||t===void 0?void 0:t.classList.remove("tooltip-show")}),this.hideDelay)}touchStartListener(t){t.stopPropagation();this.touchTimeout=window.setTimeout((()=>{var t;(t=this.tooltip)===null||t===void 0?void 0:t.classList.add("tooltip-show")}),this.longTouchDuration)}touchEndListener(){if(this.touchTimeout){window.clearTimeout(this.touchTimeout)}}windowTouchStartListener(){var t;(t=this.tooltip)===null||t===void 0?void 0:t.classList.remove("tooltip-show")}};ns.OFFSET=4;ns.style=is;export{d as cat_alert,v as cat_avatar,b as cat_badge,z as cat_button,C as cat_card,D as cat_checkbox,L as cat_icon,P as cat_input,Si as cat_menu,Di as cat_modal,Ri as cat_radio,Pi as cat_radio_group,ur as cat_scrollable,mr as cat_select,jr as cat_select_remote,Ar as cat_select_remote_test,Cr as cat_skeleton,Sr as cat_spinner,Er as cat_tab,Rr as cat_tabs,Wr as cat_textarea,Zr as cat_toast_demo,Xr as cat_toggle,ns as cat_tooltip};
12
+ //# sourceMappingURL=p-7fff102c.entry.js.map