@haiilo/catalyst 0.10.7 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalyst/catalyst.css +1 -1
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/{p-eddcea2b.entry.js → p-14edfc2b.entry.js} +5 -5
- package/dist/catalyst/p-14edfc2b.entry.js.map +1 -0
- package/dist/catalyst/p-5ba5e33c.entry.js +2 -0
- package/dist/catalyst/{p-c0b4200d.entry.js.map → p-5ba5e33c.entry.js.map} +1 -1
- package/dist/catalyst/scss/core/_base.scss +0 -1
- package/dist/catalyst/scss/index.scss +1 -1
- package/dist/catalyst/scss/utils/_layout.scss +4 -4
- package/dist/catalyst/scss/utils/_typography.mixins.scss +3 -3
- package/dist/cjs/cat-alert_21.cjs.entry.js +128 -105
- package/dist/cjs/cat-alert_21.cjs.entry.js.map +1 -1
- package/dist/cjs/cat-textarea.cjs.entry.js +1 -1
- package/dist/cjs/cat-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/cat-badge/cat-badge.css +15 -15
- package/dist/collection/components/cat-button/cat-button.css +185 -0
- package/dist/collection/components/cat-checkbox/cat-checkbox.css +16 -9
- package/dist/collection/components/cat-input/cat-input.css +3 -0
- package/dist/collection/components/cat-input/cat-input.js +1 -1
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.css +4 -0
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +62 -28
- package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.css +4 -2
- package/dist/collection/components/cat-select/cat-select.js +136 -198
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.css +3 -0
- package/dist/collection/components/cat-toggle/cat-toggle.css +9 -9
- package/dist/collection/components/cat-tooltip/cat-tooltip.css +2 -3
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/scss/core/_base.scss +0 -1
- package/dist/collection/scss/index.scss +1 -1
- package/dist/collection/scss/utils/_layout.scss +4 -4
- package/dist/collection/scss/utils/_typography.mixins.scss +3 -3
- package/dist/components/cat-badge.js +1 -1
- package/dist/components/cat-badge.js.map +1 -1
- package/dist/components/cat-button2.js +1 -1
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-checkbox.js +1 -1
- package/dist/components/cat-checkbox.js.map +1 -1
- package/dist/components/cat-input.js +1 -1
- package/dist/components/cat-input.js.map +1 -1
- package/dist/components/cat-radio-group.js +18 -13
- package/dist/components/cat-radio-group.js.map +1 -1
- package/dist/components/cat-radio.js +1 -1
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-select.js +112 -98
- package/dist/components/cat-select.js.map +1 -1
- package/dist/components/cat-textarea.js +1 -1
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-toggle.js +1 -1
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/cat-tooltip.js +1 -1
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/esm/cat-alert_21.entry.js +128 -105
- package/dist/esm/cat-alert_21.entry.js.map +1 -1
- package/dist/esm/cat-textarea.entry.js +1 -1
- package/dist/esm/cat-textarea.entry.js.map +1 -1
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cat-input/cat-input.d.ts +1 -1
- package/dist/types/components/cat-radio-group/cat-radio-group.d.ts +17 -2
- package/dist/types/components/cat-select/cat-select.d.ts +22 -28
- package/dist/types/components.d.ts +36 -35
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/catalyst/p-c0b4200d.entry.js +0 -2
- package/dist/catalyst/p-eddcea2b.entry.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{r as t,h as e,H as i,c as n,g as r}from"./p-659073b5.js";import{l as s,c as o,g as a}from"./p-2ad6f8d8.js";import{C as c}from"./p-6fce43dd.js";import{a as l,C as h,N as u}from"./p-8121572a.js";const d=":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;color:rgb(var(--text));background-color:rgba(var(--bg), 0.1);box-shadow:inset 0 0 0 1px rgba(var(--border), 0.2);border-radius:0.25rem;padding:0.75rem 1rem}::slotted(:last-child){margin-bottom:0 !important}.alert-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--text:var(--cat-primary-text, 32, 127, 138);--border:var(--cat-primary-text, 32, 127, 138)}.alert-secondary{--bg:105, 118, 135;--text:0, 0, 0;--border:105, 118, 135}.alert-success{--bg:0, 132, 88;--text:0, 132, 88;--border:0, 132, 88}.alert-warning{--bg:255, 206, 128;--text:159, 97, 0;--border:159, 97, 0}.alert-danger{--bg:217, 52, 13;--text:217, 52, 13;--border:217, 52, 13}";const f=class{constructor(e){t(this,e);this.color="primary"}render(){return e(i,{tabindex:"0",role:this.role},e("div",{part:"alert",class:{alert:true,[`alert-${this.color}`]:Boolean(this.color)}},e("slot",null)))}get role(){switch(this.color){case"danger":case"warning":return"alert";default:return"status"}}};f.style=d;const v=t=>new Promise(((e,i)=>{const n=new Image;n.addEventListener("load",e);n.addEventListener("error",i);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 b=class{constructor(e){t(this,e);this.size="m";this.round=false;this.label=""}onSrcChanged(t){if(t){v(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 e("a",{href:this.url,target:this.urlTarget,style:this.cssStyle,class:this.cssClass,"aria-label":this.label},this.content)}else{return e("span",{style:this.cssStyle,class:this.cssClass,"aria-label":this.label},this.content)}}get content(){return!this.backgroundImage?[this.icon?e("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,e;return(t=this.initials)!==null&&t!==void 0?t:((e=this.label)!==null&&e!==void 0?e:"").split(" ").map((t=>t[0])).join("")}static get watchers(){return{src:["onSrcChanged"]}}};b.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:0.75rem;min-width:0.75rem;font-size:0.75rem;padding:0rem 0.25rem}.badge-s{height:1rem;min-width:1rem;font-size:0.75rem;padding:0.25rem 0.5rem}.badge-m{height:1.25rem;min-width:1.25rem;font-size:0.75rem;padding:0.5rem 0.75rem}.badge-l{height:1.5rem;min-width:1.5rem;font-size:0.875rem;padding:0.75rem 1rem}.badge-xl{height:1.75rem;min-width:1.75rem;font-size:0.9375rem;padding:1rem 1.25rem}.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 g=class{constructor(e){t(this,e);this.variant="filled";this.color="primary";this.size="m";this.round=false;this.pulse=false}render(){return e("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)}},e("slot",null))}};g.style=m;const x=["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"&&x.includes(t)}let M;try{M=typeof Intl!=="undefined"&&Intl.v8BreakIterator}catch(t){M=false}class _{constructor(){this.EDGE=/(edge)/i.test(navigator.userAgent);this.TRIDENT=/(msie|trident)/i.test(navigator.userAgent);this.BLINK=!!(window.chrome||M)&&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 I=new Set;let j;class k{constructor(){this._platform=new _;this._matchMedia=window.matchMedia.bind(window)}matchMedia(t){if(this._platform.WEBKIT||this._platform.BLINK){N(t)}return this._matchMedia(t)}}function N(t){if(I.has(t)){return}try{if(!j){j=document.createElement("style");j.setAttribute("type","text/css");document.head.appendChild(j)}if(j.sheet){j.sheet.insertRule(`@media ${t} {body{ }}`,0);I.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-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}.cat-button-xs{min-width:1.5rem;padding:0.25rem 0.25rem;font-size:0.875rem;line-height:1rem}.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}.cat-button-s{min-width:2rem;padding:0.375rem 0.5rem;font-size:0.9375rem;line-height:1.25rem}.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}.cat-button-m{min-width:2.5rem;padding:0.625rem 0.75rem;font-size:0.9375rem;line-height:1.25rem}.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}.cat-button-l{min-width:3rem;padding:0.875rem 1rem;font-size:0.9375rem;line-height:1.25rem}.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}.cat-button-xl{min-width:3.5rem;padding:1rem 1.25rem;font-size:1.125rem;line-height:1.5rem}.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}.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(e){t(this,e);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 e,i;(e=this.mediaQueryList)===null||e===void 0?void 0:e.removeEventListener("change",this.mediaQueryListener);this.mediaQueryList=undefined;this.mediaQueryListener=undefined;if(w(t)){(i=this.mediaMatcher)!==null&&i!==void 0?i:this.mediaMatcher=new k;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 e("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 e("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?e("cat-icon",{icon:this.icon,size:this.iconSize,class:"cat-button-prefix",part:"prefix"}):null,this.isIconButton?e("cat-icon",{icon:this.icon,size:this.iconSize}):e("span",{class:"cat-button-content",part:"content"},e("slot",null)),this.hasSuffixIcon?e("cat-icon",{icon:this.icon,size:this.iconSize,class:"cat-button-suffix",part:"suffix"}):null,this.loading?e("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 O=":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 E=class{constructor(e){t(this,e)}render(){return e(i,null,e("slot",null))}};E.style=O;const C=".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;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;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.label-left{flex-direction:row-reverse}input{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}.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}.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}.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 D=0;const T=class{constructor(e){t(this,e);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.id=`cat-checkbox-${D++}`;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 e(i,null,e("label",{htmlFor:this.id,class:{"is-hidden":this.labelHidden,"is-disabled":this.disabled,"label-left":this.labelLeft}},e("input",{ref:t=>this.input=t,id:this.id,type:"checkbox",name:this.name,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)}),e("span",{class:"box","aria-hidden":"true",part:"checkbox"},e("svg",{class:"check",viewBox:"0 0 12 10"},e("polyline",{points:"1.5 6 4.5 9 10.5 1"})),e("svg",{class:"dash",viewBox:"0 0 12 10"},e("polyline",{points:"1.5 5 10.5 5"}))),e("span",{class:"label",part:"label"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label)),this.hintSection)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&e(c,{hint:this.hint,slottedHint:t&&e("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)}};T.style=C;const S=":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(e){t(this,e);this.iconRegistry=l.getInstance();this.icon="";this.size="m"}render(){return e("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=S;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;margin:0}:host{display:flex;flex-direction:column;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;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;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;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(e){t(this,e);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.i18n=h.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 e(i,null,(this.hasSlottedLabel||this.label)&&e("label",{htmlFor:this.id,class:{hidden:this.labelHidden}},e("span",{part:"label"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label,!this.required&&e("span",{class:"input-optional","aria-hidden":"true"},"(",this.i18n.t("input.optional"),")"))),e("div",{class:{"input-wrapper":true,"input-round":this.round,"input-disabled":this.disabled},onClick:()=>this.input.focus()},this.textPrefix&&e("span",{class:"text-prefix",part:"prefix"},this.textPrefix),this.icon&&!this.iconRight&&e("cat-icon",{icon:this.icon,class:"icon-prefix",size:"l"}),e("div",{class:"input-inner-wrapper"},e("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.max,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&&e("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&&e("cat-icon",{icon:this.icon,class:"icon-suffix",size:"l"}),this.textSuffix&&e("span",{class:"text-suffix",part:"suffix"},this.textSuffix)),this.hintSection)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&e(c,{hint:this.hint,slottedHint:t&&e("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 U(t){return t.split("-")[0]}function Y(t){return t.split("-")[1]}function F(t){return["top","bottom"].includes(U(t))?"x":"y"}function B(t){return t==="y"?"height":"width"}function H(t,e,i){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=F(e);const c=B(a);const l=n[c]/2-r[c]/2;const h=U(e);const u=a==="x";let d;switch(h){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(Y(e)){case"start":d[a]-=l*(i&&u?-1:1);break;case"end":d[a]+=l*(i&&u?-1:1);break}return d}const Q=async(t,e,i)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:o}=i;const a=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:r});let{x:l,y:h}=H(c,n,a);let u=n;let d={};for(let i=0;i<s.length;i++){const{name:f,fn:v}=s[i];const{x:p,y:b,data:m,reset:g}=await v({x:l,y:h,initialPlacement:n,placement:u,strategy:r,middlewareData:d,rects:c,platform:o,elements:{reference:t,floating:e}});l=p!=null?p:l;h=b!=null?b:h;d={...d,[f]:{...d[f],...m}};if(g){if(typeof g==="object"){if(g.placement){u=g.placement}if(g.rects){c=g.rects===true?await o.getElementRects({reference:t,floating:e,strategy:r}):g.rects}({x:l,y:h}=H(c,u,a))}i=-1;continue}}return{x:l,y:h,placement:u,strategy:r,middlewareData:d}};function V(t){return{top:0,right:0,bottom:0,left:0,...t}}function G(t){return typeof t!=="number"?V(t):{top:t,right:t,bottom:t,left:t}}function Z(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function W(t,e){var i;if(e===void 0){e={}}const{x:n,y:r,platform:s,rects:o,elements:a,strategy:c}=t;const{boundary:l="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:d=false,padding:f=0}=e;const v=G(f);const p=u==="floating"?"reference":"floating";const b=a[d?p:u];const m=Z(await s.getClippingRect({element:((i=await(s.isElement==null?void 0:s.isElement(b)))!=null?i:true)?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:h,strategy:c}));const g=Z(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u==="floating"?{...o.floating,x:n,y:r}:o.reference,offsetParent:await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),strategy:c}):o[u]);return{top:m.top-g.top+v.top,bottom:g.bottom-m.bottom+v.bottom,left:m.left-g.left+v.left,right:g.right-m.right+v.right}}const K={left:"right",right:"left",bottom:"top",top:"bottom"};function q(t){return t.replace(/left|right|bottom|top/g,(t=>K[t]))}function J(t,e,i){if(i===void 0){i=false}const n=Y(t);const r=F(t);const s=B(r);let o=r==="x"?n===(i?"end":"start")?"right":"left":n==="start"?"bottom":"top";if(e.reference[s]>e.floating[s]){o=q(o)}return{main:o,cross:q(o)}}const X={start:"end",end:"start"};function tt(t){return t.replace(/start|end/g,(t=>X[t]))}function et(t){const e=q(t);return[tt(t),e,tt(e)]}const it=function(t){if(t===void 0){t={}}return{name:"flip",options:t,async fn(e){var i;const{placement:n,middlewareData:r,rects:s,initialPlacement:o,platform:a,elements:c}=e;const{mainAxis:l=true,crossAxis:h=true,fallbackPlacements:u,fallbackStrategy:d="bestFit",flipAlignment:f=true,...v}=t;const p=U(n);const b=p===o;const m=u||(b||!f?[q(o)]:et(o));const g=[o,...m];const x=await W(e,v);const y=[];let w=((i=r.flip)==null?void 0:i.overflows)||[];if(l){y.push(x[p])}if(h){const{main:t,cross:e}=J(n,s,await(a.isRTL==null?void 0:a.isRTL(c.floating)));y.push(x[t],x[e])}w=[...w,{placement:n,overflows:y}];if(!y.every((t=>t<=0))){var M,_;const t=((M=(_=r.flip)==null?void 0:_.index)!=null?M:0)+1;const e=g[t];if(e){return{data:{index:t,overflows:w},reset:{placement:e}}}let i="bottom";switch(d){case"bestFit":{var I;const t=(I=w.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])==null?void 0:I[0].placement;if(t){i=t}break}case"initialPlacement":i=o;break}if(n!==i){return{reset:{placement:i}}}}return{}}}};function nt(t,e,i,n){if(n===void 0){n=false}const r=U(t);const s=Y(t);const o=F(t)==="x";const a=["left","top"].includes(r)?-1:1;const c=n&&o?-1:1;const l=typeof i==="function"?i({...e,placement:t}):i;let{mainAxis:h,crossAxis:u,alignmentAxis:d}=typeof l==="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...l};if(s&&typeof d==="number"){u=s==="end"?d*-1:d}return o?{x:u*c,y:h*a}:{x:h*a,y:u*c}}const rt=function(t){if(t===void 0){t=0}return{name:"offset",options:t,async fn(e){const{x:i,y:n,placement:r,rects:s,platform:o,elements:a}=e;const c=nt(r,s,t,await(o.isRTL==null?void 0:o.isRTL(a.floating)));return{x:i+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 e=t.ownerDocument;return e?e.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 ht(t){return t instanceof ot(t).Element}function ut(t){return t instanceof ot(t).Node}function dt(t){const e=ot(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ft(t){const{overflow:e,overflowX:i,overflowY:n}=at(t);return/auto|scroll|overlay|hidden/.test(e+n+i)}function vt(t){return["table","td","th"].includes(ct(t))}function pt(t){const e=navigator.userAgent.toLowerCase().includes("firefox");const i=at(t);return i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].includes(i.willChange)||e&&i.willChange==="filter"||e&&(i.filter?i.filter!=="none":false)}function bt(){return!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}const mt=Math.min;const gt=Math.max;const xt=Math.round;function yt(t,e,i){if(e===void 0){e=false}if(i===void 0){i=false}const n=t.getBoundingClientRect();let r=1;let s=1;if(e&<(t)){r=t.offsetWidth>0?xt(n.width)/t.offsetWidth||1:1;s=t.offsetHeight>0?xt(n.height)/t.offsetHeight||1:1}const o=ht(t)?ot(t):window;const a=!bt()&&i;const c=(n.left+(a?o.visualViewport.offsetLeft:0))/r;const l=(n.top+(a?o.visualViewport.offsetTop:0))/s;const h=n.width/r;const u=n.height/s;return{width:h,height:u,top:l,right:c+h,bottom:l+u,left:c,x:c,y:l}}function wt(t){return((ut(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 _t(t){return yt(wt(t)).left+Mt(t).scrollLeft}function It(t){const e=yt(t);return xt(e.width)!==t.offsetWidth||xt(e.height)!==t.offsetHeight}function jt(t,e,i){const n=lt(e);const r=wt(e);const s=yt(t,n&&It(e),i==="fixed");let o={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(n||!n&&i!=="fixed"){if(ct(e)!=="body"||ft(r)){o=Mt(e)}if(lt(e)){const t=yt(e,true);a.x=t.x+e.clientLeft;a.y=t.y+e.clientTop}else if(r){a.x=_t(r)}}return{x:s.left+o.scrollLeft-a.x,y:s.top+o.scrollTop-a.y,width:s.width,height:s.height}}function kt(t){if(ct(t)==="html"){return t}return t.assignedSlot||t.parentNode||(dt(t)?t.host:null)||wt(t)}function Nt(t){if(!lt(t)||getComputedStyle(t).position==="fixed"){return null}return t.offsetParent}function At(t){let e=kt(t);if(dt(e)){e=e.host}while(lt(e)&&!["html","body"].includes(ct(e))){if(pt(e)){return e}else{e=e.parentNode}}return null}function zt(t){const e=ot(t);let i=Nt(t);while(i&&vt(i)&&getComputedStyle(i).position==="static"){i=Nt(i)}if(i&&(ct(i)==="html"||ct(i)==="body"&&getComputedStyle(i).position==="static"&&!pt(i))){return e}return i||At(t)||e}function Ot(t){if(lt(t)){return{width:t.offsetWidth,height:t.offsetHeight}}const e=yt(t);return{width:e.width,height:e.height}}function Et(t){let{rect:e,offsetParent:i,strategy:n}=t;const r=lt(i);const s=wt(i);if(i===s){return e}let o={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed"){if(ct(i)!=="body"||ft(s)){o=Mt(i)}if(lt(i)){const t=yt(i,true);a.x=t.x+i.clientLeft;a.y=t.y+i.clientTop}}return{...e,x:e.x-o.scrollLeft+a.x,y:e.y-o.scrollTop+a.y}}function Ct(t,e){const i=ot(t);const n=wt(t);const r=i.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=bt();if(t||!t&&e==="fixed"){a=r.offsetLeft;c=r.offsetTop}}return{width:s,height:o,x:a,y:c}}function Dt(t){var e;const i=wt(t);const n=Mt(t);const r=(e=t.ownerDocument)==null?void 0:e.body;const s=gt(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0);const o=gt(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-n.scrollLeft+_t(t);const c=-n.scrollTop;if(at(r||i).direction==="rtl"){a+=gt(i.clientWidth,r?r.clientWidth:0)-s}return{width:s,height:o,x:a,y:c}}function Tt(t){const e=kt(t);if(["html","body","#document"].includes(ct(e))){return t.ownerDocument.body}if(lt(e)&&ft(e)){return e}return Tt(e)}function St(t,e){var i;if(e===void 0){e=[]}const n=Tt(t);const r=n===((i=t.ownerDocument)==null?void 0:i.body);const s=ot(n);const o=r?[s].concat(s.visualViewport||[],ft(n)?n:[]):n;const a=e.concat(o);return r?a:a.concat(St(kt(o)))}function Lt(t,e){const i=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e)){return true}else if(i&&dt(i)){let i=e;do{if(i&&t===i){return true}i=i.parentNode||i.host}while(i)}return false}function Rt(t,e){const i=yt(t,false,e==="fixed");const n=i.top+t.clientTop;const r=i.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,e,i){if(e==="viewport"){return Z(Ct(t,i))}if(ht(e)){return Rt(e,i)}return Z(Dt(wt(t)))}function Pt(t){const e=St(t);const i=["absolute","fixed"].includes(at(t).position);const n=i&<(t)?zt(t):t;if(!ht(n)){return[]}return e.filter((t=>ht(t)&&Lt(t,n)&&ct(t)!=="body"))}function Ut(t){let{element:e,boundary:i,rootBoundary:n,strategy:r}=t;const s=i==="clippingAncestors"?Pt(e):[].concat(i);const o=[...s,n];const a=o[0];const c=o.reduce(((t,i)=>{const n=$t(e,i,r);t.top=gt(n.top,t.top);t.right=mt(n.right,t.right);t.bottom=mt(n.bottom,t.bottom);t.left=gt(n.left,t.left);return t}),$t(e,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}const Yt={getClippingRect:Ut,convertOffsetParentRelativeRectToViewportRelativeRect:Et,isElement:ht,getDimensions:Ot,getOffsetParent:zt,getDocumentElement:wt,getElementRects:t=>{let{reference:e,floating:i,strategy:n}=t;return{reference:jt(e,zt(i),n),floating:{...Ot(i),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>at(t).direction==="rtl"};function Ft(t,e,i,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 h=s&&!a;const u=o&&!a;const d=l||h?[...ht(t)?St(t):[],...St(e)]:[];d.forEach((t=>{l&&t.addEventListener("scroll",i,{passive:true});h&&t.addEventListener("resize",i)}));let f=null;if(u){f=new ResizeObserver(i);ht(t)&&f.observe(t);f.observe(e)}let v;let p=a?yt(t):null;if(a){b()}function b(){if(c){return}const e=yt(t);if(p&&(e.x!==p.x||e.y!==p.y||e.width!==p.width||e.height!==p.height)){i()}p=e;v=requestAnimationFrame(b)}return()=>{var t;c=true;d.forEach((t=>{l&&t.removeEventListener("scroll",i);h&&t.removeEventListener("resize",i)}));(t=f)==null?void 0:t.disconnect();f=null;if(a){cancelAnimationFrame(v)}}}const Bt=(t,e,i)=>Q(t,e,{platform:Yt,...i})
|
|
1
|
+
import{r as t,h as e,H as i,c as n,g as r}from"./p-659073b5.js";import{l as s,c as o,g as a}from"./p-2ad6f8d8.js";import{C as c}from"./p-6fce43dd.js";import{a as l,C as h,N as u}from"./p-8121572a.js";const d=":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;color:rgb(var(--text));background-color:rgba(var(--bg), 0.1);box-shadow:inset 0 0 0 1px rgba(var(--border), 0.2);border-radius:0.25rem;padding:0.75rem 1rem}::slotted(:last-child){margin-bottom:0 !important}.alert-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--text:var(--cat-primary-text, 32, 127, 138);--border:var(--cat-primary-text, 32, 127, 138)}.alert-secondary{--bg:105, 118, 135;--text:0, 0, 0;--border:105, 118, 135}.alert-success{--bg:0, 132, 88;--text:0, 132, 88;--border:0, 132, 88}.alert-warning{--bg:255, 206, 128;--text:159, 97, 0;--border:159, 97, 0}.alert-danger{--bg:217, 52, 13;--text:217, 52, 13;--border:217, 52, 13}";const f=class{constructor(e){t(this,e);this.color="primary"}render(){return e(i,{tabindex:"0",role:this.role},e("div",{part:"alert",class:{alert:true,[`alert-${this.color}`]:Boolean(this.color)}},e("slot",null)))}get role(){switch(this.color){case"danger":case"warning":return"alert";default:return"status"}}};f.style=d;const v=t=>new Promise(((e,i)=>{const n=new Image;n.addEventListener("load",e);n.addEventListener("error",i);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 m=class{constructor(e){t(this,e);this.size="m";this.round=false;this.label=""}onSrcChanged(t){if(t){v(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 e("a",{href:this.url,target:this.urlTarget,style:this.cssStyle,class:this.cssClass,"aria-label":this.label},this.content)}else{return e("span",{style:this.cssStyle,class:this.cssClass,"aria-label":this.label},this.content)}}get content(){return!this.backgroundImage?[this.icon?e("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,e;return(t=this.initials)!==null&&t!==void 0?t:((e=this.label)!==null&&e!==void 0?e:"").split(" ").map((t=>t[0])).join("")}static get watchers(){return{src:["onSrcChanged"]}}};m.style=p;const b=":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:0.75rem;font-size:12px;padding:0 0.25rem}.badge-s{height:1.5rem;min-width:1rem;font-size:12px;padding:0 0.5rem}.badge-m{height:2rem;min-width:1.25rem;font-size:13px;padding:0 0.75rem}.badge-l{height:2.5rem;min-width:1.5rem;font-size:15px;padding:0 1rem}.badge-xl{height:3rem;min-width:1.75rem;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 g=class{constructor(e){t(this,e);this.variant="filled";this.color="primary";this.size="m";this.round=false;this.pulse=false}render(){return e("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)}},e("slot",null))}};g.style=b;const x=["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"&&x.includes(t)}let M;try{M=typeof Intl!=="undefined"&&Intl.v8BreakIterator}catch(t){M=false}class _{constructor(){this.EDGE=/(edge)/i.test(navigator.userAgent);this.TRIDENT=/(msie|trident)/i.test(navigator.userAgent);this.BLINK=!!(window.chrome||M)&&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 j=new Set;let I;class k{constructor(){this._platform=new _;this._matchMedia=window.matchMedia.bind(window)}matchMedia(t){if(this._platform.WEBKIT||this._platform.BLINK){z(t)}return this._matchMedia(t)}}function z(t){if(j.has(t)){return}try{if(!I){I=document.createElement("style");I.setAttribute("type","text/css");document.head.appendChild(I)}if(I.sheet){I.sheet.insertRule(`@media ${t} {body{ }}`,0);j.add(t)}}catch(t){s.error(t)}}const N=':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-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 A=class{constructor(e){t(this,e);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 e,i;(e=this.mediaQueryList)===null||e===void 0?void 0:e.removeEventListener("change",this.mediaQueryListener);this.mediaQueryList=undefined;this.mediaQueryListener=undefined;if(w(t)){(i=this.mediaMatcher)!==null&&i!==void 0?i:this.mediaMatcher=new k;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 e("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 e("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?e("cat-icon",{icon:this.icon,size:this.iconSize,class:"cat-button-prefix",part:"prefix"}):null,this.isIconButton?e("cat-icon",{icon:this.icon,size:this.iconSize}):e("span",{class:"cat-button-content",part:"content"},e("slot",null)),this.hasSuffixIcon?e("cat-icon",{icon:this.icon,size:this.iconSize,class:"cat-button-suffix",part:"suffix"}):null,this.loading?e("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"]}}};A.style=N;const O=":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 E=class{constructor(e){t(this,e)}render(){return e(i,null,e("slot",null))}};E.style=O;const C=".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}.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 D=0;const T=class{constructor(e){t(this,e);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.id=`cat-checkbox-${D++}`;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 e(i,null,e("label",{htmlFor:this.id,class:{"is-hidden":this.labelHidden,"is-disabled":this.disabled,"label-left":this.labelLeft}},e("input",{ref:t=>this.input=t,id:this.id,type:"checkbox",name:this.name,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)}),e("span",{class:"box","aria-hidden":"true",part:"checkbox"},e("svg",{class:"check",viewBox:"0 0 12 10"},e("polyline",{points:"1.5 6 4.5 9 10.5 1"})),e("svg",{class:"dash",viewBox:"0 0 12 10"},e("polyline",{points:"1.5 5 10.5 5"}))),e("span",{class:"label",part:"label"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label)),this.hintSection)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&e(c,{hint:this.hint,slottedHint:t&&e("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)}};T.style=C;const S=":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(e){t(this,e);this.iconRegistry=l.getInstance();this.icon="";this.size="m"}render(){return e("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=S;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;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(e){t(this,e);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.i18n=h.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 e(i,null,(this.hasSlottedLabel||this.label)&&e("label",{htmlFor:this.id,class:{hidden:this.labelHidden}},e("span",{part:"label"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label,!this.required&&e("span",{class:"input-optional","aria-hidden":"true"},"(",this.i18n.t("input.optional"),")"))),e("div",{class:{"input-wrapper":true,"input-round":this.round,"input-disabled":this.disabled},onClick:()=>this.input.focus()},this.textPrefix&&e("span",{class:"text-prefix",part:"prefix"},this.textPrefix),this.icon&&!this.iconRight&&e("cat-icon",{icon:this.icon,class:"icon-prefix",size:"l"}),e("div",{class:"input-inner-wrapper"},e("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.max,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&&e("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&&e("cat-icon",{icon:this.icon,class:"icon-suffix",size:"l"}),this.textSuffix&&e("span",{class:"text-suffix",part:"suffix"},this.textSuffix)),this.hintSection)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&e(c,{hint:this.hint,slottedHint:t&&e("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 U(t){return t.split("-")[0]}function Y(t){return t.split("-")[1]}function F(t){return["top","bottom"].includes(U(t))?"x":"y"}function B(t){return t==="y"?"height":"width"}function H(t,e,i){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=F(e);const c=B(a);const l=n[c]/2-r[c]/2;const h=U(e);const u=a==="x";let d;switch(h){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(Y(e)){case"start":d[a]-=l*(i&&u?-1:1);break;case"end":d[a]+=l*(i&&u?-1:1);break}return d}const Q=async(t,e,i)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:o}=i;const a=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:r});let{x:l,y:h}=H(c,n,a);let u=n;let d={};for(let i=0;i<s.length;i++){const{name:f,fn:v}=s[i];const{x:p,y:m,data:b,reset:g}=await v({x:l,y:h,initialPlacement:n,placement:u,strategy:r,middlewareData:d,rects:c,platform:o,elements:{reference:t,floating:e}});l=p!=null?p:l;h=m!=null?m:h;d={...d,[f]:{...d[f],...b}};if(g){if(typeof g==="object"){if(g.placement){u=g.placement}if(g.rects){c=g.rects===true?await o.getElementRects({reference:t,floating:e,strategy:r}):g.rects}({x:l,y:h}=H(c,u,a))}i=-1;continue}}return{x:l,y:h,placement:u,strategy:r,middlewareData:d}};function V(t){return{top:0,right:0,bottom:0,left:0,...t}}function G(t){return typeof t!=="number"?V(t):{top:t,right:t,bottom:t,left:t}}function Z(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function W(t,e){var i;if(e===void 0){e={}}const{x:n,y:r,platform:s,rects:o,elements:a,strategy:c}=t;const{boundary:l="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:d=false,padding:f=0}=e;const v=G(f);const p=u==="floating"?"reference":"floating";const m=a[d?p:u];const b=Z(await s.getClippingRect({element:((i=await(s.isElement==null?void 0:s.isElement(m)))!=null?i:true)?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:h,strategy:c}));const g=Z(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u==="floating"?{...o.floating,x:n,y:r}:o.reference,offsetParent:await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),strategy:c}):o[u]);return{top:b.top-g.top+v.top,bottom:g.bottom-b.bottom+v.bottom,left:b.left-g.left+v.left,right:g.right-b.right+v.right}}const K={left:"right",right:"left",bottom:"top",top:"bottom"};function q(t){return t.replace(/left|right|bottom|top/g,(t=>K[t]))}function J(t,e,i){if(i===void 0){i=false}const n=Y(t);const r=F(t);const s=B(r);let o=r==="x"?n===(i?"end":"start")?"right":"left":n==="start"?"bottom":"top";if(e.reference[s]>e.floating[s]){o=q(o)}return{main:o,cross:q(o)}}const X={start:"end",end:"start"};function tt(t){return t.replace(/start|end/g,(t=>X[t]))}function et(t){const e=q(t);return[tt(t),e,tt(e)]}const it=function(t){if(t===void 0){t={}}return{name:"flip",options:t,async fn(e){var i;const{placement:n,middlewareData:r,rects:s,initialPlacement:o,platform:a,elements:c}=e;const{mainAxis:l=true,crossAxis:h=true,fallbackPlacements:u,fallbackStrategy:d="bestFit",flipAlignment:f=true,...v}=t;const p=U(n);const m=p===o;const b=u||(m||!f?[q(o)]:et(o));const g=[o,...b];const x=await W(e,v);const y=[];let w=((i=r.flip)==null?void 0:i.overflows)||[];if(l){y.push(x[p])}if(h){const{main:t,cross:e}=J(n,s,await(a.isRTL==null?void 0:a.isRTL(c.floating)));y.push(x[t],x[e])}w=[...w,{placement:n,overflows:y}];if(!y.every((t=>t<=0))){var M,_;const t=((M=(_=r.flip)==null?void 0:_.index)!=null?M:0)+1;const e=g[t];if(e){return{data:{index:t,overflows:w},reset:{placement:e}}}let i="bottom";switch(d){case"bestFit":{var j;const t=(j=w.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])==null?void 0:j[0].placement;if(t){i=t}break}case"initialPlacement":i=o;break}if(n!==i){return{reset:{placement:i}}}}return{}}}};function nt(t,e,i,n){if(n===void 0){n=false}const r=U(t);const s=Y(t);const o=F(t)==="x";const a=["left","top"].includes(r)?-1:1;const c=n&&o?-1:1;const l=typeof i==="function"?i({...e,placement:t}):i;let{mainAxis:h,crossAxis:u,alignmentAxis:d}=typeof l==="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...l};if(s&&typeof d==="number"){u=s==="end"?d*-1:d}return o?{x:u*c,y:h*a}:{x:h*a,y:u*c}}const rt=function(t){if(t===void 0){t=0}return{name:"offset",options:t,async fn(e){const{x:i,y:n,placement:r,rects:s,platform:o,elements:a}=e;const c=nt(r,s,t,await(o.isRTL==null?void 0:o.isRTL(a.floating)));return{x:i+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 e=t.ownerDocument;return e?e.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 ht(t){return t instanceof ot(t).Element}function ut(t){return t instanceof ot(t).Node}function dt(t){const e=ot(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ft(t){const{overflow:e,overflowX:i,overflowY:n}=at(t);return/auto|scroll|overlay|hidden/.test(e+n+i)}function vt(t){return["table","td","th"].includes(ct(t))}function pt(t){const e=navigator.userAgent.toLowerCase().includes("firefox");const i=at(t);return i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].includes(i.willChange)||e&&i.willChange==="filter"||e&&(i.filter?i.filter!=="none":false)}function mt(){return!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}const bt=Math.min;const gt=Math.max;const xt=Math.round;function yt(t,e,i){if(e===void 0){e=false}if(i===void 0){i=false}const n=t.getBoundingClientRect();let r=1;let s=1;if(e&<(t)){r=t.offsetWidth>0?xt(n.width)/t.offsetWidth||1:1;s=t.offsetHeight>0?xt(n.height)/t.offsetHeight||1:1}const o=ht(t)?ot(t):window;const a=!mt()&&i;const c=(n.left+(a?o.visualViewport.offsetLeft:0))/r;const l=(n.top+(a?o.visualViewport.offsetTop:0))/s;const h=n.width/r;const u=n.height/s;return{width:h,height:u,top:l,right:c+h,bottom:l+u,left:c,x:c,y:l}}function wt(t){return((ut(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 _t(t){return yt(wt(t)).left+Mt(t).scrollLeft}function jt(t){const e=yt(t);return xt(e.width)!==t.offsetWidth||xt(e.height)!==t.offsetHeight}function It(t,e,i){const n=lt(e);const r=wt(e);const s=yt(t,n&&jt(e),i==="fixed");let o={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(n||!n&&i!=="fixed"){if(ct(e)!=="body"||ft(r)){o=Mt(e)}if(lt(e)){const t=yt(e,true);a.x=t.x+e.clientLeft;a.y=t.y+e.clientTop}else if(r){a.x=_t(r)}}return{x:s.left+o.scrollLeft-a.x,y:s.top+o.scrollTop-a.y,width:s.width,height:s.height}}function kt(t){if(ct(t)==="html"){return t}return t.assignedSlot||t.parentNode||(dt(t)?t.host:null)||wt(t)}function zt(t){if(!lt(t)||getComputedStyle(t).position==="fixed"){return null}return t.offsetParent}function Nt(t){let e=kt(t);if(dt(e)){e=e.host}while(lt(e)&&!["html","body"].includes(ct(e))){if(pt(e)){return e}else{e=e.parentNode}}return null}function At(t){const e=ot(t);let i=zt(t);while(i&&vt(i)&&getComputedStyle(i).position==="static"){i=zt(i)}if(i&&(ct(i)==="html"||ct(i)==="body"&&getComputedStyle(i).position==="static"&&!pt(i))){return e}return i||Nt(t)||e}function Ot(t){if(lt(t)){return{width:t.offsetWidth,height:t.offsetHeight}}const e=yt(t);return{width:e.width,height:e.height}}function Et(t){let{rect:e,offsetParent:i,strategy:n}=t;const r=lt(i);const s=wt(i);if(i===s){return e}let o={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed"){if(ct(i)!=="body"||ft(s)){o=Mt(i)}if(lt(i)){const t=yt(i,true);a.x=t.x+i.clientLeft;a.y=t.y+i.clientTop}}return{...e,x:e.x-o.scrollLeft+a.x,y:e.y-o.scrollTop+a.y}}function Ct(t,e){const i=ot(t);const n=wt(t);const r=i.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&&e==="fixed"){a=r.offsetLeft;c=r.offsetTop}}return{width:s,height:o,x:a,y:c}}function Dt(t){var e;const i=wt(t);const n=Mt(t);const r=(e=t.ownerDocument)==null?void 0:e.body;const s=gt(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0);const o=gt(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-n.scrollLeft+_t(t);const c=-n.scrollTop;if(at(r||i).direction==="rtl"){a+=gt(i.clientWidth,r?r.clientWidth:0)-s}return{width:s,height:o,x:a,y:c}}function Tt(t){const e=kt(t);if(["html","body","#document"].includes(ct(e))){return t.ownerDocument.body}if(lt(e)&&ft(e)){return e}return Tt(e)}function St(t,e){var i;if(e===void 0){e=[]}const n=Tt(t);const r=n===((i=t.ownerDocument)==null?void 0:i.body);const s=ot(n);const o=r?[s].concat(s.visualViewport||[],ft(n)?n:[]):n;const a=e.concat(o);return r?a:a.concat(St(kt(o)))}function Lt(t,e){const i=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e)){return true}else if(i&&dt(i)){let i=e;do{if(i&&t===i){return true}i=i.parentNode||i.host}while(i)}return false}function Rt(t,e){const i=yt(t,false,e==="fixed");const n=i.top+t.clientTop;const r=i.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,e,i){if(e==="viewport"){return Z(Ct(t,i))}if(ht(e)){return Rt(e,i)}return Z(Dt(wt(t)))}function Pt(t){const e=St(t);const i=["absolute","fixed"].includes(at(t).position);const n=i&<(t)?At(t):t;if(!ht(n)){return[]}return e.filter((t=>ht(t)&&Lt(t,n)&&ct(t)!=="body"))}function Ut(t){let{element:e,boundary:i,rootBoundary:n,strategy:r}=t;const s=i==="clippingAncestors"?Pt(e):[].concat(i);const o=[...s,n];const a=o[0];const c=o.reduce(((t,i)=>{const n=$t(e,i,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(e,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}const Yt={getClippingRect:Ut,convertOffsetParentRelativeRectToViewportRelativeRect:Et,isElement:ht,getDimensions:Ot,getOffsetParent:At,getDocumentElement:wt,getElementRects:t=>{let{reference:e,floating:i,strategy:n}=t;return{reference:It(e,At(i),n),floating:{...Ot(i),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>at(t).direction==="rtl"};function Ft(t,e,i,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 h=s&&!a;const u=o&&!a;const d=l||h?[...ht(t)?St(t):[],...St(e)]:[];d.forEach((t=>{l&&t.addEventListener("scroll",i,{passive:true});h&&t.addEventListener("resize",i)}));let f=null;if(u){f=new ResizeObserver(i);ht(t)&&f.observe(t);f.observe(e)}let v;let p=a?yt(t):null;if(a){m()}function m(){if(c){return}const e=yt(t);if(p&&(e.x!==p.x||e.y!==p.y||e.width!==p.width||e.height!==p.height)){i()}p=e;v=requestAnimationFrame(m)}return()=>{var t;c=true;d.forEach((t=>{l&&t.removeEventListener("scroll",i);h&&t.removeEventListener("resize",i)}));(t=f)==null?void 0:t.disconnect();f=null;if(a){cancelAnimationFrame(v)}}}const Bt=(t,e,i)=>Q(t,e,{platform:Yt,...i})
|
|
2
2
|
/*!
|
|
3
3
|
* tabbable 5.3.1
|
|
4
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 Qt=Ht.join(",");var Vt=typeof Element==="undefined";var Gt=Vt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;var Zt=!Vt&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument};var Wt=function t(e,i,n){var r=Array.prototype.slice.apply(e.querySelectorAll(Qt));if(i&&Gt.call(e,Qt)){r.unshift(e)}r=r.filter(n);return r};var Kt=function t(e,i,n){var r=[];var s=Array.from(e);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 h=Gt.call(o,Qt);if(h&&n.filter(o)&&(i||!e.includes(o))){r.push(o)}var u=o.shadowRoot||typeof n.getShadowRoot==="function"&&n.getShadowRoot(o);if(u){var d=t(u===true?o.children:u.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 qt=function t(e,i){if(e.tabIndex<0){if((i||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))){return 0}}return e.tabIndex};var Jt=function t(e,i){return e.tabIndex===i.tabIndex?e.documentOrder-i.documentOrder:e.tabIndex-i.tabIndex};var Xt=function t(e){return e.tagName==="INPUT"};var te=function t(e){return Xt(e)&&e.type==="hidden"};var ee=function t(e){var i=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some((function(t){return t.tagName==="SUMMARY"}));return i};var ie=function t(e,i){for(var n=0;n<e.length;n++){if(e[n].checked&&e[n].form===i){return e[n]}}};var ne=function t(e){if(!e.name){return true}var i=e.form||Zt(e);var n=function t(e){return i.querySelectorAll('input[type="radio"][name="'+e+'"]')};var r;if(typeof window!=="undefined"&&typeof window.CSS!=="undefined"&&typeof window.CSS.escape==="function"){r=n(window.CSS.escape(e.name))}else{try{r=n(e.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=ie(r,e.form);return!s||s===e};var re=function t(e){return Xt(e)&&e.type==="radio"};var se=function t(e){return re(e)&&!ne(e)};var oe=function t(e){var i=e.getBoundingClientRect(),n=i.width,r=i.height;return n===0&&r===0};var ae=function t(e,i){var n=i.displayCheck,r=i.getShadowRoot;if(getComputedStyle(e).visibility==="hidden"){return true}var s=Gt.call(e,"details>summary:first-of-type");var o=s?e.parentElement:e;if(Gt.call(o,"details:not([open]) *")){return true}if(!n||n==="full"){if(typeof r==="function"){var a=e;while(e){var c=e.parentElement;var l=Zt(e);if(c&&!c.shadowRoot&&r(c)===true){return oe(e)}else if(e.assignedSlot){e=e.assignedSlot}else if(!c&&l!==e.ownerDocument){e=l.host}else{e=c}}e=a}return!e.getClientRects().length}else if(n==="non-zero-area"){return oe(e)}return false};var ce=function t(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)){var i=e.parentElement;while(i){if(i.tagName==="FIELDSET"&&i.disabled){for(var n=0;n<i.children.length;n++){var r=i.children.item(n);if(r.tagName==="LEGEND"){return Gt.call(i,"fieldset[disabled] *")?true:!r.contains(e)}}return true}i=i.parentElement}}return false};var le=function t(e,i){if(i.disabled||te(i)||ae(i,e)||ee(i)||ce(i)){return false}return true};var he=function t(e,i){if(se(i)||qt(i)<0||!le(e,i)){return false}return true};var ue=function t(e){var i=[];var n=[];e.forEach((function(e,r){var s=!!e.scope;var o=s?e.scope:e;var a=qt(o,s);var c=s?t(e.candidates):o;if(a===0){s?i.push.apply(i,c):i.push(o)}else{n.push({documentOrder:r,tabIndex:a,item:e,isScope:s,content:c})}}));return n.sort(Jt).reduce((function(t,e){e.isScope?t.push.apply(t,e.content):t.push(e.content);return t}),[]).concat(i)};var de=function t(e,i){i=i||{};var n;if(i.getShadowRoot){n=Kt([e],i.includeContainer,{filter:he.bind(null,i),flatten:false,getShadowRoot:i.getShadowRoot})}else{n=Wt(e,i.includeContainer,he.bind(null,i))}return ue(n)};var fe=function t(e,i){i=i||{};var n;if(i.getShadowRoot){n=Kt([e],i.includeContainer,{filter:le.bind(null,i),flatten:true,getShadowRoot:i.getShadowRoot})}else{n=Wt(e,i.includeContainer,le.bind(null,i))}return n};var ve=function t(e,i){i=i||{};if(!e){throw new Error("No node provided")}if(Gt.call(e,Qt)===false){return false}return he(i,e)};var pe=Ht.concat("iframe").join(",");var
|
|
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 Qt=Ht.join(",");var Vt=typeof Element==="undefined";var Gt=Vt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;var Zt=!Vt&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument};var Wt=function t(e,i,n){var r=Array.prototype.slice.apply(e.querySelectorAll(Qt));if(i&&Gt.call(e,Qt)){r.unshift(e)}r=r.filter(n);return r};var Kt=function t(e,i,n){var r=[];var s=Array.from(e);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 h=Gt.call(o,Qt);if(h&&n.filter(o)&&(i||!e.includes(o))){r.push(o)}var u=o.shadowRoot||typeof n.getShadowRoot==="function"&&n.getShadowRoot(o);if(u){var d=t(u===true?o.children:u.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 qt=function t(e,i){if(e.tabIndex<0){if((i||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))){return 0}}return e.tabIndex};var Jt=function t(e,i){return e.tabIndex===i.tabIndex?e.documentOrder-i.documentOrder:e.tabIndex-i.tabIndex};var Xt=function t(e){return e.tagName==="INPUT"};var te=function t(e){return Xt(e)&&e.type==="hidden"};var ee=function t(e){var i=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some((function(t){return t.tagName==="SUMMARY"}));return i};var ie=function t(e,i){for(var n=0;n<e.length;n++){if(e[n].checked&&e[n].form===i){return e[n]}}};var ne=function t(e){if(!e.name){return true}var i=e.form||Zt(e);var n=function t(e){return i.querySelectorAll('input[type="radio"][name="'+e+'"]')};var r;if(typeof window!=="undefined"&&typeof window.CSS!=="undefined"&&typeof window.CSS.escape==="function"){r=n(window.CSS.escape(e.name))}else{try{r=n(e.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=ie(r,e.form);return!s||s===e};var re=function t(e){return Xt(e)&&e.type==="radio"};var se=function t(e){return re(e)&&!ne(e)};var oe=function t(e){var i=e.getBoundingClientRect(),n=i.width,r=i.height;return n===0&&r===0};var ae=function t(e,i){var n=i.displayCheck,r=i.getShadowRoot;if(getComputedStyle(e).visibility==="hidden"){return true}var s=Gt.call(e,"details>summary:first-of-type");var o=s?e.parentElement:e;if(Gt.call(o,"details:not([open]) *")){return true}if(!n||n==="full"){if(typeof r==="function"){var a=e;while(e){var c=e.parentElement;var l=Zt(e);if(c&&!c.shadowRoot&&r(c)===true){return oe(e)}else if(e.assignedSlot){e=e.assignedSlot}else if(!c&&l!==e.ownerDocument){e=l.host}else{e=c}}e=a}return!e.getClientRects().length}else if(n==="non-zero-area"){return oe(e)}return false};var ce=function t(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)){var i=e.parentElement;while(i){if(i.tagName==="FIELDSET"&&i.disabled){for(var n=0;n<i.children.length;n++){var r=i.children.item(n);if(r.tagName==="LEGEND"){return Gt.call(i,"fieldset[disabled] *")?true:!r.contains(e)}}return true}i=i.parentElement}}return false};var le=function t(e,i){if(i.disabled||te(i)||ae(i,e)||ee(i)||ce(i)){return false}return true};var he=function t(e,i){if(se(i)||qt(i)<0||!le(e,i)){return false}return true};var ue=function t(e){var i=[];var n=[];e.forEach((function(e,r){var s=!!e.scope;var o=s?e.scope:e;var a=qt(o,s);var c=s?t(e.candidates):o;if(a===0){s?i.push.apply(i,c):i.push(o)}else{n.push({documentOrder:r,tabIndex:a,item:e,isScope:s,content:c})}}));return n.sort(Jt).reduce((function(t,e){e.isScope?t.push.apply(t,e.content):t.push(e.content);return t}),[]).concat(i)};var de=function t(e,i){i=i||{};var n;if(i.getShadowRoot){n=Kt([e],i.includeContainer,{filter:he.bind(null,i),flatten:false,getShadowRoot:i.getShadowRoot})}else{n=Wt(e,i.includeContainer,he.bind(null,i))}return ue(n)};var fe=function t(e,i){i=i||{};var n;if(i.getShadowRoot){n=Kt([e],i.includeContainer,{filter:le.bind(null,i),flatten:true,getShadowRoot:i.getShadowRoot})}else{n=Wt(e,i.includeContainer,le.bind(null,i))}return n};var ve=function t(e,i){i=i||{};if(!e){throw new Error("No node provided")}if(Gt.call(e,Qt)===false){return false}return he(i,e)};var pe=Ht.concat("iframe").join(",");var me=function t(e,i){i=i||{};if(!e){throw new Error("No node provided")}if(Gt.call(e,pe)===false){return false}return le(i,e)};
|
|
6
6
|
/*!
|
|
7
7
|
* focus-trap 6.8.1
|
|
8
8
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
9
|
-
*/function me(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function ge(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?me(Object(i),!0).forEach((function(e){xe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):me(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function xe(t,e,i){if(e in t){Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true})}else{t[e]=i}return t}var ye=function(){var t=[];return{activateTrap:function e(i){if(t.length>0){var n=t[t.length-1];if(n!==i){n.pause()}}var r=t.indexOf(i);if(r===-1){t.push(i)}else{t.splice(r,1);t.push(i)}},deactivateTrap:function e(i){var n=t.indexOf(i);if(n!==-1){t.splice(n,1)}if(t.length>0){t[t.length-1].unpause()}}}}();var we=function t(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select==="function"};var Me=function t(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27};var _e=function t(e){return e.key==="Tab"||e.keyCode===9};var Ie=function t(e){return setTimeout(e,0)};var je=function t(e,i){var n=-1;e.every((function(t,e){if(i(t)){n=e;return false}return true}));return n};var ke=function t(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++){n[r-1]=arguments[r]}return typeof e==="function"?e.apply(void 0,n):e};var Ne=function t(e){return e.target.shadowRoot&&typeof e.composedPath==="function"?e.composedPath()[0]:e.target};var Ae=function t(e,i){var n=(i===null||i===void 0?void 0:i.document)||document;var r=ge({returnFocusOnDeactivate:true,escapeDeactivates:true,delayInitialFocus:true},i);var s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:false,paused:false,delayInitialFocusTimer:undefined};var o;var a=function t(e,i,n){return e&&e[i]!==undefined?e[i]:r[n||i]};var c=function t(e){return s.containerGroups.findIndex((function(t){var i=t.container,n=t.tabbableNodes;return i.contains(e)||n.find((function(t){return t===e}))}))};var l=function t(e){var i=r[e];if(typeof i==="function"){for(var s=arguments.length,o=new Array(s>1?s-1:0),a=1;a<s;a++){o[a-1]=arguments[a]}i=i.apply(void 0,o)}if(!i){if(i===undefined||i===false){return i}throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=i;if(typeof i==="string"){c=n.querySelector(i);if(!c){throw new Error("`".concat(e,"` as selector refers to no known node"))}}return c};var h=function t(){var e=l("initialFocus");if(e===false){return false}if(e===undefined){if(c(n.activeElement)>=0){e=n.activeElement}else{var i=s.tabbableGroups[0];var r=i&&i.firstTabbableNode;e=r||l("fallbackFocus")}}if(!e){throw new Error("Your focus-trap needs to have at least one focusable element")}return e};var u=function t(){s.containerGroups=s.containers.map((function(t){var e=de(t,r.tabbableOptions);var i=fe(t,r.tabbableOptions);return{container:t,tabbableNodes:e,focusableNodes:i,firstTabbableNode:e.length>0?e[0]:null,lastTabbableNode:e.length>0?e[e.length-1]:null,nextTabbableNode:function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var s=i.findIndex((function(t){return t===e}));if(s<0){return undefined}if(n){return i.slice(s+1).find((function(t){return ve(t,r.tabbableOptions)}))}return i.slice(0,s).reverse().find((function(t){return ve(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(e){if(e===false){return}if(e===n.activeElement){return}if(!e||!e.focus){t(h());return}e.focus({preventScroll:!!r.preventScroll});s.mostRecentlyFocusedNode=e;if(we(e)){e.select()}};var f=function t(e){var i=l("setReturnFocus",e);return i?i:i===false?false:e};var v=function t(e){var i=Ne(e);if(c(i)>=0){return}if(ke(r.clickOutsideDeactivates,e)){o.deactivate({returnFocus:r.returnFocusOnDeactivate&&!be(i,r.tabbableOptions)});return}if(ke(r.allowOutsideClick,e)){return}e.preventDefault()};var p=function t(e){var i=Ne(e);var n=c(i)>=0;if(n||i instanceof Document){if(n){s.mostRecentlyFocusedNode=i}}else{e.stopImmediatePropagation();d(s.mostRecentlyFocusedNode||h())}};var b=function t(e){var i=Ne(e);u();var n=null;if(s.tabbableGroups.length>0){var o=c(i);var a=o>=0?s.containerGroups[o]:undefined;if(o<0){if(e.shiftKey){n=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode}else{n=s.tabbableGroups[0].firstTabbableNode}}else if(e.shiftKey){var h=je(s.tabbableGroups,(function(t){var e=t.firstTabbableNode;return i===e}));if(h<0&&(a.container===i||be(i,r.tabbableOptions)&&!ve(i,r.tabbableOptions)&&!a.nextTabbableNode(i,false))){h=o}if(h>=0){var f=h===0?s.tabbableGroups.length-1:h-1;var v=s.tabbableGroups[f];n=v.lastTabbableNode}}else{var p=je(s.tabbableGroups,(function(t){var e=t.lastTabbableNode;return i===e}));if(p<0&&(a.container===i||be(i,r.tabbableOptions)&&!ve(i,r.tabbableOptions)&&!a.nextTabbableNode(i))){p=o}if(p>=0){var b=p===s.tabbableGroups.length-1?0:p+1;var m=s.tabbableGroups[b];n=m.firstTabbableNode}}}else{n=l("fallbackFocus")}if(n){e.preventDefault();d(n)}};var m=function t(e){if(Me(e)&&ke(r.escapeDeactivates,e)!==false){e.preventDefault();o.deactivate();return}if(_e(e)){b(e);return}};var g=function t(e){if(ke(r.clickOutsideDeactivates,e)){return}var i=Ne(e);if(c(i)>=0){return}if(ke(r.allowOutsideClick,e)){return}e.preventDefault();e.stopImmediatePropagation()};var x=function t(){if(!s.active){return}ye.activateTrap(o);s.delayInitialFocusTimer=r.delayInitialFocus?Ie((function(){d(h())})):d(h());n.addEventListener("focusin",p,true);n.addEventListener("mousedown",v,{capture:true,passive:false});n.addEventListener("touchstart",v,{capture:true,passive:false});n.addEventListener("click",g,{capture:true,passive:false});n.addEventListener("keydown",m,{capture:true,passive:false});return o};var y=function t(){if(!s.active){return}n.removeEventListener("focusin",p,true);n.removeEventListener("mousedown",v,true);n.removeEventListener("touchstart",v,true);n.removeEventListener("click",g,true);n.removeEventListener("keydown",m,true);return o};o={activate:function t(e){if(s.active){return this}var i=a(e,"onActivate");var r=a(e,"onPostActivate");var o=a(e,"checkCanFocusTrap");if(!o){u()}s.active=true;s.paused=false;s.nodeFocusedBeforeActivation=n.activeElement;if(i){i()}var c=function t(){if(o){u()}x();if(r){r()}};if(o){o(s.containers.concat()).then(c,c);return this}c();return this},deactivate:function t(e){if(!s.active){return this}clearTimeout(s.delayInitialFocusTimer);s.delayInitialFocusTimer=undefined;y();s.active=false;s.paused=false;ye.deactivateTrap(o);var i=a(e,"onDeactivate");var n=a(e,"onPostDeactivate");var r=a(e,"checkCanReturnFocus");if(i){i()}var c=a(e,"returnFocus","returnFocusOnDeactivate");var l=function t(){Ie((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;y();return this},unpause:function t(){if(!s.paused||!s.active){return this}s.paused=false;u();x();return this},updateContainerElements:function t(e){var i=[].concat(e).filter(Boolean);s.containers=i.map((function(t){return typeof t==="string"?n.querySelector(t):t}));if(s.active){u()}return this}};o.updateContainerElements(e);return o};const ze=t=>(t?de(t,{includeContainer:true,getShadowRoot:true}):[]).shift();const Oe=":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 Ee=0;const Ce=class{constructor(e){t(this,e);this.catOpen=n(this,"catOpen",7);this.catClose=n(this,"catClose",7);this.id=Ee++;this.placement="bottom-start"}clickHandler(t){var e;if(this.content&&t.composedPath().includes(this.content)){(e=this.trap)===null||e===void 0?void 0:e.deactivate();this.hide()}}componentDidLoad(){var t,e,i,n,r;this.trigger=ze(this.triggerSlot);(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-haspopup","true");(e=this.trigger)===null||e===void 0?void 0:e.setAttribute("aria-expanded","false");(i=this.trigger)===null||i===void 0?void 0:i.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()));Ft(this.trigger,this.content,(()=>this.update()))}this.keyListener=t=>{if(this.content&&["ArrowDown","ArrowUp"].includes(t.key)){const e=de(this.content,{includeContainer:false,getShadowRoot:true});const i=ze(document.activeElement);const n=i?e.indexOf(i):-1;const r=t.key==="ArrowDown"?1:-1;const s=n<0?0:(n+r+e.length)%e.length;e[s].focus();t.preventDefault()}};document.addEventListener("keydown",this.keyListener)}disconnectedCallback(){if(this.keyListener){document.removeEventListener("keydown",this.keyListener)}}render(){return e(i,null,e("slot",{name:"trigger",ref:t=>this.triggerSlot=t}),e("div",{class:"content",ref:t=>this.content=t},e("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):Ae(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){Bt(this.trigger,this.content,{placement:this.placement,middleware:[rt(Ce.OFFSET),it()]}).then((({x:t,y:e})=>{if(this.content){Object.assign(this.content.style,{left:`${t}px`,top:`${e}px`})}}))}}};Ce.OFFSET=4;Ce.style=Oe;const De=":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 Te=class{constructor(e){t(this,e);this.isVisible=false;this.size="m"}componentDidLoad(){if(this.modal){this.trap=Ae(this.modal,{tabbableOptions:{getShadowRoot:true},initialFocus:ze(this.closeButton),allowOutsideClick:true,clickOutsideDeactivates:t=>!this.modal||!t.composedPath().includes(this.modal),onDeactivate:()=>this.isVisible=false,setReturnFocus:t=>t instanceof HTMLElement?ze(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 e("div",{"aria-modal":true,role:"dialog","aria-hidden":!this.isVisible?"true":"false",class:"modal-wrapper"},e("div",{ref:t=>this.modal=t,class:{modal:true,[`modal-${this.size}`]:Boolean(this.size)}},e("div",{class:"modal-header"},e("cat-button",{ref:t=>this.closeButton=t,icon:"cross-outlined",class:"close-button",size:"s",iconOnly:true,a11yLabel:"close",onCatClick:this.onClick.bind(this)})),e("div",{class:"modal-content"},e("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((e=>{if(e!==t){this.isVisible?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}}));if(t.parentElement!==document.body){this.updateAccessibility(t.parentElement)}}}get hostElement(){return r(this)}};Te.style=De;const Se=".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;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;cursor:pointer}.label-left{flex-direction:row-reverse}.radio{display:flex;position:relative}.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}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 Le=0;const Re=class{constructor(e){t(this,e);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.id=`cat-radio-${++Le}`;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 e(i,null,e("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"},e("span",{class:"radio"},e("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)}),e("span",{class:"circle"})),e("span",{class:"label",part:"label"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label)),this.hintSection)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&e(c,{hint:this.hint,slottedHint:t&&e("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)}};Re.style=Se;const $e=":host{display:block}:host([hidden]){display:none}";const Pe=class{constructor(e){t(this,e);this.catChange=n(this,"catChange",7);this.catRadioGroup=[];this.disabled=false;this.labelLeft=false}onNameChanged(t){this.catRadioGroup.forEach((e=>{e.name=t}))}onDisabledChanged(t){this.catRadioGroup.forEach((e=>{if(t){e.disabled=t}}))}onLabelLeftChanged(t){this.catRadioGroup.forEach((e=>{if(t){e.labelLeft=t}}))}componentDidLoad(){this.catRadioGroup=Array.from(this.hostElement.querySelectorAll(`cat-radio`));this.onNameChanged(this.name);this.onDisabledChanged(this.disabled);this.onLabelLeftChanged(this.labelLeft);this.updateTabIndex()}onKeydown(t){var e,i;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();(i=(e=n[a].shadowRoot)===null||e===void 0?void 0:e.querySelector("input"))===null||i===void 0?void 0:i.click();this.updateTabIndex();t.preventDefault()}}onInput(t){const e=this.catRadioGroup.find((e=>e===t.target));if(e&&e.checked){const t=this.catRadioGroup.filter((t=>t!==e));t.forEach((t=>t.checked=false));this.value=e.value}else{this.value=undefined}this.updateTabIndex();this.catChange.emit()}render(){return e("div",{role:"radiogroup","aria-label":this.a11yLabel},e("slot",null))}updateTabIndex(){var t,e;if(this.catRadioGroup.length){this.catRadioGroup.forEach((t=>{var e,i;return(i=(e=t.shadowRoot)===null||e===void 0?void 0:e.querySelector("input"))===null||i===void 0?void 0:i.setAttribute("tabindex","-1")}));const i=this.catRadioGroup.findIndex((t=>t.checked));(e=(t=this.catRadioGroup[i>=0?i:0].shadowRoot)===null||t===void 0?void 0:t.querySelector("input"))===null||e===void 0?void 0:e.setAttribute("tabindex","0")}}get hostElement(){return r(this)}static get watchers(){return{name:["onNameChanged"],disabled:["onDisabledChanged"],labelLeft:["onLabelLeftChanged"]}}};Pe.style=$e;function Ue(t){return typeof t==="function"}function Ye(t){const e=t=>{Error.call(t);t.stack=(new Error).stack};const i=t(e);i.prototype=Object.create(Error.prototype);i.prototype.constructor=i;return i}const Fe=Ye((t=>function e(i){t(this);this.message=i?`${i.length} errors occurred during unsubscription:\n${i.map(((t,e)=>`${e+1}) ${t.toString()}`)).join("\n ")}`:"";this.name="UnsubscriptionError";this.errors=i}));function Be(t,e){if(t){const i=t.indexOf(e);0<=i&&t.splice(i,1)}}class He{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:e}=this;if(e){this._parentage=null;if(Array.isArray(e)){for(const t of e){t.remove(this)}}else{e.remove(this)}}const{initialTeardown:i}=this;if(Ue(i)){try{i()}catch(e){t=e instanceof Fe?e.errors:[e]}}const{_finalizers:n}=this;if(n){this._finalizers=null;for(const e of n){try{Ge(e)}catch(e){t=t!==null&&t!==void 0?t:[];if(e instanceof Fe){t=[...t,...e.errors]}else{t.push(e)}}}}if(t){throw new Fe(t)}}}add(t){var e;if(t&&t!==this){if(this.closed){Ge(t)}else{if(t instanceof He){if(t.closed||t._hasParent(this)){return}t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;if(e===t){this._parentage=null}else if(Array.isArray(e)){Be(e,t)}}remove(t){const{_finalizers:e}=this;e&&Be(e,t);if(t instanceof He){t._removeParent(this)}}}He.EMPTY=(()=>{const t=new He;t.closed=true;return t})();const Qe=He.EMPTY;function Ve(t){return t instanceof He||t&&"closed"in t&&Ue(t.remove)&&Ue(t.add)&&Ue(t.unsubscribe)}function Ge(t){if(Ue(t)){t()}else{t.unsubscribe()}}const Ze={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:false,useDeprecatedNextContext:false};const We={setTimeout(t,e,...i){const{delegate:n}=We;if(n===null||n===void 0?void 0:n.setTimeout){return n.setTimeout(t,e,...i)}return setTimeout(t,e,...i)},clearTimeout(t){const{delegate:e}=We;return((e===null||e===void 0?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:undefined};function Ke(t){We.setTimeout((()=>{const{onUnhandledError:e}=Ze;if(e){e(t)}else{throw t}}))}function qe(){}const Je=(()=>ei("C",undefined,undefined))();function Xe(t){return ei("E",undefined,t)}function ti(t){return ei("N",t,undefined)}function ei(t,e,i){return{kind:t,value:e,error:i}}function ii(t){{t()}}class ni extends He{constructor(t){super();this.isStopped=false;if(t){this.destination=t;if(Ve(t)){t.add(this)}}else{this.destination=ui}}static create(t,e,i){return new ai(t,e,i)}next(t){if(this.isStopped){hi(ti(t),this)}else{this._next(t)}}error(t){if(this.isStopped){hi(Xe(t),this)}else{this.isStopped=true;this._error(t)}}complete(){if(this.isStopped){hi(Je,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 ri=Function.prototype.bind;function si(t,e){return ri.call(t,e)}class oi{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next){try{e.next(t)}catch(t){ci(t)}}}error(t){const{partialObserver:e}=this;if(e.error){try{e.error(t)}catch(t){ci(t)}}else{ci(t)}}complete(){const{partialObserver:t}=this;if(t.complete){try{t.complete()}catch(t){ci(t)}}}}class ai extends ni{constructor(t,e,i){super();let n;if(Ue(t)||!t){n={next:t!==null&&t!==void 0?t:undefined,error:e!==null&&e!==void 0?e:undefined,complete:i!==null&&i!==void 0?i:undefined}}else{let e;if(this&&Ze.useDeprecatedNextContext){e=Object.create(t);e.unsubscribe=()=>this.unsubscribe();n={next:t.next&&si(t.next,e),error:t.error&&si(t.error,e),complete:t.complete&&si(t.complete,e)}}else{n=t}}this.destination=new oi(n)}}function ci(t){{Ke(t)}}function li(t){throw t}function hi(t,e){const{onStoppedNotification:i}=Ze;i&&We.setTimeout((()=>i(t,e)))}const ui={closed:true,next:qe,error:li,complete:qe};const di=(()=>typeof Symbol==="function"&&Symbol.observable||"@@observable")();function fi(t){return t}function vi(t){if(t.length===0){return fi}if(t.length===1){return t[0]}return function e(i){return t.reduce(((t,e)=>e(t)),i)}}class pi{constructor(t){if(t){this._subscribe=t}}lift(t){const e=new pi;e.source=this;e.operator=t;return e}subscribe(t,e,i){const n=gi(t)?t:new ai(t,e,i);ii((()=>{const{operator:t,source:e}=this;n.add(t?t.call(n,e):e?this._subscribe(n):this._trySubscribe(n))}));return n}_trySubscribe(t){try{return this._subscribe(t)}catch(e){t.error(e)}}forEach(t,e){e=bi(e);return new e(((e,i)=>{const n=new ai({next:e=>{try{t(e)}catch(t){i(t);n.unsubscribe()}},error:i,complete:e});this.subscribe(n)}))}_subscribe(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)}[di](){return this}pipe(...t){return vi(t)(this)}toPromise(t){t=bi(t);return new t(((t,e)=>{let i;this.subscribe((t=>i=t),(t=>e(t)),(()=>t(i)))}))}}pi.create=t=>new pi(t);function bi(t){var e;return(e=t!==null&&t!==void 0?t:Ze.Promise)!==null&&e!==void 0?e:Promise}function mi(t){return t&&Ue(t.next)&&Ue(t.error)&&Ue(t.complete)}function gi(t){return t&&t instanceof ni||mi(t)&&Ve(t)}function xi(t){return Ue(t===null||t===void 0?void 0:t.lift)}function yi(t){return e=>{if(xi(e)){return e.lift((function(e){try{return t(e,this)}catch(t){this.error(t)}}))}throw new TypeError("Unable to lift unknown Observable type")}}function wi(t,e,i,n,r){return new Mi(t,e,i,n,r)}class Mi extends ni{constructor(t,e,i,n,r,s){super(t);this.onFinalize=r;this.shouldUnsubscribe=s;this._next=e?function(i){try{e(i)}catch(e){t.error(e)}}:super._next;this._error=n?function(e){try{n(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:super._error;this._complete=i?function(){try{i()}catch(e){t.error(e)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe();!e&&((t=this.onFinalize)===null||t===void 0?void 0:t.call(this))}}}const _i=Ye((t=>function e(){t(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}));class Ii extends pi{constructor(){super();this.closed=false;this.currentObservers=null;this.observers=[];this.isStopped=false;this.hasError=false;this.thrownError=null}lift(t){const e=new ji(this,this);e.operator=t;return e}_throwIfClosed(){if(this.closed){throw new _i}}next(t){ii((()=>{this._throwIfClosed();if(!this.isStopped){if(!this.currentObservers){this.currentObservers=Array.from(this.observers)}for(const e of this.currentObservers){e.next(t)}}}))}error(t){ii((()=>{this._throwIfClosed();if(!this.isStopped){this.hasError=this.isStopped=true;this.thrownError=t;const{observers:e}=this;while(e.length){e.shift().error(t)}}}))}complete(){ii((()=>{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:e,isStopped:i,observers:n}=this;if(e||i){return Qe}this.currentObservers=null;n.push(t);return new He((()=>{this.currentObservers=null;Be(n,t)}))}_checkFinalizedStatuses(t){const{hasError:e,thrownError:i,isStopped:n}=this;if(e){t.error(i)}else if(n){t.complete()}}asObservable(){const t=new pi;t.source=this;return t}}Ii.create=(t,e)=>new ji(t,e);class ji extends Ii{constructor(t,e){super();this.destination=t;this.source=e}next(t){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0?void 0:i.call(e,t)}error(t){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0?void 0:i.call(e,t)}complete(){var t,e;(e=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||e===void 0?void 0:e.call(t)}_subscribe(t){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&i!==void 0?i:Qe}}const ki=new pi((t=>t.complete()));function Ni(t){return t&&Ue(t.schedule)}function Ai(t){return t[t.length-1]}function zi(t){return Ni(Ai(t))?t.pop():undefined}function Oi(t,e){return typeof Ai(t)==="number"?t.pop():e}function Ei(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,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?i(t.value):r(t.value).then(o,a)}c((n=n.apply(t,e||[])).next())}))}function Ci(t){var e=typeof Symbol==="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.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(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Di(t){return this instanceof Di?(this.v=t,this):new Di(t)}function Ti(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),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(e){return new Promise((function(i,n){s.push([t,e,i,n])>1||a(t,e)}))}}function a(t,e){try{c(n[t](e))}catch(t){u(s[0][3],t)}}function c(t){t.value instanceof Di?Promise.resolve(t.value.v).then(l,h):u(s[0][2],t)}function l(t){a("next",t)}function h(t){a("throw",t)}function u(t,e){if(t(e),s.shift(),s.length)a(s[0][0],s[0][1])}}function Si(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof Ci==="function"?Ci(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(e){i[e]=t[e]&&function(i){return new Promise((function(n,s){i=t[e](i),r(n,s,i.done,i.value)}))}}function r(t,e,i,n){Promise.resolve(n).then((function(e){t({value:e,done:i})}),e)}}const Li=t=>t&&typeof t.length==="number"&&typeof t!=="function";function Ri(t){return Ue(t===null||t===void 0?void 0:t.then)}function $i(t){return Ue(t[di])}function Pi(t){return Symbol.asyncIterator&&Ue(t===null||t===void 0?void 0:t[Symbol.asyncIterator])}function Ui(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 Yi(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}const Fi=Yi();function Bi(t){return Ue(t===null||t===void 0?void 0:t[Fi])}function Hi(t){return Ti(this,arguments,(function*e(){const i=t.getReader();try{while(true){const{value:t,done:e}=yield Di(i.read());if(e){return yield Di(void 0)}yield yield Di(t)}}finally{i.releaseLock()}}))}function Qi(t){return Ue(t===null||t===void 0?void 0:t.getReader)}function Vi(t){if(t instanceof pi){return t}if(t!=null){if($i(t)){return Gi(t)}if(Li(t)){return Zi(t)}if(Ri(t)){return Wi(t)}if(Pi(t)){return qi(t)}if(Bi(t)){return Ki(t)}if(Qi(t)){return Ji(t)}}throw Ui(t)}function Gi(t){return new pi((e=>{const i=t[di]();if(Ue(i.subscribe)){return i.subscribe(e)}throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function Zi(t){return new pi((e=>{for(let i=0;i<t.length&&!e.closed;i++){e.next(t[i])}e.complete()}))}function Wi(t){return new pi((e=>{t.then((t=>{if(!e.closed){e.next(t);e.complete()}}),(t=>e.error(t))).then(null,Ke)}))}function Ki(t){return new pi((e=>{for(const i of t){e.next(i);if(e.closed){return}}e.complete()}))}function qi(t){return new pi((e=>{Xi(t,e).catch((t=>e.error(t)))}))}function Ji(t){return qi(Hi(t))}function Xi(t,e){var i,n;var r,s;return Ei(this,void 0,void 0,(function*(){try{for(i=Si(t);n=yield i.next(),!n.done;){const t=n.value;e.next(t);if(e.closed){return}}}catch(t){r={error:t}}finally{try{if(n&&!n.done&&(s=i.return))yield s.call(i)}finally{if(r)throw r.error}}e.complete()}))}function tn(t,e,i,n=0,r=false){const s=e.schedule((function(){i();if(r){t.add(this.schedule(null,n))}else{this.unsubscribe()}}),n);t.add(s);if(!r){return s}}function en(t,e=0){return yi(((i,n)=>{i.subscribe(wi(n,(i=>tn(n,t,(()=>n.next(i)),e)),(()=>tn(n,t,(()=>n.complete()),e)),(i=>tn(n,t,(()=>n.error(i)),e))))}))}function nn(t,e=0){return yi(((i,n)=>{n.add(t.schedule((()=>i.subscribe(n)),e))}))}function rn(t,e){return Vi(t).pipe(nn(e),en(e))}function sn(t,e){return Vi(t).pipe(nn(e),en(e))}function on(t,e){return new pi((i=>{let n=0;return e.schedule((function(){if(n===t.length){i.complete()}else{i.next(t[n++]);if(!i.closed){this.schedule()}}}))}))}function an(t,e){return new pi((i=>{let n;tn(i,e,(()=>{n=t[Fi]();tn(i,e,(()=>{let t;let e;try{({value:t,done:e}=n.next())}catch(t){i.error(t);return}if(e){i.complete()}else{i.next(t)}}),0,true)}));return()=>Ue(n===null||n===void 0?void 0:n.return)&&n.return()}))}function cn(t,e){if(!t){throw new Error("Iterable cannot be null")}return new pi((i=>{tn(i,e,(()=>{const n=t[Symbol.asyncIterator]();tn(i,e,(()=>{n.next().then((t=>{if(t.done){i.complete()}else{i.next(t.value)}}))}),0,true)}))}))}function ln(t,e){return cn(Hi(t),e)}function hn(t,e){if(t!=null){if($i(t)){return rn(t,e)}if(Li(t)){return on(t,e)}if(Ri(t)){return sn(t,e)}if(Pi(t)){return cn(t,e)}if(Bi(t)){return an(t,e)}if(Qi(t)){return ln(t,e)}}throw Ui(t)}function un(t,e){return e?hn(t,e):Vi(t)}function dn(t,e){return yi(((i,n)=>{let r=0;i.subscribe(wi(n,(i=>{n.next(t.call(e,i,r++))})))}))}const{isArray:fn}=Array;function vn(t,e){return fn(e)?t(...e):t(e)}function pn(t){return dn((e=>vn(t,e)))}function bn(t,e,i,n,r,s,o,a){const c=[];let l=0;let h=0;let u=false;const d=()=>{if(u&&!c.length&&!l){e.complete()}};const f=t=>l<n?v(t):c.push(t);const v=t=>{s&&e.next(t);l++;let a=false;Vi(i(t,h++)).subscribe(wi(e,(t=>{r===null||r===void 0?void 0:r(t);if(s){f(t)}else{e.next(t)}}),(()=>{a=true}),undefined,(()=>{if(a){try{l--;while(c.length&&l<n){const t=c.shift();if(o){tn(e,o,(()=>v(t)))}else{v(t)}}d()}catch(t){e.error(t)}}})))};t.subscribe(wi(e,f,(()=>{u=true;d()})));return()=>{a===null||a===void 0?void 0:a()}}function mn(t,e,i=Infinity){if(Ue(e)){return mn(((i,n)=>dn(((t,r)=>e(i,t,n,r)))(Vi(t(i,n)))),i)}else if(typeof e==="number"){i=e}return yi(((e,n)=>bn(e,n,t,i)))}function gn(t=Infinity){return mn(fi,t)}const xn=["addListener","removeListener"];const yn=["addEventListener","removeEventListener"];const wn=["on","off"];function Mn(t,e,i,n){if(Ue(i)){n=i;i=undefined}if(n){return Mn(t,e,i).pipe(pn(n))}const[r,s]=kn(t)?yn.map((n=>r=>t[n](e,r,i))):In(t)?xn.map(_n(t,e)):jn(t)?wn.map(_n(t,e)):[];if(!r){if(Li(t)){return mn((t=>Mn(t,e,i)))(Vi(t))}}if(!r){throw new TypeError("Invalid event target")}return new pi((t=>{const e=(...e)=>t.next(1<e.length?e:e[0]);r(e);return()=>s(e)}))}function _n(t,e){return i=>n=>t[i](e,n)}function In(t){return Ue(t.addListener)&&Ue(t.removeListener)}function jn(t){return Ue(t.on)&&Ue(t.off)}function kn(t){return Ue(t.addEventListener)&&Ue(t.removeEventListener)}function Nn(...t){const e=zi(t);const i=Oi(t,Infinity);const n=t;return!n.length?ki:n.length===1?Vi(n[0]):gn(i)(un(n,e))}function An(t,e){return yi(((i,n)=>{let r=0;i.subscribe(wi(n,(i=>t.call(e,i,r++)&&n.next(i))))}))}function zn(t,e=fi){t=t!==null&&t!==void 0?t:On;return yi(((i,n)=>{let r;let s=true;i.subscribe(wi(n,(i=>{const o=e(i);if(s||!t(r,o)){s=false;r=o;n.next(i)}})))}))}function On(t,e){return t===e}function En(t){return yi(((e,i)=>{Vi(t).subscribe(wi(i,(()=>i.complete()),qe));!i.closed&&e.subscribe(i)}))}const Cn=":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;white-space:nowrap}.scrollable-content.scroll-x{overflow-x:auto}.scrollable-content.scroll-y{overflow-y:auto}.scrollable-content.no-overscroll{overscroll-behavior:contain}";const Dn=class{constructor(e){t(this,e);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 Ii;this.destroyed=new Ii;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=Mn(this.scrollElement,"scroll").pipe(En(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);Nn(this.init,this.scrolled).pipe(dn((()=>({top:this.getScrollOffset("top")>0,left:this.getScrollOffset("left")>0,right:this.getScrollOffset("right")>0,bottom:this.getScrollOffset("bottom")>0}))),zn(),En(this.destroyed)).subscribe((({top:t,left:e,right:i,bottom:n})=>{this.toggleClass("cat-scrollable-top",t);this.toggleClass("cat-scrollable-left",e);this.toggleClass("cat-scrollable-right",i);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[e("div",{class:"scrollable-wrapper",ref:t=>this.scrollWrapperElement=t},!this.noShadowY&&e("div",{class:"shadow-top"}),!this.noShadowX&&e("div",{class:"shadow-left"}),!this.noShadowX&&e("div",{class:"shadow-right"}),!this.noShadowY&&e("div",{class:"shadow-bottom"})),e("div",{ref:t=>this.scrollElement=t,class:{"scrollable-content":true,"scroll-x":!this.noOverflowX,"scroll-y":!this.noOverflowY,"no-overscroll":this.noOverscroll}},e("slot",null))]}attachEmitter(t,e,i){Nn(this.init,this.scrolled).pipe(dn((()=>this.getScrollOffset(t)))).pipe(dn((t=>t<=i))).pipe(zn()).pipe(An((t=>t))).pipe(En(this.destroyed)).subscribe((()=>e.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,e){var i,n;if(e){(i=this.scrollWrapperElement)===null||i===void 0?void 0:i.classList.add(t)}else{(n=this.scrollWrapperElement)===null||n===void 0?void 0:n.classList.remove(t)}}};Dn.style=Cn;var Tn=o((function(t,e){
|
|
9
|
+
*/function be(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function ge(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?be(Object(i),!0).forEach((function(e){xe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):be(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function xe(t,e,i){if(e in t){Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true})}else{t[e]=i}return t}var ye=function(){var t=[];return{activateTrap:function e(i){if(t.length>0){var n=t[t.length-1];if(n!==i){n.pause()}}var r=t.indexOf(i);if(r===-1){t.push(i)}else{t.splice(r,1);t.push(i)}},deactivateTrap:function e(i){var n=t.indexOf(i);if(n!==-1){t.splice(n,1)}if(t.length>0){t[t.length-1].unpause()}}}}();var we=function t(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select==="function"};var Me=function t(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27};var _e=function t(e){return e.key==="Tab"||e.keyCode===9};var je=function t(e){return setTimeout(e,0)};var Ie=function t(e,i){var n=-1;e.every((function(t,e){if(i(t)){n=e;return false}return true}));return n};var ke=function t(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++){n[r-1]=arguments[r]}return typeof e==="function"?e.apply(void 0,n):e};var ze=function t(e){return e.target.shadowRoot&&typeof e.composedPath==="function"?e.composedPath()[0]:e.target};var Ne=function t(e,i){var n=(i===null||i===void 0?void 0:i.document)||document;var r=ge({returnFocusOnDeactivate:true,escapeDeactivates:true,delayInitialFocus:true},i);var s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:false,paused:false,delayInitialFocusTimer:undefined};var o;var a=function t(e,i,n){return e&&e[i]!==undefined?e[i]:r[n||i]};var c=function t(e){return s.containerGroups.findIndex((function(t){var i=t.container,n=t.tabbableNodes;return i.contains(e)||n.find((function(t){return t===e}))}))};var l=function t(e){var i=r[e];if(typeof i==="function"){for(var s=arguments.length,o=new Array(s>1?s-1:0),a=1;a<s;a++){o[a-1]=arguments[a]}i=i.apply(void 0,o)}if(!i){if(i===undefined||i===false){return i}throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=i;if(typeof i==="string"){c=n.querySelector(i);if(!c){throw new Error("`".concat(e,"` as selector refers to no known node"))}}return c};var h=function t(){var e=l("initialFocus");if(e===false){return false}if(e===undefined){if(c(n.activeElement)>=0){e=n.activeElement}else{var i=s.tabbableGroups[0];var r=i&&i.firstTabbableNode;e=r||l("fallbackFocus")}}if(!e){throw new Error("Your focus-trap needs to have at least one focusable element")}return e};var u=function t(){s.containerGroups=s.containers.map((function(t){var e=de(t,r.tabbableOptions);var i=fe(t,r.tabbableOptions);return{container:t,tabbableNodes:e,focusableNodes:i,firstTabbableNode:e.length>0?e[0]:null,lastTabbableNode:e.length>0?e[e.length-1]:null,nextTabbableNode:function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var s=i.findIndex((function(t){return t===e}));if(s<0){return undefined}if(n){return i.slice(s+1).find((function(t){return ve(t,r.tabbableOptions)}))}return i.slice(0,s).reverse().find((function(t){return ve(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(e){if(e===false){return}if(e===n.activeElement){return}if(!e||!e.focus){t(h());return}e.focus({preventScroll:!!r.preventScroll});s.mostRecentlyFocusedNode=e;if(we(e)){e.select()}};var f=function t(e){var i=l("setReturnFocus",e);return i?i:i===false?false:e};var v=function t(e){var i=ze(e);if(c(i)>=0){return}if(ke(r.clickOutsideDeactivates,e)){o.deactivate({returnFocus:r.returnFocusOnDeactivate&&!me(i,r.tabbableOptions)});return}if(ke(r.allowOutsideClick,e)){return}e.preventDefault()};var p=function t(e){var i=ze(e);var n=c(i)>=0;if(n||i instanceof Document){if(n){s.mostRecentlyFocusedNode=i}}else{e.stopImmediatePropagation();d(s.mostRecentlyFocusedNode||h())}};var m=function t(e){var i=ze(e);u();var n=null;if(s.tabbableGroups.length>0){var o=c(i);var a=o>=0?s.containerGroups[o]:undefined;if(o<0){if(e.shiftKey){n=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode}else{n=s.tabbableGroups[0].firstTabbableNode}}else if(e.shiftKey){var h=Ie(s.tabbableGroups,(function(t){var e=t.firstTabbableNode;return i===e}));if(h<0&&(a.container===i||me(i,r.tabbableOptions)&&!ve(i,r.tabbableOptions)&&!a.nextTabbableNode(i,false))){h=o}if(h>=0){var f=h===0?s.tabbableGroups.length-1:h-1;var v=s.tabbableGroups[f];n=v.lastTabbableNode}}else{var p=Ie(s.tabbableGroups,(function(t){var e=t.lastTabbableNode;return i===e}));if(p<0&&(a.container===i||me(i,r.tabbableOptions)&&!ve(i,r.tabbableOptions)&&!a.nextTabbableNode(i))){p=o}if(p>=0){var m=p===s.tabbableGroups.length-1?0:p+1;var b=s.tabbableGroups[m];n=b.firstTabbableNode}}}else{n=l("fallbackFocus")}if(n){e.preventDefault();d(n)}};var b=function t(e){if(Me(e)&&ke(r.escapeDeactivates,e)!==false){e.preventDefault();o.deactivate();return}if(_e(e)){m(e);return}};var g=function t(e){if(ke(r.clickOutsideDeactivates,e)){return}var i=ze(e);if(c(i)>=0){return}if(ke(r.allowOutsideClick,e)){return}e.preventDefault();e.stopImmediatePropagation()};var x=function t(){if(!s.active){return}ye.activateTrap(o);s.delayInitialFocusTimer=r.delayInitialFocus?je((function(){d(h())})):d(h());n.addEventListener("focusin",p,true);n.addEventListener("mousedown",v,{capture:true,passive:false});n.addEventListener("touchstart",v,{capture:true,passive:false});n.addEventListener("click",g,{capture:true,passive:false});n.addEventListener("keydown",b,{capture:true,passive:false});return o};var y=function t(){if(!s.active){return}n.removeEventListener("focusin",p,true);n.removeEventListener("mousedown",v,true);n.removeEventListener("touchstart",v,true);n.removeEventListener("click",g,true);n.removeEventListener("keydown",b,true);return o};o={activate:function t(e){if(s.active){return this}var i=a(e,"onActivate");var r=a(e,"onPostActivate");var o=a(e,"checkCanFocusTrap");if(!o){u()}s.active=true;s.paused=false;s.nodeFocusedBeforeActivation=n.activeElement;if(i){i()}var c=function t(){if(o){u()}x();if(r){r()}};if(o){o(s.containers.concat()).then(c,c);return this}c();return this},deactivate:function t(e){if(!s.active){return this}clearTimeout(s.delayInitialFocusTimer);s.delayInitialFocusTimer=undefined;y();s.active=false;s.paused=false;ye.deactivateTrap(o);var i=a(e,"onDeactivate");var n=a(e,"onPostDeactivate");var r=a(e,"checkCanReturnFocus");if(i){i()}var c=a(e,"returnFocus","returnFocusOnDeactivate");var l=function t(){je((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;y();return this},unpause:function t(){if(!s.paused||!s.active){return this}s.paused=false;u();x();return this},updateContainerElements:function t(e){var i=[].concat(e).filter(Boolean);s.containers=i.map((function(t){return typeof t==="string"?n.querySelector(t):t}));if(s.active){u()}return this}};o.updateContainerElements(e);return o};const Ae=t=>(t?de(t,{includeContainer:true,getShadowRoot:true}):[]).shift();const Oe=":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 Ee=0;const Ce=class{constructor(e){t(this,e);this.catOpen=n(this,"catOpen",7);this.catClose=n(this,"catClose",7);this.id=Ee++;this.placement="bottom-start"}clickHandler(t){var e;if(this.content&&t.composedPath().includes(this.content)){(e=this.trap)===null||e===void 0?void 0:e.deactivate();this.hide()}}componentDidLoad(){var t,e,i,n,r;this.trigger=Ae(this.triggerSlot);(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-haspopup","true");(e=this.trigger)===null||e===void 0?void 0:e.setAttribute("aria-expanded","false");(i=this.trigger)===null||i===void 0?void 0:i.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()));Ft(this.trigger,this.content,(()=>this.update()))}this.keyListener=t=>{if(this.content&&["ArrowDown","ArrowUp"].includes(t.key)){const e=de(this.content,{includeContainer:false,getShadowRoot:true});const i=Ae(document.activeElement);const n=i?e.indexOf(i):-1;const r=t.key==="ArrowDown"?1:-1;const s=n<0?0:(n+r+e.length)%e.length;e[s].focus();t.preventDefault()}};document.addEventListener("keydown",this.keyListener)}disconnectedCallback(){if(this.keyListener){document.removeEventListener("keydown",this.keyListener)}}render(){return e(i,null,e("slot",{name:"trigger",ref:t=>this.triggerSlot=t}),e("div",{class:"content",ref:t=>this.content=t},e("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):Ne(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){Bt(this.trigger,this.content,{placement:this.placement,middleware:[rt(Ce.OFFSET),it()]}).then((({x:t,y:e})=>{if(this.content){Object.assign(this.content.style,{left:`${t}px`,top:`${e}px`})}}))}}};Ce.OFFSET=4;Ce.style=Oe;const De=":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 Te=class{constructor(e){t(this,e);this.isVisible=false;this.size="m"}componentDidLoad(){if(this.modal){this.trap=Ne(this.modal,{tabbableOptions:{getShadowRoot:true},initialFocus:Ae(this.closeButton),allowOutsideClick:true,clickOutsideDeactivates:t=>!this.modal||!t.composedPath().includes(this.modal),onDeactivate:()=>this.isVisible=false,setReturnFocus:t=>t instanceof HTMLElement?Ae(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 e("div",{"aria-modal":true,role:"dialog","aria-hidden":!this.isVisible?"true":"false",class:"modal-wrapper"},e("div",{ref:t=>this.modal=t,class:{modal:true,[`modal-${this.size}`]:Boolean(this.size)}},e("div",{class:"modal-header"},e("cat-button",{ref:t=>this.closeButton=t,icon:"cross-outlined",class:"close-button",size:"s",iconOnly:true,a11yLabel:"close",onCatClick:this.onClick.bind(this)})),e("div",{class:"modal-content"},e("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((e=>{if(e!==t){this.isVisible?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}}));if(t.parentElement!==document.body){this.updateAccessibility(t.parentElement)}}}get hostElement(){return r(this)}};Te.style=De;const Se=".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 Le=0;const Re=class{constructor(e){t(this,e);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.id=`cat-radio-${++Le}`;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 e(i,null,e("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"},e("span",{class:"radio"},e("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)}),e("span",{class:"circle"})),e("span",{class:"label",part:"label"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label)),this.hintSection)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&e(c,{hint:this.hint,slottedHint:t&&e("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)}};Re.style=Se;const $e=":host{display:block}:host([hidden]){display:none}";const Pe=class{constructor(e){t(this,e);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((e=>{e.name=t}))}onValueChanged(t){this.catRadioGroup.forEach((e=>{e.checked=e.value===t}));this.updateTabIndex()}onDisabledChanged(t){this.catRadioGroup.forEach((e=>{if(t){e.disabled=t}}))}onLabelLeftChanged(t){this.catRadioGroup.forEach((e=>{if(t){e.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 e,i;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();(i=(e=n[a].shadowRoot)===null||e===void 0?void 0:e.querySelector("input"))===null||i===void 0?void 0:i.click();this.updateTabIndex();t.preventDefault()}}onInput(t){const e=this.catRadioGroup.find((e=>e===t.target));this.value=e===null||e===void 0?void 0:e.value;this.catChange.emit()}onBlur(t){if(!t.relatedTarget){this.catBlur.emit(t)}}render(){return e("div",{role:"radiogroup","aria-label":this.a11yLabel},e("slot",null))}updateTabIndex(){var t,e;if(this.catRadioGroup.length){this.catRadioGroup.forEach((t=>{var e,i;return(i=(e=t.shadowRoot)===null||e===void 0?void 0:e.querySelector("input"))===null||i===void 0?void 0:i.setAttribute("tabindex","-1")}));const i=this.catRadioGroup.findIndex((t=>t.checked));(e=(t=this.catRadioGroup[i>=0?i:0].shadowRoot)===null||t===void 0?void 0:t.querySelector("input"))===null||e===void 0?void 0:e.setAttribute("tabindex","0")}}get hostElement(){return r(this)}static get watchers(){return{name:["onNameChanged"],value:["onValueChanged"],disabled:["onDisabledChanged"],labelLeft:["onLabelLeftChanged"]}}};Pe.style=$e;function Ue(t){return typeof t==="function"}function Ye(t){const e=t=>{Error.call(t);t.stack=(new Error).stack};const i=t(e);i.prototype=Object.create(Error.prototype);i.prototype.constructor=i;return i}const Fe=Ye((t=>function e(i){t(this);this.message=i?`${i.length} errors occurred during unsubscription:\n${i.map(((t,e)=>`${e+1}) ${t.toString()}`)).join("\n ")}`:"";this.name="UnsubscriptionError";this.errors=i}));function Be(t,e){if(t){const i=t.indexOf(e);0<=i&&t.splice(i,1)}}class He{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:e}=this;if(e){this._parentage=null;if(Array.isArray(e)){for(const t of e){t.remove(this)}}else{e.remove(this)}}const{initialTeardown:i}=this;if(Ue(i)){try{i()}catch(e){t=e instanceof Fe?e.errors:[e]}}const{_finalizers:n}=this;if(n){this._finalizers=null;for(const e of n){try{Ge(e)}catch(e){t=t!==null&&t!==void 0?t:[];if(e instanceof Fe){t=[...t,...e.errors]}else{t.push(e)}}}}if(t){throw new Fe(t)}}}add(t){var e;if(t&&t!==this){if(this.closed){Ge(t)}else{if(t instanceof He){if(t.closed||t._hasParent(this)){return}t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;if(e===t){this._parentage=null}else if(Array.isArray(e)){Be(e,t)}}remove(t){const{_finalizers:e}=this;e&&Be(e,t);if(t instanceof He){t._removeParent(this)}}}He.EMPTY=(()=>{const t=new He;t.closed=true;return t})();const Qe=He.EMPTY;function Ve(t){return t instanceof He||t&&"closed"in t&&Ue(t.remove)&&Ue(t.add)&&Ue(t.unsubscribe)}function Ge(t){if(Ue(t)){t()}else{t.unsubscribe()}}const Ze={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:false,useDeprecatedNextContext:false};const We={setTimeout(t,e,...i){const{delegate:n}=We;if(n===null||n===void 0?void 0:n.setTimeout){return n.setTimeout(t,e,...i)}return setTimeout(t,e,...i)},clearTimeout(t){const{delegate:e}=We;return((e===null||e===void 0?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:undefined};function Ke(t){We.setTimeout((()=>{const{onUnhandledError:e}=Ze;if(e){e(t)}else{throw t}}))}function qe(){}const Je=(()=>ei("C",undefined,undefined))();function Xe(t){return ei("E",undefined,t)}function ti(t){return ei("N",t,undefined)}function ei(t,e,i){return{kind:t,value:e,error:i}}function ii(t){{t()}}class ni extends He{constructor(t){super();this.isStopped=false;if(t){this.destination=t;if(Ve(t)){t.add(this)}}else{this.destination=ui}}static create(t,e,i){return new ai(t,e,i)}next(t){if(this.isStopped){hi(ti(t),this)}else{this._next(t)}}error(t){if(this.isStopped){hi(Xe(t),this)}else{this.isStopped=true;this._error(t)}}complete(){if(this.isStopped){hi(Je,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 ri=Function.prototype.bind;function si(t,e){return ri.call(t,e)}class oi{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next){try{e.next(t)}catch(t){ci(t)}}}error(t){const{partialObserver:e}=this;if(e.error){try{e.error(t)}catch(t){ci(t)}}else{ci(t)}}complete(){const{partialObserver:t}=this;if(t.complete){try{t.complete()}catch(t){ci(t)}}}}class ai extends ni{constructor(t,e,i){super();let n;if(Ue(t)||!t){n={next:t!==null&&t!==void 0?t:undefined,error:e!==null&&e!==void 0?e:undefined,complete:i!==null&&i!==void 0?i:undefined}}else{let e;if(this&&Ze.useDeprecatedNextContext){e=Object.create(t);e.unsubscribe=()=>this.unsubscribe();n={next:t.next&&si(t.next,e),error:t.error&&si(t.error,e),complete:t.complete&&si(t.complete,e)}}else{n=t}}this.destination=new oi(n)}}function ci(t){{Ke(t)}}function li(t){throw t}function hi(t,e){const{onStoppedNotification:i}=Ze;i&&We.setTimeout((()=>i(t,e)))}const ui={closed:true,next:qe,error:li,complete:qe};const di=(()=>typeof Symbol==="function"&&Symbol.observable||"@@observable")();function fi(t){return t}function vi(t){if(t.length===0){return fi}if(t.length===1){return t[0]}return function e(i){return t.reduce(((t,e)=>e(t)),i)}}class pi{constructor(t){if(t){this._subscribe=t}}lift(t){const e=new pi;e.source=this;e.operator=t;return e}subscribe(t,e,i){const n=gi(t)?t:new ai(t,e,i);ii((()=>{const{operator:t,source:e}=this;n.add(t?t.call(n,e):e?this._subscribe(n):this._trySubscribe(n))}));return n}_trySubscribe(t){try{return this._subscribe(t)}catch(e){t.error(e)}}forEach(t,e){e=mi(e);return new e(((e,i)=>{const n=new ai({next:e=>{try{t(e)}catch(t){i(t);n.unsubscribe()}},error:i,complete:e});this.subscribe(n)}))}_subscribe(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)}[di](){return this}pipe(...t){return vi(t)(this)}toPromise(t){t=mi(t);return new t(((t,e)=>{let i;this.subscribe((t=>i=t),(t=>e(t)),(()=>t(i)))}))}}pi.create=t=>new pi(t);function mi(t){var e;return(e=t!==null&&t!==void 0?t:Ze.Promise)!==null&&e!==void 0?e:Promise}function bi(t){return t&&Ue(t.next)&&Ue(t.error)&&Ue(t.complete)}function gi(t){return t&&t instanceof ni||bi(t)&&Ve(t)}function xi(t){return Ue(t===null||t===void 0?void 0:t.lift)}function yi(t){return e=>{if(xi(e)){return e.lift((function(e){try{return t(e,this)}catch(t){this.error(t)}}))}throw new TypeError("Unable to lift unknown Observable type")}}function wi(t,e,i,n,r){return new Mi(t,e,i,n,r)}class Mi extends ni{constructor(t,e,i,n,r,s){super(t);this.onFinalize=r;this.shouldUnsubscribe=s;this._next=e?function(i){try{e(i)}catch(e){t.error(e)}}:super._next;this._error=n?function(e){try{n(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:super._error;this._complete=i?function(){try{i()}catch(e){t.error(e)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe();!e&&((t=this.onFinalize)===null||t===void 0?void 0:t.call(this))}}}const _i=Ye((t=>function e(){t(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}));class ji extends pi{constructor(){super();this.closed=false;this.currentObservers=null;this.observers=[];this.isStopped=false;this.hasError=false;this.thrownError=null}lift(t){const e=new Ii(this,this);e.operator=t;return e}_throwIfClosed(){if(this.closed){throw new _i}}next(t){ii((()=>{this._throwIfClosed();if(!this.isStopped){if(!this.currentObservers){this.currentObservers=Array.from(this.observers)}for(const e of this.currentObservers){e.next(t)}}}))}error(t){ii((()=>{this._throwIfClosed();if(!this.isStopped){this.hasError=this.isStopped=true;this.thrownError=t;const{observers:e}=this;while(e.length){e.shift().error(t)}}}))}complete(){ii((()=>{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:e,isStopped:i,observers:n}=this;if(e||i){return Qe}this.currentObservers=null;n.push(t);return new He((()=>{this.currentObservers=null;Be(n,t)}))}_checkFinalizedStatuses(t){const{hasError:e,thrownError:i,isStopped:n}=this;if(e){t.error(i)}else if(n){t.complete()}}asObservable(){const t=new pi;t.source=this;return t}}ji.create=(t,e)=>new Ii(t,e);class Ii extends ji{constructor(t,e){super();this.destination=t;this.source=e}next(t){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0?void 0:i.call(e,t)}error(t){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0?void 0:i.call(e,t)}complete(){var t,e;(e=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||e===void 0?void 0:e.call(t)}_subscribe(t){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&i!==void 0?i:Qe}}const ki=new pi((t=>t.complete()));function zi(t){return t&&Ue(t.schedule)}function Ni(t){return t[t.length-1]}function Ai(t){return zi(Ni(t))?t.pop():undefined}function Oi(t,e){return typeof Ni(t)==="number"?t.pop():e}function Ei(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,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?i(t.value):r(t.value).then(o,a)}c((n=n.apply(t,e||[])).next())}))}function Ci(t){var e=typeof Symbol==="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.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(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Di(t){return this instanceof Di?(this.v=t,this):new Di(t)}function Ti(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),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(e){return new Promise((function(i,n){s.push([t,e,i,n])>1||a(t,e)}))}}function a(t,e){try{c(n[t](e))}catch(t){u(s[0][3],t)}}function c(t){t.value instanceof Di?Promise.resolve(t.value.v).then(l,h):u(s[0][2],t)}function l(t){a("next",t)}function h(t){a("throw",t)}function u(t,e){if(t(e),s.shift(),s.length)a(s[0][0],s[0][1])}}function Si(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof Ci==="function"?Ci(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(e){i[e]=t[e]&&function(i){return new Promise((function(n,s){i=t[e](i),r(n,s,i.done,i.value)}))}}function r(t,e,i,n){Promise.resolve(n).then((function(e){t({value:e,done:i})}),e)}}const Li=t=>t&&typeof t.length==="number"&&typeof t!=="function";function Ri(t){return Ue(t===null||t===void 0?void 0:t.then)}function $i(t){return Ue(t[di])}function Pi(t){return Symbol.asyncIterator&&Ue(t===null||t===void 0?void 0:t[Symbol.asyncIterator])}function Ui(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 Yi(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}const Fi=Yi();function Bi(t){return Ue(t===null||t===void 0?void 0:t[Fi])}function Hi(t){return Ti(this,arguments,(function*e(){const i=t.getReader();try{while(true){const{value:t,done:e}=yield Di(i.read());if(e){return yield Di(void 0)}yield yield Di(t)}}finally{i.releaseLock()}}))}function Qi(t){return Ue(t===null||t===void 0?void 0:t.getReader)}function Vi(t){if(t instanceof pi){return t}if(t!=null){if($i(t)){return Gi(t)}if(Li(t)){return Zi(t)}if(Ri(t)){return Wi(t)}if(Pi(t)){return qi(t)}if(Bi(t)){return Ki(t)}if(Qi(t)){return Ji(t)}}throw Ui(t)}function Gi(t){return new pi((e=>{const i=t[di]();if(Ue(i.subscribe)){return i.subscribe(e)}throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function Zi(t){return new pi((e=>{for(let i=0;i<t.length&&!e.closed;i++){e.next(t[i])}e.complete()}))}function Wi(t){return new pi((e=>{t.then((t=>{if(!e.closed){e.next(t);e.complete()}}),(t=>e.error(t))).then(null,Ke)}))}function Ki(t){return new pi((e=>{for(const i of t){e.next(i);if(e.closed){return}}e.complete()}))}function qi(t){return new pi((e=>{Xi(t,e).catch((t=>e.error(t)))}))}function Ji(t){return qi(Hi(t))}function Xi(t,e){var i,n;var r,s;return Ei(this,void 0,void 0,(function*(){try{for(i=Si(t);n=yield i.next(),!n.done;){const t=n.value;e.next(t);if(e.closed){return}}}catch(t){r={error:t}}finally{try{if(n&&!n.done&&(s=i.return))yield s.call(i)}finally{if(r)throw r.error}}e.complete()}))}function tn(t,e,i,n=0,r=false){const s=e.schedule((function(){i();if(r){t.add(this.schedule(null,n))}else{this.unsubscribe()}}),n);t.add(s);if(!r){return s}}function en(t,e=0){return yi(((i,n)=>{i.subscribe(wi(n,(i=>tn(n,t,(()=>n.next(i)),e)),(()=>tn(n,t,(()=>n.complete()),e)),(i=>tn(n,t,(()=>n.error(i)),e))))}))}function nn(t,e=0){return yi(((i,n)=>{n.add(t.schedule((()=>i.subscribe(n)),e))}))}function rn(t,e){return Vi(t).pipe(nn(e),en(e))}function sn(t,e){return Vi(t).pipe(nn(e),en(e))}function on(t,e){return new pi((i=>{let n=0;return e.schedule((function(){if(n===t.length){i.complete()}else{i.next(t[n++]);if(!i.closed){this.schedule()}}}))}))}function an(t,e){return new pi((i=>{let n;tn(i,e,(()=>{n=t[Fi]();tn(i,e,(()=>{let t;let e;try{({value:t,done:e}=n.next())}catch(t){i.error(t);return}if(e){i.complete()}else{i.next(t)}}),0,true)}));return()=>Ue(n===null||n===void 0?void 0:n.return)&&n.return()}))}function cn(t,e){if(!t){throw new Error("Iterable cannot be null")}return new pi((i=>{tn(i,e,(()=>{const n=t[Symbol.asyncIterator]();tn(i,e,(()=>{n.next().then((t=>{if(t.done){i.complete()}else{i.next(t.value)}}))}),0,true)}))}))}function ln(t,e){return cn(Hi(t),e)}function hn(t,e){if(t!=null){if($i(t)){return rn(t,e)}if(Li(t)){return on(t,e)}if(Ri(t)){return sn(t,e)}if(Pi(t)){return cn(t,e)}if(Bi(t)){return an(t,e)}if(Qi(t)){return ln(t,e)}}throw Ui(t)}function un(t,e){return e?hn(t,e):Vi(t)}function dn(t,e){return yi(((i,n)=>{let r=0;i.subscribe(wi(n,(i=>{n.next(t.call(e,i,r++))})))}))}const{isArray:fn}=Array;function vn(t,e){return fn(e)?t(...e):t(e)}function pn(t){return dn((e=>vn(t,e)))}function mn(t,e,i,n,r,s,o,a){const c=[];let l=0;let h=0;let u=false;const d=()=>{if(u&&!c.length&&!l){e.complete()}};const f=t=>l<n?v(t):c.push(t);const v=t=>{s&&e.next(t);l++;let a=false;Vi(i(t,h++)).subscribe(wi(e,(t=>{r===null||r===void 0?void 0:r(t);if(s){f(t)}else{e.next(t)}}),(()=>{a=true}),undefined,(()=>{if(a){try{l--;while(c.length&&l<n){const t=c.shift();if(o){tn(e,o,(()=>v(t)))}else{v(t)}}d()}catch(t){e.error(t)}}})))};t.subscribe(wi(e,f,(()=>{u=true;d()})));return()=>{a===null||a===void 0?void 0:a()}}function bn(t,e,i=Infinity){if(Ue(e)){return bn(((i,n)=>dn(((t,r)=>e(i,t,n,r)))(Vi(t(i,n)))),i)}else if(typeof e==="number"){i=e}return yi(((e,n)=>mn(e,n,t,i)))}function gn(t=Infinity){return bn(fi,t)}const xn=["addListener","removeListener"];const yn=["addEventListener","removeEventListener"];const wn=["on","off"];function Mn(t,e,i,n){if(Ue(i)){n=i;i=undefined}if(n){return Mn(t,e,i).pipe(pn(n))}const[r,s]=kn(t)?yn.map((n=>r=>t[n](e,r,i))):jn(t)?xn.map(_n(t,e)):In(t)?wn.map(_n(t,e)):[];if(!r){if(Li(t)){return bn((t=>Mn(t,e,i)))(Vi(t))}}if(!r){throw new TypeError("Invalid event target")}return new pi((t=>{const e=(...e)=>t.next(1<e.length?e:e[0]);r(e);return()=>s(e)}))}function _n(t,e){return i=>n=>t[i](e,n)}function jn(t){return Ue(t.addListener)&&Ue(t.removeListener)}function In(t){return Ue(t.on)&&Ue(t.off)}function kn(t){return Ue(t.addEventListener)&&Ue(t.removeEventListener)}function zn(...t){const e=Ai(t);const i=Oi(t,Infinity);const n=t;return!n.length?ki:n.length===1?Vi(n[0]):gn(i)(un(n,e))}function Nn(t,e){return yi(((i,n)=>{let r=0;i.subscribe(wi(n,(i=>t.call(e,i,r++)&&n.next(i))))}))}function An(t,e=fi){t=t!==null&&t!==void 0?t:On;return yi(((i,n)=>{let r;let s=true;i.subscribe(wi(n,(i=>{const o=e(i);if(s||!t(r,o)){s=false;r=o;n.next(i)}})))}))}function On(t,e){return t===e}function En(t){return yi(((e,i)=>{Vi(t).subscribe(wi(i,(()=>i.complete()),qe));!i.closed&&e.subscribe(i)}))}const Cn=":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;white-space:nowrap}.scrollable-content.scroll-x{overflow-x:auto}.scrollable-content.scroll-y{overflow-y:auto}.scrollable-content.no-overscroll{overscroll-behavior:contain}";const Dn=class{constructor(e){t(this,e);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 ji;this.destroyed=new ji;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=Mn(this.scrollElement,"scroll").pipe(En(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);zn(this.init,this.scrolled).pipe(dn((()=>({top:this.getScrollOffset("top")>0,left:this.getScrollOffset("left")>0,right:this.getScrollOffset("right")>0,bottom:this.getScrollOffset("bottom")>0}))),An(),En(this.destroyed)).subscribe((({top:t,left:e,right:i,bottom:n})=>{this.toggleClass("cat-scrollable-top",t);this.toggleClass("cat-scrollable-left",e);this.toggleClass("cat-scrollable-right",i);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[e("div",{class:"scrollable-wrapper",ref:t=>this.scrollWrapperElement=t},!this.noShadowY&&e("div",{class:"shadow-top"}),!this.noShadowX&&e("div",{class:"shadow-left"}),!this.noShadowX&&e("div",{class:"shadow-right"}),!this.noShadowY&&e("div",{class:"shadow-bottom"})),e("div",{ref:t=>this.scrollElement=t,class:{"scrollable-content":true,"scroll-x":!this.noOverflowX,"scroll-y":!this.noOverflowY,"no-overscroll":this.noOverscroll}},e("slot",null))]}attachEmitter(t,e,i){zn(this.init,this.scrolled).pipe(dn((()=>this.getScrollOffset(t)))).pipe(dn((t=>t<=i))).pipe(An()).pipe(Nn((t=>t))).pipe(En(this.destroyed)).subscribe((()=>e.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,e){var i,n;if(e){(i=this.scrollWrapperElement)===null||i===void 0?void 0:i.classList.add(t)}else{(n=this.scrollWrapperElement)===null||n===void 0?void 0:n.classList.remove(t)}}};Dn.style=Cn;var Tn=o((function(t,e){
|
|
10
10
|
/*! choices.js v10.1.0 | © 2022 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
|
11
|
-
(function e(i,n){t.exports=n()})(window,(function(){return function(){var t={282:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.clearChoices=e.activateChoices=e.filterChoices=e.addChoice=void 0;var n=i(883);var r=function(t){var e=t.value,i=t.label,r=t.id,s=t.groupId,o=t.disabled,a=t.elementId,c=t.customProperties,l=t.placeholder,h=t.keyCode;return{type:n.ACTION_TYPES.ADD_CHOICE,value:e,label:i,id:r,groupId:s,disabled:o,elementId:a,customProperties:c,placeholder:l,keyCode:h}};e.addChoice=r;var s=function(t){return{type:n.ACTION_TYPES.FILTER_CHOICES,results:t}};e.filterChoices=s;var o=function(t){if(t===void 0){t=true}return{type:n.ACTION_TYPES.ACTIVATE_CHOICES,active:t}};e.activateChoices=o;var a=function(){return{type:n.ACTION_TYPES.CLEAR_CHOICES}};e.clearChoices=a},783:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.addGroup=void 0;var n=i(883);var r=function(t){var e=t.value,i=t.id,r=t.active,s=t.disabled;return{type:n.ACTION_TYPES.ADD_GROUP,value:e,id:i,active:r,disabled:s}};e.addGroup=r},464:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.highlightItem=e.removeItem=e.addItem=void 0;var n=i(883);var r=function(t){var e=t.value,i=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:e,label:i,id:r,choiceId:s,groupId:o,customProperties:a,placeholder:c,keyCode:l}};e.addItem=r;var s=function(t,e){return{type:n.ACTION_TYPES.REMOVE_ITEM,id:t,choiceId:e}};e.removeItem=s;var o=function(t,e){return{type:n.ACTION_TYPES.HIGHLIGHT_ITEM,id:t,highlighted:e}};e.highlightItem=o},137:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.setIsLoading=e.resetTo=e.clearAll=void 0;var n=i(883);var r=function(){return{type:n.ACTION_TYPES.CLEAR_ALL}};e.clearAll=r;var s=function(t){return{type:n.ACTION_TYPES.RESET_TO,state:t}};e.resetTo=s;var o=function(t){return{type:n.ACTION_TYPES.SET_IS_LOADING,isLoading:t}};e.setIsLoading=o},373:function(t,e,i){var n=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++){if(s||!(n in e)){if(!s)s=Array.prototype.slice.call(e,0,n);s[n]=e[n]}}return t.concat(s||Array.prototype.slice.call(e))};var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var s=r(i(996));var o=r(i(221));var a=i(282);var c=i(783);var l=i(464);var h=i(137);var u=i(520);var d=i(883);var f=i(789);var v=i(799);var p=i(655);var b=r(i(744));var m=r(i(686));var g="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style;var x={};var y=function(){function t(e,i){var r=this;if(e===void 0){e="[data-choice]"}if(i===void 0){i={}}if(i.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,i],{arrayMerge:function(t,e){return n([],e,true)}});var o=(0,v.diff)(this.config,f.DEFAULT_CONFIG);if(o.length){console.warn("Unknown config option(s) passed",o.join(", "))}var a=typeof e==="string"?document.querySelector(e):e;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(i.addItemFilter&&typeof i.addItemFilter!=="function"){var c=i.addItemFilter instanceof RegExp?i.addItemFilter:new RegExp(i.addItemFilter);this.config.addItemFilter=c.test.bind(c)}if(this._isTextElement){this.passedElement=new u.WrappedInput({element:a,classNames:this.config.classNames,delimiter:this.config.delimiter})}else{this.passedElement=new u.WrappedSelect({element:a,classNames:this.config.classNames,template:function(t){return r._templates.option(t)}})}this.initialised=false;this._store=new b.default;this._initialState=p.defaultState;this._currentState=p.defaultState;this._prevState=p.defaultState;this._currentValue="";this._canSearch=!!this.config.searchEnabled;this._isScrollingOnIe=false;this._highlightPosition=0;this._wasTap=true;this._placeholderValue=this._generatePlaceholderValue();this._baseId=(0,v.generateId)(this.passedElement.element,"choices-");this._direction=this.passedElement.dir;if(!this._direction){var l=window.getComputedStyle(this.passedElement.element).direction;var h=window.getComputedStyle(document.documentElement).direction;if(l!==h){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 m=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(m)}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:e})}this.initialised=true;return}this.init()}Object.defineProperty(t,"defaults",{get:function(){return Object.preventExtensions({get options(){return x},get templates(){return m.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 e=this.config.callbackOnInit;if(e&&typeof e==="function"){e.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=m.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,e){if(e===void 0){e=true}if(!t||!t.id){return this}var i=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 h=r>=0?this._store.getGroupById(r):null;this._store.dispatch((0,l.highlightItem)(i,true));if(e){this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:i,value:o,label:c,groupValue:h&&h.value?h.value:null})}return this};t.prototype.unhighlightItem=function(t){if(!t||!t.id){return this}var e=t.id,i=t.groupId,n=i===void 0?-1:i,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)(e,false));this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:e,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(e){return t.highlightItem(e)}));return this};t.prototype.unhighlightAll=function(){var t=this;this._store.items.forEach((function(e){return t.unhighlightItem(e)}));return this};t.prototype.removeActiveItemsByValue=function(t){var e=this;this._store.activeItems.filter((function(e){return e.value===t})).forEach((function(t){return e._removeItem(t)}));return this};t.prototype.removeActiveItems=function(t){var e=this;this._store.activeItems.filter((function(e){var i=e.id;return i!==t})).forEach((function(t){return e._removeItem(t)}));return this};t.prototype.removeHighlightedItems=function(t){var e=this;if(t===void 0){t=false}this._store.highlightedActiveItems.forEach((function(i){e._removeItem(i);if(t){e._triggerChange(i.value)}}));return this};t.prototype.showDropdown=function(t){var e=this;if(this.dropdown.isActive){return this}requestAnimationFrame((function(){e.dropdown.show();e.containerOuter.open(e.dropdown.distanceFromTopWindow);if(!t&&e._canSearch){e.input.focus()}e.passedElement.triggerEvent(d.EVENTS.showDropdown,{})}));return this};t.prototype.hideDropdown=function(t){var e=this;if(!this.dropdown.isActive){return this}requestAnimationFrame((function(){e.dropdown.hide();e.containerOuter.close();if(!t&&e._canSearch){e.input.removeActiveDescendant();e.input.blur()}e.passedElement.triggerEvent(d.EVENTS.hideDropdown,{})}));return this};t.prototype.getValue=function(t){if(t===void 0){t=false}var e=this._store.activeItems.reduce((function(e,i){var n=t?i.value:i;e.push(n);return e}),[]);return this._isSelectOneElement?e[0]:e};t.prototype.setValue=function(t){var e=this;if(!this.initialised){return this}t.forEach((function(t){return e._setChoiceOrItem(t)}));return this};t.prototype.setChoiceByValue=function(t){var e=this;if(!this.initialised||this._isTextElement){return this}var i=Array.isArray(t)?t:[t];i.forEach((function(t){return e._findAndSelectChoiceByValue(t)}));return this};t.prototype.setChoices=function(t,e,i,n){var r=this;if(t===void 0){t=[]}if(e===void 0){e="value"}if(i===void 0){i="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 e!=="string"||!e){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,e,i,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,e,i,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:e,labelKey:i})}else{var n=t;r._addChoice({value:n[e],label:n[i],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,h.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 e=this._isSelectElement;var i=this._currentState.items!==this._prevState.items;if(!t){return}if(e){this._renderChoices()}if(i){this._renderItems()}this._prevState=this._currentState};t.prototype._renderChoices=function(){var t=this;var e=this._store,i=e.activeGroups,n=e.activeChoices;var r=document.createDocumentFragment();this.choiceList.clear();if(this.config.resetScrollPosition){requestAnimationFrame((function(){return t.choiceList.scrollToTop()}))}if(i.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(i,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 e=this._createItemsFragment(t);if(e.childNodes){this.itemList.append(e)}};t.prototype._createGroupsFragment=function(t,e,i){var n=this;if(i===void 0){i=document.createDocumentFragment()}var r=function(t){return e.filter((function(e){if(n._isSelectOneElement){return e.groupId===t.id}return e.groupId===t.id&&(n.config.renderSelectedChoices==="always"||!e.selected)}))};if(this.config.shouldSort){t.sort(this.config.sorter)}t.forEach((function(t){var e=r(t);if(e.length>=1){var s=n._getTemplate("choiceGroup",t);i.appendChild(s);n._createChoicesFragment(e,i,true)}}));return i};t.prototype._createChoicesFragment=function(t,e,i){var r=this;if(e===void 0){e=document.createDocumentFragment()}if(i===void 0){i=false}var s=this.config,o=s.renderSelectedChoices,a=s.searchResultLimit,c=s.renderChoiceLimit;var l=this._isSearching?v.sortByScore:this.config.sorter;var h=function(t){var i=o==="auto"?r._isSelectOneElement||!t.selected:true;if(i){var n=r._getTemplate("choice",t,r.config.itemSelectText);e.appendChild(n)}};var u=t;if(o==="auto"&&!this._isSelectOneElement){u=t.filter((function(t){return!t.selected}))}var d=u.reduce((function(t,e){if(e.placeholder){t.placeholderChoices.push(e)}else{t.normalChoices.push(e)}return t}),{placeholderChoices:[],normalChoices:[]}),f=d.placeholderChoices,p=d.normalChoices;if(this.config.shouldSort||this._isSearching){p.sort(l)}var b=u.length;var m=this._isSelectOneElement?n(n([],f,true),p,true):p;if(this._isSearching){b=a}else if(c&&c>0&&!i){b=c}for(var g=0;g<b;g+=1){if(m[g]){h(m[g])}}return e};t.prototype._createItemsFragment=function(t,e){var i=this;if(e===void 0){e=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 e=t.value;return e})).join(this.config.delimiter)}else{this.passedElement.options=t}var a=function(t){var n=i._getTemplate("item",t,o);e.appendChild(n)};t.forEach(a);return e};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,e){if(!t||!e||!this.config.removeItems||!this.config.removeItemButton){return}var i=e.parentNode&&e.parentNode.dataset.id;var n=i&&t.find((function(t){return t.id===parseInt(i,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,e,i){var n=this;if(i===void 0){i=false}if(!t||!e||!this.config.removeItems||this._isSelectOneElement){return}var r=e.dataset.id;t.forEach((function(t){if(t.id===parseInt("".concat(r),10)&&!t.highlighted){n.highlightItem(t)}else if(!i&&t.highlighted){n.unhighlightItem(t)}}));this.input.focus()};t.prototype._handleChoiceAction=function(t,e){if(!t||!e){return}var i=e.dataset.id;var n=i&&this._store.getChoiceById(i);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 e=t[t.length-1];var i=t.some((function(t){return t.highlighted}));if(this.config.editItems&&!i&&e){this.input.value=e.value;this.input.setWidth();this._removeItem(e);this._triggerChange(e.value)}else{if(!i){this.highlightItem(e,false)}this.removeHighlightedItems(true)}};t.prototype._startLoading=function(){this._store.dispatch((0,h.setIsLoading)(true))};t.prototype._stopLoading=function(){this._store.dispatch((0,h.setIsLoading)(false))};t.prototype._handleLoadingState=function(t){if(t===void 0){t=true}var e=this.itemList.getChild(".".concat(this.config.classNames.placeholder));if(t){this.disable();this.containerOuter.addLoadingState();if(this._isSelectOneElement){if(!e){e=this._getTemplate("placeholder",this.config.loadingText);if(e){this.itemList.append(e)}}else{e.innerHTML=this.config.loadingText}}else{this.input.placeholder=this.config.loadingText}}else{this.enable();this.containerOuter.removeLoadingState();if(this._isSelectOneElement){if(e){e.innerHTML=this._placeholderValue||""}}else{this.input.placeholder=this._placeholderValue||""}}};t.prototype._handleSearch=function(t){if(!this.input.isFocussed){return}var e=this._store.choices;var i=this.config,n=i.searchFloor,r=i.searchChoices;var s=e.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,e){var i=true;var n=typeof this.config.addItemText==="function"?this.config.addItemText(e):this.config.addItemText;if(!this._isSelectOneElement){var r=(0,v.existsInArray)(t,e);if(this.config.maxItemCount>0&&this.config.maxItemCount<=t.length){i=false;n=typeof this.config.maxItemText==="function"?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText}if(!this.config.duplicateItemsAllowed&&r&&i){i=false;n=typeof this.config.uniqueItemText==="function"?this.config.uniqueItemText(e):this.config.uniqueItemText}if(this._isTextElement&&this.config.addItems&&i&&typeof this.config.addItemFilter==="function"&&!this.config.addItemFilter(e)){i=false;n=typeof this.config.customAddItemText==="function"?this.config.customAddItemText(e):this.config.customAddItemText}}return{response:i,notice:n}};t.prototype._searchChoices=function(t){var e=typeof t==="string"?t.trim():t;var i=typeof this._currentValue==="string"?this._currentValue.trim():this._currentValue;if(e.length<1&&e==="".concat(i," ")){return 0}var r=this._store.searchableChoices;var s=e;var c=Object.assign(this.config.fuseOptions,{keys:n([],this.config.searchFields,true),includeMatches:true});var l=new o.default(r,c);var h=l.search(s);this._currentValue=e;this._highlightPosition=0;this._isSearching=true;this._store.dispatch((0,a.filterChoices)(h));return h.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 e=t.keyCode;var i=this._store.activeItems;var n=this.input.isFocussed;var r=this.dropdown.isActive;var s=this.itemList.hasChildren();var o=String.fromCharCode(e);var a=/[a-zA-Z0-9-_ ]/.test(o);var c=d.KEY_CODES.BACK_KEY,l=d.KEY_CODES.DELETE_KEY,h=d.KEY_CODES.ENTER_KEY,u=d.KEY_CODES.A_KEY,f=d.KEY_CODES.ESC_KEY,v=d.KEY_CODES.UP_KEY,p=d.KEY_CODES.DOWN_KEY,b=d.KEY_CODES.PAGE_UP_KEY,m=d.KEY_CODES.PAGE_DOWN_KEY;if(!this._isTextElement&&!r&&a){this.showDropdown();if(!this.input.isFocussed){this.input.value+=o.toLowerCase()}}switch(e){case u:return this._onSelectKey(t,s);case h:return this._onEnterKey(t,i,r);case f:return this._onEscapeKey(r);case v:case b:case p:case m:return this._onDirectionKey(t,r);case l:case c:return this._onDeleteKey(t,i,n)}};t.prototype._onKeyUp=function(t){var e=t.target,i=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 h=this._getTemplate("notice",s.notice);this.dropdown.element.innerHTML=h.outerHTML;this.showDropdown(true)}else{this.hideDropdown(true)}}else{var u=i===o||i===c;var f=u&&e&&!e.value;var v=!this._isTextElement&&this._isSearching;var p=this._canSearch&&s.response;if(f&&v){this._isSearching=false;this._store.dispatch((0,a.activateChoices)(true))}else if(p){this._handleSearch(this.input.rawValue)}}this._canSearch=this.config.searchEnabled};t.prototype._onSelectKey=function(t,e){var i=t.ctrlKey,n=t.metaKey;var r=i||n;if(r&&e){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,e,i){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(e,o);if(a.response){this.hideDropdown(true);this._addItem({value:o});this._triggerChange(o);this.clearInput()}}if(s){this._handleButtonAction(e,n);t.preventDefault()}if(i){var c=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));if(c){if(e[0]){e[0].keyCode=r}this._handleChoiceAction(e,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,e){var i=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(e||this._isSelectOneElement){this.showDropdown();this._canSearch=false;var a=i===r||i===o?1:-1;var c=n||i===o||i===s;var l="[data-choice-selectable]";var h=void 0;if(c){if(a>0){h=this.dropdown.element.querySelector("".concat(l,":last-of-type"))}else{h=this.dropdown.element.querySelector(l)}}else{var u=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));if(u){h=(0,v.getAdjacentEl)(u,l,a)}else{h=this.dropdown.element.querySelector(l)}}if(h){if(!(0,v.isScrolledIntoView)(h,this.choiceList.element,a)){this.choiceList.scrollToChildElement(h,a)}this._highlightChoice(h)}t.preventDefault()}};t.prototype._onDeleteKey=function(t,e,i){var n=t.target;if(!this._isSelectOneElement&&!n.value&&i){this._handleBackspace(e);t.preventDefault()}};t.prototype._onTouchMove=function(){if(this._wasTap){this._wasTap=false}};t.prototype._onTouchEnd=function(t){var e=(t||t.touches[0]).target;var i=this._wasTap&&this.containerOuter.element.contains(e);if(i){var n=e===this.containerOuter.element||e===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 e=t.target;if(!(e instanceof HTMLElement)){return}if(g&&this.choiceList.element.contains(e)){var i=this.choiceList.element.firstElementChild;var n=this._direction==="ltr"?t.offsetX>=i.offsetWidth:t.offsetX<i.offsetLeft;this._isScrollingOnIe=n}if(e===this.input.element){return}var r=e.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 e=t.target;if(e instanceof HTMLElement&&"choice"in e.dataset){this._highlightChoice(e)}};t.prototype._onClick=function(t){var e=t.target;var i=this.containerOuter.element.contains(e);if(i){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&&e!==this.input.element&&!this.dropdown.element.contains(e)){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 e;var i=this;var n=t.target;var r=n&&this.containerOuter.element.contains(n);if(!r){return}var s=(e={},e[d.TEXT_TYPE]=function(){if(n===i.input.element){i.containerOuter.addFocusState()}},e[d.SELECT_ONE_TYPE]=function(){i.containerOuter.addFocusState();if(n===i.input.element){i.showDropdown(true)}},e[d.SELECT_MULTIPLE_TYPE]=function(){if(n===i.input.element){i.showDropdown(true);i.containerOuter.addFocusState()}},e);s[this.passedElement.element.type]()};t.prototype._onBlur=function(t){var e;var i=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=(e={},e[d.TEXT_TYPE]=function(){if(n===i.input.element){i.containerOuter.removeFocusState();if(o){i.unhighlightAll()}i.hideDropdown(true)}},e[d.SELECT_ONE_TYPE]=function(){i.containerOuter.removeFocusState();if(n===i.input.element||n===i.containerOuter.element&&!i._canSearch){i.hideDropdown(true)}},e[d.SELECT_MULTIPLE_TYPE]=function(){if(n===i.input.element){i.containerOuter.removeFocusState();i.hideDropdown(true);if(o){i.unhighlightAll()}}},e);a[this.passedElement.element.type]()}else{this._isScrollingOnIe=false;this.input.element.focus()}};t.prototype._onFormReset=function(){this._store.dispatch((0,h.resetTo)(this._initialState))};t.prototype._highlightChoice=function(t){var e=this;if(t===void 0){t=null}var i=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(!i.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(e.config.classNames.highlightedState);t.setAttribute("aria-selected","false")}));if(n){this._highlightPosition=i.indexOf(n)}else{if(i.length>this._highlightPosition){n=i[this._highlightPosition]}else{n=i[i.length-1]}if(!n){n=i[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 e=t.value,i=t.label,n=i===void 0?null:i,r=t.choiceId,s=r===void 0?-1:r,o=t.groupId,a=o===void 0?-1:o,c=t.customProperties,h=c===void 0?{}:c,u=t.placeholder,f=u===void 0?false:u,v=t.keyCode,p=v===void 0?-1:v;var b=typeof e==="string"?e.trim():e;var m=this._store.items;var g=n||b;var x=s||-1;var y=a>=0?this._store.getGroupById(a):null;var w=m?m.length+1:1;if(this.config.prependValue){b=this.config.prependValue+b.toString()}if(this.config.appendValue){b+=this.config.appendValue.toString()}this._store.dispatch((0,l.addItem)({value:b,label:g,id:w,choiceId:x,groupId:a,customProperties:h,placeholder:f,keyCode:p}));if(this._isSelectOneElement){this.removeActiveItems(w)}this.passedElement.triggerEvent(d.EVENTS.addItem,{id:w,value:b,label:g,customProperties:h,groupValue:y&&y.value?y.value:null,keyCode:p})};t.prototype._removeItem=function(t){var e=t.id,i=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(!e||!s){return}this._store.dispatch((0,l.removeItem)(e,s));this.passedElement.triggerEvent(d.EVENTS.removeItem,{id:e,value:i,label:n,customProperties:r,groupValue:a&&a.value?a.value:null})};t.prototype._addChoice=function(t){var e=t.value,i=t.label,n=i===void 0?null:i,r=t.isSelected,s=r===void 0?false:r,o=t.isDisabled,c=o===void 0?false:o,l=t.groupId,h=l===void 0?-1:l,u=t.customProperties,d=u===void 0?{}:u,f=t.placeholder,v=f===void 0?false:f,p=t.keyCode,b=p===void 0?-1:p;if(typeof e==="undefined"||e===null){return}var m=this._store.choices;var g=n||e;var x=m?m.length+1:1;var y="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(x);this._store.dispatch((0,a.addChoice)({id:x,groupId:h,elementId:y,value:e,label:g,disabled:c,customProperties:d,placeholder:v,keyCode:b}));if(s){this._addItem({value:e,label:g,choiceId:x,customProperties:d,placeholder:v,keyCode:b})}};t.prototype._addGroup=function(t){var e=this;var i=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,v.isType)("Object",i)?i.choices:Array.from(i.getElementsByTagName("OPTION"));var h=n||Math.floor((new Date).valueOf()*Math.random());var u=i.disabled?i.disabled:false;if(l){this._store.dispatch((0,c.addGroup)({value:i.label,id:h,active:true,disabled:u}));var d=function(t){var i=t.disabled||t.parentNode&&t.parentNode.disabled;e._addChoice({value:t[s],label:(0,v.isType)("Object",t)?t[a]:t.innerHTML,isSelected:t.selected,isDisabled:i,groupId:h,customProperties:t.customProperties,placeholder:t.placeholder})};l.forEach(d)}else{this._store.dispatch((0,c.addGroup)({value:i.label,id:i.id,active:false,disabled:i.disabled}))}};t.prototype._getTemplate=function(t){var e;var i=[];for(var r=1;r<arguments.length;r++){i[r-1]=arguments[r]}return(e=this._templates[t]).call.apply(e,n([this,this.config],i,false))};t.prototype._createTemplates=function(){var t=this.config.callbackOnCreateTemplates;var e={};if(t&&typeof t==="function"){e=t.call(this,v.strToEl)}this._templates=(0,s.default)(m.default,e)};t.prototype._createElements=function(){this.containerOuter=new u.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 u.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position});this.input=new u.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste});this.choiceList=new u.List({element:this._getTemplate("choiceList",this._isSelectOneElement)});this.itemList=new u.List({element:this._getTemplate("itemList",this._isSelectOneElement)});this.dropdown=new u.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 e=this;var i=this.passedElement.placeholderOption;if(i&&i.parentNode&&i.parentNode.tagName==="SELECT"){this._addChoice({value:i.value,label:i.innerHTML,isSelected:i.selected,isDisabled:i.disabled,placeholder:true})}t.forEach((function(t){return e._addGroup({group:t,id:t.id||null})}))};t.prototype._addPredefinedChoices=function(t){var e=this;if(this.config.shouldSort){t.sort(this.config.sorter)}var i=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(e._isSelectElement){if(t.choices){e._addGroup({group:t,id:t.id||null})}else{var h=e._isSelectOneElement&&!i&&r===n;var u=h?true:t.selected;var d=t.disabled;e._addChoice({value:o,label:a,isSelected:!!u,isDisabled:!!d,placeholder:!!l,customProperties:c})}}else{e._addChoice({value:o,label:a,isSelected:!!t.selected,isDisabled:!!t.disabled,placeholder:!!t.placeholder,customProperties:c})}}))};t.prototype._addPredefinedItems=function(t){var e=this;t.forEach((function(t){if(typeof t==="object"&&t.value){e._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder})}if(typeof t==="string"){e._addItem({value:t})}}))};t.prototype._setChoiceOrItem=function(t){var e=this;var i=(0,v.getType)(t).toLowerCase();var n={object:function(){if(!t.value){return}if(!e._isTextElement){e._addChoice({value:t.value,label:t.label,isSelected:true,isDisabled:false,customProperties:t.customProperties,placeholder:t.placeholder})}else{e._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder})}},string:function(){if(!e._isTextElement){e._addChoice({value:t,label:t,isSelected:true,isDisabled:false})}else{e._addItem({value:t})}}};n[i]()};t.prototype._findAndSelectChoiceByValue=function(t){var e=this;var i=this._store.choices;var n=i.find((function(i){return e.config.valueComparer(i.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 e=this.config,i=e.placeholder,n=e.placeholderValue;var r=this.passedElement.element.dataset;if(i){if(n){return n}if(r.placeholder){return r.placeholder}}return null};return t}();e["default"]=y},613:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});var n=i(799);var r=i(883);var s=function(){function t(t){var e=t.element,i=t.type,n=t.classNames,r=t.position;this.element=e;this.classNames=n;this.type=i;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 e=false;if(this.position==="auto"){e=!window.matchMedia("(min-height: ".concat(t+1,"px)")).matches}else if(this.position==="top"){e=true}return e};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}();e["default"]=s},217:function(t,e){Object.defineProperty(e,"__esModule",{value:true});var i=function(){function t(t){var e=t.element,i=t.type,n=t.classNames;this.element=e;this.classNames=n;this.type=i;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}();e["default"]=i},520:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.WrappedSelect=e.WrappedInput=e.List=e.Input=e.Container=e.Dropdown=void 0;var r=n(i(217));e.Dropdown=r.default;var s=n(i(613));e.Container=s.default;var o=n(i(11));e.Input=o.default;var a=n(i(624));e.List=a.default;var c=n(i(541));e.WrappedInput=c.default;var l=n(i(982));e.WrappedSelect=l.default},11:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});var n=i(799);var r=i(883);var s=function(){function t(t){var e=t.element,i=t.type,n=t.classNames,r=t.preventPaste;this.element=e;this.type=i;this.classNames=n;this.preventPaste=r;this.isFocussed=this.element.isEqualNode(document.activeElement);this.isDisabled=e.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,e=t.style,i=t.value,n=t.placeholder;e.minWidth="".concat(n.length+1,"ch");e.width="".concat(i.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}();e["default"]=s},624:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});var n=i(883);var r=function(){function t(t){var e=t.element;this.element=e;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,e){var i=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=e>0?this.element.scrollTop+o-r:t.offsetTop;requestAnimationFrame((function(){i._animateScroll(a,e)}))};t.prototype._scrollDown=function(t,e,i){var n=(i-t)/e;var r=n>1?n:1;this.element.scrollTop=t+r};t.prototype._scrollUp=function(t,e,i){var n=(t-i)/e;var r=n>1?n:1;this.element.scrollTop=t-r};t.prototype._animateScroll=function(t,e){var i=this;var r=n.SCROLLING_SPEED;var s=this.element.scrollTop;var o=false;if(e>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(){i._animateScroll(t,e)}))}};return t}();e["default"]=r},730:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});var n=i(799);var r=function(){function t(t){var e=t.element,i=t.classNames;this.element=e;this.classNames=i;if(!(e instanceof HTMLInputElement)&&!(e 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,e){(0,n.dispatchEvent)(this.element,t,e)};return t}();e["default"]=r},541:function(t,e,i){var n=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var s=r(i(730));var o=function(t){n(e,t);function e(e){var i=e.element,n=e.classNames,r=e.delimiter;var s=t.call(this,{element:i,classNames:n})||this;s.delimiter=r;return s}Object.defineProperty(e.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 e}(s.default);e["default"]=o},982:function(t,e,i){var n=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var s=r(i(730));var o=function(t){n(e,t);function e(e){var i=e.element,n=e.classNames,r=e.template;var s=t.call(this,{element:i,classNames:n})||this;s.template=r;return s}Object.defineProperty(e.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(t){var e=this;var i=document.createDocumentFragment();var n=function(t){var n=e.template(t);i.appendChild(n)};t.forEach((function(t){return n(t)}));this.appendDocFragment(i)},enumerable:false,configurable:true});e.prototype.appendDocFragment=function(t){this.element.innerHTML="";this.element.appendChild(t)};return e}(s.default);e["default"]=o},883:function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.SCROLLING_SPEED=e.SELECT_MULTIPLE_TYPE=e.SELECT_ONE_TYPE=e.TEXT_TYPE=e.KEY_CODES=e.ACTION_TYPES=e.EVENTS=void 0;e.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"};e.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"};e.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};e.TEXT_TYPE="text";e.SELECT_ONE_TYPE="select-one";e.SELECT_MULTIPLE_TYPE="select-multiple";e.SCROLLING_SPEED=4},789:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.DEFAULT_CONFIG=e.DEFAULT_CLASSNAMES=void 0;var n=i(799);e.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"};e.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,e){return t===e},fuseOptions:{includeScore:true},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:e.DEFAULT_CLASSNAMES}},18:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},978:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},948:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},359:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},285:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},533:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},187:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){if(n===undefined)n=i;Object.defineProperty(t,n,{enumerable:true,get:function(){return e[i]}})}:function(t,e,i,n){if(n===undefined)n=i;t[n]=e[i]});var r=this&&this.__exportStar||function(t,e){for(var i in t)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(e,i))n(e,t,i)};Object.defineProperty(e,"__esModule",{value:true});r(i(18),e);r(i(978),e);r(i(948),e);r(i(359),e);r(i(285),e);r(i(533),e);r(i(287),e);r(i(132),e);r(i(837),e);r(i(598),e);r(i(369),e);r(i(37),e);r(i(47),e);r(i(923),e);r(i(876),e)},287:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},132:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},837:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},598:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},37:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},369:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},47:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},923:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},876:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},799:function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.diff=e.cloneObject=e.existsInArray=e.dispatchEvent=e.sortByScore=e.sortByAlpha=e.strToEl=e.sanitise=e.isScrolledIntoView=e.getAdjacentEl=e.wrap=e.isType=e.getType=e.generateId=e.generateChars=e.getRandomNumber=void 0;var i=function(t,e){return Math.floor(Math.random()*(e-t)+t)};e.getRandomNumber=i;var n=function(t){return Array.from({length:t},(function(){return(0,e.getRandomNumber)(0,36).toString(36)})).join("")};e.generateChars=n;var r=function(t,i){var n=t.id||t.name&&"".concat(t.name,"-").concat((0,e.generateChars)(2))||(0,e.generateChars)(4);n=n.replace(/(:|\.|\[|\]|,)/g,"");n="".concat(i,"-").concat(n);return n};e.generateId=r;var s=function(t){return Object.prototype.toString.call(t).slice(8,-1)};e.getType=s;var o=function(t,i){return i!==undefined&&i!==null&&(0,e.getType)(i)===t};e.isType=o;var a=function(t,e){if(e===void 0){e=document.createElement("div")}if(t.parentNode){if(t.nextSibling){t.parentNode.insertBefore(e,t.nextSibling)}else{t.parentNode.appendChild(e)}}return e.appendChild(t)};e.wrap=a;var c=function(t,e,i){if(i===void 0){i=1}var n="".concat(i>0?"next":"previous","ElementSibling");var r=t[n];while(r){if(r.matches(e)){return r}r=r[n]}return r};e.getAdjacentEl=c;var l=function(t,e,i){if(i===void 0){i=1}if(!t){return false}var n;if(i>0){n=e.scrollTop+e.offsetHeight>=t.offsetTop+t.offsetHeight}else{n=t.offsetTop>=e.scrollTop}return n};e.isScrolledIntoView=l;var h=function(t){if(typeof t!=="string"){return t}return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,""")};e.sanitise=h;e.strToEl=function(){var t=document.createElement("div");return function(e){var i=e.trim();t.innerHTML=i;var n=t.children[0];while(t.firstChild){t.removeChild(t.firstChild)}return n}}();var u=function(t,e){var i=t.value,n=t.label,r=n===void 0?i:n;var s=e.value,o=e.label,a=o===void 0?s:o;return r.localeCompare(a,[],{sensitivity:"base",ignorePunctuation:true,numeric:true})};e.sortByAlpha=u;var d=function(t,e){var i=t.score,n=i===void 0?0:i;var r=e.score,s=r===void 0?0:r;return n-s};e.sortByScore=d;var f=function(t,e,i){if(i===void 0){i=null}var n=new CustomEvent(e,{detail:i,bubbles:true,cancelable:true});return t.dispatchEvent(n)};e.dispatchEvent=f;var v=function(t,e,i){if(i===void 0){i="value"}return t.some((function(t){if(typeof e==="string"){return t[i]===e.trim()}return t[i]===e}))};e.existsInArray=v;var p=function(t){return JSON.parse(JSON.stringify(t))};e.cloneObject=p;var b=function(t,e){var i=Object.keys(t).sort();var n=Object.keys(e).sort();return i.filter((function(t){return n.indexOf(t)<0}))};e.diff=b},273:function(t,e){var i=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++){if(s||!(n in e)){if(!s)s=Array.prototype.slice.call(e,0,n);s[n]=e[n]}}return t.concat(s||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;e.defaultState=[];function n(t,n){if(t===void 0){t=e.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 i(i([],t,true),[s],false)}case"ADD_ITEM":{var o=n;if(o.choiceId>-1){return t.map((function(t){var e=t;if(e.id===parseInt("".concat(o.choiceId),10)){e.selected=true}return e}))}return t}case"REMOVE_ITEM":{var a=n;if(a.choiceId&&a.choiceId>-1){return t.map((function(t){var e=t;if(e.id===parseInt("".concat(a.choiceId),10)){e.selected=false}return e}))}return t}case"FILTER_CHOICES":{var c=n;return t.map((function(t){var e=t;e.active=c.results.some((function(t){var i=t.item,n=t.score;if(i.id===e.id){e.score=n;return true}return false}));return e}))}case"ACTIVATE_CHOICES":{var l=n;return t.map((function(t){var e=t;e.active=l.active;return e}))}case"CLEAR_CHOICES":{return e.defaultState}default:{return t}}}e["default"]=n},871:function(t,e){var i=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++){if(s||!(n in e)){if(!s)s=Array.prototype.slice.call(e,0,n);s[n]=e[n]}}return t.concat(s||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;e.defaultState=[];function n(t,n){if(t===void 0){t=e.defaultState}if(n===void 0){n={}}switch(n.type){case"ADD_GROUP":{var r=n;return i(i([],t,true),[{id:r.id,value:r.value,active:r.active,disabled:r.disabled}],false)}case"CLEAR_CHOICES":{return[]}default:{return t}}}e["default"]=n},655:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;var r=i(857);var s=n(i(52));var o=n(i(871));var a=n(i(273));var c=n(i(502));var l=i(799);e.defaultState={groups:[],items:[],choices:[],loading:false};var h=(0,r.combineReducers)({items:s.default,groups:o.default,choices:a.default,loading:c.default});var u=function(t,i){var n=t;if(i.type==="CLEAR_ALL"){n=e.defaultState}else if(i.type==="RESET_TO"){return(0,l.cloneObject)(i.state)}return h(n,i)};e["default"]=u},52:function(t,e){var i=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++){if(s||!(n in e)){if(!s)s=Array.prototype.slice.call(e,0,n);s[n]=e[n]}}return t.concat(s||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;e.defaultState=[];function n(t,n){if(t===void 0){t=e.defaultState}if(n===void 0){n={}}switch(n.type){case"ADD_ITEM":{var r=n;var s=i(i([],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 e=t;e.highlighted=false;return e}))}case"REMOVE_ITEM":{return t.map((function(t){var e=t;if(e.id===n.id){e.active=false}return e}))}case"HIGHLIGHT_ITEM":{var o=n;return t.map((function(t){var e=t;if(e.id===o.id){e.highlighted=o.highlighted}return e}))}default:{return t}}}e["default"]=n},502:function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;e.defaultState=false;var i=function(t,i){if(t===void 0){t=e.defaultState}if(i===void 0){i={}}switch(i.type){case"SET_IS_LOADING":{return i.isLoading}default:{return t}}};e["default"]=i},744:function(t,e,i){var n=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++){if(s||!(n in e)){if(!s)s=Array.prototype.slice.call(e,0,n);s[n]=e[n]}}return t.concat(s||Array.prototype.slice.call(e))};var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var s=i(857);var o=r(i(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,e=t.groups,i=t.choices;return e.filter((function(t){var e=t.active===true&&t.disabled===false;var n=i.some((function(t){return t.active===true&&t.disabled===false}));return e&&n}),[])},enumerable:false,configurable:true});t.prototype.isLoading=function(){return this.state.loading};t.prototype.getChoiceById=function(t){return this.activeChoices.find((function(e){return e.id===parseInt(t,10)}))};t.prototype.getGroupById=function(t){return this.groups.find((function(e){return e.id===t}))};return t}();e["default"]=a},686:function(t,e){Object.defineProperty(e,"__esModule",{value:true});var i={containerOuter:function(t,e,i,n,r,s,o){var a=t.classNames.containerOuter;var c=Object.assign(document.createElement("div"),{className:a});c.dataset.type=s;if(e){c.dir=e}if(n){c.tabIndex=0}if(i){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 e=t.classNames.containerInner;return Object.assign(document.createElement("div"),{className:e})},itemList:function(t,e){var i=t.classNames,n=i.list,r=i.listSingle,s=i.listItems;return Object.assign(document.createElement("div"),{className:"".concat(n," ").concat(e?r:s)})},placeholder:function(t,e){var i;var n=t.allowHTML,r=t.classNames.placeholder;return Object.assign(document.createElement("div"),(i={className:r},i[n?"innerHTML":"innerText"]=e,i))},item:function(t,e,i){var n,r;var s=t.allowHTML,o=t.classNames,a=o.item,c=o.button,l=o.highlightedState,h=o.itemSelectable,u=o.placeholder;var d=e.id,f=e.value,v=e.label,p=e.customProperties,b=e.active,m=e.disabled,g=e.highlighted,x=e.placeholder;var y=Object.assign(document.createElement("div"),(n={className:a},n[s?"innerHTML":"innerText"]=v,n));Object.assign(y.dataset,{item:"",id:d,value:f,customProperties:p});if(b){y.setAttribute("aria-selected","true")}if(m){y.setAttribute("aria-disabled","true")}if(x){y.classList.add(u)}y.classList.add(g?l:h);if(i){if(m){y.classList.remove(h)}y.dataset.deletable="";var w="Remove item";var M=Object.assign(document.createElement("button"),(r={type:"button",className:c},r[s?"innerHTML":"innerText"]=w,r));M.setAttribute("aria-label","".concat(w,": '").concat(f,"'"));M.dataset.button="";y.appendChild(M)}return y},choiceList:function(t,e){var i=t.classNames.list;var n=Object.assign(document.createElement("div"),{className:i});if(!e){n.setAttribute("aria-multiselectable","true")}n.setAttribute("role","listbox");return n},choiceGroup:function(t,e){var i;var n=t.allowHTML,r=t.classNames,s=r.group,o=r.groupHeading,a=r.itemDisabled;var c=e.id,l=e.value,h=e.disabled;var u=Object.assign(document.createElement("div"),{className:"".concat(s," ").concat(h?a:"")});u.setAttribute("role","group");Object.assign(u.dataset,{group:"",id:c,value:l});if(h){u.setAttribute("aria-disabled","true")}u.appendChild(Object.assign(document.createElement("div"),(i={className:o},i[n?"innerHTML":"innerText"]=l,i)));return u},choice:function(t,e,i){var n;var r=t.allowHTML,s=t.classNames,o=s.item,a=s.itemChoice,c=s.itemSelectable,l=s.selectedState,h=s.itemDisabled,u=s.placeholder;var d=e.id,f=e.value,v=e.label,p=e.groupId,b=e.elementId,m=e.disabled,g=e.selected,x=e.placeholder;var y=Object.assign(document.createElement("div"),(n={id:b},n[r?"innerHTML":"innerText"]=v,n.className="".concat(o," ").concat(a),n));if(g){y.classList.add(l)}if(x){y.classList.add(u)}y.setAttribute("role",p&&p>0?"treeitem":"option");Object.assign(y.dataset,{choice:"",id:d,value:f,selectText:i});if(m){y.classList.add(h);y.dataset.choiceDisabled="";y.setAttribute("aria-disabled","true")}else{y.classList.add(c);y.dataset.choiceSelectable=""}return y},input:function(t,e){var i=t.classNames,n=i.input,r=i.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",e);return s},dropdown:function(t){var e=t.classNames,i=e.list,n=e.listDropdown;var r=document.createElement("div");r.classList.add(i,n);r.setAttribute("aria-expanded","false");return r},notice:function(t,e,i){var n;var r=t.allowHTML,s=t.classNames,o=s.item,a=s.itemChoice,c=s.noResults,l=s.noChoices;if(i===void 0){i=""}var h=[o,a];if(i==="no-choices"){h.push(l)}else if(i==="no-results"){h.push(c)}return Object.assign(document.createElement("div"),(n={},n[r?"innerHTML":"innerText"]=e,n.className=h.join(" "),n))},option:function(t){var e=t.label,i=t.value,n=t.customProperties,r=t.active,s=t.disabled;var o=new Option(e,i,false,r);if(n){o.dataset.customProperties="".concat(n)}o.disabled=!!s;return o}};e["default"]=i},996:function(t){var e=function t(e){return i(e)&&!n(e)};function i(t){return!!t&&typeof t==="object"}function n(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[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,e){return e.clone!==false&&e.isMergeableObject(t)?b(a(t),t,e):t}function l(t,e,i){return t.concat(e).map((function(t){return c(t,i)}))}function h(t,e){if(!e.customMerge){return b}var i=e.customMerge(t);return typeof i==="function"?i:b}function u(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}function d(t){return Object.keys(t).concat(u(t))}function f(t,e){try{return e in t}catch(t){return false}}function v(t,e){return f(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function p(t,e,i){var n={};if(i.isMergeableObject(t)){d(t).forEach((function(e){n[e]=c(t[e],i)}))}d(e).forEach((function(r){if(v(t,r)){return}if(f(t,r)&&i.isMergeableObject(e[r])){n[r]=h(r,i)(t[r],e[r],i)}else{n[r]=c(e[r],i)}}));return n}function b(t,i,n){n=n||{};n.arrayMerge=n.arrayMerge||l;n.isMergeableObject=n.isMergeableObject||e;n.cloneUnlessOtherwiseSpecified=c;var r=Array.isArray(i);var s=Array.isArray(t);var o=r===s;if(!o){return c(i,n)}else if(r){return n.arrayMerge(t,i,n)}else{return p(t,i,n)}}b.all=function t(e,i){if(!Array.isArray(e)){throw new Error("first argument should be an array")}return e.reduce((function(t,e){return b(t,e,i)}),{})};var m=b;t.exports=m},221:function(t,e,i){i.r(e);i.d(e,{default:function(){return xt}});function n(t){return!Array.isArray?v(t)==="[object Array]":Array.isArray(t)}const r=1/0;function s(t){if(typeof t=="string"){return t}let e=t+"";return e=="0"&&1/t==-r?"-0":e}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||u(t)&&v(t)=="[object Boolean]"}function h(t){return typeof t==="object"}function u(t){return h(t)&&t!==null}function d(t){return t!==undefined&&t!==null}function f(t){return!t.trim().length}function v(t){return t==null?t===undefined?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const p="Incorrect 'index' type";const b=t=>`Invalid value for key ${t}`;const m=t=>`Pattern length exceeds max of ${t}.`;const g=t=>`Missing ${t} property in key`;const x=t=>`Property 'weight' in key '${t}' must be a positive integer`;const y=Object.prototype.hasOwnProperty;class w{constructor(t){this._keys=[];this._keyMap={};let e=0;t.forEach((t=>{let i=M(t);e+=i.weight;this._keys.push(i);this._keyMap[i.id]=i;e+=i.weight}));this._keys.forEach((t=>{t.weight/=e}))}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function M(t){let e=null;let i=null;let r=null;let s=1;if(a(t)||n(t)){r=t;e=_(t);i=I(t)}else{if(!y.call(t,"name")){throw new Error(g("name"))}const n=t.name;r=n;if(y.call(t,"weight")){s=t.weight;if(s<=0){throw new Error(x(n))}}e=_(n);i=I(n)}return{path:e,id:i,weight:s,src:r}}function _(t){return n(t)?t:t.split(".")}function I(t){return n(t)?t.join("."):t}function j(t,e){let i=[];let r=false;const s=(t,e,h)=>{if(!d(t)){return}if(!e[h]){i.push(t)}else{let u=e[h];const f=t[u];if(!d(f)){return}if(h===e.length-1&&(a(f)||c(f)||l(f))){i.push(o(f))}else if(n(f)){r=true;for(let t=0,i=f.length;t<i;t+=1){s(f[t],e,h+1)}}else if(e.length){s(f,e,h+1)}}};s(t,a(e)?e.split("."):e,0);return r?i:i[0]}const k={includeMatches:false,findAllMatches:false,minMatchCharLength:1};const N={isCaseSensitive:false,includeScore:false,keys:[],shouldSort:true,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1};const A={location:0,threshold:.6,distance:100};const z={useExtendedSearch:false,getFn:j,ignoreLocation:false,ignoreFieldNorm:false,fieldNormWeight:1};var O={...N,...k,...A,...z};const E=/[^ ]+/g;function C(t=1,e=3){const i=new Map;const n=Math.pow(10,e);return{get(e){const r=e.match(E).length;if(i.has(r)){return i.get(r)}const s=1/Math.pow(r,.5*t);const o=parseFloat(Math.round(s*n)/n);i.set(r,o);return o},clear(){i.clear()}}}class D{constructor({getFn:t=O.getFn,fieldNormWeight:e=O.fieldNormWeight}={}){this.norm=C(e,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,e)=>{this._keysMap[t.id]=e}))}create(){if(this.isCreated||!this.docs.length){return}this.isCreated=true;if(a(this.docs[0])){this.docs.forEach(((t,e)=>{this._addString(t,e)}))}else{this.docs.forEach(((t,e)=>{this._addObject(t,e)}))}this.norm.clear()}add(t){const e=this.size();if(a(t)){this._addString(t,e)}else{this._addObject(t,e)}}removeAt(t){this.records.splice(t,1);for(let e=t,i=this.size();e<i;e+=1){this.records[e].i-=1}}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!d(t)||f(t)){return}let i={v:t,i:e,n:this.norm.get(t)};this.records.push(i)}_addObject(t,e){let i={i:e,$:{}};this.keys.forEach(((e,r)=>{let s=this.getFn(t,e.path);if(!d(s)){return}if(n(s)){let t=[];const e=[{nestedArrIndex:-1,value:s}];while(e.length){const{nestedArrIndex:i,value:r}=e.pop();if(!d(r)){continue}if(a(r)&&!f(r)){let e={v:r,i,n:this.norm.get(r)};t.push(e)}else if(n(r)){r.forEach(((t,i)=>{e.push({nestedArrIndex:i,value:t})}))}else;}i.$[r]=t}else if(!f(s)){let t={v:s,n:this.norm.get(s)};i.$[r]=t}}));this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function T(t,e,{getFn:i=O.getFn,fieldNormWeight:n=O.fieldNormWeight}={}){const r=new D({getFn:i,fieldNormWeight:n});r.setKeys(t.map(M));r.setSources(e);r.create();return r}function S(t,{getFn:e=O.getFn,fieldNormWeight:i=O.fieldNormWeight}={}){const{keys:n,records:r}=t;const s=new D({getFn:e,fieldNormWeight:i});s.setKeys(n);s.setIndexRecords(r);return s}function L(t,{errors:e=0,currentLocation:i=0,expectedLocation:n=0,distance:r=O.distance,ignoreLocation:s=O.ignoreLocation}={}){const o=e/t.length;if(s){return o}const a=Math.abs(n-i);if(!r){return a?1:o}return o+a/r}function R(t=[],e=O.minMatchCharLength){let i=[];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>=e){i.push([n,r])}n=-1}}if(t[s-1]&&s-n>=e){i.push([n,s-1])}return i}const $=32;function P(t,e,i,{location:n=O.location,distance:r=O.distance,threshold:s=O.threshold,findAllMatches:o=O.findAllMatches,minMatchCharLength:a=O.minMatchCharLength,includeMatches:c=O.includeMatches,ignoreLocation:l=O.ignoreLocation}={}){if(e.length>$){throw new Error(m($))}const h=e.length;const u=t.length;const d=Math.max(0,Math.min(n,u));let f=s;let v=d;const p=a>1||c;const b=p?Array(u):[];let g;while((g=t.indexOf(e,v))>-1){let t=L(e,{currentLocation:g,expectedLocation:d,distance:r,ignoreLocation:l});f=Math.min(t,f);v=g+h;if(p){let t=0;while(t<h){b[g+t]=1;t+=1}}}v=-1;let x=[];let y=1;let w=h+u;const M=1<<h-1;for(let n=0;n<h;n+=1){let s=0;let a=w;while(s<a){const t=L(e,{errors:n,currentLocation:d+a,expectedLocation:d,distance:r,ignoreLocation:l});if(t<=f){s=a}else{w=a}a=Math.floor((w-s)/2+s)}w=a;let c=Math.max(1,d-a+1);let m=o?u:Math.min(d+a,u)+h;let g=Array(m+2);g[m+1]=(1<<n)-1;for(let s=m;s>=c;s-=1){let o=s-1;let a=i[t.charAt(o)];if(p){b[o]=+!!a}g[s]=(g[s+1]<<1|1)&a;if(n){g[s]|=(x[s+1]|x[s])<<1|1|x[s+1]}if(g[s]&M){y=L(e,{errors:n,currentLocation:o,expectedLocation:d,distance:r,ignoreLocation:l});if(y<=f){f=y;v=o;if(v<=d){break}c=Math.max(1,2*d-v)}}}const _=L(e,{errors:n+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:l});if(_>f){break}x=g}const _={isMatch:v>=0,score:Math.max(.001,y)};if(p){const t=R(b,a);if(!t.length){_.isMatch=false}else if(c){_.indices=t}}return _}function U(t){let e={};for(let i=0,n=t.length;i<n;i+=1){const r=t.charAt(i);e[r]=(e[r]||0)|1<<n-i-1}return e}class Y{constructor(t,{location:e=O.location,threshold:i=O.threshold,distance:n=O.distance,includeMatches:r=O.includeMatches,findAllMatches:s=O.findAllMatches,minMatchCharLength:o=O.minMatchCharLength,isCaseSensitive:a=O.isCaseSensitive,ignoreLocation:c=O.ignoreLocation}={}){this.options={location:e,threshold:i,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,e)=>{this.chunks.push({pattern:t,alphabet:U(t),startIndex:e})};const h=this.pattern.length;if(h>$){let t=0;const e=h%$;const i=h-e;while(t<i){l(this.pattern.substr(t,$),t);t+=$}if(e){const t=h-$;l(this.pattern.substr(t),t)}}else{l(this.pattern,0)}}searchIn(t){const{isCaseSensitive:e,includeMatches:i}=this.options;if(!e){t=t.toLowerCase()}if(this.pattern===t){let e={isMatch:true,score:0};if(i){e.indices=[[0,t.length-1]]}return e}const{location:n,distance:r,threshold:s,findAllMatches:o,minMatchCharLength:a,ignoreLocation:c}=this.options;let l=[];let h=0;let u=false;this.chunks.forEach((({pattern:e,alphabet:d,startIndex:f})=>{const{isMatch:v,score:p,indices:b}=P(t,e,d,{location:n+f,distance:r,threshold:s,findAllMatches:o,minMatchCharLength:a,includeMatches:i,ignoreLocation:c});if(v){u=true}h+=p;if(v&&b){l=[...l,...b]}}));let d={isMatch:u,score:u?h/this.chunks.length:1};if(u&&i){d.indices=l}return d}}class F{constructor(t){this.pattern=t}static isMultiMatch(t){return B(t,this.multiRegex)}static isSingleMatch(t){return B(t,this.singleRegex)}search(){}}function B(t,e){const i=t.match(e);return i?i[1]:null}class H extends F{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class Q extends F{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=t.indexOf(this.pattern);const i=e===-1;return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}}class V extends F{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class G extends F{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class Z extends F{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class W extends F{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class K extends F{constructor(t,{location:e=O.location,threshold:i=O.threshold,distance:n=O.distance,includeMatches:r=O.includeMatches,findAllMatches:s=O.findAllMatches,minMatchCharLength:o=O.minMatchCharLength,isCaseSensitive:a=O.isCaseSensitive,ignoreLocation:c=O.ignoreLocation}={}){super(t);this._bitapSearch=new Y(t,{location:e,threshold:i,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 q extends F{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e=0;let i;const n=[];const r=this.pattern.length;while((i=t.indexOf(this.pattern,e))>-1){e=i+r;n.push([i,e-1])}const s=!!n.length;return{isMatch:s,score:s?0:1,indices:n}}}const J=[H,q,V,G,W,Z,Q,K];const X=J.length;const tt=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;const et="|";function it(t,e={}){return t.split(et).map((t=>{let i=t.trim().split(tt).filter((t=>t&&!!t.trim()));let n=[];for(let t=0,r=i.length;t<r;t+=1){const r=i[t];let s=false;let o=-1;while(!s&&++o<X){const t=J[o];let i=t.isMultiMatch(r);if(i){n.push(new t(i,e));s=true}}if(s){continue}o=-1;while(++o<X){const t=J[o];let i=t.isSingleMatch(r);if(i){n.push(new t(i,e));break}}}return n}))}const nt=new Set([K.type,q.type]);class rt{constructor(t,{isCaseSensitive:e=O.isCaseSensitive,includeMatches:i=O.includeMatches,minMatchCharLength:n=O.minMatchCharLength,ignoreLocation:r=O.ignoreLocation,findAllMatches:s=O.findAllMatches,location:o=O.location,threshold:a=O.threshold,distance:c=O.distance}={}){this.query=null;this.options={isCaseSensitive:e,includeMatches:i,minMatchCharLength:n,findAllMatches:s,ignoreLocation:r,location:o,threshold:a,distance:c};this.pattern=e?t:t.toLowerCase();this.query=it(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e){return{isMatch:false,score:1}}const{includeMatches:i,isCaseSensitive:n}=this.options;t=n?t:t.toLowerCase();let r=0;let s=[];let o=0;for(let n=0,a=e.length;n<a;n+=1){const a=e[n];s.length=0;r=0;for(let e=0,n=a.length;e<n;e+=1){const n=a[e];const{isMatch:c,indices:l,score:h}=n.search(t);if(c){r+=1;o+=h;if(i){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(i){t.indices=s}return t}}return{isMatch:false,score:1}}}const st=[];function ot(...t){st.push(...t)}function at(t,e){for(let i=0,n=st.length;i<n;i+=1){let n=st[i];if(n.condition(t,e)){return new n(t,e)}}return new Y(t,e)}const ct={AND:"$and",OR:"$or"};const lt={PATH:"$path",PATTERN:"$val"};const ht=t=>!!(t[ct.AND]||t[ct.OR]);const ut=t=>!!t[lt.PATH];const dt=t=>!n(t)&&h(t)&&!ht(t);const ft=t=>({[ct.AND]:Object.keys(t).map((e=>({[e]:t[e]})))});function vt(t,e,{auto:i=true}={}){const r=t=>{let s=Object.keys(t);const o=ut(t);if(!o&&s.length>1&&!ht(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(b(n))}const c={keyId:I(n),pattern:r};if(i){c.searcher=at(r,e)}return c}let c={children:[],operator:s[0]};s.forEach((e=>{const i=t[e];if(n(i)){i.forEach((t=>{c.children.push(r(t))}))}}));return c};if(!ht(t)){t=ft(t)}return r(t)}function pt(t,{ignoreFieldNorm:e=O.ignoreFieldNorm}){t.forEach((t=>{let i=1;t.matches.forEach((({key:t,norm:n,score:r})=>{const s=t?t.weight:null;i*=Math.pow(r===0&&s?Number.EPSILON:r,(s||1)*(e?1:n))}));t.score=i}))}function bt(t,e){const i=t.matches;e.matches=[];if(!d(i)){return}i.forEach((t=>{if(!d(t.indices)||!t.indices.length){return}const{indices:i,value:n}=t;let r={indices:i,value:n};if(t.key){r.key=t.key.src}if(t.idx>-1){r.refIndex=t.idx}e.matches.push(r)}))}function mt(t,e){e.score=t.score}function gt(t,e,{includeMatches:i=O.includeMatches,includeScore:n=O.includeScore}={}){const r=[];if(i)r.push(bt);if(n)r.push(mt);return t.map((t=>{const{idx:i}=t;const n={item:e[i],refIndex:i};if(r.length){r.forEach((e=>{e(t,n)}))}return n}))}class xt{constructor(t,e={},i){this.options={...O,...e};this._keyStore=new w(this.options.keys);this.setCollection(t,i)}setCollection(t,e){this._docs=t;if(e&&!(e instanceof D)){throw new Error(p)}this._myIndex=e||T(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 e=[];for(let i=0,n=this._docs.length;i<n;i+=1){const r=this._docs[i];if(t(r,i)){this.removeAt(i);i-=1;n-=1;e.push(r)}}return e}removeAt(t){this._docs.splice(t,1);this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){const{includeMatches:i,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);pt(l,{ignoreFieldNorm:o});if(r){l.sort(s)}if(c(e)&&e>-1){l=l.slice(0,e)}return gt(l,this._docs,{includeMatches:i,includeScore:n})}_searchStringList(t){const e=at(t,this.options);const{records:i}=this._myIndex;const n=[];i.forEach((({v:t,i,n:r})=>{if(!d(t)){return}const{isMatch:s,score:o,indices:a}=e.searchIn(t);if(s){n.push({item:t,idx:i,matches:[{score:o,value:t,norm:r,indices:a}]})}}));return n}_searchLogical(t){const e=vt(t,this.options);const i=(t,e,n)=>{if(!t.children){const{keyId:i,searcher:r}=t;const s=this._findMatches({key:this._keyStore.get(i),value:this._myIndex.getValueForItemAtKeyId(e,i),searcher:r});if(s&&s.length){return[{idx:n,item:e,matches:s}]}return[]}const r=[];for(let s=0,o=t.children.length;s<o;s+=1){const o=t.children[s];const a=i(o,e,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=i(e,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 e=at(t,this.options);const{keys:i,records:n}=this._myIndex;const r=[];n.forEach((({$:t,i:n})=>{if(!d(t)){return}let s=[];i.forEach(((i,n)=>{s.push(...this._findMatches({key:i,value:t[n],searcher:e}))}));if(s.length){r.push({idx:n,item:t,matches:s})}}));return r}_findMatches({key:t,value:e,searcher:i}){if(!d(e)){return[]}let r=[];if(n(e)){e.forEach((({v:e,i:n,n:s})=>{if(!d(e)){return}const{isMatch:o,score:a,indices:c}=i.searchIn(e);if(o){r.push({score:a,key:t,value:e,idx:n,norm:s,indices:c})}}))}else{const{v:n,n:s}=e;const{isMatch:o,score:a,indices:c}=i.searchIn(n);if(o){r.push({score:a,key:t,value:n,norm:s,indices:c})}}return r}}xt.version="6.5.3";xt.createIndex=T;xt.parseIndex=S;xt.config=O;{xt.parseQuery=vt}{ot(rt)}},857:function(t,e,i){i.r(e);i.d(e,{__DO_NOT_USE__ActionTypes:function(){return l},applyMiddleware:function(){return m},bindActionCreators:function(){return p},combineReducers:function(){return f},compose:function(){return b},createStore:function(){return u}});function n(t,e,i){if(e in t){Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true})}else{t[e]=i}return t}function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}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 h(t){if(typeof t!=="object"||t===null)return false;var e=t;while(Object.getPrototypeOf(e)!==null){e=Object.getPrototypeOf(e)}return Object.getPrototypeOf(t)===e}function u(t,e,i){var n;if(typeof e==="function"&&typeof i==="function"||typeof i==="function"&&typeof arguments[3]==="function"){throw new Error(o(0))}if(typeof e==="function"&&typeof i==="undefined"){i=e;e=undefined}if(typeof i!=="undefined"){if(typeof i!=="function"){throw new Error(o(1))}return i(u)(t,e)}if(typeof t!=="function"){throw new Error(o(2))}var r=t;var s=e;var c=[];var d=c;var f=false;function v(){if(d===c){d=c.slice()}}function p(){if(f){throw new Error(o(3))}return s}function b(t){if(typeof t!=="function"){throw new Error(o(4))}if(f){throw new Error(o(5))}var e=true;v();d.push(t);return function i(){if(!e){return}if(f){throw new Error(o(6))}e=false;v();var n=d.indexOf(t);d.splice(n,1);c=null}}function m(t){if(!h(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 e=c=d;for(var i=0;i<e.length;i++){var n=e[i];n()}return t}function g(t){if(typeof t!=="function"){throw new Error(o(10))}r=t;m({type:l.REPLACE})}function x(){var t;var e=b;return t={subscribe:function t(i){if(typeof i!=="object"||i===null){throw new Error(o(11))}function n(){if(i.next){i.next(p())}}n();var r=e(n);return{unsubscribe:r}}},t[a]=function(){return this},t}m({type:l.INIT});return n={dispatch:m,subscribe:b,getState:p,replaceReducer:g},n[a]=x,n}function d(t){Object.keys(t).forEach((function(e){var i=t[e];var n=i(undefined,{type:l.INIT});if(typeof n==="undefined"){throw new Error(o(12))}if(typeof i(undefined,{type:l.PROBE_UNKNOWN_ACTION()})==="undefined"){throw new Error(o(13))}}))}function f(t){var e=Object.keys(t);var i={};for(var n=0;n<e.length;n++){var r=e[n];if(typeof t[r]==="function"){i[r]=t[r]}}var s=Object.keys(i);var a;try{d(i)}catch(t){a=t}return function t(e,n){if(e===void 0){e={}}if(a){throw a}var r=false;var c={};for(var l=0;l<s.length;l++){var h=s[l];var u=i[h];var d=e[h];var f=u(d,n);if(typeof f==="undefined"){throw new Error(o(14))}c[h]=f;r=r||f!==d}r=r||s.length!==Object.keys(e).length;return r?c:e}}function v(t,e){return function(){return e(t.apply(this,arguments))}}function p(t,e){if(typeof t==="function"){return v(t,e)}if(typeof t!=="object"||t===null){throw new Error(o(16))}var i={};for(var n in t){var r=t[n];if(typeof r==="function"){i[n]=v(r,e)}}return i}function b(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++){e[i]=arguments[i]}if(e.length===0){return function(t){return t}}if(e.length===1){return e[0]}return e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function m(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++){e[i]=arguments[i]}return function(t){return function(){var i=t.apply(void 0,arguments);var n=function t(){throw new Error(o(15))};var r={getState:i.getState,dispatch:function t(){return n.apply(void 0,arguments)}};var a=e.map((function(t){return t(r)}));n=b.apply(void 0,a)(i.dispatch);return s(s({},i),{},{dispatch:n})}}}}};var e={};function i(n){var r=e[n];if(r!==undefined){return r.exports}var s=e[n]={exports:{}};t[n].call(s.exports,s,s.exports,i);return s.exports}!function(){i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};i.d(e,{a:e});return e}}();!function(){i.d=function(t,e){for(var n in e){if(i.o(e,n)&&!i.o(t,n)){Object.defineProperty(t,n,{enumerable:true,get:e[n]})}}}}();!function(){i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}();!function(){i.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=i(373);var e=i.n(t);i(187);i(883);i(789);i(686);n["default"]=e()}();n=n["default"];return n}()}))}));const Sn=a(Tn);const Ln='*{-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;margin:0}:host{display:flex;flex-direction:column;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;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;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.choices{position:relative;overflow:hidden;font-size:16px}.choices:focus{outline:none;box-shadow:0 1px 4px 0 #101d3033}.choices:last-child{margin-bottom:0}.choices.is-open{overflow:visible;box-shadow:0 1px 4px 0 #101d3033}.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 Rn=0;const $n=t=>{var e;if((e=t.customProperties)===null||e===void 0?void 0:e.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 Pn=class{constructor(e){t(this,e);this.catChange=n(this,"catChange",7);this.catSearch=n(this,"catSearch",7);this.catScrolledBottom=n(this,"catScrolledBottom",7);this.i18n=h.getInstance();this.id=`cat-select-${Rn++}`;this.hasSlottedLabel=false;this.label="";this.labelHidden=false;this.required=false;this.choices=[];this.disabled=false;this.multiple=false;this.placeholder="";this.position="auto";this.noSearch=false}setChoicesHandler(t){if(!(t===null||t===void 0?void 0:t.length))return;this.setChoices(t,"value","label",true)}setValueHandler(t){if(this.multiple)return;this.setValue(t||[])}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,e,i,n,r,s,o,a,c,l,h;this.init();const u=(e=(t=this.hostElement).attachInternals)===null||e===void 0?void 0:e.call(t);if(u){this.choiceInner=((i=u.shadowRoot)===null||i===void 0?void 0:i.querySelector(".choices__inner"))||undefined;this.choiceDropdown=((r=(n=u.shadowRoot)===null||n===void 0?void 0:n.querySelector(".choices__list--dropdown"))===null||r===void 0?void 0:r.firstElementChild)||undefined}(s=this.choiceInner)===null||s===void 0?void 0:s.addEventListener("click",this.showDropdownHandler.bind(this));(o=this.selectElement)===null||o===void 0?void 0:o.addEventListener("addItem",this.onChange.bind(this));(a=this.selectElement)===null||a===void 0?void 0:a.addEventListener("removeItem",this.onChange.bind(this));(c=this.selectElement)===null||c===void 0?void 0:c.addEventListener("search",this.onSearch.bind(this));(l=this.choiceDropdown)===null||l===void 0?void 0:l.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,e,i,n,r,s,o,a;(t=this.choice)===null||t===void 0?void 0:t.destroy();this.choice=undefined;(e=this.choiceInner)===null||e===void 0?void 0:e.removeEventListener("click",this.showDropdownHandler.bind(this));(i=this.selectElement)===null||i===void 0?void 0:i.removeEventListener("addItem",this.onChange.bind(this));(n=this.selectElement)===null||n===void 0?void 0:n.removeEventListener("removeItem",this.onChange.bind(this));(r=this.selectElement)===null||r===void 0?void 0:r.removeEventListener("search",this.onSearch.bind(this));(s=this.choiceDropdown)===null||s===void 0?void 0:s.removeEventListener("scroll",this.onScrolledBottom.bind(this));if(this.multiple){(o=this.selectElement)===null||o===void 0?void 0:o.removeEventListener("choice",this.onChoice.bind(this));(a=this.removeElement)===null||a===void 0?void 0:a.removeEventListener("click",this.onRemoveItemButtonClick.bind(this))}}async setValue(t){var e;(e=this.choice)===null||e===void 0?void 0:e.setValue(t);return this}async setChoices(t,e,i,n){var r;(r=this.choice)===null||r===void 0?void 0:r.setChoices(t,e,i,n);return this}async clearChoices(){var t;(t=this.choice)===null||t===void 0?void 0:t.clearChoices();return this}async clearInput(){var t;(t=this.choice)===null||t===void 0?void 0:t.clearInput();return this}render(){return e(i,null,(this.hasSlottedLabel||this.label)&&e("label",{htmlFor:this.id,class:{hidden:this.labelHidden}},e("span",{part:"label"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label,!this.required&&e("span",{class:"input-optional","aria-hidden":"true"},"(",this.i18n.t("input.optional"),")"))),e("select",{id:this.id,ref:t=>this.selectElement=t,multiple:this.multiple,disabled:this.disabled}),this.hintSection)}init(){const t=this.value||[];const e=t=>this.i18n.t("select.removeItem",{value:t});const i={allowHTML:true,items:Array.isArray(t)?t:[t],removeItemButton:true,duplicateItemsAllowed:false,delimiter:"",paste:false,searchEnabled:!this.noSearch,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")};const n={callbackOnCreateTemplates:t=>({item:({classNames:i},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="${i.item} ${n.highlighted?i.highlightedState:i.itemSelectable} ${n.placeholder?i.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="${i.button}"\n aria-label="${e(n.label)}"\n data-button>${e(n.label)}</button>\n </div>\n `)}})};const r={callbackOnCreateTemplates:t=>{const n=i.itemSelectText;return{item:({classNames:i},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 ${i.item}\n ${n.highlighted?i.highlightedState:i.itemSelectable}\n ${n.placeholder?i.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="${i.button}"\n aria-label="${e(n.label)}"\n data-button>${e(n.label)}</button>\n </div>`)},choice:function({classNames:e},i){const r=$n(i);const s=`${String(e.item)} ${String(e.itemChoice)}\n ${String(i.disabled?e.itemDisabled:e.itemSelectable)}\n ${i.selected?"choices__item--selected":""}`;return t(`<div class="${s}"\n data-select-text="${n}"\n data-choice data-id="${String(i.id)}" data-value="${String(i.value)}"\n ${i.disabled?'data-choice-disabled aria-disabled="true"':"data-choice-selectable"}\n ${i.groupId&&i.groupId>0?'role="treeitem"':'role="option"'}>\n ${r}\n </div>`)}}}};const s=this.multiple?Object.assign(Object.assign({},i),r):Object.assign(Object.assign({},i),n);this.choice=new Sn(this.selectElement,s);this.choice.setChoices(this.choices)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&e(c,{hint:this.hint,slottedHint:t&&e("slot",{name:"hint"})})}onChange(){var t,e;this.value=(t=this.choice)===null||t===void 0?void 0:t.getValue();this.catChange.emit((e=this.choice)===null||e===void 0?void 0:e.getValue());if(this.multiple){this.updateRemoveItemButtonVisibility()}}onSearch(t){const e=t;this.catSearch.emit(e.detail.value)}onScrolledBottom(){var t,e,i;const n=((t=this.choiceDropdown)===null||t===void 0?void 0:t.scrollHeight)===(((e=this.choiceDropdown)===null||e===void 0?void 0:e.scrollTop)||0)+(((i=this.choiceDropdown)===null||i===void 0?void 0:i.clientHeight)||0);if(n){this.catScrolledBottom.emit()}}onChoice(t){var e,i;const n=t;const r=Array.from((e=this.choice)===null||e===void 0?void 0:e.getValue());const s=r.find((t=>t.choiceId===n.detail.choice.id));if(s){(i=this.choice)===null||i===void 0?void 0:i._removeItem(s)}}showDropdownHandler(){var t;if(!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,e,i;const n=Array.from((t=this.choice)===null||t===void 0?void 0:t.getValue());if(n.length){(e=this.removeElement)===null||e===void 0?void 0:e.removeAttribute("hidden")}else if(!n.length){(i=this.removeElement)===null||i===void 0?void 0:i.setAttribute("hidden","true")}}onRemoveItemButtonClick(t){var e;t.stopPropagation();(e=this.choice)===null||e===void 0?void 0:e.removeActiveItems(-1)}get hostElement(){return r(this)}static get watchers(){return{choices:["setChoicesHandler"],value:["setValueHandler"]}}};Pn.style=Ln;const Un=':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 Yn=class{constructor(e){t(this,e);this.effect="sheen";this.variant="rectangle";this.size="m"}render(){return e(i,null,Array.from(Array(this.count)).map((()=>e("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,e){return Math.floor(Math.random()*(e-t+1)+t)}};Yn.style=Un;const Fn=":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 Bn=class{constructor(e){t(this,e);this.size="m"}render(){return e("span",{"aria-label":this.a11yLabel,"aria-hidden":this.a11yLabel?null:"true",class:{[`spinner-${this.size}`]:this.size!=="inline"}},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e("circle",{cx:"24",cy:"24",r:"21.5"})))}};Bn.style=Fn;const Hn=":host{display:block}:host([hidden]){display:none}";let Qn=0;const Vn=class{constructor(e){t(this,e);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-${Qn++}`}}onClick(t){this.tabClick.emit(t)}render(){return e(i,null)}get hostElement(){return r(this)}};Vn.style=Hn;const Gn=":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 Zn=class{constructor(e){t(this,e);this.tabs=[];this.buttons=[];this.activeTab="";this.tabsAlign="left"}onActiveTabChanged(t){const e=this.tabs.find((e=>e.id===t));e===null||e===void 0?void 0:e.click()}componentWillLoad(){this.tabs=Array.from(this.hostElement.querySelectorAll("cat-tab"));if(this.tabs.length){this.activeTabId=this.activeTab}}onKeydown(t){var e;if(["ArrowDown","ArrowUp","ArrowRight","ArrowLeft"].includes(t.key)){const i=this.buttons.filter((t=>!t.disabled));const n=(e=this.hostElement.shadowRoot)===null||e===void 0?void 0:e.activeElement;const r=n?i.indexOf(n):-1;const s=["ArrowDown","ArrowRight"].includes(t.key)?1:-1;const o=r<0?0:(r+s+i.length)%i.length;i[o].setFocus();t.preventDefault()}}render(){return e(i,null,this.tabs.map((t=>e("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 e=this.buttons.indexOf(t);if(e>=0){this.buttons[e]=t}else{this.buttons.push(t)}}get hostElement(){return r(this)}static get watchers(){return{activeTabId:["onActiveTabChanged"]}}};Zn.style=Gn;const Wn=":host{display:block}";const Kn=class{constructor(e){t(this,e)}render(){return e("cat-button",{onClick:this.onClick.bind(this)},"Show Notifications")}onClick(){const t={position:"top-left"};const e={position:"top-center",type:"error"};const i={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};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"," ",e);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, ",i);u.success("Success Title - very long title without message"," ",n)}};Kn.style=Wn;const qn='.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;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;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.label-left{flex-direction:row-reverse}input{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}.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}: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 Jn=0;const Xn=class{constructor(e){t(this,e);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.id=`cat-toggle-${Jn++}`;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 e(i,null,e("label",{htmlFor:this.id,class:{"is-hidden":this.labelHidden,"is-disabled":this.disabled,"label-left":this.labelLeft}},e("input",{ref:t=>this.input=t,id:this.id,type:"checkbox",name:this.name,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)}),e("span",{class:"toggle",part:"toggle"}),e("span",{class:"label",part:"label"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label)),this.hintSection)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&e(c,{hint:this.hint,slottedHint:t&&e("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)}};Xn.style=qn;const tr="ontouchstart"in window||navigator.maxTouchPoints>0;const er=":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:white;border-radius:0.25rem;color:black;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;border:1px solid #ebecf0;z-index:200;max-width:16rem}.tooltip-show{opacity:1;visibility:visible}.tooltip-trigger{display:inline-block}.tooltip-trigger:focus{outline:none}";let ir=0;const nr=class{constructor(e){t(this,e);this.id=`cat-tooltip-${ir++}`;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,e,i,n,r,s,o;this.trigger=ze(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){Ft(this.trigger,this.tooltip,(()=>this.update()))}if(tr){window.addEventListener("touchstart",this.windowTouchStartListener.bind(this));(e=this.trigger)===null||e===void 0?void 0:e.addEventListener("touchstart",this.touchStartListener.bind(this));(i=this.trigger)===null||i===void 0?void 0:i.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,e,i,n,r,s;if(tr){window.removeEventListener("touchstart",this.windowTouchStartListener.bind(this));(t=this.trigger)===null||t===void 0?void 0:t.removeEventListener("touchstart",this.touchStartListener.bind(this));(e=this.trigger)===null||e===void 0?void 0:e.removeEventListener("touchend",this.touchEndListener.bind(this))}else{(i=this.trigger)===null||i===void 0?void 0:i.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 e(i,null,e("div",{ref:t=>this.triggerElement=t,"aria-describedby":this.id,class:"tooltip-trigger"},e("slot",null)),this.content&&!this.disabled&&e("div",{ref:t=>this.tooltip=t,id:this.id,class:"tooltip"},this.content))}get isTabbable(){return ze(this.trigger)}update(){if(this.trigger&&this.tooltip){Bt(this.trigger,this.tooltip,{placement:this.placement,middleware:[rt(nr.OFFSET),it()]}).then((({x:t,y:e})=>{if(this.tooltip){Object.assign(this.tooltip.style,{left:`${Math.max(0,t)}px`,top:`${e}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")}};nr.OFFSET=4;nr.style=er;export{f as cat_alert,b as cat_avatar,g as cat_badge,z as cat_button,E as cat_card,T as cat_checkbox,L as cat_icon,P as cat_input,Ce as cat_menu,Te as cat_modal,Re as cat_radio,Pe as cat_radio_group,Dn as cat_scrollable,Pn as cat_select,Yn as cat_skeleton,Bn as cat_spinner,Vn as cat_tab,Zn as cat_tabs,Kn as cat_toast_demo,Xn as cat_toggle,nr as cat_tooltip};
|
|
12
|
-
//# sourceMappingURL=p-
|
|
11
|
+
(function e(i,n){t.exports=n()})(window,(function(){return function(){var t={282:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.clearChoices=e.activateChoices=e.filterChoices=e.addChoice=void 0;var n=i(883);var r=function(t){var e=t.value,i=t.label,r=t.id,s=t.groupId,o=t.disabled,a=t.elementId,c=t.customProperties,l=t.placeholder,h=t.keyCode;return{type:n.ACTION_TYPES.ADD_CHOICE,value:e,label:i,id:r,groupId:s,disabled:o,elementId:a,customProperties:c,placeholder:l,keyCode:h}};e.addChoice=r;var s=function(t){return{type:n.ACTION_TYPES.FILTER_CHOICES,results:t}};e.filterChoices=s;var o=function(t){if(t===void 0){t=true}return{type:n.ACTION_TYPES.ACTIVATE_CHOICES,active:t}};e.activateChoices=o;var a=function(){return{type:n.ACTION_TYPES.CLEAR_CHOICES}};e.clearChoices=a},783:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.addGroup=void 0;var n=i(883);var r=function(t){var e=t.value,i=t.id,r=t.active,s=t.disabled;return{type:n.ACTION_TYPES.ADD_GROUP,value:e,id:i,active:r,disabled:s}};e.addGroup=r},464:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.highlightItem=e.removeItem=e.addItem=void 0;var n=i(883);var r=function(t){var e=t.value,i=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:e,label:i,id:r,choiceId:s,groupId:o,customProperties:a,placeholder:c,keyCode:l}};e.addItem=r;var s=function(t,e){return{type:n.ACTION_TYPES.REMOVE_ITEM,id:t,choiceId:e}};e.removeItem=s;var o=function(t,e){return{type:n.ACTION_TYPES.HIGHLIGHT_ITEM,id:t,highlighted:e}};e.highlightItem=o},137:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.setIsLoading=e.resetTo=e.clearAll=void 0;var n=i(883);var r=function(){return{type:n.ACTION_TYPES.CLEAR_ALL}};e.clearAll=r;var s=function(t){return{type:n.ACTION_TYPES.RESET_TO,state:t}};e.resetTo=s;var o=function(t){return{type:n.ACTION_TYPES.SET_IS_LOADING,isLoading:t}};e.setIsLoading=o},373:function(t,e,i){var n=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++){if(s||!(n in e)){if(!s)s=Array.prototype.slice.call(e,0,n);s[n]=e[n]}}return t.concat(s||Array.prototype.slice.call(e))};var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var s=r(i(996));var o=r(i(221));var a=i(282);var c=i(783);var l=i(464);var h=i(137);var u=i(520);var d=i(883);var f=i(789);var v=i(799);var p=i(655);var m=r(i(744));var b=r(i(686));var g="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style;var x={};var y=function(){function t(e,i){var r=this;if(e===void 0){e="[data-choice]"}if(i===void 0){i={}}if(i.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,i],{arrayMerge:function(t,e){return n([],e,true)}});var o=(0,v.diff)(this.config,f.DEFAULT_CONFIG);if(o.length){console.warn("Unknown config option(s) passed",o.join(", "))}var a=typeof e==="string"?document.querySelector(e):e;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(i.addItemFilter&&typeof i.addItemFilter!=="function"){var c=i.addItemFilter instanceof RegExp?i.addItemFilter:new RegExp(i.addItemFilter);this.config.addItemFilter=c.test.bind(c)}if(this._isTextElement){this.passedElement=new u.WrappedInput({element:a,classNames:this.config.classNames,delimiter:this.config.delimiter})}else{this.passedElement=new u.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=p.defaultState;this._currentState=p.defaultState;this._prevState=p.defaultState;this._currentValue="";this._canSearch=!!this.config.searchEnabled;this._isScrollingOnIe=false;this._highlightPosition=0;this._wasTap=true;this._placeholderValue=this._generatePlaceholderValue();this._baseId=(0,v.generateId)(this.passedElement.element,"choices-");this._direction=this.passedElement.dir;if(!this._direction){var l=window.getComputedStyle(this.passedElement.element).direction;var h=window.getComputedStyle(document.documentElement).direction;if(l!==h){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:e})}this.initialised=true;return}this.init()}Object.defineProperty(t,"defaults",{get:function(){return Object.preventExtensions({get options(){return x},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 e=this.config.callbackOnInit;if(e&&typeof e==="function"){e.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,e){if(e===void 0){e=true}if(!t||!t.id){return this}var i=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 h=r>=0?this._store.getGroupById(r):null;this._store.dispatch((0,l.highlightItem)(i,true));if(e){this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:i,value:o,label:c,groupValue:h&&h.value?h.value:null})}return this};t.prototype.unhighlightItem=function(t){if(!t||!t.id){return this}var e=t.id,i=t.groupId,n=i===void 0?-1:i,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)(e,false));this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:e,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(e){return t.highlightItem(e)}));return this};t.prototype.unhighlightAll=function(){var t=this;this._store.items.forEach((function(e){return t.unhighlightItem(e)}));return this};t.prototype.removeActiveItemsByValue=function(t){var e=this;this._store.activeItems.filter((function(e){return e.value===t})).forEach((function(t){return e._removeItem(t)}));return this};t.prototype.removeActiveItems=function(t){var e=this;this._store.activeItems.filter((function(e){var i=e.id;return i!==t})).forEach((function(t){return e._removeItem(t)}));return this};t.prototype.removeHighlightedItems=function(t){var e=this;if(t===void 0){t=false}this._store.highlightedActiveItems.forEach((function(i){e._removeItem(i);if(t){e._triggerChange(i.value)}}));return this};t.prototype.showDropdown=function(t){var e=this;if(this.dropdown.isActive){return this}requestAnimationFrame((function(){e.dropdown.show();e.containerOuter.open(e.dropdown.distanceFromTopWindow);if(!t&&e._canSearch){e.input.focus()}e.passedElement.triggerEvent(d.EVENTS.showDropdown,{})}));return this};t.prototype.hideDropdown=function(t){var e=this;if(!this.dropdown.isActive){return this}requestAnimationFrame((function(){e.dropdown.hide();e.containerOuter.close();if(!t&&e._canSearch){e.input.removeActiveDescendant();e.input.blur()}e.passedElement.triggerEvent(d.EVENTS.hideDropdown,{})}));return this};t.prototype.getValue=function(t){if(t===void 0){t=false}var e=this._store.activeItems.reduce((function(e,i){var n=t?i.value:i;e.push(n);return e}),[]);return this._isSelectOneElement?e[0]:e};t.prototype.setValue=function(t){var e=this;if(!this.initialised){return this}t.forEach((function(t){return e._setChoiceOrItem(t)}));return this};t.prototype.setChoiceByValue=function(t){var e=this;if(!this.initialised||this._isTextElement){return this}var i=Array.isArray(t)?t:[t];i.forEach((function(t){return e._findAndSelectChoiceByValue(t)}));return this};t.prototype.setChoices=function(t,e,i,n){var r=this;if(t===void 0){t=[]}if(e===void 0){e="value"}if(i===void 0){i="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 e!=="string"||!e){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,e,i,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,e,i,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:e,labelKey:i})}else{var n=t;r._addChoice({value:n[e],label:n[i],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,h.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 e=this._isSelectElement;var i=this._currentState.items!==this._prevState.items;if(!t){return}if(e){this._renderChoices()}if(i){this._renderItems()}this._prevState=this._currentState};t.prototype._renderChoices=function(){var t=this;var e=this._store,i=e.activeGroups,n=e.activeChoices;var r=document.createDocumentFragment();this.choiceList.clear();if(this.config.resetScrollPosition){requestAnimationFrame((function(){return t.choiceList.scrollToTop()}))}if(i.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(i,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 e=this._createItemsFragment(t);if(e.childNodes){this.itemList.append(e)}};t.prototype._createGroupsFragment=function(t,e,i){var n=this;if(i===void 0){i=document.createDocumentFragment()}var r=function(t){return e.filter((function(e){if(n._isSelectOneElement){return e.groupId===t.id}return e.groupId===t.id&&(n.config.renderSelectedChoices==="always"||!e.selected)}))};if(this.config.shouldSort){t.sort(this.config.sorter)}t.forEach((function(t){var e=r(t);if(e.length>=1){var s=n._getTemplate("choiceGroup",t);i.appendChild(s);n._createChoicesFragment(e,i,true)}}));return i};t.prototype._createChoicesFragment=function(t,e,i){var r=this;if(e===void 0){e=document.createDocumentFragment()}if(i===void 0){i=false}var s=this.config,o=s.renderSelectedChoices,a=s.searchResultLimit,c=s.renderChoiceLimit;var l=this._isSearching?v.sortByScore:this.config.sorter;var h=function(t){var i=o==="auto"?r._isSelectOneElement||!t.selected:true;if(i){var n=r._getTemplate("choice",t,r.config.itemSelectText);e.appendChild(n)}};var u=t;if(o==="auto"&&!this._isSelectOneElement){u=t.filter((function(t){return!t.selected}))}var d=u.reduce((function(t,e){if(e.placeholder){t.placeholderChoices.push(e)}else{t.normalChoices.push(e)}return t}),{placeholderChoices:[],normalChoices:[]}),f=d.placeholderChoices,p=d.normalChoices;if(this.config.shouldSort||this._isSearching){p.sort(l)}var m=u.length;var b=this._isSelectOneElement?n(n([],f,true),p,true):p;if(this._isSearching){m=a}else if(c&&c>0&&!i){m=c}for(var g=0;g<m;g+=1){if(b[g]){h(b[g])}}return e};t.prototype._createItemsFragment=function(t,e){var i=this;if(e===void 0){e=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 e=t.value;return e})).join(this.config.delimiter)}else{this.passedElement.options=t}var a=function(t){var n=i._getTemplate("item",t,o);e.appendChild(n)};t.forEach(a);return e};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,e){if(!t||!e||!this.config.removeItems||!this.config.removeItemButton){return}var i=e.parentNode&&e.parentNode.dataset.id;var n=i&&t.find((function(t){return t.id===parseInt(i,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,e,i){var n=this;if(i===void 0){i=false}if(!t||!e||!this.config.removeItems||this._isSelectOneElement){return}var r=e.dataset.id;t.forEach((function(t){if(t.id===parseInt("".concat(r),10)&&!t.highlighted){n.highlightItem(t)}else if(!i&&t.highlighted){n.unhighlightItem(t)}}));this.input.focus()};t.prototype._handleChoiceAction=function(t,e){if(!t||!e){return}var i=e.dataset.id;var n=i&&this._store.getChoiceById(i);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 e=t[t.length-1];var i=t.some((function(t){return t.highlighted}));if(this.config.editItems&&!i&&e){this.input.value=e.value;this.input.setWidth();this._removeItem(e);this._triggerChange(e.value)}else{if(!i){this.highlightItem(e,false)}this.removeHighlightedItems(true)}};t.prototype._startLoading=function(){this._store.dispatch((0,h.setIsLoading)(true))};t.prototype._stopLoading=function(){this._store.dispatch((0,h.setIsLoading)(false))};t.prototype._handleLoadingState=function(t){if(t===void 0){t=true}var e=this.itemList.getChild(".".concat(this.config.classNames.placeholder));if(t){this.disable();this.containerOuter.addLoadingState();if(this._isSelectOneElement){if(!e){e=this._getTemplate("placeholder",this.config.loadingText);if(e){this.itemList.append(e)}}else{e.innerHTML=this.config.loadingText}}else{this.input.placeholder=this.config.loadingText}}else{this.enable();this.containerOuter.removeLoadingState();if(this._isSelectOneElement){if(e){e.innerHTML=this._placeholderValue||""}}else{this.input.placeholder=this._placeholderValue||""}}};t.prototype._handleSearch=function(t){if(!this.input.isFocussed){return}var e=this._store.choices;var i=this.config,n=i.searchFloor,r=i.searchChoices;var s=e.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,e){var i=true;var n=typeof this.config.addItemText==="function"?this.config.addItemText(e):this.config.addItemText;if(!this._isSelectOneElement){var r=(0,v.existsInArray)(t,e);if(this.config.maxItemCount>0&&this.config.maxItemCount<=t.length){i=false;n=typeof this.config.maxItemText==="function"?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText}if(!this.config.duplicateItemsAllowed&&r&&i){i=false;n=typeof this.config.uniqueItemText==="function"?this.config.uniqueItemText(e):this.config.uniqueItemText}if(this._isTextElement&&this.config.addItems&&i&&typeof this.config.addItemFilter==="function"&&!this.config.addItemFilter(e)){i=false;n=typeof this.config.customAddItemText==="function"?this.config.customAddItemText(e):this.config.customAddItemText}}return{response:i,notice:n}};t.prototype._searchChoices=function(t){var e=typeof t==="string"?t.trim():t;var i=typeof this._currentValue==="string"?this._currentValue.trim():this._currentValue;if(e.length<1&&e==="".concat(i," ")){return 0}var r=this._store.searchableChoices;var s=e;var c=Object.assign(this.config.fuseOptions,{keys:n([],this.config.searchFields,true),includeMatches:true});var l=new o.default(r,c);var h=l.search(s);this._currentValue=e;this._highlightPosition=0;this._isSearching=true;this._store.dispatch((0,a.filterChoices)(h));return h.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 e=t.keyCode;var i=this._store.activeItems;var n=this.input.isFocussed;var r=this.dropdown.isActive;var s=this.itemList.hasChildren();var o=String.fromCharCode(e);var a=/[a-zA-Z0-9-_ ]/.test(o);var c=d.KEY_CODES.BACK_KEY,l=d.KEY_CODES.DELETE_KEY,h=d.KEY_CODES.ENTER_KEY,u=d.KEY_CODES.A_KEY,f=d.KEY_CODES.ESC_KEY,v=d.KEY_CODES.UP_KEY,p=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(e){case u:return this._onSelectKey(t,s);case h:return this._onEnterKey(t,i,r);case f:return this._onEscapeKey(r);case v:case m:case p:case b:return this._onDirectionKey(t,r);case l:case c:return this._onDeleteKey(t,i,n)}};t.prototype._onKeyUp=function(t){var e=t.target,i=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 h=this._getTemplate("notice",s.notice);this.dropdown.element.innerHTML=h.outerHTML;this.showDropdown(true)}else{this.hideDropdown(true)}}else{var u=i===o||i===c;var f=u&&e&&!e.value;var v=!this._isTextElement&&this._isSearching;var p=this._canSearch&&s.response;if(f&&v){this._isSearching=false;this._store.dispatch((0,a.activateChoices)(true))}else if(p){this._handleSearch(this.input.rawValue)}}this._canSearch=this.config.searchEnabled};t.prototype._onSelectKey=function(t,e){var i=t.ctrlKey,n=t.metaKey;var r=i||n;if(r&&e){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,e,i){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(e,o);if(a.response){this.hideDropdown(true);this._addItem({value:o});this._triggerChange(o);this.clearInput()}}if(s){this._handleButtonAction(e,n);t.preventDefault()}if(i){var c=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));if(c){if(e[0]){e[0].keyCode=r}this._handleChoiceAction(e,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,e){var i=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(e||this._isSelectOneElement){this.showDropdown();this._canSearch=false;var a=i===r||i===o?1:-1;var c=n||i===o||i===s;var l="[data-choice-selectable]";var h=void 0;if(c){if(a>0){h=this.dropdown.element.querySelector("".concat(l,":last-of-type"))}else{h=this.dropdown.element.querySelector(l)}}else{var u=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));if(u){h=(0,v.getAdjacentEl)(u,l,a)}else{h=this.dropdown.element.querySelector(l)}}if(h){if(!(0,v.isScrolledIntoView)(h,this.choiceList.element,a)){this.choiceList.scrollToChildElement(h,a)}this._highlightChoice(h)}t.preventDefault()}};t.prototype._onDeleteKey=function(t,e,i){var n=t.target;if(!this._isSelectOneElement&&!n.value&&i){this._handleBackspace(e);t.preventDefault()}};t.prototype._onTouchMove=function(){if(this._wasTap){this._wasTap=false}};t.prototype._onTouchEnd=function(t){var e=(t||t.touches[0]).target;var i=this._wasTap&&this.containerOuter.element.contains(e);if(i){var n=e===this.containerOuter.element||e===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 e=t.target;if(!(e instanceof HTMLElement)){return}if(g&&this.choiceList.element.contains(e)){var i=this.choiceList.element.firstElementChild;var n=this._direction==="ltr"?t.offsetX>=i.offsetWidth:t.offsetX<i.offsetLeft;this._isScrollingOnIe=n}if(e===this.input.element){return}var r=e.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 e=t.target;if(e instanceof HTMLElement&&"choice"in e.dataset){this._highlightChoice(e)}};t.prototype._onClick=function(t){var e=t.target;var i=this.containerOuter.element.contains(e);if(i){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&&e!==this.input.element&&!this.dropdown.element.contains(e)){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 e;var i=this;var n=t.target;var r=n&&this.containerOuter.element.contains(n);if(!r){return}var s=(e={},e[d.TEXT_TYPE]=function(){if(n===i.input.element){i.containerOuter.addFocusState()}},e[d.SELECT_ONE_TYPE]=function(){i.containerOuter.addFocusState();if(n===i.input.element){i.showDropdown(true)}},e[d.SELECT_MULTIPLE_TYPE]=function(){if(n===i.input.element){i.showDropdown(true);i.containerOuter.addFocusState()}},e);s[this.passedElement.element.type]()};t.prototype._onBlur=function(t){var e;var i=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=(e={},e[d.TEXT_TYPE]=function(){if(n===i.input.element){i.containerOuter.removeFocusState();if(o){i.unhighlightAll()}i.hideDropdown(true)}},e[d.SELECT_ONE_TYPE]=function(){i.containerOuter.removeFocusState();if(n===i.input.element||n===i.containerOuter.element&&!i._canSearch){i.hideDropdown(true)}},e[d.SELECT_MULTIPLE_TYPE]=function(){if(n===i.input.element){i.containerOuter.removeFocusState();i.hideDropdown(true);if(o){i.unhighlightAll()}}},e);a[this.passedElement.element.type]()}else{this._isScrollingOnIe=false;this.input.element.focus()}};t.prototype._onFormReset=function(){this._store.dispatch((0,h.resetTo)(this._initialState))};t.prototype._highlightChoice=function(t){var e=this;if(t===void 0){t=null}var i=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(!i.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(e.config.classNames.highlightedState);t.setAttribute("aria-selected","false")}));if(n){this._highlightPosition=i.indexOf(n)}else{if(i.length>this._highlightPosition){n=i[this._highlightPosition]}else{n=i[i.length-1]}if(!n){n=i[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 e=t.value,i=t.label,n=i===void 0?null:i,r=t.choiceId,s=r===void 0?-1:r,o=t.groupId,a=o===void 0?-1:o,c=t.customProperties,h=c===void 0?{}:c,u=t.placeholder,f=u===void 0?false:u,v=t.keyCode,p=v===void 0?-1:v;var m=typeof e==="string"?e.trim():e;var b=this._store.items;var g=n||m;var x=s||-1;var y=a>=0?this._store.getGroupById(a):null;var w=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:w,choiceId:x,groupId:a,customProperties:h,placeholder:f,keyCode:p}));if(this._isSelectOneElement){this.removeActiveItems(w)}this.passedElement.triggerEvent(d.EVENTS.addItem,{id:w,value:m,label:g,customProperties:h,groupValue:y&&y.value?y.value:null,keyCode:p})};t.prototype._removeItem=function(t){var e=t.id,i=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(!e||!s){return}this._store.dispatch((0,l.removeItem)(e,s));this.passedElement.triggerEvent(d.EVENTS.removeItem,{id:e,value:i,label:n,customProperties:r,groupValue:a&&a.value?a.value:null})};t.prototype._addChoice=function(t){var e=t.value,i=t.label,n=i===void 0?null:i,r=t.isSelected,s=r===void 0?false:r,o=t.isDisabled,c=o===void 0?false:o,l=t.groupId,h=l===void 0?-1:l,u=t.customProperties,d=u===void 0?{}:u,f=t.placeholder,v=f===void 0?false:f,p=t.keyCode,m=p===void 0?-1:p;if(typeof e==="undefined"||e===null){return}var b=this._store.choices;var g=n||e;var x=b?b.length+1:1;var y="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(x);this._store.dispatch((0,a.addChoice)({id:x,groupId:h,elementId:y,value:e,label:g,disabled:c,customProperties:d,placeholder:v,keyCode:m}));if(s){this._addItem({value:e,label:g,choiceId:x,customProperties:d,placeholder:v,keyCode:m})}};t.prototype._addGroup=function(t){var e=this;var i=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,v.isType)("Object",i)?i.choices:Array.from(i.getElementsByTagName("OPTION"));var h=n||Math.floor((new Date).valueOf()*Math.random());var u=i.disabled?i.disabled:false;if(l){this._store.dispatch((0,c.addGroup)({value:i.label,id:h,active:true,disabled:u}));var d=function(t){var i=t.disabled||t.parentNode&&t.parentNode.disabled;e._addChoice({value:t[s],label:(0,v.isType)("Object",t)?t[a]:t.innerHTML,isSelected:t.selected,isDisabled:i,groupId:h,customProperties:t.customProperties,placeholder:t.placeholder})};l.forEach(d)}else{this._store.dispatch((0,c.addGroup)({value:i.label,id:i.id,active:false,disabled:i.disabled}))}};t.prototype._getTemplate=function(t){var e;var i=[];for(var r=1;r<arguments.length;r++){i[r-1]=arguments[r]}return(e=this._templates[t]).call.apply(e,n([this,this.config],i,false))};t.prototype._createTemplates=function(){var t=this.config.callbackOnCreateTemplates;var e={};if(t&&typeof t==="function"){e=t.call(this,v.strToEl)}this._templates=(0,s.default)(b.default,e)};t.prototype._createElements=function(){this.containerOuter=new u.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 u.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position});this.input=new u.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste});this.choiceList=new u.List({element:this._getTemplate("choiceList",this._isSelectOneElement)});this.itemList=new u.List({element:this._getTemplate("itemList",this._isSelectOneElement)});this.dropdown=new u.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 e=this;var i=this.passedElement.placeholderOption;if(i&&i.parentNode&&i.parentNode.tagName==="SELECT"){this._addChoice({value:i.value,label:i.innerHTML,isSelected:i.selected,isDisabled:i.disabled,placeholder:true})}t.forEach((function(t){return e._addGroup({group:t,id:t.id||null})}))};t.prototype._addPredefinedChoices=function(t){var e=this;if(this.config.shouldSort){t.sort(this.config.sorter)}var i=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(e._isSelectElement){if(t.choices){e._addGroup({group:t,id:t.id||null})}else{var h=e._isSelectOneElement&&!i&&r===n;var u=h?true:t.selected;var d=t.disabled;e._addChoice({value:o,label:a,isSelected:!!u,isDisabled:!!d,placeholder:!!l,customProperties:c})}}else{e._addChoice({value:o,label:a,isSelected:!!t.selected,isDisabled:!!t.disabled,placeholder:!!t.placeholder,customProperties:c})}}))};t.prototype._addPredefinedItems=function(t){var e=this;t.forEach((function(t){if(typeof t==="object"&&t.value){e._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder})}if(typeof t==="string"){e._addItem({value:t})}}))};t.prototype._setChoiceOrItem=function(t){var e=this;var i=(0,v.getType)(t).toLowerCase();var n={object:function(){if(!t.value){return}if(!e._isTextElement){e._addChoice({value:t.value,label:t.label,isSelected:true,isDisabled:false,customProperties:t.customProperties,placeholder:t.placeholder})}else{e._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder})}},string:function(){if(!e._isTextElement){e._addChoice({value:t,label:t,isSelected:true,isDisabled:false})}else{e._addItem({value:t})}}};n[i]()};t.prototype._findAndSelectChoiceByValue=function(t){var e=this;var i=this._store.choices;var n=i.find((function(i){return e.config.valueComparer(i.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 e=this.config,i=e.placeholder,n=e.placeholderValue;var r=this.passedElement.element.dataset;if(i){if(n){return n}if(r.placeholder){return r.placeholder}}return null};return t}();e["default"]=y},613:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});var n=i(799);var r=i(883);var s=function(){function t(t){var e=t.element,i=t.type,n=t.classNames,r=t.position;this.element=e;this.classNames=n;this.type=i;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 e=false;if(this.position==="auto"){e=!window.matchMedia("(min-height: ".concat(t+1,"px)")).matches}else if(this.position==="top"){e=true}return e};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}();e["default"]=s},217:function(t,e){Object.defineProperty(e,"__esModule",{value:true});var i=function(){function t(t){var e=t.element,i=t.type,n=t.classNames;this.element=e;this.classNames=n;this.type=i;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}();e["default"]=i},520:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.WrappedSelect=e.WrappedInput=e.List=e.Input=e.Container=e.Dropdown=void 0;var r=n(i(217));e.Dropdown=r.default;var s=n(i(613));e.Container=s.default;var o=n(i(11));e.Input=o.default;var a=n(i(624));e.List=a.default;var c=n(i(541));e.WrappedInput=c.default;var l=n(i(982));e.WrappedSelect=l.default},11:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});var n=i(799);var r=i(883);var s=function(){function t(t){var e=t.element,i=t.type,n=t.classNames,r=t.preventPaste;this.element=e;this.type=i;this.classNames=n;this.preventPaste=r;this.isFocussed=this.element.isEqualNode(document.activeElement);this.isDisabled=e.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,e=t.style,i=t.value,n=t.placeholder;e.minWidth="".concat(n.length+1,"ch");e.width="".concat(i.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}();e["default"]=s},624:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});var n=i(883);var r=function(){function t(t){var e=t.element;this.element=e;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,e){var i=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=e>0?this.element.scrollTop+o-r:t.offsetTop;requestAnimationFrame((function(){i._animateScroll(a,e)}))};t.prototype._scrollDown=function(t,e,i){var n=(i-t)/e;var r=n>1?n:1;this.element.scrollTop=t+r};t.prototype._scrollUp=function(t,e,i){var n=(t-i)/e;var r=n>1?n:1;this.element.scrollTop=t-r};t.prototype._animateScroll=function(t,e){var i=this;var r=n.SCROLLING_SPEED;var s=this.element.scrollTop;var o=false;if(e>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(){i._animateScroll(t,e)}))}};return t}();e["default"]=r},730:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});var n=i(799);var r=function(){function t(t){var e=t.element,i=t.classNames;this.element=e;this.classNames=i;if(!(e instanceof HTMLInputElement)&&!(e 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,e){(0,n.dispatchEvent)(this.element,t,e)};return t}();e["default"]=r},541:function(t,e,i){var n=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var s=r(i(730));var o=function(t){n(e,t);function e(e){var i=e.element,n=e.classNames,r=e.delimiter;var s=t.call(this,{element:i,classNames:n})||this;s.delimiter=r;return s}Object.defineProperty(e.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 e}(s.default);e["default"]=o},982:function(t,e,i){var n=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var s=r(i(730));var o=function(t){n(e,t);function e(e){var i=e.element,n=e.classNames,r=e.template;var s=t.call(this,{element:i,classNames:n})||this;s.template=r;return s}Object.defineProperty(e.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(t){var e=this;var i=document.createDocumentFragment();var n=function(t){var n=e.template(t);i.appendChild(n)};t.forEach((function(t){return n(t)}));this.appendDocFragment(i)},enumerable:false,configurable:true});e.prototype.appendDocFragment=function(t){this.element.innerHTML="";this.element.appendChild(t)};return e}(s.default);e["default"]=o},883:function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.SCROLLING_SPEED=e.SELECT_MULTIPLE_TYPE=e.SELECT_ONE_TYPE=e.TEXT_TYPE=e.KEY_CODES=e.ACTION_TYPES=e.EVENTS=void 0;e.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"};e.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"};e.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};e.TEXT_TYPE="text";e.SELECT_ONE_TYPE="select-one";e.SELECT_MULTIPLE_TYPE="select-multiple";e.SCROLLING_SPEED=4},789:function(t,e,i){Object.defineProperty(e,"__esModule",{value:true});e.DEFAULT_CONFIG=e.DEFAULT_CLASSNAMES=void 0;var n=i(799);e.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"};e.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,e){return t===e},fuseOptions:{includeScore:true},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:e.DEFAULT_CLASSNAMES}},18:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},978:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},948:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},359:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},285:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},533:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},187:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){if(n===undefined)n=i;Object.defineProperty(t,n,{enumerable:true,get:function(){return e[i]}})}:function(t,e,i,n){if(n===undefined)n=i;t[n]=e[i]});var r=this&&this.__exportStar||function(t,e){for(var i in t)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(e,i))n(e,t,i)};Object.defineProperty(e,"__esModule",{value:true});r(i(18),e);r(i(978),e);r(i(948),e);r(i(359),e);r(i(285),e);r(i(533),e);r(i(287),e);r(i(132),e);r(i(837),e);r(i(598),e);r(i(369),e);r(i(37),e);r(i(47),e);r(i(923),e);r(i(876),e)},287:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},132:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},837:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},598:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},37:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},369:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},47:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},923:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},876:function(t,e){Object.defineProperty(e,"__esModule",{value:true})},799:function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.diff=e.cloneObject=e.existsInArray=e.dispatchEvent=e.sortByScore=e.sortByAlpha=e.strToEl=e.sanitise=e.isScrolledIntoView=e.getAdjacentEl=e.wrap=e.isType=e.getType=e.generateId=e.generateChars=e.getRandomNumber=void 0;var i=function(t,e){return Math.floor(Math.random()*(e-t)+t)};e.getRandomNumber=i;var n=function(t){return Array.from({length:t},(function(){return(0,e.getRandomNumber)(0,36).toString(36)})).join("")};e.generateChars=n;var r=function(t,i){var n=t.id||t.name&&"".concat(t.name,"-").concat((0,e.generateChars)(2))||(0,e.generateChars)(4);n=n.replace(/(:|\.|\[|\]|,)/g,"");n="".concat(i,"-").concat(n);return n};e.generateId=r;var s=function(t){return Object.prototype.toString.call(t).slice(8,-1)};e.getType=s;var o=function(t,i){return i!==undefined&&i!==null&&(0,e.getType)(i)===t};e.isType=o;var a=function(t,e){if(e===void 0){e=document.createElement("div")}if(t.parentNode){if(t.nextSibling){t.parentNode.insertBefore(e,t.nextSibling)}else{t.parentNode.appendChild(e)}}return e.appendChild(t)};e.wrap=a;var c=function(t,e,i){if(i===void 0){i=1}var n="".concat(i>0?"next":"previous","ElementSibling");var r=t[n];while(r){if(r.matches(e)){return r}r=r[n]}return r};e.getAdjacentEl=c;var l=function(t,e,i){if(i===void 0){i=1}if(!t){return false}var n;if(i>0){n=e.scrollTop+e.offsetHeight>=t.offsetTop+t.offsetHeight}else{n=t.offsetTop>=e.scrollTop}return n};e.isScrolledIntoView=l;var h=function(t){if(typeof t!=="string"){return t}return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,""")};e.sanitise=h;e.strToEl=function(){var t=document.createElement("div");return function(e){var i=e.trim();t.innerHTML=i;var n=t.children[0];while(t.firstChild){t.removeChild(t.firstChild)}return n}}();var u=function(t,e){var i=t.value,n=t.label,r=n===void 0?i:n;var s=e.value,o=e.label,a=o===void 0?s:o;return r.localeCompare(a,[],{sensitivity:"base",ignorePunctuation:true,numeric:true})};e.sortByAlpha=u;var d=function(t,e){var i=t.score,n=i===void 0?0:i;var r=e.score,s=r===void 0?0:r;return n-s};e.sortByScore=d;var f=function(t,e,i){if(i===void 0){i=null}var n=new CustomEvent(e,{detail:i,bubbles:true,cancelable:true});return t.dispatchEvent(n)};e.dispatchEvent=f;var v=function(t,e,i){if(i===void 0){i="value"}return t.some((function(t){if(typeof e==="string"){return t[i]===e.trim()}return t[i]===e}))};e.existsInArray=v;var p=function(t){return JSON.parse(JSON.stringify(t))};e.cloneObject=p;var m=function(t,e){var i=Object.keys(t).sort();var n=Object.keys(e).sort();return i.filter((function(t){return n.indexOf(t)<0}))};e.diff=m},273:function(t,e){var i=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++){if(s||!(n in e)){if(!s)s=Array.prototype.slice.call(e,0,n);s[n]=e[n]}}return t.concat(s||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;e.defaultState=[];function n(t,n){if(t===void 0){t=e.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 i(i([],t,true),[s],false)}case"ADD_ITEM":{var o=n;if(o.choiceId>-1){return t.map((function(t){var e=t;if(e.id===parseInt("".concat(o.choiceId),10)){e.selected=true}return e}))}return t}case"REMOVE_ITEM":{var a=n;if(a.choiceId&&a.choiceId>-1){return t.map((function(t){var e=t;if(e.id===parseInt("".concat(a.choiceId),10)){e.selected=false}return e}))}return t}case"FILTER_CHOICES":{var c=n;return t.map((function(t){var e=t;e.active=c.results.some((function(t){var i=t.item,n=t.score;if(i.id===e.id){e.score=n;return true}return false}));return e}))}case"ACTIVATE_CHOICES":{var l=n;return t.map((function(t){var e=t;e.active=l.active;return e}))}case"CLEAR_CHOICES":{return e.defaultState}default:{return t}}}e["default"]=n},871:function(t,e){var i=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++){if(s||!(n in e)){if(!s)s=Array.prototype.slice.call(e,0,n);s[n]=e[n]}}return t.concat(s||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;e.defaultState=[];function n(t,n){if(t===void 0){t=e.defaultState}if(n===void 0){n={}}switch(n.type){case"ADD_GROUP":{var r=n;return i(i([],t,true),[{id:r.id,value:r.value,active:r.active,disabled:r.disabled}],false)}case"CLEAR_CHOICES":{return[]}default:{return t}}}e["default"]=n},655:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;var r=i(857);var s=n(i(52));var o=n(i(871));var a=n(i(273));var c=n(i(502));var l=i(799);e.defaultState={groups:[],items:[],choices:[],loading:false};var h=(0,r.combineReducers)({items:s.default,groups:o.default,choices:a.default,loading:c.default});var u=function(t,i){var n=t;if(i.type==="CLEAR_ALL"){n=e.defaultState}else if(i.type==="RESET_TO"){return(0,l.cloneObject)(i.state)}return h(n,i)};e["default"]=u},52:function(t,e){var i=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++){if(s||!(n in e)){if(!s)s=Array.prototype.slice.call(e,0,n);s[n]=e[n]}}return t.concat(s||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;e.defaultState=[];function n(t,n){if(t===void 0){t=e.defaultState}if(n===void 0){n={}}switch(n.type){case"ADD_ITEM":{var r=n;var s=i(i([],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 e=t;e.highlighted=false;return e}))}case"REMOVE_ITEM":{return t.map((function(t){var e=t;if(e.id===n.id){e.active=false}return e}))}case"HIGHLIGHT_ITEM":{var o=n;return t.map((function(t){var e=t;if(e.id===o.id){e.highlighted=o.highlighted}return e}))}default:{return t}}}e["default"]=n},502:function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.defaultState=void 0;e.defaultState=false;var i=function(t,i){if(t===void 0){t=e.defaultState}if(i===void 0){i={}}switch(i.type){case"SET_IS_LOADING":{return i.isLoading}default:{return t}}};e["default"]=i},744:function(t,e,i){var n=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,s;n<r;n++){if(s||!(n in e)){if(!s)s=Array.prototype.slice.call(e,0,n);s[n]=e[n]}}return t.concat(s||Array.prototype.slice.call(e))};var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var s=i(857);var o=r(i(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,e=t.groups,i=t.choices;return e.filter((function(t){var e=t.active===true&&t.disabled===false;var n=i.some((function(t){return t.active===true&&t.disabled===false}));return e&&n}),[])},enumerable:false,configurable:true});t.prototype.isLoading=function(){return this.state.loading};t.prototype.getChoiceById=function(t){return this.activeChoices.find((function(e){return e.id===parseInt(t,10)}))};t.prototype.getGroupById=function(t){return this.groups.find((function(e){return e.id===t}))};return t}();e["default"]=a},686:function(t,e){Object.defineProperty(e,"__esModule",{value:true});var i={containerOuter:function(t,e,i,n,r,s,o){var a=t.classNames.containerOuter;var c=Object.assign(document.createElement("div"),{className:a});c.dataset.type=s;if(e){c.dir=e}if(n){c.tabIndex=0}if(i){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 e=t.classNames.containerInner;return Object.assign(document.createElement("div"),{className:e})},itemList:function(t,e){var i=t.classNames,n=i.list,r=i.listSingle,s=i.listItems;return Object.assign(document.createElement("div"),{className:"".concat(n," ").concat(e?r:s)})},placeholder:function(t,e){var i;var n=t.allowHTML,r=t.classNames.placeholder;return Object.assign(document.createElement("div"),(i={className:r},i[n?"innerHTML":"innerText"]=e,i))},item:function(t,e,i){var n,r;var s=t.allowHTML,o=t.classNames,a=o.item,c=o.button,l=o.highlightedState,h=o.itemSelectable,u=o.placeholder;var d=e.id,f=e.value,v=e.label,p=e.customProperties,m=e.active,b=e.disabled,g=e.highlighted,x=e.placeholder;var y=Object.assign(document.createElement("div"),(n={className:a},n[s?"innerHTML":"innerText"]=v,n));Object.assign(y.dataset,{item:"",id:d,value:f,customProperties:p});if(m){y.setAttribute("aria-selected","true")}if(b){y.setAttribute("aria-disabled","true")}if(x){y.classList.add(u)}y.classList.add(g?l:h);if(i){if(b){y.classList.remove(h)}y.dataset.deletable="";var w="Remove item";var M=Object.assign(document.createElement("button"),(r={type:"button",className:c},r[s?"innerHTML":"innerText"]=w,r));M.setAttribute("aria-label","".concat(w,": '").concat(f,"'"));M.dataset.button="";y.appendChild(M)}return y},choiceList:function(t,e){var i=t.classNames.list;var n=Object.assign(document.createElement("div"),{className:i});if(!e){n.setAttribute("aria-multiselectable","true")}n.setAttribute("role","listbox");return n},choiceGroup:function(t,e){var i;var n=t.allowHTML,r=t.classNames,s=r.group,o=r.groupHeading,a=r.itemDisabled;var c=e.id,l=e.value,h=e.disabled;var u=Object.assign(document.createElement("div"),{className:"".concat(s," ").concat(h?a:"")});u.setAttribute("role","group");Object.assign(u.dataset,{group:"",id:c,value:l});if(h){u.setAttribute("aria-disabled","true")}u.appendChild(Object.assign(document.createElement("div"),(i={className:o},i[n?"innerHTML":"innerText"]=l,i)));return u},choice:function(t,e,i){var n;var r=t.allowHTML,s=t.classNames,o=s.item,a=s.itemChoice,c=s.itemSelectable,l=s.selectedState,h=s.itemDisabled,u=s.placeholder;var d=e.id,f=e.value,v=e.label,p=e.groupId,m=e.elementId,b=e.disabled,g=e.selected,x=e.placeholder;var y=Object.assign(document.createElement("div"),(n={id:m},n[r?"innerHTML":"innerText"]=v,n.className="".concat(o," ").concat(a),n));if(g){y.classList.add(l)}if(x){y.classList.add(u)}y.setAttribute("role",p&&p>0?"treeitem":"option");Object.assign(y.dataset,{choice:"",id:d,value:f,selectText:i});if(b){y.classList.add(h);y.dataset.choiceDisabled="";y.setAttribute("aria-disabled","true")}else{y.classList.add(c);y.dataset.choiceSelectable=""}return y},input:function(t,e){var i=t.classNames,n=i.input,r=i.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",e);return s},dropdown:function(t){var e=t.classNames,i=e.list,n=e.listDropdown;var r=document.createElement("div");r.classList.add(i,n);r.setAttribute("aria-expanded","false");return r},notice:function(t,e,i){var n;var r=t.allowHTML,s=t.classNames,o=s.item,a=s.itemChoice,c=s.noResults,l=s.noChoices;if(i===void 0){i=""}var h=[o,a];if(i==="no-choices"){h.push(l)}else if(i==="no-results"){h.push(c)}return Object.assign(document.createElement("div"),(n={},n[r?"innerHTML":"innerText"]=e,n.className=h.join(" "),n))},option:function(t){var e=t.label,i=t.value,n=t.customProperties,r=t.active,s=t.disabled;var o=new Option(e,i,false,r);if(n){o.dataset.customProperties="".concat(n)}o.disabled=!!s;return o}};e["default"]=i},996:function(t){var e=function t(e){return i(e)&&!n(e)};function i(t){return!!t&&typeof t==="object"}function n(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[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,e){return e.clone!==false&&e.isMergeableObject(t)?m(a(t),t,e):t}function l(t,e,i){return t.concat(e).map((function(t){return c(t,i)}))}function h(t,e){if(!e.customMerge){return m}var i=e.customMerge(t);return typeof i==="function"?i:m}function u(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}function d(t){return Object.keys(t).concat(u(t))}function f(t,e){try{return e in t}catch(t){return false}}function v(t,e){return f(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function p(t,e,i){var n={};if(i.isMergeableObject(t)){d(t).forEach((function(e){n[e]=c(t[e],i)}))}d(e).forEach((function(r){if(v(t,r)){return}if(f(t,r)&&i.isMergeableObject(e[r])){n[r]=h(r,i)(t[r],e[r],i)}else{n[r]=c(e[r],i)}}));return n}function m(t,i,n){n=n||{};n.arrayMerge=n.arrayMerge||l;n.isMergeableObject=n.isMergeableObject||e;n.cloneUnlessOtherwiseSpecified=c;var r=Array.isArray(i);var s=Array.isArray(t);var o=r===s;if(!o){return c(i,n)}else if(r){return n.arrayMerge(t,i,n)}else{return p(t,i,n)}}m.all=function t(e,i){if(!Array.isArray(e)){throw new Error("first argument should be an array")}return e.reduce((function(t,e){return m(t,e,i)}),{})};var b=m;t.exports=b},221:function(t,e,i){i.r(e);i.d(e,{default:function(){return xt}});function n(t){return!Array.isArray?v(t)==="[object Array]":Array.isArray(t)}const r=1/0;function s(t){if(typeof t=="string"){return t}let e=t+"";return e=="0"&&1/t==-r?"-0":e}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||u(t)&&v(t)=="[object Boolean]"}function h(t){return typeof t==="object"}function u(t){return h(t)&&t!==null}function d(t){return t!==undefined&&t!==null}function f(t){return!t.trim().length}function v(t){return t==null?t===undefined?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const p="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 x=t=>`Property 'weight' in key '${t}' must be a positive integer`;const y=Object.prototype.hasOwnProperty;class w{constructor(t){this._keys=[];this._keyMap={};let e=0;t.forEach((t=>{let i=M(t);e+=i.weight;this._keys.push(i);this._keyMap[i.id]=i;e+=i.weight}));this._keys.forEach((t=>{t.weight/=e}))}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function M(t){let e=null;let i=null;let r=null;let s=1;if(a(t)||n(t)){r=t;e=_(t);i=j(t)}else{if(!y.call(t,"name")){throw new Error(g("name"))}const n=t.name;r=n;if(y.call(t,"weight")){s=t.weight;if(s<=0){throw new Error(x(n))}}e=_(n);i=j(n)}return{path:e,id:i,weight:s,src:r}}function _(t){return n(t)?t:t.split(".")}function j(t){return n(t)?t.join("."):t}function I(t,e){let i=[];let r=false;const s=(t,e,h)=>{if(!d(t)){return}if(!e[h]){i.push(t)}else{let u=e[h];const f=t[u];if(!d(f)){return}if(h===e.length-1&&(a(f)||c(f)||l(f))){i.push(o(f))}else if(n(f)){r=true;for(let t=0,i=f.length;t<i;t+=1){s(f[t],e,h+1)}}else if(e.length){s(f,e,h+1)}}};s(t,a(e)?e.split("."):e,0);return r?i:i[0]}const k={includeMatches:false,findAllMatches:false,minMatchCharLength:1};const z={isCaseSensitive:false,includeScore:false,keys:[],shouldSort:true,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1};const N={location:0,threshold:.6,distance:100};const A={useExtendedSearch:false,getFn:I,ignoreLocation:false,ignoreFieldNorm:false,fieldNormWeight:1};var O={...z,...k,...N,...A};const E=/[^ ]+/g;function C(t=1,e=3){const i=new Map;const n=Math.pow(10,e);return{get(e){const r=e.match(E).length;if(i.has(r)){return i.get(r)}const s=1/Math.pow(r,.5*t);const o=parseFloat(Math.round(s*n)/n);i.set(r,o);return o},clear(){i.clear()}}}class D{constructor({getFn:t=O.getFn,fieldNormWeight:e=O.fieldNormWeight}={}){this.norm=C(e,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,e)=>{this._keysMap[t.id]=e}))}create(){if(this.isCreated||!this.docs.length){return}this.isCreated=true;if(a(this.docs[0])){this.docs.forEach(((t,e)=>{this._addString(t,e)}))}else{this.docs.forEach(((t,e)=>{this._addObject(t,e)}))}this.norm.clear()}add(t){const e=this.size();if(a(t)){this._addString(t,e)}else{this._addObject(t,e)}}removeAt(t){this.records.splice(t,1);for(let e=t,i=this.size();e<i;e+=1){this.records[e].i-=1}}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!d(t)||f(t)){return}let i={v:t,i:e,n:this.norm.get(t)};this.records.push(i)}_addObject(t,e){let i={i:e,$:{}};this.keys.forEach(((e,r)=>{let s=this.getFn(t,e.path);if(!d(s)){return}if(n(s)){let t=[];const e=[{nestedArrIndex:-1,value:s}];while(e.length){const{nestedArrIndex:i,value:r}=e.pop();if(!d(r)){continue}if(a(r)&&!f(r)){let e={v:r,i,n:this.norm.get(r)};t.push(e)}else if(n(r)){r.forEach(((t,i)=>{e.push({nestedArrIndex:i,value:t})}))}else;}i.$[r]=t}else if(!f(s)){let t={v:s,n:this.norm.get(s)};i.$[r]=t}}));this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function T(t,e,{getFn:i=O.getFn,fieldNormWeight:n=O.fieldNormWeight}={}){const r=new D({getFn:i,fieldNormWeight:n});r.setKeys(t.map(M));r.setSources(e);r.create();return r}function S(t,{getFn:e=O.getFn,fieldNormWeight:i=O.fieldNormWeight}={}){const{keys:n,records:r}=t;const s=new D({getFn:e,fieldNormWeight:i});s.setKeys(n);s.setIndexRecords(r);return s}function L(t,{errors:e=0,currentLocation:i=0,expectedLocation:n=0,distance:r=O.distance,ignoreLocation:s=O.ignoreLocation}={}){const o=e/t.length;if(s){return o}const a=Math.abs(n-i);if(!r){return a?1:o}return o+a/r}function R(t=[],e=O.minMatchCharLength){let i=[];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>=e){i.push([n,r])}n=-1}}if(t[s-1]&&s-n>=e){i.push([n,s-1])}return i}const $=32;function P(t,e,i,{location:n=O.location,distance:r=O.distance,threshold:s=O.threshold,findAllMatches:o=O.findAllMatches,minMatchCharLength:a=O.minMatchCharLength,includeMatches:c=O.includeMatches,ignoreLocation:l=O.ignoreLocation}={}){if(e.length>$){throw new Error(b($))}const h=e.length;const u=t.length;const d=Math.max(0,Math.min(n,u));let f=s;let v=d;const p=a>1||c;const m=p?Array(u):[];let g;while((g=t.indexOf(e,v))>-1){let t=L(e,{currentLocation:g,expectedLocation:d,distance:r,ignoreLocation:l});f=Math.min(t,f);v=g+h;if(p){let t=0;while(t<h){m[g+t]=1;t+=1}}}v=-1;let x=[];let y=1;let w=h+u;const M=1<<h-1;for(let n=0;n<h;n+=1){let s=0;let a=w;while(s<a){const t=L(e,{errors:n,currentLocation:d+a,expectedLocation:d,distance:r,ignoreLocation:l});if(t<=f){s=a}else{w=a}a=Math.floor((w-s)/2+s)}w=a;let c=Math.max(1,d-a+1);let b=o?u:Math.min(d+a,u)+h;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=i[t.charAt(o)];if(p){m[o]=+!!a}g[s]=(g[s+1]<<1|1)&a;if(n){g[s]|=(x[s+1]|x[s])<<1|1|x[s+1]}if(g[s]&M){y=L(e,{errors:n,currentLocation:o,expectedLocation:d,distance:r,ignoreLocation:l});if(y<=f){f=y;v=o;if(v<=d){break}c=Math.max(1,2*d-v)}}}const _=L(e,{errors:n+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:l});if(_>f){break}x=g}const _={isMatch:v>=0,score:Math.max(.001,y)};if(p){const t=R(m,a);if(!t.length){_.isMatch=false}else if(c){_.indices=t}}return _}function U(t){let e={};for(let i=0,n=t.length;i<n;i+=1){const r=t.charAt(i);e[r]=(e[r]||0)|1<<n-i-1}return e}class Y{constructor(t,{location:e=O.location,threshold:i=O.threshold,distance:n=O.distance,includeMatches:r=O.includeMatches,findAllMatches:s=O.findAllMatches,minMatchCharLength:o=O.minMatchCharLength,isCaseSensitive:a=O.isCaseSensitive,ignoreLocation:c=O.ignoreLocation}={}){this.options={location:e,threshold:i,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,e)=>{this.chunks.push({pattern:t,alphabet:U(t),startIndex:e})};const h=this.pattern.length;if(h>$){let t=0;const e=h%$;const i=h-e;while(t<i){l(this.pattern.substr(t,$),t);t+=$}if(e){const t=h-$;l(this.pattern.substr(t),t)}}else{l(this.pattern,0)}}searchIn(t){const{isCaseSensitive:e,includeMatches:i}=this.options;if(!e){t=t.toLowerCase()}if(this.pattern===t){let e={isMatch:true,score:0};if(i){e.indices=[[0,t.length-1]]}return e}const{location:n,distance:r,threshold:s,findAllMatches:o,minMatchCharLength:a,ignoreLocation:c}=this.options;let l=[];let h=0;let u=false;this.chunks.forEach((({pattern:e,alphabet:d,startIndex:f})=>{const{isMatch:v,score:p,indices:m}=P(t,e,d,{location:n+f,distance:r,threshold:s,findAllMatches:o,minMatchCharLength:a,includeMatches:i,ignoreLocation:c});if(v){u=true}h+=p;if(v&&m){l=[...l,...m]}}));let d={isMatch:u,score:u?h/this.chunks.length:1};if(u&&i){d.indices=l}return d}}class F{constructor(t){this.pattern=t}static isMultiMatch(t){return B(t,this.multiRegex)}static isSingleMatch(t){return B(t,this.singleRegex)}search(){}}function B(t,e){const i=t.match(e);return i?i[1]:null}class H extends F{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class Q extends F{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=t.indexOf(this.pattern);const i=e===-1;return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}}class V extends F{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class G extends F{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class Z extends F{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class W extends F{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class K extends F{constructor(t,{location:e=O.location,threshold:i=O.threshold,distance:n=O.distance,includeMatches:r=O.includeMatches,findAllMatches:s=O.findAllMatches,minMatchCharLength:o=O.minMatchCharLength,isCaseSensitive:a=O.isCaseSensitive,ignoreLocation:c=O.ignoreLocation}={}){super(t);this._bitapSearch=new Y(t,{location:e,threshold:i,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 q extends F{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e=0;let i;const n=[];const r=this.pattern.length;while((i=t.indexOf(this.pattern,e))>-1){e=i+r;n.push([i,e-1])}const s=!!n.length;return{isMatch:s,score:s?0:1,indices:n}}}const J=[H,q,V,G,W,Z,Q,K];const X=J.length;const tt=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;const et="|";function it(t,e={}){return t.split(et).map((t=>{let i=t.trim().split(tt).filter((t=>t&&!!t.trim()));let n=[];for(let t=0,r=i.length;t<r;t+=1){const r=i[t];let s=false;let o=-1;while(!s&&++o<X){const t=J[o];let i=t.isMultiMatch(r);if(i){n.push(new t(i,e));s=true}}if(s){continue}o=-1;while(++o<X){const t=J[o];let i=t.isSingleMatch(r);if(i){n.push(new t(i,e));break}}}return n}))}const nt=new Set([K.type,q.type]);class rt{constructor(t,{isCaseSensitive:e=O.isCaseSensitive,includeMatches:i=O.includeMatches,minMatchCharLength:n=O.minMatchCharLength,ignoreLocation:r=O.ignoreLocation,findAllMatches:s=O.findAllMatches,location:o=O.location,threshold:a=O.threshold,distance:c=O.distance}={}){this.query=null;this.options={isCaseSensitive:e,includeMatches:i,minMatchCharLength:n,findAllMatches:s,ignoreLocation:r,location:o,threshold:a,distance:c};this.pattern=e?t:t.toLowerCase();this.query=it(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e){return{isMatch:false,score:1}}const{includeMatches:i,isCaseSensitive:n}=this.options;t=n?t:t.toLowerCase();let r=0;let s=[];let o=0;for(let n=0,a=e.length;n<a;n+=1){const a=e[n];s.length=0;r=0;for(let e=0,n=a.length;e<n;e+=1){const n=a[e];const{isMatch:c,indices:l,score:h}=n.search(t);if(c){r+=1;o+=h;if(i){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(i){t.indices=s}return t}}return{isMatch:false,score:1}}}const st=[];function ot(...t){st.push(...t)}function at(t,e){for(let i=0,n=st.length;i<n;i+=1){let n=st[i];if(n.condition(t,e)){return new n(t,e)}}return new Y(t,e)}const ct={AND:"$and",OR:"$or"};const lt={PATH:"$path",PATTERN:"$val"};const ht=t=>!!(t[ct.AND]||t[ct.OR]);const ut=t=>!!t[lt.PATH];const dt=t=>!n(t)&&h(t)&&!ht(t);const ft=t=>({[ct.AND]:Object.keys(t).map((e=>({[e]:t[e]})))});function vt(t,e,{auto:i=true}={}){const r=t=>{let s=Object.keys(t);const o=ut(t);if(!o&&s.length>1&&!ht(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:j(n),pattern:r};if(i){c.searcher=at(r,e)}return c}let c={children:[],operator:s[0]};s.forEach((e=>{const i=t[e];if(n(i)){i.forEach((t=>{c.children.push(r(t))}))}}));return c};if(!ht(t)){t=ft(t)}return r(t)}function pt(t,{ignoreFieldNorm:e=O.ignoreFieldNorm}){t.forEach((t=>{let i=1;t.matches.forEach((({key:t,norm:n,score:r})=>{const s=t?t.weight:null;i*=Math.pow(r===0&&s?Number.EPSILON:r,(s||1)*(e?1:n))}));t.score=i}))}function mt(t,e){const i=t.matches;e.matches=[];if(!d(i)){return}i.forEach((t=>{if(!d(t.indices)||!t.indices.length){return}const{indices:i,value:n}=t;let r={indices:i,value:n};if(t.key){r.key=t.key.src}if(t.idx>-1){r.refIndex=t.idx}e.matches.push(r)}))}function bt(t,e){e.score=t.score}function gt(t,e,{includeMatches:i=O.includeMatches,includeScore:n=O.includeScore}={}){const r=[];if(i)r.push(mt);if(n)r.push(bt);return t.map((t=>{const{idx:i}=t;const n={item:e[i],refIndex:i};if(r.length){r.forEach((e=>{e(t,n)}))}return n}))}class xt{constructor(t,e={},i){this.options={...O,...e};this._keyStore=new w(this.options.keys);this.setCollection(t,i)}setCollection(t,e){this._docs=t;if(e&&!(e instanceof D)){throw new Error(p)}this._myIndex=e||T(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 e=[];for(let i=0,n=this._docs.length;i<n;i+=1){const r=this._docs[i];if(t(r,i)){this.removeAt(i);i-=1;n-=1;e.push(r)}}return e}removeAt(t){this._docs.splice(t,1);this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){const{includeMatches:i,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);pt(l,{ignoreFieldNorm:o});if(r){l.sort(s)}if(c(e)&&e>-1){l=l.slice(0,e)}return gt(l,this._docs,{includeMatches:i,includeScore:n})}_searchStringList(t){const e=at(t,this.options);const{records:i}=this._myIndex;const n=[];i.forEach((({v:t,i,n:r})=>{if(!d(t)){return}const{isMatch:s,score:o,indices:a}=e.searchIn(t);if(s){n.push({item:t,idx:i,matches:[{score:o,value:t,norm:r,indices:a}]})}}));return n}_searchLogical(t){const e=vt(t,this.options);const i=(t,e,n)=>{if(!t.children){const{keyId:i,searcher:r}=t;const s=this._findMatches({key:this._keyStore.get(i),value:this._myIndex.getValueForItemAtKeyId(e,i),searcher:r});if(s&&s.length){return[{idx:n,item:e,matches:s}]}return[]}const r=[];for(let s=0,o=t.children.length;s<o;s+=1){const o=t.children[s];const a=i(o,e,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=i(e,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 e=at(t,this.options);const{keys:i,records:n}=this._myIndex;const r=[];n.forEach((({$:t,i:n})=>{if(!d(t)){return}let s=[];i.forEach(((i,n)=>{s.push(...this._findMatches({key:i,value:t[n],searcher:e}))}));if(s.length){r.push({idx:n,item:t,matches:s})}}));return r}_findMatches({key:t,value:e,searcher:i}){if(!d(e)){return[]}let r=[];if(n(e)){e.forEach((({v:e,i:n,n:s})=>{if(!d(e)){return}const{isMatch:o,score:a,indices:c}=i.searchIn(e);if(o){r.push({score:a,key:t,value:e,idx:n,norm:s,indices:c})}}))}else{const{v:n,n:s}=e;const{isMatch:o,score:a,indices:c}=i.searchIn(n);if(o){r.push({score:a,key:t,value:n,norm:s,indices:c})}}return r}}xt.version="6.5.3";xt.createIndex=T;xt.parseIndex=S;xt.config=O;{xt.parseQuery=vt}{ot(rt)}},857:function(t,e,i){i.r(e);i.d(e,{__DO_NOT_USE__ActionTypes:function(){return l},applyMiddleware:function(){return b},bindActionCreators:function(){return p},combineReducers:function(){return f},compose:function(){return m},createStore:function(){return u}});function n(t,e,i){if(e in t){Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true})}else{t[e]=i}return t}function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}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 h(t){if(typeof t!=="object"||t===null)return false;var e=t;while(Object.getPrototypeOf(e)!==null){e=Object.getPrototypeOf(e)}return Object.getPrototypeOf(t)===e}function u(t,e,i){var n;if(typeof e==="function"&&typeof i==="function"||typeof i==="function"&&typeof arguments[3]==="function"){throw new Error(o(0))}if(typeof e==="function"&&typeof i==="undefined"){i=e;e=undefined}if(typeof i!=="undefined"){if(typeof i!=="function"){throw new Error(o(1))}return i(u)(t,e)}if(typeof t!=="function"){throw new Error(o(2))}var r=t;var s=e;var c=[];var d=c;var f=false;function v(){if(d===c){d=c.slice()}}function p(){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 e=true;v();d.push(t);return function i(){if(!e){return}if(f){throw new Error(o(6))}e=false;v();var n=d.indexOf(t);d.splice(n,1);c=null}}function b(t){if(!h(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 e=c=d;for(var i=0;i<e.length;i++){var n=e[i];n()}return t}function g(t){if(typeof t!=="function"){throw new Error(o(10))}r=t;b({type:l.REPLACE})}function x(){var t;var e=m;return t={subscribe:function t(i){if(typeof i!=="object"||i===null){throw new Error(o(11))}function n(){if(i.next){i.next(p())}}n();var r=e(n);return{unsubscribe:r}}},t[a]=function(){return this},t}b({type:l.INIT});return n={dispatch:b,subscribe:m,getState:p,replaceReducer:g},n[a]=x,n}function d(t){Object.keys(t).forEach((function(e){var i=t[e];var n=i(undefined,{type:l.INIT});if(typeof n==="undefined"){throw new Error(o(12))}if(typeof i(undefined,{type:l.PROBE_UNKNOWN_ACTION()})==="undefined"){throw new Error(o(13))}}))}function f(t){var e=Object.keys(t);var i={};for(var n=0;n<e.length;n++){var r=e[n];if(typeof t[r]==="function"){i[r]=t[r]}}var s=Object.keys(i);var a;try{d(i)}catch(t){a=t}return function t(e,n){if(e===void 0){e={}}if(a){throw a}var r=false;var c={};for(var l=0;l<s.length;l++){var h=s[l];var u=i[h];var d=e[h];var f=u(d,n);if(typeof f==="undefined"){throw new Error(o(14))}c[h]=f;r=r||f!==d}r=r||s.length!==Object.keys(e).length;return r?c:e}}function v(t,e){return function(){return e(t.apply(this,arguments))}}function p(t,e){if(typeof t==="function"){return v(t,e)}if(typeof t!=="object"||t===null){throw new Error(o(16))}var i={};for(var n in t){var r=t[n];if(typeof r==="function"){i[n]=v(r,e)}}return i}function m(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++){e[i]=arguments[i]}if(e.length===0){return function(t){return t}}if(e.length===1){return e[0]}return e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function b(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++){e[i]=arguments[i]}return function(t){return function(){var i=t.apply(void 0,arguments);var n=function t(){throw new Error(o(15))};var r={getState:i.getState,dispatch:function t(){return n.apply(void 0,arguments)}};var a=e.map((function(t){return t(r)}));n=m.apply(void 0,a)(i.dispatch);return s(s({},i),{},{dispatch:n})}}}}};var e={};function i(n){var r=e[n];if(r!==undefined){return r.exports}var s=e[n]={exports:{}};t[n].call(s.exports,s,s.exports,i);return s.exports}!function(){i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};i.d(e,{a:e});return e}}();!function(){i.d=function(t,e){for(var n in e){if(i.o(e,n)&&!i.o(t,n)){Object.defineProperty(t,n,{enumerable:true,get:e[n]})}}}}();!function(){i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}();!function(){i.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=i(373);var e=i.n(t);i(187);i(883);i(789);i(686);n["default"]=e()}();n=n["default"];return n}()}))}));const Sn=a(Tn);const Ln='*{-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 Rn=0;const $n=t=>{var e;if((e=t.customProperties)===null||e===void 0?void 0:e.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 Pn=class{constructor(e){t(this,e);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=h.getInstance();this.id=`cat-select-${Rn++}`;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 e,i,n,r;const s=t=>{var e;return(e=this.value)===null||e===void 0?void 0:e.includes(t.value)};const o=t.map((t=>Object.assign(Object.assign({},t),{selected:s(t)})));(e=this.choice)===null||e===void 0?void 0:e.setChoices(o,"value","label",true);const a=((i=this.choice)===null||i===void 0?void 0:i.getValue())||[];const c=Array.isArray(a)?a:[a];const l=this.value||[];const h=[...l];(n=this.choice)===null||n===void 0?void 0:n.unhighlightAll();c.forEach((t=>{var e;const i=h.indexOf(t.value);if(i>-1){h.splice(i,1)}else{t.choiceId=-1;(e=this.choice)===null||e===void 0?void 0:e.highlightItem(t,false)}}));(r=this.choice)===null||r===void 0?void 0:r.removeHighlightedItems(false)}setValueHandler(t){var e,i;if(this.resetItemsOnNextValueChange){(e=this.choice)===null||e===void 0?void 0:e.removeActiveItems(-1)}this.resetItemsOnNextValueChange=true;(i=this.choice)===null||i===void 0?void 0:i.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,e,i,n,r,s,o,a,c,l,h,u;this.init();const d=(e=(t=this.hostElement).attachInternals)===null||e===void 0?void 0:e.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=((i=t===null||t===void 0?void 0:t.querySelector(".choices__list--dropdown"))===null||i===void 0?void 0:i.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));(h=this.choiceDropdown)===null||h===void 0?void 0:h.addEventListener("scroll",this.onScrolledBottom.bind(this));if(this.multiple){(u=this.selectElement)===null||u===void 0?void 0:u.addEventListener("choice",this.onChoice.bind(this));this.createRemoveItemButton()}}disconnectedCallback(){var t,e,i,n,r,s,o,a,c,l;(t=this.choice)===null||t===void 0?void 0:t.destroy();this.choice=undefined;(e=this.choicesElement)===null||e===void 0?void 0:e.removeEventListener("click",this.resetFocus.bind(this));(i=this.choiceInner)===null||i===void 0?void 0:i.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 e(i,null,(this.hasSlottedLabel||this.label)&&e("label",{htmlFor:this.id,class:{hidden:this.labelHidden}},e("span",{part:"label"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label,!this.required&&e("span",{class:"input-optional","aria-hidden":"true"},"(",this.i18n.t("input.optional"),")"))),e("select",{id:this.id,ref:t=>this.selectElement=t,multiple:this.multiple,disabled:this.disabled}),this.hintSection)}init(){const t=this;const e=t=>this.i18n.t("select.removeItem",{value:t});const i={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 e=this;e.setChoices(t.items,"value","label",true);e.setChoiceByValue(t.value)}};const n={callbackOnCreateTemplates:t=>({item:({classNames:i},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="${i.item} ${n.highlighted?i.highlightedState:i.itemSelectable} ${n.placeholder?i.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="${i.button}"\n aria-label="${e(n.label)}"\n data-button>${e(n.label)}</button>\n </div>\n `)}})};const r={callbackOnCreateTemplates:t=>{const n=i.itemSelectText;return{item:({classNames:i},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 ${i.item}\n ${n.highlighted?i.highlightedState:i.itemSelectable}\n ${n.placeholder?i.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="${i.button}"\n aria-label="${e(n.label)}"\n data-button>${e(n.label)}</button>\n </div>`)},choice:function({classNames:e},i){const r=$n(i);const s=`${String(e.item)} ${String(e.itemChoice)}\n ${String(i.disabled?e.itemDisabled:e.itemSelectable)}\n ${i.selected?"choices__item--selected":""}`;return t(`<div class="${s}"\n data-select-text="${n}"\n data-choice data-id="${String(i.id)}" data-value="${String(i.value)}"\n ${i.disabled?'data-choice-disabled aria-disabled="true"':"data-choice-selectable"}\n ${i.groupId&&i.groupId>0?'role="treeitem"':'role="option"'}>\n ${r}\n </div>`)}}}};const s=this.multiple?Object.assign(Object.assign({},i),r):Object.assign(Object.assign({},i),n);this.choice=new Sn(this.selectElement,s)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&e(c,{hint:this.hint,slottedHint:t&&e("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,e;if(this.multiple&&this.isFocused()&&!((t=this.choicesElement)===null||t===void 0?void 0:t.classList.contains("is-focused"))){(e=this.choicesElement)===null||e===void 0?void 0:e.classList.add("is-focused")}}resetFocus(){var t,e,i;if(!this.isFocused()){if(!((t=this.choicesElement)===null||t===void 0?void 0:t.hasAttribute("tabindex"))){(e=this.choicesElement)===null||e===void 0?void 0:e.setAttribute("tabindex","0")}(i=this.choicesElement)===null||i===void 0?void 0:i.focus()}}isFocused(){return document.activeElement===this.hostElement}onChoice(t){var e;const i=t;const n=i.detail.choice;if(n.selected){(e=this.choice)===null||e===void 0?void 0:e.removeActiveItemsByValue(n.value);this.onChange()}}onSearch(t){const e=t;this.catSearch.emit(e.detail.value)}onScrolledBottom(){var t,e,i;const n=((t=this.choiceDropdown)===null||t===void 0?void 0:t.scrollHeight)===(((e=this.choiceDropdown)===null||e===void 0?void 0:e.scrollTop)||0)+(((i=this.choiceDropdown)===null||i===void 0?void 0:i.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,e,i;const n=Array.from((t=this.choice)===null||t===void 0?void 0:t.getValue());if(n.length){(e=this.removeElement)===null||e===void 0?void 0:e.removeAttribute("hidden")}else{(i=this.removeElement)===null||i===void 0?void 0:i.setAttribute("hidden","true")}}onRemoveItemButtonClick(t){var e;t.stopPropagation();(e=this.choice)===null||e===void 0?void 0:e.removeActiveItems(-1);this.updateRemoveItemButtonVisibility();this.onChange()}get hostElement(){return r(this)}static get watchers(){return{items:["setChoicesHandler"],value:["setValueHandler"]}}};Pn.style=Ln;const Un=':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 Yn=class{constructor(e){t(this,e);this.effect="sheen";this.variant="rectangle";this.size="m"}render(){return e(i,null,Array.from(Array(this.count)).map((()=>e("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,e){return Math.floor(Math.random()*(e-t+1)+t)}};Yn.style=Un;const Fn=":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 Bn=class{constructor(e){t(this,e);this.size="m"}render(){return e("span",{"aria-label":this.a11yLabel,"aria-hidden":this.a11yLabel?null:"true",class:{[`spinner-${this.size}`]:this.size!=="inline"}},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e("circle",{cx:"24",cy:"24",r:"21.5"})))}};Bn.style=Fn;const Hn=":host{display:block}:host([hidden]){display:none}";let Qn=0;const Vn=class{constructor(e){t(this,e);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-${Qn++}`}}onClick(t){this.tabClick.emit(t)}render(){return e(i,null)}get hostElement(){return r(this)}};Vn.style=Hn;const Gn=":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 Zn=class{constructor(e){t(this,e);this.tabs=[];this.buttons=[];this.activeTab="";this.tabsAlign="left"}onActiveTabChanged(t){const e=this.tabs.find((e=>e.id===t));e===null||e===void 0?void 0:e.click()}componentWillLoad(){this.tabs=Array.from(this.hostElement.querySelectorAll("cat-tab"));if(this.tabs.length){this.activeTabId=this.activeTab}}onKeydown(t){var e;if(["ArrowDown","ArrowUp","ArrowRight","ArrowLeft"].includes(t.key)){const i=this.buttons.filter((t=>!t.disabled));const n=(e=this.hostElement.shadowRoot)===null||e===void 0?void 0:e.activeElement;const r=n?i.indexOf(n):-1;const s=["ArrowDown","ArrowRight"].includes(t.key)?1:-1;const o=r<0?0:(r+s+i.length)%i.length;i[o].setFocus();t.preventDefault()}}render(){return e(i,null,this.tabs.map((t=>e("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 e=this.buttons.indexOf(t);if(e>=0){this.buttons[e]=t}else{this.buttons.push(t)}}get hostElement(){return r(this)}static get watchers(){return{activeTabId:["onActiveTabChanged"]}}};Zn.style=Gn;const Wn=":host{display:block}";const Kn=class{constructor(e){t(this,e)}render(){return e("cat-button",{onClick:this.onClick.bind(this)},"Show Notifications")}onClick(){const t={position:"top-left"};const e={position:"top-center",type:"error"};const i={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};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"," ",e);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, ",i);u.success("Success Title - very long title without message"," ",n)}};Kn.style=Wn;const qn='.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 Jn=0;const Xn=class{constructor(e){t(this,e);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.id=`cat-toggle-${Jn++}`;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 e(i,null,e("label",{htmlFor:this.id,class:{"is-hidden":this.labelHidden,"is-disabled":this.disabled,"label-left":this.labelLeft}},e("input",{ref:t=>this.input=t,id:this.id,type:"checkbox",name:this.name,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)}),e("span",{class:"toggle",part:"toggle"}),e("span",{class:"label",part:"label"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label)),this.hintSection)}get hintSection(){const t=!!this.hostElement.querySelector('[slot="hint"]');return(this.hint||t)&&e(c,{hint:this.hint,slottedHint:t&&e("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)}};Xn.style=qn;const tr="ontouchstart"in window||navigator.maxTouchPoints>0;const er=":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 ir=0;const nr=class{constructor(e){t(this,e);this.id=`cat-tooltip-${ir++}`;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,e,i,n,r,s,o;this.trigger=Ae(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){Ft(this.trigger,this.tooltip,(()=>this.update()))}if(tr){window.addEventListener("touchstart",this.windowTouchStartListener.bind(this));(e=this.trigger)===null||e===void 0?void 0:e.addEventListener("touchstart",this.touchStartListener.bind(this));(i=this.trigger)===null||i===void 0?void 0:i.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,e,i,n,r,s;if(tr){window.removeEventListener("touchstart",this.windowTouchStartListener.bind(this));(t=this.trigger)===null||t===void 0?void 0:t.removeEventListener("touchstart",this.touchStartListener.bind(this));(e=this.trigger)===null||e===void 0?void 0:e.removeEventListener("touchend",this.touchEndListener.bind(this))}else{(i=this.trigger)===null||i===void 0?void 0:i.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 e(i,null,e("div",{ref:t=>this.triggerElement=t,"aria-describedby":this.id,class:"tooltip-trigger"},e("slot",null)),this.content&&!this.disabled&&e("div",{ref:t=>this.tooltip=t,id:this.id,class:"tooltip"},this.content))}get isTabbable(){return Ae(this.trigger)}update(){if(this.trigger&&this.tooltip){Bt(this.trigger,this.tooltip,{placement:this.placement,middleware:[rt(nr.OFFSET),it()]}).then((({x:t,y:e})=>{if(this.tooltip){Object.assign(this.tooltip.style,{left:`${Math.max(0,t)}px`,top:`${e}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")}};nr.OFFSET=4;nr.style=er;export{f as cat_alert,m as cat_avatar,g as cat_badge,A as cat_button,E as cat_card,T as cat_checkbox,L as cat_icon,P as cat_input,Ce as cat_menu,Te as cat_modal,Re as cat_radio,Pe as cat_radio_group,Dn as cat_scrollable,Pn as cat_select,Yn as cat_skeleton,Bn as cat_spinner,Vn as cat_tab,Zn as cat_tabs,Kn as cat_toast_demo,Xn as cat_toggle,nr as cat_tooltip};
|
|
12
|
+
//# sourceMappingURL=p-14edfc2b.entry.js.map
|